@cloud-cli/on 1.2.5 → 1.2.6

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.
package/dist/on.js CHANGED
@@ -1,27 +1,27 @@
1
1
  #!/usr/bin/env node
2
- import e, { existsSync as t, readFileSync as n, readdirSync as r, statSync as i, unlinkSync as a } from "node:fs";
3
- import o, { isAbsolute as s, join as c, resolve as l } from "node:path";
4
- import { parseArgs as u, parseEnv as d, promisify as f } from "node:util";
5
- import p from "node:http";
6
- import { URL as m } from "node:url";
7
- import h from "node:crypto";
8
- import { readdir as g } from "node:fs/promises";
9
- import { exec as _, spawn as v } from "node:child_process";
2
+ import e, { existsSync as t, readFileSync as n, readdirSync as r, statSync as i } from "node:fs";
3
+ import a, { isAbsolute as o, join as s, resolve as c } from "node:path";
4
+ import { parseArgs as l, promisify as u } from "node:util";
5
+ import d from "node:http";
6
+ import { URL as f } from "node:url";
7
+ import p, { randomUUID as m } from "node:crypto";
8
+ import { readdir as h } from "node:fs/promises";
9
+ import { exec as g, spawn as _ } from "node:child_process";
10
10
  //#region \0rolldown/runtime.js
