scope360-core 0.0.140 → 0.0.141
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/scope360-core.js +211 -211
- package/dist/scope360-core.js.map +1 -1
- package/dist/scope360-core.umd.cjs +14 -14
- package/dist/scope360-core.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/scope360-core.js
CHANGED
|
@@ -13744,9 +13744,9 @@ function JO(t, e) {
|
|
|
13744
13744
|
return jm(t, QO(n, a, l, u), n, e);
|
|
13745
13745
|
}
|
|
13746
13746
|
function jm(t, e, n, s) {
|
|
13747
|
-
return !s || !s.setContext || !n ? e :
|
|
13747
|
+
return !s || !s.setContext || !n ? e : eP(t, e, n, s);
|
|
13748
13748
|
}
|
|
13749
|
-
function
|
|
13749
|
+
function eP(t, e, n, s) {
|
|
13750
13750
|
const i = t._chart.getContext(), r = qm(t.options), { _datasetIndex: a, options: { spanGaps: o } } = t, l = n.length, u = [];
|
|
13751
13751
|
let c = r, d = e[0].start, h = d;
|
|
13752
13752
|
function f(p, m, g, y) {
|
|
@@ -13776,7 +13776,7 @@ function e2(t, e, n, s) {
|
|
|
13776
13776
|
p0DataIndex: (h - 1) % l,
|
|
13777
13777
|
p1DataIndex: h % l,
|
|
13778
13778
|
datasetIndex: a
|
|
13779
|
-
}))),
|
|
13779
|
+
}))), tP(g, c) && f(d, h - 1, p.loop, c), m = y, c = g;
|
|
13780
13780
|
}
|
|
13781
13781
|
d < h - 1 && f(d, h - 1, p.loop, c);
|
|
13782
13782
|
}
|
|
@@ -13793,7 +13793,7 @@ function qm(t) {
|
|
|
13793
13793
|
borderColor: t.borderColor
|
|
13794
13794
|
};
|
|
13795
13795
|
}
|
|
13796
|
-
function
|
|
13796
|
+
function tP(t, e) {
|
|
13797
13797
|
if (!e)
|
|
13798
13798
|
return !1;
|
|
13799
13799
|
const n = [], s = function(i, r) {
|
|
@@ -13807,7 +13807,7 @@ function t2(t, e) {
|
|
|
13807
13807
|
* (c) 2024 Chart.js Contributors
|
|
13808
13808
|
* Released under the MIT License
|
|
13809
13809
|
*/
|
|
13810
|
-
class
|
|
13810
|
+
class nP {
|
|
13811
13811
|
constructor() {
|
|
13812
13812
|
this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
|
|
13813
13813
|
}
|
|
@@ -13883,8 +13883,8 @@ class n2 {
|
|
|
13883
13883
|
return this._charts.delete(e);
|
|
13884
13884
|
}
|
|
13885
13885
|
}
|
|
13886
|
-
var Bs = /* @__PURE__ */ new
|
|
13887
|
-
const Gm = "transparent",
|
|
13886
|
+
var Bs = /* @__PURE__ */ new nP();
|
|
13887
|
+
const Gm = "transparent", sP = {
|
|
13888
13888
|
boolean(t, e, n) {
|
|
13889
13889
|
return n > 0.5 ? e : t;
|
|
13890
13890
|
},
|
|
@@ -13896,7 +13896,7 @@ const Gm = "transparent", s2 = {
|
|
|
13896
13896
|
return t + (e - t) * n;
|
|
13897
13897
|
}
|
|
13898
13898
|
};
|
|
13899
|
-
class
|
|
13899
|
+
class iP {
|
|
13900
13900
|
constructor(e, n, s, i) {
|
|
13901
13901
|
const r = n[s];
|
|
13902
13902
|
i = sl([
|
|
@@ -13910,7 +13910,7 @@ class i2 {
|
|
|
13910
13910
|
r,
|
|
13911
13911
|
i
|
|
13912
13912
|
]);
|
|
13913
|
-
this._active = !0, this._fn = e.fn ||
|
|
13913
|
+
this._active = !0, this._fn = e.fn || sP[e.type || typeof a], this._easing = eo[e.easing] || eo.linear, this._start = Math.floor(Date.now() + (e.delay || 0)), this._duration = this._total = Math.floor(e.duration), this._loop = !!e.loop, this._target = n, this._prop = s, this._from = a, this._to = i, this._promises = void 0;
|
|
13914
13914
|
}
|
|
13915
13915
|
active() {
|
|
13916
13916
|
return this._active;
|
|
@@ -13985,11 +13985,11 @@ class K0 {
|
|
|
13985
13985
|
});
|
|
13986
13986
|
}
|
|
13987
13987
|
_animateOptions(e, n) {
|
|
13988
|
-
const s = n.options, i =
|
|
13988
|
+
const s = n.options, i = aP(e, s);
|
|
13989
13989
|
if (!i)
|
|
13990
13990
|
return [];
|
|
13991
13991
|
const r = this._createAnimations(i, s);
|
|
13992
|
-
return s.$shared &&
|
|
13992
|
+
return s.$shared && rP(e.options.$animations, s).then(() => {
|
|
13993
13993
|
e.options = s;
|
|
13994
13994
|
}, () => {
|
|
13995
13995
|
}), r;
|
|
@@ -14018,7 +14018,7 @@ class K0 {
|
|
|
14018
14018
|
e[u] = c;
|
|
14019
14019
|
continue;
|
|
14020
14020
|
}
|
|
14021
|
-
r[u] = d = new
|
|
14021
|
+
r[u] = d = new iP(h, e, u, c), i.push(d);
|
|
14022
14022
|
}
|
|
14023
14023
|
return i;
|
|
14024
14024
|
}
|
|
@@ -14032,7 +14032,7 @@ class K0 {
|
|
|
14032
14032
|
return Bs.add(this._chart, s), !0;
|
|
14033
14033
|
}
|
|
14034
14034
|
}
|
|
14035
|
-
function
|
|
14035
|
+
function rP(t, e) {
|
|
14036
14036
|
const n = [], s = Object.keys(e);
|
|
14037
14037
|
for (let i = 0; i < s.length; i++) {
|
|
14038
14038
|
const r = t[s[i]];
|
|
@@ -14040,7 +14040,7 @@ function r2(t, e) {
|
|
|
14040
14040
|
}
|
|
14041
14041
|
return Promise.all(n);
|
|
14042
14042
|
}
|
|
14043
|
-
function
|
|
14043
|
+
function aP(t, e) {
|
|
14044
14044
|
if (!e)
|
|
14045
14045
|
return;
|
|
14046
14046
|
let n = t.options;
|
|
@@ -14060,7 +14060,7 @@ function Zm(t, e) {
|
|
|
14060
14060
|
end: s ? i : r
|
|
14061
14061
|
};
|
|
14062
14062
|
}
|
|
14063
|
-
function
|
|
14063
|
+
function oP(t, e, n) {
|
|
14064
14064
|
if (n === !1)
|
|
14065
14065
|
return !1;
|
|
14066
14066
|
const s = Zm(t, n), i = Zm(e, n);
|
|
@@ -14071,7 +14071,7 @@ function o2(t, e, n) {
|
|
|
14071
14071
|
left: s.start
|
|
14072
14072
|
};
|
|
14073
14073
|
}
|
|
14074
|
-
function
|
|
14074
|
+
function lP(t) {
|
|
14075
14075
|
let e, n, s, i;
|
|
14076
14076
|
return Be(t) ? (e = t.top, n = t.right, s = t.bottom, i = t.left) : e = n = s = i = t, {
|
|
14077
14077
|
top: e,
|
|
@@ -14103,7 +14103,7 @@ function Xm(t, e, n, s = {}) {
|
|
|
14103
14103
|
return e;
|
|
14104
14104
|
}
|
|
14105
14105
|
}
|
|
14106
|
-
function
|
|
14106
|
+
function uP(t) {
|
|
14107
14107
|
const e = Object.keys(t), n = new Array(e.length);
|
|
14108
14108
|
let s, i, r;
|
|
14109
14109
|
for (s = 0, i = e.length; s < i; ++s)
|
|
@@ -14117,17 +14117,17 @@ function Km(t, e) {
|
|
|
14117
14117
|
const n = t && t.options.stacked;
|
|
14118
14118
|
return n || n === void 0 && e.stack !== void 0;
|
|
14119
14119
|
}
|
|
14120
|
-
function
|
|
14120
|
+
function cP(t, e, n) {
|
|
14121
14121
|
return `${t.id}.${e.id}.${n.stack || n.type}`;
|
|
14122
14122
|
}
|
|
14123
|
-
function
|
|
14123
|
+
function dP(t) {
|
|
14124
14124
|
const { min: e, max: n, minDefined: s, maxDefined: i } = t.getUserBounds();
|
|
14125
14125
|
return {
|
|
14126
14126
|
min: s ? e : Number.NEGATIVE_INFINITY,
|
|
14127
14127
|
max: i ? n : Number.POSITIVE_INFINITY
|
|
14128
14128
|
};
|
|
14129
14129
|
}
|
|
14130
|
-
function
|
|
14130
|
+
function hP(t, e, n) {
|
|
14131
14131
|
const s = t[e] || (t[e] = {});
|
|
14132
14132
|
return s[n] || (s[n] = {});
|
|
14133
14133
|
}
|
|
@@ -14140,11 +14140,11 @@ function Qm(t, e, n, s) {
|
|
|
14140
14140
|
return null;
|
|
14141
14141
|
}
|
|
14142
14142
|
function Jm(t, e) {
|
|
14143
|
-
const { chart: n, _cachedMeta: s } = t, i = n._stacks || (n._stacks = {}), { iScale: r, vScale: a, index: o } = s, l = r.axis, u = a.axis, c =
|
|
14143
|
+
const { chart: n, _cachedMeta: s } = t, i = n._stacks || (n._stacks = {}), { iScale: r, vScale: a, index: o } = s, l = r.axis, u = a.axis, c = cP(r, a, s), d = e.length;
|
|
14144
14144
|
let h;
|
|
14145
14145
|
for (let f = 0; f < d; ++f) {
|
|
14146
14146
|
const p = e[f], { [l]: m, [u]: g } = p, y = p._stacks || (p._stacks = {});
|
|
14147
|
-
h = y[u] =
|
|
14147
|
+
h = y[u] = hP(i, c, m), h[o] = g, h._top = Qm(h, a, !0, s.type), h._bottom = Qm(h, a, !1, s.type);
|
|
14148
14148
|
const w = h._visualValues || (h._visualValues = {});
|
|
14149
14149
|
w[o] = g;
|
|
14150
14150
|
}
|
|
@@ -14153,7 +14153,7 @@ function Ic(t, e) {
|
|
|
14153
14153
|
const n = t.scales;
|
|
14154
14154
|
return Object.keys(n).filter((s) => n[s].axis === e).shift();
|
|
14155
14155
|
}
|
|
14156
|
-
function
|
|
14156
|
+
function fP(t, e) {
|
|
14157
14157
|
return Bi(t, {
|
|
14158
14158
|
active: !1,
|
|
14159
14159
|
dataset: void 0,
|
|
@@ -14163,7 +14163,7 @@ function f2(t, e) {
|
|
|
14163
14163
|
type: "dataset"
|
|
14164
14164
|
});
|
|
14165
14165
|
}
|
|
14166
|
-
function
|
|
14166
|
+
function mP(t, e, n) {
|
|
14167
14167
|
return Bi(t, {
|
|
14168
14168
|
active: !1,
|
|
14169
14169
|
dataIndex: e,
|
|
@@ -14187,7 +14187,7 @@ function Aa(t, e) {
|
|
|
14187
14187
|
}
|
|
14188
14188
|
}
|
|
14189
14189
|
}
|
|
14190
|
-
const Nc = (t) => t === "reset" || t === "none", ep = (t, e) => e ? t : Object.assign({}, t),
|
|
14190
|
+
const Nc = (t) => t === "reset" || t === "none", ep = (t, e) => e ? t : Object.assign({}, t), pP = (t, e, n) => t && !e.hidden && e._stacked && {
|
|
14191
14191
|
keys: Q0(n, !0),
|
|
14192
14192
|
values: null
|
|
14193
14193
|
};
|
|
@@ -14229,7 +14229,7 @@ class so {
|
|
|
14229
14229
|
_dataCheck() {
|
|
14230
14230
|
const e = this.getDataset(), n = e.data || (e.data = []), s = this._data;
|
|
14231
14231
|
if (Be(n))
|
|
14232
|
-
this._data =
|
|
14232
|
+
this._data = uP(n);
|
|
14233
14233
|
else if (s !== n) {
|
|
14234
14234
|
if (s) {
|
|
14235
14235
|
$m(s, this);
|
|
@@ -14320,10 +14320,10 @@ class so {
|
|
|
14320
14320
|
i && o && (i.values = o, a = Xm(i, r, this._cachedMeta.index)), e.min = Math.min(e.min, a), e.max = Math.max(e.max, a);
|
|
14321
14321
|
}
|
|
14322
14322
|
getMinMax(e, n) {
|
|
14323
|
-
const s = this._cachedMeta, i = s._parsed, r = s._sorted && e === s.iScale, a = i.length, o = this._getOtherScale(e), l =
|
|
14323
|
+
const s = this._cachedMeta, i = s._parsed, r = s._sorted && e === s.iScale, a = i.length, o = this._getOtherScale(e), l = pP(n, s, this.chart), u = {
|
|
14324
14324
|
min: Number.POSITIVE_INFINITY,
|
|
14325
14325
|
max: Number.NEGATIVE_INFINITY
|
|
14326
|
-
}, { min: c, max: d } =
|
|
14326
|
+
}, { min: c, max: d } = dP(o);
|
|
14327
14327
|
let h, f;
|
|
14328
14328
|
function p() {
|
|
14329
14329
|
f = i[h];
|
|
@@ -14360,7 +14360,7 @@ class so {
|
|
|
14360
14360
|
}
|
|
14361
14361
|
_update(e) {
|
|
14362
14362
|
const n = this._cachedMeta;
|
|
14363
|
-
this.update(e || "default"), n._clip =
|
|
14363
|
+
this.update(e || "default"), n._clip = lP(et(this.options.clip, oP(n.xScale, n.yScale, this.getMaxOverflow())));
|
|
14364
14364
|
}
|
|
14365
14365
|
update(e) {
|
|
14366
14366
|
}
|
|
@@ -14383,9 +14383,9 @@ class so {
|
|
|
14383
14383
|
let r;
|
|
14384
14384
|
if (e >= 0 && e < this._cachedMeta.data.length) {
|
|
14385
14385
|
const a = this._cachedMeta.data[e];
|
|
14386
|
-
r = a.$context || (a.$context =
|
|
14386
|
+
r = a.$context || (a.$context = mP(this.getContext(), e, a)), r.parsed = this.getParsed(e), r.raw = i.data[e], r.index = r.dataIndex = e;
|
|
14387
14387
|
} else
|
|
14388
|
-
r = this.$context || (this.$context =
|
|
14388
|
+
r = this.$context || (this.$context = fP(this.chart.getContext(), this.index)), r.dataset = i, r.index = r.datasetIndex = this.index;
|
|
14389
14389
|
return r.active = !!n, r.mode = s, r;
|
|
14390
14390
|
}
|
|
14391
14391
|
resolveDatasetElementOptions(e) {
|
|
@@ -14647,10 +14647,10 @@ class tf {
|
|
|
14647
14647
|
return Gi();
|
|
14648
14648
|
}
|
|
14649
14649
|
}
|
|
14650
|
-
var
|
|
14650
|
+
var gP = {
|
|
14651
14651
|
_date: tf
|
|
14652
14652
|
};
|
|
14653
|
-
function
|
|
14653
|
+
function yP(t, e, n, s) {
|
|
14654
14654
|
const { controller: i, data: r, _sorted: a } = t, o = i._cachedMeta.iScale;
|
|
14655
14655
|
if (o && e === o.axis && e !== "r" && a && r.length) {
|
|
14656
14656
|
const l = o._reversePixels ? UD : ar;
|
|
@@ -14676,14 +14676,14 @@ function y2(t, e, n, s) {
|
|
|
14676
14676
|
function No(t, e, n, s, i) {
|
|
14677
14677
|
const r = t.getSortedVisibleDatasetMetas(), a = n[e];
|
|
14678
14678
|
for (let o = 0, l = r.length; o < l; ++o) {
|
|
14679
|
-
const { index: u, data: c } = r[o], { lo: d, hi: h } =
|
|
14679
|
+
const { index: u, data: c } = r[o], { lo: d, hi: h } = yP(r[o], e, a, i);
|
|
14680
14680
|
for (let f = d; f <= h; ++f) {
|
|
14681
14681
|
const p = c[f];
|
|
14682
14682
|
p.skip || s(p, u, f);
|
|
14683
14683
|
}
|
|
14684
14684
|
}
|
|
14685
14685
|
}
|
|
14686
|
-
function
|
|
14686
|
+
function _P(t) {
|
|
14687
14687
|
const e = t.indexOf("x") !== -1, n = t.indexOf("y") !== -1;
|
|
14688
14688
|
return function(s, i) {
|
|
14689
14689
|
const r = e ? Math.abs(s.x - i.x) : 0, a = n ? Math.abs(s.y - i.y) : 0;
|
|
@@ -14700,7 +14700,7 @@ function Lc(t, e, n, s, i) {
|
|
|
14700
14700
|
});
|
|
14701
14701
|
}, !0), r;
|
|
14702
14702
|
}
|
|
14703
|
-
function
|
|
14703
|
+
function vP(t, e, n, s) {
|
|
14704
14704
|
let i = [];
|
|
14705
14705
|
function r(a, o, l) {
|
|
14706
14706
|
const { startAngle: u, endAngle: c } = a.getProps([
|
|
@@ -14718,9 +14718,9 @@ function v2(t, e, n, s) {
|
|
|
14718
14718
|
}
|
|
14719
14719
|
return No(t, n, e, r), i;
|
|
14720
14720
|
}
|
|
14721
|
-
function
|
|
14721
|
+
function bP(t, e, n, s, i, r) {
|
|
14722
14722
|
let a = [];
|
|
14723
|
-
const o =
|
|
14723
|
+
const o = _P(n);
|
|
14724
14724
|
let l = Number.POSITIVE_INFINITY;
|
|
14725
14725
|
function u(c, d, h) {
|
|
14726
14726
|
const f = c.inRange(e.x, e.y, i);
|
|
@@ -14745,7 +14745,7 @@ function b2(t, e, n, s, i, r) {
|
|
|
14745
14745
|
return No(t, n, e, u), a;
|
|
14746
14746
|
}
|
|
14747
14747
|
function Fc(t, e, n, s, i, r) {
|
|
14748
|
-
return !r && !t.isPointInArea(e) ? [] : n === "r" && !s ?
|
|
14748
|
+
return !r && !t.isPointInArea(e) ? [] : n === "r" && !s ? vP(t, e, n, i) : bP(t, e, n, s, i, r);
|
|
14749
14749
|
}
|
|
14750
14750
|
function tp(t, e, n, s, i) {
|
|
14751
14751
|
const r = [], a = n === "x" ? "inXRange" : "inYRange";
|
|
@@ -14758,7 +14758,7 @@ function tp(t, e, n, s, i) {
|
|
|
14758
14758
|
}), o = o || l.inRange(e.x, e.y, i));
|
|
14759
14759
|
}), s && !o ? [] : r;
|
|
14760
14760
|
}
|
|
14761
|
-
var
|
|
14761
|
+
var wP = {
|
|
14762
14762
|
evaluateInteractionItems: No,
|
|
14763
14763
|
modes: {
|
|
14764
14764
|
index(t, e, n, s) {
|
|
@@ -14823,7 +14823,7 @@ function Ea(t, e) {
|
|
|
14823
14823
|
return i.weight === r.weight ? i.index - r.index : i.weight - r.weight;
|
|
14824
14824
|
});
|
|
14825
14825
|
}
|
|
14826
|
-
function
|
|
14826
|
+
function kP(t) {
|
|
14827
14827
|
const e = [];
|
|
14828
14828
|
let n, s, i, r, a, o;
|
|
14829
14829
|
for (n = 0, s = (t || []).length; n < s; ++n)
|
|
@@ -14838,7 +14838,7 @@ function k2(t) {
|
|
|
14838
14838
|
});
|
|
14839
14839
|
return e;
|
|
14840
14840
|
}
|
|
14841
|
-
function
|
|
14841
|
+
function xP(t) {
|
|
14842
14842
|
const e = {};
|
|
14843
14843
|
for (const n of t) {
|
|
14844
14844
|
const { stack: s, pos: i, stackWeight: r } = n;
|
|
@@ -14854,8 +14854,8 @@ function x2(t) {
|
|
|
14854
14854
|
}
|
|
14855
14855
|
return e;
|
|
14856
14856
|
}
|
|
14857
|
-
function
|
|
14858
|
-
const n =
|
|
14857
|
+
function SP(t, e) {
|
|
14858
|
+
const n = xP(t), { vBoxMaxWidth: s, hBoxMaxHeight: i } = e;
|
|
14859
14859
|
let r, a, o;
|
|
14860
14860
|
for (r = 0, a = t.length; r < a; ++r) {
|
|
14861
14861
|
o = t[r];
|
|
@@ -14864,8 +14864,8 @@ function S2(t, e) {
|
|
|
14864
14864
|
}
|
|
14865
14865
|
return n;
|
|
14866
14866
|
}
|
|
14867
|
-
function
|
|
14868
|
-
const e =
|
|
14867
|
+
function TP(t) {
|
|
14868
|
+
const e = kP(t), n = Ea(e.filter((u) => u.box.fullSize), !0), s = Ea(Ra(e, "left"), !0), i = Ea(Ra(e, "right")), r = Ea(Ra(e, "top"), !0), a = Ea(Ra(e, "bottom")), o = np(e, "x"), l = np(e, "y");
|
|
14869
14869
|
return {
|
|
14870
14870
|
fullSize: n,
|
|
14871
14871
|
leftAndTop: s.concat(r),
|
|
@@ -14881,7 +14881,7 @@ function sp(t, e, n, s) {
|
|
|
14881
14881
|
function e_(t, e) {
|
|
14882
14882
|
t.top = Math.max(t.top, e.top), t.left = Math.max(t.left, e.left), t.bottom = Math.max(t.bottom, e.bottom), t.right = Math.max(t.right, e.right);
|
|
14883
14883
|
}
|
|
14884
|
-
function
|
|
14884
|
+
function MP(t, e, n, s) {
|
|
14885
14885
|
const { pos: i, box: r } = n, a = t.maxPadding;
|
|
14886
14886
|
if (!Be(i)) {
|
|
14887
14887
|
n.size && (t[i] -= n.size);
|
|
@@ -14901,7 +14901,7 @@ function M2(t, e, n, s) {
|
|
|
14901
14901
|
other: u
|
|
14902
14902
|
};
|
|
14903
14903
|
}
|
|
14904
|
-
function
|
|
14904
|
+
function DP(t) {
|
|
14905
14905
|
const e = t.maxPadding;
|
|
14906
14906
|
function n(s) {
|
|
14907
14907
|
const i = Math.max(e[s] - t[s], 0);
|
|
@@ -14909,7 +14909,7 @@ function D2(t) {
|
|
|
14909
14909
|
}
|
|
14910
14910
|
t.y += n("top"), t.x += n("left"), n("right"), n("bottom");
|
|
14911
14911
|
}
|
|
14912
|
-
function
|
|
14912
|
+
function OP(t, e) {
|
|
14913
14913
|
const n = e.maxPadding;
|
|
14914
14914
|
function s(i) {
|
|
14915
14915
|
const r = {
|
|
@@ -14934,8 +14934,8 @@ function Ha(t, e, n, s) {
|
|
|
14934
14934
|
const i = [];
|
|
14935
14935
|
let r, a, o, l, u, c;
|
|
14936
14936
|
for (r = 0, a = t.length, u = 0; r < a; ++r) {
|
|
14937
|
-
o = t[r], l = o.box, l.update(o.width || e.w, o.height || e.h,
|
|
14938
|
-
const { same: d, other: h } =
|
|
14937
|
+
o = t[r], l = o.box, l.update(o.width || e.w, o.height || e.h, OP(o.horizontal, e));
|
|
14938
|
+
const { same: d, other: h } = MP(e, n, o, s);
|
|
14939
14939
|
u |= d && i.length, c = c || h, l.fullSize || i.push(o);
|
|
14940
14940
|
}
|
|
14941
14941
|
return u && Ha(i, e, n, s) || c;
|
|
@@ -14985,7 +14985,7 @@ var ol = {
|
|
|
14985
14985
|
update(t, e, n, s) {
|
|
14986
14986
|
if (!t)
|
|
14987
14987
|
return;
|
|
14988
|
-
const i = Xn(t.options.layout.padding), r = Math.max(e - i.width, 0), a = Math.max(n - i.height, 0), o =
|
|
14988
|
+
const i = Xn(t.options.layout.padding), r = Math.max(e - i.width, 0), a = Math.max(n - i.height, 0), o = TP(t.boxes), l = o.vertical, u = o.horizontal;
|
|
14989
14989
|
Je(t.boxes, (m) => {
|
|
14990
14990
|
typeof m.beforeLayout == "function" && m.beforeLayout();
|
|
14991
14991
|
});
|
|
@@ -15005,8 +15005,8 @@ var ol = {
|
|
|
15005
15005
|
h: a,
|
|
15006
15006
|
x: i.left,
|
|
15007
15007
|
y: i.top
|
|
15008
|
-
}, i), p =
|
|
15009
|
-
Ha(o.fullSize, f, d, p), Ha(l, f, d, p), Ha(u, f, d, p) && Ha(l, f, d, p),
|
|
15008
|
+
}, i), p = SP(l.concat(u), d);
|
|
15009
|
+
Ha(o.fullSize, f, d, p), Ha(l, f, d, p), Ha(u, f, d, p) && Ha(l, f, d, p), DP(f), ip(o.leftAndTop, f, d, p), f.x += f.w, f.y += f.h, ip(o.rightAndBottom, f, d, p), t.chartArea = {
|
|
15010
15010
|
left: f.left,
|
|
15011
15011
|
top: f.top,
|
|
15012
15012
|
right: f.left + f.w,
|
|
@@ -15049,7 +15049,7 @@ class t_ {
|
|
|
15049
15049
|
updateConfig(e) {
|
|
15050
15050
|
}
|
|
15051
15051
|
}
|
|
15052
|
-
class
|
|
15052
|
+
class PP extends t_ {
|
|
15053
15053
|
acquireContext(e) {
|
|
15054
15054
|
return e && e.getContext && e.getContext("2d") || null;
|
|
15055
15055
|
}
|
|
@@ -15057,7 +15057,7 @@ class P2 extends t_ {
|
|
|
15057
15057
|
e.options.animation = !1;
|
|
15058
15058
|
}
|
|
15059
15059
|
}
|
|
15060
|
-
const Pl = "$chartjs",
|
|
15060
|
+
const Pl = "$chartjs", CP = {
|
|
15061
15061
|
touchstart: "mousedown",
|
|
15062
15062
|
touchmove: "mousemove",
|
|
15063
15063
|
touchend: "mouseup",
|
|
@@ -15068,7 +15068,7 @@ const Pl = "$chartjs", C2 = {
|
|
|
15068
15068
|
pointerleave: "mouseout",
|
|
15069
15069
|
pointerout: "mouseout"
|
|
15070
15070
|
}, rp = (t) => t === null || t === "";
|
|
15071
|
-
function
|
|
15071
|
+
function AP(t, e) {
|
|
15072
15072
|
const n = t.style, s = t.getAttribute("height"), i = t.getAttribute("width");
|
|
15073
15073
|
if (t[Pl] = {
|
|
15074
15074
|
initial: {
|
|
@@ -15096,14 +15096,14 @@ function A2(t, e) {
|
|
|
15096
15096
|
const n_ = zO ? {
|
|
15097
15097
|
passive: !0
|
|
15098
15098
|
} : !1;
|
|
15099
|
-
function
|
|
15099
|
+
function RP(t, e, n) {
|
|
15100
15100
|
t && t.addEventListener(e, n, n_);
|
|
15101
15101
|
}
|
|
15102
|
-
function
|
|
15102
|
+
function EP(t, e, n) {
|
|
15103
15103
|
t && t.canvas && t.canvas.removeEventListener(e, n, n_);
|
|
15104
15104
|
}
|
|
15105
|
-
function $
|
|
15106
|
-
const n =
|
|
15105
|
+
function $P(t, e) {
|
|
15106
|
+
const n = CP[t.type] || t.type, { x: s, y: i } = nr(t, e);
|
|
15107
15107
|
return {
|
|
15108
15108
|
type: n,
|
|
15109
15109
|
chart: e,
|
|
@@ -15117,7 +15117,7 @@ function iu(t, e) {
|
|
|
15117
15117
|
if (n === e || n.contains(e))
|
|
15118
15118
|
return !0;
|
|
15119
15119
|
}
|
|
15120
|
-
function
|
|
15120
|
+
function IP(t, e, n) {
|
|
15121
15121
|
const s = t.canvas, i = new MutationObserver((r) => {
|
|
15122
15122
|
let a = !1;
|
|
15123
15123
|
for (const o of r)
|
|
@@ -15129,7 +15129,7 @@ function I2(t, e, n) {
|
|
|
15129
15129
|
subtree: !0
|
|
15130
15130
|
}), i;
|
|
15131
15131
|
}
|
|
15132
|
-
function
|
|
15132
|
+
function NP(t, e, n) {
|
|
15133
15133
|
const s = t.canvas, i = new MutationObserver((r) => {
|
|
15134
15134
|
let a = !1;
|
|
15135
15135
|
for (const o of r)
|
|
@@ -15149,13 +15149,13 @@ function s_() {
|
|
|
15149
15149
|
n.currentDevicePixelRatio !== t && e();
|
|
15150
15150
|
}));
|
|
15151
15151
|
}
|
|
15152
|
-
function
|
|
15152
|
+
function LP(t, e) {
|
|
15153
15153
|
ko.size || window.addEventListener("resize", s_), ko.set(t, e);
|
|
15154
15154
|
}
|
|
15155
|
-
function
|
|
15155
|
+
function FP(t) {
|
|
15156
15156
|
ko.delete(t), ko.size || window.removeEventListener("resize", s_);
|
|
15157
15157
|
}
|
|
15158
|
-
function
|
|
15158
|
+
function YP(t, e, n) {
|
|
15159
15159
|
const s = t.canvas, i = s && ef(s);
|
|
15160
15160
|
if (!i)
|
|
15161
15161
|
return;
|
|
@@ -15166,21 +15166,21 @@ function Y2(t, e, n) {
|
|
|
15166
15166
|
const l = o[0], u = l.contentRect.width, c = l.contentRect.height;
|
|
15167
15167
|
u === 0 && c === 0 || r(u, c);
|
|
15168
15168
|
});
|
|
15169
|
-
return a.observe(i),
|
|
15169
|
+
return a.observe(i), LP(t, r), a;
|
|
15170
15170
|
}
|
|
15171
15171
|
function Yc(t, e, n) {
|
|
15172
|
-
n && n.disconnect(), e === "resize" &&
|
|
15172
|
+
n && n.disconnect(), e === "resize" && FP(t);
|
|
15173
15173
|
}
|
|
15174
|
-
function
|
|
15174
|
+
function VP(t, e, n) {
|
|
15175
15175
|
const s = t.canvas, i = V0((r) => {
|
|
15176
|
-
t.ctx !== null && n($
|
|
15176
|
+
t.ctx !== null && n($P(r, t));
|
|
15177
15177
|
}, t);
|
|
15178
|
-
return
|
|
15178
|
+
return RP(s, e, i), i;
|
|
15179
15179
|
}
|
|
15180
|
-
class
|
|
15180
|
+
class BP extends t_ {
|
|
15181
15181
|
acquireContext(e, n) {
|
|
15182
15182
|
const s = e && e.getContext && e.getContext("2d");
|
|
15183
|
-
return s && s.canvas === e ? (
|
|
15183
|
+
return s && s.canvas === e ? (AP(e, n), s) : null;
|
|
15184
15184
|
}
|
|
15185
15185
|
releaseContext(e) {
|
|
15186
15186
|
const n = e.canvas;
|
|
@@ -15202,10 +15202,10 @@ class B2 extends t_ {
|
|
|
15202
15202
|
addEventListener(e, n, s) {
|
|
15203
15203
|
this.removeEventListener(e, n);
|
|
15204
15204
|
const i = e.$proxies || (e.$proxies = {}), a = {
|
|
15205
|
-
attach:
|
|
15206
|
-
detach:
|
|
15207
|
-
resize:
|
|
15208
|
-
}[n] ||
|
|
15205
|
+
attach: IP,
|
|
15206
|
+
detach: NP,
|
|
15207
|
+
resize: YP
|
|
15208
|
+
}[n] || VP;
|
|
15209
15209
|
i[n] = a(e, n, s);
|
|
15210
15210
|
}
|
|
15211
15211
|
removeEventListener(e, n) {
|
|
@@ -15216,7 +15216,7 @@ class B2 extends t_ {
|
|
|
15216
15216
|
attach: Yc,
|
|
15217
15217
|
detach: Yc,
|
|
15218
15218
|
resize: Yc
|
|
15219
|
-
}[n] ||
|
|
15219
|
+
}[n] || EP)(e, n, i), s[n] = void 0;
|
|
15220
15220
|
}
|
|
15221
15221
|
getDevicePixelRatio() {
|
|
15222
15222
|
return window.devicePixelRatio;
|
|
@@ -15229,8 +15229,8 @@ class B2 extends t_ {
|
|
|
15229
15229
|
return !!(n && n.isConnected);
|
|
15230
15230
|
}
|
|
15231
15231
|
}
|
|
15232
|
-
function
|
|
15233
|
-
return !Jh() || typeof OffscreenCanvas < "u" && t instanceof OffscreenCanvas ?
|
|
15232
|
+
function WP(t) {
|
|
15233
|
+
return !Jh() || typeof OffscreenCanvas < "u" && t instanceof OffscreenCanvas ? PP : BP;
|
|
15234
15234
|
}
|
|
15235
15235
|
class wr {
|
|
15236
15236
|
constructor() {
|
|
@@ -15264,11 +15264,11 @@ class wr {
|
|
|
15264
15264
|
}
|
|
15265
15265
|
}
|
|
15266
15266
|
Z(wr, "defaults", {}), Z(wr, "defaultRoutes");
|
|
15267
|
-
function
|
|
15268
|
-
const n = t.options.ticks, s =
|
|
15267
|
+
function zP(t, e) {
|
|
15268
|
+
const n = t.options.ticks, s = HP(t), i = Math.min(n.maxTicksLimit || s, s), r = n.major.enabled ? jP(e) : [], a = r.length, o = r[0], l = r[a - 1], u = [];
|
|
15269
15269
|
if (a > i)
|
|
15270
|
-
return
|
|
15271
|
-
const c =
|
|
15270
|
+
return qP(e, u, r, a / i), u;
|
|
15271
|
+
const c = UP(r, e, i);
|
|
15272
15272
|
if (a > 0) {
|
|
15273
15273
|
let d, h;
|
|
15274
15274
|
const f = a > 1 ? Math.round((l - o) / (a - 1)) : null;
|
|
@@ -15278,12 +15278,12 @@ function z2(t, e) {
|
|
|
15278
15278
|
}
|
|
15279
15279
|
return ll(e, u, c), u;
|
|
15280
15280
|
}
|
|
15281
|
-
function
|
|
15281
|
+
function HP(t) {
|
|
15282
15282
|
const e = t.options.offset, n = t._tickSize(), s = t._length / n + (e ? 0 : 1), i = t._maxLength / n;
|
|
15283
15283
|
return Math.floor(Math.min(s, i));
|
|
15284
15284
|
}
|
|
15285
|
-
function
|
|
15286
|
-
const s =
|
|
15285
|
+
function UP(t, e, n) {
|
|
15286
|
+
const s = GP(t), i = e.length / n;
|
|
15287
15287
|
if (!s)
|
|
15288
15288
|
return Math.max(i, 1);
|
|
15289
15289
|
const r = VD(s);
|
|
@@ -15294,14 +15294,14 @@ function U2(t, e, n) {
|
|
|
15294
15294
|
}
|
|
15295
15295
|
return Math.max(i, 1);
|
|
15296
15296
|
}
|
|
15297
|
-
function
|
|
15297
|
+
function jP(t) {
|
|
15298
15298
|
const e = [];
|
|
15299
15299
|
let n, s;
|
|
15300
15300
|
for (n = 0, s = t.length; n < s; n++)
|
|
15301
15301
|
t[n].major && e.push(n);
|
|
15302
15302
|
return e;
|
|
15303
15303
|
}
|
|
15304
|
-
function
|
|
15304
|
+
function qP(t, e, n, s) {
|
|
15305
15305
|
let i = 0, r = n[0], a;
|
|
15306
15306
|
for (s = Math.ceil(s), a = 0; a < t.length; a++)
|
|
15307
15307
|
a === r && (e.push(t[a]), i++, r = n[i * s]);
|
|
@@ -15314,7 +15314,7 @@ function ll(t, e, n, s, i) {
|
|
|
15314
15314
|
for (u = Math.max(r, 0); u < a; u++)
|
|
15315
15315
|
u === c && (e.push(t[u]), o++, c = Math.round(r + o * n));
|
|
15316
15316
|
}
|
|
15317
|
-
function
|
|
15317
|
+
function GP(t) {
|
|
15318
15318
|
const e = t.length;
|
|
15319
15319
|
let n, s;
|
|
15320
15320
|
if (e < 2)
|
|
@@ -15324,7 +15324,7 @@ function G2(t) {
|
|
|
15324
15324
|
return !1;
|
|
15325
15325
|
return s;
|
|
15326
15326
|
}
|
|
15327
|
-
const
|
|
15327
|
+
const ZP = (t) => t === "left" ? "right" : t === "right" ? "left" : t, op = (t, e, n) => e === "top" || e === "left" ? t[e] + n : t[e] - n, lp = (t, e) => Math.min(e || t, t);
|
|
15328
15328
|
function up(t, e) {
|
|
15329
15329
|
const n = [], s = t.length / e, i = t.length;
|
|
15330
15330
|
let r = 0;
|
|
@@ -15332,13 +15332,13 @@ function up(t, e) {
|
|
|
15332
15332
|
n.push(t[Math.floor(r)]);
|
|
15333
15333
|
return n;
|
|
15334
15334
|
}
|
|
15335
|
-
function
|
|
15335
|
+
function XP(t, e, n) {
|
|
15336
15336
|
const s = t.ticks.length, i = Math.min(e, s - 1), r = t._startPixel, a = t._endPixel, o = 1e-6;
|
|
15337
15337
|
let l = t.getPixelForTick(i), u;
|
|
15338
15338
|
if (!(n && (s === 1 ? u = Math.max(l - r, a - l) : e === 0 ? u = (t.getPixelForTick(1) - l) / 2 : u = (l - t.getPixelForTick(i - 1)) / 2, l += i < e ? u : -u, l < r - o || l > a + o)))
|
|
15339
15339
|
return l;
|
|
15340
15340
|
}
|
|
15341
|
-
function
|
|
15341
|
+
function KP(t, e) {
|
|
15342
15342
|
Je(t, (n) => {
|
|
15343
15343
|
const s = n.gc, i = s.length / 2;
|
|
15344
15344
|
let r;
|
|
@@ -15358,24 +15358,24 @@ function cp(t, e) {
|
|
|
15358
15358
|
const n = On(t.font, e), s = Xn(t.padding);
|
|
15359
15359
|
return (gt(t.text) ? t.text.length : 1) * n.lineHeight + s.height;
|
|
15360
15360
|
}
|
|
15361
|
-
function
|
|
15361
|
+
function QP(t, e) {
|
|
15362
15362
|
return Bi(t, {
|
|
15363
15363
|
scale: e,
|
|
15364
15364
|
type: "scale"
|
|
15365
15365
|
});
|
|
15366
15366
|
}
|
|
15367
|
-
function
|
|
15367
|
+
function JP(t, e, n) {
|
|
15368
15368
|
return Bi(t, {
|
|
15369
15369
|
tick: n,
|
|
15370
15370
|
index: e,
|
|
15371
15371
|
type: "tick"
|
|
15372
15372
|
});
|
|
15373
15373
|
}
|
|
15374
|
-
function
|
|
15374
|
+
function e2(t, e, n) {
|
|
15375
15375
|
let s = XD(t);
|
|
15376
|
-
return (n && e !== "right" || !n && e === "right") && (s =
|
|
15376
|
+
return (n && e !== "right" || !n && e === "right") && (s = ZP(s)), s;
|
|
15377
15377
|
}
|
|
15378
|
-
function
|
|
15378
|
+
function t2(t, e, n, s) {
|
|
15379
15379
|
const { top: i, left: r, bottom: a, right: o, chart: l } = t, { chartArea: u, scales: c } = l;
|
|
15380
15380
|
let d = 0, h, f, p;
|
|
15381
15381
|
const m = a - i, g = o - r;
|
|
@@ -15475,7 +15475,7 @@ class Mr extends wr {
|
|
|
15475
15475
|
bottom: 0
|
|
15476
15476
|
}, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = bO(this, r, i), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
|
|
15477
15477
|
const l = o < this.ticks.length;
|
|
15478
|
-
this._convertTicksToLabels(l ? up(this.ticks, o) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks =
|
|
15478
|
+
this._convertTicksToLabels(l ? up(this.ticks, o) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = zP(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
|
|
15479
15479
|
}
|
|
15480
15480
|
configure() {
|
|
15481
15481
|
let e = this.options.reverse, n, s;
|
|
@@ -15645,7 +15645,7 @@ class Mr extends wr {
|
|
|
15645
15645
|
x = p[h], !lt(x) && !gt(x) && (v = tu(i, y.data, y.gc, v, x), T += w);
|
|
15646
15646
|
a.push(v), o.push(T), u = Math.max(v, u), c = Math.max(T, c);
|
|
15647
15647
|
}
|
|
15648
|
-
|
|
15648
|
+
KP(r, n);
|
|
15649
15649
|
const O = a.indexOf(u), S = o.indexOf(c), A = (R) => ({
|
|
15650
15650
|
width: a[R] || 0,
|
|
15651
15651
|
height: o[R] || 0
|
|
@@ -15691,9 +15691,9 @@ class Mr extends wr {
|
|
|
15691
15691
|
const n = this.ticks || [];
|
|
15692
15692
|
if (e >= 0 && e < n.length) {
|
|
15693
15693
|
const s = n[e];
|
|
15694
|
-
return s.$context || (s.$context =
|
|
15694
|
+
return s.$context || (s.$context = JP(this.getContext(), e, s));
|
|
15695
15695
|
}
|
|
15696
|
-
return this.$context || (this.$context =
|
|
15696
|
+
return this.$context || (this.$context = QP(this.chart.getContext(), this));
|
|
15697
15697
|
}
|
|
15698
15698
|
_tickSize() {
|
|
15699
15699
|
const e = this.options.ticks, n = Mi(this.labelRotation), s = Math.abs(Math.cos(n)), i = Math.abs(Math.sin(n)), r = this._getLabelSizes(), a = e.autoSkipPadding || 0, o = r ? r.widest.width + a : 0, l = r ? r.highest.height + a : 0;
|
|
@@ -15736,7 +15736,7 @@ class Mr extends wr {
|
|
|
15736
15736
|
const ee = et(i.ticks.maxTicksLimit, d), C = Math.max(1, Math.ceil(d / ee));
|
|
15737
15737
|
for (v = 0; v < d; v += C) {
|
|
15738
15738
|
const k = this.getContext(v), L = r.setContext(k), K = o.setContext(k), oe = L.lineWidth, J = L.color, I = K.dash || [], F = K.dashOffset, b = L.tickWidth, _ = L.tickColor, Y = L.tickBorderDash || [], j = L.tickBorderDashOffset;
|
|
15739
|
-
T =
|
|
15739
|
+
T = XP(this, v, l), T !== void 0 && (x = qi(s, T, oe), u ? O = A = z = $ = x : S = R = X = W = x, f.push({
|
|
15740
15740
|
tx1: O,
|
|
15741
15741
|
ty1: S,
|
|
15742
15742
|
tx2: A,
|
|
@@ -15949,12 +15949,12 @@ class Mr extends wr {
|
|
|
15949
15949
|
const r = On(s.font), a = Xn(s.padding), o = s.align;
|
|
15950
15950
|
let l = r.lineHeight / 2;
|
|
15951
15951
|
n === "bottom" || n === "center" || Be(n) ? (l += a.bottom, gt(s.text) && (l += r.lineHeight * (s.text.length - 1))) : l += a.top;
|
|
15952
|
-
const { titleX: u, titleY: c, maxWidth: d, rotation: h } =
|
|
15952
|
+
const { titleX: u, titleY: c, maxWidth: d, rotation: h } = t2(this, l, n, o);
|
|
15953
15953
|
nu(e, s.text, 0, 0, r, {
|
|
15954
15954
|
color: s.color,
|
|
15955
15955
|
maxWidth: d,
|
|
15956
15956
|
rotation: h,
|
|
15957
|
-
textAlign:
|
|
15957
|
+
textAlign: e2(o, n, i),
|
|
15958
15958
|
textBaseline: "middle",
|
|
15959
15959
|
translation: [
|
|
15960
15960
|
u,
|
|
@@ -16023,11 +16023,11 @@ class ul {
|
|
|
16023
16023
|
register(e) {
|
|
16024
16024
|
const n = Object.getPrototypeOf(e);
|
|
16025
16025
|
let s;
|
|
16026
|
-
|
|
16026
|
+
i2(n) && (s = this.register(n));
|
|
16027
16027
|
const i = this.items, r = e.id, a = this.scope + "." + r;
|
|
16028
16028
|
if (!r)
|
|
16029
16029
|
throw new Error("class does not have id: " + e);
|
|
16030
|
-
return r in i || (i[r] = e,
|
|
16030
|
+
return r in i || (i[r] = e, n2(e, a, s), this.override && Et.override(e.id, e.overrides)), a;
|
|
16031
16031
|
}
|
|
16032
16032
|
get(e) {
|
|
16033
16033
|
return this.items[e];
|
|
@@ -16037,15 +16037,15 @@ class ul {
|
|
|
16037
16037
|
s in n && delete n[s], i && s in Et[i] && (delete Et[i][s], this.override && delete br[s]);
|
|
16038
16038
|
}
|
|
16039
16039
|
}
|
|
16040
|
-
function
|
|
16040
|
+
function n2(t, e, n) {
|
|
16041
16041
|
const s = bo(/* @__PURE__ */ Object.create(null), [
|
|
16042
16042
|
n ? Et.get(n) : {},
|
|
16043
16043
|
Et.get(e),
|
|
16044
16044
|
t.defaults
|
|
16045
16045
|
]);
|
|
16046
|
-
Et.set(e, s), t.defaultRoutes &&
|
|
16046
|
+
Et.set(e, s), t.defaultRoutes && s2(e, t.defaultRoutes), t.descriptors && Et.describe(e, t.descriptors);
|
|
16047
16047
|
}
|
|
16048
|
-
function
|
|
16048
|
+
function s2(t, e) {
|
|
16049
16049
|
Object.keys(e).forEach((n) => {
|
|
16050
16050
|
const s = n.split("."), i = s.pop(), r = [
|
|
16051
16051
|
t
|
|
@@ -16053,10 +16053,10 @@ function sP(t, e) {
|
|
|
16053
16053
|
Et.route(r, i, l, o);
|
|
16054
16054
|
});
|
|
16055
16055
|
}
|
|
16056
|
-
function
|
|
16056
|
+
function i2(t) {
|
|
16057
16057
|
return "id" in t && "defaults" in t;
|
|
16058
16058
|
}
|
|
16059
|
-
class
|
|
16059
|
+
class r2 {
|
|
16060
16060
|
constructor() {
|
|
16061
16061
|
this.controllers = new ul(so, "datasets", !0), this.elements = new ul(wr, "elements"), this.plugins = new ul(Object, "plugins"), this.scales = new ul(Mr, "scales"), this._typedRegistries = [
|
|
16062
16062
|
this.controllers,
|
|
@@ -16136,8 +16136,8 @@ class rP {
|
|
|
16136
16136
|
return i;
|
|
16137
16137
|
}
|
|
16138
16138
|
}
|
|
16139
|
-
var ys = /* @__PURE__ */ new
|
|
16140
|
-
class
|
|
16139
|
+
var ys = /* @__PURE__ */ new r2();
|
|
16140
|
+
class a2 {
|
|
16141
16141
|
constructor() {
|
|
16142
16142
|
this._init = [];
|
|
16143
16143
|
}
|
|
@@ -16169,15 +16169,15 @@ class aP {
|
|
|
16169
16169
|
return this._notifyStateChanges(e), n;
|
|
16170
16170
|
}
|
|
16171
16171
|
_createDescriptors(e, n) {
|
|
16172
|
-
const s = e && e.config, i = et(s.options && s.options.plugins, {}), r =
|
|
16173
|
-
return i === !1 && !n ? [] :
|
|
16172
|
+
const s = e && e.config, i = et(s.options && s.options.plugins, {}), r = o2(s);
|
|
16173
|
+
return i === !1 && !n ? [] : u2(e, r, i, n);
|
|
16174
16174
|
}
|
|
16175
16175
|
_notifyStateChanges(e) {
|
|
16176
16176
|
const n = this._oldCache || [], s = this._cache, i = (r, a) => r.filter((o) => !a.some((l) => o.plugin.id === l.plugin.id));
|
|
16177
16177
|
this._notify(i(n, s), e, "stop"), this._notify(i(s, n), e, "start");
|
|
16178
16178
|
}
|
|
16179
16179
|
}
|
|
16180
|
-
function
|
|
16180
|
+
function o2(t) {
|
|
16181
16181
|
const e = {}, n = [], s = Object.keys(ys.plugins.items);
|
|
16182
16182
|
for (let r = 0; r < s.length; r++)
|
|
16183
16183
|
n.push(ys.getPlugin(s[r]));
|
|
@@ -16191,16 +16191,16 @@ function oP(t) {
|
|
|
16191
16191
|
localIds: e
|
|
16192
16192
|
};
|
|
16193
16193
|
}
|
|
16194
|
-
function
|
|
16194
|
+
function l2(t, e) {
|
|
16195
16195
|
return !e && t === !1 ? null : t === !0 ? {} : t;
|
|
16196
16196
|
}
|
|
16197
|
-
function
|
|
16197
|
+
function u2(t, { plugins: e, localIds: n }, s, i) {
|
|
16198
16198
|
const r = [], a = t.getContext();
|
|
16199
16199
|
for (const o of e) {
|
|
16200
|
-
const l = o.id, u =
|
|
16200
|
+
const l = o.id, u = l2(s[l], i);
|
|
16201
16201
|
u !== null && r.push({
|
|
16202
16202
|
plugin: o,
|
|
16203
|
-
options:
|
|
16203
|
+
options: c2(t.config, {
|
|
16204
16204
|
plugin: o,
|
|
16205
16205
|
local: n[l]
|
|
16206
16206
|
}, u, a)
|
|
@@ -16208,7 +16208,7 @@ function uP(t, { plugins: e, localIds: n }, s, i) {
|
|
|
16208
16208
|
}
|
|
16209
16209
|
return r;
|
|
16210
16210
|
}
|
|
16211
|
-
function
|
|
16211
|
+
function c2(t, { plugin: e, local: n }, s, i) {
|
|
16212
16212
|
const r = t.pluginScopeKeys(e), a = t.getOptionScopes(s, r);
|
|
16213
16213
|
return n && e.defaults && a.push(e.defaults), t.createResolver(a, i, [
|
|
16214
16214
|
""
|
|
@@ -16222,18 +16222,18 @@ function Ad(t, e) {
|
|
|
16222
16222
|
const n = Et.datasets[t] || {};
|
|
16223
16223
|
return ((e.datasets || {})[t] || {}).indexAxis || e.indexAxis || n.indexAxis || "x";
|
|
16224
16224
|
}
|
|
16225
|
-
function
|
|
16225
|
+
function d2(t, e) {
|
|
16226
16226
|
let n = t;
|
|
16227
16227
|
return t === "_index_" ? n = e : t === "_value_" && (n = e === "x" ? "y" : "x"), n;
|
|
16228
16228
|
}
|
|
16229
|
-
function
|
|
16229
|
+
function h2(t, e) {
|
|
16230
16230
|
return t === e ? "_index_" : "_value_";
|
|
16231
16231
|
}
|
|
16232
16232
|
function dp(t) {
|
|
16233
16233
|
if (t === "x" || t === "y" || t === "r")
|
|
16234
16234
|
return t;
|
|
16235
16235
|
}
|
|
16236
|
-
function
|
|
16236
|
+
function f2(t) {
|
|
16237
16237
|
if (t === "top" || t === "bottom")
|
|
16238
16238
|
return "x";
|
|
16239
16239
|
if (t === "left" || t === "right")
|
|
@@ -16243,7 +16243,7 @@ function Rd(t, ...e) {
|
|
|
16243
16243
|
if (dp(t))
|
|
16244
16244
|
return t;
|
|
16245
16245
|
for (const n of e) {
|
|
16246
|
-
const s = n.axis ||
|
|
16246
|
+
const s = n.axis || f2(n.position) || t.length > 1 && dp(t[0].toLowerCase());
|
|
16247
16247
|
if (s)
|
|
16248
16248
|
return s;
|
|
16249
16249
|
}
|
|
@@ -16255,7 +16255,7 @@ function hp(t, e, n) {
|
|
|
16255
16255
|
axis: e
|
|
16256
16256
|
};
|
|
16257
16257
|
}
|
|
16258
|
-
function
|
|
16258
|
+
function m2(t, e) {
|
|
16259
16259
|
if (e.data && e.data.datasets) {
|
|
16260
16260
|
const n = e.data.datasets.filter((s) => s.xAxisID === t || s.yAxisID === t);
|
|
16261
16261
|
if (n.length)
|
|
@@ -16263,7 +16263,7 @@ function mP(t, e) {
|
|
|
16263
16263
|
}
|
|
16264
16264
|
return {};
|
|
16265
16265
|
}
|
|
16266
|
-
function
|
|
16266
|
+
function p2(t, e) {
|
|
16267
16267
|
const n = br[t.type] || {
|
|
16268
16268
|
scales: {}
|
|
16269
16269
|
}, s = e.scales || {}, i = Ad(t.type, e), r = /* @__PURE__ */ Object.create(null);
|
|
@@ -16273,7 +16273,7 @@ function pP(t, e) {
|
|
|
16273
16273
|
return console.error(`Invalid scale configuration for scale: ${a}`);
|
|
16274
16274
|
if (o._proxy)
|
|
16275
16275
|
return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
|
|
16276
|
-
const l = Rd(a, o,
|
|
16276
|
+
const l = Rd(a, o, m2(a, t), Et.scales[o.type]), u = h2(l, i), c = n.scales || {};
|
|
16277
16277
|
r[a] = Qa(/* @__PURE__ */ Object.create(null), [
|
|
16278
16278
|
{
|
|
16279
16279
|
axis: l
|
|
@@ -16285,7 +16285,7 @@ function pP(t, e) {
|
|
|
16285
16285
|
}), t.data.datasets.forEach((a) => {
|
|
16286
16286
|
const o = a.type || t.type, l = a.indexAxis || Ad(o, e), c = (br[o] || {}).scales || {};
|
|
16287
16287
|
Object.keys(c).forEach((d) => {
|
|
16288
|
-
const h =
|
|
16288
|
+
const h = d2(d, l), f = a[h + "AxisID"] || h;
|
|
16289
16289
|
r[f] = r[f] || /* @__PURE__ */ Object.create(null), Qa(r[f], [
|
|
16290
16290
|
{
|
|
16291
16291
|
axis: h
|
|
@@ -16304,12 +16304,12 @@ function pP(t, e) {
|
|
|
16304
16304
|
}
|
|
16305
16305
|
function i_(t) {
|
|
16306
16306
|
const e = t.options || (t.options = {});
|
|
16307
|
-
e.plugins = et(e.plugins, {}), e.scales =
|
|
16307
|
+
e.plugins = et(e.plugins, {}), e.scales = p2(t, e);
|
|
16308
16308
|
}
|
|
16309
16309
|
function r_(t) {
|
|
16310
16310
|
return t = t || {}, t.datasets = t.datasets || [], t.labels = t.labels || [], t;
|
|
16311
16311
|
}
|
|
16312
|
-
function
|
|
16312
|
+
function g2(t) {
|
|
16313
16313
|
return t = t || {}, t.data = r_(t.data), i_(t), t;
|
|
16314
16314
|
}
|
|
16315
16315
|
const fp = /* @__PURE__ */ new Map(), a_ = /* @__PURE__ */ new Set();
|
|
@@ -16321,9 +16321,9 @@ const Ia = (t, e, n) => {
|
|
|
16321
16321
|
const s = Ql(e, n);
|
|
16322
16322
|
s !== void 0 && t.add(s);
|
|
16323
16323
|
};
|
|
16324
|
-
class
|
|
16324
|
+
class y2 {
|
|
16325
16325
|
constructor(e) {
|
|
16326
|
-
this._config =
|
|
16326
|
+
this._config = g2(e), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map();
|
|
16327
16327
|
}
|
|
16328
16328
|
get platform() {
|
|
16329
16329
|
return this._config.platform;
|
|
@@ -16431,7 +16431,7 @@ class yP {
|
|
|
16431
16431
|
$shared: !0
|
|
16432
16432
|
}, { resolver: a, subPrefixes: o } = mp(this._resolverCache, e, i);
|
|
16433
16433
|
let l = a;
|
|
16434
|
-
if (
|
|
16434
|
+
if (v2(a, n)) {
|
|
16435
16435
|
r.$shared = !1, s = Li(s) ? s() : s;
|
|
16436
16436
|
const u = this.createResolver(e, s, o);
|
|
16437
16437
|
l = ca(a, s, u);
|
|
@@ -16457,18 +16457,18 @@ function mp(t, e, n) {
|
|
|
16457
16457
|
subPrefixes: n.filter((o) => !o.toLowerCase().includes("hover"))
|
|
16458
16458
|
}, s.set(i, r)), r;
|
|
16459
16459
|
}
|
|
16460
|
-
const
|
|
16461
|
-
function
|
|
16460
|
+
const _2 = (t) => Be(t) && Object.getOwnPropertyNames(t).some((e) => Li(t[e]));
|
|
16461
|
+
function v2(t, e) {
|
|
16462
16462
|
const { isScriptable: n, isIndexable: s } = z0(t);
|
|
16463
16463
|
for (const i of e) {
|
|
16464
16464
|
const r = n(i), a = s(i), o = (a || r) && t[i];
|
|
16465
|
-
if (r && (Li(o) ||
|
|
16465
|
+
if (r && (Li(o) || _2(o)) || a && gt(o))
|
|
16466
16466
|
return !0;
|
|
16467
16467
|
}
|
|
16468
16468
|
return !1;
|
|
16469
16469
|
}
|
|
16470
|
-
var
|
|
16471
|
-
const
|
|
16470
|
+
var b2 = "4.4.2";
|
|
16471
|
+
const w2 = [
|
|
16472
16472
|
"top",
|
|
16473
16473
|
"bottom",
|
|
16474
16474
|
"left",
|
|
@@ -16476,7 +16476,7 @@ const wP = [
|
|
|
16476
16476
|
"chartArea"
|
|
16477
16477
|
];
|
|
16478
16478
|
function pp(t, e) {
|
|
16479
|
-
return t === "top" || t === "bottom" ||
|
|
16479
|
+
return t === "top" || t === "bottom" || w2.indexOf(t) === -1 && e === "x";
|
|
16480
16480
|
}
|
|
16481
16481
|
function gp(t, e) {
|
|
16482
16482
|
return function(n, s) {
|
|
@@ -16489,7 +16489,7 @@ function yp(t) {
|
|
|
16489
16489
|
t
|
|
16490
16490
|
], e);
|
|
16491
16491
|
}
|
|
16492
|
-
function
|
|
16492
|
+
function k2(t) {
|
|
16493
16493
|
const e = t.chart, n = e.options.animation;
|
|
16494
16494
|
vt(n && n.onProgress, [
|
|
16495
16495
|
t
|
|
@@ -16502,7 +16502,7 @@ const Cl = {}, _p = (t) => {
|
|
|
16502
16502
|
const e = o_(t);
|
|
16503
16503
|
return Object.values(Cl).filter((n) => n.canvas === e).pop();
|
|
16504
16504
|
};
|
|
16505
|
-
function
|
|
16505
|
+
function x2(t, e, n) {
|
|
16506
16506
|
const s = Object.keys(t);
|
|
16507
16507
|
for (const i of s) {
|
|
16508
16508
|
const r = +i;
|
|
@@ -16512,13 +16512,13 @@ function xP(t, e, n) {
|
|
|
16512
16512
|
}
|
|
16513
16513
|
}
|
|
16514
16514
|
}
|
|
16515
|
-
function
|
|
16515
|
+
function S2(t, e, n, s) {
|
|
16516
16516
|
return !n || t.type === "mouseout" ? null : s ? e : t;
|
|
16517
16517
|
}
|
|
16518
16518
|
function dl(t, e, n) {
|
|
16519
16519
|
return t.options.clip ? t[n] : e[n];
|
|
16520
16520
|
}
|
|
16521
|
-
function
|
|
16521
|
+
function T2(t, e) {
|
|
16522
16522
|
const { xScale: n, yScale: s } = t;
|
|
16523
16523
|
return n && s ? {
|
|
16524
16524
|
left: dl(n, e, "left"),
|
|
@@ -16536,17 +16536,17 @@ let Lo = (gi = class {
|
|
|
16536
16536
|
ys.remove(...e), vp();
|
|
16537
16537
|
}
|
|
16538
16538
|
constructor(e, n) {
|
|
16539
|
-
const s = this.config = new
|
|
16539
|
+
const s = this.config = new y2(n), i = o_(e), r = _p(i);
|
|
16540
16540
|
if (r)
|
|
16541
16541
|
throw new Error("Canvas is already in use. Chart with ID '" + r.id + "' must be destroyed before the canvas with ID '" + r.canvas.id + "' can be reused.");
|
|
16542
16542
|
const a = s.createResolver(s.chartOptionScopes(), this.getContext());
|
|
16543
|
-
this.platform = new (s.platform ||
|
|
16543
|
+
this.platform = new (s.platform || WP(i))(), this.platform.updateConfig(s);
|
|
16544
16544
|
const o = this.platform.acquireContext(i, a.aspectRatio), l = o && o.canvas, u = l && l.height, c = l && l.width;
|
|
16545
|
-
if (this.id = AD(), this.ctx = o, this.canvas = l, this.width = c, this.height = u, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new
|
|
16545
|
+
if (this.id = AD(), this.ctx = o, this.canvas = l, this.width = c, this.height = u, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new a2(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = ZD((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], Cl[this.id] = this, !o || !l) {
|
|
16546
16546
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
16547
16547
|
return;
|
|
16548
16548
|
}
|
|
16549
|
-
Bs.listen(this, "complete", yp), Bs.listen(this, "progress",
|
|
16549
|
+
Bs.listen(this, "complete", yp), Bs.listen(this, "progress", k2), this._initialize(), this.attached && this.update();
|
|
16550
16550
|
}
|
|
16551
16551
|
get aspectRatio() {
|
|
16552
16552
|
const { options: { aspectRatio: e, maintainAspectRatio: n }, width: s, height: i, _aspectRatio: r } = this;
|
|
@@ -16708,7 +16708,7 @@ let Lo = (gi = class {
|
|
|
16708
16708
|
const { _hiddenIndices: e } = this, n = this._getUniformDataChanges() || [];
|
|
16709
16709
|
for (const { method: s, start: i, count: r } of n) {
|
|
16710
16710
|
const a = s === "_removeElements" ? -r : r;
|
|
16711
|
-
|
|
16711
|
+
x2(e, i, a);
|
|
16712
16712
|
}
|
|
16713
16713
|
}
|
|
16714
16714
|
_getUniformDataChanges() {
|
|
@@ -16811,7 +16811,7 @@ let Lo = (gi = class {
|
|
|
16811
16811
|
this.notifyPlugins("afterDatasetsDraw");
|
|
16812
16812
|
}
|
|
16813
16813
|
_drawDataset(e) {
|
|
16814
|
-
const n = this.ctx, s = e._clip, i = !s.disabled, r =
|
|
16814
|
+
const n = this.ctx, s = e._clip, i = !s.disabled, r = T2(e, this.chartArea), a = {
|
|
16815
16815
|
meta: e,
|
|
16816
16816
|
index: e.index,
|
|
16817
16817
|
cancelable: !0
|
|
@@ -16827,7 +16827,7 @@ let Lo = (gi = class {
|
|
|
16827
16827
|
return Zs(e, this.chartArea, this._minPadding);
|
|
16828
16828
|
}
|
|
16829
16829
|
getElementsAtEventForMode(e, n, s, i) {
|
|
16830
|
-
const r =
|
|
16830
|
+
const r = wP.modes[n];
|
|
16831
16831
|
return typeof r == "function" ? r(this, e, s, i) : [];
|
|
16832
16832
|
}
|
|
16833
16833
|
getDatasetMeta(e) {
|
|
@@ -16986,7 +16986,7 @@ let Lo = (gi = class {
|
|
|
16986
16986
|
return s.cancelable = !1, this.notifyPlugins("afterEvent", s, i), (r || s.changed) && this.render(), this;
|
|
16987
16987
|
}
|
|
16988
16988
|
_handleEvent(e, n, s) {
|
|
16989
|
-
const { _active: i = [], options: r } = this, a = n, o = this._getActiveElements(e, i, s, a), l = LD(e), u =
|
|
16989
|
+
const { _active: i = [], options: r } = this, a = n, o = this._getActiveElements(e, i, s, a), l = LD(e), u = S2(e, this._lastEvent, s, l);
|
|
16990
16990
|
s && (this._lastEvent = null, vt(r.onHover, [
|
|
16991
16991
|
e,
|
|
16992
16992
|
o,
|
|
@@ -17007,18 +17007,18 @@ let Lo = (gi = class {
|
|
|
17007
17007
|
const r = this.options.hover;
|
|
17008
17008
|
return this.getElementsAtEventForMode(e, r.mode, r, i);
|
|
17009
17009
|
}
|
|
17010
|
-
}, Z(gi, "defaults", Et), Z(gi, "instances", Cl), Z(gi, "overrides", br), Z(gi, "registry", ys), Z(gi, "version",
|
|
17010
|
+
}, Z(gi, "defaults", Et), Z(gi, "instances", Cl), Z(gi, "overrides", br), Z(gi, "registry", ys), Z(gi, "version", b2), Z(gi, "getChart", _p), gi);
|
|
17011
17011
|
function vp() {
|
|
17012
17012
|
return Je(Lo.instances, (t) => t._plugins.invalidate());
|
|
17013
17013
|
}
|
|
17014
17014
|
function l_(t, e, n = e) {
|
|
17015
17015
|
t.lineCap = et(n.borderCapStyle, e.borderCapStyle), t.setLineDash(et(n.borderDash, e.borderDash)), t.lineDashOffset = et(n.borderDashOffset, e.borderDashOffset), t.lineJoin = et(n.borderJoinStyle, e.borderJoinStyle), t.lineWidth = et(n.borderWidth, e.borderWidth), t.strokeStyle = et(n.borderColor, e.borderColor);
|
|
17016
17016
|
}
|
|
17017
|
-
function
|
|
17017
|
+
function M2(t, e, n) {
|
|
17018
17018
|
t.lineTo(n.x, n.y);
|
|
17019
17019
|
}
|
|
17020
|
-
function
|
|
17021
|
-
return t.stepped ? cO : t.tension || t.cubicInterpolationMode === "monotone" ? dO :
|
|
17020
|
+
function D2(t) {
|
|
17021
|
+
return t.stepped ? cO : t.tension || t.cubicInterpolationMode === "monotone" ? dO : M2;
|
|
17022
17022
|
}
|
|
17023
17023
|
function u_(t, e, n = {}) {
|
|
17024
17024
|
const s = t.length, { start: i = 0, end: r = s - 1 } = n, { start: a, end: o } = e, l = Math.max(i, a), u = Math.min(r, o), c = i < a && r < a || i > o && r > o;
|
|
@@ -17029,14 +17029,14 @@ function u_(t, e, n = {}) {
|
|
|
17029
17029
|
ilen: u < l && !c ? s + u - l : u - l
|
|
17030
17030
|
};
|
|
17031
17031
|
}
|
|
17032
|
-
function
|
|
17033
|
-
const { points: i, options: r } = e, { count: a, start: o, loop: l, ilen: u } = u_(i, n, s), c =
|
|
17032
|
+
function O2(t, e, n, s) {
|
|
17033
|
+
const { points: i, options: r } = e, { count: a, start: o, loop: l, ilen: u } = u_(i, n, s), c = D2(r);
|
|
17034
17034
|
let { move: d = !0, reverse: h } = s || {}, f, p, m;
|
|
17035
17035
|
for (f = 0; f <= u; ++f)
|
|
17036
17036
|
p = i[(o + (h ? u - f : f)) % a], !p.skip && (d ? (t.moveTo(p.x, p.y), d = !1) : c(t, m, p, h, r.stepped), m = p);
|
|
17037
17037
|
return l && (p = i[(o + (h ? u : 0)) % a], c(t, m, p, h, r.stepped)), !!l;
|
|
17038
17038
|
}
|
|
17039
|
-
function
|
|
17039
|
+
function P2(t, e, n, s) {
|
|
17040
17040
|
const i = e.points, { count: r, start: a, ilen: o } = u_(i, n, s), { move: l = !0, reverse: u } = s || {};
|
|
17041
17041
|
let c = 0, d = 0, h, f, p, m, g, y;
|
|
17042
17042
|
const w = (T) => (a + (u ? o - T : T)) % r, v = () => {
|
|
@@ -17052,16 +17052,16 @@ function PP(t, e, n, s) {
|
|
|
17052
17052
|
}
|
|
17053
17053
|
function Ed(t) {
|
|
17054
17054
|
const e = t.options, n = e.borderDash && e.borderDash.length;
|
|
17055
|
-
return !t._decimated && !t._loop && !e.tension && e.cubicInterpolationMode !== "monotone" && !e.stepped && !n ?
|
|
17055
|
+
return !t._decimated && !t._loop && !e.tension && e.cubicInterpolationMode !== "monotone" && !e.stepped && !n ? P2 : O2;
|
|
17056
17056
|
}
|
|
17057
|
-
function
|
|
17057
|
+
function C2(t) {
|
|
17058
17058
|
return t.stepped ? HO : t.tension || t.cubicInterpolationMode === "monotone" ? UO : sr;
|
|
17059
17059
|
}
|
|
17060
|
-
function
|
|
17060
|
+
function A2(t, e, n, s) {
|
|
17061
17061
|
let i = e._path;
|
|
17062
17062
|
i || (i = e._path = new Path2D(), e.path(i, n, s) && i.closePath()), l_(t, e.options), t.stroke(i);
|
|
17063
17063
|
}
|
|
17064
|
-
function
|
|
17064
|
+
function R2(t, e, n, s) {
|
|
17065
17065
|
const { segments: i, options: r } = e, a = Ed(e);
|
|
17066
17066
|
for (const o of i)
|
|
17067
17067
|
l_(t, r, o.style), t.beginPath(), a(t, e, o, {
|
|
@@ -17069,9 +17069,9 @@ function RP(t, e, n, s) {
|
|
|
17069
17069
|
end: n + s - 1
|
|
17070
17070
|
}) && t.closePath(), t.stroke();
|
|
17071
17071
|
}
|
|
17072
|
-
const
|
|
17073
|
-
function $
|
|
17074
|
-
|
|
17072
|
+
const E2 = typeof Path2D == "function";
|
|
17073
|
+
function $2(t, e, n, s) {
|
|
17074
|
+
E2 && !e.options.segment ? A2(t, e, n, s) : R2(t, e, n, s);
|
|
17075
17075
|
}
|
|
17076
17076
|
class Xs extends wr {
|
|
17077
17077
|
constructor(e) {
|
|
@@ -17109,7 +17109,7 @@ class Xs extends wr {
|
|
|
17109
17109
|
});
|
|
17110
17110
|
if (!a.length)
|
|
17111
17111
|
return;
|
|
17112
|
-
const o = [], l =
|
|
17112
|
+
const o = [], l = C2(s);
|
|
17113
17113
|
let u, c;
|
|
17114
17114
|
for (u = 0, c = a.length; u < c; ++u) {
|
|
17115
17115
|
const { start: d, end: h } = a[u], f = r[d], p = r[h];
|
|
@@ -17138,7 +17138,7 @@ class Xs extends wr {
|
|
|
17138
17138
|
}
|
|
17139
17139
|
draw(e, n, s, i) {
|
|
17140
17140
|
const r = this.options || {};
|
|
17141
|
-
(this.points || []).length && r.borderWidth && (e.save(), $
|
|
17141
|
+
(this.points || []).length && r.borderWidth && (e.save(), $2(e, this, s, i), e.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
|
|
17142
17142
|
}
|
|
17143
17143
|
}
|
|
17144
17144
|
Z(Xs, "id", "line"), Z(Xs, "defaults", {
|
|
@@ -17231,7 +17231,7 @@ Z(io, "defaultRoutes", {
|
|
|
17231
17231
|
backgroundColor: "backgroundColor",
|
|
17232
17232
|
borderColor: "borderColor"
|
|
17233
17233
|
});
|
|
17234
|
-
function
|
|
17234
|
+
function I2(t, e, n) {
|
|
17235
17235
|
const s = t.segments, i = t.points, r = e.points, a = [];
|
|
17236
17236
|
for (const o of s) {
|
|
17237
17237
|
let { start: l, end: u } = o;
|
|
@@ -17274,7 +17274,7 @@ function $d(t, e, n, s) {
|
|
|
17274
17274
|
end: r
|
|
17275
17275
|
};
|
|
17276
17276
|
}
|
|
17277
|
-
function
|
|
17277
|
+
function N2(t, e) {
|
|
17278
17278
|
const { x: n = null, y: s = null } = t || {}, i = e.points, r = [];
|
|
17279
17279
|
return e.segments.forEach(({ start: a, end: o }) => {
|
|
17280
17280
|
o = nf(a, o, i);
|
|
@@ -17307,7 +17307,7 @@ function wp(t, e, n, s) {
|
|
|
17307
17307
|
}
|
|
17308
17308
|
function c_(t, e) {
|
|
17309
17309
|
let n = [], s = !1;
|
|
17310
|
-
return gt(t) ? (s = !0, n = t) : n =
|
|
17310
|
+
return gt(t) ? (s = !0, n = t) : n = N2(t, e), n.length ? new Xs({
|
|
17311
17311
|
points: n,
|
|
17312
17312
|
options: {
|
|
17313
17313
|
tension: 0
|
|
@@ -17319,7 +17319,7 @@ function c_(t, e) {
|
|
|
17319
17319
|
function kp(t) {
|
|
17320
17320
|
return t && t.fill !== !1;
|
|
17321
17321
|
}
|
|
17322
|
-
function
|
|
17322
|
+
function L2(t, e, n) {
|
|
17323
17323
|
let i = t[e].fill;
|
|
17324
17324
|
const r = [
|
|
17325
17325
|
e
|
|
@@ -17338,12 +17338,12 @@ function LP(t, e, n) {
|
|
|
17338
17338
|
}
|
|
17339
17339
|
return !1;
|
|
17340
17340
|
}
|
|
17341
|
-
function
|
|
17342
|
-
const s =
|
|
17341
|
+
function F2(t, e, n) {
|
|
17342
|
+
const s = W2(t);
|
|
17343
17343
|
if (Be(s))
|
|
17344
17344
|
return isNaN(s.value) ? !1 : s;
|
|
17345
17345
|
let i = parseFloat(s);
|
|
17346
|
-
return kt(i) && Math.floor(i) === i ?
|
|
17346
|
+
return kt(i) && Math.floor(i) === i ? Y2(s[0], e, i, n) : [
|
|
17347
17347
|
"origin",
|
|
17348
17348
|
"start",
|
|
17349
17349
|
"end",
|
|
@@ -17351,24 +17351,24 @@ function FP(t, e, n) {
|
|
|
17351
17351
|
"shape"
|
|
17352
17352
|
].indexOf(s) >= 0 && s;
|
|
17353
17353
|
}
|
|
17354
|
-
function
|
|
17354
|
+
function Y2(t, e, n, s) {
|
|
17355
17355
|
return (t === "-" || t === "+") && (n = e + n), n === e || n < 0 || n >= s ? !1 : n;
|
|
17356
17356
|
}
|
|
17357
|
-
function
|
|
17357
|
+
function V2(t, e) {
|
|
17358
17358
|
let n = null;
|
|
17359
17359
|
return t === "start" ? n = e.bottom : t === "end" ? n = e.top : Be(t) ? n = e.getPixelForValue(t.value) : e.getBasePixel && (n = e.getBasePixel()), n;
|
|
17360
17360
|
}
|
|
17361
|
-
function
|
|
17361
|
+
function B2(t, e, n) {
|
|
17362
17362
|
let s;
|
|
17363
17363
|
return t === "start" ? s = n : t === "end" ? s = e.options.reverse ? e.min : e.max : Be(t) ? s = t.value : s = e.getBaseValue(), s;
|
|
17364
17364
|
}
|
|
17365
|
-
function
|
|
17365
|
+
function W2(t) {
|
|
17366
17366
|
const e = t.options, n = e.fill;
|
|
17367
17367
|
let s = et(n && n.target, n);
|
|
17368
17368
|
return s === void 0 && (s = !!e.backgroundColor), s === !1 || s === null ? !1 : s === !0 ? "origin" : s;
|
|
17369
17369
|
}
|
|
17370
|
-
function
|
|
17371
|
-
const { scale: e, index: n, line: s } = t, i = [], r = s.segments, a = s.points, o =
|
|
17370
|
+
function z2(t) {
|
|
17371
|
+
const { scale: e, index: n, line: s } = t, i = [], r = s.segments, a = s.points, o = H2(e, n);
|
|
17372
17372
|
o.push(c_({
|
|
17373
17373
|
x: null,
|
|
17374
17374
|
y: e.bottom
|
|
@@ -17376,14 +17376,14 @@ function zP(t) {
|
|
|
17376
17376
|
for (let l = 0; l < r.length; l++) {
|
|
17377
17377
|
const u = r[l];
|
|
17378
17378
|
for (let c = u.start; c <= u.end; c++)
|
|
17379
|
-
|
|
17379
|
+
U2(i, a[c], o);
|
|
17380
17380
|
}
|
|
17381
17381
|
return new Xs({
|
|
17382
17382
|
points: i,
|
|
17383
17383
|
options: {}
|
|
17384
17384
|
});
|
|
17385
17385
|
}
|
|
17386
|
-
function
|
|
17386
|
+
function H2(t, e) {
|
|
17387
17387
|
const n = [], s = t.getMatchingVisibleMetas("line");
|
|
17388
17388
|
for (let i = 0; i < s.length; i++) {
|
|
17389
17389
|
const r = s[i];
|
|
@@ -17393,10 +17393,10 @@ function HP(t, e) {
|
|
|
17393
17393
|
}
|
|
17394
17394
|
return n;
|
|
17395
17395
|
}
|
|
17396
|
-
function
|
|
17396
|
+
function U2(t, e, n) {
|
|
17397
17397
|
const s = [];
|
|
17398
17398
|
for (let i = 0; i < n.length; i++) {
|
|
17399
|
-
const r = n[i], { first: a, last: o, point: l } =
|
|
17399
|
+
const r = n[i], { first: a, last: o, point: l } = j2(r, e, "x");
|
|
17400
17400
|
if (!(!l || a && o)) {
|
|
17401
17401
|
if (a)
|
|
17402
17402
|
s.unshift(l);
|
|
@@ -17406,7 +17406,7 @@ function UP(t, e, n) {
|
|
|
17406
17406
|
}
|
|
17407
17407
|
t.push(...s);
|
|
17408
17408
|
}
|
|
17409
|
-
function
|
|
17409
|
+
function j2(t, e, n) {
|
|
17410
17410
|
const s = t.interpolate(e, n);
|
|
17411
17411
|
if (!s)
|
|
17412
17412
|
return {};
|
|
@@ -17445,26 +17445,26 @@ class d_ {
|
|
|
17445
17445
|
};
|
|
17446
17446
|
}
|
|
17447
17447
|
}
|
|
17448
|
-
function
|
|
17448
|
+
function q2(t) {
|
|
17449
17449
|
const { chart: e, fill: n, line: s } = t;
|
|
17450
17450
|
if (kt(n))
|
|
17451
|
-
return
|
|
17451
|
+
return G2(e, n);
|
|
17452
17452
|
if (n === "stack")
|
|
17453
|
-
return
|
|
17453
|
+
return z2(t);
|
|
17454
17454
|
if (n === "shape")
|
|
17455
17455
|
return !0;
|
|
17456
|
-
const i =
|
|
17456
|
+
const i = Z2(t);
|
|
17457
17457
|
return i instanceof d_ ? i : c_(i, s);
|
|
17458
17458
|
}
|
|
17459
|
-
function
|
|
17459
|
+
function G2(t, e) {
|
|
17460
17460
|
const n = t.getDatasetMeta(e);
|
|
17461
17461
|
return n && t.isDatasetVisible(e) ? n.dataset : null;
|
|
17462
17462
|
}
|
|
17463
|
-
function
|
|
17464
|
-
return (t.scale || {}).getPointPositionForValue ?
|
|
17463
|
+
function Z2(t) {
|
|
17464
|
+
return (t.scale || {}).getPointPositionForValue ? K2(t) : X2(t);
|
|
17465
17465
|
}
|
|
17466
|
-
function
|
|
17467
|
-
const { scale: e = {}, fill: n } = t, s =
|
|
17466
|
+
function X2(t) {
|
|
17467
|
+
const { scale: e = {}, fill: n } = t, s = V2(n, e);
|
|
17468
17468
|
if (kt(s)) {
|
|
17469
17469
|
const i = e.isHorizontal();
|
|
17470
17470
|
return {
|
|
@@ -17474,8 +17474,8 @@ function XP(t) {
|
|
|
17474
17474
|
}
|
|
17475
17475
|
return null;
|
|
17476
17476
|
}
|
|
17477
|
-
function
|
|
17478
|
-
const { scale: e, fill: n } = t, s = e.options, i = e.getLabels().length, r = s.reverse ? e.max : e.min, a =
|
|
17477
|
+
function K2(t) {
|
|
17478
|
+
const { scale: e, fill: n } = t, s = e.options, i = e.getLabels().length, r = s.reverse ? e.max : e.min, a = B2(n, e, r), o = [];
|
|
17479
17479
|
if (s.grid.circular) {
|
|
17480
17480
|
const l = e.getPointPositionForValue(0, r);
|
|
17481
17481
|
return new d_({
|
|
@@ -17489,8 +17489,8 @@ function KP(t) {
|
|
|
17489
17489
|
return o;
|
|
17490
17490
|
}
|
|
17491
17491
|
function Vc(t, e, n) {
|
|
17492
|
-
const s =
|
|
17493
|
-
s && i.points.length && (Gh(t, n),
|
|
17492
|
+
const s = q2(e), { line: i, scale: r, axis: a } = e, o = i.options, l = o.fill, u = o.backgroundColor, { above: c = u, below: d = u } = l || {};
|
|
17493
|
+
s && i.points.length && (Gh(t, n), Q2(t, {
|
|
17494
17494
|
line: i,
|
|
17495
17495
|
target: s,
|
|
17496
17496
|
above: c,
|
|
@@ -17500,7 +17500,7 @@ function Vc(t, e, n) {
|
|
|
17500
17500
|
axis: a
|
|
17501
17501
|
}), Zh(t));
|
|
17502
17502
|
}
|
|
17503
|
-
function
|
|
17503
|
+
function Q2(t, e) {
|
|
17504
17504
|
const { line: n, target: s, above: i, below: r, area: a, scale: o } = e, l = n._loop ? "angle" : e.axis;
|
|
17505
17505
|
t.save(), l === "x" && r !== i && (xp(t, s, a.top), Sp(t, {
|
|
17506
17506
|
line: n,
|
|
@@ -17529,10 +17529,10 @@ function xp(t, e, n) {
|
|
|
17529
17529
|
t.lineTo(e.first().x, n), t.closePath(), t.clip();
|
|
17530
17530
|
}
|
|
17531
17531
|
function Sp(t, e) {
|
|
17532
|
-
const { line: n, target: s, property: i, color: r, scale: a } = e, o =
|
|
17532
|
+
const { line: n, target: s, property: i, color: r, scale: a } = e, o = I2(n, s, i);
|
|
17533
17533
|
for (const { source: l, target: u, start: c, end: d } of o) {
|
|
17534
17534
|
const { style: { backgroundColor: h = r } = {} } = l, f = s !== !0;
|
|
17535
|
-
t.save(), t.fillStyle = h,
|
|
17535
|
+
t.save(), t.fillStyle = h, J2(t, a, f && $d(i, c, d)), t.beginPath();
|
|
17536
17536
|
const p = !!n.pathSegment(t, l);
|
|
17537
17537
|
let m;
|
|
17538
17538
|
if (f) {
|
|
@@ -17546,7 +17546,7 @@ function Sp(t, e) {
|
|
|
17546
17546
|
t.closePath(), t.fill(m ? "evenodd" : "nonzero"), t.restore();
|
|
17547
17547
|
}
|
|
17548
17548
|
}
|
|
17549
|
-
function
|
|
17549
|
+
function J2(t, e, n) {
|
|
17550
17550
|
const { top: s, bottom: i } = e.chart.chartArea, { property: r, start: a, end: o } = n || {};
|
|
17551
17551
|
r === "x" && (t.beginPath(), t.rect(a, s, o - a, i - s), t.clip());
|
|
17552
17552
|
}
|
|
@@ -17563,14 +17563,14 @@ var h_ = {
|
|
|
17563
17563
|
r = t.getDatasetMeta(a), o = r.dataset, l = null, o && o.options && o instanceof Xs && (l = {
|
|
17564
17564
|
visible: t.isDatasetVisible(a),
|
|
17565
17565
|
index: a,
|
|
17566
|
-
fill:
|
|
17566
|
+
fill: F2(o, a, s),
|
|
17567
17567
|
chart: t,
|
|
17568
17568
|
axis: r.controller.options.indexAxis,
|
|
17569
17569
|
scale: r.vScale,
|
|
17570
17570
|
line: o
|
|
17571
17571
|
}), r.$filler = l, i.push(l);
|
|
17572
17572
|
for (a = 0; a < s; ++a)
|
|
17573
|
-
l = i[a], !(!l || l.fill === !1) && (l.fill =
|
|
17573
|
+
l = i[a], !(!l || l.fill === !1) && (l.fill = L2(i, a, n.propagate));
|
|
17574
17574
|
},
|
|
17575
17575
|
beforeDraw(t, e, n) {
|
|
17576
17576
|
const s = n.drawTime === "beforeDraw", i = t.getSortedVisibleDatasetMetas(), r = t.chartArea;
|
|
@@ -18860,7 +18860,7 @@ class lu extends Mr {
|
|
|
18860
18860
|
}, this._unit = "day", this._majorUnit = void 0, this._offsets = {}, this._normalized = !1, this._parseOpts = void 0;
|
|
18861
18861
|
}
|
|
18862
18862
|
init(e, n = {}) {
|
|
18863
|
-
const s = e.time || (e.time = {}), i = this._adapter = new
|
|
18863
|
+
const s = e.time || (e.time = {}), i = this._adapter = new gP._date(e.adapters.date);
|
|
18864
18864
|
i.init(n), Qa(s.displayFormats, i.formats()), this._parseOpts = {
|
|
18865
18865
|
parser: s.parser,
|
|
18866
18866
|
round: s.round,
|
|
@@ -19762,7 +19762,7 @@ const __ = /* @__PURE__ */ LC("line", Ol), FC = { class: "chart-container" }, v_
|
|
|
19762
19762
|
}, null, 8, ["data"])
|
|
19763
19763
|
]));
|
|
19764
19764
|
}
|
|
19765
|
-
}, FV = /* @__PURE__ */ Ue(tR, [["__scopeId", "data-v-71fad3e1"]]), Au = (t) => (vn("data-v-
|
|
19765
|
+
}, FV = /* @__PURE__ */ Ue(tR, [["__scopeId", "data-v-71fad3e1"]]), Au = (t) => (vn("data-v-d99b6067"), t = t(), bn(), t), nR = { class: "return-widget" }, sR = { class: "return-widget__content" }, iR = { class: "return-widget__top" }, rR = { class: "return-widget__title-wrapper" }, aR = /* @__PURE__ */ Au(() => /* @__PURE__ */ P("div", { class: "return-widget__title" }, "Return", -1)), oR = /* @__PURE__ */ Au(() => /* @__PURE__ */ P("br", null, null, -1)), lR = { class: "return-widget__info" }, uR = { class: "return-widget__total-wrapper" }, cR = /* @__PURE__ */ Au(() => /* @__PURE__ */ P("div", { class: "return-widget__total-wrapper__title" }, "Total", -1)), dR = { class: "return-widget__total-wrapper__total" }, hR = { class: "return-widget__points" }, fR = { class: "return-widget__point" }, mR = { class: "return-widget__point__title" }, pR = /* @__PURE__ */ Au(() => /* @__PURE__ */ P("div", { class: "return-widget__point__line" }, null, -1)), gR = ["innerHTML"], yR = {
|
|
19766
19766
|
__name: "ReturnWidget",
|
|
19767
19767
|
props: {
|
|
19768
19768
|
returnData: Object,
|
|
@@ -19775,13 +19775,13 @@ const __ = /* @__PURE__ */ LC("line", Ol), FC = { class: "chart-container" }, v_
|
|
|
19775
19775
|
title: "Average return per trade",
|
|
19776
19776
|
value: l.value || 0,
|
|
19777
19777
|
options: { isPlus: !0, isFixed: !0 },
|
|
19778
|
-
class: l.value >= 0 ? "-win" : "-loss"
|
|
19778
|
+
class: l.value === 0 ? "" : l.value >= 0 ? "-win" : "-loss"
|
|
19779
19779
|
},
|
|
19780
19780
|
{
|
|
19781
19781
|
title: "Daily return",
|
|
19782
19782
|
value: u.value || 0,
|
|
19783
19783
|
options: { isPlus: !0, isFixed: !0 },
|
|
19784
|
-
class: u.value >= 0 ? "-win" : "-loss"
|
|
19784
|
+
class: u.value === 0 ? "" : u.value >= 0 ? "-win" : "-loss"
|
|
19785
19785
|
},
|
|
19786
19786
|
{ title: "Return on winners", value: c.value || 0 },
|
|
19787
19787
|
{ title: "Return on losers", value: d.value || 0 }
|
|
@@ -19847,7 +19847,7 @@ const __ = /* @__PURE__ */ LC("line", Ol), FC = { class: "chart-container" }, v_
|
|
|
19847
19847
|
], 2)) : H("", !0)
|
|
19848
19848
|
]));
|
|
19849
19849
|
}
|
|
19850
|
-
}, YV = /* @__PURE__ */ Ue(yR, [["__scopeId", "data-v-
|
|
19850
|
+
}, YV = /* @__PURE__ */ Ue(yR, [["__scopeId", "data-v-d99b6067"]]), rf = (t) => (vn("data-v-69c2a2fa"), t = t(), bn(), t), _R = { class: "top-positions-widget" }, vR = { class: "top-positions-widget__top" }, bR = { class: "top-positions-widget__title-wrapper" }, wR = /* @__PURE__ */ rf(() => /* @__PURE__ */ P("div", { class: "top-positions-widget__title" }, "Top-3 Positions", -1)), kR = /* @__PURE__ */ rf(() => /* @__PURE__ */ P("br", null, null, -1)), xR = {
|
|
19851
19851
|
key: 0,
|
|
19852
19852
|
class: "top-positions-widget__returns"
|
|
19853
19853
|
}, SR = { class: "top-positions-widget__return" }, TR = { class: "top-positions-widget__return__left" }, MR = /* @__PURE__ */ rf(() => /* @__PURE__ */ P("div", { class: "top-positions-widget__return__line" }, null, -1)), DR = { class: "top-positions-widget__return__pair" }, OR = { class: "top-positions-widget__return__right" }, PR = { class: "top-positions-widget__return__pnl" }, CR = {
|