@carbon/charts 1.22.20 → 1.22.21

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.
@@ -1,4 +1,4 @@
1
- import { t as Hr, $ as il, i as al, a0 as rl, a1 as Br, a2 as zr, a3 as ol, a4 as ll, a5 as cl, a6 as ul, a7 as Ur, a8 as va, a9 as nn, g as L, p as Kt, a as en, C as ya, aa as xt, w as At, ab as wn, E as Ea, H as jt, ac as Fr, ad as Os, c as hl, ae as Ee, I as ui, K as hi, e as se, af as vn, ag as ge, f as ve, x as me, ah as dl, h as je, O as pl, ai as Re, z as Et, l as qt, aj as Gt, ak as fl, M as gl, al as Wr, y as _t, q as un, n as Hn, am as Ns, an as ml, ao as vl, ap as di, aq as xa, A as Le, ar as Sa, as as Xr, at as yl } from "./color-scale-utils-ycwO-Ibq.mjs";
1
+ import { t as Hr, $ as il, i as al, a0 as rl, a1 as Br, a2 as zr, a3 as ol, a4 as ll, a5 as cl, a6 as ul, a7 as Ur, a8 as va, a9 as nn, g as O, p as Kt, a as en, C as ya, aa as xt, w as At, ab as wn, E as Ea, H as jt, ac as Fr, ad as Os, c as hl, ae as Ee, I as ui, K as hi, e as se, af as vn, ag as ge, f as ve, x as me, ah as dl, h as je, O as pl, ai as Re, z as Et, l as qt, aj as Gt, ak as fl, M as gl, al as Wr, y as _t, q as un, n as Hn, am as Ns, an as ml, ao as vl, ap as di, aq as xa, A as Le, ar as Sa, as as Xr, at as yl } from "./color-scale-utils-ycwO-Ibq.mjs";
2
2
  import { y as at, $ as T, N as Tt, r as Te, q as Be, L as El, A as te, m as nt, s as Ae, W as Ke, S as kt, e as J, Z as ze, i as Xt, f as Ta, J as Ps, d as xl, F as Bn, n as $s, H as Vs, C as Gs, p as zn, b as ba, D as Hs, U as Sl, x as Me, a0 as Un, O as Bs } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as lt } from "./a11y-ePqvrObQ.mjs";
4
4
  import { t as ns, s as D, h as Oa, e as Ut, c as ss, f as we, g as le, m as zs, i as La, j as Aa, k as Je, l as Rt, n as Ma, o as Tl, q as bl, u as Hi, D as I, v as Ol, w as pi, G as wa, x as Bi, y as Ll, a as Al, p as bt, r as Ca, b as Ml } from "./angle-utils-CqlSifly.mjs";
@@ -600,7 +600,7 @@ function qc(i) {
600
600
  };
