@guihz/trading-vue-editor-tes 0.1.93 → 0.1.94

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.
@@ -415,7 +415,7 @@ var o8 = l6((Xk, gh) => {
415
415
  return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
416
416
  }, T(z);
417
417
  }
418
- function w(z, a) {
418
+ function D(z, a) {
419
419
  for (var _ = 0; _ < a.length; _++) {
420
420
  var l = a[_];
421
421
  l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(z, (O = function(f, m) {
@@ -471,7 +471,7 @@ var o8 = l6((Xk, gh) => {
471
471
  }, this).reduce(function(O, f) {
472
472
  return O + f;
473
473
  }, 0);
474
- } }]) && w(a.prototype, _), Object.defineProperty(a, "prototype", { writable: !1 }), z;
474
+ } }]) && D(a.prototype, _), Object.defineProperty(a, "prototype", { writable: !1 }), z;
475
475
  }();
476
476
  function N(z, a) {
477
477
  if (typeof a != "function" && a !== null) throw new TypeError("Super expression must either be null or a function");
@@ -482,7 +482,7 @@ var o8 = l6((Xk, gh) => {
482
482
  return _.__proto__ = l, _;
483
483
  }, B(z, a);
484
484
  }
485
- function D(z) {
485
+ function w(z) {
486
486
  var a = function() {
487
487
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
488
488
  if (typeof Proxy == "function") return !0;
@@ -567,7 +567,7 @@ var o8 = l6((Xk, gh) => {
567
567
  } }]), z;
568
568
  }(), g0 = function(z) {
569
569
  N(_, z);
570
- var a = D(_);
570
+ var a = w(_);
571
571
  function _(l, O) {
572
572
  var f;
573
573
  L(this, _), f = a.call(this);
@@ -613,7 +613,7 @@ var o8 = l6((Xk, gh) => {
613
613
  } }]), _;
614
614
  }(e0), b0 = function(z) {
615
615
  N(_, z);
616
- var a = D(_);
616
+ var a = w(_);
617
617
  function _(l, O) {
618
618
  var f;
619
619
  L(this, _), f = a.call(this);
@@ -20967,7 +20967,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
20967
20967
  for (var K = 0; K < o0.length; K++)
20968
20968
  o0[K] = x(o0[K]);
20969
20969
  }
20970
- function w(o0, K) {
20970
+ function D(o0, K) {
20971
20971
  for (var p0 = 0; p0 < K; p0++)
20972
20972
  o0[p0] = Math.round((o0[p0 - 1] || 0) + o0[p0] * 6e4);
20973
20973
  o0[K - 1] = 1 / 0;
@@ -20980,7 +20980,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
20980
20980
  }
20981
20981
  function q(o0) {
20982
20982
  var K = o0.split("|"), p0 = K[2].split(" "), q0 = K[3].split(""), j0 = K[4].split(" ");
20983
- return T(p0), T(q0), T(j0), w(j0, q0.length), {
20983
+ return T(p0), T(q0), T(j0), D(j0, q0.length), {
20984
20984
  name: K[0],
20985
20985
  abbrs: y(K[1].split(" "), q0),
20986
20986
  offsets: y(p0, q0),
@@ -21035,7 +21035,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
21035
21035
  return this.offsets[this._index(o0)];
21036
21036
  }
21037
21037
  };
21038
- function D(o0, K) {
21038
+ function w(o0, K) {
21039
21039
  this.name = o0, this.zones = K;
21040
21040
  }
21041
21041
  function $(o0) {
@@ -21135,7 +21135,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
21135
21135
  var K, p0, q0, j0;
21136
21136
  if (!(!o0 || !o0.length))
21137
21137
  for (K = 0; K < o0.length; K++)
21138
- j0 = o0[K].split("|"), p0 = j0[0].toUpperCase(), q0 = j0[1].split(" "), s[p0] = new D(
21138
+ j0 = o0[K].split("|"), p0 = j0[0].toUpperCase(), q0 = j0[1].split(" "), s[p0] = new w(
21139
21139
  p0,
21140
21140
  q0
21141
21141
  );
@@ -22918,7 +22918,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
22918
22918
  exportFuncHasInputErr: "导出的函数 `$func` 依赖于 `input` 变量 `$name`,这是不被允许的。",
22919
22919
  libraryTitleIsKeywordErr: "在 `library` 调用中参数 `title` 的值无效。标记 $name 不能用作库标题。",
22920
22920
  exportFuncUseGlobalVarErr: "不能在导出的函数 `$func` 中使用全局变量",
22921
- loopRuntimeErr: "循环执行时间过长(超过500毫秒)",
22921
+ loopRuntimeErr: "循环执行时间过长(超过5000毫秒)",
22922
22922
  paramsErr: "参数 `$param` 的值 $value 无效,该参数属于函数 `$func`。允许的取值为:$targetVal",
22923
22923
  displayErr: "在`$func`调用中,参数`$param`无效。可选值:$values",
22924
22924
  exportFuncUseReqErr: "不能在导出的函数 `$name()` 中使用 `request.*()` 调用",
@@ -23184,12 +23184,12 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
23184
23184
  wh.exports;
23185
23185
  (function(n, e) {
23186
23186
  (function() {
23187
- var t, r = "4.17.23", i = 200, s = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", p = "Invalid `variable` option passed into `_.template`", M = "__lodash_hash_undefined__", d = 500, A = "__lodash_placeholder__", g = 1, v = 2, x = 4, T = 1, w = 2, y = 1, q = 2, N = 4, B = 8, D = 16, $ = 32, R = 64, L = 128, P = 256, Z = 512, e0 = 30, g0 = "...", b0 = 800, N0 = 16, k0 = 1, k1 = 2, K0 = 3, z1 = 1 / 0, Ae = 9007199254740991, Fe = 17976931348623157e292, p1 = NaN, we = 4294967295, N1 = we - 1, b1 = we >>> 1, o1 = [
23187
+ var t, r = "4.17.23", i = 200, s = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", p = "Invalid `variable` option passed into `_.template`", M = "__lodash_hash_undefined__", d = 500, A = "__lodash_placeholder__", g = 1, v = 2, x = 4, T = 1, D = 2, y = 1, q = 2, N = 4, B = 8, w = 16, $ = 32, R = 64, L = 128, P = 256, Z = 512, e0 = 30, g0 = "...", b0 = 800, N0 = 16, k0 = 1, k1 = 2, K0 = 3, z1 = 1 / 0, Ae = 9007199254740991, Fe = 17976931348623157e292, p1 = NaN, we = 4294967295, N1 = we - 1, b1 = we >>> 1, o1 = [
23188
23188
  ["ary", L],
23189
23189
  ["bind", y],
23190
23190
  ["bindKey", q],
23191
23191
  ["curry", B],
23192
- ["curryRight", D],
23192
+ ["curryRight", w],
23193
23193
  ["flip", Z],
23194
23194
  ["partial", $],
23195
23195
  ["partialRight", R],
@@ -24274,7 +24274,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
24274
24274
  var P0 = new pr();
24275
24275
  if (k)
24276
24276
  var Z0 = k(S0, C0, f0, u, h, P0);
24277
- if (!(Z0 === t ? io(C0, S0, T | w, k, P0) : Z0))
24277
+ if (!(Z0 === t ? io(C0, S0, T | D, k, P0) : Z0))
24278
24278
  return !1;
24279
24279
  }
24280
24280
  }
@@ -24332,7 +24332,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
24332
24332
  function WM(u, h) {
24333
24333
  return Zp(u) && ho(h) ? UM(Mr(u), h) : function(E) {
24334
24334
  var k = Nf(E, u);
24335
- return k === t && k === h ? Sf(E, u) : io(h, k, T | w);
24335
+ return k === t && k === h ? Sf(E, u) : io(h, k, T | D);
24336
24336
  };
24337
24337
  }
24338
24338
  function Sc(u, h, E, k, F) {
@@ -24853,7 +24853,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
24853
24853
  });
24854
24854
  }
24855
24855
  function Gc(u, h, E, k, F, G, r0, a0, f0, S0) {
24856
- var C0 = h & L, P0 = h & y, Z0 = h & q, d1 = h & (B | D), w1 = h & Z, pe = Z0 ? t : uo(u);
24856
+ var C0 = h & L, P0 = h & y, Z0 = h & q, d1 = h & (B | w), w1 = h & Z, pe = Z0 ? t : uo(u);
24857
24857
  function D1() {
24858
24858
  for (var he = arguments.length, de = y0(he), $r = he; $r--; )
24859
24859
  de[$r] = arguments[$r];
@@ -24993,9 +24993,9 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
24993
24993
  r0,
24994
24994
  a0
24995
24995
  ];
24996
- if (Z0 && tu(d1, Z0), u = d1[0], h = d1[1], E = d1[2], k = d1[3], F = d1[4], a0 = d1[9] = d1[9] === t ? f0 ? 0 : u.length : wt(d1[9] - S0, 0), !a0 && h & (B | D) && (h &= -25), !h || h == y)
24996
+ if (Z0 && tu(d1, Z0), u = d1[0], h = d1[1], E = d1[2], k = d1[3], F = d1[4], a0 = d1[9] = d1[9] === t ? f0 ? 0 : u.length : wt(d1[9] - S0, 0), !a0 && h & (B | w) && (h &= -25), !h || h == y)
24997
24997
  var w1 = Gl(u, h, E);
24998
- else h == B || h == D ? w1 = DM(u, h, a0) : (h == $ || h == (y | $)) && !F.length ? w1 = _f(u, h, E, k) : w1 = Gc.apply(t, d1);
24998
+ else h == B || h == w ? w1 = DM(u, h, a0) : (h == $ || h == (y | $)) && !F.length ? w1 = _f(u, h, E, k) : w1 = Gc.apply(t, d1);
24999
24999
  var pe = Z0 ? Bc : fo;
25000
25000
  return i2(pe(w1, d1), u, h);
25001
25001
  }
@@ -25015,7 +25015,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
25015
25015
  var S0 = G.get(u), C0 = G.get(h);
25016
25016
  if (S0 && C0)
25017
25017
  return S0 == h && C0 == u;
25018
- var P0 = -1, Z0 = !0, d1 = E & w ? new ri() : t;
25018
+ var P0 = -1, Z0 = !0, d1 = E & D ? new ri() : t;
25019
25019
  for (G.set(u, h), G.set(h, u); ++P0 < a0; ) {
25020
25020
  var w1 = u[P0], pe = h[P0];
25021
25021
  if (k)
@@ -25067,7 +25067,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
25067
25067
  var S0 = r0.get(u);
25068
25068
  if (S0)
25069
25069
  return S0 == h;
25070
- k |= w, r0.set(u, h);
25070
+ k |= D, r0.set(u, h);
25071
25071
  var C0 = IM(a0(u), a0(h), k, F, G, r0);
25072
25072
  return r0.delete(u), C0;
25073
25073
  case be:
@@ -25906,7 +25906,7 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
25906
25906
  }
25907
25907
  function VO(u, h, E) {
25908
25908
  h = E ? t : h;
25909
- var k = ki(u, D, t, t, t, t, t, h);
25909
+ var k = ki(u, w, t, t, t, t, t, h);
25910
25910
  return k.placeholder = VO.placeholder, k;
25911
25911
  }
25912
25912
  function jO(u, h, E) {
@@ -28510,10 +28510,10 @@ function print() { __p += __j.call(arguments, '') }
28510
28510
  returns: M,
28511
28511
  hasRequest: this._hasRequest
28512
28512
  };
28513
- let w = this._functions.get(v);
28514
- if (w) {
28515
- const y = w.length;
28516
- T.index = y, e.index = y, this._verifyFuncRepeat(w, T, r), w.push(T), this._overloadsFuncs.push({
28513
+ let D = this._functions.get(v);
28514
+ if (D) {
28515
+ const y = D.length;
28516
+ T.index = y, e.index = y, this._verifyFuncRepeat(D, T, r), D.push(T), this._overloadsFuncs.push({
28517
28517
  name: v,
28518
28518
  index: y,
28519
28519
  line: t.lineNumber,
@@ -28521,8 +28521,8 @@ function print() { __p += __j.call(arguments, '') }
28521
28521
  endColumn: t.column + v.length
28522
28522
  });
28523
28523
  } else
28524
- w = [T];
28525
- this._functions.set(v, w);
28524
+ D = [T];
28525
+ this._functions.set(v, D);
28526
28526
  }
28527
28527
  _verifyFuncRepeat(e, t, r) {
28528
28528
  const { args: i } = t;
@@ -28608,17 +28608,17 @@ function print() { __p += __j.call(arguments, '') }
28608
28608
  _overloadsFuncGetTypes(e, t, r, i, s) {
28609
28609
  let o = [], p = [], M = [], d = 0, A = 0;
28610
28610
  for (const [x, T] of e.entries()) {
28611
- const { args: w, returnedTypes: y, name: q } = T, N = i || t.params[0] || t[w[0].name], { errMsg: B, warnMsg: D, matchCount: $ } = this._overloadsCheckArgs(t, w, q, r, N);
28611
+ const { args: D, returnedTypes: y, name: q } = T, N = i || t.params[0] || t[D[0].name], { errMsg: B, warnMsg: w, matchCount: $ } = this._overloadsCheckArgs(t, D, q, r, N);
28612
28612
  if ($ > A && (d = x, A = $), x === 0)
28613
- p = B, M = D, B.length || (o = y);
28613
+ p = B, M = w, B.length || (o = y);
28614
28614
  else if (B.length)
28615
- (p[0]?.isLenErr && !B[0]?.isLenErr || p.length > B.length) && (p = B, M = D, d = x);
28615
+ (p[0]?.isLenErr && !B[0]?.isLenErr || p.length > B.length) && (p = B, M = w, d = x);
28616
28616
  else if (!o.length)
28617
- o = y, p = B, M = D, d = x;
28617
+ o = y, p = B, M = w, d = x;
28618
28618
  else
28619
28619
  for (const [R, L] of o.entries()) {
28620
28620
  const P = y[R];
28621
- this._priorityComparison(L, y[R]) || (o[R] = P, p = B, M = D, d = R);
28621
+ this._priorityComparison(L, y[R]) || (o[R] = P, p = B, M = w, d = R);
28622
28622
  }
28623
28623
  }
28624
28624
  for (const x of p)
@@ -28633,8 +28633,8 @@ function print() { __p += __j.call(arguments, '') }
28633
28633
  startColumn: g.start.column + 1,
28634
28634
  endColumn: g.start.column + v.length
28635
28635
  }), s) {
28636
- const x = e[d], { name: T, index: w, isUser: y } = x;
28637
- this._hasMemberIndexVerify(x, r, s), s.index = w || d, y && (s.index = w || 0, s.funcName = T);
28636
+ const x = e[d], { name: T, index: D, isUser: y } = x;
28637
+ this._hasMemberIndexVerify(x, r, s), s.index = D || d, y && (s.index = D || 0, s.funcName = T);
28638
28638
  }
28639
28639
  return this._funcArgsAddOriginName(t, e[d].args, v), o.length ? o : [M0.UNDETERMINED];
28640
28640
  }
@@ -28671,11 +28671,11 @@ function print() { __p += __j.call(arguments, '') }
28671
28671
  ctx: i
28672
28672
  });
28673
28673
  for (const [x, T] of t.entries()) {
28674
- let w = o[T.name];
28675
- if (x < p.length && (w && A.push({
28674
+ let D = o[T.name];
28675
+ if (x < p.length && (D && A.push({
28676
28676
  msg: V(Ii.moreSameArg, { arg: T.name }),
28677
28677
  ctx: i
28678
- }), w = p[x]), !w)
28678
+ }), D = p[x]), !D)
28679
28679
  T.required && A.push({
28680
28680
  msg: V(U1.requiredParamErr, {
28681
28681
  name: r,
@@ -28684,11 +28684,11 @@ function print() { __p += __j.call(arguments, '') }
28684
28684
  ctx: i
28685
28685
  });
28686
28686
  else {
28687
- w.index = x;
28688
- const y = w.type !== `${M0.NA}` ? this._checkArg(w, T, r, w.ctx, !0, g) : "";
28687
+ D.index = x;
28688
+ const y = D.type !== `${M0.NA}` ? this._checkArg(D, T, r, D.ctx, !0, g) : "";
28689
28689
  y ? A.push({
28690
28690
  msg: y,
28691
- ctx: w.ctx
28691
+ ctx: D.ctx
28692
28692
  }) : v++, delete o[T.name];
28693
28693
  }
28694
28694
  }
@@ -28740,9 +28740,9 @@ function print() { __p += __j.call(arguments, '') }
28740
28740
  }), i), A = !0);
28741
28741
  else {
28742
28742
  T.index = v;
28743
- const w = T.type !== `${M0.NA}` ? this._checkArg(T, x, r, T.ctx) : "";
28744
- if (w)
28745
- this._errorHandle(w, T.ctx), A = !0;
28743
+ const D = T.type !== `${M0.NA}` ? this._checkArg(T, x, r, T.ctx) : "";
28744
+ if (D)
28745
+ this._errorHandle(D, T.ctx), A = !0;
28746
28746
  else if (r === "security" && x.name === "expression")
28747
28747
  if (T.ruleType === e1.Brackethesized)
28748
28748
  g = T.exprs.map((y) => this._typeReplace(s, y.type));
@@ -28822,14 +28822,14 @@ function print() { __p += __j.call(arguments, '') }
28822
28822
  default:
28823
28823
  const T = this._removePrefix(e.type);
28824
28824
  if (e.arg && e.arg.isArg && !s) {
28825
- const w = g.find((y) => y.endsWith(T));
28826
- if (w) {
28827
- e.type = w, e.arg.type = w;
28825
+ const D = g.find((y) => y.endsWith(T));
28826
+ if (D) {
28827
+ e.type = D, e.arg.type = D;
28828
28828
  return;
28829
28829
  }
28830
28830
  }
28831
- for (const w of g) {
28832
- const y = this._removePrefix(w);
28831
+ for (const D of g) {
28832
+ const y = this._removePrefix(D);
28833
28833
  if (y === T || y === M0.FLOAT && T === M0.INT) {
28834
28834
  const q = this._getPrefix(e.type), N = this._getPrefix(g[0]);
28835
28835
  if (O2.indexOf(q) >= O2.indexOf(N))
@@ -28905,20 +28905,20 @@ function print() { __p += __j.call(arguments, '') }
28905
28905
  case e1.IfStatement:
28906
28906
  if (!this._isNeedCalc && (!this._isInFunc || this._isInFunc && this._isEndExpr === !1)) return [M0.UNDETERMINED];
28907
28907
  if (!d.filter((y) => y && y.length).length) return [M0.UNDETERMINED];
28908
- let v = d[0] || [], x = v.length <= 1 ? v[0] : `[${v.join(", ")}]`, T = 0, w = 0;
28908
+ let v = d[0] || [], x = v.length <= 1 ? v[0] : `[${v.join(", ")}]`, T = 0, D = 0;
28909
28909
  for (const y of d.slice(1))
28910
28910
  if (y)
28911
- if (T++, x += y.length <= 1 ? `; ${y[0]}` : `; [${y.join(", ")}]`, y.length !== v.length) w = T;
28911
+ if (T++, x += y.length <= 1 ? `; ${y[0]}` : `; [${y.join(", ")}]`, y.length !== v.length) D = T;
28912
28912
  else
28913
28913
  for (const [q, N] of v.entries())
28914
28914
  if (this._compareType(y[q], N, !0))
28915
28915
  (y[q].includes(M0.FLOAT) && !N.includes(M0.FLOAT) || v[q] === `${M0.NA}`) && (v[q] = y[q]);
28916
28916
  else {
28917
- w = T;
28917
+ D = T;
28918
28918
  break;
28919
28919
  }
28920
- if (w) {
28921
- const y = A[w].slice(-1)[0], q = Array.isArray(y) ? y.slice(-1)[0] : y;
28920
+ if (D) {
28921
+ const y = A[D].slice(-1)[0], q = Array.isArray(y) ? y.slice(-1)[0] : y;
28922
28922
  this._errorHandle(V(U1.ifOrSwitchTypeErr, {
28923
28923
  keyword: "if",
28924
28924
  types: x
@@ -29096,22 +29096,22 @@ function print() { __p += __j.call(arguments, '') }
29096
29096
  this._isInLoop = !0;
29097
29097
  const v = `$start${this._count + 1}`;
29098
29098
  g || (this._count += 1);
29099
- const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, w = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`;
29099
+ const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, D = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`;
29100
29100
  t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
29101
- const q = this._parserSingleExpression(M), N = this._parserSingleExpression(d), B = A ? this._parserSingleExpression(A) : "", D = this._parserBlockLine(i, t, !1, !0);
29101
+ const q = this._parserSingleExpression(M), N = this._parserSingleExpression(d), B = A ? this._parserSingleExpression(A) : "", w = this._parserBlockLine(i, t, !1, !0);
29102
29102
  mo.includes(s) && (s = `$${s}`);
29103
29103
  const $ = `var ${v} = Date.now()`;
29104
- let L = `for (var ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${w}) * ${y} >= 0; ${s}-=(${B || "1"}) * ${y}){
29104
+ let L = `for (var ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${D}) * ${y} >= 0; ${s}-=(${B || "1"}) * ${y}){
29105
29105
  if (Date.now() - ${v} > 500) {
29106
29106
  throw new Error('${U1.loopRuntimeErr}')
29107
29107
  }
29108
29108
  ${x}++
29109
- ${D}
29109
+ ${w}
29110
29110
  }`;
29111
29111
  return L = `${$};
29112
29112
  ${g ? "" : `var ${x} = 0`};
29113
- const ${w} = ${d?.type?.endsWith(" int") || !B || d?.type?.endsWith(" int") ? `Math.round(${N})` : N};
29114
- const ${y} = (${q})>${w} ? 1 : -1;
29113
+ const ${D} = ${d?.type?.endsWith(" int") || !B || d?.type?.endsWith(" int") ? `Math.round(${N})` : N};
29114
+ const ${y} = (${q})>${D} ? 1 : -1;
29115
29115
  ${L}`, t || this._codesCol[this._blockCount].push({
29116
29116
  code: L,
29117
29117
  depends: this._getDepends(T)
@@ -29136,11 +29136,11 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
29136
29136
  }
29137
29137
  t === "-=" ? x = `${M} = ${this._prefixNameVar}.sub(${M}, ${A})` : t === "+=" ? x = `${M} = ${this._prefixNameVar}.add(${M}, ${A})` : t === ":=" && (v = `${v};
29138
29138
  `);
29139
- const w = `${v}${x}${d}`;
29139
+ const D = `${v}${x}${d}`;
29140
29140
  return this._codesCol[this._blockCount].push({
29141
- code: w,
29141
+ code: D,
29142
29142
  depends: this._getDepends(p)
29143
- }), w;
29143
+ }), D;
29144
29144
  }
29145
29145
  _parserIfStatement(e, t = !1) {
29146
29146
  const { condition: r, block: i, type: s } = e;
@@ -29375,9 +29375,9 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
29375
29375
  return T[g] = `${this._prefixNameVar}.setCacheData("${g}", ${p})`, this._memberIndexList[0] = T, `${this._prefixNameVar}.getCacheData("${g}", ${o}, ${p})`;
29376
29376
  }
29377
29377
  if (g.includes(".")) {
29378
- const T = g.split(".")[0], w = v[T];
29379
- if (w)
29380
- return this._getUserVarMemberIndexs(w, g, A, o, r);
29378
+ const T = g.split(".")[0], D = v[T];
29379
+ if (D)
29380
+ return this._getUserVarMemberIndexs(D, g, A, o, r);
29381
29381
  }
29382
29382
  A--;
29383
29383
  }
@@ -29496,16 +29496,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
29496
29496
  B && !$.includes(q.index) && ($.push(q.index), this._argChangeMap.set(this._currentFuncName, $));
29497
29497
  }
29498
29498
  s ? this._dependsObj[r] = /* @__PURE__ */ new Map() : i && N === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${N}${r}`] = /* @__PURE__ */ new Map());
29499
- let D = q.ruleType === e1.Brackethesized ? this._parserBrackethesized(q) : this._parserSingleExpression(q, B);
29499
+ let w = q.ruleType === e1.Brackethesized ? this._parserBrackethesized(q) : this._parserSingleExpression(q, B);
29500
29500
  if (N && !["arg0, arg1, ...", "number0, number1, ..."].includes(N)) {
29501
29501
  q.isSourceType && d.push(`sourceTypeName: "${q.name}"`);
29502
- const $ = this._requestParamsHandle(i, N, r, s, D, o);
29503
- D = $?.code || D, $?.paramsExpr && g.push($?.paramsExpr), mo.includes(N) && (N = `$${N}`), mo.includes(D) && (D = `$${D}`), d.push(`${N}: ${D}`);
29502
+ const $ = this._requestParamsHandle(i, N, r, s, w, o);
29503
+ w = $?.code || w, $?.paramsExpr && g.push($?.paramsExpr), mo.includes(N) && (N = `$${N}`), mo.includes(w) && (w = `$${w}`), d.push(`${N}: ${w}`);
29504
29504
  } else
29505
- A.push(D);
29506
- }, w = [];
29505
+ A.push(w);
29506
+ }, D = [];
29507
29507
  for (const q of M)
29508
- w.push(`'${q.originName}'`), T(q, q.originName);
29508
+ D.push(`'${q.originName}'`), T(q, q.originName);
29509
29509
  for (const q of Object.keys(e))
29510
29510
  T(e[q], q);
29511
29511
  i && this._isInFunc && d.push("paramsExpr: $paramsExpr"), t && d.push(t);
@@ -29945,7 +29945,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
29945
29945
  i.tokline = i.line, i.tokcol = i.col, i.tokpos = i.pos;
29946
29946
  }
29947
29947
  var x = !1, T = null;
29948
- function w(_0, O0, v0) {
29948
+ function D(_0, O0, v0) {
29949
29949
  i.regex_allowed = _0 == "operator" && !Im.has(O0) || _0 == "keyword" && Wz.has(O0) || _0 == "punc" && _x.has(O0) || _0 == "arrow", _0 == "punc" && (O0 == "." || O0 == "?.") ? x = !0 : v0 || (x = !1);
29950
29950
  const $0 = i.tokline, F1 = i.tokcol, ot = i.tokpos, tt = i.newline_before, $1 = e;
29951
29951
  let o0 = [], K = [];
@@ -29999,7 +29999,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
29999
29999
  O0 += p();
30000
30000
  return O0;
30001
30001
  }
30002
- function D(_0) {
30002
+ function w(_0) {
30003
30003
  $h(_0, e, i.tokline, i.tokcol, i.tokpos);
30004
30004
  }
30005
30005
  function $(_0) {
@@ -30031,17 +30031,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30031
30031
  }
30032
30032
  return q0 >= 48 && q0 <= 57 || q0 >= 97 && q0 <= 102 || q0 >= 65 && q0 <= 70;
30033
30033
  });
30034
- if (_0 && ($1 = _0 + $1), db = $1, wm.test($1) && o1.has_directive("use strict") && D("Legacy octal literals are not allowed in strict mode"), tt && ($1.endsWith("_") ? D("Numeric separators are not allowed at the end of numeric literals") : $1.includes("__") && D("Only one underscore is allowed as numeric separator"), $1 = $1.replace(/_/g, "")), ot) {
30034
+ if (_0 && ($1 = _0 + $1), db = $1, wm.test($1) && o1.has_directive("use strict") && w("Legacy octal literals are not allowed in strict mode"), tt && ($1.endsWith("_") ? w("Numeric separators are not allowed at the end of numeric literals") : $1.includes("__") && w("Only one underscore is allowed as numeric separator"), $1 = $1.replace(/_/g, "")), ot) {
30035
30035
  const K = $1.slice(0, -1), p0 = km.test(K), q0 = IA(K, p0);
30036
30036
  if (!F1 && Ax.test($1) && !isNaN(q0))
30037
- return w("big_int", K);
30038
- D("Invalid or unexpected token");
30037
+ return D("big_int", K);
30038
+ w("Invalid or unexpected token");
30039
30039
  }
30040
30040
  var o0 = IA($1);
30041
30041
  if (isNaN(o0))
30042
- D("Invalid syntax: " + $1);
30042
+ w("Invalid syntax: " + $1);
30043
30043
  else
30044
- return w("num", o0);
30044
+ return D("num", o0);
30045
30045
  }
30046
30046
  function R(_0) {
30047
30047
  return _0 >= "0" && _0 <= "7";
@@ -30066,9 +30066,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30066
30066
  return String.fromCharCode(Z(2, O0));
30067
30067
  case 117:
30068
30068
  if (s() == "{") {
30069
- for (p(!0), s() === "}" && D("Expecting hex-character between {}"); s() == "0"; ) p(!0);
30069
+ for (p(!0), s() === "}" && w("Expecting hex-character between {}"); s() == "0"; ) p(!0);
30070
30070
  var F1, ot = g("}") - i.pos;
30071
- return (ot > 6 || (F1 = Z(ot, O0)) > 1114111) && D("Unicode reference out of bounds"), p(!0), Ex(F1);
30071
+ return (ot > 6 || (F1 = Z(ot, O0)) > 1114111) && w("Unicode reference out of bounds"), p(!0), Ex(F1);
30072
30072
  }
30073
30073
  return String.fromCharCode(Z(4, O0));
30074
30074
  case 10:
@@ -30078,18 +30078,18 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30078
30078
  `)
30079
30079
  return p(!0, _0), "";
30080
30080
  }
30081
- return R($0) ? (v0 && O0 && ($0 === "0" && !R(s()) || D("Octal escape sequences are not allowed in template strings")), P($0, O0)) : $0;
30081
+ return R($0) ? (v0 && O0 && ($0 === "0" && !R(s()) || w("Octal escape sequences are not allowed in template strings")), P($0, O0)) : $0;
30082
30082
  }
30083
30083
  function P(_0, O0) {
30084
30084
  var v0 = s();
30085
- return v0 >= "0" && v0 <= "7" && (_0 += p(!0), _0[0] <= "3" && (v0 = s()) >= "0" && v0 <= "7" && (_0 += p(!0))), _0 === "0" ? "\0" : (_0.length > 0 && o1.has_directive("use strict") && O0 && D("Legacy octal escape sequences are not allowed in strict mode"), String.fromCharCode(parseInt(_0, 8)));
30085
+ return v0 >= "0" && v0 <= "7" && (_0 += p(!0), _0[0] <= "3" && (v0 = s()) >= "0" && v0 <= "7" && (_0 += p(!0))), _0 === "0" ? "\0" : (_0.length > 0 && o1.has_directive("use strict") && O0 && w("Legacy octal escape sequences are not allowed in strict mode"), String.fromCharCode(parseInt(_0, 8)));
30086
30086
  }
30087
30087
  function Z(_0, O0) {
30088
30088
  for (var v0 = 0; _0 > 0; --_0) {
30089
30089
  if (!O0 && isNaN(parseInt(s(), 16)))
30090
30090
  return parseInt(v0, 16) || "";
30091
30091
  var $0 = p(!0);
30092
- isNaN(parseInt($0, 16)) && D("Invalid hex-character pattern in string"), v0 += $0;
30092
+ isNaN(parseInt($0, 16)) && w("Invalid hex-character pattern in string"), v0 += $0;
30093
30093
  }
30094
30094
  return parseInt(v0, 16);
30095
30095
  }
@@ -30099,11 +30099,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30099
30099
  var $0 = p(!0, !0);
30100
30100
  if ($0 == "\\") $0 = L(!0, !0);
30101
30101
  else if ($0 == "\r" || $0 == `
30102
- `) D("Unterminated string constant");
30102
+ `) w("Unterminated string constant");
30103
30103
  else if ($0 == O0) break;
30104
30104
  v0.push($0);
30105
30105
  }
30106
- var F1 = w("string", v0.join(""));
30106
+ var F1 = D("string", v0.join(""));
30107
30107
  return db = i.text.slice(_0, i.pos), F1.quote = O0, F1;
30108
30108
  }), g0 = b1("Unterminated template", function(_0) {
30109
30109
  _0 && i.template_braces.push(i.brace_counter);
@@ -30114,23 +30114,23 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30114
30114
  ` && ++i.pos, $0 = `
30115
30115
  `;
30116
30116
  else if ($0 == "$" && s() == "{")
30117
- return p(!0, !0), i.brace_counter++, F1 = w(_0 ? "template_head" : "template_cont", O0), Ob.set(F1, v0), F1.template_end = !1, F1;
30117
+ return p(!0, !0), i.brace_counter++, F1 = D(_0 ? "template_head" : "template_cont", O0), Ob.set(F1, v0), F1.template_end = !1, F1;
30118
30118
  if (v0 += $0, $0 == "\\") {
30119
30119
  var ot = i.pos, tt = T && (T.type === "name" || T.type === "punc" && (T.value === ")" || T.value === "]"));
30120
30120
  $0 = L(!0, !tt, !0), v0 += i.text.substr(ot, i.pos - ot);
30121
30121
  }
30122
30122
  O0 += $0;
30123
30123
  }
30124
- return i.template_braces.pop(), F1 = w(_0 ? "template_head" : "template_cont", O0), Ob.set(F1, v0), F1.template_end = !0, F1;
30124
+ return i.template_braces.pop(), F1 = D(_0 ? "template_head" : "template_cont", O0), Ob.set(F1, v0), F1.template_end = !0, F1;
30125
30125
  });
30126
30126
  function b0(_0) {
30127
30127
  var O0 = i.regex_allowed, v0 = A(), $0;
30128
- return v0 == -1 ? ($0 = i.text.substr(i.pos), i.pos = i.text.length) : ($0 = i.text.substring(i.pos, v0), i.pos = v0), i.col = i.tokcol + (i.pos - i.tokpos), i.comments_before.push(w(_0, $0, !0)), i.regex_allowed = O0, o1;
30128
+ return v0 == -1 ? ($0 = i.text.substr(i.pos), i.pos = i.text.length) : ($0 = i.text.substring(i.pos, v0), i.pos = v0), i.col = i.tokcol + (i.pos - i.tokpos), i.comments_before.push(D(_0, $0, !0)), i.regex_allowed = O0, o1;
30129
30129
  }
30130
30130
  var N0 = b1("Unterminated multiline comment", function() {
30131
30131
  var _0 = i.regex_allowed, O0 = g("*/", !0), v0 = i.text.substring(i.pos, O0).replace(/\r\n|\r|\u2028|\u2029/g, `
30132
30132
  `);
30133
- return M(qx(v0) + 2), i.comments_before.push(w("comment2", v0, !0)), i.newline_before = i.newline_before || v0.includes(`
30133
+ return M(qx(v0) + 2), i.comments_before.push(D("comment2", v0, !0)), i.newline_before = i.newline_before || v0.includes(`
30134
30134
  `), i.regex_allowed = _0, o1;
30135
30135
  }), k0 = function() {
30136
30136
  let _0 = i.pos, O0 = _0 - 1, v0 = "c";
@@ -30138,17 +30138,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30138
30138
  return O0 > _0 + 1 && v0 && v0 !== "\\" && !fu(v0) && v0 <= "~" ? (i.pos += O0 - _0, i.col += O0 - _0, i.text.slice(_0, i.pos)) : k1();
30139
30139
  }, k1 = b1("Unterminated identifier name", function() {
30140
30140
  var _0 = [], O0, v0 = !1, $0 = function() {
30141
- return v0 = !0, p(), s() !== "u" && D("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"), L(!1, !0);
30141
+ return v0 = !0, p(), s() !== "u" && w("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"), L(!1, !0);
30142
30142
  };
30143
30143
  if ((O0 = s()) === "\\")
30144
- O0 = $0(), bh(O0) || D("First identifier char is an invalid identifier char");
30144
+ O0 = $0(), bh(O0) || w("First identifier char is an invalid identifier char");
30145
30145
  else if (bh(O0))
30146
30146
  p();
30147
30147
  else
30148
30148
  return "";
30149
30149
  for (_0.push(O0); (O0 = s()) != null; ) {
30150
30150
  if ((O0 = s()) === "\\")
30151
- O0 = $0(), fu(O0) || D("Invalid escaped identifier char");
30151
+ O0 = $0(), fu(O0) || w("Invalid escaped identifier char");
30152
30152
  else {
30153
30153
  if (!fu(O0))
30154
30154
  break;
@@ -30157,10 +30157,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30157
30157
  _0.push(O0);
30158
30158
  }
30159
30159
  const F1 = _0.join("");
30160
- return vb.has(F1) && v0 && D("Escaped characters are not allowed in keywords"), F1;
30160
+ return vb.has(F1) && v0 && w("Escaped characters are not allowed in keywords"), F1;
30161
30161
  }), K0 = b1("Unterminated regular expression", function(_0) {
30162
30162
  for (var O0 = !1, v0, $0 = !1; v0 = p(!0); ) if (lh.has(v0))
30163
- D("Unexpected line terminator");
30163
+ w("Unexpected line terminator");
30164
30164
  else if (O0)
30165
30165
  /^[\u0000-\u007F]$/.test(v0) ? _0 += "\\" + v0 : _0 += v0, O0 = !1;
30166
30166
  else if (v0 == "[")
@@ -30173,7 +30173,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30173
30173
  v0 == "\\" ? O0 = !0 : _0 += v0;
30174
30174
  }
30175
30175
  const F1 = k0();
30176
- return w("regexp", "/" + _0 + "/" + F1);
30176
+ return D("regexp", "/" + _0 + "/" + F1);
30177
30177
  });
30178
30178
  function z1(_0) {
30179
30179
  function O0(v0) {
@@ -30181,7 +30181,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30181
30181
  var $0 = v0 + s();
30182
30182
  return kA.has($0) ? (p(), O0($0)) : v0;
30183
30183
  }
30184
- return w("operator", O0(_0 || p()));
30184
+ return D("operator", O0(_0 || p()));
30185
30185
  }
30186
30186
  function Ae() {
30187
30187
  switch (p(), s()) {
@@ -30193,24 +30193,24 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30193
30193
  return i.regex_allowed ? K0("") : z1("/");
30194
30194
  }
30195
30195
  function Fe() {
30196
- return p(), s() === ">" ? (p(), w("arrow", "=>")) : z1("=");
30196
+ return p(), s() === ">" ? (p(), D("arrow", "=>")) : z1("=");
30197
30197
  }
30198
30198
  function p1() {
30199
- return p(), DA(s().charCodeAt(0)) ? $(".") : s() === "." ? (p(), p(), w("expand", "...")) : w("punc", ".");
30199
+ return p(), DA(s().charCodeAt(0)) ? $(".") : s() === "." ? (p(), p(), D("expand", "...")) : D("punc", ".");
30200
30200
  }
30201
30201
  function we() {
30202
30202
  var _0 = k0();
30203
- return x ? w("name", _0) : Ih.has(_0) ? w("atom", _0) : Bh.has(_0) ? kA.has(_0) ? w("operator", _0) : w("keyword", _0) : w("name", _0);
30203
+ return x ? D("name", _0) : Ih.has(_0) ? D("atom", _0) : Bh.has(_0) ? kA.has(_0) ? D("operator", _0) : D("keyword", _0) : D("name", _0);
30204
30204
  }
30205
30205
  function N1() {
30206
- return p(), w("privatename", k0());
30206
+ return p(), D("privatename", k0());
30207
30207
  }
30208
30208
  function b1(_0, O0) {
30209
30209
  return function(v0) {
30210
30210
  try {
30211
30211
  return O0(v0);
30212
30212
  } catch ($0) {
30213
- if ($0 === Qf) D(_0);
30213
+ if ($0 === Qf) w(_0);
30214
30214
  else throw $0;
30215
30215
  }
30216
30216
  };
@@ -30230,7 +30230,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30230
30230
  }
30231
30231
  }
30232
30232
  var O0 = s();
30233
- if (!O0) return w("eof");
30233
+ if (!O0) return D("eof");
30234
30234
  var v0 = O0.charCodeAt(0);
30235
30235
  switch (v0) {
30236
30236
  case 34:
@@ -30247,7 +30247,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30247
30247
  return Fe();
30248
30248
  case 63: {
30249
30249
  if (!o()) break;
30250
- return p(), p(), w("punc", "?.");
30250
+ return p(), p(), D("punc", "?.");
30251
30251
  }
30252
30252
  case 96:
30253
30253
  return g0(!0);
@@ -30260,13 +30260,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30260
30260
  break;
30261
30261
  }
30262
30262
  if (DA(v0)) return $();
30263
- if (yx.has(O0)) return w("punc", p());
30263
+ if (yx.has(O0)) return D("punc", p());
30264
30264
  if (fx.has(O0)) return z1();
30265
30265
  if (v0 == 92 || bh(O0)) return we();
30266
30266
  if (v0 == 35) return N1();
30267
30267
  break;
30268
30268
  }
30269
- D("Unexpected character '" + O0 + "'");
30269
+ w("Unexpected character '" + O0 + "'");
30270
30270
  }
30271
30271
  return o1.next = p, o1.peek = s, o1.context = function(_0) {
30272
30272
  return _0 && (i = _0), i;
@@ -30388,7 +30388,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30388
30388
  function T() {
30389
30389
  return !e.strict && (i("eof") || i("punc", "}") || x(r.token));
30390
30390
  }
30391
- function w() {
30391
+ function D() {
30392
30392
  return r.in_generator === r.in_function;
30393
30393
  }
30394
30394
  function y() {
@@ -30405,7 +30405,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30405
30405
  var U = K1(!0);
30406
30406
  return v(")"), U;
30407
30407
  }
30408
- function D(U) {
30408
+ function w(U) {
30409
30409
  return function(...i0) {
30410
30410
  const A0 = r.token, E0 = U(...i0);
30411
30411
  return E0.start = A0, E0.end = p(), E0;
@@ -30414,7 +30414,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
30414
30414
  function $() {
30415
30415
  (i("operator", "/") || i("operator", "/=")) && (r.peeked = null, r.token = r.input(r.token.value.substr(1)));
30416
30416
  }
30417
- var R = D(function U(n0, i0, A0) {
30417
+ var R = w(function U(n0, i0, A0) {
30418
30418
  switch ($(), r.token.type) {
30419
30419
  case "string":
30420
30420
  if (r.in_directives) {
@@ -31161,11 +31161,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
31161
31161
  i("punc", ",") && i0 ? E0.push(new Yn({ start: r.token, end: r.token })) : i("expand", "...") ? (o(), E0.push(new Y1({ start: p(), expression: K1(), end: r.token }))) : E0.push(K1(!1));
31162
31162
  return o(), E0;
31163
31163
  }
31164
- var E1 = D(function() {
31164
+ var E1 = w(function() {
31165
31165
  return v("["), new ue({
31166
31166
  elements: y1("]", !e.strict, !0)
31167
31167
  });
31168
- }), A1 = D((U, n0) => k1(Do, U, n0)), at = D(function() {
31168
+ }), A1 = w((U, n0) => k1(Do, U, n0)), at = w(function() {
31169
31169
  var n0 = r.token, i0 = !0, A0 = [];
31170
31170
  for (v("{"); !i("punc", "}") && (i0 ? i0 = !1 : v(","), !(!e.strict && i("punc", "}"))); ) {
31171
31171
  if (n0 = r.token, n0.type == "expand") {
@@ -31464,7 +31464,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
31464
31464
  }
31465
31465
  function Dn(U) {
31466
31466
  var n0 = U.name;
31467
- w() && n0 == "yield" && d(U.start, "Yield cannot be used as identifier inside generators"), r.input.has_directive("use strict") && (n0 == "yield" && d(U.start, "Unexpected yield identifier inside strict mode"), U instanceof Ft && (n0 == "arguments" || n0 == "eval") && d(U.start, "Unexpected " + n0 + " in strict mode"));
31467
+ D() && n0 == "yield" && d(U.start, "Yield cannot be used as identifier inside generators"), r.input.has_directive("use strict") && (n0 == "yield" && d(U.start, "Unexpected yield identifier inside strict mode"), U instanceof Ft && (n0 == "arguments" || n0 == "eval") && d(U.start, "Unexpected " + n0 + " in strict mode"));
31468
31468
  }
31469
31469
  function Jt(U, n0) {
31470
31470
  if (!i("name"))
@@ -31717,7 +31717,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
31717
31717
  $();
31718
31718
  var n0 = r.token;
31719
31719
  if (n0.type == "name" && n0.value == "yield") {
31720
- if (w())
31720
+ if (D())
31721
31721
  return o(), b1();
31722
31722
  r.input.has_directive("use strict") && d(r.token, "Unexpected yield identifier inside strict mode");
31723
31723
  }
@@ -34445,7 +34445,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
34445
34445
  }), T(Cr, function(L) {
34446
34446
  return {
34447
34447
  type: "TryStatement",
34448
- block: D(L.body),
34448
+ block: w(L.body),
34449
34449
  handler: y(L.bcatch),
34450
34450
  guardedHandlers: [],
34451
34451
  finalizer: y(L.bfinally)
@@ -34454,7 +34454,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
34454
34454
  return {
34455
34455
  type: "CatchClause",
34456
34456
  param: L.argname != null ? N(L.argname) : null,
34457
- body: D(L)
34457
+ body: w(L)
34458
34458
  };
34459
34459
  }), T(Jn, function(L) {
34460
34460
  return {
@@ -34911,11 +34911,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
34911
34911
  return x(this, L(this, P));
34912
34912
  });
34913
34913
  }
34914
- var w = null;
34914
+ var D = null;
34915
34915
  function y(R) {
34916
- w === null && (w = []), w.push(R);
34917
- var L = R != null ? R.to_mozilla_ast(w[w.length - 2]) : null;
34918
- return w.pop(), w.length === 0 && (w = null), L;
34916
+ D === null && (D = []), D.push(R);
34917
+ var L = R != null ? R.to_mozilla_ast(D[D.length - 2]) : null;
34918
+ return D.pop(), D.length === 0 && (D = null), L;
34919
34919
  }
34920
34920
  function q(R, L = !1, P = !1, Z = null) {
34921
34921
  if (L)
@@ -34935,12 +34935,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
34935
34935
  throw new Error(R.TYPE);
34936
34936
  }
34937
34937
  function B() {
34938
- for (var R = w.length; R--; )
34939
- if (w[R] instanceof ge)
34938
+ for (var R = D.length; R--; )
34939
+ if (D[R] instanceof ge)
34940
34940
  return !0;
34941
34941
  return !1;
34942
34942
  }
34943
- function D(R) {
34943
+ function w(R) {
34944
34944
  return {
34945
34945
  type: "BlockStatement",
34946
34946
  body: R.body.map(y)
@@ -35155,7 +35155,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35155
35155
  function T(K) {
35156
35156
  return " ".repeat(n.indent_start + i - K * n.indent_level);
35157
35157
  }
35158
- var w = !1, y = !1, q = !1, N = 0, B = !1, D = !1, $ = -1, R = "", L, P, Z = n.source_map && [], e0 = Z ? function() {
35158
+ var D = !1, y = !1, q = !1, N = 0, B = !1, w = !1, $ = -1, R = "", L, P, Z = n.source_map && [], e0 = Z ? function() {
35159
35159
  Z.forEach(function(K) {
35160
35160
  try {
35161
35161
  let { name: p0, token: q0 } = K;
@@ -35190,7 +35190,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35190
35190
  var p0 = Eo(K, 0);
35191
35191
  B && p0 && (B = !1, p0 !== `
35192
35192
  ` && (N0(`
35193
- `), K0())), D && p0 && (D = !1, /[\s;})]/.test(p0) || k1()), $ = -1;
35193
+ `), K0())), w && p0 && (w = !1, /[\s;})]/.test(p0) || k1()), $ = -1;
35194
35194
  var q0 = R.charAt(R.length - 1);
35195
35195
  q && (q = !1, (q0 === ":" && p0 === "}" || (!p0 || !";}".includes(p0)) && q0 !== ";") && (n.semicolons || b0.has(p0) ? (M.append(";"), s++, p++) : (g0(), s > 0 && (M.append(`
35196
35196
  `), p++, o++, s = 0), /^\s+$/.test(K) && (q = !0)), n.beautify || (y = !1))), y && ((fu(q0) && (fu(p0) || p0 == "\\") || p0 == "/" && p0 == q0 || (p0 == "+" || p0 == "-") && p0 == R) && (M.append(" "), s++, p++), y = !1), L && (Z.push({
@@ -35198,7 +35198,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35198
35198
  name: P,
35199
35199
  line: o,
35200
35200
  col: s
35201
- }), L = !1, N || e0()), M.append(K), w = K[K.length - 1] == "(", p += K.length;
35201
+ }), L = !1, N || e0()), M.append(K), D = K[K.length - 1] == "(", p += K.length;
35202
35202
  var j0 = K.split(/\r?\n/), Q0 = j0.length - 1;
35203
35203
  o += Q0, s += j0[0].length, Q0 > 0 && (g0(), s = j0[Q0].length), R = K;
35204
35204
  }
@@ -35325,14 +35325,14 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35325
35325
  var E1 = M.length();
35326
35326
  y1.filter(t, K).forEach(function(A1, at) {
35327
35327
  if (!Q0.has(A1)) {
35328
- if (Q0.add(A1), D = !1, B ? (N0(`
35328
+ if (Q0.add(A1), w = !1, B ? (N0(`
35329
35329
  `), K0(), B = !1) : A1.nlb && (at > 0 || !M.hasNLB()) ? (N0(`
35330
35330
  `), K0()) : (at > 0 || !p0) && k1(), /comment[134]/.test(A1.type)) {
35331
35331
  const be = F1(A1.value);
35332
35332
  be && N0("//" + be), B = !0;
35333
35333
  } else if (A1.type == "comment2") {
35334
35334
  const be = F1(A1.value);
35335
- be && N0("/*" + be + "*/"), D = !0;
35335
+ be && N0("/*" + be + "*/"), w = !0;
35336
35336
  }
35337
35337
  }
35338
35338
  }), M.length() > E1 && ($ = E1);
@@ -35360,7 +35360,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35360
35360
  return n.width && this.current_width() >= n.width;
35361
35361
  },
35362
35362
  has_parens: function() {
35363
- return w;
35363
+ return D;
35364
35364
  },
35365
35365
  newline: Ae,
35366
35366
  print: N0,
@@ -35426,10 +35426,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35426
35426
  F0.DEFMETHOD("print", function(y, q) {
35427
35427
  var N = this, B = N._codegen;
35428
35428
  N instanceof x1 ? y.active_scope = N : !y.use_asm && N instanceof Cn && N.value == "use asm" && (y.use_asm = y.active_scope);
35429
- function D() {
35429
+ function w() {
35430
35430
  y.prepend_comments(N), N.add_source_map(y), B(N, y), y.append_comments(N);
35431
35431
  }
35432
- y.push_node(N), q || N.needs_parens(y) ? y.with_parens(D) : D(), y.pop_node(), N === y.use_asm && (y.use_asm = null);
35432
+ y.push_node(N), q || N.needs_parens(y) ? y.with_parens(w) : w(), y.pop_node(), N === y.use_asm && (y.use_asm = null);
35433
35433
  }), F0.DEFMETHOD("_print", F0.prototype.print), F0.DEFMETHOD("print_to_string", function(y) {
35434
35434
  var q = Bd(y);
35435
35435
  return this.print(q), q.get();
@@ -35480,13 +35480,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35480
35480
  const N = q.operator, B = this.operator;
35481
35481
  if (B === "??" && (N === "||" || N === "&&") || N === "??" && (B === "||" || B === "&&"))
35482
35482
  return !0;
35483
- const D = Xr[N], $ = Xr[B];
35484
- if (D > $ || D == $ && (this === q.right || N == "**"))
35483
+ const w = Xr[N], $ = Xr[B];
35484
+ if (w > $ || w == $ && (this === q.right || N == "**"))
35485
35485
  return !0;
35486
35486
  }
35487
35487
  if (q instanceof hi) {
35488
- const N = this.operator, B = Xr.in, D = Xr[N];
35489
- if (B > D || B == D && this === q.value)
35488
+ const N = this.operator, B = Xr.in, w = Xr[N];
35489
+ if (B > w || B == w && this === q.value)
35490
35490
  return !0;
35491
35491
  }
35492
35492
  }), e(hi, function(y) {
@@ -35494,8 +35494,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35494
35494
  if (q instanceof c1 && q.expression === this || q instanceof We || q instanceof q1 && q.expression === this)
35495
35495
  return !0;
35496
35496
  if (q instanceof R0) {
35497
- const N = q.operator, B = Xr[N], D = Xr.in;
35498
- if (B > D || B == D && (this === q.right || N == "**"))
35497
+ const N = q.operator, B = Xr[N], w = Xr.in;
35498
+ if (B > w || B == w && (this === q.right || N == "**"))
35499
35499
  return !0;
35500
35500
  }
35501
35501
  if (q instanceof hi && this === q.value)
@@ -35547,16 +35547,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35547
35547
  }), n(ge, function(y, q) {
35548
35548
  q.print(y.is_array ? "[" : "{");
35549
35549
  var N = y.names.length;
35550
- y.names.forEach(function(B, D) {
35551
- D > 0 && q.comma(), B.print(q), D == N - 1 && B instanceof Yn && q.comma();
35550
+ y.names.forEach(function(B, w) {
35551
+ w > 0 && q.comma(), B.print(q), w == N - 1 && B instanceof Yn && q.comma();
35552
35552
  }), q.print(y.is_array ? "]" : "}");
35553
35553
  }), n(ko, function(y, q) {
35554
35554
  q.print("debugger"), q.semicolon();
35555
35555
  });
35556
35556
  function t(y, q, N, B) {
35557
- var D = y.length - 1;
35557
+ var w = y.length - 1;
35558
35558
  N.in_directive = B, y.forEach(function($, R) {
35559
- N.in_directive === !0 && !($ instanceof Cn || $ instanceof qe || $ instanceof h1 && $.body instanceof ee) && (N.in_directive = !1), $ instanceof qe || (N.indent(), $.print(N), R == D && q || (N.newline(), q && N.newline())), N.in_directive === !0 && $ instanceof h1 && $.body instanceof ee && (N.in_directive = !1);
35559
+ N.in_directive === !0 && !($ instanceof Cn || $ instanceof qe || $ instanceof h1 && $.body instanceof ee) && (N.in_directive = !1), $ instanceof qe || (N.indent(), $.print(N), R == w && q || (N.newline(), q && N.newline())), N.in_directive === !0 && $ instanceof h1 && $.body instanceof ee && (N.in_directive = !1);
35560
35560
  }), N.in_directive = !1;
35561
35561
  }
35562
35562
  q2.DEFMETHOD("_do_print_body", function(y) {
@@ -35609,8 +35609,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35609
35609
  q || (N.async && (y.print("async"), y.space()), y.print("function"), N.is_generator && y.star(), N.name && y.space()), N.name instanceof ie ? N.name.print(y) : q && N.name instanceof F0 && y.with_square(function() {
35610
35610
  N.name.print(y);
35611
35611
  }), y.with_parens(function() {
35612
- N.argnames.forEach(function(B, D) {
35613
- D && y.comma(), B.print(y);
35612
+ N.argnames.forEach(function(B, w) {
35613
+ w && y.comma(), B.print(y);
35614
35614
  });
35615
35615
  }), y.space(), i(N, y, !0);
35616
35616
  }), n(f1, function(y, q) {
@@ -35633,9 +35633,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35633
35633
  R && y.comma(), $.print(y);
35634
35634
  });
35635
35635
  }), y.space(), y.print("=>"), y.space();
35636
- const D = q.body[0];
35637
- if (q.body.length === 1 && D instanceof it) {
35638
- const $ = D.value;
35636
+ const w = q.body[0];
35637
+ if (q.body.length === 1 && w instanceof it) {
35638
+ const $ = w.value;
35639
35639
  $ ? go($) ? (y.print("("), $.print(y), y.print(")")) : $.print(y) : y.print("{}");
35640
35640
  } else
35641
35641
  i(q, y);
@@ -35692,8 +35692,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35692
35692
  }), q.space();
35693
35693
  var N = y.body.length - 1;
35694
35694
  N < 0 ? r(y, q) : q.with_block(function() {
35695
- y.body.forEach(function(B, D) {
35696
- q.indent(!0), B.print(q), D < N && B.body.length > 0 && q.newline();
35695
+ y.body.forEach(function(B, w) {
35696
+ q.indent(!0), B.print(q), w < N && B.body.length > 0 && q.newline();
35697
35697
  });
35698
35698
  });
35699
35699
  }), Bo.DEFMETHOD("_do_print_body", function(y) {
@@ -35718,8 +35718,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35718
35718
  y.print(q), y.space(), this.definitions.forEach(function($, R) {
35719
35719
  R && y.comma(), $.print(y);
35720
35720
  });
35721
- var N = y.parent(), B = N instanceof mt || N instanceof sn, D = !B || N && N.init !== this;
35722
- D && y.semicolon();
35721
+ var N = y.parent(), B = N instanceof mt || N instanceof sn, w = !B || N && N.init !== this;
35722
+ w && y.semicolon();
35723
35723
  }), n(T2, function(y, q) {
35724
35724
  y._do_print(q, "let");
35725
35725
  }), n(Mt, function(y, q) {
@@ -35735,10 +35735,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35735
35735
  }), n(Po, function(y, q) {
35736
35736
  q.print("import.meta");
35737
35737
  }), n(Xi, function(y, q) {
35738
- var N = q.parent() instanceof Gr, B = y.name.definition(), D = y.foreign_name, $ = (B && B.mangled_name || y.name.name) !== D.name;
35739
- !$ && D.name === "*" && !!D.quote != !!y.name.quote && ($ = !0);
35740
- var R = !D.quote;
35741
- $ ? (N ? R ? q.print(D.name) : q.print_string(D.name, D.quote) : y.name.quote ? q.print_string(y.name.name, y.name.quote) : y.name.print(q), q.space(), q.print("as"), q.space(), N ? y.name.print(q) : R ? q.print(D.name) : q.print_string(D.name, D.quote)) : y.name.quote ? q.print_string(y.name.name, y.name.quote) : y.name.print(q);
35738
+ var N = q.parent() instanceof Gr, B = y.name.definition(), w = y.foreign_name, $ = (B && B.mangled_name || y.name.name) !== w.name;
35739
+ !$ && w.name === "*" && !!w.quote != !!y.name.quote && ($ = !0);
35740
+ var R = !w.quote;
35741
+ $ ? (N ? R ? q.print(w.name) : q.print_string(w.name, w.quote) : y.name.quote ? q.print_string(y.name.name, y.name.quote) : y.name.print(q), q.space(), q.print("as"), q.space(), N ? y.name.print(q) : R ? q.print(w.name) : q.print_string(w.name, w.quote)) : y.name.quote ? q.print_string(y.name.name, y.name.quote) : y.name.print(q);
35742
35742
  }), n(Wt, function(y, q) {
35743
35743
  if (q.print("export"), q.space(), y.is_default && (q.print("default"), q.space()), y.exported_names)
35744
35744
  y.exported_names.length === 1 && y.exported_names[0].name.name === "*" && !y.exported_names[0].name.quote ? y.exported_names[0].print(q) : (q.print("{"), y.exported_names.forEach(function(N, B) {
@@ -35752,10 +35752,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35752
35752
  });
35753
35753
  function o(y, q, N) {
35754
35754
  var B = !1;
35755
- N && (B = Ut(y, (D) => {
35756
- if (D instanceof x1 && !(D instanceof Je))
35755
+ N && (B = Ut(y, (w) => {
35756
+ if (w instanceof x1 && !(w instanceof Je))
35757
35757
  return !0;
35758
- if (D instanceof R0 && D.operator == "in" || D instanceof hi)
35758
+ if (w instanceof R0 && w.operator == "in" || w instanceof hi)
35759
35759
  return Zn;
35760
35760
  })), y.print(q, B);
35761
35761
  }
@@ -35782,11 +35782,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35782
35782
  }), n(Pe, function(y, q) {
35783
35783
  var N = y.expression;
35784
35784
  N.print(q);
35785
- var B = y.property, D = Va.has(B) ? q.option("ie8") : !BA(
35785
+ var B = y.property, w = Va.has(B) ? q.option("ie8") : !BA(
35786
35786
  B,
35787
35787
  q.option("ecma") >= 2015 && !q.option("safari10")
35788
35788
  );
35789
- y.optional && q.print("?."), D ? (q.print("["), q.add_mapping(y.end), q.print_string(B), q.print("]")) : (N instanceof L1 && N.getValue() >= 0 && (/[xa-f.)]/i.test(q.last()) || q.print(".")), y.optional || q.print("."), q.add_mapping(y.end), q.print_name(B));
35789
+ y.optional && q.print("?."), w ? (q.print("["), q.add_mapping(y.end), q.print_string(B), q.print("]")) : (N instanceof L1 && N.getValue() >= 0 && (/[xa-f.)]/i.test(q.last()) || q.print(".")), y.optional || q.print("."), q.add_mapping(y.end), q.print_name(B));
35790
35790
  }), n(Kr, function(y, q) {
35791
35791
  var N = y.expression;
35792
35792
  N.print(q);
@@ -35809,8 +35809,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35809
35809
  }), n(ue, function(y, q) {
35810
35810
  q.with_square(function() {
35811
35811
  var N = y.elements, B = N.length;
35812
- B > 0 && q.space(), N.forEach(function(D, $) {
35813
- $ && q.comma(), D.print(q), $ === B - 1 && D instanceof Yn && q.comma();
35812
+ B > 0 && q.space(), N.forEach(function(w, $) {
35813
+ $ && q.comma(), w.print(q), $ === B - 1 && w instanceof Yn && q.comma();
35814
35814
  }), B > 0 && q.space();
35815
35815
  });
35816
35816
  }), n(ze, function(y, q) {
@@ -35825,8 +35825,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35825
35825
  q.print("extends"), N ? q.print("(") : q.space(), y.extends.print(q), N ? q.print(")") : q.space();
35826
35826
  }
35827
35827
  y.properties.length > 0 ? q.with_block(function() {
35828
- y.properties.forEach(function(B, D) {
35829
- D && q.newline(), q.indent(), B.print(q);
35828
+ y.properties.forEach(function(B, w) {
35829
+ w && q.newline(), q.indent(), B.print(q);
35830
35830
  }), q.newline();
35831
35831
  }) : q.print("{}");
35832
35832
  }), n(Tu, function(y, q) {
@@ -35841,9 +35841,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35841
35841
  return B || q && N.option("keep_quoted_props") ? (N.print_string(y, q), !1) : (N.print_name(y), !0);
35842
35842
  }
35843
35843
  n(Se, function(y, q) {
35844
- function N(D) {
35845
- var $ = D.definition();
35846
- return $ ? $.mangled_name || $.name : D.name;
35844
+ function N(w) {
35845
+ var $ = w.definition();
35846
+ return $ ? $.mangled_name || $.name : w.name;
35847
35847
  }
35848
35848
  const B = q.option("shorthand") && !(y.key instanceof F0);
35849
35849
  B && y.value instanceof ie && N(y.value) === y.key && !Va.has(y.key) ? p(y.key, y.quote, q) || (q.colon(), y.value.print(q)) : B && y.value instanceof zn && y.value.left instanceof ie && N(y.value.left) === y.key ? (p(y.key, y.quote, q) || (q.colon(), y.value.left.print(q)), q.space(), q.print("="), q.space(), y.value.right.print(q)) : (y.key instanceof F0 ? q.with_square(function() {
@@ -35900,8 +35900,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35900
35900
  n(Qn, function(y, q) {
35901
35901
  let { source: N, flags: B } = y.getValue();
35902
35902
  N = x3(N), B = B ? hx(B) : "", N = N.replace(M, A), d.test(N) && q.last().endsWith("<") && q.print(" "), q.print(q.to_utf8(`/${N}/${B}`, !1, !0));
35903
- const D = q.parent();
35904
- D instanceof R0 && /^\w/.test(D.operator) && D.left === y && q.print(" ");
35903
+ const w = q.parent();
35904
+ w instanceof R0 && /^\w/.test(w.operator) && w.left === y && q.print(" ");
35905
35905
  });
35906
35906
  function g(y, q) {
35907
35907
  q.option("braces") ? T(y, q) : !y || y instanceof qe ? q.force_semicolon() : y instanceof Jn && !(y instanceof Mt) || y instanceof te ? T(y, q) : y.print(q);
@@ -35914,27 +35914,27 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35914
35914
  function x(y) {
35915
35915
  var q = y.toString(10).replace(/^0\./, ".").replace("e+", "e"), N = [q];
35916
35916
  Math.floor(y) === y && (y < 0 ? N.push("-0x" + (-y).toString(16).toLowerCase()) : N.push("0x" + y.toString(16).toLowerCase()));
35917
- var B, D, $;
35918
- return (B = /^\.0+/.exec(q)) ? (D = B[0].length, $ = q.slice(D), N.push($ + "e-" + ($.length + D - 1))) : (B = /0+$/.exec(q)) ? (D = B[0].length, N.push(q.slice(0, -D) + "e" + D)) : (B = /^(\d)\.(\d+)e(-?\d+)$/.exec(q)) && N.push(B[1] + B[2] + "e" + (B[3] - B[2].length)), v(N);
35917
+ var B, w, $;
35918
+ return (B = /^\.0+/.exec(q)) ? (w = B[0].length, $ = q.slice(w), N.push($ + "e-" + ($.length + w - 1))) : (B = /0+$/.exec(q)) ? (w = B[0].length, N.push(q.slice(0, -w) + "e" + w)) : (B = /^(\d)\.(\d+)e(-?\d+)$/.exec(q)) && N.push(B[1] + B[2] + "e" + (B[3] - B[2].length)), v(N);
35919
35919
  }
35920
35920
  function T(y, q) {
35921
35921
  !y || y instanceof qe ? q.print("{}") : y instanceof C1 ? y.print(q) : q.with_block(function() {
35922
35922
  q.indent(), y.print(q), q.newline();
35923
35923
  });
35924
35924
  }
35925
- function w(y, q) {
35925
+ function D(y, q) {
35926
35926
  y.forEach(function(N) {
35927
35927
  N.DEFMETHOD("add_source_map", q);
35928
35928
  });
35929
35929
  }
35930
- w([
35930
+ D([
35931
35931
  // We could easily add info for ALL nodes, but it seems to me that
35932
35932
  // would be quite wasteful, hence this noop in the base class.
35933
35933
  F0,
35934
35934
  // since the label symbol will mark it
35935
35935
  An,
35936
35936
  He
35937
- ], gr), w([
35937
+ ], gr), D([
35938
35938
  ue,
35939
35939
  C1,
35940
35940
  Ss,
@@ -35957,7 +35957,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35957
35957
  Cr
35958
35958
  ], function(y) {
35959
35959
  y.add_mapping(this.start);
35960
- }), w([
35960
+ }), D([
35961
35961
  di,
35962
35962
  Gi,
35963
35963
  Nr,
@@ -35970,13 +35970,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
35970
35970
  !1
35971
35971
  /*name handled below*/
35972
35972
  );
35973
- }), w([
35973
+ }), D([
35974
35974
  en,
35975
35975
  Lu
35976
35976
  ], function(y) {
35977
35977
  const q = this.end && this.end.type;
35978
35978
  q === "name" || q === "privatename" ? y.add_mapping(this.end, this.name) : y.add_mapping(this.end);
35979
- }), w([ht], function(y) {
35979
+ }), D([ht], function(y) {
35980
35980
  y.add_mapping(this.start, this.key);
35981
35981
  });
35982
35982
  })();
@@ -36157,24 +36157,24 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
36157
36157
  throw new Error("Invalid toplevel scope");
36158
36158
  var r = this.parent_scope = e, i = /* @__PURE__ */ new Map(), s = null, o = null, p = [], A = new Yt((g, v) => {
36159
36159
  if (g.is_block_scope()) {
36160
- const D = r;
36161
- if (g.block_scope = r = new x1(g), r._block_scope = !0, r.init_scope_vars(D), r.uses_with = D.uses_with, r.uses_eval = D.uses_eval, n.safari10 && (g instanceof mt || g instanceof sn || g instanceof Ga) && p.push(r), g instanceof dn) {
36160
+ const w = r;
36161
+ if (g.block_scope = r = new x1(g), r._block_scope = !0, r.init_scope_vars(w), r.uses_with = w.uses_with, r.uses_eval = w.uses_eval, n.safari10 && (g instanceof mt || g instanceof sn || g instanceof Ga) && p.push(r), g instanceof dn) {
36162
36162
  const $ = r;
36163
- r = D, g.expression.walk(A), r = $;
36163
+ r = w, g.expression.walk(A), r = $;
36164
36164
  for (let R = 0; R < g.body.length; R++)
36165
36165
  g.body[R].walk(A);
36166
36166
  } else
36167
36167
  v();
36168
- return r = D, !0;
36168
+ return r = w, !0;
36169
36169
  }
36170
36170
  if (g instanceof ge) {
36171
- const D = o;
36172
- return o = g, v(), o = D, !0;
36171
+ const w = o;
36172
+ return o = g, v(), o = w, !0;
36173
36173
  }
36174
36174
  if (g instanceof x1) {
36175
36175
  g.init_scope_vars(r);
36176
- var x = r, T = s, w = i;
36177
- return s = r = g, i = /* @__PURE__ */ new Map(), v(), r = x, s = T, i = w, !0;
36176
+ var x = r, T = s, D = i;
36177
+ return s = r = g, i = /* @__PURE__ */ new Map(), v(), r = x, s = T, i = D, !0;
36178
36178
  }
36179
36179
  if (g instanceof An) {
36180
36180
  var y = g.label;
@@ -36190,8 +36190,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
36190
36190
  if (g instanceof ie && (g.scope = r), g instanceof Fb && (g.thedef = g, g.references = []), g instanceof Zi)
36191
36191
  s.def_function(g, g.name == "arguments" ? void 0 : s);
36192
36192
  else if (g instanceof Bs) {
36193
- const D = s.parent_scope;
36194
- g.scope = A.directives["use strict"] ? D : D.get_defun_scope(), M(g.scope.def_function(g, s), 1);
36193
+ const w = s.parent_scope;
36194
+ g.scope = A.directives["use strict"] ? w : w.get_defun_scope(), M(g.scope.def_function(g, s), 1);
36195
36195
  } else if (g instanceof k3)
36196
36196
  M(s.def_variable(g, s), 1);
36197
36197
  else if (g instanceof Fa)
@@ -36200,7 +36200,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
36200
36200
  M((g.scope = s.parent_scope).def_function(g, s), 1);
36201
36201
  else if (g instanceof Fo || g instanceof xu || g instanceof Ya || g instanceof Ja || g instanceof Oi) {
36202
36202
  var N;
36203
- if (g instanceof xs ? N = r.def_variable(g, null) : N = s.def_variable(g, g.TYPE == "SymbolVar" ? null : void 0), N.orig.every((D) => D === g ? !0 : g instanceof xs ? D instanceof Zi : !(D instanceof xu || D instanceof Ya || D instanceof Ja)) || $h(
36203
+ if (g instanceof xs ? N = r.def_variable(g, null) : N = s.def_variable(g, g.TYPE == "SymbolVar" ? null : void 0), N.orig.every((w) => w === g ? !0 : g instanceof xs ? w instanceof Zi : !(w instanceof xu || w instanceof Ya || w instanceof Ja)) || $h(
36204
36204
  `"${g.name}" is redeclared`,
36205
36205
  g.start.file,
36206
36206
  g.start.line,
@@ -36238,8 +36238,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
36238
36238
  }
36239
36239
  var T = A.parent(v);
36240
36240
  if (g.export = T instanceof Wt ? Xh : 0) {
36241
- var w = T.exported_definition;
36242
- (w instanceof pt || w instanceof fi) && T.is_default && (g.export = kx);
36241
+ var D = T.exported_definition;
36242
+ (D instanceof pt || D instanceof fi) && T.is_default && (g.export = kx);
36243
36243
  }
36244
36244
  }
36245
36245
  this instanceof He && (this.globals = /* @__PURE__ */ new Map());
@@ -36254,17 +36254,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
36254
36254
  var T;
36255
36255
  return A.parent() instanceof Xi && A.parent(1).module_name || !(T = g.scope.find_variable(v)) ? (T = t.def_global(g), g instanceof E2 && (T.export = Xh)) : T.scope instanceof f1 && v == "arguments" && (T.scope.get_defun_scope().uses_arguments = !0), g.thedef = T, g.reference(), g.scope.is_block_scope() && !(T.orig[0] instanceof xs) && (g.scope = g.scope.get_defun_scope()), !0;
36256
36256
  }
36257
- var w;
36258
- if (g instanceof Oi && (w = Id(g.definition())))
36259
- for (var x = g.scope; x && (g2(x.enclosed, w), x !== w.scope); )
36257
+ var D;
36258
+ if (g instanceof Oi && (D = Id(g.definition())))
36259
+ for (var x = g.scope; x && (g2(x.enclosed, D), x !== D.scope); )
36260
36260
  x = x.parent_scope;
36261
36261
  });
36262
36262
  if (this.walk(A), (n.ie8 || n.safari10) && Ut(this, (g) => {
36263
36263
  if (g instanceof Oi) {
36264
- var v = g.name, x = g.thedef.references, T = g.scope.get_defun_scope(), w = T.find_variable(v) || t.globals.get(v) || T.def_variable(g);
36264
+ var v = g.name, x = g.thedef.references, T = g.scope.get_defun_scope(), D = T.find_variable(v) || t.globals.get(v) || T.def_variable(g);
36265
36265
  return x.forEach(function(y) {
36266
- y.thedef = w, y.reference();
36267
- }), g.thedef = w, g.reference(), !0;
36266
+ y.thedef = D, y.reference();
36267
+ }), g.thedef = D, g.reference(), !0;
36268
36268
  }
36269
36269
  }), n.safari10)
36270
36270
  for (const g of p)
@@ -38178,16 +38178,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38178
38178
  }
38179
38179
  }), x === e) return;
38180
38180
  if (x instanceof te && x.has_side_effects(n) && (x.is_self_referential() ? T() : x.visit_nondeferred_class_parts(A)), x instanceof pt || x instanceof fi) {
38181
- var w = x.name.definition();
38182
- return (A.parent() instanceof Wt || !t && d === e) && w.global && s.set(w.id, w), uh(M, w.id, x), !0;
38181
+ var D = x.name.definition();
38182
+ return (A.parent() instanceof Wt || !t && d === e) && D.global && s.set(D.id, D), uh(M, D.id, x), !0;
38183
38183
  }
38184
38184
  const y = d === e;
38185
38185
  if (x instanceof $t && y && uh(p, x.definition().id, x), x instanceof qn && y) {
38186
38186
  const q = A.parent() instanceof Wt;
38187
38187
  return x.definitions.forEach(function(N) {
38188
- if (N.name instanceof Fo && uh(p, N.name.definition().id, N), (q || !r) && Ut(N.name, (D) => {
38189
- if (D instanceof Ft) {
38190
- const $ = D.definition();
38188
+ if (N.name instanceof Fo && uh(p, N.name.definition().id, N), (q || !r) && Ut(N.name, (w) => {
38189
+ if (w instanceof Ft) {
38190
+ const $ = w.definition();
38191
38191
  $.global && s.set($.id, $);
38192
38192
  }
38193
38193
  }), N.name instanceof ge && N.walk(A), N.name instanceof Ft && N.value) {
@@ -38200,12 +38200,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38200
38200
  });
38201
38201
  e.walk(A), A = new Yt(v), s.forEach(function(x) {
38202
38202
  var T = M.get(x.id);
38203
- T && T.forEach(function(w) {
38204
- w.walk(A);
38203
+ T && T.forEach(function(D) {
38204
+ D.walk(A);
38205
38205
  });
38206
38206
  });
38207
38207
  var g = new er(
38208
- function(T, w, y) {
38208
+ function(T, D, y) {
38209
38209
  var q = g.parent();
38210
38210
  if (r) {
38211
38211
  const k0 = i(T);
@@ -38223,13 +38223,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38223
38223
  if (d === e) {
38224
38224
  var B;
38225
38225
  if (T.name && (T instanceof Ts && !qu(n.option("keep_classnames"), (B = T.name.definition()).name) || T instanceof Ie && !qu(n.option("keep_fnames"), (B = T.name.definition()).name)) && (!s.has(B.id) || B.orig.length > 1) && (T.name = null), T instanceof f1 && !(T instanceof Do))
38226
- for (var D = !n.option("keep_fargs") || q instanceof c1 && q.expression === T && !T.pinned() && (!T.name || T.name.unreferenced()), $ = T.argnames, R = $.length; --R >= 0; ) {
38226
+ for (var w = !n.option("keep_fargs") || q instanceof c1 && q.expression === T && !T.pinned() && (!T.name || T.name.unreferenced()), $ = T.argnames, R = $.length; --R >= 0; ) {
38227
38227
  var L = $[R];
38228
- L instanceof Y1 && (L = L.expression), L instanceof zn && (L = L.left), !(L instanceof ge) && !s.has(L.definition().id) ? (tr(L, Ua), D && $.pop()) : D = !1;
38228
+ L instanceof Y1 && (L = L.expression), L instanceof zn && (L = L.left), !(L instanceof ge) && !s.has(L.definition().id) ? (tr(L, Ua), w && $.pop()) : w = !1;
38229
38229
  }
38230
38230
  if (T instanceof fi && T !== e) {
38231
38231
  const k0 = T.name.definition();
38232
- if (w(T, this), !(k0.global && !t || s.has(k0.id))) {
38232
+ if (D(T, this), !(k0.global && !t || s.has(k0.id))) {
38233
38233
  const K0 = T.drop_side_effect_free(n);
38234
38234
  return K0 ?? (k0.eliminated++, y ? Be.skip : Y(qe, T));
38235
38235
  }
@@ -38287,30 +38287,30 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38287
38287
  }
38288
38288
  }
38289
38289
  if (T instanceof mt) {
38290
- w(T, this);
38290
+ D(T, this);
38291
38291
  var N0;
38292
38292
  return T.init instanceof C1 && (N0 = T.init, T.init = N0.body.pop(), N0.body.push(T)), T.init instanceof h1 ? T.init = T.init.body : Xa(T.init) && (T.init = null), N0 ? y ? Be.splice(N0.body) : N0 : T;
38293
38293
  }
38294
38294
  if (T instanceof An && T.body instanceof mt) {
38295
- if (w(T, this), T.body instanceof C1) {
38295
+ if (D(T, this), T.body instanceof C1) {
38296
38296
  var N0 = T.body;
38297
38297
  return T.body = N0.body.pop(), N0.body.push(T), y ? Be.splice(N0.body) : N0;
38298
38298
  }
38299
38299
  return T;
38300
38300
  }
38301
38301
  if (T instanceof C1)
38302
- return w(T, this), y && T.body.every(Vh) ? Be.splice(T.body) : T;
38302
+ return D(T, this), y && T.body.every(Vh) ? Be.splice(T.body) : T;
38303
38303
  if (T instanceof x1 && !(T instanceof mn)) {
38304
38304
  const k0 = d;
38305
- return d = T, w(T, this), d = k0, T;
38305
+ return d = T, D(T, this), d = k0, T;
38306
38306
  }
38307
38307
  }
38308
38308
  },
38309
- function(T, w) {
38309
+ function(T, D) {
38310
38310
  if (T instanceof H1)
38311
38311
  switch (T.expressions.length) {
38312
38312
  case 0:
38313
- return w ? Be.skip : Y(L1, T, { value: 0 });
38313
+ return D ? Be.skip : Y(L1, T, { value: 0 });
38314
38314
  case 1:
38315
38315
  return T.expressions[0];
38316
38316
  }
@@ -38318,13 +38318,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38318
38318
  );
38319
38319
  e.transform(g);
38320
38320
  function v(x, T) {
38321
- var w;
38321
+ var D;
38322
38322
  const y = i(x);
38323
- if (y instanceof V0 && !_h(x.left, xs) && e.variables.get(y.name) === (w = y.definition()))
38324
- return x instanceof X1 && (x.right.walk(A), !w.chained && x.left.fixed_value() === x.right && o.set(w.id, x)), !0;
38323
+ if (y instanceof V0 && !_h(x.left, xs) && e.variables.get(y.name) === (D = y.definition()))
38324
+ return x instanceof X1 && (x.right.walk(A), !D.chained && x.left.fixed_value() === x.right && o.set(D.id, x)), !0;
38325
38325
  if (x instanceof V0) {
38326
- if (w = x.definition(), !s.has(w.id) && (s.set(w.id, w), w.orig[0] instanceof Oi)) {
38327
- const N = w.scope.is_block_scope() && w.scope.get_defun_scope().variables.get(w.name);
38326
+ if (D = x.definition(), !s.has(D.id) && (s.set(D.id, D), D.orig[0] instanceof Oi)) {
38327
+ const N = D.scope.is_block_scope() && D.scope.get_defun_scope().variables.get(D.name);
38328
38328
  N && s.set(N.id, N);
38329
38329
  }
38330
38330
  return !0;
@@ -38680,7 +38680,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38680
38680
  o = !1, A(n), e.option("dead_code") && v(n, e), e.option("if_return") && g(n, e), e.sequences_limit > 0 && (T(n, e), y(n, e)), e.option("join_vars") && N(n), e.option("collapse_vars") && d(n, e);
38681
38681
  while (o && p-- > 0);
38682
38682
  function M() {
38683
- var B = e.self(), D = 0, $ = !1, R = !1;
38683
+ var B = e.self(), w = 0, $ = !1, R = !1;
38684
38684
  do
38685
38685
  if (B instanceof Vr)
38686
38686
  $ = !0;
@@ -38689,10 +38689,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38689
38689
  break;
38690
38690
  B instanceof S3 && (R = !0);
38691
38691
  }
38692
- while (B = e.parent(D++));
38692
+ while (B = e.parent(w++));
38693
38693
  return { in_loop: $, in_try: R };
38694
38694
  }
38695
- function d(B, D) {
38695
+ function d(B, w) {
38696
38696
  if (t.pinned() || r.pinned())
38697
38697
  return B;
38698
38698
  for (var $, R = [], L = B.length, P = new er(function(t0) {
@@ -38701,7 +38701,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38701
38701
  if (!b1)
38702
38702
  return t0 !== e0[g0] ? t0 : (g0++, g0 < e0.length ? F1(t0) : (b1 = !0, k0 = p0(t0, 0), k0 === t0 && (o1 = !0), t0));
38703
38703
  var G0 = P.parent();
38704
- if (t0 instanceof X1 && (t0.logical || t0.operator != "=" && K0.equivalent_to(t0.left)) || t0 instanceof xr || t0 instanceof vr || t0 instanceof c1 && K0 instanceof q1 && K0.equivalent_to(t0.expression) || (t0 instanceof c1 || t0 instanceof q1) && t0.optional || t0 instanceof ko || t0 instanceof ge || t0 instanceof Y1 && t0.expression instanceof ie && (t0.expression instanceof an || t0.expression.definition().references.length > 1) || t0 instanceof Vr && !(t0 instanceof mt) || t0 instanceof Vi || t0 instanceof Cr || t0 instanceof Tr || t0 instanceof Lr || t0 instanceof Wt || t0 instanceof te || G0 instanceof mt && t0 !== G0.init || !p1 && t0 instanceof V0 && !t0.is_declared(D) && !U3.has(t0) || t0 instanceof V0 && G0 instanceof c1 && Sn(G0, L2) || t0 instanceof ht && t0.key instanceof F0)
38704
+ if (t0 instanceof X1 && (t0.logical || t0.operator != "=" && K0.equivalent_to(t0.left)) || t0 instanceof xr || t0 instanceof vr || t0 instanceof c1 && K0 instanceof q1 && K0.equivalent_to(t0.expression) || (t0 instanceof c1 || t0 instanceof q1) && t0.optional || t0 instanceof ko || t0 instanceof ge || t0 instanceof Y1 && t0.expression instanceof ie && (t0.expression instanceof an || t0.expression.definition().references.length > 1) || t0 instanceof Vr && !(t0 instanceof mt) || t0 instanceof Vi || t0 instanceof Cr || t0 instanceof Tr || t0 instanceof Lr || t0 instanceof Wt || t0 instanceof te || G0 instanceof mt && t0 !== G0.init || !p1 && t0 instanceof V0 && !t0.is_declared(w) && !U3.has(t0) || t0 instanceof V0 && G0 instanceof c1 && Sn(G0, L2) || t0 instanceof ht && t0.key instanceof F0)
38705
38705
  return o1 = !0, t0;
38706
38706
  if (!k1 && (!Ae || !p1) && (G0 instanceof R0 && S2.has(G0.operator) && G0.left !== t0 || G0 instanceof B1 && G0.condition !== t0 || G0 instanceof _e && G0.condition !== t0) && (k1 = G0), O0 && !(t0 instanceof Ft) && K0.equivalent_to(t0) && !Qo(P.find_scope() || t, z1)) {
38707
38707
  if (k1)
@@ -38714,7 +38714,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38714
38714
  return Y(R1, b0, b0);
38715
38715
  if (b0 instanceof Ot) {
38716
38716
  var r1 = b0.name.definition(), n1 = b0.value;
38717
- return r1.references.length - r1.replaced == 1 && !D.exposed(r1) ? (r1.replaced++, N1 && Um(n1) ? n1.transform(D) : N2(G0, t0, n1)) : Y(X1, b0, {
38717
+ return r1.references.length - r1.replaced == 1 && !w.exposed(r1) ? (r1.replaced++, N1 && Um(n1) ? n1.transform(w) : N2(G0, t0, n1)) : Y(X1, b0, {
38718
38718
  operator: "=",
38719
38719
  logical: !1,
38720
38720
  left: Y(V0, b0.name, b0.name),
@@ -38724,7 +38724,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38724
38724
  return $u(b0, Su), b0;
38725
38725
  }
38726
38726
  var ne;
38727
- return (t0 instanceof c1 || t0 instanceof Gn && (Fe || K0 instanceof q1 || De(K0)) || t0 instanceof q1 && (Fe || t0.expression.may_throw_on_access(D)) || t0 instanceof V0 && (z1.has(t0.name) && z1.get(t0.name).modified || Fe && De(t0)) || t0 instanceof Ot && t0.value && (z1.has(t0.name.name) || Fe && De(t0.name)) || t0 instanceof vr || (ne = R2(t0.left, t0)) && (ne instanceof q1 || z1.has(ne.name)) || we && (s ? t0.has_side_effects(D) : Te(t0))) && (k0 = t0, t0 instanceof x1 && (o1 = !0)), F1(t0);
38727
+ return (t0 instanceof c1 || t0 instanceof Gn && (Fe || K0 instanceof q1 || De(K0)) || t0 instanceof q1 && (Fe || t0.expression.may_throw_on_access(w)) || t0 instanceof V0 && (z1.has(t0.name) && z1.get(t0.name).modified || Fe && De(t0)) || t0 instanceof Ot && t0.value && (z1.has(t0.name.name) || Fe && De(t0.name)) || t0 instanceof vr || (ne = R2(t0.left, t0)) && (ne instanceof q1 || z1.has(ne.name)) || we && (s ? t0.has_side_effects(w) : Te(t0))) && (k0 = t0, t0 instanceof x1 && (o1 = !0)), F1(t0);
38728
38728
  }, function(t0) {
38729
38729
  o1 || (k0 === t0 && (o1 = !0), k1 === t0 && (k1 = null));
38730
38730
  }), Z = new er(function(t0) {
@@ -38737,17 +38737,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38737
38737
  if (t0 instanceof P2 || t0 instanceof x1)
38738
38738
  return t0;
38739
38739
  }); --L >= 0; ) {
38740
- L == 0 && D.option("unused") && o0();
38740
+ L == 0 && w.option("unused") && o0();
38741
38741
  var e0 = [];
38742
38742
  for (K(B[L]); R.length > 0; ) {
38743
38743
  e0 = R.pop();
38744
38744
  var g0 = 0, b0 = e0[e0.length - 1], N0 = null, k0 = null, k1 = null, K0 = j0(b0);
38745
- if (!(!K0 || Zm(K0) || K0.has_side_effects(D))) {
38745
+ if (!(!K0 || Zm(K0) || K0.has_side_effects(w))) {
38746
38746
  var z1 = y1(b0), Ae = A1(K0);
38747
38747
  K0 instanceof V0 && z1.set(K0.name, { def: K0.definition(), modified: !1 });
38748
- var Fe = at(b0), p1 = be(), we = b0.may_throw(D), N1 = b0.name instanceof $t, b1 = N1, o1 = !1, _0 = 0, O0 = !$ || !b1;
38748
+ var Fe = at(b0), p1 = be(), we = b0.may_throw(w), N1 = b0.name instanceof $t, b1 = N1, o1 = !1, _0 = 0, O0 = !$ || !b1;
38749
38749
  if (!O0) {
38750
- for (let t0 = D.self().argnames.lastIndexOf(b0.name) + 1; !o1 && t0 < $.length; t0++)
38750
+ for (let t0 = w.self().argnames.lastIndexOf(b0.name) + 1; !o1 && t0 < $.length; t0++)
38751
38751
  $[t0].transform(P);
38752
38752
  O0 = !0;
38753
38753
  }
@@ -38827,9 +38827,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38827
38827
  }));
38828
38828
  }
38829
38829
  function o0() {
38830
- var t0, G0 = D.self();
38831
- if (F3(G0) && !G0.name && !G0.uses_arguments && !G0.pinned() && (t0 = D.parent()) instanceof c1 && t0.expression === G0 && t0.args.every($1)) {
38832
- var r1 = D.has_directive("use strict");
38830
+ var t0, G0 = w.self();
38831
+ if (F3(G0) && !G0.name && !G0.uses_arguments && !G0.pinned() && (t0 = w.parent()) instanceof c1 && t0.expression === G0 && t0.args.every($1)) {
38832
+ var r1 = w.has_directive("use strict");
38833
38833
  r1 && !vz(r1, G0.body) && (r1 = !1);
38834
38834
  var n1 = G0.argnames.length;
38835
38835
  $ = t0.args.slice(n1);
@@ -38851,7 +38851,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38851
38851
  })
38852
38852
  })]);
38853
38853
  } else
38854
- nt ? (nt instanceof f1 && nt.pinned() || tt(G0, nt, r1)) && (nt = null) : nt = At(J1).transform(D), nt && R.unshift([Y(Ot, J1, {
38854
+ nt ? (nt instanceof f1 && nt.pinned() || tt(G0, nt, r1)) && (nt = null) : nt = At(J1).transform(w), nt && R.unshift([Y(Ot, J1, {
38855
38855
  name: J1,
38856
38856
  value: nt
38857
38857
  })]);
@@ -38860,7 +38860,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38860
38860
  }
38861
38861
  function K(t0) {
38862
38862
  if (e0.push(t0), t0 instanceof X1)
38863
- !t0.left.has_side_effects(D) && !(t0.right instanceof _t) && R.push(e0.slice()), K(t0.right);
38863
+ !t0.left.has_side_effects(w) && !(t0.right instanceof _t) && R.push(e0.slice()), K(t0.right);
38864
38864
  else if (t0 instanceof R0)
38865
38865
  K(t0.left), K(t0.right);
38866
38866
  else if (t0 instanceof c1 && !Sn(t0, L2))
@@ -38899,7 +38899,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38899
38899
  if (!r1)
38900
38900
  return;
38901
38901
  var n1 = G0.orig.length - G0.eliminated;
38902
- if (n1 > 1 && !(t0.name instanceof $t) || (r1 > 1 ? q0(t0) : !D.exposed(G0)))
38902
+ if (n1 > 1 && !(t0.name instanceof $t) || (r1 > 1 ? q0(t0) : !w.exposed(G0)))
38903
38903
  return Y(V0, t0.name, t0.name);
38904
38904
  } else {
38905
38905
  const ne = t0 instanceof X1 ? t0.left : t0.expression;
@@ -38920,7 +38920,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38920
38920
  const ct = G0.get(ne.name);
38921
38921
  (!ct || !ct.modified) && G0.set(ne.name, {
38922
38922
  def: ne.definition(),
38923
- modified: Ru(D, r1, n1, n1, 0)
38923
+ modified: Ru(w, r1, n1, n1, 0)
38924
38924
  });
38925
38925
  }
38926
38926
  });
@@ -38928,7 +38928,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38928
38928
  }
38929
38929
  function E1(t0) {
38930
38930
  if (t0.name instanceof $t) {
38931
- var G0 = D.parent(), r1 = D.self().argnames, n1 = r1.indexOf(t0.name);
38931
+ var G0 = w.parent(), r1 = w.self().argnames, n1 = r1.indexOf(t0.name);
38932
38932
  if (n1 < 0)
38933
38933
  G0.args.length = Math.min(G0.args.length, r1.length - 1);
38934
38934
  else {
@@ -38961,7 +38961,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
38961
38961
  return t0 instanceof V0 && t0.definition().scope.get_defun_scope() === r && !(i && (z1.has(t0.name) || b0 instanceof We || b0 instanceof X1 && !b0.logical && b0.operator != "="));
38962
38962
  }
38963
38963
  function at(t0) {
38964
- return t0 instanceof We ? X3.has(t0.operator) : Q0(t0).has_side_effects(D);
38964
+ return t0 instanceof We ? X3.has(t0.operator) : Q0(t0).has_side_effects(w);
38965
38965
  }
38966
38966
  function be() {
38967
38967
  if (Fe)
@@ -39010,13 +39010,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39010
39010
  }
39011
39011
  }
39012
39012
  function A(B) {
39013
- for (var D = [], $ = 0; $ < B.length; ) {
39013
+ for (var w = [], $ = 0; $ < B.length; ) {
39014
39014
  var R = B[$];
39015
- R instanceof C1 && R.body.every(Vh) ? (o = !0, A(R.body), B.splice($, 1, ...R.body), $ += R.body.length) : R instanceof qe ? (o = !0, B.splice($, 1)) : R instanceof Cn ? D.indexOf(R.value) < 0 ? ($++, D.push(R.value)) : (o = !0, B.splice($, 1)) : $++;
39015
+ R instanceof C1 && R.body.every(Vh) ? (o = !0, A(R.body), B.splice($, 1, ...R.body), $ += R.body.length) : R instanceof qe ? (o = !0, B.splice($, 1)) : R instanceof Cn ? w.indexOf(R.value) < 0 ? ($++, w.push(R.value)) : (o = !0, B.splice($, 1)) : $++;
39016
39016
  }
39017
39017
  }
39018
- function g(B, D) {
39019
- var $ = D.self(), R = k1(B), L = $ instanceof f1;
39018
+ function g(B, w) {
39019
+ var $ = w.self(), R = k1(B), L = $ instanceof f1;
39020
39020
  const P = Math.min(B.length, 500);
39021
39021
  for (var Z = P; --Z >= 0; ) {
39022
39022
  var e0 = B[Z], g0 = p1(Z), b0 = B[g0];
@@ -39035,11 +39035,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39035
39035
  if (e0 instanceof _e) {
39036
39036
  let N1, b1;
39037
39037
  if (N1 = Hr(e0.body), z1(N1) && (b1 = Fe(e0.body, N1))) {
39038
- N1.label && gu(N1.label.thedef.references, N1), o = !0, e0 = e0.clone(), e0.condition = e0.condition.negate(D), e0.body = Y(C1, e0, {
39038
+ N1.label && gu(N1.label.thedef.references, N1), o = !0, e0 = e0.clone(), e0.condition = e0.condition.negate(w), e0.body = Y(C1, e0, {
39039
39039
  body: yh(e0.alternative).concat(Ae())
39040
39040
  }), e0.alternative = Y(C1, e0, {
39041
39041
  body: b1
39042
- }), B[Z] = e0.transform(D);
39042
+ }), B[Z] = e0.transform(w);
39043
39043
  continue;
39044
39044
  }
39045
39045
  if (N1 = Hr(e0.alternative), z1(N1) && (b1 = Fe(e0.alternative, N1))) {
@@ -39047,7 +39047,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39047
39047
  body: yh(e0.body).concat(Ae())
39048
39048
  }), e0.alternative = Y(C1, e0.alternative, {
39049
39049
  body: b1
39050
- }), B[Z] = e0.transform(D);
39050
+ }), B[Z] = e0.transform(w);
39051
39051
  continue;
39052
39052
  }
39053
39053
  }
@@ -39060,17 +39060,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39060
39060
  continue;
39061
39061
  }
39062
39062
  if (N0 && !e0.alternative && b0 instanceof it && b0.value) {
39063
- o = !0, e0 = e0.clone(), e0.alternative = b0, B[Z] = e0.transform(D), B.splice(g0, 1);
39063
+ o = !0, e0 = e0.clone(), e0.alternative = b0, B[Z] = e0.transform(w), B.splice(g0, 1);
39064
39064
  continue;
39065
39065
  }
39066
39066
  if (N0 && !e0.alternative && (!b0 && L && R || b0 instanceof it)) {
39067
39067
  o = !0, e0 = e0.clone(), e0.alternative = b0 || Y(it, e0, {
39068
39068
  value: null
39069
- }), B[Z] = e0.transform(D), b0 && B.splice(g0, 1);
39069
+ }), B[Z] = e0.transform(w), b0 && B.splice(g0, 1);
39070
39070
  continue;
39071
39071
  }
39072
39072
  var k0 = B[we(Z)];
39073
- if (D.option("sequences") && L && !e0.alternative && k0 instanceof _e && k0.body instanceof it && p1(g0) == B.length && b0 instanceof h1) {
39073
+ if (w.option("sequences") && L && !e0.alternative && k0 instanceof _e && k0.body instanceof it && p1(g0) == B.length && b0 instanceof h1) {
39074
39074
  o = !0, e0 = e0.clone(), e0.alternative = Y(C1, b0, {
39075
39075
  body: [
39076
39076
  b0,
@@ -39078,7 +39078,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39078
39078
  value: null
39079
39079
  })
39080
39080
  ]
39081
- }), B[Z] = e0.transform(D), B.splice(g0, 1);
39081
+ }), B[Z] = e0.transform(w), B.splice(g0, 1);
39082
39082
  continue;
39083
39083
  }
39084
39084
  }
@@ -39102,7 +39102,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39102
39102
  if (_0 instanceof Jn && !(_0 instanceof Mt))
39103
39103
  return !1;
39104
39104
  }
39105
- var O0 = N1 instanceof Vi ? D.loopcontrol_target(N1) : null;
39105
+ var O0 = N1 instanceof Vi ? w.loopcontrol_target(N1) : null;
39106
39106
  return N1 instanceof it && L && K0(N1.value) || N1 instanceof Ka && $ === nz(O0) || N1 instanceof jr && O0 instanceof C1 && $ === O0;
39107
39107
  }
39108
39108
  function Ae() {
@@ -39135,11 +39135,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39135
39135
  return b1;
39136
39136
  }
39137
39137
  }
39138
- function v(B, D) {
39139
- for (var $, R = D.self(), L = 0, P = 0, Z = B.length; L < Z; L++) {
39138
+ function v(B, w) {
39139
+ for (var $, R = w.self(), L = 0, P = 0, Z = B.length; L < Z; L++) {
39140
39140
  var e0 = B[L];
39141
39141
  if (e0 instanceof Vi) {
39142
- var g0 = D.loopcontrol_target(e0);
39142
+ var g0 = w.loopcontrol_target(e0);
39143
39143
  e0 instanceof jr && !(g0 instanceof Vr) && nz(g0) === R || e0 instanceof Ka && nz(g0) === R ? e0.label && gu(e0.label.thedef.references, e0) : B[P++] = e0;
39144
39144
  } else
39145
39145
  B[P++] = e0;
@@ -39149,13 +39149,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39149
39149
  }
39150
39150
  }
39151
39151
  B.length = P, o = P != Z, $ && $.forEach(function(b0) {
39152
- C2(D, b0, B);
39152
+ C2(w, b0, B);
39153
39153
  });
39154
39154
  }
39155
39155
  function x(B) {
39156
- return B.definitions.every((D) => !D.value);
39156
+ return B.definitions.every((w) => !w.value);
39157
39157
  }
39158
- function T(B, D) {
39158
+ function T(B, w) {
39159
39159
  if (B.length < 2)
39160
39160
  return;
39161
39161
  var $ = [], R = 0;
@@ -39168,20 +39168,20 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39168
39168
  for (var P = 0, Z = B.length; P < Z; P++) {
39169
39169
  var e0 = B[P];
39170
39170
  if (e0 instanceof h1) {
39171
- $.length >= D.sequences_limit && L();
39171
+ $.length >= w.sequences_limit && L();
39172
39172
  var g0 = e0.body;
39173
- $.length > 0 && (g0 = g0.drop_side_effect_free(D)), g0 && Ud($, g0);
39173
+ $.length > 0 && (g0 = g0.drop_side_effect_free(w)), g0 && Ud($, g0);
39174
39174
  } else e0 instanceof qn && x(e0) || e0 instanceof pt || L(), B[R++] = e0;
39175
39175
  }
39176
39176
  L(), B.length = R, R != Z && (o = !0);
39177
39177
  }
39178
- function w(B, D) {
39178
+ function D(B, w) {
39179
39179
  if (!(B instanceof C1))
39180
39180
  return B;
39181
39181
  for (var $ = null, R = 0, L = B.body.length; R < L; R++) {
39182
39182
  var P = B.body[R];
39183
39183
  if (P instanceof Mt && x(P))
39184
- D.push(P);
39184
+ w.push(P);
39185
39185
  else {
39186
39186
  if ($ || P instanceof Jn && !(P instanceof Mt))
39187
39187
  return !1;
@@ -39190,21 +39190,21 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39190
39190
  }
39191
39191
  return $;
39192
39192
  }
39193
- function y(B, D) {
39193
+ function y(B, w) {
39194
39194
  function $(k0) {
39195
39195
  R--, o = !0;
39196
39196
  var k1 = L.body;
39197
- return V1(k1, [k1, k0]).transform(D);
39197
+ return V1(k1, [k1, k0]).transform(w);
39198
39198
  }
39199
39199
  for (var R = 0, L, P = 0; P < B.length; P++) {
39200
39200
  var Z = B[P];
39201
- if (L && (Z instanceof Gn ? Z.value = $(Z.value || At(Z).transform(D)) : Z instanceof mt ? Z.init instanceof Jn || Ut(L.body, (k1) => {
39201
+ if (L && (Z instanceof Gn ? Z.value = $(Z.value || At(Z).transform(w)) : Z instanceof mt ? Z.init instanceof Jn || Ut(L.body, (k1) => {
39202
39202
  if (k1 instanceof x1)
39203
39203
  return !0;
39204
39204
  if (k1 instanceof R0 && k1.operator === "in")
39205
39205
  return Zn;
39206
- }) || (Z.init ? Z.init = $(Z.init) : (Z.init = L.body, R--, o = !0)) : Z instanceof sn ? (!(Z.init instanceof Jn) || Z.init instanceof Mt) && (Z.object = $(Z.object)) : Z instanceof _e ? Z.condition = $(Z.condition) : (Z instanceof dn || Z instanceof Tr) && (Z.expression = $(Z.expression))), D.option("conditionals") && Z instanceof _e) {
39207
- var e0 = [], g0 = w(Z.body, e0), b0 = w(Z.alternative, e0);
39206
+ }) || (Z.init ? Z.init = $(Z.init) : (Z.init = L.body, R--, o = !0)) : Z instanceof sn ? (!(Z.init instanceof Jn) || Z.init instanceof Mt) && (Z.object = $(Z.object)) : Z instanceof _e ? Z.condition = $(Z.condition) : (Z instanceof dn || Z instanceof Tr) && (Z.expression = $(Z.expression))), w.option("conditionals") && Z instanceof _e) {
39207
+ var e0 = [], g0 = D(Z.body, e0), b0 = D(Z.alternative, e0);
39208
39208
  if (g0 !== !1 && b0 !== !1 && e0.length > 0) {
39209
39209
  var N0 = e0.length;
39210
39210
  e0.push(Y(_e, Z, {
@@ -39219,12 +39219,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39219
39219
  }
39220
39220
  B.length = R;
39221
39221
  }
39222
- function q(B, D) {
39222
+ function q(B, w) {
39223
39223
  if (B instanceof qn) {
39224
39224
  var $ = B.definitions[B.definitions.length - 1];
39225
39225
  if ($.value instanceof ze) {
39226
39226
  var R;
39227
- if (D instanceof X1 && !D.logical ? R = [D] : D instanceof H1 && (R = D.expressions.slice()), !!R) {
39227
+ if (w instanceof X1 && !w.logical ? R = [w] : w instanceof H1 && (R = w.expressions.slice()), !!R) {
39228
39228
  var L = !1;
39229
39229
  do {
39230
39230
  var P = R[0];
@@ -39262,17 +39262,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39262
39262
  }
39263
39263
  }
39264
39264
  function N(B) {
39265
- for (var D, $ = 0, R = -1, L = B.length; $ < L; $++) {
39265
+ for (var w, $ = 0, R = -1, L = B.length; $ < L; $++) {
39266
39266
  var P = B[$], Z = B[R];
39267
39267
  if (P instanceof qn)
39268
- Z && Z.TYPE == P.TYPE ? (Z.definitions = Z.definitions.concat(P.definitions), o = !0) : D && D.TYPE == P.TYPE && x(P) ? (D.definitions = D.definitions.concat(P.definitions), o = !0) : (B[++R] = P, D = P);
39268
+ Z && Z.TYPE == P.TYPE ? (Z.definitions = Z.definitions.concat(P.definitions), o = !0) : w && w.TYPE == P.TYPE && x(P) ? (w.definitions = w.definitions.concat(P.definitions), o = !0) : (B[++R] = P, w = P);
39269
39269
  else if (P instanceof vr && Z instanceof vr && Z.await === P.await)
39270
39270
  Z.definitions = Z.definitions.concat(P.definitions);
39271
39271
  else if (P instanceof Gn)
39272
39272
  P.value = g0(P.value);
39273
39273
  else if (P instanceof mt) {
39274
39274
  var e0 = q(Z, P.init);
39275
- e0 ? (o = !0, P.init = e0.length ? V1(P.init, e0) : null, B[++R] = P) : Z instanceof Mt && (!P.init || P.init.TYPE == Z.TYPE) ? (P.init && (Z.definitions = Z.definitions.concat(P.init.definitions)), P.init = Z, B[R] = P, o = !0) : D instanceof Mt && P.init instanceof Mt && x(P.init) ? (D.definitions = D.definitions.concat(P.init.definitions), P.init = null, B[++R] = P, o = !0) : B[++R] = P;
39275
+ e0 ? (o = !0, P.init = e0.length ? V1(P.init, e0) : null, B[++R] = P) : Z instanceof Mt && (!P.init || P.init.TYPE == Z.TYPE) ? (P.init && (Z.definitions = Z.definitions.concat(P.init.definitions)), P.init = Z, B[R] = P, o = !0) : w instanceof Mt && P.init instanceof Mt && x(P.init) ? (w.definitions = w.definitions.concat(P.init.definitions), P.init = null, B[++R] = P, o = !0) : B[++R] = P;
39276
39276
  } else if (P instanceof sn)
39277
39277
  P.object = g0(P.object);
39278
39278
  else if (P instanceof _e)
@@ -39435,7 +39435,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39435
39435
  if (T !== n)
39436
39436
  return T = wn(T, n).optimize(e), qr(e, T, n);
39437
39437
  return n;
39438
- function w(P) {
39438
+ function D(P) {
39439
39439
  if (!P) return At(n);
39440
39440
  if (P instanceof it)
39441
39441
  return P.value ? P.value.clone(!0) : At(n);
@@ -39448,7 +39448,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39448
39448
  function y(P) {
39449
39449
  var Z = r.body, e0 = Z.length;
39450
39450
  if (e.option("inline") < 3)
39451
- return e0 == 1 && w(P);
39451
+ return e0 == 1 && D(P);
39452
39452
  P = null;
39453
39453
  for (var g0 = 0; g0 < e0; g0++) {
39454
39454
  var b0 = Z[g0];
@@ -39463,7 +39463,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39463
39463
  b0 instanceof qe || (P = b0);
39464
39464
  }
39465
39465
  }
39466
- return w(P);
39466
+ return D(P);
39467
39467
  }
39468
39468
  function q(P, Z) {
39469
39469
  for (var e0 = 0, g0 = r.argnames.length; e0 < g0; e0++) {
@@ -39515,7 +39515,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39515
39515
  var Z = !(d instanceof He) || e.toplevel.vars, e0 = e.option("inline");
39516
39516
  return !N(P, e0 >= 3 && Z) || !q(P, e0 >= 2 && Z) ? !1 : !A || A.length == 0 || !Xm(r, A);
39517
39517
  }
39518
- function D(P, Z, e0, g0) {
39518
+ function w(P, Z, e0, g0) {
39519
39519
  var b0 = e0.definition();
39520
39520
  d.variables.has(e0.name) || (d.variables.set(e0.name, b0), d.enclosed.push(b0), P.push(Y(Ot, e0, {
39521
39521
  name: e0,
@@ -39538,7 +39538,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39538
39538
  N0 && Z.push(N0);
39539
39539
  else {
39540
39540
  var k0 = Y(Fo, b0, b0);
39541
- b0.definition().orig.push(k0), !N0 && A && (N0 = At(n)), D(P, Z, k0, N0);
39541
+ b0.definition().orig.push(k0), !N0 && A && (N0 = At(n)), w(P, Z, k0, N0);
39542
39542
  }
39543
39543
  }
39544
39544
  P.reverse(), Z.reverse();
@@ -39549,7 +39549,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39549
39549
  if (N0 instanceof Mt)
39550
39550
  for (var k0 = 0, k1 = N0.definitions.length; k0 < k1; k0++) {
39551
39551
  var K0 = N0.definitions[k0], z1 = K0.name;
39552
- if (D(P, Z, z1, K0.value), A && r.argnames.every(
39552
+ if (w(P, Z, z1, K0.value), A && r.argnames.every(
39553
39553
  (p1) => p1.name != z1.name
39554
39554
  )) {
39555
39555
  var Ae = r.variables.get(z1.name), Fe = Y(V0, z1, z1);
@@ -39941,8 +39941,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39941
39941
  var N = q.to_assignments(n), B = d.parent();
39942
39942
  if (B instanceof sn && B.init === q) {
39943
39943
  if (N == null) {
39944
- var D = q.definitions[0].name;
39945
- return Y(V0, D, D);
39944
+ var w = q.definitions[0].name;
39945
+ return Y(V0, w, w);
39946
39946
  }
39947
39947
  return N;
39948
39948
  }
@@ -39959,21 +39959,21 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
39959
39959
  var A = [];
39960
39960
  const y = e instanceof f1, q = y ? e.args_as_names() : null;
39961
39961
  if (o.forEach((N, B) => {
39962
- y && q.some((D) => D.name === N.name.name) ? o.delete(B) : (N = N.clone(), N.value = null, A.push(N), o.set(B, N));
39962
+ y && q.some((w) => w.name === N.name.name) ? o.delete(B) : (N = N.clone(), N.value = null, A.push(N), o.set(B, N));
39963
39963
  }), A.length > 0) {
39964
39964
  for (var g = 0; g < e.body.length; ) {
39965
39965
  if (e.body[g] instanceof h1) {
39966
39966
  var v = e.body[g].body, x, T;
39967
39967
  if (v instanceof X1 && v.operator == "=" && (x = v.left) instanceof ie && o.has(x.name)) {
39968
- var w = o.get(x.name);
39969
- if (w.value) break;
39970
- w.value = v.right, gu(A, w), A.push(w), e.body.splice(g, 1);
39968
+ var D = o.get(x.name);
39969
+ if (D.value) break;
39970
+ D.value = v.right, gu(A, D), A.push(D), e.body.splice(g, 1);
39971
39971
  continue;
39972
39972
  }
39973
39973
  if (v instanceof H1 && (T = v.expressions[0]) instanceof X1 && T.operator == "=" && (x = T.left) instanceof ie && o.has(x.name)) {
39974
- var w = o.get(x.name);
39975
- if (w.value) break;
39976
- w.value = T.right, gu(A, w), A.push(w), e.body[g].body = V1(v, v.expressions.slice(1));
39974
+ var D = o.get(x.name);
39975
+ if (D.value) break;
39976
+ D.value = T.right, gu(A, D), A.push(D), e.body[g].body = V1(v, v.expressions.slice(1));
39977
39977
  continue;
39978
39978
  }
39979
39979
  }
@@ -40009,7 +40009,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40009
40009
  o(s, this);
40010
40010
  const A = /* @__PURE__ */ new Map(), g = [];
40011
40011
  return d.properties.forEach(({ key: v, value: x }) => {
40012
- const T = i.find_scope(), w = e.create_symbol(p.CTOR, {
40012
+ const T = i.find_scope(), D = e.create_symbol(p.CTOR, {
40013
40013
  source: p,
40014
40014
  scope: T,
40015
40015
  conflict_scopes: /* @__PURE__ */ new Set([
@@ -40018,8 +40018,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40018
40018
  ]),
40019
40019
  tentative_name: p.name + "_" + v
40020
40020
  });
40021
- A.set(String(v), w.definition()), g.push(Y(Ot, s, {
40022
- name: w,
40021
+ A.set(String(v), D.definition()), g.push(Y(Ot, s, {
40022
+ name: D,
40023
40023
  value: x
40024
40024
  }));
40025
40025
  }), r.set(M.id, A), Be.splice(g);
@@ -40248,30 +40248,30 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40248
40248
  for (; d < A; ) T(n.body[d++], o[o.length - 1]);
40249
40249
  n.body = o;
40250
40250
  let x = p || M;
40251
- if (p = null, M = null, o.every((D, $) => (D === x || D.expression instanceof Me) && (D.body.length === 0 || Hr(D) || o.length - 1 === $)))
40252
- for (let D = 0; D < o.length; D++) {
40253
- const $ = o[D];
40254
- for (let R = D + 1; R < o.length; R++) {
40251
+ if (p = null, M = null, o.every((w, $) => (w === x || w.expression instanceof Me) && (w.body.length === 0 || Hr(w) || o.length - 1 === $)))
40252
+ for (let w = 0; w < o.length; w++) {
40253
+ const $ = o[w];
40254
+ for (let R = w + 1; R < o.length; R++) {
40255
40255
  const L = o[R];
40256
40256
  if (L.body.length === 0) continue;
40257
- const P = R === o.length - 1, Z = w(L, $, !1);
40258
- if (Z || P && w(L, $, !0)) {
40257
+ const P = R === o.length - 1, Z = D(L, $, !1);
40258
+ if (Z || P && D(L, $, !0)) {
40259
40259
  !Z && P && L.body.push(Y(jr));
40260
40260
  let e0 = R - 1, g0 = 0;
40261
- for (; e0 > D && B(o[e0--]); )
40261
+ for (; e0 > w && B(o[e0--]); )
40262
40262
  g0++;
40263
40263
  const b0 = o.splice(R - g0, 1 + g0);
40264
- o.splice(D + 1, 0, ...b0), D += b0.length;
40264
+ o.splice(w + 1, 0, ...b0), w += b0.length;
40265
40265
  }
40266
40266
  }
40267
40267
  }
40268
- for (let D = 0; D < o.length; D++) {
40269
- let $ = o[D];
40268
+ for (let w = 0; w < o.length; w++) {
40269
+ let $ = o[w];
40270
40270
  if ($.body.length !== 0 && Hr($))
40271
- for (let R = D + 1; R < o.length; D++, R++) {
40271
+ for (let R = w + 1; R < o.length; w++, R++) {
40272
40272
  let L = o[R];
40273
40273
  if (L.body.length !== 0) {
40274
- if (w(L, $, !1) || R === o.length - 1 && w(L, $, !0)) {
40274
+ if (D(L, $, !1) || R === o.length - 1 && D(L, $, !0)) {
40275
40275
  $.body = [], $ = L;
40276
40276
  continue;
40277
40277
  }
@@ -40280,14 +40280,14 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40280
40280
  }
40281
40281
  }
40282
40282
  {
40283
- let D = o.length - 1;
40284
- for (; D >= 0; D--) {
40285
- let $ = o[D].body;
40283
+ let w = o.length - 1;
40284
+ for (; w >= 0; w--) {
40285
+ let $ = o[w].body;
40286
40286
  for (; N($[$.length - 1], e); ) $.pop();
40287
- if (!B(o[D])) break;
40287
+ if (!B(o[w])) break;
40288
40288
  }
40289
- if (D++, !x || o.indexOf(x) >= D)
40290
- for (let $ = o.length - 1; $ >= D; $--) {
40289
+ if (w++, !x || o.indexOf(x) >= w)
40290
+ for (let $ = o.length - 1; $ >= w; $--) {
40291
40291
  let R = o[$];
40292
40292
  if (R === x)
40293
40293
  x = null, T(o.pop());
@@ -40298,7 +40298,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40298
40298
  }
40299
40299
  }
40300
40300
  e: if (x) {
40301
- let D = o.indexOf(x), $ = D;
40301
+ let w = o.indexOf(x), $ = w;
40302
40302
  for (; $ < o.length - 1 && B(o[$]); $++)
40303
40303
  ;
40304
40304
  if ($ < o.length - 1)
@@ -40310,22 +40310,22 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40310
40310
  break;
40311
40311
  }
40312
40312
  if ($ > R) {
40313
- let L = D - 1;
40313
+ let L = w - 1;
40314
40314
  for (; L >= 0 && B(o[L]); L--)
40315
40315
  ;
40316
- let P = Math.max(R, L) + 1, Z = D;
40317
- R > D ? (Z = R, o[R].body = o[$].body) : x.body = o[$].body, o.splice(Z + 1, $ - Z), o.splice(P, D - P);
40316
+ let P = Math.max(R, L) + 1, Z = w;
40317
+ R > w ? (Z = R, o[R].body = o[$].body) : x.body = o[$].body, o.splice(Z + 1, $ - Z), o.splice(P, w - P);
40318
40318
  }
40319
40319
  }
40320
40320
  e: if (x) {
40321
- let D = o.findIndex((P) => !B(P)), $;
40322
- if (D === o.length - 1) {
40323
- let P = o[D];
40321
+ let w = o.findIndex((P) => !B(P)), $;
40322
+ if (w === o.length - 1) {
40323
+ let P = o[w];
40324
40324
  if (q(n)) break e;
40325
40325
  $ = Y(C1, P, {
40326
40326
  body: P.body
40327
40327
  }), P.body = [];
40328
- } else if (D !== -1)
40328
+ } else if (w !== -1)
40329
40329
  break e;
40330
40330
  if (!o.find(
40331
40331
  (P) => P !== x && P.expression.has_side_effects(e)
@@ -40348,31 +40348,31 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40348
40348
  body: s.concat(y(n.expression))
40349
40349
  }).optimize(e);
40350
40350
  if (o.length == 1 && !q(n)) {
40351
- let D = o[0];
40351
+ let w = o[0];
40352
40352
  return Y(_e, n, {
40353
40353
  condition: Y(R0, n, {
40354
40354
  operator: "===",
40355
40355
  left: n.expression,
40356
- right: D.expression
40356
+ right: w.expression
40357
40357
  }),
40358
- body: Y(C1, D, {
40359
- body: D.body
40358
+ body: Y(C1, w, {
40359
+ body: w.body
40360
40360
  }),
40361
40361
  alternative: null
40362
40362
  }).optimize(e);
40363
40363
  }
40364
40364
  if (o.length === 2 && x && !q(n)) {
40365
- let D = o[0] === x ? o[1] : o[0], $ = x.expression && y(x.expression);
40365
+ let w = o[0] === x ? o[1] : o[0], $ = x.expression && y(x.expression);
40366
40366
  if (Hr(o[0])) {
40367
40367
  let Z = o[0];
40368
40368
  return N(Z.body[Z.body.length - 1], e) && Z.body.pop(), Y(_e, n, {
40369
40369
  condition: Y(R0, n, {
40370
40370
  operator: "===",
40371
40371
  left: n.expression,
40372
- right: D.expression
40372
+ right: w.expression
40373
40373
  }),
40374
- body: Y(C1, D, {
40375
- body: D.body
40374
+ body: Y(C1, w, {
40375
+ body: w.body
40376
40376
  }),
40377
40377
  alternative: Y(C1, x, {
40378
40378
  body: [].concat(
@@ -40382,8 +40382,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40382
40382
  })
40383
40383
  }).optimize(e);
40384
40384
  }
40385
- let R = "===", L = Y(C1, D, {
40386
- body: D.body
40385
+ let R = "===", L = Y(C1, w, {
40386
+ body: w.body
40387
40387
  }), P = Y(C1, x, {
40388
40388
  body: [].concat(
40389
40389
  $ || [],
@@ -40401,7 +40401,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40401
40401
  condition: Y(R0, n, {
40402
40402
  operator: R,
40403
40403
  left: n.expression,
40404
- right: D.expression
40404
+ right: w.expression
40405
40405
  }),
40406
40406
  body: L,
40407
40407
  alternative: null
@@ -40411,33 +40411,33 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40411
40411
  }).optimize(e);
40412
40412
  }
40413
40413
  return n;
40414
- function T(D, $) {
40415
- $ && !Hr($) ? $.body = $.body.concat(D.body) : C2(e, D, s);
40414
+ function T(w, $) {
40415
+ $ && !Hr($) ? $.body = $.body.concat(w.body) : C2(e, w, s);
40416
40416
  }
40417
- function w(D, $, R) {
40418
- let L = D.body, P = $.body;
40417
+ function D(w, $, R) {
40418
+ let L = w.body, P = $.body;
40419
40419
  if (R && (L = L.concat(Y(jr))), L.length !== P.length) return !1;
40420
- let Z = Y(C1, D, { body: L }), e0 = Y(C1, $, { body: P });
40420
+ let Z = Y(C1, w, { body: L }), e0 = Y(C1, $, { body: P });
40421
40421
  return Z.equivalent_to(e0);
40422
40422
  }
40423
- function y(D) {
40424
- return Y(h1, D, { body: D });
40423
+ function y(w) {
40424
+ return Y(h1, w, { body: w });
40425
40425
  }
40426
- function q(D) {
40426
+ function q(w) {
40427
40427
  let $ = !1, R = new Yt((L) => {
40428
40428
  if ($ || L instanceof f1 || L instanceof h1) return !0;
40429
40429
  if (!N(L, R)) return;
40430
40430
  let P = R.parent();
40431
40431
  P instanceof Bo && P.body[P.body.length - 1] === L || ($ = !0);
40432
40432
  });
40433
- return D.walk(R), $;
40433
+ return w.walk(R), $;
40434
40434
  }
40435
- function N(D, $) {
40436
- return D instanceof jr && $.loopcontrol_target(D) === n;
40435
+ function N(w, $) {
40436
+ return w instanceof jr && $.loopcontrol_target(w) === n;
40437
40437
  }
40438
- function B(D) {
40439
- return !Hr(D) && !Y(C1, D, {
40440
- body: D.body
40438
+ function B(w) {
40439
+ return !Hr(w) && !Y(C1, w, {
40440
+ body: w.body
40441
40441
  }).has_side_effects(e);
40442
40442
  }
40443
40443
  });
@@ -40609,16 +40609,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40609
40609
  var x;
40610
40610
  if (n.args.length > 0 && (x = n.args[0].evaluate(e), x === n.args[0]))
40611
40611
  break e;
40612
- for (var T = [], w = [], M = 0, d = t.expression.elements.length; M < d; M++) {
40612
+ for (var T = [], D = [], M = 0, d = t.expression.elements.length; M < d; M++) {
40613
40613
  var y = t.expression.elements[M];
40614
40614
  if (y instanceof Y1) break e;
40615
40615
  var q = y.evaluate(e);
40616
- q !== y ? w.push(q) : (w.length > 0 && (T.push(Y(ee, n, {
40617
- value: w.join(x)
40618
- })), w.length = 0), T.push(y));
40616
+ q !== y ? D.push(q) : (D.length > 0 && (T.push(Y(ee, n, {
40617
+ value: D.join(x)
40618
+ })), D.length = 0), T.push(y));
40619
40619
  }
40620
- if (w.length > 0 && T.push(Y(ee, n, {
40621
- value: w.join(x)
40620
+ if (D.length > 0 && T.push(Y(ee, n, {
40621
+ value: D.join(x)
40622
40622
  })), T.length == 0) return Y(ee, n, { value: "" });
40623
40623
  if (T.length == 1)
40624
40624
  return T[0].is_string(e) ? T[0] : Y(R0, T[0], {
@@ -40642,11 +40642,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
40642
40642
  break;
40643
40643
  case "charAt":
40644
40644
  if (t.expression.is_string(e)) {
40645
- var B = n.args[0], D = B ? B.evaluate(e) : 0;
40646
- if (D !== B)
40645
+ var B = n.args[0], w = B ? B.evaluate(e) : 0;
40646
+ if (w !== B)
40647
40647
  return Y(Tt, t, {
40648
40648
  expression: t.expression,
40649
- property: wn(D | 0, B || t)
40649
+ property: wn(w | 0, B || t)
40650
40650
  }).optimize(e);
40651
40651
  }
40652
40652
  break;
@@ -41016,11 +41016,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41016
41016
  operator: "+",
41017
41017
  left: n.left.right,
41018
41018
  right: n.right
41019
- }), w = T.optimize(e);
41020
- T !== w && (n = Y(R0, n, {
41019
+ }), D = T.optimize(e);
41020
+ T !== D && (n = Y(R0, n, {
41021
41021
  operator: "+",
41022
41022
  left: n.left.left,
41023
- right: w
41023
+ right: D
41024
41024
  }));
41025
41025
  }
41026
41026
  if (n.left instanceof R0 && n.left.operator == "+" && n.left.is_string(e) && n.right instanceof R0 && n.right.operator == "+" && n.right.is_string(e)) {
@@ -41056,20 +41056,20 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41056
41056
  break;
41057
41057
  }
41058
41058
  if (n.left instanceof On) {
41059
- var q = n.left, w = n.right.evaluate(e);
41060
- if (w != n.right)
41061
- return q.segments[q.segments.length - 1].value += String(w), q;
41059
+ var q = n.left, D = n.right.evaluate(e);
41060
+ if (D != n.right)
41061
+ return q.segments[q.segments.length - 1].value += String(D), q;
41062
41062
  }
41063
41063
  if (n.right instanceof On) {
41064
- var w = n.right, q = n.left.evaluate(e);
41064
+ var D = n.right, q = n.left.evaluate(e);
41065
41065
  if (q != n.left)
41066
- return w.segments[0].value = String(q) + w.segments[0].value, w;
41066
+ return D.segments[0].value = String(q) + D.segments[0].value, D;
41067
41067
  }
41068
41068
  if (n.left instanceof On && n.right instanceof On) {
41069
- var q = n.left, N = q.segments, w = n.right;
41070
- N[N.length - 1].value += w.segments[0].value;
41071
- for (var B = 1; B < w.segments.length; B++)
41072
- N.push(w.segments[B]);
41069
+ var q = n.left, N = q.segments, D = n.right;
41070
+ N[N.length - 1].value += D.segments[0].value;
41071
+ for (var B = 1; B < D.segments.length; B++)
41072
+ N.push(D.segments[B]);
41073
41073
  return q;
41074
41074
  }
41075
41075
  case "*":
@@ -41078,12 +41078,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41078
41078
  case "|":
41079
41079
  case "^":
41080
41080
  if (n.left.is_number_or_bigint(e) && n.right.is_number_or_bigint(e) && t() && !(n.left instanceof R0 && n.left.operator != n.operator && Xr[n.left.operator] >= Xr[n.operator])) {
41081
- var D = Y(R0, n, {
41081
+ var w = Y(R0, n, {
41082
41082
  operator: n.operator,
41083
41083
  left: n.right,
41084
41084
  right: n.left
41085
41085
  });
41086
- n.right instanceof Me && !(n.left instanceof Me) ? n = qr(e, D, n) : n = qr(e, n, D);
41086
+ n.right instanceof Me && !(n.left instanceof Me) ? n = qr(e, w, n) : n = qr(e, n, w);
41087
41087
  }
41088
41088
  x && n.is_number_or_bigint(e) && (n.right instanceof R0 && n.right.operator == n.operator && (n = Y(R0, n, {
41089
41089
  operator: n.operator,
@@ -41427,25 +41427,25 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41427
41427
  right: n.consequent
41428
41428
  });
41429
41429
  return n;
41430
- function g(w) {
41431
- return w.is_boolean() ? w : Y(R1, w, {
41430
+ function g(D) {
41431
+ return D.is_boolean() ? D : Y(R1, D, {
41432
41432
  operator: "!",
41433
- expression: w.negate(e)
41433
+ expression: D.negate(e)
41434
41434
  });
41435
41435
  }
41436
- function v(w) {
41437
- return w instanceof Wr || A && w instanceof Me && w.getValue() || w instanceof R1 && w.operator == "!" && w.expression instanceof Me && !w.expression.getValue();
41436
+ function v(D) {
41437
+ return D instanceof Wr || A && D instanceof Me && D.getValue() || D instanceof R1 && D.operator == "!" && D.expression instanceof Me && !D.expression.getValue();
41438
41438
  }
41439
- function x(w) {
41440
- return w instanceof Xo || A && w instanceof Me && !w.getValue() || w instanceof R1 && w.operator == "!" && w.expression instanceof Me && w.expression.getValue();
41439
+ function x(D) {
41440
+ return D instanceof Xo || A && D instanceof Me && !D.getValue() || D instanceof R1 && D.operator == "!" && D.expression instanceof Me && D.expression.getValue();
41441
41441
  }
41442
41442
  function T() {
41443
- for (var w = o.args, y = p.args, q = 0, N = w.length; q < N; q++) {
41444
- if (w[q] instanceof Y1) return;
41445
- if (!w[q].equivalent_to(y[q])) {
41443
+ for (var D = o.args, y = p.args, q = 0, N = D.length; q < N; q++) {
41444
+ if (D[q] instanceof Y1) return;
41445
+ if (!D[q].equivalent_to(y[q])) {
41446
41446
  if (y[q] instanceof Y1) return;
41447
41447
  for (var B = q + 1; B < N; B++)
41448
- if (w[B] instanceof Y1 || !w[B].equivalent_to(y[B])) return;
41448
+ if (D[B] instanceof Y1 || !D[B].equivalent_to(y[B])) return;
41449
41449
  return q;
41450
41450
  }
41451
41451
  }
@@ -41543,8 +41543,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41543
41543
  tentative_name: "argument_" + p.argnames.length
41544
41544
  }), p.argnames.push(x);
41545
41545
  if (x) {
41546
- var w = Y(V0, n, x);
41547
- return w.reference({}), $u(x, Ua), w;
41546
+ var D = Y(V0, n, x);
41547
+ return D.reference({}), $u(x, Ua), D;
41548
41548
  }
41549
41549
  }
41550
41550
  if (e.is_lhs()) return n;
@@ -41555,19 +41555,19 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41555
41555
  if (e.option("properties") && e.option("side_effects") && r instanceof L1 && t instanceof ue) {
41556
41556
  var M = r.getValue(), q = t.elements, N = q[M];
41557
41557
  e: if (i_(N, e)) {
41558
- for (var B = !0, D = [], $ = q.length; --$ > M; ) {
41558
+ for (var B = !0, w = [], $ = q.length; --$ > M; ) {
41559
41559
  var s = q[$].drop_side_effect_free(e);
41560
- s && (D.unshift(s), B && s.has_side_effects(e) && (B = !1));
41560
+ s && (w.unshift(s), B && s.has_side_effects(e) && (B = !1));
41561
41561
  }
41562
41562
  if (N instanceof Y1) break e;
41563
- for (N = N instanceof Yn ? At(N) : N, B || D.unshift(N); --$ >= 0; ) {
41563
+ for (N = N instanceof Yn ? At(N) : N, B || w.unshift(N); --$ >= 0; ) {
41564
41564
  var s = q[$];
41565
41565
  if (s instanceof Y1) break e;
41566
- s = s.drop_side_effect_free(e), s ? D.unshift(s) : M--;
41566
+ s = s.drop_side_effect_free(e), s ? w.unshift(s) : M--;
41567
41567
  }
41568
- return B ? (D.push(N), V1(n, D).optimize(e)) : Y(Tt, n, {
41568
+ return B ? (w.push(N), V1(n, w).optimize(e)) : Y(Tt, n, {
41569
41569
  expression: Y(ue, t, {
41570
- elements: D
41570
+ elements: w
41571
41571
  }),
41572
41572
  property: Y(L1, r, {
41573
41573
  value: M
@@ -41924,14 +41924,14 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41924
41924
  return v(B[1], B[2] || "", B[3], B[4] || "", B[5] || "/", B[6] || "", B[7] || "");
41925
41925
  }
41926
41926
  function g(N) {
41927
- const B = i.exec(N), D = B[2];
41928
- return v("file:", "", B[1] || "", "", p(D) ? D : "/" + D, B[3] || "", B[4] || "");
41927
+ const B = i.exec(N), w = B[2];
41928
+ return v("file:", "", B[1] || "", "", p(w) ? w : "/" + w, B[3] || "", B[4] || "");
41929
41929
  }
41930
- function v(N, B, D, $, R, L, P) {
41930
+ function v(N, B, w, $, R, L, P) {
41931
41931
  return {
41932
41932
  scheme: N,
41933
41933
  user: B,
41934
- host: D,
41934
+ host: w,
41935
41935
  port: $,
41936
41936
  path: R,
41937
41937
  query: L,
@@ -41941,12 +41941,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41941
41941
  }
41942
41942
  function x(N) {
41943
41943
  if (o(N)) {
41944
- const D = A("http:" + N);
41945
- return D.scheme = "", D.type = 6, D;
41944
+ const w = A("http:" + N);
41945
+ return w.scheme = "", w.type = 6, w;
41946
41946
  }
41947
41947
  if (p(N)) {
41948
- const D = A("http://foo.com" + N);
41949
- return D.scheme = "", D.host = "", D.type = 5, D;
41948
+ const w = A("http://foo.com" + N);
41949
+ return w.scheme = "", w.host = "", w.type = 5, w;
41950
41950
  }
41951
41951
  if (M(N))
41952
41952
  return g(N);
@@ -41961,11 +41961,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41961
41961
  const B = N.lastIndexOf("/");
41962
41962
  return N.slice(0, B + 1);
41963
41963
  }
41964
- function w(N, B) {
41964
+ function D(N, B) {
41965
41965
  y(B, B.type), N.path === "/" ? N.path = B.path : N.path = T(B.path) + N.path;
41966
41966
  }
41967
41967
  function y(N, B) {
41968
- const D = B <= 4, $ = N.path.split("/");
41968
+ const w = B <= 4, $ = N.path.split("/");
41969
41969
  let R = 1, L = 0, P = !1;
41970
41970
  for (let e0 = 1; e0 < $.length; e0++) {
41971
41971
  const g0 = $[e0];
@@ -41975,7 +41975,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41975
41975
  }
41976
41976
  if (P = !1, g0 !== ".") {
41977
41977
  if (g0 === "..") {
41978
- L ? (P = !0, L--, R--) : D && ($[R++] = g0);
41978
+ L ? (P = !0, L--, R--) : w && ($[R++] = g0);
41979
41979
  continue;
41980
41980
  }
41981
41981
  $[R++] = g0, L++;
@@ -41989,39 +41989,39 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
41989
41989
  function q(N, B) {
41990
41990
  if (!N && !B)
41991
41991
  return "";
41992
- const D = x(N);
41993
- let $ = D.type;
41992
+ const w = x(N);
41993
+ let $ = w.type;
41994
41994
  if (B && $ !== 7) {
41995
41995
  const L = x(B), P = L.type;
41996
41996
  switch ($) {
41997
41997
  case 1:
41998
- D.hash = L.hash;
41998
+ w.hash = L.hash;
41999
41999
  case 2:
42000
- D.query = L.query;
42000
+ w.query = L.query;
42001
42001
  case 3:
42002
42002
  case 4:
42003
- w(D, L);
42003
+ D(w, L);
42004
42004
  case 5:
42005
- D.user = L.user, D.host = L.host, D.port = L.port;
42005
+ w.user = L.user, w.host = L.host, w.port = L.port;
42006
42006
  case 6:
42007
- D.scheme = L.scheme;
42007
+ w.scheme = L.scheme;
42008
42008
  }
42009
42009
  P > $ && ($ = P);
42010
42010
  }
42011
- y(D, $);
42012
- const R = D.query + D.hash;
42011
+ y(w, $);
42012
+ const R = w.query + w.hash;
42013
42013
  switch ($) {
42014
42014
  case 2:
42015
42015
  case 3:
42016
42016
  return R;
42017
42017
  case 4: {
42018
- const L = D.path.slice(1);
42018
+ const L = w.path.slice(1);
42019
42019
  return L ? d(B || N) && !d(L) ? "./" + L + R : L + R : R || ".";
42020
42020
  }
42021
42021
  case 5:
42022
- return D.path + R;
42022
+ return w.path + R;
42023
42023
  default:
42024
- return D.scheme + "//" + D.user + D.host + D.port + D.path + R;
42024
+ return w.scheme + "//" + w.user + w.host + w.port + w.path + R;
42025
42025
  }
42026
42026
  }
42027
42027
  return q;
@@ -42156,10 +42156,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42156
42156
  const { sections: g } = n;
42157
42157
  for (let v = 0; v < g.length; v++) {
42158
42158
  const { map: x, offset: T } = g[v];
42159
- let w = d, y = A;
42159
+ let D = d, y = A;
42160
42160
  if (v + 1 < g.length) {
42161
42161
  const q = g[v + 1].offset;
42162
- w = Math.min(d, p + q.line), w === d ? y = Math.min(A, M + q.column) : w < d && (y = M + q.column);
42162
+ D = Math.min(d, p + q.line), D === d ? y = Math.min(A, M + q.column) : D < d && (y = M + q.column);
42163
42163
  }
42164
42164
  WL(
42165
42165
  x,
@@ -42171,7 +42171,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42171
42171
  o,
42172
42172
  p + T.line,
42173
42173
  M + T.column,
42174
- w,
42174
+ D,
42175
42175
  y
42176
42176
  );
42177
42177
  }
@@ -42179,17 +42179,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42179
42179
  function WL(n, e, t, r, i, s, o, p, M, d, A) {
42180
42180
  const g = sO(n);
42181
42181
  if ("sections" in g) return O_(...arguments);
42182
- const v = new j3(g, e), x = r.length, T = s.length, w = Xb(v), { resolvedSources: y, sourcesContent: q, ignoreList: N } = v;
42182
+ const v = new j3(g, e), x = r.length, T = s.length, D = Xb(v), { resolvedSources: y, sourcesContent: q, ignoreList: N } = v;
42183
42183
  if (rz(r, y), rz(s, v.names), q) rz(i, q);
42184
42184
  else for (let B = 0; B < y.length; B++) i.push(null);
42185
42185
  if (N) for (let B = 0; B < N.length; B++) o.push(N[B] + x);
42186
- for (let B = 0; B < w.length; B++) {
42187
- const D = p + B;
42188
- if (D > d) return;
42189
- const $ = TL(t, D), R = B === 0 ? M : 0, L = w[B];
42186
+ for (let B = 0; B < D.length; B++) {
42187
+ const w = p + B;
42188
+ if (w > d) return;
42189
+ const $ = TL(t, w), R = B === 0 ? M : 0, L = D[B];
42190
42190
  for (let P = 0; P < L.length; P++) {
42191
42191
  const Z = L[P], e0 = R + Z[ts];
42192
- if (D === d && e0 >= A) return;
42192
+ if (w === d && e0 >= A) return;
42193
42193
  if (Z.length === 1) {
42194
42194
  $.push([e0]);
42195
42195
  continue;
@@ -42343,9 +42343,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42343
42343
  if (x == null) return s ? [] : fb(null, null);
42344
42344
  const T = g[A];
42345
42345
  if (s) return IL(x, T, t, r, i);
42346
- const w = aO(x, T, t, r, i);
42347
- if (w === -1) return fb(null, null);
42348
- const y = x[w];
42346
+ const D = aO(x, T, t, r, i);
42347
+ if (D === -1) return fb(null, null);
42348
+ const y = x[D];
42349
42349
  return fb(y[b_] + 1, y[M_]);
42350
42350
  }
42351
42351
  var iz = class {
@@ -42420,12 +42420,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42420
42420
  } = e, x = YL(d, t), T = JL(x, r);
42421
42421
  if (!i)
42422
42422
  return ZL(x, T) ? void 0 : n4(x, T, [r]);
42423
- const w = Kh(A, i), y = p ? Kh(v, p) : y_;
42424
- if (w === g.length && (g[w] = M ?? null), !eN(x, T, w, s, o, y))
42423
+ const D = Kh(A, i), y = p ? Kh(v, p) : y_;
42424
+ if (D === g.length && (g[D] = M ?? null), !eN(x, T, D, s, o, y))
42425
42425
  return n4(
42426
42426
  x,
42427
42427
  T,
42428
- p ? [r, w, s, o, y] : [r, w, s, o]
42428
+ p ? [r, D, s, o, y] : [r, D, s, o]
42429
42429
  );
42430
42430
  }
42431
42431
  function YL(n, e) {
@@ -42569,12 +42569,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42569
42569
  var x = e.sourcesContent[v];
42570
42570
  x && (r[g] = x);
42571
42571
  }));
42572
- function o(g, v, x, T, w, y) {
42572
+ function o(g, v, x, T, D, y) {
42573
42573
  let q = { line: v, column: x };
42574
42574
  if (e) {
42575
42575
  var N = e.originalPositionFor({
42576
42576
  line: T,
42577
- column: w
42577
+ column: D
42578
42578
  });
42579
42579
  if (N.source === null) {
42580
42580
  t.addMapping({
@@ -42585,11 +42585,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
42585
42585
  });
42586
42586
  return;
42587
42587
  }
42588
- g = N.source, T = N.line, w = N.column, y = N.name || y;
42588
+ g = N.source, T = N.line, D = N.column, y = N.name || y;
42589
42589
  }
42590
42590
  t.addMapping({
42591
42591
  generated: q,
42592
- original: { line: T, column: w },
42592
+ original: { line: T, column: D },
42593
42593
  source: g,
42594
42594
  name: y
42595
42595
  }), t.setSourceContent(g, r[g]);
@@ -51926,53 +51926,53 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
51926
51926
  var M = e.only_annotated, d = e.regex && new RegExp(e.regex), A = e.debug !== !1, g;
51927
51927
  A && (g = e.debug === !0 ? "" : e.debug);
51928
51928
  var v = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
51929
- p.forEach((D) => x.add(D));
51929
+ p.forEach((w) => x.add(w));
51930
51930
  var T = !!e.keep_quoted;
51931
- return n.walk(new Yt(function(D) {
51932
- if (!(D instanceof ir || D instanceof rr || D instanceof Nr || D instanceof Yr || D instanceof Kr)) if (D instanceof Se)
51933
- typeof D.key == "string" && (!T || !D.quote) && q(D.key);
51934
- else if (D instanceof ht)
51935
- (!T || !D.quote) && q(D.key.name);
51936
- else if (D instanceof Pe) {
51931
+ return n.walk(new Yt(function(w) {
51932
+ if (!(w instanceof ir || w instanceof rr || w instanceof Nr || w instanceof Yr || w instanceof Kr)) if (w instanceof Se)
51933
+ typeof w.key == "string" && (!T || !w.quote) && q(w.key);
51934
+ else if (w instanceof ht)
51935
+ (!T || !w.quote) && q(w.key.name);
51936
+ else if (w instanceof Pe) {
51937
51937
  var $ = !!e.undeclared;
51938
51938
  if (!$) {
51939
- for (var R = D; R.expression; )
51939
+ for (var R = w; R.expression; )
51940
51940
  R = R.expression;
51941
51941
  $ = !(R.thedef && R.thedef.undeclared);
51942
51942
  }
51943
- $ && (!T || !D.quote) && q(D.property);
51944
- } else D instanceof Tt ? T || W2(D.property, q) : D instanceof c1 && D.expression.print_to_string() == "Object.defineProperty" ? W2(D.args[1], q) : D instanceof R0 && D.operator === "in" ? W2(D.left, q) : D instanceof ee && Sn(D, Lz) && q(D.value);
51945
- })), n.transform(new er(function(D) {
51946
- D instanceof ir || D instanceof rr || D instanceof Nr || D instanceof Yr || D instanceof Kr || (D instanceof Se ? typeof D.key == "string" && (!T || !D.quote) && (D.key = N(D.key)) : D instanceof ht ? (!T || !D.quote) && (D.computed_key() || (D.key.name = N(D.key.name))) : D instanceof Pe ? (!T || !D.quote) && (D.property = N(D.property)) : !T && D instanceof Tt ? D.property = B(D.property) : D instanceof c1 && D.expression.print_to_string() == "Object.defineProperty" ? D.args[1] = B(D.args[1]) : D instanceof R0 && D.operator === "in" ? D.left = B(D.left) : D instanceof ee && Sn(D, Lz) && (CA(D), D.value = N(D.value)));
51943
+ $ && (!T || !w.quote) && q(w.property);
51944
+ } else w instanceof Tt ? T || W2(w.property, q) : w instanceof c1 && w.expression.print_to_string() == "Object.defineProperty" ? W2(w.args[1], q) : w instanceof R0 && w.operator === "in" ? W2(w.left, q) : w instanceof ee && Sn(w, Lz) && q(w.value);
51945
+ })), n.transform(new er(function(w) {
51946
+ w instanceof ir || w instanceof rr || w instanceof Nr || w instanceof Yr || w instanceof Kr || (w instanceof Se ? typeof w.key == "string" && (!T || !w.quote) && (w.key = N(w.key)) : w instanceof ht ? (!T || !w.quote) && (w.computed_key() || (w.key.name = N(w.key.name))) : w instanceof Pe ? (!T || !w.quote) && (w.property = N(w.property)) : !T && w instanceof Tt ? w.property = B(w.property) : w instanceof c1 && w.expression.print_to_string() == "Object.defineProperty" ? w.args[1] = B(w.args[1]) : w instanceof R0 && w.operator === "in" ? w.left = B(w.left) : w instanceof ee && Sn(w, Lz) && (CA(w), w.value = N(w.value)));
51947
51947
  }));
51948
- function w(D) {
51949
- return x.has(D) || s.has(D) ? !1 : e.only_cache ? p.has(D) : !/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(D);
51948
+ function D(w) {
51949
+ return x.has(w) || s.has(w) ? !1 : e.only_cache ? p.has(w) : !/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(w);
51950
51950
  }
51951
- function y(D) {
51952
- return M && !t.has(D) ? !1 : d && !d.test(D) ? t.has(D) : s.has(D) ? !1 : p.has(D) || v.has(D);
51951
+ function y(w) {
51952
+ return M && !t.has(w) ? !1 : d && !d.test(w) ? t.has(w) : s.has(w) ? !1 : p.has(w) || v.has(w);
51953
51953
  }
51954
- function q(D) {
51955
- w(D) && v.add(D), y(D) || x.add(D);
51954
+ function q(w) {
51955
+ D(w) && v.add(w), y(w) || x.add(w);
51956
51956
  }
51957
- function N(D) {
51958
- if (!y(D))
51959
- return D;
51960
- var $ = p.get(D);
51957
+ function N(w) {
51958
+ if (!y(w))
51959
+ return w;
51960
+ var $ = p.get(w);
51961
51961
  if (!$) {
51962
51962
  if (A) {
51963
- var R = "_$" + D + "$" + g + "_";
51964
- w(R) && ($ = R);
51963
+ var R = "_$" + w + "$" + g + "_";
51964
+ D(R) && ($ = R);
51965
51965
  }
51966
51966
  if (!$)
51967
51967
  do
51968
51968
  $ = r.get(++o);
51969
- while (!w($));
51970
- p.set(D, $);
51969
+ while (!D($));
51970
+ p.set(w, $);
51971
51971
  }
51972
51972
  return $;
51973
51973
  }
51974
- function B(D) {
51975
- return D.transform(new er(function($) {
51974
+ function B(w) {
51975
+ return w.transform(new er(function($) {
51976
51976
  if ($ instanceof H1) {
51977
51977
  var R = $.expressions.length - 1;
51978
51978
  $.expressions[R] = B($.expressions[R]);
@@ -52161,7 +52161,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
52161
52161
  g = A.preParseCode;
52162
52162
  try {
52163
52163
  d = (await Uu(x, { compress: !0, mangle: !0 })).code || "";
52164
- const w = {
52164
+ const D = {
52165
52165
  message: U1.indiRunErr,
52166
52166
  type: hn.Error,
52167
52167
  startColumn: 0,
@@ -52172,10 +52172,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
52172
52172
  if (!o.hasUseDrawFunc)
52173
52173
  switch (o.scriptType) {
52174
52174
  case Au.indicator:
52175
- M.push(w);
52175
+ M.push(D);
52176
52176
  break;
52177
52177
  case Au.strategy:
52178
- o.hasUseCreateOrderFunc || (w.message = U1.strategyRunErr, M.push(w));
52178
+ o.hasUseCreateOrderFunc || (D.message = U1.strategyRunErr, M.push(D));
52179
52179
  break;
52180
52180
  }
52181
52181
  } catch (T) {
@@ -64066,16 +64066,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64066
64066
  _setFunc(e, t, r, i) {
64067
64067
  const s = [], o = [], { desc: p, paramsDesc: M, returnsDesc: d, params: A, hasMemberIndex: g } = e;
64068
64068
  for (const q of A) {
64069
- const { type: N, name: B, defaultValue: D } = q;
64069
+ const { type: N, name: B, defaultValue: w } = q;
64070
64070
  s.push({
64071
64071
  name: B,
64072
64072
  desc: M?.[B],
64073
- required: !D,
64073
+ required: !w,
64074
64074
  allowedTypeIDs: this._getAllowTypes(N),
64075
64075
  displayType: N
64076
64076
  }), o.push(`${N === s0.UNDETERMINED ? "" : `${N} `}${B}`);
64077
64077
  }
64078
- const { returnedTypes: v = [] } = e, x = e.name, T = v.length > 1 || v.isBrackethesized ? `[${v.join(", ")}]` : v.toString(), w = {
64078
+ const { returnedTypes: v = [] } = e, x = e.name, T = v.length > 1 || v.isBrackethesized ? `[${v.join(", ")}]` : v.toString(), D = {
64079
64079
  name: x,
64080
64080
  desc: p,
64081
64081
  args: s,
@@ -64090,7 +64090,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64090
64090
  let y = this._functions.get(x);
64091
64091
  if (y) {
64092
64092
  const q = y.length;
64093
- w.index = q, e.index = q, this._verifyFuncRepeat(y, w, r), y.push(w), this._overloadsFuncs.push({
64093
+ D.index = q, e.index = q, this._verifyFuncRepeat(y, D, r), y.push(D), this._overloadsFuncs.push({
64094
64094
  name: x,
64095
64095
  index: q,
64096
64096
  line: t.lineNumber,
@@ -64098,7 +64098,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64098
64098
  endColumn: t.column + x.length
64099
64099
  });
64100
64100
  } else
64101
- y = [w];
64101
+ y = [D];
64102
64102
  this._functions.set(x, y);
64103
64103
  }
64104
64104
  _verifyFuncRepeat(e, t, r) {
@@ -64165,10 +64165,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64165
64165
  _getBuildInReturnTypes(e, t, r, i, s, o, p) {
64166
64166
  let M;
64167
64167
  if (e.length === 1) {
64168
- const { returnedTypes: d, syntax: A, args: g = [] } = e[0], v = A[0]?.split("→")[1]?.trim(), x = s || t.params[0] || g[0]?.name && t[g[0].name], { hasErr: T, types: w } = this._checkArgs(t, g, r, i, v, x);
64168
+ const { returnedTypes: d, syntax: A, args: g = [] } = e[0], v = A[0]?.split("→")[1]?.trim(), x = s || t.params[0] || g[0]?.name && t[g[0].name], { hasErr: T, types: D } = this._checkArgs(t, g, r, i, v, x);
64169
64169
  if (T)
64170
- return w?.length ? w : [s0.UNDETERMINED];
64171
- if (M = w.length && w || this._returnedTypesParse(d), M.length > 1 || M.isBrackethesized) return M;
64170
+ return D?.length ? D : [s0.UNDETERMINED];
64171
+ if (M = D.length && D || this._returnedTypesParse(d), M.length > 1 || M.isBrackethesized) return M;
64172
64172
  o?.length === 1 && (M = [this._typeReplace(v, o[0])]), M = this._returnTypesOtherHandle(x, v, M, r);
64173
64173
  } else {
64174
64174
  const d = this._overloadsFuncGetTypes(e, t, i, s, p);
@@ -64187,17 +64187,17 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64187
64187
  _overloadsFuncGetTypes(e, t, r, i, s) {
64188
64188
  let o = [], p = [], M = [], d = 0, A = 0;
64189
64189
  for (const [x, T] of e.entries()) {
64190
- const { args: w, returnedTypes: y, name: q } = T, N = i || t.params[0] || t[w[0].name], { errMsg: B, warnMsg: D, matchCount: $ } = this._overloadsCheckArgs(t, w, q, r, N);
64190
+ const { args: D, returnedTypes: y, name: q } = T, N = i || t.params[0] || t[D[0].name], { errMsg: B, warnMsg: w, matchCount: $ } = this._overloadsCheckArgs(t, D, q, r, N);
64191
64191
  if ($ > A && (d = x, A = $), x === 0)
64192
- p = B, M = D, B.length || (o = y.map((R) => R === `${s0.ARRAY}<>` ? `${N.type}[]` : R));
64192
+ p = B, M = w, B.length || (o = y.map((R) => R === `${s0.ARRAY}<>` ? `${N.type}[]` : R));
64193
64193
  else if (B.length)
64194
- (p[0]?.isLenErr && !B[0]?.isLenErr || p.length > B.length) && (p = B, M = D, d = x);
64194
+ (p[0]?.isLenErr && !B[0]?.isLenErr || p.length > B.length) && (p = B, M = w, d = x);
64195
64195
  else if (!o.length)
64196
- o = y.map((R) => R === `${s0.ARRAY}<>` ? `${N.type}[]` : R), p = B, M = D, d = x;
64196
+ o = y.map((R) => R === `${s0.ARRAY}<>` ? `${N.type}[]` : R), p = B, M = w, d = x;
64197
64197
  else
64198
64198
  for (const [R, L] of o.entries()) {
64199
64199
  const P = y[R];
64200
- this._priorityComparison(L, y[R]) || (P === `${s0.ARRAY}<>` ? o[R] = `${N.type}[]` : o[R] = P, p = B, M = D, d = R);
64200
+ this._priorityComparison(L, y[R]) || (P === `${s0.ARRAY}<>` ? o[R] = `${N.type}[]` : o[R] = P, p = B, M = w, d = R);
64201
64201
  }
64202
64202
  }
64203
64203
  for (const x of p)
@@ -64212,8 +64212,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64212
64212
  startColumn: g.start.column + 1,
64213
64213
  endColumn: g.start.column + v.length
64214
64214
  }), s) {
64215
- const x = e[d], { name: T, index: w, isUser: y } = x;
64216
- this._hasMemberIndexVerify(x, r, s), s.index = w || d, y && (s.index = w || 0, s.isBuiltInFunc = !1, s.funcName = T);
64215
+ const x = e[d], { name: T, index: D, isUser: y } = x;
64216
+ this._hasMemberIndexVerify(x, r, s), s.index = D || d, y && (s.index = D || 0, s.isBuiltInFunc = !1, s.funcName = T);
64217
64217
  }
64218
64218
  return this._funcArgsAddOriginName(t, e[d].args, v), o.length ? o : [s0.UNDETERMINED];
64219
64219
  }
@@ -64250,11 +64250,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64250
64250
  ctx: i
64251
64251
  }));
64252
64252
  for (const [x, T] of t.entries()) {
64253
- let w = o[T.name];
64254
- if (x < p.length && (w && A.push({
64253
+ let D = o[T.name];
64254
+ if (x < p.length && (D && A.push({
64255
64255
  msg: V(Pi.moreSameArg, { arg: T.name }),
64256
64256
  ctx: i
64257
- }), w = p[x]), !w)
64257
+ }), D = p[x]), !D)
64258
64258
  T.required && A.push({
64259
64259
  msg: V(_1.requiredParamErr, {
64260
64260
  name: r,
@@ -64263,11 +64263,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64263
64263
  ctx: i
64264
64264
  });
64265
64265
  else {
64266
- w.index = x;
64267
- const y = w.type !== "na" ? this._checkArg(w, T, r, s, w.ctx, !0, g) : "";
64266
+ D.index = x;
64267
+ const y = D.type !== "na" ? this._checkArg(D, T, r, s, D.ctx, !0, g) : "";
64268
64268
  y ? A.push({
64269
64269
  msg: y,
64270
- ctx: w.ctx
64270
+ ctx: D.ctx
64271
64271
  }) : v++, delete o[T.name];
64272
64272
  }
64273
64273
  if (["arg0, arg1, ...", "number0, number1, ..."].includes(T.name) && p.length > x + 1) {
@@ -64323,24 +64323,24 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64323
64323
  types: v
64324
64324
  };
64325
64325
  for (const [x, T] of t.entries()) {
64326
- let w = p[T.name];
64327
- if (x < M.length && (w && this._errorHandle(V(Pi.moreSameArg, { arg: T.name }), i, fn.Warning), w = M[x], w.originName = T.name), !w)
64326
+ let D = p[T.name];
64327
+ if (x < M.length && (D && this._errorHandle(V(Pi.moreSameArg, { arg: T.name }), i, fn.Warning), D = M[x], D.originName = T.name), !D)
64328
64328
  T.required && (this._errorHandle(V(_1.requiredParamErr, {
64329
64329
  name: r,
64330
64330
  argName: T.name
64331
64331
  }), i), g = !0);
64332
64332
  else {
64333
- w.index = x;
64334
- const y = w.type !== `${s0.NA}` ? this._checkArg(w, T, r, o, w.ctx) : "";
64333
+ D.index = x;
64334
+ const y = D.type !== `${s0.NA}` ? this._checkArg(D, T, r, o, D.ctx) : "";
64335
64335
  if (y)
64336
- this._errorHandle(y, w.ctx), g = !0;
64336
+ this._errorHandle(y, D.ctx), g = !0;
64337
64337
  else if (r === "security" && T.name === "expression")
64338
- if (w.ruleType === Y0.Brackethesized)
64339
- v = w.exprs.map((q) => this._typeReplace(s, q.type));
64340
- else if ((w.types || w.returnedTypes)?.length)
64341
- v = (w.types || w.returnedTypes).map((q) => this._typeReplace(s, q)), (w.types || w.returnedTypes)?.isBrackethesized && Object.assign(v, { isBrackethesized: !0 });
64338
+ if (D.ruleType === Y0.Brackethesized)
64339
+ v = D.exprs.map((q) => this._typeReplace(s, q.type));
64340
+ else if ((D.types || D.returnedTypes)?.length)
64341
+ v = (D.types || D.returnedTypes).map((q) => this._typeReplace(s, q)), (D.types || D.returnedTypes)?.isBrackethesized && Object.assign(v, { isBrackethesized: !0 });
64342
64342
  else {
64343
- const q = this._typeReplace(s, w.type);
64343
+ const q = this._typeReplace(s, D.type);
64344
64344
  v.push(q);
64345
64345
  }
64346
64346
  delete p[T.name];
@@ -64370,7 +64370,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64370
64370
  _checkArg(e, t, r, i, s, o, p) {
64371
64371
  const { ruleType: M, exprs: d, name: A } = e;
64372
64372
  let g = e.type;
64373
- M === Y0.Brackethesized && (g = `[${d.map((w) => w.type).join(", ")}]`);
64373
+ M === Y0.Brackethesized && (g = `[${d.map((D) => D.type).join(", ")}]`);
64374
64374
  const { allowedTypeIDs: v = [], displayType: x, name: T } = t;
64375
64375
  if (!(!g || g === s0.UNDETERMINED || x === s0.UNDETERMINED)) {
64376
64376
  if (r === "input" && T === "defval" && !g.startsWith(s0.CONST))
@@ -64380,15 +64380,15 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64380
64380
  return _1.inputDefvalErr;
64381
64381
  if (!this._checkMethodThisType(v, this._arrayTypeConvert(g))) {
64382
64382
  if (T === "condition" && x?.endsWith(s0.BOOL) && (g.endsWith(s0.INT) || g.endsWith(s0.FLOAT))) {
64383
- const w = V(Pi.typeMismatch, {
64383
+ const D = V(Pi.typeMismatch, {
64384
64384
  index: T,
64385
64385
  operator: r,
64386
64386
  type: s0.BOOL
64387
64387
  });
64388
64388
  s && (p ? p.push({
64389
64389
  ctx: s,
64390
- msg: w
64391
- }) : this._errorHandle(w, s, fn.Warning));
64390
+ msg: D
64391
+ }) : this._errorHandle(D, s, fn.Warning));
64392
64392
  return;
64393
64393
  }
64394
64394
  switch (x) {
@@ -64420,13 +64420,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64420
64420
  });
64421
64421
  break;
64422
64422
  case "series <type of the array's elements>":
64423
- const w = this._getArrayType(i?.type) || "";
64424
- if (!g.endsWith(w) && !(g.endsWith(s0.INT) && w === s0.FLOAT))
64423
+ const D = this._getArrayType(i?.type) || "";
64424
+ if (!g.endsWith(D) && !(g.endsWith(s0.INT) && D === s0.FLOAT))
64425
64425
  return V(_1.typeMismatch, {
64426
64426
  operator: r,
64427
64427
  index: T,
64428
64428
  typeE: g,
64429
- typeR: this._typeAddSeries(w)
64429
+ typeR: this._typeAddSeries(D)
64430
64430
  });
64431
64431
  break;
64432
64432
  case "variable, function, array of series int/float/bool/string/color, or a tuple of these":
@@ -64457,8 +64457,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64457
64457
  for (const N of v) {
64458
64458
  const B = this._removePrefix(N);
64459
64459
  if (B === q || B === s0.FLOAT && q === s0.INT) {
64460
- const D = this._getPrefix(e.type), $ = this._getPrefix(v[0]);
64461
- if (m2.indexOf(D) >= m2.indexOf($))
64460
+ const w = this._getPrefix(e.type), $ = this._getPrefix(v[0]);
64461
+ if (m2.indexOf(w) >= m2.indexOf($))
64462
64462
  return;
64463
64463
  } else if (B === s0.BOOL && [s0.INT, s0.FLOAT].includes(q) && !o)
64464
64464
  return;
@@ -64529,20 +64529,20 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64529
64529
  case Y0.IfStatement:
64530
64530
  if (!this._isNeedCalc && (!this._isInFunc || this._isInFunc && this._isEndExpr === !1)) return [s0.UNDETERMINED];
64531
64531
  if (!d.filter((y) => y && y.length).length) return [s0.UNDETERMINED];
64532
- let v = d[0] || [], x = v.length <= 1 ? v[0] : `[${v.join(", ")}]`, T = 0, w = 0;
64532
+ let v = d[0] || [], x = v.length <= 1 ? v[0] : `[${v.join(", ")}]`, T = 0, D = 0;
64533
64533
  for (const y of d.slice(1))
64534
64534
  if (y)
64535
- if (T++, x += y.length <= 1 ? `; ${y[0]}` : `; [${y.join(", ")}]`, y.length !== v.length) w = T;
64535
+ if (T++, x += y.length <= 1 ? `; ${y[0]}` : `; [${y.join(", ")}]`, y.length !== v.length) D = T;
64536
64536
  else
64537
64537
  for (const [q, N] of v.entries())
64538
64538
  if (this._compareType(y[q], N, !0))
64539
64539
  (y[q].includes(s0.FLOAT) && !N.includes(s0.FLOAT) || v[q] === `${s0.NA}`) && (v[q] = y[q]);
64540
64540
  else {
64541
- w = T;
64541
+ D = T;
64542
64542
  break;
64543
64543
  }
64544
- if (w) {
64545
- const y = A[w].slice(-1)[0], q = Array.isArray(y) ? y.slice(-1)[0] : y;
64544
+ if (D) {
64545
+ const y = A[D].slice(-1)[0], q = Array.isArray(y) ? y.slice(-1)[0] : y;
64546
64546
  this._errorHandle(V(_1.ifOrSwitchTypeErr, {
64547
64547
  keyword: "if",
64548
64548
  types: x
@@ -64722,22 +64722,22 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
64722
64722
  this._isInLoop = !0;
64723
64723
  const v = `$start${this._count + 1}`;
64724
64724
  g || (this._count += 1);
64725
- const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, w = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`;
64725
+ const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, D = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`;
64726
64726
  t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
64727
- const q = this._parserSingleExpression(M), N = this._parserSingleExpression(d), B = A ? this._parserSingleExpression(A) : "", D = this._parserBlockLine(i, t, !1, !0);
64727
+ const q = this._parserSingleExpression(M), N = this._parserSingleExpression(d), B = A ? this._parserSingleExpression(A) : "", w = this._parserBlockLine(i, t, !1, !0);
64728
64728
  yo.includes(s) && (s = `$${s}`);
64729
64729
  const $ = `var ${v} = Date.now()`;
64730
- let L = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${w}) * ${y} >= 0; ${s}-=(${B || "1"}) * ${y}){
64730
+ let L = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${D}) * ${y} >= 0; ${s}-=(${B || "1"}) * ${y}){
64731
64731
  if (Date.now() - ${v} > 500) {
64732
64732
  throw new Error('${_1.loopRuntimeErr}')
64733
64733
  }
64734
64734
  ${x}++
64735
- ${D}
64735
+ ${w}
64736
64736
  }`;
64737
64737
  return L = `${$};
64738
64738
  ${g ? "" : `var ${x} = 0`};
64739
- const ${w} = ${d?.type?.endsWith(" int") || !B || d?.type?.endsWith(" int") ? `Math.round(${N})` : N};
64740
- const ${y} = (${q})>${w} ? 1 : -1;
64739
+ const ${D} = ${d?.type?.endsWith(" int") || !B || d?.type?.endsWith(" int") ? `Math.round(${N})` : N};
64740
+ const ${y} = (${q})>${D} ? 1 : -1;
64741
64741
  ${L}`, t || this._codesCol[this._blockCount].push({
64742
64742
  code: L,
64743
64743
  depends: this._getDepends(T)
@@ -64762,11 +64762,11 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
64762
64762
  }
64763
64763
  t === "-=" ? x = `${M} = ${this._prefixNameVar}.sub(${M}, ${A})` : t === "+=" ? x = `${M} = ${this._prefixNameVar}.add(${M}, ${A})` : t === ":=" && (v = `${v};
64764
64764
  `);
64765
- const w = `${v}${x}${d}`;
64765
+ const D = `${v}${x}${d}`;
64766
64766
  return this._codesCol[this._blockCount].push({
64767
- code: w,
64767
+ code: D,
64768
64768
  depends: this._getDepends(p)
64769
- }), w;
64769
+ }), D;
64770
64770
  }
64771
64771
  _parserIfStatement(e, t = !1) {
64772
64772
  const { condition: r, block: i, type: s } = e;
@@ -65005,9 +65005,9 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
65005
65005
  return T[g] = `${this._prefixNameVar}.setCacheData("${g}", ${p})`, this._memberIndexList[0] = T, `${this._prefixNameVar}.getCacheData("${g}", ${o}, ${p})`;
65006
65006
  }
65007
65007
  if (g.includes(".")) {
65008
- const T = g.split(".")[0], w = v[T];
65009
- if (w)
65010
- return this._getUserVarMemberIndexs(w, g, A, o, r);
65008
+ const T = g.split(".")[0], D = v[T];
65009
+ if (D)
65010
+ return this._getUserVarMemberIndexs(D, g, A, o, r);
65011
65011
  }
65012
65012
  A--;
65013
65013
  }
@@ -65123,26 +65123,26 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
65123
65123
  let g = [];
65124
65124
  const v = this._argChangeMap.get(o), x = o.replace(`${this._prefixNameFunc}.`, ""), T = (N, B) => {
65125
65125
  $_.includes(x) && B === "length" && (N.type.startsWith(s0.SERIES) || N.type === s0.UNDETERMINED) && d.push("isSeriesLen: true");
65126
- const D = p && N.index === 0 && !N.hasMethod || v?.includes(N.index);
65126
+ const w = p && N.index === 0 && !N.hasMethod || v?.includes(N.index);
65127
65127
  if (this._isInFunc && (N.arg || N.isArg) && this._currentFuncName) {
65128
65128
  const R = this._argChangeMap.get(this._currentFuncName) || [];
65129
- D && !R.includes(N.index) && (R.push(N.index), this._argChangeMap.set(this._currentFuncName, R));
65129
+ w && !R.includes(N.index) && (R.push(N.index), this._argChangeMap.set(this._currentFuncName, R));
65130
65130
  }
65131
65131
  s ? this._dependsObj[r] = /* @__PURE__ */ new Map() : i && B === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${B}${r}`] = /* @__PURE__ */ new Map());
65132
- let $ = N.ruleType === Y0.Brackethesized ? this._parserBrackethesized(N) : this._parserSingleExpression(N, D);
65132
+ let $ = N.ruleType === Y0.Brackethesized ? this._parserBrackethesized(N) : this._parserSingleExpression(N, w);
65133
65133
  if (B && !["arg0, arg1, ...", "number0, number1, ..."].includes(B)) {
65134
65134
  N.isSourceType && d.push(`sourceTypeName: "${N.name}"`);
65135
65135
  const R = this._requestParamsHandle(i, B, r, s, $, o);
65136
65136
  $ = R?.code || $, R?.paramsExpr && g.push(R?.paramsExpr), yo.includes(B) && (B = `$${B}`), yo.includes($) && ($ = `$${$}`), d.push(`${B}: ${$}`);
65137
65137
  } else
65138
65138
  A.push($);
65139
- }, w = [];
65139
+ }, D = [];
65140
65140
  for (const N of M)
65141
- w.push(`'${N.originName}'`), T(N, N.originName);
65141
+ D.push(`'${N.originName}'`), T(N, N.originName);
65142
65142
  for (const N of Object.keys(e))
65143
65143
  T(e[N], N);
65144
65144
  i && this._isInFunc && d.push("paramsExpr: $paramsExpr"), t && d.push(t);
65145
- const y = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${w.join(",")}]` : "", q = g.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${g.join(", ")}]` : "";
65145
+ const y = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${D.join(",")}]` : "", q = g.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${g.join(", ")}]` : "";
65146
65146
  return A.length ? `({${d.join(", ")}}, [${A.join(", ")}], ${r}${q}${y})` : d.length ? `({${d.join(", ")}}, ${r}${q}${y})` : `(${r}${q})`;
65147
65147
  }
65148
65148
  _requestParamsHandle(e, t, r, i, s, o) {
@@ -65279,9 +65279,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
65279
65279
  o.hasUseCreateOrderFunc || (y.message = _1.strategyRunErr, M.push(y));
65280
65280
  break;
65281
65281
  }
65282
- } catch (w) {
65282
+ } catch (D) {
65283
65283
  M.push({
65284
- message: w?.message || "minify error",
65284
+ message: D?.message || "minify error",
65285
65285
  type: fn.Error,
65286
65286
  startColumn: 0,
65287
65287
  startLineNumber: 0,
@@ -80662,28 +80662,28 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
80662
80662
  let A = -1;
80663
80663
  const g = s.reduce((v, x, T) => {
80664
80664
  if (v) {
80665
- const w = x.args.params || [], y = { ...v }, q = this._getMethodTypes([y], [o[T]]) || [], N = q[0];
80665
+ const D = x.args.params || [], y = { ...v }, q = this._getMethodTypes([y], [o[T]]) || [], N = q[0];
80666
80666
  if (this._types.has(N)) {
80667
80667
  if (x.name.includes(".")) {
80668
- const D = x.name.split("."), $ = D.pop(), R = D.join("."), L = this._getMethodFiledType(q, R, e), P = this._getOriginMethodName(L, $);
80669
- return this._buildinFunctions.has(P) ? x.name = P : x.name = $, y.ctx = o[T], w.unshift({
80668
+ const w = x.name.split("."), $ = w.pop(), R = w.join("."), L = this._getMethodFiledType(q, R, e), P = this._getOriginMethodName(L, $);
80669
+ return this._buildinFunctions.has(P) ? x.name = P : x.name = $, y.ctx = o[T], D.unshift({
80670
80670
  ruleType: I0.Name,
80671
80671
  hasMethod: !0,
80672
80672
  exprs: [y, R],
80673
80673
  type: L
80674
- }), x.args.params = w, x;
80674
+ }), x.args.params = D, x;
80675
80675
  } else
80676
80676
  A = T, v.isType = !0;
80677
80677
  return v;
80678
80678
  }
80679
80679
  N || this._errorHandle(V(L0.undeterminedTypeMethodErr, { name: v.name }), o[T]);
80680
80680
  const B = `${this._getMethodTypeName(N)}.${x.name}`;
80681
- this._buildinFunctions.has(B) && (x.name = B), w.unshift({
80681
+ this._buildinFunctions.has(B) && (x.name = B), D.unshift({
80682
80682
  ruleType: I0.MethodExpression,
80683
80683
  type: N,
80684
80684
  exprs: [y],
80685
80685
  ctx: o[T]
80686
- }), x.args.params = w;
80686
+ }), x.args.params = D;
80687
80687
  }
80688
80688
  return x;
80689
80689
  }, null);
@@ -81105,8 +81105,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
81105
81105
  this._buildinFunctions.get(v)?.push(x);
81106
81106
  continue;
81107
81107
  }
81108
- const w = this._functions.get(T) || [];
81109
- w.push({ ...x, isUser: void 0, isImport: !0, libraryInfoId: r }), this._functions.set(T, w);
81108
+ const D = this._functions.get(T) || [];
81109
+ D.push({ ...x, isUser: void 0, isImport: !0, libraryInfoId: r }), this._functions.set(T, D);
81110
81110
  }
81111
81111
  for (const d of s) {
81112
81112
  const { isAddToBuiltIn: A, originalName: g = "" } = d, v = this._importTypeUpdate(d, M, t);
@@ -81133,10 +81133,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
81133
81133
  _importTypeUpdate(e, t, r) {
81134
81134
  let { args: i, returnedTypes: s, thisType: o, fields: p, name: M, originalName: d, selfArg: A, isAddToBuiltIn: g } = e, v = "";
81135
81135
  if (i && i.length && (i = i.map((T) => {
81136
- const { allowedTypeIDs: w, displayType: y, name: q } = T, N = y && this._replaceTypeName(y, t, r);
81136
+ const { allowedTypeIDs: D, displayType: y, name: q } = T, N = y && this._replaceTypeName(y, t, r);
81137
81137
  return v = v ? `${v}, ${N} ${q}` : `${N} ${q}`, {
81138
81138
  ...T,
81139
- allowedTypeIDs: w?.map((B) => this._replaceTypeName(B, t, r)),
81139
+ allowedTypeIDs: D?.map((B) => this._replaceTypeName(B, t, r)),
81140
81140
  displayType: N
81141
81141
  };
81142
81142
  })), s?.length && (s = s.map((T) => this._replaceTypeName(T, t, r))), o?.length) {
@@ -81144,11 +81144,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
81144
81144
  T !== o[0] && !g && (d = `${r}.${d || M}`), o = [T];
81145
81145
  }
81146
81146
  p?.length && (p = p.map((T) => {
81147
- const { type: w } = T;
81147
+ const { type: D } = T;
81148
81148
  return {
81149
81149
  ...T,
81150
81150
  isImport: !0,
81151
- type: w && this._replaceTypeName(w, t, r)
81151
+ type: D && this._replaceTypeName(D, t, r)
81152
81152
  };
81153
81153
  }));
81154
81154
  const x = { ...e, args: i, returnedTypes: s, thisType: o, fields: p, originalName: d };
@@ -82129,16 +82129,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82129
82129
  _setFunc(e, t, r, i) {
82130
82130
  const s = [], o = [], { desc: p, paramsDesc: M, returnsDesc: d, params: A, hasMemberIndex: g } = e;
82131
82131
  for (const N of A) {
82132
- const { type: B, name: D, defaultValue: $ } = N;
82132
+ const { type: B, name: w, defaultValue: $ } = N;
82133
82133
  s.push({
82134
- name: D,
82135
- desc: M?.[D],
82134
+ name: w,
82135
+ desc: M?.[w],
82136
82136
  required: !$,
82137
82137
  allowedTypeIDs: this._getAllowTypes(B),
82138
82138
  displayType: B
82139
- }), o.push(`${B === J.UNDETERMINED ? "" : `${B} `}${D}`);
82139
+ }), o.push(`${B === J.UNDETERMINED ? "" : `${B} `}${w}`);
82140
82140
  }
82141
- const { returnedTypes: v = [] } = e, x = e.name, T = v.length > 1 || v.isBrackethesized ? `[${v.join(", ")}]` : v.toString(), w = {
82141
+ const { returnedTypes: v = [] } = e, x = e.name, T = v.length > 1 || v.isBrackethesized ? `[${v.join(", ")}]` : v.toString(), D = {
82142
82142
  name: x,
82143
82143
  desc: p,
82144
82144
  args: s,
@@ -82157,19 +82157,19 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82157
82157
  }
82158
82158
  if (this._buildinFunctions.has(y)) {
82159
82159
  const N = this._buildinFunctions.get(y);
82160
- w.realName = x;
82160
+ D.realName = x;
82161
82161
  let B = N?.[N.length - 1].index;
82162
- if (B = B !== void 0 ? B + 1 : 0, w.index = B, e.index = B, N?.push(w), e.isExport) {
82163
- w.originalName = y;
82164
- const { line: D = 0 } = this._endExport;
82165
- i > D && (this._endExport = { line: i, name: x, index: w.index }), w.isAddToBuiltIn = !0, this._exportFunctions.push(w);
82162
+ if (B = B !== void 0 ? B + 1 : 0, D.index = B, e.index = B, N?.push(D), e.isExport) {
82163
+ D.originalName = y;
82164
+ const { line: w = 0 } = this._endExport;
82165
+ i > w && (this._endExport = { line: i, name: x, index: D.index }), D.isAddToBuiltIn = !0, this._exportFunctions.push(D);
82166
82166
  }
82167
82167
  return;
82168
82168
  }
82169
82169
  let q = this._functions.get(x);
82170
82170
  if (q) {
82171
82171
  const N = q.length;
82172
- w.index = N, e.index = N, this._verifyFuncRepeat(q, w, r), q.push(w), this._overloadsFuncs.push({
82172
+ D.index = N, e.index = N, this._verifyFuncRepeat(q, D, r), q.push(D), this._overloadsFuncs.push({
82173
82173
  name: x,
82174
82174
  index: N,
82175
82175
  line: t.lineNumber,
@@ -82177,28 +82177,28 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82177
82177
  endColumn: t.column + x.length
82178
82178
  });
82179
82179
  } else
82180
- q = [w];
82180
+ q = [D];
82181
82181
  if (e.isExport) {
82182
82182
  const { line: N = 0 } = this._endExport;
82183
- i > N && (this._endExport = { line: i, name: x, index: w.index }), this._exportFunctions.push(w);
82183
+ i > N && (this._endExport = { line: i, name: x, index: D.index }), this._exportFunctions.push(D);
82184
82184
  }
82185
82185
  this._functions.set(x, q);
82186
82186
  }
82187
82187
  _setMethod(e, t) {
82188
82188
  const { name: r, returnedTypes: i, params: s, desc: o, paramsDesc: p, returnsDesc: M } = e, d = s[0].type, A = [], g = [];
82189
82189
  for (const N of s.slice(1)) {
82190
- const { type: B, name: D, defaultValue: $ } = N;
82190
+ const { type: B, name: w, defaultValue: $ } = N;
82191
82191
  A.push({
82192
- name: D,
82193
- desc: p?.[D],
82192
+ name: w,
82193
+ desc: p?.[w],
82194
82194
  required: !$,
82195
82195
  allowedTypeIDs: this._getAllowTypes(B),
82196
82196
  displayType: B
82197
- }), g.push(`${B} ${D}`);
82197
+ }), g.push(`${B} ${w}`);
82198
82198
  }
82199
82199
  const v = i.length > 1 || i.isBrackethesized ? `[${i.join(", ")}]` : i.toString(), x = this._getMethodTypeName(d), T = `${x}.${r}`;
82200
82200
  e.typeName = x;
82201
- const w = {
82201
+ const D = {
82202
82202
  name: r,
82203
82203
  args: A,
82204
82204
  desc: o,
@@ -82216,16 +82216,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82216
82216
  if (this._buildinMethods.has(T)) {
82217
82217
  const N = this._buildinMethods.get(T);
82218
82218
  let B = N?.[N.length - 1].index;
82219
- B = B !== void 0 ? B + 1 : 0, w.index = B, e.index = B, N?.push(w), e.isExport && (w.isAddToBuiltIn = !0, this._exportMethods.push(w));
82219
+ B = B !== void 0 ? B + 1 : 0, D.index = B, e.index = B, N?.push(D), e.isExport && (D.isAddToBuiltIn = !0, this._exportMethods.push(D));
82220
82220
  return;
82221
82221
  }
82222
82222
  let y = this._methods.get(T), q = this._functions.get(r);
82223
82223
  if (q) {
82224
82224
  const N = q.filter(($) => ($.methodName = T, !$.isImport)).length, B = y?.filter(($) => !$.isImport)?.length || 0;
82225
- let D = N;
82226
- N > B && (D = N - 1), w.index = D, e.index = D;
82225
+ let w = N;
82226
+ N > B && (w = N - 1), D.index = w, e.index = w;
82227
82227
  }
82228
- y ? y.push(w) : y = [w], e.isExport && this._exportMethods.push(w), this._methods.set(T, y);
82228
+ y ? y.push(D) : y = [D], e.isExport && this._exportMethods.push(D), this._methods.set(T, y);
82229
82229
  }
82230
82230
  _verifyFuncRepeat(e, t, r) {
82231
82231
  const { args: i } = t;
@@ -82264,12 +82264,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82264
82264
  if (T)
82265
82265
  if (T.length <= 1) {
82266
82266
  this._hasMemberIndexVerify(T[0], A, s), r = T[0].returnedTypes;
82267
- const { hasErr: w } = this._checkArgs(M, T[0].args || [], d, A, r[0]);
82268
- if (w)
82267
+ const { hasErr: D } = this._checkArgs(M, T[0].args || [], d, A, r[0]);
82268
+ if (D)
82269
82269
  return [J.UNDETERMINED];
82270
82270
  } else {
82271
- const w = this._overloadsFuncGetTypes(T, M, A, void 0, s);
82272
- r = this._returnedTypesParse(w);
82271
+ const D = this._overloadsFuncGetTypes(T, M, A, void 0, s);
82272
+ r = this._returnedTypesParse(D);
82273
82273
  }
82274
82274
  else
82275
82275
  r = this._getOtherNamesMethodType(d, r, A, M, s);
@@ -82343,25 +82343,25 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82343
82343
  if (v) {
82344
82344
  if (v === J.UNDETERMINED) {
82345
82345
  t = [J.UNDETERMINED], t.isUnknown = !0;
82346
- const T = this._functions.get(A), w = T?.[0]?.methodName;
82347
- return T && w ? (!s.isType && i.params.unshift({ ...d, name: d.originName || d.name }), s.selfArg = d, s.hasAddSelf = !0, s.funcName = A, s.selfType = this._getSelfType(T), this._overloadsFuncGetTypes(T, i, r, d, s), t) : (s.targetVal = { ...d, funcName: A }, i?.params?.length && this._errorHandle(V(L0.undeterminedTypeMethodErr, { name: M }), r), t);
82346
+ const T = this._functions.get(A), D = T?.[0]?.methodName;
82347
+ return T && D ? (!s.isType && i.params.unshift({ ...d, name: d.originName || d.name }), s.selfArg = d, s.hasAddSelf = !0, s.funcName = A, s.selfType = this._getSelfType(T), this._overloadsFuncGetTypes(T, i, r, d, s), t) : (s.targetVal = { ...d, funcName: A }, i?.params?.length && this._errorHandle(V(L0.undeterminedTypeMethodErr, { name: M }), r), t);
82348
82348
  }
82349
82349
  const x = this._getOriginMethodName(v, A);
82350
82350
  s.varScope = d.scope, t = this._expandMethodHandle(x, r, i, d, M, s);
82351
82351
  } else {
82352
- let x = "", T = "", w = "";
82352
+ let x = "", T = "", D = "";
82353
82353
  for (const y of o.slice(0, p)) {
82354
82354
  x ? T = this._getOriginMethodName(x, y) : T = T ? `${T}.${y}` : y;
82355
82355
  const q = this._verifyName(T);
82356
82356
  if (q?.type) {
82357
- if (x = q.type, w = "", q.title?.startsWith("built-in variable")) {
82357
+ if (x = q.type, D = "", q.title?.startsWith("built-in variable")) {
82358
82358
  const N = this._getOriginMethodName(x, A);
82359
82359
  t = this._expandMethodHandle(N, r, i, { ...q, isBuiltInVar: !0 }, M, s);
82360
82360
  }
82361
82361
  } else
82362
- this._buildinTypes.get(T) && (w = V(L0.methodNotExistErr, { name: T, methodName: A }));
82362
+ this._buildinTypes.get(T) && (D = V(L0.methodNotExistErr, { name: T, methodName: A }));
82363
82363
  }
82364
- w && this._errorHandle(w, r);
82364
+ D && this._errorHandle(D, r);
82365
82365
  }
82366
82366
  return t;
82367
82367
  }
@@ -82384,8 +82384,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82384
82384
  if (d.length <= 1) {
82385
82385
  const A = d[0], g = A.name, v = this._functions.get(g);
82386
82386
  if (v) {
82387
- const T = v.length - 1, w = T <= (A.index || 0) ? T : A.index;
82388
- o.selfArg = v[w || 0].args?.[0], o.selfArg.isBuiltInVar = i?.isBuiltInVar, o.selfArg.isBuiltInConst = i?.isBuiltInConst;
82387
+ const T = v.length - 1, D = T <= (A.index || 0) ? T : A.index;
82388
+ o.selfArg = v[D || 0].args?.[0], o.selfArg.isBuiltInVar = i?.isBuiltInVar, o.selfArg.isBuiltInConst = i?.isBuiltInConst;
82389
82389
  }
82390
82390
  o.funcName = g, o.index = A.index, this._hasMemberIndexVerify(A, t, o), p = A.returnedTypes;
82391
82391
  const { hasErr: x } = this._checkArgs(r, A.args || [], e, t, p?.[0] || "");
@@ -82424,8 +82424,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82424
82424
  typeE: T.type,
82425
82425
  typeR: v[0]
82426
82426
  }), i);
82427
- const { hasErr: w, types: y } = this._checkArgs(t, g, r, i, x, T);
82428
- if (w)
82427
+ const { hasErr: D, types: y } = this._checkArgs(t, g, r, i, x, T);
82428
+ if (D)
82429
82429
  return y?.length ? y : [J.UNDETERMINED];
82430
82430
  if (M = y.length && y || this._returnedTypesParse(d), M.length > 1 || M.isBrackethesized) return M;
82431
82431
  o?.length === 1 ? M = [this._typeReplace(x, o[0])] : o?.length === 2 && (M = [`${J.MAP}<${o[0]},${o[1]}>`]), M = this._returnTypesOtherHandle(T, x, M, r);
@@ -82446,8 +82446,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82446
82446
  _overloadsFuncGetTypes(e, t, r, i, s) {
82447
82447
  let o = [], p = [], M = [], d = 0, A = 0;
82448
82448
  for (const [x, T] of e.entries()) {
82449
- const { args: w, returnedTypes: y, name: q, thisType: N } = T, B = i || t.params[0] || t[w[0].name], { errMsg: D, warnMsg: $, matchCount: R } = this._overloadsCheckArgs(t, w, q, r, B);
82450
- if (R > A && (d = x, A = R), B && !this._checkMethodThisType(N, B.type) && D.unshift({
82449
+ const { args: D, returnedTypes: y, name: q, thisType: N } = T, B = i || t.params[0] || t[D[0].name], { errMsg: w, warnMsg: $, matchCount: R } = this._overloadsCheckArgs(t, D, q, r, B);
82450
+ if (R > A && (d = x, A = R), B && !this._checkMethodThisType(N, B.type) && w.unshift({
82451
82451
  msg: V(L0.typeMismatch, {
82452
82452
  operator: q,
82453
82453
  index: B.name || "id",
@@ -82456,15 +82456,15 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82456
82456
  }),
82457
82457
  ctx: r
82458
82458
  }), x === 0)
82459
- p = D, M = $, D.length || (o = y.map((L) => L === `${J.ARRAY}<>` ? `${B.type}[]` : L));
82460
- else if (D.length)
82461
- (p[0]?.isLenErr && !D[0]?.isLenErr || p.length > D.length) && (p = D, M = $, d = x);
82459
+ p = w, M = $, w.length || (o = y.map((L) => L === `${J.ARRAY}<>` ? `${B.type}[]` : L));
82460
+ else if (w.length)
82461
+ (p[0]?.isLenErr && !w[0]?.isLenErr || p.length > w.length) && (p = w, M = $, d = x);
82462
82462
  else if (!o.length)
82463
- o = y.map((L) => L === `${J.ARRAY}<>` ? `${B.type}[]` : L), p = D, M = $, d = x;
82463
+ o = y.map((L) => L === `${J.ARRAY}<>` ? `${B.type}[]` : L), p = w, M = $, d = x;
82464
82464
  else
82465
82465
  for (const [L, P] of o.entries()) {
82466
82466
  const Z = y[L];
82467
- this._priorityComparison(P, y[L]) || (Z === `${J.ARRAY}<>` ? o[L] = `${B.type}[]` : o[L] = Z, p = D, M = $, d = L);
82467
+ this._priorityComparison(P, y[L]) || (Z === `${J.ARRAY}<>` ? o[L] = `${B.type}[]` : o[L] = Z, p = w, M = $, d = L);
82468
82468
  }
82469
82469
  }
82470
82470
  for (const x of p)
@@ -82479,11 +82479,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82479
82479
  startColumn: g.start.column + 1,
82480
82480
  endColumn: g.start.column + v.length
82481
82481
  }), s) {
82482
- const x = e[d], { thisType: T, name: w, index: y, isUser: q, title: N, realName: B } = x;
82482
+ const x = e[d], { thisType: T, name: D, index: y, isUser: q, title: N, realName: B } = x;
82483
82483
  if (this._hasMemberIndexVerify(x, r, s), N?.startsWith("built-in") && (s.isBuiltIn = !0), s.index = typeof y == "number" ? y : d, T) {
82484
- const D = this._functions.get(w);
82485
- D && (s.selfArg = D[s.index || 0].args?.[0], s.selfArg.isBuiltInVar = i?.isBuiltInVar, s.selfArg.isBuiltInConst = i?.isBuiltInConst), s.funcName = w;
82486
- } else q && (s.index = y || 0, s.isBuiltInFunc = !1, s.funcName = w, s.realName = B);
82484
+ const w = this._functions.get(D);
82485
+ w && (s.selfArg = w[s.index || 0].args?.[0], s.selfArg.isBuiltInVar = i?.isBuiltInVar, s.selfArg.isBuiltInConst = i?.isBuiltInConst), s.funcName = D;
82486
+ } else q && (s.index = y || 0, s.isBuiltInFunc = !1, s.funcName = D, s.realName = B);
82487
82487
  }
82488
82488
  return this._funcArgsAddOriginName(t, e[d].args, v), o.length ? o : [J.UNDETERMINED];
82489
82489
  }
@@ -82510,7 +82510,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82510
82510
  delete o.params;
82511
82511
  const M = Object.keys(o).length + p.length, d = t.length, A = [], g = [];
82512
82512
  let v = 0;
82513
- M > d && (t.some((w) => ["arg0, arg1, ...", "number0, number1, ..."].includes(w.name)) || A.push({
82513
+ M > d && (t.some((D) => ["arg0, arg1, ...", "number0, number1, ..."].includes(D.name)) || A.push({
82514
82514
  msg: V(L0.argsLenErr, {
82515
82515
  name: r,
82516
82516
  lenA: M,
@@ -82519,35 +82519,35 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82519
82519
  isLenErr: !0,
82520
82520
  ctx: i
82521
82521
  }));
82522
- for (const [T, w] of t.entries()) {
82523
- let y = o[w.name];
82522
+ for (const [T, D] of t.entries()) {
82523
+ let y = o[D.name];
82524
82524
  if (T < p.length && (y && A.push({
82525
- msg: V(gn.moreSameArg, { arg: w.name }),
82525
+ msg: V(gn.moreSameArg, { arg: D.name }),
82526
82526
  ctx: i
82527
82527
  }), y = p[T]), !y)
82528
- w.required && A.push({
82528
+ D.required && A.push({
82529
82529
  msg: V(L0.requiredParamErr, {
82530
82530
  name: r,
82531
- argName: w.name
82531
+ argName: D.name
82532
82532
  }),
82533
82533
  ctx: i
82534
82534
  });
82535
82535
  else {
82536
82536
  y.index = T;
82537
- const q = y.type !== `${J.SIMPLE} na` ? this._checkArg(y, w, r, s, y.ctx, !0, g) : "";
82537
+ const q = y.type !== `${J.SIMPLE} na` ? this._checkArg(y, D, r, s, y.ctx, !0, g) : "";
82538
82538
  q ? A.push({
82539
82539
  msg: q,
82540
82540
  ctx: y.ctx
82541
- }) : v++, delete o[w.name];
82541
+ }) : v++, delete o[D.name];
82542
82542
  }
82543
- if (["arg0, arg1, ...", "number0, number1, ..."].includes(w.name) && p.length > T + 1) {
82543
+ if (["arg0, arg1, ...", "number0, number1, ..."].includes(D.name) && p.length > T + 1) {
82544
82544
  const q = p.slice(T + 1);
82545
82545
  let N = p[T];
82546
82546
  for (const B of q) {
82547
82547
  N.type === `${J.SIMPLE} ${J.NA}` && (N = B);
82548
- const D = B.type !== `${J.SIMPLE} ${J.NA}` ? this._checkArg(B, w, r, N, B.ctx, !0, g) : "";
82549
- D && A.push({
82550
- msg: D,
82548
+ const w = B.type !== `${J.SIMPLE} ${J.NA}` ? this._checkArg(B, D, r, N, B.ctx, !0, g) : "";
82549
+ w && A.push({
82550
+ msg: w,
82551
82551
  ctx: B.ctx
82552
82552
  });
82553
82553
  }
@@ -82589,7 +82589,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82589
82589
  delete p.params;
82590
82590
  const d = Object.keys(p).length + M.length, A = t.length;
82591
82591
  let g = !1, v = [];
82592
- if (d > A && !t.some((w) => ["arg0, arg1, ...", "number0, number1, ..."].includes(w.name)))
82592
+ if (d > A && !t.some((D) => ["arg0, arg1, ...", "number0, number1, ..."].includes(D.name)))
82593
82593
  return this._errorHandle(V(L0.argsLenErr, {
82594
82594
  name: r,
82595
82595
  lenA: d,
@@ -82598,19 +82598,19 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82598
82598
  hasErr: g,
82599
82599
  types: v
82600
82600
  };
82601
- for (const [T, w] of t.entries()) {
82602
- let y = p[w.name];
82603
- if (T < M.length && (y && this._errorHandle(V(gn.moreSameArg, { arg: w.name }), i, bt.Warning), y = M[T], y.originName = w.name), !y)
82604
- w.required && (this._errorHandle(V(L0.requiredParamErr, {
82601
+ for (const [T, D] of t.entries()) {
82602
+ let y = p[D.name];
82603
+ if (T < M.length && (y && this._errorHandle(V(gn.moreSameArg, { arg: D.name }), i, bt.Warning), y = M[T], y.originName = D.name), !y)
82604
+ D.required && (this._errorHandle(V(L0.requiredParamErr, {
82605
82605
  name: r,
82606
- argName: w.name
82606
+ argName: D.name
82607
82607
  }), i), g = !0);
82608
82608
  else {
82609
82609
  y.index = T;
82610
- const q = y.type !== `${J.SIMPLE} ${J.NA}` ? this._checkArg(y, w, r, o, y.ctx) : "";
82610
+ const q = y.type !== `${J.SIMPLE} ${J.NA}` ? this._checkArg(y, D, r, o, y.ctx) : "";
82611
82611
  if (q)
82612
82612
  this._errorHandle(q, y.ctx), g = !0;
82613
- else if (r.startsWith("request.") && w.name === "expression")
82613
+ else if (r.startsWith("request.") && D.name === "expression")
82614
82614
  if (y.ruleType === I0.Brackethesized)
82615
82615
  v = y.exprs.map((N) => this._typeReplace(s, N.type));
82616
82616
  else if ((y.types || y.returnedTypes)?.length)
@@ -82619,11 +82619,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82619
82619
  const N = this._typeReplace(s, y.type);
82620
82620
  v.push(N);
82621
82621
  }
82622
- else if (r === "input.enum" && w.name === "defval") {
82622
+ else if (r === "input.enum" && D.name === "defval") {
82623
82623
  const N = this._removePrefix(y.type);
82624
82624
  v.push(`${J.INPUT} ${N}`);
82625
82625
  }
82626
- delete p[w.name];
82626
+ delete p[D.name];
82627
82627
  }
82628
82628
  }
82629
82629
  const x = Object.keys(p);
@@ -82656,7 +82656,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82656
82656
  _checkArg(e, t, r, i, s, o, p) {
82657
82657
  const { ruleType: M, exprs: d, name: A } = e;
82658
82658
  let g = e.type;
82659
- M === I0.Brackethesized && (g = `[${d.map((w) => w.type).join(", ")}]`);
82659
+ M === I0.Brackethesized && (g = `[${d.map((D) => D.type).join(", ")}]`);
82660
82660
  const { allowedTypeIDs: v = [], displayType: x, name: T } = t;
82661
82661
  if (!(!g || g === J.UNDETERMINED || x === J.UNDETERMINED)) {
82662
82662
  if (r === "input" && T === "defval" && !g.startsWith(J.CONST))
@@ -82667,20 +82667,20 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82667
82667
  if (!(this._checkMethodThisType(v, this._arrayTypeConvert(g)) && !(["input.source", "input.enum"].includes(r) && T === "defval"))) {
82668
82668
  if (T === "condition" && x?.endsWith(J.BOOL)) {
82669
82669
  if (g.endsWith(J.INT) || g.endsWith(J.FLOAT)) {
82670
- const w = V(gn.typeMismatch, {
82670
+ const D = V(gn.typeMismatch, {
82671
82671
  index: T,
82672
82672
  operator: r,
82673
82673
  type: J.BOOL
82674
82674
  });
82675
82675
  s && (p ? p.push({
82676
82676
  ctx: s,
82677
- msg: w
82678
- }) : this._errorHandle(w, s, bt.Warning));
82677
+ msg: D
82678
+ }) : this._errorHandle(D, s, bt.Warning));
82679
82679
  return;
82680
82680
  }
82681
82681
  } else if (r === "str.tostring" && T === "value") {
82682
- const w = this._removePrefix(g);
82683
- if (this._enums.get(w)) return;
82682
+ const D = this._removePrefix(g);
82683
+ if (this._enums.get(D)) return;
82684
82684
  }
82685
82685
  switch (x) {
82686
82686
  case "tuple of const string values: [val1, val2, ...]":
@@ -82703,13 +82703,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82703
82703
  break;
82704
82704
  case "<matrix_type>":
82705
82705
  case "<array_type>":
82706
- const w = this._getArrayType(r) || "";
82707
- if (!g.endsWith(w) && !(g.endsWith(J.INT) && w === J.FLOAT))
82706
+ const D = this._getArrayType(r) || "";
82707
+ if (!g.endsWith(D) && !(g.endsWith(J.INT) && D === J.FLOAT))
82708
82708
  return V(L0.typeMismatch, {
82709
82709
  operator: r,
82710
82710
  index: T,
82711
82711
  typeE: g,
82712
- typeR: this._typeAddSeries(w)
82712
+ typeR: this._typeAddSeries(D)
82713
82713
  });
82714
82714
  break;
82715
82715
  case "any matrix type":
@@ -82853,8 +82853,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82853
82853
  });
82854
82854
  break;
82855
82855
  case "simple enum":
82856
- const D = this._removePrefix(g);
82857
- if (!this._enums.has(D))
82856
+ const w = this._removePrefix(g);
82857
+ if (!this._enums.has(w))
82858
82858
  return V(L0.typeMismatch, {
82859
82859
  operator: r,
82860
82860
  index: T,
@@ -82944,7 +82944,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82944
82944
  if (i) return [i];
82945
82945
  switch (r) {
82946
82946
  case I0.Brackethesized:
82947
- const g = p.map((D) => D.type);
82947
+ const g = p.map((w) => w.type);
82948
82948
  return g.isBrackethesized = !0, g;
82949
82949
  case I0.VarBlockStmt:
82950
82950
  case I0.DeclareAssign:
@@ -82953,42 +82953,42 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
82953
82953
  if (!this._isNeedCalc && (!this._isInFunc || this._isInFunc && this._isEndExpr === !1)) return [J.UNDETERMINED];
82954
82954
  const v = [...t.cases];
82955
82955
  t.defaultCase && v.push(t.defaultCase);
82956
- let x = v[0]?.returnedTypes || [], T = x.length <= 1 ? x[0] : `[${x.join(", ")}]`, w = null;
82957
- for (const D of v.slice(1)) {
82958
- const $ = D.returnedTypes || [J.UNDETERMINED];
82956
+ let x = v[0]?.returnedTypes || [], T = x.length <= 1 ? x[0] : `[${x.join(", ")}]`, D = null;
82957
+ for (const w of v.slice(1)) {
82958
+ const $ = w.returnedTypes || [J.UNDETERMINED];
82959
82959
  T += $.length <= 1 ? `; ${$[0]}` : `; [${$.join(", ")}]`;
82960
- const R = Array.isArray(D.block) ? D.block.slice(-1)[0] : D.block;
82961
- if ($.length !== x.length) w = R.ctx;
82960
+ const R = Array.isArray(w.block) ? w.block.slice(-1)[0] : w.block;
82961
+ if ($.length !== x.length) D = R.ctx;
82962
82962
  else
82963
82963
  for (const [L, P] of x.entries())
82964
82964
  if (this._compareType($[L], P, !0))
82965
82965
  ($[L].includes(J.FLOAT) && !P.includes(J.FLOAT) || x[L] === `${J.SIMPLE} ${J.NA}` || x[L] === J.UNDETERMINED && $[L] !== `${J.SIMPLE} ${J.NA}`) && (x[L] = $[L]);
82966
82966
  else {
82967
- w = R.ctx;
82967
+ D = R.ctx;
82968
82968
  break;
82969
82969
  }
82970
82970
  }
82971
- return w && (this._errorHandle(V(L0.ifOrSwitchTypeErr, {
82971
+ return D && (this._errorHandle(V(L0.ifOrSwitchTypeErr, {
82972
82972
  keyword: "switch",
82973
82973
  types: T
82974
- }), w), x = x.map(() => J.UNDETERMINED)), t.returnedTypes = x, x;
82974
+ }), D), x = x.map(() => J.UNDETERMINED)), t.returnedTypes = x, x;
82975
82975
  case I0.IfStatement:
82976
82976
  if (!this._isNeedCalc && (!this._isInFunc || this._isInFunc && this._isEndExpr === !1)) return [J.UNDETERMINED];
82977
- if (!d.filter((D) => D && D.length).length) return [J.UNDETERMINED];
82977
+ if (!d.filter((w) => w && w.length).length) return [J.UNDETERMINED];
82978
82978
  let y = d[0] || [], q = y.length <= 1 ? y[0] : `[${y.join(", ")}]`, N = 0, B = 0;
82979
- for (const D of d.slice(1))
82980
- if (D)
82981
- if (N++, q += D.length <= 1 ? `; ${D[0]}` : `; [${D.join(", ")}]`, D.length !== y.length) B = N;
82979
+ for (const w of d.slice(1))
82980
+ if (w)
82981
+ if (N++, q += w.length <= 1 ? `; ${w[0]}` : `; [${w.join(", ")}]`, w.length !== y.length) B = N;
82982
82982
  else
82983
82983
  for (const [$, R] of y.entries())
82984
- if (this._compareType(D[$], R, !0))
82985
- (D[$].includes(J.FLOAT) && !R.includes(J.FLOAT) || y[$] === `${J.SIMPLE} ${J.NA}`) && (y[$] = D[$]);
82984
+ if (this._compareType(w[$], R, !0))
82985
+ (w[$].includes(J.FLOAT) && !R.includes(J.FLOAT) || y[$] === `${J.SIMPLE} ${J.NA}`) && (y[$] = w[$]);
82986
82986
  else {
82987
82987
  B = N;
82988
82988
  break;
82989
82989
  }
82990
82990
  if (B) {
82991
- const D = A[B].slice(-1)[0], $ = Array.isArray(D) ? D.slice(-1)[0] : D;
82991
+ const w = A[B].slice(-1)[0], $ = Array.isArray(w) ? w.slice(-1)[0] : w;
82992
82992
  this._errorHandle(V(L0.ifOrSwitchTypeErr, {
82993
82993
  keyword: "if",
82994
82994
  types: q
@@ -83294,69 +83294,69 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
83294
83294
  this._isInLoop = !0;
83295
83295
  const v = `$start${this._count + 1}`;
83296
83296
  g || (this._count += 1);
83297
- const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, w = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`, q = `_$step${p.start.tokenIndex}`;
83297
+ const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, D = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`, q = `_$step${p.start.tokenIndex}`;
83298
83298
  t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
83299
- const N = this._parserSingleExpression(M), B = this._parserSingleExpression(d), D = A ? this._parserSingleExpression(A) : "", $ = this._parserBlockLine(i, t, !1, !0);
83299
+ const N = this._parserSingleExpression(M), B = this._parserSingleExpression(d), w = A ? this._parserSingleExpression(A) : "", $ = this._parserBlockLine(i, t, !1, !0);
83300
83300
  _r.includes(s) && (s = `$${s}`);
83301
83301
  const R = `var ${v} = Date.now()`;
83302
- let P = `for (let ${s}=${N};${s} * ${y} >= ${w}; ${s}-=${q}){
83303
- if (Date.now() - ${v} > 500) {
83304
- throw new Error('${L0.loopRuntimeErr}')
83302
+ let P = `for (let ${s}=${N};${s} * ${y} >= ${D}; ${s}-=${q}){
83303
+ if (Date.now() - ${v} > 5000) {
83304
+ throw new Error('for...to:${L0.loopRuntimeErr}->${p.start.line}行')
83305
83305
  }
83306
83306
  ${x}++
83307
83307
  ${$}
83308
83308
  }`;
83309
83309
  return P = `${R};
83310
83310
  ${g ? "" : `var ${x} = 0`};
83311
- let ${w} = ${d?.type?.endsWith(" int") || !D || d?.type?.endsWith(" int") ? `Math.round(${B})` : B};
83312
- const ${y} = (${N})>${w} ? 1 : -1;
83313
- ${w} = ${w}*${y};
83314
- const ${q} = (${D || "1"}) * ${y}
83311
+ let ${D} = ${d?.type?.endsWith(" int") || !w || d?.type?.endsWith(" int") ? `Math.round(${B})` : B};
83312
+ const ${y} = (${N})>${D} ? 1 : -1;
83313
+ ${D} = ${D}*${y};
83314
+ const ${q} = (${w || "1"}) * ${y}
83315
83315
  ${P}`, t || this._codesCol[this._blockCount].push({
83316
83316
  code: P,
83317
83317
  depends: this._getDepends(T)
83318
83318
  }), this._isInLoop = g, t ? this._functionalProcess(P, o) : P;
83319
83319
  }
83320
83320
  _parserForInStatement(e, t = !1) {
83321
- const { names: r, block: i, array: s, type: o } = e, p = this._isInLoop;
83321
+ const { names: r, block: i, array: s, type: o, ctx: p } = e, M = this._isInLoop;
83322
83322
  this._isInLoop = !0;
83323
- const M = `$start${this._count + 1}`;
83324
- p || (this._count += 1);
83325
- const d = `$$count${this._count}`, A = this._parserBlockLine(i, t, !1, !0);
83326
- let g = "", [v, x] = r;
83327
- _r.includes(v) && (v = `$${v}`);
83328
- const T = `var ${M} = Date.now()`, w = this._parserSingleExpression(s);
83323
+ const d = `$start${this._count + 1}`;
83324
+ M || (this._count += 1);
83325
+ const A = `$$count${this._count}`, g = this._parserBlockLine(i, t, !1, !0);
83326
+ let v = "", [x, T] = r;
83327
+ _r.includes(x) && (x = `$${x}`);
83328
+ const D = `var ${d} = Date.now()`, y = this._parserSingleExpression(s);
83329
83329
  if (r.length === 1)
83330
- g = `for (let ${v} of (${w}?._value || [])) {
83331
- if ((${w}).isMatrix) {
83332
- ${v} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${v}, (${w}).typeName)
83330
+ v = `for (let ${x} of (${y}?._value || [])) {
83331
+ if ((${y}).isMatrix) {
83332
+ ${x} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${x}, (${y}).typeName)
83333
83333
  }
83334
- if (Date.now() - ${M} > 500) {
83335
- throw new Error('${L0.loopRuntimeErr}')
83334
+ if (Date.now() - ${d} > 5000) {
83335
+ throw new Error('for...in:${L0.loopRuntimeErr}->${p?.start?.line}行')
83336
83336
  }
83337
- ${d}++
83338
- ${A}
83337
+ ${A}++
83338
+ ${g}
83339
83339
  }`;
83340
83340
  else {
83341
- _r.includes(x) && (x = `$${x}`);
83342
- const y = `$$value${this._count}`;
83343
- g = `const ${y} = (${w})?.isMap ? Object.entries((${w})._value) : ((${w})?._value || []).entries()
83344
- for (let [${v},${x}] of ${y}) {
83345
- if ((${w}).isMatrix) {
83346
- ${x} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${x}, (${w}).typeName)
83347
- } else if ((${w})._isNumberKey) {
83348
- ${v} = Number(${v})
83341
+ _r.includes(T) && (T = `$${T}`);
83342
+ const q = `$$value${this._count}`;
83343
+ v = `const ${q} = (${y})?.isMap ? Object.entries((${y})._value) : ((${y})?._value || []).entries()
83344
+ for (let [${x},${T}] of ${q}) {
83345
+ if ((${y}).isMatrix) {
83346
+ ${T} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${T}, (${y}).typeName)
83347
+ } else if ((${y})._isNumberKey) {
83348
+ ${x} = Number(${x})
83349
83349
  }
83350
- if (Date.now() - ${M} > 500) {
83351
- throw new Error('${L0.loopRuntimeErr}')
83350
+ if (Date.now() - ${d} > 5000) {
83351
+ throw new Error('for...in:${L0.loopRuntimeErr}->${p?.start?.line}行')
83352
83352
  }
83353
- ${d}++
83354
- ${A}
83353
+ ${A}++
83354
+ ${g}
83355
83355
  }`;
83356
83356
  }
83357
- return this._isInLoop = p, g = `${T};
83358
- ${p ? "" : `var ${d} = 0`}
83359
- ${g}`, t ? this._functionalProcess(g, o) : g;
83357
+ return this._isInLoop = M, v = `${D};
83358
+ ${M ? "" : `var ${A} = 0`}
83359
+ ${v}`, t ? this._functionalProcess(v, o) : v;
83360
83360
  }
83361
83361
  _parserAgainAssign(e) {
83362
83362
  const { operator: t, name: r, value: i } = e, { varPos: s, declare: o } = r, p = `$againAssign${this._blockCount}`;
@@ -83377,11 +83377,11 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
83377
83377
  }
83378
83378
  t === "-=" ? x = `${M} = ${this._prefixNameVar}.sub(${M}, ${A})` : t === "+=" ? x = `${M} = ${this._prefixNameVar}.add(${M}, ${A})` : t === ":=" && (v = `${v};
83379
83379
  `);
83380
- const w = `${v}${x}${d}`;
83380
+ const D = `${v}${x}${d}`;
83381
83381
  return this._codesCol[this._blockCount].push({
83382
- code: w,
83382
+ code: D,
83383
83383
  depends: this._getDepends(p)
83384
- }), w;
83384
+ }), D;
83385
83385
  }
83386
83386
  _parserSwitchStatement(e, t = !1) {
83387
83387
  const { condition: r, cases: i, defaultCase: s, type: o } = e;
@@ -83419,27 +83419,27 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
83419
83419
  break;`;
83420
83420
  }
83421
83421
  _parserWhileStatement(e, t = !1) {
83422
- const { condition: r, block: i, type: s } = e;
83423
- let o = `$while${this._blockCount}`;
83424
- t || (this._dependsObj[o] = /* @__PURE__ */ new Map());
83425
- const p = this._isInLoop;
83422
+ const { condition: r, block: i, type: s, ctx: o } = e;
83423
+ let p = `$while${this._blockCount}`;
83424
+ t || (this._dependsObj[p] = /* @__PURE__ */ new Map());
83425
+ const M = this._isInLoop;
83426
83426
  this._isInLoop = !0;
83427
- const M = `$start${this._count + 1}`;
83428
- p || (this._count += 1);
83429
- const d = `var ${M} = Date.now()`, A = `$$count${this._count}`;
83430
- let g = `while (${this._parserSingleExpression(r)}) {
83431
- if (Date.now() - ${M} > 500) {
83432
- throw new Error('${L0.loopRuntimeErr}')
83427
+ const d = `$start${this._count + 1}`;
83428
+ M || (this._count += 1);
83429
+ const A = `var ${d} = Date.now()`, g = `$$count${this._count}`;
83430
+ let v = `while (${this._parserSingleExpression(r)}) {
83431
+ if (Date.now() - ${d} > 5000) {
83432
+ throw new Error('while:${L0.loopRuntimeErr}->${o?.start?.line}行')
83433
83433
  }
83434
- ${A}++
83434
+ ${g}++
83435
83435
  ${this._parserBlockLine(i, t, !1, !0)}
83436
83436
  }`;
83437
- return g = `${d};
83438
- ${p ? "" : `var ${A} = 0`}
83439
- ${g}`, t || this._codesCol[this._blockCount].push({
83440
- code: g,
83441
- depends: this._getDepends(o)
83442
- }), this._isInLoop = p, t ? this._functionalProcess(g, s) : g;
83437
+ return v = `${A};
83438
+ ${M ? "" : `var ${g} = 0`}
83439
+ ${v}`, t || this._codesCol[this._blockCount].push({
83440
+ code: v,
83441
+ depends: this._getDepends(p)
83442
+ }), this._isInLoop = M, t ? this._functionalProcess(v, s) : v;
83443
83443
  }
83444
83444
  _parserIfStatement(e, t = !1) {
83445
83445
  const { condition: r, block: i, type: s } = e;
@@ -83700,9 +83700,9 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
83700
83700
  return T[g] = `${this._prefixNameVar}.setCacheData("${g}", ${p})`, this._memberIndexList[0] = T, `${this._prefixNameVar}.getCacheData("${g}", ${o}, ${p})`;
83701
83701
  }
83702
83702
  if (g.includes(".")) {
83703
- const T = g.split(".")[0], w = v[T];
83704
- if (w)
83705
- return this._getUserVarMemberIndexs(w, g, A, o, r);
83703
+ const T = g.split(".")[0], D = v[T];
83704
+ if (D)
83705
+ return this._getUserVarMemberIndexs(D, g, A, o, r);
83706
83706
  }
83707
83707
  A--;
83708
83708
  }
@@ -83745,8 +83745,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
83745
83745
  }
83746
83746
  let g = "";
83747
83747
  const { column: v, line: x } = A?.ctx?.start || {}, T = `${x}_${v}`;
83748
- let w = this._isInFunc ? `$posStr + "__${T}"` : `"${this._scriptType === Rr.library ? `export_${this._libTitle}_` : ""}${T}"`;
83749
- w = this._isInLoop && !this._isExperssion ? `"$" + $$count${this._count} + "_$" + ${w}` : w, A.selfArg ? (g = this._parserMethodElement(A, w, d.join(".")), d = []) : g = this._parserMethodElement(A, w, ""), d.push(g);
83748
+ let D = this._isInFunc ? `$posStr + "__${T}"` : `"${this._scriptType === Rr.library ? `export_${this._libTitle}_` : ""}${T}"`;
83749
+ D = this._isInLoop && !this._isExperssion ? `"$" + $$count${this._count} + "_$" + ${D}` : D, A.selfArg ? (g = this._parserMethodElement(A, D, d.join(".")), d = []) : g = this._parserMethodElement(A, D, ""), d.push(g);
83750
83750
  }
83751
83751
  if (e.expr && d.unshift(`(${this._parserSingleExpression(e.expr)})`), e.isBuiltIn) {
83752
83752
  const A = d.join(".");
@@ -83816,8 +83816,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
83816
83816
  if (e.selfArg) {
83817
83817
  const g = i.split("."), v = g.length, x = g.slice(0, v - 1);
83818
83818
  r && x.unshift(r), !e.hasAddSelf && Object.assign(o, { [e.selfArg.name]: { name: x.join("?."), isBuiltInConst: e.selfArg.isBuiltInConst, isBuiltInVar: e.selfArg.isBuiltInVar } }), i = (e.isBuiltInFunc ? `${this._prefixNameFunc}.${e.funcName}` : e.funcName) || g[v - 1], i = this._nameMap.get(i) || i;
83819
- const w = this._argChangeMap.get(`${i}${d}`) || [];
83820
- this._setDepend({ name: e.isBuiltIn ? g[1] : g[0], isAgainAssign: c4.includes(e.funcName) || w?.includes(0), scope: e.varScope || e?.selfArg?.scope || 0 });
83819
+ const D = this._argChangeMap.get(`${i}${d}`) || [];
83820
+ this._setDepend({ name: e.isBuiltIn ? g[1] : g[0], isAgainAssign: c4.includes(e.funcName) || D?.includes(0), scope: e.varScope || e?.selfArg?.scope || 0 });
83821
83821
  }
83822
83822
  i = `${i}${d}`;
83823
83823
  const A = this._parserArguments(o, s, t, M, e.hasRequest, i, (e.isBuiltIn || e.isBuiltInFunc) && c4.includes(e.funcName || e.name));
@@ -83842,26 +83842,26 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
83842
83842
  let g = [], v;
83843
83843
  const x = this._argChangeMap.get(o), T = (N, B) => {
83844
83844
  o.startsWith(`${this._prefixNameFunc}.ta.`) && B === "length" && (N.type.startsWith(J.SERIES) || N.type === J.UNDETERMINED) && d.push("isSeriesLen: true");
83845
- const D = p && N.index === 0 && !N.hasMethod || x?.includes(N.index);
83845
+ const w = p && N.index === 0 && !N.hasMethod || x?.includes(N.index);
83846
83846
  if (this._isInFunc && (N.arg || N.isArg) && this._currentFuncName) {
83847
83847
  const R = this._argChangeMap.get(this._currentFuncName) || [];
83848
- D && !R.includes(N.index) && (R.push(N.index), this._argChangeMap.set(this._currentFuncName, R));
83848
+ w && !R.includes(N.index) && (R.push(N.index), this._argChangeMap.set(this._currentFuncName, R));
83849
83849
  }
83850
83850
  s ? this._dependsObj[r] = /* @__PURE__ */ new Map() : i && B === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${B}${r}`] = /* @__PURE__ */ new Map());
83851
- let $ = N.ruleType === I0.Brackethesized ? this._parserBrackethesized(N) : this._parserSingleExpression(N, D);
83851
+ let $ = N.ruleType === I0.Brackethesized ? this._parserBrackethesized(N) : this._parserSingleExpression(N, w);
83852
83852
  if (B && !["arg0, arg1, ...", "number0, number1, ..."].includes(B)) {
83853
83853
  N.isSourceType ? d.push(`sourceTypeName: "${N.name}"`) : B === "defval" && o === `${this._prefixNameFunc}.input.enum` && (v = this._enums.get(N.enumName));
83854
83854
  const R = this._requestParamsHandle(i, B, r, s, $, o);
83855
83855
  $ = R?.code || $, R?.paramsExpr && g.push(R?.paramsExpr), _r.includes(B) && (B = `$${B}`), _r.includes($) && ($ = `$${$}`), d.push(`${B}: ${$}`);
83856
83856
  } else
83857
83857
  A.push($);
83858
- }, w = [];
83858
+ }, D = [];
83859
83859
  for (const N of M)
83860
- w.push(`'${N.originName}'`), T(N, N.originName);
83860
+ D.push(`'${N.originName}'`), T(N, N.originName);
83861
83861
  for (const N of Object.keys(e))
83862
83862
  T(e[N], N);
83863
83863
  i && this._isInFunc && d.push("paramsExpr: $paramsExpr"), t && d.push(t), v && d.unshift(`options: [${v.join(", ")}]`);
83864
- const y = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${w.join(",")}]` : "", q = g.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${g.join(", ")}]` : "";
83864
+ const y = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${D.join(",")}]` : "", q = g.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${g.join(", ")}]` : "";
83865
83865
  return A.length ? `({${d.join(", ")}}, [${A.join(", ")}], ${r}${q}${y})` : d.length ? `({${d.join(", ")}}, ${r}${q}${y})` : `(${r}${q})`;
83866
83866
  }
83867
83867
  _requestParamsHandle(e, t, r, i, s, o) {
@@ -83976,10 +83976,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
83976
83976
  let v = "";
83977
83977
  const x = new b5("_$");
83978
83978
  let T = e ? "" : x.preParser(g);
83979
- const w = {};
83979
+ const D = {};
83980
83980
  if (e && !i.some((y) => y.type === bt.Error)) {
83981
83981
  const { code: y = "", hasLeftVisibleBarTime: q, hasRightVisibleBarTime: N, hasAlert: B } = x.parser(g) || {};
83982
- Object.assign(w, {
83982
+ Object.assign(D, {
83983
83983
  hasLeftVisibleBarTime: q,
83984
83984
  hasRightVisibleBarTime: N,
83985
83985
  hasAlert: B,
@@ -84027,7 +84027,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
84027
84027
  enums: Object.fromEntries(A.userEnums),
84028
84028
  codeStr: v,
84029
84029
  preParserCode: T,
84030
- config: w
84030
+ config: D
84031
84031
  };
84032
84032
  } catch (s) {
84033
84033
  return console.log(s, "解析错误"), i.push({
@@ -84056,8 +84056,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
84056
84056
  const { ast: i, comments: s } = M5(n + `
84057
84057
 
84058
84058
  `), { commentFilters: o } = T3(s), p = new l5(r, o, t), M = await p.visit(i), { name: d, index: A } = p.endExport, g = M.findIndex((q) => q.name === d && q.index === A), v = g === -1 ? M : M.slice(0, g + 1), T = new b5("_$", Rr.library, e).parserlib(v);
84059
- let w = T?.code || "";
84060
- const y = await Uu(w, { compress: !0, mangle: !0 });
84059
+ let D = T?.code || "";
84060
+ const y = await Uu(D, { compress: !0, mangle: !0 });
84061
84061
  return {
84062
84062
  ...p.exportLibs,
84063
84063
  description: p.description,
@@ -99071,8 +99071,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
99071
99071
  nameList: { prefix: g, type: v, name: x, pos: q, desc: y, ruleType: D0.VarSingle },
99072
99072
  value: T,
99073
99073
  isExport: !0
99074
- }, B = i.line - 1, { line: D = 0 } = this._endExport;
99075
- return B > D && (this._endExport = { line: B, name: N.name }), this._repeatVarJudge(x, M, q), this._variablesHandle(N, e), this._addExportPos(s.symbol, "variables"), N;
99074
+ }, B = i.line - 1, { line: w = 0 } = this._endExport;
99075
+ return B > w && (this._endExport = { line: B, name: N.name }), this._repeatVarJudge(x, M, q), this._variablesHandle(N, e), this._addExportPos(s.symbol, "variables"), N;
99076
99076
  };
99077
99077
  visitVarBlockStmt = (e) => {
99078
99078
  const { children: t } = e;
@@ -99381,28 +99381,28 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
99381
99381
  let A = -1;
99382
99382
  const g = s.reduce((v, x, T) => {
99383
99383
  if (v) {
99384
- const w = x.args.params || [], y = { ...v }, q = this._getMethodTypes([y], [o[T]]) || [], N = q[0];
99384
+ const D = x.args.params || [], y = { ...v }, q = this._getMethodTypes([y], [o[T]]) || [], N = q[0];
99385
99385
  if (this._types.has(N)) {
99386
99386
  if (x.name.includes(".")) {
99387
- const D = x.name.split("."), $ = D.pop(), R = D.join("."), L = this._getMethodFiledType(q, R, e), P = this._getOriginMethodName(L, $);
99388
- return this._buildinFunctions.has(P) ? x.name = P : x.name = $, y.ctx = o[T], w.unshift({
99387
+ const w = x.name.split("."), $ = w.pop(), R = w.join("."), L = this._getMethodFiledType(q, R, e), P = this._getOriginMethodName(L, $);
99388
+ return this._buildinFunctions.has(P) ? x.name = P : x.name = $, y.ctx = o[T], D.unshift({
99389
99389
  ruleType: D0.Name,
99390
99390
  hasMethod: !0,
99391
99391
  exprs: [y, R],
99392
99392
  type: L
99393
- }), x.args.params = w, x;
99393
+ }), x.args.params = D, x;
99394
99394
  } else
99395
99395
  A = T, v.isType = !0;
99396
99396
  return v;
99397
99397
  }
99398
99398
  N || this._errorHandle(V(W0.undeterminedTypeMethodErr, { name: v.name }), o[T]);
99399
99399
  const B = `${this._getMethodTypeName(N)}.${x.name}`;
99400
- this._buildinFunctions.has(B) && (x.name = B), w.unshift({
99400
+ this._buildinFunctions.has(B) && (x.name = B), D.unshift({
99401
99401
  ruleType: D0.MethodExpression,
99402
99402
  type: N,
99403
99403
  exprs: [y],
99404
99404
  ctx: o[T]
99405
- }), x.args.params = w;
99405
+ }), x.args.params = D;
99406
99406
  }
99407
99407
  return x;
99408
99408
  }, null);
@@ -99807,13 +99807,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
99807
99807
  _importDataHandle(e, t, r) {
99808
99808
  const { functions: i = [], methods: s = [], types: o = [], variables: p = [], enums: M = [] } = e, d = [...o, ...M];
99809
99809
  for (const A of i) {
99810
- const { name: g, isAddToBuiltIn: v, originalName: x = "" } = A, T = this._importTypeUpdate(A, d, t), w = `${t}.${g}`;
99811
- if (T.name = w, v) {
99810
+ const { name: g, isAddToBuiltIn: v, originalName: x = "" } = A, T = this._importTypeUpdate(A, d, t), D = `${t}.${g}`;
99811
+ if (T.name = D, v) {
99812
99812
  this._buildinFunctions.get(x)?.push(T);
99813
99813
  continue;
99814
99814
  }
99815
- const y = this._functions.get(w) || [];
99816
- y.push({ ...T, isUser: void 0, isImport: !0, importName: t, libraryInfoId: r }), this._functions.set(w, y);
99815
+ const y = this._functions.get(D) || [];
99816
+ y.push({ ...T, isUser: void 0, isImport: !0, importName: t, libraryInfoId: r }), this._functions.set(D, y);
99817
99817
  }
99818
99818
  for (const A of s) {
99819
99819
  const { isAddToBuiltIn: g, originalName: v = "" } = A, x = this._importTypeUpdate(A, d, t);
@@ -99821,8 +99821,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
99821
99821
  this._buildinMethods.get(v)?.push(x);
99822
99822
  continue;
99823
99823
  }
99824
- const T = x.originalName || x.name, w = this._methods.get(T) || [];
99825
- w.push({ ...x, isImport: !0, importName: t, isUser: void 0, libraryInfoId: r }), this._methods.set(T, w);
99824
+ const T = x.originalName || x.name, D = this._methods.get(T) || [];
99825
+ D.push({ ...x, isImport: !0, importName: t, isUser: void 0, libraryInfoId: r }), this._methods.set(T, D);
99826
99826
  }
99827
99827
  for (const A of o) {
99828
99828
  const g = `${t}.${A.name}`, v = this._types.get(g) || [];
@@ -99844,10 +99844,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
99844
99844
  _importTypeUpdate(e, t, r) {
99845
99845
  let { args: i, returnedTypes: s, thisType: o, fields: p, name: M, originalName: d, selfArg: A, isAddToBuiltIn: g } = e, v = "";
99846
99846
  if (i && i.length && (i = i.map((T) => {
99847
- const { allowedTypeIDs: w, displayType: y, name: q } = T, N = y && this._replaceTypeName(y, t, r);
99847
+ const { allowedTypeIDs: D, displayType: y, name: q } = T, N = y && this._replaceTypeName(y, t, r);
99848
99848
  return v = v ? `${v}, ${N} ${q}` : `${N} ${q}`, {
99849
99849
  ...T,
99850
- allowedTypeIDs: w?.map((B) => this._replaceTypeName(B, t, r)),
99850
+ allowedTypeIDs: D?.map((B) => this._replaceTypeName(B, t, r)),
99851
99851
  displayType: N
99852
99852
  };
99853
99853
  })), s?.length && (s = s.map((T) => this._replaceTypeName(T, t, r))), o?.length) {
@@ -99855,11 +99855,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
99855
99855
  T !== o[0] && !g && (d = `${r}.${d || M}`), o = [T];
99856
99856
  }
99857
99857
  p?.length && (p = p.map((T) => {
99858
- const { type: w } = T;
99858
+ const { type: D } = T;
99859
99859
  return {
99860
99860
  ...T,
99861
99861
  isImport: !0,
99862
- type: w && this._replaceTypeName(w, t, r)
99862
+ type: D && this._replaceTypeName(D, t, r)
99863
99863
  };
99864
99864
  }));
99865
99865
  const x = { ...e, args: i, returnedTypes: s, thisType: o, fields: p, originalName: d };
@@ -100748,9 +100748,9 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
100748
100748
  _addVarToMap(e, t, r, i = !0, s = !1, o) {
100749
100749
  const p = this._currentBlockVars[this._blockCount] || /* @__PURE__ */ new Map(), { declare: M, valueType: d, desc: A, prefix: g, isExport: v } = o || {}, x = this._types.get(t)?.[0];
100750
100750
  if (x && x.fields)
100751
- for (const w of x.fields) {
100752
- const y = `${e}.${w.name}`;
100753
- p.set(y, { ...w, name: y, importName: x.importName, isUserFields: !0, scope: this._blockCount });
100751
+ for (const D of x.fields) {
100752
+ const y = `${e}.${D.name}`;
100753
+ p.set(y, { ...D, name: y, importName: x.importName, isUserFields: !0, scope: this._blockCount });
100754
100754
  }
100755
100755
  const T = {
100756
100756
  name: e,
@@ -100848,16 +100848,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
100848
100848
  _setFunc(e, t, r, i) {
100849
100849
  const s = [], o = [], { desc: p, paramsDesc: M, returnsDesc: d, params: A, hasMemberIndex: g } = e;
100850
100850
  for (const N of A) {
100851
- const { type: B, name: D, defaultValue: $ } = N;
100851
+ const { type: B, name: w, defaultValue: $ } = N;
100852
100852
  s.push({
100853
- name: D,
100854
- desc: M?.[D],
100853
+ name: w,
100854
+ desc: M?.[w],
100855
100855
  required: !$,
100856
100856
  allowedTypeIDs: this._getAllowTypes(B),
100857
100857
  displayType: B
100858
- }), o.push(`${B === Q.UNDETERMINED ? "" : `${B} `}${D}`);
100858
+ }), o.push(`${B === Q.UNDETERMINED ? "" : `${B} `}${w}`);
100859
100859
  }
100860
- const { returnedTypes: v = [] } = e, x = e.name, T = v.length > 1 || v.isBrackethesized ? `[${v.join(", ")}]` : v.toString(), w = {
100860
+ const { returnedTypes: v = [] } = e, x = e.name, T = v.length > 1 || v.isBrackethesized ? `[${v.join(", ")}]` : v.toString(), D = {
100861
100861
  name: x,
100862
100862
  desc: p,
100863
100863
  args: s,
@@ -100876,19 +100876,19 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
100876
100876
  }
100877
100877
  if (this._buildinFunctions.has(y)) {
100878
100878
  const N = this._buildinFunctions.get(y);
100879
- w.realName = x;
100879
+ D.realName = x;
100880
100880
  let B = N?.[N.length - 1].index;
100881
- if (B = B !== void 0 ? B + 1 : 0, w.index = B, e.index = B, N?.push(w), e.isExport) {
100882
- w.originalName = y;
100883
- const { line: D = 0 } = this._endExport;
100884
- i > D && (this._endExport = { line: i, name: x, index: w.index }), w.isAddToBuiltIn = !0, this._exportFunctions.push(w);
100881
+ if (B = B !== void 0 ? B + 1 : 0, D.index = B, e.index = B, N?.push(D), e.isExport) {
100882
+ D.originalName = y;
100883
+ const { line: w = 0 } = this._endExport;
100884
+ i > w && (this._endExport = { line: i, name: x, index: D.index }), D.isAddToBuiltIn = !0, this._exportFunctions.push(D);
100885
100885
  }
100886
100886
  return;
100887
100887
  }
100888
100888
  let q = this._functions.get(x);
100889
100889
  if (q) {
100890
100890
  const N = q.length;
100891
- w.index = N, e.index = N, this._verifyFuncRepeat(q, w, r), q.push(w), this._overloadsFuncs.push({
100891
+ D.index = N, e.index = N, this._verifyFuncRepeat(q, D, r), q.push(D), this._overloadsFuncs.push({
100892
100892
  name: x,
100893
100893
  index: N,
100894
100894
  line: t.lineNumber,
@@ -100896,28 +100896,28 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
100896
100896
  endColumn: t.column + x.length
100897
100897
  });
100898
100898
  } else
100899
- q = [w];
100899
+ q = [D];
100900
100900
  if (e.isExport) {
100901
100901
  const { line: N = 0 } = this._endExport;
100902
- i > N && (this._endExport = { line: i, name: x, index: w.index }), this._exportFunctions.push(w);
100902
+ i > N && (this._endExport = { line: i, name: x, index: D.index }), this._exportFunctions.push(D);
100903
100903
  }
100904
100904
  this._functions.set(x, q);
100905
100905
  }
100906
100906
  _setMethod(e, t) {
100907
100907
  const { name: r, returnedTypes: i, params: s, desc: o, paramsDesc: p, returnsDesc: M } = e, d = s[0].type, A = [], g = [];
100908
100908
  for (const N of s.slice(1)) {
100909
- const { type: B, name: D, defaultValue: $ } = N;
100909
+ const { type: B, name: w, defaultValue: $ } = N;
100910
100910
  A.push({
100911
- name: D,
100912
- desc: p?.[D],
100911
+ name: w,
100912
+ desc: p?.[w],
100913
100913
  required: !$,
100914
100914
  allowedTypeIDs: this._getAllowTypes(B),
100915
100915
  displayType: B
100916
- }), g.push(`${B} ${D}`);
100916
+ }), g.push(`${B} ${w}`);
100917
100917
  }
100918
100918
  const v = i.length > 1 || i.isBrackethesized ? `[${i.join(", ")}]` : i.toString(), x = this._getMethodTypeName(d), T = `${x}.${r}`;
100919
100919
  e.typeName = x;
100920
- const w = {
100920
+ const D = {
100921
100921
  name: r,
100922
100922
  args: A,
100923
100923
  desc: o,
@@ -100935,16 +100935,16 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
100935
100935
  if (this._buildinMethods.has(T)) {
100936
100936
  const N = this._buildinMethods.get(T);
100937
100937
  let B = N?.[N.length - 1].index;
100938
- B = B !== void 0 ? B + 1 : 0, w.index = B, e.index = B, N?.push(w), e.isExport && (w.isAddToBuiltIn = !0, this._exportMethods.push(w));
100938
+ B = B !== void 0 ? B + 1 : 0, D.index = B, e.index = B, N?.push(D), e.isExport && (D.isAddToBuiltIn = !0, this._exportMethods.push(D));
100939
100939
  return;
100940
100940
  }
100941
100941
  let y = this._methods.get(T), q = this._functions.get(r);
100942
100942
  if (q) {
100943
100943
  const N = q.filter(($) => ($.methodName = T, !$.isImport)).length, B = y?.filter(($) => !$.isImport)?.length || 0;
100944
- let D = N;
100945
- N > B && (D = N - 1), w.index = D, e.index = D;
100944
+ let w = N;
100945
+ N > B && (w = N - 1), D.index = w, e.index = w;
100946
100946
  }
100947
- y ? y.push(w) : y = [w], e.isExport && this._exportMethods.push(w), this._methods.set(T, y);
100947
+ y ? y.push(D) : y = [D], e.isExport && this._exportMethods.push(D), this._methods.set(T, y);
100948
100948
  }
100949
100949
  _verifyFuncRepeat(e, t, r) {
100950
100950
  const { args: i } = t;
@@ -100983,12 +100983,12 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
100983
100983
  if (T)
100984
100984
  if (T.length <= 1) {
100985
100985
  s.baseInfo = T[0], this._hasMemberIndexVerify(T[0], A, s), r = T[0].returnedTypes;
100986
- const { hasErr: w } = this._checkArgs(M, T[0].args || [], d, A, r[0]);
100987
- if (w)
100986
+ const { hasErr: D } = this._checkArgs(M, T[0].args || [], d, A, r[0]);
100987
+ if (D)
100988
100988
  return [Q.UNDETERMINED];
100989
100989
  } else {
100990
- const w = this._overloadsFuncGetTypes(T, M, A, void 0, s);
100991
- r = this._returnedTypesParse(w);
100990
+ const D = this._overloadsFuncGetTypes(T, M, A, void 0, s);
100991
+ r = this._returnedTypesParse(D);
100992
100992
  }
100993
100993
  else
100994
100994
  r = this._getOtherNamesMethodType(d, r, A, M, s);
@@ -101062,25 +101062,25 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101062
101062
  if (v) {
101063
101063
  if (v === Q.UNDETERMINED) {
101064
101064
  t = [Q.UNDETERMINED], t.isUnknown = !0;
101065
- const T = this._functions.get(A), w = T?.[0]?.methodName;
101066
- return s.baseInfo = T?.[0], T && w ? (!s.isType && i.params.unshift({ ...d, name: d.originName || d.name }), s.selfArg = d, s.hasAddSelf = !0, s.funcName = A, s.selfType = this._getSelfType(T), this._overloadsFuncGetTypes(T, i, r, d, s), t) : (s.targetVal = { ...d, funcName: A }, i?.params?.length && this._errorHandle(V(W0.undeterminedTypeMethodErr, { name: M }), r), t);
101065
+ const T = this._functions.get(A), D = T?.[0]?.methodName;
101066
+ return s.baseInfo = T?.[0], T && D ? (!s.isType && i.params.unshift({ ...d, name: d.originName || d.name }), s.selfArg = d, s.hasAddSelf = !0, s.funcName = A, s.selfType = this._getSelfType(T), this._overloadsFuncGetTypes(T, i, r, d, s), t) : (s.targetVal = { ...d, funcName: A }, i?.params?.length && this._errorHandle(V(W0.undeterminedTypeMethodErr, { name: M }), r), t);
101067
101067
  }
101068
101068
  const x = this._getOriginMethodName(v, A);
101069
101069
  s.varScope = d.scope, t = this._expandMethodHandle(x, r, i, d, M, s);
101070
101070
  } else {
101071
- let x = "", T = "", w = "";
101071
+ let x = "", T = "", D = "";
101072
101072
  for (const y of o.slice(0, p)) {
101073
101073
  x ? T = this._getOriginMethodName(x, y) : T = T ? `${T}.${y}` : y;
101074
101074
  const q = this._verifyName(T);
101075
101075
  if (q?.type) {
101076
- if (x = q.type, w = "", q.title?.startsWith("built-in variable")) {
101076
+ if (x = q.type, D = "", q.title?.startsWith("built-in variable")) {
101077
101077
  const N = this._getOriginMethodName(x, A);
101078
101078
  t = this._expandMethodHandle(N, r, i, { ...q, isBuiltInVar: !0 }, M, s);
101079
101079
  }
101080
101080
  } else
101081
- this._buildinTypes.get(T) && (w = V(W0.methodNotExistErr, { name: T, methodName: A }));
101081
+ this._buildinTypes.get(T) && (D = V(W0.methodNotExistErr, { name: T, methodName: A }));
101082
101082
  }
101083
- w && this._errorHandle(w, r);
101083
+ D && this._errorHandle(D, r);
101084
101084
  }
101085
101085
  return t;
101086
101086
  }
@@ -101105,8 +101105,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101105
101105
  o.baseInfo = A;
101106
101106
  const v = this._functions.get(g);
101107
101107
  if (v) {
101108
- const T = v.length - 1, w = T <= (A.index || 0) ? T : A.index;
101109
- o.selfArg = v[w || 0].args?.[0], o.selfArg.isBuiltInVar = i?.isBuiltInVar, o.selfArg.isBuiltInConst = i?.isBuiltInConst, o.baseInfo = v;
101108
+ const T = v.length - 1, D = T <= (A.index || 0) ? T : A.index;
101109
+ o.selfArg = v[D || 0].args?.[0], o.selfArg.isBuiltInVar = i?.isBuiltInVar, o.selfArg.isBuiltInConst = i?.isBuiltInConst, o.baseInfo = v;
101110
101110
  }
101111
101111
  o.funcName = g, o.index = A.index, this._hasMemberIndexVerify(A, t, o), p = A.returnedTypes;
101112
101112
  const { hasErr: x } = this._checkArgs(r, A.args || [], e, t, p?.[0] || "");
@@ -101145,8 +101145,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101145
101145
  typeE: T.type,
101146
101146
  typeR: v[0]
101147
101147
  }), i);
101148
- const { hasErr: w, types: y } = this._checkArgs(t, g, r, i, x, T);
101149
- if (w)
101148
+ const { hasErr: D, types: y } = this._checkArgs(t, g, r, i, x, T);
101149
+ if (D)
101150
101150
  return y?.length ? y : [Q.UNDETERMINED];
101151
101151
  if (M = y.length && y || this._returnedTypesParse(d), M.length > 1 || M.isBrackethesized) return M;
101152
101152
  o?.length === 1 ? M = [this._typeReplace(x, o[0])] : o?.length === 2 && (M = [`${Q.MAP}<${o[0]},${o[1]}>`]), M = this._returnTypesOtherHandle(T, x, M, r);
@@ -101167,8 +101167,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101167
101167
  _overloadsFuncGetTypes(e, t, r, i, s) {
101168
101168
  let o = [], p = [], M = [], d = 0, A = 0;
101169
101169
  for (const [x, T] of e.entries()) {
101170
- const { args: w, returnedTypes: y, name: q, thisType: N } = T, B = i || t.params[0] || t[w[0].name], { errMsg: D, warnMsg: $, matchCount: R } = this._overloadsCheckArgs(t, w, q, r, B);
101171
- if (R > A && (d = x, A = R), B && !this._checkMethodThisType(N, B.type) && D.unshift({
101170
+ const { args: D, returnedTypes: y, name: q, thisType: N } = T, B = i || t.params[0] || t[D[0].name], { errMsg: w, warnMsg: $, matchCount: R } = this._overloadsCheckArgs(t, D, q, r, B);
101171
+ if (R > A && (d = x, A = R), B && !this._checkMethodThisType(N, B.type) && w.unshift({
101172
101172
  msg: V(W0.typeMismatch, {
101173
101173
  operator: q,
101174
101174
  index: B.name || "id",
@@ -101177,15 +101177,15 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101177
101177
  }),
101178
101178
  ctx: r
101179
101179
  }), x === 0)
101180
- p = D, M = $, D.length || (o = y.map((L) => L === `${Q.ARRAY}<>` ? `array<${B.type}>` : L));
101181
- else if (D.length)
101182
- (p[0]?.isLenErr && !D[0]?.isLenErr || p.length > D.length) && (p = D, M = $, d = x);
101180
+ p = w, M = $, w.length || (o = y.map((L) => L === `${Q.ARRAY}<>` ? `array<${B.type}>` : L));
101181
+ else if (w.length)
101182
+ (p[0]?.isLenErr && !w[0]?.isLenErr || p.length > w.length) && (p = w, M = $, d = x);
101183
101183
  else if (!o.length)
101184
- o = y.map((L) => L === `${Q.ARRAY}<>` ? `array<${B.type}>` : L), p = D, M = $, d = x;
101184
+ o = y.map((L) => L === `${Q.ARRAY}<>` ? `array<${B.type}>` : L), p = w, M = $, d = x;
101185
101185
  else
101186
101186
  for (const [L, P] of o.entries()) {
101187
101187
  const Z = y[L];
101188
- this._priorityComparison(P, y[L]) || (Z === `${Q.ARRAY}<>` ? o[L] = `array<${B.type}>` : o[L] = Z, p = D, M = $, d = L);
101188
+ this._priorityComparison(P, y[L]) || (Z === `${Q.ARRAY}<>` ? o[L] = `array<${B.type}>` : o[L] = Z, p = w, M = $, d = L);
101189
101189
  }
101190
101190
  }
101191
101191
  for (const x of p)
@@ -101200,11 +101200,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101200
101200
  startColumn: g.start.column + 1,
101201
101201
  endColumn: g.start.column + v.length
101202
101202
  }), s) {
101203
- const x = e[d], { thisType: T, name: w, index: y, isUser: q, title: N, realName: B } = x;
101203
+ const x = e[d], { thisType: T, name: D, index: y, isUser: q, title: N, realName: B } = x;
101204
101204
  if (this._hasMemberIndexVerify(x, r, s), N?.startsWith("built-in") && (s.isBuiltIn = !0), s.index = typeof y == "number" ? y : d, s.baseInfo = x, T) {
101205
- const D = this._functions.get(w);
101206
- D && (s.selfArg = D[s.index || 0].args?.[0], s.selfArg.isBuiltInVar = i?.isBuiltInVar, s.selfArg.isBuiltInConst = i?.isBuiltInConst, s.baseInfo = D), s.funcName = w;
101207
- } else q && (s.index = y || 0, s.isBuiltInFunc = !1, s.funcName = w, s.realName = B);
101205
+ const w = this._functions.get(D);
101206
+ w && (s.selfArg = w[s.index || 0].args?.[0], s.selfArg.isBuiltInVar = i?.isBuiltInVar, s.selfArg.isBuiltInConst = i?.isBuiltInConst, s.baseInfo = w), s.funcName = D;
101207
+ } else q && (s.index = y || 0, s.isBuiltInFunc = !1, s.funcName = D, s.realName = B);
101208
101208
  }
101209
101209
  return this._funcArgsAddOriginName(t, e[d].args, v), o.length ? o : [Q.UNDETERMINED];
101210
101210
  }
@@ -101231,7 +101231,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101231
101231
  delete o.params;
101232
101232
  const M = Object.keys(o).length + p.length, d = t.length, A = [], g = [];
101233
101233
  let v = 0;
101234
- M > d && (t.some((w) => ["arg0, arg1, ...", "number0, number1, ..."].includes(w.name)) || A.push({
101234
+ M > d && (t.some((D) => ["arg0, arg1, ...", "number0, number1, ..."].includes(D.name)) || A.push({
101235
101235
  msg: V(W0.argsLenErr, {
101236
101236
  name: r,
101237
101237
  lenA: M,
@@ -101240,35 +101240,35 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101240
101240
  isLenErr: !0,
101241
101241
  ctx: i
101242
101242
  }));
101243
- for (const [T, w] of t.entries()) {
101244
- let y = o[w.name];
101243
+ for (const [T, D] of t.entries()) {
101244
+ let y = o[D.name];
101245
101245
  if (T < p.length && (y && A.push({
101246
- msg: V(W0.moreSameArgErr, { arg: w.name }),
101246
+ msg: V(W0.moreSameArgErr, { arg: D.name }),
101247
101247
  ctx: i
101248
101248
  }), y = p[T]), !y)
101249
- w.required && A.push({
101249
+ D.required && A.push({
101250
101250
  msg: V(W0.requiredParamErr, {
101251
101251
  name: r,
101252
- argName: w.name
101252
+ argName: D.name
101253
101253
  }),
101254
101254
  ctx: i
101255
101255
  });
101256
101256
  else {
101257
101257
  y.index = T;
101258
- const q = this._checkArg(y, w, r, s, y.ctx, !0, g);
101258
+ const q = this._checkArg(y, D, r, s, y.ctx, !0, g);
101259
101259
  q ? A.push({
101260
101260
  msg: q,
101261
101261
  ctx: y.ctx
101262
- }) : v++, delete o[w.name];
101262
+ }) : v++, delete o[D.name];
101263
101263
  }
101264
- if (["arg0, arg1, ...", "number0, number1, ..."].includes(w.name) && p.length > T + 1) {
101264
+ if (["arg0, arg1, ...", "number0, number1, ..."].includes(D.name) && p.length > T + 1) {
101265
101265
  const q = p.slice(T + 1);
101266
101266
  let N = p[T];
101267
101267
  for (const B of q) {
101268
101268
  N.type === `${Q.SIMPLE} ${Q.NA}` && (N = B);
101269
- const D = B.type !== `${Q.SIMPLE} ${Q.NA}` ? this._checkArg(B, w, r, N, B.ctx, !0, g) : "";
101270
- D && A.push({
101271
- msg: D,
101269
+ const w = B.type !== `${Q.SIMPLE} ${Q.NA}` ? this._checkArg(B, D, r, N, B.ctx, !0, g) : "";
101270
+ w && A.push({
101271
+ msg: w,
101272
101272
  ctx: B.ctx
101273
101273
  });
101274
101274
  }
@@ -101310,7 +101310,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101310
101310
  delete p.params;
101311
101311
  const d = Object.keys(p).length + M.length, A = t.length;
101312
101312
  let g = !1, v = [];
101313
- if (d > A && !t.some((w) => ["arg0, arg1, ...", "number0, number1, ..."].includes(w.name)))
101313
+ if (d > A && !t.some((D) => ["arg0, arg1, ...", "number0, number1, ..."].includes(D.name)))
101314
101314
  return this._errorHandle(V(W0.argsLenErr, {
101315
101315
  name: r,
101316
101316
  lenA: d,
@@ -101319,19 +101319,19 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101319
101319
  hasErr: g,
101320
101320
  types: v
101321
101321
  };
101322
- for (const [T, w] of t.entries()) {
101323
- let y = p[w.name];
101324
- if (T < M.length && (y && this._errorHandle(V(W0.moreSameArgErr, { arg: w.name }), i), y = M[T], y.originName = w.name), !y)
101325
- w.required && (this._errorHandle(V(W0.requiredParamErr, {
101322
+ for (const [T, D] of t.entries()) {
101323
+ let y = p[D.name];
101324
+ if (T < M.length && (y && this._errorHandle(V(W0.moreSameArgErr, { arg: D.name }), i), y = M[T], y.originName = D.name), !y)
101325
+ D.required && (this._errorHandle(V(W0.requiredParamErr, {
101326
101326
  name: r,
101327
- argName: w.name
101327
+ argName: D.name
101328
101328
  }), i), g = !0);
101329
101329
  else {
101330
101330
  y.index = T;
101331
- const q = this._checkArg(y, w, r, o, y.ctx);
101331
+ const q = this._checkArg(y, D, r, o, y.ctx);
101332
101332
  if (q)
101333
101333
  this._errorHandle(q, y.ctx), g = !0;
101334
- else if (r.startsWith("request.") && w.name === "expression")
101334
+ else if (r.startsWith("request.") && D.name === "expression")
101335
101335
  if (y.ruleType === D0.Brackethesized)
101336
101336
  v = y.exprs.map((N) => this._typeReplace(s, N.type));
101337
101337
  else if ((y.types || y.returnedTypes)?.length)
@@ -101340,11 +101340,11 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101340
101340
  const N = this._typeReplace(s, y.type);
101341
101341
  v.push(N);
101342
101342
  }
101343
- else if (r === "input.enum" && w.name === "defval") {
101343
+ else if (r === "input.enum" && D.name === "defval") {
101344
101344
  const N = this._removePrefix(y.type);
101345
101345
  v.push(`${Q.INPUT} ${N}`);
101346
101346
  }
101347
- delete p[w.name];
101347
+ delete p[D.name];
101348
101348
  }
101349
101349
  }
101350
101350
  const x = Object.keys(p);
@@ -101377,13 +101377,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101377
101377
  _checkArg(e, t, r, i, s, o, p) {
101378
101378
  const { ruleType: M, exprs: d, name: A } = e;
101379
101379
  let g = e.type;
101380
- M === D0.Brackethesized && (g = `[${d.map((w) => w.type).join(", ")}]`);
101380
+ M === D0.Brackethesized && (g = `[${d.map((D) => D.type).join(", ")}]`);
101381
101381
  const { allowedTypeIDs: v = [], displayType: x, name: T } = t;
101382
101382
  if (g === `${Q.SIMPLE} ${Q.NA}`) {
101383
- const w = this._removePrefix(x);
101384
- let y = rx[w];
101383
+ const D = this._removePrefix(x);
101384
+ let y = rx[D];
101385
101385
  if (y) {
101386
- if (w === "plot_display") {
101386
+ if (D === "plot_display") {
101387
101387
  const q = y.split("|");
101388
101388
  r.startsWith(`${Q.INPUT}.`) || r === Q.INPUT ? y = q[0] : y = q[1];
101389
101389
  }
@@ -101399,8 +101399,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101399
101399
  return W0.inputDefvalErr;
101400
101400
  if (!(this._checkMethodThisType(v, this._arrayTypeConvert(g)) && !(["input.source", "input.enum"].includes(r) && T === "defval"))) {
101401
101401
  if (r === "str.tostring" && T === "value") {
101402
- const w = this._removePrefix(g);
101403
- if (this._enums.get(w)) return;
101402
+ const D = this._removePrefix(g);
101403
+ if (this._enums.get(D)) return;
101404
101404
  }
101405
101405
  switch (x) {
101406
101406
  case "tuple of const string values: [val1, val2, ...]":
@@ -101423,13 +101423,13 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101423
101423
  break;
101424
101424
  case "<matrix_type>":
101425
101425
  case "<array_type>":
101426
- const w = this._getArrayType(r) || "";
101427
- if (!g.endsWith(w) && !(g.endsWith(Q.INT) && w === Q.FLOAT))
101426
+ const D = this._getArrayType(r) || "";
101427
+ if (!g.endsWith(D) && !(g.endsWith(Q.INT) && D === Q.FLOAT))
101428
101428
  return V(W0.typeMismatch, {
101429
101429
  operator: r,
101430
101430
  index: T,
101431
101431
  typeE: g,
101432
- typeR: this._typeAddSeries(w)
101432
+ typeR: this._typeAddSeries(D)
101433
101433
  });
101434
101434
  break;
101435
101435
  case "series int/float/color/string/label/line/box/table/linefill/polyline/array<>/matrix<>/map<>":
@@ -101583,8 +101583,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101583
101583
  break;
101584
101584
  case "const enum":
101585
101585
  case "series enum":
101586
- const D = this._removePrefix(g);
101587
- if (!this._enums.has(D))
101586
+ const w = this._removePrefix(g);
101587
+ if (!this._enums.has(w))
101588
101588
  return V(W0.typeMismatch, {
101589
101589
  operator: r,
101590
101590
  index: T,
@@ -101674,7 +101674,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101674
101674
  if (i) return [i];
101675
101675
  switch (r) {
101676
101676
  case D0.Brackethesized:
101677
- const g = p.map((D) => D.type);
101677
+ const g = p.map((w) => w.type);
101678
101678
  return g.isBrackethesized = !0, g;
101679
101679
  case D0.VarBlockStmt:
101680
101680
  case D0.DeclareAssign:
@@ -101683,43 +101683,43 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
101683
101683
  if (!this._isNeedCalc && (!this._isInFunc || this._isInFunc && this._isEndExpr === !1)) return [Q.UNDETERMINED];
101684
101684
  const v = [...t.cases];
101685
101685
  t.defaultCase && v.push(t.defaultCase);
101686
- let x = v[0]?.returnedTypes || [], T = x.length <= 1 ? x[0] : `[${x.join(", ")}]`, w = null;
101687
- for (const D of v.slice(1)) {
101688
- const $ = D.returnedTypes || [Q.UNDETERMINED];
101686
+ let x = v[0]?.returnedTypes || [], T = x.length <= 1 ? x[0] : `[${x.join(", ")}]`, D = null;
101687
+ for (const w of v.slice(1)) {
101688
+ const $ = w.returnedTypes || [Q.UNDETERMINED];
101689
101689
  T += $.length <= 1 ? `; ${$[0]}` : `; [${$.join(", ")}]`;
101690
- const R = Array.isArray(D.block) ? D.block.slice(-1)[0] : D.block;
101690
+ const R = Array.isArray(w.block) ? w.block.slice(-1)[0] : w.block;
101691
101691
  if (R)
101692
- if ($.length !== x.length) w = R.ctx;
101692
+ if ($.length !== x.length) D = R.ctx;
101693
101693
  else
101694
101694
  for (const [L, P] of x.entries())
101695
101695
  if (this._compareType($[L], P))
101696
101696
  ($[L].includes(Q.FLOAT) && !P.includes(Q.FLOAT) || x[L] === `${Q.SIMPLE} ${Q.NA}` || x[L] === Q.UNDETERMINED && $[L] !== `${Q.SIMPLE} ${Q.NA}`) && (x[L] = $[L]);
101697
101697
  else {
101698
- w = R.ctx;
101698
+ D = R.ctx;
101699
101699
  break;
101700
101700
  }
101701
101701
  }
101702
- return w ? (this._errorHandle(V(W0.ifOrSwitchTypeErr, {
101702
+ return D ? (this._errorHandle(V(W0.ifOrSwitchTypeErr, {
101703
101703
  keyword: "switch",
101704
101704
  types: T
101705
- }), w), x = x.map(() => Q.UNDETERMINED)) : this._ifOrSwitchQualifiedTypeVerify(t, x[0]), t.returnedTypes = x, x;
101705
+ }), D), x = x.map(() => Q.UNDETERMINED)) : this._ifOrSwitchQualifiedTypeVerify(t, x[0]), t.returnedTypes = x, x;
101706
101706
  case D0.IfStatement:
101707
101707
  if (!this._isNeedCalc && (!this._isInFunc || this._isInFunc && this._isEndExpr === !1)) return [Q.UNDETERMINED];
101708
- if (!d.filter((D) => D && D.length).length) return [Q.UNDETERMINED];
101708
+ if (!d.filter((w) => w && w.length).length) return [Q.UNDETERMINED];
101709
101709
  let y = d[0] || [], q = y.length <= 1 ? y[0] : `[${y.join(", ")}]`, N = 0, B = 0;
101710
- for (const D of d.slice(1))
101711
- if (D)
101712
- if (N++, q += D.length <= 1 ? `; ${D[0]}` : `; [${D.join(", ")}]`, D.length !== y.length) B = N;
101710
+ for (const w of d.slice(1))
101711
+ if (w)
101712
+ if (N++, q += w.length <= 1 ? `; ${w[0]}` : `; [${w.join(", ")}]`, w.length !== y.length) B = N;
101713
101713
  else
101714
101714
  for (const [$, R] of y.entries())
101715
- if (this._compareType(D[$], R))
101716
- (D[$].includes(Q.FLOAT) && !R.includes(Q.FLOAT) || y[$] === `${Q.SIMPLE} ${Q.NA}`) && (y[$] = D[$]);
101715
+ if (this._compareType(w[$], R))
101716
+ (w[$].includes(Q.FLOAT) && !R.includes(Q.FLOAT) || y[$] === `${Q.SIMPLE} ${Q.NA}`) && (y[$] = w[$]);
101717
101717
  else {
101718
101718
  B = N;
101719
101719
  break;
101720
101720
  }
101721
101721
  if (B) {
101722
- const D = A[B].slice(-1)[0], $ = Array.isArray(D) ? D.slice(-1)[0] : D;
101722
+ const w = A[B].slice(-1)[0], $ = Array.isArray(w) ? w.slice(-1)[0] : w;
101723
101723
  this._errorHandle(V(W0.ifOrSwitchTypeErr, {
101724
101724
  keyword: "if",
101725
101725
  types: q
@@ -102031,71 +102031,71 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
102031
102031
  this._isInLoop = !0;
102032
102032
  const v = `$start${this._count + 1}`;
102033
102033
  g || (this._count += 1);
102034
- const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, w = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`;
102034
+ const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, D = `$$toCount${p.start.tokenIndex}`, y = `_$sign${p.start.tokenIndex}`;
102035
102035
  t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
102036
102036
  const q = this._parserSingleExpression(M);
102037
102037
  let N = this._parserSingleExpression(d);
102038
102038
  const B = A ? this._parserSingleExpression(A) : "";
102039
102039
  N = d?.type?.endsWith(" int") || !B || d?.type?.endsWith(" int") ? `Math.round(${N})` : N;
102040
- const D = this._parserBlockLine(i, t, !1, !0);
102040
+ const w = this._parserBlockLine(i, t, !1, !0);
102041
102041
  Or.includes(s) && (s = `$${s}`);
102042
102042
  const $ = `var ${v} = Date.now()`;
102043
102043
  let L = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${N}) * ${y} >= 0; ${s}-=(${B || "1"}) * ${y}){
102044
- if (Date.now() - ${v} > 500) {
102045
- throw new Error('${W0.loopRuntimeErr}-${p.start.line}')
102044
+ if (Date.now() - ${v} > 5000) {
102045
+ throw new Error('for...to:${W0.loopRuntimeErr}->${p.start.line}')
102046
102046
  }
102047
102047
  ${x}++
102048
- ${D}
102048
+ ${w}
102049
102049
  }`;
102050
102050
  return L = `${$};
102051
102051
  ${g ? "" : `var ${x} = 0`};
102052
- let ${w} = ${N};
102053
- const ${y} = (${q})>${w} ? 1 : -1;
102052
+ let ${D} = ${N};
102053
+ const ${y} = (${q})>${D} ? 1 : -1;
102054
102054
  ${L}`, t || this._codesCol[this._blockCount].push({
102055
102055
  code: L,
102056
102056
  depends: this._getDepends(T)
102057
102057
  }), this._isInLoop = g, t ? this._functionalProcess(L, o) : L;
102058
102058
  }
102059
102059
  _parserForInStatement(e, t = !1) {
102060
- const { names: r, block: i, array: s, type: o } = e, p = this._isInLoop;
102060
+ const { names: r, block: i, array: s, type: o, ctx: p } = e, M = this._isInLoop;
102061
102061
  this._isInLoop = !0;
102062
- const M = `$start${this._count + 1}`;
102063
- p || (this._count += 1);
102064
- const d = `$$count${this._count}`, A = this._parserBlockLine(i, t, !1, !0);
102065
- let g = "", [v, x] = r;
102066
- Or.includes(v) && (v = `$${v}`);
102067
- const T = `var ${M} = Date.now()`, w = this._parserSingleExpression(s);
102062
+ const d = `$start${this._count + 1}`;
102063
+ M || (this._count += 1);
102064
+ const A = `$$count${this._count}`, g = this._parserBlockLine(i, t, !1, !0);
102065
+ let v = "", [x, T] = r;
102066
+ Or.includes(x) && (x = `$${x}`);
102067
+ const D = `var ${d} = Date.now()`, y = this._parserSingleExpression(s);
102068
102068
  if (r.length === 1)
102069
- g = `for (let ${v} of (${w}?._value || [])) {
102070
- if ((${w}).isMatrix) {
102071
- ${v} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${v}, (${w}).typeName)
102069
+ v = `for (let ${x} of (${y}?._value || [])) {
102070
+ if ((${y}).isMatrix) {
102071
+ ${x} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${x}, (${y}).typeName)
102072
102072
  }
102073
- if (Date.now() - ${M} > 500) {
102074
- throw new Error('${W0.loopRuntimeErr}')
102073
+ if (Date.now() - ${d} > 5000) {
102074
+ throw new Error('for...in:${W0.loopRuntimeErr}->${p?.start?.line}行')
102075
102075
  }
102076
- ${d}++
102077
- ${A}
102076
+ ${A}++
102077
+ ${g}
102078
102078
  }`;
102079
102079
  else {
102080
- Or.includes(x) && (x = `$${x}`);
102081
- const y = `$$value${this._count}`;
102082
- g = `const ${y} = (${w})?.isMap ? Object.entries((${w})._value) : ((${w})?._value || []).entries()
102083
- for (let [${v},${x}] of ${y}) {
102084
- if ((${w}).isMatrix) {
102085
- ${x} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${x}, (${w}).typeName)
102086
- } else if ((${w})._isNumberKey) {
102087
- ${v} = Number(${v})
102080
+ Or.includes(T) && (T = `$${T}`);
102081
+ const q = `$$value${this._count}`;
102082
+ v = `const ${q} = (${y})?.isMap ? Object.entries((${y})._value) : ((${y})?._value || []).entries()
102083
+ for (let [${x},${T}] of ${q}) {
102084
+ if ((${y}).isMatrix) {
102085
+ ${T} = ${this._prefixNameFunc}.array.createPseudoArrayWithArray(${T}, (${y}).typeName)
102086
+ } else if ((${y})._isNumberKey) {
102087
+ ${x} = Number(${x})
102088
102088
  }
102089
- if (Date.now() - ${M} > 500) {
102090
- throw new Error('${W0.loopRuntimeErr}')
102089
+ if (Date.now() - ${d} > 5000) {
102090
+ throw new Error('for...in:${W0.loopRuntimeErr}->${p?.start?.line}行')
102091
102091
  }
102092
- ${d}++
102093
- ${A}
102092
+ ${A}++
102093
+ ${g}
102094
102094
  }`;
102095
102095
  }
102096
- return this._isInLoop = p, g = `${T};
102097
- ${p ? "" : `var ${d} = 0`}
102098
- ${g}`, t ? this._functionalProcess(g, o) : g;
102096
+ return this._isInLoop = M, v = `${D};
102097
+ ${M ? "" : `var ${A} = 0`}
102098
+ ${v}`, t ? this._functionalProcess(v, o) : v;
102099
102099
  }
102100
102100
  _parserAgainAssign(e) {
102101
102101
  const { operator: t, name: r, value: i } = e, { varPos: s, declare: o } = r, p = `$againAssign${this._blockCount}`;
@@ -102116,11 +102116,11 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
102116
102116
  }
102117
102117
  t === "-=" ? x = `${M} = ${this._prefixNameVar}.sub(${M}, ${A})` : t === "+=" ? x = `${M} = ${this._prefixNameVar}.add(${M}, ${A})` : t === ":=" && (v = `${v};
102118
102118
  `);
102119
- const w = `${v}${x}${d}`;
102119
+ const D = `${v}${x}${d}`;
102120
102120
  return this._codesCol[this._blockCount].push({
102121
- code: w,
102121
+ code: D,
102122
102122
  depends: this._getDepends(p)
102123
- }), w;
102123
+ }), D;
102124
102124
  }
102125
102125
  _parserSwitchStatement(e, t = !1) {
102126
102126
  const { condition: r, cases: i, defaultCase: s, type: o } = e;
@@ -102160,27 +102160,27 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
102160
102160
  break;`;
102161
102161
  }
102162
102162
  _parserWhileStatement(e, t = !1) {
102163
- const { condition: r, block: i, type: s } = e;
102164
- let o = `$while${this._blockCount}`;
102165
- t || (this._dependsObj[o] = /* @__PURE__ */ new Map());
102166
- const p = this._isInLoop;
102163
+ const { condition: r, block: i, type: s, ctx: o } = e;
102164
+ let p = `$while${this._blockCount}`;
102165
+ t || (this._dependsObj[p] = /* @__PURE__ */ new Map());
102166
+ const M = this._isInLoop;
102167
102167
  this._isInLoop = !0;
102168
- const M = `$start${this._count + 1}`;
102169
- p || (this._count += 1);
102170
- const d = `var ${M} = Date.now()`, A = `$$count${this._count}`;
102171
- let g = `while (${this._parserSingleExpression(r)}) {
102172
- if (Date.now() - ${M} > 500) {
102173
- throw new Error('while: ${W0.loopRuntimeErr} ->' + ${A})
102168
+ const d = `$start${this._count + 1}`;
102169
+ M || (this._count += 1);
102170
+ const A = `var ${d} = Date.now()`, g = `$$count${this._count}`;
102171
+ let v = `while (${this._parserSingleExpression(r)}) {
102172
+ if (Date.now() - ${d} > 5000) {
102173
+ throw new Error('while:${W0.loopRuntimeErr}->${o?.start?.line}行')
102174
102174
  }
102175
- ${A}++
102175
+ ${g}++
102176
102176
  ${this._parserBlockLine(i, t, !1, !0)}
102177
102177
  }`;
102178
- return g = `${d};
102179
- ${p ? "" : `var ${A} = 0`}
102180
- ${g}`, t || this._codesCol[this._blockCount].push({
102181
- code: g,
102182
- depends: this._getDepends(o)
102183
- }), this._isInLoop = p, t ? this._functionalProcess(g, s) : g;
102178
+ return v = `${A};
102179
+ ${M ? "" : `var ${g} = 0`}
102180
+ ${v}`, t || this._codesCol[this._blockCount].push({
102181
+ code: v,
102182
+ depends: this._getDepends(p)
102183
+ }), this._isInLoop = M, t ? this._functionalProcess(v, s) : v;
102184
102184
  }
102185
102185
  _parserIfStatement(e, t = !1) {
102186
102186
  const { condition: r, block: i, type: s } = e;
@@ -102445,9 +102445,9 @@ ${this._prefixNameVar}.setVarValue("${M}", ${y}, ${M}, "${o}")`;
102445
102445
  return T[g] = `${this._prefixNameVar}.setCacheData("${g}", ${p})`, this._memberIndexList[0] = T, `${this._prefixNameVar}.getCacheData("${g}", ${o}, ${p})`;
102446
102446
  }
102447
102447
  if (g.includes(".")) {
102448
- const T = g.split(".")[0], w = v[T];
102449
- if (w)
102450
- return this._getUserVarMemberIndexs(w, g, A, o, r);
102448
+ const T = g.split(".")[0], D = v[T];
102449
+ if (D)
102450
+ return this._getUserVarMemberIndexs(D, g, A, o, r);
102451
102451
  }
102452
102452
  A--;
102453
102453
  }
@@ -102489,8 +102489,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
102489
102489
  continue;
102490
102490
  }
102491
102491
  let v = "";
102492
- const { column: x, line: T } = g?.ctx?.start || {}, w = `${T}_${x}`;
102493
- let y = this._isInFunc ? `$posStr + "__${w}"` : `"${this._scriptType === Er.library ? `export_${this._libTitle}_` : ""}${w}"`;
102492
+ const { column: x, line: T } = g?.ctx?.start || {}, D = `${T}_${x}`;
102493
+ let y = this._isInFunc ? `$posStr + "__${D}"` : `"${this._scriptType === Er.library ? `export_${this._libTitle}_` : ""}${D}"`;
102494
102494
  y = this._isInLoop && !this._isExperssion ? `"($" + $$count${this._count} + "_$)" + ${y}` : y, g.selfArg ? (v = this._parserMethodElement(g, y, A.join(".")), A = []) : v = this._parserMethodElement(g, y, ""), A.push(v);
102495
102495
  }
102496
102496
  if (e.expr && A.unshift(`(${this._parserSingleExpression(e.expr)})`), e.isBuiltIn) {
@@ -102581,26 +102581,26 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
102581
102581
  let g = [], v;
102582
102582
  const x = this._argChangeMap.get(o), T = (N, B) => {
102583
102583
  o.startsWith(`${this._prefixNameFunc}.ta.`) && B === "length" && (N.type.startsWith(Q.SERIES) || N.type === Q.UNDETERMINED) && d.push("isSeriesLen: true");
102584
- const D = p && N.index === 0 && !N.hasMethod || x?.includes(N.index);
102584
+ const w = p && N.index === 0 && !N.hasMethod || x?.includes(N.index);
102585
102585
  if (this._isInFunc && (N.arg || N.isArg) && this._currentFuncName) {
102586
102586
  const R = this._argChangeMap.get(this._currentFuncName) || [];
102587
- D && !R.includes(N.index) && (R.push(N.index), this._argChangeMap.set(this._currentFuncName, R));
102587
+ w && !R.includes(N.index) && (R.push(N.index), this._argChangeMap.set(this._currentFuncName, R));
102588
102588
  }
102589
102589
  s ? this._dependsObj[r] = /* @__PURE__ */ new Map() : i && B === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${B}${r}`] = /* @__PURE__ */ new Map());
102590
- let $ = N.ruleType === D0.Brackethesized ? this._parserBrackethesized(N) : this._parserSingleExpression(N, D);
102590
+ let $ = N.ruleType === D0.Brackethesized ? this._parserBrackethesized(N) : this._parserSingleExpression(N, w);
102591
102591
  if (B && !["arg0, arg1, ...", "number0, number1, ..."].includes(B)) {
102592
102592
  N.isSourceType ? d.push(`sourceTypeName: "${N.name}"`) : B === "defval" && o === `${this._prefixNameFunc}.input.enum` && (v = this._enums.get(N.enumName));
102593
102593
  const R = this._requestParamsHandle(i, B, r, s, $, o);
102594
102594
  $ = R?.code || $, R?.paramsExpr && g.push(R?.paramsExpr), Or.includes(B) && (B = `$${B}`), Or.includes($) && ($ = `$${$}`), d.push(`${B}: ${$}`);
102595
102595
  } else
102596
102596
  A.push($);
102597
- }, w = [];
102597
+ }, D = [];
102598
102598
  for (const N of M)
102599
- w.push(`'${N.originName}'`), T(N, N.originName);
102599
+ D.push(`'${N.originName}'`), T(N, N.originName);
102600
102600
  for (const N of Object.keys(e))
102601
102601
  T(e[N], N);
102602
102602
  i && this._isInFunc && d.push("paramsExpr: $paramsExpr"), t && d.push(t), v && d.unshift(`options: [${v.join(", ")}]`);
102603
- const y = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${w.join(",")}]` : "", q = g.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${g.join(", ")}]` : "";
102603
+ const y = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${D.join(",")}]` : "", q = g.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${g.join(", ")}]` : "";
102604
102604
  return A.length ? `({${d.join(", ")}}, [${A.join(", ")}], ${r}${q}${y})` : d.length ? `({${d.join(", ")}}, ${r}${q}${y})` : `(${r}${q})`;
102605
102605
  }
102606
102606
  _requestParamsHandle(e, t, r, i, s, o) {
@@ -102725,10 +102725,10 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
102725
102725
  let v = "";
102726
102726
  const x = new k5("_$");
102727
102727
  let T = e ? "" : x.preParser(g);
102728
- const w = {};
102728
+ const D = {};
102729
102729
  if (e && !i.some((y) => y.type === xn.Error)) {
102730
102730
  const { code: y = "", hasLeftVisibleBarTime: q, hasRightVisibleBarTime: N, hasAlert: B } = x.parser(g) || {};
102731
- Object.assign(w, {
102731
+ Object.assign(D, {
102732
102732
  hasLeftVisibleBarTime: q,
102733
102733
  hasRightVisibleBarTime: N,
102734
102734
  hasAlert: B,
@@ -102776,7 +102776,7 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
102776
102776
  enums: Object.fromEntries(A.userEnums),
102777
102777
  codeStr: v,
102778
102778
  preParserCode: T,
102779
- config: w
102779
+ config: D
102780
102780
  };
102781
102781
  } catch (s) {
102782
102782
  return console.log(s, "解析错误"), i.push({
@@ -102805,8 +102805,8 @@ ${this._prefixNameVar}.setCacheData("m${M}_" + ${d}, ${g})
102805
102805
  const { ast: i, comments: s } = w5(n + `
102806
102806
 
102807
102807
  `), { commentFilters: o } = T3(s), p = new C5(r, o, t), M = await p.visit(i), { name: d, index: A } = p.endExport, g = M.findIndex((q) => q.name === d && q.index === A), v = g === -1 ? M : M.slice(0, g + 1), T = new k5("_$", Er.library, e).parserlib(v);
102808
- let w = T?.code || "";
102809
- const y = await Uu(w, { compress: !0, mangle: !0 });
102808
+ let D = T?.code || "";
102809
+ const y = await Uu(D, { compress: !0, mangle: !0 });
102810
102810
  return {
102811
102811
  ...p.exportLibs,
102812
102812
  description: p.description,