@orbcharts/core 3.0.0-alpha.51 → 3.0.0-alpha.52

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.
@@ -449,11 +449,11 @@ function ra(t, e, n, r, i, a) {
449
449
  (u = e[o]) && (i[o] = u);
450
450
  }
451
451
  function ia(t, e, n, r, i, a, o) {
452
- var u, l, s = /* @__PURE__ */ new Map(), f = e.length, c = a.length, h = new Array(f), d;
452
+ var u, l, s = /* @__PURE__ */ new Map(), f = e.length, c = a.length, h = new Array(f), p;
453
453
  for (u = 0; u < f; ++u)
454
- (l = e[u]) && (h[u] = d = o.call(l, l.__data__, u, e) + "", s.has(d) ? i[u] = l : s.set(d, l));
454
+ (l = e[u]) && (h[u] = p = o.call(l, l.__data__, u, e) + "", s.has(p) ? i[u] = l : s.set(p, l));
455
455
  for (u = 0; u < c; ++u)
456
- d = o.call(t, a[u], u, a) + "", (l = s.get(d)) ? (r[u] = l, l.__data__ = a[u], s.delete(d)) : n[u] = new Zt(t, a[u]);
456
+ p = o.call(t, a[u], u, a) + "", (l = s.get(p)) ? (r[u] = l, l.__data__ = a[u], s.delete(p)) : n[u] = new Zt(t, a[u]);
457
457
  for (u = 0; u < f; ++u)
458
458
  (l = e[u]) && s.get(h[u]) === l && (i[u] = l);
459
459
  }
