@vtj/renderer 0.18.3 → 0.18.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7,10 +7,10 @@ import { useRoute as os } from "vue-router";
7
7
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
8
8
  * @name @vtj/renderer
9
9
  * @author CHC chenhuachun1549@dingtalk.com
10
- * @version 0.18.3
10
+ * @version 0.18.5
11
11
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
12
12
  */
13
- const Ce = "0.18.3";
13
+ const Ce = "0.18.5";
14
14
  var P = /* @__PURE__ */ ((t) => (t.Runtime = "Runtime", t.Design = "Design", t.Raw = "Raw", t.VNode = "VNode", t))(P || {});
15
15
  const zt = [
16
16
  "$el",
@@ -177,10 +177,10 @@ function vi(t, e = !1) {
177
177
  function bi(t, e, s = !1) {
178
178
  const i = t.filter((d) => !!d.enabled), r = [], n = [], a = [], u = [], c = {}, l = {}, h = [], p = {};
179
179
  return i.forEach(
180
- ({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary: x }) => {
181
- d?.forEach((E) => {
182
- qe(E) && r.push(vi(E, s)), Ge(E) && n.push(E);
183
- }), m && (u.push(m), c[m] = Le(d || [], e), x && (l[m] = x)), f && a.push(f), g && h.push(g), m && g && (p[g] = m);
180
+ ({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary: v }) => {
181
+ d?.forEach((w) => {
182
+ qe(w) && r.push(vi(w, s)), Ge(w) && n.push(w);
183
+ }), m && (u.push(m), c[m] = Le(d || [], e), v && (l[m] = v)), f && a.push(f), g && h.push(g), m && g && (p[g] = m);
184
184
  }
185
185
  ), {
186
186
  scripts: Le(r, e),
@@ -214,28 +214,28 @@ function Si(t, e) {
214
214
  continue;
215
215
  }
216
216
  if (l.substring(p, p + 2) === "/*") {
217
- const E = l.indexOf("*/", p + 2);
218
- if (E !== -1) {
219
- p = E + 2;
217
+ const w = l.indexOf("*/", p + 2);
218
+ if (w !== -1) {
219
+ p = w + 2;
220
220
  continue;
221
221
  }
222
222
  }
223
223
  if (l[p] === "@") {
224
- const E = p;
224
+ const w = p;
225
225
  for (; p < l.length && l[p] !== "{" && l[p] !== ";"; )
226
226
  p++;
227
- const A = l.substring(E, p).trim(), R = A.includes("@keyframes");
227
+ const A = l.substring(w, p).trim(), R = A.includes("@keyframes");
228
228
  if (l[p] === ";")
229
229
  h.push({
230
230
  type: "simple-at-rule",
231
- content: l.substring(E, p + 1)
231
+ content: l.substring(w, p + 1)
232
232
  }), p++;
233
233
  else if (l[p] === "{") {
234
234
  const C = p + 1;
235
235
  let U = 1;
236
236
  for (p++; p < l.length && U > 0; )
237
237
  l[p] === "{" ? U++ : l[p] === "}" && U--, p++;
238
- const pe = l.substring(E, p), ye = l.substring(C, p - 1);
238
+ const pe = l.substring(w, p), ye = l.substring(C, p - 1);
239
239
  h.push({
240
240
  type: R ? "keyframes" : "at-rule",
241
241
  rule: A,
@@ -258,11 +258,11 @@ function Si(t, e) {
258
258
  let g = 1;
259
259
  for (p++; p < l.length && g > 0; )
260
260
  l[p] === "{" ? g++ : l[p] === "}" && g--, p++;
261
- const x = l.substring(m, p - 1);
261
+ const v = l.substring(m, p - 1);
262
262
  h.push({
263
263
  type: "rule",
264
264
  selector: f,
265
- content: x.trim()
265
+ content: v.trim()
266
266
  });
267
267
  }
268
268
  return h;
@@ -458,41 +458,41 @@ function ne(t, e) {
458
458
  function ve(t, e) {
459
459
  return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Li.test(String.fromCharCode(t)) : e === !1 ? !1 : ft(t, fs) || ft(t, ji);
460
460
  }
461
- var w = function(e, s) {
461
+ var E = function(e, s) {
462
462
  s === void 0 && (s = {}), this.label = e, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
463
463
  };
464
464
  function D(t, e) {
465
- return new w(t, { beforeExpr: !0, binop: e });
465
+ return new E(t, { beforeExpr: !0, binop: e });
466
466
  }
467
467
  var B = { beforeExpr: !0 }, M = { startsExpr: !0 }, kt = {};
468
468
  function S(t, e) {
469
- return e === void 0 && (e = {}), e.keyword = t, kt[t] = new w(t, e);
469
+ return e === void 0 && (e = {}), e.keyword = t, kt[t] = new E(t, e);
470
470
  }
471
471
  var o = {
472
- num: new w("num", M),
473
- regexp: new w("regexp", M),
474
- string: new w("string", M),
475
- name: new w("name", M),
476
- eof: new w("eof"),
472
+ num: new E("num", M),
473
+ regexp: new E("regexp", M),
474
+ string: new E("string", M),
475
+ name: new E("name", M),
476
+ eof: new E("eof"),
477
477
  // Punctuation token types.
478
- bracketL: new w("[", { beforeExpr: !0, startsExpr: !0 }),
479
- bracketR: new w("]"),
480
- braceL: new w("{", { beforeExpr: !0, startsExpr: !0 }),
481
- braceR: new w("}"),
482
- parenL: new w("(", { beforeExpr: !0, startsExpr: !0 }),
483
- parenR: new w(")"),
484
- comma: new w(",", B),
485
- semi: new w(";", B),
486
- colon: new w(":", B),
487
- dot: new w("."),
488
- question: new w("?", B),
489
- questionDot: new w("?."),
490
- arrow: new w("=>", B),
491
- template: new w("template"),
492
- invalidTemplate: new w("invalidTemplate"),
493
- ellipsis: new w("...", B),
494
- backQuote: new w("`", M),
495
- dollarBraceL: new w("${", { beforeExpr: !0, startsExpr: !0 }),
478
+ bracketL: new E("[", { beforeExpr: !0, startsExpr: !0 }),
479
+ bracketR: new E("]"),
480
+ braceL: new E("{", { beforeExpr: !0, startsExpr: !0 }),
481
+ braceR: new E("}"),
482
+ parenL: new E("(", { beforeExpr: !0, startsExpr: !0 }),
483
+ parenR: new E(")"),
484
+ comma: new E(",", B),
485
+ semi: new E(";", B),
486
+ colon: new E(":", B),
487
+ dot: new E("."),
488
+ question: new E("?", B),
489
+ questionDot: new E("?."),
490
+ arrow: new E("=>", B),
491
+ template: new E("template"),
492
+ invalidTemplate: new E("invalidTemplate"),
493
+ ellipsis: new E("...", B),
494
+ backQuote: new E("`", M),
495
+ dollarBraceL: new E("${", { beforeExpr: !0, startsExpr: !0 }),
496
496
  // Operators. These carry several kinds of properties to help the
497
497
  // parser use them properly (the presence of these properties is
498
498
  // what categorizes them as operators).
@@ -506,10 +506,10 @@ var o = {
506
506
  // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
507
507
  // binary operators with a very low precedence, that should result
508
508
  // in AssignmentExpression nodes.
509
- eq: new w("=", { beforeExpr: !0, isAssign: !0 }),
510
- assign: new w("_=", { beforeExpr: !0, isAssign: !0 }),
511
- incDec: new w("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
512
- prefix: new w("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
509
+ eq: new E("=", { beforeExpr: !0, isAssign: !0 }),
510
+ assign: new E("_=", { beforeExpr: !0, isAssign: !0 }),
511
+ incDec: new E("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
512
+ prefix: new E("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
513
513
  logicalOR: D("||", 1),
514
514
  logicalAND: D("&&", 2),
515
515
  bitwiseOR: D("|", 3),
@@ -518,11 +518,11 @@ var o = {
518
518
  equality: D("==/!=/===/!==", 6),
519
519
  relational: D("</>/<=/>=", 7),
520
520
  bitShift: D("<</>>/>>>", 8),
521
- plusMin: new w("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
521
+ plusMin: new E("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
522
522
  modulo: D("%", 10),
523
523
  star: D("*", 10),
524
524
  slash: D("/", 10),
525
- starstar: new w("**", { beforeExpr: !0 }),
525
+ starstar: new E("**", { beforeExpr: !0 }),
526
526
  coalesce: D("??", 1),
527
527
  // Keyword token types.
528
528
  _break: S("break"),
@@ -1490,8 +1490,8 @@ y.parseSubscript = function(t, e, s, i, r, n) {
1490
1490
  g.callee = t, g.arguments = m, a && (g.optional = u), t = this.finishNode(g, "CallExpression");
1491
1491
  } else if (this.type === o.backQuote) {
1492
1492
  (u || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1493
- var x = this.startNodeAt(e, s);
1494
- x.tag = t, x.quasi = this.parseTemplate({ isTagged: !0 }), t = this.finishNode(x, "TaggedTemplateExpression");
1493
+ var v = this.startNodeAt(e, s);
1494
+ v.tag = t, v.quasi = this.parseTemplate({ isTagged: !0 }), t = this.finishNode(v, "TaggedTemplateExpression");
1495
1495
  }
1496
1496
  return t;
1497
1497
  };
@@ -1600,8 +1600,8 @@ y.parseParenAndDistinguishExpression = function(t) {
1600
1600
  } else
1601
1601
  i = this.parseParenExpression();
1602
1602
  if (this.options.preserveParens) {
1603
- var x = this.startNodeAt(e, s);
1604
- return x.expression = i, this.finishNode(x, "ParenthesizedExpression");
1603
+ var v = this.startNodeAt(e, s);
1604
+ return v.expression = i, this.finishNode(v, "ParenthesizedExpression");
1605
1605
  } else
1606
1606
  return i;
1607
1607
  };
@@ -1939,7 +1939,7 @@ function Rt(t) {
1939
1939
  Rt(9);
1940
1940
  Rt(10);
1941
1941
  Rt(11);
1942
- var v = I.prototype, te = function(e) {
1942
+ var x = I.prototype, te = function(e) {
1943
1943
  this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties = Rs[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
1944
1944
  };
1945
1945
  te.prototype.reset = function(e, s, i) {
@@ -1983,16 +1983,16 @@ te.prototype.eat = function(e, s) {
1983
1983
  function $e(t) {
1984
1984
  return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
1985
1985
  }
1986
- v.validateRegExpFlags = function(t) {
1986
+ x.validateRegExpFlags = function(t) {
1987
1987
  for (var e = t.validFlags, s = t.flags, i = 0; i < s.length; i++) {
1988
1988
  var r = s.charAt(i);
1989
1989
  e.indexOf(r) === -1 && this.raise(t.start, "Invalid regular expression flag"), s.indexOf(r, i + 1) > -1 && this.raise(t.start, "Duplicate regular expression flag");
1990
1990
  }
1991
1991
  };
1992
- v.validateRegExpPattern = function(t) {
1992
+ x.validateRegExpPattern = function(t) {
1993
1993
  this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 && t.groupNames.length > 0 && (t.switchN = !0, this.regexp_pattern(t));
1994
1994
  };
1995
- v.regexp_pattern = function(t) {
1995
+ x.regexp_pattern = function(t) {
1996
1996
  t.pos = 0, t.lastIntValue = 0, t.lastStringValue = "", t.lastAssertionIsQuantifiable = !1, t.numCapturingParens = 0, t.maxBackReference = 0, t.groupNames.length = 0, t.backReferenceNames.length = 0, this.regexp_disjunction(t), t.pos !== t.source.length && (t.eat(
1997
1997
  41
1998
1998
  /* ) */
@@ -2008,7 +2008,7 @@ v.regexp_pattern = function(t) {
2008
2008
  t.groupNames.indexOf(i) === -1 && t.raise("Invalid named capture referenced");
2009
2009
  }
2010
2010
  };
2011
- v.regexp_disjunction = function(t) {
2011
+ x.regexp_disjunction = function(t) {
2012
2012
  for (this.regexp_alternative(t); t.eat(
2013
2013
  124
2014
2014
  /* | */
@@ -2019,14 +2019,14 @@ v.regexp_disjunction = function(t) {
2019
2019
  /* { */
2020
2020
  ) && t.raise("Lone quantifier brackets");
2021
2021
  };
2022
- v.regexp_alternative = function(t) {
2022
+ x.regexp_alternative = function(t) {
2023
2023
  for (; t.pos < t.source.length && this.regexp_eatTerm(t); )
2024
2024
  ;
2025
2025
  };
2026
- v.regexp_eatTerm = function(t) {
2026
+ x.regexp_eatTerm = function(t) {
2027
2027
  return this.regexp_eatAssertion(t) ? (t.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(t) && t.switchU && t.raise("Invalid quantifier"), !0) : (t.switchU ? this.regexp_eatAtom(t) : this.regexp_eatExtendedAtom(t)) ? (this.regexp_eatQuantifier(t), !0) : !1;
2028
2028
  };
2029
- v.regexp_eatAssertion = function(t) {
2029
+ x.regexp_eatAssertion = function(t) {
2030
2030
  var e = t.pos;
2031
2031
  if (t.lastAssertionIsQuantifiable = !1, t.eat(
2032
2032
  94
@@ -2075,13 +2075,13 @@ v.regexp_eatAssertion = function(t) {
2075
2075
  }
2076
2076
  return t.pos = e, !1;
2077
2077
  };
2078
- v.regexp_eatQuantifier = function(t, e) {
2078
+ x.regexp_eatQuantifier = function(t, e) {
2079
2079
  return e === void 0 && (e = !1), this.regexp_eatQuantifierPrefix(t, e) ? (t.eat(
2080
2080
  63
2081
2081
  /* ? */
2082
2082
  ), !0) : !1;
2083
2083
  };
2084
- v.regexp_eatQuantifierPrefix = function(t, e) {
2084
+ x.regexp_eatQuantifierPrefix = function(t, e) {
2085
2085
  return t.eat(
2086
2086
  42
2087
2087
  /* * */
@@ -2093,7 +2093,7 @@ v.regexp_eatQuantifierPrefix = function(t, e) {
2093
2093
  /* ? */
2094
2094
  ) || this.regexp_eatBracedQuantifier(t, e);
2095
2095
  };
2096
- v.regexp_eatBracedQuantifier = function(t, e) {
2096
+ x.regexp_eatBracedQuantifier = function(t, e) {
2097
2097
  var s = t.pos;
2098
2098
  if (t.eat(
2099
2099
  123
@@ -2112,13 +2112,13 @@ v.regexp_eatBracedQuantifier = function(t, e) {
2112
2112
  }
2113
2113
  return !1;
2114
2114
  };
2115
- v.regexp_eatAtom = function(t) {
2115
+ x.regexp_eatAtom = function(t) {
2116
2116
  return this.regexp_eatPatternCharacters(t) || t.eat(
2117
2117
  46
2118
2118
  /* . */
2119
2119
  ) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t);
2120
2120
  };
2121
- v.regexp_eatReverseSolidusAtomEscape = function(t) {
2121
+ x.regexp_eatReverseSolidusAtomEscape = function(t) {
2122
2122
  var e = t.pos;
2123
2123
  if (t.eat(
2124
2124
  92
@@ -2130,7 +2130,7 @@ v.regexp_eatReverseSolidusAtomEscape = function(t) {
2130
2130
  }
2131
2131
  return !1;
2132
2132
  };
2133
- v.regexp_eatUncapturingGroup = function(t) {
2133
+ x.regexp_eatUncapturingGroup = function(t) {
2134
2134
  var e = t.pos;
2135
2135
  if (t.eat(
2136
2136
  40
@@ -2154,7 +2154,7 @@ v.regexp_eatUncapturingGroup = function(t) {
2154
2154
  }
2155
2155
  return !1;
2156
2156
  };
2157
- v.regexp_eatCapturingGroup = function(t) {
2157
+ x.regexp_eatCapturingGroup = function(t) {
2158
2158
  if (t.eat(
2159
2159
  40
2160
2160
  /* ( */
@@ -2168,32 +2168,32 @@ v.regexp_eatCapturingGroup = function(t) {
2168
2168
  }
2169
2169
  return !1;
2170
2170
  };
2171
- v.regexp_eatExtendedAtom = function(t) {
2171
+ x.regexp_eatExtendedAtom = function(t) {
2172
2172
  return t.eat(
2173
2173
  46
2174
2174
  /* . */
2175
2175
  ) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t) || this.regexp_eatInvalidBracedQuantifier(t) || this.regexp_eatExtendedPatternCharacter(t);
2176
2176
  };
2177
- v.regexp_eatInvalidBracedQuantifier = function(t) {
2177
+ x.regexp_eatInvalidBracedQuantifier = function(t) {
2178
2178
  return this.regexp_eatBracedQuantifier(t, !0) && t.raise("Nothing to repeat"), !1;
2179
2179
  };
2180
- v.regexp_eatSyntaxCharacter = function(t) {
2180
+ x.regexp_eatSyntaxCharacter = function(t) {
2181
2181
  var e = t.current();
2182
2182
  return Vs(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
2183
2183
  };
2184
2184
  function Vs(t) {
2185
2185
  return t === 36 || t >= 40 && t <= 43 || t === 46 || t === 63 || t >= 91 && t <= 94 || t >= 123 && t <= 125;
2186
2186
  }
2187
- v.regexp_eatPatternCharacters = function(t) {
2187
+ x.regexp_eatPatternCharacters = function(t) {
2188
2188
  for (var e = t.pos, s = 0; (s = t.current()) !== -1 && !Vs(s); )
2189
2189
  t.advance();
2190
2190
  return t.pos !== e;
2191
2191
  };
2192
- v.regexp_eatExtendedPatternCharacter = function(t) {
2192
+ x.regexp_eatExtendedPatternCharacter = function(t) {
2193
2193
  var e = t.current();
2194
2194
  return e !== -1 && e !== 36 && !(e >= 40 && e <= 43) && e !== 46 && e !== 63 && e !== 91 && e !== 94 && e !== 124 ? (t.advance(), !0) : !1;
2195
2195
  };
2196
- v.regexp_groupSpecifier = function(t) {
2196
+ x.regexp_groupSpecifier = function(t) {
2197
2197
  if (t.eat(
2198
2198
  63
2199
2199
  /* ? */
@@ -2205,7 +2205,7 @@ v.regexp_groupSpecifier = function(t) {
2205
2205
  t.raise("Invalid group");
2206
2206
  }
2207
2207
  };
2208
- v.regexp_eatGroupName = function(t) {
2208
+ x.regexp_eatGroupName = function(t) {
2209
2209
  if (t.lastStringValue = "", t.eat(
2210
2210
  60
2211
2211
  /* < */
@@ -2219,7 +2219,7 @@ v.regexp_eatGroupName = function(t) {
2219
2219
  }
2220
2220
  return !1;
2221
2221
  };
2222
- v.regexp_eatRegExpIdentifierName = function(t) {
2222
+ x.regexp_eatRegExpIdentifierName = function(t) {
2223
2223
  if (t.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(t)) {
2224
2224
  for (t.lastStringValue += $e(t.lastIntValue); this.regexp_eatRegExpIdentifierPart(t); )
2225
2225
  t.lastStringValue += $e(t.lastIntValue);
@@ -2227,24 +2227,24 @@ v.regexp_eatRegExpIdentifierName = function(t) {
2227
2227
  }
2228
2228
  return !1;
2229
2229
  };
2230
- v.regexp_eatRegExpIdentifierStart = function(t) {
2230
+ x.regexp_eatRegExpIdentifierStart = function(t) {
2231
2231
  var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
2232
2232
  return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), Xi(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2233
2233
  };
2234
2234
  function Xi(t) {
2235
2235
  return ne(t, !0) || t === 36 || t === 95;
2236
2236
  }
2237
- v.regexp_eatRegExpIdentifierPart = function(t) {
2237
+ x.regexp_eatRegExpIdentifierPart = function(t) {
2238
2238
  var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
2239
2239
  return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), Yi(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2240
2240
  };
2241
2241
  function Yi(t) {
2242
2242
  return ve(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
2243
2243
  }
2244
- v.regexp_eatAtomEscape = function(t) {
2244
+ x.regexp_eatAtomEscape = function(t) {
2245
2245
  return this.regexp_eatBackReference(t) || this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t) || t.switchN && this.regexp_eatKGroupName(t) ? !0 : (t.switchU && (t.current() === 99 && t.raise("Invalid unicode escape"), t.raise("Invalid escape")), !1);
2246
2246
  };
2247
- v.regexp_eatBackReference = function(t) {
2247
+ x.regexp_eatBackReference = function(t) {
2248
2248
  var e = t.pos;
2249
2249
  if (this.regexp_eatDecimalEscape(t)) {
2250
2250
  var s = t.lastIntValue;
@@ -2256,7 +2256,7 @@ v.regexp_eatBackReference = function(t) {
2256
2256
  }
2257
2257
  return !1;
2258
2258
  };
2259
- v.regexp_eatKGroupName = function(t) {
2259
+ x.regexp_eatKGroupName = function(t) {
2260
2260
  if (t.eat(
2261
2261
  107
2262
2262
  /* k */
@@ -2267,10 +2267,10 @@ v.regexp_eatKGroupName = function(t) {
2267
2267
  }
2268
2268
  return !1;
2269
2269
  };
2270
- v.regexp_eatCharacterEscape = function(t) {
2270
+ x.regexp_eatCharacterEscape = function(t) {
2271
2271
  return this.regexp_eatControlEscape(t) || this.regexp_eatCControlLetter(t) || this.regexp_eatZero(t) || this.regexp_eatHexEscapeSequence(t) || this.regexp_eatRegExpUnicodeEscapeSequence(t, !1) || !t.switchU && this.regexp_eatLegacyOctalEscapeSequence(t) || this.regexp_eatIdentityEscape(t);
2272
2272
  };
2273
- v.regexp_eatCControlLetter = function(t) {
2273
+ x.regexp_eatCControlLetter = function(t) {
2274
2274
  var e = t.pos;
2275
2275
  if (t.eat(
2276
2276
  99
@@ -2282,21 +2282,21 @@ v.regexp_eatCControlLetter = function(t) {
2282
2282
  }
2283
2283
  return !1;
2284
2284
  };
2285
- v.regexp_eatZero = function(t) {
2285
+ x.regexp_eatZero = function(t) {
2286
2286
  return t.current() === 48 && !Xe(t.lookahead()) ? (t.lastIntValue = 0, t.advance(), !0) : !1;
2287
2287
  };
2288
- v.regexp_eatControlEscape = function(t) {
2288
+ x.regexp_eatControlEscape = function(t) {
2289
2289
  var e = t.current();
2290
2290
  return e === 116 ? (t.lastIntValue = 9, t.advance(), !0) : e === 110 ? (t.lastIntValue = 10, t.advance(), !0) : e === 118 ? (t.lastIntValue = 11, t.advance(), !0) : e === 102 ? (t.lastIntValue = 12, t.advance(), !0) : e === 114 ? (t.lastIntValue = 13, t.advance(), !0) : !1;
2291
2291
  };
2292
- v.regexp_eatControlLetter = function(t) {
2292
+ x.regexp_eatControlLetter = function(t) {
2293
2293
  var e = t.current();
2294
2294
  return Os(e) ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2295
2295
  };
2296
2296
  function Os(t) {
2297
2297
  return t >= 65 && t <= 90 || t >= 97 && t <= 122;
2298
2298
  }
2299
- v.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2299
+ x.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2300
2300
  e === void 0 && (e = !1);
2301
2301
  var s = t.pos, i = e || t.switchU;
2302
2302
  if (t.eat(
@@ -2337,7 +2337,7 @@ v.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2337
2337
  function Zi(t) {
2338
2338
  return t >= 0 && t <= 1114111;
2339
2339
  }
2340
- v.regexp_eatIdentityEscape = function(t) {
2340
+ x.regexp_eatIdentityEscape = function(t) {
2341
2341
  if (t.switchU)
2342
2342
  return this.regexp_eatSyntaxCharacter(t) ? !0 : t.eat(
2343
2343
  47
@@ -2346,7 +2346,7 @@ v.regexp_eatIdentityEscape = function(t) {
2346
2346
  var e = t.current();
2347
2347
  return e !== 99 && (!t.switchN || e !== 107) ? (t.lastIntValue = e, t.advance(), !0) : !1;
2348
2348
  };
2349
- v.regexp_eatDecimalEscape = function(t) {
2349
+ x.regexp_eatDecimalEscape = function(t) {
2350
2350
  t.lastIntValue = 0;
2351
2351
  var e = t.current();
2352
2352
  if (e >= 49 && e <= 57) {
@@ -2357,7 +2357,7 @@ v.regexp_eatDecimalEscape = function(t) {
2357
2357
  }
2358
2358
  return !1;
2359
2359
  };
2360
- v.regexp_eatCharacterClassEscape = function(t) {
2360
+ x.regexp_eatCharacterClassEscape = function(t) {
2361
2361
  var e = t.current();
2362
2362
  if (er(e))
2363
2363
  return t.lastIntValue = -1, t.advance(), !0;
@@ -2377,7 +2377,7 @@ v.regexp_eatCharacterClassEscape = function(t) {
2377
2377
  function er(t) {
2378
2378
  return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
2379
2379
  }
2380
- v.regexp_eatUnicodePropertyValueExpression = function(t) {
2380
+ x.regexp_eatUnicodePropertyValueExpression = function(t) {
2381
2381
  var e = t.pos;
2382
2382
  if (this.regexp_eatUnicodePropertyName(t) && t.eat(
2383
2383
  61
@@ -2395,13 +2395,13 @@ v.regexp_eatUnicodePropertyValueExpression = function(t) {
2395
2395
  }
2396
2396
  return !1;
2397
2397
  };
2398
- v.regexp_validateUnicodePropertyNameAndValue = function(t, e, s) {
2398
+ x.regexp_validateUnicodePropertyNameAndValue = function(t, e, s) {
2399
2399
  We(t.unicodeProperties.nonBinary, e) || t.raise("Invalid property name"), t.unicodeProperties.nonBinary[e].test(s) || t.raise("Invalid property value");
2400
2400
  };
2401
- v.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
2401
+ x.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
2402
2402
  t.unicodeProperties.binary.test(e) || t.raise("Invalid property name");
2403
2403
  };
2404
- v.regexp_eatUnicodePropertyName = function(t) {
2404
+ x.regexp_eatUnicodePropertyName = function(t) {
2405
2405
  var e = 0;
2406
2406
  for (t.lastStringValue = ""; Fs(e = t.current()); )
2407
2407
  t.lastStringValue += $e(e), t.advance();
@@ -2410,7 +2410,7 @@ v.regexp_eatUnicodePropertyName = function(t) {
2410
2410
  function Fs(t) {
2411
2411
  return Os(t) || t === 95;
2412
2412
  }
2413
- v.regexp_eatUnicodePropertyValue = function(t) {
2413
+ x.regexp_eatUnicodePropertyValue = function(t) {
2414
2414
  var e = 0;
2415
2415
  for (t.lastStringValue = ""; tr(e = t.current()); )
2416
2416
  t.lastStringValue += $e(e), t.advance();
@@ -2419,10 +2419,10 @@ v.regexp_eatUnicodePropertyValue = function(t) {
2419
2419
  function tr(t) {
2420
2420
  return Fs(t) || Xe(t);
2421
2421
  }
2422
- v.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
2422
+ x.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
2423
2423
  return this.regexp_eatUnicodePropertyValue(t);
2424
2424
  };
2425
- v.regexp_eatCharacterClass = function(t) {
2425
+ x.regexp_eatCharacterClass = function(t) {
2426
2426
  if (t.eat(
2427
2427
  91
2428
2428
  /* [ */
@@ -2439,7 +2439,7 @@ v.regexp_eatCharacterClass = function(t) {
2439
2439
  }
2440
2440
  return !1;
2441
2441
  };
2442
- v.regexp_classRanges = function(t) {
2442
+ x.regexp_classRanges = function(t) {
2443
2443
  for (; this.regexp_eatClassAtom(t); ) {
2444
2444
  var e = t.lastIntValue;
2445
2445
  if (t.eat(
@@ -2451,7 +2451,7 @@ v.regexp_classRanges = function(t) {
2451
2451
  }
2452
2452
  }
2453
2453
  };
2454
- v.regexp_eatClassAtom = function(t) {
2454
+ x.regexp_eatClassAtom = function(t) {
2455
2455
  var e = t.pos;
2456
2456
  if (t.eat(
2457
2457
  92
@@ -2468,7 +2468,7 @@ v.regexp_eatClassAtom = function(t) {
2468
2468
  var i = t.current();
2469
2469
  return i !== 93 ? (t.lastIntValue = i, t.advance(), !0) : !1;
2470
2470
  };
2471
- v.regexp_eatClassEscape = function(t) {
2471
+ x.regexp_eatClassEscape = function(t) {
2472
2472
  var e = t.pos;
2473
2473
  if (t.eat(
2474
2474
  98
@@ -2490,11 +2490,11 @@ v.regexp_eatClassEscape = function(t) {
2490
2490
  }
2491
2491
  return this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t);
2492
2492
  };
2493
- v.regexp_eatClassControlLetter = function(t) {
2493
+ x.regexp_eatClassControlLetter = function(t) {
2494
2494
  var e = t.current();
2495
2495
  return Xe(e) || e === 95 ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2496
2496
  };
2497
- v.regexp_eatHexEscapeSequence = function(t) {
2497
+ x.regexp_eatHexEscapeSequence = function(t) {
2498
2498
  var e = t.pos;
2499
2499
  if (t.eat(
2500
2500
  120
@@ -2506,7 +2506,7 @@ v.regexp_eatHexEscapeSequence = function(t) {
2506
2506
  }
2507
2507
  return !1;
2508
2508
  };
2509
- v.regexp_eatDecimalDigits = function(t) {
2509
+ x.regexp_eatDecimalDigits = function(t) {
2510
2510
  var e = t.pos, s = 0;
2511
2511
  for (t.lastIntValue = 0; Xe(s = t.current()); )
2512
2512
  t.lastIntValue = 10 * t.lastIntValue + (s - 48), t.advance();
@@ -2515,7 +2515,7 @@ v.regexp_eatDecimalDigits = function(t) {
2515
2515
  function Xe(t) {
2516
2516
  return t >= 48 && t <= 57;
2517
2517
  }
2518
- v.regexp_eatHexDigits = function(t) {
2518
+ x.regexp_eatHexDigits = function(t) {
2519
2519
  var e = t.pos, s = 0;
2520
2520
  for (t.lastIntValue = 0; Ls(s = t.current()); )
2521
2521
  t.lastIntValue = 16 * t.lastIntValue + js(s), t.advance();
@@ -2527,7 +2527,7 @@ function Ls(t) {
2527
2527
  function js(t) {
2528
2528
  return t >= 65 && t <= 70 ? 10 + (t - 65) : t >= 97 && t <= 102 ? 10 + (t - 97) : t - 48;
2529
2529
  }
2530
- v.regexp_eatLegacyOctalEscapeSequence = function(t) {
2530
+ x.regexp_eatLegacyOctalEscapeSequence = function(t) {
2531
2531
  if (this.regexp_eatOctalDigit(t)) {
2532
2532
  var e = t.lastIntValue;
2533
2533
  if (this.regexp_eatOctalDigit(t)) {
@@ -2539,14 +2539,14 @@ v.regexp_eatLegacyOctalEscapeSequence = function(t) {
2539
2539
  }
2540
2540
  return !1;
2541
2541
  };
2542
- v.regexp_eatOctalDigit = function(t) {
2542
+ x.regexp_eatOctalDigit = function(t) {
2543
2543
  var e = t.current();
2544
2544
  return Ms(e) ? (t.lastIntValue = e - 48, t.advance(), !0) : (t.lastIntValue = 0, !1);
2545
2545
  };
2546
2546
  function Ms(t) {
2547
2547
  return t >= 48 && t <= 55;
2548
2548
  }
2549
- v.regexp_eatFixedHexDigits = function(t, e) {
2549
+ x.regexp_eatFixedHexDigits = function(t, e) {
2550
2550
  var s = t.pos;
2551
2551
  t.lastIntValue = 0;
2552
2552
  for (var i = 0; i < e; ++i) {
@@ -3057,7 +3057,7 @@ I.acorn = {
3057
3057
  SourceLocation: ze,
3058
3058
  getLineInfo: gs,
3059
3059
  Node: Nt,
3060
- TokenType: w,
3060
+ TokenType: E,
3061
3061
  tokTypes: o,
3062
3062
  keywordTypes: kt,
3063
3063
  TokContext: q,
@@ -3715,14 +3715,14 @@ class j {
3715
3715
  return this.collectDeclVars = r, this.collectDeclFuncs = n, () => {
3716
3716
  const d = s.getCurrentScope(), f = function(...m) {
3717
3717
  s.callStack.push(`${a}`);
3718
- const g = s.getCurrentScope(), x = hr(d, `FunctionScope(${a})`);
3719
- s.setCurrentScope(x), s.addDeclarationsToScope(h, p, x), a && (x.data[a] = f), x.data.arguments = arguments, c.forEach((R, C) => {
3720
- x.data[R()] = m[C];
3718
+ const g = s.getCurrentScope(), v = hr(d, `FunctionScope(${a})`);
3719
+ s.setCurrentScope(v), s.addDeclarationsToScope(h, p, v), a && (v.data[a] = f), v.data.arguments = arguments, c.forEach((R, C) => {
3720
+ v.data[R()] = m[C];
3721
3721
  });
3722
- const E = s.getCurrentContext();
3722
+ const w = s.getCurrentContext();
3723
3723
  s.setCurrentContext(this);
3724
3724
  const A = l();
3725
- if (s.setCurrentContext(E), s.setCurrentScope(g), s.callStack.pop(), A instanceof J)
3725
+ if (s.setCurrentContext(w), s.setCurrentScope(g), s.callStack.pop(), A instanceof J)
3726
3726
  return A.value;
3727
3727
  };
3728
3728
  return Xt(f, a), Object.defineProperty(f, "length", {
@@ -4529,28 +4529,31 @@ function Cr(t, e) {
4529
4529
  const { url: s, mockTemplate: i, method: r = "get", settings: n = {} } = e;
4530
4530
  if (s && i)
4531
4531
  try {
4532
- const a = ct(s) ? new URL(s).pathname : s, u = ni(`(.*)${a}(.*)`), c = ai(a, { decode: decodeURIComponent }), l = Ne(i, {}, !0);
4532
+ const a = ct(s) ? new URL(s).pathname : s, u = ni(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
4533
+ u.source + "([?#].*)?$",
4534
+ u.flags
4535
+ ), l = ai(a, { decode: decodeURIComponent }), h = Ne(i, {}, !0);
4533
4536
  t.mock(
4534
- u,
4537
+ c,
4535
4538
  r.toLowerCase(),
4536
- (h) => {
4537
- const p = le.parse(h.url) || {}, d = n.type || "form";
4538
- let f = h.body instanceof FormData ? oi(h.body) : h.body;
4539
- if (typeof f == "string")
4540
- if (d === "json")
4539
+ (p) => {
4540
+ const d = le.parse(p.url) || {}, f = n.type || "form";
4541
+ let m = p.body instanceof FormData ? oi(p.body) : p.body;
4542
+ if (typeof m == "string")
4543
+ if (f === "json")
4541
4544
  try {
4542
- f = JSON.parse(f);
4543
- } catch (x) {
4544
- console.warn("[Mock.mock]", x);
4545
+ m = JSON.parse(m);
4546
+ } catch (w) {
4547
+ console.warn("[Mock.mock]", w);
4545
4548
  }
4546
4549
  else
4547
- f = le.parse(f);
4548
- const m = ct(h.url) ? new URL(h.url).pathname : h.url.split("?")[0], g = c(m)?.params;
4549
- Object.assign(h, { data: f, params: g, query: p });
4550
+ m = le.parse(m);
4551
+ const g = ct(p.url) ? new URL(p.url).pathname : p.url.split("?")[0], v = l(g)?.params;
4552
+ Object.assign(p, { data: m, params: v, query: d });
4550
4553
  try {
4551
- return t.mock(l(h));
4552
- } catch (x) {
4553
- return console.warn("[mockApi]", u, h, x), null;
4554
+ return t.mock(h(p));
4555
+ } catch (w) {
4556
+ return console.warn("[mockApi]", c, p, w), null;
4554
4557
  }
4555
4558
  }
4556
4559
  );
@@ -4713,7 +4716,7 @@ function vt(t) {
4713
4716
  c.value.state ?? {},
4714
4717
  h
4715
4718
  );
4716
- const m = f ? Vr(e, c.value.refs ?? {}, h) : {}, g = f ? Or(e, c.value.reactives ?? {}, h) : {}, x = Ar(e, c.value.computed ?? {}, h), E = Pr(c.value.methods ?? {}, h), A = Tr(e, c.value.inject, h), R = Nr(
4719
+ const m = f ? Vr(e, c.value.refs ?? {}, h) : {}, g = f ? Or(e, c.value.reactives ?? {}, h) : {}, v = Ar(e, c.value.computed ?? {}, h), w = Pr(c.value.methods ?? {}, h), A = Tr(e, c.value.inject, h), R = Nr(
4717
4720
  c.value.dataSources || {},
4718
4721
  h
4719
4722
  );
@@ -4727,8 +4730,8 @@ function vt(t) {
4727
4730
  ...m,
4728
4731
  ...g,
4729
4732
  ...A,
4730
- ...x,
4731
- ...E,
4733
+ ...v,
4734
+ ...w,
4732
4735
  ...R,
4733
4736
  ...C
4734
4737
  };
@@ -4756,8 +4759,8 @@ function vt(t) {
4756
4759
  ...d,
4757
4760
  ...m,
4758
4761
  ...g,
4759
- ...x,
4760
- ...E
4762
+ ...v,
4763
+ ...w
4761
4764
  };
4762
4765
  },
4763
4766
  emits: Er(c.value.emits),
@@ -5083,7 +5086,7 @@ function On() {
5083
5086
  }
5084
5087
  function be(t, e, s = xe, i = Br, r = [], n = !1, a = 0) {
5085
5088
  if (!t || !t.name || t.invisible) return null;
5086
- const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: x, vHtml: E, others: A } = Ws(l);
5089
+ const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: v, vHtml: w, others: A } = Ws(l);
5087
5090
  if (!n && (p || d))
5088
5091
  return null;
5089
5092
  if (h && !$r(h, e))
@@ -5103,10 +5106,10 @@ function be(t, e, s = xe, i = Br, r = [], n = !1, a = 0) {
5103
5106
  );
5104
5107
  if (t.name === "slot")
5105
5108
  return Jr(s, t, se, C, i);
5106
- x && Object.assign(se, C.__parseExpression(x.value)), m && (se.style = Object.assign(
5109
+ v && Object.assign(se, C.__parseExpression(v.value)), m && (se.style = Object.assign(
5107
5110
  se.style ?? {},
5108
5111
  Xr(m, C)
5109
- )), E && Object.assign(se, Yr(E, C)), g.forEach((G) => {
5112
+ )), w && Object.assign(se, Yr(w, C)), g.forEach((G) => {
5110
5113
  us.includes(t.name) ? Object.assign(se, Zr(G, C)) : Object.assign(se, en(s, G, C));
5111
5114
  });
5112
5115
  const Ys = tn(
@@ -5420,16 +5423,16 @@ function Fn(t) {
5420
5423
  fi(() => {
5421
5424
  const { name: f, params: m, meta: g } = n;
5422
5425
  if (f === we) {
5423
- const x = r.getPage(m.id);
5424
- h(x, g);
5426
+ const v = r.getPage(m.id);
5427
+ h(v, g);
5425
5428
  } else if (f === De) {
5426
- const x = r.getHomepage();
5427
- h(x, g);
5429
+ const v = r.getHomepage();
5430
+ h(v, g);
5428
5431
  } else {
5429
- const x = g.__vtj__;
5430
- if (x) {
5431
- const E = r.getPage(x);
5432
- h(E, g);
5432
+ const v = g.__vtj__;
5433
+ if (v) {
5434
+ const w = r.getPage(v);
5435
+ h(w, g);
5433
5436
  } else
5434
5437
  u.value = !g.mask, c.value = !!g.pure;
5435
5438
  }
@@ -5475,7 +5478,7 @@ function _t(t) {
5475
5478
  for (const l of i) {
5476
5479
  const { id: h, title: p, dir: d, layout: f, children: m, meta: g } = l;
5477
5480
  if (d) {
5478
- const x = _t({
5481
+ const v = _t({
5479
5482
  name: e,
5480
5483
  prefix: s,
5481
5484
  component: r,
@@ -5484,9 +5487,9 @@ function _t(t) {
5484
5487
  loader: n,
5485
5488
  pages: m || []
5486
5489
  });
5487
- c.push(...x);
5490
+ c.push(...v);
5488
5491
  } else if (f) {
5489
- const x = _t({
5492
+ const v = _t({
5490
5493
  name: e,
5491
5494
  prefix: s,
5492
5495
  component: r,
@@ -5494,7 +5497,7 @@ function _t(t) {
5494
5497
  homepage: u,
5495
5498
  loader: n,
5496
5499
  pages: m || []
5497
- }), E = {
5500
+ }), w = {
5498
5501
  name: `layout_${h}`,
5499
5502
  path: s,
5500
5503
  component: () => n(h),
@@ -5504,12 +5507,12 @@ function _t(t) {
5504
5507
  ...g,
5505
5508
  __vtj__: h
5506
5509
  },
5507
- children: x
5510
+ children: v
5508
5511
  };
5509
- c.push(E), c.push(ut(l, t));
5512
+ c.push(w), c.push(ut(l, t));
5510
5513
  } else if (c.push(ut(l, t)), u === h) {
5511
- const x = ut(l, t);
5512
- x.path = "", x.name = `home_${h}`, c.push(x);
5514
+ const v = ut(l, t);
5515
+ v.path = "", v.name = `home_${h}`, c.push(v);
5513
5516
  }
5514
5517
  }
5515
5518
  return c;
@@ -5714,11 +5717,11 @@ class mn extends ti {
5714
5717
  );
5715
5718
  Object.assign(this.libraryLocaleMap, m);
5716
5719
  for (const g of l) {
5717
- const x = i[g], E = e[g];
5718
- if (E)
5719
- r[g] = E;
5720
- else if (x)
5721
- e[g] = r[g] = await x();
5720
+ const v = i[g], w = e[g];
5721
+ if (w)
5722
+ r[g] = w;
5723
+ else if (v)
5724
+ e[g] = r[g] = await v();
5722
5725
  else {
5723
5726
  const R = h[g] || [];
5724
5727
  for (const C of R)
@@ -5732,17 +5735,17 @@ class mn extends ti {
5732
5735
  }
5733
5736
  }
5734
5737
  if (u === "development") {
5735
- for (const x of p)
5736
- await qt(le.append(x, { v: Ce }));
5738
+ for (const v of p)
5739
+ await qt(le.append(v, { v: Ce }));
5737
5740
  const g = this.materials || {};
5738
- for (const x of d) {
5739
- const E = e[f[x]], A = E?.default || E, R = si[x];
5741
+ for (const v of d) {
5742
+ const w = e[f[v]], A = w?.default || w, R = si[v];
5740
5743
  if (R)
5741
5744
  A && R.forEach((C) => {
5742
5745
  n[C] = A[C];
5743
5746
  });
5744
5747
  else {
5745
- const C = g[x] ? (await g[x]()).default : e[x];
5748
+ const C = g[v] ? (await g[v]()).default : e[v];
5746
5749
  C && A && (C.components || []).forEach((U) => {
5747
5750
  n[U.name] = yi(U, A);
5748
5751
  });