@carbon/charts 1.14.5 → 1.14.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
- import { L as Ys, h as Ba, o as qs, a4 as Ha, p as Ks, B as $a, a5 as Ua, a6 as za, a7 as Fa, m as v, n as we, x as dt, a0 as us, A as ne, s as de, a8 as Ot, K as Me, a2 as Wa, z as Js, t as ja, a9 as He, c as gn, b as mn, P as Re, aa as bt, ab as Ve, Q as Be, X as Ge, ac as Xa, J as ot, i as Za, Z as te, S as Ae, ad as ye, ae as Ya, a as qa, Y as pe, U as ft, C as Mt, af as Qt, v as Ka, ag as ps, _ as Fe } from "./color-scale-utils-XZIkoI99.mjs";
2
- import { select as x, pointer as Ft, brushX as Qs, scaleTime as Ja, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ea, axisTop as Qa, axisRight as ei, scaleLinear as Ze, arc as xt, easeLinear as ti, path as Gn, interpolateNumber as ta, quantize as ni, scaleBand as Bn, hierarchy as Hn, pack as si, pie as ai, interpolate as ii, interpolateRound as ri, min as fn, max as gs, lineRadial as oi, curveLinearClosed as li, cluster as ci, tree as di, linkHorizontal as hi, treemap as ui, hsl as na, color as sa, geoPath as pi, geoNaturalEarth1 as gi, geoMercator as mi, geoEquirectangular as fi, geoConicEquidistant as vi, geoConicEqualArea as yi, geoAlbers as Ei, geoEqualEarth as bi } from "d3";
3
- import { t as en, D as S, c as vn, G as ms, a as Si, p as oe, r as fs, b as Oi } from "./angle-utils-0zbAbkd9.mjs";
4
- import { y as W, _ as f, K as ie, r as $e, q as tt, L as xi, A as Ce, m as F, s as We, V as lt, S as ue, e as G, Z as nt, i as xe, f as vs, J as tn, d as Ti, F as wt, n as nn, H as sn, C as an, p as Ct, b as ys, D as rn, Q as Li, x as je, $ as _t, N as on } from "./enums-lWSDG4ik.mjs";
1
+ import { L as Ys, h as Ba, o as qs, a4 as Ha, p as Ks, B as $a, a5 as Ua, a6 as Fa, a7 as za, m as v, n as we, x as dt, a0 as us, A as ne, s as de, a8 as Ot, K as Me, a2 as Wa, z as Js, t as ja, a9 as He, c as gn, b as mn, P as ke, aa as bt, ab as Ve, Q as Be, X as Ge, ac as Xa, J as ot, i as Za, Z as te, S as Ae, ad as ye, ae as Ya, a as qa, Y as pe, U as ft, C as Mt, af as Qt, v as Ka, ag as ps, _ as ze } from "./color-scale-utils-JIM28DuF.mjs";
2
+ import { select as x, pointer as zt, brushX as Qs, scaleTime as Ja, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ea, axisTop as Qa, axisRight as ei, scaleLinear as Ze, arc as xt, easeLinear as ti, path as Gn, interpolateNumber as ta, quantize as ni, scaleBand as Bn, hierarchy as Hn, pack as si, pie as ai, interpolate as ii, interpolateRound as ri, min as fn, max as gs, lineRadial as oi, curveLinearClosed as li, cluster as ci, tree as di, linkHorizontal as hi, treemap as ui, hsl as na, color as sa, geoPath as pi, geoNaturalEarth1 as gi, geoMercator as mi, geoEquirectangular as fi, geoConicEquidistant as vi, geoConicEqualArea as yi, geoAlbers as Ei, geoEqualEarth as bi } from "d3";
3
+ import { t as en, D as S, c as vn, G as ms, a as Si, p as oe, r as fs, b as Oi } from "./angle-utils-OmWRg48c.mjs";
4
+ import { y as j, _ as f, K as ie, r as $e, q as tt, L as xi, A as Ce, m as z, s as We, V as lt, S as ue, e as G, Z as nt, i as xe, f as vs, J as tn, d as Ti, F as wt, n as nn, H as sn, C as an, p as Ct, b as ys, D as rn, Q as Li, x as je, $ as _t, N as on } from "./enums-lWSDG4ik.mjs";
5
5
  import { sankey as Ai, sankeyLinkHorizontal as Mi, sankeyJustify as wi, sankeyLeft as Ci, sankeyRight as _i } from "d3-sankey";
6
6
  import { R as X } from "./a11y-SOU26cr5.mjs";
7
- import { b as aa } from "./_baseEach-OI3ptUEq.mjs";
7
+ import { b as aa } from "./_baseEach-HYEdUZwo.mjs";
8
8
  import Ii from "d3-cloud";
