@mozaic-ds/chart 0.1.0-beta.10 → 0.1.0-beta.11

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,7 +1,7 @@
1
1
  var ha = Object.defineProperty;
2
2
  var da = (i, t, e) => t in i ? ha(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var C = (i, t, e) => (da(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { version as ua, defineComponent as Vt, ref as X, shallowRef as to, onMounted as eo, onBeforeUnmount as fa, watch as ve, toRaw as Xi, h as io, isProxy as no, reactive as so, computed as z, openBlock as ft, createElementBlock as Ie, createElementVNode as gt, createBlock as Fe, unref as Zt, normalizeClass as Re, normalizeStyle as Ee, createCommentVNode as Be } from "vue";
4
+ import { version as ua, defineComponent as Vt, ref as X, shallowRef as to, onMounted as eo, onBeforeUnmount as fa, watch as Se, toRaw as Xi, h as io, isProxy as no, reactive as so, computed as z, openBlock as ft, createElementBlock as Fe, createElementVNode as gt, createBlock as Re, unref as Zt, normalizeClass as Ee, normalizeStyle as Qt, createCommentVNode as Be } from "vue";
5
5
  /*!
6
6
  * @kurkle/color v0.3.2
7
7
  * https://github.com/kurkle/color#readme
@@ -12,7 +12,7 @@ function ze(i) {
12
12
  return i + 0.5 | 0;
13
13
  }
14
14
  const St = (i, t, e) => Math.max(Math.min(i, e), t);
15
- function he(i) {
15
+ function de(i) {
16
16
  return St(ze(i * 2.55), 0, 255);
17
17
  }
18
18
  function Mt(i) {
@@ -88,7 +88,7 @@ function Ca(i) {
88
88
  let e = 255, n;
89
89
  if (!t)
90
90
  return;
91
- t[5] !== n && (e = t[6] ? he(+t[5]) : Mt(+t[5]));
91
+ t[5] !== n && (e = t[6] ? de(+t[5]) : Mt(+t[5]));
92
92
  const s = ao(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
93
93
  return t[1] === "hwb" ? n = ka(s, o, a) : t[1] === "hsv" ? n = Ma(s, o, a) : n = un(s, o, a), {
94
94
  r: n[0],
@@ -313,9 +313,9 @@ function Oa(i) {
313
313
  if (t) {
314
314
  if (t[7] !== n) {
315
315
  const a = +t[7];
316
- e = t[8] ? he(a) : St(a * 255, 0, 255);
316
+ e = t[8] ? de(a) : St(a * 255, 0, 255);
317
317
  }
318
- return n = +t[1], s = +t[3], o = +t[5], n = 255 & (t[2] ? he(n) : St(n, 0, 255)), s = 255 & (t[4] ? he(s) : St(s, 0, 255)), o = 255 & (t[6] ? he(o) : St(o, 0, 255)), {
318
+ return n = +t[1], s = +t[3], o = +t[5], n = 255 & (t[2] ? de(n) : St(n, 0, 255)), s = 255 & (t[4] ? de(s) : St(s, 0, 255)), o = 255 & (t[6] ? de(o) : St(o, 0, 255)), {
319
319
  r: n,
320
320
  g: s,
321
321
  b: o,
@@ -352,9 +352,9 @@ function Tn(i) {
352
352
  function Ra(i) {
353
353
  return i.charAt(0) === "r" ? Oa(i) : Ca(i);
354
354
  }
355
- class Se {
355
+ class we {
356
356
  constructor(t) {
357
- if (t instanceof Se)
357
+ if (t instanceof we)
358
358
  return t;
359
359
  const e = typeof t;
360
360
  let n;
@@ -392,7 +392,7 @@ class Se {
392
392
  return t && (this._rgb = Fa(this._rgb, t._rgb, e)), this;
393
393
  }
394
394
  clone() {
395
- return new Se(this.rgb);
395
+ return new we(this.rgb);
396
396
  }
397
397
  alpha(t) {
398
398
  return this._rgb.a = Mt(t), this;
@@ -512,9 +512,9 @@ function za(i, t, e, n) {
512
512
  if (!co(i))
513
513
  return;
514
514
  const s = t[i], o = e[i];
515
- T(s) && T(o) ? we(s, o, n) : t[i] = fi(o);
515
+ T(s) && T(o) ? ke(s, o, n) : t[i] = fi(o);
516
516
  }
517
- function we(i, t, e) {
517
+ function ke(i, t, e) {
518
518
  const n = W(t) ? t : [
519
519
  t
520
520
  ], s = n.length;
@@ -532,8 +532,8 @@ function we(i, t, e) {
532
532
  }
533
533
  return i;
534
534
  }
535
- function me(i, t) {
536
- return we(i, t, {
535
+ function be(i, t) {
536
+ return ke(i, t, {
537
537
  merger: Wa
538
538
  });
539
539
  }
@@ -541,7 +541,7 @@ function Wa(i, t, e) {
541
541
  if (!co(i))
542
542
  return;
543
543
  const n = t[i], s = e[i];
544
- T(n) && T(s) ? me(n, s) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = fi(s));
544
+ T(n) && T(s) ? be(n, s) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = fi(s));
545
545
  }
546
546
  const On = {
547
547
  // Chart.helpers.core resolveObjectKey should resolve empty key to root object
@@ -574,7 +574,7 @@ function Pt(i, t) {
574
574
  function fn(i) {
575
575
  return i.charAt(0).toUpperCase() + i.slice(1);
576
576
  }
577
- const ke = (i) => typeof i < "u", At = (i) => typeof i == "function", In = (i, t) => {
577
+ const Me = (i) => typeof i < "u", At = (i) => typeof i == "function", In = (i, t) => {
578
578
  if (i.size !== t.size)
579
579
  return !1;
580
580
  for (const e of i)
@@ -586,12 +586,12 @@ function Va(i) {
586
586
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
587
587
  }
588
588
  const N = Math.PI, H = 2 * N, ja = H + N, gi = Number.POSITIVE_INFINITY, $a = N / 180, Y = N / 2, Tt = N / 4, Fn = N * 2 / 3, wt = Math.log10, ut = Math.sign;
589
- function be(i, t, e) {
589
+ function ye(i, t, e) {
590
590
  return Math.abs(i - t) < e;
591
591
  }
592
592
  function Rn(i) {
593
593
  const t = Math.round(i);
594
- i = be(i, t, i / 1e3) ? t : i;
594
+ i = ye(i, t, i / 1e3) ? t : i;
595
595
  const e = Math.pow(10, Math.floor(wt(i))), n = i / e;
596
596
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * e;
597
597
  }
@@ -602,7 +602,7 @@ function Ya(i) {
602
602
  i % n === 0 && (t.push(n), t.push(i / n));
603
603
  return e === (e | 0) && t.push(e), t.sort((s, o) => s - o).pop(), t;
604
604
  }
605
- function Me(i) {
605
+ function Ce(i) {
606
606
  return !isNaN(parseFloat(i)) && isFinite(i);
607
607
  }
608
608
  function Ua(i, t) {
@@ -645,7 +645,7 @@ function Xa(i, t) {
645
645
  function it(i) {
646
646
  return (i % H + H) % H;
647
647
  }
648
- function Ce(i, t, e, n) {
648
+ function Pe(i, t, e, n) {
649
649
  const s = it(i), o = it(t), a = it(e), r = it(o - s), l = it(a - s), c = it(s - o), h = it(s - a);
650
650
  return s === o || s === a || n && o === a || r > l && c < h;
651
651
  }
@@ -781,7 +781,7 @@ function er(i) {
781
781
  const o = n.xmin !== t.min || n.xmax !== t.max || n.ymin !== e.min || n.ymax !== e.max;
782
782
  return Object.assign(n, s), o;
783
783
  }
784
- const Ke = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * H / e)), Wn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * H / e) + 1, ye = {
784
+ const Ke = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * H / e)), Wn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * H / e) + 1, xe = {
785
785
  linear: (i) => i,
786
786
  easeInQuad: (i) => i * i,
787
787
  easeOutQuad: (i) => -i * (i - 2),
@@ -819,11 +819,11 @@ const Ke = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -=
819
819
  let t = 1.70158;
820
820
  return (i /= 0.5) < 1 ? 0.5 * (i * i * (((t *= 1.525) + 1) * i - t)) : 0.5 * ((i -= 2) * i * (((t *= 1.525) + 1) * i + t) + 2);
821
821
  },
822
- easeInBounce: (i) => 1 - ye.easeOutBounce(1 - i),
822
+ easeInBounce: (i) => 1 - xe.easeOutBounce(1 - i),
823
823
  easeOutBounce(i) {
824
824
  return i < 1 / 2.75 ? 7.5625 * i * i : i < 2 / 2.75 ? 7.5625 * (i -= 1.5 / 2.75) * i + 0.75 : i < 2.5 / 2.75 ? 7.5625 * (i -= 2.25 / 2.75) * i + 0.9375 : 7.5625 * (i -= 2.625 / 2.75) * i + 0.984375;
825
825
  },
826
- easeInOutBounce: (i) => i < 0.5 ? ye.easeInBounce(i * 2) * 0.5 : ye.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
826
+ easeInOutBounce: (i) => i < 0.5 ? xe.easeInBounce(i * 2) * 0.5 : xe.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
827
827
  };
828
828
  function bn(i) {
829
829
  if (i && typeof i == "object") {
@@ -833,10 +833,10 @@ function bn(i) {
833
833
  return !1;
834
834
  }
835
835
  function Hn(i) {
836
- return bn(i) ? i : new Se(i);
836
+ return bn(i) ? i : new we(i);
837
837
  }
838
838
  function Ri(i) {
839
- return bn(i) ? i : new Se(i).saturate(0.5).darken(0.1).hexString();
839
+ return bn(i) ? i : new we(i).saturate(0.5).darken(0.1).hexString();
840
840
  }
841
841
  const ir = [
842
842
  "x",
@@ -1037,7 +1037,7 @@ function lr(i) {
1037
1037
  });
1038
1038
  }
1039
1039
  const Ht = /* @__PURE__ */ Object.create(null), Ki = /* @__PURE__ */ Object.create(null);
1040
- function xe(i, t) {
1040
+ function _e(i, t) {
1041
1041
  if (!t)
1042
1042
  return i;
1043
1043
  const e = t.split(".");
@@ -1048,7 +1048,7 @@ function xe(i, t) {
1048
1048
  return i;
1049
1049
  }
1050
1050
  function Ei(i, t, e) {
1051
- return typeof t == "string" ? we(xe(i, t), e) : we(xe(i, ""), t);
1051
+ return typeof t == "string" ? ke(_e(i, t), e) : ke(_e(i, ""), t);
1052
1052
  }
1053
1053
  class cr {
1054
1054
  constructor(t, e) {
@@ -1074,7 +1074,7 @@ class cr {
1074
1074
  return Ei(this, t, e);
1075
1075
  }
1076
1076
  get(t) {
1077
- return xe(this, t);
1077
+ return _e(this, t);
1078
1078
  }
1079
1079
  describe(t, e) {
1080
1080
  return Ei(Ki, t, e);
@@ -1083,7 +1083,7 @@ class cr {
1083
1083
  return Ei(Ht, t, e);
1084
1084
  }
1085
1085
  route(t, e, n, s) {
1086
- const o = xe(this, t), a = xe(this, n), r = "_" + e;
1086
+ const o = _e(this, t), a = _e(this, n), r = "_" + e;
1087
1087
  Object.defineProperties(o, {
1088
1088
  [r]: {
1089
1089
  value: o[e],
@@ -1254,7 +1254,7 @@ function Nt(i, t, e, n, s, o = {}) {
1254
1254
  c = a[l], o.backdrop && mr(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), F(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, n, o.maxWidth)), i.fillText(c, e, n, o.maxWidth), pr(i, e, n, c, o), n += Number(s.lineHeight);
1255
1255
  i.restore();
1256
1256
  }
1257
- function Pe(i, t) {
1257
+ function Ae(i, t) {
1258
1258
  const { x: e, y: n, w: s, h: o, radius: a } = t;
1259
1259
  i.arc(e + a.topLeft, n + a.topLeft, a.topLeft, 1.5 * N, N, !0), i.lineTo(e, n + o - a.bottomLeft), i.arc(e + a.bottomLeft, n + o - a.bottomLeft, a.bottomLeft, N, Y, !0), i.lineTo(e + s - a.bottomRight, n + o), i.arc(e + s - a.bottomRight, n + o - a.bottomRight, a.bottomRight, Y, 0, !0), i.lineTo(e + s, n + a.topRight), i.arc(e + s - a.topRight, n + a.topRight, a.topRight, 0, -Y, !0), i.lineTo(e + a.topLeft, n);
1260
1260
  }
@@ -1395,7 +1395,7 @@ function xn(i, t = [
1395
1395
  }
1396
1396
  });
1397
1397
  }
1398
- function Qt(i, t, e, n) {
1398
+ function Jt(i, t, e, n) {
1399
1399
  const s = {
1400
1400
  _cacheable: !1,
1401
1401
  _proxy: i,
@@ -1403,8 +1403,8 @@ function Qt(i, t, e, n) {
1403
1403
  _subProxy: e,
1404
1404
  _stack: /* @__PURE__ */ new Set(),
1405
1405
  _descriptors: _o(i, n),
1406
- setContext: (o) => Qt(i, o, e, n),
1407
- override: (o) => Qt(i.override(o), t, e, n)
1406
+ setContext: (o) => Jt(i, o, e, n),
1407
+ override: (o) => Jt(i.override(o), t, e, n)
1408
1408
  };
1409
1409
  return new Proxy(s, {
1410
1410
  /**
@@ -1478,7 +1478,7 @@ function vo(i, t, e) {
1478
1478
  function wr(i, t, e) {
1479
1479
  const { _proxy: n, _context: s, _subProxy: o, _descriptors: a } = i;
1480
1480
  let r = n[t];
1481
- return At(r) && a.isScriptable(t) && (r = kr(t, r, i, e)), W(r) && r.length && (r = Mr(t, r, i, a.isIndexable)), _n(t, r) && (r = Qt(r, s, o && o[t], a)), r;
1481
+ return At(r) && a.isScriptable(t) && (r = kr(t, r, i, e)), W(r) && r.length && (r = Mr(t, r, i, a.isIndexable)), _n(t, r) && (r = Jt(r, s, o && o[t], a)), r;
1482
1482
  }
1483
1483
  function kr(i, t, e, n) {
1484
1484
  const { _proxy: s, _context: o, _subProxy: a, _stack: r } = e;
@@ -1497,7 +1497,7 @@ function Mr(i, t, e, n) {
1497
1497
  t = [];
1498
1498
  for (const h of l) {
1499
1499
  const d = vn(c, s, i, h);
1500
- t.push(Qt(d, o, a && a[i], r));
1500
+ t.push(Jt(d, o, a && a[i], r));
1501
1501
  }
1502
1502
  }
1503
1503
  return t;
@@ -1576,7 +1576,7 @@ function Tr(i, t, e, n) {
1576
1576
  };
1577
1577
  return a;
1578
1578
  }
1579
- const Or = Number.EPSILON || 1e-14, Jt = (i, t) => t < i.length && !i[t].skip && i[t], ko = (i) => i === "x" ? "y" : "x";
1579
+ const Or = Number.EPSILON || 1e-14, te = (i, t) => t < i.length && !i[t].skip && i[t], ko = (i) => i === "x" ? "y" : "x";
1580
1580
  function Ir(i, t, e, n) {
1581
1581
  const s = i.skip ? t : i, o = t, a = e.skip ? t : e, r = qi(o, s), l = qi(a, o);
1582
1582
  let c = r / (r + l), h = l / (r + l);
@@ -1595,10 +1595,10 @@ function Ir(i, t, e, n) {
1595
1595
  }
1596
1596
  function Fr(i, t, e) {
1597
1597
  const n = i.length;
1598
- let s, o, a, r, l, c = Jt(i, 0);
1598
+ let s, o, a, r, l, c = te(i, 0);
1599
1599
  for (let h = 0; h < n - 1; ++h)
1600
- if (l = c, c = Jt(i, h + 1), !(!l || !c)) {
1601
- if (be(t[h], 0, Or)) {
1600
+ if (l = c, c = te(i, h + 1), !(!l || !c)) {
1601
+ if (ye(t[h], 0, Or)) {
1602
1602
  e[h] = e[h + 1] = 0;
1603
1603
  continue;
1604
1604
  }
@@ -1607,9 +1607,9 @@ function Fr(i, t, e) {
1607
1607
  }
1608
1608
  function Rr(i, t, e = "x") {
1609
1609
  const n = ko(e), s = i.length;
1610
- let o, a, r, l = Jt(i, 0);
1610
+ let o, a, r, l = te(i, 0);
1611
1611
  for (let c = 0; c < s; ++c) {
1612
- if (a = r, r = l, l = Jt(i, c + 1), !r)
1612
+ if (a = r, r = l, l = te(i, c + 1), !r)
1613
1613
  continue;
1614
1614
  const h = r[e], d = r[n];
1615
1615
  a && (o = (h - a[e]) / 3, r[`cp1${e}`] = h - o, r[`cp1${n}`] = d - o * t[c]), l && (o = (l[e] - h) / 3, r[`cp2${e}`] = h + o, r[`cp2${n}`] = d + o * t[c]);
@@ -1617,9 +1617,9 @@ function Rr(i, t, e = "x") {
1617
1617
  }
1618
1618
  function Er(i, t = "x") {
1619
1619
  const e = ko(t), n = i.length, s = Array(n).fill(0), o = Array(n);
1620
- let a, r, l, c = Jt(i, 0);
1620
+ let a, r, l, c = te(i, 0);
1621
1621
  for (a = 0; a < n; ++a)
1622
- if (r = l, l = c, c = Jt(i, a + 1), !!l) {
1622
+ if (r = l, l = c, c = te(i, a + 1), !!l) {
1623
1623
  if (c) {
1624
1624
  const h = c[t] - l[t];
1625
1625
  s[a] = h !== 0 ? (c[e] - l[e]) / h : 0;
@@ -1830,7 +1830,7 @@ function Po(i, t) {
1830
1830
  }
1831
1831
  function Ao(i) {
1832
1832
  return i === "angle" ? {
1833
- between: Ce,
1833
+ between: Pe,
1834
1834
  compare: Xa,
1835
1835
  normalize: it
1836
1836
  } : {
@@ -2108,7 +2108,7 @@ class sl {
2108
2108
  o,
2109
2109
  s
2110
2110
  ]);
2111
- this._active = !0, this._fn = t.fn || nl[t.type || typeof a], this._easing = ye[t.easing] || ye.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = n, this._from = a, this._to = s, this._promises = void 0;
2111
+ this._active = !0, this._fn = t.fn || nl[t.type || typeof a], this._easing = xe[t.easing] || xe.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = n, this._from = a, this._to = s, this._promises = void 0;
2112
2112
  }
2113
2113
  active() {
2114
2114
  return this._active;
@@ -2373,7 +2373,7 @@ function gl(i, t, e) {
2373
2373
  type: "data"
2374
2374
  });
2375
2375
  }
2376
- function oe(i, t) {
2376
+ function ae(i, t) {
2377
2377
  const e = i.controller.index, n = i.vScale && i.vScale.axis;
2378
2378
  if (n) {
2379
2379
  t = t || i._parsed;
@@ -2398,7 +2398,7 @@ class Ct {
2398
2398
  this.configure(), this.linkScales(), t._stacked = Jn(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
2399
2399
  }
2400
2400
  updateIndex(t) {
2401
- this.index !== t && oe(this._cachedMeta), this.index = t;
2401
+ this.index !== t && ae(this._cachedMeta), this.index = t;
2402
2402
  }
2403
2403
  linkScales() {
2404
2404
  const t = this.chart, e = this._cachedMeta, n = this.getDataset(), s = (d, u, f, m) => d === "x" ? u : d === "r" ? m : f, o = e.xAxisID = L(n.xAxisID, Bi(t, "x")), a = e.yAxisID = L(n.yAxisID, Bi(t, "y")), r = e.rAxisID = L(n.rAxisID, Bi(t, "r")), l = e.indexAxis, c = e.iAxisID = s(l, o, a, r), h = e.vAxisID = s(l, a, o, r);
@@ -2422,7 +2422,7 @@ class Ct {
2422
2422
  }
2423
2423
  _destroy() {
2424
2424
  const t = this._cachedMeta;
2425
- this._data && Bn(this._data, this), t._stacked && oe(t);
2425
+ this._data && Bn(this._data, this), t._stacked && ae(t);
2426
2426
  }
2427
2427
  _dataCheck() {
2428
2428
  const t = this.getDataset(), e = t.data || (t.data = []), n = this._data;
@@ -2432,7 +2432,7 @@ class Ct {
2432
2432
  if (n) {
2433
2433
  Bn(n, this);
2434
2434
  const s = this._cachedMeta;
2435
- oe(s), s._parsed = [];
2435
+ ae(s), s._parsed = [];
2436
2436
  }
2437
2437
  e && Object.isExtensible(e) && Za(e, this), this._syncList = [], this._data = e;
2438
2438
  }
@@ -2446,7 +2446,7 @@ class Ct {
2446
2446
  let s = !1;
2447
2447
  this._dataCheck();
2448
2448
  const o = e._stacked;
2449
- e._stacked = Jn(e.vScale, e), e.stack !== n.stack && (s = !0, oe(e), e.stack = n.stack), this._resyncElements(t), (s || o !== e._stacked) && es(this, e._parsed);
2449
+ e._stacked = Jn(e.vScale, e), e.stack !== n.stack && (s = !0, ae(e), e.stack = n.stack), this._resyncElements(t), (s || o !== e._stacked) && es(this, e._parsed);
2450
2450
  }
2451
2451
  configure() {
2452
2452
  const t = this.chart.config, e = t.datasetScopeKeys(this._type), n = t.getOptionScopes(this.getDataset(), e, !0);
@@ -2593,7 +2593,7 @@ class Ct {
2593
2593
  return this._resolveElementOptions(this.dataElementType.id, e, t);
2594
2594
  }
2595
2595
  _resolveElementOptions(t, e = "default", n) {
2596
- const s = e === "active", o = this._cachedDataOpts, a = t + "-" + e, r = o[a], l = this.enableOptionSharing && ke(n);
2596
+ const s = e === "active", o = this._cachedDataOpts, a = t + "-" + e, r = o[a], l = this.enableOptionSharing && Me(n);
2597
2597
  if (r)
2598
2598
  return is(r, l);
2599
2599
  const c = this.chart.config, h = c.datasetElementScopeKeys(this._type, t), d = s ? [
@@ -2685,7 +2685,7 @@ class Ct {
2685
2685
  const n = this._cachedMeta;
2686
2686
  if (this._parsing) {
2687
2687
  const s = n._parsed.splice(t, e);
2688
- n._stacked && oe(n, s);
2688
+ n._stacked && ae(n, s);
2689
2689
  }
2690
2690
  n.data.splice(t, e);
2691
2691
  }
@@ -2759,7 +2759,7 @@ function bl(i) {
2759
2759
  const t = i.iScale, e = ml(t, i.type);
2760
2760
  let n = t._length, s, o, a, r;
2761
2761
  const l = () => {
2762
- a === 32767 || a === -32768 || (ke(r) && (n = Math.min(n, Math.abs(a - r) || n)), r = a);
2762
+ a === 32767 || a === -32768 || (Me(r) && (n = Math.min(n, Math.abs(a - r) || n)), r = a);
2763
2763
  };
2764
2764
  for (s = 0, o = e.length; s < o; ++s)
2765
2765
  a = t.getPixelForValue(e[s]), l();
@@ -3030,7 +3030,7 @@ C(ri, "id", "bar"), C(ri, "defaults", {
3030
3030
  function Cl(i, t, e) {
3031
3031
  let n = 1, s = 1, o = 0, a = 0;
3032
3032
  if (t < H) {
3033
- const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, v, _) => Ce(x, r, l, !0) ? 1 : Math.max(v, v * e, _, _ * e), m = (x, v, _) => Ce(x, r, l, !0) ? -1 : Math.min(v, v * e, _, _ * e), p = f(0, c, d), g = f(Y, h, u), b = m(N, c, d), y = m(N + Y, h, u);
3033
+ const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (x, v, _) => Pe(x, r, l, !0) ? 1 : Math.max(v, v * e, _, _ * e), m = (x, v, _) => Pe(x, r, l, !0) ? -1 : Math.min(v, v * e, _, _ * e), p = f(0, c, d), g = f(Y, h, u), b = m(N, c, d), y = m(N + Y, h, u);
3034
3034
  n = (p - b) / 2, s = (g - y) / 2, o = -(p + b) / 2, a = -(g + y) / 2;
3035
3035
  }
3036
3036
  return {
@@ -3040,7 +3040,7 @@ function Cl(i, t, e) {
3040
3040
  offsetY: a
3041
3041
  };
3042
3042
  }
3043
- class de extends Ct {
3043
+ class ue extends Ct {
3044
3044
  constructor(t, e) {
3045
3045
  super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
3046
3046
  }
@@ -3163,7 +3163,7 @@ class de extends Ct {
3163
3163
  return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
3164
3164
  }
3165
3165
  }
3166
- C(de, "id", "doughnut"), C(de, "defaults", {
3166
+ C(ue, "id", "doughnut"), C(ue, "defaults", {
3167
3167
  datasetElementType: !1,
3168
3168
  dataElementType: "arc",
3169
3169
  animation: {
@@ -3193,10 +3193,10 @@ C(de, "id", "doughnut"), C(de, "defaults", {
3193
3193
  radius: "100%",
3194
3194
  spacing: 0,
3195
3195
  indexAxis: "r"
3196
- }), C(de, "descriptors", {
3196
+ }), C(ue, "descriptors", {
3197
3197
  _scriptable: (t) => t !== "spacing",
3198
3198
  _indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
3199
- }), C(de, "overrides", {
3199
+ }), C(ue, "overrides", {
3200
3200
  aspectRatio: 1,
3201
3201
  plugins: {
3202
3202
  legend: {
@@ -3243,7 +3243,7 @@ class li extends Ct {
3243
3243
  }, t), this.updateElements(s, r, l, t);
3244
3244
  }
3245
3245
  updateElements(t, e, n, s) {
3246
- const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: m, segment: p } = this.options, g = Me(m) ? m : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
3246
+ const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: m, segment: p } = this.options, g = Ce(m) ? m : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
3247
3247
  let v = e > 0 && this.getParsed(e - 1);
3248
3248
  for (let _ = 0; _ < x; ++_) {
3249
3249
  const M = t[_], S = b ? M : {};
@@ -3448,7 +3448,7 @@ function Ll(i, t, e, n) {
3448
3448
  x: t.x,
3449
3449
  y: t.y
3450
3450
  });
3451
- Ce(d, c, h) && s.push({
3451
+ Pe(d, c, h) && s.push({
3452
3452
  element: a,
3453
3453
  datasetIndex: r,
3454
3454
  index: l
@@ -3549,13 +3549,13 @@ const Fo = [
3549
3549
  "right",
3550
3550
  "bottom"
3551
3551
  ];
3552
- function ae(i, t) {
3552
+ function re(i, t) {
3553
3553
  return i.filter((e) => e.pos === t);
3554
3554
  }
3555
3555
  function rs(i, t) {
3556
3556
  return i.filter((e) => Fo.indexOf(e.pos) === -1 && e.box.axis === t);
3557
3557
  }
3558
- function re(i, t) {
3558
+ function le(i, t) {
3559
3559
  return i.sort((e, n) => {
3560
3560
  const s = t ? n : e, o = t ? e : n;
3561
3561
  return s.weight === o.weight ? s.index - o.index : s.weight - o.weight;
@@ -3603,12 +3603,12 @@ function Rl(i, t) {
3603
3603
  return e;
3604
3604
  }
3605
3605
  function El(i) {
3606
- const t = Il(i), e = re(t.filter((c) => c.box.fullSize), !0), n = re(ae(t, "left"), !0), s = re(ae(t, "right")), o = re(ae(t, "top"), !0), a = re(ae(t, "bottom")), r = rs(t, "x"), l = rs(t, "y");
3606
+ const t = Il(i), e = le(t.filter((c) => c.box.fullSize), !0), n = le(re(t, "left"), !0), s = le(re(t, "right")), o = le(re(t, "top"), !0), a = le(re(t, "bottom")), r = rs(t, "x"), l = rs(t, "y");
3607
3607
  return {
3608
3608
  fullSize: e,
3609
3609
  leftAndTop: n.concat(o),
3610
3610
  rightAndBottom: s.concat(l).concat(a).concat(r),
3611
- chartArea: ae(t, "chartArea"),
3611
+ chartArea: re(t, "chartArea"),
3612
3612
  vertical: n.concat(s).concat(l),
3613
3613
  horizontal: o.concat(a).concat(r)
3614
3614
  };
@@ -3668,7 +3668,7 @@ function Wl(i, t) {
3668
3668
  "bottom"
3669
3669
  ]);
3670
3670
  }
3671
- function ue(i, t, e, n) {
3671
+ function fe(i, t, e, n) {
3672
3672
  const s = [];
3673
3673
  let o, a, r, l, c, h;
3674
3674
  for (o = 0, a = i.length, c = 0; o < a; ++o) {
@@ -3676,7 +3676,7 @@ function ue(i, t, e, n) {
3676
3676
  const { same: d, other: u } = Bl(t, e, r, n);
3677
3677
  c |= d && s.length, h = h || u, l.fullSize || s.push(r);
3678
3678
  }
3679
- return c && ue(s, t, e, n) || h;
3679
+ return c && fe(s, t, e, n) || h;
3680
3680
  }
3681
3681
  function ti(i, t, e, n, s) {
3682
3682
  i.top = e, i.left = t, i.right = t + n, i.bottom = e + s, i.width = n, i.height = s;
@@ -3692,10 +3692,10 @@ function cs(i, t, e, n) {
3692
3692
  }, h = r.stackWeight / c.weight || 1;
3693
3693
  if (r.horizontal) {
3694
3694
  const d = t.w * h, u = c.size || l.height;
3695
- ke(c.start) && (a = c.start), l.fullSize ? ti(l, s.left, a, e.outerWidth - s.right - s.left, u) : ti(l, t.left + c.placed, a, d, u), c.start = a, c.placed += d, a = l.bottom;
3695
+ Me(c.start) && (a = c.start), l.fullSize ? ti(l, s.left, a, e.outerWidth - s.right - s.left, u) : ti(l, t.left + c.placed, a, d, u), c.start = a, c.placed += d, a = l.bottom;
3696
3696
  } else {
3697
3697
  const d = t.h * h, u = c.size || l.width;
3698
- ke(c.start) && (o = c.start), l.fullSize ? ti(l, o, s.top, u, e.outerHeight - s.bottom - s.top) : ti(l, o, t.top + c.placed, u, d), c.start = o, c.placed += d, o = l.right;
3698
+ Me(c.start) && (o = c.start), l.fullSize ? ti(l, o, s.top, u, e.outerHeight - s.bottom - s.top) : ti(l, o, t.top + c.placed, u, d), c.start = o, c.placed += d, o = l.right;
3699
3699
  }
3700
3700
  }
3701
3701
  t.x = o, t.y = a;
@@ -3744,7 +3744,7 @@ var st = {
3744
3744
  x: s.left,
3745
3745
  y: s.top
3746
3746
  }, s), m = Rl(l.concat(c), d);
3747
- ue(r.fullSize, f, d, m), ue(l, f, d, m), ue(c, f, d, m) && ue(l, f, d, m), zl(f), cs(r.leftAndTop, f, d, m), f.x += f.w, f.y += f.h, cs(r.rightAndBottom, f, d, m), i.chartArea = {
3747
+ fe(r.fullSize, f, d, m), fe(l, f, d, m), fe(c, f, d, m) && fe(l, f, d, m), zl(f), cs(r.leftAndTop, f, d, m), f.x += f.w, f.y += f.h, cs(r.rightAndBottom, f, d, m), i.chartArea = {
3748
3748
  left: f.left,
3749
3749
  top: f.top,
3750
3750
  right: f.left + f.w,
@@ -3879,19 +3879,19 @@ function Xl(i, t, e) {
3879
3879
  subtree: !0
3880
3880
  }), s;
3881
3881
  }
3882
- const Ae = /* @__PURE__ */ new Map();
3882
+ const De = /* @__PURE__ */ new Map();
3883
3883
  let ds = 0;
3884
3884
  function zo() {
3885
3885
  const i = window.devicePixelRatio;
3886
- i !== ds && (ds = i, Ae.forEach((t, e) => {
3886
+ i !== ds && (ds = i, De.forEach((t, e) => {
3887
3887
  e.currentDevicePixelRatio !== i && t();
3888
3888
  }));
3889
3889
  }
3890
3890
  function Gl(i, t) {
3891
- Ae.size || window.addEventListener("resize", zo), Ae.set(i, t);
3891
+ De.size || window.addEventListener("resize", zo), De.set(i, t);
3892
3892
  }
3893
3893
  function ql(i) {
3894
- Ae.delete(i), Ae.size || window.removeEventListener("resize", zo);
3894
+ De.delete(i), De.size || window.removeEventListener("resize", zo);
3895
3895
  }
3896
3896
  function Kl(i, t, e) {
3897
3897
  const n = i.canvas, s = n && Sn(n);
@@ -3989,7 +3989,7 @@ class at {
3989
3989
  };
3990
3990
  }
3991
3991
  hasValue() {
3992
- return Me(this.x) && Me(this.y);
3992
+ return Ce(this.x) && Ce(this.y);
3993
3993
  }
3994
3994
  getProps(t, e) {
3995
3995
  const n = this.$animations;
@@ -4087,7 +4087,7 @@ function lc(i, t) {
4087
4087
  }
4088
4088
  });
4089
4089
  }
4090
- function le(i) {
4090
+ function ce(i) {
4091
4091
  return i.drawTicks ? i.tickLength : 0;
4092
4092
  }
4093
4093
  function ps(i, t) {
@@ -4292,7 +4292,7 @@ class jt extends at {
4292
4292
  return;
4293
4293
  }
4294
4294
  const h = this._getLabelSizes(), d = h.widest.width, u = h.highest.height, f = Z(this.chart.width - d, 0, this.maxWidth);
4295
- r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - le(t.grid) - e.padding - ps(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = gn(Math.min(Math.asin(Z((h.highest.height + 6) / r, -1, 1)), Math.asin(Z(l / c, -1, 1)) - Math.asin(Z(u / c, -1, 1)))), a = Math.max(s, Math.min(o, a))), this.labelRotation = a;
4295
+ r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - ce(t.grid) - e.padding - ps(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = gn(Math.min(Math.asin(Z((h.highest.height + 6) / r, -1, 1)), Math.asin(Z(l / c, -1, 1)) - Math.asin(Z(u / c, -1, 1)))), a = Math.max(s, Math.min(o, a))), this.labelRotation = a;
4296
4296
  }
4297
4297
  afterCalculateLabelRotation() {
4298
4298
  B(this.options.afterCalculateLabelRotation, [
@@ -4313,7 +4313,7 @@ class jt extends at {
4313
4313
  }, { chart: e, options: { ticks: n, title: s, grid: o } } = this, a = this._isVisible(), r = this.isHorizontal();
4314
4314
  if (a) {
4315
4315
  const l = ps(s, e.options.font);
4316
- if (r ? (t.width = this.maxWidth, t.height = le(o) + l) : (t.height = this.maxHeight, t.width = le(o) + l), n.display && this.ticks.length) {
4316
+ if (r ? (t.width = this.maxWidth, t.height = ce(o) + l) : (t.height = this.maxHeight, t.width = ce(o) + l), n.display && this.ticks.length) {
4317
4317
  const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2, m = ht(this.labelRotation), p = Math.cos(m), g = Math.sin(m);
4318
4318
  if (r) {
4319
4319
  const b = n.mirror ? 0 : g * d.width + p * u.height;
@@ -4442,7 +4442,7 @@ class jt extends at {
4442
4442
  return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
4443
4443
  }
4444
4444
  _computeGridLineItems(t) {
4445
- const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = le(o), f = [], m = r.setContext(this.getContext()), p = m.display ? m.width : 0, g = p / 2, b = function(R) {
4445
+ const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = ce(o), f = [], m = r.setContext(this.getContext()), p = m.display ? m.width : 0, g = p / 2, b = function(R) {
4446
4446
  return Ot(n, R, p);
4447
4447
  };
4448
4448
  let y, x, v, _, M, S, k, w, P, A, D, E;
@@ -4473,7 +4473,7 @@ class jt extends at {
4473
4473
  }
4474
4474
  const G = L(s.ticks.maxTicksLimit, d), O = Math.max(1, Math.ceil(d / G));
4475
4475
  for (x = 0; x < d; x += O) {
4476
- const R = this.getContext(x), $ = o.setContext(R), ot = r.setContext(R), q = $.lineWidth, $t = $.color, Ue = ot.dash || [], Yt = ot.dashOffset, ee = $.tickWidth, ie = $.tickColor, ne = $.tickBorderDash || [], se = $.tickBorderDashOffset;
4476
+ const R = this.getContext(x), $ = o.setContext(R), ot = r.setContext(R), q = $.lineWidth, $t = $.color, Ue = ot.dash || [], Yt = ot.dashOffset, ie = $.tickWidth, ne = $.tickColor, se = $.tickBorderDash || [], oe = $.tickBorderDashOffset;
4477
4477
  v = rc(this, x, l), v !== void 0 && (_ = Ot(n, v, q), c ? M = k = P = D = _ : S = w = A = E = _, f.push({
4478
4478
  tx1: M,
4479
4479
  ty1: S,
@@ -4487,16 +4487,16 @@ class jt extends at {
4487
4487
  color: $t,
4488
4488
  borderDash: Ue,
4489
4489
  borderDashOffset: Yt,
4490
- tickWidth: ee,
4491
- tickColor: ie,
4492
- tickBorderDash: ne,
4493
- tickBorderDashOffset: se
4490
+ tickWidth: ie,
4491
+ tickColor: ne,
4492
+ tickBorderDash: se,
4493
+ tickBorderDashOffset: oe
4494
4494
  }));
4495
4495
  }
4496
4496
  return this._ticksLength = d, this._borderValue = y, f;
4497
4497
  }
4498
4498
  _computeLabelItems(t) {
4499
- const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = le(n.grid), f = u + h, m = d ? -h : f, p = -ht(this.labelRotation), g = [];
4499
+ const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = ce(n.grid), f = u + h, m = d ? -h : f, p = -ht(this.labelRotation), g = [];
4500
4500
  let b, y, x, v, _, M, S, k, w, P, A, D, E = "middle";
4501
4501
  if (s === "top")
4502
4502
  M = this.bottom - m, S = this._getXAxisLabelAlignment();
@@ -4536,29 +4536,29 @@ class jt extends at {
4536
4536
  a ? (_ = k, S === "inner" && (b === y - 1 ? $t = this.options.reverse ? "left" : "right" : b === 0 ? $t = this.options.reverse ? "right" : "left" : $t = "center"), s === "top" ? c === "near" || p !== 0 ? D = -A * P + P / 2 : c === "center" ? D = -G.highest.height / 2 - R * P + P : D = -G.highest.height + P / 2 : c === "near" || p !== 0 ? D = P / 2 : c === "center" ? D = G.highest.height / 2 - R * P : D = G.highest.height - A * P, d && (D *= -1), p !== 0 && !O.showLabelBackdrop && (_ += P / 2 * Math.sin(p))) : (M = k, D = (1 - A) * P / 2);
4537
4537
  let Ue;
4538
4538
  if (O.showLabelBackdrop) {
4539
- const Yt = Q(O.backdropPadding), ee = G.heights[b], ie = G.widths[b];
4540
- let ne = D - Yt.top, se = 0 - Yt.left;
4539
+ const Yt = Q(O.backdropPadding), ie = G.heights[b], ne = G.widths[b];
4540
+ let se = D - Yt.top, oe = 0 - Yt.left;
4541
4541
  switch (E) {
4542
4542
  case "middle":
4543
- ne -= ee / 2;
4543
+ se -= ie / 2;
4544
4544
  break;
4545
4545
  case "bottom":
4546
- ne -= ee;
4546
+ se -= ie;
4547
4547
  break;
4548
4548
  }
4549
4549
  switch (S) {
4550
4550
  case "center":
4551
- se -= ie / 2;
4551
+ oe -= ne / 2;
4552
4552
  break;
4553
4553
  case "right":
4554
- se -= ie;
4554
+ oe -= ne;
4555
4555
  break;
4556
4556
  }
4557
4557
  Ue = {
4558
- left: se,
4559
- top: ne,
4560
- width: ie + Yt.width,
4561
- height: ee + Yt.height,
4558
+ left: oe,
4559
+ top: se,
4560
+ width: ne + Yt.width,
4561
+ height: ie + Yt.height,
4562
4562
  color: O.backdropColor
4563
4563
  };
4564
4564
  }
@@ -4773,7 +4773,7 @@ class ii {
4773
4773
  }
4774
4774
  }
4775
4775
  function fc(i, t, e) {
4776
- const n = we(/* @__PURE__ */ Object.create(null), [
4776
+ const n = ke(/* @__PURE__ */ Object.create(null), [
4777
4777
  e ? j.get(e) : {},
4778
4778
  j.get(t),
4779
4779
  i.defaults
@@ -5009,7 +5009,7 @@ function Cc(i, t) {
5009
5009
  if (r._proxy)
5010
5010
  return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
5011
5011
  const l = Ji(a, r, Mc(a, i), j.scales[r.type]), c = wc(l, s), h = e.scales || {};
5012
- o[a] = me(/* @__PURE__ */ Object.create(null), [
5012
+ o[a] = be(/* @__PURE__ */ Object.create(null), [
5013
5013
  {
5014
5014
  axis: l
5015
5015
  },
@@ -5021,7 +5021,7 @@ function Cc(i, t) {
5021
5021
  const r = a.type || i.type, l = a.indexAxis || Qi(r, t), h = (Ht[r] || {}).scales || {};
5022
5022
  Object.keys(h).forEach((d) => {
5023
5023
  const u = Sc(d, l), f = a[u + "AxisID"] || u;
5024
- o[f] = o[f] || /* @__PURE__ */ Object.create(null), me(o[f], [
5024
+ o[f] = o[f] || /* @__PURE__ */ Object.create(null), be(o[f], [
5025
5025
  {
5026
5026
  axis: u
5027
5027
  },
@@ -5031,7 +5031,7 @@ function Cc(i, t) {
5031
5031
  });
5032
5032
  }), Object.keys(o).forEach((a) => {
5033
5033
  const r = o[a];
5034
- me(r, [
5034
+ be(r, [
5035
5035
  j.scales[r.type],
5036
5036
  j.scale
5037
5037
  ]);
@@ -5052,7 +5052,7 @@ function ni(i, t) {
5052
5052
  let e = ys.get(i);
5053
5053
  return e || (e = t(), ys.set(i, e), No.add(e)), e;
5054
5054
  }
5055
- const ce = (i, t, e) => {
5055
+ const he = (i, t, e) => {
5056
5056
  const n = Pt(t, e);
5057
5057
  n !== void 0 && i.add(n);
5058
5058
  };
@@ -5141,7 +5141,7 @@ class Ac {
5141
5141
  return r;
5142
5142
  const l = /* @__PURE__ */ new Set();
5143
5143
  e.forEach((h) => {
5144
- t && (l.add(t), h.forEach((d) => ce(l, t, d))), h.forEach((d) => ce(l, s, d)), h.forEach((d) => ce(l, Ht[o] || {}, d)), h.forEach((d) => ce(l, j, d)), h.forEach((d) => ce(l, Ki, d));
5144
+ t && (l.add(t), h.forEach((d) => he(l, t, d))), h.forEach((d) => he(l, s, d)), h.forEach((d) => he(l, Ht[o] || {}, d)), h.forEach((d) => he(l, j, d)), h.forEach((d) => he(l, Ki, d));
5145
5145
  });
5146
5146
  const c = Array.from(l);
5147
5147
  return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), No.has(e) && a.set(e, c), c;
@@ -5169,7 +5169,7 @@ class Ac {
5169
5169
  if (Lc(a, e)) {
5170
5170
  o.$shared = !1, n = At(n) ? n() : n;
5171
5171
  const c = this.createResolver(t, n, r);
5172
- l = Qt(a, n, c);
5172
+ l = Jt(a, n, c);
5173
5173
  }
5174
5174
  for (const c of e)
5175
5175
  o[c] = l[c];
@@ -5179,7 +5179,7 @@ class Ac {
5179
5179
  ""
5180
5180
  ], s) {
5181
5181
  const { resolver: o } = xs(this._resolverCache, t, n);
5182
- return T(e) ? Qt(o, e, void 0, s) : o;
5182
+ return T(e) ? Jt(o, e, void 0, s) : o;
5183
5183
  }
5184
5184
  }
5185
5185
  function xs(i, t, e) {
@@ -5611,7 +5611,7 @@ let Lt = (vt = class {
5611
5611
  }
5612
5612
  _updateVisibility(t, e, n) {
5613
5613
  const s = n ? "show" : "hide", o = this.getDatasetMeta(t), a = o.controller._resolveAnimations(void 0, s);
5614
- ke(e) ? (o.data[e].hidden = !n, this.update()) : (this.setDatasetVisibility(t, n), a.update(o, {
5614
+ Me(e) ? (o.data[e].hidden = !n, this.update()) : (this.setDatasetVisibility(t, n), a.update(o, {
5615
5615
  visible: n
5616
5616
  }), this.update((r) => r.datasetIndex === t ? s : void 0));
5617
5617
  }
@@ -5841,7 +5841,7 @@ function Nc(i, t, e, n, s) {
5841
5841
  }
5842
5842
  f && Bc(i, t, m), o || (yi(i, t, e, n, m, s), i.stroke());
5843
5843
  }
5844
- class fe extends at {
5844
+ class ge extends at {
5845
5845
  constructor(e) {
5846
5846
  super();
5847
5847
  C(this, "circumference");
@@ -5866,7 +5866,7 @@ class fe extends at {
5866
5866
  "innerRadius",
5867
5867
  "outerRadius",
5868
5868
  "circumference"
5869
- ], s), f = (this.options.spacing + this.options.borderWidth) / 2, p = L(u, c - l) >= H || Ce(a, l, c), g = xt(r, h + f, d + f);
5869
+ ], s), f = (this.options.spacing + this.options.borderWidth) / 2, p = L(u, c - l) >= H || Pe(a, l, c), g = xt(r, h + f, d + f);
5870
5870
  return p && g;
5871
5871
  }
5872
5872
  getCenterPoint(e) {
@@ -5897,7 +5897,7 @@ class fe extends at {
5897
5897
  e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, Hc(e, this, h, a, r), Nc(e, this, h, a, r), e.restore();
5898
5898
  }
5899
5899
  }
5900
- C(fe, "id", "arc"), C(fe, "defaults", {
5900
+ C(ge, "id", "arc"), C(ge, "defaults", {
5901
5901
  borderAlign: "center",
5902
5902
  borderColor: "#fff",
5903
5903
  borderDash: [],
@@ -5909,9 +5909,9 @@ C(fe, "id", "arc"), C(fe, "defaults", {
5909
5909
  spacing: 0,
5910
5910
  angle: void 0,
5911
5911
  circular: !0
5912
- }), C(fe, "defaultRoutes", {
5912
+ }), C(ge, "defaultRoutes", {
5913
5913
  backgroundColor: "backgroundColor"
5914
- }), C(fe, "descriptors", {
5914
+ }), C(ge, "descriptors", {
5915
5915
  _scriptable: !0,
5916
5916
  _indexable: (e) => e !== "borderDash"
5917
5917
  });
@@ -6218,12 +6218,12 @@ function $i(i, t, e = {}) {
6218
6218
  radius: i.radius
6219
6219
  };
6220
6220
  }
6221
- class _e extends at {
6221
+ class ve extends at {
6222
6222
  constructor(t) {
6223
6223
  super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
6224
6224
  }
6225
6225
  draw(t) {
6226
- const { inflateAmount: e, options: { borderColor: n, backgroundColor: s } } = this, { inner: o, outer: a } = Jc(this), r = th(a.radius) ? Pe : eh;
6226
+ const { inflateAmount: e, options: { borderColor: n, backgroundColor: s } } = this, { inner: o, outer: a } = Jc(this), r = th(a.radius) ? Ae : eh;
6227
6227
  t.save(), (a.w !== o.w || a.h !== o.h) && (t.beginPath(), r(t, $i(a, e, o)), t.clip(), r(t, $i(o, -e, a)), t.fillStyle = n, t.fill("evenodd")), t.beginPath(), r(t, $i(o, e)), t.fillStyle = s, t.fill(), t.restore();
6228
6228
  }
6229
6229
  inRange(t, e, n) {
@@ -6251,13 +6251,13 @@ class _e extends at {
6251
6251
  return t === "x" ? this.width / 2 : this.height / 2;
6252
6252
  }
6253
6253
  }
6254
- C(_e, "id", "bar"), C(_e, "defaults", {
6254
+ C(ve, "id", "bar"), C(ve, "defaults", {
6255
6255
  borderSkipped: "start",
6256
6256
  borderWidth: 0,
6257
6257
  borderRadius: 0,
6258
6258
  inflateAmount: "auto",
6259
6259
  pointStyle: void 0
6260
- }), C(_e, "defaultRoutes", {
6260
+ }), C(ve, "defaultRoutes", {
6261
6261
  backgroundColor: "backgroundColor",
6262
6262
  borderColor: "borderColor"
6263
6263
  });
@@ -6742,7 +6742,7 @@ class Os extends at {
6742
6742
  yo(s, P, A, D, a.pointStyleWidth && m);
6743
6743
  } else {
6744
6744
  const P = S + Math.max((d - p) / 2, 0), A = l.leftForLtr(M, m), D = zt(k.borderRadius);
6745
- s.beginPath(), Object.values(D).some((E) => E !== 0) ? Pe(s, {
6745
+ s.beginPath(), Object.values(D).some((E) => E !== 0) ? Ae(s, {
6746
6746
  x: A,
6747
6747
  y: P,
6748
6748
  w: m,
@@ -7030,7 +7030,7 @@ var Ne = {
7030
7030
  _indexable: !1
7031
7031
  }
7032
7032
  };
7033
- const ge = {
7033
+ const pe = {
7034
7034
  average(i) {
7035
7035
  if (!i.length)
7036
7036
  return !1;
@@ -7283,7 +7283,7 @@ class nn extends at {
7283
7283
  opacity: 0
7284
7284
  });
7285
7285
  else {
7286
- const r = ge[n.position].call(this, s, this._eventPosition);
7286
+ const r = pe[n.position].call(this, s, this._eventPosition);
7287
7287
  a = this._createItems(n), this.title = this.getTitle(a, n), this.beforeBody = this.getBeforeBody(a, n), this.body = this.getBody(a, n), this.afterBody = this.getAfterBody(a, n), this.footer = this.getFooter(a, n);
7288
7288
  const l = this._size = Is(this, n), c = Object.assign({}, r, l), h = Fs(this.chart, n, c), d = Rs(n, c, h, this.chart);
7289
7289
  this.xAlign = h.xAlign, this.yAlign = h.yAlign, o = {
@@ -7340,13 +7340,13 @@ class nn extends at {
7340
7340
  } else {
7341
7341
  t.lineWidth = T(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
7342
7342
  const p = s.leftForLtr(u, c), g = s.leftForLtr(s.xPlus(u, 1), c - 2), b = zt(a.borderRadius);
7343
- Object.values(b).some((y) => y !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Pe(t, {
7343
+ Object.values(b).some((y) => y !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Ae(t, {
7344
7344
  x: p,
7345
7345
  y: m,
7346
7346
  w: c,
7347
7347
  h: l,
7348
7348
  radius: b
7349
- }), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), Pe(t, {
7349
+ }), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), Ae(t, {
7350
7350
  x: g,
7351
7351
  y: m + 1,
7352
7352
  w: c - 2,
@@ -7386,7 +7386,7 @@ class nn extends at {
7386
7386
  _updateAnimationTarget(t) {
7387
7387
  const e = this.chart, n = this.$animations, s = n && n.x, o = n && n.y;
7388
7388
  if (s || o) {
7389
- const a = ge[t.position].call(this, this._active, this._eventPosition);
7389
+ const a = pe[t.position].call(this, this._active, this._eventPosition);
7390
7390
  if (!a)
7391
7391
  return;
7392
7392
  const r = this._size = Is(this, t), l = Object.assign({}, a, this._size), c = Fs(e, t, l), h = Rs(t, l, c, e);
@@ -7449,15 +7449,15 @@ class nn extends at {
7449
7449
  return o.reverse && a.reverse(), a;
7450
7450
  }
7451
7451
  _positionChanged(t, e) {
7452
- const { caretX: n, caretY: s, options: o } = this, a = ge[o.position].call(this, t, e);
7452
+ const { caretX: n, caretY: s, options: o } = this, a = pe[o.position].call(this, t, e);
7453
7453
  return a !== !1 && (n !== a.x || s !== a.y);
7454
7454
  }
7455
7455
  }
7456
- C(nn, "positioners", ge);
7456
+ C(nn, "positioners", pe);
7457
7457
  var Ve = {
7458
7458
  id: "tooltip",
7459
7459
  _element: nn,
7460
- positioners: ge,
7460
+ positioners: pe,
7461
7461
  afterInit(i, t, e) {
7462
7462
  e && (i.tooltip = new nn({
7463
7463
  chart: i,
@@ -7586,7 +7586,7 @@ function zs(i) {
7586
7586
  const t = this.getLabels();
7587
7587
  return i >= 0 && i < t.length ? t[i] : i;
7588
7588
  }
7589
- class De extends jt {
7589
+ class Le extends jt {
7590
7590
  constructor(t) {
7591
7591
  super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
7592
7592
  }
@@ -7641,7 +7641,7 @@ class De extends jt {
7641
7641
  return this.bottom;
7642
7642
  }
7643
7643
  }
7644
- C(De, "id", "category"), C(De, "defaults", {
7644
+ C(Le, "id", "category"), C(Le, "defaults", {
7645
7645
  ticks: {
7646
7646
  callback: zs
7647
7647
  }
@@ -7658,13 +7658,13 @@ function zh(i, t) {
7658
7658
  value: g
7659
7659
  }
7660
7660
  ];
7661
- w = Math.ceil(g / _) - Math.floor(p / _), w > m && (_ = Rn(w * _ / m / f) * f), F(l) || (M = Math.pow(10, l), _ = Math.ceil(_ * M) / M), s === "ticks" ? (S = Math.floor(p / _) * _, k = Math.ceil(g / _) * _) : (S = p, k = g), b && y && o && Ua((r - a) / o, _ / 1e3) ? (w = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / w, S = a, k = r) : x ? (S = b ? a : S, k = y ? r : k, w = c - 1, _ = (k - S) / w) : (w = (k - S) / _, be(w, Math.round(w), _ / 1e3) ? w = Math.round(w) : w = Math.ceil(w));
7661
+ w = Math.ceil(g / _) - Math.floor(p / _), w > m && (_ = Rn(w * _ / m / f) * f), F(l) || (M = Math.pow(10, l), _ = Math.ceil(_ * M) / M), s === "ticks" ? (S = Math.floor(p / _) * _, k = Math.ceil(g / _) * _) : (S = p, k = g), b && y && o && Ua((r - a) / o, _ / 1e3) ? (w = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / w, S = a, k = r) : x ? (S = b ? a : S, k = y ? r : k, w = c - 1, _ = (k - S) / w) : (w = (k - S) / _, ye(w, Math.round(w), _ / 1e3) ? w = Math.round(w) : w = Math.ceil(w));
7662
7662
  const P = Math.max(En(_), En(S));
7663
7663
  M = Math.pow(10, F(l) ? P : l), S = Math.round(S * M) / M, k = Math.round(k * M) / M;
7664
7664
  let A = 0;
7665
7665
  for (b && (u && S !== a ? (e.push({
7666
7666
  value: a
7667
- }), S < a && A++, be(Math.round((S + A * _) * M) / M, a, Ws(a, v, i)) && A++) : S < a && A++); A < w; ++A) {
7667
+ }), S < a && A++, ye(Math.round((S + A * _) * M) / M, a, Ws(a, v, i)) && A++) : S < a && A++); A < w; ++A) {
7668
7668
  const D = Math.round((S + A * _) * M) / M;
7669
7669
  if (y && D > r)
7670
7670
  break;
@@ -7672,7 +7672,7 @@ function zh(i, t) {
7672
7672
  value: D
7673
7673
  });
7674
7674
  }
7675
- return y && u && k !== r ? e.length && be(e[e.length - 1].value, r, Ws(r, v, i)) ? e[e.length - 1].value = r : e.push({
7675
+ return y && u && k !== r ? e.length && ye(e[e.length - 1].value, r, Ws(r, v, i)) ? e[e.length - 1].value = r : e.push({
7676
7676
  value: r
7677
7677
  }) : (!y || k === r) && e.push({
7678
7678
  value: k
@@ -7743,7 +7743,7 @@ class xi extends jt {
7743
7743
  return Si(t, this.chart.options.locale, this.options.ticks.format);
7744
7744
  }
7745
7745
  }
7746
- class Le extends xi {
7746
+ class Te extends xi {
7747
7747
  determineDataLimits() {
7748
7748
  const { min: t, max: e } = this.getMinMax(!0);
7749
7749
  this.min = V(t) ? t : 0, this.max = V(e) ? e : 1, this.handleTickRangeOptions();
@@ -7759,14 +7759,14 @@ class Le extends xi {
7759
7759
  return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
7760
7760
  }
7761
7761
  }
7762
- C(Le, "id", "linear"), C(Le, "defaults", {
7762
+ C(Te, "id", "linear"), C(Te, "defaults", {
7763
7763
  ticks: {
7764
7764
  callback: wi.formatters.numeric
7765
7765
  }
7766
7766
  });
7767
- const Te = (i) => Math.floor(wt(i)), Ft = (i, t) => Math.pow(10, Te(i) + t);
7767
+ const Oe = (i) => Math.floor(wt(i)), Ft = (i, t) => Math.pow(10, Oe(i) + t);
7768
7768
  function Hs(i) {
7769
- return i / Math.pow(10, Te(i)) === 1;
7769
+ return i / Math.pow(10, Oe(i)) === 1;
7770
7770
  }
7771
7771
  function Ns(i, t, e) {
7772
7772
  const n = Math.pow(10, e), s = Math.floor(i / n);
@@ -7774,16 +7774,16 @@ function Ns(i, t, e) {
7774
7774
  }
7775
7775
  function Wh(i, t) {
7776
7776
  const e = t - i;
7777
- let n = Te(e);
7777
+ let n = Oe(e);
7778
7778
  for (; Ns(i, t, n) > 10; )
7779
7779
  n++;
7780
7780
  for (; Ns(i, t, n) < 10; )
7781
7781
  n--;
7782
- return Math.min(n, Te(i));
7782
+ return Math.min(n, Oe(i));
7783
7783
  }
7784
7784
  function Hh(i, { min: t, max: e }) {
7785
7785
  t = et(i.min, t);
7786
- const n = [], s = Te(t);
7786
+ const n = [], s = Oe(t);
7787
7787
  let o = Wh(t, e), a = o < 0 ? Math.pow(10, Math.abs(o)) : 1;
7788
7788
  const r = Math.pow(10, o), l = s > o ? Math.pow(10, s) : 0, c = Math.round((t - l) * a) / a, h = Math.floor((t - l) / r / 10) * r * 10;
7789
7789
  let d = Math.floor((c - h) / Math.pow(10, o)), u = et(i.min, Math.round((l + h + d * Math.pow(10, o)) * a) / a);
@@ -7964,7 +7964,7 @@ function Kh(i, t, e) {
7964
7964
  const l = zt(t.borderRadius), c = Q(t.backdropPadding);
7965
7965
  i.fillStyle = r;
7966
7966
  const h = n - c.left, d = s - c.top, u = o - n + c.width, f = a - s + c.height;
7967
- Object.values(l).some((m) => m !== 0) ? (i.beginPath(), Pe(i, {
7967
+ Object.values(l).some((m) => m !== 0) ? (i.beginPath(), Ae(i, {
7968
7968
  x: h,
7969
7969
  y: d,
7970
7970
  w: u,
@@ -8011,7 +8011,7 @@ function Jh(i, t, e) {
8011
8011
  type: "pointLabel"
8012
8012
  });
8013
8013
  }
8014
- class pe extends xi {
8014
+ class me extends xi {
8015
8015
  constructor(t) {
8016
8016
  super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
8017
8017
  }
@@ -8139,7 +8139,7 @@ class pe extends xi {
8139
8139
  drawTitle() {
8140
8140
  }
8141
8141
  }
8142
- C(pe, "id", "radialLinear"), C(pe, "defaults", {
8142
+ C(me, "id", "radialLinear"), C(me, "defaults", {
8143
8143
  display: !0,
8144
8144
  animate: !0,
8145
8145
  position: "chartArea",
@@ -8170,11 +8170,11 @@ C(pe, "id", "radialLinear"), C(pe, "defaults", {
8170
8170
  padding: 5,
8171
8171
  centerPointLabels: !1
8172
8172
  }
8173
- }), C(pe, "defaultRoutes", {
8173
+ }), C(me, "defaultRoutes", {
8174
8174
  "angleLines.color": "borderColor",
8175
8175
  "pointLabels.color": "color",
8176
8176
  "ticks.color": "color"
8177
- }), C(pe, "descriptors", {
8177
+ }), C(me, "descriptors", {
8178
8178
  angleLines: {
8179
8179
  _fallback: "grid"
8180
8180
  }
@@ -8233,7 +8233,7 @@ function Ys(i, t) {
8233
8233
  return null;
8234
8234
  const e = i._adapter, { parser: n, round: s, isoWeekday: o } = i._parseOpts;
8235
8235
  let a = t;
8236
- return typeof n == "function" && (a = n(a)), V(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (Me(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, s)), +a);
8236
+ return typeof n == "function" && (a = n(a)), V(a) || (a = typeof n == "string" ? e.parse(a, n) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (Ce(o) || o === !0) ? e.startOf(a, "isoWeek", o) : e.startOf(a, s)), +a);
8237
8237
  }
8238
8238
  function Us(i, t, e, n) {
8239
8239
  const s = tt.length;
@@ -8292,7 +8292,7 @@ class _i extends jt {
8292
8292
  }
8293
8293
  init(t, e = {}) {
8294
8294
  const n = t.time || (t.time = {}), s = this._adapter = new Pl._date(t.adapters.date);
8295
- s.init(e), me(n.displayFormats, s.formats()), this._parseOpts = {
8295
+ s.init(e), be(n.displayFormats, s.formats()), this._parseOpts = {
8296
8296
  parser: n.parser,
8297
8297
  round: n.round,
8298
8298
  isoWeekday: n.isoWeekday
@@ -8344,7 +8344,7 @@ class _i extends jt {
8344
8344
  };
8345
8345
  }
8346
8346
  _generate() {
8347
- const t = this._adapter, e = this.min, n = this.max, s = this.options, o = s.time, a = o.unit || Us(o.minUnit, e, n, this._getLabelCapacity(e)), r = L(s.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = Me(l) || l === !0, h = {};
8347
+ const t = this._adapter, e = this.min, n = this.max, s = this.options, o = s.time, a = o.unit || Us(o.minUnit, e, n, this._getLabelCapacity(e)), r = L(s.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = Ce(l) || l === !0, h = {};
8348
8348
  let d = e, u, f;
8349
8349
  if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : a), t.diff(n, e, a) > 1e5 * r)
8350
8350
  throw new Error(e + " and " + n + " are too far apart with stepSize of " + r + " " + a);
@@ -8589,7 +8589,7 @@ const ld = Vt({
8589
8589
  }, r = (l) => {
8590
8590
  l.update(i.updateMode);
8591
8591
  };
8592
- return eo(o), fa(a), ve([
8592
+ return eo(o), fa(a), Se([
8593
8593
  () => i.options,
8594
8594
  () => i.data
8595
8595
  ], (l, c) => {
@@ -8633,7 +8633,7 @@ function Ai(i, t) {
8633
8633
  }
8634
8634
  });
8635
8635
  }
8636
- const ea = /* @__PURE__ */ Ai("bar", ri), cd = /* @__PURE__ */ Ai("doughnut", de), hd = /* @__PURE__ */ Ai("line", li), dd = /* @__PURE__ */ Ai("radar", ci);
8636
+ const ea = /* @__PURE__ */ Ai("bar", ri), cd = /* @__PURE__ */ Ai("doughnut", ue), hd = /* @__PURE__ */ Ai("line", li), dd = /* @__PURE__ */ Ai("radar", ci);
8637
8637
  function Di() {
8638
8638
  function i(e, n = 50, s = 50) {
8639
8639
  const o = document.createElement("canvas"), a = o.getContext("2d");
@@ -8798,7 +8798,7 @@ function Ii(i, t) {
8798
8798
  let e = (n = i.value) == null ? void 0 : n.querySelector("ul");
8799
8799
  return e || (e = document.createElement("ul"), e.style.display = "flex", e.style.flexDirection = t, e.style.margin = "0", e.style.padding = "0", (s = i.value) == null || s.appendChild(e)), e;
8800
8800
  }
8801
- function Oe(i, t) {
8801
+ function Ie(i, t) {
8802
8802
  const e = Math.round(Math.min(Math.max(t || 1, 0), 1) * 255);
8803
8803
  return i + e.toString(16).toUpperCase();
8804
8804
  }
@@ -8836,7 +8836,7 @@ function kd() {
8836
8836
  }
8837
8837
  function r(p, g, b, y) {
8838
8838
  const x = Ui(p, y);
8839
- return u(p, g) ? b[x] : Oe(b[x], 0.2);
8839
+ return u(p, g) ? b[x] : Ie(b[x], 0.2);
8840
8840
  }
8841
8841
  function l(p, g, b, y, x, v) {
8842
8842
  const _ = Ui(p, v);
@@ -8989,7 +8989,7 @@ class je {
8989
8989
  return t.lines;
8990
8990
  }
8991
8991
  }
8992
- var te = /* @__PURE__ */ ((i) => (i.RADAR = "RADAR", i.BAR_CHART = "BAR_CHART", i.MIXED_BAR_LINE_CHART = "MIXED_BAR_LINE_CHART", i.DETAILS_BAR_CHART = "DETAILS_BAR_CHART", i.LINE_CHART = "LINE_CHART", i.DOUGHNUT = "DOUGHNUT", i))(te || {});
8992
+ var ee = /* @__PURE__ */ ((i) => (i.RADAR = "RADAR", i.BAR_CHART = "BAR_CHART", i.MIXED_BAR_LINE_CHART = "MIXED_BAR_LINE_CHART", i.DETAILS_BAR_CHART = "DETAILS_BAR_CHART", i.LINE_CHART = "LINE_CHART", i.DOUGHNUT = "DOUGHNUT", i))(ee || {});
8993
8993
  function Cd(i, t = "#A274FF", e = !1) {
8994
8994
  const n = document.createElement("canvas"), s = n.getContext("2d");
8995
8995
  if (!s)
@@ -9229,9 +9229,9 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9229
9229
  Ne,
9230
9230
  Ve,
9231
9231
  He,
9232
- _e,
9233
- De,
9234
- Le
9232
+ ve,
9233
+ Le,
9234
+ Te
9235
9235
  );
9236
9236
  const { colourSets: e, patternsStandardList: n } = $e(), s = X(null), o = X(!1), a = z(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((w) => e[t.colourSet][w])), r = z(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((w) => n[w])), l = z(() => t.disableAccessibility), {
9237
9237
  onHoverIndex: c,
@@ -9304,7 +9304,7 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9304
9304
  w,
9305
9305
  _,
9306
9306
  {
9307
- chartType: te.BAR_CHART,
9307
+ chartType: ee.BAR_CHART,
9308
9308
  firstLineLabel: g,
9309
9309
  secondLineLabel: b
9310
9310
  },
@@ -9337,15 +9337,15 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9337
9337
  r
9338
9338
  )
9339
9339
  );
9340
- return ve(
9340
+ return Se(
9341
9341
  c,
9342
9342
  () => {
9343
9343
  d();
9344
9344
  },
9345
9345
  { deep: !0 }
9346
- ), (w, P) => (ft(), Ie("div", Od, [
9346
+ ), (w, P) => (ft(), Fe("div", Od, [
9347
9347
  gt("div", Id, [
9348
- p.value ? (ft(), Fe(Zt(ea), {
9348
+ p.value ? (ft(), Re(Zt(ea), {
9349
9349
  key: 0,
9350
9350
  ref_key: "barChartRef",
9351
9351
  ref: h,
@@ -9353,8 +9353,8 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
9353
9353
  data: p.value,
9354
9354
  options: S.value,
9355
9355
  plugins: k.value,
9356
- class: Re(i.cssClasses),
9357
- style: Ee([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9356
+ class: Ee(i.cssClasses),
9357
+ style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9358
9358
  }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Be("", !0)
9359
9359
  ]),
9360
9360
  gt("div", {
@@ -9396,7 +9396,7 @@ function Rd() {
9396
9396
  }
9397
9397
  function o(h) {
9398
9398
  return t.value !== null ? h.map(
9399
- (d, u) => t.value === u ? d : Oe(d, 0.2)
9399
+ (d, u) => t.value === u ? d : Ie(d, 0.2)
9400
9400
  ) : h;
9401
9401
  }
9402
9402
  function a() {
@@ -9542,7 +9542,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9542
9542
  },
9543
9543
  setup(i) {
9544
9544
  const t = i;
9545
- Lt.register(Ne, Ve, He, fe);
9545
+ Lt.register(Ne, Ve, He, ge);
9546
9546
  const { colourSets: e, patternsStandardList: n } = $e(), {
9547
9547
  onHoverIndex: s,
9548
9548
  doughnutRef: o,
@@ -9608,7 +9608,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9608
9608
  w,
9609
9609
  b,
9610
9610
  {
9611
- chartType: te.DOUGHNUT
9611
+ chartType: ee.DOUGHNUT
9612
9612
  },
9613
9613
  S,
9614
9614
  k,
@@ -9643,21 +9643,21 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9643
9643
  p.value,
9644
9644
  t.disableAccessibility
9645
9645
  );
9646
- }), ve(s, (S, k) => {
9646
+ }), Se(s, (S, k) => {
9647
9647
  S !== k && a(
9648
9648
  m.value,
9649
9649
  p.value,
9650
9650
  t.disableAccessibility
9651
9651
  );
9652
- }), ve(_, () => {
9652
+ }), Se(_, () => {
9653
9653
  a(
9654
9654
  m.value,
9655
9655
  p.value,
9656
9656
  t.disableAccessibility
9657
9657
  );
9658
- }), (S, k) => (ft(), Ie("div", Ed, [
9658
+ }), (S, k) => (ft(), Fe("div", Ed, [
9659
9659
  gt("div", Bd, [
9660
- g.value ? (ft(), Fe(Zt(cd), {
9660
+ g.value ? (ft(), Re(Zt(cd), {
9661
9661
  key: 0,
9662
9662
  ref_key: "doughnutRef",
9663
9663
  ref: o,
@@ -9666,8 +9666,8 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
9666
9666
  options: x.value,
9667
9667
  plugins: M.value,
9668
9668
  "max-values": i.maxValues,
9669
- class: Re(i.cssClasses),
9670
- style: Ee([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9669
+ class: Ee(i.cssClasses),
9670
+ style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9671
9671
  }, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) : Be("", !0)
9672
9672
  ]),
9673
9673
  gt("div", {
@@ -9792,8 +9792,8 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9792
9792
  He,
9793
9793
  Kt,
9794
9794
  dt,
9795
- De,
9796
- Le
9795
+ Le,
9796
+ Te
9797
9797
  );
9798
9798
  const { colourSets: e, patternsStandardList: n } = $e(), s = X(null), o = X(!1), a = z(
9799
9799
  () => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((g) => e[t.colourSet][g])
@@ -9866,7 +9866,7 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9866
9866
  g,
9867
9867
  l,
9868
9868
  {
9869
- chartType: te.LINE_CHART,
9869
+ chartType: ee.LINE_CHART,
9870
9870
  firstLineLabel: c.value,
9871
9871
  secondLineLabel: h.value
9872
9872
  },
@@ -9897,17 +9897,17 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
9897
9897
  }
9898
9898
  }
9899
9899
  }));
9900
- return (g, b) => (ft(), Ie("div", Wd, [
9900
+ return (g, b) => (ft(), Fe("div", Wd, [
9901
9901
  gt("div", Hd, [
9902
- d.value ? (ft(), Fe(Zt(hd), {
9902
+ d.value ? (ft(), Re(Zt(hd), {
9903
9903
  key: 0,
9904
9904
  ref: "lineChartRef",
9905
9905
  id: i.chartId,
9906
9906
  data: d.value,
9907
9907
  options: p.value,
9908
9908
  plugins: Zt(m),
9909
- class: Re(i.cssClasses),
9910
- style: Ee([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9909
+ class: Ee(i.cssClasses),
9910
+ style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
9911
9911
  }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Be("", !0)
9912
9912
  ]),
9913
9913
  gt("div", {
@@ -9946,7 +9946,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
9946
9946
  default:
9947
9947
  return "#000000";
9948
9948
  }
9949
- }), $d = { class: "container" }, Yd = { class: "main" }, Ud = /* @__PURE__ */ Vt({
9949
+ }), $d = { class: "container" }, Yd = /* @__PURE__ */ Vt({
9950
9950
  __name: "RadarChart",
9951
9951
  props: {
9952
9952
  /**
@@ -9961,7 +9961,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
9961
9961
  */
9962
9962
  height: {
9963
9963
  type: String,
9964
- default: "400px"
9964
+ default: "600px"
9965
9965
  },
9966
9966
  /**
9967
9967
  * Labels used to label the index axis (default x axes). See [Data structures documentation](https://www.chartjs.org/docs/latest/general/data-structures.html)
@@ -10033,7 +10033,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10033
10033
  Ne,
10034
10034
  Ve,
10035
10035
  He,
10036
- pe,
10036
+ me,
10037
10037
  dt,
10038
10038
  Kt,
10039
10039
  vh
@@ -10047,7 +10047,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10047
10047
  datasets: [
10048
10048
  {
10049
10049
  label: t.datasets[0].label,
10050
- backgroundColor: Oe(s.value[0], 0.1),
10050
+ backgroundColor: Ie(s.value[0], 0.1),
10051
10051
  borderColor: s.value[0],
10052
10052
  pointBackgroundColor: "#FFFFFF",
10053
10053
  pointBorderColor: s.value[0],
@@ -10063,7 +10063,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10063
10063
  },
10064
10064
  {
10065
10065
  label: t.datasets[1].label,
10066
- backgroundColor: Oe(s.value[1], 0.1),
10066
+ backgroundColor: Ie(s.value[1], 0.1),
10067
10067
  borderColor: s.value[1],
10068
10068
  pointBackgroundColor: "#FFFFFF",
10069
10069
  pointBorderColor: s.value[1],
@@ -10100,7 +10100,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10100
10100
  new je().createTooltip(
10101
10101
  g,
10102
10102
  p,
10103
- { chartType: te.RADAR },
10103
+ { chartType: ee.RADAR },
10104
10104
  s.value,
10105
10105
  o.value,
10106
10106
  t.disableAccessibility
@@ -10188,18 +10188,21 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10188
10188
  const b = g.tooltip.dataPoints[0].datasetIndex, y = g.tooltip.dataPoints[0].dataIndex, x = t.datasets[b];
10189
10189
  return x.areaData[y].value.toFixed(2) + " " + x.areaData[y].unit;
10190
10190
  };
10191
- return (g, b) => (ft(), Ie("div", $d, [
10192
- gt("div", Yd, [
10193
- a.value ? (ft(), Fe(Zt(dd), {
10191
+ return (g, b) => (ft(), Fe("div", $d, [
10192
+ gt("div", {
10193
+ class: "main",
10194
+ style: Qt({ height: i.height })
10195
+ }, [
10196
+ a.value ? (ft(), Re(Zt(dd), {
10194
10197
  key: 0,
10195
10198
  id: i.chartId,
10196
10199
  data: a.value,
10197
10200
  options: r,
10198
10201
  plugins: m,
10199
- class: Re(i.cssClasses),
10200
- style: Ee([{ height: i.height, cursor: "pointer" }, i.styles])
10202
+ class: Ee(i.cssClasses),
10203
+ style: Qt([{ height: i.height, cursor: "pointer" }, i.styles])
10201
10204
  }, null, 8, ["id", "data", "class", "style"])) : Be("", !0)
10202
- ]),
10205
+ ], 4),
10203
10206
  gt("div", {
10204
10207
  ref_key: "legendContainer",
10205
10208
  ref: l,
@@ -10208,7 +10211,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
10208
10211
  ]));
10209
10212
  }
10210
10213
  });
10211
- const cn = /* @__PURE__ */ Ye(Ud, [["__scopeId", "data-v-26475601"]]);
10214
+ const cn = /* @__PURE__ */ Ye(Yd, [["__scopeId", "data-v-172f7940"]]);
10212
10215
  cn.install = (i) => {
10213
10216
  i.component("RadarChart", cn);
10214
10217
  };
@@ -10219,7 +10222,7 @@ const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10219
10222
  LineChart: ln,
10220
10223
  RadarChart: cn
10221
10224
  }, Symbol.toStringTag, { value: "Module" })), { getPatternIndexWithShift: Qs } = Di();
10222
- function Xd() {
10225
+ function Ud() {
10223
10226
  const i = X(2), t = so({
10224
10227
  dataSetIndex: -1,
10225
10228
  columnIndex: -1
@@ -10319,7 +10322,7 @@ function Xd() {
10319
10322
  }
10320
10323
  function l(m, p, g, b) {
10321
10324
  const y = Qs(m, b);
10322
- return h(m, p) ? g[y] : Oe(g[y], 0.2);
10325
+ return h(m, p) ? g[y] : Ie(g[y], 0.2);
10323
10326
  }
10324
10327
  function c(m, p, g, b, y, x) {
10325
10328
  const v = Qs(m, x);
@@ -10355,7 +10358,7 @@ function Xd() {
10355
10358
  onHoverIndex: t
10356
10359
  };
10357
10360
  }
10358
- const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */ Vt({
10361
+ const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */ Vt({
10359
10362
  __name: "MixedBarLineChart",
10360
10363
  props: {
10361
10364
  /**
@@ -10505,9 +10508,9 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
10505
10508
  Ne,
10506
10509
  Ve,
10507
10510
  He,
10508
- _e,
10509
- De,
10511
+ ve,
10510
10512
  Le,
10513
+ Te,
10511
10514
  dt,
10512
10515
  Kt
10513
10516
  );
@@ -10517,7 +10520,7 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
10517
10520
  getMixedDatasets: s,
10518
10521
  reloadChart: o,
10519
10522
  onHoverIndex: a
10520
- } = Xd(), { colourSets: r, patternsStandardList: l } = $e(), c = X(null), h = X(!1), d = z(() => {
10523
+ } = Ud(), { colourSets: r, patternsStandardList: l } = $e(), c = X(null), h = X(!1), d = z(() => {
10521
10524
  let v = [];
10522
10525
  return t.barDatasets && (v = v.concat(t.barDatasets)), t.lineDatasets && (v = v.concat(t.lineDatasets)), v;
10523
10526
  }), u = z(() => t.newPatternsOrder.length !== l.length ? r[t.colourSet] : t.newPatternsOrder.map((v) => r[t.colourSet][v])), f = z(() => t.newPatternsOrder.length !== l.length ? l : t.newPatternsOrder.map((v) => l[v])), m = z(() => t.disableAccessibility), p = z(() => ({
@@ -10556,7 +10559,7 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
10556
10559
  v,
10557
10560
  g,
10558
10561
  {
10559
- chartType: te.MIXED_BAR_LINE_CHART,
10562
+ chartType: ee.MIXED_BAR_LINE_CHART,
10560
10563
  firstLineLabel: t.tooltipFirstLineLabel,
10561
10564
  secondLineLabel: t.tooltipSecondLineLabel
10562
10565
  },
@@ -10619,23 +10622,23 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
10619
10622
  f
10620
10623
  )
10621
10624
  );
10622
- return ve(
10625
+ return Se(
10623
10626
  a,
10624
10627
  () => {
10625
10628
  o();
10626
10629
  },
10627
10630
  { deep: !0 }
10628
- ), (v, _) => (ft(), Ie("div", Gd, [
10629
- gt("div", qd, [
10630
- p.value ? (ft(), Fe(Zt(ea), {
10631
+ ), (v, _) => (ft(), Fe("div", Xd, [
10632
+ gt("div", Gd, [
10633
+ p.value ? (ft(), Re(Zt(ea), {
10631
10634
  key: 0,
10632
10635
  ref: "mixedBarLineChartRef",
10633
10636
  id: i.chartId,
10634
10637
  data: p.value,
10635
10638
  options: y.value,
10636
10639
  plugins: x.value,
10637
- class: Re(i.cssClasses),
10638
- style: Ee([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10640
+ class: Ee(i.cssClasses),
10641
+ style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
10639
10642
  }, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Be("", !0)
10640
10643
  ]),
10641
10644
  gt("div", {
@@ -10645,11 +10648,11 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
10645
10648
  ]));
10646
10649
  }
10647
10650
  });
10648
- const Js = /* @__PURE__ */ Ye(Kd, [["__scopeId", "data-v-0dd46b73"]]);
10651
+ const Js = /* @__PURE__ */ Ye(qd, [["__scopeId", "data-v-0dd46b73"]]);
10649
10652
  Js.install = (i) => {
10650
10653
  i.component("MixedBarLineChart", Js);
10651
10654
  };
10652
- const tu = {
10655
+ const Jd = {
10653
10656
  install: (i, t) => {
10654
10657
  Object.keys(Zs).forEach((e) => {
10655
10658
  i.component(e, Zs[e]);
@@ -10662,5 +10665,5 @@ export {
10662
10665
  ln as LineChart,
10663
10666
  Js as MixedBarLineChart,
10664
10667
  cn as RadarChart,
10665
- tu as default
10668
+ Jd as default
10666
10669
  };