601
601
  function u(m) {
602
602
  if (o && !m.touches || !e.apply(this, arguments)) return;
603
- var y = this, S = m.target.__data__.type, v = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Na : s && m.altKey ? We : Fe, E = i === Xs ? null : Uc[S], x = i === rs ? null : Fc[S], b = Ys(y), _ = b.extent, k = b.selection, G = _[0][0], R, A, H = _[0][1], N, M, O = _[1][0], P, $, C = _[1][1], V, q, X = 0, F = 0, Z, rt = E && x && s && m.shiftKey, j, Y, K = Array.from(m.touches || [m], (et) => {
603
+ var y = this, S = m.target.__data__.type, v = (s && m.metaKey ? S = "overlay" : S) === "selection" ? Na : s && m.altKey ? We : Fe, E = i === Xs ? null : Uc[S], x = i === rs ? null : Fc[S], b = Ys(y), _ = b.extent, k = b.selection, G = _[0][0], R, A, H = _[0][1], N, M, L = _[1][0], P, $, C = _[1][1], V, q, X = 0, F = 0, Z, rt = E && x && s && m.shiftKey, j, Y, K = Array.from(m.touches || [m], (et) => {
604
604
  const yt = et.identifier;
605
605
  return et = nn(et, y), et.point0 = et.slice(), et.identifier = yt, et;
606
606
  });
@@ -613,7 +613,7 @@ function qc(i) {
613
613
  R = i === Xs ? G : Nt(et[0][0], et[1][0]),
614
614
  N = i === rs ? H : Nt(et[0][1], et[1][1])
615
615
  ], [
616
- P = i === Xs ? O : Dt(et[0][0], et[1][0]),
616
+ P = i === Xs ? L : Dt(et[0][0], et[1][0]),
617
617
  V = i === rs ? C : Dt(et[0][1], et[1][1])
618
618
  ]], K.length > 1 && z(m);
619
619
  } else
@@ -645,15 +645,15 @@ function qc(i) {
645
645
  switch (X = yt[0] - Zt[0], F = yt[1] - Zt[1], v) {
646
646
  case Ws:
647
647
  case Na: {
648
- E && (X = Dt(G - R, Nt(O - P, X)), A = R + X, $ = P + X), x && (F = Dt(H - N, Nt(C - V, F)), M = N + F, q = V + F);
648
+ E && (X = Dt(G - R, Nt(L - P, X)), A = R + X, $ = P + X), x && (F = Dt(H - N, Nt(C - V, F)), M = N + F, q = V + F);
649
649
  break;
650
650
  }
651
651
  case Fe: {
652
- K[1] ? (E && (A = Dt(G, Nt(O, K[0][0])), $ = Dt(G, Nt(O, K[1][0])), E = 1), x && (M = Dt(H, Nt(C, K[0][1])), q = Dt(H, Nt(C, K[1][1])), x = 1)) : (E < 0 ? (X = Dt(G - R, Nt(O - R, X)), A = R + X, $ = P) : E > 0 && (X = Dt(G - P, Nt(O - P, X)), A = R, $ = P + X), x < 0 ? (F = Dt(H - N, Nt(C - N, F)), M = N + F, q = V) : x > 0 && (F = Dt(H - V, Nt(C - V, F)), M = N, q = V + F));
652
+ K[1] ? (E && (A = Dt(G, Nt(L, K[0][0])), $ = Dt(G, Nt(L, K[1][0])), E = 1), x && (M = Dt(H, Nt(C, K[0][1])), q = Dt(H, Nt(C, K[1][1])), x = 1)) : (E < 0 ? (X = Dt(G - R, Nt(L - R, X)), A = R + X, $ = P) : E > 0 && (X = Dt(G - P, Nt(L - P, X)), A = R, $ = P + X), x < 0 ? (F = Dt(H - N, Nt(C - N, F)), M = N + F, q = V) : x > 0 && (F = Dt(H - V, Nt(C - V, F)), M = N, q = V + F));
653
653
  break;
654
654
  }
655
655
  case We: {
656
- E && (A = Dt(G, Nt(O, R - X * E)), $ = Dt(G, Nt(O, P + X * E))), x && (M = Dt(H, Nt(C, N - F * x)), q = Dt(H, Nt(C, V + F * x)));
656
+ E && (A = Dt(G, Nt(L, R - X * E)), $ = Dt(G, Nt(L, P + X * E))), x && (M = Dt(H, Nt(C, N - F * x)), q = Dt(H, Nt(C, V + F * x)));
657
657
  break;
658
658
  }
659
659
  }
@@ -1032,8 +1032,8 @@ function au(i, t) {
1032
1032
  Ti(N);
1033
1033
  var M = ds(a, N);
1034
1034
  Ti(M);
1035
- var O = (A ^ k >= 0 ? -1 : 1) * xe(M[2]);
1036
- (n > O || n === O && (N[0] || N[1])) && (o += A ^ k >= 0 ? 1 : -1);
1035
+ var L = (A ^ k >= 0 ? -1 : 1) * xe(M[2]);
1036
+ (n > L || n === L && (N[0] || N[1])) && (o += A ^ k >= 0 ? 1 : -1);
1037
1037
  }
1038
1038
  }
1039
1039
  return (r < -1e-6 || r < vt && c < -1e-12) ^ o & 1;
@@ -1180,10 +1180,10 @@ function hu(i) {
1180
1180
  if (!(H < 0)) {
1181
1181
  var N = ae(H), M = Wn(G, (-R - N) / A);
1182
1182
  if (Zs(M, _), M = Si(M), !u) return M;
1183
- var O = h[0], P = d[0], $ = h[1], C = d[1], V;
1184
- P < O && (V = O, O = P, P = V);
1185
- var q = P - O, X = gt(q - ht) < vt, F = X || q < vt;
1186
- if (!X && C < $ && (V = $, $ = C, C = V), F ? X ? $ + C > 0 ^ M[1] < (gt(M[0] - O) < vt ? $ : C) : $ <= M[1] && M[1] <= C : q > ht ^ (O <= M[0] && M[0] <= P)) {
1183
+ var L = h[0], P = d[0], $ = h[1], C = d[1], V;
1184
+ P < L && (V = L, L = P, P = V);
1185
+ var q = P - L, X = gt(q - ht) < vt, F = X || q < vt;
1186
+ if (!X && C < $ && (V = $, $ = C, C = V), F ? X ? $ + C > 0 ^ M[1] < (gt(M[0] - L) < vt ? $ : C) : $ <= M[1] && M[1] <= C : q > ht ^ (L <= M[0] && M[0] <= P)) {
1187
1187
  var Z = Wn(G, (-R + N) / A);
1188
1188
  return Zs(Z, _), [M, Si(Z)];
1189
1189
  }
@@ -1267,21 +1267,21 @@ function pu(i, t, e, n) {
1267
1267
  polygonStart: R,
1268
1268
  polygonEnd: A
1269
1269
  };
1270
- function k(O, P) {
1271
- s(O, P) && h.point(O, P);
1270
+ function k(L, P) {
1271
+ s(L, P) && h.point(L, P);
1272
1272
  }
1273
1273
  function G() {
1274
- for (var O = 0, P = 0, $ = p.length; P < $; ++P)
1274
+ for (var L = 0, P = 0, $ = p.length; P < $; ++P)
1275
1275
  for (var C = p[P], V = 1, q = C.length, X = C[0], F, Z, rt = X[0], j = X[1]; V < q; ++V)
1276
- F = rt, Z = j, X = C[V], rt = X[0], j = X[1], Z <= n ? j > n && (rt - F) * (n - Z) > (j - Z) * (i - F) && ++O : j <= n && (rt - F) * (n - Z) < (j - Z) * (i - F) && --O;
1277
- return O;
1276
+ F = rt, Z = j, X = C[V], rt = X[0], j = X[1], Z <= n ? j > n && (rt - F) * (n - Z) > (j - Z) * (i - F) && ++L : j <= n && (rt - F) * (n - Z) < (j - Z) * (i - F) && --L;
1277
+ return L;
1278
1278
  }
1279
1279
  function R() {
1280
1280
  h = d, u = [], p = [], b = !0;
1281
1281
  }
1282
1282
  function A() {
1283
- var O = G(), P = b && O, $ = (u = co(u)).length;
1284
- (P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && vo(u, o, O, a, l), l.polygonEnd()), h = l, u = p = f = null;
1283
+ var L = G(), P = b && L, $ = (u = co(u)).length;
1284
+ (P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && vo(u, o, L, a, l), l.polygonEnd()), h = l, u = p = f = null;
1285
1285
  }
1286
1286
  function H() {
1287
1287
  _.point = M, p && p.push(f = []), x = !0, E = !1, S = v = NaN;
@@ -1289,16 +1289,16 @@ function pu(i, t, e, n) {
1289
1289
  function N() {
1290
1290
  u && (M(g, m), y && E && d.rejoin(), u.push(d.result())), _.point = k, E && h.lineEnd();
1291
1291
  }
1292
- function M(O, P) {
1293
- var $ = s(O, P);
1294
- if (p && f.push([O, P]), x)
1295
- g = O, m = P, y = $, x = !1, $ && (h.lineStart(), h.point(O, P));
1296
- else if ($ && E) h.point(O, P);
1292
+ function M(L, P) {
1293
+ var $ = s(L, P);
1294
+ if (p && f.push([L, P]), x)
1295
+ g = L, m = P, y = $, x = !1, $ && (h.lineStart(), h.point(L, P));
1296
+ else if ($ && E) h.point(L, P);
1297
1297
  else {
1298
- var C = [S = Math.max(Zn, Math.min(Yn, S)), v = Math.max(Zn, Math.min(Yn, v))], V = [O = Math.max(Zn, Math.min(Yn, O)), P = Math.max(Zn, Math.min(Yn, P))];
1299
- du(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(), b = !1) : $ && (h.lineStart(), h.point(O, P), b = !1);
1298
+ var C = [S = Math.max(Zn, Math.min(Yn, S)), v = Math.max(Zn, Math.min(Yn, v))], V = [L = Math.max(Zn, Math.min(Yn, L)), P = Math.max(Zn, Math.min(Yn, P))];
1299
+ du(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(), b = !1) : $ && (h.lineStart(), h.point(L, P), b = !1);
1300
1300
  }
1301
- S = O, v = P, E = $;
1301
+ S = L, v = P, E = $;
1302
1302
  }
1303
1303
  return _;
1304
1304
  };
@@ -1618,8 +1618,8 @@ function _u(i, t) {
1618
1618
  function e(n, s, a, r, o, c, l, h, d, u, p, f, g, m) {
1619
1619
  var y = l - n, S = h - s, v = y * y + S * S;
1620
1620
  if (v > 4 * t && g--) {
1621
- var E = r + u, x = o + p, b = c + f, _ = ae(E * E + x * x + b * b), k = xe(b /= _), G = gt(gt(b) - 1) < vt || gt(a - d) < vt ? (a + d) / 2 : Ne(x, E), R = i(G, k), A = R[0], H = R[1], N = A - n, M = H - s, O = S * N - y * M;
1622
- (O * O / v > t || gt((y * N + S * M) / v - 0.5) > 0.3 || r * u + o * p + c * f < Cu) && (e(n, s, a, r, o, c, A, H, G, E /= _, x /= _, b, g, m), m.point(A, H), e(A, H, G, E, x, b, l, h, d, u, p, f, g, m));
1621
+ var E = r + u, x = o + p, b = c + f, _ = ae(E * E + x * x + b * b), k = xe(b /= _), G = gt(gt(b) - 1) < vt || gt(a - d) < vt ? (a + d) / 2 : Ne(x, E), R = i(G, k), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - y * M;
1622
+ (L * L / v > t || gt((y * N + S * M) / v - 0.5) > 0.3 || r * u + o * p + c * f < Cu) && (e(n, s, a, r, o, c, A, H, G, E /= _, x /= _, b, g, m), m.point(A, H), e(A, H, G, E, x, b, l, h, d, u, p, f, g, m));
1623
1623
  }
1624
1624
  }
1625
1625
  return function(n) {
@@ -1697,49 +1697,49 @@ function Ms(i) {
1697
1697
  }
1698
1698
  function _o(i) {
1699
1699
  var t, e = 150, n = 480, s = 250, a = 0, r = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ja, m = null, y, S, v, E = Li, x = 0.5, b, _, k, G, R;
1700
- function A(O) {
1701
- return k(O[0] * Ot, O[1] * Ot);
1702
- }
1703
- function H(O) {
1704
- return O = k.invert(O[0], O[1]), O && [O[0] * Vt, O[1] * Vt];
1705
- }
1706
- A.stream = function(O) {
1707
- return G && R === O ? G : G = Iu(Ru(h)(g(b(E(R = O)))));
1708
- }, A.preclip = function(O) {
1709
- return arguments.length ? (g = O, f = void 0, M()) : g;
1710
- }, A.postclip = function(O) {
1711
- return arguments.length ? (E = O, m = y = S = v = null, M()) : E;
1712
- }, A.clipAngle = function(O) {
1713
- return arguments.length ? (g = +O ? hu(f = O * Ot) : (f = null, ja), M()) : f * Vt;
1714
- }, A.clipExtent = function(O) {
1715
- return arguments.length ? (E = O == null ? (m = y = S = v = null, Li) : pu(m = +O[0][0], y = +O[0][1], S = +O[1][0], v = +O[1][1]), M()) : m == null ? null : [[m, y], [S, v]];
1716
- }, A.scale = function(O) {
1717
- return arguments.length ? (e = +O, N()) : e;
1718
- }, A.translate = function(O) {
1719
- return arguments.length ? (n = +O[0], s = +O[1], N()) : [n, s];
1720
- }, A.center = function(O) {
1721
- return arguments.length ? (a = O[0] % 360 * Ot, r = O[1] % 360 * Ot, N()) : [a * Vt, r * Vt];
1722
- }, A.rotate = function(O) {
1723
- return arguments.length ? (o = O[0] % 360 * Ot, c = O[1] % 360 * Ot, l = O.length > 2 ? O[2] % 360 * Ot : 0, N()) : [o * Vt, c * Vt, l * Vt];
1724
- }, A.angle = function(O) {
1725
- return arguments.length ? (d = O % 360 * Ot, N()) : d * Vt;
1726
- }, A.reflectX = function(O) {
1727
- return arguments.length ? (u = O ? -1 : 1, N()) : u < 0;
1728
- }, A.reflectY = function(O) {
1729
- return arguments.length ? (p = O ? -1 : 1, N()) : p < 0;
1730
- }, A.precision = function(O) {
1731
- return arguments.length ? (b = ir(_, x = O * O), M()) : ae(x);
1732
- }, A.fitExtent = function(O, P) {
1733
- return ko(A, O, P);
1734
- }, A.fitSize = function(O, P) {
1735
- return Au(A, O, P);
1736
- }, A.fitWidth = function(O, P) {
1737
- return Mu(A, O, P);
1738
- }, A.fitHeight = function(O, P) {
1739
- return wu(A, O, P);
1700
+ function A(L) {
1701
+ return k(L[0] * Ot, L[1] * Ot);
1702
+ }
1703
+ function H(L) {
1704
+ return L = k.invert(L[0], L[1]), L && [L[0] * Vt, L[1] * Vt];
1705
+ }
1706
+ A.stream = function(L) {
1707
+ return G && R === L ? G : G = Iu(Ru(h)(g(b(E(R = L)))));
1708
+ }, A.preclip = function(L) {
1709
+ return arguments.length ? (g = L, f = void 0, M()) : g;
1710
+ }, A.postclip = function(L) {
1711
+ return arguments.length ? (E = L, m = y = S = v = null, M()) : E;
1712
+ }, A.clipAngle = function(L) {
1713
+ return arguments.length ? (g = +L ? hu(f = L * Ot) : (f = null, ja), M()) : f * Vt;
1714
+ }, A.clipExtent = function(L) {
1715
+ return arguments.length ? (E = L == null ? (m = y = S = v = null, Li) : pu(m = +L[0][0], y = +L[0][1], S = +L[1][0], v = +L[1][1]), M()) : m == null ? null : [[m, y], [S, v]];
1716
+ }, A.scale = function(L) {
1717
+ return arguments.length ? (e = +L, N()) : e;
1718
+ }, A.translate = function(L) {
1719
+ return arguments.length ? (n = +L[0], s = +L[1], N()) : [n, s];
1720
+ }, A.center = function(L) {
1721
+ return arguments.length ? (a = L[0] % 360 * Ot, r = L[1] % 360 * Ot, N()) : [a * Vt, r * Vt];
1722
+ }, A.rotate = function(L) {
1723
+ return arguments.length ? (o = L[0] % 360 * Ot, c = L[1] % 360 * Ot, l = L.length > 2 ? L[2] % 360 * Ot : 0, N()) : [o * Vt, c * Vt, l * Vt];
1724
+ }, A.angle = function(L) {
1725
+ return arguments.length ? (d = L % 360 * Ot, N()) : d * Vt;
1726
+ }, A.reflectX = function(L) {
1727
+ return arguments.length ? (u = L ? -1 : 1, N()) : u < 0;
1728
+ }, A.reflectY = function(L) {
1729
+ return arguments.length ? (p = L ? -1 : 1, N()) : p < 0;
1730
+ }, A.precision = function(L) {
1731
+ return arguments.length ? (b = ir(_, x = L * L), M()) : ae(x);
1732
+ }, A.fitExtent = function(L, P) {
1733
+ return ko(A, L, P);
1734
+ }, A.fitSize = function(L, P) {
1735
+ return Au(A, L, P);
1736
+ }, A.fitWidth = function(L, P) {
1737
+ return Mu(A, L, P);
1738
+ }, A.fitHeight = function(L, P) {
1739
+ return wu(A, L, P);
1740
1740
  };
1741
1741
  function N() {
1742
- var O = ar(e, 0, 0, u, p, d).apply(null, t(a, r)), P = ar(e, n - O[0], s - O[1], u, p, d);
1742
+ var L = ar(e, 0, 0, u, p, d).apply(null, t(a, r)), P = ar(e, n - L[0], s - L[1], u, p, d);
1743
1743
  return h = go(o, c, l), _ = bi(t, P), k = bi(h, _), b = ir(_, x), M();
1744
1744
  }
1745
1745
  function M() {
@@ -2415,8 +2415,8 @@ function Kh(i, t, e, n, s, a, r, o) {
2415
2415
  return u = (h * (t - a) - d * (i - s)) / u, [i + u * c, t + u * l];
2416
2416
  }
2417
2417
  function Kn(i, t, e, n, s, a, r) {
2418
- var o = i - e, c = t - n, l = (r ? a : -a) / Je(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, y = (p + g) / 2, S = f - u, v = g - p, E = S * S + v * v, x = s - a, b = u * g - f * p, _ = (v < 0 ? -1 : 1) * Je(bl(0, x * x * E - b * b)), k = (b * v - S * _) / E, G = (-b * S - v * _) / E, R = (b * v + S * _) / E, A = (-b * S + v * _) / E, H = k - m, N = G - y, M = R - m, O = A - y;
2419
- return H * H + N * N > M * M + O * O && (k = R, G = A), {
2418
+ var o = i - e, c = t - n, l = (r ? a : -a) / Je(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, y = (p + g) / 2, S = f - u, v = g - p, E = S * S + v * v, x = s - a, b = u * g - f * p, _ = (v < 0 ? -1 : 1) * Je(bl(0, x * x * E - b * b)), k = (b * v - S * _) / E, G = (-b * S - v * _) / E, R = (b * v + S * _) / E, A = (-b * S + v * _) / E, H = k - m, N = G - y, M = R - m, L = A - y;
2419
+ return H * H + N * N > M * M + L * L && (k = R, G = A), {
2420
2420
  cx: k,
2421
2421
  cy: G,
2422
2422
  x01: -h,
@@ -2435,8 +2435,8 @@ function In() {
2435
2435
  else {
2436
2436
  var S = f, v = g, E = f, x = g, b = m, _ = m, k = r.apply(this, arguments) / 2, G = k > Ut && (n ? +n.apply(this, arguments) : Je(u * u + p * p)), R = zs(La(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
2437
2437
  if (G > Ut) {
2438
- var O = Ma(G / u * le(k)), P = Ma(G / p * le(k));
2439
- (b -= O * 2) > Ut ? (O *= y ? 1 : -1, E += O, x -= O) : (b = 0, E = x = (f + g) / 2), (_ -= P * 2) > Ut ? (P *= y ? 1 : -1, S += P, v -= P) : (_ = 0, S = v = (f + g) / 2);
2438
+ var L = Ma(G / u * le(k)), P = Ma(G / p * le(k));
2439
+ (b -= L * 2) > Ut ? (L *= y ? 1 : -1, E += L, x -= L) : (b = 0, E = x = (f + g) / 2), (_ -= P * 2) > Ut ? (P *= y ? 1 : -1, S += P, v -= P) : (_ = 0, S = v = (f + g) / 2);
2440
2440
  }
2441
2441
  var $ = p * we(S), C = p * le(S), V = u * we(x), q = u * le(x);
2442
2442
  if (R > Ut) {
@@ -2691,7 +2691,7 @@ function cd() {
2691
2691
  class dt {
2692
2692
  constructor(t, e, n) {
2693
2693
  if (this.type = "", this.renderType = at.HTML, this.id = "", this.parent = void 0, this.configs = {}, this.model = t, this.services = e, n && (this.configs = n, this.configs.id)) {
2694
- const s = L(this.model.getOptions(), "style", "prefix");
2694
+ const s = O(this.model.getOptions(), "style", "prefix");
2695
2695
  this.id = `${s}--${this.configs.id}`;
2696
2696
  }
2697
2697
  this.parent || this.setParent(
@@ -2722,7 +2722,7 @@ class dt {
2722
2722
  var n;
2723
2723
  const e = this.parent;
2724
2724
  if (this.parent = t, !(e && e.node() === t.node()) && this.type) {
2725
- const s = L(this.model.getOptions(), "style", "prefix");
2725
+ const s = O(this.model.getOptions(), "style", "prefix");
2726
2726
  (n = this.parent) == null || n.classed(`${Kt}--${s}--${this.type}`, !0), e && e.classed(`${Kt}--${s}--${this.type}`, !1);
2727
2727
  }
2728
2728
  }
@@ -2731,7 +2731,7 @@ class dt {
2731
2731
  }
2732
2732
  getComponentContainer(t = { ariaLabel: null, isPresentational: !1, withinChartClip: !1 }) {
2733
2733
  if (this.type) {
2734
- const e = L(this.model.getOptions(), "style", "prefix"), n = this.id ? `#${this.id}` : "", s = I.appendOrSelect(
2734
+ const e = O(this.model.getOptions(), "style", "prefix"), n = this.id ? `#${this.id}` : "", s = I.appendOrSelect(
2735
2735
  this.parent,
2736
2736
  `${this.renderType === at.SVG ? "svg" : "div"}${n}.${Kt}--${e}--${this.type}`
2737
2737
  );
@@ -2938,7 +2938,7 @@ function Wo() {
2938
2938
  MUSTACHE_EXPR: H,
2939
2939
  ERB_EXPR: N,
2940
2940
  TMPLIT_EXPR: M,
2941
- DATA_ATTR: O,
2941
+ DATA_ATTR: L,
2942
2942
  ARIA_ATTR: P,
2943
2943
  IS_SCRIPT_OR_DATA: $,
2944
2944
  ATTR_WHITESPACE: C,
@@ -3115,7 +3115,7 @@ function Wo() {
3115
3115
  }, da = function(w, W, Q) {
3116
3116
  if (Wt && (W === "id" || W === "name") && (Q in e || Q in el))
3117
3117
  return !1;
3118
- if (!(ct && !K[W] && $t(O, W))) {
3118
+ if (!(ct && !K[W] && $t(L, W))) {
3119
3119
  if (!(ot && $t(P, W))) {
3120
3120
  if (!Z[W] || K[W]) {
3121
3121
  if (
@@ -3303,7 +3303,7 @@ const ts = (i) => Ki.sanitize(i, {
3303
3303
  const e = this.getComponentContainer({
3304
3304
  ariaLabel: "toolbar"
3305
3305
  }).attr("role", "group");
3306
- if (L(this.getOptions(), "data", "loading"))
3306
+ if (O(this.getOptions(), "data", "loading"))
3307
3307
  e.html(""), this.overflowMenu = null;
3308
3308
  else {
3309
3309
  this.overflowMenu || (this.overflowMenu = e.append("div").attr(
@@ -3349,7 +3349,7 @@ const ts = (i) => Ki.sanitize(i, {
3349
3349
  }
3350
3350
  }
3351
3351
  renderOverflowMenu() {
3352
- const { overflowMenuItemList: t } = this.getControlConfigs(), e = this.overflowMenu.select("ul").selectAll("li.cds--overflow-menu-options__option").data(t, (s) => L(s, "id"));
3352
+ const { overflowMenuItemList: t } = this.getControlConfigs(), e = this.overflowMenu.select("ul").selectAll("li.cds--overflow-menu-options__option").data(t, (s) => O(s, "id"));
3353
3353
  e.exit().remove();
3354
3354
  const n = e.enter().append("li").attr("id", (s) => this.services.domUtils.generateElementIDString(`control-${s.id}`)).attr("class", "cds--overflow-menu-options__option cds--overflow-menu-options__option").attr("role", "menuitem").attr("tabindex", 1);
3355
3355
  n.append("button").attr("class", "cds--overflow-menu-options__btn cds--overflow-menu-options__btn"), n.merge(e).classed("cds--overflow-menu-options__option--disabled", (s) => s.shouldBeDisabled()).classed("cds--overflow-menu-options__option--disabled", (s) => s.shouldBeDisabled()).attr("aria-disabled", (s) => s.shouldBeDisabled()).selectAll("button").text((s) => s.title);
@@ -3458,16 +3458,16 @@ const ts = (i) => Ki.sanitize(i, {
3458
3458
  }));
3459
3459
  }
3460
3460
  getControlConfigs() {
3461
- const t = L(this.getOptions(), "toolbar", "numberOfIcons") - 1, e = L(this.getOptions(), "toolbar", "controls"), n = [], s = [], a = [];
3461
+ const t = O(this.getOptions(), "toolbar", "numberOfIcons") - 1, e = O(this.getOptions(), "toolbar", "controls"), n = [], s = [], a = [];
3462
3462
  return e.forEach((r) => {
3463
3463
  let o = null;
3464
3464
  if (r.type === Tt.CUSTOM)
3465
- L(r, "id") === null && (r.id = `toolbar-button-${Ts.buttonID++}`), L(r, "shouldBeDisabled") === null && (r.shouldBeDisabled = () => !1), o = r;
3465
+ O(r, "id") === null && (r.id = `toolbar-button-${Ts.buttonID++}`), O(r, "shouldBeDisabled") === null && (r.shouldBeDisabled = () => !1), o = r;
3466
3466
  else {
3467
3467
  const c = this.services.domUtils.isFullScreenMode();
3468
3468
  r.type === Tt.MAKE_FULLSCREEN && c ? r.type = Tt.EXIT_FULLSCREEN : r.type === Tt.EXIT_FULLSCREEN && !c && (r.type = Tt.MAKE_FULLSCREEN), o = this.getControlConfigByType(r.type);
3469
3469
  }
3470
- o && (o.text = r.text ? r.text : r.type, o.id.indexOf("toolbar-export") !== -1 ? n.push(o) : s.length < t ? L(o, "iconSVG", "content") === null ? a.push(o) : s.push(o) : a.push(o));
3470
+ o && (o.text = r.text ? r.text : r.type, o.id.indexOf("toolbar-export") !== -1 ? n.push(o) : s.length < t ? O(o, "iconSVG", "content") === null ? a.push(o) : s.push(o) : a.push(o));
3471
3471
  }), a.push(...n), a.length ? {
3472
3472
  buttonList: s,
3473
3473
  overflowMenuItemList: a
@@ -3485,7 +3485,7 @@ const ts = (i) => Ki.sanitize(i, {
3485
3485
  }
3486
3486
  // special button config for overflow button
3487
3487
  getOverflowButtonConfig() {
3488
- const { moreOptions: t } = L(
3488
+ const { moreOptions: t } = O(
3489
3489
  this.model.getOptions(),
3490
3490
  "locale",
3491
3491
  "translations",
@@ -3514,7 +3514,7 @@ const ts = (i) => Ki.sanitize(i, {
3514
3514
  makeFullScreen: d,
3515
3515
  exitFullScreen: u,
3516
3516
  showAsTable: p
3517
- } = L(s, "locale", "translations", "toolbar");
3517
+ } = O(s, "locale", "translations", "toolbar");
3518
3518
  let f;
3519
3519
  switch (t) {
3520
3520
  case Tt.ZOOM_IN:
@@ -3676,17 +3676,17 @@ const bs = class bs extends dt {
3676
3676
  const t = this.parent;
3677
3677
  let e = 0;
3678
3678
  return t.selectAll(`div.layout-child-${this._instanceID}`).filter((n) => {
3679
- const s = L(n, "growth");
3679
+ const s = O(n, "growth");
3680
3680
  return s === Te.PREFERRED || s === Te.FIXED;
3681
3681
  }).each(function(n) {
3682
3682
  e += n.size;
3683
3683
  }), e;
3684
3684
  }
3685
3685
  getNumOfStretchChildren() {
3686
- return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((e) => L(e, "growth") === Te.STRETCH).size();
3686
+ return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((e) => O(e, "growth") === Te.STRETCH).size();
3687
3687
  }
3688
3688
  render(t = !0) {
3689
- const e = this.model.getOptions(), n = this.parent, { width: s, height: a } = I.getHTMLElementSize(n.node()), r = this.configs.direction === Be.ROW || this.configs.direction === Be.ROW_REVERSE, o = L(this.model.getOptions(), "style", "prefix"), c = n.classed(
3689
+ const e = this.model.getOptions(), n = this.parent, { width: s, height: a } = I.getHTMLElementSize(n.node()), r = this.configs.direction === Be.ROW || this.configs.direction === Be.ROW_REVERSE, o = O(this.model.getOptions(), "style", "prefix"), c = n.classed(
3690
3690
  `${Kt}--${o}--layout-row`,
3691
3691
  this.configs.direction === Be.ROW
3692
3692
  ).classed(
@@ -3705,28 +3705,28 @@ const bs = class bs extends dt {
3705
3705
  c.enter().append("div").merge(n.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
3706
3706
  d.components.forEach((u) => {
3707
3707
  var y;
3708
- const p = D(this), g = L(d, "renderType") === at.SVG;
3708
+ const p = D(this), g = O(d, "renderType") === at.SVG;
3709
3709
  u.setParent(
3710
3710
  g ? I.appendOrSelect(p, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : p
3711
3711
  ), g && !p.select("svg.layout-svg-wrapper").attr("aria-label") && p.select("svg.layout-svg-wrapper").attr("aria-label", ((y = e == null ? void 0 : e.accessibility) == null ? void 0 : y.svgAriaLabel) || (e == null ? void 0 : e.title));
3712
- const m = L(d, "growth");
3712
+ const m = O(d, "growth");
3713
3713
  (m === Te.PREFERRED || m === Te.FIXED) && u.render(t);
3714
3714
  });
3715
3715
  }), n.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(d) {
3716
- const u = L(d, "growth"), f = L(d, "renderType") === at.SVG ? I.getSVGElementSize(D(this).select("svg.layout-svg-wrapper"), {
3716
+ const u = O(d, "growth"), f = O(d, "renderType") === at.SVG ? I.getSVGElementSize(D(this).select("svg.layout-svg-wrapper"), {
3717
3717
  useBBox: !0
3718
3718
  }) : I.getHTMLElementSize(this);
3719
3719
  if (u === Te.PREFERRED) {
3720
3720
  const g = r ? f.width : f.height, m = r ? s : a;
3721
3721
  d.size = g / m * 100;
3722
3722
  }
3723
- }), c.exit().remove(), this.children.filter((d) => L(d, "growth") === Te.STRETCH).forEach((d) => {
3723
+ }), c.exit().remove(), this.children.filter((d) => O(d, "growth") === Te.STRETCH).forEach((d) => {
3724
3724
  d.size = (100 - +this.getPreferedAndFixedSizeSum()) / +this.getNumOfStretchChildren();
3725
3725
  });
3726
3726
  const h = n.selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
3727
3727
  r ? h.style("width", (d) => `${d.size / 100 * s}px`).style("height", "100%") : h.style("height", (d) => `${d.size / 100 * a}px`).style("width", "100%"), h.each(function(d) {
3728
3728
  d.components.forEach((u) => {
3729
- L(d, "growth") === Te.STRETCH && u.render(t);
3729
+ O(d, "growth") === Te.STRETCH && u.render(t);
3730
3730
  });
3731
3731
  });
3732
3732
  }
@@ -3783,7 +3783,7 @@ class om extends dt {
3783
3783
  this.services.events.removeEventListener(T.Modal.SHOW, this.handleShowModal);
3784
3784
  }
3785
3785
  getModalHTML() {
3786
- const t = this.services.domUtils.getChartID(), e = this.model.getOptions(), { title: n, downloadAsCSV: s } = L(e, "locale", "translations", "tabularRep"), a = L(e, "style", "prefix"), r = this.model.getTabularDataArray();
3786
+ const t = this.services.domUtils.getChartID(), e = this.model.getOptions(), { title: n, downloadAsCSV: s } = O(e, "locale", "translations", "tabularRep"), a = O(e, "style", "prefix"), r = this.model.getTabularDataArray();
3787
3787
  return `
3788
3788
  <div class="cds--modal-container">
3789
3789
  <div class="cds--modal-header">
@@ -3835,7 +3835,7 @@ class om extends dt {
3835
3835
  render(t = !1) {
3836
3836
  const e = this.model.getOptions();
3837
3837
  if (!this.isEventListenerAdded) {
3838
- const n = D(this.services.domUtils.getHolder()), s = L(e, "style", "prefix");
3838
+ const n = D(this.services.domUtils.getHolder()), s = O(e, "style", "prefix");
3839
3839
  this.modal = I.appendOrSelect(n, `div.${Kt}--${s}--modal`), this.addEventListeners(), this.isEventListenerAdded = !0;
3840
3840
  }
3841
3841
  }
@@ -3851,7 +3851,7 @@ class Id extends dt {
3851
3851
  // @ts-ignore
3852
3852
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3853
3853
  render(t = !1) {
3854
- const e = this.getComponentContainer(), n = L(this.getOptions(), "title"), s = e.selectAll("p.title").data([n]);
3854
+ const e = this.getComponentContainer(), n = O(this.getOptions(), "title"), s = e.selectAll("p.title").data([n]);
3855
3855
  if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) => he(a)), s.node() && s.node().offsetWidth < s.node().scrollWidth) {
3856
3856
  const a = this;
3857
3857
  s.on("mouseover", function(r) {
@@ -3928,15 +3928,15 @@ class Rd extends dt {
3928
3928
  // @ts-ignore
3929
3929
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3930
3930
  render(t = !1) {
3931
- const e = this.getOptions(), n = L(e, "legend"), s = L(n, "alignment"), a = L(e, "legend", "orientation");
3931
+ const e = this.getOptions(), n = O(e, "legend"), s = O(n, "alignment"), a = O(e, "legend", "orientation");
3932
3932
  let r = this.model.getDataGroups();
3933
- const { DISABLED: o } = At.items.status, c = r.some((S) => S.status === o), l = L(n, "order"), h = this.getComponentContainer().classed("center-aligned", s === te.CENTER).classed("right-aligned", s === te.RIGHT).classed(a, !0).classed("has-deactivated-items", c).attr("role", lt.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
3933
+ const { DISABLED: o } = At.items.status, c = r.some((S) => S.status === o), l = O(n, "order"), h = this.getComponentContainer().classed("center-aligned", s === te.CENTER).classed("right-aligned", s === te.RIGHT).classed(a, !0).classed("has-deactivated-items", c).attr("role", lt.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
3934
3934
  l && (r = this.sortDataGroups(r, l));
3935
3935
  const d = h.selectAll("div.legend-item").data(r, (S) => S.name), u = d.enter().append("div").attr("class", "legend-item");
3936
3936
  u.merge(h.selectAll("div.legend-item")).classed("active", function(S) {
3937
3937
  return S.status === At.items.status.ACTIVE;
3938
3938
  });
3939
- const p = L(this.getOptions(), "legend", "clickable");
3939
+ const p = O(this.getOptions(), "legend", "clickable");
3940
3940
  h.classed("clickable", p && r.length > 1);
3941
3941
  const f = At.checkbox.radius, g = u.append("div").classed("checkbox", !0), m = g.merge(d.select("div.checkbox")).attr("role", lt.CHECKBOX).attr("tabindex", p ? 0 : -1).attr(
3942
3942
  "aria-labelledby",
@@ -3955,7 +3955,7 @@ class Rd extends dt {
3955
3955
  return S.status === At.items.status.ACTIVE;
3956
3956
  });
3957
3957
  g.append("svg").attr("focusable", !1).attr("preserveAspectRatio", "xMidYMid meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", "11").attr("height", "11").attr("viewBox", "0 0 31 28").attr("aria-hidden", !0).style("will-change", "transform").append("path").attr("d", "M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"), u.append("p").merge(d.select("p"));
3958
- const y = L(e, "legend", "additionalItems");
3958
+ const y = O(e, "legend", "additionalItems");
3959
3959
  if (y && r.length) {
3960
3960
  const S = this, v = h.selectAll("div.additional-item").data(y);
3961
3961
  v.exit().remove();
@@ -4003,7 +4003,7 @@ class Rd extends dt {
4003
4003
  const { iconData: r } = At.quartile;
4004
4004
  t.selectAll("rect").attr("role", lt.IMG).attr("aria-label", "quartile").data(r).enter().append("rect").attr("class", (c, l) => `quartile-${l === 0 ? "wrapper" : "line"}`).attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height);
4005
4005
  } else if (e.type === Ae.ZOOM) {
4006
- const { iconData: r, color: o } = L(At, "zoom"), c = t.attr("role", lt.IMG).attr("aria-label", "zoom").selectAll("g.icon").data(r).enter();
4006
+ const { iconData: r, color: o } = O(At, "zoom"), c = t.attr("role", lt.IMG).attr("aria-label", "zoom").selectAll("g.icon").data(r).enter();
4007
4007
  c.append("g").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).append("polygon").attr(
4008
4008
  "points",
4009
4009
  "7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82"
@@ -4014,7 +4014,7 @@ class Rd extends dt {
4014
4014
  }
4015
4015
  }
4016
4016
  truncateLegendText() {
4017
- const t = this.getComponentContainer(), e = L(this.getOptions(), "legend", "truncation"), n = L(e, "type"), s = L(e, "threshold"), a = L(e, "numCharacter"), r = t.selectAll("div.legend-item p");
4017
+ const t = this.getComponentContainer(), e = O(this.getOptions(), "legend", "truncation"), n = O(e, "type"), s = O(e, "threshold"), a = O(e, "numCharacter"), r = t.selectAll("div.legend-item p");
4018
4018
  r.attr("id", function() {
4019
4019
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
4020
4020
  }), n !== Ke.NONE ? r.html(function(o) {
@@ -4023,7 +4023,7 @@ class Rd extends dt {
4023
4023
  }) : r.html((o) => he(o.name));
4024
4024
  }
4025
4025
  addEventListeners() {
4026
- const t = this, e = this.getComponentContainer(), n = this.getOptions(), s = L(n, "legend"), a = L(s, "truncation");
4026
+ const t = this, e = this.getComponentContainer(), n = this.getOptions(), s = O(n, "legend"), a = O(s, "truncation");
4027
4027
  e.selectAll("div.legend-item").on("mouseover", function(r) {
4028
4028
  t.services.events.dispatchEvent(T.Legend.ITEM_HOVER, {
4029
4029
  hoveredElement: D(this)
@@ -4236,7 +4236,7 @@ class Nd extends dt {
4236
4236
  const c = this.formatItems(this.getItems(s));
4237
4237
  s.detail.content ? o = `<div class="title-tooltip"><p>${ts(s.detail.content)}</p></div>` : o = ts(this.getTooltipHTML(c));
4238
4238
  const l = I.appendOrSelect(this.tooltip, "div.content-box");
4239
- if (L(this.getOptions(), "tooltip", "customHTML"))
4239
+ if (O(this.getOptions(), "tooltip", "customHTML"))
4240
4240
  if (s.detail.content) {
4241
4241
  const h = `<div class="title-tooltip"><p>${ts(
4242
4242
  s.detail.content
@@ -4270,7 +4270,7 @@ class Nd extends dt {
4270
4270
  return t.detail.items ? t.detail.items : [];
4271
4271
  }
4272
4272
  formatItems(t) {
4273
- const e = this.getOptions(), n = L(e, "tooltip", "truncation", "type"), s = L(e, "tooltip", "truncation", "threshold"), a = L(e, "tooltip", "truncation", "numCharacter");
4273
+ const e = this.getOptions(), n = O(e, "tooltip", "truncation", "type"), s = O(e, "tooltip", "truncation", "threshold"), a = O(e, "tooltip", "truncation", "numCharacter");
4274
4274
  return n !== Ke.NONE ? t.map((r) => {
4275
4275
  const o = r.labelIcon ? 12 : 0;
4276
4276
  return r.value = r.value ? this.valueFormatter(r.value, r.label) : r.value, r.label && r.label.length + o > s && (r.label = wn(r.label, n, a)), r.value && r.value.length > s && (r.value = wn(r.value, n, a)), r;
@@ -4294,11 +4294,11 @@ class Nd extends dt {
4294
4294
  return t instanceof Date;
4295
4295
  }
4296
4296
  valueFormatter(t, e) {
4297
- const n = this.getOptions(), s = L(n, "tooltip", "valueFormatter"), {
4297
+ const n = this.getOptions(), s = O(n, "tooltip", "valueFormatter"), {
4298
4298
  code: a,
4299
4299
  number: r,
4300
4300
  date: o
4301
- } = L(n, "locale");
4301
+ } = O(n, "locale");
4302
4302
  if (s)
4303
4303
  return s(t, e);
4304
4304
  if (this.isDate(t))
@@ -4320,9 +4320,9 @@ class Nd extends dt {
4320
4320
  // @ts-ignore
4321
4321
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4322
4322
  render(t = !1) {
4323
- const e = this.getOptions(), n = L(e, "tooltip", "enabled");
4323
+ const e = this.getOptions(), n = O(e, "tooltip", "enabled");
4324
4324
  if (n) {
4325
- const s = D(this.services.domUtils.getHolder()), a = L(e, "style", "prefix");
4325
+ const s = D(this.services.domUtils.getHolder()), a = O(e, "style", "prefix");
4326
4326
  this.tooltip = I.appendOrSelect(s, `div.${Kt}--${a}--tooltip`), this.tooltip.style("max-width", null).attr("role", "tooltip"), this.isEventListenerAdded || (this.addTooltipEventListener(), this.isEventListenerAdded = !0), this.tooltip.classed("hidden", !0);
4327
4327
  } else !n && this.isEventListenerAdded && (this.removeTooltipEventListener(), this.isEventListenerAdded = !1);
4328
4328
  }
@@ -4331,11 +4331,11 @@ class Nd extends dt {
4331
4331
  return e == Lt.LEFT ? s.left -= n : e == Lt.RIGHT ? s.left += n : e == Lt.TOP ? s.top -= n : e == Lt.BOTTOM && (s.top += n), s;
4332
4332
  }
4333
4333
  positionTooltip(t) {
4334
- const e = this.services.domUtils.getHolder(), n = e.offsetWidth, s = e.offsetHeight, a = this.tooltip.node(), r = this.getOptions(), o = L(r, "zoomBar", "top", "enabled"), c = !!L(t, "detail", "noWrap"), l = Array.isArray(L(t, "detail", "placements")), h = l ? L(t, "detail", "placements") : [Lt.RIGHT, Lt.LEFT, Lt.TOP, Lt.BOTTOM];
4334
+ const e = this.services.domUtils.getHolder(), n = e.offsetWidth, s = e.offsetHeight, a = this.tooltip.node(), r = this.getOptions(), o = O(r, "zoomBar", "top", "enabled"), c = !!O(t, "detail", "noWrap"), l = Array.isArray(O(t, "detail", "placements")), h = l ? O(t, "detail", "placements") : [Lt.RIGHT, Lt.LEFT, Lt.TOP, Lt.BOTTOM];
4335
4335
  let d, { horizontalOffset: u } = Ea;
4336
4336
  const { defaultOffset: p } = Ea;
4337
4337
  if (this.tooltip.select("div.title-tooltip").classed("title-tooltip-nowrap", c), l) {
4338
- const m = L(t, "detail", "event", "target"), y = this.services.domUtils.getElementOffset(m, !0);
4338
+ const m = O(t, "detail", "event", "target"), y = this.services.domUtils.getElementOffset(m, !0);
4339
4339
  d = this.positionService.findBestPlacementAt(
4340
4340
  y,
4341
4341
  a,
@@ -4356,11 +4356,11 @@ class Nd extends dt {
4356
4356
  S = this.addOffsetByPlacement(S, d, p), this.positionService.setElement(a, S);
4357
4357
  return;
4358
4358
  }
4359
- let f = L(t, "detail", "mousePosition");
4359
+ let f = O(t, "detail", "mousePosition");
4360
4360
  if (!f)
4361
- f = nn(L(t, "detail", "event"), e);
4361
+ f = nn(O(t, "detail", "event"), e);
4362
4362
  else {
4363
- const m = L(r, "zoomBar", "top", "type"), y = jt.height[m];
4363
+ const m = O(r, "zoomBar", "top", "type"), y = jt.height[m];
4364
4364
  o && (f[1] += y + jt.spacerHeight);
4365
4365
  }
4366
4366
  f[0] / n > 0.9 ? d = Lt.LEFT : f[0] / n < 0.1 ? d = Lt.RIGHT : d = this.positionService.findBestPlacementAt(
@@ -4459,7 +4459,7 @@ class cm extends dt {
4459
4459
  }
4460
4460
  init() {
4461
4461
  this.services.events.addEventListener(T.ZoomBar.UPDATE, this.render.bind(this));
4462
- const t = L(this.getOptions(), "zoomBar", J.TOP, "data");
4462
+ const t = O(this.getOptions(), "zoomBar", J.TOP, "data");
4463
4463
  this.model.setZoomBarData(t);
4464
4464
  }
4465
4465
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -4468,7 +4468,7 @@ class cm extends dt {
4468
4468
  render(t = !0) {
4469
4469
  const e = this.getComponentContainer({
4470
4470
  ariaLabel: "zoom bar"
4471
- }), n = this.services.zoom.isZoomBarLoading(J.TOP), s = this.services.zoom.isZoomBarLocked(J.TOP), a = L(this.getOptions(), "zoomBar", J.TOP, "type"), r = L(this.getOptions(), "axes", J.BOTTOM, "highlights"), o = jt.height[a], { width: c } = I.getSVGElementSize(this.parent, {
4471
+ }), n = this.services.zoom.isZoomBarLoading(J.TOP), s = this.services.zoom.isZoomBarLocked(J.TOP), a = O(this.getOptions(), "zoomBar", J.TOP, "type"), r = O(this.getOptions(), "axes", J.BOTTOM, "highlights"), o = jt.height[a], { width: c } = I.getSVGElementSize(this.parent, {
4472
4472
  useAttrs: !0
4473
4473
  });
4474
4474
  if (c === 0)
@@ -4495,7 +4495,7 @@ class cm extends dt {
4495
4495
  this.xScale = p.copy(), this.yScale = f.copy();
4496
4496
  const y = this.services.zoom.getDefaultZoomBarDomain(m);
4497
4497
  m = this.compensateDataForDefaultDomain(m, y);
4498
- const S = this.model.get("initialZoomDomain"), v = L(
4498
+ const S = this.model.get("initialZoomDomain"), v = O(
4499
4499
  this.getOptions(),
4500
4500
  "zoomBar",
4501
4501
  J.TOP,
@@ -4546,7 +4546,7 @@ class cm extends dt {
4546
4546
  const s = (o) => {
4547
4547
  const c = o.selection;
4548
4548
  c === null ? this.handleBrushedEvent(o, t, this.xScale, this.xScale.range()) : c[0] === c[1] || this.handleBrushedEvent(o, t, this.xScale, c);
4549
- }, a = L(this.getOptions(), "zoomBar", J.TOP, "type"), r = jt.height[a];
4549
+ }, a = O(this.getOptions(), "zoomBar", J.TOP, "type"), r = jt.height[a];
4550
4550
  this.brush.extent([
4551
4551
  [e, 0],
4552
4552
  [n, r]
@@ -4569,7 +4569,7 @@ class cm extends dt {
4569
4569
  }
4570
4570
  }
4571
4571
  updateBrushHandle(t, e) {
4572
- const n = this, s = jt.handleWidth, a = L(this.getOptions(), "zoomBar", J.TOP, "type"), r = jt.height[a], o = -s / 2, c = jt.handleBarWidth, l = a === ze.GRAPH_VIEW ? jt.handleBarHeight : 6, h = -c / 2, d = (r - l) / 2;
4572
+ const n = this, s = jt.handleWidth, a = O(this.getOptions(), "zoomBar", J.TOP, "type"), r = jt.height[a], o = -s / 2, c = jt.handleBarWidth, l = a === ze.GRAPH_VIEW ? jt.handleBarHeight : 6, h = -c / 2, d = (r - l) / 2;
4573
4573
  t.select(this.brushSelector).selectAll("rect.handle").data([{ type: "w" }, { type: "e" }]).attr("x", function(p) {
4574
4574
  if (p.type === "w")
4575
4575
  return Math.max(e[0] + o, n.maxSelectionRange[0]);
@@ -4600,11 +4600,11 @@ class cm extends dt {
4600
4600
  );
4601
4601
  }
4602
4602
  updateSliderSelectedArea(t) {
4603
- const e = L(this.getOptions(), "zoomBar", J.TOP, "type"), n = jt.height[e], a = this.getComponentContainer().select("svg.zoom-container");
4603
+ const e = O(this.getOptions(), "zoomBar", J.TOP, "type"), n = jt.height[e], a = this.getComponentContainer().select("svg.zoom-container");
4604
4604
  I.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", t[0]).attr("y", n / 2 - 1).attr("width", t[1] - t[0]).attr("height", 2);
4605
4605
  }
4606
4606
  renderZoomBarArea(t, e, n, s) {
4607
- const { cartesianScales: a } = this.services, r = a.getMainXAxisPosition(), o = a.getMainYAxisPosition(), c = a.getMainXScaleType(), l = a.getMainYScaleType(), h = (y, S, v) => (E) => a.getValueFromScale(y, S, v, E), d = h(this.xScale, c, r), u = h(this.yScale, l, o), p = L(this.getOptions(), "zoomBar", J.TOP, "type"), f = jt.height[p], g = ji().x((y) => d(y)).y0(f).y1((y) => f - u(y)), m = I.appendOrSelect(t, e).datum(n).attr("d", g);
4607
+ const { cartesianScales: a } = this.services, r = a.getMainXAxisPosition(), o = a.getMainYAxisPosition(), c = a.getMainXScaleType(), l = a.getMainYScaleType(), h = (y, S, v) => (E) => a.getValueFromScale(y, S, v, E), d = h(this.xScale, c, r), u = h(this.yScale, l, o), p = O(this.getOptions(), "zoomBar", J.TOP, "type"), f = jt.height[p], g = ji().x((y) => d(y)).y0(f).y1((y) => f - u(y)), m = I.appendOrSelect(t, e).datum(n).attr("d", g);
4608
4608
  s && m.attr("clip-path", `url(#${s})`);
4609
4609
  }
4610
4610
  updateClipPath(t, e, n, s, a, r) {
@@ -4627,7 +4627,7 @@ class cm extends dt {
4627
4627
  return n;
4628
4628
  }
4629
4629
  renderZoomBarBaseline(t, e, n, s = !1) {
4630
- const a = L(
4630
+ const a = O(
4631
4631
  this.model.getOptions(),
4632
4632
  "zoomBar",
4633
4633
  J.TOP,
@@ -4642,7 +4642,7 @@ class cm extends dt {
4642
4642
  );
4643
4643
  }
4644
4644
  renderSkeleton(t, e, n) {
4645
- this.renderZoomBarArea(t, "path.zoom-graph-area-unselected", [], null), this.renderZoomBarArea(t, "path.zoom-graph-area", [], this.clipId), this.brush.on("start brush end", null), I.appendOrSelect(this.getComponentContainer(), this.brushSelector).html(null), L(this.getOptions(), "zoomBar", J.TOP, "type") === ze.GRAPH_VIEW && this.renderZoomBarBaseline(t, e, n, !0);
4645
+ this.renderZoomBarArea(t, "path.zoom-graph-area-unselected", [], null), this.renderZoomBarArea(t, "path.zoom-graph-area", [], this.clipId), this.brush.on("start brush end", null), I.appendOrSelect(this.getComponentContainer(), this.brushSelector).html(null), O(this.getOptions(), "zoomBar", J.TOP, "type") === ze.GRAPH_VIEW && this.renderZoomBarBaseline(t, e, n, !0);
4646
4646
  }
4647
4647
  destroy() {
4648
4648
  this.brush.on("start brush end", null), this.services.events.removeEventListener(T.ZoomBar.UPDATE, this.render.bind(this));
@@ -4653,7 +4653,7 @@ class um extends dt {
4653
4653
  super(t, e), this.type = "threshold", this.renderType = at.SVG, this.positionService = new Cs();
4654
4654
  }
4655
4655
  render(t = !1) {
4656
- const e = L(this.getOptions(), "axes"), n = [];
4656
+ const e = O(this.getOptions(), "axes"), n = [];
4657
4657
  Object.keys(e).forEach((u) => {
4658
4658
  if (Object.values(J).includes(u)) {
4659
4659
  const p = e[u];
@@ -4722,18 +4722,18 @@ class um extends dt {
4722
4722
  }), this.appendThresholdLabel(), this.addEventListeners();
4723
4723
  }
4724
4724
  getFormattedValue(t) {
4725
- const { value: e, axisPosition: n } = t, s = this.getOptions(), a = this.services.cartesianScales.getScaleTypeByPosition(n), { code: r, number: o } = L(s, "locale");
4725
+ const { value: e, axisPosition: n } = t, s = this.getOptions(), a = this.services.cartesianScales.getScaleTypeByPosition(n), { code: r, number: o } = O(s, "locale");
4726
4726
  if (a === kt.TIME) {
4727
- const c = [J.LEFT, J.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = L(s, "timeScale"), p = ui(
4727
+ const c = [J.LEFT, J.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = O(s, "timeScale"), p = ui(
4728
4728
  d.ticks(),
4729
- L(u, "timeInterval")
4729
+ O(u, "timeInterval")
4730
4730
  );
4731
4731
  return hi(e, 0, d.ticks(), p, u, s.locale);
4732
4732
  }
4733
4733
  return o(e, r);
4734
4734
  }
4735
4735
  appendThresholdLabel() {
4736
- const t = D(this.services.domUtils.getHolder()), e = L(this.getOptions(), "style", "prefix");
4736
+ const t = D(this.services.domUtils.getHolder()), e = O(this.getOptions(), "style", "prefix");
4737
4737
  this.label = I.appendOrSelect(
4738
4738
  t,
4739
4739
  `div.${Kt}--${e}--threshold--label`
@@ -4770,7 +4770,7 @@ class um extends dt {
4770
4770
  // Constructs object to pass in scale functions
4771
4771
  constructDatumObj(t, e) {
4772
4772
  const n = {};
4773
- return t.correspondingDatasets && (n.group = L(t, "correspondingDatasets", 0)), n[t.mapsTo] = e.value, n;
4773
+ return t.correspondingDatasets && (n.group = O(t, "correspondingDatasets", 0)), n[t.mapsTo] = e.value, n;
4774
4774
  }
4775
4775
  addEventListeners() {
4776
4776
  const t = this;
@@ -4794,7 +4794,7 @@ class hm extends dt {
4794
4794
  super(t, e), this.type = "highlight", this.renderType = at.SVG, this.positionService = new Cs(), this.highlightStrokeWidth = 1;
4795
4795
  }
4796
4796
  render(t = !1) {
4797
- const e = L(this.getOptions(), "axes"), n = [];
4797
+ const e = O(this.getOptions(), "axes"), n = [];
4798
4798
  Object.keys(e).forEach((u) => {
4799
4799
  if (Object.values(J).includes(u)) {
4800
4800
  const p = e[u];
@@ -4923,7 +4923,7 @@ class dm extends Nd {
4923
4923
  })
4924
4924
  };
4925
4925
  }).sort((u, p) => p.value - u.value)
4926
- ), !r && L(n, "tooltip", "showTotal") === !0)) {
4926
+ ), !r && O(n, "tooltip", "showTotal") === !0)) {
4927
4927
  const u = s.getRangeIdentifier();
4928
4928
  d.push({
4929
4929
  label: xt(n, "locale.translations.total") || xt(n, "tooltip.totalLabel") || "Total",
@@ -5025,54 +5025,54 @@ function kr({ nodes: i }) {
5025
5025
  function zd() {
5026
5026
  let i = 0, t = 0, e = 1, n = 1, s = 24, a = 8, r, o = Gd, c = Xo, l, h, d = Hd, u = Bd, p = 6;
5027
5027
  function f() {
5028
- const O = { nodes: d.apply(null, arguments), links: u.apply(null, arguments) };
5029
- return g(O), m(O), y(O), S(O), x(O), kr(O), O;
5030
- }
5031
- f.update = function(O) {
5032
- return kr(O), O;
5033
- }, f.nodeId = function(O) {
5034
- return arguments.length ? (o = typeof O == "function" ? O : es(O), f) : o;
5035
- }, f.nodeAlign = function(O) {
5036
- return arguments.length ? (c = typeof O == "function" ? O : es(O), f) : c;
5037
- }, f.nodeSort = function(O) {
5038
- return arguments.length ? (l = O, f) : l;
5039
- }, f.nodeWidth = function(O) {
5040
- return arguments.length ? (s = +O, f) : s;
5041
- }, f.nodePadding = function(O) {
5042
- return arguments.length ? (a = r = +O, f) : a;
5043
- }, f.nodes = function(O) {
5044
- return arguments.length ? (d = typeof O == "function" ? O : es(O), f) : d;
5045
- }, f.links = function(O) {
5046
- return arguments.length ? (u = typeof O == "function" ? O : es(O), f) : u;
5047
- }, f.linkSort = function(O) {
5048
- return arguments.length ? (h = O, f) : h;
5049
- }, f.size = function(O) {
5050
- return arguments.length ? (i = t = 0, e = +O[0], n = +O[1], f) : [e - i, n - t];
5051
- }, f.extent = function(O) {
5052
- return arguments.length ? (i = +O[0][0], e = +O[1][0], t = +O[0][1], n = +O[1][1], f) : [[i, t], [e, n]];
5053
- }, f.iterations = function(O) {
5054
- return arguments.length ? (p = +O, f) : p;
5028
+ const L = { nodes: d.apply(null, arguments), links: u.apply(null, arguments) };
5029
+ return g(L), m(L), y(L), S(L), x(L), kr(L), L;
5030
+ }
5031
+ f.update = function(L) {
5032
+ return kr(L), L;
5033
+ }, f.nodeId = function(L) {
5034
+ return arguments.length ? (o = typeof L == "function" ? L : es(L), f) : o;
5035
+ }, f.nodeAlign = function(L) {
5036
+ return arguments.length ? (c = typeof L == "function" ? L : es(L), f) : c;
5037
+ }, f.nodeSort = function(L) {
5038
+ return arguments.length ? (l = L, f) : l;
5039
+ }, f.nodeWidth = function(L) {
5040
+ return arguments.length ? (s = +L, f) : s;
5041
+ }, f.nodePadding = function(L) {
5042
+ return arguments.length ? (a = r = +L, f) : a;
5043
+ }, f.nodes = function(L) {
5044
+ return arguments.length ? (d = typeof L == "function" ? L : es(L), f) : d;
5045
+ }, f.links = function(L) {
5046
+ return arguments.length ? (u = typeof L == "function" ? L : es(L), f) : u;
5047
+ }, f.linkSort = function(L) {
5048
+ return arguments.length ? (h = L, f) : h;
5049
+ }, f.size = function(L) {
5050
+ return arguments.length ? (i = t = 0, e = +L[0], n = +L[1], f) : [e - i, n - t];
5051
+ }, f.extent = function(L) {
5052
+ return arguments.length ? (i = +L[0][0], e = +L[1][0], t = +L[0][1], n = +L[1][1], f) : [[i, t], [e, n]];
5053
+ }, f.iterations = function(L) {
5054
+ return arguments.length ? (p = +L, f) : p;
5055
5055
  };
5056
- function g({ nodes: O, links: P }) {
5057
- for (const [C, V] of O.entries())
5056
+ function g({ nodes: L, links: P }) {
5057
+ for (const [C, V] of L.entries())
5058
5058
  V.index = C, V.sourceLinks = [], V.targetLinks = [];
5059
- const $ = new Map(O.map((C, V) => [o(C, V, O), C]));
5059
+ const $ = new Map(L.map((C, V) => [o(C, V, L), C]));
5060
5060
  for (const [C, V] of P.entries()) {
5061
5061
  V.index = C;
5062
5062
  let { source: q, target: X } = V;
5063
5063
  typeof q != "object" && (q = V.source = Cr($, q)), typeof X != "object" && (X = V.target = Cr($, X)), q.sourceLinks.push(V), X.targetLinks.push(V);
5064
5064
  }
5065
5065
  if (h != null)
5066
- for (const { sourceLinks: C, targetLinks: V } of O)
5066
+ for (const { sourceLinks: C, targetLinks: V } of L)
5067
5067
  C.sort(h), V.sort(h);
5068
5068
  }
5069
- function m({ nodes: O }) {
5070
- for (const P of O)
5069
+ function m({ nodes: L }) {
5070
+ for (const P of L)
5071
5071
  P.value = P.fixedValue === void 0 ? Math.max(oi(P.sourceLinks, li), oi(P.targetLinks, li)) : P.fixedValue;
5072
5072
  }
5073
- function y({ nodes: O }) {
5074
- const P = O.length;
5075
- let $ = new Set(O), C = /* @__PURE__ */ new Set(), V = 0;
5073
+ function y({ nodes: L }) {
5074
+ const P = L.length;
5075
+ let $ = new Set(L), C = /* @__PURE__ */ new Set(), V = 0;
5076
5076
  for (; $.size; ) {
5077
5077
  for (const q of $) {
5078
5078
  q.depth = V;
@@ -5083,9 +5083,9 @@ function zd() {
5083
5083
  $ = C, C = /* @__PURE__ */ new Set();
5084
5084
  }
5085
5085
  }
5086
- function S({ nodes: O }) {
5087
- const P = O.length;
5088
- let $ = new Set(O), C = /* @__PURE__ */ new Set(), V = 0;
5086
+ function S({ nodes: L }) {
5087
+ const P = L.length;
5088
+ let $ = new Set(L), C = /* @__PURE__ */ new Set(), V = 0;
5089
5089
  for (; $.size; ) {
5090
5090
  for (const q of $) {
5091
5091
  q.height = V;
@@ -5096,9 +5096,9 @@ function zd() {
5096
5096
  $ = C, C = /* @__PURE__ */ new Set();
5097
5097
  }
5098
5098
  }
5099
- function v({ nodes: O }) {
5100
- const P = Ar(O, (V) => V.depth) + 1, $ = (e - i - s) / (P - 1), C = new Array(P);
5101
- for (const V of O) {
5099
+ function v({ nodes: L }) {
5100
+ const P = Ar(L, (V) => V.depth) + 1, $ = (e - i - s) / (P - 1), C = new Array(P);
5101
+ for (const V of L) {
5102
5102
  const q = Math.max(0, Math.min(P - 1, Math.floor(c.call(null, V, P))));
5103
5103
  V.layer = q, V.x0 = i + q * $, V.x1 = V.x0 + s, C[q] ? C[q].push(V) : C[q] = [V];
5104
5104
  }
@@ -5106,9 +5106,9 @@ function zd() {
5106
5106
  V.sort(l);
5107
5107
  return C;
5108
5108
  }
5109
- function E(O) {
5110
- const P = Pd(O, ($) => (n - t - ($.length - 1) * r) / oi($, li));
5111
- for (const $ of O) {
5109
+ function E(L) {
5110
+ const P = Pd(L, ($) => (n - t - ($.length - 1) * r) / oi($, li));
5111
+ for (const $ of L) {
5112
5112
  let C = t;
5113
5113
  for (const V of $) {
5114
5114
  V.y0 = C, V.y1 = C + V.value * P, C = V.y1 + r;
@@ -5123,17 +5123,17 @@ function zd() {
5123
5123
  H($);
5124
5124
  }
5125
5125
  }
5126
- function x(O) {
5127
- const P = v(O);
5126
+ function x(L) {
5127
+ const P = v(L);
5128
5128
  r = Math.min(a, (n - t) / (Ar(P, ($) => $.length) - 1)), E(P);
5129
5129
  for (let $ = 0; $ < p; ++$) {
5130
5130
  const C = Math.pow(0.99, $), V = Math.max(1 - C, ($ + 1) / p);
5131
5131
  _(P, C, V), b(P, C, V);
5132
5132
  }
5133
5133
  }
5134
- function b(O, P, $) {
5135
- for (let C = 1, V = O.length; C < V; ++C) {
5136
- const q = O[C];
5134
+ function b(L, P, $) {
5135
+ for (let C = 1, V = L.length; C < V; ++C) {
5136
+ const q = L[C];
5137
5137
  for (const X of q) {
5138
5138
  let F = 0, Z = 0;
5139
5139
  for (const { source: j, value: Y } of X.targetLinks) {
@@ -5147,9 +5147,9 @@ function zd() {
5147
5147
  l === void 0 && q.sort(Ss), k(q, $);
5148
5148
  }
5149
5149
  }
5150
- function _(O, P, $) {
5151
- for (let C = O.length, V = C - 2; V >= 0; --V) {
5152
- const q = O[V];
5150
+ function _(L, P, $) {
5151
+ for (let C = L.length, V = C - 2; V >= 0; --V) {
5152
+ const q = L[V];
5153
5153
  for (const X of q) {
5154
5154
  let F = 0, Z = 0;
5155
5155
  for (const { target: j, value: Y } of X.sourceLinks) {
@@ -5163,54 +5163,54 @@ function zd() {
5163
5163
  l === void 0 && q.sort(Ss), k(q, $);
5164
5164
  }
5165
5165
  }
5166
- function k(O, P) {
5167
- const $ = O.length >> 1, C = O[$];
5168
- R(O, C.y0 - r, $ - 1, P), G(O, C.y1 + r, $ + 1, P), R(O, n, O.length - 1, P), G(O, t, 0, P);
5166
+ function k(L, P) {
5167
+ const $ = L.length >> 1, C = L[$];
5168
+ R(L, C.y0 - r, $ - 1, P), G(L, C.y1 + r, $ + 1, P), R(L, n, L.length - 1, P), G(L, t, 0, P);
5169
5169
  }
5170
- function G(O, P, $, C) {
5171
- for (; $ < O.length; ++$) {
5172
- const V = O[$], q = (P - V.y0) * C;
5170
+ function G(L, P, $, C) {
5171
+ for (; $ < L.length; ++$) {
5172
+ const V = L[$], q = (P - V.y0) * C;
5173
5173
  q > 1e-6 && (V.y0 += q, V.y1 += q), P = V.y1 + r;
5174
5174
  }
5175
5175
  }
5176
- function R(O, P, $, C) {
5176
+ function R(L, P, $, C) {
5177
5177
  for (; $ >= 0; --$) {
5178
- const V = O[$], q = (V.y1 - P) * C;
5178
+ const V = L[$], q = (V.y1 - P) * C;
5179
5179
  q > 1e-6 && (V.y0 -= q, V.y1 -= q), P = V.y0 - r;
5180
5180
  }
5181
5181
  }
5182
- function A({ sourceLinks: O, targetLinks: P }) {
5182
+ function A({ sourceLinks: L, targetLinks: P }) {
5183
5183
  if (h === void 0) {
5184
5184
  for (const { source: { sourceLinks: $ } } of P)
5185
5185
  $.sort(wr);
5186
- for (const { target: { targetLinks: $ } } of O)
5186
+ for (const { target: { targetLinks: $ } } of L)
5187
5187
  $.sort(Mr);
5188
5188
  }
5189
5189
  }
5190
- function H(O) {
5190
+ function H(L) {
5191
5191
  if (h === void 0)
5192
- for (const { sourceLinks: P, targetLinks: $ } of O)
5192
+ for (const { sourceLinks: P, targetLinks: $ } of L)
5193
5193
  P.sort(wr), $.sort(Mr);
5194
5194
  }
5195
- function N(O, P) {
5196
- let $ = O.y0 - (O.sourceLinks.length - 1) * r / 2;
5197
- for (const { target: C, width: V } of O.sourceLinks) {
5195
+ function N(L, P) {
5196
+ let $ = L.y0 - (L.sourceLinks.length - 1) * r / 2;
5197
+ for (const { target: C, width: V } of L.sourceLinks) {
5198
5198
  if (C === P) break;
5199
5199
  $ += V + r;
5200
5200
  }
5201
5201
  for (const { source: C, width: V } of P.targetLinks) {
5202
- if (C === O) break;
5202
+ if (C === L) break;
5203
5203
  $ -= V;
5204
5204
  }
5205
5205
  return $;
5206
5206
  }
5207
- function M(O, P) {
5207
+ function M(L, P) {
5208
5208
  let $ = P.y0 - (P.targetLinks.length - 1) * r / 2;
5209
5209
  for (const { source: C, width: V } of P.targetLinks) {
5210
- if (C === O) break;
5210
+ if (C === L) break;
5211
5211
  $ += V + r;
5212
5212
  }
5213
- for (const { target: C, width: V } of O.sourceLinks) {
5213
+ for (const { target: C, width: V } of L.sourceLinks) {
5214
5214
  if (C === P) break;
5215
5215
  $ -= V;
5216
5216
  }
@@ -5335,7 +5335,7 @@ class pm extends dt {
5335
5335
  });
5336
5336
  if (n < 1 || s < 1)
5337
5337
  return;
5338
- const a = this.model.getOptions(), r = this.model.getDisplayData(), o = L(
5338
+ const a = this.model.getOptions(), r = this.model.getDisplayData(), o = O(
5339
5339
  this.getOptions(),
5340
5340
  "color",
5341
5341
  "gradient",
@@ -5343,7 +5343,7 @@ class pm extends dt {
5343
5343
  );
5344
5344
  let c = se.minNodePadding;
5345
5345
  a.alluvial.nodePadding > se.minNodePadding && (c = a.alluvial.nodePadding);
5346
- const l = L(a, "alluvial", "nodeAlignment");
5346
+ const l = O(a, "alluvial", "nodeAlignment");
5347
5347
  let h = Xo;
5348
5348
  l === te.LEFT ? h = $d : l === te.RIGHT && (h = Vd);
5349
5349
  const d = zd().nodeId((v) => v.name).nodeWidth(se.nodeWidth).nodePadding(c).nodeAlign(h).extent([
@@ -5372,7 +5372,7 @@ class pm extends dt {
5372
5372
  });
5373
5373
  const f = e.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
5374
5374
  if (f.exit().remove(), o) {
5375
- const v = L(this.getOptions(), "color", "scale");
5375
+ const v = O(this.getOptions(), "color", "scale");
5376
5376
  v && f.enter().append("linearGradient").attr("id", (E) => `${this.gradient_id}-link-${E.index}`).attr("gradientUnits", "userSpaceOnUse").call(
5377
5377
  (E) => E.append("stop").attr("offset", "0%").attr("stop-color", (x) => v[x.source.name])
5378
5378
  ).call(
@@ -5406,7 +5406,7 @@ class pm extends dt {
5406
5406
  const m = g.append("g").attr(
5407
5407
  "id",
5408
5408
  (v) => this.services.domUtils.generateElementIDString(`alluvial-node-title-${v.index}`)
5409
- ), { code: y, number: S } = L(a, "locale");
5409
+ ), { code: y, number: S } = O(a, "locale");
5410
5410
  m.append("text").attr(
5411
5411
  "id",
5412
5412
  (v) => this.services.domUtils.generateElementIDString(`alluvial-node-text-${v.index}`)
@@ -5428,7 +5428,7 @@ class pm extends dt {
5428
5428
  }), this.addLineEventListener(), this.addNodeEventListener();
5429
5429
  }
5430
5430
  addLineEventListener() {
5431
- const t = this.getOptions(), e = this, { number: n, code: s } = L(this.getOptions(), "locale"), a = pi((r, o = "mouseover") => {
5431
+ const t = this.getOptions(), e = this, { number: n, code: s } = O(this.getOptions(), "locale"), a = pi((r, o = "mouseover") => {
5432
5432
  const c = e.parent.selectAll("path.link").transition().call(
5433
5433
  (l) => e.services.transitions.setupTransition({
5434
5434
  transition: l,
@@ -5574,16 +5574,16 @@ class fm extends dt {
5574
5574
  super(...arguments), this.type = "grid", this.renderType = at.SVG;
5575
5575
  }
5576
5576
  render(t = !0) {
5577
- const e = L(this.getOptions(), "grid", "x", "enabled"), n = L(this.getOptions(), "grid", "y", "enabled");
5577
+ const e = O(this.getOptions(), "grid", "x", "enabled"), n = O(this.getOptions(), "grid", "y", "enabled");
5578
5578
  this.drawBackdrop(e, n), !(!e && !n) && (e && (I.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(t)), n && (I.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(t)));
5579
5579
  }
5580
5580
  drawXGrid(t) {
5581
5581
  const e = this.parent, n = this.backdrop.attr("height"), s = this.services.cartesianScales.getMainXScale(), a = Ui(s).tickSizeInner(-n).tickSizeOuter(0);
5582
- if (L(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
5583
- const c = this.services.cartesianScales.getDomainAxisPosition(), l = L(this.getOptions(), "axes", c, "ticks", "values");
5582
+ if (O(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
5583
+ const c = this.services.cartesianScales.getDomainAxisPosition(), l = O(this.getOptions(), "axes", c, "ticks", "values");
5584
5584
  l && a.tickValues(l);
5585
5585
  } else {
5586
- const c = L(this.getOptions(), "grid", "x", "numberOfTicks");
5586
+ const c = O(this.getOptions(), "grid", "x", "numberOfTicks");
5587
5587
  a.ticks(c);
5588
5588
  }
5589
5589
  const o = e.select(".x.grid").attr("transform", `translate(${-this.backdrop.attr("x")}, ${n})`);
@@ -5597,11 +5597,11 @@ class fm extends dt {
5597
5597
  }
5598
5598
  drawYGrid(t) {
5599
5599
  const e = this.parent, n = this.backdrop.attr("width"), s = this.services.cartesianScales.getMainYScale(), a = uo(s).tickSizeInner(-n).tickSizeOuter(0);
5600
- if (L(this.getOptions(), "grid", "y", "alignWithAxisTicks")) {
5601
- const c = this.services.cartesianScales.getRangeAxisPosition(), l = L(this.getOptions(), "axes", c, "ticks", "values");
5600
+ if (O(this.getOptions(), "grid", "y", "alignWithAxisTicks")) {
5601
+ const c = this.services.cartesianScales.getRangeAxisPosition(), l = O(this.getOptions(), "axes", c, "ticks", "values");
5602
5602
  l && a.tickValues(l);
5603
5603
  } else {
5604
- const c = L(this.getOptions(), "grid", "y", "numberOfTicks");
5604
+ const c = O(this.getOptions(), "grid", "y", "numberOfTicks");
5605
5605
  a.ticks(c);
5606
5606
  }
5607
5607
  const o = e.select(".y.grid").attr("transform", `translate(0, ${-this.backdrop.attr("y")})`);
@@ -5643,7 +5643,7 @@ class fm extends dt {
5643
5643
  * @param position mouse positon
5644
5644
  */
5645
5645
  getActiveGridline(t) {
5646
- const e = L(this.getOptions, "tooltip", "gridline", "threshold"), n = e || this.getGridlineThreshold(t);
5646
+ const e = O(this.getOptions, "tooltip", "gridline", "threshold"), n = e || this.getGridlineThreshold(t);
5647
5647
  return this.parent.selectAll(".x.grid .tick").filter(function() {
5648
5648
  const r = ge(this), o = {
5649
5649
  min: Number(r.tx) - n,
@@ -5697,16 +5697,16 @@ class gm extends dt {
5697
5697
  const { cartesianScales: a } = this.services, r = a.getOrientation(), o = ji().curve(this.services.curves.getD3Curve()).defined((x) => {
5698
5698
  const b = a.getRangeIdentifier(), _ = x[b];
5699
5699
  return _ != null;
5700
- }), c = this.model.getGroupedData(this.configs.groups), l = L(n, "bounds"), h = l && c && c.length === 1;
5700
+ }), c = this.model.getGroupedData(this.configs.groups), l = O(n, "bounds"), h = l && c && c.length === 1;
5701
5701
  !h && l && console.warn(
5702
5702
  `Bounds can only be shown when having 1 single datagroup, you've supplied ${c.length}`
5703
5703
  );
5704
5704
  let d = 0;
5705
5705
  const u = (x, b) => {
5706
- L(n, "axes", x, "includeZero") === !1 && b[0] > 0 && b[1] > 0 && (d = b[0]);
5706
+ O(n, "axes", x, "includeZero") === !1 && b[0] > 0 && b[1] > 0 && (d = b[0]);
5707
5707
  }, p = (x) => h ? a.getBoundedScaledValues(x)[0] : a.getRangeValue(d), f = (x) => h ? a.getBoundedScaledValues(x)[1] : a.getRangeValue(x);
5708
5708
  r === Xt.VERTICAL ? (s = a.getMainYScale().domain(), u(a.getMainYAxisPosition(), s), o.x((x) => a.getDomainValue(x)).y0((x) => p(x)).y1((x) => f(x))) : (s = a.getMainXScale().domain(), u(a.getMainXAxisPosition(), s), o.x0((x) => p(x)).x1((x) => f(x)).y((x) => a.getDomainValue(x)));
5709
- const g = L(n, "color", "gradient", "enabled"), m = c && c.length === 1 && g;
5709
+ const g = O(n, "color", "gradient", "enabled"), m = c && c.length === 1 && g;
5710
5710
  c.length > 1 && g && console.error("Gradients can only be enabled when having 1 single dataset");
5711
5711
  const y = e.selectAll("path.area").data(c, (x) => x.name), S = D(this.services.domUtils.getMainContainer());
5712
5712
  if (y.exit().attr("opacity", 0).remove(), !c.length)
@@ -5724,7 +5724,7 @@ class gm extends dt {
5724
5724
  "stroke"
5725
5725
  );
5726
5726
  else {
5727
- const _ = L(this.model.getOptions(), "color", "scale");
5727
+ const _ = O(this.model.getOptions(), "color", "scale");
5728
5728
  if (_ !== null) {
5729
5729
  const k = Object.keys(_);
5730
5730
  b = _[k[0]];
@@ -5825,7 +5825,7 @@ class mm extends dt {
5825
5825
  }).map((y) => {
5826
5826
  const S = this.services.cartesianScales.getDomainIdentifier(y), v = this.services.cartesianScales.getRangeIdentifier(y);
5827
5827
  return {
5828
- name: L(y, 0, g),
5828
+ name: O(y, 0, g),
5829
5829
  data: y.map((E) => ({
5830
5830
  [S]: E.data.sharedStackKey,
5831
5831
  [g]: E[g],
@@ -5872,13 +5872,13 @@ function ep(i, t) {
5872
5872
  }
5873
5873
  class Zo extends dt {
5874
5874
  constructor() {
5875
- super(...arguments), this.type = "ruler", this.renderType = at.SVG, this.isXGridEnabled = L(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = L(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
5875
+ super(...arguments), this.type = "ruler", this.renderType = at.SVG, this.isXGridEnabled = O(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = O(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
5876
5876
  }
5877
5877
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5878
5878
  // @ts-ignore
5879
5879
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5880
5880
  render(t = !1) {
5881
- const e = L(this.getOptions(), "ruler", "enabled");
5881
+ const e = O(this.getOptions(), "ruler", "enabled");
5882
5882
  this.drawBackdrop(), e && !this.isEventListenerAdded ? this.addBackdropEventListeners() : !e && this.isEventListenerAdded && this.removeBackdropEventListeners();
5883
5883
  }
5884
5884
  removeBackdropEventListeners() {
@@ -6043,7 +6043,7 @@ class Ji extends dt {
6043
6043
  return this.filterBasedOnZoomDomain(n);
6044
6044
  }
6045
6045
  render(t) {
6046
- if (!(L(this.getOptions(), "points", "enabled") || L(this.getOptions(), "bubble", "enabled")))
6046
+ if (!(O(this.getOptions(), "points", "enabled") || O(this.getOptions(), "bubble", "enabled")))
6047
6047
  return;
6048
6048
  const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), s = this.getOptions(), { groupMapsTo: a } = s.data, { cartesianScales: r } = this.services;
6049
6049
  if (!r) throw new Error("Services cartesianScales are undefined.");
@@ -6208,7 +6208,7 @@ class qo extends dt {
6208
6208
  }, n && (this.configs = n), this.margins = this.configs.margins;
6209
6209
  }
6210
6210
  render(t = !0) {
6211
- const { position: e } = this.configs, n = this.getOptions(), s = L(n, "axes", e, "visible"), a = this.getComponentContainer({
6211
+ const { position: e } = this.configs, n = this.getOptions(), s = O(n, "axes", e, "visible"), a = this.getComponentContainer({
6212
6212
  ariaLabel: "axes"
6213
6213
  }), { width: r, height: o } = I.getSVGElementSize(a, {
6214
6214
  useAttrs: !0
@@ -6236,12 +6236,12 @@ class qo extends dt {
6236
6236
  const p = !c.select("g.ticks").empty();
6237
6237
  let f = I.appendOrSelect(c, "g.ticks");
6238
6238
  p || (f.attr("role", `${lt.GRAPHICS_OBJECT} ${lt.GROUP}`), f.attr("aria-label", `${e} ticks`));
6239
- const g = I.appendOrSelect(c, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${e} ticks`), m = L(n, "axes", e), y = this.scaleType === kt.TIME || m.scaleType === kt.TIME, S = e === J.LEFT || e === J.RIGHT, v = this.model.get("zoomDomain");
6239
+ const g = I.appendOrSelect(c, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${e} ticks`), m = O(n, "axes", e), y = this.scaleType === kt.TIME || m.scaleType === kt.TIME, S = e === J.LEFT || e === J.RIGHT, v = this.model.get("zoomDomain");
6240
6240
  if (v && y && !S && d.domain(v), !s) {
6241
6241
  f.attr("aria-hidden", !0);
6242
6242
  return;
6243
6243
  }
6244
- const E = L(m, "scaleType"), x = L(n, "data", "loading"), b = L(m, "ticks", "number"), _ = L(m, "ticks", "values"), k = L(m, "truncation", "type"), G = L(m, "truncation", "threshold"), R = L(m, "truncation", "numCharacter"), A = b !== null, H = L(n, "timeScale"), N = I.appendOrSelect(g, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), O = I.getSVGElementSize(M.node(), {
6244
+ const E = O(m, "scaleType"), x = O(n, "data", "loading"), b = O(m, "ticks", "number"), _ = O(m, "ticks", "values"), k = O(m, "truncation", "type"), G = O(m, "truncation", "threshold"), R = O(m, "truncation", "numCharacter"), A = b !== null, H = O(n, "timeScale"), N = I.appendOrSelect(g, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
6245
6245
  useBBox: !0
6246
6246
  }).height;
6247
6247
  N.remove();
@@ -6250,24 +6250,24 @@ class qo extends dt {
6250
6250
  let Y;
6251
6251
  if (A ? Y = b : (Y = je.ticks.number, S && (Y = this.getNumberOfFittingTicks(
6252
6252
  o,
6253
- O,
6253
+ L,
6254
6254
  je.ticks.verticalSpaceRatio
6255
6255
  ))), d.ticks().length === 1 && d.ticks()[0] === 0 && (Y = 0), $.ticks(Y), y)
6256
6256
  if (!d.ticks(Y).length)
6257
6257
  $.tickValues([]);
6258
6258
  else {
6259
- const K = L(n, "timeScale", "addSpaceOnEdges"), ot = L(n, "axes", e, "domain"), ct = d.copy();
6259
+ const K = O(n, "timeScale", "addSpaceOnEdges"), ot = O(n, "axes", e, "domain"), ct = d.copy();
6260
6260
  K && !ot && ct.nice(Y);
6261
6261
  const st = ct.ticks(Y);
6262
6262
  K && st.length > 2 && !ot && (st.splice(st.length - 1, 1), st.splice(0, 1)), $.tickValues(st);
6263
6263
  }
6264
6264
  }
6265
6265
  let C;
6266
- const V = L(m, "ticks", "formatter"), { code: q, number: X } = L(n, "locale");
6266
+ const V = O(m, "ticks", "formatter"), { code: q, number: X } = O(n, "locale");
6267
6267
  if (y) {
6268
6268
  const Y = ui(
6269
6269
  $.tickValues(),
6270
- L(n, "timeScale", "timeInterval")
6270
+ O(n, "timeScale", "timeInterval")
6271
6271
  );
6272
6272
  V === null ? C = (K, ot) => hi(K, ot, $.tickValues(), Y, H, n.locale) : C = (K, ot) => {
6273
6273
  const ct = hi(
@@ -6320,7 +6320,7 @@ class qo extends dt {
6320
6320
  if (m.title) {
6321
6321
  const Y = I.appendOrSelect(c, "text.axis-title").html(
6322
6322
  j || x ? "" : he(m.title)
6323
- ), K = L(m, "titleOrientation");
6323
+ ), K = O(m, "titleOrientation");
6324
6324
  let ot;
6325
6325
  switch (e) {
6326
6326
  case J.LEFT:
@@ -6348,7 +6348,7 @@ class qo extends dt {
6348
6348
  if (y) {
6349
6349
  const Y = ui(
6350
6350
  $.tickValues(),
6351
- L(n, "timeScale", "timeInterval")
6351
+ O(n, "timeScale", "timeInterval")
6352
6352
  ), K = H.showDayName, ot = f;
6353
6353
  t && (f = f.transition().call(
6354
6354
  (st) => this.services.transitions.setupTransition({
@@ -6370,7 +6370,7 @@ class qo extends dt {
6370
6370
  ).call($);
6371
6371
  if (g.call($), e === J.BOTTOM || e === J.TOP) {
6372
6372
  let Y = !1;
6373
- const K = L(m, "ticks", "rotation");
6373
+ const K = O(m, "ticks", "rotation");
6374
6374
  if (K === Ps.ALWAYS)
6375
6375
  Y = !0;
6376
6376
  else if (K === Ps.NEVER)
@@ -6389,12 +6389,12 @@ class qo extends dt {
6389
6389
  }).width;
6390
6390
  let st;
6391
6391
  g.selectAll("g.tick").each(function() {
6392
- const it = D(this), B = parseFloat(L(ge(this), "tx"));
6392
+ const it = D(this), B = parseFloat(O(ge(this), "tx"));
6393
6393
  B !== null && st + it.text().length * ct * 0.8 >= B && (Y = !0), st = B;
6394
6394
  }), ot.remove();
6395
6395
  }
6396
6396
  Y ? (A || ($.ticks(
6397
- this.getNumberOfFittingTicks(r, O, je.ticks.horizontalSpaceRatio)
6397
+ this.getNumberOfFittingTicks(r, L, je.ticks.horizontalSpaceRatio)
6398
6398
  ), g.call($), f.call($)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === J.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
6399
6399
  }
6400
6400
  if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), g.selectAll("g.tick").attr("aria-label", (Y) => Y), k !== Ke.NONE && E === kt.LABELS && !_) {
@@ -6413,7 +6413,7 @@ class qo extends dt {
6413
6413
  this.addEventListeners();
6414
6414
  }
6415
6415
  addEventListeners() {
6416
- const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = L(s, "axes", e), r = L(a, "scaleType"), o = L(a, "truncation", "threshold"), c = this;
6416
+ const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = O(s, "axes", e), r = O(a, "scaleType"), o = O(a, "truncation", "threshold"), c = this;
6417
6417
  n.selectAll("g.tick text").on("mouseover", function(l, h) {
6418
6418
  c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOVER, {
6419
6419
  event: l,
@@ -6497,7 +6497,7 @@ class np extends qo {
6497
6497
  }), this.addEventListeners();
6498
6498
  }
6499
6499
  addEventListeners() {
6500
- const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = L(s, "axes", e), r = L(a, "scaleType"), o = L(a, "truncation", "threshold"), c = this;
6500
+ const t = this.getComponentContainer(), { position: e } = this.configs, n = I.appendOrSelect(t, `g.axis.${e}`), s = this.getOptions(), a = O(s, "axes", e), r = O(a, "scaleType"), o = O(a, "truncation", "threshold"), c = this;
6501
6501
  n.selectAll("g.tick.tick-hover").on("mouseover", function(l) {
6502
6502
  const h = D(this).select("text"), d = h.datum();
6503
6503
  c.services.events.dispatchEvent(T.Axis.LABEL_MOUSEOVER, {
@@ -6579,7 +6579,7 @@ class vm extends dt {
6579
6579
  };
6580
6580
  }
6581
6581
  render(t = !1) {
6582
- const e = {}, n = Object.keys(J), s = L(this.getOptions(), "axes");
6582
+ const e = {}, n = Object.keys(J), s = O(this.getOptions(), "axes");
6583
6583
  n.forEach((o) => {
6584
6584
  s[J[o]] && (e[J[o]] = !0);
6585
6585
  }), this.configs.axes = e, n.forEach((o) => {
@@ -6631,7 +6631,7 @@ class sp extends dt {
6631
6631
  // @ts-ignore
6632
6632
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6633
6633
  render(t = !0) {
6634
- const e = L(this.getOptions(), "data", "loading");
6634
+ const e = O(this.getOptions(), "data", "loading");
6635
6635
  e ? this.renderSkeleton(e) : this.removeSkeleton();
6636
6636
  }
6637
6637
  renderSkeleton(t) {
@@ -6679,14 +6679,14 @@ class sp extends dt {
6679
6679
  );
6680
6680
  }
6681
6681
  drawXGrid(t) {
6682
- const e = +this.backdrop.attr("width"), n = L(this.getOptions(), "grid", "x", "numberOfTicks"), s = this.xScale.ticks(n).map((o) => o * e), a = I.appendOrSelect(this.backdrop, "g.x.skeleton"), r = a.selectAll("line").data(s);
6682
+ const e = +this.backdrop.attr("width"), n = O(this.getOptions(), "grid", "x", "numberOfTicks"), s = this.xScale.ticks(n).map((o) => o * e), a = I.appendOrSelect(this.backdrop, "g.x.skeleton"), r = a.selectAll("line").data(s);
6683
6683
  r.enter().append("line").merge(r).attr("x1", (o) => o).attr("x2", (o) => o).attr("y1", 0).attr("y2", "100%"), a.selectAll("line").classed("shimmer-effect-lines", t).classed("empty-state-lines", !t).style(
6684
6684
  "stroke",
6685
6685
  t ? `url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})` : null
6686
6686
  );
6687
6687
  }
6688
6688
  drawYGrid(t) {
6689
- const e = +this.backdrop.attr("height"), n = this.backdrop.attr("width"), s = L(this.getOptions(), "grid", "y", "numberOfTicks"), a = this.xScale.ticks(s).map((c) => c * e), r = I.appendOrSelect(this.backdrop, "g.y.skeleton"), o = r.selectAll("line").data(a);
6689
+ const e = +this.backdrop.attr("height"), n = this.backdrop.attr("width"), s = O(this.getOptions(), "grid", "y", "numberOfTicks"), a = this.xScale.ticks(s).map((c) => c * e), r = I.appendOrSelect(this.backdrop, "g.y.skeleton"), o = r.selectAll("line").data(a);
6690
6690
  o.enter().append("line").merge(o).attr("x1", 0).attr("x2", n).attr("y1", (c) => c).attr("y2", (c) => c), r.selectAll("line").classed("shimmer-effect-lines", t).classed("empty-state-lines", !t).style(
6691
6691
  "stroke",
6692
6692
  t ? `url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})` : null
@@ -6695,7 +6695,7 @@ class sp extends dt {
6695
6695
  drawRing(t, e, n = !0) {
6696
6696
  const s = this.parent, { width: a, height: r } = I.getSVGElementSize(s, {
6697
6697
  useAttrs: !0
6698
- }), o = I.appendOrSelect(s, "svg.chart-skeleton").attr("width", a).attr("height", r), c = e === 0 ? "pie" : "donut", l = L(this.getOptions(), c, "alignment");
6698
+ }), o = I.appendOrSelect(s, "svg.chart-skeleton").attr("width", a).attr("height", r), c = e === 0 ? "pie" : "donut", l = O(this.getOptions(), c, "alignment");
6699
6699
  I.appendOrSelect(o, "rect.chart-skeleton-area-container").attr("width", a).attr("height", r).attr("fill", "none");
6700
6700
  const h = In().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(Et.radiusOffset), u = t + (Math.min(a, r) - t * 2) / 2, p = I.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
6701
6701
  "fill",
@@ -6762,8 +6762,8 @@ class ym extends dt {
6762
6762
  animate: t
6763
6763
  })
6764
6764
  ).attr("d", (A) => {
6765
- const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.min), O = f.getRangeValue(A.quartiles.q_25);
6766
- return Gt({ x0: H, x1: N, y0: M, y1: O }, g);
6765
+ const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.quartiles.q_25);
6766
+ return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6767
6767
  }), _.append("path").merge(b.select("path.vertical-line.end")).attr(
6768
6768
  "class",
6769
6769
  () => this.model.getColorClassName({
@@ -6777,8 +6777,8 @@ class ym extends dt {
6777
6777
  animate: t
6778
6778
  })
6779
6779
  ).attr("d", (A) => {
6780
- const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.max), O = f.getRangeValue(A.quartiles.q_75);
6781
- return Gt({ x0: H, x1: N, y0: M, y1: O }, g);
6780
+ const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.quartiles.q_75);
6781
+ return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6782
6782
  }), _.append("path").merge(b.select("path.box")).attr(
6783
6783
  "class",
6784
6784
  () => this.model.getColorClassName({
@@ -6794,13 +6794,13 @@ class ym extends dt {
6794
6794
  ).attr("d", (A) => {
6795
6795
  const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(
6796
6796
  Math[m ? "max" : "min"](A.quartiles.q_75, A.quartiles.q_25)
6797
- ), O = M + Math.abs(
6797
+ ), L = M + Math.abs(
6798
6798
  f.getRangeValue(A.quartiles.q_75) - f.getRangeValue(A.quartiles.q_25)
6799
6799
  );
6800
- return Gt({ x0: H, x1: N, y0: M, y1: O }, g);
6800
+ return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6801
6801
  }), _.append("path").merge(b.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
6802
- const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.whiskers.min), O = f.getRangeValue(A.whiskers.max);
6803
- return Gt({ x0: H, x1: N, y0: M, y1: O }, g);
6802
+ const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.max);
6803
+ return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6804
6804
  }), _.append("path").merge(b.select("path.whisker.start")).attr(
6805
6805
  "class",
6806
6806
  () => this.model.getColorClassName({
@@ -6814,8 +6814,8 @@ class ym extends dt {
6814
6814
  animate: t
6815
6815
  })
6816
6816
  ).attr("d", (A) => {
6817
- const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.min), O = f.getRangeValue(A.whiskers.min);
6818
- return Gt({ x0: H, x1: N, y0: M, y1: O }, g);
6817
+ const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.min);
6818
+ return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6819
6819
  }), _.append("path").merge(b.select("path.median")).attr("fill", "none").attr(
6820
6820
  "class",
6821
6821
  () => this.model.getColorClassName({
@@ -6844,8 +6844,8 @@ class ym extends dt {
6844
6844
  animate: t
6845
6845
  })
6846
6846
  ).attr("d", (A) => {
6847
- const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.max), O = f.getRangeValue(A.whiskers.max);
6848
- return Gt({ x0: H, x1: N, y0: M, y1: O }, g);
6847
+ const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.whiskers.max);
6848
+ return Gt({ x0: H, x1: N, y0: M, y1: L }, g);
6849
6849
  });
6850
6850
  const G = k.selectAll("circle.outlier").data(
6851
6851
  (A) => A.outliers.map((H) => ({
@@ -6880,7 +6880,7 @@ class ym extends dt {
6880
6880
  hoveredElement: r,
6881
6881
  items: [
6882
6882
  {
6883
- label: L(e, "locale", "translations", "group") || L(e, "tooltip", "groupLabel") || "Group",
6883
+ label: O(e, "locale", "translations", "group") || O(e, "tooltip", "groupLabel") || "Group",
6884
6884
  value: a[n],
6885
6885
  class: t.model.getColorClassName({
6886
6886
  classNameTypes: [nt.TOOLTIP]
@@ -6951,7 +6951,7 @@ class ym extends dt {
6951
6951
  hoveredElement: o,
6952
6952
  items: [
6953
6953
  {
6954
- label: L(e, "locale", "translations", "group") || L(e, "tooltip", "groupLabel") || "Group",
6954
+ label: O(e, "locale", "translations", "group") || O(e, "tooltip", "groupLabel") || "Group",
6955
6955
  value: r[n],
6956
6956
  class: t.model.getColorClassName({
6957
6957
  classNameTypes: [nt.TOOLTIP]
@@ -7068,11 +7068,11 @@ class xm extends Ji {
7068
7068
  }).attr("fill-opacity", n.bubble.fillOpacity).attr("opacity", 1);
7069
7069
  }
7070
7070
  getTooltipAdditionalItems(t) {
7071
- const e = L(this.getOptions(), "bubble");
7071
+ const e = O(this.getOptions(), "bubble");
7072
7072
  return [
7073
7073
  {
7074
- label: L(e, "radiusLabel"),
7075
- value: t[L(e, "radiusMapsTo")]
7074
+ label: O(e, "radiusLabel"),
7075
+ value: t[O(e, "radiusMapsTo")]
7076
7076
  }
7077
7077
  ];
7078
7078
  }
@@ -7156,7 +7156,7 @@ class Sm extends dt {
7156
7156
  }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (y) => y.value);
7157
7157
  }, p = () => {
7158
7158
  const g = I.appendOrSelect(s, "g.markers").selectAll("path.marker").data(
7159
- a.filter((y) => L(y, "marker") !== null),
7159
+ a.filter((y) => O(y, "marker") !== null),
7160
7160
  (y) => y[n]
7161
7161
  );
7162
7162
  g.exit().attr("opacity", 0).remove(), g.enter().append("path").attr("opacity", 0).merge(g).classed("marker", !0).transition().call(
@@ -7174,7 +7174,7 @@ class Sm extends dt {
7174
7174
  }).attr("opacity", 1);
7175
7175
  }, f = () => {
7176
7176
  let g = [];
7177
- a.filter((S) => L(S, "marker") !== null).forEach((S) => {
7177
+ a.filter((S) => O(S, "marker") !== null).forEach((S) => {
7178
7178
  const v = S.marker, E = S[o];
7179
7179
  g = g.concat([
7180
7180
  { datum: S, value: v * 0.25, barValue: E },
@@ -7202,7 +7202,7 @@ class Sm extends dt {
7202
7202
  d(), u(), p(), f(), this.addEventListeners();
7203
7203
  }
7204
7204
  addEventListeners() {
7205
- const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.services.cartesianScales.getRangeIdentifier(), { code: a, number: r } = L(e, "locale");
7205
+ const t = this, e = this.getOptions(), { groupMapsTo: n } = e.data, s = this.services.cartesianScales.getRangeIdentifier(), { code: a, number: r } = O(e, "locale");
7206
7206
  this.parent.selectAll("path.bar").on("mouseover", function(o, c) {
7207
7207
  const l = D(this);
7208
7208
  l.classed("hovered", !0), t.services.events.dispatchEvent(T.Bar.BAR_MOUSEOVER, {
@@ -7210,13 +7210,13 @@ class Sm extends dt {
7210
7210
  element: l,
7211
7211
  datum: c
7212
7212
  });
7213
- const h = L(e, "bullet", "performanceAreaTitles"), d = t.model.getMatchingRangeIndexForDatapoint(c);
7213
+ const h = O(e, "bullet", "performanceAreaTitles"), d = t.model.getMatchingRangeIndexForDatapoint(c);
7214
7214
  t.services.events.dispatchEvent(T.Tooltip.SHOW, {
7215
7215
  event: o,
7216
7216
  hoveredElement: l,
7217
7217
  items: [
7218
7218
  {
7219
- label: L(e, "locale", "translations", "group") || L(e, "tooltip", "groupLabel") || "Group",
7219
+ label: O(e, "locale", "translations", "group") || O(e, "tooltip", "groupLabel") || "Group",
7220
7220
  value: c[n],
7221
7221
  class: t.model.getColorClassName({
7222
7222
  classNameTypes: [nt.TOOLTIP],
@@ -7489,7 +7489,7 @@ class Tm extends Zo {
7489
7489
  value: `${S} – ${v}`
7490
7490
  },
7491
7491
  ...x,
7492
- ...L(a, "tooltip", "showTotal") === !0 ? [
7492
+ ...O(a, "tooltip", "showTotal") === !0 ? [
7493
7493
  {
7494
7494
  label: xt(a, "locale.translations.total") || xt(a, "tooltip.totalLabel") || "Total",
7495
7495
  value: E.reduce(
@@ -7558,9 +7558,9 @@ class Rm extends Rd {
7558
7558
  super(t, e, n), this.type = "color-legend", this.renderType = at.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
7559
7559
  const s = this.getComponentContainer(), { width: a } = I.getSVGElementSize(s, {
7560
7560
  useAttrs: !0
7561
- }), r = L(this.getOptions(), "data", "loading");
7561
+ }), r = O(this.getOptions(), "data", "loading");
7562
7562
  if (a > At.color.barWidth && !r) {
7563
- const o = L(this.getOptions(), "heatmap", "colorLegend", "title"), { cartesianScales: c } = this.services, h = c.getMainXScale().range();
7563
+ const o = O(this.getOptions(), "heatmap", "colorLegend", "title"), { cartesianScales: c } = this.services, h = c.getMainXScale().range();
7564
7564
  if (h[0] > 1 && (s.select("g.legend").attr("transform", `translate(${h[0]}, 0)`), o)) {
7565
7565
  const { width: d } = I.getSVGElementSize(
7566
7566
  s.select("g.legend-title").select("text"),
@@ -7583,10 +7583,10 @@ class Rm extends Rd {
7583
7583
  ariaLabel: "legend"
7584
7584
  }), { width: s } = I.getSVGElementSize(n, {
7585
7585
  useAttrs: !0
7586
- }), a = L(e, "color", "gradient", "colors"), r = L(e, this.chartType, "colorLegend", "type");
7587
- let o = L(e, "color", "pairing", "option");
7588
- const c = L(e, "heatmap", "colorLegend", "title");
7589
- if (L(this.getOptions(), "data", "loading")) {
7586
+ }), a = O(e, "color", "gradient", "colors"), r = O(e, this.chartType, "colorLegend", "type");
7587
+ let o = O(e, "color", "pairing", "option");
7588
+ const c = O(e, "heatmap", "colorLegend", "title");
7589
+ if (O(this.getOptions(), "data", "loading")) {
7590
7590
  n.html("");
7591
7591
  return;
7592
7592
  }
@@ -7606,7 +7606,7 @@ class Rm extends Rd {
7606
7606
  y.push(
7607
7607
  r === $s.LINEAR ? `stop-color-${m}-${o}-${R}` : `fill-${m}-${o}-${R}`
7608
7608
  );
7609
- const v = Wr(d[0], d[1]), E = Gc(v, 3), x = Re().domain(d).range([0, p]), b = Ui(x).tickSize(0).tickValues(E), { code: _, number: k } = L(e, "locale");
7609
+ const v = Wr(d[0], d[1]), E = Gc(v, 3), x = Re().domain(d).range([0, p]), b = Ui(x).tickSize(0).tickValues(E), { code: _, number: k } = O(e, "locale");
7610
7610
  b.tickFormat((R) => k(R, _));
7611
7611
  let G;
7612
7612
  switch (r) {
@@ -7656,10 +7656,10 @@ class Dm extends Id {
7656
7656
  // @ts-ignore
7657
7657
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7658
7658
  render(t = !1) {
7659
- const e = L(this.model.getDisplayData(), 0), n = this.getOptions(), s = this.getComponentContainer({
7659
+ const e = O(this.model.getDisplayData(), 0), n = this.getOptions(), s = this.getComponentContainer({
7660
7660
  ariaLabel: "meter title"
7661
7661
  }), { groupMapsTo: a } = n.data, r = n.locale.translations.meter.title;
7662
- if (L(n, "meter", "proportional"))
7662
+ if (O(n, "meter", "proportional"))
7663
7663
  this.displayTotal(), this.displayBreakdownTitle();
7664
7664
  else {
7665
7665
  const h = s.selectAll("text.meter-title").data(r ? [r] : [e[a]]);
@@ -7672,12 +7672,12 @@ class Dm extends Id {
7672
7672
  displayBreakdownTitle() {
7673
7673
  const t = this.getComponentContainer(), e = this.getOptions(), n = this.model.getMaximumDomain(
7674
7674
  this.model.getDisplayData()
7675
- ), s = L(e, "meter", "proportional", "total"), a = L(e, "meter", "proportional", "unit") ? L(e, "meter", "proportional", "unit") : "";
7675
+ ), s = O(e, "meter", "proportional", "total"), a = O(e, "meter", "proportional", "unit") ? O(e, "meter", "proportional", "unit") : "";
7676
7676
  let r;
7677
7677
  if (n === s)
7678
7678
  r = null;
7679
7679
  else {
7680
- const h = s !== null ? s - n : n, d = L(e, "meter", "proportional", "breakdownFormatter"), { code: u, number: p } = L(e, "locale");
7680
+ const h = s !== null ? s - n : n, d = O(e, "meter", "proportional", "breakdownFormatter"), { code: u, number: p } = O(e, "locale");
7681
7681
  r = d !== null ? d({
7682
7682
  datasetsTotal: n,
7683
7683
  total: s
@@ -7690,7 +7690,7 @@ class Dm extends Id {
7690
7690
  }
7691
7691
  // show the total for prop meter
7692
7692
  displayTotal() {
7693
- const t = this.getComponentContainer(), e = this.getOptions(), n = L(e, "meter", "proportional", "total"), s = n ? L(e, "meter", "proportional", "total") : this.model.getMaximumDomain(this.model.getDisplayData()), a = L(e, "meter", "proportional", "unit") ? L(e, "meter", "proportional", "unit") : "", r = L(e, "meter", "proportional", "totalFormatter"), { code: o, number: c } = L(e, "locale"), l = r !== null ? r(s) : `${c(n, o)} ${a} total`, h = I.getHTMLElementSize(this.parent.node()).width, d = t.selectAll("text.proportional-meter-total").data([l]);
7693
+ const t = this.getComponentContainer(), e = this.getOptions(), n = O(e, "meter", "proportional", "total"), s = n ? O(e, "meter", "proportional", "total") : this.model.getMaximumDomain(this.model.getDisplayData()), a = O(e, "meter", "proportional", "unit") ? O(e, "meter", "proportional", "unit") : "", r = O(e, "meter", "proportional", "totalFormatter"), { code: o, number: c } = O(e, "locale"), l = r !== null ? r(s) : `${c(n, o)} ${a} total`, h = I.getHTMLElementSize(this.parent.node()).width, d = t.selectAll("text.proportional-meter-total").data([l]);
7694
7694
  d.enter().append("text").classed("proportional-meter-total", !0).merge(d).attr(
7695
7695
  "x",
7696
7696
  this.model.getStatus() && typeof h != "string" ? h - _t.total.paddingRight : h
@@ -7709,7 +7709,7 @@ class Dm extends Id {
7709
7709
  * Appends the associated percentage to the end of the title
7710
7710
  */
7711
7711
  appendPercentage() {
7712
- const t = L(this.model.getDisplayData(), 0, "value"), { code: e, number: n } = L(this.getOptions(), "locale"), s = this.getComponentContainer(), a = I.appendOrSelect(s, "text.meter-title"), r = L(this.getOptions(), "meter", "statusBar", "percentageIndicator", "enabled") === !0 ? [t] : [], o = s.selectAll("text.percent-value").data(r), c = _t.statusBar.paddingRight;
7712
+ const t = O(this.model.getDisplayData(), 0, "value"), { code: e, number: n } = O(this.getOptions(), "locale"), s = this.getComponentContainer(), a = I.appendOrSelect(s, "text.meter-title"), r = O(this.getOptions(), "meter", "statusBar", "percentageIndicator", "enabled") === !0 ? [t] : [], o = s.selectAll("text.percent-value").data(r), c = _t.statusBar.paddingRight;
7713
7713
  o.enter().append("text").classed("percent-value", !0).merge(o).text((l) => `${l != null ? n(l, e) : 0}%`).attr("x", +a.attr("x") + a.node().getComputedTextLength() + c).attr("y", a.attr("y")), o.exit().remove();
7714
7714
  }
7715
7715
  /**
@@ -7727,7 +7727,7 @@ class Dm extends Id {
7727
7727
  }
7728
7728
  // computes the maximum space a title can take
7729
7729
  getMaxTitleWidth() {
7730
- const t = L(this.getOptions(), "meter", "proportional"), e = I.getHTMLElementSize(this.parent.node()).width;
7730
+ const t = O(this.getOptions(), "meter", "proportional"), e = I.getHTMLElementSize(this.parent.node()).width;
7731
7731
  if (t !== null) {
7732
7732
  const n = I.appendOrSelect(this.parent, "text.proportional-meter-total").node(), s = I.getSVGElementSize(n, {
7733
7733
  useBBox: !0
@@ -7763,7 +7763,7 @@ class ta extends dt {
7763
7763
  useAttrs: !0
7764
7764
  }).width;
7765
7765
  if (!n.step) {
7766
- const a = L(t, "bars", "spacingFactor");
7766
+ const a = O(t, "bars", "spacingFactor");
7767
7767
  return Math.min(t.bars.maxWidth, s * a / e);
7768
7768
  }
7769
7769
  return Math.min(t.bars.maxWidth, n.step() / 2);
@@ -7811,8 +7811,8 @@ class Nm extends dt {
7811
7811
  if (n < 1 || s < 1)
7812
7812
  return;
7813
7813
  let a = this.model.getDisplayData();
7814
- const r = this.model.hasParentNode(), o = this.model.getHierarchyLevel(), c = this.getOptions(), l = L(c, "canvasZoom", "enabled");
7815
- r && L(a, 0, "children") && (a = L(a, 0, "children"));
7814
+ const r = this.model.hasParentNode(), o = this.model.getHierarchyLevel(), c = this.getOptions(), l = O(c, "canvasZoom", "enabled");
7815
+ r && O(a, 0, "children") && (a = O(a, 0, "children"));
7816
7816
  const h = Rn({ children: a }).sum((g) => g.value).sort((g, m) => m.value - g.value), u = Ih().size([n, s]).padding((g) => g.depth >= 1 ? un.padding.children + 3 : un.padding.mainGroup + 3)(h).descendants().splice(1).filter((g) => g.depth <= o), p = e.selectAll("circle.node").data(u);
7817
7817
  p.exit().attr("width", 0).attr("height", 0).remove();
7818
7818
  const f = p.enter().append("circle").classed("node", !0);
@@ -7870,7 +7870,7 @@ class Nm extends dt {
7870
7870
  this.parent.selectAll("circle.node").on("mouseover", function(e, n) {
7871
7871
  const s = D(this);
7872
7872
  s.classed("hovered", !0);
7873
- const a = t.model.getHierarchyLevel(), r = a > 2 && !s.classed("focal"), o = L(t.model.getOptions(), "canvasZoom", "enabled");
7873
+ const a = t.model.getHierarchyLevel(), r = a > 2 && !s.classed("focal"), o = O(t.model.getOptions(), "canvasZoom", "enabled");
7874
7874
  let c = !1;
7875
7875
  if (!r) {
7876
7876
  let l = [], h = [], d = null;
@@ -7936,7 +7936,7 @@ class Nm extends dt {
7936
7936
  hoveredElement: s
7937
7937
  });
7938
7938
  }).on("click", function(e, n) {
7939
- const s = D(this), a = s.classed("non-focal"), r = L(t.model.getOptions(), "canvasZoom", "enabled");
7939
+ const s = D(this), a = s.classed("non-focal"), r = O(t.model.getOptions(), "canvasZoom", "enabled");
7940
7940
  if (r && t.model.getHierarchyLevel() > 2) {
7941
7941
  const o = t.parent.selectAll("circle.node");
7942
7942
  D(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Hn);
@@ -7997,7 +7997,7 @@ class pp extends dt {
7997
7997
  this.isRendering = !0;
7998
7998
  const o = this.model.getDisplayData().filter((M) => M[r] > 0), c = this.computeRadius();
7999
7999
  this.arc = In().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = In().innerRadius(this.getInnerRadius()).outerRadius(c + Et.hoverArc.outerRadiusOffset);
8000
- const h = td().value((M) => M[r]).sort(L(s, "pie", "sortFunction")).padAngle(Et.padAngle)(o), u = I.appendOrSelect(n, "g.slices").attr("role", lt.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (M) => M.data[a]);
8000
+ const h = td().value((M) => M[r]).sort(O(s, "pie", "sortFunction")).padAngle(Et.padAngle)(o), u = I.appendOrSelect(n, "g.slices").attr("role", lt.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (M) => M.data[a]);
8001
8001
  u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
8002
8002
  "class",
8003
8003
  (M) => this.model.getColorClassName({
@@ -8019,7 +8019,7 @@ class pp extends dt {
8019
8019
  }).on("end", () => {
8020
8020
  e.isRendering = !1;
8021
8021
  });
8022
- const { code: g, number: m } = L(s, "locale"), y = s.pie.labels.enabled, S = y ? h.filter((M) => M.data[r] > 0) : [], E = I.appendOrSelect(n, "g.labels").attr("role", lt.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(S, (M) => M.data[a]);
8022
+ const { code: g, number: m } = O(s, "locale"), y = s.pie.labels.enabled, S = y ? h.filter((M) => M.data[r] > 0) : [], E = I.appendOrSelect(n, "g.labels").attr("role", lt.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(S, (M) => M.data[a]);
8023
8023
  E.exit().attr("opacity", 0).remove();
8024
8024
  const x = E.enter().append("text").classed("pie-label", !0), b = [];
8025
8025
  x.merge(E).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
@@ -8034,17 +8034,17 @@ class pp extends dt {
8034
8034
  Ns(M.data[r], o, r),
8035
8035
  g
8036
8036
  ) + "%").datum(function(M) {
8037
- const O = c + 7, P = (M.endAngle - M.startAngle) / 2 + M.startAngle, $ = P / Math.PI * 180, C = this.getComputedTextLength();
8038
- return M.textOffsetX = C / 2, M.textOffsetY = $ > 90 && $ < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + O) * Math.sin(P), M.yPosition = (M.textOffsetY + O) * -Math.cos(P), M;
8039
- }).attr("transform", function(M, O) {
8037
+ const L = c + 7, P = (M.endAngle - M.startAngle) / 2 + M.startAngle, $ = P / Math.PI * 180, C = this.getComputedTextLength();
8038
+ return M.textOffsetX = C / 2, M.textOffsetY = $ > 90 && $ < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + L) * Math.sin(P), M.yPosition = (M.textOffsetY + L) * -Math.cos(P), M;
8039
+ }).attr("transform", function(M, L) {
8040
8040
  const P = S.length, $ = (M.endAngle - M.startAngle) * (180 / Math.PI);
8041
- if (O >= P - 2 && $ < Et.callout.minSliceDegree) {
8041
+ if (L >= P - 2 && $ < Et.callout.minSliceDegree) {
8042
8042
  let C, V;
8043
8043
  return M.index === P - 1 ? (C = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, V = M.yPosition - Et.callout.offsetY, M.direction = Gs.RIGHT, b.push(M)) : (C = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, V = M.yPosition - Et.callout.offsetY, M.direction = Gs.LEFT, b.push(M)), `translate(${C}, ${V})`;
8044
8044
  }
8045
8045
  return `translate(${M.xPosition}, ${M.yPosition})`;
8046
8046
  }), this.renderCallouts(b);
8047
- const _ = L(s, "donut") ? "donut" : "pie", k = L(s, _, "alignment"), { width: G } = I.getSVGElementSize(this.getParent(), {
8047
+ const _ = O(s, "donut") ? "donut" : "pie", k = O(s, _, "alignment"), { width: G } = I.getSVGElementSize(this.getParent(), {
8048
8048
  useAttrs: !0
8049
8049
  }), R = y ? Et.xOffset : 0, A = y ? Et.yOffset : 0;
8050
8050
  let H = c + R;
@@ -8161,7 +8161,7 @@ class Pm extends pp {
8161
8161
  ariaLabel: "donut graph"
8162
8162
  }),
8163
8163
  "g.center"
8164
- ), s = this.getOptions(), a = this.computeRadius(), r = L(s, "donut", "center", "label");
8164
+ ), s = this.getOptions(), a = this.computeRadius(), r = O(s, "donut", "center", "label");
8165
8165
  I.appendOrSelect(n, "text.donut-figure").attr("text-anchor", "middle").style("dominant-baseline", () => r === null || r === "" ? "central" : "initial").style("font-size", () => s.donut.center.numberFontSize(a)).transition().call(
8166
8166
  (o) => this.services.transitions.setupTransition({
8167
8167
  transition: o,
@@ -8177,7 +8177,7 @@ class Pm extends pp {
8177
8177
  }
8178
8178
  centerNumberTween(t) {
8179
8179
  const e = this.getOptions();
8180
- let n = L(e, "donut", "center", "number");
8180
+ let n = O(e, "donut", "center", "number");
8181
8181
  n === null && (n = this.model.getDisplayData().reduce((o, c) => o + c[e.pie.valueMapsTo], 0));
8182
8182
  const s = parseInt(t.text().replace(/[, ]+/g, ""), 10) || 0;
8183
8183
  let a;
@@ -8188,7 +8188,7 @@ class Pm extends pp {
8188
8188
  if (c)
8189
8189
  t.text(c(r(o)));
8190
8190
  else {
8191
- const { code: l, number: h } = L(e, "locale");
8191
+ const { code: l, number: h } = O(e, "locale");
8192
8192
  t.text(h(Math.floor(r(o)), l));
8193
8193
  }
8194
8194
  };
@@ -8212,7 +8212,7 @@ class $m extends dt {
8212
8212
  }
8213
8213
  getArcRatio() {
8214
8214
  const t = this.getOptions();
8215
- return L(t, "gauge", "type") === zn.FULL ? 1 : 0.5;
8215
+ return O(t, "gauge", "type") === zn.FULL ? 1 : 0.5;
8216
8216
  }
8217
8217
  getArcSize() {
8218
8218
  return this.getArcRatio() * Math.PI * 2;
@@ -8224,7 +8224,7 @@ class $m extends dt {
8224
8224
  // use provided arrow direction or default to using the delta
8225
8225
  getArrow(t) {
8226
8226
  const e = this.getOptions();
8227
- switch (L(e, "gauge", "deltaArrow", "direction")) {
8227
+ switch (O(e, "gauge", "deltaArrow", "direction")) {
8228
8228
  case ba.UP:
8229
8229
  return Dr;
8230
8230
  case ba.DOWN:
@@ -8249,8 +8249,8 @@ class $m extends dt {
8249
8249
  dataGroupName: "value",
8250
8250
  originalClassName: "arc-foreground"
8251
8251
  })
8252
- ).style("fill", () => L(this.getOptions(), "color", "scale", "value")).attr("d", this.arc).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (S) => S), this.drawValueNumber(), this.drawDelta(), p.exit().remove();
8253
- const g = L(n, "gauge", "alignment"), { width: m } = I.getSVGElementSize(this.getParent(), {
8252
+ ).style("fill", () => O(this.getOptions(), "color", "scale", "value")).attr("d", this.arc).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (S) => S), this.drawValueNumber(), this.drawDelta(), p.exit().remove();
8253
+ const g = O(n, "gauge", "alignment"), { width: m } = I.getSVGElementSize(this.getParent(), {
8254
8254
  useAttrs: !0
8255
8255
  });
8256
8256
  let y = d;
@@ -8260,13 +8260,13 @@ class $m extends dt {
8260
8260
  * draws the value number associated with the Gauge component in the center
8261
8261
  */
8262
8262
  drawValueNumber() {
8263
- const t = this.getComponentContainer(), e = this.getOptions(), n = L(e, "gauge", "type"), s = this.getValue(), a = this.getDelta(), r = this.computeRadius(), o = L(e, "gauge", "valueFontSize"), c = L(e, "gauge", "deltaFontSize"), l = L(e, "gauge", "numberSpacing"), h = L(e, "gauge", "showPercentageSymbol");
8263
+ const t = this.getComponentContainer(), e = this.getOptions(), n = O(e, "gauge", "type"), s = this.getValue(), a = this.getDelta(), r = this.computeRadius(), o = O(e, "gauge", "valueFontSize"), c = O(e, "gauge", "deltaFontSize"), l = O(e, "gauge", "numberSpacing"), h = O(e, "gauge", "showPercentageSymbol");
8264
8264
  let d = 0;
8265
8265
  n === zn.FULL && !a ? d = c(r) : n === zn.SEMI && a && (d = -(c(r) + l));
8266
8266
  const u = I.appendOrSelect(t, "g.gauge-numbers").attr(
8267
8267
  "transform",
8268
8268
  `translate(0, ${d})`
8269
- ), p = o(r), f = I.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = L(e, "locale"), y = L(e, "gauge", "numberFormatter"), S = f.selectAll("text.gauge-value-number").data([s]);
8269
+ ), p = o(r), f = I.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = O(e, "locale"), y = O(e, "gauge", "numberFormatter"), S = f.selectAll("text.gauge-value-number").data([s]);
8270
8270
  S.enter().append("text").attr("class", "gauge-value-number").merge(S).style("font-size", `${p}px`).attr("text-anchor", "middle").text((G) => {
8271
8271
  let R;
8272
8272
  return G != null ? R = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : R = 0, y ? y(R) : m(Number(R), g);
@@ -8283,9 +8283,9 @@ class $m extends dt {
8283
8283
  * adds the delta number for the gauge
8284
8284
  */
8285
8285
  drawDelta() {
8286
- const t = this, e = this.getComponentContainer(), n = this.getOptions(), s = this.getDelta(), { code: a, number: r } = L(n, "locale");
8286
+ const t = this, e = this.getComponentContainer(), n = this.getOptions(), s = this.getDelta(), { code: a, number: r } = O(n, "locale");
8287
8287
  if (s) {
8288
- const o = this.computeRadius(), c = s ? L(n, "gauge", "deltaFontSize") : () => 0, l = s ? L(n, "gauge", "numberFormatter") : () => null, h = L(n, "gauge", "deltaArrow", "size"), d = L(n, "gauge", "numberSpacing"), u = L(n, "gauge", "showPercentageSymbol"), p = I.appendOrSelect(e, "g.gauge-numbers"), f = I.appendOrSelect(p, "g.gauge-delta").attr(
8288
+ const o = this.computeRadius(), c = s ? O(n, "gauge", "deltaFontSize") : () => 0, l = s ? O(n, "gauge", "numberFormatter") : () => null, h = O(n, "gauge", "deltaArrow", "size"), d = O(n, "gauge", "numberSpacing"), u = O(n, "gauge", "showPercentageSymbol"), p = I.appendOrSelect(e, "g.gauge-numbers"), f = I.appendOrSelect(p, "g.gauge-delta").attr(
8289
8289
  "transform",
8290
8290
  `translate(0, ${c(o) + d})`
8291
8291
  ), g = I.appendOrSelect(f, "text.gauge-delta-number"), m = u ? "%" : "";
@@ -8296,11 +8296,11 @@ class $m extends dt {
8296
8296
  const { width: y } = I.getSVGElementSize(
8297
8297
  I.appendOrSelect(e, ".gauge-delta-number"),
8298
8298
  { useBBox: !0 }
8299
- ), S = L(n, "gauge", "deltaArrow", "enabled"), v = f.selectAll("svg.gauge-delta-arrow").data(s !== null && S ? [s] : []);
8299
+ ), S = O(n, "gauge", "deltaArrow", "enabled"), v = f.selectAll("svg.gauge-delta-arrow").data(s !== null && S ? [s] : []);
8300
8300
  v.enter().append("svg").merge(v).attr("class", "gauge-delta-arrow").attr("x", -h(o) - y / 2).attr("y", -h(o) / 2 - c(o) * 0.35).attr("width", h(o)).attr("height", h(o)).attr("viewBox", "0 0 16 16").each(function() {
8301
8301
  const E = D(this);
8302
8302
  I.appendOrSelect(E, "rect.gauge-delta-arrow-backdrop").attr("width", "16").attr("height", "16").attr("fill", "none");
8303
- const x = L(n, "gauge", "status");
8303
+ const x = O(n, "gauge", "status");
8304
8304
  I.appendOrSelect(E, "polygon.gauge-delta-arrow").attr("class", x !== null ? `gauge-delta-arrow status--${x}` : "").attr("points", t.getArrow(s));
8305
8305
  }), v.exit().remove(), g.exit().remove();
8306
8306
  } else {
@@ -8309,7 +8309,7 @@ class $m extends dt {
8309
8309
  }
8310
8310
  }
8311
8311
  getInnerRadius() {
8312
- const t = this.computeRadius(), e = L(this.getOptions(), "gauge", "arcWidth");
8312
+ const t = this.computeRadius(), e = O(this.getOptions(), "gauge", "arcWidth");
8313
8313
  return t - e;
8314
8314
  }
8315
8315
  addEventListeners() {
@@ -8344,7 +8344,7 @@ class $m extends dt {
8344
8344
  }
8345
8345
  // Helper functions
8346
8346
  computeRadius() {
8347
- const t = this.getOptions(), e = L(t, "gauge", "type"), { width: n, height: s } = I.getSVGElementSize(this.parent, {
8347
+ const t = this.getOptions(), e = O(t, "gauge", "type"), { width: n, height: s } = I.getSVGElementSize(this.parent, {
8348
8348
  useAttrs: !0
8349
8349
  });
8350
8350
  return e === zn.SEMI ? Math.min(n / 2, s) : Math.min(n / 2, s / 2);
@@ -8502,7 +8502,7 @@ class Vm extends ta {
8502
8502
  }
8503
8503
  // Gets the correct width for bars based on options & configurations
8504
8504
  getBarWidth() {
8505
- const t = this.getOptions(), e = L(t, "bars", "width"), n = L(t, "bars", "maxWidth");
8505
+ const t = this.getOptions(), e = O(t, "bars", "width"), n = O(t, "bars", "maxWidth");
8506
8506
  if (e !== null && (n === null || e <= n))
8507
8507
  return e;
8508
8508
  const a = this.model.getGroupedData(this.configs.groups).length, r = this.getTotalGroupPadding();
@@ -8582,7 +8582,7 @@ class Gm extends dt {
8582
8582
  const e = this.getComponentContainer({ ariaLabel: "heatmap", withinChartClip: !0 });
8583
8583
  e.lower();
8584
8584
  const { cartesianScales: n } = this.services;
8585
- if (this.matrix = this.model.getMatrix(), e.html(""), L(this.getOptions(), "data", "loading"))
8585
+ if (this.matrix = this.model.getMatrix(), e.html(""), O(this.getOptions(), "data", "loading"))
8586
8586
  return;
8587
8587
  const s = n.getMainXScale(), a = n.getMainYScale(), r = n.getDomainIdentifier(), o = n.getRangeIdentifier(), c = this.model.getUniqueDomain(), l = this.model.getUniqueRanges(), h = this.model.getMatrixAsArray(), d = s.range(), u = a.range();
8588
8588
  this.xBandwidth = Math.abs((d[1] - d[0]) / c.length), this.yBandwidth = Math.abs((u[1] - u[0]) / l.length);
@@ -8623,7 +8623,7 @@ class Gm extends dt {
8623
8623
  I.appendOrSelect(s, "line.top").attr("x1", -1).attr("x2", e + 1), I.appendOrSelect(s, "line.left").attr("x1", 0).attr("y1", -1).attr("x2", 0).attr("y2", n + 1), I.appendOrSelect(s, "line.down").attr("x1", -1).attr("x2", e + 1).attr("y1", n).attr("y2", n), I.appendOrSelect(s, "line.right").attr("x1", e).attr("x2", e).attr("y1", -1).attr("y2", n + 1);
8624
8624
  }
8625
8625
  determineDividerStatus() {
8626
- const t = L(this.getOptions(), "heatmap", "divider", "state");
8626
+ const t = O(this.getOptions(), "heatmap", "divider", "state");
8627
8627
  return t !== Hs.OFF && (t === Hs.AUTO && xa.minCellDividerDimension <= this.xBandwidth && xa.minCellDividerDimension <= this.yBandwidth || t === Hs.ON);
8628
8628
  }
8629
8629
  addEventListener() {
@@ -8743,10 +8743,10 @@ class Hm extends dt {
8743
8743
  { x0: p, x1: f, y0: g, y1: m },
8744
8744
  this.services.cartesianScales.getOrientation()
8745
8745
  );
8746
- }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (h) => L(h, "data", h[a])), this.addEventListeners();
8746
+ }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (h) => O(h, "data", h[a])), this.addEventListeners();
8747
8747
  }
8748
8748
  addEventListeners() {
8749
- const t = this.model.getOptions(), { groupMapsTo: e } = t.data, { code: n, number: s } = L(t, "locale"), a = this;
8749
+ const t = this.model.getOptions(), { groupMapsTo: e } = t.data, { code: n, number: s } = O(t, "locale"), a = this;
8750
8750
  this.parent.selectAll("path.bar").on("mouseover", function(r, o) {
8751
8751
  const c = D(this);
8752
8752
  c.classed("hovered", !0);
@@ -8878,17 +8878,17 @@ class zm extends dt {
8878
8878
  render(t = !0) {
8879
8879
  const e = this, n = this.getComponentContainer({
8880
8880
  ariaLabel: "meter lines"
8881
- }), s = this.getOptions(), a = L(s, "meter", "proportional"), r = this.model.getDisplayData(), o = this.model.getStatus(), { width: c } = I.getSVGElementSize(n, {
8881
+ }), s = this.getOptions(), a = O(s, "meter", "proportional"), r = this.model.getDisplayData(), o = this.model.getStatus(), { width: c } = I.getSVGElementSize(n, {
8882
8882
  useAttrs: !0
8883
8883
  }), { groupMapsTo: l } = s.data;
8884
8884
  let h;
8885
- if (L(s, "meter", "proportional") === null)
8885
+ if (O(s, "meter", "proportional") === null)
8886
8886
  h = 100;
8887
8887
  else {
8888
- const v = L(s, "meter", "proportional", "total");
8888
+ const v = O(s, "meter", "proportional", "total");
8889
8889
  h = v || this.model.getMaximumDomain(this.model.getDisplayData());
8890
8890
  }
8891
- const d = Re().domain([0, h]).range([0, c]), u = this.getStackedBounds(r, d), p = L(s, "meter", "height");
8891
+ const d = Re().domain([0, h]).range([0, c]), u = this.getStackedBounds(r, d), p = O(s, "meter", "height");
8892
8892
  I.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", c).attr(
8893
8893
  "height",
8894
8894
  p || (a ? _t.height.proportional : _t.height.default)
@@ -8911,7 +8911,7 @@ class zm extends dt {
8911
8911
  animate: t
8912
8912
  })
8913
8913
  ).attr("width", (v) => v.value > h ? d(h) : Math.max(v.width, 2)).style("fill", (v) => e.model.getFillColor(v[l], null, v)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (v) => v.value), f.exit().remove();
8914
- const m = L(s, "meter", "peak");
8914
+ const m = O(s, "meter", "peak");
8915
8915
  let y = m;
8916
8916
  m !== null && (m > h ? y = h : m < 0 && (y = 0));
8917
8917
  const S = n.selectAll("line.peak").data(y == null ? [] : [y]);
@@ -8925,7 +8925,7 @@ class zm extends dt {
8925
8925
  }
8926
8926
  // add event listeners for tooltips on proportional meter bars
8927
8927
  addEventListeners() {
8928
- const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = L(t, "meter", "proportional");
8928
+ const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = O(t, "meter", "proportional");
8929
8929
  this.parent.selectAll("rect.value").on("mouseover", function(a, r) {
8930
8930
  const o = D(this);
8931
8931
  n.services.events.dispatchEvent(T.Meter.METER_MOUSEOVER, {
@@ -8978,7 +8978,7 @@ class Um extends dt {
8978
8978
  const e = I.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), n = I.appendOrSelect(e, "text").text(t), { width: s, height: a } = I.getSVGElementSize(n.node(), { useBBox: !0 });
8979
8979
  return e.remove(), { width: s, height: a };
8980
8980
  }, this.normalizeFlatData = (t) => {
8981
- const e = this.getOptions(), { angle: n, value: s } = L(e, "radar", "axes"), a = L(e, "data", "groupMapsTo"), r = Lc(
8981
+ const e = this.getOptions(), { angle: n, value: s } = O(e, "radar", "axes"), a = O(e, "data", "groupMapsTo"), r = Lc(
8982
8982
  this.uniqueKeys.map((o) => this.uniqueGroups.map((c) => ({
8983
8983
  [n]: o,
8984
8984
  [a]: c,
@@ -8987,7 +8987,7 @@ class Um extends dt {
8987
8987
  );
8988
8988
  return en(r, t);
8989
8989
  }, this.normalizeGroupedData = (t) => {
8990
- const e = this.getOptions(), { angle: n, value: s } = L(e, "radar", "axes"), a = L(e, "data", "groupMapsTo");
8990
+ const e = this.getOptions(), { angle: n, value: s } = O(e, "radar", "axes"), a = O(e, "data", "groupMapsTo");
8991
8991
  return t.map(({ name: r, data: o }) => {
8992
8992
  const c = this.uniqueKeys.map((l) => ({
8993
8993
  [a]: r,
@@ -9022,7 +9022,7 @@ class Um extends dt {
9022
9022
  ariaLabel: "radar graph"
9023
9023
  }), { width: n, height: s } = I.getSVGElementSize(e, {
9024
9024
  useAttrs: !0
9025
- }), a = this.model.getData(), r = this.model.getGroupedData(), o = this.getOptions(), c = L(o, "data", "groupMapsTo"), l = L(o, "radar", "axes", "value"), { angle: h, value: d } = L(o, "radar", "axes"), { xLabelPadding: u, yLabelPadding: p, yTicksNumber: f, minRange: g, xAxisRectHeight: m } = Le;
9025
+ }), a = this.model.getData(), r = this.model.getGroupedData(), o = this.getOptions(), c = O(o, "data", "groupMapsTo"), l = O(o, "radar", "axes", "value"), { angle: h, value: d } = O(o, "radar", "axes"), { xLabelPadding: u, yLabelPadding: p, yTicksNumber: f, minRange: g, xAxisRectHeight: m } = Le;
9026
9026
  this.uniqueKeys = Array.from(new Set(a.map((B) => B[h]))), this.uniqueGroups = Array.from(new Set(a.map((B) => B[c]))), this.fullDataNormalized = this.normalizeFlatData(a), this.groupedDataNormalized = this.normalizeGroupedData(r);
9027
9027
  const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), x = (Math.min(n, s) - S) / 2;
9028
9028
  if (x <= 0)
@@ -9129,7 +9129,7 @@ class Um extends dt {
9129
9129
  "y",
9130
9130
  (U) => bt(b(U), k.range()[1] + u, M).y
9131
9131
  ).end().finally(() => {
9132
- const U = L(o, "radar", "alignment"), Mt = this.getAlignmentXOffset(U, e, this.getParent());
9132
+ const U = O(o, "radar", "alignment"), Mt = this.getAlignmentXOffset(U, e, this.getParent());
9133
9133
  e.attr("x", Mt);
9134
9134
  })
9135
9135
  ),
@@ -9192,7 +9192,7 @@ class Um extends dt {
9192
9192
  () => `translate(${M.x}, ${M.y}) scale(${1 + Math.random() * 0.35})`
9193
9193
  ), U.attr("opacity", 0).remove();
9194
9194
  })
9195
- ), I.appendOrSelect(e, "g.dots").attr("role", lt.GROUP).selectAll("circle").data(this.fullDataNormalized.filter((B) => L(B, d) !== null)).join(
9195
+ ), I.appendOrSelect(e, "g.dots").attr("role", lt.GROUP).selectAll("circle").data(this.fullDataNormalized.filter((B) => O(B, d) !== null)).join(
9196
9196
  (B) => B.append("circle").attr("role", lt.GRAPHICS_SYMBOL).attr("aria-label", (z) => z[l]),
9197
9197
  (B) => B,
9198
9198
  (B) => B.remove()
@@ -9208,7 +9208,7 @@ class Um extends dt {
9208
9208
  (B) => B,
9209
9209
  (B) => B.remove()
9210
9210
  ).attr("x", M.x).attr("y", M.y - m / 2).attr("width", k.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (B) => `rotate(${Ml(b(B))}, ${M.x}, ${M.y})`);
9211
- const { code: ot, number: ct } = L(o, "locale");
9211
+ const { code: ot, number: ct } = O(o, "locale");
9212
9212
  I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Os(G)).join(
9213
9213
  (B) => B.append("text").attr("opacity", 0).text((z) => ct(z, ot)).attr(
9214
9214
  "x",
@@ -9262,7 +9262,7 @@ class Um extends dt {
9262
9262
  addEventListeners() {
9263
9263
  const t = this, {
9264
9264
  axes: { angle: e }
9265
- } = L(this.getOptions(), "radar");
9265
+ } = O(this.getOptions(), "radar");
9266
9266
  this.parent.selectAll(".x-axes-rect > rect").on("mouseover", function(n, s) {
9267
9267
  const a = D(this);
9268
9268
  t.services.events.dispatchEvent(T.Radar.X_AXIS_MOUSEOVER, {
@@ -9270,7 +9270,7 @@ class Um extends dt {
9270
9270
  element: a,
9271
9271
  datum: s
9272
9272
  });
9273
- const r = t.parent.select(`.x-axes .x-axis-${Ue(s)}`), o = t.parent.selectAll(`.dots circle.${Ue(s)}`), c = t.model.getActiveDataGroupNames(), l = t.getOptions(), { groupMapsTo: h } = l.data, d = L(l, "radar", "axes", "value");
9273
+ const r = t.parent.select(`.x-axes .x-axis-${Ue(s)}`), o = t.parent.selectAll(`.dots circle.${Ue(s)}`), c = t.model.getActiveDataGroupNames(), l = t.getOptions(), { groupMapsTo: h } = l.data, d = O(l, "radar", "axes", "value");
9274
9274
  r.classed("hovered", !0).attr("stroke-dasharray", "4 4"), o.classed("hovered", !0).attr(
9275
9275
  "opacity",
9276
9276
  (p) => c.indexOf(p[h]) !== -1 ? 1 : 0
@@ -9426,7 +9426,7 @@ class Wm extends sp {
9426
9426
  // @ts-ignore
9427
9427
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9428
9428
  render(t = !0) {
9429
- const e = L(this.getOptions(), "data", "loading"), n = !L(this.getOptions(), "grid", "x", "enabled") && !L(this.getOptions(), "grid", "y", "enabled") && !L(this.getOptions(), "axes", "bottom", "visible") && !L(this.getOptions(), "axes", "left", "visible");
9429
+ const e = O(this.getOptions(), "data", "loading"), n = !O(this.getOptions(), "grid", "x", "enabled") && !O(this.getOptions(), "grid", "y", "enabled") && !O(this.getOptions(), "axes", "bottom", "visible") && !O(this.getOptions(), "axes", "left", "visible");
9430
9430
  e && !n ? super.renderGridSkeleton(e) : e && n ? this.renderSparklineSkeleton(e) : this.removeSkeleton();
9431
9431
  }
9432
9432
  renderSparklineSkeleton(t) {
@@ -9453,7 +9453,7 @@ class Xm extends dt {
9453
9453
  transition: a,
9454
9454
  name: "legend-hover-area"
9455
9455
  })
9456
- ).attr("opacity", (a) => L(a, 0, s) !== e.datum().name ? ve.opacity.unselected : ve.opacity.selected);
9456
+ ).attr("opacity", (a) => O(a, 0, s) !== e.datum().name ? ve.opacity.unselected : ve.opacity.selected);
9457
9457
  }, this.handleLegendMouseOut = () => {
9458
9458
  this.parent.selectAll("path.area").transition("legend-mouseout-area").call(
9459
9459
  (t) => this.services.transitions.setupTransition({
@@ -9474,20 +9474,20 @@ class Xm extends dt {
9474
9474
  }), n = this, s = this.getOptions(), { groupMapsTo: a } = s.data, r = Object.keys(s.axes).some((f) => s.axes[f].percentage), o = this.model.getStackedData({
9475
9475
  percentage: r,
9476
9476
  groups: this.configs.groups
9477
- }), c = L(o, 0, 0), l = this.services.cartesianScales.getDomainAxisPosition({ datum: c }), h = this.services.cartesianScales.getRangeAxisPosition({ datum: c }), d = this.services.cartesianScales.getScaleByPosition(h), u = e.selectAll("path.area").data(o, (f) => L(f, 0, a));
9477
+ }), c = O(o, 0, 0), l = this.services.cartesianScales.getDomainAxisPosition({ datum: c }), h = this.services.cartesianScales.getRangeAxisPosition({ datum: c }), d = this.services.cartesianScales.getScaleByPosition(h), u = e.selectAll("path.area").data(o, (f) => O(f, 0, a));
9478
9478
  this.areaGenerator = ji().x(
9479
9479
  (f) => this.services.cartesianScales.getValueThroughAxisPosition(
9480
9480
  l,
9481
9481
  f.data.sharedStackKey
9482
9482
  )
9483
- ).y0((f) => d(f[0])).y1((f) => d(f[1])).curve(this.services.curves.getD3Curve()), u.exit().attr("opacity", 0).remove(), u.enter().append("path").attr("opacity", 0).merge(u).data(o, (f) => L(f, 0, a)).attr("class", "area").attr(
9483
+ ).y0((f) => d(f[0])).y1((f) => d(f[1])).curve(this.services.curves.getD3Curve()), u.exit().attr("opacity", 0).remove(), u.enter().append("path").attr("opacity", 0).merge(u).data(o, (f) => O(f, 0, a)).attr("class", "area").attr(
9484
9484
  "class",
9485
9485
  (f) => this.model.getColorClassName({
9486
9486
  classNameTypes: [nt.FILL],
9487
- dataGroupName: L(f, 0, a),
9487
+ dataGroupName: O(f, 0, a),
9488
9488
  originalClassName: "area"
9489
9489
  })
9490
- ).style("fill", (f) => n.model.getFillColor(L(f, 0, a), null, f)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "area").attr("aria-label", (f) => L(f, 0, a)).transition().call(
9490
+ ).style("fill", (f) => n.model.getFillColor(O(f, 0, a), null, f)).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "area").attr("aria-label", (f) => O(f, 0, a)).transition().call(
9491
9491
  (f) => this.services.transitions.setupTransition({
9492
9492
  transition: f,
9493
9493
  name: "area-update-enter",
@@ -9523,7 +9523,7 @@ class Ym extends ta {
9523
9523
  const e = this.getComponentContainer({ ariaLabel: "stacked bar graphs", withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getStackedData({
9524
9524
  groups: this.configs.groups,
9525
9525
  divergent: !0
9526
- }), r = this.model.getActiveDataGroupNames(), o = e.selectAll("g.bars").data(a, (l) => L(l, 0, s));
9526
+ }), r = this.model.getActiveDataGroupNames(), o = e.selectAll("g.bars").data(a, (l) => O(l, 0, s));
9527
9527
  o.exit().attr("opacity", 0).remove(), o.enter().append("g").classed("bars", !0).attr("role", lt.GROUP).attr("data-name", "bars");
9528
9528
  const c = e.selectAll("g.bars").selectAll("path.bar").data(
9529
9529
  (l) => l,
@@ -9614,11 +9614,11 @@ class Ym extends ta {
9614
9614
  }
9615
9615
  getBarWidth() {
9616
9616
  const t = this.getOptions();
9617
- if (L(t, "bars", "width"))
9617
+ if (O(t, "bars", "width"))
9618
9618
  return t.bars.width;
9619
9619
  const e = this.services.cartesianScales.getMainXScale(), n = I.getSVGElementSize(this.parent, {
9620
9620
  useAttrs: !0
9621
- }).width, s = this.model.getStackKeys().length, a = L(t, "bars", "spacingFactor");
9621
+ }).width, s = this.model.getStackKeys().length, a = O(t, "bars", "spacingFactor");
9622
9622
  return e.step ? Math.min(t.bars.maxWidth, e.step() / 2) : Math.min(t.bars.maxWidth, n * a / s);
9623
9623
  }
9624
9624
  destroy() {
@@ -9632,12 +9632,12 @@ class Zm extends Ji {
9632
9632
  super(...arguments), this.type = "scatter-stacked", this.renderType = at.SVG;
9633
9633
  }
9634
9634
  render(t) {
9635
- if (!L(this.getOptions(), "points", "enabled"))
9635
+ if (!O(this.getOptions(), "points", "enabled"))
9636
9636
  return;
9637
9637
  const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), s = this.getOptions(), { groupMapsTo: a } = s.data, r = Object.keys(s.axes).some((p) => s.axes[p].percentage), o = this.model.getStackedData({
9638
9638
  groups: this.configs.groups,
9639
9639
  percentage: r
9640
- }), c = n.selectAll("g.dots").data(o, (p) => L(p, 0, a));
9640
+ }), c = n.selectAll("g.dots").data(o, (p) => O(p, 0, a));
9641
9641
  c.exit().attr("opacity", 0).remove();
9642
9642
  const h = c.enter().append("g").classed("dots", !0).attr("role", lt.GROUP).merge(c).selectAll("circle.dot").data((p) => p);
9643
9643
  h.exit().attr("opacity", 0).remove();
@@ -9706,7 +9706,7 @@ class qm extends dt {
9706
9706
  });
9707
9707
  if (n < 1 || s < 1)
9708
9708
  return;
9709
- const a = this.model.getOptions(), r = this.model.getDisplayData(), o = L(a, "tree", "rootTitle") || "Tree", c = this.getMockLabelWidth(e, o), l = this.getLongestLabel(r), h = this.getMockLabelWidth(e, l), d = {
9709
+ const a = this.model.getOptions(), r = this.model.getDisplayData(), o = O(a, "tree", "rootTitle") || "Tree", c = this.getMockLabelWidth(e, o), l = this.getLongestLabel(r), h = this.getMockLabelWidth(e, l), d = {
9710
9710
  left: c > 0 ? c + mn : 30 - mn
9711
9711
  }, u = Rn({
9712
9712
  name: o,
@@ -9723,7 +9723,7 @@ class qm extends dt {
9723
9723
  name: "tree-update-viewbox",
9724
9724
  animate: !0
9725
9725
  })
9726
- ).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(_, (C) => C.id), M = this, O = N.enter().append("g").attr("transform", () => `translate(${b.y0},${b.x0})`).attr(
9726
+ ).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(_, (C) => C.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${b.y0},${b.x0})`).attr(
9727
9727
  "class",
9728
9728
  (C) => C.depth !== 0 && C.children && C.children.length > 0 ? "clickable" : null
9729
9729
  ).on("mouseover", function(C, V) {
@@ -9745,7 +9745,7 @@ class qm extends dt {
9745
9745
  datum: V
9746
9746
  });
9747
9747
  });
9748
- O.append("circle").attr("r", 2.5).attr("class", (C) => C._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (C) => C._children ? -6 : mn).attr("text-anchor", (C) => C._children ? "end" : "start").text((C) => C.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(O).transition(H).attr("transform", (C) => `translate(${C.y},${C.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${b.y},${b.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
9748
+ L.append("circle").attr("r", 2.5).attr("class", (C) => C._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (C) => C._children ? -6 : mn).attr("text-anchor", (C) => C._children ? "end" : "start").text((C) => C.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (C) => `translate(${C.y},${C.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${b.y},${b.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
9749
9749
  const P = E.selectAll("path").data(k, (C) => C.target.id), $ = P.enter().append("path").attr("d", () => {
9750
9750
  const C = { x: b.x0, y: b.y0 };
9751
9751
  return v({ source: C, target: C });
@@ -9756,7 +9756,7 @@ class qm extends dt {
9756
9756
  }), u.eachBefore((C) => {
9757
9757
  C.x0 = C.x, C.y0 = C.y;
9758
9758
  });
9759
- }, m = u.descendants(), y = m[m.length - 1].depth, S = L(a, "tree", "type") === Sl.DENDROGRAM ? Qu().size([
9759
+ }, m = u.descendants(), y = m[m.length - 1].depth, S = O(a, "tree", "type") === Sl.DENDROGRAM ? Qu().size([
9760
9760
  s,
9761
9761
  n - h - y * mn - c
9762
9762
  ]) : Hh().nodeSize([p, f]).size([
@@ -9973,7 +9973,7 @@ class jm extends dt {
9973
9973
  ariaLabel: "treemap"
9974
9974
  });
9975
9975
  this.model.getData();
9976
- const n = this.model.getDisplayData(), s = this.model.getOptions(), a = L(window, "location"), { width: r, height: o } = I.getSVGElementSize(e, {
9976
+ const n = this.model.getDisplayData(), s = this.model.getOptions(), a = O(window, "location"), { width: r, height: o } = I.getSVGElementSize(e, {
9977
9977
  useAttrs: !0
9978
9978
  }), c = Rn({
9979
9979
  name: s.title || "Treemap",
@@ -10216,7 +10216,7 @@ function jg() {
10216
10216
  rectangular: m
10217
10217
  }, n = 64, s = 2048;
10218
10218
  ci = function() {
10219
- var E = [256, 256], x = a, b = r, _ = c, k = o, G = o, R = l, A = h, H = g, N = [], M = 1 / 0, O = i("word", "end"), P = null, $ = Math.random, C = {}, V = S;
10219
+ var E = [256, 256], x = a, b = r, _ = c, k = o, G = o, R = l, A = h, H = g, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, C = {}, V = S;
10220
10220
  C.canvas = function(F) {
10221
10221
  return arguments.length ? (V = v(F), C) : V;
10222
10222
  }, C.start = function() {
@@ -10229,9 +10229,9 @@ function jg() {
10229
10229
  function ct() {
10230
10230
  for (var st = Date.now(); Date.now() - st < M && ++Y < j && P; ) {
10231
10231
  var it = ot[Y];
10232
- it.x = E[0] * ($() + 0.5) >> 1, it.y = E[1] * ($() + 0.5) >> 1, d(F, it, ot, Y), it.hasText && X(Z, it, rt) && (K.push(it), O.call("word", C, it), rt ? p(rt, it) : rt = [{ x: it.x + it.x0, y: it.y + it.y0 }, { x: it.x + it.x1, y: it.y + it.y1 }], it.x -= E[0] >> 1, it.y -= E[1] >> 1);
10232
+ it.x = E[0] * ($() + 0.5) >> 1, it.y = E[1] * ($() + 0.5) >> 1, d(F, it, ot, Y), it.hasText && X(Z, it, rt) && (K.push(it), L.call("word", C, it), rt ? p(rt, it) : rt = [{ x: it.x + it.x0, y: it.y + it.y0 }, { x: it.x + it.x1, y: it.y + it.y1 }], it.x -= E[0] >> 1, it.y -= E[1] >> 1);
10233
10233
  }
10234
- Y >= j && (C.stop(), O.call("end", C, K, rt));
10234
+ Y >= j && (C.stop(), L.call("end", C, K, rt));
10235
10235
  }
10236
10236
  }, C.stop = function() {
10237
10237
  P && (clearInterval(P), P = null);
@@ -10284,8 +10284,8 @@ function jg() {
10284
10284
  }, C.random = function(F) {
10285
10285
  return arguments.length ? ($ = F, C) : $;
10286
10286
  }, C.on = function() {
10287
- var F = O.on.apply(O, arguments);
10288
- return F === O ? C : F;
10287
+ var F = L.on.apply(L, arguments);
10288
+ return F === L ? C : F;
10289
10289
  }, C;
10290
10290
  };
10291
10291
  function a(E) {
@@ -10316,7 +10316,7 @@ function jg() {
10316
10316
  const it = k.measureText(x.text), B = -Math.floor(it.width / 2);
10317
10317
  let z = (it.width + 1) * G, U = x.size << 1;
10318
10318
  if (x.rotate) {
10319
- var M = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), P = z * O, $ = z * M, C = U * O, V = U * M;
10319
+ var M = Math.sin(x.rotate * t), L = Math.cos(x.rotate * t), P = z * L, $ = z * M, C = U * L, V = U * M;
10320
10320
  z = Math.max(Math.abs(P + V), Math.abs(P - V)) + 31 >> 5 << 5, U = ~~Math.max(Math.abs($ + C), Math.abs($ - C));
10321
10321
  } else
10322
10322
  z = z + 31 >> 5 << 5;
@@ -10341,10 +10341,10 @@ function jg() {
10341
10341
  }
10342
10342
  function u(E, x, b) {
10343
10343
  b >>= 5;
10344
- for (var _ = E.sprite, k = E.width >> 5, G = E.x - (k << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * b + (G >> 5), M, O = 0; O < H; O++) {
10344
+ for (var _ = E.sprite, k = E.width >> 5, G = E.x - (k << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * b + (G >> 5), M, L = 0; L < H; L++) {
10345
10345
  M = 0;
10346
10346
  for (var P = 0; P <= k; P++)
10347
- if ((M << A | (P < k ? (M = _[O * k + P]) >>> R : 0)) & x[N + P]) return !0;
10347
+ if ((M << A | (P < k ? (M = _[L * k + P]) >>> R : 0)) & x[N + P]) return !0;
10348
10348
  N += b;
10349
10349
  }
10350
10350
  return !1;
@@ -10549,7 +10549,7 @@ class Qg extends dt {
10549
10549
  });
10550
10550
  if (e < 1 || n < 1)
10551
10551
  return;
10552
- const s = this.getProjection(), a = L(this.getOptions(), "geoData"), r = this.model.getCombinedData(), o = {}, c = {};
10552
+ const s = this.getProjection(), a = O(this.getOptions(), "geoData"), r = this.model.getCombinedData(), o = {}, c = {};
10553
10553
  Object.keys(r).forEach((y) => {
10554
10554
  typeof r[y].value == "number" ? o[y] = r[y] : c[y] = r[y];
10555
10555
  });
@@ -10582,7 +10582,7 @@ class Qg extends dt {
10582
10582
  */
10583
10583
  getProjection() {
10584
10584
  let t = null;
10585
- switch (L(this.getOptions(), "thematic", "projection")) {
10585
+ switch (O(this.getOptions(), "thematic", "projection")) {
10586
10586
  // Azimuthal Projections
10587
10587
  case Me.geoEqualEarth:
10588
10588
  t = Fu();
@@ -10622,11 +10622,13 @@ class Jm extends Qg {
10622
10622
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10623
10623
  render(t = !0) {
10624
10624
  super.render();
10625
- const e = this.model.getCombinedData();
10626
- this.getComponentContainer({ ariaLabel: "map", withinChartClip: !0 }).select("g.geo").selectAll("path").classed("border", !0).attr("class", (a) => this.model.getColorClassName({
10627
- value: e[a.properties.NAME].value,
10625
+ const e = this.model.getCombinedData(), n = this.getComponentContainer({ ariaLabel: "map", withinChartClip: !0 }), s = O(this.getOptions(), "color"), a = O(s, "gradient", "colors");
10626
+ n.select("g.geo").selectAll("path").classed("border", !0).attr("class", (o) => this.model.getColorClassName({
10627
+ value: e[o.properties.NAME].value,
10628
10628
  originalClassName: "border"
10629
- })), this.addCountryAreaEventListener();
10629
+ })).attr("style", (o) => a ? `fill: ${this.model.getColorClassName({
10630
+ value: e[o.properties.NAME].value
10631
+ })}` : null), this.addCountryAreaEventListener();
10630
10632
  }
10631
10633
  addCountryAreaEventListener() {
10632
10634
  const t = this, e = this.model.getCombinedData();
@@ -10739,4 +10741,4 @@ export {
10739
10741
  Zm as y,
10740
10742
  $m as z
10741
10743
  };
10742
- //# sourceMappingURL=choropleth-Ds5Q8kNS.mjs.map
10744
+ //# sourceMappingURL=choropleth-B4QAH8Ww.mjs.map