11
- var y = Object.create, b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, ee = Object.getPrototypeOf, te = Object.prototype.hasOwnProperty, ne = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), C = (e, t) => {
11
+ var v = Object.create, y = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, x = Object.getPrototypeOf, te = Object.prototype.hasOwnProperty, ne = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), re = (e, t) => {
12
12
  let n = {};
13
- for (var r in e) b(n, r, {
13
+ for (var r in e) y(n, r, {
14
14
  get: e[r],
15
15
  enumerable: !0
16
16
  });
17
- return t || b(n, Symbol.toStringTag, { value: "Module" }), n;
18
- }, re = (e, t, n, r) => {
19
- if (t && typeof t == "object" || typeof t == "function") for (var i = S(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !te.call(e, s) && s !== n && b(e, s, {
17
+ return t || y(n, Symbol.toStringTag, { value: "Module" }), n;
18
+ }, S = (e, t, n, r) => {
19
+ if (t && typeof t == "object" || typeof t == "function") for (var i = b(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !te.call(e, s) && s !== n && y(e, s, {
20
20
  get: ((e) => t[e]).bind(null, s),
21
- enumerable: !(r = x(t, s)) || r.enumerable
21
+ enumerable: !(r = ee(t, s)) || r.enumerable
22
22
  });
23
23
  return e;
24
- }, ie = (e, t, n) => (n = e == null ? {} : y(ee(e)), re(t || !e || !e.__esModule || !te.call(e, "default") ? b(n, "default", {
24
+ }, ie = (e, t, n) => (n = e == null ? {} : v(x(e)), S(t || !e || !e.__esModule || !te.call(e, "default") ? y(n, "default", {
25
25
  value: e,
26
26
  enumerable: !0
27
27
  }) : n, e)), ae = [
@@ -998,153 +998,153 @@ function ge(e, t) {
998
998
  function _e(e, t) {
999
999
  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 && me.test(String.fromCharCode(e)) : t === !1 ? !1 : he(e, oe) || he(e, ae);
1000
1000
  }
1001
- var w = function(e, t) {
1001
+ var C = function(e, t) {
1002
1002
  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;
1003
1003
  };
1004
- function T(e, t) {
1005
- return new w(e, {
1004
+ function w(e, t) {
1005
+ return new C(e, {
1006
1006
  beforeExpr: !0,
1007
1007
  binop: t
1008
1008
  });
1009
1009
  }
1010
- var E = { beforeExpr: !0 }, D = { startsExpr: !0 }, ve = {};
1011
- function O(e, t) {
1012
- return t === void 0 && (t = {}), t.keyword = e, ve[e] = new w(e, t);
1013
- }
1014
- var k = {
1015
- num: new w("num", D),
1016
- regexp: new w("regexp", D),
1017
- string: new w("string", D),
1018
- name: new w("name", D),
1019
- privateId: new w("privateId", D),
1020
- eof: new w("eof"),
1021
- bracketL: new w("[", {
1010
+ var T = { beforeExpr: !0 }, E = { startsExpr: !0 }, ve = {};
1011
+ function D(e, t) {
1012
+ return t === void 0 && (t = {}), t.keyword = e, ve[e] = new C(e, t);
1013
+ }
1014
+ var O = {
1015
+ num: new C("num", E),
1016
+ regexp: new C("regexp", E),
1017
+ string: new C("string", E),
1018
+ name: new C("name", E),
1019
+ privateId: new C("privateId", E),
1020
+ eof: new C("eof"),
1021
+ bracketL: new C("[", {
1022
1022
  beforeExpr: !0,
1023
1023
  startsExpr: !0
1024
1024
  }),
1025
- bracketR: new w("]"),
1026
- braceL: new w("{", {
1025
+ bracketR: new C("]"),
1026
+ braceL: new C("{", {
1027
1027
  beforeExpr: !0,
1028
1028
  startsExpr: !0
1029
1029
  }),
1030
- braceR: new w("}"),
1031
- parenL: new w("(", {
1030
+ braceR: new C("}"),
1031
+ parenL: new C("(", {
1032
1032
  beforeExpr: !0,
1033
1033
  startsExpr: !0
1034
1034
  }),
1035
- parenR: new w(")"),
1036
- comma: new w(",", E),
1037
- semi: new w(";", E),
1038
- colon: new w(":", E),
1039
- dot: new w("."),
1040
- question: new w("?", E),
1041
- questionDot: new w("?."),
1042
- arrow: new w("=>", E),
1043
- template: new w("template"),
1044
- invalidTemplate: new w("invalidTemplate"),
1045
- ellipsis: new w("...", E),
1046
- backQuote: new w("`", D),
1047
- dollarBraceL: new w("${", {
1035
+ parenR: new C(")"),
1036
+ comma: new C(",", T),
1037
+ semi: new C(";", T),
1038
+ colon: new C(":", T),
1039
+ dot: new C("."),
1040
+ question: new C("?", T),
1041
+ questionDot: new C("?."),
1042
+ arrow: new C("=>", T),
1043
+ template: new C("template"),
1044
+ invalidTemplate: new C("invalidTemplate"),
1045
+ ellipsis: new C("...", T),
1046
+ backQuote: new C("`", E),
1047
+ dollarBraceL: new C("${", {
1048
1048
  beforeExpr: !0,
1049
1049
  startsExpr: !0
1050
1050
  }),
1051
- eq: new w("=", {
1051
+ eq: new C("=", {
1052
1052
  beforeExpr: !0,
1053
1053
  isAssign: !0
1054
1054
  }),
1055
- assign: new w("_=", {
1055
+ assign: new C("_=", {
1056
1056
  beforeExpr: !0,
1057
1057
  isAssign: !0
1058
1058
  }),
1059
- incDec: new w("++/--", {
1059
+ incDec: new C("++/--", {
1060
1060
  prefix: !0,
1061
1061
  postfix: !0,
1062
1062
  startsExpr: !0
1063
1063
  }),
1064
- prefix: new w("!/~", {
1064
+ prefix: new C("!/~", {
1065
1065
  beforeExpr: !0,
1066
1066
  prefix: !0,
1067
1067
  startsExpr: !0
1068
1068
  }),
1069
- logicalOR: T("||", 1),
1070
- logicalAND: T("&&", 2),
1071
- bitwiseOR: T("|", 3),
1072
- bitwiseXOR: T("^", 4),
1073
- bitwiseAND: T("&", 5),
1074
- equality: T("==/!=/===/!==", 6),
1075
- relational: T("</>/<=/>=", 7),
1076
- bitShift: T("<</>>/>>>", 8),
1077
- plusMin: new w("+/-", {
1069
+ logicalOR: w("||", 1),
1070
+ logicalAND: w("&&", 2),
1071
+ bitwiseOR: w("|", 3),
1072
+ bitwiseXOR: w("^", 4),
1073
+ bitwiseAND: w("&", 5),
1074
+ equality: w("==/!=/===/!==", 6),
1075
+ relational: w("</>/<=/>=", 7),
1076
+ bitShift: w("<</>>/>>>", 8),
1077
+ plusMin: new C("+/-", {
1078
1078
  beforeExpr: !0,
1079
1079
  binop: 9,
1080
1080
  prefix: !0,
1081
1081
  startsExpr: !0
1082
1082
  }),
1083
- modulo: T("%", 10),
1084
- star: T("*", 10),
1085
- slash: T("/", 10),
1086
- starstar: new w("**", { beforeExpr: !0 }),
1087
- coalesce: T("??", 1),
1088
- _break: O("break"),
1089
- _case: O("case", E),
1090
- _catch: O("catch"),
1091
- _continue: O("continue"),
1092
- _debugger: O("debugger"),
1093
- _default: O("default", E),
1094
- _do: O("do", {
1083
+ modulo: w("%", 10),
1084
+ star: w("*", 10),
1085
+ slash: w("/", 10),
1086
+ starstar: new C("**", { beforeExpr: !0 }),
1087
+ coalesce: w("??", 1),
1088
+ _break: D("break"),
1089
+ _case: D("case", T),
1090
+ _catch: D("catch"),
1091
+ _continue: D("continue"),
1092
+ _debugger: D("debugger"),
1093
+ _default: D("default", T),
1094
+ _do: D("do", {
1095
1095
  isLoop: !0,
1096
1096
  beforeExpr: !0
1097
1097
  }),
1098
- _else: O("else", E),
1099
- _finally: O("finally"),
1100
- _for: O("for", { isLoop: !0 }),
1101
- _function: O("function", D),
1102
- _if: O("if"),
1103
- _return: O("return", E),
1104
- _switch: O("switch"),
1105
- _throw: O("throw", E),
1106
- _try: O("try"),
1107
- _var: O("var"),
1108
- _const: O("const"),
1109
- _while: O("while", { isLoop: !0 }),
1110
- _with: O("with"),
1111
- _new: O("new", {
1098
+ _else: D("else", T),
1099
+ _finally: D("finally"),
1100
+ _for: D("for", { isLoop: !0 }),
1101
+ _function: D("function", E),
1102
+ _if: D("if"),
1103
+ _return: D("return", T),
1104
+ _switch: D("switch"),
1105
+ _throw: D("throw", T),
1106
+ _try: D("try"),
1107
+ _var: D("var"),
1108
+ _const: D("const"),
1109
+ _while: D("while", { isLoop: !0 }),
1110
+ _with: D("with"),
1111
+ _new: D("new", {
1112
1112
  beforeExpr: !0,
1113
1113
  startsExpr: !0
1114
1114
  }),
1115
- _this: O("this", D),
1116
- _super: O("super", D),
1117
- _class: O("class", D),
1118
- _extends: O("extends", E),
1119
- _export: O("export"),
1120
- _import: O("import", D),
1121
- _null: O("null", D),
1122
- _true: O("true", D),
1123
- _false: O("false", D),
1124
- _in: O("in", {
1115
+ _this: D("this", E),
1116
+ _super: D("super", E),
1117
+ _class: D("class", E),
1118
+ _extends: D("extends", T),
1119
+ _export: D("export"),
1120
+ _import: D("import", E),
1121
+ _null: D("null", E),
1122
+ _true: D("true", E),
1123
+ _false: D("false", E),
1124
+ _in: D("in", {
1125
1125
  beforeExpr: !0,
1126
1126
  binop: 7
1127
1127
  }),
1128
- _instanceof: O("instanceof", {
1128
+ _instanceof: D("instanceof", {
1129
1129
  beforeExpr: !0,
1130
1130
  binop: 7
1131
1131
  }),
1132
- _typeof: O("typeof", {
1132
+ _typeof: D("typeof", {
1133
1133
  beforeExpr: !0,
1134
1134
  prefix: !0,
1135
1135
  startsExpr: !0
1136
1136
  }),
1137
- _void: O("void", {
1137
+ _void: D("void", {
1138
1138
  beforeExpr: !0,
1139
1139
  prefix: !0,
1140
1140
  startsExpr: !0
1141
1141
  }),
1142
- _delete: O("delete", {
1142
+ _delete: D("delete", {
1143
1143
  beforeExpr: !0,
1144
1144
  prefix: !0,
1145
1145
  startsExpr: !0
1146
1146
  })
1147
- }, A = /\r\n?|\n|\u2028|\u2029/, ye = new RegExp(A.source, "g");
1147
+ }, k = /\r\n?|\n|\u2028|\u2029/, ye = new RegExp(k.source, "g");
1148
1148
  function be(e) {
1149
1149
  return e === 10 || e === 13 || e === 8232 || e === 8233;
1150
1150
  }
@@ -1156,7 +1156,7 @@ function xe(e, t, n) {
1156
1156
  }
1157
1157
  return -1;
1158
1158
  }
1159
- var Se = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, j = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ce = Object.prototype, we = Ce.hasOwnProperty, Te = Ce.toString, Ee = Object.hasOwn || (function(e, t) {
1159
+ var Se = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, A = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ce = Object.prototype, we = Ce.hasOwnProperty, Te = Ce.toString, Ee = Object.hasOwn || (function(e, t) {
1160
1160
  return we.call(e, t);
1161
1161
  }), De = Array.isArray || (function(e) {
1162
1162
  return Te.call(e) === "[object Array]";
@@ -1233,13 +1233,13 @@ var ze = 1, Be = 2, Ve = 4, He = 8, Ue = 16, We = 32, Ge = 64, Ke = 128, qe = 25
1233
1233
  function Ze(e, t) {
1234
1234
  return Be | (e ? Ve : 0) | (t ? He : 0);
1235
1235
  }
1236
- var Qe = 0, $e = 1, et = 2, tt = 3, nt = 4, rt = 5, M = function(e, t, n) {
1236
+ var Qe = 0, $e = 1, et = 2, tt = 3, nt = 4, rt = 5, j = function(e, t, n) {
1237
1237
  this.options = e = Le(e), this.sourceFile = e.sourceFile, this.keywords = ke(de[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
1238
1238
  var r = "";
1239
1239
  e.allowReserved !== !0 && (r = le[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (r += " await")), this.reservedWords = ke(r);
1240
1240
  var i = (r ? r + " " : "") + le.strict;
1241
- this.reservedWordsStrict = ke(i), this.reservedWordsStrictBind = ke(i + " " + le.strictBind), this.input = String(t), this.containsEsc = !1, this.pos = n || 0, this.curLine = 1, e.startLocation ? (this.lineStart = this.pos - e.startLocation.column, this.curLine = e.startLocation.line) : n ? (this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.options.locations && (this.curLine = this.input.slice(0, this.lineStart).split(A).length)) : this.lineStart = 0, this.type = k.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" ? Be : ze), this.regexpState = null, this.privateNameStack = [];
1242
- }, N = {
1241
+ this.reservedWordsStrict = ke(i), this.reservedWordsStrictBind = ke(i + " " + le.strictBind), this.input = String(t), this.containsEsc = !1, this.pos = n || 0, this.curLine = 1, e.startLocation ? (this.lineStart = this.pos - e.startLocation.column, this.curLine = e.startLocation.line) : n ? (this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.options.locations && (this.curLine = this.input.slice(0, this.lineStart).split(k).length)) : this.lineStart = 0, this.type = O.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" ? Be : ze), this.regexpState = null, this.privateNameStack = [];
1242
+ }, M = {
1243
1243
  inFunction: { configurable: !0 },
1244
1244
  inGenerator: { configurable: !0 },
1245
1245
  inAsync: { configurable: !0 },
@@ -1252,120 +1252,120 @@ var Qe = 0, $e = 1, et = 2, tt = 3, nt = 4, rt = 5, M = function(e, t, n) {
1252
1252
  allowUsing: { configurable: !0 },
1253
1253
  inClassStaticBlock: { configurable: !0 }
1254
1254
  };
1255
- M.prototype.parse = function() {
1255
+ j.prototype.parse = function() {
1256
1256
  var e = this, t = this.options.program || this.startNode();
1257
1257
  return this.nextToken(), this.catchStackOverflow(function() {
1258
1258
  return e.parseTopLevel(t);
1259
1259
  });
1260
- }, N.inFunction.get = function() {
1260
+ }, M.inFunction.get = function() {
1261
1261
  return (this.currentVarScope().flags & Be) > 0;
1262
- }, N.inGenerator.get = function() {
1262
+ }, M.inGenerator.get = function() {
1263
1263
  return (this.currentVarScope().flags & He) > 0;
1264
- }, N.inAsync.get = function() {
1264
+ }, M.inAsync.get = function() {
1265
1265
  return (this.currentVarScope().flags & Ve) > 0;
1266
- }, N.canAwait.get = function() {
1266
+ }, M.canAwait.get = function() {
1267
1267
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
1268
1268
  var t = this.scopeStack[e].flags;
1269
1269
  if (t & (qe | Je)) return !1;
1270
1270
  if (t & Be) return (t & Ve) > 0;
1271
1271
  }
1272
1272
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
1273
- }, N.allowReturn.get = function() {
1273
+ }, M.allowReturn.get = function() {
1274
1274
  return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & ze);
1275
- }, N.allowSuper.get = function() {
1275
+ }, M.allowSuper.get = function() {
1276
1276
  return (this.currentThisScope().flags & Ge) > 0 || this.options.allowSuperOutsideMethod;
1277
- }, N.allowDirectSuper.get = function() {
1277
+ }, M.allowDirectSuper.get = function() {
1278
1278
  return (this.currentThisScope().flags & Ke) > 0;
1279
- }, N.treatFunctionsAsVar.get = function() {
1279
+ }, M.treatFunctionsAsVar.get = function() {
1280
1280
  return this.treatFunctionsAsVarInScope(this.currentScope());
1281
- }, N.allowNewDotTarget.get = function() {
1281
+ }, M.allowNewDotTarget.get = function() {
1282
1282
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
1283
1283
  var t = this.scopeStack[e].flags;
1284
1284
  if (t & (qe | Je) || t & Be && !(t & Ue)) return !0;
1285
1285
  }
1286
1286
  return !1;
1287
- }, N.allowUsing.get = function() {
1287
+ }, M.allowUsing.get = function() {
1288
1288
  var e = this.currentScope().flags;
1289
1289
  return !(e & Ye || !this.inModule && e & ze);
1290
- }, N.inClassStaticBlock.get = function() {
1290
+ }, M.inClassStaticBlock.get = function() {
1291
1291
  return (this.currentVarScope().flags & qe) > 0;
1292
- }, M.extend = function() {
1292
+ }, j.extend = function() {
1293
1293
  for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
1294
1294
  for (var n = this, r = 0; r < e.length; r++) n = e[r](n);
1295
1295
  return n;
1296
- }, M.parse = function(e, t) {
1296
+ }, j.parse = function(e, t) {
1297
1297
  return new this(t, e).parse();
1298
- }, M.parseExpressionAt = function(e, t, n) {
1298
+ }, j.parseExpressionAt = function(e, t, n) {
1299
1299
  var r = new this(n, e, t);
1300
1300
  return r.nextToken(), r.parseExpression();
1301
- }, M.tokenizer = function(e, t) {
1301
+ }, j.tokenizer = function(e, t) {
1302
1302
  return new this(t, e);
1303
- }, Object.defineProperties(M.prototype, N);
1304
- var P = M.prototype, it = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1305
- P.strictDirective = function(e) {
1303
+ }, Object.defineProperties(j.prototype, M);
1304
+ var N = j.prototype, it = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1305
+ N.strictDirective = function(e) {
1306
1306
  if (this.options.ecmaVersion < 5) return !1;
1307
1307
  for (;;) {
1308
- j.lastIndex = e, e += j.exec(this.input)[0].length;
1308
+ A.lastIndex = e, e += A.exec(this.input)[0].length;
1309
1309
  var t = it.exec(this.input.slice(e));
1310
1310
  if (!t) return !1;
1311
1311
  if ((t[1] || t[2]) === "use strict") {
1312
- j.lastIndex = e + t[0].length;
1313
- var n = j.exec(this.input), r = n.index + n[0].length, i = this.input.charAt(r);
1314
- return i === ";" || i === "}" || A.test(n[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(i) || i === "!" && this.input.charAt(r + 1) === "=");
1312
+ A.lastIndex = e + t[0].length;
1313
+ var n = A.exec(this.input), r = n.index + n[0].length, i = this.input.charAt(r);
1314
+ return i === ";" || i === "}" || k.test(n[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(i) || i === "!" && this.input.charAt(r + 1) === "=");
1315
1315
  }
1316
- e += t[0].length, j.lastIndex = e, e += j.exec(this.input)[0].length, this.input[e] === ";" && e++;
1316
+ e += t[0].length, A.lastIndex = e, e += A.exec(this.input)[0].length, this.input[e] === ";" && e++;
1317
1317
  }
1318
- }, P.eat = function(e) {
1318
+ }, N.eat = function(e) {
1319
1319
  return this.type === e && (this.next(), !0);
1320
- }, P.isContextual = function(e) {
1321
- return this.type === k.name && this.value === e && !this.containsEsc;
1322
- }, P.eatContextual = function(e) {
1320
+ }, N.isContextual = function(e) {
1321
+ return this.type === O.name && this.value === e && !this.containsEsc;
1322
+ }, N.eatContextual = function(e) {
1323
1323
  return this.isContextual(e) ? (this.next(), !0) : !1;
1324
- }, P.catchStackOverflow = function(e) {
1324
+ }, N.catchStackOverflow = function(e) {
1325
1325
  try {
1326
1326
  return e();
1327
1327
  } catch (e) {
1328
1328
  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");
1329
1329
  else throw e;
1330
1330
  }
1331
- }, P.expectContextual = function(e) {
1331
+ }, N.expectContextual = function(e) {
1332
1332
  this.eatContextual(e) || this.unexpected();
1333
- }, P.canInsertSemicolon = function() {
1334
- return this.type === k.eof || this.type === k.braceR || A.test(this.input.slice(this.lastTokEnd, this.start));
1335
- }, P.insertSemicolon = function() {
1333
+ }, N.canInsertSemicolon = function() {
1334
+ return this.type === O.eof || this.type === O.braceR || k.test(this.input.slice(this.lastTokEnd, this.start));
1335
+ }, N.insertSemicolon = function() {
1336
1336
  if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
1337
- }, P.semicolon = function() {
1338
- !this.eat(k.semi) && !this.insertSemicolon() && this.unexpected();
1339
- }, P.afterTrailingComma = function(e, t) {
1337
+ }, N.semicolon = function() {
1338
+ !this.eat(O.semi) && !this.insertSemicolon() && this.unexpected();
1339
+ }, N.afterTrailingComma = function(e, t) {
1340
1340
  if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
1341
- }, P.expect = function(e) {
1341
+ }, N.expect = function(e) {
1342
1342
  this.eat(e) || this.unexpected();
1343
- }, P.unexpected = function(e) {
1343
+ }, N.unexpected = function(e) {
1344
1344
  this.raise(e ?? this.start, "Unexpected token");
1345
1345
  };
1346
1346
  var at = function() {
1347
1347
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
1348
1348
  };
1349
- P.checkPatternErrors = function(e, t) {
1349
+ N.checkPatternErrors = function(e, t) {
1350
1350
  if (e) {
1351
1351
  e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
1352
1352
  var n = t ? e.parenthesizedAssign : e.parenthesizedBind;
1353
1353
  n > -1 && this.raiseRecoverable(n, t ? "Assigning to rvalue" : "Parenthesized pattern");
1354
1354
  }
1355
- }, P.checkExpressionErrors = function(e, t) {
1355
+ }, N.checkExpressionErrors = function(e, t) {
1356
1356
  if (!e) return !1;
1357
1357
  var n = e.shorthandAssign, r = e.doubleProto;
1358
1358
  if (!t) return n >= 0 || r >= 0;
1359
1359
  n >= 0 && this.raise(n, "Shorthand property assignments are valid only in destructuring patterns"), r >= 0 && this.raiseRecoverable(r, "Redefinition of __proto__ property");
1360
- }, P.checkYieldAwaitInDefaultParams = function() {
1360
+ }, N.checkYieldAwaitInDefaultParams = function() {
1361
1361
  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");
1362
- }, P.isSimpleAssignTarget = function(e) {
1362
+ }, N.isSimpleAssignTarget = function(e) {
1363
1363
  return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
1364
1364
  };
1365
- var F = M.prototype;
1366
- F.parseTopLevel = function(e) {
1365
+ var P = j.prototype;
1366
+ P.parseTopLevel = function(e) {
1367
1367
  var t = Object.create(null);
1368
- for (e.body ||= []; this.type !== k.eof;) {
1368
+ for (e.body ||= []; this.type !== O.eof;) {
1369
1369
  var n = this.parseStatement(null, !0, t);
1370
1370
  e.body.push(n);
1371
1371
  }
@@ -1376,10 +1376,10 @@ F.parseTopLevel = function(e) {
1376
1376
  return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(e, "Program");
1377
1377
  };
1378
1378
  var ot = { kind: "loop" }, st = { kind: "switch" };
1379
- F.isLet = function(e) {
1379
+ P.isLet = function(e) {
1380
1380
  if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
1381
- j.lastIndex = this.pos;
1382
- var t = j.exec(this.input), n = this.pos + t[0].length, r = this.fullCharCodeAt(n);
1381
+ A.lastIndex = this.pos;
1382
+ var t = A.exec(this.input), n = this.pos + t[0].length, r = this.fullCharCodeAt(n);
1383
1383
  if (r === 91 || r === 92) return !0;
1384
1384
  if (e) return !1;
1385
1385
  if (r === 123) return !0;
@@ -1393,22 +1393,22 @@ F.isLet = function(e) {
1393
1393
  if (!fe.test(a)) return !0;
1394
1394
  }
1395
1395
  return !1;
1396
- }, F.isAsyncFunction = function() {
1396
+ }, P.isAsyncFunction = function() {
1397
1397
  if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1;
1398
- j.lastIndex = this.pos;
1399
- var e = j.exec(this.input), t = this.pos + e[0].length, n;
1400
- return !A.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(_e(n = this.fullCharCodeAt(t + 8)) || n === 92));
1401
- }, F.isUsingKeyword = function(e, t) {
1398
+ A.lastIndex = this.pos;
1399
+ var e = A.exec(this.input), t = this.pos + e[0].length, n;
1400
+ return !k.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(_e(n = this.fullCharCodeAt(t + 8)) || n === 92));
1401
+ }, P.isUsingKeyword = function(e, t) {
1402
1402
  if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return !1;
1403
- j.lastIndex = this.pos;
1404
- var n = j.exec(this.input), r = this.pos + n[0].length;
1405
- if (A.test(this.input.slice(this.pos, r))) return !1;
1403
+ A.lastIndex = this.pos;
1404
+ var n = A.exec(this.input), r = this.pos + n[0].length;
1405
+ if (k.test(this.input.slice(this.pos, r))) return !1;
1406
1406
  if (e) {
1407
1407
  var i = r + 5, a;
1408
1408
  if (this.input.slice(r, i) !== "using" || i === this.input.length || _e(a = this.fullCharCodeAt(i)) || a === 92) return !1;
1409
- j.lastIndex = i;
1410
- var o = j.exec(this.input);
1411
- if (r = i + o[0].length, o && A.test(this.input.slice(i, r))) return !1;
1409
+ A.lastIndex = i;
1410
+ var o = A.exec(this.input);
1411
+ if (r = i + o[0].length, o && k.test(this.input.slice(i, r))) return !1;
1412
1412
  }
1413
1413
  var s = this.fullCharCodeAt(r);
1414
1414
  if (!ge(s) && s !== 92) return !1;
@@ -1420,69 +1420,69 @@ F.isLet = function(e) {
1420
1420
  var l = this.input.slice(c, r);
1421
1421
  if (fe.test(l)) return !1;
1422
1422
  if (t && !e && l === "of") {
1423
- j.lastIndex = r;
1424
- var u = j.exec(this.input);
1423
+ A.lastIndex = r;
1424
+ var u = A.exec(this.input);
1425
1425
  if (r += u[0].length, this.input.charCodeAt(r) !== 61 || (s = this.input.charCodeAt(r + 1)) === 61 || s === 62) return !1;
1426
1426
  }
1427
1427
  return !0;
1428
- }, F.isAwaitUsing = function(e) {
1428
+ }, P.isAwaitUsing = function(e) {
1429
1429
  return this.isUsingKeyword(!0, e);
1430
- }, F.isUsing = function(e) {
1430
+ }, P.isUsing = function(e) {
1431
1431
  return this.isUsingKeyword(!1, e);
1432
- }, F.parseStatement = function(e, t, n) {
1432
+ }, P.parseStatement = function(e, t, n) {
1433
1433
  var r = this.type, i = this.startNode(), a;
1434
- switch (this.isLet(e) && (r = k._var, a = "let"), r) {
1435
- case k._break:
1436
- case k._continue: return this.parseBreakContinueStatement(i, r.keyword);
1437
- case k._debugger: return this.parseDebuggerStatement(i);
1438
- case k._do: return this.parseDoStatement(i);
1439
- case k._for: return this.parseForStatement(i);
1440
- case k._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(i, !1, !e);
1441
- case k._class: return e && this.unexpected(), this.parseClass(i, !0);
1442
- case k._if: return this.parseIfStatement(i);
1443
- case k._return: return this.parseReturnStatement(i);
1444
- case k._switch: return this.parseSwitchStatement(i);
1445
- case k._throw: return this.parseThrowStatement(i);
1446
- case k._try: return this.parseTryStatement(i);
1447
- case k._const:
1448
- case k._var: return a ||= this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(i, a);
1449
- case k._while: return this.parseWhileStatement(i);
1450
- case k._with: return this.parseWithStatement(i);
1451
- case k.braceL: return this.parseBlock(!0, i);
1452
- case k.semi: return this.parseEmptyStatement(i);
1453
- case k._export:
1454
- case k._import:
1455
- if (this.options.ecmaVersion > 10 && r === k._import) {
1456
- j.lastIndex = this.pos;
1457
- var o = j.exec(this.input), s = this.pos + o[0].length, c = this.input.charCodeAt(s);
1434
+ switch (this.isLet(e) && (r = O._var, a = "let"), r) {
1435
+ case O._break:
1436
+ case O._continue: return this.parseBreakContinueStatement(i, r.keyword);
1437
+ case O._debugger: return this.parseDebuggerStatement(i);
1438
+ case O._do: return this.parseDoStatement(i);
1439
+ case O._for: return this.parseForStatement(i);
1440
+ case O._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(i, !1, !e);
1441
+ case O._class: return e && this.unexpected(), this.parseClass(i, !0);
1442
+ case O._if: return this.parseIfStatement(i);
1443
+ case O._return: return this.parseReturnStatement(i);
1444
+ case O._switch: return this.parseSwitchStatement(i);
1445
+ case O._throw: return this.parseThrowStatement(i);
1446
+ case O._try: return this.parseTryStatement(i);
1447
+ case O._const:
1448
+ case O._var: return a ||= this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(i, a);
1449
+ case O._while: return this.parseWhileStatement(i);
1450
+ case O._with: return this.parseWithStatement(i);
1451
+ case O.braceL: return this.parseBlock(!0, i);
1452
+ case O.semi: return this.parseEmptyStatement(i);
1453
+ case O._export:
1454
+ case O._import:
1455
+ if (this.options.ecmaVersion > 10 && r === O._import) {
1456
+ A.lastIndex = this.pos;
1457
+ var o = A.exec(this.input), s = this.pos + o[0].length, c = this.input.charCodeAt(s);
1458
1458
  if (c === 40 || c === 46) return this.parseExpressionStatement(i, this.parseExpression());
1459
1459
  }
1460
- 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 === k._import ? this.parseImport(i) : this.parseExport(i, n);
1460
+ 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 === O._import ? this.parseImport(i) : this.parseExport(i, n);
1461
1461
  default:
1462
1462
  if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(i, !0, !e);
1463
1463
  var l = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
1464
1464
  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");
1465
1465
  var u = this.value, d = this.parseExpression();
1466
- return r === k.name && d.type === "Identifier" && this.eat(k.colon) ? this.parseLabeledStatement(i, u, d, e) : this.parseExpressionStatement(i, d);
1466
+ return r === O.name && d.type === "Identifier" && this.eat(O.colon) ? this.parseLabeledStatement(i, u, d, e) : this.parseExpressionStatement(i, d);
1467
1467
  }
1468
- }, F.parseBreakContinueStatement = function(e, t) {
1468
+ }, P.parseBreakContinueStatement = function(e, t) {
1469
1469
  var n = t === "break";
1470
- this.next(), this.eat(k.semi) || this.insertSemicolon() ? e.label = null : this.type === k.name ? (e.label = this.parseIdent(), this.semicolon()) : this.unexpected();
1470
+ this.next(), this.eat(O.semi) || this.insertSemicolon() ? e.label = null : this.type === O.name ? (e.label = this.parseIdent(), this.semicolon()) : this.unexpected();
1471
1471
  for (var r = 0; r < this.labels.length; ++r) {
1472
1472
  var i = this.labels[r];
1473
1473
  if ((e.label == null || i.name === e.label.name) && (i.kind != null && (n || i.kind === "loop") || e.label && n)) break;
1474
1474
  }
1475
1475
  return r === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, n ? "BreakStatement" : "ContinueStatement");
1476
- }, F.parseDebuggerStatement = function(e) {
1476
+ }, P.parseDebuggerStatement = function(e) {
1477
1477
  return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
1478
- }, F.parseDoStatement = function(e) {
1479
- return this.next(), this.labels.push(ot), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(k._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(k.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
1480
- }, F.parseForStatement = function(e) {
1478
+ }, P.parseDoStatement = function(e) {
1479
+ return this.next(), this.labels.push(ot), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(O._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(O.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
1480
+ }, P.parseForStatement = function(e) {
1481
1481
  this.next();
1482
1482
  var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
1483
- if (this.labels.push(ot), this.enterScope(0), this.expect(k.parenL), this.type === k.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
1483
+ if (this.labels.push(ot), this.enterScope(0), this.expect(O.parenL), this.type === O.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
1484
1484
  var n = this.isLet();
1485
- if (this.type === k._var || this.type === k._const || n) {
1485
+ if (this.type === O._var || this.type === O._const || n) {
1486
1486
  var r = this.startNode(), i = n ? "let" : this.value;
1487
1487
  return this.next(), this.parseVar(r, !0, i), this.finishNode(r, "VariableDeclaration"), this.parseForAfterInit(e, r, t);
1488
1488
  }
@@ -1492,46 +1492,46 @@ F.isLet = function(e) {
1492
1492
  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);
1493
1493
  }
1494
1494
  var l = this.containsEsc, u = new at(), d = this.start, f = t > -1 ? this.parseExprSubscripts(u, "await") : this.parseExpression(!0, u);
1495
- return this.type === k._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === k._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));
1496
- }, F.parseForAfterInit = function(e, t, n) {
1497
- return (this.type === k._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === k._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));
1498
- }, F.parseFunctionStatement = function(e, t, n) {
1495
+ return this.type === O._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === O._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));
1496
+ }, P.parseForAfterInit = function(e, t, n) {
1497
+ return (this.type === O._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === O._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));
1498
+ }, P.parseFunctionStatement = function(e, t, n) {
1499
1499
  return this.next(), this.parseFunction(e, lt | (n ? 0 : ut), !1, t);
1500
- }, F.parseIfStatement = function(e) {
1501
- return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(k._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
1502
- }, F.parseReturnStatement = function(e) {
1503
- return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(k.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
1504
- }, F.parseSwitchStatement = function(e) {
1505
- this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(k.braceL), this.labels.push(st), this.enterScope(Ye);
1506
- for (var t, n = !1; this.type !== k.braceR;) if (this.type === k._case || this.type === k._default) {
1507
- var r = this.type === k._case;
1508
- 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(k.colon);
1500
+ }, P.parseIfStatement = function(e) {
1501
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(O._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
1502
+ }, P.parseReturnStatement = function(e) {
1503
+ return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(O.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
1504
+ }, P.parseSwitchStatement = function(e) {
1505
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(O.braceL), this.labels.push(st), this.enterScope(Ye);
1506
+ for (var t, n = !1; this.type !== O.braceR;) if (this.type === O._case || this.type === O._default) {
1507
+ var r = this.type === O._case;
1508
+ 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(O.colon);
1509
1509
  } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
1510
1510
  return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
1511
- }, F.parseThrowStatement = function(e) {
1512
- return this.next(), A.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");
1511
+ }, P.parseThrowStatement = function(e) {
1512
+ return this.next(), k.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");
1513
1513
  };
1514
1514
  var ct = [];
1515
- F.parseCatchClauseParam = function() {
1515
+ P.parseCatchClauseParam = function() {
1516
1516
  var e = this.parseBindingAtom(), t = e.type === "Identifier";
1517
- return this.enterScope(t ? We : 0), this.checkLValPattern(e, t ? nt : et), this.expect(k.parenR), e;
1518
- }, F.parseTryStatement = function(e) {
1519
- if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === k._catch) {
1517
+ return this.enterScope(t ? We : 0), this.checkLValPattern(e, t ? nt : et), this.expect(O.parenR), e;
1518
+ }, P.parseTryStatement = function(e) {
1519
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === O._catch) {
1520
1520
  var t = this.startNode();
1521
- this.next(), this.eat(k.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");
1521
+ this.next(), this.eat(O.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");
1522
1522
  }
1523
- return e.finalizer = this.eat(k._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
1524
- }, F.parseVarStatement = function(e, t, n) {
1523
+ return e.finalizer = this.eat(O._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
1524
+ }, P.parseVarStatement = function(e, t, n) {
1525
1525
  return this.next(), this.parseVar(e, !1, t, n), this.semicolon(), this.finishNode(e, "VariableDeclaration");
1526
- }, F.parseWhileStatement = function(e) {
1526
+ }, P.parseWhileStatement = function(e) {
1527
1527
  return this.next(), e.test = this.parseParenExpression(), this.labels.push(ot), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
1528
- }, F.parseWithStatement = function(e) {
1528
+ }, P.parseWithStatement = function(e) {
1529
1529
  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");
1530
- }, F.parseEmptyStatement = function(e) {
1530
+ }, P.parseEmptyStatement = function(e) {
1531
1531
  return this.next(), this.finishNode(e, "EmptyStatement");
1532
- }, F.parseLabeledStatement = function(e, t, n, r) {
1532
+ }, P.parseLabeledStatement = function(e, t, n, r) {
1533
1533
  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");
1534
- for (var o = this.type.isLoop ? "loop" : this.type === k._switch ? "switch" : null, s = this.labels.length - 1; s >= 0; s--) {
1534
+ for (var o = this.type.isLoop ? "loop" : this.type === O._switch ? "switch" : null, s = this.labels.length - 1; s >= 0; s--) {
1535
1535
  var c = this.labels[s];
1536
1536
  if (c.statementStart === e.start) c.statementStart = this.start, c.kind = o;
1537
1537
  else break;
@@ -1541,91 +1541,91 @@ F.parseCatchClauseParam = function() {
1541
1541
  kind: o,
1542
1542
  statementStart: this.start
1543
1543
  }), e.body = this.parseStatement(r ? r.indexOf("label") === -1 ? r + "label" : r : "label"), this.labels.pop(), e.label = n, this.finishNode(e, "LabeledStatement");
1544
- }, F.parseExpressionStatement = function(e, t) {
1544
+ }, P.parseExpressionStatement = function(e, t) {
1545
1545
  return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
1546
- }, F.parseBlock = function(e, t, n) {
1547
- for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(k.braceL), e && this.enterScope(0); this.type !== k.braceR;) {
1546
+ }, P.parseBlock = function(e, t, n) {
1547
+ for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(O.braceL), e && this.enterScope(0); this.type !== O.braceR;) {
1548
1548
  var r = this.parseStatement(null);
1549
1549
  t.body.push(r);
1550
1550
  }
1551
1551
  return n && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
1552
- }, F.parseFor = function(e, t) {
1553
- return e.init = t, this.expect(k.semi), e.test = this.type === k.semi ? null : this.parseExpression(), this.expect(k.semi), e.update = this.type === k.parenR ? null : this.parseExpression(), this.expect(k.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
1554
- }, F.parseForIn = function(e, t) {
1555
- var n = this.type === k._in;
1556
- 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(k.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, n ? "ForInStatement" : "ForOfStatement");
1557
- }, F.parseVar = function(e, t, n, r) {
1552
+ }, P.parseFor = function(e, t) {
1553
+ return e.init = t, this.expect(O.semi), e.test = this.type === O.semi ? null : this.parseExpression(), this.expect(O.semi), e.update = this.type === O.parenR ? null : this.parseExpression(), this.expect(O.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
1554
+ }, P.parseForIn = function(e, t) {
1555
+ var n = this.type === O._in;
1556
+ 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(O.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, n ? "ForInStatement" : "ForOfStatement");
1557
+ }, P.parseVar = function(e, t, n, r) {
1558
1558
  for (e.declarations = [], e.kind = n;;) {
1559
1559
  var i = this.startNode();
1560
- if (this.parseVarId(i, n), this.eat(k.eq) ? i.init = this.parseMaybeAssign(t) : !r && n === "const" && !(this.type === k._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (n === "using" || n === "await using") && this.options.ecmaVersion >= 17 && this.type !== k._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + n + " declaration") : !r && i.id.type !== "Identifier" && !(t && (this.type === k._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(k.comma)) break;
1560
+ if (this.parseVarId(i, n), this.eat(O.eq) ? i.init = this.parseMaybeAssign(t) : !r && n === "const" && !(this.type === O._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (n === "using" || n === "await using") && this.options.ecmaVersion >= 17 && this.type !== O._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + n + " declaration") : !r && i.id.type !== "Identifier" && !(t && (this.type === O._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(O.comma)) break;
1561
1561
  }
1562
1562
  return e;
1563
- }, F.parseVarId = function(e, t) {
1563
+ }, P.parseVarId = function(e, t) {
1564
1564
  e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? $e : et, !1);
1565
1565
  };
1566
1566
  var lt = 1, ut = 2, dt = 4;
1567
- F.parseFunction = function(e, t, n, r, i) {
1568
- this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === k.star && t & ut && this.unexpected(), e.generator = this.eat(k.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & lt && (e.id = t & dt && this.type !== k.name ? null : this.parseIdent(), e.id && !(t & ut) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? $e : et : tt));
1567
+ P.parseFunction = function(e, t, n, r, i) {
1568
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === O.star && t & ut && this.unexpected(), e.generator = this.eat(O.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & lt && (e.id = t & dt && this.type !== O.name ? null : this.parseIdent(), e.id && !(t & ut) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? $e : et : tt));
1569
1569
  var a = this.yieldPos, o = this.awaitPos, s = this.awaitIdentPos;
1570
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ze(e.async, e.generator)), t & lt || (e.id = this.type === k.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 & lt ? "FunctionDeclaration" : "FunctionExpression");
1571
- }, F.parseFunctionParams = function(e) {
1572
- this.expect(k.parenL), e.params = this.parseBindingList(k.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
1573
- }, F.parseClass = function(e, t) {
1570
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ze(e.async, e.generator)), t & lt || (e.id = this.type === O.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 & lt ? "FunctionDeclaration" : "FunctionExpression");
1571
+ }, P.parseFunctionParams = function(e) {
1572
+ this.expect(O.parenL), e.params = this.parseBindingList(O.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
1573
+ }, P.parseClass = function(e, t) {
1574
1574
  this.next();
1575
1575
  var n = this.strict;
1576
1576
  this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
1577
1577
  var r = this.enterClassBody(), i = this.startNode(), a = !1;
1578
- for (i.body = [], this.expect(k.braceL); this.type !== k.braceR;) {
1578
+ for (i.body = [], this.expect(O.braceL); this.type !== O.braceR;) {
1579
1579
  var o = this.parseClassElement(e.superClass !== null);
1580
1580
  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" && ft(r, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
1581
1581
  }
1582
1582
  return this.strict = n, this.next(), e.body = this.finishNode(i, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
1583
- }, F.parseClassElement = function(e) {
1584
- if (this.eat(k.semi)) return null;
1583
+ }, P.parseClassElement = function(e) {
1584
+ if (this.eat(O.semi)) return null;
1585
1585
  var t = this.options.ecmaVersion, n = this.startNode(), r = "", i = !1, a = !1, o = "method", s = !1;
1586
1586
  if (this.eatContextual("static")) {
1587
- if (t >= 13 && this.eat(k.braceL)) return this.parseClassStaticBlock(n), n;
1588
- this.isClassElementNameStart() || this.type === k.star ? s = !0 : r = "static";
1587
+ if (t >= 13 && this.eat(O.braceL)) return this.parseClassStaticBlock(n), n;
1588
+ this.isClassElementNameStart() || this.type === O.star ? s = !0 : r = "static";
1589
1589
  }
1590
- if (n.static = s, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === k.star) && !this.canInsertSemicolon() ? a = !0 : r = "async"), !r && (t >= 9 || !a) && this.eat(k.star) && (i = !0), !r && !a && !i) {
1590
+ if (n.static = s, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === O.star) && !this.canInsertSemicolon() ? a = !0 : r = "async"), !r && (t >= 9 || !a) && this.eat(O.star) && (i = !0), !r && !a && !i) {
1591
1591
  var c = this.value;
1592
1592
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = c : r = c);
1593
1593
  }
1594
- 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 === k.parenL || o !== "method" || i || a) {
1594
+ 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 === O.parenL || o !== "method" || i || a) {
1595
1595
  var l = !n.static && pt(n, "constructor"), u = l && e;
1596
1596
  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);
1597
1597
  } else this.parseClassField(n);
1598
1598
  return n;
1599
- }, F.isClassElementNameStart = function() {
1600
- return this.type === k.name || this.type === k.privateId || this.type === k.num || this.type === k.string || this.type === k.bracketL || this.type.keyword;
1601
- }, F.parseClassElementName = function(e) {
1602
- this.type === k.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);
1603
- }, F.parseClassMethod = function(e, t, n, r) {
1599
+ }, P.isClassElementNameStart = function() {
1600
+ return this.type === O.name || this.type === O.privateId || this.type === O.num || this.type === O.string || this.type === O.bracketL || this.type.keyword;
1601
+ }, P.parseClassElementName = function(e) {
1602
+ this.type === O.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);
1603
+ }, P.parseClassMethod = function(e, t, n, r) {
1604
1604
  var i = e.key;
1605
1605
  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 && pt(e, "prototype") && this.raise(i.start, "Classes may not have a static property named prototype");
1606
1606
  var a = e.value = this.parseMethod(t, n, r);
1607
1607
  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");
1608
- }, F.parseClassField = function(e) {
1609
- return pt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && pt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(k.eq) ? (this.enterScope(Je | Ge), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
1610
- }, F.parseClassStaticBlock = function(e) {
1608
+ }, P.parseClassField = function(e) {
1609
+ return pt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && pt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(O.eq) ? (this.enterScope(Je | Ge), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
1610
+ }, P.parseClassStaticBlock = function(e) {
1611
1611
  e.body = [];
1612
1612
  var t = this.labels;
1613
- for (this.labels = [], this.enterScope(qe | Ge); this.type !== k.braceR;) {
1613
+ for (this.labels = [], this.enterScope(qe | Ge); this.type !== O.braceR;) {
1614
1614
  var n = this.parseStatement(null);
1615
1615
  e.body.push(n);
1616
1616
  }
1617
1617
  return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
1618
- }, F.parseClassId = function(e, t) {
1619
- this.type === k.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, et, !1)) : (t === !0 && this.unexpected(), e.id = null);
1620
- }, F.parseClassSuper = function(e) {
1621
- e.superClass = this.eat(k._extends) ? this.parseExprSubscripts(null, !1) : null;
1622
- }, F.enterClassBody = function() {
1618
+ }, P.parseClassId = function(e, t) {
1619
+ this.type === O.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, et, !1)) : (t === !0 && this.unexpected(), e.id = null);
1620
+ }, P.parseClassSuper = function(e) {
1621
+ e.superClass = this.eat(O._extends) ? this.parseExprSubscripts(null, !1) : null;
1622
+ }, P.enterClassBody = function() {
1623
1623
  var e = {
1624
1624
  declared: Object.create(null),
1625
1625
  used: []
1626
1626
  };
1627
1627
  return this.privateNameStack.push(e), e.declared;
1628
- }, F.exitClassBody = function() {
1628
+ }, P.exitClassBody = function() {
1629
1629
  var e = this.privateNameStack.pop(), t = e.declared, n = e.used;
1630
1630
  if (this.options.checkPrivateFields) for (var r = this.privateNameStack.length, i = r === 0 ? null : this.privateNameStack[r - 1], a = 0; a < n.length; ++a) {
1631
1631
  var o = n[a];
@@ -1640,14 +1640,14 @@ function pt(e, t) {
1640
1640
  var n = e.computed, r = e.key;
1641
1641
  return !n && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
1642
1642
  }
1643
- F.parseExportAllDeclaration = function(e, t) {
1644
- 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 !== k.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
1645
- }, F.parseExport = function(e, t) {
1646
- if (this.next(), this.eat(k.star)) return this.parseExportAllDeclaration(e, t);
1647
- if (this.eat(k._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
1643
+ P.parseExportAllDeclaration = function(e, t) {
1644
+ 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 !== O.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
1645
+ }, P.parseExport = function(e, t) {
1646
+ if (this.next(), this.eat(O.star)) return this.parseExportAllDeclaration(e, t);
1647
+ if (this.eat(O._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
1648
1648
  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 = []);
1649
1649
  else {
1650
- if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== k.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
1650
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== O.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
1651
1651
  else {
1652
1652
  for (var n = 0, r = e.specifiers; n < r.length; n += 1) {
1653
1653
  var i = r[n];
@@ -1658,23 +1658,23 @@ F.parseExportAllDeclaration = function(e, t) {
1658
1658
  this.semicolon();
1659
1659
  }
1660
1660
  return this.finishNode(e, "ExportNamedDeclaration");
1661
- }, F.parseExportDeclaration = function(e) {
1661
+ }, P.parseExportDeclaration = function(e) {
1662
1662
  return this.parseStatement(null);
1663
- }, F.parseExportDefaultDeclaration = function() {
1663
+ }, P.parseExportDefaultDeclaration = function() {
1664
1664
  var e;
1665
- if (this.type === k._function || (e = this.isAsyncFunction())) {
1665
+ if (this.type === O._function || (e = this.isAsyncFunction())) {
1666
1666
  var t = this.startNode();
1667
1667
  return this.next(), e && this.next(), this.parseFunction(t, lt | dt, !1, e);
1668
1668
  }
1669
- if (this.type === k._class) {
1669
+ if (this.type === O._class) {
1670
1670
  var n = this.startNode();
1671
1671
  return this.parseClass(n, "nullableID");
1672
1672
  }
1673
1673
  var r = this.parseMaybeAssign();
1674
1674
  return this.semicolon(), r;
1675
- }, F.checkExport = function(e, t, n) {
1675
+ }, P.checkExport = function(e, t, n) {
1676
1676
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), Ee(e, t) && this.raiseRecoverable(n, "Duplicate export '" + t + "'"), e[t] = !0);
1677
- }, F.checkPatternExport = function(e, t) {
1677
+ }, P.checkPatternExport = function(e, t) {
1678
1678
  var n = t.type;
1679
1679
  if (n === "Identifier") this.checkExport(e, t, t.start);
1680
1680
  else if (n === "ObjectPattern") for (var r = 0, i = t.properties; r < i.length; r += 1) {
@@ -1686,72 +1686,72 @@ F.parseExportAllDeclaration = function(e, t) {
1686
1686
  c && this.checkPatternExport(e, c);
1687
1687
  }
1688
1688
  else n === "Property" ? this.checkPatternExport(e, t.value) : n === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : n === "RestElement" && this.checkPatternExport(e, t.argument);
1689
- }, F.checkVariableExport = function(e, t) {
1689
+ }, P.checkVariableExport = function(e, t) {
1690
1690
  if (e) for (var n = 0, r = t; n < r.length; n += 1) {
1691
1691
  var i = r[n];
1692
1692
  this.checkPatternExport(e, i.id);
1693
1693
  }
1694
- }, F.shouldParseExportStatement = function() {
1694
+ }, P.shouldParseExportStatement = function() {
1695
1695
  return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
1696
- }, F.parseExportSpecifier = function(e) {
1696
+ }, P.parseExportSpecifier = function(e) {
1697
1697
  var t = this.startNode();
1698
1698
  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");
1699
- }, F.parseExportSpecifiers = function(e) {
1699
+ }, P.parseExportSpecifiers = function(e) {
1700
1700
  var t = [], n = !0;
1701
- for (this.expect(k.braceL); !this.eat(k.braceR);) {
1701
+ for (this.expect(O.braceL); !this.eat(O.braceR);) {
1702
1702
  if (n) n = !1;
1703
- else if (this.expect(k.comma), this.afterTrailingComma(k.braceR)) break;
1703
+ else if (this.expect(O.comma), this.afterTrailingComma(O.braceR)) break;
1704
1704
  t.push(this.parseExportSpecifier(e));
1705
1705
  }
1706
1706
  return t;
1707
- }, F.parseImport = function(e) {
1708
- return this.next(), this.type === k.string ? (e.specifiers = ct, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === k.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
1709
- }, F.parseImportSpecifier = function() {
1707
+ }, P.parseImport = function(e) {
1708
+ return this.next(), this.type === O.string ? (e.specifiers = ct, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === O.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
1709
+ }, P.parseImportSpecifier = function() {
1710
1710
  var e = this.startNode();
1711
1711
  return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, et), this.finishNode(e, "ImportSpecifier");
1712
- }, F.parseImportDefaultSpecifier = function() {
1712
+ }, P.parseImportDefaultSpecifier = function() {
1713
1713
  var e = this.startNode();
1714
1714
  return e.local = this.parseIdent(), this.checkLValSimple(e.local, et), this.finishNode(e, "ImportDefaultSpecifier");
1715
- }, F.parseImportNamespaceSpecifier = function() {
1715
+ }, P.parseImportNamespaceSpecifier = function() {
1716
1716
  var e = this.startNode();
1717
1717
  return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, et), this.finishNode(e, "ImportNamespaceSpecifier");
1718
- }, F.parseImportSpecifiers = function() {
1718
+ }, P.parseImportSpecifiers = function() {
1719
1719
  var e = [], t = !0;
1720
- if (this.type === k.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(k.comma))) return e;
1721
- if (this.type === k.star) return e.push(this.parseImportNamespaceSpecifier()), e;
1722
- for (this.expect(k.braceL); !this.eat(k.braceR);) {
1720
+ if (this.type === O.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(O.comma))) return e;
1721
+ if (this.type === O.star) return e.push(this.parseImportNamespaceSpecifier()), e;
1722
+ for (this.expect(O.braceL); !this.eat(O.braceR);) {
1723
1723
  if (t) t = !1;
1724
- else if (this.expect(k.comma), this.afterTrailingComma(k.braceR)) break;
1724
+ else if (this.expect(O.comma), this.afterTrailingComma(O.braceR)) break;
1725
1725
  e.push(this.parseImportSpecifier());
1726
1726
  }
1727
1727
  return e;
1728
- }, F.parseWithClause = function() {
1728
+ }, P.parseWithClause = function() {
1729
1729
  var e = [];
1730
- if (!this.eat(k._with)) return e;
1731
- this.expect(k.braceL);
1732
- for (var t = {}, n = !0; !this.eat(k.braceR);) {
1730
+ if (!this.eat(O._with)) return e;
1731
+ this.expect(O.braceL);
1732
+ for (var t = {}, n = !0; !this.eat(O.braceR);) {
1733
1733
  if (n) n = !1;
1734
- else if (this.expect(k.comma), this.afterTrailingComma(k.braceR)) break;
1734
+ else if (this.expect(O.comma), this.afterTrailingComma(O.braceR)) break;
1735
1735
  var r = this.parseImportAttribute(), i = r.key.type === "Identifier" ? r.key.name : r.key.value;
1736
1736
  Ee(t, i) && this.raiseRecoverable(r.key.start, "Duplicate attribute key '" + i + "'"), t[i] = !0, e.push(r);
1737
1737
  }
1738
1738
  return e;
1739
- }, F.parseImportAttribute = function() {
1739
+ }, P.parseImportAttribute = function() {
1740
1740
  var e = this.startNode();
1741
- return e.key = this.type === k.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(k.colon), this.type !== k.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
1742
- }, F.parseModuleExportName = function() {
1743
- if (this.options.ecmaVersion >= 13 && this.type === k.string) {
1741
+ return e.key = this.type === O.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(O.colon), this.type !== O.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
1742
+ }, P.parseModuleExportName = function() {
1743
+ if (this.options.ecmaVersion >= 13 && this.type === O.string) {
1744
1744
  var e = this.parseLiteral(this.value);
1745
1745
  return je.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1746
1746
  }
1747
1747
  return this.parseIdent(!0);
1748
- }, F.adaptDirectivePrologue = function(e) {
1748
+ }, P.adaptDirectivePrologue = function(e) {
1749
1749
  for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
1750
- }, F.isDirectiveCandidate = function(e) {
1750
+ }, P.isDirectiveCandidate = function(e) {
1751
1751
  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] === "'");
1752
1752
  };
1753
- var I = M.prototype;
1754
- I.toAssignable = function(e, t, n) {
1753
+ var F = j.prototype;
1754
+ F.toAssignable = function(e, t, n) {
1755
1755
  if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
1756
1756
  case "Identifier":
1757
1757
  this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
@@ -1790,7 +1790,7 @@ I.toAssignable = function(e, t, n) {
1790
1790
  }
1791
1791
  else n && this.checkPatternErrors(n, !0);
1792
1792
  return e;
1793
- }, I.toAssignableList = function(e, t) {
1793
+ }, F.toAssignableList = function(e, t) {
1794
1794
  for (var n = e.length, r = 0; r < n; r++) {
1795
1795
  var i = e[r];
1796
1796
  i && this.toAssignable(i, t);
@@ -1800,39 +1800,39 @@ I.toAssignable = function(e, t, n) {
1800
1800
  this.options.ecmaVersion === 6 && t && a && a.type === "RestElement" && a.argument.type !== "Identifier" && this.unexpected(a.argument.start);
1801
1801
  }
1802
1802
  return e;
1803
- }, I.parseSpread = function(e) {
1803
+ }, F.parseSpread = function(e) {
1804
1804
  var t = this.startNode();
1805
1805
  return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
1806
- }, I.parseRestBinding = function() {
1806
+ }, F.parseRestBinding = function() {
1807
1807
  var e = this.startNode();
1808
- return this.next(), this.options.ecmaVersion === 6 && this.type !== k.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1809
- }, I.parseBindingAtom = function() {
1808
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== O.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1809
+ }, F.parseBindingAtom = function() {
1810
1810
  if (this.options.ecmaVersion >= 6) switch (this.type) {
1811
- case k.bracketL:
1811
+ case O.bracketL:
1812
1812
  var e = this.startNode();
1813
- return this.next(), e.elements = this.parseBindingList(k.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
1814
- case k.braceL: return this.parseObj(!0);
1813
+ return this.next(), e.elements = this.parseBindingList(O.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
1814
+ case O.braceL: return this.parseObj(!0);
1815
1815
  }
1816
1816
  return this.parseIdent();
1817
- }, I.parseBindingList = function(e, t, n, r) {
1818
- for (var i = [], a = !0; !this.eat(e);) if (a ? a = !1 : this.expect(k.comma), t && this.type === k.comma) i.push(null);
1817
+ }, F.parseBindingList = function(e, t, n, r) {
1818
+ for (var i = [], a = !0; !this.eat(e);) if (a ? a = !1 : this.expect(O.comma), t && this.type === O.comma) i.push(null);
1819
1819
  else if (n && this.afterTrailingComma(e)) break;
1820
- else if (this.type === k.ellipsis) {
1820
+ else if (this.type === O.ellipsis) {
1821
1821
  var o = this.parseRestBinding();
1822
- this.parseBindingListItem(o), i.push(o), this.type === k.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1822
+ this.parseBindingListItem(o), i.push(o), this.type === O.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1823
1823
  break;
1824
1824
  } else i.push(this.parseAssignableListItem(r));
1825
1825
  return i;
1826
- }, I.parseAssignableListItem = function(e) {
1826
+ }, F.parseAssignableListItem = function(e) {
1827
1827
  var t = this.parseMaybeDefault(this.start, this.startLoc);
1828
1828
  return this.parseBindingListItem(t), t;
1829
- }, I.parseBindingListItem = function(e) {
1829
+ }, F.parseBindingListItem = function(e) {
1830
1830
  return e;
1831
- }, I.parseMaybeDefault = function(e, t, n) {
1832
- if (n ||= this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(k.eq)) return n;
1831
+ }, F.parseMaybeDefault = function(e, t, n) {
1832
+ if (n ||= this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(O.eq)) return n;
1833
1833
  var r = this.startNodeAt(e, t);
1834
1834
  return r.left = n, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
1835
- }, I.checkLValSimple = function(e, t, n) {
1835
+ }, F.checkLValSimple = function(e, t, n) {
1836
1836
  t === void 0 && (t = Qe);
1837
1837
  var r = t !== Qe;
1838
1838
  switch (e.type) {
@@ -1848,7 +1848,7 @@ I.toAssignable = function(e, t, n) {
1848
1848
  case "ParenthesizedExpression": return r && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, n);
1849
1849
  default: this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
1850
1850
  }
1851
- }, I.checkLValPattern = function(e, t, n) {
1851
+ }, F.checkLValPattern = function(e, t, n) {
1852
1852
  switch (t === void 0 && (t = Qe), e.type) {
1853
1853
  case "ObjectPattern":
1854
1854
  for (var r = 0, i = e.properties; r < i.length; r += 1) {
@@ -1864,7 +1864,7 @@ I.toAssignable = function(e, t, n) {
1864
1864
  break;
1865
1865
  default: this.checkLValSimple(e, t, n);
1866
1866
  }
1867
- }, I.checkLValInnerPattern = function(e, t, n) {
1867
+ }, F.checkLValInnerPattern = function(e, t, n) {
1868
1868
  switch (t === void 0 && (t = Qe), e.type) {
1869
1869
  case "Property":
1870
1870
  this.checkLValInnerPattern(e.value, t, n);
@@ -1878,29 +1878,29 @@ I.toAssignable = function(e, t, n) {
1878
1878
  default: this.checkLValPattern(e, t, n);
1879
1879
  }
1880
1880
  };
1881
- var L = function(e, t, n, r, i) {
1881
+ var I = function(e, t, n, r, i) {
1882
1882
  this.token = e, this.isExpr = !!t, this.preserveSpace = !!n, this.override = r, this.generator = !!i;
1883
- }, R = {
1884
- b_stat: new L("{", !1),
1885
- b_expr: new L("{", !0),
1886
- b_tmpl: new L("${", !1),
1887
- p_stat: new L("(", !1),
1888
- p_expr: new L("(", !0),
1889
- q_tmpl: new L("`", !0, !0, function(e) {
1883
+ }, L = {
1884
+ b_stat: new I("{", !1),
1885
+ b_expr: new I("{", !0),
1886
+ b_tmpl: new I("${", !1),
1887
+ p_stat: new I("(", !1),
1888
+ p_expr: new I("(", !0),
1889
+ q_tmpl: new I("`", !0, !0, function(e) {
1890
1890
  return e.tryReadTemplateToken();
1891
1891
  }),
1892
- f_stat: new L("function", !1),
1893
- f_expr: new L("function", !0),
1894
- f_expr_gen: new L("function", !0, !1, null, !0),
1895
- f_gen: new L("function", !1, !1, null, !0)
1896
- }, mt = M.prototype;
1892
+ f_stat: new I("function", !1),
1893
+ f_expr: new I("function", !0),
1894
+ f_expr_gen: new I("function", !0, !1, null, !0),
1895
+ f_gen: new I("function", !1, !1, null, !0)
1896
+ }, mt = j.prototype;
1897
1897
  mt.initialContext = function() {
1898
- return [R.b_stat];
1898
+ return [L.b_stat];
1899
1899
  }, mt.curContext = function() {
1900
1900
  return this.context[this.context.length - 1];
1901
1901
  }, mt.braceIsBlock = function(e) {
1902
1902
  var t = this.curContext();
1903
- return t === R.f_expr || t === R.f_stat ? !0 : e === k.colon && (t === R.b_stat || t === R.b_expr) ? !t.isExpr : e === k._return || e === k.name && this.exprAllowed ? A.test(this.input.slice(this.lastTokEnd, this.start)) : e === k._else || e === k.semi || e === k.eof || e === k.parenR || e === k.arrow ? !0 : e === k.braceL ? t === R.b_stat : e === k._var || e === k._const || e === k.name ? !1 : !this.exprAllowed;
1903
+ return t === L.f_expr || t === L.f_stat ? !0 : e === O.colon && (t === L.b_stat || t === L.b_expr) ? !t.isExpr : e === O._return || e === O.name && this.exprAllowed ? k.test(this.input.slice(this.lastTokEnd, this.start)) : e === O._else || e === O.semi || e === O.eof || e === O.parenR || e === O.arrow ? !0 : e === O.braceL ? t === L.b_stat : e === O._var || e === O._const || e === O.name ? !1 : !this.exprAllowed;
1904
1904
  }, mt.inGeneratorContext = function() {
1905
1905
  for (var e = this.context.length - 1; e >= 1; e--) {
1906
1906
  var t = this.context[e];
@@ -1909,41 +1909,41 @@ mt.initialContext = function() {
1909
1909
  return !1;
1910
1910
  }, mt.updateContext = function(e) {
1911
1911
  var t, n = this.type;
1912
- n.keyword && e === k.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
1912
+ n.keyword && e === O.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
1913
1913
  }, mt.overrideContext = function(e) {
1914
1914
  this.curContext() !== e && (this.context[this.context.length - 1] = e);
1915
- }, k.parenR.updateContext = k.braceR.updateContext = function() {
1915
+ }, O.parenR.updateContext = O.braceR.updateContext = function() {
1916
1916
  if (this.context.length === 1) {
1917
1917
  this.exprAllowed = !0;
1918
1918
  return;
1919
1919
  }
1920
1920
  var e = this.context.pop();
1921
- e === R.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1922
- }, k.braceL.updateContext = function(e) {
1923
- this.context.push(this.braceIsBlock(e) ? R.b_stat : R.b_expr), this.exprAllowed = !0;
1924
- }, k.dollarBraceL.updateContext = function() {
1925
- this.context.push(R.b_tmpl), this.exprAllowed = !0;
1926
- }, k.parenL.updateContext = function(e) {
1927
- var t = e === k._if || e === k._for || e === k._with || e === k._while;
1928
- this.context.push(t ? R.p_stat : R.p_expr), this.exprAllowed = !0;
1929
- }, k.incDec.updateContext = function() {}, k._function.updateContext = k._class.updateContext = function(e) {
1930
- e.beforeExpr && e !== k._else && (e !== k.semi || this.curContext() === R.p_stat) && !(e === k._return && A.test(this.input.slice(this.lastTokEnd, this.start))) && (e !== k.colon && e !== k.braceL || this.curContext() !== R.b_stat) ? this.context.push(R.f_expr) : this.context.push(R.f_stat), this.exprAllowed = !1;
1931
- }, k.colon.updateContext = function() {
1921
+ e === L.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1922
+ }, O.braceL.updateContext = function(e) {
1923
+ this.context.push(this.braceIsBlock(e) ? L.b_stat : L.b_expr), this.exprAllowed = !0;
1924
+ }, O.dollarBraceL.updateContext = function() {
1925
+ this.context.push(L.b_tmpl), this.exprAllowed = !0;
1926
+ }, O.parenL.updateContext = function(e) {
1927
+ var t = e === O._if || e === O._for || e === O._with || e === O._while;
1928
+ this.context.push(t ? L.p_stat : L.p_expr), this.exprAllowed = !0;
1929
+ }, O.incDec.updateContext = function() {}, O._function.updateContext = O._class.updateContext = function(e) {
1930
+ e.beforeExpr && e !== O._else && (e !== O.semi || this.curContext() === L.p_stat) && !(e === O._return && k.test(this.input.slice(this.lastTokEnd, this.start))) && (e !== O.colon && e !== O.braceL || this.curContext() !== L.b_stat) ? this.context.push(L.f_expr) : this.context.push(L.f_stat), this.exprAllowed = !1;
1931
+ }, O.colon.updateContext = function() {
1932
1932
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
1933
- }, k.backQuote.updateContext = function() {
1934
- this.curContext() === R.q_tmpl ? this.context.pop() : this.context.push(R.q_tmpl), this.exprAllowed = !1;
1935
- }, k.star.updateContext = function(e) {
1936
- if (e === k._function) {
1933
+ }, O.backQuote.updateContext = function() {
1934
+ this.curContext() === L.q_tmpl ? this.context.pop() : this.context.push(L.q_tmpl), this.exprAllowed = !1;
1935
+ }, O.star.updateContext = function(e) {
1936
+ if (e === O._function) {
1937
1937
  var t = this.context.length - 1;
1938
- this.context[t] === R.f_expr ? this.context[t] = R.f_expr_gen : this.context[t] = R.f_gen;
1938
+ this.context[t] === L.f_expr ? this.context[t] = L.f_expr_gen : this.context[t] = L.f_gen;
1939
1939
  }
1940
1940
  this.exprAllowed = !0;
1941
- }, k.name.updateContext = function(e) {
1941
+ }, O.name.updateContext = function(e) {
1942
1942
  var t = !1;
1943
- this.options.ecmaVersion >= 6 && e !== k.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
1943
+ this.options.ecmaVersion >= 6 && e !== O.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
1944
1944
  };
1945
- var z = M.prototype;
1946
- z.checkPropClash = function(e, t, n) {
1945
+ var R = j.prototype;
1946
+ R.checkPropClash = function(e, t, n) {
1947
1947
  if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1948
1948
  var r = e.key, i;
1949
1949
  switch (r.type) {
@@ -1968,18 +1968,18 @@ z.checkPropClash = function(e, t, n) {
1968
1968
  set: !1
1969
1969
  }, o[a] = !0;
1970
1970
  }
1971
- }, z.parseExpression = function(e, t) {
1971
+ }, R.parseExpression = function(e, t) {
1972
1972
  var n = this;
1973
1973
  return this.catchStackOverflow(function() {
1974
1974
  var r = n.start, i = n.startLoc, a = n.parseMaybeAssign(e, t);
1975
- if (n.type === k.comma) {
1975
+ if (n.type === O.comma) {
1976
1976
  var o = n.startNodeAt(r, i);
1977
- for (o.expressions = [a]; n.eat(k.comma);) o.expressions.push(n.parseMaybeAssign(e, t));
1977
+ for (o.expressions = [a]; n.eat(O.comma);) o.expressions.push(n.parseMaybeAssign(e, t));
1978
1978
  return n.finishNode(o, "SequenceExpression");
1979
1979
  }
1980
1980
  return a;
1981
1981
  });
1982
- }, z.parseMaybeAssign = function(e, t, n) {
1982
+ }, R.parseMaybeAssign = function(e, t, n) {
1983
1983
  if (this.isContextual("yield")) {
1984
1984
  if (this.inGenerator) return this.parseYield(e);
1985
1985
  this.exprAllowed = !1;
@@ -1987,46 +1987,46 @@ z.checkPropClash = function(e, t, n) {
1987
1987
  var r = !1, i = -1, a = -1, o = -1;
1988
1988
  t ? (i = t.parenthesizedAssign, a = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new at(), r = !0);
1989
1989
  var s = this.start, c = this.startLoc;
1990
- (this.type === k.parenL || this.type === k.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1990
+ (this.type === O.parenL || this.type === O.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1991
1991
  var l = this.parseMaybeConditional(e, t);
1992
1992
  if (n && (l = n.call(this, l, s, c)), this.type.isAssign) {
1993
1993
  var u = this.startNodeAt(s, c);
1994
- return u.operator = this.value, this.type === k.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === k.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");
1994
+ return u.operator = this.value, this.type === O.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === O.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");
1995
1995
  }
1996
1996
  return r && this.checkExpressionErrors(t, !0), i > -1 && (t.parenthesizedAssign = i), a > -1 && (t.trailingComma = a), l;
1997
- }, z.parseMaybeConditional = function(e, t) {
1997
+ }, R.parseMaybeConditional = function(e, t) {
1998
1998
  var n = this.start, r = this.startLoc, i = this.parseExprOps(e, t);
1999
1999
  if (this.checkExpressionErrors(t)) return i;
2000
- if ((i.type !== "ArrowFunctionExpression" || i.start !== n) && this.eat(k.question)) {
2000
+ if ((i.type !== "ArrowFunctionExpression" || i.start !== n) && this.eat(O.question)) {
2001
2001
  var a = this.startNodeAt(n, r);
2002
- return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(k.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
2002
+ return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(O.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
2003
2003
  }
2004
2004
  return i;
2005
- }, z.parseExprOps = function(e, t) {
2005
+ }, R.parseExprOps = function(e, t) {
2006
2006
  var n = this.start, r = this.startLoc, i = this.parseMaybeUnary(t, !1, !1, e);
2007
2007
  return this.checkExpressionErrors(t) || i.start === n && i.type === "ArrowFunctionExpression" ? i : this.parseExprOp(i, n, r, -1, e);
2008
- }, z.parseExprOp = function(e, t, n, r, i) {
2008
+ }, R.parseExprOp = function(e, t, n, r, i) {
2009
2009
  var a = this.type.binop;
2010
- if (a != null && (!i || this.type !== k._in) && a > r) {
2011
- var o = this.type === k.logicalOR || this.type === k.logicalAND, s = this.type === k.coalesce;
2012
- s && (a = k.logicalAND.binop);
2010
+ if (a != null && (!i || this.type !== O._in) && a > r) {
2011
+ var o = this.type === O.logicalOR || this.type === O.logicalAND, s = this.type === O.coalesce;
2012
+ s && (a = O.logicalAND.binop);
2013
2013
  var c = this.value;
2014
2014
  this.next();
2015
2015
  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);
2016
- return (o && this.type === k.coalesce || s && (this.type === k.logicalOR || this.type === k.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, t, n, r, i);
2016
+ return (o && this.type === O.coalesce || s && (this.type === O.logicalOR || this.type === O.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, t, n, r, i);
2017
2017
  }
2018
2018
  return e;
2019
- }, z.buildBinary = function(e, t, n, r, i, a) {
2019
+ }, R.buildBinary = function(e, t, n, r, i, a) {
2020
2020
  r.type === "PrivateIdentifier" && this.raise(r.start, "Private identifier can only be left side of binary expression");
2021
2021
  var o = this.startNodeAt(e, t);
2022
2022
  return o.left = n, o.operator = i, o.right = r, this.finishNode(o, a ? "LogicalExpression" : "BinaryExpression");
2023
- }, z.parseMaybeUnary = function(e, t, n, r) {
2023
+ }, R.parseMaybeUnary = function(e, t, n, r) {
2024
2024
  var i = this.start, a = this.startLoc, o;
2025
2025
  if (this.isContextual("await") && this.canAwait) o = this.parseAwait(r), t = !0;
2026
2026
  else if (this.type.prefix) {
2027
- var s = this.startNode(), c = this.type === k.incDec;
2027
+ var s = this.startNode(), c = this.type === O.incDec;
2028
2028
  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" && ht(s.argument) ? this.raiseRecoverable(s.start, "Deleting local variable in strict mode") : s.operator === "delete" && gt(s.argument) ? this.raiseRecoverable(s.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(s, c ? "UpdateExpression" : "UnaryExpression");
2029
- } else if (!t && this.type === k.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== k._in && this.unexpected();
2029
+ } else if (!t && this.type === O.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== O._in && this.unexpected();
2030
2030
  else {
2031
2031
  if (o = this.parseExprSubscripts(e, r), this.checkExpressionErrors(e)) return o;
2032
2032
  for (; this.type.postfix && !this.canInsertSemicolon();) {
@@ -2034,7 +2034,7 @@ z.checkPropClash = function(e, t, n) {
2034
2034
  l.operator = this.value, l.prefix = !1, l.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(l, "UpdateExpression");
2035
2035
  }
2036
2036
  }
2037
- if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(k.starstar)) {
2037
+ if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(O.starstar)) {
2038
2038
  if (t) this.unexpected(this.lastTokStart);
2039
2039
  else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
2040
2040
  } else return o;
@@ -2045,12 +2045,12 @@ function ht(e) {
2045
2045
  function gt(e) {
2046
2046
  return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && gt(e.expression) || e.type === "ParenthesizedExpression" && gt(e.expression);
2047
2047
  }
2048
- z.parseExprSubscripts = function(e, t) {
2048
+ R.parseExprSubscripts = function(e, t) {
2049
2049
  var n = this.start, r = this.startLoc, i = this.parseExprAtom(e, t);
2050
2050
  if (i.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return i;
2051
2051
  var a = this.parseSubscripts(i, n, r, !1, t);
2052
2052
  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;
2053
- }, z.parseSubscripts = function(e, t, n, r, i) {
2053
+ }, R.parseSubscripts = function(e, t, n, r, i) {
2054
2054
  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;;) {
2055
2055
  var s = this.parseSubscript(e, t, n, r, a, o, i);
2056
2056
  if (s.optional && (o = !0), s === e || s.type === "ArrowFunctionExpression") {
@@ -2062,116 +2062,116 @@ z.parseExprSubscripts = function(e, t) {
2062
2062
  }
2063
2063
  e = s;
2064
2064
  }
2065
- }, z.shouldParseAsyncArrow = function() {
2066
- return !this.canInsertSemicolon() && this.eat(k.arrow);
2067
- }, z.parseSubscriptAsyncArrow = function(e, t, n, r) {
2065
+ }, R.shouldParseAsyncArrow = function() {
2066
+ return !this.canInsertSemicolon() && this.eat(O.arrow);
2067
+ }, R.parseSubscriptAsyncArrow = function(e, t, n, r) {
2068
2068
  return this.parseArrowExpression(this.startNodeAt(e, t), n, !0, r);
2069
- }, z.parseSubscript = function(e, t, n, r, i, a, o) {
2070
- var s = this.options.ecmaVersion >= 11, c = s && this.eat(k.questionDot);
2069
+ }, R.parseSubscript = function(e, t, n, r, i, a, o) {
2070
+ var s = this.options.ecmaVersion >= 11, c = s && this.eat(O.questionDot);
2071
2071
  r && c && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
2072
- var l = this.eat(k.bracketL);
2073
- if (l || c && this.type !== k.parenL && this.type !== k.backQuote || this.eat(k.dot)) {
2072
+ var l = this.eat(O.bracketL);
2073
+ if (l || c && this.type !== O.parenL && this.type !== O.backQuote || this.eat(O.dot)) {
2074
2074
  var u = this.startNodeAt(t, n);
2075
- u.object = e, l ? (u.property = this.parseExpression(), this.expect(k.bracketR)) : u.property = this.type === k.privateId && e.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
2076
- } else if (!r && this.eat(k.parenL)) {
2075
+ u.object = e, l ? (u.property = this.parseExpression(), this.expect(O.bracketR)) : u.property = this.type === O.privateId && e.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
2076
+ } else if (!r && this.eat(O.parenL)) {
2077
2077
  var d = new at(), f = this.yieldPos, p = this.awaitPos, m = this.awaitIdentPos;
2078
2078
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
2079
- var h = this.parseExprList(k.parenR, this.options.ecmaVersion >= 8, !1, d);
2079
+ var h = this.parseExprList(O.parenR, this.options.ecmaVersion >= 8, !1, d);
2080
2080
  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);
2081
2081
  this.checkExpressionErrors(d, !0), this.yieldPos = f || this.yieldPos, this.awaitPos = p || this.awaitPos, this.awaitIdentPos = m || this.awaitIdentPos;
2082
2082
  var g = this.startNodeAt(t, n);
2083
2083
  g.callee = e, g.arguments = h, s && (g.optional = c), e = this.finishNode(g, "CallExpression");
2084
- } else if (this.type === k.backQuote) {
2084
+ } else if (this.type === O.backQuote) {
2085
2085
  (c || a) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
2086
2086
  var _ = this.startNodeAt(t, n);
2087
2087
  _.tag = e, _.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(_, "TaggedTemplateExpression");
2088
2088
  }
2089
2089
  return e;
2090
- }, z.parseExprAtom = function(e, t, n) {
2091
- this.type === k.slash && this.readRegexp();
2090
+ }, R.parseExprAtom = function(e, t, n) {
2091
+ this.type === O.slash && this.readRegexp();
2092
2092
  var r, i = this.potentialArrowAt === this.start;
2093
2093
  switch (this.type) {
2094
- case k._super: return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === k.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== k.dot && this.type !== k.bracketL && this.type !== k.parenL && this.unexpected(), this.finishNode(r, "Super");
2095
- case k._this: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
2096
- case k.name:
2094
+ case O._super: return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === O.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== O.dot && this.type !== O.bracketL && this.type !== O.parenL && this.unexpected(), this.finishNode(r, "Super");
2095
+ case O._this: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
2096
+ case O.name:
2097
2097
  var a = this.start, o = this.startLoc, s = this.containsEsc, c = this.parseIdent(!1);
2098
- if (this.options.ecmaVersion >= 8 && !s && c.name === "async" && !this.canInsertSemicolon() && this.eat(k._function)) return this.overrideContext(R.f_expr), this.parseFunction(this.startNodeAt(a, o), 0, !1, !0, t);
2098
+ if (this.options.ecmaVersion >= 8 && !s && c.name === "async" && !this.canInsertSemicolon() && this.eat(O._function)) return this.overrideContext(L.f_expr), this.parseFunction(this.startNodeAt(a, o), 0, !1, !0, t);
2099
2099
  if (i && !this.canInsertSemicolon()) {
2100
- if (this.eat(k.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o), [c], !1, t);
2101
- if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === k.name && !s && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(k.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o), [c], !0, t);
2100
+ if (this.eat(O.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o), [c], !1, t);
2101
+ if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === O.name && !s && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(O.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o), [c], !0, t);
2102
2102
  }
2103
2103
  return c;
2104
- case k.regexp:
2104
+ case O.regexp:
2105
2105
  var l = this.value;
2106
2106
  return r = this.parseLiteral(l.value), r.regex = {
2107
2107
  pattern: l.pattern,
2108
2108
  flags: l.flags
2109
2109
  }, r;
2110
- case k.num:
2111
- case k.string: return this.parseLiteral(this.value);
2112
- case k._null:
2113
- case k._true:
2114
- case k._false: return r = this.startNode(), r.value = this.type === k._null ? null : this.type === k._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
2115
- case k.parenL:
2110
+ case O.num:
2111
+ case O.string: return this.parseLiteral(this.value);
2112
+ case O._null:
2113
+ case O._true:
2114
+ case O._false: return r = this.startNode(), r.value = this.type === O._null ? null : this.type === O._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
2115
+ case O.parenL:
2116
2116
  var u = this.start, d = this.parseParenAndDistinguishExpression(i, t);
2117
2117
  return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(d) && (e.parenthesizedAssign = u), e.parenthesizedBind < 0 && (e.parenthesizedBind = u)), d;
2118
- case k.bracketL: return r = this.startNode(), this.next(), r.elements = this.parseExprList(k.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
2119
- case k.braceL: return this.overrideContext(R.b_expr), this.parseObj(!1, e);
2120
- case k._function: return r = this.startNode(), this.next(), this.parseFunction(r, 0);
2121
- case k._class: return this.parseClass(this.startNode(), !1);
2122
- case k._new: return this.parseNew();
2123
- case k.backQuote: return this.parseTemplate();
2124
- case k._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(n) : this.unexpected();
2118
+ case O.bracketL: return r = this.startNode(), this.next(), r.elements = this.parseExprList(O.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
2119
+ case O.braceL: return this.overrideContext(L.b_expr), this.parseObj(!1, e);
2120
+ case O._function: return r = this.startNode(), this.next(), this.parseFunction(r, 0);
2121
+ case O._class: return this.parseClass(this.startNode(), !1);
2122
+ case O._new: return this.parseNew();
2123
+ case O.backQuote: return this.parseTemplate();
2124
+ case O._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(n) : this.unexpected();
2125
2125
  default: return this.parseExprAtomDefault();
2126
2126
  }
2127
- }, z.parseExprAtomDefault = function() {
2127
+ }, R.parseExprAtomDefault = function() {
2128
2128
  this.unexpected();
2129
- }, z.parseExprImport = function(e) {
2129
+ }, R.parseExprImport = function(e) {
2130
2130
  var t = this.startNode();
2131
- if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === k.parenL && !e) return this.parseDynamicImport(t);
2132
- if (this.type === k.dot) {
2131
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === O.parenL && !e) return this.parseDynamicImport(t);
2132
+ if (this.type === O.dot) {
2133
2133
  var n = this.startNodeAt(t.start, t.loc && t.loc.start);
2134
2134
  return n.name = "import", t.meta = this.finishNode(n, "Identifier"), this.parseImportMeta(t);
2135
2135
  }
2136
2136
  this.unexpected();
2137
- }, z.parseDynamicImport = function(e) {
2138
- if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(k.parenR) ? e.options = null : (this.expect(k.comma), this.afterTrailingComma(k.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(k.parenR) || (this.expect(k.comma), this.afterTrailingComma(k.parenR) || this.unexpected())));
2139
- else if (!this.eat(k.parenR)) {
2137
+ }, R.parseDynamicImport = function(e) {
2138
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(O.parenR) ? e.options = null : (this.expect(O.comma), this.afterTrailingComma(O.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(O.parenR) || (this.expect(O.comma), this.afterTrailingComma(O.parenR) || this.unexpected())));
2139
+ else if (!this.eat(O.parenR)) {
2140
2140
  var t = this.start;
2141
- this.eat(k.comma) && this.eat(k.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
2141
+ this.eat(O.comma) && this.eat(O.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
2142
2142
  }
2143
2143
  return this.finishNode(e, "ImportExpression");
2144
- }, z.parseImportMeta = function(e) {
2144
+ }, R.parseImportMeta = function(e) {
2145
2145
  this.next();
2146
2146
  var t = this.containsEsc;
2147
2147
  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");
2148
- }, z.parseLiteral = function(e) {
2148
+ }, R.parseLiteral = function(e) {
2149
2149
  var t = this.startNode();
2150
2150
  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");
2151
- }, z.parseParenExpression = function() {
2152
- this.expect(k.parenL);
2151
+ }, R.parseParenExpression = function() {
2152
+ this.expect(O.parenL);
2153
2153
  var e = this.parseExpression();
2154
- return this.expect(k.parenR), e;
2155
- }, z.shouldParseArrow = function(e) {
2154
+ return this.expect(O.parenR), e;
2155
+ }, R.shouldParseArrow = function(e) {
2156
2156
  return !this.canInsertSemicolon();
2157
- }, z.parseParenAndDistinguishExpression = function(e, t) {
2157
+ }, R.parseParenAndDistinguishExpression = function(e, t) {
2158
2158
  var n = this.start, r = this.startLoc, i, a = this.options.ecmaVersion >= 8;
2159
2159
  if (this.options.ecmaVersion >= 6) {
2160
2160
  this.next();
2161
2161
  var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new at(), f = this.yieldPos, p = this.awaitPos, m;
2162
- for (this.yieldPos = 0, this.awaitPos = 0; this.type !== k.parenR;) {
2163
- if (l ? l = !1 : this.expect(k.comma), a && this.afterTrailingComma(k.parenR, !0)) {
2162
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== O.parenR;) {
2163
+ if (l ? l = !1 : this.expect(O.comma), a && this.afterTrailingComma(O.parenR, !0)) {
2164
2164
  u = !0;
2165
2165
  break;
2166
2166
  }
2167
- if (this.type === k.ellipsis) {
2168
- m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === k.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2167
+ if (this.type === O.ellipsis) {
2168
+ m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === O.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2169
2169
  break;
2170
2170
  }
2171
2171
  c.push(this.parseMaybeAssign(!1, d, this.parseParenItem));
2172
2172
  }
2173
2173
  var h = this.lastTokEnd, g = this.lastTokEndLoc;
2174
- if (this.expect(k.parenR), e && this.shouldParseArrow(c) && this.eat(k.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
2174
+ if (this.expect(O.parenR), e && this.shouldParseArrow(c) && this.eat(O.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
2175
2175
  (!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];
2176
2176
  } else i = this.parseParenExpression();
2177
2177
  if (this.options.preserveParens) {
@@ -2179,59 +2179,59 @@ z.parseExprSubscripts = function(e, t) {
2179
2179
  return _.expression = i, this.finishNode(_, "ParenthesizedExpression");
2180
2180
  }
2181
2181
  return i;
2182
- }, z.parseParenItem = function(e) {
2182
+ }, R.parseParenItem = function(e) {
2183
2183
  return e;
2184
- }, z.parseParenArrowList = function(e, t, n, r) {
2184
+ }, R.parseParenArrowList = function(e, t, n, r) {
2185
2185
  return this.parseArrowExpression(this.startNodeAt(e, t), n, !1, r);
2186
2186
  };
2187
2187
  var _t = [];
2188
- z.parseNew = function() {
2188
+ R.parseNew = function() {
2189
2189
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
2190
2190
  var e = this.startNode();
2191
- if (this.next(), this.options.ecmaVersion >= 6 && this.type === k.dot) {
2191
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === O.dot) {
2192
2192
  var t = this.startNodeAt(e.start, e.loc && e.loc.start);
2193
2193
  t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
2194
2194
  var n = this.containsEsc;
2195
2195
  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");
2196
2196
  }
2197
2197
  var r = this.start, i = this.startLoc;
2198
- 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'"), e.arguments = this.eat(k.parenL) ? this.parseExprList(k.parenR, this.options.ecmaVersion >= 8, !1) : _t, this.finishNode(e, "NewExpression");
2199
- }, z.parseTemplateElement = function(e) {
2198
+ 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'"), e.arguments = this.eat(O.parenL) ? this.parseExprList(O.parenR, this.options.ecmaVersion >= 8, !1) : _t, this.finishNode(e, "NewExpression");
2199
+ }, R.parseTemplateElement = function(e) {
2200
2200
  var t = e.isTagged, n = this.startNode();
2201
- return this.type === k.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
2201
+ return this.type === O.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
2202
2202
  raw: this.value.replace(/\r\n?/g, "\n"),
2203
2203
  cooked: null
2204
2204
  }) : n.value = {
2205
2205
  raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"),
2206
2206
  cooked: this.value
2207
- }, this.next(), n.tail = this.type === k.backQuote, this.finishNode(n, "TemplateElement");
2208
- }, z.parseTemplate = function(e) {
2207
+ }, this.next(), n.tail = this.type === O.backQuote, this.finishNode(n, "TemplateElement");
2208
+ }, R.parseTemplate = function(e) {
2209
2209
  e === void 0 && (e = {});
2210
2210
  var t = e.isTagged;
2211
2211
  t === void 0 && (t = !1);
2212
2212
  var n = this.startNode();
2213
2213
  this.next(), n.expressions = [];
2214
2214
  var r = this.parseTemplateElement({ isTagged: t });
2215
- for (n.quasis = [r]; !r.tail;) this.type === k.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(k.dollarBraceL), n.expressions.push(this.parseExpression()), this.expect(k.braceR), n.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
2215
+ for (n.quasis = [r]; !r.tail;) this.type === O.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(O.dollarBraceL), n.expressions.push(this.parseExpression()), this.expect(O.braceR), n.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
2216
2216
  return this.next(), this.finishNode(n, "TemplateLiteral");
2217
- }, z.isAsyncProp = function(e) {
2218
- return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === k.name || this.type === k.num || this.type === k.string || this.type === k.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === k.star) && !A.test(this.input.slice(this.lastTokEnd, this.start));
2219
- }, z.parseObj = function(e, t) {
2217
+ }, R.isAsyncProp = function(e) {
2218
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === O.name || this.type === O.num || this.type === O.string || this.type === O.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === O.star) && !k.test(this.input.slice(this.lastTokEnd, this.start));
2219
+ }, R.parseObj = function(e, t) {
2220
2220
  var n = this.startNode(), r = !0, i = {};
2221
- for (n.properties = [], this.next(); !this.eat(k.braceR);) {
2221
+ for (n.properties = [], this.next(); !this.eat(O.braceR);) {
2222
2222
  if (r) r = !1;
2223
- else if (this.expect(k.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(k.braceR)) break;
2223
+ else if (this.expect(O.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(O.braceR)) break;
2224
2224
  var a = this.parseProperty(e, t);
2225
2225
  e || this.checkPropClash(a, i, t), n.properties.push(a);
2226
2226
  }
2227
2227
  return this.finishNode(n, e ? "ObjectPattern" : "ObjectExpression");
2228
- }, z.parseProperty = function(e, t) {
2228
+ }, R.parseProperty = function(e, t) {
2229
2229
  var n = this.startNode(), r, i, a, o;
2230
- if (this.options.ecmaVersion >= 9 && this.eat(k.ellipsis)) return e ? (n.argument = this.parseIdent(!1), this.type === k.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 === k.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(n, "SpreadElement"));
2231
- this.options.ecmaVersion >= 6 && (n.method = !1, n.shorthand = !1, (e || t) && (a = this.start, o = this.startLoc), e || (r = this.eat(k.star)));
2230
+ if (this.options.ecmaVersion >= 9 && this.eat(O.ellipsis)) return e ? (n.argument = this.parseIdent(!1), this.type === O.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 === O.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(n, "SpreadElement"));
2231
+ this.options.ecmaVersion >= 6 && (n.method = !1, n.shorthand = !1, (e || t) && (a = this.start, o = this.startLoc), e || (r = this.eat(O.star)));
2232
2232
  var s = this.containsEsc;
2233
- return this.parsePropertyName(n), !e && !s && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(n) ? (i = !0, r = this.options.ecmaVersion >= 9 && this.eat(k.star), this.parsePropertyName(n)) : i = !1, this.parsePropertyValue(n, e, r, i, a, o, t, s), this.finishNode(n, "Property");
2234
- }, z.parseGetterSetter = function(e) {
2233
+ return this.parsePropertyName(n), !e && !s && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(n) ? (i = !0, r = this.options.ecmaVersion >= 9 && this.eat(O.star), this.parsePropertyName(n)) : i = !1, this.parsePropertyValue(n, e, r, i, a, o, t, s), this.finishNode(n, "Property");
2234
+ }, R.parseGetterSetter = function(e) {
2235
2235
  var t = e.key.name;
2236
2236
  this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
2237
2237
  var n = e.kind === "get" ? 0 : 1;
@@ -2239,24 +2239,24 @@ z.parseNew = function() {
2239
2239
  var r = e.value.start;
2240
2240
  e.kind === "get" ? this.raiseRecoverable(r, "getter should have no params") : this.raiseRecoverable(r, "setter should have exactly one param");
2241
2241
  } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
2242
- }, z.parsePropertyValue = function(e, t, n, r, i, a, o, s) {
2243
- (n || r) && this.type === k.colon && this.unexpected(), this.eat(k.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === k.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 !== k.comma && this.type !== k.braceR && this.type !== k.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 === k.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();
2244
- }, z.parsePropertyName = function(e) {
2242
+ }, R.parsePropertyValue = function(e, t, n, r, i, a, o, s) {
2243
+ (n || r) && this.type === O.colon && this.unexpected(), this.eat(O.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === O.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 !== O.comma && this.type !== O.braceR && this.type !== O.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 === O.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();
2244
+ }, R.parsePropertyName = function(e) {
2245
2245
  if (this.options.ecmaVersion >= 6) {
2246
- if (this.eat(k.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(k.bracketR), e.key;
2246
+ if (this.eat(O.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(O.bracketR), e.key;
2247
2247
  e.computed = !1;
2248
2248
  }
2249
- return e.key = this.type === k.num || this.type === k.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
2250
- }, z.initFunction = function(e) {
2249
+ return e.key = this.type === O.num || this.type === O.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
2250
+ }, R.initFunction = function(e) {
2251
2251
  e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
2252
- }, z.parseMethod = function(e, t, n) {
2252
+ }, R.parseMethod = function(e, t, n) {
2253
2253
  var r = this.startNode(), i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
2254
- 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(Ze(t, r.generator) | Ge | (n ? Ke : 0)), this.expect(k.parenL), r.params = this.parseBindingList(k.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");
2255
- }, z.parseArrowExpression = function(e, t, n, r) {
2254
+ 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(Ze(t, r.generator) | Ge | (n ? Ke : 0)), this.expect(O.parenL), r.params = this.parseBindingList(O.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");
2255
+ }, R.parseArrowExpression = function(e, t, n, r) {
2256
2256
  var i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
2257
2257
  return this.enterScope(Ze(n, !1) | Ue), 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");
2258
- }, z.parseFunctionBody = function(e, t, n, r) {
2259
- var i = t && this.type !== k.braceL, a = this.strict, o = !1;
2258
+ }, R.parseFunctionBody = function(e, t, n, r) {
2259
+ var i = t && this.type !== O.braceL, a = this.strict, o = !1;
2260
2260
  if (i) e.body = this.parseMaybeAssign(r), e.expression = !0, this.checkParams(e, !1);
2261
2261
  else {
2262
2262
  var s = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
@@ -2265,44 +2265,44 @@ z.parseNew = function() {
2265
2265
  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, rt), e.body = this.parseBlock(!1, void 0, o && !a), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = c;
2266
2266
  }
2267
2267
  this.exitScope();
2268
- }, z.isSimpleParamList = function(e) {
2268
+ }, R.isSimpleParamList = function(e) {
2269
2269
  for (var t = 0, n = e; t < n.length; t += 1) if (n[t].type !== "Identifier") return !1;
2270
2270
  return !0;
2271
- }, z.checkParams = function(e, t) {
2271
+ }, R.checkParams = function(e, t) {
2272
2272
  for (var n = Object.create(null), r = 0, i = e.params; r < i.length; r += 1) {
2273
2273
  var a = i[r];
2274
2274
  this.checkLValInnerPattern(a, $e, t ? null : n);
2275
2275
  }
2276
- }, z.parseExprList = function(e, t, n, r) {
2276
+ }, R.parseExprList = function(e, t, n, r) {
2277
2277
  for (var i = [], a = !0; !this.eat(e);) {
2278
2278
  if (a) a = !1;
2279
- else if (this.expect(k.comma), t && this.afterTrailingComma(e)) break;
2279
+ else if (this.expect(O.comma), t && this.afterTrailingComma(e)) break;
2280
2280
  var o = void 0;
2281
- n && this.type === k.comma ? o = null : this.type === k.ellipsis ? (o = this.parseSpread(r), r && this.type === k.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, r), i.push(o);
2281
+ n && this.type === O.comma ? o = null : this.type === O.ellipsis ? (o = this.parseSpread(r), r && this.type === O.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, r), i.push(o);
2282
2282
  }
2283
2283
  return i;
2284
- }, z.checkUnreserved = function(e) {
2284
+ }, R.checkUnreserved = function(e) {
2285
2285
  var t = e.start, n = e.end, r = e.name;
2286
2286
  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 & Xe) && 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"));
2287
- }, z.parseIdent = function(e) {
2287
+ }, R.parseIdent = function(e) {
2288
2288
  var t = this.parseIdentNode();
2289
2289
  return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
2290
- }, z.parseIdentNode = function() {
2290
+ }, R.parseIdentNode = function() {
2291
2291
  var e = this.startNode();
2292
- return this.type === k.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 = k.name) : this.unexpected(), e;
2293
- }, z.parsePrivateIdent = function() {
2292
+ return this.type === O.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 = O.name) : this.unexpected(), e;
2293
+ }, R.parsePrivateIdent = function() {
2294
2294
  var e = this.startNode();
2295
- return this.type === k.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;
2296
- }, z.parseYield = function(e) {
2295
+ return this.type === O.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;
2296
+ }, R.parseYield = function(e) {
2297
2297
  this.yieldPos ||= this.start;
2298
2298
  var t = this.startNode();
2299
- return this.next(), this.type === k.semi || this.canInsertSemicolon() || this.type !== k.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(k.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
2300
- }, z.parseAwait = function(e) {
2299
+ return this.next(), this.type === O.semi || this.canInsertSemicolon() || this.type !== O.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(O.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
2300
+ }, R.parseAwait = function(e) {
2301
2301
  this.awaitPos ||= this.start;
2302
2302
  var t = this.startNode();
2303
2303
  return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
2304
2304
  };
2305
- var vt = M.prototype;
2305
+ var vt = j.prototype;
2306
2306
  vt.raise = function(e, t) {
2307
2307
  var n = Pe(this.input, e);
2308
2308
  t += " (" + n.line + ":" + n.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
@@ -2311,7 +2311,7 @@ vt.raise = function(e, t) {
2311
2311
  }, vt.raiseRecoverable = vt.raise, vt.curPosition = function() {
2312
2312
  if (this.options.locations) return new Me(this.curLine, this.pos - this.lineStart);
2313
2313
  };
2314
- var yt = M.prototype, bt = function(e) {
2314
+ var yt = j.prototype, bt = function(e) {
2315
2315
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
2316
2316
  };
2317
2317
  yt.enterScope = function(e) {
@@ -2355,7 +2355,7 @@ yt.enterScope = function(e) {
2355
2355
  };
2356
2356
  var xt = function(e, t, n) {
2357
2357
  this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new Ne(e, n)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0]);
2358
- }, St = M.prototype;
2358
+ }, St = j.prototype;
2359
2359
  St.startNode = function() {
2360
2360
  return new xt(this, this.start, this.startLoc);
2361
2361
  }, St.startNodeAt = function(e, t) {
@@ -2417,7 +2417,7 @@ for (var Vt = 0, Ht = [
2417
2417
  var Ut = Ht[Vt];
2418
2418
  Bt(Ut);
2419
2419
  }
2420
- var B = M.prototype, Wt = function(e, t) {
2420
+ var z = j.prototype, Wt = function(e, t) {
2421
2421
  this.parent = e, this.base = t || this;
2422
2422
  };
2423
2423
  Wt.prototype.separatedFrom = function(e) {
@@ -2464,7 +2464,7 @@ Gt.prototype.reset = function(e, t, n) {
2464
2464
  n = this.nextIndex(n, t);
2465
2465
  }
2466
2466
  return this.pos = n, !0;
2467
- }, B.validateRegExpFlags = function(e) {
2467
+ }, z.validateRegExpFlags = function(e) {
2468
2468
  for (var t = e.validFlags, n = e.flags, r = !1, i = !1, a = 0; a < n.length; a++) {
2469
2469
  var o = n.charAt(a);
2470
2470
  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);
@@ -2475,23 +2475,23 @@ function Kt(e) {
2475
2475
  for (var t in e) return !0;
2476
2476
  return !1;
2477
2477
  }
2478
- B.validateRegExpPattern = function(e) {
2478
+ z.validateRegExpPattern = function(e) {
2479
2479
  this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Kt(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2480
- }, B.regexp_pattern = function(e) {
2480
+ }, z.regexp_pattern = function(e) {
2481
2481
  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");
2482
2482
  for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
2483
2483
  var r = n[t];
2484
2484
  e.groupNames[r] || e.raise("Invalid named capture referenced");
2485
2485
  }
2486
- }, B.regexp_disjunction = function(e) {
2486
+ }, z.regexp_disjunction = function(e) {
2487
2487
  var t = this.options.ecmaVersion >= 16;
2488
2488
  for (t && (e.branchID = new Wt(e.branchID, null)), this.regexp_alternative(e); e.eat(124);) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
2489
2489
  t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
2490
- }, B.regexp_alternative = function(e) {
2490
+ }, z.regexp_alternative = function(e) {
2491
2491
  for (; e.pos < e.source.length && this.regexp_eatTerm(e););
2492
- }, B.regexp_eatTerm = function(e) {
2492
+ }, z.regexp_eatTerm = function(e) {
2493
2493
  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;
2494
- }, B.regexp_eatAssertion = function(e) {
2494
+ }, z.regexp_eatAssertion = function(e) {
2495
2495
  var t = e.pos;
2496
2496
  if (e.lastAssertionIsQuantifiable = !1, e.eat(94) || e.eat(36)) return !0;
2497
2497
  if (e.eat(92)) {
@@ -2503,11 +2503,11 @@ B.validateRegExpPattern = function(e) {
2503
2503
  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;
2504
2504
  }
2505
2505
  return e.pos = t, !1;
2506
- }, B.regexp_eatQuantifier = function(e, t) {
2506
+ }, z.regexp_eatQuantifier = function(e, t) {
2507
2507
  return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1;
2508
- }, B.regexp_eatQuantifierPrefix = function(e, t) {
2508
+ }, z.regexp_eatQuantifierPrefix = function(e, t) {
2509
2509
  return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
2510
- }, B.regexp_eatBracedQuantifier = function(e, t) {
2510
+ }, z.regexp_eatBracedQuantifier = function(e, t) {
2511
2511
  var n = e.pos;
2512
2512
  if (e.eat(123)) {
2513
2513
  var r = 0, i = -1;
@@ -2515,16 +2515,16 @@ B.validateRegExpPattern = function(e) {
2515
2515
  e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = n;
2516
2516
  }
2517
2517
  return !1;
2518
- }, B.regexp_eatAtom = function(e) {
2518
+ }, z.regexp_eatAtom = function(e) {
2519
2519
  return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
2520
- }, B.regexp_eatReverseSolidusAtomEscape = function(e) {
2520
+ }, z.regexp_eatReverseSolidusAtomEscape = function(e) {
2521
2521
  var t = e.pos;
2522
2522
  if (e.eat(92)) {
2523
2523
  if (this.regexp_eatAtomEscape(e)) return !0;
2524
2524
  e.pos = t;
2525
2525
  }
2526
2526
  return !1;
2527
- }, B.regexp_eatUncapturingGroup = function(e) {
2527
+ }, z.regexp_eatUncapturingGroup = function(e) {
2528
2528
  var t = e.pos;
2529
2529
  if (e.eat(40)) {
2530
2530
  if (e.eat(63)) {
@@ -2553,37 +2553,37 @@ B.validateRegExpPattern = function(e) {
2553
2553
  e.pos = t;
2554
2554
  }
2555
2555
  return !1;
2556
- }, B.regexp_eatCapturingGroup = function(e) {
2556
+ }, z.regexp_eatCapturingGroup = function(e) {
2557
2557
  if (e.eat(40)) {
2558
2558
  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;
2559
2559
  e.raise("Unterminated group");
2560
2560
  }
2561
2561
  return !1;
2562
- }, B.regexp_eatModifiers = function(e) {
2562
+ }, z.regexp_eatModifiers = function(e) {
2563
2563
  for (var t = "", n = 0; (n = e.current()) !== -1 && qt(n);) t += Ae(n), e.advance();
2564
2564
  return t;
2565
2565
  };
2566
2566
  function qt(e) {
2567
2567
  return e === 105 || e === 109 || e === 115;
2568
2568
  }
2569
- B.regexp_eatExtendedAtom = function(e) {
2569
+ z.regexp_eatExtendedAtom = function(e) {
2570
2570
  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);
2571
- }, B.regexp_eatInvalidBracedQuantifier = function(e) {
2571
+ }, z.regexp_eatInvalidBracedQuantifier = function(e) {
2572
2572
  return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2573
- }, B.regexp_eatSyntaxCharacter = function(e) {
2573
+ }, z.regexp_eatSyntaxCharacter = function(e) {
2574
2574
  var t = e.current();
2575
2575
  return Jt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2576
2576
  };
2577
2577
  function Jt(e) {
2578
2578
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2579
2579
  }
2580
- B.regexp_eatPatternCharacters = function(e) {
2580
+ z.regexp_eatPatternCharacters = function(e) {
2581
2581
  for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Jt(n);) e.advance();
2582
2582
  return e.pos !== t;
2583
- }, B.regexp_eatExtendedPatternCharacter = function(e) {
2583
+ }, z.regexp_eatExtendedPatternCharacter = function(e) {
2584
2584
  var t = e.current();
2585
2585
  return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 && (e.advance(), !0);
2586
- }, B.regexp_groupSpecifier = function(e) {
2586
+ }, z.regexp_groupSpecifier = function(e) {
2587
2587
  if (e.eat(63)) {
2588
2588
  this.regexp_eatGroupName(e) || e.raise("Invalid group");
2589
2589
  var t = this.options.ecmaVersion >= 16, n = e.groupNames[e.lastStringValue];
@@ -2593,35 +2593,35 @@ B.regexp_eatPatternCharacters = function(e) {
2593
2593
  }
2594
2594
  t ? (n || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
2595
2595
  }
2596
- }, B.regexp_eatGroupName = function(e) {
2596
+ }, z.regexp_eatGroupName = function(e) {
2597
2597
  if (e.lastStringValue = "", e.eat(60)) {
2598
2598
  if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return !0;
2599
2599
  e.raise("Invalid capture group name");
2600
2600
  }
2601
2601
  return !1;
2602
- }, B.regexp_eatRegExpIdentifierName = function(e) {
2602
+ }, z.regexp_eatRegExpIdentifierName = function(e) {
2603
2603
  if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
2604
2604
  for (e.lastStringValue += Ae(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e);) e.lastStringValue += Ae(e.lastIntValue);
2605
2605
  return !0;
2606
2606
  }
2607
2607
  return !1;
2608
- }, B.regexp_eatRegExpIdentifierStart = function(e) {
2608
+ }, z.regexp_eatRegExpIdentifierStart = function(e) {
2609
2609
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2610
2610
  return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Yt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2611
2611
  };
2612
2612
  function Yt(e) {
2613
2613
  return ge(e, !0) || e === 36 || e === 95;
2614
2614
  }
2615
- B.regexp_eatRegExpIdentifierPart = function(e) {
2615
+ z.regexp_eatRegExpIdentifierPart = function(e) {
2616
2616
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2617
2617
  return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Xt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2618
2618
  };
2619
2619
  function Xt(e) {
2620
2620
  return _e(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2621
2621
  }
2622
- B.regexp_eatAtomEscape = function(e) {
2622
+ z.regexp_eatAtomEscape = function(e) {
2623
2623
  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);
2624
- }, B.regexp_eatBackReference = function(e) {
2624
+ }, z.regexp_eatBackReference = function(e) {
2625
2625
  var t = e.pos;
2626
2626
  if (this.regexp_eatDecimalEscape(e)) {
2627
2627
  var n = e.lastIntValue;
@@ -2630,34 +2630,34 @@ B.regexp_eatAtomEscape = function(e) {
2630
2630
  e.pos = t;
2631
2631
  }
2632
2632
  return !1;
2633
- }, B.regexp_eatKGroupName = function(e) {
2633
+ }, z.regexp_eatKGroupName = function(e) {
2634
2634
  if (e.eat(107)) {
2635
2635
  if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), !0;
2636
2636
  e.raise("Invalid named reference");
2637
2637
  }
2638
2638
  return !1;
2639
- }, B.regexp_eatCharacterEscape = function(e) {
2639
+ }, z.regexp_eatCharacterEscape = function(e) {
2640
2640
  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);
2641
- }, B.regexp_eatCControlLetter = function(e) {
2641
+ }, z.regexp_eatCControlLetter = function(e) {
2642
2642
  var t = e.pos;
2643
2643
  if (e.eat(99)) {
2644
2644
  if (this.regexp_eatControlLetter(e)) return !0;
2645
2645
  e.pos = t;
2646
2646
  }
2647
2647
  return !1;
2648
- }, B.regexp_eatZero = function(e) {
2648
+ }, z.regexp_eatZero = function(e) {
2649
2649
  return e.current() === 48 && !cn(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
2650
- }, B.regexp_eatControlEscape = function(e) {
2650
+ }, z.regexp_eatControlEscape = function(e) {
2651
2651
  var t = e.current();
2652
2652
  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);
2653
- }, B.regexp_eatControlLetter = function(e) {
2653
+ }, z.regexp_eatControlLetter = function(e) {
2654
2654
  var t = e.current();
2655
2655
  return Zt(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2656
2656
  };
2657
2657
  function Zt(e) {
2658
2658
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2659
2659
  }
2660
- B.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2660
+ z.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2661
2661
  t === void 0 && (t = !1);
2662
2662
  var n = e.pos, r = t || e.switchU;
2663
2663
  if (e.eat(117)) {
@@ -2681,11 +2681,11 @@ B.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2681
2681
  function Qt(e) {
2682
2682
  return e >= 0 && e <= 1114111;
2683
2683
  }
2684
- B.regexp_eatIdentityEscape = function(e) {
2684
+ z.regexp_eatIdentityEscape = function(e) {
2685
2685
  if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
2686
2686
  var t = e.current();
2687
2687
  return t !== 99 && (!e.switchN || t !== 107) && (e.lastIntValue = t, e.advance(), !0);
2688
- }, B.regexp_eatDecimalEscape = function(e) {
2688
+ }, z.regexp_eatDecimalEscape = function(e) {
2689
2689
  e.lastIntValue = 0;
2690
2690
  var t = e.current();
2691
2691
  if (t >= 49 && t <= 57) {
@@ -2696,15 +2696,15 @@ B.regexp_eatIdentityEscape = function(e) {
2696
2696
  }
2697
2697
  return !1;
2698
2698
  };
2699
- var $t = 0, en = 1, V = 2;
2700
- B.regexp_eatCharacterClassEscape = function(e) {
2699
+ var $t = 0, en = 1, B = 2;
2700
+ z.regexp_eatCharacterClassEscape = function(e) {
2701
2701
  var t = e.current();
2702
2702
  if (tn(t)) return e.lastIntValue = -1, e.advance(), en;
2703
2703
  var n = !1;
2704
2704
  if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
2705
2705
  e.lastIntValue = -1, e.advance();
2706
2706
  var r;
2707
- if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === V && e.raise("Invalid property name"), r;
2707
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === B && e.raise("Invalid property name"), r;
2708
2708
  e.raise("Invalid property name");
2709
2709
  }
2710
2710
  return $t;
@@ -2712,7 +2712,7 @@ B.regexp_eatCharacterClassEscape = function(e) {
2712
2712
  function tn(e) {
2713
2713
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2714
2714
  }
2715
- B.regexp_eatUnicodePropertyValueExpression = function(e) {
2715
+ z.regexp_eatUnicodePropertyValueExpression = function(e) {
2716
2716
  var t = e.pos;
2717
2717
  if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
2718
2718
  var n = e.lastStringValue;
@@ -2726,13 +2726,13 @@ B.regexp_eatUnicodePropertyValueExpression = function(e) {
2726
2726
  return this.regexp_validateUnicodePropertyNameOrValue(e, i);
2727
2727
  }
2728
2728
  return $t;
2729
- }, B.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
2729
+ }, z.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
2730
2730
  Ee(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
2731
- }, B.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2731
+ }, z.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2732
2732
  if (e.unicodeProperties.binary.test(t)) return en;
2733
- if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return V;
2733
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return B;
2734
2734
  e.raise("Invalid property name");
2735
- }, B.regexp_eatUnicodePropertyName = function(e) {
2735
+ }, z.regexp_eatUnicodePropertyName = function(e) {
2736
2736
  var t = 0;
2737
2737
  for (e.lastStringValue = ""; nn(t = e.current());) e.lastStringValue += Ae(t), e.advance();
2738
2738
  return e.lastStringValue !== "";
@@ -2740,7 +2740,7 @@ B.regexp_eatUnicodePropertyValueExpression = function(e) {
2740
2740
  function nn(e) {
2741
2741
  return Zt(e) || e === 95;
2742
2742
  }
2743
- B.regexp_eatUnicodePropertyValue = function(e) {
2743
+ z.regexp_eatUnicodePropertyValue = function(e) {
2744
2744
  var t = 0;
2745
2745
  for (e.lastStringValue = ""; rn(t = e.current());) e.lastStringValue += Ae(t), e.advance();
2746
2746
  return e.lastStringValue !== "";
@@ -2748,17 +2748,17 @@ B.regexp_eatUnicodePropertyValue = function(e) {
2748
2748
  function rn(e) {
2749
2749
  return nn(e) || cn(e);
2750
2750
  }
2751
- B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2751
+ z.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2752
2752
  return this.regexp_eatUnicodePropertyValue(e);
2753
- }, B.regexp_eatCharacterClass = function(e) {
2753
+ }, z.regexp_eatCharacterClass = function(e) {
2754
2754
  if (e.eat(91)) {
2755
2755
  var t = e.eat(94), n = this.regexp_classContents(e);
2756
- return e.eat(93) || e.raise("Unterminated character class"), t && n === V && e.raise("Negated character class may contain strings"), !0;
2756
+ return e.eat(93) || e.raise("Unterminated character class"), t && n === B && e.raise("Negated character class may contain strings"), !0;
2757
2757
  }
2758
2758
  return !1;
2759
- }, B.regexp_classContents = function(e) {
2759
+ }, z.regexp_classContents = function(e) {
2760
2760
  return e.current() === 93 ? en : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), en);
2761
- }, B.regexp_nonEmptyClassRanges = function(e) {
2761
+ }, z.regexp_nonEmptyClassRanges = function(e) {
2762
2762
  for (; this.regexp_eatClassAtom(e);) {
2763
2763
  var t = e.lastIntValue;
2764
2764
  if (e.eat(45) && this.regexp_eatClassAtom(e)) {
@@ -2766,7 +2766,7 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2766
2766
  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");
2767
2767
  }
2768
2768
  }
2769
- }, B.regexp_eatClassAtom = function(e) {
2769
+ }, z.regexp_eatClassAtom = function(e) {
2770
2770
  var t = e.pos;
2771
2771
  if (e.eat(92)) {
2772
2772
  if (this.regexp_eatClassEscape(e)) return !0;
@@ -2778,7 +2778,7 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2778
2778
  }
2779
2779
  var r = e.current();
2780
2780
  return r !== 93 && (e.lastIntValue = r, e.advance(), !0);
2781
- }, B.regexp_eatClassEscape = function(e) {
2781
+ }, z.regexp_eatClassEscape = function(e) {
2782
2782
  var t = e.pos;
2783
2783
  if (e.eat(98)) return e.lastIntValue = 8, !0;
2784
2784
  if (e.switchU && e.eat(45)) return e.lastIntValue = 45, !0;
@@ -2787,14 +2787,14 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2787
2787
  e.pos = t;
2788
2788
  }
2789
2789
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2790
- }, B.regexp_classSetExpression = function(e) {
2790
+ }, z.regexp_classSetExpression = function(e) {
2791
2791
  var t = en, n;
2792
2792
  if (!this.regexp_eatClassSetRange(e)) {
2793
2793
  if (n = this.regexp_eatClassSetOperand(e)) {
2794
- n === V && (t = V);
2794
+ n === B && (t = B);
2795
2795
  for (var r = e.pos; e.eatChars([38, 38]);) {
2796
2796
  if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
2797
- n !== V && (t = en);
2797
+ n !== B && (t = en);
2798
2798
  continue;
2799
2799
  }
2800
2800
  e.raise("Invalid character in character class");
@@ -2806,9 +2806,9 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2806
2806
  }
2807
2807
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
2808
2808
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
2809
- n === V && (t = V);
2809
+ n === B && (t = B);
2810
2810
  }
2811
- }, B.regexp_eatClassSetRange = function(e) {
2811
+ }, z.regexp_eatClassSetRange = function(e) {
2812
2812
  var t = e.pos;
2813
2813
  if (this.regexp_eatClassSetCharacter(e)) {
2814
2814
  var n = e.lastIntValue;
@@ -2819,13 +2819,13 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2819
2819
  e.pos = t;
2820
2820
  }
2821
2821
  return !1;
2822
- }, B.regexp_eatClassSetOperand = function(e) {
2822
+ }, z.regexp_eatClassSetOperand = function(e) {
2823
2823
  return this.regexp_eatClassSetCharacter(e) ? en : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2824
- }, B.regexp_eatNestedClass = function(e) {
2824
+ }, z.regexp_eatNestedClass = function(e) {
2825
2825
  var t = e.pos;
2826
2826
  if (e.eat(91)) {
2827
2827
  var n = e.eat(94), r = this.regexp_classContents(e);
2828
- if (e.eat(93)) return n && r === V && e.raise("Negated character class may contain strings"), r;
2828
+ if (e.eat(93)) return n && r === B && e.raise("Negated character class may contain strings"), r;
2829
2829
  e.pos = t;
2830
2830
  }
2831
2831
  if (e.eat(92)) {
@@ -2834,7 +2834,7 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2834
2834
  e.pos = t;
2835
2835
  }
2836
2836
  return null;
2837
- }, B.regexp_eatClassStringDisjunction = function(e) {
2837
+ }, z.regexp_eatClassStringDisjunction = function(e) {
2838
2838
  var t = e.pos;
2839
2839
  if (e.eatChars([92, 113])) {
2840
2840
  if (e.eat(123)) {
@@ -2844,13 +2844,13 @@ B.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2844
2844
  e.pos = t;
2845
2845
  }
2846
2846
  return null;
2847
- }, B.regexp_classStringDisjunctionContents = function(e) {
2848
- for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === V && (t = V);
2847
+ }, z.regexp_classStringDisjunctionContents = function(e) {
2848
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === B && (t = B);
2849
2849
  return t;
2850
- }, B.regexp_classString = function(e) {
2850
+ }, z.regexp_classString = function(e) {
2851
2851
  for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
2852
- return t === 1 ? en : V;
2853
- }, B.regexp_eatClassSetCharacter = function(e) {
2852
+ return t === 1 ? en : B;
2853
+ }, z.regexp_eatClassSetCharacter = function(e) {
2854
2854
  var t = e.pos;
2855
2855
  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);
2856
2856
  var n = e.current();
@@ -2862,24 +2862,24 @@ function an(e) {
2862
2862
  function on(e) {
2863
2863
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2864
2864
  }
2865
- B.regexp_eatClassSetReservedPunctuator = function(e) {
2865
+ z.regexp_eatClassSetReservedPunctuator = function(e) {
2866
2866
  var t = e.current();
2867
2867
  return sn(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2868
2868
  };
2869
2869
  function sn(e) {
2870
2870
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2871
2871
  }
2872
- B.regexp_eatClassControlLetter = function(e) {
2872
+ z.regexp_eatClassControlLetter = function(e) {
2873
2873
  var t = e.current();
2874
2874
  return cn(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2875
- }, B.regexp_eatHexEscapeSequence = function(e) {
2875
+ }, z.regexp_eatHexEscapeSequence = function(e) {
2876
2876
  var t = e.pos;
2877
2877
  if (e.eat(120)) {
2878
2878
  if (this.regexp_eatFixedHexDigits(e, 2)) return !0;
2879
2879
  e.switchU && e.raise("Invalid escape"), e.pos = t;
2880
2880
  }
2881
2881
  return !1;
2882
- }, B.regexp_eatDecimalDigits = function(e) {
2882
+ }, z.regexp_eatDecimalDigits = function(e) {
2883
2883
  var t = e.pos, n = 0;
2884
2884
  for (e.lastIntValue = 0; cn(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2885
2885
  return e.pos !== t;
@@ -2887,7 +2887,7 @@ B.regexp_eatClassControlLetter = function(e) {
2887
2887
  function cn(e) {
2888
2888
  return e >= 48 && e <= 57;
2889
2889
  }
2890
- B.regexp_eatHexDigits = function(e) {
2890
+ z.regexp_eatHexDigits = function(e) {
2891
2891
  var t = e.pos, n = 0;
2892
2892
  for (e.lastIntValue = 0; ln(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + un(n), e.advance();
2893
2893
  return e.pos !== t;
@@ -2898,7 +2898,7 @@ function ln(e) {
2898
2898
  function un(e) {
2899
2899
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2900
2900
  }
2901
- B.regexp_eatLegacyOctalEscapeSequence = function(e) {
2901
+ z.regexp_eatLegacyOctalEscapeSequence = function(e) {
2902
2902
  if (this.regexp_eatOctalDigit(e)) {
2903
2903
  var t = e.lastIntValue;
2904
2904
  if (this.regexp_eatOctalDigit(e)) {
@@ -2908,14 +2908,14 @@ B.regexp_eatLegacyOctalEscapeSequence = function(e) {
2908
2908
  return !0;
2909
2909
  }
2910
2910
  return !1;
2911
- }, B.regexp_eatOctalDigit = function(e) {
2911
+ }, z.regexp_eatOctalDigit = function(e) {
2912
2912
  var t = e.current();
2913
2913
  return dn(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2914
2914
  };
2915
2915
  function dn(e) {
2916
2916
  return e >= 48 && e <= 55;
2917
2917
  }
2918
- B.regexp_eatFixedHexDigits = function(e, t) {
2918
+ z.regexp_eatFixedHexDigits = function(e, t) {
2919
2919
  var n = e.pos;
2920
2920
  e.lastIntValue = 0;
2921
2921
  for (var r = 0; r < t; ++r) {
@@ -2927,42 +2927,42 @@ B.regexp_eatFixedHexDigits = function(e, t) {
2927
2927
  };
2928
2928
  var fn = function(e) {
2929
2929
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Ne(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2930
- }, H = M.prototype;
2931
- H.next = function(e) {
2930
+ }, V = j.prototype;
2931
+ V.next = function(e) {
2932
2932
  !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new fn(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2933
- }, H.getToken = function() {
2933
+ }, V.getToken = function() {
2934
2934
  return this.next(), new fn(this);
2935
- }, typeof Symbol < "u" && (H[Symbol.iterator] = function() {
2935
+ }, typeof Symbol < "u" && (V[Symbol.iterator] = function() {
2936
2936
  var e = this;
2937
2937
  return { next: function() {
2938
2938
  var t = e.getToken();
2939
2939
  return {
2940
- done: t.type === k.eof,
2940
+ done: t.type === O.eof,
2941
2941
  value: t
2942
2942
  };
2943
2943
  } };
2944
- }), H.nextToken = function() {
2944
+ }), V.nextToken = function() {
2945
2945
  var e = this.curContext();
2946
- 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(k.eof);
2946
+ 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(O.eof);
2947
2947
  if (e.override) return e.override(this);
2948
2948
  this.readToken(this.fullCharCodeAtPos());
2949
- }, H.readToken = function(e) {
2949
+ }, V.readToken = function(e) {
2950
2950
  return ge(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2951
- }, H.fullCharCodeAt = function(e) {
2951
+ }, V.fullCharCodeAt = function(e) {
2952
2952
  var t = this.input.charCodeAt(e);
2953
2953
  if (t <= 55295 || t >= 56320) return t;
2954
2954
  var n = this.input.charCodeAt(e + 1);
2955
2955
  return n <= 56319 || n >= 57344 ? t : (t << 10) + n - 56613888;
2956
- }, H.fullCharCodeAtPos = function() {
2956
+ }, V.fullCharCodeAtPos = function() {
2957
2957
  return this.fullCharCodeAt(this.pos);
2958
- }, H.skipBlockComment = function() {
2958
+ }, V.skipBlockComment = function() {
2959
2959
  var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
2960
2960
  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 = xe(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
2961
2961
  this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
2962
- }, H.skipLineComment = function(e) {
2962
+ }, V.skipLineComment = function(e) {
2963
2963
  for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !be(r);) r = this.input.charCodeAt(++this.pos);
2964
2964
  this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
2965
- }, H.skipSpace = function() {
2965
+ }, V.skipSpace = function() {
2966
2966
  loop: for (; this.pos < this.input.length;) {
2967
2967
  var e = this.input.charCodeAt(this.pos);
2968
2968
  switch (e) {
@@ -2991,65 +2991,65 @@ H.next = function(e) {
2991
2991
  else break loop;
2992
2992
  }
2993
2993
  }
2994
- }, H.finishToken = function(e, t) {
2994
+ }, V.finishToken = function(e, t) {
2995
2995
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2996
2996
  var n = this.type;
2997
2997
  this.type = e, this.value = t, this.updateContext(n);
2998
- }, H.readToken_dot = function() {
2998
+ }, V.readToken_dot = function() {
2999
2999
  var e = this.input.charCodeAt(this.pos + 1);
3000
3000
  if (e >= 48 && e <= 57) return this.readNumber(!0);
3001
3001
  var t = this.input.charCodeAt(this.pos + 2);
3002
- return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(k.ellipsis)) : (++this.pos, this.finishToken(k.dot));
3003
- }, H.readToken_slash = function() {
3002
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(O.ellipsis)) : (++this.pos, this.finishToken(O.dot));
3003
+ }, V.readToken_slash = function() {
3004
3004
  var e = this.input.charCodeAt(this.pos + 1);
3005
- return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(k.assign, 2) : this.finishOp(k.slash, 1);
3006
- }, H.readToken_mult_modulo_exp = function(e) {
3007
- var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? k.star : k.modulo;
3008
- return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = k.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(k.assign, n + 1) : this.finishOp(r, n);
3009
- }, H.readToken_pipe_amp = function(e) {
3005
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(O.assign, 2) : this.finishOp(O.slash, 1);
3006
+ }, V.readToken_mult_modulo_exp = function(e) {
3007
+ var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? O.star : O.modulo;
3008
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = O.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(O.assign, n + 1) : this.finishOp(r, n);
3009
+ }, V.readToken_pipe_amp = function(e) {
3010
3010
  var t = this.input.charCodeAt(this.pos + 1);
3011
- return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(k.assign, 3) : this.finishOp(e === 124 ? k.logicalOR : k.logicalAND, 2) : t === 61 ? this.finishOp(k.assign, 2) : this.finishOp(e === 124 ? k.bitwiseOR : k.bitwiseAND, 1);
3012
- }, H.readToken_caret = function() {
3013
- return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(k.assign, 2) : this.finishOp(k.bitwiseXOR, 1);
3014
- }, H.readToken_plus_min = function(e) {
3011
+ return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(O.assign, 3) : this.finishOp(e === 124 ? O.logicalOR : O.logicalAND, 2) : t === 61 ? this.finishOp(O.assign, 2) : this.finishOp(e === 124 ? O.bitwiseOR : O.bitwiseAND, 1);
3012
+ }, V.readToken_caret = function() {
3013
+ return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(O.assign, 2) : this.finishOp(O.bitwiseXOR, 1);
3014
+ }, V.readToken_plus_min = function(e) {
3015
3015
  var t = this.input.charCodeAt(this.pos + 1);
3016
- return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || A.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(k.incDec, 2) : t === 61 ? this.finishOp(k.assign, 2) : this.finishOp(k.plusMin, 1);
3017
- }, H.readToken_lt_gt = function(e) {
3016
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || k.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(O.incDec, 2) : t === 61 ? this.finishOp(O.assign, 2) : this.finishOp(O.plusMin, 1);
3017
+ }, V.readToken_lt_gt = function(e) {
3018
3018
  var t = this.input.charCodeAt(this.pos + 1), n = 1;
3019
- return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(k.assign, n + 1) : this.finishOp(k.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(k.relational, n));
3020
- }, H.readToken_eq_excl = function(e) {
3019
+ return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(O.assign, n + 1) : this.finishOp(O.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(O.relational, n));
3020
+ }, V.readToken_eq_excl = function(e) {
3021
3021
  var t = this.input.charCodeAt(this.pos + 1);
3022
- return t === 61 ? this.finishOp(k.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(k.arrow)) : this.finishOp(e === 61 ? k.eq : k.prefix, 1);
3023
- }, H.readToken_question = function() {
3022
+ return t === 61 ? this.finishOp(O.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(O.arrow)) : this.finishOp(e === 61 ? O.eq : O.prefix, 1);
3023
+ }, V.readToken_question = function() {
3024
3024
  var e = this.options.ecmaVersion;
3025
3025
  if (e >= 11) {
3026
3026
  var t = this.input.charCodeAt(this.pos + 1);
3027
3027
  if (t === 46) {
3028
3028
  var n = this.input.charCodeAt(this.pos + 2);
3029
- if (n < 48 || n > 57) return this.finishOp(k.questionDot, 2);
3029
+ if (n < 48 || n > 57) return this.finishOp(O.questionDot, 2);
3030
3030
  }
3031
- if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(k.assign, 3) : this.finishOp(k.coalesce, 2);
3031
+ if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(O.assign, 3) : this.finishOp(O.coalesce, 2);
3032
3032
  }
3033
- return this.finishOp(k.question, 1);
3034
- }, H.readToken_numberSign = function() {
3033
+ return this.finishOp(O.question, 1);
3034
+ }, V.readToken_numberSign = function() {
3035
3035
  var e = this.options.ecmaVersion, t = 35;
3036
- if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), ge(t, !0) || t === 92)) return this.finishToken(k.privateId, this.readWord1());
3036
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), ge(t, !0) || t === 92)) return this.finishToken(O.privateId, this.readWord1());
3037
3037
  this.raise(this.pos, "Unexpected character '" + Ae(t) + "'");
3038
- }, H.getTokenFromCode = function(e) {
3038
+ }, V.getTokenFromCode = function(e) {
3039
3039
  switch (e) {
3040
3040
  case 46: return this.readToken_dot();
3041
- case 40: return ++this.pos, this.finishToken(k.parenL);
3042
- case 41: return ++this.pos, this.finishToken(k.parenR);
3043
- case 59: return ++this.pos, this.finishToken(k.semi);
3044
- case 44: return ++this.pos, this.finishToken(k.comma);
3045
- case 91: return ++this.pos, this.finishToken(k.bracketL);
3046
- case 93: return ++this.pos, this.finishToken(k.bracketR);
3047
- case 123: return ++this.pos, this.finishToken(k.braceL);
3048
- case 125: return ++this.pos, this.finishToken(k.braceR);
3049
- case 58: return ++this.pos, this.finishToken(k.colon);
3041
+ case 40: return ++this.pos, this.finishToken(O.parenL);
3042
+ case 41: return ++this.pos, this.finishToken(O.parenR);
3043
+ case 59: return ++this.pos, this.finishToken(O.semi);
3044
+ case 44: return ++this.pos, this.finishToken(O.comma);
3045
+ case 91: return ++this.pos, this.finishToken(O.bracketL);
3046
+ case 93: return ++this.pos, this.finishToken(O.bracketR);
3047
+ case 123: return ++this.pos, this.finishToken(O.braceL);
3048
+ case 125: return ++this.pos, this.finishToken(O.braceR);
3049
+ case 58: return ++this.pos, this.finishToken(O.colon);
3050
3050
  case 96:
3051
3051
  if (this.options.ecmaVersion < 6) break;
3052
- return ++this.pos, this.finishToken(k.backQuote);
3052
+ return ++this.pos, this.finishToken(O.backQuote);
3053
3053
  case 48:
3054
3054
  var t = this.input.charCodeAt(this.pos + 1);
3055
3055
  if (t === 120 || t === 88) return this.readRadixNumber(16);
@@ -3081,18 +3081,18 @@ H.next = function(e) {
3081
3081
  case 61:
3082
3082
  case 33: return this.readToken_eq_excl(e);
3083
3083
  case 63: return this.readToken_question();
3084
- case 126: return this.finishOp(k.prefix, 1);
3084
+ case 126: return this.finishOp(O.prefix, 1);
3085
3085
  case 35: return this.readToken_numberSign();
3086
3086
  }
3087
3087
  this.raise(this.pos, "Unexpected character '" + Ae(e) + "'");
3088
- }, H.finishOp = function(e, t) {
3088
+ }, V.finishOp = function(e, t) {
3089
3089
  var n = this.input.slice(this.pos, this.pos + t);
3090
3090
  return this.pos += t, this.finishToken(e, n);
3091
- }, H.readRegexp = function() {
3091
+ }, V.readRegexp = function() {
3092
3092
  for (var e, t, n = this.pos;;) {
3093
3093
  this.pos >= this.input.length && this.raise(n, "Unterminated regular expression");
3094
3094
  var r = this.input.charAt(this.pos);
3095
- if (A.test(r) && this.raise(n, "Unterminated regular expression"), e) e = !1;
3095
+ if (k.test(r) && this.raise(n, "Unterminated regular expression"), e) e = !1;
3096
3096
  else {
3097
3097
  if (r === "[") t = !0;
3098
3098
  else if (r === "]" && t) t = !1;
@@ -3111,12 +3111,12 @@ H.next = function(e) {
3111
3111
  try {
3112
3112
  c = new RegExp(i, o);
3113
3113
  } catch {}
3114
- return this.finishToken(k.regexp, {
3114
+ return this.finishToken(O.regexp, {
3115
3115
  pattern: i,
3116
3116
  flags: o,
3117
3117
  value: c
3118
3118
  });
3119
- }, H.readInt = function(e, t, n) {
3119
+ }, V.readInt = function(e, t, n) {
3120
3120
  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) {
3121
3121
  var u = this.input.charCodeAt(this.pos), d = void 0;
3122
3122
  if (r && u === 95) {
@@ -3134,12 +3134,12 @@ function pn(e, t) {
3134
3134
  function mn(e) {
3135
3135
  return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
3136
3136
  }
3137
- H.readRadixNumber = function(e) {
3137
+ V.readRadixNumber = function(e) {
3138
3138
  var t = this.pos;
3139
3139
  this.pos += 2;
3140
3140
  var n = this.readInt(e);
3141
- return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = mn(this.input.slice(t, this.pos)), ++this.pos) : ge(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(k.num, n);
3142
- }, H.readNumber = function(e) {
3141
+ return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = mn(this.input.slice(t, this.pos)), ++this.pos) : ge(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(O.num, n);
3142
+ }, V.readNumber = function(e) {
3143
3143
  var t = this.pos;
3144
3144
  !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3145
3145
  var n = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
@@ -3147,12 +3147,12 @@ H.readRadixNumber = function(e) {
3147
3147
  var r = this.input.charCodeAt(this.pos);
3148
3148
  if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
3149
3149
  var i = mn(this.input.slice(t, this.pos));
3150
- return ++this.pos, ge(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(k.num, i);
3150
+ return ++this.pos, ge(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(O.num, i);
3151
3151
  }
3152
3152
  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")), ge(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3153
3153
  var a = pn(this.input.slice(t, this.pos), n);
3154
- return this.finishToken(k.num, a);
3155
- }, H.readCodePoint = function() {
3154
+ return this.finishToken(O.num, a);
3155
+ }, V.readCodePoint = function() {
3156
3156
  var e = this.input.charCodeAt(this.pos), t;
3157
3157
  if (e === 123) {
3158
3158
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -3160,17 +3160,17 @@ H.readRadixNumber = function(e) {
3160
3160
  t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(n, "Code point out of bounds");
3161
3161
  } else t = this.readHexChar(4);
3162
3162
  return t;
3163
- }, H.readString = function(e) {
3163
+ }, V.readString = function(e) {
3164
3164
  for (var t = "", n = ++this.pos;;) {
3165
3165
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3166
3166
  var r = this.input.charCodeAt(this.pos);
3167
3167
  if (r === e) break;
3168
3168
  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)) : (be(r) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
3169
3169
  }
3170
- return t += this.input.slice(n, this.pos++), this.finishToken(k.string, t);
3170
+ return t += this.input.slice(n, this.pos++), this.finishToken(O.string, t);
3171
3171
  };
3172
3172
  var hn = {};
3173
- H.tryReadTemplateToken = function() {
3173
+ V.tryReadTemplateToken = function() {
3174
3174
  this.inTemplateElement = !0;
3175
3175
  try {
3176
3176
  this.readTmplToken();
@@ -3179,14 +3179,14 @@ H.tryReadTemplateToken = function() {
3179
3179
  else throw e;
3180
3180
  }
3181
3181
  this.inTemplateElement = !1;
3182
- }, H.invalidStringToken = function(e, t) {
3182
+ }, V.invalidStringToken = function(e, t) {
3183
3183
  if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw hn;
3184
3184
  this.raise(e, t);
3185
- }, H.readTmplToken = function() {
3185
+ }, V.readTmplToken = function() {
3186
3186
  for (var e = "", t = this.pos;;) {
3187
3187
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3188
3188
  var n = this.input.charCodeAt(this.pos);
3189
- if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === k.template || this.type === k.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(k.dollarBraceL)) : (++this.pos, this.finishToken(k.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(k.template, e));
3189
+ if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === O.template || this.type === O.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(O.dollarBraceL)) : (++this.pos, this.finishToken(O.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(O.template, e));
3190
3190
  if (n === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
3191
3191
  else if (be(n)) {
3192
3192
  switch (e += this.input.slice(t, this.pos), ++this.pos, n) {
@@ -3199,20 +3199,20 @@ H.tryReadTemplateToken = function() {
3199
3199
  this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3200
3200
  } else ++this.pos;
3201
3201
  }
3202
- }, H.readInvalidTemplateToken = function() {
3202
+ }, V.readInvalidTemplateToken = function() {
3203
3203
  for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
3204
3204
  case "\\":
3205
3205
  ++this.pos;
3206
3206
  break;
3207
3207
  case "$": if (this.input[this.pos + 1] !== "{") break;
3208
- case "`": return this.finishToken(k.invalidTemplate, this.input.slice(this.start, this.pos));
3208
+ case "`": return this.finishToken(O.invalidTemplate, this.input.slice(this.start, this.pos));
3209
3209
  case "\r": this.input[this.pos + 1] === "\n" && ++this.pos;
3210
3210
  case "\n":
3211
3211
  case "\u2028":
3212
3212
  case "\u2029": ++this.curLine, this.lineStart = this.pos + 1;
3213
3213
  }
3214
3214
  this.raise(this.start, "Unterminated template");
3215
- }, H.readEscapedChar = function(e) {
3215
+ }, V.readEscapedChar = function(e) {
3216
3216
  var t = this.input.charCodeAt(++this.pos);
3217
3217
  switch (++this.pos, t) {
3218
3218
  case 110: return "\n";
@@ -3237,10 +3237,10 @@ H.tryReadTemplateToken = function() {
3237
3237
  }
3238
3238
  return be(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3239
3239
  }
3240
- }, H.readHexChar = function(e) {
3240
+ }, V.readHexChar = function(e) {
3241
3241
  var t = this.pos, n = this.readInt(16, e);
3242
3242
  return n === null && this.invalidStringToken(t, "Bad character escape sequence"), n;
3243
- }, H.readWord1 = function() {
3243
+ }, V.readWord1 = function() {
3244
3244
  this.containsEsc = !1;
3245
3245
  for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
3246
3246
  var i = this.fullCharCodeAtPos();
@@ -3255,32 +3255,32 @@ H.tryReadTemplateToken = function() {
3255
3255
  t = !1;
3256
3256
  }
3257
3257
  return e + this.input.slice(n, this.pos);
3258
- }, H.readWord = function() {
3259
- var e = this.readWord1(), t = k.name;
3258
+ }, V.readWord = function() {
3259
+ var e = this.readWord1(), t = O.name;
3260
3260
  return this.keywords.test(e) && (t = ve[e]), this.finishToken(t, e);
3261
- }, M.acorn = {
3262
- Parser: M,
3261
+ }, j.acorn = {
3262
+ Parser: j,
3263
3263
  version: "8.18.0",
3264
3264
  defaultOptions: Fe,
3265
3265
  Position: Me,
3266
3266
  SourceLocation: Ne,
3267
3267
  getLineInfo: Pe,
3268
3268
  Node: xt,
3269
- TokenType: w,
3270
- tokTypes: k,
3269
+ TokenType: C,
3270
+ tokTypes: O,
3271
3271
  keywordTypes: ve,
3272
- TokContext: L,
3273
- tokContexts: R,
3272
+ TokContext: I,
3273
+ tokContexts: L,
3274
3274
  isIdentifierChar: _e,
3275
3275
  isIdentifierStart: ge,
3276
3276
  Token: fn,
3277
3277
  isNewLine: be,
3278
- lineBreak: A,
3278
+ lineBreak: k,
3279
3279
  lineBreakG: ye,
3280
3280
  nonASCIIwhitespace: Se
3281
3281
  };
3282
3282
  function gn(e, t, n) {
3283
- return M.parseExpressionAt(e, t, n);
3283
+ return j.parseExpressionAt(e, t, n);
3284
3284
  }
3285
3285
  //#endregion
3286
3286
  //#region src/safe-eval.ts
@@ -3408,8 +3408,8 @@ var _n = {
3408
3408
  parse(e, t, n) {
3409
3409
  let r = !0, i = null, a = e["x-hub-signature-256"];
3410
3410
  if (n && a) {
3411
- let e = "sha256=" + h.createHmac("sha256", n).update(t).digest("hex");
3412
- r = h.timingSafeEqual(Buffer.from(a), Buffer.from(e));
3411
+ let e = "sha256=" + p.createHmac("sha256", n).update(t).digest("hex");
3412
+ r = p.timingSafeEqual(Buffer.from(a), Buffer.from(e));
3413
3413
  }
3414
3414
  if (r) {
3415
3415
  let n = JSON.parse(t.toString("utf-8"));
@@ -3430,10 +3430,10 @@ var _n = {
3430
3430
  }
3431
3431
  }, bn = function(e, t) {
3432
3432
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
3433
- }, U;
3433
+ }, H;
3434
3434
  (function(e) {
3435
3435
  e[e.EOS = 0] = "EOS", e[e.Text = 1] = "Text", e[e.Incomplete = 2] = "Incomplete", e[e.ESC = 3] = "ESC", e[e.Unknown = 4] = "Unknown", e[e.SGR = 5] = "SGR", e[e.OSCURL = 6] = "OSCURL";
3436
- })(U ||= {});
3436
+ })(H ||= {});
3437
3437
  var xn = class {
3438
3438
  constructor() {
3439
3439
  this.VERSION = "6.0.6", this.setup_palettes(), this._use_classes = !1, this.bold = !1, this.faint = !1, this.italic = !1, this.underline = !1, this.fg = this.bg = null, this._buffer = "", this._url_allowlist = {
@@ -3666,57 +3666,57 @@ var xn = class {
3666
3666
  }
3667
3667
  get_next_packet() {
3668
3668
  var e = {
3669
- kind: U.EOS,
3669
+ kind: H.EOS,
3670
3670
  text: "",
3671
3671
  url: ""
3672
3672
  }, t = this._buffer.length;
3673
3673
  if (t == 0) return e;
3674
3674
  var n = this._buffer.indexOf("\x1B");
3675
- if (n == -1) return e.kind = U.Text, e.text = this._buffer, this._buffer = "", e;
3676
- if (n > 0) return e.kind = U.Text, e.text = this._buffer.slice(0, n), this._buffer = this._buffer.slice(n), e;
3675
+ if (n == -1) return e.kind = H.Text, e.text = this._buffer, this._buffer = "", e;
3676
+ if (n > 0) return e.kind = H.Text, e.text = this._buffer.slice(0, n), this._buffer = this._buffer.slice(n), e;
3677
3677
  if (n == 0) {
3678
- if (t < 3) return e.kind = U.Incomplete, e;
3678
+ if (t < 3) return e.kind = H.Incomplete, e;
3679
3679
  var r = this._buffer.charAt(1);
3680
- if (r != "[" && r != "]" && r != "(") return e.kind = U.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3680
+ if (r != "[" && r != "]" && r != "(") return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3681
3681
  if (r == "[") {
3682
3682
  this._csi_regex ||= Sn(wn ||= bn(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1B[ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
3683
3683
  let t = this._buffer.match(this._csi_regex);
3684
- if (t === null) return e.kind = U.Incomplete, e;
3685
- if (t[4]) return e.kind = U.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3686
- e.kind = t[1] != "" || t[3] != "m" ? U.Unknown : U.SGR, e.text = t[2];
3684
+ if (t === null) return e.kind = H.Incomplete, e;
3685
+ if (t[4]) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3686
+ e.kind = t[1] != "" || t[3] != "m" ? H.Unknown : H.SGR, e.text = t[2];
3687
3687
  var i = t[0].length;
3688
3688
  return this._buffer = this._buffer.slice(i), e;
3689
3689
  }
3690
3690
  if (r == "]") {
3691
- if (t < 4) return e.kind = U.Incomplete, e;
3692
- if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") return e.kind = U.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3691
+ if (t < 4) return e.kind = H.Incomplete, e;
3692
+ if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3693
3693
  this._osc_st ||= Cn(Tn ||= bn(["\n (?: # legal sequence\n (\x1B\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])), this._osc_st.lastIndex = 0;
3694
3694
  {
3695
3695
  let t = this._osc_st.exec(this._buffer);
3696
- if (t === null) return e.kind = U.Incomplete, e;
3697
- if (t[3]) return e.kind = U.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3696
+ if (t === null) return e.kind = H.Incomplete, e;
3697
+ if (t[3]) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3698
3698
  }
3699
3699
  {
3700
3700
  let t = this._osc_st.exec(this._buffer);
3701
- if (t === null) return e.kind = U.Incomplete, e;
3702
- if (t[3]) return e.kind = U.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3701
+ if (t === null) return e.kind = H.Incomplete, e;
3702
+ if (t[3]) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3703
3703
  }
3704
3704
  this._osc_regex ||= Sn(En ||= bn(["\n ^ # beginning of line\n #\n \x1B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
3705
3705
  let n = this._buffer.match(this._osc_regex);
3706
- if (n === null) return e.kind = U.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3707
- e.kind = U.OSCURL, e.url = n[1], e.text = n[2];
3706
+ if (n === null) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
3707
+ e.kind = H.OSCURL, e.url = n[1], e.text = n[2];
3708
3708
  var i = n[0].length;
3709
3709
  return this._buffer = this._buffer.slice(i), e;
3710
3710
  }
3711
- if (r == "(") return e.kind = U.Unknown, this._buffer = this._buffer.slice(3), e;
3711
+ if (r == "(") return e.kind = H.Unknown, this._buffer = this._buffer.slice(3), e;
3712
3712
  }
3713
3713
  }
3714
3714
  ansi_to_html(e) {
3715
3715
  this.append_buffer(e);
3716
3716
  for (var t = [];;) {
3717
3717
  var n = this.get_next_packet();
3718
- if (n.kind == U.EOS || n.kind == U.Incomplete) break;
3719
- n.kind != U.ESC && n.kind != U.Unknown && (n.kind == U.Text ? t.push(this.transform_to_html(this.with_state(n))) : n.kind == U.SGR ? this.process_ansi(n) : n.kind == U.OSCURL && t.push(this.process_hyperlink(n)));
3718
+ if (n.kind == H.EOS || n.kind == H.Incomplete) break;
3719
+ n.kind != H.ESC && n.kind != H.Unknown && (n.kind == H.Text ? t.push(this.transform_to_html(this.with_state(n))) : n.kind == H.SGR ? this.process_ansi(n) : n.kind == H.OSCURL && t.push(this.process_hyperlink(n)));
3720
3720
  }
3721
3721
  return t.join("");
3722
3722
  }
@@ -3800,7 +3800,7 @@ var wn, Tn, En, Dn = class {
3800
3800
  }
3801
3801
  async report(t) {
3802
3802
  e.mkdirSync(this.outputDir, { recursive: !0 });
3803
- let n = this.generateHtml(t), r = o.join(this.outputDir, `run-${t.jobId}.html`);
3803
+ let n = this.generateHtml(t), r = a.join(this.outputDir, `run-${t.jobId}.html`);
3804
3804
  e.writeFileSync(r, n, "utf-8"), console.log(`📊 HTML Execution Report generated: ${r}`);
3805
3805
  }
3806
3806
  generateHtml(t) {
@@ -3871,18 +3871,18 @@ var wn, Tn, En, Dn = class {
3871
3871
  </html>`;
3872
3872
  }
3873
3873
  }, On = class e {
3874
- static withPort(t) {
3874
+ static async withPort(t) {
3875
3875
  let { port: n, ...r } = t;
3876
3876
  return new e(r).listen(n);
3877
3877
  }
3878
3878
  constructor(e) {
3879
- this.preprocessors = /* @__PURE__ */ new Map(), this.workflows = [], this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, this.workflows = e.workflows, this.registerPreprocessor(new yn()), this.server = p.createServer((e, t) => this.handleRequest(e, t));
3879
+ this.preprocessors = /* @__PURE__ */ new Map(), this.workflows = [], this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, this.workflows = e.workflows, this.registerPreprocessor(new yn()), this.server = d.createServer((e, t) => this.handleRequest(e, t));
3880
3880
  }
3881
3881
  registerPreprocessor(e) {
3882
3882
  this.preprocessors.set(e.name, e);
3883
3883
  }
3884
3884
  async handleRequest(e, t) {
3885
- let n = new m(e.url || "/", `${e.headers["x-forwarded-proto"] || "http"}://${e.headers["x-forwarded-host"] || e.headers.host}`);
3885
+ let n = new f(e.url || "/", `${e.headers["x-forwarded-proto"] || "http"}://${e.headers["x-forwarded-host"] || e.headers.host}`);
3886
3886
  if (e.method === "GET" && (n.pathname === "/runs" || n.pathname === "/")) return this.renderDashboard(t);
3887
3887
  if (e.method === "GET" && n.pathname.startsWith("/runs/")) {
3888
3888
  let e = n.pathname.replace("/runs/", "");
@@ -3944,7 +3944,7 @@ var wn, Tn, En, Dn = class {
3944
3944
  this.secrets.reload(), console.log("🔄 SecretStore reloaded successfully without downtime!"), t.writeHead(200, { "Content-Type": "application/json" }), t.end(JSON.stringify({ message: "Secrets reloaded successfully" }));
3945
3945
  }
3946
3946
  async renderDashboard(e) {
3947
- let t = (await this.queue.listJobs(50)).map((e) => {
3947
+ let t = (await this.queue.listJobs(500)).map((e) => {
3948
3948
  let t = e.status === "success" ? "bg-emerald-500/10 text-emerald-400" : e.status === "failed" ? "bg-rose-500/10 text-rose-400" : e.status === "running" ? "bg-indigo-500/10 text-indigo-400 animate-pulse" : "bg-gray-500/10 text-gray-400";
3949
3949
  return `
3950
3950
  <tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
@@ -3973,7 +3973,7 @@ var wn, Tn, En, Dn = class {
3973
3973
  <div class="flex items-center justify-between border-b border-gray-800 pb-4">
3974
3974
  <div>
3975
3975
  <h1 class="text-2xl font-bold text-white">⚙️ Runner Engine Status</h1>
3976
- <p class="text-xs text-gray-400">Live SQLite Job Queue & Execution Traces</p>
3976
+ <p class="text-xs text-gray-400">Live Job Queue & Execution Traces</p>
3977
3977
  </div>
3978
3978
  <span class="text-xs font-mono bg-emerald-500/10 text-emerald-400 px-3 py-1 rounded-full border border-emerald-500/20">
3979
3979
  ● System Operational
@@ -4002,27 +4002,39 @@ var wn, Tn, En, Dn = class {
4002
4002
  }
4003
4003
  async renderRunDetails(e, t) {
4004
4004
  let n = await this.queue.getJob(e);
4005
- if (!n || !n.report) return t.writeHead(404, { "Content-Type": "text/html; charset=utf-8" }), t.end("<h1>404 - Report Not Found</h1><p>Job is still running or does not exist.</p><a href=\"/runs\">← Back to Dashboard</a>");
4006
- let r = JSON.parse(n.report), i = new Dn({ outputDir: "" }).generateHtml(r);
4007
- t.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), t.end(i);
4005
+ if (!n || !n.report) return t.writeHead(404, { "Content-Type": "text/html; charset=utf-8" }), t.end("<h1>404 - Report Not Found</h1>");
4006
+ let r = JSON.parse(n.report), i = await this.queue.getJobLogs(e);
4007
+ r.steps = r.steps.map((e) => ({
4008
+ ...e,
4009
+ logContent: i[e.id] || ""
4010
+ }));
4011
+ let a = new Dn({ outputDir: "" }).generateHtml(r);
4012
+ t.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), t.end(a);
4008
4013
  }
4009
4014
  listen(e) {
4010
4015
  return new Promise((t) => {
4011
4016
  this.server.listen(e, process.env.RUNNER_HOST || "0.0.0.0", () => {
4012
- console.log(`🌐 Webhook Ingress Server running on port ${e}`), t();
4017
+ console.log(`🌐 Webhook Ingress Server running on port ${e}`), t(this);
4013
4018
  });
4014
4019
  });
4015
4020
  }
4016
- }, kn = Symbol.for("yaml.alias"), An = Symbol.for("yaml.document"), jn = Symbol.for("yaml.map"), Mn = Symbol.for("yaml.pair"), Nn = Symbol.for("yaml.scalar"), Pn = Symbol.for("yaml.seq"), W = Symbol.for("yaml.node.type"), Fn = (e) => !!e && typeof e == "object" && e[W] === kn, In = (e) => !!e && typeof e == "object" && e[W] === An, Ln = (e) => !!e && typeof e == "object" && e[W] === jn, G = (e) => !!e && typeof e == "object" && e[W] === Mn, K = (e) => !!e && typeof e == "object" && e[W] === Nn, Rn = (e) => !!e && typeof e == "object" && e[W] === Pn;
4017
- function q(e) {
4018
- if (e && typeof e == "object") switch (e[W]) {
4021
+ async stop() {
4022
+ return new Promise((e) => {
4023
+ this.server.close(() => {
4024
+ console.log("🌐 Webhook Ingress Server stopped listening."), e();
4025
+ });
4026
+ });
4027
+ }
4028
+ }, kn = Symbol.for("yaml.alias"), An = Symbol.for("yaml.document"), jn = Symbol.for("yaml.map"), Mn = Symbol.for("yaml.pair"), Nn = Symbol.for("yaml.scalar"), Pn = Symbol.for("yaml.seq"), U = Symbol.for("yaml.node.type"), Fn = (e) => !!e && typeof e == "object" && e[U] === kn, In = (e) => !!e && typeof e == "object" && e[U] === An, Ln = (e) => !!e && typeof e == "object" && e[U] === jn, W = (e) => !!e && typeof e == "object" && e[U] === Mn, G = (e) => !!e && typeof e == "object" && e[U] === Nn, Rn = (e) => !!e && typeof e == "object" && e[U] === Pn;
4029
+ function K(e) {
4030
+ if (e && typeof e == "object") switch (e[U]) {
4019
4031
  case jn:
4020
4032
  case Pn: return !0;
4021
4033
  }
4022
4034
  return !1;
4023
4035
  }
4024
- function J(e) {
4025
- if (e && typeof e == "object") switch (e[W]) {
4036
+ function q(e) {
4037
+ if (e && typeof e == "object") switch (e[U]) {
4026
4038
  case kn:
4027
4039
  case jn:
4028
4040
  case Nn:
@@ -4030,31 +4042,31 @@ function J(e) {
4030
4042
  }
4031
4043
  return !1;
4032
4044
  }
4033
- var zn = (e) => (K(e) || q(e)) && !!e.anchor, Y = Symbol("break visit"), Bn = Symbol("skip children"), Vn = Symbol("remove node");
4045
+ var zn = (e) => (G(e) || K(e)) && !!e.anchor, J = Symbol("break visit"), Bn = Symbol("skip children"), Vn = Symbol("remove node");
4034
4046
  function Hn(e, t) {
4035
4047
  let n = Kn(t);
4036
4048
  In(e) ? Un(null, e.contents, n, Object.freeze([e])) === Vn && (e.contents = null) : Un(null, e, n, Object.freeze([]));
4037
4049
  }
4038
- Hn.BREAK = Y, Hn.SKIP = Bn, Hn.REMOVE = Vn;
4050
+ Hn.BREAK = J, Hn.SKIP = Bn, Hn.REMOVE = Vn;
4039
4051
  function Un(e, t, n, r) {
4040
4052
  let i = qn(e, t, n, r);
4041
- if (J(i) || G(i)) return Jn(e, r, i), Un(e, i, n, r);
4053
+ if (q(i) || W(i)) return Jn(e, r, i), Un(e, i, n, r);
4042
4054
  if (typeof i != "symbol") {
4043
- if (q(t)) {
4055
+ if (K(t)) {
4044
4056
  r = Object.freeze(r.concat(t));
4045
4057
  for (let e = 0; e < t.items.length; ++e) {
4046
4058
  let i = Un(e, t.items[e], n, r);
4047
4059
  if (typeof i == "number") e = i - 1;
4048
- else if (i === Y) return Y;
4060
+ else if (i === J) return J;
4049
4061
  else i === Vn && (t.items.splice(e, 1), --e);
4050
4062
  }
4051
- } else if (G(t)) {
4063
+ } else if (W(t)) {
4052
4064
  r = Object.freeze(r.concat(t));
4053
4065
  let e = Un("key", t.key, n, r);
4054
- if (e === Y) return Y;
4066
+ if (e === J) return J;
4055
4067
  e === Vn && (t.key = null);
4056
4068
  let i = Un("value", t.value, n, r);
4057
- if (i === Y) return Y;
4069
+ if (i === J) return J;
4058
4070
  i === Vn && (t.value = null);
4059
4071
  }
4060
4072
  }
@@ -4064,26 +4076,26 @@ async function Wn(e, t) {
4064
4076
  let n = Kn(t);
4065
4077
  In(e) ? await Gn(null, e.contents, n, Object.freeze([e])) === Vn && (e.contents = null) : await Gn(null, e, n, Object.freeze([]));
4066
4078
  }
4067
- Wn.BREAK = Y, Wn.SKIP = Bn, Wn.REMOVE = Vn;
4079
+ Wn.BREAK = J, Wn.SKIP = Bn, Wn.REMOVE = Vn;
4068
4080
  async function Gn(e, t, n, r) {
4069
4081
  let i = await qn(e, t, n, r);
4070
- if (J(i) || G(i)) return Jn(e, r, i), Gn(e, i, n, r);
4082
+ if (q(i) || W(i)) return Jn(e, r, i), Gn(e, i, n, r);
4071
4083
  if (typeof i != "symbol") {
4072
- if (q(t)) {
4084
+ if (K(t)) {
4073
4085
  r = Object.freeze(r.concat(t));
4074
4086
  for (let e = 0; e < t.items.length; ++e) {
4075
4087
  let i = await Gn(e, t.items[e], n, r);
4076
4088
  if (typeof i == "number") e = i - 1;
4077
- else if (i === Y) return Y;
4089
+ else if (i === J) return J;
4078
4090
  else i === Vn && (t.items.splice(e, 1), --e);
4079
4091
  }
4080
- } else if (G(t)) {
4092
+ } else if (W(t)) {
4081
4093
  r = Object.freeze(r.concat(t));
4082
4094
  let e = await Gn("key", t.key, n, r);
4083
- if (e === Y) return Y;
4095
+ if (e === J) return J;
4084
4096
  e === Vn && (t.key = null);
4085
4097
  let i = await Gn("value", t.value, n, r);
4086
- if (i === Y) return Y;
4098
+ if (i === J) return J;
4087
4099
  i === Vn && (t.value = null);
4088
4100
  }
4089
4101
  }
@@ -4108,14 +4120,14 @@ function qn(e, t, n, r) {
4108
4120
  if (typeof n == "function") return n(e, t, r);
4109
4121
  if (Ln(t)) return n.Map?.(e, t, r);
4110
4122
  if (Rn(t)) return n.Seq?.(e, t, r);
4111
- if (G(t)) return n.Pair?.(e, t, r);
4112
- if (K(t)) return n.Scalar?.(e, t, r);
4123
+ if (W(t)) return n.Pair?.(e, t, r);
4124
+ if (G(t)) return n.Scalar?.(e, t, r);
4113
4125
  if (Fn(t)) return n.Alias?.(e, t, r);
4114
4126
  }
4115
4127
  function Jn(e, t, n) {
4116
4128
  let r = t[t.length - 1];
4117
- if (q(r)) r.items[e] = n;
4118
- else if (G(r)) e === "key" ? r.key = n : r.value = n;
4129
+ if (K(r)) r.items[e] = n;
4130
+ else if (W(r)) e === "key" ? r.key = n : r.value = n;
4119
4131
  else if (In(r)) r.contents = n;
4120
4132
  else {
4121
4133
  let e = Fn(r) ? "alias" : "scalar";
@@ -4199,10 +4211,10 @@ var Yn = {
4199
4211
  }
4200
4212
  toString(e) {
4201
4213
  let t = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [], n = Object.entries(this.tags), r;
4202
- if (e && n.length > 0 && J(e.contents)) {
4214
+ if (e && n.length > 0 && q(e.contents)) {
4203
4215
  let t = {};
4204
4216
  Hn(e.contents, (e, n) => {
4205
- J(n) && n.tag && (t[n.tag] = !0);
4217
+ q(n) && n.tag && (t[n.tag] = !0);
4206
4218
  }), r = Object.keys(t);
4207
4219
  } else r = [];
4208
4220
  for (let [i, a] of n) (i !== "!!" || a !== "tag:yaml.org,2002:") && (!e || r.some((e) => e.startsWith(a))) && t.push(`%TAG ${i} ${a}`);
@@ -4245,7 +4257,7 @@ function tr(e, t) {
4245
4257
  setAnchors: () => {
4246
4258
  for (let e of n) {
4247
4259
  let t = r.get(e);
4248
- if (typeof t == "object" && t.anchor && (K(t.node) || q(t.node))) t.node.anchor = t.anchor;
4260
+ if (typeof t == "object" && t.anchor && (G(t.node) || K(t.node))) t.node.anchor = t.anchor;
4249
4261
  else {
4250
4262
  let t = /* @__PURE__ */ Error("Failed to resolve repeated object (this should not happen)");
4251
4263
  throw t.source = e, t;
@@ -4280,8 +4292,8 @@ function nr(e, t, n, r) {
4280
4292
  }
4281
4293
  //#endregion
4282
4294
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js
4283
- function X(e, t, n) {
4284
- if (Array.isArray(e)) return e.map((e, t) => X(e, String(t), n));
4295
+ function Y(e, t, n) {
4296
+ if (Array.isArray(e)) return e.map((e, t) => Y(e, String(t), n));
4285
4297
  if (e && typeof e.toJSON == "function") {
4286
4298
  if (!n || !zn(e)) return e.toJSON(t, n);
4287
4299
  let r = {
@@ -4301,7 +4313,7 @@ function X(e, t, n) {
4301
4313
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js
4302
4314
  var rr = class {
4303
4315
  constructor(e) {
4304
- Object.defineProperty(this, W, { value: e });
4316
+ Object.defineProperty(this, U, { value: e });
4305
4317
  }
4306
4318
  clone() {
4307
4319
  let e = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
@@ -4316,7 +4328,7 @@ var rr = class {
4316
4328
  mapAsMap: t === !0,
4317
4329
  mapKeyWarned: !1,
4318
4330
  maxAliasCount: typeof n == "number" ? n : 100
4319
- }, o = X(this, "", a);
4331
+ }, o = Y(this, "", a);
4320
4332
  if (typeof r == "function") for (let { count: e, res: t } of a.anchors.values()) r(t, e);
4321
4333
  return typeof i == "function" ? nr(i, { "": o }, "", o) : o;
4322
4334
  }
@@ -4348,7 +4360,7 @@ var rr = class {
4348
4360
  }
4349
4361
  let o = n.get(a);
4350
4362
  /* istanbul ignore if */
4351
- if (o ||= (X(a, null, t), n.get(a)), o?.res === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
4363
+ if (o ||= (Y(a, null, t), n.get(a)), o?.res === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
4352
4364
  if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount = ar(r, a, n)), o.count * o.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
4353
4365
  return o.res;
4354
4366
  }
@@ -4369,7 +4381,7 @@ function ar(e, t, n) {
4369
4381
  let r = t.resolve(e), i = n && r && n.get(r);
4370
4382
  return i ? i.count * i.aliasCount : 0;
4371
4383
  }
4372
- if (q(t)) {
4384
+ if (K(t)) {
4373
4385
  let r = 0;
4374
4386
  for (let i of t.items) {
4375
4387
  let t = ar(e, i, n);
@@ -4377,7 +4389,7 @@ function ar(e, t, n) {
4377
4389
  }
4378
4390
  return r;
4379
4391
  }
4380
- if (G(t)) {
4392
+ if (W(t)) {
4381
4393
  let r = ar(e, t.key, n), i = ar(e, t.value, n);
4382
4394
  return Math.max(r, i);
4383
4395
  }
@@ -4385,18 +4397,18 @@ function ar(e, t, n) {
4385
4397
  }
4386
4398
  //#endregion
4387
4399
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js
4388
- var or = (e) => !e || typeof e != "function" && typeof e != "object", Z = class extends rr {
4400
+ var or = (e) => !e || typeof e != "function" && typeof e != "object", X = class extends rr {
4389
4401
  constructor(e) {
4390
4402
  super(Nn), this.value = e;
4391
4403
  }
4392
4404
  toJSON(e, t) {
4393
- return t?.keep ? this.value : X(this.value, e, t);
4405
+ return t?.keep ? this.value : Y(this.value, e, t);
4394
4406
  }
4395
4407
  toString() {
4396
4408
  return String(this.value);
4397
4409
  }
4398
4410
  };
4399
- Z.BLOCK_FOLDED = "BLOCK_FOLDED", Z.BLOCK_LITERAL = "BLOCK_LITERAL", Z.PLAIN = "PLAIN", Z.QUOTE_DOUBLE = "QUOTE_DOUBLE", Z.QUOTE_SINGLE = "QUOTE_SINGLE";
4411
+ X.BLOCK_FOLDED = "BLOCK_FOLDED", X.BLOCK_LITERAL = "BLOCK_LITERAL", X.PLAIN = "PLAIN", X.QUOTE_DOUBLE = "QUOTE_DOUBLE", X.QUOTE_SINGLE = "QUOTE_SINGLE";
4400
4412
  //#endregion
4401
4413
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js
4402
4414
  var sr = "tag:yaml.org,2002:";
@@ -4409,8 +4421,8 @@ function cr(e, t, n) {
4409
4421
  return n.find((t) => t.identify?.(e) && !t.format);
4410
4422
  }
4411
4423
  function lr(e, t, n) {
4412
- if (In(e) && (e = e.contents), J(e)) return e;
4413
- if (G(e)) {
4424
+ if (In(e) && (e = e.contents), q(e)) return e;
4425
+ if (W(e)) {
4414
4426
  let t = n.schema[jn].createNode?.(n.schema, null, n);
4415
4427
  return t.items.push(e), t;
4416
4428
  }
@@ -4427,13 +4439,13 @@ function lr(e, t, n) {
4427
4439
  let l = cr(e, t, o.tags);
4428
4440
  if (!l) {
4429
4441
  if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
4430
- let t = new Z(e);
4442
+ let t = new X(e);
4431
4443
  return c && (c.node = t), t;
4432
4444
  }
4433
4445
  l = e instanceof Map ? o[jn] : Symbol.iterator in Object(e) ? o[Pn] : o[jn];
4434
4446
  }
4435
4447
  a && (a(l), delete n.onTagObj);
4436
- let u = l?.createNode ? l.createNode(n.schema, e, n) : typeof l?.nodeClass?.from == "function" ? l.nodeClass.from(n.schema, e, n) : new Z(e);
4448
+ let u = l?.createNode ? l.createNode(n.schema, e, n) : typeof l?.nodeClass?.from == "function" ? l.nodeClass.from(n.schema, e, n) : new X(e);
4437
4449
  return t ? u.tag = t : l.default || (u.tag = l.tag), c && (c.node = u), u;
4438
4450
  }
4439
4451
  //#endregion
@@ -4468,13 +4480,13 @@ var dr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
4468
4480
  }
4469
4481
  clone(e) {
4470
4482
  let t = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
4471
- return e && (t.schema = e), t.items = t.items.map((t) => J(t) || G(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
4483
+ return e && (t.schema = e), t.items = t.items.map((t) => q(t) || W(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
4472
4484
  }
4473
4485
  addIn(e, t) {
4474
4486
  if (dr(e)) this.add(t);
4475
4487
  else {
4476
4488
  let [n, ...r] = e, i = this.get(n, !0);
4477
- if (q(i)) i.addIn(r, t);
4489
+ if (K(i)) i.addIn(r, t);
4478
4490
  else if (i === void 0 && this.schema) this.set(n, ur(this.schema, r, t));
4479
4491
  else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
4480
4492
  }
@@ -4483,32 +4495,32 @@ var dr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
4483
4495
  let [t, ...n] = e;
4484
4496
  if (n.length === 0) return this.delete(t);
4485
4497
  let r = this.get(t, !0);
4486
- if (q(r)) return r.deleteIn(n);
4498
+ if (K(r)) return r.deleteIn(n);
4487
4499
  throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`);
4488
4500
  }
4489
4501
  getIn(e, t) {
4490
4502
  let [n, ...r] = e, i = this.get(n, !0);
4491
- return r.length === 0 ? !t && K(i) ? i.value : i : q(i) ? i.getIn(r, t) : void 0;
4503
+ return r.length === 0 ? !t && G(i) ? i.value : i : K(i) ? i.getIn(r, t) : void 0;
4492
4504
  }
4493
4505
  hasAllNullValues(e) {
4494
4506
  return this.items.every((t) => {
4495
- if (!G(t)) return !1;
4507
+ if (!W(t)) return !1;
4496
4508
  let n = t.value;
4497
- return n == null || e && K(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
4509
+ return n == null || e && G(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
4498
4510
  });
4499
4511
  }
4500
4512
  hasIn(e) {
4501
4513
  let [t, ...n] = e;
4502
4514
  if (n.length === 0) return this.has(t);
4503
4515
  let r = this.get(t, !0);
4504
- return q(r) ? r.hasIn(n) : !1;
4516
+ return K(r) ? r.hasIn(n) : !1;
4505
4517
  }
4506
4518
  setIn(e, t) {
4507
4519
  let [n, ...r] = e;
4508
4520
  if (r.length === 0) this.set(n, t);
4509
4521
  else {
4510
4522
  let e = this.get(n, !0);
4511
- if (q(e)) e.setIn(r, t);
4523
+ if (K(e)) e.setIn(r, t);
4512
4524
  else if (e === void 0 && this.schema) this.set(n, ur(this.schema, r, t));
4513
4525
  else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
4514
4526
  }
@@ -4671,7 +4683,7 @@ try {
4671
4683
  function Or({ comment: e, type: t, value: n }, r, i, a) {
4672
4684
  let { blockQuote: o, commentString: s, lineWidth: c } = r.options;
4673
4685
  if (!o || /\n[\t ]+$/.test(n)) return Er(n, r);
4674
- let l = r.indent || (r.forceBlockIndent || Sr(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === Z.BLOCK_FOLDED ? !1 : t === Z.BLOCK_LITERAL || !Cr(n, c, l.length);
4686
+ let l = r.indent || (r.forceBlockIndent || Sr(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === X.BLOCK_FOLDED ? !1 : t === X.BLOCK_LITERAL || !Cr(n, c, l.length);
4675
4687
  if (!n) return u ? "|\n" : ">\n";
4676
4688
  let d, f;
4677
4689
  for (f = n.length; f > 0; --f) {
@@ -4692,7 +4704,7 @@ function Or({ comment: e, type: t, value: n }, r, i, a) {
4692
4704
  let y = (h ? l ? "2" : "1" : "") + d;
4693
4705
  if (e && (y += " " + s(e.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
4694
4706
  let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a = xr(r, !0);
4695
- o !== "folded" && t !== Z.BLOCK_FOLDED && (a.onOverflow = () => {
4707
+ o !== "folded" && t !== X.BLOCK_FOLDED && (a.onOverflow = () => {
4696
4708
  i = !0;
4697
4709
  });
4698
4710
  let s = yr(`${v}${e}${p}`, l, _r, a);
@@ -4704,7 +4716,7 @@ function kr(e, t, n, r) {
4704
4716
  let { type: i, value: a } = e, { actualString: o, implicitKey: s, indent: c, indentStep: l, inFlow: u } = t;
4705
4717
  if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return Er(a, t);
4706
4718
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? Er(a, t) : Or(e, t, n, r);
4707
- if (!s && !u && i !== Z.PLAIN && a.includes("\n")) return Or(e, t, n, r);
4719
+ if (!s && !u && i !== X.PLAIN && a.includes("\n")) return Or(e, t, n, r);
4708
4720
  if (Sr(a)) {
4709
4721
  if (c === "") return t.forceBlockIndent = !0, Or(e, t, n, r);
4710
4722
  if (s && c === l) return Er(a, t);
@@ -4718,14 +4730,14 @@ function kr(e, t, n, r) {
4718
4730
  }
4719
4731
  function Ar(e, t, n, r) {
4720
4732
  let { implicitKey: i, inFlow: a } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) }), { type: s } = e;
4721
- s !== Z.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = Z.QUOTE_DOUBLE);
4733
+ s !== X.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = X.QUOTE_DOUBLE);
4722
4734
  let c = (e) => {
4723
4735
  switch (e) {
4724
- case Z.BLOCK_FOLDED:
4725
- case Z.BLOCK_LITERAL: return i || a ? Er(o.value, t) : Or(o, t, n, r);
4726
- case Z.QUOTE_DOUBLE: return wr(o.value, t);
4727
- case Z.QUOTE_SINGLE: return Tr(o.value, t);
4728
- case Z.PLAIN: return kr(o, t, n, r);
4736
+ case X.BLOCK_FOLDED:
4737
+ case X.BLOCK_LITERAL: return i || a ? Er(o.value, t) : Or(o, t, n, r);
4738
+ case X.QUOTE_DOUBLE: return wr(o.value, t);
4739
+ case X.QUOTE_SINGLE: return Tr(o.value, t);
4740
+ case X.PLAIN: return kr(o, t, n, r);
4729
4741
  default: return null;
4730
4742
  }
4731
4743
  }, l = c(s);
@@ -4783,7 +4795,7 @@ function Mr(e, t) {
4783
4795
  if (n.length > 0) return n.find((e) => e.format === t.format) ?? n[0];
4784
4796
  }
4785
4797
  let n, r;
4786
- if (K(t)) {
4798
+ if (G(t)) {
4787
4799
  r = t.value;
4788
4800
  let i = e.filter((e) => e.identify?.(r));
4789
4801
  if (i.length > 1) {
@@ -4800,34 +4812,34 @@ function Mr(e, t) {
4800
4812
  }
4801
4813
  function Nr(e, t, { anchors: n, doc: r }) {
4802
4814
  if (!r.directives) return "";
4803
- let i = [], a = (K(e) || q(e)) && e.anchor;
4815
+ let i = [], a = (G(e) || K(e)) && e.anchor;
4804
4816
  a && Qn(a) && (n.add(a), i.push(`&${a}`));
4805
4817
  let o = e.tag ?? (t.default ? null : t.tag);
4806
4818
  return o && i.push(r.directives.tagString(o)), i.join(" ");
4807
4819
  }
4808
4820
  function Pr(e, t, n, r) {
4809
- if (G(e)) return e.toString(t, n, r);
4821
+ if (W(e)) return e.toString(t, n, r);
4810
4822
  if (Fn(e)) {
4811
4823
  if (t.doc.directives) return e.toString(t);
4812
4824
  if (t.resolvedAliases?.has(e)) throw TypeError("Cannot stringify circular structure without alias nodes");
4813
4825
  t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = /* @__PURE__ */ new Set([e]), e = e.resolve(t.doc);
4814
4826
  }
4815
- let i, a = J(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
4827
+ let i, a = q(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
4816
4828
  i ??= Mr(t.doc.schema.tags, a);
4817
4829
  let o = Nr(a, i, t);
4818
4830
  o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
4819
- let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : K(a) ? Ar(a, t, n, r) : a.toString(t, n, r);
4820
- return o ? K(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
4831
+ let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : G(a) ? Ar(a, t, n, r) : a.toString(t, n, r);
4832
+ return o ? G(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
4821
4833
  }
4822
4834
  //#endregion
4823
4835
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
4824
4836
  function Fr({ key: e, value: t }, n, r, i) {
4825
- let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = J(e) && e.comment || null;
4837
+ let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = q(e) && e.comment || null;
4826
4838
  if (d) {
4827
4839
  if (f) throw Error("With simple keys, key nodes cannot have comments");
4828
- if (q(e) || !J(e) && typeof e == "object") throw Error("With simple keys, collection cannot be used as a key value");
4840
+ if (K(e) || !q(e) && typeof e == "object") throw Error("With simple keys, collection cannot be used as a key value");
4829
4841
  }
4830
- let p = !d && (!e || f && t == null && !n.inFlow || q(e) || (K(e) ? e.type === Z.BLOCK_FOLDED || e.type === Z.BLOCK_LITERAL : typeof e == "object"));
4842
+ let p = !d && (!e || f && t == null && !n.inFlow || K(e) || (G(e) ? e.type === X.BLOCK_FOLDED || e.type === X.BLOCK_LITERAL : typeof e == "object"));
4831
4843
  n = Object.assign({}, n, {
4832
4844
  allNullValues: !1,
4833
4845
  implicitKey: !p && (d || !a),
@@ -4843,26 +4855,26 @@ function Fr({ key: e, value: t }, n, r, i) {
4843
4855
  } else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g += hr(g, n.indent, l(f)) : h && i && i(), g;
4844
4856
  m && (f = null), p ? (f && (g += hr(g, n.indent, l(f))), g = `? ${g}\n${s}:`) : (g = `${g}:`, f && (g += hr(g, n.indent, l(f))));
4845
4857
  let _, v, y;
4846
- J(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && K(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && Rn(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
4847
- let b = !1, x = Pr(t, n, () => b = !0, () => h = !0), S = " ";
4858
+ q(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && G(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && Rn(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
4859
+ let ee = !1, b = Pr(t, n, () => ee = !0, () => h = !0), x = " ";
4848
4860
  if (f || _ || v) {
4849
- if (S = _ ? "\n" : "", v) {
4861
+ if (x = _ ? "\n" : "", v) {
4850
4862
  let e = l(v);
4851
- S += `\n${mr(e, n.indent)}`;
4863
+ x += `\n${mr(e, n.indent)}`;
4852
4864
  }
4853
- x === "" && !n.inFlow ? S === "\n" && y && (S = "\n\n") : S += `\n${n.indent}`;
4854
- } else if (!p && q(t)) {
4855
- let e = x[0], r = x.indexOf("\n"), i = r !== -1, a = n.inFlow ?? t.flow ?? t.items.length === 0;
4865
+ b === "" && !n.inFlow ? x === "\n" && y && (x = "\n\n") : x += `\n${n.indent}`;
4866
+ } else if (!p && K(t)) {
4867
+ let e = b[0], r = b.indexOf("\n"), i = r !== -1, a = n.inFlow ?? t.flow ?? t.items.length === 0;
4856
4868
  if (i || !a) {
4857
4869
  let t = !1;
4858
4870
  if (i && (e === "&" || e === "!")) {
4859
- let n = x.indexOf(" ");
4860
- e === "&" && n !== -1 && n < r && x[n + 1] === "!" && (n = x.indexOf(" ", n + 1)), (n === -1 || r < n) && (t = !0);
4871
+ let n = b.indexOf(" ");
4872
+ e === "&" && n !== -1 && n < r && b[n + 1] === "!" && (n = b.indexOf(" ", n + 1)), (n === -1 || r < n) && (t = !0);
4861
4873
  }
4862
- t || (S = `\n${n.indent}`);
4874
+ t || (x = `\n${n.indent}`);
4863
4875
  }
4864
- } else (x === "" || x[0] === "\n") && (S = "");
4865
- return g += S + x, n.inFlow ? b && r && r() : y && !b ? g += hr(g, n.indent, l(y)) : h && i && i(), g;
4876
+ } else (b === "" || b[0] === "\n") && (x = "");
4877
+ return g += x + b, n.inFlow ? ee && r && r() : y && !ee ? g += hr(g, n.indent, l(y)) : h && i && i(), g;
4866
4878
  }
4867
4879
  //#endregion
4868
4880
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js
@@ -4876,9 +4888,9 @@ var Lr = "<<", Rr = {
4876
4888
  default: "key",
4877
4889
  tag: "tag:yaml.org,2002:merge",
4878
4890
  test: /^<<$/,
4879
- resolve: () => Object.assign(new Z(Symbol(Lr)), { addToJSMap: Br }),
4891
+ resolve: () => Object.assign(new X(Symbol(Lr)), { addToJSMap: Br }),
4880
4892
  stringify: () => Lr
4881
- }, zr = (e, t) => (Rr.identify(t) || K(t) && (!t.type || t.type === Z.PLAIN) && Rr.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === Rr.tag && e.default);
4893
+ }, zr = (e, t) => (Rr.identify(t) || G(t) && (!t.type || t.type === X.PLAIN) && Rr.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === Rr.tag && e.default);
4882
4894
  function Br(e, t, n) {
4883
4895
  let r = Hr(e, n);
4884
4896
  if (Rn(r)) for (let n of r.items) Vr(e, t, n);
@@ -4903,14 +4915,14 @@ function Hr(e, t) {
4903
4915
  //#endregion
4904
4916
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
4905
4917
  function Ur(e, t, { key: n, value: r }) {
4906
- if (J(n) && n.addToJSMap) n.addToJSMap(e, t, r);
4918
+ if (q(n) && n.addToJSMap) n.addToJSMap(e, t, r);
4907
4919
  else if (zr(e, n)) Br(e, t, r);
4908
4920
  else {
4909
- let i = X(n, "", e);
4910
- if (t instanceof Map) t.set(i, X(r, i, e));
4921
+ let i = Y(n, "", e);
4922
+ if (t instanceof Map) t.set(i, Y(r, i, e));
4911
4923
  else if (t instanceof Set) t.add(i);
4912
4924
  else {
4913
- let a = Wr(n, i, e), o = X(r, a, e);
4925
+ let a = Wr(n, i, e), o = Y(r, a, e);
4914
4926
  a in t ? Object.defineProperty(t, a, {
4915
4927
  value: o,
4916
4928
  writable: !0,
@@ -4924,7 +4936,7 @@ function Ur(e, t, { key: n, value: r }) {
4924
4936
  function Wr(e, t, n) {
4925
4937
  if (t === null) return "";
4926
4938
  if (typeof t != "object") return String(t);
4927
- if (J(e) && n?.doc) {
4939
+ if (q(e) && n?.doc) {
4928
4940
  let t = jr(n.doc, {});
4929
4941
  t.anchors = /* @__PURE__ */ new Set();
4930
4942
  for (let e of n.anchors.keys()) t.anchors.add(e.anchor);
@@ -4941,15 +4953,15 @@ function Wr(e, t, n) {
4941
4953
  //#endregion
4942
4954
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js
4943
4955
  function Gr(e, t, n) {
4944
- return new Q(lr(e, void 0, n), lr(t, void 0, n));
4956
+ return new Z(lr(e, void 0, n), lr(t, void 0, n));
4945
4957
  }
4946
- var Q = class e {
4958
+ var Z = class e {
4947
4959
  constructor(e, t = null) {
4948
- Object.defineProperty(this, W, { value: Mn }), this.key = e, this.value = t;
4960
+ Object.defineProperty(this, U, { value: Mn }), this.key = e, this.value = t;
4949
4961
  }
4950
4962
  clone(t) {
4951
4963
  let { key: n, value: r } = this;
4952
- return J(n) && (n = n.clone(t)), J(r) && (r = r.clone(t)), new e(n, r);
4964
+ return q(n) && (n = n.clone(t)), q(r) && (r = r.clone(t)), new e(n, r);
4953
4965
  }
4954
4966
  toJSON(e, t) {
4955
4967
  return Ur(t, t?.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
@@ -4970,9 +4982,9 @@ function qr({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, ite
4970
4982
  }), d = !1, f = [];
4971
4983
  for (let e = 0; e < t.length; ++e) {
4972
4984
  let i = t[e], o = null;
4973
- if (J(i)) !d && i.spaceBefore && f.push(""), Yr(n, f, i.commentBefore, d), i.comment && (o = i.comment);
4974
- else if (G(i)) {
4975
- let e = J(i.key) ? i.key : null;
4985
+ if (q(i)) !d && i.spaceBefore && f.push(""), Yr(n, f, i.commentBefore, d), i.comment && (o = i.comment);
4986
+ else if (W(i)) {
4987
+ let e = q(i.key) ? i.key : null;
4976
4988
  e && (!d && e.spaceBefore && f.push(""), Yr(n, f, e.commentBefore, d));
4977
4989
  }
4978
4990
  d = !1;
@@ -5000,11 +5012,11 @@ function Jr({ items: e }, t, { flowChars: n, itemIndent: r }) {
5000
5012
  }), l = !1, u = 0, d = [];
5001
5013
  for (let n = 0; n < e.length; ++n) {
5002
5014
  let i = e[n], a = null;
5003
- if (J(i)) i.spaceBefore && d.push(""), Yr(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
5004
- else if (G(i)) {
5005
- let e = J(i.key) ? i.key : null;
5015
+ if (q(i)) i.spaceBefore && d.push(""), Yr(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
5016
+ else if (W(i)) {
5017
+ let e = q(i.key) ? i.key : null;
5006
5018
  e && (e.spaceBefore && d.push(""), Yr(t, d, e.commentBefore, !1), e.comment && (l = !0));
5007
- let n = J(i.value) ? i.value : null;
5019
+ let n = q(i.value) ? i.value : null;
5008
5020
  n ? (n.comment && (a = n.comment), n.commentBefore && (l = !0)) : i.value == null && e?.comment && (a = e.comment);
5009
5021
  }
5010
5022
  a && (l = !0);
@@ -5033,10 +5045,10 @@ function Yr({ indent: e, options: { commentString: t } }, n, r, i) {
5033
5045
  //#endregion
5034
5046
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
5035
5047
  function Xr(e, t) {
5036
- let n = K(t) ? t.value : t;
5037
- for (let r of e) if (G(r) && (r.key === t || r.key === n || K(r.key) && r.key.value === n)) return r;
5048
+ let n = G(t) ? t.value : t;
5049
+ for (let r of e) if (W(r) && (r.key === t || r.key === n || G(r.key) && r.key.value === n)) return r;
5038
5050
  }
5039
- var $ = class extends fr {
5051
+ var Q = class extends fr {
5040
5052
  static get tagName() {
5041
5053
  return "tag:yaml.org,2002:map";
5042
5054
  }
@@ -5055,11 +5067,11 @@ var $ = class extends fr {
5055
5067
  }
5056
5068
  add(e, t) {
5057
5069
  let n;
5058
- n = G(e) ? e : !e || typeof e != "object" || !("key" in e) ? new Q(e, e?.value) : new Q(e.key, e.value);
5070
+ n = W(e) ? e : !e || typeof e != "object" || !("key" in e) ? new Z(e, e?.value) : new Z(e.key, e.value);
5059
5071
  let r = Xr(this.items, n.key), i = this.schema?.sortMapEntries;
5060
5072
  if (r) {
5061
5073
  if (!t) throw Error(`Key ${n.key} already set`);
5062
- K(r.value) && or(n.value) ? r.value.value = n.value : r.value = n.value;
5074
+ G(r.value) && or(n.value) ? r.value.value = n.value : r.value = n.value;
5063
5075
  } else if (i) {
5064
5076
  let e = this.items.findIndex((e) => i(n, e) < 0);
5065
5077
  e === -1 ? this.items.push(n) : this.items.splice(e, 0, n);
@@ -5071,13 +5083,13 @@ var $ = class extends fr {
5071
5083
  }
5072
5084
  get(e, t) {
5073
5085
  let n = Xr(this.items, e)?.value;
5074
- return (!t && K(n) ? n.value : n) ?? void 0;
5086
+ return (!t && G(n) ? n.value : n) ?? void 0;
5075
5087
  }
5076
5088
  has(e) {
5077
5089
  return !!Xr(this.items, e);
5078
5090
  }
5079
5091
  set(e, t) {
5080
- this.add(new Q(e, t), !0);
5092
+ this.add(new Z(e, t), !0);
5081
5093
  }
5082
5094
  toJSON(e, t, n) {
5083
5095
  let r = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
@@ -5087,7 +5099,7 @@ var $ = class extends fr {
5087
5099
  }
5088
5100
  toString(e, t, n) {
5089
5101
  if (!e) return JSON.stringify(this);
5090
- for (let e of this.items) if (!G(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
5102
+ for (let e of this.items) if (!W(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
5091
5103
  return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Kr(this, e, {
5092
5104
  blockItemPrefix: "",
5093
5105
  flowChars: {
@@ -5102,12 +5114,12 @@ var $ = class extends fr {
5102
5114
  }, Zr = {
5103
5115
  collection: "map",
5104
5116
  default: !0,
5105
- nodeClass: $,
5117
+ nodeClass: Q,
5106
5118
  tag: "tag:yaml.org,2002:map",
5107
5119
  resolve(e, t) {
5108
5120
  return Ln(e) || t("Expected a mapping for this tag"), e;
5109
5121
  },
5110
- createNode: (e, t, n) => $.from(e, t, n)
5122
+ createNode: (e, t, n) => Q.from(e, t, n)
5111
5123
  }, Qr = class extends fr {
5112
5124
  static get tagName() {
5113
5125
  return "tag:yaml.org,2002:seq";
@@ -5126,7 +5138,7 @@ var $ = class extends fr {
5126
5138
  let n = $r(e);
5127
5139
  if (typeof n != "number") return;
5128
5140
  let r = this.items[n];
5129
- return !t && K(r) ? r.value : r;
5141
+ return !t && G(r) ? r.value : r;
5130
5142
  }
5131
5143
  has(e) {
5132
5144
  let t = $r(e);
@@ -5136,13 +5148,13 @@ var $ = class extends fr {
5136
5148
  let n = $r(e);
5137
5149
  if (typeof n != "number") throw Error(`Expected a valid index, not ${e}.`);
5138
5150
  let r = this.items[n];
5139
- K(r) && or(t) ? r.value = t : this.items[n] = t;
5151
+ G(r) && or(t) ? r.value = t : this.items[n] = t;
5140
5152
  }
5141
5153
  toJSON(e, t) {
5142
5154
  let n = [];
5143
5155
  t?.onCreate && t.onCreate(n);
5144
5156
  let r = 0;
5145
- for (let e of this.items) n.push(X(e, String(r++), t));
5157
+ for (let e of this.items) n.push(Y(e, String(r++), t));
5146
5158
  return n;
5147
5159
  }
5148
5160
  toString(e, t, n) {
@@ -5173,7 +5185,7 @@ var $ = class extends fr {
5173
5185
  }
5174
5186
  };
5175
5187
  function $r(e) {
5176
- let t = K(e) ? e.value : e;
5188
+ let t = G(e) ? e.value : e;
5177
5189
  return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
5178
5190
  }
5179
5191
  //#endregion
@@ -5197,18 +5209,18 @@ var ei = {
5197
5209
  }
5198
5210
  }, ni = {
5199
5211
  identify: (e) => e == null,
5200
- createNode: () => new Z(null),
5212
+ createNode: () => new X(null),
5201
5213
  default: !0,
5202
5214
  tag: "tag:yaml.org,2002:null",
5203
5215
  test: /^(?:~|[Nn]ull|NULL)?$/,
5204
- resolve: () => new Z(null),
5216
+ resolve: () => new X(null),
5205
5217
  stringify: ({ source: e }, t) => typeof e == "string" && ni.test.test(e) ? e : t.options.nullStr
5206
5218
  }, ri = {
5207
5219
  identify: (e) => typeof e == "boolean",
5208
5220
  default: !0,
5209
5221
  tag: "tag:yaml.org,2002:bool",
5210
5222
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
5211
- resolve: (e) => new Z(e[0] === "t" || e[0] === "T"),
5223
+ resolve: (e) => new X(e[0] === "t" || e[0] === "T"),
5212
5224
  stringify({ source: e, value: t }, n) {
5213
5225
  return e && ri.test.test(e) && t === (e[0] === "t" || e[0] === "T") ? e : t ? n.options.trueStr : n.options.falseStr;
5214
5226
  }
@@ -5254,7 +5266,7 @@ var ai = {
5254
5266
  tag: "tag:yaml.org,2002:float",
5255
5267
  test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
5256
5268
  resolve(e) {
5257
- let t = new Z(parseFloat(e)), n = e.indexOf(".");
5269
+ let t = new X(parseFloat(e)), n = e.indexOf(".");
5258
5270
  return n !== -1 && e[e.length - 1] === "0" && (t.minFractionDigits = e.length - n - 1), t;
5259
5271
  },
5260
5272
  stringify: ii
@@ -5314,7 +5326,7 @@ var gi = ({ value: e }) => JSON.stringify(e), _i = [
5314
5326
  },
5315
5327
  {
5316
5328
  identify: (e) => e == null,
5317
- createNode: () => new Z(null),
5329
+ createNode: () => new X(null),
5318
5330
  default: !0,
5319
5331
  tag: "tag:yaml.org,2002:null",
5320
5332
  test: /^null$/,
@@ -5372,10 +5384,10 @@ var gi = ({ value: e }) => JSON.stringify(e), _i = [
5372
5384
  for (let t = 0; t < o.length; ++t) e += String.fromCharCode(o[t]);
5373
5385
  s = btoa(e);
5374
5386
  } else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");
5375
- if (t ??= Z.BLOCK_LITERAL, t !== Z.QUOTE_DOUBLE) {
5387
+ if (t ??= X.BLOCK_LITERAL, t !== X.QUOTE_DOUBLE) {
5376
5388
  let e = Math.max(r.options.lineWidth - r.indent.length, r.options.minContentWidth), n = Math.ceil(s.length / e), i = Array(n);
5377
5389
  for (let t = 0, r = 0; t < n; ++t, r += e) i[t] = s.substr(r, e);
5378
- s = i.join(t === Z.BLOCK_LITERAL ? "\n" : " ");
5390
+ s = i.join(t === X.BLOCK_LITERAL ? "\n" : " ");
5379
5391
  }
5380
5392
  return Ar({
5381
5393
  comment: e,
@@ -5389,17 +5401,17 @@ var gi = ({ value: e }) => JSON.stringify(e), _i = [
5389
5401
  function bi(e, t) {
5390
5402
  if (Rn(e)) for (let n = 0; n < e.items.length; ++n) {
5391
5403
  let r = e.items[n];
5392
- if (!G(r)) {
5404
+ if (!W(r)) {
5393
5405
  if (Ln(r)) {
5394
5406
  r.items.length > 1 && t("Each pair must have its own sequence indicator");
5395
- let e = r.items[0] || new Q(new Z(null));
5407
+ let e = r.items[0] || new Z(new X(null));
5396
5408
  if (r.commentBefore && (e.key.commentBefore = e.key.commentBefore ? `${r.commentBefore}\n${e.key.commentBefore}` : r.commentBefore), r.comment) {
5397
5409
  let t = e.value ?? e.key;
5398
5410
  t.comment = t.comment ? `${r.comment}\n${t.comment}` : r.comment;
5399
5411
  }
5400
5412
  r = e;
5401
5413
  }
5402
- e.items[n] = G(r) ? r : new Q(r);
5414
+ e.items[n] = W(r) ? r : new Z(r);
5403
5415
  }
5404
5416
  }
5405
5417
  else t("Expected a sequence for this tag");
@@ -5432,7 +5444,7 @@ var Si = {
5432
5444
  createNode: xi
5433
5445
  }, Ci = class e extends Qr {
5434
5446
  constructor() {
5435
- super(), this.add = $.prototype.add.bind(this), this.delete = $.prototype.delete.bind(this), this.get = $.prototype.get.bind(this), this.has = $.prototype.has.bind(this), this.set = $.prototype.set.bind(this), this.tag = e.tag;
5447
+ super(), this.add = Q.prototype.add.bind(this), this.delete = Q.prototype.delete.bind(this), this.get = Q.prototype.get.bind(this), this.has = Q.prototype.has.bind(this), this.set = Q.prototype.set.bind(this), this.tag = e.tag;
5436
5448
  }
5437
5449
  toJSON(e, t) {
5438
5450
  if (!t) return super.toJSON(e);
@@ -5440,7 +5452,7 @@ var Si = {
5440
5452
  t?.onCreate && t.onCreate(n);
5441
5453
  for (let e of this.items) {
5442
5454
  let r, i;
5443
- if (G(e) ? (r = X(e.key, "", t), i = X(e.value, r, t)) : r = X(e, "", t), n.has(r)) throw Error("Ordered maps must not include duplicate keys");
5455
+ if (W(e) ? (r = Y(e.key, "", t), i = Y(e.value, r, t)) : r = Y(e, "", t), n.has(r)) throw Error("Ordered maps must not include duplicate keys");
5444
5456
  n.set(r, i);
5445
5457
  }
5446
5458
  return n;
@@ -5459,7 +5471,7 @@ var wi = {
5459
5471
  tag: "tag:yaml.org,2002:omap",
5460
5472
  resolve(e, t) {
5461
5473
  let n = bi(e, t), r = [];
5462
- for (let { key: e } of n.items) K(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
5474
+ for (let { key: e } of n.items) G(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
5463
5475
  return Object.assign(new Ci(), n);
5464
5476
  },
5465
5477
  createNode: (e, t, n) => Ci.from(e, t, n)
@@ -5474,14 +5486,14 @@ var Ei = {
5474
5486
  default: !0,
5475
5487
  tag: "tag:yaml.org,2002:bool",
5476
5488
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
5477
- resolve: () => new Z(!0),
5489
+ resolve: () => new X(!0),
5478
5490
  stringify: Ti
5479
5491
  }, Di = {
5480
5492
  identify: (e) => e === !1,
5481
5493
  default: !0,
5482
5494
  tag: "tag:yaml.org,2002:bool",
5483
5495
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
5484
- resolve: () => new Z(!1),
5496
+ resolve: () => new X(!1),
5485
5497
  stringify: Ti
5486
5498
  }, Oi = {
5487
5499
  identify: (e) => typeof e == "number",
@@ -5507,7 +5519,7 @@ var Ei = {
5507
5519
  tag: "tag:yaml.org,2002:float",
5508
5520
  test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
5509
5521
  resolve(e) {
5510
- let t = new Z(parseFloat(e.replace(/_/g, ""))), n = e.indexOf(".");
5522
+ let t = new X(parseFloat(e.replace(/_/g, ""))), n = e.indexOf(".");
5511
5523
  if (n !== -1) {
5512
5524
  let r = e.substring(n + 1).replace(/_/g, "");
5513
5525
  r[r.length - 1] === "0" && (t.minFractionDigits = r.length);
@@ -5573,22 +5585,22 @@ var Pi = {
5573
5585
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
5574
5586
  resolve: (e, t, n) => Mi(e, 2, 16, n),
5575
5587
  stringify: (e) => Ni(e, 16, "0x")
5576
- }, Ri = class e extends $ {
5588
+ }, Ri = class e extends Q {
5577
5589
  constructor(t) {
5578
5590
  super(t), this.tag = e.tag;
5579
5591
  }
5580
5592
  add(e) {
5581
5593
  let t;
5582
- t = G(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new Q(e.key, null) : new Q(e, null), Xr(this.items, t.key) || this.items.push(t);
5594
+ t = W(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new Z(e.key, null) : new Z(e, null), Xr(this.items, t.key) || this.items.push(t);
5583
5595
  }
5584
5596
  get(e, t) {
5585
5597
  let n = Xr(this.items, e);
5586
- return !t && G(n) ? K(n.key) ? n.key.value : n.key : n;
5598
+ return !t && W(n) ? G(n.key) ? n.key.value : n.key : n;
5587
5599
  }
5588
5600
  set(e, t) {
5589
5601
  if (typeof t != "boolean") throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
5590
5602
  let n = Xr(this.items, e);
5591
- n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new Q(e));
5603
+ n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new Z(e));
5592
5604
  }
5593
5605
  toJSON(e, t) {
5594
5606
  return super.toJSON(e, t, Set);
@@ -5776,7 +5788,7 @@ function Qi(e, t) {
5776
5788
  }
5777
5789
  let o = !1, s = null;
5778
5790
  if (e.contents) {
5779
- if (J(e.contents)) {
5791
+ if (q(e.contents)) {
5780
5792
  if (e.contents.spaceBefore && r && n.push(""), e.contents.commentBefore) {
5781
5793
  let t = a(e.contents.commentBefore);
5782
5794
  n.push(mr(t, ""));
@@ -5801,7 +5813,7 @@ function Qi(e, t) {
5801
5813
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js
5802
5814
  var $i = class e {
5803
5815
  constructor(e, t, n) {
5804
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, W, { value: An });
5816
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, U, { value: An });
5805
5817
  let r = null;
5806
5818
  typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t, t = void 0);
5807
5819
  let i = Object.assign({
@@ -5819,8 +5831,8 @@ var $i = class e {
5819
5831
  n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new Zn({ version: a }), this.setSchema(a, n), this.contents = e === void 0 ? null : this.createNode(e, r, n);
5820
5832
  }
5821
5833
  clone() {
5822
- let t = Object.create(e.prototype, { [W]: { value: An } });
5823
- return t.commentBefore = this.commentBefore, t.comment = this.comment, t.errors = this.errors.slice(), t.warnings = this.warnings.slice(), t.options = Object.assign({}, this.options), this.directives && (t.directives = this.directives.clone()), t.schema = this.schema.clone(), t.contents = J(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
5834
+ let t = Object.create(e.prototype, { [U]: { value: An } });
5835
+ return t.commentBefore = this.commentBefore, t.comment = this.comment, t.errors = this.errors.slice(), t.warnings = this.warnings.slice(), t.options = Object.assign({}, this.options), this.directives && (t.directives = this.directives.clone()), t.schema = this.schema.clone(), t.contents = q(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
5824
5836
  }
5825
5837
  add(e) {
5826
5838
  ea(this.contents) && this.contents.add(e);
@@ -5851,10 +5863,10 @@ var $i = class e {
5851
5863
  schema: this.schema,
5852
5864
  sourceObjects: f
5853
5865
  }, m = lr(e, l, p);
5854
- return o && q(m) && (m.flow = !0), d(), m;
5866
+ return o && K(m) && (m.flow = !0), d(), m;
5855
5867
  }
5856
5868
  createPair(e, t, n = {}) {
5857
- return new Q(this.createNode(e, null, n), this.createNode(t, null, n));
5869
+ return new Z(this.createNode(e, null, n), this.createNode(t, null, n));
5858
5870
  }
5859
5871
  delete(e) {
5860
5872
  return ea(this.contents) ? this.contents.delete(e) : !1;
@@ -5863,16 +5875,16 @@ var $i = class e {
5863
5875
  return dr(e) ? this.contents != null && (this.contents = null, !0) : ea(this.contents) ? this.contents.deleteIn(e) : !1;
5864
5876
  }
5865
5877
  get(e, t) {
5866
- return q(this.contents) ? this.contents.get(e, t) : void 0;
5878
+ return K(this.contents) ? this.contents.get(e, t) : void 0;
5867
5879
  }
5868
5880
  getIn(e, t) {
5869
- return dr(e) ? !t && K(this.contents) ? this.contents.value : this.contents : q(this.contents) ? this.contents.getIn(e, t) : void 0;
5881
+ return dr(e) ? !t && G(this.contents) ? this.contents.value : this.contents : K(this.contents) ? this.contents.getIn(e, t) : void 0;
5870
5882
  }
5871
5883
  has(e) {
5872
- return q(this.contents) ? this.contents.has(e) : !1;
5884
+ return K(this.contents) ? this.contents.has(e) : !1;
5873
5885
  }
5874
5886
  hasIn(e) {
5875
- return dr(e) ? this.contents !== void 0 : q(this.contents) ? this.contents.hasIn(e) : !1;
5887
+ return dr(e) ? this.contents !== void 0 : K(this.contents) ? this.contents.hasIn(e) : !1;
5876
5888
  }
5877
5889
  set(e, t) {
5878
5890
  this.contents == null ? this.contents = ur(this.schema, [e], t) : ea(this.contents) && this.contents.set(e, t);
@@ -5917,7 +5929,7 @@ var $i = class e {
5917
5929
  mapAsMap: n === !0,
5918
5930
  mapKeyWarned: !1,
5919
5931
  maxAliasCount: typeof r == "number" ? r : 100
5920
- }, s = X(this.contents, t ?? "", o);
5932
+ }, s = Y(this.contents, t ?? "", o);
5921
5933
  if (typeof i == "function") for (let { count: e, res: t } of o.anchors.values()) i(t, e);
5922
5934
  return typeof a == "function" ? nr(a, { "": s }, "", s) : s;
5923
5935
  }
@@ -5939,7 +5951,7 @@ var $i = class e {
5939
5951
  }
5940
5952
  };
5941
5953
  function ea(e) {
5942
- if (q(e)) return !0;
5954
+ if (K(e)) return !0;
5943
5955
  throw Error("Expected a YAML collection as document contents");
5944
5956
  }
5945
5957
  //#endregion
@@ -5980,7 +5992,7 @@ var ta = class extends Error {
5980
5992
  //#endregion
5981
5993
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-props.js
5982
5994
  function aa(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIndent: o, startOnNewline: s }) {
5983
- let c = !1, l = s, u = s, d = "", f = "", p = !1, m = !1, h = null, g = null, _ = null, v = null, y = null, b = null, x = null;
5995
+ let c = !1, l = s, u = s, d = "", f = "", p = !1, m = !1, h = null, g = null, _ = null, v = null, y = null, ee = null, b = null;
5984
5996
  for (let i of e) switch (m &&= (i.type !== "space" && i.type !== "newline" && i.type !== "comma" && a(i.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), !1), h &&= (l && i.type !== "comment" && i.type !== "newline" && a(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), null), i.type) {
5985
5997
  case "space":
5986
5998
  !t && (n !== "doc-start" || r?.type !== "flow-collection") && i.source.includes(" ") && (h = i), u = !0;
@@ -5992,16 +6004,16 @@ function aa(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
5992
6004
  break;
5993
6005
  }
5994
6006
  case "newline":
5995
- l ? d ? d += i.source : (!b || n !== "seq-item-ind") && (c = !0) : f += i.source, l = !0, p = !0, (g || _) && (v = i), u = !0;
6007
+ l ? d ? d += i.source : (!ee || n !== "seq-item-ind") && (c = !0) : f += i.source, l = !0, p = !0, (g || _) && (v = i), u = !0;
5996
6008
  break;
5997
6009
  case "anchor":
5998
- g && a(i, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), i.source.endsWith(":") && a(i.offset + i.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), g = i, x ??= i.offset, l = !1, u = !1, m = !0;
6010
+ g && a(i, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), i.source.endsWith(":") && a(i.offset + i.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), g = i, b ??= i.offset, l = !1, u = !1, m = !0;
5999
6011
  break;
6000
6012
  case "tag":
6001
- _ && a(i, "MULTIPLE_TAGS", "A node can have at most one tag"), _ = i, x ??= i.offset, l = !1, u = !1, m = !0;
6013
+ _ && a(i, "MULTIPLE_TAGS", "A node can have at most one tag"), _ = i, b ??= i.offset, l = !1, u = !1, m = !0;
6002
6014
  break;
6003
6015
  case n:
6004
- (g || _) && a(i, "BAD_PROP_ORDER", `Anchors and tags must be after the ${i.source} indicator`), b && a(i, "UNEXPECTED_TOKEN", `Unexpected ${i.source} in ${t ?? "collection"}`), b = i, l = n === "seq-item-ind" || n === "explicit-key-ind", u = !1;
6016
+ (g || _) && a(i, "BAD_PROP_ORDER", `Anchors and tags must be after the ${i.source} indicator`), ee && a(i, "UNEXPECTED_TOKEN", `Unexpected ${i.source} in ${t ?? "collection"}`), ee = i, l = n === "seq-item-ind" || n === "explicit-key-ind", u = !1;
6005
6017
  break;
6006
6018
  case "comma": if (t) {
6007
6019
  y && a(i, "UNEXPECTED_TOKEN", `Unexpected , in ${t}`), y = i, l = !1, u = !1;
@@ -6009,18 +6021,18 @@ function aa(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
6009
6021
  }
6010
6022
  default: a(i, "UNEXPECTED_TOKEN", `Unexpected ${i.type} token`), l = !1, u = !1;
6011
6023
  }
6012
- let S = e[e.length - 1], ee = S ? S.offset + S.source.length : i;
6024
+ let x = e[e.length - 1], te = x ? x.offset + x.source.length : i;
6013
6025
  return m && r && r.type !== "space" && r.type !== "newline" && r.type !== "comma" && (r.type !== "scalar" || r.source !== "") && a(r.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), h && (l && h.indent <= o || r?.type === "block-map" || r?.type === "block-seq") && a(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
6014
6026
  comma: y,
6015
- found: b,
6027
+ found: ee,
6016
6028
  spaceBefore: c,
6017
6029
  comment: d,
6018
6030
  hasNewline: p,
6019
6031
  anchor: g,
6020
6032
  tag: _,
6021
6033
  newlineAfterProp: v,
6022
- end: ee,
6023
- start: x ?? ee
6034
+ end: te,
6035
+ start: b ?? te
6024
6036
  };
6025
6037
  }
6026
6038
  //#endregion
@@ -6062,14 +6074,14 @@ function sa(e, t, n) {
6062
6074
  function ca(e, t, n) {
6063
6075
  let { uniqueKeys: r } = e.options;
6064
6076
  if (r === !1) return !1;
6065
- let i = typeof r == "function" ? r : (e, t) => e === t || K(e) && K(t) && e.value === t.value;
6077
+ let i = typeof r == "function" ? r : (e, t) => e === t || G(e) && G(t) && e.value === t.value;
6066
6078
  return t.some((e) => i(e.key, n));
6067
6079
  }
6068
6080
  //#endregion
6069
6081
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js
6070
6082
  var la = "All mapping items must start at the same column";
6071
6083
  function ua({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
6072
- let o = new ((a?.nodeClass) ?? $)(n.schema);
6084
+ let o = new ((a?.nodeClass) ?? Q)(n.schema);
6073
6085
  n.atRoot &&= !1;
6074
6086
  let s = r.offset, c = null;
6075
6087
  for (let a of r.items) {
@@ -6103,11 +6115,11 @@ function ua({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
6103
6115
  m && (f?.type === "block-map" && !_.hasNewline && i(s, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && p.start < _.found.offset - 1024 && i(g.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
6104
6116
  let c = f ? e(n, f, _, i) : t(n, s, d, null, _, i);
6105
6117
  n.schema.compat && sa(r.indent, f, i), s = c.range[2];
6106
- let l = new Q(g, c);
6118
+ let l = new Z(g, c);
6107
6119
  n.options.keepSourceTokens && (l.srcToken = a), o.items.push(l);
6108
6120
  } else {
6109
6121
  m && i(g.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), _.comment && (g.comment ? g.comment += "\n" + _.comment : g.comment = _.comment);
6110
- let e = new Q(g);
6122
+ let e = new Z(g);
6111
6123
  n.options.keepSourceTokens && (e.srcToken = a), o.items.push(e);
6112
6124
  }
6113
6125
  }
@@ -6183,7 +6195,7 @@ function fa(e, t, n, r) {
6183
6195
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
6184
6196
  var pa = "Block collections are not allowed within flow collections", ma = (e) => e && (e.type === "block-map" || e.type === "block-seq");
6185
6197
  function ha({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
6186
- let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new ((a?.nodeClass) ?? (o ? $ : Qr))(n.schema);
6198
+ let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new ((a?.nodeClass) ?? (o ? Q : Qr))(n.schema);
6187
6199
  c.flow = !0;
6188
6200
  let l = n.atRoot;
6189
6201
  l && (n.atRoot = !1), n.atKey &&= !1;
@@ -6218,7 +6230,7 @@ function ha({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
6218
6230
  }
6219
6231
  if (e) {
6220
6232
  let t = c.items[c.items.length - 1];
6221
- G(t) && (t = t.value ?? t.key), t.comment ? t.comment += "\n" + e : t.comment = e, h.comment = h.comment.substring(e.length + 1);
6233
+ W(t) && (t = t.value ?? t.key), t.comment ? t.comment += "\n" + e : t.comment = e, h.comment = h.comment.substring(e.length + 1);
6222
6234
  }
6223
6235
  }
6224
6236
  if (!o && !p && !h.found) {
@@ -6251,12 +6263,12 @@ function ha({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
6251
6263
  } else m && ("source" in m && m.source?.[0] === ":" ? i(m, "MISSING_CHAR", `Missing space after : in ${s}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${s} items`));
6252
6264
  let v = m ? e(n, m, _, i) : _.found ? t(n, _.end, p, null, _, i) : null;
6253
6265
  v ? ma(m) && i(v.range, "BLOCK_IN_FLOW", pa) : _.comment && (g.comment ? g.comment += "\n" + _.comment : g.comment = _.comment);
6254
- let y = new Q(g, v);
6266
+ let y = new Z(g, v);
6255
6267
  if (n.options.keepSourceTokens && (y.srcToken = l), o) {
6256
6268
  let e = c;
6257
6269
  ca(n, e.items, g) && i(a, "DUPLICATE_KEY", "Map keys must be unique"), e.items.push(y);
6258
6270
  } else {
6259
- let e = new $(n.schema);
6271
+ let e = new Q(n.schema);
6260
6272
  e.flow = !0, e.items.push(y);
6261
6273
  let t = (v ?? g).range;
6262
6274
  e.range = [
@@ -6301,14 +6313,14 @@ function _a(e, t, n, r, i) {
6301
6313
  n && (!t || t.offset < n.offset) && i(n, "MISSING_CHAR", "Missing newline after block sequence props");
6302
6314
  }
6303
6315
  let s = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
6304
- if (!a || !o || o === "!" || o === $.tagName && s === "map" || o === Qr.tagName && s === "seq") return ga(e, t, n, i, o);
6316
+ if (!a || !o || o === "!" || o === Q.tagName && s === "map" || o === Qr.tagName && s === "seq") return ga(e, t, n, i, o);
6305
6317
  let c = t.schema.tags.find((e) => e.tag === o && e.collection === s);
6306
6318
  if (!c) {
6307
6319
  let r = t.schema.knownTags[o];
6308
6320
  if (r?.collection === s) t.schema.tags.push(Object.assign({}, r, { default: !1 })), c = r;
6309
6321
  else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), ga(e, t, n, i, o);
6310
6322
  }
6311
- let l = ga(e, t, n, i, o, c), u = c.resolve?.(l, (e) => i(a, "TAG_RESOLVE_FAILED", e), t.options) ?? l, d = J(u) ? u : new Z(u);
6323
+ let l = ga(e, t, n, i, o, c), u = c.resolve?.(l, (e) => i(a, "TAG_RESOLVE_FAILED", e), t.options) ?? l, d = q(u) ? u : new X(u);
6312
6324
  return d.range = l.range, d.tag = o, c?.format && (d.format = c.format), d;
6313
6325
  }
6314
6326
  //#endregion
@@ -6325,7 +6337,7 @@ function va(e, t, n) {
6325
6337
  r
6326
6338
  ]
6327
6339
  };
6328
- let a = i.mode === ">" ? Z.BLOCK_FOLDED : Z.BLOCK_LITERAL, o = t.source ? ba(t.source) : [], s = o.length;
6340
+ let a = i.mode === ">" ? X.BLOCK_FOLDED : X.BLOCK_LITERAL, o = t.source ? ba(t.source) : [], s = o.length;
6329
6341
  for (let e = o.length - 1; e >= 0; --e) {
6330
6342
  let t = o[e][1];
6331
6343
  if (t === "" || t === "\r") s = e;
@@ -6366,7 +6378,7 @@ function va(e, t, n) {
6366
6378
  let e = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
6367
6379
  n(l - r.length - (s ? 2 : 1), "BAD_INDENT", e), t = "";
6368
6380
  }
6369
- a === Z.BLOCK_LITERAL ? (d += f + t.slice(c) + r, f = "\n") : t.length > c || r[0] === " " ? (f === " " ? f = "\n" : !p && f === "\n" && (f = "\n\n"), d += f + t.slice(c) + r, f = "\n", p = !0) : r === "" ? f === "\n" ? d += "\n" : f = "\n" : (d += f + r, f = " ", p = !1);
6381
+ a === X.BLOCK_LITERAL ? (d += f + t.slice(c) + r, f = "\n") : t.length > c || r[0] === " " ? (f === " " ? f = "\n" : !p && f === "\n" && (f = "\n\n"), d += f + t.slice(c) + r, f = "\n", p = !0) : r === "" ? f === "\n" ? d += "\n" : f = "\n" : (d += f + r, f = " ", p = !1);
6370
6382
  }
6371
6383
  switch (i.chomp) {
6372
6384
  case "-": break;
@@ -6442,13 +6454,13 @@ function xa(e, t, n) {
6442
6454
  let { offset: r, type: i, source: a, end: o } = e, s, c, l = (e, t, i) => n(r + e, t, i);
6443
6455
  switch (i) {
6444
6456
  case "scalar":
6445
- s = Z.PLAIN, c = Sa(a, l);
6457
+ s = X.PLAIN, c = Sa(a, l);
6446
6458
  break;
6447
6459
  case "single-quoted-scalar":
6448
- s = Z.QUOTE_SINGLE, c = Ca(a, l);
6460
+ s = X.QUOTE_SINGLE, c = Ca(a, l);
6449
6461
  break;
6450
6462
  case "double-quoted-scalar":
6451
- s = Z.QUOTE_DOUBLE, c = Ta(a, l);
6463
+ s = X.QUOTE_DOUBLE, c = Ta(a, l);
6452
6464
  break;
6453
6465
  /* istanbul ignore next should not happen */
6454
6466
  default: return n(e, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -6587,10 +6599,10 @@ function ka(e, t, n, r) {
6587
6599
  let u;
6588
6600
  try {
6589
6601
  let a = l.resolve(i, (e) => r(n ?? t, "TAG_RESOLVE_FAILED", e), e.options);
6590
- u = K(a) ? a : new Z(a);
6602
+ u = G(a) ? a : new X(a);
6591
6603
  } catch (e) {
6592
6604
  let a = e instanceof Error ? e.message : String(e);
6593
- r(n ?? t, "TAG_RESOLVE_FAILED", a), u = new Z(i);
6605
+ r(n ?? t, "TAG_RESOLVE_FAILED", a), u = new X(i);
6594
6606
  }
6595
6607
  return u.range = s, u.source = i, a && (u.type = a), c && (u.tag = c), l.format && (u.format = l.format), o && (u.comment = o), u;
6596
6608
  }
@@ -6665,7 +6677,7 @@ function Pa(e, t, n, r) {
6665
6677
  break;
6666
6678
  default: r(t, "UNEXPECTED_TOKEN", t.type === "error" ? t.message : `Unsupported token (type: ${t.type})`), u = !1;
6667
6679
  }
6668
- return l ??= Fa(e, t.offset, void 0, null, n, r), s && l.anchor === "" && r(s, "BAD_ALIAS", "Anchor cannot be an empty string"), i && e.options.stringKeys && (!K(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), a && (l.spaceBefore = !0), o && (t.type === "scalar" && t.source === "" ? l.comment = o : l.commentBefore = o), e.options.keepSourceTokens && u && (l.srcToken = t), l;
6680
+ return l ??= Fa(e, t.offset, void 0, null, n, r), s && l.anchor === "" && r(s, "BAD_ALIAS", "Anchor cannot be an empty string"), i && e.options.stringKeys && (!G(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), a && (l.spaceBefore = !0), o && (t.type === "scalar" && t.source === "" ? l.comment = o : l.commentBefore = o), e.options.keepSourceTokens && u && (l.srcToken = t), l;
6669
6681
  }
6670
6682
  function Fa(e, t, n, r, { spaceBefore: i, comment: a, anchor: o, tag: s, end: c }, l) {
6671
6683
  let u = ka(e, {
@@ -6751,9 +6763,9 @@ var Ba = class {
6751
6763
  let i = e.contents;
6752
6764
  if (t) e.comment = e.comment ? `${e.comment}\n${n}` : n;
6753
6765
  else if (r || e.directives.docStart || !i) e.commentBefore = n;
6754
- else if (q(i) && !i.flow && i.items.length > 0) {
6766
+ else if (K(i) && !i.flow && i.items.length > 0) {
6755
6767
  let e = i.items[0];
6756
- G(e) && (e = e.key);
6768
+ W(e) && (e = e.key);
6757
6769
  let t = e.commentBefore;
6758
6770
  e.commentBefore = t ? `${n}\n${t}` : n;
6759
6771
  } else {
@@ -7120,7 +7132,7 @@ function eo(e, t, n) {
7120
7132
  }
7121
7133
  //#endregion
7122
7134
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js
7123
- var to = /* @__PURE__ */ C({
7135
+ var to = /* @__PURE__ */ re({
7124
7136
  BOM: () => "",
7125
7137
  DOCUMENT: () => "",
7126
7138
  FLOW_END: () => "",
@@ -8256,29 +8268,29 @@ function Do(e, t, n) {
8256
8268
  }
8257
8269
  //#endregion
8258
8270
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js
8259
- var Oo = /* @__PURE__ */ C({
8271
+ var Oo = /* @__PURE__ */ re({
8260
8272
  Alias: () => ir,
8261
8273
  CST: () => to,
8262
8274
  Composer: () => Ba,
8263
8275
  Document: () => $i,
8264
8276
  Lexer: () => po,
8265
8277
  LineCounter: () => mo,
8266
- Pair: () => Q,
8278
+ Pair: () => Z,
8267
8279
  Parser: () => So,
8268
- Scalar: () => Z,
8280
+ Scalar: () => X,
8269
8281
  Schema: () => Zi,
8270
8282
  YAMLError: () => ta,
8271
- YAMLMap: () => $,
8283
+ YAMLMap: () => Q,
8272
8284
  YAMLParseError: () => na,
8273
8285
  YAMLSeq: () => Qr,
8274
8286
  YAMLWarning: () => ra,
8275
8287
  isAlias: () => Fn,
8276
- isCollection: () => q,
8288
+ isCollection: () => K,
8277
8289
  isDocument: () => In,
8278
8290
  isMap: () => Ln,
8279
- isNode: () => J,
8280
- isPair: () => G,
8281
- isScalar: () => K,
8291
+ isNode: () => q,
8292
+ isPair: () => W,
8293
+ isScalar: () => G,
8282
8294
  isSeq: () => Rn,
8283
8295
  parse: () => Eo,
8284
8296
  parseAllDocuments: () => wo,
@@ -8288,18 +8300,18 @@ var Oo = /* @__PURE__ */ C({
8288
8300
  visitAsync: () => Wn
8289
8301
  }), ko = class {
8290
8302
  constructor(e, t = 5) {
8291
- this.baseDir = o.resolve(e), this.maxDepth = t;
8303
+ this.baseDir = a.resolve(e), this.maxDepth = t;
8292
8304
  }
8293
8305
  resolve(t, n = /* @__PURE__ */ new Set(), r = 0) {
8294
8306
  if (r > this.maxDepth) throw Error(`Max include depth of ${this.maxDepth} exceeded at ${t}`);
8295
- let i = o.resolve(this.baseDir, t);
8307
+ let i = a.resolve(this.baseDir, t);
8296
8308
  if (!i.startsWith(this.baseDir)) throw Error(`Security Violation: Include path '${t}' is outside workspace directory.`);
8297
8309
  if (n.has(i)) {
8298
8310
  let e = Array.from(n).concat(i).join(" -> ");
8299
8311
  throw Error(`Circular 'includes' dependency detected: ${e}`);
8300
8312
  }
8301
8313
  if (n.add(i), !e.existsSync(i)) throw Error(`Included workflow partial not found: ${t}`);
8302
- let a = e.readFileSync(i, "utf-8"), s = Oo.parse(a);
8314
+ let o = e.readFileSync(i, "utf-8"), s = Oo.parse(o);
8303
8315
  if (Array.isArray(s.includes)) {
8304
8316
  for (let e of s.includes) {
8305
8317
  let t = this.resolve(e, new Set(n), r + 1);
@@ -8344,7 +8356,7 @@ function Ao(e) {
8344
8356
  //#region src/parser/yaml-loader.ts
8345
8357
  var jo = class e {
8346
8358
  static async from(t) {
8347
- let n = s(t) ? l("/", t) : c(process.cwd(), l("/", t)), r = (await g(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => c(n, e.name)), i = [], a = new ko(t);
8359
+ let n = o(t) ? c("/", t) : s(process.cwd(), c("/", t)), r = (await h(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => s(n, e.name)), i = [], a = new ko(t);
8348
8360
  for (let t of r) i.push(...await e.loadFile(t, a));
8349
8361
  return i;
8350
8362
  }
@@ -8353,7 +8365,7 @@ var jo = class e {
8353
8365
  try {
8354
8366
  let r = Ao(t.resolve(e));
8355
8367
  for (let e of r) n.push({
8356
- id: e.id || e.name.toLowerCase().replace(/[^a-z0-9]/g, "-"),
8368
+ id: (e.id || e.name)?.toLowerCase().replace(/[^a-z0-9]/g, "-") ?? m(),
8357
8369
  name: e.name,
8358
8370
  on: {
8359
8371
  provider: Object.keys(e.on || {})[0] || "generic",
@@ -8386,16 +8398,17 @@ async function Po(e, t, n, r = No) {
8386
8398
  }
8387
8399
  throw Error(a || await i.text());
8388
8400
  }
8389
- var Fo = Po.bind(null, "get"), Io = Po.bind(null, "run"), Lo = Po.bind(null, "all");
8390
- function Ro(e) {
8401
+ var Fo = Po.bind(null, "get"), Io = Po.bind(null, "run"), Lo = Po.bind(null, "all"), Ro = Po.bind(null, "exec");
8402
+ function zo(e) {
8391
8403
  Array.isArray(e) && e.every((e) => typeof e == "string") && (No = e);
8392
8404
  }
8393
- var zo = {
8405
+ var $ = {
8394
8406
  query: Po,
8395
8407
  get: Fo,
8396
8408
  run: Io,
8397
8409
  all: Lo,
8398
- pragma: Ro
8410
+ exec: Ro,
8411
+ pragma: zo
8399
8412
  };
8400
8413
  function Bo(e) {
8401
8414
  Mo = e;
@@ -8410,35 +8423,47 @@ var Vo = class {
8410
8423
  await this.createTables(), await this.clearStaleJobs();
8411
8424
  }
8412
8425
  async enqueue(e, t, n) {
8413
- return n && await zo.run("UPDATE jobs SET status = 'cancelling' WHERE concurrency_key = ? AND status IN ('pending', 'running');", [n]), await zo.run("INSERT INTO jobs (workflow_id, concurrency_key, payload) VALUES (?, ?, ?);", [
8426
+ return n && await $.run("UPDATE jobs SET status = 'cancelling' WHERE concurrency_key = ? AND status IN ('pending', 'running');", [n]), await $.run("INSERT INTO jobs (workflow_id, concurrency_key, payload) VALUES (?, ?, ?);", [
8414
8427
  e,
8415
8428
  n || "",
8416
8429
  JSON.stringify(t)
8417
8430
  ]);
8418
8431
  }
8419
8432
  async claimNextJob() {
8420
- return await zo.get("\n UPDATE jobs\n SET\n status = 'running',\n worker_id = ?,\n started_at = CURRENT_TIMESTAMP\n WHERE id = (\n SELECT id FROM jobs\n WHERE status = 'pending'\n ORDER BY created_at ASC\n LIMIT 1\n )\n RETURNING *;\n ", [this.workerId]) || null;
8433
+ return await $.get("\n UPDATE jobs\n SET\n status = 'running',\n worker_id = ?,\n started_at = CURRENT_TIMESTAMP\n WHERE id = (\n SELECT id FROM jobs\n WHERE status = 'pending'\n ORDER BY created_at ASC\n LIMIT 1\n )\n RETURNING *;\n ", [this.workerId]) || null;
8421
8434
  }
8422
8435
  async finishJob(e, t) {
8423
- await zo.run("UPDATE jobs SET status = ?, finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [t, e]);
8436
+ await $.run("UPDATE jobs SET status = ?, finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [t, e]);
8424
8437
  }
8425
8438
  async isCancelled(e) {
8426
- return (await zo.get("SELECT status FROM jobs WHERE id = ?;", [e]))?.status === "cancelling";
8439
+ return (await $.get("SELECT status FROM jobs WHERE id = ?;", [+e]))?.status === "cancelling";
8427
8440
  }
8428
8441
  async clearStaleJobs() {
8429
- return await zo.run("UPDATE jobs SET status = 'pending', worker_id = NULL WHERE status = 'running' AND started_at < datetime('now', '-1 hour');");
8442
+ return await $.run("UPDATE jobs SET status = 'pending', worker_id = NULL WHERE status = 'running' AND started_at < datetime('now', '-1 hour');");
8430
8443
  }
8431
8444
  async createTables() {
8432
- return zo.run("\n CREATE TABLE IF NOT EXISTS jobs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n workflow_id TEXT NOT NULL,\n payload TEXT NOT NULL,\n status TEXT NOT NULL DEFAULT 'pending',\n concurrency_key TEXT,\n worker_id TEXT,\n report TEXT,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n started_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n finished_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP\n );");
8433
- }
8434
- async saveReport(e, t) {
8435
- await zo.run("UPDATE jobs SET report = ?, updated_at = CURRENT_TIMESTAMP WHERE id = ?", [JSON.stringify(t), e]);
8445
+ await $.exec("\n CREATE TABLE IF NOT EXISTS jobs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n workflow_id TEXT NOT NULL,\n payload TEXT NOT NULL,\n status TEXT NOT NULL DEFAULT 'pending',\n concurrency_key TEXT,\n worker_id TEXT,\n report TEXT,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP\n started_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n finished_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n );\n\n CREATE TABLE IF NOT EXISTS step_logs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n job_id INTEGER NOT NULL,\n step_id TEXT NOT NULL,\n log_content TEXT NOT NULL,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n FOREIGN KEY(job_id) REFERENCES jobs(id) ON DELETE CASCADE\n );\n\n CREATE INDEX IF NOT EXISTS idx_step_logs_job ON step_logs(job_id);\n ");
8436
8446
  }
8437
8447
  async getJob(e) {
8438
- return zo.get("SELECT * FROM jobs WHERE id = ?", [e]);
8448
+ return $.get("SELECT * FROM jobs WHERE id = ?", [e]);
8439
8449
  }
8440
8450
  async listJobs(e = 50) {
8441
- return zo.all("SELECT * FROM jobs ORDER BY id DESC LIMIT ?;", [e]);
8451
+ return $.all("SELECT * FROM jobs ORDER BY id DESC LIMIT ?;", [e]);
8452
+ }
8453
+ async saveReport(e, t) {
8454
+ await $.run("UPDATE jobs SET report = ?, updated_at = CURRENT_TIMESTAMP WHERE id = ?", [JSON.stringify(t), e]);
8455
+ }
8456
+ async saveStepLog(e, t, n) {
8457
+ n && await $.run("INSERT INTO step_logs (job_id, step_id, log_content) VALUES (?, ?, ?)", [
8458
+ e,
8459
+ t,
8460
+ n
8461
+ ]);
8462
+ }
8463
+ async getJobLogs(e) {
8464
+ let t = await $.all("SELECT step_id, log_content FROM step_logs WHERE job_id = ?", [e]), n = {};
8465
+ for (let e of t) n[e.step_id] = e.log_content;
8466
+ return n;
8442
8467
  }
8443
8468
  }, Ho = /* @__PURE__ */ ne(((e, t) => {
8444
8469
  t.exports = {};
@@ -8488,7 +8513,7 @@ var Vo = class {
8488
8513
  e ||= {};
8489
8514
  let t = y(e);
8490
8515
  e.path = t;
8491
- let n = C.configDotenv(e);
8516
+ let n = S.configDotenv(e);
8492
8517
  if (!n.parsed) {
8493
8518
  let e = /* @__PURE__ */ Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);
8494
8519
  throw e.code = "MISSING_DATA", e;
@@ -8496,12 +8521,12 @@ var Vo = class {
8496
8521
  let r = _(e).split(","), i = r.length, a;
8497
8522
  for (let e = 0; e < i; e++) try {
8498
8523
  let t = v(n, r[e].trim());
8499
- a = C.decrypt(t.ciphertext, t.key);
8524
+ a = S.decrypt(t.ciphertext, t.key);
8500
8525
  break;
8501
8526
  } catch (t) {
8502
8527
  if (e + 1 >= i) throw t;
8503
8528
  }
8504
- return C.parse(a);
8529
+ return S.parse(a);
8505
8530
  }
8506
8531
  function m(e) {
8507
8532
  console.error(`⚠ ${e}`);
@@ -8554,36 +8579,36 @@ var Vo = class {
8554
8579
  } else t = r.resolve(process.cwd(), ".env.vault");
8555
8580
  return n.existsSync(t) ? t : null;
8556
8581
  }
8557
- function b(e) {
8582
+ function ee(e) {
8558
8583
  return e[0] === "~" ? r.join(i.homedir(), e.slice(1)) : e;
8559
8584
  }
8560
- function x(e) {
8585
+ function b(e) {
8561
8586
  let t = c(process.env.DOTENV_CONFIG_DEBUG || e && e.debug), n = c(process.env.DOTENV_CONFIG_QUIET || e && e.quiet);
8562
8587
  (t || !n) && g("loading env from encrypted .env.vault");
8563
- let r = C._parseVault(e), i = process.env;
8564
- return e && e.processEnv != null && (i = e.processEnv), C.populate(i, r, e), { parsed: r };
8588
+ let r = S._parseVault(e), i = process.env;
8589
+ return e && e.processEnv != null && (i = e.processEnv), S.populate(i, r, e), { parsed: r };
8565
8590
  }
8566
- function S(e) {
8591
+ function x(e) {
8567
8592
  let t = r.resolve(process.cwd(), ".env"), i = "utf8", a = process.env;
8568
8593
  e && e.processEnv != null && (a = e.processEnv);
8569
8594
  let o = c(a.DOTENV_CONFIG_DEBUG || e && e.debug), l = c(a.DOTENV_CONFIG_QUIET || e && e.quiet);
8570
8595
  e && e.encoding ? i = e.encoding : o && h("no encoding is specified (UTF-8 is used by default)");
8571
8596
  let d = [t];
8572
8597
  if (e && e.path) {
8573
- if (!Array.isArray(e.path)) d = [b(e.path)];
8598
+ if (!Array.isArray(e.path)) d = [ee(e.path)];
8574
8599
  else {
8575
8600
  d = [];
8576
- for (let t of e.path) d.push(b(t));
8601
+ for (let t of e.path) d.push(ee(t));
8577
8602
  }
8578
8603
  }
8579
8604
  let f, p = {};
8580
8605
  for (let t of d) try {
8581
- let r = C.parse(n.readFileSync(t, { encoding: i }));
8582
- C.populate(p, r, e);
8606
+ let r = S.parse(n.readFileSync(t, { encoding: i }));
8607
+ S.populate(p, r, e);
8583
8608
  } catch (e) {
8584
8609
  o && h(`failed to load ${t} ${e.message}`), f = e;
8585
8610
  }
8586
- let m = C.populate(a, p, e);
8611
+ let m = S.populate(a, p, e);
8587
8612
  if (o = c(a.DOTENV_CONFIG_DEBUG || o), l = c(a.DOTENV_CONFIG_QUIET || l), o || !l) {
8588
8613
  let e = Object.keys(m).length, t = [];
8589
8614
  for (let e of d) try {
@@ -8599,12 +8624,12 @@ var Vo = class {
8599
8624
  error: f
8600
8625
  } : { parsed: p };
8601
8626
  }
8602
- function ee(e) {
8603
- if (_(e).length === 0) return C.configDotenv(e);
8627
+ function te(e) {
8628
+ if (_(e).length === 0) return S.configDotenv(e);
8604
8629
  let t = y(e);
8605
- return t ? C._configVault(e) : (m(`you set DOTENV_KEY but you are missing a .env.vault file at ${t}`), C.configDotenv(e));
8630
+ return t ? S._configVault(e) : (m(`you set DOTENV_KEY but you are missing a .env.vault file at ${t}`), S.configDotenv(e));
8606
8631
  }
8607
- function te(e, t) {
8632
+ function ne(e, t) {
8608
8633
  let n = Buffer.from(t.slice(-64), "hex"), r = Buffer.from(e, "base64"), i = r.subarray(0, 12), o = r.subarray(-16);
8609
8634
  r = r.subarray(12, -16);
8610
8635
  try {
@@ -8623,7 +8648,7 @@ var Vo = class {
8623
8648
  throw e;
8624
8649
  }
8625
8650
  }
8626
- function ne(e, t, n = {}) {
8651
+ function re(e, t, n = {}) {
8627
8652
  let r = !!(n && n.debug), i = !!(n && n.override), a = {};
8628
8653
  if (typeof t != "object") {
8629
8654
  let e = /* @__PURE__ */ Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
@@ -8632,16 +8657,16 @@ var Vo = class {
8632
8657
  for (let n of Object.keys(t)) Object.prototype.hasOwnProperty.call(e, n) ? (i === !0 && (e[n] = t[n], a[n] = t[n]), r && h(i === !0 ? `"${n}" is already defined and WAS overwritten` : `"${n}" is already defined and was NOT overwritten`)) : (e[n] = t[n], a[n] = t[n]);
8633
8658
  return a;
8634
8659
  }
8635
- var C = {
8636
- configDotenv: S,
8637
- _configVault: x,
8660
+ var S = {
8661
+ configDotenv: x,
8662
+ _configVault: b,
8638
8663
  _parseVault: p,
8639
- config: ee,
8640
- decrypt: te,
8664
+ config: te,
8665
+ decrypt: ne,
8641
8666
  parse: f,
8642
- populate: ne
8667
+ populate: re
8643
8668
  };
8644
- t.exports.configDotenv = C.configDotenv, t.exports._configVault = C._configVault, t.exports._parseVault = C._parseVault, t.exports.config = C.config, t.exports.decrypt = C.decrypt, t.exports.parse = C.parse, t.exports.populate = C.populate, t.exports = C;
8669
+ t.exports.configDotenv = S.configDotenv, t.exports._configVault = S._configVault, t.exports._parseVault = S._parseVault, t.exports.config = S.config, t.exports.decrypt = S.decrypt, t.exports.parse = S.parse, t.exports.populate = S.populate, t.exports = S;
8645
8670
  })))(), 1), Wo = class {
8646
8671
  constructor(e) {
8647
8672
  this.envFilePath = e, this.secrets = /* @__PURE__ */ new Map();
@@ -8662,7 +8687,7 @@ var Vo = class {
8662
8687
  getSecretValuesForRedaction() {
8663
8688
  return Array.from(this.secrets.values()).filter((e) => e.length > 3);
8664
8689
  }
8665
- }, Go = f(_), Ko = class {
8690
+ }, Go = u(g), Ko = class {
8666
8691
  constructor() {
8667
8692
  this.name = "systemd";
8668
8693
  }
@@ -8676,8 +8701,8 @@ var Vo = class {
8676
8701
  async execute(t) {
8677
8702
  let n = Date.now(), r = null, i = "";
8678
8703
  try {
8679
- let n = o.join(t.workspacePath, ".logs");
8680
- e.mkdirSync(n, { recursive: !0 }), i = o.join(n, `step-${t.stepId}.log`), r = e.openSync(i, "a");
8704
+ let n = a.join(t.workspacePath, ".logs");
8705
+ e.mkdirSync(n, { recursive: !0 }), i = a.join(n, `step-${t.stepId}.log`), r = e.openSync(i, "a");
8681
8706
  } catch (e) {
8682
8707
  return {
8683
8708
  done: Promise.resolve({
@@ -8689,8 +8714,8 @@ var Vo = class {
8689
8714
  logFilePath: ""
8690
8715
  };
8691
8716
  }
8692
- let a = `workflow-${t.jobId}-${t.stepId}`.replace(/[^a-zA-Z0-9_-]/g, "_"), s = [
8693
- `--unit=${a}`,
8717
+ let o = `workflow-${t.jobId}-${t.stepId}`.replace(/[^a-zA-Z0-9_-]/g, "_"), s = [
8718
+ `--unit=${o}`,
8694
8719
  "--wait",
8695
8720
  "--pipe",
8696
8721
  `--working-directory=${t.workspacePath}/wd`
@@ -8706,7 +8731,7 @@ var Vo = class {
8706
8731
  "run",
8707
8732
  "--rm",
8708
8733
  "--init",
8709
- `--name=${a}`,
8734
+ `--name=${o}`,
8710
8735
  "-v",
8711
8736
  `${t.workspacePath}/wd:/workspace`,
8712
8737
  "-w",
@@ -8719,10 +8744,10 @@ var Vo = class {
8719
8744
  process.env.SHELL || "sh",
8720
8745
  "-c",
8721
8746
  t.command
8722
- ];
8747
+ ], e.mkdirSync(`${t.workspacePath}/wd`, { recursive: !0 });
8723
8748
  let l;
8724
8749
  try {
8725
- l = v("systemd-run", [
8750
+ l = _("systemd-run", [
8726
8751
  ...s,
8727
8752
  "--",
8728
8753
  ...c
@@ -8774,7 +8799,7 @@ var Vo = class {
8774
8799
  cancel: async () => {
8775
8800
  u = !0;
8776
8801
  try {
8777
- t.image && await Go(`docker stop -t 2 ${a}`).catch(() => {}), await Go(`systemctl stop ${a}.service`).catch(() => {});
8802
+ t.image && await Go(`docker stop -t 2 ${o}`).catch(() => {}), await Go(`systemctl stop ${o}.service`).catch(() => {});
8778
8803
  } catch {}
8779
8804
  },
8780
8805
  logFilePath: i
@@ -8790,8 +8815,8 @@ var Vo = class {
8790
8815
  async execute(t) {
8791
8816
  let n = Date.now(), r = null, i = "";
8792
8817
  try {
8793
- let n = o.join(t.workspacePath, ".logs");
8794
- e.mkdirSync(n, { recursive: !0 }), i = o.join(n, `step-${t.stepId}.log`), r = e.openSync(i, "a");
8818
+ let n = a.join(t.workspacePath, ".logs");
8819
+ e.mkdirSync(n, { recursive: !0 }), i = a.join(n, `step-${t.stepId}.log`), r = e.openSync(i, "a");
8795
8820
  } catch (e) {
8796
8821
  return {
8797
8822
  done: Promise.resolve({
@@ -8803,8 +8828,8 @@ var Vo = class {
8803
8828
  logFilePath: ""
8804
8829
  };
8805
8830
  }
8806
- let a, s;
8807
- t.image ? (a = "docker", s = [
8831
+ let o, s;
8832
+ t.image ? (o = "docker", s = [
8808
8833
  "run",
8809
8834
  "--rm",
8810
8835
  "--init",
@@ -8817,10 +8842,10 @@ var Vo = class {
8817
8842
  t.image,
8818
8843
  "-c",
8819
8844
  t.command
8820
- ]) : (a = process.env.SHELL || "sh", s = ["-c", t.command]);
8845
+ ]) : (o = process.env.SHELL || "sh", s = ["-c", t.command]), e.mkdirSync(`${t.workspacePath}/wd`, { recursive: !0 });
8821
8846
  let c;
8822
8847
  try {
8823
- c = v(a, s, {
8848
+ c = _(o, s, {
8824
8849
  cwd: t.workspacePath + "/wd",
8825
8850
  env: {
8826
8851
  ...process.env,
@@ -8899,23 +8924,25 @@ async function Jo() {
8899
8924
  }
8900
8925
  //#endregion
8901
8926
  //#region src/worker.ts
8902
- function Yo(e, t, n, r) {
8903
- return Array.from({ length: e }, (e, i) => Xo(`worker-${i + 1}`, t, n, r));
8927
+ var Yo = { isStopping: !1 };
8928
+ function Xo(e, t, n, r) {
8929
+ return Yo.isStopping = !1, Array.from({ length: e }, (e, i) => Zo(`worker-${i + 1}`, t, n, r));
8904
8930
  }
8905
- async function Xo(e, t, n, r) {
8931
+ async function Zo(e, t, n, r) {
8906
8932
  let i = await Jo();
8907
- for (console.log(`[${e}] 🚀 Worker started. Driver: ${i.name}`);;) try {
8933
+ for (console.log(`[${e}] 🚀 Worker started. Driver: ${i.name}`); !Yo.isStopping;) try {
8908
8934
  let a = await t.claimNextJob();
8909
8935
  if (!a) {
8910
8936
  await new Promise((e) => setTimeout(e, 2e3));
8911
8937
  continue;
8912
8938
  }
8913
- await Zo(e, a, t, n, r, i);
8939
+ await Qo(e, a, t, n, r, i);
8914
8940
  } catch (t) {
8915
8941
  console.error(`[${e}] ⚠️ Worker execution loop error:`, t), await new Promise((e) => setTimeout(e, 5e3));
8916
8942
  }
8943
+ console.log(`[${e}] 🛑 Worker loop stopped cleanly.`);
8917
8944
  }
8918
- async function Zo(e, t, n, r, i, a) {
8945
+ async function Qo(e, t, n, r, i, a) {
8919
8946
  console.log(`\n[${e}] 📦 Claimed Job #${t.id} (Workflow: ${t.workflow_id})`);
8920
8947
  let o = typeof t.payload == "string" ? JSON.parse(t.payload) : t.payload, s = o.steps || [], c = o.inputs || {}, l = Date.now(), u = {
8921
8948
  inputs: c,
@@ -8924,7 +8951,7 @@ async function Zo(e, t, n, r, i, a) {
8924
8951
  steps: {}
8925
8952
  }, d = [], f = !1, p = !1;
8926
8953
  for (let r = 0; r < s.length; r++) {
8927
- let o = s[r], c = await Qo({
8954
+ let o = s[r], c = await $o({
8928
8955
  workerId: e,
8929
8956
  jobId: t.id,
8930
8957
  step: o,
@@ -8944,115 +8971,113 @@ async function Zo(e, t, n, r, i, a) {
8944
8971
  break;
8945
8972
  }
8946
8973
  }
8947
- f && d.length < s.length && ts(s, d.length, d);
8974
+ f && d.length < s.length && ns(s, d.length, d);
8948
8975
  let m = p ? "cancelled" : f ? "failed" : "success";
8949
8976
  await n.finishJob(t.id, m), console.log(`[${e}] ✅ Job #${t.id} completed as: ${m}`);
8950
- let h = ns(t, m, l, c, u.env, d, o);
8951
- await n.saveReport(t.id, h), await rs(e, i.reporters, h);
8977
+ let h = rs(t, m, l, c, u.env, d, o);
8978
+ await n.saveReport(t.id, h), await is(e, i.reporters, h);
8952
8979
  }
8953
- async function Qo(e) {
8954
- let { workerId: t, step: n, stepIndex: r, totalSteps: i, executionContext: a } = e, o = n.id || `step-${r}`, s = n.name || o;
8955
- return console.log(`[${t}] ▶️ Running step ${r + 1}/${i}: ${s}`), n.eval ? $o(o, s, n.eval, a) : es({
8980
+ async function $o(e) {
8981
+ let { workerId: t, step: n, stepIndex: r, totalSteps: i } = e, a = n.id || `step-${r}`, o = n.name || a;
8982
+ return console.log(`[${t}] ▶️ Running step ${r + 1}/${i}: ${o}`), n.eval ? es({
8956
8983
  ...e,
8957
- stepId: o,
8958
- stepName: s
8984
+ stepId: a,
8985
+ stepName: o,
8986
+ evalExpr: n.eval
8987
+ }) : ts({
8988
+ ...e,
8989
+ stepId: a,
8990
+ stepName: o
8959
8991
  });
8960
8992
  }
8961
- async function $o(e, t, n, r) {
8962
- let i = Date.now();
8993
+ async function es(e) {
8994
+ let { queue: t, jobId: n, stepId: r, stepName: i, evalExpr: a, executionContext: o } = e, s = Date.now();
8963
8995
  try {
8964
- let a = await vn.evaluateExpression(n, r);
8965
- return r.steps[e] = {
8996
+ let e = await vn.evaluateExpression(a, o);
8997
+ o.steps[r] = {
8966
8998
  status: "success",
8967
- outputs: a
8968
- }, console.log(`[${e}] JS Eval step complete.`), {
8999
+ exitCode: 0,
9000
+ outputs: e ?? {}
9001
+ };
9002
+ let c = typeof e == "object" ? JSON.stringify(e, null, 2) : String(e ?? "OK");
9003
+ return await t.saveStepLog(n, r, `[JS EVAL OUTPUT]:\n${c}`), console.log(`[${r}] ✅ JS Eval step complete.`), {
8969
9004
  failed: !1,
8970
9005
  isCancelled: !1,
8971
9006
  report: {
8972
- id: e,
8973
- name: t,
9007
+ id: r,
9008
+ name: i,
8974
9009
  status: "success",
8975
- durationMs: Date.now() - i,
9010
+ durationMs: Date.now() - s,
8976
9011
  exitCode: 0,
8977
- outputs: a || {},
9012
+ outputs: o.steps[r].outputs,
8978
9013
  logFilePath: ""
8979
9014
  }
8980
9015
  };
8981
- } catch (n) {
8982
- return console.error(`[${e}] ❌ JS Eval step failed:`, n.message), r.steps[e] = {
9016
+ } catch (e) {
9017
+ return console.error(`[${r}] ❌ JS Eval step failed:`, e.message), o.steps[r] = {
8983
9018
  status: "failed",
8984
- error: n.message
8985
- }, {
9019
+ exitCode: 1,
9020
+ outputs: {}
9021
+ }, await t.saveStepLog(n, r, `[JS EVAL ERROR]:\n${e.message}`), {
8986
9022
  failed: !0,
8987
9023
  isCancelled: !1,
8988
9024
  report: {
8989
- id: e,
8990
- name: t,
9025
+ id: r,
9026
+ name: i,
8991
9027
  status: "failed",
8992
- durationMs: Date.now() - i,
9028
+ durationMs: Date.now() - s,
8993
9029
  exitCode: 1,
8994
- error: n.message,
9030
+ error: e.message,
8995
9031
  outputs: {},
8996
9032
  logFilePath: ""
8997
9033
  }
8998
9034
  };
8999
9035
  }
9000
9036
  }
9001
- async function es(e) {
9002
- let { workerId: r, jobId: i, step: o, stepId: s, stepName: l, executionContext: u, driver: f, queue: p, config: m } = e, h = {};
9003
- if (o.env) for (let [e, t] of Object.entries(o.env)) h[e] = String(await vn.evaluateValue(t, u));
9004
- let g = {
9005
- jobId: i.toString(),
9006
- stepId: s,
9007
- workspacePath: `${m.storagePath}/job-${i}`,
9008
- command: o.run,
9009
- image: o.image,
9037
+ async function ts(t) {
9038
+ let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d = {};
9039
+ if (i.env) for (let [e, t] of Object.entries(i.env)) d[e] = String(await vn.evaluateValue(t, s));
9040
+ let f = {
9041
+ jobId: r.toString(),
9042
+ stepId: a,
9043
+ workspacePath: `${u.storagePath}/job-${r}`,
9044
+ command: i.run,
9045
+ image: i.image,
9010
9046
  env: {
9011
- ...u.env,
9012
- ...h
9047
+ ...s.env,
9048
+ ...d
9013
9049
  },
9014
- timeoutMs: o.timeoutMs
9015
- }, _ = c(g.workspacePath, `.step-${g.stepId}.env`), v = c(g.workspacePath, `.step-${g.stepId}.out`);
9016
- Object.assign(g.env, {
9017
- WORKFLOW_ENV: _,
9018
- WORKFLOW_OUTPUT: v
9019
- });
9020
- let y, b = !1, x;
9021
- x = await f.execute(g);
9022
- let S = setInterval(async () => {
9023
- await p.isCancelled(+i) && (console.log(`[${r}] 🛑 Job #${i} was cancelled! Halting step execution.`), b = !0, clearInterval(S), await x.cancel());
9024
- }, 3e3);
9025
- y = await x.done, clearInterval(S);
9026
- let ee = y.exitCode !== 0 || b, te = y.exitCode === 0 ? "success" : b ? "cancelled" : "failed";
9027
- if (ee && console.error(`[${r}] ❌ Step [${s}] failed with status: ${te}`), t(_)) {
9028
- let e = d(n(_, "utf-8"));
9029
- Object.assign(u.env, e), a(_);
9030
- }
9031
- let ne = {};
9032
- if (t(v)) {
9033
- let e = d(n(v, "utf-8"));
9034
- Object.assign(ne, e), a(v);
9035
- }
9036
- return u.steps[s] = {
9037
- status: te,
9038
- exitCode: y.exitCode,
9039
- outputs: ne
9040
- }, {
9041
- failed: ee,
9042
- isCancelled: b,
9050
+ timeoutMs: i.timeoutMs
9051
+ }, p = await c.execute(f), m = !1, h = setInterval(async () => {
9052
+ await l.isCancelled(r) && (console.log(`[${n}] 🛑 Job #${r} was cancelled! Halting execution.`), m = !0, clearInterval(h), await p.cancel());
9053
+ }, 3e3), g = await p.done;
9054
+ if (clearInterval(h), p.logFilePath && e.existsSync(p.logFilePath)) try {
9055
+ let t = e.readFileSync(p.logFilePath, "utf-8");
9056
+ await l.saveStepLog(r, a, t);
9057
+ } catch (e) {
9058
+ console.error(`[${n}] ⚠️ Failed to read step log file:`, e.message);
9059
+ }
9060
+ let _ = g.exitCode !== 0 || m, v = g.exitCode === 0 ? "success" : m ? "cancelled" : "failed";
9061
+ return s.steps[a] = {
9062
+ status: v,
9063
+ exitCode: g.exitCode,
9064
+ outputs: {}
9065
+ }, _ && console.error(`[${n}] ❌ Step [${a}] finished with status: ${v}`), {
9066
+ failed: _,
9067
+ isCancelled: m,
9043
9068
  report: {
9044
- id: s,
9045
- name: l,
9046
- status: te,
9047
- durationMs: y.durationMs,
9048
- exitCode: y.exitCode,
9049
- error: y.error?.message,
9050
- outputs: u.steps[s].outputs,
9051
- logFilePath: x.logFilePath
9069
+ id: a,
9070
+ name: o,
9071
+ status: v,
9072
+ durationMs: g.durationMs,
9073
+ exitCode: g.exitCode,
9074
+ error: g.error?.message,
9075
+ outputs: {},
9076
+ logFilePath: p.logFilePath || ""
9052
9077
  }
9053
9078
  };
9054
9079
  }
9055
- function ts(e, t, n) {
9080
+ function ns(e, t, n) {
9056
9081
  for (let r = t; r < e.length; r++) {
9057
9082
  let t = e[r], i = t.id || `step-${r}`;
9058
9083
  n.push({
@@ -9066,7 +9091,7 @@ function ts(e, t, n) {
9066
9091
  });
9067
9092
  }
9068
9093
  }
9069
- function ns(e, t, n, r, i, a, o) {
9094
+ function rs(e, t, n, r, i, a, o) {
9070
9095
  return {
9071
9096
  jobId: e.id.toString(),
9072
9097
  workflowName: e.workflow_id,
@@ -9084,7 +9109,7 @@ function ns(e, t, n, r, i, a, o) {
9084
9109
  })
9085
9110
  };
9086
9111
  }
9087
- async function rs(e, t = [], n) {
9112
+ async function is(e, t = [], n) {
9088
9113
  !Array.isArray(t) || t.length === 0 || (console.log(`[${e}] 📢 Dispatching execution report to ${t.length} reporter(s)...`), await Promise.allSettled(t.map(async (t) => {
9089
9114
  try {
9090
9115
  await t.report(n);
@@ -9095,16 +9120,16 @@ async function rs(e, t = [], n) {
9095
9120
  }
9096
9121
  //#endregion
9097
9122
  //#region src/reporters/json-file.reporter.ts
9098
- var is = class {
9123
+ var as = class {
9099
9124
  constructor(e) {
9100
9125
  this.name = "json-file", this.outputDir = e.outputDir;
9101
9126
  }
9102
9127
  async report(t) {
9103
9128
  e.mkdirSync(this.outputDir, { recursive: !0 });
9104
- let n = o.join(this.outputDir, `run-${t.jobId}.json`);
9129
+ let n = a.join(this.outputDir, `run-${t.jobId}.json`);
9105
9130
  e.writeFileSync(n, JSON.stringify(t, null, 2), "utf-8"), console.log(`📊 Execution report saved to: ${n}`);
9106
9131
  }
9107
- }, as = class {
9132
+ }, os = class {
9108
9133
  constructor(e) {
9109
9134
  this.name = "slack", this.webhookUrl = "", this.token = "", this.channel = "", this.notifyOn = ["failed"], Object.assign(this, e);
9110
9135
  }
@@ -9123,7 +9148,7 @@ var is = class {
9123
9148
  })
9124
9149
  });
9125
9150
  }
9126
- }, { values: os, positionals: ss } = u({
9151
+ }, ss = null, cs = [], { values: ls, positionals: us } = l({
9127
9152
  allowPositionals: !0,
9128
9153
  options: {
9129
9154
  config: {
@@ -9153,22 +9178,22 @@ var is = class {
9153
9178
  }
9154
9179
  }
9155
9180
  });
9156
- function cs() {
9181
+ function ds() {
9157
9182
  console.log("\n🏃 Runner CLI 🏃\n\nUsage:\n npx -y @cloud-cli/on <command> [options]\n pnpm dlx -y @cloud-cli/on <command> [options]\n\nCommands:\n start Runs both Webhook Ingress Server and Workers (Default)\n start-server Runs Webhook Ingress Server only (API Gateway mode)\n start-workers Runs Worker Polling loops only (Scalable Worker mode)\n validate Parses and validates workflow YAML files without running\n\nOptions:\n -c, --config Path to runner.config.mjs (default: ./runner.config.mjs, env: RUNNER_CONFIG_PATH)\n -d, --database SQLite Database URL (env: RUNNER_DATABASE_URL)\n -w, --workflows Path to where your workflows are defined (default: .on/, env: RUNNER_WORKFLOWS_PATH)\n -p, --port Port for Webhook Ingress Server (default: 11235, env: PORT)\n -k, --workers Number of worker thread loops to spawn (default: 5, env: RUNNER_WORKERS)\n -h, --help Show this help message\n ");
9158
9183
  }
9159
- os.help && (cs(), process.exit(0));
9160
- async function ls() {
9184
+ ls.help && (ds(), process.exit(0));
9185
+ async function fs() {
9161
9186
  let e = {
9162
- port: Number(os.port),
9163
- database: os.database,
9164
- workflows: os.workflows,
9165
- workers: os.workers ? Number(os.workers) : void 0
9166
- }, n = {}, r = l(os.config);
9187
+ port: Number(ls.port),
9188
+ database: ls.database,
9189
+ workflows: ls.workflows,
9190
+ workers: ls.workers ? Number(ls.workers) : void 0
9191
+ }, n = {}, r = c(ls.config);
9167
9192
  t(r) && i(r).isFile() && (n = (await import(r)).default || {});
9168
- let a = fs(n, e);
9193
+ let a = hs(n, e);
9169
9194
  return t(a.workflows) ? (Bo(a.database), a) : (console.warn(`⚠️ Warning: Workflows directory '${a.workflows}' not found.`), null);
9170
9195
  }
9171
- function us(e) {
9196
+ function ps(e) {
9172
9197
  console.log("🔍 Validating Workflows in:", e.workflows);
9173
9198
  let t = new ko(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
9174
9199
  for (let e of n) {
@@ -9176,14 +9201,14 @@ function us(e) {
9176
9201
  console.log(` ✅ ${e} -> Valid! (${n.length} job matrix variant(s) generated)`);
9177
9202
  }
9178
9203
  }
9179
- async function ds() {
9204
+ async function ms() {
9180
9205
  let e = new Wo("./.env"), t = new Vo("cli-node");
9181
9206
  return await t.init(), {
9182
9207
  secrets: e,
9183
9208
  queue: t
9184
9209
  };
9185
9210
  }
9186
- function fs(e, t) {
9211
+ function hs(e, t) {
9187
9212
  let n = process.env;
9188
9213
  return {
9189
9214
  port: Number(e.port || t.port || n.PORT || 11235),
@@ -9196,16 +9221,29 @@ function fs(e, t) {
9196
9221
  reporters: e.reporters ?? []
9197
9222
  };
9198
9223
  }
9199
- async function ps() {
9200
- let e = ss[0] || "start", t = await ls();
9224
+ var gs = !1, _s = async (e) => {
9225
+ if (!gs) {
9226
+ gs = !0, console.log(`\n🛑 Received ${e}. Initiating graceful shutdown...`), setTimeout(() => {
9227
+ console.error("⚠️ Graceful shutdown timed out after 10s. Forcing exit!"), process.exit(1);
9228
+ }, 1e4).unref();
9229
+ try {
9230
+ ss && await ss.stop(), Yo.isStopping = !0, cs.length > 0 && (console.log("⚙️ Waiting for active worker jobs to drain..."), await Promise.allSettled(cs)), console.log("✨ Engine stopped cleanly. Goodbye!"), process.exit(0);
9231
+ } catch (e) {
9232
+ console.error("❌ Error during graceful shutdown:", e.message), process.exit(1);
9233
+ }
9234
+ }
9235
+ };
9236
+ process.on("SIGINT", () => _s("SIGINT")), process.on("SIGTERM", () => _s("SIGTERM"));
9237
+ async function vs() {
9238
+ let e = us[0] || "start", t = await fs();
9201
9239
  switch (t || process.exit(1), e) {
9202
9240
  case "validate":
9203
- us(t);
9241
+ ps(t);
9204
9242
  break;
9205
9243
  case "start-server": {
9206
9244
  console.log("🌐 Starting Ingress Gateway...");
9207
- let { queue: e, secrets: n } = await ds();
9208
- On.withPort({
9245
+ let { queue: e, secrets: n } = await ms();
9246
+ ss = await On.withPort({
9209
9247
  queue: e,
9210
9248
  secrets: n,
9211
9249
  adminToken: t.adminToken,
@@ -9216,25 +9254,25 @@ async function ps() {
9216
9254
  }
9217
9255
  case "start-workers": {
9218
9256
  console.log(`⚙️ Starting ${t.workers} Worker Loop(s)...`);
9219
- let { queue: e, secrets: n } = await ds();
9220
- Yo(t.workers, e, n, t);
9257
+ let { queue: e, secrets: n } = await ms();
9258
+ cs = Xo(t.workers, e, n, t);
9221
9259
  break;
9222
9260
  }
9223
9261
  case "start": {
9224
9262
  console.log("🚀 Starting Full Runner Engine (Ingress + Workers)...");
9225
- let e = await jo.from(t.workflows), { queue: n, secrets: r } = await ds();
9226
- On.withPort({
9263
+ let e = await jo.from(t.workflows), { queue: n, secrets: r } = await ms();
9264
+ ss = await On.withPort({
9227
9265
  queue: n,
9228
9266
  secrets: r,
9229
9267
  adminToken: t.adminToken,
9230
9268
  workflows: e,
9231
9269
  port: t.port
9232
- }), Yo(t.workers, n, r, t);
9270
+ }), cs = Xo(t.workers, n, r, t);
9233
9271
  break;
9234
9272
  }
9235
- default: console.error(`❌ Unknown command: '${e}'`), cs(), process.exit(1);
9273
+ default: console.error(`❌ Unknown command: '${e}'`), ds(), process.exit(1);
9236
9274
  }
9237
9275
  }
9238
- ps().catch(console.error);
9276
+ vs().catch(console.error);
9239
9277
  //#endregion
9240
- export { Dn as HtmlReporter, is as JsonFileReporter, as as SlackReporter };
9278
+ export { Dn as HtmlReporter, as as JsonFileReporter, os as SlackReporter };