nemesischart 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { computed as Dt, openBlock as Tt, createElementBlock as Lt, normalizeClass as ot, createElementVNode as N, toDisplayString as ct, createTextVNode as on, createCommentVNode as ws, ref as rn, onMounted as an, onBeforeUnmount as ln, watch as Ee, Fragment as cn, renderList as hn, normalizeStyle as dn } from "vue";
1
+ import { computed as Mt, openBlock as Lt, createElementBlock as Rt, normalizeClass as it, createElementVNode as N, toDisplayString as ct, createTextVNode as rn, createCommentVNode as ks, ref as Ee, onMounted as an, onBeforeUnmount as ln, watch as Fe, Fragment as cn, renderList as hn, normalizeStyle as dn } from "vue";
2
2
  const fn = (i, t) => {
3
3
  const e = i.__vccOpts || i;
4
4
  for (const [s, n] of t)
@@ -38,51 +38,51 @@ const fn = (i, t) => {
38
38
  light: "bg-white",
39
39
  dark: "bg-black",
40
40
  transparent: "bg-transparent"
41
- }, n = t, o = Dt(() => s[e.cor] ?? "bg-white"), r = () => {
41
+ }, n = t, o = Mt(() => s[e.cor] ?? "bg-white"), r = () => {
42
42
  n("click");
43
43
  };
44
- return (a, l) => (Tt(), Lt("div", {
45
- class: ot([o.value, "border-1 surface-border border-round-xl cursor-pointer flex flex-column w-full transition-linear transition-all transition-duration-200 select-none", o.value === "bg-black" ? "hover:bg-black-alpha-90" : "hover:bg-white-alpha-70"]),
44
+ return (a, l) => (Lt(), Rt("div", {
45
+ class: it([o.value, "border-1 surface-border border-round-xl cursor-pointer flex flex-column w-full transition-linear transition-all transition-duration-200 select-none", o.value === "bg-black" ? "hover:bg-black-alpha-90" : "hover:bg-white-alpha-70"]),
46
46
  style: { padding: "1.25rem", gap: "1.438rem" },
47
47
  onClick: r
48
48
  }, [
49
49
  N("p", {
50
- class: ot(["m-0 text-xs font-medium", o.value === "bg-black" ? "text-white" : "text-gray-900"])
50
+ class: it(["m-0 text-xs font-medium", o.value === "bg-black" ? "text-white" : "text-gray-900"])
51
51
  }, ct(i.titulo), 3),
52
52
  N("div", null, [
53
53
  N("h2", {
54
- class: ot(["m-0 text-3xl font-semibold", o.value === "bg-black" ? "text-white" : "text-gray-900"]),
54
+ class: it(["m-0 text-3xl font-semibold", o.value === "bg-black" ? "text-white" : "text-gray-900"]),
55
55
  style: { "line-height": "33px", "letter-spacing": "-1px" }
56
56
  }, ct(i.valor), 3),
57
57
  N("p", un, ct(i.descricao), 1)
58
58
  ]),
59
- i.botao_todos ? (Tt(), Lt("button", {
59
+ i.botao_todos ? (Lt(), Rt("button", {
60
60
  key: 0,
61
- class: ot(["nc-btn-todos text-xs", o.value === "bg-black" ? "text-white" : "text-gray-900"])
61
+ class: it(["nc-btn-todos text-xs", o.value === "bg-black" ? "text-white" : "text-gray-900"])
62
62
  }, [...l[0] || (l[0] = [
63
- on(" Ver Todos ", -1),
63
+ rn(" Ver Todos ", -1),
64
64
  N("i", { class: "pi pi-angle-right text-xs" }, null, -1)
65
- ])], 2)) : ws("", !0)
65
+ ])], 2)) : ks("", !0)
66
66
  ], 2));
67
67
  }
68
68
  }, pn = /* @__PURE__ */ fn(gn, [["__scopeId", "data-v-c2f86ac2"]]);