9
- function Ri(o, e, t, n) {
9
+ function ki(o, e, t, n) {
10
10
  var s = -1, a = o == null ? 0 : o.length;
11
11
  for (n && a && (t = o[++s]); ++s < a; )
12
12
  t = e(t, o[s], s, o);
13
13
  return t;
14
14
  }
15
- function ki(o) {
15
+ function Ri(o) {
16
16
  return function(e) {
17
17
  return o == null ? void 0 : o[e];
18
18
  };
@@ -210,11 +210,11 @@ var Di = {
210
210
  œ: "oe",
211
211
  ʼn: "'n",
212
212
  ſ: "s"
213
- }, Ni = ki(Di);
213
+ }, Ni = Ri(Di);
214
214
  const Pi = Ni;
215
- var Vi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Gi = "\\u0300-\\u036f", Bi = "\\ufe20-\\ufe2f", Hi = "\\u20d0-\\u20ff", $i = Gi + Bi + Hi, Ui = "[" + $i + "]", zi = RegExp(Ui, "g");
216
- function Fi(o) {
217
- return o = Ys(o), o && o.replace(Vi, Pi).replace(zi, "");
215
+ var Vi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Gi = "\\u0300-\\u036f", Bi = "\\ufe20-\\ufe2f", Hi = "\\u20d0-\\u20ff", $i = Gi + Bi + Hi, Ui = "[" + $i + "]", Fi = RegExp(Ui, "g");
216
+ function zi(o) {
217
+ return o = Ys(o), o && o.replace(Vi, Pi).replace(Fi, "");
218
218
  }
219
219
  var Wi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
220
220
  function ji(o) {
@@ -243,7 +243,7 @@ function yr(o, e, t) {
243
243
  var Er = "['’]", br = RegExp(Er, "g");
244
244
  function Sr(o) {
245
245
  return function(e) {
246
- return Ri(yr(Fi(e).replace(br, "")), o, "");
246
+ return ki(yr(zi(e).replace(br, "")), o, "");
247
247
  };
248
248
  }
249
249
  function Or(o, e, t) {
@@ -280,12 +280,12 @@ function wr(o, e) {
280
280
  }), !!t;
281
281
  }
282
282
  function Cr(o, e, t) {
283
- var n = qs(o) ? za : wr;
284
- return t && Fa(o, e, t) && (e = void 0), n(o, Ks(e));
283
+ var n = qs(o) ? Fa : wr;
284
+ return t && za(o, e, t) && (e = void 0), n(o, Ks(e));
285
285
  }
286
286
  class q {
287
287
  constructor(e, t, n) {
288
- if (this.type = "", this.renderType = W.HTML, this.id = "", this.parent = void 0, this.configs = {}, this.model = e, this.services = t, n && (this.configs = n, this.configs.id)) {
288
+ if (this.type = "", this.renderType = j.HTML, this.id = "", this.parent = void 0, this.configs = {}, this.model = e, this.services = t, n && (this.configs = n, this.configs.id)) {
289
289
  const s = v(this.model.getOptions(), "style", "prefix");
290
290
  this.id = `${s}--${this.configs.id}`;
291
291
  }
@@ -328,7 +328,7 @@ class q {
328
328
  if (this.type) {
329
329
  const t = v(this.model.getOptions(), "style", "prefix"), n = this.id ? `#${this.id}` : "", s = S.appendOrSelect(
330
330
  this.parent,
331
- `${this.renderType === W.SVG ? "svg" : "div"}${n}.${we}--${t}--${this.type}`
331
+ `${this.renderType === j.SVG ? "svg" : "div"}${n}.${we}--${t}--${this.type}`
332
332
  );
333
333
  if (e.withinChartClip) {
334
334
  const a = this.model.get("chartClipId");
@@ -360,7 +360,7 @@ const {
360
360
  } = Object;
361
361
  let {
362
362
  freeze: Ee,
363
- seal: ke,
363
+ seal: Re,
364
364
  create: Sa
365
365
  } = Object, {
366
366
  apply: yn,
@@ -369,7 +369,7 @@ let {
369
369
  Ee || (Ee = function(e) {
370
370
  return e;
371
371
  });
372
- ke || (ke = function(e) {
372
+ Re || (Re = function(e) {
373
373
  return e;
374
374
  });
375
375
  yn || (yn = function(e, t, n) {
@@ -378,7 +378,7 @@ yn || (yn = function(e, t, n) {
378
378
  En || (En = function(e, t) {
379
379
  return new e(...t);
380
380
  });
381
- const It = _e(Array.prototype.forEach), Ts = _e(Array.prototype.pop), vt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), ln = _e(String.prototype.toString), Rr = _e(String.prototype.match), yt = _e(String.prototype.replace), kr = _e(String.prototype.indexOf), Dr = _e(String.prototype.trim), Oe = _e(RegExp.prototype.test), Et = Nr(TypeError);
381
+ const It = _e(Array.prototype.forEach), Ts = _e(Array.prototype.pop), vt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), ln = _e(String.prototype.toString), kr = _e(String.prototype.match), yt = _e(String.prototype.replace), Rr = _e(String.prototype.indexOf), Dr = _e(String.prototype.trim), Oe = _e(RegExp.prototype.test), Et = Nr(TypeError);
382
382
  function _e(o) {
383
383
  return function(e) {
384
384
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
@@ -418,7 +418,7 @@ function Xe(o) {
418
418
  $n(o, t) !== void 0 && (Array.isArray(n) ? e[t] = Pr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Xe(n) : e[t] = n);
419
419
  return e;
420
420
  }
421
- function Rt(o, e) {
421
+ function kt(o, e) {
422
422
  for (; o !== null; ) {
423
423
  const n = $n(o, e);
424
424
  if (n) {
@@ -434,22 +434,22 @@ function Rt(o, e) {
434
434
  }
435
435
  return t;
436
436
  }
437
- const Ls = Ee(["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"]), cn = Ee(["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"]), dn = Ee(["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"]), Vr = Ee(["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"]), hn = Ee(["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"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), As = Ee(["#text"]), Ms = Ee(["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", "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", "xmlns", "slot"]), un = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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"]), ws = Ee(["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"]), kt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = ke(/<%[\w\W]*|[\w\W]*%>/gm), $r = ke(/\${[\w\W]*}/gm), Ur = ke(/^data-[\-\w.\u00B7-\uFFFF]/), zr = ke(/^aria-[\-\w]+$/), Oa = ke(
437
+ const Ls = Ee(["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"]), cn = Ee(["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"]), dn = Ee(["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"]), Vr = Ee(["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"]), hn = Ee(["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"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), As = Ee(["#text"]), Ms = Ee(["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", "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", "xmlns", "slot"]), un = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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"]), ws = Ee(["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"]), Rt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = Re(/<%[\w\W]*|[\w\W]*%>/gm), $r = Re(/\${[\w\W]*}/gm), Ur = Re(/^data-[\-\w.\u00B7-\uFFFF]/), Fr = Re(/^aria-[\-\w]+$/), Oa = Re(
438
438
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
439
439
  // eslint-disable-line no-useless-escape
440
- ), Fr = ke(/^(?:\w+script|data):/i), Wr = ke(
440
+ ), zr = Re(/^(?:\w+script|data):/i), Wr = Re(
441
441
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
442
442
  // eslint-disable-line no-control-regex
443
- ), xa = ke(/^html$/i);
443
+ ), xa = Re(/^html$/i);
444
444
  var Cs = /* @__PURE__ */ Object.freeze({
445
445
  __proto__: null,
446
446
  MUSTACHE_EXPR: Br,
447
447
  ERB_EXPR: Hr,
448
448
  TMPLIT_EXPR: $r,
449
449
  DATA_ATTR: Ur,
450
- ARIA_ATTR: zr,
450
+ ARIA_ATTR: Fr,
451
451
  IS_ALLOWED_URI: Oa,
452
- IS_SCRIPT_OR_DATA: Fr,
452
+ IS_SCRIPT_OR_DATA: zr,
453
453
  ATTR_WHITESPACE: Wr,
454
454
  DOCTYPE_NAME: xa
455
455
  });
@@ -493,7 +493,7 @@ function Ta() {
493
493
  HTMLFormElement: p,
494
494
  DOMParser: h,
495
495
  trustedTypes: u
496
- } = o, g = l.prototype, m = Rt(g, "cloneNode"), E = Rt(g, "nextSibling"), O = Rt(g, "childNodes"), T = Rt(g, "parentNode");
496
+ } = o, g = l.prototype, m = kt(g, "cloneNode"), E = kt(g, "nextSibling"), O = kt(g, "childNodes"), T = kt(g, "parentNode");
497
497
  if (typeof i == "function") {
498
498
  const $ = t.createElement("template");
499
499
  $.content && $.content.ownerDocument && (t = $.content.ownerDocument);
@@ -503,16 +503,16 @@ function Ta() {
503
503
  implementation: M,
504
504
  createNodeIterator: L,
505
505
  createDocumentFragment: I,
506
- getElementsByTagName: D
506
+ getElementsByTagName: N
507
507
  } = t, {
508
- importNode: j
508
+ importNode: W
509
509
  } = n;
510
510
  let k = {};
511
511
  e.isSupported = typeof ba == "function" && typeof T == "function" && M && M.createHTMLDocument !== void 0;
512
512
  const {
513
513
  MUSTACHE_EXPR: C,
514
514
  ERB_EXPR: V,
515
- TMPLIT_EXPR: z,
515
+ TMPLIT_EXPR: F,
516
516
  DATA_ATTR: w,
517
517
  ARIA_ATTR: Q,
518
518
  IS_SCRIPT_OR_DATA: me,
@@ -523,7 +523,7 @@ function Ta() {
523
523
  } = Cs, Z = null;
524
524
  const ut = Y({}, [...Ls, ...cn, ...dn, ...hn, ...As]);
525
525
  let le = null;
526
- const Ye = Y({}, [...Ms, ...un, ...ws, ...kt]);
526
+ const Ye = Y({}, [...Ms, ...un, ...ws, ...Rt]);
527
527
  let se = Object.seal(Sa(null, {
528
528
  tagNameCheck: {
529
529
  writable: !0,
@@ -543,7 +543,7 @@ function Ta() {
543
543
  enumerable: !0,
544
544
  value: !1
545
545
  }
546
- })), Ie = null, qe = null, U = !0, J = !0, ae = !1, re = !0, ce = !1, Te = !1, _ = !1, N = !1, P = !1, Le = !1, Tt = !1, jn = !0, Xn = !1;
546
+ })), Ie = null, qe = null, U = !0, J = !0, ae = !1, re = !0, ce = !1, Te = !1, _ = !1, D = !1, P = !1, Le = !1, Tt = !1, jn = !0, Xn = !1;
547
547
  const _a = "user-content-";
548
548
  let Xt = !0, pt = !1, Ke = {}, Je = null;
549
549
  const Zn = Y({}, ["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"]);
@@ -554,7 +554,7 @@ function Ta() {
554
554
  let Qe = Ne, Yt = !1, qt = null;
555
555
  const Ia = Y({}, [Lt, At, Ne], ln);
556
556
  let gt = null;
557
- const Ra = ["application/xhtml+xml", "text/html"], ka = "text/html";
557
+ const ka = ["application/xhtml+xml", "text/html"], Ra = "text/html";
558
558
  let he = null, et = null;
559
559
  const Da = t.createElement("form"), Jn = function(b) {
560
560
  return b instanceof RegExp || b instanceof Function;
@@ -562,7 +562,7 @@ function Ta() {
562
562
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
563
563
  if (!(et && et === b)) {
564
564
  if ((!b || typeof b != "object") && (b = {}), b = Xe(b), gt = // eslint-disable-next-line unicorn/prefer-includes
565
- Ra.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? ka : b.PARSER_MEDIA_TYPE, he = gt === "application/xhtml+xml" ? ln : Nt, Z = "ALLOWED_TAGS" in b ? Y({}, b.ALLOWED_TAGS, he) : ut, le = "ALLOWED_ATTR" in b ? Y({}, b.ALLOWED_ATTR, he) : Ye, qt = "ALLOWED_NAMESPACES" in b ? Y({}, b.ALLOWED_NAMESPACES, ln) : Ia, Zt = "ADD_URI_SAFE_ATTR" in b ? Y(
565
+ ka.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Ra : b.PARSER_MEDIA_TYPE, he = gt === "application/xhtml+xml" ? ln : Nt, Z = "ALLOWED_TAGS" in b ? Y({}, b.ALLOWED_TAGS, he) : ut, le = "ALLOWED_ATTR" in b ? Y({}, b.ALLOWED_ATTR, he) : Ye, qt = "ALLOWED_NAMESPACES" in b ? Y({}, b.ALLOWED_NAMESPACES, ln) : Ia, Zt = "ADD_URI_SAFE_ATTR" in b ? Y(
566
566
  Xe(Kn),
567
567
  // eslint-disable-line indent
568
568
  b.ADD_URI_SAFE_ATTR,
@@ -576,7 +576,7 @@ function Ta() {
576
576
  // eslint-disable-line indent
577
577
  he
578
578
  // eslint-disable-line indent
579
- ) : qn, Je = "FORBID_CONTENTS" in b ? Y({}, b.FORBID_CONTENTS, he) : Zn, Ie = "FORBID_TAGS" in b ? Y({}, b.FORBID_TAGS, he) : {}, qe = "FORBID_ATTR" in b ? Y({}, b.FORBID_ATTR, he) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, U = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ae = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Te = b.WHOLE_DOCUMENT || !1, P = b.RETURN_DOM || !1, Le = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, N = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, pt = b.IN_PLACE || !1, H = b.ALLOWED_URI_REGEXP || Oa, Qe = b.NAMESPACE || Ne, se = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (J = !1), Le && (P = !0), Ke && (Z = Y({}, As), le = [], Ke.html === !0 && (Y(Z, Ls), Y(le, Ms)), Ke.svg === !0 && (Y(Z, cn), Y(le, un), Y(le, kt)), Ke.svgFilters === !0 && (Y(Z, dn), Y(le, un), Y(le, kt)), Ke.mathMl === !0 && (Y(Z, hn), Y(le, ws), Y(le, kt))), b.ADD_TAGS && (Z === ut && (Z = Xe(Z)), Y(Z, b.ADD_TAGS, he)), b.ADD_ATTR && (le === Ye && (le = Xe(le)), Y(le, b.ADD_ATTR, he)), b.ADD_URI_SAFE_ATTR && Y(Zt, b.ADD_URI_SAFE_ATTR, he), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Y(Je, b.FORBID_CONTENTS, he)), Xt && (Z["#text"] = !0), Te && Y(Z, ["html", "head", "body"]), Z.table && (Y(Z, ["tbody"]), delete Ie.tbody), b.TRUSTED_TYPES_POLICY) {
579
+ ) : qn, Je = "FORBID_CONTENTS" in b ? Y({}, b.FORBID_CONTENTS, he) : Zn, Ie = "FORBID_TAGS" in b ? Y({}, b.FORBID_TAGS, he) : {}, qe = "FORBID_ATTR" in b ? Y({}, b.FORBID_ATTR, he) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, U = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ae = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Te = b.WHOLE_DOCUMENT || !1, P = b.RETURN_DOM || !1, Le = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, D = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, pt = b.IN_PLACE || !1, H = b.ALLOWED_URI_REGEXP || Oa, Qe = b.NAMESPACE || Ne, se = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (J = !1), Le && (P = !0), Ke && (Z = Y({}, As), le = [], Ke.html === !0 && (Y(Z, Ls), Y(le, Ms)), Ke.svg === !0 && (Y(Z, cn), Y(le, un), Y(le, Rt)), Ke.svgFilters === !0 && (Y(Z, dn), Y(le, un), Y(le, Rt)), Ke.mathMl === !0 && (Y(Z, hn), Y(le, ws), Y(le, Rt))), b.ADD_TAGS && (Z === ut && (Z = Xe(Z)), Y(Z, b.ADD_TAGS, he)), b.ADD_ATTR && (le === Ye && (le = Xe(le)), Y(le, b.ADD_ATTR, he)), b.ADD_URI_SAFE_ATTR && Y(Zt, b.ADD_URI_SAFE_ATTR, he), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Y(Je, b.FORBID_CONTENTS, he)), Xt && (Z["#text"] = !0), Te && Y(Z, ["html", "head", "body"]), Z.table && (Y(Z, ["tbody"]), delete Ie.tbody), b.TRUSTED_TYPES_POLICY) {
580
580
  if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
581
581
  throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
582
582
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -628,10 +628,10 @@ function Ta() {
628
628
  }
629
629
  }, ss = function(b) {
630
630
  let R = null, B = null;
631
- if (N)
631
+ if (D)
632
632
  b = "<remove></remove>" + b;
633
633
  else {
634
- const ve = Rr(b, /^[\r\n\t ]+/);
634
+ const ve = kr(b, /^[\r\n\t ]+/);
635
635
  B = ve && ve[0];
636
636
  }
637
637
  gt === "application/xhtml+xml" && Qe === Ne && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
@@ -649,7 +649,7 @@ function Ta() {
649
649
  }
650
650
  }
651
651
  const fe = R.body || R.documentElement;
652
- return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? D.call(R, Te ? "html" : "body")[0] : Te ? R.documentElement : fe;
652
+ return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? N.call(R, Te ? "html" : "body")[0] : Te ? R.documentElement : fe;
653
653
  }, as = function(b) {
654
654
  return L.call(
655
655
  b.ownerDocument || b,
@@ -689,7 +689,7 @@ function Ta() {
689
689
  }
690
690
  return Ue(b), !0;
691
691
  }
692
- return b instanceof l && !Pa(b) || (B === "noscript" || B === "noembed" || B === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (ce && b.nodeType === 3 && (R = b.textContent, It([C, V, z], (ee) => {
692
+ return b instanceof l && !Pa(b) || (B === "noscript" || B === "noembed" || B === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (ce && b.nodeType === 3 && (R = b.textContent, It([C, V, F], (ee) => {
693
693
  R = yt(R, ee, " ");
694
694
  }), b.textContent !== R && (vt(e.removed, {
695
695
  element: b.cloneNode()
@@ -711,7 +711,7 @@ function Ta() {
711
711
  return !1;
712
712
  } else if (!Zt[R]) {
713
713
  if (!Oe(H, yt(B, K, ""))) {
714
- if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && kr(B, "data:") === 0 && Yn[b])) {
714
+ if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && Rr(B, "data:") === 0 && Yn[b])) {
715
715
  if (!(ae && !Oe(me, yt(B, K, "")))) {
716
716
  if (B)
717
717
  return !1;
@@ -742,16 +742,16 @@ function Ta() {
742
742
  const fe = R[ee], {
743
743
  name: ve,
744
744
  namespaceURI: be,
745
- value: ze
745
+ value: Fe
746
746
  } = fe, mt = he(ve);
747
- let Se = ve === "value" ? ze : Dr(ze);
747
+ let Se = ve === "value" ? Fe : Dr(Fe);
748
748
  if (B.attrName = mt, B.attrValue = Se, B.keepAttr = !0, B.forceKeepAttr = void 0, Pe("uponSanitizeAttribute", b, B), Se = B.attrValue, B.forceKeepAttr || (Jt(ve, b), !B.keepAttr))
749
749
  continue;
750
750
  if (!re && Oe(/\/>/i, Se)) {
751
751
  Jt(ve, b);
752
752
  continue;
753
753
  }
754
- ce && It([C, V, z], (hs) => {
754
+ ce && It([C, V, F], (hs) => {
755
755
  Se = yt(Se, hs, " ");
756
756
  });
757
757
  const ds = he(b.nodeName);
@@ -793,8 +793,8 @@ function Ta() {
793
793
  return $;
794
794
  if (_ || Kt(b), e.removed = [], typeof $ == "string" && (pt = !1), pt) {
795
795
  if ($.nodeName) {
796
- const ze = he($.nodeName);
797
- if (!Z[ze] || Ie[ze])
796
+ const Fe = he($.nodeName);
797
+ if (!Z[Fe] || Ie[Fe])
798
798
  throw Et("root node is forbidden and cannot be sanitized in-place");
799
799
  }
800
800
  } else if ($ instanceof r)
@@ -806,7 +806,7 @@ function Ta() {
806
806
  if (R = ss($), !R)
807
807
  return P ? null : Tt ? A : "";
808
808
  }
809
- R && N && Ue(R.firstChild);
809
+ R && D && Ue(R.firstChild);
810
810
  const ve = as(pt ? $ : R);
811
811
  for (; ee = ve.nextNode(); )
812
812
  rs(ee) || (ee.content instanceof a && Ga(ee.content), cs(ee));
@@ -818,12 +818,12 @@ function Ta() {
818
818
  fe.appendChild(R.firstChild);
819
819
  else
820
820
  fe = R;
821
- return (le.shadowroot || le.shadowrootmode) && (fe = j.call(n, fe, !0)), fe;
821
+ return (le.shadowroot || le.shadowrootmode) && (fe = W.call(n, fe, !0)), fe;
822
822
  }
823
823
  let be = Te ? R.outerHTML : R.innerHTML;
824
824
  return Te && Z["!doctype"] && R.ownerDocument && R.ownerDocument.doctype && R.ownerDocument.doctype.name && Oe(xa, R.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + R.ownerDocument.doctype.name + `>
825
- ` + be), ce && It([C, V, z], (ze) => {
826
- be = yt(be, ze, " ");
825
+ ` + be), ce && It([C, V, F], (Fe) => {
826
+ be = yt(be, Fe, " ");
827
827
  }), y && Tt ? y.createHTML(be) : be;
828
828
  }, e.setConfig = function() {
829
829
  let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -861,7 +861,7 @@ const Dt = (o) => Un.sanitize(o, {
861
861
  }
862
862
  }), De = (o) => Un.sanitize(o, { ALLOWED_TAGS: [] }), Ut = class Ut extends q {
863
863
  constructor() {
864
- super(...arguments), this.type = "toolbar", this.renderType = W.HTML;
864
+ super(...arguments), this.type = "toolbar", this.renderType = j.HTML;
865
865
  }
866
866
  init() {
867
867
  const e = () => this.updateOverflowMenu(!1);
@@ -1209,9 +1209,9 @@ const Dt = (o) => Un.sanitize(o, {
1209
1209
  };
1210
1210
  Ut.buttonID = 0;
1211
1211
  let _s = Ut;
1212
- const zt = class zt extends q {
1212
+ const Ft = class Ft extends q {
1213
1213
  constructor(e, t, n, s) {
1214
- super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = zt.instanceID++, this.init();
1214
+ super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Ft.instanceID++, this.init();
1215
1215
  }
1216
1216
  init() {
1217
1217
  this.children.forEach((e) => {
@@ -1252,7 +1252,7 @@ const zt = class zt extends q {
1252
1252
  ).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
1253
1253
  r.enter().append("div").merge(t.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
1254
1254
  d.components.forEach((p) => {
1255
- const h = x(this), g = v(d, "renderType") === W.SVG;
1255
+ const h = x(this), g = v(d, "renderType") === j.SVG;
1256
1256
  p.setParent(
1257
1257
  g ? S.appendOrSelect(h, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : h
1258
1258
  );
@@ -1260,7 +1260,7 @@ const zt = class zt extends q {
1260
1260
  (m === $e.PREFERRED || m === $e.FIXED) && p.render(e);
1261
1261
  });
1262
1262
  }), t.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(d) {
1263
- const p = v(d, "growth"), u = v(d, "renderType") === W.SVG ? S.getSVGElementSize(x(this).select("svg.layout-svg-wrapper"), {
1263
+ const p = v(d, "growth"), u = v(d, "renderType") === j.SVG ? S.getSVGElementSize(x(this).select("svg.layout-svg-wrapper"), {
1264
1264
  useBBox: !0
1265
1265
  }) : S.getHTMLElementSize(this);
1266
1266
  if (p === $e.PREFERRED) {
@@ -1295,8 +1295,8 @@ const zt = class zt extends q {
1295
1295
  });
1296
1296
  }
1297
1297
  };
1298
- zt.instanceID = Math.floor(Math.random() * 99999999999);
1299
- let Is = zt;
1298
+ Ft.instanceID = Math.floor(Math.random() * 99999999999);
1299
+ let Is = Ft;
1300
1300
  class dh extends q {
1301
1301
  constructor() {
1302
1302
  super(...arguments), this.type = "spacer";
@@ -1323,14 +1323,14 @@ var Yr = {
1323
1323
  iframe, object, embed, *[tabindex], *[contenteditable=true]
1324
1324
  `
1325
1325
  }, pn = Yr;
1326
- function Rs(o, e) {
1326
+ function ks(o, e) {
1327
1327
  for (var t = 0; t < e.length; t++) {
1328
1328
  var n = e[t];
1329
1329
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1330
1330
  }
1331
1331
  }
1332
1332
  function qr(o, e, t) {
1333
- return e && Rs(o.prototype, e), t && Rs(o, t), Object.defineProperty(o, "prototype", {
1333
+ return e && ks(o.prototype, e), t && ks(o, t), Object.defineProperty(o, "prototype", {
1334
1334
  writable: !1
1335
1335
  }), o;
1336
1336
  }
@@ -1399,14 +1399,14 @@ function ao(o, e) {
1399
1399
  if (!(o instanceof e))
1400
1400
  throw new TypeError("Cannot call a class as a function");
1401
1401
  }
1402
- function ks(o, e) {
1402
+ function Rs(o, e) {
1403
1403
  for (var t = 0; t < e.length; t++) {
1404
1404
  var n = e[t];
1405
1405
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
1406
1406
  }
1407
1407
  }
1408
1408
  function io(o, e, t) {
1409
- return e && ks(o.prototype, e), t && ks(o, t), Object.defineProperty(o, "prototype", {
1409
+ return e && Rs(o.prototype, e), t && Rs(o, t), Object.defineProperty(o, "prototype", {
1410
1410
  writable: !1
1411
1411
  }), o;
1412
1412
  }
@@ -1724,7 +1724,7 @@ function Mn(o, e) {
1724
1724
  }, Mn(o, e);
1725
1725
  }
1726
1726
  function Co(o) {
1727
- var e = Ro();
1727
+ var e = ko();
1728
1728
  return function() {
1729
1729
  var n = Gt(o), s;
1730
1730
  if (e) {
@@ -1747,7 +1747,7 @@ function Io(o) {
1747
1747
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1748
1748
  return o;
1749
1749
  }
1750
- function Ro() {
1750
+ function ko() {
1751
1751
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1752
1752
  return !1;
1753
1753
  if (typeof Proxy == "function")
@@ -1764,7 +1764,7 @@ function Gt(o) {
1764
1764
  return t.__proto__ || Object.getPrototypeOf(t);
1765
1765
  }, Gt(o);
1766
1766
  }
1767
- function ko(o) {
1767
+ function Ro(o) {
1768
1768
  var e = /* @__PURE__ */ function(t) {
1769
1769
  wo(s, t);
1770
1770
  var n = Co(s);
@@ -1993,9 +1993,9 @@ function $o(o) {
1993
1993
  }(o);
1994
1994
  return e;
1995
1995
  }
1996
- var Uo = [ko, $o];
1997
- const zo = Uo;
1998
- function Fo(o) {
1996
+ var Uo = [Ro, $o];
1997
+ const Fo = Uo;
1998
+ function zo(o) {
1999
1999
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
2000
2000
  }
2001
2001
  var Ma = function() {
@@ -2025,7 +2025,7 @@ process.env.NODE_ENV !== "production" && (Ma = function(o, e, t) {
2025
2025
  }
2026
2026
  });
2027
2027
  var Wo = Ma;
2028
- const jo = /* @__PURE__ */ Fo(Wo);
2028
+ const jo = /* @__PURE__ */ zo(Wo);
2029
2029
  function In(o) {
2030
2030
  "@babel/helpers - typeof";
2031
2031
  return In = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -2060,12 +2060,12 @@ function Yo(o, e) {
2060
2060
  }
2061
2061
  }), Object.defineProperty(o, "prototype", {
2062
2062
  writable: !1
2063
- }), e && Rn(o, e);
2063
+ }), e && kn(o, e);
2064
2064
  }
2065
- function Rn(o, e) {
2066
- return Rn = Object.setPrototypeOf || function(n, s) {
2065
+ function kn(o, e) {
2066
+ return kn = Object.setPrototypeOf || function(n, s) {
2067
2067
  return n.__proto__ = s, n;
2068
- }, Rn(o, e);
2068
+ }, kn(o, e);
2069
2069
  }
2070
2070
  function qo(o) {
2071
2071
  var e = Qo();
@@ -2170,13 +2170,13 @@ function el(o) {
2170
2170
  }(o);
2171
2171
  return e;
2172
2172
  }
2173
- function kn(o) {
2173
+ function Rn(o) {
2174
2174
  "@babel/helpers - typeof";
2175
- return kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2175
+ return Rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2176
2176
  return typeof e;
2177
2177
  } : function(e) {
2178
2178
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2179
- }, kn(o);
2179
+ }, Rn(o);
2180
2180
  }
2181
2181
  function tl(o, e) {
2182
2182
  if (!(o instanceof e))
@@ -2224,7 +2224,7 @@ function al(o) {
2224
2224
  };
2225
2225
  }
2226
2226
  function il(o, e) {
2227
- if (e && (kn(e) === "object" || typeof e == "function"))
2227
+ if (e && (Rn(e) === "object" || typeof e == "function"))
2228
2228
  return e;
2229
2229
  if (e !== void 0)
2230
2230
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -2380,7 +2380,7 @@ var ll = /* @__PURE__ */ function(o) {
2380
2380
  }
2381
2381
  )
2382
2382
  }]), t.components = /* @__PURE__ */ new WeakMap(), t;
2383
- }(so(ho, el, zo, bo));
2383
+ }(so(ho, el, Fo, bo));
2384
2384
  const cl = ll;
2385
2385
  class hh extends q {
2386
2386
  constructor(e, t, n) {
@@ -2400,29 +2400,29 @@ class hh extends q {
2400
2400
  getModalHTML() {
2401
2401
  const e = this.services.domUtils.getChartID(), t = this.model.getOptions(), { title: n, downloadAsCSV: s } = v(t, "locale", "translations", "tabularRep"), a = v(t, "style", "prefix"), i = this.model.getTabularDataArray();
2402
2402
  return `
2403
- <div class="cds--modal-container cds--modal-container">
2404
- <div class="cds--modal-header cds--modal-header">
2403
+ <div class="cds--modal-container">
2404
+ <div class="cds--modal-header">
2405
2405
 
2406
- <p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="modal-title">${n}</p>
2406
+ <p class="cds--modal-header__label cds--type-delta" id="modal-title">${n}</p>
2407
2407
 
2408
- <p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${De(
2408
+ <p class="cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${De(
2409
2409
  t.title
2410
2410
  )}</p>
2411
2411
 
2412
- <button class="cds--modal-close cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>
2413
- <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon cds--modal-close__icon">
2412
+ <button class="cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>
2413
+ <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon">
2414
2414
  <path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>
2415
2415
  </svg>
2416
2416
  </button>
2417
2417
  </div>
2418
2418
 
2419
- <div class="cds--modal-content cds--modal-content">
2420
- <table class="cds--data-table cds--data-table--no-border cds--data-table cds--data-table--no-border">
2419
+ <div class="cds--modal-content">
2420
+ <table class="cds--data-table cds--data-table--no-border">
2421
2421
  <thead>
2422
2422
  <tr>
2423
2423
  ${ne(i, 0).map(
2424
2424
  (r) => `<th scope="col">
2425
- <div class="cds--table-header-label cds--table-header-label">${De(r)}</div>
2425
+ <div class="cds--table-header-label">${De(r)}</div>
2426
2426
  </th>`
2427
2427
  ).join("")}
2428
2428
  </tr>
@@ -2438,9 +2438,9 @@ class hh extends q {
2438
2438
  </table>
2439
2439
  </div>
2440
2440
 
2441
- <div class="cds--modal-footer cds--modal-footer">
2441
+ <div class="cds--modal-footer">
2442
2442
  <div class="${we}--${a}-modal-footer-spacer"></div>
2443
- <button class="cds--btn cds--btn--primary cds--btn cds--btn--primary" type="button" data-modal-primary-focus>${s}</button>
2443
+ <button class="cds--btn cds--btn--primary" type="button" data-modal-primary-focus>${s}</button>
2444
2444
  </div>
2445
2445
  </div>`;
2446
2446
  }
@@ -2460,7 +2460,7 @@ class hh extends q {
2460
2460
  }
2461
2461
  class dl extends q {
2462
2462
  constructor() {
2463
- super(...arguments), this.type = "title", this.renderType = W.HTML;
2463
+ super(...arguments), this.type = "title", this.renderType = j.HTML;
2464
2464
  }
2465
2465
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2466
2466
  // @ts-ignore
@@ -2537,7 +2537,7 @@ class dl extends q {
2537
2537
  }
2538
2538
  class hl extends q {
2539
2539
  constructor() {
2540
- super(...arguments), this.type = "legend", this.renderType = W.HTML;
2540
+ super(...arguments), this.type = "legend", this.renderType = j.HTML;
2541
2541
  }
2542
2542
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2543
2543
  // @ts-ignore
@@ -2559,7 +2559,7 @@ class hl extends q {
2559
2559
  ).attr("aria-checked", ({ status: T }) => T === de.items.status.ACTIVE).attr("width", g * 2).attr("height", g * 2).attr(
2560
2560
  "class",
2561
2561
  (T) => this.model.getColorClassName({
2562
- classNameTypes: [F.BACKGROUND],
2562
+ classNameTypes: [z.BACKGROUND],
2563
2563
  dataGroupName: T.name,
2564
2564
  originalClassName: "checkbox"
2565
2565
  })
@@ -2576,15 +2576,15 @@ class hl extends q {
2576
2576
  y.exit().remove();
2577
2577
  const A = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr(
2578
2578
  "aria-labelledby",
2579
- (I, D) => this.services.domUtils.generateElementIDString(
2580
- `legend-datagroup-${E.size() + D}-title`
2579
+ (I, N) => this.services.domUtils.generateElementIDString(
2580
+ `legend-datagroup-${E.size() + N}-title`
2581
2581
  )
2582
2582
  );
2583
2583
  A.selectAll("*").remove();
2584
2584
  let M, L = 1;
2585
2585
  A.append("svg").classed("icon", !0).each(function(I) {
2586
- const D = x(this);
2587
- !M || M != I.type ? (M = I.type, L = 1) : L++, T.addAdditionalItem(D, I, L);
2586
+ const N = x(this);
2587
+ !M || M != I.type ? (M = I.type, L = 1) : L++, T.addAdditionalItem(N, I, L);
2588
2588
  }), A.append("p").merge(A.select("p")), this.truncateLegendText();
2589
2589
  }
2590
2590
  p.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), u && h.size() > 1 && this.addEventListeners();
@@ -2686,7 +2686,7 @@ class hl extends q {
2686
2686
  }
2687
2687
  class ul extends q {
2688
2688
  constructor(e, t, n) {
2689
- super(e, t, n), this.type = "chart-clip", this.renderType = W.SVG, this.chartClipId = "chart-clip-id-" + Math.floor(Math.random() * 99999999999), this.init();
2689
+ super(e, t, n), this.type = "chart-clip", this.renderType = j.SVG, this.chartClipId = "chart-clip-id-" + Math.floor(Math.random() * 99999999999), this.init();
2690
2690
  }
2691
2691
  init() {
2692
2692
  this.model.set({ chartClipId: this.chartClipId }, { skipUpdate: !0 });
@@ -2848,7 +2848,7 @@ var Hs = (at = {}, at[ge.LEFT] = function(o, e, t) {
2848
2848
  new jt();
2849
2849
  class pl extends q {
2850
2850
  constructor(e, t, n) {
2851
- super(e, t, n), this.type = "tooltip", this.renderType = W.HTML, this.isEventListenerAdded = !1, this.positionService = new jt(), this.handleShowTooltip = (s) => {
2851
+ super(e, t, n), this.type = "tooltip", this.renderType = j.HTML, this.isEventListenerAdded = !1, this.positionService = new jt(), this.handleShowTooltip = (s) => {
2852
2852
  const a = s.detail.data || s.detail.items;
2853
2853
  let i;
2854
2854
  const r = this.formatItems(this.getItems(s));
@@ -2946,7 +2946,7 @@ class pl extends q {
2946
2946
  const t = this.services.domUtils.getHolder(), n = this.tooltip.node(), s = this.getOptions(), a = v(s, "zoomBar", "top", "enabled");
2947
2947
  let i = v(e, "detail", "mousePosition");
2948
2948
  if (!i)
2949
- i = Ft(v(e, "detail", "event"), t);
2949
+ i = zt(v(e, "detail", "event"), t);
2950
2950
  else {
2951
2951
  const h = v(s, "zoomBar", "top", "type"), u = Me.height[h];
2952
2952
  a && (i[1] += u + Me.spacerHeight);
@@ -2984,7 +2984,7 @@ class pl extends q {
2984
2984
  }
2985
2985
  const ct = class ct extends q {
2986
2986
  constructor() {
2987
- super(...arguments), this.type = "grid-brush", this.renderType = W.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
2987
+ super(...arguments), this.type = "grid-brush", this.renderType = j.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
2988
2988
  }
2989
2989
  // needs to match the class name in _grid-brush.scss
2990
2990
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -3008,17 +3008,17 @@ const ct = class ct extends q {
3008
3008
  const m = (M) => {
3009
3009
  const L = M[1] - M[0];
3010
3010
  let I = "0," + L.toString();
3011
- const D = Math.floor(l / ct.DASH_LENGTH), j = D * ct.DASH_LENGTH;
3012
- for (let k = 0; k < D; k++)
3011
+ const N = Math.floor(l / ct.DASH_LENGTH), W = N * ct.DASH_LENGTH;
3012
+ for (let k = 0; k < N; k++)
3013
3013
  I += "," + ct.DASH_LENGTH;
3014
- I += "," + (l - j), D % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
3014
+ I += "," + (l - W), N % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
3015
3015
  }, E = (M) => {
3016
3016
  const L = M.selection;
3017
3017
  L === null || L[0] === L[1] || (u.attr("x", parseFloat(i.attr("x")) + parseFloat(s.attr("x"))).attr("y", i.attr("y")).attr("width", i.attr("width")).attr("height", i.attr("height")).style("cursor", "pointer").style("display", null), m(L));
3018
3018
  }, O = (M, L) => {
3019
3019
  const I = Ja().range([0, r]).domain(g);
3020
- let D = [I.invert(M), I.invert(L)];
3021
- D[0].valueOf() === D[1].valueOf() && (D = this.services.zoom.getDefaultZoomBarDomain()), (g[0].valueOf() !== D[0].valueOf() || g[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D);
3020
+ let N = [I.invert(M), I.invert(L)];
3021
+ N[0].valueOf() === N[1].valueOf() && (N = this.services.zoom.getDefaultZoomBarDomain()), (g[0].valueOf() !== N[0].valueOf() || g[1].valueOf() !== N[1].valueOf()) && this.services.zoom.handleDomainChange(N);
3022
3022
  };
3023
3023
  let T;
3024
3024
  const y = (M) => {
@@ -3032,11 +3032,11 @@ const ct = class ct extends q {
3032
3032
  const A = this.services.zoom.getZoomRatio();
3033
3033
  s.on("click", function(M) {
3034
3034
  if (M.shiftKey) {
3035
- const L = this.services.domUtils.getHolder(), I = Ft(a.node(), L)[0];
3036
- let D = I - r * A / 2;
3037
- D < 0 && (D = 0);
3038
- let j = I + r * A / 2;
3039
- j > r && (j = r), O(D, j);
3035
+ const L = this.services.domUtils.getHolder(), I = zt(a.node(), L)[0];
3036
+ let N = I - r * A / 2;
3037
+ N < 0 && (N = 0);
3038
+ let W = I + r * A / 2;
3039
+ W > r && (W = r), O(N, W);
3040
3040
  }
3041
3041
  });
3042
3042
  }
@@ -3046,7 +3046,7 @@ ct.DASH_LENGTH = 4;
3046
3046
  let Us = ct;
3047
3047
  class ph extends q {
3048
3048
  constructor() {
3049
- super(...arguments), this.type = "zoom-bar", this.renderType = W.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = Qs(), this.highlightStrokeWidth = 1;
3049
+ super(...arguments), this.type = "zoom-bar", this.renderType = j.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = Qs(), this.highlightStrokeWidth = 1;
3050
3050
  }
3051
3051
  init() {
3052
3052
  this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
@@ -3106,17 +3106,17 @@ class ph extends q {
3106
3106
  ), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Wt(E, (L) => L.value));
3107
3107
  const A = this.model.get("zoomDomain");
3108
3108
  if (a === nt.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", E, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", E, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
3109
- const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, D = i.color, j = i.labelMapsTo;
3109
+ const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, N = i.color, W = i.labelMapsTo;
3110
3110
  i.data.forEach((k, C) => {
3111
3111
  S.appendOrSelect(p, `rect.highlight-${C}`).attr("height", r - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(k[L])).attr(
3112
3112
  "width",
3113
3113
  this.xScale(k[I]) - this.xScale(k[L])
3114
3114
  ).style(
3115
3115
  "fill",
3116
- D && D.scale[k[j]] ? D.scale[k[j]] : null
3116
+ N && N.scale[k[W]] ? N.scale[k[W]] : null
3117
3117
  ).style("fill-opacity", 0.1).style(
3118
3118
  "stroke",
3119
- D && D.scale[k[j]] ? D.scale[k[j]] : null
3119
+ N && N.scale[k[W]] ? N.scale[k[W]] : null
3120
3120
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
3121
3121
  });
3122
3122
  }
@@ -3240,7 +3240,7 @@ class ph extends q {
3240
3240
  }
3241
3241
  class gh extends q {
3242
3242
  constructor(e, t) {
3243
- super(e, t), this.type = "threshold", this.renderType = W.SVG, this.positionService = new jt();
3243
+ super(e, t), this.type = "threshold", this.renderType = j.SVG, this.positionService = new jt();
3244
3244
  }
3245
3245
  render(e = !1) {
3246
3246
  const t = v(this.getOptions(), "axes"), n = [];
@@ -3272,36 +3272,36 @@ class gh extends q {
3272
3272
  ), g = p.services.cartesianScales.getScaleTypeByPosition(h);
3273
3273
  let m = null, E = null;
3274
3274
  h === G.LEFT || h === G.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
3275
- const O = g === ue.LABELS, [T, y] = m.range(), [A, M] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), D = (z) => L.getDomainValue(z), j = (z) => L.getRangeValue(z), [k, C] = He(
3276
- D,
3277
- j,
3275
+ const O = g === ue.LABELS, [T, y] = m.range(), [A, M] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), N = (F) => L.getDomainValue(F), W = (F) => L.getRangeValue(F), [k, C] = He(
3276
+ N,
3277
+ W,
3278
3278
  I
3279
3279
  ), V = x(this);
3280
3280
  h === G.TOP || h === G.BOTTOM ? (V.selectAll("line.threshold-line").transition().call(
3281
- (z) => p.services.transitions.setupTransition({
3282
- transition: z,
3281
+ (F) => p.services.transitions.setupTransition({
3282
+ transition: F,
3283
3283
  name: "threshold-line-update",
3284
3284
  animate: e
3285
3285
  })
3286
3286
  ).attr("y1", M).attr("y2", A).attr(
3287
3287
  "x1",
3288
- ({ datum: z }) => k(z) + (O ? u.step() / 2 : 0)
3288
+ ({ datum: F }) => k(F) + (O ? u.step() / 2 : 0)
3289
3289
  ).attr(
3290
3290
  "x2",
3291
- ({ datum: z }) => k(z) + (O ? u.step() / 2 : 0)
3292
- ).style("stroke", ({ fillColor: z }) => z), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: z }) => -k(z)).attr("width", Math.abs(A - M)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
3293
- (z) => p.services.transitions.setupTransition({
3294
- transition: z,
3291
+ ({ datum: F }) => k(F) + (O ? u.step() / 2 : 0)
3292
+ ).style("stroke", ({ fillColor: F }) => F), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: F }) => -k(F)).attr("width", Math.abs(A - M)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
3293
+ (F) => p.services.transitions.setupTransition({
3294
+ transition: F,
3295
3295
  name: "threshold-line-update",
3296
3296
  animate: e
3297
3297
  })
3298
3298
  ).attr("x1", T).attr("x2", y).attr(
3299
3299
  "y1",
3300
- ({ datum: z }) => C(z) + (O ? u.step() / 2 : 0)
3300
+ ({ datum: F }) => C(F) + (O ? u.step() / 2 : 0)
3301
3301
  ).attr(
3302
3302
  "y2",
3303
- ({ datum: z }) => C(z) + (O ? u.step() / 2 : 0)
3304
- ).style("stroke", ({ fillColor: z }) => z), V.selectAll("rect.threshold-hoverable-area").attr("x", T).attr("y", ({ datum: z }) => C(z)).attr("width", Math.abs(y - T)).classed("rotate", !1));
3303
+ ({ datum: F }) => C(F) + (O ? u.step() / 2 : 0)
3304
+ ).style("stroke", ({ fillColor: F }) => F), V.selectAll("rect.threshold-hoverable-area").attr("x", T).attr("y", ({ datum: F }) => C(F)).attr("width", Math.abs(y - T)).classed("rotate", !1));
3305
3305
  }), this.services.events.addEventListener(f.Threshold.SHOW, (h) => {
3306
3306
  this.setThresholdLabelPosition(h.detail), this.label.classed("hidden", !1);
3307
3307
  }), this.services.events.addEventListener(f.Threshold.HIDE, () => {
@@ -3327,7 +3327,7 @@ class gh extends q {
3327
3327
  ).classed("hidden", !0);
3328
3328
  }
3329
3329
  setThresholdLabelPosition({ event: e, datum: t }) {
3330
- const n = this.services.domUtils.getHolder(), s = Ft(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
3330
+ const n = this.services.domUtils.getHolder(), s = zt(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
3331
3331
  this.label.html(De(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
3332
3332
  const i = this.label.node(), r = this.positionService.findBestPlacementAt(
3333
3333
  {
@@ -3378,7 +3378,7 @@ class gh extends q {
3378
3378
  }
3379
3379
  class mh extends q {
3380
3380
  constructor(e, t) {
3381
- super(e, t), this.type = "highlight", this.renderType = W.SVG, this.positionService = new jt(), this.highlightStrokeWidth = 1;
3381
+ super(e, t), this.type = "highlight", this.renderType = j.SVG, this.positionService = new jt(), this.highlightStrokeWidth = 1;
3382
3382
  }
3383
3383
  render(e = !1) {
3384
3384
  const t = v(this.getOptions(), "axes"), n = [];
@@ -3407,12 +3407,12 @@ class mh extends q {
3407
3407
  c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
3408
3408
  const p = this;
3409
3409
  r.each(function({ axisPosition: h }) {
3410
- const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), M = (k) => y.getDomainValue(k), L = (k) => y.getRangeValue(k), [I, D] = He(
3410
+ const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), M = (k) => y.getDomainValue(k), L = (k) => y.getRangeValue(k), [I, N] = He(
3411
3411
  M,
3412
3412
  L,
3413
3413
  A
3414
- ), j = x(this);
3415
- h === G.TOP || h === G.BOTTOM ? j.selectAll("rect.highlight-bar").transition().call(
3414
+ ), W = x(this);
3415
+ h === G.TOP || h === G.BOTTOM ? W.selectAll("rect.highlight-bar").transition().call(
3416
3416
  (k) => p.services.transitions.setupTransition({
3417
3417
  transition: k,
3418
3418
  name: "highlight-bar-update",
@@ -3421,15 +3421,15 @@ class mh extends q {
3421
3421
  ).attr("y", Math.max(T + p.highlightStrokeWidth, 0)).attr("height", Math.max(O - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: k, ...C }) => I(C[k])).attr(
3422
3422
  "width",
3423
3423
  ({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(I(V[C]) - I(V[k]), 0)
3424
- ).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null) : j.selectAll("rect.highlight-bar").transition().call(
3424
+ ).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null) : W.selectAll("rect.highlight-bar").transition().call(
3425
3425
  (k) => p.services.transitions.setupTransition({
3426
3426
  transition: k,
3427
3427
  name: "highlight-bar-update",
3428
3428
  animate: e
3429
3429
  })
3430
- ).attr("x", m).attr("width", Math.max(E - m, 0)).attr("y", ({ highlightEndMapsTo: k, ...C }) => D(C[k])).attr(
3430
+ ).attr("x", m).attr("width", Math.max(E - m, 0)).attr("y", ({ highlightEndMapsTo: k, ...C }) => N(C[k])).attr(
3431
3431
  "height",
3432
- ({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(D(V[k]) - D(V[C]), 0)
3432
+ ({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(N(V[k]) - N(V[C]), 0)
3433
3433
  ).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null);
3434
3434
  });
3435
3435
  }
@@ -3485,7 +3485,7 @@ class fh extends pl {
3485
3485
  value: h[r],
3486
3486
  color: this.model.getFillColor(h[r]),
3487
3487
  class: this.model.getColorClassName({
3488
- classNameTypes: [F.TOOLTIP],
3488
+ classNameTypes: [z.TOOLTIP],
3489
3489
  dataGroupName: h[r]
3490
3490
  })
3491
3491
  });
@@ -3502,7 +3502,7 @@ class fh extends pl {
3502
3502
  value: Array.isArray(u) && u.length === 2 ? `${u[0]} - ${u[1]}` : u,
3503
3503
  color: this.model.getFillColor(h[r]),
3504
3504
  class: this.model.getColorClassName({
3505
- classNameTypes: [F.TOOLTIP],
3505
+ classNameTypes: [z.TOOLTIP],
3506
3506
  dataGroupName: h[r]
3507
3507
  })
3508
3508
  };
@@ -3523,7 +3523,7 @@ class fh extends pl {
3523
3523
  }
3524
3524
  class vh extends q {
3525
3525
  constructor() {
3526
- super(...arguments), this.type = "alluvial", this.renderType = W.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
3526
+ super(...arguments), this.type = "alluvial", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
3527
3527
  }
3528
3528
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3529
3529
  // @ts-ignore
@@ -3542,12 +3542,12 @@ class vh extends q {
3542
3542
  "gradient",
3543
3543
  "enabled"
3544
3544
  );
3545
- let l = Re.minNodePadding;
3546
- a.alluvial.nodePadding > Re.minNodePadding && (l = a.alluvial.nodePadding);
3545
+ let l = ke.minNodePadding;
3546
+ a.alluvial.nodePadding > ke.minNodePadding && (l = a.alluvial.nodePadding);
3547
3547
  const c = v(a, "alluvial", "nodeAlignment");
3548
3548
  let d = wi;
3549
3549
  c === Ce.LEFT ? d = Ci : c === Ce.RIGHT && (d = _i);
3550
- const p = Ai().nodeId((y) => y.name).nodeWidth(Re.nodeWidth).nodePadding(l).nodeAlign(d).extent([
3550
+ const p = Ai().nodeId((y) => y.name).nodeWidth(ke.nodeWidth).nodePadding(l).nodeAlign(d).extent([
3551
3551
  [2, 30],
3552
3552
  [n - 2, s]
3553
3553
  ]);
@@ -3584,14 +3584,18 @@ class vh extends q {
3584
3584
  "id",
3585
3585
  (y) => this.services.domUtils.generateElementIDString(`alluvial-line-${y.index}`)
3586
3586
  ).attr("class", (y) => a.alluvial.monochrome ? this.model.getColorClassName({
3587
- classNameTypes: [F.STROKE],
3587
+ classNameTypes: [z.STROKE],
3588
3588
  dataGroupName: 0,
3589
3589
  originalClassName: "link"
3590
3590
  }) : this.model.getColorClassName({
3591
- classNameTypes: [F.STROKE],
3591
+ classNameTypes: [z.STROKE],
3592
3592
  dataGroupName: y.source.index,
3593
3593
  originalClassName: "link"
3594
- })).style("stroke", (y) => r ? `url(#${this.gradient_id}-link-${y.index})` : this.model.getFillColor(y.source.name)).attr("stroke-width", (y) => Math.max(1, y.width)).style("stroke-opacity", Re.opacity.default).attr(
3594
+ })).style("stroke", (y) => r ? `url(#${this.gradient_id}-link-${y.index})` : this.model.getFillColor(y.source.name, null, {
3595
+ ...y,
3596
+ source: y.source.name,
3597
+ target: y.target.name
3598
+ })).attr("stroke-width", (y) => Math.max(1, y.width)).style("stroke-opacity", ke.opacity.default).attr(
3595
3599
  "aria-label",
3596
3600
  (y) => `${y.source.name} → ${y.target.name} (${y.value}${a.alluvial.units ? " " + a.alluvial.units : ""})`
3597
3601
  );
@@ -3620,8 +3624,8 @@ class vh extends q {
3620
3624
  ), { width: L } = S.getSVGElementSize(x(`text#${M}`), {
3621
3625
  useBBox: !0
3622
3626
  }), I = (y.y1 - y.y0) / 2 - 9;
3623
- let D = y.x1 - y.x0;
3624
- return y.x1 >= L ? D = D - (L + 16) : D += 4, `translate(${D}, ${I})`;
3627
+ let N = y.x1 - y.x0;
3628
+ return y.x1 >= L ? N = N - (L + 16) : N += 4, `translate(${N}, ${I})`;
3625
3629
  }), this.addLineEventListener(), this.addNodeEventListener();
3626
3630
  }
3627
3631
  addLineEventListener() {
@@ -3632,8 +3636,8 @@ class vh extends q {
3632
3636
  name: "alluvial-links-mouse-highlight"
3633
3637
  })
3634
3638
  );
3635
- r === "mouseout" ? (x(i).lower(), l.style("stroke-opacity", Re.opacity.default)) : l.style("stroke-opacity", function() {
3636
- return i === this ? (x(this).raise(), Re.opacity.selected) : Re.opacity.unfocus;
3639
+ r === "mouseout" ? (x(i).lower(), l.style("stroke-opacity", ke.opacity.default)) : l.style("stroke-opacity", function() {
3640
+ return i === this ? (x(this).raise(), ke.opacity.selected) : ke.opacity.unfocus;
3637
3641
  });
3638
3642
  }, 33);
3639
3643
  this.parent.selectAll("path.link").on("mouseover", function(i, r) {
@@ -3685,7 +3689,7 @@ class vh extends q {
3685
3689
  addNodeEventListener() {
3686
3690
  const e = this, t = vn((n = [], s = "mouseover") => {
3687
3691
  if (s === "mouseout" || n.length === 0) {
3688
- e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", Re.opacity.default);
3692
+ e.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (i) => i.index).order().style("stroke-opacity", ke.opacity.default);
3689
3693
  return;
3690
3694
  }
3691
3695
  e.parent.selectAll("path.link").transition().call(
@@ -3694,7 +3698,7 @@ class vh extends q {
3694
3698
  name: "alluvial-link-mouse-highlight"
3695
3699
  })
3696
3700
  ).style("stroke-opacity", function(i) {
3697
- return n.some((r) => r === i.index) ? (x(this).classed("link-hovered", !0).raise(), Re.opacity.selected) : Re.opacity.unfocus;
3701
+ return n.some((r) => r === i.index) ? (x(this).classed("link-hovered", !0).raise(), ke.opacity.selected) : ke.opacity.unfocus;
3698
3702
  });
3699
3703
  }, 66);
3700
3704
  e.parent.selectAll(".node-group").on("mouseover", function(n, s) {
@@ -3732,7 +3736,7 @@ class vh extends q {
3732
3736
  });
3733
3737
  }).on("mouseout", function(n, s) {
3734
3738
  const a = x(this), i = bt(a.attr("transform"));
3735
- if (a.classed("node-hovered", !1).attr("transform", `translate(${i.x + 2}, ${i.y})`).select("rect.node").attr("width", Re.nodeWidth), s.x0 - 2 === 0) {
3739
+ if (a.classed("node-hovered", !1).attr("transform", `translate(${i.x + 2}, ${i.y})`).select("rect.node").attr("width", ke.nodeWidth), s.x0 - 2 === 0) {
3736
3740
  const l = e.services.domUtils.generateElementIDString(
3737
3741
  `alluvial-node-title-${s.index}`
3738
3742
  ), c = e.parent.select(`g#${l}`), d = bt(c.attr("transform"));
@@ -3768,7 +3772,7 @@ class vh extends q {
3768
3772
  }
3769
3773
  class yh extends q {
3770
3774
  constructor() {
3771
- super(...arguments), this.type = "grid", this.renderType = W.SVG;
3775
+ super(...arguments), this.type = "grid", this.renderType = j.SVG;
3772
3776
  }
3773
3777
  render(e = !0) {
3774
3778
  const t = v(this.getOptions(), "grid", "x", "enabled"), n = v(this.getOptions(), "grid", "y", "enabled");
@@ -3864,7 +3868,7 @@ class yh extends q {
3864
3868
  }
3865
3869
  class Eh extends q {
3866
3870
  constructor() {
3867
- super(...arguments), this.type = "area", this.renderType = W.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
3871
+ super(...arguments), this.type = "area", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
3868
3872
  const { hoveredElement: t } = e.detail;
3869
3873
  this.parent.selectAll("path.area").transition("legend-hover-area").call(
3870
3874
  (n) => this.services.transitions.setupTransition({
@@ -3908,7 +3912,7 @@ class Eh extends q {
3908
3912
  if (E) {
3909
3913
  const M = T.select(
3910
3914
  `path.${this.model.getColorClassName({
3911
- classNameTypes: [F.STROKE],
3915
+ classNameTypes: [z.STROKE],
3912
3916
  dataGroupName: l[0].name
3913
3917
  })}`
3914
3918
  ).node();
@@ -3920,8 +3924,8 @@ class Eh extends q {
3920
3924
  else {
3921
3925
  const I = v(this.model.getOptions(), "color", "scale");
3922
3926
  if (I !== null) {
3923
- const D = Object.keys(I);
3924
- L = I[D[0]];
3927
+ const N = Object.keys(I);
3928
+ L = I[N[0]];
3925
3929
  }
3926
3930
  }
3927
3931
  ms.appendOrUpdateLinearGradient({
@@ -3948,7 +3952,7 @@ class Eh extends q {
3948
3952
  ).attr("class", "area").attr(
3949
3953
  "class",
3950
3954
  (M) => this.model.getColorClassName({
3951
- classNameTypes: [F.FILL],
3955
+ classNameTypes: [z.FILL],
3952
3956
  dataGroupName: M.name,
3953
3957
  originalClassName: "area"
3954
3958
  })
@@ -3958,11 +3962,11 @@ class Eh extends q {
3958
3962
  }) : (A.attr("opacity", 0).merge(O).attr("class", "area").attr(
3959
3963
  "class",
3960
3964
  (M) => this.model.getColorClassName({
3961
- classNameTypes: [F.FILL, F.STROKE],
3965
+ classNameTypes: [z.FILL, z.STROKE],
3962
3966
  dataGroupName: M.name,
3963
3967
  originalClassName: "area"
3964
3968
  })
3965
- ).style("fill", (M) => y.model.getFillColor(M.name)).transition().call(
3969
+ ).style("fill", (M) => y.model.getFillColor(M.name, null, M.data)).transition().call(
3966
3970
  (M) => this.services.transitions.setupTransition({
3967
3971
  transition: M,
3968
3972
  name: "area-update-enter",
@@ -3971,7 +3975,7 @@ class Eh extends q {
3971
3975
  ).attr("opacity", d ? 1 : Be.opacity.selected).attr("d", (M) => {
3972
3976
  const { data: L } = M;
3973
3977
  return r(L);
3974
- }), d && A.attr("fill-opacity", Be.opacity.selected).style("stroke", (M) => y.model.getStrokeColor(M.name)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
3978
+ }), d && A.attr("fill-opacity", Be.opacity.selected).style("stroke", (M) => y.model.getStrokeColor(M.name, null, M.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
3975
3979
  }
3976
3980
  destroy() {
3977
3981
  const e = this.services.events;
@@ -3980,7 +3984,7 @@ class Eh extends q {
3980
3984
  }
3981
3985
  class bh extends q {
3982
3986
  constructor() {
3983
- super(...arguments), this.type = "line", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
3987
+ super(...arguments), this.type = "line", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
3984
3988
  const { hoveredElement: t } = e.detail;
3985
3989
  this.parent.selectAll("path.line").transition("legend-hover-line").call(
3986
3990
  (n) => this.services.transitions.setupTransition({
@@ -4034,11 +4038,11 @@ class bh extends q {
4034
4038
  h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("line", !0).attr("opacity", 0).merge(h).data(p, (g) => g.name).attr(
4035
4039
  "class",
4036
4040
  (g) => this.model.getColorClassName({
4037
- classNameTypes: [F.STROKE],
4041
+ classNameTypes: [z.STROKE],
4038
4042
  dataGroupName: g.name,
4039
4043
  originalClassName: "line"
4040
4044
  })
4041
- ).style("stroke", (g) => this.model.getStrokeColor(g.name)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "line").attr("aria-label", (g) => {
4045
+ ).style("stroke", (g) => this.model.getStrokeColor(g.name, null, g.data)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "line").attr("aria-label", (g) => {
4042
4046
  const { data: m } = g;
4043
4047
  return m.map((E) => {
4044
4048
  const O = this.services.cartesianScales.getRangeIdentifier(E);
@@ -4060,13 +4064,13 @@ class bh extends q {
4060
4064
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
4061
4065
  }
4062
4066
  }
4063
- const zs = 5;
4067
+ const Fs = 5;
4064
4068
  function gl(o, e) {
4065
- return o > e - zs && o < e + zs;
4069
+ return o > e - Fs && o < e + Fs;
4066
4070
  }
4067
4071
  class wa extends q {
4068
4072
  constructor() {
4069
- super(...arguments), this.type = "ruler", this.renderType = W.SVG, this.isXGridEnabled = v(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = v(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
4073
+ super(...arguments), this.type = "ruler", this.renderType = j.SVG, this.isXGridEnabled = v(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = v(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
4070
4074
  }
4071
4075
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4072
4076
  // @ts-ignore
@@ -4131,7 +4135,7 @@ class wa extends q {
4131
4135
  this.isEventListenerAdded = !0;
4132
4136
  const e = this, t = this.services.domUtils.getHolder(), n = this.model.getDisplayData();
4133
4137
  let s = function(a) {
4134
- const i = Ft(a, e.parent.node());
4138
+ const i = zt(a, e.parent.node());
4135
4139
  e.showRuler(a, i);
4136
4140
  };
4137
4141
  if (n.length > 100) {
@@ -4152,9 +4156,9 @@ class wa extends q {
4152
4156
  this.backdrop = S.appendOrSelect(e, "svg.chart-grid-backdrop");
4153
4157
  }
4154
4158
  }
4155
- class zn extends q {
4159
+ class Fn extends q {
4156
4160
  constructor() {
4157
- super(...arguments), this.type = "scatter", this.renderType = W.SVG, this.handleChartHolderOnHover = () => {
4161
+ super(...arguments), this.type = "scatter", this.renderType = j.SVG, this.handleChartHolderOnHover = () => {
4158
4162
  if (!this.parent)
4159
4163
  throw new Error("Parent not defined");
4160
4164
  this.parent.selectAll("circle.dot").transition("chart-holder-hover-scatter").call(
@@ -4288,7 +4292,7 @@ class zn extends q {
4288
4292
  i.getOrientation()
4289
4293
  ), { fadeInOnChartHolderMouseover: h } = this.configs;
4290
4294
  e.raise().classed("dot", !0).attr("class", (u) => {
4291
- const g = i.getDomainIdentifier(u), E = this.model.getIsFilled(u[r], u[g], u, s) ? [F.FILL, F.STROKE] : [F.STROKE];
4295
+ const g = i.getDomainIdentifier(u), E = this.model.getIsFilled(u[r], u[g], u, s) ? [z.FILL, z.STROKE] : [z.STROKE];
4292
4296
  return this.model.getColorClassName({
4293
4297
  classNameTypes: E,
4294
4298
  dataGroupName: u[r],
@@ -4338,7 +4342,7 @@ class zn extends q {
4338
4342
  a.classed("hovered", !0).attr(
4339
4343
  "class",
4340
4344
  (l) => e.model.getColorClassName({
4341
- classNameTypes: [F.FILL],
4345
+ classNameTypes: [z.FILL],
4342
4346
  dataGroupName: l[t],
4343
4347
  originalClassName: a.attr("class")
4344
4348
  })
@@ -4408,7 +4412,7 @@ class zn extends q {
4408
4412
  }
4409
4413
  class Ca extends q {
4410
4414
  constructor(e, t, n) {
4411
- super(e, t, n), this.type = "axes", this.renderType = W.SVG, this.truncation = {
4415
+ super(e, t, n), this.type = "axes", this.renderType = j.SVG, this.truncation = {
4412
4416
  [G.LEFT]: !1,
4413
4417
  [G.RIGHT]: !1,
4414
4418
  [G.TOP]: !1,
@@ -4448,10 +4452,10 @@ class Ca extends q {
4448
4452
  g.attr("aria-hidden", !0);
4449
4453
  return;
4450
4454
  }
4451
- const A = v(E, "scaleType"), M = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), D = v(E, "truncation", "type"), j = v(E, "truncation", "threshold"), k = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), z = S.appendOrSelect(m, "g.tick"), w = S.appendOrSelect(z, "text").text("0"), Q = S.getSVGElementSize(w.node(), {
4455
+ const A = v(E, "scaleType"), M = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), N = v(E, "truncation", "type"), W = v(E, "truncation", "threshold"), k = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), F = S.appendOrSelect(m, "g.tick"), w = S.appendOrSelect(F, "text").text("0"), Q = S.getSVGElementSize(w.node(), {
4452
4456
  useBBox: !0
4453
4457
  }).height;
4454
- z.remove();
4458
+ F.remove();
4455
4459
  const me = this.scaleType || E.scaleType || ue.LINEAR, K = h(p).tickSizeOuter(0);
4456
4460
  if (p.ticks) {
4457
4461
  let U;
@@ -4601,16 +4605,16 @@ class Ca extends q {
4601
4605
  this.getNumberOfFittingTicks(i, Q, ot.ticks.horizontalSpaceRatio)
4602
4606
  ), m.call(K), g.call(K)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === G.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
4603
4607
  }
4604
- if (M ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), D !== lt.NONE && A === ue.LABELS && !I) {
4608
+ if (M ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), N !== lt.NONE && A === ue.LABELS && !I) {
4605
4609
  const U = this.services.cartesianScales.getScaleDomain(t);
4606
4610
  if (U.length > 0) {
4607
4611
  const J = a.select(`g.axis.${t} g.ticks g.tick`).html();
4608
4612
  l.selectAll("g.ticks g.tick").html(J);
4609
4613
  const ae = this;
4610
4614
  l.selectAll("g.tick text").data(U).text(function(re) {
4611
- return re.length > j ? (ae.truncation[t] = !0, Ot(re, D, k)) : re;
4615
+ return re.length > W ? (ae.truncation[t] = !0, Ot(re, N, k)) : re;
4612
4616
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(U).text(function(re) {
4613
- return re.length > j ? Ot(re, D, k) : re;
4617
+ return re.length > W ? Ot(re, N, k) : re;
4614
4618
  }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(U);
4615
4619
  }
4616
4620
  }
@@ -4773,7 +4777,7 @@ class ml extends Ca {
4773
4777
  }
4774
4778
  class Sh extends q {
4775
4779
  constructor() {
4776
- super(...arguments), this.type = "2D-axes", this.renderType = W.SVG, this.children = {}, this.thresholds = [], this.margins = {
4780
+ super(...arguments), this.type = "2D-axes", this.renderType = j.SVG, this.children = {}, this.thresholds = [], this.margins = {
4777
4781
  top: 0,
4778
4782
  right: 0,
4779
4783
  bottom: 0,
@@ -4938,7 +4942,7 @@ class fl extends q {
4938
4942
  }
4939
4943
  class Oh extends q {
4940
4944
  constructor() {
4941
- super(...arguments), this.type = "boxplot", this.renderType = W.SVG;
4945
+ super(...arguments), this.type = "boxplot", this.renderType = j.SVG;
4942
4946
  }
4943
4947
  render(e) {
4944
4948
  const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getDataGroupNames(), i = this.services.cartesianScales.getMainXScale(), r = this.services.cartesianScales.getMainYScale(), [l, c] = i.range(), [d, p] = r.range(), h = c - l, u = d - p;
@@ -4950,11 +4954,11 @@ class Oh extends q {
4950
4954
  m
4951
4955
  ), y = Math.floor((E ? h : u) / a.length), A = Math.min(y / 2, 16), M = this.model.getBoxplotData(), L = t.selectAll(".box-group").data(M);
4952
4956
  L.exit().remove();
4953
- const I = L.enter().append("g").attr("class", "box-group"), D = L.merge(I);
4957
+ const I = L.enter().append("g").attr("class", "box-group"), N = L.merge(I);
4954
4958
  I.append("path").merge(L.select("path.vertical-line.start")).attr(
4955
4959
  "class",
4956
4960
  () => this.model.getColorClassName({
4957
- classNameTypes: [F.STROKE],
4961
+ classNameTypes: [z.STROKE],
4958
4962
  originalClassName: "vertical-line start"
4959
4963
  })
4960
4964
  ).attr("stroke-width", Ae.strokeWidth.default).attr("fill", "none").transition().call(
@@ -4964,12 +4968,12 @@ class Oh extends q {
4964
4968
  animate: e
4965
4969
  })
4966
4970
  ).attr("d", (C) => {
4967
- const V = g.getDomainValue(C[s]), z = V, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.quartiles.q_25);
4968
- return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
4971
+ const V = g.getDomainValue(C[s]), F = V, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.quartiles.q_25);
4972
+ return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
4969
4973
  }), I.append("path").merge(L.select("path.vertical-line.end")).attr(
4970
4974
  "class",
4971
4975
  () => this.model.getColorClassName({
4972
- classNameTypes: [F.STROKE],
4976
+ classNameTypes: [z.STROKE],
4973
4977
  originalClassName: "vertical-line end"
4974
4978
  })
4975
4979
  ).attr("stroke-width", Ae.strokeWidth.default).attr("fill", "none").transition().call(
@@ -4979,12 +4983,12 @@ class Oh extends q {
4979
4983
  animate: e
4980
4984
  })
4981
4985
  ).attr("d", (C) => {
4982
- const V = g.getDomainValue(C[s]), z = V, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.quartiles.q_75);
4983
- return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
4986
+ const V = g.getDomainValue(C[s]), F = V, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.quartiles.q_75);
4987
+ return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
4984
4988
  }), I.append("path").merge(L.select("path.box")).attr(
4985
4989
  "class",
4986
4990
  () => this.model.getColorClassName({
4987
- classNameTypes: [F.FILL, F.STROKE],
4991
+ classNameTypes: [z.FILL, z.STROKE],
4988
4992
  originalClassName: "box"
4989
4993
  })
4990
4994
  ).attr("fill-opacity", Ae.box.opacity.default).attr("stroke-width", Ae.strokeWidth.default).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (C) => C[s]).transition().call(
@@ -4994,19 +4998,19 @@ class Oh extends q {
4994
4998
  animate: e
4995
4999
  })
4996
5000
  ).attr("d", (C) => {
4997
- const V = g.getDomainValue(C[s]) - A / 2, z = V + A, w = g.getRangeValue(
5001
+ const V = g.getDomainValue(C[s]) - A / 2, F = V + A, w = g.getRangeValue(
4998
5002
  Math[E ? "max" : "min"](C.quartiles.q_75, C.quartiles.q_25)
4999
5003
  ), Q = w + Math.abs(
5000
5004
  g.getRangeValue(C.quartiles.q_75) - g.getRangeValue(C.quartiles.q_25)
5001
5005
  );
5002
- return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
5006
+ return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
5003
5007
  }), I.append("path").merge(L.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (C) => {
5004
- const V = g.getDomainValue(C[s]) - A / 2, z = V + A, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.max);
5005
- return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
5008
+ const V = g.getDomainValue(C[s]) - A / 2, F = V + A, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.max);
5009
+ return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
5006
5010
  }), I.append("path").merge(L.select("path.whisker.start")).attr(
5007
5011
  "class",
5008
5012
  () => this.model.getColorClassName({
5009
- classNameTypes: [F.STROKE],
5013
+ classNameTypes: [z.STROKE],
5010
5014
  originalClassName: "whisker start"
5011
5015
  })
5012
5016
  ).attr("stroke-width", Ae.strokeWidth.thicker).attr("fill", "none").transition().call(
@@ -5016,12 +5020,12 @@ class Oh extends q {
5016
5020
  animate: e
5017
5021
  })
5018
5022
  ).attr("d", (C) => {
5019
- const V = g.getDomainValue(C[s]) - A / 4, z = V + A / 2, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.min);
5020
- return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
5023
+ const V = g.getDomainValue(C[s]) - A / 4, F = V + A / 2, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.min);
5024
+ return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
5021
5025
  }), I.append("path").merge(L.select("path.median")).attr("fill", "none").attr(
5022
5026
  "class",
5023
5027
  () => this.model.getColorClassName({
5024
- classNameTypes: [F.STROKE],
5028
+ classNameTypes: [z.STROKE],
5025
5029
  originalClassName: "median"
5026
5030
  })
5027
5031
  ).attr("stroke-width", 2).transition().call(
@@ -5031,12 +5035,12 @@ class Oh extends q {
5031
5035
  animate: e
5032
5036
  })
5033
5037
  ).attr("d", (C) => {
5034
- const V = g.getDomainValue(C[s]) - A / 2, z = V + A, w = g.getRangeValue(C.quartiles.q_50);
5035
- return ye({ x0: V, x1: z, y0: w, y1: w }, m);
5038
+ const V = g.getDomainValue(C[s]) - A / 2, F = V + A, w = g.getRangeValue(C.quartiles.q_50);
5039
+ return ye({ x0: V, x1: F, y0: w, y1: w }, m);
5036
5040
  }), I.append("path").merge(L.select("path.whisker.end")).attr(
5037
5041
  "class",
5038
5042
  () => this.model.getColorClassName({
5039
- classNameTypes: [F.STROKE],
5043
+ classNameTypes: [z.STROKE],
5040
5044
  originalClassName: "whisker end"
5041
5045
  })
5042
5046
  ).attr("stroke-width", Ae.strokeWidth.thicker).attr("fill", "none").transition().call(
@@ -5046,10 +5050,10 @@ class Oh extends q {
5046
5050
  animate: e
5047
5051
  })
5048
5052
  ).attr("d", (C) => {
5049
- const V = g.getDomainValue(C[s]) - A / 4, z = V + A / 2, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.whiskers.max);
5050
- return ye({ x0: V, x1: z, y0: w, y1: Q }, m);
5053
+ const V = g.getDomainValue(C[s]) - A / 4, F = V + A / 2, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.whiskers.max);
5054
+ return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
5051
5055
  });
5052
- const j = D.selectAll("circle.outlier").data(
5056
+ const W = N.selectAll("circle.outlier").data(
5053
5057
  (C) => C.outliers.map((V) => ({
5054
5058
  min: C.whiskers.min,
5055
5059
  max: C.whiskers.max,
@@ -5057,12 +5061,12 @@ class Oh extends q {
5057
5061
  value: V
5058
5062
  }))
5059
5063
  );
5060
- j.exit().remove();
5061
- const k = j.enter().append("circle");
5062
- j.merge(k).attr("r", Ae.circle.radius).attr(
5064
+ W.exit().remove();
5065
+ const k = W.enter().append("circle");
5066
+ W.merge(k).attr("r", Ae.circle.radius).attr(
5063
5067
  "class",
5064
5068
  () => this.model.getColorClassName({
5065
- classNameTypes: [F.FILL, F.STROKE],
5069
+ classNameTypes: [z.FILL, z.STROKE],
5066
5070
  originalClassName: "outlier"
5067
5071
  })
5068
5072
  ).attr("fill-opacity", Ae.circle.opacity.default).attr("cx", O).transition().call(
@@ -5085,7 +5089,7 @@ class Oh extends q {
5085
5089
  label: v(t, "locale", "translations", "group") || v(t, "tooltip", "groupLabel") || "Group",
5086
5090
  value: a[n],
5087
5091
  class: e.model.getColorClassName({
5088
- classNameTypes: [F.TOOLTIP]
5092
+ classNameTypes: [z.TOOLTIP]
5089
5093
  })
5090
5094
  },
5091
5095
  {
@@ -5156,7 +5160,7 @@ class Oh extends q {
5156
5160
  label: v(t, "locale", "translations", "group") || v(t, "tooltip", "groupLabel") || "Group",
5157
5161
  value: i[n],
5158
5162
  class: e.model.getColorClassName({
5159
- classNameTypes: [F.TOOLTIP]
5163
+ classNameTypes: [z.TOOLTIP]
5160
5164
  })
5161
5165
  },
5162
5166
  {
@@ -5198,7 +5202,7 @@ class Oh extends q {
5198
5202
  }
5199
5203
  class xh extends q {
5200
5204
  constructor() {
5201
- super(...arguments), this.type = "zero-line", this.renderType = W.SVG;
5205
+ super(...arguments), this.type = "zero-line", this.renderType = j.SVG;
5202
5206
  }
5203
5207
  render(e) {
5204
5208
  const t = this.services.cartesianScales.getRangeAxisPosition({
@@ -5229,9 +5233,9 @@ class xh extends q {
5229
5233
  ).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
5230
5234
  }
5231
5235
  }
5232
- class Th extends zn {
5236
+ class Th extends Fn {
5233
5237
  constructor() {
5234
- super(...arguments), this.type = "bubble", this.renderType = W.SVG;
5238
+ super(...arguments), this.type = "bubble", this.renderType = j.SVG;
5235
5239
  }
5236
5240
  getRadiusScale(e) {
5237
5241
  const t = this.getOptions(), { radiusMapsTo: n } = t.bubble, s = e.data(), a = s.map((c) => c[n]).filter((c) => c), i = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = a.length > 0, l = r ? Wt(a) : [1, 1];
@@ -5255,7 +5259,7 @@ class Th extends zn {
5255
5259
  ).attr("cx", d).attr("cy", p).attr("r", (h) => a(h[s] || 1)).attr(
5256
5260
  "class",
5257
5261
  (h) => this.model.getColorClassName({
5258
- classNameTypes: [F.FILL, F.STROKE],
5262
+ classNameTypes: [z.FILL, z.STROKE],
5259
5263
  dataGroupName: h[i],
5260
5264
  originalClassName: "dot"
5261
5265
  })
@@ -5279,7 +5283,7 @@ class Th extends zn {
5279
5283
  }
5280
5284
  class Lh extends q {
5281
5285
  constructor() {
5282
- super(...arguments), this.type = "bullet", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
5286
+ super(...arguments), this.type = "bullet", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
5283
5287
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
5284
5288
  this.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call(
5285
5289
  (s) => this.services.transitions.setupTransition({
@@ -5340,11 +5344,14 @@ class Lh extends q {
5340
5344
  ).attr(
5341
5345
  "class",
5342
5346
  (O) => this.model.getColorClassName({
5343
- classNameTypes: [F.FILL],
5347
+ classNameTypes: [z.FILL],
5344
5348
  dataGroupName: O[n],
5345
5349
  originalClassName: "bar"
5346
5350
  })
5347
- ).style("fill", (O) => this.model.getFillColor(O[n])).attr("d", (O) => {
5351
+ ).style("fill", (O) => {
5352
+ const T = this.services.cartesianScales.getDomainIdentifier(O);
5353
+ return this.model.getFillColor(O[n], O[T], O);
5354
+ }).attr("d", (O) => {
5348
5355
  const y = this.services.cartesianScales.getDomainValue(O) - 4, A = y + 8, M = this.services.cartesianScales.getRangeValue(0) + 1, L = this.services.cartesianScales.getRangeValue(O);
5349
5356
  return ye(
5350
5357
  { x0: y, x1: A, y0: M, y1: L },
@@ -5416,7 +5423,7 @@ class Lh extends q {
5416
5423
  label: v(t, "locale", "translations", "group") || v(t, "tooltip", "groupLabel") || "Group",
5417
5424
  value: l[n],
5418
5425
  class: e.model.getColorClassName({
5419
- classNameTypes: [F.TOOLTIP],
5426
+ classNameTypes: [z.TOOLTIP],
5420
5427
  dataGroupName: l[n]
5421
5428
  })
5422
5429
  },
@@ -5490,14 +5497,14 @@ function El(o, e) {
5490
5497
  }
5491
5498
  function bl(o, e) {
5492
5499
  return typeof e == "string" && (e = o.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
5493
- return Fs(o, t);
5494
- }) } : Fs(o, e);
5500
+ return zs(o, t);
5501
+ }) } : zs(o, e);
5495
5502
  }
5496
- function Fs(o, e) {
5497
- var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = Fn(o, e);
5503
+ function zs(o, e) {
5504
+ var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = zn(o, e);
5498
5505
  return t == null && n == null ? { type: "Feature", properties: s, geometry: a } : n == null ? { type: "Feature", id: t, properties: s, geometry: a } : { type: "Feature", id: t, bbox: n, properties: s, geometry: a };
5499
5506
  }
5500
- function Fn(o, e) {
5507
+ function zn(o, e) {
5501
5508
  var t = yl(o.transform), n = o.arcs;
5502
5509
  function s(d, p) {
5503
5510
  p.length && p.pop();
@@ -5599,7 +5606,7 @@ function Ol(o) {
5599
5606
  return Math.abs(a);
5600
5607
  }
5601
5608
  function xl(o) {
5602
- return Fn(o, Tl.apply(this, arguments));
5609
+ return zn(o, Tl.apply(this, arguments));
5603
5610
  }
5604
5611
  function Tl(o, e) {
5605
5612
  var t = {}, n = [], s = [];
@@ -5625,7 +5632,7 @@ function Tl(o, e) {
5625
5632
  }), n.push(l);
5626
5633
  }
5627
5634
  function r(l) {
5628
- return Ol(Fn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
5635
+ return Ol(zn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
5629
5636
  }
5630
5637
  return n.forEach(function(l) {
5631
5638
  if (!l._) {
@@ -5662,7 +5669,7 @@ function Tl(o, e) {
5662
5669
  }
5663
5670
  class Ah extends wa {
5664
5671
  constructor() {
5665
- super(...arguments), this.type = "ruler-binned", this.renderType = W.SVG;
5672
+ super(...arguments), this.type = "ruler-binned", this.renderType = j.SVG;
5666
5673
  }
5667
5674
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5668
5675
  // @ts-ignore
@@ -5680,7 +5687,7 @@ class Ah extends wa {
5680
5687
  label: I,
5681
5688
  value: ne(O, `data.${I}`),
5682
5689
  class: this.model.getColorClassName({
5683
- classNameTypes: [F.TOOLTIP],
5690
+ classNameTypes: [z.TOOLTIP],
5684
5691
  dataGroupName: I
5685
5692
  })
5686
5693
  })).filter((I) => I.value !== 0);
@@ -5698,7 +5705,7 @@ class Ah extends wa {
5698
5705
  {
5699
5706
  label: ne(a, "locale.translations.total") || ne(a, "tooltip.totalLabel") || "Total",
5700
5707
  value: A.reduce(
5701
- (D, j) => D + parseFloat(ne(O, `data.${j}`)),
5708
+ (N, W) => N + parseFloat(ne(O, `data.${W}`)),
5702
5709
  0
5703
5710
  )
5704
5711
  }
@@ -5732,12 +5739,12 @@ const wh = (o, e) => {
5732
5739
  height: 8,
5733
5740
  width: 7.5,
5734
5741
  id: "arrowLeft"
5735
- }, Rh = {
5742
+ }, kh = {
5736
5743
  d: "M0 0v8l7-4z",
5737
5744
  height: 8,
5738
5745
  width: 7.5,
5739
5746
  id: "arrowRight"
5740
- }, kh = {
5747
+ }, Rh = {
5741
5748
  d: "M5.32 9.513a4.75 4.75 0 100-9.5 4.75 4.75 0 000 9.5z",
5742
5749
  height: 10,
5743
5750
  width: 10,
@@ -5760,7 +5767,7 @@ const wh = (o, e) => {
5760
5767
  };
5761
5768
  class Vh extends hl {
5762
5769
  constructor(e, t, n) {
5763
- super(e, t, n), this.type = "color-legend", this.renderType = W.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
5770
+ super(e, t, n), this.type = "color-legend", this.renderType = j.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
5764
5771
  const s = this.getComponentContainer(), { width: a } = S.getSVGElementSize(s, {
5765
5772
  useAttrs: !0
5766
5773
  }), i = v(this.getOptions(), "data", "loading");
@@ -5809,21 +5816,21 @@ class Vh extends hl {
5809
5816
  O.push(
5810
5817
  i === nn.LINEAR ? `stop-color-${E}-${r}-${k}` : `fill-${E}-${r}-${k}`
5811
5818
  );
5812
- const y = ta(p[0], p[1]), A = ni(y, 3), M = Ze().domain(p).range([0, u]), L = Vn(M).tickSize(0).tickValues(A), { code: I, number: D } = v(t, "locale");
5813
- L.tickFormat((k) => D(k, I));
5814
- let j;
5819
+ const y = ta(p[0], p[1]), A = ni(y, 3), M = Ze().domain(p).range([0, u]), L = Vn(M).tickSize(0).tickValues(A), { code: I, number: N } = v(t, "locale");
5820
+ L.tickFormat((k) => N(k, I));
5821
+ let W;
5815
5822
  switch (i) {
5816
5823
  case nn.LINEAR:
5817
5824
  this.drawLinear(O, g, u);
5818
5825
  break;
5819
5826
  case nn.QUANTIZE:
5820
- j = this.drawQuantize(
5827
+ W = this.drawQuantize(
5821
5828
  O,
5822
5829
  E,
5823
5830
  d,
5824
5831
  g,
5825
5832
  u
5826
- ), M.range([j, u]);
5833
+ ), M.range([W, u]);
5827
5834
  break;
5828
5835
  default:
5829
5836
  throw Error("Entered color legend type is not supported.");
@@ -5853,7 +5860,7 @@ class Vh extends hl {
5853
5860
  }
5854
5861
  class Gh extends dl {
5855
5862
  constructor() {
5856
- super(...arguments), this.type = "meter-title", this.renderType = W.SVG;
5863
+ super(...arguments), this.type = "meter-title", this.renderType = j.SVG;
5857
5864
  }
5858
5865
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5859
5866
  // @ts-ignore
@@ -5983,7 +5990,7 @@ class Wn extends q {
5983
5990
  }
5984
5991
  class Bh extends q {
5985
5992
  constructor() {
5986
- super(...arguments), this.type = "circle-pack", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
5993
+ super(...arguments), this.type = "circle-pack", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
5987
5994
  const { hoveredElement: t } = e.detail;
5988
5995
  this.parent.selectAll("circle.node").transition("legend-hover-circlepack").call(
5989
5996
  (n) => this.services.transitions.setupTransition({
@@ -6018,11 +6025,11 @@ class Bh extends q {
6018
6025
  g.merge(u).attr("class", (m) => {
6019
6026
  const E = c && r === 3 ? this.getZoomClass(m) : "";
6020
6027
  return this.model.getColorClassName({
6021
- classNameTypes: [F.FILL, F.STROKE],
6028
+ classNameTypes: [z.FILL, z.STROKE],
6022
6029
  dataGroupName: m.data.dataGroupName,
6023
6030
  originalClassName: m.children ? `node ${E}` : `node node-leaf ${E}`
6024
6031
  });
6025
- }).style("fill", (m) => this.model.getFillColor(m.data.dataGroupName)).style("stroke", (m) => this.model.getFillColor(m.data.dataGroupName)).attr("cx", (m) => m.x).attr("cy", (m) => m.y).transition("circlepack-leaf-update-enter").call(
6032
+ }).style("fill", (m) => this.model.getFillColor(m.data.dataGroupName, null, m.data)).style("stroke", (m) => this.model.getFillColor(m.data.dataGroupName, null, m.data)).attr("cx", (m) => m.x).attr("cy", (m) => m.y).transition("circlepack-leaf-update-enter").call(
6026
6033
  (m) => this.services.transitions.setupTransition({
6027
6034
  transition: m,
6028
6035
  name: "circlepack-leaf-update-enter"
@@ -6032,7 +6039,7 @@ class Bh extends q {
6032
6039
  // turn off the highlight class on children circles
6033
6040
  unhighlightChildren(e) {
6034
6041
  const t = e.map((n) => n.data);
6035
- this.parent.selectAll("circle.node").filter((n) => t.some((s) => s === n.data) && n.depth > 1).style("stroke", (n) => this.model.getFillColor(n.data.dataGroupName));
6042
+ this.parent.selectAll("circle.node").filter((n) => t.some((s) => s === n.data) && n.depth > 1).style("stroke", (n) => this.model.getFillColor(n.data.dataGroupName, null, n.data));
6036
6043
  }
6037
6044
  // highlight the children circles with a stroke
6038
6045
  highlightChildren(e) {
@@ -6162,7 +6169,7 @@ function Ll(o, e) {
6162
6169
  }
6163
6170
  class Al extends q {
6164
6171
  constructor() {
6165
- super(...arguments), this.type = "pie", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
6172
+ super(...arguments), this.type = "pie", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
6166
6173
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
6167
6174
  this.parent.selectAll("path.slice").transition("legend-hover-bar").call(
6168
6175
  (s) => this.services.transitions.setupTransition({
@@ -6196,11 +6203,11 @@ class Al extends q {
6196
6203
  h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
6197
6204
  "class",
6198
6205
  (w) => this.model.getColorClassName({
6199
- classNameTypes: [F.FILL],
6206
+ classNameTypes: [z.FILL],
6200
6207
  dataGroupName: w.data[a],
6201
6208
  originalClassName: "slice"
6202
6209
  })
6203
- ).style("fill", (w) => t.model.getFillColor(w.data[a])).attr("d", this.arc).transition().call(
6210
+ ).style("fill", (w) => t.model.getFillColor(w.data[a], null, w.data)).attr("d", this.arc).transition().call(
6204
6211
  (w) => this.services.transitions.setupTransition({
6205
6212
  transition: w,
6206
6213
  name: "pie_slice_enter_update",
@@ -6237,13 +6244,13 @@ class Al extends q {
6237
6244
  }
6238
6245
  return `translate(${w.xPosition}, ${w.yPosition})`;
6239
6246
  }), this.renderCallouts(L);
6240
- const I = v(s, "donut") ? "donut" : "pie", D = v(s, I, "alignment"), { width: j } = S.getSVGElementSize(this.getParent(), {
6247
+ const I = v(s, "donut") ? "donut" : "pie", N = v(s, I, "alignment"), { width: W } = S.getSVGElementSize(this.getParent(), {
6241
6248
  useAttrs: !0
6242
6249
  }), k = O ? te.xOffset : 0, C = O ? te.yOffset : 0;
6243
6250
  let V = l + k;
6244
- D === Ce.CENTER ? V = j / 2 : D === Ce.RIGHT && (V = j - l - te.xOffset);
6245
- let z = l + C;
6246
- L.length > 0 && (z += te.yOffsetCallout), n.attr("x", V + 7).attr("y", z), this.addEventListeners();
6251
+ N === Ce.CENTER ? V = W / 2 : N === Ce.RIGHT && (V = W - l - te.xOffset);
6252
+ let F = l + C;
6253
+ L.length > 0 && (F += te.yOffsetCallout), n.attr("x", V + 7).attr("y", F), this.addEventListeners();
6247
6254
  }
6248
6255
  renderCallouts(e) {
6249
6256
  const t = S.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", X.GROUP).attr("data-name", "callouts"), n = t.selectAll("g.callout").data(e);
@@ -6336,7 +6343,7 @@ class Al extends q {
6336
6343
  }
6337
6344
  class Hh extends Al {
6338
6345
  constructor() {
6339
- super(...arguments), this.type = "donut", this.renderType = W.SVG;
6346
+ super(...arguments), this.type = "donut", this.renderType = j.SVG;
6340
6347
  }
6341
6348
  render(e = !0) {
6342
6349
  super.render(e);
@@ -6381,7 +6388,7 @@ class Hh extends Al {
6381
6388
  const Ws = "4,10 8,6 12,10", js = "12,6 8,10 4,6";
6382
6389
  class $h extends q {
6383
6390
  constructor() {
6384
- super(...arguments), this.type = "gauge", this.renderType = W.SVG;
6391
+ super(...arguments), this.type = "gauge", this.renderType = j.SVG;
6385
6392
  }
6386
6393
  getValue() {
6387
6394
  var n;
@@ -6427,7 +6434,7 @@ class $h extends q {
6427
6434
  u.enter().append("path").merge(u).attr(
6428
6435
  "class",
6429
6436
  this.model.getColorClassName({
6430
- classNameTypes: [F.FILL],
6437
+ classNameTypes: [z.FILL],
6431
6438
  dataGroupName: "value",
6432
6439
  originalClassName: "arc-foreground"
6433
6440
  })
@@ -6449,14 +6456,17 @@ class $h extends q {
6449
6456
  "transform",
6450
6457
  `translate(0, ${p})`
6451
6458
  ), u = r(i), g = S.appendOrSelect(h, "g.gauge-value-number"), { code: m, number: E } = v(t, "locale"), O = v(t, "gauge", "numberFormatter"), T = g.selectAll("text.gauge-value-number").data([s]);
6452
- T.enter().append("text").attr("class", "gauge-value-number").merge(T).style("font-size", `${u}px`).attr("text-anchor", "middle").text((j) => E(Number(O(j)), m));
6459
+ T.enter().append("text").attr("class", "gauge-value-number").merge(T).style("font-size", `${u}px`).attr("text-anchor", "middle").text((W) => {
6460
+ let k;
6461
+ return W != null ? k = Number(W.toFixed(2)) % 1 !== 0 ? W.toFixed(2) : W.toFixed() : k = 0, O ? O(k) : E(Number(k), m);
6462
+ });
6453
6463
  const { width: y } = S.getSVGElementSize(
6454
6464
  S.appendOrSelect(e, "text.gauge-value-number"),
6455
6465
  { useBBox: !0 }
6456
- ), A = u / 2, M = d ? "%" : "", L = S.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${A}px`).attr("x", y / 2).text(M), { width: I, height: D } = S.getSVGElementSize(L, {
6466
+ ), A = u / 2, M = d ? "%" : "", L = S.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${A}px`).attr("x", y / 2).text(M), { width: I, height: N } = S.getSVGElementSize(L, {
6457
6467
  useBBox: !0
6458
6468
  });
6459
- L.attr("y", `-${D / 2}px`), g.attr("transform", `translate(-${I / 2}, 0)`);
6469
+ L.attr("y", `-${N / 2}px`), g.attr("transform", `translate(-${I / 2}, 0)`);
6460
6470
  }
6461
6471
  /**
6462
6472
  * adds the delta number for the gauge
@@ -6468,9 +6478,10 @@ class $h extends q {
6468
6478
  "transform",
6469
6479
  `translate(0, ${l(r) + p})`
6470
6480
  ), m = S.appendOrSelect(g, "text.gauge-delta-number"), E = h ? "%" : "";
6471
- m.data(s === null ? [] : [s]), m.enter().append("text").classed("gauge-delta-number", !0).merge(m).attr("text-anchor", "middle").style("font-size", `${l(r)}px`).text(
6472
- (A) => `${i(Number(c(A)), a)}${E}`
6473
- );
6481
+ m.data(s === null ? [] : [s]), m.enter().append("text").classed("gauge-delta-number", !0).merge(m).attr("text-anchor", "middle").style("font-size", `${l(r)}px`).text((A) => {
6482
+ let M;
6483
+ return A != null ? M = Number(A.toFixed(2)) % 1 !== 0 ? A.toFixed(2) : A.toFixed() : M = 0, c ? `${c(M)}${E}` : `${i(Number(M), a)}${E}`;
6484
+ });
6474
6485
  const { width: O } = S.getSVGElementSize(
6475
6486
  S.appendOrSelect(t, ".gauge-delta-number"),
6476
6487
  { useBBox: !0 }
@@ -6530,7 +6541,7 @@ class $h extends q {
6530
6541
  }
6531
6542
  class Uh extends Wn {
6532
6543
  constructor() {
6533
- super(...arguments), this.type = "grouped-bar", this.renderType = W.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
6544
+ super(...arguments), this.type = "grouped-bar", this.renderType = j.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
6534
6545
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
6535
6546
  this.parent.selectAll("path.bar").transition("legend-hover-bar").call(
6536
6547
  (s) => this.services.transitions.setupTransition({
@@ -6585,11 +6596,14 @@ class Uh extends Wn {
6585
6596
  ).attr(
6586
6597
  "class",
6587
6598
  (h) => this.model.getColorClassName({
6588
- classNameTypes: [F.FILL],
6599
+ classNameTypes: [z.FILL],
6589
6600
  dataGroupName: h[s],
6590
6601
  originalClassName: "bar"
6591
6602
  })
6592
- ).style("fill", (h) => this.model.getFillColor(h[s])).attr("d", (h) => {
6603
+ ).style("fill", (h) => {
6604
+ const u = this.services.cartesianScales.getDomainIdentifier(h);
6605
+ return this.model.getFillColor(h[s], h[u], h);
6606
+ }).attr("d", (h) => {
6593
6607
  const u = this.groupScale(h[s]), g = this.getBarWidth(), m = u, E = u + g, O = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), T = this.services.cartesianScales.getValueThroughAxisPosition(O, 0), y = this.services.cartesianScales.getRangeValue(h), A = this.services.cartesianScales.getDomainValue(h) - g / 2, M = A + g;
6594
6608
  if (!this.isOutsideZoomedDomain(A, M))
6595
6609
  return ye(
@@ -6691,9 +6705,9 @@ class Uh extends Wn {
6691
6705
  this.groupScale = Bn().domain(e).rangeRound([0, this.getGroupWidth()]);
6692
6706
  }
6693
6707
  }
6694
- class zh extends q {
6708
+ class Fh extends q {
6695
6709
  constructor() {
6696
- super(...arguments), this.type = "heatmap", this.renderType = W.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
6710
+ super(...arguments), this.type = "heatmap", this.renderType = j.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
6697
6711
  x: 0,
6698
6712
  y: 0
6699
6713
  }, this.handleAxisOnHover = (e) => {
@@ -6772,7 +6786,10 @@ class zh extends q {
6772
6786
  value: m.value,
6773
6787
  originalClassName: `heat-${m.index}`
6774
6788
  })
6775
- ).classed("heat", !0).classed("null-state", (m) => m.index === -1 || m.value === null).attr("width", this.xBandwidth).attr("height", this.yBandwidth).style("fill", (m) => m.index === -1 || m.value === null ? `url(#${u})` : this.model.getFillColor(Number(m.value))).attr("aria-label", (m) => m.value);
6789
+ ).classed("heat", !0).classed("null-state", (m) => m.index === -1 || m.value === null).attr("width", this.xBandwidth).attr("height", this.yBandwidth).style("fill", (m) => {
6790
+ const E = this.services.cartesianScales.getDomainIdentifier(m);
6791
+ return m.index === -1 || m.value === null ? `url(#${u})` : this.model.getFillColor(Number(m.value), m[E], m);
6792
+ }).attr("aria-label", (m) => m.value);
6776
6793
  this.createOuterBox("g.cell-highlight", this.xBandwidth, this.yBandwidth), this.createOuterBox(
6777
6794
  "g.multi-cell.column-highlight",
6778
6795
  this.xBandwidth,
@@ -6863,9 +6880,9 @@ class zh extends q {
6863
6880
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
6864
6881
  }
6865
6882
  }
6866
- class Fh extends q {
6883
+ class zh extends q {
6867
6884
  constructor() {
6868
- super(...arguments), this.type = "histogram", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
6885
+ super(...arguments), this.type = "histogram", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
6869
6886
  const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
6870
6887
  this.parent.selectAll("path.bar").transition("legend-hover-bar").call(
6871
6888
  (a) => this.services.transitions.setupTransition({
@@ -6899,11 +6916,11 @@ class Fh extends q {
6899
6916
  ).attr(
6900
6917
  "class",
6901
6918
  (d) => this.model.getColorClassName({
6902
- classNameTypes: [F.FILL],
6919
+ classNameTypes: [z.FILL],
6903
6920
  dataGroupName: d[a],
6904
6921
  originalClassName: "bar"
6905
6922
  })
6906
- ).style("fill", (d) => this.model.getFillColor(d[a])).attr("d", (d) => {
6923
+ ).style("fill", (d) => this.model.getFillColor(d[a], null, d)).attr("d", (d) => {
6907
6924
  const p = ne(d, "data");
6908
6925
  if (!p)
6909
6926
  return;
@@ -6933,7 +6950,7 @@ class Fh extends q {
6933
6950
  label: e.tooltip.groupLabel || "Group",
6934
6951
  value: r[t],
6935
6952
  class: a.model.getColorClassName({
6936
- classNameTypes: [F.TOOLTIP],
6953
+ classNameTypes: [z.TOOLTIP],
6937
6954
  dataGroupName: r[t]
6938
6955
  })
6939
6956
  },
@@ -6957,9 +6974,9 @@ class Fh extends q {
6957
6974
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
6958
6975
  }
6959
6976
  }
6960
- class Wh extends zn {
6977
+ class Wh extends Fn {
6961
6978
  constructor() {
6962
- super(...arguments), this.type = "lollipop", this.renderType = W.SVG, this.handleScatterOnHover = (e) => {
6979
+ super(...arguments), this.type = "lollipop", this.renderType = j.SVG, this.handleScatterOnHover = (e) => {
6963
6980
  const t = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
6964
6981
  this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ? Ge.weight.unselected : Ge.weight.selected);
6965
6982
  }, this.handleScatterOnMouseOut = () => {
@@ -6998,7 +7015,7 @@ class Wh extends zn {
6998
7015
  const E = g.enter().append("line").attr("opacity", 0).merge(g).classed("line", !0).attr(
6999
7016
  "class",
7000
7017
  (O) => this.model.getColorClassName({
7001
- classNameTypes: [F.STROKE],
7018
+ classNameTypes: [z.STROKE],
7002
7019
  dataGroupName: O[s],
7003
7020
  originalClassName: "line"
7004
7021
  })
@@ -7031,7 +7048,7 @@ class Wh extends zn {
7031
7048
  }
7032
7049
  class jh extends q {
7033
7050
  constructor() {
7034
- super(...arguments), this.type = "meter", this.renderType = W.SVG;
7051
+ super(...arguments), this.type = "meter", this.renderType = j.SVG;
7035
7052
  }
7036
7053
  getStackedBounds(e, t) {
7037
7054
  let n = 0;
@@ -7068,7 +7085,7 @@ class jh extends q {
7068
7085
  g.enter().append("rect").classed("value", !0).merge(g).attr("x", (y) => y.x).attr("y", 0).attr("height", () => u || (a ? pe.height.proportional : pe.height.default)).attr(
7069
7086
  "class",
7070
7087
  (y) => this.model.getColorClassName({
7071
- classNameTypes: [F.FILL],
7088
+ classNameTypes: [z.FILL],
7072
7089
  dataGroupName: y[c],
7073
7090
  originalClassName: m
7074
7091
  })
@@ -7078,7 +7095,7 @@ class jh extends q {
7078
7095
  name: "meter-bar-update",
7079
7096
  animate: e
7080
7097
  })
7081
- ).attr("width", (y) => y.value > d ? p(d) : y.width).style("fill", (y) => t.model.getFillColor(y[c])).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (y) => y.value), g.exit().remove();
7098
+ ).attr("width", (y) => y.value > d ? p(d) : y.width).style("fill", (y) => t.model.getFillColor(y[c], null, y)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "value").attr("aria-label", (y) => y.value), g.exit().remove();
7082
7099
  const E = v(s, "meter", "peak");
7083
7100
  let O = E;
7084
7101
  E !== null && (E > d ? O = d : E < i[0].value && (O = i[0].value > d ? d : i[0].value));
@@ -7142,7 +7159,7 @@ class jh extends q {
7142
7159
  }
7143
7160
  class Xh extends q {
7144
7161
  constructor() {
7145
- super(...arguments), this.type = "radar", this.renderType = W.SVG, this.getLabelDimensions = (e) => {
7162
+ super(...arguments), this.type = "radar", this.renderType = j.SVG, this.getLabelDimensions = (e) => {
7146
7163
  const t = S.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), n = S.appendOrSelect(t, "text").text(e), { width: s, height: a } = S.getSVGElementSize(n.node(), { useBBox: !0 });
7147
7164
  return t.remove(), { width: s, height: a };
7148
7165
  }, this.normalizeFlatData = (e) => {
@@ -7171,14 +7188,14 @@ class Xh extends q {
7171
7188
  transition: n,
7172
7189
  name: "legend-hover-blob"
7173
7190
  })
7174
- ).style("fill-opacity", (n) => n.name !== t.datum().name ? Fe.opacity.unselected : Fe.opacity.selected).style("stroke-opacity", (n) => n.name !== t.datum().name ? Fe.opacity.unselected : 1);
7191
+ ).style("fill-opacity", (n) => n.name !== t.datum().name ? ze.opacity.unselected : ze.opacity.selected).style("stroke-opacity", (n) => n.name !== t.datum().name ? ze.opacity.unselected : 1);
7175
7192
  }, this.handleLegendMouseOut = () => {
7176
7193
  this.parent.selectAll("g.blobs path").transition("legend-mouseout-blob").call(
7177
7194
  (e) => this.services.transitions.setupTransition({
7178
7195
  transition: e,
7179
7196
  name: "legend-mouseout-blob"
7180
7197
  })
7181
- ).style("fill-opacity", Fe.opacity.selected).style("stroke-opacity", 1);
7198
+ ).style("fill-opacity", ze.opacity.selected).style("stroke-opacity", 1);
7182
7199
  };
7183
7200
  }
7184
7201
  init() {
@@ -7188,27 +7205,27 @@ class Xh extends q {
7188
7205
  render(e = !0) {
7189
7206
  const t = this.getComponentContainer(), { width: n, height: s } = S.getSVGElementSize(t, {
7190
7207
  useAttrs: !0
7191
- }), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = v(r, "data", "groupMapsTo"), c = v(r, "radar", "axes", "value"), { angle: d, value: p } = v(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } = Fe;
7208
+ }), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = v(r, "data", "groupMapsTo"), c = v(r, "radar", "axes", "value"), { angle: d, value: p } = v(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } = ze;
7192
7209
  this.uniqueKeys = Array.from(new Set(a.map((_) => _[d]))), this.uniqueGroups = Array.from(new Set(a.map((_) => _[l]))), this.fullDataNormalized = this.normalizeFlatData(a), this.groupedDataNormalized = this.normalizeGroupedData(i);
7193
7210
  const T = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), M = (Math.min(n, s) - T) / 2;
7194
7211
  if (M <= 0)
7195
7212
  return;
7196
- const L = Bn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = fn(this.fullDataNormalized.map((_) => _[p])), D = Ze().domain([
7213
+ const L = Bn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = fn(this.fullDataNormalized.map((_) => _[p])), N = Ze().domain([
7197
7214
  I >= 0 ? 0 : I,
7198
7215
  gs(this.fullDataNormalized.map((_) => _[p]))
7199
- ]).range([m, M]).nice(g), j = D.ticks(g), k = (_) => this.model.getFillColor(_), C = oi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => D(_[p])).curve(li), V = this.uniqueKeys.map((_) => {
7200
- const N = this.getLabelDimensions(_).width, P = Si(
7216
+ ]).range([m, M]).nice(g), W = N.ticks(g), k = (_, D, P) => this.model.getFillColor(_, D, P), C = oi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => N(_[p])).curve(li), V = this.uniqueKeys.map((_) => {
7217
+ const D = this.getLabelDimensions(_).width, P = Si(
7201
7218
  L(_),
7202
7219
  M
7203
7220
  );
7204
- return N + P;
7221
+ return D + P;
7205
7222
  }), w = {
7206
7223
  x: gs(V) + h,
7207
7224
  y: s / 2
7208
- }, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(j, (_) => _), K = (_) => this.uniqueKeys.map((N) => ({ [d]: N, [p]: _ }));
7225
+ }, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(W, (_) => _), K = (_) => this.uniqueKeys.map((D) => ({ [d]: D, [p]: _ }));
7209
7226
  me.join(
7210
7227
  (_) => _.append("path").attr("opacity", 0).attr("transform", `translate(${w.x}, ${w.y})`).attr("fill", "none").call(
7211
- (N) => N.transition().call(
7228
+ (D) => D.transition().call(
7212
7229
  (P) => this.services.transitions.setupTransition({
7213
7230
  transition: P,
7214
7231
  name: "radar_y_axes_enter",
@@ -7217,7 +7234,7 @@ class Xh extends q {
7217
7234
  ).attr("opacity", 1).attr("d", (P) => C(K(P)))
7218
7235
  ),
7219
7236
  (_) => _.call(
7220
- (N) => N.transition().call(
7237
+ (D) => D.transition().call(
7221
7238
  (P) => this.services.transitions.setupTransition({
7222
7239
  transition: P,
7223
7240
  name: "radar_y_axes_update",
@@ -7226,7 +7243,7 @@ class Xh extends q {
7226
7243
  ).attr("opacity", 1).attr("transform", `translate(${w.x}, ${w.y})`).attr("d", (P) => C(K(P)))
7227
7244
  ),
7228
7245
  (_) => _.call(
7229
- (N) => N.transition().call(
7246
+ (D) => D.transition().call(
7230
7247
  (P) => this.services.transitions.setupTransition({
7231
7248
  transition: P,
7232
7249
  name: "radar_y_axes_exit",
@@ -7235,26 +7252,26 @@ class Xh extends q {
7235
7252
  ).attr("d", (P) => C(K(P))).attr("opacity", 0).remove()
7236
7253
  )
7237
7254
  ), S.appendOrSelect(t, "g.x-axes").attr("role", X.GROUP).selectAll("line").data(this.uniqueKeys, (_) => _).join(
7238
- (_) => _.append("line").attr("opacity", 0).attr("class", (N) => `x-axis-${st(N)}`).attr("stroke-dasharray", "0").attr("x1", (N) => oe(L(N), 0, w).x).attr("y1", (N) => oe(L(N), 0, w).y).attr("x2", (N) => oe(L(N), 0, w).x).attr("y2", (N) => oe(L(N), 0, w).y).call(
7239
- (N) => N.transition().call(
7255
+ (_) => _.append("line").attr("opacity", 0).attr("class", (D) => `x-axis-${st(D)}`).attr("stroke-dasharray", "0").attr("x1", (D) => oe(L(D), 0, w).x).attr("y1", (D) => oe(L(D), 0, w).y).attr("x2", (D) => oe(L(D), 0, w).x).attr("y2", (D) => oe(L(D), 0, w).y).call(
7256
+ (D) => D.transition().call(
7240
7257
  (P) => this.services.transitions.setupTransition({
7241
7258
  transition: P,
7242
7259
  name: "radar_x_axes_enter",
7243
7260
  animate: e
7244
7261
  })
7245
- ).attr("opacity", 1).attr("x1", (P) => oe(L(P), D.range()[0], w).x).attr("y1", (P) => oe(L(P), D.range()[0], w).y).attr("x2", (P) => oe(L(P), D.range()[1], w).x).attr("y2", (P) => oe(L(P), D.range()[1], w).y)
7262
+ ).attr("opacity", 1).attr("x1", (P) => oe(L(P), N.range()[0], w).x).attr("y1", (P) => oe(L(P), N.range()[0], w).y).attr("x2", (P) => oe(L(P), N.range()[1], w).x).attr("y2", (P) => oe(L(P), N.range()[1], w).y)
7246
7263
  ),
7247
7264
  (_) => _.call(
7248
- (N) => N.transition().call(
7265
+ (D) => D.transition().call(
7249
7266
  (P) => this.services.transitions.setupTransition({
7250
7267
  transition: P,
7251
7268
  name: "radar_x_axes_update",
7252
7269
  animate: e
7253
7270
  })
7254
- ).attr("opacity", 1).attr("x1", (P) => oe(L(P), D.range()[0], w).x).attr("y1", (P) => oe(L(P), D.range()[0], w).y).attr("x2", (P) => oe(L(P), D.range()[1], w).x).attr("y2", (P) => oe(L(P), D.range()[1], w).y)
7271
+ ).attr("opacity", 1).attr("x1", (P) => oe(L(P), N.range()[0], w).x).attr("y1", (P) => oe(L(P), N.range()[0], w).y).attr("x2", (P) => oe(L(P), N.range()[1], w).x).attr("y2", (P) => oe(L(P), N.range()[1], w).y)
7255
7272
  ),
7256
7273
  (_) => _.call(
7257
- (N) => N.transition().call(
7274
+ (D) => D.transition().call(
7258
7275
  (P) => this.services.transitions.setupTransition({
7259
7276
  transition: P,
7260
7277
  name: "radar_x_axes_exit",
@@ -7263,17 +7280,17 @@ class Xh extends q {
7263
7280
  ).attr("opacity", 0).remove()
7264
7281
  )
7265
7282
  ), S.appendOrSelect(t, "g.x-labels").attr("role", X.GROUP).selectAll("text").data(this.uniqueKeys).join(
7266
- (_) => _.append("text").text((N) => N).attr("opacity", 0).attr(
7283
+ (_) => _.append("text").text((D) => D).attr("opacity", 0).attr(
7267
7284
  "x",
7268
- (N) => oe(L(N), D.range()[1] + h, w).x
7285
+ (D) => oe(L(D), N.range()[1] + h, w).x
7269
7286
  ).attr(
7270
7287
  "y",
7271
- (N) => oe(L(N), D.range()[1] + h, w).y
7272
- ).style("text-anchor", (N) => fs(L(N)).textAnchor).style(
7288
+ (D) => oe(L(D), N.range()[1] + h, w).y
7289
+ ).style("text-anchor", (D) => fs(L(D)).textAnchor).style(
7273
7290
  "dominant-baseline",
7274
- (N) => fs(L(N)).dominantBaseline
7291
+ (D) => fs(L(D)).dominantBaseline
7275
7292
  ).call(
7276
- (N) => N.transition().call(
7293
+ (D) => D.transition().call(
7277
7294
  (P) => this.services.transitions.setupTransition({
7278
7295
  transition: P,
7279
7296
  name: "radar_x_labels_enter",
@@ -7282,7 +7299,7 @@ class Xh extends q {
7282
7299
  ).attr("opacity", 1)
7283
7300
  ),
7284
7301
  (_) => _.call(
7285
- (N) => N.transition().call(
7302
+ (D) => D.transition().call(
7286
7303
  (P) => this.services.transitions.setupTransition({
7287
7304
  transition: P,
7288
7305
  name: "radar_x_labels_update",
@@ -7290,17 +7307,17 @@ class Xh extends q {
7290
7307
  })
7291
7308
  ).attr("opacity", 1).attr(
7292
7309
  "x",
7293
- (P) => oe(L(P), D.range()[1] + h, w).x
7310
+ (P) => oe(L(P), N.range()[1] + h, w).x
7294
7311
  ).attr(
7295
7312
  "y",
7296
- (P) => oe(L(P), D.range()[1] + h, w).y
7313
+ (P) => oe(L(P), N.range()[1] + h, w).y
7297
7314
  ).end().finally(() => {
7298
7315
  const P = v(r, "radar", "alignment"), Le = this.getAlignmentXOffset(P, t, this.getParent());
7299
7316
  t.attr("x", Le);
7300
7317
  })
7301
7318
  ),
7302
7319
  (_) => _.call(
7303
- (N) => N.transition().call(
7320
+ (D) => D.transition().call(
7304
7321
  (P) => this.services.transitions.setupTransition({
7305
7322
  transition: P,
7306
7323
  name: "radar_x_labels_exit",
@@ -7311,16 +7328,16 @@ class Xh extends q {
7311
7328
  ), S.appendOrSelect(t, "g.blobs").attr("role", X.GROUP).selectAll("path").data(this.groupedDataNormalized, (_) => _.name).join(
7312
7329
  (_) => _.append("path").attr(
7313
7330
  "class",
7314
- (N) => this.model.getColorClassName({
7315
- classNameTypes: [F.FILL, F.STROKE],
7316
- dataGroupName: N.name,
7331
+ (D) => this.model.getColorClassName({
7332
+ classNameTypes: [z.FILL, z.STROKE],
7333
+ dataGroupName: D.name,
7317
7334
  originalClassName: "blob"
7318
7335
  })
7319
- ).attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (N) => N.name).attr("opacity", 0).attr(
7336
+ ).attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (D) => D.name).attr("opacity", 0).attr(
7320
7337
  "transform",
7321
7338
  e ? () => `translate(${w.x}, ${w.y}) scale(${1 + Math.random() * 0.35})` : `translate(${w.x}, ${w.y})`
7322
- ).style("fill", (N) => k(N.name)).style("fill-opacity", Fe.opacity.selected).style("stroke", (N) => k(N.name)).call((N) => {
7323
- const P = N.transition().call(
7339
+ ).style("fill", (D) => k(D.name, null, D.data)).style("fill-opacity", ze.opacity.selected).style("stroke", (D) => k(D.name, null, D.data)).call((D) => {
7340
+ const P = D.transition().call(
7324
7341
  (Le) => this.services.transitions.setupTransition({
7325
7342
  transition: Le,
7326
7343
  name: "radar_blobs_enter",
@@ -7331,13 +7348,13 @@ class Xh extends q {
7331
7348
  }),
7332
7349
  (_) => (_.attr(
7333
7350
  "class",
7334
- (N) => this.model.getColorClassName({
7335
- classNameTypes: [F.FILL, F.STROKE],
7336
- dataGroupName: N.name,
7351
+ (D) => this.model.getColorClassName({
7352
+ classNameTypes: [z.FILL, z.STROKE],
7353
+ dataGroupName: D.name,
7337
7354
  originalClassName: "blob"
7338
7355
  })
7339
- ).style("fill", (N) => k(N.name)).style("stroke", (N) => k(N.name)), _.call(
7340
- (N) => N.transition().call(
7356
+ ).style("fill", (D) => k(D.name, null, D.data)).style("stroke", (D) => k(D.name, null, D.data)), _.call(
7357
+ (D) => D.transition().call(
7341
7358
  (P) => this.services.transitions.setupTransition({
7342
7359
  transition: P,
7343
7360
  name: "radar_blobs_update",
@@ -7345,8 +7362,8 @@ class Xh extends q {
7345
7362
  })
7346
7363
  ).attr("opacity", 1).attr("transform", `translate(${w.x}, ${w.y})`).attr("d", (P) => C(P.data))
7347
7364
  ), _),
7348
- (_) => _.call((N) => {
7349
- const P = N.transition().call(
7365
+ (_) => _.call((D) => {
7366
+ const P = D.transition().call(
7350
7367
  (Le) => this.services.transitions.setupTransition({
7351
7368
  transition: Le,
7352
7369
  name: "radar_blobs_exit",
@@ -7359,28 +7376,28 @@ class Xh extends q {
7359
7376
  ), P.attr("opacity", 0).remove();
7360
7377
  })
7361
7378
  ), S.appendOrSelect(t, "g.dots").attr("role", X.GROUP).selectAll("circle").data(this.fullDataNormalized.filter((_) => v(_, p) !== null)).join(
7362
- (_) => _.append("circle").attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (N) => N[c]),
7379
+ (_) => _.append("circle").attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (D) => D[c]),
7363
7380
  (_) => _,
7364
7381
  (_) => _.remove()
7365
7382
  ).attr(
7366
7383
  "class",
7367
7384
  (_) => this.model.getColorClassName({
7368
- classNameTypes: [F.FILL],
7385
+ classNameTypes: [z.FILL],
7369
7386
  dataGroupName: _[l],
7370
7387
  originalClassName: st(_[d])
7371
7388
  })
7372
- ).attr("cx", (_) => oe(L(_[d]), D(_[p]), w).x).attr("cy", (_) => oe(L(_[d]), D(_[p]), w).y).attr("r", 0).attr("opacity", 0).style("fill", (_) => k(_[l])), S.appendOrSelect(t, "g.x-axes-rect").attr("role", X.GROUP).selectAll("rect").data(this.uniqueKeys).join(
7389
+ ).attr("cx", (_) => oe(L(_[d]), N(_[p]), w).x).attr("cy", (_) => oe(L(_[d]), N(_[p]), w).y).attr("r", 0).attr("opacity", 0).style("fill", (_) => k(_[l])), S.appendOrSelect(t, "g.x-axes-rect").attr("role", X.GROUP).selectAll("rect").data(this.uniqueKeys).join(
7373
7390
  (_) => _.append("rect"),
7374
7391
  (_) => _,
7375
7392
  (_) => _.remove()
7376
- ).attr("x", w.x).attr("y", w.y - E / 2).attr("width", D.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Oi(L(_))}, ${w.x}, ${w.y})`);
7393
+ ).attr("x", w.x).attr("y", w.y - E / 2).attr("width", N.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Oi(L(_))}, ${w.x}, ${w.y})`);
7377
7394
  const { code: ae, number: re } = v(r, "locale");
7378
- S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Wt(j)).join(
7379
- (_) => _.append("text").attr("opacity", 0).text((N) => re(N, ae)).attr(
7395
+ S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Wt(W)).join(
7396
+ (_) => _.append("text").attr("opacity", 0).text((D) => re(D, ae)).attr(
7380
7397
  "x",
7381
- (N) => oe(-Math.PI / 2, D(N), w).x + u
7382
- ).attr("y", (N) => oe(-Math.PI / 2, D(N), w).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
7383
- (N) => N.transition().call(
7398
+ (D) => oe(-Math.PI / 2, N(D), w).x + u
7399
+ ).attr("y", (D) => oe(-Math.PI / 2, N(D), w).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
7400
+ (D) => D.transition().call(
7384
7401
  (P) => this.services.transitions.setupTransition({
7385
7402
  transition: P,
7386
7403
  name: "radar_y_labels_enter",
@@ -7389,7 +7406,7 @@ class Xh extends q {
7389
7406
  ).attr("opacity", 1)
7390
7407
  ),
7391
7408
  (_) => _.call(
7392
- (N) => N.transition().call(
7409
+ (D) => D.transition().call(
7393
7410
  (P) => this.services.transitions.setupTransition({
7394
7411
  transition: P,
7395
7412
  name: "radar_y_labels_update",
@@ -7397,11 +7414,11 @@ class Xh extends q {
7397
7414
  })
7398
7415
  ).text((P) => P).attr("opacity", 1).attr(
7399
7416
  "x",
7400
- (P) => oe(-Math.PI / 2, D(P), w).x + u
7401
- ).attr("y", (P) => oe(-Math.PI / 2, D(P), w).y)
7417
+ (P) => oe(-Math.PI / 2, N(P), w).x + u
7418
+ ).attr("y", (P) => oe(-Math.PI / 2, N(P), w).y)
7402
7419
  ),
7403
7420
  (_) => _.call(
7404
- (N) => N.transition().call(
7421
+ (D) => D.transition().call(
7405
7422
  (P) => this.services.transitions.setupTransition({
7406
7423
  transition: P,
7407
7424
  name: "radar_y_labels_exit",
@@ -7440,7 +7457,7 @@ class Xh extends q {
7440
7457
  i.classed("hovered", !0).attr("stroke-dasharray", "4 4"), r.classed("hovered", !0).attr(
7441
7458
  "opacity",
7442
7459
  (u) => l.indexOf(u[d]) !== -1 ? 1 : 0
7443
- ).attr("r", Fe.dotsRadius);
7460
+ ).attr("r", ze.dotsRadius);
7444
7461
  const h = e.fullDataNormalized.filter(
7445
7462
  (u) => u[t] === s && l.indexOf(u[d]) !== -1
7446
7463
  );
@@ -7450,9 +7467,9 @@ class Xh extends q {
7450
7467
  items: h.filter((u) => typeof u[p] == "number").map((u) => ({
7451
7468
  label: u[d],
7452
7469
  value: u[p],
7453
- color: e.model.getFillColor(u[d]),
7470
+ color: e.model.getFillColor(u[d], null, u),
7454
7471
  class: e.model.getColorClassName({
7455
- classNameTypes: [F.TOOLTIP],
7472
+ classNameTypes: [z.TOOLTIP],
7456
7473
  dataGroupName: u[d]
7457
7474
  })
7458
7475
  }))
@@ -7484,7 +7501,7 @@ class Xh extends q {
7484
7501
  }
7485
7502
  class Zh extends Wn {
7486
7503
  constructor() {
7487
- super(...arguments), this.type = "simple-bar", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
7504
+ super(...arguments), this.type = "simple-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
7488
7505
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
7489
7506
  this.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call(
7490
7507
  (s) => this.services.transitions.setupTransition({
@@ -7516,11 +7533,14 @@ class Zh extends Wn {
7516
7533
  ).attr(
7517
7534
  "class",
7518
7535
  (c) => this.model.getColorClassName({
7519
- classNameTypes: [F.FILL],
7536
+ classNameTypes: [z.FILL],
7520
7537
  dataGroupName: c[n],
7521
7538
  originalClassName: "bar"
7522
7539
  })
7523
- ).style("fill", (c) => this.model.getFillColor(c[n])).attr("d", (c) => {
7540
+ ).style("fill", (c) => {
7541
+ const d = this.services.cartesianScales.getDomainIdentifier(c);
7542
+ return this.model.getFillColor(c[n], c[d], c);
7543
+ }).attr("d", (c) => {
7524
7544
  const d = this.services.cartesianScales.getRangeIdentifier(), p = this.getBarWidth(), h = c[d], u = this.services.cartesianScales.getDomainValue(c) - p / 2, g = u + p;
7525
7545
  let m, E;
7526
7546
  if (Array.isArray(h) && h.length === 2)
@@ -7606,7 +7626,7 @@ class Yh extends fl {
7606
7626
  }
7607
7627
  class qh extends q {
7608
7628
  constructor() {
7609
- super(...arguments), this.type = "area-stacked", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
7629
+ super(...arguments), this.type = "area-stacked", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
7610
7630
  const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
7611
7631
  this.parent.selectAll("path.area").transition("legend-hover-area").call(
7612
7632
  (a) => this.services.transitions.setupTransition({
@@ -7640,11 +7660,11 @@ class qh extends q {
7640
7660
  ).y0((g) => p(g[0])).y1((g) => p(g[1])).curve(this.services.curves.getD3Curve()), h.exit().attr("opacity", 0).remove(), h.enter().append("path").attr("opacity", 0).merge(h).data(r, (g) => v(g, 0, a)).attr("class", "area").attr(
7641
7661
  "class",
7642
7662
  (g) => this.model.getColorClassName({
7643
- classNameTypes: [F.FILL],
7663
+ classNameTypes: [z.FILL],
7644
7664
  dataGroupName: v(g, 0, a),
7645
7665
  originalClassName: "area"
7646
7666
  })
7647
- ).style("fill", (g) => n.model.getFillColor(v(g, 0, a))).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "area").attr("aria-label", (g) => v(g, 0, a)).transition().call(
7667
+ ).style("fill", (g) => n.model.getFillColor(v(g, 0, a), null, g)).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "area").attr("aria-label", (g) => v(g, 0, a)).transition().call(
7648
7668
  (g) => this.services.transitions.setupTransition({
7649
7669
  transition: g,
7650
7670
  name: "area-update-enter",
@@ -7655,7 +7675,7 @@ class qh extends q {
7655
7675
  }
7656
7676
  class Kh extends Wn {
7657
7677
  constructor() {
7658
- super(...arguments), this.type = "stacked-bar", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
7678
+ super(...arguments), this.type = "stacked-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
7659
7679
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.model.getOptions().data;
7660
7680
  this.parent.selectAll("path.bar").transition("legend-hover-bar").call(
7661
7681
  (s) => this.services.transitions.setupTransition({
@@ -7695,11 +7715,14 @@ class Kh extends Wn {
7695
7715
  ).attr(
7696
7716
  "class",
7697
7717
  (c) => this.model.getColorClassName({
7698
- classNameTypes: [F.FILL],
7718
+ classNameTypes: [z.FILL],
7699
7719
  dataGroupName: c[s],
7700
7720
  originalClassName: "bar"
7701
7721
  })
7702
- ).style("fill", (c) => this.model.getFillColor(c[s])).attr("d", (c) => {
7722
+ ).style(
7723
+ "fill",
7724
+ (c) => this.model.getFillColor(c[s], c.data.sharedStackKey, c.data)
7725
+ ).attr("d", (c) => {
7703
7726
  const d = c.data.sharedStackKey, p = this.getBarWidth(), h = this.services.cartesianScales.getDomainValue(d) - p / 2, u = h + p, g = this.services.cartesianScales.getRangeValue(c[0]);
7704
7727
  let m = this.services.cartesianScales.getRangeValue(c[1]);
7705
7728
  if (!this.isOutsideZoomedDomain(h, u)) {
@@ -7781,9 +7804,9 @@ class Kh extends Wn {
7781
7804
  e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
7782
7805
  }
7783
7806
  }
7784
- class Jh extends zn {
7807
+ class Jh extends Fn {
7785
7808
  constructor() {
7786
- super(...arguments), this.type = "scatter-stacked", this.renderType = W.SVG;
7809
+ super(...arguments), this.type = "scatter-stacked", this.renderType = j.SVG;
7787
7810
  }
7788
7811
  render(e) {
7789
7812
  if (!v(this.getOptions(), "points", "enabled"))
@@ -7832,7 +7855,7 @@ class Jh extends zn {
7832
7855
  const it = 6;
7833
7856
  class Qh extends q {
7834
7857
  constructor() {
7835
- super(...arguments), this.type = "tree", this.renderType = W.SVG;
7858
+ super(...arguments), this.type = "tree", this.renderType = j.SVG;
7836
7859
  }
7837
7860
  getLongestLabel(e) {
7838
7861
  let t = "";
@@ -7867,18 +7890,18 @@ class Qh extends q {
7867
7890
  name: r,
7868
7891
  children: i
7869
7892
  }), u = 10, g = n / 6, m = (L) => {
7870
- const I = h.descendants().reverse(), D = h.links();
7871
- let j = h, k = h;
7893
+ const I = h.descendants().reverse(), N = h.links();
7894
+ let W = h, k = h;
7872
7895
  h.eachBefore((H) => {
7873
- H.x < j.x && (j = H), H.x > k.x && (k = H);
7896
+ H.x < W.x && (W = H), H.x > k.x && (k = H);
7874
7897
  });
7875
- const C = k.x - j.x, V = t.transition().call(
7898
+ const C = k.x - W.x, V = t.transition().call(
7876
7899
  (H) => this.services.transitions.setupTransition({
7877
7900
  transition: H,
7878
7901
  name: "tree-update-viewbox",
7879
7902
  animate: !0
7880
7903
  })
7881
- ).attr("viewBox", [-p.left, j.x, n, C].join(" ")), z = M.selectAll("g").data(I, (H) => H.id), w = this, Q = z.enter().append("g").attr("transform", () => `translate(${L.y0},${L.x0})`).attr(
7904
+ ).attr("viewBox", [-p.left, W.x, n, C].join(" ")), F = M.selectAll("g").data(I, (H) => H.id), w = this, Q = F.enter().append("g").attr("transform", () => `translate(${L.y0},${L.x0})`).attr(
7882
7905
  "class",
7883
7906
  (H) => H.depth !== 0 && H.children && H.children.length > 0 ? "clickable" : null
7884
7907
  ).on("mouseover", function(H, Z) {
@@ -7900,8 +7923,8 @@ class Qh extends q {
7900
7923
  datum: Z
7901
7924
  });
7902
7925
  });
7903
- Q.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -it : it).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(), z.merge(Q).transition(V).attr("transform", (H) => `translate(${H.y},${H.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), z.exit().transition(V).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
7904
- const me = A.selectAll("path").data(D, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
7926
+ Q.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -it : it).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(), F.merge(Q).transition(V).attr("transform", (H) => `translate(${H.y},${H.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), F.exit().transition(V).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
7927
+ const me = A.selectAll("path").data(N, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
7905
7928
  const H = { x: L.x0, y: L.y0 };
7906
7929
  return y({ source: H, target: H });
7907
7930
  });
@@ -7925,23 +7948,23 @@ class Qh extends q {
7925
7948
  m(h);
7926
7949
  }
7927
7950
  }
7928
- var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21b", Rl = "#d2a106", kl = "#b28600", Dl = "#8e6a00", Nl = "#684e00", Pl = "#483700", Vl = "#302400", Gl = "#1c1500", Bl = {
7951
+ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21b", kl = "#d2a106", Rl = "#b28600", Dl = "#8e6a00", Nl = "#684e00", Pl = "#483700", Vl = "#302400", Gl = "#1c1500", Bl = {
7929
7952
  10: Cl,
7930
7953
  20: _l,
7931
7954
  30: Il,
7932
- 40: Rl,
7933
- 50: kl,
7955
+ 40: kl,
7956
+ 50: Rl,
7934
7957
  60: Dl,
7935
7958
  70: Nl,
7936
7959
  80: Pl,
7937
7960
  90: Vl,
7938
7961
  100: Gl
7939
- }, Hl = "#fff2e8", $l = "#ffd9be", Ul = "#ffb784", zl = "#ff832b", Fl = "#eb6200", Wl = "#ba4e00", jl = "#8a3800", Xl = "#5e2900", Zl = "#3e1a00", Yl = "#231000", ql = {
7962
+ }, Hl = "#fff2e8", $l = "#ffd9be", Ul = "#ffb784", Fl = "#ff832b", zl = "#eb6200", Wl = "#ba4e00", jl = "#8a3800", Xl = "#5e2900", Zl = "#3e1a00", Yl = "#231000", ql = {
7940
7963
  10: Hl,
7941
7964
  20: $l,
7942
7965
  30: Ul,
7943
- 40: zl,
7944
- 50: Fl,
7966
+ 40: Fl,
7967
+ 50: zl,
7945
7968
  60: Wl,
7946
7969
  70: jl,
7947
7970
  80: Xl,
@@ -7980,22 +8003,22 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
7980
8003
  80: Ac,
7981
8004
  90: Mc,
7982
8005
  100: wc
7983
- }, _c = "#edf5ff", Ic = "#d0e2ff", Rc = "#a6c8ff", kc = "#78a9ff", Dc = "#4589ff", Nc = "#0f62fe", Pc = "#0043ce", Vc = "#002d9c", Gc = "#001d6c", Bc = "#001141", Hc = {
8006
+ }, _c = "#edf5ff", Ic = "#d0e2ff", kc = "#a6c8ff", Rc = "#78a9ff", Dc = "#4589ff", Nc = "#0f62fe", Pc = "#0043ce", Vc = "#002d9c", Gc = "#001d6c", Bc = "#001141", Hc = {
7984
8007
  10: _c,
7985
8008
  20: Ic,
7986
- 30: Rc,
7987
- 40: kc,
8009
+ 30: kc,
8010
+ 40: Rc,
7988
8011
  50: Dc,
7989
8012
  60: Nc,
7990
8013
  70: Pc,
7991
8014
  80: Vc,
7992
8015
  90: Gc,
7993
8016
  100: Bc
7994
- }, $c = "#e5f6ff", Uc = "#bae6ff", zc = "#82cfff", Fc = "#33b1ff", Wc = "#1192e8", jc = "#0072c3", Xc = "#00539a", Zc = "#003a6d", Yc = "#012749", qc = "#061727", Kc = {
8017
+ }, $c = "#e5f6ff", Uc = "#bae6ff", Fc = "#82cfff", zc = "#33b1ff", Wc = "#1192e8", jc = "#0072c3", Xc = "#00539a", Zc = "#003a6d", Yc = "#012749", qc = "#061727", Kc = {
7995
8018
  10: $c,
7996
8019
  20: Uc,
7997
- 30: zc,
7998
- 40: Fc,
8020
+ 30: Fc,
8021
+ 40: zc,
7999
8022
  50: Wc,
8000
8023
  60: jc,
8001
8024
  70: Xc,
@@ -8035,10 +8058,10 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
8035
8058
  80: Md,
8036
8059
  90: wd,
8037
8060
  100: Cd
8038
- }, Id = "#f4f4f4", Rd = "#e0e0e0", kd = "#c6c6c6", Dd = "#a8a8a8", Nd = "#8d8d8d", Pd = "#6f6f6f", Vd = "#525252", Gd = "#393939", Bd = "#262626", Hd = "#161616", $d = {
8061
+ }, Id = "#f4f4f4", kd = "#e0e0e0", Rd = "#c6c6c6", Dd = "#a8a8a8", Nd = "#8d8d8d", Pd = "#6f6f6f", Vd = "#525252", Gd = "#393939", Bd = "#262626", Hd = "#161616", $d = {
8039
8062
  10: Id,
8040
- 20: Rd,
8041
- 30: kd,
8063
+ 20: kd,
8064
+ 30: Rd,
8042
8065
  40: Dd,
8043
8066
  50: Nd,
8044
8067
  60: Pd,
@@ -8046,10 +8069,10 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
8046
8069
  80: Gd,
8047
8070
  90: Bd,
8048
8071
  100: Hd
8049
- }, Ud = "#f7f3f2", zd = "#e5e0df", Fd = "#cac5c4", Wd = "#ada8a8", jd = "#8f8b8b", Xd = "#726e6e", Zd = "#565151", Yd = "#3c3838", qd = "#272525", Kd = "#171414", Jd = {
8072
+ }, Ud = "#f7f3f2", Fd = "#e5e0df", zd = "#cac5c4", Wd = "#ada8a8", jd = "#8f8b8b", Xd = "#726e6e", Zd = "#565151", Yd = "#3c3838", qd = "#272525", Kd = "#171414", Jd = {
8050
8073
  10: Ud,
8051
- 20: zd,
8052
- 30: Fd,
8074
+ 20: Fd,
8075
+ 30: zd,
8053
8076
  40: Wd,
8054
8077
  50: jd,
8055
8078
  60: Xd,
@@ -8101,7 +8124,7 @@ const Qd = (o) => {
8101
8124
  let eh = 0;
8102
8125
  class eu extends q {
8103
8126
  constructor() {
8104
- super(...arguments), this.type = "treemap", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
8127
+ super(...arguments), this.type = "treemap", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
8105
8128
  const { hoveredElement: t } = e.detail;
8106
8129
  this.parent.selectAll("g[data-name='leaf']").transition("legend-hover-treemap").call(
8107
8130
  (n) => this.services.transitions.setupTransition({
@@ -8153,7 +8176,7 @@ class eu extends q {
8153
8176
  for (; m.depth > 1; )
8154
8177
  m = m.parent;
8155
8178
  return this.model.getColorClassName({
8156
- classNameTypes: [F.FILL],
8179
+ classNameTypes: [z.FILL],
8157
8180
  dataGroupName: m.data.name,
8158
8181
  originalClassName: "leaf"
8159
8182
  });
@@ -8166,7 +8189,7 @@ class eu extends q {
8166
8189
  ).attr("width", (m) => m.x1 - m.x0).attr("height", (m) => m.y1 - m.y0).style("fill", (m) => {
8167
8190
  for (; m.depth > 1; )
8168
8191
  m = m.parent;
8169
- return this.model.getFillColor(m.data.name);
8192
+ return this.model.getFillColor(m.data.name, null, m.data);
8170
8193
  }), h.selectAll("clipPath").data(
8171
8194
  (m) => m.data.showLabel !== !0 ? [] : [1],
8172
8195
  (m) => m
@@ -8224,7 +8247,7 @@ class eu extends q {
8224
8247
  name: "graph_element_mouseover_fill_update"
8225
8248
  })
8226
8249
  ).style("fill", (r) => {
8227
- const l = e.model.getFillColor(r.parent.data.name);
8250
+ const l = e.model.getFillColor(r.parent.data.name, null, r.data);
8228
8251
  return l && (a = l), sa(a).darker(0.7).toString();
8229
8252
  }), e.services.events.dispatchEvent(f.Tooltip.SHOW, {
8230
8253
  event: t,
@@ -8271,7 +8294,7 @@ class eu extends q {
8271
8294
  transition: i,
8272
8295
  name: "graph_element_mouseout_fill_update"
8273
8296
  })
8274
- ).style("fill", (i) => e.model.getFillColor(i.parent.data.name)), e.services.events.dispatchEvent(f.Treemap.LEAF_MOUSEOUT, {
8297
+ ).style("fill", (i) => e.model.getFillColor(i.parent.data.name, null, i.data)), e.services.events.dispatchEvent(f.Treemap.LEAF_MOUSEOUT, {
8275
8298
  event: t,
8276
8299
  element: s,
8277
8300
  datum: n
@@ -8283,7 +8306,7 @@ class eu extends q {
8283
8306
  }
8284
8307
  class tu extends q {
8285
8308
  constructor() {
8286
- super(...arguments), this.type = "wordcloud", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
8309
+ super(...arguments), this.type = "wordcloud", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
8287
8310
  const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
8288
8311
  this.parent.selectAll("text.word").transition("legend-hover-wordcloud").call(
8289
8312
  (s) => this.services.transitions.setupTransition({
@@ -8335,7 +8358,7 @@ class tu extends q {
8335
8358
  }).attr(
8336
8359
  "class",
8337
8360
  (T) => t.model.getColorClassName({
8338
- classNameTypes: [F.FILL],
8361
+ classNameTypes: [z.FILL],
8339
8362
  dataGroupName: T[c],
8340
8363
  originalClassName: `word ${T.size > 32 ? "light" : ""}`
8341
8364
  })
@@ -8387,7 +8410,7 @@ class tu extends q {
8387
8410
  label: ne(e, "locale.translations.group") || ne(e, "tooltip.groupLabel") || "Group",
8388
8411
  value: i[t],
8389
8412
  class: n.model.getColorClassName({
8390
- classNameTypes: [F.TOOLTIP],
8413
+ classNameTypes: [z.TOOLTIP],
8391
8414
  dataGroupName: i[t]
8392
8415
  })
8393
8416
  }
@@ -8421,7 +8444,7 @@ class tu extends q {
8421
8444
  }
8422
8445
  class th extends q {
8423
8446
  constructor() {
8424
- super(...arguments), this.type = "geo", this.renderType = W.SVG;
8447
+ super(...arguments), this.type = "geo", this.renderType = j.SVG;
8425
8448
  }
8426
8449
  render() {
8427
8450
  const e = this.getComponentContainer({ withinChartClip: !0 }), { width: t, height: n } = S.getSVGElementSize(e, {
@@ -8563,8 +8586,8 @@ export {
8563
8586
  Uh as K,
8564
8587
  hl as L,
8565
8588
  Gh as M,
8566
- zh as N,
8567
- Fh as O,
8589
+ Fh as N,
8590
+ zh as O,
8568
8591
  bh as P,
8569
8592
  Wh as Q,
8570
8593
  wa as R,
@@ -8573,7 +8596,7 @@ export {
8573
8596
  jh as U,
8574
8597
  Al as V,
8575
8598
  Xh as W,
8576
- zn as X,
8599
+ Fn as X,
8577
8600
  Zh as Y,
8578
8601
  xh as Z,
8579
8602
  fl as _,
@@ -8591,11 +8614,11 @@ export {
8591
8614
  Sh as b,
8592
8615
  ph as c,
8593
8616
  Ih as d,
8594
- Rh as e,
8617
+ kh as e,
8595
8618
  _h as f,
8596
8619
  Ch as g,
8597
8620
  wh as h,
8598
- kh as i,
8621
+ Rh as i,
8599
8622
  Dh as j,
8600
8623
  fh as k,
8601
8624
  uh as l,
@@ -8614,4 +8637,4 @@ export {
8614
8637
  Oh as y,
8615
8638
  Th as z
8616
8639
  };
8617
- //# sourceMappingURL=choropleth-o0OXZNlE.mjs.map
8640
+ //# sourceMappingURL=choropleth-3h8ShsdZ.mjs.map