@dpuse/dpuse-development 0.3.699 → 0.3.703

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.
@@ -19,7 +19,7 @@ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
19
19
  Position: () => _e,
20
20
  SourceLocation: () => ve,
21
21
  TokContext: () => P,
22
- Token: () => Xt,
22
+ Token: () => Yt,
23
23
  TokenType: () => x,
24
24
  defaultOptions: () => be,
25
25
  getLineInfo: () => ye,
@@ -30,12 +30,12 @@ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
30
30
  lineBreak: () => D,
31
31
  lineBreakG: () => ie,
32
32
  nonASCIIwhitespace: () => se,
33
- parse: () => tn,
34
- parseExpressionAt: () => nn,
33
+ parse: () => en,
34
+ parseExpressionAt: () => tn,
35
35
  tokContexts: () => F,
36
36
  tokTypes: () => E,
37
- tokenizer: () => rn,
38
- version: () => en
37
+ tokenizer: () => nn,
38
+ version: () => $t
39
39
  }), d = [
40
40
  509,
41
41
  0,
@@ -1209,6 +1209,7 @@ var be = {
1209
1209
  allowHashBang: !1,
1210
1210
  checkPrivateFields: !0,
1211
1211
  locations: !1,
1212
+ startLocation: null,
1212
1213
  onToken: null,
1213
1214
  onComment: null,
1214
1215
  ranges: !1,
@@ -1249,7 +1250,7 @@ var Le = 0, Re = 1, ze = 2, Be = 3, Ve = 4, He = 5, k = function(e, t, n) {
1249
1250
  var r = "";
1250
1251
  e.allowReserved !== !0 && (r = h[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (r += " await")), this.reservedWords = me(r);
1251
1252
  var i = (r ? r + " " : "") + h.strict;
1252
- this.reservedWordsStrict = me(i), this.reservedWordsStrictBind = me(i + " " + h.strictBind), this.input = String(t), this.containsEsc = !1, n ? (this.pos = n, this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(D).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = E.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" ? Te : we), this.regexpState = null, this.privateNameStack = [];
1253
+ this.reservedWordsStrict = me(i), this.reservedWordsStrictBind = me(i + " " + h.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(D).length)) : this.lineStart = 0, this.type = E.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" ? Te : we), this.regexpState = null, this.privateNameStack = [];
1253
1254
  }, A = {
1254
1255
  inFunction: { configurable: !0 },
1255
1256
  inGenerator: { configurable: !0 },
@@ -1327,7 +1328,7 @@ j.strictDirective = function(e) {
1327
1328
  e += t[0].length, O.lastIndex = e, e += O.exec(this.input)[0].length, this.input[e] === ";" && e++;
1328
1329
  }
1329
1330
  }, j.eat = function(e) {
1330
- return this.type === e ? (this.next(), !0) : !1;
1331
+ return this.type === e && (this.next(), !0);
1331
1332
  }, j.isContextual = function(e) {
1332
1333
  return this.type === E.name && this.value === e && !this.containsEsc;
1333
1334
  }, j.eatContextual = function(e) {
@@ -1676,13 +1677,13 @@ M.parseExportAllDeclaration = function(e, t) {
1676
1677
  if (this.type === E._function || (e = this.isAsyncFunction())) {
1677
1678
  var t = this.startNode();
1678
1679
  return this.next(), e && this.next(), this.parseFunction(t, Je | Xe, !1, e);
1679
- } else if (this.type === E._class) {
1680
+ }
1681
+ if (this.type === E._class) {
1680
1682
  var n = this.startNode();
1681
1683
  return this.parseClass(n, "nullableID");
1682
- } else {
1683
- var r = this.parseMaybeAssign();
1684
- return this.semicolon(), r;
1685
1684
  }
1685
+ var r = this.parseMaybeAssign();
1686
+ return this.semicolon(), r;
1686
1687
  }, M.checkExport = function(e, t, n) {
1687
1688
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), de(e, t) && this.raiseRecoverable(n, "Duplicate export '" + t + "'"), e[t] = !0);
1688
1689
  }, M.checkPatternExport = function(e, t) {
@@ -1938,7 +1939,7 @@ $e.initialContext = function() {
1938
1939
  var t = e === E._if || e === E._for || e === E._with || e === E._while;
1939
1940
  this.context.push(t ? F.p_stat : F.p_expr), this.exprAllowed = !0;
1940
1941
  }, E.incDec.updateContext = function() {}, E._function.updateContext = E._class.updateContext = function(e) {
1941
- e.beforeExpr && e !== E._else && !(e === E.semi && this.curContext() !== F.p_stat) && !(e === E._return && D.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === E.colon || e === E.braceL) && this.curContext() === F.b_stat) ? this.context.push(F.f_expr) : this.context.push(F.f_stat), this.exprAllowed = !1;
1942
+ e.beforeExpr && e !== E._else && (e !== E.semi || this.curContext() === F.p_stat) && !(e === E._return && D.test(this.input.slice(this.lastTokEnd, this.start))) && (e !== E.colon && e !== E.braceL || this.curContext() !== F.b_stat) ? this.context.push(F.f_expr) : this.context.push(F.f_stat), this.exprAllowed = !1;
1942
1943
  }, E.colon.updateContext = function() {
1943
1944
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
1944
1945
  }, E.backQuote.updateContext = function() {
@@ -2003,12 +2004,12 @@ I.checkPropClash = function(e, t, n) {
2003
2004
  if (n && (l = n.call(this, l, s, c)), this.type.isAssign) {
2004
2005
  var u = this.startNodeAt(s, c);
2005
2006
  return u.operator = this.value, this.type === E.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === E.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");
2006
- } else r && this.checkExpressionErrors(t, !0);
2007
- return i > -1 && (t.parenthesizedAssign = i), a > -1 && (t.trailingComma = a), l;
2007
+ }
2008
+ return r && this.checkExpressionErrors(t, !0), i > -1 && (t.parenthesizedAssign = i), a > -1 && (t.trailingComma = a), l;
2008
2009
  }, I.parseMaybeConditional = function(e, t) {
2009
2010
  var n = this.start, r = this.startLoc, i = this.parseExprOps(e, t);
2010
2011
  if (this.checkExpressionErrors(t)) return i;
2011
- if (!(i.type === "ArrowFunctionExpression" && i.start === n) && this.eat(E.question)) {
2012
+ if ((i.type !== "ArrowFunctionExpression" || i.start !== n) && this.eat(E.question)) {
2012
2013
  var a = this.startNodeAt(n, r);
2013
2014
  return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(E.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
2014
2015
  }
@@ -2045,7 +2046,7 @@ I.checkPropClash = function(e, t, n) {
2045
2046
  l.operator = this.value, l.prefix = !1, l.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(l, "UpdateExpression");
2046
2047
  }
2047
2048
  }
2048
- if (!n && this.eat(E.starstar)) if (t) this.unexpected(this.lastTokStart);
2049
+ if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(E.starstar)) if (t) this.unexpected(this.lastTokStart);
2049
2050
  else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
2050
2051
  else return o;
2051
2052
  };
@@ -2082,7 +2083,7 @@ I.parseExprSubscripts = function(e, t) {
2082
2083
  var l = this.eat(E.bracketL);
2083
2084
  if (l || c && this.type !== E.parenL && this.type !== E.backQuote || this.eat(E.dot)) {
2084
2085
  var u = this.startNodeAt(t, n);
2085
- u.object = e, l ? (u.property = this.parseExpression(), this.expect(E.bracketR)) : this.type === E.privateId && e.type !== "Super" ? u.property = this.parsePrivateIdent() : u.property = this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
2086
+ u.object = e, l ? (u.property = this.parseExpression(), this.expect(E.bracketR)) : u.property = this.type === E.privateId && e.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
2086
2087
  } else if (!r && this.eat(E.parenL)) {
2087
2088
  var d = new We(), f = this.yieldPos, p = this.awaitPos, m = this.awaitIdentPos;
2088
2089
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
@@ -2142,7 +2143,8 @@ I.parseExprSubscripts = function(e, t) {
2142
2143
  if (this.type === E.dot) {
2143
2144
  var n = this.startNodeAt(t.start, t.loc && t.loc.start);
2144
2145
  return n.name = "import", t.meta = this.finishNode(n, "Identifier"), this.parseImportMeta(t);
2145
- } else this.unexpected();
2146
+ }
2147
+ this.unexpected();
2146
2148
  }, I.parseDynamicImport = function(e) {
2147
2149
  if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(E.parenR) ? e.options = null : (this.expect(E.comma), this.afterTrailingComma(E.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(E.parenR) || (this.expect(E.comma), this.afterTrailingComma(E.parenR) || this.unexpected())));
2148
2150
  else if (!this.eat(E.parenR)) {
@@ -2168,13 +2170,17 @@ I.parseExprSubscripts = function(e, t) {
2168
2170
  if (this.options.ecmaVersion >= 6) {
2169
2171
  this.next();
2170
2172
  var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new We(), f = this.yieldPos, p = this.awaitPos, m;
2171
- for (this.yieldPos = 0, this.awaitPos = 0; this.type !== E.parenR;) if (l ? l = !1 : this.expect(E.comma), a && this.afterTrailingComma(E.parenR, !0)) {
2172
- u = !0;
2173
- break;
2174
- } else if (this.type === E.ellipsis) {
2175
- m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === E.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2176
- break;
2177
- } else c.push(this.parseMaybeAssign(!1, d, this.parseParenItem));
2173
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== E.parenR;) {
2174
+ if (l ? l = !1 : this.expect(E.comma), a && this.afterTrailingComma(E.parenR, !0)) {
2175
+ u = !0;
2176
+ break;
2177
+ }
2178
+ if (this.type === E.ellipsis) {
2179
+ m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === E.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2180
+ break;
2181
+ }
2182
+ c.push(this.parseMaybeAssign(!1, d, this.parseParenItem));
2183
+ }
2178
2184
  var h = this.lastTokEnd, g = this.lastTokEndLoc;
2179
2185
  if (this.expect(E.parenR), e && this.shouldParseArrow(c) && this.eat(E.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
2180
2186
  (!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];
@@ -2182,7 +2188,8 @@ I.parseExprSubscripts = function(e, t) {
2182
2188
  if (this.options.preserveParens) {
2183
2189
  var _ = this.startNodeAt(n, r);
2184
2190
  return _.expression = i, this.finishNode(_, "ParenthesizedExpression");
2185
- } else return i;
2191
+ }
2192
+ return i;
2186
2193
  }, I.parseParenItem = function(e) {
2187
2194
  return e;
2188
2195
  }, I.parseParenArrowList = function(e, t, n, r) {
@@ -2199,7 +2206,7 @@ I.parseNew = function() {
2199
2206
  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");
2200
2207
  }
2201
2208
  var r = this.start, i = this.startLoc;
2202
- return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), this.eat(E.parenL) ? e.arguments = this.parseExprList(E.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = nt, this.finishNode(e, "NewExpression");
2209
+ 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(E.parenL) ? this.parseExprList(E.parenR, this.options.ecmaVersion >= 8, !1) : nt, this.finishNode(e, "NewExpression");
2203
2210
  }, I.parseTemplateElement = function(e) {
2204
2211
  var t = e.isTagged, n = this.startNode();
2205
2212
  return this.type === E.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
@@ -2430,15 +2437,15 @@ kt.prototype.separatedFrom = function(e) {
2430
2437
  }, kt.prototype.sibling = function() {
2431
2438
  return new kt(this.parent, this.base);
2432
2439
  };
2433
- var At = function(e) {
2440
+ var R = function(e) {
2434
2441
  this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = wt[e.options.ecmaVersion >= 14 ? 14 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = Object.create(null), this.backReferenceNames = [], this.branchID = null;
2435
2442
  };
2436
- At.prototype.reset = function(e, t, n) {
2443
+ R.prototype.reset = function(e, t, n) {
2437
2444
  var r = n.indexOf("v") !== -1, i = n.indexOf("u") !== -1;
2438
2445
  this.start = e | 0, this.source = t + "", this.flags = n, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = i && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = i && this.parser.options.ecmaVersion >= 9);
2439
- }, At.prototype.raise = function(e) {
2446
+ }, R.prototype.raise = function(e) {
2440
2447
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e);
2441
- }, At.prototype.at = function(e, t) {
2448
+ }, R.prototype.at = function(e, t) {
2442
2449
  t === void 0 && (t = !1);
2443
2450
  var n = this.source, r = n.length;
2444
2451
  if (e >= r) return -1;
@@ -2446,21 +2453,21 @@ At.prototype.reset = function(e, t, n) {
2446
2453
  if (!(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r) return i;
2447
2454
  var a = n.charCodeAt(e + 1);
2448
2455
  return a >= 56320 && a <= 57343 ? (i << 10) + a - 56613888 : i;
2449
- }, At.prototype.nextIndex = function(e, t) {
2456
+ }, R.prototype.nextIndex = function(e, t) {
2450
2457
  t === void 0 && (t = !1);
2451
2458
  var n = this.source, r = n.length;
2452
2459
  if (e >= r) return r;
2453
2460
  var i = n.charCodeAt(e), a;
2454
2461
  return !(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r || (a = n.charCodeAt(e + 1)) < 56320 || a > 57343 ? e + 1 : e + 2;
2455
- }, At.prototype.current = function(e) {
2462
+ }, R.prototype.current = function(e) {
2456
2463
  return e === void 0 && (e = !1), this.at(this.pos, e);
2457
- }, At.prototype.lookahead = function(e) {
2464
+ }, R.prototype.lookahead = function(e) {
2458
2465
  return e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e);
2459
- }, At.prototype.advance = function(e) {
2466
+ }, R.prototype.advance = function(e) {
2460
2467
  e === void 0 && (e = !1), this.pos = this.nextIndex(this.pos, e);
2461
- }, At.prototype.eat = function(e, t) {
2462
- return t === void 0 && (t = !1), this.current(t) === e ? (this.advance(t), !0) : !1;
2463
- }, At.prototype.eatChars = function(e, t) {
2468
+ }, R.prototype.eat = function(e, t) {
2469
+ return t === void 0 && (t = !1), this.current(t) === e && (this.advance(t), !0);
2470
+ }, R.prototype.eatChars = function(e, t) {
2464
2471
  t === void 0 && (t = !1);
2465
2472
  for (var n = this.pos, r = 0, i = e; r < i.length; r += 1) {
2466
2473
  var a = i[r], o = this.at(n, t);
@@ -2475,12 +2482,12 @@ At.prototype.reset = function(e, t, n) {
2475
2482
  }
2476
2483
  this.options.ecmaVersion >= 15 && r && i && this.raise(e.start, "Invalid regular expression flag");
2477
2484
  };
2478
- function jt(e) {
2485
+ function At(e) {
2479
2486
  for (var t in e) return !0;
2480
2487
  return !1;
2481
2488
  }
2482
2489
  L.validateRegExpPattern = function(e) {
2483
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && jt(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2490
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && At(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2484
2491
  }, L.regexp_pattern = function(e) {
2485
2492
  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");
2486
2493
  for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
@@ -2564,10 +2571,10 @@ L.validateRegExpPattern = function(e) {
2564
2571
  }
2565
2572
  return !1;
2566
2573
  }, L.regexp_eatModifiers = function(e) {
2567
- for (var t = "", n = 0; (n = e.current()) !== -1 && Mt(n);) t += he(n), e.advance();
2574
+ for (var t = "", n = 0; (n = e.current()) !== -1 && jt(n);) t += he(n), e.advance();
2568
2575
  return t;
2569
2576
  };
2570
- function Mt(e) {
2577
+ function jt(e) {
2571
2578
  return e === 105 || e === 109 || e === 115;
2572
2579
  }
2573
2580
  L.regexp_eatExtendedAtom = function(e) {
@@ -2576,17 +2583,17 @@ L.regexp_eatExtendedAtom = function(e) {
2576
2583
  return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2577
2584
  }, L.regexp_eatSyntaxCharacter = function(e) {
2578
2585
  var t = e.current();
2579
- return Nt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2586
+ return Mt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2580
2587
  };
2581
- function Nt(e) {
2588
+ function Mt(e) {
2582
2589
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2583
2590
  }
2584
2591
  L.regexp_eatPatternCharacters = function(e) {
2585
- for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Nt(n);) e.advance();
2592
+ for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Mt(n);) e.advance();
2586
2593
  return e.pos !== t;
2587
2594
  }, L.regexp_eatExtendedPatternCharacter = function(e) {
2588
2595
  var t = e.current();
2589
- return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
2596
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 && (e.advance(), !0);
2590
2597
  }, L.regexp_groupSpecifier = function(e) {
2591
2598
  if (e.eat(63)) {
2592
2599
  this.regexp_eatGroupName(e) || e.raise("Invalid group");
@@ -2609,16 +2616,16 @@ L.regexp_eatPatternCharacters = function(e) {
2609
2616
  return !1;
2610
2617
  }, L.regexp_eatRegExpIdentifierStart = function(e) {
2611
2618
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2612
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Pt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2619
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Nt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2613
2620
  };
2614
- function Pt(e) {
2621
+ function Nt(e) {
2615
2622
  return y(e, !0) || e === 36 || e === 95;
2616
2623
  }
2617
2624
  L.regexp_eatRegExpIdentifierPart = function(e) {
2618
2625
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2619
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Ft(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2626
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Pt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2620
2627
  };
2621
- function Ft(e) {
2628
+ function Pt(e) {
2622
2629
  return b(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2623
2630
  }
2624
2631
  L.regexp_eatAtomEscape = function(e) {
@@ -2648,15 +2655,15 @@ L.regexp_eatAtomEscape = function(e) {
2648
2655
  }
2649
2656
  return !1;
2650
2657
  }, L.regexp_eatZero = function(e) {
2651
- return e.current() === 48 && !Kt(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2658
+ return e.current() === 48 && !Gt(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
2652
2659
  }, L.regexp_eatControlEscape = function(e) {
2653
2660
  var t = e.current();
2654
- return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
2661
+ 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);
2655
2662
  }, L.regexp_eatControlLetter = function(e) {
2656
2663
  var t = e.current();
2657
- return It(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2664
+ return Ft(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2658
2665
  };
2659
- function It(e) {
2666
+ function Ft(e) {
2660
2667
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2661
2668
  }
2662
2669
  L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
@@ -2675,18 +2682,18 @@ L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2675
2682
  }
2676
2683
  return !0;
2677
2684
  }
2678
- if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && Lt(e.lastIntValue)) return !0;
2685
+ if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && It(e.lastIntValue)) return !0;
2679
2686
  r && e.raise("Invalid unicode escape"), e.pos = n;
2680
2687
  }
2681
2688
  return !1;
2682
2689
  };
2683
- function Lt(e) {
2690
+ function It(e) {
2684
2691
  return e >= 0 && e <= 1114111;
2685
2692
  }
2686
2693
  L.regexp_eatIdentityEscape = function(e) {
2687
2694
  if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
2688
2695
  var t = e.current();
2689
- return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2696
+ return t !== 99 && (!e.switchN || t !== 107) && (e.lastIntValue = t, e.advance(), !0);
2690
2697
  }, L.regexp_eatDecimalEscape = function(e) {
2691
2698
  e.lastIntValue = 0;
2692
2699
  var t = e.current();
@@ -2698,20 +2705,20 @@ L.regexp_eatIdentityEscape = function(e) {
2698
2705
  }
2699
2706
  return !1;
2700
2707
  };
2701
- var Rt = 0, zt = 1, R = 2;
2708
+ var Lt = 0, Rt = 1, z = 2;
2702
2709
  L.regexp_eatCharacterClassEscape = function(e) {
2703
2710
  var t = e.current();
2704
- if (Bt(t)) return e.lastIntValue = -1, e.advance(), zt;
2711
+ if (zt(t)) return e.lastIntValue = -1, e.advance(), Rt;
2705
2712
  var n = !1;
2706
2713
  if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
2707
2714
  e.lastIntValue = -1, e.advance();
2708
2715
  var r;
2709
- if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === R && e.raise("Invalid property name"), r;
2716
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === z && e.raise("Invalid property name"), r;
2710
2717
  e.raise("Invalid property name");
2711
2718
  }
2712
- return Rt;
2719
+ return Lt;
2713
2720
  };
2714
- function Bt(e) {
2721
+ function zt(e) {
2715
2722
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2716
2723
  }
2717
2724
  L.regexp_eatUnicodePropertyValueExpression = function(e) {
@@ -2720,46 +2727,46 @@ L.regexp_eatUnicodePropertyValueExpression = function(e) {
2720
2727
  var n = e.lastStringValue;
2721
2728
  if (this.regexp_eatUnicodePropertyValue(e)) {
2722
2729
  var r = e.lastStringValue;
2723
- return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), zt;
2730
+ return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), Rt;
2724
2731
  }
2725
2732
  }
2726
2733
  if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2727
2734
  var i = e.lastStringValue;
2728
2735
  return this.regexp_validateUnicodePropertyNameOrValue(e, i);
2729
2736
  }
2730
- return Rt;
2737
+ return Lt;
2731
2738
  }, L.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
2732
2739
  de(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
2733
2740
  }, L.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2734
- if (e.unicodeProperties.binary.test(t)) return zt;
2735
- if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return R;
2741
+ if (e.unicodeProperties.binary.test(t)) return Rt;
2742
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return z;
2736
2743
  e.raise("Invalid property name");
2737
2744
  }, L.regexp_eatUnicodePropertyName = function(e) {
2738
2745
  var t = 0;
2739
- for (e.lastStringValue = ""; Vt(t = e.current());) e.lastStringValue += he(t), e.advance();
2746
+ for (e.lastStringValue = ""; Bt(t = e.current());) e.lastStringValue += he(t), e.advance();
2740
2747
  return e.lastStringValue !== "";
2741
2748
  };
2742
- function Vt(e) {
2743
- return It(e) || e === 95;
2749
+ function Bt(e) {
2750
+ return Ft(e) || e === 95;
2744
2751
  }
2745
2752
  L.regexp_eatUnicodePropertyValue = function(e) {
2746
2753
  var t = 0;
2747
- for (e.lastStringValue = ""; Ht(t = e.current());) e.lastStringValue += he(t), e.advance();
2754
+ for (e.lastStringValue = ""; Vt(t = e.current());) e.lastStringValue += he(t), e.advance();
2748
2755
  return e.lastStringValue !== "";
2749
2756
  };
2750
- function Ht(e) {
2751
- return Vt(e) || Kt(e);
2757
+ function Vt(e) {
2758
+ return Bt(e) || Gt(e);
2752
2759
  }
2753
2760
  L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2754
2761
  return this.regexp_eatUnicodePropertyValue(e);
2755
2762
  }, L.regexp_eatCharacterClass = function(e) {
2756
2763
  if (e.eat(91)) {
2757
2764
  var t = e.eat(94), n = this.regexp_classContents(e);
2758
- return e.eat(93) || e.raise("Unterminated character class"), t && n === R && e.raise("Negated character class may contain strings"), !0;
2765
+ return e.eat(93) || e.raise("Unterminated character class"), t && n === z && e.raise("Negated character class may contain strings"), !0;
2759
2766
  }
2760
2767
  return !1;
2761
2768
  }, L.regexp_classContents = function(e) {
2762
- return e.current() === 93 ? zt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), zt);
2769
+ return e.current() === 93 ? Rt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Rt);
2763
2770
  }, L.regexp_nonEmptyClassRanges = function(e) {
2764
2771
  for (; this.regexp_eatClassAtom(e);) {
2765
2772
  var t = e.lastIntValue;
@@ -2774,12 +2781,12 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2774
2781
  if (this.regexp_eatClassEscape(e)) return !0;
2775
2782
  if (e.switchU) {
2776
2783
  var n = e.current();
2777
- (n === 99 || Yt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2784
+ (n === 99 || Jt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2778
2785
  }
2779
2786
  e.pos = t;
2780
2787
  }
2781
2788
  var r = e.current();
2782
- return r === 93 ? !1 : (e.lastIntValue = r, e.advance(), !0);
2789
+ return r !== 93 && (e.lastIntValue = r, e.advance(), !0);
2783
2790
  }, L.regexp_eatClassEscape = function(e) {
2784
2791
  var t = e.pos;
2785
2792
  if (e.eat(98)) return e.lastIntValue = 8, !0;
@@ -2790,12 +2797,12 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2790
2797
  }
2791
2798
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2792
2799
  }, L.regexp_classSetExpression = function(e) {
2793
- var t = zt, n;
2800
+ var t = Rt, n;
2794
2801
  if (!this.regexp_eatClassSetRange(e)) if (n = this.regexp_eatClassSetOperand(e)) {
2795
- n === R && (t = R);
2802
+ n === z && (t = z);
2796
2803
  for (var r = e.pos; e.eatChars([38, 38]);) {
2797
2804
  if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
2798
- n !== R && (t = zt);
2805
+ n !== z && (t = Rt);
2799
2806
  continue;
2800
2807
  }
2801
2808
  e.raise("Invalid character in character class");
@@ -2806,7 +2813,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2806
2813
  } else e.raise("Invalid character in character class");
2807
2814
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
2808
2815
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
2809
- n === R && (t = R);
2816
+ n === z && (t = z);
2810
2817
  }
2811
2818
  }, L.regexp_eatClassSetRange = function(e) {
2812
2819
  var t = e.pos;
@@ -2820,12 +2827,12 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2820
2827
  }
2821
2828
  return !1;
2822
2829
  }, L.regexp_eatClassSetOperand = function(e) {
2823
- return this.regexp_eatClassSetCharacter(e) ? zt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2830
+ return this.regexp_eatClassSetCharacter(e) ? Rt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2824
2831
  }, L.regexp_eatNestedClass = function(e) {
2825
2832
  var t = e.pos;
2826
2833
  if (e.eat(91)) {
2827
2834
  var n = e.eat(94), r = this.regexp_classContents(e);
2828
- if (e.eat(93)) return n && r === R && e.raise("Negated character class may contain strings"), r;
2835
+ if (e.eat(93)) return n && r === z && e.raise("Negated character class may contain strings"), r;
2829
2836
  e.pos = t;
2830
2837
  }
2831
2838
  if (e.eat(92)) {
@@ -2845,33 +2852,33 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2845
2852
  }
2846
2853
  return null;
2847
2854
  }, L.regexp_classStringDisjunctionContents = function(e) {
2848
- for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === R && (t = R);
2855
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === z && (t = z);
2849
2856
  return t;
2850
2857
  }, L.regexp_classString = function(e) {
2851
2858
  for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
2852
- return t === 1 ? zt : R;
2859
+ return t === 1 ? Rt : z;
2853
2860
  }, L.regexp_eatClassSetCharacter = function(e) {
2854
2861
  var t = e.pos;
2855
2862
  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
2863
  var n = e.current();
2857
- return n < 0 || n === e.lookahead() && Ut(n) || Wt(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
2864
+ return n < 0 || n === e.lookahead() && Ht(n) || Ut(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
2858
2865
  };
2859
- function Ut(e) {
2866
+ function Ht(e) {
2860
2867
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2861
2868
  }
2862
- function Wt(e) {
2869
+ function Ut(e) {
2863
2870
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2864
2871
  }
2865
2872
  L.regexp_eatClassSetReservedPunctuator = function(e) {
2866
2873
  var t = e.current();
2867
- return Gt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2874
+ return Wt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2868
2875
  };
2869
- function Gt(e) {
2876
+ function Wt(e) {
2870
2877
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2871
2878
  }
2872
2879
  L.regexp_eatClassControlLetter = function(e) {
2873
2880
  var t = e.current();
2874
- return Kt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2881
+ return Gt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2875
2882
  }, L.regexp_eatHexEscapeSequence = function(e) {
2876
2883
  var t = e.pos;
2877
2884
  if (e.eat(120)) {
@@ -2881,21 +2888,21 @@ L.regexp_eatClassControlLetter = function(e) {
2881
2888
  return !1;
2882
2889
  }, L.regexp_eatDecimalDigits = function(e) {
2883
2890
  var t = e.pos, n = 0;
2884
- for (e.lastIntValue = 0; Kt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2891
+ for (e.lastIntValue = 0; Gt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2885
2892
  return e.pos !== t;
2886
2893
  };
2887
- function Kt(e) {
2894
+ function Gt(e) {
2888
2895
  return e >= 48 && e <= 57;
2889
2896
  }
2890
2897
  L.regexp_eatHexDigits = function(e) {
2891
2898
  var t = e.pos, n = 0;
2892
- for (e.lastIntValue = 0; qt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + Jt(n), e.advance();
2899
+ for (e.lastIntValue = 0; Kt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + qt(n), e.advance();
2893
2900
  return e.pos !== t;
2894
2901
  };
2895
- function qt(e) {
2902
+ function Kt(e) {
2896
2903
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2897
2904
  }
2898
- function Jt(e) {
2905
+ function qt(e) {
2899
2906
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2900
2907
  }
2901
2908
  L.regexp_eatLegacyOctalEscapeSequence = function(e) {
@@ -2903,16 +2910,16 @@ L.regexp_eatLegacyOctalEscapeSequence = function(e) {
2903
2910
  var t = e.lastIntValue;
2904
2911
  if (this.regexp_eatOctalDigit(e)) {
2905
2912
  var n = e.lastIntValue;
2906
- t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + n * 8 + e.lastIntValue : e.lastIntValue = t * 8 + n;
2913
+ e.lastIntValue = t <= 3 && this.regexp_eatOctalDigit(e) ? t * 64 + n * 8 + e.lastIntValue : t * 8 + n;
2907
2914
  } else e.lastIntValue = t;
2908
2915
  return !0;
2909
2916
  }
2910
2917
  return !1;
2911
2918
  }, L.regexp_eatOctalDigit = function(e) {
2912
2919
  var t = e.current();
2913
- return Yt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2920
+ return Jt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2914
2921
  };
2915
- function Yt(e) {
2922
+ function Jt(e) {
2916
2923
  return e >= 48 && e <= 55;
2917
2924
  }
2918
2925
  L.regexp_eatFixedHexDigits = function(e, t) {
@@ -2920,19 +2927,19 @@ L.regexp_eatFixedHexDigits = function(e, t) {
2920
2927
  e.lastIntValue = 0;
2921
2928
  for (var r = 0; r < t; ++r) {
2922
2929
  var i = e.current();
2923
- if (!qt(i)) return e.pos = n, !1;
2924
- e.lastIntValue = 16 * e.lastIntValue + Jt(i), e.advance();
2930
+ if (!Kt(i)) return e.pos = n, !1;
2931
+ e.lastIntValue = 16 * e.lastIntValue + qt(i), e.advance();
2925
2932
  }
2926
2933
  return !0;
2927
2934
  };
2928
- var Xt = function(e) {
2935
+ var Yt = function(e) {
2929
2936
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new ve(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2930
- }, z = k.prototype;
2931
- z.next = function(e) {
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 Xt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2933
- }, z.getToken = function() {
2934
- return this.next(), new Xt(this);
2935
- }, typeof Symbol < "u" && (z[Symbol.iterator] = function() {
2937
+ }, B = k.prototype;
2938
+ B.next = function(e) {
2939
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Yt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2940
+ }, B.getToken = function() {
2941
+ return this.next(), new Yt(this);
2942
+ }, typeof Symbol < "u" && (B[Symbol.iterator] = function() {
2936
2943
  var e = this;
2937
2944
  return { next: function() {
2938
2945
  var t = e.getToken();
@@ -2941,28 +2948,28 @@ z.next = function(e) {
2941
2948
  value: t
2942
2949
  };
2943
2950
  } };
2944
- }), z.nextToken = function() {
2951
+ }), B.nextToken = function() {
2945
2952
  var e = this.curContext();
2946
2953
  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(E.eof);
2947
2954
  if (e.override) return e.override(this);
2948
2955
  this.readToken(this.fullCharCodeAtPos());
2949
- }, z.readToken = function(e) {
2956
+ }, B.readToken = function(e) {
2950
2957
  return y(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2951
- }, z.fullCharCodeAt = function(e) {
2958
+ }, B.fullCharCodeAt = function(e) {
2952
2959
  var t = this.input.charCodeAt(e);
2953
2960
  if (t <= 55295 || t >= 56320) return t;
2954
2961
  var n = this.input.charCodeAt(e + 1);
2955
2962
  return n <= 56319 || n >= 57344 ? t : (t << 10) + n - 56613888;
2956
- }, z.fullCharCodeAtPos = function() {
2963
+ }, B.fullCharCodeAtPos = function() {
2957
2964
  return this.fullCharCodeAt(this.pos);
2958
- }, z.skipBlockComment = function() {
2965
+ }, B.skipBlockComment = function() {
2959
2966
  var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
2960
2967
  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 = oe(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
2961
2968
  this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
2962
- }, z.skipLineComment = function(e) {
2969
+ }, B.skipLineComment = function(e) {
2963
2970
  for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ae(r);) r = this.input.charCodeAt(++this.pos);
2964
2971
  this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
2965
- }, z.skipSpace = function() {
2972
+ }, B.skipSpace = function() {
2966
2973
  loop: for (; this.pos < this.input.length;) {
2967
2974
  var e = this.input.charCodeAt(this.pos);
2968
2975
  switch (e) {
@@ -2991,36 +2998,36 @@ z.next = function(e) {
2991
2998
  else break loop;
2992
2999
  }
2993
3000
  }
2994
- }, z.finishToken = function(e, t) {
3001
+ }, B.finishToken = function(e, t) {
2995
3002
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2996
3003
  var n = this.type;
2997
3004
  this.type = e, this.value = t, this.updateContext(n);
2998
- }, z.readToken_dot = function() {
3005
+ }, B.readToken_dot = function() {
2999
3006
  var e = this.input.charCodeAt(this.pos + 1);
3000
3007
  if (e >= 48 && e <= 57) return this.readNumber(!0);
3001
3008
  var t = this.input.charCodeAt(this.pos + 2);
3002
3009
  return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(E.ellipsis)) : (++this.pos, this.finishToken(E.dot));
3003
- }, z.readToken_slash = function() {
3010
+ }, B.readToken_slash = function() {
3004
3011
  var e = this.input.charCodeAt(this.pos + 1);
3005
3012
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.slash, 1);
3006
- }, z.readToken_mult_modulo_exp = function(e) {
3013
+ }, B.readToken_mult_modulo_exp = function(e) {
3007
3014
  var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? E.star : E.modulo;
3008
3015
  return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = E.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(E.assign, n + 1) : this.finishOp(r, n);
3009
- }, z.readToken_pipe_amp = function(e) {
3016
+ }, B.readToken_pipe_amp = function(e) {
3010
3017
  var t = this.input.charCodeAt(this.pos + 1);
3011
3018
  return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(E.assign, 3) : this.finishOp(e === 124 ? E.logicalOR : E.logicalAND, 2) : t === 61 ? this.finishOp(E.assign, 2) : this.finishOp(e === 124 ? E.bitwiseOR : E.bitwiseAND, 1);
3012
- }, z.readToken_caret = function() {
3019
+ }, B.readToken_caret = function() {
3013
3020
  return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.bitwiseXOR, 1);
3014
- }, z.readToken_plus_min = function(e) {
3021
+ }, B.readToken_plus_min = function(e) {
3015
3022
  var t = this.input.charCodeAt(this.pos + 1);
3016
3023
  return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || D.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(E.incDec, 2) : t === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.plusMin, 1);
3017
- }, z.readToken_lt_gt = function(e) {
3024
+ }, B.readToken_lt_gt = function(e) {
3018
3025
  var t = this.input.charCodeAt(this.pos + 1), n = 1;
3019
3026
  return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(E.assign, n + 1) : this.finishOp(E.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(E.relational, n));
3020
- }, z.readToken_eq_excl = function(e) {
3027
+ }, B.readToken_eq_excl = function(e) {
3021
3028
  var t = this.input.charCodeAt(this.pos + 1);
3022
3029
  return t === 61 ? this.finishOp(E.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(E.arrow)) : this.finishOp(e === 61 ? E.eq : E.prefix, 1);
3023
- }, z.readToken_question = function() {
3030
+ }, B.readToken_question = function() {
3024
3031
  var e = this.options.ecmaVersion;
3025
3032
  if (e >= 11) {
3026
3033
  var t = this.input.charCodeAt(this.pos + 1);
@@ -3031,11 +3038,11 @@ z.next = function(e) {
3031
3038
  if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(E.assign, 3) : this.finishOp(E.coalesce, 2);
3032
3039
  }
3033
3040
  return this.finishOp(E.question, 1);
3034
- }, z.readToken_numberSign = function() {
3041
+ }, B.readToken_numberSign = function() {
3035
3042
  var e = this.options.ecmaVersion, t = 35;
3036
3043
  if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), y(t, !0) || t === 92)) return this.finishToken(E.privateId, this.readWord1());
3037
3044
  this.raise(this.pos, "Unexpected character '" + he(t) + "'");
3038
- }, z.getTokenFromCode = function(e) {
3045
+ }, B.getTokenFromCode = function(e) {
3039
3046
  switch (e) {
3040
3047
  case 46: return this.readToken_dot();
3041
3048
  case 40: return ++this.pos, this.finishToken(E.parenL);
@@ -3085,10 +3092,10 @@ z.next = function(e) {
3085
3092
  case 35: return this.readToken_numberSign();
3086
3093
  }
3087
3094
  this.raise(this.pos, "Unexpected character '" + he(e) + "'");
3088
- }, z.finishOp = function(e, t) {
3095
+ }, B.finishOp = function(e, t) {
3089
3096
  var n = this.input.slice(this.pos, this.pos + t);
3090
3097
  return this.pos += t, this.finishToken(e, n);
3091
- }, z.readRegexp = function() {
3098
+ }, B.readRegexp = function() {
3092
3099
  for (var e, t, n = this.pos;;) {
3093
3100
  this.pos >= this.input.length && this.raise(n, "Unterminated regular expression");
3094
3101
  var r = this.input.charAt(this.pos);
@@ -3105,7 +3112,7 @@ z.next = function(e) {
3105
3112
  ++this.pos;
3106
3113
  var a = this.pos, o = this.readWord1();
3107
3114
  this.containsEsc && this.unexpected(a);
3108
- var s = this.regexpState ||= new At(this);
3115
+ var s = this.regexpState ||= new R(this);
3109
3116
  s.reset(n, i, o), this.validateRegExpFlags(s), this.validateRegExpPattern(s);
3110
3117
  var c = null;
3111
3118
  try {
@@ -3116,7 +3123,7 @@ z.next = function(e) {
3116
3123
  flags: o,
3117
3124
  value: c
3118
3125
  });
3119
- }, z.readInt = function(e, t, n) {
3126
+ }, B.readInt = function(e, t, n) {
3120
3127
  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
3128
  var u = this.input.charCodeAt(this.pos), d = void 0;
3122
3129
  if (r && u === 95) {
@@ -3128,31 +3135,31 @@ z.next = function(e) {
3128
3135
  }
3129
3136
  return r && s === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a || t != null && this.pos - a !== t ? null : o;
3130
3137
  };
3131
- function Zt(e, t) {
3138
+ function Xt(e, t) {
3132
3139
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
3133
3140
  }
3134
- function Qt(e) {
3141
+ function Zt(e) {
3135
3142
  return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
3136
3143
  }
3137
- z.readRadixNumber = function(e) {
3144
+ B.readRadixNumber = function(e) {
3138
3145
  var t = this.pos;
3139
3146
  this.pos += 2;
3140
3147
  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 = Qt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
3142
- }, z.readNumber = function(e) {
3148
+ return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Zt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
3149
+ }, B.readNumber = function(e) {
3143
3150
  var t = this.pos;
3144
3151
  !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3145
3152
  var n = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
3146
3153
  n && this.strict && this.raise(t, "Invalid number");
3147
3154
  var r = this.input.charCodeAt(this.pos);
3148
3155
  if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
3149
- var i = Qt(this.input.slice(t, this.pos));
3156
+ var i = Zt(this.input.slice(t, this.pos));
3150
3157
  return ++this.pos, y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, i);
3151
3158
  }
3152
3159
  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")), y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3153
- var a = Zt(this.input.slice(t, this.pos), n);
3160
+ var a = Xt(this.input.slice(t, this.pos), n);
3154
3161
  return this.finishToken(E.num, a);
3155
- }, z.readCodePoint = function() {
3162
+ }, B.readCodePoint = function() {
3156
3163
  var e = this.input.charCodeAt(this.pos), t;
3157
3164
  if (e === 123) {
3158
3165
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -3160,7 +3167,7 @@ z.readRadixNumber = function(e) {
3160
3167
  t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(n, "Code point out of bounds");
3161
3168
  } else t = this.readHexChar(4);
3162
3169
  return t;
3163
- }, z.readString = function(e) {
3170
+ }, B.readString = function(e) {
3164
3171
  for (var t = "", n = ++this.pos;;) {
3165
3172
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3166
3173
  var r = this.input.charCodeAt(this.pos);
@@ -3169,20 +3176,20 @@ z.readRadixNumber = function(e) {
3169
3176
  }
3170
3177
  return t += this.input.slice(n, this.pos++), this.finishToken(E.string, t);
3171
3178
  };
3172
- var $t = {};
3173
- z.tryReadTemplateToken = function() {
3179
+ var Qt = {};
3180
+ B.tryReadTemplateToken = function() {
3174
3181
  this.inTemplateElement = !0;
3175
3182
  try {
3176
3183
  this.readTmplToken();
3177
3184
  } catch (e) {
3178
- if (e === $t) this.readInvalidTemplateToken();
3185
+ if (e === Qt) this.readInvalidTemplateToken();
3179
3186
  else throw e;
3180
3187
  }
3181
3188
  this.inTemplateElement = !1;
3182
- }, z.invalidStringToken = function(e, t) {
3183
- if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw $t;
3189
+ }, B.invalidStringToken = function(e, t) {
3190
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Qt;
3184
3191
  this.raise(e, t);
3185
- }, z.readTmplToken = function() {
3192
+ }, B.readTmplToken = function() {
3186
3193
  for (var e = "", t = this.pos;;) {
3187
3194
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3188
3195
  var n = this.input.charCodeAt(this.pos);
@@ -3194,14 +3201,12 @@ z.tryReadTemplateToken = function() {
3194
3201
  case 10:
3195
3202
  e += "\n";
3196
3203
  break;
3197
- default:
3198
- e += String.fromCharCode(n);
3199
- break;
3204
+ default: e += String.fromCharCode(n);
3200
3205
  }
3201
3206
  this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3202
3207
  } else ++this.pos;
3203
3208
  }
3204
- }, z.readInvalidTemplateToken = function() {
3209
+ }, B.readInvalidTemplateToken = function() {
3205
3210
  for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
3206
3211
  case "\\":
3207
3212
  ++this.pos;
@@ -3211,12 +3216,10 @@ z.tryReadTemplateToken = function() {
3211
3216
  case "\r": this.input[this.pos + 1] === "\n" && ++this.pos;
3212
3217
  case "\n":
3213
3218
  case "\u2028":
3214
- case "\u2029":
3215
- ++this.curLine, this.lineStart = this.pos + 1;
3216
- break;
3219
+ case "\u2029": ++this.curLine, this.lineStart = this.pos + 1;
3217
3220
  }
3218
3221
  this.raise(this.start, "Unterminated template");
3219
- }, z.readEscapedChar = function(e) {
3222
+ }, B.readEscapedChar = function(e) {
3220
3223
  var t = this.input.charCodeAt(++this.pos);
3221
3224
  switch (++this.pos, t) {
3222
3225
  case 110: return "\n";
@@ -3241,10 +3244,10 @@ z.tryReadTemplateToken = function() {
3241
3244
  }
3242
3245
  return ae(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3243
3246
  }
3244
- }, z.readHexChar = function(e) {
3247
+ }, B.readHexChar = function(e) {
3245
3248
  var t = this.pos, n = this.readInt(16, e);
3246
3249
  return n === null && this.invalidStringToken(t, "Bad character escape sequence"), n;
3247
- }, z.readWord1 = function() {
3250
+ }, B.readWord1 = function() {
3248
3251
  this.containsEsc = !1;
3249
3252
  for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
3250
3253
  var i = this.fullCharCodeAtPos();
@@ -3259,14 +3262,14 @@ z.tryReadTemplateToken = function() {
3259
3262
  t = !1;
3260
3263
  }
3261
3264
  return e + this.input.slice(n, this.pos);
3262
- }, z.readWord = function() {
3265
+ }, B.readWord = function() {
3263
3266
  var e = this.readWord1(), t = E.name;
3264
3267
  return this.keywords.test(e) && (t = re[e]), this.finishToken(t, e);
3265
3268
  };
3266
- var en = "8.17.0";
3269
+ var $t = "8.18.0";
3267
3270
  k.acorn = {
3268
3271
  Parser: k,
3269
- version: en,
3272
+ version: $t,
3270
3273
  defaultOptions: be,
3271
3274
  Position: _e,
3272
3275
  SourceLocation: ve,
@@ -3279,24 +3282,24 @@ k.acorn = {
3279
3282
  tokContexts: F,
3280
3283
  isIdentifierChar: b,
3281
3284
  isIdentifierStart: y,
3282
- Token: Xt,
3285
+ Token: Yt,
3283
3286
  isNewLine: ae,
3284
3287
  lineBreak: D,
3285
3288
  lineBreakG: ie,
3286
3289
  nonASCIIwhitespace: se
3287
3290
  };
3288
- function tn(e, t) {
3291
+ function en(e, t) {
3289
3292
  return k.parse(e, t);
3290
3293
  }
3291
- function nn(e, t, n) {
3294
+ function tn(e, t, n) {
3292
3295
  return k.parseExpressionAt(e, t, n);
3293
3296
  }
3294
- function rn(e, t) {
3297
+ function nn(e, t) {
3295
3298
  return k.tokenizer(e, t);
3296
3299
  }
3297
3300
  //#endregion
3298
3301
  //#region node_modules/acorn-typescript/lib/index.mjs
3299
- function an(e, t) {
3302
+ function rn(e, t) {
3300
3303
  for (var n = 0; n < t.length; n++) {
3301
3304
  var r = t[n];
3302
3305
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, typeof (i = function(e, t) {
@@ -3312,36 +3315,36 @@ function an(e, t) {
3312
3315
  }
3313
3316
  var i;
3314
3317
  }
3315
- function on() {
3316
- return on = Object.assign ? Object.assign.bind() : function(e) {
3318
+ function an() {
3319
+ return an = Object.assign ? Object.assign.bind() : function(e) {
3317
3320
  for (var t = 1; t < arguments.length; t++) {
3318
3321
  var n = arguments[t];
3319
3322
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3320
3323
  }
3321
3324
  return e;
3322
- }, on.apply(this, arguments);
3325
+ }, an.apply(this, arguments);
3323
3326
  }
3324
- function sn(e, t) {
3325
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, cn(e, t);
3327
+ function on(e, t) {
3328
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, sn(e, t);
3326
3329
  }
3327
- function cn(e, t) {
3328
- return cn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
3330
+ function sn(e, t) {
3331
+ return sn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
3329
3332
  return e.__proto__ = t, e;
3330
- }, cn(e, t);
3333
+ }, sn(e, t);
3331
3334
  }
3332
- function ln(e, t) {
3335
+ function cn(e, t) {
3333
3336
  (t == null || t > e.length) && (t = e.length);
3334
3337
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
3335
3338
  return r;
3336
3339
  }
3337
- function un(e, t) {
3340
+ function ln(e, t) {
3338
3341
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
3339
3342
  if (n) return (n = n.call(e)).next.bind(n);
3340
3343
  if (Array.isArray(e) || (n = function(e, t) {
3341
3344
  if (e) {
3342
- if (typeof e == "string") return ln(e, t);
3345
+ if (typeof e == "string") return cn(e, t);
3343
3346
  var n = Object.prototype.toString.call(e).slice(8, -1);
3344
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ln(e, t) : void 0;
3347
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? cn(e, t) : void 0;
3345
3348
  }
3346
3349
  }(e)) || t && e && typeof e.length == "number") {
3347
3350
  n && (e = n);
@@ -3355,28 +3358,28 @@ function un(e, t) {
3355
3358
  }
3356
3359
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3357
3360
  }
3358
- var B = !0;
3359
- function V(e, t) {
3361
+ var V = !0;
3362
+ function H(e, t) {
3360
3363
  return t === void 0 && (t = {}), new x("name", t);
3361
3364
  }
3362
- var dn = /* @__PURE__ */ new WeakMap();
3363
- function fn(e) {
3364
- var t = dn.get(e.Parser.acorn || e);
3365
+ var un = /* @__PURE__ */ new WeakMap();
3366
+ function dn(e) {
3367
+ var t = un.get(e.Parser.acorn || e);
3365
3368
  if (!t) {
3366
3369
  var n = {
3367
- assert: V(0, { startsExpr: B }),
3368
- asserts: V(0, { startsExpr: B }),
3369
- global: V(0, { startsExpr: B }),
3370
- keyof: V(0, { startsExpr: B }),
3371
- readonly: V(0, { startsExpr: B }),
3372
- unique: V(0, { startsExpr: B }),
3373
- abstract: V(0, { startsExpr: B }),
3374
- declare: V(0, { startsExpr: B }),
3375
- enum: V(0, { startsExpr: B }),
3376
- module: V(0, { startsExpr: B }),
3377
- namespace: V(0, { startsExpr: B }),
3378
- interface: V(0, { startsExpr: B }),
3379
- type: V(0, { startsExpr: B })
3370
+ assert: H(0, { startsExpr: V }),
3371
+ asserts: H(0, { startsExpr: V }),
3372
+ global: H(0, { startsExpr: V }),
3373
+ keyof: H(0, { startsExpr: V }),
3374
+ readonly: H(0, { startsExpr: V }),
3375
+ unique: H(0, { startsExpr: V }),
3376
+ abstract: H(0, { startsExpr: V }),
3377
+ declare: H(0, { startsExpr: V }),
3378
+ enum: H(0, { startsExpr: V }),
3379
+ module: H(0, { startsExpr: V }),
3380
+ namespace: H(0, { startsExpr: V }),
3381
+ interface: H(0, { startsExpr: V }),
3382
+ type: H(0, { startsExpr: V })
3380
3383
  }, r = {
3381
3384
  at: new x("@"),
3382
3385
  jsxName: new x("jsxName"),
@@ -3394,8 +3397,8 @@ function fn(e) {
3394
3397
  var t = this.context.pop();
3395
3398
  t === i.tc_oTag && e === E.slash || t === i.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === i.tc_expr) : this.exprAllowed = !0;
3396
3399
  }, t = {
3397
- tokTypes: on({}, n, r),
3398
- tokContexts: on({}, i),
3400
+ tokTypes: an({}, n, r),
3401
+ tokContexts: an({}, i),
3399
3402
  keywordsRegExp: a,
3400
3403
  tokenIsLiteralPropertyName: function(e) {
3401
3404
  return [
@@ -3435,18 +3438,18 @@ function fn(e) {
3435
3438
  }
3436
3439
  return t;
3437
3440
  }
3438
- var pn = 1024, mn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), hn = function() {
3441
+ var fn = 1024, pn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), mn = function() {
3439
3442
  this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
3440
3443
  };
3441
- function gn(e, t) {
3444
+ function hn(e, t) {
3442
3445
  var n = t.key.name, r = e[n], i = "true";
3443
3446
  return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (i = (t.static ? "s" : "i") + t.kind), r === "iget" && i === "iset" || r === "iset" && i === "iget" || r === "sget" && i === "sset" || r === "sset" && i === "sget" ? (e[n] = "true", !1) : !!r || (e[n] = i, !1);
3444
3447
  }
3445
- function _n(e, t) {
3448
+ function gn(e, t) {
3446
3449
  var n = e.key;
3447
3450
  return !e.computed && (n.type === "Identifier" && n.name === t || n.type === "Literal" && n.value === t);
3448
3451
  }
3449
- var H = {
3452
+ var U = {
3450
3453
  AbstractMethodHasImplementation: function(e) {
3451
3454
  return "Method '" + e.methodName + "' cannot have an implementation because it is marked abstract.";
3452
3455
  },
@@ -3547,7 +3550,7 @@ var H = {
3547
3550
  return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + e.type + ".";
3548
3551
  },
3549
3552
  LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations."
3550
- }, vn = {
3553
+ }, _n = {
3551
3554
  quot: "\"",
3552
3555
  amp: "&",
3553
3556
  apos: "'",
@@ -3801,38 +3804,38 @@ var H = {
3801
3804
  clubs: "♣",
3802
3805
  hearts: "♥",
3803
3806
  diams: "♦"
3804
- }, yn = /^[\da-fA-F]+$/, bn = /^\d+$/;
3805
- function xn(e) {
3806
- return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? xn(e.object) + "." + xn(e.property) : void 0);
3807
+ }, vn = /^[\da-fA-F]+$/, yn = /^\d+$/;
3808
+ function bn(e) {
3809
+ return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? bn(e.object) + "." + bn(e.property) : void 0);
3807
3810
  }
3808
- var Sn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
3809
- function Cn(e) {
3811
+ var xn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
3812
+ function Sn(e) {
3810
3813
  if (!e) throw Error("Assert fail");
3811
3814
  }
3812
- function wn(e) {
3815
+ function Cn(e) {
3813
3816
  return e === "accessor";
3814
3817
  }
3815
- function Tn(e) {
3818
+ function wn(e) {
3816
3819
  return e === "in" || e === "out";
3817
3820
  }
3818
- function En(e, t) {
3821
+ function Tn(e, t) {
3819
3822
  return 2 | (e ? 4 : 0) | (t ? 8 : 0);
3820
3823
  }
3821
- function Dn(e) {
3824
+ function En(e) {
3822
3825
  if (e.type !== "MemberExpression") return !1;
3823
3826
  var t = e.property;
3824
- return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && On(e.object);
3827
+ return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && Dn(e.object);
3825
3828
  }
3826
- function On(e) {
3827
- return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && On(e.object);
3829
+ function Dn(e) {
3830
+ return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Dn(e.object);
3828
3831
  }
3829
- function kn(e) {
3832
+ function On(e) {
3830
3833
  return e === "private" || e === "public" || e === "protected";
3831
3834
  }
3832
- function An(e) {
3835
+ function kn(e) {
3833
3836
  var t = e || {}, n = t.dts, r = n !== void 0 && n, i = t.allowSatisfies, a = i !== void 0 && i;
3834
3837
  return function(t) {
3835
- var n = t.acorn || u, i = fn(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, l = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, ne = i.tokenIsKeywordOrIdentifier, y = i.tokenIsTSTypeOperator;
3838
+ var n = t.acorn || u, i = dn(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, l = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, ne = i.tokenIsKeywordOrIdentifier, y = i.tokenIsTSTypeOperator;
3836
3839
  function b(e, t, n) {
3837
3840
  n === void 0 && (n = e.length);
3838
3841
  for (var r = t; r < n; r++) {
@@ -3847,7 +3850,7 @@ function An(e) {
3847
3850
  function t() {
3848
3851
  return e.apply(this, arguments) || this;
3849
3852
  }
3850
- sn(t, e);
3853
+ on(t, e);
3851
3854
  var n = t.prototype;
3852
3855
  return n.takeDecorators = function(e) {
3853
3856
  var t = this.decoratorStack[this.decoratorStack.length - 1];
@@ -3890,7 +3893,7 @@ function An(e) {
3890
3893
  function t() {
3891
3894
  return e.apply(this, arguments) || this;
3892
3895
  }
3893
- sn(t, e);
3896
+ on(t, e);
3894
3897
  var n = t.prototype;
3895
3898
  return n.jsx_readToken = function() {
3896
3899
  for (var e = "", t = this.pos;;) {
@@ -3923,7 +3926,7 @@ function An(e) {
3923
3926
  r !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
3924
3927
  for (var i = ++this.pos; this.pos < this.input.length && n++ < 10;) {
3925
3928
  if ((r = this.input[this.pos++]) === ";") {
3926
- t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), yn.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), bn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = vn[t];
3929
+ t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), vn.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), yn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = _n[t];
3927
3930
  break;
3928
3931
  }
3929
3932
  t += r;
@@ -3997,7 +4000,7 @@ function An(e) {
3997
4000
  break;
3998
4001
  default: this.unexpected();
3999
4002
  }
4000
- xn(s.name) !== xn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + xn(o.name) + ">");
4003
+ bn(s.name) !== bn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + bn(o.name) + ">");
4001
4004
  }
4002
4005
  var c = o.name ? "Element" : "Fragment";
4003
4006
  return n["opening" + c] = o, n["closing" + c] = s, n.children = r, this.type === i.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(n, "JSX" + c);
@@ -4015,7 +4018,7 @@ function An(e) {
4015
4018
  function t() {
4016
4019
  return e.apply(this, arguments) || this;
4017
4020
  }
4018
- sn(t, e);
4021
+ on(t, e);
4019
4022
  var n = t.prototype;
4020
4023
  return n.parseMaybeImportAttributes = function(e) {
4021
4024
  if (this.type === i._with || this.type === r.assert) {
@@ -4046,10 +4049,10 @@ function An(e) {
4046
4049
  }(i), {
4047
4050
  allowedModifiers: ["const"],
4048
4051
  disallowedModifiers: ["in", "out"],
4049
- errorTemplate: H.InvalidModifierOnTypeParameterPositions
4052
+ errorTemplate: U.InvalidModifierOnTypeParameterPositions
4050
4053
  }), i;
4051
4054
  }
4052
- sn(t, e);
4055
+ on(t, e);
4053
4056
  var u, x, S, C = t.prototype;
4054
4057
  return C.getTokenFromCodeInType = function(t) {
4055
4058
  return t === 62 || t === 60 ? this.finishOp(o.relational, 1) : e.prototype.getTokenFromCode.call(this, t);
@@ -4117,14 +4120,14 @@ function An(e) {
4117
4120
  return this.nextTokenStartSince(this.pos);
4118
4121
  }, C.tsHasSomeModifiers = function(e, t) {
4119
4122
  return t.some(function(t) {
4120
- return kn(t) ? e.accessibility === t : !!e[t];
4123
+ return On(t) ? e.accessibility === t : !!e[t];
4121
4124
  });
4122
4125
  }, C.tsIsStartOfStaticBlocks = function() {
4123
4126
  return this.isContextual("static") && this.lookaheadCharCode() === 123;
4124
4127
  }, C.tsCheckForInvalidTypeCasts = function(e) {
4125
4128
  var t = this;
4126
4129
  e.forEach(function(e) {
4127
- e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, H.UnexpectedTypeAnnotation);
4130
+ e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, U.UnexpectedTypeAnnotation);
4128
4131
  });
4129
4132
  }, C.atPossibleAsyncArrow = function(e) {
4130
4133
  return e.type === "Identifier" && e.name === "async" && this.lastTokEndLoc.column === e.end && !this.canInsertSemicolon() && e.end - e.start == 5 && e.start === this.potentialArrowAt;
@@ -4165,7 +4168,7 @@ function An(e) {
4165
4168
  }, C.isAbstractConstructorSignature = function() {
4166
4169
  return this.ts_isContextual(m.abstract) && this.lookahead().type === o._new;
4167
4170
  }, C.nextTokenStartSince = function(e) {
4168
- return Sn.lastIndex = e, Sn.test(this.input) ? Sn.lastIndex : e;
4171
+ return xn.lastIndex = e, xn.test(this.input) ? xn.lastIndex : e;
4169
4172
  }, C.lookaheadCharCode = function() {
4170
4173
  return this.input.charCodeAt(this.nextTokenStart());
4171
4174
  }, C.compareLookaheadState = function(e, t) {
@@ -4249,7 +4252,7 @@ function An(e) {
4249
4252
  }, C.isLineTerminator = function() {
4250
4253
  return this.eat(o.semi) || e.prototype.canInsertSemicolon.call(this);
4251
4254
  }, C.hasFollowingLineBreak = function() {
4252
- return mn.lastIndex = this.end, mn.test(this.input);
4255
+ return pn.lastIndex = this.end, pn.test(this.input);
4253
4256
  }, C.addExtra = function(e, t, n, r) {
4254
4257
  if (r === void 0 && (r = !0), e) {
4255
4258
  var i = e.extra = e.extra || {};
@@ -4341,7 +4344,7 @@ function An(e) {
4341
4344
  }
4342
4345
  return this.next(), e.prototype.exitScope.call(this), this.finishNode(t, "TSModuleBlock");
4343
4346
  }, C.tsParseAmbientExternalModuleDeclaration = function(t) {
4344
- return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, pn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
4347
+ return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, fn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
4345
4348
  }, C.tsTryParseDeclare = function(e) {
4346
4349
  var t = this;
4347
4350
  if (!this.isLineTerminator()) {
@@ -4442,7 +4445,7 @@ function An(e) {
4442
4445
  }, C.tsParseBindingListForSignature = function() {
4443
4446
  var t = this;
4444
4447
  return e.prototype.parseBindingList.call(this, o.parenR, !0, !0).map(function(e) {
4445
- return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, H.UnsupportedSignatureParameterKind(e.type)), e;
4448
+ return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, U.UnsupportedSignatureParameterKind(e.type)), e;
4446
4449
  });
4447
4450
  }, C.tsParseTypePredicateAsserts = function() {
4448
4451
  if (this.type !== m.asserts) return !1;
@@ -4488,7 +4491,7 @@ function An(e) {
4488
4491
  if (this.lookahead().type !== o._const) return null;
4489
4492
  this.next();
4490
4493
  var e = this.tsParseTypeReference();
4491
- return e.typeParameters && this.raise(e.typeName.start, H.CannotFindName({ name: "const" })), e;
4494
+ return e.typeParameters && this.raise(e.typeName.start, U.CannotFindName({ name: "const" })), e;
4492
4495
  }, C.tsParseFunctionOrConstructorType = function(e, t) {
4493
4496
  var n = this, r = this.startNode();
4494
4497
  return e === "TSConstructorType" && (r.abstract = !!t, t && this.next(), this.next()), this.tsInAllowConditionalTypesContext(function() {
@@ -4504,7 +4507,7 @@ function An(e) {
4504
4507
  switch (e.typeAnnotation.type) {
4505
4508
  case "TSTupleType":
4506
4509
  case "TSArrayType": return;
4507
- default: this.raise(e.start, H.UnexpectedReadonly);
4510
+ default: this.raise(e.start, U.UnexpectedReadonly);
4508
4511
  }
4509
4512
  }, C.tsParseTypeOperator = function() {
4510
4513
  var e = this.startNode(), t = this.value;
@@ -4537,7 +4540,7 @@ function An(e) {
4537
4540
  }(), this.finishNode(t, "TSLiteralType");
4538
4541
  }, C.tsParseImportType = function() {
4539
4542
  var e = this.startNode();
4540
- return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, H.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
4543
+ return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, U.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
4541
4544
  }, C.tsParseTypeQuery = function() {
4542
4545
  var e = this.startNode();
4543
4546
  return this.expect(o._typeof), e.exprName = this.match(o._import) ? this.tsParseImportType() : this.tsParseEntityName(), !this.hasPrecedingLineBreak() && this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
@@ -4554,7 +4557,7 @@ function An(e) {
4554
4557
  var e = this.startLoc, t = this.start, n = this.eat(o.ellipsis), r = this.tsParseType(), i = this.eat(o.question);
4555
4558
  if (this.eat(o.colon)) {
4556
4559
  var a = this.startNodeAtNode(r);
4557
- a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, H.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
4560
+ a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, U.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
4558
4561
  } else if (i) {
4559
4562
  var s = this.startNodeAtNode(r);
4560
4563
  s.typeAnnotation = r, r = this.finishNode(s, "TSOptionalType");
@@ -4570,11 +4573,11 @@ function An(e) {
4570
4573
  var n = !1, r = null;
4571
4574
  return t.elementTypes.forEach(function(t) {
4572
4575
  var i = t.type;
4573
- !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, H.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
4576
+ !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, U.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
4574
4577
  var a = i;
4575
4578
  i === "TSRestType" && (a = (t = t.typeAnnotation).type);
4576
4579
  var o = a === "TSNamedTupleMember";
4577
- r ??= o, r !== o && e.raise(t.start, H.MixedLabeledAndUnlabeledElements);
4580
+ r ??= o, r !== o && e.raise(t.start, U.MixedLabeledAndUnlabeledElements);
4578
4581
  }), this.finishNode(t, "TSTupleType");
4579
4582
  }, C.tsParseTemplateLiteralType = function() {
4580
4583
  var e = this.startNode();
@@ -4657,7 +4660,7 @@ function An(e) {
4657
4660
  return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
4658
4661
  }, C.tsParseType = function() {
4659
4662
  var e = this;
4660
- Cn(this.inType);
4663
+ Sn(this.inType);
4661
4664
  var t = this.tsParseNonConditionalType();
4662
4665
  if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return t;
4663
4666
  var n = this.startNodeAtNode(t);
@@ -4691,7 +4694,7 @@ function An(e) {
4691
4694
  modified: e,
4692
4695
  allowedModifiers: [],
4693
4696
  disallowedModifiers: ["in", "out"],
4694
- errorTemplate: H.InvalidModifierOnTypeParameterPositions
4697
+ errorTemplate: U.InvalidModifierOnTypeParameterPositions
4695
4698
  });
4696
4699
  }, C.tsParseTypeParameter = function(e) {
4697
4700
  e === void 0 && (e = this.tsParseNoneModifiers.bind(this));
@@ -4701,7 +4704,7 @@ function An(e) {
4701
4704
  var t = this.startNode();
4702
4705
  this.tsMatchLeftRelational() || this.matchJsx("jsxTagStart") ? this.next() : this.unexpected();
4703
4706
  var n = { value: -1 };
4704
- return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, H.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
4707
+ return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, U.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
4705
4708
  }, C.tsTryParseTypeParameters = function(e) {
4706
4709
  if (this.tsMatchLeftRelational()) return this.tsParseTypeParameters(e);
4707
4710
  }, C.tsTryParse = function(e) {
@@ -4725,14 +4728,14 @@ function An(e) {
4725
4728
  t[a] = n[a];
4726
4729
  }
4727
4730
  }, C.tsParseModifiers = function(e) {
4728
- for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? H.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
4729
- r === i && n[a] && t.raise(e.column, H.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
4731
+ for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? U.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
4732
+ r === i && n[a] && t.raise(e.column, U.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
4730
4733
  }, u = function(e, r, i, a) {
4731
- (n[i] && r === a || n[a] && r === i) && t.raise(e.column, H.IncompatibleModifiers({ modifiers: [i, a] }));
4734
+ (n[i] && r === a || n[a] && r === i) && t.raise(e.column, U.IncompatibleModifiers({ modifiers: [i, a] }));
4732
4735
  };;) {
4733
4736
  var d = this.startLoc, f = this.tsParseModifier(r.concat(i ?? []), a);
4734
4737
  if (!f) break;
4735
- kn(f) ? n.accessibility ? this.raise(this.start, H.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : Tn(f) ? n[f] ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : wn(f) ? n[f] ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
4738
+ On(f) ? n.accessibility ? this.raise(this.start, U.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : wn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : Cn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
4736
4739
  }
4737
4740
  return c;
4738
4741
  }, C.tsParseInOutModifiers = function(e) {
@@ -4748,7 +4751,7 @@ function An(e) {
4748
4751
  "abstract",
4749
4752
  "override"
4750
4753
  ],
4751
- errorTemplate: H.InvalidModifierOnTypeParameter
4754
+ errorTemplate: U.InvalidModifierOnTypeParameter
4752
4755
  });
4753
4756
  }, C.tsParseTypeArguments = function() {
4754
4757
  var e = this, t = this.startNode();
@@ -4756,13 +4759,13 @@ function An(e) {
4756
4759
  return e.tsInNoContext(function() {
4757
4760
  return e.expect(o.relational), e.tsParseDelimitedList("TypeParametersOrArguments", e.tsParseType.bind(e));
4758
4761
  });
4759
- }), t.params.length === 0 && this.raise(this.start, H.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
4762
+ }), t.params.length === 0 && this.raise(this.start, U.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
4760
4763
  }, C.tsParseHeritageClause = function(e) {
4761
4764
  var t = this, n = this.start, r = this.tsParseDelimitedList("HeritageClauseElement", function() {
4762
4765
  var e = t.startNode();
4763
4766
  return e.expression = t.tsParseEntityName(), t.tsMatchLeftRelational() && (e.typeParameters = t.tsParseTypeArguments()), t.finishNode(e, "TSExpressionWithTypeArguments");
4764
4767
  });
4765
- return r.length || this.raise(n, H.EmptyHeritageClauseType({ token: e })), r;
4768
+ return r.length || this.raise(n, U.EmptyHeritageClauseType({ token: e })), r;
4766
4769
  }, C.tsParseTypeMemberSemicolon = function() {
4767
4770
  this.eat(o.comma) || this.isLineTerminator() || this.expect(o.semi);
4768
4771
  }, C.tsTryParseAndCatch = function(e) {
@@ -4776,18 +4779,18 @@ function An(e) {
4776
4779
  this.eat(o.question) && (e.optional = !0);
4777
4780
  var n = e;
4778
4781
  if (this.match(o.parenL) || this.tsMatchLeftRelational()) {
4779
- t && this.raise(e.start, H.ReadonlyForMethodSignature);
4782
+ t && this.raise(e.start, U.ReadonlyForMethodSignature);
4780
4783
  var r = n;
4781
- r.kind && this.tsMatchLeftRelational() && this.raise(this.start, H.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
4784
+ r.kind && this.tsMatchLeftRelational() && this.raise(this.start, U.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
4782
4785
  var i = "parameters", a = "typeAnnotation";
4783
- if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, H.AccesorCannotDeclareThisParameter));
4786
+ if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, U.AccesorCannotDeclareThisParameter));
4784
4787
  else if (r.kind === "set") {
4785
4788
  if (r[i].length !== 1) this.raise(this.start, "A 'get' accesor must not have any formal parameters.");
4786
4789
  else {
4787
4790
  var s = r[i][0];
4788
- this.isThisParam(s) && this.raise(this.start, H.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, H.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, H.SetAccesorCannotHaveRestParameter);
4791
+ this.isThisParam(s) && this.raise(this.start, U.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, U.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, U.SetAccesorCannotHaveRestParameter);
4789
4792
  }
4790
- r[a] && this.raise(r[a].start, H.SetAccesorCannotHaveReturnType);
4793
+ r[a] && this.raise(r[a].start, U.SetAccesorCannotHaveReturnType);
4791
4794
  } else r.kind = "method";
4792
4795
  return this.finishNode(r, "TSMethodSignature");
4793
4796
  }
@@ -4824,7 +4827,7 @@ function An(e) {
4824
4827
  return this.expect(o.braceR), e;
4825
4828
  }, C.tsParseInterfaceDeclaration = function(e, t) {
4826
4829
  if (t === void 0 && (t = {}), this.hasFollowingLineBreak()) return null;
4827
- this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, H.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
4830
+ this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, U.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
4828
4831
  var n = this.startNode();
4829
4832
  return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), e.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode(e, "TSInterfaceDeclaration");
4830
4833
  }, C.tsParseAbstractDeclaration = function(e) {
@@ -4842,7 +4845,7 @@ function An(e) {
4842
4845
  break;
4843
4846
  case "global":
4844
4847
  if (this.match(o.braceL)) {
4845
- e.prototype.enterScope.call(this, pn);
4848
+ e.prototype.enterScope.call(this, fn);
4846
4849
  var i = t;
4847
4850
  return i.global = !0, i.id = n, i.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this), this.finishNode(i, "TSModuleDeclaration");
4848
4851
  }
@@ -4881,7 +4884,7 @@ function An(e) {
4881
4884
  if (n === void 0 && (n = !1), t.id = this.parseIdent(), n || this.checkLValSimple(t.id, 8), this.eat(o.dot)) {
4882
4885
  var r = this.startNode();
4883
4886
  this.tsParseModuleOrNamespaceDeclaration(r, !0), t.body = r;
4884
- } else e.prototype.enterScope.call(this, pn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
4887
+ } else e.prototype.enterScope.call(this, fn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
4885
4888
  return this.finishNode(t, "TSModuleDeclaration");
4886
4889
  }, C.checkLValSimple = function(t, n, r) {
4887
4890
  return n === void 0 && (n = 0), e.prototype.checkLValSimple.call(this, t, n, r);
@@ -4915,7 +4918,7 @@ function An(e) {
4915
4918
  }, C.tsParseImportEqualsDeclaration = function(t, n) {
4916
4919
  t.isExport = n || !1, t.id = this.parseIdent(), this.checkLValSimple(t.id, 2), e.prototype.expect.call(this, o.eq);
4917
4920
  var r = this.tsParseModuleReference();
4918
- return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, H.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
4921
+ return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, U.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
4919
4922
  }, C.isExportDefaultSpecifier = function() {
4920
4923
  if (this.tsIsDeclarationStart()) return !1;
4921
4924
  var e = this.type;
@@ -4942,13 +4945,13 @@ function An(e) {
4942
4945
  }, C.parseFunction = function(e, t, n, r, i) {
4943
4946
  this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && 2 & t && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), 1 & t && (e.id = 4 & t && this.type !== o.name ? null : this.parseIdent());
4944
4947
  var a = this.yieldPos, s = this.awaitPos, c = this.awaitIdentPos, l = this.maybeInArrowParameters;
4945
- this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(En(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
4948
+ this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Tn(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
4946
4949
  var u = 1 & t;
4947
4950
  return this.parseFunctionBody(e, n, !1, i, { isFunctionDeclaration: u }), this.yieldPos = a, this.awaitPos = s, this.awaitIdentPos = c, 1 & t && e.id && !(2 & t) && this.checkLValSimple(e.id, e.body ? this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = l, this.finishNode(e, u ? "FunctionDeclaration" : "FunctionExpression");
4948
4951
  }, C.parseFunctionBody = function(t, n, r, i, a) {
4949
4952
  n === void 0 && (n = !1), r === void 0 && (r = !1), i === void 0 && (i = !1), this.match(o.colon) && (t.returnType = this.tsParseTypeOrTypePredicateAnnotation(o.colon));
4950
4953
  var s = a != null && a.isFunctionDeclaration ? "TSDeclareFunction" : a != null && a.isClassMethod ? "TSDeclareMethod" : void 0;
4951
- return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, H.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
4954
+ return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, U.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
4952
4955
  }, C.parseNew = function() {
4953
4956
  var e;
4954
4957
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
@@ -4989,7 +4992,7 @@ function An(e) {
4989
4992
  return this.importOrExportOuterKind = "value", r;
4990
4993
  }
4991
4994
  }
4992
- return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, H.TypeImportCannotSpecifyDefaultAndNamed), e;
4995
+ return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, U.TypeImportCannotSpecifyDefaultAndNamed), e;
4993
4996
  }, C.parseExportDefaultDeclaration = function() {
4994
4997
  if (this.isAbstractClass()) {
4995
4998
  var t = this.startNode();
@@ -5029,7 +5032,7 @@ function An(e) {
5029
5032
  else {
5030
5033
  if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== o.string && this.unexpected(), e.source = this.parseExprAtom(), this.parseMaybeImportAttributes(e);
5031
5034
  else {
5032
- for (var s, c = un(e.specifiers); !(s = c()).done;) {
5035
+ for (var s, c = ln(e.specifiers); !(s = c()).done;) {
5033
5036
  var l = s.value;
5034
5037
  this.checkUnreserved(l.local), this.checkLocalExport(l.local), l.local.type === "Literal" && this.raise(l.local.start, "A string literal cannot be used as an exported binding without `from`.");
5035
5038
  }
@@ -5042,7 +5045,7 @@ function An(e) {
5042
5045
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), e[t] = !0);
5043
5046
  }, C.parseMaybeDefault = function(t, n, r) {
5044
5047
  var i = e.prototype.parseMaybeDefault.call(this, t, n, r);
5045
- return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, H.TypeAnnotationAfterAssign), i;
5048
+ return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, U.TypeAnnotationAfterAssign), i;
5046
5049
  }, C.typeCastToParameter = function(e) {
5047
5050
  return e.expression.typeAnnotation = e.typeAnnotation, this.resetEndLocation(e.expression, e.typeAnnotation.end), e.expression;
5048
5051
  }, C.toAssignableList = function(t, n) {
@@ -5091,9 +5094,9 @@ function An(e) {
5091
5094
  this.next(), e.prototype.parseVar.call(this, t, !1, n, r || i), this.semicolon();
5092
5095
  var a = this.finishNode(t, "VariableDeclaration");
5093
5096
  if (!i) return a;
5094
- for (var o, s = un(a.declarations); !(o = s()).done;) {
5097
+ for (var o, s = ln(a.declarations); !(o = s()).done;) {
5095
5098
  var c = o.value, l = c.init;
5096
- l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, H.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !Dn(l) && this.raise(l.start, H.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5099
+ l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, U.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !En(l) && this.raise(l.start, U.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5097
5100
  }
5098
5101
  return a;
5099
5102
  }, C.parseStatement = function(t, n, r) {
@@ -5114,7 +5117,7 @@ function An(e) {
5114
5117
  "private"
5115
5118
  ]);
5116
5119
  }, C.parsePostMemberNameModifiers = function(e) {
5117
- this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, H.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, H.ClassMethodHasDeclare);
5120
+ this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, U.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, U.ClassMethodHasDeclare);
5118
5121
  }, C.parseExpressionStatement = function(t, n) {
5119
5122
  return (n.type === "Identifier" ? this.tsParseExpressionStatement(t, n) : void 0) || e.prototype.parseExpressionStatement.call(this, t, n);
5120
5123
  }, C.shouldParseExportStatement = function() {
@@ -5146,7 +5149,7 @@ function An(e) {
5146
5149
  return t.parseExportDeclaration(e);
5147
5150
  });
5148
5151
  var n = this.start, r = this.startLoc, i = this.eatContextual("declare");
5149
- !i || !this.ts_isContextual(m.declare) && this.shouldParseExportStatement() || this.raise(this.start, H.ExpectedAmbientAfterExportDeclare);
5152
+ !i || !this.ts_isContextual(m.declare) && this.shouldParseExportStatement() || this.raise(this.start, U.ExpectedAmbientAfterExportDeclare);
5150
5153
  var a = v(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
5151
5154
  return a ? ((a.type === "TSInterfaceDeclaration" || a.type === "TSTypeAliasDeclaration" || i) && (e.exportKind = "type"), i && (this.resetStartLocation(a, n, r), a.declare = !0), a) : null;
5152
5155
  }, C.parseClassId = function(t, n) {
@@ -5160,19 +5163,19 @@ function An(e) {
5160
5163
  var t = this.tsTryParseTypeAnnotation();
5161
5164
  t && (e.typeAnnotation = t);
5162
5165
  }, C.parseClassField = function(t) {
5163
- if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, H.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, H.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5164
- else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, H.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5166
+ if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, U.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, U.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5167
+ else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, U.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5165
5168
  var n = t.key;
5166
- this.raise(this.start, H.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5169
+ this.raise(this.start, U.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5167
5170
  }
5168
5171
  return e.prototype.parseClassField.call(this, t);
5169
5172
  }, C.parseClassMethod = function(e, t, n, r) {
5170
5173
  var i = e.kind === "constructor", a = e.key.type === "PrivateIdentifier", o = this.tsTryParseTypeParameters();
5171
- a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, H.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, H.ConstructorHasTypeParameters);
5174
+ a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, U.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, U.ConstructorHasTypeParameters);
5172
5175
  var s = e.declare, c = e.kind;
5173
- !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, H.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5176
+ !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, U.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5174
5177
  var l = e.key;
5175
- e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && _n(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5178
+ e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && gn(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5176
5179
  var u = e.value = this.parseMethod(t, n, r, !0, e);
5177
5180
  return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
5178
5181
  }, C.isClassMethod = function() {
@@ -5196,23 +5199,23 @@ function An(e) {
5196
5199
  allowedModifiers: d,
5197
5200
  disallowedModifiers: ["in", "out"],
5198
5201
  stopOnStartOfClassStaticBlock: !0,
5199
- errorTemplate: H.InvalidModifierOnTypeParameterPositions
5202
+ errorTemplate: U.InvalidModifierOnTypeParameterPositions
5200
5203
  }).static;
5201
5204
  var f = function() {
5202
5205
  if (!n.tsIsStartOfStaticBlocks()) {
5203
5206
  var f = n.tsTryParseIndexSignature(a);
5204
- if (f) return a.abstract && n.raise(a.start, H.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, H.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, H.IndexSignatureHasDeclare), a.override && n.raise(a.start, H.IndexSignatureHasOverride), f;
5205
- if (!n.inAbstractClass && a.abstract && n.raise(a.start, H.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, H.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5207
+ if (f) return a.abstract && n.raise(a.start, U.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, U.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, U.IndexSignatureHasDeclare), a.override && n.raise(a.start, U.IndexSignatureHasOverride), f;
5208
+ if (!n.inAbstractClass && a.abstract && n.raise(a.start, U.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, U.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5206
5209
  var p = n.value;
5207
5210
  (n.eatContextual("get") || n.eatContextual("set")) && (n.isClassElementNameStart() ? u = p : s = p);
5208
5211
  }
5209
5212
  if (s ? (a.computed = !1, a.key = n.startNodeAt(n.lastTokStart, n.lastTokStartLoc), a.key.name = s, n.finishNode(a.key, "Identifier")) : n.parseClassElementName(a), n.parsePostMemberNameModifiers(a), n.isClassMethod() || i < 13 || n.type === o.parenL || u !== "method" || c || l) {
5210
- var m = !a.static && _n(a, "constructor"), h = m && t;
5213
+ var m = !a.static && gn(a, "constructor"), h = m && t;
5211
5214
  m && u !== "method" && n.raise(a.key.start, "Constructor can't have get/set modifier"), a.kind = m ? "constructor" : u, n.parseClassMethod(a, c, l, h);
5212
5215
  } else n.parseClassField(a);
5213
5216
  return a;
5214
5217
  }
5215
- if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, H.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5218
+ if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, U.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5216
5219
  };
5217
5220
  return a.declare ? this.tsInAmbientContext(f) : f(), a;
5218
5221
  }, C.isClassElementNameStart = function() {
@@ -5229,7 +5232,7 @@ function An(e) {
5229
5232
  }, C.parseArrowExpression = function(e, t, n, r) {
5230
5233
  this.match(o.colon) && (e.returnType = this.tsParseTypeAnnotation());
5231
5234
  var i = this.yieldPos, a = this.awaitPos, s = this.awaitIdentPos;
5232
- this.enterScope(16 | En(n, !1)), this.initFunction(e);
5235
+ this.enterScope(16 | Tn(n, !1)), this.initFunction(e);
5233
5236
  var c = this.maybeInArrowParameters;
5234
5237
  return this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.maybeInArrowParameters = !0, e.params = this.toAssignableList(t, !0), this.maybeInArrowParameters = !1, this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = s, this.maybeInArrowParameters = c, this.finishNode(e, "ArrowFunctionExpression");
5235
5238
  }, C.parseMaybeAssignOrigin = function(e, t, n) {
@@ -5238,7 +5241,7 @@ function An(e) {
5238
5241
  this.exprAllowed = !1;
5239
5242
  }
5240
5243
  var r = !1, i = -1, a = -1, s = -1;
5241
- t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new hn(), r = !0);
5244
+ t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new mn(), r = !0);
5242
5245
  var c = this.start, l = this.startLoc;
5243
5246
  (this.type === o.parenL || v(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
5244
5247
  var u = this.parseMaybeConditional(e, t);
@@ -5265,7 +5268,7 @@ function An(e) {
5265
5268
  return (a.type !== "ArrowFunctionExpression" || (i = a.extra) != null && i.parenthesized) && r(), f?.params.length !== 0 && p.resetStartLocationFromNode(a, f), a.typeParameters = f, a;
5266
5269
  }, l);
5267
5270
  if (!g.error && !g.aborted) return f && this.reportReservedArrowTypeParam(f), g.node;
5268
- if (!u && (Cn(!0), !(d = this.tryParse(function() {
5271
+ if (!u && (Sn(!0), !(d = this.tryParse(function() {
5269
5272
  return p.parseMaybeAssignOrigin(e, t, n);
5270
5273
  }, l)).error)) return d.node;
5271
5274
  if ((a = u) != null && a.node) return this.setLookaheadState(u.failState), u.node;
@@ -5286,20 +5289,20 @@ function An(e) {
5286
5289
  "override",
5287
5290
  "readonly"
5288
5291
  ]
5289
- }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, H.UnexpectedParameterModifier);
5292
+ }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, U.UnexpectedParameterModifier);
5290
5293
  }
5291
5294
  var c = this.parseMaybeDefault(r, i);
5292
5295
  this.parseBindingListItem(c);
5293
5296
  var l = this.parseMaybeDefault(c.start, c.loc, c);
5294
5297
  if (t.length && (l.decorators = t), n || a || o) {
5295
5298
  var u = this.startNodeAt(r, i);
5296
- return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, H.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5299
+ return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, U.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5297
5300
  }
5298
5301
  return l;
5299
5302
  }, C.checkLValInnerPattern = function(t, n, r) {
5300
5303
  n === void 0 && (n = 0), t.type === "TSParameterProperty" ? this.checkLValInnerPattern(t.parameter, n, r) : e.prototype.checkLValInnerPattern.call(this, t, n, r);
5301
5304
  }, C.parseBindingListItem = function(e) {
5302
- this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, H.PatternIsOptional), e.optional = !0);
5305
+ this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, U.PatternIsOptional), e.optional = !0);
5303
5306
  var t = this.tsTryParseTypeAnnotation();
5304
5307
  return t && (e.typeAnnotation = t), this.resetEndLocation(e), e;
5305
5308
  }, C.isAssignable = function(e, t) {
@@ -5330,12 +5333,12 @@ function An(e) {
5330
5333
  default: return !1;
5331
5334
  }
5332
5335
  }, C.toAssignable = function(t, n, r) {
5333
- switch (n === void 0 && (n = !1), r === void 0 && (r = new hn()), t.type) {
5336
+ switch (n === void 0 && (n = !1), r === void 0 && (r = new mn()), t.type) {
5334
5337
  case "ParenthesizedExpression": return this.toAssignableParenthesizedExpression(t, n, r);
5335
5338
  case "TSAsExpression":
5336
5339
  case "TSSatisfiesExpression":
5337
5340
  case "TSNonNullExpression":
5338
- case "TSTypeAssertion": return n || this.raise(t.start, H.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5341
+ case "TSTypeAssertion": return n || this.raise(t.start, U.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5339
5342
  case "MemberExpression": break;
5340
5343
  case "AssignmentExpression": return n || t.left.type !== "TSTypeCastExpression" || (t.left = this.typeCastToParameter(t.left)), e.prototype.toAssignable.call(this, t, n, r);
5341
5344
  case "TSTypeCastExpression": return this.typeCastToParameter(t);
@@ -5387,7 +5390,7 @@ function An(e) {
5387
5390
  if (this.options.ecmaVersion >= 6) {
5388
5391
  var s = this.maybeInArrowParameters;
5389
5392
  this.maybeInArrowParameters = !0, this.next();
5390
- var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new hn(), h = this.yieldPos, g = this.awaitPos;
5393
+ var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new mn(), h = this.yieldPos, g = this.awaitPos;
5391
5394
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR;) {
5392
5395
  if (f ? f = !1 : this.expect(o.comma), a && this.afterTrailingComma(o.parenR, !0)) {
5393
5396
  p = !0;
@@ -5456,7 +5459,7 @@ function An(e) {
5456
5459
  return u.typeParameters = a, u;
5457
5460
  }
5458
5461
  if (!r && c.eat(o.parenL)) {
5459
- var p = new hn(), m = c.startNodeAt(t, n);
5462
+ var p = new mn(), m = c.startNodeAt(t, n);
5460
5463
  return m.callee = e, m.arguments = c.parseExprList(o.parenR, c.options.ecmaVersion >= 8, !1, p), c.tsCheckForInvalidTypeCasts(m.arguments), m.typeParameters = a, l && (m.optional = d), c.checkExpressionErrors(p, !0), e = c.finishNode(m, "CallExpression");
5461
5464
  }
5462
5465
  var h = c.type;
@@ -5465,7 +5468,7 @@ function An(e) {
5465
5468
  return _.expression = e, _.typeParameters = a, c.finishNode(_, "TSInstantiationExpression");
5466
5469
  }
5467
5470
  });
5468
- if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, H.InvalidPropertyAccessAfterInstantiationExpression), e = p;
5471
+ if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, U.InvalidPropertyAccessAfterInstantiationExpression), e = p;
5469
5472
  }
5470
5473
  var m = this.options.ecmaVersion >= 11, h = m && this.eat(o.questionDot);
5471
5474
  r && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
@@ -5476,7 +5479,7 @@ function An(e) {
5476
5479
  } else if (!r && this.eat(o.parenL)) {
5477
5480
  var te = this.maybeInArrowParameters;
5478
5481
  this.maybeInArrowParameters = !0;
5479
- var v = new hn(), ne = this.yieldPos, y = this.awaitPos, b = this.awaitIdentPos;
5482
+ var v = new mn(), ne = this.yieldPos, y = this.awaitPos, b = this.awaitIdentPos;
5480
5483
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
5481
5484
  var x = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, v);
5482
5485
  if (i && !h && this.shouldParseAsyncArrow()) this.checkPatternErrors(v, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = ne, this.awaitPos = y, this.awaitIdentPos = b, e = this.parseSubscriptAsyncArrow(t, n, x, s);
@@ -5522,7 +5525,7 @@ function An(e) {
5522
5525
  for (this.expect(o.braceL); this.type !== o.braceR;) if (this.match(m.at)) c.push(this.parseDecorator());
5523
5526
  else {
5524
5527
  var l = this.parseClassElement(e.superClass !== null);
5525
- c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && gn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
5528
+ c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && hn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
5526
5529
  }
5527
5530
  return this.strict = r, this.next(), c.length && this.raise(this.start, "Decorators must be attached to a class element."), e.body = this.finishNode(a, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
5528
5531
  } finally {
@@ -5533,9 +5536,9 @@ function An(e) {
5533
5536
  return e && (t.typeParameters = e), t;
5534
5537
  }, C.parseMethod = function(e, t, n, r, i) {
5535
5538
  var a = this.startNode(), s = this.yieldPos, c = this.awaitPos, l = this.awaitIdentPos;
5536
- if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | En(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
5539
+ if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | Tn(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
5537
5540
  var u = i.key;
5538
- this.raise(i.start, H.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
5541
+ this.raise(i.start, U.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
5539
5542
  }
5540
5543
  return this.finishNode(a, "FunctionExpression");
5541
5544
  }, t.parse = function(e, t) {
@@ -5572,7 +5575,7 @@ function An(e) {
5572
5575
  ne(this.type) ? (c = !0, s = d, i = n ? this.parseIdent() : this.parseModuleExportName(), l = !1) : (i = f, l = !1);
5573
5576
  } else ne(this.type) ? (l = !1, i = n ? this.parseIdent() : this.parseModuleExportName()) : (c = !0, s = d);
5574
5577
  } else ne(this.type) && (c = !0, n ? (s = e.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(s)) : s = this.parseModuleExportName());
5575
- c && r && this.raise(u, n ? H.TypeModifierIsUsedInTypeImports : H.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
5578
+ c && r && this.raise(u, n ? U.TypeModifierIsUsedInTypeImports : U.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
5576
5579
  }, C.raiseCommonCheck = function(t, n, r) {
5577
5580
  return n === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(o.comma) && this.lookaheadCharCode() === 41 ? void this.next() : e.prototype.raise.call(this, t, n) : r ? e.prototype.raiseRecoverable.call(this, t, n) : e.prototype.raise.call(this, t, n);
5578
5581
  }, C.raiseRecoverable = function(e, t) {
@@ -5599,11 +5602,11 @@ function An(e) {
5599
5602
  for (r.attributes = []; this.type !== o.slash && this.type !== m.jsxTagEnd;) r.attributes.push(this.jsx_parseAttribute());
5600
5603
  return r.selfClosing = this.eat(o.slash), this.expect(m.jsxTagEnd), this.finishNode(r, i ? "JSXOpeningElement" : "JSXOpeningFragment");
5601
5604
  }, C.enterScope = function(t) {
5602
- t === pn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
5605
+ t === fn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
5603
5606
  var n = e.prototype.currentScope.call(this);
5604
5607
  n.types = [], n.enums = [], n.constEnums = [], n.classes = [], n.exportOnlyBindings = [];
5605
5608
  }, C.exitScope = function() {
5606
- e.prototype.currentScope.call(this).flags === pn && this.importsStack.pop(), e.prototype.exitScope.call(this);
5609
+ e.prototype.currentScope.call(this).flags === fn && this.importsStack.pop(), e.prototype.exitScope.call(this);
5607
5610
  }, C.hasImport = function(e, t) {
5608
5611
  var n = this.importsStack.length;
5609
5612
  if (this.importsStack[n - 1].indexOf(e) > -1) return !0;
@@ -5641,13 +5644,13 @@ function An(e) {
5641
5644
  get: function() {
5642
5645
  return i;
5643
5646
  }
5644
- }]) && an(u.prototype, x), S && an(u, S), Object.defineProperty(u, "prototype", { writable: !1 }), t;
5647
+ }]) && rn(u.prototype, x), S && rn(u, S), Object.defineProperty(u, "prototype", { writable: !1 }), t;
5645
5648
  }(t);
5646
5649
  };
5647
5650
  }
5648
5651
  //#endregion
5649
5652
  //#region src/utilities/index.ts
5650
- var jn = [
5653
+ var An = [
5651
5654
  {
5652
5655
  idPrefix: "dpuse-app",
5653
5656
  typeId: "app",
@@ -5726,9 +5729,9 @@ var jn = [
5726
5729
  publishedTo: "npm",
5727
5730
  uploadGroupName: void 0
5728
5731
  }
5729
- ], Mn = r(i);
5730
- async function Nn(e, r) {
5731
- e !== void 0 && q(`${e} - clear(${r})`);
5732
+ ], jn = r(i);
5733
+ async function Mn(e, r) {
5734
+ e !== void 0 && J(`${e} - clear(${r})`);
5732
5735
  let i;
5733
5736
  try {
5734
5737
  i = await t.readdir(r, { withFileTypes: !0 });
@@ -5748,16 +5751,16 @@ async function Nn(e, r) {
5748
5751
  }
5749
5752
  }));
5750
5753
  }
5751
- async function Pn(e, n) {
5754
+ async function Nn(e, n) {
5752
5755
  return t.readdir(e, n);
5753
5756
  }
5754
- async function Fn(e, n, r, i) {
5755
- e !== void 0 && q(`${e} - exec(${n} ${r.join(" ")})`);
5756
- let { stdout: a, stderr: o } = await Mn(n, r);
5757
+ async function Pn(e, n, r, i) {
5758
+ e !== void 0 && J(`${e} - exec(${n} ${r.join(" ")})`);
5759
+ let { stdout: a, stderr: o } = await jn(n, r);
5757
5760
  i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf8"), o.trim() && console.error(o.trim());
5758
5761
  }
5759
- async function In(e, t, n, r = !1, i = !1) {
5760
- return q(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
5762
+ async function Fn(e, t, n, r = !1, i = !1) {
5763
+ return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
5761
5764
  a(t, n, {
5762
5765
  shell: i,
5763
5766
  stdio: "inherit"
@@ -5766,8 +5769,8 @@ async function In(e, t, n, r = !1, i = !1) {
5766
5769
  });
5767
5770
  });
5768
5771
  }
5769
- async function Ln(e, n, r, i, o = !1) {
5770
- return q(`${e} - spawn(${n} ${r.join(" ")}) > ${i}`), new Promise((e, s) => {
5772
+ async function In(e, n, r, i, o = !1) {
5773
+ return J(`${e} - spawn(${n} ${r.join(" ")}) > ${i}`), new Promise((e, s) => {
5771
5774
  let c = a(n, r, {
5772
5775
  shell: !1,
5773
5776
  stdio: [
@@ -5789,13 +5792,13 @@ async function Ln(e, n, r, i, o = !1) {
5789
5792
  });
5790
5793
  });
5791
5794
  }
5792
- async function U(e) {
5795
+ async function W(e) {
5793
5796
  return JSON.parse(await t.readFile(e, "utf8"));
5794
5797
  }
5795
- async function W(e) {
5798
+ async function G(e) {
5796
5799
  return await t.readFile(e, "utf8");
5797
5800
  }
5798
- async function Rn(e) {
5801
+ async function Ln(e) {
5799
5802
  try {
5800
5803
  return await t.readFile(e, "utf8");
5801
5804
  } catch (e) {
@@ -5803,44 +5806,44 @@ async function Rn(e) {
5803
5806
  throw e;
5804
5807
  }
5805
5808
  }
5806
- async function zn(e) {
5809
+ async function Rn(e) {
5807
5810
  try {
5808
5811
  await t.unlink(e);
5809
5812
  } catch (e) {
5810
5813
  if (e.code !== "ENOENT") throw e;
5811
5814
  }
5812
5815
  }
5813
- async function Bn(e, n) {
5816
+ async function zn(e, n) {
5814
5817
  await t.writeFile(e, JSON.stringify(n, void 0, 4), "utf8");
5815
5818
  }
5816
- async function Vn(e, n) {
5819
+ async function Bn(e, n) {
5817
5820
  await t.writeFile(e, n, "utf8");
5818
5821
  }
5819
- function G(e) {
5822
+ function K(e) {
5820
5823
  let t = "────────────────────────────────────────────────────────────────────────────────";
5821
5824
  console.info(`\n${t}`), console.info(`▶️ ${e}`), console.info(`${t}`);
5822
5825
  }
5823
- function K(e) {
5826
+ function q(e) {
5824
5827
  console.info(`\n✅ ${e}\n`);
5825
5828
  }
5826
- function q(e) {
5829
+ function J(e) {
5827
5830
  console.info(`\n${e}\n`);
5828
5831
  }
5829
- function Hn(e) {
5830
- let t = jn.find((t) => e.startsWith(t.idPrefix));
5832
+ function Vn(e) {
5833
+ let t = An.find((t) => e.startsWith(t.idPrefix));
5831
5834
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
5832
5835
  return t;
5833
5836
  }
5834
- async function Un(e) {
5837
+ async function Hn(e) {
5835
5838
  return await t.stat(e);
5836
5839
  }
5837
- function Wn(e) {
5838
- let t = k.extend(An()).parse(e, {
5840
+ function Un(e) {
5841
+ let t = k.extend(kn()).parse(e, {
5839
5842
  ecmaVersion: "latest",
5840
5843
  sourceType: "module",
5841
5844
  locations: !0
5842
5845
  }), n = [];
5843
- return Gn(t, (e) => {
5846
+ return Wn(t, (e) => {
5844
5847
  if (e.type !== "MethodDefinition") return;
5845
5848
  let t = e, r = t.key;
5846
5849
  if (r.type !== "Identifier") return;
@@ -5848,7 +5851,7 @@ function Wn(e) {
5848
5851
  i && i !== "constructor" && t.accessibility !== "private" && n.push(i);
5849
5852
  }), n;
5850
5853
  }
5851
- function Gn(e, t) {
5854
+ function Wn(e, t) {
5852
5855
  t(e);
5853
5856
  for (let [n, r] of Object.entries(e)) {
5854
5857
  if ([
@@ -5861,12 +5864,12 @@ function Gn(e, t) {
5861
5864
  let e = r;
5862
5865
  if (Array.isArray(e)) for (let n of e) {
5863
5866
  let e = n;
5864
- e && typeof e.type == "string" && Gn(e, t);
5867
+ e && typeof e.type == "string" && Wn(e, t);
5865
5868
  }
5866
- else e && typeof e == "object" && typeof e.type == "string" && Gn(e, t);
5869
+ else e && typeof e == "object" && typeof e.type == "string" && Wn(e, t);
5867
5870
  }
5868
5871
  }
5869
- function Kn(e, t, n, r) {
5872
+ function Gn(e, t, n, r) {
5870
5873
  let i = e.indexOf(n), a = e.indexOf(r);
5871
5874
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
5872
5875
  let o = t.trim();
@@ -5874,44 +5877,44 @@ function Kn(e, t, n, r) {
5874
5877
  }
5875
5878
  //#endregion
5876
5879
  //#region src/actions/auditDependencies.ts
5877
- async function qn() {
5880
+ async function Kn() {
5878
5881
  try {
5879
- G("Audit Dependencies"), await In("1️⃣ Check using 'npm audit'", "npm", ["audit"]), K("Dependencies audited");
5882
+ K("Audit Dependencies"), await Fn("1️⃣ Check using 'npm audit'", "npm", ["audit"]), q("Dependencies audited");
5880
5883
  } catch (e) {
5881
5884
  console.error("❌ Error auditing dependencies", e), process.exit(1);
5882
5885
  }
5883
5886
  }
5884
5887
  //#endregion
5885
5888
  //#region src/actions/checkConfigFiles.ts
5886
- async function Jn() {
5889
+ async function qn() {
5887
5890
  try {
5888
- G("Check configuration files"), q("1️⃣ Check individual files");
5889
- let e = Hn((await U("config.json")).id), t = n.dirname(o(import.meta.url));
5890
- await J(t, ".editorconfig"), await Yn(e, t), await J(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_npm_published" : ".gitignore_default"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), await Xn(e, t), await J(t, "LICENSE"), await Zn(e, t), await J(t, "tsconfig.scripts.json"), await Qn(e, t), await $n(e, t), K("Configuration files checked");
5891
+ K("Check configuration files"), J("1️⃣ Check individual files");
5892
+ let e = Vn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5893
+ await Y(t, ".editorconfig"), await Jn(e, t), await Y(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_npm_published" : ".gitignore_default"]), await Y(t, ".markdownlint.json"), await Y(t, ".ncurc.json"), await Yn(e, t), await Y(t, "LICENSE"), await Xn(e, t), await Y(t, "tsconfig.scripts.json"), await Zn(e, t), await Qn(e, t), q("Configuration files checked");
5891
5894
  } catch (e) {
5892
5895
  console.error("❌ Error checking configuration files", e), process.exit(1);
5893
5896
  }
5894
5897
  }
5895
- async function Yn(e, t) {
5896
- ["development"].includes(e.typeId) ? console.info("ℹ️ File '.gitattributes' is UNIQUE to this project") : await J(t, ".gitattributes", [".gitattributes_default"]);
5898
+ async function Jn(e, t) {
5899
+ ["development"].includes(e.typeId) ? console.info("ℹ️ File '.gitattributes' is UNIQUE to this project") : await Y(t, ".gitattributes", [".gitattributes_default"]);
5897
5900
  }
5898
- async function Xn(e, t) {
5901
+ async function Yn(e, t) {
5899
5902
  [
5900
5903
  "app",
5901
5904
  "api",
5902
5905
  "development",
5903
5906
  "eslint"
5904
- ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await J(t, "eslint.config.js", ["eslint.config.default.js"]);
5907
+ ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await Y(t, "eslint.config.js", ["eslint.config.default.js"]);
5905
5908
  }
5906
- async function Zn(e, t) {
5909
+ async function Xn(e, t) {
5907
5910
  [
5908
5911
  "connector",
5909
5912
  "engine",
5910
5913
  "shared",
5911
5914
  "tool"
5912
- ].includes(e.typeId) ? await J(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project");
5915
+ ].includes(e.typeId) ? await Y(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project");
5913
5916
  }
5914
- async function Qn(e, t) {
5917
+ async function Zn(e, t) {
5915
5918
  if (["eslint", "kb"].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is NOT required by this project");
5916
5919
  else if ([
5917
5920
  "app",
@@ -5922,26 +5925,26 @@ async function Qn(e, t) {
5922
5925
  ].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project");
5923
5926
  else {
5924
5927
  let n;
5925
- n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await J(t, "vite.config.ts", n);
5928
+ n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await Y(t, "vite.config.ts", n);
5926
5929
  }
5927
5930
  }
5928
- async function $n(e, t) {
5931
+ async function Qn(e, t) {
5929
5932
  [
5930
5933
  "app",
5931
5934
  "api",
5932
5935
  "eslint",
5933
5936
  "kb"
5934
- ].includes(e.typeId) ? console.info("ℹ️ File 'vitest.config.ts' is NOT required by this project") : await J(t, "vitest.config.ts");
5937
+ ].includes(e.typeId) ? console.info("ℹ️ File 'vitest.config.ts' is NOT required by this project") : await Y(t, "vitest.config.ts");
5935
5938
  }
5936
- async function J(e, t, r = []) {
5939
+ async function Y(e, t, r = []) {
5937
5940
  let i = n.resolve(process.cwd(), t), a = r.length > 0 ? r : [t], o;
5938
5941
  try {
5939
- o = await W(i);
5942
+ o = await G(i);
5940
5943
  } catch (e) {
5941
5944
  if (e.code !== "ENOENT") throw e;
5942
5945
  }
5943
5946
  for (let r of a) {
5944
- let i = await W(n.resolve(e, `../${r}`));
5947
+ let i = await G(n.resolve(e, `../${r}`));
5945
5948
  if (o === i) {
5946
5949
  console.info(`ℹ️ File '${t.split("_", 1)[0] ?? t}' is the same as '${r}'`);
5947
5950
  return;
@@ -5951,12 +5954,12 @@ async function J(e, t, r = []) {
5951
5954
  }
5952
5955
  //#endregion
5953
5956
  //#region src/actions/checkDependencies.ts
5954
- async function er() {
5957
+ async function $n() {
5955
5958
  try {
5956
- G("Check Dependencies"), await In("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), q("2️⃣ Check using 'npm-check-updates'");
5959
+ K("Check Dependencies"), await Fn("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), J("2️⃣ Check using 'npm-check-updates'");
5957
5960
  let e = {};
5958
5961
  try {
5959
- e = await U(n.resolve(process.cwd(), ".ncurc.json"));
5962
+ e = await W(n.resolve(process.cwd(), ".ncurc.json"));
5960
5963
  } catch (e) {
5961
5964
  if (e.code !== "ENOENT") throw e;
5962
5965
  }
@@ -5966,85 +5969,85 @@ async function er() {
5966
5969
  dep: "dev,prod,peer,optional",
5967
5970
  install: "never",
5968
5971
  ...e
5969
- }), await In("3️⃣ Install updated dependencies", "npm", ["install", "--prefer-online"]), K("Dependencies checked");
5972
+ }), await Fn("3️⃣ Install updated dependencies", "npm", ["install", "--prefer-online"]), q("Dependencies checked");
5970
5973
  } catch (e) {
5971
5974
  console.error("❌ Error checking dependencies", e), process.exit(1);
5972
5975
  }
5973
5976
  }
5974
5977
  //#endregion
5975
5978
  //#region src/actions/documentBundleSizes.ts
5976
- var tr = "<!-- BUNDLE_START -->", nr = "<!-- BUNDLE_END -->", rr = "&nbsp;&nbsp;&nbsp;&nbsp;", ir = 20, ar = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._";
5977
- async function or(e) {
5979
+ var er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = "&nbsp;&nbsp;&nbsp;&nbsp;", rr = 20, ir = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._";
5980
+ async function ar(e) {
5978
5981
  try {
5979
- G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
5980
- let t = await U("./bundle-analysis-reports/sonda/index.json");
5981
- q("2️⃣ Insert table into 'README.md'");
5982
- let n = sr(t, e?.moduleLevel ?? !1);
5983
- await Vn("README.md", Kn(await W("./README.md"), `\n${ar}\n\n${n}\n\n(unassigned) = bytes Sonda can't trace to a specific source line (whitespace, stray keywords, bundler-injected region markers) — not actual missing/unknown code.`, tr, nr)), K("Bundle sizes documented");
5982
+ K("Document Bundle Sizes"), J("1️⃣ Read bundle analysis report");
5983
+ let t = await W("./bundle-analysis-reports/sonda/index.json");
5984
+ J("2️⃣ Insert table into 'README.md'");
5985
+ let n = or(t, e?.moduleLevel ?? !1);
5986
+ await Bn("README.md", Gn(await G("./README.md"), `\n${ir}\n\n${n}\n\n(unassigned) = bytes Sonda can't trace to a specific source line (whitespace, stray keywords, bundler-injected region markers) — not actual missing/unknown code.`, er, tr)), q("Bundle sizes documented");
5984
5987
  } catch (e) {
5985
5988
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
5986
5989
  }
5987
5990
  }
5988
- function sr(e, t) {
5989
- let n = pr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, _r(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
5991
+ function or(e, t) {
5992
+ let n = fr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, gr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
5990
5993
  for (let [e, o] of i) {
5991
- let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? cr(e, o, dr(i), r, t) : lr(e, o, i, r, t);
5994
+ let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? sr(e, o, ur(i), r, t) : cr(e, o, i, r, t);
5992
5995
  a.push(...s);
5993
5996
  }
5994
5997
  return a.join("\n");
5995
5998
  }
5996
- function cr(e, t, n, r, i) {
5999
+ function sr(e, t, n, r, i) {
5997
6000
  let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.uncompressed / r * 100 : 0;
5998
- if (s.size === 1) return [`| ${e} → ${a} → ${fr(s)} | ${vr(t)} · ${yr(c)} |`];
5999
- let l = [`| ${e} → ${a} | ${vr(t)} · ${yr(c)} |`];
6000
- return i || l.push(...ur(s, rr, r)), l;
6001
+ if (s.size === 1) return [`| ${e} → ${a} → ${dr(s)} | ${_r(t)} · ${vr(c)} |`];
6002
+ let l = [`| ${e} → ${a} | ${_r(t)} · ${vr(c)} |`];
6003
+ return i || l.push(...lr(s, nr, r)), l;
6001
6004
  }
6002
- function lr(e, t, n, r, i) {
6003
- let a = [`| ${e} | ${vr(t)} |`];
6005
+ function cr(e, t, n, r, i) {
6006
+ let a = [`| ${e} | ${_r(t)} |`];
6004
6007
  for (let [e, { sizes: t, files: o }] of n) {
6005
6008
  let n = r > 0 ? t.uncompressed / r * 100 : 0;
6006
6009
  if (o.size === 1) {
6007
- let t = fr(o);
6008
- a.push(`| ${rr}${e} → ${t} | ${yr(n)} |`);
6010
+ let t = dr(o);
6011
+ a.push(`| ${nr}${e} → ${t} | ${vr(n)} |`);
6009
6012
  continue;
6010
6013
  }
6011
- a.push(`| ${rr}${e} | ${yr(n)} |`), i || a.push(...ur(o, `${rr}${rr}`, r));
6014
+ a.push(`| ${nr}${e} | ${vr(n)} |`), i || a.push(...lr(o, `${nr}${nr}`, r));
6012
6015
  }
6013
6016
  return a;
6014
6017
  }
6015
- function ur(e, t, n) {
6016
- return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${yr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6018
+ function lr(e, t, n) {
6019
+ return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${vr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6017
6020
  }
6018
- function dr(e) {
6021
+ function ur(e) {
6019
6022
  let [t] = e;
6020
6023
  if (t === void 0) throw Error("Expected exactly one entry");
6021
6024
  return t;
6022
6025
  }
6023
- function fr(e) {
6026
+ function dr(e) {
6024
6027
  let [t] = e.keys();
6025
6028
  if (t === void 0) throw Error("Expected exactly one file");
6026
6029
  return t;
6027
6030
  }
6028
- function pr(e) {
6029
- let t = mr(e.dependencies), n = /* @__PURE__ */ new Map();
6031
+ function fr(e) {
6032
+ let t = pr(e.dependencies), n = /* @__PURE__ */ new Map();
6030
6033
  for (let r of e.resources) {
6031
6034
  if (r.kind !== "chunk" || !r.parent) continue;
6032
- let { group: e, file: i } = hr(r.name, t), a = _r(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6035
+ let { group: e, file: i } = mr(r.name, t), a = gr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6033
6036
  n.set(r.parent, o);
6034
6037
  let s = o.get(e) ?? {
6035
- sizes: br(),
6038
+ sizes: yr(),
6036
6039
  files: /* @__PURE__ */ new Map()
6037
6040
  };
6038
- o.set(e, s), xr(s.sizes, a);
6039
- let c = s.files.get(i) ?? br();
6040
- s.files.set(i, c), xr(c, a);
6041
+ o.set(e, s), br(s.sizes, a);
6042
+ let c = s.files.get(i) ?? yr();
6043
+ s.files.set(i, c), br(c, a);
6041
6044
  }
6042
6045
  return n;
6043
6046
  }
6044
- function mr(e) {
6047
+ function pr(e) {
6045
6048
  return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
6046
6049
  }
6047
- function hr(e, t) {
6050
+ function mr(e, t) {
6048
6051
  let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
6049
6052
  if (n) {
6050
6053
  let [t, r] = n;
@@ -6061,53 +6064,53 @@ function hr(e, t) {
6061
6064
  file: e.slice(1)
6062
6065
  } : e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? {
6063
6066
  group: "wasm",
6064
- file: gr(e)
6067
+ file: hr(e)
6065
6068
  } : {
6066
6069
  group: "src",
6067
- file: gr(e)
6070
+ file: hr(e)
6068
6071
  };
6069
6072
  }
6070
- function gr(e) {
6073
+ function hr(e) {
6071
6074
  return e.split("/").at(-1) ?? e;
6072
6075
  }
6073
- function _r(e) {
6076
+ function gr(e) {
6074
6077
  return {
6075
6078
  uncompressed: e.uncompressed,
6076
6079
  brotli: e.brotli ?? 0
6077
6080
  };
6078
6081
  }
6079
- function vr(e) {
6080
- return `${Sr(e.uncompressed)} · brotli ${Sr(e.brotli)}`;
6082
+ function _r(e) {
6083
+ return `${xr(e.uncompressed)} · brotli ${xr(e.brotli)}`;
6081
6084
  }
6082
- function yr(e) {
6083
- let t = Math.round(e / 100 * ir);
6084
- return `\`${"█".repeat(t)}${"░".repeat(ir - t)}\` ${e.toFixed(1)}%`;
6085
+ function vr(e) {
6086
+ let t = Math.round(e / 100 * rr);
6087
+ return `\`${"█".repeat(t)}${"░".repeat(rr - t)}\` ${e.toFixed(1)}%`;
6085
6088
  }
6086
- function br() {
6089
+ function yr() {
6087
6090
  return {
6088
6091
  uncompressed: 0,
6089
6092
  brotli: 0
6090
6093
  };
6091
6094
  }
6092
- function xr(e, t) {
6095
+ function br(e, t) {
6093
6096
  e.uncompressed += t.uncompressed, e.brotli += t.brotli;
6094
6097
  }
6095
- function Sr(e) {
6098
+ function xr(e) {
6096
6099
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6097
6100
  }
6098
6101
  //#endregion
6099
6102
  //#region src/actions/documentDependencies.ts
6100
- var Cr = "<!-- DEPENDENCY_LICENSES_START -->", wr = "<!-- DEPENDENCY_LICENSES_END -->", Tr = "<!-- DEPENDENCY_TREE_START -->", Er = "<!-- DEPENDENCY_TREE_END -->", Dr = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are simply mature and stable, requiring no active development.";
6101
- async function Or(e = "MIT") {
6103
+ var Sr = "<!-- DEPENDENCY_LICENSES_START -->", Cr = "<!-- DEPENDENCY_LICENSES_END -->", wr = "<!-- DEPENDENCY_TREE_START -->", Tr = "<!-- DEPENDENCY_TREE_END -->", Er = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are simply mature and stable, requiring no active development.";
6104
+ async function Dr(e = "MIT") {
6102
6105
  try {
6103
- G("Document Dependencies");
6104
- let t = await U("package.json");
6106
+ K("Document Dependencies");
6107
+ let t = await W("package.json");
6105
6108
  if (t.name === "@dpuse/dpuse-development" || t.name === "@dpuse/eslint-config-dpuse") {
6106
- await kr(t.name), K("Dependencies documented");
6109
+ await Or(t.name), q("Dependencies documented");
6107
6110
  return;
6108
6111
  }
6109
- await Nn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
6110
- c({
6112
+ await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), J("2️⃣ Identify production licenses"), await new Promise((n, r) => {
6113
+ let i = {
6111
6114
  start: process.cwd(),
6112
6115
  production: !0,
6113
6116
  json: !0,
@@ -6117,46 +6120,47 @@ async function Or(e = "MIT") {
6117
6120
  onlyAllow: e,
6118
6121
  excludePackages: t.name ?? "",
6119
6122
  out: "licenses/licenses.json"
6120
- }, (e) => {
6123
+ };
6124
+ c(i, (e) => {
6121
6125
  e == null ? n() : r(e);
6122
6126
  });
6123
- }), await Ln("3️⃣ Identify transitive dependencies", "npm", [
6127
+ }), await In("3️⃣ Identify transitive dependencies", "npm", [
6124
6128
  "ls",
6125
6129
  "--all",
6126
6130
  "--json",
6127
6131
  "--omit=dev"
6128
- ], "licenses/licenseTree.json"), await Ar("4️⃣ ", e), K("Dependencies documented");
6132
+ ], "licenses/licenseTree.json"), await kr("4️⃣ ", e), q("Dependencies documented");
6129
6133
  } catch (e) {
6130
6134
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6131
6135
  }
6132
6136
  }
6133
- async function kr(e) {
6134
- q(`1️⃣ Skip: ${e} is a development-only tool and is never part of a production release.`);
6137
+ async function Or(e) {
6138
+ J(`1️⃣ Skip: ${e} is a development-only tool and is never part of a production release.`);
6135
6139
  let t = `> [!WARNING]\n> Dependency licenses are not documented here: ${e} is a development-only tool and is never part of a production release.`;
6136
- await Vn("README.md", Kn(Kn(await W("./README.md"), t, Cr, wr), "", Tr, Er));
6140
+ await Bn("README.md", Gn(Gn(await G("./README.md"), t, Sr, Cr), "", wr, Tr));
6137
6141
  }
6138
- async function Ar(e, t) {
6139
- q(`${e} Insert licenses into 'README.md'`);
6140
- let [n, r] = await Promise.all([U("licenses/licenses.json"), U("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6141
- for (let [e, t] of Object.entries(n)) i.set(e, Nr(e, t));
6142
+ async function kr(e, t) {
6143
+ J(`${e} Insert licenses into 'README.md'`);
6144
+ let [n, r] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6145
+ for (let [e, t] of Object.entries(n)) i.set(e, Mr(e, t));
6142
6146
  await Promise.all(i.values().map(async (e) => {
6143
- let t = await Pr(e.name, e.installedVersion);
6147
+ let t = await Nr(e.name, e.installedVersion);
6144
6148
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6145
6149
  }));
6146
- let a = `${jr(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6147
- for (let e of i.values()) a += Fr(e);
6150
+ let a = `${Ar(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6151
+ for (let e of i.values()) a += Pr(e);
6148
6152
  let o = [];
6149
- r.dependencies != null && Ir(r.dependencies, i, o, 0);
6150
- let s = `${Dr}\n\n${o.join("\n")}`;
6151
- await Vn("README.md", Kn(Kn(await W("./README.md"), a, Cr, wr), s, Tr, Er));
6153
+ r.dependencies != null && Fr(r.dependencies, i, o, 0);
6154
+ let s = `${Er}\n\n${o.join("\n")}`;
6155
+ await Bn("README.md", Gn(Gn(await G("./README.md"), a, Sr, Cr), s, wr, Tr));
6152
6156
  }
6153
- function jr(e) {
6154
- return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Mr(e.split(";"))} — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.`;
6157
+ function Ar(e) {
6158
+ return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${jr(e.split(";"))} — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.`;
6155
6159
  }
6156
- function Mr(e) {
6160
+ function jr(e) {
6157
6161
  return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
6158
6162
  }
6159
- function Nr(e, t) {
6163
+ function Mr(e, t) {
6160
6164
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6161
6165
  return {
6162
6166
  name: r,
@@ -6170,7 +6174,7 @@ function Nr(e, t) {
6170
6174
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6171
6175
  };
6172
6176
  }
6173
- async function Pr(e, t) {
6177
+ async function Nr(e, t) {
6174
6178
  try {
6175
6179
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6176
6180
  if (n.ok) {
@@ -6188,25 +6192,25 @@ async function Pr(e, t) {
6188
6192
  publishedDate: ""
6189
6193
  };
6190
6194
  }
6191
- function Fr(e) {
6195
+ function Pr(e) {
6192
6196
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6193
6197
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6194
6198
  }
6195
- function Ir(e, t, n, r) {
6199
+ function Fr(e, t, n, r) {
6196
6200
  let i = " ".repeat(r);
6197
6201
  for (let [a, o] of Object.entries(e)) {
6198
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Lr(s);
6199
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Ir(o.dependencies, t, n, r + 1);
6202
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Ir(s);
6203
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Fr(o.dependencies, t, n, r + 1);
6200
6204
  }
6201
6205
  }
6202
- function Lr(e) {
6206
+ function Ir(e) {
6203
6207
  if (e == null) return "";
6204
- let t = e.publishedDate ? Rr(e.publishedDate.split("T", 1)[0]) : "";
6205
- if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
6206
- let n = e.latestPublishedDate ? Rr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6208
+ let t = e.publishedDate ? Lr(e.publishedDate.split("T", 1)[0]) : "";
6209
+ if (e.latestVersion === "" || e.latestVersion === e.installedVersion) return t === "" ? "" : ` — ${t}`;
6210
+ let n = e.latestPublishedDate ? Lr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6207
6211
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6208
6212
  }
6209
- function Rr(e) {
6213
+ function Lr(e) {
6210
6214
  if (e == null || e === "") return "n/a";
6211
6215
  let t = e.split("T", 1)[0];
6212
6216
  if (t == null || t === "") return "n/a";
@@ -6215,17 +6219,17 @@ function Rr(e) {
6215
6219
  }
6216
6220
  //#endregion
6217
6221
  //#region src/actions/documentGovernance.ts
6218
- var zr = "<!-- GOVERNANCE_START -->", Br = "<!-- GOVERNANCE_END -->";
6219
- async function Vr() {
6222
+ var Rr = "<!-- GOVERNANCE_START -->", zr = "<!-- GOVERNANCE_END -->";
6223
+ async function Br() {
6220
6224
  try {
6221
- G("Document Governance"), q("1️⃣ Insert governance content into 'README.md'");
6222
- let [e, t] = await Promise.all([U("package.json"), U("config.json")]), { owner: n, repo: r } = Hr(e), i = Gr(n, r, Ur(e), Wr(t.firstCreatedAt));
6223
- await Vn("README.md", Kn(await W("./README.md"), i, zr, Br)), K("Governance documented");
6225
+ K("Document Governance"), J("1️⃣ Insert governance content into 'README.md'");
6226
+ let [e, t] = await Promise.all([W("package.json"), W("config.json")]), { owner: n, repo: r } = Vr(e), i = Wr(n, r, Hr(e), Ur(t.firstCreatedAt));
6227
+ await Bn("README.md", Gn(await G("./README.md"), i, Rr, zr)), q("Governance documented");
6224
6228
  } catch (e) {
6225
6229
  console.error("❌ Error documenting governance", e), process.exit(1);
6226
6230
  }
6227
6231
  }
6228
- function Hr(e) {
6232
+ function Vr(e) {
6229
6233
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6230
6234
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document governance.");
6231
6235
  let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
@@ -6235,18 +6239,18 @@ function Hr(e) {
6235
6239
  repo: i[2]
6236
6240
  };
6237
6241
  }
6238
- function Ur(e) {
6242
+ function Hr(e) {
6239
6243
  let t = e.author, n = typeof t == "string" ? t : t?.name;
6240
6244
  if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
6241
6245
  return n.replace(/\s*<[^>]*>\s*/, "").trim();
6242
6246
  }
6243
- function Wr(e) {
6247
+ function Ur(e) {
6244
6248
  let t = (/* @__PURE__ */ new Date()).getFullYear();
6245
6249
  if (e == null) return String(t);
6246
6250
  let n = new Date(e).getFullYear();
6247
6251
  return n === t ? String(t) : `${String(n)}-present`;
6248
6252
  }
6249
- function Gr(e, t, n, r) {
6253
+ function Wr(e, t, n, r) {
6250
6254
  let i = `https://github.com/${e}/${t}`, a = `github.com/${e}/${t}`;
6251
6255
  return `## Security & Quality
6252
6256
 
@@ -6292,44 +6296,44 @@ This project is licensed under the MIT License, permitting free use, modificatio
6292
6296
  [MIT](./LICENSE) © ${r}-present ${n}`;
6293
6297
  }
6294
6298
  //#endregion
6295
- //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DzuoA1f0.js
6296
- var Kr, qr = {
6299
+ //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-CqVgZGPq.js
6300
+ var Gr, Kr = {
6297
6301
  lang: void 0,
6298
6302
  message: void 0,
6299
6303
  abortEarly: void 0,
6300
6304
  abortPipeEarly: void 0
6301
6305
  };
6302
6306
  /* @__NO_SIDE_EFFECTS__ */
6303
- function Jr(e) {
6304
- return !e && !Kr ? qr : {
6305
- lang: e?.lang ?? Kr?.lang,
6307
+ function qr(e) {
6308
+ return !e && !Gr ? Kr : {
6309
+ lang: e?.lang ?? Gr?.lang,
6306
6310
  message: e?.message,
6307
- abortEarly: e?.abortEarly ?? Kr?.abortEarly,
6308
- abortPipeEarly: e?.abortPipeEarly ?? Kr?.abortPipeEarly
6311
+ abortEarly: e?.abortEarly ?? Gr?.abortEarly,
6312
+ abortPipeEarly: e?.abortPipeEarly ?? Gr?.abortPipeEarly
6309
6313
  };
6310
6314
  }
6311
- var Yr;
6315
+ var Jr;
6312
6316
  /* @__NO_SIDE_EFFECTS__ */
6313
- function Xr(e) {
6314
- return Yr?.get(e);
6317
+ function Yr(e) {
6318
+ return Jr?.get(e);
6315
6319
  }
6316
- var Zr;
6320
+ var Xr;
6317
6321
  /* @__NO_SIDE_EFFECTS__ */
6318
- function Qr(e) {
6319
- return Zr?.get(e);
6322
+ function Zr(e) {
6323
+ return Xr?.get(e);
6320
6324
  }
6321
- var $r;
6325
+ var Qr;
6322
6326
  /* @__NO_SIDE_EFFECTS__ */
6323
- function ei(e, t) {
6324
- return $r?.get(e)?.get(t);
6327
+ function $r(e, t) {
6328
+ return Qr?.get(e)?.get(t);
6325
6329
  }
6326
6330
  /* @__NO_SIDE_EFFECTS__ */
6327
- function ti(e) {
6331
+ function ei(e) {
6328
6332
  let t = typeof e;
6329
6333
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6330
6334
  }
6331
- function ni(e, t, n, r, i) {
6332
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ti(a), c = {
6335
+ function ti(e, t, n, r, i) {
6336
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ei(a), c = {
6333
6337
  kind: e.kind,
6334
6338
  type: e.type,
6335
6339
  input: a,
@@ -6342,50 +6346,50 @@ function ni(e, t, n, r, i) {
6342
6346
  lang: r.lang,
6343
6347
  abortEarly: r.abortEarly,
6344
6348
  abortPipeEarly: r.abortPipeEarly
6345
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ ei(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Qr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Xr(c.lang);
6349
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ $r(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Zr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Yr(c.lang);
6346
6350
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6347
6351
  }
6348
- var ri = /* @__PURE__ */ new WeakMap();
6352
+ var ni = /* @__PURE__ */ new WeakMap();
6349
6353
  /* @__NO_SIDE_EFFECTS__ */
6350
- function Y(e) {
6351
- let t = ri.get(e);
6354
+ function X(e) {
6355
+ let t = ni.get(e);
6352
6356
  return t || (t = {
6353
6357
  version: 1,
6354
6358
  vendor: "valibot",
6355
6359
  validate(t) {
6356
- return e["~run"]({ value: t }, /* @__PURE__ */ Jr());
6360
+ return e["~run"]({ value: t }, /* @__PURE__ */ qr());
6357
6361
  }
6358
- }, ri.set(e, t)), t;
6362
+ }, ni.set(e, t)), t;
6359
6363
  }
6360
6364
  /* @__NO_SIDE_EFFECTS__ */
6361
- function ii(e, t) {
6365
+ function ri(e, t) {
6362
6366
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6363
6367
  }
6364
6368
  /* @__NO_SIDE_EFFECTS__ */
6365
- function ai(e, t) {
6369
+ function ii(e, t) {
6366
6370
  let n = [...new Set(e)];
6367
6371
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6368
6372
  }
6369
6373
  /* @__NO_SIDE_EFFECTS__ */
6370
- function oi(e, t, n) {
6374
+ function ai(e, t, n) {
6371
6375
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6372
6376
  }
6373
6377
  /* @__NO_SIDE_EFFECTS__ */
6374
- function si(e, t, n) {
6378
+ function oi(e, t, n) {
6375
6379
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6376
6380
  }
6377
6381
  /* @__NO_SIDE_EFFECTS__ */
6378
- function ci(e, t) {
6382
+ function si(e, t) {
6379
6383
  return {
6380
6384
  kind: "schema",
6381
6385
  type: "array",
6382
- reference: ci,
6386
+ reference: si,
6383
6387
  expects: "Array",
6384
6388
  async: !1,
6385
6389
  item: e,
6386
6390
  message: t,
6387
6391
  get "~standard"() {
6388
- return /* @__PURE__ */ Y(this);
6392
+ return /* @__PURE__ */ X(this);
6389
6393
  },
6390
6394
  "~run"(e, t) {
6391
6395
  let n = e.value;
@@ -6409,93 +6413,93 @@ function ci(e, t) {
6409
6413
  }
6410
6414
  a.typed || (e.typed = !1), e.value.push(a.value);
6411
6415
  }
6412
- } else ni(this, "type", e, t);
6416
+ } else ti(this, "type", e, t);
6413
6417
  return e;
6414
6418
  }
6415
6419
  };
6416
6420
  }
6417
6421
  /* @__NO_SIDE_EFFECTS__ */
6418
- function li(e) {
6422
+ function ci(e) {
6419
6423
  return {
6420
6424
  kind: "schema",
6421
6425
  type: "boolean",
6422
- reference: li,
6426
+ reference: ci,
6423
6427
  expects: "boolean",
6424
6428
  async: !1,
6425
6429
  message: e,
6426
6430
  get "~standard"() {
6427
- return /* @__PURE__ */ Y(this);
6431
+ return /* @__PURE__ */ X(this);
6428
6432
  },
6429
6433
  "~run"(e, t) {
6430
- return typeof e.value == "boolean" ? e.typed = !0 : ni(this, "type", e, t), e;
6434
+ return typeof e.value == "boolean" ? e.typed = !0 : ti(this, "type", e, t), e;
6431
6435
  }
6432
6436
  };
6433
6437
  }
6434
6438
  /* @__NO_SIDE_EFFECTS__ */
6435
- function ui(e, t) {
6439
+ function li(e, t) {
6436
6440
  return {
6437
6441
  kind: "schema",
6438
6442
  type: "literal",
6439
- reference: ui,
6440
- expects: /* @__PURE__ */ ti(e),
6443
+ reference: li,
6444
+ expects: /* @__PURE__ */ ei(e),
6441
6445
  async: !1,
6442
6446
  literal: e,
6443
6447
  message: t,
6444
6448
  get "~standard"() {
6445
- return /* @__PURE__ */ Y(this);
6449
+ return /* @__PURE__ */ X(this);
6446
6450
  },
6447
6451
  "~run"(e, t) {
6448
- return e.value === this.literal ? e.typed = !0 : ni(this, "type", e, t), e;
6452
+ return e.value === this.literal ? e.typed = !0 : ti(this, "type", e, t), e;
6449
6453
  }
6450
6454
  };
6451
6455
  }
6452
6456
  /* @__NO_SIDE_EFFECTS__ */
6453
- function X(e, t) {
6457
+ function Z(e, t) {
6454
6458
  return {
6455
6459
  kind: "schema",
6456
6460
  type: "nullable",
6457
- reference: X,
6461
+ reference: Z,
6458
6462
  expects: `(${e.expects} | null)`,
6459
6463
  async: !1,
6460
6464
  wrapped: e,
6461
6465
  default: t,
6462
6466
  get "~standard"() {
6463
- return /* @__PURE__ */ Y(this);
6467
+ return /* @__PURE__ */ X(this);
6464
6468
  },
6465
6469
  "~run"(e, t) {
6466
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ si(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6470
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ oi(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6467
6471
  }
6468
6472
  };
6469
6473
  }
6470
6474
  /* @__NO_SIDE_EFFECTS__ */
6471
- function di(e) {
6475
+ function ui(e) {
6472
6476
  return {
6473
6477
  kind: "schema",
6474
6478
  type: "number",
6475
- reference: di,
6479
+ reference: ui,
6476
6480
  expects: "number",
6477
6481
  async: !1,
6478
6482
  message: e,
6479
6483
  get "~standard"() {
6480
- return /* @__PURE__ */ Y(this);
6484
+ return /* @__PURE__ */ X(this);
6481
6485
  },
6482
6486
  "~run"(e, t) {
6483
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : ni(this, "type", e, t), e;
6487
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : ti(this, "type", e, t), e;
6484
6488
  }
6485
6489
  };
6486
6490
  }
6487
6491
  /* @__NO_SIDE_EFFECTS__ */
6488
- function Z(e, t) {
6492
+ function Q(e, t) {
6489
6493
  return {
6490
6494
  kind: "schema",
6491
6495
  type: "object",
6492
- reference: Z,
6496
+ reference: Q,
6493
6497
  expects: "Object",
6494
6498
  async: !1,
6495
6499
  entries: e,
6496
6500
  message: t,
6497
6501
  get "~standard"() {
6498
- return /* @__PURE__ */ Y(this);
6502
+ return /* @__PURE__ */ X(this);
6499
6503
  },
6500
6504
  "~run"(e, t) {
6501
6505
  let n = e.value;
@@ -6504,7 +6508,7 @@ function Z(e, t) {
6504
6508
  for (let r in this.entries) {
6505
6509
  let i = this.entries[r];
6506
6510
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6507
- let a = r in n ? n[r] : /* @__PURE__ */ si(i), o = i["~run"]({ value: a }, t);
6511
+ let a = r in n ? n[r] : /* @__PURE__ */ oi(i), o = i["~run"]({ value: a }, t);
6508
6512
  if (o.issues) {
6509
6513
  let i = {
6510
6514
  type: "object",
@@ -6520,8 +6524,8 @@ function Z(e, t) {
6520
6524
  }
6521
6525
  }
6522
6526
  o.typed || (e.typed = !1), e.value[r] = o.value;
6523
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ oi(i);
6524
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (ni(this, "key", e, t, {
6527
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ai(i);
6528
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (ti(this, "key", e, t, {
6525
6529
  input: void 0,
6526
6530
  expected: `"${r}"`,
6527
6531
  path: [{
@@ -6533,48 +6537,48 @@ function Z(e, t) {
6533
6537
  }]
6534
6538
  }), t.abortEarly)) break;
6535
6539
  }
6536
- } else ni(this, "type", e, t);
6540
+ } else ti(this, "type", e, t);
6537
6541
  return e;
6538
6542
  }
6539
6543
  };
6540
6544
  }
6541
6545
  /* @__NO_SIDE_EFFECTS__ */
6542
- function fi(e, t) {
6546
+ function di(e, t) {
6543
6547
  return {
6544
6548
  kind: "schema",
6545
6549
  type: "optional",
6546
- reference: fi,
6550
+ reference: di,
6547
6551
  expects: `(${e.expects} | undefined)`,
6548
6552
  async: !1,
6549
6553
  wrapped: e,
6550
6554
  default: t,
6551
6555
  get "~standard"() {
6552
- return /* @__PURE__ */ Y(this);
6556
+ return /* @__PURE__ */ X(this);
6553
6557
  },
6554
6558
  "~run"(e, t) {
6555
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ si(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6559
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ oi(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6556
6560
  }
6557
6561
  };
6558
6562
  }
6559
6563
  /* @__NO_SIDE_EFFECTS__ */
6560
- function pi(e, t, n) {
6564
+ function fi(e, t, n) {
6561
6565
  return {
6562
6566
  kind: "schema",
6563
6567
  type: "record",
6564
- reference: pi,
6568
+ reference: fi,
6565
6569
  expects: "Object",
6566
6570
  async: !1,
6567
6571
  key: e,
6568
6572
  value: t,
6569
6573
  message: n,
6570
6574
  get "~standard"() {
6571
- return /* @__PURE__ */ Y(this);
6575
+ return /* @__PURE__ */ X(this);
6572
6576
  },
6573
6577
  "~run"(e, t) {
6574
6578
  let n = e.value;
6575
6579
  if (n && typeof n == "object") {
6576
6580
  e.typed = !0, e.value = {};
6577
- for (let r in n) if (/* @__PURE__ */ ii(n, r)) {
6581
+ for (let r in n) if (/* @__PURE__ */ ri(n, r)) {
6578
6582
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6579
6583
  if (a.issues) {
6580
6584
  let o = {
@@ -6607,47 +6611,47 @@ function pi(e, t, n) {
6607
6611
  }
6608
6612
  (!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
6609
6613
  }
6610
- } else ni(this, "type", e, t);
6614
+ } else ti(this, "type", e, t);
6611
6615
  return e;
6612
6616
  }
6613
6617
  };
6614
6618
  }
6615
6619
  /* @__NO_SIDE_EFFECTS__ */
6616
- function Q(e) {
6620
+ function $(e) {
6617
6621
  return {
6618
6622
  kind: "schema",
6619
6623
  type: "string",
6620
- reference: Q,
6624
+ reference: $,
6621
6625
  expects: "string",
6622
6626
  async: !1,
6623
6627
  message: e,
6624
6628
  get "~standard"() {
6625
- return /* @__PURE__ */ Y(this);
6629
+ return /* @__PURE__ */ X(this);
6626
6630
  },
6627
6631
  "~run"(e, t) {
6628
- return typeof e.value == "string" ? e.typed = !0 : ni(this, "type", e, t), e;
6632
+ return typeof e.value == "string" ? e.typed = !0 : ti(this, "type", e, t), e;
6629
6633
  }
6630
6634
  };
6631
6635
  }
6632
6636
  /* @__NO_SIDE_EFFECTS__ */
6633
- function mi(e) {
6637
+ function pi(e) {
6634
6638
  let t;
6635
6639
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6636
6640
  else t = n.issues;
6637
6641
  return t;
6638
6642
  }
6639
6643
  /* @__NO_SIDE_EFFECTS__ */
6640
- function hi(e, t) {
6644
+ function mi(e, t) {
6641
6645
  return {
6642
6646
  kind: "schema",
6643
6647
  type: "union",
6644
- reference: hi,
6645
- expects: /* @__PURE__ */ ai(e.map((e) => e.expects), "|"),
6648
+ reference: mi,
6649
+ expects: /* @__PURE__ */ ii(e.map((e) => e.expects), "|"),
6646
6650
  async: !1,
6647
6651
  options: e,
6648
6652
  message: t,
6649
6653
  get "~standard"() {
6650
- return /* @__PURE__ */ Y(this);
6654
+ return /* @__PURE__ */ X(this);
6651
6655
  },
6652
6656
  "~run"(e, t) {
6653
6657
  let n, r, i;
@@ -6663,24 +6667,23 @@ function hi(e, t) {
6663
6667
  if (n) return n;
6664
6668
  if (r) {
6665
6669
  if (r.length === 1) return r[0];
6666
- ni(this, "type", e, t, { issues: /* @__PURE__ */ mi(r) }), e.typed = !0;
6670
+ ti(this, "type", e, t, { issues: /* @__PURE__ */ pi(r) }), e.typed = !0;
6667
6671
  } else if (i?.length === 1) return i[0];
6668
- else ni(this, "type", e, t, { issues: /* @__PURE__ */ mi(i) });
6672
+ else ti(this, "type", e, t, { issues: /* @__PURE__ */ pi(i) });
6669
6673
  return e;
6670
6674
  }
6671
6675
  };
6672
6676
  }
6673
- var $ = (e) => /* @__PURE__ */ hi(e.map((e) => /* @__PURE__ */ ui(e))), gi = /* @__PURE__ */ Z({
6674
- en: /* @__PURE__ */ Q(),
6675
- es: /* @__PURE__ */ Q()
6676
- }), _i = /* @__PURE__ */ Z({
6677
- en: /* @__PURE__ */ fi(/* @__PURE__ */ ci(/* @__PURE__ */ Q())),
6678
- es: /* @__PURE__ */ fi(/* @__PURE__ */ ci(/* @__PURE__ */ Q()))
6679
- }), vi = /* @__PURE__ */ Z({
6680
- en: /* @__PURE__ */ fi(/* @__PURE__ */ Q()),
6681
- es: /* @__PURE__ */ fi(/* @__PURE__ */ Q())
6682
- });
6683
- $([
6677
+ var hi = (e) => /* @__PURE__ */ mi(e.map((e) => /* @__PURE__ */ li(e))), gi = /* @__PURE__ */ Q({
6678
+ en: /* @__PURE__ */ $(),
6679
+ es: /* @__PURE__ */ $()
6680
+ }), _i = /* @__PURE__ */ Q({
6681
+ en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6682
+ es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6683
+ }), vi = /* @__PURE__ */ Q({
6684
+ en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6685
+ es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6686
+ }), yi = hi([
6684
6687
  "app",
6685
6688
  "connection",
6686
6689
  "connector",
@@ -6704,13 +6707,12 @@ $([
6704
6707
  "presenter",
6705
6708
  "presenterPresentation",
6706
6709
  "tool"
6707
- ]);
6708
- var yi = $([
6710
+ ]), bi = hi([
6709
6711
  "amber",
6710
6712
  "green",
6711
6713
  "red",
6712
6714
  "other"
6713
- ]), bi = $([
6715
+ ]), xi = hi([
6714
6716
  "alpha",
6715
6717
  "beta",
6716
6718
  "generalAvailability",
@@ -6720,47 +6722,45 @@ var yi = $([
6720
6722
  "releaseCandidate",
6721
6723
  "unavailable",
6722
6724
  "underReview"
6723
- ]), xi = /* @__PURE__ */ Z({
6724
- color: yi,
6725
- label: /* @__PURE__ */ Q()
6726
- }), Si = /* @__PURE__ */ Z({
6727
- id: /* @__PURE__ */ Q(),
6728
- label: vi,
6729
- description: _i,
6730
- icon: /* @__PURE__ */ X(/* @__PURE__ */ Q()),
6731
- iconDark: /* @__PURE__ */ X(/* @__PURE__ */ Q()),
6732
- order: /* @__PURE__ */ di(),
6733
- path: /* @__PURE__ */ Q()
6725
+ ]), Si = /* @__PURE__ */ Q({
6726
+ color: bi,
6727
+ label: /* @__PURE__ */ $()
6734
6728
  }), Ci = {
6735
- id: /* @__PURE__ */ Q(),
6729
+ id: /* @__PURE__ */ $(),
6736
6730
  label: vi,
6737
6731
  description: _i,
6738
- firstCreatedAt: /* @__PURE__ */ X(/* @__PURE__ */ di()),
6739
- icon: /* @__PURE__ */ X(/* @__PURE__ */ Q()),
6740
- iconDark: /* @__PURE__ */ X(/* @__PURE__ */ Q()),
6741
- lastUpdatedAt: /* @__PURE__ */ X(/* @__PURE__ */ di()),
6742
- status: /* @__PURE__ */ X(xi),
6743
- statusId: /* @__PURE__ */ X(bi)
6732
+ icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6733
+ iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6734
+ typeId: yi
6735
+ }, wi = /* @__PURE__ */ Q({
6736
+ ...Ci,
6737
+ order: /* @__PURE__ */ ui(),
6738
+ path: /* @__PURE__ */ $()
6739
+ }), Ti = {
6740
+ ...Ci,
6741
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6742
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6743
+ status: /* @__PURE__ */ Z(Si),
6744
+ statusId: /* @__PURE__ */ Z(xi)
6744
6745
  };
6745
- ({ ...Ci }), $([
6746
+ ({ ...Ti }), hi([
6746
6747
  "app",
6747
6748
  "engine",
6748
6749
  "connector",
6749
- "context",
6750
6750
  "cookbook",
6751
6751
  "presenter",
6752
6752
  "tool"
6753
6753
  ]);
6754
6754
  //#endregion
6755
- //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-COF8ocp_.js
6756
- var wi = {
6757
- ...Ci,
6758
- version: /* @__PURE__ */ Q()
6755
+ //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-vxTWrD6x.js
6756
+ var Ei = {
6757
+ ...Ti,
6758
+ version: /* @__PURE__ */ $()
6759
6759
  };
6760
- ({ ...wi });
6760
+ ({ ...Ei });
6761
6761
  //#endregion
6762
6762
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6763
- var Ti = $([
6763
+ var Di = hi([
6764
6764
  "abortOperation",
6765
6765
  "auditObjectContent",
6766
6766
  "createObject",
@@ -6776,41 +6776,41 @@ var Ti = $([
6776
6776
  "retrieveChunks",
6777
6777
  "retrieveRecords",
6778
6778
  "upsertRecords"
6779
- ]), Ei = $([
6779
+ ]), Oi = hi([
6780
6780
  "application",
6781
6781
  "curatedDataset",
6782
6782
  "database",
6783
6783
  "fileStore"
6784
- ]), Di = /* @__PURE__ */ Z({ label: gi }), Oi = $([
6784
+ ]), ki = /* @__PURE__ */ Q({ label: gi }), Ai = hi([
6785
6785
  "bidirectional",
6786
6786
  "destination",
6787
6787
  "source"
6788
- ]), ki = /* @__PURE__ */ Z({ label: gi }), Ai = /* @__PURE__ */ Z({
6789
- authMethodId: $([
6788
+ ]), ji = /* @__PURE__ */ Q({ label: gi }), Mi = /* @__PURE__ */ Q({
6789
+ authMethodId: hi([
6790
6790
  "apiKey",
6791
6791
  "disabled",
6792
6792
  "oAuth2",
6793
6793
  "none"
6794
6794
  ]),
6795
- activeConnectionCount: /* @__PURE__ */ fi(/* @__PURE__ */ di()),
6796
- canDescribe: /* @__PURE__ */ fi(/* @__PURE__ */ li()),
6797
- id: /* @__PURE__ */ fi(/* @__PURE__ */ Q()),
6798
- label: /* @__PURE__ */ fi(gi),
6799
- maxConnectionCount: /* @__PURE__ */ X(/* @__PURE__ */ di()),
6800
- params: /* @__PURE__ */ fi(/* @__PURE__ */ ci(/* @__PURE__ */ pi(/* @__PURE__ */ Q(), /* @__PURE__ */ Q())))
6801
- }), ji = /* @__PURE__ */ Z({
6802
- typeId: /* @__PURE__ */ ui("connector"),
6803
- ...wi,
6804
- actionNames: /* @__PURE__ */ ci(Ti),
6805
- category: /* @__PURE__ */ X(Di),
6806
- categoryId: Ei,
6807
- implementations: /* @__PURE__ */ pi(/* @__PURE__ */ Q(), Ai),
6808
- usage: /* @__PURE__ */ X(ki),
6809
- usageId: /* @__PURE__ */ X(Oi),
6810
- vendorAccountURL: /* @__PURE__ */ X(/* @__PURE__ */ Q()),
6811
- vendorDocumentationURL: /* @__PURE__ */ X(/* @__PURE__ */ Q()),
6812
- vendorHomeURL: /* @__PURE__ */ X(/* @__PURE__ */ Q())
6813
- }), Mi = {
6795
+ activeConnectionCount: /* @__PURE__ */ di(/* @__PURE__ */ ui()),
6796
+ canDescribe: /* @__PURE__ */ di(/* @__PURE__ */ ci()),
6797
+ id: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6798
+ label: /* @__PURE__ */ di(gi),
6799
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6800
+ params: /* @__PURE__ */ di(/* @__PURE__ */ si(/* @__PURE__ */ fi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6801
+ }), Ni = /* @__PURE__ */ Q({
6802
+ ...Ei,
6803
+ typeId: /* @__PURE__ */ li("connector"),
6804
+ actionNames: /* @__PURE__ */ si(Di),
6805
+ category: /* @__PURE__ */ Z(ki),
6806
+ categoryId: Oi,
6807
+ implementations: /* @__PURE__ */ fi(/* @__PURE__ */ $(), Mi),
6808
+ usage: /* @__PURE__ */ Z(ji),
6809
+ usageId: /* @__PURE__ */ Z(Ai),
6810
+ vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6811
+ vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6812
+ vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6813
+ }), Pi = {
6814
6814
  abortOperation: "Abort Operation",
6815
6815
  auditObjectContent: "Audit Object Content",
6816
6816
  createObject: "Create Object",
@@ -6826,12 +6826,12 @@ var Ti = $([
6826
6826
  retrieveChunks: "Retrieve Chunks",
6827
6827
  retrieveRecords: "Retrieve Records",
6828
6828
  upsertRecords: "Upsert Records"
6829
- }, Ni = /* @__PURE__ */ new Set([
6829
+ }, Fi = /* @__PURE__ */ new Set([
6830
6830
  "createObject",
6831
6831
  "dropObject",
6832
6832
  "removeRecords",
6833
6833
  "upsertRecords"
6834
- ]), Pi = /* @__PURE__ */ new Set([
6834
+ ]), Ii = /* @__PURE__ */ new Set([
6835
6835
  "auditObjectContent",
6836
6836
  "findObject",
6837
6837
  "getInfo",
@@ -6842,47 +6842,46 @@ var Ti = $([
6842
6842
  "retrieveChunks",
6843
6843
  "retrieveRecords"
6844
6844
  ]);
6845
- function Fi(e) {
6845
+ function Li(e) {
6846
6846
  let t = !1, n = !1;
6847
- for (let r of e) Pi.has(r) && (t = !0), Ni.has(r) && (n = !0);
6848
- return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6847
+ for (let r of e) Ii.has(r) && (t = !0), Fi.has(r) && (n = !0);
6848
+ return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
6849
6849
  }
6850
- function Ii(e) {
6850
+ function Ri(e) {
6851
6851
  let t = new Set(e), n = "|Action|Supported|\n";
6852
6852
  n += "|:----|:-------:|\n";
6853
- for (let e of Object.keys(Mi)) n += `| ${Mi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6853
+ for (let e of Object.keys(Pi)) n += `| ${Pi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6854
6854
  return n;
6855
6855
  }
6856
6856
  //#endregion
6857
6857
  //#region src/actions/documentActions.ts
6858
- var Li = "<!-- CONNECTOR_ACTIONS_START -->", Ri = "<!-- CONNECTOR_ACTIONS_END -->", zi = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Bi = {
6858
+ var zi = "<!-- CONNECTOR_ACTIONS_START -->", Bi = "<!-- CONNECTOR_ACTIONS_END -->", Vi = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Hi = {
6859
6859
  source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
6860
6860
  destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
6861
- bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support.",
6862
- unknown: "This connector does not yet implement any read or write actions, so its type cannot be determined. Connectors function as a Source (read-only), a Destination (write-only), or Bidirectional (read/write), depending on the actions they support."
6863
- }, Vi = "The table below lists all connector actions and highlights those supported by this connector.";
6864
- async function Hi() {
6861
+ bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support."
6862
+ }, Ui = "The table below lists all connector actions and highlights those supported by this connector.";
6863
+ async function Wi() {
6865
6864
  try {
6866
- G("Document Actions"), q("1️⃣ Insert actions description and table into 'README.md'");
6867
- let e = (await U("config.json")).actionNames ?? [], t = Fi(e), n = Ii(e), r = `${zi}\n\n${Bi[t]} ${Vi}\n\n${n}`;
6868
- await Vn("README.md", Kn(await W("./README.md"), r, Li, Ri)), K("Actions documented");
6865
+ K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6866
+ let e = (await W("config.json")).actionNames ?? [], t = Li(e), n = Ri(e), r = `${Vi}\n\n${Hi[t]} ${Ui}\n\n${n}`;
6867
+ await Bn("README.md", Gn(await G("./README.md"), r, zi, Bi)), q("Actions documented");
6869
6868
  } catch (e) {
6870
6869
  console.error("❌ Error documenting actions", e), process.exit(1);
6871
6870
  }
6872
6871
  }
6873
6872
  //#endregion
6874
6873
  //#region src/actions/documentOpening.ts
6875
- var Ui = "<!-- OPENING_START -->", Wi = "<!-- OPENING_END -->";
6876
- async function Gi() {
6874
+ var Gi = "<!-- OPENING_START -->", Ki = "<!-- OPENING_END -->";
6875
+ async function qi() {
6877
6876
  try {
6878
- G("Document Opening"), q("1️⃣ Insert opening content into 'README.md'");
6879
- let e = await U("package.json"), t = await U("config.json"), { owner: n, repo: r } = Ki(e), i = Yi(n, r, qi(e), Ji(t));
6880
- await Vn("README.md", Kn(await W("./README.md"), i, Ui, Wi)), K("Opening documented");
6877
+ K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6878
+ let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Ji(e), i = Zi(n, r, Yi(e), Xi(t));
6879
+ await Bn("README.md", Gn(await G("./README.md"), i, Gi, Ki)), q("Opening documented");
6881
6880
  } catch (e) {
6882
6881
  console.error("❌ Error documenting opening", e), process.exit(1);
6883
6882
  }
6884
6883
  }
6885
- function Ki(e) {
6884
+ function Ji(e) {
6886
6885
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6887
6886
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
6888
6887
  let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
@@ -6892,19 +6891,19 @@ function Ki(e) {
6892
6891
  repo: i[2]
6893
6892
  };
6894
6893
  }
6895
- function qi(e) {
6894
+ function Yi(e) {
6896
6895
  let t = e.license;
6897
6896
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6898
6897
  return t;
6899
6898
  }
6900
- function Ji(e) {
6899
+ function Xi(e) {
6901
6900
  let t = e.description.en;
6902
6901
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6903
- return t.join("\n\n");
6902
+ return t;
6904
6903
  }
6905
- function Yi(e, t, n, r) {
6904
+ function Zi(e, t, n, r) {
6906
6905
  let i = `https://github.com/${e}/${t}`;
6907
- return `[![License: ${n}](https://img.shields.io/badge/License-${n.replace(/-/g, "--")}-blue.svg)](./LICENSE)
6906
+ return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6908
6907
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
6909
6908
  [![CI](${i}/actions/workflows/ci.yml/badge.svg)](${i}/actions/workflows/ci.yml)
6910
6909
  [![CodeQL](${i}/actions/workflows/codeql.yml/badge.svg)](${i}/actions/workflows/codeql.yml)
@@ -6922,31 +6921,31 @@ ${r}`;
6922
6921
  }
6923
6922
  //#endregion
6924
6923
  //#region src/actions/documentUsage.ts
6925
- var Xi = "<!-- USAGE_START -->", Zi = "<!-- USAGE_END -->";
6926
- async function Qi() {
6924
+ var Qi = "<!-- USAGE_START -->", $i = "<!-- USAGE_END -->";
6925
+ async function ea() {
6927
6926
  try {
6928
- G("Document Usage"), q("1️⃣ Insert usage content into 'README.md'");
6929
- let e = await U("package.json"), t = $i(e), n = na(t, ea(t), ta(e.engines?.node), ta(e.engines?.npm), ta(e.devDependencies?.typescript));
6930
- await Vn("README.md", Kn(await W("./README.md"), n, Xi, Zi)), K("Usage documented");
6927
+ K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6928
+ let e = await W("package.json"), t = ta(e), n = ia(t, na(t), ra(e.engines?.node), ra(e.engines?.npm), ra(e.devDependencies?.typescript));
6929
+ await Bn("README.md", Gn(await G("./README.md"), n, Qi, $i)), q("Usage documented");
6931
6930
  } catch (e) {
6932
6931
  console.error("❌ Error documenting usage", e), process.exit(1);
6933
6932
  }
6934
6933
  }
6935
- function $i(e) {
6934
+ function ta(e) {
6936
6935
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6937
6936
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6938
6937
  return n.replace(/^git\+/, "");
6939
6938
  }
6940
- function ea(e) {
6939
+ function na(e) {
6941
6940
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6942
6941
  }
6943
- function ta(e) {
6942
+ function ra(e) {
6944
6943
  if (e == null) throw Error("package.json version range is required to document usage.");
6945
6944
  let t = /\d+(?:\.\d+)*/.exec(e);
6946
6945
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6947
6946
  return t[0];
6948
6947
  }
6949
- function na(e, t, n, r, i) {
6948
+ function ia(e, t, n, r, i) {
6950
6949
  return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
6951
6950
 
6952
6951
  You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
@@ -6961,43 +6960,43 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
6961
6960
  }
6962
6961
  //#endregion
6963
6962
  //#region src/actions/formatCode.ts
6964
- async function ra() {
6963
+ async function aa() {
6965
6964
  try {
6966
- G("Format Code"), await In("1️⃣ Format", "prettier", [
6965
+ K("Format Code"), await Fn("1️⃣ Format", "prettier", [
6967
6966
  "--write",
6968
6967
  "*.json",
6969
6968
  "*.md",
6970
6969
  "*.ts",
6971
6970
  ...["app", "src"].filter((t) => e(t)).map((e) => `${e}/**`)
6972
- ]), K("Code formatted");
6971
+ ]), q("Code formatted");
6973
6972
  } catch (e) {
6974
6973
  console.error("❌ Error formatting code", e), process.exit(1);
6975
6974
  }
6976
6975
  }
6977
6976
  //#endregion
6978
6977
  //#region src/actions/lintCode.ts
6979
- async function ia() {
6978
+ async function oa() {
6980
6979
  try {
6981
- G("Lint Code"), await In("1️⃣ Lint", "eslint", ["."]), K("Code linted");
6980
+ K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6982
6981
  } catch (e) {
6983
6982
  console.error("❌ Error linting code", e), process.exit(1);
6984
6983
  }
6985
6984
  }
6986
6985
  //#endregion
6987
6986
  //#region src/utilities/cloudflare.ts
6988
- async function aa() {
6989
- let e = await U("config.json"), t = {
6987
+ async function sa() {
6988
+ let e = await W("config.json"), t = {
6990
6989
  body: JSON.stringify(e),
6991
6990
  headers: { "Content-Type": "application/json" },
6992
6991
  method: "PUT"
6993
6992
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6994
6993
  if (!n.ok) throw Error(await n.text());
6995
6994
  }
6996
- async function oa(e, t) {
6995
+ async function ca(e, t) {
6997
6996
  async function n(e, t, r) {
6998
6997
  for (let i of r) {
6999
6998
  let r = `${e}/${i}`, a = `${t}/${i}`;
7000
- (await Un(r)).isDirectory() ? await n(r, a, await Pn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Fn(void 0, "wrangler", [
6999
+ (await Hn(r)).isDirectory() ? await n(r, a, await Nn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Pn(void 0, "wrangler", [
7001
7000
  "r2",
7002
7001
  "object",
7003
7002
  "put",
@@ -7008,10 +7007,10 @@ async function oa(e, t) {
7008
7007
  ]));
7009
7008
  }
7010
7009
  }
7011
- let r = await Pn(`${e}/${t}/`);
7010
+ let r = await Nn(`${e}/${t}/`);
7012
7011
  await n(`${e}/${t}`, t, r);
7013
7012
  }
7014
- async function sa(e) {
7013
+ async function la(e) {
7015
7014
  let t = e.id, n = {
7016
7015
  body: JSON.stringify(e),
7017
7016
  headers: { "Content-Type": "application/json" },
@@ -7019,14 +7018,14 @@ async function sa(e) {
7019
7018
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7020
7019
  if (!r.ok) throw Error(await r.text());
7021
7020
  }
7022
- async function ca(e, t) {
7021
+ async function ua(e, t) {
7023
7022
  let n = `v${e.version ?? "unknown"}`;
7024
7023
  async function r(e, r = "") {
7025
- let i = await Pn(e, { withFileTypes: !0 });
7024
+ let i = await Nn(e, { withFileTypes: !0 });
7026
7025
  for (let a of i) {
7027
7026
  if (a.isDirectory() || a.name.endsWith(".map")) continue;
7028
7027
  let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name.endsWith(".css") ? "text/css" : "application/octet-stream", l = a.name.endsWith(".js") ? "application/javascript" : c;
7029
- console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Fn(void 0, "wrangler", [
7028
+ console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Pn(void 0, "wrangler", [
7030
7029
  "r2",
7031
7030
  "object",
7032
7031
  "put",
@@ -7043,24 +7042,24 @@ async function ca(e, t) {
7043
7042
  }
7044
7043
  //#endregion
7045
7044
  //#region node_modules/valibot/dist/index.mjs
7046
- var la, ua = {
7045
+ var da, fa = {
7047
7046
  lang: void 0,
7048
7047
  message: void 0,
7049
7048
  abortEarly: void 0,
7050
7049
  abortPipeEarly: void 0
7051
7050
  };
7052
7051
  /* @__NO_SIDE_EFFECTS__ */
7053
- function da(e) {
7054
- return !e && !la ? ua : {
7055
- lang: e?.lang ?? la?.lang,
7052
+ function pa(e) {
7053
+ return !e && !da ? fa : {
7054
+ lang: e?.lang ?? da?.lang,
7056
7055
  message: e?.message,
7057
- abortEarly: e?.abortEarly ?? la?.abortEarly,
7058
- abortPipeEarly: e?.abortPipeEarly ?? la?.abortPipeEarly
7056
+ abortEarly: e?.abortEarly ?? da?.abortEarly,
7057
+ abortPipeEarly: e?.abortPipeEarly ?? da?.abortPipeEarly
7059
7058
  };
7060
7059
  }
7061
7060
  /* @__NO_SIDE_EFFECTS__ */
7062
- function fa(e, t, n) {
7063
- let r = e["~run"]({ value: t }, /* @__PURE__ */ da(n));
7061
+ function ma(e, t, n) {
7062
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ pa(n));
7064
7063
  return {
7065
7064
  typed: r.typed,
7066
7065
  success: !r.issues,
@@ -7069,176 +7068,154 @@ function fa(e, t, n) {
7069
7068
  };
7070
7069
  }
7071
7070
  //#endregion
7072
- //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
7073
- var pa = /* @__PURE__ */ Z({
7074
- typeId: /* @__PURE__ */ ui("contextArea"),
7075
- ...Ci,
7076
- modelRefs: /* @__PURE__ */ ci(Si),
7077
- order: /* @__PURE__ */ di()
7078
- }), ma = $(["listContextFocuses"]), ha = /* @__PURE__ */ Z({
7079
- typeId: /* @__PURE__ */ ui("context"),
7080
- ...wi,
7081
- actionNames: /* @__PURE__ */ ci(ma),
7082
- models: /* @__PURE__ */ ci(pa)
7083
- }), ga = $([
7071
+ //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7072
+ var ha = hi([
7084
7073
  "list",
7085
7074
  "render",
7086
7075
  "setColorMode"
7087
- ]), _a = /* @__PURE__ */ Z({
7088
- typeId: /* @__PURE__ */ ui("presenter"),
7089
- ...wi,
7090
- actionNames: /* @__PURE__ */ ci(ga),
7091
- presentations: /* @__PURE__ */ ci(Si)
7076
+ ]), ga = /* @__PURE__ */ Q({
7077
+ ...Ei,
7078
+ typeId: /* @__PURE__ */ li("presenter"),
7079
+ actionNames: /* @__PURE__ */ si(ha),
7080
+ presentations: /* @__PURE__ */ si(wi)
7092
7081
  });
7093
7082
  //#endregion
7094
7083
  //#region src/actions/manageProject.ts
7095
- async function va() {
7084
+ async function _a() {
7096
7085
  try {
7097
- G("Build Project"), await In("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
7086
+ K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7098
7087
  } catch (e) {
7099
7088
  console.error("❌ Error building project", e), process.exit(1);
7100
7089
  }
7101
7090
  }
7102
- async function ya() {
7091
+ async function va() {
7103
7092
  try {
7104
- G("Publish Project");
7105
- let e = await U("package.json"), t = await U("config.json"), n = Hn(t.id);
7106
- if (n.typeId === "app") q("1️⃣ Register module"), await aa();
7107
- else if (n.typeId === "engine") q("1️⃣ Register module"), await ca(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await sa(t);
7108
- else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
7093
+ K("Publish Project");
7094
+ let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
7095
+ if (n.typeId === "app") J("1️⃣ Register module"), await sa();
7096
+ else if (n.typeId === "engine") J("1️⃣ Register module"), await ua(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await la(t);
7097
+ else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
7109
7098
  else {
7110
- q("1️⃣ Register module");
7099
+ J("1️⃣ Register module");
7111
7100
  let r = t.id.split("-").slice(2).join("-");
7112
- await ca(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await sa(t);
7101
+ await ua(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await la(t);
7113
7102
  }
7114
- K(`Project version '${e.version ?? "unknown"}' published.`);
7103
+ q(`Project version '${e.version ?? "unknown"}' published.`);
7115
7104
  } catch (e) {
7116
7105
  console.error("❌ Error publishing project", e), process.exit(1);
7117
7106
  }
7118
7107
  }
7119
- async function ba() {
7108
+ async function ya() {
7120
7109
  try {
7121
- G("Release Project");
7122
- let e = await U("package.json"), t = await U("config.json");
7123
- await Oa("1️⃣ ", e);
7124
- let n = Hn(t.id);
7110
+ K("Release Project");
7111
+ let e = await W("package.json"), t = await W("config.json");
7112
+ await Ea("1️⃣ ", e);
7113
+ let n = Vn(t.id);
7125
7114
  switch (n.typeId) {
7126
7115
  case "connector":
7127
- t = await Sa("2️⃣ ", e);
7128
- break;
7129
- case "context":
7130
- t = await Ca("2️⃣ ", e);
7116
+ t = await xa("2️⃣ ", e);
7131
7117
  break;
7132
7118
  case "presenter":
7133
- t = await wa("2️⃣ ", e);
7119
+ t = await Sa("2️⃣ ", e);
7134
7120
  break;
7135
- default: t = await xa("2️⃣ ", e);
7121
+ default: t = await ba("2️⃣ ", e);
7136
7122
  }
7137
- if (await In("3️⃣ Bundle project", "vite", ["build"]), await Fn("4️⃣ Stage changes", "git", ["add", "."]), await Fn("5️⃣ Commit changes", "git", [
7123
+ if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7138
7124
  "commit",
7139
7125
  "-m",
7140
7126
  `v${e.version ?? "unknown"}`
7141
- ]), await Fn("6️⃣ Push changes", "git", [
7127
+ ]), await Pn("6️⃣ Push changes", "git", [
7142
7128
  "push",
7143
7129
  "origin",
7144
7130
  "main:main"
7145
- ]), n.typeId === "app") q("7️⃣ Register module"), await aa();
7146
- else if (n.typeId === "engine") q("7️⃣ Register module"), await ca(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await sa(t);
7147
- else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
7131
+ ]), n.typeId === "app") J("7️⃣ Register module"), await sa();
7132
+ else if (n.typeId === "engine") J("7️⃣ Register module"), await ua(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await la(t);
7133
+ else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7148
7134
  else {
7149
- q("7️⃣ Register module");
7135
+ J("7️⃣ Register module");
7150
7136
  let r = t.id.split("-").slice(2).join("-");
7151
- await ca(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await sa(t);
7137
+ await ua(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await la(t);
7152
7138
  }
7153
7139
  if (n.publishedTo === "npm") {
7154
7140
  let e = ".npmrc";
7155
7141
  try {
7156
- await Vn(e, `registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await In("8️⃣ Publish to npm", "npm", [
7142
+ await Bn(e, `registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await Fn("8️⃣ Publish to npm", "npm", [
7157
7143
  "publish",
7158
7144
  "--access",
7159
7145
  "public"
7160
7146
  ]);
7161
7147
  } finally {
7162
- await zn(e);
7148
+ await Rn(e);
7163
7149
  }
7164
- } else q(`8️⃣ Publishing NOT required for package with type identifier of '${n.typeId}'.`);
7165
- K(`Project version '${e.version ?? "unknown"}' released.`);
7150
+ } else J(`8️⃣ Publishing NOT required for package with type identifier of '${n.typeId}'.`);
7151
+ q(`Project version '${e.version ?? "unknown"}' released.`);
7166
7152
  } catch (e) {
7167
7153
  console.error("❌ Error releasing project", e), process.exit(1);
7168
7154
  }
7169
7155
  }
7170
- async function xa(e, t) {
7171
- q(`${e} Build project configuration`);
7172
- let n = await U("config.json");
7173
- return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Rn("logo.svg"), n.iconDark ??= await Rn("logoDark.svg"), await Bn("config.json", n), n;
7174
- }
7175
- async function Sa(e, t) {
7176
- q(`${e} Build connector project configuration`);
7177
- let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ fa(ji, n);
7178
- if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7179
- let a = Wn(r);
7180
- return await Ta(t, n, a, Fi(a));
7156
+ async function ba(e, t) {
7157
+ J(`${e} Build project configuration`);
7158
+ let n = await W("config.json");
7159
+ return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Ln("logo.svg"), n.iconDark ??= await Ln("logoDark.svg"), await zn("config.json", n), n;
7181
7160
  }
7182
- async function Ca(e, t) {
7183
- q(`${e} Build context project configuration`);
7184
- let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ fa(ha, n);
7161
+ async function xa(e, t) {
7162
+ J(`${e} Build connector project configuration`);
7163
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ma(Ni, n);
7185
7164
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7186
- return await Ta(t, n, Wn(r));
7165
+ let a = Un(r);
7166
+ return await Ca(t, n, a, Li(a));
7187
7167
  }
7188
- async function wa(e, t) {
7189
- q(`${e} Build presenter project configuration`);
7190
- let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ fa(_a, n);
7168
+ async function Sa(e, t) {
7169
+ J(`${e} Build presenter project configuration`);
7170
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ma(ga, n);
7191
7171
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7192
- return await Ta(t, n, Wn(r));
7172
+ return await Ca(t, n, Un(r));
7193
7173
  }
7194
- async function Ta(e, t, n, r) {
7195
- return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await Bn("config.json", t), t;
7174
+ async function Ca(e, t, n, r) {
7175
+ return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await zn("config.json", t), t;
7196
7176
  }
7197
- async function Ea() {
7177
+ async function wa() {
7198
7178
  try {
7199
- G("Synchronise Project with GitHub");
7200
- let e = await U("package.json"), t = await U("config.json");
7201
- switch (await Oa("1️⃣ ", e), Hn(t.id).typeId) {
7179
+ K("Synchronise Project with GitHub");
7180
+ let e = await W("package.json"), t = await W("config.json");
7181
+ switch (await Ea("1️⃣ ", e), Vn(t.id).typeId) {
7202
7182
  case "connector":
7203
- await Sa("2️⃣ ", e);
7204
- break;
7205
- case "context":
7206
- await Ca("2️⃣ ", e);
7183
+ await xa("2️⃣ ", e);
7207
7184
  break;
7208
7185
  case "presenter":
7209
- await wa("2️⃣ ", e);
7186
+ await Sa("2️⃣ ", e);
7210
7187
  break;
7211
- default: await xa("2️⃣ ", e);
7188
+ default: await ba("2️⃣ ", e);
7212
7189
  }
7213
- await Fn("3️⃣ Stage changes", "git", ["add", "."]), await Fn("4️⃣ Commit changes", "git", [
7190
+ await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7214
7191
  "commit",
7215
7192
  "-m",
7216
7193
  `v${e.version ?? "unknown"}`
7217
- ]), await Fn("5️⃣ Push changes", "git", [
7194
+ ]), await Pn("5️⃣ Push changes", "git", [
7218
7195
  "push",
7219
7196
  "origin",
7220
7197
  "main:main"
7221
- ]), K(`Project version '${e.version ?? "unknown"}' synchronised with GitHub.`);
7198
+ ]), q(`Project version '${e.version ?? "unknown"}' synchronised with GitHub.`);
7222
7199
  } catch (e) {
7223
7200
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7224
7201
  }
7225
7202
  }
7226
- function Da() {
7203
+ function Ta() {
7227
7204
  try {
7228
- G("Test Project"), console.error("\n❌ No tests implemented.\n");
7205
+ K("Test Project"), console.error("\n❌ No tests implemented.\n");
7229
7206
  } catch (e) {
7230
7207
  console.error("❌ Error testing project", e), process.exit(1);
7231
7208
  }
7232
7209
  }
7233
- async function Oa(e, t, n = "./") {
7234
- if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7210
+ async function Ea(e, t, n = "./") {
7211
+ if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7235
7212
  else {
7236
7213
  let e = t.version, n = t.version.split(".");
7237
7214
  t.version = `${n[0] ?? "unknown"}.${n[1] ?? "unknown"}.${String(Number(n[2]) + 1)}`, console.info(`Project version bumped from '${e}' to '${t.version}'.`);
7238
7215
  }
7239
- await Bn(`${n}package.json`, t);
7216
+ await zn(`${n}package.json`, t);
7240
7217
  }
7241
7218
  //#endregion
7242
- export { qn as auditDependencies, va as buildProject, Jn as checkConfigFiles, er as checkDependencies, Hi as documentActions, or as documentBundleSizes, Or as documentDependencies, Vr as documentGovernance, Gi as documentOpening, Qi as documentUsage, ra as formatCode, ia as lintCode, ya as publishProject, ba as releaseProject, Ea as syncProjectWithGitHub, Da as testProject, oa as uploadDirectoryToR2 };
7219
+ export { Kn as auditDependencies, _a as buildProject, qn as checkConfigFiles, $n as checkDependencies, Wi as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Br as documentGovernance, qi as documentOpening, ea as documentUsage, aa as formatCode, oa as lintCode, va as publishProject, ya as releaseProject, wa as syncProjectWithGitHub, Ta as testProject, ca as uploadDirectoryToR2 };
7243
7220
 
7244
7221
  //# sourceMappingURL=dpuse-development.es.js.map