@kong-ui-public/analytics-chart 10.1.1 → 10.1.3
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/vitals-chart.es.js
CHANGED
|
@@ -2154,7 +2154,7 @@ function Uh(n, t, e) {
|
|
|
2154
2154
|
];
|
|
2155
2155
|
const { property: i, start: s, end: r } = e, o = t.length, { compare: a, between: l, normalize: c } = $h(i), { start: u, end: d, loop: h, style: f } = uy(n, t, e), g = [];
|
|
2156
2156
|
let m = !1, _ = null, v, w, D;
|
|
2157
|
-
const S = () => l(s, D, v) && a(s, D) !== 0,
|
|
2157
|
+
const S = () => l(s, D, v) && a(s, D) !== 0, C = () => a(r, v) === 0 || l(r, D, v), E = () => m || S(), P = () => !m || C();
|
|
2158
2158
|
for (let y = u, b = u; y <= d; ++y)
|
|
2159
2159
|
w = t[y % o], !w.skip && (v = c(w[i]), v !== D && (m = l(v, s, r), _ === null && E() && (_ = a(v, s) === 0 ? y : b), _ !== null && P() && (g.push(qc({
|
|
2160
2160
|
start: _,
|
|
@@ -3282,8 +3282,8 @@ class Bs extends tn {
|
|
|
3282
3282
|
let v = e.getPixelForValue(_);
|
|
3283
3283
|
if (this.chart.getDataVisibility(t) ? g = e.getPixelForValue(h + f) : g = v, m = g - v, Math.abs(m) < o) {
|
|
3284
3284
|
m = Ny(m, e, a) * o, d === a && (v -= m / 2);
|
|
3285
|
-
const w = e.getPixelForDecimal(0), D = e.getPixelForDecimal(1), S = Math.min(w, D),
|
|
3286
|
-
v = Math.max(Math.min(v,
|
|
3285
|
+
const w = e.getPixelForDecimal(0), D = e.getPixelForDecimal(1), S = Math.min(w, D), C = Math.max(w, D);
|
|
3286
|
+
v = Math.max(Math.min(v, C), S), g = v + m, i && !u && (l._stacks[e.axis]._visualValues[s] = e.getValueForPixel(g) - e.getValueForPixel(v));
|
|
3287
3287
|
}
|
|
3288
3288
|
if (v === e.getPixelForValue(a)) {
|
|
3289
3289
|
const w = cn(m) * e.getLineWidthForValue(a) / 2;
|
|
@@ -3440,7 +3440,7 @@ O(Xr, "id", "bubble"), O(Xr, "defaults", {
|
|
|
3440
3440
|
function Yy(n, t, e) {
|
|
3441
3441
|
let i = 1, s = 1, r = 0, o = 0;
|
|
3442
3442
|
if (t < Lt) {
|
|
3443
|
-
const a = n, l = a + t, c = Math.cos(a), u = Math.sin(a), d = Math.cos(l), h = Math.sin(l), f = (D, S,
|
|
3443
|
+
const a = n, l = a + t, c = Math.cos(a), u = Math.sin(a), d = Math.cos(l), h = Math.sin(l), f = (D, S, C) => Ks(D, a, l, !0) ? 1 : Math.max(S, S * e, C, C * e), g = (D, S, C) => Ks(D, a, l, !0) ? -1 : Math.min(S, S * e, C, C * e), m = f(0, c, d), _ = f(Nt, u, h), v = g(ft, c, d), w = g(ft + Nt, u, h);
|
|
3444
3444
|
i = (m - v) / 2, s = (_ - w) / 2, r = -(m + v) / 2, o = -(_ + w) / 2;
|
|
3445
3445
|
}
|
|
3446
3446
|
return {
|
|
@@ -3490,8 +3490,8 @@ class Tn extends tn {
|
|
|
3490
3490
|
};
|
|
3491
3491
|
}
|
|
3492
3492
|
update(t) {
|
|
3493
|
-
const e = this.chart, { chartArea: i } = e, s = this._cachedMeta, r = s.data, o = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - o) / 2, 0), l = Math.min(tm(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: g, offsetY: m } = Yy(d, u, l), _ = (i.width - o) / h, v = (i.height - o) / f, w = Math.max(Math.min(_, v) / 2, 0), D = Dh(this.options.radius, w), S = Math.max(D * l, 0),
|
|
3494
|
-
this.offsetX = g * D, this.offsetY = m * D, s.total = this.calculateTotal(), this.outerRadius = D -
|
|
3493
|
+
const e = this.chart, { chartArea: i } = e, s = this._cachedMeta, r = s.data, o = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - o) / 2, 0), l = Math.min(tm(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: g, offsetY: m } = Yy(d, u, l), _ = (i.width - o) / h, v = (i.height - o) / f, w = Math.max(Math.min(_, v) / 2, 0), D = Dh(this.options.radius, w), S = Math.max(D * l, 0), C = (D - S) / this._getVisibleDatasetWeightTotal();
|
|
3494
|
+
this.offsetX = g * D, this.offsetY = m * D, s.total = this.calculateTotal(), this.outerRadius = D - C * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - C * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3495
3495
|
}
|
|
3496
3496
|
_circumference(t, e) {
|
|
3497
3497
|
const i = this.options, s = this._cachedMeta, r = this._getCircumference();
|
|
@@ -3503,7 +3503,7 @@ class Tn extends tn {
|
|
|
3503
3503
|
for (w = 0; w < e; ++w)
|
|
3504
3504
|
v += this._circumference(w, r);
|
|
3505
3505
|
for (w = e; w < e + i; ++w) {
|
|
3506
|
-
const D = this._circumference(w, r), S = t[w],
|
|
3506
|
+
const D = this._circumference(w, r), S = t[w], C = {
|
|
3507
3507
|
x: u + this.offsetX,
|
|
3508
3508
|
y: d + this.offsetY,
|
|
3509
3509
|
startAngle: v,
|
|
@@ -3512,7 +3512,7 @@ class Tn extends tn {
|
|
|
3512
3512
|
outerRadius: g,
|
|
3513
3513
|
innerRadius: f
|
|
3514
3514
|
};
|
|
3515
|
-
_ && (
|
|
3515
|
+
_ && (C.options = m || this.resolveDataElementOptions(w, S.active ? "active" : s)), v += D, this.updateElement(S, w, C, s);
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
3518
|
calculateTotal() {
|
|
@@ -3655,14 +3655,14 @@ class js extends tn {
|
|
|
3655
3655
|
updateElements(t, e, i, s) {
|
|
3656
3656
|
const r = s === "reset", { iScale: o, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = o.axis, f = a.axis, { spanGaps: g, segment: m } = this.options, _ = Gn(g) ? g : Number.POSITIVE_INFINITY, v = this.chart._animationsDisabled || r || s === "none", w = e + i, D = t.length;
|
|
3657
3657
|
let S = e > 0 && this.getParsed(e - 1);
|
|
3658
|
-
for (let
|
|
3659
|
-
const E = t[
|
|
3660
|
-
if (
|
|
3658
|
+
for (let C = 0; C < D; ++C) {
|
|
3659
|
+
const E = t[C], P = v ? E : {};
|
|
3660
|
+
if (C < e || C >= w) {
|
|
3661
3661
|
P.skip = !0;
|
|
3662
3662
|
continue;
|
|
3663
3663
|
}
|
|
3664
|
-
const y = this.getParsed(
|
|
3665
|
-
P.skip = isNaN(
|
|
3664
|
+
const y = this.getParsed(C), b = at(y[f]), T = P[h] = o.getPixelForValue(y[h], C), R = P[f] = r || b ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, y, l) : y[f], C);
|
|
3665
|
+
P.skip = isNaN(T) || isNaN(R) || b, P.stop = C > 0 && Math.abs(y[h] - S[h]) > _, m && (P.parsed = y, P.raw = c.data[C]), d && (P.options = u || this.resolveDataElementOptions(C, E.active ? "active" : s)), v || this.updateElement(E, C, P, s), S = y;
|
|
3666
3666
|
}
|
|
3667
3667
|
}
|
|
3668
3668
|
getMaxOverflow() {
|
|
@@ -3922,8 +3922,8 @@ class Gr extends tn {
|
|
|
3922
3922
|
const r = s === "reset", { iScale: o, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(e, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = o.axis, g = a.axis, { spanGaps: m, segment: _ } = this.options, v = Gn(m) ? m : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || r || s === "none";
|
|
3923
3923
|
let D = e > 0 && this.getParsed(e - 1);
|
|
3924
3924
|
for (let S = e; S < e + i; ++S) {
|
|
3925
|
-
const
|
|
3926
|
-
P.skip = isNaN(b) || isNaN(
|
|
3925
|
+
const C = t[S], E = this.getParsed(S), P = w ? C : {}, y = at(E[g]), b = P[f] = o.getPixelForValue(E[f], S), T = P[g] = r || y ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, E, l) : E[g], S);
|
|
3926
|
+
P.skip = isNaN(b) || isNaN(T) || y, P.stop = S > 0 && Math.abs(E[f] - D[f]) > v, _ && (P.parsed = E, P.raw = c.data[S]), h && (P.options = d || this.resolveDataElementOptions(S, C.active ? "active" : s)), w || this.updateElement(C, S, P, s), D = E;
|
|
3927
3927
|
}
|
|
3928
3928
|
this.updateSharedOptions(d, s, u);
|
|
3929
3929
|
}
|
|
@@ -5008,7 +5008,7 @@ class vi extends fe {
|
|
|
5008
5008
|
}
|
|
5009
5009
|
_computeLabelSizes(t, e, i) {
|
|
5010
5010
|
const { ctx: s, _longestTextCache: r } = this, o = [], a = [], l = Math.floor(e / fu(e, i));
|
|
5011
|
-
let c = 0, u = 0, d, h, f, g, m, _, v, w, D, S,
|
|
5011
|
+
let c = 0, u = 0, d, h, f, g, m, _, v, w, D, S, C;
|
|
5012
5012
|
for (d = 0; d < e; d += l) {
|
|
5013
5013
|
if (g = t[d].label, m = this._resolveTickFontOptions(d), s.font = _ = m.string, v = r[_] = r[_] || {
|
|
5014
5014
|
data: {},
|
|
@@ -5017,7 +5017,7 @@ class vi extends fe {
|
|
|
5017
5017
|
D = co(s, v.data, v.gc, D, g), S = w;
|
|
5018
5018
|
else if (Ct(g))
|
|
5019
5019
|
for (h = 0, f = g.length; h < f; ++h)
|
|
5020
|
-
|
|
5020
|
+
C = g[h], !at(C) && !Ct(C) && (D = co(s, v.data, v.gc, D, C), S += w);
|
|
5021
5021
|
o.push(D), a.push(S), c = Math.max(D, c), u = Math.max(S, u);
|
|
5022
5022
|
}
|
|
5023
5023
|
wb(r, e);
|
|
@@ -5082,45 +5082,45 @@ class vi extends fe {
|
|
|
5082
5082
|
const e = this.axis, i = this.chart, s = this.options, { grid: r, position: o, border: a } = s, l = r.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h = vs(r), f = [], g = a.setContext(this.getContext()), m = g.display ? g.width : 0, _ = m / 2, v = function(tt) {
|
|
5083
5083
|
return li(i, tt, m);
|
|
5084
5084
|
};
|
|
5085
|
-
let w, D, S,
|
|
5085
|
+
let w, D, S, C, E, P, y, b, T, R, k, N;
|
|
5086
5086
|
if (o === "top")
|
|
5087
5087
|
w = v(this.bottom), P = this.bottom - h, b = w - _, R = v(t.top) + _, N = t.bottom;
|
|
5088
5088
|
else if (o === "bottom")
|
|
5089
5089
|
w = v(this.top), R = t.top, N = v(t.bottom) - _, P = w + _, b = this.top + h;
|
|
5090
5090
|
else if (o === "left")
|
|
5091
|
-
w = v(this.right), E = this.right - h, y = w - _,
|
|
5091
|
+
w = v(this.right), E = this.right - h, y = w - _, T = v(t.left) + _, k = t.right;
|
|
5092
5092
|
else if (o === "right")
|
|
5093
|
-
w = v(this.left),
|
|
5093
|
+
w = v(this.left), T = t.left, k = v(t.right) - _, E = w + _, y = this.left + h;
|
|
5094
5094
|
else if (e === "x") {
|
|
5095
5095
|
if (o === "center")
|
|
5096
5096
|
w = v((t.top + t.bottom) / 2 + 0.5);
|
|
5097
5097
|
else if (bt(o)) {
|
|
5098
|
-
const tt = Object.keys(o)[0],
|
|
5099
|
-
w = v(this.chart.scales[tt].getPixelForValue(
|
|
5098
|
+
const tt = Object.keys(o)[0], $ = o[tt];
|
|
5099
|
+
w = v(this.chart.scales[tt].getPixelForValue($));
|
|
5100
5100
|
}
|
|
5101
5101
|
R = t.top, N = t.bottom, P = w + _, b = P + h;
|
|
5102
5102
|
} else if (e === "y") {
|
|
5103
5103
|
if (o === "center")
|
|
5104
5104
|
w = v((t.left + t.right) / 2);
|
|
5105
5105
|
else if (bt(o)) {
|
|
5106
|
-
const tt = Object.keys(o)[0],
|
|
5107
|
-
w = v(this.chart.scales[tt].getPixelForValue(
|
|
5106
|
+
const tt = Object.keys(o)[0], $ = o[tt];
|
|
5107
|
+
w = v(this.chart.scales[tt].getPixelForValue($));
|
|
5108
5108
|
}
|
|
5109
|
-
E = w - _, y = E - h,
|
|
5109
|
+
E = w - _, y = E - h, T = t.left, k = t.right;
|
|
5110
5110
|
}
|
|
5111
5111
|
const V = ot(s.ticks.maxTicksLimit, d), X = Math.max(1, Math.ceil(d / V));
|
|
5112
5112
|
for (D = 0; D < d; D += X) {
|
|
5113
|
-
const tt = this.getContext(D),
|
|
5114
|
-
S = vb(this, D, l), S !== void 0 && (
|
|
5113
|
+
const tt = this.getContext(D), $ = r.setContext(tt), dt = a.setContext(tt), U = $.lineWidth, Z = $.color, et = dt.dash || [], F = dt.dashOffset, z = $.tickWidth, gt = $.tickColor, _t = $.tickBorderDash || [], St = $.tickBorderDashOffset;
|
|
5114
|
+
S = vb(this, D, l), S !== void 0 && (C = li(i, S, U), c ? E = y = T = k = C : P = b = R = N = C, f.push({
|
|
5115
5115
|
tx1: E,
|
|
5116
5116
|
ty1: P,
|
|
5117
5117
|
tx2: y,
|
|
5118
5118
|
ty2: b,
|
|
5119
|
-
x1:
|
|
5119
|
+
x1: T,
|
|
5120
5120
|
y1: R,
|
|
5121
|
-
x2:
|
|
5121
|
+
x2: k,
|
|
5122
5122
|
y2: N,
|
|
5123
|
-
width:
|
|
5123
|
+
width: U,
|
|
5124
5124
|
color: Z,
|
|
5125
5125
|
borderDash: et,
|
|
5126
5126
|
borderDashOffset: F,
|
|
@@ -5134,17 +5134,17 @@ class vi extends fe {
|
|
|
5134
5134
|
}
|
|
5135
5135
|
_computeLabelItems(t) {
|
|
5136
5136
|
const e = this.axis, i = this.options, { position: s, ticks: r } = i, o = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = vs(i.grid), f = h + u, g = d ? -u : f, m = -ee(this.labelRotation), _ = [];
|
|
5137
|
-
let v, w, D, S,
|
|
5137
|
+
let v, w, D, S, C, E, P, y, b, T, R, k, N = "middle";
|
|
5138
5138
|
if (s === "top")
|
|
5139
5139
|
E = this.bottom - g, P = this._getXAxisLabelAlignment();
|
|
5140
5140
|
else if (s === "bottom")
|
|
5141
5141
|
E = this.top + g, P = this._getXAxisLabelAlignment();
|
|
5142
5142
|
else if (s === "left") {
|
|
5143
5143
|
const X = this._getYAxisLabelAlignment(h);
|
|
5144
|
-
P = X.textAlign,
|
|
5144
|
+
P = X.textAlign, C = X.x;
|
|
5145
5145
|
} else if (s === "right") {
|
|
5146
5146
|
const X = this._getYAxisLabelAlignment(h);
|
|
5147
|
-
P = X.textAlign,
|
|
5147
|
+
P = X.textAlign, C = X.x;
|
|
5148
5148
|
} else if (e === "x") {
|
|
5149
5149
|
if (s === "center")
|
|
5150
5150
|
E = (t.top + t.bottom) / 2 + f;
|
|
@@ -5155,10 +5155,10 @@ class vi extends fe {
|
|
|
5155
5155
|
P = this._getXAxisLabelAlignment();
|
|
5156
5156
|
} else if (e === "y") {
|
|
5157
5157
|
if (s === "center")
|
|
5158
|
-
|
|
5158
|
+
C = (t.left + t.right) / 2 - f;
|
|
5159
5159
|
else if (bt(s)) {
|
|
5160
5160
|
const X = Object.keys(s)[0], tt = s[X];
|
|
5161
|
-
|
|
5161
|
+
C = this.chart.scales[X].getPixelForValue(tt);
|
|
5162
5162
|
}
|
|
5163
5163
|
P = this._getYAxisLabelAlignment(h).textAlign;
|
|
5164
5164
|
}
|
|
@@ -5167,14 +5167,14 @@ class vi extends fe {
|
|
|
5167
5167
|
for (v = 0, w = a.length; v < w; ++v) {
|
|
5168
5168
|
D = a[v], S = D.label;
|
|
5169
5169
|
const X = r.setContext(this.getContext(v));
|
|
5170
|
-
y = this.getPixelForTick(v) + r.labelOffset, b = this._resolveTickFontOptions(v),
|
|
5171
|
-
const tt = R / 2,
|
|
5170
|
+
y = this.getPixelForTick(v) + r.labelOffset, b = this._resolveTickFontOptions(v), T = b.lineHeight, R = Ct(S) ? S.length : 1;
|
|
5171
|
+
const tt = R / 2, $ = X.color, dt = X.textStrokeColor, U = X.textStrokeWidth;
|
|
5172
5172
|
let Z = P;
|
|
5173
|
-
o ? (
|
|
5173
|
+
o ? (C = y, P === "inner" && (v === w - 1 ? Z = this.options.reverse ? "left" : "right" : v === 0 ? Z = this.options.reverse ? "right" : "left" : Z = "center"), s === "top" ? c === "near" || m !== 0 ? k = -R * T + T / 2 : c === "center" ? k = -V.highest.height / 2 - tt * T + T : k = -V.highest.height + T / 2 : c === "near" || m !== 0 ? k = T / 2 : c === "center" ? k = V.highest.height / 2 - tt * T : k = V.highest.height - R * T, d && (k *= -1), m !== 0 && !X.showLabelBackdrop && (C += T / 2 * Math.sin(m))) : (E = y, k = (1 - R) * T / 2);
|
|
5174
5174
|
let et;
|
|
5175
5175
|
if (X.showLabelBackdrop) {
|
|
5176
5176
|
const F = ie(X.backdropPadding), z = V.heights[v], gt = V.widths[v];
|
|
5177
|
-
let _t =
|
|
5177
|
+
let _t = k - F.top, St = 0 - F.left;
|
|
5178
5178
|
switch (N) {
|
|
5179
5179
|
case "middle":
|
|
5180
5180
|
_t -= z / 2;
|
|
@@ -5205,16 +5205,16 @@ class vi extends fe {
|
|
|
5205
5205
|
_.push({
|
|
5206
5206
|
label: S,
|
|
5207
5207
|
font: b,
|
|
5208
|
-
textOffset:
|
|
5208
|
+
textOffset: k,
|
|
5209
5209
|
options: {
|
|
5210
5210
|
rotation: m,
|
|
5211
|
-
color:
|
|
5211
|
+
color: $,
|
|
5212
5212
|
strokeColor: dt,
|
|
5213
|
-
strokeWidth:
|
|
5213
|
+
strokeWidth: U,
|
|
5214
5214
|
textAlign: Z,
|
|
5215
5215
|
textBaseline: N,
|
|
5216
5216
|
translation: [
|
|
5217
|
-
|
|
5217
|
+
C,
|
|
5218
5218
|
E
|
|
5219
5219
|
],
|
|
5220
5220
|
backdrop: et
|
|
@@ -6421,37 +6421,37 @@ function fo(n, t, e, i, s, r) {
|
|
|
6421
6421
|
let f = 0;
|
|
6422
6422
|
const g = s - l;
|
|
6423
6423
|
if (i) {
|
|
6424
|
-
const X = u > 0 ? u - i : 0, tt = d > 0 ? d - i : 0,
|
|
6424
|
+
const X = u > 0 ? u - i : 0, tt = d > 0 ? d - i : 0, $ = (X + tt) / 2, dt = $ !== 0 ? g * $ / ($ + i) : g;
|
|
6425
6425
|
f = (g - dt) / 2;
|
|
6426
6426
|
}
|
|
6427
|
-
const m = Math.max(1e-3, g * d - e / ft) / d, _ = (g - m) / 2, v = l + _ + f, w = s - _ - f, { outerStart: D, outerEnd: S, innerStart:
|
|
6427
|
+
const m = Math.max(1e-3, g * d - e / ft) / d, _ = (g - m) / 2, v = l + _ + f, w = s - _ - f, { outerStart: D, outerEnd: S, innerStart: C, innerEnd: E } = Jb(t, h, d, w - v), P = d - D, y = d - S, b = v + D / P, T = w - S / y, R = h + C, k = h + E, N = v + C / R, V = w - E / k;
|
|
6428
6428
|
if (n.beginPath(), r) {
|
|
6429
|
-
const X = (b +
|
|
6430
|
-
if (n.arc(o, a, d, b, X), n.arc(o, a, d, X,
|
|
6431
|
-
const
|
|
6432
|
-
n.arc(
|
|
6429
|
+
const X = (b + T) / 2;
|
|
6430
|
+
if (n.arc(o, a, d, b, X), n.arc(o, a, d, X, T), S > 0) {
|
|
6431
|
+
const U = Ni(y, T, o, a);
|
|
6432
|
+
n.arc(U.x, U.y, S, T, w + Nt);
|
|
6433
6433
|
}
|
|
6434
|
-
const tt = Ni(
|
|
6434
|
+
const tt = Ni(k, w, o, a);
|
|
6435
6435
|
if (n.lineTo(tt.x, tt.y), E > 0) {
|
|
6436
|
-
const
|
|
6437
|
-
n.arc(
|
|
6436
|
+
const U = Ni(k, V, o, a);
|
|
6437
|
+
n.arc(U.x, U.y, E, w + Nt, V + Math.PI);
|
|
6438
6438
|
}
|
|
6439
|
-
const
|
|
6440
|
-
if (n.arc(o, a, h, w - E / h,
|
|
6441
|
-
const
|
|
6442
|
-
n.arc(
|
|
6439
|
+
const $ = (w - E / h + (v + C / h)) / 2;
|
|
6440
|
+
if (n.arc(o, a, h, w - E / h, $, !0), n.arc(o, a, h, $, v + C / h, !0), C > 0) {
|
|
6441
|
+
const U = Ni(R, N, o, a);
|
|
6442
|
+
n.arc(U.x, U.y, C, N + Math.PI, v - Nt);
|
|
6443
6443
|
}
|
|
6444
6444
|
const dt = Ni(P, v, o, a);
|
|
6445
6445
|
if (n.lineTo(dt.x, dt.y), D > 0) {
|
|
6446
|
-
const
|
|
6447
|
-
n.arc(
|
|
6446
|
+
const U = Ni(P, b, o, a);
|
|
6447
|
+
n.arc(U.x, U.y, D, v - Nt, b);
|
|
6448
6448
|
}
|
|
6449
6449
|
} else {
|
|
6450
6450
|
n.moveTo(o, a);
|
|
6451
6451
|
const X = Math.cos(b) * d + o, tt = Math.sin(b) * d + a;
|
|
6452
6452
|
n.lineTo(X, tt);
|
|
6453
|
-
const
|
|
6454
|
-
n.lineTo(
|
|
6453
|
+
const $ = Math.cos(T) * d + o, dt = Math.sin(T) * d + a;
|
|
6454
|
+
n.lineTo($, dt);
|
|
6455
6455
|
}
|
|
6456
6456
|
n.closePath();
|
|
6457
6457
|
}
|
|
@@ -6589,8 +6589,8 @@ function r0(n, t, e, i) {
|
|
|
6589
6589
|
for (l && (f = s[w(0)], n.moveTo(f.x, f.y)), h = 0; h <= a; ++h) {
|
|
6590
6590
|
if (f = s[w(h)], f.skip)
|
|
6591
6591
|
continue;
|
|
6592
|
-
const S = f.x,
|
|
6593
|
-
E === g ? (
|
|
6592
|
+
const S = f.x, C = f.y, E = S | 0;
|
|
6593
|
+
E === g ? (C < m ? m = C : C > _ && (_ = C), u = (d * u + S) / ++d) : (D(), n.lineTo(S, C), g = E, d = 0, m = _ = C), v = C;
|
|
6594
6594
|
}
|
|
6595
6595
|
D();
|
|
6596
6596
|
}
|
|
@@ -6979,10 +6979,10 @@ function D0(n, t, e, i, s) {
|
|
|
6979
6979
|
let u = t, d, h, f, g, m;
|
|
6980
6980
|
for (o[l++] = n[u], d = 0; d < r - 2; d++) {
|
|
6981
6981
|
let _ = 0, v = 0, w;
|
|
6982
|
-
const D = Math.floor((d + 1) * a) + 1 + t, S = Math.min(Math.floor((d + 2) * a) + 1, e) + t,
|
|
6982
|
+
const D = Math.floor((d + 1) * a) + 1 + t, S = Math.min(Math.floor((d + 2) * a) + 1, e) + t, C = S - D;
|
|
6983
6983
|
for (w = D; w < S; w++)
|
|
6984
6984
|
_ += n[w].x, v += n[w].y;
|
|
6985
|
-
_ /=
|
|
6985
|
+
_ /= C, v /= C;
|
|
6986
6986
|
const E = Math.floor(d * a) + 1 + t, P = Math.min(Math.floor((d + 1) * a) + 1, e) + t, { x: y, y: b } = n[u];
|
|
6987
6987
|
for (f = g = -1, w = E; w < P; w++)
|
|
6988
6988
|
g = 0.5 * Math.abs((y - _) * (n[w].y - b) - (y - n[w].x) * (v - b)), g > f && (f = g, h = n[w], m = w);
|
|
@@ -6995,8 +6995,8 @@ function S0(n, t, e, i) {
|
|
|
6995
6995
|
const _ = [], v = t + e - 1, w = n[t].x, S = n[v].x - w;
|
|
6996
6996
|
for (o = t; o < t + e; ++o) {
|
|
6997
6997
|
a = n[o], l = (a.x - w) / S * i, c = a.y;
|
|
6998
|
-
const
|
|
6999
|
-
if (
|
|
6998
|
+
const C = l | 0;
|
|
6999
|
+
if (C === u)
|
|
7000
7000
|
c < g ? (g = c, d = o) : c > m && (m = c, h = o), s = (r * s + a.x) / ++r;
|
|
7001
7001
|
else {
|
|
7002
7002
|
const E = o - 1;
|
|
@@ -7010,7 +7010,7 @@ function S0(n, t, e, i) {
|
|
|
7010
7010
|
x: s
|
|
7011
7011
|
});
|
|
7012
7012
|
}
|
|
7013
|
-
o > 0 && E !== f && _.push(n[E]), _.push(a), u =
|
|
7013
|
+
o > 0 && E !== f && _.push(n[E]), _.push(a), u = C, r = 0, g = m = c, d = h = f = o;
|
|
7014
7014
|
}
|
|
7015
7015
|
}
|
|
7016
7016
|
return _;
|
|
@@ -7595,22 +7595,22 @@ class Lu extends fe {
|
|
|
7595
7595
|
s.save();
|
|
7596
7596
|
const b = ot(y.lineWidth, 1);
|
|
7597
7597
|
if (s.fillStyle = ot(y.fillStyle, a), s.lineCap = ot(y.lineCap, "butt"), s.lineDashOffset = ot(y.lineDashOffset, 0), s.lineJoin = ot(y.lineJoin, "miter"), s.lineWidth = b, s.strokeStyle = ot(y.strokeStyle, a), s.setLineDash(ot(y.lineDash, [])), o.usePointStyle) {
|
|
7598
|
-
const
|
|
7598
|
+
const T = {
|
|
7599
7599
|
radius: m * Math.SQRT2 / 2,
|
|
7600
7600
|
pointStyle: y.pointStyle,
|
|
7601
7601
|
rotation: y.rotation,
|
|
7602
7602
|
borderWidth: b
|
|
7603
|
-
}, R = l.xPlus(E, g / 2),
|
|
7604
|
-
Ih(s,
|
|
7603
|
+
}, R = l.xPlus(E, g / 2), k = P + h;
|
|
7604
|
+
Ih(s, T, R, k, o.pointStyleWidth && g);
|
|
7605
7605
|
} else {
|
|
7606
|
-
const
|
|
7607
|
-
s.beginPath(), Object.values(
|
|
7606
|
+
const T = P + Math.max((d - m) / 2, 0), R = l.leftForLtr(E, g), k = Vn(y.borderRadius);
|
|
7607
|
+
s.beginPath(), Object.values(k).some((N) => N !== 0) ? Gi(s, {
|
|
7608
7608
|
x: R,
|
|
7609
|
-
y:
|
|
7609
|
+
y: T,
|
|
7610
7610
|
w: g,
|
|
7611
7611
|
h: m,
|
|
7612
|
-
radius:
|
|
7613
|
-
}) : s.rect(R,
|
|
7612
|
+
radius: k
|
|
7613
|
+
}) : s.rect(R, T, g, m), s.fill(), b !== 0 && s.stroke();
|
|
7614
7614
|
}
|
|
7615
7615
|
s.restore();
|
|
7616
7616
|
}, w = function(E, P, y) {
|
|
@@ -7628,20 +7628,20 @@ class Lu extends fe {
|
|
|
7628
7628
|
y: xe(r, this.top + S + u, this.bottom - e[0].height),
|
|
7629
7629
|
line: 0
|
|
7630
7630
|
}, Bh(this.ctx, t.textDirection);
|
|
7631
|
-
const
|
|
7631
|
+
const C = _ + u;
|
|
7632
7632
|
this.legendItems.forEach((E, P) => {
|
|
7633
7633
|
s.strokeStyle = E.fontColor, s.fillStyle = E.fontColor;
|
|
7634
|
-
const y = s.measureText(E.text).width, b = l.textAlign(E.textAlign || (E.textAlign = o.textAlign)),
|
|
7635
|
-
let R = f.x,
|
|
7636
|
-
l.setWidth(this.width), D ? P > 0 && R +
|
|
7634
|
+
const y = s.measureText(E.text).width, b = l.textAlign(E.textAlign || (E.textAlign = o.textAlign)), T = g + h + y;
|
|
7635
|
+
let R = f.x, k = f.y;
|
|
7636
|
+
l.setWidth(this.width), D ? P > 0 && R + T + u > this.right && (k = f.y += C, f.line++, R = f.x = xe(r, this.left + u, this.right - i[f.line])) : P > 0 && k + C > this.bottom && (R = f.x = R + e[f.line].width + u, f.line++, k = f.y = xe(r, this.top + S + u, this.bottom - e[f.line].height));
|
|
7637
7637
|
const N = l.x(R);
|
|
7638
|
-
if (v(N,
|
|
7639
|
-
f.x +=
|
|
7638
|
+
if (v(N, k, E), R = mm(b, R + g + h, D ? R + T : this.right, t.rtl), w(l.x(R), k, E), D)
|
|
7639
|
+
f.x += T + u;
|
|
7640
7640
|
else if (typeof E.text != "string") {
|
|
7641
7641
|
const V = c.lineHeight;
|
|
7642
7642
|
f.y += pf(E, V) + u;
|
|
7643
7643
|
} else
|
|
7644
|
-
f.y +=
|
|
7644
|
+
f.y += C;
|
|
7645
7645
|
}), jh(this.ctx, t.textDirection);
|
|
7646
7646
|
}
|
|
7647
7647
|
drawTitle() {
|
|
@@ -7993,7 +7993,7 @@ function i_(n, t) {
|
|
|
7993
7993
|
}
|
|
7994
7994
|
function Nu(n, t) {
|
|
7995
7995
|
const e = n.chart.ctx, { body: i, footer: s, title: r } = n, { boxWidth: o, boxHeight: a } = t, l = Wt(t.bodyFont), c = Wt(t.titleFont), u = Wt(t.footerFont), d = r.length, h = s.length, f = i.length, g = ie(t.padding);
|
|
7996
|
-
let m = g.height, _ = 0, v = i.reduce((S,
|
|
7996
|
+
let m = g.height, _ = 0, v = i.reduce((S, C) => S + C.before.length + C.lines.length + C.after.length, 0);
|
|
7997
7997
|
if (v += n.beforeBody.length + n.afterBody.length, d && (m += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), v) {
|
|
7998
7998
|
const S = t.displayColors ? Math.max(a, l.lineHeight) : l.lineHeight;
|
|
7999
7999
|
m += f * S + (v - f) * l.lineHeight + (v - 1) * t.bodySpacing;
|
|
@@ -8209,14 +8209,14 @@ class ml extends fe {
|
|
|
8209
8209
|
}
|
|
8210
8210
|
getCaretPosition(t, e, i) {
|
|
8211
8211
|
const { xAlign: s, yAlign: r } = this, { caretSize: o, cornerRadius: a } = i, { topLeft: l, topRight: c, bottomLeft: u, bottomRight: d } = Vn(a), { x: h, y: f } = t, { width: g, height: m } = e;
|
|
8212
|
-
let _, v, w, D, S,
|
|
8213
|
-
return r === "center" ? (S = f + m / 2, s === "left" ? (_ = h, v = _ - o, D = S + o,
|
|
8212
|
+
let _, v, w, D, S, C;
|
|
8213
|
+
return r === "center" ? (S = f + m / 2, s === "left" ? (_ = h, v = _ - o, D = S + o, C = S - o) : (_ = h + g, v = _ + o, D = S - o, C = S + o), w = _) : (s === "left" ? v = h + Math.max(l, u) + o : s === "right" ? v = h + g - Math.max(c, d) - o : v = this.caretX, r === "top" ? (D = f, S = D - o, _ = v - o, w = v + o) : (D = f + m, S = D + o, _ = v + o, w = v - o), C = D), {
|
|
8214
8214
|
x1: _,
|
|
8215
8215
|
x2: v,
|
|
8216
8216
|
x3: w,
|
|
8217
8217
|
y1: D,
|
|
8218
8218
|
y2: S,
|
|
8219
|
-
y3:
|
|
8219
|
+
y3: C
|
|
8220
8220
|
};
|
|
8221
8221
|
}
|
|
8222
8222
|
drawTitle(t, e, i) {
|
|
@@ -8263,10 +8263,10 @@ class ml extends fe {
|
|
|
8263
8263
|
const g = Ui(i.rtl, this.x, this.width), m = function(y) {
|
|
8264
8264
|
e.fillText(y, g.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8265
8265
|
}, _ = g.textAlign(o);
|
|
8266
|
-
let v, w, D, S,
|
|
8266
|
+
let v, w, D, S, C, E, P;
|
|
8267
8267
|
for (e.textAlign = o, e.textBaseline = "middle", e.font = d.string, t.x = jr(this, _, i), e.fillStyle = i.bodyColor, Et(this.beforeBody, m), f = a && _ !== "right" ? o === "center" ? c / 2 + u : c + 2 + u : 0, S = 0, E = s.length; S < E; ++S) {
|
|
8268
|
-
for (v = s[S], w = this.labelTextColors[S], e.fillStyle = w, Et(v.before, m), D = v.lines, a && D.length && (this._drawColorBox(e, t, S, g, i), h = Math.max(d.lineHeight, l)),
|
|
8269
|
-
m(D[
|
|
8268
|
+
for (v = s[S], w = this.labelTextColors[S], e.fillStyle = w, Et(v.before, m), D = v.lines, a && D.length && (this._drawColorBox(e, t, S, g, i), h = Math.max(d.lineHeight, l)), C = 0, P = D.length; C < P; ++C)
|
|
8269
|
+
m(D[C]), h = d.lineHeight;
|
|
8270
8270
|
Et(v.after, m);
|
|
8271
8271
|
}
|
|
8272
8272
|
f = 0, h = d.lineHeight, Et(this.afterBody, m), t.y -= r;
|
|
@@ -8558,8 +8558,8 @@ O(yl, "id", "category"), O(yl, "defaults", {
|
|
|
8558
8558
|
});
|
|
8559
8559
|
function g_(n, t) {
|
|
8560
8560
|
const e = [], { bounds: s, step: r, min: o, max: a, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = n, f = r || 1, g = u - 1, { min: m, max: _ } = t, v = !at(o), w = !at(a), D = !at(c), S = (_ - m) / (d + 1);
|
|
8561
|
-
let
|
|
8562
|
-
if (
|
|
8561
|
+
let C = Nc((_ - m) / g / f) * f, E, P, y, b;
|
|
8562
|
+
if (C < 1e-14 && !v && !w)
|
|
8563
8563
|
return [
|
|
8564
8564
|
{
|
|
8565
8565
|
value: m
|
|
@@ -8568,18 +8568,18 @@ function g_(n, t) {
|
|
|
8568
8568
|
value: _
|
|
8569
8569
|
}
|
|
8570
8570
|
];
|
|
8571
|
-
b = Math.ceil(_ /
|
|
8572
|
-
const
|
|
8573
|
-
E = Math.pow(10, at(l) ?
|
|
8571
|
+
b = Math.ceil(_ / C) - Math.floor(m / C), b > g && (C = Nc(b * C / g / f) * f), at(l) || (E = Math.pow(10, l), C = Math.ceil(C * E) / E), s === "ticks" ? (P = Math.floor(m / C) * C, y = Math.ceil(_ / C) * C) : (P = m, y = _), v && w && r && cm((a - o) / r, C / 1e3) ? (b = Math.round(Math.min((a - o) / C, u)), C = (a - o) / b, P = o, y = a) : D ? (P = v ? o : P, y = w ? a : y, b = c - 1, C = (y - P) / b) : (b = (y - P) / C, Hs(b, Math.round(b), C / 1e3) ? b = Math.round(b) : b = Math.ceil(b));
|
|
8572
|
+
const T = Math.max(Fc(C), Fc(P));
|
|
8573
|
+
E = Math.pow(10, at(l) ? T : l), P = Math.round(P * E) / E, y = Math.round(y * E) / E;
|
|
8574
8574
|
let R = 0;
|
|
8575
8575
|
for (v && (h && P !== o ? (e.push({
|
|
8576
8576
|
value: o
|
|
8577
|
-
}), P < o && R++, Hs(Math.round((P + R *
|
|
8578
|
-
const
|
|
8579
|
-
if (w &&
|
|
8577
|
+
}), P < o && R++, Hs(Math.round((P + R * C) * E) / E, o, Bu(o, S, n)) && R++) : P < o && R++); R < b; ++R) {
|
|
8578
|
+
const k = Math.round((P + R * C) * E) / E;
|
|
8579
|
+
if (w && k > a)
|
|
8580
8580
|
break;
|
|
8581
8581
|
e.push({
|
|
8582
|
-
value:
|
|
8582
|
+
value: k
|
|
8583
8583
|
});
|
|
8584
8584
|
}
|
|
8585
8585
|
return w && h && y !== a ? e.length && Hs(e[e.length - 1].value, a, Bu(a, S, n)) ? e[e.length - 1].value = a : e.push({
|
|
@@ -12281,8 +12281,8 @@ const Bv = {
|
|
|
12281
12281
|
T: new Yv()
|
|
12282
12282
|
}, jv = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Uv = /^'([^]*?)'?$/, Vv = /''/g, Xv = /\S/, qv = /[a-zA-Z]/;
|
|
12283
12283
|
function Gv(n, t, e, i) {
|
|
12284
|
-
var _, v, w, D, S,
|
|
12285
|
-
const s = () => Xt((i == null ? void 0 : i.in) || e, NaN), r = Rf(), o = (i == null ? void 0 : i.locale) ?? r.locale ?? kf, a = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((v = (_ = i == null ? void 0 : i.locale) == null ? void 0 : _.options) == null ? void 0 : v.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((D = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((
|
|
12284
|
+
var _, v, w, D, S, C, E, P;
|
|
12285
|
+
const s = () => Xt((i == null ? void 0 : i.in) || e, NaN), r = Rf(), o = (i == null ? void 0 : i.locale) ?? r.locale ?? kf, a = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((v = (_ = i == null ? void 0 : i.locale) == null ? void 0 : _.options) == null ? void 0 : v.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((D = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((C = (S = i == null ? void 0 : i.locale) == null ? void 0 : S.options) == null ? void 0 : C.weekStartsOn) ?? r.weekStartsOn ?? ((P = (E = r.locale) == null ? void 0 : E.options) == null ? void 0 : P.weekStartsOn) ?? 0;
|
|
12286
12286
|
if (!t)
|
|
12287
12287
|
return n ? s() : ut(e, i == null ? void 0 : i.in);
|
|
12288
12288
|
const c = {
|
|
@@ -12292,16 +12292,16 @@ function Gv(n, t, e, i) {
|
|
|
12292
12292
|
}, u = [new rv(i == null ? void 0 : i.in, e)], d = t.match($v).map((y) => {
|
|
12293
12293
|
const b = y[0];
|
|
12294
12294
|
if (b in Ml) {
|
|
12295
|
-
const
|
|
12296
|
-
return
|
|
12295
|
+
const T = Ml[b];
|
|
12296
|
+
return T(y, o.formatLong);
|
|
12297
12297
|
}
|
|
12298
12298
|
return y;
|
|
12299
12299
|
}).join("").match(jv), h = [];
|
|
12300
12300
|
for (let y of d) {
|
|
12301
12301
|
!(i != null && i.useAdditionalWeekYearTokens) && Af(y) && Dl(y, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && Of(y) && Dl(y, t, n);
|
|
12302
|
-
const b = y[0],
|
|
12303
|
-
if (
|
|
12304
|
-
const { incompatibleTokens: R } =
|
|
12302
|
+
const b = y[0], T = Bv[b];
|
|
12303
|
+
if (T) {
|
|
12304
|
+
const { incompatibleTokens: R } = T;
|
|
12305
12305
|
if (Array.isArray(R)) {
|
|
12306
12306
|
const N = h.find(
|
|
12307
12307
|
(V) => R.includes(V.token) || V.token === b
|
|
@@ -12310,20 +12310,20 @@ function Gv(n, t, e, i) {
|
|
|
12310
12310
|
throw new RangeError(
|
|
12311
12311
|
`The format string mustn't contain \`${N.fullToken}\` and \`${y}\` at the same time`
|
|
12312
12312
|
);
|
|
12313
|
-
} else if (
|
|
12313
|
+
} else if (T.incompatibleTokens === "*" && h.length > 0)
|
|
12314
12314
|
throw new RangeError(
|
|
12315
12315
|
`The format string mustn't contain \`${y}\` and any other token at the same time`
|
|
12316
12316
|
);
|
|
12317
12317
|
h.push({ token: b, fullToken: y });
|
|
12318
|
-
const
|
|
12318
|
+
const k = T.run(
|
|
12319
12319
|
n,
|
|
12320
12320
|
y,
|
|
12321
12321
|
o.match,
|
|
12322
12322
|
c
|
|
12323
12323
|
);
|
|
12324
|
-
if (!
|
|
12324
|
+
if (!k)
|
|
12325
12325
|
return s();
|
|
12326
|
-
u.push(
|
|
12326
|
+
u.push(k.setter), n = k.rest;
|
|
12327
12327
|
} else {
|
|
12328
12328
|
if (b.match(qv))
|
|
12329
12329
|
throw new RangeError(
|
|
@@ -12337,8 +12337,8 @@ function Gv(n, t, e, i) {
|
|
|
12337
12337
|
}
|
|
12338
12338
|
if (n.length > 0 && Xv.test(n))
|
|
12339
12339
|
return s();
|
|
12340
|
-
const f = u.map((y) => y.priority).sort((y, b) => b - y).filter((y, b,
|
|
12341
|
-
(y) => u.filter((b) => b.priority === y).sort((b,
|
|
12340
|
+
const f = u.map((y) => y.priority).sort((y, b) => b - y).filter((y, b, T) => T.indexOf(y) === b).map(
|
|
12341
|
+
(y) => u.filter((b) => b.priority === y).sort((b, T) => T.subPriority - b.subPriority)
|
|
12342
12342
|
).map((y) => y[0]);
|
|
12343
12343
|
let g = ut(e, i == null ? void 0 : i.in);
|
|
12344
12344
|
if (isNaN(+g)) return s();
|
|
@@ -15287,8 +15287,8 @@ function el(n) {
|
|
|
15287
15287
|
var Vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Mo = { exports: {} };
|
|
15288
15288
|
Mo.exports;
|
|
15289
15289
|
(function(n, t) {
|
|
15290
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", g = "[object Object]", m = "[object Promise]", _ = "[object RegExp]", v = "[object Set]", w = "[object String]", D = "[object Symbol]", S = "[object WeakMap]",
|
|
15291
|
-
Z[r] = Z[o] = Z[
|
|
15290
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", g = "[object Object]", m = "[object Promise]", _ = "[object RegExp]", v = "[object Set]", w = "[object String]", D = "[object Symbol]", S = "[object WeakMap]", C = "[object ArrayBuffer]", E = "[object DataView]", P = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", T = "[object Int16Array]", R = "[object Int32Array]", k = "[object Uint8Array]", N = "[object Uint8ClampedArray]", V = "[object Uint16Array]", X = "[object Uint32Array]", tt = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, dt = /^\[object .+?Constructor\]$/, U = /^(?:0|[1-9]\d*)$/, Z = {};
|
|
15291
|
+
Z[r] = Z[o] = Z[C] = Z[E] = Z[a] = Z[l] = Z[P] = Z[y] = Z[b] = Z[T] = Z[R] = Z[h] = Z[f] = Z[g] = Z[_] = Z[v] = Z[w] = Z[D] = Z[k] = Z[N] = Z[V] = Z[X] = !0, Z[c] = Z[u] = Z[S] = !1;
|
|
15292
15292
|
var et = typeof Vr == "object" && Vr && Vr.Object === Object && Vr, F = typeof self == "object" && self && self.Object === Object && self, z = et || F || Function("return this")(), gt = t && !t.nodeType && t, _t = gt && !0 && n && !n.nodeType && n, St = _t && _t.exports === gt;
|
|
15293
15293
|
function pt(x, A) {
|
|
15294
15294
|
return x.set(A[0], A[1]), x;
|
|
@@ -15560,7 +15560,7 @@ Mo.exports;
|
|
|
15560
15560
|
return B(q, pt, new x.constructor());
|
|
15561
15561
|
}
|
|
15562
15562
|
function fs(x) {
|
|
15563
|
-
var A = new x.constructor(x.source,
|
|
15563
|
+
var A = new x.constructor(x.source, $.exec(x));
|
|
15564
15564
|
return A.lastIndex = x.lastIndex, A;
|
|
15565
15565
|
}
|
|
15566
15566
|
function ha(x, A, L) {
|
|
@@ -15630,7 +15630,7 @@ Mo.exports;
|
|
|
15630
15630
|
function _a(x, A, L, q) {
|
|
15631
15631
|
var Gt = x.constructor;
|
|
15632
15632
|
switch (A) {
|
|
15633
|
-
case
|
|
15633
|
+
case C:
|
|
15634
15634
|
return Oi(x);
|
|
15635
15635
|
case a:
|
|
15636
15636
|
case l:
|
|
@@ -15640,9 +15640,9 @@ Mo.exports;
|
|
|
15640
15640
|
case P:
|
|
15641
15641
|
case y:
|
|
15642
15642
|
case b:
|
|
15643
|
-
case
|
|
15643
|
+
case T:
|
|
15644
15644
|
case R:
|
|
15645
|
-
case
|
|
15645
|
+
case k:
|
|
15646
15646
|
case N:
|
|
15647
15647
|
case V:
|
|
15648
15648
|
case X:
|
|
@@ -15661,7 +15661,7 @@ Mo.exports;
|
|
|
15661
15661
|
}
|
|
15662
15662
|
}
|
|
15663
15663
|
function xa(x, A) {
|
|
15664
|
-
return A = A ?? s, !!A && (typeof x == "number" ||
|
|
15664
|
+
return A = A ?? s, !!A && (typeof x == "number" || U.test(x)) && x > -1 && x % 1 == 0 && x < A;
|
|
15665
15665
|
}
|
|
15666
15666
|
function Ei(x) {
|
|
15667
15667
|
var A = typeof x;
|
|
@@ -16177,19 +16177,19 @@ function SD(n, t) {
|
|
|
16177
16177
|
const s = t.value.data, { display: r, metric_names: o } = t.value.meta, a = r && Object.keys(r), l = o && o.length > 1, c = r && a && a.length > 0, u = c && a.length > 1;
|
|
16178
16178
|
if (!s.length || !o)
|
|
16179
16179
|
return { datasets: [], labels: [] };
|
|
16180
|
-
const d = c && a || o, h = d[0], f = d.length > 1 ? d[1] : d[0], g = Object.fromEntries(l ? s.flatMap((b) => o.map((
|
|
16181
|
-
const
|
|
16180
|
+
const d = c && a || o, h = d[0], f = d.length > 1 ? d[1] : d[0], g = Object.fromEntries(l ? s.flatMap((b) => o.map((T, R) => {
|
|
16181
|
+
const k = b.event[h], N = c ? `${k},${T}` : `${R},${T}`, V = b.event[T];
|
|
16182
16182
|
return [N, V];
|
|
16183
16183
|
})) : s.map((b) => {
|
|
16184
|
-
const
|
|
16185
|
-
return [
|
|
16186
|
-
})), m = Object.keys(g).reduce((b,
|
|
16187
|
-
const [R] =
|
|
16188
|
-
return b[R] ? b[R] +=
|
|
16189
|
-
}, {}), _ = Object.entries(m).sort(([, b], [,
|
|
16190
|
-
if (h !== "status_code" && h !== "status_code_grouped" && (D.sort((b,
|
|
16184
|
+
const T = c ? `${b.event[h]},${b.event[f]}` : `${h},${f}`, R = b.event[o[0]];
|
|
16185
|
+
return [T, R];
|
|
16186
|
+
})), m = Object.keys(g).reduce((b, T) => {
|
|
16187
|
+
const [R] = T.split(","), k = g[T];
|
|
16188
|
+
return b[R] ? b[R] += k : b[R] = k, b;
|
|
16189
|
+
}, {}), _ = Object.entries(m).sort(([, b], [, T]) => Number(T) - Number(b)).map(([b]) => b), v = r[h], w = r[f], D = c && v && Object.entries(v).map(([b, T]) => ({ id: b, name: T.name })) || o.map((b) => ({ id: b, name: b })), S = c && w && Object.entries(w).map(([b, T]) => ({ id: b, name: T.name })) || o.map((b) => ({ id: b, name: b }));
|
|
16190
|
+
if (h !== "status_code" && h !== "status_code_grouped" && (D.sort((b, T) => _.indexOf(b.id) - _.indexOf(T.id)), S.sort((b, T) => _.indexOf(b.id) - _.indexOf(T.id))), !D || !S)
|
|
16191
16191
|
return { labels: [], datasets: [] };
|
|
16192
|
-
const
|
|
16192
|
+
const C = DD({
|
|
16193
16193
|
isMultiMetric: l,
|
|
16194
16194
|
hasDimensions: c,
|
|
16195
16195
|
metricNames: o,
|
|
@@ -16201,7 +16201,7 @@ function SD(n, t) {
|
|
|
16201
16201
|
}), E = c ? D.map((b) => e && e.te(`chartLabels.${b.name}`) && e.t(`chartLabels.${b.name}`) || b.name) : o.map((b) => e && e.te(`chartLabels.${b}`) && e.t(`chartLabels.${b}`) || b), P = D.map((b) => b.id === "empty");
|
|
16202
16202
|
return {
|
|
16203
16203
|
labels: E,
|
|
16204
|
-
datasets:
|
|
16204
|
+
datasets: C,
|
|
16205
16205
|
isLabelEmpty: P,
|
|
16206
16206
|
isMultiDimension: u
|
|
16207
16207
|
};
|
|
@@ -16246,8 +16246,8 @@ function ID(n, t) {
|
|
|
16246
16246
|
return console.error("Invalid step value:", f), { datasets: [], labels: [] };
|
|
16247
16247
|
if (!s.length)
|
|
16248
16248
|
return { datasets: [], labels: [] };
|
|
16249
|
-
const g = ED(a), m = RD(a, l, f, g, s), _ = /* @__PURE__ */ new Set(), v = s != null && s.length ? s.reduce((S,
|
|
16250
|
-
const E = new Date(
|
|
16249
|
+
const g = ED(a), m = RD(a, l, f, g, s), _ = /* @__PURE__ */ new Set(), v = s != null && s.length ? s.reduce((S, C) => {
|
|
16250
|
+
const E = new Date(C.timestamp).valueOf(), P = C.event;
|
|
16251
16251
|
for (const y of o)
|
|
16252
16252
|
_.add(y), E in S || (S[E] = {}), y in S[E] || (S[E][y] = {});
|
|
16253
16253
|
for (const y of o)
|
|
@@ -16255,30 +16255,30 @@ function ID(n, t) {
|
|
|
16255
16255
|
P[u] === b.id || y === b.id ? (S[E][y] || (S[E][y] = {}), S[E][y][b.name] = Math.round(Number(P[y]) * 1e3) / 1e3) : c.length || (S[E][y] || (S[E][y] = {}), S[E][y][b.name] = Math.round(Number(P[b.id]) * 1e3) / 1e3);
|
|
16256
16256
|
});
|
|
16257
16257
|
return S;
|
|
16258
|
-
}, {}) : {}, D = [...o.length === 1 ? o.flatMap((S) => h.map((
|
|
16259
|
-
const y = m.map((
|
|
16260
|
-
let { colorPalette: b, fill:
|
|
16258
|
+
}, {}) : {}, D = [...o.length === 1 ? o.flatMap((S) => h.map((C) => [S, C.name, C.id === "empty"])) : h.map((S) => [S.name, S.name, S.id === "empty"])].map(([S, C, E], P) => {
|
|
16259
|
+
const y = m.map((k) => k in v && S in v[k] ? { x: k, y: v[k][S][C] || 0 } : { x: k, y: 0 });
|
|
16260
|
+
let { colorPalette: b, fill: T } = n;
|
|
16261
16261
|
at(b) && (b = Kn);
|
|
16262
|
-
const R = jf(P,
|
|
16262
|
+
const R = jf(P, C, E, b);
|
|
16263
16263
|
return {
|
|
16264
|
-
rawDimension:
|
|
16264
|
+
rawDimension: C,
|
|
16265
16265
|
rawMetric: S,
|
|
16266
16266
|
// @ts-ignore - dynamic i18n key
|
|
16267
|
-
label: e && e.te(`chartLabels.${
|
|
16267
|
+
label: e && e.te(`chartLabels.${C}`) && e.t(`chartLabels.${C}`) || C,
|
|
16268
16268
|
borderColor: R,
|
|
16269
16269
|
backgroundColor: R,
|
|
16270
16270
|
data: y,
|
|
16271
|
-
total: y.reduce((
|
|
16271
|
+
total: y.reduce((k, { y: N }) => k + Number(N), 0),
|
|
16272
16272
|
...Pw,
|
|
16273
|
-
fill:
|
|
16274
|
-
borderWidth:
|
|
16273
|
+
fill: T,
|
|
16274
|
+
borderWidth: T ? Aw : Ow,
|
|
16275
16275
|
isSegmentEmpty: E
|
|
16276
16276
|
};
|
|
16277
16277
|
});
|
|
16278
|
-
if (u === "status_code" || u === "status_code_grouped" ? D.sort((S,
|
|
16278
|
+
if (u === "status_code" || u === "status_code_grouped" ? D.sort((S, C) => (S.label ?? "") < (C.label ?? "") ? -1 : 1) : D.sort((S, C) => Number(S.total) < Number(C.total) ? -1 : 1), n.threshold)
|
|
16279
16279
|
for (const S of Object.keys(n.threshold)) {
|
|
16280
|
-
const
|
|
16281
|
-
|
|
16280
|
+
const C = n.threshold[S];
|
|
16281
|
+
C && D.push({
|
|
16282
16282
|
type: "line",
|
|
16283
16283
|
rawMetric: S,
|
|
16284
16284
|
isThreshold: !0,
|
|
@@ -16291,7 +16291,7 @@ function ID(n, t) {
|
|
|
16291
16291
|
// Display above all other datasets
|
|
16292
16292
|
stack: "custom",
|
|
16293
16293
|
// Never stack this dataset
|
|
16294
|
-
data: m.map((E) => ({ x: E, y:
|
|
16294
|
+
data: m.map((E) => ({ x: E, y: C }))
|
|
16295
16295
|
});
|
|
16296
16296
|
}
|
|
16297
16297
|
return {
|
|
@@ -16482,18 +16482,18 @@ function XD(n, t = {}) {
|
|
|
16482
16482
|
var y;
|
|
16483
16483
|
if (!Kt(m).includes(P.button) || Kt(t.disabled) || !w(P) || Kt(o) && P.target !== Kt(n))
|
|
16484
16484
|
return;
|
|
16485
|
-
const b = Kt(f),
|
|
16486
|
-
x: P.clientX - (b ? R.left -
|
|
16487
|
-
y: P.clientY - (b ? R.top -
|
|
16485
|
+
const b = Kt(f), T = (y = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : y.call(b), R = Kt(n).getBoundingClientRect(), k = {
|
|
16486
|
+
x: P.clientX - (b ? R.left - T.left + b.scrollLeft : R.left),
|
|
16487
|
+
y: P.clientY - (b ? R.top - T.top + b.scrollTop : R.top)
|
|
16488
16488
|
};
|
|
16489
|
-
(c == null ? void 0 : c(
|
|
16490
|
-
},
|
|
16489
|
+
(c == null ? void 0 : c(k, P)) !== !1 && (v.value = k, D(P));
|
|
16490
|
+
}, C = (P) => {
|
|
16491
16491
|
if (Kt(t.disabled) || !w(P) || !v.value)
|
|
16492
16492
|
return;
|
|
16493
16493
|
const y = Kt(f), b = Kt(n).getBoundingClientRect();
|
|
16494
|
-
let { x:
|
|
16495
|
-
(d === "x" || d === "both") && (
|
|
16496
|
-
x:
|
|
16494
|
+
let { x: T, y: R } = _.value;
|
|
16495
|
+
(d === "x" || d === "both") && (T = P.clientX - v.value.x, y && (T = Math.min(Math.max(0, T), y.scrollWidth - b.width))), (d === "y" || d === "both") && (R = P.clientY - v.value.y, y && (R = Math.min(Math.max(0, R), y.scrollHeight - b.height))), _.value = {
|
|
16496
|
+
x: T,
|
|
16497
16497
|
y: R
|
|
16498
16498
|
}, a == null || a(_.value, P), D(P);
|
|
16499
16499
|
}, E = (P) => {
|
|
@@ -16507,7 +16507,7 @@ function XD(n, t = {}) {
|
|
|
16507
16507
|
passive: !Kt(s)
|
|
16508
16508
|
};
|
|
16509
16509
|
};
|
|
16510
|
-
Vs(g, "pointerdown", S, P), Vs(h, "pointermove",
|
|
16510
|
+
Vs(g, "pointerdown", S, P), Vs(h, "pointermove", C, P), Vs(h, "pointerup", E, P);
|
|
16511
16511
|
}
|
|
16512
16512
|
return {
|
|
16513
16513
|
...BD(_),
|
|
@@ -16963,13 +16963,13 @@ function vS(n, t) {
|
|
|
16963
16963
|
function wS(n, t) {
|
|
16964
16964
|
const { x: e, y: i, x2: s, y2: r, width: o, height: a, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = n, f = { x: u, y: d }, g = t.start, m = Zn(o, g), _ = Zn(a, g), v = [e, e + m, e + m, s], w = [i + _, r, i, r], D = [];
|
|
16965
16965
|
for (let S = 0; S < 4; S++) {
|
|
16966
|
-
const
|
|
16966
|
+
const C = Di({ x: v[S], y: w[S] }, f, ee(h));
|
|
16967
16967
|
D.push({
|
|
16968
16968
|
position: Cg[S],
|
|
16969
|
-
distance: qi(
|
|
16969
|
+
distance: qi(C, { x: l, y: c })
|
|
16970
16970
|
});
|
|
16971
16971
|
}
|
|
16972
|
-
return D.sort((S,
|
|
16972
|
+
return D.sort((S, C) => S.distance - C.distance)[0].position;
|
|
16973
16973
|
}
|
|
16974
16974
|
function MS(n, t, e) {
|
|
16975
16975
|
const { pointX: i, pointY: s } = n, r = t.margin;
|
|
@@ -18396,14 +18396,14 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18396
18396
|
])) : de("", !0)
|
|
18397
18397
|
]),
|
|
18398
18398
|
ct("ul", Wk, [
|
|
18399
|
-
(K(!0), vt(Xs, null, ko(f.state.tooltipSeries, ({ backgroundColor: v, borderColor: w, label: D, value: S, isSegmentEmpty:
|
|
18399
|
+
(K(!0), vt(Xs, null, ko(f.state.tooltipSeries, ({ backgroundColor: v, borderColor: w, label: D, value: S, isSegmentEmpty: C }) => (K(), vt(Xs, { key: D }, [
|
|
18400
18400
|
f.state.tooltipSeries.length ? (K(), vt("li", Yk, [
|
|
18401
18401
|
ct("div", {
|
|
18402
18402
|
class: "square-marker",
|
|
18403
18403
|
style: yi({ background: v, "border-color": w })
|
|
18404
18404
|
}, null, 4),
|
|
18405
18405
|
ct("span", {
|
|
18406
|
-
class: Cn(["display-label", { empty:
|
|
18406
|
+
class: Cn(["display-label", { empty: C }])
|
|
18407
18407
|
}, yt(D), 3),
|
|
18408
18408
|
ct("span", Bk, yt(S), 1)
|
|
18409
18409
|
])) : de("", !0)
|
|
@@ -18441,9 +18441,9 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18441
18441
|
const S = i.value;
|
|
18442
18442
|
if (!S || !s.value || S.children.length === 0)
|
|
18443
18443
|
return 0;
|
|
18444
|
-
const
|
|
18444
|
+
const C = S.children[0].getBoundingClientRect().top;
|
|
18445
18445
|
for (const E of s.value)
|
|
18446
|
-
if (E.getBoundingClientRect().top >
|
|
18446
|
+
if (E.getBoundingClientRect().top > C)
|
|
18447
18447
|
return !0;
|
|
18448
18448
|
return !1;
|
|
18449
18449
|
}, u = H(() => t.items.length > 2 || o.value === Vt.Right), d = () => {
|
|
@@ -18455,8 +18455,8 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18455
18455
|
const P = Array.from(E.children).reduce((y, b) => y + b.offsetWidth, 0);
|
|
18456
18456
|
P > S && (S = P);
|
|
18457
18457
|
});
|
|
18458
|
-
const
|
|
18459
|
-
i.value.style.gridTemplateColumns = `repeat(auto-fit, ${S +
|
|
18458
|
+
const C = parseInt(PD, 10);
|
|
18459
|
+
i.value.style.gridTemplateColumns = `repeat(auto-fit, ${S + C}px)`;
|
|
18460
18460
|
}
|
|
18461
18461
|
d();
|
|
18462
18462
|
}, f = () => {
|
|
@@ -18471,7 +18471,7 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18471
18471
|
f() && h();
|
|
18472
18472
|
}, { immediate: !0, flush: "post" });
|
|
18473
18473
|
const g = It(0), m = It(0), _ = new ResizeObserver(dc((S) => {
|
|
18474
|
-
const
|
|
18474
|
+
const C = S[0], E = C.contentRect.width, P = C.contentRect.height;
|
|
18475
18475
|
E !== g.value && P === m.value && h(), g.value = E, m.value = P;
|
|
18476
18476
|
}, 100));
|
|
18477
18477
|
ne(() => o.value, () => {
|
|
@@ -18483,22 +18483,22 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18483
18483
|
}), zl(() => {
|
|
18484
18484
|
i.value && _.unobserve(i.value);
|
|
18485
18485
|
});
|
|
18486
|
-
const v = (S = 0,
|
|
18486
|
+
const v = (S = 0, C) => {
|
|
18487
18487
|
if (t.chartInstance === null)
|
|
18488
18488
|
return;
|
|
18489
18489
|
const E = t.chartInstance instanceof Ve ? t.chartInstance : t.chartInstance.chart;
|
|
18490
|
-
w(S,
|
|
18491
|
-
}, w = (S = 0,
|
|
18490
|
+
w(S, C) ? E.hide(S, C) : E.show(S, C), E.update();
|
|
18491
|
+
}, w = (S = 0, C) => {
|
|
18492
18492
|
if (t.chartInstance === null || t.chartInstance.chart === null)
|
|
18493
18493
|
return !0;
|
|
18494
18494
|
const E = t.chartInstance instanceof Ve ? t.chartInstance : t.chartInstance.chart, P = E.getDatasetMeta(S);
|
|
18495
|
-
return P.dataset ||
|
|
18495
|
+
return P.dataset || C === void 0 ? E.isDatasetVisible(S) : !(P.data.length && P.data[C].hidden);
|
|
18496
18496
|
}, D = (S) => ({
|
|
18497
18497
|
[Vt.Right]: "vertical",
|
|
18498
18498
|
[Vt.Bottom]: "horizontal",
|
|
18499
18499
|
[Vt.Hidden]: "hidden"
|
|
18500
18500
|
})[S];
|
|
18501
|
-
return (S,
|
|
18501
|
+
return (S, C) => {
|
|
18502
18502
|
const E = Ue("KTooltip");
|
|
18503
18503
|
return G(o) !== G(Vt).Hidden ? (K(), vt("ul", {
|
|
18504
18504
|
key: 0,
|
|
@@ -18507,12 +18507,12 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18507
18507
|
class: Cn(["legend-container", D(G(o))]),
|
|
18508
18508
|
"data-testid": "legend"
|
|
18509
18509
|
}, [
|
|
18510
|
-
(K(!0), vt(Xs, null, ko(n.items, ({ fillStyle: P, strokeStyle: y, text: b, datasetIndex:
|
|
18510
|
+
(K(!0), vt(Xs, null, ko(n.items, ({ fillStyle: P, strokeStyle: y, text: b, datasetIndex: T, index: R, value: k, isSegmentEmpty: N }) => (K(), vt("li", {
|
|
18511
18511
|
key: b,
|
|
18512
18512
|
ref_for: !0,
|
|
18513
18513
|
ref_key: "legendItemsRef",
|
|
18514
18514
|
ref: s,
|
|
18515
|
-
onClick: (V) => v(
|
|
18515
|
+
onClick: (V) => v(T, R)
|
|
18516
18516
|
}, [
|
|
18517
18517
|
ct("div", {
|
|
18518
18518
|
class: "square-marker",
|
|
@@ -18521,12 +18521,12 @@ const Mk = { class: "zoom-timerange-container" }, Dk = { class: "zoom-timerange-
|
|
|
18521
18521
|
le(E, null, bh({
|
|
18522
18522
|
default: Ut(() => [
|
|
18523
18523
|
ct("div", {
|
|
18524
|
-
class: Cn(["label-container", { "strike-through": !w(
|
|
18524
|
+
class: Cn(["label-container", { "strike-through": !w(T, R) }])
|
|
18525
18525
|
}, [
|
|
18526
18526
|
ct("div", {
|
|
18527
18527
|
class: Cn(["label", { "truncate-label": u.value, empty: N }])
|
|
18528
18528
|
}, yt(b), 3),
|
|
18529
|
-
|
|
18529
|
+
k && G(r) ? (K(), vt("div", Uk, yt(k.formatted), 1)) : de("", !0)
|
|
18530
18530
|
], 2)
|
|
18531
18531
|
]),
|
|
18532
18532
|
_: 2
|
|
@@ -18669,7 +18669,7 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18669
18669
|
text: "",
|
|
18670
18670
|
offset: -50
|
|
18671
18671
|
// Avoids App Shell obstruction
|
|
18672
|
-
}), D = zt(t, "metricUnit"), S = H(() => t.orientation === "horizontal"),
|
|
18672
|
+
}), D = zt(t, "metricUnit"), S = H(() => t.orientation === "horizontal"), C = io({
|
|
18673
18673
|
showTooltip: !1,
|
|
18674
18674
|
tooltipContext: "",
|
|
18675
18675
|
// set in tooltipBehaviour
|
|
@@ -18690,14 +18690,14 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18690
18690
|
chartTooltipSortFn: t.chartTooltipSortFn
|
|
18691
18691
|
}), { tooltipAbsoluteLeft: E, tooltipAbsoluteTop: P } = Mt.useTooltipAbsolutePosition(
|
|
18692
18692
|
l,
|
|
18693
|
-
|
|
18693
|
+
C
|
|
18694
18694
|
), y = It(0), b = () => {
|
|
18695
18695
|
var W;
|
|
18696
18696
|
return t.annotations && ((W = t.chartData.labels) == null ? void 0 : W.reduce(
|
|
18697
18697
|
(j, B) => Object.assign(j, u(t.chartData, B, D.value, t.orientation)),
|
|
18698
18698
|
{}
|
|
18699
18699
|
));
|
|
18700
|
-
},
|
|
18700
|
+
}, T = {
|
|
18701
18701
|
id: f,
|
|
18702
18702
|
afterUpdate(W) {
|
|
18703
18703
|
y.value += 1, _.value = Yf(W, t.legendValues, t.chartLegendSortFn);
|
|
@@ -18708,7 +18708,7 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18708
18708
|
W.options.plugins.annotation.annotations = t.annotations ? b() : {};
|
|
18709
18709
|
}
|
|
18710
18710
|
}, V = [
|
|
18711
|
-
|
|
18711
|
+
T,
|
|
18712
18712
|
{
|
|
18713
18713
|
id: "axisHover",
|
|
18714
18714
|
// args any because it is not typed by chartjs
|
|
@@ -18718,7 +18718,7 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18718
18718
|
if (w.show = !1, j.event.type === "mousemove") {
|
|
18719
18719
|
const J = j.event, nt = W.options.indexAxis, it = W.scales, rt = W.scales[nt].getLabelForValue(Number(W.scales[nt].getValueForPixel(J[nt]))), Dt = W.scales[nt].getLabels().indexOf(rt), lt = (B = t.chartData.isLabelEmpty) == null ? void 0 : B[Dt];
|
|
18720
18720
|
if (((ce) => ce === "x" ? J.y > it.x.top : J.x < it.y.right)(nt)) {
|
|
18721
|
-
|
|
18721
|
+
C.interactionMode !== "interactive" && (C.showTooltip = !1);
|
|
18722
18722
|
const ye = W.canvas.getContext("2d").measureText(rt).width, Jt = Math.abs(Math.round(J.x - ye * 0.5)), Fe = Math.round(J.x + ye * 0.5), kt = W.canvas.getBoundingClientRect(), se = 40;
|
|
18723
18723
|
w.left = nt === "x" ? `${(Jt > 0 ? Jt : Fe) - w.offset + kt.left}px` : `${J.x - ye * 0.5 - w.offset + kt.left}px`, w.top = `${J.y - se + kt.top}px`, rt.length > Sl ? (w.show = !0, w.text = rt) : lt ? (w.text = e.t("emptyEntityInfo"), w.show = !0) : w.show = !1;
|
|
18724
18724
|
} else
|
|
@@ -18734,25 +18734,25 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18734
18734
|
},
|
|
18735
18735
|
o,
|
|
18736
18736
|
...t.annotations ? [R] : []
|
|
18737
|
-
], X = H(() => t.chartData.labels && t.chartData.labels.length || 0), tt = It(0),
|
|
18738
|
-
tt.value = W[0].contentRect.width,
|
|
18739
|
-
}, 100)),
|
|
18737
|
+
], X = H(() => t.chartData.labels && t.chartData.labels.length || 0), tt = It(0), $ = It(0), dt = new ResizeObserver(dc((W) => {
|
|
18738
|
+
tt.value = W[0].contentRect.width, $.value = W[0].contentRect.height;
|
|
18739
|
+
}, 100)), U = H(() => {
|
|
18740
18740
|
var j, B;
|
|
18741
18741
|
const W = (B = (j = t.chartData) == null ? void 0 : j.labels) == null ? void 0 : B.length;
|
|
18742
18742
|
return d.value && W && !S.value ? `${Math.max(W * (iT + ch), tt.value)}px` : eT;
|
|
18743
18743
|
}), Z = H(() => {
|
|
18744
18744
|
var j, B;
|
|
18745
18745
|
const W = (B = (j = t.chartData) == null ? void 0 : j.labels) == null ? void 0 : B.length;
|
|
18746
|
-
return d.value && W && S.value ? `${Math.max(W * (sT + ch),
|
|
18746
|
+
return d.value && W && S.value ? `${Math.max(W * (sT + ch), $.value)}px` : nT;
|
|
18747
18747
|
});
|
|
18748
18748
|
Mt.useReportChartDataForSynthetics(zt(t, "chartData"), zt(t, "syntheticsDataKey")), Qn(() => {
|
|
18749
|
-
t.annotations && Ve.register(rh), a.value && (tt.value = a.value.offsetWidth,
|
|
18749
|
+
t.annotations && Ve.register(rh), a.value && (tt.value = a.value.offsetWidth, $.value = a.value.offsetHeight, dt.observe(a.value));
|
|
18750
18750
|
}), ns(() => {
|
|
18751
18751
|
a.value && dt.unobserve(a.value);
|
|
18752
18752
|
});
|
|
18753
18753
|
const et = H(() => {
|
|
18754
18754
|
const W = Mt.useBarChartOptions({
|
|
18755
|
-
tooltipState:
|
|
18755
|
+
tooltipState: C,
|
|
18756
18756
|
legendID: f,
|
|
18757
18757
|
stacked: zt(t, "stacked"),
|
|
18758
18758
|
metricAxesTitle: zt(t, "metricAxesTitle"),
|
|
@@ -18812,9 +18812,9 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18812
18812
|
const B = _t.value.scale, J = _t.value.targetCtx, nt = _t.value.width, it = _t.value.height, rt = F.value, st = rt.canvas;
|
|
18813
18813
|
J.fillStyle = "white", j.scrollLeft >= rT && j.scrollLeft <= oT ? (J.globalCompositeOperation = "source-over", J.clearRect(0, 0, nt, it), J.drawImage(st, 0, 0, nt, it, 0, 0, nt, it), J.globalCompositeOperation = "destination-over", J.fillRect(0, 0, nt, it)) : (J.globalCompositeOperation = "source-over", J.fillRect(0, (rt.scales.y.height + rt.scales.y.top + aT) * B, nt, rt.scales.x.height * B));
|
|
18814
18814
|
}
|
|
18815
|
-
|
|
18815
|
+
C.offsetY = j.scrollTop, C.offsetX = j.scrollLeft, w.offset = j.scrollLeft;
|
|
18816
18816
|
}, pt = ({ width: W, height: j }) => {
|
|
18817
|
-
|
|
18817
|
+
C.width = W, C.height = j;
|
|
18818
18818
|
};
|
|
18819
18819
|
ne(() => t.orientation, () => {
|
|
18820
18820
|
var W;
|
|
@@ -18822,12 +18822,12 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18822
18822
|
const j = _t.value.width, B = _t.value.height;
|
|
18823
18823
|
((W = h.value) == null ? void 0 : W.getContext("2d")).clearRect(0, 0, j, B);
|
|
18824
18824
|
}
|
|
18825
|
-
|
|
18825
|
+
C.showTooltip = !1, C.interactionMode = "idle";
|
|
18826
18826
|
}), ne(() => t.annotations, (W) => {
|
|
18827
18827
|
F.value && (W ? F.value.options.plugins.annotation.annotations = b(t.chartData) : delete F.value.options.plugins.annotation.annotations);
|
|
18828
18828
|
});
|
|
18829
18829
|
const mt = () => {
|
|
18830
|
-
|
|
18830
|
+
C.showTooltip && (C.interactionMode !== "idle" ? C.interactionMode = "idle" : C.interactionMode = "interactive");
|
|
18831
18831
|
};
|
|
18832
18832
|
return (W, j) => (K(), vt("div", {
|
|
18833
18833
|
ref: "chartParent",
|
|
@@ -18846,7 +18846,7 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18846
18846
|
}, [
|
|
18847
18847
|
ct("div", {
|
|
18848
18848
|
class: "chart-body",
|
|
18849
|
-
style: yi({ width:
|
|
18849
|
+
style: yi({ width: U.value, height: Z.value })
|
|
18850
18850
|
}, [
|
|
18851
18851
|
ct("canvas", {
|
|
18852
18852
|
id: G(r),
|
|
@@ -18868,7 +18868,7 @@ const Qk = ["id"], Jk = ["id"], tT = { class: "axis-tooltip-content" }, lh = 6,
|
|
|
18868
18868
|
"absolute-left": G(E),
|
|
18869
18869
|
"absolute-top": G(P),
|
|
18870
18870
|
"chart-parent-ref": l.value,
|
|
18871
|
-
state:
|
|
18871
|
+
state: C,
|
|
18872
18872
|
"tooltip-title": W.tooltipTitle,
|
|
18873
18873
|
onDimensions: pt
|
|
18874
18874
|
}, null, 8, ["absolute-left", "absolute-top", "chart-parent-ref", "state", "tooltip-title"])
|
|
@@ -19201,7 +19201,7 @@ const _T = /* @__PURE__ */ Sc("bar", Bs), jg = /* @__PURE__ */ Sc("doughnut", Tn
|
|
|
19201
19201
|
afterUpdate(w) {
|
|
19202
19202
|
r.value = w.options.plugins.legend.labels.generateLabels(w).map((D) => ({ ...D, value: t.legendValues && t.legendValues[D.text], hidden: !1 }));
|
|
19203
19203
|
}
|
|
19204
|
-
}, d = H(() => [u]), h = H(() => [t.chartData.datasets.reduce((D, S) => (D.labels.push(S.label), D.backgroundColor.push(S.backgroundColor), D.borderColor.push(Sw(S.backgroundColor, 50)), D.data.push(S.data.reduce((
|
|
19204
|
+
}, d = H(() => [u]), h = H(() => [t.chartData.datasets.reduce((D, S) => (D.labels.push(S.label), D.backgroundColor.push(S.backgroundColor), D.borderColor.push(Sw(S.backgroundColor, 50)), D.data.push(S.data.reduce((C, E) => C + E, 0)), D), { labels: [], backgroundColor: [], borderColor: [], data: [] })]), f = H(() => ({
|
|
19205
19205
|
...t.chartData,
|
|
19206
19206
|
datasets: h.value
|
|
19207
19207
|
}));
|
|
@@ -19408,7 +19408,7 @@ const aP = [
|
|
|
19408
19408
|
chartID: u,
|
|
19409
19409
|
chartTooltipSortFn: e.chartTooltipSortFn,
|
|
19410
19410
|
interactionMode: "idle"
|
|
19411
|
-
}), { tooltipAbsoluteLeft: S, tooltipAbsoluteTop:
|
|
19411
|
+
}), { tooltipAbsoluteLeft: S, tooltipAbsoluteTop: C } = Mt.useTooltipAbsolutePosition(
|
|
19412
19412
|
g,
|
|
19413
19413
|
D
|
|
19414
19414
|
), E = {
|
|
@@ -19421,7 +19421,7 @@ const aP = [
|
|
|
19421
19421
|
r,
|
|
19422
19422
|
...e.zoom ? [o] : [],
|
|
19423
19423
|
...e.type === "timeseries_line" ? [s] : []
|
|
19424
|
-
]), y = H(() => `line-${P.value.map((F) => F.id).join("-")}`), b = H(() => `bar-${P.value.map((F) => F.id).join("-")}`),
|
|
19424
|
+
]), y = H(() => `line-${P.value.map((F) => F.id).join("-")}`), b = H(() => `bar-${P.value.map((F) => F.id).join("-")}`), T = H(() => e.chartData && xw(e.chartData)), R = H(() => w ? !1 : _.value), { options: k } = Mt.useLineChartOptions({
|
|
19425
19425
|
tooltipState: D,
|
|
19426
19426
|
timeRangeMs: zt(e, "timeRangeMs"),
|
|
19427
19427
|
granularity: zt(e, "granularity"),
|
|
@@ -19429,7 +19429,7 @@ const aP = [
|
|
|
19429
19429
|
stacked: zt(e, "stacked"),
|
|
19430
19430
|
metricAxesTitle: zt(e, "metricAxesTitle"),
|
|
19431
19431
|
dimensionAxesTitle: zt(e, "dimensionAxesTitle"),
|
|
19432
|
-
pointsWithoutHover:
|
|
19432
|
+
pointsWithoutHover: T
|
|
19433
19433
|
});
|
|
19434
19434
|
Mt.useReportChartDataForSynthetics(zt(e, "chartData"), zt(e, "syntheticsDataKey"));
|
|
19435
19435
|
const N = (F) => ({
|
|
@@ -19442,7 +19442,7 @@ const aP = [
|
|
|
19442
19442
|
D.interactionMode = "idle", D.showTooltip = !1, o.clearSelectionArea(), r.isPaused && r.resume(F), s.isPaused && s.resume();
|
|
19443
19443
|
}, tt = () => {
|
|
19444
19444
|
D.interactionMode = "interactive";
|
|
19445
|
-
},
|
|
19445
|
+
}, $ = () => {
|
|
19446
19446
|
var F, z;
|
|
19447
19447
|
!l.value || !((z = (F = l.value.chart.tooltip) == null ? void 0 : F.dataPoints) != null && z.length) || (D.interactionMode === "interactive" ? s.clickedSegment = l.value.chart.tooltip.dataPoints[0] : s.destroyClickedSegment());
|
|
19448
19448
|
}, dt = () => {
|
|
@@ -19450,12 +19450,12 @@ const aP = [
|
|
|
19450
19450
|
_.value = !1;
|
|
19451
19451
|
return;
|
|
19452
19452
|
}
|
|
19453
|
-
D.interactionMode !== "idle" ? X() : tt(),
|
|
19453
|
+
D.interactionMode !== "idle" ? X() : tt(), $();
|
|
19454
19454
|
};
|
|
19455
19455
|
ne(() => e.type, () => {
|
|
19456
19456
|
D.interactionMode = "idle", D.showTooltip = !1, s.destroyClickedSegment();
|
|
19457
19457
|
});
|
|
19458
|
-
const
|
|
19458
|
+
const U = (F) => {
|
|
19459
19459
|
F.preventDefault(), F.stopPropagation();
|
|
19460
19460
|
const { xStart: z, xEnd: gt } = F.detail;
|
|
19461
19461
|
z && gt && (m.value = {
|
|
@@ -19482,12 +19482,12 @@ const aP = [
|
|
|
19482
19482
|
return (F = l.value) == null ? void 0 : F.chart;
|
|
19483
19483
|
}, () => {
|
|
19484
19484
|
var F;
|
|
19485
|
-
(F = l.value) != null && F.chart && (l.value.chart.canvas.removeEventListener("dragSelect",
|
|
19485
|
+
(F = l.value) != null && F.chart && (l.value.chart.canvas.removeEventListener("dragSelect", U), l.value.chart.canvas.removeEventListener("dragSelectMove", Z), l.value.chart.canvas.addEventListener("dragSelect", U), l.value.chart.canvas.addEventListener("dragSelectMove", Z));
|
|
19486
19486
|
}), Qn(() => {
|
|
19487
19487
|
document.addEventListener("click", et, !0);
|
|
19488
19488
|
}), ns(() => {
|
|
19489
19489
|
var F;
|
|
19490
|
-
(F = l.value) != null && F.chart && (l.value.chart.canvas.removeEventListener("dragSelect",
|
|
19490
|
+
(F = l.value) != null && F.chart && (l.value.chart.canvas.removeEventListener("dragSelect", U), l.value.chart.canvas.removeEventListener("dragSelectMove", Z)), document.removeEventListener("click", et, !0);
|
|
19491
19491
|
}), (F, z) => (K(), vt("div", {
|
|
19492
19492
|
ref: "chartParent",
|
|
19493
19493
|
class: Cn(["chart-parent", N(G(f))]),
|
|
@@ -19505,7 +19505,7 @@ const aP = [
|
|
|
19505
19505
|
class: "chart-canvas",
|
|
19506
19506
|
data: F.chartData,
|
|
19507
19507
|
"data-testid": "time-series-line-chart",
|
|
19508
|
-
options: G(
|
|
19508
|
+
options: G(k),
|
|
19509
19509
|
plugins: P.value
|
|
19510
19510
|
}, null, 8, ["chart-id", "data", "options", "plugins"])) : F.type === "timeseries_bar" ? (K(), te(G(_T), {
|
|
19511
19511
|
key: b.value,
|
|
@@ -19515,7 +19515,7 @@ const aP = [
|
|
|
19515
19515
|
class: "chart-canvas",
|
|
19516
19516
|
data: F.chartData,
|
|
19517
19517
|
"data-testid": "time-series-bar-chart",
|
|
19518
|
-
options: G(
|
|
19518
|
+
options: G(k),
|
|
19519
19519
|
plugins: P.value
|
|
19520
19520
|
}, null, 8, ["chart-id", "data", "options", "plugins"])) : de("", !0)
|
|
19521
19521
|
]),
|
|
@@ -19524,7 +19524,7 @@ const aP = [
|
|
|
19524
19524
|
ref_key: "tooltipElement",
|
|
19525
19525
|
ref: h,
|
|
19526
19526
|
"absolute-left": G(S),
|
|
19527
|
-
"absolute-top": G(
|
|
19527
|
+
"absolute-top": G(C),
|
|
19528
19528
|
"data-testid": "tooltip",
|
|
19529
19529
|
state: D,
|
|
19530
19530
|
"tooltip-title": F.tooltipTitle,
|
|
@@ -19579,56 +19579,62 @@ const aP = [
|
|
|
19579
19579
|
},
|
|
19580
19580
|
zt(i, "chartData")
|
|
19581
19581
|
).value), o = H(() => {
|
|
19582
|
-
var
|
|
19583
|
-
return (
|
|
19582
|
+
var k;
|
|
19583
|
+
return (k = i.chartData) != null && k.meta ? "start_ms" in i.chartData.meta ? i.chartData.meta.end_ms - i.chartData.meta.start_ms : void 0 : 0;
|
|
19584
19584
|
}), a = H(() => {
|
|
19585
|
-
var
|
|
19586
|
-
return (
|
|
19585
|
+
var k;
|
|
19586
|
+
return (k = i.chartData.meta) != null && k.metric_units ? Object.values(i.chartData.meta.metric_units)[0] : "";
|
|
19587
19587
|
}), l = H(() => i.showLegendValues && i.legendPosition !== Vt.Bottom), { legendValues: c } = Mt.useChartLegendValues(r, i.chartOptions.type, a), u = H(() => {
|
|
19588
|
-
var
|
|
19589
|
-
return ((V = (N = (
|
|
19588
|
+
var k, N, V;
|
|
19589
|
+
return ((V = (N = (k = i.chartData) == null ? void 0 : k.meta) == null ? void 0 : N.limit) == null ? void 0 : V.toString()) || null;
|
|
19590
19590
|
}), d = H(() => {
|
|
19591
|
-
var
|
|
19592
|
-
return ((N = (
|
|
19591
|
+
var k, N;
|
|
19592
|
+
return ((N = (k = i.chartData) == null ? void 0 : k.meta) == null ? void 0 : N.truncated) || !1;
|
|
19593
19593
|
}), h = s.t("limitedResultsShown", { maxReturned: u.value }), f = H(() => [
|
|
19594
19594
|
"vertical_bar",
|
|
19595
19595
|
"horizontal_bar"
|
|
19596
|
-
].includes(i.chartOptions.type)), g = H(() => ["timeseries_bar", "timeseries_line"].some((
|
|
19596
|
+
].includes(i.chartOptions.type)), g = H(() => ["timeseries_bar", "timeseries_line"].some((k) => k === i.chartOptions.type)), m = H(() => i.chartOptions.type === "donut"), _ = H(() => i.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), v = H(() => {
|
|
19597
19597
|
var V, X;
|
|
19598
19598
|
if (!((V = i.chartData) != null && V.meta.metric_names) || !((X = i.chartData) != null && X.meta.metric_units))
|
|
19599
19599
|
return;
|
|
19600
|
-
const
|
|
19600
|
+
const k = i.chartData.meta.metric_names[0], N = i.chartData.meta.metric_units[k];
|
|
19601
19601
|
if (i.chartData.meta.metric_names.length > 1) {
|
|
19602
|
-
if (
|
|
19602
|
+
if (k.includes("latency"))
|
|
19603
19603
|
return s.t("metricAxisTitles.latency_in", { unit: s.t(`chartUnits.${N}`, { plural: "s" }) });
|
|
19604
|
-
if (
|
|
19604
|
+
if (k.includes("size"))
|
|
19605
19605
|
return s.t("metricAxisTitles.size_in", { unit: s.t(`chartUnits.${N}`, { plural: "s" }) });
|
|
19606
19606
|
}
|
|
19607
|
-
|
|
19607
|
+
if (k)
|
|
19608
|
+
return s.te(`chartLabels.${k}`) ? s.t(`chartLabels.${k}`) : k;
|
|
19608
19609
|
}), w = H(() => {
|
|
19609
|
-
var V, X, tt
|
|
19610
|
-
if (
|
|
19610
|
+
var V, X, tt, $;
|
|
19611
|
+
if ((V = i.chartOptions) != null && V.metricAxesTitle)
|
|
19612
|
+
return (X = i.chartOptions) == null ? void 0 : X.metricAxesTitle;
|
|
19613
|
+
if (!((tt = i.chartData) != null && tt.meta.metric_names) || !(($ = i.chartData) != null && $.meta.metric_units))
|
|
19611
19614
|
return;
|
|
19612
|
-
const
|
|
19615
|
+
const k = i.chartData.meta.metric_names[0], N = i.chartData.meta.metric_units[k];
|
|
19613
19616
|
if (i.chartData.meta.metric_names.length > 1) {
|
|
19614
|
-
if (
|
|
19617
|
+
if (k.includes("latency"))
|
|
19615
19618
|
return s.t("metricAxisTitles.latency_in", { unit: s.t(`chartUnits.${N}`, { plural: "s" }) });
|
|
19616
|
-
if (
|
|
19619
|
+
if (k.includes("size"))
|
|
19617
19620
|
return s.t("metricAxisTitles.size_in", { unit: s.t(`chartUnits.${N}`, { plural: "s" }) });
|
|
19618
19621
|
}
|
|
19619
|
-
return (
|
|
19620
|
-
// Metric units are always pluralized on the axis.
|
|
19621
|
-
s.t(`metricAxisTitles.${C}`, { unit: s.t(`chartUnits.${N}`, { plural: "s" }) }) || void 0;
|
|
19622
|
+
return s.te(`metricAxisTitles.${k}`) && s.te(`chartUnits.${N}`) ? s.t(`metricAxisTitles.${k}`, { unit: s.t(`chartUnits.${N}`, { plural: "s" }) }) || void 0 : k || void 0;
|
|
19622
19623
|
}), D = H(() => {
|
|
19623
|
-
|
|
19624
|
-
|
|
19624
|
+
var N;
|
|
19625
|
+
if ((N = i.chartOptions) != null && N.dimensionAxesTitle)
|
|
19626
|
+
return i.chartOptions.dimensionAxesTitle;
|
|
19627
|
+
const k = g.value ? "Time" : Object.keys(i.chartData.meta.display || i.chartData.meta.metric_names)[0];
|
|
19628
|
+
if (k)
|
|
19629
|
+
return s.te(`chartLabels.${k}`) ? s.t(`chartLabels.${k}`) : k;
|
|
19625
19630
|
}), S = H(() => {
|
|
19626
|
-
const
|
|
19627
|
-
|
|
19628
|
-
|
|
19631
|
+
const k = el(Number(i.chartData.meta.granularity_ms));
|
|
19632
|
+
if (k)
|
|
19633
|
+
return s.te(`granularityAxisTitles.${k}`) ? s.t(`granularityAxisTitles.${k}`) : k;
|
|
19634
|
+
}), C = H(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), E = H(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), P = H(() => g.value ? vw(r.value) : i.chartData && i.chartData.meta && i.chartData.data.length), y = H(() => i.chartData.meta.granularity_ms ? el(i.chartData.meta.granularity_ms) || "hourly" : el(
|
|
19629
19635
|
new Date(i.chartData.data[1].timestamp).getTime() - new Date(i.chartData.data[0].timestamp).getTime()
|
|
19630
|
-
) || "hourly"), b = H(() => i.chartOptions.chartLegendSortFn ? i.chartOptions.chartLegendSortFn : (
|
|
19631
|
-
{ label: s.t("zoom_action_items.zoom"), action: (
|
|
19636
|
+
) || "hourly"), b = H(() => i.chartOptions.chartLegendSortFn ? i.chartOptions.chartLegendSortFn : (k, N) => k.text === s.t("chartLabels.____OTHER____") ? 1 : N.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(k.text, 10)) && !isNaN(parseInt(N.text, 10)) ? k.text < N.text ? -1 : 1 : k.value && N.value ? N.value.raw - k.value.raw : 0), T = H(() => i.chartOptions.chartTooltipSortFn ? i.chartOptions.chartTooltipSortFn : (k, N) => k.label === s.t("chartLabels.____OTHER____") ? 1 : N.label === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(k.label, 10)) && !isNaN(parseInt(N.label, 10)) ? k.label < N.label ? -1 : 1 : k.value && N.value ? N.rawValue - k.rawValue : 0), R = H(() => [
|
|
19637
|
+
{ label: s.t("zoom_action_items.zoom"), action: (k) => e("zoom-time-range", k) },
|
|
19632
19638
|
...i.exploreLink ? [{
|
|
19633
19639
|
label: s.t("zoom_action_items.explore"),
|
|
19634
19640
|
href: i.exploreLink.href
|
|
@@ -19638,7 +19644,7 @@ const aP = [
|
|
|
19638
19644
|
href: i.requestsLink.href
|
|
19639
19645
|
}] : []
|
|
19640
19646
|
]);
|
|
19641
|
-
return Pc("showLegendValues", l), Pc("legendPosition", zt(i, "legendPosition")), (
|
|
19647
|
+
return Pc("showLegendValues", l), Pc("legendPosition", zt(i, "legendPosition")), (k, N) => {
|
|
19642
19648
|
const V = Ue("KTooltip"), X = Ue("KEmptyState");
|
|
19643
19649
|
return K(), vt("div", OT, [
|
|
19644
19650
|
P.value && d.value && u.value ? (K(), vt("div", AT, [
|
|
@@ -19664,50 +19670,50 @@ const aP = [
|
|
|
19664
19670
|
key: 0,
|
|
19665
19671
|
"chart-data": r.value,
|
|
19666
19672
|
"chart-legend-sort-fn": b.value,
|
|
19667
|
-
"chart-tooltip-sort-fn":
|
|
19673
|
+
"chart-tooltip-sort-fn": T.value,
|
|
19668
19674
|
"dimension-axes-title": S.value,
|
|
19669
|
-
fill:
|
|
19675
|
+
fill: k.chartOptions.stacked,
|
|
19670
19676
|
granularity: y.value,
|
|
19671
19677
|
"legend-values": G(c),
|
|
19672
19678
|
"metric-axes-title": w.value,
|
|
19673
19679
|
"metric-unit": a.value,
|
|
19674
|
-
stacked:
|
|
19675
|
-
"synthetics-data-key":
|
|
19680
|
+
stacked: k.chartOptions.stacked,
|
|
19681
|
+
"synthetics-data-key": k.syntheticsDataKey,
|
|
19676
19682
|
"time-range-ms": o.value,
|
|
19677
19683
|
"tooltip-metric-display": v.value,
|
|
19678
|
-
"tooltip-title":
|
|
19679
|
-
type:
|
|
19680
|
-
zoom:
|
|
19684
|
+
"tooltip-title": k.tooltipTitle,
|
|
19685
|
+
type: k.chartOptions.type,
|
|
19686
|
+
zoom: k.timeseriesZoom,
|
|
19681
19687
|
"zoom-action-items": R.value,
|
|
19682
19688
|
onSelectChartRange: N[0] || (N[0] = (tt) => e("select-chart-range", tt)),
|
|
19683
19689
|
onZoomTimeRange: N[1] || (N[1] = (tt) => e("zoom-time-range", tt))
|
|
19684
19690
|
}, null, 8, ["chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "fill", "granularity", "legend-values", "metric-axes-title", "metric-unit", "stacked", "synthetics-data-key", "time-range-ms", "tooltip-metric-display", "tooltip-title", "type", "zoom", "zoom-action-items"])) : f.value ? (K(), te(uT, {
|
|
19685
19691
|
key: 1,
|
|
19686
|
-
annotations:
|
|
19692
|
+
annotations: k.showAnnotations,
|
|
19687
19693
|
"chart-data": r.value,
|
|
19688
19694
|
"chart-legend-sort-fn": b.value,
|
|
19689
|
-
"chart-tooltip-sort-fn":
|
|
19695
|
+
"chart-tooltip-sort-fn": T.value,
|
|
19690
19696
|
"data-testid": "bar-chart-container",
|
|
19691
19697
|
"dimension-axes-title": D.value,
|
|
19692
19698
|
"legend-values": G(c),
|
|
19693
19699
|
"metric-axes-title": w.value,
|
|
19694
19700
|
"metric-unit": a.value,
|
|
19695
19701
|
orientation: _.value,
|
|
19696
|
-
stacked:
|
|
19697
|
-
"synthetics-data-key":
|
|
19702
|
+
stacked: k.chartOptions.stacked,
|
|
19703
|
+
"synthetics-data-key": k.syntheticsDataKey,
|
|
19698
19704
|
"tooltip-metric-display": v.value,
|
|
19699
|
-
"tooltip-title":
|
|
19705
|
+
"tooltip-title": k.tooltipTitle
|
|
19700
19706
|
}, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-metric-display", "tooltip-title"])) : m.value ? (K(), te(MT, {
|
|
19701
19707
|
key: 2,
|
|
19702
19708
|
"chart-data": r.value,
|
|
19703
|
-
"dataset-colors":
|
|
19704
|
-
"legend-position":
|
|
19709
|
+
"dataset-colors": k.chartOptions.chartDatasetColors || G(ja),
|
|
19710
|
+
"legend-position": k.legendPosition,
|
|
19705
19711
|
"legend-values": G(c),
|
|
19706
19712
|
"metric-unit": a.value,
|
|
19707
|
-
"synthetics-data-key":
|
|
19713
|
+
"synthetics-data-key": k.syntheticsDataKey,
|
|
19708
19714
|
"tooltip-dimension-display": D.value,
|
|
19709
19715
|
"tooltip-metric-display": v.value,
|
|
19710
|
-
"tooltip-title":
|
|
19716
|
+
"tooltip-title": k.tooltipTitle
|
|
19711
19717
|
}, null, 8, ["chart-data", "dataset-colors", "legend-position", "legend-values", "metric-unit", "synthetics-data-key", "tooltip-dimension-display", "tooltip-metric-display", "tooltip-title"])) : de("", !0)
|
|
19712
19718
|
])) : (K(), te(X, {
|
|
19713
19719
|
key: 1,
|
|
@@ -19716,7 +19722,7 @@ const aP = [
|
|
|
19716
19722
|
"data-testid": "no-data-in-report"
|
|
19717
19723
|
}, {
|
|
19718
19724
|
title: Ut(() => [
|
|
19719
|
-
ln(yt(
|
|
19725
|
+
ln(yt(C.value), 1)
|
|
19720
19726
|
]),
|
|
19721
19727
|
default: Ut(() => [
|
|
19722
19728
|
ln(yt(E.value), 1)
|
|
@@ -19726,7 +19732,7 @@ const aP = [
|
|
|
19726
19732
|
]);
|
|
19727
19733
|
};
|
|
19728
19734
|
}
|
|
19729
|
-
}), cP = /* @__PURE__ */ qe(IT, [["__scopeId", "data-v-
|
|
19735
|
+
}), cP = /* @__PURE__ */ qe(IT, [["__scopeId", "data-v-802bf38b"]]), LT = {
|
|
19730
19736
|
class: "chart-parent",
|
|
19731
19737
|
"data-testid": "gauge-chart-parent"
|
|
19732
19738
|
}, NT = { class: "chart-totals-flex" }, FT = {
|
|
@@ -20140,8 +20146,8 @@ const aP = [
|
|
|
20140
20146
|
var So = { exports: {} };
|
|
20141
20147
|
So.exports;
|
|
20142
20148
|
(function(n, t) {
|
|
20143
|
-
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, o = 2, a = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", v = "[object Object]", w = "[object Promise]", D = "[object RegExp]", S = "[object Set]",
|
|
20144
|
-
pt[
|
|
20149
|
+
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, o = 2, a = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", v = "[object Object]", w = "[object Promise]", D = "[object RegExp]", S = "[object Set]", C = "[object String]", E = "[object Symbol]", P = "[object WeakMap]", y = "[object ArrayBuffer]", b = "[object DataView]", T = "[object Float32Array]", R = "[object Float64Array]", k = "[object Int8Array]", N = "[object Int16Array]", V = "[object Int32Array]", X = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", dt = "[object Uint32Array]", U = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Z = /^\w*$/, et = /^\./, F = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, z = /[\\^$.*+?()[\]{}|]/g, gt = /\\(\\)?/g, _t = /^\[object .+?Constructor\]$/, St = /^(?:0|[1-9]\d*)$/, pt = {};
|
|
20150
|
+
pt[T] = pt[R] = pt[k] = pt[N] = pt[V] = pt[X] = pt[tt] = pt[$] = pt[dt] = !0, pt[l] = pt[c] = pt[y] = pt[u] = pt[b] = pt[d] = pt[h] = pt[f] = pt[m] = pt[_] = pt[v] = pt[D] = pt[S] = pt[C] = pt[P] = !1;
|
|
20145
20151
|
var mt = typeof Re == "object" && Re && Re.Object === Object && Re, W = typeof self == "object" && self && self.Object === Object && self, j = mt || W || Function("return this")(), B = t && !t.nodeType && t, J = B && !0 && n && !n.nodeType && n, nt = J && J.exports === B, it = nt && mt.process, rt = function() {
|
|
20146
20152
|
try {
|
|
20147
20153
|
return it && it.binding("util");
|
|
@@ -20503,7 +20509,7 @@ So.exports;
|
|
|
20503
20509
|
case h:
|
|
20504
20510
|
return p.name == M.name && p.message == M.message;
|
|
20505
20511
|
case D:
|
|
20506
|
-
case
|
|
20512
|
+
case C:
|
|
20507
20513
|
return p == M + "";
|
|
20508
20514
|
case m:
|
|
20509
20515
|
var ae = Fe;
|
|
@@ -20607,7 +20613,7 @@ So.exports;
|
|
|
20607
20613
|
if (x(p))
|
|
20608
20614
|
return !1;
|
|
20609
20615
|
var I = typeof p;
|
|
20610
|
-
return I == "number" || I == "symbol" || I == "boolean" || p == null || ue(p) ? !0 : Z.test(p) ||
|
|
20616
|
+
return I == "number" || I == "symbol" || I == "boolean" || p == null || ue(p) ? !0 : Z.test(p) || !U.test(p) || M != null && p in Object(M);
|
|
20611
20617
|
}
|
|
20612
20618
|
function ps(p) {
|
|
20613
20619
|
var M = typeof p;
|
|
@@ -20905,23 +20911,23 @@ License: MIT
|
|
|
20905
20911
|
var i = typeof self < "u" ? self : typeof window < "u" ? window : i !== void 0 ? i : {}, s, r = !i.document && !!i.postMessage, o = i.IS_PAPA_WORKER || !1, a = {}, l = 0, c = {};
|
|
20906
20912
|
function u(y) {
|
|
20907
20913
|
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, (function(b) {
|
|
20908
|
-
var
|
|
20909
|
-
|
|
20910
|
-
}).call(this, y), this.parseChunk = function(b,
|
|
20914
|
+
var T = C(b);
|
|
20915
|
+
T.chunkSize = parseInt(T.chunkSize), b.step || b.chunk || (T.chunkSize = null), this._handle = new m(T), (this._handle.streamer = this)._config = T;
|
|
20916
|
+
}).call(this, y), this.parseChunk = function(b, T) {
|
|
20911
20917
|
var R = parseInt(this._config.skipFirstNLines) || 0;
|
|
20912
20918
|
if (this.isFirstChunk && 0 < R) {
|
|
20913
20919
|
let N = this._config.newline;
|
|
20914
|
-
N || (
|
|
20920
|
+
N || (k = this._config.quoteChar || '"', N = this._handle.guessLineEndings(b, k)), b = [...b.split(N).slice(R)].join(N);
|
|
20915
20921
|
}
|
|
20916
|
-
this.isFirstChunk && P(this._config.beforeFirstChunk) && (
|
|
20917
|
-
var R = this._partialLine + b,
|
|
20922
|
+
this.isFirstChunk && P(this._config.beforeFirstChunk) && (k = this._config.beforeFirstChunk(b)) !== void 0 && (b = k), this.isFirstChunk = !1, this._halted = !1;
|
|
20923
|
+
var R = this._partialLine + b, k = (this._partialLine = "", this._handle.parse(R, this._baseIndex, !this._finished));
|
|
20918
20924
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
20919
|
-
if (b =
|
|
20920
|
-
else if (P(this._config.chunk) && !
|
|
20921
|
-
if (this._config.chunk(
|
|
20922
|
-
this._completeResults =
|
|
20925
|
+
if (b = k.meta.cursor, R = (this._finished || (this._partialLine = R.substring(b - this._baseIndex), this._baseIndex = b), k && k.data && (this._rowCount += k.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), o) i.postMessage({ results: k, workerId: c.WORKER_ID, finished: R });
|
|
20926
|
+
else if (P(this._config.chunk) && !T) {
|
|
20927
|
+
if (this._config.chunk(k, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
20928
|
+
this._completeResults = k = void 0;
|
|
20923
20929
|
}
|
|
20924
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(
|
|
20930
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(k.data), this._completeResults.errors = this._completeResults.errors.concat(k.errors), this._completeResults.meta = k.meta), this._completed || !R || !P(this._config.complete) || k && k.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), R || k && k.meta.paused || this._nextChunk(), k;
|
|
20925
20931
|
}
|
|
20926
20932
|
this._halted = !0;
|
|
20927
20933
|
}, this._sendError = function(b) {
|
|
@@ -20934,17 +20940,17 @@ License: MIT
|
|
|
20934
20940
|
this._readChunk(), this._chunkLoaded();
|
|
20935
20941
|
} : function() {
|
|
20936
20942
|
this._readChunk();
|
|
20937
|
-
}, this.stream = function(
|
|
20938
|
-
this._input =
|
|
20943
|
+
}, this.stream = function(T) {
|
|
20944
|
+
this._input = T, this._nextChunk();
|
|
20939
20945
|
}, this._readChunk = function() {
|
|
20940
20946
|
if (this._finished) this._chunkLoaded();
|
|
20941
20947
|
else {
|
|
20942
20948
|
if (b = new XMLHttpRequest(), this._config.withCredentials && (b.withCredentials = this._config.withCredentials), r || (b.onload = E(this._chunkLoaded, this), b.onerror = E(this._chunkError, this)), b.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !r), this._config.downloadRequestHeaders) {
|
|
20943
|
-
var
|
|
20944
|
-
for (
|
|
20949
|
+
var T, R = this._config.downloadRequestHeaders;
|
|
20950
|
+
for (T in R) b.setRequestHeader(T, R[T]);
|
|
20945
20951
|
}
|
|
20946
|
-
var
|
|
20947
|
-
this._config.chunkSize && (
|
|
20952
|
+
var k;
|
|
20953
|
+
this._config.chunkSize && (k = this._start + this._config.chunkSize - 1, b.setRequestHeader("Range", "bytes=" + this._start + "-" + k));
|
|
20948
20954
|
try {
|
|
20949
20955
|
b.send(this._config.downloadRequestBody);
|
|
20950
20956
|
} catch (N) {
|
|
@@ -20953,57 +20959,57 @@ License: MIT
|
|
|
20953
20959
|
r && b.status === 0 && this._chunkError();
|
|
20954
20960
|
}
|
|
20955
20961
|
}, this._chunkLoaded = function() {
|
|
20956
|
-
b.readyState === 4 && (b.status < 200 || 400 <= b.status ? this._chunkError() : (this._start += this._config.chunkSize || b.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((
|
|
20957
|
-
}, this._chunkError = function(
|
|
20958
|
-
|
|
20962
|
+
b.readyState === 4 && (b.status < 200 || 400 <= b.status ? this._chunkError() : (this._start += this._config.chunkSize || b.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((T) => (T = T.getResponseHeader("Content-Range")) !== null ? parseInt(T.substring(T.lastIndexOf("/") + 1)) : -1)(b), this.parseChunk(b.responseText)));
|
|
20963
|
+
}, this._chunkError = function(T) {
|
|
20964
|
+
T = b.statusText || T, this._sendError(new Error(T));
|
|
20959
20965
|
};
|
|
20960
20966
|
}
|
|
20961
20967
|
function h(y) {
|
|
20962
20968
|
(y = y || {}).chunkSize || (y.chunkSize = c.LocalChunkSize), u.call(this, y);
|
|
20963
|
-
var b,
|
|
20964
|
-
this.stream = function(
|
|
20965
|
-
this._input =
|
|
20969
|
+
var b, T, R = typeof FileReader < "u";
|
|
20970
|
+
this.stream = function(k) {
|
|
20971
|
+
this._input = k, T = k.slice || k.webkitSlice || k.mozSlice, R ? ((b = new FileReader()).onload = E(this._chunkLoaded, this), b.onerror = E(this._chunkError, this)) : b = new FileReaderSync(), this._nextChunk();
|
|
20966
20972
|
}, this._nextChunk = function() {
|
|
20967
20973
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
20968
20974
|
}, this._readChunk = function() {
|
|
20969
|
-
var
|
|
20975
|
+
var k = this._input, N = (this._config.chunkSize && (N = Math.min(this._start + this._config.chunkSize, this._input.size), k = T.call(k, this._start, N)), b.readAsText(k, this._config.encoding));
|
|
20970
20976
|
R || this._chunkLoaded({ target: { result: N } });
|
|
20971
|
-
}, this._chunkLoaded = function(
|
|
20972
|
-
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(
|
|
20977
|
+
}, this._chunkLoaded = function(k) {
|
|
20978
|
+
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(k.target.result);
|
|
20973
20979
|
}, this._chunkError = function() {
|
|
20974
20980
|
this._sendError(b.error);
|
|
20975
20981
|
};
|
|
20976
20982
|
}
|
|
20977
20983
|
function f(y) {
|
|
20978
20984
|
var b;
|
|
20979
|
-
u.call(this, y = y || {}), this.stream = function(
|
|
20980
|
-
return b =
|
|
20985
|
+
u.call(this, y = y || {}), this.stream = function(T) {
|
|
20986
|
+
return b = T, this._nextChunk();
|
|
20981
20987
|
}, this._nextChunk = function() {
|
|
20982
|
-
var
|
|
20983
|
-
if (!this._finished) return
|
|
20988
|
+
var T, R;
|
|
20989
|
+
if (!this._finished) return T = this._config.chunkSize, b = T ? (R = b.substring(0, T), b.substring(T)) : (R = b, ""), this._finished = !b, this.parseChunk(R);
|
|
20984
20990
|
};
|
|
20985
20991
|
}
|
|
20986
20992
|
function g(y) {
|
|
20987
20993
|
u.call(this, y = y || {});
|
|
20988
|
-
var b = [],
|
|
20994
|
+
var b = [], T = !0, R = !1;
|
|
20989
20995
|
this.pause = function() {
|
|
20990
20996
|
u.prototype.pause.apply(this, arguments), this._input.pause();
|
|
20991
20997
|
}, this.resume = function() {
|
|
20992
20998
|
u.prototype.resume.apply(this, arguments), this._input.resume();
|
|
20993
|
-
}, this.stream = function(
|
|
20994
|
-
this._input =
|
|
20999
|
+
}, this.stream = function(k) {
|
|
21000
|
+
this._input = k, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
20995
21001
|
}, this._checkIsFinished = function() {
|
|
20996
21002
|
R && b.length === 1 && (this._finished = !0);
|
|
20997
21003
|
}, this._nextChunk = function() {
|
|
20998
|
-
this._checkIsFinished(), b.length ? this.parseChunk(b.shift()) :
|
|
20999
|
-
}, this._streamData = E(function(
|
|
21004
|
+
this._checkIsFinished(), b.length ? this.parseChunk(b.shift()) : T = !0;
|
|
21005
|
+
}, this._streamData = E(function(k) {
|
|
21000
21006
|
try {
|
|
21001
|
-
b.push(typeof
|
|
21007
|
+
b.push(typeof k == "string" ? k : k.toString(this._config.encoding)), T && (T = !1, this._checkIsFinished(), this.parseChunk(b.shift()));
|
|
21002
21008
|
} catch (N) {
|
|
21003
21009
|
this._streamError(N);
|
|
21004
21010
|
}
|
|
21005
|
-
}, this), this._streamError = E(function(
|
|
21006
|
-
this._streamCleanUp(), this._sendError(
|
|
21011
|
+
}, this), this._streamError = E(function(k) {
|
|
21012
|
+
this._streamCleanUp(), this._sendError(k);
|
|
21007
21013
|
}, this), this._streamEnd = E(function() {
|
|
21008
21014
|
this._streamCleanUp(), R = !0, this._streamData("");
|
|
21009
21015
|
}, this), this._streamCleanUp = E(function() {
|
|
@@ -21011,7 +21017,7 @@ License: MIT
|
|
|
21011
21017
|
}, this);
|
|
21012
21018
|
}
|
|
21013
21019
|
function m(y) {
|
|
21014
|
-
var b,
|
|
21020
|
+
var b, T, R, k, N = Math.pow(2, 53), V = -N, X = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, tt = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, $ = this, dt = 0, U = 0, Z = !1, et = !1, F = [], z = { data: [], errors: [], meta: {} };
|
|
21015
21021
|
function gt(mt) {
|
|
21016
21022
|
return y.skipEmptyLines === "greedy" ? mt.join("").trim() === "" : mt.length === 1 && mt[0].length === 0;
|
|
21017
21023
|
}
|
|
@@ -21035,10 +21041,10 @@ License: MIT
|
|
|
21035
21041
|
})(lt) ? parseFloat(lt) : tt.test(lt) ? new Date(lt) : lt === "" ? null : lt) : lt)(rt = y.header ? it >= F.length ? "__parsed_extra" : F[it] : rt, st = y.transform ? y.transform(st, rt) : st);
|
|
21036
21042
|
rt === "__parsed_extra" ? (nt[rt] = nt[rt] || [], nt[rt].push(st)) : nt[rt] = st;
|
|
21037
21043
|
}
|
|
21038
|
-
return y.header && (it > F.length ? pt("FieldMismatch", "TooManyFields", "Too many fields: expected " + F.length + " fields but parsed " + it,
|
|
21044
|
+
return y.header && (it > F.length ? pt("FieldMismatch", "TooManyFields", "Too many fields: expected " + F.length + " fields but parsed " + it, U + J) : it < F.length && pt("FieldMismatch", "TooFewFields", "Too few fields: expected " + F.length + " fields but parsed " + it, U + J)), nt;
|
|
21039
21045
|
}
|
|
21040
21046
|
var j;
|
|
21041
|
-
z && (y.header || y.dynamicTyping || y.transform) && (j = 1, !z.data.length || Array.isArray(z.data[0]) ? (z.data = z.data.map(W), j = z.data.length) : z.data = W(z.data, 0), y.header && z.meta && (z.meta.fields = F),
|
|
21047
|
+
z && (y.header || y.dynamicTyping || y.transform) && (j = 1, !z.data.length || Array.isArray(z.data[0]) ? (z.data = z.data.map(W), j = z.data.length) : z.data = W(z.data, 0), y.header && z.meta && (z.meta.fields = F), U += j);
|
|
21042
21048
|
}
|
|
21043
21049
|
function St() {
|
|
21044
21050
|
return y.header && F.length === 0;
|
|
@@ -21046,8 +21052,8 @@ License: MIT
|
|
|
21046
21052
|
function pt(mt, W, j, B) {
|
|
21047
21053
|
mt = { type: mt, code: W, message: j }, B !== void 0 && (mt.row = B), z.errors.push(mt);
|
|
21048
21054
|
}
|
|
21049
|
-
P(y.step) && (
|
|
21050
|
-
z = mt, St() ? _t() : (_t(), z.data.length !== 0 && (dt += mt.data.length, y.preview && dt > y.preview ?
|
|
21055
|
+
P(y.step) && (k = y.step, y.step = function(mt) {
|
|
21056
|
+
z = mt, St() ? _t() : (_t(), z.data.length !== 0 && (dt += mt.data.length, y.preview && dt > y.preview ? T.abort() : (z.data = z.data[0], k(z, $))));
|
|
21051
21057
|
}), this.parse = function(mt, W, j) {
|
|
21052
21058
|
var B = y.quoteChar || '"', B = (y.newline || (y.newline = this.guessLineEndings(mt, B)), R = !1, y.delimiter ? P(y.delimiter) && (y.delimiter = y.delimiter(mt), z.meta.delimiter = y.delimiter) : ((B = ((J, nt, it, rt, st) => {
|
|
21053
21059
|
var Dt, lt, Rt, ce;
|
|
@@ -21057,18 +21063,18 @@ License: MIT
|
|
|
21057
21063
|
0 < re.data.length && (se /= re.data.length - Bt), (lt === void 0 || kt <= lt) && (ce === void 0 || ce < se) && 1.99 < se && (lt = kt, Dt = Fe, ce = se);
|
|
21058
21064
|
}
|
|
21059
21065
|
return { successful: !!(y.delimiter = Dt), bestDelimiter: Dt };
|
|
21060
|
-
})(mt, y.newline, y.skipEmptyLines, y.comments, y.delimitersToGuess)).successful ? y.delimiter = B.bestDelimiter : (R = !0, y.delimiter = c.DefaultDelimiter), z.meta.delimiter = y.delimiter),
|
|
21061
|
-
return y.preview && y.header && B.preview++, b = mt,
|
|
21066
|
+
})(mt, y.newline, y.skipEmptyLines, y.comments, y.delimitersToGuess)).successful ? y.delimiter = B.bestDelimiter : (R = !0, y.delimiter = c.DefaultDelimiter), z.meta.delimiter = y.delimiter), C(y));
|
|
21067
|
+
return y.preview && y.header && B.preview++, b = mt, T = new v(B), z = T.parse(b, W, j), _t(), Z ? { meta: { paused: !0 } } : z || { meta: { paused: !1 } };
|
|
21062
21068
|
}, this.paused = function() {
|
|
21063
21069
|
return Z;
|
|
21064
21070
|
}, this.pause = function() {
|
|
21065
|
-
Z = !0,
|
|
21071
|
+
Z = !0, T.abort(), b = P(y.chunk) ? "" : b.substring(T.getCharIndex());
|
|
21066
21072
|
}, this.resume = function() {
|
|
21067
|
-
|
|
21073
|
+
$.streamer._halted ? (Z = !1, $.streamer.parseChunk(b, !0)) : setTimeout($.resume, 3);
|
|
21068
21074
|
}, this.aborted = function() {
|
|
21069
21075
|
return et;
|
|
21070
21076
|
}, this.abort = function() {
|
|
21071
|
-
et = !0,
|
|
21077
|
+
et = !0, T.abort(), z.meta.aborted = !0, P(y.complete) && y.complete(z), b = "";
|
|
21072
21078
|
}, this.guessLineEndings = function(J, B) {
|
|
21073
21079
|
J = J.substring(0, 1048576);
|
|
21074
21080
|
var B = new RegExp(_(B) + "([^]*?)" + _(B), "gm"), j = (J = J.replace(B, "")).split("\r"), B = J.split(`
|
|
@@ -21085,20 +21091,20 @@ License: MIT
|
|
|
21085
21091
|
return y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
21086
21092
|
}
|
|
21087
21093
|
function v(y) {
|
|
21088
|
-
var b = (y = y || {}).delimiter,
|
|
21094
|
+
var b = (y = y || {}).delimiter, T = y.newline, R = y.comments, k = y.step, N = y.preview, V = y.fastMode, X = null, tt = !1, $ = y.quoteChar == null ? '"' : y.quoteChar, dt = $;
|
|
21089
21095
|
if (y.escapeChar !== void 0 && (dt = y.escapeChar), (typeof b != "string" || -1 < c.BAD_DELIMITERS.indexOf(b)) && (b = ","), R === b) throw new Error("Comment character same as delimiter");
|
|
21090
|
-
R === !0 ? R = "#" : (typeof R != "string" || -1 < c.BAD_DELIMITERS.indexOf(R)) && (R = !1),
|
|
21091
|
-
` &&
|
|
21092
|
-
` && (
|
|
21096
|
+
R === !0 ? R = "#" : (typeof R != "string" || -1 < c.BAD_DELIMITERS.indexOf(R)) && (R = !1), T !== `
|
|
21097
|
+
` && T !== "\r" && T !== `\r
|
|
21098
|
+
` && (T = `
|
|
21093
21099
|
`);
|
|
21094
|
-
var
|
|
21100
|
+
var U = 0, Z = !1;
|
|
21095
21101
|
this.parse = function(et, F, z) {
|
|
21096
21102
|
if (typeof et != "string") throw new Error("Input must be a string");
|
|
21097
|
-
var gt = et.length, _t = b.length, St =
|
|
21103
|
+
var gt = et.length, _t = b.length, St = T.length, pt = R.length, mt = P(k), W = [], j = [], B = [], J = U = 0;
|
|
21098
21104
|
if (!et) return kt();
|
|
21099
|
-
if (V || V !== !1 && et.indexOf(
|
|
21100
|
-
for (var nt = et.split(
|
|
21101
|
-
if (B = nt[it],
|
|
21105
|
+
if (V || V !== !1 && et.indexOf($) === -1) {
|
|
21106
|
+
for (var nt = et.split(T), it = 0; it < nt.length; it++) {
|
|
21107
|
+
if (B = nt[it], U += B.length, it !== nt.length - 1) U += T.length;
|
|
21102
21108
|
else if (z) return kt();
|
|
21103
21109
|
if (!R || B.substring(0, pt) !== R) {
|
|
21104
21110
|
if (mt) {
|
|
@@ -21109,47 +21115,47 @@ License: MIT
|
|
|
21109
21115
|
}
|
|
21110
21116
|
return kt();
|
|
21111
21117
|
}
|
|
21112
|
-
for (var rt = et.indexOf(b,
|
|
21113
|
-
if ((lt = et.indexOf(
|
|
21114
|
-
if (lt === gt - 1) return Jt(et.substring(
|
|
21115
|
-
if (
|
|
21116
|
-
else if (
|
|
21118
|
+
for (var rt = et.indexOf(b, U), st = et.indexOf(T, U), Dt = new RegExp(_(dt) + _($), "g"), lt = et.indexOf($, U); ; ) if (et[U] === $) for (lt = U, U++; ; ) {
|
|
21119
|
+
if ((lt = et.indexOf($, lt + 1)) === -1) return z || j.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: W.length, index: U }), Jt();
|
|
21120
|
+
if (lt === gt - 1) return Jt(et.substring(U, lt).replace(Dt, $));
|
|
21121
|
+
if ($ === dt && et[lt + 1] === dt) lt++;
|
|
21122
|
+
else if ($ === dt || lt === 0 || et[lt - 1] !== dt) {
|
|
21117
21123
|
rt !== -1 && rt < lt + 1 && (rt = et.indexOf(b, lt + 1));
|
|
21118
|
-
var Rt = ye((st = st !== -1 && st < lt + 1 ? et.indexOf(
|
|
21124
|
+
var Rt = ye((st = st !== -1 && st < lt + 1 ? et.indexOf(T, lt + 1) : st) === -1 ? rt : Math.min(rt, st));
|
|
21119
21125
|
if (et.substr(lt + 1 + Rt, _t) === b) {
|
|
21120
|
-
B.push(et.substring(
|
|
21126
|
+
B.push(et.substring(U, lt).replace(Dt, $)), et[U = lt + 1 + Rt + _t] !== $ && (lt = et.indexOf($, U)), rt = et.indexOf(b, U), st = et.indexOf(T, U);
|
|
21121
21127
|
break;
|
|
21122
21128
|
}
|
|
21123
|
-
if (Rt = ye(st), et.substring(lt + 1 + Rt, lt + 1 + Rt + St) ===
|
|
21124
|
-
if (B.push(et.substring(
|
|
21129
|
+
if (Rt = ye(st), et.substring(lt + 1 + Rt, lt + 1 + Rt + St) === T) {
|
|
21130
|
+
if (B.push(et.substring(U, lt).replace(Dt, $)), Fe(lt + 1 + Rt + St), rt = et.indexOf(b, U), lt = et.indexOf($, U), mt && (se(), Z)) return kt();
|
|
21125
21131
|
if (N && W.length >= N) return kt(!0);
|
|
21126
21132
|
break;
|
|
21127
21133
|
}
|
|
21128
|
-
j.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: W.length, index:
|
|
21134
|
+
j.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: W.length, index: U }), lt++;
|
|
21129
21135
|
}
|
|
21130
21136
|
}
|
|
21131
|
-
else if (R && B.length === 0 && et.substring(
|
|
21137
|
+
else if (R && B.length === 0 && et.substring(U, U + pt) === R) {
|
|
21132
21138
|
if (st === -1) return kt();
|
|
21133
|
-
|
|
21134
|
-
} else if (rt !== -1 && (rt < st || st === -1)) B.push(et.substring(
|
|
21139
|
+
U = st + St, st = et.indexOf(T, U), rt = et.indexOf(b, U);
|
|
21140
|
+
} else if (rt !== -1 && (rt < st || st === -1)) B.push(et.substring(U, rt)), U = rt + _t, rt = et.indexOf(b, U);
|
|
21135
21141
|
else {
|
|
21136
21142
|
if (st === -1) break;
|
|
21137
|
-
if (B.push(et.substring(
|
|
21143
|
+
if (B.push(et.substring(U, st)), Fe(st + St), mt && (se(), Z)) return kt();
|
|
21138
21144
|
if (N && W.length >= N) return kt(!0);
|
|
21139
21145
|
}
|
|
21140
21146
|
return Jt();
|
|
21141
21147
|
function ce(Bt) {
|
|
21142
|
-
W.push(Bt), J =
|
|
21148
|
+
W.push(Bt), J = U;
|
|
21143
21149
|
}
|
|
21144
21150
|
function ye(Bt) {
|
|
21145
21151
|
var re = 0;
|
|
21146
21152
|
return re = Bt !== -1 && (Bt = et.substring(lt + 1, Bt)) && Bt.trim() === "" ? Bt.length : re;
|
|
21147
21153
|
}
|
|
21148
21154
|
function Jt(Bt) {
|
|
21149
|
-
return z || (Bt === void 0 && (Bt = et.substring(
|
|
21155
|
+
return z || (Bt === void 0 && (Bt = et.substring(U)), B.push(Bt), U = gt, ce(B), mt && se()), kt();
|
|
21150
21156
|
}
|
|
21151
21157
|
function Fe(Bt) {
|
|
21152
|
-
|
|
21158
|
+
U = Bt, ce(B), B = [], st = et.indexOf(T, U);
|
|
21153
21159
|
}
|
|
21154
21160
|
function kt(Bt) {
|
|
21155
21161
|
if (y.header && !F && W.length && !tt) {
|
|
@@ -21166,43 +21172,43 @@ License: MIT
|
|
|
21166
21172
|
}
|
|
21167
21173
|
ti && console.warn("Duplicate headers found and renamed."), tt = !0;
|
|
21168
21174
|
}
|
|
21169
|
-
return { data: W, errors: j, meta: { delimiter: b, linebreak:
|
|
21175
|
+
return { data: W, errors: j, meta: { delimiter: b, linebreak: T, aborted: Z, truncated: !!Bt, cursor: J + (F || 0), renamedHeaders: X } };
|
|
21170
21176
|
}
|
|
21171
21177
|
function se() {
|
|
21172
|
-
|
|
21178
|
+
k(kt()), W = [], j = [];
|
|
21173
21179
|
}
|
|
21174
21180
|
}, this.abort = function() {
|
|
21175
21181
|
Z = !0;
|
|
21176
21182
|
}, this.getCharIndex = function() {
|
|
21177
|
-
return
|
|
21183
|
+
return U;
|
|
21178
21184
|
};
|
|
21179
21185
|
}
|
|
21180
21186
|
function w(y) {
|
|
21181
|
-
var b = y.data,
|
|
21182
|
-
if (b.error)
|
|
21187
|
+
var b = y.data, T = a[b.workerId], R = !1;
|
|
21188
|
+
if (b.error) T.userError(b.error, b.file);
|
|
21183
21189
|
else if (b.results && b.results.data) {
|
|
21184
|
-
var
|
|
21190
|
+
var k = { abort: function() {
|
|
21185
21191
|
R = !0, D(b.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
21186
21192
|
}, pause: S, resume: S };
|
|
21187
|
-
if (P(
|
|
21188
|
-
for (var N = 0; N < b.results.data.length && (
|
|
21193
|
+
if (P(T.userStep)) {
|
|
21194
|
+
for (var N = 0; N < b.results.data.length && (T.userStep({ data: b.results.data[N], errors: b.results.errors, meta: b.results.meta }, k), !R); N++) ;
|
|
21189
21195
|
delete b.results;
|
|
21190
|
-
} else P(
|
|
21196
|
+
} else P(T.userChunk) && (T.userChunk(b.results, k, b.file), delete b.results);
|
|
21191
21197
|
}
|
|
21192
21198
|
b.finished && !R && D(b.workerId, b.results);
|
|
21193
21199
|
}
|
|
21194
21200
|
function D(y, b) {
|
|
21195
|
-
var
|
|
21196
|
-
P(
|
|
21201
|
+
var T = a[y];
|
|
21202
|
+
P(T.userComplete) && T.userComplete(b), T.terminate(), delete a[y];
|
|
21197
21203
|
}
|
|
21198
21204
|
function S() {
|
|
21199
21205
|
throw new Error("Not implemented.");
|
|
21200
21206
|
}
|
|
21201
|
-
function
|
|
21207
|
+
function C(y) {
|
|
21202
21208
|
if (typeof y != "object" || y === null) return y;
|
|
21203
|
-
var b,
|
|
21204
|
-
for (b in y)
|
|
21205
|
-
return
|
|
21209
|
+
var b, T = Array.isArray(y) ? [] : {};
|
|
21210
|
+
for (b in y) T[b] = C(y[b]);
|
|
21211
|
+
return T;
|
|
21206
21212
|
}
|
|
21207
21213
|
function E(y, b) {
|
|
21208
21214
|
return function() {
|
|
@@ -21213,37 +21219,37 @@ License: MIT
|
|
|
21213
21219
|
return typeof y == "function";
|
|
21214
21220
|
}
|
|
21215
21221
|
return c.parse = function(y, b) {
|
|
21216
|
-
var
|
|
21217
|
-
if (P(
|
|
21218
|
-
(
|
|
21222
|
+
var T = (b = b || {}).dynamicTyping || !1;
|
|
21223
|
+
if (P(T) && (b.dynamicTypingFunction = T, T = {}), b.dynamicTyping = T, b.transform = !!P(b.transform) && b.transform, !b.worker || !c.WORKERS_SUPPORTED) return T = null, c.NODE_STREAM_INPUT, typeof y == "string" ? (y = ((R) => R.charCodeAt(0) !== 65279 ? R : R.slice(1))(y), T = new (b.download ? d : f)(b)) : y.readable === !0 && P(y.read) && P(y.on) ? T = new g(b) : (i.File && y instanceof File || y instanceof Object) && (T = new h(b)), T.stream(y);
|
|
21224
|
+
(T = (() => {
|
|
21219
21225
|
var R;
|
|
21220
21226
|
return !!c.WORKERS_SUPPORTED && (R = (() => {
|
|
21221
|
-
var
|
|
21222
|
-
return c.BLOB_URL || (c.BLOB_URL =
|
|
21227
|
+
var k = i.URL || i.webkitURL || null, N = e.toString();
|
|
21228
|
+
return c.BLOB_URL || (c.BLOB_URL = k.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", N, ")();"], { type: "text/javascript" })));
|
|
21223
21229
|
})(), (R = new i.Worker(R)).onmessage = w, R.id = l++, a[R.id] = R);
|
|
21224
|
-
})()).userStep = b.step,
|
|
21230
|
+
})()).userStep = b.step, T.userChunk = b.chunk, T.userComplete = b.complete, T.userError = b.error, b.step = P(b.step), b.chunk = P(b.chunk), b.complete = P(b.complete), b.error = P(b.error), delete b.worker, T.postMessage({ input: y, config: b, workerId: T.id });
|
|
21225
21231
|
}, c.unparse = function(y, b) {
|
|
21226
|
-
var
|
|
21227
|
-
`, V = '"', X = V + V, tt = !1,
|
|
21232
|
+
var T = !1, R = !0, k = ",", N = `\r
|
|
21233
|
+
`, V = '"', X = V + V, tt = !1, $ = null, dt = !1, U = ((() => {
|
|
21228
21234
|
if (typeof b == "object") {
|
|
21229
21235
|
if (typeof b.delimiter != "string" || c.BAD_DELIMITERS.filter(function(F) {
|
|
21230
21236
|
return b.delimiter.indexOf(F) !== -1;
|
|
21231
|
-
}).length || (
|
|
21237
|
+
}).length || (k = b.delimiter), typeof b.quotes != "boolean" && typeof b.quotes != "function" && !Array.isArray(b.quotes) || (T = b.quotes), typeof b.skipEmptyLines != "boolean" && typeof b.skipEmptyLines != "string" || (tt = b.skipEmptyLines), typeof b.newline == "string" && (N = b.newline), typeof b.quoteChar == "string" && (V = b.quoteChar), typeof b.header == "boolean" && (R = b.header), Array.isArray(b.columns)) {
|
|
21232
21238
|
if (b.columns.length === 0) throw new Error("Option columns is empty");
|
|
21233
|
-
|
|
21239
|
+
$ = b.columns;
|
|
21234
21240
|
}
|
|
21235
21241
|
b.escapeChar !== void 0 && (X = b.escapeChar + V), b.escapeFormulae instanceof RegExp ? dt = b.escapeFormulae : typeof b.escapeFormulae == "boolean" && b.escapeFormulae && (dt = /^[=+\-@\t\r].*$/);
|
|
21236
21242
|
}
|
|
21237
21243
|
})(), new RegExp(_(V), "g"));
|
|
21238
21244
|
if (typeof y == "string" && (y = JSON.parse(y)), Array.isArray(y)) {
|
|
21239
21245
|
if (!y.length || Array.isArray(y[0])) return Z(null, y, tt);
|
|
21240
|
-
if (typeof y[0] == "object") return Z(
|
|
21241
|
-
} else if (typeof y == "object") return typeof y.data == "string" && (y.data = JSON.parse(y.data)), Array.isArray(y.data) && (y.fields || (y.fields = y.meta && y.meta.fields ||
|
|
21246
|
+
if (typeof y[0] == "object") return Z($ || Object.keys(y[0]), y, tt);
|
|
21247
|
+
} else if (typeof y == "object") return typeof y.data == "string" && (y.data = JSON.parse(y.data)), Array.isArray(y.data) && (y.fields || (y.fields = y.meta && y.meta.fields || $), y.fields || (y.fields = Array.isArray(y.data[0]) ? y.fields : typeof y.data[0] == "object" ? Object.keys(y.data[0]) : []), Array.isArray(y.data[0]) || typeof y.data[0] == "object" || (y.data = [y.data])), Z(y.fields || [], y.data || [], tt);
|
|
21242
21248
|
throw new Error("Unable to serialize unrecognized input");
|
|
21243
21249
|
function Z(F, z, gt) {
|
|
21244
21250
|
var _t = "", St = (typeof F == "string" && (F = JSON.parse(F)), typeof z == "string" && (z = JSON.parse(z)), Array.isArray(F) && 0 < F.length), pt = !Array.isArray(z[0]);
|
|
21245
21251
|
if (St && R) {
|
|
21246
|
-
for (var mt = 0; mt < F.length; mt++) 0 < mt && (_t +=
|
|
21252
|
+
for (var mt = 0; mt < F.length; mt++) 0 < mt && (_t += k), _t += et(F[mt], mt);
|
|
21247
21253
|
0 < z.length && (_t += N);
|
|
21248
21254
|
}
|
|
21249
21255
|
for (var W = 0; W < z.length; W++) {
|
|
@@ -21257,7 +21263,7 @@ License: MIT
|
|
|
21257
21263
|
}
|
|
21258
21264
|
if (!B) {
|
|
21259
21265
|
for (var st = 0; st < j; st++) {
|
|
21260
|
-
0 < st && !J && (_t +=
|
|
21266
|
+
0 < st && !J && (_t += k);
|
|
21261
21267
|
var Dt = St && pt ? F[st] : st;
|
|
21262
21268
|
_t += et(z[W][Dt], st);
|
|
21263
21269
|
}
|
|
@@ -21268,38 +21274,38 @@ License: MIT
|
|
|
21268
21274
|
}
|
|
21269
21275
|
function et(F, z) {
|
|
21270
21276
|
var gt, _t;
|
|
21271
|
-
return F == null ? "" : F.constructor === Date ? JSON.stringify(F).slice(1, 25) : (_t = !1, dt && typeof F == "string" && dt.test(F) && (F = "'" + F, _t = !0), gt = F.toString().replace(
|
|
21277
|
+
return F == null ? "" : F.constructor === Date ? JSON.stringify(F).slice(1, 25) : (_t = !1, dt && typeof F == "string" && dt.test(F) && (F = "'" + F, _t = !0), gt = F.toString().replace(U, X), (_t = _t || T === !0 || typeof T == "function" && T(F, z) || Array.isArray(T) && T[z] || ((St, pt) => {
|
|
21272
21278
|
for (var mt = 0; mt < pt.length; mt++) if (-1 < St.indexOf(pt[mt])) return !0;
|
|
21273
21279
|
return !1;
|
|
21274
|
-
})(gt, c.BAD_DELIMITERS) || -1 < gt.indexOf(
|
|
21280
|
+
})(gt, c.BAD_DELIMITERS) || -1 < gt.indexOf(k) || gt.charAt(0) === " " || gt.charAt(gt.length - 1) === " ") ? V + gt + V : gt);
|
|
21275
21281
|
}
|
|
21276
21282
|
}, c.RECORD_SEP = "", c.UNIT_SEP = "", c.BYTE_ORDER_MARK = "\uFEFF", c.BAD_DELIMITERS = ["\r", `
|
|
21277
21283
|
`, '"', c.BYTE_ORDER_MARK], c.WORKERS_SUPPORTED = !r && !!i.Worker, c.NODE_STREAM_INPUT = 1, c.LocalChunkSize = 10485760, c.RemoteChunkSize = 5242880, c.DefaultDelimiter = ",", c.Parser = v, c.ParserHandle = m, c.NetworkStreamer = d, c.FileStreamer = h, c.StringStreamer = f, c.ReadableStreamStreamer = g, i.jQuery && ((s = i.jQuery).fn.parse = function(y) {
|
|
21278
|
-
var b = y.config || {},
|
|
21284
|
+
var b = y.config || {}, T = [];
|
|
21279
21285
|
return this.each(function(N) {
|
|
21280
21286
|
if (!(s(this).prop("tagName").toUpperCase() === "INPUT" && s(this).attr("type").toLowerCase() === "file" && i.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
21281
|
-
for (var V = 0; V < this.files.length; V++)
|
|
21287
|
+
for (var V = 0; V < this.files.length; V++) T.push({ file: this.files[V], inputElem: this, instanceConfig: s.extend({}, b) });
|
|
21282
21288
|
}), R(), this;
|
|
21283
21289
|
function R() {
|
|
21284
|
-
if (
|
|
21290
|
+
if (T.length === 0) P(y.complete) && y.complete();
|
|
21285
21291
|
else {
|
|
21286
|
-
var N, V, X, tt,
|
|
21292
|
+
var N, V, X, tt, $ = T[0];
|
|
21287
21293
|
if (P(y.before)) {
|
|
21288
|
-
var dt = y.before(
|
|
21294
|
+
var dt = y.before($.file, $.inputElem);
|
|
21289
21295
|
if (typeof dt == "object") {
|
|
21290
|
-
if (dt.action === "abort") return N = "AbortError", V =
|
|
21291
|
-
if (dt.action === "skip") return void
|
|
21292
|
-
typeof dt.config == "object" && (
|
|
21293
|
-
} else if (dt === "skip") return void
|
|
21296
|
+
if (dt.action === "abort") return N = "AbortError", V = $.file, X = $.inputElem, tt = dt.reason, void (P(y.error) && y.error({ name: N }, V, X, tt));
|
|
21297
|
+
if (dt.action === "skip") return void k();
|
|
21298
|
+
typeof dt.config == "object" && ($.instanceConfig = s.extend($.instanceConfig, dt.config));
|
|
21299
|
+
} else if (dt === "skip") return void k();
|
|
21294
21300
|
}
|
|
21295
|
-
var
|
|
21296
|
-
|
|
21297
|
-
P(
|
|
21298
|
-
}, c.parse(
|
|
21301
|
+
var U = $.instanceConfig.complete;
|
|
21302
|
+
$.instanceConfig.complete = function(Z) {
|
|
21303
|
+
P(U) && U(Z, $.file, $.inputElem), k();
|
|
21304
|
+
}, c.parse($.file, $.instanceConfig);
|
|
21299
21305
|
}
|
|
21300
21306
|
}
|
|
21301
|
-
function
|
|
21302
|
-
|
|
21307
|
+
function k() {
|
|
21308
|
+
T.splice(0, 1), R();
|
|
21303
21309
|
}
|
|
21304
21310
|
}), o && (i.onmessage = function(y) {
|
|
21305
21311
|
y = y.data, c.WORKER_ID === void 0 && y && (c.WORKER_ID = y.workerId), typeof y.input == "string" ? i.postMessage({ workerId: c.WORKER_ID, results: c.parse(y.input, y.config), finished: !0 }) : (i.File && y.input instanceof File || y.input instanceof Object) && (y = c.parse(y.input, y.config)) && i.postMessage({ workerId: c.WORKER_ID, results: y, finished: !0 });
|
|
@@ -21460,18 +21466,18 @@ const YC = ["id"], BC = /* @__PURE__ */ me({
|
|
|
21460
21466
|
})), h = () => {
|
|
21461
21467
|
s("toggleModal", !1);
|
|
21462
21468
|
}, f = H(() => {
|
|
21463
|
-
var
|
|
21464
|
-
if (!a.value || !((
|
|
21469
|
+
var C, E, P;
|
|
21470
|
+
if (!a.value || !((C = i.chartData) != null && C.meta.metric_names))
|
|
21465
21471
|
return { headers: [], rows: [], csvHeaders: {} };
|
|
21466
21472
|
const m = i.chartData.data.some((y) => y.timestamp !== i.chartData.data[0].timestamp), _ = i.chartData.data.map((y) => {
|
|
21467
21473
|
const b = new Date(y.timestamp);
|
|
21468
21474
|
return {
|
|
21469
|
-
...Object.keys(y.event).reduce((R,
|
|
21470
|
-
if (
|
|
21471
|
-
const N = y.event[
|
|
21472
|
-
R[
|
|
21475
|
+
...Object.keys(y.event).reduce((R, k) => {
|
|
21476
|
+
if (k in i.chartData.meta.display) {
|
|
21477
|
+
const N = y.event[k], V = i.chartData.meta.display[k];
|
|
21478
|
+
R[k] = N && V && V[N].name || y.event[k];
|
|
21473
21479
|
} else
|
|
21474
|
-
R[
|
|
21480
|
+
R[k] = y.event[k];
|
|
21475
21481
|
return R;
|
|
21476
21482
|
}, {}),
|
|
21477
21483
|
...m ? {
|
|
@@ -21527,7 +21533,7 @@ const YC = ["id"], BC = /* @__PURE__ */ me({
|
|
|
21527
21533
|
onKeyup: ip(h, ["esc"])
|
|
21528
21534
|
}, {
|
|
21529
21535
|
default: Ut(() => {
|
|
21530
|
-
var
|
|
21536
|
+
var C;
|
|
21531
21537
|
return [
|
|
21532
21538
|
ct("div", null, [
|
|
21533
21539
|
a.value ? (K(), vt("div", UC, [
|
|
@@ -21538,7 +21544,7 @@ const YC = ["id"], BC = /* @__PURE__ */ me({
|
|
|
21538
21544
|
class: "vitals-table",
|
|
21539
21545
|
fetcher: g,
|
|
21540
21546
|
"fetcher-cache-key": String(l.value),
|
|
21541
|
-
headers: ((
|
|
21547
|
+
headers: ((C = f.value) == null ? void 0 : C.headers) || [],
|
|
21542
21548
|
"hide-pagination": "",
|
|
21543
21549
|
"row-hover": !1,
|
|
21544
21550
|
sortable: !1
|