nemesischart 0.1.14 → 0.1.15
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.
- package/dist/nemesischart.es.js +607 -600
- package/dist/nemesischart.umd.js +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +6 -0
package/dist/nemesischart.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as Q, openBlock as q, createElementBlock as G, normalizeClass as
|
|
1
|
+
import { computed as Q, openBlock as q, createElementBlock as G, normalizeClass as Y, createElementVNode as O, toDisplayString as j, createTextVNode as pn, createCommentVNode as Lt, ref as gt, onMounted as oi, onBeforeUnmount as ri, watch as Wt, Fragment as Ce, renderList as Ae, normalizeStyle as Rt, renderSlot as mn } from "vue";
|
|
2
2
|
const bn = (i, t) => {
|
|
3
3
|
const e = i.__vccOpts || i;
|
|
4
4
|
for (const [s, n] of t)
|
|
@@ -42,45 +42,45 @@ const bn = (i, t) => {
|
|
|
42
42
|
n("click");
|
|
43
43
|
};
|
|
44
44
|
return (a, l) => (q(), G("div", {
|
|
45
|
-
class:
|
|
45
|
+
class: Y([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
|
O("p", {
|
|
50
|
-
class:
|
|
51
|
-
},
|
|
50
|
+
class: Y(["m-0 text-xs font-medium", o.value === "bg-black" ? "text-white" : "text-gray-900"])
|
|
51
|
+
}, j(i.titulo), 3),
|
|
52
52
|
O("div", null, [
|
|
53
53
|
O("h2", {
|
|
54
|
-
class:
|
|
54
|
+
class: Y(["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
|
-
},
|
|
57
|
-
O("p", xn,
|
|
56
|
+
}, j(i.valor), 3),
|
|
57
|
+
O("p", xn, j(i.descricao), 1)
|
|
58
58
|
]),
|
|
59
59
|
i.botao_todos ? (q(), G("button", {
|
|
60
60
|
key: 0,
|
|
61
|
-
class:
|
|
61
|
+
class: Y(["nc-btn-todos text-xs", o.value === "bg-black" ? "text-white" : "text-gray-900"])
|
|
62
62
|
}, [...l[0] || (l[0] = [
|
|
63
63
|
pn(" Ver Todos ", -1),
|
|
64
64
|
O("i", { class: "pi pi-angle-right text-xs" }, null, -1)
|
|
65
|
-
])], 2)) :
|
|
65
|
+
])], 2)) : Lt("", !0)
|
|
66
66
|
], 2));
|
|
67
67
|
}
|
|
68
68
|
}, yn = /* @__PURE__ */ bn(_n, [["__scopeId", "data-v-c2f86ac2"]]);
|
|
69
69
|
function le(i) {
|
|
70
70
|
return i + 0.5 | 0;
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const yt = (i, t, e) => Math.max(Math.min(i, e), t);
|
|
73
73
|
function Qt(i) {
|
|
74
|
-
return
|
|
74
|
+
return yt(le(i * 2.55), 0, 255);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function kt(i) {
|
|
77
|
+
return yt(le(i * 255), 0, 255);
|
|
78
78
|
}
|
|
79
79
|
function _t(i) {
|
|
80
|
-
return
|
|
80
|
+
return yt(le(i / 2.55) / 100, 0, 1);
|
|
81
81
|
}
|
|
82
82
|
function ki(i) {
|
|
83
|
-
return
|
|
83
|
+
return yt(le(i * 100), 0, 100);
|
|
84
84
|
}
|
|
85
85
|
const at = { 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 }, Je = [..."0123456789ABCDEF"], vn = (i) => Je[i & 15], wn = (i) => Je[(i & 240) >> 4] + Je[i & 15], de = (i) => (i & 240) >> 4 === (i & 15), kn = (i) => de(i.r) && de(i.g) && de(i.b) && de(i.a);
|
|
86
86
|
function Mn(i) {
|
|
@@ -127,7 +127,7 @@ function ai(i) {
|
|
|
127
127
|
return o !== r && (h = o - r, c = a > 0.5 ? h / (2 - o - r) : h / (o + r), l = Dn(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, a];
|
|
128
128
|
}
|
|
129
129
|
function li(i, t, e, s) {
|
|
130
|
-
return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(
|
|
130
|
+
return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(kt);
|
|
131
131
|
}
|
|
132
132
|
function ci(i, t, e) {
|
|
133
133
|
return li(Ts, i, t, e);
|
|
@@ -146,7 +146,7 @@ function Ln(i) {
|
|
|
146
146
|
let e = 255, s;
|
|
147
147
|
if (!t)
|
|
148
148
|
return;
|
|
149
|
-
t[5] !== s && (e = t[6] ? Qt(+t[5]) :
|
|
149
|
+
t[5] !== s && (e = t[6] ? Qt(+t[5]) : kt(+t[5]));
|
|
150
150
|
const n = Rs(+t[2]), o = +t[3] / 100, r = +t[4] / 100;
|
|
151
151
|
return t[1] === "hwb" ? s = Tn(n, o, r) : t[1] === "hsv" ? s = Rn(n, o, r) : s = ci(n, o, r), {
|
|
152
152
|
r: s[0],
|
|
@@ -371,9 +371,9 @@ function Hn(i) {
|
|
|
371
371
|
if (t) {
|
|
372
372
|
if (t[7] !== s) {
|
|
373
373
|
const r = +t[7];
|
|
374
|
-
e = t[8] ? Qt(r) :
|
|
374
|
+
e = t[8] ? Qt(r) : yt(r * 255, 0, 255);
|
|
375
375
|
}
|
|
376
|
-
return s = +t[1], n = +t[3], o = +t[5], s = 255 & (t[2] ? Qt(s) :
|
|
376
|
+
return s = +t[1], n = +t[3], o = +t[5], s = 255 & (t[2] ? Qt(s) : yt(s, 0, 255)), n = 255 & (t[4] ? Qt(n) : yt(n, 0, 255)), o = 255 & (t[6] ? Qt(o) : yt(o, 0, 255)), {
|
|
377
377
|
r: s,
|
|
378
378
|
g: n,
|
|
379
379
|
b: o,
|
|
@@ -384,13 +384,13 @@ function Hn(i) {
|
|
|
384
384
|
function Wn(i) {
|
|
385
385
|
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${_t(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
386
386
|
}
|
|
387
|
-
const $e = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055,
|
|
387
|
+
const $e = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, zt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
388
388
|
function Nn(i, t, e) {
|
|
389
|
-
const s =
|
|
389
|
+
const s = zt(_t(i.r)), n = zt(_t(i.g)), o = zt(_t(i.b));
|
|
390
390
|
return {
|
|
391
|
-
r:
|
|
392
|
-
g:
|
|
393
|
-
b:
|
|
391
|
+
r: kt($e(s + e * (zt(_t(t.r)) - s))),
|
|
392
|
+
g: kt($e(n + e * (zt(_t(t.g)) - n))),
|
|
393
|
+
b: kt($e(o + e * (zt(_t(t.b)) - o))),
|
|
394
394
|
a: i.a + e * (t.a - i.a)
|
|
395
395
|
};
|
|
396
396
|
}
|
|
@@ -405,7 +405,7 @@ function Ls(i, t) {
|
|
|
405
405
|
}
|
|
406
406
|
function Ci(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 =
|
|
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 = kt(i[3]))) : (t = Ls(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = kt(t.a)), t;
|
|
409
409
|
}
|
|
410
410
|
function jn(i) {
|
|
411
411
|
return i.charAt(0) === "r" ? Hn(i) : Ln(i);
|
|
@@ -453,7 +453,7 @@ class ne {
|
|
|
453
453
|
return new ne(this.rgb);
|
|
454
454
|
}
|
|
455
455
|
alpha(t) {
|
|
456
|
-
return this._rgb.a =
|
|
456
|
+
return this._rgb.a = kt(t), this;
|
|
457
457
|
}
|
|
458
458
|
clearer(t) {
|
|
459
459
|
const e = this._rgb;
|
|
@@ -493,22 +493,22 @@ const Vn = /* @__PURE__ */ (() => {
|
|
|
493
493
|
let i = 0;
|
|
494
494
|
return () => i++;
|
|
495
495
|
})();
|
|
496
|
-
function
|
|
496
|
+
function W(i) {
|
|
497
497
|
return i == null;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function X(i) {
|
|
500
500
|
if (Array.isArray && Array.isArray(i))
|
|
501
501
|
return !0;
|
|
502
502
|
const t = Object.prototype.toString.call(i);
|
|
503
503
|
return t.slice(0, 7) === "[object" && t.slice(-6) === "Array]";
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function R(i) {
|
|
506
506
|
return i !== null && Object.prototype.toString.call(i) === "[object Object]";
|
|
507
507
|
}
|
|
508
508
|
function ct(i) {
|
|
509
509
|
return (typeof i == "number" || i instanceof Number) && isFinite(+i);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function dt(i, t) {
|
|
512
512
|
return ct(i) ? i : t;
|
|
513
513
|
}
|
|
514
514
|
function I(i, t) {
|
|
@@ -521,10 +521,10 @@ function B(i, t, e) {
|
|
|
521
521
|
}
|
|
522
522
|
function E(i, t, e, s) {
|
|
523
523
|
let n, o, r;
|
|
524
|
-
if (
|
|
524
|
+
if (X(i))
|
|
525
525
|
for (o = i.length, n = 0; n < o; n++)
|
|
526
526
|
t.call(e, i[n], n);
|
|
527
|
-
else if (
|
|
527
|
+
else if (R(i))
|
|
528
528
|
for (r = Object.keys(i), o = r.length, n = 0; n < o; n++)
|
|
529
529
|
t.call(e, i[r[n]], r[n]);
|
|
530
530
|
}
|
|
@@ -538,9 +538,9 @@ function Pe(i, t) {
|
|
|
538
538
|
return !0;
|
|
539
539
|
}
|
|
540
540
|
function Oe(i) {
|
|
541
|
-
if (
|
|
541
|
+
if (X(i))
|
|
542
542
|
return i.map(Oe);
|
|
543
|
-
if (
|
|
543
|
+
if (R(i)) {
|
|
544
544
|
const t = /* @__PURE__ */ Object.create(null), e = Object.keys(i), s = e.length;
|
|
545
545
|
let n = 0;
|
|
546
546
|
for (; n < s; ++n)
|
|
@@ -560,19 +560,19 @@ function Yn(i, t, e, s) {
|
|
|
560
560
|
if (!Es(i))
|
|
561
561
|
return;
|
|
562
562
|
const n = t[i], o = e[i];
|
|
563
|
-
|
|
563
|
+
R(n) && R(o) ? oe(n, o, s) : t[i] = Oe(o);
|
|
564
564
|
}
|
|
565
565
|
function oe(i, t, e) {
|
|
566
|
-
const s =
|
|
566
|
+
const s = X(t) ? t : [
|
|
567
567
|
t
|
|
568
568
|
], n = s.length;
|
|
569
|
-
if (!
|
|
569
|
+
if (!R(i))
|
|
570
570
|
return i;
|
|
571
571
|
e = e || {};
|
|
572
572
|
const o = e.merger || Yn;
|
|
573
573
|
let r;
|
|
574
574
|
for (let a = 0; a < n; ++a) {
|
|
575
|
-
if (r = s[a], !
|
|
575
|
+
if (r = s[a], !R(r))
|
|
576
576
|
continue;
|
|
577
577
|
const l = Object.keys(r);
|
|
578
578
|
for (let c = 0, h = l.length; c < h; ++c)
|
|
@@ -589,7 +589,7 @@ function Xn(i, t, e) {
|
|
|
589
589
|
if (!Es(i))
|
|
590
590
|
return;
|
|
591
591
|
const s = t[i], n = e[i];
|
|
592
|
-
|
|
592
|
+
R(s) && R(n) ? ee(s, n) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = Oe(n));
|
|
593
593
|
}
|
|
594
594
|
const Ai = {
|
|
595
595
|
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
@@ -616,13 +616,13 @@ function Kn(i) {
|
|
|
616
616
|
return e;
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Vt(i, t) {
|
|
620
620
|
return (Ai[t] || (Ai[t] = Kn(t)))(i);
|
|
621
621
|
}
|
|
622
622
|
function hi(i) {
|
|
623
623
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
624
624
|
}
|
|
625
|
-
const De = (i) => typeof i < "u",
|
|
625
|
+
const De = (i) => typeof i < "u", Mt = (i) => typeof i == "function", Pi = (i, t) => {
|
|
626
626
|
if (i.size !== t.size)
|
|
627
627
|
return !1;
|
|
628
628
|
for (const e of i)
|
|
@@ -633,7 +633,7 @@ const De = (i) => typeof i < "u", St = (i) => typeof i == "function", Pi = (i, t
|
|
|
633
633
|
function qn(i) {
|
|
634
634
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
635
635
|
}
|
|
636
|
-
const z = Math.PI,
|
|
636
|
+
const z = Math.PI, V = 2 * z, Te = Number.POSITIVE_INFINITY, Gn = z / 180, U = z / 2, Pt = z / 4, Oi = z * 2 / 3, Fs = Math.log10, Re = Math.sign;
|
|
637
637
|
function ke(i, t, e) {
|
|
638
638
|
return Math.abs(i - t) < e;
|
|
639
639
|
}
|
|
@@ -665,7 +665,7 @@ function to(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
|
|
668
|
+
function pt(i) {
|
|
669
669
|
return i * (z / 180);
|
|
670
670
|
}
|
|
671
671
|
function di(i) {
|
|
@@ -682,7 +682,7 @@ function Ti(i) {
|
|
|
682
682
|
function zs(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 * z && (o +=
|
|
685
|
+
return o < -0.5 * z && (o += V), {
|
|
686
686
|
angle: o,
|
|
687
687
|
distance: n
|
|
688
688
|
};
|
|
@@ -690,11 +690,11 @@ function zs(i, t) {
|
|
|
690
690
|
function eo(i, t) {
|
|
691
691
|
return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
return (i %
|
|
693
|
+
function ot(i) {
|
|
694
|
+
return (i % V + V) % V;
|
|
695
695
|
}
|
|
696
696
|
function Ie(i, t, e, s) {
|
|
697
|
-
const n =
|
|
697
|
+
const n = ot(i), o = ot(t), r = ot(e), a = ot(o - n), l = ot(r - n), c = ot(n - o), h = ot(n - r);
|
|
698
698
|
return n === o || n === r || s && o === r || a > l && c < h;
|
|
699
699
|
}
|
|
700
700
|
function lt(i, t, e) {
|
|
@@ -794,7 +794,7 @@ function ao(i, t) {
|
|
|
794
794
|
return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t;
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
|
-
const Ns = (i) => i === "start" ? "left" : i === "end" ? "right" : "center",
|
|
797
|
+
const Ns = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", nt = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, lo = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t, ge = (i) => i === 0 || i === 1, Li = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * V / e)), Ii = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * V / e) + 1, ie = {
|
|
798
798
|
linear: (i) => i,
|
|
799
799
|
easeInQuad: (i) => i * i,
|
|
800
800
|
easeOutQuad: (i) => -i * (i - 2),
|
|
@@ -808,8 +808,8 @@ const Ns = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", st
|
|
|
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 *
|
|
812
|
-
easeOutSine: (i) => Math.sin(i *
|
|
811
|
+
easeInSine: (i) => -Math.cos(i * U) + 1,
|
|
812
|
+
easeOutSine: (i) => Math.sin(i * U),
|
|
813
813
|
easeInOutSine: (i) => -0.5 * (Math.cos(z * 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,
|
|
@@ -946,7 +946,7 @@ function We(i, t, e) {
|
|
|
946
946
|
}
|
|
947
947
|
const po = {
|
|
948
948
|
values(i) {
|
|
949
|
-
return
|
|
949
|
+
return X(i) ? i : "" + i;
|
|
950
950
|
},
|
|
951
951
|
numeric(i, t, e) {
|
|
952
952
|
if (i === 0)
|
|
@@ -1036,7 +1036,7 @@ function bo(i) {
|
|
|
1036
1036
|
_indexable: (t) => t !== "backdropPadding"
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
|
-
const
|
|
1039
|
+
const Et = /* @__PURE__ */ Object.create(null), ei = /* @__PURE__ */ Object.create(null);
|
|
1040
1040
|
function se(i, t) {
|
|
1041
1041
|
if (!t)
|
|
1042
1042
|
return i;
|
|
@@ -1080,7 +1080,7 @@ class xo {
|
|
|
1080
1080
|
return Xe(ei, t, e);
|
|
1081
1081
|
}
|
|
1082
1082
|
override(t, e) {
|
|
1083
|
-
return Xe(
|
|
1083
|
+
return Xe(Et, t, e);
|
|
1084
1084
|
}
|
|
1085
1085
|
route(t, e, s, n) {
|
|
1086
1086
|
const o = se(this, t), r = se(this, s), a = "_" + e;
|
|
@@ -1093,7 +1093,7 @@ class xo {
|
|
|
1093
1093
|
enumerable: !0,
|
|
1094
1094
|
get() {
|
|
1095
1095
|
const l = this[a], c = r[n];
|
|
1096
|
-
return
|
|
1096
|
+
return R(l) ? Object.assign({}, c, l) : I(l, c);
|
|
1097
1097
|
},
|
|
1098
1098
|
set(l) {
|
|
1099
1099
|
this[a] = l;
|
|
@@ -1105,7 +1105,7 @@ class xo {
|
|
|
1105
1105
|
t.forEach((e) => e(this));
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
var
|
|
1108
|
+
var $ = /* @__PURE__ */ new xo({
|
|
1109
1109
|
_scriptable: (i) => !i.startsWith("on"),
|
|
1110
1110
|
_indexable: (i) => i !== "events",
|
|
1111
1111
|
hover: {
|
|
@@ -1121,7 +1121,7 @@ var V = /* @__PURE__ */ new xo({
|
|
|
1121
1121
|
bo
|
|
1122
1122
|
]);
|
|
1123
1123
|
function _o(i) {
|
|
1124
|
-
return !i ||
|
|
1124
|
+
return !i || W(i.size) || W(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
|
|
1125
1125
|
}
|
|
1126
1126
|
function Ee(i, t, e, s, n) {
|
|
1127
1127
|
let o = t[n];
|
|
@@ -1135,11 +1135,11 @@ function yo(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 && !
|
|
1138
|
+
if (d = e[l], d != null && !X(d))
|
|
1139
1139
|
r = Ee(i, n, o, r, d);
|
|
1140
|
-
else if (
|
|
1140
|
+
else if (X(d))
|
|
1141
1141
|
for (c = 0, h = d.length; c < h; c++)
|
|
1142
|
-
f = d[c], f != null && !
|
|
1142
|
+
f = d[c], f != null && !X(f) && (r = Ee(i, n, o, r, f));
|
|
1143
1143
|
i.restore();
|
|
1144
1144
|
const u = o.length / 2;
|
|
1145
1145
|
if (u > e.length) {
|
|
@@ -1149,7 +1149,7 @@ function yo(i, t, e, s) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
return r;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Ot(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
|
}
|
|
@@ -1171,32 +1171,32 @@ function $s(i, t, e, s, n) {
|
|
|
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,
|
|
1174
|
+
n ? i.ellipse(e, s, n / 2, p, 0, 0, V) : i.arc(e, s, p, 0, V), i.closePath();
|
|
1175
1175
|
break;
|
|
1176
1176
|
case "triangle":
|
|
1177
1177
|
h = n ? n / 2 : p, i.moveTo(e + Math.sin(g) * h, s - Math.cos(g) * p), g += Oi, i.lineTo(e + Math.sin(g) * h, s - Math.cos(g) * p), g += Oi, i.lineTo(e + Math.sin(g) * h, s - Math.cos(g) * p), i.closePath();
|
|
1178
1178
|
break;
|
|
1179
1179
|
case "rectRounded":
|
|
1180
|
-
c = p * 0.516, l = p - c, r = Math.cos(g +
|
|
1180
|
+
c = p * 0.516, l = p - c, r = Math.cos(g + Pt) * l, d = Math.cos(g + Pt) * (n ? n / 2 - c : l), a = Math.sin(g + Pt) * l, f = Math.sin(g + Pt) * (n ? n / 2 - c : l), i.arc(e - d, s - a, c, g - z, g - U), i.arc(e + f, s - r, c, g - U, g), i.arc(e + d, s + a, c, g, g + U), i.arc(e - f, s + r, c, g + U, g + z), i.closePath();
|
|
1181
1181
|
break;
|
|
1182
1182
|
case "rect":
|
|
1183
1183
|
if (!m) {
|
|
1184
1184
|
l = Math.SQRT1_2 * p, h = n ? n / 2 : l, i.rect(e - h, s - l, 2 * h, 2 * l);
|
|
1185
1185
|
break;
|
|
1186
1186
|
}
|
|
1187
|
-
g +=
|
|
1187
|
+
g += Pt;
|
|
1188
1188
|
/* falls through */
|
|
1189
1189
|
case "rectRot":
|
|
1190
1190
|
d = Math.cos(g) * (n ? n / 2 : p), r = Math.cos(g) * p, a = Math.sin(g) * p, f = Math.sin(g) * (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();
|
|
1191
1191
|
break;
|
|
1192
1192
|
case "crossRot":
|
|
1193
|
-
g +=
|
|
1193
|
+
g += Pt;
|
|
1194
1194
|
/* falls through */
|
|
1195
1195
|
case "cross":
|
|
1196
1196
|
d = Math.cos(g) * (n ? n / 2 : p), r = Math.cos(g) * p, a = Math.sin(g) * p, f = Math.sin(g) * (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);
|
|
1197
1197
|
break;
|
|
1198
1198
|
case "star":
|
|
1199
|
-
d = Math.cos(g) * (n ? n / 2 : p), r = Math.cos(g) * p, a = Math.sin(g) * p, f = Math.sin(g) * (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), g +=
|
|
1199
|
+
d = Math.cos(g) * (n ? n / 2 : p), r = Math.cos(g) * p, a = Math.sin(g) * p, f = Math.sin(g) * (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), g += Pt, d = Math.cos(g) * (n ? n / 2 : p), r = Math.cos(g) * p, a = Math.sin(g) * p, f = Math.sin(g) * (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);
|
|
1200
1200
|
break;
|
|
1201
1201
|
case "line":
|
|
1202
1202
|
r = n ? n / 2 : Math.cos(g) * p, a = Math.sin(g) * p, i.moveTo(e - r, s - a), i.lineTo(e + r, s + a);
|
|
@@ -1211,7 +1211,7 @@ function $s(i, t, e, s, n) {
|
|
|
1211
1211
|
i.fill(), t.borderWidth > 0 && i.stroke();
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Ht(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
1217
|
function ui(i, t) {
|
|
@@ -1221,7 +1221,7 @@ function gi(i) {
|
|
|
1221
1221
|
i.restore();
|
|
1222
1222
|
}
|
|
1223
1223
|
function vo(i, t) {
|
|
1224
|
-
t.translation && i.translate(t.translation[0], t.translation[1]),
|
|
1224
|
+
t.translation && i.translate(t.translation[0], t.translation[1]), W(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 wo(i, t, e, s, n) {
|
|
1227
1227
|
if (n.strikethrough || n.underline) {
|
|
@@ -1233,18 +1233,18 @@ function ko(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
|
|
1237
|
-
const r =
|
|
1236
|
+
function $t(i, t, e, s, n, o = {}) {
|
|
1237
|
+
const r = X(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, vo(i, o), l = 0; l < r.length; ++l)
|
|
1242
|
-
c = r[l], o.backdrop && ko(i, o.backdrop), a && (o.strokeColor && (i.strokeStyle = o.strokeColor),
|
|
1242
|
+
c = r[l], o.backdrop && ko(i, o.backdrop), a && (o.strokeColor && (i.strokeStyle = o.strokeColor), W(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), wo(i, e, s, c, o), s += Number(n.lineHeight);
|
|
1243
1243
|
i.restore();
|
|
1244
1244
|
}
|
|
1245
1245
|
function Fe(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 * z, z, !0), i.lineTo(e, s + o - r.bottomLeft), i.arc(e + r.bottomLeft, s + o - r.bottomLeft, r.bottomLeft, z,
|
|
1247
|
+
i.arc(e + r.topLeft, s + r.topLeft, r.topLeft, 1.5 * z, z, !0), i.lineTo(e, s + o - r.bottomLeft), i.arc(e + r.bottomLeft, s + o - r.bottomLeft, r.bottomLeft, z, U, !0), i.lineTo(e + n - r.bottomRight, s + o), i.arc(e + n - r.bottomRight, s + o - r.bottomRight, r.bottomRight, U, 0, !0), i.lineTo(e + n, s + r.topRight), i.arc(e + n - r.topRight, s + r.topRight, r.topRight, 0, -U, !0), i.lineTo(e + r.topLeft, s);
|
|
1248
1248
|
}
|
|
1249
1249
|
const Mo = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, So = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
1250
1250
|
function Co(i, t) {
|
|
@@ -1262,7 +1262,7 @@ function Co(i, t) {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
const Ao = (i) => +i || 0;
|
|
1264
1264
|
function pi(i, t) {
|
|
1265
|
-
const e = {}, s =
|
|
1265
|
+
const e = {}, s = R(t), n = s ? Object.keys(t) : t, o = R(i) ? s ? (r) => I(i[r], i[t[r]]) : (r) => i[r] : () => i;
|
|
1266
1266
|
for (const r of n)
|
|
1267
1267
|
e[r] = Ao(o(r));
|
|
1268
1268
|
return e;
|
|
@@ -1275,7 +1275,7 @@ function Po(i) {
|
|
|
1275
1275
|
left: "x"
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function Nt(i) {
|
|
1279
1279
|
return pi(i, [
|
|
1280
1280
|
"topLeft",
|
|
1281
1281
|
"topRight",
|
|
@@ -1288,7 +1288,7 @@ function J(i) {
|
|
|
1288
1288
|
return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
|
|
1289
1289
|
}
|
|
1290
1290
|
function Z(i, t) {
|
|
1291
|
-
i = i || {}, t = t ||
|
|
1291
|
+
i = i || {}, t = t || $.font;
|
|
1292
1292
|
let e = I(i.size, t.size);
|
|
1293
1293
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1294
1294
|
let s = I(i.style, t.style);
|
|
@@ -1316,7 +1316,7 @@ function Oo(i, t, e) {
|
|
|
1316
1316
|
max: r(n, o)
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Ft(i, t) {
|
|
1320
1320
|
return Object.assign(Object.create(i), t);
|
|
1321
1321
|
}
|
|
1322
1322
|
function mi(i, t = [
|
|
@@ -1383,7 +1383,7 @@ function mi(i, t = [
|
|
|
1383
1383
|
}
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function Yt(i, t, e, s) {
|
|
1387
1387
|
const n = {
|
|
1388
1388
|
_cacheable: !1,
|
|
1389
1389
|
_proxy: i,
|
|
@@ -1391,8 +1391,8 @@ function $t(i, t, e, s) {
|
|
|
1391
1391
|
_subProxy: e,
|
|
1392
1392
|
_stack: /* @__PURE__ */ new Set(),
|
|
1393
1393
|
_descriptors: Ys(i, s),
|
|
1394
|
-
setContext: (o) =>
|
|
1395
|
-
override: (o) =>
|
|
1394
|
+
setContext: (o) => Yt(i, o, e, s),
|
|
1395
|
+
override: (o) => Yt(i.override(o), t, e, s)
|
|
1396
1396
|
};
|
|
1397
1397
|
return new Proxy(n, {
|
|
1398
1398
|
/**
|
|
@@ -1452,11 +1452,11 @@ function Ys(i, t = {
|
|
|
1452
1452
|
allKeys: n,
|
|
1453
1453
|
scriptable: e,
|
|
1454
1454
|
indexable: s,
|
|
1455
|
-
isScriptable:
|
|
1456
|
-
isIndexable:
|
|
1455
|
+
isScriptable: Mt(e) ? e : () => e,
|
|
1456
|
+
isIndexable: Mt(s) ? s : () => s
|
|
1457
1457
|
};
|
|
1458
1458
|
}
|
|
1459
|
-
const Do = (i, t) => i ? i + hi(t) : t, bi = (i, t) =>
|
|
1459
|
+
const Do = (i, t) => i ? i + hi(t) : t, bi = (i, t) => R(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
1460
1460
|
function Xs(i, t, e) {
|
|
1461
1461
|
if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
|
|
1462
1462
|
return i[t];
|
|
@@ -1466,7 +1466,7 @@ function Xs(i, t, e) {
|
|
|
1466
1466
|
function To(i, t, e) {
|
|
1467
1467
|
const { _proxy: s, _context: n, _subProxy: o, _descriptors: r } = i;
|
|
1468
1468
|
let a = s[t];
|
|
1469
|
-
return
|
|
1469
|
+
return Mt(a) && r.isScriptable(t) && (a = Ro(t, a, i, e)), X(a) && a.length && (a = Lo(t, a, i, r.isIndexable)), bi(t, a) && (a = Yt(a, n, o && o[t], r)), a;
|
|
1470
1470
|
}
|
|
1471
1471
|
function Ro(i, t, e, s) {
|
|
1472
1472
|
const { _proxy: n, _context: o, _subProxy: r, _stack: a } = e;
|
|
@@ -1480,20 +1480,20 @@ function Lo(i, t, e, s) {
|
|
|
1480
1480
|
const { _proxy: n, _context: o, _subProxy: r, _descriptors: a } = e;
|
|
1481
1481
|
if (typeof o.index < "u" && s(i))
|
|
1482
1482
|
return t[o.index % t.length];
|
|
1483
|
-
if (
|
|
1483
|
+
if (R(t[0])) {
|
|
1484
1484
|
const l = t, c = n._scopes.filter((h) => h !== l);
|
|
1485
1485
|
t = [];
|
|
1486
1486
|
for (const h of l) {
|
|
1487
1487
|
const d = xi(c, n, i, h);
|
|
1488
|
-
t.push(
|
|
1488
|
+
t.push(Yt(d, o, r && r[i], a));
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
return t;
|
|
1492
1492
|
}
|
|
1493
1493
|
function Us(i, t, e) {
|
|
1494
|
-
return
|
|
1494
|
+
return Mt(i) ? i(t, e) : i;
|
|
1495
1495
|
}
|
|
1496
|
-
const Io = (i, t) => i === !0 ? t : typeof i == "string" ?
|
|
1496
|
+
const Io = (i, t) => i === !0 ? t : typeof i == "string" ? Vt(t, i) : void 0;
|
|
1497
1497
|
function Eo(i, t, e, s, n) {
|
|
1498
1498
|
for (const o of t) {
|
|
1499
1499
|
const r = Io(e, o);
|
|
@@ -1527,7 +1527,7 @@ function Fo(i, t, e) {
|
|
|
1527
1527
|
const s = i._getTarget();
|
|
1528
1528
|
t in s || (s[t] = {});
|
|
1529
1529
|
const n = s[t];
|
|
1530
|
-
return
|
|
1530
|
+
return X(n) && R(e) ? e : n || {};
|
|
1531
1531
|
}
|
|
1532
1532
|
function zo(i, t, e, s) {
|
|
1533
1533
|
let n;
|
|
@@ -1560,7 +1560,7 @@ function Ho(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(
|
|
1563
|
+
r: n.parse(Vt(h, o), c)
|
|
1564
1564
|
};
|
|
1565
1565
|
return r;
|
|
1566
1566
|
}
|
|
@@ -1585,7 +1585,7 @@ const No = [
|
|
|
1585
1585
|
"bottom",
|
|
1586
1586
|
"left"
|
|
1587
1587
|
];
|
|
1588
|
-
function
|
|
1588
|
+
function It(i, t, e) {
|
|
1589
1589
|
const s = {};
|
|
1590
1590
|
e = e ? "-" + e : "";
|
|
1591
1591
|
for (let n = 0; n < 4; n++) {
|
|
@@ -1610,10 +1610,10 @@ function Vo(i, t) {
|
|
|
1610
1610
|
box: r
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
function
|
|
1613
|
+
function Tt(i, t) {
|
|
1614
1614
|
if ("native" in i)
|
|
1615
1615
|
return i;
|
|
1616
|
-
const { canvas: e, currentDevicePixelRatio: s } = t, n = Ne(e), o = n.boxSizing === "border-box", r =
|
|
1616
|
+
const { canvas: e, currentDevicePixelRatio: s } = t, n = Ne(e), o = n.boxSizing === "border-box", r = It(n, "padding"), a = It(n, "border", "width"), { x: l, y: c, box: h } = Vo(i, e), d = r.left + (h && a.left), f = r.top + (h && a.top);
|
|
1617
1617
|
let { width: u, height: m } = t;
|
|
1618
1618
|
return o && (u -= r.width + a.width, m -= r.height + a.height), {
|
|
1619
1619
|
x: Math.round((l - d) / u * e.width / s),
|
|
@@ -1627,7 +1627,7 @@ function $o(i, t, e) {
|
|
|
1627
1627
|
if (!o)
|
|
1628
1628
|
t = i.clientWidth, e = i.clientHeight;
|
|
1629
1629
|
else {
|
|
1630
|
-
const r = o.getBoundingClientRect(), a = Ne(o), l =
|
|
1630
|
+
const r = o.getBoundingClientRect(), a = Ne(o), l = It(a, "border", "width"), c = It(a, "padding");
|
|
1631
1631
|
t = r.width - c.width - l.width, e = r.height - c.height - l.height, s = ze(a.maxWidth, o, "clientWidth"), n = ze(a.maxHeight, o, "clientHeight");
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
@@ -1638,22 +1638,22 @@ function $o(i, t, e) {
|
|
|
1638
1638
|
maxHeight: n || Te
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
|
-
const
|
|
1641
|
+
const vt = (i) => Math.round(i * 10) / 10;
|
|
1642
1642
|
function Yo(i, t, e, s) {
|
|
1643
|
-
const n = Ne(i), o =
|
|
1643
|
+
const n = Ne(i), o = It(n, "margin"), r = ze(n.maxWidth, i, "clientWidth") || Te, a = ze(n.maxHeight, i, "clientHeight") || Te, l = $o(i, t, e);
|
|
1644
1644
|
let { width: c, height: h } = l;
|
|
1645
1645
|
if (n.boxSizing === "content-box") {
|
|
1646
|
-
const f =
|
|
1646
|
+
const f = It(n, "border", "width"), u = It(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 =
|
|
1649
|
+
return c = Math.max(0, c - o.width), h = Math.max(0, s ? c / s : h - o.height), c = vt(Math.min(c, r, l.maxWidth)), h = vt(Math.min(h, a, l.maxHeight)), c && !h && (h = vt(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && h > l.height && (h = l.height, c = vt(Math.floor(h * s))), {
|
|
1650
1650
|
width: c,
|
|
1651
1651
|
height: h
|
|
1652
1652
|
};
|
|
1653
1653
|
}
|
|
1654
1654
|
function Ni(i, t, e) {
|
|
1655
|
-
const s = t || 1, n =
|
|
1656
|
-
i.height =
|
|
1655
|
+
const s = t || 1, n = vt(i.height * s), o = vt(i.width * s);
|
|
1656
|
+
i.height = vt(i.height), i.width = vt(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
|
}
|
|
@@ -1710,7 +1710,7 @@ const Uo = function(i, t) {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
};
|
|
1712
1712
|
};
|
|
1713
|
-
function
|
|
1713
|
+
function jt(i, t, e) {
|
|
1714
1714
|
return i ? Uo(t, e) : Ko();
|
|
1715
1715
|
}
|
|
1716
1716
|
function qs(i, t) {
|
|
@@ -1907,17 +1907,17 @@ class Qs {
|
|
|
1907
1907
|
this._chart = t, this._properties = /* @__PURE__ */ new Map(), this.configure(e);
|
|
1908
1908
|
}
|
|
1909
1909
|
configure(t) {
|
|
1910
|
-
if (!
|
|
1910
|
+
if (!R(t))
|
|
1911
1911
|
return;
|
|
1912
|
-
const e = Object.keys(
|
|
1912
|
+
const e = Object.keys($.animation), s = this._properties;
|
|
1913
1913
|
Object.getOwnPropertyNames(t).forEach((n) => {
|
|
1914
1914
|
const o = t[n];
|
|
1915
|
-
if (!
|
|
1915
|
+
if (!R(o))
|
|
1916
1916
|
return;
|
|
1917
1917
|
const r = {};
|
|
1918
1918
|
for (const a of e)
|
|
1919
1919
|
r[a] = o[a];
|
|
1920
|
-
(
|
|
1920
|
+
(X(o.properties) && o.properties || [
|
|
1921
1921
|
n
|
|
1922
1922
|
]).forEach((a) => {
|
|
1923
1923
|
(a === n || !s.has(a)) && s.set(a, r);
|
|
@@ -2013,7 +2013,7 @@ function ir(i, t, e) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
function sr(i) {
|
|
2015
2015
|
let t, e, s, n;
|
|
2016
|
-
return
|
|
2016
|
+
return R(i) ? (t = i.top, e = i.right, s = i.bottom, n = i.left) : t = e = s = n = i, {
|
|
2017
2017
|
top: t,
|
|
2018
2018
|
right: e,
|
|
2019
2019
|
bottom: s,
|
|
@@ -2086,8 +2086,8 @@ function Ui(i, t) {
|
|
|
2086
2086
|
for (let u = 0; u < d; ++u) {
|
|
2087
2087
|
const m = t[u], { [l]: p, [c]: g } = m, b = m._stacks || (m._stacks = {});
|
|
2088
2088
|
f = b[c] = ar(n, h, p), f[a] = g, f._top = Xi(f, r, !0, s.type), f._bottom = Xi(f, r, !1, s.type);
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2089
|
+
const _ = f._visualValues || (f._visualValues = {});
|
|
2090
|
+
_[a] = g;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
function Ke(i, t) {
|
|
@@ -2095,7 +2095,7 @@ function Ke(i, t) {
|
|
|
2095
2095
|
return Object.keys(e).filter((s) => e[s].axis === t).shift();
|
|
2096
2096
|
}
|
|
2097
2097
|
function lr(i, t) {
|
|
2098
|
-
return
|
|
2098
|
+
return Ft(i, {
|
|
2099
2099
|
active: !1,
|
|
2100
2100
|
dataset: void 0,
|
|
2101
2101
|
datasetIndex: t,
|
|
@@ -2105,7 +2105,7 @@ function lr(i, t) {
|
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
2107
|
function cr(i, t, e) {
|
|
2108
|
-
return
|
|
2108
|
+
return Ft(i, {
|
|
2109
2109
|
active: !1,
|
|
2110
2110
|
dataIndex: t,
|
|
2111
2111
|
parsed: void 0,
|
|
@@ -2172,7 +2172,7 @@ class vi {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
_dataCheck() {
|
|
2174
2174
|
const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
|
|
2175
|
-
if (
|
|
2175
|
+
if (R(e)) {
|
|
2176
2176
|
const n = this._cachedMeta;
|
|
2177
2177
|
this._data = nr(e, n);
|
|
2178
2178
|
} else if (s !== e) {
|
|
@@ -2205,7 +2205,7 @@ class vi {
|
|
|
2205
2205
|
if (this._parsing === !1)
|
|
2206
2206
|
s._parsed = n, s._sorted = !0, f = n;
|
|
2207
2207
|
else {
|
|
2208
|
-
|
|
2208
|
+
X(n[t]) ? f = this.parseArrayData(s, n, t, e) : R(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);
|
|
@@ -2238,8 +2238,8 @@ class vi {
|
|
|
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(
|
|
2242
|
-
y: r.parse(
|
|
2241
|
+
x: o.parse(Vt(u, a), f),
|
|
2242
|
+
y: r.parse(Vt(u, l), f)
|
|
2243
2243
|
};
|
|
2244
2244
|
return c;
|
|
2245
2245
|
}
|
|
@@ -2351,7 +2351,7 @@ class vi {
|
|
|
2351
2351
|
] : [
|
|
2352
2352
|
t,
|
|
2353
2353
|
""
|
|
2354
|
-
], f = c.getOptionScopes(this.getDataset(), h), u = Object.keys(
|
|
2354
|
+
], f = c.getOptionScopes(this.getDataset(), h), u = Object.keys($.elements[t]), m = () => this.getContext(s, n, e), p = c.resolveNamedOptions(f, u, m, d);
|
|
2355
2355
|
return p.$shared && (p.$shared = l, o[r] = Object.freeze(Ki(p, l))), p;
|
|
2356
2356
|
}
|
|
2357
2357
|
_resolveAnimations(t, e, s) {
|
|
@@ -2493,9 +2493,9 @@ class vi {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
function dr(i, t, e) {
|
|
2495
2495
|
let s = 1, n = 1, o = 0, r = 0;
|
|
2496
|
-
if (t <
|
|
2497
|
-
const a = i, l = a + t, c = Math.cos(a), h = Math.sin(a), d = Math.cos(l), f = Math.sin(l), u = (
|
|
2498
|
-
s = (p - b) / 2, n = (g -
|
|
2496
|
+
if (t < V) {
|
|
2497
|
+
const a = i, l = a + t, c = Math.cos(a), h = Math.sin(a), d = Math.cos(l), f = Math.sin(l), u = (x, v, y) => Ie(x, a, l, !0) ? 1 : Math.max(v, v * e, y, y * e), m = (x, v, y) => Ie(x, a, l, !0) ? -1 : Math.min(v, v * e, y, y * e), p = u(0, c, d), g = u(U, h, f), b = m(z, c, d), _ = m(z + U, h, f);
|
|
2498
|
+
s = (p - b) / 2, n = (g - _) / 2, o = -(p + b) / 2, r = -(g + _) / 2;
|
|
2499
2499
|
}
|
|
2500
2500
|
return {
|
|
2501
2501
|
ratioX: s,
|
|
@@ -2585,9 +2585,9 @@ class fr extends vi {
|
|
|
2585
2585
|
n._parsed = s;
|
|
2586
2586
|
else {
|
|
2587
2587
|
let o = (l) => +s[l];
|
|
2588
|
-
if (
|
|
2588
|
+
if (R(s[t])) {
|
|
2589
2589
|
const { key: l = "value" } = this._parsing;
|
|
2590
|
-
o = (c) => +
|
|
2590
|
+
o = (c) => +Vt(s[c], l);
|
|
2591
2591
|
}
|
|
2592
2592
|
let r, a;
|
|
2593
2593
|
for (r = t, a = t + e; r < a; ++r)
|
|
@@ -2595,13 +2595,13 @@ class fr extends vi {
|
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
_getRotation() {
|
|
2598
|
-
return
|
|
2598
|
+
return pt(this.options.rotation - 90);
|
|
2599
2599
|
}
|
|
2600
2600
|
_getCircumference() {
|
|
2601
|
-
return
|
|
2601
|
+
return pt(this.options.circumference);
|
|
2602
2602
|
}
|
|
2603
2603
|
_getRotationExtents() {
|
|
2604
|
-
let t =
|
|
2604
|
+
let t = V, e = -V;
|
|
2605
2605
|
for (let s = 0; s < this.chart.data.datasets.length; ++s)
|
|
2606
2606
|
if (this.chart.isDatasetVisible(s) && this.chart.getDatasetMeta(s).type === this._type) {
|
|
2607
2607
|
const n = this.chart.getDatasetMeta(s).controller, o = n._getRotation(), r = n._getCircumference();
|
|
@@ -2613,29 +2613,29 @@ class fr extends vi {
|
|
|
2613
2613
|
};
|
|
2614
2614
|
}
|
|
2615
2615
|
update(t) {
|
|
2616
|
-
const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(s.width, s.height) - r) / 2, 0), l = Math.min($n(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: u, offsetX: m, offsetY: p } = dr(d, h, l), g = (s.width - r) / f, b = (s.height - r) / u,
|
|
2617
|
-
this.offsetX = m *
|
|
2616
|
+
const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(s.width, s.height) - r) / 2, 0), l = Math.min($n(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: u, offsetX: m, offsetY: p } = dr(d, h, l), g = (s.width - r) / f, b = (s.height - r) / u, _ = Math.max(Math.min(g, b) / 2, 0), x = Is(this.options.radius, _), v = Math.max(x * l, 0), y = (x - v) / this._getVisibleDatasetWeightTotal();
|
|
2617
|
+
this.offsetX = m * x, this.offsetY = p * x, n.total = this.calculateTotal(), this.outerRadius = x - y * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - y * c, 0), this.updateElements(o, 0, o.length, t);
|
|
2618
2618
|
}
|
|
2619
2619
|
_circumference(t, e) {
|
|
2620
2620
|
const s = this.options, n = this._cachedMeta, o = this._getCircumference();
|
|
2621
|
-
return e && s.animation.animateRotate || !this.chart.getDataVisibility(t) || n._parsed[t] === null || n.data[t].hidden ? 0 : this.calculateCircumference(n._parsed[t] * o /
|
|
2621
|
+
return e && s.animation.animateRotate || !this.chart.getDataVisibility(t) || n._parsed[t] === null || n.data[t].hidden ? 0 : this.calculateCircumference(n._parsed[t] * o / V);
|
|
2622
2622
|
}
|
|
2623
2623
|
updateElements(t, e, s, n) {
|
|
2624
2624
|
const o = n === "reset", r = this.chart, a = r.chartArea, c = r.options.animation, h = (a.left + a.right) / 2, d = (a.top + a.bottom) / 2, f = o && c.animateScale, u = f ? 0 : this.innerRadius, m = f ? 0 : this.outerRadius, { sharedOptions: p, includeOptions: g } = this._getSharedOptions(e, n);
|
|
2625
|
-
let b = this._getRotation(),
|
|
2626
|
-
for (
|
|
2627
|
-
b += this._circumference(
|
|
2628
|
-
for (
|
|
2629
|
-
const
|
|
2625
|
+
let b = this._getRotation(), _;
|
|
2626
|
+
for (_ = 0; _ < e; ++_)
|
|
2627
|
+
b += this._circumference(_, o);
|
|
2628
|
+
for (_ = e; _ < e + s; ++_) {
|
|
2629
|
+
const x = this._circumference(_, o), v = t[_], y = {
|
|
2630
2630
|
x: h + this.offsetX,
|
|
2631
2631
|
y: d + this.offsetY,
|
|
2632
2632
|
startAngle: b,
|
|
2633
|
-
endAngle: b +
|
|
2634
|
-
circumference:
|
|
2633
|
+
endAngle: b + x,
|
|
2634
|
+
circumference: x,
|
|
2635
2635
|
outerRadius: m,
|
|
2636
2636
|
innerRadius: u
|
|
2637
2637
|
};
|
|
2638
|
-
g && (
|
|
2638
|
+
g && (y.options = p || this.resolveDataElementOptions(_, v.active ? "active" : n)), b += x, this.updateElement(v, _, y, n);
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
calculateTotal() {
|
|
@@ -2649,7 +2649,7 @@ class fr extends vi {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
calculateCircumference(t) {
|
|
2651
2651
|
const e = this._cachedMeta.total;
|
|
2652
|
-
return e > 0 && !isNaN(t) ?
|
|
2652
|
+
return e > 0 && !isNaN(t) ? V * (Math.abs(t) / e) : 0;
|
|
2653
2653
|
}
|
|
2654
2654
|
getLabelAndValue(t) {
|
|
2655
2655
|
const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = We(e._parsed[t], s.options.locale);
|
|
@@ -2807,15 +2807,15 @@ class ur extends vi {
|
|
|
2807
2807
|
u += this._computeAngle(m, n, p);
|
|
2808
2808
|
for (m = e; m < e + s; m++) {
|
|
2809
2809
|
const g = t[m];
|
|
2810
|
-
let b = u,
|
|
2811
|
-
u =
|
|
2810
|
+
let b = u, _ = u + this._computeAngle(m, n, p), x = r.getDataVisibility(m) ? c.getDistanceFromCenterForValue(this.getParsed(m).r) : 0;
|
|
2811
|
+
u = _, o && (l.animateScale && (x = 0), l.animateRotate && (b = _ = f));
|
|
2812
2812
|
const v = {
|
|
2813
2813
|
x: h,
|
|
2814
2814
|
y: d,
|
|
2815
2815
|
innerRadius: 0,
|
|
2816
|
-
outerRadius:
|
|
2816
|
+
outerRadius: x,
|
|
2817
2817
|
startAngle: b,
|
|
2818
|
-
endAngle:
|
|
2818
|
+
endAngle: _,
|
|
2819
2819
|
options: this.resolveDataElementOptions(m, g.active ? "active" : n)
|
|
2820
2820
|
};
|
|
2821
2821
|
this.updateElement(g, m, v, n);
|
|
@@ -2829,10 +2829,10 @@ class ur extends vi {
|
|
|
2829
2829
|
}), e;
|
|
2830
2830
|
}
|
|
2831
2831
|
_computeAngle(t, e, s) {
|
|
2832
|
-
return this.chart.getDataVisibility(t) ?
|
|
2832
|
+
return this.chart.getDataVisibility(t) ? pt(this.resolveDataElementOptions(t, e).angle || s) : 0;
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
|
-
function
|
|
2835
|
+
function Dt() {
|
|
2836
2836
|
throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
|
|
2837
2837
|
}
|
|
2838
2838
|
class wi {
|
|
@@ -2857,25 +2857,25 @@ class wi {
|
|
|
2857
2857
|
init() {
|
|
2858
2858
|
}
|
|
2859
2859
|
formats() {
|
|
2860
|
-
return
|
|
2860
|
+
return Dt();
|
|
2861
2861
|
}
|
|
2862
2862
|
parse() {
|
|
2863
|
-
return
|
|
2863
|
+
return Dt();
|
|
2864
2864
|
}
|
|
2865
2865
|
format() {
|
|
2866
|
-
return
|
|
2866
|
+
return Dt();
|
|
2867
2867
|
}
|
|
2868
2868
|
add() {
|
|
2869
|
-
return
|
|
2869
|
+
return Dt();
|
|
2870
2870
|
}
|
|
2871
2871
|
diff() {
|
|
2872
|
-
return
|
|
2872
|
+
return Dt();
|
|
2873
2873
|
}
|
|
2874
2874
|
startOf() {
|
|
2875
|
-
return
|
|
2875
|
+
return Dt();
|
|
2876
2876
|
}
|
|
2877
2877
|
endOf() {
|
|
2878
|
-
return
|
|
2878
|
+
return Dt();
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
2881
2881
|
var gr = {
|
|
@@ -2899,9 +2899,9 @@ function pr(i, t, e, s) {
|
|
|
2899
2899
|
} else {
|
|
2900
2900
|
const h = c(o, t, e);
|
|
2901
2901
|
if (l) {
|
|
2902
|
-
const { vScale: d } = n._cachedMeta, { _parsed: f } = i, u = f.slice(0, h.lo + 1).reverse().findIndex((p) => !
|
|
2902
|
+
const { vScale: d } = n._cachedMeta, { _parsed: f } = i, u = f.slice(0, h.lo + 1).reverse().findIndex((p) => !W(p[d.axis]));
|
|
2903
2903
|
h.lo -= Math.max(0, u);
|
|
2904
|
-
const m = f.slice(h.hi).findIndex((p) => !
|
|
2904
|
+
const m = f.slice(h.hi).findIndex((p) => !W(p[d.axis]));
|
|
2905
2905
|
h.hi += Math.max(0, m);
|
|
2906
2906
|
}
|
|
2907
2907
|
return h;
|
|
@@ -2932,7 +2932,7 @@ function mr(i) {
|
|
|
2932
2932
|
function Ge(i, t, e, s, n) {
|
|
2933
2933
|
const o = [];
|
|
2934
2934
|
return !n && !i.isPointInArea(t) || je(i, e, t, function(a, l, c) {
|
|
2935
|
-
!n && !
|
|
2935
|
+
!n && !Ht(a, i.chartArea, 0) || a.inRange(t.x, t.y, s) && o.push({
|
|
2936
2936
|
element: a,
|
|
2937
2937
|
datasetIndex: l,
|
|
2938
2938
|
index: c
|
|
@@ -3000,7 +3000,7 @@ function qi(i, t, e, s, n) {
|
|
|
3000
3000
|
var _r = {
|
|
3001
3001
|
modes: {
|
|
3002
3002
|
index(i, t, e, s) {
|
|
3003
|
-
const n =
|
|
3003
|
+
const n = Tt(t, i), o = e.axis || "x", r = e.includeInvisible || !1, a = e.intersect ? Ge(i, n, o, s, r) : Qe(i, n, o, !1, s, r), l = [];
|
|
3004
3004
|
return a.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
|
|
3005
3005
|
const h = a[0].index, d = c.data[h];
|
|
3006
3006
|
d && !d.skip && l.push({
|
|
@@ -3011,7 +3011,7 @@ var _r = {
|
|
|
3011
3011
|
}), l) : [];
|
|
3012
3012
|
},
|
|
3013
3013
|
dataset(i, t, e, s) {
|
|
3014
|
-
const n =
|
|
3014
|
+
const n = Tt(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
|
|
3015
3015
|
let a = e.intersect ? Ge(i, n, o, s, r) : Qe(i, n, o, !1, s, r);
|
|
3016
3016
|
if (a.length > 0) {
|
|
3017
3017
|
const l = a[0].datasetIndex, c = i.getDatasetMeta(l).data;
|
|
@@ -3026,19 +3026,19 @@ var _r = {
|
|
|
3026
3026
|
return a;
|
|
3027
3027
|
},
|
|
3028
3028
|
point(i, t, e, s) {
|
|
3029
|
-
const n =
|
|
3029
|
+
const n = Tt(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
|
|
3030
3030
|
return Ge(i, n, o, s, r);
|
|
3031
3031
|
},
|
|
3032
3032
|
nearest(i, t, e, s) {
|
|
3033
|
-
const n =
|
|
3033
|
+
const n = Tt(t, i), o = e.axis || "xy", r = e.includeInvisible || !1;
|
|
3034
3034
|
return Qe(i, n, o, e.intersect, s, r);
|
|
3035
3035
|
},
|
|
3036
3036
|
x(i, t, e, s) {
|
|
3037
|
-
const n =
|
|
3037
|
+
const n = Tt(t, i);
|
|
3038
3038
|
return qi(i, n, "x", e.intersect, s);
|
|
3039
3039
|
},
|
|
3040
3040
|
y(i, t, e, s) {
|
|
3041
|
-
const n =
|
|
3041
|
+
const n = Tt(t, i);
|
|
3042
3042
|
return qi(i, n, "y", e.intersect, s);
|
|
3043
3043
|
}
|
|
3044
3044
|
}
|
|
@@ -3121,7 +3121,7 @@ function tn(i, t) {
|
|
|
3121
3121
|
}
|
|
3122
3122
|
function Mr(i, t, e, s) {
|
|
3123
3123
|
const { pos: n, box: o } = e, r = i.maxPadding;
|
|
3124
|
-
if (!
|
|
3124
|
+
if (!R(n)) {
|
|
3125
3125
|
e.size && (i[n] -= e.size);
|
|
3126
3126
|
const d = s[e.stack] || {
|
|
3127
3127
|
size: 0,
|
|
@@ -3199,7 +3199,7 @@ function Zi(i, t, e, s) {
|
|
|
3199
3199
|
}
|
|
3200
3200
|
t.x = o, t.y = r;
|
|
3201
3201
|
}
|
|
3202
|
-
var
|
|
3202
|
+
var wt = {
|
|
3203
3203
|
addBox(i, t) {
|
|
3204
3204
|
i.boxes || (i.boxes = []), t.fullSize = t.fullSize || !1, t.position = t.position || "top", t.weight = t.weight || 0, t._layers = t._layers || function() {
|
|
3205
3205
|
return [
|
|
@@ -3340,7 +3340,7 @@ function Tr(i, t, e) {
|
|
|
3340
3340
|
i && i.canvas && i.canvas.removeEventListener(t, e, sn);
|
|
3341
3341
|
}
|
|
3342
3342
|
function Rr(i, t) {
|
|
3343
|
-
const e = Pr[i.type] || i.type, { x: s, y: n } =
|
|
3343
|
+
const e = Pr[i.type] || i.type, { x: s, y: n } = Tt(i, t);
|
|
3344
3344
|
return {
|
|
3345
3345
|
type: e,
|
|
3346
3346
|
chart: t,
|
|
@@ -3429,7 +3429,7 @@ class Hr extends en {
|
|
|
3429
3429
|
"width"
|
|
3430
3430
|
].forEach((o) => {
|
|
3431
3431
|
const r = s[o];
|
|
3432
|
-
|
|
3432
|
+
W(r) ? e.removeAttribute(o) : e.setAttribute(o, r);
|
|
3433
3433
|
});
|
|
3434
3434
|
const n = s.style || {};
|
|
3435
3435
|
return Object.keys(n).forEach((o) => {
|
|
@@ -3508,9 +3508,9 @@ function Nr(i, t) {
|
|
|
3508
3508
|
if (r > 0) {
|
|
3509
3509
|
let d, f;
|
|
3510
3510
|
const u = r > 1 ? Math.round((l - a) / (r - 1)) : null;
|
|
3511
|
-
for (xe(t, c, h,
|
|
3511
|
+
for (xe(t, c, h, W(u) ? 0 : a - u, a), d = 0, f = r - 1; d < f; d++)
|
|
3512
3512
|
xe(t, c, h, o[d], o[d + 1]);
|
|
3513
|
-
return xe(t, c, h, l,
|
|
3513
|
+
return xe(t, c, h, l, W(u) ? t.length : l + u), c;
|
|
3514
3514
|
}
|
|
3515
3515
|
return xe(t, c, h), c;
|
|
3516
3516
|
}
|
|
@@ -3592,16 +3592,16 @@ function ns(i, t) {
|
|
|
3592
3592
|
if (!i.display)
|
|
3593
3593
|
return 0;
|
|
3594
3594
|
const e = Z(i.font, t), s = J(i.padding);
|
|
3595
|
-
return (
|
|
3595
|
+
return (X(i.text) ? i.text.length : 1) * e.lineHeight + s.height;
|
|
3596
3596
|
}
|
|
3597
3597
|
function Gr(i, t) {
|
|
3598
|
-
return
|
|
3598
|
+
return Ft(i, {
|
|
3599
3599
|
scale: t,
|
|
3600
3600
|
type: "scale"
|
|
3601
3601
|
});
|
|
3602
3602
|
}
|
|
3603
3603
|
function Qr(i, t, e) {
|
|
3604
|
-
return
|
|
3604
|
+
return Ft(i, {
|
|
3605
3605
|
tick: e,
|
|
3606
3606
|
index: t,
|
|
3607
3607
|
type: "tick"
|
|
@@ -3616,17 +3616,17 @@ function Jr(i, t, e, s) {
|
|
|
3616
3616
|
let d = 0, f, u, m;
|
|
3617
3617
|
const p = r - n, g = a - o;
|
|
3618
3618
|
if (i.isHorizontal()) {
|
|
3619
|
-
if (u =
|
|
3620
|
-
const b = Object.keys(e)[0],
|
|
3621
|
-
m = h[b].getPixelForValue(
|
|
3619
|
+
if (u = nt(s, o, a), R(e)) {
|
|
3620
|
+
const b = Object.keys(e)[0], _ = e[b];
|
|
3621
|
+
m = h[b].getPixelForValue(_) + p - t;
|
|
3622
3622
|
} else e === "center" ? m = (c.bottom + c.top) / 2 + p - t : m = es(i, e, t);
|
|
3623
3623
|
f = a - o;
|
|
3624
3624
|
} else {
|
|
3625
|
-
if (
|
|
3626
|
-
const b = Object.keys(e)[0],
|
|
3627
|
-
u = h[b].getPixelForValue(
|
|
3625
|
+
if (R(e)) {
|
|
3626
|
+
const b = Object.keys(e)[0], _ = e[b];
|
|
3627
|
+
u = h[b].getPixelForValue(_) - g + t;
|
|
3628
3628
|
} else e === "center" ? u = (c.left + c.right) / 2 - g + t : u = es(i, e, t);
|
|
3629
|
-
m =
|
|
3629
|
+
m = nt(s, r, n), d = e === "left" ? -U : U;
|
|
3630
3630
|
}
|
|
3631
3631
|
return {
|
|
3632
3632
|
titleX: u,
|
|
@@ -3652,9 +3652,9 @@ class he extends ce {
|
|
|
3652
3652
|
}
|
|
3653
3653
|
getUserBounds() {
|
|
3654
3654
|
let { _userMin: t, _userMax: e, _suggestedMin: s, _suggestedMax: n } = this;
|
|
3655
|
-
return t =
|
|
3656
|
-
min:
|
|
3657
|
-
max:
|
|
3655
|
+
return t = dt(t, Number.POSITIVE_INFINITY), e = dt(e, Number.NEGATIVE_INFINITY), s = dt(s, Number.POSITIVE_INFINITY), n = dt(n, Number.NEGATIVE_INFINITY), {
|
|
3656
|
+
min: dt(t, s),
|
|
3657
|
+
max: dt(e, n),
|
|
3658
3658
|
minDefined: ct(t),
|
|
3659
3659
|
maxDefined: ct(e)
|
|
3660
3660
|
};
|
|
@@ -3670,8 +3670,8 @@ class he extends ce {
|
|
|
3670
3670
|
for (let l = 0, c = a.length; l < c; ++l)
|
|
3671
3671
|
r = a[l].controller.getMinMax(this, t), n || (e = Math.min(e, r.min)), o || (s = Math.max(s, r.max));
|
|
3672
3672
|
return e = o && e > s ? s : e, s = n && e > s ? e : s, {
|
|
3673
|
-
min:
|
|
3674
|
-
max:
|
|
3673
|
+
min: dt(e, dt(s, e)),
|
|
3674
|
+
max: dt(s, dt(e, s))
|
|
3675
3675
|
};
|
|
3676
3676
|
}
|
|
3677
3677
|
getPadding() {
|
|
@@ -3810,7 +3810,7 @@ class he extends ce {
|
|
|
3810
3810
|
if (r) {
|
|
3811
3811
|
const l = ns(n, e.options.font);
|
|
3812
3812
|
if (a ? (t.width = this.maxWidth, t.height = qt(o) + l) : (t.height = this.maxHeight, t.width = qt(o) + l), s.display && this.ticks.length) {
|
|
3813
|
-
const { first: c, last: h, widest: d, highest: f } = this._getLabelSizes(), u = s.padding * 2, m =
|
|
3813
|
+
const { first: c, last: h, widest: d, highest: f } = this._getLabelSizes(), u = s.padding * 2, m = pt(this.labelRotation), p = Math.cos(m), g = Math.sin(m);
|
|
3814
3814
|
if (a) {
|
|
3815
3815
|
const b = s.mirror ? 0 : g * d.width + p * f.height;
|
|
3816
3816
|
t.height = Math.min(this.maxHeight, t.height + b + u);
|
|
@@ -3853,7 +3853,7 @@ class he extends ce {
|
|
|
3853
3853
|
this.beforeTickToLabelConversion(), this.generateTickLabels(t);
|
|
3854
3854
|
let e, s;
|
|
3855
3855
|
for (e = 0, s = t.length; e < s; e++)
|
|
3856
|
-
|
|
3856
|
+
W(t[e].label) && (t.splice(e, 1), s--, e--);
|
|
3857
3857
|
this.afterTickToLabelConversion();
|
|
3858
3858
|
}
|
|
3859
3859
|
_getLabelSizes() {
|
|
@@ -3867,17 +3867,17 @@ class he extends ce {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
_computeLabelSizes(t, e, s) {
|
|
3869
3869
|
const { ctx: n, _longestTextCache: o } = this, r = [], a = [], l = Math.floor(e / is(e, s));
|
|
3870
|
-
let c = 0, h = 0, d, f, u, m, p, g, b,
|
|
3870
|
+
let c = 0, h = 0, d, f, u, m, p, g, b, _, x, v, y;
|
|
3871
3871
|
for (d = 0; d < e; d += l) {
|
|
3872
3872
|
if (m = t[d].label, p = this._resolveTickFontOptions(d), n.font = g = p.string, b = o[g] = o[g] || {
|
|
3873
3873
|
data: {},
|
|
3874
3874
|
gc: []
|
|
3875
|
-
},
|
|
3876
|
-
|
|
3877
|
-
else if (
|
|
3875
|
+
}, _ = p.lineHeight, x = v = 0, !W(m) && !X(m))
|
|
3876
|
+
x = Ee(n, b.data, b.gc, x, m), v = _;
|
|
3877
|
+
else if (X(m))
|
|
3878
3878
|
for (f = 0, u = m.length; f < u; ++f)
|
|
3879
|
-
|
|
3880
|
-
r.push(
|
|
3879
|
+
y = m[f], !W(y) && !X(y) && (x = Ee(n, b.data, b.gc, x, y), v += _);
|
|
3880
|
+
r.push(x), a.push(v), c = Math.max(x, c), h = Math.max(v, h);
|
|
3881
3881
|
}
|
|
3882
3882
|
qr(o, e);
|
|
3883
3883
|
const w = r.indexOf(c), k = a.indexOf(h), M = (S) => ({
|
|
@@ -3908,7 +3908,7 @@ class he extends ce {
|
|
|
3908
3908
|
getPixelForDecimal(t) {
|
|
3909
3909
|
this._reversePixels && (t = 1 - t);
|
|
3910
3910
|
const e = this._startPixel + t * this._length;
|
|
3911
|
-
return io(this._alignToPixels ?
|
|
3911
|
+
return io(this._alignToPixels ? Ot(this.chart, e, 0) : e);
|
|
3912
3912
|
}
|
|
3913
3913
|
getDecimalForPixel(t) {
|
|
3914
3914
|
const e = (t - this._startPixel) / this._length;
|
|
@@ -3930,7 +3930,7 @@ class he extends ce {
|
|
|
3930
3930
|
return this.$context || (this.$context = Gr(this.chart.getContext(), this));
|
|
3931
3931
|
}
|
|
3932
3932
|
_tickSize() {
|
|
3933
|
-
const t = this.options.ticks, e =
|
|
3933
|
+
const t = this.options.ticks, e = pt(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;
|
|
3934
3934
|
return this.isHorizontal() ? l * s > a * n ? a / s : l / n : l * n < a * s ? l / s : a / n;
|
|
3935
3935
|
}
|
|
3936
3936
|
_isVisible() {
|
|
@@ -3938,127 +3938,127 @@ class he extends ce {
|
|
|
3938
3938
|
return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
|
|
3939
3939
|
}
|
|
3940
3940
|
_computeGridLineItems(t) {
|
|
3941
|
-
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 = qt(o), u = [], m = a.setContext(this.getContext()), p = m.display ? m.width : 0, g = p / 2, b = function(
|
|
3942
|
-
return
|
|
3941
|
+
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 = qt(o), u = [], m = a.setContext(this.getContext()), p = m.display ? m.width : 0, g = p / 2, b = function(T) {
|
|
3942
|
+
return Ot(s, T, p);
|
|
3943
3943
|
};
|
|
3944
|
-
let
|
|
3944
|
+
let _, x, v, y, w, k, M, S, C, A, D, H;
|
|
3945
3945
|
if (r === "top")
|
|
3946
|
-
|
|
3946
|
+
_ = b(this.bottom), k = this.bottom - f, S = _ - g, A = b(t.top) + g, H = t.bottom;
|
|
3947
3947
|
else if (r === "bottom")
|
|
3948
|
-
|
|
3948
|
+
_ = b(this.top), A = t.top, H = b(t.bottom) - g, k = _ + g, S = this.top + f;
|
|
3949
3949
|
else if (r === "left")
|
|
3950
|
-
|
|
3950
|
+
_ = b(this.right), w = this.right - f, M = _ - g, C = b(t.left) + g, D = t.right;
|
|
3951
3951
|
else if (r === "right")
|
|
3952
|
-
|
|
3952
|
+
_ = b(this.left), C = t.left, D = b(t.right) - g, w = _ + g, M = this.left + f;
|
|
3953
3953
|
else if (e === "x") {
|
|
3954
3954
|
if (r === "center")
|
|
3955
|
-
|
|
3956
|
-
else if (
|
|
3957
|
-
const
|
|
3958
|
-
|
|
3955
|
+
_ = b((t.top + t.bottom) / 2 + 0.5);
|
|
3956
|
+
else if (R(r)) {
|
|
3957
|
+
const T = Object.keys(r)[0], L = r[T];
|
|
3958
|
+
_ = b(this.chart.scales[T].getPixelForValue(L));
|
|
3959
3959
|
}
|
|
3960
|
-
|
|
3960
|
+
A = t.top, H = t.bottom, k = _ + g, S = k + f;
|
|
3961
3961
|
} else if (e === "y") {
|
|
3962
3962
|
if (r === "center")
|
|
3963
|
-
|
|
3964
|
-
else if (
|
|
3965
|
-
const
|
|
3966
|
-
|
|
3963
|
+
_ = b((t.left + t.right) / 2);
|
|
3964
|
+
else if (R(r)) {
|
|
3965
|
+
const T = Object.keys(r)[0], L = r[T];
|
|
3966
|
+
_ = b(this.chart.scales[T].getPixelForValue(L));
|
|
3967
3967
|
}
|
|
3968
|
-
w =
|
|
3968
|
+
w = _ - g, M = w - f, C = t.left, D = t.right;
|
|
3969
3969
|
}
|
|
3970
|
-
const
|
|
3971
|
-
for (
|
|
3972
|
-
const
|
|
3973
|
-
v = Kr(this,
|
|
3970
|
+
const K = I(n.ticks.maxTicksLimit, d), P = Math.max(1, Math.ceil(d / K));
|
|
3971
|
+
for (x = 0; x < d; x += P) {
|
|
3972
|
+
const T = this.getContext(x), L = o.setContext(T), N = a.setContext(T), F = L.lineWidth, tt = L.color, rt = N.dash || [], et = N.dashOffset, St = L.tickWidth, ht = L.tickColor, Ct = L.tickBorderDash || [], At = L.tickBorderDashOffset;
|
|
3973
|
+
v = Kr(this, x, l), v !== void 0 && (y = Ot(s, v, F), c ? w = M = C = D = y : k = S = A = H = y, u.push({
|
|
3974
3974
|
tx1: w,
|
|
3975
3975
|
ty1: k,
|
|
3976
3976
|
tx2: M,
|
|
3977
3977
|
ty2: S,
|
|
3978
3978
|
x1: C,
|
|
3979
|
-
y1:
|
|
3979
|
+
y1: A,
|
|
3980
3980
|
x2: D,
|
|
3981
|
-
y2:
|
|
3981
|
+
y2: H,
|
|
3982
3982
|
width: F,
|
|
3983
|
-
color:
|
|
3984
|
-
borderDash:
|
|
3985
|
-
borderDashOffset:
|
|
3986
|
-
tickWidth:
|
|
3987
|
-
tickColor:
|
|
3988
|
-
tickBorderDash:
|
|
3989
|
-
tickBorderDashOffset:
|
|
3983
|
+
color: tt,
|
|
3984
|
+
borderDash: rt,
|
|
3985
|
+
borderDashOffset: et,
|
|
3986
|
+
tickWidth: St,
|
|
3987
|
+
tickColor: ht,
|
|
3988
|
+
tickBorderDash: Ct,
|
|
3989
|
+
tickBorderDashOffset: At
|
|
3990
3990
|
}));
|
|
3991
3991
|
}
|
|
3992
|
-
return this._ticksLength = d, this._borderValue =
|
|
3992
|
+
return this._ticksLength = d, this._borderValue = _, u;
|
|
3993
3993
|
}
|
|
3994
3994
|
_computeLabelItems(t) {
|
|
3995
|
-
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 = qt(s.grid), u = f + h, m = d ? -h : u, p = -
|
|
3996
|
-
let b,
|
|
3995
|
+
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 = qt(s.grid), u = f + h, m = d ? -h : u, p = -pt(this.labelRotation), g = [];
|
|
3996
|
+
let b, _, x, v, y, w, k, M, S, C, A, D, H = "middle";
|
|
3997
3997
|
if (n === "top")
|
|
3998
3998
|
w = this.bottom - m, k = this._getXAxisLabelAlignment();
|
|
3999
3999
|
else if (n === "bottom")
|
|
4000
4000
|
w = this.top + m, k = this._getXAxisLabelAlignment();
|
|
4001
4001
|
else if (n === "left") {
|
|
4002
|
-
const
|
|
4003
|
-
k =
|
|
4002
|
+
const P = this._getYAxisLabelAlignment(f);
|
|
4003
|
+
k = P.textAlign, y = P.x;
|
|
4004
4004
|
} else if (n === "right") {
|
|
4005
|
-
const
|
|
4006
|
-
k =
|
|
4005
|
+
const P = this._getYAxisLabelAlignment(f);
|
|
4006
|
+
k = P.textAlign, y = P.x;
|
|
4007
4007
|
} else if (e === "x") {
|
|
4008
4008
|
if (n === "center")
|
|
4009
4009
|
w = (t.top + t.bottom) / 2 + u;
|
|
4010
|
-
else if (
|
|
4011
|
-
const
|
|
4012
|
-
w = this.chart.scales[
|
|
4010
|
+
else if (R(n)) {
|
|
4011
|
+
const P = Object.keys(n)[0], T = n[P];
|
|
4012
|
+
w = this.chart.scales[P].getPixelForValue(T) + u;
|
|
4013
4013
|
}
|
|
4014
4014
|
k = this._getXAxisLabelAlignment();
|
|
4015
4015
|
} else if (e === "y") {
|
|
4016
4016
|
if (n === "center")
|
|
4017
|
-
|
|
4018
|
-
else if (
|
|
4019
|
-
const
|
|
4020
|
-
|
|
4017
|
+
y = (t.left + t.right) / 2 - u;
|
|
4018
|
+
else if (R(n)) {
|
|
4019
|
+
const P = Object.keys(n)[0], T = n[P];
|
|
4020
|
+
y = this.chart.scales[P].getPixelForValue(T);
|
|
4021
4021
|
}
|
|
4022
4022
|
k = this._getYAxisLabelAlignment(f).textAlign;
|
|
4023
4023
|
}
|
|
4024
|
-
e === "y" && (l === "start" ?
|
|
4025
|
-
const
|
|
4026
|
-
for (b = 0,
|
|
4027
|
-
|
|
4028
|
-
const
|
|
4029
|
-
M = this.getPixelForTick(b) + o.labelOffset, S = this._resolveTickFontOptions(b), C = S.lineHeight,
|
|
4030
|
-
const
|
|
4031
|
-
let
|
|
4032
|
-
r ? (
|
|
4033
|
-
let
|
|
4034
|
-
if (
|
|
4035
|
-
const
|
|
4036
|
-
let
|
|
4037
|
-
switch (
|
|
4024
|
+
e === "y" && (l === "start" ? H = "top" : l === "end" && (H = "bottom"));
|
|
4025
|
+
const K = this._getLabelSizes();
|
|
4026
|
+
for (b = 0, _ = a.length; b < _; ++b) {
|
|
4027
|
+
x = a[b], v = x.label;
|
|
4028
|
+
const P = o.setContext(this.getContext(b));
|
|
4029
|
+
M = this.getPixelForTick(b) + o.labelOffset, S = this._resolveTickFontOptions(b), C = S.lineHeight, A = X(v) ? v.length : 1;
|
|
4030
|
+
const T = A / 2, L = P.color, N = P.textStrokeColor, F = P.textStrokeWidth;
|
|
4031
|
+
let tt = k;
|
|
4032
|
+
r ? (y = M, k === "inner" && (b === _ - 1 ? tt = this.options.reverse ? "left" : "right" : b === 0 ? tt = this.options.reverse ? "right" : "left" : tt = "center"), n === "top" ? c === "near" || p !== 0 ? D = -A * C + C / 2 : c === "center" ? D = -K.highest.height / 2 - T * C + C : D = -K.highest.height + C / 2 : c === "near" || p !== 0 ? D = C / 2 : c === "center" ? D = K.highest.height / 2 - T * C : D = K.highest.height - A * C, d && (D *= -1), p !== 0 && !P.showLabelBackdrop && (y += C / 2 * Math.sin(p))) : (w = M, D = (1 - A) * C / 2);
|
|
4033
|
+
let rt;
|
|
4034
|
+
if (P.showLabelBackdrop) {
|
|
4035
|
+
const et = J(P.backdropPadding), St = K.heights[b], ht = K.widths[b];
|
|
4036
|
+
let Ct = D - et.top, At = 0 - et.left;
|
|
4037
|
+
switch (H) {
|
|
4038
4038
|
case "middle":
|
|
4039
|
-
|
|
4039
|
+
Ct -= St / 2;
|
|
4040
4040
|
break;
|
|
4041
4041
|
case "bottom":
|
|
4042
|
-
|
|
4042
|
+
Ct -= St;
|
|
4043
4043
|
break;
|
|
4044
4044
|
}
|
|
4045
4045
|
switch (k) {
|
|
4046
4046
|
case "center":
|
|
4047
|
-
|
|
4047
|
+
At -= ht / 2;
|
|
4048
4048
|
break;
|
|
4049
4049
|
case "right":
|
|
4050
|
-
|
|
4050
|
+
At -= ht;
|
|
4051
4051
|
break;
|
|
4052
4052
|
case "inner":
|
|
4053
|
-
b ===
|
|
4053
|
+
b === _ - 1 ? At -= ht : b > 0 && (At -= ht / 2);
|
|
4054
4054
|
break;
|
|
4055
4055
|
}
|
|
4056
|
-
|
|
4057
|
-
left:
|
|
4058
|
-
top:
|
|
4059
|
-
width:
|
|
4060
|
-
height:
|
|
4061
|
-
color:
|
|
4056
|
+
rt = {
|
|
4057
|
+
left: At,
|
|
4058
|
+
top: Ct,
|
|
4059
|
+
width: ht + et.width,
|
|
4060
|
+
height: St + et.height,
|
|
4061
|
+
color: P.backdropColor
|
|
4062
4062
|
};
|
|
4063
4063
|
}
|
|
4064
4064
|
g.push({
|
|
@@ -4067,16 +4067,16 @@ class he extends ce {
|
|
|
4067
4067
|
textOffset: D,
|
|
4068
4068
|
options: {
|
|
4069
4069
|
rotation: p,
|
|
4070
|
-
color:
|
|
4071
|
-
strokeColor:
|
|
4070
|
+
color: L,
|
|
4071
|
+
strokeColor: N,
|
|
4072
4072
|
strokeWidth: F,
|
|
4073
|
-
textAlign:
|
|
4074
|
-
textBaseline:
|
|
4073
|
+
textAlign: tt,
|
|
4074
|
+
textBaseline: H,
|
|
4075
4075
|
translation: [
|
|
4076
|
-
|
|
4076
|
+
y,
|
|
4077
4077
|
w
|
|
4078
4078
|
],
|
|
4079
|
-
backdrop:
|
|
4079
|
+
backdrop: rt
|
|
4080
4080
|
}
|
|
4081
4081
|
});
|
|
4082
4082
|
}
|
|
@@ -4084,7 +4084,7 @@ class he extends ce {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
_getXAxisLabelAlignment() {
|
|
4086
4086
|
const { position: t, ticks: e } = this.options;
|
|
4087
|
-
if (-
|
|
4087
|
+
if (-pt(this.labelRotation))
|
|
4088
4088
|
return t === "top" ? "left" : "right";
|
|
4089
4089
|
let n = "center";
|
|
4090
4090
|
return e.align === "start" ? n = "left" : e.align === "end" ? n = "right" : e.align === "inner" && (n = "inner"), n;
|
|
@@ -4162,7 +4162,7 @@ class he extends ce {
|
|
|
4162
4162
|
return;
|
|
4163
4163
|
const a = n.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
|
|
4164
4164
|
let c, h, d, f;
|
|
4165
|
-
this.isHorizontal() ? (c =
|
|
4165
|
+
this.isHorizontal() ? (c = Ot(t, this.left, r) - r / 2, h = Ot(t, this.right, a) + a / 2, d = f = l) : (d = Ot(t, this.top, r) - r / 2, f = Ot(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();
|
|
4166
4166
|
}
|
|
4167
4167
|
drawLabels(t) {
|
|
4168
4168
|
if (!this.options.ticks.display)
|
|
@@ -4172,7 +4172,7 @@ class he extends ce {
|
|
|
4172
4172
|
const o = this.getLabelItems(t);
|
|
4173
4173
|
for (const r of o) {
|
|
4174
4174
|
const a = r.options, l = r.font, c = r.label, h = r.textOffset;
|
|
4175
|
-
|
|
4175
|
+
$t(s, c, 0, h, l, a);
|
|
4176
4176
|
}
|
|
4177
4177
|
n && gi(s);
|
|
4178
4178
|
}
|
|
@@ -4182,9 +4182,9 @@ class he extends ce {
|
|
|
4182
4182
|
return;
|
|
4183
4183
|
const o = Z(s.font), r = J(s.padding), a = s.align;
|
|
4184
4184
|
let l = o.lineHeight / 2;
|
|
4185
|
-
e === "bottom" || e === "center" ||
|
|
4185
|
+
e === "bottom" || e === "center" || R(e) ? (l += r.bottom, X(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += r.top;
|
|
4186
4186
|
const { titleX: c, titleY: h, maxWidth: d, rotation: f } = Jr(this, l, e, a);
|
|
4187
|
-
|
|
4187
|
+
$t(t, s.text, 0, 0, o, {
|
|
4188
4188
|
color: s.color,
|
|
4189
4189
|
maxWidth: d,
|
|
4190
4190
|
rotation: f,
|
|
@@ -4261,30 +4261,30 @@ class _e {
|
|
|
4261
4261
|
const n = this.items, o = t.id, r = this.scope + "." + o;
|
|
4262
4262
|
if (!o)
|
|
4263
4263
|
throw new Error("class does not have id: " + t);
|
|
4264
|
-
return o in n || (n[o] = t, ta(t, r, s), this.override &&
|
|
4264
|
+
return o in n || (n[o] = t, ta(t, r, s), this.override && $.override(t.id, t.overrides)), r;
|
|
4265
4265
|
}
|
|
4266
4266
|
get(t) {
|
|
4267
4267
|
return this.items[t];
|
|
4268
4268
|
}
|
|
4269
4269
|
unregister(t) {
|
|
4270
4270
|
const e = this.items, s = t.id, n = this.scope;
|
|
4271
|
-
s in e && delete e[s], n && s in
|
|
4271
|
+
s in e && delete e[s], n && s in $[n] && (delete $[n][s], this.override && delete Et[s]);
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
4274
4274
|
function ta(i, t, e) {
|
|
4275
4275
|
const s = oe(/* @__PURE__ */ Object.create(null), [
|
|
4276
|
-
e ?
|
|
4277
|
-
|
|
4276
|
+
e ? $.get(e) : {},
|
|
4277
|
+
$.get(t),
|
|
4278
4278
|
i.defaults
|
|
4279
4279
|
]);
|
|
4280
|
-
|
|
4280
|
+
$.set(t, s), i.defaultRoutes && ea(t, i.defaultRoutes), i.descriptors && $.describe(t, i.descriptors);
|
|
4281
4281
|
}
|
|
4282
4282
|
function ea(i, t) {
|
|
4283
4283
|
Object.keys(t).forEach((e) => {
|
|
4284
4284
|
const s = e.split("."), n = s.pop(), o = [
|
|
4285
4285
|
i
|
|
4286
4286
|
].concat(s).join("."), r = t[e].split("."), a = r.pop(), l = r.join(".");
|
|
4287
|
-
|
|
4287
|
+
$.route(o, n, l, a);
|
|
4288
4288
|
});
|
|
4289
4289
|
}
|
|
4290
4290
|
function ia(i) {
|
|
@@ -4370,7 +4370,7 @@ class sa {
|
|
|
4370
4370
|
return n;
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
|
-
var
|
|
4373
|
+
var ut = /* @__PURE__ */ new sa();
|
|
4374
4374
|
class na {
|
|
4375
4375
|
constructor() {
|
|
4376
4376
|
this._init = void 0;
|
|
@@ -4395,7 +4395,7 @@ class na {
|
|
|
4395
4395
|
return !0;
|
|
4396
4396
|
}
|
|
4397
4397
|
invalidate() {
|
|
4398
|
-
|
|
4398
|
+
W(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
|
|
4399
4399
|
}
|
|
4400
4400
|
_descriptors(t) {
|
|
4401
4401
|
if (this._cache)
|
|
@@ -4413,9 +4413,9 @@ class na {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
}
|
|
4415
4415
|
function oa(i) {
|
|
4416
|
-
const t = {}, e = [], s = Object.keys(
|
|
4416
|
+
const t = {}, e = [], s = Object.keys(ut.plugins.items);
|
|
4417
4417
|
for (let o = 0; o < s.length; o++)
|
|
4418
|
-
e.push(
|
|
4418
|
+
e.push(ut.getPlugin(s[o]));
|
|
4419
4419
|
const n = i.plugins || [];
|
|
4420
4420
|
for (let o = 0; o < n.length; o++) {
|
|
4421
4421
|
const r = n[o];
|
|
@@ -4454,7 +4454,7 @@ function la(i, { plugin: t, local: e }, s, n) {
|
|
|
4454
4454
|
});
|
|
4455
4455
|
}
|
|
4456
4456
|
function ii(i, t) {
|
|
4457
|
-
const e =
|
|
4457
|
+
const e = $.datasets[i] || {};
|
|
4458
4458
|
return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
|
|
4459
4459
|
}
|
|
4460
4460
|
function ca(i, t) {
|
|
@@ -4499,16 +4499,16 @@ function fa(i, t) {
|
|
|
4499
4499
|
return {};
|
|
4500
4500
|
}
|
|
4501
4501
|
function ua(i, t) {
|
|
4502
|
-
const e =
|
|
4502
|
+
const e = Et[i.type] || {
|
|
4503
4503
|
scales: {}
|
|
4504
4504
|
}, s = t.scales || {}, n = ii(i.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
4505
4505
|
return Object.keys(s).forEach((r) => {
|
|
4506
4506
|
const a = s[r];
|
|
4507
|
-
if (!
|
|
4507
|
+
if (!R(a))
|
|
4508
4508
|
return console.error(`Invalid scale configuration for scale: ${r}`);
|
|
4509
4509
|
if (a._proxy)
|
|
4510
4510
|
return console.warn(`Ignoring resolver passed as options for scale: ${r}`);
|
|
4511
|
-
const l = si(r, a, fa(r, i),
|
|
4511
|
+
const l = si(r, a, fa(r, i), $.scales[a.type]), c = ha(l, n), h = e.scales || {};
|
|
4512
4512
|
o[r] = ee(/* @__PURE__ */ Object.create(null), [
|
|
4513
4513
|
{
|
|
4514
4514
|
axis: l
|
|
@@ -4518,7 +4518,7 @@ function ua(i, t) {
|
|
|
4518
4518
|
h[c]
|
|
4519
4519
|
]);
|
|
4520
4520
|
}), i.data.datasets.forEach((r) => {
|
|
4521
|
-
const a = r.type || i.type, l = r.indexAxis || ii(a, t), h = (
|
|
4521
|
+
const a = r.type || i.type, l = r.indexAxis || ii(a, t), h = (Et[a] || {}).scales || {};
|
|
4522
4522
|
Object.keys(h).forEach((d) => {
|
|
4523
4523
|
const f = ca(d, l), u = r[f + "AxisID"] || f;
|
|
4524
4524
|
o[u] = o[u] || /* @__PURE__ */ Object.create(null), ee(o[u], [
|
|
@@ -4532,8 +4532,8 @@ function ua(i, t) {
|
|
|
4532
4532
|
}), Object.keys(o).forEach((r) => {
|
|
4533
4533
|
const a = o[r];
|
|
4534
4534
|
ee(a, [
|
|
4535
|
-
|
|
4536
|
-
|
|
4535
|
+
$.scales[a.type],
|
|
4536
|
+
$.scale
|
|
4537
4537
|
]);
|
|
4538
4538
|
}), o;
|
|
4539
4539
|
}
|
|
@@ -4553,7 +4553,7 @@ function ye(i, t) {
|
|
|
4553
4553
|
return e || (e = t(), as.set(i, e), an.add(e)), e;
|
|
4554
4554
|
}
|
|
4555
4555
|
const Gt = (i, t, e) => {
|
|
4556
|
-
const s =
|
|
4556
|
+
const s = Vt(t, e);
|
|
4557
4557
|
s !== void 0 && i.add(s);
|
|
4558
4558
|
};
|
|
4559
4559
|
class pa {
|
|
@@ -4641,7 +4641,7 @@ class pa {
|
|
|
4641
4641
|
return a;
|
|
4642
4642
|
const l = /* @__PURE__ */ new Set();
|
|
4643
4643
|
e.forEach((h) => {
|
|
4644
|
-
t && (l.add(t), h.forEach((d) => Gt(l, t, d))), h.forEach((d) => Gt(l, n, d)), h.forEach((d) => Gt(l,
|
|
4644
|
+
t && (l.add(t), h.forEach((d) => Gt(l, t, d))), h.forEach((d) => Gt(l, n, d)), h.forEach((d) => Gt(l, Et[o] || {}, d)), h.forEach((d) => Gt(l, $, d)), h.forEach((d) => Gt(l, ei, d));
|
|
4645
4645
|
});
|
|
4646
4646
|
const c = Array.from(l);
|
|
4647
4647
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), an.has(e) && r.set(e, c), c;
|
|
@@ -4650,12 +4650,12 @@ class pa {
|
|
|
4650
4650
|
const { options: t, type: e } = this;
|
|
4651
4651
|
return [
|
|
4652
4652
|
t,
|
|
4653
|
-
|
|
4654
|
-
|
|
4653
|
+
Et[e] || {},
|
|
4654
|
+
$.datasets[e] || {},
|
|
4655
4655
|
{
|
|
4656
4656
|
type: e
|
|
4657
4657
|
},
|
|
4658
|
-
|
|
4658
|
+
$,
|
|
4659
4659
|
ei
|
|
4660
4660
|
];
|
|
4661
4661
|
}
|
|
@@ -4667,9 +4667,9 @@ class pa {
|
|
|
4667
4667
|
}, { resolver: r, subPrefixes: a } = ls(this._resolverCache, t, n);
|
|
4668
4668
|
let l = r;
|
|
4669
4669
|
if (ba(r, e)) {
|
|
4670
|
-
o.$shared = !1, s =
|
|
4670
|
+
o.$shared = !1, s = Mt(s) ? s() : s;
|
|
4671
4671
|
const c = this.createResolver(t, s, a);
|
|
4672
|
-
l =
|
|
4672
|
+
l = Yt(r, s, c);
|
|
4673
4673
|
}
|
|
4674
4674
|
for (const c of e)
|
|
4675
4675
|
o[c] = l[c];
|
|
@@ -4679,7 +4679,7 @@ class pa {
|
|
|
4679
4679
|
""
|
|
4680
4680
|
], n) {
|
|
4681
4681
|
const { resolver: o } = ls(this._resolverCache, t, s);
|
|
4682
|
-
return
|
|
4682
|
+
return R(e) ? Yt(o, e, void 0, n) : o;
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
4685
|
function ls(i, t, e) {
|
|
@@ -4692,12 +4692,12 @@ function ls(i, t, e) {
|
|
|
4692
4692
|
subPrefixes: e.filter((a) => !a.toLowerCase().includes("hover"))
|
|
4693
4693
|
}, s.set(n, o)), o;
|
|
4694
4694
|
}
|
|
4695
|
-
const ma = (i) =>
|
|
4695
|
+
const ma = (i) => R(i) && Object.getOwnPropertyNames(i).some((t) => Mt(i[t]));
|
|
4696
4696
|
function ba(i, t) {
|
|
4697
4697
|
const { isScriptable: e, isIndexable: s } = Ys(i);
|
|
4698
4698
|
for (const n of t) {
|
|
4699
4699
|
const o = e(n), r = s(n), a = (r || o) && i[n];
|
|
4700
|
-
if (o && (
|
|
4700
|
+
if (o && (Mt(a) || ma(a)) || r && X(a))
|
|
4701
4701
|
return !0;
|
|
4702
4702
|
}
|
|
4703
4703
|
return !1;
|
|
@@ -4751,17 +4751,17 @@ function wa(i, t, e, s) {
|
|
|
4751
4751
|
return !e || i.type === "mouseout" ? null : s ? t : i;
|
|
4752
4752
|
}
|
|
4753
4753
|
class ae {
|
|
4754
|
-
static defaults =
|
|
4754
|
+
static defaults = $;
|
|
4755
4755
|
static instances = Se;
|
|
4756
|
-
static overrides =
|
|
4757
|
-
static registry =
|
|
4756
|
+
static overrides = Et;
|
|
4757
|
+
static registry = ut;
|
|
4758
4758
|
static version = xa;
|
|
4759
4759
|
static getChart = fs;
|
|
4760
4760
|
static register(...t) {
|
|
4761
|
-
|
|
4761
|
+
ut.add(...t), us();
|
|
4762
4762
|
}
|
|
4763
4763
|
static unregister(...t) {
|
|
4764
|
-
|
|
4764
|
+
ut.remove(...t), us();
|
|
4765
4765
|
}
|
|
4766
4766
|
constructor(t, e) {
|
|
4767
4767
|
const s = this.config = new pa(e), n = ln(t), o = fs(n);
|
|
@@ -4778,7 +4778,7 @@ class ae {
|
|
|
4778
4778
|
}
|
|
4779
4779
|
get aspectRatio() {
|
|
4780
4780
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
|
|
4781
|
-
return
|
|
4781
|
+
return W(t) ? e && o ? o : n ? s / n : null : t;
|
|
4782
4782
|
}
|
|
4783
4783
|
get data() {
|
|
4784
4784
|
return this.config.data;
|
|
@@ -4793,7 +4793,7 @@ class ae {
|
|
|
4793
4793
|
this.config.options = t;
|
|
4794
4794
|
}
|
|
4795
4795
|
get registry() {
|
|
4796
|
-
return
|
|
4796
|
+
return ut;
|
|
4797
4797
|
}
|
|
4798
4798
|
_initialize() {
|
|
4799
4799
|
return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Ni(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
|
|
@@ -4842,7 +4842,7 @@ class ae {
|
|
|
4842
4842
|
if (l in s && s[l].type === h)
|
|
4843
4843
|
d = s[l];
|
|
4844
4844
|
else {
|
|
4845
|
-
const f =
|
|
4845
|
+
const f = ut.getScale(h);
|
|
4846
4846
|
d = new f({
|
|
4847
4847
|
id: l,
|
|
4848
4848
|
type: h,
|
|
@@ -4854,7 +4854,7 @@ class ae {
|
|
|
4854
4854
|
}), E(n, (r, a) => {
|
|
4855
4855
|
r || delete s[a];
|
|
4856
4856
|
}), E(s, (r) => {
|
|
4857
|
-
|
|
4857
|
+
wt.configure(this, r, r.options), wt.addBox(this, r);
|
|
4858
4858
|
});
|
|
4859
4859
|
}
|
|
4860
4860
|
_updateMetasets() {
|
|
@@ -4882,10 +4882,10 @@ class ae {
|
|
|
4882
4882
|
if (r.type && r.type !== a && (this._destroyDatasetMeta(s), r = this.getDatasetMeta(s)), r.type = a, r.indexAxis = o.indexAxis || ii(a, this.options), r.order = o.order || 0, r.index = s, r.label = "" + o.label, r.visible = this.isDatasetVisible(s), r.controller)
|
|
4883
4883
|
r.controller.updateIndex(s), r.controller.linkScales();
|
|
4884
4884
|
else {
|
|
4885
|
-
const l =
|
|
4885
|
+
const l = ut.getController(a), { datasetElementType: c, dataElementType: h } = $.datasets[a];
|
|
4886
4886
|
Object.assign(l, {
|
|
4887
|
-
dataElementType:
|
|
4888
|
-
datasetElementType: c &&
|
|
4887
|
+
dataElementType: ut.getElement(h),
|
|
4888
|
+
datasetElementType: c && ut.getElement(c)
|
|
4889
4889
|
}), r.controller = new l(this, s), t.push(r.controller);
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
@@ -4925,7 +4925,7 @@ class ae {
|
|
|
4925
4925
|
}
|
|
4926
4926
|
_updateScales() {
|
|
4927
4927
|
E(this.scales, (t) => {
|
|
4928
|
-
|
|
4928
|
+
wt.removeBox(this, t);
|
|
4929
4929
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
4930
4930
|
}
|
|
4931
4931
|
_checkEventBindings() {
|
|
@@ -4959,7 +4959,7 @@ class ae {
|
|
|
4959
4959
|
cancelable: !0
|
|
4960
4960
|
}) === !1)
|
|
4961
4961
|
return;
|
|
4962
|
-
|
|
4962
|
+
wt.update(this, this.width, this.height, t);
|
|
4963
4963
|
const e = this.chartArea, s = e.width <= 0 || e.height <= 0;
|
|
4964
4964
|
this._layers = [], E(this.boxes, (n) => {
|
|
4965
4965
|
s && n.position === "chartArea" || (n.configure && n.configure(), this._layers.push(...n._layers()));
|
|
@@ -4975,7 +4975,7 @@ class ae {
|
|
|
4975
4975
|
for (let e = 0, s = this.data.datasets.length; e < s; ++e)
|
|
4976
4976
|
this.getDatasetMeta(e).controller.configure();
|
|
4977
4977
|
for (let e = 0, s = this.data.datasets.length; e < s; ++e)
|
|
4978
|
-
this._updateDataset(e,
|
|
4978
|
+
this._updateDataset(e, Mt(t) ? t({
|
|
4979
4979
|
datasetIndex: e
|
|
4980
4980
|
}) : t);
|
|
4981
4981
|
this.notifyPlugins("afterDatasetsUpdate", {
|
|
@@ -5047,7 +5047,7 @@ class ae {
|
|
|
5047
5047
|
this.notifyPlugins("beforeDatasetDraw", s) !== !1 && (n && ui(e, n), t.controller.draw(), n && gi(e), s.cancelable = !1, this.notifyPlugins("afterDatasetDraw", s));
|
|
5048
5048
|
}
|
|
5049
5049
|
isPointInArea(t) {
|
|
5050
|
-
return
|
|
5050
|
+
return Ht(t, this.chartArea, this._minPadding);
|
|
5051
5051
|
}
|
|
5052
5052
|
getElementsAtEventForMode(t, e, s, n) {
|
|
5053
5053
|
const o = _r.modes[e];
|
|
@@ -5072,7 +5072,7 @@ class ae {
|
|
|
5072
5072
|
}, s.push(n)), n;
|
|
5073
5073
|
}
|
|
5074
5074
|
getContext() {
|
|
5075
|
-
return this.$context || (this.$context =
|
|
5075
|
+
return this.$context || (this.$context = Ft(null, {
|
|
5076
5076
|
chart: this,
|
|
5077
5077
|
type: "chart"
|
|
5078
5078
|
}));
|
|
@@ -5235,12 +5235,12 @@ function us() {
|
|
|
5235
5235
|
return E(ae.instances, (i) => i._plugins.invalidate());
|
|
5236
5236
|
}
|
|
5237
5237
|
function ka(i, t, e) {
|
|
5238
|
-
const { startAngle: s, x: n, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: h } = l, d = Math.min(c / r,
|
|
5238
|
+
const { startAngle: s, x: n, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: h } = l, d = Math.min(c / r, ot(s - e));
|
|
5239
5239
|
if (i.beginPath(), i.arc(n, o, r - c / 2, s + d / 2, e - d / 2), a > 0) {
|
|
5240
|
-
const f = Math.min(c / a,
|
|
5240
|
+
const f = Math.min(c / a, ot(s - e));
|
|
5241
5241
|
i.arc(n, o, a + c / 2, e - f / 2, s + f / 2, !0);
|
|
5242
5242
|
} else {
|
|
5243
|
-
const f = Math.min(c / 2, r *
|
|
5243
|
+
const f = Math.min(c / 2, r * ot(s - e));
|
|
5244
5244
|
if (h === "round")
|
|
5245
5245
|
i.arc(n, o, f, e - z / 2, s + z / 2, !0);
|
|
5246
5246
|
else if (h === "bevel") {
|
|
@@ -5253,7 +5253,7 @@ function ka(i, t, e) {
|
|
|
5253
5253
|
function Ma(i, t, e) {
|
|
5254
5254
|
const { startAngle: s, pixelMargin: n, x: o, y: r, outerRadius: a, innerRadius: l } = t;
|
|
5255
5255
|
let c = n / a;
|
|
5256
|
-
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 +
|
|
5256
|
+
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 + U, s - U), i.closePath(), i.clip();
|
|
5257
5257
|
}
|
|
5258
5258
|
function Sa(i) {
|
|
5259
5259
|
return pi(i, [
|
|
@@ -5275,7 +5275,7 @@ function Ca(i, t, e, s) {
|
|
|
5275
5275
|
innerEnd: lt(n.innerEnd, 0, r)
|
|
5276
5276
|
};
|
|
5277
5277
|
}
|
|
5278
|
-
function
|
|
5278
|
+
function Bt(i, t, e, s) {
|
|
5279
5279
|
return {
|
|
5280
5280
|
x: e + i * Math.cos(t),
|
|
5281
5281
|
y: s + i * Math.sin(t)
|
|
@@ -5286,37 +5286,37 @@ function He(i, t, e, s, n, o) {
|
|
|
5286
5286
|
let u = 0;
|
|
5287
5287
|
const m = n - l;
|
|
5288
5288
|
if (s) {
|
|
5289
|
-
const
|
|
5290
|
-
u = (m -
|
|
5289
|
+
const P = h > 0 ? h - s : 0, T = d > 0 ? d - s : 0, L = (P + T) / 2, N = L !== 0 ? m * L / (L + s) : m;
|
|
5290
|
+
u = (m - N) / 2;
|
|
5291
5291
|
}
|
|
5292
|
-
const p = Math.max(1e-3, m * d - e / z) / d, g = (m - p) / 2, b = l + g + u,
|
|
5292
|
+
const p = Math.max(1e-3, m * d - e / z) / d, g = (m - p) / 2, b = l + g + u, _ = n - g - u, { outerStart: x, outerEnd: v, innerStart: y, innerEnd: w } = Ca(t, f, d, _ - b), k = d - x, M = d - v, S = b + x / k, C = _ - v / M, A = f + y, D = f + w, H = b + y / A, K = _ - w / D;
|
|
5293
5293
|
if (i.beginPath(), o) {
|
|
5294
|
-
const
|
|
5295
|
-
if (i.arc(r, a, d, S,
|
|
5296
|
-
const F =
|
|
5297
|
-
i.arc(F.x, F.y, v, C,
|
|
5294
|
+
const P = (S + C) / 2;
|
|
5295
|
+
if (i.arc(r, a, d, S, P), i.arc(r, a, d, P, C), v > 0) {
|
|
5296
|
+
const F = Bt(M, C, r, a);
|
|
5297
|
+
i.arc(F.x, F.y, v, C, _ + U);
|
|
5298
5298
|
}
|
|
5299
|
-
const
|
|
5300
|
-
if (i.lineTo(
|
|
5301
|
-
const F =
|
|
5302
|
-
i.arc(F.x, F.y, w,
|
|
5299
|
+
const T = Bt(D, _, r, a);
|
|
5300
|
+
if (i.lineTo(T.x, T.y), w > 0) {
|
|
5301
|
+
const F = Bt(D, K, r, a);
|
|
5302
|
+
i.arc(F.x, F.y, w, _ + U, K + Math.PI);
|
|
5303
5303
|
}
|
|
5304
|
-
const
|
|
5305
|
-
if (i.arc(r, a, f,
|
|
5306
|
-
const F =
|
|
5307
|
-
i.arc(F.x, F.y,
|
|
5304
|
+
const L = (_ - w / f + (b + y / f)) / 2;
|
|
5305
|
+
if (i.arc(r, a, f, _ - w / f, L, !0), i.arc(r, a, f, L, b + y / f, !0), y > 0) {
|
|
5306
|
+
const F = Bt(A, H, r, a);
|
|
5307
|
+
i.arc(F.x, F.y, y, H + Math.PI, b - U);
|
|
5308
5308
|
}
|
|
5309
|
-
const
|
|
5310
|
-
if (i.lineTo(
|
|
5311
|
-
const F =
|
|
5312
|
-
i.arc(F.x, F.y,
|
|
5309
|
+
const N = Bt(k, b, r, a);
|
|
5310
|
+
if (i.lineTo(N.x, N.y), x > 0) {
|
|
5311
|
+
const F = Bt(k, S, r, a);
|
|
5312
|
+
i.arc(F.x, F.y, x, b - U, S);
|
|
5313
5313
|
}
|
|
5314
5314
|
} else {
|
|
5315
5315
|
i.moveTo(r, a);
|
|
5316
|
-
const
|
|
5317
|
-
i.lineTo(
|
|
5318
|
-
const
|
|
5319
|
-
i.lineTo(
|
|
5316
|
+
const P = Math.cos(S) * d + r, T = Math.sin(S) * d + a;
|
|
5317
|
+
i.lineTo(P, T);
|
|
5318
|
+
const L = Math.cos(C) * d + r, N = Math.sin(C) * d + a;
|
|
5319
|
+
i.lineTo(L, N);
|
|
5320
5320
|
}
|
|
5321
5321
|
i.closePath();
|
|
5322
5322
|
}
|
|
@@ -5327,7 +5327,7 @@ function Aa(i, t, e, s, n) {
|
|
|
5327
5327
|
He(i, t, e, s, l, n);
|
|
5328
5328
|
for (let c = 0; c < o; ++c)
|
|
5329
5329
|
i.fill();
|
|
5330
|
-
isNaN(a) || (l = r + (a %
|
|
5330
|
+
isNaN(a) || (l = r + (a % V || V));
|
|
5331
5331
|
}
|
|
5332
5332
|
return He(i, t, e, s, l, n), i.fill(), l;
|
|
5333
5333
|
}
|
|
@@ -5341,7 +5341,7 @@ function Pa(i, t, e, s, n) {
|
|
|
5341
5341
|
He(i, t, e, s, p, n);
|
|
5342
5342
|
for (let g = 0; g < o; ++g)
|
|
5343
5343
|
i.stroke();
|
|
5344
|
-
isNaN(a) || (p = r + (a %
|
|
5344
|
+
isNaN(a) || (p = r + (a % V || V));
|
|
5345
5345
|
}
|
|
5346
5346
|
m && Ma(i, t, p), l.selfJoin && p - r >= z && u === 0 && h !== "miter" && ka(i, t, p), o || (He(i, t, e, s, p, n), i.stroke());
|
|
5347
5347
|
}
|
|
@@ -5391,7 +5391,7 @@ class cn extends ce {
|
|
|
5391
5391
|
"innerRadius",
|
|
5392
5392
|
"outerRadius",
|
|
5393
5393
|
"circumference"
|
|
5394
|
-
], s), f = (this.options.spacing + this.options.borderWidth) / 2, u = I(d, l - a), m = Ie(o, a, l) && a !== l, p = u >=
|
|
5394
|
+
], s), f = (this.options.spacing + this.options.borderWidth) / 2, u = I(d, l - a), m = Ie(o, a, l) && a !== l, p = u >= V || m, g = Zt(r, c + f, h + f);
|
|
5395
5395
|
return p && g;
|
|
5396
5396
|
}
|
|
5397
5397
|
getCenterPoint(t) {
|
|
@@ -5413,7 +5413,7 @@ class cn extends ce {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
draw(t) {
|
|
5415
5415
|
const { options: e, circumference: s } = this, n = (e.offset || 0) / 4, o = (e.spacing || 0) / 2, r = e.circular;
|
|
5416
|
-
if (this.pixelMargin = e.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = s >
|
|
5416
|
+
if (this.pixelMargin = e.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = s > V ? Math.floor(s / V) : 0, s === 0 || this.innerRadius < 0 || this.outerRadius < 0)
|
|
5417
5417
|
return;
|
|
5418
5418
|
t.save();
|
|
5419
5419
|
const a = (this.startAngle + this.endAngle) / 2;
|
|
@@ -5479,17 +5479,17 @@ class ps extends ce {
|
|
|
5479
5479
|
const { ctx: o, maxHeight: r, options: { labels: { padding: a } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], h = r - t;
|
|
5480
5480
|
let d = a, f = 0, u = 0, m = 0, p = 0;
|
|
5481
5481
|
return this.legendItems.forEach((g, b) => {
|
|
5482
|
-
const { itemWidth:
|
|
5483
|
-
b > 0 && u +
|
|
5482
|
+
const { itemWidth: _, itemHeight: x } = Da(s, e, o, g, n);
|
|
5483
|
+
b > 0 && u + x + 2 * a > h && (d += f + a, c.push({
|
|
5484
5484
|
width: f,
|
|
5485
5485
|
height: u
|
|
5486
5486
|
}), m += f + a, p++, f = u = 0), l[b] = {
|
|
5487
5487
|
left: m,
|
|
5488
5488
|
top: u,
|
|
5489
5489
|
col: p,
|
|
5490
|
-
width:
|
|
5491
|
-
height:
|
|
5492
|
-
}, f = Math.max(f,
|
|
5490
|
+
width: _,
|
|
5491
|
+
height: x
|
|
5492
|
+
}, f = Math.max(f, _), u += x + a;
|
|
5493
5493
|
}), d += f, c.push({
|
|
5494
5494
|
width: f,
|
|
5495
5495
|
height: u
|
|
@@ -5498,15 +5498,15 @@ class ps extends ce {
|
|
|
5498
5498
|
adjustHitBoxes() {
|
|
5499
5499
|
if (!this.options.display)
|
|
5500
5500
|
return;
|
|
5501
|
-
const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: s, labels: { padding: n }, rtl: o } } = this, r =
|
|
5501
|
+
const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: s, labels: { padding: n }, rtl: o } } = this, r = jt(o, this.left, this.width);
|
|
5502
5502
|
if (this.isHorizontal()) {
|
|
5503
|
-
let a = 0, l =
|
|
5503
|
+
let a = 0, l = nt(s, this.left + n, this.right - this.lineWidths[a]);
|
|
5504
5504
|
for (const c of e)
|
|
5505
|
-
a !== c.row && (a = c.row, l =
|
|
5505
|
+
a !== c.row && (a = c.row, l = nt(s, this.left + n, this.right - this.lineWidths[a])), c.top += this.top + t + n, c.left = r.leftForLtr(r.x(l), c.width), l += c.width + n;
|
|
5506
5506
|
} else {
|
|
5507
|
-
let a = 0, l =
|
|
5507
|
+
let a = 0, l = nt(s, this.top + t + n, this.bottom - this.columnSizes[a].height);
|
|
5508
5508
|
for (const c of e)
|
|
5509
|
-
c.col !== a && (a = c.col, l =
|
|
5509
|
+
c.col !== a && (a = c.col, l = nt(s, this.top + t + n, this.bottom - this.columnSizes[a].height)), c.top = l, c.left += this.left + n, c.left = r.leftForLtr(r.x(c.left), c.width), l += c.height + n;
|
|
5510
5510
|
}
|
|
5511
5511
|
}
|
|
5512
5512
|
isHorizontal() {
|
|
@@ -5519,7 +5519,7 @@ class ps extends ce {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
5521
5521
|
_draw() {
|
|
5522
|
-
const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: r } = t, a =
|
|
5522
|
+
const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: r } = t, a = $.color, l = jt(t.rtl, this.left, this.width), c = Z(r.font), { padding: h } = r, d = c.size, f = d / 2;
|
|
5523
5523
|
let u;
|
|
5524
5524
|
this.drawTitle(), n.textAlign = l.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = c.string;
|
|
5525
5525
|
const { boxWidth: m, boxHeight: p, itemHeight: g } = gs(r, d), b = function(w, k, M) {
|
|
@@ -5533,64 +5533,64 @@ class ps extends ce {
|
|
|
5533
5533
|
pointStyle: M.pointStyle,
|
|
5534
5534
|
rotation: M.rotation,
|
|
5535
5535
|
borderWidth: S
|
|
5536
|
-
},
|
|
5537
|
-
$s(n, C,
|
|
5536
|
+
}, A = l.xPlus(w, m / 2), D = k + f;
|
|
5537
|
+
$s(n, C, A, D, r.pointStyleWidth && m);
|
|
5538
5538
|
} else {
|
|
5539
|
-
const C = k + Math.max((d - p) / 2, 0),
|
|
5540
|
-
n.beginPath(), Object.values(D).some((
|
|
5541
|
-
x:
|
|
5539
|
+
const C = k + Math.max((d - p) / 2, 0), A = l.leftForLtr(w, m), D = Nt(M.borderRadius);
|
|
5540
|
+
n.beginPath(), Object.values(D).some((H) => H !== 0) ? Fe(n, {
|
|
5541
|
+
x: A,
|
|
5542
5542
|
y: C,
|
|
5543
5543
|
w: m,
|
|
5544
5544
|
h: p,
|
|
5545
5545
|
radius: D
|
|
5546
|
-
}) : n.rect(
|
|
5546
|
+
}) : n.rect(A, C, m, p), n.fill(), S !== 0 && n.stroke();
|
|
5547
5547
|
}
|
|
5548
5548
|
n.restore();
|
|
5549
|
-
},
|
|
5550
|
-
|
|
5549
|
+
}, _ = function(w, k, M) {
|
|
5550
|
+
$t(n, M.text, w, k + g / 2, c, {
|
|
5551
5551
|
strikethrough: M.hidden,
|
|
5552
5552
|
textAlign: l.textAlign(M.textAlign)
|
|
5553
5553
|
});
|
|
5554
|
-
},
|
|
5555
|
-
|
|
5556
|
-
x:
|
|
5554
|
+
}, x = this.isHorizontal(), v = this._computeTitleHeight();
|
|
5555
|
+
x ? u = {
|
|
5556
|
+
x: nt(o, this.left + h, this.right - s[0]),
|
|
5557
5557
|
y: this.top + h + v,
|
|
5558
5558
|
line: 0
|
|
5559
5559
|
} : u = {
|
|
5560
5560
|
x: this.left + h,
|
|
5561
|
-
y:
|
|
5561
|
+
y: nt(o, this.top + v + h, this.bottom - e[0].height),
|
|
5562
5562
|
line: 0
|
|
5563
5563
|
}, qs(this.ctx, t.textDirection);
|
|
5564
|
-
const
|
|
5564
|
+
const y = g + h;
|
|
5565
5565
|
this.legendItems.forEach((w, k) => {
|
|
5566
5566
|
n.strokeStyle = w.fontColor, n.fillStyle = w.fontColor;
|
|
5567
5567
|
const M = n.measureText(w.text).width, S = l.textAlign(w.textAlign || (w.textAlign = r.textAlign)), C = m + f + M;
|
|
5568
|
-
let
|
|
5569
|
-
l.setWidth(this.width),
|
|
5570
|
-
const
|
|
5571
|
-
if (b(
|
|
5568
|
+
let A = u.x, D = u.y;
|
|
5569
|
+
l.setWidth(this.width), x ? k > 0 && A + C + h > this.right && (D = u.y += y, u.line++, A = u.x = nt(o, this.left + h, this.right - s[u.line])) : k > 0 && D + y > this.bottom && (A = u.x = A + e[u.line].width + h, u.line++, D = u.y = nt(o, this.top + v + h, this.bottom - e[u.line].height));
|
|
5570
|
+
const H = l.x(A);
|
|
5571
|
+
if (b(H, D, w), A = lo(S, A + m + f, x ? A + C : this.right, t.rtl), _(l.x(A), D, w), x)
|
|
5572
5572
|
u.x += C + h;
|
|
5573
5573
|
else if (typeof w.text != "string") {
|
|
5574
|
-
const
|
|
5575
|
-
u.y += hn(w,
|
|
5574
|
+
const K = c.lineHeight;
|
|
5575
|
+
u.y += hn(w, K) + h;
|
|
5576
5576
|
} else
|
|
5577
|
-
u.y +=
|
|
5577
|
+
u.y += y;
|
|
5578
5578
|
}), Gs(this.ctx, t.textDirection);
|
|
5579
5579
|
}
|
|
5580
5580
|
drawTitle() {
|
|
5581
5581
|
const t = this.options, e = t.title, s = Z(e.font), n = J(e.padding);
|
|
5582
5582
|
if (!e.display)
|
|
5583
5583
|
return;
|
|
5584
|
-
const o =
|
|
5584
|
+
const o = jt(t.rtl, this.left, this.width), r = this.ctx, a = e.position, l = s.size / 2, c = n.top + l;
|
|
5585
5585
|
let h, d = this.left, f = this.width;
|
|
5586
5586
|
if (this.isHorizontal())
|
|
5587
|
-
f = Math.max(...this.lineWidths), h = this.top + c, d =
|
|
5587
|
+
f = Math.max(...this.lineWidths), h = this.top + c, d = nt(t.align, d, this.right - f);
|
|
5588
5588
|
else {
|
|
5589
5589
|
const m = this.columnSizes.reduce((p, g) => Math.max(p, g.height), 0);
|
|
5590
|
-
h = c +
|
|
5590
|
+
h = c + nt(t.align, this.top, this.bottom - m - t.labels.padding - this._computeTitleHeight());
|
|
5591
5591
|
}
|
|
5592
|
-
const u =
|
|
5593
|
-
r.textAlign = o.textAlign(Ns(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = s.string,
|
|
5592
|
+
const u = nt(a, d, d + f);
|
|
5593
|
+
r.textAlign = o.textAlign(Ns(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = s.string, $t(r, e.text, u, h, s);
|
|
5594
5594
|
}
|
|
5595
5595
|
_computeTitleHeight() {
|
|
5596
5596
|
const t = this.options.title, e = Z(t.font), s = J(t.padding);
|
|
@@ -5659,14 +5659,14 @@ var dn = {
|
|
|
5659
5659
|
options: e,
|
|
5660
5660
|
chart: i
|
|
5661
5661
|
});
|
|
5662
|
-
|
|
5662
|
+
wt.configure(i, s, e), wt.addBox(i, s);
|
|
5663
5663
|
},
|
|
5664
5664
|
stop(i) {
|
|
5665
|
-
|
|
5665
|
+
wt.removeBox(i, i.legend), delete i.legend;
|
|
5666
5666
|
},
|
|
5667
5667
|
beforeUpdate(i, t, e) {
|
|
5668
5668
|
const s = i.legend;
|
|
5669
|
-
|
|
5669
|
+
wt.configure(i, s, e), s.options = e;
|
|
5670
5670
|
},
|
|
5671
5671
|
afterUpdate(i) {
|
|
5672
5672
|
const t = i.legend;
|
|
@@ -5774,8 +5774,8 @@ const te = {
|
|
|
5774
5774
|
};
|
|
5775
5775
|
}
|
|
5776
5776
|
};
|
|
5777
|
-
function
|
|
5778
|
-
return t && (
|
|
5777
|
+
function ft(i, t) {
|
|
5778
|
+
return t && (X(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
|
|
5779
5779
|
}
|
|
5780
5780
|
function xt(i) {
|
|
5781
5781
|
return (typeof i == "string" || i instanceof String) && i.indexOf(`
|
|
@@ -5798,19 +5798,19 @@ function Ia(i, t) {
|
|
|
5798
5798
|
}
|
|
5799
5799
|
function ms(i, t) {
|
|
5800
5800
|
const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: r, boxHeight: a } = t, l = Z(t.bodyFont), c = Z(t.titleFont), h = Z(t.footerFont), d = o.length, f = n.length, u = s.length, m = J(t.padding);
|
|
5801
|
-
let p = m.height, g = 0, b = s.reduce((v,
|
|
5801
|
+
let p = m.height, g = 0, b = s.reduce((v, y) => v + y.before.length + y.lines.length + y.after.length, 0);
|
|
5802
5802
|
if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
|
|
5803
5803
|
const v = t.displayColors ? Math.max(a, l.lineHeight) : l.lineHeight;
|
|
5804
5804
|
p += u * v + (b - u) * l.lineHeight + (b - 1) * t.bodySpacing;
|
|
5805
5805
|
}
|
|
5806
5806
|
f && (p += t.footerMarginTop + f * h.lineHeight + (f - 1) * t.footerSpacing);
|
|
5807
|
-
let
|
|
5808
|
-
const
|
|
5809
|
-
g = Math.max(g, e.measureText(v).width +
|
|
5807
|
+
let _ = 0;
|
|
5808
|
+
const x = function(v) {
|
|
5809
|
+
g = Math.max(g, e.measureText(v).width + _);
|
|
5810
5810
|
};
|
|
5811
|
-
return e.save(), e.font = c.string, E(i.title,
|
|
5812
|
-
E(v.before,
|
|
5813
|
-
}),
|
|
5811
|
+
return e.save(), e.font = c.string, E(i.title, x), e.font = l.string, E(i.beforeBody.concat(i.afterBody), x), _ = t.displayColors ? r + 2 + t.boxPadding : 0, E(s, (v) => {
|
|
5812
|
+
E(v.before, x), E(v.lines, x), E(v.after, x);
|
|
5813
|
+
}), _ = 0, e.font = h.string, E(i.footer, x), e.restore(), g += m.width, {
|
|
5814
5814
|
width: g,
|
|
5815
5815
|
height: p
|
|
5816
5816
|
};
|
|
@@ -5845,7 +5845,7 @@ function Ha(i, t, e) {
|
|
|
5845
5845
|
return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
|
|
5846
5846
|
}
|
|
5847
5847
|
function xs(i, t, e, s) {
|
|
5848
|
-
const { caretSize: n, caretPadding: o, cornerRadius: r } = i, { xAlign: a, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: f, bottomRight: u } =
|
|
5848
|
+
const { caretSize: n, caretPadding: o, cornerRadius: r } = i, { xAlign: a, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: f, bottomRight: u } = Nt(r);
|
|
5849
5849
|
let m = Ba(t, a);
|
|
5850
5850
|
const p = Ha(t, l, c);
|
|
5851
5851
|
return l === "center" ? a === "left" ? m += c : a === "right" && (m -= c) : a === "left" ? m -= Math.max(h, f) + n : a === "right" && (m += Math.max(d, u) + n), {
|
|
@@ -5858,10 +5858,10 @@ function ve(i, t, e) {
|
|
|
5858
5858
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
|
|
5859
5859
|
}
|
|
5860
5860
|
function _s(i) {
|
|
5861
|
-
return
|
|
5861
|
+
return ft([], xt(i));
|
|
5862
5862
|
}
|
|
5863
5863
|
function Wa(i, t, e) {
|
|
5864
|
-
return
|
|
5864
|
+
return Ft(i, {
|
|
5865
5865
|
tooltip: t,
|
|
5866
5866
|
tooltipItems: e,
|
|
5867
5867
|
type: "tooltip"
|
|
@@ -5894,7 +5894,7 @@ const fn = {
|
|
|
5894
5894
|
let t = i.dataset.label || "";
|
|
5895
5895
|
t && (t += ": ");
|
|
5896
5896
|
const e = i.formattedValue;
|
|
5897
|
-
return
|
|
5897
|
+
return W(e) || (t += e), t;
|
|
5898
5898
|
},
|
|
5899
5899
|
labelColor(i) {
|
|
5900
5900
|
const e = i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);
|
|
@@ -5923,7 +5923,7 @@ const fn = {
|
|
|
5923
5923
|
footer: mt,
|
|
5924
5924
|
afterFooter: mt
|
|
5925
5925
|
};
|
|
5926
|
-
function
|
|
5926
|
+
function it(i, t, e, s) {
|
|
5927
5927
|
const n = i[t].call(e, s);
|
|
5928
5928
|
return typeof n > "u" ? fn[t].call(e, s) : n;
|
|
5929
5929
|
}
|
|
@@ -5946,12 +5946,12 @@ class vs extends ce {
|
|
|
5946
5946
|
return this.$context || (this.$context = Wa(this.chart.getContext(), this, this._tooltipItems));
|
|
5947
5947
|
}
|
|
5948
5948
|
getTitle(t, e) {
|
|
5949
|
-
const { callbacks: s } = e, n =
|
|
5949
|
+
const { callbacks: s } = e, n = it(s, "beforeTitle", this, t), o = it(s, "title", this, t), r = it(s, "afterTitle", this, t);
|
|
5950
5950
|
let a = [];
|
|
5951
|
-
return a =
|
|
5951
|
+
return a = ft(a, xt(n)), a = ft(a, xt(o)), a = ft(a, xt(r)), a;
|
|
5952
5952
|
}
|
|
5953
5953
|
getBeforeBody(t, e) {
|
|
5954
|
-
return _s(
|
|
5954
|
+
return _s(it(e.callbacks, "beforeBody", this, t));
|
|
5955
5955
|
}
|
|
5956
5956
|
getBody(t, e) {
|
|
5957
5957
|
const { callbacks: s } = e, n = [];
|
|
@@ -5961,16 +5961,16 @@ class vs extends ce {
|
|
|
5961
5961
|
lines: [],
|
|
5962
5962
|
after: []
|
|
5963
5963
|
}, a = ys(s, o);
|
|
5964
|
-
|
|
5964
|
+
ft(r.before, xt(it(a, "beforeLabel", this, o))), ft(r.lines, it(a, "label", this, o)), ft(r.after, xt(it(a, "afterLabel", this, o))), n.push(r);
|
|
5965
5965
|
}), n;
|
|
5966
5966
|
}
|
|
5967
5967
|
getAfterBody(t, e) {
|
|
5968
|
-
return _s(
|
|
5968
|
+
return _s(it(e.callbacks, "afterBody", this, t));
|
|
5969
5969
|
}
|
|
5970
5970
|
getFooter(t, e) {
|
|
5971
|
-
const { callbacks: s } = e, n =
|
|
5971
|
+
const { callbacks: s } = e, n = it(s, "beforeFooter", this, t), o = it(s, "footer", this, t), r = it(s, "afterFooter", this, t);
|
|
5972
5972
|
let a = [];
|
|
5973
|
-
return a =
|
|
5973
|
+
return a = ft(a, xt(n)), a = ft(a, xt(o)), a = ft(a, xt(r)), a;
|
|
5974
5974
|
}
|
|
5975
5975
|
_createItems(t) {
|
|
5976
5976
|
const e = this._active, s = this.chart.data, n = [], o = [], r = [];
|
|
@@ -5979,7 +5979,7 @@ class vs extends ce {
|
|
|
5979
5979
|
a.push(Ia(this.chart, e[l]));
|
|
5980
5980
|
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))), E(a, (h) => {
|
|
5981
5981
|
const d = ys(t.callbacks, h);
|
|
5982
|
-
n.push(
|
|
5982
|
+
n.push(it(d, "labelColor", this, h)), o.push(it(d, "labelPointStyle", this, h)), r.push(it(d, "labelTextColor", this, h));
|
|
5983
5983
|
}), this.labelColors = n, this.labelPointStyles = o, this.labelTextColors = r, this.dataPoints = a, a;
|
|
5984
5984
|
}
|
|
5985
5985
|
update(t, e) {
|
|
@@ -6014,22 +6014,22 @@ class vs extends ce {
|
|
|
6014
6014
|
e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
|
|
6015
6015
|
}
|
|
6016
6016
|
getCaretPosition(t, e, s) {
|
|
6017
|
-
const { xAlign: n, yAlign: o } = this, { caretSize: r, cornerRadius: a } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } =
|
|
6018
|
-
let g, b,
|
|
6019
|
-
return o === "center" ? (v = u + p / 2, n === "left" ? (g = f, b = g - r,
|
|
6017
|
+
const { xAlign: n, yAlign: o } = this, { caretSize: r, cornerRadius: a } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Nt(a), { x: f, y: u } = t, { width: m, height: p } = e;
|
|
6018
|
+
let g, b, _, x, v, y;
|
|
6019
|
+
return o === "center" ? (v = u + p / 2, n === "left" ? (g = f, b = g - r, x = v + r, y = v - r) : (g = f + m, b = g + r, x = v - r, y = v + r), _ = g) : (n === "left" ? b = f + Math.max(l, h) + r : n === "right" ? b = f + m - Math.max(c, d) - r : b = this.caretX, o === "top" ? (x = u, v = x - r, g = b - r, _ = b + r) : (x = u + p, v = x + r, g = b + r, _ = b - r), y = x), {
|
|
6020
6020
|
x1: g,
|
|
6021
6021
|
x2: b,
|
|
6022
|
-
x3:
|
|
6023
|
-
y1:
|
|
6022
|
+
x3: _,
|
|
6023
|
+
y1: x,
|
|
6024
6024
|
y2: v,
|
|
6025
|
-
y3:
|
|
6025
|
+
y3: y
|
|
6026
6026
|
};
|
|
6027
6027
|
}
|
|
6028
6028
|
drawTitle(t, e, s) {
|
|
6029
6029
|
const n = this.title, o = n.length;
|
|
6030
6030
|
let r, a, l;
|
|
6031
6031
|
if (o) {
|
|
6032
|
-
const c =
|
|
6032
|
+
const c = jt(s.rtl, this.x, this.width);
|
|
6033
6033
|
for (t.x = ve(this, s.titleAlign, s), e.textAlign = c.textAlign(s.titleAlign), e.textBaseline = "middle", r = Z(s.titleFont), a = s.titleSpacing, e.fillStyle = s.titleColor, e.font = r.string, l = 0; l < o; ++l)
|
|
6034
6034
|
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);
|
|
6035
6035
|
}
|
|
@@ -6045,9 +6045,9 @@ class vs extends ce {
|
|
|
6045
6045
|
}, g = n.leftForLtr(f, c) + c / 2, b = m + l / 2;
|
|
6046
6046
|
t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Bi(t, p, g, b), t.strokeStyle = r.borderColor, t.fillStyle = r.backgroundColor, Bi(t, p, g, b);
|
|
6047
6047
|
} else {
|
|
6048
|
-
t.lineWidth =
|
|
6049
|
-
const p = n.leftForLtr(f, c), g = n.leftForLtr(n.xPlus(f, 1), c - 2), b =
|
|
6050
|
-
Object.values(b).some((
|
|
6048
|
+
t.lineWidth = R(r.borderWidth) ? Math.max(...Object.values(r.borderWidth)) : r.borderWidth || 1, t.strokeStyle = r.borderColor, t.setLineDash(r.borderDash || []), t.lineDashOffset = r.borderDashOffset || 0;
|
|
6049
|
+
const p = n.leftForLtr(f, c), g = n.leftForLtr(n.xPlus(f, 1), c - 2), b = Nt(r.borderRadius);
|
|
6050
|
+
Object.values(b).some((_) => _ !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Fe(t, {
|
|
6051
6051
|
x: p,
|
|
6052
6052
|
y: m,
|
|
6053
6053
|
w: c,
|
|
@@ -6066,13 +6066,13 @@ class vs extends ce {
|
|
|
6066
6066
|
drawBody(t, e, s) {
|
|
6067
6067
|
const { body: n } = this, { bodySpacing: o, bodyAlign: r, displayColors: a, boxHeight: l, boxWidth: c, boxPadding: h } = s, d = Z(s.bodyFont);
|
|
6068
6068
|
let f = d.lineHeight, u = 0;
|
|
6069
|
-
const m =
|
|
6069
|
+
const m = jt(s.rtl, this.x, this.width), p = function(M) {
|
|
6070
6070
|
e.fillText(M, m.x(t.x + u), t.y + f / 2), t.y += f + o;
|
|
6071
6071
|
}, g = m.textAlign(r);
|
|
6072
|
-
let b,
|
|
6072
|
+
let b, _, x, v, y, w, k;
|
|
6073
6073
|
for (e.textAlign = r, e.textBaseline = "middle", e.font = d.string, t.x = ve(this, g, s), e.fillStyle = s.bodyColor, E(this.beforeBody, p), u = a && g !== "right" ? r === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = n.length; v < w; ++v) {
|
|
6074
|
-
for (b = n[v],
|
|
6075
|
-
p(y
|
|
6074
|
+
for (b = n[v], _ = this.labelTextColors[v], e.fillStyle = _, E(b.before, p), x = b.lines, a && x.length && (this._drawColorBox(e, t, v, m, s), f = Math.max(d.lineHeight, l)), y = 0, k = x.length; y < k; ++y)
|
|
6075
|
+
p(x[y]), f = d.lineHeight;
|
|
6076
6076
|
E(b.after, p);
|
|
6077
6077
|
}
|
|
6078
6078
|
u = 0, f = d.lineHeight, E(this.afterBody, p), t.y -= o;
|
|
@@ -6081,13 +6081,13 @@ class vs extends ce {
|
|
|
6081
6081
|
const n = this.footer, o = n.length;
|
|
6082
6082
|
let r, a;
|
|
6083
6083
|
if (o) {
|
|
6084
|
-
const l =
|
|
6084
|
+
const l = jt(s.rtl, this.x, this.width);
|
|
6085
6085
|
for (t.x = ve(this, s.footerAlign, s), t.y += s.footerMarginTop, e.textAlign = l.textAlign(s.footerAlign), e.textBaseline = "middle", r = Z(s.footerFont), e.fillStyle = s.footerColor, e.font = r.string, a = 0; a < o; ++a)
|
|
6086
6086
|
e.fillText(n[a], l.x(t.x), t.y + r.lineHeight / 2), t.y += r.lineHeight + s.footerSpacing;
|
|
6087
6087
|
}
|
|
6088
6088
|
}
|
|
6089
6089
|
drawBackground(t, e, s, n) {
|
|
6090
|
-
const { xAlign: o, yAlign: r } = this, { x: a, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: f, bottomLeft: u, bottomRight: m } =
|
|
6090
|
+
const { xAlign: o, yAlign: r } = this, { x: a, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: f, bottomLeft: u, bottomRight: m } = Nt(n.cornerRadius);
|
|
6091
6091
|
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 - m), e.quadraticCurveTo(a + c, l + h, a + c - m, 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();
|
|
6092
6092
|
}
|
|
6093
6093
|
_updateAnimationTarget(t) {
|
|
@@ -6277,9 +6277,9 @@ var un = {
|
|
|
6277
6277
|
]
|
|
6278
6278
|
};
|
|
6279
6279
|
function Na(i, t) {
|
|
6280
|
-
const e = [], { bounds: n, step: o, min: r, max: a, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: f } = i, u = o || 1, m = h - 1, { min: p, max: g } = t, b = !
|
|
6281
|
-
let
|
|
6282
|
-
if (
|
|
6280
|
+
const e = [], { bounds: n, step: o, min: r, max: a, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: f } = i, u = o || 1, m = h - 1, { min: p, max: g } = t, b = !W(r), _ = !W(a), x = !W(c), v = (g - p) / (d + 1);
|
|
6281
|
+
let y = Di((g - p) / m / u) * u, w, k, M, S;
|
|
6282
|
+
if (y < 1e-14 && !b && !_)
|
|
6283
6283
|
return [
|
|
6284
6284
|
{
|
|
6285
6285
|
value: p
|
|
@@ -6288,28 +6288,28 @@ function Na(i, t) {
|
|
|
6288
6288
|
value: g
|
|
6289
6289
|
}
|
|
6290
6290
|
];
|
|
6291
|
-
S = Math.ceil(g /
|
|
6292
|
-
const C = Math.max(Ti(
|
|
6293
|
-
w = Math.pow(10,
|
|
6294
|
-
let
|
|
6291
|
+
S = Math.ceil(g / y) - Math.floor(p / y), S > m && (y = Di(S * y / m / u) * u), W(l) || (w = Math.pow(10, l), y = Math.ceil(y * w) / w), n === "ticks" ? (k = Math.floor(p / y) * y, M = Math.ceil(g / y) * y) : (k = p, M = g), b && _ && o && Jn((a - r) / o, y / 1e3) ? (S = Math.round(Math.min((a - r) / y, h)), y = (a - r) / S, k = r, M = a) : x ? (k = b ? r : k, M = _ ? a : M, S = c - 1, y = (M - k) / S) : (S = (M - k) / y, ke(S, Math.round(S), y / 1e3) ? S = Math.round(S) : S = Math.ceil(S));
|
|
6292
|
+
const C = Math.max(Ti(y), Ti(k));
|
|
6293
|
+
w = Math.pow(10, W(l) ? C : l), k = Math.round(k * w) / w, M = Math.round(M * w) / w;
|
|
6294
|
+
let A = 0;
|
|
6295
6295
|
for (b && (f && k !== r ? (e.push({
|
|
6296
6296
|
value: r
|
|
6297
|
-
}), k < r &&
|
|
6298
|
-
const D = Math.round((k +
|
|
6299
|
-
if (
|
|
6297
|
+
}), k < r && A++, ke(Math.round((k + A * y) * w) / w, r, ws(r, v, i)) && A++) : k < r && A++); A < S; ++A) {
|
|
6298
|
+
const D = Math.round((k + A * y) * w) / w;
|
|
6299
|
+
if (_ && D > a)
|
|
6300
6300
|
break;
|
|
6301
6301
|
e.push({
|
|
6302
6302
|
value: D
|
|
6303
6303
|
});
|
|
6304
6304
|
}
|
|
6305
|
-
return
|
|
6305
|
+
return _ && f && M !== a ? e.length && ke(e[e.length - 1].value, a, ws(a, v, i)) ? e[e.length - 1].value = a : e.push({
|
|
6306
6306
|
value: a
|
|
6307
|
-
}) : (!
|
|
6307
|
+
}) : (!_ || M === a) && e.push({
|
|
6308
6308
|
value: M
|
|
6309
6309
|
}), e;
|
|
6310
6310
|
}
|
|
6311
6311
|
function ws(i, t, { horizontal: e, minRotation: s }) {
|
|
6312
|
-
const n =
|
|
6312
|
+
const n = pt(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, r = 0.75 * t * ("" + i).length;
|
|
6313
6313
|
return Math.min(t / o, r);
|
|
6314
6314
|
}
|
|
6315
6315
|
class ks extends he {
|
|
@@ -6317,7 +6317,7 @@ class ks extends he {
|
|
|
6317
6317
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
6318
6318
|
}
|
|
6319
6319
|
parse(t, e) {
|
|
6320
|
-
return
|
|
6320
|
+
return W(t) || (typeof t == "number" || t instanceof Number) && !isFinite(+t) ? null : +t;
|
|
6321
6321
|
}
|
|
6322
6322
|
handleTickRangeOptions() {
|
|
6323
6323
|
const { beginAtZero: t } = this.options, { minDefined: e, maxDefined: s } = this.getUserBounds();
|
|
@@ -6377,12 +6377,12 @@ function ni(i) {
|
|
|
6377
6377
|
const t = i.ticks;
|
|
6378
6378
|
if (t.display && i.display) {
|
|
6379
6379
|
const e = J(t.backdropPadding);
|
|
6380
|
-
return I(t.font && t.font.size,
|
|
6380
|
+
return I(t.font && t.font.size, $.font.size) + e.height;
|
|
6381
6381
|
}
|
|
6382
6382
|
return 0;
|
|
6383
6383
|
}
|
|
6384
6384
|
function ja(i, t, e) {
|
|
6385
|
-
return e =
|
|
6385
|
+
return e = X(e) ? e : [
|
|
6386
6386
|
e
|
|
6387
6387
|
], {
|
|
6388
6388
|
w: yo(i, t.string, e),
|
|
@@ -6413,7 +6413,7 @@ function Va(i) {
|
|
|
6413
6413
|
n[l] = c.padding;
|
|
6414
6414
|
const h = i.getPointPosition(l, i.drawingArea + n[l], a), d = Z(c.font), f = ja(i.ctx, d, i._pointLabels[l]);
|
|
6415
6415
|
s[l] = f;
|
|
6416
|
-
const u =
|
|
6416
|
+
const u = ot(i.getIndexAngle(l) + a), m = Math.round(di(u)), p = Ms(m, h.x, f.w, 0, 180), g = Ms(m, h.y, f.h, 90, 270);
|
|
6417
6417
|
$a(e, t, u, p, g);
|
|
6418
6418
|
}
|
|
6419
6419
|
i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Ua(i, s, n);
|
|
@@ -6424,7 +6424,7 @@ function $a(i, t, e, s, n) {
|
|
|
6424
6424
|
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));
|
|
6425
6425
|
}
|
|
6426
6426
|
function Ya(i, t, e) {
|
|
6427
|
-
const s = i.drawingArea, { extra: n, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, s + n + r, o), c = Math.round(di(
|
|
6427
|
+
const s = i.drawingArea, { extra: n, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, s + n + r, o), c = Math.round(di(ot(l.angle + U))), h = Ga(l.y, a.h, c), d = Ka(c), f = qa(l.x, a.w, d);
|
|
6428
6428
|
return {
|
|
6429
6429
|
visible: !0,
|
|
6430
6430
|
x: l.x,
|
|
@@ -6440,16 +6440,16 @@ function Xa(i, t) {
|
|
|
6440
6440
|
if (!t)
|
|
6441
6441
|
return !0;
|
|
6442
6442
|
const { left: e, top: s, right: n, bottom: o } = i;
|
|
6443
|
-
return !(
|
|
6443
|
+
return !(Ht({
|
|
6444
6444
|
x: e,
|
|
6445
6445
|
y: s
|
|
6446
|
-
}, t) ||
|
|
6446
|
+
}, t) || Ht({
|
|
6447
6447
|
x: e,
|
|
6448
6448
|
y: o
|
|
6449
|
-
}, t) ||
|
|
6449
|
+
}, t) || Ht({
|
|
6450
6450
|
x: n,
|
|
6451
6451
|
y: s
|
|
6452
|
-
}, t) ||
|
|
6452
|
+
}, t) || Ht({
|
|
6453
6453
|
x: n,
|
|
6454
6454
|
y: o
|
|
6455
6455
|
}, t));
|
|
@@ -6478,8 +6478,8 @@ function Ga(i, t, e) {
|
|
|
6478
6478
|
}
|
|
6479
6479
|
function Qa(i, t, e) {
|
|
6480
6480
|
const { left: s, top: n, right: o, bottom: r } = e, { backdropColor: a } = t;
|
|
6481
|
-
if (!
|
|
6482
|
-
const l =
|
|
6481
|
+
if (!W(a)) {
|
|
6482
|
+
const l = Nt(t.borderRadius), c = J(t.backdropPadding);
|
|
6483
6483
|
i.fillStyle = a;
|
|
6484
6484
|
const h = s - c.left, d = n - c.top, f = o - s + c.width, u = r - n + c.height;
|
|
6485
6485
|
Object.values(l).some((m) => m !== 0) ? (i.beginPath(), Fe(i, {
|
|
@@ -6500,7 +6500,7 @@ function Za(i, t) {
|
|
|
6500
6500
|
const r = s.setContext(i.getPointLabelContext(n));
|
|
6501
6501
|
Qa(e, r, o);
|
|
6502
6502
|
const a = Z(r.font), { x: l, y: c, textAlign: h } = o;
|
|
6503
|
-
|
|
6503
|
+
$t(e, i._pointLabels[n], l, c + a.lineHeight / 2, a, {
|
|
6504
6504
|
color: r.color,
|
|
6505
6505
|
textAlign: h,
|
|
6506
6506
|
textBaseline: "middle"
|
|
@@ -6510,7 +6510,7 @@ function Za(i, t) {
|
|
|
6510
6510
|
function gn(i, t, e, s) {
|
|
6511
6511
|
const { ctx: n } = i;
|
|
6512
6512
|
if (e)
|
|
6513
|
-
n.arc(i.xCenter, i.yCenter, t, 0,
|
|
6513
|
+
n.arc(i.xCenter, i.yCenter, t, 0, V);
|
|
6514
6514
|
else {
|
|
6515
6515
|
let o = i.getPointPosition(0, t);
|
|
6516
6516
|
n.moveTo(o.x, o.y);
|
|
@@ -6523,7 +6523,7 @@ function Ja(i, t, e, s, n) {
|
|
|
6523
6523
|
!r && !s || !a || !l || e < 0 || (o.save(), o.strokeStyle = a, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), gn(i, e, r, s), o.closePath(), o.stroke(), o.restore());
|
|
6524
6524
|
}
|
|
6525
6525
|
function tl(i, t, e) {
|
|
6526
|
-
return
|
|
6526
|
+
return Ft(i, {
|
|
6527
6527
|
label: e,
|
|
6528
6528
|
index: t,
|
|
6529
6529
|
type: "pointLabel"
|
|
@@ -6604,17 +6604,17 @@ class el extends ks {
|
|
|
6604
6604
|
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));
|
|
6605
6605
|
}
|
|
6606
6606
|
getIndexAngle(t) {
|
|
6607
|
-
const e =
|
|
6608
|
-
return
|
|
6607
|
+
const e = V / (this._pointLabels.length || 1), s = this.options.startAngle || 0;
|
|
6608
|
+
return ot(t * e + pt(s));
|
|
6609
6609
|
}
|
|
6610
6610
|
getDistanceFromCenterForValue(t) {
|
|
6611
|
-
if (
|
|
6611
|
+
if (W(t))
|
|
6612
6612
|
return NaN;
|
|
6613
6613
|
const e = this.drawingArea / (this.max - this.min);
|
|
6614
6614
|
return this.options.reverse ? (this.max - t) * e : (t - this.min) * e;
|
|
6615
6615
|
}
|
|
6616
6616
|
getValueForDistanceFromCenter(t) {
|
|
6617
|
-
if (
|
|
6617
|
+
if (W(t))
|
|
6618
6618
|
return NaN;
|
|
6619
6619
|
const e = t / (this.drawingArea / (this.max - this.min));
|
|
6620
6620
|
return this.options.reverse ? this.max - e : this.min + e;
|
|
@@ -6627,7 +6627,7 @@ class el extends ks {
|
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
6629
|
getPointPosition(t, e, s = 0) {
|
|
6630
|
-
const n = this.getIndexAngle(t) -
|
|
6630
|
+
const n = this.getIndexAngle(t) - U + s;
|
|
6631
6631
|
return {
|
|
6632
6632
|
x: Math.cos(n) * e + this.xCenter,
|
|
6633
6633
|
y: Math.sin(n) * e + this.yCenter,
|
|
@@ -6690,7 +6690,7 @@ class el extends ks {
|
|
|
6690
6690
|
const d = J(c.backdropPadding);
|
|
6691
6691
|
t.fillRect(-r / 2 - d.left, -o - h.size / 2 - d.top, r + d.width, h.size + d.height);
|
|
6692
6692
|
}
|
|
6693
|
-
|
|
6693
|
+
$t(t, a.label, 0, -o, h, {
|
|
6694
6694
|
color: c.color,
|
|
6695
6695
|
strokeColor: c.textStrokeColor,
|
|
6696
6696
|
strokeWidth: c.textStrokeWidth
|
|
@@ -6745,38 +6745,38 @@ const Ve = {
|
|
|
6745
6745
|
common: !0,
|
|
6746
6746
|
size: 3154e7
|
|
6747
6747
|
}
|
|
6748
|
-
},
|
|
6748
|
+
}, st = /* @__PURE__ */ Object.keys(Ve);
|
|
6749
6749
|
function Ss(i, t) {
|
|
6750
6750
|
return i - t;
|
|
6751
6751
|
}
|
|
6752
6752
|
function Cs(i, t) {
|
|
6753
|
-
if (
|
|
6753
|
+
if (W(t))
|
|
6754
6754
|
return null;
|
|
6755
6755
|
const e = i._adapter, { parser: s, round: n, isoWeekday: o } = i._parseOpts;
|
|
6756
6756
|
let r = t;
|
|
6757
6757
|
return typeof s == "function" && (r = s(r)), ct(r) || (r = typeof s == "string" ? e.parse(r, s) : e.parse(r)), r === null ? null : (n && (r = n === "week" && (Le(o) || o === !0) ? e.startOf(r, "isoWeek", o) : e.startOf(r, n)), +r);
|
|
6758
6758
|
}
|
|
6759
6759
|
function As(i, t, e, s) {
|
|
6760
|
-
const n =
|
|
6761
|
-
for (let o =
|
|
6762
|
-
const r = Ve[
|
|
6760
|
+
const n = st.length;
|
|
6761
|
+
for (let o = st.indexOf(i); o < n - 1; ++o) {
|
|
6762
|
+
const r = Ve[st[o]], a = r.steps ? r.steps : Number.MAX_SAFE_INTEGER;
|
|
6763
6763
|
if (r.common && Math.ceil((e - t) / (a * r.size)) <= s)
|
|
6764
|
-
return
|
|
6764
|
+
return st[o];
|
|
6765
6765
|
}
|
|
6766
|
-
return
|
|
6766
|
+
return st[n - 1];
|
|
6767
6767
|
}
|
|
6768
6768
|
function il(i, t, e, s, n) {
|
|
6769
|
-
for (let o =
|
|
6770
|
-
const r =
|
|
6769
|
+
for (let o = st.length - 1; o >= st.indexOf(e); o--) {
|
|
6770
|
+
const r = st[o];
|
|
6771
6771
|
if (Ve[r].common && i._adapter.diff(n, s, r) >= t - 1)
|
|
6772
6772
|
return r;
|
|
6773
6773
|
}
|
|
6774
|
-
return
|
|
6774
|
+
return st[e ? st.indexOf(e) : 0];
|
|
6775
6775
|
}
|
|
6776
6776
|
function sl(i) {
|
|
6777
|
-
for (let t =
|
|
6778
|
-
if (Ve[
|
|
6779
|
-
return
|
|
6777
|
+
for (let t = st.indexOf(i) + 1, e = st.length; t < e; ++t)
|
|
6778
|
+
if (Ve[st[t]].common)
|
|
6779
|
+
return st[t];
|
|
6780
6780
|
}
|
|
6781
6781
|
function Ps(i, t, e) {
|
|
6782
6782
|
if (!e)
|
|
@@ -6930,7 +6930,7 @@ class Ds extends he {
|
|
|
6930
6930
|
return this.min + s * (this.max - this.min);
|
|
6931
6931
|
}
|
|
6932
6932
|
_getLabelSize(t) {
|
|
6933
|
-
const e = this.options.ticks, s = this.ctx.measureText(t).width, n =
|
|
6933
|
+
const e = this.options.ticks, s = this.ctx.measureText(t).width, n = pt(this.isHorizontal() ? e.maxRotation : e.minRotation), o = Math.cos(n), r = Math.sin(n), a = this._resolveTickFontOptions(0).size;
|
|
6934
6934
|
return {
|
|
6935
6935
|
w: s * o + a * r,
|
|
6936
6936
|
h: s * r + a * o
|
|
@@ -7080,41 +7080,41 @@ const ol = {
|
|
|
7080
7080
|
transparent: "bg-transparent"
|
|
7081
7081
|
}, s = Q(() => e[t.cor] ?? "bg-white"), n = Q(() => t.cor === "dark");
|
|
7082
7082
|
function o(g, b = 7) {
|
|
7083
|
-
const
|
|
7084
|
-
let
|
|
7085
|
-
|
|
7086
|
-
const w = Math.max(
|
|
7083
|
+
const _ = g.replace("#", "");
|
|
7084
|
+
let x = parseInt(_.slice(0, 2), 16), v = parseInt(_.slice(2, 4), 16), y = parseInt(_.slice(4, 6), 16);
|
|
7085
|
+
x /= 255, v /= 255, y /= 255;
|
|
7086
|
+
const w = Math.max(x, v, y), k = Math.min(x, v, y);
|
|
7087
7087
|
let M, S, C = (w + k) / 2;
|
|
7088
7088
|
if (w === k)
|
|
7089
7089
|
M = S = 0;
|
|
7090
7090
|
else {
|
|
7091
|
-
const
|
|
7092
|
-
switch (S = C > 0.5 ?
|
|
7093
|
-
case
|
|
7094
|
-
M = ((v -
|
|
7091
|
+
const P = w - k;
|
|
7092
|
+
switch (S = C > 0.5 ? P / (2 - w - k) : P / (w + k), w) {
|
|
7093
|
+
case x:
|
|
7094
|
+
M = ((v - y) / P + (v < y ? 6 : 0)) / 6;
|
|
7095
7095
|
break;
|
|
7096
7096
|
case v:
|
|
7097
|
-
M = ((
|
|
7097
|
+
M = ((y - x) / P + 2) / 6;
|
|
7098
7098
|
break;
|
|
7099
|
-
case
|
|
7100
|
-
M = ((
|
|
7099
|
+
case y:
|
|
7100
|
+
M = ((x - v) / P + 4) / 6;
|
|
7101
7101
|
break;
|
|
7102
7102
|
}
|
|
7103
7103
|
}
|
|
7104
|
-
const
|
|
7105
|
-
function
|
|
7106
|
-
const
|
|
7107
|
-
const
|
|
7108
|
-
return Math.round(255 *
|
|
7104
|
+
const A = Math.max(0.2, C - 0.3), H = (Math.min(0.95, C + 0.35) - A) / (b - 1);
|
|
7105
|
+
function K(P, T, L) {
|
|
7106
|
+
const N = T * Math.min(L, 1 - L), F = (tt) => {
|
|
7107
|
+
const rt = (tt + P * 12) % 12, et = L - N * Math.max(-1, Math.min(rt - 3, 9 - rt, 1));
|
|
7108
|
+
return Math.round(255 * et).toString(16).padStart(2, "0");
|
|
7109
7109
|
};
|
|
7110
7110
|
return `#${F(0)}${F(8)}${F(4)}`;
|
|
7111
7111
|
}
|
|
7112
7112
|
return Array.from(
|
|
7113
7113
|
{ length: b },
|
|
7114
|
-
(
|
|
7114
|
+
(P, T) => K(M, S, A + H * T)
|
|
7115
7115
|
);
|
|
7116
7116
|
}
|
|
7117
|
-
const r = Q(() => o(t.corPaleta, t.dados.length)), a =
|
|
7117
|
+
const r = Q(() => o(t.corPaleta, t.dados.length)), a = gt(null), l = gt(null), c = gt(!0);
|
|
7118
7118
|
let h = null, d = null;
|
|
7119
7119
|
const f = Q(() => t.direcao === "vertical" ? "flex-column-reverse" : t.direcao === "horizontal" ? "flex-row" : c.value ? "flex-column-reverse" : "flex-row"), u = Q(() => ({
|
|
7120
7120
|
labels: t.dados.map((g) => g.rotulo),
|
|
@@ -7163,55 +7163,55 @@ const ol = {
|
|
|
7163
7163
|
}), h.observe(l.value);
|
|
7164
7164
|
}), ri(() => {
|
|
7165
7165
|
d && d.destroy(), h && h.disconnect();
|
|
7166
|
-
}),
|
|
7166
|
+
}), Wt(() => t.dados, () => {
|
|
7167
7167
|
p();
|
|
7168
|
-
}, { deep: !0 }),
|
|
7168
|
+
}, { deep: !0 }), Wt(() => t.cor, () => {
|
|
7169
7169
|
p();
|
|
7170
|
-
}),
|
|
7170
|
+
}), Wt(() => t.corPaleta, () => {
|
|
7171
7171
|
p();
|
|
7172
7172
|
}), (g, b) => (q(), G("div", {
|
|
7173
|
-
class:
|
|
7173
|
+
class: Y([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"]),
|
|
7174
7174
|
style: { padding: "1.25rem", gap: "1.438rem" }
|
|
7175
7175
|
}, [
|
|
7176
7176
|
O("div", null, [
|
|
7177
7177
|
O("p", {
|
|
7178
|
-
class:
|
|
7179
|
-
},
|
|
7180
|
-
i.subtitulo ? (q(), G("p", ol,
|
|
7178
|
+
class: Y(["m-0 text-xs font-medium", n.value ? "text-white" : "text-gray-900"])
|
|
7179
|
+
}, j(i.titulo), 3),
|
|
7180
|
+
i.subtitulo ? (q(), G("p", ol, j(i.subtitulo), 1)) : Lt("", !0)
|
|
7181
7181
|
]),
|
|
7182
7182
|
O("div", {
|
|
7183
7183
|
ref_key: "containerRef",
|
|
7184
7184
|
ref: l,
|
|
7185
|
-
class:
|
|
7185
|
+
class: Y(["flex w-full h-full gap-3 align-items-center justify-content-between", f.value])
|
|
7186
7186
|
}, [
|
|
7187
7187
|
O("div", rl, [
|
|
7188
7188
|
O("div", al, [
|
|
7189
7189
|
O("div", ll, [
|
|
7190
7190
|
b[0] || (b[0] = O("span", { style: { width: "10px", height: "10px", flexShrink: 0 } }, null, -1)),
|
|
7191
7191
|
O("span", {
|
|
7192
|
-
class:
|
|
7193
|
-
},
|
|
7192
|
+
class: Y(["text-xs font-medium", n.value ? "text-white" : "text-500"])
|
|
7193
|
+
}, j(i.label_rotulo), 3)
|
|
7194
7194
|
]),
|
|
7195
7195
|
O("span", {
|
|
7196
|
-
class:
|
|
7197
|
-
},
|
|
7196
|
+
class: Y(["text-xs font-medium", n.value ? "text-white" : "text-gray-500"])
|
|
7197
|
+
}, j(i.label_quantidade), 3)
|
|
7198
7198
|
]),
|
|
7199
|
-
(q(!0), G(Ce, null, Ae(i.dados, (
|
|
7200
|
-
key:
|
|
7199
|
+
(q(!0), G(Ce, null, Ae(i.dados, (_, x) => (q(), G("div", {
|
|
7200
|
+
key: x,
|
|
7201
7201
|
class: "flex align-items-center justify-content-between"
|
|
7202
7202
|
}, [
|
|
7203
7203
|
O("div", cl, [
|
|
7204
7204
|
O("span", {
|
|
7205
7205
|
class: "border-circle",
|
|
7206
|
-
style:
|
|
7206
|
+
style: Rt({ backgroundColor: r.value[x], width: "10px", height: "10px", flexShrink: 0 })
|
|
7207
7207
|
}, null, 4),
|
|
7208
7208
|
O("span", {
|
|
7209
|
-
class:
|
|
7210
|
-
},
|
|
7209
|
+
class: Y(["text-xs font-medium", n.value ? "text-white" : "text-600"])
|
|
7210
|
+
}, j(_.rotulo), 3)
|
|
7211
7211
|
]),
|
|
7212
7212
|
O("span", {
|
|
7213
|
-
class:
|
|
7214
|
-
},
|
|
7213
|
+
class: Y(["text-xs font-semibold", n.value ? "text-white" : "text-gray-900"])
|
|
7214
|
+
}, j(_.quantidade), 3)
|
|
7215
7215
|
]))), 128))
|
|
7216
7216
|
]),
|
|
7217
7217
|
O("div", hl, [
|
|
@@ -7270,6 +7270,10 @@ const ol = {
|
|
|
7270
7270
|
corPaleta: {
|
|
7271
7271
|
type: String,
|
|
7272
7272
|
default: "#1E40AF"
|
|
7273
|
+
},
|
|
7274
|
+
moeda: {
|
|
7275
|
+
type: Boolean,
|
|
7276
|
+
default: !1
|
|
7273
7277
|
}
|
|
7274
7278
|
},
|
|
7275
7279
|
setup(i) {
|
|
@@ -7278,42 +7282,42 @@ const ol = {
|
|
|
7278
7282
|
dark: "bg-black",
|
|
7279
7283
|
transparent: "bg-transparent"
|
|
7280
7284
|
}, s = Q(() => e[t.cor] ?? "bg-white"), n = Q(() => t.cor === "dark"), o = Q(() => t.cor === "dark" ? "#252525" : "#E9E9E9");
|
|
7281
|
-
function r(x,
|
|
7282
|
-
const
|
|
7283
|
-
let
|
|
7284
|
-
|
|
7285
|
-
const
|
|
7286
|
-
let
|
|
7287
|
-
if (
|
|
7288
|
-
|
|
7285
|
+
function r(x, v = 7) {
|
|
7286
|
+
const y = x.replace("#", "");
|
|
7287
|
+
let w = parseInt(y.slice(0, 2), 16), k = parseInt(y.slice(2, 4), 16), M = parseInt(y.slice(4, 6), 16);
|
|
7288
|
+
w /= 255, k /= 255, M /= 255;
|
|
7289
|
+
const S = Math.max(w, k, M), C = Math.min(w, k, M);
|
|
7290
|
+
let A, D, H = (S + C) / 2;
|
|
7291
|
+
if (S === C)
|
|
7292
|
+
A = D = 0;
|
|
7289
7293
|
else {
|
|
7290
|
-
const
|
|
7291
|
-
switch (
|
|
7292
|
-
case _:
|
|
7293
|
-
C = ((w - k) / T + (w < k ? 6 : 0)) / 6;
|
|
7294
|
-
break;
|
|
7294
|
+
const N = S - C;
|
|
7295
|
+
switch (D = H > 0.5 ? N / (2 - S - C) : N / (S + C), S) {
|
|
7295
7296
|
case w:
|
|
7296
|
-
|
|
7297
|
+
A = ((k - M) / N + (k < M ? 6 : 0)) / 6;
|
|
7297
7298
|
break;
|
|
7298
7299
|
case k:
|
|
7299
|
-
|
|
7300
|
+
A = ((M - w) / N + 2) / 6;
|
|
7301
|
+
break;
|
|
7302
|
+
case M:
|
|
7303
|
+
A = ((w - k) / N + 4) / 6;
|
|
7300
7304
|
break;
|
|
7301
7305
|
}
|
|
7302
7306
|
}
|
|
7303
|
-
const
|
|
7304
|
-
function
|
|
7305
|
-
const
|
|
7306
|
-
const
|
|
7307
|
-
return Math.round(255 *
|
|
7307
|
+
const K = Math.max(0.2, H - 0.3), P = Math.min(0.95, H + 0.35), T = v > 1 ? (P - K) / (v - 1) : 0;
|
|
7308
|
+
function L(N, F, tt) {
|
|
7309
|
+
const rt = F * Math.min(tt, 1 - tt), et = (St) => {
|
|
7310
|
+
const ht = (St + N * 12) % 12, Ct = tt - rt * Math.max(-1, Math.min(ht - 3, 9 - ht, 1));
|
|
7311
|
+
return Math.round(255 * Ct).toString(16).padStart(2, "0");
|
|
7308
7312
|
};
|
|
7309
|
-
return `#${
|
|
7313
|
+
return `#${et(0)}${et(8)}${et(4)}`;
|
|
7310
7314
|
}
|
|
7311
7315
|
return Array.from(
|
|
7312
|
-
{ length:
|
|
7313
|
-
(
|
|
7316
|
+
{ length: v },
|
|
7317
|
+
(N, F) => L(A, D, K + T * F)
|
|
7314
7318
|
);
|
|
7315
7319
|
}
|
|
7316
|
-
const a = Q(() => r(t.corPaleta, t.dados.length)), l = Q(() => Math.max(...t.dados.map((x) => x.quantidade), 1)), c =
|
|
7320
|
+
const a = Q(() => r(t.corPaleta, t.dados.length)), l = Q(() => Math.max(...t.dados.map((x) => x.quantidade), 1)), c = gt(null), h = gt(80);
|
|
7317
7321
|
let d = null;
|
|
7318
7322
|
oi(() => {
|
|
7319
7323
|
d = new ResizeObserver(([x]) => {
|
|
@@ -7322,45 +7326,48 @@ const ol = {
|
|
|
7322
7326
|
}), ri(() => {
|
|
7323
7327
|
d && d.disconnect();
|
|
7324
7328
|
});
|
|
7325
|
-
const f =
|
|
7326
|
-
function m(x,
|
|
7327
|
-
f.value = x,
|
|
7329
|
+
const f = gt(null), u = gt({ visible: !1, x: 0, y: 0, text: "" });
|
|
7330
|
+
function m(x, v) {
|
|
7331
|
+
f.value = x, _(x, v);
|
|
7328
7332
|
}
|
|
7329
|
-
function p(x,
|
|
7330
|
-
|
|
7333
|
+
function p(x, v) {
|
|
7334
|
+
_(x, v);
|
|
7331
7335
|
}
|
|
7332
7336
|
function g() {
|
|
7333
7337
|
f.value = null, u.value.visible = !1;
|
|
7334
7338
|
}
|
|
7335
|
-
function b(x
|
|
7336
|
-
|
|
7339
|
+
function b(x) {
|
|
7340
|
+
return t.moeda ? Number(x).toLocaleString("pt-BR", { style: "currency", currency: "BRL" }) : `${x}`;
|
|
7341
|
+
}
|
|
7342
|
+
function _(x, v) {
|
|
7343
|
+
const y = t.dados[x], w = v.currentTarget.closest(".chart-container").getBoundingClientRect(), k = v.currentTarget.getBoundingClientRect();
|
|
7337
7344
|
u.value = {
|
|
7338
7345
|
visible: !0,
|
|
7339
|
-
x:
|
|
7340
|
-
y:
|
|
7341
|
-
text:
|
|
7346
|
+
x: k.left - w.left + k.width / 2,
|
|
7347
|
+
y: k.top - w.top - 8,
|
|
7348
|
+
text: b(y.quantidade)
|
|
7342
7349
|
};
|
|
7343
7350
|
}
|
|
7344
|
-
return (x,
|
|
7345
|
-
class:
|
|
7351
|
+
return (x, v) => (q(), G("div", {
|
|
7352
|
+
class: Y([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"]),
|
|
7346
7353
|
style: { padding: "1.25rem", gap: "1.438rem", "min-height": "0" }
|
|
7347
7354
|
}, [
|
|
7348
7355
|
O("div", fl, [
|
|
7349
7356
|
O("div", ul, [
|
|
7350
7357
|
O("p", {
|
|
7351
|
-
class:
|
|
7352
|
-
},
|
|
7353
|
-
i.subtitulo ? (q(), G("p", gl,
|
|
7358
|
+
class: Y(["m-0 text-xs font-medium", n.value ? "text-white" : "text-gray-900"])
|
|
7359
|
+
}, j(i.titulo), 3),
|
|
7360
|
+
i.subtitulo ? (q(), G("p", gl, j(i.subtitulo), 1)) : Lt("", !0)
|
|
7354
7361
|
]),
|
|
7355
7362
|
mn(x.$slots, "header-right")
|
|
7356
7363
|
]),
|
|
7357
7364
|
O("div", pl, [
|
|
7358
7365
|
O("div", null, [
|
|
7359
7366
|
O("h2", {
|
|
7360
|
-
class:
|
|
7367
|
+
class: Y(["m-0 text-3xl font-semibold", n.value ? "text-white" : "text-gray-900"]),
|
|
7361
7368
|
style: { "line-height": "33px", "letter-spacing": "-1px" }
|
|
7362
|
-
},
|
|
7363
|
-
O("p", ml,
|
|
7369
|
+
}, j(i.valor), 3),
|
|
7370
|
+
O("p", ml, j(i.descricao), 1)
|
|
7364
7371
|
]),
|
|
7365
7372
|
O("div", {
|
|
7366
7373
|
ref_key: "chartRef",
|
|
@@ -7370,26 +7377,26 @@ const ol = {
|
|
|
7370
7377
|
}, [
|
|
7371
7378
|
u.value.visible ? (q(), G("div", {
|
|
7372
7379
|
key: 0,
|
|
7373
|
-
style:
|
|
7374
|
-
},
|
|
7380
|
+
style: Rt([{ position: "absolute", transform: "translate(-50%, -100%)", background: "rgba(0,0,0,0.75)", color: "#fff", "font-size": "0.7rem", padding: "3px 8px", "border-radius": "4px", "white-space": "nowrap", "pointer-events": "none", "z-index": "10" }, { left: u.value.x + "px", top: u.value.y + "px" }])
|
|
7381
|
+
}, j(u.value.text), 5)) : Lt("", !0),
|
|
7375
7382
|
O("div", {
|
|
7376
7383
|
class: "flex align-items-end gap-1",
|
|
7377
|
-
style:
|
|
7384
|
+
style: Rt([{ width: "100%" }, { height: h.value - 20 + "px" }])
|
|
7378
7385
|
}, [
|
|
7379
|
-
(q(!0), G(Ce, null, Ae(i.dados, (
|
|
7380
|
-
key:
|
|
7386
|
+
(q(!0), G(Ce, null, Ae(i.dados, (y, w) => (q(), G("div", {
|
|
7387
|
+
key: w,
|
|
7381
7388
|
class: "flex-1",
|
|
7382
7389
|
style: { display: "flex", "align-items": "flex-end", height: "100%", cursor: "pointer" },
|
|
7383
|
-
onMouseenter: (
|
|
7384
|
-
onMousemove: (
|
|
7390
|
+
onMouseenter: (k) => m(w, k),
|
|
7391
|
+
onMousemove: (k) => p(w, k),
|
|
7385
7392
|
onMouseleave: g
|
|
7386
7393
|
}, [
|
|
7387
7394
|
O("div", {
|
|
7388
|
-
style:
|
|
7389
|
-
height:
|
|
7395
|
+
style: Rt({
|
|
7396
|
+
height: y.quantidade / l.value * 100 + "%",
|
|
7390
7397
|
minHeight: "4px",
|
|
7391
7398
|
width: "100%",
|
|
7392
|
-
backgroundColor: f.value ===
|
|
7399
|
+
backgroundColor: f.value === w ? a.value[w] : o.value,
|
|
7393
7400
|
borderRadius: "4px 4px 4px 4px",
|
|
7394
7401
|
transition: "background-color 0.15s ease"
|
|
7395
7402
|
})
|
|
@@ -7397,11 +7404,11 @@ const ol = {
|
|
|
7397
7404
|
], 40, bl))), 128))
|
|
7398
7405
|
], 4),
|
|
7399
7406
|
O("div", xl, [
|
|
7400
|
-
(q(!0), G(Ce, null, Ae(i.dados, (
|
|
7401
|
-
key:
|
|
7407
|
+
(q(!0), G(Ce, null, Ae(i.dados, (y, w) => (q(), G("div", {
|
|
7408
|
+
key: w,
|
|
7402
7409
|
class: "flex-1 text-center",
|
|
7403
|
-
style:
|
|
7404
|
-
},
|
|
7410
|
+
style: Rt([{ "font-size": "0.6rem", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }, { color: n.value ? "#888" : "#aaa" }])
|
|
7411
|
+
}, j(y.rotulo), 5))), 128))
|
|
7405
7412
|
])
|
|
7406
7413
|
], 512)
|
|
7407
7414
|
])
|
|
@@ -7475,41 +7482,41 @@ const ol = {
|
|
|
7475
7482
|
transparent: "bg-transparent"
|
|
7476
7483
|
}, s = Q(() => e[t.cor] ?? "bg-white"), n = Q(() => t.cor === "dark");
|
|
7477
7484
|
function o(g, b = 7) {
|
|
7478
|
-
const
|
|
7479
|
-
let
|
|
7480
|
-
|
|
7481
|
-
const w = Math.max(
|
|
7485
|
+
const _ = g.replace("#", "");
|
|
7486
|
+
let x = parseInt(_.slice(0, 2), 16), v = parseInt(_.slice(2, 4), 16), y = parseInt(_.slice(4, 6), 16);
|
|
7487
|
+
x /= 255, v /= 255, y /= 255;
|
|
7488
|
+
const w = Math.max(x, v, y), k = Math.min(x, v, y);
|
|
7482
7489
|
let M, S, C = (w + k) / 2;
|
|
7483
7490
|
if (w === k)
|
|
7484
7491
|
M = S = 0;
|
|
7485
7492
|
else {
|
|
7486
|
-
const
|
|
7487
|
-
switch (S = C > 0.5 ?
|
|
7488
|
-
case
|
|
7489
|
-
M = ((v -
|
|
7493
|
+
const P = w - k;
|
|
7494
|
+
switch (S = C > 0.5 ? P / (2 - w - k) : P / (w + k), w) {
|
|
7495
|
+
case x:
|
|
7496
|
+
M = ((v - y) / P + (v < y ? 6 : 0)) / 6;
|
|
7490
7497
|
break;
|
|
7491
7498
|
case v:
|
|
7492
|
-
M = ((
|
|
7499
|
+
M = ((y - x) / P + 2) / 6;
|
|
7493
7500
|
break;
|
|
7494
|
-
case
|
|
7495
|
-
M = ((
|
|
7501
|
+
case y:
|
|
7502
|
+
M = ((x - v) / P + 4) / 6;
|
|
7496
7503
|
break;
|
|
7497
7504
|
}
|
|
7498
7505
|
}
|
|
7499
|
-
const
|
|
7500
|
-
function
|
|
7501
|
-
const
|
|
7502
|
-
const
|
|
7503
|
-
return Math.round(255 *
|
|
7506
|
+
const A = Math.max(0.2, C - 0.3), H = (Math.min(0.95, C + 0.35) - A) / (b - 1);
|
|
7507
|
+
function K(P, T, L) {
|
|
7508
|
+
const N = T * Math.min(L, 1 - L), F = (tt) => {
|
|
7509
|
+
const rt = (tt + P * 12) % 12, et = L - N * Math.max(-1, Math.min(rt - 3, 9 - rt, 1));
|
|
7510
|
+
return Math.round(255 * et).toString(16).padStart(2, "0");
|
|
7504
7511
|
};
|
|
7505
7512
|
return `#${F(0)}${F(8)}${F(4)}`;
|
|
7506
7513
|
}
|
|
7507
7514
|
return Array.from(
|
|
7508
7515
|
{ length: b },
|
|
7509
|
-
(
|
|
7516
|
+
(P, T) => K(M, S, A + H * T)
|
|
7510
7517
|
);
|
|
7511
7518
|
}
|
|
7512
|
-
const r = Q(() => o(t.corPaleta, t.dados.length)), a =
|
|
7519
|
+
const r = Q(() => o(t.corPaleta, t.dados.length)), a = gt(null), l = gt(null), c = gt(!0);
|
|
7513
7520
|
let h = null, d = null;
|
|
7514
7521
|
const f = Q(() => t.direcao === "vertical" ? "flex-column-reverse" : t.direcao === "horizontal" ? "flex-row" : c.value ? "flex-column-reverse" : "flex-row"), u = Q(() => ({
|
|
7515
7522
|
labels: t.dados.map((g) => g.rotulo),
|
|
@@ -7549,55 +7556,55 @@ const ol = {
|
|
|
7549
7556
|
}), h.observe(l.value);
|
|
7550
7557
|
}), ri(() => {
|
|
7551
7558
|
d && d.destroy(), h && h.disconnect();
|
|
7552
|
-
}),
|
|
7559
|
+
}), Wt(() => t.dados, () => {
|
|
7553
7560
|
p();
|
|
7554
|
-
}, { deep: !0 }),
|
|
7561
|
+
}, { deep: !0 }), Wt(() => t.cor, () => {
|
|
7555
7562
|
p();
|
|
7556
|
-
}),
|
|
7563
|
+
}), Wt(() => t.corPaleta, () => {
|
|
7557
7564
|
p();
|
|
7558
7565
|
}), (g, b) => (q(), G("div", {
|
|
7559
|
-
class:
|
|
7566
|
+
class: Y([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"]),
|
|
7560
7567
|
style: { padding: "1.25rem", gap: "1.438rem" }
|
|
7561
7568
|
}, [
|
|
7562
7569
|
O("div", null, [
|
|
7563
7570
|
O("p", {
|
|
7564
|
-
class:
|
|
7565
|
-
},
|
|
7566
|
-
i.subtitulo ? (q(), G("p", yl,
|
|
7571
|
+
class: Y(["m-0 text-xs font-medium", n.value ? "text-white" : "text-gray-900"])
|
|
7572
|
+
}, j(i.titulo), 3),
|
|
7573
|
+
i.subtitulo ? (q(), G("p", yl, j(i.subtitulo), 1)) : Lt("", !0)
|
|
7567
7574
|
]),
|
|
7568
7575
|
O("div", {
|
|
7569
7576
|
ref_key: "containerRef",
|
|
7570
7577
|
ref: l,
|
|
7571
|
-
class:
|
|
7578
|
+
class: Y(["flex w-full h-full align-items-center justify-content-between", [f.value, c.value || t.direcao === "vertical" ? "gap-4" : "gap-7"]])
|
|
7572
7579
|
}, [
|
|
7573
7580
|
O("div", vl, [
|
|
7574
7581
|
O("div", wl, [
|
|
7575
7582
|
O("div", kl, [
|
|
7576
7583
|
b[0] || (b[0] = O("span", { style: { width: "10px", height: "10px", flexShrink: 0 } }, null, -1)),
|
|
7577
7584
|
O("span", {
|
|
7578
|
-
class:
|
|
7579
|
-
},
|
|
7585
|
+
class: Y(["text-xs font-medium", n.value ? "text-white" : "text-500"])
|
|
7586
|
+
}, j(t.label_rotulo), 3)
|
|
7580
7587
|
]),
|
|
7581
7588
|
O("span", {
|
|
7582
|
-
class:
|
|
7583
|
-
},
|
|
7589
|
+
class: Y(["text-xs font-medium", n.value ? "text-white" : "text-gray-500"])
|
|
7590
|
+
}, j(t.label_quantidade), 3)
|
|
7584
7591
|
]),
|
|
7585
|
-
(q(!0), G(Ce, null, Ae(i.dados, (
|
|
7586
|
-
key:
|
|
7592
|
+
(q(!0), G(Ce, null, Ae(i.dados, (_, x) => (q(), G("div", {
|
|
7593
|
+
key: x,
|
|
7587
7594
|
class: "flex align-items-center justify-content-between"
|
|
7588
7595
|
}, [
|
|
7589
7596
|
O("div", Ml, [
|
|
7590
7597
|
O("span", {
|
|
7591
7598
|
class: "border-circle",
|
|
7592
|
-
style:
|
|
7599
|
+
style: Rt({ backgroundColor: r.value[x], width: "10px", height: "10px", flexShrink: 0 })
|
|
7593
7600
|
}, null, 4),
|
|
7594
7601
|
O("span", {
|
|
7595
|
-
class:
|
|
7596
|
-
},
|
|
7602
|
+
class: Y(["text-xs font-medium", n.value ? "text-white" : "text-600"])
|
|
7603
|
+
}, j(_.rotulo), 3)
|
|
7597
7604
|
]),
|
|
7598
7605
|
O("span", {
|
|
7599
|
-
class:
|
|
7600
|
-
},
|
|
7606
|
+
class: Y(["text-xs font-semibold", n.value ? "text-white" : "text-gray-900"])
|
|
7607
|
+
}, j(_.quantidade), 3)
|
|
7601
7608
|
]))), 128))
|
|
7602
7609
|
]),
|
|
7603
7610
|
O("div", Sl, [
|
|
@@ -7610,10 +7617,10 @@ const ol = {
|
|
|
7610
7617
|
i.valor ? (q(), G("div", Cl, [
|
|
7611
7618
|
O("span", {
|
|
7612
7619
|
class: "font-semibold",
|
|
7613
|
-
style:
|
|
7614
|
-
},
|
|
7615
|
-
i.descricao ? (q(), G("span", Al,
|
|
7616
|
-
])) :
|
|
7620
|
+
style: Rt([{ "font-size": "1.25rem", "line-height": "1.2", "letter-spacing": "-0.5px" }, { color: n.value ? "#fff" : "#111" }])
|
|
7621
|
+
}, j(i.valor), 5),
|
|
7622
|
+
i.descricao ? (q(), G("span", Al, j(i.descricao), 1)) : Lt("", !0)
|
|
7623
|
+
])) : Lt("", !0)
|
|
7617
7624
|
])
|
|
7618
7625
|
], 2)
|
|
7619
7626
|
], 2));
|