@carbon/charts 1.25.1 → 1.26.1

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{angle-utils-4EO2XuoV.mjs → angle-utils-BgkbNBqH.mjs} +2 -2
  3. package/dist/{angle-utils-4EO2XuoV.mjs.map → angle-utils-BgkbNBqH.mjs.map} +1 -1
  4. package/dist/{array-Ctg9nQNq.mjs → array-CmsYzTI6.mjs} +2 -2
  5. package/dist/{array-Ctg9nQNq.mjs.map → array-CmsYzTI6.mjs.map} +1 -1
  6. package/dist/{choropleth-BgycggQG.mjs → choropleth-Bu2YPax2.mjs} +615 -595
  7. package/dist/choropleth-Bu2YPax2.mjs.map +1 -0
  8. package/dist/{color-scale-utils-igrenh2d.mjs → color-scale-utils-BzjNNGXE.mjs} +3 -2
  9. package/dist/{color-scale-utils-igrenh2d.mjs.map → color-scale-utils-BzjNNGXE.mjs.map} +1 -1
  10. package/dist/components/graphs/bar-grouped.d.ts +3 -2
  11. package/dist/components/index.mjs +1 -1
  12. package/dist/{index-B-DZT7fS.mjs → index-BoV1aXvm.mjs} +3 -3
  13. package/dist/{index-B-DZT7fS.mjs.map → index-BoV1aXvm.mjs.map} +1 -1
  14. package/dist/index.mjs +7 -7
  15. package/dist/interfaces/components.d.ts +1 -0
  16. package/dist/model/index.mjs +2 -2
  17. package/dist/services/index.mjs +3 -3
  18. package/dist/styles.css +6 -0
  19. package/dist/styles.css.map +1 -1
  20. package/dist/styles.min.css +1 -1
  21. package/dist/styles.min.css.map +1 -1
  22. package/dist/umd/bundle.umd.cjs +9 -9
  23. package/dist/umd/bundle.umd.cjs.map +1 -1
  24. package/dist/umd/bundle.umd.js +9 -9
  25. package/package.json +2 -2
  26. package/scss/graphs/_scatter-stacked.scss +2 -0
  27. package/scss/graphs/_scatter.scss +2 -0
  28. package/styles.css +6 -0
  29. package/styles.min.css +1 -1
  30. package/dist/choropleth-BgycggQG.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { t as Br, $ as ol, i as ll, a0 as cl, a1 as zr, a2 as Ur, a3 as ul, a4 as hl, a5 as dl, a6 as pl, a7 as Fr, a8 as ya, a9 as an, g as O, p as Kt, a as sn, C as Ea, aa as xt, w as Mt, ab as kn, E as xa, H as jt, ac as Wr, ad as Os, c as fl, ae as xe, I as hi, K as di, e as se, af as yn, ag as ge, f as ye, x as ve, ah as gl, h as Je, O as ml, ai as Xr, aj as Re, z as Et, l as qt, ak as Gt, al as vl, M as yl, am as Yr, y as _t, q as dn, n as Bn, an as Ps, ao as El, ap as xl, aq as pi, ar as Sa, A as Ae, as as Ta, at as Zr, au as Sl } from "./color-scale-utils-igrenh2d.mjs";
2
- import { y as at, $ as b, N as Tt, r as be, q as ze, L as Tl, A as te, m as nt, s as Me, W as Qe, S as kt, e as J, Z as Ue, i as Xt, f as ba, J as $s, d as bl, F as zn, n as Vs, H as Gs, C as Hs, p as Un, b as Oa, D as Bs, U as Ol, x as we, a0 as Fn, O as zs } from "./axis-scales-CPuwbFQf.mjs";
1
+ import { t as Br, $ as ol, i as ll, a0 as cl, a1 as zr, a2 as Ur, a3 as ul, a4 as hl, a5 as dl, a6 as pl, a7 as Fr, a8 as ya, a9 as an, g as O, p as Kt, a as sn, C as Ea, aa as xt, w as Mt, ab as kn, E as xa, H as jt, ac as Wr, ad as Ls, c as fl, ae as xe, I as di, K as pi, e as se, af as yn, ag as ge, f as ye, x as ve, ah as gl, h as Je, O as ml, ai as Xr, aj as Re, z as Et, l as qt, ak as Gt, al as vl, M as yl, am as Yr, y as _t, q as dn, n as Bn, an as $s, ao as El, ap as xl, aq as fi, ar as Sa, A as Ae, as as Ta, at as Zr, au as Sl } from "./color-scale-utils-BzjNNGXE.mjs";
2
+ import { y as at, $ as b, N as Tt, r as be, q as ze, L as Tl, A as te, m as nt, s as Me, W as Qe, S as kt, e as J, Z as Ue, i as Xt, f as ba, J as Vs, d as bl, F as zn, n as Gs, H as Hs, C as Bs, p as Un, b as Oa, D as zs, U as Ol, x as we, a0 as Fn, O as Us } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as lt } from "./a11y-ePqvrObQ.mjs";
4
- import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as Us, i as Aa, j as Ma, k as tn, l as Dt, n as wa, o as Ll, q as Al, u as Bi, D as I, v as Ml, w as fi, G as Ca, x as zi, y as wl, a as Cl, p as bt, r as ka, b as kl } from "./angle-utils-4EO2XuoV.mjs";
5
- import { b as qr, c as pt, a as Ui, s as _l } from "./array-Ctg9nQNq.mjs";
4
+ import { t as ns, s as D, h as La, e as Ut, c as ss, f as Ce, g as oe, m as Fs, i as Aa, j as Ma, k as tn, l as Dt, n as wa, o as Ll, q as Al, u as zi, D as I, v as Ml, w as gi, G as Ca, x as hs, y as wl, a as Cl, p as bt, r as ka, b as kl } from "./angle-utils-BgkbNBqH.mjs";
5
+ import { b as qr, c as pt, a as Ui, s as _l } from "./array-CmsYzTI6.mjs";
6
6
  function Il(i, t, e, n) {
7
7
  for (var s = -1, a = i == null ? 0 : i.length; ++s < a; )
8
8
  e = t(e, i[s], s, i);
@@ -321,7 +321,7 @@ function ho(i) {
321
321
  function Ic(i) {
322
322
  return i;
323
323
  }
324
- var is = 1, as = 2, gi = 3, En = 4, Na = 1e-6;
324
+ var is = 1, as = 2, mi = 3, En = 4, Na = 1e-6;
325
325
  function Rc(i) {
326
326
  return "translate(" + i + ",0)";
327
327
  }
@@ -337,16 +337,16 @@ function Pc(i, t) {
337
337
  function $c() {
338
338
  return !this.__axis;
339
339
  }
340
- function Ls(i, t) {
341
- var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === En ? -1 : 1, h = i === En || i === as ? "x" : "y", d = i === is || i === gi ? Rc : Dc;
340
+ function As(i, t) {
341
+ var e = [], n = null, s = null, a = 6, r = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = i === is || i === En ? -1 : 1, h = i === En || i === as ? "x" : "y", d = i === is || i === mi ? Rc : Dc;
342
342
  function u(p) {
343
- var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), m = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : Ic), g = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Pc : Nc)(t.copy(), c), x = p.selection ? p.selection() : p, T = x.selectAll(".domain").data([null]), k = x.selectAll(".tick").data(f, t).order(), _ = k.exit(), G = k.enter().append("g").attr("class", "tick"), R = k.select("line"), A = k.select("text");
344
- T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), k = k.merge(G), R = R.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(G.append("text").attr("fill", "currentColor").attr(h, l * g).attr("dy", i === is ? "0em" : i === gi ? "0.71em" : "0.32em")), p !== x && (T = T.transition(p), k = k.transition(p), R = R.transition(p), A = A.transition(p), _ = _.transition(p).attr("opacity", Na).attr("transform", function(H) {
343
+ var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), m = s ?? (t.tickFormat ? t.tickFormat.apply(t, e) : Ic), g = Math.max(a, 0) + o, v = t.range(), S = +v[0] + c, y = +v[v.length - 1] + c, E = (t.bandwidth ? Pc : Nc)(t.copy(), c), x = p.selection ? p.selection() : p, T = x.selectAll(".domain").data([null]), C = x.selectAll(".tick").data(f, t).order(), _ = C.exit(), V = C.enter().append("g").attr("class", "tick"), R = C.select("line"), A = C.select("text");
344
+ T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), C = C.merge(V), R = R.merge(V.append("line").attr("stroke", "currentColor").attr(h + "2", l * a)), A = A.merge(V.append("text").attr("fill", "currentColor").attr(h, l * g).attr("dy", i === is ? "0em" : i === mi ? "0.71em" : "0.32em")), p !== x && (T = T.transition(p), C = C.transition(p), R = R.transition(p), A = A.transition(p), _ = _.transition(p).attr("opacity", Na).attr("transform", function(H) {
345
345
  return isFinite(H = E(H)) ? d(H + c) : this.getAttribute("transform");
346
- }), G.attr("opacity", Na).attr("transform", function(H) {
346
+ }), V.attr("opacity", Na).attr("transform", function(H) {
347
347
  var N = this.parentNode.__axis;
348
348
  return d((N && isFinite(N = N(H)) ? N : E(H)) + c);
349
- })), _.remove(), T.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + y + "H" + l * r : "M" + c + "," + S + "V" + y : r ? "M" + S + "," + l * r + "V" + c + "H" + y + "V" + l * r : "M" + S + "," + c + "H" + y), k.attr("opacity", 1).attr("transform", function(H) {
349
+ })), _.remove(), T.attr("d", i === En || i === as ? r ? "M" + l * r + "," + S + "H" + c + "V" + y + "H" + l * r : "M" + c + "," + S + "V" + y : r ? "M" + S + "," + l * r + "V" + c + "H" + y + "V" + l * r : "M" + S + "," + c + "H" + y), C.attr("opacity", 1).attr("transform", function(H) {
350
350
  return d(E(H) + c);
351
351
  }), R.attr(h + "2", l * a), A.attr(h, l * g).text(m), x.filter($c).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", i === as ? "start" : i === En ? "end" : "middle"), x.each(function() {
352
352
  this.__axis = E;
@@ -375,28 +375,28 @@ function Ls(i, t) {
375
375
  }, u;
376
376
  }
377
377
  function Vc(i) {
378
- return Ls(is, i);
378
+ return As(is, i);
379
379
  }
380
380
  function Gc(i) {
381
- return Ls(as, i);
381
+ return As(as, i);
382
382
  }
383
383
  function Fi(i) {
384
- return Ls(gi, i);
384
+ return As(mi, i);
385
385
  }
386
386
  function po(i) {
387
- return Ls(En, i);
387
+ return As(En, i);
388
388
  }