69
- function ie(i) {
69
+ function se(i) {
70
70
  return i + 0.5 | 0;
71
71
  }
72
- const dt = (i, t, e) => Math.max(Math.min(i, e), t);
73
- function Yt(i) {
74
- return dt(ie(i * 2.55), 0, 255);
72
+ const ut = (i, t, e) => Math.max(Math.min(i, e), t);
73
+ function Ut(i) {
74
+ return ut(se(i * 2.55), 0, 255);
75
75
  }
76
- function pt(i) {
77
- return dt(ie(i * 255), 0, 255);
76
+ function bt(i) {
77
+ return ut(se(i * 255), 0, 255);
78
78
  }
79
79
  function ht(i) {
80
- return dt(ie(i / 2.55) / 100, 0, 1);
80
+ return ut(se(i / 2.55) / 100, 0, 1);
81
81
  }
82
- function gi(i) {
83
- return dt(ie(i * 100), 0, 100);
82
+ function pi(i) {
83
+ return ut(se(i * 100), 0, 100);
84
84
  }
85
- const J = { 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 }, Ye = [..."0123456789ABCDEF"], mn = (i) => Ye[i & 15], bn = (i) => Ye[(i & 240) >> 4] + Ye[i & 15], re = (i) => (i & 240) >> 4 === (i & 15), xn = (i) => re(i.r) && re(i.g) && re(i.b) && re(i.a);
85
+ const J = { 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 }, Ue = [..."0123456789ABCDEF"], mn = (i) => Ue[i & 15], bn = (i) => Ue[(i & 240) >> 4] + Ue[i & 15], re = (i) => (i & 240) >> 4 === (i & 15), xn = (i) => re(i.r) && re(i.g) && re(i.b) && re(i.a);
86
86
  function _n(i) {
87
87
  var t = i.length, e;
88
88
  return i[0] === "#" && (t === 4 || t === 5 ? e = {
@@ -103,7 +103,7 @@ function vn(i) {
103
103
  return i ? "#" + t(i.r) + t(i.g) + t(i.b) + yn(i.a, t) : void 0;
104
104
  }
105
105
  const wn = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
106
- function ks(i, t, e) {
106
+ function Ss(i, t, e) {
107
107
  const s = t * Math.min(e, 1 - e), n = (o, r = (o + i / 30) % 12) => e - s * Math.max(Math.min(r - 3, 9 - r, 1), -1);
108
108
  return [n(0), n(8), n(4)];
109
109
  }
@@ -112,7 +112,7 @@ function kn(i, t, e) {
112
112
  return [s(5), s(3), s(1)];
113
113
  }
114
114
  function Sn(i, t, e) {
115
- const s = ks(i, 1, 0.5);
115
+ const s = Ss(i, 1, 0.5);
116
116
  let n;
117
117
  for (t + e > 1 && (n = 1 / (t + e), t *= n, e *= n), n = 0; n < 3; n++)
118
118
  s[n] *= 1 - t - e, s[n] += t;
@@ -121,24 +121,24 @@ function Sn(i, t, e) {
121
121
  function Mn(i, t, e, s, n) {
122
122
  return i === n ? (t - e) / s + (t < e ? 6 : 0) : t === n ? (e - i) / s + 2 : (i - t) / s + 4;
123
123
  }
124
- function Qe(i) {
124
+ function Je(i) {
125
125
  const e = i.r / 255, s = i.g / 255, n = i.b / 255, o = Math.max(e, s, n), r = Math.min(e, s, n), a = (o + r) / 2;
126
126
  let l, c, h;
127
127
  return o !== r && (h = o - r, c = a > 0.5 ? h / (2 - o - r) : h / (o + r), l = Mn(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, a];
128
128
  }
129
- function Je(i, t, e, s) {
130
- return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(pt);
129
+ function ti(i, t, e, s) {
130
+ return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(bt);
131
131
  }
132
- function ti(i, t, e) {
133
- return Je(ks, i, t, e);
132
+ function ei(i, t, e) {
133
+ return ti(Ss, i, t, e);
134
134
  }
135
135
  function Cn(i, t, e) {
136
- return Je(Sn, i, t, e);
136
+ return ti(Sn, i, t, e);
137
137
  }
138
138
  function An(i, t, e) {
139
- return Je(kn, i, t, e);
139
+ return ti(kn, i, t, e);
140
140
  }
141
- function Ss(i) {
141
+ function Ms(i) {
142
142
  return (i % 360 + 360) % 360;
143
143
  }
144
144
  function Pn(i) {
@@ -146,9 +146,9 @@ function Pn(i) {
146
146
  let e = 255, s;
147
147
  if (!t)
148
148
  return;
149
- t[5] !== s && (e = t[6] ? Yt(+t[5]) : pt(+t[5]));
150
- const n = Ss(+t[2]), o = +t[3] / 100, r = +t[4] / 100;
151
- return t[1] === "hwb" ? s = Cn(n, o, r) : t[1] === "hsv" ? s = An(n, o, r) : s = ti(n, o, r), {
149
+ t[5] !== s && (e = t[6] ? Ut(+t[5]) : bt(+t[5]));
150
+ const n = Ms(+t[2]), o = +t[3] / 100, r = +t[4] / 100;
151
+ return t[1] === "hwb" ? s = Cn(n, o, r) : t[1] === "hsv" ? s = An(n, o, r) : s = ei(n, o, r), {
152
152
  r: s[0],
153
153
  g: s[1],
154
154
  b: s[2],
@@ -156,16 +156,16 @@ function Pn(i) {
156
156
  };
157
157
  }
158
158
  function On(i, t) {
159
- var e = Qe(i);
160
- e[0] = Ss(e[0] + t), e = ti(e), i.r = e[0], i.g = e[1], i.b = e[2];
159
+ var e = Je(i);
160
+ e[0] = Ms(e[0] + t), e = ei(e), i.r = e[0], i.g = e[1], i.b = e[2];
161
161
  }
162
162
  function Dn(i) {
163
163
  if (!i)
164
164
  return;
165
- const t = Qe(i), e = t[0], s = gi(t[1]), n = gi(t[2]);
165
+ const t = Je(i), e = t[0], s = pi(t[1]), n = pi(t[2]);
166
166
  return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${ht(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
167
167
  }
168
- const pi = {
168
+ const mi = {
169
169
  x: "dark",
170
170
  Z: "light",
171
171
  Y: "re",
@@ -193,7 +193,7 @@ const pi = {
193
193
  H: "ea",
194
194
  I: "ightg",
195
195
  J: "wh"
196
- }, mi = {
196
+ }, bi = {
197
197
  OiceXe: "f0f8ff",
198
198
  antiquewEte: "faebd7",
199
199
  aqua: "ffff",
@@ -344,12 +344,12 @@ const pi = {
344
344
  LwgYF: "9acd32"
345
345
  };
346
346
  function Tn() {
347
- const i = {}, t = Object.keys(mi), e = Object.keys(pi);
347
+ const i = {}, t = Object.keys(bi), e = Object.keys(mi);
348
348
  let s, n, o, r, a;
349
349
  for (s = 0; s < t.length; s++) {
350
350
  for (r = a = t[s], n = 0; n < e.length; n++)
351
- o = e[n], a = a.replace(o, pi[o]);
352
- o = parseInt(mi[r], 16), i[a] = [o >> 16 & 255, o >> 8 & 255, o & 255];
351
+ o = e[n], a = a.replace(o, mi[o]);
352
+ o = parseInt(bi[r], 16), i[a] = [o >> 16 & 255, o >> 8 & 255, o & 255];
353
353
  }
354
354
  return i;
355
355
  }
@@ -371,9 +371,9 @@ function In(i) {
371
371
  if (t) {
372
372
  if (t[7] !== s) {
373
373
  const r = +t[7];
374
- e = t[8] ? Yt(r) : dt(r * 255, 0, 255);
374
+ e = t[8] ? Ut(r) : ut(r * 255, 0, 255);
375
375
  }
376
- return s = +t[1], n = +t[3], o = +t[5], s = 255 & (t[2] ? Yt(s) : dt(s, 0, 255)), n = 255 & (t[4] ? Yt(n) : dt(n, 0, 255)), o = 255 & (t[6] ? Yt(o) : dt(o, 0, 255)), {
376
+ return s = +t[1], n = +t[3], o = +t[5], s = 255 & (t[2] ? Ut(s) : ut(s, 0, 255)), n = 255 & (t[4] ? Ut(n) : ut(n, 0, 255)), o = 255 & (t[6] ? Ut(o) : ut(o, 0, 255)), {
377
377
  r: s,
378
378
  g: n,
379
379
  b: o,
@@ -384,49 +384,49 @@ function In(i) {
384
384
  function En(i) {
385
385
  return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${ht(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
386
386
  }
387
- const Fe = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Pt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
387
+ const ze = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Dt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
388
388
  function Fn(i, t, e) {
389
- const s = Pt(ht(i.r)), n = Pt(ht(i.g)), o = Pt(ht(i.b));
389
+ const s = Dt(ht(i.r)), n = Dt(ht(i.g)), o = Dt(ht(i.b));
390
390
  return {
391
- r: pt(Fe(s + e * (Pt(ht(t.r)) - s))),
392
- g: pt(Fe(n + e * (Pt(ht(t.g)) - n))),
393
- b: pt(Fe(o + e * (Pt(ht(t.b)) - o))),
391
+ r: bt(ze(s + e * (Dt(ht(t.r)) - s))),
392
+ g: bt(ze(n + e * (Dt(ht(t.g)) - n))),
393
+ b: bt(ze(o + e * (Dt(ht(t.b)) - o))),
394
394
  a: i.a + e * (t.a - i.a)
395
395
  };
396
396
  }
397
397
  function le(i, t, e) {
398
398
  if (i) {
399
- let s = Qe(i);
400
- s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = ti(s), i.r = s[0], i.g = s[1], i.b = s[2];
399
+ let s = Je(i);
400
+ s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = ei(s), i.r = s[0], i.g = s[1], i.b = s[2];
401
401
  }
402
402
  }
403
- function Ms(i, t) {
403
+ function Cs(i, t) {
404
404
  return i && Object.assign(t || {}, i);
405
405
  }
406
- function bi(i) {
406
+ function xi(i) {
407
407
  var t = { r: 0, g: 0, b: 0, a: 255 };
408
- return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = pt(i[3]))) : (t = Ms(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = pt(t.a)), t;
408
+ return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = bt(i[3]))) : (t = Cs(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = bt(t.a)), t;
409
409
  }
410
410
  function zn(i) {
411
411
  return i.charAt(0) === "r" ? In(i) : Pn(i);
412
412
  }
413
- class Qt {
413
+ class Jt {
414
414
  constructor(t) {
415
- if (t instanceof Qt)
415
+ if (t instanceof Jt)
416
416
  return t;
417
417
  const e = typeof t;
418
418
  let s;
419
- e === "object" ? s = bi(t) : e === "string" && (s = _n(t) || Ln(t) || zn(t)), this._rgb = s, this._valid = !!s;
419
+ e === "object" ? s = xi(t) : e === "string" && (s = _n(t) || Ln(t) || zn(t)), this._rgb = s, this._valid = !!s;
420
420
  }
421
421
  get valid() {
422
422
  return this._valid;
423
423
  }
424
424
  get rgb() {
425
- var t = Ms(this._rgb);
425
+ var t = Cs(this._rgb);
426
426
  return t && (t.a = ht(t.a)), t;
427
427
  }
428
428
  set rgb(t) {
429
- this._rgb = bi(t);
429
+ this._rgb = xi(t);
430
430
  }
431
431
  rgbString() {
432
432
  return this._valid ? En(this._rgb) : void 0;
@@ -450,17 +450,17 @@ class Qt {
450
450
  return t && (this._rgb = Fn(this._rgb, t._rgb, e)), this;
451
451
  }
452
452
  clone() {
453
- return new Qt(this.rgb);
453
+ return new Jt(this.rgb);
454
454
  }
455
455
  alpha(t) {
456
- return this._rgb.a = pt(t), this;
456
+ return this._rgb.a = bt(t), this;
457
457
  }
458
458
  clearer(t) {
459
459
  const e = this._rgb;
460
460
  return e.a *= 1 - t, this;
461
461
  }
462
462
  greyscale() {
463
- const t = this._rgb, e = ie(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
463
+ const t = this._rgb, e = se(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
464
464
  return t.r = t.g = t.b = e, this;
465
465
  }
466
466
  opaquer(t) {
@@ -493,10 +493,10 @@ const Bn = /* @__PURE__ */ (() => {
493
493
  let i = 0;
494
494
  return () => i++;
495
495
  })();
496
- function F(i) {
496
+ function z(i) {
497
497
  return i == null;
498
498
  }
499
- function W(i) {
499
+ function H(i) {
500
500
  if (Array.isArray && Array.isArray(i))
501
501
  return !0;
502
502
  const t = Object.prototype.toString.call(i);
@@ -508,7 +508,7 @@ function D(i) {
508
508
  function et(i) {
509
509
  return (typeof i == "number" || i instanceof Number) && isFinite(+i);
510
510
  }
511
- function it(i, t) {
511
+ function st(i, t) {
512
512
  return et(i) ? i : t;
513
513
  }
514
514
  function L(i, t) {
@@ -521,7 +521,7 @@ function I(i, t, e) {
521
521
  }
522
522
  function T(i, t, e, s) {
523
523
  let n, o, r;
524
- if (W(i))
524
+ if (H(i))
525
525
  for (o = i.length, n = 0; n < o; n++)
526
526
  t.call(e, i[n], n);
527
527
  else if (D(i))
@@ -538,7 +538,7 @@ function ve(i, t) {
538
538
  return !0;
539
539
  }
540
540
  function we(i) {
541
- if (W(i))
541
+ if (H(i))
542
542
  return i.map(we);
543
543
  if (D(i)) {
544
544
  const t = /* @__PURE__ */ Object.create(null), e = Object.keys(i), s = e.length;
@@ -549,7 +549,7 @@ function we(i) {
549
549
  }
550
550
  return i;
551
551
  }
552
- function Cs(i) {
552
+ function As(i) {
553
553
  return [
554
554
  "__proto__",
555
555
  "prototype",
@@ -557,13 +557,13 @@ function Cs(i) {
557
557
  ].indexOf(i) === -1;
558
558
  }
559
559
  function Wn(i, t, e, s) {
560
- if (!Cs(i))
560
+ if (!As(i))
561
561
  return;
562
562
  const n = t[i], o = e[i];
563
- D(n) && D(o) ? Jt(n, o, s) : t[i] = we(o);
563
+ D(n) && D(o) ? te(n, o, s) : t[i] = we(o);
564
564
  }
565
- function Jt(i, t, e) {
566
- const s = W(t) ? t : [
565
+ function te(i, t, e) {
566
+ const s = H(t) ? t : [
567
567
  t
568
568
  ], n = s.length;
569
569
  if (!D(i))
@@ -580,18 +580,18 @@ function Jt(i, t, e) {
580
580
  }
581
581
  return i;
582
582
  }
583
- function qt(i, t) {
584
- return Jt(i, t, {
583
+ function Gt(i, t) {
584
+ return te(i, t, {
585
585
  merger: Nn
586
586
  });
587
587
  }
588
588
  function Nn(i, t, e) {
589
- if (!Cs(i))
589
+ if (!As(i))
590
590
  return;
591
591
  const s = t[i], n = e[i];
592
- D(s) && D(n) ? qt(s, n) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = we(n));
592
+ D(s) && D(n) ? Gt(s, n) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = we(n));
593
593
  }
594
- const xi = {
594
+ const _i = {
595
595
  // Chart.helpers.core resolveObjectKey should resolve empty key to root object
596
596
  "": (i) => i,
597
597
  // default resolvers
@@ -616,13 +616,13 @@ function Vn(i) {
616
616
  return e;
617
617
  };
618
618
  }
619
- function te(i, t) {
620
- return (xi[t] || (xi[t] = Vn(t)))(i);
619
+ function ee(i, t) {
620
+ return (_i[t] || (_i[t] = Vn(t)))(i);
621
621
  }
622
- function ei(i) {
622
+ function ii(i) {
623
623
  return i.charAt(0).toUpperCase() + i.slice(1);
624
624
  }
625
- const ke = (i) => typeof i < "u", mt = (i) => typeof i == "function", _i = (i, t) => {
625
+ const ke = (i) => typeof i < "u", xt = (i) => typeof i == "function", yi = (i, t) => {
626
626
  if (i.size !== t.size)
627
627
  return !1;
628
628
  for (const e of i)
@@ -633,14 +633,14 @@ const ke = (i) => typeof i < "u", mt = (i) => typeof i == "function", _i = (i, t
633
633
  function $n(i) {
634
634
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
635
635
  }
636
- const E = Math.PI, $ = 2 * E, Se = Number.POSITIVE_INFINITY, Yn = E / 180, j = E / 2, _t = E / 4, yi = E * 2 / 3, As = Math.log10, Me = Math.sign;
636
+ const E = Math.PI, Y = 2 * E, Se = Number.POSITIVE_INFINITY, Yn = E / 180, V = E / 2, wt = E / 4, vi = E * 2 / 3, Ps = Math.log10, Me = Math.sign;
637
637
  function xe(i, t, e) {
638
638
  return Math.abs(i - t) < e;
639
639
  }
640
- function vi(i) {
640
+ function wi(i) {
641
641
  const t = Math.round(i);
642
642
  i = xe(i, t, i / 1e3) ? t : i;
643
- const e = Math.pow(10, Math.floor(As(i))), s = i / e;
643
+ const e = Math.pow(10, Math.floor(Ps(i))), s = i / e;
644
644
  return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * e;
645
645
  }
646
646
  function Un(i) {
@@ -665,13 +665,13 @@ function qn(i, t, e) {
665
665
  for (s = 0, n = i.length; s < n; s++)
666
666
  o = i[s][e], isNaN(o) || (t.min = Math.min(t.min, o), t.max = Math.max(t.max, o));
667
667
  }
668
- function ft(i) {
668
+ function gt(i) {
669
669
  return i * (E / 180);
670
670
  }
671
- function ii(i) {
671
+ function si(i) {
672
672
  return i * (180 / E);
673
673
  }
674
- function wi(i) {
674
+ function ki(i) {
675
675
  if (!et(i))
676
676
  return;
677
677
  let t = 1, e = 0;
@@ -679,10 +679,10 @@ function wi(i) {
679
679
  t *= 10, e++;
680
680
  return e;
681
681
  }
682
- function Ps(i, t) {
682
+ function Os(i, t) {
683
683
  const e = t.x - i.x, s = t.y - i.y, n = Math.sqrt(e * e + s * s);
684
684
  let o = Math.atan2(s, e);
685
- return o < -0.5 * E && (o += $), {
685
+ return o < -0.5 * E && (o += Y), {
686
686
  angle: o,
687
687
  distance: n
688
688
  };
@@ -691,9 +691,9 @@ function Gn(i, t) {
691
691
  return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
692
692
  }
693
693
  function Q(i) {
694
- return (i % $ + $) % $;
694
+ return (i % Y + Y) % Y;
695
695
  }
696
- function Os(i, t, e, s) {
696
+ function Ds(i, t, e, s) {
697
697
  const n = Q(i), o = Q(t), r = Q(e), a = Q(o - n), l = Q(r - n), c = Q(n - o), h = Q(n - r);
698
698
  return n === o || n === r || s && o === r || a > l && c < h;
699
699
  }
@@ -703,10 +703,10 @@ function tt(i, t, e) {
703
703
  function Zn(i) {
704
704
  return tt(i, -32768, 32767);
705
705
  }
706
- function Ut(i, t, e, s = 1e-6) {
706
+ function Xt(i, t, e, s = 1e-6) {
707
707
  return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s;
708
708
  }
709
- function si(i, t, e) {
709
+ function ni(i, t, e) {
710
710
  e = e || ((r) => i[r] < t);
711
711
  let s = i.length - 1, n = 0, o;
712
712
  for (; s - n > 1; )
@@ -716,10 +716,10 @@ function si(i, t, e) {
716
716
  hi: s
717
717
  };
718
718
  }
719
- const Ue = (i, t, e, s) => si(i, e, s ? (n) => {
719
+ const Xe = (i, t, e, s) => ni(i, e, s ? (n) => {
720
720
  const o = i[n][t];
721
721
  return o < e || o === e && i[n + 1][t] === e;
722
- } : (n) => i[n][t] < e), Qn = (i, t, e) => si(i, e, (s) => i[s][t] >= e);
722
+ } : (n) => i[n][t] < e), Qn = (i, t, e) => ni(i, e, (s) => i[s][t] >= e);
723
723
  function Jn(i, t, e) {
724
724
  let s = 0, n = i.length;
725
725
  for (; s < n && i[s] < t; )
@@ -728,7 +728,7 @@ function Jn(i, t, e) {
728
728
  n--;
729
729
  return s > 0 || n < i.length ? i.slice(s, n) : i;
730
730
  }
731
- const Ds = [
731
+ const Ts = [
732
732
  "push",
733
733
  "pop",
734
734
  "shift",
@@ -748,8 +748,8 @@ function to(i, t) {
748
748
  t
749
749
  ]
750
750
  }
751
- }), Ds.forEach((e) => {
752
- const s = "_onData" + ei(e), n = i[e];
751
+ }), Ts.forEach((e) => {
752
+ const s = "_onData" + ii(e), n = i[e];
753
753
  Object.defineProperty(i, e, {
754
754
  configurable: !0,
755
755
  enumerable: !1,
@@ -762,12 +762,12 @@ function to(i, t) {
762
762
  });
763
763
  });
764
764
  }
765
- function ki(i, t) {
765
+ function Si(i, t) {
766
766
  const e = i._chartjs;
767
767
  if (!e)
768
768
  return;
769
769
  const s = e.listeners, n = s.indexOf(t);
770
- n !== -1 && s.splice(n, 1), !(s.length > 0) && (Ds.forEach((o) => {
770
+ n !== -1 && s.splice(n, 1), !(s.length > 0) && (Ts.forEach((o) => {
771
771
  delete i[o];
772
772
  }), delete i._chartjs);
773
773
  }
@@ -775,15 +775,15 @@ function eo(i) {
775
775
  const t = new Set(i);
776
776
  return t.size === i.length ? i : Array.from(t);
777
777
  }
778
- const Ts = (function() {
778
+ const Ls = (function() {
779
779
  return typeof window > "u" ? function(i) {
780
780
  return i();
781
781
  } : window.requestAnimationFrame;
782
782
  })();
783
- function Ls(i, t) {
783
+ function Rs(i, t) {
784
784
  let e = [], s = !1;
785
785
  return function(...n) {
786
- e = n, s || (s = !0, Ts.call(window, () => {
786
+ e = n, s || (s = !0, Ls.call(window, () => {
787
787
  s = !1, i.apply(t, e);
788
788
  }));
789
789
  };
@@ -794,7 +794,7 @@ function io(i, t) {
794
794
  return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t;
795
795
  };
796
796
  }
797
- const Rs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, so = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t, ce = (i) => i === 0 || i === 1, Si = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * $ / e)), Mi = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * $ / e) + 1, Gt = {
797
+ const Is = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, so = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t, ce = (i) => i === 0 || i === 1, Mi = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * Y / e)), Ci = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * Y / e) + 1, Zt = {
798
798
  linear: (i) => i,
799
799
  easeInQuad: (i) => i * i,
800
800
  easeOutQuad: (i) => -i * (i - 2),
@@ -808,8 +808,8 @@ const Rs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z =
808
808
  easeInQuint: (i) => i * i * i * i * i,
809
809
  easeOutQuint: (i) => (i -= 1) * i * i * i * i + 1,
810
810
  easeInOutQuint: (i) => (i /= 0.5) < 1 ? 0.5 * i * i * i * i * i : 0.5 * ((i -= 2) * i * i * i * i + 2),
811
- easeInSine: (i) => -Math.cos(i * j) + 1,
812
- easeOutSine: (i) => Math.sin(i * j),
811
+ easeInSine: (i) => -Math.cos(i * V) + 1,
812
+ easeOutSine: (i) => Math.sin(i * V),
813
813
  easeInOutSine: (i) => -0.5 * (Math.cos(E * i) - 1),
814
814
  easeInExpo: (i) => i === 0 ? 0 : Math.pow(2, 10 * (i - 1)),
815
815
  easeOutExpo: (i) => i === 1 ? 1 : -Math.pow(2, -10 * i) + 1,
@@ -817,10 +817,10 @@ const Rs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z =
817
817
  easeInCirc: (i) => i >= 1 ? i : -(Math.sqrt(1 - i * i) - 1),
818
818
  easeOutCirc: (i) => Math.sqrt(1 - (i -= 1) * i),
819
819
  easeInOutCirc: (i) => (i /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - i * i) - 1) : 0.5 * (Math.sqrt(1 - (i -= 2) * i) + 1),
820
- easeInElastic: (i) => ce(i) ? i : Si(i, 0.075, 0.3),
821
- easeOutElastic: (i) => ce(i) ? i : Mi(i, 0.075, 0.3),
820
+ easeInElastic: (i) => ce(i) ? i : Mi(i, 0.075, 0.3),
821
+ easeOutElastic: (i) => ce(i) ? i : Ci(i, 0.075, 0.3),
822
822
  easeInOutElastic(i) {
823
- return ce(i) ? i : i < 0.5 ? 0.5 * Si(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Mi(i * 2 - 1, 0.1125, 0.45);
823
+ return ce(i) ? i : i < 0.5 ? 0.5 * Mi(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Ci(i * 2 - 1, 0.1125, 0.45);
824
824
  },
825
825
  easeInBack(i) {
826
826
  return i * i * ((1.70158 + 1) * i - 1.70158);
@@ -832,24 +832,24 @@ const Rs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", Z =
832
832
  let t = 1.70158;
833
833
  return (i /= 0.5) < 1 ? 0.5 * (i * i * (((t *= 1.525) + 1) * i - t)) : 0.5 * ((i -= 2) * i * (((t *= 1.525) + 1) * i + t) + 2);
834
834
  },
835
- easeInBounce: (i) => 1 - Gt.easeOutBounce(1 - i),
835
+ easeInBounce: (i) => 1 - Zt.easeOutBounce(1 - i),
836
836
  easeOutBounce(i) {
837
837
  return i < 1 / 2.75 ? 7.5625 * i * i : i < 2 / 2.75 ? 7.5625 * (i -= 1.5 / 2.75) * i + 0.75 : i < 2.5 / 2.75 ? 7.5625 * (i -= 2.25 / 2.75) * i + 0.9375 : 7.5625 * (i -= 2.625 / 2.75) * i + 0.984375;
838
838
  },
839
- easeInOutBounce: (i) => i < 0.5 ? Gt.easeInBounce(i * 2) * 0.5 : Gt.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
839
+ easeInOutBounce: (i) => i < 0.5 ? Zt.easeInBounce(i * 2) * 0.5 : Zt.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
840
840
  };
841
- function Is(i) {
841
+ function Es(i) {
842
842
  if (i && typeof i == "object") {
843
843
  const t = i.toString();
844
844
  return t === "[object CanvasPattern]" || t === "[object CanvasGradient]";
845
845
  }
846
846
  return !1;
847
847
  }
848
- function Ci(i) {
849
- return Is(i) ? i : new Qt(i);
848
+ function Ai(i) {
849
+ return Es(i) ? i : new Jt(i);
850
850
  }
851
- function ze(i) {
852
- return Is(i) ? i : new Qt(i).saturate(0.5).darken(0.1).hexString();
851
+ function Be(i) {
852
+ return Es(i) ? i : new Jt(i).saturate(0.5).darken(0.1).hexString();
853
853
  }
854
854
  const no = [
855
855
  "x",
@@ -934,19 +934,19 @@ function ao(i) {
934
934
  }
935
935
  });
936
936
  }
937
- const Ai = /* @__PURE__ */ new Map();
937
+ const Pi = /* @__PURE__ */ new Map();
938
938
  function lo(i, t) {
939
939
  t = t || {};
940
940
  const e = i + JSON.stringify(t);
941
- let s = Ai.get(e);
942
- return s || (s = new Intl.NumberFormat(i, t), Ai.set(e, s)), s;
941
+ let s = Pi.get(e);
942
+ return s || (s = new Intl.NumberFormat(i, t), Pi.set(e, s)), s;
943
943
  }
944
- function ni(i, t, e) {
944
+ function oi(i, t, e) {
945
945
  return lo(t, e).format(i);
946
946
  }
947
947
  const co = {
948
948
  values(i) {
949
- return W(i) ? i : "" + i;
949
+ return H(i) ? i : "" + i;
950
950
  },
951
951
  numeric(i, t, e) {
952
952
  if (i === 0)
@@ -957,19 +957,19 @@ const co = {
957
957
  const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
958
958
  (c < 1e-4 || c > 1e15) && (n = "scientific"), o = ho(i, e);
959
959
  }
960
- const r = As(Math.abs(o)), a = isNaN(r) ? 1 : Math.max(Math.min(-1 * Math.floor(r), 20), 0), l = {
960
+ const r = Ps(Math.abs(o)), a = isNaN(r) ? 1 : Math.max(Math.min(-1 * Math.floor(r), 20), 0), l = {
961
961
  notation: n,
962
962
  minimumFractionDigits: a,
963
963
  maximumFractionDigits: a
964
964
  };
965
- return Object.assign(l, this.options.ticks.format), ni(i, s, l);
965
+ return Object.assign(l, this.options.ticks.format), oi(i, s, l);
966
966
  }
967
967
  };
968
968
  function ho(i, t) {
969
969
  let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
970
970
  return Math.abs(e) >= 1 && i !== Math.floor(i) && (e = i - Math.floor(i)), e;
971
971
  }
972
- var Es = {
972
+ var Fs = {
973
973
  formatters: co
974
974
  };
975
975
  function fo(i) {
@@ -1016,7 +1016,7 @@ function fo(i) {
1016
1016
  autoSkip: !0,
1017
1017
  autoSkipPadding: 3,
1018
1018
  labelOffset: 0,
1019
- callback: Es.formatters.values,
1019
+ callback: Fs.formatters.values,
1020
1020
  minor: {},
1021
1021
  major: {},
1022
1022
  align: "center",
@@ -1036,8 +1036,8 @@ function fo(i) {
1036
1036
  _indexable: (t) => t !== "backdropPadding"
1037
1037
  });
1038
1038
  }
1039
- const St = /* @__PURE__ */ Object.create(null), Xe = /* @__PURE__ */ Object.create(null);
1040
- function Zt(i, t) {
1039
+ const Pt = /* @__PURE__ */ Object.create(null), Ke = /* @__PURE__ */ Object.create(null);
1040
+ function Qt(i, t) {
1041
1041
  if (!t)
1042
1042
  return i;
1043
1043
  const e = t.split(".");
@@ -1047,8 +1047,8 @@ function Zt(i, t) {
1047
1047
  }
1048
1048
  return i;
1049
1049
  }
1050
- function Be(i, t, e) {
1051
- return typeof t == "string" ? Jt(Zt(i, t), e) : Jt(Zt(i, ""), t);
1050
+ function He(i, t, e) {
1051
+ return typeof t == "string" ? te(Qt(i, t), e) : te(Qt(i, ""), t);
1052
1052
  }
1053
1053
  class uo {
1054
1054
  constructor(t, e) {
@@ -1064,26 +1064,26 @@ class uo {
1064
1064
  style: "normal",
1065
1065
  lineHeight: 1.2,
1066
1066
  weight: null
1067
- }, this.hover = {}, this.hoverBackgroundColor = (s, n) => ze(n.backgroundColor), this.hoverBorderColor = (s, n) => ze(n.borderColor), this.hoverColor = (s, n) => ze(n.color), this.indexAxis = "x", this.interaction = {
1067
+ }, this.hover = {}, this.hoverBackgroundColor = (s, n) => Be(n.backgroundColor), this.hoverBorderColor = (s, n) => Be(n.borderColor), this.hoverColor = (s, n) => Be(n.color), this.indexAxis = "x", this.interaction = {
1068
1068
  mode: "nearest",
1069
1069
  intersect: !0,
1070
1070
  includeInvisible: !1
1071
1071
  }, this.maintainAspectRatio = !0, this.onHover = null, this.onClick = null, this.parsing = !0, this.plugins = {}, this.responsive = !0, this.scale = void 0, this.scales = {}, this.showLine = !0, this.drawActiveElementsOnTop = !0, this.describe(t), this.apply(e);
1072
1072
  }
1073
1073
  set(t, e) {
1074
- return Be(this, t, e);
1074
+ return He(this, t, e);
1075
1075
  }
1076
1076
  get(t) {
1077
- return Zt(this, t);
1077
+ return Qt(this, t);
1078
1078
  }
1079
1079
  describe(t, e) {
1080
- return Be(Xe, t, e);
1080
+ return He(Ke, t, e);
1081
1081
  }
1082
1082
  override(t, e) {
1083
- return Be(St, t, e);
1083
+ return He(Pt, t, e);
1084
1084
  }
1085
1085
  route(t, e, s, n) {
1086
- const o = Zt(this, t), r = Zt(this, s), a = "_" + e;
1086
+ const o = Qt(this, t), r = Qt(this, s), a = "_" + e;
1087
1087
  Object.defineProperties(o, {
1088
1088
  [a]: {
1089
1089
  value: o[e],
@@ -1121,7 +1121,7 @@ var B = /* @__PURE__ */ new uo({
1121
1121
  fo
1122
1122
  ]);
1123
1123
  function go(i) {
1124
- return !i || F(i.size) || F(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
1124
+ return !i || z(i.size) || z(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
1125
1125
  }
1126
1126
  function Ae(i, t, e, s, n) {
1127
1127
  let o = t[n];
@@ -1135,11 +1135,11 @@ function po(i, t, e, s) {
1135
1135
  const a = e.length;
1136
1136
  let l, c, h, d, f;
1137
1137
  for (l = 0; l < a; l++)
1138
- if (d = e[l], d != null && !W(d))
1138
+ if (d = e[l], d != null && !H(d))
1139
1139
  r = Ae(i, n, o, r, d);
1140
- else if (W(d))
1140
+ else if (H(d))
1141
1141
  for (c = 0, h = d.length; c < h; c++)
1142
- f = d[c], f != null && !W(f) && (r = Ae(i, n, o, r, f));
1142
+ f = d[c], f != null && !H(f) && (r = Ae(i, n, o, r, f));
1143
1143
  i.restore();
1144
1144
  const u = o.length / 2;
1145
1145
  if (u > e.length) {
@@ -1149,60 +1149,60 @@ function po(i, t, e, s) {
1149
1149
  }
1150
1150
  return r;
1151
1151
  }
1152
- function yt(i, t, e) {
1152
+ function kt(i, t, e) {
1153
1153
  const s = i.currentDevicePixelRatio, n = e !== 0 ? Math.max(e / 2, 0.5) : 0;
1154
1154
  return Math.round((t - n) * s) / s + n;
1155
1155
  }
1156
- function Pi(i, t) {
1156
+ function Oi(i, t) {
1157
1157
  !t && !i || (t = t || i.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, i.width, i.height), t.restore());
1158
1158
  }
1159
- function Oi(i, t, e, s) {
1160
- Fs(i, t, e, s, null);
1159
+ function Di(i, t, e, s) {
1160
+ zs(i, t, e, s, null);
1161
1161
  }
1162
- function Fs(i, t, e, s, n) {
1162
+ function zs(i, t, e, s, n) {
1163
1163
  let o, r, a, l, c, h, d, f;
1164
- const u = t.pointStyle, g = t.rotation, p = t.radius;
1165
- let m = (g || 0) * Yn;
1164
+ const u = t.pointStyle, p = t.rotation, m = t.radius;
1165
+ let g = (p || 0) * Yn;
1166
1166
  if (u && typeof u == "object" && (o = u.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
1167
- i.save(), i.translate(e, s), i.rotate(m), i.drawImage(u, -u.width / 2, -u.height / 2, u.width, u.height), i.restore();
1167
+ i.save(), i.translate(e, s), i.rotate(g), i.drawImage(u, -u.width / 2, -u.height / 2, u.width, u.height), i.restore();
1168
1168
  return;
1169
1169
  }
1170
- if (!(isNaN(p) || p <= 0)) {
1170
+ if (!(isNaN(m) || m <= 0)) {
1171
1171
  switch (i.beginPath(), u) {
1172
1172
  // Default includes circle
1173
1173
  default:
1174
- n ? i.ellipse(e, s, n / 2, p, 0, 0, $) : i.arc(e, s, p, 0, $), i.closePath();
1174
+ n ? i.ellipse(e, s, n / 2, m, 0, 0, Y) : i.arc(e, s, m, 0, Y), i.closePath();
1175
1175
  break;
1176
1176
  case "triangle":
1177
- h = n ? n / 2 : p, i.moveTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += yi, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += yi, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), i.closePath();
1177
+ h = n ? n / 2 : m, i.moveTo(e + Math.sin(g) * h, s - Math.cos(g) * m), g += vi, i.lineTo(e + Math.sin(g) * h, s - Math.cos(g) * m), g += vi, i.lineTo(e + Math.sin(g) * h, s - Math.cos(g) * m), i.closePath();
1178
1178
  break;
1179
1179
  case "rectRounded":
1180
- c = p * 0.516, l = p - c, r = Math.cos(m + _t) * l, d = Math.cos(m + _t) * (n ? n / 2 - c : l), a = Math.sin(m + _t) * l, f = Math.sin(m + _t) * (n ? n / 2 - c : l), i.arc(e - d, s - a, c, m - E, m - j), i.arc(e + f, s - r, c, m - j, m), i.arc(e + d, s + a, c, m, m + j), i.arc(e - f, s + r, c, m + j, m + E), i.closePath();
1180
+ c = m * 0.516, l = m - c, r = Math.cos(g + wt) * l, d = Math.cos(g + wt) * (n ? n / 2 - c : l), a = Math.sin(g + wt) * l, f = Math.sin(g + wt) * (n ? n / 2 - c : l), i.arc(e - d, s - a, c, g - E, g - V), i.arc(e + f, s - r, c, g - V, g), i.arc(e + d, s + a, c, g, g + V), i.arc(e - f, s + r, c, g + V, g + E), i.closePath();
1181
1181
  break;
1182
1182
  case "rect":
1183
- if (!g) {
1184
- l = Math.SQRT1_2 * p, h = n ? n / 2 : l, i.rect(e - h, s - l, 2 * h, 2 * l);
1183
+ if (!p) {
1184
+ l = Math.SQRT1_2 * m, h = n ? n / 2 : l, i.rect(e - h, s - l, 2 * h, 2 * l);
1185
1185
  break;
1186
1186
  }
1187
- m += _t;
1187
+ g += wt;
1188
1188
  /* falls through */
1189
1189
  case "rectRot":
1190
- d = Math.cos(m) * (n ? n / 2 : p), r = Math.cos(m) * p, a = Math.sin(m) * p, f = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - a), i.lineTo(e + f, s - r), i.lineTo(e + d, s + a), i.lineTo(e - f, s + r), i.closePath();
1190
+ d = Math.cos(g) * (n ? n / 2 : m), r = Math.cos(g) * m, a = Math.sin(g) * m, f = Math.sin(g) * (n ? n / 2 : m), i.moveTo(e - d, s - a), i.lineTo(e + f, s - r), i.lineTo(e + d, s + a), i.lineTo(e - f, s + r), i.closePath();
1191
1191
  break;
1192
1192
  case "crossRot":
1193
- m += _t;
1193
+ g += wt;
1194
1194
  /* falls through */
1195
1195
  case "cross":
1196
- d = Math.cos(m) * (n ? n / 2 : p), r = Math.cos(m) * p, a = Math.sin(m) * p, f = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - a), i.lineTo(e + d, s + a), i.moveTo(e + f, s - r), i.lineTo(e - f, s + r);
1196
+ d = Math.cos(g) * (n ? n / 2 : m), r = Math.cos(g) * m, a = Math.sin(g) * m, f = Math.sin(g) * (n ? n / 2 : m), i.moveTo(e - d, s - a), i.lineTo(e + d, s + a), i.moveTo(e + f, s - r), i.lineTo(e - f, s + r);
1197
1197
  break;
1198
1198
  case "star":
1199
- d = Math.cos(m) * (n ? n / 2 : p), r = Math.cos(m) * p, a = Math.sin(m) * p, f = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - a), i.lineTo(e + d, s + a), i.moveTo(e + f, s - r), i.lineTo(e - f, s + r), m += _t, d = Math.cos(m) * (n ? n / 2 : p), r = Math.cos(m) * p, a = Math.sin(m) * p, f = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - a), i.lineTo(e + d, s + a), i.moveTo(e + f, s - r), i.lineTo(e - f, s + r);
1199
+ d = Math.cos(g) * (n ? n / 2 : m), r = Math.cos(g) * m, a = Math.sin(g) * m, f = Math.sin(g) * (n ? n / 2 : m), i.moveTo(e - d, s - a), i.lineTo(e + d, s + a), i.moveTo(e + f, s - r), i.lineTo(e - f, s + r), g += wt, d = Math.cos(g) * (n ? n / 2 : m), r = Math.cos(g) * m, a = Math.sin(g) * m, f = Math.sin(g) * (n ? n / 2 : m), i.moveTo(e - d, s - a), i.lineTo(e + d, s + a), i.moveTo(e + f, s - r), i.lineTo(e - f, s + r);
1200
1200
  break;
1201
1201
  case "line":
1202
- r = n ? n / 2 : Math.cos(m) * p, a = Math.sin(m) * p, i.moveTo(e - r, s - a), i.lineTo(e + r, s + a);
1202
+ r = n ? n / 2 : Math.cos(g) * m, a = Math.sin(g) * m, i.moveTo(e - r, s - a), i.lineTo(e + r, s + a);
1203
1203
  break;
1204
1204
  case "dash":
1205
- i.moveTo(e, s), i.lineTo(e + Math.cos(m) * (n ? n / 2 : p), s + Math.sin(m) * p);
1205
+ i.moveTo(e, s), i.lineTo(e + Math.cos(g) * (n ? n / 2 : m), s + Math.sin(g) * m);
1206
1206
  break;
1207
1207
  case !1:
1208
1208
  i.closePath();
@@ -1211,17 +1211,17 @@ function Fs(i, t, e, s, n) {
1211
1211
  i.fill(), t.borderWidth > 0 && i.stroke();
1212
1212
  }
1213
1213
  }
1214
- function Rt(i, t, e) {
1214
+ function It(i, t, e) {
1215
1215
  return e = e || 0.5, !t || i && i.x > t.left - e && i.x < t.right + e && i.y > t.top - e && i.y < t.bottom + e;
1216
1216
  }
1217
- function oi(i, t) {
1217
+ function ri(i, t) {
1218
1218
  i.save(), i.beginPath(), i.rect(t.left, t.top, t.right - t.left, t.bottom - t.top), i.clip();
1219
1219
  }
1220
- function ri(i) {
1220
+ function ai(i) {
1221
1221
  i.restore();
1222
1222
  }
1223
1223
  function mo(i, t) {
1224
- t.translation && i.translate(t.translation[0], t.translation[1]), F(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline);
1224
+ t.translation && i.translate(t.translation[0], t.translation[1]), z(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline);
1225
1225
  }
1226
1226
  function bo(i, t, e, s, n) {
1227
1227
  if (n.strikethrough || n.underline) {
@@ -1233,18 +1233,18 @@ function xo(i, t) {
1233
1233
  const e = i.fillStyle;
1234
1234
  i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
1235
1235
  }
1236
- function Ft(i, t, e, s, n, o = {}) {
1237
- const r = W(t) ? t : [
1236
+ function zt(i, t, e, s, n, o = {}) {
1237
+ const r = H(t) ? t : [
1238
1238
  t
1239
1239
  ], a = o.strokeWidth > 0 && o.strokeColor !== "";
1240
1240
  let l, c;
1241
1241
  for (i.save(), i.font = n.string, mo(i, o), l = 0; l < r.length; ++l)
1242
- c = r[l], o.backdrop && xo(i, o.backdrop), a && (o.strokeColor && (i.strokeStyle = o.strokeColor), F(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), bo(i, e, s, c, o), s += Number(n.lineHeight);
1242
+ c = r[l], o.backdrop && xo(i, o.backdrop), a && (o.strokeColor && (i.strokeStyle = o.strokeColor), z(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), bo(i, e, s, c, o), s += Number(n.lineHeight);
1243
1243
  i.restore();
1244
1244
  }
1245
1245
  function Pe(i, t) {
1246
1246
  const { x: e, y: s, w: n, h: o, radius: r } = t;
1247
- i.arc(e + r.topLeft, s + r.topLeft, r.topLeft, 1.5 * E, E, !0), i.lineTo(e, s + o - r.bottomLeft), i.arc(e + r.bottomLeft, s + o - r.bottomLeft, r.bottomLeft, E, j, !0), i.lineTo(e + n - r.bottomRight, s + o), i.arc(e + n - r.bottomRight, s + o - r.bottomRight, r.bottomRight, j, 0, !0), i.lineTo(e + n, s + r.topRight), i.arc(e + n - r.topRight, s + r.topRight, r.topRight, 0, -j, !0), i.lineTo(e + r.topLeft, s);
1247
+ i.arc(e + r.topLeft, s + r.topLeft, r.topLeft, 1.5 * E, E, !0), i.lineTo(e, s + o - r.bottomLeft), i.arc(e + r.bottomLeft, s + o - r.bottomLeft, r.bottomLeft, E, V, !0), i.lineTo(e + n - r.bottomRight, s + o), i.arc(e + n - r.bottomRight, s + o - r.bottomRight, r.bottomRight, V, 0, !0), i.lineTo(e + n, s + r.topRight), i.arc(e + n - r.topRight, s + r.topRight, r.topRight, 0, -V, !0), i.lineTo(e + r.topLeft, s);
1248
1248
  }
1249
1249
  const _o = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, yo = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
1250
1250
  function vo(i, t) {
@@ -1261,22 +1261,22 @@ function vo(i, t) {
1261
1261
  return t * i;
1262
1262
  }
1263
1263
  const wo = (i) => +i || 0;
1264
- function ai(i, t) {
1264
+ function li(i, t) {
1265
1265
  const e = {}, s = D(t), n = s ? Object.keys(t) : t, o = D(i) ? s ? (r) => L(i[r], i[t[r]]) : (r) => i[r] : () => i;
1266
1266
  for (const r of n)
1267
1267
  e[r] = wo(o(r));
1268
1268
  return e;
1269
1269
  }
1270
1270
  function ko(i) {
1271
- return ai(i, {
1271
+ return li(i, {
1272
1272
  top: "y",
1273
1273
  right: "x",
1274
1274
  bottom: "y",
1275
1275
  left: "x"
1276
1276
  });
1277
1277
  }
1278
- function It(i) {
1279
- return ai(i, [
1278
+ function Et(i) {
1279
+ return li(i, [
1280
1280
  "topLeft",
1281
1281
  "topRight",
1282
1282
  "bottomLeft",
@@ -1287,7 +1287,7 @@ function X(i) {
1287
1287
  const t = ko(i);
1288
1288
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1289
1289
  }
1290
- function V(i, t) {
1290
+ function $(i, t) {
1291
1291
  i = i || {}, t = t || B.font;
1292
1292
  let e = L(i.size, t.size);
1293
1293
  typeof e == "string" && (e = parseInt(e, 10));
@@ -1316,14 +1316,14 @@ function So(i, t, e) {
1316
1316
  max: r(n, o)
1317
1317
  };
1318
1318
  }
1319
- function Mt(i, t) {
1319
+ function Ot(i, t) {
1320
1320
  return Object.assign(Object.create(i), t);
1321
1321
  }
1322
- function li(i, t = [
1322
+ function ci(i, t = [
1323
1323
  ""
1324
1324
  ], e, s, n = () => i[0]) {
1325
1325
  const o = e || i;
1326
- typeof s > "u" && (s = Ws("_fallback", i));
1326
+ typeof s > "u" && (s = Ns("_fallback", i));
1327
1327
  const r = {
1328
1328
  [Symbol.toStringTag]: "Object",
1329
1329
  _cacheable: !0,
@@ -1331,7 +1331,7 @@ function li(i, t = [
1331
1331
  _rootScopes: o,
1332
1332
  _fallback: s,
1333
1333
  _getTarget: n,
1334
- override: (a) => li([
1334
+ override: (a) => ci([
1335
1335
  a,
1336
1336
  ...i
1337
1337
  ], t, o, s)
@@ -1347,7 +1347,7 @@ function li(i, t = [
1347
1347
  * A trap for getting property values.
1348
1348
  */
1349
1349
  get(a, l) {
1350
- return Bs(a, l, () => Lo(l, t, i, a));
1350
+ return Hs(a, l, () => Lo(l, t, i, a));
1351
1351
  },
1352
1352
  /**
1353
1353
  * A trap for Object.getOwnPropertyDescriptor.
@@ -1366,13 +1366,13 @@ function li(i, t = [
1366
1366
  * A trap for the in operator.
1367
1367
  */
1368
1368
  has(a, l) {
1369
- return Ti(a).includes(l);
1369
+ return Li(a).includes(l);
1370
1370
  },
1371
1371
  /**
1372
1372
  * A trap for Object.getOwnPropertyNames and Object.getOwnPropertySymbols.
1373
1373
  */
1374
1374
  ownKeys(a) {
1375
- return Ti(a);
1375
+ return Li(a);
1376
1376
  },
1377
1377
  /**
1378
1378
  * A trap for setting property values.
@@ -1383,16 +1383,16 @@ function li(i, t = [
1383
1383
  }
1384
1384
  });
1385
1385
  }
1386
- function zt(i, t, e, s) {
1386
+ function Bt(i, t, e, s) {
1387
1387
  const n = {
1388
1388
  _cacheable: !1,
1389
1389
  _proxy: i,
1390
1390
  _context: t,
1391
1391
  _subProxy: e,
1392
1392
  _stack: /* @__PURE__ */ new Set(),
1393
- _descriptors: zs(i, s),
1394
- setContext: (o) => zt(i, o, e, s),
1395
- override: (o) => zt(i.override(o), t, e, s)
1393
+ _descriptors: Bs(i, s),
1394
+ setContext: (o) => Bt(i, o, e, s),
1395
+ override: (o) => Bt(i.override(o), t, e, s)
1396
1396
  };
1397
1397
  return new Proxy(n, {
1398
1398
  /**
@@ -1405,7 +1405,7 @@ function zt(i, t, e, s) {
1405
1405
  * A trap for getting property values.
1406
1406
  */
1407
1407
  get(o, r, a) {
1408
- return Bs(o, r, () => Co(o, r, a));
1408
+ return Hs(o, r, () => Co(o, r, a));
1409
1409
  },
1410
1410
  /**
1411
1411
  * A trap for Object.getOwnPropertyDescriptor.
@@ -1443,7 +1443,7 @@ function zt(i, t, e, s) {
1443
1443
  }
1444
1444
  });
1445
1445
  }
1446
- function zs(i, t = {
1446
+ function Bs(i, t = {
1447
1447
  scriptable: !0,
1448
1448
  indexable: !0
1449
1449
  }) {
@@ -1452,12 +1452,12 @@ function zs(i, t = {
1452
1452
  allKeys: n,
1453
1453
  scriptable: e,
1454
1454
  indexable: s,
1455
- isScriptable: mt(e) ? e : () => e,
1456
- isIndexable: mt(s) ? s : () => s
1455
+ isScriptable: xt(e) ? e : () => e,
1456
+ isIndexable: xt(s) ? s : () => s
1457
1457
  };
1458
1458
  }
1459
- const Mo = (i, t) => i ? i + ei(t) : t, ci = (i, t) => D(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1460
- function Bs(i, t, e) {
1459
+ const Mo = (i, t) => i ? i + ii(t) : t, hi = (i, t) => D(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1460
+ function Hs(i, t, e) {
1461
1461
  if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
1462
1462
  return i[t];
1463
1463
  const s = e();
@@ -1466,7 +1466,7 @@ function Bs(i, t, e) {
1466
1466
  function Co(i, t, e) {
1467
1467
  const { _proxy: s, _context: n, _subProxy: o, _descriptors: r } = i;
1468
1468
  let a = s[t];
1469
- return mt(a) && r.isScriptable(t) && (a = Ao(t, a, i, e)), W(a) && a.length && (a = Po(t, a, i, r.isIndexable)), ci(t, a) && (a = zt(a, n, o && o[t], r)), a;
1469
+ return xt(a) && r.isScriptable(t) && (a = Ao(t, a, i, e)), H(a) && a.length && (a = Po(t, a, i, r.isIndexable)), hi(t, a) && (a = Bt(a, n, o && o[t], r)), a;
1470
1470
  }
1471
1471
  function Ao(i, t, e, s) {
1472
1472
  const { _proxy: n, _context: o, _subProxy: r, _stack: a } = e;
@@ -1474,7 +1474,7 @@ function Ao(i, t, e, s) {
1474
1474
  throw new Error("Recursion detected: " + Array.from(a).join("->") + "->" + i);
1475
1475
  a.add(i);
1476
1476
  let l = t(o, r || s);
1477
- return a.delete(i), ci(i, l) && (l = hi(n._scopes, n, i, l)), l;
1477
+ return a.delete(i), hi(i, l) && (l = di(n._scopes, n, i, l)), l;
1478
1478
  }
1479
1479
  function Po(i, t, e, s) {
1480
1480
  const { _proxy: n, _context: o, _subProxy: r, _descriptors: a } = e;
@@ -1484,22 +1484,22 @@ function Po(i, t, e, s) {
1484
1484
  const l = t, c = n._scopes.filter((h) => h !== l);
1485
1485
  t = [];
1486
1486
  for (const h of l) {
1487
- const d = hi(c, n, i, h);
1488
- t.push(zt(d, o, r && r[i], a));
1487
+ const d = di(c, n, i, h);
1488
+ t.push(Bt(d, o, r && r[i], a));
1489
1489
  }
1490
1490
  }
1491
1491
  return t;
1492
1492
  }
1493
- function Hs(i, t, e) {
1494
- return mt(i) ? i(t, e) : i;
1493
+ function Ws(i, t, e) {
1494
+ return xt(i) ? i(t, e) : i;
1495
1495
  }
1496
- const Oo = (i, t) => i === !0 ? t : typeof i == "string" ? te(t, i) : void 0;
1496
+ const Oo = (i, t) => i === !0 ? t : typeof i == "string" ? ee(t, i) : void 0;
1497
1497
  function Do(i, t, e, s, n) {
1498
1498
  for (const o of t) {
1499
1499
  const r = Oo(e, o);
1500
1500
  if (r) {
1501
1501
  i.add(r);
1502
- const a = Hs(r._fallback, e, n);
1502
+ const a = Ws(r._fallback, e, n);
1503
1503
  if (typeof a < "u" && a !== e && a !== s)
1504
1504
  return a;
1505
1505
  } else if (r === !1 && typeof s < "u" && e !== s)
@@ -1507,18 +1507,18 @@ function Do(i, t, e, s, n) {
1507
1507
  }
1508
1508
  return !1;
1509
1509
  }
1510
- function hi(i, t, e, s) {
1511
- const n = t._rootScopes, o = Hs(t._fallback, e, s), r = [
1510
+ function di(i, t, e, s) {
1511
+ const n = t._rootScopes, o = Ws(t._fallback, e, s), r = [
1512
1512
  ...i,
1513
1513
  ...n
1514
1514
  ], a = /* @__PURE__ */ new Set();
1515
1515
  a.add(s);
1516
- let l = Di(a, r, e, o || e, s);
1517
- return l === null || typeof o < "u" && o !== e && (l = Di(a, r, o, l, s), l === null) ? !1 : li(Array.from(a), [
1516
+ let l = Ti(a, r, e, o || e, s);
1517
+ return l === null || typeof o < "u" && o !== e && (l = Ti(a, r, o, l, s), l === null) ? !1 : ci(Array.from(a), [
1518
1518
  ""
1519
1519
  ], n, o, () => To(t, e, s));
1520
1520
  }
1521
- function Di(i, t, e, s, n) {
1521
+ function Ti(i, t, e, s, n) {
1522
1522
  for (; e; )
1523
1523
  e = Do(i, t, e, s, n);
1524
1524
  return e;
@@ -1527,15 +1527,15 @@ function To(i, t, e) {
1527
1527
  const s = i._getTarget();
1528
1528
  t in s || (s[t] = {});
1529
1529
  const n = s[t];
1530
- return W(n) && D(e) ? e : n || {};
1530
+ return H(n) && D(e) ? e : n || {};
1531
1531
  }
1532
1532
  function Lo(i, t, e, s) {
1533
1533
  let n;
1534
1534
  for (const o of t)
1535
- if (n = Ws(Mo(o, i), e), typeof n < "u")
1536
- return ci(i, n) ? hi(e, s, i, n) : n;
1535
+ if (n = Ns(Mo(o, i), e), typeof n < "u")
1536
+ return hi(i, n) ? di(e, s, i, n) : n;
1537
1537
  }
1538
- function Ws(i, t) {
1538
+ function Ns(i, t) {
1539
1539
  for (const e of t) {
1540
1540
  if (!e)
1541
1541
  continue;
@@ -1544,7 +1544,7 @@ function Ws(i, t) {
1544
1544
  return s;
1545
1545
  }
1546
1546
  }
1547
- function Ti(i) {
1547
+ function Li(i) {
1548
1548
  let t = i._keys;
1549
1549
  return t || (t = i._keys = Ro(i._scopes)), t;
1550
1550
  }
@@ -1560,14 +1560,14 @@ function Io(i, t, e, s) {
1560
1560
  let a, l, c, h;
1561
1561
  for (a = 0, l = s; a < l; ++a)
1562
1562
  c = a + e, h = t[c], r[a] = {
1563
- r: n.parse(te(h, o), c)
1563
+ r: n.parse(ee(h, o), c)
1564
1564
  };
1565
1565
  return r;
1566
1566
  }
1567
- function di() {
1567
+ function fi() {
1568
1568
  return typeof window < "u" && typeof document < "u";
1569
1569
  }
1570
- function fi(i) {
1570
+ function ui(i) {
1571
1571
  let t = i.parentNode;
1572
1572
  return t && t.toString() === "[object ShadowRoot]" && (t = t.host), t;
1573
1573
  }
@@ -1585,7 +1585,7 @@ const Fo = [
1585
1585
  "bottom",
1586
1586
  "left"
1587
1587
  ];
1588
- function kt(i, t, e) {
1588
+ function At(i, t, e) {
1589
1589
  const s = {};
1590
1590
  e = e ? "-" + e : "";
1591
1591
  for (let n = 0; n < 4; n++) {
@@ -1610,24 +1610,24 @@ function Bo(i, t) {
1610
1610
  box: r
1611
1611
  };
1612
1612
  }
1613
- function wt(i, t) {
1613
+ function Ct(i, t) {
1614
1614
  if ("native" in i)
1615
1615
  return i;
1616
- const { canvas: e, currentDevicePixelRatio: s } = t, n = Le(e), o = n.boxSizing === "border-box", r = kt(n, "padding"), a = kt(n, "border", "width"), { x: l, y: c, box: h } = Bo(i, e), d = r.left + (h && a.left), f = r.top + (h && a.top);
1617
- let { width: u, height: g } = t;
1618
- return o && (u -= r.width + a.width, g -= r.height + a.height), {
1616
+ const { canvas: e, currentDevicePixelRatio: s } = t, n = Le(e), o = n.boxSizing === "border-box", r = At(n, "padding"), a = At(n, "border", "width"), { x: l, y: c, box: h } = Bo(i, e), d = r.left + (h && a.left), f = r.top + (h && a.top);
1617
+ let { width: u, height: p } = t;
1618
+ return o && (u -= r.width + a.width, p -= r.height + a.height), {
1619
1619
  x: Math.round((l - d) / u * e.width / s),
1620
- y: Math.round((c - f) / g * e.height / s)
1620
+ y: Math.round((c - f) / p * e.height / s)
1621
1621
  };
1622
1622
  }
1623
1623
  function Ho(i, t, e) {
1624
1624
  let s, n;
1625
1625
  if (t === void 0 || e === void 0) {
1626
- const o = i && fi(i);
1626
+ const o = i && ui(i);
1627
1627
  if (!o)
1628
1628
  t = i.clientWidth, e = i.clientHeight;
1629
1629
  else {
1630
- const r = o.getBoundingClientRect(), a = Le(o), l = kt(a, "border", "width"), c = kt(a, "padding");
1630
+ const r = o.getBoundingClientRect(), a = Le(o), l = At(a, "border", "width"), c = At(a, "padding");
1631
1631
  t = r.width - c.width - l.width, e = r.height - c.height - l.height, s = Oe(a.maxWidth, o, "clientWidth"), n = Oe(a.maxHeight, o, "clientHeight");
1632
1632
  }
1633
1633
  }
@@ -1638,22 +1638,22 @@ function Ho(i, t, e) {
1638
1638
  maxHeight: n || Se
1639
1639
  };
1640
1640
  }
1641
- const ut = (i) => Math.round(i * 10) / 10;
1641
+ const pt = (i) => Math.round(i * 10) / 10;
1642
1642
  function Wo(i, t, e, s) {
1643
- const n = Le(i), o = kt(n, "margin"), r = Oe(n.maxWidth, i, "clientWidth") || Se, a = Oe(n.maxHeight, i, "clientHeight") || Se, l = Ho(i, t, e);
1643
+ const n = Le(i), o = At(n, "margin"), r = Oe(n.maxWidth, i, "clientWidth") || Se, a = Oe(n.maxHeight, i, "clientHeight") || Se, l = Ho(i, t, e);
1644
1644
  let { width: c, height: h } = l;
1645
1645
  if (n.boxSizing === "content-box") {
1646
- const f = kt(n, "border", "width"), u = kt(n, "padding");
1646
+ const f = At(n, "border", "width"), u = At(n, "padding");
1647
1647
  c -= u.width + f.width, h -= u.height + f.height;
1648
1648
  }
1649
- return c = Math.max(0, c - o.width), h = Math.max(0, s ? c / s : h - o.height), c = ut(Math.min(c, r, l.maxWidth)), h = ut(Math.min(h, a, l.maxHeight)), c && !h && (h = ut(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && h > l.height && (h = l.height, c = ut(Math.floor(h * s))), {
1649
+ return c = Math.max(0, c - o.width), h = Math.max(0, s ? c / s : h - o.height), c = pt(Math.min(c, r, l.maxWidth)), h = pt(Math.min(h, a, l.maxHeight)), c && !h && (h = pt(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && h > l.height && (h = l.height, c = pt(Math.floor(h * s))), {
1650
1650
  width: c,
1651
1651
  height: h
1652
1652
  };
1653
1653
  }
1654
- function Li(i, t, e) {
1655
- const s = t || 1, n = ut(i.height * s), o = ut(i.width * s);
1656
- i.height = ut(i.height), i.width = ut(i.width);
1654
+ function Ri(i, t, e) {
1655
+ const s = t || 1, n = pt(i.height * s), o = pt(i.width * s);
1656
+ i.height = pt(i.height), i.width = pt(i.width);
1657
1657
  const r = i.canvas;
1658
1658
  return r.style && (e || !r.style.height && !r.style.width) && (r.style.height = `${i.height}px`, r.style.width = `${i.width}px`), i.currentDevicePixelRatio !== s || r.height !== n || r.width !== o ? (i.currentDevicePixelRatio = s, r.height = n, r.width = o, i.ctx.setTransform(s, 0, 0, s, 0, 0), !0) : !1;
1659
1659
  }
@@ -1665,12 +1665,12 @@ const No = (function() {
1665
1665
  return i = !0, !1;
1666
1666
  }
1667
1667
  };
1668
- di() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1668
+ fi() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1669
1669
  } catch {
1670
1670
  }
1671
1671
  return i;
1672
1672
  })();
1673
- function Ri(i, t) {
1673
+ function Ii(i, t) {
1674
1674
  const e = Eo(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
1675
1675
  return s ? +s[1] : void 0;
1676
1676
  }
@@ -1710,17 +1710,17 @@ const jo = function(i, t) {
1710
1710
  }
1711
1711
  };
1712
1712
  };
1713
- function Et(i, t, e) {
1713
+ function Ft(i, t, e) {
1714
1714
  return i ? jo(t, e) : Vo();
1715
1715
  }
1716
- function Ns(i, t) {
1716
+ function js(i, t) {
1717
1717
  let e, s;
1718
1718
  (t === "ltr" || t === "rtl") && (e = i.canvas.style, s = [
1719
1719
  e.getPropertyValue("direction"),
1720
1720
  e.getPropertyPriority("direction")
1721
1721
  ], e.setProperty("direction", t, "important"), i.prevTextDirection = s);
1722
1722
  }
1723
- function js(i, t) {
1723
+ function Vs(i, t) {
1724
1724
  t !== void 0 && (delete i.prevTextDirection, i.canvas.style.setProperty("direction", t[0], t[1]));
1725
1725
  }
1726
1726
  function de(i, t, e) {
@@ -1761,7 +1761,7 @@ class Uo {
1761
1761
  }));
1762
1762
  }
1763
1763
  _refresh() {
1764
- this._request || (this._running = !0, this._request = Ts.call(window, () => {
1764
+ this._request || (this._running = !0, this._request = Ls.call(window, () => {
1765
1765
  this._update(), this._request = null, this._running && this._refresh();
1766
1766
  }));
1767
1767
  }
@@ -1824,12 +1824,12 @@ class Uo {
1824
1824
  }
1825
1825
  }
1826
1826
  var at = /* @__PURE__ */ new Uo();
1827
- const Ii = "transparent", Xo = {
1827
+ const Ei = "transparent", Xo = {
1828
1828
  boolean(i, t, e) {
1829
1829
  return e > 0.5 ? t : i;
1830
1830
  },
1831
1831
  color(i, t, e) {
1832
- const s = Ci(i || Ii), n = s.valid && Ci(t || Ii);
1832
+ const s = Ai(i || Ei), n = s.valid && Ai(t || Ei);
1833
1833
  return n && n.valid ? n.mix(s, e).hexString() : t;
1834
1834
  },
1835
1835
  number(i, t, e) {
@@ -1850,7 +1850,7 @@ class Ko {
1850
1850
  o,
1851
1851
  n
1852
1852
  ]);
1853
- this._active = !0, this._fn = t.fn || Xo[t.type || typeof r], this._easing = Gt[t.easing] || Gt.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = r, this._to = n, this._promises = void 0;
1853
+ this._active = !0, this._fn = t.fn || Xo[t.type || typeof r], this._easing = Zt[t.easing] || Zt.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = r, this._to = n, this._promises = void 0;
1854
1854
  }
1855
1855
  active() {
1856
1856
  return this._active;
@@ -1902,7 +1902,7 @@ class Ko {
1902
1902
  s[n][e]();
1903
1903
  }
1904
1904
  }
1905
- class Vs {
1905
+ class $s {
1906
1906
  constructor(t, e) {
1907
1907
  this._chart = t, this._properties = /* @__PURE__ */ new Map(), this.configure(e);
1908
1908
  }
@@ -1917,7 +1917,7 @@ class Vs {
1917
1917
  const r = {};
1918
1918
  for (const a of e)
1919
1919
  r[a] = o[a];
1920
- (W(o.properties) && o.properties || [
1920
+ (H(o.properties) && o.properties || [
1921
1921
  n
1922
1922
  ]).forEach((a) => {
1923
1923
  (a === n || !s.has(a)) && s.set(a, r);
@@ -1993,7 +1993,7 @@ function Go(i, t) {
1993
1993
  $animations: {}
1994
1994
  })), e;
1995
1995
  }
1996
- function Ei(i, t) {
1996
+ function Fi(i, t) {
1997
1997
  const e = i && i.options || {}, s = e.reverse, n = e.min === void 0 ? t : 0, o = e.max === void 0 ? t : 0;
1998
1998
  return {
1999
1999
  start: s ? o : n,
@@ -2003,7 +2003,7 @@ function Ei(i, t) {
2003
2003
  function Zo(i, t, e) {
2004
2004
  if (e === !1)
2005
2005
  return !1;
2006
- const s = Ei(i, e), n = Ei(t, e);
2006
+ const s = Fi(i, e), n = Fi(t, e);
2007
2007
  return {
2008
2008
  top: n.end,
2009
2009
  right: s.end,
@@ -2021,14 +2021,14 @@ function Qo(i) {
2021
2021
  disabled: i === !1
2022
2022
  };
2023
2023
  }
2024
- function $s(i, t) {
2024
+ function Ys(i, t) {
2025
2025
  const e = [], s = i._getSortedDatasetMetas(t);
2026
2026
  let n, o;
2027
2027
  for (n = 0, o = s.length; n < o; ++n)
2028
2028
  e.push(s[n].index);
2029
2029
  return e;
2030
2030
  }
2031
- function Fi(i, t, e, s = {}) {
2031
+ function zi(i, t, e, s = {}) {
2032
2032
  const n = i.keys, o = s.mode === "single";
2033
2033
  let r, a, l, c;
2034
2034
  if (t === null)
@@ -2054,7 +2054,7 @@ function Jo(i, t) {
2054
2054
  };
2055
2055
  return a;
2056
2056
  }
2057
- function He(i, t) {
2057
+ function We(i, t) {
2058
2058
  const e = i && i.options.stacked;
2059
2059
  return e || e === void 0 && t.stack !== void 0;
2060
2060
  }
@@ -2072,7 +2072,7 @@ function ir(i, t, e) {
2072
2072
  const s = i[t] || (i[t] = {});
2073
2073
  return s[e] || (s[e] = {});
2074
2074
  }
2075
- function zi(i, t, e, s) {
2075
+ function Bi(i, t, e, s) {
2076
2076
  for (const n of t.getMatchingVisibleMetas(s).reverse()) {
2077
2077
  const o = i[n.index];
2078
2078
  if (e && o > 0 || !e && o < 0)
@@ -2080,22 +2080,22 @@ function zi(i, t, e, s) {
2080
2080
  }
2081
2081
  return null;
2082
2082
  }
2083
- function Bi(i, t) {
2083
+ function Hi(i, t) {
2084
2084
  const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: r, index: a } = s, l = o.axis, c = r.axis, h = tr(o, r, s), d = t.length;
2085
2085
  let f;
2086
2086
  for (let u = 0; u < d; ++u) {
2087
- const g = t[u], { [l]: p, [c]: m } = g, b = g._stacks || (g._stacks = {});
2088
- f = b[c] = ir(n, h, p), f[a] = m, f._top = zi(f, r, !0, s.type), f._bottom = zi(f, r, !1, s.type);
2087
+ const p = t[u], { [l]: m, [c]: g } = p, b = p._stacks || (p._stacks = {});
2088
+ f = b[c] = ir(n, h, m), f[a] = g, f._top = Bi(f, r, !0, s.type), f._bottom = Bi(f, r, !1, s.type);
2089
2089
  const x = f._visualValues || (f._visualValues = {});
2090
- x[a] = m;
2090
+ x[a] = g;
2091
2091
  }
2092
2092
  }
2093
- function We(i, t) {
2093
+ function Ne(i, t) {
2094
2094
  const e = i.scales;
2095
2095
  return Object.keys(e).filter((s) => e[s].axis === t).shift();
2096
2096
  }
2097
2097
  function sr(i, t) {
2098
- return Mt(i, {
2098
+ return Ot(i, {
2099
2099
  active: !1,
2100
2100
  dataset: void 0,
2101
2101
  datasetIndex: t,
@@ -2105,7 +2105,7 @@ function sr(i, t) {
2105
2105
  });
2106
2106
  }
2107
2107
  function nr(i, t, e) {
2108
- return Mt(i, {
2108
+ return Ot(i, {
2109
2109
  active: !1,
2110
2110
  dataIndex: t,
2111
2111
  parsed: void 0,
@@ -2116,7 +2116,7 @@ function nr(i, t, e) {
2116
2116
  type: "data"
2117
2117
  });
2118
2118
  }
2119
- function Wt(i, t) {
2119
+ function Nt(i, t) {
2120
2120
  const e = i.controller.index, s = i.vScale && i.vScale.axis;
2121
2121
  if (s) {
2122
2122
  t = t || i._parsed;
@@ -2128,11 +2128,11 @@ function Wt(i, t) {
2128
2128
  }
2129
2129
  }
2130
2130
  }
2131
- const Ne = (i) => i === "reset" || i === "none", Hi = (i, t) => t ? i : Object.assign({}, i), or = (i, t, e) => i && !t.hidden && t._stacked && {
2132
- keys: $s(e, !0),
2131
+ const je = (i) => i === "reset" || i === "none", Wi = (i, t) => t ? i : Object.assign({}, i), or = (i, t, e) => i && !t.hidden && t._stacked && {
2132
+ keys: Ys(e, !0),
2133
2133
  values: null
2134
2134
  };
2135
- class Ys {
2135
+ class Us {
2136
2136
  static defaults = {};
2137
2137
  static datasetElementType = null;
2138
2138
  static dataElementType = null;
@@ -2141,13 +2141,13 @@ class Ys {
2141
2141
  }
2142
2142
  initialize() {
2143
2143
  const t = this._cachedMeta;
2144
- this.configure(), this.linkScales(), t._stacked = He(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");
2144
+ this.configure(), this.linkScales(), t._stacked = We(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");
2145
2145
  }
2146
2146
  updateIndex(t) {
2147
- this.index !== t && Wt(this._cachedMeta), this.index = t;
2147
+ this.index !== t && Nt(this._cachedMeta), this.index = t;
2148
2148
  }
2149
2149
  linkScales() {
2150
- const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (d, f, u, g) => d === "x" ? f : d === "r" ? g : u, o = e.xAxisID = L(s.xAxisID, We(t, "x")), r = e.yAxisID = L(s.yAxisID, We(t, "y")), a = e.rAxisID = L(s.rAxisID, We(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, r, a), h = e.vAxisID = n(l, r, o, a);
2150
+ const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (d, f, u, p) => d === "x" ? f : d === "r" ? p : u, o = e.xAxisID = L(s.xAxisID, Ne(t, "x")), r = e.yAxisID = L(s.yAxisID, Ne(t, "y")), a = e.rAxisID = L(s.rAxisID, Ne(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, r, a), h = e.vAxisID = n(l, r, o, a);
2151
2151
  e.xScale = this.getScaleForId(o), e.yScale = this.getScaleForId(r), e.rScale = this.getScaleForId(a), e.iScale = this.getScaleForId(c), e.vScale = this.getScaleForId(h);
2152
2152
  }
2153
2153
  getDataset() {
@@ -2168,7 +2168,7 @@ class Ys {
2168
2168
  }
2169
2169
  _destroy() {
2170
2170
  const t = this._cachedMeta;
2171
- this._data && ki(this._data, this), t._stacked && Wt(t);
2171
+ this._data && Si(this._data, this), t._stacked && Nt(t);
2172
2172
  }
2173
2173
  _dataCheck() {
2174
2174
  const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
@@ -2177,9 +2177,9 @@ class Ys {
2177
2177
  this._data = Jo(e, n);
2178
2178
  } else if (s !== e) {
2179
2179
  if (s) {
2180
- ki(s, this);
2180
+ Si(s, this);
2181
2181
  const n = this._cachedMeta;
2182
- Wt(n), n._parsed = [];
2182
+ Nt(n), n._parsed = [];
2183
2183
  }
2184
2184
  e && Object.isExtensible(e) && to(e, this), this._syncList = [], this._data = e;
2185
2185
  }
@@ -2193,7 +2193,7 @@ class Ys {
2193
2193
  let n = !1;
2194
2194
  this._dataCheck();
2195
2195
  const o = e._stacked;
2196
- e._stacked = He(e.vScale, e), e.stack !== s.stack && (n = !0, Wt(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && (Bi(this, e._parsed), e._stacked = He(e.vScale, e));
2196
+ e._stacked = We(e.vScale, e), e.stack !== s.stack && (n = !0, Nt(e), e.stack = s.stack), this._resyncElements(t), (n || o !== e._stacked) && (Hi(this, e._parsed), e._stacked = We(e.vScale, e));
2197
2197
  }
2198
2198
  configure() {
2199
2199
  const t = this.chart.config, e = t.datasetScopeKeys(this._type), s = t.getOptionScopes(this.getDataset(), e, !0);
@@ -2205,21 +2205,21 @@ class Ys {
2205
2205
  if (this._parsing === !1)
2206
2206
  s._parsed = n, s._sorted = !0, f = n;
2207
2207
  else {
2208
- W(n[t]) ? f = this.parseArrayData(s, n, t, e) : D(n[t]) ? f = this.parseObjectData(s, n, t, e) : f = this.parsePrimitiveData(s, n, t, e);
2208
+ H(n[t]) ? f = this.parseArrayData(s, n, t, e) : D(n[t]) ? f = this.parseObjectData(s, n, t, e) : f = this.parsePrimitiveData(s, n, t, e);
2209
2209
  const u = () => d[a] === null || c && d[a] < c[a];
2210
2210
  for (h = 0; h < e; ++h)
2211
2211
  s._parsed[h + t] = d = f[h], l && (u() && (l = !1), c = d);
2212
2212
  s._sorted = l;
2213
2213
  }
2214
- r && Bi(this, f);
2214
+ r && Hi(this, f);
2215
2215
  }
2216
2216
  parsePrimitiveData(t, e, s, n) {
2217
2217
  const { iScale: o, vScale: r } = t, a = o.axis, l = r.axis, c = o.getLabels(), h = o === r, d = new Array(n);
2218
- let f, u, g;
2218
+ let f, u, p;
2219
2219
  for (f = 0, u = n; f < u; ++f)
2220
- g = f + s, d[f] = {
2221
- [a]: h || o.parse(c[g], g),
2222
- [l]: r.parse(e[g], g)
2220
+ p = f + s, d[f] = {
2221
+ [a]: h || o.parse(c[p], p),
2222
+ [l]: r.parse(e[p], p)
2223
2223
  };
2224
2224
  return d;
2225
2225
  }
@@ -2238,8 +2238,8 @@ class Ys {
2238
2238
  let h, d, f, u;
2239
2239
  for (h = 0, d = n; h < d; ++h)
2240
2240
  f = h + s, u = e[f], c[h] = {
2241
- x: o.parse(te(u, a), f),
2242
- y: r.parse(te(u, l), f)
2241
+ x: o.parse(ee(u, a), f),
2242
+ y: r.parse(ee(u, l), f)
2243
2243
  };
2244
2244
  return c;
2245
2245
  }
@@ -2251,10 +2251,10 @@ class Ys {
2251
2251
  }
2252
2252
  applyStack(t, e, s) {
2253
2253
  const n = this.chart, o = this._cachedMeta, r = e[t.axis], a = {
2254
- keys: $s(n, !0),
2254
+ keys: Ys(n, !0),
2255
2255
  values: e._stacks[t.axis]._visualValues
2256
2256
  };
2257
- return Fi(a, r, o.index, {
2257
+ return zi(a, r, o.index, {
2258
2258
  mode: s
2259
2259
  });
2260
2260
  }
@@ -2262,7 +2262,7 @@ class Ys {
2262
2262
  const o = s[e.axis];
2263
2263
  let r = o === null ? NaN : o;
2264
2264
  const a = n && s._stacks[e.axis];
2265
- n && a && (n.values = a, r = Fi(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, r), t.max = Math.max(t.max, r);
2265
+ n && a && (n.values = a, r = zi(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, r), t.max = Math.max(t.max, r);
2266
2266
  }
2267
2267
  getMinMax(t, e) {
2268
2268
  const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, r = n.length, a = this._getOtherScale(t), l = or(e, s, this.chart), c = {
@@ -2270,16 +2270,16 @@ class Ys {
2270
2270
  max: Number.NEGATIVE_INFINITY
2271
2271
  }, { min: h, max: d } = er(a);
2272
2272
  let f, u;
2273
- function g() {
2273
+ function p() {
2274
2274
  u = n[f];
2275
- const p = u[a.axis];
2276
- return !et(u[t.axis]) || h > p || d < p;
2275
+ const m = u[a.axis];
2276
+ return !et(u[t.axis]) || h > m || d < m;
2277
2277
  }
2278
- for (f = 0; f < r && !(!g() && (this.updateRangeFromParsed(c, t, u, l), o)); ++f)
2278
+ for (f = 0; f < r && !(!p() && (this.updateRangeFromParsed(c, t, u, l), o)); ++f)
2279
2279
  ;
2280
2280
  if (o) {
2281
2281
  for (f = r - 1; f >= 0; --f)
2282
- if (!g()) {
2282
+ if (!p()) {
2283
2283
  this.updateRangeFromParsed(c, t, u, l);
2284
2284
  break;
2285
2285
  }
@@ -2342,7 +2342,7 @@ class Ys {
2342
2342
  _resolveElementOptions(t, e = "default", s) {
2343
2343
  const n = e === "active", o = this._cachedDataOpts, r = t + "-" + e, a = o[r], l = this.enableOptionSharing && ke(s);
2344
2344
  if (a)
2345
- return Hi(a, l);
2345
+ return Wi(a, l);
2346
2346
  const c = this.chart.config, h = c.datasetElementScopeKeys(this._type, t), d = n ? [
2347
2347
  `${t}Hover`,
2348
2348
  "hover",
@@ -2351,8 +2351,8 @@ class Ys {
2351
2351
  ] : [
2352
2352
  t,
2353
2353
  ""
2354
- ], f = c.getOptionScopes(this.getDataset(), h), u = Object.keys(B.elements[t]), g = () => this.getContext(s, n, e), p = c.resolveNamedOptions(f, u, g, d);
2355
- return p.$shared && (p.$shared = l, o[r] = Object.freeze(Hi(p, l))), p;
2354
+ ], f = c.getOptionScopes(this.getDataset(), h), u = Object.keys(B.elements[t]), p = () => this.getContext(s, n, e), m = c.resolveNamedOptions(f, u, p, d);
2355
+ return m.$shared && (m.$shared = l, o[r] = Object.freeze(Wi(m, l))), m;
2356
2356
  }
2357
2357
  _resolveAnimations(t, e, s) {
2358
2358
  const n = this.chart, o = this._cachedDataOpts, r = `animation-${e}`, a = o[r];
@@ -2363,7 +2363,7 @@ class Ys {
2363
2363
  const h = this.chart.config, d = h.datasetAnimationScopeKeys(this._type, e), f = h.getOptionScopes(this.getDataset(), d);
2364
2364
  l = h.createResolver(f, this.getContext(t, s, e));
2365
2365
  }
2366
- const c = new Vs(n, l && l.animations);
2366
+ const c = new $s(n, l && l.animations);
2367
2367
  return l && l._cacheable && (o[r] = Object.freeze(c)), c;
2368
2368
  }
2369
2369
  getSharedOptions(t) {
@@ -2371,7 +2371,7 @@ class Ys {
2371
2371
  return this._sharedOptions || (this._sharedOptions = Object.assign({}, t));
2372
2372
  }
2373
2373
  includeOptions(t, e) {
2374
- return !e || Ne(t) || this.chart._animationsDisabled;
2374
+ return !e || je(t) || this.chart._animationsDisabled;
2375
2375
  }
2376
2376
  _getSharedOptions(t, e) {
2377
2377
  const s = this.resolveDataElementOptions(t, e), n = this._sharedOptions, o = this.getSharedOptions(s), r = this.includeOptions(e, o) || o !== n;
@@ -2381,10 +2381,10 @@ class Ys {
2381
2381
  };
2382
2382
  }
2383
2383
  updateElement(t, e, s, n) {
2384
- Ne(n) ? Object.assign(t, s) : this._resolveAnimations(e, n).update(t, s);
2384
+ je(n) ? Object.assign(t, s) : this._resolveAnimations(e, n).update(t, s);
2385
2385
  }
2386
2386
  updateSharedOptions(t, e, s) {
2387
- t && !Ne(e) && this._resolveAnimations(void 0, e).update(t, s);
2387
+ t && !je(e) && this._resolveAnimations(void 0, e).update(t, s);
2388
2388
  }
2389
2389
  _setStyle(t, e, s, n) {
2390
2390
  t.active = n;
@@ -2432,7 +2432,7 @@ class Ys {
2432
2432
  const s = this._cachedMeta;
2433
2433
  if (this._parsing) {
2434
2434
  const n = s._parsed.splice(t, e);
2435
- s._stacked && Wt(s, n);
2435
+ s._stacked && Nt(s, n);
2436
2436
  }
2437
2437
  s.data.splice(t, e);
2438
2438
  }
@@ -2491,7 +2491,7 @@ class Ys {
2491
2491
  ]);
2492
2492
  }
2493
2493
  }
2494
- class rr extends Ys {
2494
+ class rr extends Us {
2495
2495
  static id = "polarArea";
2496
2496
  static defaults = {
2497
2497
  dataElementType: "arc",
@@ -2567,7 +2567,7 @@ class rr extends Ys {
2567
2567
  super(t, e), this.innerRadius = void 0, this.outerRadius = void 0;
2568
2568
  }
2569
2569
  getLabelAndValue(t) {
2570
- const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = ni(e._parsed[t].r, s.options.locale);
2570
+ const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = oi(e._parsed[t].r, s.options.locale);
2571
2571
  return {
2572
2572
  label: n[t] || "",
2573
2573
  value: o
@@ -2596,13 +2596,13 @@ class rr extends Ys {
2596
2596
  }
2597
2597
  updateElements(t, e, s, n) {
2598
2598
  const o = n === "reset", r = this.chart, l = r.options.animation, c = this._cachedMeta.rScale, h = c.xCenter, d = c.yCenter, f = c.getIndexAngle(0) - 0.5 * E;
2599
- let u = f, g;
2600
- const p = 360 / this.countVisibleElements();
2601
- for (g = 0; g < e; ++g)
2602
- u += this._computeAngle(g, n, p);
2603
- for (g = e; g < e + s; g++) {
2604
- const m = t[g];
2605
- let b = u, x = u + this._computeAngle(g, n, p), y = r.getDataVisibility(g) ? c.getDistanceFromCenterForValue(this.getParsed(g).r) : 0;
2599
+ let u = f, p;
2600
+ const m = 360 / this.countVisibleElements();
2601
+ for (p = 0; p < e; ++p)
2602
+ u += this._computeAngle(p, n, m);
2603
+ for (p = e; p < e + s; p++) {
2604
+ const g = t[p];
2605
+ let b = u, x = u + this._computeAngle(p, n, m), y = r.getDataVisibility(p) ? c.getDistanceFromCenterForValue(this.getParsed(p).r) : 0;
2606
2606
  u = x, o && (l.animateScale && (y = 0), l.animateRotate && (b = x = f));
2607
2607
  const v = {
2608
2608
  x: h,
@@ -2611,9 +2611,9 @@ class rr extends Ys {
2611
2611
  outerRadius: y,
2612
2612
  startAngle: b,
2613
2613
  endAngle: x,
2614
- options: this.resolveDataElementOptions(g, m.active ? "active" : n)
2614
+ options: this.resolveDataElementOptions(p, g.active ? "active" : n)
2615
2615
  };
2616
- this.updateElement(m, g, v, n);
2616
+ this.updateElement(g, p, v, n);
2617
2617
  }
2618
2618
  }
2619
2619
  countVisibleElements() {
@@ -2624,13 +2624,13 @@ class rr extends Ys {
2624
2624
  }), e;
2625
2625
  }
2626
2626
  _computeAngle(t, e, s) {
2627
- return this.chart.getDataVisibility(t) ? ft(this.resolveDataElementOptions(t, e).angle || s) : 0;
2627
+ return this.chart.getDataVisibility(t) ? gt(this.resolveDataElementOptions(t, e).angle || s) : 0;
2628
2628
  }
2629
2629
  }
2630
- function vt() {
2630
+ function St() {
2631
2631
  throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
2632
2632
  }
2633
- class ui {
2633
+ class gi {
2634
2634
  /**
2635
2635
  * Override default date adapter methods.
2636
2636
  * Accepts type parameter to define options type.
@@ -2642,7 +2642,7 @@ class ui {
2642
2642
  * })
2643
2643
  */
2644
2644
  static override(t) {
2645
- Object.assign(ui.prototype, t);
2645
+ Object.assign(gi.prototype, t);
2646
2646
  }
2647
2647
  options;
2648
2648
  constructor(t) {
@@ -2652,34 +2652,34 @@ class ui {
2652
2652
  init() {
2653
2653
  }
2654
2654
  formats() {
2655
- return vt();
2655
+ return St();
2656
2656
  }
2657
2657
  parse() {
2658
- return vt();
2658
+ return St();
2659
2659
  }
2660
2660
  format() {
2661
- return vt();
2661
+ return St();
2662
2662
  }
2663
2663
  add() {
2664
- return vt();
2664
+ return St();
2665
2665
  }
2666
2666
  diff() {
2667
- return vt();
2667
+ return St();
2668
2668
  }
2669
2669
  startOf() {
2670
- return vt();
2670
+ return St();
2671
2671
  }
2672
2672
  endOf() {
2673
- return vt();
2673
+ return St();
2674
2674
  }
2675
2675
  }
2676
2676
  var ar = {
2677
- _date: ui
2677
+ _date: gi
2678
2678
  };
2679
2679
  function lr(i, t, e, s) {
2680
2680
  const { controller: n, data: o, _sorted: r } = i, a = n._cachedMeta.iScale, l = i.dataset && i.dataset.options ? i.dataset.options.spanGaps : null;
2681
2681
  if (a && t === a.axis && t !== "r" && r && o.length) {
2682
- const c = a._reversePixels ? Qn : Ue;
2682
+ const c = a._reversePixels ? Qn : Xe;
2683
2683
  if (s) {
2684
2684
  if (n._sharedOptions) {
2685
2685
  const h = o[0], d = typeof h.getRange == "function" && h.getRange(t);
@@ -2694,10 +2694,10 @@ function lr(i, t, e, s) {
2694
2694
  } else {
2695
2695
  const h = c(o, t, e);
2696
2696
  if (l) {
2697
- const { vScale: d } = n._cachedMeta, { _parsed: f } = i, u = f.slice(0, h.lo + 1).reverse().findIndex((p) => !F(p[d.axis]));
2697
+ const { vScale: d } = n._cachedMeta, { _parsed: f } = i, u = f.slice(0, h.lo + 1).reverse().findIndex((m) => !z(m[d.axis]));
2698
2698
  h.lo -= Math.max(0, u);
2699
- const g = f.slice(h.hi).findIndex((p) => !F(p[d.axis]));
2700
- h.hi += Math.max(0, g);
2699
+ const p = f.slice(h.hi).findIndex((m) => !z(m[d.axis]));
2700
+ h.hi += Math.max(0, p);
2701
2701
  }
2702
2702
  return h;
2703
2703
  }
@@ -2712,8 +2712,8 @@ function Re(i, t, e, s, n) {
2712
2712
  for (let a = 0, l = o.length; a < l; ++a) {
2713
2713
  const { index: c, data: h } = o[a], { lo: d, hi: f } = lr(o[a], t, r, n);
2714
2714
  for (let u = d; u <= f; ++u) {
2715
- const g = h[u];
2716
- g.skip || s(g, c, u);
2715
+ const p = h[u];
2716
+ p.skip || s(p, c, u);
2717
2717
  }
2718
2718
  }
2719
2719
  }
@@ -2724,10 +2724,10 @@ function cr(i) {
2724
2724
  return Math.sqrt(Math.pow(o, 2) + Math.pow(r, 2));
2725
2725
  };
2726
2726
  }
2727
- function je(i, t, e, s, n) {
2727
+ function Ve(i, t, e, s, n) {
2728
2728
  const o = [];
2729
2729
  return !n && !i.isPointInArea(t) || Re(i, e, t, function(a, l, c) {
2730
- !n && !Rt(a, i.chartArea, 0) || a.inRange(t.x, t.y, s) && o.push({
2730
+ !n && !It(a, i.chartArea, 0) || a.inRange(t.x, t.y, s) && o.push({
2731
2731
  element: a,
2732
2732
  datasetIndex: l,
2733
2733
  index: c
@@ -2740,11 +2740,11 @@ function hr(i, t, e, s) {
2740
2740
  const { startAngle: c, endAngle: h } = r.getProps([
2741
2741
  "startAngle",
2742
2742
  "endAngle"
2743
- ], s), { angle: d } = Ps(r, {
2743
+ ], s), { angle: d } = Os(r, {
2744
2744
  x: t.x,
2745
2745
  y: t.y
2746
2746
  });
2747
- Os(d, c, h) && n.push({
2747
+ Ds(d, c, h) && n.push({
2748
2748
  element: r,
2749
2749
  datasetIndex: a,
2750
2750
  index: l
@@ -2760,17 +2760,17 @@ function dr(i, t, e, s, n, o) {
2760
2760
  const u = h.inRange(t.x, t.y, n);
2761
2761
  if (s && !u)
2762
2762
  return;
2763
- const g = h.getCenterPoint(n);
2764
- if (!(!!o || i.isPointInArea(g)) && !u)
2763
+ const p = h.getCenterPoint(n);
2764
+ if (!(!!o || i.isPointInArea(p)) && !u)
2765
2765
  return;
2766
- const m = a(t, g);
2767
- m < l ? (r = [
2766
+ const g = a(t, p);
2767
+ g < l ? (r = [
2768
2768
  {
2769
2769
  element: h,
2770
2770
  datasetIndex: d,
2771
2771
  index: f
2772
2772
  }
2773
- ], l = m) : m === l && r.push({
2773
+ ], l = g) : g === l && r.push({
2774
2774
  element: h,
2775
2775
  datasetIndex: d,
2776
2776
  index: f
@@ -2778,10 +2778,10 @@ function dr(i, t, e, s, n, o) {
2778
2778
  }
2779
2779
  return Re(i, e, t, c), r;
2780
2780
  }
2781
- function Ve(i, t, e, s, n, o) {
2781
+ function $e(i, t, e, s, n, o) {
2782
2782
  return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? hr(i, t, e, n) : dr(i, t, e, s, n, o);
2783
2783
  }
2784
- function Wi(i, t, e, s, n) {
2784
+ function Ni(i, t, e, s, n) {
2785
2785
  const o = [], r = e === "x" ? "inXRange" : "inYRange";
2786
2786
  let a = !1;
2787
2787
  return Re(i, e, t, (l, c, h) => {
@@ -2795,7 +2795,7 @@ function Wi(i, t, e, s, n) {
2795
2795
  var fr = {
2796
2796
  modes: {
2797
2797
  index(i, t, e, s) {
2798
- const n = wt(t, i), o = e.axis || "x", r = e.includeInvisible || !1, a = e.intersect ? je(i, n, o, s, r) : Ve(i, n, o, !1, s, r), l = [];
2798
+ const n = Ct(t, i), o = e.axis || "x", r = e.includeInvisible || !1, a = e.intersect ? Ve(i, n, o, s, r) : $e(i, n, o, !1, s, r), l = [];
2799
2799
  return a.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
2800
2800
  const h = a[0].index, d = c.data[h];
2801
2801
  d && !d.skip && l.push({
@@ -2806,8 +2806,8 @@ var fr = {
2806
2806
  }), l) : [];
2807
2807
  },
2808
2808
  dataset(i, t, e, s) {
2809
- const n = wt(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
2810
- let a = e.intersect ? je(i, n, o, s, r) : Ve(i, n, o, !1, s, r);
2809
+ const n = Ct(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
2810
+ let a = e.intersect ? Ve(i, n, o, s, r) : $e(i, n, o, !1, s, r);
2811
2811
  if (a.length > 0) {
2812
2812
  const l = a[0].datasetIndex, c = i.getDatasetMeta(l).data;
2813
2813
  a = [];
@@ -2821,36 +2821,36 @@ var fr = {
2821
2821
  return a;
2822
2822
  },
2823
2823
  point(i, t, e, s) {
2824
- const n = wt(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
2825
- return je(i, n, o, s, r);
2824
+ const n = Ct(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
2825
+ return Ve(i, n, o, s, r);
2826
2826
  },
2827
2827
  nearest(i, t, e, s) {
2828
- const n = wt(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
2829
- return Ve(i, n, o, e.intersect, s, r);
2828
+ const n = Ct(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
2829
+ return $e(i, n, o, e.intersect, s, r);
2830
2830
  },
2831
2831
  x(i, t, e, s) {
2832
- const n = wt(t, i);
2833
- return Wi(i, n, "x", e.intersect, s);
2832
+ const n = Ct(t, i);
2833
+ return Ni(i, n, "x", e.intersect, s);
2834
2834
  },
2835
2835
  y(i, t, e, s) {
2836
- const n = wt(t, i);
2837
- return Wi(i, n, "y", e.intersect, s);
2836
+ const n = Ct(t, i);
2837
+ return Ni(i, n, "y", e.intersect, s);
2838
2838
  }
2839
2839
  }
2840
2840
  };
2841
- const Us = [
2841
+ const Xs = [
2842
2842
  "left",
2843
2843
  "top",
2844
2844
  "right",
2845
2845
  "bottom"
2846
2846
  ];
2847
- function Nt(i, t) {
2847
+ function jt(i, t) {
2848
2848
  return i.filter((e) => e.pos === t);
2849
2849
  }
2850
- function Ni(i, t) {
2851
- return i.filter((e) => Us.indexOf(e.pos) === -1 && e.box.axis === t);
2850
+ function ji(i, t) {
2851
+ return i.filter((e) => Xs.indexOf(e.pos) === -1 && e.box.axis === t);
2852
2852
  }
2853
- function jt(i, t) {
2853
+ function Vt(i, t) {
2854
2854
  return i.sort((e, s) => {
2855
2855
  const n = t ? s : e, o = t ? e : s;
2856
2856
  return n.weight === o.weight ? n.index - o.index : n.weight - o.weight;
@@ -2875,7 +2875,7 @@ function gr(i) {
2875
2875
  const t = {};
2876
2876
  for (const e of i) {
2877
2877
  const { stack: s, pos: n, stackWeight: o } = e;
2878
- if (!s || !Us.includes(n))
2878
+ if (!s || !Xs.includes(n))
2879
2879
  continue;
2880
2880
  const r = t[s] || (t[s] = {
2881
2881
  count: 0,
@@ -2898,20 +2898,20 @@ function pr(i, t) {
2898
2898
  return e;
2899
2899
  }
2900
2900
  function mr(i) {
2901
- const t = ur(i), e = jt(t.filter((c) => c.box.fullSize), !0), s = jt(Nt(t, "left"), !0), n = jt(Nt(t, "right")), o = jt(Nt(t, "top"), !0), r = jt(Nt(t, "bottom")), a = Ni(t, "x"), l = Ni(t, "y");
2901
+ const t = ur(i), e = Vt(t.filter((c) => c.box.fullSize), !0), s = Vt(jt(t, "left"), !0), n = Vt(jt(t, "right")), o = Vt(jt(t, "top"), !0), r = Vt(jt(t, "bottom")), a = ji(t, "x"), l = ji(t, "y");
2902
2902
  return {
2903
2903
  fullSize: e,
2904
2904
  leftAndTop: s.concat(o),
2905
2905
  rightAndBottom: n.concat(l).concat(r).concat(a),
2906
- chartArea: Nt(t, "chartArea"),
2906
+ chartArea: jt(t, "chartArea"),
2907
2907
  vertical: s.concat(n).concat(l),
2908
2908
  horizontal: o.concat(r).concat(a)
2909
2909
  };
2910
2910
  }
2911
- function ji(i, t, e, s) {
2911
+ function Vi(i, t, e, s) {
2912
2912
  return Math.max(i[e], t[e]) + Math.max(i[s], t[s]);
2913
2913
  }
2914
- function Xs(i, t) {
2914
+ function Ks(i, t) {
2915
2915
  i.top = Math.max(i.top, t.top), i.left = Math.max(i.left, t.left), i.bottom = Math.max(i.bottom, t.bottom), i.right = Math.max(i.right, t.right);
2916
2916
  }
2917
2917
  function br(i, t, e, s) {
@@ -2924,8 +2924,8 @@ function br(i, t, e, s) {
2924
2924
  };
2925
2925
  d.size = Math.max(d.size, e.horizontal ? o.height : o.width), e.size = d.size / d.count, i[n] += e.size;
2926
2926
  }
2927
- o.getPadding && Xs(r, o.getPadding());
2928
- const a = Math.max(0, t.outerWidth - ji(r, i, "left", "right")), l = Math.max(0, t.outerHeight - ji(r, i, "top", "bottom")), c = a !== i.w, h = l !== i.h;
2927
+ o.getPadding && Ks(r, o.getPadding());
2928
+ const a = Math.max(0, t.outerWidth - Vi(r, i, "left", "right")), l = Math.max(0, t.outerHeight - Vi(r, i, "top", "bottom")), c = a !== i.w, h = l !== i.h;
2929
2929
  return i.w = a, i.h = l, e.horizontal ? {
2930
2930
  same: c,
2931
2931
  other: h
@@ -2963,7 +2963,7 @@ function _r(i, t) {
2963
2963
  "bottom"
2964
2964
  ]);
2965
2965
  }
2966
- function Xt(i, t, e, s) {
2966
+ function Kt(i, t, e, s) {
2967
2967
  const n = [];
2968
2968
  let o, r, a, l, c, h;
2969
2969
  for (o = 0, r = i.length, c = 0; o < r; ++o) {
@@ -2971,12 +2971,12 @@ function Xt(i, t, e, s) {
2971
2971
  const { same: d, other: f } = br(t, e, a, s);
2972
2972
  c |= d && n.length, h = h || f, l.fullSize || n.push(a);
2973
2973
  }
2974
- return c && Xt(n, t, e, s) || h;
2974
+ return c && Kt(n, t, e, s) || h;
2975
2975
  }
2976
2976
  function fe(i, t, e, s, n) {
2977
2977
  i.top = e, i.left = t, i.right = t + s, i.bottom = e + n, i.width = s, i.height = n;
2978
2978
  }
2979
- function Vi(i, t, e, s) {
2979
+ function $i(i, t, e, s) {
2980
2980
  const n = e.padding;
2981
2981
  let { x: o, y: r } = t;
2982
2982
  for (const a of i) {
@@ -2994,7 +2994,7 @@ function Vi(i, t, e, s) {
2994
2994
  }
2995
2995
  t.x = o, t.y = r;
2996
2996
  }
2997
- var gt = {
2997
+ var mt = {
2998
2998
  addBox(i, t) {
2999
2999
  i.boxes || (i.boxes = []), t.fullSize = t.fullSize || !1, t.position = t.position || "top", t.weight = t.weight || 0, t._layers = t._layers || function() {
3000
3000
  return [
@@ -3018,10 +3018,10 @@ var gt = {
3018
3018
  if (!i)
3019
3019
  return;
3020
3020
  const n = X(i.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(e - n.height, 0), a = mr(i.boxes), l = a.vertical, c = a.horizontal;
3021
- T(i.boxes, (p) => {
3022
- typeof p.beforeLayout == "function" && p.beforeLayout();
3021
+ T(i.boxes, (m) => {
3022
+ typeof m.beforeLayout == "function" && m.beforeLayout();
3023
3023
  });
3024
- const h = l.reduce((p, m) => m.box.options && m.box.options.display === !1 ? p : p + 1, 0) || 1, d = Object.freeze({
3024
+ const h = l.reduce((m, g) => g.box.options && g.box.options.display === !1 ? m : m + 1, 0) || 1, d = Object.freeze({
3025
3025
  outerWidth: t,
3026
3026
  outerHeight: e,
3027
3027
  padding: n,
@@ -3030,24 +3030,24 @@ var gt = {
3030
3030
  vBoxMaxWidth: o / 2 / h,
3031
3031
  hBoxMaxHeight: r / 2
3032
3032
  }), f = Object.assign({}, n);
3033
- Xs(f, X(s));
3033
+ Ks(f, X(s));
3034
3034
  const u = Object.assign({
3035
3035
  maxPadding: f,
3036
3036
  w: o,
3037
3037
  h: r,
3038
3038
  x: n.left,
3039
3039
  y: n.top
3040
- }, n), g = pr(l.concat(c), d);
3041
- Xt(a.fullSize, u, d, g), Xt(l, u, d, g), Xt(c, u, d, g) && Xt(l, u, d, g), xr(u), Vi(a.leftAndTop, u, d, g), u.x += u.w, u.y += u.h, Vi(a.rightAndBottom, u, d, g), i.chartArea = {
3040
+ }, n), p = pr(l.concat(c), d);
3041
+ Kt(a.fullSize, u, d, p), Kt(l, u, d, p), Kt(c, u, d, p) && Kt(l, u, d, p), xr(u), $i(a.leftAndTop, u, d, p), u.x += u.w, u.y += u.h, $i(a.rightAndBottom, u, d, p), i.chartArea = {
3042
3042
  left: u.left,
3043
3043
  top: u.top,
3044
3044
  right: u.left + u.w,
3045
3045
  bottom: u.top + u.h,
3046
3046
  height: u.h,
3047
3047
  width: u.w
3048
- }, T(a.chartArea, (p) => {
3049
- const m = p.box;
3050
- Object.assign(m, i.chartArea), m.update(u.w, u.h, {
3048
+ }, T(a.chartArea, (m) => {
3049
+ const g = m.box;
3050
+ Object.assign(g, i.chartArea), g.update(u.w, u.h, {
3051
3051
  left: 0,
3052
3052
  top: 0,
3053
3053
  right: 0,
@@ -3056,7 +3056,7 @@ var gt = {
3056
3056
  });
3057
3057
  }
3058
3058
  };
3059
- class Ks {
3059
+ class qs {
3060
3060
  acquireContext(t, e) {
3061
3061
  }
3062
3062
  releaseContext(t) {
@@ -3081,7 +3081,7 @@ class Ks {
3081
3081
  updateConfig(t) {
3082
3082
  }
3083
3083
  }
3084
- class yr extends Ks {
3084
+ class yr extends qs {
3085
3085
  acquireContext(t) {
3086
3086
  return t && t.getContext && t.getContext("2d") || null;
3087
3087
  }
@@ -3099,7 +3099,7 @@ const _e = "$chartjs", vr = {
3099
3099
  pointerup: "mouseup",
3100
3100
  pointerleave: "mouseout",
3101
3101
  pointerout: "mouseout"
3102
- }, $i = (i) => i === null || i === "";
3102
+ }, Yi = (i) => i === null || i === "";
3103
3103
  function wr(i, t) {
3104
3104
  const e = i.style, s = i.getAttribute("height"), n = i.getAttribute("width");
3105
3105
  if (i[_e] = {
@@ -3112,30 +3112,30 @@ function wr(i, t) {
3112
3112
  width: e.width
3113
3113
  }
3114
3114
  }
3115
- }, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", $i(n)) {
3116
- const o = Ri(i, "width");
3115
+ }, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", Yi(n)) {
3116
+ const o = Ii(i, "width");
3117
3117
  o !== void 0 && (i.width = o);
3118
3118
  }
3119
- if ($i(s))
3119
+ if (Yi(s))
3120
3120
  if (i.style.height === "")
3121
3121
  i.height = i.width / (t || 2);
3122
3122
  else {
3123
- const o = Ri(i, "height");
3123
+ const o = Ii(i, "height");
3124
3124
  o !== void 0 && (i.height = o);
3125
3125
  }
3126
3126
  return i;
3127
3127
  }
3128
- const qs = No ? {
3128
+ const Gs = No ? {
3129
3129
  passive: !0
3130
3130
  } : !1;
3131
3131
  function kr(i, t, e) {
3132
- i && i.addEventListener(t, e, qs);
3132
+ i && i.addEventListener(t, e, Gs);
3133
3133
  }
3134
3134
  function Sr(i, t, e) {
3135
- i && i.canvas && i.canvas.removeEventListener(t, e, qs);
3135
+ i && i.canvas && i.canvas.removeEventListener(t, e, Gs);
3136
3136
  }
3137
3137
  function Mr(i, t) {
3138
- const e = vr[i.type] || i.type, { x: s, y: n } = wt(i, t);
3138
+ const e = vr[i.type] || i.type, { x: s, y: n } = Ct(i, t);
3139
3139
  return {
3140
3140
  type: e,
3141
3141
  chart: t,
@@ -3173,25 +3173,25 @@ function Ar(i, t, e) {
3173
3173
  subtree: !0
3174
3174
  }), n;
3175
3175
  }
3176
- const ee = /* @__PURE__ */ new Map();
3177
- let Yi = 0;
3178
- function Gs() {
3176
+ const ie = /* @__PURE__ */ new Map();
3177
+ let Ui = 0;
3178
+ function Zs() {
3179
3179
  const i = window.devicePixelRatio;
3180
- i !== Yi && (Yi = i, ee.forEach((t, e) => {
3180
+ i !== Ui && (Ui = i, ie.forEach((t, e) => {
3181
3181
  e.currentDevicePixelRatio !== i && t();
3182
3182
  }));
3183
3183
  }
3184
3184
  function Pr(i, t) {
3185
- ee.size || window.addEventListener("resize", Gs), ee.set(i, t);
3185
+ ie.size || window.addEventListener("resize", Zs), ie.set(i, t);
3186
3186
  }
3187
3187
  function Or(i) {
3188
- ee.delete(i), ee.size || window.removeEventListener("resize", Gs);
3188
+ ie.delete(i), ie.size || window.removeEventListener("resize", Zs);
3189
3189
  }
3190
3190
  function Dr(i, t, e) {
3191
- const s = i.canvas, n = s && fi(s);
3191
+ const s = i.canvas, n = s && ui(s);
3192
3192
  if (!n)
3193
3193
  return;
3194
- const o = Ls((a, l) => {
3194
+ const o = Rs((a, l) => {
3195
3195
  const c = n.clientWidth;
3196
3196
  e(a, l), c < n.clientWidth && e();
3197
3197
  }, window), r = new ResizeObserver((a) => {
@@ -3200,16 +3200,16 @@ function Dr(i, t, e) {
3200
3200
  });
3201
3201
  return r.observe(n), Pr(i, o), r;
3202
3202
  }
3203
- function $e(i, t, e) {
3203
+ function Ye(i, t, e) {
3204
3204
  e && e.disconnect(), t === "resize" && Or(i);
3205
3205
  }
3206
3206
  function Tr(i, t, e) {
3207
- const s = i.canvas, n = Ls((o) => {
3207
+ const s = i.canvas, n = Rs((o) => {
3208
3208
  i.ctx !== null && e(Mr(o, i));
3209
3209
  }, i);
3210
3210
  return kr(s, t, n), n;
3211
3211
  }
3212
- class Lr extends Ks {
3212
+ class Lr extends qs {
3213
3213
  acquireContext(t, e) {
3214
3214
  const s = t && t.getContext && t.getContext("2d");
3215
3215
  return s && s.canvas === t ? (wr(t, e), s) : null;
@@ -3224,7 +3224,7 @@ class Lr extends Ks {
3224
3224
  "width"
3225
3225
  ].forEach((o) => {
3226
3226
  const r = s[o];
3227
- F(r) ? e.removeAttribute(o) : e.setAttribute(o, r);
3227
+ z(r) ? e.removeAttribute(o) : e.setAttribute(o, r);
3228
3228
  });
3229
3229
  const n = s.style || {};
3230
3230
  return Object.keys(n).forEach((o) => {
@@ -3245,9 +3245,9 @@ class Lr extends Ks {
3245
3245
  if (!n)
3246
3246
  return;
3247
3247
  ({
3248
- attach: $e,
3249
- detach: $e,
3250
- resize: $e
3248
+ attach: Ye,
3249
+ detach: Ye,
3250
+ resize: Ye
3251
3251
  }[e] || Sr)(t, e, n), s[e] = void 0;
3252
3252
  }
3253
3253
  getDevicePixelRatio() {
@@ -3257,14 +3257,14 @@ class Lr extends Ks {
3257
3257
  return Wo(t, e, s, n);
3258
3258
  }
3259
3259
  isAttached(t) {
3260
- const e = t && fi(t);
3260
+ const e = t && ui(t);
3261
3261
  return !!(e && e.isConnected);
3262
3262
  }
3263
3263
  }
3264
3264
  function Rr(i) {
3265
- return !di() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? yr : Lr;
3265
+ return !fi() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? yr : Lr;
3266
3266
  }
3267
- class se {
3267
+ class ne {
3268
3268
  static defaults = {};
3269
3269
  static defaultRoutes = void 0;
3270
3270
  x;
@@ -3303,9 +3303,9 @@ function Ir(i, t) {
3303
3303
  if (r > 0) {
3304
3304
  let d, f;
3305
3305
  const u = r > 1 ? Math.round((l - a) / (r - 1)) : null;
3306
- for (ue(t, c, h, F(u) ? 0 : a - u, a), d = 0, f = r - 1; d < f; d++)
3306
+ for (ue(t, c, h, z(u) ? 0 : a - u, a), d = 0, f = r - 1; d < f; d++)
3307
3307
  ue(t, c, h, o[d], o[d + 1]);
3308
- return ue(t, c, h, l, F(u) ? t.length : l + u), c;
3308
+ return ue(t, c, h, l, z(u) ? t.length : l + u), c;
3309
3309
  }
3310
3310
  return ue(t, c, h), c;
3311
3311
  }
@@ -3355,8 +3355,8 @@ function Hr(i) {
3355
3355
  return !1;
3356
3356
  return s;
3357
3357
  }
3358
- const Wr = (i) => i === "left" ? "right" : i === "right" ? "left" : i, Ui = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, Xi = (i, t) => Math.min(t || i, i);
3359
- function Ki(i, t) {
3358
+ const Wr = (i) => i === "left" ? "right" : i === "right" ? "left" : i, Xi = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, Ki = (i, t) => Math.min(t || i, i);
3359
+ function qi(i, t) {
3360
3360
  const e = [], s = i.length / t, n = i.length;
3361
3361
  let o = 0;
3362
3362
  for (; o < n; o += s)
@@ -3380,57 +3380,57 @@ function jr(i, t) {
3380
3380
  }
3381
3381
  });
3382
3382
  }
3383
- function Vt(i) {
3383
+ function $t(i) {
3384
3384
  return i.drawTicks ? i.tickLength : 0;
3385
3385
  }
3386
- function qi(i, t) {
3386
+ function Gi(i, t) {
3387
3387
  if (!i.display)
3388
3388
  return 0;
3389
- const e = V(i.font, t), s = X(i.padding);
3390
- return (W(i.text) ? i.text.length : 1) * e.lineHeight + s.height;
3389
+ const e = $(i.font, t), s = X(i.padding);
3390
+ return (H(i.text) ? i.text.length : 1) * e.lineHeight + s.height;
3391
3391
  }
3392
3392
  function Vr(i, t) {
3393
- return Mt(i, {
3393
+ return Ot(i, {
3394
3394
  scale: t,
3395
3395
  type: "scale"
3396
3396
  });
3397
3397
  }
3398
3398
  function $r(i, t, e) {
3399
- return Mt(i, {
3399
+ return Ot(i, {
3400
3400
  tick: e,
3401
3401
  index: t,
3402
3402
  type: "tick"
3403
3403
  });
3404
3404
  }
3405
3405
  function Yr(i, t, e) {
3406
- let s = Rs(i);
3406
+ let s = Is(i);
3407
3407
  return (e && t !== "right" || !e && t === "right") && (s = Wr(s)), s;
3408
3408
  }
3409
3409
  function Ur(i, t, e, s) {
3410
3410
  const { top: n, left: o, bottom: r, right: a, chart: l } = i, { chartArea: c, scales: h } = l;
3411
- let d = 0, f, u, g;
3412
- const p = r - n, m = a - o;
3411
+ let d = 0, f, u, p;
3412
+ const m = r - n, g = a - o;
3413
3413
  if (i.isHorizontal()) {
3414
3414
  if (u = Z(s, o, a), D(e)) {
3415
3415
  const b = Object.keys(e)[0], x = e[b];
3416
- g = h[b].getPixelForValue(x) + p - t;
3417
- } else e === "center" ? g = (c.bottom + c.top) / 2 + p - t : g = Ui(i, e, t);
3416
+ p = h[b].getPixelForValue(x) + m - t;
3417
+ } else e === "center" ? p = (c.bottom + c.top) / 2 + m - t : p = Xi(i, e, t);
3418
3418
  f = a - o;
3419
3419
  } else {
3420
3420
  if (D(e)) {
3421
3421
  const b = Object.keys(e)[0], x = e[b];
3422
- u = h[b].getPixelForValue(x) - m + t;
3423
- } else e === "center" ? u = (c.left + c.right) / 2 - m + t : u = Ui(i, e, t);
3424
- g = Z(s, r, n), d = e === "left" ? -j : j;
3422
+ u = h[b].getPixelForValue(x) - g + t;
3423
+ } else e === "center" ? u = (c.left + c.right) / 2 - g + t : u = Xi(i, e, t);
3424
+ p = Z(s, r, n), d = e === "left" ? -V : V;
3425
3425
  }
3426
3426
  return {
3427
3427
  titleX: u,
3428
- titleY: g,
3428
+ titleY: p,
3429
3429
  maxWidth: f,
3430
3430
  rotation: d
3431
3431
  };
3432
3432
  }
3433
- class ne extends se {
3433
+ class oe extends ne {
3434
3434
  constructor(t) {
3435
3435
  super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
3436
3436
  left: 0,
@@ -3447,9 +3447,9 @@ class ne extends se {
3447
3447
  }
3448
3448
  getUserBounds() {
3449
3449
  let { _userMin: t, _userMax: e, _suggestedMin: s, _suggestedMax: n } = this;
3450
- return t = it(t, Number.POSITIVE_INFINITY), e = it(e, Number.NEGATIVE_INFINITY), s = it(s, Number.POSITIVE_INFINITY), n = it(n, Number.NEGATIVE_INFINITY), {
3451
- min: it(t, s),
3452
- max: it(e, n),
3450
+ return t = st(t, Number.POSITIVE_INFINITY), e = st(e, Number.NEGATIVE_INFINITY), s = st(s, Number.POSITIVE_INFINITY), n = st(n, Number.NEGATIVE_INFINITY), {
3451
+ min: st(t, s),
3452
+ max: st(e, n),
3453
3453
  minDefined: et(t),
3454
3454
  maxDefined: et(e)
3455
3455
  };
@@ -3465,8 +3465,8 @@ class ne extends se {
3465
3465
  for (let l = 0, c = a.length; l < c; ++l)
3466
3466
  r = a[l].controller.getMinMax(this, t), n || (e = Math.min(e, r.min)), o || (s = Math.max(s, r.max));
3467
3467
  return e = o && e > s ? s : e, s = n && e > s ? e : s, {
3468
- min: it(e, it(s, e)),
3469
- max: it(s, it(e, s))
3468
+ min: st(e, st(s, e)),
3469
+ max: st(s, st(e, s))
3470
3470
  };
3471
3471
  }
3472
3472
  getPadding() {
@@ -3504,7 +3504,7 @@ class ne extends se {
3504
3504
  bottom: 0
3505
3505
  }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = So(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
3506
3506
  const l = a < this.ticks.length;
3507
- this._convertTicksToLabels(l ? Ki(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = Ir(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
3507
+ this._convertTicksToLabels(l ? qi(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = Ir(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
3508
3508
  }
3509
3509
  configure() {
3510
3510
  let t = this.options.reverse, e, s;
@@ -3576,14 +3576,14 @@ class ne extends se {
3576
3576
  ]);
3577
3577
  }
3578
3578
  calculateLabelRotation() {
3579
- const t = this.options, e = t.ticks, s = Xi(this.ticks.length, t.ticks.maxTicksLimit), n = e.minRotation || 0, o = e.maxRotation;
3579
+ const t = this.options, e = t.ticks, s = Ki(this.ticks.length, t.ticks.maxTicksLimit), n = e.minRotation || 0, o = e.maxRotation;
3580
3580
  let r = n, a, l, c;
3581
3581
  if (!this._isVisible() || !e.display || n >= o || s <= 1 || !this.isHorizontal()) {
3582
3582
  this.labelRotation = n;
3583
3583
  return;
3584
3584
  }
3585
3585
  const h = this._getLabelSizes(), d = h.widest.width, f = h.highest.height, u = tt(this.chart.width - d, 0, this.maxWidth);
3586
- a = t.offset ? this.maxWidth / s : u / (s - 1), d + 6 > a && (a = u / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - Vt(t.grid) - e.padding - qi(t.title, this.chart.options.font), c = Math.sqrt(d * d + f * f), r = ii(Math.min(Math.asin(tt((h.highest.height + 6) / a, -1, 1)), Math.asin(tt(l / c, -1, 1)) - Math.asin(tt(f / c, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r;
3586
+ a = t.offset ? this.maxWidth / s : u / (s - 1), d + 6 > a && (a = u / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - $t(t.grid) - e.padding - Gi(t.title, this.chart.options.font), c = Math.sqrt(d * d + f * f), r = si(Math.min(Math.asin(tt((h.highest.height + 6) / a, -1, 1)), Math.asin(tt(l / c, -1, 1)) - Math.asin(tt(f / c, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r;
3587
3587
  }
3588
3588
  afterCalculateLabelRotation() {
3589
3589
  I(this.options.afterCalculateLabelRotation, [
@@ -3603,17 +3603,17 @@ class ne extends se {
3603
3603
  height: 0
3604
3604
  }, { chart: e, options: { ticks: s, title: n, grid: o } } = this, r = this._isVisible(), a = this.isHorizontal();
3605
3605
  if (r) {
3606
- const l = qi(n, e.options.font);
3607
- if (a ? (t.width = this.maxWidth, t.height = Vt(o) + l) : (t.height = this.maxHeight, t.width = Vt(o) + l), s.display && this.ticks.length) {
3608
- const { first: c, last: h, widest: d, highest: f } = this._getLabelSizes(), u = s.padding * 2, g = ft(this.labelRotation), p = Math.cos(g), m = Math.sin(g);
3606
+ const l = Gi(n, e.options.font);
3607
+ if (a ? (t.width = this.maxWidth, t.height = $t(o) + l) : (t.height = this.maxHeight, t.width = $t(o) + l), s.display && this.ticks.length) {
3608
+ const { first: c, last: h, widest: d, highest: f } = this._getLabelSizes(), u = s.padding * 2, p = gt(this.labelRotation), m = Math.cos(p), g = Math.sin(p);
3609
3609
  if (a) {
3610
- const b = s.mirror ? 0 : m * d.width + p * f.height;
3610
+ const b = s.mirror ? 0 : g * d.width + m * f.height;
3611
3611
  t.height = Math.min(this.maxHeight, t.height + b + u);
3612
3612
  } else {
3613
- const b = s.mirror ? 0 : p * d.width + m * f.height;
3613
+ const b = s.mirror ? 0 : m * d.width + g * f.height;
3614
3614
  t.width = Math.min(this.maxWidth, t.width + b + u);
3615
3615
  }
3616
- this._calculatePadding(c, h, m, p);
3616
+ this._calculatePadding(c, h, g, m);
3617
3617
  }
3618
3618
  }
3619
3619
  this._handleMargins(), a ? (this.width = this._length = e.width - this._margins.left - this._margins.right, this.height = t.height) : (this.width = t.width, this.height = this._length = e.height - this._margins.top - this._margins.bottom);
@@ -3648,7 +3648,7 @@ class ne extends se {
3648
3648
  this.beforeTickToLabelConversion(), this.generateTickLabels(t);
3649
3649
  let e, s;
3650
3650
  for (e = 0, s = t.length; e < s; e++)
3651
- F(t[e].label) && (t.splice(e, 1), s--, e--);
3651
+ z(t[e].label) && (t.splice(e, 1), s--, e--);
3652
3652
  this.afterTickToLabelConversion();
3653
3653
  }
3654
3654
  _getLabelSizes() {
@@ -3656,28 +3656,28 @@ class ne extends se {
3656
3656
  if (!t) {
3657
3657
  const e = this.options.ticks.sampleSize;
3658
3658
  let s = this.ticks;
3659
- e < s.length && (s = Ki(s, e)), this._labelSizes = t = this._computeLabelSizes(s, s.length, this.options.ticks.maxTicksLimit);
3659
+ e < s.length && (s = qi(s, e)), this._labelSizes = t = this._computeLabelSizes(s, s.length, this.options.ticks.maxTicksLimit);
3660
3660
  }
3661
3661
  return t;
3662
3662
  }
3663
3663
  _computeLabelSizes(t, e, s) {
3664
- const { ctx: n, _longestTextCache: o } = this, r = [], a = [], l = Math.floor(e / Xi(e, s));
3665
- let c = 0, h = 0, d, f, u, g, p, m, b, x, y, v, _;
3664
+ const { ctx: n, _longestTextCache: o } = this, r = [], a = [], l = Math.floor(e / Ki(e, s));
3665
+ let c = 0, h = 0, d, f, u, p, m, g, b, x, y, v, _;
3666
3666
  for (d = 0; d < e; d += l) {
3667
- if (g = t[d].label, p = this._resolveTickFontOptions(d), n.font = m = p.string, b = o[m] = o[m] || {
3667
+ if (p = t[d].label, m = this._resolveTickFontOptions(d), n.font = g = m.string, b = o[g] = o[g] || {
3668
3668
  data: {},
3669
3669
  gc: []
3670
- }, x = p.lineHeight, y = v = 0, !F(g) && !W(g))
3671
- y = Ae(n, b.data, b.gc, y, g), v = x;
3672
- else if (W(g))
3673
- for (f = 0, u = g.length; f < u; ++f)
3674
- _ = g[f], !F(_) && !W(_) && (y = Ae(n, b.data, b.gc, y, _), v += x);
3670
+ }, x = m.lineHeight, y = v = 0, !z(p) && !H(p))
3671
+ y = Ae(n, b.data, b.gc, y, p), v = x;
3672
+ else if (H(p))
3673
+ for (f = 0, u = p.length; f < u; ++f)
3674
+ _ = p[f], !z(_) && !H(_) && (y = Ae(n, b.data, b.gc, y, _), v += x);
3675
3675
  r.push(y), a.push(v), c = Math.max(y, c), h = Math.max(v, h);
3676
3676
  }
3677
3677
  jr(o, e);
3678
- const w = r.indexOf(c), k = a.indexOf(h), S = (C) => ({
3679
- width: r[C] || 0,
3680
- height: a[C] || 0
3678
+ const w = r.indexOf(c), k = a.indexOf(h), S = (M) => ({
3679
+ width: r[M] || 0,
3680
+ height: a[M] || 0
3681
3681
  });
3682
3682
  return {
3683
3683
  first: S(0),
@@ -3703,7 +3703,7 @@ class ne extends se {
3703
3703
  getPixelForDecimal(t) {
3704
3704
  this._reversePixels && (t = 1 - t);
3705
3705
  const e = this._startPixel + t * this._length;
3706
- return Zn(this._alignToPixels ? yt(this.chart, e, 0) : e);
3706
+ return Zn(this._alignToPixels ? kt(this.chart, e, 0) : e);
3707
3707
  }
3708
3708
  getDecimalForPixel(t) {
3709
3709
  const e = (t - this._startPixel) / this._length;
@@ -3725,7 +3725,7 @@ class ne extends se {
3725
3725
  return this.$context || (this.$context = Vr(this.chart.getContext(), this));
3726
3726
  }
3727
3727
  _tickSize() {
3728
- const t = this.options.ticks, e = ft(this.labelRotation), s = Math.abs(Math.cos(e)), n = Math.abs(Math.sin(e)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, l = o ? o.highest.height + r : 0;
3728
+ const t = this.options.ticks, e = gt(this.labelRotation), s = Math.abs(Math.cos(e)), n = Math.abs(Math.sin(e)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, l = o ? o.highest.height + r : 0;
3729
3729
  return this.isHorizontal() ? l * s > a * n ? a / s : l / n : l * n < a * s ? l / s : a / n;
3730
3730
  }
3731
3731
  _isVisible() {
@@ -3733,153 +3733,153 @@ class ne extends se {
3733
3733
  return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
3734
3734
  }
3735
3735
  _computeGridLineItems(t) {
3736
- const e = this.axis, s = this.chart, n = this.options, { grid: o, position: r, border: a } = n, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), f = Vt(o), u = [], g = a.setContext(this.getContext()), p = g.display ? g.width : 0, m = p / 2, b = function(R) {
3737
- return yt(s, R, p);
3736
+ const e = this.axis, s = this.chart, n = this.options, { grid: o, position: r, border: a } = n, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), f = $t(o), u = [], p = a.setContext(this.getContext()), m = p.display ? p.width : 0, g = m / 2, b = function(R) {
3737
+ return kt(s, R, m);
3738
3738
  };
3739
- let x, y, v, _, w, k, S, C, P, M, A, H;
3739
+ let x, y, v, _, w, k, S, M, A, C, O, j;
3740
3740
  if (r === "top")
3741
- x = b(this.bottom), k = this.bottom - f, C = x - m, M = b(t.top) + m, H = t.bottom;
3741
+ x = b(this.bottom), k = this.bottom - f, M = x - g, C = b(t.top) + g, j = t.bottom;
3742
3742
  else if (r === "bottom")
3743
- x = b(this.top), M = t.top, H = b(t.bottom) - m, k = x + m, C = this.top + f;
3743
+ x = b(this.top), C = t.top, j = b(t.bottom) - g, k = x + g, M = this.top + f;
3744
3744
  else if (r === "left")
3745
- x = b(this.right), w = this.right - f, S = x - m, P = b(t.left) + m, A = t.right;
3745
+ x = b(this.right), w = this.right - f, S = x - g, A = b(t.left) + g, O = t.right;
3746
3746
  else if (r === "right")
3747
- x = b(this.left), P = t.left, A = b(t.right) - m, w = x + m, S = this.left + f;
3747
+ x = b(this.left), A = t.left, O = b(t.right) - g, w = x + g, S = this.left + f;
3748
3748
  else if (e === "x") {
3749
3749
  if (r === "center")
3750
3750
  x = b((t.top + t.bottom) / 2 + 0.5);
3751
3751
  else if (D(r)) {
3752
- const R = Object.keys(r)[0], z = r[R];
3753
- x = b(this.chart.scales[R].getPixelForValue(z));
3752
+ const R = Object.keys(r)[0], F = r[R];
3753
+ x = b(this.chart.scales[R].getPixelForValue(F));
3754
3754
  }
3755
- M = t.top, H = t.bottom, k = x + m, C = k + f;
3755
+ C = t.top, j = t.bottom, k = x + g, M = k + f;
3756
3756
  } else if (e === "y") {
3757
3757
  if (r === "center")
3758
3758
  x = b((t.left + t.right) / 2);
3759
3759
  else if (D(r)) {
3760
- const R = Object.keys(r)[0], z = r[R];
3761
- x = b(this.chart.scales[R].getPixelForValue(z));
3760
+ const R = Object.keys(r)[0], F = r[R];
3761
+ x = b(this.chart.scales[R].getPixelForValue(F));
3762
3762
  }
3763
- w = x - m, S = w - f, P = t.left, A = t.right;
3763
+ w = x - g, S = w - f, A = t.left, O = t.right;
3764
3764
  }
3765
- const U = L(n.ticks.maxTicksLimit, d), O = Math.max(1, Math.ceil(d / U));
3766
- for (y = 0; y < d; y += O) {
3767
- const R = this.getContext(y), z = o.setContext(R), G = a.setContext(R), Y = z.lineWidth, Ct = z.color, oe = G.dash || [], At = G.dashOffset, Bt = z.tickWidth, bt = z.tickColor, Ht = z.tickBorderDash || [], xt = z.tickBorderDashOffset;
3768
- v = Nr(this, y, l), v !== void 0 && (_ = yt(s, v, Y), c ? w = S = P = A = _ : k = C = M = H = _, u.push({
3765
+ const U = L(n.ticks.maxTicksLimit, d), P = Math.max(1, Math.ceil(d / U));
3766
+ for (y = 0; y < d; y += P) {
3767
+ const R = this.getContext(y), F = o.setContext(R), G = a.setContext(R), W = F.lineWidth, dt = F.color, _t = G.dash || [], ft = G.dashOffset, Ht = F.tickWidth, yt = F.tickColor, Wt = F.tickBorderDash || [], vt = F.tickBorderDashOffset;
3768
+ v = Nr(this, y, l), v !== void 0 && (_ = kt(s, v, W), c ? w = S = A = O = _ : k = M = C = j = _, u.push({
3769
3769
  tx1: w,
3770
3770
  ty1: k,
3771
3771
  tx2: S,
3772
- ty2: C,
3773
- x1: P,
3774
- y1: M,
3775
- x2: A,
3776
- y2: H,
3777
- width: Y,
3778
- color: Ct,
3779
- borderDash: oe,
3780
- borderDashOffset: At,
3781
- tickWidth: Bt,
3782
- tickColor: bt,
3783
- tickBorderDash: Ht,
3784
- tickBorderDashOffset: xt
3772
+ ty2: M,
3773
+ x1: A,
3774
+ y1: C,
3775
+ x2: O,
3776
+ y2: j,
3777
+ width: W,
3778
+ color: dt,
3779
+ borderDash: _t,
3780
+ borderDashOffset: ft,
3781
+ tickWidth: Ht,
3782
+ tickColor: yt,
3783
+ tickBorderDash: Wt,
3784
+ tickBorderDashOffset: vt
3785
3785
  }));
3786
3786
  }
3787
3787
  return this._ticksLength = d, this._borderValue = x, u;
3788
3788
  }
3789
3789
  _computeLabelItems(t) {
3790
- const e = this.axis, s = this.options, { position: n, ticks: o } = s, r = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, f = Vt(s.grid), u = f + h, g = d ? -h : u, p = -ft(this.labelRotation), m = [];
3791
- let b, x, y, v, _, w, k, S, C, P, M, A, H = "middle";
3790
+ const e = this.axis, s = this.options, { position: n, ticks: o } = s, r = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, f = $t(s.grid), u = f + h, p = d ? -h : u, m = -gt(this.labelRotation), g = [];
3791
+ let b, x, y, v, _, w, k, S, M, A, C, O, j = "middle";
3792
3792
  if (n === "top")
3793
- w = this.bottom - g, k = this._getXAxisLabelAlignment();
3793
+ w = this.bottom - p, k = this._getXAxisLabelAlignment();
3794
3794
  else if (n === "bottom")
3795
- w = this.top + g, k = this._getXAxisLabelAlignment();
3795
+ w = this.top + p, k = this._getXAxisLabelAlignment();
3796
3796
  else if (n === "left") {
3797
- const O = this._getYAxisLabelAlignment(f);
3798
- k = O.textAlign, _ = O.x;
3797
+ const P = this._getYAxisLabelAlignment(f);
3798
+ k = P.textAlign, _ = P.x;
3799
3799
  } else if (n === "right") {
3800
- const O = this._getYAxisLabelAlignment(f);
3801
- k = O.textAlign, _ = O.x;
3800
+ const P = this._getYAxisLabelAlignment(f);
3801
+ k = P.textAlign, _ = P.x;
3802
3802
  } else if (e === "x") {
3803
3803
  if (n === "center")
3804
3804
  w = (t.top + t.bottom) / 2 + u;
3805
3805
  else if (D(n)) {
3806
- const O = Object.keys(n)[0], R = n[O];
3807
- w = this.chart.scales[O].getPixelForValue(R) + u;
3806
+ const P = Object.keys(n)[0], R = n[P];
3807
+ w = this.chart.scales[P].getPixelForValue(R) + u;
3808
3808
  }
3809
3809
  k = this._getXAxisLabelAlignment();
3810
3810
  } else if (e === "y") {
3811
3811
  if (n === "center")
3812
3812
  _ = (t.left + t.right) / 2 - u;
3813
3813
  else if (D(n)) {
3814
- const O = Object.keys(n)[0], R = n[O];
3815
- _ = this.chart.scales[O].getPixelForValue(R);
3814
+ const P = Object.keys(n)[0], R = n[P];
3815
+ _ = this.chart.scales[P].getPixelForValue(R);
3816
3816
  }
3817
3817
  k = this._getYAxisLabelAlignment(f).textAlign;
3818
3818
  }
3819
- e === "y" && (l === "start" ? H = "top" : l === "end" && (H = "bottom"));
3819
+ e === "y" && (l === "start" ? j = "top" : l === "end" && (j = "bottom"));
3820
3820
  const U = this._getLabelSizes();
3821
3821
  for (b = 0, x = a.length; b < x; ++b) {
3822
3822
  y = a[b], v = y.label;
3823
- const O = o.setContext(this.getContext(b));
3824
- S = this.getPixelForTick(b) + o.labelOffset, C = this._resolveTickFontOptions(b), P = C.lineHeight, M = W(v) ? v.length : 1;
3825
- const R = M / 2, z = O.color, G = O.textStrokeColor, Y = O.textStrokeWidth;
3826
- let Ct = k;
3827
- r ? (_ = S, k === "inner" && (b === x - 1 ? Ct = this.options.reverse ? "left" : "right" : b === 0 ? Ct = this.options.reverse ? "right" : "left" : Ct = "center"), n === "top" ? c === "near" || p !== 0 ? A = -M * P + P / 2 : c === "center" ? A = -U.highest.height / 2 - R * P + P : A = -U.highest.height + P / 2 : c === "near" || p !== 0 ? A = P / 2 : c === "center" ? A = U.highest.height / 2 - R * P : A = U.highest.height - M * P, d && (A *= -1), p !== 0 && !O.showLabelBackdrop && (_ += P / 2 * Math.sin(p))) : (w = S, A = (1 - M) * P / 2);
3828
- let oe;
3829
- if (O.showLabelBackdrop) {
3830
- const At = X(O.backdropPadding), Bt = U.heights[b], bt = U.widths[b];
3831
- let Ht = A - At.top, xt = 0 - At.left;
3832
- switch (H) {
3823
+ const P = o.setContext(this.getContext(b));
3824
+ S = this.getPixelForTick(b) + o.labelOffset, M = this._resolveTickFontOptions(b), A = M.lineHeight, C = H(v) ? v.length : 1;
3825
+ const R = C / 2, F = P.color, G = P.textStrokeColor, W = P.textStrokeWidth;
3826
+ let dt = k;
3827
+ r ? (_ = S, k === "inner" && (b === x - 1 ? dt = this.options.reverse ? "left" : "right" : b === 0 ? dt = this.options.reverse ? "right" : "left" : dt = "center"), n === "top" ? c === "near" || m !== 0 ? O = -C * A + A / 2 : c === "center" ? O = -U.highest.height / 2 - R * A + A : O = -U.highest.height + A / 2 : c === "near" || m !== 0 ? O = A / 2 : c === "center" ? O = U.highest.height / 2 - R * A : O = U.highest.height - C * A, d && (O *= -1), m !== 0 && !P.showLabelBackdrop && (_ += A / 2 * Math.sin(m))) : (w = S, O = (1 - C) * A / 2);
3828
+ let _t;
3829
+ if (P.showLabelBackdrop) {
3830
+ const ft = X(P.backdropPadding), Ht = U.heights[b], yt = U.widths[b];
3831
+ let Wt = O - ft.top, vt = 0 - ft.left;
3832
+ switch (j) {
3833
3833
  case "middle":
3834
- Ht -= Bt / 2;
3834
+ Wt -= Ht / 2;
3835
3835
  break;
3836
3836
  case "bottom":
3837
- Ht -= Bt;
3837
+ Wt -= Ht;
3838
3838
  break;
3839
3839
  }
3840
3840
  switch (k) {
3841
3841
  case "center":
3842
- xt -= bt / 2;
3842
+ vt -= yt / 2;
3843
3843
  break;
3844
3844
  case "right":
3845
- xt -= bt;
3845
+ vt -= yt;
3846
3846
  break;
3847
3847
  case "inner":
3848
- b === x - 1 ? xt -= bt : b > 0 && (xt -= bt / 2);
3848
+ b === x - 1 ? vt -= yt : b > 0 && (vt -= yt / 2);
3849
3849
  break;
3850
3850
  }
3851
- oe = {
3852
- left: xt,
3853
- top: Ht,
3854
- width: bt + At.width,
3855
- height: Bt + At.height,
3856
- color: O.backdropColor
3851
+ _t = {
3852
+ left: vt,
3853
+ top: Wt,
3854
+ width: yt + ft.width,
3855
+ height: Ht + ft.height,
3856
+ color: P.backdropColor
3857
3857
  };
3858
3858
  }
3859
- m.push({
3859
+ g.push({
3860
3860
  label: v,
3861
- font: C,
3862
- textOffset: A,
3861
+ font: M,
3862
+ textOffset: O,
3863
3863
  options: {
3864
- rotation: p,
3865
- color: z,
3864
+ rotation: m,
3865
+ color: F,
3866
3866
  strokeColor: G,
3867
- strokeWidth: Y,
3868
- textAlign: Ct,
3869
- textBaseline: H,
3867
+ strokeWidth: W,
3868
+ textAlign: dt,
3869
+ textBaseline: j,
3870
3870
  translation: [
3871
3871
  _,
3872
3872
  w
3873
3873
  ],
3874
- backdrop: oe
3874
+ backdrop: _t
3875
3875
  }
3876
3876
  });
3877
3877
  }
3878
- return m;
3878
+ return g;
3879
3879
  }
3880
3880
  _getXAxisLabelAlignment() {
3881
3881
  const { position: t, ticks: e } = this.options;
3882
- if (-ft(this.labelRotation))
3882
+ if (-gt(this.labelRotation))
3883
3883
  return t === "top" ? "left" : "right";
3884
3884
  let n = "center";
3885
3885
  return e.align === "start" ? n = "left" : e.align === "end" ? n = "right" : e.align === "inner" && (n = "inner"), n;
@@ -3957,29 +3957,29 @@ class ne extends se {
3957
3957
  return;
3958
3958
  const a = n.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
3959
3959
  let c, h, d, f;
3960
- this.isHorizontal() ? (c = yt(t, this.left, r) - r / 2, h = yt(t, this.right, a) + a / 2, d = f = l) : (d = yt(t, this.top, r) - r / 2, f = yt(t, this.bottom, a) + a / 2, c = h = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, d), e.lineTo(h, f), e.stroke(), e.restore();
3960
+ this.isHorizontal() ? (c = kt(t, this.left, r) - r / 2, h = kt(t, this.right, a) + a / 2, d = f = l) : (d = kt(t, this.top, r) - r / 2, f = kt(t, this.bottom, a) + a / 2, c = h = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, d), e.lineTo(h, f), e.stroke(), e.restore();
3961
3961
  }
3962
3962
  drawLabels(t) {
3963
3963
  if (!this.options.ticks.display)
3964
3964
  return;
3965
3965
  const s = this.ctx, n = this._computeLabelArea();
3966
- n && oi(s, n);
3966
+ n && ri(s, n);
3967
3967
  const o = this.getLabelItems(t);
3968
3968
  for (const r of o) {
3969
3969
  const a = r.options, l = r.font, c = r.label, h = r.textOffset;
3970
- Ft(s, c, 0, h, l, a);
3970
+ zt(s, c, 0, h, l, a);
3971
3971
  }
3972
- n && ri(s);
3972
+ n && ai(s);
3973
3973
  }
3974
3974
  drawTitle() {
3975
3975
  const { ctx: t, options: { position: e, title: s, reverse: n } } = this;
3976
3976
  if (!s.display)
3977
3977
  return;
3978
- const o = V(s.font), r = X(s.padding), a = s.align;
3978
+ const o = $(s.font), r = X(s.padding), a = s.align;
3979
3979
  let l = o.lineHeight / 2;
3980
- e === "bottom" || e === "center" || D(e) ? (l += r.bottom, W(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += r.top;
3980
+ e === "bottom" || e === "center" || D(e) ? (l += r.bottom, H(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += r.top;
3981
3981
  const { titleX: c, titleY: h, maxWidth: d, rotation: f } = Ur(this, l, e, a);
3982
- Ft(t, s.text, 0, 0, o, {
3982
+ zt(t, s.text, 0, 0, o, {
3983
3983
  color: s.color,
3984
3984
  maxWidth: d,
3985
3985
  rotation: f,
@@ -3996,7 +3996,7 @@ class ne extends se {
3996
3996
  }
3997
3997
  _layers() {
3998
3998
  const t = this.options, e = t.ticks && t.ticks.z || 0, s = L(t.grid && t.grid.z, -1), n = L(t.border && t.border.z, 0);
3999
- return !this._isVisible() || this.draw !== ne.prototype.draw ? [
3999
+ return !this._isVisible() || this.draw !== oe.prototype.draw ? [
4000
4000
  {
4001
4001
  z: e,
4002
4002
  draw: (o) => {
@@ -4035,7 +4035,7 @@ class ne extends se {
4035
4035
  }
4036
4036
  _resolveTickFontOptions(t) {
4037
4037
  const e = this.options.ticks.setContext(this.getContext(t));
4038
- return V(e.font);
4038
+ return $(e.font);
4039
4039
  }
4040
4040
  _maxDigits() {
4041
4041
  const t = this._resolveTickFontOptions(0).lineHeight;
@@ -4063,11 +4063,11 @@ class ge {
4063
4063
  }
4064
4064
  unregister(t) {
4065
4065
  const e = this.items, s = t.id, n = this.scope;
4066
- s in e && delete e[s], n && s in B[n] && (delete B[n][s], this.override && delete St[s]);
4066
+ s in e && delete e[s], n && s in B[n] && (delete B[n][s], this.override && delete Pt[s]);
4067
4067
  }
4068
4068
  }
4069
4069
  function Xr(i, t, e) {
4070
- const s = Jt(/* @__PURE__ */ Object.create(null), [
4070
+ const s = te(/* @__PURE__ */ Object.create(null), [
4071
4071
  e ? B.get(e) : {},
4072
4072
  B.get(t),
4073
4073
  i.defaults
@@ -4087,7 +4087,7 @@ function qr(i) {
4087
4087
  }
4088
4088
  class Gr {
4089
4089
  constructor() {
4090
- this.controllers = new ge(Ys, "datasets", !0), this.elements = new ge(se, "elements"), this.plugins = new ge(Object, "plugins"), this.scales = new ge(ne, "scales"), this._typedRegistries = [
4090
+ this.controllers = new ge(Us, "datasets", !0), this.elements = new ge(ne, "elements"), this.plugins = new ge(Object, "plugins"), this.scales = new ge(oe, "scales"), this._typedRegistries = [
4091
4091
  this.controllers,
4092
4092
  this.scales,
4093
4093
  this.elements
@@ -4147,7 +4147,7 @@ class Gr {
4147
4147
  });
4148
4148
  }
4149
4149
  _exec(t, e, s) {
4150
- const n = ei(t);
4150
+ const n = ii(t);
4151
4151
  I(s["before" + n], [], s), e[t](s), I(s["after" + n], [], s);
4152
4152
  }
4153
4153
  _getRegistryForType(t) {
@@ -4165,7 +4165,7 @@ class Gr {
4165
4165
  return n;
4166
4166
  }
4167
4167
  }
4168
- var nt = /* @__PURE__ */ new Gr();
4168
+ var ot = /* @__PURE__ */ new Gr();
4169
4169
  class Zr {
4170
4170
  constructor() {
4171
4171
  this._init = void 0;
@@ -4190,7 +4190,7 @@ class Zr {
4190
4190
  return !0;
4191
4191
  }
4192
4192
  invalidate() {
4193
- F(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
4193
+ z(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
4194
4194
  }
4195
4195
  _descriptors(t) {
4196
4196
  if (this._cache)
@@ -4208,9 +4208,9 @@ class Zr {
4208
4208
  }
4209
4209
  }
4210
4210
  function Qr(i) {
4211
- const t = {}, e = [], s = Object.keys(nt.plugins.items);
4211
+ const t = {}, e = [], s = Object.keys(ot.plugins.items);
4212
4212
  for (let o = 0; o < s.length; o++)
4213
- e.push(nt.getPlugin(s[o]));
4213
+ e.push(ot.getPlugin(s[o]));
4214
4214
  const n = i.plugins || [];
4215
4215
  for (let o = 0; o < n.length; o++) {
4216
4216
  const r = n[o];
@@ -4248,7 +4248,7 @@ function ea(i, { plugin: t, local: e }, s, n) {
4248
4248
  allKeys: !0
4249
4249
  });
4250
4250
  }
4251
- function Ke(i, t) {
4251
+ function qe(i, t) {
4252
4252
  const e = B.datasets[i] || {};
4253
4253
  return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
4254
4254
  }
@@ -4259,7 +4259,7 @@ function ia(i, t) {
4259
4259
  function sa(i, t) {
4260
4260
  return i === t ? "_index_" : "_value_";
4261
4261
  }
4262
- function Gi(i) {
4262
+ function Zi(i) {
4263
4263
  if (i === "x" || i === "y" || i === "r")
4264
4264
  return i;
4265
4265
  }
@@ -4269,17 +4269,17 @@ function na(i) {
4269
4269
  if (i === "left" || i === "right")
4270
4270
  return "y";
4271
4271
  }
4272
- function qe(i, ...t) {
4273
- if (Gi(i))
4272
+ function Ge(i, ...t) {
4273
+ if (Zi(i))
4274
4274
  return i;
4275
4275
  for (const e of t) {
4276
- const s = e.axis || na(e.position) || i.length > 1 && Gi(i[0].toLowerCase());
4276
+ const s = e.axis || na(e.position) || i.length > 1 && Zi(i[0].toLowerCase());
4277
4277
  if (s)
4278
4278
  return s;
4279
4279
  }
4280
4280
  throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`);
4281
4281
  }
4282
- function Zi(i, t, e) {
4282
+ function Qi(i, t, e) {
4283
4283
  if (e[t + "AxisID"] === i)
4284
4284
  return {
4285
4285
  axis: t
@@ -4289,22 +4289,22 @@ function oa(i, t) {
4289
4289
  if (t.data && t.data.datasets) {
4290
4290
  const e = t.data.datasets.filter((s) => s.xAxisID === i || s.yAxisID === i);
4291
4291
  if (e.length)
4292
- return Zi(i, "x", e[0]) || Zi(i, "y", e[0]);
4292
+ return Qi(i, "x", e[0]) || Qi(i, "y", e[0]);
4293
4293
  }
4294
4294
  return {};
4295
4295
  }
4296
4296
  function ra(i, t) {
4297
- const e = St[i.type] || {
4297
+ const e = Pt[i.type] || {
4298
4298
  scales: {}
4299
- }, s = t.scales || {}, n = Ke(i.type, t), o = /* @__PURE__ */ Object.create(null);
4299
+ }, s = t.scales || {}, n = qe(i.type, t), o = /* @__PURE__ */ Object.create(null);
4300
4300
  return Object.keys(s).forEach((r) => {
4301
4301
  const a = s[r];
4302
4302
  if (!D(a))
4303
4303
  return console.error(`Invalid scale configuration for scale: ${r}`);
4304
4304
  if (a._proxy)
4305
4305
  return console.warn(`Ignoring resolver passed as options for scale: ${r}`);
4306
- const l = qe(r, a, oa(r, i), B.scales[a.type]), c = sa(l, n), h = e.scales || {};
4307
- o[r] = qt(/* @__PURE__ */ Object.create(null), [
4306
+ const l = Ge(r, a, oa(r, i), B.scales[a.type]), c = sa(l, n), h = e.scales || {};
4307
+ o[r] = Gt(/* @__PURE__ */ Object.create(null), [
4308
4308
  {
4309
4309
  axis: l
4310
4310
  },
@@ -4313,10 +4313,10 @@ function ra(i, t) {
4313
4313
  h[c]
4314
4314
  ]);
4315
4315
  }), i.data.datasets.forEach((r) => {
4316
- const a = r.type || i.type, l = r.indexAxis || Ke(a, t), h = (St[a] || {}).scales || {};
4316
+ const a = r.type || i.type, l = r.indexAxis || qe(a, t), h = (Pt[a] || {}).scales || {};
4317
4317
  Object.keys(h).forEach((d) => {
4318
4318
  const f = ia(d, l), u = r[f + "AxisID"] || f;
4319
- o[u] = o[u] || /* @__PURE__ */ Object.create(null), qt(o[u], [
4319
+ o[u] = o[u] || /* @__PURE__ */ Object.create(null), Gt(o[u], [
4320
4320
  {
4321
4321
  axis: f
4322
4322
  },
@@ -4326,29 +4326,29 @@ function ra(i, t) {
4326
4326
  });
4327
4327
  }), Object.keys(o).forEach((r) => {
4328
4328
  const a = o[r];
4329
- qt(a, [
4329
+ Gt(a, [
4330
4330
  B.scales[a.type],
4331
4331
  B.scale
4332
4332
  ]);
4333
4333
  }), o;
4334
4334
  }
4335
- function Zs(i) {
4335
+ function Qs(i) {
4336
4336
  const t = i.options || (i.options = {});
4337
4337
  t.plugins = L(t.plugins, {}), t.scales = ra(i, t);
4338
4338
  }
4339
- function Qs(i) {
4339
+ function Js(i) {
4340
4340
  return i = i || {}, i.datasets = i.datasets || [], i.labels = i.labels || [], i;
4341
4341
  }
4342
4342
  function aa(i) {
4343
- return i = i || {}, i.data = Qs(i.data), Zs(i), i;
4343
+ return i = i || {}, i.data = Js(i.data), Qs(i), i;
4344
4344
  }
4345
- const Qi = /* @__PURE__ */ new Map(), Js = /* @__PURE__ */ new Set();
4345
+ const Ji = /* @__PURE__ */ new Map(), tn = /* @__PURE__ */ new Set();
4346
4346
  function pe(i, t) {
4347
- let e = Qi.get(i);
4348
- return e || (e = t(), Qi.set(i, e), Js.add(e)), e;
4347
+ let e = Ji.get(i);
4348
+ return e || (e = t(), Ji.set(i, e), tn.add(e)), e;
4349
4349
  }
4350
- const $t = (i, t, e) => {
4351
- const s = te(t, e);
4350
+ const Yt = (i, t, e) => {
4351
+ const s = ee(t, e);
4352
4352
  s !== void 0 && i.add(s);
4353
4353
  };
4354
4354
  class la {
@@ -4368,7 +4368,7 @@ class la {
4368
4368
  return this._config.data;
4369
4369
  }
4370
4370
  set data(t) {
4371
- this._config.data = Qs(t);
4371
+ this._config.data = Js(t);
4372
4372
  }
4373
4373
  get options() {
4374
4374
  return this._config.options;
@@ -4381,7 +4381,7 @@ class la {
4381
4381
  }
4382
4382
  update() {
4383
4383
  const t = this._config;
4384
- this.clearCache(), Zs(t);
4384
+ this.clearCache(), Qs(t);
4385
4385
  }
4386
4386
  clearCache() {
4387
4387
  this._scopeCache.clear(), this._resolverCache.clear();
@@ -4436,22 +4436,22 @@ class la {
4436
4436
  return a;
4437
4437
  const l = /* @__PURE__ */ new Set();
4438
4438
  e.forEach((h) => {
4439
- t && (l.add(t), h.forEach((d) => $t(l, t, d))), h.forEach((d) => $t(l, n, d)), h.forEach((d) => $t(l, St[o] || {}, d)), h.forEach((d) => $t(l, B, d)), h.forEach((d) => $t(l, Xe, d));
4439
+ t && (l.add(t), h.forEach((d) => Yt(l, t, d))), h.forEach((d) => Yt(l, n, d)), h.forEach((d) => Yt(l, Pt[o] || {}, d)), h.forEach((d) => Yt(l, B, d)), h.forEach((d) => Yt(l, Ke, d));
4440
4440
  });
4441
4441
  const c = Array.from(l);
4442
- return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Js.has(e) && r.set(e, c), c;
4442
+ return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), tn.has(e) && r.set(e, c), c;
4443
4443
  }
4444
4444
  chartOptionScopes() {
4445
4445
  const { options: t, type: e } = this;
4446
4446
  return [
4447
4447
  t,
4448
- St[e] || {},
4448
+ Pt[e] || {},
4449
4449
  B.datasets[e] || {},
4450
4450
  {
4451
4451
  type: e
4452
4452
  },
4453
4453
  B,
4454
- Xe
4454
+ Ke
4455
4455
  ];
4456
4456
  }
4457
4457
  resolveNamedOptions(t, e, s, n = [
@@ -4459,12 +4459,12 @@ class la {
4459
4459
  ]) {
4460
4460
  const o = {
4461
4461
  $shared: !0
4462
- }, { resolver: r, subPrefixes: a } = Ji(this._resolverCache, t, n);
4462
+ }, { resolver: r, subPrefixes: a } = ts(this._resolverCache, t, n);
4463
4463
  let l = r;
4464
4464
  if (ha(r, e)) {
4465
- o.$shared = !1, s = mt(s) ? s() : s;
4465
+ o.$shared = !1, s = xt(s) ? s() : s;
4466
4466
  const c = this.createResolver(t, s, a);
4467
- l = zt(r, s, c);
4467
+ l = Bt(r, s, c);
4468
4468
  }
4469
4469
  for (const c of e)
4470
4470
  o[c] = l[c];
@@ -4473,26 +4473,26 @@ class la {
4473
4473
  createResolver(t, e, s = [
4474
4474
  ""
4475
4475
  ], n) {
4476
- const { resolver: o } = Ji(this._resolverCache, t, s);
4477
- return D(e) ? zt(o, e, void 0, n) : o;
4476
+ const { resolver: o } = ts(this._resolverCache, t, s);
4477
+ return D(e) ? Bt(o, e, void 0, n) : o;
4478
4478
  }
4479
4479
  }
4480
- function Ji(i, t, e) {
4480
+ function ts(i, t, e) {
4481
4481
  let s = i.get(t);
4482
4482
  s || (s = /* @__PURE__ */ new Map(), i.set(t, s));
4483
4483
  const n = e.join();
4484
4484
  let o = s.get(n);
4485
4485
  return o || (o = {
4486
- resolver: li(t, e),
4486
+ resolver: ci(t, e),
4487
4487
  subPrefixes: e.filter((a) => !a.toLowerCase().includes("hover"))
4488
4488
  }, s.set(n, o)), o;
4489
4489
  }
4490
- const ca = (i) => D(i) && Object.getOwnPropertyNames(i).some((t) => mt(i[t]));
4490
+ const ca = (i) => D(i) && Object.getOwnPropertyNames(i).some((t) => xt(i[t]));
4491
4491
  function ha(i, t) {
4492
- const { isScriptable: e, isIndexable: s } = zs(i);
4492
+ const { isScriptable: e, isIndexable: s } = Bs(i);
4493
4493
  for (const n of t) {
4494
4494
  const o = e(n), r = s(n), a = (r || o) && i[n];
4495
- if (o && (mt(a) || ca(a)) || r && W(a))
4495
+ if (o && (xt(a) || ca(a)) || r && H(a))
4496
4496
  return !0;
4497
4497
  }
4498
4498
  return !1;
@@ -4505,15 +4505,15 @@ const fa = [
4505
4505
  "right",
4506
4506
  "chartArea"
4507
4507
  ];
4508
- function ts(i, t) {
4508
+ function es(i, t) {
4509
4509
  return i === "top" || i === "bottom" || fa.indexOf(i) === -1 && t === "x";
4510
4510
  }
4511
- function es(i, t) {
4511
+ function is(i, t) {
4512
4512
  return function(e, s) {
4513
4513
  return e[i] === s[i] ? e[t] - s[t] : e[i] - s[i];
4514
4514
  };
4515
4515
  }
4516
- function is(i) {
4516
+ function ss(i) {
4517
4517
  const t = i.chart, e = t.options.animation;
4518
4518
  t.notifyPlugins("afterRender"), I(e && e.onComplete, [
4519
4519
  i
@@ -4525,11 +4525,11 @@ function ua(i) {
4525
4525
  i
4526
4526
  ], t);
4527
4527
  }
4528
- function tn(i) {
4529
- return di() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
4528
+ function en(i) {
4529
+ return fi() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
4530
4530
  }
4531
- const ye = {}, ss = (i) => {
4532
- const t = tn(i);
4531
+ const ye = {}, ns = (i) => {
4532
+ const t = en(i);
4533
4533
  return Object.values(ye).filter((e) => e.canvas === t).pop();
4534
4534
  };
4535
4535
  function ga(i, t, e) {
@@ -4545,21 +4545,21 @@ function ga(i, t, e) {
4545
4545
  function pa(i, t, e, s) {
4546
4546
  return !e || i.type === "mouseout" ? null : s ? t : i;
4547
4547
  }
4548
- class Ge {
4548
+ class Ze {
4549
4549
  static defaults = B;
4550
4550
  static instances = ye;
4551
- static overrides = St;
4552
- static registry = nt;
4551
+ static overrides = Pt;
4552
+ static registry = ot;
4553
4553
  static version = da;
4554
- static getChart = ss;
4554
+ static getChart = ns;
4555
4555
  static register(...t) {
4556
- nt.add(...t), ns();
4556
+ ot.add(...t), os();
4557
4557
  }
4558
4558
  static unregister(...t) {
4559
- nt.remove(...t), ns();
4559
+ ot.remove(...t), os();
4560
4560
  }
4561
4561
  constructor(t, e) {
4562
- const s = this.config = new la(e), n = tn(t), o = ss(n);
4562
+ const s = this.config = new la(e), n = en(t), o = ns(n);
4563
4563
  if (o)
4564
4564
  throw new Error("Canvas is already in use. Chart with ID '" + o.id + "' must be destroyed before the canvas with ID '" + o.canvas.id + "' can be reused.");
4565
4565
  const r = s.createResolver(s.chartOptionScopes(), this.getContext());
@@ -4569,11 +4569,11 @@ class Ge {
4569
4569
  console.error("Failed to create chart: can't acquire context from the given item");
4570
4570
  return;
4571
4571
  }
4572
- at.listen(this, "complete", is), at.listen(this, "progress", ua), this._initialize(), this.attached && this.update();
4572
+ at.listen(this, "complete", ss), at.listen(this, "progress", ua), this._initialize(), this.attached && this.update();
4573
4573
  }
4574
4574
  get aspectRatio() {
4575
4575
  const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
4576
- return F(t) ? e && o ? o : n ? s / n : null : t;
4576
+ return z(t) ? e && o ? o : n ? s / n : null : t;
4577
4577
  }
4578
4578
  get data() {
4579
4579
  return this.config.data;
@@ -4588,13 +4588,13 @@ class Ge {
4588
4588
  this.config.options = t;
4589
4589
  }
4590
4590
  get registry() {
4591
- return nt;
4591
+ return ot;
4592
4592
  }
4593
4593
  _initialize() {
4594
- return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Li(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
4594
+ return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Ri(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
4595
4595
  }
4596
4596
  clear() {
4597
- return Pi(this.canvas, this.ctx), this;
4597
+ return Oi(this.canvas, this.ctx), this;
4598
4598
  }
4599
4599
  stop() {
4600
4600
  return at.stop(this), this;
@@ -4607,7 +4607,7 @@ class Ge {
4607
4607
  }
4608
4608
  _resize(t, e) {
4609
4609
  const s = this.options, n = this.canvas, o = s.maintainAspectRatio && this.aspectRatio, r = this.platform.getMaximumSize(n, t, e, o), a = s.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
4610
- this.width = r.width, this.height = r.height, this._aspectRatio = this.aspectRatio, Li(this, a, !0) && (this.notifyPlugins("resize", {
4610
+ this.width = r.width, this.height = r.height, this._aspectRatio = this.aspectRatio, Ri(this, a, !0) && (this.notifyPlugins("resize", {
4611
4611
  size: r
4612
4612
  }), I(s.onResize, [
4613
4613
  this,
@@ -4624,20 +4624,20 @@ class Ge {
4624
4624
  const t = this.options, e = t.scales, s = this.scales, n = Object.keys(s).reduce((r, a) => (r[a] = !1, r), {});
4625
4625
  let o = [];
4626
4626
  e && (o = o.concat(Object.keys(e).map((r) => {
4627
- const a = e[r], l = qe(r, a), c = l === "r", h = l === "x";
4627
+ const a = e[r], l = Ge(r, a), c = l === "r", h = l === "x";
4628
4628
  return {
4629
4629
  options: a,
4630
4630
  dposition: c ? "chartArea" : h ? "bottom" : "left",
4631
4631
  dtype: c ? "radialLinear" : h ? "category" : "linear"
4632
4632
  };
4633
4633
  }))), T(o, (r) => {
4634
- const a = r.options, l = a.id, c = qe(l, a), h = L(a.type, r.dtype);
4635
- (a.position === void 0 || ts(a.position, c) !== ts(r.dposition)) && (a.position = r.dposition), n[l] = !0;
4634
+ const a = r.options, l = a.id, c = Ge(l, a), h = L(a.type, r.dtype);
4635
+ (a.position === void 0 || es(a.position, c) !== es(r.dposition)) && (a.position = r.dposition), n[l] = !0;
4636
4636
  let d = null;
4637
4637
  if (l in s && s[l].type === h)
4638
4638
  d = s[l];
4639
4639
  else {
4640
- const f = nt.getScale(h);
4640
+ const f = ot.getScale(h);
4641
4641
  d = new f({
4642
4642
  id: l,
4643
4643
  type: h,
@@ -4649,7 +4649,7 @@ class Ge {
4649
4649
  }), T(n, (r, a) => {
4650
4650
  r || delete s[a];
4651
4651
  }), T(s, (r) => {
4652
- gt.configure(this, r, r.options), gt.addBox(this, r);
4652
+ mt.configure(this, r, r.options), mt.addBox(this, r);
4653
4653
  });
4654
4654
  }
4655
4655
  _updateMetasets() {
@@ -4659,7 +4659,7 @@ class Ge {
4659
4659
  this._destroyDatasetMeta(n);
4660
4660
  t.splice(e, s - e);
4661
4661
  }
4662
- this._sortedMetasets = t.slice(0).sort(es("order", "index"));
4662
+ this._sortedMetasets = t.slice(0).sort(is("order", "index"));
4663
4663
  }
4664
4664
  _removeUnreferencedMetasets() {
4665
4665
  const { _metasets: t, data: { datasets: e } } = this;
@@ -4674,13 +4674,13 @@ class Ge {
4674
4674
  const o = e[s];
4675
4675
  let r = this.getDatasetMeta(s);
4676
4676
  const a = o.type || this.config.type;
4677
- if (r.type && r.type !== a && (this._destroyDatasetMeta(s), r = this.getDatasetMeta(s)), r.type = a, r.indexAxis = o.indexAxis || Ke(a, this.options), r.order = o.order || 0, r.index = s, r.label = "" + o.label, r.visible = this.isDatasetVisible(s), r.controller)
4677
+ if (r.type && r.type !== a && (this._destroyDatasetMeta(s), r = this.getDatasetMeta(s)), r.type = a, r.indexAxis = o.indexAxis || qe(a, this.options), r.order = o.order || 0, r.index = s, r.label = "" + o.label, r.visible = this.isDatasetVisible(s), r.controller)
4678
4678
  r.controller.updateIndex(s), r.controller.linkScales();
4679
4679
  else {
4680
- const l = nt.getController(a), { datasetElementType: c, dataElementType: h } = B.datasets[a];
4680
+ const l = ot.getController(a), { datasetElementType: c, dataElementType: h } = B.datasets[a];
4681
4681
  Object.assign(l, {
4682
- dataElementType: nt.getElement(h),
4683
- datasetElementType: c && nt.getElement(c)
4682
+ dataElementType: ot.getElement(h),
4683
+ datasetElementType: c && ot.getElement(c)
4684
4684
  }), r.controller = new l(this, s), t.push(r.controller);
4685
4685
  }
4686
4686
  }
@@ -4714,18 +4714,18 @@ class Ge {
4714
4714
  c.reset();
4715
4715
  }), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
4716
4716
  mode: t
4717
- }), this._layers.sort(es("z", "_idx"));
4717
+ }), this._layers.sort(is("z", "_idx"));
4718
4718
  const { _active: a, _lastEvent: l } = this;
4719
4719
  l ? this._eventHandler(l, !0) : a.length && this._updateHoverStyles(a, a, !0), this.render();
4720
4720
  }
4721
4721
  _updateScales() {
4722
4722
  T(this.scales, (t) => {
4723
- gt.removeBox(this, t);
4723
+ mt.removeBox(this, t);
4724
4724
  }), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
4725
4725
  }
4726
4726
  _checkEventBindings() {
4727
4727
  const t = this.options, e = new Set(Object.keys(this._listeners)), s = new Set(t.events);
4728
- (!_i(e, s) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
4728
+ (!yi(e, s) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
4729
4729
  }
4730
4730
  _updateHiddenIndices() {
4731
4731
  const { _hiddenIndices: t } = this, e = this._getUniformDataChanges() || [];
@@ -4741,7 +4741,7 @@ class Ge {
4741
4741
  this._dataChanges = [];
4742
4742
  const e = this.data.datasets.length, s = (o) => new Set(t.filter((r) => r[0] === o).map((r, a) => a + "," + r.splice(1).join(","))), n = s(0);
4743
4743
  for (let o = 1; o < e; o++)
4744
- if (!_i(n, s(o)))
4744
+ if (!yi(n, s(o)))
4745
4745
  return;
4746
4746
  return Array.from(n).map((o) => o.split(",")).map((o) => ({
4747
4747
  method: o[1],
@@ -4754,7 +4754,7 @@ class Ge {
4754
4754
  cancelable: !0
4755
4755
  }) === !1)
4756
4756
  return;
4757
- gt.update(this, this.width, this.height, t);
4757
+ mt.update(this, this.width, this.height, t);
4758
4758
  const e = this.chartArea, s = e.width <= 0 || e.height <= 0;
4759
4759
  this._layers = [], T(this.boxes, (n) => {
4760
4760
  s && n.position === "chartArea" || (n.configure && n.configure(), this._layers.push(...n._layers()));
@@ -4770,7 +4770,7 @@ class Ge {
4770
4770
  for (let e = 0, s = this.data.datasets.length; e < s; ++e)
4771
4771
  this.getDatasetMeta(e).controller.configure();
4772
4772
  for (let e = 0, s = this.data.datasets.length; e < s; ++e)
4773
- this._updateDataset(e, mt(t) ? t({
4773
+ this._updateDataset(e, xt(t) ? t({
4774
4774
  datasetIndex: e
4775
4775
  }) : t);
4776
4776
  this.notifyPlugins("afterDatasetsUpdate", {
@@ -4790,7 +4790,7 @@ class Ge {
4790
4790
  render() {
4791
4791
  this.notifyPlugins("beforeRender", {
4792
4792
  cancelable: !0
4793
- }) !== !1 && (at.has(this) ? this.attached && !at.running(this) && at.start(this) : (this.draw(), is({
4793
+ }) !== !1 && (at.has(this) ? this.attached && !at.running(this) && at.start(this) : (this.draw(), ss({
4794
4794
  chart: this
4795
4795
  })));
4796
4796
  }
@@ -4839,10 +4839,10 @@ class Ge {
4839
4839
  index: t.index,
4840
4840
  cancelable: !0
4841
4841
  }, n = Yo(this, t);
4842
- this.notifyPlugins("beforeDatasetDraw", s) !== !1 && (n && oi(e, n), t.controller.draw(), n && ri(e), s.cancelable = !1, this.notifyPlugins("afterDatasetDraw", s));
4842
+ this.notifyPlugins("beforeDatasetDraw", s) !== !1 && (n && ri(e, n), t.controller.draw(), n && ai(e), s.cancelable = !1, this.notifyPlugins("afterDatasetDraw", s));
4843
4843
  }
4844
4844
  isPointInArea(t) {
4845
- return Rt(t, this.chartArea, this._minPadding);
4845
+ return It(t, this.chartArea, this._minPadding);
4846
4846
  }
4847
4847
  getElementsAtEventForMode(t, e, s, n) {
4848
4848
  const o = fr.modes[e];
@@ -4867,7 +4867,7 @@ class Ge {
4867
4867
  }, s.push(n)), n;
4868
4868
  }
4869
4869
  getContext() {
4870
- return this.$context || (this.$context = Mt(null, {
4870
+ return this.$context || (this.$context = Ot(null, {
4871
4871
  chart: this,
4872
4872
  type: "chart"
4873
4873
  }));
@@ -4916,7 +4916,7 @@ class Ge {
4916
4916
  destroy() {
4917
4917
  this.notifyPlugins("beforeDestroy");
4918
4918
  const { canvas: t, ctx: e } = this;
4919
- this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Pi(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete ye[this.id], this.notifyPlugins("afterDestroy");
4919
+ this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Oi(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete ye[this.id], this.notifyPlugins("afterDestroy");
4920
4920
  }
4921
4921
  toBase64Image(...t) {
4922
4922
  return this.canvas.toDataURL(...t);
@@ -5026,8 +5026,8 @@ class Ge {
5026
5026
  return this.getElementsAtEventForMode(t, o.mode, o, n);
5027
5027
  }
5028
5028
  }
5029
- function ns() {
5030
- return T(Ge.instances, (i) => i._plugins.invalidate());
5029
+ function os() {
5030
+ return T(Ze.instances, (i) => i._plugins.invalidate());
5031
5031
  }
5032
5032
  function ma(i, t, e) {
5033
5033
  const { startAngle: s, x: n, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: h } = l, d = Math.min(c / r, Q(s - e));
@@ -5039,8 +5039,8 @@ function ma(i, t, e) {
5039
5039
  if (h === "round")
5040
5040
  i.arc(n, o, f, e - E / 2, s + E / 2, !0);
5041
5041
  else if (h === "bevel") {
5042
- const u = 2 * f * f, g = -u * Math.cos(e + E / 2) + n, p = -u * Math.sin(e + E / 2) + o, m = u * Math.cos(s + E / 2) + n, b = u * Math.sin(s + E / 2) + o;
5043
- i.lineTo(g, p), i.lineTo(m, b);
5042
+ const u = 2 * f * f, p = -u * Math.cos(e + E / 2) + n, m = -u * Math.sin(e + E / 2) + o, g = u * Math.cos(s + E / 2) + n, b = u * Math.sin(s + E / 2) + o;
5043
+ i.lineTo(p, m), i.lineTo(g, b);
5044
5044
  }
5045
5045
  }
5046
5046
  i.closePath(), i.moveTo(0, 0), i.rect(0, 0, i.canvas.width, i.canvas.height), i.clip("evenodd");
@@ -5048,10 +5048,10 @@ function ma(i, t, e) {
5048
5048
  function ba(i, t, e) {
5049
5049
  const { startAngle: s, pixelMargin: n, x: o, y: r, outerRadius: a, innerRadius: l } = t;
5050
5050
  let c = n / a;
5051
- i.beginPath(), i.arc(o, r, a, s - c, e + c), l > n ? (c = n / l, i.arc(o, r, l, e + c, s - c, !0)) : i.arc(o, r, n, e + j, s - j), i.closePath(), i.clip();
5051
+ i.beginPath(), i.arc(o, r, a, s - c, e + c), l > n ? (c = n / l, i.arc(o, r, l, e + c, s - c, !0)) : i.arc(o, r, n, e + V, s - V), i.closePath(), i.clip();
5052
5052
  }
5053
5053
  function xa(i) {
5054
- return ai(i, [
5054
+ return li(i, [
5055
5055
  "outerStart",
5056
5056
  "outerEnd",
5057
5057
  "innerStart",
@@ -5070,7 +5070,7 @@ function _a(i, t, e, s) {
5070
5070
  innerEnd: tt(n.innerEnd, 0, r)
5071
5071
  };
5072
5072
  }
5073
- function Ot(i, t, e, s) {
5073
+ function Tt(i, t, e, s) {
5074
5074
  return {
5075
5075
  x: e + i * Math.cos(t),
5076
5076
  y: s + i * Math.sin(t)
@@ -5079,39 +5079,39 @@ function Ot(i, t, e, s) {
5079
5079
  function Te(i, t, e, s, n, o) {
5080
5080
  const { x: r, y: a, startAngle: l, pixelMargin: c, innerRadius: h } = t, d = Math.max(t.outerRadius + s + e - c, 0), f = h > 0 ? h + s + e + c : 0;
5081
5081
  let u = 0;
5082
- const g = n - l;
5082
+ const p = n - l;
5083
5083
  if (s) {
5084
- const O = h > 0 ? h - s : 0, R = d > 0 ? d - s : 0, z = (O + R) / 2, G = z !== 0 ? g * z / (z + s) : g;
5085
- u = (g - G) / 2;
5084
+ const P = h > 0 ? h - s : 0, R = d > 0 ? d - s : 0, F = (P + R) / 2, G = F !== 0 ? p * F / (F + s) : p;
5085
+ u = (p - G) / 2;
5086
5086
  }
5087
- const p = Math.max(1e-3, g * d - e / E) / d, m = (g - p) / 2, b = l + m + u, x = n - m - u, { outerStart: y, outerEnd: v, innerStart: _, innerEnd: w } = _a(t, f, d, x - b), k = d - y, S = d - v, C = b + y / k, P = x - v / S, M = f + _, A = f + w, H = b + _ / M, U = x - w / A;
5087
+ const m = Math.max(1e-3, p * d - e / E) / d, g = (p - m) / 2, b = l + g + u, x = n - g - u, { outerStart: y, outerEnd: v, innerStart: _, innerEnd: w } = _a(t, f, d, x - b), k = d - y, S = d - v, M = b + y / k, A = x - v / S, C = f + _, O = f + w, j = b + _ / C, U = x - w / O;
5088
5088
  if (i.beginPath(), o) {
5089
- const O = (C + P) / 2;
5090
- if (i.arc(r, a, d, C, O), i.arc(r, a, d, O, P), v > 0) {
5091
- const Y = Ot(S, P, r, a);
5092
- i.arc(Y.x, Y.y, v, P, x + j);
5089
+ const P = (M + A) / 2;
5090
+ if (i.arc(r, a, d, M, P), i.arc(r, a, d, P, A), v > 0) {
5091
+ const W = Tt(S, A, r, a);
5092
+ i.arc(W.x, W.y, v, A, x + V);
5093
5093
  }
5094
- const R = Ot(A, x, r, a);
5094
+ const R = Tt(O, x, r, a);
5095
5095
  if (i.lineTo(R.x, R.y), w > 0) {
5096
- const Y = Ot(A, U, r, a);
5097
- i.arc(Y.x, Y.y, w, x + j, U + Math.PI);
5096
+ const W = Tt(O, U, r, a);
5097
+ i.arc(W.x, W.y, w, x + V, U + Math.PI);
5098
5098
  }
5099
- const z = (x - w / f + (b + _ / f)) / 2;
5100
- if (i.arc(r, a, f, x - w / f, z, !0), i.arc(r, a, f, z, b + _ / f, !0), _ > 0) {
5101
- const Y = Ot(M, H, r, a);
5102
- i.arc(Y.x, Y.y, _, H + Math.PI, b - j);
5099
+ const F = (x - w / f + (b + _ / f)) / 2;
5100
+ if (i.arc(r, a, f, x - w / f, F, !0), i.arc(r, a, f, F, b + _ / f, !0), _ > 0) {
5101
+ const W = Tt(C, j, r, a);
5102
+ i.arc(W.x, W.y, _, j + Math.PI, b - V);
5103
5103
  }
5104
- const G = Ot(k, b, r, a);
5104
+ const G = Tt(k, b, r, a);
5105
5105
  if (i.lineTo(G.x, G.y), y > 0) {
5106
- const Y = Ot(k, C, r, a);
5107
- i.arc(Y.x, Y.y, y, b - j, C);
5106
+ const W = Tt(k, M, r, a);
5107
+ i.arc(W.x, W.y, y, b - V, M);
5108
5108
  }
5109
5109
  } else {
5110
5110
  i.moveTo(r, a);
5111
- const O = Math.cos(C) * d + r, R = Math.sin(C) * d + a;
5112
- i.lineTo(O, R);
5113
- const z = Math.cos(P) * d + r, G = Math.sin(P) * d + a;
5114
- i.lineTo(z, G);
5111
+ const P = Math.cos(M) * d + r, R = Math.sin(M) * d + a;
5112
+ i.lineTo(P, R);
5113
+ const F = Math.cos(A) * d + r, G = Math.sin(A) * d + a;
5114
+ i.lineTo(F, G);
5115
5115
  }
5116
5116
  i.closePath();
5117
5117
  }
@@ -5122,25 +5122,25 @@ function ya(i, t, e, s, n) {
5122
5122
  Te(i, t, e, s, l, n);
5123
5123
  for (let c = 0; c < o; ++c)
5124
5124
  i.fill();
5125
- isNaN(a) || (l = r + (a % $ || $));
5125
+ isNaN(a) || (l = r + (a % Y || Y));
5126
5126
  }
5127
5127
  return Te(i, t, e, s, l, n), i.fill(), l;
5128
5128
  }
5129
5129
  function va(i, t, e, s, n) {
5130
- const { fullCircles: o, startAngle: r, circumference: a, options: l } = t, { borderWidth: c, borderJoinStyle: h, borderDash: d, borderDashOffset: f, borderRadius: u } = l, g = l.borderAlign === "inner";
5130
+ const { fullCircles: o, startAngle: r, circumference: a, options: l } = t, { borderWidth: c, borderJoinStyle: h, borderDash: d, borderDashOffset: f, borderRadius: u } = l, p = l.borderAlign === "inner";
5131
5131
  if (!c)
5132
5132
  return;
5133
- i.setLineDash(d || []), i.lineDashOffset = f, g ? (i.lineWidth = c * 2, i.lineJoin = h || "round") : (i.lineWidth = c, i.lineJoin = h || "bevel");
5134
- let p = t.endAngle;
5133
+ i.setLineDash(d || []), i.lineDashOffset = f, p ? (i.lineWidth = c * 2, i.lineJoin = h || "round") : (i.lineWidth = c, i.lineJoin = h || "bevel");
5134
+ let m = t.endAngle;
5135
5135
  if (o) {
5136
- Te(i, t, e, s, p, n);
5137
- for (let m = 0; m < o; ++m)
5136
+ Te(i, t, e, s, m, n);
5137
+ for (let g = 0; g < o; ++g)
5138
5138
  i.stroke();
5139
- isNaN(a) || (p = r + (a % $ || $));
5139
+ isNaN(a) || (m = r + (a % Y || Y));
5140
5140
  }
5141
- g && ba(i, t, p), l.selfJoin && p - r >= E && u === 0 && h !== "miter" && ma(i, t, p), o || (Te(i, t, e, s, p, n), i.stroke());
5141
+ p && ba(i, t, m), l.selfJoin && m - r >= E && u === 0 && h !== "miter" && ma(i, t, m), o || (Te(i, t, e, s, m, n), i.stroke());
5142
5142
  }
5143
- class wa extends se {
5143
+ class wa extends ne {
5144
5144
  static id = "arc";
5145
5145
  static defaults = {
5146
5146
  borderAlign: "center",
@@ -5177,7 +5177,7 @@ class wa extends se {
5177
5177
  const n = this.getProps([
5178
5178
  "x",
5179
5179
  "y"
5180
- ], s), { angle: o, distance: r } = Ps(n, {
5180
+ ], s), { angle: o, distance: r } = Os(n, {
5181
5181
  x: t,
5182
5182
  y: e
5183
5183
  }), { startAngle: a, endAngle: l, innerRadius: c, outerRadius: h, circumference: d } = this.getProps([
@@ -5186,8 +5186,8 @@ class wa extends se {
5186
5186
  "innerRadius",
5187
5187
  "outerRadius",
5188
5188
  "circumference"
5189
- ], s), f = (this.options.spacing + this.options.borderWidth) / 2, u = L(d, l - a), g = Os(o, a, l) && a !== l, p = u >= $ || g, m = Ut(r, c + f, h + f);
5190
- return p && m;
5189
+ ], s), f = (this.options.spacing + this.options.borderWidth) / 2, u = L(d, l - a), p = Ds(o, a, l) && a !== l, m = u >= Y || p, g = Xt(r, c + f, h + f);
5190
+ return m && g;
5191
5191
  }
5192
5192
  getCenterPoint(t) {
5193
5193
  const { x: e, y: s, startAngle: n, endAngle: o, innerRadius: r, outerRadius: a } = this.getProps([
@@ -5208,7 +5208,7 @@ class wa extends se {
5208
5208
  }
5209
5209
  draw(t) {
5210
5210
  const { options: e, circumference: s } = this, n = (e.offset || 0) / 4, o = (e.spacing || 0) / 2, r = e.circular;
5211
- if (this.pixelMargin = e.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = s > $ ? Math.floor(s / $) : 0, s === 0 || this.innerRadius < 0 || this.outerRadius < 0)
5211
+ if (this.pixelMargin = e.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = s > Y ? Math.floor(s / Y) : 0, s === 0 || this.innerRadius < 0 || this.outerRadius < 0)
5212
5212
  return;
5213
5213
  t.save();
5214
5214
  const a = (this.startAngle + this.endAngle) / 2;
@@ -5217,7 +5217,7 @@ class wa extends se {
5217
5217
  t.fillStyle = e.backgroundColor, t.strokeStyle = e.borderColor, ya(t, this, c, o, r), va(t, this, c, o, r), t.restore();
5218
5218
  }
5219
5219
  }
5220
- const os = (i, t) => {
5220
+ const rs = (i, t) => {
5221
5221
  let { boxHeight: e = t, boxWidth: s = t } = i;
5222
5222
  return i.usePointStyle && (e = Math.min(e, t), s = i.pointStyleWidth || Math.min(s, t)), {
5223
5223
  boxWidth: s,
@@ -5225,7 +5225,7 @@ const os = (i, t) => {
5225
5225
  itemHeight: Math.max(t, e)
5226
5226
  };
5227
5227
  }, ka = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
5228
- class rs extends se {
5228
+ class as extends ne {
5229
5229
  constructor(t) {
5230
5230
  super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
5231
5231
  }
@@ -5248,7 +5248,7 @@ class rs extends se {
5248
5248
  this.width = this.height = 0;
5249
5249
  return;
5250
5250
  }
5251
- const s = t.labels, n = V(s.font), o = n.size, r = this._computeTitleHeight(), { boxWidth: a, itemHeight: l } = os(s, o);
5251
+ const s = t.labels, n = $(s.font), o = n.size, r = this._computeTitleHeight(), { boxWidth: a, itemHeight: l } = rs(s, o);
5252
5252
  let c, h;
5253
5253
  e.font = n.string, this.isHorizontal() ? (c = this.maxWidth, h = this._fitRows(r, o, a, l) + 10) : (h = this.maxHeight, c = this._fitCols(r, n, a, l) + 10), this.width = Math.min(c, t.maxWidth || this.maxWidth), this.height = Math.min(h, t.maxHeight || this.maxHeight);
5254
5254
  }
@@ -5259,29 +5259,29 @@ class rs extends se {
5259
5259
  let d = t;
5260
5260
  o.textAlign = "left", o.textBaseline = "middle";
5261
5261
  let f = -1, u = -h;
5262
- return this.legendItems.forEach((g, p) => {
5263
- const m = s + e / 2 + o.measureText(g.text).width;
5264
- (p === 0 || c[c.length - 1] + m + 2 * a > r) && (d += h, c[c.length - (p > 0 ? 0 : 1)] = 0, u += h, f++), l[p] = {
5262
+ return this.legendItems.forEach((p, m) => {
5263
+ const g = s + e / 2 + o.measureText(p.text).width;
5264
+ (m === 0 || c[c.length - 1] + g + 2 * a > r) && (d += h, c[c.length - (m > 0 ? 0 : 1)] = 0, u += h, f++), l[m] = {
5265
5265
  left: 0,
5266
5266
  top: u,
5267
5267
  row: f,
5268
- width: m,
5268
+ width: g,
5269
5269
  height: n
5270
- }, c[c.length - 1] += m + a;
5270
+ }, c[c.length - 1] += g + a;
5271
5271
  }), d;
5272
5272
  }
5273
5273
  _fitCols(t, e, s, n) {
5274
5274
  const { ctx: o, maxHeight: r, options: { labels: { padding: a } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], h = r - t;
5275
- let d = a, f = 0, u = 0, g = 0, p = 0;
5276
- return this.legendItems.forEach((m, b) => {
5277
- const { itemWidth: x, itemHeight: y } = Sa(s, e, o, m, n);
5275
+ let d = a, f = 0, u = 0, p = 0, m = 0;
5276
+ return this.legendItems.forEach((g, b) => {
5277
+ const { itemWidth: x, itemHeight: y } = Sa(s, e, o, g, n);
5278
5278
  b > 0 && u + y + 2 * a > h && (d += f + a, c.push({
5279
5279
  width: f,
5280
5280
  height: u
5281
- }), g += f + a, p++, f = u = 0), l[b] = {
5282
- left: g,
5281
+ }), p += f + a, m++, f = u = 0), l[b] = {
5282
+ left: p,
5283
5283
  top: u,
5284
- col: p,
5284
+ col: m,
5285
5285
  width: x,
5286
5286
  height: y
5287
5287
  }, f = Math.max(f, x), u += y + a;
@@ -5293,7 +5293,7 @@ class rs extends se {
5293
5293
  adjustHitBoxes() {
5294
5294
  if (!this.options.display)
5295
5295
  return;
5296
- const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: s, labels: { padding: n }, rtl: o } } = this, r = Et(o, this.left, this.width);
5296
+ const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: s, labels: { padding: n }, rtl: o } } = this, r = Ft(o, this.left, this.width);
5297
5297
  if (this.isHorizontal()) {
5298
5298
  let a = 0, l = Z(s, this.left + n, this.right - this.lineWidths[a]);
5299
5299
  for (const c of e)
@@ -5310,39 +5310,39 @@ class rs extends se {
5310
5310
  draw() {
5311
5311
  if (this.options.display) {
5312
5312
  const t = this.ctx;
5313
- oi(t, this), this._draw(), ri(t);
5313
+ ri(t, this), this._draw(), ai(t);
5314
5314
  }
5315
5315
  }
5316
5316
  _draw() {
5317
- const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: r } = t, a = B.color, l = Et(t.rtl, this.left, this.width), c = V(r.font), { padding: h } = r, d = c.size, f = d / 2;
5317
+ const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: r } = t, a = B.color, l = Ft(t.rtl, this.left, this.width), c = $(r.font), { padding: h } = r, d = c.size, f = d / 2;
5318
5318
  let u;
5319
5319
  this.drawTitle(), n.textAlign = l.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = c.string;
5320
- const { boxWidth: g, boxHeight: p, itemHeight: m } = os(r, d), b = function(w, k, S) {
5321
- if (isNaN(g) || g <= 0 || isNaN(p) || p < 0)
5320
+ const { boxWidth: p, boxHeight: m, itemHeight: g } = rs(r, d), b = function(w, k, S) {
5321
+ if (isNaN(p) || p <= 0 || isNaN(m) || m < 0)
5322
5322
  return;
5323
5323
  n.save();
5324
- const C = L(S.lineWidth, 1);
5325
- if (n.fillStyle = L(S.fillStyle, a), n.lineCap = L(S.lineCap, "butt"), n.lineDashOffset = L(S.lineDashOffset, 0), n.lineJoin = L(S.lineJoin, "miter"), n.lineWidth = C, n.strokeStyle = L(S.strokeStyle, a), n.setLineDash(L(S.lineDash, [])), r.usePointStyle) {
5326
- const P = {
5327
- radius: p * Math.SQRT2 / 2,
5324
+ const M = L(S.lineWidth, 1);
5325
+ if (n.fillStyle = L(S.fillStyle, a), n.lineCap = L(S.lineCap, "butt"), n.lineDashOffset = L(S.lineDashOffset, 0), n.lineJoin = L(S.lineJoin, "miter"), n.lineWidth = M, n.strokeStyle = L(S.strokeStyle, a), n.setLineDash(L(S.lineDash, [])), r.usePointStyle) {
5326
+ const A = {
5327
+ radius: m * Math.SQRT2 / 2,
5328
5328
  pointStyle: S.pointStyle,
5329
5329
  rotation: S.rotation,
5330
- borderWidth: C
5331
- }, M = l.xPlus(w, g / 2), A = k + f;
5332
- Fs(n, P, M, A, r.pointStyleWidth && g);
5330
+ borderWidth: M
5331
+ }, C = l.xPlus(w, p / 2), O = k + f;
5332
+ zs(n, A, C, O, r.pointStyleWidth && p);
5333
5333
  } else {
5334
- const P = k + Math.max((d - p) / 2, 0), M = l.leftForLtr(w, g), A = It(S.borderRadius);
5335
- n.beginPath(), Object.values(A).some((H) => H !== 0) ? Pe(n, {
5336
- x: M,
5337
- y: P,
5338
- w: g,
5339
- h: p,
5340
- radius: A
5341
- }) : n.rect(M, P, g, p), n.fill(), C !== 0 && n.stroke();
5334
+ const A = k + Math.max((d - m) / 2, 0), C = l.leftForLtr(w, p), O = Et(S.borderRadius);
5335
+ n.beginPath(), Object.values(O).some((j) => j !== 0) ? Pe(n, {
5336
+ x: C,
5337
+ y: A,
5338
+ w: p,
5339
+ h: m,
5340
+ radius: O
5341
+ }) : n.rect(C, A, p, m), n.fill(), M !== 0 && n.stroke();
5342
5342
  }
5343
5343
  n.restore();
5344
5344
  }, x = function(w, k, S) {
5345
- Ft(n, S.text, w, k + m / 2, c, {
5345
+ zt(n, S.text, w, k + g / 2, c, {
5346
5346
  strikethrough: S.hidden,
5347
5347
  textAlign: l.textAlign(S.textAlign)
5348
5348
  });
@@ -5355,47 +5355,47 @@ class rs extends se {
5355
5355
  x: this.left + h,
5356
5356
  y: Z(o, this.top + v + h, this.bottom - e[0].height),
5357
5357
  line: 0
5358
- }, Ns(this.ctx, t.textDirection);
5359
- const _ = m + h;
5358
+ }, js(this.ctx, t.textDirection);
5359
+ const _ = g + h;
5360
5360
  this.legendItems.forEach((w, k) => {
5361
5361
  n.strokeStyle = w.fontColor, n.fillStyle = w.fontColor;
5362
- const S = n.measureText(w.text).width, C = l.textAlign(w.textAlign || (w.textAlign = r.textAlign)), P = g + f + S;
5363
- let M = u.x, A = u.y;
5364
- l.setWidth(this.width), y ? k > 0 && M + P + h > this.right && (A = u.y += _, u.line++, M = u.x = Z(o, this.left + h, this.right - s[u.line])) : k > 0 && A + _ > this.bottom && (M = u.x = M + e[u.line].width + h, u.line++, A = u.y = Z(o, this.top + v + h, this.bottom - e[u.line].height));
5365
- const H = l.x(M);
5366
- if (b(H, A, w), M = so(C, M + g + f, y ? M + P : this.right, t.rtl), x(l.x(M), A, w), y)
5367
- u.x += P + h;
5362
+ const S = n.measureText(w.text).width, M = l.textAlign(w.textAlign || (w.textAlign = r.textAlign)), A = p + f + S;
5363
+ let C = u.x, O = u.y;
5364
+ l.setWidth(this.width), y ? k > 0 && C + A + h > this.right && (O = u.y += _, u.line++, C = u.x = Z(o, this.left + h, this.right - s[u.line])) : k > 0 && O + _ > this.bottom && (C = u.x = C + e[u.line].width + h, u.line++, O = u.y = Z(o, this.top + v + h, this.bottom - e[u.line].height));
5365
+ const j = l.x(C);
5366
+ if (b(j, O, w), C = so(M, C + p + f, y ? C + A : this.right, t.rtl), x(l.x(C), O, w), y)
5367
+ u.x += A + h;
5368
5368
  else if (typeof w.text != "string") {
5369
5369
  const U = c.lineHeight;
5370
- u.y += en(w, U) + h;
5370
+ u.y += sn(w, U) + h;
5371
5371
  } else
5372
5372
  u.y += _;
5373
- }), js(this.ctx, t.textDirection);
5373
+ }), Vs(this.ctx, t.textDirection);
5374
5374
  }
5375
5375
  drawTitle() {
5376
- const t = this.options, e = t.title, s = V(e.font), n = X(e.padding);
5376
+ const t = this.options, e = t.title, s = $(e.font), n = X(e.padding);
5377
5377
  if (!e.display)
5378
5378
  return;
5379
- const o = Et(t.rtl, this.left, this.width), r = this.ctx, a = e.position, l = s.size / 2, c = n.top + l;
5379
+ const o = Ft(t.rtl, this.left, this.width), r = this.ctx, a = e.position, l = s.size / 2, c = n.top + l;
5380
5380
  let h, d = this.left, f = this.width;
5381
5381
  if (this.isHorizontal())
5382
5382
  f = Math.max(...this.lineWidths), h = this.top + c, d = Z(t.align, d, this.right - f);
5383
5383
  else {
5384
- const g = this.columnSizes.reduce((p, m) => Math.max(p, m.height), 0);
5385
- h = c + Z(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight());
5384
+ const p = this.columnSizes.reduce((m, g) => Math.max(m, g.height), 0);
5385
+ h = c + Z(t.align, this.top, this.bottom - p - t.labels.padding - this._computeTitleHeight());
5386
5386
  }
5387
5387
  const u = Z(a, d, d + f);
5388
- r.textAlign = o.textAlign(Rs(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = s.string, Ft(r, e.text, u, h, s);
5388
+ r.textAlign = o.textAlign(Is(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = s.string, zt(r, e.text, u, h, s);
5389
5389
  }
5390
5390
  _computeTitleHeight() {
5391
- const t = this.options.title, e = V(t.font), s = X(t.padding);
5391
+ const t = this.options.title, e = $(t.font), s = X(t.padding);
5392
5392
  return t.display ? e.lineHeight + s.height : 0;
5393
5393
  }
5394
5394
  _getLegendItemAt(t, e) {
5395
5395
  let s, n, o;
5396
- if (Ut(t, this.left, this.right) && Ut(e, this.top, this.bottom)) {
5396
+ if (Xt(t, this.left, this.right) && Xt(e, this.top, this.bottom)) {
5397
5397
  for (o = this.legendHitBoxes, s = 0; s < o.length; ++s)
5398
- if (n = o[s], Ut(t, n.left, n.left + n.width) && Ut(e, n.top, n.top + n.height))
5398
+ if (n = o[s], Xt(t, n.left, n.left + n.width) && Xt(e, n.top, n.top + n.height))
5399
5399
  return this.legendItems[s];
5400
5400
  }
5401
5401
  return null;
@@ -5436,9 +5436,9 @@ function Ma(i, t, e, s) {
5436
5436
  }
5437
5437
  function Ca(i, t, e) {
5438
5438
  let s = i;
5439
- return typeof t.text != "string" && (s = en(t, e)), s;
5439
+ return typeof t.text != "string" && (s = sn(t, e)), s;
5440
5440
  }
5441
- function en(i, t) {
5441
+ function sn(i, t) {
5442
5442
  const e = i.text ? i.text.length : 0;
5443
5443
  return t * e;
5444
5444
  }
@@ -5447,21 +5447,21 @@ function Aa(i, t) {
5447
5447
  }
5448
5448
  var Pa = {
5449
5449
  id: "legend",
5450
- _element: rs,
5450
+ _element: as,
5451
5451
  start(i, t, e) {
5452
- const s = i.legend = new rs({
5452
+ const s = i.legend = new as({
5453
5453
  ctx: i.ctx,
5454
5454
  options: e,
5455
5455
  chart: i
5456
5456
  });
5457
- gt.configure(i, s, e), gt.addBox(i, s);
5457
+ mt.configure(i, s, e), mt.addBox(i, s);
5458
5458
  },
5459
5459
  stop(i) {
5460
- gt.removeBox(i, i.legend), delete i.legend;
5460
+ mt.removeBox(i, i.legend), delete i.legend;
5461
5461
  },
5462
5462
  beforeUpdate(i, t, e) {
5463
5463
  const s = i.legend;
5464
- gt.configure(i, s, e), s.options = e;
5464
+ mt.configure(i, s, e), s.options = e;
5465
5465
  },
5466
5466
  afterUpdate(i) {
5467
5467
  const t = i.legend;
@@ -5529,7 +5529,7 @@ var Pa = {
5529
5529
  }
5530
5530
  }
5531
5531
  };
5532
- const Kt = {
5532
+ const qt = {
5533
5533
  average(i) {
5534
5534
  if (!i.length)
5535
5535
  return !1;
@@ -5569,8 +5569,8 @@ const Kt = {
5569
5569
  };
5570
5570
  }
5571
5571
  };
5572
- function st(i, t) {
5573
- return t && (W(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
5572
+ function nt(i, t) {
5573
+ return t && (H(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
5574
5574
  }
5575
5575
  function lt(i) {
5576
5576
  return (typeof i == "string" || i instanceof String) && i.indexOf(`
@@ -5591,23 +5591,23 @@ function Oa(i, t) {
5591
5591
  element: e
5592
5592
  };
5593
5593
  }
5594
- function as(i, t) {
5595
- const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: r, boxHeight: a } = t, l = V(t.bodyFont), c = V(t.titleFont), h = V(t.footerFont), d = o.length, f = n.length, u = s.length, g = X(t.padding);
5596
- let p = g.height, m = 0, b = s.reduce((v, _) => v + _.before.length + _.lines.length + _.after.length, 0);
5597
- if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
5594
+ function ls(i, t) {
5595
+ const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: r, boxHeight: a } = t, l = $(t.bodyFont), c = $(t.titleFont), h = $(t.footerFont), d = o.length, f = n.length, u = s.length, p = X(t.padding);
5596
+ let m = p.height, g = 0, b = s.reduce((v, _) => v + _.before.length + _.lines.length + _.after.length, 0);
5597
+ if (b += i.beforeBody.length + i.afterBody.length, d && (m += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
5598
5598
  const v = t.displayColors ? Math.max(a, l.lineHeight) : l.lineHeight;
5599
- p += u * v + (b - u) * l.lineHeight + (b - 1) * t.bodySpacing;
5599
+ m += u * v + (b - u) * l.lineHeight + (b - 1) * t.bodySpacing;
5600
5600
  }
5601
- f && (p += t.footerMarginTop + f * h.lineHeight + (f - 1) * t.footerSpacing);
5601
+ f && (m += t.footerMarginTop + f * h.lineHeight + (f - 1) * t.footerSpacing);
5602
5602
  let x = 0;
5603
5603
  const y = function(v) {
5604
- m = Math.max(m, e.measureText(v).width + x);
5604
+ g = Math.max(g, e.measureText(v).width + x);
5605
5605
  };
5606
5606
  return e.save(), e.font = c.string, T(i.title, y), e.font = l.string, T(i.beforeBody.concat(i.afterBody), y), x = t.displayColors ? r + 2 + t.boxPadding : 0, T(s, (v) => {
5607
5607
  T(v.before, y), T(v.lines, y), T(v.after, y);
5608
- }), x = 0, e.font = h.string, T(i.footer, y), e.restore(), m += g.width, {
5609
- width: m,
5610
- height: p
5608
+ }), x = 0, e.font = h.string, T(i.footer, y), e.restore(), g += p.width, {
5609
+ width: g,
5610
+ height: m
5611
5611
  };
5612
5612
  }
5613
5613
  function Da(i, t) {
@@ -5624,7 +5624,7 @@ function La(i, t, e, s) {
5624
5624
  let c = "center";
5625
5625
  return s === "center" ? c = n <= (a + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= r - o / 2 && (c = "right"), Ta(c, i, t, e) && (c = "center"), c;
5626
5626
  }
5627
- function ls(i, t, e) {
5627
+ function cs(i, t, e) {
5628
5628
  const s = e.yAlign || t.yAlign || Da(i, e);
5629
5629
  return {
5630
5630
  xAlign: e.xAlign || t.xAlign || La(i, t, e, s),
@@ -5639,34 +5639,34 @@ function Ia(i, t, e) {
5639
5639
  let { y: s, height: n } = i;
5640
5640
  return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
5641
5641
  }
5642
- function cs(i, t, e, s) {
5643
- const { caretSize: n, caretPadding: o, cornerRadius: r } = i, { xAlign: a, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: f, bottomRight: u } = It(r);
5644
- let g = Ra(t, a);
5645
- const p = Ia(t, l, c);
5646
- return l === "center" ? a === "left" ? g += c : a === "right" && (g -= c) : a === "left" ? g -= Math.max(h, f) + n : a === "right" && (g += Math.max(d, u) + n), {
5647
- x: tt(g, 0, s.width - t.width),
5648
- y: tt(p, 0, s.height - t.height)
5642
+ function hs(i, t, e, s) {
5643
+ const { caretSize: n, caretPadding: o, cornerRadius: r } = i, { xAlign: a, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: f, bottomRight: u } = Et(r);
5644
+ let p = Ra(t, a);
5645
+ const m = Ia(t, l, c);
5646
+ return l === "center" ? a === "left" ? p += c : a === "right" && (p -= c) : a === "left" ? p -= Math.max(h, f) + n : a === "right" && (p += Math.max(d, u) + n), {
5647
+ x: tt(p, 0, s.width - t.width),
5648
+ y: tt(m, 0, s.height - t.height)
5649
5649
  };
5650
5650
  }
5651
5651
  function me(i, t, e) {
5652
5652
  const s = X(e.padding);
5653
5653
  return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
5654
5654
  }
5655
- function hs(i) {
5656
- return st([], lt(i));
5655
+ function ds(i) {
5656
+ return nt([], lt(i));
5657
5657
  }
5658
5658
  function Ea(i, t, e) {
5659
- return Mt(i, {
5659
+ return Ot(i, {
5660
5660
  tooltip: t,
5661
5661
  tooltipItems: e,
5662
5662
  type: "tooltip"
5663
5663
  });
5664
5664
  }
5665
- function ds(i, t) {
5665
+ function fs(i, t) {
5666
5666
  const e = t && t.dataset && t.dataset.tooltip && t.dataset.tooltip.callbacks;
5667
5667
  return e ? i.override(e) : i;
5668
5668
  }
5669
- const sn = {
5669
+ const nn = {
5670
5670
  beforeTitle: rt,
5671
5671
  title(i) {
5672
5672
  if (i.length > 0) {
@@ -5689,7 +5689,7 @@ const sn = {
5689
5689
  let t = i.dataset.label || "";
5690
5690
  t && (t += ": ");
5691
5691
  const e = i.formattedValue;
5692
- return F(e) || (t += e), t;
5692
+ return z(e) || (t += e), t;
5693
5693
  },
5694
5694
  labelColor(i) {
5695
5695
  const e = i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);
@@ -5720,10 +5720,10 @@ const sn = {
5720
5720
  };
5721
5721
  function K(i, t, e, s) {
5722
5722
  const n = i[t].call(e, s);
5723
- return typeof n > "u" ? sn[t].call(e, s) : n;
5723
+ return typeof n > "u" ? nn[t].call(e, s) : n;
5724
5724
  }
5725
- class fs extends se {
5726
- static positioners = Kt;
5725
+ class us extends ne {
5726
+ static positioners = qt;
5727
5727
  constructor(t) {
5728
5728
  super(), this.opacity = 0, this._active = [], this._eventPosition = void 0, this._size = void 0, this._cachedAnimations = void 0, this._tooltipItems = [], this.$animations = void 0, this.$context = void 0, this.chart = t.chart, this.options = t.options, this.dataPoints = void 0, this.title = void 0, this.beforeBody = void 0, this.body = void 0, this.afterBody = void 0, this.footer = void 0, this.xAlign = void 0, this.yAlign = void 0, this.x = void 0, this.y = void 0, this.height = void 0, this.width = void 0, this.caretX = void 0, this.caretY = void 0, this.labelColors = void 0, this.labelPointStyles = void 0, this.labelTextColors = void 0;
5729
5729
  }
@@ -5734,7 +5734,7 @@ class fs extends se {
5734
5734
  const t = this._cachedAnimations;
5735
5735
  if (t)
5736
5736
  return t;
5737
- const e = this.chart, s = this.options.setContext(this.getContext()), n = s.enabled && e.options.animation && s.animations, o = new Vs(this.chart, n);
5737
+ const e = this.chart, s = this.options.setContext(this.getContext()), n = s.enabled && e.options.animation && s.animations, o = new $s(this.chart, n);
5738
5738
  return n._cacheable && (this._cachedAnimations = Object.freeze(o)), o;
5739
5739
  }
5740
5740
  getContext() {
@@ -5743,10 +5743,10 @@ class fs extends se {
5743
5743
  getTitle(t, e) {
5744
5744
  const { callbacks: s } = e, n = K(s, "beforeTitle", this, t), o = K(s, "title", this, t), r = K(s, "afterTitle", this, t);
5745
5745
  let a = [];
5746
- return a = st(a, lt(n)), a = st(a, lt(o)), a = st(a, lt(r)), a;
5746
+ return a = nt(a, lt(n)), a = nt(a, lt(o)), a = nt(a, lt(r)), a;
5747
5747
  }
5748
5748
  getBeforeBody(t, e) {
5749
- return hs(K(e.callbacks, "beforeBody", this, t));
5749
+ return ds(K(e.callbacks, "beforeBody", this, t));
5750
5750
  }
5751
5751
  getBody(t, e) {
5752
5752
  const { callbacks: s } = e, n = [];
@@ -5755,17 +5755,17 @@ class fs extends se {
5755
5755
  before: [],
5756
5756
  lines: [],
5757
5757
  after: []
5758
- }, a = ds(s, o);
5759
- st(r.before, lt(K(a, "beforeLabel", this, o))), st(r.lines, K(a, "label", this, o)), st(r.after, lt(K(a, "afterLabel", this, o))), n.push(r);
5758
+ }, a = fs(s, o);
5759
+ nt(r.before, lt(K(a, "beforeLabel", this, o))), nt(r.lines, K(a, "label", this, o)), nt(r.after, lt(K(a, "afterLabel", this, o))), n.push(r);
5760
5760
  }), n;
5761
5761
  }
5762
5762
  getAfterBody(t, e) {
5763
- return hs(K(e.callbacks, "afterBody", this, t));
5763
+ return ds(K(e.callbacks, "afterBody", this, t));
5764
5764
  }
5765
5765
  getFooter(t, e) {
5766
5766
  const { callbacks: s } = e, n = K(s, "beforeFooter", this, t), o = K(s, "footer", this, t), r = K(s, "afterFooter", this, t);
5767
5767
  let a = [];
5768
- return a = st(a, lt(n)), a = st(a, lt(o)), a = st(a, lt(r)), a;
5768
+ return a = nt(a, lt(n)), a = nt(a, lt(o)), a = nt(a, lt(r)), a;
5769
5769
  }
5770
5770
  _createItems(t) {
5771
5771
  const e = this._active, s = this.chart.data, n = [], o = [], r = [];
@@ -5773,7 +5773,7 @@ class fs extends se {
5773
5773
  for (l = 0, c = e.length; l < c; ++l)
5774
5774
  a.push(Oa(this.chart, e[l]));
5775
5775
  return t.filter && (a = a.filter((h, d, f) => t.filter(h, d, f, s))), t.itemSort && (a = a.sort((h, d) => t.itemSort(h, d, s))), T(a, (h) => {
5776
- const d = ds(t.callbacks, h);
5776
+ const d = fs(t.callbacks, h);
5777
5777
  n.push(K(d, "labelColor", this, h)), o.push(K(d, "labelPointStyle", this, h)), r.push(K(d, "labelTextColor", this, h));
5778
5778
  }), this.labelColors = n, this.labelPointStyles = o, this.labelTextColors = r, this.dataPoints = a, a;
5779
5779
  }
@@ -5785,9 +5785,9 @@ class fs extends se {
5785
5785
  opacity: 0
5786
5786
  });
5787
5787
  else {
5788
- const a = Kt[s.position].call(this, n, this._eventPosition);
5788
+ const a = qt[s.position].call(this, n, this._eventPosition);
5789
5789
  r = this._createItems(s), this.title = this.getTitle(r, s), this.beforeBody = this.getBeforeBody(r, s), this.body = this.getBody(r, s), this.afterBody = this.getAfterBody(r, s), this.footer = this.getFooter(r, s);
5790
- const l = this._size = as(this, s), c = Object.assign({}, a, l), h = ls(this.chart, s, c), d = cs(s, c, h, this.chart);
5790
+ const l = this._size = ls(this, s), c = Object.assign({}, a, l), h = cs(this.chart, s, c), d = hs(s, c, h, this.chart);
5791
5791
  this.xAlign = h.xAlign, this.yAlign = h.yAlign, o = {
5792
5792
  opacity: 1,
5793
5793
  x: d.x,
@@ -5809,10 +5809,10 @@ class fs extends se {
5809
5809
  e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
5810
5810
  }
5811
5811
  getCaretPosition(t, e, s) {
5812
- const { xAlign: n, yAlign: o } = this, { caretSize: r, cornerRadius: a } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = It(a), { x: f, y: u } = t, { width: g, height: p } = e;
5813
- let m, b, x, y, v, _;
5814
- return o === "center" ? (v = u + p / 2, n === "left" ? (m = f, b = m - r, y = v + r, _ = v - r) : (m = f + g, b = m + r, y = v - r, _ = v + r), x = m) : (n === "left" ? b = f + Math.max(l, h) + r : n === "right" ? b = f + g - Math.max(c, d) - r : b = this.caretX, o === "top" ? (y = u, v = y - r, m = b - r, x = b + r) : (y = u + p, v = y + r, m = b + r, x = b - r), _ = y), {
5815
- x1: m,
5812
+ const { xAlign: n, yAlign: o } = this, { caretSize: r, cornerRadius: a } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Et(a), { x: f, y: u } = t, { width: p, height: m } = e;
5813
+ let g, b, x, y, v, _;
5814
+ return o === "center" ? (v = u + m / 2, n === "left" ? (g = f, b = g - r, y = v + r, _ = v - r) : (g = f + p, b = g + r, y = v - r, _ = v + r), x = g) : (n === "left" ? b = f + Math.max(l, h) + r : n === "right" ? b = f + p - Math.max(c, d) - r : b = this.caretX, o === "top" ? (y = u, v = y - r, g = b - r, x = b + r) : (y = u + m, v = y + r, g = b + r, x = b - r), _ = y), {
5815
+ x1: g,
5816
5816
  x2: b,
5817
5817
  x3: x,
5818
5818
  y1: y,
@@ -5824,74 +5824,74 @@ class fs extends se {
5824
5824
  const n = this.title, o = n.length;
5825
5825
  let r, a, l;
5826
5826
  if (o) {
5827
- const c = Et(s.rtl, this.x, this.width);
5828
- for (t.x = me(this, s.titleAlign, s), e.textAlign = c.textAlign(s.titleAlign), e.textBaseline = "middle", r = V(s.titleFont), a = s.titleSpacing, e.fillStyle = s.titleColor, e.font = r.string, l = 0; l < o; ++l)
5827
+ const c = Ft(s.rtl, this.x, this.width);
5828
+ for (t.x = me(this, s.titleAlign, s), e.textAlign = c.textAlign(s.titleAlign), e.textBaseline = "middle", r = $(s.titleFont), a = s.titleSpacing, e.fillStyle = s.titleColor, e.font = r.string, l = 0; l < o; ++l)
5829
5829
  e.fillText(n[l], c.x(t.x), t.y + r.lineHeight / 2), t.y += r.lineHeight + a, l + 1 === o && (t.y += s.titleMarginBottom - a);
5830
5830
  }
5831
5831
  }
5832
5832
  _drawColorBox(t, e, s, n, o) {
5833
- const r = this.labelColors[s], a = this.labelPointStyles[s], { boxHeight: l, boxWidth: c } = o, h = V(o.bodyFont), d = me(this, "left", o), f = n.x(d), u = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0, g = e.y + u;
5833
+ const r = this.labelColors[s], a = this.labelPointStyles[s], { boxHeight: l, boxWidth: c } = o, h = $(o.bodyFont), d = me(this, "left", o), f = n.x(d), u = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0, p = e.y + u;
5834
5834
  if (o.usePointStyle) {
5835
- const p = {
5835
+ const m = {
5836
5836
  radius: Math.min(c, l) / 2,
5837
5837
  pointStyle: a.pointStyle,
5838
5838
  rotation: a.rotation,
5839
5839
  borderWidth: 1
5840
- }, m = n.leftForLtr(f, c) + c / 2, b = g + l / 2;
5841
- t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Oi(t, p, m, b), t.strokeStyle = r.borderColor, t.fillStyle = r.backgroundColor, Oi(t, p, m, b);
5840
+ }, g = n.leftForLtr(f, c) + c / 2, b = p + l / 2;
5841
+ t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Di(t, m, g, b), t.strokeStyle = r.borderColor, t.fillStyle = r.backgroundColor, Di(t, m, g, b);
5842
5842
  } else {
5843
5843
  t.lineWidth = D(r.borderWidth) ? Math.max(...Object.values(r.borderWidth)) : r.borderWidth || 1, t.strokeStyle = r.borderColor, t.setLineDash(r.borderDash || []), t.lineDashOffset = r.borderDashOffset || 0;
5844
- const p = n.leftForLtr(f, c), m = n.leftForLtr(n.xPlus(f, 1), c - 2), b = It(r.borderRadius);
5844
+ const m = n.leftForLtr(f, c), g = n.leftForLtr(n.xPlus(f, 1), c - 2), b = Et(r.borderRadius);
5845
5845
  Object.values(b).some((x) => x !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Pe(t, {
5846
- x: p,
5847
- y: g,
5846
+ x: m,
5847
+ y: p,
5848
5848
  w: c,
5849
5849
  h: l,
5850
5850
  radius: b
5851
5851
  }), t.fill(), t.stroke(), t.fillStyle = r.backgroundColor, t.beginPath(), Pe(t, {
5852
- x: m,
5853
- y: g + 1,
5852
+ x: g,
5853
+ y: p + 1,
5854
5854
  w: c - 2,
5855
5855
  h: l - 2,
5856
5856
  radius: b
5857
- }), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(p, g, c, l), t.strokeRect(p, g, c, l), t.fillStyle = r.backgroundColor, t.fillRect(m, g + 1, c - 2, l - 2));
5857
+ }), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(m, p, c, l), t.strokeRect(m, p, c, l), t.fillStyle = r.backgroundColor, t.fillRect(g, p + 1, c - 2, l - 2));
5858
5858
  }
5859
5859
  t.fillStyle = this.labelTextColors[s];
5860
5860
  }
5861
5861
  drawBody(t, e, s) {
5862
- const { body: n } = this, { bodySpacing: o, bodyAlign: r, displayColors: a, boxHeight: l, boxWidth: c, boxPadding: h } = s, d = V(s.bodyFont);
5862
+ const { body: n } = this, { bodySpacing: o, bodyAlign: r, displayColors: a, boxHeight: l, boxWidth: c, boxPadding: h } = s, d = $(s.bodyFont);
5863
5863
  let f = d.lineHeight, u = 0;
5864
- const g = Et(s.rtl, this.x, this.width), p = function(S) {
5865
- e.fillText(S, g.x(t.x + u), t.y + f / 2), t.y += f + o;
5866
- }, m = g.textAlign(r);
5864
+ const p = Ft(s.rtl, this.x, this.width), m = function(S) {
5865
+ e.fillText(S, p.x(t.x + u), t.y + f / 2), t.y += f + o;
5866
+ }, g = p.textAlign(r);
5867
5867
  let b, x, y, v, _, w, k;
5868
- for (e.textAlign = r, e.textBaseline = "middle", e.font = d.string, t.x = me(this, m, s), e.fillStyle = s.bodyColor, T(this.beforeBody, p), u = a && m !== "right" ? r === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = n.length; v < w; ++v) {
5869
- for (b = n[v], x = this.labelTextColors[v], e.fillStyle = x, T(b.before, p), y = b.lines, a && y.length && (this._drawColorBox(e, t, v, g, s), f = Math.max(d.lineHeight, l)), _ = 0, k = y.length; _ < k; ++_)
5870
- p(y[_]), f = d.lineHeight;
5871
- T(b.after, p);
5868
+ for (e.textAlign = r, e.textBaseline = "middle", e.font = d.string, t.x = me(this, g, s), e.fillStyle = s.bodyColor, T(this.beforeBody, m), u = a && g !== "right" ? r === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = n.length; v < w; ++v) {
5869
+ for (b = n[v], x = this.labelTextColors[v], e.fillStyle = x, T(b.before, m), y = b.lines, a && y.length && (this._drawColorBox(e, t, v, p, s), f = Math.max(d.lineHeight, l)), _ = 0, k = y.length; _ < k; ++_)
5870
+ m(y[_]), f = d.lineHeight;
5871
+ T(b.after, m);
5872
5872
  }
5873
- u = 0, f = d.lineHeight, T(this.afterBody, p), t.y -= o;
5873
+ u = 0, f = d.lineHeight, T(this.afterBody, m), t.y -= o;
5874
5874
  }
5875
5875
  drawFooter(t, e, s) {
5876
5876
  const n = this.footer, o = n.length;
5877
5877
  let r, a;
5878
5878
  if (o) {
5879
- const l = Et(s.rtl, this.x, this.width);
5880
- for (t.x = me(this, s.footerAlign, s), t.y += s.footerMarginTop, e.textAlign = l.textAlign(s.footerAlign), e.textBaseline = "middle", r = V(s.footerFont), e.fillStyle = s.footerColor, e.font = r.string, a = 0; a < o; ++a)
5879
+ const l = Ft(s.rtl, this.x, this.width);
5880
+ for (t.x = me(this, s.footerAlign, s), t.y += s.footerMarginTop, e.textAlign = l.textAlign(s.footerAlign), e.textBaseline = "middle", r = $(s.footerFont), e.fillStyle = s.footerColor, e.font = r.string, a = 0; a < o; ++a)
5881
5881
  e.fillText(n[a], l.x(t.x), t.y + r.lineHeight / 2), t.y += r.lineHeight + s.footerSpacing;
5882
5882
  }
5883
5883
  }
5884
5884
  drawBackground(t, e, s, n) {
5885
- const { xAlign: o, yAlign: r } = this, { x: a, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: f, bottomLeft: u, bottomRight: g } = It(n.cornerRadius);
5886
- e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(a + d, l), r === "top" && this.drawCaret(t, e, s, n), e.lineTo(a + c - f, l), e.quadraticCurveTo(a + c, l, a + c, l + f), r === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(a + c, l + h - g), e.quadraticCurveTo(a + c, l + h, a + c - g, l + h), r === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(a + u, l + h), e.quadraticCurveTo(a, l + h, a, l + h - u), r === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(a, l + d), e.quadraticCurveTo(a, l, a + d, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
5885
+ const { xAlign: o, yAlign: r } = this, { x: a, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: f, bottomLeft: u, bottomRight: p } = Et(n.cornerRadius);
5886
+ e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(a + d, l), r === "top" && this.drawCaret(t, e, s, n), e.lineTo(a + c - f, l), e.quadraticCurveTo(a + c, l, a + c, l + f), r === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(a + c, l + h - p), e.quadraticCurveTo(a + c, l + h, a + c - p, l + h), r === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(a + u, l + h), e.quadraticCurveTo(a, l + h, a, l + h - u), r === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(a, l + d), e.quadraticCurveTo(a, l, a + d, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
5887
5887
  }
5888
5888
  _updateAnimationTarget(t) {
5889
5889
  const e = this.chart, s = this.$animations, n = s && s.x, o = s && s.y;
5890
5890
  if (n || o) {
5891
- const r = Kt[t.position].call(this, this._active, this._eventPosition);
5891
+ const r = qt[t.position].call(this, this._active, this._eventPosition);
5892
5892
  if (!r)
5893
5893
  return;
5894
- const a = this._size = as(this, t), l = Object.assign({}, r, this._size), c = ls(e, t, l), h = cs(t, l, c, e);
5894
+ const a = this._size = ls(this, t), l = Object.assign({}, r, this._size), c = cs(e, t, l), h = hs(t, l, c, e);
5895
5895
  (n._to !== h.x || o._to !== h.y) && (this.xAlign = c.xAlign, this.yAlign = c.yAlign, this.width = a.width, this.height = a.height, this.caretX = r.x, this.caretY = r.y, this._resolveAnimations().update(this, h));
5896
5896
  }
5897
5897
  }
@@ -5913,7 +5913,7 @@ class fs extends se {
5913
5913
  };
5914
5914
  s = Math.abs(s) < 1e-3 ? 0 : s;
5915
5915
  const r = X(e.padding), a = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
5916
- e.enabled && a && (t.save(), t.globalAlpha = s, this.drawBackground(o, t, n, e), Ns(t, e.textDirection), o.y += r.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), js(t, e.textDirection), t.restore());
5916
+ e.enabled && a && (t.save(), t.globalAlpha = s, this.drawBackground(o, t, n, e), js(t, e.textDirection), o.y += r.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), Vs(t, e.textDirection), t.restore());
5917
5917
  }
5918
5918
  getActiveElements() {
5919
5919
  return this._active || [];
@@ -5951,16 +5951,16 @@ class fs extends se {
5951
5951
  return o.reverse && r.reverse(), r;
5952
5952
  }
5953
5953
  _positionChanged(t, e) {
5954
- const { caretX: s, caretY: n, options: o } = this, r = Kt[o.position].call(this, t, e);
5954
+ const { caretX: s, caretY: n, options: o } = this, r = qt[o.position].call(this, t, e);
5955
5955
  return r !== !1 && (s !== r.x || n !== r.y);
5956
5956
  }
5957
5957
  }
5958
5958
  var Fa = {
5959
5959
  id: "tooltip",
5960
- _element: fs,
5961
- positioners: Kt,
5960
+ _element: us,
5961
+ positioners: qt,
5962
5962
  afterInit(i, t, e) {
5963
- e && (i.tooltip = new fs({
5963
+ e && (i.tooltip = new us({
5964
5964
  chart: i,
5965
5965
  options: e
5966
5966
  }));
@@ -6046,7 +6046,7 @@ var Fa = {
6046
6046
  duration: 200
6047
6047
  }
6048
6048
  },
6049
- callbacks: sn
6049
+ callbacks: nn
6050
6050
  },
6051
6051
  defaultRoutes: {
6052
6052
  bodyFont: "font",
@@ -6072,47 +6072,47 @@ var Fa = {
6072
6072
  ]
6073
6073
  };
6074
6074
  function za(i, t) {
6075
- const e = [], { bounds: n, step: o, min: r, max: a, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: f } = i, u = o || 1, g = h - 1, { min: p, max: m } = t, b = !F(r), x = !F(a), y = !F(c), v = (m - p) / (d + 1);
6076
- let _ = vi((m - p) / g / u) * u, w, k, S, C;
6075
+ const e = [], { bounds: n, step: o, min: r, max: a, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: f } = i, u = o || 1, p = h - 1, { min: m, max: g } = t, b = !z(r), x = !z(a), y = !z(c), v = (g - m) / (d + 1);
6076
+ let _ = wi((g - m) / p / u) * u, w, k, S, M;
6077
6077
  if (_ < 1e-14 && !b && !x)
6078
6078
  return [
6079
6079
  {
6080
- value: p
6080
+ value: m
6081
6081
  },
6082
6082
  {
6083
- value: m
6083
+ value: g
6084
6084
  }
6085
6085
  ];
6086
- C = Math.ceil(m / _) - Math.floor(p / _), C > g && (_ = vi(C * _ / g / u) * u), F(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), n === "ticks" ? (k = Math.floor(p / _) * _, S = Math.ceil(m / _) * _) : (k = p, S = m), b && x && o && Kn((a - r) / o, _ / 1e3) ? (C = Math.round(Math.min((a - r) / _, h)), _ = (a - r) / C, k = r, S = a) : y ? (k = b ? r : k, S = x ? a : S, C = c - 1, _ = (S - k) / C) : (C = (S - k) / _, xe(C, Math.round(C), _ / 1e3) ? C = Math.round(C) : C = Math.ceil(C));
6087
- const P = Math.max(wi(_), wi(k));
6088
- w = Math.pow(10, F(l) ? P : l), k = Math.round(k * w) / w, S = Math.round(S * w) / w;
6089
- let M = 0;
6086
+ M = Math.ceil(g / _) - Math.floor(m / _), M > p && (_ = wi(M * _ / p / u) * u), z(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), n === "ticks" ? (k = Math.floor(m / _) * _, S = Math.ceil(g / _) * _) : (k = m, S = g), b && x && o && Kn((a - r) / o, _ / 1e3) ? (M = Math.round(Math.min((a - r) / _, h)), _ = (a - r) / M, k = r, S = a) : y ? (k = b ? r : k, S = x ? a : S, M = c - 1, _ = (S - k) / M) : (M = (S - k) / _, xe(M, Math.round(M), _ / 1e3) ? M = Math.round(M) : M = Math.ceil(M));
6087
+ const A = Math.max(ki(_), ki(k));
6088
+ w = Math.pow(10, z(l) ? A : l), k = Math.round(k * w) / w, S = Math.round(S * w) / w;
6089
+ let C = 0;
6090
6090
  for (b && (f && k !== r ? (e.push({
6091
6091
  value: r
6092
- }), k < r && M++, xe(Math.round((k + M * _) * w) / w, r, us(r, v, i)) && M++) : k < r && M++); M < C; ++M) {
6093
- const A = Math.round((k + M * _) * w) / w;
6094
- if (x && A > a)
6092
+ }), k < r && C++, xe(Math.round((k + C * _) * w) / w, r, gs(r, v, i)) && C++) : k < r && C++); C < M; ++C) {
6093
+ const O = Math.round((k + C * _) * w) / w;
6094
+ if (x && O > a)
6095
6095
  break;
6096
6096
  e.push({
6097
- value: A
6097
+ value: O
6098
6098
  });
6099
6099
  }
6100
- return x && f && S !== a ? e.length && xe(e[e.length - 1].value, a, us(a, v, i)) ? e[e.length - 1].value = a : e.push({
6100
+ return x && f && S !== a ? e.length && xe(e[e.length - 1].value, a, gs(a, v, i)) ? e[e.length - 1].value = a : e.push({
6101
6101
  value: a
6102
6102
  }) : (!x || S === a) && e.push({
6103
6103
  value: S
6104
6104
  }), e;
6105
6105
  }
6106
- function us(i, t, { horizontal: e, minRotation: s }) {
6107
- const n = ft(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, r = 0.75 * t * ("" + i).length;
6106
+ function gs(i, t, { horizontal: e, minRotation: s }) {
6107
+ const n = gt(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, r = 0.75 * t * ("" + i).length;
6108
6108
  return Math.min(t / o, r);
6109
6109
  }
6110
- class gs extends ne {
6110
+ class ps extends oe {
6111
6111
  constructor(t) {
6112
6112
  super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
6113
6113
  }
6114
6114
  parse(t, e) {
6115
- return F(t) || (typeof t == "number" || t instanceof Number) && !isFinite(+t) ? null : +t;
6115
+ return z(t) || (typeof t == "number" || t instanceof Number) && !isFinite(+t) ? null : +t;
6116
6116
  }
6117
6117
  handleTickRangeOptions() {
6118
6118
  const { beginAtZero: t } = this.options, { minDefined: e, maxDefined: s } = this.getUserBounds();
@@ -6165,10 +6165,10 @@ class gs extends ne {
6165
6165
  this._startValue = e, this._endValue = s, this._valueRange = s - e;
6166
6166
  }
6167
6167
  getLabelForValue(t) {
6168
- return ni(t, this.chart.options.locale, this.options.ticks.format);
6168
+ return oi(t, this.chart.options.locale, this.options.ticks.format);
6169
6169
  }
6170
6170
  }
6171
- function Ze(i) {
6171
+ function Qe(i) {
6172
6172
  const t = i.ticks;
6173
6173
  if (t.display && i.display) {
6174
6174
  const e = X(t.backdropPadding);
@@ -6177,14 +6177,14 @@ function Ze(i) {
6177
6177
  return 0;
6178
6178
  }
6179
6179
  function Ba(i, t, e) {
6180
- return e = W(e) ? e : [
6180
+ return e = H(e) ? e : [
6181
6181
  e
6182
6182
  ], {
6183
6183
  w: po(i, t.string, e),
6184
6184
  h: e.length * t.lineHeight
6185
6185
  };
6186
6186
  }
6187
- function ps(i, t, e, s, n) {
6187
+ function ms(i, t, e, s, n) {
6188
6188
  return i === s || i === n ? {
6189
6189
  start: t - e / 2,
6190
6190
  end: t + e / 2
@@ -6206,10 +6206,10 @@ function Ha(i) {
6206
6206
  for (let l = 0; l < o; l++) {
6207
6207
  const c = r.setContext(i.getPointLabelContext(l));
6208
6208
  n[l] = c.padding;
6209
- const h = i.getPointPosition(l, i.drawingArea + n[l], a), d = V(c.font), f = Ba(i.ctx, d, i._pointLabels[l]);
6209
+ const h = i.getPointPosition(l, i.drawingArea + n[l], a), d = $(c.font), f = Ba(i.ctx, d, i._pointLabels[l]);
6210
6210
  s[l] = f;
6211
- const u = Q(i.getIndexAngle(l) + a), g = Math.round(ii(u)), p = ps(g, h.x, f.w, 0, 180), m = ps(g, h.y, f.h, 90, 270);
6212
- Wa(e, t, u, p, m);
6211
+ const u = Q(i.getIndexAngle(l) + a), p = Math.round(si(u)), m = ms(p, h.x, f.w, 0, 180), g = ms(p, h.y, f.h, 90, 270);
6212
+ Wa(e, t, u, m, g);
6213
6213
  }
6214
6214
  i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Va(i, s, n);
6215
6215
  }
@@ -6219,7 +6219,7 @@ function Wa(i, t, e, s, n) {
6219
6219
  s.start < t.l ? (a = (t.l - s.start) / o, i.l = Math.min(i.l, t.l - a)) : s.end > t.r && (a = (s.end - t.r) / o, i.r = Math.max(i.r, t.r + a)), n.start < t.t ? (l = (t.t - n.start) / r, i.t = Math.min(i.t, t.t - l)) : n.end > t.b && (l = (n.end - t.b) / r, i.b = Math.max(i.b, t.b + l));
6220
6220
  }
6221
6221
  function Na(i, t, e) {
6222
- const s = i.drawingArea, { extra: n, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, s + n + r, o), c = Math.round(ii(Q(l.angle + j))), h = Ua(l.y, a.h, c), d = $a(c), f = Ya(l.x, a.w, d);
6222
+ const s = i.drawingArea, { extra: n, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, s + n + r, o), c = Math.round(si(Q(l.angle + V))), h = Ua(l.y, a.h, c), d = $a(c), f = Ya(l.x, a.w, d);
6223
6223
  return {
6224
6224
  visible: !0,
6225
6225
  x: l.x,
@@ -6235,23 +6235,23 @@ function ja(i, t) {
6235
6235
  if (!t)
6236
6236
  return !0;
6237
6237
  const { left: e, top: s, right: n, bottom: o } = i;
6238
- return !(Rt({
6238
+ return !(It({
6239
6239
  x: e,
6240
6240
  y: s
6241
- }, t) || Rt({
6241
+ }, t) || It({
6242
6242
  x: e,
6243
6243
  y: o
6244
- }, t) || Rt({
6244
+ }, t) || It({
6245
6245
  x: n,
6246
6246
  y: s
6247
- }, t) || Rt({
6247
+ }, t) || It({
6248
6248
  x: n,
6249
6249
  y: o
6250
6250
  }, t));
6251
6251
  }
6252
6252
  function Va(i, t, e) {
6253
6253
  const s = [], n = i._pointLabels.length, o = i.options, { centerPointLabels: r, display: a } = o.pointLabels, l = {
6254
- extra: Ze(o) / 2,
6254
+ extra: Qe(o) / 2,
6255
6255
  additionalAngle: r ? E / n : 0
6256
6256
  };
6257
6257
  let c;
@@ -6273,11 +6273,11 @@ function Ua(i, t, e) {
6273
6273
  }
6274
6274
  function Xa(i, t, e) {
6275
6275
  const { left: s, top: n, right: o, bottom: r } = e, { backdropColor: a } = t;
6276
- if (!F(a)) {
6277
- const l = It(t.borderRadius), c = X(t.backdropPadding);
6276
+ if (!z(a)) {
6277
+ const l = Et(t.borderRadius), c = X(t.backdropPadding);
6278
6278
  i.fillStyle = a;
6279
6279
  const h = s - c.left, d = n - c.top, f = o - s + c.width, u = r - n + c.height;
6280
- Object.values(l).some((g) => g !== 0) ? (i.beginPath(), Pe(i, {
6280
+ Object.values(l).some((p) => p !== 0) ? (i.beginPath(), Pe(i, {
6281
6281
  x: h,
6282
6282
  y: d,
6283
6283
  w: f,
@@ -6294,18 +6294,18 @@ function Ka(i, t) {
6294
6294
  continue;
6295
6295
  const r = s.setContext(i.getPointLabelContext(n));
6296
6296
  Xa(e, r, o);
6297
- const a = V(r.font), { x: l, y: c, textAlign: h } = o;
6298
- Ft(e, i._pointLabels[n], l, c + a.lineHeight / 2, a, {
6297
+ const a = $(r.font), { x: l, y: c, textAlign: h } = o;
6298
+ zt(e, i._pointLabels[n], l, c + a.lineHeight / 2, a, {
6299
6299
  color: r.color,
6300
6300
  textAlign: h,
6301
6301
  textBaseline: "middle"
6302
6302
  });
6303
6303
  }
6304
6304
  }
6305
- function nn(i, t, e, s) {
6305
+ function on(i, t, e, s) {
6306
6306
  const { ctx: n } = i;
6307
6307
  if (e)
6308
- n.arc(i.xCenter, i.yCenter, t, 0, $);
6308
+ n.arc(i.xCenter, i.yCenter, t, 0, Y);
6309
6309
  else {
6310
6310
  let o = i.getPointPosition(0, t);
6311
6311
  n.moveTo(o.x, o.y);
@@ -6315,16 +6315,16 @@ function nn(i, t, e, s) {
6315
6315
  }
6316
6316
  function qa(i, t, e, s, n) {
6317
6317
  const o = i.ctx, r = t.circular, { color: a, lineWidth: l } = t;
6318
- !r && !s || !a || !l || e < 0 || (o.save(), o.strokeStyle = a, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), nn(i, e, r, s), o.closePath(), o.stroke(), o.restore());
6318
+ !r && !s || !a || !l || e < 0 || (o.save(), o.strokeStyle = a, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), on(i, e, r, s), o.closePath(), o.stroke(), o.restore());
6319
6319
  }
6320
6320
  function Ga(i, t, e) {
6321
- return Mt(i, {
6321
+ return Ot(i, {
6322
6322
  label: e,
6323
6323
  index: t,
6324
6324
  type: "pointLabel"
6325
6325
  });
6326
6326
  }
6327
- class Za extends gs {
6327
+ class Za extends ps {
6328
6328
  static id = "radialLinear";
6329
6329
  static defaults = {
6330
6330
  display: !0,
@@ -6342,7 +6342,7 @@ class Za extends gs {
6342
6342
  startAngle: 0,
6343
6343
  ticks: {
6344
6344
  showLabelBackdrop: !0,
6345
- callback: Es.formatters.numeric
6345
+ callback: Fs.formatters.numeric
6346
6346
  },
6347
6347
  pointLabels: {
6348
6348
  backdropColor: void 0,
@@ -6372,7 +6372,7 @@ class Za extends gs {
6372
6372
  super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
6373
6373
  }
6374
6374
  setDimensions() {
6375
- const t = this._padding = X(Ze(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height;
6375
+ const t = this._padding = X(Qe(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height;
6376
6376
  this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + s / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, s) / 2);
6377
6377
  }
6378
6378
  determineDataLimits() {
@@ -6380,10 +6380,10 @@ class Za extends gs {
6380
6380
  this.min = et(t) && !isNaN(t) ? t : 0, this.max = et(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
6381
6381
  }
6382
6382
  computeTickLimit() {
6383
- return Math.ceil(this.drawingArea / Ze(this.options));
6383
+ return Math.ceil(this.drawingArea / Qe(this.options));
6384
6384
  }
6385
6385
  generateTickLabels(t) {
6386
- gs.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, s) => {
6386
+ ps.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, s) => {
6387
6387
  const n = I(this.options.pointLabels.callback, [
6388
6388
  e,
6389
6389
  s
@@ -6399,17 +6399,17 @@ class Za extends gs {
6399
6399
  this.xCenter += Math.floor((t - e) / 2), this.yCenter += Math.floor((s - n) / 2), this.drawingArea -= Math.min(this.drawingArea / 2, Math.max(t, e, s, n));
6400
6400
  }
6401
6401
  getIndexAngle(t) {
6402
- const e = $ / (this._pointLabels.length || 1), s = this.options.startAngle || 0;
6403
- return Q(t * e + ft(s));
6402
+ const e = Y / (this._pointLabels.length || 1), s = this.options.startAngle || 0;
6403
+ return Q(t * e + gt(s));
6404
6404
  }
6405
6405
  getDistanceFromCenterForValue(t) {
6406
- if (F(t))
6406
+ if (z(t))
6407
6407
  return NaN;
6408
6408
  const e = this.drawingArea / (this.max - this.min);
6409
6409
  return this.options.reverse ? (this.max - t) * e : (t - this.min) * e;
6410
6410
  }
6411
6411
  getValueForDistanceFromCenter(t) {
6412
- if (F(t))
6412
+ if (z(t))
6413
6413
  return NaN;
6414
6414
  const e = t / (this.drawingArea / (this.max - this.min));
6415
6415
  return this.options.reverse ? this.max - e : this.min + e;
@@ -6422,7 +6422,7 @@ class Za extends gs {
6422
6422
  }
6423
6423
  }
6424
6424
  getPointPosition(t, e, s = 0) {
6425
- const n = this.getIndexAngle(t) - j + s;
6425
+ const n = this.getIndexAngle(t) - V + s;
6426
6426
  return {
6427
6427
  x: Math.cos(n) * e + this.xCenter,
6428
6428
  y: Math.sin(n) * e + this.yCenter,
@@ -6448,7 +6448,7 @@ class Za extends gs {
6448
6448
  const { backgroundColor: t, grid: { circular: e } } = this.options;
6449
6449
  if (t) {
6450
6450
  const s = this.ctx;
6451
- s.save(), s.beginPath(), nn(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), s.closePath(), s.fillStyle = t, s.fill(), s.restore();
6451
+ s.save(), s.beginPath(), on(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), s.closePath(), s.fillStyle = t, s.fill(), s.restore();
6452
6452
  }
6453
6453
  }
6454
6454
  drawGrid() {
@@ -6457,8 +6457,8 @@ class Za extends gs {
6457
6457
  if (e.pointLabels.display && Ka(this, r), n.display && this.ticks.forEach((h, d) => {
6458
6458
  if (d !== 0 || d === 0 && this.min < 0) {
6459
6459
  l = this.getDistanceFromCenterForValue(h.value);
6460
- const f = this.getContext(d), u = n.setContext(f), g = o.setContext(f);
6461
- qa(this, u, l, r, g);
6460
+ const f = this.getContext(d), u = n.setContext(f), p = o.setContext(f);
6461
+ qa(this, u, l, r, p);
6462
6462
  }
6463
6463
  }), s.display) {
6464
6464
  for (t.save(), a = r - 1; a >= 0; a--) {
@@ -6479,13 +6479,13 @@ class Za extends gs {
6479
6479
  t.save(), t.translate(this.xCenter, this.yCenter), t.rotate(n), t.textAlign = "center", t.textBaseline = "middle", this.ticks.forEach((a, l) => {
6480
6480
  if (l === 0 && this.min >= 0 && !e.reverse)
6481
6481
  return;
6482
- const c = s.setContext(this.getContext(l)), h = V(c.font);
6482
+ const c = s.setContext(this.getContext(l)), h = $(c.font);
6483
6483
  if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
6484
6484
  t.font = h.string, r = t.measureText(a.label).width, t.fillStyle = c.backdropColor;
6485
6485
  const d = X(c.backdropPadding);
6486
6486
  t.fillRect(-r / 2 - d.left, -o - h.size / 2 - d.top, r + d.width, h.size + d.height);
6487
6487
  }
6488
- Ft(t, a.label, 0, -o, h, {
6488
+ zt(t, a.label, 0, -o, h, {
6489
6489
  color: c.color,
6490
6490
  strokeColor: c.textStrokeColor,
6491
6491
  strokeWidth: c.textStrokeWidth
@@ -6541,17 +6541,17 @@ const Ie = {
6541
6541
  size: 3154e7
6542
6542
  }
6543
6543
  }, q = /* @__PURE__ */ Object.keys(Ie);
6544
- function ms(i, t) {
6544
+ function bs(i, t) {
6545
6545
  return i - t;
6546
6546
  }
6547
- function bs(i, t) {
6548
- if (F(t))
6547
+ function xs(i, t) {
6548
+ if (z(t))
6549
6549
  return null;
6550
6550
  const e = i._adapter, { parser: s, round: n, isoWeekday: o } = i._parseOpts;
6551
6551
  let r = t;
6552
6552
  return typeof s == "function" && (r = s(r)), et(r) || (r = typeof s == "string" ? e.parse(r, s) : e.parse(r)), r === null ? null : (n && (r = n === "week" && (Ce(o) || o === !0) ? e.startOf(r, "isoWeek", o) : e.startOf(r, n)), +r);
6553
6553
  }
6554
- function xs(i, t, e, s) {
6554
+ function _s(i, t, e, s) {
6555
6555
  const n = q.length;
6556
6556
  for (let o = q.indexOf(i); o < n - 1; ++o) {
6557
6557
  const r = Ie[q[o]], a = r.steps ? r.steps : Number.MAX_SAFE_INTEGER;
@@ -6573,11 +6573,11 @@ function Ja(i) {
6573
6573
  if (Ie[q[t]].common)
6574
6574
  return q[t];
6575
6575
  }
6576
- function _s(i, t, e) {
6576
+ function ys(i, t, e) {
6577
6577
  if (!e)
6578
6578
  i[t] = !0;
6579
6579
  else if (e.length) {
6580
- const { lo: s, hi: n } = si(e, t), o = e[s] >= t ? e[s] : e[n];
6580
+ const { lo: s, hi: n } = ni(e, t), o = e[s] >= t ? e[s] : e[n];
6581
6581
  i[o] = !0;
6582
6582
  }
6583
6583
  }
@@ -6588,7 +6588,7 @@ function tl(i, t, e, s) {
6588
6588
  l = e[a], l >= 0 && (t[l].major = !0);
6589
6589
  return t;
6590
6590
  }
6591
- function ys(i, t, e) {
6591
+ function vs(i, t, e) {
6592
6592
  const s = [], n = {}, o = t.length;
6593
6593
  let r, a;
6594
6594
  for (r = 0; r < o; ++r)
@@ -6598,7 +6598,7 @@ function ys(i, t, e) {
6598
6598
  });
6599
6599
  return o === 0 || !e ? s : tl(i, s, n, e);
6600
6600
  }
6601
- class vs extends ne {
6601
+ class ws extends oe {
6602
6602
  static id = "time";
6603
6603
  static defaults = {
6604
6604
  bounds: "data",
@@ -6628,14 +6628,14 @@ class vs extends ne {
6628
6628
  }
6629
6629
  init(t, e = {}) {
6630
6630
  const s = t.time || (t.time = {}), n = this._adapter = new ar._date(t.adapters.date);
6631
- n.init(e), qt(s.displayFormats, n.formats()), this._parseOpts = {
6631
+ n.init(e), Gt(s.displayFormats, n.formats()), this._parseOpts = {
6632
6632
  parser: s.parser,
6633
6633
  round: s.round,
6634
6634
  isoWeekday: s.isoWeekday
6635
6635
  }, super.init(t), this._normalized = e.normalized;
6636
6636
  }
6637
6637
  parse(t, e) {
6638
- return t === void 0 ? null : bs(this, t);
6638
+ return t === void 0 ? null : xs(this, t);
6639
6639
  }
6640
6640
  beforeLayout() {
6641
6641
  super.beforeLayout(), this._cache = {
@@ -6664,7 +6664,7 @@ class vs extends ne {
6664
6664
  const t = this.options, e = t.time, s = t.ticks, n = s.source === "labels" ? this.getLabelTimestamps() : this._generate();
6665
6665
  t.bounds === "ticks" && n.length && (this.min = this._userMin || n[0], this.max = this._userMax || n[n.length - 1]);
6666
6666
  const o = this.min, r = this.max, a = Jn(n, o, r);
6667
- return this._unit = e.unit || (s.autoSkip ? xs(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : Qa(this, a.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : Ja(this._unit), this.initOffsets(n), t.reverse && a.reverse(), ys(this, a, this._majorUnit);
6667
+ return this._unit = e.unit || (s.autoSkip ? _s(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : Qa(this, a.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : Ja(this._unit), this.initOffsets(n), t.reverse && a.reverse(), vs(this, a, this._majorUnit);
6668
6668
  }
6669
6669
  afterAutoSkip() {
6670
6670
  this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
@@ -6680,14 +6680,14 @@ class vs extends ne {
6680
6680
  };
6681
6681
  }
6682
6682
  _generate() {
6683
- const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, r = o.unit || xs(o.minUnit, e, s, this._getLabelCapacity(e)), a = L(n.ticks.stepSize, 1), l = r === "week" ? o.isoWeekday : !1, c = Ce(l) || l === !0, h = {};
6683
+ const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, r = o.unit || _s(o.minUnit, e, s, this._getLabelCapacity(e)), a = L(n.ticks.stepSize, 1), l = r === "week" ? o.isoWeekday : !1, c = Ce(l) || l === !0, h = {};
6684
6684
  let d = e, f, u;
6685
6685
  if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : r), t.diff(s, e, r) > 1e5 * a)
6686
6686
  throw new Error(e + " and " + s + " are too far apart with stepSize of " + a + " " + r);
6687
- const g = n.ticks.source === "data" && this.getDataTimestamps();
6687
+ const p = n.ticks.source === "data" && this.getDataTimestamps();
6688
6688
  for (f = d, u = 0; f < s; f = +t.add(f, a, r), u++)
6689
- _s(h, f, g);
6690
- return (f === s || n.bounds === "ticks" || u === 1) && _s(h, f, g), Object.keys(h).sort(ms).map((p) => +p);
6689
+ ys(h, f, p);
6690
+ return (f === s || n.bounds === "ticks" || u === 1) && ys(h, f, p), Object.keys(h).sort(bs).map((m) => +m);
6691
6691
  }
6692
6692
  getLabelForValue(t) {
6693
6693
  const e = this._adapter, s = this.options.time;
@@ -6725,14 +6725,14 @@ class vs extends ne {
6725
6725
  return this.min + s * (this.max - this.min);
6726
6726
  }
6727
6727
  _getLabelSize(t) {
6728
- const e = this.options.ticks, s = this.ctx.measureText(t).width, n = ft(this.isHorizontal() ? e.maxRotation : e.minRotation), o = Math.cos(n), r = Math.sin(n), a = this._resolveTickFontOptions(0).size;
6728
+ const e = this.options.ticks, s = this.ctx.measureText(t).width, n = gt(this.isHorizontal() ? e.maxRotation : e.minRotation), o = Math.cos(n), r = Math.sin(n), a = this._resolveTickFontOptions(0).size;
6729
6729
  return {
6730
6730
  w: s * o + a * r,
6731
6731
  h: s * r + a * o
6732
6732
  };
6733
6733
  }
6734
6734
  _getLabelCapacity(t) {
6735
- const e = this.options.time, s = e.displayFormats, n = s[e.unit] || s.millisecond, o = this._tickFormatFunction(t, 0, ys(this, [
6735
+ const e = this.options.time, s = e.displayFormats, n = s[e.unit] || s.millisecond, o = this._tickFormatFunction(t, 0, vs(this, [
6736
6736
  t
6737
6737
  ], this._majorUnit), n), r = this._getLabelSize(o), a = Math.floor(this.isHorizontal() ? this.width / r.w : this.height / r.h) - 1;
6738
6738
  return a > 0 ? a : 1;
@@ -6755,22 +6755,22 @@ class vs extends ne {
6755
6755
  return t;
6756
6756
  const n = this.getLabels();
6757
6757
  for (e = 0, s = n.length; e < s; ++e)
6758
- t.push(bs(this, n[e]));
6758
+ t.push(xs(this, n[e]));
6759
6759
  return this._cache.labels = this._normalized ? t : this.normalize(t);
6760
6760
  }
6761
6761
  normalize(t) {
6762
- return eo(t.sort(ms));
6762
+ return eo(t.sort(bs));
6763
6763
  }
6764
6764
  }
6765
6765
  function be(i, t, e) {
6766
6766
  let s = 0, n = i.length - 1, o, r, a, l;
6767
- e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Ue(i, "pos", t)), { pos: o, time: a } = i[s], { pos: r, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = Ue(i, "time", t)), { time: o, pos: a } = i[s], { time: r, pos: l } = i[n]);
6767
+ e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Xe(i, "pos", t)), { pos: o, time: a } = i[s], { pos: r, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = Xe(i, "time", t)), { time: o, pos: a } = i[s], { time: r, pos: l } = i[n]);
6768
6768
  const c = r - o;
6769
6769
  return c ? a + (l - a) * (t - o) / c : a;
6770
6770
  }
6771
- class hl extends vs {
6771
+ class cl extends ws {
6772
6772
  static id = "timeseries";
6773
- static defaults = vs.defaults;
6773
+ static defaults = ws.defaults;
6774
6774
  constructor(t) {
6775
6775
  super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
6776
6776
  }
@@ -6825,13 +6825,10 @@ const el = {
6825
6825
  key: 0,
6826
6826
  class: "m-0 text-xs",
6827
6827
  style: { color: "#7B7B7B" }
6828
- }, il = {
6829
- class: "flex flex-column md:flex-row w-full h-full gap-3 align-items-center",
6830
- style: { contain: "inline-size" }
6831
- }, sl = { class: "flex flex-column gap-2 flex-1 w-full" }, nl = { class: "flex align-items-center justify-content-between gap-2 border-bottom-1 pb-1 surface-border" }, ol = { class: "flex align-items-center gap-2" }, rl = { class: "flex align-items-center gap-2" }, al = {
6832
- class: "flex justify-content-center align-items-center",
6828
+ }, il = { class: "flex flex-column gap-2 flex-1 w-full max-w-26rem" }, sl = { class: "flex align-items-center justify-content-between gap-2 border-bottom-1 pb-1 surface-border" }, nl = { class: "flex align-items-center gap-2" }, ol = { class: "flex align-items-center gap-2" }, rl = {
6829
+ class: "flex justify-content-center align-items-center mx-auto",
6833
6830
  style: { width: "200px", height: "200px", "flex-shrink": "0" }
6834
- }, ll = {
6831
+ }, al = {
6835
6832
  __name: "Polar",
6836
6833
  props: {
6837
6834
  label_rotulo: {
@@ -6863,61 +6860,66 @@ const el = {
6863
6860
  corPaleta: {
6864
6861
  type: String,
6865
6862
  default: "#1E40AF"
6863
+ },
6864
+ direcao: {
6865
+ type: String,
6866
+ default: null,
6867
+ validator: (i) => i === null || ["horizontal", "vertical"].includes(i)
6866
6868
  }
6867
6869
  },
6868
6870
  setup(i) {
6869
- Ge.register(rr, Za, wa, Fa, Pa);
6871
+ Ze.register(rr, Za, wa, Fa, Pa);
6870
6872
  const t = i, e = {
6871
6873
  light: "bg-white",
6872
6874
  dark: "bg-black",
6873
6875
  transparent: "bg-transparent"
6874
- }, s = Dt(() => e[t.cor] ?? "bg-white"), n = Dt(() => t.cor === "dark");
6875
- function o(f, u = 7) {
6876
- const g = f.replace("#", "");
6877
- let p = parseInt(g.slice(0, 2), 16), m = parseInt(g.slice(2, 4), 16), b = parseInt(g.slice(4, 6), 16);
6878
- p /= 255, m /= 255, b /= 255;
6879
- const x = Math.max(p, m, b), y = Math.min(p, m, b);
6880
- let v, _, w = (x + y) / 2;
6881
- if (x === y)
6882
- v = _ = 0;
6876
+ }, s = Mt(() => e[t.cor] ?? "bg-white"), n = Mt(() => t.cor === "dark");
6877
+ function o(g, b = 7) {
6878
+ const x = g.replace("#", "");
6879
+ let y = parseInt(x.slice(0, 2), 16), v = parseInt(x.slice(2, 4), 16), _ = parseInt(x.slice(4, 6), 16);
6880
+ y /= 255, v /= 255, _ /= 255;
6881
+ const w = Math.max(y, v, _), k = Math.min(y, v, _);
6882
+ let S, M, A = (w + k) / 2;
6883
+ if (w === k)
6884
+ S = M = 0;
6883
6885
  else {
6884
- const M = x - y;
6885
- switch (_ = w > 0.5 ? M / (2 - x - y) : M / (x + y), x) {
6886
- case p:
6887
- v = ((m - b) / M + (m < b ? 6 : 0)) / 6;
6886
+ const P = w - k;
6887
+ switch (M = A > 0.5 ? P / (2 - w - k) : P / (w + k), w) {
6888
+ case y:
6889
+ S = ((v - _) / P + (v < _ ? 6 : 0)) / 6;
6888
6890
  break;
6889
- case m:
6890
- v = ((b - p) / M + 2) / 6;
6891
+ case v:
6892
+ S = ((_ - y) / P + 2) / 6;
6891
6893
  break;
6892
- case b:
6893
- v = ((p - m) / M + 4) / 6;
6894
+ case _:
6895
+ S = ((y - v) / P + 4) / 6;
6894
6896
  break;
6895
6897
  }
6896
6898
  }
6897
- const k = Math.max(0.2, w - 0.3), C = (Math.min(0.95, w + 0.35) - k) / (u - 1);
6898
- function P(M, A, H) {
6899
- const U = A * Math.min(H, 1 - H), O = (R) => {
6900
- const z = (R + M * 12) % 12, G = H - U * Math.max(-1, Math.min(z - 3, 9 - z, 1));
6901
- return Math.round(255 * G).toString(16).padStart(2, "0");
6899
+ const C = Math.max(0.2, A - 0.3), j = (Math.min(0.95, A + 0.35) - C) / (b - 1);
6900
+ function U(P, R, F) {
6901
+ const G = R * Math.min(F, 1 - F), W = (dt) => {
6902
+ const _t = (dt + P * 12) % 12, ft = F - G * Math.max(-1, Math.min(_t - 3, 9 - _t, 1));
6903
+ return Math.round(255 * ft).toString(16).padStart(2, "0");
6902
6904
  };
6903
- return `#${O(0)}${O(8)}${O(4)}`;
6905
+ return `#${W(0)}${W(8)}${W(4)}`;
6904
6906
  }
6905
6907
  return Array.from(
6906
- { length: u },
6907
- (M, A) => P(v, _, k + C * A)
6908
+ { length: b },
6909
+ (P, R) => U(S, M, C + j * R)
6908
6910
  );
6909
6911
  }
6910
- const r = Dt(() => o(t.corPaleta, t.dados.length)), a = rn(null);
6911
- let l = null;
6912
- const c = Dt(() => ({
6913
- labels: t.dados.map((f) => f.tema),
6912
+ const r = Mt(() => o(t.corPaleta, t.dados.length)), a = Ee(null), l = Ee(null), c = Ee(!0);
6913
+ let h = null, d = null;
6914
+ const f = Mt(() => t.direcao === "vertical" ? "flex-column-reverse" : t.direcao === "horizontal" ? "flex-row" : c.value ? "flex-column-reverse" : "flex-row"), u = Mt(() => ({
6915
+ labels: t.dados.map((g) => g.rotulo),
6914
6916
  datasets: [{
6915
- data: t.dados.map((f) => f.quantidade),
6917
+ data: t.dados.map((g) => g.quantidade),
6916
6918
  backgroundColor: r.value,
6917
6919
  borderWidth: 0,
6918
6920
  borderColor: "transparent"
6919
6921
  }]
6920
- })), h = Dt(() => ({
6922
+ })), p = Mt(() => ({
6921
6923
  responsive: !0,
6922
6924
  maintainAspectRatio: !0,
6923
6925
  animation: {
@@ -6943,65 +6945,71 @@ const el = {
6943
6945
  }
6944
6946
  }
6945
6947
  }));
6946
- function d() {
6947
- l && l.destroy(), l = new Ge(a.value, {
6948
+ function m() {
6949
+ d && d.destroy(), d = new Ze(a.value, {
6948
6950
  type: "polarArea",
6949
- data: c.value,
6950
- options: h.value
6951
+ data: u.value,
6952
+ options: p.value
6951
6953
  });
6952
6954
  }
6953
6955
  return an(() => {
6954
- d();
6956
+ m(), h = new ResizeObserver(([g]) => {
6957
+ c.value = g.contentRect.width < 380;
6958
+ }), h.observe(l.value);
6955
6959
  }), ln(() => {
6956
- l && l.destroy();
6957
- }), Ee(() => t.dados, () => {
6958
- d();
6959
- }, { deep: !0 }), Ee(() => t.cor, () => {
6960
- d();
6961
- }), Ee(() => t.corPaleta, () => {
6962
- d();
6963
- }), (f, u) => (Tt(), Lt("div", {
6964
- class: ot([s.value, "border-1 surface-border border-round-xl flex flex-column w-full transition-linear transition-all transition-duration-200 select-none", n.value ? "hover:bg-black-alpha-90" : "hover:bg-white-alpha-70"]),
6960
+ d && d.destroy(), h && h.disconnect();
6961
+ }), Fe(() => t.dados, () => {
6962
+ m();
6963
+ }, { deep: !0 }), Fe(() => t.cor, () => {
6964
+ m();
6965
+ }), Fe(() => t.corPaleta, () => {
6966
+ m();
6967
+ }), (g, b) => (Lt(), Rt("div", {
6968
+ class: it([s.value, "border-1 surface-border border-round-xl flex flex-column w-full transition-linear transition-all transition-duration-200 select-none", n.value ? "hover:bg-black-alpha-90" : "hover:bg-white-alpha-70"]),
6965
6969
  style: { padding: "1.25rem", gap: "1.438rem" }
6966
6970
  }, [
6967
6971
  N("div", null, [
6968
6972
  N("p", {
6969
- class: ot(["m-0 text-xs font-medium", n.value ? "text-white" : "text-gray-900"])
6973
+ class: it(["m-0 text-xs font-medium", n.value ? "text-white" : "text-gray-900"])
6970
6974
  }, ct(i.titulo), 3),
6971
- i.subtitulo ? (Tt(), Lt("p", el, ct(i.subtitulo), 1)) : ws("", !0)
6975
+ i.subtitulo ? (Lt(), Rt("p", el, ct(i.subtitulo), 1)) : ks("", !0)
6972
6976
  ]),
6973
- N("div", il, [
6974
- N("div", sl, [
6975
- N("div", nl, [
6976
- N("div", ol, [
6977
- u[0] || (u[0] = N("span", { style: { width: "10px", height: "10px", flexShrink: 0 } }, null, -1)),
6977
+ N("div", {
6978
+ ref_key: "containerRef",
6979
+ ref: l,
6980
+ class: it(["flex w-full h-full gap-3 align-items-center justify-content-between", f.value])
6981
+ }, [
6982
+ N("div", il, [
6983
+ N("div", sl, [
6984
+ N("div", nl, [
6985
+ b[0] || (b[0] = N("span", { style: { width: "10px", height: "10px", flexShrink: 0 } }, null, -1)),
6978
6986
  N("span", {
6979
- class: ot(["text-xs font-medium", n.value ? "text-white" : "text-500"])
6987
+ class: it(["text-xs font-medium", n.value ? "text-white" : "text-500"])
6980
6988
  }, ct(i.label_rotulo), 3)
6981
6989
  ]),
6982
6990
  N("span", {
6983
- class: ot(["text-xs font-medium", n.value ? "text-white" : "text-gray-500"])
6991
+ class: it(["text-xs font-medium", n.value ? "text-white" : "text-gray-500"])
6984
6992
  }, ct(i.label_quantidade), 3)
6985
6993
  ]),
6986
- (Tt(!0), Lt(cn, null, hn(i.dados, (g, p) => (Tt(), Lt("div", {
6987
- key: p,
6994
+ (Lt(!0), Rt(cn, null, hn(i.dados, (x, y) => (Lt(), Rt("div", {
6995
+ key: y,
6988
6996
  class: "flex align-items-center justify-content-between"
6989
6997
  }, [
6990
- N("div", rl, [
6998
+ N("div", ol, [
6991
6999
  N("span", {
6992
7000
  class: "border-circle",
6993
- style: dn({ backgroundColor: r.value[p], width: "10px", height: "10px", flexShrink: 0 })
7001
+ style: dn({ backgroundColor: r.value[y], width: "10px", height: "10px", flexShrink: 0 })
6994
7002
  }, null, 4),
6995
7003
  N("span", {
6996
- class: ot(["text-xs font-medium", n.value ? "text-white" : "text-600"])
6997
- }, ct(g.tema), 3)
7004
+ class: it(["text-xs font-medium", n.value ? "text-white" : "text-600"])
7005
+ }, ct(x.rotulo), 3)
6998
7006
  ]),
6999
7007
  N("span", {
7000
- class: ot(["text-xs font-semibold", n.value ? "text-white" : "text-gray-900"])
7001
- }, ct(g.quantidade), 3)
7008
+ class: it(["text-xs font-semibold", n.value ? "text-white" : "text-gray-900"])
7009
+ }, ct(x.quantidade), 3)
7002
7010
  ]))), 128))
7003
7011
  ]),
7004
- N("div", al, [
7012
+ N("div", rl, [
7005
7013
  N("canvas", {
7006
7014
  ref_key: "canvasRef",
7007
7015
  ref: a,
@@ -7009,16 +7017,16 @@ const el = {
7009
7017
  height: "200"
7010
7018
  }, null, 512)
7011
7019
  ])
7012
- ])
7020
+ ], 2)
7013
7021
  ], 2));
7014
7022
  }
7015
- }, dl = {
7023
+ }, hl = {
7016
7024
  install(i) {
7017
- i.component("NemesisCards", pn), i.component("NemesisPolar", ll);
7025
+ i.component("NemesisCards", pn), i.component("NemesisPolar", al);
7018
7026
  }
7019
7027
  };
7020
7028
  export {
7021
7029
  pn as Cards,
7022
- ll as Polar,
7023
- dl as default
7030
+ al as Polar,
7031
+ hl as default
7024
7032
  };