@@ -465,11 +465,11 @@ function oa(t, e) {
465
465
  var n = e ? ia : ra, r = this._parents, i = this._groups;
466
466
  typeof t != "function" && (t = na(t));
467
467
  for (var a = i.length, o = new Array(a), u = new Array(a), l = new Array(a), s = 0; s < a; ++s) {
468
- var f = r[s], c = i[s], h = c.length, d = ua(t.call(f, f && f.__data__, s, r)), p = d.length, m = u[s] = new Array(p), b = o[s] = new Array(p), w = l[s] = new Array(h);
469
- n(f, c, m, b, w, d, e);
470
- for (var x = 0, _ = 0, $, A; x < p; ++x)
468
+ var f = r[s], c = i[s], h = c.length, p = ua(t.call(f, f && f.__data__, s, r)), d = p.length, m = u[s] = new Array(d), b = o[s] = new Array(d), w = l[s] = new Array(h);
469
+ n(f, c, m, b, w, p, e);
470
+ for (var x = 0, _ = 0, $, A; x < d; ++x)
471
471
  if ($ = m[x]) {
472
- for (x >= _ && (_ = x + 1); !(A = b[_]) && ++_ < p; ) ;
472
+ for (x >= _ && (_ = x + 1); !(A = b[_]) && ++_ < d; ) ;
473
473
  $._next = A || null;
474
474
  }
475
475
  }
@@ -487,8 +487,8 @@ function la(t, e, n) {
487
487
  }
488
488
  function ca(t) {
489
489
  for (var e = t.selection ? t.selection() : t, n = this._groups, r = e._groups, i = n.length, a = r.length, o = Math.min(i, a), u = new Array(i), l = 0; l < o; ++l)
490
- for (var s = n[l], f = r[l], c = s.length, h = u[l] = new Array(c), d, p = 0; p < c; ++p)
491
- (d = s[p] || f[p]) && (h[p] = d);
490
+ for (var s = n[l], f = r[l], c = s.length, h = u[l] = new Array(c), p, d = 0; d < c; ++d)
491
+ (p = s[d] || f[d]) && (h[d] = p);
492
492
  for (; l < i; ++l)
493
493
  u[l] = n[l];
494
494
  return new z(u, this._parents);
@@ -500,7 +500,7 @@ function fa() {
500
500
  return this;
501
501
  }
502
502
  function ha(t) {
503
- t || (t = da);
503
+ t || (t = pa);
504
504
  function e(c, h) {
505
505
  return c && h ? t(c.__data__, h.__data__) : !c - !h;
506
506
  }
@@ -511,10 +511,10 @@ function ha(t) {
511
511
  }
512
512
  return new z(i, this._parents).order();
513
513
  }
514
- function da(t, e) {
514
+ function pa(t, e) {
515
515
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
516
516
  }
517
- function pa() {
517
+ function da() {
518
518
  var t = arguments[0];
519
519
  return arguments[0] = this, t.apply(null, arguments), this;
520
520
  }
@@ -856,7 +856,7 @@ z.prototype = Nt.prototype = {
856
856
  selection: go,
857
857
  order: fa,
858
858
  sort: ha,
859
- call: pa,
859
+ call: da,
860
860
  nodes: ma,
861
861
  node: ga,
862
862
  size: ya,
@@ -1054,8 +1054,8 @@ ze(kt, ft, {
1054
1054
  formatHex: hn,
1055
1055
  formatHex8: Do,
1056
1056
  formatHsl: Ao,
1057
- formatRgb: dn,
1058
- toString: dn
1057
+ formatRgb: pn,
1058
+ toString: pn
1059
1059
  });
1060
1060
  function hn() {
1061
1061
  return this.rgb().formatHex();
@@ -1064,16 +1064,16 @@ function Do() {
1064
1064
  return this.rgb().formatHex8();
1065
1065
  }
1066
1066
  function Ao() {
1067
- return dr(this).formatHsl();
1067
+ return pr(this).formatHsl();
1068
1068
  }
1069
- function dn() {
1069
+ function pn() {
1070
1070
  return this.rgb().formatRgb();
1071
1071
  }
1072
1072
  function ft(t) {
1073
1073
  var e, n;
1074
- return t = (t + "").trim().toLowerCase(), (e = yo.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? pn(e) : n === 3 ? new G(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? zt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? zt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = vo.exec(t)) ? new G(e[1], e[2], e[3], 1) : (e = bo.exec(t)) ? new G(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = wo.exec(t)) ? zt(e[1], e[2], e[3], e[4]) : (e = xo.exec(t)) ? zt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = _o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, 1) : (e = $o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, e[4]) : fn.hasOwnProperty(t) ? pn(fn[t]) : t === "transparent" ? new G(NaN, NaN, NaN, 0) : null;
1074
+ return t = (t + "").trim().toLowerCase(), (e = yo.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? dn(e) : n === 3 ? new G(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? zt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? zt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = vo.exec(t)) ? new G(e[1], e[2], e[3], 1) : (e = bo.exec(t)) ? new G(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = wo.exec(t)) ? zt(e[1], e[2], e[3], e[4]) : (e = xo.exec(t)) ? zt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = _o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, 1) : (e = $o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, e[4]) : fn.hasOwnProperty(t) ? dn(fn[t]) : t === "transparent" ? new G(NaN, NaN, NaN, 0) : null;
1075
1075
  }
1076
- function pn(t) {
1076
+ function dn(t) {
1077
1077
  return new G(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
1078
1078
  }
1079
1079
  function zt(t, e, n, r) {
@@ -1133,7 +1133,7 @@ function st(t) {
1133
1133
  function yn(t, e, n, r) {
1134
1134
  return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new X(t, e, n, r);
1135
1135
  }
1136
- function dr(t) {
1136
+ function pr(t) {
1137
1137
  if (t instanceof X) return new X(t.h, t.s, t.l, t.opacity);
1138
1138
  if (t instanceof kt || (t = ft(t)), !t) return new X();
1139
1139
  if (t instanceof X) return t;
@@ -1142,7 +1142,7 @@ function dr(t) {
1142
1142
  return u ? (e === a ? o = (n - r) / u + (n < r) * 6 : n === a ? o = (r - e) / u + 2 : o = (e - n) / u + 4, u /= l < 0.5 ? a + i : 2 - a - i, o *= 60) : u = l > 0 && l < 1 ? 0 : o, new X(o, u, l, t.opacity);
1143
1143
  }
1144
1144
  function Co(t, e, n, r) {
1145
- return arguments.length === 1 ? dr(t) : new X(t, e, n, r ?? 1);
1145
+ return arguments.length === 1 ? pr(t) : new X(t, e, n, r ?? 1);
1146
1146
  }
1147
1147
  function X(t, e, n, r) {
1148
1148
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
@@ -1195,18 +1195,18 @@ function Fo(t, e, n) {
1195
1195
  };
1196
1196
  }
1197
1197
  function Eo(t) {
1198
- return (t = +t) == 1 ? pr : function(e, n) {
1198
+ return (t = +t) == 1 ? dr : function(e, n) {
1199
1199
  return n - e ? Fo(e, n, t) : Ue(isNaN(e) ? n : e);
1200
1200
  };
1201
1201
  }
1202
- function pr(t, e) {
1202
+ function dr(t, e) {
1203
1203
  var n = e - t;
1204
1204
  return n ? Po(t, n) : Ue(isNaN(t) ? e : t);
1205
1205
  }
1206
1206
  const ee = function t(e) {
1207
1207
  var n = Eo(e);
1208
1208
  function r(i, a) {
1209
- var o = n((i = Ae(i)).r, (a = Ae(a)).r), u = n(i.g, a.g), l = n(i.b, a.b), s = pr(i.opacity, a.opacity);
1209
+ var o = n((i = Ae(i)).r, (a = Ae(a)).r), u = n(i.g, a.g), l = n(i.b, a.b), s = dr(i.opacity, a.opacity);
1210
1210
  return function(f) {
1211
1211
  return i.r = o(f), i.g = u(f), i.b = l(f), i.opacity = s(f), i + "";
1212
1212
  };
@@ -1314,11 +1314,11 @@ function yr(t, e, n, r) {
1314
1314
  function i(s) {
1315
1315
  return s.length ? s.pop() + " " : "";
1316
1316
  }
1317
- function a(s, f, c, h, d, p) {
1317
+ function a(s, f, c, h, p, d) {
1318
1318
  if (s !== c || f !== h) {
1319
- var m = d.push("translate(", null, e, null, n);
1320
- p.push({ i: m - 4, x: H(s, c) }, { i: m - 2, x: H(f, h) });
1321
- } else (c || h) && d.push("translate(" + c + e + h + n);
1319
+ var m = p.push("translate(", null, e, null, n);
1320
+ d.push({ i: m - 4, x: H(s, c) }, { i: m - 2, x: H(f, h) });
1321
+ } else (c || h) && p.push("translate(" + c + e + h + n);
1322
1322
  }
1323
1323
  function o(s, f, c, h) {
1324
1324
  s !== f ? (s - f > 180 ? f += 360 : f - s > 180 && (s += 360), h.push({ i: c.push(i(c) + "rotate(", null, r) - 2, x: H(s, f) })) : f && c.push(i(c) + "rotate(" + f + r);
@@ -1326,16 +1326,16 @@ function yr(t, e, n, r) {
1326
1326
  function u(s, f, c, h) {
1327
1327
  s !== f ? h.push({ i: c.push(i(c) + "skewX(", null, r) - 2, x: H(s, f) }) : f && c.push(i(c) + "skewX(" + f + r);
1328
1328
  }
1329
- function l(s, f, c, h, d, p) {
1329
+ function l(s, f, c, h, p, d) {
1330
1330
  if (s !== c || f !== h) {
1331
- var m = d.push(i(d) + "scale(", null, ",", null, ")");
1332
- p.push({ i: m - 4, x: H(s, c) }, { i: m - 2, x: H(f, h) });
1333
- } else (c !== 1 || h !== 1) && d.push(i(d) + "scale(" + c + "," + h + ")");
1331
+ var m = p.push(i(p) + "scale(", null, ",", null, ")");
1332
+ d.push({ i: m - 4, x: H(s, c) }, { i: m - 2, x: H(f, h) });
1333
+ } else (c !== 1 || h !== 1) && p.push(i(p) + "scale(" + c + "," + h + ")");
1334
1334
  }
1335
1335
  return function(s, f) {
1336
1336
  var c = [], h = [];
1337
- return s = t(s), f = t(f), a(s.translateX, s.translateY, f.translateX, f.translateY, c, h), o(s.rotate, f.rotate, c, h), u(s.skewX, f.skewX, c, h), l(s.scaleX, s.scaleY, f.scaleX, f.scaleY, c, h), s = f = null, function(d) {
1338
- for (var p = -1, m = h.length, b; ++p < m; ) c[(b = h[p]).i] = b.x(d);
1337
+ return s = t(s), f = t(f), a(s.translateX, s.translateY, f.translateX, f.translateY, c, h), o(s.rotate, f.rotate, c, h), u(s.skewX, f.skewX, c, h), l(s.scaleX, s.scaleY, f.scaleX, f.scaleY, c, h), s = f = null, function(p) {
1338
+ for (var d = -1, m = h.length, b; ++d < m; ) c[(b = h[d]).i] = b.x(p);
1339
1339
  return c.join("");
1340
1340
  };
1341
1341
  };
@@ -1445,18 +1445,18 @@ function Jo(t, e, n) {
1445
1445
  n.state = _n, n.timer.restart(o, n.delay, n.time), n.delay <= s && o(s - n.delay);
1446
1446
  }
1447
1447
  function o(s) {
1448
- var f, c, h, d;
1448
+ var f, c, h, p;
1449
1449
  if (n.state !== _n) return l();
1450
1450
  for (f in r)
1451
- if (d = r[f], d.name === n.name) {
1452
- if (d.state === Wt) return xn(o);
1453
- d.state === $n ? (d.state = jt, d.timer.stop(), d.on.call("interrupt", t, t.__data__, d.index, d.group), delete r[f]) : +f < e && (d.state = jt, d.timer.stop(), d.on.call("cancel", t, t.__data__, d.index, d.group), delete r[f]);
1451
+ if (p = r[f], p.name === n.name) {
1452
+ if (p.state === Wt) return xn(o);
1453
+ p.state === $n ? (p.state = jt, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete r[f]) : +f < e && (p.state = jt, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete r[f]);
1454
1454
  }
1455
1455
  if (xn(function() {
1456
1456
  n.state === Wt && (n.state = $n, n.timer.restart(u, n.delay, n.time), u(s));
1457
1457
  }), n.state = Pe, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Pe) {
1458
1458
  for (n.state = Wt, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1459
- (d = n.tween[f].value.call(t, t.__data__, n.index, n.group)) && (i[++c] = d);
1459
+ (p = n.tween[f].value.call(t, t.__data__, n.index, n.group)) && (i[++c] = p);
1460
1460
  i.length = c + 1;
1461
1461
  }
1462
1462
  }
@@ -1613,7 +1613,7 @@ function hu(t, e) {
1613
1613
  }
1614
1614
  return i._value = e, i;
1615
1615
  }
1616
- function du(t, e) {
1616
+ function pu(t, e) {
1617
1617
  var n = "attr." + t;
1618
1618
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1619
1619
  if (e == null) return this.tween(n, null);
@@ -1621,7 +1621,7 @@ function du(t, e) {
1621
1621
  var r = le(t);
1622
1622
  return this.tween(n, (r.local ? fu : hu)(r, e));
1623
1623
  }
1624
- function pu(t, e) {
1624
+ function du(t, e) {
1625
1625
  return function() {
1626
1626
  qe(this, t).delay = +e.apply(this, arguments);
1627
1627
  };
@@ -1633,7 +1633,7 @@ function mu(t, e) {
1633
1633
  }
1634
1634
  function gu(t) {
1635
1635
  var e = this._id;
1636
- return arguments.length ? this.each((typeof t == "function" ? pu : mu)(e, t)) : q(this.node(), e).delay;
1636
+ return arguments.length ? this.each((typeof t == "function" ? du : mu)(e, t)) : q(this.node(), e).delay;
1637
1637
  }
1638
1638
  function yu(t, e) {
1639
1639
  return function() {
@@ -1680,8 +1680,8 @@ function Du(t) {
1680
1680
  function Au(t) {
1681
1681
  if (t._id !== this._id) throw new Error();
1682
1682
  for (var e = this._groups, n = t._groups, r = e.length, i = n.length, a = Math.min(r, i), o = new Array(r), u = 0; u < a; ++u)
1683
- for (var l = e[u], s = n[u], f = l.length, c = o[u] = new Array(f), h, d = 0; d < f; ++d)
1684
- (h = l[d] || s[d]) && (c[d] = h);
1683
+ for (var l = e[u], s = n[u], f = l.length, c = o[u] = new Array(f), h, p = 0; p < f; ++p)
1684
+ (h = l[p] || s[p]) && (c[p] = h);
1685
1685
  for (; u < r; ++u)
1686
1686
  o[u] = e[u];
1687
1687
  return new nt(o, this._parents, this._name, this._id);
@@ -1727,8 +1727,8 @@ function Lu(t) {
1727
1727
  for (var r = this._groups, i = r.length, a = [], o = [], u = 0; u < i; ++u)
1728
1728
  for (var l = r[u], s = l.length, f, c = 0; c < s; ++c)
1729
1729
  if (f = l[c]) {
1730
- for (var h = t.call(f, f.__data__, c, l), d, p = q(f, n), m = 0, b = h.length; m < b; ++m)
1731
- (d = h[m]) && fe(d, e, n, m, h, p);
1730
+ for (var h = t.call(f, f.__data__, c, l), p, d = q(f, n), m = 0, b = h.length; m < b; ++m)
1731
+ (p = h[m]) && fe(p, e, n, m, h, d);
1732
1732
  a.push(h), o.push(f);
1733
1733
  }
1734
1734
  return new nt(a, o, e, n);
@@ -1880,7 +1880,7 @@ nt.prototype = {
1880
1880
  each: Q.each,
1881
1881
  on: Cu,
1882
1882
  attr: su,
1883
- attrTween: du,
1883
+ attrTween: pu,
1884
1884
  style: Gu,
1885
1885
  styleTween: Uu,
1886
1886
  text: qu,
@@ -2024,8 +2024,8 @@ function ss(t) {
2024
2024
  var e = t.grouping === void 0 || t.thousands === void 0 ? Sn : rs(Mn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? Sn : is(Mn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + "";
2025
2025
  function s(c) {
2026
2026
  c = oe(c);
2027
- var h = c.fill, d = c.align, p = c.sign, m = c.symbol, b = c.zero, w = c.width, x = c.comma, _ = c.precision, $ = c.trim, A = c.type;
2028
- A === "n" ? (x = !0, A = "g") : An[A] || (_ === void 0 && (_ = 12), $ = !0, A = "g"), (b || h === "0" && d === "=") && (b = !0, h = "0", d = "=");
2027
+ var h = c.fill, p = c.align, d = c.sign, m = c.symbol, b = c.zero, w = c.width, x = c.comma, _ = c.precision, $ = c.trim, A = c.type;
2028
+ A === "n" ? (x = !0, A = "g") : An[A] || (_ === void 0 && (_ = 12), $ = !0, A = "g"), (b || h === "0" && p === "=") && (b = !0, h = "0", p = "=");
2029
2029
  var E = m === "$" ? n : m === "#" && /[boxX]/.test(A) ? "0" + A.toLowerCase() : "", y = m === "$" ? r : /[%p]/.test(A) ? o : "", S = An[A], C = /[defgprs%]/.test(A);
2030
2030
  _ = _ === void 0 ? 6 : /[gprs]/.test(A) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
2031
2031
  function rt(v) {
@@ -2035,7 +2035,7 @@ function ss(t) {
2035
2035
  else {
2036
2036
  v = +v;
2037
2037
  var Y = v < 0 || 1 / v < 0;
2038
- if (v = isNaN(v) ? l : S(Math.abs(v), _), $ && (v = os(v)), Y && +v == 0 && p !== "+" && (Y = !1), I = (Y ? p === "(" ? p : u : p === "-" || p === "(" ? "" : p) + I, O = (A === "s" ? Cn[8 + Ar / 3] : "") + O + (Y && p === "(" ? ")" : ""), C) {
2038
+ if (v = isNaN(v) ? l : S(Math.abs(v), _), $ && (v = os(v)), Y && +v == 0 && d !== "+" && (Y = !1), I = (Y ? d === "(" ? d : u : d === "-" || d === "(" ? "" : d) + I, O = (A === "s" ? Cn[8 + Ar / 3] : "") + O + (Y && d === "(" ? ")" : ""), C) {
2039
2039
  for (V = -1, K = v.length; ++V < K; )
2040
2040
  if (ut = v.charCodeAt(V), 48 > ut || ut > 57) {
2041
2041
  O = (ut === 46 ? i + v.slice(V + 1) : v.slice(V)) + O, v = v.slice(0, V);
@@ -2045,7 +2045,7 @@ function ss(t) {
2045
2045
  }
2046
2046
  x && !b && (v = e(v, 1 / 0));
2047
2047
  var Gt = I.length + v.length + O.length, Z = Gt < w ? new Array(w - Gt + 1).join(h) : "";
2048
- switch (x && b && (v = e(Z + v, Z.length ? w - O.length : 1 / 0), Z = ""), d) {
2048
+ switch (x && b && (v = e(Z + v, Z.length ? w - O.length : 1 / 0), Z = ""), p) {
2049
2049
  case "<":
2050
2050
  v = I + v + O + Z;
2051
2051
  break;
@@ -2066,9 +2066,9 @@ function ss(t) {
2066
2066
  }, rt;
2067
2067
  }
2068
2068
  function f(c, h) {
2069
- var d = s((c = oe(c), c.type = "f", c)), p = Math.max(-8, Math.min(8, Math.floor(bt(h) / 3))) * 3, m = Math.pow(10, -p), b = Cn[8 + p / 3];
2069
+ var p = s((c = oe(c), c.type = "f", c)), d = Math.max(-8, Math.min(8, Math.floor(bt(h) / 3))) * 3, m = Math.pow(10, -d), b = Cn[8 + d / 3];
2070
2070
  return function(w) {
2071
- return d(m * w) + b;
2071
+ return p(m * w) + b;
2072
2072
  };
2073
2073
  }
2074
2074
  return {
@@ -2136,12 +2136,12 @@ function Cr() {
2136
2136
  var t = Mr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, u = !1, l = 0, s = 0, f = 0.5;
2137
2137
  delete t.unknown;
2138
2138
  function c() {
2139
- var h = e().length, d = i < r, p = d ? i : r, m = d ? r : i;
2140
- a = (m - p) / Math.max(1, h - l + s * 2), u && (a = Math.floor(a)), p += (m - p - a * (h - l)) * f, o = a * (1 - l), u && (p = Math.round(p), o = Math.round(o));
2139
+ var h = e().length, p = i < r, d = p ? i : r, m = p ? r : i;
2140
+ a = (m - d) / Math.max(1, h - l + s * 2), u && (a = Math.floor(a)), d += (m - d - a * (h - l)) * f, o = a * (1 - l), u && (d = Math.round(d), o = Math.round(o));
2141
2141
  var b = Oi(h).map(function(w) {
2142
- return p + a * w;
2142
+ return d + a * w;
2143
2143
  });
2144
- return n(d ? b.reverse() : b);
2144
+ return n(p ? b.reverse() : b);
2145
2145
  }
2146
2146
  return t.domain = function(h) {
2147
2147
  return arguments.length ? (e(h), c()) : e();
@@ -2173,10 +2173,10 @@ function Pr(t) {
2173
2173
  return Pr(e());
2174
2174
  }, t;
2175
2175
  }
2176
- function ds() {
2176
+ function ps() {
2177
2177
  return Pr(Cr.apply(null, arguments).paddingInner(1));
2178
2178
  }
2179
- function ps(t) {
2179
+ function ds(t) {
2180
2180
  return function() {
2181
2181
  return t;
2182
2182
  };
@@ -2185,13 +2185,13 @@ function ms(t) {
2185
2185
  return +t;
2186
2186
  }
2187
2187
  var Fn = [0, 1];
2188
- function pt(t) {
2188
+ function dt(t) {
2189
2189
  return t;
2190
2190
  }
2191
2191
  function Ee(t, e) {
2192
2192
  return (e -= t = +t) ? function(n) {
2193
2193
  return (n - t) / e;
2194
- } : ps(isNaN(e) ? NaN : 0.5);
2194
+ } : ds(isNaN(e) ? NaN : 0.5);
2195
2195
  }
2196
2196
  function gs(t, e) {
2197
2197
  var n;
@@ -2218,10 +2218,10 @@ function bs(t, e) {
2218
2218
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2219
2219
  }
2220
2220
  function ws() {
2221
- var t = Fn, e = Fn, n = He, r, i, a, o = pt, u, l, s;
2221
+ var t = Fn, e = Fn, n = He, r, i, a, o = dt, u, l, s;
2222
2222
  function f() {
2223
2223
  var h = Math.min(t.length, e.length);
2224
- return o !== pt && (o = gs(t[0], t[h - 1])), u = h > 2 ? vs : ys, l = s = null, c;
2224
+ return o !== dt && (o = gs(t[0], t[h - 1])), u = h > 2 ? vs : ys, l = s = null, c;
2225
2225
  }
2226
2226
  function c(h) {
2227
2227
  return h == null || isNaN(h = +h) ? a : (l || (l = u(t.map(r), e, n)))(r(o(h)));
@@ -2235,17 +2235,17 @@ function ws() {
2235
2235
  }, c.rangeRound = function(h) {
2236
2236
  return e = Array.from(h), n = Go, f();
2237
2237
  }, c.clamp = function(h) {
2238
- return arguments.length ? (o = h ? !0 : pt, f()) : o !== pt;
2238
+ return arguments.length ? (o = h ? !0 : dt, f()) : o !== dt;
2239
2239
  }, c.interpolate = function(h) {
2240
2240
  return arguments.length ? (n = h, f()) : n;
2241
2241
  }, c.unknown = function(h) {
2242
2242
  return arguments.length ? (a = h, c) : a;
2243
- }, function(h, d) {
2244
- return r = h, i = d, f();
2243
+ }, function(h, p) {
2244
+ return r = h, i = p, f();
2245
2245
  };
2246
2246
  }
2247
2247
  function xs() {
2248
- return ws()(pt, pt);
2248
+ return ws()(dt, dt);
2249
2249
  }
2250
2250
  function _s(t, e, n, r) {
2251
2251
  var i = Ti(t, e, n), a;
@@ -2398,7 +2398,7 @@ function cc(t = 0) {
2398
2398
  function fc(t, e) {
2399
2399
  return e instanceof Function ? e(t) : We(e)(t);
2400
2400
  }
2401
- function de(t, e, n, r) {
2401
+ function pe(t, e, n, r) {
2402
2402
  let i = `${t}_${e}_${n}`;
2403
2403
  return r != null && (i += `_${r}`), i;
2404
2404
  }
@@ -2447,11 +2447,11 @@ function En(t) {
2447
2447
  const n = t.flat().filter((r) => (r == null || et(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2448
2448
  return It(n);
2449
2449
  }
2450
- function dc(t) {
2450
+ function pc(t) {
2451
2451
  const n = t.flat().flat().filter((r) => (r == null || et(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2452
2452
  return It(n);
2453
2453
  }
2454
- function pc(t, e = 2) {
2454
+ function dc(t, e = 2) {
2455
2455
  const r = t.flat().filter((i, a) => a == e).filter((i) => (i == null || et(i) && i.value == null) === !1).map((i) => typeof i == "number" ? i : i.value);
2456
2456
  return It(r);
2457
2457
  }
@@ -2464,7 +2464,7 @@ function Ss(t, e) {
2464
2464
  i[o][a] = e[a][o];
2465
2465
  return i;
2466
2466
  }
2467
- function pe(t, e) {
2467
+ function de(t, e) {
2468
2468
  return t < e.colors[e.colorScheme].series.length ? e.colors[e.colorScheme].series[t] : e.colors[e.colorScheme].series[t % e.colors[e.colorScheme].series.length];
2469
2469
  }
2470
2470
  function Nr(t) {
@@ -2476,16 +2476,16 @@ function Nr(t) {
2476
2476
  function Ln(t, e, n) {
2477
2477
  const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Nr(n);
2478
2478
  return new Array(n).fill(null).map((o, u) => {
2479
- const l = u % a, s = Math.floor(u / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = l * f + l * r, d = s * c + s * r;
2479
+ const l = u % a, s = Math.floor(u / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = l * f + l * r, p = s * c + s * r;
2480
2480
  return {
2481
2481
  slotIndex: u,
2482
2482
  rowIndex: s,
2483
2483
  columnIndex: l,
2484
2484
  // translate,
2485
2485
  startX: h,
2486
- startY: d,
2486
+ startY: p,
2487
2487
  centerX: h + f / 2,
2488
- centerY: d + c / 2,
2488
+ centerY: p + c / 2,
2489
2489
  width: f,
2490
2490
  height: c
2491
2491
  };
@@ -2494,12 +2494,12 @@ function Ln(t, e, n) {
2494
2494
  function Te(t, e, n) {
2495
2495
  const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Nr(n);
2496
2496
  return new Array(n).fill(null).map((o, u) => {
2497
- const l = u % a, s = Math.floor(u / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = l * f + l * r, d = s * c + s * r, p = [h, d], m = [f / t.width, c / t.height];
2497
+ const l = u % a, s = Math.floor(u / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = l * f + l * r, p = s * c + s * r, d = [h, p], m = [f / t.width, c / t.height];
2498
2498
  return {
2499
2499
  slotIndex: u,
2500
2500
  rowIndex: s,
2501
2501
  columnIndex: l,
2502
- translate: p,
2502
+ translate: d,
2503
2503
  scale: m
2504
2504
  };
2505
2505
  });
@@ -2511,7 +2511,7 @@ const Ms = (t) => {
2511
2511
  let i = [];
2512
2512
  try {
2513
2513
  const a = (o, u, l, s) => {
2514
- const f = de(n.type, u, l), c = n.seriesLabels[u] || je("series", u), h = pe(u, r);
2514
+ const f = pe(n.type, u, l), c = n.seriesLabels[u] || je("series", u), h = de(u, r);
2515
2515
  return typeof o == "number" ? {
2516
2516
  id: f,
2517
2517
  index: s,
@@ -2694,36 +2694,36 @@ function Ps(t, e, n) {
2694
2694
  return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", o), i[Symbol.asyncIterator] = function() {
2695
2695
  return this;
2696
2696
  }, i;
2697
- function o(d) {
2698
- return function(p) {
2699
- return Promise.resolve(p).then(d, c);
2697
+ function o(p) {
2698
+ return function(d) {
2699
+ return Promise.resolve(d).then(p, c);
2700
2700
  };
2701
2701
  }
2702
- function u(d, p) {
2703
- r[d] && (i[d] = function(m) {
2702
+ function u(p, d) {
2703
+ r[p] && (i[p] = function(m) {
2704
2704
  return new Promise(function(b, w) {
2705
- a.push([d, m, b, w]) > 1 || l(d, m);
2705
+ a.push([p, m, b, w]) > 1 || l(p, m);
2706
2706
  });
2707
- }, p && (i[d] = p(i[d])));
2707
+ }, d && (i[p] = d(i[p])));
2708
2708
  }
2709
- function l(d, p) {
2709
+ function l(p, d) {
2710
2710
  try {
2711
- s(r[d](p));
2711
+ s(r[p](d));
2712
2712
  } catch (m) {
2713
2713
  h(a[0][3], m);
2714
2714
  }
2715
2715
  }
2716
- function s(d) {
2717
- d.value instanceof gt ? Promise.resolve(d.value.v).then(f, c) : h(a[0][2], d);
2716
+ function s(p) {
2717
+ p.value instanceof gt ? Promise.resolve(p.value.v).then(f, c) : h(a[0][2], p);
2718
2718
  }
2719
- function f(d) {
2720
- l("next", d);
2719
+ function f(p) {
2720
+ l("next", p);
2721
2721
  }
2722
- function c(d) {
2723
- l("throw", d);
2722
+ function c(p) {
2723
+ l("throw", p);
2724
2724
  }
2725
- function h(d, p) {
2726
- d(p), a.shift(), a.length && l(a[0][0], a[0][1]);
2725
+ function h(p, d) {
2726
+ p(d), a.shift(), a.length && l(a[0][0], a[0][1]);
2727
2727
  }
2728
2728
  }
2729
2729
  function Fs(t) {
@@ -2807,10 +2807,10 @@ var Rt = function() {
2807
2807
  if (c) {
2808
2808
  this._finalizers = null;
2809
2809
  try {
2810
- for (var h = wt(c), d = h.next(); !d.done; d = h.next()) {
2811
- var p = d.value;
2810
+ for (var h = wt(c), p = h.next(); !p.done; p = h.next()) {
2811
+ var d = p.value;
2812
2812
  try {
2813
- Tn(p);
2813
+ Tn(d);
2814
2814
  } catch (m) {
2815
2815
  a = a ?? [], m instanceof be ? a = ot(ot([], at(a)), at(m.errors)) : a.push(m);
2816
2816
  }
@@ -2819,7 +2819,7 @@ var Rt = function() {
2819
2819
  r = { error: m };
2820
2820
  } finally {
2821
2821
  try {
2822
- d && !d.done && (i = h.return) && i.call(h);
2822
+ p && !p.done && (i = h.return) && i.call(h);
2823
2823
  } finally {
2824
2824
  if (r) throw r.error;
2825
2825
  }
@@ -3695,14 +3695,14 @@ function ll(t) {
3695
3695
  return sl(t, e);
3696
3696
  });
3697
3697
  }
3698
- var cl = Array.isArray, fl = Object.getPrototypeOf, hl = Object.prototype, dl = Object.keys;
3699
- function pl(t) {
3698
+ var cl = Array.isArray, fl = Object.getPrototypeOf, hl = Object.prototype, pl = Object.keys;
3699
+ function dl(t) {
3700
3700
  if (t.length === 1) {
3701
3701
  var e = t[0];
3702
3702
  if (cl(e))
3703
3703
  return { args: e, keys: null };
3704
3704
  if (ml(e)) {
3705
- var n = dl(e);
3705
+ var n = pl(e);
3706
3706
  return {
3707
3707
  args: n.map(function(r) {
3708
3708
  return e[r];
@@ -3724,7 +3724,7 @@ function gl(t, e) {
3724
3724
  function R() {
3725
3725
  for (var t = [], e = 0; e < arguments.length; e++)
3726
3726
  t[e] = arguments[e];
3727
- var n = $t(t), r = Ys(t), i = pl(t), a = i.args, o = i.keys;
3727
+ var n = $t(t), r = Ys(t), i = dl(t), a = i.args, o = i.keys;
3728
3728
  if (a.length === 0)
3729
3729
  return Dt([], n);
3730
3730
  var u = new F(yl(a, n, o ? function(l) {
@@ -3738,8 +3738,8 @@ function yl(t, e, n) {
3738
3738
  for (var i = t.length, a = new Array(i), o = i, u = i, l = function(f) {
3739
3739
  Rn(e, function() {
3740
3740
  var c = Dt(t[f], e), h = !1;
3741
- c.subscribe(N(r, function(d) {
3742
- a[f] = d, h || (h = !0, u--), u || r.next(n(a.slice()));
3741
+ c.subscribe(N(r, function(p) {
3742
+ a[f] = p, h || (h = !0, u--), u || r.next(n(a.slice()));
3743
3743
  }, function() {
3744
3744
  --o || r.complete();
3745
3745
  }));
@@ -3755,9 +3755,9 @@ function Rn(t, e, n) {
3755
3755
  function vl(t, e, n, r, i, a, o, u) {
3756
3756
  var l = [], s = 0, f = 0, c = !1, h = function() {
3757
3757
  c && !l.length && !s && e.complete();
3758
- }, d = function(m) {
3759
- return s < r ? p(m) : l.push(m);
3760
3758
  }, p = function(m) {
3759
+ return s < r ? d(m) : l.push(m);
3760
+ }, d = function(m) {
3761
3761
  s++;
3762
3762
  var b = !1;
3763
3763
  U(n(m, f++)).subscribe(N(e, function(w) {
@@ -3770,7 +3770,7 @@ function vl(t, e, n, r, i, a, o, u) {
3770
3770
  s--;
3771
3771
  for (var w = function() {
3772
3772
  var x = l.shift();
3773
- o || p(x);
3773
+ o || d(x);
3774
3774
  }; l.length && s < r; )
3775
3775
  w();
3776
3776
  h();
@@ -3779,7 +3779,7 @@ function vl(t, e, n, r, i, a, o, u) {
3779
3779
  }
3780
3780
  }));
3781
3781
  };
3782
- return t.subscribe(N(e, d, function() {
3782
+ return t.subscribe(N(e, p, function() {
3783
3783
  c = !0, h();
3784
3784
  })), function() {
3785
3785
  };
@@ -3950,20 +3950,20 @@ function Ie(t) {
3950
3950
  return new P();
3951
3951
  } : e, r = t.resetOnError, i = r === void 0 ? !0 : r, a = t.resetOnComplete, o = a === void 0 ? !0 : a, u = t.resetOnRefCountZero, l = u === void 0 ? !0 : u;
3952
3952
  return function(s) {
3953
- var f, c, h, d = 0, p = !1, m = !1, b = function() {
3953
+ var f, c, h, p = 0, d = !1, m = !1, b = function() {
3954
3954
  c == null || c.unsubscribe(), c = void 0;
3955
3955
  }, w = function() {
3956
- b(), f = h = void 0, p = m = !1;
3956
+ b(), f = h = void 0, d = m = !1;
3957
3957
  }, x = function() {
3958
3958
  var _ = f;
3959
3959
  w(), _ == null || _.unsubscribe();
3960
3960
  };
3961
3961
  return k(function(_, $) {
3962
- d++, !m && !p && b();
3962
+ p++, !m && !d && b();
3963
3963
  var A = h = h ?? n();
3964
3964
  $.add(function() {
3965
- d--, d === 0 && !m && !p && (c = xe(x, l));
3966
- }), A.subscribe($), !f && d > 0 && (f = new Ot({
3965
+ p--, p === 0 && !m && !d && (c = xe(x, l));
3966
+ }), A.subscribe($), !f && p > 0 && (f = new Ot({
3967
3967
  next: function(E) {
3968
3968
  return A.next(E);
3969
3969
  },
@@ -3971,7 +3971,7 @@ function Ie(t) {
3971
3971
  m = !0, b(), c = xe(w, i, E), A.error(E);
3972
3972
  },
3973
3973
  complete: function() {
3974
- p = !0, b(), c = xe(w, o), A.complete();
3974
+ d = !0, b(), c = xe(w, o), A.complete();
3975
3975
  }
3976
3976
  }), U(_).subscribe(f));
3977
3977
  })(s);
@@ -4039,12 +4039,12 @@ function M(t) {
4039
4039
  }
4040
4040
  function Nl(t, e) {
4041
4041
  return k(function(n, r) {
4042
- var i = e ?? {}, a = i.leading, o = a === void 0 ? !0 : a, u = i.trailing, l = u === void 0 ? !1 : u, s = !1, f = null, c = null, h = !1, d = function() {
4042
+ var i = e ?? {}, a = i.leading, o = a === void 0 ? !0 : a, u = i.trailing, l = u === void 0 ? !1 : u, s = !1, f = null, c = null, h = !1, p = function() {
4043
4043
  c == null || c.unsubscribe(), c = null, l && (b(), h && r.complete());
4044
- }, p = function() {
4044
+ }, d = function() {
4045
4045
  c = null, h && r.complete();
4046
4046
  }, m = function(w) {
4047
- return c = U(t(w)).subscribe(N(r, d, p));
4047
+ return c = U(t(w)).subscribe(N(r, p, d));
4048
4048
  }, b = function() {
4049
4049
  if (s) {
4050
4050
  s = !1;
@@ -4104,17 +4104,17 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4104
4104
  T((c) => i)
4105
4105
  );
4106
4106
  function u(c, h) {
4107
- const d = c.find((p) => p.id === h);
4108
- return d ? [d] : [];
4107
+ const p = c.find((d) => d.id === h);
4108
+ return p ? [p] : [];
4109
4109
  }
4110
4110
  function l(c, h) {
4111
- return h == null ? [] : c.filter((d) => d.seriesLabel === h);
4111
+ return h == null ? [] : c.filter((p) => p.seriesLabel === h);
4112
4112
  }
4113
4113
  function s(c, h) {
4114
- return h == null ? [] : c.filter((d) => d.groupLabel === h);
4114
+ return h == null ? [] : c.filter((p) => p.groupLabel === h);
4115
4115
  }
4116
4116
  function f(c, h) {
4117
- return h == null ? [] : c.filter((d) => d.categoryLabel === h);
4117
+ return h == null ? [] : c.filter((p) => p.categoryLabel === h);
4118
4118
  }
4119
4119
  return new F((c) => (R({
4120
4120
  target: $l(a, o, i),
@@ -4124,8 +4124,8 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4124
4124
  M(r),
4125
4125
  T(async (h) => h)
4126
4126
  ).subscribe((h) => {
4127
- let d = [];
4128
- h.fullChartParams.highlightTarget === "datum" ? d = u(h.datumList, h.target.id) : h.fullChartParams.highlightTarget === "series" ? d = l(h.datumList, h.target.seriesLabel) : h.fullChartParams.highlightTarget === "group" ? d = s(h.datumList, h.target.groupLabel) : h.fullChartParams.highlightTarget === "category" && (d = f(h.datumList, h.target.categoryLabel)), c.next(d);
4127
+ let p = [];
4128
+ h.fullChartParams.highlightTarget === "datum" ? p = u(h.datumList, h.target.id) : h.fullChartParams.highlightTarget === "series" ? p = l(h.datumList, h.target.seriesLabel) : h.fullChartParams.highlightTarget === "group" ? p = s(h.datumList, h.target.groupLabel) : h.fullChartParams.highlightTarget === "category" && (p = f(h.datumList, h.target.categoryLabel)), c.next(p);
4129
4129
  }), function() {
4130
4130
  r.next(void 0);
4131
4131
  }));
@@ -4218,7 +4218,7 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4218
4218
  ), o = zn({
4219
4219
  computedData$: a
4220
4220
  }), u = e.computedData$.pipe(
4221
- D((d) => d.flat())
4221
+ D((p) => p.flat())
4222
4222
  ).pipe(
4223
4223
  g(1)
4224
4224
  ), l = me({
@@ -4274,7 +4274,7 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4274
4274
  return Er().domain([c, h]).range([0, n]);
4275
4275
  }, mc = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4276
4276
  let r = [0, e];
4277
- return ds().domain(t).range(r).padding(n);
4277
+ return ps().domain(t).range(r).padding(n);
4278
4278
  }, gc = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4279
4279
  let a = t.map((o, u) => u);
4280
4280
  return r && a.reverse(), Lr().domain([-0, e + 0]).range(a);
@@ -4322,7 +4322,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4322
4322
  dataFormatter: C.dataFormatter ? Un(C.dataFormatter, t, i) : t,
4323
4323
  allPluginParams: C.allPluginParams ? C.allPluginParams : {}
4324
4324
  };
4325
- })(u), d = c.data$.pipe(g(1)), p = c.dataFormatter$.pipe(
4325
+ })(u), p = c.data$.pipe(g(1)), d = c.dataFormatter$.pipe(
4326
4326
  M(r),
4327
4327
  _e({}),
4328
4328
  D((y) => Un(y, h.dataFormatter, i)),
@@ -4383,8 +4383,8 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4383
4383
  l.attr("width", y.rootWidth).attr("height", y.rootHeight);
4384
4384
  });
4385
4385
  const A = R({
4386
- data: d,
4387
- dataFormatter: p,
4386
+ data: p,
4387
+ dataFormatter: d,
4388
4388
  chartParams: m
4389
4389
  // layout: iif(() => isAxesTypeMap[chartType] === true, layout$, of(undefined))
4390
4390
  }).pipe(
@@ -4414,7 +4414,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4414
4414
  const V = {
4415
4415
  fullParams$: new F(),
4416
4416
  fullChartParams$: m,
4417
- fullDataFormatter$: p,
4417
+ fullDataFormatter$: d,
4418
4418
  computedData$: A,
4419
4419
  layout$: $
4420
4420
  }, K = n({
@@ -4508,10 +4508,10 @@ const Yl = (t) => {
4508
4508
  });
4509
4509
  let l = 0;
4510
4510
  i = a.map((s, f) => s.map((c, h) => {
4511
- const d = de("grid", 0, f, h), p = u[h], m = {
4512
- id: c.id ? c.id : d,
4511
+ const p = pe("grid", 0, f, h), d = u[h], m = {
4512
+ id: c.id ? c.id : p,
4513
4513
  index: l,
4514
- label: c.label ? c.label : d,
4514
+ label: c.label ? c.label : p,
4515
4515
  description: c.description ?? "",
4516
4516
  data: c.data,
4517
4517
  value: c.value,
@@ -4519,8 +4519,8 @@ const Yl = (t) => {
4519
4519
  seriesIndex: f,
4520
4520
  seriesLabel: o[f],
4521
4521
  groupIndex: h,
4522
- groupLabel: p,
4523
- color: pe(f, r),
4522
+ groupLabel: d,
4523
+ color: de(f, r),
4524
4524
  visible: !0
4525
4525
  // 先給一個預設值
4526
4526
  };
@@ -4564,12 +4564,12 @@ const Yl = (t) => {
4564
4564
  D((a) => {
4565
4565
  const o = r(a.computedData, a.fullDataFormatter, a.layout), u = i(a.computedData, a.fullDataFormatter, a.layout), l = u(0);
4566
4566
  return a.computedData.map((s, f) => s.map((c, h) => {
4567
- const d = o(h), p = u(c.value ?? 0);
4567
+ const p = o(h), d = u(c.value ?? 0);
4568
4568
  return {
4569
4569
  ...c,
4570
- axisX: d,
4571
- axisY: p,
4572
- axisYFromZero: p - l
4570
+ axisX: p,
4571
+ axisY: d,
4572
+ axisYFromZero: d - l
4573
4573
  };
4574
4574
  }));
4575
4575
  })
@@ -4628,16 +4628,16 @@ const Yl = (t) => {
4628
4628
  ), fi = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => {
4629
4629
  const r = new P();
4630
4630
  function i({ data: a, groupAxis: o, valueAxis: u, width: l, height: s }) {
4631
- let f = 0, c = 0, h = 0, d = 0;
4632
- const p = o.position === "top" || o.position === "bottom" ? l : s, m = 0, b = a[0] ? a[0].length - 1 : 0, w = o.scaleDomain[0] === "auto" ? m - o.scalePadding : o.scaleDomain[0] - o.scalePadding, x = o.scaleDomain[1] === "auto" ? b + o.scalePadding : o.scaleDomain[1] + o.scalePadding, _ = xt({
4631
+ let f = 0, c = 0, h = 0, p = 0;
4632
+ const d = o.position === "top" || o.position === "bottom" ? l : s, m = 0, b = a[0] ? a[0].length - 1 : 0, w = o.scaleDomain[0] === "auto" ? m - o.scalePadding : o.scaleDomain[0] - o.scalePadding, x = o.scaleDomain[1] === "auto" ? b + o.scalePadding : o.scaleDomain[1] + o.scalePadding, _ = xt({
4633
4633
  maxValue: b,
4634
4634
  minValue: m,
4635
- axisWidth: p,
4635
+ axisWidth: d,
4636
4636
  // scaleDomain: groupAxis.scaleDomain,
4637
4637
  scaleDomain: [w, x],
4638
4638
  scaleRange: [0, 1]
4639
4639
  }), $ = _(m), A = _(b);
4640
- m == b ? (f = 0, h = 1) : (f = $, h = (A - $) / p);
4640
+ m == b ? (f = 0, h = 1) : (f = $, h = (A - $) / d);
4641
4641
  const E = a.map((V, K) => V.filter((ut, Y) => Y >= w && Y <= x && ut.visible == !0)), y = En(E), S = u.position === "left" || u.position === "right" ? s : l, C = xt({
4642
4642
  maxValue: y[1],
4643
4643
  minValue: y[0],
@@ -4645,13 +4645,13 @@ const Yl = (t) => {
4645
4645
  scaleDomain: u.scaleDomain,
4646
4646
  scaleRange: u.scaleRange
4647
4647
  }), rt = En(a), v = C(rt[0]), I = C(rt[1]);
4648
- return c = v, d = (I - v) / S, {
4648
+ return c = v, p = (I - v) / S, {
4649
4649
  translate: [f, c],
4650
- scale: [h, d],
4650
+ scale: [h, p],
4651
4651
  rotate: 0,
4652
4652
  rotateX: 0,
4653
4653
  rotateY: 0,
4654
- value: `translate(${f}px, ${c}px) scale(${h}, ${d})`
4654
+ value: `translate(${f}px, ${c}px) scale(${h}, ${p})`
4655
4655
  };
4656
4656
  }
4657
4657
  return new F((a) => (R({
@@ -4686,16 +4686,13 @@ const Yl = (t) => {
4686
4686
  1 / r.gridGraphicTransform.scale[0] / r.gridContainerPosition[a].scale[1],
4687
4687
  1 / r.gridGraphicTransform.scale[1] / r.gridContainerPosition[a].scale[0]
4688
4688
  ]))
4689
- ), di = ({ fullDataFormatter$: t, layout$: e }) => {
4689
+ ), pi = ({ fullDataFormatter$: t, layout$: e }) => {
4690
4690
  const n = new P();
4691
4691
  function r({ xAxisPosition: i, yAxisPosition: a, width: o, height: u }) {
4692
- if ((i === "bottom" || i === "top") && (a === "left" || a === "right"))
4693
- return { width: o, height: u };
4694
- if ((i === "left" || i === "right") && (a === "bottom" || a === "top"))
4695
- return {
4696
- width: u,
4697
- height: o
4698
- };
4692
+ return (i === "bottom" || i === "top") && (a === "left" || a === "right") ? { width: o, height: u } : (i === "left" || i === "right") && (a === "bottom" || a === "top") ? {
4693
+ width: u,
4694
+ height: o
4695
+ } : { width: o, height: u };
4699
4696
  }
4700
4697
  return new F((i) => {
4701
4698
  R({
@@ -4716,7 +4713,7 @@ const Yl = (t) => {
4716
4713
  };
4717
4714
  });
4718
4715
  });
4719
- }, pi = ({ computedData$: t }) => t.pipe(
4716
+ }, di = ({ computedData$: t }) => t.pipe(
4720
4717
  D((e) => e.filter((n) => n.length).map((n) => n[0].seriesLabel)),
4721
4718
  W((e, n) => JSON.stringify(e).length === JSON.stringify(n).length)
4722
4719
  ), mi = ({ computedData$: t }) => t.pipe(
@@ -4786,7 +4783,7 @@ const Yl = (t) => {
4786
4783
  gridContainerPosition$: i,
4787
4784
  gridAxesTransform$: a,
4788
4785
  gridGraphicTransform$: u
4789
- }), s = di({
4786
+ }), s = pi({
4790
4787
  fullDataFormatter$: e.fullDataFormatter$,
4791
4788
  layout$: e.layout$
4792
4789
  }).pipe(
@@ -4801,13 +4798,13 @@ const Yl = (t) => {
4801
4798
  event$: t.event$
4802
4799
  }).pipe(
4803
4800
  g(1)
4804
- ), h = pi({
4801
+ ), h = di({
4805
4802
  computedData$: e.computedData$
4806
- }), d = an({
4803
+ }), p = an({
4807
4804
  datumList$: f
4808
4805
  }).pipe(
4809
4806
  g(1)
4810
- ), p = oi({
4807
+ ), d = oi({
4811
4808
  datumList$: f
4812
4809
  }).pipe(
4813
4810
  g(1)
@@ -4847,8 +4844,8 @@ const Yl = (t) => {
4847
4844
  gridAxesSize$: s,
4848
4845
  gridHighlight$: c,
4849
4846
  seriesLabels$: h,
4850
- SeriesDataMap$: d,
4851
- GroupDataMap$: p,
4847
+ SeriesDataMap$: p,
4848
+ GroupDataMap$: d,
4852
4849
  computedLayoutData$: m,
4853
4850
  visibleComputedData$: b,
4854
4851
  visibleComputedLayoutData$: w,
@@ -4887,11 +4884,11 @@ const jl = (t) => {
4887
4884
  let f = 0;
4888
4885
  l.flat().forEach((c, h) => {
4889
4886
  if (!s.has(c)) {
4890
- const d = pe(f, r);
4891
- s.set(c, d), f++;
4887
+ const p = de(f, r);
4888
+ s.set(c, p), f++;
4892
4889
  }
4893
4890
  }), i = u.map((c, h) => {
4894
- const d = l[h], p = As({
4891
+ const p = l[h], d = As({
4895
4892
  transposedDataGrid: c,
4896
4893
  dataFormatterGrid: o[h],
4897
4894
  chartType: "multiGrid",
@@ -4899,7 +4896,7 @@ const jl = (t) => {
4899
4896
  });
4900
4897
  let m = 0;
4901
4898
  return c.map((w, x) => w.map((_, $) => {
4902
- const A = de("multiGrid", h, x, $), E = p[$], y = d[x], S = {
4899
+ const A = pe("multiGrid", h, x, $), E = d[$], y = p[x], S = {
4903
4900
  id: _.id ? _.id : A,
4904
4901
  index: m,
4905
4902
  label: _.label ? _.label : A,
@@ -4954,7 +4951,7 @@ const jl = (t) => {
4954
4951
  a.next(void 0);
4955
4952
  const s = l.fullDataFormatter.gridList[0] ?? se;
4956
4953
  return l.computedData.map((f, c) => {
4957
- const h = l.fullDataFormatter.gridList[c] ?? s, d = {
4954
+ const h = l.fullDataFormatter.gridList[c] ?? s, p = {
4958
4955
  type: "grid",
4959
4956
  visibleFilter: l.fullDataFormatter.visibleFilter,
4960
4957
  grid: {
@@ -4963,13 +4960,13 @@ const jl = (t) => {
4963
4960
  container: {
4964
4961
  ...l.fullDataFormatter.container
4965
4962
  }
4966
- }, p = Ft(d).pipe(
4963
+ }, d = Ft(p).pipe(
4967
4964
  M(a),
4968
4965
  g(1)
4969
4966
  ), m = Ft(f).pipe(
4970
4967
  M(a),
4971
4968
  g(1)
4972
- ), b = p.pipe(
4969
+ ), b = d.pipe(
4973
4970
  D((K) => K.grid.separateSeries),
4974
4971
  W(),
4975
4972
  g(1)
@@ -4977,7 +4974,7 @@ const jl = (t) => {
4977
4974
  M(a),
4978
4975
  g(1)
4979
4976
  ), x = li({
4980
- fullDataFormatter$: p,
4977
+ fullDataFormatter$: d,
4981
4978
  layout$: n
4982
4979
  }).pipe(
4983
4980
  M(a),
@@ -4989,7 +4986,7 @@ const jl = (t) => {
4989
4986
  g(1)
4990
4987
  ), $ = fi({
4991
4988
  computedData$: m,
4992
- fullDataFormatter$: p,
4989
+ fullDataFormatter$: d,
4993
4990
  layout$: n
4994
4991
  }).pipe(
4995
4992
  M(a),
@@ -4998,8 +4995,8 @@ const jl = (t) => {
4998
4995
  gridContainerPosition$: w,
4999
4996
  gridAxesTransform$: x,
5000
4997
  gridGraphicTransform$: $
5001
- }), E = di({
5002
- fullDataFormatter$: p,
4998
+ }), E = pi({
4999
+ fullDataFormatter$: d,
5003
5000
  layout$: n
5004
5001
  }).pipe(
5005
5002
  M(a),
@@ -5009,7 +5006,7 @@ const jl = (t) => {
5009
5006
  ).pipe(
5010
5007
  M(a),
5011
5008
  g(1)
5012
- ), S = pi({
5009
+ ), S = di({
5013
5010
  computedData$: m
5014
5011
  }).pipe(
5015
5012
  M(a),
@@ -5031,7 +5028,7 @@ const jl = (t) => {
5031
5028
  g(1)
5032
5029
  ), I = si({
5033
5030
  computedData$: m,
5034
- fullDataFormatter$: p,
5031
+ fullDataFormatter$: d,
5035
5032
  layout$: n
5036
5033
  }).pipe(
5037
5034
  M(a),
@@ -5059,7 +5056,7 @@ const jl = (t) => {
5059
5056
  seriesLabels$: S,
5060
5057
  SeriesDataMap$: C,
5061
5058
  GroupDataMap$: rt,
5062
- dataFormatter$: p,
5059
+ dataFormatter$: d,
5063
5060
  computedData$: m,
5064
5061
  computedLayoutData$: I,
5065
5062
  visibleComputedData$: v,
@@ -5077,12 +5074,12 @@ const jl = (t) => {
5077
5074
  T(async (r) => r),
5078
5075
  D((r) => {
5079
5076
  const i = r.fullDataFormatter.gridList[0] ?? se, a = r.computedData.reduce((s, f, c) => {
5080
- const d = (r.fullDataFormatter.gridList[c] ?? i).separateSeries ? f.length : r.fullDataFormatter.separateGrid ? 1 : 0;
5081
- return s + d;
5077
+ const p = (r.fullDataFormatter.gridList[c] ?? i).separateSeries ? f.length : r.fullDataFormatter.separateGrid ? 1 : 0;
5078
+ return s + p;
5082
5079
  }, 0) || 1, o = Te(r.layout, r.fullDataFormatter.container, a);
5083
5080
  let u = 0;
5084
5081
  return r.computedData.map((s, f) => {
5085
- const c = r.fullDataFormatter.gridList[f] ?? i, h = s.map((d, p) => {
5082
+ const c = r.fullDataFormatter.gridList[f] ?? i, h = s.map((p, d) => {
5086
5083
  const m = o[u];
5087
5084
  return c.separateSeries && (u += 1), m;
5088
5085
  });
@@ -5151,7 +5148,7 @@ const Ql = (t) => {
5151
5148
  data: $.data ?? {},
5152
5149
  categoryLabel: $.categoryLabel ?? "",
5153
5150
  value: $.value
5154
- })), [u, l] = Le(o.map((x) => x[0])), [s, f] = Le(o.map((x) => x[1])), c = n.xAxis.position === "top" || n.xAxis.position === "bottom" ? i.width : i.height, h = n.yAxis.position === "left" || n.yAxis.position === "right" ? i.height : i.width, d = xt({
5151
+ })), [u, l] = Le(o.map((x) => x[0])), [s, f] = Le(o.map((x) => x[1])), c = n.xAxis.position === "top" || n.xAxis.position === "bottom" ? i.width : i.height, h = n.yAxis.position === "left" || n.yAxis.position === "right" ? i.height : i.width, p = xt({
5155
5152
  maxValue: l,
5156
5153
  minValue: u,
5157
5154
  axisWidth: c,
@@ -5159,7 +5156,7 @@ const Ql = (t) => {
5159
5156
  // scaleRange: dataFormatter.xAxis.scaleRange
5160
5157
  scaleDomain: [u, l],
5161
5158
  scaleRange: [0, 1]
5162
- }), p = xt({
5159
+ }), d = xt({
5163
5160
  maxValue: f,
5164
5161
  minValue: s,
5165
5162
  axisWidth: h,
@@ -5178,7 +5175,7 @@ const Ql = (t) => {
5178
5175
  a = o.map((x, _) => x.map(($, A) => {
5179
5176
  const E = w;
5180
5177
  w++;
5181
- const y = de(n.type, _, A), S = {
5178
+ const y = pe(n.type, _, A), S = {
5182
5179
  id: $.id ? $.id : y,
5183
5180
  index: E,
5184
5181
  label: $.label ? $.label : y,
@@ -5191,7 +5188,7 @@ const Ql = (t) => {
5191
5188
  categoryLabel: "",
5192
5189
  // @Q@ 未完成
5193
5190
  // valueLabel: formatValueToLabel(_d.value, dataFormatter.multiValue[_i].valueFormat),
5194
- axis: A == 0 ? d($.value) : p($.value),
5191
+ axis: A == 0 ? p($.value) : d($.value),
5195
5192
  visible: !0,
5196
5193
  // 先給預設值
5197
5194
  color: ""
@@ -5281,18 +5278,18 @@ const ec = (t) => {
5281
5278
  const s = function() {
5282
5279
  const c = /* @__PURE__ */ new Map();
5283
5280
  return a.forEach((h) => {
5284
- const d = c.get(h.endNodeId) ?? [];
5285
- d.push(h.startNode), c.set(h.endNodeId, d);
5281
+ const p = c.get(h.endNodeId) ?? [];
5282
+ p.push(h.startNode), c.set(h.endNodeId, p);
5286
5283
  }), c;
5287
5284
  }(), f = function() {
5288
5285
  const c = /* @__PURE__ */ new Map();
5289
5286
  return a.forEach((h) => {
5290
- const d = c.get(h.startNodeId) ?? [];
5291
- d.push(h.endNode), c.set(h.startNodeId, d);
5287
+ const p = c.get(h.startNodeId) ?? [];
5288
+ p.push(h.endNode), c.set(h.startNodeId, p);
5292
5289
  }), c;
5293
5290
  }();
5294
5291
  Array.from(l).forEach(([c, h]) => {
5295
- h.startNodes = s.get(c), h.startNodeIds = h.startNodes.map((d) => d.id), h.endNodes = f.get(c), h.endNodeIds = h.endNodes.map((d) => d.id), h.visible = n.visibleFilter(h, t);
5292
+ h.startNodes = s.get(c), h.startNodeIds = h.startNodes.map((p) => p.id), h.endNodes = f.get(c), h.endNodeIds = h.endNodes.map((p) => p.id), h.visible = n.visibleFilter(h, t);
5296
5293
  }), a = a.map((c) => (c.visible = !!(c.startNode.visible && c.endNode.visible), c));
5297
5294
  } catch (o) {
5298
5295
  throw Error(o);
@@ -5355,8 +5352,8 @@ const rc = (t) => {
5355
5352
  if (!h.parent)
5356
5353
  s = h;
5357
5354
  else {
5358
- const d = f.get(h.parent) ?? [];
5359
- d.push(h), f.set(h.parent, d);
5355
+ const p = f.get(h.parent) ?? [];
5356
+ p.push(h), f.set(h.parent, p);
5360
5357
  }
5361
5358
  });
5362
5359
  const c = (h) => ({
@@ -5366,7 +5363,7 @@ const rc = (t) => {
5366
5363
  // tooltipContent: root.tooltipContent,
5367
5364
  value: h.value,
5368
5365
  categoryLabel: h.categoryLabel,
5369
- children: (f.get(h.id) ?? []).map((d) => c(d))
5366
+ children: (f.get(h.id) ?? []).map((p) => c(p))
5370
5367
  });
5371
5368
  return s ? c(s) : {
5372
5369
  id: ""
@@ -5374,9 +5371,9 @@ const rc = (t) => {
5374
5371
  }();
5375
5372
  let u = 0;
5376
5373
  const l = (s, f, c) => {
5377
- const h = f + 1, d = s.categoryLabel ?? null;
5378
- let p = 0;
5379
- d != null && (i.has(d) || i.set(d, i.size), p = i.get(d) ?? 0);
5374
+ const h = f + 1, p = s.categoryLabel ?? null;
5375
+ let d = 0;
5376
+ p != null && (i.has(p) || i.set(p, i.size), d = i.get(p) ?? 0);
5380
5377
  const m = u;
5381
5378
  u++;
5382
5379
  const b = {
@@ -5386,9 +5383,9 @@ const rc = (t) => {
5386
5383
  seq: c,
5387
5384
  label: s.label ?? "",
5388
5385
  description: s.description ?? "",
5389
- categoryIndex: p,
5390
- categoryLabel: d,
5391
- color: pe(p, r),
5386
+ categoryIndex: d,
5387
+ categoryLabel: p,
5388
+ color: de(d, r),
5392
5389
  data: s.data ?? {},
5393
5390
  // tooltipContent: branch.tooltipContent ? branch.tooltipContent : dataFormatter.tooltipContentFormat(branch, level, seq, context),
5394
5391
  value: s.value,
@@ -5524,7 +5521,7 @@ function sc({ name: t, defaultParams: e, initFn: n }) {
5524
5521
  }
5525
5522
  };
5526
5523
  }
5527
- const dt = () => function(e, n) {
5524
+ const pt = () => function(e, n) {
5528
5525
  return function(i) {
5529
5526
  return class {
5530
5527
  constructor() {
@@ -5533,7 +5530,7 @@ const dt = () => function(e, n) {
5533
5530
  }
5534
5531
  };
5535
5532
  };
5536
- }, Dc = dt(), Ac = dt(), Sc = dt(), Mc = dt(), Cc = dt(), Pc = dt(), Fc = dt();
5533
+ }, Dc = pt(), Ac = pt(), Sc = pt(), Mc = pt(), Cc = pt(), Pc = pt(), Fc = pt();
5537
5534
  export {
5538
5535
  vc as GridChart,
5539
5536
  bc as MultiGridChart,
@@ -5547,7 +5544,7 @@ export {
5547
5544
  xt as createAxisLinearScale,
5548
5545
  mc as createAxisPointScale,
5549
5546
  gc as createAxisQuantizeScale,
5550
- de as createDefaultDatumId,
5547
+ pe as createDefaultDatumId,
5551
5548
  Tr as createDefaultGroupLabel,
5552
5549
  je as createDefaultSeriesLabel,
5553
5550
  Ds as createGridGroupLabels,
@@ -5565,8 +5562,8 @@ export {
5565
5562
  fc as formatValueToLabel,
5566
5563
  It as getMinAndMax,
5567
5564
  En as getMinAndMaxGrid,
5568
- dc as getMinAndMaxMultiGrid,
5569
- pc as getMinAndMaxMultiValue,
5565
+ pc as getMinAndMaxMultiGrid,
5566
+ dc as getMinAndMaxMultiValue,
5570
5567
  hc as getMinAndMaxSeries,
5571
5568
  Le as getMinAndMaxValue,
5572
5569
  oi as groupDataMapObservable,
@@ -5574,7 +5571,7 @@ export {
5574
5571
  lc as isFunction,
5575
5572
  et as isPlainObject,
5576
5573
  ct as mergeOptionsWithDefault,
5577
- pe as seriesColorPredicate,
5574
+ de as seriesColorPredicate,
5578
5575
  an as seriesDataMapObservable,
5579
5576
  ge as textSizePxObservable,
5580
5577
  Ss as transposeData