389
- const mi = { capture: !0, passive: !1 };
390
- function vi(i) {
389
+ const vi = { capture: !0, passive: !1 };
390
+ function yi(i) {
391
391
  i.preventDefault(), i.stopImmediatePropagation();
392
392
  }
393
393
  function Hc(i) {
394
- var t = i.document.documentElement, e = D(i).on("dragstart.drag", vi, mi);
395
- "onselectstart" in t ? e.on("selectstart.drag", vi, mi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
394
+ var t = i.document.documentElement, e = D(i).on("dragstart.drag", yi, vi);
395
+ "onselectstart" in t ? e.on("selectstart.drag", yi, vi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
396
396
  }
397
397
  function Bc(i, t) {
398
398
  var e = i.document.documentElement, n = D(i).on("dragstart.drag", null);
399
- t && (n.on("click.drag", vi, mi), setTimeout(function() {
399
+ t && (n.on("click.drag", yi, vi), setTimeout(function() {
400
400
  n.on("click.drag", null);
401
401
  }, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
402
402
  }
@@ -404,7 +404,7 @@ function zc(i, t) {
404
404
  for (var e = new Array(t), n = 0; n < t; ++n) e[n] = i(n / (t - 1));
405
405
  return e;
406
406
  }
407
- const Uc = (i) => +i, Fs = (i) => () => i;
407
+ const Uc = (i) => +i, Ws = (i) => () => i;
408
408
  function Fc(i, {
409
409
  sourceEvent: t,
410
410
  target: e,
@@ -424,10 +424,10 @@ function Fc(i, {
424
424
  function Wc(i) {
425
425
  i.stopImmediatePropagation();
426
426
  }
427
- function Ws(i) {
427
+ function Xs(i) {
428
428
  i.preventDefault(), i.stopImmediatePropagation();
429
429
  }
430
- var Pa = { name: "drag" }, Xs = { name: "space" }, We = { name: "handle" }, Xe = { name: "center" };
430
+ var Pa = { name: "drag" }, Ys = { name: "space" }, We = { name: "handle" }, Xe = { name: "center" };
431
431
  const { abs: $a, max: Nt, min: Pt } = Math;
432
432
  function Va(i) {
433
433
  return [+i[0], +i[1]];
@@ -437,14 +437,14 @@ function Ga(i) {
437
437
  }
438
438
  var rs = {
439
439
  name: "x",
440
- handles: ["w", "e"].map(yi),
440
+ handles: ["w", "e"].map(Ei),
441
441
  input: function(i, t) {
442
442
  return i == null ? null : [[+i[0], t[0][1]], [+i[1], t[1][1]]];
443
443
  },
444
444
  output: function(i) {
445
445
  return i && [i[0][0], i[1][0]];
446
446
  }
447
- }, Ys = {}, fe = {
447
+ }, Zs = {}, fe = {
448
448
  overlay: "crosshair",
449
449
  selection: "move",
450
450
  n: "ns-resize",
@@ -492,7 +492,7 @@ var rs = {
492
492
  se: 1,
493
493
  sw: 1
494
494
  };
495
- function yi(i) {
495
+ function Ei(i) {
496
496
  return { type: i };
497
497
  }
498
498
  function Zc(i) {
@@ -505,7 +505,7 @@ function qc() {
505
505
  function jc() {
506
506
  return navigator.maxTouchPoints || "ontouchstart" in this;
507
507
  }
508
- function Zs(i) {
508
+ function qs(i) {
509
509
  for (; !i.__brush; ) if (!(i = i.parentNode)) return;
510
510
  return i.__brush;
511
511
  }
@@ -518,11 +518,11 @@ function fo() {
518
518
  function Jc(i) {
519
519
  var t = qc, e = Zc, n = jc, s = !0, a = pl("start", "brush", "end"), r = 6, o;
520
520
  function c(g) {
521
- var v = g.property("__brush", m).selectAll(".overlay").data([yi("overlay")]);
521
+ var v = g.property("__brush", m).selectAll(".overlay").data([Ei("overlay")]);
522
522
  v.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", fe.overlay).merge(v).each(function() {
523
- var y = Zs(this).extent;
523
+ var y = qs(this).extent;
524
524
  D(this).attr("x", y[0][0]).attr("y", y[0][1]).attr("width", y[1][0] - y[0][0]).attr("height", y[1][1] - y[0][1]);
525
- }), g.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", fe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
525
+ }), g.selectAll(".selection").data([Ei("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", fe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
526
526
  var S = g.selectAll(".handle").data(i.handles, function(y) {
527
527
  return y.type;
528
528
  });
@@ -538,20 +538,20 @@ function Jc(i) {
538
538
  }).on("interrupt.brush end.brush", function(y) {
539
539
  h(this, arguments).end(y);
540
540
  }).tween("brush", function() {
541
- var y = this, E = y.__brush, x = h(y, arguments), T = E.selection, k = i.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), _ = Fr(T, k);
542
- function G(R) {
543
- E.selection = R === 1 && k === null ? null : _(R), l.call(y), x.brush();
541
+ var y = this, E = y.__brush, x = h(y, arguments), T = E.selection, C = i.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), _ = Fr(T, C);
542
+ function V(R) {
543
+ E.selection = R === 1 && C === null ? null : _(R), l.call(y), x.brush();
544
544
  }
545
- return T !== null && k !== null ? G : G(1);
545
+ return T !== null && C !== null ? V : V(1);
546
546
  }) : g.each(function() {
547
- var y = this, E = arguments, x = y.__brush, T = i.input(typeof v == "function" ? v.apply(y, E) : v, x.extent), k = h(y, E).beforestart();
548
- ya(y), x.selection = T === null ? null : T, l.call(y), k.start(S).brush(S).end(S);
547
+ var y = this, E = arguments, x = y.__brush, T = i.input(typeof v == "function" ? v.apply(y, E) : v, x.extent), C = h(y, E).beforestart();
548
+ ya(y), x.selection = T === null ? null : T, l.call(y), C.start(S).brush(S).end(S);
549
549
  });
550
550
  }, c.clear = function(g, v) {
551
551
  c.move(g, null, v);
552
552
  };
553
553
  function l() {
554
- var g = D(this), v = Zs(this).selection;
554
+ var g = D(this), v = qs(this).selection;
555
555
  v ? (g.selectAll(".selection").style("display", null).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]), g.selectAll(".handle").style("display", null).attr("x", function(S) {
556
556
  return S.type[S.type.length - 1] === "e" ? v[1][0] - r / 2 : v[0][0] - r / 2;
557
557
  }).attr("y", function(S) {
@@ -600,7 +600,7 @@ function Jc(i) {
600
600
  };
601
601
  function u(g) {
602
602
  if (o && !g.touches || !e.apply(this, arguments)) return;
603
- var v = this, S = g.target.__data__.type, y = (s && g.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && g.altKey ? Xe : We, E = i === Ys ? null : Xc[S], x = i === rs ? null : Yc[S], T = Zs(v), k = T.extent, _ = T.selection, G = k[0][0], R, A, H = k[0][1], N, M, L = k[1][0], P, $, C = k[1][1], V, q, X = 0, F = 0, Z, rt = E && x && s && g.shiftKey, j, Y, K = Array.from(g.touches || [g], (et) => {
603
+ var v = this, S = g.target.__data__.type, y = (s && g.metaKey ? S = "overlay" : S) === "selection" ? Pa : s && g.altKey ? Xe : We, E = i === Zs ? null : Xc[S], x = i === rs ? null : Yc[S], T = qs(v), C = T.extent, _ = T.selection, V = C[0][0], R, A, H = C[0][1], N, M, L = C[1][0], P, $, k = C[1][1], G, q, X = 0, F = 0, Z, rt = E && x && s && g.shiftKey, j, Y, K = Array.from(g.touches || [g], (et) => {
604
604
  const yt = et.identifier;
605
605
  return et = an(et, v), et.point0 = et.slice(), et.identifier = yt, et;
606
606
  });
@@ -610,15 +610,15 @@ function Jc(i) {
610
610
  _ && (Z = !0);
611
611
  const et = [K[0], K[1] || K[0]];
612
612
  T.selection = _ = [[
613
- R = i === Ys ? G : Pt(et[0][0], et[1][0]),
613
+ R = i === Zs ? V : Pt(et[0][0], et[1][0]),
614
614
  N = i === rs ? H : Pt(et[0][1], et[1][1])
615
615
  ], [
616
- P = i === Ys ? L : Nt(et[0][0], et[1][0]),
617
- V = i === rs ? C : Nt(et[0][1], et[1][1])
616
+ P = i === Zs ? L : Nt(et[0][0], et[1][0]),
617
+ G = i === rs ? k : Nt(et[0][1], et[1][1])
618
618
  ]], K.length > 1 && B(g);
619
619
  } else
620
- R = _[0][0], N = _[0][1], P = _[1][0], V = _[1][1];
621
- A = R, M = N, $ = P, q = V;
620
+ R = _[0][0], N = _[0][1], P = _[1][0], G = _[1][1];
621
+ A = R, M = N, $ = P, q = G;
622
622
  var ct = D(v).attr("pointer-events", "none"), st = ct.selectAll(".overlay").attr("cursor", fe[S]);
623
623
  if (g.touches)
624
624
  ot.moved = z, ot.ended = U;
@@ -637,27 +637,27 @@ function Jc(i) {
637
637
  }
638
638
  for (const yt of K)
639
639
  yt.cur && (yt[0] = yt.cur[0], yt[1] = yt.cur[1]);
640
- Z = !0, Ws(et), B(et);
640
+ Z = !0, Xs(et), B(et);
641
641
  }
642
642
  function B(et) {
643
643
  const yt = K[0], Zt = yt.point0;
644
644
  var Wt;
645
645
  switch (X = yt[0] - Zt[0], F = yt[1] - Zt[1], y) {
646
- case Xs:
646
+ case Ys:
647
647
  case Pa: {
648
- E && (X = Nt(G - R, Pt(L - P, X)), A = R + X, $ = P + X), x && (F = Nt(H - N, Pt(C - V, F)), M = N + F, q = V + F);
648
+ E && (X = Nt(V - R, Pt(L - P, X)), A = R + X, $ = P + X), x && (F = Nt(H - N, Pt(k - G, F)), M = N + F, q = G + F);
649
649
  break;
650
650
  }
651
651
  case We: {
652
- K[1] ? (E && (A = Nt(G, Pt(L, K[0][0])), $ = Nt(G, Pt(L, K[1][0])), E = 1), x && (M = Nt(H, Pt(C, K[0][1])), q = Nt(H, Pt(C, K[1][1])), x = 1)) : (E < 0 ? (X = Nt(G - R, Pt(L - R, X)), A = R + X, $ = P) : E > 0 && (X = Nt(G - P, Pt(L - P, X)), A = R, $ = P + X), x < 0 ? (F = Nt(H - N, Pt(C - N, F)), M = N + F, q = V) : x > 0 && (F = Nt(H - V, Pt(C - V, F)), M = N, q = V + F));
652
+ K[1] ? (E && (A = Nt(V, Pt(L, K[0][0])), $ = Nt(V, Pt(L, K[1][0])), E = 1), x && (M = Nt(H, Pt(k, K[0][1])), q = Nt(H, Pt(k, K[1][1])), x = 1)) : (E < 0 ? (X = Nt(V - R, Pt(L - R, X)), A = R + X, $ = P) : E > 0 && (X = Nt(V - P, Pt(L - P, X)), A = R, $ = P + X), x < 0 ? (F = Nt(H - N, Pt(k - N, F)), M = N + F, q = G) : x > 0 && (F = Nt(H - G, Pt(k - G, F)), M = N, q = G + F));
653
653
  break;
654
654
  }
655
655
  case Xe: {
656
- E && (A = Nt(G, Pt(L, R - X * E)), $ = Nt(G, Pt(L, P + X * E))), x && (M = Nt(H, Pt(C, N - F * x)), q = Nt(H, Pt(C, V + F * x)));
656
+ E && (A = Nt(V, Pt(L, R - X * E)), $ = Nt(V, Pt(L, P + X * E))), x && (M = Nt(H, Pt(k, N - F * x)), q = Nt(H, Pt(k, G + F * x)));
657
657
  break;
658
658
  }
659
659
  }
660
- $ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = V, V = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])), T.selection && (_ = T.selection), j && (A = _[0][0], $ = _[1][0]), Y && (M = _[0][1], q = _[1][1]), (_[0][0] !== A || _[0][1] !== M || _[1][0] !== $ || _[1][1] !== q) && (T.selection = [[A, M], [$, q]], l.call(v), ot.brush(et, y.name));
660
+ $ < A && (E *= -1, Wt = R, R = P, P = Wt, Wt = A, A = $, $ = Wt, S in Ha && st.attr("cursor", fe[S = Ha[S]])), q < M && (x *= -1, Wt = N, N = G, G = Wt, Wt = M, M = q, q = Wt, S in Ba && st.attr("cursor", fe[S = Ba[S]])), T.selection && (_ = T.selection), j && (A = _[0][0], $ = _[1][0]), Y && (M = _[0][1], q = _[1][1]), (_[0][0] !== A || _[0][1] !== M || _[1][0] !== $ || _[1][1] !== q) && (T.selection = [[A, M], [$, q]], l.call(v), ot.brush(et, y.name));
661
661
  }
662
662
  function U(et) {
663
663
  if (Wc(et), et.touches) {
@@ -676,17 +676,17 @@ function Jc(i) {
676
676
  break;
677
677
  }
678
678
  case 18: {
679
- y === We && (E && (P = $ - X * E, R = A + X * E), x && (V = q - F * x, N = M + F * x), y = Xe, B(et));
679
+ y === We && (E && (P = $ - X * E, R = A + X * E), x && (G = q - F * x, N = M + F * x), y = Xe, B(et));
680
680
  break;
681
681
  }
682
682
  case 32: {
683
- (y === We || y === Xe) && (E < 0 ? P = $ - X : E > 0 && (R = A - X), x < 0 ? V = q - F : x > 0 && (N = M - F), y = Xs, st.attr("cursor", fe.selection), B(et));
683
+ (y === We || y === Xe) && (E < 0 ? P = $ - X : E > 0 && (R = A - X), x < 0 ? G = q - F : x > 0 && (N = M - F), y = Ys, st.attr("cursor", fe.selection), B(et));
684
684
  break;
685
685
  }
686
686
  default:
687
687
  return;
688
688
  }
689
- Ws(et);
689
+ Xs(et);
690
690
  }
691
691
  function Te(et) {
692
692
  switch (et.keyCode) {
@@ -695,17 +695,17 @@ function Jc(i) {
695
695
  break;
696
696
  }
697
697
  case 18: {
698
- y === Xe && (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? V = q : x > 0 && (N = M), y = We, B(et));
698
+ y === Xe && (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? G = q : x > 0 && (N = M), y = We, B(et));
699
699
  break;
700
700
  }
701
701
  case 32: {
702
- y === Xs && (et.altKey ? (E && (P = $ - X * E, R = A + X * E), x && (V = q - F * x, N = M + F * x), y = Xe) : (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? V = q : x > 0 && (N = M), y = We), st.attr("cursor", fe[S]), B(et));
702
+ y === Ys && (et.altKey ? (E && (P = $ - X * E, R = A + X * E), x && (G = q - F * x, N = M + F * x), y = Xe) : (E < 0 ? P = $ : E > 0 && (R = A), x < 0 ? G = q : x > 0 && (N = M), y = We), st.attr("cursor", fe[S]), B(et));
703
703
  break;
704
704
  }
705
705
  default:
706
706
  return;
707
707
  }
708
- Ws(et);
708
+ Xs(et);
709
709
  }
710
710
  }
711
711
  function p(g) {
@@ -719,11 +719,11 @@ function Jc(i) {
719
719
  return g.extent = Ga(t.apply(this, arguments)), g.dim = i, g;
720
720
  }
721
721
  return c.extent = function(g) {
722
- return arguments.length ? (t = typeof g == "function" ? g : Fs(Ga(g)), c) : t;
722
+ return arguments.length ? (t = typeof g == "function" ? g : Ws(Ga(g)), c) : t;
723
723
  }, c.filter = function(g) {
724
- return arguments.length ? (e = typeof g == "function" ? g : Fs(!!g), c) : e;
724
+ return arguments.length ? (e = typeof g == "function" ? g : Ws(!!g), c) : e;
725
725
  }, c.touchable = function(g) {
726
- return arguments.length ? (n = typeof g == "function" ? g : Fs(!!g), c) : n;
726
+ return arguments.length ? (n = typeof g == "function" ? g : Ws(!!g), c) : n;
727
727
  }, c.handleSize = function(g) {
728
728
  return arguments.length ? (r = +g, c) : r;
729
729
  }, c.keyModifiers = function(g) {
@@ -733,7 +733,7 @@ function Jc(i) {
733
733
  return g === a ? c : g;
734
734
  }, c;
735
735
  }
736
- const Ei = Math.PI, xi = 2 * Ei, ke = 1e-6, Qc = xi - ke;
736
+ const xi = Math.PI, Si = 2 * xi, ke = 1e-6, Qc = Si - ke;
737
737
  function go(i) {
738
738
  this._ += i[0];
739
739
  for (let t = 1, e = i.length; t < e; ++t)
@@ -778,14 +778,14 @@ let Wi = class {
778
778
  else if (u > ke) if (!(Math.abs(d * c - l * h) > ke) || !a)
779
779
  this._append`L${this._x1 = t},${this._y1 = e}`;
780
780
  else {
781
- let p = n - r, f = s - o, m = c * c + l * l, g = p * p + f * f, v = Math.sqrt(m), S = Math.sqrt(u), y = a * Math.tan((Ei - Math.acos((m + u - g) / (2 * v * S))) / 2), E = y / S, x = y / v;
781
+ let p = n - r, f = s - o, m = c * c + l * l, g = p * p + f * f, v = Math.sqrt(m), S = Math.sqrt(u), y = a * Math.tan((xi - Math.acos((m + u - g) / (2 * v * S))) / 2), E = y / S, x = y / v;
782
782
  Math.abs(E - 1) > ke && this._append`L${t + E * h},${e + E * d}`, this._append`A${a},${a},0,0,${+(d * p > h * f)},${this._x1 = t + x * c},${this._y1 = e + x * l}`;
783
783
  }
784
784
  }
785
785
  arc(t, e, n, s, a, r) {
786
786
  if (t = +t, e = +e, n = +n, r = !!r, n < 0) throw new Error(`negative radius: ${n}`);
787
787
  let o = n * Math.cos(s), c = n * Math.sin(s), l = t + o, h = e + c, d = 1 ^ r, u = r ? s - a : a - s;
788
- this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > ke || Math.abs(this._y1 - h) > ke) && this._append`L${l},${h}`, n && (u < 0 && (u = u % xi + xi), u > Qc ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > ke && this._append`A${n},${n},0,${+(u >= Ei)},${d},${this._x1 = t + n * Math.cos(a)},${this._y1 = e + n * Math.sin(a)}`);
788
+ this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > ke || Math.abs(this._y1 - h) > ke) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Si + Si), u > Qc ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > ke && this._append`A${n},${n},0,${+(u >= xi)},${d},${this._x1 = t + n * Math.cos(a)},${this._y1 = e + n * Math.sin(a)}`);
789
789
  }
790
790
  rect(t, e, n, s) {
791
791
  this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}h${n = +n}v${+s}h${-n}Z`;
@@ -794,10 +794,10 @@ let Wi = class {
794
794
  return this._;
795
795
  }
796
796
  };
797
- function As() {
797
+ function Ms() {
798
798
  return new Wi();
799
799
  }
800
- As.prototype = Wi.prototype;
800
+ Ms.prototype = Wi.prototype;
801
801
  var gt = 1e-6, mo = 1e-12, ht = Math.PI, Ft = ht / 2, za = ht / 4, Yt = ht * 2, Vt = 180 / ht, Ot = ht / 180, mt = Math.abs, vo = Math.atan, Ne = Math.atan2, vt = Math.cos, eu = Math.exp, nu = Math.log, ft = Math.sin, Oe = Math.sign || function(i) {
802
802
  return i > 0 ? 1 : i < 0 ? -1 : 0;
803
803
  }, ae = Math.sqrt, su = Math.tan;
@@ -809,15 +809,15 @@ function Se(i) {
809
809
  }
810
810
  function Qt() {
811
811
  }
812
- function hs(i, t) {
812
+ function ds(i, t) {
813
813
  i && Fa.hasOwnProperty(i.type) && Fa[i.type](i, t);
814
814
  }
815
815
  var Ua = {
816
816
  Feature: function(i, t) {
817
- hs(i.geometry, t);
817
+ ds(i.geometry, t);
818
818
  },
819
819
  FeatureCollection: function(i, t) {
820
- for (var e = i.features, n = -1, s = e.length; ++n < s; ) hs(e[n].geometry, t);
820
+ for (var e = i.features, n = -1, s = e.length; ++n < s; ) ds(e[n].geometry, t);
821
821
  }
822
822
  }, Fa = {
823
823
  Sphere: function(i, t) {
@@ -830,10 +830,10 @@ var Ua = {
830
830
  for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) i = e[n], t.point(i[0], i[1], i[2]);
831
831
  },
832
832
  LineString: function(i, t) {
833
- Si(i.coordinates, t, 0);
833
+ Ti(i.coordinates, t, 0);
834
834
  },
835
835
  MultiLineString: function(i, t) {
836
- for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) Si(e[n], t, 0);
836
+ for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) Ti(e[n], t, 0);
837
837
  },
838
838
  Polygon: function(i, t) {
839
839
  Wa(i.coordinates, t);
@@ -842,23 +842,23 @@ var Ua = {
842
842
  for (var e = i.coordinates, n = -1, s = e.length; ++n < s; ) Wa(e[n], t);
843
843
  },
844
844
  GeometryCollection: function(i, t) {
845
- for (var e = i.geometries, n = -1, s = e.length; ++n < s; ) hs(e[n], t);
845
+ for (var e = i.geometries, n = -1, s = e.length; ++n < s; ) ds(e[n], t);
846
846
  }
847
847
  };
848
- function Si(i, t, e) {
848
+ function Ti(i, t, e) {
849
849
  var n = -1, s = i.length - e, a;
850
850
  for (t.lineStart(); ++n < s; ) a = i[n], t.point(a[0], a[1], a[2]);
851
851
  t.lineEnd();
852
852
  }
853
853
  function Wa(i, t) {
854
854
  var e = -1, n = i.length;
855
- for (t.polygonStart(); ++e < n; ) Si(i[e], t, 1);
855
+ for (t.polygonStart(); ++e < n; ) Ti(i[e], t, 1);
856
856
  t.polygonEnd();
857
857
  }
858
858
  function je(i, t) {
859
- i && Ua.hasOwnProperty(i.type) ? Ua[i.type](i, t) : hs(i, t);
859
+ i && Ua.hasOwnProperty(i.type) ? Ua[i.type](i, t) : ds(i, t);
860
860
  }
861
- function Ti(i) {
861
+ function bi(i) {
862
862
  return [Ne(i[1], i[0]), Se(i[2])];
863
863
  }
864
864
  function rn(i) {
@@ -868,20 +868,20 @@ function rn(i) {
868
868
  function Wn(i, t) {
869
869
  return i[0] * t[0] + i[1] * t[1] + i[2] * t[2];
870
870
  }
871
- function ds(i, t) {
871
+ function ps(i, t) {
872
872
  return [i[1] * t[2] - i[2] * t[1], i[2] * t[0] - i[0] * t[2], i[0] * t[1] - i[1] * t[0]];
873
873
  }
874
- function qs(i, t) {
874
+ function js(i, t) {
875
875
  i[0] += t[0], i[1] += t[1], i[2] += t[2];
876
876
  }
877
877
  function Xn(i, t) {
878
878
  return [i[0] * t, i[1] * t, i[2] * t];
879
879
  }
880
- function bi(i) {
880
+ function Oi(i) {
881
881
  var t = ae(i[0] * i[0] + i[1] * i[1] + i[2] * i[2]);
882
882
  i[0] /= t, i[1] /= t, i[2] /= t;
883
883
  }
884
- function Oi(i, t) {
884
+ function Li(i, t) {
885
885
  function e(n, s) {
886
886
  return n = i(n, s), t(n[0], n[1]);
887
887
  }
@@ -889,12 +889,12 @@ function Oi(i, t) {
889
889
  return n = t.invert(n, s), n && i.invert(n[0], n[1]);
890
890
  }), e;
891
891
  }
892
- function Li(i, t) {
892
+ function Ai(i, t) {
893
893
  return mt(i) > ht && (i -= Math.round(i / Yt) * Yt), [i, t];
894
894
  }
895
- Li.invert = Li;
895
+ Ai.invert = Ai;
896
896
  function yo(i, t, e) {
897
- return (i %= Yt) ? t || e ? Oi(Ya(i), Za(t, e)) : Ya(i) : t || e ? Za(t, e) : Li;
897
+ return (i %= Yt) ? t || e ? Li(Ya(i), Za(t, e)) : Ya(i) : t || e ? Za(t, e) : Ai;
898
898
  }
899
899
  function Xa(i) {
900
900
  return function(t, e) {
@@ -936,11 +936,11 @@ function ru(i, t, e, n, s, a) {
936
936
  var r = vt(t), o = ft(t), c = n * e;
937
937
  s == null ? (s = t + n * Yt, a = t - c / 2) : (s = qa(r, s), a = qa(r, a), (n > 0 ? s < a : s > a) && (s += n * Yt));
938
938
  for (var l, h = s; n > 0 ? h > a : h < a; h -= c)
939
- l = Ti([r, -o * vt(h), -o * ft(h)]), i.point(l[0], l[1]);
939
+ l = bi([r, -o * vt(h), -o * ft(h)]), i.point(l[0], l[1]);
940
940
  }
941
941
  }
942
942
  function qa(i, t) {
943
- t = rn(t), t[0] -= i, bi(t);
943
+ t = rn(t), t[0] -= i, Oi(t);
944
944
  var e = iu(-t[1]);
945
945
  return ((-t[2] < 0 ? -e : e) + Yt - gt) % Yt;
946
946
  }
@@ -1017,21 +1017,21 @@ function ja(i) {
1017
1017
  n.n = s = i[0], s.p = n;
1018
1018
  }
1019
1019
  }
1020
- function js(i) {
1020
+ function Ks(i) {
1021
1021
  return mt(i[0]) <= ht ? i[0] : Oe(i[0]) * ((mt(i[0]) + ht) % Yt - ht);
1022
1022
  }
1023
1023
  function ou(i, t) {
1024
- var e = js(t), n = t[1], s = ft(n), a = [ft(e), -vt(e), 0], r = 0, o = 0, c = new De();
1024
+ var e = Ks(t), n = t[1], s = ft(n), a = [ft(e), -vt(e), 0], r = 0, o = 0, c = new De();
1025
1025
  s === 1 ? n = Ft + gt : s === -1 && (n = -Ft - gt);
1026
1026
  for (var l = 0, h = i.length; l < h; ++l)
1027
1027
  if (u = (d = i[l]).length)
1028
- for (var d, u, p = d[u - 1], f = js(p), m = p[1] / 2 + za, g = ft(m), v = vt(m), S = 0; S < u; ++S, f = E, g = T, v = k, p = y) {
1029
- var y = d[S], E = js(y), x = y[1] / 2 + za, T = ft(x), k = vt(x), _ = E - f, G = _ >= 0 ? 1 : -1, R = G * _, A = R > ht, H = g * T;
1030
- if (c.add(Ne(H * G * ft(R), v * k + H * vt(R))), r += A ? _ + G * Yt : _, A ^ f >= e ^ E >= e) {
1031
- var N = ds(rn(p), rn(y));
1032
- bi(N);
1033
- var M = ds(a, N);
1034
- bi(M);
1028
+ for (var d, u, p = d[u - 1], f = Ks(p), m = p[1] / 2 + za, g = ft(m), v = vt(m), S = 0; S < u; ++S, f = E, g = T, v = C, p = y) {
1029
+ var y = d[S], E = Ks(y), x = y[1] / 2 + za, T = ft(x), C = vt(x), _ = E - f, V = _ >= 0 ? 1 : -1, R = V * _, A = R > ht, H = g * T;
1030
+ if (c.add(Ne(H * V * ft(R), v * C + H * vt(R))), r += A ? _ + V * Yt : _, A ^ f >= e ^ E >= e) {
1031
+ var N = ps(rn(p), rn(y));
1032
+ Oi(N);
1033
+ var M = ps(a, N);
1034
+ Oi(M);
1035
1035
  var L = (A ^ _ >= 0 ? -1 : 1) * Se(M[2]);
1036
1036
  (n > L || n === L && (N[0] || N[1])) && (o += A ^ _ >= 0 ? 1 : -1);
1037
1037
  }
@@ -1076,16 +1076,16 @@ function So(i, t, e, n) {
1076
1076
  }
1077
1077
  function y() {
1078
1078
  v(d[0][0], d[0][1]), o.lineEnd();
1079
- var E = o.clean(), x = r.result(), T, k = x.length, _, G, R;
1080
- if (d.pop(), l.push(d), d = null, !!k) {
1079
+ var E = o.clean(), x = r.result(), T, C = x.length, _, V, R;
1080
+ if (d.pop(), l.push(d), d = null, !!C) {
1081
1081
  if (E & 1) {
1082
- if (G = x[0], (_ = G.length - 1) > 0) {
1083
- for (c || (s.polygonStart(), c = !0), s.lineStart(), T = 0; T < _; ++T) s.point((R = G[T])[0], R[1]);
1082
+ if (V = x[0], (_ = V.length - 1) > 0) {
1083
+ for (c || (s.polygonStart(), c = !0), s.lineStart(), T = 0; T < _; ++T) s.point((R = V[T])[0], R[1]);
1084
1084
  s.lineEnd();
1085
1085
  }
1086
1086
  return;
1087
1087
  }
1088
- k > 1 && E & 2 && x.push(x.pop().concat(x.shift())), h.push(x.filter(lu));
1088
+ C > 1 && E & 2 && x.push(x.pop().concat(x.shift())), h.push(x.filter(lu));
1089
1089
  }
1090
1090
  }
1091
1091
  return u;
@@ -1172,20 +1172,20 @@ function pu(i) {
1172
1172
  };
1173
1173
  }
1174
1174
  function c(h, d, u) {
1175
- var p = rn(h), f = rn(d), m = [1, 0, 0], g = ds(p, f), v = Wn(g, g), S = g[0], y = v - S * S;
1175
+ var p = rn(h), f = rn(d), m = [1, 0, 0], g = ps(p, f), v = Wn(g, g), S = g[0], y = v - S * S;
1176
1176
  if (!y) return !u && h;
1177
- var E = t * v / y, x = -t * S / y, T = ds(m, g), k = Xn(m, E), _ = Xn(g, x);
1178
- qs(k, _);
1179
- var G = T, R = Wn(k, G), A = Wn(G, G), H = R * R - A * (Wn(k, k) - 1);
1177
+ var E = t * v / y, x = -t * S / y, T = ps(m, g), C = Xn(m, E), _ = Xn(g, x);
1178
+ js(C, _);
1179
+ var V = T, R = Wn(C, V), A = Wn(V, V), H = R * R - A * (Wn(C, C) - 1);
1180
1180
  if (!(H < 0)) {
1181
- var N = ae(H), M = Xn(G, (-R - N) / A);
1182
- if (qs(M, k), M = Ti(M), !u) return M;
1183
- var L = h[0], P = d[0], $ = h[1], C = d[1], V;
1184
- P < L && (V = L, L = P, P = V);
1181
+ var N = ae(H), M = Xn(V, (-R - N) / A);
1182
+ if (js(M, C), M = bi(M), !u) return M;
1183
+ var L = h[0], P = d[0], $ = h[1], k = d[1], G;
1184
+ P < L && (G = L, L = P, P = G);
1185
1185
  var q = P - L, X = mt(q - ht) < gt, F = X || q < gt;
1186
- if (!X && C < $ && (V = $, $ = C, C = V), F ? X ? $ + C > 0 ^ M[1] < (mt(M[0] - L) < gt ? $ : C) : $ <= M[1] && M[1] <= C : q > ht ^ (L <= M[0] && M[0] <= P)) {
1187
- var Z = Xn(G, (-R + N) / A);
1188
- return qs(Z, k), [M, Ti(Z)];
1186
+ if (!X && k < $ && (G = $, $ = k, k = G), F ? X ? $ + k > 0 ^ M[1] < (mt(M[0] - L) < gt ? $ : k) : $ <= M[1] && M[1] <= k : q > ht ^ (L <= M[0] && M[0] <= P)) {
1187
+ var Z = Xn(V, (-R + N) / A);
1188
+ return js(Z, C), [M, bi(Z)];
1189
1189
  }
1190
1190
  }
1191
1191
  }
@@ -1260,7 +1260,7 @@ function gu(i, t, e, n) {
1260
1260
  return d !== u ? d - u : d === 0 ? h[1] - l[1] : d === 1 ? l[0] - h[0] : d === 2 ? l[1] - h[1] : h[0] - l[0];
1261
1261
  }
1262
1262
  return function(l) {
1263
- var h = l, d = Eo(), u, p, f, m, g, v, S, y, E, x, T, k = {
1263
+ var h = l, d = Eo(), u, p, f, m, g, v, S, y, E, x, T, C = {
1264
1264
  point: _,
1265
1265
  lineStart: H,
1266
1266
  lineEnd: N,
@@ -1270,24 +1270,24 @@ function gu(i, t, e, n) {
1270
1270
  function _(L, P) {
1271
1271
  s(L, P) && h.point(L, P);
1272
1272
  }
1273
- function G() {
1273
+ function V() {
1274
1274
  for (var L = 0, P = 0, $ = p.length; P < $; ++P)
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) && ++L : j <= n && (rt - F) * (n - Z) < (j - Z) * (i - F) && --L;
1275
+ for (var k = p[P], G = 1, q = k.length, X = k[0], F, Z, rt = X[0], j = X[1]; G < q; ++G)
1276
+ F = rt, Z = j, X = k[G], 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
1277
  return L;
1278
1278
  }
1279
1279
  function R() {
1280
1280
  h = d, u = [], p = [], T = !0;
1281
1281
  }
1282
1282
  function A() {
1283
- var L = G(), P = T && L, $ = (u = ho(u)).length;
1283
+ var L = V(), P = T && L, $ = (u = ho(u)).length;
1284
1284
  (P || $) && (l.polygonStart(), P && (l.lineStart(), a(null, null, 1, l), l.lineEnd()), $ && xo(u, o, L, a, l), l.polygonEnd()), h = l, u = p = f = null;
1285
1285
  }
1286
1286
  function H() {
1287
- k.point = M, p && p.push(f = []), x = !0, E = !1, S = y = NaN;
1287
+ C.point = M, p && p.push(f = []), x = !0, E = !1, S = y = NaN;
1288
1288
  }
1289
1289
  function N() {
1290
- u && (M(m, g), v && E && d.rejoin(), u.push(d.result())), k.point = _, E && h.lineEnd();
1290
+ u && (M(m, g), v && E && d.rejoin(), u.push(d.result())), C.point = _, E && h.lineEnd();
1291
1291
  }
1292
1292
  function M(L, P) {
1293
1293
  var $ = s(L, P);
@@ -1295,16 +1295,16 @@ function gu(i, t, e, n) {
1295
1295
  m = L, g = P, v = $, x = !1, $ && (h.lineStart(), h.point(L, P));
1296
1296
  else if ($ && E) h.point(L, P);
1297
1297
  else {
1298
- var C = [S = Math.max(Zn, Math.min(xn, S)), y = Math.max(Zn, Math.min(xn, y))], V = [L = Math.max(Zn, Math.min(xn, L)), P = Math.max(Zn, Math.min(xn, P))];
1299
- fu(C, V, i, t, e, n) ? (E || (h.lineStart(), h.point(C[0], C[1])), h.point(V[0], V[1]), $ || h.lineEnd(), T = !1) : $ && (h.lineStart(), h.point(L, P), T = !1);
1298
+ var k = [S = Math.max(Zn, Math.min(xn, S)), y = Math.max(Zn, Math.min(xn, y))], G = [L = Math.max(Zn, Math.min(xn, L)), P = Math.max(Zn, Math.min(xn, P))];
1299
+ fu(k, G, i, t, e, n) ? (E || (h.lineStart(), h.point(k[0], k[1])), h.point(G[0], G[1]), $ || h.lineEnd(), T = !1) : $ && (h.lineStart(), h.point(L, P), T = !1);
1300
1300
  }
1301
1301
  S = L, y = P, E = $;
1302
1302
  }
1303
- return k;
1303
+ return C;
1304
1304
  };
1305
1305
  }
1306
- const Ai = (i) => i;
1307
- var Ks = new De(), Mi = new De(), To, bo, wi, Ci, Ee = {
1306
+ const Mi = (i) => i;
1307
+ var Js = new De(), wi = new De(), To, bo, Ci, ki, Ee = {
1308
1308
  point: Qt,
1309
1309
  lineStart: Qt,
1310
1310
  lineEnd: Qt,
@@ -1312,40 +1312,40 @@ var Ks = new De(), Mi = new De(), To, bo, wi, Ci, Ee = {
1312
1312
  Ee.lineStart = mu, Ee.lineEnd = yu;
1313
1313
  },
1314
1314
  polygonEnd: function() {
1315
- Ee.lineStart = Ee.lineEnd = Ee.point = Qt, Ks.add(mt(Mi)), Mi = new De();
1315
+ Ee.lineStart = Ee.lineEnd = Ee.point = Qt, Js.add(mt(wi)), wi = new De();
1316
1316
  },
1317
1317
  result: function() {
1318
- var i = Ks / 2;
1319
- return Ks = new De(), i;
1318
+ var i = Js / 2;
1319
+ return Js = new De(), i;
1320
1320
  }
1321
1321
  };
1322
1322
  function mu() {
1323
1323
  Ee.point = vu;
1324
1324
  }
1325
1325
  function vu(i, t) {
1326
- Ee.point = Oo, To = wi = i, bo = Ci = t;
1326
+ Ee.point = Oo, To = Ci = i, bo = ki = t;
1327
1327
  }
1328
1328
  function Oo(i, t) {
1329
- Mi.add(Ci * i - wi * t), wi = i, Ci = t;
1329
+ wi.add(ki * i - Ci * t), Ci = i, ki = t;
1330
1330
  }
1331
1331
  function yu() {
1332
1332
  Oo(To, bo);
1333
1333
  }
1334
- var on = 1 / 0, ps = on, _n = -on, fs = _n, gs = {
1334
+ var on = 1 / 0, fs = on, _n = -on, gs = _n, ms = {
1335
1335
  point: Eu,
1336
1336
  lineStart: Qt,
1337
1337
  lineEnd: Qt,
1338
1338
  polygonStart: Qt,
1339
1339
  polygonEnd: Qt,
1340
1340
  result: function() {
1341
- var i = [[on, ps], [_n, fs]];
1342
- return _n = fs = -(ps = on = 1 / 0), i;
1341
+ var i = [[on, fs], [_n, gs]];
1342
+ return _n = gs = -(fs = on = 1 / 0), i;
1343
1343
  }
1344
1344
  };
1345
1345
  function Eu(i, t) {
1346
- i < on && (on = i), i > _n && (_n = i), t < ps && (ps = t), t > fs && (fs = t);
1346
+ i < on && (on = i), i > _n && (_n = i), t < fs && (fs = t), t > gs && (gs = t);
1347
1347
  }
1348
- var ki = 0, _i = 0, Sn = 0, ms = 0, vs = 0, en = 0, Ii = 0, Ri = 0, Tn = 0, Lo, Ao, le, ce, Jt = {
1348
+ var _i = 0, Ii = 0, Sn = 0, vs = 0, ys = 0, en = 0, Ri = 0, Di = 0, Tn = 0, Lo, Ao, le, ce, Jt = {
1349
1349
  point: Pe,
1350
1350
  lineStart: Ja,
1351
1351
  lineEnd: Qa,
@@ -1356,12 +1356,12 @@ var ki = 0, _i = 0, Sn = 0, ms = 0, vs = 0, en = 0, Ii = 0, Ri = 0, Tn = 0, Lo,
1356
1356
  Jt.point = Pe, Jt.lineStart = Ja, Jt.lineEnd = Qa;
1357
1357
  },
1358
1358
  result: function() {
1359
- var i = Tn ? [Ii / Tn, Ri / Tn] : en ? [ms / en, vs / en] : Sn ? [ki / Sn, _i / Sn] : [NaN, NaN];
1360
- return ki = _i = Sn = ms = vs = en = Ii = Ri = Tn = 0, i;
1359
+ var i = Tn ? [Ri / Tn, Di / Tn] : en ? [vs / en, ys / en] : Sn ? [_i / Sn, Ii / Sn] : [NaN, NaN];
1360
+ return _i = Ii = Sn = vs = ys = en = Ri = Di = Tn = 0, i;
1361
1361
  }
1362
1362
  };
1363
1363
  function Pe(i, t) {
1364
- ki += i, _i += t, ++Sn;
1364
+ _i += i, Ii += t, ++Sn;
1365
1365
  }
1366
1366
  function Ja() {
1367
1367
  Jt.point = xu;
@@ -1371,7 +1371,7 @@ function xu(i, t) {
1371
1371
  }
1372
1372
  function Su(i, t) {
1373
1373
  var e = i - le, n = t - ce, s = ae(e * e + n * n);
1374
- ms += s * (le + i) / 2, vs += s * (ce + t) / 2, en += s, Pe(le = i, ce = t);
1374
+ vs += s * (le + i) / 2, ys += s * (ce + t) / 2, en += s, Pe(le = i, ce = t);
1375
1375
  }
1376
1376
  function Qa() {
1377
1377
  Jt.point = Pe;
@@ -1387,7 +1387,7 @@ function Ou(i, t) {
1387
1387
  }
1388
1388
  function Mo(i, t) {
1389
1389
  var e = i - le, n = t - ce, s = ae(e * e + n * n);
1390
- ms += s * (le + i) / 2, vs += s * (ce + t) / 2, en += s, s = ce * i - le * t, Ii += s * (le + i), Ri += s * (ce + t), Tn += s * 3, Pe(le = i, ce = t);
1390
+ vs += s * (le + i) / 2, ys += s * (ce + t) / 2, en += s, s = ce * i - le * t, Ri += s * (le + i), Di += s * (ce + t), Tn += s * 3, Pe(le = i, ce = t);
1391
1391
  }
1392
1392
  function wo(i) {
1393
1393
  this._context = i;
@@ -1427,32 +1427,32 @@ wo.prototype = {
1427
1427
  },
1428
1428
  result: Qt
1429
1429
  };
1430
- var Di = new De(), Js, Co, ko, bn, On, In = {
1430
+ var Ni = new De(), Qs, Co, ko, bn, On, In = {
1431
1431
  point: Qt,
1432
1432
  lineStart: function() {
1433
1433
  In.point = Lu;
1434
1434
  },
1435
1435
  lineEnd: function() {
1436
- Js && _o(Co, ko), In.point = Qt;
1436
+ Qs && _o(Co, ko), In.point = Qt;
1437
1437
  },
1438
1438
  polygonStart: function() {
1439
- Js = !0;
1439
+ Qs = !0;
1440
1440
  },
1441
1441
  polygonEnd: function() {
1442
- Js = null;
1442
+ Qs = null;
1443
1443
  },
1444
1444
  result: function() {
1445
- var i = +Di;
1446
- return Di = new De(), i;
1445
+ var i = +Ni;
1446
+ return Ni = new De(), i;
1447
1447
  }
1448
1448
  };
1449
1449
  function Lu(i, t) {
1450
1450
  In.point = _o, Co = bn = i, ko = On = t;
1451
1451
  }
1452
1452
  function _o(i, t) {
1453
- bn -= i, On -= t, Di.add(ae(bn * bn + On * On)), bn = i, On = t;
1453
+ bn -= i, On -= t, Ni.add(ae(bn * bn + On * On)), bn = i, On = t;
1454
1454
  }
1455
- let tr, ys, er, nr;
1455
+ let tr, Es, er, nr;
1456
1456
  class sr {
1457
1457
  constructor(t) {
1458
1458
  this._append = t == null ? Io : Au(t), this._radius = 4.5, this._ = "";
@@ -1483,9 +1483,9 @@ class sr {
1483
1483
  break;
1484
1484
  }
1485
1485
  default: {
1486
- if (this._append`M${t},${e}`, this._radius !== er || this._append !== ys) {
1486
+ if (this._append`M${t},${e}`, this._radius !== er || this._append !== Es) {
1487
1487
  const n = this._radius, s = this._;
1488
- this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, er = n, ys = this._append, nr = this._, this._ = s;
1488
+ this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, er = n, Es = this._append, nr = this._, this._ = s;
1489
1489
  }
1490
1490
  this._ += nr;
1491
1491
  break;
@@ -1509,14 +1509,14 @@ function Au(i) {
1509
1509
  if (t > 15) return Io;
1510
1510
  if (t !== tr) {
1511
1511
  const e = 10 ** t;
1512
- tr = t, ys = function(s) {
1512
+ tr = t, Es = function(s) {
1513
1513
  let a = 1;
1514
1514
  this._ += s[0];
1515
1515
  for (const r = s.length; a < r; ++a)
1516
1516
  this._ += Math.round(arguments[a] * e) / e + s[a];
1517
1517
  };
1518
1518
  }
1519
- return ys;
1519
+ return Es;
1520
1520
  }
1521
1521
  function Mu(i, t) {
1522
1522
  let e = 3, n = 4.5, s, a;
@@ -1528,11 +1528,11 @@ function Mu(i, t) {
1528
1528
  }, r.measure = function(o) {
1529
1529
  return je(o, s(In)), In.result();
1530
1530
  }, r.bounds = function(o) {
1531
- return je(o, s(gs)), gs.result();
1531
+ return je(o, s(ms)), ms.result();
1532
1532
  }, r.centroid = function(o) {
1533
1533
  return je(o, s(Jt)), Jt.result();
1534
1534
  }, r.projection = function(o) {
1535
- return arguments.length ? (s = o == null ? (i = null, Ai) : (i = o).stream, r) : i;
1535
+ return arguments.length ? (s = o == null ? (i = null, Mi) : (i = o).stream, r) : i;
1536
1536
  }, r.context = function(o) {
1537
1537
  return arguments.length ? (a = o == null ? (t = null, new sr(e)) : new wo(t = o), typeof n != "function" && a.pointRadius(n), r) : t;
1538
1538
  }, r.pointRadius = function(o) {
@@ -1550,15 +1550,15 @@ function Mu(i, t) {
1550
1550
  }
1551
1551
  function Xi(i) {
1552
1552
  return function(t) {
1553
- var e = new Ni();
1553
+ var e = new Pi();
1554
1554
  for (var n in i) e[n] = i[n];
1555
1555
  return e.stream = t, e;
1556
1556
  };
1557
1557
  }
1558
- function Ni() {
1558
+ function Pi() {
1559
1559
  }
1560
- Ni.prototype = {
1561
- constructor: Ni,
1560
+ Pi.prototype = {
1561
+ constructor: Pi,
1562
1562
  point: function(i, t) {
1563
1563
  this.stream.point(i, t);
1564
1564
  },
@@ -1580,7 +1580,7 @@ Ni.prototype = {
1580
1580
  };
1581
1581
  function Yi(i, t, e) {
1582
1582
  var n = i.clipExtent && i.clipExtent();
1583
- return i.scale(150).translate([0, 0]), n != null && i.clipExtent(null), je(e, i.stream(gs)), t(gs.result()), n != null && i.clipExtent(n), i;
1583
+ return i.scale(150).translate([0, 0]), n != null && i.clipExtent(null), je(e, i.stream(ms)), t(ms.result()), n != null && i.clipExtent(n), i;
1584
1584
  }
1585
1585
  function Ro(i, t, e) {
1586
1586
  return Yi(i, function(n) {
@@ -1618,8 +1618,8 @@ function Ru(i, t) {
1618
1618
  function e(n, s, a, r, o, c, l, h, d, u, p, f, m, g) {
1619
1619
  var v = l - n, S = h - s, y = v * v + S * S;
1620
1620
  if (y > 4 * t && m--) {
1621
- var E = r + u, x = o + p, T = c + f, k = ae(E * E + x * x + T * T), _ = Se(T /= k), G = mt(mt(T) - 1) < gt || mt(a - d) < gt ? (a + d) / 2 : Ne(x, E), R = i(G, _), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - v * M;
1622
- (L * L / y > t || mt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < _u) && (e(n, s, a, r, o, c, A, H, G, E /= k, x /= k, T, m, g), g.point(A, H), e(A, H, G, E, x, T, l, h, d, u, p, f, m, g));
1621
+ var E = r + u, x = o + p, T = c + f, C = ae(E * E + x * x + T * T), _ = Se(T /= C), V = mt(mt(T) - 1) < gt || mt(a - d) < gt ? (a + d) / 2 : Ne(x, E), R = i(V, _), A = R[0], H = R[1], N = A - n, M = H - s, L = S * N - v * M;
1622
+ (L * L / y > t || mt((v * N + S * M) / y - 0.5) > 0.3 || r * u + o * p + c * f < _u) && (e(n, s, a, r, o, c, A, H, V, E /= C, x /= C, T, m, g), g.point(A, H), e(A, H, V, E, x, T, l, h, d, u, p, f, m, g));
1623
1623
  }
1624
1624
  }
1625
1625
  return function(n) {
@@ -1634,26 +1634,26 @@ function Ru(i, t) {
1634
1634
  n.polygonEnd(), g.lineStart = S;
1635
1635
  }
1636
1636
  };
1637
- function v(_, G) {
1638
- _ = i(_, G), n.point(_[0], _[1]);
1637
+ function v(_, V) {
1638
+ _ = i(_, V), n.point(_[0], _[1]);
1639
1639
  }
1640
1640
  function S() {
1641
1641
  d = NaN, g.point = y, n.lineStart();
1642
1642
  }
1643
- function y(_, G) {
1644
- var R = rn([_, G]), A = i(_, G);
1643
+ function y(_, V) {
1644
+ var R = rn([_, V]), A = i(_, V);
1645
1645
  e(d, u, h, p, f, m, d = A[0], u = A[1], h = _, p = R[0], f = R[1], m = R[2], ir, n), n.point(d, u);
1646
1646
  }
1647
1647
  function E() {
1648
1648
  g.point = v, n.lineEnd();
1649
1649
  }
1650
1650
  function x() {
1651
- S(), g.point = T, g.lineEnd = k;
1651
+ S(), g.point = T, g.lineEnd = C;
1652
1652
  }
1653
- function T(_, G) {
1654
- y(s = _, G), a = d, r = u, o = p, c = f, l = m, g.point = y;
1653
+ function T(_, V) {
1654
+ y(s = _, V), a = d, r = u, o = p, c = f, l = m, g.point = y;
1655
1655
  }
1656
- function k() {
1656
+ function C() {
1657
1657
  e(d, u, h, p, f, m, a, r, s, o, c, l, ir, n), g.lineEnd = E, E();
1658
1658
  }
1659
1659
  return g;
@@ -1690,13 +1690,13 @@ function rr(i, t, e, n, s, a) {
1690
1690
  return [n * (h * m - d * g + u), s * (p - d * m - h * g)];
1691
1691
  }, f;
1692
1692
  }
1693
- function Ms(i) {
1693
+ function ws(i) {
1694
1694
  return Do(function() {
1695
1695
  return i;
1696
1696
  })();
1697
1697
  }
1698
1698
  function Do(i) {
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, m = Ka, g = null, v, S, y, E = Ai, x = 0.5, T, k, _, G, R;
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, m = Ka, g = null, v, S, y, E = Mi, x = 0.5, T, C, _, V, R;
1700
1700
  function A(L) {
1701
1701
  return _(L[0] * Ot, L[1] * Ot);
1702
1702
  }
@@ -1704,7 +1704,7 @@ function Do(i) {
1704
1704
  return L = _.invert(L[0], L[1]), L && [L[0] * Vt, L[1] * Vt];
1705
1705
  }
1706
1706
  A.stream = function(L) {
1707
- return G && R === L ? G : G = Du(Nu(h)(m(T(E(R = L)))));
1707
+ return V && R === L ? V : V = Du(Nu(h)(m(T(E(R = L)))));
1708
1708
  }, A.preclip = function(L) {
1709
1709
  return arguments.length ? (m = L, f = void 0, M()) : m;
1710
1710
  }, A.postclip = function(L) {
@@ -1712,7 +1712,7 @@ function Do(i) {
1712
1712
  }, A.clipAngle = function(L) {
1713
1713
  return arguments.length ? (m = +L ? pu(f = L * Ot) : (f = null, Ka), M()) : f * Vt;
1714
1714
  }, A.clipExtent = function(L) {
1715
- return arguments.length ? (E = L == null ? (g = v = S = y = null, Ai) : gu(g = +L[0][0], v = +L[0][1], S = +L[1][0], y = +L[1][1]), M()) : g == null ? null : [[g, v], [S, y]];
1715
+ return arguments.length ? (E = L == null ? (g = v = S = y = null, Mi) : gu(g = +L[0][0], v = +L[0][1], S = +L[1][0], y = +L[1][1]), M()) : g == null ? null : [[g, v], [S, y]];
1716
1716
  }, A.scale = function(L) {
1717
1717
  return arguments.length ? (e = +L, N()) : e;
1718
1718
  }, A.translate = function(L) {
@@ -1728,7 +1728,7 @@ function Do(i) {
1728
1728
  }, A.reflectY = function(L) {
1729
1729
  return arguments.length ? (p = L ? -1 : 1, N()) : p < 0;
1730
1730
  }, A.precision = function(L) {
1731
- return arguments.length ? (T = ar(k, x = L * L), M()) : ae(x);
1731
+ return arguments.length ? (T = ar(C, x = L * L), M()) : ae(x);
1732
1732
  }, A.fitExtent = function(L, P) {
1733
1733
  return Ro(A, L, P);
1734
1734
  }, A.fitSize = function(L, P) {
@@ -1740,10 +1740,10 @@ function Do(i) {
1740
1740
  };
1741
1741
  function N() {
1742
1742
  var L = rr(e, 0, 0, u, p, d).apply(null, t(a, r)), P = rr(e, n - L[0], s - L[1], u, p, d);
1743
- return h = yo(o, c, l), k = Oi(t, P), _ = Oi(h, k), T = ar(k, x), M();
1743
+ return h = yo(o, c, l), C = Li(t, P), _ = Li(h, C), T = ar(C, x), M();
1744
1744
  }
1745
1745
  function M() {
1746
- return G = R = null, A;
1746
+ return V = R = null, A;
1747
1747
  }
1748
1748
  return function() {
1749
1749
  return t = i.apply(this, arguments), A.invert = t.invert && H, N();
@@ -1793,7 +1793,7 @@ function Hu() {
1793
1793
  return Bu(Zi).scale(961 / Yt);
1794
1794
  }
1795
1795
  function Bu(i) {
1796
- var t = Ms(i), e = t.center, n = t.scale, s = t.translate, a = t.clipExtent, r = null, o, c, l;
1796
+ var t = ws(i), e = t.center, n = t.scale, s = t.translate, a = t.clipExtent, r = null, o, c, l;
1797
1797
  t.scale = function(d) {
1798
1798
  return arguments.length ? (n(d), h()) : n();
1799
1799
  }, t.translate = function(d) {
@@ -1809,16 +1809,16 @@ function Bu(i) {
1809
1809
  }
1810
1810
  return h();
1811
1811
  }
1812
- function Es(i, t) {
1812
+ function xs(i, t) {
1813
1813
  return [i, t];
1814
1814
  }
1815
- Es.invert = Es;
1815
+ xs.invert = xs;
1816
1816
  function zu() {
1817
- return Ms(Es).scale(152.63);
1817
+ return ws(xs).scale(152.63);
1818
1818
  }
1819
1819
  function Uu(i, t) {
1820
1820
  var e = vt(i), n = i === t ? ft(i) : (e - vt(t)) / (t - i), s = e / n + i;
1821
- if (mt(n) < gt) return Es;
1821
+ if (mt(n) < gt) return xs;
1822
1822
  function a(r, o) {
1823
1823
  var c = s - o, l = n * r;
1824
1824
  return [c * ft(l), s - c * vt(l)];
@@ -1831,11 +1831,11 @@ function Uu(i, t) {
1831
1831
  function Fu() {
1832
1832
  return No(Uu).scale(131.154).center([0, 13.9389]);
1833
1833
  }
1834
- var An = 1.340264, Mn = -0.081106, wn = 893e-6, Cn = 3796e-6, xs = ae(3) / 2, Wu = 12;
1834
+ var An = 1.340264, Mn = -0.081106, wn = 893e-6, Cn = 3796e-6, Ss = ae(3) / 2, Wu = 12;
1835
1835
  function $o(i, t) {
1836
- var e = Se(xs * ft(t)), n = e * e, s = n * n * n;
1836
+ var e = Se(Ss * ft(t)), n = e * e, s = n * n * n;
1837
1837
  return [
1838
- i * vt(e) / (xs * (An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n))),
1838
+ i * vt(e) / (Ss * (An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n))),
1839
1839
  e * (An + Mn * n + s * (wn + Cn * n))
1840
1840
  ];
1841
1841
  }
@@ -1843,12 +1843,12 @@ $o.invert = function(i, t) {
1843
1843
  for (var e = t, n = e * e, s = n * n * n, a = 0, r, o, c; a < Wu && (o = e * (An + Mn * n + s * (wn + Cn * n)) - t, c = An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n), e -= r = o / c, n = e * e, s = n * n * n, !(mt(r) < mo)); ++a)
1844
1844
  ;
1845
1845
  return [
1846
- xs * i * (An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n)) / vt(e),
1847
- Se(ft(e) / xs)
1846
+ Ss * i * (An + 3 * Mn * n + s * (7 * wn + 9 * Cn * n)) / vt(e),
1847
+ Se(ft(e) / Ss)
1848
1848
  ];
1849
1849
  };
1850
1850
  function Xu() {
1851
- return Ms($o).scale(177.158);
1851
+ return ws($o).scale(177.158);
1852
1852
  }
1853
1853
  function Vo(i, t) {
1854
1854
  var e = t * t, n = e * e;
@@ -1869,7 +1869,7 @@ Vo.invert = function(i, t) {
1869
1869
  ];
1870
1870
  };
1871
1871
  function Yu() {
1872
- return Ms(Vo).scale(175.295);
1872
+ return ws(Vo).scale(175.295);
1873
1873
  }
1874
1874
  function Zu(i, t) {
1875
1875
  return i.parent === t.parent ? 1 : 2;
@@ -2090,13 +2090,13 @@ function wh(i, t) {
2090
2090
  }
2091
2091
  function Ch(i, t) {
2092
2092
  var e, n;
2093
- if (Qs(t, i)) return [t];
2093
+ if (ti(t, i)) return [t];
2094
2094
  for (e = 0; e < i.length; ++e)
2095
- if (qn(t, i[e]) && Qs(Ln(i[e], t), i))
2095
+ if (qn(t, i[e]) && ti(Ln(i[e], t), i))
2096
2096
  return [i[e], t];
2097
2097
  for (e = 0; e < i.length - 1; ++e)
2098
2098
  for (n = e + 1; n < i.length; ++n)
2099
- if (qn(Ln(i[e], i[n]), t) && qn(Ln(i[e], t), i[n]) && qn(Ln(i[n], t), i[e]) && Qs(Bo(i[e], i[n], t), i))
2099
+ if (qn(Ln(i[e], i[n]), t) && qn(Ln(i[e], t), i[n]) && qn(Ln(i[n], t), i[e]) && ti(Bo(i[e], i[n], t), i))
2100
2100
  return [i[e], i[n], t];
2101
2101
  throw new Error();
2102
2102
  }
@@ -2108,7 +2108,7 @@ function Ho(i, t) {
2108
2108
  var e = i.r - t.r + Math.max(i.r, t.r, 1) * 1e-9, n = t.x - i.x, s = t.y - i.y;
2109
2109
  return e > 0 && e * e > n * n + s * s;
2110
2110
  }
2111
- function Qs(i, t) {
2111
+ function ti(i, t) {
2112
2112
  for (var e = 0; e < t.length; ++e)
2113
2113
  if (!Ho(i, t[e]))
2114
2114
  return !1;
@@ -2140,10 +2140,10 @@ function Ln(i, t) {
2140
2140
  };
2141
2141
  }
2142
2142
  function Bo(i, t, e) {
2143
- var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, m = s - h, g = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * m, T = (f * E - m * y) / (x * 2) - n, k = (m * g - f * v) / x, _ = (p * y - u * E) / (x * 2) - s, G = (u * v - p * g) / x, R = k * k + G * G - 1, A = 2 * (a + T * k + _ * G), H = T * T + _ * _ - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
2143
+ var n = i.x, s = i.y, a = i.r, r = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - r, p = n - l, f = s - o, m = s - h, g = c - a, v = d - a, S = n * n + s * s - a * a, y = S - r * r - o * o + c * c, E = S - l * l - h * h + d * d, x = p * f - u * m, T = (f * E - m * y) / (x * 2) - n, C = (m * g - f * v) / x, _ = (p * y - u * E) / (x * 2) - s, V = (u * v - p * g) / x, R = C * C + V * V - 1, A = 2 * (a + T * C + _ * V), H = T * T + _ * _ - a * a, N = -(Math.abs(R) > 1e-6 ? (A + Math.sqrt(A * A - 4 * R * H)) / (2 * R) : H / A);
2144
2144
  return {
2145
- x: n + T + k * N,
2146
- y: s + _ + G * N,
2145
+ x: n + T + C * N,
2146
+ y: s + _ + V * N,
2147
2147
  r: N
2148
2148
  };
2149
2149
  }
@@ -2200,7 +2200,7 @@ function Dh() {
2200
2200
  var i = null, t = 1, e = 1, n = Ie;
2201
2201
  function s(a) {
2202
2202
  const r = Lh();
2203
- return a.x = t / 2, a.y = e / 2, i ? a.eachBefore(hr(i)).eachAfter(ti(n, 0.5, r)).eachBefore(dr(1)) : a.eachBefore(hr(Rh)).eachAfter(ti(Ie, 1, r)).eachAfter(ti(n, a.r / Math.min(t, e), r)).eachBefore(dr(Math.min(t, e) / (2 * a.r))), a;
2203
+ return a.x = t / 2, a.y = e / 2, i ? a.eachBefore(hr(i)).eachAfter(ei(n, 0.5, r)).eachBefore(dr(1)) : a.eachBefore(hr(Rh)).eachAfter(ei(Ie, 1, r)).eachAfter(ei(n, a.r / Math.min(t, e), r)).eachBefore(dr(Math.min(t, e) / (2 * a.r))), a;
2204
2204
  }
2205
2205
  return s.radius = function(a) {
2206
2206
  return arguments.length ? (i = Th(a), s) : i;
@@ -2215,7 +2215,7 @@ function hr(i) {
2215
2215
  t.children || (t.r = Math.max(0, +i(t) || 0));
2216
2216
  };
2217
2217
  }
2218
- function ti(i, t, e) {
2218
+ function ei(i, t, e) {
2219
2219
  return function(n) {
2220
2220
  if (s = n.children) {
2221
2221
  var s, a, r = s.length, o = i(n) * t || 0, c;
@@ -2241,11 +2241,11 @@ function Ph(i, t, e, n, s) {
2241
2241
  function $h(i, t) {
2242
2242
  return i.parent === t.parent ? 1 : 2;
2243
2243
  }
2244
- function ei(i) {
2244
+ function ni(i) {
2245
2245
  var t = i.children;
2246
2246
  return t ? t[0] : i.t;
2247
2247
  }
2248
- function ni(i) {
2248
+ function si(i) {
2249
2249
  var t = i.children;
2250
2250
  return t ? t[t.length - 1] : i.t;
2251
2251
  }
@@ -2302,9 +2302,9 @@ function zh() {
2302
2302
  }
2303
2303
  function o(l, h, d) {
2304
2304
  if (h) {
2305
- for (var u = l, p = l, f = h, m = u.parent.children[0], g = u.m, v = p.m, S = f.m, y = m.m, E; f = ni(f), u = ei(u), f && u; )
2306
- m = ei(m), p = ni(p), p.a = l, E = f.z + S - u.z - g + i(f._, u._), E > 0 && (Vh(Hh(f, l, d), l, E), g += E, v += E), S += f.m, g += u.m, y += m.m, v += p.m;
2307
- f && !ni(p) && (p.t = f, p.m += S - v), u && !ei(m) && (m.t = u, m.m += g - y, d = l);
2305
+ for (var u = l, p = l, f = h, m = u.parent.children[0], g = u.m, v = p.m, S = f.m, y = m.m, E; f = si(f), u = ni(u), f && u; )
2306
+ m = ni(m), p = si(p), p.a = l, E = f.z + S - u.z - g + i(f._, u._), E > 0 && (Vh(Hh(f, l, d), l, E), g += E, v += E), S += f.m, g += u.m, y += m.m, v += p.m;
2307
+ f && !si(p) && (p.t = f, p.m += S - v), u && !ni(m) && (m.t = u, m.m += g - y, d = l);
2308
2308
  }
2309
2309
  return d;
2310
2310
  }
@@ -2380,7 +2380,7 @@ function Yh() {
2380
2380
  return arguments.length ? (l = typeof u == "function" ? u : Ke(+u), h) : l;
2381
2381
  }, h;
2382
2382
  }
2383
- function ws(i) {
2383
+ function Cs(i) {
2384
2384
  let t = 3;
2385
2385
  return i.digits = function(e) {
2386
2386
  if (!arguments.length) return t;
@@ -2415,40 +2415,40 @@ function Qh(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) / tn(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, m = n + d, g = (u + f) / 2, v = (p + m) / 2, S = f - u, y = m - p, E = S * S + y * y, x = s - a, T = u * m - f * p, k = (y < 0 ? -1 : 1) * tn(Al(0, x * x * E - T * T)), _ = (T * y - S * k) / E, G = (-T * S - y * k) / E, R = (T * y + S * k) / E, A = (-T * S + y * k) / E, H = _ - g, N = G - v, M = R - g, L = A - v;
2419
- return H * H + N * N > M * M + L * L && (_ = R, G = A), {
2418
+ var o = i - e, c = t - n, l = (r ? a : -a) / tn(o * o + c * c), h = l * c, d = -l * o, u = i + h, p = t + d, f = e + h, m = n + d, g = (u + f) / 2, v = (p + m) / 2, S = f - u, y = m - p, E = S * S + y * y, x = s - a, T = u * m - f * p, C = (y < 0 ? -1 : 1) * tn(Al(0, x * x * E - T * T)), _ = (T * y - S * C) / E, V = (-T * S - y * C) / E, R = (T * y + S * C) / E, A = (-T * S + y * C) / E, H = _ - g, N = V - v, M = R - g, L = A - v;
2419
+ return H * H + N * N > M * M + L * L && (_ = R, V = A), {
2420
2420
  cx: _,
2421
- cy: G,
2421
+ cy: V,
2422
2422
  x01: -h,
2423
2423
  y01: -d,
2424
2424
  x11: _ * (s / x - 1),
2425
- y11: G * (s / x - 1)
2425
+ y11: V * (s / x - 1)
2426
2426
  };
2427
2427
  }
2428
2428
  function Dn() {
2429
- var i = Zh, t = qh, e = pt(0), n = null, s = jh, a = Kh, r = Jh, o = null, c = ws(l);
2429
+ var i = Zh, t = qh, e = pt(0), n = null, s = jh, a = Kh, r = Jh, o = null, c = Cs(l);
2430
2430
  function l() {
2431
2431
  var h, d, u = +i.apply(this, arguments), p = +t.apply(this, arguments), f = s.apply(this, arguments) - La, m = a.apply(this, arguments) - La, g = Aa(m - f), v = m > f;
2432
2432
  if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Ut)) o.moveTo(0, 0);
2433
2433
  else if (g > ss - Ut)
2434
2434
  o.moveTo(p * Ce(f), p * oe(f)), o.arc(0, 0, p, f, m, !v), u > Ut && (o.moveTo(u * Ce(m), u * oe(m)), o.arc(0, 0, u, m, f, v));
2435
2435
  else {
2436
- var S = f, y = m, E = f, x = m, T = g, k = g, _ = r.apply(this, arguments) / 2, G = _ > Ut && (n ? +n.apply(this, arguments) : tn(u * u + p * p)), R = Us(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
2437
- if (G > Ut) {
2438
- var L = wa(G / u * oe(_)), P = wa(G / p * oe(_));
2439
- (T -= L * 2) > Ut ? (L *= v ? 1 : -1, E += L, x -= L) : (T = 0, E = x = (f + m) / 2), (k -= P * 2) > Ut ? (P *= v ? 1 : -1, S += P, y -= P) : (k = 0, S = y = (f + m) / 2);
2436
+ var S = f, y = m, E = f, x = m, T = g, C = g, _ = r.apply(this, arguments) / 2, V = _ > Ut && (n ? +n.apply(this, arguments) : tn(u * u + p * p)), R = Fs(Aa(p - u) / 2, +e.apply(this, arguments)), A = R, H = R, N, M;
2437
+ if (V > Ut) {
2438
+ var L = wa(V / u * oe(_)), P = wa(V / p * oe(_));
2439
+ (T -= L * 2) > Ut ? (L *= v ? 1 : -1, E += L, x -= L) : (T = 0, E = x = (f + m) / 2), (C -= P * 2) > Ut ? (P *= v ? 1 : -1, S += P, y -= P) : (C = 0, S = y = (f + m) / 2);
2440
2440
  }
2441
- var $ = p * Ce(S), C = p * oe(S), V = u * Ce(x), q = u * oe(x);
2441
+ var $ = p * Ce(S), k = p * oe(S), G = u * Ce(x), q = u * oe(x);
2442
2442
  if (R > Ut) {
2443
2443
  var X = p * Ce(y), F = p * oe(y), Z = u * Ce(E), rt = u * oe(E), j;
2444
2444
  if (g < Ma)
2445
- if (j = Qh($, C, Z, rt, X, F, V, q)) {
2446
- var Y = $ - j[0], K = C - j[1], ot = X - j[0], ct = F - j[1], st = 1 / oe(Ll((Y * ot + K * ct) / (tn(Y * Y + K * K) * tn(ot * ot + ct * ct))) / 2), it = tn(j[0] * j[0] + j[1] * j[1]);
2447
- A = Us(R, (u - it) / (st - 1)), H = Us(R, (p - it) / (st + 1));
2445
+ if (j = Qh($, k, Z, rt, X, F, G, q)) {
2446
+ var Y = $ - j[0], K = k - j[1], ot = X - j[0], ct = F - j[1], st = 1 / oe(Ll((Y * ot + K * ct) / (tn(Y * Y + K * K) * tn(ot * ot + ct * ct))) / 2), it = tn(j[0] * j[0] + j[1] * j[1]);
2447
+ A = Fs(R, (u - it) / (st - 1)), H = Fs(R, (p - it) / (st + 1));
2448
2448
  } else
2449
2449
  A = H = 0;
2450
2450
  }
2451
- k > Ut ? H > Ut ? (N = Kn(Z, rt, $, C, p, H, v), M = Kn(X, F, V, q, p, H, v), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !v), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : (o.moveTo($, C), o.arc(0, 0, p, S, y, !v)) : o.moveTo($, C), !(u > Ut) || !(T > Ut) ? o.lineTo(V, q) : A > Ut ? (N = Kn(V, q, X, F, u, -A, v), M = Kn($, C, Z, rt, u, -A, v), o.lineTo(N.cx + N.x01, N.cy + N.y01), A < R ? o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, u, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), v), o.arc(M.cx, M.cy, A, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : o.arc(0, 0, u, x, E, v);
2451
+ C > Ut ? H > Ut ? (N = Kn(Z, rt, $, k, p, H, v), M = Kn(X, F, G, q, p, H, v), o.moveTo(N.cx + N.x01, N.cy + N.y01), H < R ? o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, H, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, p, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), !v), o.arc(M.cx, M.cy, H, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : (o.moveTo($, k), o.arc(0, 0, p, S, y, !v)) : o.moveTo($, k), !(u > Ut) || !(T > Ut) ? o.lineTo(G, q) : A > Ut ? (N = Kn(G, q, X, F, u, -A, v), M = Kn($, k, Z, rt, u, -A, v), o.lineTo(N.cx + N.x01, N.cy + N.y01), A < R ? o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(M.y01, M.x01), !v) : (o.arc(N.cx, N.cy, A, Dt(N.y01, N.x01), Dt(N.y11, N.x11), !v), o.arc(0, 0, u, Dt(N.cy + N.y11, N.cx + N.x11), Dt(M.cy + M.y11, M.cx + M.x11), v), o.arc(M.cx, M.cy, A, Dt(M.y11, M.x11), Dt(M.y01, M.x01), !v))) : o.arc(0, 0, u, x, E, v);
2452
2452
  }
2453
2453
  if (o.closePath(), h) return o = null, h + "" || null;
2454
2454
  }
@@ -2480,7 +2480,7 @@ function ji(i) {
2480
2480
  return i[1];
2481
2481
  }
2482
2482
  function Pn(i, t) {
2483
- var e = pt(!0), n = null, s = Bi, a = null, r = ws(o);
2483
+ var e = pt(!0), n = null, s = zi, a = null, r = Cs(o);
2484
2484
  i = typeof i == "function" ? i : i === void 0 ? qi : pt(i), t = typeof t == "function" ? t : t === void 0 ? ji : pt(t);
2485
2485
  function o(c) {
2486
2486
  var l, h = (c = Ui(c)).length, d, u = !1, p;
@@ -2501,7 +2501,7 @@ function Pn(i, t) {
2501
2501
  }, o;
2502
2502
  }
2503
2503
  function Ki(i, t, e) {
2504
- var n = null, s = pt(!0), a = null, r = Bi, o = null, c = ws(l);
2504
+ var n = null, s = pt(!0), a = null, r = zi, o = null, c = Cs(l);
2505
2505
  i = typeof i == "function" ? i : i === void 0 ? qi : pt(+i), t = typeof t == "function" ? t : t === void 0 ? pt(0) : pt(+t), e = typeof e == "function" ? e : e === void 0 ? ji : pt(+e);
2506
2506
  function l(d) {
2507
2507
  var u, p, f, m = (d = Ui(d)).length, g, v = !1, S, y = new Array(m), E = new Array(m);
@@ -2588,7 +2588,7 @@ function nd() {
2588
2588
  return arguments.length ? (a = typeof o == "function" ? o : pt(+o), r) : a;
2589
2589
  }, r;
2590
2590
  }
2591
- var sd = Uo(Bi);
2591
+ var sd = Uo(zi);
2592
2592
  function zo(i) {
2593
2593
  this._curve = i;
2594
2594
  }
@@ -2667,7 +2667,7 @@ function cd(i) {
2667
2667
  return i.target;
2668
2668
  }
2669
2669
  function ud(i) {
2670
- let t = ld, e = cd, n = qi, s = ji, a = null, r = null, o = ws(c);
2670
+ let t = ld, e = cd, n = qi, s = ji, a = null, r = null, o = Cs(c);
2671
2671
  function c() {
2672
2672
  let l;
2673
2673
  const h = _l.call(arguments), d = t.apply(this, h), u = e.apply(this, h);
@@ -2770,8 +2770,8 @@ let {
2770
2770
  seal: ee,
2771
2771
  create: Wo
2772
2772
  } = Object, {
2773
- apply: Pi,
2774
- construct: $i
2773
+ apply: $i,
2774
+ construct: Vi
2775
2775
  } = typeof Reflect < "u" && Reflect;
2776
2776
  Ht || (Ht = function(t) {
2777
2777
  return t;
@@ -2779,26 +2779,26 @@ Ht || (Ht = function(t) {
2779
2779
  ee || (ee = function(t) {
2780
2780
  return t;
2781
2781
  });
2782
- Pi || (Pi = function(t, e, n) {
2782
+ $i || ($i = function(t, e, n) {
2783
2783
  return t.apply(e, n);
2784
2784
  });
2785
- $i || ($i = function(t, e) {
2785
+ Vi || (Vi = function(t, e) {
2786
2786
  return new t(...e);
2787
2787
  });
2788
- const Jn = Bt(Array.prototype.forEach), gd = Bt(Array.prototype.lastIndexOf), fr = Bt(Array.prototype.pop), pn = Bt(Array.prototype.push), md = Bt(Array.prototype.splice), cs = Bt(String.prototype.toLowerCase), si = Bt(String.prototype.toString), gr = Bt(String.prototype.match), fn = Bt(String.prototype.replace), vd = Bt(String.prototype.indexOf), yd = Bt(String.prototype.trim), ie = Bt(Object.prototype.hasOwnProperty), $t = Bt(RegExp.prototype.test), gn = Ed(TypeError);
2788
+ const Jn = Bt(Array.prototype.forEach), gd = Bt(Array.prototype.lastIndexOf), fr = Bt(Array.prototype.pop), pn = Bt(Array.prototype.push), md = Bt(Array.prototype.splice), cs = Bt(String.prototype.toLowerCase), ii = Bt(String.prototype.toString), gr = Bt(String.prototype.match), fn = Bt(String.prototype.replace), vd = Bt(String.prototype.indexOf), yd = Bt(String.prototype.trim), ie = Bt(Object.prototype.hasOwnProperty), $t = Bt(RegExp.prototype.test), gn = Ed(TypeError);
2789
2789
  function Bt(i) {
2790
2790
  return function(t) {
2791
2791
  t instanceof RegExp && (t.lastIndex = 0);
2792
2792
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
2793
2793
  n[s - 1] = arguments[s];
2794
- return Pi(i, t, n);
2794
+ return $i(i, t, n);
2795
2795
  };
2796
2796
  }
2797
2797
  function Ed(i) {
2798
2798
  return function() {
2799
2799
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
2800
2800
  e[n] = arguments[n];
2801
- return $i(i, e);
2801
+ return Vi(i, e);
2802
2802
  };
2803
2803
  }
2804
2804
  function ut(i, t) {
@@ -2842,7 +2842,7 @@ function mn(i, t) {
2842
2842
  }
2843
2843
  return e;
2844
2844
  }
2845
- const mr = Ht(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ii = Ht(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ai = Ht(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Sd = Ht(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ri = Ht(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Td = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = Ht(["#text"]), yr = Ht(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), oi = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Er = Ht(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bd = ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Od = ee(/<%[\w\W]*|[\w\W]*%>/gm), Ld = ee(/\$\{[\w\W]*/gm), Ad = ee(/^data-[\-\w.\u00B7-\uFFFF]+$/), Md = ee(/^aria-[\-\w]+$/), Xo = ee(
2845
+ const mr = Ht(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ai = Ht(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), ri = Ht(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Sd = Ht(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), oi = Ht(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Td = Ht(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = Ht(["#text"]), yr = Ht(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), li = Ht(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Er = Ht(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qn = Ht(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), bd = ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Od = ee(/<%[\w\W]*|[\w\W]*%>/gm), Ld = ee(/\$\{[\w\W]*/gm), Ad = ee(/^data-[\-\w.\u00B7-\uFFFF]+$/), Md = ee(/^aria-[\-\w]+$/), Xo = ee(
2846
2846
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2847
2847
  // eslint-disable-line no-useless-escape
2848
2848
  ), wd = ee(/^(?:\w+script|data):/i), Cd = ee(
@@ -2929,9 +2929,9 @@ function Zo() {
2929
2929
  let E, x = "";
2930
2930
  const {
2931
2931
  implementation: T,
2932
- createNodeIterator: k,
2932
+ createNodeIterator: C,
2933
2933
  createDocumentFragment: _,
2934
- getElementsByTagName: G
2934
+ getElementsByTagName: V
2935
2935
  } = e, {
2936
2936
  importNode: R
2937
2937
  } = n;
@@ -2944,15 +2944,15 @@ function Zo() {
2944
2944
  DATA_ATTR: L,
2945
2945
  ARIA_ATTR: P,
2946
2946
  IS_SCRIPT_OR_DATA: $,
2947
- ATTR_WHITESPACE: C,
2948
- CUSTOM_ELEMENT: V
2947
+ ATTR_WHITESPACE: k,
2948
+ CUSTOM_ELEMENT: G
2949
2949
  } = xr;
2950
2950
  let {
2951
2951
  IS_ALLOWED_URI: q
2952
2952
  } = xr, X = null;
2953
- const F = ut({}, [...mr, ...ii, ...ai, ...ri, ...vr]);
2953
+ const F = ut({}, [...mr, ...ai, ...ri, ...oi, ...vr]);
2954
2954
  let Z = null;
2955
- const rt = ut({}, [...yr, ...oi, ...Er, ...Qn]);
2955
+ const rt = ut({}, [...yr, ...li, ...Er, ...Qn]);
2956
2956
  let j = Object.seal(Wo(null, {
2957
2957
  tagNameCheck: {
2958
2958
  writable: !0,
@@ -2978,10 +2978,10 @@ function Zo() {
2978
2978
  const na = ut({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2979
2979
  let sa = null;
2980
2980
  const ia = ut({}, ["audio", "video", "img", "source", "image", "track"]);
2981
- let ks = null;
2981
+ let _s = null;
2982
2982
  const aa = ut({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
2983
- let Ge = he, _s = !1, Is = null;
2984
- const tl = ut({}, [$n, Vn, he], si);
2983
+ let Ge = he, Is = !1, Rs = null;
2984
+ const tl = ut({}, [$n, Vn, he], ii);
2985
2985
  let Gn = ut({}, ["mi", "mo", "mn", "ms", "mtext"]), Hn = ut({}, ["annotation-xml"]);
2986
2986
  const el = ut({}, ["title", "style", "font", "a", "script"]);
2987
2987
  let un = null;
@@ -2989,11 +2989,11 @@ function Zo() {
2989
2989
  let Ct = null, He = null;
2990
2990
  const il = e.createElement("form"), ra = function(w) {
2991
2991
  return w instanceof RegExp || w instanceof Function;
2992
- }, Rs = function() {
2992
+ }, Ds = function() {
2993
2993
  let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2994
2994
  if (!(He && He === w)) {
2995
2995
  if ((!w || typeof w != "object") && (w = {}), w = me(w), un = // eslint-disable-next-line unicorn/prefer-includes
2996
- nl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? sl : w.PARSER_MEDIA_TYPE, Ct = un === "application/xhtml+xml" ? si : cs, X = ie(w, "ALLOWED_TAGS") ? ut({}, w.ALLOWED_TAGS, Ct) : F, Z = ie(w, "ALLOWED_ATTR") ? ut({}, w.ALLOWED_ATTR, Ct) : rt, Is = ie(w, "ALLOWED_NAMESPACES") ? ut({}, w.ALLOWED_NAMESPACES, si) : tl, ks = ie(w, "ADD_URI_SAFE_ATTR") ? ut(me(aa), w.ADD_URI_SAFE_ATTR, Ct) : aa, sa = ie(w, "ADD_DATA_URI_TAGS") ? ut(me(ia), w.ADD_DATA_URI_TAGS, Ct) : ia, Ve = ie(w, "FORBID_CONTENTS") ? ut({}, w.FORBID_CONTENTS, Ct) : na, Y = ie(w, "FORBID_TAGS") ? ut({}, w.FORBID_TAGS, Ct) : me({}), K = ie(w, "FORBID_ATTR") ? ut({}, w.FORBID_ATTR, Ct) : me({}), $e = ie(w, "USE_PROFILES") ? w.USE_PROFILES : !1, ot = w.ALLOW_ARIA_ATTR !== !1, ct = w.ALLOW_DATA_ATTR !== !1, st = w.ALLOW_UNKNOWN_PROTOCOLS || !1, it = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = w.SAFE_FOR_TEMPLATES || !1, B = w.SAFE_FOR_XML !== !1, U = w.WHOLE_DOCUMENT || !1, et = w.RETURN_DOM || !1, yt = w.RETURN_DOM_FRAGMENT || !1, Zt = w.RETURN_TRUSTED_TYPE || !1, Te = w.FORCE_BODY || !1, Wt = w.SANITIZE_DOM !== !1, ln = w.SANITIZE_NAMED_PROPS || !1, Le = w.KEEP_CONTENT !== !1, ne = w.IN_PLACE || !1, q = w.ALLOWED_URI_REGEXP || Xo, Ge = w.NAMESPACE || he, Gn = w.MATHML_TEXT_INTEGRATION_POINTS || Gn, Hn = w.HTML_INTEGRATION_POINTS || Hn, j = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), z && (ct = !1), yt && (et = !0), $e && (X = ut({}, vr), Z = [], $e.html === !0 && (ut(X, mr), ut(Z, yr)), $e.svg === !0 && (ut(X, ii), ut(Z, oi), ut(Z, Qn)), $e.svgFilters === !0 && (ut(X, ai), ut(Z, oi), ut(Z, Qn)), $e.mathMl === !0 && (ut(X, ri), ut(Z, Er), ut(Z, Qn))), w.ADD_TAGS && (X === F && (X = me(X)), ut(X, w.ADD_TAGS, Ct)), w.ADD_ATTR && (Z === rt && (Z = me(Z)), ut(Z, w.ADD_ATTR, Ct)), w.ADD_URI_SAFE_ATTR && ut(ks, w.ADD_URI_SAFE_ATTR, Ct), w.FORBID_CONTENTS && (Ve === na && (Ve = me(Ve)), ut(Ve, w.FORBID_CONTENTS, Ct)), Le && (X["#text"] = !0), U && ut(X, ["html", "head", "body"]), X.table && (ut(X, ["tbody"]), delete Y.tbody), w.TRUSTED_TYPES_POLICY) {
2996
+ nl.indexOf(w.PARSER_MEDIA_TYPE) === -1 ? sl : w.PARSER_MEDIA_TYPE, Ct = un === "application/xhtml+xml" ? ii : cs, X = ie(w, "ALLOWED_TAGS") ? ut({}, w.ALLOWED_TAGS, Ct) : F, Z = ie(w, "ALLOWED_ATTR") ? ut({}, w.ALLOWED_ATTR, Ct) : rt, Rs = ie(w, "ALLOWED_NAMESPACES") ? ut({}, w.ALLOWED_NAMESPACES, ii) : tl, _s = ie(w, "ADD_URI_SAFE_ATTR") ? ut(me(aa), w.ADD_URI_SAFE_ATTR, Ct) : aa, sa = ie(w, "ADD_DATA_URI_TAGS") ? ut(me(ia), w.ADD_DATA_URI_TAGS, Ct) : ia, Ve = ie(w, "FORBID_CONTENTS") ? ut({}, w.FORBID_CONTENTS, Ct) : na, Y = ie(w, "FORBID_TAGS") ? ut({}, w.FORBID_TAGS, Ct) : me({}), K = ie(w, "FORBID_ATTR") ? ut({}, w.FORBID_ATTR, Ct) : me({}), $e = ie(w, "USE_PROFILES") ? w.USE_PROFILES : !1, ot = w.ALLOW_ARIA_ATTR !== !1, ct = w.ALLOW_DATA_ATTR !== !1, st = w.ALLOW_UNKNOWN_PROTOCOLS || !1, it = w.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = w.SAFE_FOR_TEMPLATES || !1, B = w.SAFE_FOR_XML !== !1, U = w.WHOLE_DOCUMENT || !1, et = w.RETURN_DOM || !1, yt = w.RETURN_DOM_FRAGMENT || !1, Zt = w.RETURN_TRUSTED_TYPE || !1, Te = w.FORCE_BODY || !1, Wt = w.SANITIZE_DOM !== !1, ln = w.SANITIZE_NAMED_PROPS || !1, Le = w.KEEP_CONTENT !== !1, ne = w.IN_PLACE || !1, q = w.ALLOWED_URI_REGEXP || Xo, Ge = w.NAMESPACE || he, Gn = w.MATHML_TEXT_INTEGRATION_POINTS || Gn, Hn = w.HTML_INTEGRATION_POINTS || Hn, j = w.CUSTOM_ELEMENT_HANDLING || {}, w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = w.CUSTOM_ELEMENT_HANDLING.tagNameCheck), w.CUSTOM_ELEMENT_HANDLING && ra(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), w.CUSTOM_ELEMENT_HANDLING && typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), z && (ct = !1), yt && (et = !0), $e && (X = ut({}, vr), Z = [], $e.html === !0 && (ut(X, mr), ut(Z, yr)), $e.svg === !0 && (ut(X, ai), ut(Z, li), ut(Z, Qn)), $e.svgFilters === !0 && (ut(X, ri), ut(Z, li), ut(Z, Qn)), $e.mathMl === !0 && (ut(X, oi), ut(Z, Er), ut(Z, Qn))), w.ADD_TAGS && (X === F && (X = me(X)), ut(X, w.ADD_TAGS, Ct)), w.ADD_ATTR && (Z === rt && (Z = me(Z)), ut(Z, w.ADD_ATTR, Ct)), w.ADD_URI_SAFE_ATTR && ut(_s, w.ADD_URI_SAFE_ATTR, Ct), w.FORBID_CONTENTS && (Ve === na && (Ve = me(Ve)), ut(Ve, w.FORBID_CONTENTS, Ct)), Le && (X["#text"] = !0), U && ut(X, ["html", "head", "body"]), X.table && (ut(X, ["tbody"]), delete Y.tbody), w.TRUSTED_TYPES_POLICY) {
2997
2997
  if (typeof w.TRUSTED_TYPES_POLICY.createHTML != "function")
2998
2998
  throw gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2999
2999
  if (typeof w.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -3003,14 +3003,14 @@ function Zo() {
3003
3003
  E === void 0 && (E = Id(p, s)), E !== null && typeof x == "string" && (x = E.createHTML(""));
3004
3004
  Ht && Ht(w), He = w;
3005
3005
  }
3006
- }, oa = ut({}, [...ii, ...ai, ...Sd]), la = ut({}, [...ri, ...Td]), al = function(w) {
3006
+ }, oa = ut({}, [...ai, ...ri, ...Sd]), la = ut({}, [...oi, ...Td]), al = function(w) {
3007
3007
  let W = y(w);
3008
3008
  (!W || !W.tagName) && (W = {
3009
3009
  namespaceURI: Ge,
3010
3010
  tagName: "template"
3011
3011
  });
3012
3012
  const Q = cs(w.tagName), St = cs(W.tagName);
3013
- return Is[w.namespaceURI] ? w.namespaceURI === Vn ? W.namespaceURI === he ? Q === "svg" : W.namespaceURI === $n ? Q === "svg" && (St === "annotation-xml" || Gn[St]) : !!oa[Q] : w.namespaceURI === $n ? W.namespaceURI === he ? Q === "math" : W.namespaceURI === Vn ? Q === "math" && Hn[St] : !!la[Q] : w.namespaceURI === he ? W.namespaceURI === Vn && !Hn[St] || W.namespaceURI === $n && !Gn[St] ? !1 : !la[Q] && (el[Q] || !oa[Q]) : !!(un === "application/xhtml+xml" && Is[w.namespaceURI]) : !1;
3013
+ return Rs[w.namespaceURI] ? w.namespaceURI === Vn ? W.namespaceURI === he ? Q === "svg" : W.namespaceURI === $n ? Q === "svg" && (St === "annotation-xml" || Gn[St]) : !!oa[Q] : w.namespaceURI === $n ? W.namespaceURI === he ? Q === "math" : W.namespaceURI === Vn ? Q === "math" && Hn[St] : !!la[Q] : w.namespaceURI === he ? W.namespaceURI === Vn && !Hn[St] || W.namespaceURI === $n && !Gn[St] ? !1 : !la[Q] && (el[Q] || !oa[Q]) : !!(un === "application/xhtml+xml" && Rs[w.namespaceURI]) : !1;
3014
3014
  }, re = function(w) {
3015
3015
  pn(t.removed, {
3016
3016
  element: w
@@ -3061,21 +3061,21 @@ function Zo() {
3061
3061
  if (!W || !W.documentElement) {
3062
3062
  W = T.createDocument(Ge, "template", null);
3063
3063
  try {
3064
- W.documentElement.innerHTML = _s ? x : St;
3064
+ W.documentElement.innerHTML = Is ? x : St;
3065
3065
  } catch {
3066
3066
  }
3067
3067
  }
3068
3068
  const It = W.body || W.documentElement;
3069
- return w && Q && It.insertBefore(e.createTextNode(Q), It.childNodes[0] || null), Ge === he ? G.call(W, U ? "html" : "body")[0] : U ? W.documentElement : It;
3069
+ return w && Q && It.insertBefore(e.createTextNode(Q), It.childNodes[0] || null), Ge === he ? V.call(W, U ? "html" : "body")[0] : U ? W.documentElement : It;
3070
3070
  }, ua = function(w) {
3071
- return k.call(
3071
+ return C.call(
3072
3072
  w.ownerDocument || w,
3073
3073
  w,
3074
3074
  // eslint-disable-next-line no-bitwise
3075
3075
  l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
3076
3076
  null
3077
3077
  );
3078
- }, Ds = function(w) {
3078
+ }, Ns = function(w) {
3079
3079
  return w instanceof d && (typeof w.nodeName != "string" || typeof w.textContent != "string" || typeof w.removeChild != "function" || !(w.attributes instanceof h) || typeof w.removeAttribute != "function" || typeof w.setAttribute != "function" || typeof w.namespaceURI != "string" || typeof w.insertBefore != "function" || typeof w.hasChildNodes != "function");
3080
3080
  }, ha = function(w) {
3081
3081
  return typeof o == "function" && w instanceof o;
@@ -3087,7 +3087,7 @@ function Zo() {
3087
3087
  }
3088
3088
  const da = function(w) {
3089
3089
  let W = null;
3090
- if (de(A.beforeSanitizeElements, w, null), Ds(w))
3090
+ if (de(A.beforeSanitizeElements, w, null), Ns(w))
3091
3091
  return re(w), !0;
3092
3092
  const Q = Ct(w.nodeName);
3093
3093
  if (de(A.uponSanitizeElement, w, {
@@ -3129,10 +3129,10 @@ function Zo() {
3129
3129
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3130
3130
  W === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && $t(j.tagNameCheck, Q) || j.tagNameCheck instanceof Function && j.tagNameCheck(Q)))
3131
3131
  ) return !1;
3132
- } else if (!ks[W]) {
3133
- if (!$t(q, fn(Q, C, ""))) {
3132
+ } else if (!_s[W]) {
3133
+ if (!$t(q, fn(Q, k, ""))) {
3134
3134
  if (!((W === "src" || W === "xlink:href" || W === "href") && w !== "script" && vd(Q, "data:") === 0 && sa[w])) {
3135
- if (!(st && !$t($, fn(Q, C, "")))) {
3135
+ if (!(st && !$t($, fn(Q, k, "")))) {
3136
3136
  if (Q)
3137
3137
  return !1;
3138
3138
  }
@@ -3143,13 +3143,13 @@ function Zo() {
3143
3143
  }
3144
3144
  return !0;
3145
3145
  }, fa = function(w) {
3146
- return w !== "annotation-xml" && gr(w, V);
3146
+ return w !== "annotation-xml" && gr(w, G);
3147
3147
  }, ga = function(w) {
3148
3148
  de(A.beforeSanitizeAttributes, w, null);
3149
3149
  const {
3150
3150
  attributes: W
3151
3151
  } = w;
3152
- if (!W || Ds(w))
3152
+ if (!W || Ns(w))
3153
3153
  return;
3154
3154
  const Q = {
3155
3155
  attrName: "",
@@ -3164,8 +3164,8 @@ function Zo() {
3164
3164
  name: At,
3165
3165
  namespaceURI: zt,
3166
3166
  value: pe
3167
- } = It, hn = Ct(At), Ns = pe;
3168
- let Rt = At === "value" ? Ns : yd(Ns);
3167
+ } = It, hn = Ct(At), Ps = pe;
3168
+ let Rt = At === "value" ? Ps : yd(Ps);
3169
3169
  if (Q.attrName = hn, Q.attrValue = Rt, Q.keepAttr = !0, Q.forceKeepAttr = void 0, de(A.uponSanitizeAttribute, w, Q), Rt = Q.attrValue, ln && (hn === "id" || hn === "name") && (Be(At, w), Rt = cn + Rt), B && $t(/((--!?|])>)|<\/(style|title)/i, Rt)) {
3170
3170
  Be(At, w);
3171
3171
  continue;
@@ -3199,9 +3199,9 @@ function Zo() {
3199
3199
  break;
3200
3200
  }
3201
3201
  }
3202
- if (Rt !== Ns)
3202
+ if (Rt !== Ps)
3203
3203
  try {
3204
- zt ? w.setAttributeNS(zt, At, Rt) : w.setAttribute(At, Rt), Ds(w) ? re(w) : fr(t.removed);
3204
+ zt ? w.setAttributeNS(zt, At, Rt) : w.setAttribute(At, Rt), Ns(w) ? re(w) : fr(t.removed);
3205
3205
  } catch {
3206
3206
  Be(At, w);
3207
3207
  }
@@ -3216,7 +3216,7 @@ function Zo() {
3216
3216
  };
3217
3217
  return t.sanitize = function(tt) {
3218
3218
  let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, W = null, Q = null, St = null, It = null;
3219
- if (_s = !tt, _s && (tt = "<!-->"), typeof tt != "string" && !ha(tt))
3219
+ if (Is = !tt, Is && (tt = "<!-->"), typeof tt != "string" && !ha(tt))
3220
3220
  if (typeof tt.toString == "function") {
3221
3221
  if (tt = tt.toString(), typeof tt != "string")
3222
3222
  throw gn("dirty is not a string, aborting");
@@ -3224,7 +3224,7 @@ function Zo() {
3224
3224
  throw gn("toString is not a function");
3225
3225
  if (!t.isSupported)
3226
3226
  return tt;
3227
- if (wt || Rs(w), t.removed = [], typeof tt == "string" && (ne = !1), ne) {
3227
+ if (wt || Ds(w), t.removed = [], typeof tt == "string" && (ne = !1), ne) {
3228
3228
  if (tt.nodeName) {
3229
3229
  const pe = Ct(tt.nodeName);
3230
3230
  if (!X[pe] || Y[pe])
@@ -3260,11 +3260,11 @@ function Zo() {
3260
3260
  }), E && Zt ? E.createHTML(zt) : zt;
3261
3261
  }, t.setConfig = function() {
3262
3262
  let tt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3263
- Rs(tt), wt = !0;
3263
+ Ds(tt), wt = !0;
3264
3264
  }, t.clearConfig = function() {
3265
3265
  He = null, wt = !1;
3266
3266
  }, t.isValidAttribute = function(tt, w, W) {
3267
- He || Rs({});
3267
+ He || Ds({});
3268
3268
  const Q = Ct(tt), St = Ct(w);
3269
3269
  return pa(Q, St, W);
3270
3270
  }, t.addHook = function(tt, w) {
@@ -3295,7 +3295,7 @@ const ts = (i) => Ji.sanitize(i, {
3295
3295
  svg: !0,
3296
3296
  svgFilters: !0
3297
3297
  }
3298
- }), ue = (i) => Ji.sanitize(i, { ALLOWED_TAGS: [] }), Ts = class Ts extends dt {
3298
+ }), ue = (i) => Ji.sanitize(i, { ALLOWED_TAGS: [] }), bs = class bs extends dt {
3299
3299
  constructor() {
3300
3300
  super(...arguments), this.type = "toolbar", this.renderType = at.HTML;
3301
3301
  }
@@ -3474,7 +3474,7 @@ const ts = (i) => Ji.sanitize(i, {
3474
3474
  return e.forEach((r) => {
3475
3475
  let o = null;
3476
3476
  if (r.type === Tt.CUSTOM)
3477
- O(r, "id") === null && (r.id = `toolbar-button-${Ts.buttonID++}`), O(r, "shouldBeDisabled") === null && (r.shouldBeDisabled = () => !1), o = r;
3477
+ O(r, "id") === null && (r.id = `toolbar-button-${bs.buttonID++}`), O(r, "shouldBeDisabled") === null && (r.shouldBeDisabled = () => !1), o = r;
3478
3478
  else {
3479
3479
  const c = this.services.domUtils.isFullScreenMode();
3480
3480
  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);
@@ -3671,11 +3671,11 @@ const ts = (i) => Ji.sanitize(i, {
3671
3671
  }
3672
3672
  }
3673
3673
  };
3674
- Ts.buttonID = 0;
3675
- let Tr = Ts;
3676
- const bs = class bs extends dt {
3674
+ bs.buttonID = 0;
3675
+ let Tr = bs;
3676
+ const Os = class Os extends dt {
3677
3677
  constructor(t, e, n, s) {
3678
- super(t, e, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = bs.instanceID++, this.init();
3678
+ super(t, e, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Os.instanceID++, this.init();
3679
3679
  }
3680
3680
  init() {
3681
3681
  this.children.forEach((t) => {
@@ -3759,8 +3759,8 @@ const bs = class bs extends dt {
3759
3759
  });
3760
3760
  }
3761
3761
  };
3762
- bs.instanceID = Math.floor(Math.random() * 99999999999);
3763
- let br = bs;
3762
+ Os.instanceID = Math.floor(Math.random() * 99999999999);
3763
+ let br = Os;
3764
3764
  class lm extends dt {
3765
3765
  constructor() {
3766
3766
  super(...arguments), this.type = "spacer";
@@ -3972,15 +3972,15 @@ class Nd extends dt {
3972
3972
  y.exit().remove();
3973
3973
  const E = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
3974
3974
  "aria-labelledby",
3975
- (k, _) => this.services.domUtils.generateElementIDString(
3975
+ (C, _) => this.services.domUtils.generateElementIDString(
3976
3976
  `legend-datagroup-${g.size() + _}-title`
3977
3977
  )
3978
3978
  );
3979
3979
  E.selectAll("*").remove();
3980
3980
  let x, T = 1;
3981
- E.append("svg").classed("icon", !0).each(function(k) {
3981
+ E.append("svg").classed("icon", !0).each(function(C) {
3982
3982
  const _ = D(this);
3983
- !x || x != k.type ? (x = k.type, T = 1) : T++, S.addAdditionalItem(_, k, T);
3983
+ !x || x != C.type ? (x = C.type, T = 1) : T++, S.addAdditionalItem(_, C, T);
3984
3984
  }), E.append("p").merge(E.select("p")), this.truncateLegendText();
3985
3985
  }
3986
3986
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
@@ -4150,7 +4150,7 @@ var Or = (Ye = {}, Ye[Lt.LEFT] = function(i, t, e) {
4150
4150
  }, Ye), Lr = typeof window < "u" ? window : {
4151
4151
  innerHeight: 0,
4152
4152
  innerWidth: 0
4153
- }, Cs = (
4153
+ }, ks = (
4154
4154
  /** @class */
4155
4155
  function() {
4156
4156
  function i(t) {
@@ -4238,10 +4238,10 @@ var Or = (Ye = {}, Ye[Lt.LEFT] = function(i, t, e) {
4238
4238
  }, i;
4239
4239
  }()
4240
4240
  );
4241
- new Cs();
4241
+ new ks();
4242
4242
  class $d extends dt {
4243
4243
  constructor(t, e, n) {
4244
- super(t, e, n), this.type = "tooltip", this.renderType = at.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Cs(), this.handleShowTooltip = (s) => {
4244
+ super(t, e, n), this.type = "tooltip", this.renderType = at.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new ks(), this.handleShowTooltip = (s) => {
4245
4245
  const a = s.detail.data || s.detail.items, r = D(s.detail.event.target).datum();
4246
4246
  let o;
4247
4247
  const c = this.formatItems(this.getItems(s));
@@ -4427,18 +4427,18 @@ const nn = class nn extends dt {
4427
4427
  f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
4428
4428
  const m = (x) => {
4429
4429
  const T = x[1] - x[0];
4430
- let k = "0," + T.toString();
4431
- const _ = Math.floor(c / nn.DASH_LENGTH), G = _ * nn.DASH_LENGTH;
4430
+ let C = "0," + T.toString();
4431
+ const _ = Math.floor(c / nn.DASH_LENGTH), V = _ * nn.DASH_LENGTH;
4432
4432
  for (let R = 0; R < _; R++)
4433
- k += "," + nn.DASH_LENGTH;
4434
- k += "," + (c - G), _ % 2 === 1 && (k += ",0"), k += "," + T.toString(), k += "," + c.toString(), p.attr("stroke-dasharray", k);
4433
+ C += "," + nn.DASH_LENGTH;
4434
+ C += "," + (c - V), _ % 2 === 1 && (C += ",0"), C += "," + T.toString(), C += "," + c.toString(), p.attr("stroke-dasharray", C);
4435
4435
  }, g = (x) => {
4436
4436
  const T = x.selection;
4437
4437
  T === null || T[0] === T[1] || (p.attr("x", parseFloat(r.attr("x")) + parseFloat(s.attr("x"))).attr("y", r.attr("y")).attr("width", r.attr("width")).attr("height", r.attr("height")).style("cursor", "pointer").style("display", null), m(T));
4438
4438
  }, v = (x, T) => {
4439
- const k = Ml().range([0, o]).domain(f);
4440
- let _ = [k.invert(x), k.invert(T)], G = "manual";
4441
- _[0].valueOf() === _[1].valueOf() ? (_ = this.services.zoom.getDefaultZoomBarDomain(), G = "reset") : G = "manual", (f[0].valueOf() !== _[0].valueOf() || f[1].valueOf() !== _[1].valueOf()) && this.services.zoom.handleDomainChange(_, { dispatchEvent: !0, type: G });
4439
+ const C = Ml().range([0, o]).domain(f);
4440
+ let _ = [C.invert(x), C.invert(T)], V = "manual";
4441
+ _[0].valueOf() === _[1].valueOf() ? (_ = this.services.zoom.getDefaultZoomBarDomain(), V = "reset") : V = "manual", (f[0].valueOf() !== _[0].valueOf() || f[1].valueOf() !== _[1].valueOf()) && this.services.zoom.handleDomainChange(_, { dispatchEvent: !0, type: V });
4442
4442
  };
4443
4443
  let S;
4444
4444
  const y = (x) => {
@@ -4452,11 +4452,11 @@ const nn = class nn extends dt {
4452
4452
  const E = this.services.zoom.getZoomRatio();
4453
4453
  s.on("click", function(x) {
4454
4454
  if (x.shiftKey) {
4455
- const T = this.services.domUtils.getHolder(), k = an(a.node(), T)[0];
4456
- let _ = k - o * E / 2;
4455
+ const T = this.services.domUtils.getHolder(), C = an(a.node(), T)[0];
4456
+ let _ = C - o * E / 2;
4457
4457
  _ < 0 && (_ = 0);
4458
- let G = k + o * E / 2;
4459
- G > o && (G = o), v(_, G);
4458
+ let V = C + o * E / 2;
4459
+ V > o && (V = o), v(_, V);
4460
4460
  }
4461
4461
  });
4462
4462
  }
@@ -4525,20 +4525,20 @@ class hm extends dt {
4525
4525
  zoomDomain: sn([], v)
4526
4526
  },
4527
4527
  { skipUpdate: !0 }
4528
- ), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Os(g, (T) => T.value));
4528
+ ), this.xScale.range([l, c]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Ls(g, (T) => T.value));
4529
4529
  const E = this.model.get("zoomDomain");
4530
4530
  if (a === Ue.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", g, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", g, this.clipId), this.renderZoomBarBaseline(d, l, c), r)) {
4531
- const T = r.highlightStartMapsTo, k = r.highlightEndMapsTo, _ = r.color, G = r.labelMapsTo;
4531
+ const T = r.highlightStartMapsTo, C = r.highlightEndMapsTo, _ = r.color, V = r.labelMapsTo;
4532
4532
  r.data.forEach((R, A) => {
4533
4533
  I.appendOrSelect(d, `rect.highlight-${A}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[T])).attr(
4534
4534
  "width",
4535
- this.xScale(R[k]) - this.xScale(R[T])
4535
+ this.xScale(R[C]) - this.xScale(R[T])
4536
4536
  ).style(
4537
4537
  "fill",
4538
- _ && _.scale[R[G]] ? _.scale[R[G]] : null
4538
+ _ && _.scale[R[V]] ? _.scale[R[V]] : null
4539
4539
  ).style("fill-opacity", 0.1).style(
4540
4540
  "stroke",
4541
- _ && _.scale[R[G]] ? _.scale[R[G]] : null
4541
+ _ && _.scale[R[V]] ? _.scale[R[V]] : null
4542
4542
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
4543
4543
  });
4544
4544
  }
@@ -4547,7 +4547,7 @@ class hm extends dt {
4547
4547
  if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
4548
4548
  x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
4549
4549
  else {
4550
- const T = E.map((k) => this.xScale(k));
4550
+ const T = E.map((C) => this.xScale(C));
4551
4551
  T[1] - T[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, T), this.updateBrushHandle(this.getComponentContainer(), T));
4552
4552
  }
4553
4553
  s && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
@@ -4668,7 +4668,7 @@ class hm extends dt {
4668
4668
  }
4669
4669
  class dm extends dt {
4670
4670
  constructor(t, e) {
4671
- super(t, e), this.type = "threshold", this.renderType = at.SVG, this.positionService = new Cs();
4671
+ super(t, e), this.type = "threshold", this.renderType = at.SVG, this.positionService = new ks();
4672
4672
  }
4673
4673
  render(t = !1) {
4674
4674
  const e = O(this.getOptions(), "axes"), n = [];
@@ -4703,10 +4703,10 @@ class dm extends dt {
4703
4703
  ), f = d.services.cartesianScales.getScaleTypeByPosition(u);
4704
4704
  let m = null, g = null;
4705
4705
  u === J.LEFT || u === J.RIGHT ? (g = p, m = d.services.cartesianScales.getMainXScale()) : (m = p, g = d.services.cartesianScales.getMainYScale());
4706
- const v = f === kt.LABELS, [S, y] = m.range(), [E, x] = g.range(), { cartesianScales: T } = d.services, k = T.getOrientation(), _ = (N) => T.getDomainValue(N), G = (N) => T.getRangeValue(N), [R, A] = xe(
4706
+ const v = f === kt.LABELS, [S, y] = m.range(), [E, x] = g.range(), { cartesianScales: T } = d.services, C = T.getOrientation(), _ = (N) => T.getDomainValue(N), V = (N) => T.getRangeValue(N), [R, A] = xe(
4707
4707
  _,
4708
- G,
4709
- k
4708
+ V,
4709
+ C
4710
4710
  ), H = D(this);
4711
4711
  u === J.TOP || u === J.BOTTOM ? (H.selectAll("line.threshold-line").transition().call(
4712
4712
  (N) => d.services.transitions.setupTransition({
@@ -4742,11 +4742,11 @@ class dm extends dt {
4742
4742
  getFormattedValue(t) {
4743
4743
  const { value: e, axisPosition: n } = t, s = this.getOptions(), a = this.services.cartesianScales.getScaleTypeByPosition(n), { code: r, number: o } = O(s, "locale");
4744
4744
  if (a === kt.TIME) {
4745
- 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 = hi(
4745
+ 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 = di(
4746
4746
  d.ticks(),
4747
4747
  O(u, "timeInterval")
4748
4748
  );
4749
- return di(e, 0, d.ticks(), p, u, s.locale);
4749
+ return pi(e, 0, d.ticks(), p, u, s.locale);
4750
4750
  }
4751
4751
  return o(e, r);
4752
4752
  }
@@ -4809,7 +4809,7 @@ class dm extends dt {
4809
4809
  }
4810
4810
  class pm extends dt {
4811
4811
  constructor(t, e) {
4812
- super(t, e), this.type = "highlight", this.renderType = at.SVG, this.positionService = new Cs(), this.highlightStrokeWidth = 1;
4812
+ super(t, e), this.type = "highlight", this.renderType = at.SVG, this.positionService = new ks(), this.highlightStrokeWidth = 1;
4813
4813
  }
4814
4814
  render(t = !1) {
4815
4815
  const e = O(this.getOptions(), "axes"), n = [];
@@ -4841,21 +4841,21 @@ class pm extends dt {
4841
4841
  l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
4842
4842
  const d = this;
4843
4843
  o.each(function({ axisPosition: u }) {
4844
- const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [m, g] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R), T = (R) => y.getRangeValue(R), [k, _] = xe(
4844
+ const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [m, g] = p.range(), [v, S] = f.range(), { cartesianScales: y } = d.services, E = y.getOrientation(), x = (R) => y.getDomainValue(R), T = (R) => y.getRangeValue(R), [C, _] = xe(
4845
4845
  x,
4846
4846
  T,
4847
4847
  E
4848
- ), G = D(this);
4849
- u === J.TOP || u === J.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
4848
+ ), V = D(this);
4849
+ u === J.TOP || u === J.BOTTOM ? V.selectAll("rect.highlight-bar").transition().call(
4850
4850
  (R) => d.services.transitions.setupTransition({
4851
4851
  transition: R,
4852
4852
  name: "highlight-bar-update",
4853
4853
  animate: t
4854
4854
  })
4855
- ).attr("y", Math.max(S + d.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: R, ...A }) => k(A[R])).attr(
4855
+ ).attr("y", Math.max(S + d.highlightStrokeWidth, 0)).attr("height", Math.max(v - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: R, ...A }) => C(A[R])).attr(
4856
4856
  "width",
4857
- ({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(k(H[A]) - k(H[R]), 0)
4858
- ).style("stroke", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null) : G.selectAll("rect.highlight-bar").transition().call(
4857
+ ({ highlightStartMapsTo: R, highlightEndMapsTo: A, ...H }) => Math.max(C(H[A]) - C(H[R]), 0)
4858
+ ).style("stroke", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: R, labelMapsTo: A, ...H }) => R && R.scale[H[A]] ? R.scale[H[A]] : null) : V.selectAll("rect.highlight-bar").transition().call(
4859
4859
  (R) => d.services.transitions.setupTransition({
4860
4860
  transition: R,
4861
4861
  name: "highlight-bar-update",
@@ -4979,7 +4979,7 @@ function Vd(i, t) {
4979
4979
  }
4980
4980
  return e;
4981
4981
  }
4982
- function li(i, t) {
4982
+ function ci(i, t) {
4983
4983
  let e = 0;
4984
4984
  if (t === void 0)
4985
4985
  for (let n of i)
@@ -5006,15 +5006,15 @@ function es(i) {
5006
5006
  };
5007
5007
  }
5008
5008
  function wr(i, t) {
5009
- return Ss(i.source, t.source) || i.index - t.index;
5009
+ return Ts(i.source, t.source) || i.index - t.index;
5010
5010
  }
5011
5011
  function Cr(i, t) {
5012
- return Ss(i.target, t.target) || i.index - t.index;
5012
+ return Ts(i.target, t.target) || i.index - t.index;
5013
5013
  }
5014
- function Ss(i, t) {
5014
+ function Ts(i, t) {
5015
5015
  return i.y0 - t.y0;
5016
5016
  }
5017
- function ci(i) {
5017
+ function ui(i) {
5018
5018
  return i.value;
5019
5019
  }
5020
5020
  function Bd(i) {
@@ -5072,71 +5072,71 @@ function Fd() {
5072
5072
  return arguments.length ? (p = +L, f) : p;
5073
5073
  };
5074
5074
  function m({ nodes: L, links: P }) {
5075
- for (const [C, V] of L.entries())
5076
- V.index = C, V.sourceLinks = [], V.targetLinks = [];
5077
- const $ = new Map(L.map((C, V) => [o(C, V, L), C]));
5078
- for (const [C, V] of P.entries()) {
5079
- V.index = C;
5080
- let { source: q, target: X } = V;
5081
- typeof q != "object" && (q = V.source = kr($, q)), typeof X != "object" && (X = V.target = kr($, X)), q.sourceLinks.push(V), X.targetLinks.push(V);
5075
+ for (const [k, G] of L.entries())
5076
+ G.index = k, G.sourceLinks = [], G.targetLinks = [];
5077
+ const $ = new Map(L.map((k, G) => [o(k, G, L), k]));
5078
+ for (const [k, G] of P.entries()) {
5079
+ G.index = k;
5080
+ let { source: q, target: X } = G;
5081
+ typeof q != "object" && (q = G.source = kr($, q)), typeof X != "object" && (X = G.target = kr($, X)), q.sourceLinks.push(G), X.targetLinks.push(G);
5082
5082
  }
5083
5083
  if (h != null)
5084
- for (const { sourceLinks: C, targetLinks: V } of L)
5085
- C.sort(h), V.sort(h);
5084
+ for (const { sourceLinks: k, targetLinks: G } of L)
5085
+ k.sort(h), G.sort(h);
5086
5086
  }
5087
5087
  function g({ nodes: L }) {
5088
5088
  for (const P of L)
5089
- P.value = P.fixedValue === void 0 ? Math.max(li(P.sourceLinks, ci), li(P.targetLinks, ci)) : P.fixedValue;
5089
+ P.value = P.fixedValue === void 0 ? Math.max(ci(P.sourceLinks, ui), ci(P.targetLinks, ui)) : P.fixedValue;
5090
5090
  }
5091
5091
  function v({ nodes: L }) {
5092
5092
  const P = L.length;
5093
- let $ = new Set(L), C = /* @__PURE__ */ new Set(), V = 0;
5093
+ let $ = new Set(L), k = /* @__PURE__ */ new Set(), G = 0;
5094
5094
  for (; $.size; ) {
5095
5095
  for (const q of $) {
5096
- q.depth = V;
5096
+ q.depth = G;
5097
5097
  for (const { target: X } of q.sourceLinks)
5098
- C.add(X);
5098
+ k.add(X);
5099
5099
  }
5100
- if (++V > P) throw new Error("circular link");
5101
- $ = C, C = /* @__PURE__ */ new Set();
5100
+ if (++G > P) throw new Error("circular link");
5101
+ $ = k, k = /* @__PURE__ */ new Set();
5102
5102
  }
5103
5103
  }
5104
5104
  function S({ nodes: L }) {
5105
5105
  const P = L.length;
5106
- let $ = new Set(L), C = /* @__PURE__ */ new Set(), V = 0;
5106
+ let $ = new Set(L), k = /* @__PURE__ */ new Set(), G = 0;
5107
5107
  for (; $.size; ) {
5108
5108
  for (const q of $) {
5109
- q.height = V;
5109
+ q.height = G;
5110
5110
  for (const { source: X } of q.targetLinks)
5111
- C.add(X);
5111
+ k.add(X);
5112
5112
  }
5113
- if (++V > P) throw new Error("circular link");
5114
- $ = C, C = /* @__PURE__ */ new Set();
5113
+ if (++G > P) throw new Error("circular link");
5114
+ $ = k, k = /* @__PURE__ */ new Set();
5115
5115
  }
5116
5116
  }
5117
5117
  function y({ nodes: L }) {
5118
- const P = Mr(L, (V) => V.depth) + 1, $ = (e - i - s) / (P - 1), C = new Array(P);
5119
- for (const V of L) {
5120
- const q = Math.max(0, Math.min(P - 1, Math.floor(c.call(null, V, P))));
5121
- V.layer = q, V.x0 = i + q * $, V.x1 = V.x0 + s, C[q] ? C[q].push(V) : C[q] = [V];
5118
+ const P = Mr(L, (G) => G.depth) + 1, $ = (e - i - s) / (P - 1), k = new Array(P);
5119
+ for (const G of L) {
5120
+ const q = Math.max(0, Math.min(P - 1, Math.floor(c.call(null, G, P))));
5121
+ G.layer = q, G.x0 = i + q * $, G.x1 = G.x0 + s, k[q] ? k[q].push(G) : k[q] = [G];
5122
5122
  }
5123
- if (l) for (const V of C)
5124
- V.sort(l);
5125
- return C;
5123
+ if (l) for (const G of k)
5124
+ G.sort(l);
5125
+ return k;
5126
5126
  }
5127
5127
  function E(L) {
5128
- const P = Vd(L, ($) => (n - t - ($.length - 1) * r) / li($, ci));
5128
+ const P = Vd(L, ($) => (n - t - ($.length - 1) * r) / ci($, ui));
5129
5129
  for (const $ of L) {
5130
- let C = t;
5131
- for (const V of $) {
5132
- V.y0 = C, V.y1 = C + V.value * P, C = V.y1 + r;
5133
- for (const q of V.sourceLinks)
5130
+ let k = t;
5131
+ for (const G of $) {
5132
+ G.y0 = k, G.y1 = k + G.value * P, k = G.y1 + r;
5133
+ for (const q of G.sourceLinks)
5134
5134
  q.width = q.value * P;
5135
5135
  }
5136
- C = (n - C + r) / ($.length + 1);
5137
- for (let V = 0; V < $.length; ++V) {
5138
- const q = $[V];
5139
- q.y0 += C * (V + 1), q.y1 += C * (V + 1);
5136
+ k = (n - k + r) / ($.length + 1);
5137
+ for (let G = 0; G < $.length; ++G) {
5138
+ const q = $[G];
5139
+ q.y0 += k * (G + 1), q.y1 += k * (G + 1);
5140
5140
  }
5141
5141
  H($);
5142
5142
  }
@@ -5145,13 +5145,13 @@ function Fd() {
5145
5145
  const P = y(L);
5146
5146
  r = Math.min(a, (n - t) / (Mr(P, ($) => $.length) - 1)), E(P);
5147
5147
  for (let $ = 0; $ < p; ++$) {
5148
- const C = Math.pow(0.99, $), V = Math.max(1 - C, ($ + 1) / p);
5149
- k(P, C, V), T(P, C, V);
5148
+ const k = Math.pow(0.99, $), G = Math.max(1 - k, ($ + 1) / p);
5149
+ C(P, k, G), T(P, k, G);
5150
5150
  }
5151
5151
  }
5152
5152
  function T(L, P, $) {
5153
- for (let C = 1, V = L.length; C < V; ++C) {
5154
- const q = L[C];
5153
+ for (let k = 1, G = L.length; k < G; ++k) {
5154
+ const q = L[k];
5155
5155
  for (const X of q) {
5156
5156
  let F = 0, Z = 0;
5157
5157
  for (const { source: j, value: Y } of X.targetLinks) {
@@ -5162,12 +5162,12 @@ function Fd() {
5162
5162
  let rt = (F / Z - X.y0) * P;
5163
5163
  X.y0 += rt, X.y1 += rt, A(X);
5164
5164
  }
5165
- l === void 0 && q.sort(Ss), _(q, $);
5165
+ l === void 0 && q.sort(Ts), _(q, $);
5166
5166
  }
5167
5167
  }
5168
- function k(L, P, $) {
5169
- for (let C = L.length, V = C - 2; V >= 0; --V) {
5170
- const q = L[V];
5168
+ function C(L, P, $) {
5169
+ for (let k = L.length, G = k - 2; G >= 0; --G) {
5170
+ const q = L[G];
5171
5171
  for (const X of q) {
5172
5172
  let F = 0, Z = 0;
5173
5173
  for (const { target: j, value: Y } of X.sourceLinks) {
@@ -5178,23 +5178,23 @@ function Fd() {
5178
5178
  let rt = (F / Z - X.y0) * P;
5179
5179
  X.y0 += rt, X.y1 += rt, A(X);
5180
5180
  }
5181
- l === void 0 && q.sort(Ss), _(q, $);
5181
+ l === void 0 && q.sort(Ts), _(q, $);
5182
5182
  }
5183
5183
  }
5184
5184
  function _(L, P) {
5185
- const $ = L.length >> 1, C = L[$];
5186
- 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);
5185
+ const $ = L.length >> 1, k = L[$];
5186
+ R(L, k.y0 - r, $ - 1, P), V(L, k.y1 + r, $ + 1, P), R(L, n, L.length - 1, P), V(L, t, 0, P);
5187
5187
  }
5188
- function G(L, P, $, C) {
5188
+ function V(L, P, $, k) {
5189
5189
  for (; $ < L.length; ++$) {
5190
- const V = L[$], q = (P - V.y0) * C;
5191
- q > 1e-6 && (V.y0 += q, V.y1 += q), P = V.y1 + r;
5190
+ const G = L[$], q = (P - G.y0) * k;
5191
+ q > 1e-6 && (G.y0 += q, G.y1 += q), P = G.y1 + r;
5192
5192
  }
5193
5193
  }
5194
- function R(L, P, $, C) {
5194
+ function R(L, P, $, k) {
5195
5195
  for (; $ >= 0; --$) {
5196
- const V = L[$], q = (V.y1 - P) * C;
5197
- q > 1e-6 && (V.y0 -= q, V.y1 -= q), P = V.y0 - r;
5196
+ const G = L[$], q = (G.y1 - P) * k;
5197
+ q > 1e-6 && (G.y0 -= q, G.y1 -= q), P = G.y0 - r;
5198
5198
  }
5199
5199
  }
5200
5200
  function A({ sourceLinks: L, targetLinks: P }) {
@@ -5212,40 +5212,40 @@ function Fd() {
5212
5212
  }
5213
5213
  function N(L, P) {
5214
5214
  let $ = L.y0 - (L.sourceLinks.length - 1) * r / 2;
5215
- for (const { target: C, width: V } of L.sourceLinks) {
5216
- if (C === P) break;
5217
- $ += V + r;
5215
+ for (const { target: k, width: G } of L.sourceLinks) {
5216
+ if (k === P) break;
5217
+ $ += G + r;
5218
5218
  }
5219
- for (const { source: C, width: V } of P.targetLinks) {
5220
- if (C === L) break;
5221
- $ -= V;
5219
+ for (const { source: k, width: G } of P.targetLinks) {
5220
+ if (k === L) break;
5221
+ $ -= G;
5222
5222
  }
5223
5223
  return $;
5224
5224
  }
5225
5225
  function M(L, P) {
5226
5226
  let $ = P.y0 - (P.targetLinks.length - 1) * r / 2;
5227
- for (const { source: C, width: V } of P.targetLinks) {
5228
- if (C === L) break;
5229
- $ += V + r;
5227
+ for (const { source: k, width: G } of P.targetLinks) {
5228
+ if (k === L) break;
5229
+ $ += G + r;
5230
5230
  }
5231
- for (const { target: C, width: V } of L.sourceLinks) {
5232
- if (C === P) break;
5233
- $ -= V;
5231
+ for (const { target: k, width: G } of L.sourceLinks) {
5232
+ if (k === P) break;
5233
+ $ -= G;
5234
5234
  }
5235
5235
  return $;
5236
5236
  }
5237
5237
  return f;
5238
5238
  }
5239
- var Vi = Math.PI, Gi = 2 * Vi, _e = 1e-6, Wd = Gi - _e;
5240
- function Hi() {
5239
+ var Gi = Math.PI, Hi = 2 * Gi, _e = 1e-6, Wd = Hi - _e;
5240
+ function Bi() {
5241
5241
  this._x0 = this._y0 = // start of current subpath
5242
5242
  this._x1 = this._y1 = null, this._ = "";
5243
5243
  }
5244
5244
  function jo() {
5245
- return new Hi();
5245
+ return new Bi();
5246
5246
  }
5247
- Hi.prototype = jo.prototype = {
5248
- constructor: Hi,
5247
+ Bi.prototype = jo.prototype = {
5248
+ constructor: Bi,
5249
5249
  moveTo: function(i, t) {
5250
5250
  this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +t);
5251
5251
  },
@@ -5270,7 +5270,7 @@ Hi.prototype = jo.prototype = {
5270
5270
  else if (d > _e) if (!(Math.abs(h * o - c * l) > _e) || !s)
5271
5271
  this._ += "L" + (this._x1 = i) + "," + (this._y1 = t);
5272
5272
  else {
5273
- var u = e - a, p = n - r, f = o * o + c * c, m = u * u + p * p, g = Math.sqrt(f), v = Math.sqrt(d), S = s * Math.tan((Vi - Math.acos((f + d - m) / (2 * g * v))) / 2), y = S / v, E = S / g;
5273
+ var u = e - a, p = n - r, f = o * o + c * c, m = u * u + p * p, g = Math.sqrt(f), v = Math.sqrt(d), S = s * Math.tan((Gi - Math.acos((f + d - m) / (2 * g * v))) / 2), y = S / v, E = S / g;
5274
5274
  Math.abs(y - 1) > _e && (this._ += "L" + (i + y * l) + "," + (t + y * h)), this._ += "A" + s + "," + s + ",0,0," + +(h * u > l * p) + "," + (this._x1 = i + E * o) + "," + (this._y1 = t + E * c);
5275
5275
  }
5276
5276
  },
@@ -5278,7 +5278,7 @@ Hi.prototype = jo.prototype = {
5278
5278
  i = +i, t = +t, e = +e, a = !!a;
5279
5279
  var r = e * Math.cos(n), o = e * Math.sin(n), c = i + r, l = t + o, h = 1 ^ a, d = a ? n - s : s - n;
5280
5280
  if (e < 0) throw new Error("negative radius: " + e);
5281
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % Gi + Gi), d > Wd ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (i - r) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= Vi) + "," + h + "," + (this._x1 = i + e * Math.cos(s)) + "," + (this._y1 = t + e * Math.sin(s))));
5281
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % Hi + Hi), d > Wd ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (i - r) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= Gi) + "," + h + "," + (this._x1 = i + e * Math.cos(s)) + "," + (this._y1 = t + e * Math.sin(s))));
5282
5282
  },
5283
5283
  rect: function(i, t, e, n) {
5284
5284
  this._ += "M" + (this._x0 = this._x1 = +i) + "," + (this._y0 = this._y1 = +t) + "h" + +e + "v" + +n + "h" + -e + "Z";
@@ -5385,8 +5385,8 @@ class gm extends dt {
5385
5385
  ), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
5386
5386
  useBBox: !0
5387
5387
  });
5388
- let k = 0;
5389
- return y + k >= T && (k = -T + 4), k;
5388
+ let C = 0;
5389
+ return y + C >= T && (C = -T + 4), C;
5390
5390
  });
5391
5391
  const f = e.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
5392
5392
  if (f.exit().remove(), o) {
@@ -5440,13 +5440,13 @@ class gm extends dt {
5440
5440
  `alluvial-node-text-${E}`
5441
5441
  ), { width: T } = I.getSVGElementSize(D(`text#${x}`), {
5442
5442
  useBBox: !0
5443
- }), k = (y.y1 - y.y0) / 2 - 9;
5443
+ }), C = (y.y1 - y.y0) / 2 - 9;
5444
5444
  let _ = y.x1 - y.x0;
5445
- return y.x1 >= T ? _ = _ - (T + 16) : _ += 4, `translate(${_}, ${k})`;
5445
+ return y.x1 >= T ? _ = _ - (T + 16) : _ += 4, `translate(${_}, ${C})`;
5446
5446
  }), this.addLineEventListener(), this.addNodeEventListener();
5447
5447
  }
5448
5448
  addLineEventListener() {
5449
- const t = this.getOptions(), e = this, { number: n, code: s } = O(this.getOptions(), "locale"), a = fi((r, o = "mouseover") => {
5449
+ const t = this.getOptions(), e = this, { number: n, code: s } = O(this.getOptions(), "locale"), a = gi((r, o = "mouseover") => {
5450
5450
  const c = e.parent.selectAll("path.link").transition().call(
5451
5451
  (l) => e.services.transitions.setupTransition({
5452
5452
  transition: l,
@@ -5504,7 +5504,7 @@ class gm extends dt {
5504
5504
  });
5505
5505
  }
5506
5506
  addNodeEventListener() {
5507
- const t = this, e = fi((n = [], s = "mouseover") => {
5507
+ const t = this, e = gi((n = [], s = "mouseover") => {
5508
5508
  if (s === "mouseout" || n.length === 0) {
5509
5509
  t.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (r) => r.index).order().style("stroke-opacity", se.opacity.default);
5510
5510
  return;
@@ -5713,8 +5713,8 @@ class vm extends dt {
5713
5713
  const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
5714
5714
  let s = [0, 0];
5715
5715
  const { cartesianScales: a } = this.services, r = a.getOrientation(), o = Ki().curve(this.services.curves.getD3Curve()).defined((x) => {
5716
- const T = a.getRangeIdentifier(), k = x[T];
5717
- return k != null;
5716
+ const T = a.getRangeIdentifier(), C = x[T];
5717
+ return C != null;
5718
5718
  }), c = this.model.getGroupedData(this.configs.groups), l = O(n, "bounds"), h = l && c && c.length === 1;
5719
5719
  !h && l && console.warn(
5720
5720
  `Bounds can only be shown when having 1 single datagroup, you've supplied ${c.length}`
@@ -5742,10 +5742,10 @@ class vm extends dt {
5742
5742
  "stroke"
5743
5743
  );
5744
5744
  else {
5745
- const k = O(this.model.getOptions(), "color", "scale");
5746
- if (k !== null) {
5747
- const _ = Object.keys(k);
5748
- T = k[_[0]];
5745
+ const C = O(this.model.getOptions(), "color", "scale");
5746
+ if (C !== null) {
5747
+ const _ = Object.keys(C);
5748
+ T = C[_[0]];
5749
5749
  }
5750
5750
  }
5751
5751
  Ca.appendOrUpdateLinearGradient({
@@ -5844,12 +5844,12 @@ class ym extends dt {
5844
5844
  const x = this.services.cartesianScales.getDomainIdentifier(E), T = this.services.cartesianScales.getRangeIdentifier(E);
5845
5845
  return {
5846
5846
  name: O(E, 0, S),
5847
- data: E.map((k) => ({
5848
- [x]: k.data.sharedStackKey,
5849
- [S]: k[S],
5850
- [T]: k[1]
5847
+ data: E.map((C) => ({
5848
+ [x]: C.data.sharedStackKey,
5849
+ [S]: C[S],
5850
+ [T]: C[1]
5851
5851
  })),
5852
- hidden: !kc(E, (k) => k[0] !== k[1])
5852
+ hidden: !kc(E, (C) => C[0] !== C[1])
5853
5853
  };
5854
5854
  });
5855
5855
  } else
@@ -6060,15 +6060,18 @@ class Qi extends dt {
6060
6060
  render(t) {
6061
6061
  if (!(O(this.getOptions(), "points", "enabled") || O(this.getOptions(), "bubble", "enabled")))
6062
6062
  return;
6063
- const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), s = this.getOptions(), { groupMapsTo: a } = s.data, { cartesianScales: r } = this.services;
6064
- if (!r) throw new Error("Services cartesianScales are undefined.");
6065
- const o = r.getDomainIdentifier(), c = n.selectAll("circle.dot").data(
6063
+ const n = this.services.zoom?.isZoomBarEnabled() || !1, s = this.getComponentContainer({
6064
+ ariaLabel: "scatter points",
6065
+ withinChartClip: n
6066
+ }), a = this.getOptions(), { groupMapsTo: r } = a.data, { cartesianScales: o } = this.services;
6067
+ if (!o) throw new Error("Services cartesianScales are undefined.");
6068
+ const c = o.getDomainIdentifier(), l = s.selectAll("circle.dot").data(
6066
6069
  this.getScatterData(),
6067
- (d) => `${d[a]}-${d[o]}`
6070
+ (u) => `${u[r]}-${u[c]}`
6068
6071
  );
6069
- c.exit().attr("opacity", 0).remove();
6070
- const h = c.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(c);
6071
- this.styleCircles(h, t), this.addEventListeners();
6072
+ l.exit().attr("opacity", 0).remove();
6073
+ const d = l.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(l);
6074
+ this.styleCircles(d, t), this.addEventListeners();
6072
6075
  }
6073
6076
  // A value is an anomaly if is above all defined domain and range thresholds
6074
6077
  isDatapointThresholdAnomaly(t) {
@@ -6135,7 +6138,11 @@ class Qi extends dt {
6135
6138
  return null;
6136
6139
  }
6137
6140
  addEventListeners() {
6138
- const t = this, { groupMapsTo: e } = t.getOptions().data, n = O(this.getOptions(), "tooltip", "alwaysShowRulerTooltip");
6141
+ const t = this, { groupMapsTo: e } = t.getOptions().data, n = O(
6142
+ this.getOptions(),
6143
+ "tooltip",
6144
+ "alwaysShowRulerTooltip"
6145
+ );
6139
6146
  if (!this.parent) throw new Error("Parent not defined");
6140
6147
  const s = this.parent.selectAll("circle");
6141
6148
  n ? s.style("pointer-events", "none") : s.style("pointer-events", null), s.on("mouseover", function(a, r) {
@@ -6248,7 +6255,7 @@ class Jo extends dt {
6248
6255
  f.attr("aria-hidden", !0);
6249
6256
  return;
6250
6257
  }
6251
- const E = O(g, "scaleType"), x = O(n, "data", "loading"), T = O(g, "ticks", "number"), k = O(g, "ticks", "values"), _ = O(g, "truncation", "type"), G = O(g, "truncation", "threshold"), R = O(g, "truncation", "numCharacter"), A = T !== null, H = O(n, "timeScale"), N = I.appendOrSelect(m, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
6258
+ const E = O(g, "scaleType"), x = O(n, "data", "loading"), T = O(g, "ticks", "number"), C = O(g, "ticks", "values"), _ = O(g, "truncation", "type"), V = O(g, "truncation", "threshold"), R = O(g, "truncation", "numCharacter"), A = T !== null, H = O(n, "timeScale"), N = I.appendOrSelect(m, "g.tick"), M = I.appendOrSelect(N, "text").text("0"), L = I.getSVGElementSize(M.node(), {
6252
6259
  useBBox: !0
6253
6260
  }).height;
6254
6261
  N.remove();
@@ -6269,15 +6276,15 @@ class Jo extends dt {
6269
6276
  K && st.length > 2 && !ot && (st.splice(st.length - 1, 1), st.splice(0, 1)), $.tickValues(st);
6270
6277
  }
6271
6278
  }
6272
- let C;
6273
- const V = O(g, "ticks", "formatter"), { code: q, number: X } = O(n, "locale");
6279
+ let k;
6280
+ const G = O(g, "ticks", "formatter"), { code: q, number: X } = O(n, "locale");
6274
6281
  if (v) {
6275
- const Y = hi(
6282
+ const Y = di(
6276
6283
  $.tickValues(),
6277
6284
  O(n, "timeScale", "timeInterval")
6278
6285
  );
6279
- V === null ? C = (K, ot) => di(K, ot, $.tickValues(), Y, H, n.locale) : C = (K, ot) => {
6280
- const ct = di(
6286
+ G === null ? k = (K, ot) => pi(K, ot, $.tickValues(), Y, H, n.locale) : k = (K, ot) => {
6287
+ const ct = pi(
6281
6288
  K,
6282
6289
  ot,
6283
6290
  $.tickValues(),
@@ -6285,26 +6292,26 @@ class Jo extends dt {
6285
6292
  H,
6286
6293
  n.locale
6287
6294
  );
6288
- return V(K, ot, ct);
6295
+ return G(K, ot, ct);
6289
6296
  };
6290
6297
  } else
6291
- V === null ? P === kt.LINEAR && (C = (Y) => X(Y, q)) : C = V;
6292
- $.tickFormat(C);
6298
+ G === null ? P === kt.LINEAR && (k = (Y) => X(Y, q)) : k = G;
6299
+ $.tickFormat(k);
6293
6300
  const [F, Z] = this.services.cartesianScales.getScaleByPosition(e).domain();
6294
6301
  let rt;
6295
- if (k) {
6302
+ if (C) {
6296
6303
  if (v)
6297
- k.forEach((Y, K) => {
6298
- Y.getTime === void 0 && (k[K] = new Date(Y));
6299
- }), rt = k.filter((Y) => {
6304
+ C.forEach((Y, K) => {
6305
+ Y.getTime === void 0 && (C[K] = new Date(Y));
6306
+ }), rt = C.filter((Y) => {
6300
6307
  const K = Y.getTime();
6301
6308
  return K >= new Date(F).getTime() && K <= new Date(Z).getTime();
6302
6309
  });
6303
6310
  else if (E === kt.LABELS) {
6304
6311
  const Y = this.services.cartesianScales.getScaleByPosition(e).domain();
6305
- rt = k.filter((K) => Y.includes(K));
6312
+ rt = C.filter((K) => Y.includes(K));
6306
6313
  } else
6307
- rt = k.filter(
6314
+ rt = C.filter(
6308
6315
  (Y) => Y >= F && Y <= Z
6309
6316
  );
6310
6317
  $.tickValues(rt);
@@ -6354,7 +6361,7 @@ class Jo extends dt {
6354
6361
  }
6355
6362
  }
6356
6363
  if (v) {
6357
- const Y = hi(
6364
+ const Y = di(
6358
6365
  $.tickValues(),
6359
6366
  O(n, "timeScale", "timeInterval")
6360
6367
  ), K = H.showDayName, ot = f;
@@ -6379,11 +6386,11 @@ class Jo extends dt {
6379
6386
  if (m.call($), e === J.BOTTOM || e === J.TOP) {
6380
6387
  let Y = !1;
6381
6388
  const K = O(g, "ticks", "rotation");
6382
- if (K === $s.ALWAYS)
6389
+ if (K === Vs.ALWAYS)
6383
6390
  Y = !0;
6384
- else if (K === $s.NEVER)
6391
+ else if (K === Vs.NEVER)
6385
6392
  Y = !1;
6386
- else if (!K || K === $s.AUTO)
6393
+ else if (!K || K === Vs.AUTO)
6387
6394
  if (d.step)
6388
6395
  Y = m.selectAll("g.tick text").nodes().some(
6389
6396
  (ct) => I.getSVGElementSize(ct, {
@@ -6405,16 +6412,16 @@ class Jo extends dt {
6405
6412
  this.getNumberOfFittingTicks(r, L, Je.ticks.horizontalSpaceRatio)
6406
6413
  ), m.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);
6407
6414
  }
6408
- if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), m.selectAll("g.tick").attr("aria-label", (Y) => Y), _ !== Qe.NONE && E === kt.LABELS && !k) {
6415
+ if (x ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (Y) => Y), m.selectAll("g.tick").attr("aria-label", (Y) => Y), _ !== Qe.NONE && E === kt.LABELS && !C) {
6409
6416
  const Y = this.services.cartesianScales.getScaleDomain(e);
6410
6417
  if (Y.length > 0) {
6411
6418
  const K = a.select(`g.axis.${e} g.ticks g.tick`).html();
6412
6419
  c.selectAll("g.ticks g.tick").html(K);
6413
6420
  const ot = this;
6414
6421
  c.selectAll("g.tick text").data(Y).text(function(ct) {
6415
- return ct.length > G ? (ot.truncation[e] = !0, kn(ct, _, R)) : ct;
6422
+ return ct.length > V ? (ot.truncation[e] = !0, kn(ct, _, R)) : ct;
6416
6423
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(Y).text(function(ct) {
6417
- return ct.length > G ? kn(ct, _, R) : ct;
6424
+ return ct.length > V ? kn(ct, _, R) : ct;
6418
6425
  }), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(Y);
6419
6426
  }
6420
6427
  }
@@ -6764,8 +6771,8 @@ class xm extends dt {
6764
6771
  m
6765
6772
  ), y = Math.floor((g ? u : p) / a.length), E = Math.min(y / 2, 16), x = this.model.getBoxplotData(), T = e.selectAll(".box-group").data(x);
6766
6773
  T.exit().remove();
6767
- const k = T.enter().append("g").attr("class", "box-group"), _ = T.merge(k);
6768
- k.append("path").merge(T.select("path.vertical-line.start")).attr(
6774
+ const C = T.enter().append("g").attr("class", "box-group"), _ = T.merge(C);
6775
+ C.append("path").merge(T.select("path.vertical-line.start")).attr(
6769
6776
  "class",
6770
6777
  () => this.model.getColorClassName({
6771
6778
  classNameTypes: [nt.STROKE],
@@ -6780,7 +6787,7 @@ class xm extends dt {
6780
6787
  ).attr("d", (A) => {
6781
6788
  const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.quartiles.q_25);
6782
6789
  return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
6783
- }), k.append("path").merge(T.select("path.vertical-line.end")).attr(
6790
+ }), C.append("path").merge(T.select("path.vertical-line.end")).attr(
6784
6791
  "class",
6785
6792
  () => this.model.getColorClassName({
6786
6793
  classNameTypes: [nt.STROKE],
@@ -6795,7 +6802,7 @@ class xm extends dt {
6795
6802
  ).attr("d", (A) => {
6796
6803
  const H = f.getDomainValue(A[s]), N = H, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.quartiles.q_75);
6797
6804
  return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
6798
- }), k.append("path").merge(T.select("path.box")).attr(
6805
+ }), C.append("path").merge(T.select("path.box")).attr(
6799
6806
  "class",
6800
6807
  () => this.model.getColorClassName({
6801
6808
  classNameTypes: [nt.FILL, nt.STROKE],
@@ -6814,10 +6821,10 @@ class xm extends dt {
6814
6821
  f.getRangeValue(A.quartiles.q_75) - f.getRangeValue(A.quartiles.q_25)
6815
6822
  );
6816
6823
  return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
6817
- }), k.append("path").merge(T.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
6824
+ }), C.append("path").merge(T.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (A) => {
6818
6825
  const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.max);
6819
6826
  return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
6820
- }), k.append("path").merge(T.select("path.whisker.start")).attr(
6827
+ }), C.append("path").merge(T.select("path.whisker.start")).attr(
6821
6828
  "class",
6822
6829
  () => this.model.getColorClassName({
6823
6830
  classNameTypes: [nt.STROKE],
@@ -6832,7 +6839,7 @@ class xm extends dt {
6832
6839
  ).attr("d", (A) => {
6833
6840
  const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.min), L = f.getRangeValue(A.whiskers.min);
6834
6841
  return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
6835
- }), k.append("path").merge(T.select("path.median")).attr("fill", "none").attr(
6842
+ }), C.append("path").merge(T.select("path.median")).attr("fill", "none").attr(
6836
6843
  "class",
6837
6844
  () => this.model.getColorClassName({
6838
6845
  classNameTypes: [nt.STROKE],
@@ -6847,7 +6854,7 @@ class xm extends dt {
6847
6854
  ).attr("d", (A) => {
6848
6855
  const H = f.getDomainValue(A[s]) - E / 2, N = H + E, M = f.getRangeValue(A.quartiles.q_50);
6849
6856
  return Gt({ x0: H, x1: N, y0: M, y1: M }, m);
6850
- }), k.append("path").merge(T.select("path.whisker.end")).attr(
6857
+ }), C.append("path").merge(T.select("path.whisker.end")).attr(
6851
6858
  "class",
6852
6859
  () => this.model.getColorClassName({
6853
6860
  classNameTypes: [nt.STROKE],
@@ -6863,7 +6870,7 @@ class xm extends dt {
6863
6870
  const H = f.getDomainValue(A[s]) - E / 4, N = H + E / 2, M = f.getRangeValue(A.whiskers.max), L = f.getRangeValue(A.whiskers.max);
6864
6871
  return Gt({ x0: H, x1: N, y0: M, y1: L }, m);
6865
6872
  });
6866
- const G = _.selectAll("circle.outlier").data(
6873
+ const V = _.selectAll("circle.outlier").data(
6867
6874
  (A) => A.outliers.map((H) => ({
6868
6875
  min: A.whiskers.min,
6869
6876
  max: A.whiskers.max,
@@ -6871,9 +6878,9 @@ class xm extends dt {
6871
6878
  value: H
6872
6879
  }))
6873
6880
  );
6874
- G.exit().remove();
6875
- const R = G.enter().append("circle");
6876
- G.merge(R).attr("r", qt.circle.radius).attr(
6881
+ V.exit().remove();
6882
+ const R = V.enter().append("circle");
6883
+ V.merge(R).attr("r", qt.circle.radius).attr(
6877
6884
  "class",
6878
6885
  () => this.model.getColorClassName({
6879
6886
  classNameTypes: [nt.FILL, nt.STROKE],
@@ -7050,7 +7057,7 @@ class Tm extends Qi {
7050
7057
  super(...arguments), this.type = "bubble", this.renderType = at.SVG;
7051
7058
  }
7052
7059
  getRadiusScale(t) {
7053
- const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, s = t.data(), a = s.map((l) => l[n]).filter((l) => l), r = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = a.length > 0, c = o ? Os(a) : [1, 1];
7060
+ const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, s = t.data(), a = s.map((l) => l[n]).filter((l) => l), r = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = a.length > 0, c = o ? Ls(a) : [1, 1];
7054
7061
  return Re().domain(c).range(o ? e.bubble.radiusRange(r, s) : [4, 4]);
7055
7062
  }
7056
7063
  styleCircles(t, e) {
@@ -7139,9 +7146,9 @@ class bm extends dt {
7139
7146
  animate: t
7140
7147
  })
7141
7148
  ).attr("d", (S) => {
7142
- let E, x, T, k;
7143
- return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = l - 2, k = c + 1) : (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = this.services.cartesianScales.getRangeValue(S.value), k = l), Gt(
7144
- { x0: E, x1: x, y0: T, y1: k },
7149
+ let E, x, T, C;
7150
+ return S.order === 1 ? (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = l - 2, C = c + 1) : (E = this.services.cartesianScales.getDomainValue(S.datum) - 16 / 2, x = E + 16, T = this.services.cartesianScales.getRangeValue(S.value), C = l), Gt(
7151
+ { x0: E, x1: x, y0: T, y1: C },
7145
7152
  this.services.cartesianScales.getOrientation()
7146
7153
  );
7147
7154
  }).attr("opacity", 1);
@@ -7208,9 +7215,9 @@ class bm extends dt {
7208
7215
  ).attr("d", ({ datum: S, value: y }) => {
7209
7216
  let E = 4;
7210
7217
  S.ranges && S.ranges.indexOf(y) !== -1 && (E = 8);
7211
- const x = this.services.cartesianScales.getDomainValue(S) - E / 2, T = x + E, k = this.services.cartesianScales.getRangeValue(y);
7218
+ const x = this.services.cartesianScales.getDomainValue(S) - E / 2, T = x + E, C = this.services.cartesianScales.getRangeValue(y);
7212
7219
  return Gt(
7213
- { x0: x, x1: T, y0: k, y1: k },
7220
+ { x0: x, x1: T, y0: C, y1: C },
7214
7221
  this.services.cartesianScales.getOrientation()
7215
7222
  );
7216
7223
  }).attr("opacity", 1);
@@ -7486,14 +7493,14 @@ class Om extends Ko {
7486
7493
  });
7487
7494
  if (g.size() > 0) {
7488
7495
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !uo(this.elementsToHighlight, g) && this.hideRuler(), g.dispatch("mouseover"), this.elementsToHighlight = g;
7489
- const v = D(g.nodes()[0]).datum(), S = parseFloat(xt(v, "data.x0")), y = parseFloat(xt(v, "data.x1")), E = this.model.getActiveDataGroupNames(), x = E.reverse().map((k) => ({
7490
- label: k,
7491
- value: xt(v, `data.${k}`),
7496
+ const v = D(g.nodes()[0]).datum(), S = parseFloat(xt(v, "data.x0")), y = parseFloat(xt(v, "data.x1")), E = this.model.getActiveDataGroupNames(), x = E.reverse().map((C) => ({
7497
+ label: C,
7498
+ value: xt(v, `data.${C}`),
7492
7499
  class: this.model.getColorClassName({
7493
7500
  classNameTypes: [nt.TOOLTIP],
7494
- dataGroupName: k
7501
+ dataGroupName: C
7495
7502
  })
7496
- })).filter((k) => k.value !== 0);
7503
+ })).filter((C) => C.value !== 0);
7497
7504
  if (x.length > 0) {
7498
7505
  this.services.events.dispatchEvent(b.Tooltip.SHOW, {
7499
7506
  event: t,
@@ -7509,15 +7516,15 @@ class Om extends Ko {
7509
7516
  {
7510
7517
  label: xt(a, "locale.translations.total") || xt(a, "tooltip.totalLabel") || "Total",
7511
7518
  value: E.reduce(
7512
- (_, G) => _ + parseFloat(xt(v, `data.${G}`)),
7519
+ (_, V) => _ + parseFloat(xt(v, `data.${V}`)),
7513
7520
  0
7514
7521
  )
7515
7522
  }
7516
7523
  ] : []
7517
7524
  ]
7518
7525
  }), p.attr("opacity", 1);
7519
- const k = d((S + y) / 2);
7520
- o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", k).attr("y2", k) : f.attr("y1", h).attr("y2", l).attr("x1", k).attr("x2", k);
7526
+ const C = d((S + y) / 2);
7527
+ o === "horizontal" ? f.attr("x1", h).attr("x2", l).attr("y1", C).attr("y2", C) : f.attr("y1", h).attr("y2", l).attr("x1", C).attr("x2", C);
7521
7528
  } else
7522
7529
  this.hideRuler();
7523
7530
  } else
@@ -7530,13 +7537,13 @@ class Lm extends Ko {
7530
7537
  }
7531
7538
  }
7532
7539
  const Am = (i, t) => {
7533
- const e = i.x, n = i.y, s = t.x, a = t.y, r = As();
7540
+ const e = i.x, n = i.y, s = t.x, a = t.y, r = Ms();
7534
7541
  return r.moveTo(e, n), r.lineTo(s, a), r.toString();
7535
7542
  }, Mm = (i, t, e = 0.5) => {
7536
- const n = i.x, s = i.y, a = t.x, r = t.y, o = As();
7543
+ const n = i.x, s = i.y, a = t.x, r = t.y, o = Ms();
7537
7544
  return o.moveTo(n, s), o.lineTo(n + (a - n) * e, s), o.lineTo(n + (a - n) * e, r), o.lineTo(a, r), o.toString();
7538
7545
  }, wm = (i, t, e, n, s, a) => {
7539
- const r = i.x, o = i.y, c = t.x, l = t.y, h = As();
7546
+ const r = i.x, o = i.y, c = t.x, l = t.y, h = Ms();
7540
7547
  return h.moveTo(r, o), h.bezierCurveTo(e, n, s, a, c, l), h.toString();
7541
7548
  }, Cm = {
7542
7549
  d: "M7 0v8L0 4z",
@@ -7620,23 +7627,23 @@ class Nm extends Nd {
7620
7627
  else
7621
7628
  for (let R = 1; R < S + 1; R++)
7622
7629
  v.push(
7623
- r === Vs.LINEAR ? `stop-color-${g}-${o}-${R}` : `fill-${g}-${o}-${R}`
7630
+ r === Gs.LINEAR ? `stop-color-${g}-${o}-${R}` : `fill-${g}-${o}-${R}`
7624
7631
  );
7625
- const y = Yr(d[0], d[1]), E = zc(y, 3), x = Re().domain(d).range([0, p]), T = Fi(x).tickSize(0).tickValues(E), { code: k, number: _ } = O(e, "locale");
7626
- T.tickFormat((R) => _(R, k));
7627
- let G;
7632
+ const y = Yr(d[0], d[1]), E = zc(y, 3), x = Re().domain(d).range([0, p]), T = Fi(x).tickSize(0).tickValues(E), { code: C, number: _ } = O(e, "locale");
7633
+ T.tickFormat((R) => _(R, C));
7634
+ let V;
7628
7635
  switch (r) {
7629
- case Vs.LINEAR:
7636
+ case Gs.LINEAR:
7630
7637
  this.drawLinear(v, f, p);
7631
7638
  break;
7632
- case Vs.QUANTIZE:
7633
- G = this.drawQuantize(
7639
+ case Gs.QUANTIZE:
7640
+ V = this.drawQuantize(
7634
7641
  v,
7635
7642
  g,
7636
7643
  h,
7637
7644
  f,
7638
7645
  p
7639
- ), x.range([G, p]);
7646
+ ), x.range([V, p]);
7640
7647
  break;
7641
7648
  default:
7642
7649
  throw Error("Entered color legend type is not supported.");
@@ -7657,7 +7664,7 @@ class Nm extends Nd {
7657
7664
  */
7658
7665
  drawQuantize(t, e, n, s, a) {
7659
7666
  !n && e === "diverge" && t.splice(t.length / 2, 1);
7660
- const r = zi().domain(t).range([0, a]);
7667
+ const r = hs().domain(t).range([0, a]);
7661
7668
  return I.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(r.domain()).join("rect").attr("x", (c) => r(c)).attr("y", 0).attr("width", Math.max(0, r.bandwidth() - 1)).attr("height", Mt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? r.bandwidth() - 1 : 0;
7662
7669
  }
7663
7670
  destroy() {
@@ -7760,11 +7767,11 @@ class Pm extends Dd {
7760
7767
  */
7761
7768
  getStatusIconPathString(t) {
7762
7769
  switch (t) {
7763
- case Gs.SUCCESS:
7770
+ case Hs.SUCCESS:
7764
7771
  return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
7765
- case Gs.DANGER:
7772
+ case Hs.DANGER:
7766
7773
  return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
7767
- case Gs.WARNING:
7774
+ case Hs.WARNING:
7768
7775
  return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
7769
7776
  }
7770
7777
  }
@@ -8029,7 +8036,7 @@ class gp extends dt {
8029
8036
  })
8030
8037
  ).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (M) => [
8031
8038
  M[r],
8032
- Ps(M.data[r], o, r) + "%",
8039
+ $s(M.data[r], o, r) + "%",
8033
8040
  M.data[a]
8034
8041
  ].filter(Boolean).join(", ")).attrTween("d", function(M) {
8035
8042
  return fp.bind(this)(M, e.arc);
@@ -8041,31 +8048,31 @@ class gp extends dt {
8041
8048
  const x = E.enter().append("text").classed("pie-label", !0), T = [];
8042
8049
  x.merge(E).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
8043
8050
  ...M,
8044
- percentageValue: Ps(
8051
+ percentageValue: $s(
8045
8052
  M.data[r],
8046
8053
  o,
8047
8054
  r,
8048
8055
  !0
8049
8056
  )
8050
8057
  }) : g(
8051
- Ps(M.data[r], o, r),
8058
+ $s(M.data[r], o, r),
8052
8059
  m
8053
8060
  ) + "%").datum(function(M) {
8054
- const L = c + 7, P = (M.endAngle - M.startAngle) / 2 + M.startAngle, $ = P / Math.PI * 180, C = this.getComputedTextLength();
8055
- 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;
8061
+ const L = c + 7, P = (M.endAngle - M.startAngle) / 2 + M.startAngle, $ = P / Math.PI * 180, k = this.getComputedTextLength();
8062
+ return M.textOffsetX = k / 2, M.textOffsetY = $ > 90 && $ < 270 ? 10 : 0, M.xPosition = (M.textOffsetX + L) * Math.sin(P), M.yPosition = (M.textOffsetY + L) * -Math.cos(P), M;
8056
8063
  }).attr("transform", function(M, L) {
8057
8064
  const P = S.length, $ = (M.endAngle - M.startAngle) * (180 / Math.PI);
8058
8065
  if (L >= P - 2 && $ < Et.callout.minSliceDegree) {
8059
- let C, V;
8060
- return M.index === P - 1 ? (C = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.RIGHT, T.push(M)) : (C = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, V = M.yPosition - Et.callout.offsetY, M.direction = Hs.LEFT, T.push(M)), `translate(${C}, ${V})`;
8066
+ let k, G;
8067
+ return M.index === P - 1 ? (k = M.xPosition + Et.callout.offsetX + Et.callout.textMargin + M.textOffsetX, G = M.yPosition - Et.callout.offsetY, M.direction = Bs.RIGHT, T.push(M)) : (k = M.xPosition - Et.callout.offsetX - M.textOffsetX - Et.callout.textMargin, G = M.yPosition - Et.callout.offsetY, M.direction = Bs.LEFT, T.push(M)), `translate(${k}, ${G})`;
8061
8068
  }
8062
8069
  return `translate(${M.xPosition}, ${M.yPosition})`;
8063
8070
  }), this.renderCallouts(T);
8064
- const k = O(s, "donut") ? "donut" : "pie", _ = O(s, k, "alignment"), { width: G } = I.getSVGElementSize(this.getParent(), {
8071
+ const C = O(s, "donut") ? "donut" : "pie", _ = O(s, C, "alignment"), { width: V } = I.getSVGElementSize(this.getParent(), {
8065
8072
  useAttrs: !0
8066
8073
  }), R = v ? Et.xOffset : 0, A = v ? Et.yOffset : 0;
8067
8074
  let H = c + R;
8068
- _ === te.CENTER ? H = G / 2 : _ === te.RIGHT && (H = G - c - Et.xOffset);
8075
+ _ === te.CENTER ? H = V / 2 : _ === te.RIGHT && (H = V - c - Et.xOffset);
8069
8076
  let N = c + A;
8070
8077
  T.length > 0 && (N += Et.yOffsetCallout), n.attr("x", H + 7).attr("y", N), this.addEventListeners();
8071
8078
  }
@@ -8075,7 +8082,7 @@ class gp extends dt {
8075
8082
  const s = n.enter().append("g").classed("callout", !0).attr("role", lt.GROUP).attr("aria-roledescription", "label callout");
8076
8083
  s.merge(n).datum(function(o) {
8077
8084
  const { xPosition: c, yPosition: l, direction: h } = o;
8078
- return h === Hs.RIGHT ? (o.startPos = {
8085
+ return h === Bs.RIGHT ? (o.startPos = {
8079
8086
  x: c,
8080
8087
  y: l + o.textOffsetY
8081
8088
  }, o.endPos = {
@@ -8282,17 +8289,17 @@ class Gm extends dt {
8282
8289
  "transform",
8283
8290
  `translate(0, ${d})`
8284
8291
  ), p = o(r), f = I.appendOrSelect(u, "g.gauge-value-number"), { code: m, number: g } = O(e, "locale"), v = O(e, "gauge", "numberFormatter"), S = f.selectAll("text.gauge-value-number").data([s]);
8285
- S.enter().append("text").attr("class", "gauge-value-number").merge(S).style("font-size", `${p}px`).attr("text-anchor", "middle").text((G) => {
8292
+ S.enter().append("text").attr("class", "gauge-value-number").merge(S).style("font-size", `${p}px`).attr("text-anchor", "middle").text((V) => {
8286
8293
  let R;
8287
- return G != null ? R = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : R = 0, v ? v(R) : g(Number(R), m);
8294
+ return V != null ? R = Number(V.toFixed(2)) % 1 !== 0 ? V.toFixed(2) : V.toFixed() : R = 0, v ? v(R) : g(Number(R), m);
8288
8295
  });
8289
8296
  const { width: y } = I.getSVGElementSize(
8290
8297
  I.appendOrSelect(t, "text.gauge-value-number"),
8291
8298
  { useBBox: !0 }
8292
- ), E = p / 2, x = h ? "%" : "", T = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", y / 2).text(x), { width: k, height: _ } = I.getSVGElementSize(T, {
8299
+ ), E = p / 2, x = h ? "%" : "", T = I.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", y / 2).text(x), { width: C, height: _ } = I.getSVGElementSize(T, {
8293
8300
  useBBox: !0
8294
8301
  });
8295
- T.attr("y", `-${_ / 2}px`), f.attr("transform", `translate(-${k / 2}, 0)`);
8302
+ T.attr("y", `-${_ / 2}px`), f.attr("transform", `translate(-${C / 2}, 0)`);
8296
8303
  }
8297
8304
  /**
8298
8305
  * adds the delta number for the gauge
@@ -8406,7 +8413,7 @@ class Hm extends ea {
8406
8413
  animate: t
8407
8414
  })
8408
8415
  ).attr("transform", (u) => {
8409
- const f = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth() / 2;
8416
+ const f = this.services.cartesianScales.getDomainValue(u) - this.getGroupWidth(u) / 2;
8410
8417
  return this.services.cartesianScales.getOrientation() === Xt.VERTICAL ? `translate(${f}, 0)` : `translate(0, ${f})`;
8411
8418
  });
8412
8419
  const h = l.selectAll("path.bar").data(
@@ -8430,10 +8437,10 @@ class Hm extends ea {
8430
8437
  const p = this.services.cartesianScales.getDomainIdentifier(u);
8431
8438
  return this.model.getFillColor(u[s], u[p], u);
8432
8439
  }).attr("d", (u) => {
8433
- const p = this.groupScale(u[s]), f = this.getBarWidth(), m = p, g = p + f, v = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), S = this.services.cartesianScales.getDomainLowerBound(v), y = this.services.cartesianScales.getValueThroughAxisPosition(v, S), E = this.services.cartesianScales.getRangeValue(u), x = this.services.cartesianScales.getDomainValue(u) - f / 2, T = x + f;
8434
- if (!this.isOutsideZoomedDomain(x, T))
8440
+ const p = this.services.cartesianScales.getDomainIdentifier(u), f = u[p] && typeof u[p].toString == "function" ? u[p].toString() : u[p], g = this.getGroupScaleForLabel(f)(u[s]), v = this.getBarWidth(), S = g, y = g + v, E = this.services.cartesianScales.getRangeAxisPosition({ datum: u }), x = this.services.cartesianScales.getDomainLowerBound(E), T = this.services.cartesianScales.getValueThroughAxisPosition(E, x), C = this.services.cartesianScales.getRangeValue(u), _ = this.services.cartesianScales.getDomainValue(u) - v / 2, V = _ + v;
8441
+ if (!this.isOutsideZoomedDomain(_, V))
8435
8442
  return Gt(
8436
- { x0: m, x1: g, y0: y, y1: E },
8443
+ { x0: S, x1: y, y0: T, y1: C },
8437
8444
  this.services.cartesianScales.getOrientation()
8438
8445
  );
8439
8446
  }).attr("opacity", 1).attr("role", lt.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (u) => u.value), this.addEventListeners();
@@ -8488,9 +8495,14 @@ class Hm extends ea {
8488
8495
  return n[s].toString() === t;
8489
8496
  });
8490
8497
  }
8491
- getGroupWidth() {
8492
- const t = this.model.getGroupedData(this.configs.groups), e = this.getTotalGroupPadding();
8493
- return this.getBarWidth() * t.length + e;
8498
+ getGroupWidth(t) {
8499
+ const e = this.getOptions();
8500
+ if (!(O(e, "bars", "preserveSpaceForMissingBars") !== !1) && t) {
8501
+ const r = this.getDataCorrespondingToLabel(t), o = this.getTotalGroupPadding(r.length);
8502
+ return this.getBarWidth() * r.length + o;
8503
+ }
8504
+ const s = this.model.getGroupedData(this.configs.groups), a = this.getTotalGroupPadding();
8505
+ return this.getBarWidth() * s.length + a;
8494
8506
  }
8495
8507
  getDomainScaleStep() {
8496
8508
  const t = this.services.cartesianScales.getDomainScale(), e = this.model.getGroupedData(this.configs.groups);
@@ -8508,9 +8520,9 @@ class Hm extends ea {
8508
8520
  }
8509
8521
  return n;
8510
8522
  }
8511
- getTotalGroupPadding() {
8512
- const t = this.model.getGroupedData(this.configs.groups);
8513
- return t.length === 1 ? 0 : Math.min(5, 5 * (this.getDomainScaleStep() / this.defaultStepFactor)) * (t.length - 1);
8523
+ getTotalGroupPadding(t) {
8524
+ const e = this.model.getGroupedData(this.configs.groups), n = t !== void 0 ? t : e.length;
8525
+ return n === 1 ? 0 : Math.min(5, 5 * (this.getDomainScaleStep() / this.defaultStepFactor)) * (n - 1);
8514
8526
  }
8515
8527
  // Gets the correct width for bars based on options & configurations
8516
8528
  getBarWidth() {
@@ -8525,7 +8537,15 @@ class Hm extends ea {
8525
8537
  }
8526
8538
  setGroupScale() {
8527
8539
  const t = this.model.getActiveDataGroupNames(this.configs.groups);
8528
- this.groupScale = zi().domain(t).rangeRound([0, this.getGroupWidth()]);
8540
+ this.groupScale = hs().domain(t).rangeRound([0, this.getGroupWidth()]);
8541
+ }
8542
+ getGroupScaleForLabel(t) {
8543
+ const e = this.getOptions();
8544
+ if (!(O(e, "bars", "preserveSpaceForMissingBars") !== !1)) {
8545
+ const s = this.getDataCorrespondingToLabel(t), { groupMapsTo: a } = e.data, r = s.map((o) => o[a]);
8546
+ return hs().domain(r).rangeRound([0, this.getGroupWidth(t)]);
8547
+ }
8548
+ return this.groupScale;
8529
8549
  }
8530
8550
  }
8531
8551
  class Bm extends dt {
@@ -8554,7 +8574,7 @@ class Bm extends dt {
8554
8574
  }
8555
8575
  d += m, u = m < u ? m : u, p = m > p ? m : p;
8556
8576
  }
8557
- })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${pi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${pi(c.range())},${l(n)})`), this.services.events.dispatchEvent(b.Tooltip.SHOW, {
8577
+ })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${fi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${fi(c.range())},${l(n)})`), this.services.events.dispatchEvent(b.Tooltip.SHOW, {
8558
8578
  event: e.event,
8559
8579
  hoveredElement: D(t.detail.element),
8560
8580
  items: [
@@ -8636,7 +8656,7 @@ class Bm extends dt {
8636
8656
  }
8637
8657
  determineDividerStatus() {
8638
8658
  const t = O(this.getOptions(), "heatmap", "divider", "state");
8639
- return t !== Bs.OFF && (t === Bs.AUTO && Sa.minCellDividerDimension <= this.xBandwidth && Sa.minCellDividerDimension <= this.yBandwidth || t === Bs.ON);
8659
+ return t !== zs.OFF && (t === zs.AUTO && Sa.minCellDividerDimension <= this.xBandwidth && Sa.minCellDividerDimension <= this.yBandwidth || t === zs.ON);
8640
8660
  }
8641
8661
  addEventListener() {
8642
8662
  const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), s = xt(n, "locale.translations.total") || xt(n, "tooltip.totalLabel") || "Total", a = e.getDomainIdentifier(), r = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
@@ -9041,10 +9061,10 @@ class Wm extends dt {
9041
9061
  const S = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), x = (Math.min(n, s) - S) / 2;
9042
9062
  if (x <= 0)
9043
9063
  return;
9044
- const T = zi().domain(this.fullDataNormalized.map((z) => z[h])).range([0, 2 * Math.PI].map((z) => z - Math.PI / 2)), k = pi(this.fullDataNormalized.map((z) => z[d])), _ = Re().domain([
9045
- k >= 0 ? 0 : k,
9064
+ const T = hs().domain(this.fullDataNormalized.map((z) => z[h])).range([0, 2 * Math.PI].map((z) => z - Math.PI / 2)), C = fi(this.fullDataNormalized.map((z) => z[d])), _ = Re().domain([
9065
+ C >= 0 ? 0 : C,
9046
9066
  Ta(this.fullDataNormalized.map((z) => z[d]))
9047
- ]).range([m, x]).nice(f), G = _.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = ad().angle((z) => T(z[h]) + Math.PI / 2).radius((z) => _(z[d])).curve(wl), H = this.uniqueKeys.map((z) => {
9067
+ ]).range([m, x]).nice(f), V = _.ticks(f), R = (z, B, U) => this.model.getFillColor(z, B, U), A = ad().angle((z) => T(z[h]) + Math.PI / 2).radius((z) => _(z[d])).curve(wl), H = this.uniqueKeys.map((z) => {
9048
9068
  const B = this.getLabelDimensions(z).width, U = Cl(
9049
9069
  T(z),
9050
9070
  x
@@ -9053,7 +9073,7 @@ class Wm extends dt {
9053
9073
  }), M = {
9054
9074
  x: Ta(H) + u,
9055
9075
  y: s / 2
9056
- }, P = I.appendOrSelect(e, "g.y-axes").attr("role", lt.GROUP).selectAll("path").data(G, (z) => z), $ = (z) => this.uniqueKeys.map((B) => ({ [h]: B, [d]: z }));
9076
+ }, P = I.appendOrSelect(e, "g.y-axes").attr("role", lt.GROUP).selectAll("path").data(V, (z) => z), $ = (z) => this.uniqueKeys.map((B) => ({ [h]: B, [d]: z }));
9057
9077
  P.join(
9058
9078
  (z) => z.append("path").attr("opacity", 0).attr("transform", `translate(${M.x}, ${M.y})`).attr("fill", "none").call(
9059
9079
  (B) => B.transition().call(
@@ -9223,7 +9243,7 @@ class Wm extends dt {
9223
9243
  (z) => z.remove()
9224
9244
  ).attr("x", M.x).attr("y", M.y - g / 2).attr("width", _.range()[1]).attr("height", g).style("fill", "red").style("fill-opacity", 0).attr("transform", (z) => `rotate(${kl(T(z))}, ${M.x}, ${M.y})`);
9225
9245
  const { code: ot, number: ct } = O(o, "locale");
9226
- I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Os(G)).join(
9246
+ I.appendOrSelect(e, "g.y-labels").attr("role", lt.GROUP).selectAll("text").data(Ls(V)).join(
9227
9247
  (z) => z.append("text").attr("opacity", 0).text((B) => ct(B, ot)).attr(
9228
9248
  "x",
9229
9249
  (B) => bt(-Math.PI / 2, _(B), M).x + p
@@ -9731,49 +9751,49 @@ class Km extends dt {
9731
9751
  name: o,
9732
9752
  children: r
9733
9753
  }), p = 10, f = n / 6, m = (T) => {
9734
- const k = u.descendants().reverse(), _ = u.links();
9735
- let G = u, R = u;
9736
- u.eachBefore((C) => {
9737
- C.x < G.x && (G = C), C.x > R.x && (R = C);
9738
- });
9739
- const A = R.x - G.x, H = e.transition().call(
9740
- (C) => this.services.transitions.setupTransition({
9741
- transition: C,
9754
+ const C = u.descendants().reverse(), _ = u.links();
9755
+ let V = u, R = u;
9756
+ u.eachBefore((k) => {
9757
+ k.x < V.x && (V = k), k.x > R.x && (R = k);
9758
+ });
9759
+ const A = R.x - V.x, H = e.transition().call(
9760
+ (k) => this.services.transitions.setupTransition({
9761
+ transition: k,
9742
9762
  name: "tree-update-viewbox",
9743
9763
  animate: !0
9744
9764
  })
9745
- ).attr("viewBox", [-d.left, G.x, n, A].join(" ")), N = x.selectAll("g").data(k, (C) => C.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${T.y0},${T.x0})`).attr(
9765
+ ).attr("viewBox", [-d.left, V.x, n, A].join(" ")), N = x.selectAll("g").data(C, (k) => k.id), M = this, L = N.enter().append("g").attr("transform", () => `translate(${T.y0},${T.x0})`).attr(
9746
9766
  "class",
9747
- (C) => C.depth !== 0 && C.children && C.children.length > 0 ? "clickable" : null
9748
- ).on("mouseover", function(C, V) {
9767
+ (k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
9768
+ ).on("mouseover", function(k, G) {
9749
9769
  M.services.events.dispatchEvent(b.Tree.NODE_MOUSEOVER, {
9750
- event: C,
9770
+ event: k,
9751
9771
  element: D(this),
9752
- datum: V
9772
+ datum: G
9753
9773
  });
9754
- }).on("click", function(C, V) {
9755
- V.depth !== 0 && (V.children = V.children ? null : V._children, m(V)), M.services.events.dispatchEvent(b.Tree.NODE_CLICK, {
9756
- event: C,
9774
+ }).on("click", function(k, G) {
9775
+ G.depth !== 0 && (G.children = G.children ? null : G._children, m(G)), M.services.events.dispatchEvent(b.Tree.NODE_CLICK, {
9776
+ event: k,
9757
9777
  element: D(this),
9758
- datum: V
9778
+ datum: G
9759
9779
  });
9760
- }).on("mouseout", function(C, V) {
9780
+ }).on("mouseout", function(k, G) {
9761
9781
  M.services.events.dispatchEvent(b.Tree.NODE_MOUSEOUT, {
9762
- event: C,
9782
+ event: k,
9763
9783
  element: D(this),
9764
- datum: V
9784
+ datum: G
9765
9785
  });
9766
9786
  });
9767
- 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 ? -Ze : Ze).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(${T.y},${T.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
9768
- const P = E.selectAll("path").data(_, (C) => C.target.id), $ = P.enter().append("path").attr("d", () => {
9769
- const C = { x: T.x0, y: T.y0 };
9770
- return y({ source: C, target: C });
9787
+ L.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), L.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -Ze : Ze).attr("text-anchor", (k) => k._children ? "end" : "start").text((k) => k.data.name).clone(!0).attr("class", "text-stroke").lower(), N.merge(L).transition(H).attr("transform", (k) => `translate(${k.y},${k.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), N.exit().transition(H).remove().attr("transform", () => `translate(${T.y},${T.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
9788
+ const P = E.selectAll("path").data(_, (k) => k.target.id), $ = P.enter().append("path").attr("d", () => {
9789
+ const k = { x: T.x0, y: T.y0 };
9790
+ return y({ source: k, target: k });
9771
9791
  });
9772
9792
  P.merge($).transition(H).attr("d", y), P.exit().transition(H).remove().attr("d", () => {
9773
- const C = { x: T.x, y: T.y };
9774
- return y({ source: C, target: C });
9775
- }), u.eachBefore((C) => {
9776
- C.x0 = C.x, C.y0 = C.y;
9793
+ const k = { x: T.x, y: T.y };
9794
+ return y({ source: k, target: k });
9795
+ }), u.eachBefore((k) => {
9796
+ k.x0 = k.x, k.y0 = k.y;
9777
9797
  });
9778
9798
  }, g = u.descendants(), v = g[g.length - 1].depth, S = O(a, "tree", "type") === Ol.DENDROGRAM ? eh().size([
9779
9799
  s,
@@ -9782,8 +9802,8 @@ class Km extends dt {
9782
9802
  s,
9783
9803
  n - h - v * Ze - c
9784
9804
  ]), y = hd().x((T) => T.y).y((T) => T.x);
9785
- u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((T, k) => {
9786
- T.id = k, T._children = T.children;
9805
+ u.x0 = f / 2, u.y0 = 0, u.descendants().forEach((T, C) => {
9806
+ T.id = C, T._children = T.children;
9787
9807
  }), S(u), e.attr("viewBox", [-d.left, -0, n, p]).style("user-select", "none");
9788
9808
  const E = e.append("g").attr("class", "links"), x = e.append("g").attr("class", "nodes");
9789
9809
  m(u);
@@ -10231,37 +10251,37 @@ const jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10231
10251
  __proto__: null,
10232
10252
  dispatch: Qo
10233
10253
  }, Symbol.toStringTag, { value: "Module" })), Kg = /* @__PURE__ */ Xg(jg);
10234
- var ui, Hr;
10254
+ var hi, Hr;
10235
10255
  function Jg() {
10236
- if (Hr) return ui;
10256
+ if (Hr) return hi;
10237
10257
  Hr = 1;
10238
10258
  const i = Kg.dispatch, t = Math.PI / 180, e = {
10239
10259
  archimedean: m,
10240
10260
  rectangular: g
10241
10261
  }, n = 64, s = 2048;
10242
- ui = function() {
10243
- var E = [256, 256], x = a, T = r, k = c, _ = o, G = o, R = l, A = h, H = m, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, C = {}, V = S;
10244
- C.canvas = function(F) {
10245
- return arguments.length ? (V = y(F), C) : V;
10246
- }, C.start = function() {
10247
- var F = q(V()), Z = v((E[0] >> 5) * E[1]), rt = null, j = N.length, Y = -1, K = [], ot = N.map(function(st, it) {
10248
- return st.text = x.call(this, st, it), st.font = T.call(this, st, it), st.style = _.call(this, st, it), st.weight = G.call(this, st, it), st.rotate = R.call(this, st, it), st.size = ~~k.call(this, st, it), st.padding = A.call(this, st, it), st;
10262
+ hi = function() {
10263
+ var E = [256, 256], x = a, T = r, C = c, _ = o, V = o, R = l, A = h, H = m, N = [], M = 1 / 0, L = i("word", "end"), P = null, $ = Math.random, k = {}, G = S;
10264
+ k.canvas = function(F) {
10265
+ return arguments.length ? (G = y(F), k) : G;
10266
+ }, k.start = function() {
10267
+ var F = q(G()), Z = v((E[0] >> 5) * E[1]), rt = null, j = N.length, Y = -1, K = [], ot = N.map(function(st, it) {
10268
+ return st.text = x.call(this, st, it), st.font = T.call(this, st, it), st.style = _.call(this, st, it), st.weight = V.call(this, st, it), st.rotate = R.call(this, st, it), st.size = ~~C.call(this, st, it), st.padding = A.call(this, st, it), st;
10249
10269
  }).sort(function(st, it) {
10250
10270
  return it.size - st.size;
10251
10271
  });
10252
- return P && clearInterval(P), P = setInterval(ct, 0), ct(), C;
10272
+ return P && clearInterval(P), P = setInterval(ct, 0), ct(), k;
10253
10273
  function ct() {
10254
10274
  for (var st = Date.now(); Date.now() - st < M && ++Y < j && P; ) {
10255
10275
  var it = ot[Y];
10256
- 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);
10276
+ 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", k, 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);
10257
10277
  }
10258
- Y >= j && (C.stop(), L.call("end", C, K, rt));
10278
+ Y >= j && (k.stop(), L.call("end", k, K, rt));
10259
10279
  }
10260
- }, C.stop = function() {
10280
+ }, k.stop = function() {
10261
10281
  P && (clearInterval(P), P = null);
10262
10282
  for (const F of N)
10263
10283
  delete F.sprite;
10264
- return C;
10284
+ return k;
10265
10285
  };
10266
10286
  function q(F) {
10267
10287
  const Z = F.getContext("2d", { willReadFrequently: !0 });
@@ -10283,34 +10303,34 @@ function Jg() {
10283
10303
  }
10284
10304
  return !1;
10285
10305
  }
10286
- return C.timeInterval = function(F) {
10287
- return arguments.length ? (M = F ?? 1 / 0, C) : M;
10288
- }, C.words = function(F) {
10289
- return arguments.length ? (N = F, C) : N;
10290
- }, C.size = function(F) {
10291
- return arguments.length ? (E = [+F[0], +F[1]], C) : E;
10292
- }, C.font = function(F) {
10293
- return arguments.length ? (T = y(F), C) : T;
10294
- }, C.fontStyle = function(F) {
10295
- return arguments.length ? (_ = y(F), C) : _;
10296
- }, C.fontWeight = function(F) {
10297
- return arguments.length ? (G = y(F), C) : G;
10298
- }, C.rotate = function(F) {
10299
- return arguments.length ? (R = y(F), C) : R;
10300
- }, C.text = function(F) {
10301
- return arguments.length ? (x = y(F), C) : x;
10302
- }, C.spiral = function(F) {
10303
- return arguments.length ? (H = e[F] || F, C) : H;
10304
- }, C.fontSize = function(F) {
10305
- return arguments.length ? (k = y(F), C) : k;
10306
- }, C.padding = function(F) {
10307
- return arguments.length ? (A = y(F), C) : A;
10308
- }, C.random = function(F) {
10309
- return arguments.length ? ($ = F, C) : $;
10310
- }, C.on = function() {
10306
+ return k.timeInterval = function(F) {
10307
+ return arguments.length ? (M = F ?? 1 / 0, k) : M;
10308
+ }, k.words = function(F) {
10309
+ return arguments.length ? (N = F, k) : N;
10310
+ }, k.size = function(F) {
10311
+ return arguments.length ? (E = [+F[0], +F[1]], k) : E;
10312
+ }, k.font = function(F) {
10313
+ return arguments.length ? (T = y(F), k) : T;
10314
+ }, k.fontStyle = function(F) {
10315
+ return arguments.length ? (_ = y(F), k) : _;
10316
+ }, k.fontWeight = function(F) {
10317
+ return arguments.length ? (V = y(F), k) : V;
10318
+ }, k.rotate = function(F) {
10319
+ return arguments.length ? (R = y(F), k) : R;
10320
+ }, k.text = function(F) {
10321
+ return arguments.length ? (x = y(F), k) : x;
10322
+ }, k.spiral = function(F) {
10323
+ return arguments.length ? (H = e[F] || F, k) : H;
10324
+ }, k.fontSize = function(F) {
10325
+ return arguments.length ? (C = y(F), k) : C;
10326
+ }, k.padding = function(F) {
10327
+ return arguments.length ? (A = y(F), k) : A;
10328
+ }, k.random = function(F) {
10329
+ return arguments.length ? ($ = F, k) : $;
10330
+ }, k.on = function() {
10311
10331
  var F = L.on.apply(L, arguments);
10312
- return F === L ? C : F;
10313
- }, C;
10332
+ return F === L ? k : F;
10333
+ }, k;
10314
10334
  };
10315
10335
  function a(E) {
10316
10336
  return E.text;
@@ -10330,25 +10350,25 @@ function Jg() {
10330
10350
  function h() {
10331
10351
  return 1;
10332
10352
  }
10333
- function d(E, x, T, k) {
10353
+ function d(E, x, T, C) {
10334
10354
  if (!x.sprite) {
10335
- var _ = E.context, G = E.ratio;
10336
- _.clearRect(0, 0, (n << 5) / G, s / G);
10355
+ var _ = E.context, V = E.ratio;
10356
+ _.clearRect(0, 0, (n << 5) / V, s / V);
10337
10357
  var R = 0, A = 0, H = 0, N = T.length;
10338
- for (--k; ++k < N; ) {
10339
- x = T[k], _.save(), _.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / G) + "px " + x.font;
10358
+ for (--C; ++C < N; ) {
10359
+ x = T[C], _.save(), _.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / V) + "px " + x.font;
10340
10360
  const it = _.measureText(x.text), z = -Math.floor(it.width / 2);
10341
- let B = (it.width + 1) * G, U = x.size << 1;
10361
+ let B = (it.width + 1) * V, U = x.size << 1;
10342
10362
  if (x.rotate) {
10343
- var M = Math.sin(x.rotate * t), L = Math.cos(x.rotate * t), P = B * L, $ = B * M, C = U * L, V = U * M;
10344
- B = Math.max(Math.abs(P + V), Math.abs(P - V)) + 31 >> 5 << 5, U = ~~Math.max(Math.abs($ + C), Math.abs($ - C));
10363
+ var M = Math.sin(x.rotate * t), L = Math.cos(x.rotate * t), P = B * L, $ = B * M, k = U * L, G = U * M;
10364
+ B = Math.max(Math.abs(P + G), Math.abs(P - G)) + 31 >> 5 << 5, U = ~~Math.max(Math.abs($ + k), Math.abs($ - k));
10345
10365
  } else
10346
10366
  B = B + 31 >> 5 << 5;
10347
10367
  if (U > H && (H = U), R + B >= n << 5 && (R = 0, A += H, H = 0), A + U >= s) break;
10348
- _.translate((R + (B >> 1)) / G, (A + (U >> 1)) / G), x.rotate && _.rotate(x.rotate * t), _.fillText(x.text, z, 0), x.padding && (_.lineWidth = 2 * x.padding, _.strokeText(x.text, z, 0)), _.restore(), x.width = B, x.height = U, x.xoff = R, x.yoff = A, x.x1 = B >> 1, x.y1 = U >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += B;
10368
+ _.translate((R + (B >> 1)) / V, (A + (U >> 1)) / V), x.rotate && _.rotate(x.rotate * t), _.fillText(x.text, z, 0), x.padding && (_.lineWidth = 2 * x.padding, _.strokeText(x.text, z, 0)), _.restore(), x.width = B, x.height = U, x.xoff = R, x.yoff = A, x.x1 = B >> 1, x.y1 = U >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += B;
10349
10369
  }
10350
- for (var q = _.getImageData(0, 0, (n << 5) / G, s / G).data, X = []; --k >= 0; )
10351
- if (x = T[k], !!x.hasText) {
10370
+ for (var q = _.getImageData(0, 0, (n << 5) / V, s / V).data, X = []; --C >= 0; )
10371
+ if (x = T[C], !!x.hasText) {
10352
10372
  for (var F = x.width, Z = F >> 5, rt = x.y1 - x.y0, j = 0; j < rt * Z; j++) X[j] = 0;
10353
10373
  if (R = x.xoff, R == null) return;
10354
10374
  A = x.yoff;
@@ -10365,17 +10385,17 @@ function Jg() {
10365
10385
  }
10366
10386
  function u(E, x, T) {
10367
10387
  T >>= 5;
10368
- for (var k = E.sprite, _ = E.width >> 5, G = E.x - (_ << 4), R = G & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * T + (G >> 5), M, L = 0; L < H; L++) {
10388
+ for (var C = E.sprite, _ = E.width >> 5, V = E.x - (_ << 4), R = V & 127, A = 32 - R, H = E.y1 - E.y0, N = (E.y + E.y0) * T + (V >> 5), M, L = 0; L < H; L++) {
10369
10389
  M = 0;
10370
10390
  for (var P = 0; P <= _; P++)
10371
- if ((M << A | (P < _ ? (M = k[L * _ + P]) >>> R : 0)) & x[N + P]) return !0;
10391
+ if ((M << A | (P < _ ? (M = C[L * _ + P]) >>> R : 0)) & x[N + P]) return !0;
10372
10392
  N += T;
10373
10393
  }
10374
10394
  return !1;
10375
10395
  }
10376
10396
  function p(E, x) {
10377
- var T = E[0], k = E[1];
10378
- x.x + x.x0 < T.x && (T.x = x.x + x.x0), x.y + x.y0 < T.y && (T.y = x.y + x.y0), x.x + x.x1 > k.x && (k.x = x.x + x.x1), x.y + x.y1 > k.y && (k.y = x.y + x.y1);
10397
+ var T = E[0], C = E[1];
10398
+ x.x + x.x0 < T.x && (T.x = x.x + x.x0), x.y + x.y0 < T.y && (T.y = x.y + x.y0), x.x + x.x1 > C.x && (C.x = x.x + x.x1), x.y + x.y1 > C.y && (C.y = x.y + x.y1);
10379
10399
  }
10380
10400
  function f(E, x) {
10381
10401
  return E.x + E.x1 > x[0].x && E.x + E.x0 < x[1].x && E.y + E.y1 > x[0].y && E.y + E.y0 < x[1].y;
@@ -10387,24 +10407,24 @@ function Jg() {
10387
10407
  };
10388
10408
  }
10389
10409
  function g(E) {
10390
- var x = 4, T = x * E[0] / E[1], k = 0, _ = 0;
10391
- return function(G) {
10392
- var R = G < 0 ? -1 : 1;
10393
- switch (Math.sqrt(1 + 4 * R * G) - R & 3) {
10410
+ var x = 4, T = x * E[0] / E[1], C = 0, _ = 0;
10411
+ return function(V) {
10412
+ var R = V < 0 ? -1 : 1;
10413
+ switch (Math.sqrt(1 + 4 * R * V) - R & 3) {
10394
10414
  case 0:
10395
- k += T;
10415
+ C += T;
10396
10416
  break;
10397
10417
  case 1:
10398
10418
  _ += x;
10399
10419
  break;
10400
10420
  case 2:
10401
- k -= T;
10421
+ C -= T;
10402
10422
  break;
10403
10423
  default:
10404
10424
  _ -= x;
10405
10425
  break;
10406
10426
  }
10407
- return [k, _];
10427
+ return [C, _];
10408
10428
  };
10409
10429
  }
10410
10430
  function v(E) {
@@ -10419,7 +10439,7 @@ function Jg() {
10419
10439
  return E;
10420
10440
  };
10421
10441
  }
10422
- return ui;
10442
+ return hi;
10423
10443
  }
10424
10444
  var Qg = Jg();
10425
10445
  const tm = /* @__PURE__ */ Wg(Qg);
@@ -10494,11 +10514,11 @@ class Qm extends dt {
10494
10514
  this.addEventListeners();
10495
10515
  }
10496
10516
  getFontSizeScale(t) {
10497
- const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, s = t.map((c) => c[n]).filter((c) => c), a = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = s.length > 0, o = r ? Os(s) : [1, 1];
10517
+ const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, s = t.map((c) => c[n]).filter((c) => c), a = I.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = s.length > 0, o = r ? Ls(s) : [1, 1];
10498
10518
  return Re().domain(o).range(r ? e.wordCloud.fontSizeRange(a, t) : [4, 4]);
10499
10519
  }
10500
10520
  addEventListeners() {
10501
- const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = fi((a) => {
10521
+ const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, s = gi((a) => {
10502
10522
  const r = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
10503
10523
  (o) => n.services.transitions.setupTransition({
10504
10524
  transition: o,
@@ -10662,7 +10682,7 @@ class tv extends em {
10662
10682
  event: n,
10663
10683
  element: a,
10664
10684
  datum: e[s.properties.NAME]
10665
- }), t.services.events.dispatchEvent(zs.SHOW, {
10685
+ }), t.services.events.dispatchEvent(Us.SHOW, {
10666
10686
  event: n,
10667
10687
  hoveredElement: a,
10668
10688
  items: [
@@ -10677,7 +10697,7 @@ class tv extends em {
10677
10697
  event: n,
10678
10698
  element: D(this),
10679
10699
  datum: e[s.properties.NAME]
10680
- }), t.services.events.dispatchEvent(zs.MOVE, {
10700
+ }), t.services.events.dispatchEvent(Us.MOVE, {
10681
10701
  event: n
10682
10702
  });
10683
10703
  }).on("click", function(n, s) {
@@ -10692,7 +10712,7 @@ class tv extends em {
10692
10712
  event: n,
10693
10713
  element: a,
10694
10714
  datum: e[s.properties.NAME]
10695
- }), t.services.events.dispatchEvent(zs.HIDE, {
10715
+ }), t.services.events.dispatchEvent(Us.HIDE, {
10696
10716
  event: n,
10697
10717
  hoveredElement: a
10698
10718
  });
@@ -10765,4 +10785,4 @@ export {
10765
10785
  jm as y,
10766
10786
  Gm as z
10767
10787
  };
10768
- //# sourceMappingURL=choropleth-BgycggQG.mjs.map
10788
+ //# sourceMappingURL=choropleth-Bu2YPax2.mjs.map