@malloydata/render 0.0.144-dev240426181908 → 0.0.144-dev240503230218

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.
@@ -413,7 +413,7 @@ function Wle(t, e, n = {}) {
413
413
  return a[Ple], Go(() => {
414
414
  let x = a.length, h, p, m, g, y, E, A, S, v;
415
415
  if (x === 0)
416
- o !== 0 && (xP(s), s = [], r = [], i = [], o = 0, u && (u = [])), n.fallback && (r = [Gle], i[0] = GA((C) => (s[0] = C, n.fallback())), o = 1);
416
+ o !== 0 && (xP(s), s = [], r = [], i = [], o = 0, u && (u = [])), n.fallback && (r = [Gle], i[0] = GA((_) => (s[0] = _, n.fallback())), o = 1);
417
417
  else if (o === 0) {
418
418
  for (i = new Array(x), c = 0; c < x; c++)
419
419
  r[c] = a[c], i[c] = GA(f);
@@ -1619,8 +1619,8 @@ function zce(t) {
1619
1619
  for (var p = 16; p < 80; ++p)
1620
1620
  x[p] = iD(x[p - 3] ^ x[p - 8] ^ x[p - 14] ^ x[p - 16], 1);
1621
1621
  for (var m = n[0], g = n[1], y = n[2], E = n[3], A = n[4], S = 0; S < 80; ++S) {
1622
- var v = Math.floor(S / 20), C = iD(m, 5) + Hce(v, g, y, E) + A + e[v] + x[S] >>> 0;
1623
- A = E, E = y, y = iD(g, 30) >>> 0, g = m, m = C;
1622
+ var v = Math.floor(S / 20), _ = iD(m, 5) + Hce(v, g, y, E) + A + e[v] + x[S] >>> 0;
1623
+ A = E, E = y, y = iD(g, 30) >>> 0, g = m, m = _;
1624
1624
  }
1625
1625
  n[0] = n[0] + m >>> 0, n[1] = n[1] + g >>> 0, n[2] = n[2] + y >>> 0, n[3] = n[3] + E >>> 0, n[4] = n[4] + A >>> 0;
1626
1626
  }
@@ -2632,8 +2632,8 @@ function _xe() {
2632
2632
  AC.fnSumMoving = _xe;
2633
2633
  (function(t) {
2634
2634
  Object.defineProperty(t, "__esModule", { value: !0 }), t.FUNCTIONS = void 0;
2635
- const e = Q_, n = G_, r = W_, i = V_, s = Y_, o = D0, u = K_, a = X_, l = J_, c = Z_, f = bh, x = eC, h = tC, p = nC, m = rC, g = iC, y = sC, E = Th, A = Yi, S = Rh, v = oC, C = uC, _ = aC, b = lC, R = cC, O = fC, L = xC, M = Oh, q = F0, W = dC, B = hC, G = pC, te = gC, X = Lt, de = mC, be = yC, ee = EC, U = Nh, T = no, w = AC;
2636
- t.FUNCTIONS = new be.FunctionMap(), t.FUNCTIONS.add("concat", e.fnConcat), t.FUNCTIONS.add("round", i.fnRound), t.FUNCTIONS.add("trunc", n.fnTrunc), t.FUNCTIONS.add("floor", X.fnFloor), t.FUNCTIONS.add("ceil", X.fnCeil), t.FUNCTIONS.add("cos", X.fnCos), t.FUNCTIONS.add("acos", X.fnAcos), t.FUNCTIONS.add("sin", X.fnSin), t.FUNCTIONS.add("asin", X.fnAsin), t.FUNCTIONS.add("tan", X.fnTan), t.FUNCTIONS.add("atan", X.fnAtan), t.FUNCTIONS.add("atan2", _.fnAtan2), t.FUNCTIONS.add("lower", s.fnLower), t.FUNCTIONS.add("upper", u.fnUpper), t.FUNCTIONS.add("sqrt", X.fnSqrt), t.FUNCTIONS.add("pow", b.fnPow), t.FUNCTIONS.add("abs", X.fnAbs), t.FUNCTIONS.add("sign", X.fnSign), t.FUNCTIONS.add("is_inf", v.fnIsInf), t.FUNCTIONS.add("is_nan", C.fnIsNan), t.FUNCTIONS.add("greatest", M.fnGreatest), t.FUNCTIONS.add("least", M.fnLeast), t.FUNCTIONS.add("div", L.fnDiv), t.FUNCTIONS.add("strpos", O.fnStrpos), t.FUNCTIONS.add("starts_with", S.fnStartsWith), t.FUNCTIONS.add("ends_with", S.fnEndsWith), t.FUNCTIONS.add("trim", q.fnTrim), t.FUNCTIONS.add("ltrim", q.fnLtrim), t.FUNCTIONS.add("rtrim", q.fnRtrim), t.FUNCTIONS.add("rand", W.fnRand), t.FUNCTIONS.add("pi", B.fnPi), t.FUNCTIONS.add("substr", a.fnSubstr), t.FUNCTIONS.add("regexp_extract", l.fnRegexpExtract), t.FUNCTIONS.add("replace", c.fnReplace), t.FUNCTIONS.add("length", f.fnLength), t.FUNCTIONS.add("byte_length", f.fnByteLength), t.FUNCTIONS.add("ifnull", x.fnIfnull), t.FUNCTIONS.add("coalesce", ee.fnCoalesce), t.FUNCTIONS.add("nullif", h.fnNullif), t.FUNCTIONS.add("chr", o.fnChr), t.FUNCTIONS.add("ascii", o.fnAscii), t.FUNCTIONS.add("unicode", o.fnUnicode), t.FUNCTIONS.add("repeat", G.fnRepeat), t.FUNCTIONS.add("reverse", te.fnReverse), t.FUNCTIONS.add("log", R.fnLog), t.FUNCTIONS.add("ln", X.fnLn), t.FUNCTIONS.add("exp", X.fnExp), t.FUNCTIONS.add("stddev", r.fnStddev), t.FUNCTIONS.add("string_agg", U.fnStringAgg), t.FUNCTIONS.add("string_agg_distinct", U.fnStringAggDistinct), t.FUNCTIONS.add("row_number", p.fnRowNumber), t.FUNCTIONS.add("lag", m.fnLag), t.FUNCTIONS.add("lead", g.fnLead), t.FUNCTIONS.add("rank", y.fnRank), t.FUNCTIONS.add("first_value", E.fnFirstValueWindow), t.FUNCTIONS.add("last_value", E.fnLastValueWindow), t.FUNCTIONS.add("min_cumulative", A.fnMinCumulative), t.FUNCTIONS.add("max_cumulative", A.fnMaxCumulative), t.FUNCTIONS.add("sum_cumulative", A.fnSumCumulative), t.FUNCTIONS.add("min_window", A.fnMinWindow), t.FUNCTIONS.add("max_window", A.fnMaxWindow), t.FUNCTIONS.add("sum_window", A.fnSumWindow), t.FUNCTIONS.add("avg_moving", de.fnAvgRolling), t.FUNCTIONS.add("sum_moving", w.fnSumMoving), t.FUNCTIONS.add("sql_number", T.fnSqlNumber), t.FUNCTIONS.add("sql_string", T.fnSqlString), t.FUNCTIONS.add("sql_date", T.fnSqlDate), t.FUNCTIONS.add("sql_timestamp", T.fnSqlTimestamp), t.FUNCTIONS.add("sql_boolean", T.fnSqlBoolean), t.FUNCTIONS.seal();
2635
+ const e = Q_, n = G_, r = W_, i = V_, s = Y_, o = D0, u = K_, a = X_, l = J_, c = Z_, f = bh, x = eC, h = tC, p = nC, m = rC, g = iC, y = sC, E = Th, A = Yi, S = Rh, v = oC, _ = uC, C = aC, b = lC, R = cC, O = fC, L = xC, M = Oh, q = F0, W = dC, B = hC, G = pC, te = gC, X = Lt, de = mC, be = yC, ee = EC, U = Nh, T = no, w = AC;
2636
+ t.FUNCTIONS = new be.FunctionMap(), t.FUNCTIONS.add("concat", e.fnConcat), t.FUNCTIONS.add("round", i.fnRound), t.FUNCTIONS.add("trunc", n.fnTrunc), t.FUNCTIONS.add("floor", X.fnFloor), t.FUNCTIONS.add("ceil", X.fnCeil), t.FUNCTIONS.add("cos", X.fnCos), t.FUNCTIONS.add("acos", X.fnAcos), t.FUNCTIONS.add("sin", X.fnSin), t.FUNCTIONS.add("asin", X.fnAsin), t.FUNCTIONS.add("tan", X.fnTan), t.FUNCTIONS.add("atan", X.fnAtan), t.FUNCTIONS.add("atan2", C.fnAtan2), t.FUNCTIONS.add("lower", s.fnLower), t.FUNCTIONS.add("upper", u.fnUpper), t.FUNCTIONS.add("sqrt", X.fnSqrt), t.FUNCTIONS.add("pow", b.fnPow), t.FUNCTIONS.add("abs", X.fnAbs), t.FUNCTIONS.add("sign", X.fnSign), t.FUNCTIONS.add("is_inf", v.fnIsInf), t.FUNCTIONS.add("is_nan", _.fnIsNan), t.FUNCTIONS.add("greatest", M.fnGreatest), t.FUNCTIONS.add("least", M.fnLeast), t.FUNCTIONS.add("div", L.fnDiv), t.FUNCTIONS.add("strpos", O.fnStrpos), t.FUNCTIONS.add("starts_with", S.fnStartsWith), t.FUNCTIONS.add("ends_with", S.fnEndsWith), t.FUNCTIONS.add("trim", q.fnTrim), t.FUNCTIONS.add("ltrim", q.fnLtrim), t.FUNCTIONS.add("rtrim", q.fnRtrim), t.FUNCTIONS.add("rand", W.fnRand), t.FUNCTIONS.add("pi", B.fnPi), t.FUNCTIONS.add("substr", a.fnSubstr), t.FUNCTIONS.add("regexp_extract", l.fnRegexpExtract), t.FUNCTIONS.add("replace", c.fnReplace), t.FUNCTIONS.add("length", f.fnLength), t.FUNCTIONS.add("byte_length", f.fnByteLength), t.FUNCTIONS.add("ifnull", x.fnIfnull), t.FUNCTIONS.add("coalesce", ee.fnCoalesce), t.FUNCTIONS.add("nullif", h.fnNullif), t.FUNCTIONS.add("chr", o.fnChr), t.FUNCTIONS.add("ascii", o.fnAscii), t.FUNCTIONS.add("unicode", o.fnUnicode), t.FUNCTIONS.add("repeat", G.fnRepeat), t.FUNCTIONS.add("reverse", te.fnReverse), t.FUNCTIONS.add("log", R.fnLog), t.FUNCTIONS.add("ln", X.fnLn), t.FUNCTIONS.add("exp", X.fnExp), t.FUNCTIONS.add("stddev", r.fnStddev), t.FUNCTIONS.add("string_agg", U.fnStringAgg), t.FUNCTIONS.add("string_agg_distinct", U.fnStringAggDistinct), t.FUNCTIONS.add("row_number", p.fnRowNumber), t.FUNCTIONS.add("lag", m.fnLag), t.FUNCTIONS.add("lead", g.fnLead), t.FUNCTIONS.add("rank", y.fnRank), t.FUNCTIONS.add("first_value", E.fnFirstValueWindow), t.FUNCTIONS.add("last_value", E.fnLastValueWindow), t.FUNCTIONS.add("min_cumulative", A.fnMinCumulative), t.FUNCTIONS.add("max_cumulative", A.fnMaxCumulative), t.FUNCTIONS.add("sum_cumulative", A.fnSumCumulative), t.FUNCTIONS.add("min_window", A.fnMinWindow), t.FUNCTIONS.add("max_window", A.fnMaxWindow), t.FUNCTIONS.add("sum_window", A.fnSumWindow), t.FUNCTIONS.add("avg_moving", de.fnAvgRolling), t.FUNCTIONS.add("sum_moving", w.fnSumMoving), t.FUNCTIONS.add("sql_number", T.fnSqlNumber), t.FUNCTIONS.add("sql_string", T.fnSqlString), t.FUNCTIONS.add("sql_date", T.fnSqlDate), t.FUNCTIONS.add("sql_timestamp", T.fnSqlTimestamp), t.FUNCTIONS.add("sql_boolean", T.fnSqlBoolean), t.FUNCTIONS.seal();
2637
2637
  })(OG);
2638
2638
  (function(t) {
2639
2639
  Object.defineProperty(t, "__esModule", { value: !0 }), t.FUNCTIONS = void 0;
@@ -3304,7 +3304,7 @@ kC.fnUnicode = Zxe;
3304
3304
  })(FG);
3305
3305
  Object.defineProperty(_C, "__esModule", { value: !0 });
3306
3306
  _C.PostgresDialect = void 0;
3307
- const ede = Yt, Mt = ne, EP = FG, X2 = zx, tde = {
3307
+ const ede = Yt, Pt = ne, EP = FG, X2 = zx, tde = {
3308
3308
  day_of_week: "dow",
3309
3309
  day_of_year: "doy"
3310
3310
  }, nde = {
@@ -3472,55 +3472,55 @@ $$ LANGUAGE SQL;
3472
3472
  throw new Error("Not implemented Yet");
3473
3473
  }
3474
3474
  sqlNow() {
3475
- return (0, Mt.mkExpr)`LOCALTIMESTAMP`;
3475
+ return (0, Pt.mkExpr)`LOCALTIMESTAMP`;
3476
3476
  }
3477
3477
  sqlTrunc(e, n, r) {
3478
- const i = r === "week", s = i ? (0, Mt.mkExpr)`${n.value} + INTERVAL '1' DAY` : n.value;
3478
+ const i = r === "week", s = i ? (0, Pt.mkExpr)`${n.value} + INTERVAL '1' DAY` : n.value;
3479
3479
  if (n.valueType === "timestamp") {
3480
3480
  const u = (0, X2.qtz)(e);
3481
3481
  if (u) {
3482
- const a = (0, Mt.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`;
3483
- let l = (0, Mt.mkExpr)`DATE_TRUNC('${r}', ${a})`;
3484
- l = (0, Mt.mkExpr)`${l}::TIMESTAMP`;
3485
- const c = (0, Mt.mkExpr)`${l} AT TIME ZONE '${u}'`;
3486
- return (0, Mt.mkExpr)`(${c})::TIMESTAMP`;
3482
+ const a = (0, Pt.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`;
3483
+ let l = (0, Pt.mkExpr)`DATE_TRUNC('${r}', ${a})`;
3484
+ l = (0, Pt.mkExpr)`${l}::TIMESTAMP`;
3485
+ const c = (0, Pt.mkExpr)`${l} AT TIME ZONE '${u}'`;
3486
+ return (0, Pt.mkExpr)`(${c})::TIMESTAMP`;
3487
3487
  }
3488
3488
  }
3489
- let o = (0, Mt.mkExpr)`DATE_TRUNC('${r}', ${s})`;
3490
- return i && (o = (0, Mt.mkExpr)`(${o} - INTERVAL '1' DAY)`), o;
3489
+ let o = (0, Pt.mkExpr)`DATE_TRUNC('${r}', ${s})`;
3490
+ return i && (o = (0, Pt.mkExpr)`(${o} - INTERVAL '1' DAY)`), o;
3491
3491
  }
3492
3492
  sqlExtract(e, n, r) {
3493
3493
  const i = tde[r] || r;
3494
3494
  let s = n.value;
3495
3495
  if (n.valueType === "timestamp") {
3496
3496
  const u = (0, X2.qtz)(e);
3497
- u && (s = (0, Mt.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`);
3497
+ u && (s = (0, Pt.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`);
3498
3498
  }
3499
- const o = (0, Mt.mkExpr)`EXTRACT(${i} FROM ${s})`;
3500
- return r === "day_of_week" ? (0, Mt.mkExpr)`(${o}+1)` : o;
3499
+ const o = (0, Pt.mkExpr)`EXTRACT(${i} FROM ${s})`;
3500
+ return r === "day_of_week" ? (0, Pt.mkExpr)`(${o}+1)` : o;
3501
3501
  }
3502
3502
  sqlAlterTime(e, n, r, i) {
3503
- i === "quarter" && (i = "month", r = (0, Mt.mkExpr)`${r}*3`);
3504
- const s = (0, Mt.mkExpr)`make_interval(${nde[i]}=>${r})`;
3505
- return (0, Mt.mkExpr)`((${n.value})${e}${s})`;
3503
+ i === "quarter" && (i = "month", r = (0, Pt.mkExpr)`${r}*3`);
3504
+ const s = (0, Pt.mkExpr)`make_interval(${nde[i]}=>${r})`;
3505
+ return (0, Pt.mkExpr)`((${n.value})${e}${s})`;
3506
3506
  }
3507
3507
  sqlCast(e, n) {
3508
3508
  const r = `${n.srcType}::${n.dstType}`, i = (0, X2.qtz)(e);
3509
3509
  if (r === "timestamp::date" && i) {
3510
- const s = (0, Mt.mkExpr)`${n.expr}::TIMESTAMPTZ`;
3511
- return (0, Mt.mkExpr)`CAST((${s}) AT TIME ZONE '${i}' AS DATE)`;
3510
+ const s = (0, Pt.mkExpr)`${n.expr}::TIMESTAMPTZ`;
3511
+ return (0, Pt.mkExpr)`CAST((${s}) AT TIME ZONE '${i}' AS DATE)`;
3512
3512
  } else if (r === "date::timestamp" && i)
3513
- return (0, Mt.mkExpr)`CAST((${n.expr})::TIMESTAMP AT TIME ZONE '${i}' AS TIMESTAMP)`;
3513
+ return (0, Pt.mkExpr)`CAST((${n.expr})::TIMESTAMP AT TIME ZONE '${i}' AS TIMESTAMP)`;
3514
3514
  if (n.srcType !== n.dstType) {
3515
3515
  const s = typeof n.dstType == "string" ? this.malloyTypeToSQLType({ type: n.dstType }) : n.dstType.raw;
3516
3516
  if (n.safe)
3517
3517
  throw new Error("Postgres dialect doesn't support Safe Cast");
3518
- return (0, Mt.mkExpr)`${"CAST"}(${n.expr} AS ${s})`;
3518
+ return (0, Pt.mkExpr)`${"CAST"}(${n.expr} AS ${s})`;
3519
3519
  }
3520
3520
  return n.expr;
3521
3521
  }
3522
3522
  sqlRegexpMatch(e, n) {
3523
- return (0, Mt.mkExpr)`(${e} ~ ${n})`;
3523
+ return (0, Pt.mkExpr)`(${e} ~ ${n})`;
3524
3524
  }
3525
3525
  sqlLiteralTime(e, n, r, i) {
3526
3526
  if (r === "date")
@@ -3531,9 +3531,9 @@ $$ LANGUAGE SQL;
3531
3531
  sqlMeasureTime(e, n, r) {
3532
3532
  let i = e.value, s = n.value;
3533
3533
  if (AP[r]) {
3534
- i = (0, Mt.mkExpr)`EXTRACT(EPOCH FROM ${i})`, s = (0, Mt.mkExpr)`EXTRACT(EPOCH FROM ${s})`;
3535
- const o = (0, Mt.mkExpr)`${s}-${i}`;
3536
- return r === "second" ? (0, Mt.mkExpr)`FLOOR(${o})` : (0, Mt.mkExpr)`FLOOR((${o})/${AP[r].toString()}.0)`;
3534
+ i = (0, Pt.mkExpr)`EXTRACT(EPOCH FROM ${i})`, s = (0, Pt.mkExpr)`EXTRACT(EPOCH FROM ${s})`;
3535
+ const o = (0, Pt.mkExpr)`${s}-${i}`;
3536
+ return r === "second" ? (0, Pt.mkExpr)`FLOOR(${o})` : (0, Pt.mkExpr)`FLOOR((${o})/${AP[r].toString()}.0)`;
3537
3537
  }
3538
3538
  throw new Error(`Unknown or unhandled postgres time unit: ${r}`);
3539
3539
  }
@@ -3558,9 +3558,9 @@ $$ LANGUAGE SQL;
3558
3558
  }
3559
3559
  sqlSampleTable(e, n) {
3560
3560
  if (n !== void 0) {
3561
- if ((0, Mt.isSamplingEnable)(n) && n.enable && (n = this.defaultSampling), (0, Mt.isSamplingRows)(n))
3561
+ if ((0, Pt.isSamplingEnable)(n) && n.enable && (n = this.defaultSampling), (0, Pt.isSamplingRows)(n))
3562
3562
  return `(SELECT * FROM ${e} TABLESAMPLE SYSTEM_ROWS(${n.rows}))`;
3563
- if ((0, Mt.isSamplingPercent)(n))
3563
+ if ((0, Pt.isSamplingPercent)(n))
3564
3564
  return `(SELECT * FROM ${e} TABLESAMPLE SYSTEM (${n.percent}))`;
3565
3565
  }
3566
3566
  return e;
@@ -3785,7 +3785,7 @@ VC.fnUnicode = mde;
3785
3785
  })(IG);
3786
3786
  Object.defineProperty(PC, "__esModule", { value: !0 });
3787
3787
  PC.DuckDBDialect = void 0;
3788
- const qt = ne, yde = Yt, Ede = IG, qd = zx, SP = "-- hack: split on this", Ade = {
3788
+ const Ut = ne, yde = Yt, Ede = IG, qd = zx, SP = "-- hack: split on this", Ade = {
3789
3789
  day_of_week: "dow",
3790
3790
  day_of_year: "doy"
3791
3791
  }, Sde = {
@@ -3916,56 +3916,56 @@ ${SP}
3916
3916
  }
3917
3917
  sqlMeasureTime(e, n, r) {
3918
3918
  let i = e.value, s = n.value;
3919
- return (0, qd.inDays)(r) || (e.valueType === "date" && (i = (0, qt.mkExpr)`(${i})::TIMESTAMP`), n.valueType === "date" && (s = (0, qt.mkExpr)`(${s})::TIMESTAMP`)), (0, qt.mkExpr)`DATE_SUB('${r}',${i},${s})`;
3919
+ return (0, qd.inDays)(r) || (e.valueType === "date" && (i = (0, Ut.mkExpr)`(${i})::TIMESTAMP`), n.valueType === "date" && (s = (0, Ut.mkExpr)`(${s})::TIMESTAMP`)), (0, Ut.mkExpr)`DATE_SUB('${r}',${i},${s})`;
3920
3920
  }
3921
3921
  sqlNow() {
3922
- return (0, qt.mkExpr)`LOCALTIMESTAMP`;
3922
+ return (0, Ut.mkExpr)`LOCALTIMESTAMP`;
3923
3923
  }
3924
3924
  sqlTrunc(e, n, r) {
3925
- const i = r === "week", s = i ? (0, qt.mkExpr)`${n.value} + INTERVAL 1 DAY` : n.value;
3925
+ const i = r === "week", s = i ? (0, Ut.mkExpr)`${n.value} + INTERVAL 1 DAY` : n.value;
3926
3926
  if (n.valueType === "timestamp") {
3927
3927
  const u = (0, qd.qtz)(e);
3928
3928
  if (u) {
3929
- const a = (0, qt.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`;
3930
- let l = (0, qt.mkExpr)`DATE_TRUNC('${r}', ${a})`;
3931
- l = (0, qt.mkExpr)`${l}::TIMESTAMP`;
3932
- const c = (0, qt.mkExpr)`${l} AT TIME ZONE '${u}'`;
3933
- return (0, qt.mkExpr)`(${c})::TIMESTAMP`;
3929
+ const a = (0, Ut.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`;
3930
+ let l = (0, Ut.mkExpr)`DATE_TRUNC('${r}', ${a})`;
3931
+ l = (0, Ut.mkExpr)`${l}::TIMESTAMP`;
3932
+ const c = (0, Ut.mkExpr)`${l} AT TIME ZONE '${u}'`;
3933
+ return (0, Ut.mkExpr)`(${c})::TIMESTAMP`;
3934
3934
  }
3935
3935
  }
3936
- let o = (0, qt.mkExpr)`DATE_TRUNC('${r}', ${s})`;
3937
- return i && (o = (0, qt.mkExpr)`(${o} - INTERVAL 1 DAY)`), o;
3936
+ let o = (0, Ut.mkExpr)`DATE_TRUNC('${r}', ${s})`;
3937
+ return i && (o = (0, Ut.mkExpr)`(${o} - INTERVAL 1 DAY)`), o;
3938
3938
  }
3939
3939
  sqlExtract(e, n, r) {
3940
3940
  const i = Ade[r] || r;
3941
3941
  let s = n.value;
3942
3942
  if (n.valueType === "timestamp") {
3943
3943
  const u = (0, qd.qtz)(e);
3944
- u && (s = (0, qt.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`);
3944
+ u && (s = (0, Ut.mkExpr)`(${s}::TIMESTAMPTZ AT TIME ZONE '${u}')`);
3945
3945
  }
3946
- const o = (0, qt.mkExpr)`EXTRACT(${i} FROM ${s})`;
3947
- return r === "day_of_week" ? (0, qt.mkExpr)`(${o}+1)` : o;
3946
+ const o = (0, Ut.mkExpr)`EXTRACT(${i} FROM ${s})`;
3947
+ return r === "day_of_week" ? (0, Ut.mkExpr)`(${o}+1)` : o;
3948
3948
  }
3949
3949
  sqlAlterTime(e, n, r, i) {
3950
- i === "quarter" && (i = "month", r = (0, qt.mkExpr)`${r}*3`), i === "week" && (i = "day", r = (0, qt.mkExpr)`${r}*7`);
3951
- const s = (0, qt.mkExpr)`INTERVAL (${r}) ${i}`;
3952
- return (0, qt.mkExpr)`${n.value} ${e} ${s}`;
3950
+ i === "quarter" && (i = "month", r = (0, Ut.mkExpr)`${r}*3`), i === "week" && (i = "day", r = (0, Ut.mkExpr)`${r}*7`);
3951
+ const s = (0, Ut.mkExpr)`INTERVAL (${r}) ${i}`;
3952
+ return (0, Ut.mkExpr)`${n.value} ${e} ${s}`;
3953
3953
  }
3954
3954
  sqlCast(e, n) {
3955
3955
  const r = `${n.srcType}::${n.dstType}`, i = (0, qd.qtz)(e);
3956
3956
  if (r === "timestamp::date" && i) {
3957
- const s = (0, qt.mkExpr)`${n.expr}::TIMESTAMPTZ`;
3958
- return (0, qt.mkExpr)`CAST((${s}) AT TIME ZONE '${i}' AS DATE)`;
3957
+ const s = (0, Ut.mkExpr)`${n.expr}::TIMESTAMPTZ`;
3958
+ return (0, Ut.mkExpr)`CAST((${s}) AT TIME ZONE '${i}' AS DATE)`;
3959
3959
  } else if (r === "date::timestamp" && i)
3960
- return (0, qt.mkExpr)`CAST((${n.expr})::TIMESTAMP AT TIME ZONE '${i}' AS TIMESTAMP)`;
3960
+ return (0, Ut.mkExpr)`CAST((${n.expr})::TIMESTAMP AT TIME ZONE '${i}' AS TIMESTAMP)`;
3961
3961
  if (n.srcType !== n.dstType) {
3962
3962
  const s = typeof n.dstType == "string" ? this.malloyTypeToSQLType({ type: n.dstType }) : n.dstType.raw, o = n.safe ? "TRY_CAST" : "CAST";
3963
- return (0, qt.mkExpr)`${o}(${n.expr} AS ${s})`;
3963
+ return (0, Ut.mkExpr)`${o}(${n.expr} AS ${s})`;
3964
3964
  }
3965
3965
  return n.expr;
3966
3966
  }
3967
3967
  sqlRegexpMatch(e, n) {
3968
- return (0, qt.mkExpr)`REGEXP_MATCHES(${e}, ${n})`;
3968
+ return (0, Ut.mkExpr)`REGEXP_MATCHES(${e}, ${n})`;
3969
3969
  }
3970
3970
  sqlLiteralTime(e, n, r, i) {
3971
3971
  if (r === "date")
@@ -4000,9 +4000,9 @@ ${SP}
4000
4000
  // default duckdb to sampling 50K rows.
4001
4001
  sqlSampleTable(e, n) {
4002
4002
  if (n !== void 0) {
4003
- if ((0, qt.isSamplingEnable)(n) && n.enable && (n = this.defaultSampling), (0, qt.isSamplingRows)(n))
4003
+ if ((0, Ut.isSamplingEnable)(n) && n.enable && (n = this.defaultSampling), (0, Ut.isSamplingRows)(n))
4004
4004
  return `(SELECT * FROM ${e} USING SAMPLE ${n.rows})`;
4005
- if ((0, qt.isSamplingPercent)(n))
4005
+ if ((0, Ut.isSamplingPercent)(n))
4006
4006
  return `(SELECT * FROM ${e} USING SAMPLE ${n.percent} PERCENT (bernoulli))`;
4007
4007
  }
4008
4008
  return e;
@@ -4708,7 +4708,7 @@ hb.fnReverse = ihe;
4708
4708
  })(MG);
4709
4709
  Object.defineProperty(sb, "__esModule", { value: !0 });
4710
4710
  sb.TrinoDialect = void 0;
4711
- const _P = Yt, kt = ne, she = MG, CP = zx;
4711
+ const _P = Yt, qt = ne, she = MG, CP = zx;
4712
4712
  function ohe(t) {
4713
4713
  return [
4714
4714
  "microsecond",
@@ -4840,7 +4840,7 @@ class lhe extends CP.Dialect {
4840
4840
  dialectExpr(e, n) {
4841
4841
  switch (n.function) {
4842
4842
  case "div":
4843
- return (0, kt.mkExpr)`CAST(${n.numerator} AS DOUBLE)/${n.denominator}`;
4843
+ return (0, qt.mkExpr)`CAST(${n.numerator} AS DOUBLE)/${n.denominator}`;
4844
4844
  }
4845
4845
  return super.dialectExpr(e, n);
4846
4846
  }
@@ -4932,57 +4932,54 @@ ${(0, _P.indent)(n)}
4932
4932
  return '"' + e + '"';
4933
4933
  }
4934
4934
  sqlNow() {
4935
- return (0, kt.mkExpr)`LOCALTIMESTAMP`;
4935
+ return (0, qt.mkExpr)`LOCALTIMESTAMP`;
4936
4936
  }
4937
4937
  sqlTrunc(e, n, r) {
4938
- const i = r === "week", s = i ? (0, kt.mkExpr)`DATE_ADD('day', 1, ${n.value})` : n.value;
4938
+ const i = r === "week", s = i ? (0, qt.mkExpr)`DATE_ADD('day', 1, ${n.value})` : n.value;
4939
4939
  if (n.valueType === "timestamp") {
4940
4940
  const u = $3(e);
4941
4941
  if (u) {
4942
- const a = (0, kt.mkExpr)`CAST(${s} AS TIMESTAMPTZ AT TIME ZONE '${u}')`;
4943
- let l = (0, kt.mkExpr)`DATE_TRUNC('${r}', ${a})`;
4944
- l = (0, kt.mkExpr)`CAST(${l}, TIMESTAMP)`;
4945
- const c = (0, kt.mkExpr)`${l} AT TIME ZONE '${u}'`;
4946
- return (0, kt.mkExpr)`CAST((${c}),TIMESTAMP)`;
4942
+ const a = (0, qt.mkExpr)`AT_TIMEZONE(${s},'${u}')`, l = (0, qt.mkExpr)`DATE_TRUNC('${r}', ${a})`;
4943
+ return (0, qt.mkExpr)`AT_TIMEZONE(${l},'${u}')`;
4947
4944
  }
4948
4945
  }
4949
- let o = (0, kt.mkExpr)`DATE_TRUNC('${r}', ${s})`;
4950
- return i && (o = (0, kt.mkExpr)`DATE_ADD('day',-1, ${o})`), o;
4946
+ let o = (0, qt.mkExpr)`DATE_TRUNC('${r}', ${s})`;
4947
+ return i && (o = (0, qt.mkExpr)`DATE_ADD('day',-1, ${o})`), o;
4951
4948
  }
4952
4949
  sqlExtract(e, n, r) {
4953
4950
  const i = uhe[r] || r;
4954
4951
  let s = n.value;
4955
4952
  if (n.valueType === "timestamp") {
4956
4953
  const u = $3(e);
4957
- u && (s = (0, kt.mkExpr)`CAST(${s}, TIMESTAMPTZ AT TIME ZONE '${u}')`);
4954
+ u && (s = (0, qt.mkExpr)`at_timezone(${s},'${u}')`);
4958
4955
  }
4959
- const o = (0, kt.mkExpr)`EXTRACT(${i} FROM ${s})`;
4960
- return r === "day_of_week" ? (0, kt.mkExpr)`mod(${o}+1,7)` : o;
4956
+ const o = (0, qt.mkExpr)`EXTRACT(${i} FROM ${s})`;
4957
+ return r === "day_of_week" ? (0, qt.mkExpr)`mod(${o}+1,7)` : o;
4961
4958
  }
4962
4959
  sqlAlterTime(e, n, r, i) {
4963
- return i === "quarter" && (i = "month", r = (0, kt.mkExpr)`${r}*3`), i === "week" && (i = "day", r = (0, kt.mkExpr)`${r}*7`), e === "-" && (r = (0, kt.mkExpr)`(${r})*-1`), (0, kt.mkExpr)`DATE_ADD('${i}', ${r}, ${n.value})`;
4960
+ return i === "quarter" && (i = "month", r = (0, qt.mkExpr)`${r}*3`), i === "week" && (i = "day", r = (0, qt.mkExpr)`${r}*7`), e === "-" && (r = (0, qt.mkExpr)`(${r})*-1`), (0, qt.mkExpr)`DATE_ADD('${i}', ${r}, ${n.value})`;
4964
4961
  }
4965
4962
  sqlCast(e, n) {
4966
- const r = `${n.srcType}::${n.dstType}`, i = $3(e);
4967
- if (r === "timestamp::date" && i) {
4968
- const s = (0, kt.mkExpr)`CAST(${n.expr} as TIMESTAMPTZ)`;
4969
- return (0, kt.mkExpr)`CAST((${s}) AT TIME ZONE '${i}' AS DATE)`;
4970
- } else if (r === "date::timestamp" && i)
4971
- return (0, kt.mkExpr)`CAST(CAST(${n.expr}), TIMESTAMP AT TIME ZONE '${i}') AS TIMESTAMP)`;
4963
+ const r = `${n.srcType}=>${n.dstType}`, i = $3(e);
4964
+ if (r === "timestamp=>date" && i) {
4965
+ const s = (0, qt.mkExpr)`CAST(${n.expr} as TIMESTAMP)`;
4966
+ return (0, qt.mkExpr)`CAST((${s}) AT TIME ZONE '${i}' AS DATE)`;
4967
+ } else if (r === "date=>timestamp" && i)
4968
+ return (0, qt.mkExpr)`CAST(CONCAT(CAST(CAST(${n.expr} AS TIMESTAMP) AS VARCHAR), ' ${i}') AS TIMESTAMP WITH TIME ZONE)`;
4972
4969
  if (n.srcType !== n.dstType) {
4973
4970
  const s = typeof n.dstType == "string" ? this.malloyTypeToSQLType({ type: n.dstType }) : n.dstType.raw, o = n.safe ? "TRY_CAST" : "CAST";
4974
- return (0, kt.mkExpr)`${o}(${n.expr} AS ${s})`;
4971
+ return (0, qt.mkExpr)`${o}(${n.expr} AS ${s})`;
4975
4972
  }
4976
4973
  return n.expr;
4977
4974
  }
4978
4975
  sqlRegexpMatch(e, n) {
4979
- return (0, kt.mkExpr)`REGEXP_LIKE(${e}, ${n})`;
4976
+ return (0, qt.mkExpr)`REGEXP_LIKE(${e}, ${n})`;
4980
4977
  }
4981
4978
  sqlLiteralTime(e, n, r, i) {
4982
4979
  if (r === "date")
4983
4980
  return `DATE '${n}'`;
4984
4981
  const s = i || $3(e);
4985
- return s ? `TIMESTAMPTZ '${n} ${s}'::TIMESTAMP` : `TIMESTAMP '${n}'`;
4982
+ return s ? `TIMESTAMP '${n} ${s}'` : `TIMESTAMP '${n}'`;
4986
4983
  }
4987
4984
  sqlMeasureTime(e, n, r) {
4988
4985
  const i = {
@@ -5001,17 +4998,17 @@ ${(0, _P.indent)(n)}
5001
4998
  throw new Error(`Measure in '${u} not implemented`);
5002
4999
  if (e.valueType !== n.valueType)
5003
5000
  throw new Error("Can't measure difference between different types");
5004
- e.valueType === "date" && (s = (0, kt.mkExpr)`CAST(${s} AS TIMESTAMP)`, o = (0, kt.mkExpr)`CAST(${o} AS TIMESTAMP)`);
5005
- let l = (0, kt.mkExpr)`DATE_DIFF('${u}',${s},${o})`;
5006
- return a !== 1 && (l = (0, kt.mkExpr)`FLOOR(CAST(${l} AS DOUBLE)/${a.toString()}.0)`), l;
5001
+ e.valueType === "date" && (s = (0, qt.mkExpr)`CAST(${s} AS TIMESTAMP)`, o = (0, qt.mkExpr)`CAST(${o} AS TIMESTAMP)`);
5002
+ let l = (0, qt.mkExpr)`DATE_DIFF('${u}',${s},${o})`;
5003
+ return a !== 1 && (l = (0, qt.mkExpr)`FLOOR(CAST(${l} AS DOUBLE)/${a.toString()}.0)`), l;
5007
5004
  }
5008
5005
  throw new Error(`Measure '${r} not implemented`);
5009
5006
  }
5010
5007
  sqlSampleTable(e, n) {
5011
5008
  if (n !== void 0) {
5012
- if ((0, kt.isSamplingEnable)(n) && n.enable && (n = this.defaultSampling), (0, kt.isSamplingRows)(n))
5009
+ if ((0, qt.isSamplingEnable)(n) && n.enable && (n = this.defaultSampling), (0, qt.isSamplingRows)(n))
5013
5010
  throw new Error("Trino doesn't support sampling by rows only percent");
5014
- if ((0, kt.isSamplingPercent)(n))
5011
+ if ((0, qt.isSamplingPercent)(n))
5015
5012
  return `(SELECT * FROM ${e} TABLESAMPLE SYSTEM (${n.percent}))`;
5016
5013
  }
5017
5014
  return e;
@@ -5425,7 +5422,7 @@ let IS = class extends HG {
5425
5422
  return this.generateDimFragment(e, n, S, i);
5426
5423
  });
5427
5424
  return n.dialect.sqlAggDistinct(f, [...h, ...m], (g) => {
5428
- const y = g.map((C, _) => _ < l.length && this.getParamForArgIndex(a.params, _).allowedTypes.every((R) => (0, Ue.isLiteral)(R.evalSpace)) ? l[_] : [C]), E = y.slice(0, h.length), A = y.slice(h.length).map((C, _) => ({ e: C, dir: p[_].dir })), S = this.getFunctionOrderBy(e, n, i, A, E, a), v = this.expandFunctionCall(n.dialect.name, a, E, S, x);
5425
+ const y = g.map((_, C) => C < l.length && this.getParamForArgIndex(a.params, C).allowedTypes.every((R) => (0, Ue.isLiteral)(R.evalSpace)) ? l[C] : [_]), E = y.slice(0, h.length), A = y.slice(h.length).map((_, C) => ({ e: _, dir: p[C].dir })), S = this.getFunctionOrderBy(e, n, i, A, E, a), v = this.expandFunctionCall(n.dialect.name, a, E, S, x);
5429
5426
  return this.generateExpressionFromExpr(e, n, v, i);
5430
5427
  });
5431
5428
  } else {
@@ -5526,42 +5523,43 @@ let IS = class extends HG {
5526
5523
  ], x = f.length > 0 ? `PARTITION BY ${f.join(", ")}` : "";
5527
5524
  let h = a ?? "";
5528
5525
  if (!a && i.needsWindowOrderBy) {
5529
- const g = [];
5530
- let y;
5531
- const E = e.firstSegment.orderBy || e.calculateDefaultOrderBy();
5532
- for (const A of E) {
5533
- typeof A.field == "string" ? y = {
5534
- name: A.field,
5535
- fif: e.getField(A.field)
5536
- } : y = e.getFieldByNumber(A.field);
5537
- const S = y.fif.f.fieldDef.expressionType;
5538
- if (!(0, Ue.expressionIsAnalytic)(S))
5526
+ const y = [];
5527
+ let E;
5528
+ const A = e.firstSegment.orderBy || e.calculateDefaultOrderBy();
5529
+ for (const S of A) {
5530
+ typeof S.field == "string" ? E = {
5531
+ name: S.field,
5532
+ fif: e.getField(S.field)
5533
+ } : E = e.getFieldByNumber(S.field);
5534
+ const v = E.fif.f.fieldDef.expressionType;
5535
+ if (!(0, Ue.expressionIsAnalytic)(v))
5539
5536
  if (e.firstSegment.type === "reduce") {
5540
- const v = y.fif.getAnalyticalSQL(!1);
5541
- g.push(` ${v} ${A.dir || "ASC"}`);
5537
+ const _ = E.fif.getAnalyticalSQL(!1);
5538
+ y.push(` ${_} ${S.dir || "ASC"}`);
5542
5539
  } else
5543
- e.firstSegment.type === "project" && g.push(` ${y.fif.f.generateExpression(e)} ${A.dir || "ASC"}`);
5540
+ e.firstSegment.type === "project" && y.push(` ${E.fif.f.generateExpression(e)} ${S.dir || "ASC"}`);
5544
5541
  }
5545
- g.length > 0 && (h = " " + this.parent.dialect.sqlOrderBy(g));
5542
+ y.length > 0 && (h = " " + this.parent.dialect.sqlOrderBy(y));
5546
5543
  }
5547
5544
  let p = "";
5548
5545
  if (i.between) {
5549
- const [g, y] = [
5546
+ const [y, E] = [
5550
5547
  i.between.preceding,
5551
5548
  i.between.following
5552
- ].map((E) => {
5553
- if (E === -1)
5549
+ ].map((A) => {
5550
+ if (A === -1)
5554
5551
  return "UNBOUNDED";
5555
- if (typeof E == "number")
5556
- return E;
5557
- const A = i.params.findIndex((v) => v.name === E), S = o[A];
5558
- if (S.length !== 1 || typeof S[0] == "string" || S[0].type !== "dialect" || S[0].function !== "numberLiteral")
5552
+ if (typeof A == "number")
5553
+ return A;
5554
+ const S = i.params.findIndex((_) => _.name === A), v = o[S];
5555
+ if (v.length !== 1 || typeof v[0] == "string" || v[0].type !== "dialect" || v[0].function !== "numberLiteral")
5559
5556
  throw new Error("Invalid number of rows for window spec");
5560
- return S[0].literal;
5557
+ return v[0].literal;
5561
5558
  });
5562
- p = `ROWS BETWEEN ${g} PRECEDING AND ${y} FOLLOWING`;
5559
+ p = `ROWS BETWEEN ${y} PRECEDING AND ${E} FOLLOWING`;
5563
5560
  }
5564
- return `${this.generateExpressionFromExpr(e, n, r, s)} OVER(${x} ${h} ${p})`;
5561
+ let g = `${this.generateExpressionFromExpr(e, n, r, s)} OVER(${x} ${h} ${p})`;
5562
+ return l && (g = `CASE WHEN group_set=${e.groupSet} THEN ${g} END`), g;
5565
5563
  }
5566
5564
  generateExpressionFromExpr(e, n, r, i = new n1()) {
5567
5565
  let s = "";
@@ -7654,8 +7652,8 @@ function Sy() {
7654
7652
  "%URIErrorPrototype%": ["URIError", "prototype"],
7655
7653
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
7656
7654
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
7657
- }, y = vI(), E = Uhe(), A = y.call(Function.call, Array.prototype.concat), S = y.call(Function.apply, Array.prototype.splice), v = y.call(Function.call, String.prototype.replace), C = y.call(Function.call, String.prototype.slice), _ = y.call(Function.call, RegExp.prototype.exec), b = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, R = /\\(\\)?/g, O = function(q) {
7658
- var W = C(q, 0, 1), B = C(q, -1);
7655
+ }, y = vI(), E = Uhe(), A = y.call(Function.call, Array.prototype.concat), S = y.call(Function.apply, Array.prototype.splice), v = y.call(Function.call, String.prototype.replace), _ = y.call(Function.call, String.prototype.slice), C = y.call(Function.call, RegExp.prototype.exec), b = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, R = /\\(\\)?/g, O = function(q) {
7656
+ var W = _(q, 0, 1), B = _(q, -1);
7659
7657
  if (W === "%" && B !== "%")
7660
7658
  throw new e("invalid intrinsic syntax, expected closing `%`");
7661
7659
  if (B === "%" && W !== "%")
@@ -7683,12 +7681,12 @@ function Sy() {
7683
7681
  throw new r("intrinsic name must be a non-empty string");
7684
7682
  if (arguments.length > 1 && typeof W != "boolean")
7685
7683
  throw new r('"allowMissing" argument must be a boolean');
7686
- if (_(/^%?[^%]*%?$/, q) === null)
7684
+ if (C(/^%?[^%]*%?$/, q) === null)
7687
7685
  throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
7688
7686
  var B = O(q), G = B.length > 0 ? B[0] : "", te = L("%" + G + "%", W), X = te.name, de = te.value, be = !1, ee = te.alias;
7689
7687
  ee && (G = ee[0], S(B, A([0, 1], ee)));
7690
7688
  for (var U = 1, T = !0; U < B.length; U += 1) {
7691
- var w = B[U], k = C(w, 0, 1), z = C(w, -1);
7689
+ var w = B[U], k = _(w, 0, 1), z = _(w, -1);
7692
7690
  if ((k === '"' || k === "'" || k === "`" || z === '"' || z === "'" || z === "`") && k !== z)
7693
7691
  throw new e("property names with quotes must have matching quotes");
7694
7692
  if ((w === "constructor" || !T) && (be = !0), G += "." + w, X = "%" + G + "%", E(h, X))
@@ -7961,14 +7959,14 @@ var ype = function(e) {
7961
7959
  return r(Z) === "Int8Array";
7962
7960
  }
7963
7961
  t.isInt8Array = v;
7964
- function C(Z) {
7962
+ function _(Z) {
7965
7963
  return r(Z) === "Int16Array";
7966
7964
  }
7967
- t.isInt16Array = C;
7968
- function _(Z) {
7965
+ t.isInt16Array = _;
7966
+ function C(Z) {
7969
7967
  return r(Z) === "Int32Array";
7970
7968
  }
7971
- t.isInt32Array = _;
7969
+ t.isInt32Array = C;
7972
7970
  function b(Z) {
7973
7971
  return r(Z) === "Float32Array";
7974
7972
  }
@@ -8193,7 +8191,7 @@ var _pe = dL.exports;
8193
8191
  seen: [],
8194
8192
  stylize: a
8195
8193
  };
8196
- return arguments.length >= 3 && (w.depth = arguments[2]), arguments.length >= 4 && (w.colors = arguments[3]), y(T) ? w.showHidden = T : T && t._extend(w, T), _(w.showHidden) && (w.showHidden = !1), _(w.depth) && (w.depth = 2), _(w.colors) && (w.colors = !1), _(w.customInspect) && (w.customInspect = !0), w.colors && (w.stylize = u), c(w, U, w.depth);
8194
+ return arguments.length >= 3 && (w.depth = arguments[2]), arguments.length >= 4 && (w.colors = arguments[3]), y(T) ? w.showHidden = T : T && t._extend(w, T), C(w.showHidden) && (w.showHidden = !1), C(w.depth) && (w.depth = 2), C(w.colors) && (w.colors = !1), C(w.customInspect) && (w.customInspect = !0), w.colors && (w.stylize = u), c(w, U, w.depth);
8197
8195
  }
8198
8196
  t.inspect = o, o.colors = {
8199
8197
  bold: [1, 22],
@@ -8274,7 +8272,7 @@ var _pe = dL.exports;
8274
8272
  }), U.seen.pop(), m(H, $, Q);
8275
8273
  }
8276
8274
  function f(U, T) {
8277
- if (_(T))
8275
+ if (C(T))
8278
8276
  return U.stylize("undefined", "undefined");
8279
8277
  if (v(T)) {
8280
8278
  var w = "'" + JSON.stringify(T).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
@@ -8323,7 +8321,7 @@ var _pe = dL.exports;
8323
8321
  `).map(function(j) {
8324
8322
  return " " + j;
8325
8323
  }).join(`
8326
- `))) : D = U.stylize("[Circular]", "special")), _(V)) {
8324
+ `))) : D = U.stylize("[Circular]", "special")), C(V)) {
8327
8325
  if (Y && z.match(/^\d+$/))
8328
8326
  return D;
8329
8327
  V = JSON.stringify("" + z), V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (V = V.substr(1, V.length - 2), V = U.stylize(V, "name")) : (V = V.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), V = U.stylize(V, "string"));
@@ -8364,14 +8362,14 @@ var _pe = dL.exports;
8364
8362
  return typeof U == "string";
8365
8363
  }
8366
8364
  t.isString = v;
8367
- function C(U) {
8365
+ function _(U) {
8368
8366
  return typeof U == "symbol";
8369
8367
  }
8370
- t.isSymbol = C;
8371
- function _(U) {
8368
+ t.isSymbol = _;
8369
+ function C(U) {
8372
8370
  return U === void 0;
8373
8371
  }
8374
- t.isUndefined = _;
8372
+ t.isUndefined = C;
8375
8373
  function b(U) {
8376
8374
  return R(U) && W(U) === "[object RegExp]";
8377
8375
  }
@@ -8554,14 +8552,14 @@ function uW() {
8554
8552
  var u = {}, a, l;
8555
8553
  function c(m, g, y) {
8556
8554
  y || (y = Error);
8557
- function E(S, v, C) {
8558
- return typeof g == "string" ? g : g(S, v, C);
8555
+ function E(S, v, _) {
8556
+ return typeof g == "string" ? g : g(S, v, _);
8559
8557
  }
8560
8558
  var A = /* @__PURE__ */ function(S) {
8561
8559
  s(v, S);
8562
- function v(C, _, b) {
8560
+ function v(_, C, b) {
8563
8561
  var R;
8564
- return e(this, v), R = n(this, i(v).call(this, E(C, _, b))), R.code = m, R;
8562
+ return e(this, v), R = n(this, i(v).call(this, E(_, C, b))), R.code = m, R;
8565
8563
  }
8566
8564
  return v;
8567
8565
  }(y);
@@ -8741,7 +8739,7 @@ function Cpe() {
8741
8739
  B += B, G--;
8742
8740
  return B += B.substring(0, te - B.length), B;
8743
8741
  }
8744
- var v = "", C = "", _ = "", b = "", R = {
8742
+ var v = "", _ = "", C = "", b = "", R = {
8745
8743
  deepStrictEqual: "Expected values to be strictly deep-equal:",
8746
8744
  strictEqual: "Expected values to be strictly equal:",
8747
8745
  strictEqualObject: 'Expected "actual" to be reference-equal to "expected":',
@@ -8825,7 +8823,7 @@ function Cpe() {
8825
8823
  `.concat(v, "...").concat(b).concat(ee), U = !0), X !== "" && (ee = `
8826
8824
  `.concat(X).concat(ee), X = "");
8827
8825
  var H = 0, P = R[te] + `
8828
- `.concat(C, "+ actual").concat(b, " ").concat(_, "- expected").concat(b), J = " ".concat(v, "...").concat(b, " Lines skipped");
8826
+ `.concat(_, "+ actual").concat(b, " ").concat(C, "- expected").concat(b), J = " ".concat(v, "...").concat(b, " Lines skipped");
8829
8827
  for (z = 0; z < Q; z++) {
8830
8828
  var ce = z - be;
8831
8829
  if (w.length < z + 1)
@@ -8833,21 +8831,21 @@ function Cpe() {
8833
8831
  `.concat(v, "...").concat(b), U = !0) : ce > 3 && (de += `
8834
8832
  `.concat(k[z - 2]), H++), de += `
8835
8833
  `.concat(k[z - 1]), H++), be = z, X += `
8836
- `.concat(_, "-").concat(b, " ").concat(k[z]), H++;
8834
+ `.concat(C, "-").concat(b, " ").concat(k[z]), H++;
8837
8835
  else if (k.length < z + 1)
8838
8836
  ce > 1 && z > 2 && (ce > 4 ? (de += `
8839
8837
  `.concat(v, "...").concat(b), U = !0) : ce > 3 && (de += `
8840
8838
  `.concat(w[z - 2]), H++), de += `
8841
8839
  `.concat(w[z - 1]), H++), be = z, de += `
8842
- `.concat(C, "+").concat(b, " ").concat(w[z]), H++;
8840
+ `.concat(_, "+").concat(b, " ").concat(w[z]), H++;
8843
8841
  else {
8844
8842
  var ue = k[z], Z = w[z], ae = Z !== ue && (!A(Z, ",") || Z.slice(0, -1) !== ue);
8845
8843
  ae && A(ue, ",") && ue.slice(0, -1) === Z && (ae = !1, Z += ","), ae ? (ce > 1 && z > 2 && (ce > 4 ? (de += `
8846
8844
  `.concat(v, "...").concat(b), U = !0) : ce > 3 && (de += `
8847
8845
  `.concat(w[z - 2]), H++), de += `
8848
8846
  `.concat(w[z - 1]), H++), be = z, de += `
8849
- `.concat(C, "+").concat(b, " ").concat(Z), X += `
8850
- `.concat(_, "-").concat(b, " ").concat(ue), H += 2) : (de += X, X = "", (ce === 1 || z === 0) && (de += `
8847
+ `.concat(_, "+").concat(b, " ").concat(Z), X += `
8848
+ `.concat(C, "-").concat(b, " ").concat(ue), H += 2) : (de += X, X = "", (ce === 1 || z === 0) && (de += `
8851
8849
  `.concat(Z), H++));
8852
8850
  }
8853
8851
  if (H > 20 && z < Q - 2)
@@ -8868,7 +8866,7 @@ function Cpe() {
8868
8866
  var de = te.message, be = te.operator, ee = te.stackStartFn, U = te.actual, T = te.expected, w = Error.stackTraceLimit;
8869
8867
  if (Error.stackTraceLimit = 0, de != null)
8870
8868
  X = s(this, h(G).call(this, String(de)));
8871
- else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (v = "\x1B[34m", C = "\x1B[32m", b = "\x1B[39m", _ = "\x1B[31m") : (v = "", C = "", b = "", _ = "")), p(U) === "object" && U !== null && p(T) === "object" && T !== null && "stack" in U && U instanceof Error && "stack" in T && T instanceof Error && (U = L(U), T = L(T)), be === "deepStrictEqual" || be === "strictEqual")
8869
+ else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1 ? (v = "\x1B[34m", _ = "\x1B[32m", b = "\x1B[39m", C = "\x1B[31m") : (v = "", _ = "", b = "", C = "")), p(U) === "object" && U !== null && p(T) === "object" && T !== null && "stack" in U && U instanceof Error && "stack" in T && T instanceof Error && (U = L(U), T = L(T)), be === "deepStrictEqual" || be === "strictEqual")
8872
8870
  X = s(this, h(G).call(this, q(U, T, be)));
8873
8871
  else if (be === "notDeepStrictEqual" || be === "notStrictEqual") {
8874
8872
  var k = R[be], z = M(U).split(`
@@ -9038,11 +9036,11 @@ function Tpe() {
9038
9036
  for (var v = 0; v < h.length; ++v)
9039
9037
  E.push(String(v));
9040
9038
  else
9041
- for (var C in h)
9042
- !(A && C === "prototype") && e.call(h, C) && E.push(String(C));
9039
+ for (var _ in h)
9040
+ !(A && _ === "prototype") && e.call(h, _) && E.push(String(_));
9043
9041
  if (s)
9044
- for (var _ = f(h), b = 0; b < u.length; ++b)
9045
- !(_ && u[b] === "constructor") && e.call(h, u[b]) && E.push(u[b]);
9042
+ for (var C = f(h), b = 0; b < u.length; ++b)
9043
+ !(C && u[b] === "constructor") && e.call(h, u[b]) && E.push(u[b]);
9046
9044
  return E;
9047
9045
  };
9048
9046
  }
@@ -9305,7 +9303,7 @@ function wpe() {
9305
9303
  function f(se) {
9306
9304
  return se.call.bind(se);
9307
9305
  }
9308
- var x = f(Object.prototype.hasOwnProperty), h = f(Object.prototype.propertyIsEnumerable), p = f(Object.prototype.toString), m = H0.types, g = m.isAnyArrayBuffer, y = m.isArrayBufferView, E = m.isDate, A = m.isMap, S = m.isRegExp, v = m.isSet, C = m.isNativeError, _ = m.isBoxedPrimitive, b = m.isNumberObject, R = m.isStringObject, O = m.isBooleanObject, L = m.isBigIntObject, M = m.isSymbolObject, q = m.isFloat32Array, W = m.isFloat64Array;
9306
+ var x = f(Object.prototype.hasOwnProperty), h = f(Object.prototype.propertyIsEnumerable), p = f(Object.prototype.toString), m = H0.types, g = m.isAnyArrayBuffer, y = m.isArrayBufferView, E = m.isDate, A = m.isMap, S = m.isRegExp, v = m.isSet, _ = m.isNativeError, C = m.isBoxedPrimitive, b = m.isNumberObject, R = m.isStringObject, O = m.isBooleanObject, L = m.isBigIntObject, M = m.isSymbolObject, q = m.isFloat32Array, W = m.isFloat64Array;
9309
9307
  function B(se) {
9310
9308
  if (se.length === 0 || se.length > 10)
9311
9309
  return !0;
@@ -9387,7 +9385,7 @@ function wpe() {
9387
9385
  } else if (S(se)) {
9388
9386
  if (!S(xe) || !w(se, xe))
9389
9387
  return !1;
9390
- } else if (C(se) || se instanceof Error) {
9388
+ } else if (_(se) || se instanceof Error) {
9391
9389
  if (se.message !== xe.message || se.name !== xe.name)
9392
9390
  return !1;
9393
9391
  } else if (y(se)) {
@@ -9406,7 +9404,7 @@ function wpe() {
9406
9404
  if (g(se)) {
9407
9405
  if (!Y(se, xe))
9408
9406
  return !1;
9409
- } else if (_(se) && !V(se, xe))
9407
+ } else if (C(se) && !V(se, xe))
9410
9408
  return !1;
9411
9409
  }
9412
9410
  return j(se, xe, Ce, Oe, be);
@@ -9625,8 +9623,8 @@ function Di() {
9625
9623
  var ee = wpe();
9626
9624
  y = ee.isDeepEqual, E = ee.isDeepStrictEqual;
9627
9625
  }
9628
- var S = !1, v = hD.exports = O, C = {};
9629
- function _(ee) {
9626
+ var S = !1, v = hD.exports = O, _ = {};
9627
+ function C(ee) {
9630
9628
  throw ee.message instanceof Error ? ee.message : new l(ee);
9631
9629
  }
9632
9630
  function b(ee, U, T, w, k) {
@@ -9681,7 +9679,7 @@ function Di() {
9681
9679
  v.ok = O, v.equal = function ee(U, T, w) {
9682
9680
  if (arguments.length < 2)
9683
9681
  throw new a("actual", "expected");
9684
- U != T && _({
9682
+ U != T && C({
9685
9683
  actual: U,
9686
9684
  expected: T,
9687
9685
  message: w,
@@ -9691,7 +9689,7 @@ function Di() {
9691
9689
  }, v.notEqual = function ee(U, T, w) {
9692
9690
  if (arguments.length < 2)
9693
9691
  throw new a("actual", "expected");
9694
- U == T && _({
9692
+ U == T && C({
9695
9693
  actual: U,
9696
9694
  expected: T,
9697
9695
  message: w,
@@ -9701,7 +9699,7 @@ function Di() {
9701
9699
  }, v.deepEqual = function ee(U, T, w) {
9702
9700
  if (arguments.length < 2)
9703
9701
  throw new a("actual", "expected");
9704
- y === void 0 && A(), y(U, T) || _({
9702
+ y === void 0 && A(), y(U, T) || C({
9705
9703
  actual: U,
9706
9704
  expected: T,
9707
9705
  message: w,
@@ -9711,7 +9709,7 @@ function Di() {
9711
9709
  }, v.notDeepEqual = function ee(U, T, w) {
9712
9710
  if (arguments.length < 2)
9713
9711
  throw new a("actual", "expected");
9714
- y === void 0 && A(), y(U, T) && _({
9712
+ y === void 0 && A(), y(U, T) && C({
9715
9713
  actual: U,
9716
9714
  expected: T,
9717
9715
  message: w,
@@ -9721,7 +9719,7 @@ function Di() {
9721
9719
  }, v.deepStrictEqual = function ee(U, T, w) {
9722
9720
  if (arguments.length < 2)
9723
9721
  throw new a("actual", "expected");
9724
- y === void 0 && A(), E(U, T) || _({
9722
+ y === void 0 && A(), E(U, T) || C({
9725
9723
  actual: U,
9726
9724
  expected: T,
9727
9725
  message: w,
@@ -9732,7 +9730,7 @@ function Di() {
9732
9730
  function L(ee, U, T) {
9733
9731
  if (arguments.length < 2)
9734
9732
  throw new a("actual", "expected");
9735
- y === void 0 && A(), E(ee, U) && _({
9733
+ y === void 0 && A(), E(ee, U) && C({
9736
9734
  actual: ee,
9737
9735
  expected: U,
9738
9736
  message: T,
@@ -9743,7 +9741,7 @@ function Di() {
9743
9741
  v.strictEqual = function ee(U, T, w) {
9744
9742
  if (arguments.length < 2)
9745
9743
  throw new a("actual", "expected");
9746
- g(U, T) || _({
9744
+ g(U, T) || C({
9747
9745
  actual: U,
9748
9746
  expected: T,
9749
9747
  message: w,
@@ -9753,7 +9751,7 @@ function Di() {
9753
9751
  }, v.notStrictEqual = function ee(U, T, w) {
9754
9752
  if (arguments.length < 2)
9755
9753
  throw new a("actual", "expected");
9756
- g(U, T) && _({
9754
+ g(U, T) && C({
9757
9755
  actual: U,
9758
9756
  expected: T,
9759
9757
  message: w,
@@ -9778,7 +9776,7 @@ function Di() {
9778
9776
  });
9779
9777
  throw D.actual = ee, D.expected = U, D.operator = z.name, D;
9780
9778
  }
9781
- _({
9779
+ C({
9782
9780
  actual: ee,
9783
9781
  expected: U,
9784
9782
  message: w,
@@ -9822,7 +9820,7 @@ function Di() {
9822
9820
  } catch (U) {
9823
9821
  return U;
9824
9822
  }
9825
- return C;
9823
+ return _;
9826
9824
  }
9827
9825
  function G(ee) {
9828
9826
  return h(ee) || ee !== null && t(ee) === "object" && typeof ee.then == "function" && typeof ee.catch == "function";
@@ -9840,7 +9838,7 @@ function Di() {
9840
9838
  return Promise.resolve().then(function() {
9841
9839
  return U;
9842
9840
  }).then(function() {
9843
- return C;
9841
+ return _;
9844
9842
  }).catch(function(T) {
9845
9843
  return T;
9846
9844
  });
@@ -9858,11 +9856,11 @@ function Di() {
9858
9856
  w = T, T = void 0;
9859
9857
  } else if (T != null && t(T) !== "object" && typeof T != "function")
9860
9858
  throw new s("error", ["Object", "Error", "Function", "RegExp"], T);
9861
- if (U === C) {
9859
+ if (U === _) {
9862
9860
  var k = "";
9863
9861
  T && T.name && (k += " (".concat(T.name, ")")), k += w ? ": ".concat(w) : ".";
9864
9862
  var z = ee.name === "rejects" ? "rejection" : "exception";
9865
- _({
9863
+ C({
9866
9864
  actual: void 0,
9867
9865
  expected: T,
9868
9866
  operator: ee.name,
@@ -9874,10 +9872,10 @@ function Di() {
9874
9872
  throw U;
9875
9873
  }
9876
9874
  function de(ee, U, T, w) {
9877
- if (U !== C) {
9875
+ if (U !== _) {
9878
9876
  if (typeof T == "string" && (w = T, T = void 0), !T || W(U, T)) {
9879
9877
  var k = w ? ": ".concat(w) : ".", z = ee.name === "doesNotReject" ? "rejection" : "exception";
9880
- _({
9878
+ C({
9881
9879
  actual: U,
9882
9880
  expected: T,
9883
9881
  operator: ee.name,
@@ -10945,27 +10943,27 @@ hn.toCharArray = Jpe;
10945
10943
  }
10946
10944
  t.SemanticContext = f, function(x) {
10947
10945
  function m(v) {
10948
- let C = [];
10949
- for (let _ = 0; _ < v.length; _++) {
10950
- let b = v[_];
10951
- b instanceof x.PrecedencePredicate && (C.push(b), v.splice(_, 1), _--);
10946
+ let _ = [];
10947
+ for (let C = 0; C < v.length; C++) {
10948
+ let b = v[C];
10949
+ b instanceof x.PrecedencePredicate && (_.push(b), v.splice(C, 1), C--);
10952
10950
  }
10953
- return C;
10951
+ return _;
10954
10952
  }
10955
10953
  class g extends x {
10956
- constructor(C = -1, _ = -1, b = !1) {
10957
- super(), this.ruleIndex = C, this.predIndex = _, this.isCtxDependent = b;
10954
+ constructor(_ = -1, C = -1, b = !1) {
10955
+ super(), this.ruleIndex = _, this.predIndex = C, this.isCtxDependent = b;
10958
10956
  }
10959
- eval(C, _) {
10960
- let b = this.isCtxDependent ? _ : void 0;
10961
- return C.sempred(b, this.ruleIndex, this.predIndex);
10957
+ eval(_, C) {
10958
+ let b = this.isCtxDependent ? C : void 0;
10959
+ return _.sempred(b, this.ruleIndex, this.predIndex);
10962
10960
  }
10963
10961
  hashCode() {
10964
- let C = s.MurmurHash.initialize();
10965
- return C = s.MurmurHash.update(C, this.ruleIndex), C = s.MurmurHash.update(C, this.predIndex), C = s.MurmurHash.update(C, this.isCtxDependent ? 1 : 0), C = s.MurmurHash.finish(C, 3), C;
10962
+ let _ = s.MurmurHash.initialize();
10963
+ return _ = s.MurmurHash.update(_, this.ruleIndex), _ = s.MurmurHash.update(_, this.predIndex), _ = s.MurmurHash.update(_, this.isCtxDependent ? 1 : 0), _ = s.MurmurHash.finish(_, 3), _;
10966
10964
  }
10967
- equals(C) {
10968
- return C instanceof g ? this === C ? !0 : this.ruleIndex === C.ruleIndex && this.predIndex === C.predIndex && this.isCtxDependent === C.isCtxDependent : !1;
10965
+ equals(_) {
10966
+ return _ instanceof g ? this === _ ? !0 : this.ruleIndex === _.ruleIndex && this.predIndex === _.predIndex && this.isCtxDependent === _.isCtxDependent : !1;
10969
10967
  }
10970
10968
  toString() {
10971
10969
  return "{" + this.ruleIndex + ":" + this.predIndex + "}?";
@@ -10981,25 +10979,25 @@ hn.toCharArray = Jpe;
10981
10979
  o.Override
10982
10980
  ], g.prototype, "toString", null), x.Predicate = g;
10983
10981
  class y extends x {
10984
- constructor(C) {
10985
- super(), this.precedence = C;
10982
+ constructor(_) {
10983
+ super(), this.precedence = _;
10986
10984
  }
10987
- eval(C, _) {
10988
- return C.precpred(_, this.precedence);
10985
+ eval(_, C) {
10986
+ return _.precpred(C, this.precedence);
10989
10987
  }
10990
- evalPrecedence(C, _) {
10991
- if (C.precpred(_, this.precedence))
10988
+ evalPrecedence(_, C) {
10989
+ if (_.precpred(C, this.precedence))
10992
10990
  return x.NONE;
10993
10991
  }
10994
- compareTo(C) {
10995
- return this.precedence - C.precedence;
10992
+ compareTo(_) {
10993
+ return this.precedence - _.precedence;
10996
10994
  }
10997
10995
  hashCode() {
10998
- let C = 1;
10999
- return C = 31 * C + this.precedence, C;
10996
+ let _ = 1;
10997
+ return _ = 31 * _ + this.precedence, _;
11000
10998
  }
11001
- equals(C) {
11002
- return C instanceof y ? this === C ? !0 : this.precedence === C.precedence : !1;
10999
+ equals(_) {
11000
+ return _ instanceof y ? this === _ ? !0 : this.precedence === _.precedence : !1;
11003
11001
  }
11004
11002
  toString() {
11005
11003
  return "{" + this.precedence + ">=prec}?";
@@ -11022,18 +11020,18 @@ hn.toCharArray = Jpe;
11022
11020
  }
11023
11021
  x.Operator = E;
11024
11022
  let A = class KA extends E {
11025
- constructor(C, _) {
11023
+ constructor(_, C) {
11026
11024
  super();
11027
11025
  let b = new r.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);
11028
- C instanceof KA ? b.addAll(C.opnds) : b.add(C), _ instanceof KA ? b.addAll(_.opnds) : b.add(_), this.opnds = b.toArray();
11026
+ _ instanceof KA ? b.addAll(_.opnds) : b.add(_), C instanceof KA ? b.addAll(C.opnds) : b.add(C), this.opnds = b.toArray();
11029
11027
  let R = m(this.opnds), O = c(R);
11030
11028
  O && this.opnds.push(O);
11031
11029
  }
11032
11030
  get operands() {
11033
11031
  return this.opnds;
11034
11032
  }
11035
- equals(C) {
11036
- return this === C ? !0 : C instanceof KA ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, C.opnds) : !1;
11033
+ equals(_) {
11034
+ return this === _ ? !0 : _ instanceof KA ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, _.opnds) : !1;
11037
11035
  }
11038
11036
  hashCode() {
11039
11037
  return s.MurmurHash.hashCode(this.opnds, 40363613);
@@ -11044,16 +11042,16 @@ hn.toCharArray = Jpe;
11044
11042
  * The evaluation of predicates by this context is short-circuiting, but
11045
11043
  * unordered.
11046
11044
  */
11047
- eval(C, _) {
11045
+ eval(_, C) {
11048
11046
  for (let b of this.opnds)
11049
- if (!b.eval(C, _))
11047
+ if (!b.eval(_, C))
11050
11048
  return !1;
11051
11049
  return !0;
11052
11050
  }
11053
- evalPrecedence(C, _) {
11051
+ evalPrecedence(_, C) {
11054
11052
  let b = !1, R = [];
11055
11053
  for (let L of this.opnds) {
11056
- let M = L.evalPrecedence(C, _);
11054
+ let M = L.evalPrecedence(_, C);
11057
11055
  if (b = b || M !== L, M == null)
11058
11056
  return;
11059
11057
  M !== x.NONE && R.push(M);
@@ -11088,18 +11086,18 @@ hn.toCharArray = Jpe;
11088
11086
  n(1, o.NotNull)
11089
11087
  ], A), x.AND = A;
11090
11088
  let S = class XA extends E {
11091
- constructor(C, _) {
11089
+ constructor(_, C) {
11092
11090
  super();
11093
11091
  let b = new r.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);
11094
- C instanceof XA ? b.addAll(C.opnds) : b.add(C), _ instanceof XA ? b.addAll(_.opnds) : b.add(_), this.opnds = b.toArray();
11092
+ _ instanceof XA ? b.addAll(_.opnds) : b.add(_), C instanceof XA ? b.addAll(C.opnds) : b.add(C), this.opnds = b.toArray();
11095
11093
  let R = m(this.opnds), O = l(R);
11096
11094
  O && this.opnds.push(O);
11097
11095
  }
11098
11096
  get operands() {
11099
11097
  return this.opnds;
11100
11098
  }
11101
- equals(C) {
11102
- return this === C ? !0 : C instanceof XA ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, C.opnds) : !1;
11099
+ equals(_) {
11100
+ return this === _ ? !0 : _ instanceof XA ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, _.opnds) : !1;
11103
11101
  }
11104
11102
  hashCode() {
11105
11103
  return s.MurmurHash.hashCode(this.opnds, 486279973);
@@ -11110,16 +11108,16 @@ hn.toCharArray = Jpe;
11110
11108
  * The evaluation of predicates by this context is short-circuiting, but
11111
11109
  * unordered.
11112
11110
  */
11113
- eval(C, _) {
11111
+ eval(_, C) {
11114
11112
  for (let b of this.opnds)
11115
- if (b.eval(C, _))
11113
+ if (b.eval(_, C))
11116
11114
  return !0;
11117
11115
  return !1;
11118
11116
  }
11119
- evalPrecedence(C, _) {
11117
+ evalPrecedence(_, C) {
11120
11118
  let b = !1, R = [];
11121
11119
  for (let L of this.opnds) {
11122
- let M = L.evalPrecedence(C, _);
11120
+ let M = L.evalPrecedence(_, C);
11123
11121
  if (b = b || M !== L, M === x.NONE)
11124
11122
  return x.NONE;
11125
11123
  M && R.push(M);
@@ -12088,8 +12086,8 @@ function ru() {
12088
12086
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
12089
12087
  S = Reflect.decorate(m, g, y, E);
12090
12088
  else
12091
- for (var C = m.length - 1; C >= 0; C--)
12092
- (v = m[C]) && (S = (A < 3 ? v(S) : A > 3 ? v(g, y, S) : v(g, y)) || S);
12089
+ for (var _ = m.length - 1; _ >= 0; _--)
12090
+ (v = m[_]) && (S = (A < 3 ? v(S) : A > 3 ? v(g, y, S) : v(g, y)) || S);
12093
12091
  return A > 3 && S && Object.defineProperty(g, y, S), S;
12094
12092
  }, n = N && N.__param || function(m, g) {
12095
12093
  return function(y, E) {
@@ -12144,14 +12142,14 @@ function ru() {
12144
12142
  let M = E.join(g.getParent(0), y.getParent(0));
12145
12143
  return M === g.getParent(0) ? g : M === y.getParent(0) ? y : M.getChild(g.getReturnState(0));
12146
12144
  }
12147
- let v = 0, C = new Array(A + S), _ = new Array(C.length), b = 0, R = 0, O = !0, L = !0;
12145
+ let v = 0, _ = new Array(A + S), C = new Array(_.length), b = 0, R = 0, O = !0, L = !0;
12148
12146
  for (; b < A && R < S; )
12149
- g.getReturnState(b) === y.getReturnState(R) ? (C[v] = E.join(g.getParent(b), y.getParent(R)), _[v] = g.getReturnState(b), O = O && C[v] === g.getParent(b), L = L && C[v] === y.getParent(R), b++, R++) : g.getReturnState(b) < y.getReturnState(R) ? (C[v] = g.getParent(b), _[v] = g.getReturnState(b), L = !1, b++) : (l(y.getReturnState(R) < g.getReturnState(b)), C[v] = y.getParent(R), _[v] = y.getReturnState(R), O = !1, R++), v++;
12147
+ g.getReturnState(b) === y.getReturnState(R) ? (_[v] = E.join(g.getParent(b), y.getParent(R)), C[v] = g.getReturnState(b), O = O && _[v] === g.getParent(b), L = L && _[v] === y.getParent(R), b++, R++) : g.getReturnState(b) < y.getReturnState(R) ? (_[v] = g.getParent(b), C[v] = g.getReturnState(b), L = !1, b++) : (l(y.getReturnState(R) < g.getReturnState(b)), _[v] = y.getParent(R), C[v] = y.getReturnState(R), O = !1, R++), v++;
12150
12148
  for (; b < A; )
12151
- C[v] = g.getParent(b), _[v] = g.getReturnState(b), b++, L = !1, v++;
12149
+ _[v] = g.getParent(b), C[v] = g.getReturnState(b), b++, L = !1, v++;
12152
12150
  for (; R < S; )
12153
- C[v] = y.getParent(R), _[v] = y.getReturnState(R), R++, O = !1, v++;
12154
- return O ? g : L ? y : (v < C.length && (C = C.slice(0, v), _ = _.slice(0, v)), C.length === 0 ? f.EMPTY_FULL : C.length === 1 ? new p(C[0], _[0]) : new h(C, _));
12151
+ _[v] = y.getParent(R), C[v] = y.getReturnState(R), R++, O = !1, v++;
12152
+ return O ? g : L ? y : (v < _.length && (_ = _.slice(0, v), C = C.slice(0, v)), _.length === 0 ? f.EMPTY_FULL : _.length === 1 ? new p(_[0], C[0]) : new h(_, C));
12155
12153
  }
12156
12154
  static isEmptyLocal(g) {
12157
12155
  return g === f.EMPTY_LOCAL;
@@ -12165,30 +12163,30 @@ function ru() {
12165
12163
  if (A = y.get(g), A)
12166
12164
  return E.put(g, A), A;
12167
12165
  let S = !1, v = new Array(g.size);
12168
- for (let _ = 0; _ < v.length; _++) {
12169
- let b = f.getCachedContext(g.getParent(_), y, E);
12170
- if (S || b !== g.getParent(_)) {
12166
+ for (let C = 0; C < v.length; C++) {
12167
+ let b = f.getCachedContext(g.getParent(C), y, E);
12168
+ if (S || b !== g.getParent(C)) {
12171
12169
  if (!S) {
12172
12170
  v = new Array(g.size);
12173
12171
  for (let R = 0; R < g.size; R++)
12174
12172
  v[R] = g.getParent(R);
12175
12173
  S = !0;
12176
12174
  }
12177
- v[_] = b;
12175
+ v[C] = b;
12178
12176
  }
12179
12177
  }
12180
12178
  if (!S)
12181
12179
  return A = y.putIfAbsent(g, g), E.put(g, A ?? g), g;
12182
- let C;
12180
+ let _;
12183
12181
  if (v.length === 1)
12184
- C = new p(v[0], g.getReturnState(0));
12182
+ _ = new p(v[0], g.getReturnState(0));
12185
12183
  else {
12186
- let _ = new Array(g.size);
12184
+ let C = new Array(g.size);
12187
12185
  for (let b = 0; b < g.size; b++)
12188
- _[b] = g.getReturnState(b);
12189
- C = new h(v, _, g.hashCode());
12186
+ C[b] = g.getReturnState(b);
12187
+ _ = new h(v, C, g.hashCode());
12190
12188
  }
12191
- return A = y.putIfAbsent(C, C), E.put(C, A || C), E.put(g, A || C), C;
12189
+ return A = y.putIfAbsent(_, _), E.put(_, A || _), E.put(g, A || _), _;
12192
12190
  }
12193
12191
  appendSingleContext(g, y) {
12194
12192
  return this.appendContext(f.EMPTY_FULL.getChild(g), y);
@@ -12203,15 +12201,15 @@ function ru() {
12203
12201
  let A = [];
12204
12202
  e:
12205
12203
  for (let S = 0; ; S++) {
12206
- let v = 0, C = !0, _ = this, b = y, R = "";
12207
- for (R += "["; !_.isEmpty && _ !== E; ) {
12204
+ let v = 0, _ = !0, C = this, b = y, R = "";
12205
+ for (R += "["; !C.isEmpty && C !== E; ) {
12208
12206
  let O = 0;
12209
- if (_.size > 0) {
12207
+ if (C.size > 0) {
12210
12208
  let L = 1;
12211
- for (; 1 << L >>> 0 < _.size; )
12209
+ for (; 1 << L >>> 0 < C.size; )
12212
12210
  L++;
12213
12211
  let M = (1 << L >>> 0) - 1;
12214
- if (O = S >> v & M, C = C && O >= _.size - 1, O >= _.size)
12212
+ if (O = S >> v & M, _ = _ && O >= C.size - 1, O >= C.size)
12215
12213
  continue e;
12216
12214
  v += L;
12217
12215
  }
@@ -12220,10 +12218,10 @@ function ru() {
12220
12218
  let M = g.atn.states[b], q = g.ruleNames[M.ruleIndex];
12221
12219
  R += q;
12222
12220
  } else
12223
- _.getReturnState(O) !== f.EMPTY_FULL_STATE_KEY && (_.isEmpty || (R.length > 1 && (R += " "), R += _.getReturnState(O)));
12224
- b = _.getReturnState(O), _ = _.getParent(O);
12221
+ C.getReturnState(O) !== f.EMPTY_FULL_STATE_KEY && (C.isEmpty || (R.length > 1 && (R += " "), R += C.getReturnState(O)));
12222
+ b = C.getReturnState(O), C = C.getParent(O);
12225
12223
  }
12226
- if (R += "]", A.push(R), C)
12224
+ if (R += "]", A.push(R), _)
12227
12225
  break;
12228
12226
  }
12229
12227
  return A;
@@ -12368,12 +12366,12 @@ function ru() {
12368
12366
  else {
12369
12367
  let S = g.size;
12370
12368
  g.hasEmpty && S--;
12371
- let v = new Array(S), C = new Array(S);
12372
- for (let _ = 0; _ < S; _++)
12373
- C[_] = g.getReturnState(_);
12374
- for (let _ = 0; _ < S; _++)
12375
- v[_] = Tf.appendContextImpl(g.getParent(_), y, E);
12376
- v.length === 1 ? A = new p(v[0], C[0]) : (l(v.length > 1), A = new Tf(v, C)), g.hasEmpty && (A = f.join(A, y));
12369
+ let v = new Array(S), _ = new Array(S);
12370
+ for (let C = 0; C < S; C++)
12371
+ _[C] = g.getReturnState(C);
12372
+ for (let C = 0; C < S; C++)
12373
+ v[C] = Tf.appendContextImpl(g.getParent(C), y, E);
12374
+ v.length === 1 ? A = new p(v[0], _[0]) : (l(v.length > 1), A = new Tf(v, _)), g.hasEmpty && (A = f.join(A, y));
12377
12375
  }
12378
12376
  E.put(g, A);
12379
12377
  }
@@ -12393,22 +12391,22 @@ function ru() {
12393
12391
  let S = E.pop(), v = A.pop();
12394
12392
  if (!S || !v)
12395
12393
  break;
12396
- let C = new a.PredictionContextCache.IdentityCommutativePredictionContextOperands(S, v);
12397
- if (!y.add(C))
12394
+ let _ = new a.PredictionContextCache.IdentityCommutativePredictionContextOperands(S, v);
12395
+ if (!y.add(_))
12398
12396
  continue;
12399
- let _ = C.x.size;
12400
- if (_ === 0) {
12401
- if (!C.x.equals(C.y))
12397
+ let C = _.x.size;
12398
+ if (C === 0) {
12399
+ if (!_.x.equals(_.y))
12402
12400
  return !1;
12403
12401
  continue;
12404
12402
  }
12405
- let b = C.y.size;
12406
- if (_ !== b)
12403
+ let b = _.y.size;
12404
+ if (C !== b)
12407
12405
  return !1;
12408
- for (let R = 0; R < _; R++) {
12409
- if (C.x.getReturnState(R) !== C.y.getReturnState(R))
12406
+ for (let R = 0; R < C; R++) {
12407
+ if (_.x.getReturnState(R) !== _.y.getReturnState(R))
12410
12408
  return !1;
12411
- let O = C.x.getParent(R), L = C.y.getParent(R);
12409
+ let O = _.x.getParent(R), L = _.y.getParent(R);
12412
12410
  if (O.hashCode() !== L.hashCode())
12413
12411
  return !1;
12414
12412
  O !== L && (E.push(O), A.push(L));
@@ -13285,13 +13283,13 @@ function Ty() {
13285
13283
  * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
13286
13284
  */
13287
13285
  var t = N && N.__decorate || function(y, E, A, S) {
13288
- var v = arguments.length, C = v < 3 ? E : S === null ? S = Object.getOwnPropertyDescriptor(E, A) : S, _;
13286
+ var v = arguments.length, _ = v < 3 ? E : S === null ? S = Object.getOwnPropertyDescriptor(E, A) : S, C;
13289
13287
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
13290
- C = Reflect.decorate(y, E, A, S);
13288
+ _ = Reflect.decorate(y, E, A, S);
13291
13289
  else
13292
13290
  for (var b = y.length - 1; b >= 0; b--)
13293
- (_ = y[b]) && (C = (v < 3 ? _(C) : v > 3 ? _(E, A, C) : _(E, A)) || C);
13294
- return v > 3 && C && Object.defineProperty(E, A, C), C;
13291
+ (C = y[b]) && (_ = (v < 3 ? C(_) : v > 3 ? C(E, A, _) : C(E, A)) || _);
13292
+ return v > 3 && _ && Object.defineProperty(E, A, _), _;
13295
13293
  };
13296
13294
  Object.defineProperty(ag, "__esModule", { value: !0 }), ag.ATNConfigSet = void 0;
13297
13295
  const e = Bl, n = nu, r = Wx, i = su(), s = Yx, o = iu, u = ye, a = Ms, l = ru(), c = RI(), f = Gx, x = Di(), h = hn;
@@ -13362,8 +13360,8 @@ function Ty() {
13362
13360
  let A = E, S = this.getKey(A), v = this.mergedConfigs.get(S);
13363
13361
  if (v != null && this.canMerge(A, S, v))
13364
13362
  return v.contains(A);
13365
- for (let C of this.unmerged)
13366
- if (C.contains(E))
13363
+ for (let _ of this.unmerged)
13364
+ if (_.contains(E))
13367
13365
  return !0;
13368
13366
  } else
13369
13367
  for (let A of this.configs)
@@ -13381,18 +13379,18 @@ function Ty() {
13381
13379
  if (this.ensureWritable(), !this.mergedConfigs || !this.unmerged)
13382
13380
  throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");
13383
13381
  x(!this.outermostConfigSet || !E.reachesIntoOuterContext), A == null && (A = c.PredictionContextCache.UNCACHED);
13384
- let S, v = this.getKey(E), C = this.mergedConfigs.get(v);
13385
- if (S = C == null, C != null && this.canMerge(E, v, C)) {
13386
- C.outerContextDepth = Math.max(C.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (C.isPrecedenceFilterSuppressed = !0);
13387
- let _ = l.PredictionContext.join(C.context, E.context, A);
13388
- return this.updatePropertiesForMergedConfig(E), C.context === _ ? !1 : (C.context = _, !0);
13389
- }
13390
- for (let _ = 0; _ < this.unmerged.length; _++) {
13391
- let b = this.unmerged[_];
13382
+ let S, v = this.getKey(E), _ = this.mergedConfigs.get(v);
13383
+ if (S = _ == null, _ != null && this.canMerge(E, v, _)) {
13384
+ _.outerContextDepth = Math.max(_.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (_.isPrecedenceFilterSuppressed = !0);
13385
+ let C = l.PredictionContext.join(_.context, E.context, A);
13386
+ return this.updatePropertiesForMergedConfig(E), _.context === C ? !1 : (_.context = C, !0);
13387
+ }
13388
+ for (let C = 0; C < this.unmerged.length; C++) {
13389
+ let b = this.unmerged[C];
13392
13390
  if (this.canMerge(E, v, b)) {
13393
13391
  b.outerContextDepth = Math.max(b.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (b.isPrecedenceFilterSuppressed = !0);
13394
13392
  let R = l.PredictionContext.join(b.context, E.context, A);
13395
- return this.updatePropertiesForMergedConfig(E), b.context === R ? !1 : (b.context = R, S && (this.mergedConfigs.put(v, b), this.unmerged.splice(_, 1)), !0);
13393
+ return this.updatePropertiesForMergedConfig(E), b.context === R ? !1 : (b.context = R, S && (this.mergedConfigs.put(v, b), this.unmerged.splice(C, 1)), !0);
13396
13394
  }
13397
13395
  }
13398
13396
  return this.configs.push(E), S ? this.mergedConfigs.put(v, E) : this.unmerged.push(E), this.updatePropertiesForAddedConfig(E), !0;
@@ -13439,7 +13437,7 @@ function Ty() {
13439
13437
  toString(E) {
13440
13438
  E == null && (E = !1);
13441
13439
  let A = "", S = this.configs.slice(0);
13442
- S.sort((v, C) => v.alt !== C.alt ? v.alt - C.alt : v.state.stateNumber !== C.state.stateNumber ? v.state.stateNumber - C.state.stateNumber : v.semanticContext.toString().localeCompare(C.semanticContext.toString())), A += "[";
13440
+ S.sort((v, _) => v.alt !== _.alt ? v.alt - _.alt : v.state.stateNumber !== _.state.stateNumber ? v.state.stateNumber - _.state.stateNumber : v.semanticContext.toString().localeCompare(_.semanticContext.toString())), A += "[";
13443
13441
  for (let v = 0; v < S.length; v++)
13444
13442
  v > 0 && (A += ", "), A += S[v].toString(void 0, !0, E);
13445
13443
  return A += "]", this._hasSemanticContext && (A += ",hasSemanticContext=" + this._hasSemanticContext), this._uniqueAlt !== i.ATN.INVALID_ALT_NUMBER && (A += ",uniqueAlt=" + this._uniqueAlt), this._conflictInfo != null && (A += ",conflictingAlts=" + this._conflictInfo.conflictedAlts, this._conflictInfo.isExact || (A += "*")), this._dipsIntoOuterContext && (A += ",dipsIntoOuterContext"), A.toString();
@@ -14614,12 +14612,12 @@ function V2e() {
14614
14612
  * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
14615
14613
  */
14616
14614
  var t = N && N.__decorate || function(g, y, E, A) {
14617
- var S = arguments.length, v = S < 3 ? y : A === null ? A = Object.getOwnPropertyDescriptor(y, E) : A, C;
14615
+ var S = arguments.length, v = S < 3 ? y : A === null ? A = Object.getOwnPropertyDescriptor(y, E) : A, _;
14618
14616
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
14619
14617
  v = Reflect.decorate(g, y, E, A);
14620
14618
  else
14621
- for (var _ = g.length - 1; _ >= 0; _--)
14622
- (C = g[_]) && (v = (S < 3 ? C(v) : S > 3 ? C(y, E, v) : C(y, E)) || v);
14619
+ for (var C = g.length - 1; C >= 0; C--)
14620
+ (_ = g[C]) && (v = (S < 3 ? _(v) : S > 3 ? _(y, E, v) : _(y, E)) || v);
14623
14621
  return S > 3 && v && Object.defineProperty(y, E, v), v;
14624
14622
  }, e = N && N.__param || function(g, y) {
14625
14623
  return function(E, A) {
@@ -14695,7 +14693,7 @@ function V2e() {
14695
14693
  * outermost context is reached. This parameter has no effect if `ctx`
14696
14694
  * is {@link PredictionContext#EMPTY_LOCAL}.
14697
14695
  */
14698
- _LOOK(y, E, A, S, v, C, _, b) {
14696
+ _LOOK(y, E, A, S, v, _, C, b) {
14699
14697
  let R = i.ATNConfig.create(y, 0, A);
14700
14698
  if (!v.add(R))
14701
14699
  return;
@@ -14713,35 +14711,35 @@ function V2e() {
14713
14711
  b && S.add(h.Token.EOF);
14714
14712
  return;
14715
14713
  }
14716
- let L = C.get(y.ruleIndex);
14714
+ let L = _.get(y.ruleIndex);
14717
14715
  try {
14718
- C.clear(y.ruleIndex);
14716
+ _.clear(y.ruleIndex);
14719
14717
  for (let M = 0; M < A.size; M++) {
14720
14718
  if (A.getReturnState(M) === c.PredictionContext.EMPTY_FULL_STATE_KEY)
14721
14719
  continue;
14722
14720
  let q = this.atn.states[A.getReturnState(M)];
14723
- this._LOOK(q, E, A.getParent(M), S, v, C, _, b);
14721
+ this._LOOK(q, E, A.getParent(M), S, v, _, C, b);
14724
14722
  }
14725
14723
  } finally {
14726
- L && C.set(y.ruleIndex);
14724
+ L && _.set(y.ruleIndex);
14727
14725
  }
14728
14726
  }
14729
14727
  let O = y.numberOfTransitions;
14730
14728
  for (let L = 0; L < O; L++) {
14731
14729
  let M = y.transition(L);
14732
14730
  if (M instanceof x.RuleTransition) {
14733
- if (C.get(M.ruleIndex))
14731
+ if (_.get(M.ruleIndex))
14734
14732
  continue;
14735
14733
  let q = A.getChild(M.followState.stateNumber);
14736
14734
  try {
14737
- C.set(M.ruleIndex), this._LOOK(M.target, E, q, S, v, C, _, b);
14735
+ _.set(M.ruleIndex), this._LOOK(M.target, E, q, S, v, _, C, b);
14738
14736
  } finally {
14739
- C.clear(M.ruleIndex);
14737
+ _.clear(M.ruleIndex);
14740
14738
  }
14741
14739
  } else if (M instanceof n.AbstractPredicateTransition)
14742
- _ ? this._LOOK(M.target, E, A, S, v, C, _, b) : S.add(EL.HIT_PRED);
14740
+ C ? this._LOOK(M.target, E, A, S, v, _, C, b) : S.add(EL.HIT_PRED);
14743
14741
  else if (M.isEpsilon)
14744
- this._LOOK(M.target, E, A, S, v, C, _, b);
14742
+ this._LOOK(M.target, E, A, S, v, _, C, b);
14745
14743
  else if (M instanceof p.WildcardTransition)
14746
14744
  S.addAll(o.IntervalSet.of(h.Token.MIN_USER_TOKEN_TYPE, this.atn.maxTokenType));
14747
14745
  else {
@@ -14879,8 +14877,8 @@ function su() {
14879
14877
  return A;
14880
14878
  let S = new s.IntervalSet();
14881
14879
  for (S.addAll(A), S.remove(f.Token.EPSILON); y != null && y.invokingState >= 0 && A.contains(f.Token.EPSILON); ) {
14882
- let C = this.states[y.invokingState].transition(0);
14883
- A = this.nextTokens(C.followState), S.addAll(A), S.remove(f.Token.EPSILON), y = y._parent;
14880
+ let _ = this.states[y.invokingState].transition(0);
14881
+ A = this.nextTokens(_.followState), S.addAll(A), S.remove(f.Token.EPSILON), y = y._parent;
14884
14882
  }
14885
14883
  return A.contains(f.Token.EPSILON) && S.add(f.Token.EOF), S;
14886
14884
  }
@@ -15285,66 +15283,66 @@ function wy() {
15285
15283
  * Copyright 2016 The ANTLR Project. All rights reserved.
15286
15284
  * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
15287
15285
  */
15288
- var e = N && N.__decorate || function(v, C, _, b) {
15289
- var R = arguments.length, O = R < 3 ? C : b === null ? b = Object.getOwnPropertyDescriptor(C, _) : b, L;
15286
+ var e = N && N.__decorate || function(v, _, C, b) {
15287
+ var R = arguments.length, O = R < 3 ? _ : b === null ? b = Object.getOwnPropertyDescriptor(_, C) : b, L;
15290
15288
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
15291
- O = Reflect.decorate(v, C, _, b);
15289
+ O = Reflect.decorate(v, _, C, b);
15292
15290
  else
15293
15291
  for (var M = v.length - 1; M >= 0; M--)
15294
- (L = v[M]) && (O = (R < 3 ? L(O) : R > 3 ? L(C, _, O) : L(C, _)) || O);
15295
- return R > 3 && O && Object.defineProperty(C, _, O), O;
15296
- }, n = N && N.__param || function(v, C) {
15297
- return function(_, b) {
15298
- C(_, b, v);
15292
+ (L = v[M]) && (O = (R < 3 ? L(O) : R > 3 ? L(_, C, O) : L(_, C)) || O);
15293
+ return R > 3 && O && Object.defineProperty(_, C, O), O;
15294
+ }, n = N && N.__param || function(v, _) {
15295
+ return function(C, b) {
15296
+ _(C, b, v);
15299
15297
  };
15300
15298
  };
15301
15299
  Object.defineProperty(t, "__esModule", { value: !0 }), t.LexerATNSimulator = void 0;
15302
15300
  const r = by, i = su(), s = Yx, o = Ty(), u = Tb(), a = bb(), l = Ar, c = $l, f = kl(), x = Nb, h = Zx, p = ye, m = tge(), g = ru(), y = Sc, E = Gt, A = Di();
15303
15301
  let S = class Es extends u.ATNSimulator {
15304
- constructor(C, _) {
15305
- super(C), this.optimize_tail_calls = !0, this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE, this.prevAccept = new Es.SimState(), this.recog = _;
15302
+ constructor(_, C) {
15303
+ super(_), this.optimize_tail_calls = !0, this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE, this.prevAccept = new Es.SimState(), this.recog = C;
15306
15304
  }
15307
- copyState(C) {
15308
- this._charPositionInLine = C.charPositionInLine, this._line = C._line, this.mode = C.mode, this.startIndex = C.startIndex;
15305
+ copyState(_) {
15306
+ this._charPositionInLine = _.charPositionInLine, this._line = _._line, this.mode = _.mode, this.startIndex = _.startIndex;
15309
15307
  }
15310
- match(C, _) {
15311
- this.mode = _;
15312
- let b = C.mark();
15308
+ match(_, C) {
15309
+ this.mode = C;
15310
+ let b = _.mark();
15313
15311
  try {
15314
- this.startIndex = C.index, this.prevAccept.reset();
15315
- let R = this.atn.modeToDFA[_].s0;
15316
- return R == null ? this.matchATN(C) : this.execATN(C, R);
15312
+ this.startIndex = _.index, this.prevAccept.reset();
15313
+ let R = this.atn.modeToDFA[C].s0;
15314
+ return R == null ? this.matchATN(_) : this.execATN(_, R);
15317
15315
  } finally {
15318
- C.release(b);
15316
+ _.release(b);
15319
15317
  }
15320
15318
  }
15321
15319
  reset() {
15322
15320
  this.prevAccept.reset(), this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE;
15323
15321
  }
15324
- matchATN(C) {
15325
- let _ = this.atn.modeToStartState[this.mode];
15326
- Es.debug && console.log(`matchATN mode ${this.mode} start: ${_}`);
15327
- let b = this.mode, R = this.computeStartState(C, _), O = R.hasSemanticContext;
15322
+ matchATN(_) {
15323
+ let C = this.atn.modeToStartState[this.mode];
15324
+ Es.debug && console.log(`matchATN mode ${this.mode} start: ${C}`);
15325
+ let b = this.mode, R = this.computeStartState(_, C), O = R.hasSemanticContext;
15328
15326
  O && (R.hasSemanticContext = !1);
15329
15327
  let L = this.addDFAState(R);
15330
15328
  if (!O) {
15331
15329
  let q = this.atn.modeToDFA[this.mode];
15332
15330
  q.s0 ? L = q.s0 : q.s0 = L;
15333
15331
  }
15334
- let M = this.execATN(C, L);
15332
+ let M = this.execATN(_, L);
15335
15333
  return Es.debug && console.log(`DFA after matchATN: ${this.atn.modeToDFA[b].toLexerString()}`), M;
15336
15334
  }
15337
- execATN(C, _) {
15338
- Es.debug && console.log(`start state closure=${_.configs}`), _.isAcceptState && this.captureSimState(this.prevAccept, C, _);
15339
- let b = C.LA(1), R = _;
15335
+ execATN(_, C) {
15336
+ Es.debug && console.log(`start state closure=${C.configs}`), C.isAcceptState && this.captureSimState(this.prevAccept, _, C);
15337
+ let b = _.LA(1), R = C;
15340
15338
  for (; ; ) {
15341
15339
  Es.debug && console.log(`execATN loop starting closure: ${R.configs}`);
15342
15340
  let O = this.getExistingTargetState(R, b);
15343
- if (O == null && (O = this.computeTargetState(C, R, b)), O === u.ATNSimulator.ERROR || (b !== c.IntStream.EOF && this.consume(C), O.isAcceptState && (this.captureSimState(this.prevAccept, C, O), b === c.IntStream.EOF)))
15341
+ if (O == null && (O = this.computeTargetState(_, R, b)), O === u.ATNSimulator.ERROR || (b !== c.IntStream.EOF && this.consume(_), O.isAcceptState && (this.captureSimState(this.prevAccept, _, O), b === c.IntStream.EOF)))
15344
15342
  break;
15345
- b = C.LA(1), R = O;
15343
+ b = _.LA(1), R = O;
15346
15344
  }
15347
- return this.failOrAccept(this.prevAccept, C, R.configs, b);
15345
+ return this.failOrAccept(this.prevAccept, _, R.configs, b);
15348
15346
  }
15349
15347
  /**
15350
15348
  * Get an existing target state for an edge in the DFA. If the target state
@@ -15357,9 +15355,9 @@ function wy() {
15357
15355
  * `t`, or `undefined` if the target state for this edge is not
15358
15356
  * already cached
15359
15357
  */
15360
- getExistingTargetState(C, _) {
15361
- let b = C.getTarget(_);
15362
- return Es.debug && b != null && console.log("reuse state " + C.stateNumber + " edge to " + b.stateNumber), b;
15358
+ getExistingTargetState(_, C) {
15359
+ let b = _.getTarget(C);
15360
+ return Es.debug && b != null && console.log("reuse state " + _.stateNumber + " edge to " + b.stateNumber), b;
15363
15361
  }
15364
15362
  /**
15365
15363
  * Compute a target state for an edge in the DFA, and attempt to add the
@@ -15373,27 +15371,27 @@ function wy() {
15373
15371
  * `t`. If `t` does not lead to a valid DFA state, this method
15374
15372
  * returns {@link #ERROR}.
15375
15373
  */
15376
- computeTargetState(C, _, b) {
15374
+ computeTargetState(_, C, b) {
15377
15375
  let R = new m.OrderedATNConfigSet();
15378
- return this.getReachableConfigSet(C, _.configs, R, b), R.isEmpty ? (R.hasSemanticContext || this.addDFAEdge(_, b, u.ATNSimulator.ERROR), u.ATNSimulator.ERROR) : this.addDFAEdge(_, b, R);
15376
+ return this.getReachableConfigSet(_, C.configs, R, b), R.isEmpty ? (R.hasSemanticContext || this.addDFAEdge(C, b, u.ATNSimulator.ERROR), u.ATNSimulator.ERROR) : this.addDFAEdge(C, b, R);
15379
15377
  }
15380
- failOrAccept(C, _, b, R) {
15381
- if (C.dfaState != null) {
15382
- let O = C.dfaState.lexerActionExecutor;
15383
- return this.accept(_, O, this.startIndex, C.index, C.line, C.charPos), C.dfaState.prediction;
15378
+ failOrAccept(_, C, b, R) {
15379
+ if (_.dfaState != null) {
15380
+ let O = _.dfaState.lexerActionExecutor;
15381
+ return this.accept(C, O, this.startIndex, _.index, _.line, _.charPos), _.dfaState.prediction;
15384
15382
  } else {
15385
- if (R === c.IntStream.EOF && _.index === this.startIndex)
15383
+ if (R === c.IntStream.EOF && C.index === this.startIndex)
15386
15384
  return E.Token.EOF;
15387
- throw new h.LexerNoViableAltException(this.recog, _, this.startIndex, b);
15385
+ throw new h.LexerNoViableAltException(this.recog, C, this.startIndex, b);
15388
15386
  }
15389
15387
  }
15390
15388
  /** Given a starting configuration set, figure out all ATN configurations
15391
15389
  * we can reach upon input `t`. Parameter `reach` is a return
15392
15390
  * parameter.
15393
15391
  */
15394
- getReachableConfigSet(C, _, b, R) {
15392
+ getReachableConfigSet(_, C, b, R) {
15395
15393
  let O = i.ATN.INVALID_ALT_NUMBER;
15396
- for (let L of _) {
15394
+ for (let L of C) {
15397
15395
  let M = L.alt === O;
15398
15396
  if (M && L.hasPassedThroughNonGreedyDecision)
15399
15397
  continue;
@@ -15403,9 +15401,9 @@ function wy() {
15403
15401
  let B = L.state.getOptimizedTransition(W), G = this.getReachableTarget(B, R);
15404
15402
  if (G != null) {
15405
15403
  let te = L.lexerActionExecutor, X;
15406
- te != null ? (te = te.fixOffsetBeforeMatch(C.index - this.startIndex), X = L.transform(G, !0, te)) : (A(L.lexerActionExecutor == null), X = L.transform(G, !0));
15404
+ te != null ? (te = te.fixOffsetBeforeMatch(_.index - this.startIndex), X = L.transform(G, !0, te)) : (A(L.lexerActionExecutor == null), X = L.transform(G, !0));
15407
15405
  let de = R === c.IntStream.EOF;
15408
- if (this.closure(C, X, b, M, !0, de)) {
15406
+ if (this.closure(_, X, b, M, !0, de)) {
15409
15407
  O = L.alt;
15410
15408
  break;
15411
15409
  }
@@ -15413,18 +15411,18 @@ function wy() {
15413
15411
  }
15414
15412
  }
15415
15413
  }
15416
- accept(C, _, b, R, O, L) {
15417
- Es.debug && console.log(`ACTION ${_}`), C.seek(R), this._line = O, this._charPositionInLine = L, _ != null && this.recog != null && _.execute(this.recog, C, b);
15414
+ accept(_, C, b, R, O, L) {
15415
+ Es.debug && console.log(`ACTION ${C}`), _.seek(R), this._line = O, this._charPositionInLine = L, C != null && this.recog != null && C.execute(this.recog, _, b);
15418
15416
  }
15419
- getReachableTarget(C, _) {
15420
- if (C.matches(_, f.Lexer.MIN_CHAR_VALUE, f.Lexer.MAX_CHAR_VALUE))
15421
- return C.target;
15417
+ getReachableTarget(_, C) {
15418
+ if (_.matches(C, f.Lexer.MIN_CHAR_VALUE, f.Lexer.MAX_CHAR_VALUE))
15419
+ return _.target;
15422
15420
  }
15423
- computeStartState(C, _) {
15421
+ computeStartState(_, C) {
15424
15422
  let b = g.PredictionContext.EMPTY_FULL, R = new m.OrderedATNConfigSet();
15425
- for (let O = 0; O < _.numberOfTransitions; O++) {
15426
- let L = _.transition(O).target, M = s.ATNConfig.create(L, O + 1, b);
15427
- this.closure(C, M, R, !1, !1, !1);
15423
+ for (let O = 0; O < C.numberOfTransitions; O++) {
15424
+ let L = C.transition(O).target, M = s.ATNConfig.create(L, O + 1, b);
15425
+ this.closure(_, M, R, !1, !1, !1);
15428
15426
  }
15429
15427
  return R;
15430
15428
  }
@@ -15438,66 +15436,66 @@ function wy() {
15438
15436
  * @returns `true` if an accept state is reached, otherwise
15439
15437
  * `false`.
15440
15438
  */
15441
- closure(C, _, b, R, O, L) {
15442
- if (Es.debug && console.log("closure(" + _.toString(this.recog, !0) + ")"), _.state instanceof y.RuleStopState) {
15443
- Es.debug && (this.recog != null ? console.log(`closure at ${this.recog.ruleNames[_.state.ruleIndex]} rule stop ${_}`) : console.log(`closure at rule stop ${_}`));
15444
- let q = _.context;
15439
+ closure(_, C, b, R, O, L) {
15440
+ if (Es.debug && console.log("closure(" + C.toString(this.recog, !0) + ")"), C.state instanceof y.RuleStopState) {
15441
+ Es.debug && (this.recog != null ? console.log(`closure at ${this.recog.ruleNames[C.state.ruleIndex]} rule stop ${C}`) : console.log(`closure at rule stop ${C}`));
15442
+ let q = C.context;
15445
15443
  if (q.isEmpty)
15446
- return b.add(_), !0;
15447
- q.hasEmpty && (b.add(_.transform(_.state, !0, g.PredictionContext.EMPTY_FULL)), R = !0);
15444
+ return b.add(C), !0;
15445
+ q.hasEmpty && (b.add(C.transform(C.state, !0, g.PredictionContext.EMPTY_FULL)), R = !0);
15448
15446
  for (let W = 0; W < q.size; W++) {
15449
15447
  let B = q.getReturnState(W);
15450
15448
  if (B === g.PredictionContext.EMPTY_FULL_STATE_KEY)
15451
15449
  continue;
15452
- let G = q.getParent(W), te = this.atn.states[B], X = _.transform(te, !1, G);
15453
- R = this.closure(C, X, b, R, O, L);
15450
+ let G = q.getParent(W), te = this.atn.states[B], X = C.transform(te, !1, G);
15451
+ R = this.closure(_, X, b, R, O, L);
15454
15452
  }
15455
15453
  return R;
15456
15454
  }
15457
- _.state.onlyHasEpsilonTransitions || (!R || !_.hasPassedThroughNonGreedyDecision) && b.add(_);
15458
- let M = _.state;
15455
+ C.state.onlyHasEpsilonTransitions || (!R || !C.hasPassedThroughNonGreedyDecision) && b.add(C);
15456
+ let M = C.state;
15459
15457
  for (let q = 0; q < M.numberOfOptimizedTransitions; q++) {
15460
- let W = M.getOptimizedTransition(q), B = this.getEpsilonTarget(C, _, W, b, O, L);
15461
- B != null && (R = this.closure(C, B, b, R, O, L));
15458
+ let W = M.getOptimizedTransition(q), B = this.getEpsilonTarget(_, C, W, b, O, L);
15459
+ B != null && (R = this.closure(_, B, b, R, O, L));
15462
15460
  }
15463
15461
  return R;
15464
15462
  }
15465
15463
  // side-effect: can alter configs.hasSemanticContext
15466
- getEpsilonTarget(C, _, b, R, O, L) {
15464
+ getEpsilonTarget(_, C, b, R, O, L) {
15467
15465
  let M;
15468
15466
  switch (b.serializationType) {
15469
15467
  case 3:
15470
15468
  let q = b;
15471
- if (this.optimize_tail_calls && q.optimizedTailCall && !_.context.hasEmpty)
15472
- M = _.transform(b.target, !0);
15469
+ if (this.optimize_tail_calls && q.optimizedTailCall && !C.context.hasEmpty)
15470
+ M = C.transform(b.target, !0);
15473
15471
  else {
15474
- let B = _.context.getChild(q.followState.stateNumber);
15475
- M = _.transform(b.target, !0, B);
15472
+ let B = C.context.getChild(q.followState.stateNumber);
15473
+ M = C.transform(b.target, !0, B);
15476
15474
  }
15477
15475
  break;
15478
15476
  case 10:
15479
15477
  throw new Error("Precedence predicates are not supported in lexers.");
15480
15478
  case 4:
15481
15479
  let W = b;
15482
- Es.debug && console.log("EVAL rule " + W.ruleIndex + ":" + W.predIndex), R.hasSemanticContext = !0, this.evaluatePredicate(C, W.ruleIndex, W.predIndex, O) ? M = _.transform(b.target, !0) : M = void 0;
15480
+ Es.debug && console.log("EVAL rule " + W.ruleIndex + ":" + W.predIndex), R.hasSemanticContext = !0, this.evaluatePredicate(_, W.ruleIndex, W.predIndex, O) ? M = C.transform(b.target, !0) : M = void 0;
15483
15481
  break;
15484
15482
  case 6:
15485
- if (_.context.hasEmpty) {
15486
- let B = x.LexerActionExecutor.append(_.lexerActionExecutor, this.atn.lexerActions[b.actionIndex]);
15487
- M = _.transform(b.target, !0, B);
15483
+ if (C.context.hasEmpty) {
15484
+ let B = x.LexerActionExecutor.append(C.lexerActionExecutor, this.atn.lexerActions[b.actionIndex]);
15485
+ M = C.transform(b.target, !0, B);
15488
15486
  break;
15489
15487
  } else {
15490
- M = _.transform(b.target, !0);
15488
+ M = C.transform(b.target, !0);
15491
15489
  break;
15492
15490
  }
15493
15491
  case 1:
15494
- M = _.transform(b.target, !0);
15492
+ M = C.transform(b.target, !0);
15495
15493
  break;
15496
15494
  case 5:
15497
15495
  case 2:
15498
15496
  case 7:
15499
15497
  if (L && b.matches(c.IntStream.EOF, f.Lexer.MIN_CHAR_VALUE, f.Lexer.MAX_CHAR_VALUE)) {
15500
- M = _.transform(b.target, !1);
15498
+ M = C.transform(b.target, !1);
15501
15499
  break;
15502
15500
  }
15503
15501
  M = void 0;
@@ -15529,43 +15527,43 @@ function wy() {
15529
15527
  * @returns `true` if the specified predicate evaluates to
15530
15528
  * `true`.
15531
15529
  */
15532
- evaluatePredicate(C, _, b, R) {
15530
+ evaluatePredicate(_, C, b, R) {
15533
15531
  if (this.recog == null)
15534
15532
  return !0;
15535
15533
  if (!R)
15536
- return this.recog.sempred(void 0, _, b);
15537
- let O = this._charPositionInLine, L = this._line, M = C.index, q = C.mark();
15534
+ return this.recog.sempred(void 0, C, b);
15535
+ let O = this._charPositionInLine, L = this._line, M = _.index, q = _.mark();
15538
15536
  try {
15539
- return this.consume(C), this.recog.sempred(void 0, _, b);
15537
+ return this.consume(_), this.recog.sempred(void 0, C, b);
15540
15538
  } finally {
15541
- this._charPositionInLine = O, this._line = L, C.seek(M), C.release(q);
15539
+ this._charPositionInLine = O, this._line = L, _.seek(M), _.release(q);
15542
15540
  }
15543
15541
  }
15544
- captureSimState(C, _, b) {
15545
- C.index = _.index, C.line = this._line, C.charPos = this._charPositionInLine, C.dfaState = b;
15542
+ captureSimState(_, C, b) {
15543
+ _.index = C.index, _.line = this._line, _.charPos = this._charPositionInLine, _.dfaState = b;
15546
15544
  }
15547
- addDFAEdge(C, _, b) {
15545
+ addDFAEdge(_, C, b) {
15548
15546
  if (b instanceof o.ATNConfigSet) {
15549
15547
  let R = b.hasSemanticContext;
15550
15548
  R && (b.hasSemanticContext = !1);
15551
15549
  let O = this.addDFAState(b);
15552
- return R || this.addDFAEdge(C, _, O), O;
15550
+ return R || this.addDFAEdge(_, C, O), O;
15553
15551
  } else
15554
- Es.debug && console.log("EDGE " + C + " -> " + b + " upon " + String.fromCharCode(_)), C != null && C.setTarget(_, b);
15552
+ Es.debug && console.log("EDGE " + _ + " -> " + b + " upon " + String.fromCharCode(C)), _ != null && _.setTarget(C, b);
15555
15553
  }
15556
15554
  /** Add a new DFA state if there isn't one with this set of
15557
15555
  * configurations already. This method also detects the first
15558
15556
  * configuration containing an ATN rule stop state. Later, when
15559
15557
  * traversing the DFA, we will know which rule to accept.
15560
15558
  */
15561
- addDFAState(C) {
15562
- A(!C.hasSemanticContext);
15563
- let _ = new a.DFAState(C), b = this.atn.modeToDFA[this.mode].states.get(_);
15559
+ addDFAState(_) {
15560
+ A(!_.hasSemanticContext);
15561
+ let C = new a.DFAState(_), b = this.atn.modeToDFA[this.mode].states.get(C);
15564
15562
  if (b != null)
15565
15563
  return b;
15566
- C.optimizeConfigs(this);
15567
- let R = new a.DFAState(C.clone(!0)), O;
15568
- for (let L of C)
15564
+ _.optimizeConfigs(this);
15565
+ let R = new a.DFAState(_.clone(!0)), O;
15566
+ for (let L of _)
15569
15567
  if (L.state instanceof y.RuleStopState) {
15570
15568
  O = L;
15571
15569
  break;
@@ -15576,31 +15574,31 @@ function wy() {
15576
15574
  }
15577
15575
  return this.atn.modeToDFA[this.mode].addState(R);
15578
15576
  }
15579
- getDFA(C) {
15580
- return this.atn.modeToDFA[C];
15577
+ getDFA(_) {
15578
+ return this.atn.modeToDFA[_];
15581
15579
  }
15582
15580
  /** Get the text matched so far for the current token.
15583
15581
  */
15584
- getText(C) {
15585
- return C.getText(l.Interval.of(this.startIndex, C.index - 1));
15582
+ getText(_) {
15583
+ return _.getText(l.Interval.of(this.startIndex, _.index - 1));
15586
15584
  }
15587
15585
  get line() {
15588
15586
  return this._line;
15589
15587
  }
15590
- set line(C) {
15591
- this._line = C;
15588
+ set line(_) {
15589
+ this._line = _;
15592
15590
  }
15593
15591
  get charPositionInLine() {
15594
15592
  return this._charPositionInLine;
15595
15593
  }
15596
- set charPositionInLine(C) {
15597
- this._charPositionInLine = C;
15594
+ set charPositionInLine(_) {
15595
+ this._charPositionInLine = _;
15598
15596
  }
15599
- consume(C) {
15600
- C.LA(1) === 10 ? (this._line++, this._charPositionInLine = 0) : this._charPositionInLine++, C.consume();
15597
+ consume(_) {
15598
+ _.LA(1) === 10 ? (this._line++, this._charPositionInLine = 0) : this._charPositionInLine++, _.consume();
15601
15599
  }
15602
- getTokenName(C) {
15603
- return C === -1 ? "EOF" : "'" + String.fromCharCode(C) + "'";
15600
+ getTokenName(_) {
15601
+ return _ === -1 ? "EOF" : "'" + String.fromCharCode(_) + "'";
15604
15602
  }
15605
15603
  };
15606
15604
  e([
@@ -15663,7 +15661,7 @@ function wy() {
15663
15661
  n(0, p.NotNull)
15664
15662
  ], S), t.LexerATNSimulator = S, function(v) {
15665
15663
  v.debug = !1, v.dfa_debug = !1;
15666
- class C {
15664
+ class _ {
15667
15665
  constructor() {
15668
15666
  this.index = -1, this.line = 0, this.charPos = -1;
15669
15667
  }
@@ -15671,7 +15669,7 @@ function wy() {
15671
15669
  this.index = -1, this.line = 0, this.charPos = -1, this.dfaState = void 0;
15672
15670
  }
15673
15671
  }
15674
- v.SimState = C;
15672
+ v.SimState = _;
15675
15673
  }(S = t.LexerATNSimulator || (t.LexerATNSimulator = {})), t.LexerATNSimulator = S;
15676
15674
  }(VD)), VD;
15677
15675
  }
@@ -17614,8 +17612,8 @@ function bc() {
17614
17612
  for (let A = 0; A < E; A++) {
17615
17613
  let S = p.getChild(A), v = S.sourceInterval;
17616
17614
  if (S instanceof u.ParserRuleContext && (v.b < g || v.a > y) && f0.isAncestorOf(S, m)) {
17617
- let C = new r.CommonToken(c.Token.INVALID_TYPE, "...");
17618
- p.children[A] = new l.TerminalNode(C);
17615
+ let _ = new r.CommonToken(c.Token.INVALID_TYPE, "...");
17616
+ p.children[A] = new l.TerminalNode(_);
17619
17617
  }
17620
17618
  }
17621
17619
  }
@@ -18099,7 +18097,7 @@ function Qp() {
18099
18097
  };
18100
18098
  };
18101
18099
  Object.defineProperty(Ag, "__esModule", { value: !0 }), Ag.ParserATNSimulator = void 0;
18102
- const n = by, r = Iy, i = nu, s = Sb, o = su(), u = Yx, a = Ty(), l = Tb(), c = Er, f = ky, x = iu, h = Mb, p = xa, m = bb(), g = kp, y = Ar, E = $l, A = ye, S = NI(), v = Jy(), C = Ms, _ = Co(), b = ru(), R = RI(), O = KW, L = Sc, M = jp, q = Gx, W = OI(), B = XW(), G = Gt, te = js, X = Di(), de = 65535, be = -(1 << 31 >>> 0);
18100
+ const n = by, r = Iy, i = nu, s = Sb, o = su(), u = Yx, a = Ty(), l = Tb(), c = Er, f = ky, x = iu, h = Mb, p = xa, m = bb(), g = kp, y = Ar, E = $l, A = ye, S = NI(), v = Jy(), _ = Ms, C = Co(), b = ru(), R = RI(), O = KW, L = Sc, M = jp, q = Gx, W = OI(), B = XW(), G = Gt, te = js, X = Di(), de = 65535, be = -(1 << 31 >>> 0);
18103
18101
  let ee = class ut extends l.ATNSimulator {
18104
18102
  constructor(T, w) {
18105
18103
  super(T), this.predictionMode = O.PredictionMode.LL, this.force_global_context = !1, this.always_try_local_context = !0, this.enable_global_context_dfa = !1, this.optimize_unique_closure = !0, this.optimize_ll1 = !0, this.optimize_tail_calls = !0, this.tail_call_preserves_sll = !0, this.treat_sllk1_conflict_as_ambiguity = !1, this.reportAmbiguities = !1, this.userWantsCtxSensitive = !0, this._parser = w;
@@ -18123,9 +18121,9 @@ function Qp() {
18123
18121
  return I;
18124
18122
  }
18125
18123
  }
18126
- this.dfa = Y, this.force_global_context ? z = !0 : this.always_try_local_context || (z = z || Y.isContextSensitive), this.userWantsCtxSensitive = z || this.predictionMode !== O.PredictionMode.SLL && k != null && !this.atn.decisionToState[w].sll, k == null && (k = _.ParserRuleContext.emptyContext());
18124
+ this.dfa = Y, this.force_global_context ? z = !0 : this.always_try_local_context || (z = z || Y.isContextSensitive), this.userWantsCtxSensitive = z || this.predictionMode !== O.PredictionMode.SLL && k != null && !this.atn.decisionToState[w].sll, k == null && (k = C.ParserRuleContext.emptyContext());
18127
18125
  let V;
18128
- Y.isEmpty || (V = this.getStartState(Y, T, k, z)), V == null && (k == null && (k = _.ParserRuleContext.emptyContext()), ut.debug && console.log("ATN decision " + Y.decision + " exec LA(1)==" + this.getLookaheadName(T) + ", outerContext=" + k.toString(this._parser)), V = this.computeStartState(Y, k, z));
18126
+ Y.isEmpty || (V = this.getStartState(Y, T, k, z)), V == null && (k == null && (k = C.ParserRuleContext.emptyContext()), ut.debug && console.log("ATN decision " + Y.decision + " exec LA(1)==" + this.getLookaheadName(T) + ", outerContext=" + k.toString(this._parser)), V = this.computeStartState(Y, k, z));
18129
18127
  let D = T.mark(), $ = T.index;
18130
18128
  try {
18131
18129
  let j = this.execDFA(Y, T, $, V);
@@ -18722,7 +18720,7 @@ function Qp() {
18722
18720
  */
18723
18721
  closure(T, w, k, z, Y, V) {
18724
18722
  Y == null && (Y = R.PredictionContextCache.UNCACHED);
18725
- let D = T, $ = new i.Array2DHashSet(C.ObjectEqualityComparator.INSTANCE);
18723
+ let D = T, $ = new i.Array2DHashSet(_.ObjectEqualityComparator.INSTANCE);
18726
18724
  for (; D.size > 0; ) {
18727
18725
  let j = new a.ATNConfigSet();
18728
18726
  for (let Q of D)
@@ -19527,7 +19525,7 @@ function Gp() {
19527
19525
  };
19528
19526
  };
19529
19527
  Object.defineProperty(yg, "__esModule", { value: !0 }), yg.ATNDeserializer = void 0;
19530
- const n = Iy, r = nu, i = su(), s = Ly, o = Er, u = ky, a = Fb, l = Ny, c = iu, f = wb, x = td, h = xa, p = wW(), m = Lb, g = ed(), y = Oy, E = Ib, A = $b, S = Bb, v = UW, C = qW, _ = kb, b = HW, R = Pb, O = Uy, L = ye, M = NI(), q = Qp(), W = jb, B = Ub, G = qb, te = vy, X = Hb, de = zb, be = Sc, ee = jp, U = OI(), T = Qb, w = Gb, k = Mp, z = Gt, Y = Wb, V = Vb, D = Fy;
19528
+ const n = Iy, r = nu, i = su(), s = Ly, o = Er, u = ky, a = Fb, l = Ny, c = iu, f = wb, x = td, h = xa, p = wW(), m = Lb, g = ed(), y = Oy, E = Ib, A = $b, S = Bb, v = UW, _ = qW, C = kb, b = HW, R = Pb, O = Uy, L = ye, M = NI(), q = Qp(), W = jb, B = Ub, G = qb, te = vy, X = Hb, de = zb, be = Sc, ee = jp, U = OI(), T = Qb, w = Gb, k = Mp, z = Gt, Y = Wb, V = Vb, D = Fy;
19531
19529
  var $;
19532
19530
  (function(Q) {
19533
19531
  Q[Q.UNICODE_BMP = 0] = "UNICODE_BMP", Q[Q.UNICODE_SMP = 1] = "UNICODE_SMP";
@@ -20117,9 +20115,9 @@ function Gp() {
20117
20115
  case 3:
20118
20116
  return v.LexerMoreAction.INSTANCE;
20119
20117
  case 4:
20120
- return C.LexerPopModeAction.INSTANCE;
20118
+ return _.LexerPopModeAction.INSTANCE;
20121
20119
  case 5:
20122
- return new _.LexerPushModeAction(H);
20120
+ return new C.LexerPushModeAction(H);
20123
20121
  case 6:
20124
20122
  return b.LexerSkipAction.INSTANCE;
20125
20123
  case 7:
@@ -21253,13 +21251,13 @@ function oV() {
21253
21251
  * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
21254
21252
  */
21255
21253
  var t = N && N.__decorate || function(y, E, A, S) {
21256
- var v = arguments.length, C = v < 3 ? E : S === null ? S = Object.getOwnPropertyDescriptor(E, A) : S, _;
21254
+ var v = arguments.length, _ = v < 3 ? E : S === null ? S = Object.getOwnPropertyDescriptor(E, A) : S, C;
21257
21255
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
21258
- C = Reflect.decorate(y, E, A, S);
21256
+ _ = Reflect.decorate(y, E, A, S);
21259
21257
  else
21260
21258
  for (var b = y.length - 1; b >= 0; b--)
21261
- (_ = y[b]) && (C = (v < 3 ? _(C) : v > 3 ? _(E, A, C) : _(E, A)) || C);
21262
- return v > 3 && C && Object.defineProperty(E, A, C), C;
21259
+ (C = y[b]) && (_ = (v < 3 ? C(_) : v > 3 ? C(E, A, _) : C(E, A)) || _);
21260
+ return v > 3 && _ && Object.defineProperty(E, A, _), _;
21263
21261
  }, e = N && N.__param || function(y, E) {
21264
21262
  return function(A, S) {
21265
21263
  E(A, S, y);
@@ -21268,14 +21266,14 @@ function oV() {
21268
21266
  Object.defineProperty(Tg, "__esModule", { value: !0 }), Tg.ParserInterpreter = void 0;
21269
21267
  const n = fa, r = Er, i = iu, s = mc, o = Vx, u = sV(), a = Uy, l = ye, c = ye, f = Yp(), x = Qp(), h = _o, p = Mp, m = Gt;
21270
21268
  let g = class SL extends f.Parser {
21271
- constructor(E, A, S, v, C) {
21272
- if (super(E instanceof SL ? E.inputStream : C), this._parentContextStack = [], this.overrideDecision = -1, this.overrideDecisionInputIndex = -1, this.overrideDecisionAlt = -1, this.overrideDecisionReached = !1, this._overrideDecisionRoot = void 0, E instanceof SL) {
21273
- let _ = E;
21274
- this._grammarFileName = _._grammarFileName, this._atn = _._atn, this.pushRecursionContextStates = _.pushRecursionContextStates, this._ruleNames = _._ruleNames, this._vocabulary = _._vocabulary, this.interpreter = new x.ParserATNSimulator(this._atn, this);
21269
+ constructor(E, A, S, v, _) {
21270
+ if (super(E instanceof SL ? E.inputStream : _), this._parentContextStack = [], this.overrideDecision = -1, this.overrideDecisionInputIndex = -1, this.overrideDecisionAlt = -1, this.overrideDecisionReached = !1, this._overrideDecisionRoot = void 0, E instanceof SL) {
21271
+ let C = E;
21272
+ this._grammarFileName = C._grammarFileName, this._atn = C._atn, this.pushRecursionContextStates = C.pushRecursionContextStates, this._ruleNames = C._ruleNames, this._vocabulary = C._vocabulary, this.interpreter = new x.ParserATNSimulator(this._atn, this);
21275
21273
  } else {
21276
21274
  A = A, S = S, v = v, this._grammarFileName = E, this._atn = v, this._ruleNames = S.slice(0), this._vocabulary = A, this.pushRecursionContextStates = new i.BitSet(v.states.length);
21277
- for (let _ of v.states)
21278
- _ instanceof p.StarLoopEntryState && _.precedenceRuleDecision && this.pushRecursionContextStates.set(_.stateNumber);
21275
+ for (let C of v.states)
21276
+ C instanceof p.StarLoopEntryState && C.precedenceRuleDecision && this.pushRecursionContextStates.set(C.stateNumber);
21279
21277
  this.interpreter = new x.ParserATNSimulator(v, this);
21280
21278
  }
21281
21279
  }
@@ -21303,8 +21301,8 @@ function oV() {
21303
21301
  case r.ATNStateType.RULE_STOP:
21304
21302
  if (this._ctx.isEmpty)
21305
21303
  if (A.isPrecedenceRule) {
21306
- let v = this._ctx, C = this._parentContextStack.pop();
21307
- return this.unrollRecursionContexts(C[0]), v;
21304
+ let v = this._ctx, _ = this._parentContextStack.pop();
21305
+ return this.unrollRecursionContexts(_[0]), v;
21308
21306
  } else
21309
21307
  return this.exitRule(), this._rootContext;
21310
21308
  this.visitRuleStopState(S);
@@ -21351,8 +21349,8 @@ function oV() {
21351
21349
  this.matchWildcard();
21352
21350
  break;
21353
21351
  case 3:
21354
- let v = S.target, C = v.ruleIndex, _ = this.createInterpreterRuleContext(this._ctx, E.stateNumber, C);
21355
- v.isPrecedenceRule ? this.enterRecursionRule(_, v.stateNumber, C, S.precedence) : this.enterRule(_, S.target.stateNumber, C);
21352
+ let v = S.target, _ = v.ruleIndex, C = this.createInterpreterRuleContext(this._ctx, E.stateNumber, _);
21353
+ v.isPrecedenceRule ? this.enterRecursionRule(C, v.stateNumber, _, S.precedence) : this.enterRule(C, S.target.stateNumber, _);
21356
21354
  break;
21357
21355
  case 4:
21358
21356
  let b = S;
@@ -21455,7 +21453,7 @@ function oV() {
21455
21453
  let S = E.getOffendingToken();
21456
21454
  if (!S)
21457
21455
  throw new Error("Expected exception to have an offending token");
21458
- let v = S.tokenSource, C = v !== void 0 ? v.inputStream : void 0, _ = { source: v, stream: C };
21456
+ let v = S.tokenSource, _ = v !== void 0 ? v.inputStream : void 0, C = { source: v, stream: _ };
21459
21457
  if (E instanceof o.InputMismatchException) {
21460
21458
  let b = E.expectedTokens;
21461
21459
  if (b === void 0)
@@ -21463,7 +21461,7 @@ function oV() {
21463
21461
  let R = m.Token.INVALID_TYPE;
21464
21462
  b.isNil || (R = b.minElement);
21465
21463
  let O = this.tokenFactory.create(
21466
- _,
21464
+ C,
21467
21465
  R,
21468
21466
  S.text,
21469
21467
  m.Token.DEFAULT_CHANNEL,
@@ -21477,7 +21475,7 @@ function oV() {
21477
21475
  } else {
21478
21476
  S.tokenSource;
21479
21477
  let b = this.tokenFactory.create(
21480
- _,
21478
+ C,
21481
21479
  m.Token.INVALID_TYPE,
21482
21480
  S.text,
21483
21481
  m.Token.DEFAULT_CHANNEL,
@@ -22075,42 +22073,42 @@ function MI() {
22075
22073
  // TODO: check for invalid token/rule names, bad syntax
22076
22074
  split(m) {
22077
22075
  let g = new s.XPathLexer(t.CharStreams.fromString(m));
22078
- g.recover = (C) => {
22079
- throw C;
22076
+ g.recover = (_) => {
22077
+ throw _;
22080
22078
  }, g.removeErrorListeners(), g.addErrorListener(new o.XPathLexerErrorListener());
22081
22079
  let y = new e.CommonTokenStream(g);
22082
22080
  try {
22083
22081
  y.fill();
22084
- } catch (C) {
22085
- if (C instanceof n.LexerNoViableAltException) {
22086
- let b = "Invalid tokens or characters at index " + g.charPositionInLine + " in path '" + m + "' -- " + C.message;
22082
+ } catch (_) {
22083
+ if (_ instanceof n.LexerNoViableAltException) {
22084
+ let b = "Invalid tokens or characters at index " + g.charPositionInLine + " in path '" + m + "' -- " + _.message;
22087
22085
  throw new RangeError(b);
22088
22086
  }
22089
- throw C;
22087
+ throw _;
22090
22088
  }
22091
22089
  let E = y.getTokens(), A = [], S = E.length, v = 0;
22092
22090
  e:
22093
22091
  for (; v < S; ) {
22094
- let C = E[v], _;
22095
- switch (C.type) {
22092
+ let _ = E[v], C;
22093
+ switch (_.type) {
22096
22094
  case s.XPathLexer.ROOT:
22097
22095
  case s.XPathLexer.ANYWHERE:
22098
- let b = C.type === s.XPathLexer.ANYWHERE;
22099
- v++, _ = E[v];
22100
- let R = _.type === s.XPathLexer.BANG;
22101
- R && (v++, _ = E[v]);
22102
- let O = this.getXPathElement(_, b);
22096
+ let b = _.type === s.XPathLexer.ANYWHERE;
22097
+ v++, C = E[v];
22098
+ let R = C.type === s.XPathLexer.BANG;
22099
+ R && (v++, C = E[v]);
22100
+ let O = this.getXPathElement(C, b);
22103
22101
  O.invert = R, A.push(O), v++;
22104
22102
  break;
22105
22103
  case s.XPathLexer.TOKEN_REF:
22106
22104
  case s.XPathLexer.RULE_REF:
22107
22105
  case s.XPathLexer.WILDCARD:
22108
- A.push(this.getXPathElement(C, !1)), v++;
22106
+ A.push(this.getXPathElement(_, !1)), v++;
22109
22107
  break;
22110
22108
  case i.Token.EOF:
22111
22109
  break e;
22112
22110
  default:
22113
- throw new Error("Unknowth path element " + C);
22111
+ throw new Error("Unknowth path element " + _);
22114
22112
  }
22115
22113
  }
22116
22114
  return A;
@@ -22722,22 +22720,22 @@ function jme() {
22722
22720
  * Copyright 2016 The ANTLR Project. All rights reserved.
22723
22721
  * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
22724
22722
  */
22725
- var e = N && N.__decorate || function(_, b, R, O) {
22723
+ var e = N && N.__decorate || function(C, b, R, O) {
22726
22724
  var L = arguments.length, M = L < 3 ? b : O === null ? O = Object.getOwnPropertyDescriptor(b, R) : O, q;
22727
22725
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
22728
- M = Reflect.decorate(_, b, R, O);
22726
+ M = Reflect.decorate(C, b, R, O);
22729
22727
  else
22730
- for (var W = _.length - 1; W >= 0; W--)
22731
- (q = _[W]) && (M = (L < 3 ? q(M) : L > 3 ? q(b, R, M) : q(b, R)) || M);
22728
+ for (var W = C.length - 1; W >= 0; W--)
22729
+ (q = C[W]) && (M = (L < 3 ? q(M) : L > 3 ? q(b, R, M) : q(b, R)) || M);
22732
22730
  return L > 3 && M && Object.defineProperty(b, R, M), M;
22733
- }, n = N && N.__param || function(_, b) {
22731
+ }, n = N && N.__param || function(C, b) {
22734
22732
  return function(R, O) {
22735
- b(R, O, _);
22733
+ b(R, O, C);
22736
22734
  };
22737
22735
  };
22738
22736
  Object.defineProperty(t, "__esModule", { value: !0 }), t.ParseTreePatternMatcher = void 0;
22739
22737
  const r = lV(), i = Xb, s = Wp, o = Yy, u = Cme(), a = ye, l = Ky, c = oV(), f = Co(), x = Tme(), h = $me(), p = _o, m = Cc, g = Bme(), y = kme(), E = ou, A = Pme(), S = Gt, v = Mme();
22740
- class C {
22738
+ class _ {
22741
22739
  /**
22742
22740
  * Constructs a {@link ParseTreePatternMatcher} or from a {@link Lexer} and
22743
22741
  * {@link Parser} object. The lexer input stream is altered for tokenizing
@@ -22795,10 +22793,10 @@ function jme() {
22795
22793
  try {
22796
22794
  W.errorHandler = new r.BailErrorStrategy(), B = W.parse(R);
22797
22795
  } catch (G) {
22798
- throw G instanceof l.ParseCancellationException ? G.getCause() : G instanceof p.RecognitionException ? G : G instanceof Error ? new C.CannotInvokeStartRule(G) : G;
22796
+ throw G instanceof l.ParseCancellationException ? G.getCause() : G instanceof p.RecognitionException ? G : G instanceof Error ? new _.CannotInvokeStartRule(G) : G;
22799
22797
  }
22800
22798
  if (M.LA(1) !== S.Token.EOF)
22801
- throw new C.StartRuleDoesNotConsumeFullPattern();
22799
+ throw new _.StartRuleDoesNotConsumeFullPattern();
22802
22800
  return new h.ParseTreePattern(this, b, R, B);
22803
22801
  }
22804
22802
  /**
@@ -22952,28 +22950,28 @@ function jme() {
22952
22950
  e([
22953
22951
  a.NotNull,
22954
22952
  n(1, a.NotNull)
22955
- ], C.prototype, "match", null), e([
22953
+ ], _.prototype, "match", null), e([
22956
22954
  a.NotNull
22957
- ], C.prototype, "lexer", null), e([
22955
+ ], _.prototype, "lexer", null), e([
22958
22956
  a.NotNull
22959
- ], C.prototype, "parser", null), e([
22957
+ ], _.prototype, "parser", null), e([
22960
22958
  n(0, a.NotNull),
22961
22959
  n(1, a.NotNull),
22962
22960
  n(2, a.NotNull)
22963
- ], C.prototype, "matchImpl", null), t.ParseTreePatternMatcher = C, function(_) {
22961
+ ], _.prototype, "matchImpl", null), t.ParseTreePatternMatcher = _, function(C) {
22964
22962
  class b extends Error {
22965
22963
  constructor(L) {
22966
22964
  super(`CannotInvokeStartRule: ${L}`), this.error = L;
22967
22965
  }
22968
22966
  }
22969
- _.CannotInvokeStartRule = b;
22967
+ C.CannotInvokeStartRule = b;
22970
22968
  class R extends Error {
22971
22969
  constructor() {
22972
22970
  super("StartRuleDoesNotConsumeFullPattern");
22973
22971
  }
22974
22972
  }
22975
- _.StartRuleDoesNotConsumeFullPattern = R;
22976
- }(C = t.ParseTreePatternMatcher || (t.ParseTreePatternMatcher = {}));
22973
+ C.StartRuleDoesNotConsumeFullPattern = R;
22974
+ }(_ = t.ParseTreePatternMatcher || (t.ParseTreePatternMatcher = {}));
22977
22975
  }(iF)), iF;
22978
22976
  }
22979
22977
  var Qg = {}, Gg = {}, Wg = {}, i9;
@@ -23318,8 +23316,8 @@ function x9() {
23318
23316
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
23319
23317
  S = Reflect.decorate(m, g, y, E);
23320
23318
  else
23321
- for (var C = m.length - 1; C >= 0; C--)
23322
- (v = m[C]) && (S = (A < 3 ? v(S) : A > 3 ? v(g, y, S) : v(g, y)) || S);
23319
+ for (var _ = m.length - 1; _ >= 0; _--)
23320
+ (v = m[_]) && (S = (A < 3 ? v(S) : A > 3 ? v(g, y, S) : v(g, y)) || S);
23323
23321
  return A > 3 && S && Object.defineProperty(g, y, S), S;
23324
23322
  }, e = N && N.__param || function(m, g) {
23325
23323
  return function(y, E) {
@@ -23339,8 +23337,8 @@ function x9() {
23339
23337
  return super.adaptivePredict(g, y, E, A);
23340
23338
  try {
23341
23339
  this._input = g, this._startIndex = g.index, this._sllStopIndex = this._startIndex - 1, this._llStopIndex = -1, this.currentDecision = y, this.currentState = void 0, this.conflictingAltResolvedBySLL = r.ATN.INVALID_ALT_NUMBER;
23342
- let S = process.hrtime(), v = super.adaptivePredict(g, y, E), C = process.hrtime(), _ = (C[0] - S[0]) * 1e9;
23343
- _ === 0 ? _ = C[1] - S[1] : _ += 1e9 - S[1] + C[1], this.decisions[y].timeInPrediction += _, this.decisions[y].invocations++;
23340
+ let S = process.hrtime(), v = super.adaptivePredict(g, y, E), _ = process.hrtime(), C = (_[0] - S[0]) * 1e9;
23341
+ C === 0 ? C = _[1] - S[1] : C += 1e9 - S[1] + _[1], this.decisions[y].timeInPrediction += C, this.decisions[y].invocations++;
23344
23342
  let b = this._sllStopIndex - this._startIndex + 1;
23345
23343
  if (this.decisions[y].SLL_TotalLook += b, this.decisions[y].SLL_MinLook = this.decisions[y].SLL_MinLook === 0 ? b : Math.min(this.decisions[y].SLL_MinLook, b), b > this.decisions[y].SLL_MaxLook && (this.decisions[y].SLL_MaxLook = b, this.decisions[y].SLL_MaxLookEvent = new l.LookaheadEventInfo(y, void 0, v, g, this._startIndex, this._sllStopIndex, !1)), this._llStopIndex >= 0) {
23346
23344
  let R = this._llStopIndex - this._startIndex + 1;
@@ -23377,8 +23375,8 @@ function x9() {
23377
23375
  return E;
23378
23376
  }
23379
23377
  computeTargetState(g, y, E, A, S, v) {
23380
- let C = super.computeTargetState(g, y, E, A, S, v);
23381
- return S ? this.decisions[this.currentDecision].LL_ATNTransitions++ : this.decisions[this.currentDecision].SLL_ATNTransitions++, C;
23378
+ let _ = super.computeTargetState(g, y, E, A, S, v);
23379
+ return S ? this.decisions[this.currentDecision].LL_ATNTransitions++ : this.decisions[this.currentDecision].SLL_ATNTransitions++, _;
23382
23380
  }
23383
23381
  evalSemanticContextImpl(g, y, E) {
23384
23382
  if (this.currentState === void 0 || this._input === void 0)
@@ -23398,11 +23396,11 @@ function x9() {
23398
23396
  reportAttemptingFullContext(g, y, E, A, S) {
23399
23397
  y != null ? this.conflictingAltResolvedBySLL = y.nextSetBit(0) : this.conflictingAltResolvedBySLL = E.s0.configs.getRepresentedAlternatives().nextSetBit(0), this.decisions[this.currentDecision].LL_Fallback++, super.reportAttemptingFullContext(g, y, E, A, S);
23400
23398
  }
23401
- reportAmbiguity(g, y, E, A, S, v, C) {
23399
+ reportAmbiguity(g, y, E, A, S, v, _) {
23402
23400
  if (this.currentState === void 0 || this._input === void 0)
23403
23401
  throw new Error("Invalid state");
23404
- let _;
23405
- v != null ? _ = v.nextSetBit(0) : _ = C.getRepresentedAlternatives().nextSetBit(0), this.conflictingAltResolvedBySLL !== r.ATN.INVALID_ALT_NUMBER && _ !== this.conflictingAltResolvedBySLL && this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision, this.currentState, this._input, E, A)), this.decisions[this.currentDecision].ambiguities.push(new n.AmbiguityInfo(this.currentDecision, this.currentState, v, this._input, E, A)), super.reportAmbiguity(g, y, E, A, S, v, C);
23402
+ let C;
23403
+ v != null ? C = v.nextSetBit(0) : C = _.getRepresentedAlternatives().nextSetBit(0), this.conflictingAltResolvedBySLL !== r.ATN.INVALID_ALT_NUMBER && C !== this.conflictingAltResolvedBySLL && this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision, this.currentState, this._input, E, A)), this.decisions[this.currentDecision].ambiguities.push(new n.AmbiguityInfo(this.currentDecision, this.currentState, v, this._input, E, A)), super.reportAmbiguity(g, y, E, A, S, v, _);
23406
23404
  }
23407
23405
  // ---------------------------------------------------------------------
23408
23406
  getDecisionInfo() {
@@ -23447,20 +23445,20 @@ function Yp() {
23447
23445
  * Copyright 2016 The ANTLR Project. All rights reserved.
23448
23446
  * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
23449
23447
  */
23450
- var t = N && N.__decorate || function(A, S, v, C) {
23451
- var _ = arguments.length, b = _ < 3 ? S : C === null ? C = Object.getOwnPropertyDescriptor(S, v) : C, R;
23448
+ var t = N && N.__decorate || function(A, S, v, _) {
23449
+ var C = arguments.length, b = C < 3 ? S : _ === null ? _ = Object.getOwnPropertyDescriptor(S, v) : _, R;
23452
23450
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
23453
- b = Reflect.decorate(A, S, v, C);
23451
+ b = Reflect.decorate(A, S, v, _);
23454
23452
  else
23455
23453
  for (var O = A.length - 1; O >= 0; O--)
23456
- (R = A[O]) && (b = (_ < 3 ? R(b) : _ > 3 ? R(S, v, b) : R(S, v)) || b);
23457
- return _ > 3 && b && Object.defineProperty(S, v, b), b;
23454
+ (R = A[O]) && (b = (C < 3 ? R(b) : C > 3 ? R(S, v, b) : R(S, v)) || b);
23455
+ return C > 3 && b && Object.defineProperty(S, v, b), b;
23458
23456
  }, e = N && N.__param || function(A, S) {
23459
- return function(v, C) {
23460
- S(v, C, A);
23457
+ return function(v, _) {
23458
+ S(v, _, A);
23461
23459
  };
23462
- }, n = N && N.__awaiter || function(A, S, v, C) {
23463
- function _(b) {
23460
+ }, n = N && N.__awaiter || function(A, S, v, _) {
23461
+ function C(b) {
23464
23462
  return b instanceof v ? b : new v(function(R) {
23465
23463
  R(b);
23466
23464
  });
@@ -23468,22 +23466,22 @@ function Yp() {
23468
23466
  return new (v || (v = Promise))(function(b, R) {
23469
23467
  function O(q) {
23470
23468
  try {
23471
- M(C.next(q));
23469
+ M(_.next(q));
23472
23470
  } catch (W) {
23473
23471
  R(W);
23474
23472
  }
23475
23473
  }
23476
23474
  function L(q) {
23477
23475
  try {
23478
- M(C.throw(q));
23476
+ M(_.throw(q));
23479
23477
  } catch (W) {
23480
23478
  R(W);
23481
23479
  }
23482
23480
  }
23483
23481
  function M(q) {
23484
- q.done ? b(q.value) : _(q.value).then(O, L);
23482
+ q.done ? b(q.value) : C(q.value).then(O, L);
23485
23483
  }
23486
- M((C = C.apply(A, S || [])).next());
23484
+ M((_ = _.apply(A, S || [])).next());
23487
23485
  });
23488
23486
  };
23489
23487
  Object.defineProperty(mg, "__esModule", { value: !0 }), mg.Parser = void 0;
@@ -23501,8 +23499,8 @@ function Yp() {
23501
23499
  visitErrorNode(S) {
23502
23500
  }
23503
23501
  visitTerminal(S) {
23504
- let v = S.parent.ruleContext, C = S.symbol;
23505
- console.log("consume " + C + " rule " + this.ruleNames[v.ruleIndex]);
23502
+ let v = S.parent.ruleContext, _ = S.symbol;
23503
+ console.log("consume " + _ + " rule " + this.ruleNames[v.ruleIndex]);
23506
23504
  }
23507
23505
  }
23508
23506
  t([
@@ -23642,7 +23640,7 @@ function Yp() {
23642
23640
  * @param listener the listener to remove
23643
23641
  */
23644
23642
  removeParseListener(S) {
23645
- let v = this._parseListeners.findIndex((C) => C === S);
23643
+ let v = this._parseListeners.findIndex((_) => _ === S);
23646
23644
  v !== -1 && this._parseListeners.splice(v, 1);
23647
23645
  }
23648
23646
  /**
@@ -23698,23 +23696,23 @@ function Yp() {
23698
23696
  throw new Error("The current parser does not support an ATN with bypass alternatives.");
23699
23697
  let v = JA.bypassAltsAtnCache.get(S);
23700
23698
  if (v == null) {
23701
- let C = new i.ATNDeserializationOptions();
23702
- C.isGenerateRuleBypassTransitions = !0, v = new s.ATNDeserializer(C).deserialize(r.toCharArray(S)), JA.bypassAltsAtnCache.set(S, v);
23699
+ let _ = new i.ATNDeserializationOptions();
23700
+ _.isGenerateRuleBypassTransitions = !0, v = new s.ATNDeserializer(_).deserialize(r.toCharArray(S)), JA.bypassAltsAtnCache.set(S, v);
23703
23701
  }
23704
23702
  return v;
23705
23703
  }
23706
- compileParseTreePattern(S, v, C) {
23704
+ compileParseTreePattern(S, v, _) {
23707
23705
  return n(this, void 0, void 0, function* () {
23708
- if (!C) {
23706
+ if (!_) {
23709
23707
  if (this.inputStream) {
23710
23708
  let O = this.inputStream.tokenSource;
23711
- O instanceof l.Lexer && (C = O);
23709
+ O instanceof l.Lexer && (_ = O);
23712
23710
  }
23713
- if (!C)
23711
+ if (!_)
23714
23712
  throw new Error("Parser can't discover a lexer to use");
23715
23713
  }
23716
- let _ = C, b = yield Promise.resolve().then(() => jme());
23717
- return new b.ParseTreePatternMatcher(_, this).compile(S, v);
23714
+ let C = _, b = yield Promise.resolve().then(() => jme());
23715
+ return new b.ParseTreePatternMatcher(C, this).compile(S, v);
23718
23716
  });
23719
23717
  }
23720
23718
  get errorHandler() {
@@ -23736,12 +23734,12 @@ function Yp() {
23736
23734
  get currentToken() {
23737
23735
  return this._input.LT(1);
23738
23736
  }
23739
- notifyErrorListeners(S, v, C) {
23737
+ notifyErrorListeners(S, v, _) {
23740
23738
  v === void 0 ? v = this.currentToken : v === null && (v = void 0), this._syntaxErrors++;
23741
- let _ = -1, b = -1;
23742
- v != null && (_ = v.line, b = v.charPositionInLine);
23739
+ let C = -1, b = -1;
23740
+ v != null && (C = v.line, b = v.charPositionInLine);
23743
23741
  let R = this.getErrorListenerDispatch();
23744
- R.syntaxError && R.syntaxError(this, v, _, b, S, C);
23742
+ R.syntaxError && R.syntaxError(this, v, C, b, S, _);
23745
23743
  }
23746
23744
  /**
23747
23745
  * Consume and return the [current symbol](`currentToken`).
@@ -23770,15 +23768,15 @@ function Yp() {
23770
23768
  let v = this._parseListeners.length !== 0;
23771
23769
  if (this._buildParseTrees || v)
23772
23770
  if (this._errHandler.inErrorRecoveryMode(this)) {
23773
- let C = this._ctx.addErrorNode(this.createErrorNode(this._ctx, S));
23771
+ let _ = this._ctx.addErrorNode(this.createErrorNode(this._ctx, S));
23774
23772
  if (v)
23775
- for (let _ of this._parseListeners)
23776
- _.visitErrorNode && _.visitErrorNode(C);
23773
+ for (let C of this._parseListeners)
23774
+ C.visitErrorNode && C.visitErrorNode(_);
23777
23775
  } else {
23778
- let C = this.createTerminalNode(this._ctx, S);
23779
- if (this._ctx.addChild(C), v)
23780
- for (let _ of this._parseListeners)
23781
- _.visitTerminal && _.visitTerminal(C);
23776
+ let _ = this.createTerminalNode(this._ctx, S);
23777
+ if (this._ctx.addChild(_), v)
23778
+ for (let C of this._parseListeners)
23779
+ C.visitTerminal && C.visitTerminal(_);
23782
23780
  }
23783
23781
  return S;
23784
23782
  }
@@ -23808,13 +23806,13 @@ function Yp() {
23808
23806
  * Always called by generated parsers upon entry to a rule. Access field
23809
23807
  * {@link #_ctx} get the current context.
23810
23808
  */
23811
- enterRule(S, v, C) {
23809
+ enterRule(S, v, _) {
23812
23810
  this.state = v, this._ctx = S, this._ctx._start = this._input.LT(1), this._buildParseTrees && this.addContextToParseTree(), this.triggerEnterRuleEvent();
23813
23811
  }
23814
- enterLeftFactoredRule(S, v, C) {
23812
+ enterLeftFactoredRule(S, v, _) {
23815
23813
  if (this.state = v, this._buildParseTrees) {
23816
- let _ = this._ctx.getChild(this._ctx.childCount - 1);
23817
- this._ctx.removeLastChild(), _._parent = S, S.addChild(_);
23814
+ let C = this._ctx.getChild(this._ctx.childCount - 1);
23815
+ this._ctx.removeLastChild(), C._parent = S, S.addChild(C);
23818
23816
  }
23819
23817
  this._ctx = S, this._ctx._start = this._input.LT(1), this._buildParseTrees && this.addContextToParseTree(), this.triggerEnterRuleEvent();
23820
23818
  }
@@ -23823,8 +23821,8 @@ function Yp() {
23823
23821
  }
23824
23822
  enterOuterAlt(S, v) {
23825
23823
  if (S.altNumber = v, this._buildParseTrees && this._ctx !== S) {
23826
- let C = this._ctx._parent;
23827
- C != null && (C.removeLastChild(), C.addChild(S));
23824
+ let _ = this._ctx._parent;
23825
+ _ != null && (_.removeLastChild(), _.addChild(S));
23828
23826
  }
23829
23827
  this._ctx = S;
23830
23828
  }
@@ -23837,15 +23835,15 @@ function Yp() {
23837
23835
  get precedence() {
23838
23836
  return this._precedenceStack.isEmpty ? -1 : this._precedenceStack.peek();
23839
23837
  }
23840
- enterRecursionRule(S, v, C, _) {
23841
- this.state = v, this._precedenceStack.push(_), this._ctx = S, this._ctx._start = this._input.LT(1), this.triggerEnterRuleEvent();
23838
+ enterRecursionRule(S, v, _, C) {
23839
+ this.state = v, this._precedenceStack.push(C), this._ctx = S, this._ctx._start = this._input.LT(1), this.triggerEnterRuleEvent();
23842
23840
  }
23843
23841
  /** Like {@link #enterRule} but for recursive rules.
23844
23842
  * Make the current context the child of the incoming localctx.
23845
23843
  */
23846
- pushNewRecursionContext(S, v, C) {
23847
- let _ = this._ctx;
23848
- _._parent = S, _.invokingState = v, _._stop = this._input.tryLT(-1), this._ctx = S, this._ctx._start = _._start, this._buildParseTrees && this._ctx.addChild(_), this.triggerEnterRuleEvent();
23844
+ pushNewRecursionContext(S, v, _) {
23845
+ let C = this._ctx;
23846
+ C._parent = S, C.invokingState = v, C._stop = this._input.tryLT(-1), this._ctx = S, this._ctx._start = C._start, this._buildParseTrees && this._ctx.addChild(C), this.triggerEnterRuleEvent();
23849
23847
  }
23850
23848
  unrollRecursionContexts(S) {
23851
23849
  this._precedenceStack.pop(), this._ctx._stop = this._input.tryLT(-1);
@@ -23893,16 +23891,16 @@ function Yp() {
23893
23891
  * the ATN, otherwise `false`.
23894
23892
  */
23895
23893
  isExpectedToken(S) {
23896
- let v = this.interpreter.atn, C = this._ctx, _ = v.states[this.state], b = v.nextTokens(_);
23894
+ let v = this.interpreter.atn, _ = this._ctx, C = v.states[this.state], b = v.nextTokens(C);
23897
23895
  if (b.contains(S))
23898
23896
  return !0;
23899
23897
  if (!b.contains(g.Token.EPSILON))
23900
23898
  return !1;
23901
- for (; C != null && C.invokingState >= 0 && b.contains(g.Token.EPSILON); ) {
23902
- let O = v.states[C.invokingState].transition(0);
23899
+ for (; _ != null && _.invokingState >= 0 && b.contains(g.Token.EPSILON); ) {
23900
+ let O = v.states[_.invokingState].transition(0);
23903
23901
  if (b = v.nextTokens(O.followState), b.contains(S))
23904
23902
  return !0;
23905
- C = C._parent;
23903
+ _ = _._parent;
23906
23904
  }
23907
23905
  return !!(b.contains(g.Token.EPSILON) && S === g.Token.EOF);
23908
23906
  }
@@ -23939,12 +23937,12 @@ function Yp() {
23939
23937
  * This is very useful for error messages.
23940
23938
  */
23941
23939
  getRuleInvocationStack(S = this._ctx) {
23942
- let v = S, C = this.ruleNames, _ = [];
23940
+ let v = S, _ = this.ruleNames, C = [];
23943
23941
  for (; v != null; ) {
23944
23942
  let b = v.ruleIndex;
23945
- b < 0 ? _.push("n/a") : _.push(C[b]), v = v._parent;
23943
+ b < 0 ? C.push("n/a") : C.push(_[b]), v = v._parent;
23946
23944
  }
23947
- return _;
23945
+ return C;
23948
23946
  }
23949
23947
  /** For debugging and other purposes. */
23950
23948
  getDFAStrings() {
@@ -23974,8 +23972,8 @@ function Yp() {
23974
23972
  */
23975
23973
  setProfile(S) {
23976
23974
  return n(this, void 0, void 0, function* () {
23977
- let v = yield Promise.resolve().then(() => x9()), C = this.interpreter;
23978
- S ? C instanceof v.ProfilingATNSimulator || (this.interpreter = new v.ProfilingATNSimulator(this)) : C instanceof v.ProfilingATNSimulator && (this.interpreter = new x.ParserATNSimulator(this.atn, this)), this.interpreter.setPredictionMode(C.getPredictionMode());
23975
+ let v = yield Promise.resolve().then(() => x9()), _ = this.interpreter;
23976
+ S ? _ instanceof v.ProfilingATNSimulator || (this.interpreter = new v.ProfilingATNSimulator(this)) : _ instanceof v.ProfilingATNSimulator && (this.interpreter = new x.ParserATNSimulator(this.atn, this)), this.interpreter.setPredictionMode(_.getPredictionMode());
23979
23977
  });
23980
23978
  }
23981
23979
  /** During a parse is sometimes useful to listen in on the rule entry and exit
@@ -41234,19 +41232,19 @@ class Ive extends Lve.ExpressionDef {
41234
41232
  structPath: f
41235
41233
  };
41236
41234
  let v = [S];
41237
- const C = (u = e.dialectObj()) === null || u === void 0 ? void 0 : u.name, _ = C ? p.dialect[C] : void 0;
41238
- if (_ === void 0)
41239
- this.log(`Function ${this.name} is not defined in dialect ${C}`);
41235
+ const _ = (u = e.dialectObj()) === null || u === void 0 ? void 0 : u.name, C = _ ? p.dialect[_] : void 0;
41236
+ if (C === void 0)
41237
+ this.log(`Function ${this.name} is not defined in dialect ${_}`);
41240
41238
  else {
41241
41239
  if (n != null && n.orderBys && n.orderBys.length > 0) {
41242
41240
  const O = (0, Js.expressionIsAnalytic)(p.returnType.expressionType);
41243
- if (O || this.inExperiment("aggregate_order_by", !0) || n.orderBys[0].log("Enable experiment `aggregate_order_by` to use `order_by` with an aggregate function"), _.supportsOrderBy || O) {
41244
- const L = _.supportsOrderBy !== "only_default", M = n.orderBys.flatMap((q) => O ? q.getAnalyticOrderBy(e) : q.getAggregateOrderBy(e, L));
41241
+ if (O || this.inExperiment("aggregate_order_by", !0) || n.orderBys[0].log("Enable experiment `aggregate_order_by` to use `order_by` with an aggregate function"), C.supportsOrderBy || O) {
41242
+ const L = C.supportsOrderBy !== "only_default", M = n.orderBys.flatMap((q) => O ? q.getAnalyticOrderBy(e) : q.getAggregateOrderBy(e, L));
41245
41243
  S.orderBy = M;
41246
41244
  } else
41247
41245
  n.orderBys[0].log(`Function \`${this.name}\` does not support \`order_by\``);
41248
41246
  }
41249
- (n == null ? void 0 : n.limit) !== void 0 && (_.supportsLimit ? S.limit = n.limit.limit : this.log(`Function ${this.name} does not support limit`));
41247
+ (n == null ? void 0 : n.limit) !== void 0 && (C.supportsLimit ? S.limit = n.limit.limit : this.log(`Function ${this.name} does not support limit`));
41250
41248
  }
41251
41249
  if (n != null && n.partitionBys && n.partitionBys.length > 0) {
41252
41250
  const O = [];
@@ -45772,13 +45770,13 @@ class at {
45772
45770
  const E = h ? Ube(o) : u ? qbe(o) : $X(o), A = E || BX(o);
45773
45771
  if (A)
45774
45772
  return at.invalid(A);
45775
- const S = h ? mj(o) : u ? yj(o) : o, [v, C] = nS(S, s, r), _ = new at({
45773
+ const S = h ? mj(o) : u ? yj(o) : o, [v, _] = nS(S, s, r), C = new at({
45776
45774
  ts: v,
45777
45775
  zone: r,
45778
- o: C,
45776
+ o: _,
45779
45777
  loc: x
45780
45778
  });
45781
- return o.weekday && c && e.weekday !== _.weekday ? at.invalid("mismatched weekday", `you can't specify both a weekday of ${o.weekday} and a date of ${_.toISO()}`) : _;
45779
+ return o.weekday && c && e.weekday !== C.weekday ? at.invalid("mismatched weekday", `you can't specify both a weekday of ${o.weekday} and a date of ${C.toISO()}`) : C;
45782
45780
  }
45783
45781
  /**
45784
45782
  * Create a DateTime from an ISO 8601 string
@@ -53586,22 +53584,22 @@ function WDe(t) {
53586
53584
  return MF;
53587
53585
  if (A)
53588
53586
  return A = !1, Jj;
53589
- var C, _ = m, b;
53590
- if (f.charCodeAt(_) === jF) {
53587
+ var _, C = m, b;
53588
+ if (f.charCodeAt(C) === jF) {
53591
53589
  for (; m++ < p && f.charCodeAt(m) !== jF || f.charCodeAt(++m) === jF; )
53592
53590
  ;
53593
- return (C = m) >= p ? E = !0 : (b = f.charCodeAt(m++)) === sm ? A = !0 : b === UF && (A = !0, f.charCodeAt(m) === sm && ++m), f.slice(_ + 1, C - 1).replace(/""/g, '"');
53591
+ return (_ = m) >= p ? E = !0 : (b = f.charCodeAt(m++)) === sm ? A = !0 : b === UF && (A = !0, f.charCodeAt(m) === sm && ++m), f.slice(C + 1, _ - 1).replace(/""/g, '"');
53594
53592
  }
53595
53593
  for (; m < p; ) {
53596
- if ((b = f.charCodeAt(C = m++)) === sm)
53594
+ if ((b = f.charCodeAt(_ = m++)) === sm)
53597
53595
  A = !0;
53598
53596
  else if (b === UF)
53599
53597
  A = !0, f.charCodeAt(m) === sm && ++m;
53600
53598
  else if (b !== n)
53601
53599
  continue;
53602
- return f.slice(_, C);
53600
+ return f.slice(C, _);
53603
53601
  }
53604
- return E = !0, f.slice(_, p);
53602
+ return E = !0, f.slice(C, p);
53605
53603
  }
53606
53604
  for (; (y = S()) !== MF; ) {
53607
53605
  for (var v = []; y !== Jj && y !== MF; )
@@ -54240,10 +54238,10 @@ function iZ(t) {
54240
54238
  f = _x(f);
54241
54239
  var x = f.fill, h = f.align, p = f.sign, m = f.symbol, g = f.zero, y = f.width, E = f.comma, A = f.precision, S = f.trim, v = f.type;
54242
54240
  v === "n" ? (E = !0, v = "g") : rU[v] || (A === void 0 && (A = 12), S = !0, v = "g"), (g || x === "0" && h === "=") && (g = !0, x = "0", h = "=");
54243
- var C = m === "$" ? n : m === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", _ = m === "$" ? r : /[%p]/.test(v) ? o : "", b = rU[v], R = /[defgprs%]/.test(v);
54241
+ var _ = m === "$" ? n : m === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", C = m === "$" ? r : /[%p]/.test(v) ? o : "", b = rU[v], R = /[defgprs%]/.test(v);
54244
54242
  A = A === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, A)) : Math.max(0, Math.min(20, A));
54245
54243
  function O(L) {
54246
- var M = C, q = _, W, B, G;
54244
+ var M = _, q = C, W, B, G;
54247
54245
  if (v === "c")
54248
54246
  q = b(L) + q, L = "";
54249
54247
  else {
@@ -54817,8 +54815,8 @@ function EZ(t) {
54817
54815
  Z: dwe,
54818
54816
  "%": Swe
54819
54817
  };
54820
- A.x = C(n, A), A.X = C(r, A), A.c = C(e, A), S.x = C(n, S), S.X = C(r, S), S.c = C(e, S);
54821
- function C(D, $) {
54818
+ A.x = _(n, A), A.X = _(r, A), A.c = _(e, A), S.x = _(n, S), S.X = _(r, S), S.c = _(e, S);
54819
+ function _(D, $) {
54822
54820
  return function(j) {
54823
54821
  var Q = [], I = -1, H = 0, P = D.length, J, ce, ue;
54824
54822
  for (j instanceof Date || (j = /* @__PURE__ */ new Date(+j)); ++I < P; )
@@ -54826,7 +54824,7 @@ function EZ(t) {
54826
54824
  return Q.push(D.slice(H, I)), Q.join("");
54827
54825
  };
54828
54826
  }
54829
- function _(D, $) {
54827
+ function C(D, $) {
54830
54828
  return function(j) {
54831
54829
  var Q = am(1900, void 0, 1), I = b(Q, D, j += "", 0), H, P;
54832
54830
  if (I != j.length)
@@ -54923,25 +54921,25 @@ function EZ(t) {
54923
54921
  }
54924
54922
  return {
54925
54923
  format: function(D) {
54926
- var $ = C(D += "", A);
54924
+ var $ = _(D += "", A);
54927
54925
  return $.toString = function() {
54928
54926
  return D;
54929
54927
  }, $;
54930
54928
  },
54931
54929
  parse: function(D) {
54932
- var $ = _(D += "", !1);
54930
+ var $ = C(D += "", !1);
54933
54931
  return $.toString = function() {
54934
54932
  return D;
54935
54933
  }, $;
54936
54934
  },
54937
54935
  utcFormat: function(D) {
54938
- var $ = C(D += "", S);
54936
+ var $ = _(D += "", S);
54939
54937
  return $.toString = function() {
54940
54938
  return D;
54941
54939
  }, $;
54942
54940
  },
54943
54941
  utcParse: function(D) {
54944
- var $ = _(D += "", !0);
54942
+ var $ = C(D += "", !0);
54945
54943
  return $.toString = function() {
54946
54944
  return D;
54947
54945
  }, $;
@@ -56931,11 +56929,11 @@ function iee(t, e, n) {
56931
56929
  let a = 0, l = 0, c = 0, f = 0, x = 0, h, p, m, g;
56932
56930
  for (h = 0; h < u; )
56933
56931
  p = r[h], m = i[h++], g = p * p, a += (g - a) / h, l += (g * p - l) / h, c += (g * g - c) / h, f += (p * m - f) / h, x += (g * m - x) / h;
56934
- const y = c - a * a, E = a * y - l * l, A = (x * a - f * l) / E, S = (f * y - x * l) / E, v = -A * a, C = (_) => (_ = _ - s, A * _ * _ + S * _ + v + o);
56932
+ const y = c - a * a, E = a * y - l * l, A = (x * a - f * l) / E, S = (f * y - x * l) / E, v = -A * a, _ = (C) => (C = C - s, A * C * C + S * C + v + o);
56935
56933
  return {
56936
56934
  coef: [v - S * s + A * s * s + o, S - 2 * A * s, A],
56937
- predict: C,
56938
- rSquared: b2(t, e, n, o, C)
56935
+ predict: _,
56936
+ rSquared: b2(t, e, n, o, _)
56939
56937
  };
56940
56938
  }
56941
56939
  function O4e(t, e, n, r) {
@@ -57005,13 +57003,13 @@ function F4e(t, e, n, r) {
57005
57003
  const p = [0, l - 1];
57006
57004
  for (let g = 0; g < a; ++g) {
57007
57005
  const y = i[g], E = p[0], A = p[1], S = y - i[E] > i[A] - y ? E : A;
57008
- let v = 0, C = 0, _ = 0, b = 0, R = 0;
57006
+ let v = 0, _ = 0, C = 0, b = 0, R = 0;
57009
57007
  const O = 1 / Math.abs(i[S] - y || 1);
57010
57008
  for (let q = E; q <= A; ++q) {
57011
57009
  const W = i[q], B = s[q], G = w4e(Math.abs(y - W) * O) * x[q], te = W * G;
57012
- v += G, C += te, _ += B * G, b += B * te, R += W * te;
57010
+ v += G, _ += te, C += B * G, b += B * te, R += W * te;
57013
57011
  }
57014
- const [L, M] = VE(C / v, _ / v, b / v, R / v);
57012
+ const [L, M] = VE(_ / v, C / v, b / v, R / v);
57015
57013
  c[g] = L + M * y, f[g] = Math.abs(s[g] - c[g]), L4e(i, g + 1, p);
57016
57014
  }
57017
57015
  if (h === DU)
@@ -59383,7 +59381,7 @@ function L5e(t, e, n, r, i, s, o, u) {
59383
59381
  return x = (c * (e - s) - f * (t - i)) / x, [t + x * a, e + x * l];
59384
59382
  }
59385
59383
  function dA(t, e, n, r, i, s, o) {
59386
- var u = t - n, a = e - r, l = (o ? s : -s) / Uf(u * u + a * a), c = l * a, f = -l * u, x = t + c, h = e + f, p = n + c, m = r + f, g = (x + p) / 2, y = (h + m) / 2, E = p - x, A = m - h, S = E * E + A * A, v = i - s, C = x * m - p * h, _ = (A < 0 ? -1 : 1) * Uf(C5e(0, v * v * S - C * C)), b = (C * A - E * _) / S, R = (-C * E - A * _) / S, O = (C * A + E * _) / S, L = (-C * E + A * _) / S, M = b - g, q = R - y, W = O - g, B = L - y;
59384
+ var u = t - n, a = e - r, l = (o ? s : -s) / Uf(u * u + a * a), c = l * a, f = -l * u, x = t + c, h = e + f, p = n + c, m = r + f, g = (x + p) / 2, y = (h + m) / 2, E = p - x, A = m - h, S = E * E + A * A, v = i - s, _ = x * m - p * h, C = (A < 0 ? -1 : 1) * Uf(C5e(0, v * v * S - _ * _)), b = (_ * A - E * C) / S, R = (-_ * E - A * C) / S, O = (_ * A + E * C) / S, L = (-_ * E + A * C) / S, M = b - g, q = R - y, W = O - g, B = L - y;
59387
59385
  return M * M + q * q > W * W + B * B && (b = O, R = L), {
59388
59386
  cx: b,
59389
59387
  cy: R,
@@ -59402,10 +59400,10 @@ function I5e() {
59402
59400
  else if (g > wee - Ur)
59403
59401
  u.moveTo(h * _f(p), h * Cu(p)), u.arc(0, 0, h, p, m, !y), x > Ur && (u.moveTo(x * _f(m), x * Cu(m)), u.arc(0, 0, x, m, p, y));
59404
59402
  else {
59405
- var E = p, A = m, S = p, v = m, C = g, _ = g, b = o.apply(this, arguments) / 2, R = b > Ur && (r ? +r.apply(this, arguments) : Uf(x * x + h * h)), O = JF(IU(h - x) / 2, +n.apply(this, arguments)), L = O, M = O, q, W;
59403
+ var E = p, A = m, S = p, v = m, _ = g, C = g, b = o.apply(this, arguments) / 2, R = b > Ur && (r ? +r.apply(this, arguments) : Uf(x * x + h * h)), O = JF(IU(h - x) / 2, +n.apply(this, arguments)), L = O, M = O, q, W;
59406
59404
  if (R > Ur) {
59407
59405
  var B = $U(R / x * Cu(b)), G = $U(R / h * Cu(b));
59408
- (C -= B * 2) > Ur ? (B *= y ? 1 : -1, S += B, v -= B) : (C = 0, S = v = (p + m) / 2), (_ -= G * 2) > Ur ? (G *= y ? 1 : -1, E += G, A -= G) : (_ = 0, E = A = (p + m) / 2);
59406
+ (_ -= B * 2) > Ur ? (B *= y ? 1 : -1, S += B, v -= B) : (_ = 0, S = v = (p + m) / 2), (C -= G * 2) > Ur ? (G *= y ? 1 : -1, E += G, A -= G) : (C = 0, E = A = (p + m) / 2);
59409
59407
  }
59410
59408
  var te = h * _f(E), X = h * Cu(E), de = x * _f(v), be = x * Cu(v);
59411
59409
  if (O > Ur) {
@@ -59417,7 +59415,7 @@ function I5e() {
59417
59415
  } else
59418
59416
  L = M = 0;
59419
59417
  }
59420
- _ > Ur ? M > Ur ? (q = dA(T, w, te, X, h, M, y), W = dA(ee, U, de, be, h, M, y), u.moveTo(q.cx + q.x01, q.cy + q.y01), M < O ? u.arc(q.cx, q.cy, M, Mr(q.y01, q.x01), Mr(W.y01, W.x01), !y) : (u.arc(q.cx, q.cy, M, Mr(q.y01, q.x01), Mr(q.y11, q.x11), !y), u.arc(0, 0, h, Mr(q.cy + q.y11, q.cx + q.x11), Mr(W.cy + W.y11, W.cx + W.x11), !y), u.arc(W.cx, W.cy, M, Mr(W.y11, W.x11), Mr(W.y01, W.x01), !y))) : (u.moveTo(te, X), u.arc(0, 0, h, E, A, !y)) : u.moveTo(te, X), !(x > Ur) || !(C > Ur) ? u.lineTo(de, be) : L > Ur ? (q = dA(de, be, ee, U, x, -L, y), W = dA(te, X, T, w, x, -L, y), u.lineTo(q.cx + q.x01, q.cy + q.y01), L < O ? u.arc(q.cx, q.cy, L, Mr(q.y01, q.x01), Mr(W.y01, W.x01), !y) : (u.arc(q.cx, q.cy, L, Mr(q.y01, q.x01), Mr(q.y11, q.x11), !y), u.arc(0, 0, x, Mr(q.cy + q.y11, q.cx + q.x11), Mr(W.cy + W.y11, W.cx + W.x11), y), u.arc(W.cx, W.cy, L, Mr(W.y11, W.x11), Mr(W.y01, W.x01), !y))) : u.arc(0, 0, x, v, S, y);
59418
+ C > Ur ? M > Ur ? (q = dA(T, w, te, X, h, M, y), W = dA(ee, U, de, be, h, M, y), u.moveTo(q.cx + q.x01, q.cy + q.y01), M < O ? u.arc(q.cx, q.cy, M, Mr(q.y01, q.x01), Mr(W.y01, W.x01), !y) : (u.arc(q.cx, q.cy, M, Mr(q.y01, q.x01), Mr(q.y11, q.x11), !y), u.arc(0, 0, h, Mr(q.cy + q.y11, q.cx + q.x11), Mr(W.cy + W.y11, W.cx + W.x11), !y), u.arc(W.cx, W.cy, M, Mr(W.y11, W.x11), Mr(W.y01, W.x01), !y))) : (u.moveTo(te, X), u.arc(0, 0, h, E, A, !y)) : u.moveTo(te, X), !(x > Ur) || !(_ > Ur) ? u.lineTo(de, be) : L > Ur ? (q = dA(de, be, ee, U, x, -L, y), W = dA(te, X, T, w, x, -L, y), u.lineTo(q.cx + q.x01, q.cy + q.y01), L < O ? u.arc(q.cx, q.cy, L, Mr(q.y01, q.x01), Mr(W.y01, W.x01), !y) : (u.arc(q.cx, q.cy, L, Mr(q.y01, q.x01), Mr(q.y11, q.x11), !y), u.arc(0, 0, x, Mr(q.cy + q.y11, q.cx + q.x11), Mr(W.cy + W.y11, W.cx + W.x11), y), u.arc(W.cx, W.cy, L, Mr(W.y11, W.x11), Mr(W.y01, W.x01), !y))) : u.arc(0, 0, x, v, S, y);
59421
59419
  }
59422
59420
  if (u.closePath(), c)
59423
59421
  return u = null, c + "" || null;
@@ -60969,17 +60967,17 @@ const DIe = function t(e, n, r) {
60969
60967
  function i(s, o) {
60970
60968
  var u = s[0], a = s[1], l = s[2], c = o[0], f = o[1], x = o[2], h = c - u, p = f - a, m = h * h + p * p, g, y;
60971
60969
  if (m < RIe)
60972
- y = Math.log(x / l) / e, g = function(_) {
60970
+ y = Math.log(x / l) / e, g = function(C) {
60973
60971
  return [
60974
- u + _ * h,
60975
- a + _ * p,
60976
- l * Math.exp(e * _ * y)
60972
+ u + C * h,
60973
+ a + C * p,
60974
+ l * Math.exp(e * C * y)
60977
60975
  ];
60978
60976
  };
60979
60977
  else {
60980
- var E = Math.sqrt(m), A = (x * x - l * l + r * m) / (2 * l * n * E), S = (x * x - l * l - r * m) / (2 * x * n * E), v = Math.log(Math.sqrt(A * A + 1) - A), C = Math.log(Math.sqrt(S * S + 1) - S);
60981
- y = (C - v) / e, g = function(_) {
60982
- var b = _ * y, R = JU(v), O = l / (n * E) * (R * NIe(e * b + v) - OIe(v));
60978
+ var E = Math.sqrt(m), A = (x * x - l * l + r * m) / (2 * l * n * E), S = (x * x - l * l - r * m) / (2 * x * n * E), v = Math.log(Math.sqrt(A * A + 1) - A), _ = Math.log(Math.sqrt(S * S + 1) - S);
60979
+ y = (_ - v) / e, g = function(C) {
60980
+ var b = C * y, R = JU(v), O = l / (n * E) * (R * NIe(e * b + v) - OIe(v));
60983
60981
  return [
60984
60982
  u + O * h,
60985
60983
  a + O * p,
@@ -61438,21 +61436,21 @@ function ZIe(t) {
61438
61436
  }
61439
61437
  function w6(t, e, n, r, i, s, o, u, a, l) {
61440
61438
  var c = vte(), f = c.invert, x = c.domain, h = l(".%L"), p = l(":%S"), m = l("%I:%M"), g = l("%I %p"), y = l("%a %d"), E = l("%b %d"), A = l("%B"), S = l("%Y");
61441
- function v(C) {
61442
- return (a(C) < C ? h : u(C) < C ? p : o(C) < C ? m : s(C) < C ? g : r(C) < C ? i(C) < C ? y : E : n(C) < C ? A : S)(C);
61443
- }
61444
- return c.invert = function(C) {
61445
- return new Date(f(C));
61446
- }, c.domain = function(C) {
61447
- return arguments.length ? x(Array.from(C, ZIe)) : x().map(JIe);
61448
- }, c.ticks = function(C) {
61449
- var _ = x();
61450
- return t(_[0], _[_.length - 1], C ?? 10);
61451
- }, c.tickFormat = function(C, _) {
61452
- return _ == null ? v : l(_);
61453
- }, c.nice = function(C) {
61454
- var _ = x();
61455
- return (!C || typeof C.range != "function") && (C = e(_[0], _[_.length - 1], C ?? 10)), C ? x(Tte(_, C)) : c;
61439
+ function v(_) {
61440
+ return (a(_) < _ ? h : u(_) < _ ? p : o(_) < _ ? m : s(_) < _ ? g : r(_) < _ ? i(_) < _ ? y : E : n(_) < _ ? A : S)(_);
61441
+ }
61442
+ return c.invert = function(_) {
61443
+ return new Date(f(_));
61444
+ }, c.domain = function(_) {
61445
+ return arguments.length ? x(Array.from(_, ZIe)) : x().map(JIe);
61446
+ }, c.ticks = function(_) {
61447
+ var C = x();
61448
+ return t(C[0], C[C.length - 1], _ ?? 10);
61449
+ }, c.tickFormat = function(_, C) {
61450
+ return C == null ? v : l(C);
61451
+ }, c.nice = function(_) {
61452
+ var C = x();
61453
+ return (!_ || typeof _.range != "function") && (_ = e(C[0], C[C.length - 1], _ ?? 10)), _ ? x(Tte(C, _)) : c;
61456
61454
  }, c.copy = function() {
61457
61455
  return ZE(c, w6(t, e, n, r, i, s, o, u, a, l));
61458
61456
  }, c;
@@ -62109,13 +62107,13 @@ function H$e(t, e, n, r, i, s, o, u, a) {
62109
62107
  const h = x * (u - t) * 0.5 + f * (a - e) * 0.5, p = x * (a - e) * 0.5 - f * (u - t) * 0.5;
62110
62108
  let m = h * h / (n * n) + p * p / (r * r);
62111
62109
  m > 1 && (m = Math.sqrt(m), n *= m, r *= m);
62112
- const g = x / n, y = f / n, E = -f / r, A = x / r, S = g * u + y * a, v = E * u + A * a, C = g * t + y * e, _ = E * t + A * e;
62113
- let R = 1 / ((C - S) * (C - S) + (_ - v) * (_ - v)) - 0.25;
62110
+ const g = x / n, y = f / n, E = -f / r, A = x / r, S = g * u + y * a, v = E * u + A * a, _ = g * t + y * e, C = E * t + A * e;
62111
+ let R = 1 / ((_ - S) * (_ - S) + (C - v) * (C - v)) - 0.25;
62114
62112
  R < 0 && (R = 0);
62115
62113
  let O = Math.sqrt(R);
62116
62114
  s == i && (O = -O);
62117
- const L = 0.5 * (S + C) - O * (_ - v), M = 0.5 * (v + _) + O * (C - S), q = Math.atan2(v - M, S - L);
62118
- let B = Math.atan2(_ - M, C - L) - q;
62115
+ const L = 0.5 * (S + _) - O * (C - v), M = 0.5 * (v + C) + O * (_ - S), q = Math.atan2(v - M, S - L);
62116
+ let B = Math.atan2(C - M, _ - L) - q;
62119
62117
  B < 0 && s === 1 ? B += Lu : B > 0 && s === 0 && (B -= Lu);
62120
62118
  const G = Math.ceil(Math.abs(B / (Bf + 1e-3))), te = [];
62121
62119
  for (let X = 0; X < G; ++X) {
@@ -62129,8 +62127,8 @@ function z$e(t) {
62129
62127
  if (uw[e])
62130
62128
  return uw[e];
62131
62129
  var n = t[0], r = t[1], i = t[2], s = t[3], o = t[4], u = t[5], a = t[6], l = t[7];
62132
- const c = l * o, f = -a * u, x = a * o, h = l * u, p = Math.cos(i), m = Math.sin(i), g = Math.cos(s), y = Math.sin(s), E = 0.5 * (s - i), A = Math.sin(E * 0.5), S = 8 / 3 * A * A / Math.sin(E), v = n + p - S * m, C = r + m + S * p, _ = n + g, b = r + y, R = _ + S * y, O = b - S * g;
62133
- return uw[e] = [c * v + f * C, x * v + h * C, c * R + f * O, x * R + h * O, c * _ + f * b, x * _ + h * b];
62130
+ const c = l * o, f = -a * u, x = a * o, h = l * u, p = Math.cos(i), m = Math.sin(i), g = Math.cos(s), y = Math.sin(s), E = 0.5 * (s - i), A = Math.sin(E * 0.5), S = 8 / 3 * A * A / Math.sin(E), v = n + p - S * m, _ = r + m + S * p, C = n + g, b = r + y, R = C + S * y, O = b - S * g;
62131
+ return uw[e] = [c * v + f * _, x * v + h * _, c * R + f * O, x * R + h * O, c * C + f * b, x * C + h * b];
62134
62132
  }
62135
62133
  const Vs = ["l", 0, 0, 0, 0, 0, 0, 0];
62136
62134
  function Q$e(t, e, n) {
@@ -62359,12 +62357,12 @@ function mA(t, e, n) {
62359
62357
  function J$e() {
62360
62358
  var t = V$e, e = Y$e, n = K$e, r = X$e, i = Qa(0), s = i, o = i, u = i, a = null;
62361
62359
  function l(c, f, x) {
62362
- var h, p = f ?? +t.call(this, c), m = x ?? +e.call(this, c), g = +n.call(this, c), y = +r.call(this, c), E = Math.min(g, y) / 2, A = mA(+i.call(this, c), 0, E), S = mA(+s.call(this, c), 0, E), v = mA(+o.call(this, c), 0, E), C = mA(+u.call(this, c), 0, E);
62363
- if (a || (a = h = g6()), A <= 0 && S <= 0 && v <= 0 && C <= 0)
62360
+ var h, p = f ?? +t.call(this, c), m = x ?? +e.call(this, c), g = +n.call(this, c), y = +r.call(this, c), E = Math.min(g, y) / 2, A = mA(+i.call(this, c), 0, E), S = mA(+s.call(this, c), 0, E), v = mA(+o.call(this, c), 0, E), _ = mA(+u.call(this, c), 0, E);
62361
+ if (a || (a = h = g6()), A <= 0 && S <= 0 && v <= 0 && _ <= 0)
62364
62362
  a.rect(p, m, g, y);
62365
62363
  else {
62366
- var _ = p + g, b = m + y;
62367
- a.moveTo(p + A, m), a.lineTo(_ - S, m), a.bezierCurveTo(_ - a0 * S, m, _, m + a0 * S, _, m + S), a.lineTo(_, b - C), a.bezierCurveTo(_, b - a0 * C, _ - a0 * C, b, _ - C, b), a.lineTo(p + v, b), a.bezierCurveTo(p + a0 * v, b, p, b - a0 * v, p, b - v), a.lineTo(p, m + A), a.bezierCurveTo(p, m + a0 * A, p + a0 * A, m, p + A, m), a.closePath();
62364
+ var C = p + g, b = m + y;
62365
+ a.moveTo(p + A, m), a.lineTo(C - S, m), a.bezierCurveTo(C - a0 * S, m, C, m + a0 * S, C, m + S), a.lineTo(C, b - _), a.bezierCurveTo(C, b - a0 * _, C - a0 * _, b, C - _, b), a.lineTo(p + v, b), a.bezierCurveTo(p + a0 * v, b, p, b - a0 * v, p, b - v), a.lineTo(p, m + A), a.bezierCurveTo(p, m + a0 * A, p + a0 * A, m, p + A, m), a.closePath();
62368
62366
  }
62369
62367
  if (h)
62370
62368
  return a = null, h + "" || null;
@@ -64854,60 +64852,60 @@ function Uq(t) {
64854
64852
  return t < 0 ? Math.ceil(-t) : 0;
64855
64853
  }
64856
64854
  function dre(t, e, n) {
64857
- var r = !n.nodirty, i = n.bounds === Ak ? Pke : Mke, s = qr.set(0, 0, 0, 0), o = un(n.align, T0), u = un(n.align, R0), a = un(n.padding, T0), l = un(n.padding, R0), c = n.columns || e.length, f = c <= 0 ? 1 : Math.ceil(e.length / c), x = e.length, h = Array(x), p = Array(c), m = 0, g = Array(x), y = Array(f), E = 0, A = Array(x), S = Array(x), v = Array(x), C, _, b, R, O, L, M, q, W, B, G;
64858
- for (_ = 0; _ < c; ++_)
64859
- p[_] = 0;
64860
- for (_ = 0; _ < f; ++_)
64861
- y[_] = 0;
64862
- for (_ = 0; _ < x; ++_)
64863
- L = e[_], O = v[_] = i(L), L.x = L.x || 0, A[_] = 0, L.y = L.y || 0, S[_] = 0, b = _ % c, R = ~~(_ / c), m = Math.max(m, M = Math.ceil(O.x2)), E = Math.max(E, q = Math.ceil(O.y2)), p[b] = Math.max(p[b], M), y[R] = Math.max(y[R], q), h[_] = a + Uq(O.x1), g[_] = l + Uq(O.y1), r && t.dirty(e[_]);
64864
- for (_ = 0; _ < x; ++_)
64865
- _ % c === 0 && (h[_] = 0), _ < c && (g[_] = 0);
64855
+ var r = !n.nodirty, i = n.bounds === Ak ? Pke : Mke, s = qr.set(0, 0, 0, 0), o = un(n.align, T0), u = un(n.align, R0), a = un(n.padding, T0), l = un(n.padding, R0), c = n.columns || e.length, f = c <= 0 ? 1 : Math.ceil(e.length / c), x = e.length, h = Array(x), p = Array(c), m = 0, g = Array(x), y = Array(f), E = 0, A = Array(x), S = Array(x), v = Array(x), _, C, b, R, O, L, M, q, W, B, G;
64856
+ for (C = 0; C < c; ++C)
64857
+ p[C] = 0;
64858
+ for (C = 0; C < f; ++C)
64859
+ y[C] = 0;
64860
+ for (C = 0; C < x; ++C)
64861
+ L = e[C], O = v[C] = i(L), L.x = L.x || 0, A[C] = 0, L.y = L.y || 0, S[C] = 0, b = C % c, R = ~~(C / c), m = Math.max(m, M = Math.ceil(O.x2)), E = Math.max(E, q = Math.ceil(O.y2)), p[b] = Math.max(p[b], M), y[R] = Math.max(y[R], q), h[C] = a + Uq(O.x1), g[C] = l + Uq(O.y1), r && t.dirty(e[C]);
64862
+ for (C = 0; C < x; ++C)
64863
+ C % c === 0 && (h[C] = 0), C < c && (g[C] = 0);
64866
64864
  if (o === L4)
64867
64865
  for (b = 1; b < c; ++b) {
64868
- for (G = 0, _ = b; _ < x; _ += c)
64869
- G < h[_] && (G = h[_]);
64870
- for (_ = b; _ < x; _ += c)
64871
- h[_] = G + p[b - 1];
64866
+ for (G = 0, C = b; C < x; C += c)
64867
+ G < h[C] && (G = h[C]);
64868
+ for (C = b; C < x; C += c)
64869
+ h[C] = G + p[b - 1];
64872
64870
  }
64873
64871
  else if (o === yA) {
64874
- for (G = 0, _ = 0; _ < x; ++_)
64875
- _ % c && G < h[_] && (G = h[_]);
64876
- for (_ = 0; _ < x; ++_)
64877
- _ % c && (h[_] = G + m);
64872
+ for (G = 0, C = 0; C < x; ++C)
64873
+ C % c && G < h[C] && (G = h[C]);
64874
+ for (C = 0; C < x; ++C)
64875
+ C % c && (h[C] = G + m);
64878
64876
  } else
64879
64877
  for (o = !1, b = 1; b < c; ++b)
64880
- for (_ = b; _ < x; _ += c)
64881
- h[_] += p[b - 1];
64878
+ for (C = b; C < x; C += c)
64879
+ h[C] += p[b - 1];
64882
64880
  if (u === L4)
64883
64881
  for (R = 1; R < f; ++R) {
64884
- for (G = 0, _ = R * c, C = _ + c; _ < C; ++_)
64885
- G < g[_] && (G = g[_]);
64886
- for (_ = R * c; _ < C; ++_)
64887
- g[_] = G + y[R - 1];
64882
+ for (G = 0, C = R * c, _ = C + c; C < _; ++C)
64883
+ G < g[C] && (G = g[C]);
64884
+ for (C = R * c; C < _; ++C)
64885
+ g[C] = G + y[R - 1];
64888
64886
  }
64889
64887
  else if (u === yA) {
64890
- for (G = 0, _ = c; _ < x; ++_)
64891
- G < g[_] && (G = g[_]);
64892
- for (_ = c; _ < x; ++_)
64893
- g[_] = G + E;
64888
+ for (G = 0, C = c; C < x; ++C)
64889
+ G < g[C] && (G = g[C]);
64890
+ for (C = c; C < x; ++C)
64891
+ g[C] = G + E;
64894
64892
  } else
64895
64893
  for (u = !1, R = 1; R < f; ++R)
64896
- for (_ = R * c, C = _ + c; _ < C; ++_)
64897
- g[_] += y[R - 1];
64898
- for (W = 0, _ = 0; _ < x; ++_)
64899
- W = h[_] + (_ % c ? W : 0), A[_] += W - e[_].x;
64894
+ for (C = R * c, _ = C + c; C < _; ++C)
64895
+ g[C] += y[R - 1];
64896
+ for (W = 0, C = 0; C < x; ++C)
64897
+ W = h[C] + (C % c ? W : 0), A[C] += W - e[C].x;
64900
64898
  for (b = 0; b < c; ++b)
64901
- for (B = 0, _ = b; _ < x; _ += c)
64902
- B += g[_], S[_] += B - e[_].y;
64899
+ for (B = 0, C = b; C < x; C += c)
64900
+ B += g[C], S[C] += B - e[C].y;
64903
64901
  if (o && un(n.center, T0) && f > 1)
64904
- for (_ = 0; _ < x; ++_)
64905
- O = o === yA ? m : p[_ % c], W = O - v[_].x2 - e[_].x - A[_], W > 0 && (A[_] += W / 2);
64902
+ for (C = 0; C < x; ++C)
64903
+ O = o === yA ? m : p[C % c], W = O - v[C].x2 - e[C].x - A[C], W > 0 && (A[C] += W / 2);
64906
64904
  if (u && un(n.center, R0) && c !== 1)
64907
- for (_ = 0; _ < x; ++_)
64908
- O = u === yA ? E : y[~~(_ / c)], B = O - v[_].y2 - e[_].y - S[_], B > 0 && (S[_] += B / 2);
64909
- for (_ = 0; _ < x; ++_)
64910
- s.union(v[_].translate(A[_], S[_]));
64905
+ for (C = 0; C < x; ++C)
64906
+ O = u === yA ? E : y[~~(C / c)], B = O - v[C].y2 - e[C].y - S[C], B > 0 && (S[C] += B / 2);
64907
+ for (C = 0; C < x; ++C)
64908
+ s.union(v[C].translate(A[C], S[C]));
64911
64909
  switch (W = un(n.anchor, _ke), B = un(n.anchor, Cke), un(n.anchor, T0)) {
64912
64910
  case pi:
64913
64911
  W -= s.width();
@@ -64922,10 +64920,10 @@ function dre(t, e, n) {
64922
64920
  case w4:
64923
64921
  B -= s.height() / 2;
64924
64922
  }
64925
- for (W = Math.round(W), B = Math.round(B), s.clear(), _ = 0; _ < x; ++_)
64926
- e[_].mark.bounds.clear();
64927
- for (_ = 0; _ < x; ++_)
64928
- L = e[_], L.x += A[_] += W, L.y += S[_] += B, s.union(L.mark.bounds.union(L.bounds.translate(A[_], S[_]))), r && t.dirty(L);
64923
+ for (W = Math.round(W), B = Math.round(B), s.clear(), C = 0; C < x; ++C)
64924
+ e[C].mark.bounds.clear();
64925
+ for (C = 0; C < x; ++C)
64926
+ L = e[C], L.x += A[C] += W, L.y += S[C] += B, s.union(L.mark.bounds.union(L.bounds.translate(A[C], S[C]))), r && t.dirty(L);
64929
64927
  return s;
64930
64928
  }
64931
64929
  function jke(t, e, n) {
@@ -64940,7 +64938,7 @@ function qke(t, e) {
64940
64938
  return t.bounds[e];
64941
64939
  }
64942
64940
  function SA(t, e, n, r, i, s, o, u, a, l, c, f, x, h) {
64943
- var p = n.length, m = 0, g = 0, y, E, A, S, v, C, _, b, R;
64941
+ var p = n.length, m = 0, g = 0, y, E, A, S, v, _, C, b, R;
64944
64942
  if (!p)
64945
64943
  return m;
64946
64944
  for (y = c; y < p; y += f)
@@ -64950,9 +64948,9 @@ function SA(t, e, n, r, i, s, o, u, a, l, c, f, x, h) {
64950
64948
  for (e.length > i && (t.warn("Grid headers exceed limit: " + i), e = e.slice(0, i)), m += s, E = 0, S = e.length; E < S; ++E)
64951
64949
  t.dirty(e[E]), e[E].mark.bounds.clear();
64952
64950
  for (y = c, E = 0, S = e.length; E < S; ++E, y += f) {
64953
- for (C = e[E], v = C.mark.bounds, A = y; A >= 0 && (_ = n[A]) == null; A -= x)
64951
+ for (_ = e[E], v = _.mark.bounds, A = y; A >= 0 && (C = n[A]) == null; A -= x)
64954
64952
  ;
64955
- u ? (b = h == null ? _.x : Math.round(_.bounds.x1 + h * _.bounds.width()), R = m) : (b = m, R = h == null ? _.y : Math.round(_.bounds.y1 + h * _.bounds.height())), v.union(C.bounds.translate(b - (C.x || 0), R - (C.y || 0))), C.x = b, C.y = R, t.dirty(C), g = o(g, v[l]);
64953
+ u ? (b = h == null ? C.x : Math.round(C.bounds.x1 + h * C.bounds.width()), R = m) : (b = m, R = h == null ? C.y : Math.round(C.bounds.y1 + h * C.bounds.height())), v.union(_.bounds.translate(b - (_.x || 0), R - (_.y || 0))), _.x = b, _.y = R, t.dirty(_), g = o(g, v[l]);
64956
64954
  }
64957
64955
  return g;
64958
64956
  }
@@ -66034,9 +66032,9 @@ function Y8e(t, e) {
66034
66032
  i === 1 ? r = Rn + tt : i === -1 && (r = -Rn - tt);
66035
66033
  for (var l = 0, c = t.length; l < c; ++l)
66036
66034
  if (x = (f = t[l]).length)
66037
- for (var f, x, h = f[x - 1], p = pw(h), m = h[1] / 2 + jv, g = Xe(m), y = nt(m), E = 0; E < x; ++E, p = S, g = C, y = _, h = A) {
66038
- var A = f[E], S = pw(A), v = A[1] / 2 + jv, C = Xe(v), _ = nt(v), b = S - p, R = b >= 0 ? 1 : -1, O = R * b, L = O > ht, M = g * C;
66039
- if (a.add(Ao(M * R * Xe(O), y * _ + M * nt(O))), o += L ? b + R * Ii : b, L ^ p >= n ^ S >= n) {
66035
+ for (var f, x, h = f[x - 1], p = pw(h), m = h[1] / 2 + jv, g = Xe(m), y = nt(m), E = 0; E < x; ++E, p = S, g = _, y = C, h = A) {
66036
+ var A = f[E], S = pw(A), v = A[1] / 2 + jv, _ = Xe(v), C = nt(v), b = S - p, R = b >= 0 ? 1 : -1, O = R * b, L = O > ht, M = g * _;
66037
+ if (a.add(Ao(M * R * Xe(O), y * C + M * nt(O))), o += L ? b + R * Ii : b, L ^ p >= n ^ S >= n) {
66040
66038
  var q = mp(Nx(h), Nx(A));
66041
66039
  Gv(q);
66042
66040
  var W = mp(s, q);
@@ -66085,17 +66083,17 @@ function zre(t, e, n, r) {
66085
66083
  }
66086
66084
  function A() {
66087
66085
  y(f[0][0], f[0][1]), u.lineEnd();
66088
- var S = u.clean(), v = o.result(), C, _ = v.length, b, R, O;
66089
- if (f.pop(), l.push(f), f = null, !!_) {
66086
+ var S = u.clean(), v = o.result(), _, C = v.length, b, R, O;
66087
+ if (f.pop(), l.push(f), f = null, !!C) {
66090
66088
  if (S & 1) {
66091
66089
  if (R = v[0], (b = R.length - 1) > 0) {
66092
- for (a || (i.polygonStart(), a = !0), i.lineStart(), C = 0; C < b; ++C)
66093
- i.point((O = R[C])[0], O[1]);
66090
+ for (a || (i.polygonStart(), a = !0), i.lineStart(), _ = 0; _ < b; ++_)
66091
+ i.point((O = R[_])[0], O[1]);
66094
66092
  i.lineEnd();
66095
66093
  }
66096
66094
  return;
66097
66095
  }
66098
- _ > 1 && S & 2 && v.push(v.pop().concat(v.shift())), c.push(v.filter(K8e));
66096
+ C > 1 && S & 2 && v.push(v.pop().concat(v.shift())), c.push(v.filter(K8e));
66099
66097
  }
66100
66098
  }
66101
66099
  return x;
@@ -66166,8 +66164,8 @@ function t7e(t) {
66166
66164
  if (!f && (p = h = S) && c.lineStart(), S !== h && (A = a(f, E), (!A || dS(f, A) || dS(E, A)) && (E[2] = 1)), S !== h)
66167
66165
  m = 0, S ? (c.lineStart(), A = a(E, f), c.point(A[0], A[1])) : (A = a(f, E), c.point(A[0], A[1], 2), c.lineEnd()), f = A;
66168
66166
  else if (i && f && r ^ S) {
66169
- var C;
66170
- !(v & x) && (C = a(E, f, !0)) && (m = 0, r ? (c.lineStart(), c.point(C[0][0], C[0][1]), c.point(C[1][0], C[1][1]), c.lineEnd()) : (c.point(C[1][0], C[1][1]), c.lineEnd(), c.lineStart(), c.point(C[0][0], C[0][1], 3)));
66167
+ var _;
66168
+ !(v & x) && (_ = a(E, f, !0)) && (m = 0, r ? (c.lineStart(), c.point(_[0][0], _[0][1]), c.point(_[1][0], _[1][1]), c.lineEnd()) : (c.point(_[1][0], _[1][1]), c.lineEnd(), c.lineStart(), c.point(_[0][0], _[0][1], 3)));
66171
66169
  }
66172
66170
  S && (!f || !dS(f, E)) && c.point(E[0], E[1]), f = E, h = S, x = v;
66173
66171
  },
@@ -66185,19 +66183,19 @@ function t7e(t) {
66185
66183
  var h = Nx(c), p = Nx(f), m = [1, 0, 0], g = mp(h, p), y = _A(g, g), E = g[0], A = y - E * E;
66186
66184
  if (!A)
66187
66185
  return !x && c;
66188
- var S = e * y / A, v = -e * E / A, C = mp(m, g), _ = CA(m, S), b = CA(g, v);
66189
- hw(_, b);
66190
- var R = C, O = _A(_, R), L = _A(R, R), M = O * O - L * (_A(_, _) - 1);
66186
+ var S = e * y / A, v = -e * E / A, _ = mp(m, g), C = CA(m, S), b = CA(g, v);
66187
+ hw(C, b);
66188
+ var R = _, O = _A(C, R), L = _A(R, R), M = O * O - L * (_A(C, C) - 1);
66191
66189
  if (!(M < 0)) {
66192
66190
  var q = $i(M), W = CA(R, (-O - q) / L);
66193
- if (hw(W, _), W = Qv(W), !x)
66191
+ if (hw(W, C), W = Qv(W), !x)
66194
66192
  return W;
66195
66193
  var B = c[0], G = f[0], te = c[1], X = f[1], de;
66196
66194
  G < B && (de = B, B = G, G = de);
66197
66195
  var be = G - B, ee = yt(be - ht) < tt, U = ee || be < tt;
66198
66196
  if (!ee && X < te && (de = te, te = X, X = de), U ? ee ? te + X > 0 ^ W[1] < (yt(W[0] - B) < tt ? te : X) : te <= W[1] && W[1] <= X : be > ht ^ (B <= W[0] && W[0] <= G)) {
66199
66197
  var T = CA(R, (-O + q) / L);
66200
- return hw(T, _), [W, Qv(T)];
66198
+ return hw(T, C), [W, Qv(T)];
66201
66199
  }
66202
66200
  }
66203
66201
  }
@@ -66280,7 +66278,7 @@ function Qre(t, e, n, r) {
66280
66278
  return f !== x ? f - x : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
66281
66279
  }
66282
66280
  return function(l) {
66283
- var c = l, f = qre(), x, h, p, m, g, y, E, A, S, v, C, _ = {
66281
+ var c = l, f = qre(), x, h, p, m, g, y, E, A, S, v, _, C = {
66284
66282
  point: b,
66285
66283
  lineStart: M,
66286
66284
  lineEnd: q,
@@ -66297,17 +66295,17 @@ function Qre(t, e, n, r) {
66297
66295
  return B;
66298
66296
  }
66299
66297
  function O() {
66300
- c = f, x = [], h = [], C = !0;
66298
+ c = f, x = [], h = [], _ = !0;
66301
66299
  }
66302
66300
  function L() {
66303
- var B = R(), G = C && B, te = (x = tZ(x)).length;
66301
+ var B = R(), G = _ && B, te = (x = tZ(x)).length;
66304
66302
  (G || te) && (l.polygonStart(), G && (l.lineStart(), s(null, null, 1, l), l.lineEnd()), te && Hre(x, u, B, s, l), l.polygonEnd()), c = l, x = h = p = null;
66305
66303
  }
66306
66304
  function M() {
66307
- _.point = W, h && h.push(p = []), v = !0, S = !1, E = A = NaN;
66305
+ C.point = W, h && h.push(p = []), v = !0, S = !1, E = A = NaN;
66308
66306
  }
66309
66307
  function q() {
66310
- x && (W(m, g), y && S && f.rejoin(), x.push(f.result())), _.point = b, S && c.lineEnd();
66308
+ x && (W(m, g), y && S && f.rejoin(), x.push(f.result())), C.point = b, S && c.lineEnd();
66311
66309
  }
66312
66310
  function W(B, G) {
66313
66311
  var te = i(B, G);
@@ -66317,11 +66315,11 @@ function Qre(t, e, n, r) {
66317
66315
  c.point(B, G);
66318
66316
  else {
66319
66317
  var X = [E = Math.max(TA, Math.min(qm, E)), A = Math.max(TA, Math.min(qm, A))], de = [B = Math.max(TA, Math.min(qm, B)), G = Math.max(TA, Math.min(qm, G))];
66320
- n7e(X, de, t, e, n, r) ? (S || (c.lineStart(), c.point(X[0], X[1])), c.point(de[0], de[1]), te || c.lineEnd(), C = !1) : te && (c.lineStart(), c.point(B, G), C = !1);
66318
+ n7e(X, de, t, e, n, r) ? (S || (c.lineStart(), c.point(X[0], X[1])), c.point(de[0], de[1]), te || c.lineEnd(), _ = !1) : te && (c.lineStart(), c.point(B, G), _ = !1);
66321
66319
  }
66322
66320
  E = B, A = G, S = te;
66323
66321
  }
66324
- return _;
66322
+ return C;
66325
66323
  };
66326
66324
  }
66327
66325
  function oH(t, e, n) {
@@ -66704,8 +66702,8 @@ function m7e(t, e) {
66704
66702
  function n(r, i, s, o, u, a, l, c, f, x, h, p, m, g) {
66705
66703
  var y = l - r, E = c - i, A = y * y + E * E;
66706
66704
  if (A > 4 * e && m--) {
66707
- var S = o + x, v = u + h, C = a + p, _ = $i(S * S + v * v + C * C), b = os(C /= _), R = yt(yt(C) - 1) < tt || yt(s - f) < tt ? (s + f) / 2 : Ao(v, S), O = t(R, b), L = O[0], M = O[1], q = L - r, W = M - i, B = E * q - y * W;
66708
- (B * B / A > e || yt((y * q + E * W) / A - 0.5) > 0.3 || o * x + u * h + a * p < p7e) && (n(r, i, s, o, u, a, L, M, R, S /= _, v /= _, C, m, g), g.point(L, M), n(L, M, R, S, v, C, l, c, f, x, h, p, m, g));
66705
+ var S = o + x, v = u + h, _ = a + p, C = $i(S * S + v * v + _ * _), b = os(_ /= C), R = yt(yt(_) - 1) < tt || yt(s - f) < tt ? (s + f) / 2 : Ao(v, S), O = t(R, b), L = O[0], M = O[1], q = L - r, W = M - i, B = E * q - y * W;
66706
+ (B * B / A > e || yt((y * q + E * W) / A - 0.5) > 0.3 || o * x + u * h + a * p < p7e) && (n(r, i, s, o, u, a, L, M, R, S /= C, v /= C, _, m, g), g.point(L, M), n(L, M, R, S, v, _, l, c, f, x, h, p, m, g));
66709
66707
  }
66710
66708
  }
66711
66709
  return function(r) {
@@ -66734,12 +66732,12 @@ function m7e(t, e) {
66734
66732
  g.point = y, r.lineEnd();
66735
66733
  }
66736
66734
  function v() {
66737
- E(), g.point = C, g.lineEnd = _;
66735
+ E(), g.point = _, g.lineEnd = C;
66738
66736
  }
66739
- function C(b, R) {
66737
+ function _(b, R) {
66740
66738
  A(i = b, R), s = f, o = x, u = h, a = p, l = m, g.point = A;
66741
66739
  }
66742
- function _() {
66740
+ function C() {
66743
66741
  n(f, x, c, h, p, m, s, o, i, u, a, l, hH, r), g.lineEnd = S, S();
66744
66742
  }
66745
66743
  return g;
@@ -66783,7 +66781,7 @@ function ba(t) {
66783
66781
  })();
66784
66782
  }
66785
66783
  function iie(t) {
66786
- var e, n = 150, r = 480, i = 250, s = 0, o = 0, u = 0, a = 0, l = 0, c, f = 0, x = 1, h = 1, p = null, m = sH, g = null, y, E, A, S = K1, v = 0.5, C, _, b, R, O;
66784
+ var e, n = 150, r = 480, i = 250, s = 0, o = 0, u = 0, a = 0, l = 0, c, f = 0, x = 1, h = 1, p = null, m = sH, g = null, y, E, A, S = K1, v = 0.5, _, C, b, R, O;
66787
66785
  function L(B) {
66788
66786
  return b(B[0] * dt, B[1] * dt);
66789
66787
  }
@@ -66791,7 +66789,7 @@ function iie(t) {
66791
66789
  return B = b.invert(B[0], B[1]), B && [B[0] * Fn, B[1] * Fn];
66792
66790
  }
66793
66791
  L.stream = function(B) {
66794
- return R && O === B ? R : R = y7e(E7e(c)(m(C(S(O = B)))));
66792
+ return R && O === B ? R : R = y7e(E7e(c)(m(_(S(O = B)))));
66795
66793
  }, L.preclip = function(B) {
66796
66794
  return arguments.length ? (m = B, p = void 0, W()) : m;
66797
66795
  }, L.postclip = function(B) {
@@ -66815,7 +66813,7 @@ function iie(t) {
66815
66813
  }, L.reflectY = function(B) {
66816
66814
  return arguments.length ? (h = B ? -1 : 1, q()) : h < 0;
66817
66815
  }, L.precision = function(B) {
66818
- return arguments.length ? (C = pH(_, v = B * B), W()) : $i(v);
66816
+ return arguments.length ? (_ = pH(C, v = B * B), W()) : $i(v);
66819
66817
  }, L.fitExtent = function(B, G) {
66820
66818
  return QO(L, B, G);
66821
66819
  }, L.fitSize = function(B, G) {
@@ -66827,7 +66825,7 @@ function iie(t) {
66827
66825
  };
66828
66826
  function q() {
66829
66827
  var B = gH(n, 0, 0, x, h, f).apply(null, e(s, o)), G = gH(n, r - B[0], i - B[1], x, h, f);
66830
- return c = Ure(u, a, l), _ = z4(e, G), b = z4(c, _), C = pH(_, v), W();
66828
+ return c = Ure(u, a, l), C = z4(e, G), b = z4(c, C), _ = pH(C, v), W();
66831
66829
  }
66832
66830
  function W() {
66833
66831
  return R = O = null, L;
@@ -67071,28 +67069,28 @@ function $7e() {
67071
67069
  function B7e() {
67072
67070
  var t = 1, e = 0, n = 0, r = 1, i = 1, s = 0, o, u, a = null, l, c, f, x = 1, h = 1, p = zO({
67073
67071
  point: function(S, v) {
67074
- var C = A([S, v]);
67075
- this.stream.point(C[0], C[1]);
67072
+ var _ = A([S, v]);
67073
+ this.stream.point(_[0], _[1]);
67076
67074
  }
67077
67075
  }), m = K1, g, y;
67078
67076
  function E() {
67079
67077
  return x = t * r, h = t * i, g = y = null, A;
67080
67078
  }
67081
67079
  function A(S) {
67082
- var v = S[0] * x, C = S[1] * h;
67080
+ var v = S[0] * x, _ = S[1] * h;
67083
67081
  if (s) {
67084
- var _ = C * o - v * u;
67085
- v = v * o + C * u, C = _;
67082
+ var C = _ * o - v * u;
67083
+ v = v * o + _ * u, _ = C;
67086
67084
  }
67087
- return [v + e, C + n];
67085
+ return [v + e, _ + n];
67088
67086
  }
67089
67087
  return A.invert = function(S) {
67090
- var v = S[0] - e, C = S[1] - n;
67088
+ var v = S[0] - e, _ = S[1] - n;
67091
67089
  if (s) {
67092
- var _ = C * o + v * u;
67093
- v = v * o - C * u, C = _;
67090
+ var C = _ * o + v * u;
67091
+ v = v * o - _ * u, _ = C;
67094
67092
  }
67095
- return [v / x, C / h];
67093
+ return [v / x, _ / h];
67096
67094
  }, A.stream = function(S) {
67097
67095
  return g && y === S ? g : g = p(m(y = S));
67098
67096
  }, A.postclip = function(S) {
@@ -67298,19 +67296,19 @@ function Eie() {
67298
67296
  E = y, y = a[p * t + h + 1] >= l, Ga[y << 2 | E << 3].forEach(A);
67299
67297
  Ga[y << 3].forEach(A);
67300
67298
  function A(S) {
67301
- var v = [S[0][0] + h, S[0][1] + p], C = [S[1][0] + h, S[1][1] + p], _ = o(v), b = o(C), R, O;
67302
- (R = x[_]) ? (O = f[b]) ? (delete x[R.end], delete f[O.start], R === O ? (R.ring.push(C), c(R.ring)) : f[R.start] = x[O.end] = {
67299
+ var v = [S[0][0] + h, S[0][1] + p], _ = [S[1][0] + h, S[1][1] + p], C = o(v), b = o(_), R, O;
67300
+ (R = x[C]) ? (O = f[b]) ? (delete x[R.end], delete f[O.start], R === O ? (R.ring.push(_), c(R.ring)) : f[R.start] = x[O.end] = {
67303
67301
  start: R.start,
67304
67302
  end: O.end,
67305
67303
  ring: R.ring.concat(O.ring)
67306
- }) : (delete x[R.end], R.ring.push(C), x[R.end = b] = R) : (R = f[b]) ? (O = x[_]) ? (delete f[R.start], delete x[O.end], R === O ? (R.ring.push(C), c(R.ring)) : f[O.start] = x[R.end] = {
67304
+ }) : (delete x[R.end], R.ring.push(_), x[R.end = b] = R) : (R = f[b]) ? (O = x[C]) ? (delete f[R.start], delete x[O.end], R === O ? (R.ring.push(_), c(R.ring)) : f[O.start] = x[R.end] = {
67307
67305
  start: O.start,
67308
67306
  end: R.end,
67309
67307
  ring: O.ring.concat(R.ring)
67310
- }) : (delete f[R.start], R.ring.unshift(v), f[R.start = _] = R) : f[_] = x[b] = {
67311
- start: _,
67308
+ }) : (delete f[R.start], R.ring.unshift(v), f[R.start = C] = R) : f[C] = x[b] = {
67309
+ start: C,
67312
67310
  end: b,
67313
- ring: [v, C]
67311
+ ring: [v, _]
67314
67312
  };
67315
67313
  }
67316
67314
  }
@@ -67473,8 +67471,8 @@ function vie() {
67473
67471
  const c = EH(r[0], a, t) >> o, f = EH(r[1], a, e) >> o, x = c ? c + 2 : 0, h = f ? f + 2 : 0, p = 2 * x + (i >> o), m = 2 * h + (s >> o), g = new Float32Array(p * m), y = new Float32Array(p * m);
67474
67472
  let E = g;
67475
67473
  a.forEach((S) => {
67476
- const v = x + (+t(S) >> o), C = h + (+e(S) >> o);
67477
- v >= 0 && v < p && C >= 0 && C < m && (g[v + C * p] += +n(S));
67474
+ const v = x + (+t(S) >> o), _ = h + (+e(S) >> o);
67475
+ v >= 0 && v < p && _ >= 0 && _ < m && (g[v + _ * p] += +n(S));
67478
67476
  }), c > 0 && f > 0 ? (Xd(p, m, g, y, c), Jd(p, m, y, g, f), Xd(p, m, g, y, c), Jd(p, m, y, g, f), Xd(p, m, g, y, c), Jd(p, m, y, g, f)) : c > 0 ? (Xd(p, m, g, y, c), Xd(p, m, y, g, c), Xd(p, m, g, y, c), E = y) : f > 0 && (Jd(p, m, g, y, f), Jd(p, m, y, g, f), Jd(p, m, g, y, f), E = y);
67479
67477
  const A = l ? Math.pow(2, -2 * o) : 1 / nZ(E);
67480
67478
  for (let S = 0, v = p * m; S < v; ++S)
@@ -68232,7 +68230,7 @@ function kPe(t) {
68232
68230
  for (var l, c = e.length, f, x, h, p, m, g, y = 0; y < s; ++y)
68233
68231
  for (f = qk(e, $Pe, BPe).visitAfter(u), l = 0; l < c; ++l)
68234
68232
  x = e[l], m = n[x.index], g = m * m, h = x.x + x.vx, p = x.y + x.vy, f.visit(E);
68235
- function E(A, S, v, C, _) {
68233
+ function E(A, S, v, _, C) {
68236
68234
  var b = A.data, R = A.r, O = m + R;
68237
68235
  if (b) {
68238
68236
  if (b.index > x.index) {
@@ -68241,7 +68239,7 @@ function kPe(t) {
68241
68239
  }
68242
68240
  return;
68243
68241
  }
68244
- return S > h + O || C < h - O || v > p + O || _ < p - O;
68242
+ return S > h + O || _ < h - O || v > p + O || C < p - O;
68245
68243
  }
68246
68244
  }
68247
68245
  function u(l) {
@@ -68284,12 +68282,12 @@ function MPe(t) {
68284
68282
  }
68285
68283
  function x(g) {
68286
68284
  for (var y = 0, E = t.length; y < c; ++y)
68287
- for (var A = 0, S, v, C, _, b, R, O; A < E; ++A)
68288
- S = t[A], v = S.source, C = S.target, _ = C.x + C.vx - v.x - v.vx || O0(l), b = C.y + C.vy - v.y - v.vy || O0(l), R = Math.sqrt(_ * _ + b * b), R = (R - s[A]) / R * g * r[A], _ *= R, b *= R, C.vx -= _ * (O = a[A]), C.vy -= b * O, v.vx += _ * (O = 1 - O), v.vy += b * O;
68285
+ for (var A = 0, S, v, _, C, b, R, O; A < E; ++A)
68286
+ S = t[A], v = S.source, _ = S.target, C = _.x + _.vx - v.x - v.vx || O0(l), b = _.y + _.vy - v.y - v.vy || O0(l), R = Math.sqrt(C * C + b * b), R = (R - s[A]) / R * g * r[A], C *= R, b *= R, _.vx -= C * (O = a[A]), _.vy -= b * O, v.vx += C * (O = 1 - O), v.vy += b * O;
68289
68287
  }
68290
68288
  function h() {
68291
68289
  if (o) {
68292
- var g, y = o.length, E = t.length, A = new Map(o.map((v, C) => [e(v, C, o), v])), S;
68290
+ var g, y = o.length, E = t.length, A = new Map(o.map((v, _) => [e(v, _, o), v])), S;
68293
68291
  for (g = 0, u = new Array(y); g < E; ++g)
68294
68292
  S = t[g], S.index = g, typeof S.source != "object" && (S.source = vH(A, S.source)), typeof S.target != "object" && (S.target = vH(A, S.target)), u[S.source.index] = (u[S.source.index] || 0) + 1, u[S.target.index] = (u[S.target.index] || 0) + 1;
68295
68293
  for (g = 0, a = new Array(E); g < E; ++g)
@@ -68535,9 +68533,9 @@ function tMe(t) {
68535
68533
  return arguments.length > 1 ? (g == null ? u.delete(m) : u.set(m, p(g)), e) : u.get(m);
68536
68534
  },
68537
68535
  find: function(m, g, y) {
68538
- var E = 0, A = t.length, S, v, C, _, b;
68536
+ var E = 0, A = t.length, S, v, _, C, b;
68539
68537
  for (y == null ? y = 1 / 0 : y *= y, E = 0; E < A; ++E)
68540
- _ = t[E], S = m - _.x, v = g - _.y, C = S * S + v * v, C < y && (b = _, y = C);
68538
+ C = t[E], S = m - C.x, v = g - C.y, _ = S * S + v * v, _ < y && (b = C, y = _);
68541
68539
  return b;
68542
68540
  },
68543
68541
  on: function(m, g) {
@@ -69139,9 +69137,9 @@ function Km(t, e) {
69139
69137
  };
69140
69138
  }
69141
69139
  function Bie(t, e, n) {
69142
- var r = t.x, i = t.y, s = t.r, o = e.x, u = e.y, a = e.r, l = n.x, c = n.y, f = n.r, x = r - o, h = r - l, p = i - u, m = i - c, g = a - s, y = f - s, E = r * r + i * i - s * s, A = E - o * o - u * u + a * a, S = E - l * l - c * c + f * f, v = h * p - x * m, C = (p * S - m * A) / (v * 2) - r, _ = (m * g - p * y) / v, b = (h * A - x * S) / (v * 2) - i, R = (x * y - h * g) / v, O = _ * _ + R * R - 1, L = 2 * (s + C * _ + b * R), M = C * C + b * b - s * s, q = -(Math.abs(O) > 1e-6 ? (L + Math.sqrt(L * L - 4 * O * M)) / (2 * O) : M / L);
69140
+ var r = t.x, i = t.y, s = t.r, o = e.x, u = e.y, a = e.r, l = n.x, c = n.y, f = n.r, x = r - o, h = r - l, p = i - u, m = i - c, g = a - s, y = f - s, E = r * r + i * i - s * s, A = E - o * o - u * u + a * a, S = E - l * l - c * c + f * f, v = h * p - x * m, _ = (p * S - m * A) / (v * 2) - r, C = (m * g - p * y) / v, b = (h * A - x * S) / (v * 2) - i, R = (x * y - h * g) / v, O = C * C + R * R - 1, L = 2 * (s + _ * C + b * R), M = _ * _ + b * b - s * s, q = -(Math.abs(O) > 1e-6 ? (L + Math.sqrt(L * L - 4 * O * M)) / (2 * O) : M / L);
69143
69141
  return {
69144
- x: r + C + _ * q,
69142
+ x: r + _ + C * q,
69145
69143
  y: i + b + R * q,
69146
69144
  r: q
69147
69145
  };
@@ -69433,13 +69431,13 @@ function VO(t, e, n, r, i) {
69433
69431
  }
69434
69432
  var Pie = (1 + Math.sqrt(5)) / 2;
69435
69433
  function Mie(t, e, n, r, i, s) {
69436
- for (var o = [], u = e.children, a, l, c = 0, f = 0, x = u.length, h, p, m = e.value, g, y, E, A, S, v, C; c < x; ) {
69434
+ for (var o = [], u = e.children, a, l, c = 0, f = 0, x = u.length, h, p, m = e.value, g, y, E, A, S, v, _; c < x; ) {
69437
69435
  h = i - n, p = s - r;
69438
69436
  do
69439
69437
  g = u[f++].value;
69440
69438
  while (!g && f < x);
69441
- for (y = E = g, v = Math.max(p / h, h / p) / (m * t), C = g * g * v, S = Math.max(E / C, C / y); f < x; ++f) {
69442
- if (g += l = u[f].value, l < y && (y = l), l > E && (E = l), C = g * g * v, A = Math.max(E / C, C / y), A > S) {
69439
+ for (y = E = g, v = Math.max(p / h, h / p) / (m * t), _ = g * g * v, S = Math.max(E / _, _ / y); f < x; ++f) {
69440
+ if (g += l = u[f].value, l < y && (y = l), l > E && (E = l), _ = g * g * v, A = Math.max(E / _, _ / y), A > S) {
69443
69441
  g -= l;
69444
69442
  break;
69445
69443
  }
@@ -69499,9 +69497,9 @@ function l9e(t, e, n, r, i) {
69499
69497
  E.x0 = p, E.y0 = m, E.x1 = g, E.y1 = y;
69500
69498
  return;
69501
69499
  }
69502
- for (var A = l[f], S = h / 2 + A, v = f + 1, C = x - 1; v < C; ) {
69503
- var _ = v + C >>> 1;
69504
- l[_] < S ? v = _ + 1 : C = _;
69500
+ for (var A = l[f], S = h / 2 + A, v = f + 1, _ = x - 1; v < _; ) {
69501
+ var C = v + _ >>> 1;
69502
+ l[C] < S ? v = C + 1 : _ = C;
69505
69503
  }
69506
69504
  S - l[v - 1] < l[v] - S && f + 1 < v && --v;
69507
69505
  var b = l[v] - A, R = h - b;
@@ -69934,10 +69932,10 @@ function E9e(t, e, n, r, i) {
69934
69932
  const s = t.width, o = t.height, u = r || i, a = P0(s, o).getContext("2d"), l = P0(s, o).getContext("2d"), c = u && P0(s, o).getContext("2d");
69935
69933
  n.forEach((b) => mS(a, b, !1)), mS(l, e, !1), u && mS(c, e, !0);
69936
69934
  const f = bw(a, s, o), x = bw(l, s, o), h = u && bw(c, s, o), p = t.bitmap(), m = u && t.bitmap();
69937
- let g, y, E, A, S, v, C, _;
69935
+ let g, y, E, A, S, v, _, C;
69938
69936
  for (y = 0; y < o; ++y)
69939
69937
  for (g = 0; g < s; ++g)
69940
- S = y * s + g, v = f[S] & Cw, _ = x[S] & Cw, C = u && h[S] & Cw, (v || C || _) && (E = t(g), A = t(y), !i && (v || _) && p.set(E, A), u && (v || C) && m.set(E, A));
69938
+ S = y * s + g, v = f[S] & Cw, C = x[S] & Cw, _ = u && h[S] & Cw, (v || _ || C) && (E = t(g), A = t(y), !i && (v || C) && p.set(E, A), u && (v || _) && m.set(E, A));
69941
69939
  return [p, m];
69942
69940
  }
69943
69941
  function bw(t, e, n) {
@@ -70061,7 +70059,7 @@ function C9e(t, e, n, r) {
70061
70059
  }
70062
70060
  return function(l) {
70063
70061
  const c = l.datum.datum.items[r].items, f = c.length, x = l.datum.fontSize, h = Qu.width(l.datum, l.datum.text);
70064
- let p = n ? x : 0, m = !1, g = !1, y = 0, E, A, S, v, C, _, b, R, O, L, M, q, W, B, G, te, X;
70062
+ let p = n ? x : 0, m = !1, g = !1, y = 0, E, A, S, v, _, C, b, R, O, L, M, q, W, B, G, te, X;
70065
70063
  for (let de = 0; de < f; ++de) {
70066
70064
  for (E = c[de].x, S = c[de].y, A = c[de].x2 === void 0 ? E : c[de].x2, v = c[de].y2 === void 0 ? S : c[de].y2, E > A && (X = E, E = A, A = X), S > v && (X = S, S = v, v = X), O = t(E), M = t(A), L = ~~((O + M) / 2), q = t(S), B = t(v), W = ~~((q + B) / 2), b = L; b >= O; --b)
70067
70065
  for (R = W; R >= q; --R)
@@ -70069,9 +70067,9 @@ function C9e(t, e, n, r) {
70069
70067
  for (b = L; b <= M; ++b)
70070
70068
  for (R = W; R <= B; ++R)
70071
70069
  te = a(b, R, p, h, x), te && ([l.x, l.y, p, m] = te);
70072
- !m && !n && (G = Math.abs(A - E + v - S), C = (E + A) / 2, _ = (S + v) / 2, G >= y && !h_(C, _, h, x, i, s) && !N0(t, C, _, x, h, x, o, null) && (y = G, l.x = C, l.y = _, g = !0));
70070
+ !m && !n && (G = Math.abs(A - E + v - S), _ = (E + A) / 2, C = (S + v) / 2, G >= y && !h_(_, C, h, x, i, s) && !N0(t, _, C, x, h, x, o, null) && (y = G, l.x = _, l.y = C, g = !0));
70073
70071
  }
70074
- return m || g ? (C = h / 2, _ = x / 2, o.setRange(t(l.x - C), t(l.y - _), t(l.x + C), t(l.y + _)), l.align = "center", l.baseline = "middle", !0) : !1;
70072
+ return m || g ? (_ = h / 2, C = x / 2, o.setRange(t(l.x - _), t(l.y - C), t(l.x + _), t(l.y + C)), l.align = "center", l.baseline = "middle", !0) : !1;
70075
70073
  };
70076
70074
  }
70077
70075
  const b9e = [-1, -1, 1, 1], T9e = [-1, 1, -1, 1];
@@ -70079,22 +70077,22 @@ function R9e(t, e, n, r) {
70079
70077
  const i = t.width, s = t.height, o = e[0], u = e[1], a = t.bitmap();
70080
70078
  return function(l) {
70081
70079
  const c = l.datum.datum.items[r].items, f = c.length, x = l.datum.fontSize, h = Qu.width(l.datum, l.datum.text), p = [];
70082
- let m = n ? x : 0, g = !1, y = !1, E = 0, A, S, v, C, _, b, R, O, L, M, q, W;
70080
+ let m = n ? x : 0, g = !1, y = !1, E = 0, A, S, v, _, C, b, R, O, L, M, q, W;
70083
70081
  for (let B = 0; B < f; ++B) {
70084
- for (A = c[B].x, v = c[B].y, S = c[B].x2 === void 0 ? A : c[B].x2, C = c[B].y2 === void 0 ? v : c[B].y2, p.push([t((A + S) / 2), t((v + C) / 2)]); p.length; )
70082
+ for (A = c[B].x, v = c[B].y, S = c[B].x2 === void 0 ? A : c[B].x2, _ = c[B].y2 === void 0 ? v : c[B].y2, p.push([t((A + S) / 2), t((v + _) / 2)]); p.length; )
70085
70083
  if ([R, O] = p.pop(), !(o.get(R, O) || u.get(R, O) || a.get(R, O))) {
70086
70084
  a.set(R, O);
70087
70085
  for (let G = 0; G < 4; ++G)
70088
- _ = R + b9e[G], b = O + T9e[G], a.outOfBounds(_, b, _, b) || p.push([_, b]);
70089
- if (_ = t.invert(R), b = t.invert(O), L = m, M = s, !h_(_, b, h, x, i, s) && !N0(t, _, b, x, h, L, o, u) && !N0(t, _, b, x, h, x, o, null)) {
70086
+ C = R + b9e[G], b = O + T9e[G], a.outOfBounds(C, b, C, b) || p.push([C, b]);
70087
+ if (C = t.invert(R), b = t.invert(O), L = m, M = s, !h_(C, b, h, x, i, s) && !N0(t, C, b, x, h, L, o, u) && !N0(t, C, b, x, h, x, o, null)) {
70090
70088
  for (; M - L >= 1; )
70091
- q = (L + M) / 2, N0(t, _, b, x, h, q, o, u) ? M = q : L = q;
70092
- L > m && (l.x = _, l.y = b, m = L, g = !0);
70089
+ q = (L + M) / 2, N0(t, C, b, x, h, q, o, u) ? M = q : L = q;
70090
+ L > m && (l.x = C, l.y = b, m = L, g = !0);
70093
70091
  }
70094
70092
  }
70095
- !g && !n && (W = Math.abs(S - A + C - v), _ = (A + S) / 2, b = (v + C) / 2, W >= E && !h_(_, b, h, x, i, s) && !N0(t, _, b, x, h, x, o, null) && (E = W, l.x = _, l.y = b, y = !0));
70093
+ !g && !n && (W = Math.abs(S - A + _ - v), C = (A + S) / 2, b = (v + _) / 2, W >= E && !h_(C, b, h, x, i, s) && !N0(t, C, b, x, h, x, o, null) && (E = W, l.x = C, l.y = b, y = !0));
70096
70094
  }
70097
- return g || y ? (_ = h / 2, b = x / 2, o.setRange(t(l.x - _), t(l.y - b), t(l.x + _), t(l.y + b)), l.align = "center", l.baseline = "middle", !0) : !1;
70095
+ return g || y ? (C = h / 2, b = x / 2, o.setRange(t(l.x - C), t(l.y - b), t(l.x + C), t(l.y + b)), l.align = "center", l.baseline = "middle", !0) : !1;
70098
70096
  };
70099
70097
  }
70100
70098
  const O9e = ["right", "center", "left"], N9e = ["bottom", "middle", "top"];
@@ -70104,15 +70102,15 @@ function D9e(t, e, n, r) {
70104
70102
  const c = l.boundary, f = l.datum.fontSize;
70105
70103
  if (c[2] < 0 || c[5] < 0 || c[0] > i || c[3] > s)
70106
70104
  return !1;
70107
- let x = l.textWidth ?? 0, h, p, m, g, y, E, A, S, v, C, _, b, R, O, L;
70105
+ let x = l.textWidth ?? 0, h, p, m, g, y, E, A, S, v, _, C, b, R, O, L;
70108
70106
  for (let M = 0; M < a; ++M) {
70109
- if (h = (n[M] & 3) - 1, p = (n[M] >>> 2 & 3) - 1, m = h === 0 && p === 0 || r[M] < 0, g = h && p ? Math.SQRT1_2 : 1, y = r[M] < 0 ? -1 : 1, E = c[1 + h] + r[M] * h * g, _ = c[4 + p] + y * f * p / 2 + r[M] * p * g, S = _ - f / 2, v = _ + f / 2, b = t(E), O = t(S), L = t(v), !x)
70107
+ if (h = (n[M] & 3) - 1, p = (n[M] >>> 2 & 3) - 1, m = h === 0 && p === 0 || r[M] < 0, g = h && p ? Math.SQRT1_2 : 1, y = r[M] < 0 ? -1 : 1, E = c[1 + h] + r[M] * h * g, C = c[4 + p] + y * f * p / 2 + r[M] * p * g, S = C - f / 2, v = C + f / 2, b = t(E), O = t(S), L = t(v), !x)
70110
70108
  if (PH(b, b, O, L, o, u, E, E, S, v, c, m))
70111
70109
  x = Qu.width(l.datum, l.datum.text);
70112
70110
  else
70113
70111
  continue;
70114
- if (C = E + y * x * h / 2, E = C - x / 2, A = C + x / 2, b = t(E), R = t(A), PH(b, R, O, L, o, u, E, A, S, v, c, m))
70115
- return l.x = h ? h * y < 0 ? A : E : C, l.y = p ? p * y < 0 ? v : S : _, l.align = O9e[h * y + 1], l.baseline = N9e[p * y + 1], o.setRange(b, O, R, L), !0;
70112
+ if (_ = E + y * x * h / 2, E = _ - x / 2, A = _ + x / 2, b = t(E), R = t(A), PH(b, R, O, L, o, u, E, A, S, v, c, m))
70113
+ return l.x = h ? h * y < 0 ? A : E : _, l.y = p ? p * y < 0 ? v : S : C, l.align = O9e[h * y + 1], l.baseline = N9e[p * y + 1], o.setRange(b, O, R, L), !0;
70116
70114
  }
70117
70115
  return !1;
70118
70116
  };
@@ -70140,7 +70138,7 @@ function L9e(t, e, n, r, i, s, o, u, a, l, c) {
70140
70138
  return t;
70141
70139
  const f = Math.max(r.length, i.length), x = I9e(r, f), h = $9e(i, f), p = B9e(t[0].datum), m = p === "group" && t[0].datum.items[a].marktype, g = m === "area", y = k9e(p, m, u, a), E = l === null || l === 1 / 0, A = g && c === "naive";
70142
70140
  let S = -1, v = -1;
70143
- const C = t.map((O) => {
70141
+ const _ = t.map((O) => {
70144
70142
  const L = E ? Qu.width(O, O.text) : void 0;
70145
70143
  return S = Math.max(S, L), v = Math.max(v, O.fontSize), {
70146
70144
  datum: O,
@@ -70154,18 +70152,18 @@ function L9e(t, e, n, r, i, s, o, u, a, l, c) {
70154
70152
  };
70155
70153
  });
70156
70154
  l = l === null || l === 1 / 0 ? Math.max(S, v) + Math.max(...r) : l;
70157
- const _ = v9e(e[0], e[1], l);
70155
+ const C = v9e(e[0], e[1], l);
70158
70156
  let b;
70159
70157
  if (!A) {
70160
- n && C.sort((M, q) => n(M.datum, q.datum));
70158
+ n && _.sort((M, q) => n(M.datum, q.datum));
70161
70159
  let O = !1;
70162
70160
  for (let M = 0; M < h.length && !O; ++M)
70163
70161
  O = h[M] === 5 || x[M] < 0;
70164
70162
  const L = (p && o || g) && t.map((M) => M.datum);
70165
- b = s.length || L ? E9e(_, L || [], s, O, g) : y9e(_, o && C);
70163
+ b = s.length || L ? E9e(C, L || [], s, O, g) : y9e(C, o && _);
70166
70164
  }
70167
- const R = g ? w9e[c](_, b, o, a) : D9e(_, b, h, x);
70168
- return C.forEach((O) => O.opacity = +R(O)), C;
70165
+ const R = g ? w9e[c](C, b, o, a) : D9e(C, b, h, x);
70166
+ return _.forEach((O) => O.opacity = +R(O)), _;
70169
70167
  }
70170
70168
  function I9e(t, e) {
70171
70169
  const n = new Float64Array(e), r = t.length;
@@ -70453,17 +70451,17 @@ function x3(t) {
70453
70451
  }
70454
70452
  const H9e = (3 + 16 * yl) * yl, z9e = (2 + 12 * yl) * yl, Q9e = (9 + 64 * yl) * yl * yl, Zd = x3(4), MH = x3(8), jH = x3(12), UH = x3(16), ci = x3(4);
70455
70453
  function G9e(t, e, n, r, i, s, o) {
70456
- let u, a, l, c, f, x, h, p, m, g, y, E, A, S, v, C, _, b;
70454
+ let u, a, l, c, f, x, h, p, m, g, y, E, A, S, v, _, C, b;
70457
70455
  const R = t - i, O = n - i, L = e - s, M = r - s;
70458
- S = R * M, x = jr * R, h = x - (x - R), p = R - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g), C = L * O, x = jr * L, h = x - (x - L), p = L - h, x = jr * O, m = x - (x - O), g = O - m, _ = p * g - (C - h * m - p * m - h * g), y = v - _, f = v - y, Zd[0] = v - (y + f) + (f - _), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - C, f = A - y, Zd[1] = A - (y + f) + (f - C), b = E + y, f = b - E, Zd[2] = E - (b - f) + (y - f), Zd[3] = b;
70456
+ S = R * M, x = jr * R, h = x - (x - R), p = R - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g), _ = L * O, x = jr * L, h = x - (x - L), p = L - h, x = jr * O, m = x - (x - O), g = O - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, Zd[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, Zd[1] = A - (y + f) + (f - _), b = E + y, f = b - E, Zd[2] = E - (b - f) + (y - f), Zd[3] = b;
70459
70457
  let q = q9e(4, Zd), W = z9e * o;
70460
70458
  if (q >= W || -q >= W || (f = t - R, u = t - (R + f) + (f - i), f = n - O, l = n - (O + f) + (f - i), f = e - L, a = e - (L + f) + (f - s), f = r - M, c = r - (M + f) + (f - s), u === 0 && a === 0 && l === 0 && c === 0) || (W = Q9e * o + U9e * Math.abs(q), q += R * c + M * u - (L * l + O * a), q >= W || -q >= W))
70461
70459
  return q;
70462
- S = u * M, x = jr * u, h = x - (x - u), p = u - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g), C = a * O, x = jr * a, h = x - (x - a), p = a - h, x = jr * O, m = x - (x - O), g = O - m, _ = p * g - (C - h * m - p * m - h * g), y = v - _, f = v - y, ci[0] = v - (y + f) + (f - _), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - C, f = A - y, ci[1] = A - (y + f) + (f - C), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
70460
+ S = u * M, x = jr * u, h = x - (x - u), p = u - h, x = jr * M, m = x - (x - M), g = M - m, v = p * g - (S - h * m - p * m - h * g), _ = a * O, x = jr * a, h = x - (x - a), p = a - h, x = jr * O, m = x - (x - O), g = O - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, ci[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, ci[1] = A - (y + f) + (f - _), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
70463
70461
  const B = ww(4, Zd, 4, ci, MH);
70464
- S = R * c, x = jr * R, h = x - (x - R), p = R - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g), C = L * l, x = jr * L, h = x - (x - L), p = L - h, x = jr * l, m = x - (x - l), g = l - m, _ = p * g - (C - h * m - p * m - h * g), y = v - _, f = v - y, ci[0] = v - (y + f) + (f - _), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - C, f = A - y, ci[1] = A - (y + f) + (f - C), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
70462
+ S = R * c, x = jr * R, h = x - (x - R), p = R - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g), _ = L * l, x = jr * L, h = x - (x - L), p = L - h, x = jr * l, m = x - (x - l), g = l - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, ci[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, ci[1] = A - (y + f) + (f - _), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
70465
70463
  const G = ww(B, MH, 4, ci, jH);
70466
- S = u * c, x = jr * u, h = x - (x - u), p = u - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g), C = a * l, x = jr * a, h = x - (x - a), p = a - h, x = jr * l, m = x - (x - l), g = l - m, _ = p * g - (C - h * m - p * m - h * g), y = v - _, f = v - y, ci[0] = v - (y + f) + (f - _), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - C, f = A - y, ci[1] = A - (y + f) + (f - C), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
70464
+ S = u * c, x = jr * u, h = x - (x - u), p = u - h, x = jr * c, m = x - (x - c), g = c - m, v = p * g - (S - h * m - p * m - h * g), _ = a * l, x = jr * a, h = x - (x - a), p = a - h, x = jr * l, m = x - (x - l), g = l - m, C = p * g - (_ - h * m - p * m - h * g), y = v - C, f = v - y, ci[0] = v - (y + f) + (f - C), E = S + y, f = E - S, A = S - (E - f) + (y - f), y = A - _, f = A - y, ci[1] = A - (y + f) + (f - _), b = E + y, f = b - E, ci[2] = E - (b - f) + (y - f), ci[3] = b;
70467
70465
  const te = ww(G, jH, 4, ci, UH);
70468
70466
  return UH[te - 1];
70469
70467
  }
@@ -70520,7 +70518,7 @@ class p_ {
70520
70518
  const L = Y9e(y, E, A, S, e[2 * O], e[2 * O + 1]);
70521
70519
  L < v && (g = O, v = L);
70522
70520
  }
70523
- let C = e[2 * g], _ = e[2 * g + 1];
70521
+ let _ = e[2 * g], C = e[2 * g + 1];
70524
70522
  if (v === 1 / 0) {
70525
70523
  for (let M = 0; M < o; M++)
70526
70524
  this._dists[M] = e[2 * M] - e[0] || e[2 * M + 1] - e[1];
@@ -70534,17 +70532,17 @@ class p_ {
70534
70532
  this.hull = O.subarray(0, L), this.triangles = new Uint32Array(0), this.halfedges = new Uint32Array(0);
70535
70533
  return;
70536
70534
  }
70537
- if (DA(y, E, A, S, C, _) < 0) {
70535
+ if (DA(y, E, A, S, _, C) < 0) {
70538
70536
  const O = m, L = A, M = S;
70539
- m = g, A = C, S = _, g = O, C = L, _ = M;
70537
+ m = g, A = _, S = C, g = O, _ = L, C = M;
70540
70538
  }
70541
- const b = K9e(y, E, A, S, C, _);
70539
+ const b = K9e(y, E, A, S, _, C);
70542
70540
  this._cx = b.x, this._cy = b.y;
70543
70541
  for (let O = 0; O < o; O++)
70544
70542
  this._dists[O] = Lw(e[2 * O], e[2 * O + 1], b.x, b.y);
70545
70543
  xh(this._ids, this._dists, 0, o - 1), this._hullStart = p;
70546
70544
  let R = 3;
70547
- r[p] = n[g] = m, r[m] = n[p] = g, r[g] = n[m] = p, i[p] = 0, i[m] = 1, i[g] = 2, s.fill(-1), s[this._hashKey(y, E)] = p, s[this._hashKey(A, S)] = m, s[this._hashKey(C, _)] = g, this.trianglesLen = 0, this._addTriangle(p, m, g, -1, -1, -1);
70545
+ r[p] = n[g] = m, r[m] = n[p] = g, r[g] = n[m] = p, i[p] = 0, i[m] = 1, i[g] = 2, s.fill(-1), s[this._hashKey(y, E)] = p, s[this._hashKey(A, S)] = m, s[this._hashKey(_, C)] = g, this.trianglesLen = 0, this._addTriangle(p, m, g, -1, -1, -1);
70548
70546
  for (let O = 0, L, M; O < this._ids.length; O++) {
70549
70547
  const q = this._ids[O], W = e[2 * q], B = e[2 * q + 1];
70550
70548
  if (O > 0 && Math.abs(W - L) <= qH && Math.abs(B - M) <= qH || (L = W, M = B, q === p || q === m || q === g))
@@ -70751,7 +70749,7 @@ let Z9e = class {
70751
70749
  let s, o;
70752
70750
  const u = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
70753
70751
  for (let m = 0, g = 0, y = r.length, E, A; m < y; m += 3, g += 2) {
70754
- const S = r[m] * 2, v = r[m + 1] * 2, C = r[m + 2] * 2, _ = e[S], b = e[S + 1], R = e[v], O = e[v + 1], L = e[C], M = e[C + 1], q = R - _, W = O - b, B = L - _, G = M - b, te = (q * G - W * B) * 2;
70752
+ const S = r[m] * 2, v = r[m + 1] * 2, _ = r[m + 2] * 2, C = e[S], b = e[S + 1], R = e[v], O = e[v + 1], L = e[_], M = e[_ + 1], q = R - C, W = O - b, B = L - C, G = M - b, te = (q * G - W * B) * 2;
70755
70753
  if (Math.abs(te) < 1e-9) {
70756
70754
  if (s === void 0) {
70757
70755
  s = o = 0;
@@ -70759,11 +70757,11 @@ let Z9e = class {
70759
70757
  s += e[de * 2], o += e[de * 2 + 1];
70760
70758
  s /= n.length, o /= n.length;
70761
70759
  }
70762
- const X = 1e9 * Math.sign((s - _) * G - (o - b) * B);
70763
- E = (_ + L) / 2 - X * G, A = (b + M) / 2 + X * B;
70760
+ const X = 1e9 * Math.sign((s - C) * G - (o - b) * B);
70761
+ E = (C + L) / 2 - X * G, A = (b + M) / 2 + X * B;
70764
70762
  } else {
70765
70763
  const X = 1 / te, de = q * q + W * W, be = B * B + G * G;
70766
- E = _ + (G * de - W * be) * X, A = b + (q * be - B * de) * X;
70764
+ E = C + (G * de - W * be) * X, A = b + (q * be - B * de) * X;
70767
70765
  }
70768
70766
  u[g] = E, u[g + 1] = A;
70769
70767
  }
@@ -71214,14 +71212,14 @@ var Iw = Math.PI / 180, Xm = 64, yS = 2048;
71214
71212
  function cje() {
71215
71213
  var t = [256, 256], e, n, r, i, s, o, u, a = Hie, l = [], c = Math.random, f = {};
71216
71214
  f.layout = function() {
71217
- for (var p = x(P0()), m = gje((t[0] >> 5) * t[1]), g = null, y = l.length, E = -1, A = [], S = l.map((C) => ({
71218
- text: e(C),
71219
- font: n(C),
71220
- style: i(C),
71221
- weight: s(C),
71222
- rotate: o(C),
71223
- size: ~~(r(C) + 1e-14),
71224
- padding: u(C),
71215
+ for (var p = x(P0()), m = gje((t[0] >> 5) * t[1]), g = null, y = l.length, E = -1, A = [], S = l.map((_) => ({
71216
+ text: e(_),
71217
+ font: n(_),
71218
+ style: i(_),
71219
+ weight: s(_),
71220
+ rotate: o(_),
71221
+ size: ~~(r(_) + 1e-14),
71222
+ padding: u(_),
71225
71223
  xoff: 0,
71226
71224
  yoff: 0,
71227
71225
  x1: 0,
@@ -71230,8 +71228,8 @@ function cje() {
71230
71228
  y0: 0,
71231
71229
  hasText: !1,
71232
71230
  sprite: null,
71233
- datum: C
71234
- })).sort((C, _) => _.size - C.size); ++E < y; ) {
71231
+ datum: _
71232
+ })).sort((_, C) => C.size - _.size); ++E < y; ) {
71235
71233
  var v = S[E];
71236
71234
  v.x = t[0] * (c() + 0.5) >> 1, v.y = t[1] * (c() + 0.5) >> 1, fje(p, v, S, E), v.hasText && h(m, v, g) && (A.push(v), g ? dje(g, v) : g = [{
71237
71235
  x: v.x + v.x0,
@@ -71254,7 +71252,7 @@ function cje() {
71254
71252
  };
71255
71253
  }
71256
71254
  function h(p, m, g) {
71257
- for (var y = m.x, E = m.y, A = Math.sqrt(t[0] * t[0] + t[1] * t[1]), S = a(t), v = c() < 0.5 ? 1 : -1, C = -v, _, b, R; (_ = S(C += v)) && (b = ~~_[0], R = ~~_[1], !(Math.min(Math.abs(b), Math.abs(R)) >= A)); )
71255
+ for (var y = m.x, E = m.y, A = Math.sqrt(t[0] * t[0] + t[1] * t[1]), S = a(t), v = c() < 0.5 ? 1 : -1, _ = -v, C, b, R; (C = S(_ += v)) && (b = ~~C[0], R = ~~C[1], !(Math.min(Math.abs(b), Math.abs(R)) >= A)); )
71258
71256
  if (m.x = y + b, m.y = E + R, !(m.x + m.x0 < 0 || m.y + m.y0 < 0 || m.x + m.x1 > t[0] || m.y + m.y1 > t[1]) && (!g || !xje(m, p, t[0])) && (!g || hje(m, g))) {
71259
71257
  for (var O = m.sprite, L = m.width >> 5, M = t[0] >> 5, q = m.x - (L << 4), W = q & 127, B = 32 - W, G = m.y1 - m.y0, te = (m.y + m.y0) * M + (q >> 5), X, de = 0; de < G; de++) {
71260
71258
  X = 0;
@@ -71305,22 +71303,22 @@ function fje(t, e, n, r) {
71305
71303
  break;
71306
71304
  i.translate((o + (c >> 1)) / s, (u + (x >> 1)) / s), e.rotate && i.rotate(e.rotate * Iw), i.fillText(e.text, 0, 0), e.padding && (i.lineWidth = 2 * e.padding, i.strokeText(e.text, 0, 0)), i.restore(), e.width = c, e.height = x, e.xoff = o, e.yoff = u, e.x1 = c >> 1, e.y1 = x >> 1, e.x0 = -e.x1, e.y0 = -e.y1, e.hasText = !0, o += c;
71307
71305
  }
71308
- for (var v = i.getImageData(0, 0, (Xm << 5) / s, yS / s).data, C = []; --r >= 0; )
71306
+ for (var v = i.getImageData(0, 0, (Xm << 5) / s, yS / s).data, _ = []; --r >= 0; )
71309
71307
  if (e = n[r], !!e.hasText) {
71310
71308
  for (c = e.width, f = c >> 5, x = e.y1 - e.y0, h = 0; h < x * f; h++)
71311
- C[h] = 0;
71309
+ _[h] = 0;
71312
71310
  if (o = e.xoff, o == null)
71313
71311
  return;
71314
71312
  u = e.yoff;
71315
- var _ = 0, b = -1;
71313
+ var C = 0, b = -1;
71316
71314
  for (p = 0; p < x; p++) {
71317
71315
  for (h = 0; h < c; h++) {
71318
71316
  var R = f * p + (h >> 5), O = v[(u + p) * (Xm << 5) + (o + h) << 2] ? 1 << 31 - h % 32 : 0;
71319
- C[R] |= O, _ |= O;
71317
+ _[R] |= O, C |= O;
71320
71318
  }
71321
- _ ? b = p : (e.y0++, x--, p--, u++);
71319
+ C ? b = p : (e.y0++, x--, p--, u++);
71322
71320
  }
71323
- e.y1 = e.y0 + b, e.sprite = C.slice(0, (e.y1 - e.y0) * f);
71321
+ e.y1 = e.y0 + b, e.sprite = _.slice(0, (e.y1 - e.y0) * f);
71324
71322
  }
71325
71323
  }
71326
71324
  }
@@ -71640,13 +71638,13 @@ Fe(o8, pe, {
71640
71638
  },
71641
71639
  reinit(t, e) {
71642
71640
  const n = e.materialize().fork(), r = t.fields, i = t.query, s = this._indices, o = this._dims, u = this.value, a = u.curr(), l = u.prev(), c = u.all(), f = n.rem = n.add, x = n.mod, h = i.length, p = {};
71643
- let m, g, y, E, A, S, v, C, _;
71641
+ let m, g, y, E, A, S, v, _, C;
71644
71642
  if (l.set(a), e.rem.length && (A = this.remove(t, e, n)), e.add.length && u.add(e.add), e.mod.length)
71645
- for (S = {}, E = e.mod, v = 0, C = E.length; v < C; ++v)
71643
+ for (S = {}, E = e.mod, v = 0, _ = E.length; v < _; ++v)
71646
71644
  S[E[v]._index] = 1;
71647
71645
  for (v = 0; v < h; ++v)
71648
- _ = r[v], (!o[v] || t.modified("fields", v) || e.modified(_.fields)) && (y = _.fname, (m = p[y]) || (s[y] = g = QH(), p[y] = m = g.insert(_, e.source, 0)), o[v] = zH(g, v, i[v]).onAdd(m, a));
71649
- for (v = 0, C = u.data().length; v < C; ++v)
71646
+ C = r[v], (!o[v] || t.modified("fields", v) || e.modified(C.fields)) && (y = C.fname, (m = p[y]) || (s[y] = g = QH(), p[y] = m = g.insert(C, e.source, 0)), o[v] = zH(g, v, i[v]).onAdd(m, a));
71647
+ for (v = 0, _ = u.data().length; v < _; ++v)
71650
71648
  A[v] || (l[v] !== a[v] ? f.push(v) : S[v] && a[v] !== c && x.push(v));
71651
71649
  return u.mask = (1 << h) - 1, n;
71652
71650
  },
@@ -71811,7 +71809,7 @@ function kje(t) {
71811
71809
  return [];
71812
71810
  }
71813
71811
  }
71814
- var Ta, We, Ae, Xr, Pt, YO = 1, d3 = 2, Lx = 3, jc = 4, KO = 5, Sd = 6, Vi = 7, h3 = 8, Pje = 9;
71812
+ var Ta, We, Ae, Xr, kt, YO = 1, d3 = 2, Lx = 3, jc = 4, KO = 5, Sd = 6, Vi = 7, h3 = 8, Pje = 9;
71815
71813
  Ta = {};
71816
71814
  Ta[YO] = "Boolean";
71817
71815
  Ta[d3] = "<end>";
@@ -72184,7 +72182,7 @@ function dUe() {
72184
72182
  }
72185
72183
  function hUe() {
72186
72184
  var t, e, n, r;
72187
- return Pt = null, Vie(), t = Ae, e = xUe(), n = dUe(), r = fUe(e.value, n.value), {
72185
+ return kt = null, Vie(), t = Ae, e = xUe(), n = dUe(), r = fUe(e.value, n.value), {
72188
72186
  literal: e.literal + n.literal,
72189
72187
  value: r,
72190
72188
  regex: {
@@ -72209,12 +72207,12 @@ function Kie() {
72209
72207
  return p3(t) ? uUe() : t === 40 || t === 41 || t === 59 ? Bw() : t === 39 || t === 34 ? cUe() : t === 46 ? Ja(We.charCodeAt(Ae + 1)) ? GH() : Bw() : Ja(t) ? GH() : Bw();
72210
72208
  }
72211
72209
  function Ji() {
72212
- const t = Pt;
72213
- return Ae = t.end, Pt = Kie(), Ae = t.end, t;
72210
+ const t = kt;
72211
+ return Ae = t.end, kt = Kie(), Ae = t.end, t;
72214
72212
  }
72215
72213
  function Xie() {
72216
72214
  const t = Ae;
72217
- Pt = Kie(), Ae = t;
72215
+ kt = Kie(), Ae = t;
72218
72216
  }
72219
72217
  function gUe(t) {
72220
72218
  const e = new lu(Mje);
@@ -72268,25 +72266,25 @@ function Jr(t) {
72268
72266
  (e.type !== Vi || e.value !== t) && JO(e);
72269
72267
  }
72270
72268
  function en(t) {
72271
- return Pt.type === Vi && Pt.value === t;
72269
+ return kt.type === Vi && kt.value === t;
72272
72270
  }
72273
72271
  function kw(t) {
72274
- return Pt.type === jc && Pt.value === t;
72272
+ return kt.type === jc && kt.value === t;
72275
72273
  }
72276
72274
  function SUe() {
72277
72275
  const t = [];
72278
- for (Ae = Pt.start, Jr("["); !en("]"); )
72276
+ for (Ae = kt.start, Jr("["); !en("]"); )
72279
72277
  en(",") ? (Ji(), t.push(null)) : (t.push(Ix()), en("]") || Jr(","));
72280
72278
  return Ji(), gUe(t);
72281
72279
  }
72282
72280
  function KH() {
72283
- Ae = Pt.start;
72281
+ Ae = kt.start;
72284
72282
  const t = Ji();
72285
72283
  return t.type === h3 || t.type === Sd ? (t.octal && Ot(t, Wie), Jm(t)) : l8(t.value);
72286
72284
  }
72287
72285
  function vUe() {
72288
72286
  var t, e, n, r;
72289
- if (Ae = Pt.start, t = Pt, t.type === Lx)
72287
+ if (Ae = kt.start, t = kt, t.type === Lx)
72290
72288
  return n = KH(), Jr(":"), r = Ix(), YH("init", n, r);
72291
72289
  if (t.type === d3 || t.type === Vi)
72292
72290
  JO(t);
@@ -72295,7 +72293,7 @@ function vUe() {
72295
72293
  }
72296
72294
  function _Ue() {
72297
72295
  var t = [], e, n, r, i = {}, s = String;
72298
- for (Ae = Pt.start, Jr("{"); !en("}"); )
72296
+ for (Ae = kt.start, Jr("{"); !en("}"); )
72299
72297
  e = vUe(), e.key.type === Gie ? n = e.key.name : n = s(e.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? Ot({}, eUe) : i[r] = !0, t.push(e), en("}") || Jr(",");
72300
72298
  return Jr("}"), EUe(t);
72301
72299
  }
@@ -72315,10 +72313,10 @@ function TUe() {
72315
72313
  return SUe();
72316
72314
  if (en("{"))
72317
72315
  return _Ue();
72318
- if (t = Pt.type, Ae = Pt.start, t === Lx || bUe[Pt.value])
72316
+ if (t = kt.type, Ae = kt.start, t === Lx || bUe[kt.value])
72319
72317
  n = l8(Ji().value);
72320
72318
  else if (t === h3 || t === Sd)
72321
- Pt.octal && Ot(Pt, Wie), n = Jm(Ji());
72319
+ kt.octal && Ot(kt, Wie), n = Jm(Ji());
72322
72320
  else {
72323
72321
  if (t === jc)
72324
72322
  throw new Error(ty);
@@ -72334,7 +72332,7 @@ function RUe() {
72334
72332
  return Jr(")"), t;
72335
72333
  }
72336
72334
  function OUe() {
72337
- Ae = Pt.start;
72335
+ Ae = kt.start;
72338
72336
  const t = Ji();
72339
72337
  return pUe(t) || JO(t), l8(t.value);
72340
72338
  }
@@ -72361,13 +72359,13 @@ function FUe() {
72361
72359
  }
72362
72360
  function XH() {
72363
72361
  const t = FUe();
72364
- if (Pt.type === Vi && (en("++") || en("--")))
72362
+ if (kt.type === Vi && (en("++") || en("--")))
72365
72363
  throw new Error(ty);
72366
72364
  return t;
72367
72365
  }
72368
72366
  function ES() {
72369
72367
  var t, e;
72370
- if (Pt.type !== Vi && Pt.type !== jc)
72368
+ if (kt.type !== Vi && kt.type !== jc)
72371
72369
  e = XH();
72372
72370
  else {
72373
72371
  if (en("++") || en("--"))
@@ -72435,12 +72433,12 @@ function JH(t) {
72435
72433
  }
72436
72434
  function wUe() {
72437
72435
  var t, e, n, r, i, s, o, u, a, l;
72438
- if (t = Pt, a = ES(), r = Pt, i = JH(r), i === 0)
72436
+ if (t = kt, a = ES(), r = kt, i = JH(r), i === 0)
72439
72437
  return a;
72440
- for (r.prec = i, Ji(), e = [t, Pt], o = ES(), s = [a, r, o]; (i = JH(Pt)) > 0; ) {
72438
+ for (r.prec = i, Ji(), e = [t, kt], o = ES(), s = [a, r, o]; (i = JH(kt)) > 0; ) {
72441
72439
  for (; s.length > 2 && i <= s[s.length - 2].prec; )
72442
72440
  o = s.pop(), u = s.pop().value, a = s.pop(), e.pop(), n = WH(u, a, o), s.push(n);
72443
- r = Ji(), r.prec = i, s.push(r), e.push(Pt), n = ES(), s.push(n);
72441
+ r = Ji(), r.prec = i, s.push(r), e.push(kt), n = ES(), s.push(n);
72444
72442
  }
72445
72443
  for (l = s.length - 1, n = s[l], e.pop(); l > 1; )
72446
72444
  e.pop(), n = WH(s[l - 1].value, s[l - 2], n), l -= 2;
@@ -72457,9 +72455,9 @@ function c8() {
72457
72455
  return t;
72458
72456
  }
72459
72457
  function Jie(t) {
72460
- We = t, Ae = 0, Xr = We.length, Pt = null, Xie();
72458
+ We = t, Ae = 0, Xr = We.length, kt = null, Xie();
72461
72459
  const e = c8();
72462
- if (Pt.type !== d3)
72460
+ if (kt.type !== d3)
72463
72461
  throw new Error("Unexpect token after expression.");
72464
72462
  return e;
72465
72463
  }
@@ -72722,20 +72720,20 @@ function ZUe(t, e) {
72722
72720
  }, e));
72723
72721
  }
72724
72722
  function eqe(t, e, n, r) {
72725
- for (var i = this.context.data[t], s = i ? i.values.value : [], o = {}, u = {}, a = {}, l, c, f, x, h, p, m, g, y, E, A = s.length, S = 0, v, C; S < A; ++S)
72723
+ for (var i = this.context.data[t], s = i ? i.values.value : [], o = {}, u = {}, a = {}, l, c, f, x, h, p, m, g, y, E, A = s.length, S = 0, v, _; S < A; ++S)
72726
72724
  if (l = s[S], x = l.unit, c = l.fields, f = l.values, c && f) {
72727
- for (v = 0, C = c.length; v < C; ++v)
72725
+ for (v = 0, _ = c.length; v < _; ++v)
72728
72726
  h = c[v], m = o[h.field] || (o[h.field] = {}), g = m[x] || (m[x] = []), a[h.field] = y = h.type.charAt(0), E = Mw[`${y}_union`], m[x] = E(g, ke(f[v]));
72729
- n && (g = u[x] || (u[x] = []), g.push(ke(f).reduce((_, b, R) => (_[c[R].field] = b, _), {})));
72727
+ n && (g = u[x] || (u[x] = []), g.push(ke(f).reduce((C, b, R) => (C[c[R].field] = b, C), {})));
72730
72728
  } else
72731
72729
  h = wu, p = ry(l), m = o[h] || (o[h] = {}), g = m[x] || (m[x] = []), g.push(p), n && (g = u[x] || (u[x] = []), g.push({
72732
72730
  [wu]: p
72733
72731
  }));
72734
- if (e = e || ZH, o[wu] ? o[wu] = Mw[`${wu}_${e}`](...Object.values(o[wu])) : Object.keys(o).forEach((_) => {
72735
- o[_] = Object.keys(o[_]).map((b) => o[_][b]).reduce((b, R) => b === void 0 ? R : Mw[`${a[_]}_${e}`](b, R));
72732
+ if (e = e || ZH, o[wu] ? o[wu] = Mw[`${wu}_${e}`](...Object.values(o[wu])) : Object.keys(o).forEach((C) => {
72733
+ o[C] = Object.keys(o[C]).map((b) => o[C][b]).reduce((b, R) => b === void 0 ? R : Mw[`${a[C]}_${e}`](b, R));
72736
72734
  }), s = Object.keys(u), n && s.length) {
72737
- const _ = r ? qUe : UUe;
72738
- o[_] = e === ZH ? {
72735
+ const C = r ? qUe : UUe;
72736
+ o[C] = e === ZH ? {
72739
72737
  [ez]: s.reduce((b, R) => (b.push(...u[R]), b), [])
72740
72738
  } : {
72741
72739
  [HUe]: s.map((b) => ({
@@ -74644,7 +74642,7 @@ function CQe(t, e) {
74644
74642
  let r = t.update;
74645
74643
  t.init && (r ? ve("Signals can not include both init and update expressions.") : (r = t.init, n.initonly = !0)), r && (r = ia(r, e), n.update = r.$expr, n.params = r.$params), t.on && t.on.forEach((i) => SQe(i, e, n.id));
74646
74644
  }
74647
- const jt = (t) => (e, n, r) => rN(t, n, e || void 0, r), Mse = jt("aggregate"), bQe = jt("axisticks"), jse = jt("bound"), cu = jt("collect"), Sz = jt("compare"), TQe = jt("datajoin"), Use = jt("encode"), RQe = jt("expression"), OQe = jt("facet"), NQe = jt("field"), DQe = jt("key"), FQe = jt("legendentries"), wQe = jt("load"), LQe = jt("mark"), IQe = jt("multiextent"), $Qe = jt("multivalues"), BQe = jt("overlap"), kQe = jt("params"), qse = jt("prefacet"), PQe = jt("projection"), MQe = jt("proxy"), jQe = jt("relay"), Hse = jt("render"), UQe = jt("scale"), _d = jt("sieve"), qQe = jt("sortitems"), zse = jt("viewlayout"), HQe = jt("values");
74645
+ const Mt = (t) => (e, n, r) => rN(t, n, e || void 0, r), Mse = Mt("aggregate"), bQe = Mt("axisticks"), jse = Mt("bound"), cu = Mt("collect"), Sz = Mt("compare"), TQe = Mt("datajoin"), Use = Mt("encode"), RQe = Mt("expression"), OQe = Mt("facet"), NQe = Mt("field"), DQe = Mt("key"), FQe = Mt("legendentries"), wQe = Mt("load"), LQe = Mt("mark"), IQe = Mt("multiextent"), $Qe = Mt("multivalues"), BQe = Mt("overlap"), kQe = Mt("params"), qse = Mt("prefacet"), PQe = Mt("projection"), MQe = Mt("proxy"), jQe = Mt("relay"), Hse = Mt("render"), UQe = Mt("scale"), _d = Mt("sieve"), qQe = Mt("sortitems"), zse = Mt("viewlayout"), HQe = Mt("values");
74648
74646
  let zQe = 0;
74649
74647
  const Qse = {
74650
74648
  min: "min",
@@ -75014,12 +75012,12 @@ function bGe(t, e, n, r, i) {
75014
75012
  opacity: vt
75015
75013
  }
75016
75014
  };
75017
- let v = null, C = null;
75018
- t.fill || (v = e.symbolBaseFillColor, C = e.symbolBaseStrokeColor), wr(g, {
75015
+ let v = null, _ = null;
75016
+ t.fill || (v = e.symbolBaseFillColor, _ = e.symbolBaseStrokeColor), wr(g, {
75019
75017
  fill: s("symbolFillColor", v),
75020
75018
  shape: s("symbolType"),
75021
75019
  size: s("symbolSize"),
75022
- stroke: s("symbolStrokeColor", C),
75020
+ stroke: s("symbolStrokeColor", _),
75023
75021
  strokeDash: s("symbolDash"),
75024
75022
  strokeDashOffset: s("symbolDashOffset"),
75025
75023
  strokeWidth: s("symbolStrokeWidth")
@@ -75032,7 +75030,7 @@ function bGe(t, e, n, r, i) {
75032
75030
  field: xo
75033
75031
  });
75034
75032
  });
75035
- const _ = ks({
75033
+ const C = ks({
75036
75034
  type: yGe,
75037
75035
  role: Yze,
75038
75036
  key: xo,
@@ -75115,7 +75113,7 @@ function bGe(t, e, n, r, i) {
75115
75113
  role: b8,
75116
75114
  from: r,
75117
75115
  encode: D2(g, o, y3),
75118
- marks: [_, R],
75116
+ marks: [C, R],
75119
75117
  name: a,
75120
75118
  interactive: u,
75121
75119
  sort: S
@@ -75426,9 +75424,9 @@ function lN(t, e) {
75426
75424
  a = c = e.add(Use(kse(t.encode, t.type, n, t.style, e, {
75427
75425
  mod: !1,
75428
75426
  pulse: y
75429
- }))), a.params.parent = e.encode(), t.transform && t.transform.forEach((C) => {
75430
- const _ = $8(C, e), b = _.metadata;
75431
- (b.generates || b.changes) && ve("Mark transforms should not generate new data."), b.nomod || (c.params.mod = !0), _.params.pulse = Ke(a), e.add(a = _);
75427
+ }))), a.params.parent = e.encode(), t.transform && t.transform.forEach((_) => {
75428
+ const C = $8(_, e), b = C.metadata;
75429
+ (b.generates || b.changes) && ve("Mark transforms should not generate new data."), b.nomod || (c.params.mod = !0), C.params.pulse = Ke(a), e.add(a = C);
75432
75430
  }), t.sort && (a = e.add(qQe({
75433
75431
  sort: e.compareRef(t.sort),
75434
75432
  pulse: Ke(a)
@@ -75450,8 +75448,8 @@ function lN(t, e) {
75450
75448
  })), v = e.add(_d({
75451
75449
  pulse: Ke(S)
75452
75450
  }, void 0, e.parent()));
75453
- t.name != null && (f = t.name, e.addData(f, new $x(e, l, S, v)), t.on && t.on.forEach((C) => {
75454
- (C.insert || C.remove || C.toggle) && ve("Marks only support modify triggers."), noe(C, e, f);
75451
+ t.name != null && (f = t.name, e.addData(f, new $x(e, l, S, v)), t.on && t.on.forEach((_) => {
75452
+ (_.insert || _.remove || _.toggle) && ve("Marks only support modify triggers."), noe(_, e, f);
75455
75453
  }));
75456
75454
  }
75457
75455
  function WGe(t, e, n) {
@@ -75994,7 +75992,7 @@ function SWe(t, e, n, r, i, s) {
75994
75992
  opacity: vt,
75995
75993
  x: pr(u, y, g),
75996
75994
  y: Ho(u, y, g)
75997
- }, C = {
75995
+ }, _ = {
75998
75996
  enter: v,
75999
75997
  update: m = {
76000
75998
  opacity: ho,
@@ -76012,10 +76010,10 @@ function SWe(t, e, n, r, i, s) {
76012
76010
  y: v.y
76013
76011
  }
76014
76012
  };
76015
- wr(C, {
76013
+ wr(_, {
76016
76014
  dx: !x && p ? pr(u, S) : null,
76017
76015
  dy: !h && p ? Ho(u, S) : null
76018
- }), wr(C, {
76016
+ }), wr(_, {
76019
76017
  angle: o("labelAngle"),
76020
76018
  fill: o("labelColor"),
76021
76019
  fillOpacity: o("labelOpacity"),
@@ -76029,16 +76027,16 @@ function SWe(t, e, n, r, i, s) {
76029
76027
  align: x,
76030
76028
  baseline: h
76031
76029
  });
76032
- const _ = o("labelBound");
76030
+ const C = o("labelBound");
76033
76031
  let b = o("labelOverlap");
76034
- return b = b || _ ? {
76032
+ return b = b || C ? {
76035
76033
  separation: o("labelSeparation"),
76036
76034
  method: b,
76037
76035
  order: "datum.index",
76038
- bound: _ ? {
76036
+ bound: C ? {
76039
76037
  scale: a,
76040
76038
  orient: u,
76041
- tolerance: _
76039
+ tolerance: C
76042
76040
  } : null
76043
76041
  } : void 0, m.align !== E && (m.align = Eh(m.align, E)), m.baseline !== A && (m.baseline = Eh(m.baseline, A)), ks({
76044
76042
  type: Cd,
@@ -76046,7 +76044,7 @@ function SWe(t, e, n, r, i, s) {
76046
76044
  style: m3,
76047
76045
  key: xo,
76048
76046
  from: r,
76049
- encode: C,
76047
+ encode: _,
76050
76048
  overlap: b
76051
76049
  }, n);
76052
76050
  }
@@ -76692,7 +76690,7 @@ function IWe(t, e) {
76692
76690
  let c = 0, f = 0, x = -90, h = "right", p = "middle", m = 0, g = 0;
76693
76691
  const y = l !== "spark", E = l !== "spark", A = e.fields[Vf(t)];
76694
76692
  let S = l !== "spark" ? kA - 1 : 0, v;
76695
- const C = Vf(r), _ = e.fields[C].max, b = Dt("linear")().domain([0, _]).nice().range([o, 0]), R = b.domain();
76693
+ const _ = Vf(r), C = e.fields[_].max, b = Dt("linear")().domain([0, C]).nice().range([o, 0]), R = b.domain();
76696
76694
  if (E) {
76697
76695
  const q = b.domain().at(1), B = DZ().format(",")(q);
76698
76696
  f = s1(B, "Inter, sans-serif 12px") + 5 + 31;
@@ -77003,69 +77001,69 @@ var xoe = { exports: {} };
77003
77001
  typeof h == "object" && (p = h.depth, m = h.prototype, g = h.includeNonEnumerable, h = h.circular);
77004
77002
  var y = [], E = [], A = typeof Buffer < "u";
77005
77003
  typeof h > "u" && (h = !0), typeof p > "u" && (p = 1 / 0);
77006
- function S(v, C) {
77004
+ function S(v, _) {
77007
77005
  if (v === null)
77008
77006
  return null;
77009
- if (C === 0)
77007
+ if (_ === 0)
77010
77008
  return v;
77011
- var _, b;
77009
+ var C, b;
77012
77010
  if (typeof v != "object")
77013
77011
  return v;
77014
77012
  if (n(v, r))
77015
- _ = new r();
77013
+ C = new r();
77016
77014
  else if (n(v, i))
77017
- _ = new i();
77015
+ C = new i();
77018
77016
  else if (n(v, s))
77019
- _ = new s(function(te, X) {
77017
+ C = new s(function(te, X) {
77020
77018
  v.then(function(de) {
77021
- te(S(de, C - 1));
77019
+ te(S(de, _ - 1));
77022
77020
  }, function(de) {
77023
- X(S(de, C - 1));
77021
+ X(S(de, _ - 1));
77024
77022
  });
77025
77023
  });
77026
77024
  else if (o.__isArray(v))
77027
- _ = [];
77025
+ C = [];
77028
77026
  else if (o.__isRegExp(v))
77029
- _ = new RegExp(v.source, f(v)), v.lastIndex && (_.lastIndex = v.lastIndex);
77027
+ C = new RegExp(v.source, f(v)), v.lastIndex && (C.lastIndex = v.lastIndex);
77030
77028
  else if (o.__isDate(v))
77031
- _ = new Date(v.getTime());
77029
+ C = new Date(v.getTime());
77032
77030
  else {
77033
77031
  if (A && Buffer.isBuffer(v))
77034
- return Buffer.allocUnsafe ? _ = Buffer.allocUnsafe(v.length) : _ = new Buffer(v.length), v.copy(_), _;
77035
- n(v, Error) ? _ = Object.create(v) : typeof m > "u" ? (b = Object.getPrototypeOf(v), _ = Object.create(b)) : (_ = Object.create(m), b = m);
77032
+ return Buffer.allocUnsafe ? C = Buffer.allocUnsafe(v.length) : C = new Buffer(v.length), v.copy(C), C;
77033
+ n(v, Error) ? C = Object.create(v) : typeof m > "u" ? (b = Object.getPrototypeOf(v), C = Object.create(b)) : (C = Object.create(m), b = m);
77036
77034
  }
77037
77035
  if (h) {
77038
77036
  var R = y.indexOf(v);
77039
77037
  if (R != -1)
77040
77038
  return E[R];
77041
- y.push(v), E.push(_);
77039
+ y.push(v), E.push(C);
77042
77040
  }
77043
77041
  n(v, r) && v.forEach(function(te, X) {
77044
- var de = S(X, C - 1), be = S(te, C - 1);
77045
- _.set(de, be);
77042
+ var de = S(X, _ - 1), be = S(te, _ - 1);
77043
+ C.set(de, be);
77046
77044
  }), n(v, i) && v.forEach(function(te) {
77047
- var X = S(te, C - 1);
77048
- _.add(X);
77045
+ var X = S(te, _ - 1);
77046
+ C.add(X);
77049
77047
  });
77050
77048
  for (var O in v) {
77051
77049
  var L;
77052
- b && (L = Object.getOwnPropertyDescriptor(b, O)), !(L && L.set == null) && (_[O] = S(v[O], C - 1));
77050
+ b && (L = Object.getOwnPropertyDescriptor(b, O)), !(L && L.set == null) && (C[O] = S(v[O], _ - 1));
77053
77051
  }
77054
77052
  if (Object.getOwnPropertySymbols)
77055
77053
  for (var M = Object.getOwnPropertySymbols(v), O = 0; O < M.length; O++) {
77056
77054
  var q = M[O], W = Object.getOwnPropertyDescriptor(v, q);
77057
- W && !W.enumerable && !g || (_[q] = S(v[q], C - 1), W.enumerable || Object.defineProperty(_, q, {
77055
+ W && !W.enumerable && !g || (C[q] = S(v[q], _ - 1), W.enumerable || Object.defineProperty(C, q, {
77058
77056
  enumerable: !1
77059
77057
  }));
77060
77058
  }
77061
77059
  if (g)
77062
77060
  for (var B = Object.getOwnPropertyNames(v), O = 0; O < B.length; O++) {
77063
77061
  var G = B[O], W = Object.getOwnPropertyDescriptor(v, G);
77064
- W && W.enumerable || (_[G] = S(v[G], C - 1), Object.defineProperty(_, G, {
77062
+ W && W.enumerable || (C[G] = S(v[G], _ - 1), Object.defineProperty(C, G, {
77065
77063
  enumerable: !1
77066
77064
  }));
77067
77065
  }
77068
- return _;
77066
+ return C;
77069
77067
  }
77070
77068
  return S(x, p);
77071
77069
  }
@@ -80295,7 +80293,7 @@ function Uue(t, { config: e }) {
80295
80293
  l,
80296
80294
  // TODO: https://github.com/vega/vega-lite/issues/6245
80297
80295
  e
80298
- ), x = jue(c), { bins: h, timeUnits: p, transform: m, continuousAxisChannelDef: g, continuousAxis: y, groupby: E, aggregate: A, encodingWithoutContinuousAxis: S, ticksOrient: v, boxOrient: C, customTooltipWithoutAggregatedField: _ } = xXe(t, c, e), { color: b, size: R } = S, O = RS(S, ["color", "size"]), L = (J) => D7(l, y, g, J, e.boxplot), M = L(O), q = L(S), W = L(Object.assign(Object.assign({}, O), R ? { size: R } : {})), B = M5([
80296
+ ), x = jue(c), { bins: h, timeUnits: p, transform: m, continuousAxisChannelDef: g, continuousAxis: y, groupby: E, aggregate: A, encodingWithoutContinuousAxis: S, ticksOrient: v, boxOrient: _, customTooltipWithoutAggregatedField: C } = xXe(t, c, e), { color: b, size: R } = S, O = RS(S, ["color", "size"]), L = (J) => D7(l, y, g, J, e.boxplot), M = L(O), q = L(S), W = L(Object.assign(Object.assign({}, O), R ? { size: R } : {})), B = M5([
80299
80297
  { fieldPrefix: x === "min-max" ? "upper_whisker_" : "max_", titlePrefix: "Max" },
80300
80298
  { fieldPrefix: "upper_box_", titlePrefix: "Q3" },
80301
80299
  { fieldPrefix: "mid_box_", titlePrefix: "Median" },
@@ -80338,7 +80336,7 @@ function Uue(t, { config: e }) {
80338
80336
  ...x !== "tukey" ? X : [],
80339
80337
  ...q({
80340
80338
  partName: "box",
80341
- mark: Object.assign(Object.assign({ type: "bar" }, f ? { size: f } : {}), { orient: C, invalid: null, ariaRoleDescription: "box" }),
80339
+ mark: Object.assign(Object.assign({ type: "bar" }, f ? { size: f } : {}), { orient: _, invalid: null, ariaRoleDescription: "box" }),
80342
80340
  positionPrefix: "lower_box",
80343
80341
  endPositionPrefix: "upper_box",
80344
80342
  extraEncoding: B
@@ -80392,7 +80390,7 @@ function Uue(t, { config: e }) {
80392
80390
  }, V = RS(O, ["tooltip"]), { scale: D, axis: $ } = g, j = N7(g), Q = po($, ["title"]), I = kue(l, "outliers", e.boxplot, {
80393
80391
  transform: [{ filter: `(${k} < ${T}) || (${k} > ${w})` }],
80394
80392
  mark: "point",
80395
- encoding: Object.assign(Object.assign(Object.assign({ [y]: Object.assign(Object.assign(Object.assign({ field: g.field, type: g.type }, j !== void 0 ? { title: j } : {}), D !== void 0 ? { scale: D } : {}), Ht(Q) ? {} : { axis: Q }) }, V), b ? { color: b } : {}), _ ? { tooltip: _ } : {})
80393
+ encoding: Object.assign(Object.assign(Object.assign({ [y]: Object.assign(Object.assign(Object.assign({ field: g.field, type: g.type }, j !== void 0 ? { title: j } : {}), D !== void 0 ? { scale: D } : {}), Ht(Q) ? {} : { axis: Q }) }, V), b ? { color: b } : {}), C ? { tooltip: C } : {})
80396
80394
  })[0];
80397
80395
  let H;
80398
80396
  const P = [...h, ...p, z];
@@ -80456,7 +80454,7 @@ function xXe(t, e, n) {
80456
80454
  }
80457
80455
  ], c = t.encoding, f = s;
80458
80456
  c[f];
80459
- const x = RS(c, [typeof f == "symbol" ? f : f + ""]), { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = lXe(x), { bins: m, timeUnits: g, aggregate: y, groupby: E, encoding: A } = Iue(p, n), S = r === "vertical" ? "horizontal" : "vertical", v = r, C = [
80457
+ const x = RS(c, [typeof f == "symbol" ? f : f + ""]), { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = lXe(x), { bins: m, timeUnits: g, aggregate: y, groupby: E, encoding: A } = Iue(p, n), S = r === "vertical" ? "horizontal" : "vertical", v = r, _ = [
80460
80458
  ...m,
80461
80459
  ...g,
80462
80460
  {
@@ -80468,7 +80466,7 @@ function xXe(t, e, n) {
80468
80466
  return {
80469
80467
  bins: m,
80470
80468
  timeUnits: g,
80471
- transform: C,
80469
+ transform: _,
80472
80470
  groupby: E,
80473
80471
  aggregate: y,
80474
80472
  continuousAxisChannelDef: i,
@@ -80573,15 +80571,15 @@ function zue(t, e, n) {
80573
80571
  var r;
80574
80572
  const { mark: i, encoding: s, params: o, projection: u } = t, a = iQ(t, ["mark", "encoding", "params", "projection"]), l = sa(i) ? i : { type: i };
80575
80573
  o && Te(Moe(e));
80576
- const { orient: c, inputType: f } = pXe(t, e), { continuousAxisChannelDef: x, continuousAxisChannelDef2: h, continuousAxisChannelDefError: p, continuousAxisChannelDefError2: m, continuousAxis: g } = Pue(t, c, e), { errorBarSpecificAggregate: y, postAggregateCalculates: E, tooltipSummary: A, tooltipTitleWithFieldName: S } = EXe(l, x, h, p, m, f, e, n), v = s, C = g;
80577
- v[C];
80578
- const _ = g === "x" ? "x2" : "y2";
80574
+ const { orient: c, inputType: f } = pXe(t, e), { continuousAxisChannelDef: x, continuousAxisChannelDef2: h, continuousAxisChannelDefError: p, continuousAxisChannelDefError2: m, continuousAxis: g } = Pue(t, c, e), { errorBarSpecificAggregate: y, postAggregateCalculates: E, tooltipSummary: A, tooltipTitleWithFieldName: S } = EXe(l, x, h, p, m, f, e, n), v = s, _ = g;
80579
80575
  v[_];
80576
+ const C = g === "x" ? "x2" : "y2";
80577
+ v[C];
80580
80578
  const b = g === "x" ? "xError" : "yError";
80581
80579
  v[b];
80582
80580
  const R = g === "x" ? "xError2" : "yError2";
80583
80581
  v[R];
80584
- const O = iQ(v, [typeof C == "symbol" ? C : C + "", typeof _ == "symbol" ? _ : _ + "", typeof b == "symbol" ? b : b + "", typeof R == "symbol" ? R : R + ""]), { bins: L, timeUnits: M, aggregate: q, groupby: W, encoding: B } = Iue(O, n), G = [...q, ...y], te = f !== "raw" ? [] : W, X = M5(A, x, B, S);
80582
+ const O = iQ(v, [typeof _ == "symbol" ? _ : _ + "", typeof C == "symbol" ? C : C + "", typeof b == "symbol" ? b : b + "", typeof R == "symbol" ? R : R + ""]), { bins: L, timeUnits: M, aggregate: q, groupby: W, encoding: B } = Iue(O, n), G = [...q, ...y], te = f !== "raw" ? [] : W, X = M5(A, x, B, S);
80585
80583
  return {
80586
80584
  transform: [
80587
80585
  ...(r = a.transform) !== null && r !== void 0 ? r : [],
@@ -82160,7 +82158,7 @@ function GJe(t, e, n, r) {
82160
82158
  function U7(t) {
82161
82159
  return t.map((e) => (e.on && !e.on.length && delete e.on, e));
82162
82160
  }
82163
- class Ut {
82161
+ class jt {
82164
82162
  constructor(e, n) {
82165
82163
  this.debugName = n, this._children = [], this._parent = null, e && (this.parent = e);
82166
82164
  }
@@ -82218,7 +82216,7 @@ class Ut {
82218
82216
  this._children = [], e.removeChild(this), e.parent.removeChild(e), this.parent = n, e.parent = this;
82219
82217
  }
82220
82218
  }
82221
- class Ni extends Ut {
82219
+ class Ni extends jt {
82222
82220
  /**
82223
82221
  * @param source The name of the source. Will change in assemble.
82224
82222
  * @param type The type of the output node.
@@ -82268,7 +82266,7 @@ var EQ = function(t, e) {
82268
82266
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
82269
82267
  return n;
82270
82268
  };
82271
- class Wu extends Ut {
82269
+ class Wu extends jt {
82272
82270
  constructor(e, n) {
82273
82271
  super(e), this.formula = n;
82274
82272
  }
@@ -83030,7 +83028,7 @@ function cZe(t, e, n) {
83030
83028
  m = m || {
83031
83029
  [c]: lZe(c, h || a, l, s, g)
83032
83030
  };
83033
- const y = (l == null ? void 0 : l.get("type")) !== "band" || !("band" in m[c]) ? "middle" : "top", E = Aae(e, r, s, y), A = E === "xc" || E === "yc", { offset: S, offsetType: v } = dy({ channel: e, markDef: r, encoding: i, model: n, bandPosition: A ? 0.5 : 0 }), C = g7({
83031
+ const y = (l == null ? void 0 : l.get("type")) !== "band" || !("band" in m[c]) ? "middle" : "top", E = Aae(e, r, s, y), A = E === "xc" || E === "yc", { offset: S, offsetType: v } = dy({ channel: e, markDef: r, encoding: i, model: n, bandPosition: A ? 0.5 : 0 }), _ = g7({
83034
83032
  channel: e,
83035
83033
  channelDef: t,
83036
83034
  markDef: r,
@@ -83043,13 +83041,13 @@ function cZe(t, e, n) {
83043
83041
  bandPosition: A ? v === "encoding" ? 0 : 0.5 : Ye(g) ? { signal: `(1-${g})/2` } : B2(g) ? (1 - g.band) / 2 : 0
83044
83042
  });
83045
83043
  if (c)
83046
- return Object.assign({ [E]: C }, m);
83044
+ return Object.assign({ [E]: _ }, m);
83047
83045
  {
83048
- const _ = cc(f), b = m[c], R = S ? Object.assign(Object.assign({}, b), { offset: S }) : b;
83046
+ const C = cc(f), b = m[c], R = S ? Object.assign(Object.assign({}, b), { offset: S }) : b;
83049
83047
  return {
83050
- [E]: C,
83048
+ [E]: _,
83051
83049
  // posRef might be an array that wraps position invalid test
83052
- [_]: _e(C) ? [C[0], Object.assign(Object.assign({}, C[1]), { offset: R })] : Object.assign(Object.assign({}, C), { offset: R })
83050
+ [C]: _e(_) ? [_[0], Object.assign(Object.assign({}, _[1]), { offset: R })] : Object.assign(Object.assign({}, _), { offset: R })
83053
83051
  };
83054
83052
  }
83055
83053
  }
@@ -83067,32 +83065,32 @@ function Cm(t, e, n, r, i) {
83067
83065
  }
83068
83066
  function fZe({ fieldDef: t, fieldDef2: e, channel: n, model: r }) {
83069
83067
  var i, s, o;
83070
- const { config: u, markDef: a, encoding: l } = r, c = r.getScaleComponent(n), f = r.scaleName(n), x = c ? c.get("type") : void 0, h = c.get("reverse"), p = Sue({ channel: n, fieldDef: t, markDef: a, config: u, scaleType: x }), m = (i = r.component.axes[n]) === null || i === void 0 ? void 0 : i[0], g = (s = m == null ? void 0 : m.get("translate")) !== null && s !== void 0 ? s : 0.5, y = Lr(n) && (o = Bt("binSpacing", a, u)) !== null && o !== void 0 ? o : 0, E = t0(n), A = cc(n), S = cc(E), { offset: v } = dy({ channel: n, markDef: a, encoding: l, model: r, bandPosition: 0 }), C = Ye(p) ? { signal: `(1-${p.signal})/2` } : B2(p) ? (1 - p.band) / 2 : 0.5;
83068
+ const { config: u, markDef: a, encoding: l } = r, c = r.getScaleComponent(n), f = r.scaleName(n), x = c ? c.get("type") : void 0, h = c.get("reverse"), p = Sue({ channel: n, fieldDef: t, markDef: a, config: u, scaleType: x }), m = (i = r.component.axes[n]) === null || i === void 0 ? void 0 : i[0], g = (s = m == null ? void 0 : m.get("translate")) !== null && s !== void 0 ? s : 0.5, y = Lr(n) && (o = Bt("binSpacing", a, u)) !== null && o !== void 0 ? o : 0, E = t0(n), A = cc(n), S = cc(E), { offset: v } = dy({ channel: n, markDef: a, encoding: l, model: r, bandPosition: 0 }), _ = Ye(p) ? { signal: `(1-${p.signal})/2` } : B2(p) ? (1 - p.band) / 2 : 0.5;
83071
83069
  if (Xt(t.bin) || t.timeUnit)
83072
83070
  return {
83073
83071
  [S]: SQ({
83074
83072
  fieldDef: t,
83075
83073
  scaleName: f,
83076
- bandPosition: C,
83074
+ bandPosition: _,
83077
83075
  offset: Cm(E, y, h, g, v)
83078
83076
  }),
83079
83077
  [A]: SQ({
83080
83078
  fieldDef: t,
83081
83079
  scaleName: f,
83082
- bandPosition: Ye(C) ? { signal: `1-${C.signal}` } : 1 - C,
83080
+ bandPosition: Ye(_) ? { signal: `1-${_.signal}` } : 1 - _,
83083
83081
  offset: Cm(n, y, h, g, v)
83084
83082
  })
83085
83083
  };
83086
83084
  if (Ei(t.bin)) {
83087
- const _ = nx(t, f, {}, { offset: Cm(E, y, h, g, v) });
83085
+ const C = nx(t, f, {}, { offset: Cm(E, y, h, g, v) });
83088
83086
  if (Ie(e))
83089
83087
  return {
83090
- [S]: _,
83088
+ [S]: C,
83091
83089
  [A]: nx(e, f, {}, { offset: Cm(n, y, h, g, v) })
83092
83090
  };
83093
83091
  if (Rd(t.bin) && t.bin.step)
83094
83092
  return {
83095
- [S]: _,
83093
+ [S]: C,
83096
83094
  [A]: {
83097
83095
  signal: `scale("${f}", ${$e(t, { expr: "datum" })} + ${t.bin.step})`,
83098
83096
  offset: Cm(n, y, h, g, v)
@@ -83356,10 +83354,10 @@ const Tae = "_translate_anchor", Rae = "_translate_delta", yZe = {
83356
83354
  };
83357
83355
  function CQ(t, e, n, r, i) {
83358
83356
  var s, o;
83359
- const u = e.name, a = u + Tae, l = u + Rae, c = n.channel, f = xc.defined(e), x = i.filter((_) => _.name === n.signals[f ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, p = t.getScaleComponent(c), m = p.get("type"), g = p.get("reverse"), y = f ? c === mn ? g ? "" : "-" : g ? "-" : "" : "", E = `${a}.extent_${c}`, A = `${y}${l}.${c} / ${f ? `${h}` : `span(${E})`}`, S = f ? m === "log" ? "panLog" : m === "symlog" ? "panSymlog" : m === "pow" ? "panPow" : "panLinear" : "panLinear", v = f ? m === "pow" ? `, ${(s = p.get("exponent")) !== null && s !== void 0 ? s : 1}` : m === "symlog" ? `, ${(o = p.get("constant")) !== null && o !== void 0 ? o : 1}` : "" : "", C = `${S}(${E}, ${A}${v})`;
83357
+ const u = e.name, a = u + Tae, l = u + Rae, c = n.channel, f = xc.defined(e), x = i.filter((C) => C.name === n.signals[f ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, p = t.getScaleComponent(c), m = p.get("type"), g = p.get("reverse"), y = f ? c === mn ? g ? "" : "-" : g ? "-" : "" : "", E = `${a}.extent_${c}`, A = `${y}${l}.${c} / ${f ? `${h}` : `span(${E})`}`, S = f ? m === "log" ? "panLog" : m === "symlog" ? "panSymlog" : m === "pow" ? "panPow" : "panLinear" : "panLinear", v = f ? m === "pow" ? `, ${(s = p.get("exponent")) !== null && s !== void 0 ? s : 1}` : m === "symlog" ? `, ${(o = p.get("constant")) !== null && o !== void 0 ? o : 1}` : "" : "", _ = `${S}(${E}, ${A}${v})`;
83360
83358
  x.on.push({
83361
83359
  events: { signal: l },
83362
- update: f ? C : `clampRange(${C}, 0, ${h})`
83360
+ update: f ? _ : `clampRange(${_}, 0, ${h})`
83363
83361
  });
83364
83362
  }
83365
83363
  const Oae = "_zoom_anchor", Nae = "_zoom_delta", EZe = {
@@ -83445,7 +83443,7 @@ function Lae(t) {
83445
83443
  r.type === "MemberExpression" && wae(r) && n.add(W5(r).slice(1).join("."));
83446
83444
  }), n;
83447
83445
  }
83448
- class P2 extends Ut {
83446
+ class P2 extends jt {
83449
83447
  constructor(e, n, r) {
83450
83448
  super(e), this.model = n, this.filter = r, this.expr = k_(this.model, this.filter, this), this._dependentFields = Lae(this.expr);
83451
83449
  }
@@ -83558,19 +83556,19 @@ function Zm(t, e, n, r = { header: !1 }) {
83558
83556
  else if (O3(g)) {
83559
83557
  const { condition: y } = g, E = qA(g, ["condition"]), A = ke(y), S = nQ[p];
83560
83558
  if (S) {
83561
- const { vgProp: v, part: C } = S, _ = [
83559
+ const { vgProp: v, part: _ } = S, C = [
83562
83560
  ...A.map((b) => {
83563
83561
  const { test: R } = b, O = qA(b, ["test"]);
83564
83562
  return Object.assign({ test: k_(null, R) }, O);
83565
83563
  }),
83566
83564
  E
83567
83565
  ];
83568
- Jw(h, C, v, _), delete h[p];
83566
+ Jw(h, _, v, C), delete h[p];
83569
83567
  } else if (S === null) {
83570
83568
  const v = {
83571
- signal: A.map((C) => {
83572
- const { test: _ } = C, b = qA(C, ["test"]);
83573
- return `${k_(null, _)} ? ${Uz(b)} : `;
83569
+ signal: A.map((_) => {
83570
+ const { test: C } = _, b = qA(_, ["test"]);
83571
+ return `${k_(null, C)} ? ${Uz(b)} : `;
83574
83572
  }).join("") + Uz(E)
83575
83573
  };
83576
83574
  h[p] = v;
@@ -83876,7 +83874,7 @@ function $Ze(t, e) {
83876
83874
  function BZe(t, e) {
83877
83875
  return t === "rect" && N_(e) ? 1 : 0;
83878
83876
  }
83879
- class Fp extends Ut {
83877
+ class Fp extends jt {
83880
83878
  constructor(e, n) {
83881
83879
  super(e), this.transform = n, this._dependentFields = Lae(this.transform.calculate);
83882
83880
  }
@@ -84157,12 +84155,12 @@ function GZe(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
84157
84155
  return;
84158
84156
  const { markDef: p, encoding: m, config: g, mark: y } = n, E = p.filled && y !== "trail";
84159
84157
  let A = Object.assign(Object.assign({}, FVe({}, n, CKe)), Eae(n, { filled: E }));
84160
- const S = (o = i.get("symbolOpacity")) !== null && o !== void 0 ? o : g.legend.symbolOpacity, v = (u = i.get("symbolFillColor")) !== null && u !== void 0 ? u : g.legend.symbolFillColor, C = (a = i.get("symbolStrokeColor")) !== null && a !== void 0 ? a : g.legend.symbolStrokeColor, _ = S === void 0 ? (l = Vae(m.opacity)) !== null && l !== void 0 ? l : p.opacity : void 0;
84158
+ const S = (o = i.get("symbolOpacity")) !== null && o !== void 0 ? o : g.legend.symbolOpacity, v = (u = i.get("symbolFillColor")) !== null && u !== void 0 ? u : g.legend.symbolFillColor, _ = (a = i.get("symbolStrokeColor")) !== null && a !== void 0 ? a : g.legend.symbolStrokeColor, C = S === void 0 ? (l = Vae(m.opacity)) !== null && l !== void 0 ? l : p.opacity : void 0;
84161
84159
  if (A.fill) {
84162
84160
  if (r === "fill" || E && r === us)
84163
84161
  delete A.fill;
84164
84162
  else if (A.fill.field)
84165
- v ? delete A.fill : (A.fill = tn((c = g.legend.symbolBaseFillColor) !== null && c !== void 0 ? c : "black"), A.fillOpacity = tn(_ ?? 1));
84163
+ v ? delete A.fill : (A.fill = tn((c = g.legend.symbolBaseFillColor) !== null && c !== void 0 ? c : "black"), A.fillOpacity = tn(C ?? 1));
84166
84164
  else if (_e(A.fill)) {
84167
84165
  const b = (h = (x = X5((f = m.fill) !== null && f !== void 0 ? f : m.color)) !== null && x !== void 0 ? x : p.fill) !== null && h !== void 0 ? h : E && p.color;
84168
84166
  b && (A.fill = tn(b));
@@ -84171,7 +84169,7 @@ function GZe(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
84171
84169
  if (A.stroke) {
84172
84170
  if (r === "stroke" || !E && r === us)
84173
84171
  delete A.stroke;
84174
- else if (A.stroke.field || C)
84172
+ else if (A.stroke.field || _)
84175
84173
  delete A.stroke;
84176
84174
  else if (_e(A.stroke)) {
84177
84175
  const b = er(X5(m.stroke || m.color), p.stroke, E ? p.color : void 0);
@@ -84181,9 +84179,9 @@ function GZe(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
84181
84179
  if (r !== e0) {
84182
84180
  const b = Ie(e) && Kae(n, i, e);
84183
84181
  b ? A.opacity = [
84184
- Object.assign({ test: b }, tn(_ ?? 1)),
84182
+ Object.assign({ test: b }, tn(C ?? 1)),
84185
84183
  tn(g.legend.unselectedOpacity)
84186
- ] : _ && (A.opacity = tn(_));
84184
+ ] : C && (A.opacity = tn(C));
84187
84185
  }
84188
84186
  return A = Object.assign(Object.assign({}, A), t), Ht(A) ? void 0 : A;
84189
84187
  }
@@ -84397,19 +84395,19 @@ function uet(t, e) {
84397
84395
  legendType: g,
84398
84396
  direction: y
84399
84397
  };
84400
- for (const _ of Wae) {
84401
- if (g === "gradient" && _.startsWith("symbol") || g === "symbol" && _.startsWith("gradient"))
84398
+ for (const C of Wae) {
84399
+ if (g === "gradient" && C.startsWith("symbol") || g === "symbol" && C.startsWith("gradient"))
84402
84400
  continue;
84403
- const b = _ in DQ ? DQ[_](E) : s[_];
84401
+ const b = C in DQ ? DQ[C](E) : s[C];
84404
84402
  if (b !== void 0) {
84405
- const R = oet(b, _, s, t.fieldDef(e));
84406
- (R || a.legend[_] === void 0) && c.set(_, b, R);
84403
+ const R = oet(b, C, s, t.fieldDef(e));
84404
+ (R || a.legend[C] === void 0) && c.set(C, b, R);
84407
84405
  }
84408
84406
  }
84409
- const A = (r = s == null ? void 0 : s.encoding) !== null && r !== void 0 ? r : {}, S = c.get("selections"), v = {}, C = { fieldOrDatumDef: h, model: t, channel: e, legendCmpt: c, legendType: g };
84410
- for (const _ of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
84411
- const b = Qae((i = A[_]) !== null && i !== void 0 ? i : {}, t), R = _ in NQ ? NQ[_](b, C) : b;
84412
- R !== void 0 && !Ht(R) && (v[_] = Object.assign(Object.assign(Object.assign({}, S != null && S.length && Ie(h) ? { name: `${pn(h.field)}_legend_${_}` } : {}), S != null && S.length ? { interactive: !!S } : {}), { update: R }));
84407
+ const A = (r = s == null ? void 0 : s.encoding) !== null && r !== void 0 ? r : {}, S = c.get("selections"), v = {}, _ = { fieldOrDatumDef: h, model: t, channel: e, legendCmpt: c, legendType: g };
84408
+ for (const C of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
84409
+ const b = Qae((i = A[C]) !== null && i !== void 0 ? i : {}, t), R = C in NQ ? NQ[C](b, _) : b;
84410
+ R !== void 0 && !Ht(R) && (v[C] = Object.assign(Object.assign(Object.assign({}, S != null && S.length && Ie(h) ? { name: `${pn(h.field)}_legend_${C}` } : {}), S != null && S.length ? { interactive: !!S } : {}), { update: R }));
84413
84411
  }
84414
84412
  return Ht(v) || c.set("encode", v, !!(s != null && s.encoding)), c;
84415
84413
  }
@@ -84680,7 +84678,7 @@ function wQ(t, e, n) {
84680
84678
  const l = Object.assign(Object.assign(Object.assign({ bin: s, field: t.field, as: [r] }, u ? { signal: u } : {}), a ? { extentSignal: a } : {}), i ? { span: i } : {});
84681
84679
  return { key: o, binComponent: l };
84682
84680
  }
84683
- class Vu extends Ut {
84681
+ class Vu extends jt {
84684
84682
  constructor(e, n) {
84685
84683
  super(e), this.bins = n;
84686
84684
  }
@@ -84770,7 +84768,7 @@ function Ret(t, e) {
84770
84768
  r in t ? t[r][s] = /* @__PURE__ */ new Set([...(n = t[r][s]) !== null && n !== void 0 ? n : [], ...i[s]]) : t[r] = { [s]: i[s] };
84771
84769
  }
84772
84770
  }
84773
- class zo extends Ut {
84771
+ class zo extends jt {
84774
84772
  /**
84775
84773
  * @param dimensions string set for dimensions
84776
84774
  * @param measures dictionary mapping field name => dict of aggregation functions and names to use
@@ -84855,7 +84853,7 @@ class zo extends Ut {
84855
84853
  };
84856
84854
  }
84857
84855
  }
84858
- class M2 extends Ut {
84856
+ class M2 extends jt {
84859
84857
  /**
84860
84858
  * @param model The facet model.
84861
84859
  * @param name The name that this facet source will have.
@@ -85061,7 +85059,7 @@ function Fet(t) {
85061
85059
  }
85062
85060
  return e;
85063
85061
  }
85064
- class Wr extends Ut {
85062
+ class Wr extends jt {
85065
85063
  constructor(e, n) {
85066
85064
  super(e), this._parse = n;
85067
85065
  }
@@ -85137,7 +85135,7 @@ class Wr extends Ut {
85137
85135
  }).filter((n) => n !== null);
85138
85136
  }
85139
85137
  }
85140
- class pc extends Ut {
85138
+ class pc extends jt {
85141
85139
  clone() {
85142
85140
  return new pc(null);
85143
85141
  }
@@ -85157,7 +85155,7 @@ class pc extends Ut {
85157
85155
  return { type: "identifier", as: fy };
85158
85156
  }
85159
85157
  }
85160
- class D3 extends Ut {
85158
+ class D3 extends jt {
85161
85159
  constructor(e, n) {
85162
85160
  super(e), this.params = n;
85163
85161
  }
@@ -85176,7 +85174,7 @@ class D3 extends Ut {
85176
85174
  return Object.assign({ type: "graticule" }, this.params === !0 ? {} : this.params);
85177
85175
  }
85178
85176
  }
85179
- class F3 extends Ut {
85177
+ class F3 extends jt {
85180
85178
  constructor(e, n) {
85181
85179
  super(e), this.params = n;
85182
85180
  }
@@ -85197,7 +85195,7 @@ class F3 extends Ut {
85197
85195
  return Object.assign({ type: "sequence" }, this.params);
85198
85196
  }
85199
85197
  }
85200
- class qx extends Ut {
85198
+ class qx extends jt {
85201
85199
  constructor(e) {
85202
85200
  super(null), e ?? (e = { name: "source" });
85203
85201
  let n;
@@ -85466,7 +85464,7 @@ class Het extends Dd {
85466
85464
  }
85467
85465
  }
85468
85466
  }
85469
- class Fd extends Ut {
85467
+ class Fd extends jt {
85470
85468
  constructor(e, n) {
85471
85469
  super(e), this.transform = n;
85472
85470
  }
@@ -85512,7 +85510,7 @@ function zet(t) {
85512
85510
  function Qet(t) {
85513
85511
  return _e(t) && t.every((e) => je(e)) && t.length > 1;
85514
85512
  }
85515
- class vl extends Ut {
85513
+ class vl extends jt {
85516
85514
  constructor(e, n) {
85517
85515
  super(e), this._stack = n;
85518
85516
  }
@@ -85618,7 +85616,7 @@ class vl extends Ut {
85618
85616
  }), e;
85619
85617
  }
85620
85618
  }
85621
- class j2 extends Ut {
85619
+ class j2 extends jt {
85622
85620
  constructor(e, n) {
85623
85621
  super(e), this.transform = n;
85624
85622
  }
@@ -86880,7 +86878,7 @@ var Ntt = function(t, e) {
86880
86878
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
86881
86879
  return n;
86882
86880
  };
86883
- class qN extends Ut {
86881
+ class qN extends jt {
86884
86882
  constructor(e, n) {
86885
86883
  var r, i, s;
86886
86884
  super(e), this.transform = n, this.transform = lt(n);
@@ -86905,7 +86903,7 @@ class qN extends Ut {
86905
86903
  return Object.assign({ type: "kde", field: n }, r);
86906
86904
  }
86907
86905
  }
86908
- class hy extends Ut {
86906
+ class hy extends jt {
86909
86907
  constructor(e, n) {
86910
86908
  super(e), this.filter = n;
86911
86909
  }
@@ -86949,7 +86947,7 @@ class hy extends Ut {
86949
86947
  } : null;
86950
86948
  }
86951
86949
  }
86952
- class HN extends Ut {
86950
+ class HN extends jt {
86953
86951
  constructor(e, n) {
86954
86952
  super(e), this.transform = n, this.transform = lt(n);
86955
86953
  const { flatten: r, as: i = [] } = this.transform;
@@ -86979,7 +86977,7 @@ class HN extends Ut {
86979
86977
  };
86980
86978
  }
86981
86979
  }
86982
- class zN extends Ut {
86980
+ class zN extends jt {
86983
86981
  constructor(e, n) {
86984
86982
  var r, i, s;
86985
86983
  super(e), this.transform = n, this.transform = lt(n);
@@ -87007,7 +87005,7 @@ class zN extends Ut {
87007
87005
  };
87008
87006
  }
87009
87007
  }
87010
- class Ch extends Ut {
87008
+ class Ch extends jt {
87011
87009
  constructor(e, n, r, i) {
87012
87010
  super(e), this.fields = n, this.geojson = r, this.signal = i;
87013
87011
  }
@@ -87057,7 +87055,7 @@ class Ch extends Ut {
87057
87055
  ];
87058
87056
  }
87059
87057
  }
87060
- class py extends Ut {
87058
+ class py extends jt {
87061
87059
  constructor(e, n, r, i) {
87062
87060
  super(e), this.projection = n, this.fields = r, this.as = i;
87063
87061
  }
@@ -87100,7 +87098,7 @@ class py extends Ut {
87100
87098
  };
87101
87099
  }
87102
87100
  }
87103
- class ix extends Ut {
87101
+ class ix extends jt {
87104
87102
  constructor(e, n) {
87105
87103
  super(e), this.transform = n;
87106
87104
  }
@@ -87157,7 +87155,7 @@ var Dtt = function(t, e) {
87157
87155
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
87158
87156
  return n;
87159
87157
  };
87160
- class QN extends Ut {
87158
+ class QN extends jt {
87161
87159
  constructor(e, n) {
87162
87160
  var r, i, s;
87163
87161
  super(e), this.transform = n, this.transform = lt(n);
@@ -87182,7 +87180,7 @@ class QN extends Ut {
87182
87180
  return Object.assign({ type: "loess", x: r, y: n }, i);
87183
87181
  }
87184
87182
  }
87185
- class gy extends Ut {
87183
+ class gy extends jt {
87186
87184
  constructor(e, n, r) {
87187
87185
  super(e), this.transform = n, this.secondary = r;
87188
87186
  }
@@ -87242,7 +87240,7 @@ var Ftt = function(t, e) {
87242
87240
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
87243
87241
  return n;
87244
87242
  };
87245
- class GN extends Ut {
87243
+ class GN extends jt {
87246
87244
  constructor(e, n) {
87247
87245
  var r, i, s;
87248
87246
  super(e), this.transform = n, this.transform = lt(n);
@@ -87276,7 +87274,7 @@ var wtt = function(t, e) {
87276
87274
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
87277
87275
  return n;
87278
87276
  };
87279
- class WN extends Ut {
87277
+ class WN extends jt {
87280
87278
  constructor(e, n) {
87281
87279
  var r, i, s;
87282
87280
  super(e), this.transform = n, this.transform = lt(n);
@@ -87301,7 +87299,7 @@ class WN extends Ut {
87301
87299
  return Object.assign({ type: "regression", x: r, y: n }, i);
87302
87300
  }
87303
87301
  }
87304
- class VN extends Ut {
87302
+ class VN extends jt {
87305
87303
  constructor(e, n) {
87306
87304
  super(e), this.transform = n;
87307
87305
  }
@@ -87326,7 +87324,7 @@ class VN extends Ut {
87326
87324
  return Object.assign(Object.assign(Object.assign({ type: "pivot", field: e, value: n }, i !== void 0 ? { limit: i } : {}), s !== void 0 ? { op: s } : {}), r !== void 0 ? { groupby: r } : {});
87327
87325
  }
87328
87326
  }
87329
- class YN extends Ut {
87327
+ class YN extends jt {
87330
87328
  constructor(e, n) {
87331
87329
  super(e), this.transform = n;
87332
87330
  }
@@ -87869,18 +87867,18 @@ function KN(t) {
87869
87867
  R && (f = R, Q7(t) && (f = new pc(f))), f = (u = ix.makeFromEncoding(f, t)) !== null && u !== void 0 ? u : f, f = (a = vl.makeFromEncoding(f, t)) !== null && a !== void 0 ? a : f;
87870
87868
  }
87871
87869
  Hn(t) && (f = (l = hy.make(f, t)) !== null && l !== void 0 ? l : f);
87872
- const C = t.getDataName(Vt.Main), _ = new Ni(f, C, Vt.Main, h);
87873
- x[C] = _, f = _, Hn(t) && _Ze(t, _);
87870
+ const _ = t.getDataName(Vt.Main), C = new Ni(f, _, Vt.Main, h);
87871
+ x[_] = C, f = C, Hn(t) && _Ze(t, C);
87874
87872
  let b = null;
87875
87873
  if (Qo(t)) {
87876
87874
  const R = t.getName("facet");
87877
- f = (c = qtt(f, t.facet)) !== null && c !== void 0 ? c : f, b = new M2(f, t, R, _.getSource()), x[R] = b;
87875
+ f = (c = qtt(f, t.facet)) !== null && c !== void 0 ? c : f, b = new M2(f, t, R, C.getSource()), x[R] = b;
87878
87876
  }
87879
87877
  return Object.assign(Object.assign({}, t.component.data), {
87880
87878
  outputNodes: x,
87881
87879
  outputNodeRefCounts: h,
87882
87880
  raw: v,
87883
- main: _,
87881
+ main: C,
87884
87882
  facetRoot: b,
87885
87883
  ancestorParse: g
87886
87884
  });
@@ -88118,13 +88116,13 @@ function nnt(t, e) {
88118
88116
  if (S && v)
88119
88117
  o.set(E, A, v);
88120
88118
  else {
88121
- const { configValue: C = void 0, configFrom: _ = void 0 } = rQ(E) && E !== "values" ? V5(E, l.style, s.style, x) : {}, b = C !== void 0;
88119
+ const { configValue: _ = void 0, configFrom: C = void 0 } = rQ(E) && E !== "values" ? V5(E, l.style, s.style, x) : {}, b = _ !== void 0;
88122
88120
  S && !b ? o.set(E, A, v) : (
88123
88121
  // Cases need implicit values
88124
88122
  // 1. Axis config that aren't available in Vega
88125
- (_ !== "vgAxisConfig" || // 2. Certain properties are always included (see `propsToAlwaysIncludeConfig`'s declaration for more details)
88123
+ (C !== "vgAxisConfig" || // 2. Certain properties are always included (see `propsToAlwaysIncludeConfig`'s declaration for more details)
88126
88124
  tnt.has(E) && b || // 3. Conditional axis values and signals
88127
- O3(C) || Ye(C)) && o.set(E, C, !1)
88125
+ O3(_) || Ye(_)) && o.set(E, _, !1)
88128
88126
  );
88129
88127
  }
88130
88128
  }
@@ -88132,8 +88130,8 @@ function nnt(t, e) {
88132
88130
  var S;
88133
88131
  if (!o.hasAxisPart(A))
88134
88132
  return E;
88135
- const v = Qae((S = g[A]) !== null && S !== void 0 ? S : {}, e), C = A === "labels" ? Vtt(e, t, v) : v;
88136
- return C !== void 0 && !Ht(C) && (E[A] = { update: C }), E;
88133
+ const v = Qae((S = g[A]) !== null && S !== void 0 ? S : {}, e), _ = A === "labels" ? Vtt(e, t, v) : v;
88134
+ return _ !== void 0 && !Ht(_) && (E[A] = { update: _ }), E;
88137
88135
  }, {});
88138
88136
  return Ht(y) || o.set("encode", y, !!s.encoding || s.labelAngle !== void 0), o;
88139
88137
  }
@@ -89015,7 +89013,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89015
89013
  A[S] = S - 34;
89016
89014
  var v = [];
89017
89015
  v[5] = v[63] = '"$"#,##0_);\\("$"#,##0\\)', v[6] = v[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)', v[7] = v[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)', v[8] = v[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', v[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', v[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', v[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', v[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';
89018
- function C(D, $, j) {
89016
+ function _(D, $, j) {
89019
89017
  for (var Q = D < 0 ? -1 : 1, I = D * Q, H = 0, P = 1, J = 0, ce = 1, ue = 0, Z = 0, ae = Math.floor(I); ue < $ && (ae = Math.floor(I), J = ae * P + H, Z = ae * ue + ce, !(I - ae < 5e-8)); )
89020
89018
  I = 1 / (I - ae), H = P, P = J, ce = ue, ue = Z;
89021
89019
  if (Z > $ && (ue > $ ? (Z = ce, J = H) : (Z = ue, J = P)), !j)
@@ -89023,7 +89021,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89023
89021
  var qe = Math.floor(Q * J / Z);
89024
89022
  return [qe, Q * J - qe * Z, Z];
89025
89023
  }
89026
- function _(D, $, j) {
89024
+ function C(D, $, j) {
89027
89025
  if (D > 2958465 || D < 0)
89028
89026
  return null;
89029
89027
  var Q = D | 0, I = Math.floor(86400 * (D - Q)), H = 0, P = [], J = { D: Q, T: I, u: 86400 * (D - Q) - I, y: 0, m: 0, d: 0, H: 0, M: 0, S: 0, q: 0 };
@@ -89038,7 +89036,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89038
89036
  }
89039
89037
  return J.y = P[0], J.m = P[1], J.d = P[2], J.S = I % 60, I = Math.floor(I / 60), J.M = I % 60, I = Math.floor(I / 60), J.H = I, J.q = H, J;
89040
89038
  }
89041
- i.parse_date_code = _;
89039
+ i.parse_date_code = C;
89042
89040
  var b = new Date(1899, 11, 31, 0, 0, 0), R = b.getTime(), O = new Date(1900, 2, 1, 0, 0, 0);
89043
89041
  function L(D, $) {
89044
89042
  var j = D.getTime();
@@ -89321,9 +89319,9 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89321
89319
  return K = Oe(Se, "##########", le), "(" + K.substr(0, 3) + ") " + K.substr(3, 3) + "-" + K.substr(6);
89322
89320
  var rt = "";
89323
89321
  if (fe = re.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
89324
- return Le = Math.min(fe[4].length, 7), Ge = C(ot, Math.pow(10, Le) - 1, !1), K = "" + wt, rt = X("n", fe[1], Ge[1]), rt.charAt(rt.length - 1) == " " && (rt = rt.substr(0, rt.length - 1) + "0"), K += rt + fe[2] + "/" + fe[3], rt = l(Ge[2], Le), rt.length < fe[4].length && (rt = ae(fe[4].substr(fe[4].length - rt.length)) + rt), K += rt, K;
89322
+ return Le = Math.min(fe[4].length, 7), Ge = _(ot, Math.pow(10, Le) - 1, !1), K = "" + wt, rt = X("n", fe[1], Ge[1]), rt.charAt(rt.length - 1) == " " && (rt = rt.substr(0, rt.length - 1) + "0"), K += rt + fe[2] + "/" + fe[3], rt = l(Ge[2], Le), rt.length < fe[4].length && (rt = ae(fe[4].substr(fe[4].length - rt.length)) + rt), K += rt, K;
89325
89323
  if (fe = re.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
89326
- return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge = C(ot, Math.pow(10, Le) - 1, !0), wt + (Ge[0] || (Ge[1] ? "" : "0")) + " " + (Ge[1] ? a(Ge[1], Le) + fe[2] + "/" + fe[3] + l(Ge[2], Le) : o(" ", 2 * Le + 1 + fe[2].length + fe[3].length));
89324
+ return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge = _(ot, Math.pow(10, Le) - 1, !0), wt + (Ge[0] || (Ge[1] ? "" : "0")) + " " + (Ge[1] ? a(Ge[1], Le) + fe[2] + "/" + fe[3] + l(Ge[2], Le) : o(" ", 2 * Le + 1 + fe[2].length + fe[3].length));
89327
89325
  if (fe = re.match(/^[#0?]+$/))
89328
89326
  return K = h(le, 0), re.length <= K.length ? K : ae(re.substr(0, re.length - K.length)) + K;
89329
89327
  if (fe = re.match(/^([#0?]+)\.([#0]+)$/)) {
@@ -89422,9 +89420,9 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89422
89420
  return K = Be(Se, "##########", le), "(" + K.substr(0, 3) + ") " + K.substr(3, 3) + "-" + K.substr(6);
89423
89421
  var rt = "";
89424
89422
  if (fe = re.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
89425
- return Le = Math.min(fe[4].length, 7), Ge = C(ot, Math.pow(10, Le) - 1, !1), K = "" + wt, rt = X("n", fe[1], Ge[1]), rt.charAt(rt.length - 1) == " " && (rt = rt.substr(0, rt.length - 1) + "0"), K += rt + fe[2] + "/" + fe[3], rt = l(Ge[2], Le), rt.length < fe[4].length && (rt = ae(fe[4].substr(fe[4].length - rt.length)) + rt), K += rt, K;
89423
+ return Le = Math.min(fe[4].length, 7), Ge = _(ot, Math.pow(10, Le) - 1, !1), K = "" + wt, rt = X("n", fe[1], Ge[1]), rt.charAt(rt.length - 1) == " " && (rt = rt.substr(0, rt.length - 1) + "0"), K += rt + fe[2] + "/" + fe[3], rt = l(Ge[2], Le), rt.length < fe[4].length && (rt = ae(fe[4].substr(fe[4].length - rt.length)) + rt), K += rt, K;
89426
89424
  if (fe = re.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
89427
- return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge = C(ot, Math.pow(10, Le) - 1, !0), wt + (Ge[0] || (Ge[1] ? "" : "0")) + " " + (Ge[1] ? a(Ge[1], Le) + fe[2] + "/" + fe[3] + l(Ge[2], Le) : o(" ", 2 * Le + 1 + fe[2].length + fe[3].length));
89425
+ return Le = Math.min(Math.max(fe[1].length, fe[4].length), 7), Ge = _(ot, Math.pow(10, Le) - 1, !0), wt + (Ge[0] || (Ge[1] ? "" : "0")) + " " + (Ge[1] ? a(Ge[1], Le) + fe[2] + "/" + fe[3] + l(Ge[2], Le) : o(" ", 2 * Le + 1 + fe[2].length + fe[3].length));
89428
89426
  if (fe = re.match(/^[#0?]+$/))
89429
89427
  return K = "" + le, re.length <= K.length ? K : ae(re.substr(0, re.length - K.length)) + K;
89430
89428
  if (fe = re.match(/^([#0]+)\.([#0]+)$/)) {
@@ -89595,7 +89593,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89595
89593
  case "B":
89596
89594
  case "b":
89597
89595
  if (D.charAt(P + 1) === "1" || D.charAt(P + 1) === "2") {
89598
- if (ue == null && (ue = _($, j, D.charAt(P + 1) === "2"), ue == null))
89596
+ if (ue == null && (ue = C($, j, D.charAt(P + 1) === "2"), ue == null))
89599
89597
  return "";
89600
89598
  I[I.length] = { t: "X", v: D.substr(P, 2) }, ce = J, P += 2;
89601
89599
  break;
@@ -89614,7 +89612,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89614
89612
  case "s":
89615
89613
  case "e":
89616
89614
  case "g":
89617
- if ($ < 0 || ue == null && (ue = _($, j), ue == null))
89615
+ if ($ < 0 || ue == null && (ue = C($, j), ue == null))
89618
89616
  return "";
89619
89617
  for (H = J; ++P < D.length && D.charAt(P).toLowerCase() === J; )
89620
89618
  H += J;
@@ -89624,7 +89622,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89624
89622
  case "a":
89625
89623
  case "上":
89626
89624
  var Ce = { t: J, v: J };
89627
- if (ue == null && (ue = _($, j)), D.substr(P, 3).toUpperCase() === "A/P" ? (ue != null && (Ce.v = ue.H >= 12 ? "P" : "A"), Ce.t = "T", qe = "h", P += 3) : D.substr(P, 5).toUpperCase() === "AM/PM" ? (ue != null && (Ce.v = ue.H >= 12 ? "PM" : "AM"), Ce.t = "T", P += 5, qe = "h") : D.substr(P, 5).toUpperCase() === "上午/下午" ? (ue != null && (Ce.v = ue.H >= 12 ? "下午" : "上午"), Ce.t = "T", P += 5, qe = "h") : (Ce.t = "t", ++P), ue == null && Ce.t === "T")
89625
+ if (ue == null && (ue = C($, j)), D.substr(P, 3).toUpperCase() === "A/P" ? (ue != null && (Ce.v = ue.H >= 12 ? "P" : "A"), Ce.t = "T", qe = "h", P += 3) : D.substr(P, 5).toUpperCase() === "AM/PM" ? (ue != null && (Ce.v = ue.H >= 12 ? "PM" : "AM"), Ce.t = "T", P += 5, qe = "h") : D.substr(P, 5).toUpperCase() === "上午/下午" ? (ue != null && (Ce.v = ue.H >= 12 ? "下午" : "上午"), Ce.t = "T", P += 5, qe = "h") : (Ce.t = "t", ++P), ue == null && Ce.t === "T")
89628
89626
  return "";
89629
89627
  I[I.length] = Ce, ce = J;
89630
89628
  break;
@@ -89634,7 +89632,7 @@ var OS = /* @__PURE__ */ ((t) => (t.Dollars = "usd", t.Euros = "euro", t.Pounds
89634
89632
  if (H.slice(-1) !== "]")
89635
89633
  throw 'unterminated "[" block: |' + H + "|";
89636
89634
  if (H.match(be)) {
89637
- if (ue == null && (ue = _($, j), ue == null))
89635
+ if (ue == null && (ue = C($, j), ue == null))
89638
89636
  return "";
89639
89637
  I[I.length] = { t: "Z", v: H.toLowerCase() }, ce = H.charAt(1);
89640
89638
  } else