mhz-ui 1.0.57 → 1.0.59

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,5 +1,5 @@
1
1
  import "./UiChart.css";
2
- import { version as xn, defineComponent as Je, ref as yn, shallowRef as Os, onMounted as vn, onUnmounted as Mn, watch as kn, toRaw as We, nextTick as wn, h as je, isProxy as Ps, computed as Sn, openBlock as ui, createElementBlock as On, normalizeClass as fi, createElementVNode as Pn, toDisplayString as Dn, createBlock as Cn, resolveDynamicComponent as An } from "vue";
2
+ import { version as xn, defineComponent as ti, ref as yn, shallowRef as Os, onMounted as vn, onUnmounted as Mn, watch as kn, toRaw as je, nextTick as wn, h as He, isProxy as Ps, computed as Sn, openBlock as fi, createElementBlock as On, normalizeClass as gi, createElementVNode as Pn, toDisplayString as Dn, createBlock as Cn, resolveDynamicComponent as An } from "vue";
3
3
  import { _ as Rn } from "../_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  /*!
5
5
  * @kurkle/color v0.3.2
@@ -20,10 +20,10 @@ function ht(i) {
20
20
  function ot(i) {
21
21
  return rt(Zt(i / 2.55) / 100, 0, 1);
22
22
  }
23
- function gi(i) {
23
+ function pi(i) {
24
24
  return rt(Zt(i * 100), 0, 100);
25
25
  }
26
- const U = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, He = [..."0123456789ABCDEF"], Tn = (i) => He[i & 15], Ln = (i) => He[(i & 240) >> 4] + He[i & 15], te = (i) => (i & 240) >> 4 === (i & 15), En = (i) => te(i.r) && te(i.g) && te(i.b) && te(i.a);
26
+ const U = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, $e = [..."0123456789ABCDEF"], Tn = (i) => $e[i & 15], Ln = (i) => $e[(i & 240) >> 4] + $e[i & 15], te = (i) => (i & 240) >> 4 === (i & 15), En = (i) => te(i.r) && te(i.g) && te(i.b) && te(i.a);
27
27
  function In(i) {
28
28
  var t = i.length, e;
29
29
  return i[0] === "#" && (t === 4 || t === 5 ? e = {
@@ -62,22 +62,22 @@ function Nn(i, t, e) {
62
62
  function Wn(i, t, e, s, n) {
63
63
  return i === n ? (t - e) / s + (t < e ? 6 : 0) : t === n ? (e - i) / s + 2 : (i - t) / s + 4;
64
64
  }
65
- function ti(i) {
65
+ function ei(i) {
66
66
  const e = i.r / 255, s = i.g / 255, n = i.b / 255, o = Math.max(e, s, n), a = Math.min(e, s, n), r = (o + a) / 2;
67
67
  let l, c, h;
68
68
  return o !== a && (h = o - a, c = r > 0.5 ? h / (2 - o - a) : h / (o + a), l = Wn(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, r];
69
69
  }
70
- function ei(i, t, e, s) {
70
+ function ii(i, t, e, s) {
71
71
  return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(ht);
72
72
  }
73
- function ii(i, t, e) {
74
- return ei(Ds, i, t, e);
73
+ function si(i, t, e) {
74
+ return ii(Ds, i, t, e);
75
75
  }
76
76
  function jn(i, t, e) {
77
- return ei(Nn, i, t, e);
77
+ return ii(Nn, i, t, e);
78
78
  }
79
79
  function Hn(i, t, e) {
80
- return ei(Vn, i, t, e);
80
+ return ii(Vn, i, t, e);
81
81
  }
82
82
  function Cs(i) {
83
83
  return (i % 360 + 360) % 360;
@@ -89,7 +89,7 @@ function $n(i) {
89
89
  return;
90
90
  t[5] !== s && (e = t[6] ? Vt(+t[5]) : ht(+t[5]));
91
91
  const n = Cs(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
92
- return t[1] === "hwb" ? s = jn(n, o, a) : t[1] === "hsv" ? s = Hn(n, o, a) : s = ii(n, o, a), {
92
+ return t[1] === "hwb" ? s = jn(n, o, a) : t[1] === "hsv" ? s = Hn(n, o, a) : s = si(n, o, a), {
93
93
  r: s[0],
94
94
  g: s[1],
95
95
  b: s[2],
@@ -97,16 +97,16 @@ function $n(i) {
97
97
  };
98
98
  }
99
99
  function Yn(i, t) {
100
- var e = ti(i);
101
- e[0] = Cs(e[0] + t), e = ii(e), i.r = e[0], i.g = e[1], i.b = e[2];
100
+ var e = ei(i);
101
+ e[0] = Cs(e[0] + t), e = si(e), i.r = e[0], i.g = e[1], i.b = e[2];
102
102
  }
103
103
  function Xn(i) {
104
104
  if (!i)
105
105
  return;
106
- const t = ti(i), e = t[0], s = gi(t[1]), n = gi(t[2]);
106
+ const t = ei(i), e = t[0], s = pi(t[1]), n = pi(t[2]);
107
107
  return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${ot(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
108
108
  }
109
- const pi = {
109
+ const mi = {
110
110
  x: "dark",
111
111
  Z: "light",
112
112
  Y: "re",
@@ -134,7 +134,7 @@ const pi = {
134
134
  H: "ea",
135
135
  I: "ightg",
136
136
  J: "wh"
137
- }, mi = {
137
+ }, bi = {
138
138
  OiceXe: "f0f8ff",
139
139
  antiquewEte: "faebd7",
140
140
  aqua: "ffff",
@@ -285,12 +285,12 @@ const pi = {
285
285
  LwgYF: "9acd32"
286
286
  };
287
287
  function Un() {
288
- const i = {}, t = Object.keys(mi), e = Object.keys(pi);
288
+ const i = {}, t = Object.keys(bi), e = Object.keys(mi);
289
289
  let s, n, o, a, r;
290
290
  for (s = 0; s < t.length; s++) {
291
291
  for (a = r = t[s], n = 0; n < e.length; n++)
292
- o = e[n], r = r.replace(o, pi[o]);
293
- o = parseInt(mi[a], 16), i[r] = [o >> 16 & 255, o >> 8 & 255, o & 255];
292
+ o = e[n], r = r.replace(o, mi[o]);
293
+ o = parseInt(bi[a], 16), i[r] = [o >> 16 & 255, o >> 8 & 255, o & 255];
294
294
  }
295
295
  return i;
296
296
  }
@@ -337,14 +337,14 @@ function Qn(i, t, e) {
337
337
  }
338
338
  function ie(i, t, e) {
339
339
  if (i) {
340
- let s = ti(i);
341
- s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = ii(s), i.r = s[0], i.g = s[1], i.b = s[2];
340
+ let s = ei(i);
341
+ s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = si(s), i.r = s[0], i.g = s[1], i.b = s[2];
342
342
  }
343
343
  }
344
344
  function As(i, t) {
345
345
  return i && Object.assign(t || {}, i);
346
346
  }
347
- function bi(i) {
347
+ function _i(i) {
348
348
  var t = { r: 0, g: 0, b: 0, a: 255 };
349
349
  return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = ht(i[3]))) : (t = As(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = ht(t.a)), t;
350
350
  }
@@ -357,7 +357,7 @@ class Ut {
357
357
  return t;
358
358
  const e = typeof t;
359
359
  let s;
360
- e === "object" ? s = bi(t) : e === "string" && (s = In(t) || Kn(t) || Jn(t)), this._rgb = s, this._valid = !!s;
360
+ e === "object" ? s = _i(t) : e === "string" && (s = In(t) || Kn(t) || Jn(t)), this._rgb = s, this._valid = !!s;
361
361
  }
362
362
  get valid() {
363
363
  return this._valid;
@@ -367,7 +367,7 @@ class Ut {
367
367
  return t && (t.a = ot(t.a)), t;
368
368
  }
369
369
  set rgb(t) {
370
- this._rgb = bi(t);
370
+ this._rgb = _i(t);
371
371
  }
372
372
  rgbString() {
373
373
  return this._valid ? Zn(this._rgb) : void 0;
@@ -429,7 +429,7 @@ class Ut {
429
429
  }
430
430
  }
431
431
  /*!
432
- * Chart.js v4.4.4
432
+ * Chart.js v4.4.5
433
433
  * https://www.chartjs.org
434
434
  * (c) 2024 Chart.js Contributors
435
435
  * Released under the MIT License
@@ -462,7 +462,7 @@ function T(i, t) {
462
462
  return typeof i > "u" ? t : i;
463
463
  }
464
464
  const eo = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, Rs = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i;
465
- function F(i, t, e) {
465
+ function z(i, t, e) {
466
466
  if (i && typeof i.call == "function")
467
467
  return i.apply(e, t);
468
468
  }
@@ -538,7 +538,7 @@ function so(i, t, e) {
538
538
  const s = t[i], n = e[i];
539
539
  S(s) && S(n) ? jt(s, n) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = be(n));
540
540
  }
541
- const _i = {
541
+ const xi = {
542
542
  // Chart.helpers.core resolveObjectKey should resolve empty key to root object
543
543
  "": (i) => i,
544
544
  // default resolvers
@@ -564,12 +564,12 @@ function oo(i) {
564
564
  };
565
565
  }
566
566
  function ut(i, t) {
567
- return (_i[t] || (_i[t] = oo(t)))(i);
567
+ return (xi[t] || (xi[t] = oo(t)))(i);
568
568
  }
569
- function si(i) {
569
+ function ni(i) {
570
570
  return i.charAt(0).toUpperCase() + i.slice(1);
571
571
  }
572
- const qt = (i) => typeof i < "u", ft = (i) => typeof i == "function", xi = (i, t) => {
572
+ const qt = (i) => typeof i < "u", ft = (i) => typeof i == "function", yi = (i, t) => {
573
573
  if (i.size !== t.size)
574
574
  return !1;
575
575
  for (const e of i)
@@ -580,14 +580,14 @@ const qt = (i) => typeof i < "u", ft = (i) => typeof i == "function", xi = (i, t
580
580
  function ao(i) {
581
581
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
582
582
  }
583
- const z = Math.PI, N = 2 * z, _e = Number.POSITIVE_INFINITY, ro = z / 180, W = z / 2, mt = z / 4, yi = z * 2 / 3, $e = Math.log10, dt = Math.sign;
583
+ const B = Math.PI, N = 2 * B, _e = Number.POSITIVE_INFINITY, ro = B / 180, W = B / 2, mt = B / 4, vi = B * 2 / 3, Ye = Math.log10, dt = Math.sign;
584
584
  function fe(i, t, e) {
585
585
  return Math.abs(i - t) < e;
586
586
  }
587
- function vi(i) {
587
+ function Mi(i) {
588
588
  const t = Math.round(i);
589
589
  i = fe(i, t, i / 1e3) ? t : i;
590
- const e = Math.pow(10, Math.floor($e(i))), s = i / e;
590
+ const e = Math.pow(10, Math.floor(Ye(i))), s = i / e;
591
591
  return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * e;
592
592
  }
593
593
  function lo(i) {
@@ -610,12 +610,12 @@ function ho(i, t, e) {
610
610
  o = i[s][e], isNaN(o) || (t.min = Math.min(t.min, o), t.max = Math.max(t.max, o));
611
611
  }
612
612
  function et(i) {
613
- return i * (z / 180);
613
+ return i * (B / 180);
614
614
  }
615
615
  function uo(i) {
616
- return i * (180 / z);
616
+ return i * (180 / B);
617
617
  }
618
- function Mi(i) {
618
+ function ki(i) {
619
619
  if (!q(i))
620
620
  return;
621
621
  let t = 1, e = 0;
@@ -626,7 +626,7 @@ function Mi(i) {
626
626
  function Ls(i, t) {
627
627
  const e = t.x - i.x, s = t.y - i.y, n = Math.sqrt(e * e + s * s);
628
628
  let o = Math.atan2(s, e);
629
- return o < -0.5 * z && (o += N), {
629
+ return o < -0.5 * B && (o += N), {
630
630
  angle: o,
631
631
  distance: n
632
632
  };
@@ -647,10 +647,10 @@ function Y(i, t, e) {
647
647
  function go(i) {
648
648
  return Y(i, -32768, 32767);
649
649
  }
650
- function Ye(i, t, e, s = 1e-6) {
650
+ function Xe(i, t, e, s = 1e-6) {
651
651
  return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s;
652
652
  }
653
- function ni(i, t, e) {
653
+ function oi(i, t, e) {
654
654
  e = e || ((a) => i[a] < t);
655
655
  let s = i.length - 1, n = 0, o;
656
656
  for (; s - n > 1; )
@@ -660,10 +660,10 @@ function ni(i, t, e) {
660
660
  hi: s
661
661
  };
662
662
  }
663
- const Xe = (i, t, e, s) => ni(i, e, s ? (n) => {
663
+ const Ue = (i, t, e, s) => oi(i, e, s ? (n) => {
664
664
  const o = i[n][t];
665
665
  return o < e || o === e && i[n + 1][t] === e;
666
- } : (n) => i[n][t] < e), po = (i, t, e) => ni(i, e, (s) => i[s][t] >= e);
666
+ } : (n) => i[n][t] < e), po = (i, t, e) => oi(i, e, (s) => i[s][t] >= e);
667
667
  function mo(i, t, e) {
668
668
  let s = 0, n = i.length;
669
669
  for (; s < n && i[s] < t; )
@@ -693,7 +693,7 @@ function bo(i, t) {
693
693
  ]
694
694
  }
695
695
  }), Es.forEach((e) => {
696
- const s = "_onData" + si(e), n = i[e];
696
+ const s = "_onData" + ni(e), n = i[e];
697
697
  Object.defineProperty(i, e, {
698
698
  configurable: !0,
699
699
  enumerable: !1,
@@ -706,7 +706,7 @@ function bo(i, t) {
706
706
  });
707
707
  });
708
708
  }
709
- function ki(i, t) {
709
+ function wi(i, t) {
710
710
  const e = i._chartjs;
711
711
  if (!e)
712
712
  return;
@@ -738,7 +738,7 @@ function _o(i, t) {
738
738
  return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t;
739
739
  };
740
740
  }
741
- const Bs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Ht = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, se = (i) => i === 0 || i === 1, wi = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * N / e)), Si = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * N / e) + 1, $t = {
741
+ const Bs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Ht = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, se = (i) => i === 0 || i === 1, Si = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * N / e)), Oi = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * N / e) + 1, $t = {
742
742
  linear: (i) => i,
743
743
  easeInQuad: (i) => i * i,
744
744
  easeOutQuad: (i) => -i * (i - 2),
@@ -754,17 +754,17 @@ const Bs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Ht
754
754
  easeInOutQuint: (i) => (i /= 0.5) < 1 ? 0.5 * i * i * i * i * i : 0.5 * ((i -= 2) * i * i * i * i + 2),
755
755
  easeInSine: (i) => -Math.cos(i * W) + 1,
756
756
  easeOutSine: (i) => Math.sin(i * W),
757
- easeInOutSine: (i) => -0.5 * (Math.cos(z * i) - 1),
757
+ easeInOutSine: (i) => -0.5 * (Math.cos(B * i) - 1),
758
758
  easeInExpo: (i) => i === 0 ? 0 : Math.pow(2, 10 * (i - 1)),
759
759
  easeOutExpo: (i) => i === 1 ? 1 : -Math.pow(2, -10 * i) + 1,
760
760
  easeInOutExpo: (i) => se(i) ? i : i < 0.5 ? 0.5 * Math.pow(2, 10 * (i * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (i * 2 - 1)) + 2),
761
761
  easeInCirc: (i) => i >= 1 ? i : -(Math.sqrt(1 - i * i) - 1),
762
762
  easeOutCirc: (i) => Math.sqrt(1 - (i -= 1) * i),
763
763
  easeInOutCirc: (i) => (i /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - i * i) - 1) : 0.5 * (Math.sqrt(1 - (i -= 2) * i) + 1),
764
- easeInElastic: (i) => se(i) ? i : wi(i, 0.075, 0.3),
765
- easeOutElastic: (i) => se(i) ? i : Si(i, 0.075, 0.3),
764
+ easeInElastic: (i) => se(i) ? i : Si(i, 0.075, 0.3),
765
+ easeOutElastic: (i) => se(i) ? i : Oi(i, 0.075, 0.3),
766
766
  easeInOutElastic(i) {
767
- return se(i) ? i : i < 0.5 ? 0.5 * wi(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Si(i * 2 - 1, 0.1125, 0.45);
767
+ return se(i) ? i : i < 0.5 ? 0.5 * Si(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Oi(i * 2 - 1, 0.1125, 0.45);
768
768
  },
769
769
  easeInBack(i) {
770
770
  return i * i * ((1.70158 + 1) * i - 1.70158);
@@ -789,7 +789,7 @@ function Vs(i) {
789
789
  }
790
790
  return !1;
791
791
  }
792
- function Oi(i) {
792
+ function Pi(i) {
793
793
  return Vs(i) ? i : new Ut(i);
794
794
  }
795
795
  function Ae(i) {
@@ -878,12 +878,12 @@ function Mo(i) {
878
878
  }
879
879
  });
880
880
  }
881
- const Pi = /* @__PURE__ */ new Map();
881
+ const Di = /* @__PURE__ */ new Map();
882
882
  function ko(i, t) {
883
883
  t = t || {};
884
884
  const e = i + JSON.stringify(t);
885
- let s = Pi.get(e);
886
- return s || (s = new Intl.NumberFormat(i, t), Pi.set(e, s)), s;
885
+ let s = Di.get(e);
886
+ return s || (s = new Intl.NumberFormat(i, t), Di.set(e, s)), s;
887
887
  }
888
888
  function we(i, t, e) {
889
889
  return ko(t, e).format(i);
@@ -901,7 +901,7 @@ const Ns = {
901
901
  const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
902
902
  (c < 1e-4 || c > 1e15) && (n = "scientific"), o = wo(i, e);
903
903
  }
904
- const a = $e(Math.abs(o)), r = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), l = {
904
+ const a = Ye(Math.abs(o)), r = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), l = {
905
905
  notation: n,
906
906
  minimumFractionDigits: r,
907
907
  maximumFractionDigits: r
@@ -911,7 +911,7 @@ const Ns = {
911
911
  logarithmic(i, t, e) {
912
912
  if (i === 0)
913
913
  return "0";
914
- const s = e[t].significand || i / Math.pow(10, Math.floor($e(i)));
914
+ const s = e[t].significand || i / Math.pow(10, Math.floor(Ye(i)));
915
915
  return [
916
916
  1,
917
917
  2,
@@ -993,7 +993,7 @@ function So(i) {
993
993
  _indexable: (t) => t !== "backdropPadding"
994
994
  });
995
995
  }
996
- const Mt = /* @__PURE__ */ Object.create(null), Ue = /* @__PURE__ */ Object.create(null);
996
+ const Mt = /* @__PURE__ */ Object.create(null), Ke = /* @__PURE__ */ Object.create(null);
997
997
  function Yt(i, t) {
998
998
  if (!t)
999
999
  return i;
@@ -1034,7 +1034,7 @@ class Oo {
1034
1034
  return Yt(this, t);
1035
1035
  }
1036
1036
  describe(t, e) {
1037
- return Re(Ue, t, e);
1037
+ return Re(Ke, t, e);
1038
1038
  }
1039
1039
  override(t, e) {
1040
1040
  return Re(Mt, t, e);
@@ -1062,7 +1062,7 @@ class Oo {
1062
1062
  t.forEach((e) => e(this));
1063
1063
  }
1064
1064
  }
1065
- var B = /* @__PURE__ */ new Oo({
1065
+ var I = /* @__PURE__ */ new Oo({
1066
1066
  _scriptable: (i) => !i.startsWith("on"),
1067
1067
  _indexable: (i) => i !== "events",
1068
1068
  hover: {
@@ -1080,7 +1080,7 @@ var B = /* @__PURE__ */ new Oo({
1080
1080
  function Po(i) {
1081
1081
  return !i || A(i.size) || A(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
1082
1082
  }
1083
- function Di(i, t, e, s, n) {
1083
+ function Ci(i, t, e, s, n) {
1084
1084
  let o = t[n];
1085
1085
  return o || (o = t[n] = i.measureText(n).width, e.push(n)), o > s && (s = o), s;
1086
1086
  }
@@ -1088,10 +1088,10 @@ function _t(i, t, e) {
1088
1088
  const s = i.currentDevicePixelRatio, n = e !== 0 ? Math.max(e / 2, 0.5) : 0;
1089
1089
  return Math.round((t - n) * s) / s + n;
1090
1090
  }
1091
- function Ci(i, t) {
1091
+ function Ai(i, t) {
1092
1092
  !t && !i || (t = t || i.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, i.width, i.height), t.restore());
1093
1093
  }
1094
- function Ai(i, t, e, s) {
1094
+ function Ri(i, t, e, s) {
1095
1095
  Do(i, t, e, s);
1096
1096
  }
1097
1097
  function Do(i, t, e, s, n) {
@@ -1108,10 +1108,10 @@ function Do(i, t, e, s, n) {
1108
1108
  i.arc(e, s, g, 0, N), i.closePath();
1109
1109
  break;
1110
1110
  case "triangle":
1111
- h = g, i.moveTo(e + Math.sin(m) * h, s - Math.cos(m) * g), m += yi, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * g), m += yi, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * g), i.closePath();
1111
+ h = g, i.moveTo(e + Math.sin(m) * h, s - Math.cos(m) * g), m += vi, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * g), m += vi, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * g), i.closePath();
1112
1112
  break;
1113
1113
  case "rectRounded":
1114
- c = g * 0.516, l = g - c, a = Math.cos(m + mt) * l, d = Math.cos(m + mt) * l, r = Math.sin(m + mt) * l, u = Math.sin(m + mt) * l, i.arc(e - d, s - r, c, m - z, m - W), i.arc(e + u, s - a, c, m - W, m), i.arc(e + d, s + r, c, m, m + W), i.arc(e - u, s + a, c, m + W, m + z), i.closePath();
1114
+ c = g * 0.516, l = g - c, a = Math.cos(m + mt) * l, d = Math.cos(m + mt) * l, r = Math.sin(m + mt) * l, u = Math.sin(m + mt) * l, i.arc(e - d, s - r, c, m - B, m - W), i.arc(e + u, s - a, c, m - W, m), i.arc(e + d, s + r, c, m, m + W), i.arc(e - u, s + a, c, m + W, m + B), i.closePath();
1115
1115
  break;
1116
1116
  case "rect":
1117
1117
  if (!p) {
@@ -1165,7 +1165,7 @@ function Ro(i, t) {
1165
1165
  const e = i.fillStyle;
1166
1166
  i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
1167
1167
  }
1168
- function Ke(i, t, e, s, n, o = {}) {
1168
+ function qe(i, t, e, s, n, o = {}) {
1169
1169
  const a = V(t) ? t : [
1170
1170
  t
1171
1171
  ], r = o.strokeWidth > 0 && o.strokeColor !== "";
@@ -1174,9 +1174,9 @@ function Ke(i, t, e, s, n, o = {}) {
1174
1174
  c = a[l], o.backdrop && Ro(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), A(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), Ao(i, e, s, c, o), s += Number(n.lineHeight);
1175
1175
  i.restore();
1176
1176
  }
1177
- function qe(i, t) {
1177
+ function Ge(i, t) {
1178
1178
  const { x: e, y: s, w: n, h: o, radius: a } = t;
1179
- i.arc(e + a.topLeft, s + a.topLeft, a.topLeft, 1.5 * z, z, !0), i.lineTo(e, s + o - a.bottomLeft), i.arc(e + a.bottomLeft, s + o - a.bottomLeft, a.bottomLeft, z, W, !0), i.lineTo(e + n - a.bottomRight, s + o), i.arc(e + n - a.bottomRight, s + o - a.bottomRight, a.bottomRight, W, 0, !0), i.lineTo(e + n, s + a.topRight), i.arc(e + n - a.topRight, s + a.topRight, a.topRight, 0, -W, !0), i.lineTo(e + a.topLeft, s);
1179
+ i.arc(e + a.topLeft, s + a.topLeft, a.topLeft, 1.5 * B, B, !0), i.lineTo(e, s + o - a.bottomLeft), i.arc(e + a.bottomLeft, s + o - a.bottomLeft, a.bottomLeft, B, W, !0), i.lineTo(e + n - a.bottomRight, s + o), i.arc(e + n - a.bottomRight, s + o - a.bottomRight, a.bottomRight, W, 0, !0), i.lineTo(e + n, s + a.topRight), i.arc(e + n - a.topRight, s + a.topRight, a.topRight, 0, -W, !0), i.lineTo(e + a.topLeft, s);
1180
1180
  }
1181
1181
  const To = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, Lo = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
1182
1182
  function Eo(i, t) {
@@ -1193,14 +1193,14 @@ function Eo(i, t) {
1193
1193
  return t * i;
1194
1194
  }
1195
1195
  const Io = (i) => +i || 0;
1196
- function oi(i, t) {
1196
+ function ai(i, t) {
1197
1197
  const e = {}, s = S(t), n = s ? Object.keys(t) : t, o = S(i) ? s ? (a) => T(i[a], i[t[a]]) : (a) => i[a] : () => i;
1198
1198
  for (const a of n)
1199
1199
  e[a] = Io(o(a));
1200
1200
  return e;
1201
1201
  }
1202
1202
  function Ys(i) {
1203
- return oi(i, {
1203
+ return ai(i, {
1204
1204
  top: "y",
1205
1205
  right: "x",
1206
1206
  bottom: "y",
@@ -1208,7 +1208,7 @@ function Ys(i) {
1208
1208
  });
1209
1209
  }
1210
1210
  function Xt(i) {
1211
- return oi(i, [
1211
+ return ai(i, [
1212
1212
  "topLeft",
1213
1213
  "topRight",
1214
1214
  "bottomLeft",
@@ -1220,7 +1220,7 @@ function at(i) {
1220
1220
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1221
1221
  }
1222
1222
  function K(i, t) {
1223
- i = i || {}, t = t || B.font;
1223
+ i = i || {}, t = t || I.font;
1224
1224
  let e = T(i.size, t.size);
1225
1225
  typeof e == "string" && (e = parseInt(e, 10));
1226
1226
  let s = T(i.style, t.style);
@@ -1251,7 +1251,7 @@ function Fo(i, t, e) {
1251
1251
  function Ct(i, t) {
1252
1252
  return Object.assign(Object.create(i), t);
1253
1253
  }
1254
- function ai(i, t = [
1254
+ function ri(i, t = [
1255
1255
  ""
1256
1256
  ], e, s, n = () => i[0]) {
1257
1257
  const o = e || i;
@@ -1263,7 +1263,7 @@ function ai(i, t = [
1263
1263
  _rootScopes: o,
1264
1264
  _fallback: s,
1265
1265
  _getTarget: n,
1266
- override: (r) => ai([
1266
+ override: (r) => ri([
1267
1267
  r,
1268
1268
  ...i
1269
1269
  ], t, o, s)
@@ -1298,13 +1298,13 @@ function ai(i, t = [
1298
1298
  * A trap for the in operator.
1299
1299
  */
1300
1300
  has(r, l) {
1301
- return Ti(r).includes(l);
1301
+ return Li(r).includes(l);
1302
1302
  },
1303
1303
  /**
1304
1304
  * A trap for Object.getOwnPropertyNames and Object.getOwnPropertySymbols.
1305
1305
  */
1306
1306
  ownKeys(r) {
1307
- return Ti(r);
1307
+ return Li(r);
1308
1308
  },
1309
1309
  /**
1310
1310
  * A trap for setting property values.
@@ -1388,7 +1388,7 @@ function Xs(i, t = {
1388
1388
  isIndexable: ft(s) ? s : () => s
1389
1389
  };
1390
1390
  }
1391
- const zo = (i, t) => i ? i + si(t) : t, ri = (i, t) => S(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1391
+ const zo = (i, t) => i ? i + ni(t) : t, li = (i, t) => S(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1392
1392
  function Us(i, t, e) {
1393
1393
  if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
1394
1394
  return i[t];
@@ -1398,7 +1398,7 @@ function Us(i, t, e) {
1398
1398
  function Bo(i, t, e) {
1399
1399
  const { _proxy: s, _context: n, _subProxy: o, _descriptors: a } = i;
1400
1400
  let r = s[t];
1401
- return ft(r) && a.isScriptable(t) && (r = Vo(t, r, i, e)), V(r) && r.length && (r = No(t, r, i, a.isIndexable)), ri(t, r) && (r = Dt(r, n, o && o[t], a)), r;
1401
+ return ft(r) && a.isScriptable(t) && (r = Vo(t, r, i, e)), V(r) && r.length && (r = No(t, r, i, a.isIndexable)), li(t, r) && (r = Dt(r, n, o && o[t], a)), r;
1402
1402
  }
1403
1403
  function Vo(i, t, e, s) {
1404
1404
  const { _proxy: n, _context: o, _subProxy: a, _stack: r } = e;
@@ -1406,7 +1406,7 @@ function Vo(i, t, e, s) {
1406
1406
  throw new Error("Recursion detected: " + Array.from(r).join("->") + "->" + i);
1407
1407
  r.add(i);
1408
1408
  let l = t(o, a || s);
1409
- return r.delete(i), ri(i, l) && (l = li(n._scopes, n, i, l)), l;
1409
+ return r.delete(i), li(i, l) && (l = ci(n._scopes, n, i, l)), l;
1410
1410
  }
1411
1411
  function No(i, t, e, s) {
1412
1412
  const { _proxy: n, _context: o, _subProxy: a, _descriptors: r } = e;
@@ -1416,7 +1416,7 @@ function No(i, t, e, s) {
1416
1416
  const l = t, c = n._scopes.filter((h) => h !== l);
1417
1417
  t = [];
1418
1418
  for (const h of l) {
1419
- const d = li(c, n, i, h);
1419
+ const d = ci(c, n, i, h);
1420
1420
  t.push(Dt(d, o, a && a[i], r));
1421
1421
  }
1422
1422
  }
@@ -1439,18 +1439,18 @@ function jo(i, t, e, s, n) {
1439
1439
  }
1440
1440
  return !1;
1441
1441
  }
1442
- function li(i, t, e, s) {
1442
+ function ci(i, t, e, s) {
1443
1443
  const n = t._rootScopes, o = Ks(t._fallback, e, s), a = [
1444
1444
  ...i,
1445
1445
  ...n
1446
1446
  ], r = /* @__PURE__ */ new Set();
1447
1447
  r.add(s);
1448
- let l = Ri(r, a, e, o || e, s);
1449
- return l === null || typeof o < "u" && o !== e && (l = Ri(r, a, o, l, s), l === null) ? !1 : ai(Array.from(r), [
1448
+ let l = Ti(r, a, e, o || e, s);
1449
+ return l === null || typeof o < "u" && o !== e && (l = Ti(r, a, o, l, s), l === null) ? !1 : ri(Array.from(r), [
1450
1450
  ""
1451
1451
  ], n, o, () => Ho(t, e, s));
1452
1452
  }
1453
- function Ri(i, t, e, s, n) {
1453
+ function Ti(i, t, e, s, n) {
1454
1454
  for (; e; )
1455
1455
  e = jo(i, t, e, s, n);
1456
1456
  return e;
@@ -1465,7 +1465,7 @@ function $o(i, t, e, s) {
1465
1465
  let n;
1466
1466
  for (const o of t)
1467
1467
  if (n = qs(zo(o, i), e), typeof n < "u")
1468
- return ri(i, n) ? li(e, s, i, n) : n;
1468
+ return li(i, n) ? ci(e, s, i, n) : n;
1469
1469
  }
1470
1470
  function qs(i, t) {
1471
1471
  for (const e of t) {
@@ -1476,7 +1476,7 @@ function qs(i, t) {
1476
1476
  return s;
1477
1477
  }
1478
1478
  }
1479
- function Ti(i) {
1479
+ function Li(i) {
1480
1480
  let t = i._keys;
1481
1481
  return t || (t = i._keys = Yo(i._scopes)), t;
1482
1482
  }
@@ -1496,10 +1496,10 @@ function Xo(i, t, e, s) {
1496
1496
  };
1497
1497
  return a;
1498
1498
  }
1499
- function ci() {
1499
+ function hi() {
1500
1500
  return typeof window < "u" && typeof document < "u";
1501
1501
  }
1502
- function hi(i) {
1502
+ function di(i) {
1503
1503
  let t = i.parentNode;
1504
1504
  return t && t.toString() === "[object ShadowRoot]" && (t = t.host), t;
1505
1505
  }
@@ -1555,7 +1555,7 @@ function yt(i, t) {
1555
1555
  function Zo(i, t, e) {
1556
1556
  let s, n;
1557
1557
  if (t === void 0 || e === void 0) {
1558
- const o = i && hi(i);
1558
+ const o = i && di(i);
1559
1559
  if (!o)
1560
1560
  t = i.clientWidth, e = i.clientHeight;
1561
1561
  else {
@@ -1583,7 +1583,7 @@ function Qo(i, t, e, s) {
1583
1583
  height: h
1584
1584
  };
1585
1585
  }
1586
- function Li(i, t, e) {
1586
+ function Ei(i, t, e) {
1587
1587
  const s = t || 1, n = Math.floor(i.height * s), o = Math.floor(i.width * s);
1588
1588
  i.height = Math.floor(i.height), i.width = Math.floor(i.width);
1589
1589
  const a = i.canvas;
@@ -1597,12 +1597,12 @@ const Jo = function() {
1597
1597
  return i = !0, !1;
1598
1598
  }
1599
1599
  };
1600
- ci() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1600
+ hi() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1601
1601
  } catch {
1602
1602
  }
1603
1603
  return i;
1604
1604
  }();
1605
- function Ei(i, t) {
1605
+ function Ii(i, t) {
1606
1606
  const e = Uo(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
1607
1607
  return s ? +s[1] : void 0;
1608
1608
  }
@@ -1656,7 +1656,7 @@ function sa(i, t) {
1656
1656
  t !== void 0 && (delete i.prevTextDirection, i.canvas.style.setProperty("direction", t[0], t[1]));
1657
1657
  }
1658
1658
  /*!
1659
- * Chart.js v4.4.4
1659
+ * Chart.js v4.4.5
1660
1660
  * https://www.chartjs.org
1661
1661
  * (c) 2024 Chart.js Contributors
1662
1662
  * Released under the MIT License
@@ -1738,12 +1738,12 @@ class na {
1738
1738
  }
1739
1739
  }
1740
1740
  var st = /* @__PURE__ */ new na();
1741
- const Ii = "transparent", oa = {
1741
+ const Fi = "transparent", oa = {
1742
1742
  boolean(i, t, e) {
1743
1743
  return e > 0.5 ? t : i;
1744
1744
  },
1745
1745
  color(i, t, e) {
1746
- const s = Oi(i || Ii), n = s.valid && Oi(t || Ii);
1746
+ const s = Pi(i || Fi), n = s.valid && Pi(t || Fi);
1747
1747
  return n && n.valid ? n.mix(s, e).hexString() : t;
1748
1748
  },
1749
1749
  number(i, t, e) {
@@ -1823,7 +1823,7 @@ class Gs {
1823
1823
  configure(t) {
1824
1824
  if (!S(t))
1825
1825
  return;
1826
- const e = Object.keys(B.animation), s = this._properties;
1826
+ const e = Object.keys(I.animation), s = this._properties;
1827
1827
  Object.getOwnPropertyNames(t).forEach((n) => {
1828
1828
  const o = t[n];
1829
1829
  if (!S(o))
@@ -1907,7 +1907,7 @@ function la(i, t) {
1907
1907
  $animations: {}
1908
1908
  })), e;
1909
1909
  }
1910
- function Fi(i, t) {
1910
+ function zi(i, t) {
1911
1911
  const e = i && i.options || {}, s = e.reverse, n = e.min === void 0 ? t : 0, o = e.max === void 0 ? t : 0;
1912
1912
  return {
1913
1913
  start: s ? o : n,
@@ -1917,7 +1917,7 @@ function Fi(i, t) {
1917
1917
  function ca(i, t, e) {
1918
1918
  if (e === !1)
1919
1919
  return !1;
1920
- const s = Fi(i, e), n = Fi(t, e);
1920
+ const s = zi(i, e), n = zi(t, e);
1921
1921
  return {
1922
1922
  top: n.end,
1923
1923
  right: s.end,
@@ -1942,7 +1942,7 @@ function Zs(i, t) {
1942
1942
  e.push(s[n].index);
1943
1943
  return e;
1944
1944
  }
1945
- function zi(i, t, e, s = {}) {
1945
+ function Bi(i, t, e, s = {}) {
1946
1946
  const n = i.keys, o = s.mode === "single";
1947
1947
  let a, r, l, c;
1948
1948
  if (t !== null) {
@@ -1967,7 +1967,7 @@ function da(i, t) {
1967
1967
  };
1968
1968
  return r;
1969
1969
  }
1970
- function Bi(i, t) {
1970
+ function Le(i, t) {
1971
1971
  const e = i && i.options.stacked;
1972
1972
  return e || e === void 0 && t.stack !== void 0;
1973
1973
  }
@@ -2003,7 +2003,7 @@ function Ni(i, t) {
2003
2003
  _[r] = m;
2004
2004
  }
2005
2005
  }
2006
- function Le(i, t) {
2006
+ function Ee(i, t) {
2007
2007
  const e = i.scales;
2008
2008
  return Object.keys(e).filter((s) => e[s].axis === t).shift();
2009
2009
  }
@@ -2041,7 +2041,7 @@ function Et(i, t) {
2041
2041
  }
2042
2042
  }
2043
2043
  }
2044
- const Ee = (i) => i === "reset" || i === "none", Wi = (i, t) => t ? i : Object.assign({}, i), ba = (i, t, e) => i && !t.hidden && t._stacked && {
2044
+ const Ie = (i) => i === "reset" || i === "none", Wi = (i, t) => t ? i : Object.assign({}, i), ba = (i, t, e) => i && !t.hidden && t._stacked && {
2045
2045
  keys: Zs(e, !0),
2046
2046
  values: null
2047
2047
  };
@@ -2054,13 +2054,13 @@ class Oe {
2054
2054
  }
2055
2055
  initialize() {
2056
2056
  const t = this._cachedMeta;
2057
- this.configure(), this.linkScales(), t._stacked = Bi(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");
2057
+ this.configure(), this.linkScales(), t._stacked = Le(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");
2058
2058
  }
2059
2059
  updateIndex(t) {
2060
2060
  this.index !== t && Et(this._cachedMeta), this.index = t;
2061
2061
  }
2062
2062
  linkScales() {
2063
- const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (d, u, f, p) => d === "x" ? u : d === "r" ? p : f, o = e.xAxisID = T(s.xAxisID, Le(t, "x")), a = e.yAxisID = T(s.yAxisID, Le(t, "y")), r = e.rAxisID = T(s.rAxisID, Le(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, a, r), h = e.vAxisID = n(l, a, o, r);
2063
+ const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (d, u, f, p) => d === "x" ? u : d === "r" ? p : f, o = e.xAxisID = T(s.xAxisID, Ee(t, "x")), a = e.yAxisID = T(s.yAxisID, Ee(t, "y")), r = e.rAxisID = T(s.rAxisID, Ee(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, a, r), h = e.vAxisID = n(l, a, o, r);
2064
2064
  e.xScale = this.getScaleForId(o), e.yScale = this.getScaleForId(a), e.rScale = this.getScaleForId(r), e.iScale = this.getScaleForId(c), e.vScale = this.getScaleForId(h);
2065
2065
  }
2066
2066
  getDataset() {
@@ -2081,7 +2081,7 @@ class Oe {
2081
2081
  }
2082
2082
  _destroy() {
2083
2083
  const t = this._cachedMeta;
2084
- this._data && ki(this._data, this), t._stacked && Et(t);
2084
+ this._data && wi(this._data, this), t._stacked && Et(t);
2085
2085
  }
2086
2086
  _dataCheck() {
2087
2087
  const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
@@ -2090,7 +2090,7 @@ class Oe {
2090
2090
  this._data = da(e, n);
2091
2091
  } else if (s !== e) {
2092
2092
  if (s) {
2093
- ki(s, this);
2093
+ wi(s, this);
2094
2094
  const n = this._cachedMeta;
2095
2095
  Et(n), n._parsed = [];
2096
2096
  }
@@ -2106,7 +2106,7 @@ class Oe {
2106
2106
  let n = !1;
2107
2107
  this._dataCheck();
2108
2108
  const o = e._stacked;
2109
- e._stacked = Bi(e.vScale, e), e.stack !== s.stack && (n = !0, Et(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && Ni(this, e._parsed);
2109
+ e._stacked = Le(e.vScale, e), e.stack !== s.stack && (n = !0, Et(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && (Ni(this, e._parsed), e._stacked = Le(e.vScale, e));
2110
2110
  }
2111
2111
  configure() {
2112
2112
  const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0);
@@ -2167,7 +2167,7 @@ class Oe {
2167
2167
  keys: Zs(n, !0),
2168
2168
  values: e._stacks[t.axis]._visualValues
2169
2169
  };
2170
- return zi(r, a, o.index, {
2170
+ return Bi(r, a, o.index, {
2171
2171
  mode: s
2172
2172
  });
2173
2173
  }
@@ -2175,7 +2175,7 @@ class Oe {
2175
2175
  const o = s[e.axis];
2176
2176
  let a = o === null ? NaN : o;
2177
2177
  const r = n && s._stacks[e.axis];
2178
- n && r && (n.values = r, a = zi(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
2178
+ n && r && (n.values = r, a = Bi(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
2179
2179
  }
2180
2180
  getMinMax(t, e) {
2181
2181
  const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), l = ba(e, s, this.chart), c = {
@@ -2264,7 +2264,7 @@ class Oe {
2264
2264
  ] : [
2265
2265
  t,
2266
2266
  ""
2267
- ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys(B.elements[t]), p = () => this.getContext(s, n, e), g = c.resolveNamedOptions(u, f, p, d);
2267
+ ], u = c.getOptionScopes(this.getDataset(), h), f = Object.keys(I.elements[t]), p = () => this.getContext(s, n, e), g = c.resolveNamedOptions(u, f, p, d);
2268
2268
  return g.$shared && (g.$shared = l, o[a] = Object.freeze(Wi(g, l))), g;
2269
2269
  }
2270
2270
  _resolveAnimations(t, e, s) {
@@ -2284,7 +2284,7 @@ class Oe {
2284
2284
  return this._sharedOptions || (this._sharedOptions = Object.assign({}, t));
2285
2285
  }
2286
2286
  includeOptions(t, e) {
2287
- return !e || Ee(t) || this.chart._animationsDisabled;
2287
+ return !e || Ie(t) || this.chart._animationsDisabled;
2288
2288
  }
2289
2289
  _getSharedOptions(t, e) {
2290
2290
  const s = this.resolveDataElementOptions(t, e), n = this._sharedOptions, o = this.getSharedOptions(s), a = this.includeOptions(e, o) || o !== n;
@@ -2294,10 +2294,10 @@ class Oe {
2294
2294
  };
2295
2295
  }
2296
2296
  updateElement(t, e, s, n) {
2297
- Ee(n) ? Object.assign(t, s) : this._resolveAnimations(e, n).update(t, s);
2297
+ Ie(n) ? Object.assign(t, s) : this._resolveAnimations(e, n).update(t, s);
2298
2298
  }
2299
2299
  updateSharedOptions(t, e, s) {
2300
- t && !Ee(e) && this._resolveAnimations(void 0, e).update(t, s);
2300
+ t && !Ie(e) && this._resolveAnimations(void 0, e).update(t, s);
2301
2301
  }
2302
2302
  _setStyle(t, e, s, n) {
2303
2303
  t.active = n;
@@ -2469,7 +2469,7 @@ function ji(i, t, e, s) {
2469
2469
  u = t[c], d = {}, d[n.axis] = r || n.parse(a[c], c), l.push(Qs(u, d, o, c));
2470
2470
  return l;
2471
2471
  }
2472
- function Ie(i) {
2472
+ function Fe(i) {
2473
2473
  return i && i.barStart !== void 0 && i.barEnd !== void 0;
2474
2474
  }
2475
2475
  function ka(i, t, e) {
@@ -2574,7 +2574,7 @@ class Da extends Oe {
2574
2574
  return 0;
2575
2575
  }
2576
2576
  getLabelAndValue(t) {
2577
- const e = this._cachedMeta, { iScale: s, vScale: n } = e, o = this.getParsed(t), a = o._custom, r = Ie(a) ? "[" + a.start + ", " + a.end + "]" : "" + n.getLabelForValue(o[n.axis]);
2577
+ const e = this._cachedMeta, { iScale: s, vScale: n } = e, o = this.getParsed(t), a = o._custom, r = Fe(a) ? "[" + a.start + ", " + a.end + "]" : "" + n.getLabelForValue(o[n.axis]);
2578
2578
  return {
2579
2579
  label: "" + s.getLabelForValue(o[s.axis]),
2580
2580
  value: r
@@ -2598,7 +2598,7 @@ class Da extends Oe {
2598
2598
  } : this._calculateBarValuePixels(f), m = this._calculateBarIndexPixels(f, h), b = (p._stacks || {})[r.axis], _ = {
2599
2599
  horizontal: c,
2600
2600
  base: g.base,
2601
- enableBorderRadius: !b || Ie(p._custom) || a === b._top || a === b._bottom,
2601
+ enableBorderRadius: !b || Fe(p._custom) || a === b._top || a === b._bottom,
2602
2602
  x: c ? g.head : m.center,
2603
2603
  y: c ? m.center : g.head,
2604
2604
  height: c ? m.size : Math.abs(g.size),
@@ -2645,7 +2645,7 @@ class Da extends Oe {
2645
2645
  };
2646
2646
  }
2647
2647
  _calculateBarValuePixels(t) {
2648
- const { _cachedMeta: { vScale: e, _stacked: s, index: n }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), c = l._custom, h = Ie(c);
2648
+ const { _cachedMeta: { vScale: e, _stacked: s, index: n }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), c = l._custom, h = Fe(c);
2649
2649
  let d = l[e.axis], u = 0, f = s ? this.applyStack(e, l, s) : d, p, g;
2650
2650
  f !== d && (u = f - d, f = d), h && (d = c.barStart, f = c.barEnd - c.barStart, d !== 0 && dt(d) !== dt(c.barEnd) && (u = 0), u += d);
2651
2651
  const m = !A(o) && !h ? o : u;
@@ -2691,7 +2691,7 @@ class Da extends Oe {
2691
2691
  function Ca(i, t, e) {
2692
2692
  let s = 1, n = 1, o = 0, a = 0;
2693
2693
  if (t < N) {
2694
- const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (y, v, x) => ye(y, r, l, !0) ? 1 : Math.max(v, v * e, x, x * e), p = (y, v, x) => ye(y, r, l, !0) ? -1 : Math.min(v, v * e, x, x * e), g = f(0, c, d), m = f(W, h, u), b = p(z, c, d), _ = p(z + W, h, u);
2694
+ const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (y, v, x) => ye(y, r, l, !0) ? 1 : Math.max(v, v * e, x, x * e), p = (y, v, x) => ye(y, r, l, !0) ? -1 : Math.min(v, v * e, x, x * e), g = f(0, c, d), m = f(W, h, u), b = p(B, c, d), _ = p(B + W, h, u);
2695
2695
  s = (g - b) / 2, n = (m - _) / 2, o = -(g + b) / 2, a = -(m + _) / 2;
2696
2696
  }
2697
2697
  return {
@@ -2996,7 +2996,7 @@ class Aa extends Oe {
2996
2996
  this.outerRadius = o - r * this.index, this.innerRadius = this.outerRadius - r;
2997
2997
  }
2998
2998
  updateElements(t, e, s, n) {
2999
- const o = n === "reset", a = this.chart, l = a.options.animation, c = this._cachedMeta.rScale, h = c.xCenter, d = c.yCenter, u = c.getIndexAngle(0) - 0.5 * z;
2999
+ const o = n === "reset", a = this.chart, l = a.options.animation, c = this._cachedMeta.rScale, h = c.xCenter, d = c.yCenter, u = c.getIndexAngle(0) - 0.5 * B;
3000
3000
  let f = u, p;
3001
3001
  const g = 360 / this.countVisibleElements();
3002
3002
  for (p = 0; p < e; ++p)
@@ -3040,7 +3040,7 @@ class Ra extends Js {
3040
3040
  function xt() {
3041
3041
  throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
3042
3042
  }
3043
- class di {
3043
+ class ui {
3044
3044
  /**
3045
3045
  * Override default date adapter methods.
3046
3046
  * Accepts type parameter to define options type.
@@ -3052,7 +3052,7 @@ class di {
3052
3052
  * })
3053
3053
  */
3054
3054
  static override(t) {
3055
- Object.assign(di.prototype, t);
3055
+ Object.assign(ui.prototype, t);
3056
3056
  }
3057
3057
  options;
3058
3058
  constructor(t) {
@@ -3084,12 +3084,12 @@ class di {
3084
3084
  }
3085
3085
  }
3086
3086
  var Ta = {
3087
- _date: di
3087
+ _date: ui
3088
3088
  };
3089
3089
  function La(i, t, e, s) {
3090
3090
  const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
3091
3091
  if (r && t === r.axis && t !== "r" && a && o.length) {
3092
- const l = r._reversePixels ? po : Xe;
3092
+ const l = r._reversePixels ? po : Ue;
3093
3093
  if (s) {
3094
3094
  if (n._sharedOptions) {
3095
3095
  const c = o[0], h = typeof c.getRange == "function" && c.getRange(t);
@@ -3125,7 +3125,7 @@ function Ea(i) {
3125
3125
  return Math.sqrt(Math.pow(o, 2) + Math.pow(a, 2));
3126
3126
  };
3127
3127
  }
3128
- function Fe(i, t, e, s, n) {
3128
+ function ze(i, t, e, s, n) {
3129
3129
  const o = [];
3130
3130
  return !n && !i.isPointInArea(t) || Qt(i, e, t, function(r, l, c) {
3131
3131
  !n && !js(r, i.chartArea, 0) || r.inRange(t.x, t.y, s) && o.push({
@@ -3179,7 +3179,7 @@ function Fa(i, t, e, s, n, o) {
3179
3179
  }
3180
3180
  return Qt(i, e, t, c), a;
3181
3181
  }
3182
- function ze(i, t, e, s, n, o) {
3182
+ function Be(i, t, e, s, n, o) {
3183
3183
  return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? Ia(i, t, e, n) : Fa(i, t, e, s, n, o);
3184
3184
  }
3185
3185
  function Yi(i, t, e, s, n) {
@@ -3197,7 +3197,7 @@ var za = {
3197
3197
  evaluateInteractionItems: Qt,
3198
3198
  modes: {
3199
3199
  index(i, t, e, s) {
3200
- const n = yt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? Fe(i, n, o, s, a) : ze(i, n, o, !1, s, a), l = [];
3200
+ const n = yt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? ze(i, n, o, s, a) : Be(i, n, o, !1, s, a), l = [];
3201
3201
  return r.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
3202
3202
  const h = r[0].index, d = c.data[h];
3203
3203
  d && !d.skip && l.push({
@@ -3209,7 +3209,7 @@ var za = {
3209
3209
  },
3210
3210
  dataset(i, t, e, s) {
3211
3211
  const n = yt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3212
- let r = e.intersect ? Fe(i, n, o, s, a) : ze(i, n, o, !1, s, a);
3212
+ let r = e.intersect ? ze(i, n, o, s, a) : Be(i, n, o, !1, s, a);
3213
3213
  if (r.length > 0) {
3214
3214
  const l = r[0].datasetIndex, c = i.getDatasetMeta(l).data;
3215
3215
  r = [];
@@ -3224,11 +3224,11 @@ var za = {
3224
3224
  },
3225
3225
  point(i, t, e, s) {
3226
3226
  const n = yt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3227
- return Fe(i, n, o, s, a);
3227
+ return ze(i, n, o, s, a);
3228
3228
  },
3229
3229
  nearest(i, t, e, s) {
3230
3230
  const n = yt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
3231
- return ze(i, n, o, e.intersect, s, a);
3231
+ return Be(i, n, o, e.intersect, s, a);
3232
3232
  },
3233
3233
  x(i, t, e, s) {
3234
3234
  const n = yt(t, i);
@@ -3516,14 +3516,14 @@ function Ua(i, t) {
3516
3516
  }
3517
3517
  }
3518
3518
  }, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", qi(n)) {
3519
- const o = Ei(i, "width");
3519
+ const o = Ii(i, "width");
3520
3520
  o !== void 0 && (i.width = o);
3521
3521
  }
3522
3522
  if (qi(s))
3523
3523
  if (i.style.height === "")
3524
3524
  i.height = i.width / (t || 2);
3525
3525
  else {
3526
- const o = Ei(i, "height");
3526
+ const o = Ii(i, "height");
3527
3527
  o !== void 0 && (i.height = o);
3528
3528
  }
3529
3529
  return i;
@@ -3591,7 +3591,7 @@ function tr(i) {
3591
3591
  Gt.delete(i), Gt.size || window.removeEventListener("resize", on);
3592
3592
  }
3593
3593
  function er(i, t, e) {
3594
- const s = i.canvas, n = s && hi(s);
3594
+ const s = i.canvas, n = s && di(s);
3595
3595
  if (!n)
3596
3596
  return;
3597
3597
  const o = zs((r, l) => {
@@ -3603,7 +3603,7 @@ function er(i, t, e) {
3603
3603
  });
3604
3604
  return a.observe(n), Ja(i, o), a;
3605
3605
  }
3606
- function Be(i, t, e) {
3606
+ function Ve(i, t, e) {
3607
3607
  e && e.disconnect(), t === "resize" && tr(i);
3608
3608
  }
3609
3609
  function ir(i, t, e) {
@@ -3648,9 +3648,9 @@ class sr extends sn {
3648
3648
  if (!n)
3649
3649
  return;
3650
3650
  ({
3651
- attach: Be,
3652
- detach: Be,
3653
- resize: Be
3651
+ attach: Ve,
3652
+ detach: Ve,
3653
+ resize: Ve
3654
3654
  }[e] || qa)(t, e, n), s[e] = void 0;
3655
3655
  }
3656
3656
  getDevicePixelRatio() {
@@ -3660,12 +3660,12 @@ class sr extends sn {
3660
3660
  return Qo(t, e, s, n);
3661
3661
  }
3662
3662
  isAttached(t) {
3663
- const e = t && hi(t);
3663
+ const e = t && di(t);
3664
3664
  return !!(e && e.isConnected);
3665
3665
  }
3666
3666
  }
3667
3667
  function nr(i) {
3668
- return !ci() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? Ya : sr;
3668
+ return !hi() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? Ya : sr;
3669
3669
  }
3670
3670
  class At {
3671
3671
  static defaults = {};
@@ -3894,7 +3894,7 @@ class Rt extends At {
3894
3894
  this._cache = {}, this._dataLimitsCached = !1;
3895
3895
  }
3896
3896
  beforeUpdate() {
3897
- F(this.options.beforeUpdate, [
3897
+ z(this.options.beforeUpdate, [
3898
3898
  this
3899
3899
  ]);
3900
3900
  }
@@ -3914,12 +3914,12 @@ class Rt extends At {
3914
3914
  this.isHorizontal() ? (e = this.left, s = this.right) : (e = this.top, s = this.bottom, t = !t), this._startPixel = e, this._endPixel = s, this._reversePixels = t, this._length = s - e, this._alignToPixels = this.options.alignToPixels;
3915
3915
  }
3916
3916
  afterUpdate() {
3917
- F(this.options.afterUpdate, [
3917
+ z(this.options.afterUpdate, [
3918
3918
  this
3919
3919
  ]);
3920
3920
  }
3921
3921
  beforeSetDimensions() {
3922
- F(this.options.beforeSetDimensions, [
3922
+ z(this.options.beforeSetDimensions, [
3923
3923
  this
3924
3924
  ]);
3925
3925
  }
@@ -3927,12 +3927,12 @@ class Rt extends At {
3927
3927
  this.isHorizontal() ? (this.width = this.maxWidth, this.left = 0, this.right = this.width) : (this.height = this.maxHeight, this.top = 0, this.bottom = this.height), this.paddingLeft = 0, this.paddingTop = 0, this.paddingRight = 0, this.paddingBottom = 0;
3928
3928
  }
3929
3929
  afterSetDimensions() {
3930
- F(this.options.afterSetDimensions, [
3930
+ z(this.options.afterSetDimensions, [
3931
3931
  this
3932
3932
  ]);
3933
3933
  }
3934
3934
  _callHooks(t) {
3935
- this.chart.notifyPlugins(t, this.getContext()), F(this.options[t], [
3935
+ this.chart.notifyPlugins(t, this.getContext()), z(this.options[t], [
3936
3936
  this
3937
3937
  ]);
3938
3938
  }
@@ -3954,7 +3954,7 @@ class Rt extends At {
3954
3954
  this._callHooks("afterBuildTicks");
3955
3955
  }
3956
3956
  beforeTickToLabelConversion() {
3957
- F(this.options.beforeTickToLabelConversion, [
3957
+ z(this.options.beforeTickToLabelConversion, [
3958
3958
  this
3959
3959
  ]);
3960
3960
  }
@@ -3962,19 +3962,19 @@ class Rt extends At {
3962
3962
  const e = this.options.ticks;
3963
3963
  let s, n, o;
3964
3964
  for (s = 0, n = t.length; s < n; s++)
3965
- o = t[s], o.label = F(e.callback, [
3965
+ o = t[s], o.label = z(e.callback, [
3966
3966
  o.value,
3967
3967
  s,
3968
3968
  t
3969
3969
  ], this);
3970
3970
  }
3971
3971
  afterTickToLabelConversion() {
3972
- F(this.options.afterTickToLabelConversion, [
3972
+ z(this.options.afterTickToLabelConversion, [
3973
3973
  this
3974
3974
  ]);
3975
3975
  }
3976
3976
  beforeCalculateLabelRotation() {
3977
- F(this.options.beforeCalculateLabelRotation, [
3977
+ z(this.options.beforeCalculateLabelRotation, [
3978
3978
  this
3979
3979
  ]);
3980
3980
  }
@@ -3989,14 +3989,14 @@ class Rt extends At {
3989
3989
  r = t.offset ? this.maxWidth / s : f / (s - 1), d + 6 > r && (r = f / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - zt(t.grid) - e.padding - ts(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = uo(Math.min(Math.asin(Y((h.highest.height + 6) / r, -1, 1)), Math.asin(Y(l / c, -1, 1)) - Math.asin(Y(u / c, -1, 1)))), a = Math.max(n, Math.min(o, a))), this.labelRotation = a;
3990
3990
  }
3991
3991
  afterCalculateLabelRotation() {
3992
- F(this.options.afterCalculateLabelRotation, [
3992
+ z(this.options.afterCalculateLabelRotation, [
3993
3993
  this
3994
3994
  ]);
3995
3995
  }
3996
3996
  afterAutoSkip() {
3997
3997
  }
3998
3998
  beforeFit() {
3999
- F(this.options.beforeFit, [
3999
+ z(this.options.beforeFit, [
4000
4000
  this
4001
4001
  ]);
4002
4002
  }
@@ -4036,7 +4036,7 @@ class Rt extends At {
4036
4036
  this._margins && (this._margins.left = Math.max(this.paddingLeft, this._margins.left), this._margins.top = Math.max(this.paddingTop, this._margins.top), this._margins.right = Math.max(this.paddingRight, this._margins.right), this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom));
4037
4037
  }
4038
4038
  afterFit() {
4039
- F(this.options.afterFit, [
4039
+ z(this.options.afterFit, [
4040
4040
  this
4041
4041
  ]);
4042
4042
  }
@@ -4071,10 +4071,10 @@ class Rt extends At {
4071
4071
  data: {},
4072
4072
  gc: []
4073
4073
  }, _ = g.lineHeight, y = v = 0, !A(p) && !V(p))
4074
- y = Di(n, b.data, b.gc, y, p), v = _;
4074
+ y = Ci(n, b.data, b.gc, y, p), v = _;
4075
4075
  else if (V(p))
4076
4076
  for (u = 0, f = p.length; u < f; ++u)
4077
- x = p[u], !A(x) && !V(x) && (y = Di(n, b.data, b.gc, y, x), v += _);
4077
+ x = p[u], !A(x) && !V(x) && (y = Ci(n, b.data, b.gc, y, x), v += _);
4078
4078
  a.push(y), r.push(v), c = Math.max(y, c), h = Math.max(v, h);
4079
4079
  }
4080
4080
  fr(o, e);
@@ -4152,22 +4152,22 @@ class Rt extends At {
4152
4152
  if (a === "center")
4153
4153
  _ = b((t.top + t.bottom) / 2 + 0.5);
4154
4154
  else if (S(a)) {
4155
- const R = Object.keys(a)[0], I = a[R];
4156
- _ = b(this.chart.scales[R].getPixelForValue(I));
4155
+ const R = Object.keys(a)[0], F = a[R];
4156
+ _ = b(this.chart.scales[R].getPixelForValue(F));
4157
4157
  }
4158
4158
  E = t.top, X = t.bottom, M = _ + m, w = M + u;
4159
4159
  } else if (e === "y") {
4160
4160
  if (a === "center")
4161
4161
  _ = b((t.left + t.right) / 2);
4162
4162
  else if (S(a)) {
4163
- const R = Object.keys(a)[0], I = a[R];
4164
- _ = b(this.chart.scales[R].getPixelForValue(I));
4163
+ const R = Object.keys(a)[0], F = a[R];
4164
+ _ = b(this.chart.scales[R].getPixelForValue(F));
4165
4165
  }
4166
4166
  k = _ - m, O = k - u, C = t.left, L = t.right;
4167
4167
  }
4168
4168
  const G = T(n.ticks.maxTicksLimit, d), D = Math.max(1, Math.ceil(d / G));
4169
4169
  for (y = 0; y < d; y += D) {
4170
- const R = this.getContext(y), I = o.setContext(R), Z = r.setContext(R), j = I.lineWidth, kt = I.color, Jt = Z.dash || [], wt = Z.dashOffset, Tt = I.tickWidth, gt = I.tickColor, Lt = I.tickBorderDash || [], pt = I.tickBorderDashOffset;
4170
+ const R = this.getContext(y), F = o.setContext(R), Z = r.setContext(R), j = F.lineWidth, kt = F.color, Jt = Z.dash || [], wt = Z.dashOffset, Tt = F.tickWidth, gt = F.tickColor, Lt = F.tickBorderDash || [], pt = F.tickBorderDashOffset;
4171
4171
  v = ur(this, y, l), v !== void 0 && (x = _t(s, v, j), c ? k = O = C = L = x : M = w = E = X = x, f.push({
4172
4172
  tx1: k,
4173
4173
  ty1: M,
@@ -4225,7 +4225,7 @@ class Rt extends At {
4225
4225
  y = r[b], v = y.label;
4226
4226
  const D = o.setContext(this.getContext(b));
4227
4227
  O = this.getPixelForTick(b) + o.labelOffset, w = this._resolveTickFontOptions(b), C = w.lineHeight, E = V(v) ? v.length : 1;
4228
- const R = E / 2, I = D.color, Z = D.textStrokeColor, j = D.textStrokeWidth;
4228
+ const R = E / 2, F = D.color, Z = D.textStrokeColor, j = D.textStrokeWidth;
4229
4229
  let kt = M;
4230
4230
  a ? (x = O, M === "inner" && (b === _ - 1 ? kt = this.options.reverse ? "left" : "right" : b === 0 ? kt = this.options.reverse ? "right" : "left" : kt = "center"), n === "top" ? c === "near" || g !== 0 ? L = -E * C + C / 2 : c === "center" ? L = -G.highest.height / 2 - R * C + C : L = -G.highest.height + C / 2 : c === "near" || g !== 0 ? L = C / 2 : c === "center" ? L = G.highest.height / 2 - R * C : L = G.highest.height - E * C, d && (L *= -1), g !== 0 && !D.showLabelBackdrop && (x += C / 2 * Math.sin(g))) : (k = O, L = (1 - E) * C / 2);
4231
4231
  let Jt;
@@ -4265,7 +4265,7 @@ class Rt extends At {
4265
4265
  textOffset: L,
4266
4266
  options: {
4267
4267
  rotation: g,
4268
- color: I,
4268
+ color: F,
4269
4269
  strokeColor: Z,
4270
4270
  strokeWidth: j,
4271
4271
  textAlign: kt,
@@ -4370,7 +4370,7 @@ class Rt extends At {
4370
4370
  const o = this.getLabelItems(t);
4371
4371
  for (const a of o) {
4372
4372
  const r = a.options, l = a.font, c = a.label, h = a.textOffset;
4373
- Ke(s, c, 0, h, l, r);
4373
+ qe(s, c, 0, h, l, r);
4374
4374
  }
4375
4375
  n && $s(s);
4376
4376
  }
@@ -4382,7 +4382,7 @@ class Rt extends At {
4382
4382
  let l = o.lineHeight / 2;
4383
4383
  e === "bottom" || e === "center" || S(e) ? (l += a.bottom, V(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
4384
4384
  const { titleX: c, titleY: h, maxWidth: d, rotation: u } = br(this, l, e, r);
4385
- Ke(t, s.text, 0, 0, o, {
4385
+ qe(t, s.text, 0, 0, o, {
4386
4386
  color: s.color,
4387
4387
  maxWidth: d,
4388
4388
  rotation: u,
@@ -4459,30 +4459,30 @@ class le {
4459
4459
  const n = this.items, o = t.id, a = this.scope + "." + o;
4460
4460
  if (!o)
4461
4461
  throw new Error("class does not have id: " + t);
4462
- return o in n || (n[o] = t, _r(t, a, s), this.override && B.override(t.id, t.overrides)), a;
4462
+ return o in n || (n[o] = t, _r(t, a, s), this.override && I.override(t.id, t.overrides)), a;
4463
4463
  }
4464
4464
  get(t) {
4465
4465
  return this.items[t];
4466
4466
  }
4467
4467
  unregister(t) {
4468
4468
  const e = this.items, s = t.id, n = this.scope;
4469
- s in e && delete e[s], n && s in B[n] && (delete B[n][s], this.override && delete Mt[s]);
4469
+ s in e && delete e[s], n && s in I[n] && (delete I[n][s], this.override && delete Mt[s]);
4470
4470
  }
4471
4471
  }
4472
4472
  function _r(i, t, e) {
4473
4473
  const s = Kt(/* @__PURE__ */ Object.create(null), [
4474
- e ? B.get(e) : {},
4475
- B.get(t),
4474
+ e ? I.get(e) : {},
4475
+ I.get(t),
4476
4476
  i.defaults
4477
4477
  ]);
4478
- B.set(t, s), i.defaultRoutes && xr(t, i.defaultRoutes), i.descriptors && B.describe(t, i.descriptors);
4478
+ I.set(t, s), i.defaultRoutes && xr(t, i.defaultRoutes), i.descriptors && I.describe(t, i.descriptors);
4479
4479
  }
4480
4480
  function xr(i, t) {
4481
4481
  Object.keys(t).forEach((e) => {
4482
4482
  const s = e.split("."), n = s.pop(), o = [
4483
4483
  i
4484
4484
  ].concat(s).join("."), a = t[e].split("."), r = a.pop(), l = a.join(".");
4485
- B.route(o, n, l, r);
4485
+ I.route(o, n, l, r);
4486
4486
  });
4487
4487
  }
4488
4488
  function yr(i) {
@@ -4550,8 +4550,8 @@ class vr {
4550
4550
  });
4551
4551
  }
4552
4552
  _exec(t, e, s) {
4553
- const n = si(t);
4554
- F(s["before" + n], [], s), e[t](s), F(s["after" + n], [], s);
4553
+ const n = ni(t);
4554
+ z(s["before" + n], [], s), e[t](s), z(s["after" + n], [], s);
4555
4555
  }
4556
4556
  _getRegistryForType(t) {
4557
4557
  for (let e = 0; e < this._typedRegistries.length; e++) {
@@ -4586,7 +4586,7 @@ class Mr {
4586
4586
  n,
4587
4587
  o.options
4588
4588
  ];
4589
- if (F(r, l, a) === !1 && n.cancelable)
4589
+ if (z(r, l, a) === !1 && n.cancelable)
4590
4590
  return !1;
4591
4591
  }
4592
4592
  return !0;
@@ -4650,8 +4650,8 @@ function Or(i, { plugin: t, local: e }, s, n) {
4650
4650
  allKeys: !0
4651
4651
  });
4652
4652
  }
4653
- function Ge(i, t) {
4654
- const e = B.datasets[i] || {};
4653
+ function Ze(i, t) {
4654
+ const e = I.datasets[i] || {};
4655
4655
  return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
4656
4656
  }
4657
4657
  function Pr(i, t) {
@@ -4671,7 +4671,7 @@ function Cr(i) {
4671
4671
  if (i === "left" || i === "right")
4672
4672
  return "y";
4673
4673
  }
4674
- function Ze(i, ...t) {
4674
+ function Qe(i, ...t) {
4675
4675
  if (es(i))
4676
4676
  return i;
4677
4677
  for (const e of t) {
@@ -4698,14 +4698,14 @@ function Ar(i, t) {
4698
4698
  function Rr(i, t) {
4699
4699
  const e = Mt[i.type] || {
4700
4700
  scales: {}
4701
- }, s = t.scales || {}, n = Ge(i.type, t), o = /* @__PURE__ */ Object.create(null);
4701
+ }, s = t.scales || {}, n = Ze(i.type, t), o = /* @__PURE__ */ Object.create(null);
4702
4702
  return Object.keys(s).forEach((a) => {
4703
4703
  const r = s[a];
4704
4704
  if (!S(r))
4705
4705
  return console.error(`Invalid scale configuration for scale: ${a}`);
4706
4706
  if (r._proxy)
4707
4707
  return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
4708
- const l = Ze(a, r, Ar(a, i), B.scales[r.type]), c = Dr(l, n), h = e.scales || {};
4708
+ const l = Qe(a, r, Ar(a, i), I.scales[r.type]), c = Dr(l, n), h = e.scales || {};
4709
4709
  o[a] = jt(/* @__PURE__ */ Object.create(null), [
4710
4710
  {
4711
4711
  axis: l
@@ -4715,7 +4715,7 @@ function Rr(i, t) {
4715
4715
  h[c]
4716
4716
  ]);
4717
4717
  }), i.data.datasets.forEach((a) => {
4718
- const r = a.type || i.type, l = a.indexAxis || Ge(r, t), h = (Mt[r] || {}).scales || {};
4718
+ const r = a.type || i.type, l = a.indexAxis || Ze(r, t), h = (Mt[r] || {}).scales || {};
4719
4719
  Object.keys(h).forEach((d) => {
4720
4720
  const u = Pr(d, l), f = a[u + "AxisID"] || u;
4721
4721
  o[f] = o[f] || /* @__PURE__ */ Object.create(null), jt(o[f], [
@@ -4729,8 +4729,8 @@ function Rr(i, t) {
4729
4729
  }), Object.keys(o).forEach((a) => {
4730
4730
  const r = o[a];
4731
4731
  jt(r, [
4732
- B.scales[r.type],
4733
- B.scale
4732
+ I.scales[r.type],
4733
+ I.scale
4734
4734
  ]);
4735
4735
  }), o;
4736
4736
  }
@@ -4838,7 +4838,7 @@ class Lr {
4838
4838
  return r;
4839
4839
  const l = /* @__PURE__ */ new Set();
4840
4840
  e.forEach((h) => {
4841
- t && (l.add(t), h.forEach((d) => Bt(l, t, d))), h.forEach((d) => Bt(l, n, d)), h.forEach((d) => Bt(l, Mt[o] || {}, d)), h.forEach((d) => Bt(l, B, d)), h.forEach((d) => Bt(l, Ue, d));
4841
+ t && (l.add(t), h.forEach((d) => Bt(l, t, d))), h.forEach((d) => Bt(l, n, d)), h.forEach((d) => Bt(l, Mt[o] || {}, d)), h.forEach((d) => Bt(l, I, d)), h.forEach((d) => Bt(l, Ke, d));
4842
4842
  });
4843
4843
  const c = Array.from(l);
4844
4844
  return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), ln.has(e) && a.set(e, c), c;
@@ -4848,12 +4848,12 @@ class Lr {
4848
4848
  return [
4849
4849
  t,
4850
4850
  Mt[e] || {},
4851
- B.datasets[e] || {},
4851
+ I.datasets[e] || {},
4852
4852
  {
4853
4853
  type: e
4854
4854
  },
4855
- B,
4856
- Ue
4855
+ I,
4856
+ Ke
4857
4857
  ];
4858
4858
  }
4859
4859
  resolveNamedOptions(t, e, s, n = [
@@ -4885,7 +4885,7 @@ function ns(i, t, e) {
4885
4885
  const n = e.join();
4886
4886
  let o = s.get(n);
4887
4887
  return o || (o = {
4888
- resolver: ai(t, e),
4888
+ resolver: ri(t, e),
4889
4889
  subPrefixes: e.filter((r) => !r.toLowerCase().includes("hover"))
4890
4890
  }, s.set(n, o)), o;
4891
4891
  }
@@ -4899,7 +4899,7 @@ function Ir(i, t) {
4899
4899
  }
4900
4900
  return !1;
4901
4901
  }
4902
- var Fr = "4.4.4";
4902
+ var Fr = "4.4.5";
4903
4903
  const zr = [
4904
4904
  "top",
4905
4905
  "bottom",
@@ -4917,18 +4917,18 @@ function as(i, t) {
4917
4917
  }
4918
4918
  function rs(i) {
4919
4919
  const t = i.chart, e = t.options.animation;
4920
- t.notifyPlugins("afterRender"), F(e && e.onComplete, [
4920
+ t.notifyPlugins("afterRender"), z(e && e.onComplete, [
4921
4921
  i
4922
4922
  ], t);
4923
4923
  }
4924
4924
  function Br(i) {
4925
4925
  const t = i.chart, e = t.options.animation;
4926
- F(e && e.onProgress, [
4926
+ z(e && e.onProgress, [
4927
4927
  i
4928
4928
  ], t);
4929
4929
  }
4930
4930
  function cn(i) {
4931
- return ci() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
4931
+ return hi() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
4932
4932
  }
4933
4933
  const pe = {}, ls = (i) => {
4934
4934
  const t = cn(i);
@@ -4960,7 +4960,7 @@ function Wr(i, t) {
4960
4960
  } : t;
4961
4961
  }
4962
4962
  let Pe = class {
4963
- static defaults = B;
4963
+ static defaults = I;
4964
4964
  static instances = pe;
4965
4965
  static overrides = Mt;
4966
4966
  static registry = tt;
@@ -5005,10 +5005,10 @@ let Pe = class {
5005
5005
  return tt;
5006
5006
  }
5007
5007
  _initialize() {
5008
- return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Li(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
5008
+ return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Ei(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
5009
5009
  }
5010
5010
  clear() {
5011
- return Ci(this.canvas, this.ctx), this;
5011
+ return Ai(this.canvas, this.ctx), this;
5012
5012
  }
5013
5013
  stop() {
5014
5014
  return st.stop(this), this;
@@ -5021,9 +5021,9 @@ let Pe = class {
5021
5021
  }
5022
5022
  _resize(t, e) {
5023
5023
  const s = this.options, n = this.canvas, o = s.maintainAspectRatio && this.aspectRatio, a = this.platform.getMaximumSize(n, t, e, o), r = s.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
5024
- this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, Li(this, r, !0) && (this.notifyPlugins("resize", {
5024
+ this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, Ei(this, r, !0) && (this.notifyPlugins("resize", {
5025
5025
  size: a
5026
- }), F(s.onResize, [
5026
+ }), z(s.onResize, [
5027
5027
  this,
5028
5028
  a
5029
5029
  ], this), this.attached && this._doResize(l) && this.render());
@@ -5038,14 +5038,14 @@ let Pe = class {
5038
5038
  const t = this.options, e = t.scales, s = this.scales, n = Object.keys(s).reduce((a, r) => (a[r] = !1, a), {});
5039
5039
  let o = [];
5040
5040
  e && (o = o.concat(Object.keys(e).map((a) => {
5041
- const r = e[a], l = Ze(a, r), c = l === "r", h = l === "x";
5041
+ const r = e[a], l = Qe(a, r), c = l === "r", h = l === "x";
5042
5042
  return {
5043
5043
  options: r,
5044
5044
  dposition: c ? "chartArea" : h ? "bottom" : "left",
5045
5045
  dtype: c ? "radialLinear" : h ? "category" : "linear"
5046
5046
  };
5047
5047
  }))), P(o, (a) => {
5048
- const r = a.options, l = r.id, c = Ze(l, r), h = T(r.type, a.dtype);
5048
+ const r = a.options, l = r.id, c = Qe(l, r), h = T(r.type, a.dtype);
5049
5049
  (r.position === void 0 || os(r.position, c) !== os(a.dposition)) && (r.position = a.dposition), n[l] = !0;
5050
5050
  let d = null;
5051
5051
  if (l in s && s[l].type === h)
@@ -5088,10 +5088,10 @@ let Pe = class {
5088
5088
  const o = e[s];
5089
5089
  let a = this.getDatasetMeta(s);
5090
5090
  const r = o.type || this.config.type;
5091
- if (a.type && a.type !== r && (this._destroyDatasetMeta(s), a = this.getDatasetMeta(s)), a.type = r, a.indexAxis = o.indexAxis || Ge(r, this.options), a.order = o.order || 0, a.index = s, a.label = "" + o.label, a.visible = this.isDatasetVisible(s), a.controller)
5091
+ if (a.type && a.type !== r && (this._destroyDatasetMeta(s), a = this.getDatasetMeta(s)), a.type = r, a.indexAxis = o.indexAxis || Ze(r, this.options), a.order = o.order || 0, a.index = s, a.label = "" + o.label, a.visible = this.isDatasetVisible(s), a.controller)
5092
5092
  a.controller.updateIndex(s), a.controller.linkScales();
5093
5093
  else {
5094
- const l = tt.getController(r), { datasetElementType: c, dataElementType: h } = B.datasets[r];
5094
+ const l = tt.getController(r), { datasetElementType: c, dataElementType: h } = I.datasets[r];
5095
5095
  Object.assign(l, {
5096
5096
  dataElementType: tt.getElement(h),
5097
5097
  datasetElementType: c && tt.getElement(c)
@@ -5139,7 +5139,7 @@ let Pe = class {
5139
5139
  }
5140
5140
  _checkEventBindings() {
5141
5141
  const t = this.options, e = new Set(Object.keys(this._listeners)), s = new Set(t.events);
5142
- (!xi(e, s) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
5142
+ (!yi(e, s) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
5143
5143
  }
5144
5144
  _updateHiddenIndices() {
5145
5145
  const { _hiddenIndices: t } = this, e = this._getUniformDataChanges() || [];
@@ -5155,7 +5155,7 @@ let Pe = class {
5155
5155
  this._dataChanges = [];
5156
5156
  const e = this.data.datasets.length, s = (o) => new Set(t.filter((a) => a[0] === o).map((a, r) => r + "," + a.splice(1).join(","))), n = s(0);
5157
5157
  for (let o = 1; o < e; o++)
5158
- if (!xi(n, s(o)))
5158
+ if (!yi(n, s(o)))
5159
5159
  return;
5160
5160
  return Array.from(n).map((o) => o.split(",")).map((o) => ({
5161
5161
  method: o[1],
@@ -5335,7 +5335,7 @@ let Pe = class {
5335
5335
  destroy() {
5336
5336
  this.notifyPlugins("beforeDestroy");
5337
5337
  const { canvas: t, ctx: e } = this;
5338
- this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Ci(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete pe[this.id], this.notifyPlugins("afterDestroy");
5338
+ this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Ai(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete pe[this.id], this.notifyPlugins("afterDestroy");
5339
5339
  }
5340
5340
  toBase64Image(...t) {
5341
5341
  return this.canvas.toDataURL(...t);
@@ -5424,11 +5424,11 @@ let Pe = class {
5424
5424
  }
5425
5425
  _handleEvent(t, e, s) {
5426
5426
  const { _active: n = [], options: o } = this, a = e, r = this._getActiveElements(t, n, s, a), l = ao(t), c = Nr(t, this._lastEvent, s, l);
5427
- s && (this._lastEvent = null, F(o.onHover, [
5427
+ s && (this._lastEvent = null, z(o.onHover, [
5428
5428
  t,
5429
5429
  r,
5430
5430
  this
5431
- ], this), l && F(o.onClick, [
5431
+ ], this), l && z(o.onClick, [
5432
5432
  t,
5433
5433
  r,
5434
5434
  this
@@ -5454,7 +5454,7 @@ function jr(i, t, e) {
5454
5454
  i.beginPath(), i.arc(o, a, r, s - c, e + c), l > n ? (c = n / l, i.arc(o, a, l, e + c, s - c, !0)) : i.arc(o, a, n, e + W, s - W), i.closePath(), i.clip();
5455
5455
  }
5456
5456
  function Hr(i) {
5457
- return oi(i, [
5457
+ return ai(i, [
5458
5458
  "outerStart",
5459
5459
  "outerEnd",
5460
5460
  "innerStart",
@@ -5484,10 +5484,10 @@ function ke(i, t, e, s, n, o) {
5484
5484
  let f = 0;
5485
5485
  const p = n - l;
5486
5486
  if (s) {
5487
- const D = h > 0 ? h - s : 0, R = d > 0 ? d - s : 0, I = (D + R) / 2, Z = I !== 0 ? p * I / (I + s) : p;
5487
+ const D = h > 0 ? h - s : 0, R = d > 0 ? d - s : 0, F = (D + R) / 2, Z = F !== 0 ? p * F / (F + s) : p;
5488
5488
  f = (p - Z) / 2;
5489
5489
  }
5490
- const g = Math.max(1e-3, p * d - e / z) / d, m = (p - g) / 2, b = l + m + f, _ = n - m - f, { outerStart: y, outerEnd: v, innerStart: x, innerEnd: k } = $r(t, u, d, _ - b), M = d - y, O = d - v, w = b + y / M, C = _ - v / O, E = u + x, L = u + k, X = b + x / E, G = _ - k / L;
5490
+ const g = Math.max(1e-3, p * d - e / B) / d, m = (p - g) / 2, b = l + m + f, _ = n - m - f, { outerStart: y, outerEnd: v, innerStart: x, innerEnd: k } = $r(t, u, d, _ - b), M = d - y, O = d - v, w = b + y / M, C = _ - v / O, E = u + x, L = u + k, X = b + x / E, G = _ - k / L;
5491
5491
  if (i.beginPath(), o) {
5492
5492
  const D = (w + C) / 2;
5493
5493
  if (i.arc(a, r, d, w, D), i.arc(a, r, d, D, C), v > 0) {
@@ -5499,8 +5499,8 @@ function ke(i, t, e, s, n, o) {
5499
5499
  const j = Ot(L, G, a, r);
5500
5500
  i.arc(j.x, j.y, k, _ + W, G + Math.PI);
5501
5501
  }
5502
- const I = (_ - k / u + (b + x / u)) / 2;
5503
- if (i.arc(a, r, u, _ - k / u, I, !0), i.arc(a, r, u, I, b + x / u, !0), x > 0) {
5502
+ const F = (_ - k / u + (b + x / u)) / 2;
5503
+ if (i.arc(a, r, u, _ - k / u, F, !0), i.arc(a, r, u, F, b + x / u, !0), x > 0) {
5504
5504
  const j = Ot(E, X, a, r);
5505
5505
  i.arc(j.x, j.y, x, X + Math.PI, b - W);
5506
5506
  }
@@ -5513,8 +5513,8 @@ function ke(i, t, e, s, n, o) {
5513
5513
  i.moveTo(a, r);
5514
5514
  const D = Math.cos(w) * d + a, R = Math.sin(w) * d + r;
5515
5515
  i.lineTo(D, R);
5516
- const I = Math.cos(C) * d + a, Z = Math.sin(C) * d + r;
5517
- i.lineTo(I, Z);
5516
+ const F = Math.cos(C) * d + a, Z = Math.sin(C) * d + r;
5517
+ i.lineTo(F, Z);
5518
5518
  }
5519
5519
  i.closePath();
5520
5520
  }
@@ -5588,7 +5588,7 @@ class Ur extends At {
5588
5588
  "innerRadius",
5589
5589
  "outerRadius",
5590
5590
  "circumference"
5591
- ], s), u = (this.options.spacing + this.options.borderWidth) / 2, f = T(d, l - r), p = ye(o, r, l) && r !== l, g = f >= N || p, m = Ye(a, c + u, h + u);
5591
+ ], s), u = (this.options.spacing + this.options.borderWidth) / 2, f = T(d, l - r), p = ye(o, r, l) && r !== l, g = f >= N || p, m = Xe(a, c + u, h + u);
5592
5592
  return g && m;
5593
5593
  }
5594
5594
  getCenterPoint(t) {
@@ -5615,7 +5615,7 @@ class Ur extends At {
5615
5615
  t.save();
5616
5616
  const r = (this.startAngle + this.endAngle) / 2;
5617
5617
  t.translate(Math.cos(r) * n, Math.sin(r) * n);
5618
- const l = 1 - Math.sin(Math.min(z, s || 0)), c = n * l;
5618
+ const l = 1 - Math.sin(Math.min(B, s || 0)), c = n * l;
5619
5619
  t.fillStyle = e.backgroundColor, t.strokeStyle = e.borderColor, Yr(t, this, c, o, a), Xr(t, this, c, o, a), t.restore();
5620
5620
  }
5621
5621
  }
@@ -5682,9 +5682,9 @@ function Gr(i) {
5682
5682
  }
5683
5683
  };
5684
5684
  }
5685
- function Ve(i, t, e, s) {
5685
+ function Ne(i, t, e, s) {
5686
5686
  const n = t === null, o = e === null, r = i && !(n && o) && hn(i, s);
5687
- return r && (n || Ye(t, r.left, r.right)) && (o || Ye(e, r.top, r.bottom));
5687
+ return r && (n || Xe(t, r.left, r.right)) && (o || Xe(e, r.top, r.bottom));
5688
5688
  }
5689
5689
  function Zr(i) {
5690
5690
  return i.topLeft || i.topRight || i.bottomLeft || i.bottomRight;
@@ -5692,7 +5692,7 @@ function Zr(i) {
5692
5692
  function Qr(i, t) {
5693
5693
  i.rect(t.x, t.y, t.w, t.h);
5694
5694
  }
5695
- function Ne(i, t, e = {}) {
5695
+ function We(i, t, e = {}) {
5696
5696
  const s = i.x !== e.x ? -t : 0, n = i.y !== e.y ? -t : 0, o = (i.x + i.w !== e.x + e.w ? t : 0) - s, a = (i.y + i.h !== e.y + e.h ? t : 0) - n;
5697
5697
  return {
5698
5698
  x: i.x + s,
@@ -5719,17 +5719,17 @@ class Jr extends At {
5719
5719
  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);
5720
5720
  }
5721
5721
  draw(t) {
5722
- const { inflateAmount: e, options: { borderColor: s, backgroundColor: n } } = this, { inner: o, outer: a } = Gr(this), r = Zr(a.radius) ? qe : Qr;
5723
- t.save(), (a.w !== o.w || a.h !== o.h) && (t.beginPath(), r(t, Ne(a, e, o)), t.clip(), r(t, Ne(o, -e, a)), t.fillStyle = s, t.fill("evenodd")), t.beginPath(), r(t, Ne(o, e)), t.fillStyle = n, t.fill(), t.restore();
5722
+ const { inflateAmount: e, options: { borderColor: s, backgroundColor: n } } = this, { inner: o, outer: a } = Gr(this), r = Zr(a.radius) ? Ge : Qr;
5723
+ t.save(), (a.w !== o.w || a.h !== o.h) && (t.beginPath(), r(t, We(a, e, o)), t.clip(), r(t, We(o, -e, a)), t.fillStyle = s, t.fill("evenodd")), t.beginPath(), r(t, We(o, e)), t.fillStyle = n, t.fill(), t.restore();
5724
5724
  }
5725
5725
  inRange(t, e, s) {
5726
- return Ve(this, t, e, s);
5726
+ return Ne(this, t, e, s);
5727
5727
  }
5728
5728
  inXRange(t, e) {
5729
- return Ve(this, t, null, e);
5729
+ return Ne(this, t, null, e);
5730
5730
  }
5731
5731
  inYRange(t, e) {
5732
- return Ve(this, null, t, e);
5732
+ return Ne(this, null, t, e);
5733
5733
  }
5734
5734
  getCenterPoint(t) {
5735
5735
  const { x: e, y: s, base: n, horizontal: o } = this.getProps([
@@ -5747,7 +5747,7 @@ class Jr extends At {
5747
5747
  return t === "x" ? this.width / 2 : this.height / 2;
5748
5748
  }
5749
5749
  }
5750
- const Qe = [
5750
+ const Je = [
5751
5751
  "rgb(54, 162, 235)",
5752
5752
  "rgb(255, 99, 132)",
5753
5753
  "rgb(255, 159, 64)",
@@ -5756,9 +5756,9 @@ const Qe = [
5756
5756
  "rgb(153, 102, 255)",
5757
5757
  "rgb(201, 203, 207)"
5758
5758
  // grey
5759
- ], hs = /* @__PURE__ */ Qe.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
5759
+ ], hs = /* @__PURE__ */ Je.map((i) => i.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
5760
5760
  function dn(i) {
5761
- return Qe[i % Qe.length];
5761
+ return Je[i % Je.length];
5762
5762
  }
5763
5763
  function un(i) {
5764
5764
  return hs[i % hs.length];
@@ -5789,7 +5789,10 @@ function ds(i) {
5789
5789
  function nl(i) {
5790
5790
  return i && (i.borderColor || i.backgroundColor);
5791
5791
  }
5792
- var ol = {
5792
+ function ol() {
5793
+ return I.borderColor !== "rgba(0,0,0,0.1)" || I.backgroundColor !== "rgba(0,0,0,0.1)";
5794
+ }
5795
+ var al = {
5793
5796
  id: "colors",
5794
5797
  defaults: {
5795
5798
  enabled: !0,
@@ -5798,11 +5801,11 @@ var ol = {
5798
5801
  beforeLayout(i, t, e) {
5799
5802
  if (!e.enabled)
5800
5803
  return;
5801
- const { data: { datasets: s }, options: n } = i.config, { elements: o } = n;
5802
- if (!e.forceOverride && (ds(s) || nl(n) || o && ds(o)))
5804
+ const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, a = ds(s) || nl(n) || o && ds(o) || ol();
5805
+ if (!e.forceOverride && a)
5803
5806
  return;
5804
- const a = sl(i);
5805
- s.forEach(a);
5807
+ const r = sl(i);
5808
+ s.forEach(r);
5806
5809
  }
5807
5810
  };
5808
5811
  class fn extends At {
@@ -5828,7 +5831,7 @@ class fn extends At {
5828
5831
  _drawArgs(t) {
5829
5832
  const { top: e, left: s, bottom: n, right: o, options: a } = this, r = a.align;
5830
5833
  let l = 0, c, h, d;
5831
- return this.isHorizontal() ? (h = Ht(r, s, o), d = e + t, c = o - s) : (a.position === "left" ? (h = s + t, d = Ht(r, n, e), l = z * -0.5) : (h = o - t, d = Ht(r, e, n), l = z * 0.5), c = n - e), {
5834
+ return this.isHorizontal() ? (h = Ht(r, s, o), d = e + t, c = o - s) : (a.position === "left" ? (h = s + t, d = Ht(r, n, e), l = B * -0.5) : (h = o - t, d = Ht(r, e, n), l = B * 0.5), c = n - e), {
5832
5835
  titleX: h,
5833
5836
  titleY: d,
5834
5837
  maxWidth: c,
@@ -5840,7 +5843,7 @@ class fn extends At {
5840
5843
  if (!e.display)
5841
5844
  return;
5842
5845
  const s = K(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
5843
- Ke(t, e.text, 0, 0, s, {
5846
+ qe(t, e.text, 0, 0, s, {
5844
5847
  color: e.color,
5845
5848
  maxWidth: l,
5846
5849
  rotation: c,
@@ -5853,7 +5856,7 @@ class fn extends At {
5853
5856
  });
5854
5857
  }
5855
5858
  }
5856
- function al(i, t) {
5859
+ function rl(i, t) {
5857
5860
  const e = new fn({
5858
5861
  ctx: i.ctx,
5859
5862
  options: t,
@@ -5861,11 +5864,11 @@ function al(i, t) {
5861
5864
  });
5862
5865
  lt.configure(i, e, t), lt.addBox(i, e), i.titleBlock = e;
5863
5866
  }
5864
- var rl = {
5867
+ var ll = {
5865
5868
  id: "title",
5866
5869
  _element: fn,
5867
5870
  start(i, t, e) {
5868
- al(i, e);
5871
+ rl(i, e);
5869
5872
  },
5870
5873
  stop(i) {
5871
5874
  const t = i.titleBlock;
@@ -5943,7 +5946,7 @@ function nt(i) {
5943
5946
  `) > -1 ? i.split(`
5944
5947
  `) : i;
5945
5948
  }
5946
- function ll(i, t) {
5949
+ function cl(i, t) {
5947
5950
  const { element: e, datasetIndex: s, index: n } = t, o = i.getDatasetMeta(s).controller, { label: a, value: r } = o.getLabelAndValue(n);
5948
5951
  return {
5949
5952
  chart: i,
@@ -5976,39 +5979,39 @@ function us(i, t) {
5976
5979
  height: g
5977
5980
  };
5978
5981
  }
5979
- function cl(i, t) {
5982
+ function hl(i, t) {
5980
5983
  const { y: e, height: s } = t;
5981
5984
  return e < s / 2 ? "top" : e > i.height - s / 2 ? "bottom" : "center";
5982
5985
  }
5983
- function hl(i, t, e, s) {
5986
+ function dl(i, t, e, s) {
5984
5987
  const { x: n, width: o } = s, a = e.caretSize + e.caretPadding;
5985
5988
  if (i === "left" && n + o + a > t.width || i === "right" && n - o - a < 0)
5986
5989
  return !0;
5987
5990
  }
5988
- function dl(i, t, e, s) {
5991
+ function ul(i, t, e, s) {
5989
5992
  const { x: n, width: o } = e, { width: a, chartArea: { left: r, right: l } } = i;
5990
5993
  let c = "center";
5991
- return s === "center" ? c = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= a - o / 2 && (c = "right"), hl(c, i, t, e) && (c = "center"), c;
5994
+ return s === "center" ? c = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= a - o / 2 && (c = "right"), dl(c, i, t, e) && (c = "center"), c;
5992
5995
  }
5993
5996
  function fs(i, t, e) {
5994
- const s = e.yAlign || t.yAlign || cl(i, e);
5997
+ const s = e.yAlign || t.yAlign || hl(i, e);
5995
5998
  return {
5996
- xAlign: e.xAlign || t.xAlign || dl(i, t, e, s),
5999
+ xAlign: e.xAlign || t.xAlign || ul(i, t, e, s),
5997
6000
  yAlign: s
5998
6001
  };
5999
6002
  }
6000
- function ul(i, t) {
6003
+ function fl(i, t) {
6001
6004
  let { x: e, width: s } = i;
6002
6005
  return t === "right" ? e -= s : t === "center" && (e -= s / 2), e;
6003
6006
  }
6004
- function fl(i, t, e) {
6007
+ function gl(i, t, e) {
6005
6008
  let { y: s, height: n } = i;
6006
6009
  return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
6007
6010
  }
6008
6011
  function gs(i, t, e, s) {
6009
6012
  const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Xt(a);
6010
- let p = ul(t, r);
6011
- const g = fl(t, l, c);
6013
+ let p = fl(t, r);
6014
+ const g = gl(t, l, c);
6012
6015
  return l === "center" ? r === "left" ? p += c : r === "right" && (p -= c) : r === "left" ? p -= Math.max(h, u) + n : r === "right" && (p += Math.max(d, f) + n), {
6013
6016
  x: Y(p, 0, s.width - t.width),
6014
6017
  y: Y(g, 0, s.height - t.height)
@@ -6021,7 +6024,7 @@ function de(i, t, e) {
6021
6024
  function ps(i) {
6022
6025
  return J([], nt(i));
6023
6026
  }
6024
- function gl(i, t, e) {
6027
+ function pl(i, t, e) {
6025
6028
  return Ct(i, {
6026
6029
  tooltip: t,
6027
6030
  tooltipItems: e,
@@ -6104,7 +6107,7 @@ class bs extends At {
6104
6107
  return n._cacheable && (this._cachedAnimations = Object.freeze(o)), o;
6105
6108
  }
6106
6109
  getContext() {
6107
- return this.$context || (this.$context = gl(this.chart.getContext(), this, this._tooltipItems));
6110
+ return this.$context || (this.$context = pl(this.chart.getContext(), this, this._tooltipItems));
6108
6111
  }
6109
6112
  getTitle(t, e) {
6110
6113
  const { callbacks: s } = e, n = H(s, "beforeTitle", this, t), o = H(s, "title", this, t), a = H(s, "afterTitle", this, t);
@@ -6137,7 +6140,7 @@ class bs extends At {
6137
6140
  const e = this._active, s = this.chart.data, n = [], o = [], a = [];
6138
6141
  let r = [], l, c;
6139
6142
  for (l = 0, c = e.length; l < c; ++l)
6140
- r.push(ll(this.chart, e[l]));
6143
+ r.push(cl(this.chart, e[l]));
6141
6144
  return t.filter && (r = r.filter((h, d, u) => t.filter(h, d, u, s))), t.itemSort && (r = r.sort((h, d) => t.itemSort(h, d, s))), P(r, (h) => {
6142
6145
  const d = ms(t.callbacks, h);
6143
6146
  n.push(H(d, "labelColor", this, h)), o.push(H(d, "labelPointStyle", this, h)), a.push(H(d, "labelTextColor", this, h));
@@ -6204,17 +6207,17 @@ class bs extends At {
6204
6207
  rotation: r.rotation,
6205
6208
  borderWidth: 1
6206
6209
  }, m = n.leftForLtr(u, c) + c / 2, b = p + l / 2;
6207
- t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Ai(t, g, m, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Ai(t, g, m, b);
6210
+ t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Ri(t, g, m, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Ri(t, g, m, b);
6208
6211
  } else {
6209
6212
  t.lineWidth = S(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
6210
6213
  const g = n.leftForLtr(u, c), m = n.leftForLtr(n.xPlus(u, 1), c - 2), b = Xt(a.borderRadius);
6211
- Object.values(b).some((_) => _ !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, qe(t, {
6214
+ Object.values(b).some((_) => _ !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Ge(t, {
6212
6215
  x: g,
6213
6216
  y: p,
6214
6217
  w: c,
6215
6218
  h: l,
6216
6219
  radius: b
6217
- }), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), qe(t, {
6220
+ }), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), Ge(t, {
6218
6221
  x: m,
6219
6222
  y: p + 1,
6220
6223
  w: c - 2,
@@ -6321,7 +6324,7 @@ class bs extends At {
6321
6324
  return a !== !1 && (s !== a.x || n !== a.y);
6322
6325
  }
6323
6326
  }
6324
- var pl = {
6327
+ var ml = {
6325
6328
  id: "tooltip",
6326
6329
  _element: bs,
6327
6330
  positioners: Wt,
@@ -6437,23 +6440,23 @@ var pl = {
6437
6440
  "interaction"
6438
6441
  ]
6439
6442
  };
6440
- const ml = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({
6443
+ const bl = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({
6441
6444
  index: e,
6442
6445
  label: t
6443
6446
  })) : isNaN(t) && (e = null), e);
6444
- function bl(i, t, e, s) {
6447
+ function _l(i, t, e, s) {
6445
6448
  const n = i.indexOf(t);
6446
6449
  if (n === -1)
6447
- return ml(i, t, e, s);
6450
+ return bl(i, t, e, s);
6448
6451
  const o = i.lastIndexOf(t);
6449
6452
  return n !== o ? e : n;
6450
6453
  }
6451
- const _l = (i, t) => i === null ? null : Y(Math.round(i), 0, t);
6454
+ const xl = (i, t) => i === null ? null : Y(Math.round(i), 0, t);
6452
6455
  function _s(i) {
6453
6456
  const t = this.getLabels();
6454
6457
  return i >= 0 && i < t.length ? t[i] : i;
6455
6458
  }
6456
- class xl extends Rt {
6459
+ class yl extends Rt {
6457
6460
  static id = "category";
6458
6461
  static defaults = {
6459
6462
  ticks: {
@@ -6477,7 +6480,7 @@ class xl extends Rt {
6477
6480
  if (A(t))
6478
6481
  return null;
6479
6482
  const s = this.getLabels();
6480
- return e = isFinite(e) && s[e] === t ? e : bl(s, t, T(e, t), this._addedLabels), _l(e, s.length - 1);
6483
+ return e = isFinite(e) && s[e] === t ? e : _l(s, t, T(e, t), this._addedLabels), xl(e, s.length - 1);
6481
6484
  }
6482
6485
  determineDataLimits() {
6483
6486
  const { minDefined: t, maxDefined: e } = this.getUserBounds();
@@ -6514,9 +6517,9 @@ class xl extends Rt {
6514
6517
  return this.bottom;
6515
6518
  }
6516
6519
  }
6517
- function yl(i, t) {
6520
+ function vl(i, t) {
6518
6521
  const e = [], { bounds: n, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, p = h - 1, { min: g, max: m } = t, b = !A(a), _ = !A(r), y = !A(c), v = (m - g) / (d + 1);
6519
- let x = vi((m - g) / p / f) * f, k, M, O, w;
6522
+ let x = Mi((m - g) / p / f) * f, k, M, O, w;
6520
6523
  if (x < 1e-14 && !b && !_)
6521
6524
  return [
6522
6525
  {
@@ -6526,8 +6529,8 @@ function yl(i, t) {
6526
6529
  value: m
6527
6530
  }
6528
6531
  ];
6529
- w = Math.ceil(m / x) - Math.floor(g / x), w > p && (x = vi(w * x / p / f) * f), A(l) || (k = Math.pow(10, l), x = Math.ceil(x * k) / k), n === "ticks" ? (M = Math.floor(g / x) * x, O = Math.ceil(m / x) * x) : (M = g, O = m), b && _ && o && co((r - a) / o, x / 1e3) ? (w = Math.round(Math.min((r - a) / x, h)), x = (r - a) / w, M = a, O = r) : y ? (M = b ? a : M, O = _ ? r : O, w = c - 1, x = (O - M) / w) : (w = (O - M) / x, fe(w, Math.round(w), x / 1e3) ? w = Math.round(w) : w = Math.ceil(w));
6530
- const C = Math.max(Mi(x), Mi(M));
6532
+ w = Math.ceil(m / x) - Math.floor(g / x), w > p && (x = Mi(w * x / p / f) * f), A(l) || (k = Math.pow(10, l), x = Math.ceil(x * k) / k), n === "ticks" ? (M = Math.floor(g / x) * x, O = Math.ceil(m / x) * x) : (M = g, O = m), b && _ && o && co((r - a) / o, x / 1e3) ? (w = Math.round(Math.min((r - a) / x, h)), x = (r - a) / w, M = a, O = r) : y ? (M = b ? a : M, O = _ ? r : O, w = c - 1, x = (O - M) / w) : (w = (O - M) / x, fe(w, Math.round(w), x / 1e3) ? w = Math.round(w) : w = Math.ceil(w));
6533
+ const C = Math.max(ki(x), ki(M));
6531
6534
  k = Math.pow(10, A(l) ? C : l), M = Math.round(M * k) / k, O = Math.round(O * k) / k;
6532
6535
  let E = 0;
6533
6536
  for (b && (u && M !== a ? (e.push({
@@ -6550,7 +6553,7 @@ function xs(i, t, { horizontal: e, minRotation: s }) {
6550
6553
  const n = et(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, a = 0.75 * t * ("" + i).length;
6551
6554
  return Math.min(t / o, a);
6552
6555
  }
6553
- class vl extends Rt {
6556
+ class Ml extends Rt {
6554
6557
  constructor(t) {
6555
6558
  super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
6556
6559
  }
@@ -6595,7 +6598,7 @@ class vl extends Rt {
6595
6598
  horizontal: this.isHorizontal(),
6596
6599
  minRotation: e.minRotation || 0,
6597
6600
  includeBounds: e.includeBounds !== !1
6598
- }, o = this._range || this, a = yl(n, o);
6601
+ }, o = this._range || this, a = vl(n, o);
6599
6602
  return t.bounds === "ticks" && ho(a, this, "value"), t.reverse ? (a.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), a;
6600
6603
  }
6601
6604
  configure() {
@@ -6611,7 +6614,7 @@ class vl extends Rt {
6611
6614
  return we(t, this.chart.options.locale, this.options.ticks.format);
6612
6615
  }
6613
6616
  }
6614
- class Ml extends vl {
6617
+ class kl extends Ml {
6615
6618
  static id = "linear";
6616
6619
  static defaults = {
6617
6620
  ticks: {
@@ -6698,7 +6701,7 @@ function Ms(i, t, e, s) {
6698
6701
  }
6699
6702
  return $[n - 1];
6700
6703
  }
6701
- function kl(i, t, e, s, n) {
6704
+ function wl(i, t, e, s, n) {
6702
6705
  for (let o = $.length - 1; o >= $.indexOf(e); o--) {
6703
6706
  const a = $[o];
6704
6707
  if (De[a].common && i._adapter.diff(n, s, a) >= t - 1)
@@ -6706,7 +6709,7 @@ function kl(i, t, e, s, n) {
6706
6709
  }
6707
6710
  return $[e ? $.indexOf(e) : 0];
6708
6711
  }
6709
- function wl(i) {
6712
+ function Sl(i) {
6710
6713
  for (let t = $.indexOf(i) + 1, e = $.length; t < e; ++t)
6711
6714
  if (De[$[t]].common)
6712
6715
  return $[t];
@@ -6715,11 +6718,11 @@ function ks(i, t, e) {
6715
6718
  if (!e)
6716
6719
  i[t] = !0;
6717
6720
  else if (e.length) {
6718
- const { lo: s, hi: n } = ni(e, t), o = e[s] >= t ? e[s] : e[n];
6721
+ const { lo: s, hi: n } = oi(e, t), o = e[s] >= t ? e[s] : e[n];
6719
6722
  i[o] = !0;
6720
6723
  }
6721
6724
  }
6722
- function Sl(i, t, e, s) {
6725
+ function Ol(i, t, e, s) {
6723
6726
  const n = i._adapter, o = +n.startOf(t[0].value, s), a = t[t.length - 1].value;
6724
6727
  let r, l;
6725
6728
  for (r = o; r <= a; r = +n.add(r, 1, s))
@@ -6734,7 +6737,7 @@ function ws(i, t, e) {
6734
6737
  value: r,
6735
6738
  major: !1
6736
6739
  });
6737
- return o === 0 || !e ? s : Sl(i, s, n, e);
6740
+ return o === 0 || !e ? s : Ol(i, s, n, e);
6738
6741
  }
6739
6742
  class Ss extends Rt {
6740
6743
  static id = "time";
@@ -6802,7 +6805,7 @@ class Ss extends Rt {
6802
6805
  const t = this.options, e = t.time, s = t.ticks, n = s.source === "labels" ? this.getLabelTimestamps() : this._generate();
6803
6806
  t.bounds === "ticks" && n.length && (this.min = this._userMin || n[0], this.max = this._userMax || n[n.length - 1]);
6804
6807
  const o = this.min, a = this.max, r = mo(n, o, a);
6805
- return this._unit = e.unit || (s.autoSkip ? Ms(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : kl(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : wl(this._unit), this.initOffsets(n), t.reverse && r.reverse(), ws(this, r, this._majorUnit);
6808
+ return this._unit = e.unit || (s.autoSkip ? Ms(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : wl(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : Sl(this._unit), this.initOffsets(n), t.reverse && r.reverse(), ws(this, r, this._majorUnit);
6806
6809
  }
6807
6810
  afterAutoSkip() {
6808
6811
  this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
@@ -6838,7 +6841,7 @@ class Ss extends Rt {
6838
6841
  _tickFormatFunction(t, e, s, n) {
6839
6842
  const o = this.options, a = o.ticks.callback;
6840
6843
  if (a)
6841
- return F(a, [
6844
+ return z(a, [
6842
6845
  t,
6843
6846
  e,
6844
6847
  s
@@ -6902,11 +6905,11 @@ class Ss extends Rt {
6902
6905
  }
6903
6906
  function ue(i, t, e) {
6904
6907
  let s = 0, n = i.length - 1, o, a, r, l;
6905
- e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Xe(i, "pos", t)), { pos: o, time: r } = i[s], { pos: a, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = Xe(i, "time", t)), { time: o, pos: r } = i[s], { time: a, pos: l } = i[n]);
6908
+ e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Ue(i, "pos", t)), { pos: o, time: r } = i[s], { pos: a, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = Ue(i, "time", t)), { time: o, pos: r } = i[s], { time: a, pos: l } = i[n]);
6906
6909
  const c = a - o;
6907
6910
  return c ? r + (l - r) * (t - o) / c : r;
6908
6911
  }
6909
- class Hl extends Ss {
6912
+ class $l extends Ss {
6910
6913
  static id = "timeseries";
6911
6914
  static defaults = Ss.defaults;
6912
6915
  constructor(t) {
@@ -6980,14 +6983,14 @@ const pn = {
6980
6983
  type: String,
6981
6984
  default: void 0
6982
6985
  }
6983
- }, Ol = {
6986
+ }, Pl = {
6984
6987
  ariaLabel: {
6985
6988
  type: String
6986
6989
  },
6987
6990
  ariaDescribedby: {
6988
6991
  type: String
6989
6992
  }
6990
- }, Pl = {
6993
+ }, Dl = {
6991
6994
  type: {
6992
6995
  type: String,
6993
6996
  required: !0
@@ -6998,18 +7001,18 @@ const pn = {
6998
7001
  // No delay by default
6999
7002
  },
7000
7003
  ...pn,
7001
- ...Ol
7002
- }, Dl = xn[0] === "2" ? (i, t) => Object.assign(i, {
7004
+ ...Pl
7005
+ }, Cl = xn[0] === "2" ? (i, t) => Object.assign(i, {
7003
7006
  attrs: t
7004
7007
  }) : (i, t) => Object.assign(i, t);
7005
7008
  function Pt(i) {
7006
- return Ps(i) ? We(i) : i;
7009
+ return Ps(i) ? je(i) : i;
7007
7010
  }
7008
- function Cl(i) {
7011
+ function Al(i) {
7009
7012
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : i;
7010
7013
  return Ps(t) ? new Proxy(i, {}) : i;
7011
7014
  }
7012
- function Al(i, t) {
7015
+ function Rl(i, t) {
7013
7016
  const e = i.options;
7014
7017
  e && t && Object.assign(e, t);
7015
7018
  }
@@ -7025,15 +7028,15 @@ function bn(i, t, e) {
7025
7028
  } : (s.push(o), Object.assign(o, n), o);
7026
7029
  });
7027
7030
  }
7028
- function Rl(i, t) {
7031
+ function Tl(i, t) {
7029
7032
  const e = {
7030
7033
  labels: [],
7031
7034
  datasets: []
7032
7035
  };
7033
7036
  return mn(e, i.labels), bn(e, i.datasets, t), e;
7034
7037
  }
7035
- const Tl = Je({
7036
- props: Pl,
7038
+ const Ll = ti({
7039
+ props: Dl,
7037
7040
  setup(i, t) {
7038
7041
  let { expose: e, slots: s } = t;
7039
7042
  const n = yn(null), o = Os(null);
@@ -7042,7 +7045,7 @@ const Tl = Je({
7042
7045
  });
7043
7046
  const a = () => {
7044
7047
  if (!n.value) return;
7045
- const { type: c, data: h, options: d, plugins: u, datasetIdKey: f } = i, p = Rl(h, f), g = Cl(p, h);
7048
+ const { type: c, data: h, options: d, plugins: u, datasetIdKey: f } = i, p = Tl(h, f), g = Al(p, h);
7046
7049
  o.value = new Pe(n.value, {
7047
7050
  type: c,
7048
7051
  data: g,
@@ -7052,7 +7055,7 @@ const Tl = Je({
7052
7055
  plugins: u
7053
7056
  });
7054
7057
  }, r = () => {
7055
- const c = We(o.value);
7058
+ const c = je(o.value);
7056
7059
  c && (i.destroyDelay > 0 ? setTimeout(() => {
7057
7060
  c.destroy(), o.value = null;
7058
7061
  }, i.destroyDelay) : (c.destroy(), o.value = null));
@@ -7064,13 +7067,13 @@ const Tl = Je({
7064
7067
  () => i.data
7065
7068
  ], (c, h) => {
7066
7069
  let [d, u] = c, [f, p] = h;
7067
- const g = We(o.value);
7070
+ const g = je(o.value);
7068
7071
  if (!g)
7069
7072
  return;
7070
7073
  let m = !1;
7071
7074
  if (d) {
7072
7075
  const b = Pt(d), _ = Pt(f);
7073
- b && b !== _ && (Al(g, b), m = !0);
7076
+ b && b !== _ && (Rl(g, b), m = !0);
7074
7077
  }
7075
7078
  if (u) {
7076
7079
  const b = Pt(u.labels), _ = Pt(p.labels), y = Pt(u.datasets), v = Pt(p.datasets);
@@ -7081,20 +7084,20 @@ const Tl = Je({
7081
7084
  });
7082
7085
  }, {
7083
7086
  deep: !0
7084
- }), () => je("canvas", {
7087
+ }), () => He("canvas", {
7085
7088
  role: "img",
7086
7089
  ariaLabel: i.ariaLabel,
7087
7090
  ariaDescribedby: i.ariaDescribedby,
7088
7091
  ref: n
7089
7092
  }, [
7090
- je("p", {}, [
7093
+ He("p", {}, [
7091
7094
  s.default ? s.default() : ""
7092
7095
  ])
7093
7096
  ]);
7094
7097
  }
7095
7098
  });
7096
7099
  function _n(i, t) {
7097
- return Pe.register(t), Je({
7100
+ return Pe.register(t), ti({
7098
7101
  props: pn,
7099
7102
  setup(e, s) {
7100
7103
  let { expose: n } = s;
@@ -7103,7 +7106,7 @@ function _n(i, t) {
7103
7106
  };
7104
7107
  return n({
7105
7108
  chart: o
7106
- }), () => je(Tl, Dl({
7109
+ }), () => He(Ll, Cl({
7107
7110
  ref: a
7108
7111
  }, {
7109
7112
  type: i,
@@ -7112,7 +7115,7 @@ function _n(i, t) {
7112
7115
  }
7113
7116
  });
7114
7117
  }
7115
- const Ll = /* @__PURE__ */ _n("bar", Da), El = /* @__PURE__ */ _n("pie", Ra), Il = /* @__PURE__ */ Je({
7118
+ const El = /* @__PURE__ */ _n("bar", Da), Il = /* @__PURE__ */ _n("pie", Ra), Fl = /* @__PURE__ */ ti({
7116
7119
  __name: "UiChart",
7117
7120
  props: {
7118
7121
  labels: {},
@@ -7121,8 +7124,8 @@ const Ll = /* @__PURE__ */ _n("bar", Da), El = /* @__PURE__ */ _n("pie", Ra), Il
7121
7124
  type: { default: "Bar" }
7122
7125
  },
7123
7126
  setup(i) {
7124
- const t = i, e = Sn(() => t.type === "Pie" ? El : Ll);
7125
- Pe.register(rl, pl, Jr, xl, Ml, ol, Ur);
7127
+ const t = i, e = Sn(() => t.type === "Pie" ? Il : El);
7128
+ Pe.register(ll, ml, Jr, yl, kl, al, Ur);
7126
7129
  const s = {
7127
7130
  labels: t.labels,
7128
7131
  datasets: [{ data: t.data }]
@@ -7130,25 +7133,25 @@ const Ll = /* @__PURE__ */ _n("bar", Da), El = /* @__PURE__ */ _n("pie", Ra), Il
7130
7133
  responsive: !0,
7131
7134
  aspectRatio: 2
7132
7135
  };
7133
- return (o, a) => (ui(), On("div", {
7134
- class: fi(o.$style.chart)
7136
+ return (o, a) => (fi(), On("div", {
7137
+ class: gi(o.$style.chart)
7135
7138
  }, [
7136
7139
  Pn("div", {
7137
- class: fi(o.$style.title)
7140
+ class: gi(o.$style.title)
7138
7141
  }, Dn(t.title), 3),
7139
- (ui(), Cn(An(e.value), {
7142
+ (fi(), Cn(An(e.value), {
7140
7143
  options: n,
7141
7144
  data: s,
7142
7145
  "data-type": t.type
7143
7146
  }, null, 8, ["data-type"]))
7144
7147
  ], 2));
7145
7148
  }
7146
- }), Fl = "_chart_1dagb_1", zl = "_title_1dagb_8", Bl = {
7147
- chart: Fl,
7148
- title: zl
7149
- }, Vl = {
7150
- $style: Bl
7151
- }, $l = /* @__PURE__ */ Rn(Il, [["__cssModules", Vl]]);
7149
+ }), zl = "_chart_1dagb_1", Bl = "_title_1dagb_8", Vl = {
7150
+ chart: zl,
7151
+ title: Bl
7152
+ }, Nl = {
7153
+ $style: Vl
7154
+ }, Yl = /* @__PURE__ */ Rn(Fl, [["__cssModules", Nl]]);
7152
7155
  export {
7153
- $l as default
7156
+ Yl as default
7154
7157
  };