@kong-ui-public/analytics-chart 10.20.0 → 10.21.0
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/style.css +1 -1
- package/dist/vitals-chart.es.js +676 -676
- package/dist/vitals-chart.umd.js +2 -2
- package/package.json +7 -7
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as L, getCurrentInstance as Vl, onUnmounted as Zn, shallowRef as qe, onMounted as Qn, onBeforeUnmount as kh, watch as oe, inject as Js, nextTick as
|
|
1
|
+
import { computed as L, getCurrentInstance as Vl, onUnmounted as Zn, shallowRef as qe, onMounted as Qn, onBeforeUnmount as kh, watch as oe, inject as Js, nextTick as Oh, isRef as dm, toRefs as hm, customRef as fm, toValue as Mt, getCurrentScope as pm, onScopeDispose as mm, ref as Vt, unref as Z, watchEffect as Pc, defineComponent as ue, openBlock as X, createElementBlock as at, createElementVNode as lt, toDisplayString as ut, createVNode as Xt, Fragment as Un, renderList as gi, normalizeClass as Le, normalizeStyle as _i, createBlock as It, createCommentVNode as Nt, resolveComponent as Re, createSlots as Ch, withCtx as Ut, useTemplateRef as Gi, reactive as tr, toRef as Tt, Teleport as Ah, h as ml, toRaw as gl, version as gm, isProxy as Ph, provide as Rc, createTextVNode as Ee, resolveDynamicComponent as ym, renderSlot as Ji, withKeys as bm } from "vue";
|
|
2
2
|
import { createI18n as _m, i18nTComponent as vm } from "@kong-ui-public/i18n";
|
|
3
3
|
import { CloseIcon as xm, DragIcon as wm, WarningIcon as Sm, EqualIcon as Tm, InfoIcon as Mm } from "@kong/icons";
|
|
4
|
-
import { buildDeltaMapping as Dm, calculateChange as km, changePolarity as
|
|
4
|
+
import { buildDeltaMapping as Dm, calculateChange as km, changePolarity as Om, defineIcon as Cm, metricChange as Ec, useTrendRange as Am } from "@kong-ui-public/analytics-metric-provider";
|
|
5
5
|
const Pm = "No data in the current time frame", Rm = "Once there is traffic, it will display here", Em = "Grouped value limit exceeded, showing the top {maxReturned}", Im = "no-name", Lm = "debug", Nm = "Total", Fm = "Open in explorer", zm = "More actions", Um = "Requests that do not have a value for the selected group", Hm = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}", "token count": "token{plural}", "%": "%" }, Bm = { dataError: "Error loading data", noDataRange: "No data in selected range", noDataRetry: "Please adjust the time period and try again", timeRangeSelected: "selected", exportPreview: "Export preview", exportAsCsv: "Export as CSV", exportTimeRange: "Time range", exportDescription: "Exports a CSV of the data represented in the chart.", maximumRecordAmount: "The number of groups is limited to {value}", previewRows: "Previewing {rowsMax} of {rowsTotal} row{plural}", downloadButton: "Export", cancelButton: "Cancel", UtcOffset: "UTC offset", Timestamp: "Timestamp" }, Wm = { forbidden: { message: "Data request forbidden", details: "To access this data, either filter for an entity you have access to or request analytics viewer access from your administrator." }, time_range_exceeded: { message: "Time range exceeded", details: "The time range for this report is outside of your organization's data retention period" }, timeout: { message: "Data request timed out", details: "We're sorry, the request timed out. Please consider using a shorter time period or try again later." }, canceled: { message: "Request canceled" }, other: { message: "Bad request" } }, Ym = { datapointValueDisplay: "{value} {unit}" }, $m = { ai_count: "LLM request count", ai_plugin: "AI plugin", ai_provider: "Provider", ai_request_model: "Request model", ai_response_model: "Response model", error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", requests_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", kong_internal_latency_average: "Kong internal latency (avg)", kong_internal_latency_p99: "Kong internal latency (p99)", kong_internal_latency_p95: "Kong internal latency (p95)", kong_internal_latency_p50: "Kong internal latency (p50)", llm_cache_status: "Cache status", llm_embeddings_model: "Embeddings model", llm_embeddings_provider: "Embeddings provider", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_average: "Response size (avg)", response_size_sum: "Response size (sum)", response_source: "Response source", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_average: "Request size (avg)", request_size_sum: "Request size (sum)", control_plane: "Control plane", control_plane_group: "Control plane group", consumer: "Consumer", country_code: "Country", country: "Country", data_plane_node: "Data plane node", data_plane_node_version: "Data plane node version", api_package: "API package", api_product: "API product", api_product_version: "API product version", portal: "Portal", realm: "Realm", runtime_group: "Runtime group", gateway_service: "Gateway service", route: "Route", application: "Application", status_code: "Status code", status_code_grouped: "Status code (grouped)", upstream_status_code: "Upstream status code", upstream_status_code_grouped: "Upstream status code group", time: "Time", Service: "Service", ServiceVersion: "Service version", Route: "Route", Application: "Application", RuntimeGroup: "Runtime group", GatewayService: "Gateway service", StatusCode: "Status code", CodeClass: "Status code (grouped)", Time: "Time", API_PRODUCT: "Api product", API_PRODUCT_VERSION: "Api product version", RUNTIME_GROUP: "Runtime group", GATEWAY_SERVICE: "Gateway service", ROUTE: "Route", APPLICATION: "Application", STATUS_CODE: "Status code", STATUS_CODE_GROUPED: "Status code (grouped)", TIME: "Time", ORGANIZATION: "Organization", TotalRequests: "Request count", RequestsPerMinute: "Requests per minute", LatencyP99: "Response latency (p99)", LatencyP95: "Response latency (p95)", LatencyP50: "Response latency (p50)", LatencyAverage: "Response latency (avg)", UpstreamLatencyP99: "Upstream latency (p99)", UpstreamLatencyP95: "Upstream latency (p95)", UpstreamLatencyP50: "Upstream latency (p50)", UpstreamLatencyAverage: "Upstream latency (avg)", KongLatencyP99: "Kong latency (p99)", KongLatencyP95: "Kong latency (p95)", KongLatencyP50: "Kong latency (p50)", KongLatencyAverage: "Kong latency (avg)", ResponseSizeP99: "Response size (p99)", ResponseSizeP95: "Response size (p95)", ResponseSizeP50: "Response size (p50)", RequestSizeP99: "Request size (p99)", RequestSizeP95: "Request size (p95)", RequestSizeP50: "Request size (p50)", SuccessfulRequests: "Successful requests", SUCCESS: "Successful requests", FailedRequests: "Failed requests", FAILURE: "Failed requests", "5XX": "5xx", "4XX": "4xx", "3XX": "3xx", "2XX": "2xx", "1XX": "1xx", REQUEST_COUNT: "Request count", REQUEST_PER_MINUTE: "Requests per minute", RESPONSE_LATENCY_P99: "Response latency", RESPONSE_LATENCY_P95: "Response latency", RESPONSE_LATENCY_P50: "Response latency", RESPONSE_SIZE_P99: "Response size (p99)", RESPONSE_SIZE_P95: "Response size (p95)", RESPONSE_SIZE_P50: "Response size (p50)", REQUEST_SIZE_P99: "Request size (p99)", REQUEST_SIZE_P95: "Request size (p95)", REQUEST_SIZE_P50: "Request size (p50)", CONTROL_PLANE: "Control plane", ____OTHER____: "Others", ai_request_count: "Request count", total_tokens: "Total token count", prompt_tokens: "Prompt token count", completion_tokens: "Completion token count", cost: "Costs", llm_cache_embeddings_latency_average: "Embeddings latency (avg)", llm_cache_fetch_latency_average: "Fetch latency (avg)", llm_latency_average: "Llm latency (avg)", "threshold-warning": "Warning threshold: {value}", "threshold-error": "Error threshold: {value}", "thatreshold-neutral": "Alert threshold: {value}", api: "API", vulnerability_count: "Vulnerability count", a2a_latency_average: "A2A latency (avg)", a2a_response_size_sum: "A2A response size (sum)", a2a_context_id: "A2A context ID", a2a_error: "A2A error", a2a_method: "A2A method", a2a_task_id: "A2A task ID", mcp_error: "MCP error", mcp_method: "MCP method", mcp_response_size_sum: "MCP response size (sum)", mcp_session_id: "MCP session ID", mcp_tool_name: "MCP tool name", mcp_response_body_size_sum: "MCP response size (sum)", control_plane_count: "Control plane count", service_count: "Gateway service count", "record_bytes:sum": "Record size (sum)", "record_count:sum": "Record count (sum)", "request_count:sum": "Request count (sum)", route_count: "Route count", consumer_count: "Consumer count", plugin_count: "Plugin count", node_count: "Data plane node count", virtual_cluster_id: "Virtual cluster", backend_cluster_id: "Backend cluster", listener_id: "Listener", principal_name: "Principal name", principal_type: "Principal type", request_type: "Request type", topic_name: "Topic name", partition_index: "Partition index", api_key: "API key" }, jm = { error_rate: "Error rate in {unit}", request_count: "Request count", request_per_minute: "Requests per minute", requests_per_minute: "Requests per minute", latency_in: "Latency in {unit}", size_in: "Size in {unit}", response_latency_average: "Response latency (avg) in {unit}", response_latency_p99: "Response latency (p99) in {unit}", response_latency_p95: "Response latency (p95) in {unit}", response_latency_p50: "Response latency (p50) in {unit}", upstream_latency_p99: "Upstream latency (p99) in {unit}", upstream_latency_p95: "Upstream latency (p95) in {unit}", upstream_latency_p50: "Upstream latency (p50) in {unit}", kong_latency_p99: "Kong latency (p99) in {unit}", kong_latency_p95: "Kong latency (p95) in {unit}", kong_latency_p50: "Kong latency (p50) in {unit}", kong_internal_latency_average: "Kong internal latency (avg) in {unit}", kong_internal_latency_p99: "Kong internal latency (p99) in {unit}", kong_internal_latency_p95: "Kong internal latency (p95) in {unit}", kong_internal_latency_p50: "Kong internal latency (p50) in {unit}", response_size_p99: "Response size (p99) in {unit}", response_size_p95: "Response size (p95) in {unit}", response_size_p50: "Response size (p50) in {unit}", request_size_p99: "Request size (p99) in {unit}", request_size_p95: "Request size (p95) in {unit}", request_size_p50: "Request size (p50) in {unit}", request_size_sum: "Request size (sum) in {unit}", REQUEST_COUNT: "Request count", REQUEST_PER_MINUTE: "Requests per minute", RESPONSE_LATENCY_P99: "Response latency (p99) in {unit}", RESPONSE_LATENCY_P95: "Response latency (p95) in {unit}", RESPONSE_LATENCY_P50: "Response latency (p50) in {unit}", RESPONSE_SIZE_P99: "Response size (p99) in {unit}", RESPONSE_SIZE_P95: "Response size (p95) in {unit}", RESPONSE_SIZE_P50: "Response size (p50) in {unit}", REQUEST_SIZE_P99: "Request size (p99) in {unit}", REQUEST_SIZE_P95: "Request size (p95) in {unit}", REQUEST_SIZE_P50: "Request size (p50) in {unit}", TotalRequests: "Request count", RequestsPerMinute: "Requests per minute", LatencyP99: "Response latency (p99) in {unit}", LatencyP95: "Response latency (p95) in {unit}", LatencyP50: "Response latency (p50) in {unit}", LatencyAverage: "Response latency (avg) in {unit}", UpstreamLatencyP99: "Upstream latency (p99) in {unit}", UpstreamLatencyP95: "Upstream latency (p95) in {unit}", UpstreamLatencyP50: "Upstream latency (p50) in {unit}", UpstreamLatencyAverage: "Upstream latency (avg) in {unit}", KongLatencyP99: "Kong latency (p99) in {unit}", KongLatencyP95: "Kong latency (p95) in {unit}", KongLatencyP50: "Kong latency (p50) in {unit}", KongLatencyAverage: "Kong latency (avg) in {unit}", ResponseSizeP99: "Response size (p99) in {unit}", ResponseSizeP95: "Response size (p95) in {unit}", ResponseSizeP50: "Response size (p50) in {unit}", RequestSizeP99: "Request size (p99) in {unit}", RequestSizeP95: "Request size (p95) in {unit}", RequestSizeP50: "Request size (p50) in {unit}", ai_request_count: "Request count", total_tokens: "Total token count", prompt_tokens: "Prompt token count", completion_tokens: "Completion token count", cost: "Costs", llm_cache_embeddings_latency_average: "Embeddings latency (avg)", llm_cache_fetch_latency_average: "Fetch latency (avg)", llm_latency_average: "Llm latency (avg)", api: "API", a2a_latency_average: "A2A latency (avg) in {unit}", a2a_response_size_sum: "A2A response size (sum) in {unit}", a2a_context_id: "A2A context ID", a2a_error: "A2A error", a2a_method: "A2A method", a2a_task_id: "A2A task ID", mcp_response_size_sum: "MCP response size (sum) in {unit}", mcp_response_body_size_sum: "MCP response body size (sum) in {unit}", control_plane_count: "Control plane count", service_count: "Gateway service count", route_count: "Route count", consumer_count: "Consumer count", plugin_count: "Plugin count", node_count: "Data plane node count" }, Vm = { tenSecondly: "@timestamp per 10 seconds", thirtySecondly: "@timestamp per 30 seconds", minutely: "@timestamp per minute", fiveMinutely: "@timestamp per 5 minutes", tenMinutely: "@timestamp per 10 minutes", thirtyMinutely: "@timestamp per 30 minutes", hourly: "@timestamp per hour", twoHourly: "@timestamp per 2 hours", twelveHourly: "@timestamp per 12 hours", daily: "@timestamp per day", weekly: "@timestamp per week" }, qm = { platform: "@timestamp created at" }, Gm = { nameLabel: "Name", defaultEmptyStateTitle: "No data to display", defaultErrorStateTitle: "Something went wrong", errors: { meta: "Error: response must contain 'meta'", display: "Error: 'display' response incorrectly formatted (must have at least one key)", metricNames: "Error: 'metricNames' response incorrectly formatted (must have at least one entry)" } }, Km = { valueError: "Invalid configuration", trend: { not_available: "Not available" } }, Xm = "Time range", Zm = "No data", Qm = { zoom: "Zoom in", view_requests: "View requests", cancel: "Cancel", explore: "Explore" }, Jm = { from: "From", to: "To" }, tg = {
|
|
6
6
|
noDataAvailableTitle: Pm,
|
|
7
7
|
noDataAvailableDescription: Rm,
|
|
@@ -567,15 +567,15 @@ const zc = {
|
|
|
567
567
|
x: (e) => e.x,
|
|
568
568
|
y: (e) => e.y
|
|
569
569
|
};
|
|
570
|
-
function
|
|
570
|
+
function Og(e) {
|
|
571
571
|
const t = e.split("."), n = [];
|
|
572
572
|
let i = "";
|
|
573
573
|
for (const s of t)
|
|
574
574
|
i += s, i.endsWith("\\") ? i = i.slice(0, -1) + "." : (n.push(i), i = "");
|
|
575
575
|
return n;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const t =
|
|
577
|
+
function Cg(e) {
|
|
578
|
+
const t = Og(e);
|
|
579
579
|
return (n) => {
|
|
580
580
|
for (const i of t) {
|
|
581
581
|
if (i === "")
|
|
@@ -586,7 +586,7 @@ function Og(e) {
|
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
function qn(e, t) {
|
|
589
|
-
return (zc[t] || (zc[t] =
|
|
589
|
+
return (zc[t] || (zc[t] = Cg(t)))(e);
|
|
590
590
|
}
|
|
591
591
|
function Xl(e) {
|
|
592
592
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -1740,7 +1740,7 @@ function zn(e, t) {
|
|
|
1740
1740
|
y: Math.round((c - h) / p * n.height / i)
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function Oy(e, t, n) {
|
|
1744
1744
|
let i, s;
|
|
1745
1745
|
if (t === void 0 || n === void 0) {
|
|
1746
1746
|
const r = e && oc(e);
|
|
@@ -1759,8 +1759,8 @@ function Cy(e, t, n) {
|
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
1761
|
const Wn = (e) => Math.round(e * 10) / 10;
|
|
1762
|
-
function
|
|
1763
|
-
const s = Eo(e), r = bi(s, "margin"), o = bo(s.maxWidth, e, "clientWidth") || po, a = bo(s.maxHeight, e, "clientHeight") || po, l =
|
|
1762
|
+
function Cy(e, t, n, i) {
|
|
1763
|
+
const s = Eo(e), r = bi(s, "margin"), o = bo(s.maxWidth, e, "clientWidth") || po, a = bo(s.maxHeight, e, "clientHeight") || po, l = Oy(e, t, n);
|
|
1764
1764
|
let { width: c, height: u } = l;
|
|
1765
1765
|
if (s.boxSizing === "content-box") {
|
|
1766
1766
|
const h = bi(s, "border", "width"), f = bi(s, "padding");
|
|
@@ -1905,16 +1905,16 @@ function nf(e, t, n) {
|
|
|
1905
1905
|
e
|
|
1906
1906
|
];
|
|
1907
1907
|
const { property: i, start: s, end: r } = n, o = t.length, { compare: a, between: l, normalize: c } = ef(i), { start: u, end: d, loop: h, style: f } = Ly(e, t, n), p = [];
|
|
1908
|
-
let g = !1, y = null, x, T,
|
|
1909
|
-
const k = () => l(s,
|
|
1908
|
+
let g = !1, y = null, x, T, C;
|
|
1909
|
+
const k = () => l(s, C, x) && a(s, C) !== 0, O = () => a(r, x) === 0 || l(r, C, x), A = () => g || k(), M = () => !g || O();
|
|
1910
1910
|
for (let _ = u, b = u; _ <= d; ++_)
|
|
1911
|
-
T = t[_ % o], !T.skip && (x = c(T[i]), x !==
|
|
1911
|
+
T = t[_ % o], !T.skip && (x = c(T[i]), x !== C && (g = l(x, s, r), y === null && A() && (y = a(x, s) === 0 ? _ : b), y !== null && M() && (p.push(Zc({
|
|
1912
1912
|
start: y,
|
|
1913
1913
|
end: _,
|
|
1914
1914
|
loop: h,
|
|
1915
1915
|
count: o,
|
|
1916
1916
|
style: f
|
|
1917
|
-
})), y = null), b = _,
|
|
1917
|
+
})), y = null), b = _, C = x));
|
|
1918
1918
|
return y !== null && p.push(Zc({
|
|
1919
1919
|
start: y,
|
|
1920
1920
|
end: d,
|
|
@@ -3005,8 +3005,8 @@ class lf extends ti {
|
|
|
3005
3005
|
width: c ? Math.abs(g.size) : y.size
|
|
3006
3006
|
};
|
|
3007
3007
|
h && (T.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : s));
|
|
3008
|
-
const
|
|
3009
|
-
cb(T,
|
|
3008
|
+
const C = T.options || t[f].options;
|
|
3009
|
+
cb(T, C, x, o), db(T, C, u.ratio), this.updateElement(t[f], f, T, s);
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
3012
|
_getStacks(t, n) {
|
|
@@ -3065,8 +3065,8 @@ class lf extends ti {
|
|
|
3065
3065
|
let x = n.getPixelForValue(y);
|
|
3066
3066
|
if (this.chart.getDataVisibility(t) ? p = n.getPixelForValue(h + f) : p = x, g = p - x, Math.abs(g) < o) {
|
|
3067
3067
|
g = ab(g, n, a) * o, d === a && (x -= g / 2);
|
|
3068
|
-
const T = n.getPixelForDecimal(0),
|
|
3069
|
-
x = Math.max(Math.min(x,
|
|
3068
|
+
const T = n.getPixelForDecimal(0), C = n.getPixelForDecimal(1), k = Math.min(T, C), O = Math.max(T, C);
|
|
3069
|
+
x = Math.max(Math.min(x, O), k), p = x + g, i && !u && (l._stacks[n.axis]._visualValues[s] = n.getValueForPixel(p) - n.getValueForPixel(x));
|
|
3070
3070
|
}
|
|
3071
3071
|
if (x === n.getPixelForValue(a)) {
|
|
3072
3072
|
const T = un(g) * n.getLineWidthForValue(a) / 2;
|
|
@@ -3192,7 +3192,7 @@ class hb extends ti {
|
|
|
3192
3192
|
function fb(e, t, n) {
|
|
3193
3193
|
let i = 1, s = 1, r = 0, o = 0;
|
|
3194
3194
|
if (t < Lt) {
|
|
3195
|
-
const a = e, l = a + t, c = Math.cos(a), u = Math.sin(a), d = Math.cos(l), h = Math.sin(l), f = (
|
|
3195
|
+
const a = e, l = a + t, c = Math.cos(a), u = Math.sin(a), d = Math.cos(l), h = Math.sin(l), f = (C, k, O) => ir(C, a, l, !0) ? 1 : Math.max(k, k * n, O, O * n), p = (C, k, O) => ir(C, a, l, !0) ? -1 : Math.min(k, k * n, O, O * n), g = f(0, c, d), y = f(Ft, u, h), x = p(yt, c, d), T = p(yt + Ft, u, h);
|
|
3196
3196
|
i = (g - x) / 2, s = (y - T) / 2, r = -(g + x) / 2, o = -(y + T) / 2;
|
|
3197
3197
|
}
|
|
3198
3198
|
return {
|
|
@@ -3311,8 +3311,8 @@ class hr extends ti {
|
|
|
3311
3311
|
};
|
|
3312
3312
|
}
|
|
3313
3313
|
update(t) {
|
|
3314
|
-
const n = this.chart, { chartArea: i } = n, 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(Mg(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: p, offsetY: g } = fb(d, u, l), y = (i.width - o) / h, x = (i.height - o) / f, T = Math.max(Math.min(y, x) / 2, 0),
|
|
3315
|
-
this.offsetX = p *
|
|
3314
|
+
const n = this.chart, { chartArea: i } = n, 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(Mg(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: p, offsetY: g } = fb(d, u, l), y = (i.width - o) / h, x = (i.height - o) / f, T = Math.max(Math.min(y, x) / 2, 0), C = Lh(this.options.radius, T), k = Math.max(C * l, 0), O = (C - k) / this._getVisibleDatasetWeightTotal();
|
|
3315
|
+
this.offsetX = p * C, this.offsetY = g * C, s.total = this.calculateTotal(), this.outerRadius = C - O * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - O * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3316
3316
|
}
|
|
3317
3317
|
_circumference(t, n) {
|
|
3318
3318
|
const i = this.options, s = this._cachedMeta, r = this._getCircumference();
|
|
@@ -3324,16 +3324,16 @@ class hr extends ti {
|
|
|
3324
3324
|
for (T = 0; T < n; ++T)
|
|
3325
3325
|
x += this._circumference(T, r);
|
|
3326
3326
|
for (T = n; T < n + i; ++T) {
|
|
3327
|
-
const
|
|
3327
|
+
const C = this._circumference(T, r), k = t[T], O = {
|
|
3328
3328
|
x: u + this.offsetX,
|
|
3329
3329
|
y: d + this.offsetY,
|
|
3330
3330
|
startAngle: x,
|
|
3331
|
-
endAngle: x +
|
|
3332
|
-
circumference:
|
|
3331
|
+
endAngle: x + C,
|
|
3332
|
+
circumference: C,
|
|
3333
3333
|
outerRadius: p,
|
|
3334
3334
|
innerRadius: f
|
|
3335
3335
|
};
|
|
3336
|
-
y && (
|
|
3336
|
+
y && (O.options = g || this.resolveDataElementOptions(T, k.active ? "active" : s)), x += C, this.updateElement(k, T, O, s);
|
|
3337
3337
|
}
|
|
3338
3338
|
}
|
|
3339
3339
|
calculateTotal() {
|
|
@@ -3426,16 +3426,16 @@ class cf extends ti {
|
|
|
3426
3426
|
}, t), this.updateElements(s, a, l, t);
|
|
3427
3427
|
}
|
|
3428
3428
|
updateElements(t, n, i, s) {
|
|
3429
|
-
const r = s === "reset", { iScale: o, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(n, s), h = o.axis, f = a.axis, { spanGaps: p, segment: g } = this.options, y = Gn(p) ? p : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || r || s === "none", T = n + i,
|
|
3429
|
+
const r = s === "reset", { iScale: o, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(n, s), h = o.axis, f = a.axis, { spanGaps: p, segment: g } = this.options, y = Gn(p) ? p : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || r || s === "none", T = n + i, C = t.length;
|
|
3430
3430
|
let k = n > 0 && this.getParsed(n - 1);
|
|
3431
|
-
for (let
|
|
3432
|
-
const A = t[
|
|
3433
|
-
if (
|
|
3431
|
+
for (let O = 0; O < C; ++O) {
|
|
3432
|
+
const A = t[O], M = x ? A : {};
|
|
3433
|
+
if (O < n || O >= T) {
|
|
3434
3434
|
M.skip = !0;
|
|
3435
3435
|
continue;
|
|
3436
3436
|
}
|
|
3437
|
-
const _ = this.getParsed(
|
|
3438
|
-
M.skip = isNaN(w) || isNaN(D) || b, M.stop =
|
|
3437
|
+
const _ = this.getParsed(O), b = ht(_[f]), w = M[h] = o.getPixelForValue(_[h], O), D = M[f] = r || b ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, _, l) : _[f], O);
|
|
3438
|
+
M.skip = isNaN(w) || isNaN(D) || b, M.stop = O > 0 && Math.abs(_[h] - k[h]) > y, g && (M.parsed = _, M.raw = c.data[O]), d && (M.options = u || this.resolveDataElementOptions(O, A.active ? "active" : s)), x || this.updateElement(A, O, M, s), k = _;
|
|
3439
3439
|
}
|
|
3440
3440
|
}
|
|
3441
3441
|
getMaxOverflow() {
|
|
@@ -3561,13 +3561,13 @@ class uf extends ti {
|
|
|
3561
3561
|
f += this._computeAngle(p, s, g);
|
|
3562
3562
|
for (p = n; p < n + i; p++) {
|
|
3563
3563
|
const y = t[p];
|
|
3564
|
-
let x = f, T = f + this._computeAngle(p, s, g),
|
|
3565
|
-
f = T, r && (l.animateScale && (
|
|
3564
|
+
let x = f, T = f + this._computeAngle(p, s, g), C = o.getDataVisibility(p) ? c.getDistanceFromCenterForValue(this.getParsed(p).r) : 0;
|
|
3565
|
+
f = T, r && (l.animateScale && (C = 0), l.animateRotate && (x = T = h));
|
|
3566
3566
|
const k = {
|
|
3567
3567
|
x: u,
|
|
3568
3568
|
y: d,
|
|
3569
3569
|
innerRadius: 0,
|
|
3570
|
-
outerRadius:
|
|
3570
|
+
outerRadius: C,
|
|
3571
3571
|
startAngle: x,
|
|
3572
3572
|
endAngle: T,
|
|
3573
3573
|
options: this.resolveDataElementOptions(p, y.active ? "active" : s)
|
|
@@ -3703,10 +3703,10 @@ class gb extends ti {
|
|
|
3703
3703
|
}
|
|
3704
3704
|
updateElements(t, n, i, s) {
|
|
3705
3705
|
const r = s === "reset", { iScale: o, vScale: a, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(n, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = o.axis, p = a.axis, { spanGaps: g, segment: y } = this.options, x = Gn(g) ? g : Number.POSITIVE_INFINITY, T = this.chart._animationsDisabled || r || s === "none";
|
|
3706
|
-
let
|
|
3706
|
+
let C = n > 0 && this.getParsed(n - 1);
|
|
3707
3707
|
for (let k = n; k < n + i; ++k) {
|
|
3708
|
-
const
|
|
3709
|
-
M.skip = isNaN(b) || isNaN(w) || _, M.stop = k > 0 && Math.abs(A[f] -
|
|
3708
|
+
const O = t[k], A = this.getParsed(k), M = T ? O : {}, _ = ht(A[p]), b = M[f] = o.getPixelForValue(A[f], k), w = M[p] = r || _ ? a.getBasePixel() : a.getPixelForValue(l ? this.applyStack(a, A, l) : A[p], k);
|
|
3709
|
+
M.skip = isNaN(b) || isNaN(w) || _, M.stop = k > 0 && Math.abs(A[f] - C[f]) > x, y && (M.parsed = A, M.raw = c.data[k]), h && (M.options = d || this.resolveDataElementOptions(k, O.active ? "active" : s)), T || this.updateElement(O, k, M, s), C = A;
|
|
3710
3710
|
}
|
|
3711
3711
|
this.updateSharedOptions(d, s, u);
|
|
3712
3712
|
}
|
|
@@ -4052,7 +4052,7 @@ function kb(e) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
e.y += n("top"), e.x += n("left"), n("right"), n("bottom");
|
|
4054
4054
|
}
|
|
4055
|
-
function
|
|
4055
|
+
function Ob(e, t) {
|
|
4056
4056
|
const n = t.maxPadding;
|
|
4057
4057
|
function i(s) {
|
|
4058
4058
|
const r = {
|
|
@@ -4077,7 +4077,7 @@ function zs(e, t, n, i) {
|
|
|
4077
4077
|
const s = [];
|
|
4078
4078
|
let r, o, a, l, c, u;
|
|
4079
4079
|
for (r = 0, o = e.length, c = 0; r < o; ++r) {
|
|
4080
|
-
a = e[r], l = a.box, l.update(a.width || t.w, a.height || t.h,
|
|
4080
|
+
a = e[r], l = a.box, l.update(a.width || t.w, a.height || t.h, Ob(a.horizontal, t));
|
|
4081
4081
|
const { same: d, other: h } = Db(t, n, a, i);
|
|
4082
4082
|
c |= d && s.length, u = u || h, l.fullSize || s.push(a);
|
|
4083
4083
|
}
|
|
@@ -4191,7 +4191,7 @@ class pf {
|
|
|
4191
4191
|
updateConfig(t) {
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
|
-
class
|
|
4194
|
+
class Cb extends pf {
|
|
4195
4195
|
acquireContext(t) {
|
|
4196
4196
|
return t && t.getContext && t.getContext("2d") || null;
|
|
4197
4197
|
}
|
|
@@ -4364,7 +4364,7 @@ class Bb extends pf {
|
|
|
4364
4364
|
return window.devicePixelRatio;
|
|
4365
4365
|
}
|
|
4366
4366
|
getMaximumSize(t, n, i, s) {
|
|
4367
|
-
return
|
|
4367
|
+
return Cy(t, n, i, s);
|
|
4368
4368
|
}
|
|
4369
4369
|
isAttached(t) {
|
|
4370
4370
|
const n = t && oc(t);
|
|
@@ -4372,7 +4372,7 @@ class Bb extends pf {
|
|
|
4372
4372
|
}
|
|
4373
4373
|
}
|
|
4374
4374
|
function Wb(e) {
|
|
4375
|
-
return !rc() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ?
|
|
4375
|
+
return !rc() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? Cb : Bb;
|
|
4376
4376
|
}
|
|
4377
4377
|
class ve {
|
|
4378
4378
|
static defaults = {};
|
|
@@ -4772,17 +4772,17 @@ class Si extends ve {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
_computeLabelSizes(t, n, i) {
|
|
4774
4774
|
const { ctx: s, _longestTextCache: r } = this, o = [], a = [], l = Math.floor(n / gu(n, i));
|
|
4775
|
-
let c = 0, u = 0, d, h, f, p, g, y, x, T,
|
|
4775
|
+
let c = 0, u = 0, d, h, f, p, g, y, x, T, C, k, O;
|
|
4776
4776
|
for (d = 0; d < n; d += l) {
|
|
4777
4777
|
if (p = t[d].label, g = this._resolveTickFontOptions(d), s.font = y = g.string, x = r[y] = r[y] || {
|
|
4778
4778
|
data: {},
|
|
4779
4779
|
gc: []
|
|
4780
|
-
}, T = g.lineHeight,
|
|
4781
|
-
|
|
4780
|
+
}, T = g.lineHeight, C = k = 0, !ht(p) && !kt(p))
|
|
4781
|
+
C = yo(s, x.data, x.gc, C, p), k = T;
|
|
4782
4782
|
else if (kt(p))
|
|
4783
4783
|
for (h = 0, f = p.length; h < f; ++h)
|
|
4784
|
-
|
|
4785
|
-
o.push(
|
|
4784
|
+
O = p[h], !ht(O) && !kt(O) && (C = yo(s, x.data, x.gc, C, O), k += T);
|
|
4785
|
+
o.push(C), a.push(k), c = Math.max(C, c), u = Math.max(k, u);
|
|
4786
4786
|
}
|
|
4787
4787
|
Zb(r, n);
|
|
4788
4788
|
const A = o.indexOf(c), M = a.indexOf(u), _ = (b) => ({
|
|
@@ -4846,7 +4846,7 @@ class Si extends ve {
|
|
|
4846
4846
|
const n = 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 = Ds(r), f = [], p = a.setContext(this.getContext()), g = p.display ? p.width : 0, y = g / 2, x = function(W) {
|
|
4847
4847
|
return ci(i, W, g);
|
|
4848
4848
|
};
|
|
4849
|
-
let T,
|
|
4849
|
+
let T, C, k, O, A, M, _, b, w, D, E, j;
|
|
4850
4850
|
if (o === "top")
|
|
4851
4851
|
T = x(this.bottom), M = this.bottom - h, b = T - y, D = x(t.top) + y, j = t.bottom;
|
|
4852
4852
|
else if (o === "bottom")
|
|
@@ -4873,9 +4873,9 @@ class Si extends ve {
|
|
|
4873
4873
|
A = T - y, _ = A - h, w = t.left, E = t.right;
|
|
4874
4874
|
}
|
|
4875
4875
|
const H = dt(s.ticks.maxTicksLimit, d), V = Math.max(1, Math.ceil(d / H));
|
|
4876
|
-
for (
|
|
4877
|
-
const W = this.getContext(
|
|
4878
|
-
k = Xb(this,
|
|
4876
|
+
for (C = 0; C < d; C += V) {
|
|
4877
|
+
const W = this.getContext(C), $ = r.setContext(W), R = a.setContext(W), z = $.lineWidth, U = $.color, P = R.dash || [], N = R.dashOffset, B = $.tickWidth, tt = $.tickColor, Q = $.tickBorderDash || [], q = $.tickBorderDashOffset;
|
|
4878
|
+
k = Xb(this, C, l), k !== void 0 && (O = ci(i, k, z), c ? A = _ = w = E = O : M = b = D = j = O, f.push({
|
|
4879
4879
|
tx1: A,
|
|
4880
4880
|
ty1: M,
|
|
4881
4881
|
tx2: _,
|
|
@@ -4898,17 +4898,17 @@ class Si extends ve {
|
|
|
4898
4898
|
}
|
|
4899
4899
|
_computeLabelItems(t) {
|
|
4900
4900
|
const n = 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 = Ds(i.grid), f = h + u, p = d ? -u : f, g = -te(this.labelRotation), y = [];
|
|
4901
|
-
let x, T,
|
|
4901
|
+
let x, T, C, k, O, A, M, _, b, w, D, E, j = "middle";
|
|
4902
4902
|
if (s === "top")
|
|
4903
4903
|
A = this.bottom - p, M = this._getXAxisLabelAlignment();
|
|
4904
4904
|
else if (s === "bottom")
|
|
4905
4905
|
A = this.top + p, M = this._getXAxisLabelAlignment();
|
|
4906
4906
|
else if (s === "left") {
|
|
4907
4907
|
const V = this._getYAxisLabelAlignment(h);
|
|
4908
|
-
M = V.textAlign,
|
|
4908
|
+
M = V.textAlign, O = V.x;
|
|
4909
4909
|
} else if (s === "right") {
|
|
4910
4910
|
const V = this._getYAxisLabelAlignment(h);
|
|
4911
|
-
M = V.textAlign,
|
|
4911
|
+
M = V.textAlign, O = V.x;
|
|
4912
4912
|
} else if (n === "x") {
|
|
4913
4913
|
if (s === "center")
|
|
4914
4914
|
A = (t.top + t.bottom) / 2 + f;
|
|
@@ -4919,22 +4919,22 @@ class Si extends ve {
|
|
|
4919
4919
|
M = this._getXAxisLabelAlignment();
|
|
4920
4920
|
} else if (n === "y") {
|
|
4921
4921
|
if (s === "center")
|
|
4922
|
-
|
|
4922
|
+
O = (t.left + t.right) / 2 - f;
|
|
4923
4923
|
else if (_t(s)) {
|
|
4924
4924
|
const V = Object.keys(s)[0], W = s[V];
|
|
4925
|
-
|
|
4925
|
+
O = this.chart.scales[V].getPixelForValue(W);
|
|
4926
4926
|
}
|
|
4927
4927
|
M = this._getYAxisLabelAlignment(h).textAlign;
|
|
4928
4928
|
}
|
|
4929
4929
|
n === "y" && (l === "start" ? j = "top" : l === "end" && (j = "bottom"));
|
|
4930
4930
|
const H = this._getLabelSizes();
|
|
4931
4931
|
for (x = 0, T = a.length; x < T; ++x) {
|
|
4932
|
-
|
|
4932
|
+
C = a[x], k = C.label;
|
|
4933
4933
|
const V = r.setContext(this.getContext(x));
|
|
4934
4934
|
_ = this.getPixelForTick(x) + r.labelOffset, b = this._resolveTickFontOptions(x), w = b.lineHeight, D = kt(k) ? k.length : 1;
|
|
4935
4935
|
const W = D / 2, $ = V.color, R = V.textStrokeColor, z = V.textStrokeWidth;
|
|
4936
4936
|
let U = M;
|
|
4937
|
-
o ? (
|
|
4937
|
+
o ? (O = _, M === "inner" && (x === T - 1 ? U = this.options.reverse ? "left" : "right" : x === 0 ? U = this.options.reverse ? "right" : "left" : U = "center"), s === "top" ? c === "near" || g !== 0 ? E = -D * w + w / 2 : c === "center" ? E = -H.highest.height / 2 - W * w + w : E = -H.highest.height + w / 2 : c === "near" || g !== 0 ? E = w / 2 : c === "center" ? E = H.highest.height / 2 - W * w : E = H.highest.height - D * w, d && (E *= -1), g !== 0 && !V.showLabelBackdrop && (O += w / 2 * Math.sin(g))) : (A = _, E = (1 - D) * w / 2);
|
|
4938
4938
|
let P;
|
|
4939
4939
|
if (V.showLabelBackdrop) {
|
|
4940
4940
|
const N = ee(V.backdropPadding), B = H.heights[x], tt = H.widths[x];
|
|
@@ -4978,7 +4978,7 @@ class Si extends ve {
|
|
|
4978
4978
|
textAlign: U,
|
|
4979
4979
|
textBaseline: j,
|
|
4980
4980
|
translation: [
|
|
4981
|
-
|
|
4981
|
+
O,
|
|
4982
4982
|
A
|
|
4983
4983
|
],
|
|
4984
4984
|
backdrop: P
|
|
@@ -6168,7 +6168,7 @@ function k0(e) {
|
|
|
6168
6168
|
"innerEnd"
|
|
6169
6169
|
]);
|
|
6170
6170
|
}
|
|
6171
|
-
function
|
|
6171
|
+
function O0(e, t, n, i) {
|
|
6172
6172
|
const s = k0(e.options.borderRadius), r = (n - t) / 2, o = Math.min(r, i * t / 2), a = (l) => {
|
|
6173
6173
|
const c = (n - Math.min(r, l)) * i / 2;
|
|
6174
6174
|
return ce(l, 0, Math.min(r, c));
|
|
@@ -6194,7 +6194,7 @@ function vo(e, t, n, i, s, r) {
|
|
|
6194
6194
|
const V = u > 0 ? u - i : 0, W = d > 0 ? d - i : 0, $ = (V + W) / 2, R = $ !== 0 ? p * $ / ($ + i) : p;
|
|
6195
6195
|
f = (p - R) / 2;
|
|
6196
6196
|
}
|
|
6197
|
-
const g = Math.max(1e-3, p * d - n / yt) / d, y = (p - g) / 2, x = l + y + f, T = s - y - f, { outerStart:
|
|
6197
|
+
const g = Math.max(1e-3, p * d - n / yt) / d, y = (p - g) / 2, x = l + y + f, T = s - y - f, { outerStart: C, outerEnd: k, innerStart: O, innerEnd: A } = O0(t, h, d, T - x), M = d - C, _ = d - k, b = x + C / M, w = T - k / _, D = h + O, E = h + A, j = x + O / D, H = T - A / E;
|
|
6198
6198
|
if (e.beginPath(), r) {
|
|
6199
6199
|
const V = (b + w) / 2;
|
|
6200
6200
|
if (e.arc(o, a, d, b, V), e.arc(o, a, d, V, w), k > 0) {
|
|
@@ -6206,15 +6206,15 @@ function vo(e, t, n, i, s, r) {
|
|
|
6206
6206
|
const z = Ui(E, H, o, a);
|
|
6207
6207
|
e.arc(z.x, z.y, A, T + Ft, H + Math.PI);
|
|
6208
6208
|
}
|
|
6209
|
-
const $ = (T - A / h + (x +
|
|
6210
|
-
if (e.arc(o, a, h, T - A / h, $, !0), e.arc(o, a, h, $, x +
|
|
6209
|
+
const $ = (T - A / h + (x + O / h)) / 2;
|
|
6210
|
+
if (e.arc(o, a, h, T - A / h, $, !0), e.arc(o, a, h, $, x + O / h, !0), O > 0) {
|
|
6211
6211
|
const z = Ui(D, j, o, a);
|
|
6212
|
-
e.arc(z.x, z.y,
|
|
6212
|
+
e.arc(z.x, z.y, O, j + Math.PI, x - Ft);
|
|
6213
6213
|
}
|
|
6214
6214
|
const R = Ui(M, x, o, a);
|
|
6215
|
-
if (e.lineTo(R.x, R.y),
|
|
6215
|
+
if (e.lineTo(R.x, R.y), C > 0) {
|
|
6216
6216
|
const z = Ui(M, b, o, a);
|
|
6217
|
-
e.arc(z.x, z.y,
|
|
6217
|
+
e.arc(z.x, z.y, C, x - Ft, b);
|
|
6218
6218
|
}
|
|
6219
6219
|
} else {
|
|
6220
6220
|
e.moveTo(o, a);
|
|
@@ -6225,7 +6225,7 @@ function vo(e, t, n, i, s, r) {
|
|
|
6225
6225
|
}
|
|
6226
6226
|
e.closePath();
|
|
6227
6227
|
}
|
|
6228
|
-
function
|
|
6228
|
+
function C0(e, t, n, i, s) {
|
|
6229
6229
|
const { fullCircles: r, startAngle: o, circumference: a } = t;
|
|
6230
6230
|
let l = t.endAngle;
|
|
6231
6231
|
if (r) {
|
|
@@ -6324,7 +6324,7 @@ class P0 extends ve {
|
|
|
6324
6324
|
const a = (this.startAngle + this.endAngle) / 2;
|
|
6325
6325
|
t.translate(Math.cos(a) * s, Math.sin(a) * s);
|
|
6326
6326
|
const l = 1 - Math.sin(Math.min(yt, i || 0)), c = s * l;
|
|
6327
|
-
t.fillStyle = n.backgroundColor, t.strokeStyle = n.borderColor,
|
|
6327
|
+
t.fillStyle = n.backgroundColor, t.strokeStyle = n.borderColor, C0(t, this, c, r, o), A0(t, this, c, r, o), t.restore();
|
|
6328
6328
|
}
|
|
6329
6329
|
}
|
|
6330
6330
|
function xf(e, t, n = t) {
|
|
@@ -6355,16 +6355,16 @@ function I0(e, t, n, i) {
|
|
|
6355
6355
|
function L0(e, t, n, i) {
|
|
6356
6356
|
const s = t.points, { count: r, start: o, ilen: a } = wf(s, n, i), { move: l = !0, reverse: c } = i || {};
|
|
6357
6357
|
let u = 0, d = 0, h, f, p, g, y, x;
|
|
6358
|
-
const T = (k) => (o + (c ? a - k : k)) % r,
|
|
6358
|
+
const T = (k) => (o + (c ? a - k : k)) % r, C = () => {
|
|
6359
6359
|
g !== y && (e.lineTo(u, y), e.lineTo(u, g), e.lineTo(u, x));
|
|
6360
6360
|
};
|
|
6361
6361
|
for (l && (f = s[T(0)], e.moveTo(f.x, f.y)), h = 0; h <= a; ++h) {
|
|
6362
6362
|
if (f = s[T(h)], f.skip)
|
|
6363
6363
|
continue;
|
|
6364
|
-
const k = f.x,
|
|
6365
|
-
A === p ? (
|
|
6364
|
+
const k = f.x, O = f.y, A = k | 0;
|
|
6365
|
+
A === p ? (O < g ? g = O : O > y && (y = O), u = (d * u + k) / ++d) : (C(), e.lineTo(k, O), p = A, d = 0, g = y = O), x = O;
|
|
6366
6366
|
}
|
|
6367
|
-
|
|
6367
|
+
C();
|
|
6368
6368
|
}
|
|
6369
6369
|
function Tl(e) {
|
|
6370
6370
|
const t = e.options, n = t.borderDash && t.borderDash.length;
|
|
@@ -6479,7 +6479,7 @@ class Io extends ve {
|
|
|
6479
6479
|
(this.points || []).length && r.borderWidth && (t.save(), H0(t, this, i, s), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
|
-
function
|
|
6482
|
+
function Ou(e, t, n, i) {
|
|
6483
6483
|
const s = e.options, { [n]: r } = e.getProps([
|
|
6484
6484
|
n
|
|
6485
6485
|
], i);
|
|
@@ -6520,10 +6520,10 @@ class B0 extends ve {
|
|
|
6520
6520
|
return Math.pow(t - r, 2) + Math.pow(n - o, 2) < Math.pow(s.hitRadius + s.radius, 2);
|
|
6521
6521
|
}
|
|
6522
6522
|
inXRange(t, n) {
|
|
6523
|
-
return
|
|
6523
|
+
return Ou(this, t, "x", n);
|
|
6524
6524
|
}
|
|
6525
6525
|
inYRange(t, n) {
|
|
6526
|
-
return
|
|
6526
|
+
return Ou(this, t, "y", n);
|
|
6527
6527
|
}
|
|
6528
6528
|
getCenterPoint(t) {
|
|
6529
6529
|
const { x: n, y: i } = this.getProps([
|
|
@@ -6695,12 +6695,12 @@ const Ml = [
|
|
|
6695
6695
|
"rgb(153, 102, 255)",
|
|
6696
6696
|
"rgb(201, 203, 207)"
|
|
6697
6697
|
// grey
|
|
6698
|
-
],
|
|
6698
|
+
], Cu = /* @__PURE__ */ Ml.map((e) => e.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
|
|
6699
6699
|
function Tf(e) {
|
|
6700
6700
|
return Ml[e % Ml.length];
|
|
6701
6701
|
}
|
|
6702
6702
|
function Mf(e) {
|
|
6703
|
-
return
|
|
6703
|
+
return Cu[e % Cu.length];
|
|
6704
6704
|
}
|
|
6705
6705
|
function K0(e, t) {
|
|
6706
6706
|
return e.borderColor = Tf(t), e.backgroundColor = Mf(t), ++t;
|
|
@@ -6757,10 +6757,10 @@ function n_(e, t, n, i, s) {
|
|
|
6757
6757
|
let u = t, d, h, f, p, g;
|
|
6758
6758
|
for (o[l++] = e[u], d = 0; d < r - 2; d++) {
|
|
6759
6759
|
let y = 0, x = 0, T;
|
|
6760
|
-
const
|
|
6761
|
-
for (T =
|
|
6760
|
+
const C = Math.floor((d + 1) * a) + 1 + t, k = Math.min(Math.floor((d + 2) * a) + 1, n) + t, O = k - C;
|
|
6761
|
+
for (T = C; T < k; T++)
|
|
6762
6762
|
y += e[T].x, x += e[T].y;
|
|
6763
|
-
y /=
|
|
6763
|
+
y /= O, x /= O;
|
|
6764
6764
|
const A = Math.floor(d * a) + 1 + t, M = Math.min(Math.floor((d + 1) * a) + 1, n) + t, { x: _, y: b } = e[u];
|
|
6765
6765
|
for (f = p = -1, T = A; T < M; T++)
|
|
6766
6766
|
p = 0.5 * Math.abs((_ - y) * (e[T].y - b) - (_ - e[T].x) * (x - b)), p > f && (f = p, h = e[T], g = T);
|
|
@@ -6773,8 +6773,8 @@ function i_(e, t, n, i) {
|
|
|
6773
6773
|
const y = [], x = t + n - 1, T = e[t].x, k = e[x].x - T;
|
|
6774
6774
|
for (o = t; o < t + n; ++o) {
|
|
6775
6775
|
a = e[o], l = (a.x - T) / k * i, c = a.y;
|
|
6776
|
-
const
|
|
6777
|
-
if (
|
|
6776
|
+
const O = l | 0;
|
|
6777
|
+
if (O === u)
|
|
6778
6778
|
c < p ? (p = c, d = o) : c > g && (g = c, h = o), s = (r * s + a.x) / ++r;
|
|
6779
6779
|
else {
|
|
6780
6780
|
const A = o - 1;
|
|
@@ -6788,7 +6788,7 @@ function i_(e, t, n, i) {
|
|
|
6788
6788
|
x: s
|
|
6789
6789
|
});
|
|
6790
6790
|
}
|
|
6791
|
-
o > 0 && A !== f && y.push(e[A]), y.push(a), u =
|
|
6791
|
+
o > 0 && A !== f && y.push(e[A]), y.push(a), u = O, r = 0, p = g = c, d = h = f = o;
|
|
6792
6792
|
}
|
|
6793
6793
|
}
|
|
6794
6794
|
return y;
|
|
@@ -7068,7 +7068,7 @@ function y_(e, t, n) {
|
|
|
7068
7068
|
point: i
|
|
7069
7069
|
};
|
|
7070
7070
|
}
|
|
7071
|
-
class
|
|
7071
|
+
class Of {
|
|
7072
7072
|
constructor(t) {
|
|
7073
7073
|
this.x = t.x, this.y = t.y, this.radius = t.radius;
|
|
7074
7074
|
}
|
|
@@ -7097,7 +7097,7 @@ function b_(e) {
|
|
|
7097
7097
|
if (n === "shape")
|
|
7098
7098
|
return !0;
|
|
7099
7099
|
const s = v_(e);
|
|
7100
|
-
return s instanceof
|
|
7100
|
+
return s instanceof Of ? s : kf(s, i);
|
|
7101
7101
|
}
|
|
7102
7102
|
function __(e, t) {
|
|
7103
7103
|
const n = e.getDatasetMeta(t);
|
|
@@ -7121,7 +7121,7 @@ function w_(e) {
|
|
|
7121
7121
|
const { scale: t, fill: n } = e, i = t.options, s = t.getLabels().length, r = i.reverse ? t.max : t.min, o = h_(n, t, r), a = [];
|
|
7122
7122
|
if (i.grid.circular) {
|
|
7123
7123
|
const l = t.getPointPositionForValue(0, r);
|
|
7124
|
-
return new
|
|
7124
|
+
return new Of({
|
|
7125
7125
|
x: l.x,
|
|
7126
7126
|
y: l.y,
|
|
7127
7127
|
radius: t.getDistanceFromCenterForValue(o)
|
|
@@ -7324,8 +7324,8 @@ class zu extends ve {
|
|
|
7324
7324
|
const { ctx: r, maxHeight: o, options: { labels: { padding: a } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], u = o - t;
|
|
7325
7325
|
let d = a, h = 0, f = 0, p = 0, g = 0;
|
|
7326
7326
|
return this.legendItems.forEach((y, x) => {
|
|
7327
|
-
const { itemWidth: T, itemHeight:
|
|
7328
|
-
x > 0 && f +
|
|
7327
|
+
const { itemWidth: T, itemHeight: C } = k_(i, n, r, y, s);
|
|
7328
|
+
x > 0 && f + C + 2 * a > u && (d += h + a, c.push({
|
|
7329
7329
|
width: h,
|
|
7330
7330
|
height: f
|
|
7331
7331
|
}), p += h + a, g++, h = f = 0), l[x] = {
|
|
@@ -7333,8 +7333,8 @@ class zu extends ve {
|
|
|
7333
7333
|
top: f,
|
|
7334
7334
|
col: g,
|
|
7335
7335
|
width: T,
|
|
7336
|
-
height:
|
|
7337
|
-
}, h = Math.max(h, T), f +=
|
|
7336
|
+
height: C
|
|
7337
|
+
}, h = Math.max(h, T), f += C + a;
|
|
7338
7338
|
}), d += h, c.push({
|
|
7339
7339
|
width: h,
|
|
7340
7340
|
height: f
|
|
@@ -7396,8 +7396,8 @@ class zu extends ve {
|
|
|
7396
7396
|
strikethrough: _.hidden,
|
|
7397
7397
|
textAlign: l.textAlign(_.textAlign)
|
|
7398
7398
|
});
|
|
7399
|
-
},
|
|
7400
|
-
|
|
7399
|
+
}, C = this.isHorizontal(), k = this._computeTitleHeight();
|
|
7400
|
+
C ? f = {
|
|
7401
7401
|
x: ye(r, this.left + u, this.right - i[0]),
|
|
7402
7402
|
y: this.top + u + k,
|
|
7403
7403
|
line: 0
|
|
@@ -7406,20 +7406,20 @@ class zu extends ve {
|
|
|
7406
7406
|
y: ye(r, this.top + k + u, this.bottom - n[0].height),
|
|
7407
7407
|
line: 0
|
|
7408
7408
|
}, Jh(this.ctx, t.textDirection);
|
|
7409
|
-
const
|
|
7409
|
+
const O = y + u;
|
|
7410
7410
|
this.legendItems.forEach((A, M) => {
|
|
7411
7411
|
s.strokeStyle = A.fontColor, s.fillStyle = A.fontColor;
|
|
7412
7412
|
const _ = s.measureText(A.text).width, b = l.textAlign(A.textAlign || (A.textAlign = o.textAlign)), w = p + h + _;
|
|
7413
7413
|
let D = f.x, E = f.y;
|
|
7414
|
-
l.setWidth(this.width),
|
|
7414
|
+
l.setWidth(this.width), C ? M > 0 && D + w + u > this.right && (E = f.y += O, f.line++, D = f.x = ye(r, this.left + u, this.right - i[f.line])) : M > 0 && E + O > this.bottom && (D = f.x = D + n[f.line].width + u, f.line++, E = f.y = ye(r, this.top + k + u, this.bottom - n[f.line].height));
|
|
7415
7415
|
const j = l.x(D);
|
|
7416
|
-
if (x(j, E, A), D = Bg(b, D + p + h,
|
|
7416
|
+
if (x(j, E, A), D = Bg(b, D + p + h, C ? D + w : this.right, t.rtl), T(l.x(D), E, A), C)
|
|
7417
7417
|
f.x += w + u;
|
|
7418
7418
|
else if (typeof A.text != "string") {
|
|
7419
7419
|
const H = c.lineHeight;
|
|
7420
|
-
f.y +=
|
|
7420
|
+
f.y += Cf(A, H) + u;
|
|
7421
7421
|
} else
|
|
7422
|
-
f.y +=
|
|
7422
|
+
f.y += O;
|
|
7423
7423
|
}), tf(this.ctx, t.textDirection);
|
|
7424
7424
|
}
|
|
7425
7425
|
drawTitle() {
|
|
@@ -7474,21 +7474,21 @@ class zu extends ve {
|
|
|
7474
7474
|
}
|
|
7475
7475
|
}
|
|
7476
7476
|
function k_(e, t, n, i, s) {
|
|
7477
|
-
const r =
|
|
7477
|
+
const r = O_(i, e, t, n), o = C_(s, i, t.lineHeight);
|
|
7478
7478
|
return {
|
|
7479
7479
|
itemWidth: r,
|
|
7480
7480
|
itemHeight: o
|
|
7481
7481
|
};
|
|
7482
7482
|
}
|
|
7483
|
-
function
|
|
7483
|
+
function O_(e, t, n, i) {
|
|
7484
7484
|
let s = e.text;
|
|
7485
7485
|
return s && typeof s != "string" && (s = s.reduce((r, o) => r.length > o.length ? r : o)), t + n.size / 2 + i.measureText(s).width;
|
|
7486
7486
|
}
|
|
7487
|
-
function
|
|
7487
|
+
function C_(e, t, n) {
|
|
7488
7488
|
let i = e;
|
|
7489
|
-
return typeof t.text != "string" && (i =
|
|
7489
|
+
return typeof t.text != "string" && (i = Cf(t, n)), i;
|
|
7490
7490
|
}
|
|
7491
|
-
function
|
|
7491
|
+
function Cf(e, t) {
|
|
7492
7492
|
const n = e.text ? e.text.length : 0;
|
|
7493
7493
|
return t * n;
|
|
7494
7494
|
}
|
|
@@ -7771,19 +7771,19 @@ function L_(e, t) {
|
|
|
7771
7771
|
}
|
|
7772
7772
|
function Uu(e, t) {
|
|
7773
7773
|
const n = e.chart.ctx, { body: i, footer: s, title: r } = e, { boxWidth: o, boxHeight: a } = t, l = Bt(t.bodyFont), c = Bt(t.titleFont), u = Bt(t.footerFont), d = r.length, h = s.length, f = i.length, p = ee(t.padding);
|
|
7774
|
-
let g = p.height, y = 0, x = i.reduce((k,
|
|
7774
|
+
let g = p.height, y = 0, x = i.reduce((k, O) => k + O.before.length + O.lines.length + O.after.length, 0);
|
|
7775
7775
|
if (x += e.beforeBody.length + e.afterBody.length, d && (g += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), x) {
|
|
7776
7776
|
const k = t.displayColors ? Math.max(a, l.lineHeight) : l.lineHeight;
|
|
7777
7777
|
g += f * k + (x - f) * l.lineHeight + (x - 1) * t.bodySpacing;
|
|
7778
7778
|
}
|
|
7779
7779
|
h && (g += t.footerMarginTop + h * u.lineHeight + (h - 1) * t.footerSpacing);
|
|
7780
7780
|
let T = 0;
|
|
7781
|
-
const
|
|
7781
|
+
const C = function(k) {
|
|
7782
7782
|
y = Math.max(y, n.measureText(k).width + T);
|
|
7783
7783
|
};
|
|
7784
|
-
return n.save(), n.font = c.string, Rt(e.title,
|
|
7785
|
-
Rt(k.before,
|
|
7786
|
-
}), T = 0, n.font = u.string, Rt(e.footer,
|
|
7784
|
+
return n.save(), n.font = c.string, Rt(e.title, C), n.font = l.string, Rt(e.beforeBody.concat(e.afterBody), C), T = t.displayColors ? o + 2 + t.boxPadding : 0, Rt(i, (k) => {
|
|
7785
|
+
Rt(k.before, C), Rt(k.lines, C), Rt(k.after, C);
|
|
7786
|
+
}), T = 0, n.font = u.string, Rt(e.footer, C), n.restore(), y += p.width, {
|
|
7787
7787
|
width: y,
|
|
7788
7788
|
height: g
|
|
7789
7789
|
};
|
|
@@ -7988,14 +7988,14 @@ class $u extends ve {
|
|
|
7988
7988
|
}
|
|
7989
7989
|
getCaretPosition(t, n, i) {
|
|
7990
7990
|
const { xAlign: s, yAlign: r } = this, { caretSize: o, cornerRadius: a } = i, { topLeft: l, topRight: c, bottomLeft: u, bottomRight: d } = jn(a), { x: h, y: f } = t, { width: p, height: g } = n;
|
|
7991
|
-
let y, x, T,
|
|
7992
|
-
return r === "center" ? (k = f + g / 2, s === "left" ? (y = h, x = y - o,
|
|
7991
|
+
let y, x, T, C, k, O;
|
|
7992
|
+
return r === "center" ? (k = f + g / 2, s === "left" ? (y = h, x = y - o, C = k + o, O = k - o) : (y = h + p, x = y + o, C = k - o, O = k + o), T = y) : (s === "left" ? x = h + Math.max(l, u) + o : s === "right" ? x = h + p - Math.max(c, d) - o : x = this.caretX, r === "top" ? (C = f, k = C - o, y = x - o, T = x + o) : (C = f + g, k = C + o, y = x + o, T = x - o), O = C), {
|
|
7993
7993
|
x1: y,
|
|
7994
7994
|
x2: x,
|
|
7995
7995
|
x3: T,
|
|
7996
|
-
y1:
|
|
7996
|
+
y1: C,
|
|
7997
7997
|
y2: k,
|
|
7998
|
-
y3:
|
|
7998
|
+
y3: O
|
|
7999
7999
|
};
|
|
8000
8000
|
}
|
|
8001
8001
|
drawTitle(t, n, i) {
|
|
@@ -8042,10 +8042,10 @@ class $u extends ve {
|
|
|
8042
8042
|
const p = Xi(i.rtl, this.x, this.width), g = function(_) {
|
|
8043
8043
|
n.fillText(_, p.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8044
8044
|
}, y = p.textAlign(o);
|
|
8045
|
-
let x, T,
|
|
8045
|
+
let x, T, C, k, O, A, M;
|
|
8046
8046
|
for (n.textAlign = o, n.textBaseline = "middle", n.font = d.string, t.x = Kr(this, y, i), n.fillStyle = i.bodyColor, Rt(this.beforeBody, g), f = a && y !== "right" ? o === "center" ? c / 2 + u : c + 2 + u : 0, k = 0, A = s.length; k < A; ++k) {
|
|
8047
|
-
for (x = s[k], T = this.labelTextColors[k], n.fillStyle = T, Rt(x.before, g),
|
|
8048
|
-
g(O
|
|
8047
|
+
for (x = s[k], T = this.labelTextColors[k], n.fillStyle = T, Rt(x.before, g), C = x.lines, a && C.length && (this._drawColorBox(n, t, k, p, i), h = Math.max(d.lineHeight, l)), O = 0, M = C.length; O < M; ++O)
|
|
8048
|
+
g(C[O]), h = d.lineHeight;
|
|
8049
8049
|
Rt(x.after, g);
|
|
8050
8050
|
}
|
|
8051
8051
|
f = 0, h = d.lineHeight, Rt(this.afterBody, g), t.y -= r;
|
|
@@ -8336,9 +8336,9 @@ class V_ extends Si {
|
|
|
8336
8336
|
}
|
|
8337
8337
|
}
|
|
8338
8338
|
function q_(e, t) {
|
|
8339
|
-
const n = [], { bounds: s, step: r, min: o, max: a, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = e, f = r || 1, p = u - 1, { min: g, max: y } = t, x = !ht(o), T = !ht(a),
|
|
8340
|
-
let
|
|
8341
|
-
if (
|
|
8339
|
+
const n = [], { bounds: s, step: r, min: o, max: a, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = e, f = r || 1, p = u - 1, { min: g, max: y } = t, x = !ht(o), T = !ht(a), C = !ht(c), k = (y - g) / (d + 1);
|
|
8340
|
+
let O = Hc((y - g) / p / f) * f, A, M, _, b;
|
|
8341
|
+
if (O < 1e-14 && !x && !T)
|
|
8342
8342
|
return [
|
|
8343
8343
|
{
|
|
8344
8344
|
value: g
|
|
@@ -8347,14 +8347,14 @@ function q_(e, t) {
|
|
|
8347
8347
|
value: y
|
|
8348
8348
|
}
|
|
8349
8349
|
];
|
|
8350
|
-
b = Math.ceil(y /
|
|
8351
|
-
const w = Math.max(Bc(
|
|
8350
|
+
b = Math.ceil(y / O) - Math.floor(g / O), b > p && (O = Hc(b * O / p / f) * f), ht(l) || (A = Math.pow(10, l), O = Math.ceil(O * A) / A), s === "ticks" ? (M = Math.floor(g / O) * O, _ = Math.ceil(y / O) * O) : (M = g, _ = y), x && T && r && Ig((a - o) / r, O / 1e3) ? (b = Math.round(Math.min((a - o) / O, u)), O = (a - o) / b, M = o, _ = a) : C ? (M = x ? o : M, _ = T ? a : _, b = c - 1, O = (_ - M) / b) : (b = (_ - M) / O, js(b, Math.round(b), O / 1e3) ? b = Math.round(b) : b = Math.ceil(b));
|
|
8351
|
+
const w = Math.max(Bc(O), Bc(M));
|
|
8352
8352
|
A = Math.pow(10, ht(l) ? w : l), M = Math.round(M * A) / A, _ = Math.round(_ * A) / A;
|
|
8353
8353
|
let D = 0;
|
|
8354
8354
|
for (x && (h && M !== o ? (n.push({
|
|
8355
8355
|
value: o
|
|
8356
|
-
}), M < o && D++, js(Math.round((M + D *
|
|
8357
|
-
const E = Math.round((M + D *
|
|
8356
|
+
}), M < o && D++, js(Math.round((M + D * O) * A) / A, o, Vu(o, k, e)) && D++) : M < o && D++); D < b; ++D) {
|
|
8357
|
+
const E = Math.round((M + D * O) * A) / A;
|
|
8358
8358
|
if (T && E > a)
|
|
8359
8359
|
break;
|
|
8360
8360
|
n.push({
|
|
@@ -8976,7 +8976,7 @@ function td(e, t, n) {
|
|
|
8976
8976
|
});
|
|
8977
8977
|
return r === 0 || !n ? i : pv(e, i, s, n);
|
|
8978
8978
|
}
|
|
8979
|
-
class
|
|
8979
|
+
class Ol extends Si {
|
|
8980
8980
|
static id = "time";
|
|
8981
8981
|
static defaults = {
|
|
8982
8982
|
bounds: "data",
|
|
@@ -9146,9 +9146,9 @@ function Xr(e, t, n) {
|
|
|
9146
9146
|
const c = o - r;
|
|
9147
9147
|
return c ? a + (l - a) * (t - r) / c : a;
|
|
9148
9148
|
}
|
|
9149
|
-
class mv extends
|
|
9149
|
+
class mv extends Ol {
|
|
9150
9150
|
static id = "timeseries";
|
|
9151
|
-
static defaults =
|
|
9151
|
+
static defaults = Ol.defaults;
|
|
9152
9152
|
constructor(t) {
|
|
9153
9153
|
super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
|
|
9154
9154
|
}
|
|
@@ -9205,7 +9205,7 @@ var gv = /* @__PURE__ */ Object.freeze({
|
|
|
9205
9205
|
LinearScale: G_,
|
|
9206
9206
|
LogarithmicScale: Z_,
|
|
9207
9207
|
RadialLinearScale: dv,
|
|
9208
|
-
TimeScale:
|
|
9208
|
+
TimeScale: Ol,
|
|
9209
9209
|
TimeSeriesScale: mv
|
|
9210
9210
|
});
|
|
9211
9211
|
const yv = [
|
|
@@ -9284,7 +9284,7 @@ function Mi(e, ...t) {
|
|
|
9284
9284
|
);
|
|
9285
9285
|
return t.map(n);
|
|
9286
9286
|
}
|
|
9287
|
-
function
|
|
9287
|
+
function Cl(e, t) {
|
|
9288
9288
|
const n = mt(e, t?.in);
|
|
9289
9289
|
return n.setHours(0, 0, 0, 0), n;
|
|
9290
9290
|
}
|
|
@@ -9293,7 +9293,7 @@ function If(e, t, n) {
|
|
|
9293
9293
|
n?.in,
|
|
9294
9294
|
e,
|
|
9295
9295
|
t
|
|
9296
|
-
), r =
|
|
9296
|
+
), r = Cl(i), o = Cl(s), a = +r - wo(r), l = +o - wo(o);
|
|
9297
9297
|
return Math.round((a - l) / bv);
|
|
9298
9298
|
}
|
|
9299
9299
|
function wv(e, t) {
|
|
@@ -9320,13 +9320,13 @@ function Gs(e, t) {
|
|
|
9320
9320
|
const n = +mt(e) - +mt(t);
|
|
9321
9321
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
9322
9322
|
}
|
|
9323
|
-
function
|
|
9323
|
+
function Ov(e) {
|
|
9324
9324
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
9325
9325
|
}
|
|
9326
9326
|
function hc(e) {
|
|
9327
|
-
return !(!
|
|
9327
|
+
return !(!Ov(e) && typeof e != "number" || isNaN(+mt(e)));
|
|
9328
9328
|
}
|
|
9329
|
-
function
|
|
9329
|
+
function Cv(e, t, n) {
|
|
9330
9330
|
const [i, s] = Mi(
|
|
9331
9331
|
n?.in,
|
|
9332
9332
|
e,
|
|
@@ -9398,7 +9398,7 @@ function zf(e, t, n) {
|
|
|
9398
9398
|
e,
|
|
9399
9399
|
t
|
|
9400
9400
|
), o = Gs(s, r), a = Math.abs(
|
|
9401
|
-
|
|
9401
|
+
Cv(s, r)
|
|
9402
9402
|
);
|
|
9403
9403
|
if (a < 1) return 0;
|
|
9404
9404
|
s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - o * a);
|
|
@@ -9574,7 +9574,7 @@ const Gv = {
|
|
|
9574
9574
|
nextWeek: "eeee 'at' p",
|
|
9575
9575
|
other: "P"
|
|
9576
9576
|
}, Jv = (e, t, n, i) => Qv[e];
|
|
9577
|
-
function
|
|
9577
|
+
function Os(e) {
|
|
9578
9578
|
return (t, n) => {
|
|
9579
9579
|
const i = n?.context ? String(n.context) : "standalone";
|
|
9580
9580
|
let s;
|
|
@@ -9716,31 +9716,31 @@ const tx = {
|
|
|
9716
9716
|
return n + "th";
|
|
9717
9717
|
}, ax = {
|
|
9718
9718
|
ordinalNumber: ox,
|
|
9719
|
-
era:
|
|
9719
|
+
era: Os({
|
|
9720
9720
|
values: tx,
|
|
9721
9721
|
defaultWidth: "wide"
|
|
9722
9722
|
}),
|
|
9723
|
-
quarter:
|
|
9723
|
+
quarter: Os({
|
|
9724
9724
|
values: ex,
|
|
9725
9725
|
defaultWidth: "wide",
|
|
9726
9726
|
argumentCallback: (e) => e - 1
|
|
9727
9727
|
}),
|
|
9728
|
-
month:
|
|
9728
|
+
month: Os({
|
|
9729
9729
|
values: nx,
|
|
9730
9730
|
defaultWidth: "wide"
|
|
9731
9731
|
}),
|
|
9732
|
-
day:
|
|
9732
|
+
day: Os({
|
|
9733
9733
|
values: ix,
|
|
9734
9734
|
defaultWidth: "wide"
|
|
9735
9735
|
}),
|
|
9736
|
-
dayPeriod:
|
|
9736
|
+
dayPeriod: Os({
|
|
9737
9737
|
values: sx,
|
|
9738
9738
|
defaultWidth: "wide",
|
|
9739
9739
|
formattingValues: rx,
|
|
9740
9740
|
defaultFormattingWidth: "wide"
|
|
9741
9741
|
})
|
|
9742
9742
|
};
|
|
9743
|
-
function
|
|
9743
|
+
function Cs(e) {
|
|
9744
9744
|
return (t, n = {}) => {
|
|
9745
9745
|
const i = n.width, s = i && e.matchPatterns[i] || e.matchPatterns[e.defaultMatchWidth], r = t.match(s);
|
|
9746
9746
|
if (!r)
|
|
@@ -9853,32 +9853,32 @@ const dx = /^(\d+)(th|st|nd|rd)?/i, hx = /\d+/i, fx = {
|
|
|
9853
9853
|
parsePattern: hx,
|
|
9854
9854
|
valueCallback: (e) => parseInt(e, 10)
|
|
9855
9855
|
}),
|
|
9856
|
-
era:
|
|
9856
|
+
era: Cs({
|
|
9857
9857
|
matchPatterns: fx,
|
|
9858
9858
|
defaultMatchWidth: "wide",
|
|
9859
9859
|
parsePatterns: px,
|
|
9860
9860
|
defaultParseWidth: "any"
|
|
9861
9861
|
}),
|
|
9862
|
-
quarter:
|
|
9862
|
+
quarter: Cs({
|
|
9863
9863
|
matchPatterns: mx,
|
|
9864
9864
|
defaultMatchWidth: "wide",
|
|
9865
9865
|
parsePatterns: gx,
|
|
9866
9866
|
defaultParseWidth: "any",
|
|
9867
9867
|
valueCallback: (e) => e + 1
|
|
9868
9868
|
}),
|
|
9869
|
-
month:
|
|
9869
|
+
month: Cs({
|
|
9870
9870
|
matchPatterns: yx,
|
|
9871
9871
|
defaultMatchWidth: "wide",
|
|
9872
9872
|
parsePatterns: bx,
|
|
9873
9873
|
defaultParseWidth: "any"
|
|
9874
9874
|
}),
|
|
9875
|
-
day:
|
|
9875
|
+
day: Cs({
|
|
9876
9876
|
matchPatterns: _x,
|
|
9877
9877
|
defaultMatchWidth: "wide",
|
|
9878
9878
|
parsePatterns: vx,
|
|
9879
9879
|
defaultParseWidth: "any"
|
|
9880
9880
|
}),
|
|
9881
|
-
dayPeriod:
|
|
9881
|
+
dayPeriod: Cs({
|
|
9882
9882
|
matchPatterns: xx,
|
|
9883
9883
|
defaultMatchWidth: "any",
|
|
9884
9884
|
parsePatterns: wx,
|
|
@@ -9920,7 +9920,7 @@ function Wf(e, t) {
|
|
|
9920
9920
|
const n = mt(e, t?.in), i = +dn(n, t) - +Mx(n, t);
|
|
9921
9921
|
return Math.round(i / Rf) + 1;
|
|
9922
9922
|
}
|
|
9923
|
-
function
|
|
9923
|
+
function Ct(e, t) {
|
|
9924
9924
|
const n = e < 0 ? "-" : "", i = Math.abs(e).toString().padStart(t, "0");
|
|
9925
9925
|
return n + i;
|
|
9926
9926
|
}
|
|
@@ -9928,16 +9928,16 @@ const In = {
|
|
|
9928
9928
|
// Year
|
|
9929
9929
|
y(e, t) {
|
|
9930
9930
|
const n = e.getFullYear(), i = n > 0 ? n : 1 - n;
|
|
9931
|
-
return
|
|
9931
|
+
return Ct(t === "yy" ? i % 100 : i, t.length);
|
|
9932
9932
|
},
|
|
9933
9933
|
// Month
|
|
9934
9934
|
M(e, t) {
|
|
9935
9935
|
const n = e.getMonth();
|
|
9936
|
-
return t === "M" ? String(n + 1) :
|
|
9936
|
+
return t === "M" ? String(n + 1) : Ct(n + 1, 2);
|
|
9937
9937
|
},
|
|
9938
9938
|
// Day of the month
|
|
9939
9939
|
d(e, t) {
|
|
9940
|
-
return
|
|
9940
|
+
return Ct(e.getDate(), t.length);
|
|
9941
9941
|
},
|
|
9942
9942
|
// AM or PM
|
|
9943
9943
|
a(e, t) {
|
|
@@ -9956,26 +9956,26 @@ const In = {
|
|
|
9956
9956
|
},
|
|
9957
9957
|
// Hour [1-12]
|
|
9958
9958
|
h(e, t) {
|
|
9959
|
-
return
|
|
9959
|
+
return Ct(e.getHours() % 12 || 12, t.length);
|
|
9960
9960
|
},
|
|
9961
9961
|
// Hour [0-23]
|
|
9962
9962
|
H(e, t) {
|
|
9963
|
-
return
|
|
9963
|
+
return Ct(e.getHours(), t.length);
|
|
9964
9964
|
},
|
|
9965
9965
|
// Minute
|
|
9966
9966
|
m(e, t) {
|
|
9967
|
-
return
|
|
9967
|
+
return Ct(e.getMinutes(), t.length);
|
|
9968
9968
|
},
|
|
9969
9969
|
// Second
|
|
9970
9970
|
s(e, t) {
|
|
9971
|
-
return
|
|
9971
|
+
return Ct(e.getSeconds(), t.length);
|
|
9972
9972
|
},
|
|
9973
9973
|
// Fraction of second
|
|
9974
9974
|
S(e, t) {
|
|
9975
9975
|
const n = t.length, i = e.getMilliseconds(), s = Math.trunc(
|
|
9976
9976
|
i * Math.pow(10, n - 3)
|
|
9977
9977
|
);
|
|
9978
|
-
return
|
|
9978
|
+
return Ct(s, t.length);
|
|
9979
9979
|
}
|
|
9980
9980
|
}, Hi = {
|
|
9981
9981
|
midnight: "midnight",
|
|
@@ -10014,14 +10014,14 @@ const In = {
|
|
|
10014
10014
|
const s = pc(e, i), r = s > 0 ? s : 1 - s;
|
|
10015
10015
|
if (t === "YY") {
|
|
10016
10016
|
const o = r % 100;
|
|
10017
|
-
return
|
|
10017
|
+
return Ct(o, 2);
|
|
10018
10018
|
}
|
|
10019
|
-
return t === "Yo" ? n.ordinalNumber(r, { unit: "year" }) :
|
|
10019
|
+
return t === "Yo" ? n.ordinalNumber(r, { unit: "year" }) : Ct(r, t.length);
|
|
10020
10020
|
},
|
|
10021
10021
|
// ISO week-numbering year
|
|
10022
10022
|
R: function(e, t) {
|
|
10023
10023
|
const n = Ef(e);
|
|
10024
|
-
return
|
|
10024
|
+
return Ct(n, t.length);
|
|
10025
10025
|
},
|
|
10026
10026
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
10027
10027
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -10034,7 +10034,7 @@ const In = {
|
|
|
10034
10034
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
10035
10035
|
u: function(e, t) {
|
|
10036
10036
|
const n = e.getFullYear();
|
|
10037
|
-
return
|
|
10037
|
+
return Ct(n, t.length);
|
|
10038
10038
|
},
|
|
10039
10039
|
// Quarter
|
|
10040
10040
|
Q: function(e, t, n) {
|
|
@@ -10045,7 +10045,7 @@ const In = {
|
|
|
10045
10045
|
return String(i);
|
|
10046
10046
|
// 01, 02, 03, 04
|
|
10047
10047
|
case "QQ":
|
|
10048
|
-
return
|
|
10048
|
+
return Ct(i, 2);
|
|
10049
10049
|
// 1st, 2nd, 3rd, 4th
|
|
10050
10050
|
case "Qo":
|
|
10051
10051
|
return n.ordinalNumber(i, { unit: "quarter" });
|
|
@@ -10077,7 +10077,7 @@ const In = {
|
|
|
10077
10077
|
return String(i);
|
|
10078
10078
|
// 01, 02, 03, 04
|
|
10079
10079
|
case "qq":
|
|
10080
|
-
return
|
|
10080
|
+
return Ct(i, 2);
|
|
10081
10081
|
// 1st, 2nd, 3rd, 4th
|
|
10082
10082
|
case "qo":
|
|
10083
10083
|
return n.ordinalNumber(i, { unit: "quarter" });
|
|
@@ -10135,7 +10135,7 @@ const In = {
|
|
|
10135
10135
|
return String(i + 1);
|
|
10136
10136
|
// 01, 02, ..., 12
|
|
10137
10137
|
case "LL":
|
|
10138
|
-
return
|
|
10138
|
+
return Ct(i + 1, 2);
|
|
10139
10139
|
// 1st, 2nd, ..., 12th
|
|
10140
10140
|
case "Lo":
|
|
10141
10141
|
return n.ordinalNumber(i + 1, { unit: "month" });
|
|
@@ -10158,12 +10158,12 @@ const In = {
|
|
|
10158
10158
|
// Local week of year
|
|
10159
10159
|
w: function(e, t, n, i) {
|
|
10160
10160
|
const s = Wf(e, i);
|
|
10161
|
-
return t === "wo" ? n.ordinalNumber(s, { unit: "week" }) :
|
|
10161
|
+
return t === "wo" ? n.ordinalNumber(s, { unit: "week" }) : Ct(s, t.length);
|
|
10162
10162
|
},
|
|
10163
10163
|
// ISO week of year
|
|
10164
10164
|
I: function(e, t, n) {
|
|
10165
10165
|
const i = Bf(e);
|
|
10166
|
-
return t === "Io" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
10166
|
+
return t === "Io" ? n.ordinalNumber(i, { unit: "week" }) : Ct(i, t.length);
|
|
10167
10167
|
},
|
|
10168
10168
|
// Day of the month
|
|
10169
10169
|
d: function(e, t, n) {
|
|
@@ -10172,7 +10172,7 @@ const In = {
|
|
|
10172
10172
|
// Day of year
|
|
10173
10173
|
D: function(e, t, n) {
|
|
10174
10174
|
const i = Tx(e);
|
|
10175
|
-
return t === "Do" ? n.ordinalNumber(i, { unit: "dayOfYear" }) :
|
|
10175
|
+
return t === "Do" ? n.ordinalNumber(i, { unit: "dayOfYear" }) : Ct(i, t.length);
|
|
10176
10176
|
},
|
|
10177
10177
|
// Day of week
|
|
10178
10178
|
E: function(e, t, n) {
|
|
@@ -10214,7 +10214,7 @@ const In = {
|
|
|
10214
10214
|
return String(r);
|
|
10215
10215
|
// Padded numerical value
|
|
10216
10216
|
case "ee":
|
|
10217
|
-
return
|
|
10217
|
+
return Ct(r, 2);
|
|
10218
10218
|
// 1st, 2nd, ..., 7th
|
|
10219
10219
|
case "eo":
|
|
10220
10220
|
return n.ordinalNumber(r, { unit: "day" });
|
|
@@ -10251,7 +10251,7 @@ const In = {
|
|
|
10251
10251
|
return String(r);
|
|
10252
10252
|
// Padded numerical value
|
|
10253
10253
|
case "cc":
|
|
10254
|
-
return
|
|
10254
|
+
return Ct(r, t.length);
|
|
10255
10255
|
// 1st, 2nd, ..., 7th
|
|
10256
10256
|
case "co":
|
|
10257
10257
|
return n.ordinalNumber(r, { unit: "day" });
|
|
@@ -10288,7 +10288,7 @@ const In = {
|
|
|
10288
10288
|
return String(s);
|
|
10289
10289
|
// 02
|
|
10290
10290
|
case "ii":
|
|
10291
|
-
return
|
|
10291
|
+
return Ct(s, t.length);
|
|
10292
10292
|
// 2nd
|
|
10293
10293
|
case "io":
|
|
10294
10294
|
return n.ordinalNumber(s, { unit: "day" });
|
|
@@ -10411,12 +10411,12 @@ const In = {
|
|
|
10411
10411
|
// Hour [0-11]
|
|
10412
10412
|
K: function(e, t, n) {
|
|
10413
10413
|
const i = e.getHours() % 12;
|
|
10414
|
-
return t === "Ko" ? n.ordinalNumber(i, { unit: "hour" }) :
|
|
10414
|
+
return t === "Ko" ? n.ordinalNumber(i, { unit: "hour" }) : Ct(i, t.length);
|
|
10415
10415
|
},
|
|
10416
10416
|
// Hour [1-24]
|
|
10417
10417
|
k: function(e, t, n) {
|
|
10418
10418
|
let i = e.getHours();
|
|
10419
|
-
return i === 0 && (i = 24), t === "ko" ? n.ordinalNumber(i, { unit: "hour" }) :
|
|
10419
|
+
return i === 0 && (i = 24), t === "ko" ? n.ordinalNumber(i, { unit: "hour" }) : Ct(i, t.length);
|
|
10420
10420
|
},
|
|
10421
10421
|
// Minute
|
|
10422
10422
|
m: function(e, t, n) {
|
|
@@ -10497,22 +10497,22 @@ const In = {
|
|
|
10497
10497
|
// Seconds timestamp
|
|
10498
10498
|
t: function(e, t, n) {
|
|
10499
10499
|
const i = Math.trunc(+e / 1e3);
|
|
10500
|
-
return
|
|
10500
|
+
return Ct(i, t.length);
|
|
10501
10501
|
},
|
|
10502
10502
|
// Milliseconds timestamp
|
|
10503
10503
|
T: function(e, t, n) {
|
|
10504
|
-
return
|
|
10504
|
+
return Ct(+e, t.length);
|
|
10505
10505
|
}
|
|
10506
10506
|
};
|
|
10507
10507
|
function sd(e, t = "") {
|
|
10508
10508
|
const n = e > 0 ? "-" : "+", i = Math.abs(e), s = Math.trunc(i / 60), r = i % 60;
|
|
10509
|
-
return r === 0 ? n + String(s) : n + String(s) + t +
|
|
10509
|
+
return r === 0 ? n + String(s) : n + String(s) + t + Ct(r, 2);
|
|
10510
10510
|
}
|
|
10511
10511
|
function rd(e, t) {
|
|
10512
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
10512
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Ct(Math.abs(e) / 60, 2) : pi(e, t);
|
|
10513
10513
|
}
|
|
10514
10514
|
function pi(e, t = "") {
|
|
10515
|
-
const n = e > 0 ? "-" : "+", i = Math.abs(e), s =
|
|
10515
|
+
const n = e > 0 ? "-" : "+", i = Math.abs(e), s = Ct(Math.trunc(i / 60), 2), r = Ct(i % 60, 2);
|
|
10516
10516
|
return n + s + t + r;
|
|
10517
10517
|
}
|
|
10518
10518
|
const od = (e, t) => {
|
|
@@ -10560,16 +10560,16 @@ const od = (e, t) => {
|
|
|
10560
10560
|
}, Al = {
|
|
10561
10561
|
p: Yf,
|
|
10562
10562
|
P: Dx
|
|
10563
|
-
}, kx = /^D+$/,
|
|
10563
|
+
}, kx = /^D+$/, Ox = /^Y+$/, Cx = ["D", "DD", "YY", "YYYY"];
|
|
10564
10564
|
function $f(e) {
|
|
10565
10565
|
return kx.test(e);
|
|
10566
10566
|
}
|
|
10567
10567
|
function jf(e) {
|
|
10568
|
-
return
|
|
10568
|
+
return Ox.test(e);
|
|
10569
10569
|
}
|
|
10570
10570
|
function Pl(e, t, n) {
|
|
10571
10571
|
const i = Ax(e, t, n);
|
|
10572
|
-
if (console.warn(i),
|
|
10572
|
+
if (console.warn(i), Cx.includes(e)) throw new RangeError(i);
|
|
10573
10573
|
}
|
|
10574
10574
|
function Ax(e, t, n) {
|
|
10575
10575
|
const i = e[0] === "Y" ? "years" : "days of the month";
|
|
@@ -12012,7 +12012,7 @@ const Mw = {
|
|
|
12012
12012
|
x: new ww(),
|
|
12013
12013
|
t: new Sw(),
|
|
12014
12014
|
T: new Tw()
|
|
12015
|
-
}, Dw = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, kw = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
|
|
12015
|
+
}, Dw = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, kw = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ow = /^'([^]*?)'?$/, Cw = /''/g, Aw = /\S/, Pw = /[a-zA-Z]/;
|
|
12016
12016
|
function Rw(e, t, n, i) {
|
|
12017
12017
|
const s = () => qt(i?.in || n, NaN), r = Vf(), o = i?.locale ?? r.locale ?? Hf, a = i?.firstWeekContainsDate ?? i?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, l = i?.weekStartsOn ?? i?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0;
|
|
12018
12018
|
if (!t)
|
|
@@ -12033,14 +12033,14 @@ function Rw(e, t, n, i) {
|
|
|
12033
12033
|
!i?.useAdditionalWeekYearTokens && jf(y) && Pl(y, t, e), !i?.useAdditionalDayOfYearTokens && $f(y) && Pl(y, t, e);
|
|
12034
12034
|
const x = y[0], T = Mw[x];
|
|
12035
12035
|
if (T) {
|
|
12036
|
-
const { incompatibleTokens:
|
|
12037
|
-
if (Array.isArray(
|
|
12038
|
-
const
|
|
12039
|
-
(A) =>
|
|
12036
|
+
const { incompatibleTokens: C } = T;
|
|
12037
|
+
if (Array.isArray(C)) {
|
|
12038
|
+
const O = h.find(
|
|
12039
|
+
(A) => C.includes(A.token) || A.token === x
|
|
12040
12040
|
);
|
|
12041
|
-
if (
|
|
12041
|
+
if (O)
|
|
12042
12042
|
throw new RangeError(
|
|
12043
|
-
`The format string mustn't contain \`${
|
|
12043
|
+
`The format string mustn't contain \`${O.fullToken}\` and \`${y}\` at the same time`
|
|
12044
12044
|
);
|
|
12045
12045
|
} else if (T.incompatibleTokens === "*" && h.length > 0)
|
|
12046
12046
|
throw new RangeError(
|
|
@@ -12084,7 +12084,7 @@ function Rw(e, t, n, i) {
|
|
|
12084
12084
|
return p;
|
|
12085
12085
|
}
|
|
12086
12086
|
function Ew(e) {
|
|
12087
|
-
return e.match(
|
|
12087
|
+
return e.match(Ow)[1].replace(Cw, "'");
|
|
12088
12088
|
}
|
|
12089
12089
|
function Iw(e, t) {
|
|
12090
12090
|
const n = mt(e, t?.in);
|
|
@@ -12967,7 +12967,7 @@ const xS = {
|
|
|
12967
12967
|
return n + "rd";
|
|
12968
12968
|
}
|
|
12969
12969
|
return n + "th";
|
|
12970
|
-
},
|
|
12970
|
+
}, OS = {
|
|
12971
12971
|
ordinalNumber: kS,
|
|
12972
12972
|
era: Ps({
|
|
12973
12973
|
values: xS,
|
|
@@ -13000,7 +13000,7 @@ function Rs(e) {
|
|
|
13000
13000
|
return null;
|
|
13001
13001
|
const o = r[0], a = i && e.parsePatterns[i] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? AS(a, (d) => d.test(o)) : (
|
|
13002
13002
|
// [TODO] -- I challenge you to fix the type
|
|
13003
|
-
|
|
13003
|
+
CS(a, (d) => d.test(o))
|
|
13004
13004
|
);
|
|
13005
13005
|
let c;
|
|
13006
13006
|
c = e.valueCallback ? e.valueCallback(l) : l, c = n.valueCallback ? (
|
|
@@ -13011,7 +13011,7 @@ function Rs(e) {
|
|
|
13011
13011
|
return { value: c, rest: u };
|
|
13012
13012
|
};
|
|
13013
13013
|
}
|
|
13014
|
-
function
|
|
13014
|
+
function CS(e, t) {
|
|
13015
13015
|
for (const n in e)
|
|
13016
13016
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
13017
13017
|
return n;
|
|
@@ -13142,7 +13142,7 @@ const RS = /^(\d+)(th|st|nd|rd)?/i, ES = /\d+/i, IS = {
|
|
|
13142
13142
|
formatDistance: pS,
|
|
13143
13143
|
formatLong: bS,
|
|
13144
13144
|
formatRelative: vS,
|
|
13145
|
-
localize:
|
|
13145
|
+
localize: OS,
|
|
13146
13146
|
match: $S,
|
|
13147
13147
|
options: {
|
|
13148
13148
|
weekStartsOn: 0,
|
|
@@ -13995,7 +13995,7 @@ function hp(e, t, n) {
|
|
|
13995
13995
|
return w1(e, -1, n);
|
|
13996
13996
|
}
|
|
13997
13997
|
function pd(e, t, n) {
|
|
13998
|
-
const i = T1(), s =
|
|
13998
|
+
const i = T1(), s = O1(e, n.timeZone, n.locale ?? i.locale);
|
|
13999
13999
|
return "formatToParts" in s ? D1(s, t) : k1(s, t);
|
|
14000
14000
|
}
|
|
14001
14001
|
function D1(e, t) {
|
|
@@ -14008,13 +14008,13 @@ function k1(e, t) {
|
|
|
14008
14008
|
const n = e.format(t).replace(/\u200E/g, ""), i = / [\w-+ ]+$/.exec(n);
|
|
14009
14009
|
return i ? i[0].substr(1) : "";
|
|
14010
14010
|
}
|
|
14011
|
-
function
|
|
14011
|
+
function O1(e, t, n) {
|
|
14012
14012
|
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
14013
14013
|
timeZone: t,
|
|
14014
14014
|
timeZoneName: e
|
|
14015
14015
|
});
|
|
14016
14016
|
}
|
|
14017
|
-
function
|
|
14017
|
+
function C1(e, t) {
|
|
14018
14018
|
const n = I1(t);
|
|
14019
14019
|
return "formatToParts" in n ? P1(n, e) : R1(n, e);
|
|
14020
14020
|
}
|
|
@@ -14116,7 +14116,7 @@ function N1(e) {
|
|
|
14116
14116
|
return yc(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
14117
14117
|
}
|
|
14118
14118
|
function Rl(e, t) {
|
|
14119
|
-
const n =
|
|
14119
|
+
const n = C1(e, t), i = yc(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
14120
14120
|
let s = e.getTime();
|
|
14121
14121
|
const r = s % 1e3;
|
|
14122
14122
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
@@ -14498,8 +14498,8 @@ io.exports;
|
|
|
14498
14498
|
var Dd;
|
|
14499
14499
|
function nT() {
|
|
14500
14500
|
return Dd || (Dd = 1, (function(e, t) {
|
|
14501
|
-
var n = 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]", p = "[object Object]", g = "[object Promise]", y = "[object RegExp]", x = "[object Set]", T = "[object String]",
|
|
14502
|
-
U[r] = U[o] = U[
|
|
14501
|
+
var n = 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]", p = "[object Object]", g = "[object Promise]", y = "[object RegExp]", x = "[object Set]", T = "[object String]", C = "[object Symbol]", k = "[object WeakMap]", O = "[object ArrayBuffer]", A = "[object DataView]", M = "[object Float32Array]", _ = "[object Float64Array]", b = "[object Int8Array]", w = "[object Int16Array]", D = "[object Int32Array]", E = "[object Uint8Array]", j = "[object Uint8ClampedArray]", H = "[object Uint16Array]", V = "[object Uint32Array]", W = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, R = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, U = {};
|
|
14502
|
+
U[r] = U[o] = U[O] = U[A] = U[a] = U[l] = U[M] = U[_] = U[b] = U[w] = U[D] = U[h] = U[f] = U[p] = U[y] = U[x] = U[T] = U[C] = U[E] = U[j] = U[H] = U[V] = !0, U[c] = U[u] = U[k] = !1;
|
|
14503
14503
|
var P = typeof Jr == "object" && Jr && Jr.Object === Object && Jr, N = typeof self == "object" && self && self.Object === Object && self, B = P || N || Function("return this")(), tt = t && !t.nodeType && t, Q = tt && !0 && e && !e.nodeType && e, q = Q && Q.exports === tt;
|
|
14504
14504
|
function G(v, I) {
|
|
14505
14505
|
return v.set(I[0], I[1]), v;
|
|
@@ -14556,10 +14556,10 @@ function nT() {
|
|
|
14556
14556
|
Y[++I] = st;
|
|
14557
14557
|
}), Y;
|
|
14558
14558
|
}
|
|
14559
|
-
var ft = Array.prototype,
|
|
14559
|
+
var ft = Array.prototype, Ot = Function.prototype, ne = Object.prototype, De = B["__core-js_shared__"], de = (function() {
|
|
14560
14560
|
var v = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
|
|
14561
14561
|
return v ? "Symbol(src)_1." + v : "";
|
|
14562
|
-
})(), nn =
|
|
14562
|
+
})(), nn = Ot.toString, Et = ne.hasOwnProperty, he = ne.toString, Yt = RegExp(
|
|
14563
14563
|
"^" + nn.call(Et).replace(W, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
14564
14564
|
), ie = q ? B.Buffer : void 0, fe = B.Symbol, sn = B.Uint8Array, ei = pt(Object.getPrototypeOf, Object), Qe = Object.create, $t = ne.propertyIsEnumerable, ke = ft.splice, ni = Object.getOwnPropertySymbols, xr = ie ? ie.isBuffer : void 0, wr = pt(Object.keys, Object), hs = Pn(B, "DataView"), ii = Pn(B, "Map"), fs = Pn(B, "Promise"), si = Pn(B, "Set"), hn = Pn(B, "WeakMap"), fn = Pn(Object, "create"), ps = me(hs), ms = me(ii), ri = me(fs), qo = me(si), Go = me(hn), Sr = fe ? fe.prototype : void 0, Tr = Sr ? Sr.valueOf : void 0;
|
|
14565
14565
|
function pn(v) {
|
|
@@ -14569,7 +14569,7 @@ function nT() {
|
|
|
14569
14569
|
this.set(st[0], st[1]);
|
|
14570
14570
|
}
|
|
14571
14571
|
}
|
|
14572
|
-
function
|
|
14572
|
+
function Ci() {
|
|
14573
14573
|
this.__data__ = fn ? fn(null) : {};
|
|
14574
14574
|
}
|
|
14575
14575
|
function gs(v) {
|
|
@@ -14591,7 +14591,7 @@ function nT() {
|
|
|
14591
14591
|
var Y = this.__data__;
|
|
14592
14592
|
return Y[v] = fn && I === void 0 ? i : I, this;
|
|
14593
14593
|
}
|
|
14594
|
-
pn.prototype.clear =
|
|
14594
|
+
pn.prototype.clear = Ci, pn.prototype.delete = gs, pn.prototype.get = Mr, pn.prototype.has = mn, pn.prototype.set = Ko;
|
|
14595
14595
|
function Je(v) {
|
|
14596
14596
|
var I = -1, Y = v ? v.length : 0;
|
|
14597
14597
|
for (this.clear(); ++I < Y; ) {
|
|
@@ -14621,7 +14621,7 @@ function nT() {
|
|
|
14621
14621
|
return st < 0 ? Y.push([v, I]) : Y[st][1] = I, this;
|
|
14622
14622
|
}
|
|
14623
14623
|
Je.prototype.clear = Xo, Je.prototype.delete = Zo, Je.prototype.get = Qo, Je.prototype.has = tn, Je.prototype.set = Jo;
|
|
14624
|
-
function
|
|
14624
|
+
function Cn(v) {
|
|
14625
14625
|
var I = -1, Y = v ? v.length : 0;
|
|
14626
14626
|
for (this.clear(); ++I < Y; ) {
|
|
14627
14627
|
var st = v[I];
|
|
@@ -14647,7 +14647,7 @@ function nT() {
|
|
|
14647
14647
|
function ia(v, I) {
|
|
14648
14648
|
return Ii(this, v).set(v, I), this;
|
|
14649
14649
|
}
|
|
14650
|
-
|
|
14650
|
+
Cn.prototype.clear = ta, Cn.prototype.delete = ea, Cn.prototype.get = na, Cn.prototype.has = en, Cn.prototype.set = ia;
|
|
14651
14651
|
function An(v) {
|
|
14652
14652
|
this.__data__ = new Je(v);
|
|
14653
14653
|
}
|
|
@@ -14669,7 +14669,7 @@ function nT() {
|
|
|
14669
14669
|
var st = Y.__data__;
|
|
14670
14670
|
if (!ii || st.length < n - 1)
|
|
14671
14671
|
return st.push([v, I]), this;
|
|
14672
|
-
Y = this.__data__ = new
|
|
14672
|
+
Y = this.__data__ = new Cn(st);
|
|
14673
14673
|
}
|
|
14674
14674
|
return Y.set(v, I), this;
|
|
14675
14675
|
}
|
|
@@ -14693,9 +14693,9 @@ function nT() {
|
|
|
14693
14693
|
function ca(v, I) {
|
|
14694
14694
|
return v && Dr(I, oi(I), v);
|
|
14695
14695
|
}
|
|
14696
|
-
function ys(v, I, Y, st, Kt, se,
|
|
14696
|
+
function ys(v, I, Y, st, Kt, se, Oe) {
|
|
14697
14697
|
var ae;
|
|
14698
|
-
if (st && (ae = se ? st(v, Kt, se,
|
|
14698
|
+
if (st && (ae = se ? st(v, Kt, se, Oe) : st(v)), ae !== void 0)
|
|
14699
14699
|
return ae;
|
|
14700
14700
|
if (!yn(v))
|
|
14701
14701
|
return v;
|
|
@@ -14710,7 +14710,7 @@ function nT() {
|
|
|
14710
14710
|
if (Rn == p || Rn == r || Ir && !se) {
|
|
14711
14711
|
if (ct(v))
|
|
14712
14712
|
return se ? v : {};
|
|
14713
|
-
if (ae =
|
|
14713
|
+
if (ae = Or(Ir ? {} : v), !I)
|
|
14714
14714
|
return xa(v, ca(ae, v));
|
|
14715
14715
|
} else {
|
|
14716
14716
|
if (!U[Rn])
|
|
@@ -14718,14 +14718,14 @@ function nT() {
|
|
|
14718
14718
|
ae = Ta(v, Rn, ys, I);
|
|
14719
14719
|
}
|
|
14720
14720
|
}
|
|
14721
|
-
|
|
14722
|
-
var Lr =
|
|
14721
|
+
Oe || (Oe = new An());
|
|
14722
|
+
var Lr = Oe.get(v);
|
|
14723
14723
|
if (Lr)
|
|
14724
14724
|
return Lr;
|
|
14725
|
-
if (
|
|
14725
|
+
if (Oe.set(v, ae), !Er)
|
|
14726
14726
|
var ai = Y ? wa(v) : oi(v);
|
|
14727
14727
|
return it(ai || v, function(ws, Fi) {
|
|
14728
|
-
ai && (Fi = ws, ws = v[Fi]), Ye(ae, Fi, ys(ws, I, Y, st, Fi, v,
|
|
14728
|
+
ai && (Fi = ws, ws = v[Fi]), Ye(ae, Fi, ys(ws, I, Y, st, Fi, v, Oe));
|
|
14729
14729
|
}), ae;
|
|
14730
14730
|
}
|
|
14731
14731
|
function ua(v) {
|
|
@@ -14794,8 +14794,8 @@ function nT() {
|
|
|
14794
14794
|
function Dr(v, I, Y, st) {
|
|
14795
14795
|
Y || (Y = {});
|
|
14796
14796
|
for (var Kt = -1, se = I.length; ++Kt < se; ) {
|
|
14797
|
-
var
|
|
14798
|
-
Ye(Y,
|
|
14797
|
+
var Oe = I[Kt], ae = void 0;
|
|
14798
|
+
Ye(Y, Oe, ae === void 0 ? v[Oe] : ae);
|
|
14799
14799
|
}
|
|
14800
14800
|
return Y;
|
|
14801
14801
|
}
|
|
@@ -14835,13 +14835,13 @@ function nT() {
|
|
|
14835
14835
|
var I = v.length, Y = v.constructor(I);
|
|
14836
14836
|
return I && typeof v[0] == "string" && Et.call(v, "index") && (Y.index = v.index, Y.input = v.input), Y;
|
|
14837
14837
|
}
|
|
14838
|
-
function
|
|
14838
|
+
function Or(v) {
|
|
14839
14839
|
return typeof v.constructor == "function" && !gn(v) ? ua(ei(v)) : {};
|
|
14840
14840
|
}
|
|
14841
14841
|
function Ta(v, I, Y, st) {
|
|
14842
14842
|
var Kt = v.constructor;
|
|
14843
14843
|
switch (I) {
|
|
14844
|
-
case
|
|
14844
|
+
case O:
|
|
14845
14845
|
return Ei(v);
|
|
14846
14846
|
case a:
|
|
14847
14847
|
case l:
|
|
@@ -14867,7 +14867,7 @@ function nT() {
|
|
|
14867
14867
|
return bs(v);
|
|
14868
14868
|
case x:
|
|
14869
14869
|
return ya(v, st, Y);
|
|
14870
|
-
case
|
|
14870
|
+
case C:
|
|
14871
14871
|
return ba(v);
|
|
14872
14872
|
}
|
|
14873
14873
|
}
|
|
@@ -14905,21 +14905,21 @@ function nT() {
|
|
|
14905
14905
|
return v === I || v !== v && I !== I;
|
|
14906
14906
|
}
|
|
14907
14907
|
function Ni(v) {
|
|
14908
|
-
return
|
|
14908
|
+
return Oa(v) && Et.call(v, "callee") && (!$t.call(v, "callee") || he.call(v) == r);
|
|
14909
14909
|
}
|
|
14910
14910
|
var vs = Array.isArray;
|
|
14911
|
-
function
|
|
14912
|
-
return v != null &&
|
|
14911
|
+
function Cr(v) {
|
|
14912
|
+
return v != null && Ca(v.length) && !xs(v);
|
|
14913
14913
|
}
|
|
14914
|
-
function
|
|
14915
|
-
return bn(v) &&
|
|
14914
|
+
function Oa(v) {
|
|
14915
|
+
return bn(v) && Cr(v);
|
|
14916
14916
|
}
|
|
14917
14917
|
var Ar = xr || Rr;
|
|
14918
14918
|
function xs(v) {
|
|
14919
14919
|
var I = yn(v) ? he.call(v) : "";
|
|
14920
14920
|
return I == u || I == d;
|
|
14921
14921
|
}
|
|
14922
|
-
function
|
|
14922
|
+
function Ca(v) {
|
|
14923
14923
|
return typeof v == "number" && v > -1 && v % 1 == 0 && v <= s;
|
|
14924
14924
|
}
|
|
14925
14925
|
function yn(v) {
|
|
@@ -14930,7 +14930,7 @@ function nT() {
|
|
|
14930
14930
|
return !!v && typeof v == "object";
|
|
14931
14931
|
}
|
|
14932
14932
|
function oi(v) {
|
|
14933
|
-
return
|
|
14933
|
+
return Cr(v) ? la(v) : fa(v);
|
|
14934
14934
|
}
|
|
14935
14935
|
function Pr() {
|
|
14936
14936
|
return [];
|
|
@@ -15309,7 +15309,7 @@ function kd(e, t) {
|
|
|
15309
15309
|
return M1(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
15310
15310
|
}
|
|
15311
15311
|
rt.FIFTEEN_MIN, rt.ONE_HOUR, rt.SIX_HOUR, rt.TWELVE_HOUR, rt.ONE_DAY, rt.SEVEN_DAY, rt.FIFTEEN_MIN, rt.ONE_HOUR, rt.SIX_HOUR, rt.TWELVE_HOUR, rt.ONE_DAY, rt.SEVEN_DAY, rt.THIRTY_DAY, rt.NINETY_DAY, rt.ONE_HUNDRED_EIGHTY_DAY, rt.ONE_YEAR, rt.CURRENT_WEEK, rt.CURRENT_MONTH, rt.CURRENT_QUARTER, rt.CURRENT_YEAR, rt.PREVIOUS_WEEK, rt.PREVIOUS_MONTH, rt.PREVIOUS_QUARTER, rt.PREVIOUS_YEAR;
|
|
15312
|
-
const dT = new Map(rp.map((e) => [e.code, { code: e.code, name: e.name }])), El = (e) => dT.get(e)?.name || e,
|
|
15312
|
+
const dT = new Map(rp.map((e) => [e.code, { code: e.code, name: e.name }])), El = (e) => dT.get(e)?.name || e, Od = 1e3, hT = 1e4, Cd = 1e6, Ad = 1e9, Pd = 1e12, so = (e, t) => {
|
|
15313
15313
|
if (t.separator === !1 || e < 1e3)
|
|
15314
15314
|
return e.toString();
|
|
15315
15315
|
const n = typeof t.separator == "string" ? t.separator : ",", i = [];
|
|
@@ -15329,8 +15329,8 @@ function ro(e, t = {}) {
|
|
|
15329
15329
|
let n;
|
|
15330
15330
|
const i = e < 0;
|
|
15331
15331
|
i && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
|
|
15332
|
-
const s = t.min10k ? hT :
|
|
15333
|
-
return e < s || t.precision && t.precision > Math.log10(e) ? n = so(Es(e, 1, t), t) : e <
|
|
15332
|
+
const s = t.min10k ? hT : Od;
|
|
15333
|
+
return e < s || t.precision && t.precision > Math.log10(e) ? n = so(Es(e, 1, t), t) : e < Cd ? n = `${Es(e, Od, t)}k` : e < Ad ? n = `${Es(e, Cd, t)}m` : e < Pd ? n = `${so(Es(e, Ad, t), t)}b` : n = `${so(Es(e, Pd, t), t)}t`, i && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
|
|
15334
15334
|
}
|
|
15335
15335
|
ro.addCommas = so;
|
|
15336
15336
|
const fT = typeof document < "u" && document.documentElement?.lang || "en-US", oo = new Intl.NumberFormat(fT);
|
|
@@ -15399,14 +15399,14 @@ function Di({
|
|
|
15399
15399
|
return `${d} - ${h} ${u}`;
|
|
15400
15400
|
} };
|
|
15401
15401
|
}
|
|
15402
|
-
const
|
|
15402
|
+
const Oo = (e) => ["interactive", "zoom-interactive"].includes(e), yp = (e, t, n, i) => {
|
|
15403
15403
|
const { tooltip: s } = t;
|
|
15404
|
-
if (s.opacity === 0 && !
|
|
15404
|
+
if (s.opacity === 0 && !Oo(e.interactionMode)) {
|
|
15405
15405
|
e.showTooltip = !1;
|
|
15406
15406
|
return;
|
|
15407
15407
|
}
|
|
15408
15408
|
const { i18n: r } = bt.useI18n(), { formatUnit: o } = Di({ i18n: r }), a = e.chartTooltipSortFn || ((l, c) => c.rawValue - l.rawValue);
|
|
15409
|
-
if (s.body && !
|
|
15409
|
+
if (s.body && !Oo(e.interactionMode)) {
|
|
15410
15410
|
const l = s.labelColors, c = t.chart.config?.options?.indexAxis === "y" ? "x" : "y", u = s.dataPoints[0].parsed.x ?? 0;
|
|
15411
15411
|
e.tooltipContext = i?.contextFormatter ? i.contextFormatter(u, n) : Hs({
|
|
15412
15412
|
tickValue: new Date(u),
|
|
@@ -15425,12 +15425,12 @@ const Co = (e) => ["interactive", "zoom-interactive"].includes(e), yp = (e, t, n
|
|
|
15425
15425
|
}
|
|
15426
15426
|
}, bp = (e, t) => {
|
|
15427
15427
|
const { tooltip: n } = t, { i18n: i } = bt.useI18n(), { formatUnit: s } = Di({ i18n: i });
|
|
15428
|
-
if (n.opacity === 0 && !
|
|
15428
|
+
if (n.opacity === 0 && !Oo(e.interactionMode)) {
|
|
15429
15429
|
e.showTooltip = !1;
|
|
15430
15430
|
return;
|
|
15431
15431
|
}
|
|
15432
15432
|
const r = e.chartTooltipSortFn || ((o, a) => a.rawValue - o.rawValue);
|
|
15433
|
-
if (n.body && !
|
|
15433
|
+
if (n.body && !Oo(e.interactionMode)) {
|
|
15434
15434
|
const o = n.labelColors, a = t.chart.config?.options?.indexAxis === "y" ? "x" : "y", l = ["gauge", "donut"].includes(e.chartType);
|
|
15435
15435
|
l ? e.tooltipContext = e.dimensionDisplay || n.dataPoints[0].label : n.chart.data.isMultiDimension ? e.tooltipContext = n.dataPoints[0].label : e.tooltipContext = e.dimensionDisplay || "", e.tooltipSeries = n.dataPoints.map((c, u) => {
|
|
15436
15436
|
const d = l ? c.parsed : c.parsed[a], h = s(d ?? 0, e.units, { translateUnit: e.translateUnit });
|
|
@@ -15469,7 +15469,7 @@ const vp = (e, t, n) => {
|
|
|
15469
15469
|
value: t && t[s.text],
|
|
15470
15470
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15471
15471
|
}))).sort(n);
|
|
15472
|
-
}, DP = 2, vT = 10, xT = 12, Il = 10, wT = "#f1f0ff", ST = "#e0e4ea", Rd = "#6c7489", TT = "#afb7c5", MT = "#d60027", DT = "#ad000e", _c = "#6c7489", Ed = "#52596e", kT = "#007d60",
|
|
15472
|
+
}, DP = 2, vT = 10, xT = 12, Il = 10, wT = "#f1f0ff", ST = "#e0e4ea", Rd = "#6c7489", TT = "#afb7c5", MT = "#d60027", DT = "#ad000e", _c = "#6c7489", Ed = "#52596e", kT = "#007d60", OT = "#995c00", CT = "#ffc400", AT = "'Inter', Roboto, Helvetica, sans-serif", or = "16px", PT = "20px", RT = "#bee2ff", ET = "#8fc1ff", IT = "#5f9aff", LT = "#306fff", NT = "#b5ffee", FT = "#00fabe", zT = "#00d6a4", UT = "#00a17b", HT = "#007d60", BT = "#005944", WT = "#b5ffee", YT = "#00fabe", $T = "#b5ffee", jT = "#00a17b", VT = "#fff296", qT = "#ffe04b", GT = "#ffc400", KT = "#b37600", XT = "#995c00", ZT = "#804400", QT = "#fff296", JT = "#ffe04b", tM = "#ffc2b3", eM = "#ff9877", nM = "#ff723c", iM = "#f75008", sM = "#d13500", rM = "#a31f00", oM = "#ffc2b3", aM = "#ff9877", lM = "#ff723c", cM = "#f75008", uM = "#d13500", dM = "#a31f00", hM = "#ffc2b3", fM = "#ff9877", pM = "#ff723c", mM = "#f75008", gM = "#d13500", yM = "#a31f00", bM = "#ffc2b3", _M = "#ff9877", vM = "#ff723c", xM = "#f75008", wM = "#d13500", SM = "#a31f00", TM = "#ffc2b3", MM = "#ff9877", DM = "#ff723c", kM = "#f75008", OM = "#d13500", CM = "#ffabab", AM = "#ff7272", PM = "#ff3954", RM = "#f50045", EM = "#d60027", IM = "#ad000e", LM = "#ffabab", NM = "#ff7272", FM = "#ff3954", zM = "#f50045", UM = "#d60027", HM = "#eefaff", BM = "#ecfffb", WM = "#fffce0", YM = "#fff1ef", $M = "#ffe5e5", jM = "#5f9aff", VM = "#00d6a4", qM = "#ffc400", GM = "#ff723c", KM = "#ff3954", Kn = [
|
|
15473
15473
|
"#a86cd5",
|
|
15474
15474
|
"#6a86d2",
|
|
15475
15475
|
"#00bbf9",
|
|
@@ -15492,7 +15492,7 @@ const vp = (e, t, n) => {
|
|
|
15492
15492
|
case "error":
|
|
15493
15493
|
return MT;
|
|
15494
15494
|
case "warning":
|
|
15495
|
-
return
|
|
15495
|
+
return CT;
|
|
15496
15496
|
case "neutral":
|
|
15497
15497
|
return Rd;
|
|
15498
15498
|
default:
|
|
@@ -15517,80 +15517,80 @@ const vp = (e, t, n) => {
|
|
|
15517
15517
|
}
|
|
15518
15518
|
return tl.get(e);
|
|
15519
15519
|
}, sD = (e, t) => t.datasets.reduce((n, i, s) => e.isDatasetVisible(s) ? n + i.data.reduce((r, o) => isNaN(o) ? r : r + o, 0) : n, 0), rD = (e, t) => t === 0 ? " (0.0%)" : ` (${(e / t * 100).toFixed(1)}%)`, oD = ST, aD = {
|
|
15520
|
-
100:
|
|
15521
|
-
101:
|
|
15522
|
-
102:
|
|
15523
|
-
103:
|
|
15524
|
-
200:
|
|
15525
|
-
201:
|
|
15526
|
-
202:
|
|
15527
|
-
203:
|
|
15528
|
-
204:
|
|
15529
|
-
205:
|
|
15530
|
-
206:
|
|
15531
|
-
207:
|
|
15532
|
-
208:
|
|
15533
|
-
226:
|
|
15534
|
-
300:
|
|
15535
|
-
301:
|
|
15536
|
-
302:
|
|
15537
|
-
303:
|
|
15538
|
-
304:
|
|
15539
|
-
305:
|
|
15540
|
-
307:
|
|
15541
|
-
308:
|
|
15542
|
-
400:
|
|
15543
|
-
401:
|
|
15544
|
-
402:
|
|
15545
|
-
403:
|
|
15546
|
-
404:
|
|
15547
|
-
405:
|
|
15548
|
-
406:
|
|
15549
|
-
407:
|
|
15550
|
-
408:
|
|
15551
|
-
409:
|
|
15552
|
-
410:
|
|
15553
|
-
411:
|
|
15554
|
-
412:
|
|
15555
|
-
413:
|
|
15556
|
-
414:
|
|
15557
|
-
415:
|
|
15558
|
-
416:
|
|
15559
|
-
417:
|
|
15560
|
-
418:
|
|
15561
|
-
421:
|
|
15562
|
-
422:
|
|
15563
|
-
423:
|
|
15564
|
-
424:
|
|
15565
|
-
425:
|
|
15566
|
-
426:
|
|
15567
|
-
428:
|
|
15568
|
-
429:
|
|
15569
|
-
431:
|
|
15570
|
-
451:
|
|
15520
|
+
100: RT,
|
|
15521
|
+
101: ET,
|
|
15522
|
+
102: IT,
|
|
15523
|
+
103: LT,
|
|
15524
|
+
200: NT,
|
|
15525
|
+
201: FT,
|
|
15526
|
+
202: zT,
|
|
15527
|
+
203: UT,
|
|
15528
|
+
204: HT,
|
|
15529
|
+
205: BT,
|
|
15530
|
+
206: WT,
|
|
15531
|
+
207: YT,
|
|
15532
|
+
208: $T,
|
|
15533
|
+
226: jT,
|
|
15534
|
+
300: VT,
|
|
15535
|
+
301: qT,
|
|
15536
|
+
302: GT,
|
|
15537
|
+
303: KT,
|
|
15538
|
+
304: XT,
|
|
15539
|
+
305: ZT,
|
|
15540
|
+
307: QT,
|
|
15541
|
+
308: JT,
|
|
15542
|
+
400: tM,
|
|
15543
|
+
401: eM,
|
|
15544
|
+
402: nM,
|
|
15545
|
+
403: iM,
|
|
15546
|
+
404: sM,
|
|
15547
|
+
405: rM,
|
|
15548
|
+
406: oM,
|
|
15549
|
+
407: aM,
|
|
15550
|
+
408: lM,
|
|
15551
|
+
409: cM,
|
|
15552
|
+
410: uM,
|
|
15553
|
+
411: dM,
|
|
15554
|
+
412: hM,
|
|
15555
|
+
413: fM,
|
|
15556
|
+
414: pM,
|
|
15557
|
+
415: mM,
|
|
15558
|
+
416: gM,
|
|
15559
|
+
417: yM,
|
|
15560
|
+
418: bM,
|
|
15561
|
+
421: _M,
|
|
15562
|
+
422: vM,
|
|
15563
|
+
423: xM,
|
|
15564
|
+
424: wM,
|
|
15565
|
+
425: SM,
|
|
15566
|
+
426: TM,
|
|
15567
|
+
428: MM,
|
|
15568
|
+
429: DM,
|
|
15569
|
+
431: kM,
|
|
15570
|
+
451: OM,
|
|
15571
15571
|
500: CM,
|
|
15572
|
-
501:
|
|
15573
|
-
502:
|
|
15574
|
-
503:
|
|
15575
|
-
504:
|
|
15576
|
-
505:
|
|
15577
|
-
506:
|
|
15578
|
-
507:
|
|
15579
|
-
508:
|
|
15580
|
-
510:
|
|
15581
|
-
511:
|
|
15572
|
+
501: AM,
|
|
15573
|
+
502: PM,
|
|
15574
|
+
503: RM,
|
|
15575
|
+
504: EM,
|
|
15576
|
+
505: IM,
|
|
15577
|
+
506: LM,
|
|
15578
|
+
507: NM,
|
|
15579
|
+
508: FM,
|
|
15580
|
+
510: zM,
|
|
15581
|
+
511: UM
|
|
15582
15582
|
}, lD = {
|
|
15583
|
-
100:
|
|
15584
|
-
200:
|
|
15585
|
-
300:
|
|
15586
|
-
400:
|
|
15587
|
-
500:
|
|
15583
|
+
100: HM,
|
|
15584
|
+
200: BM,
|
|
15585
|
+
300: WM,
|
|
15586
|
+
400: YM,
|
|
15587
|
+
500: $M
|
|
15588
15588
|
}, cD = {
|
|
15589
|
-
"1XX":
|
|
15590
|
-
"2XX":
|
|
15591
|
-
"3XX":
|
|
15592
|
-
"4XX":
|
|
15593
|
-
"5XX":
|
|
15589
|
+
"1XX": jM,
|
|
15590
|
+
"2XX": VM,
|
|
15591
|
+
"3XX": qM,
|
|
15592
|
+
"4XX": GM,
|
|
15593
|
+
"5XX": KM
|
|
15594
15594
|
}, uD = (e) => {
|
|
15595
15595
|
const t = parseInt(e, 10), n = Math.floor(t / 100) * 100;
|
|
15596
15596
|
return aD[t] ?? lD[n] ?? oD;
|
|
@@ -15819,7 +15819,7 @@ function sl(e, t) {
|
|
|
15819
15819
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
15820
15820
|
return n;
|
|
15821
15821
|
}
|
|
15822
|
-
function
|
|
15822
|
+
function Co(e, t) {
|
|
15823
15823
|
const n = e < 0 ? "-" : "";
|
|
15824
15824
|
let i = Math.abs(e).toString();
|
|
15825
15825
|
for (; i.length < t; )
|
|
@@ -15827,21 +15827,21 @@ function Oo(e, t) {
|
|
|
15827
15827
|
return n + i;
|
|
15828
15828
|
}
|
|
15829
15829
|
function Vi(e, t = "") {
|
|
15830
|
-
const n = e > 0 ? "-" : "+", i = Math.abs(e), s =
|
|
15830
|
+
const n = e > 0 ? "-" : "+", i = Math.abs(e), s = Co(Math.floor(i / 60), 2), r = Co(Math.floor(i % 60), 2);
|
|
15831
15831
|
return n + s + t + r;
|
|
15832
15832
|
}
|
|
15833
15833
|
function Hd(e, t) {
|
|
15834
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
15834
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Co(Math.abs(e) / 60, 2) : Vi(e, t);
|
|
15835
15835
|
}
|
|
15836
15836
|
function kD(e, t = "") {
|
|
15837
15837
|
const n = e > 0 ? "-" : "+", i = Math.abs(e), s = Math.floor(i / 60), r = i % 60;
|
|
15838
|
-
return r === 0 ? n + String(s) : n + String(s) + t +
|
|
15838
|
+
return r === 0 ? n + String(s) : n + String(s) + t + Co(r, 2);
|
|
15839
15839
|
}
|
|
15840
15840
|
function Bd(e) {
|
|
15841
15841
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
15842
15842
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
15843
15843
|
}
|
|
15844
|
-
const
|
|
15844
|
+
const OD = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, rl = 36e5, Wd = 6e4, CD = 2, Me = {
|
|
15845
15845
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
15846
15846
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
15847
15847
|
// year tokens
|
|
@@ -15873,14 +15873,14 @@ const CD = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
15873
15873
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
15874
15874
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
15875
15875
|
// time zone tokens (to identify the presence of a tz)
|
|
15876
|
-
timeZone:
|
|
15876
|
+
timeZone: OD
|
|
15877
15877
|
};
|
|
15878
15878
|
function Sp(e, t = {}) {
|
|
15879
15879
|
if (arguments.length < 1)
|
|
15880
15880
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
15881
15881
|
if (e === null)
|
|
15882
15882
|
return /* @__PURE__ */ new Date(NaN);
|
|
15883
|
-
const n = t.additionalDigits == null ?
|
|
15883
|
+
const n = t.additionalDigits == null ? CD : Number(t.additionalDigits);
|
|
15884
15884
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
15885
15885
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
15886
15886
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -16110,7 +16110,7 @@ const YD = ({
|
|
|
16110
16110
|
timezone: n,
|
|
16111
16111
|
tooltipMap: WD,
|
|
16112
16112
|
defaultFormat: "MMM dd, yyyy h:mm:ss a"
|
|
16113
|
-
}), $D = (e) => e?.code === "ERR_CANCELED" || e?.name === "CanceledError" || e?.name === "AbortError",
|
|
16113
|
+
}), $D = (e) => e?.code === "ERR_CANCELED" || e?.name === "CanceledError" || e?.name === "AbortError", OP = (e) => {
|
|
16114
16114
|
const { i18n: t } = bt.useI18n();
|
|
16115
16115
|
return $D(e) ? {
|
|
16116
16116
|
type: "canceled",
|
|
@@ -16593,28 +16593,28 @@ function ek(e, t) {
|
|
|
16593
16593
|
const [D] = w.split(","), E = p[w];
|
|
16594
16594
|
return b[D] ? b[D] += E : b[D] = E, b;
|
|
16595
16595
|
}, {}), y = Object.entries(g).sort(([, b], [, w]) => Number(w) - Number(b)).map(([b]) => b), x = r[h], T = r[f];
|
|
16596
|
-
let
|
|
16597
|
-
if (c && h === "country_code" && (
|
|
16596
|
+
let C = c && x && Object.entries(x).map(([b, w]) => ({ id: b, name: w.name })) || o.map((b) => ({ id: b, name: b })), k = c && T && Object.entries(T).map(([b, w]) => ({ id: b, name: w.name })) || o.map((b) => ({ id: b, name: b }));
|
|
16597
|
+
if (c && h === "country_code" && (C = C.map((b) => ({
|
|
16598
16598
|
...b,
|
|
16599
16599
|
name: El(b.id) || b.name
|
|
16600
16600
|
}))), c && f === "country_code" && (k = k.map((b) => ({
|
|
16601
16601
|
...b,
|
|
16602
16602
|
name: El(b.id) || b.name
|
|
16603
|
-
}))), h !== "status_code" && h !== "status_code_grouped" && (
|
|
16603
|
+
}))), h !== "status_code" && h !== "status_code_grouped" && (C.sort((b, w) => y.indexOf(b.id) - y.indexOf(w.id)), k.sort((b, w) => y.indexOf(b.id) - y.indexOf(w.id))), !C || !k)
|
|
16604
16604
|
return { labels: [], datasets: [] };
|
|
16605
|
-
const
|
|
16605
|
+
const O = tk({
|
|
16606
16606
|
isMultiMetric: l,
|
|
16607
16607
|
hasDimensions: c,
|
|
16608
16608
|
metricNames: o,
|
|
16609
16609
|
dimensionFieldNames: d,
|
|
16610
16610
|
barSegmentLabels: k,
|
|
16611
16611
|
pivotRecords: p,
|
|
16612
|
-
rowLabels:
|
|
16612
|
+
rowLabels: C,
|
|
16613
16613
|
colorPalette: e.colorPalette || Kn
|
|
16614
|
-
}), A = c ?
|
|
16614
|
+
}), A = c ? C.map((b) => n && n.te(`chartLabels.${b.name}`) && n.t(`chartLabels.${b.name}`) || b.name) : o.map((b) => n && n.te(`chartLabels.${b}`) && n.t(`chartLabels.${b}`) || b), M = C.map((b) => b.id === "empty");
|
|
16615
16615
|
return {
|
|
16616
16616
|
labels: A,
|
|
16617
|
-
datasets:
|
|
16617
|
+
datasets: O,
|
|
16618
16618
|
isLabelEmpty: M,
|
|
16619
16619
|
isMultiDimension: u
|
|
16620
16620
|
};
|
|
@@ -16665,7 +16665,7 @@ function rk(e, t) {
|
|
|
16665
16665
|
return console.error("Invalid step value:", g), { datasets: [], labels: [] };
|
|
16666
16666
|
if (!s.length)
|
|
16667
16667
|
return { datasets: [], labels: [] };
|
|
16668
|
-
const y = ik(c), x = sk(c, u, g, y, s), T = /* @__PURE__ */ new Set(),
|
|
16668
|
+
const y = ik(c), x = sk(c, u, g, y, s), T = /* @__PURE__ */ new Set(), C = s?.length ? s.reduce((A, M) => {
|
|
16669
16669
|
const _ = new Date(M.timestamp).valueOf(), b = M.event;
|
|
16670
16670
|
for (const w of o)
|
|
16671
16671
|
T.add(w), _ in A || (A[_] = {}), w in A[_] || (A[_][w] = {});
|
|
@@ -16674,8 +16674,8 @@ function rk(e, t) {
|
|
|
16674
16674
|
b[h] === D.id || w === D.id ? (A[_][w] || (A[_][w] = {}), A[_][w][D.name] = Math.round(Number(b[w]) * 1e3) / 1e3) : d.length || (A[_][w] || (A[_][w] = {}), A[_][w][D.name] = Math.round(Number(b[D.id]) * 1e3) / 1e3);
|
|
16675
16675
|
});
|
|
16676
16676
|
return A;
|
|
16677
|
-
}, {}) : {},
|
|
16678
|
-
const w = x.map((H) => H in
|
|
16677
|
+
}, {}) : {}, O = [...o.length === 1 ? o.flatMap((A) => p.map((M) => [A, M.name, M.id === "empty"])) : p.map((A) => [A.name, A.name, A.id === "empty"])].map(([A, M, _], b) => {
|
|
16678
|
+
const w = x.map((H) => H in C && A in C[H] ? { x: H, y: C[H][A][M] || 0 } : { x: H, y: 0 });
|
|
16679
16679
|
let { colorPalette: D, fill: E } = e;
|
|
16680
16680
|
ht(D) && (D = Kn);
|
|
16681
16681
|
const j = xp(b, M, _, D);
|
|
@@ -16694,8 +16694,8 @@ function rk(e, t) {
|
|
|
16694
16694
|
isSegmentEmpty: _
|
|
16695
16695
|
};
|
|
16696
16696
|
});
|
|
16697
|
-
return h === "status_code" || h === "status_code_grouped" ?
|
|
16698
|
-
datasets:
|
|
16697
|
+
return h === "status_code" || h === "status_code_grouped" ? O.sort((A, M) => (A.label ?? "") < (M.label ?? "") ? -1 : 1) : O.sort((A, M) => Number(A.total) < Number(M.total) ? -1 : 1), {
|
|
16698
|
+
datasets: O
|
|
16699
16699
|
};
|
|
16700
16700
|
}
|
|
16701
16701
|
} catch (s) {
|
|
@@ -16770,7 +16770,7 @@ function pk(e, t = {}) {
|
|
|
16770
16770
|
return n;
|
|
16771
16771
|
}
|
|
16772
16772
|
function mk(e, t = !0, n) {
|
|
16773
|
-
fk() ? Qn(e, n) : t ? e() :
|
|
16773
|
+
fk() ? Qn(e, n) : t ? e() : Oh(e);
|
|
16774
16774
|
}
|
|
16775
16775
|
function gk(e, t, n) {
|
|
16776
16776
|
return oe(e, t, {
|
|
@@ -16813,14 +16813,14 @@ function yk() {
|
|
|
16813
16813
|
}, t), e;
|
|
16814
16814
|
}
|
|
16815
16815
|
// @__NO_SIDE_EFFECTS__
|
|
16816
|
-
function
|
|
16816
|
+
function Op(e) {
|
|
16817
16817
|
const t = /* @__PURE__ */ yk();
|
|
16818
16818
|
return L(() => (t.value, !!e()));
|
|
16819
16819
|
}
|
|
16820
16820
|
function bk(e, t, n = {}) {
|
|
16821
16821
|
const { window: i = zo, ...s } = n;
|
|
16822
16822
|
let r;
|
|
16823
|
-
const o = /* @__PURE__ */
|
|
16823
|
+
const o = /* @__PURE__ */ Op(() => i && "MutationObserver" in i), a = () => {
|
|
16824
16824
|
r && (r.disconnect(), r = void 0);
|
|
16825
16825
|
}, l = oe(L(() => {
|
|
16826
16826
|
const d = ao(Mt(e)).map(rs).filter(uk);
|
|
@@ -16849,7 +16849,7 @@ function _k(e) {
|
|
|
16849
16849
|
}
|
|
16850
16850
|
function vk(e, t = {}) {
|
|
16851
16851
|
var n, i, s, r;
|
|
16852
|
-
const { pointerTypes: o, preventDefault: a, stopPropagation: l, exact: c, onMove: u, onEnd: d, onStart: h, initialValue: f, axis: p = "both", draggingElement: g = zo, containerElement: y, handle: x = e, buttons: T = [0], restrictInView:
|
|
16852
|
+
const { pointerTypes: o, preventDefault: a, stopPropagation: l, exact: c, onMove: u, onEnd: d, onStart: h, initialValue: f, axis: p = "both", draggingElement: g = zo, containerElement: y, handle: x = e, buttons: T = [0], restrictInView: C, autoScroll: k = !1 } = t, O = Vt((n = Mt(f)) !== null && n !== void 0 ? n : {
|
|
16853
16853
|
x: 0,
|
|
16854
16854
|
y: 0
|
|
16855
16855
|
}), A = Vt(), M = (P) => o ? o.includes(P.pointerType) : !0, _ = (P) => {
|
|
@@ -16871,11 +16871,11 @@ function vk(e, t = {}) {
|
|
|
16871
16871
|
const H = () => {
|
|
16872
16872
|
const P = Mt(y);
|
|
16873
16873
|
P && !j && (j = setInterval(() => {
|
|
16874
|
-
const N = Mt(e).getBoundingClientRect(), { x: B, y: tt } =
|
|
16874
|
+
const N = Mt(e).getBoundingClientRect(), { x: B, y: tt } = O.value, Q = {
|
|
16875
16875
|
x: B - P.scrollLeft,
|
|
16876
16876
|
y: tt - P.scrollTop
|
|
16877
16877
|
};
|
|
16878
|
-
Q.x >= 0 && Q.y >= 0 && (E(P, N, Q), Q.x += P.scrollLeft, Q.y += P.scrollTop,
|
|
16878
|
+
Q.x >= 0 && Q.y >= 0 && (E(P, N, Q), Q.x += P.scrollLeft, Q.y += P.scrollTop, O.value = Q);
|
|
16879
16879
|
}, 1e3 / 60));
|
|
16880
16880
|
}, V = () => {
|
|
16881
16881
|
j && (clearInterval(j), j = null);
|
|
@@ -16886,13 +16886,13 @@ function vk(e, t = {}) {
|
|
|
16886
16886
|
if (Mt(t.disabled) || !A.value) return;
|
|
16887
16887
|
const P = Mt(y);
|
|
16888
16888
|
if (!P) return;
|
|
16889
|
-
const N = Mt(e).getBoundingClientRect(), { x: B, y: tt } =
|
|
16889
|
+
const N = Mt(e).getBoundingClientRect(), { x: B, y: tt } = O.value;
|
|
16890
16890
|
W({
|
|
16891
16891
|
x: B - P.scrollLeft,
|
|
16892
16892
|
y: tt - P.scrollTop
|
|
16893
16893
|
}, P, w.margin, N) ? H() : V();
|
|
16894
16894
|
};
|
|
16895
|
-
Mt(k) && oe(
|
|
16895
|
+
Mt(k) && oe(O, $);
|
|
16896
16896
|
const R = (P) => {
|
|
16897
16897
|
var N;
|
|
16898
16898
|
if (!Mt(T).includes(P.button) || Mt(t.disabled) || !M(P) || Mt(c) && P.target !== Mt(e)) return;
|
|
@@ -16906,11 +16906,11 @@ function vk(e, t = {}) {
|
|
|
16906
16906
|
const N = Mt(y);
|
|
16907
16907
|
N instanceof HTMLElement && _k(N);
|
|
16908
16908
|
const B = Mt(e).getBoundingClientRect();
|
|
16909
|
-
let { x: tt, y: Q } =
|
|
16909
|
+
let { x: tt, y: Q } = O.value;
|
|
16910
16910
|
if ((p === "x" || p === "both") && (tt = P.clientX - A.value.x, N && (tt = Math.min(Math.max(0, tt), N.scrollWidth - B.width))), (p === "y" || p === "both") && (Q = P.clientY - A.value.y, N && (Q = Math.min(Math.max(0, Q), N.scrollHeight - B.height))), Mt(k) && N && (j === null && E(N, B, {
|
|
16911
16911
|
x: tt,
|
|
16912
16912
|
y: Q
|
|
16913
|
-
}), tt += N.scrollLeft, Q += N.scrollTop), N && (
|
|
16913
|
+
}), tt += N.scrollLeft, Q += N.scrollTop), N && (C || k)) {
|
|
16914
16914
|
if (p !== "y") {
|
|
16915
16915
|
const q = tt - N.scrollLeft;
|
|
16916
16916
|
q < 0 ? tt = N.scrollLeft : q > N.clientWidth - B.width && (tt = N.clientWidth - B.width + N.scrollLeft);
|
|
@@ -16920,12 +16920,12 @@ function vk(e, t = {}) {
|
|
|
16920
16920
|
q < 0 ? Q = N.scrollTop : q > N.clientHeight - B.height && (Q = N.clientHeight - B.height + N.scrollTop);
|
|
16921
16921
|
}
|
|
16922
16922
|
}
|
|
16923
|
-
|
|
16923
|
+
O.value = {
|
|
16924
16924
|
x: tt,
|
|
16925
16925
|
y: Q
|
|
16926
|
-
}, u?.(
|
|
16926
|
+
}, u?.(O.value, P), _(P);
|
|
16927
16927
|
}, U = (P) => {
|
|
16928
|
-
Mt(t.disabled) || !M(P) || A.value && (A.value = void 0, k && V(), d?.(
|
|
16928
|
+
Mt(t.disabled) || !M(P) || A.value && (A.value = void 0, k && V(), d?.(O.value, P), _(P));
|
|
16929
16929
|
};
|
|
16930
16930
|
if (kp) {
|
|
16931
16931
|
const P = () => {
|
|
@@ -16938,12 +16938,12 @@ function vk(e, t = {}) {
|
|
|
16938
16938
|
Zs(x, "pointerdown", R, P), Zs(g, "pointermove", z, P), Zs(g, "pointerup", U, P);
|
|
16939
16939
|
}
|
|
16940
16940
|
return {
|
|
16941
|
-
...pk(
|
|
16942
|
-
position:
|
|
16941
|
+
...pk(O),
|
|
16942
|
+
position: O,
|
|
16943
16943
|
isDragging: L(() => !!A.value),
|
|
16944
16944
|
style: L(() => `
|
|
16945
|
-
left: ${
|
|
16946
|
-
top: ${
|
|
16945
|
+
left: ${O.value.x}px;
|
|
16946
|
+
top: ${O.value.y}px;
|
|
16947
16947
|
${k ? "text-wrap: nowrap;" : ""}
|
|
16948
16948
|
`)
|
|
16949
16949
|
};
|
|
@@ -16951,7 +16951,7 @@ function vk(e, t = {}) {
|
|
|
16951
16951
|
function xk(e, t, n = {}) {
|
|
16952
16952
|
const { window: i = zo, ...s } = n;
|
|
16953
16953
|
let r;
|
|
16954
|
-
const o = /* @__PURE__ */
|
|
16954
|
+
const o = /* @__PURE__ */ Op(() => i && "ResizeObserver" in i), a = () => {
|
|
16955
16955
|
r && (r.disconnect(), r = void 0);
|
|
16956
16956
|
}, l = oe(L(() => {
|
|
16957
16957
|
const u = Mt(e);
|
|
@@ -17029,13 +17029,13 @@ const Tk = ({
|
|
|
17029
17029
|
r.push([Math.ceil(c), d]);
|
|
17030
17030
|
}
|
|
17031
17031
|
return r;
|
|
17032
|
-
},
|
|
17032
|
+
}, Cp = () => ({
|
|
17033
17033
|
minCounts: {},
|
|
17034
17034
|
maxCounts: {},
|
|
17035
17035
|
minStamps: {},
|
|
17036
17036
|
maxStamps: {},
|
|
17037
17037
|
renderPoints: {}
|
|
17038
|
-
}), Qs = Vt({}), Mk = (e) => (Qs.value[e] || (Qs.value[e] =
|
|
17038
|
+
}), Qs = Vt({}), Mk = (e) => (Qs.value[e] || (Qs.value[e] = Cp()), Qs.value[e]), Dk = (e, t) => {
|
|
17039
17039
|
const n = Qs.value[t];
|
|
17040
17040
|
if (!n) return;
|
|
17041
17041
|
const i = n.minCounts[e] !== void 0 || n.maxCounts[e] !== void 0 || n.minStamps[e] !== void 0 || n.maxStamps[e] !== void 0 || n.renderPoints[e] !== void 0;
|
|
@@ -17052,7 +17052,7 @@ function kk({
|
|
|
17052
17052
|
renderPoints: a = void 0,
|
|
17053
17053
|
type: l
|
|
17054
17054
|
}) {
|
|
17055
|
-
const u = n !== void 0 && e !== void 0 ? Mk(n) :
|
|
17055
|
+
const u = n !== void 0 && e !== void 0 ? Mk(n) : Cp(), d = e !== void 0 ? e : "static-chart-key", h = L(() => t.reduce((w, { timestamps: D }) => [...w, ...D], [])), f = L(() => i || h.value.reduce((w, D) => w === 0 ? D : Math.min(w, D), 0)), p = L(() => s || h.value.reduce((w, D) => Math.max(w, D), 0));
|
|
17056
17056
|
Pc(() => {
|
|
17057
17057
|
u.minStamps[d] = f.value, u.maxStamps[d] = p.value, a !== void 0 && (u.renderPoints[d] = a);
|
|
17058
17058
|
});
|
|
@@ -17062,7 +17062,7 @@ function kk({
|
|
|
17062
17062
|
}), T = L(() => {
|
|
17063
17063
|
const w = y.value - g.value;
|
|
17064
17064
|
return Math.ceil(w / x.value);
|
|
17065
|
-
}),
|
|
17065
|
+
}), C = L(() => t.length > 1), k = L(() => t.map(({ timestamps: w, color: D, label: E }) => ({
|
|
17066
17066
|
data: Tk({
|
|
17067
17067
|
bucketCount: x.value,
|
|
17068
17068
|
minStamp: g.value,
|
|
@@ -17073,10 +17073,10 @@ function kk({
|
|
|
17073
17073
|
y: W
|
|
17074
17074
|
})),
|
|
17075
17075
|
label: E,
|
|
17076
|
-
...(l === "sparkline_bar" ||
|
|
17076
|
+
...(l === "sparkline_bar" || C.value) && D && { backgroundColor: D },
|
|
17077
17077
|
...l !== "sparkline_bar" && D && { borderColor: D },
|
|
17078
|
-
...
|
|
17079
|
-
}))),
|
|
17078
|
+
...C.value && l !== "sparkline_bar" && { fill: !0 }
|
|
17079
|
+
}))), O = L(() => {
|
|
17080
17080
|
const w = k.value[0]?.data?.length ?? 0, D = [];
|
|
17081
17081
|
for (let E = 0; E < w; E++) {
|
|
17082
17082
|
let j = 0;
|
|
@@ -17086,7 +17086,7 @@ function kk({
|
|
|
17086
17086
|
}
|
|
17087
17087
|
return D;
|
|
17088
17088
|
}), A = L(() => {
|
|
17089
|
-
const w =
|
|
17089
|
+
const w = O.value.reduce((D, E) => Math.max(D, E), 0);
|
|
17090
17090
|
return Math.max(w, o ?? 0);
|
|
17091
17091
|
}), M = L(() => {
|
|
17092
17092
|
const w = k.value.reduce((j, { data: H }) => [...j, ...H.map(({ y: V }) => V)], []), D = w.length ? w[0] : 0, E = w.reduce((j, H) => Math.min(j, H), D);
|
|
@@ -17174,19 +17174,19 @@ const Zd = {
|
|
|
17174
17174
|
function xc(e, t, n) {
|
|
17175
17175
|
return (Zd.modes[n.mode] || Zd.modes.nearest)(e, t, n);
|
|
17176
17176
|
}
|
|
17177
|
-
function
|
|
17177
|
+
function Ok(e, t, n) {
|
|
17178
17178
|
return n !== "x" && n !== "y" ? e.inRange(t.x, t.y, "x", !0) || e.inRange(t.x, t.y, "y", !0) : e.inRange(t.x, t.y, n, !0);
|
|
17179
17179
|
}
|
|
17180
|
-
function
|
|
17180
|
+
function Ck(e, t, n) {
|
|
17181
17181
|
return n === "x" ? { x: e.x, y: t.y } : n === "y" ? { x: t.x, y: e.y } : t;
|
|
17182
17182
|
}
|
|
17183
17183
|
function lo(e, t, n) {
|
|
17184
|
-
return e.filter((i) => n.intersect ? i.inRange(t.x, t.y) :
|
|
17184
|
+
return e.filter((i) => n.intersect ? i.inRange(t.x, t.y) : Ok(i, t, n.axis));
|
|
17185
17185
|
}
|
|
17186
17186
|
function Ak(e, t, n) {
|
|
17187
17187
|
let i = Number.POSITIVE_INFINITY;
|
|
17188
17188
|
return lo(e, t, n).reduce((s, r) => {
|
|
17189
|
-
const o = r.getCenterPoint(), a =
|
|
17189
|
+
const o = r.getCenterPoint(), a = Ck(t, o, n.axis), l = ts(t, a);
|
|
17190
17190
|
return l < i ? (s = [r], i = l) : l === i && s.push(r), s;
|
|
17191
17191
|
}, []).sort((s, r) => s._index - r._index).slice(0, 1);
|
|
17192
17192
|
}
|
|
@@ -17214,7 +17214,7 @@ function Rp(e, { rect: t, center: n }, i, { rotation: s, borderWidth: r, hitTole
|
|
|
17214
17214
|
const a = ki(e, n, te(-s));
|
|
17215
17215
|
return Pp(a, t, i, { borderWidth: r, hitTolerance: o });
|
|
17216
17216
|
}
|
|
17217
|
-
function
|
|
17217
|
+
function Oi(e, t) {
|
|
17218
17218
|
const { centerX: n, centerY: i } = e.getProps(["centerX", "centerY"], t);
|
|
17219
17219
|
return { x: n, y: i };
|
|
17220
17220
|
}
|
|
@@ -17325,7 +17325,7 @@ function Ho(e) {
|
|
|
17325
17325
|
function Bo(e, { x: t, y: n }, i) {
|
|
17326
17326
|
i && (e.translate(t, n), e.rotate(te(i)), e.translate(-t, -n));
|
|
17327
17327
|
}
|
|
17328
|
-
function
|
|
17328
|
+
function On(e, t) {
|
|
17329
17329
|
if (t && t.borderWidth)
|
|
17330
17330
|
return e.lineCap = t.borderCapStyle || "butt", e.setLineDash(t.borderDash), e.lineDashOffset = t.borderDashOffset, e.lineJoin = t.borderJoinStyle || "miter", e.lineWidth = t.borderWidth, e.strokeStyle = t.borderColor, !0;
|
|
17331
17331
|
}
|
|
@@ -17345,7 +17345,7 @@ function Wo(e, t) {
|
|
|
17345
17345
|
function Wp(e, t, n) {
|
|
17346
17346
|
const { x: i, y: s, width: r, height: o } = t;
|
|
17347
17347
|
e.save(), us(e, n);
|
|
17348
|
-
const a =
|
|
17348
|
+
const a = On(e, n);
|
|
17349
17349
|
e.fillStyle = n.backgroundColor, e.beginPath(), es(e, {
|
|
17350
17350
|
x: i,
|
|
17351
17351
|
y: s,
|
|
@@ -17451,9 +17451,9 @@ function Vk(e, t) {
|
|
|
17451
17451
|
const $p = ["left", "bottom", "top", "right"];
|
|
17452
17452
|
function qk(e, t) {
|
|
17453
17453
|
const { pointX: n, pointY: i, options: s } = t, r = s.callout, o = r && r.display && Qk(t, r);
|
|
17454
|
-
if (!o ||
|
|
17454
|
+
if (!o || tO(t, r, o))
|
|
17455
17455
|
return;
|
|
17456
|
-
if (e.save(), e.beginPath(), !
|
|
17456
|
+
if (e.save(), e.beginPath(), !On(e, r))
|
|
17457
17457
|
return e.restore();
|
|
17458
17458
|
const { separatorStart: l, separatorEnd: c } = Gk(t, o), { sideStart: u, sideEnd: d } = Xk(t, o, l);
|
|
17459
17459
|
(r.margin > 0 || s.borderWidth === 0) && (e.moveTo(l.x, l.y), e.lineTo(c.x, c.y)), e.moveTo(u.x, u.y), e.lineTo(d.x, d.y);
|
|
@@ -17483,17 +17483,17 @@ function Qk(e, t) {
|
|
|
17483
17483
|
return $p.includes(n) ? n : Jk(e, t);
|
|
17484
17484
|
}
|
|
17485
17485
|
function Jk(e, t) {
|
|
17486
|
-
const { x: n, y: i, x2: s, y2: r, width: o, height: a, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = e, f = { x: u, y: d }, p = t.start, g = Xn(o, p), y = Xn(a, p), x = [n, n + g, n + g, s], T = [i + y, r, i, r],
|
|
17486
|
+
const { x: n, y: i, x2: s, y2: r, width: o, height: a, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = e, f = { x: u, y: d }, p = t.start, g = Xn(o, p), y = Xn(a, p), x = [n, n + g, n + g, s], T = [i + y, r, i, r], C = [];
|
|
17487
17487
|
for (let k = 0; k < 4; k++) {
|
|
17488
|
-
const
|
|
17489
|
-
|
|
17488
|
+
const O = ki({ x: x[k], y: T[k] }, f, te(h));
|
|
17489
|
+
C.push({
|
|
17490
17490
|
position: $p[k],
|
|
17491
|
-
distance: ts(
|
|
17491
|
+
distance: ts(O, { x: l, y: c })
|
|
17492
17492
|
});
|
|
17493
17493
|
}
|
|
17494
|
-
return
|
|
17494
|
+
return C.sort((k, O) => k.distance - O.distance)[0].position;
|
|
17495
17495
|
}
|
|
17496
|
-
function
|
|
17496
|
+
function tO(e, t, n) {
|
|
17497
17497
|
const { pointX: i, pointY: s } = e, r = t.margin;
|
|
17498
17498
|
let o = i, a = s;
|
|
17499
17499
|
return n === "left" ? o += r : n === "right" ? o -= r : n === "top" ? a += r : n === "bottom" && (a -= r), e.inRange(o, a);
|
|
@@ -17563,22 +17563,22 @@ function qp(e, t) {
|
|
|
17563
17563
|
radius: i
|
|
17564
17564
|
};
|
|
17565
17565
|
}
|
|
17566
|
-
return
|
|
17566
|
+
return nO(e, t);
|
|
17567
17567
|
}
|
|
17568
|
-
function
|
|
17568
|
+
function eO(e, t) {
|
|
17569
17569
|
const { scales: n, chartArea: i } = e, s = n[t.scaleID], r = { x: i.left, y: i.top, x2: i.right, y2: i.bottom };
|
|
17570
|
-
return s ?
|
|
17570
|
+
return s ? iO(s, r, t) : sO(n, r, t), r;
|
|
17571
17571
|
}
|
|
17572
17572
|
function Gp(e, t) {
|
|
17573
17573
|
const n = Tc(e, t);
|
|
17574
17574
|
return n.initProperties = cs(e, n, t), n.elements = [{
|
|
17575
17575
|
type: "label",
|
|
17576
17576
|
optionScope: "label",
|
|
17577
|
-
properties:
|
|
17577
|
+
properties: aO(e, n, t),
|
|
17578
17578
|
initProperties: n.initProperties
|
|
17579
17579
|
}], n;
|
|
17580
17580
|
}
|
|
17581
|
-
function
|
|
17581
|
+
function nO(e, t) {
|
|
17582
17582
|
const n = Vp(e, t), i = t.radius * 2;
|
|
17583
17583
|
return {
|
|
17584
17584
|
x: n.x - t.radius + t.xAdjust,
|
|
@@ -17599,11 +17599,11 @@ function th(e, t) {
|
|
|
17599
17599
|
end: Math.max(n.start, n.end)
|
|
17600
17600
|
};
|
|
17601
17601
|
}
|
|
17602
|
-
function
|
|
17602
|
+
function iO(e, t, n) {
|
|
17603
17603
|
const i = os(e, n.value, NaN), s = os(e, n.endValue, i);
|
|
17604
17604
|
e.isHorizontal() ? (t.x = i, t.x2 = s) : (t.y = i, t.y2 = s);
|
|
17605
17605
|
}
|
|
17606
|
-
function
|
|
17606
|
+
function sO(e, t, n) {
|
|
17607
17607
|
for (const i of Object.keys(Jd)) {
|
|
17608
17608
|
const s = e[wi(e, n, i)];
|
|
17609
17609
|
if (s) {
|
|
@@ -17612,7 +17612,7 @@ function sC(e, t, n) {
|
|
|
17612
17612
|
}
|
|
17613
17613
|
}
|
|
17614
17614
|
}
|
|
17615
|
-
function
|
|
17615
|
+
function rO({ properties: e, options: t }, n, i, s) {
|
|
17616
17616
|
const { x: r, x2: o, width: a } = e;
|
|
17617
17617
|
return Kp({ start: r, end: o, borderWidth: t.borderWidth }, {
|
|
17618
17618
|
position: i.x,
|
|
@@ -17621,7 +17621,7 @@ function rC({ properties: e, options: t }, n, i, s) {
|
|
|
17621
17621
|
size: n.width
|
|
17622
17622
|
});
|
|
17623
17623
|
}
|
|
17624
|
-
function
|
|
17624
|
+
function oO({ properties: e, options: t }, n, i, s) {
|
|
17625
17625
|
const { y: r, y2: o, height: a } = e;
|
|
17626
17626
|
return Kp({ start: r, end: o, borderWidth: t.borderWidth }, {
|
|
17627
17627
|
position: i.y,
|
|
@@ -17634,10 +17634,10 @@ function Kp(e, t) {
|
|
|
17634
17634
|
const { start: n, end: i, borderWidth: s } = e, { position: r, padding: { start: o, end: a }, adjust: l } = t, c = i - s - n - o - a - t.size;
|
|
17635
17635
|
return n + s / 2 + l + wc(c, r);
|
|
17636
17636
|
}
|
|
17637
|
-
function
|
|
17637
|
+
function aO(e, t, n) {
|
|
17638
17638
|
const i = n.label;
|
|
17639
17639
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
17640
|
-
const s = Sc(i.position), r = ee(i.padding), o = Wo(e.ctx, i), a =
|
|
17640
|
+
const s = Sc(i.position), r = ee(i.padding), o = Wo(e.ctx, i), a = rO({ properties: t, options: n }, o, s, r), l = oO({ properties: t, options: n }, o, s, r), c = o.width + r.width, u = o.height + r.height;
|
|
17641
17641
|
return {
|
|
17642
17642
|
x: a,
|
|
17643
17643
|
y: l,
|
|
@@ -17651,7 +17651,7 @@ function aC(e, t, n) {
|
|
|
17651
17651
|
};
|
|
17652
17652
|
}
|
|
17653
17653
|
const zl = ["enter", "leave"], Mc = zl.concat("click");
|
|
17654
|
-
function
|
|
17654
|
+
function lO(e, t, n) {
|
|
17655
17655
|
t.listened = Hp(n, Mc, t.listeners), t.moveListened = !1, zl.forEach((i) => {
|
|
17656
17656
|
Ne(n[i]) && (t.moveListened = !0);
|
|
17657
17657
|
}), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
|
|
@@ -17660,17 +17660,17 @@ function lC(e, t, n) {
|
|
|
17660
17660
|
});
|
|
17661
17661
|
});
|
|
17662
17662
|
}
|
|
17663
|
-
function
|
|
17663
|
+
function cO(e, t, n) {
|
|
17664
17664
|
if (e.listened)
|
|
17665
17665
|
switch (t.type) {
|
|
17666
17666
|
case "mousemove":
|
|
17667
17667
|
case "mouseout":
|
|
17668
|
-
return
|
|
17668
|
+
return uO(e, t, n);
|
|
17669
17669
|
case "click":
|
|
17670
|
-
return
|
|
17670
|
+
return dO(e, t, n);
|
|
17671
17671
|
}
|
|
17672
17672
|
}
|
|
17673
|
-
function
|
|
17673
|
+
function uO(e, t, n) {
|
|
17674
17674
|
if (!e.moveListened)
|
|
17675
17675
|
return;
|
|
17676
17676
|
let i;
|
|
@@ -17687,7 +17687,7 @@ function eh({ state: e, event: t }, n, i, s) {
|
|
|
17687
17687
|
s.indexOf(o) < 0 && (r = Xp(o.options[n] || e.listeners[n], o, t) || r);
|
|
17688
17688
|
return r;
|
|
17689
17689
|
}
|
|
17690
|
-
function
|
|
17690
|
+
function dO(e, t, n) {
|
|
17691
17691
|
const i = e.listeners, s = xc(e.visibleElements, t, n.interaction);
|
|
17692
17692
|
let r;
|
|
17693
17693
|
for (const o of s)
|
|
@@ -17698,7 +17698,7 @@ function Xp(e, t, n) {
|
|
|
17698
17698
|
return Pt(e, [t.$context, n]) === !0;
|
|
17699
17699
|
}
|
|
17700
17700
|
const Ao = ["afterDraw", "beforeDraw"];
|
|
17701
|
-
function
|
|
17701
|
+
function hO(e, t, n) {
|
|
17702
17702
|
const i = t.visibleElements;
|
|
17703
17703
|
t.hooked = Hp(n, Ao, t.hooks), t.hooked || i.forEach((s) => {
|
|
17704
17704
|
t.hooked || Ao.forEach((r) => {
|
|
@@ -17712,31 +17712,31 @@ function nh(e, t, n) {
|
|
|
17712
17712
|
return Pt(i, [t.$context]);
|
|
17713
17713
|
}
|
|
17714
17714
|
}
|
|
17715
|
-
function
|
|
17716
|
-
const i =
|
|
17715
|
+
function fO(e, t, n) {
|
|
17716
|
+
const i = bO(e.scales, t, n);
|
|
17717
17717
|
let s = ih(t, i, "min", "suggestedMin");
|
|
17718
17718
|
s = ih(t, i, "max", "suggestedMax") || s, s && Ne(t.handleTickRangeOptions) && t.handleTickRangeOptions();
|
|
17719
17719
|
}
|
|
17720
|
-
function
|
|
17720
|
+
function pO(e, t) {
|
|
17721
17721
|
for (const n of e)
|
|
17722
|
-
|
|
17722
|
+
gO(n, t);
|
|
17723
17723
|
}
|
|
17724
17724
|
function ih(e, t, n, i) {
|
|
17725
|
-
if (Ht(t[n]) && !
|
|
17725
|
+
if (Ht(t[n]) && !mO(e.options, n, i)) {
|
|
17726
17726
|
const s = e[n] !== t[n];
|
|
17727
17727
|
return e[n] = t[n], s;
|
|
17728
17728
|
}
|
|
17729
17729
|
}
|
|
17730
|
-
function
|
|
17730
|
+
function mO(e, t, n) {
|
|
17731
17731
|
return ze(e[t]) || ze(e[n]);
|
|
17732
17732
|
}
|
|
17733
|
-
function
|
|
17733
|
+
function gO(e, t) {
|
|
17734
17734
|
for (const n of ["scaleID", "xScaleID", "yScaleID"]) {
|
|
17735
17735
|
const i = wi(t, e, n);
|
|
17736
|
-
i && !t[i] &&
|
|
17736
|
+
i && !t[i] && yO(e, n) && console.warn(`No scale found with id '${i}' for annotation '${e.id}'`);
|
|
17737
17737
|
}
|
|
17738
17738
|
}
|
|
17739
|
-
function
|
|
17739
|
+
function yO(e, t) {
|
|
17740
17740
|
if (t === "scaleID")
|
|
17741
17741
|
return !0;
|
|
17742
17742
|
const n = t.charAt(0);
|
|
@@ -17745,7 +17745,7 @@ function yC(e, t) {
|
|
|
17745
17745
|
return !0;
|
|
17746
17746
|
return !1;
|
|
17747
17747
|
}
|
|
17748
|
-
function
|
|
17748
|
+
function bO(e, t, n) {
|
|
17749
17749
|
const i = t.axis, s = t.id, r = i + "ScaleID", o = {
|
|
17750
17750
|
min: dt(t.min, Number.NEGATIVE_INFINITY),
|
|
17751
17751
|
max: dt(t.max, Number.POSITIVE_INFINITY)
|
|
@@ -17769,7 +17769,7 @@ class ds extends ve {
|
|
|
17769
17769
|
return Pp({ x: r, y: o }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
|
|
17770
17770
|
}
|
|
17771
17771
|
getCenterPoint(t) {
|
|
17772
|
-
return
|
|
17772
|
+
return Oi(this, t);
|
|
17773
17773
|
}
|
|
17774
17774
|
draw(t) {
|
|
17775
17775
|
t.save(), Bo(t, this.getCenterPoint(), this.options.rotation), Wp(t, this, this.options), t.restore();
|
|
@@ -17857,19 +17857,19 @@ class Yo extends ve {
|
|
|
17857
17857
|
);
|
|
17858
17858
|
}
|
|
17859
17859
|
getCenterPoint(t) {
|
|
17860
|
-
return
|
|
17860
|
+
return Oi(this, t);
|
|
17861
17861
|
}
|
|
17862
17862
|
draw(t) {
|
|
17863
17863
|
const n = this.options;
|
|
17864
|
-
!n.display || !n.content || (
|
|
17864
|
+
!n.display || !n.content || (TO(t, this), t.save(), Bo(t, this.getCenterPoint(), this.rotation), Yp(t, this, n, this._fitRatio), t.restore());
|
|
17865
17865
|
}
|
|
17866
17866
|
resolveElementProperties(t, n) {
|
|
17867
|
-
const i =
|
|
17867
|
+
const i = _O(t, n);
|
|
17868
17868
|
if (!i)
|
|
17869
17869
|
return {};
|
|
17870
|
-
const { controllerMeta: s, point: r, radius: o } =
|
|
17870
|
+
const { controllerMeta: s, point: r, radius: o } = xO(t, n, i);
|
|
17871
17871
|
let a = Wo(t.ctx, n);
|
|
17872
|
-
const l =
|
|
17872
|
+
const l = wO(a, o);
|
|
17873
17873
|
Fp(n, l) && (a = { width: a.width * l, height: a.height * l });
|
|
17874
17874
|
const { position: c, xAdjust: u, yAdjust: d } = n, h = Np(r, a, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
|
|
17875
17875
|
return {
|
|
@@ -17921,20 +17921,20 @@ Yo.defaults = {
|
|
|
17921
17921
|
yAdjust: 0
|
|
17922
17922
|
};
|
|
17923
17923
|
Yo.defaultRoutes = {};
|
|
17924
|
-
function
|
|
17924
|
+
function _O(e, t) {
|
|
17925
17925
|
return e.getSortedVisibleDatasetMetas().reduce(function(n, i) {
|
|
17926
17926
|
const s = i.controller;
|
|
17927
|
-
return s instanceof hr &&
|
|
17927
|
+
return s instanceof hr && vO(e, t, i.data) && (!n || s.innerRadius < n.controller.innerRadius) && s.options.circumference >= 90 ? i : n;
|
|
17928
17928
|
}, void 0);
|
|
17929
17929
|
}
|
|
17930
|
-
function
|
|
17930
|
+
function vO(e, t, n) {
|
|
17931
17931
|
if (!t.autoHide)
|
|
17932
17932
|
return !0;
|
|
17933
17933
|
for (let i = 0; i < n.length; i++)
|
|
17934
17934
|
if (!n[i].hidden && e.getDataVisibility(i))
|
|
17935
17935
|
return !0;
|
|
17936
17936
|
}
|
|
17937
|
-
function
|
|
17937
|
+
function xO({ chartArea: e }, t, n) {
|
|
17938
17938
|
const { left: i, top: s, right: r, bottom: o } = e, { innerRadius: a, offsetX: l, offsetY: c } = n.controller, u = (i + r) / 2 + l, d = (s + o) / 2 + c, h = {
|
|
17939
17939
|
left: Math.max(u - a, i),
|
|
17940
17940
|
right: Math.min(u + a, r),
|
|
@@ -17943,7 +17943,7 @@ function xC({ chartArea: e }, t, n) {
|
|
|
17943
17943
|
}, f = {
|
|
17944
17944
|
x: (h.left + h.right) / 2,
|
|
17945
17945
|
y: (h.top + h.bottom) / 2
|
|
17946
|
-
}, p = t.spacing + t.borderWidth / 2, g = a - p, y = f.y > d, x = y ? s + p : o - p, T =
|
|
17946
|
+
}, p = t.spacing + t.borderWidth / 2, g = a - p, y = f.y > d, x = y ? s + p : o - p, T = SO(x, u, d, g);
|
|
17947
17947
|
return {
|
|
17948
17948
|
controllerMeta: {
|
|
17949
17949
|
_centerX: u,
|
|
@@ -17956,11 +17956,11 @@ function xC({ chartArea: e }, t, n) {
|
|
|
17956
17956
|
radius: Math.min(a, Math.min(h.right - h.left, h.bottom - h.top) / 2)
|
|
17957
17957
|
};
|
|
17958
17958
|
}
|
|
17959
|
-
function
|
|
17959
|
+
function wO({ width: e, height: t }, n) {
|
|
17960
17960
|
const i = Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
|
|
17961
17961
|
return n * 2 / i;
|
|
17962
17962
|
}
|
|
17963
|
-
function
|
|
17963
|
+
function SO(e, t, n, i) {
|
|
17964
17964
|
const s = Math.pow(n - e, 2), r = Math.pow(i, 2), o = t * -2, a = Math.pow(t, 2) + s - r, l = Math.pow(o, 2) - 4 * a;
|
|
17965
17965
|
if (l <= 0)
|
|
17966
17966
|
return {
|
|
@@ -17973,10 +17973,10 @@ function SC(e, t, n, i) {
|
|
|
17973
17973
|
_endAngle: go({ x: t, y: n }, { x: u, y: e }).angle
|
|
17974
17974
|
};
|
|
17975
17975
|
}
|
|
17976
|
-
function
|
|
17976
|
+
function TO(e, t) {
|
|
17977
17977
|
const { _centerX: n, _centerY: i, _radius: s, _startAngle: r, _endAngle: o, _counterclockwise: a, options: l } = t;
|
|
17978
17978
|
e.save();
|
|
17979
|
-
const c =
|
|
17979
|
+
const c = On(e, l);
|
|
17980
17980
|
e.fillStyle = l.backgroundColor, e.beginPath(), e.arc(n, i, s, r, o, a), e.closePath(), e.fill(), c && e.stroke(), e.restore();
|
|
17981
17981
|
}
|
|
17982
17982
|
class br extends ve {
|
|
@@ -17989,11 +17989,11 @@ class br extends ve {
|
|
|
17989
17989
|
);
|
|
17990
17990
|
}
|
|
17991
17991
|
getCenterPoint(t) {
|
|
17992
|
-
return
|
|
17992
|
+
return Oi(this, t);
|
|
17993
17993
|
}
|
|
17994
17994
|
draw(t) {
|
|
17995
17995
|
const n = this.options, i = !ze(this._visible) || this._visible;
|
|
17996
|
-
!n.display || !n.content || !i || (t.save(), Bo(t, this.getCenterPoint(), this.rotation), qk(t, this), Wp(t, this, n), Yp(t,
|
|
17996
|
+
!n.display || !n.content || !i || (t.save(), Bo(t, this.getCenterPoint(), this.rotation), qk(t, this), Wp(t, this, n), Yp(t, MO(this), n), t.restore());
|
|
17997
17997
|
}
|
|
17998
17998
|
resolveElementProperties(t, n) {
|
|
17999
17999
|
let i;
|
|
@@ -18077,7 +18077,7 @@ br.defaults = {
|
|
|
18077
18077
|
br.defaultRoutes = {
|
|
18078
18078
|
borderColor: "color"
|
|
18079
18079
|
};
|
|
18080
|
-
function
|
|
18080
|
+
function MO({ x: e, y: t, width: n, height: i, options: s }) {
|
|
18081
18081
|
const r = s.borderWidth / 2, o = ee(s.padding);
|
|
18082
18082
|
return {
|
|
18083
18083
|
x: e + o.left + r,
|
|
@@ -18086,33 +18086,33 @@ function MC({ x: e, y: t, width: n, height: i, options: s }) {
|
|
|
18086
18086
|
height: i - o.top - o.bottom - s.borderWidth
|
|
18087
18087
|
};
|
|
18088
18088
|
}
|
|
18089
|
-
const Dc = (e, t, n) => ({ x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }), Ul = (e, t, n) => Dc(t, n, Math.abs((e - t.y) / (n.y - t.y))).x, rh = (e, t, n) => Dc(t, n, Math.abs((e - t.x) / (n.x - t.x))).y, Ws = (e) => e * e,
|
|
18089
|
+
const Dc = (e, t, n) => ({ x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }), Ul = (e, t, n) => Dc(t, n, Math.abs((e - t.y) / (n.y - t.y))).x, rh = (e, t, n) => Dc(t, n, Math.abs((e - t.x) / (n.x - t.x))).y, Ws = (e) => e * e, DO = (e, t, { x: n, y: i, x2: s, y2: r }, o) => o === "y" ? { start: Math.min(i, r), end: Math.max(i, r), value: t } : { start: Math.min(n, s), end: Math.max(n, s), value: e }, oh = (e, t, n, i) => (1 - i) * (1 - i) * e + 2 * (1 - i) * i * t + i * i * n, Hl = (e, t, n, i) => ({ x: oh(e.x, t.x, n.x, i), y: oh(e.y, t.y, n.y, i) }), ah = (e, t, n, i) => 2 * (1 - i) * (t - e) + 2 * i * (n - t), lh = (e, t, n, i) => -Math.atan2(ah(e.x, t.x, n.x, i), ah(e.y, t.y, n.y, i)) + 0.5 * yt;
|
|
18090
18090
|
class _r extends ve {
|
|
18091
18091
|
inRange(t, n, i, s) {
|
|
18092
18092
|
const r = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18093
18093
|
if (i !== "x" && i !== "y") {
|
|
18094
18094
|
const o = { mouseX: t, mouseY: n }, { path: a, ctx: l } = this;
|
|
18095
18095
|
if (a) {
|
|
18096
|
-
|
|
18096
|
+
On(l, this.options), l.lineWidth += this.options.hitTolerance;
|
|
18097
18097
|
const { chart: u } = this.$context, d = t * u.currentDevicePixelRatio, h = n * u.currentDevicePixelRatio, f = l.isPointInStroke(a, d, h) || Bl(this, o, s);
|
|
18098
18098
|
return l.restore(), f;
|
|
18099
18099
|
}
|
|
18100
18100
|
const c = Ws(r);
|
|
18101
|
-
return
|
|
18101
|
+
return AO(this, o, c, s) || Bl(this, o, s);
|
|
18102
18102
|
}
|
|
18103
|
-
return
|
|
18103
|
+
return kO(this, { mouseX: t, mouseY: n }, i, { hitSize: r, useFinalPosition: s });
|
|
18104
18104
|
}
|
|
18105
18105
|
getCenterPoint(t) {
|
|
18106
|
-
return
|
|
18106
|
+
return Oi(this, t);
|
|
18107
18107
|
}
|
|
18108
18108
|
draw(t) {
|
|
18109
18109
|
const { x: n, y: i, x2: s, y2: r, cp: o, options: a } = this;
|
|
18110
|
-
if (t.save(), !
|
|
18110
|
+
if (t.save(), !On(t, a))
|
|
18111
18111
|
return t.restore();
|
|
18112
18112
|
us(t, a);
|
|
18113
18113
|
const l = Math.sqrt(Math.pow(s - n, 2) + Math.pow(r - i, 2));
|
|
18114
18114
|
if (a.curve && o)
|
|
18115
|
-
return
|
|
18115
|
+
return zO(t, this, o, l), t.restore();
|
|
18116
18116
|
const { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Zp(this), f = Math.atan2(r - i, s - n);
|
|
18117
18117
|
t.translate(n, i), t.rotate(f), t.beginPath(), t.moveTo(0 + d, 0), t.lineTo(l - h, 0), t.shadowColor = a.borderShadowColor, t.stroke(), Wl(t, 0, d, c), Wl(t, l, -h, u), t.restore();
|
|
18118
18118
|
}
|
|
@@ -18120,12 +18120,12 @@ class _r extends ve {
|
|
|
18120
18120
|
return this.elements && this.elements[0];
|
|
18121
18121
|
}
|
|
18122
18122
|
resolveElementProperties(t, n) {
|
|
18123
|
-
const i =
|
|
18123
|
+
const i = eO(t, n), { x: s, y: r, x2: o, y2: a } = i, l = OO(i, t.chartArea), c = l ? CO({ x: s, y: r }, { x: o, y: a }, t.chartArea) : { x: s, y: r, x2: o, y2: a, width: Math.abs(o - s), height: Math.abs(a - r) };
|
|
18124
18124
|
if (c.centerX = (o + s) / 2, c.centerY = (a + r) / 2, c.initProperties = cs(t, c, n), n.curve) {
|
|
18125
18125
|
const d = { x: c.x, y: c.y }, h = { x: c.x2, y: c.y2 };
|
|
18126
|
-
c.cp =
|
|
18126
|
+
c.cp = FO(c, n, ts(d, h));
|
|
18127
18127
|
}
|
|
18128
|
-
const u =
|
|
18128
|
+
const u = PO(t, c, n.label);
|
|
18129
18129
|
return u._visible = l, c.elements = [{
|
|
18130
18130
|
type: "label",
|
|
18131
18131
|
optionScope: "label",
|
|
@@ -18240,21 +18240,21 @@ _r.descriptors = {
|
|
|
18240
18240
|
_r.defaultRoutes = {
|
|
18241
18241
|
borderColor: "color"
|
|
18242
18242
|
};
|
|
18243
|
-
function
|
|
18244
|
-
const o =
|
|
18243
|
+
function kO(e, { mouseX: t, mouseY: n }, i, { hitSize: s, useFinalPosition: r }) {
|
|
18244
|
+
const o = DO(t, n, e.getProps(["x", "y", "x2", "y2"], r), i);
|
|
18245
18245
|
return Ap(o, s) || Bl(e, { mouseX: t, mouseY: n }, r, i);
|
|
18246
18246
|
}
|
|
18247
|
-
function
|
|
18247
|
+
function OO({ x: e, y: t, x2: n, y2: i }, { top: s, right: r, bottom: o, left: a }) {
|
|
18248
18248
|
return !(e < a && n < a || e > r && n > r || t < s && i < s || t > o && i > o);
|
|
18249
18249
|
}
|
|
18250
18250
|
function uh({ x: e, y: t }, n, { top: i, right: s, bottom: r, left: o }) {
|
|
18251
18251
|
return e < o && (t = rh(o, { x: e, y: t }, n), e = o), e > s && (t = rh(s, { x: e, y: t }, n), e = s), t < i && (e = Ul(i, { x: e, y: t }, n), t = i), t > r && (e = Ul(r, { x: e, y: t }, n), t = r), { x: e, y: t };
|
|
18252
18252
|
}
|
|
18253
|
-
function
|
|
18253
|
+
function CO(e, t, n) {
|
|
18254
18254
|
const { x: i, y: s } = uh(e, t, n), { x: r, y: o } = uh(t, e, n);
|
|
18255
18255
|
return { x: i, y: s, x2: r, y2: o, width: Math.abs(r - i), height: Math.abs(o - s) };
|
|
18256
18256
|
}
|
|
18257
|
-
function
|
|
18257
|
+
function AO(e, { mouseX: t, mouseY: n }, i = yi, s) {
|
|
18258
18258
|
const { x: r, y: o, x2: a, y2: l } = e.getProps(["x", "y", "x2", "y2"], s), c = a - r, u = l - o, d = Ws(c) + Ws(u), h = d === 0 ? -1 : ((t - r) * c + (n - o) * u) / d;
|
|
18259
18259
|
let f, p;
|
|
18260
18260
|
return h < 0 ? (f = r, p = o) : h > 1 ? (f = a, p = l) : (f = r + h * c, p = o + h * u), Ws(t - f) + Ws(n - p) <= i;
|
|
@@ -18263,16 +18263,16 @@ function Bl(e, { mouseX: t, mouseY: n }, i, s) {
|
|
|
18263
18263
|
const r = e.label;
|
|
18264
18264
|
return r.options.display && r.inRange(t, n, s, i);
|
|
18265
18265
|
}
|
|
18266
|
-
function
|
|
18266
|
+
function PO(e, t, n) {
|
|
18267
18267
|
const i = n.borderWidth, s = ee(n.padding), r = Wo(e.ctx, n), o = r.width + s.width + i, a = r.height + s.height + i;
|
|
18268
|
-
return
|
|
18268
|
+
return EO(t, n, { width: o, height: a, padding: s }, e.chartArea);
|
|
18269
18269
|
}
|
|
18270
|
-
function
|
|
18270
|
+
function RO(e) {
|
|
18271
18271
|
const { x: t, y: n, x2: i, y2: s } = e, r = Math.atan2(s - n, i - t);
|
|
18272
18272
|
return r > yt / 2 ? r - yt : r < yt / -2 ? r + yt : r;
|
|
18273
18273
|
}
|
|
18274
|
-
function
|
|
18275
|
-
const { width: s, height: r, padding: o } = n, { xAdjust: a, yAdjust: l } = t, c = { x: e.x, y: e.y }, u = { x: e.x2, y: e.y2 }, d = t.rotation === "auto" ?
|
|
18274
|
+
function EO(e, t, n, i) {
|
|
18275
|
+
const { width: s, height: r, padding: o } = n, { xAdjust: a, yAdjust: l } = t, c = { x: e.x, y: e.y }, u = { x: e.x2, y: e.y2 }, d = t.rotation === "auto" ? RO(e) : te(t.rotation), h = IO(s, r, d), f = LO(e, t, { labelSize: h, padding: o }, i), p = e.cp ? Hl(c, e.cp, u, f) : Dc(c, u, f), g = { size: h.w, min: i.left, max: i.right, padding: o.left }, y = { size: h.h, min: i.top, max: i.bottom, padding: o.top }, x = hh(p.x, g) + a, T = hh(p.y, y) + l;
|
|
18276
18276
|
return {
|
|
18277
18277
|
x: x - s / 2,
|
|
18278
18278
|
y: T - r / 2,
|
|
@@ -18287,23 +18287,23 @@ function EC(e, t, n, i) {
|
|
|
18287
18287
|
rotation: Po(d)
|
|
18288
18288
|
};
|
|
18289
18289
|
}
|
|
18290
|
-
function
|
|
18290
|
+
function IO(e, t, n) {
|
|
18291
18291
|
const i = Math.cos(n), s = Math.sin(n);
|
|
18292
18292
|
return {
|
|
18293
18293
|
w: Math.abs(e * i) + Math.abs(t * s),
|
|
18294
18294
|
h: Math.abs(e * s) + Math.abs(t * i)
|
|
18295
18295
|
};
|
|
18296
18296
|
}
|
|
18297
|
-
function
|
|
18297
|
+
function LO(e, t, n, i) {
|
|
18298
18298
|
let s;
|
|
18299
|
-
const r =
|
|
18299
|
+
const r = NO(e, i);
|
|
18300
18300
|
return t.position === "start" ? s = dh({ w: e.x2 - e.x, h: e.y2 - e.y }, n, t, r) : t.position === "end" ? s = 1 - dh({ w: e.x - e.x2, h: e.y - e.y2 }, n, t, r) : s = wc(1, t.position), s;
|
|
18301
18301
|
}
|
|
18302
18302
|
function dh(e, t, n, i) {
|
|
18303
18303
|
const { labelSize: s, padding: r } = t, o = e.w * i.dx, a = e.h * i.dy, l = o > 0 && (s.w / 2 + r.left - i.x) / o, c = a > 0 && (s.h / 2 + r.top - i.y) / a;
|
|
18304
18304
|
return Uo(Math.max(l, c), 0, 0.25);
|
|
18305
18305
|
}
|
|
18306
|
-
function
|
|
18306
|
+
function NO(e, t) {
|
|
18307
18307
|
const { x: n, x2: i, y: s, y2: r } = e, o = Math.min(s, r) - t.top, a = Math.min(n, i) - t.left, l = t.bottom - Math.max(s, r), c = t.right - Math.max(n, i);
|
|
18308
18308
|
return {
|
|
18309
18309
|
x: Math.min(a, c),
|
|
@@ -18335,9 +18335,9 @@ function Wl(e, t, n, i) {
|
|
|
18335
18335
|
if (!i || !i.display)
|
|
18336
18336
|
return;
|
|
18337
18337
|
const { length: s, width: r, fill: o, backgroundColor: a, borderColor: l } = i, c = Math.abs(t - s) + n;
|
|
18338
|
-
e.beginPath(), us(e, i),
|
|
18338
|
+
e.beginPath(), us(e, i), On(e, i), e.moveTo(c, -r), e.lineTo(t + n, 0), e.lineTo(c, r), o === !0 ? (e.fillStyle = a || l, e.closePath(), e.fill(), e.shadowColor = "transparent") : e.shadowColor = i.borderShadowColor, e.stroke();
|
|
18339
18339
|
}
|
|
18340
|
-
function
|
|
18340
|
+
function FO(e, t, n) {
|
|
18341
18341
|
const { x: i, y: s, x2: r, y2: o, centerX: a, centerY: l } = e, c = Math.atan2(o - s, r - i), u = Sc(t.controlPoint, 0), d = {
|
|
18342
18342
|
x: a + Xn(n, u.x, !1),
|
|
18343
18343
|
y: l + Xn(n, u.y, !1)
|
|
@@ -18347,25 +18347,25 @@ function FC(e, t, n) {
|
|
|
18347
18347
|
function ph(e, { x: t, y: n }, { angle: i, adjust: s }, r) {
|
|
18348
18348
|
!r || !r.display || (e.save(), e.translate(t, n), e.rotate(i), Wl(e, 0, -s, r), e.restore());
|
|
18349
18349
|
}
|
|
18350
|
-
function
|
|
18351
|
-
const { x: s, y: r, x2: o, y2: a, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Zp(t), f = { x: s, y: r }, p = { x: o, y: a }, g = lh(f, n, p, 0), y = lh(f, n, p, 1) - yt, x = Hl(f, n, p, d / i), T = Hl(f, n, p, 1 - h / i),
|
|
18352
|
-
e.beginPath(),
|
|
18350
|
+
function zO(e, t, n, i) {
|
|
18351
|
+
const { x: s, y: r, x2: o, y2: a, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Zp(t), f = { x: s, y: r }, p = { x: o, y: a }, g = lh(f, n, p, 0), y = lh(f, n, p, 1) - yt, x = Hl(f, n, p, d / i), T = Hl(f, n, p, 1 - h / i), C = new Path2D();
|
|
18352
|
+
e.beginPath(), C.moveTo(x.x, x.y), C.quadraticCurveTo(n.x, n.y, T.x, T.y), e.shadowColor = l.borderShadowColor, e.stroke(C), t.path = C, t.ctx = e, ph(e, x, { angle: g, adjust: d }, c), ph(e, T, { angle: y, adjust: h }, u);
|
|
18353
18353
|
}
|
|
18354
18354
|
class vr extends ve {
|
|
18355
18355
|
inRange(t, n, i, s) {
|
|
18356
18356
|
const r = this.options.rotation, o = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18357
18357
|
if (i !== "x" && i !== "y")
|
|
18358
|
-
return
|
|
18358
|
+
return UO({ x: t, y: n }, this.getProps(["width", "height", "centerX", "centerY"], s), r, o);
|
|
18359
18359
|
const { x: a, y: l, x2: c, y2: u } = this.getProps(["x", "y", "x2", "y2"], s), d = i === "y" ? { start: l, end: u } : { start: a, end: c }, h = ki({ x: t, y: n }, this.getCenterPoint(s), te(-r));
|
|
18360
18360
|
return h[i] >= d.start - o - yi && h[i] <= d.end + o + yi;
|
|
18361
18361
|
}
|
|
18362
18362
|
getCenterPoint(t) {
|
|
18363
|
-
return
|
|
18363
|
+
return Oi(this, t);
|
|
18364
18364
|
}
|
|
18365
18365
|
draw(t) {
|
|
18366
18366
|
const { width: n, height: i, centerX: s, centerY: r, options: o } = this;
|
|
18367
18367
|
t.save(), Bo(t, this.getCenterPoint(), o.rotation), us(t, this.options), t.beginPath(), t.fillStyle = o.backgroundColor;
|
|
18368
|
-
const a =
|
|
18368
|
+
const a = On(t, o);
|
|
18369
18369
|
t.ellipse(s, r, i / 2, n / 2, yt / 2, 0, 2 * yt), t.fill(), a && (t.shadowColor = o.borderShadowColor, t.stroke()), t.restore();
|
|
18370
18370
|
}
|
|
18371
18371
|
get label() {
|
|
@@ -18408,7 +18408,7 @@ vr.descriptors = {
|
|
|
18408
18408
|
_fallback: !0
|
|
18409
18409
|
}
|
|
18410
18410
|
};
|
|
18411
|
-
function
|
|
18411
|
+
function UO(e, t, n, i) {
|
|
18412
18412
|
const { width: s, height: r, centerX: o, centerY: a } = t, l = s / 2, c = r / 2;
|
|
18413
18413
|
if (l <= 0 || c <= 0)
|
|
18414
18414
|
return !1;
|
|
@@ -18421,14 +18421,14 @@ class $o extends ve {
|
|
|
18421
18421
|
return i !== "x" && i !== "y" ? Ek({ x: t, y: n }, this.getCenterPoint(s), c / 2, u) : Ap(i === "y" ? { start: o, end: l, value: n } : { start: r, end: a, value: t }, u);
|
|
18422
18422
|
}
|
|
18423
18423
|
getCenterPoint(t) {
|
|
18424
|
-
return
|
|
18424
|
+
return Oi(this, t);
|
|
18425
18425
|
}
|
|
18426
18426
|
draw(t) {
|
|
18427
18427
|
const n = this.options, i = n.borderWidth;
|
|
18428
18428
|
if (n.radius < 0.1)
|
|
18429
18429
|
return;
|
|
18430
18430
|
t.save(), t.fillStyle = n.backgroundColor, us(t, n);
|
|
18431
|
-
const s =
|
|
18431
|
+
const s = On(t, n);
|
|
18432
18432
|
Bk(t, this, this.centerX, this.centerY), s && !Ho(n.pointStyle) && (t.shadowColor = n.borderShadowColor, t.stroke()), t.restore(), n.borderWidth = i;
|
|
18433
18433
|
}
|
|
18434
18434
|
resolveElementProperties(t, n) {
|
|
@@ -18472,17 +18472,17 @@ $o.defaultRoutes = {
|
|
|
18472
18472
|
class jo extends ve {
|
|
18473
18473
|
inRange(t, n, i, s) {
|
|
18474
18474
|
if (i !== "x" && i !== "y")
|
|
18475
|
-
return this.options.radius >= 0.1 && this.elements.length > 1 &&
|
|
18475
|
+
return this.options.radius >= 0.1 && this.elements.length > 1 && BO(this.elements, t, n, s);
|
|
18476
18476
|
const r = ki({ x: t, y: n }, this.getCenterPoint(s), te(-this.options.rotation)), o = this.elements.map((c) => i === "y" ? c.bY : c.bX), a = Math.min(...o), l = Math.max(...o);
|
|
18477
18477
|
return r[i] >= a && r[i] <= l;
|
|
18478
18478
|
}
|
|
18479
18479
|
getCenterPoint(t) {
|
|
18480
|
-
return
|
|
18480
|
+
return Oi(this, t);
|
|
18481
18481
|
}
|
|
18482
18482
|
draw(t) {
|
|
18483
18483
|
const { elements: n, options: i } = this;
|
|
18484
18484
|
t.save(), t.beginPath(), t.fillStyle = i.backgroundColor, us(t, i);
|
|
18485
|
-
const s =
|
|
18485
|
+
const s = On(t, i);
|
|
18486
18486
|
let r = !0;
|
|
18487
18487
|
for (const o of n)
|
|
18488
18488
|
r ? (t.moveTo(o.x, o.y), r = !1) : t.lineTo(o.x, o.y);
|
|
@@ -18492,7 +18492,7 @@ class jo extends ve {
|
|
|
18492
18492
|
const i = qp(t, n), { sides: s, rotation: r } = n, o = [], a = 2 * yt / s;
|
|
18493
18493
|
let l = r * Zl;
|
|
18494
18494
|
for (let c = 0; c < s; c++, l += a) {
|
|
18495
|
-
const u =
|
|
18495
|
+
const u = HO(i, n, l);
|
|
18496
18496
|
u.initProperties = cs(t, i, n), o.push(u);
|
|
18497
18497
|
}
|
|
18498
18498
|
return i.elements = o, i;
|
|
@@ -18536,7 +18536,7 @@ jo.defaultRoutes = {
|
|
|
18536
18536
|
borderColor: "color",
|
|
18537
18537
|
backgroundColor: "color"
|
|
18538
18538
|
};
|
|
18539
|
-
function
|
|
18539
|
+
function HO({ centerX: e, centerY: t }, { radius: n, borderWidth: i, hitTolerance: s }, r) {
|
|
18540
18540
|
const o = (i + s) / 2, a = Math.sin(r), l = Math.cos(r), c = { x: e + a * n, y: t - l * n };
|
|
18541
18541
|
return {
|
|
18542
18542
|
type: "point",
|
|
@@ -18551,7 +18551,7 @@ function HC({ centerX: e, centerY: t }, { radius: n, borderWidth: i, hitToleranc
|
|
|
18551
18551
|
}
|
|
18552
18552
|
};
|
|
18553
18553
|
}
|
|
18554
|
-
function
|
|
18554
|
+
function BO(e, t, n, i) {
|
|
18555
18555
|
let s = !1, r = e[e.length - 1].getProps(["bX", "bY"], i);
|
|
18556
18556
|
for (const o of e) {
|
|
18557
18557
|
const a = o.getProps(["bX", "bY"], i);
|
|
@@ -18573,26 +18573,26 @@ Object.keys(Vn).forEach((e) => {
|
|
|
18573
18573
|
_fallback: "plugins.annotation.common"
|
|
18574
18574
|
});
|
|
18575
18575
|
});
|
|
18576
|
-
const
|
|
18576
|
+
const WO = {
|
|
18577
18577
|
update: Object.assign
|
|
18578
|
-
},
|
|
18578
|
+
}, YO = Mc.concat(Ao), mh = (e, t) => _t(t) ? $l(e, t) : e, Yl = (e) => e === "color" || e === "font";
|
|
18579
18579
|
function kc(e = "line") {
|
|
18580
18580
|
return Vn[e] ? e : (console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`), "line");
|
|
18581
18581
|
}
|
|
18582
|
-
function $
|
|
18583
|
-
const s =
|
|
18582
|
+
function $O(e, t, n, i) {
|
|
18583
|
+
const s = VO(e, n.animations, i), r = t.annotations, o = KO(t.elements, r);
|
|
18584
18584
|
for (let a = 0; a < r.length; a++) {
|
|
18585
|
-
const l = r[a], c = Qp(o, a, l.type), u = l.setContext(
|
|
18586
|
-
d.skip =
|
|
18585
|
+
const l = r[a], c = Qp(o, a, l.type), u = l.setContext(GO(e, c, o, l)), d = c.resolveElementProperties(e, u);
|
|
18586
|
+
d.skip = jO(d), "elements" in d && (qO(c, d.elements, u, s), delete d.elements), ze(c.x) || Object.assign(c, d), Object.assign(c, d.initProperties), d.options = Jp(u), s.update(c, d);
|
|
18587
18587
|
}
|
|
18588
18588
|
}
|
|
18589
|
-
function
|
|
18589
|
+
function jO(e) {
|
|
18590
18590
|
return isNaN(e.x) || isNaN(e.y);
|
|
18591
18591
|
}
|
|
18592
|
-
function
|
|
18593
|
-
return n === "reset" || n === "none" || n === "resize" ?
|
|
18592
|
+
function VO(e, t, n) {
|
|
18593
|
+
return n === "reset" || n === "none" || n === "resize" ? WO : new ac(e, t);
|
|
18594
18594
|
}
|
|
18595
|
-
function
|
|
18595
|
+
function qO(e, t, n, i) {
|
|
18596
18596
|
const s = e.elements || (e.elements = []);
|
|
18597
18597
|
s.length = t.length;
|
|
18598
18598
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -18612,7 +18612,7 @@ function Jp(e) {
|
|
|
18612
18612
|
$l(e, t.defaults),
|
|
18613
18613
|
$l(e, t.defaultRoutes)
|
|
18614
18614
|
);
|
|
18615
|
-
for (const i of
|
|
18615
|
+
for (const i of YO)
|
|
18616
18616
|
n[i] = e[i];
|
|
18617
18617
|
return n;
|
|
18618
18618
|
}
|
|
@@ -18624,7 +18624,7 @@ function $l(e, t) {
|
|
|
18624
18624
|
}
|
|
18625
18625
|
return n;
|
|
18626
18626
|
}
|
|
18627
|
-
function
|
|
18627
|
+
function GO(e, t, n, i) {
|
|
18628
18628
|
return t.$context || (t.$context = Object.assign(Object.create(e.getContext()), {
|
|
18629
18629
|
element: t,
|
|
18630
18630
|
get elements() {
|
|
@@ -18634,7 +18634,7 @@ function GC(e, t, n, i) {
|
|
|
18634
18634
|
type: "annotation"
|
|
18635
18635
|
}));
|
|
18636
18636
|
}
|
|
18637
|
-
function
|
|
18637
|
+
function KO(e, t) {
|
|
18638
18638
|
const n = t.length, i = e.length;
|
|
18639
18639
|
if (i < n) {
|
|
18640
18640
|
const s = n - i;
|
|
@@ -18642,11 +18642,11 @@ function KC(e, t) {
|
|
|
18642
18642
|
} else i > n && e.splice(n, i - n);
|
|
18643
18643
|
return e;
|
|
18644
18644
|
}
|
|
18645
|
-
var
|
|
18646
|
-
const Fn = /* @__PURE__ */ new Map(), gh = (e) => e.type !== "doughnutLabel",
|
|
18645
|
+
var XO = "3.1.0";
|
|
18646
|
+
const Fn = /* @__PURE__ */ new Map(), gh = (e) => e.type !== "doughnutLabel", ZO = Mc.concat(Ao);
|
|
18647
18647
|
var yh = {
|
|
18648
18648
|
id: "annotation",
|
|
18649
|
-
version:
|
|
18649
|
+
version: XO,
|
|
18650
18650
|
beforeRegister() {
|
|
18651
18651
|
Ik("chart.js", "4.0", Fe.version);
|
|
18652
18652
|
},
|
|
@@ -18675,15 +18675,15 @@ var yh = {
|
|
|
18675
18675
|
_t(r) ? Object.keys(r).forEach((o) => {
|
|
18676
18676
|
const a = r[o];
|
|
18677
18677
|
_t(a) && (a.id = o, s.push(a));
|
|
18678
|
-
}) : kt(r) && s.push(...r),
|
|
18678
|
+
}) : kt(r) && s.push(...r), pO(s.filter(gh), e.scales);
|
|
18679
18679
|
},
|
|
18680
18680
|
afterDataLimits(e, t) {
|
|
18681
18681
|
const n = Fn.get(e);
|
|
18682
|
-
|
|
18682
|
+
fO(e, t.scale, n.annotations.filter(gh).filter((i) => i.display && i.adjustScaleRange));
|
|
18683
18683
|
},
|
|
18684
18684
|
afterUpdate(e, t, n) {
|
|
18685
18685
|
const i = Fn.get(e);
|
|
18686
|
-
|
|
18686
|
+
lO(e, i, n), $O(e, i, n, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), hO(e, i, n);
|
|
18687
18687
|
},
|
|
18688
18688
|
beforeDatasetsDraw(e, t, n) {
|
|
18689
18689
|
Ls(e, "beforeDatasetsDraw", n.clip);
|
|
@@ -18702,7 +18702,7 @@ var yh = {
|
|
|
18702
18702
|
},
|
|
18703
18703
|
beforeEvent(e, t, n) {
|
|
18704
18704
|
const i = Fn.get(e);
|
|
18705
|
-
|
|
18705
|
+
cO(i, t.event, n) && (t.changed = !0);
|
|
18706
18706
|
},
|
|
18707
18707
|
afterDestroy(e) {
|
|
18708
18708
|
Fn.delete(e);
|
|
@@ -18740,7 +18740,7 @@ var yh = {
|
|
|
18740
18740
|
},
|
|
18741
18741
|
descriptors: {
|
|
18742
18742
|
_indexable: !1,
|
|
18743
|
-
_scriptable: (e) => !
|
|
18743
|
+
_scriptable: (e) => !ZO.includes(e) && e !== "init",
|
|
18744
18744
|
annotations: {
|
|
18745
18745
|
_allKeys: !1,
|
|
18746
18746
|
_fallback: (e, t) => `elements.${Vn[kc(t.type)].id}`
|
|
@@ -18761,12 +18761,12 @@ var yh = {
|
|
|
18761
18761
|
function Ls(e, t, n) {
|
|
18762
18762
|
const { ctx: i, chartArea: s } = e, r = Fn.get(e);
|
|
18763
18763
|
n && ur(i, s);
|
|
18764
|
-
const o =
|
|
18764
|
+
const o = QO(r.visibleElements, t).sort((a, l) => a.element.options.z - l.element.options.z);
|
|
18765
18765
|
for (const a of o)
|
|
18766
|
-
|
|
18766
|
+
JO(i, s, r, a);
|
|
18767
18767
|
n && dr(i);
|
|
18768
18768
|
}
|
|
18769
|
-
function
|
|
18769
|
+
function QO(e, t) {
|
|
18770
18770
|
const n = [];
|
|
18771
18771
|
for (const i of e)
|
|
18772
18772
|
if (i.options.drawTime === t && n.push({ element: i, main: !0 }), i.elements && i.elements.length)
|
|
@@ -18774,17 +18774,17 @@ function QC(e, t) {
|
|
|
18774
18774
|
s.options.display && s.options.drawTime === t && n.push({ element: s });
|
|
18775
18775
|
return n;
|
|
18776
18776
|
}
|
|
18777
|
-
function
|
|
18777
|
+
function JO(e, t, n, i) {
|
|
18778
18778
|
const s = i.element;
|
|
18779
18779
|
i.main ? (nh(n, s, "beforeDraw"), s.draw(e, t), nh(n, s, "afterDraw")) : s.draw(e, t);
|
|
18780
18780
|
}
|
|
18781
|
-
const
|
|
18781
|
+
const tC = { class: "zoom-timerange-container" }, eC = { class: "zoom-timerange-details" }, nC = {
|
|
18782
18782
|
class: "label",
|
|
18783
18783
|
"data-testid": "zoom-timerange-from"
|
|
18784
|
-
},
|
|
18784
|
+
}, iC = {
|
|
18785
18785
|
class: "label",
|
|
18786
18786
|
"data-testid": "zoom-timerange-to"
|
|
18787
|
-
},
|
|
18787
|
+
}, sC = /* @__PURE__ */ ue({
|
|
18788
18788
|
__name: "ZoomTimerange",
|
|
18789
18789
|
props: {
|
|
18790
18790
|
start: {},
|
|
@@ -18811,11 +18811,11 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18811
18811
|
};
|
|
18812
18812
|
return oe(() => [t.start, t.end], ([o, a]) => {
|
|
18813
18813
|
r(o, a);
|
|
18814
|
-
}, { immediate: !0 }), (o, a) => (X(), at("div",
|
|
18815
|
-
lt("div",
|
|
18816
|
-
lt("div",
|
|
18814
|
+
}, { immediate: !0 }), (o, a) => (X(), at("div", tC, [
|
|
18815
|
+
lt("div", eC, [
|
|
18816
|
+
lt("div", nC, ut(Z(n).t("zoom_time_range.from")), 1),
|
|
18817
18817
|
lt("div", null, ut(i.value), 1),
|
|
18818
|
-
lt("div",
|
|
18818
|
+
lt("div", iC, ut(Z(n).t("zoom_time_range.to")), 1),
|
|
18819
18819
|
lt("div", null, ut(s.value), 1)
|
|
18820
18820
|
])
|
|
18821
18821
|
]));
|
|
@@ -18825,7 +18825,7 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18825
18825
|
for (const [i, s] of t)
|
|
18826
18826
|
n[i] = s;
|
|
18827
18827
|
return n;
|
|
18828
|
-
}, tm = /* @__PURE__ */ We(
|
|
18828
|
+
}, tm = /* @__PURE__ */ We(sC, [["__scopeId", "data-v-4fa681cf"]]), rC = { class: "zoom-actions-container" }, oC = { class: "zoom-actions-heading" }, aC = { class: "zoom-action-select" }, lC = ["data-testid"], cC = ["aria-disabled", "href"], uC = ["onClick"], dC = /* @__PURE__ */ ue({
|
|
18829
18829
|
__name: "ZoomActions",
|
|
18830
18830
|
props: {
|
|
18831
18831
|
zoomActionItems: {},
|
|
@@ -18837,8 +18837,8 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18837
18837
|
const n = e, i = t, s = (r) => {
|
|
18838
18838
|
r.action && (r.action(n.newTimeRange), i("onAction"));
|
|
18839
18839
|
};
|
|
18840
|
-
return (r, o) => (X(), at("div",
|
|
18841
|
-
lt("div",
|
|
18840
|
+
return (r, o) => (X(), at("div", rC, [
|
|
18841
|
+
lt("div", oC, [
|
|
18842
18842
|
Xt(tm, {
|
|
18843
18843
|
end: e.newTimeRange.end,
|
|
18844
18844
|
granularity: e.granularity,
|
|
@@ -18852,7 +18852,7 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18852
18852
|
}, null, 8, ["color", "size"])
|
|
18853
18853
|
]),
|
|
18854
18854
|
o[2] || (o[2] = lt("div", { class: "zoom-actions-heading-divider" }, null, -1)),
|
|
18855
|
-
lt("div",
|
|
18855
|
+
lt("div", aC, [
|
|
18856
18856
|
(X(!0), at(Un, null, gi(e.zoomActionItems, (a) => (X(), at("div", {
|
|
18857
18857
|
key: a.key,
|
|
18858
18858
|
class: Le(["zoom-action-item", { disabled: a.disabled }]),
|
|
@@ -18864,18 +18864,18 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18864
18864
|
class: "zoom-action-link",
|
|
18865
18865
|
href: a.href,
|
|
18866
18866
|
onClick: o[1] || (o[1] = (l) => r.$emit("onAction"))
|
|
18867
|
-
}, ut(a.label), 9,
|
|
18867
|
+
}, ut(a.label), 9, cC)) : (X(), at("div", {
|
|
18868
18868
|
key: 1,
|
|
18869
18869
|
onClick: (l) => s(a)
|
|
18870
|
-
}, ut(a.label), 9,
|
|
18871
|
-
], 10,
|
|
18870
|
+
}, ut(a.label), 9, uC))
|
|
18871
|
+
], 10, lC))), 128))
|
|
18872
18872
|
])
|
|
18873
18873
|
]));
|
|
18874
18874
|
}
|
|
18875
|
-
}),
|
|
18875
|
+
}), hC = /* @__PURE__ */ We(dC, [["__scopeId", "data-v-79ba72f8"]]), fC = { key: 2 }, pC = { class: "tooltip-title" }, mC = { class: "title" }, gC = {
|
|
18876
18876
|
key: 0,
|
|
18877
18877
|
class: "subtitle"
|
|
18878
|
-
},
|
|
18878
|
+
}, yC = { class: "context" }, bC = { class: "metric" }, _C = { class: "tooltip" }, vC = { key: 0 }, xC = { class: "display-value" }, wC = /* @__PURE__ */ ue({
|
|
18879
18879
|
__name: "ChartTooltip",
|
|
18880
18880
|
props: {
|
|
18881
18881
|
state: {},
|
|
@@ -18920,15 +18920,15 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18920
18920
|
end: e.zoomTimeRange?.end,
|
|
18921
18921
|
granularity: e.granularity,
|
|
18922
18922
|
start: e.zoomTimeRange?.start
|
|
18923
|
-
}, null, 8, ["end", "granularity", "start"])) : e.state.interactionMode === "zoom-interactive" && e.zoomTimeRange && e.zoomActionItems && e.granularity ? (X(), It(
|
|
18923
|
+
}, null, 8, ["end", "granularity", "start"])) : e.state.interactionMode === "zoom-interactive" && e.zoomTimeRange && e.zoomActionItems && e.granularity ? (X(), It(hC, {
|
|
18924
18924
|
key: 1,
|
|
18925
18925
|
granularity: e.granularity,
|
|
18926
18926
|
"new-time-range": e.zoomTimeRange,
|
|
18927
18927
|
"zoom-action-items": e.zoomActionItems,
|
|
18928
18928
|
onOnAction: p[0] || (p[0] = (g) => n("onAction"))
|
|
18929
|
-
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (X(), at("div",
|
|
18930
|
-
lt("div",
|
|
18931
|
-
lt("div",
|
|
18929
|
+
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (X(), at("div", fC, [
|
|
18930
|
+
lt("div", pC, [
|
|
18931
|
+
lt("div", mC, [
|
|
18932
18932
|
lt("div", null, ut(e.tooltipTitle), 1),
|
|
18933
18933
|
h.value ? (X(), It(Z(wm), {
|
|
18934
18934
|
key: 0,
|
|
@@ -18937,38 +18937,38 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18937
18937
|
size: `var(--kui-icon-size-30, ${Z(or)})`
|
|
18938
18938
|
}, null, 8, ["color", "size"])) : Nt("", !0)
|
|
18939
18939
|
]),
|
|
18940
|
-
u.value || d.value ? (X(), at("div",
|
|
18941
|
-
lt("div",
|
|
18942
|
-
lt("div",
|
|
18940
|
+
u.value || d.value ? (X(), at("div", gC, [
|
|
18941
|
+
lt("div", yC, ut(u.value), 1),
|
|
18942
|
+
lt("div", bC, ut(d.value), 1)
|
|
18943
18943
|
])) : Nt("", !0)
|
|
18944
18944
|
]),
|
|
18945
|
-
lt("ul",
|
|
18946
|
-
(X(!0), at(Un, null, gi(e.state.tooltipSeries, ({ backgroundColor: g, borderColor: y, label: x, value: T, isSegmentEmpty:
|
|
18945
|
+
lt("ul", _C, [
|
|
18946
|
+
(X(!0), at(Un, null, gi(e.state.tooltipSeries, ({ backgroundColor: g, borderColor: y, label: x, value: T, isSegmentEmpty: C }, k) => (X(), at(Un, {
|
|
18947
18947
|
key: x + k
|
|
18948
18948
|
}, [
|
|
18949
|
-
e.state.tooltipSeries.length ? (X(), at("li",
|
|
18949
|
+
e.state.tooltipSeries.length ? (X(), at("li", vC, [
|
|
18950
18950
|
lt("div", {
|
|
18951
18951
|
class: "square-marker",
|
|
18952
18952
|
style: _i({ background: String(g), borderColor: String(y) })
|
|
18953
18953
|
}, null, 4),
|
|
18954
18954
|
lt("span", {
|
|
18955
|
-
class: Le(["display-label", { empty:
|
|
18955
|
+
class: Le(["display-label", { empty: C }])
|
|
18956
18956
|
}, ut(x), 3),
|
|
18957
|
-
lt("span",
|
|
18957
|
+
lt("span", xC, ut(T), 1)
|
|
18958
18958
|
])) : Nt("", !0)
|
|
18959
18959
|
], 64))), 128))
|
|
18960
18960
|
])
|
|
18961
18961
|
]))
|
|
18962
18962
|
], 6)) : Nt("", !0);
|
|
18963
18963
|
}
|
|
18964
|
-
}), Vo = /* @__PURE__ */ We(
|
|
18964
|
+
}), Vo = /* @__PURE__ */ We(wC, [["__scopeId", "data-v-34c60646"]]), SC = {
|
|
18965
18965
|
key: 0,
|
|
18966
18966
|
class: "legend-container",
|
|
18967
18967
|
"data-testid": "legend"
|
|
18968
|
-
},
|
|
18968
|
+
}, TC = ["onClick"], MC = ["title"], DC = { class: "label truncate-label" }, kC = {
|
|
18969
18969
|
key: 0,
|
|
18970
18970
|
class: "sub-label"
|
|
18971
|
-
},
|
|
18971
|
+
}, OC = { class: "tooltip-content" }, CC = /* @__PURE__ */ ue({
|
|
18972
18972
|
__name: "ChartLegend",
|
|
18973
18973
|
props: {
|
|
18974
18974
|
id: {
|
|
@@ -18999,7 +18999,7 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
18999
18999
|
};
|
|
19000
19000
|
return (a, l) => {
|
|
19001
19001
|
const c = Re("KTooltip");
|
|
19002
|
-
return Z(s) !== Z(Be).Hidden ? (X(), at("ul",
|
|
19002
|
+
return Z(s) !== Z(Be).Hidden ? (X(), at("ul", SC, [
|
|
19003
19003
|
(X(!0), at(Un, null, gi(e.items, ({ fillStyle: u, strokeStyle: d, text: h, datasetIndex: f, index: p, value: g, isSegmentEmpty: y }) => (X(), at("li", {
|
|
19004
19004
|
key: h,
|
|
19005
19005
|
onClick: (x) => r(f, p)
|
|
@@ -19008,49 +19008,49 @@ const tO = { class: "zoom-timerange-container" }, eO = { class: "zoom-timerange-
|
|
|
19008
19008
|
class: "square-marker",
|
|
19009
19009
|
style: _i({ background: u, "border-color": d })
|
|
19010
19010
|
}, null, 4),
|
|
19011
|
-
Xt(c, null,
|
|
19011
|
+
Xt(c, null, Ch({
|
|
19012
19012
|
default: Ut(() => [
|
|
19013
19013
|
lt("div", {
|
|
19014
19014
|
class: Le(["label-container", { "strike-through": !o(f, p) }]),
|
|
19015
19015
|
title: g && Z(i) ? `${h}: ${g.formatted}` : h
|
|
19016
19016
|
}, [
|
|
19017
|
-
lt("div",
|
|
19018
|
-
g && Z(i) ? (X(), at("div",
|
|
19019
|
-
], 10,
|
|
19017
|
+
lt("div", DC, ut(h), 1),
|
|
19018
|
+
g && Z(i) ? (X(), at("div", kC, ut(g.formatted), 1)) : Nt("", !0)
|
|
19019
|
+
], 10, MC)
|
|
19020
19020
|
]),
|
|
19021
19021
|
_: 2
|
|
19022
19022
|
}, [
|
|
19023
19023
|
y ? {
|
|
19024
19024
|
name: "content",
|
|
19025
19025
|
fn: Ut(() => [
|
|
19026
|
-
lt("div",
|
|
19026
|
+
lt("div", OC, ut(Z(n).t("emptyEntityInfo")), 1)
|
|
19027
19027
|
]),
|
|
19028
19028
|
key: "0"
|
|
19029
19029
|
} : void 0
|
|
19030
19030
|
]), 1024)
|
|
19031
|
-
], 8,
|
|
19031
|
+
], 8, TC))), 128))
|
|
19032
19032
|
])) : Nt("", !0);
|
|
19033
19033
|
};
|
|
19034
19034
|
}
|
|
19035
|
-
}),
|
|
19035
|
+
}), Oc = /* @__PURE__ */ We(CC, [["__scopeId", "data-v-e6664c85"]]), pe = [];
|
|
19036
19036
|
for (let e = 0; e < 256; ++e)
|
|
19037
19037
|
pe.push((e + 256).toString(16).slice(1));
|
|
19038
|
-
function
|
|
19038
|
+
function AC(e, t = 0) {
|
|
19039
19039
|
return (pe[e[t + 0]] + pe[e[t + 1]] + pe[e[t + 2]] + pe[e[t + 3]] + "-" + pe[e[t + 4]] + pe[e[t + 5]] + "-" + pe[e[t + 6]] + pe[e[t + 7]] + "-" + pe[e[t + 8]] + pe[e[t + 9]] + "-" + pe[e[t + 10]] + pe[e[t + 11]] + pe[e[t + 12]] + pe[e[t + 13]] + pe[e[t + 14]] + pe[e[t + 15]]).toLowerCase();
|
|
19040
19040
|
}
|
|
19041
|
-
const
|
|
19042
|
-
function
|
|
19043
|
-
return crypto.getRandomValues(
|
|
19041
|
+
const PC = new Uint8Array(16);
|
|
19042
|
+
function RC() {
|
|
19043
|
+
return crypto.getRandomValues(PC);
|
|
19044
19044
|
}
|
|
19045
19045
|
function jl(e, t, n) {
|
|
19046
|
-
return crypto.randomUUID ? crypto.randomUUID() :
|
|
19046
|
+
return crypto.randomUUID ? crypto.randomUUID() : EC(e);
|
|
19047
19047
|
}
|
|
19048
|
-
function
|
|
19048
|
+
function EC(e, t, n) {
|
|
19049
19049
|
e = e || {};
|
|
19050
|
-
const i = e.random ?? e.rng?.() ??
|
|
19050
|
+
const i = e.random ?? e.rng?.() ?? RC();
|
|
19051
19051
|
if (i.length < 16)
|
|
19052
19052
|
throw new Error("Random bytes length must be >= 16");
|
|
19053
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
19053
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, AC(i);
|
|
19054
19054
|
}
|
|
19055
19055
|
const bh = (e, t) => {
|
|
19056
19056
|
const n = e.ctx, i = e.scales.y, s = e.scales.x, r = t[t.length - 1].element;
|
|
@@ -19090,7 +19090,7 @@ class em {
|
|
|
19090
19090
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19091
19091
|
}
|
|
19092
19092
|
}
|
|
19093
|
-
const
|
|
19093
|
+
const IC = ["id"], LC = ["id"], NC = { class: "axis-tooltip-content" }, FC = "100%", zC = "100%", UC = 20, HC = 20, _h = 6, BC = 0, WC = 10, YC = 10, $C = 1, jC = /* @__PURE__ */ ue({
|
|
19094
19094
|
__name: "StackedBarChart",
|
|
19095
19095
|
props: {
|
|
19096
19096
|
chartData: {},
|
|
@@ -19147,7 +19147,7 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19147
19147
|
text: "",
|
|
19148
19148
|
offset: -50
|
|
19149
19149
|
// Avoids App Shell obstruction
|
|
19150
|
-
}), T = Tt(t, "metricUnit"),
|
|
19150
|
+
}), T = Tt(t, "metricUnit"), C = L(() => t.orientation === "horizontal"), k = tr({
|
|
19151
19151
|
showTooltip: !1,
|
|
19152
19152
|
tooltipContext: "",
|
|
19153
19153
|
// set in tooltipBehaviour
|
|
@@ -19163,10 +19163,10 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19163
19163
|
width: 0,
|
|
19164
19164
|
height: 0,
|
|
19165
19165
|
interactionMode: "idle",
|
|
19166
|
-
chartType:
|
|
19166
|
+
chartType: C.value ? "horizontal_bar" : "vertical_bar",
|
|
19167
19167
|
chartID: r,
|
|
19168
19168
|
chartTooltipSortFn: t.chartTooltipSortFn
|
|
19169
|
-
}), { tooltipAbsoluteLeft:
|
|
19169
|
+
}), { tooltipAbsoluteLeft: O, tooltipAbsoluteTop: A } = bt.useTooltipAbsolutePosition(
|
|
19170
19170
|
l,
|
|
19171
19171
|
k
|
|
19172
19172
|
), M = Vt(0), _ = () => t.annotations && t.chartData.labels?.reduce(
|
|
@@ -19193,8 +19193,8 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19193
19193
|
const et = G.event, it = q.options.indexAxis, nt = q.scales, J = q.scales[it].getLabelForValue(Number(q.scales[it].getValueForPixel(et[it]))), St = q.scales[it].getLabels().indexOf(J), ct = t.chartData.isLabelEmpty?.[St];
|
|
19194
19194
|
if (((pt) => pt === "x" ? et.y > nt.x.top : et.x < nt.y.right)(it)) {
|
|
19195
19195
|
k.interactionMode !== "interactive" && (k.showTooltip = !1);
|
|
19196
|
-
const Jt = q.canvas.getContext("2d").measureText(J).width, ft = Math.abs(Math.round(et.x - Jt * 0.5)),
|
|
19197
|
-
x.left = it === "x" ? `${(ft > 0 ? ft :
|
|
19196
|
+
const Jt = q.canvas.getContext("2d").measureText(J).width, ft = Math.abs(Math.round(et.x - Jt * 0.5)), Ot = Math.round(et.x + Jt * 0.5), ne = q.canvas.getBoundingClientRect(), De = 40;
|
|
19197
|
+
x.left = it === "x" ? `${(ft > 0 ? ft : Ot) - x.offset + ne.left}px` : `${et.x - Jt * 0.5 - x.offset + ne.left}px`, x.top = `${et.y - De + ne.top}px`, J.length > Il ? (x.show = !0, x.text = J) : ct ? (x.text = n.t("emptyEntityInfo"), x.show = !0) : x.show = !1;
|
|
19198
19198
|
} else
|
|
19199
19199
|
x.show = !1;
|
|
19200
19200
|
}
|
|
@@ -19206,10 +19206,10 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19206
19206
|
H.value = q[0].contentRect.width, V.value = q[0].contentRect.height;
|
|
19207
19207
|
}, 100)), $ = L(() => {
|
|
19208
19208
|
const q = t.chartData?.labels?.length;
|
|
19209
|
-
return d.value && q && !
|
|
19209
|
+
return d.value && q && !C.value ? `${Math.max(q * (UC + _h), H.value)}px` : FC;
|
|
19210
19210
|
}), R = L(() => {
|
|
19211
19211
|
const q = t.chartData?.labels?.length;
|
|
19212
|
-
return d.value && q &&
|
|
19212
|
+
return d.value && q && C.value ? `${Math.max(q * (HC + _h), V.value)}px` : zC;
|
|
19213
19213
|
});
|
|
19214
19214
|
bt.useReportChartDataForSynthetics(Tt(t, "chartData"), Tt(t, "syntheticsDataKey")), Qn(() => {
|
|
19215
19215
|
t.annotations && Fe.register(yh), a.value && (H.value = a.value.offsetWidth, V.value = a.value.offsetHeight, W.observe(a.value));
|
|
@@ -19223,7 +19223,7 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19223
19223
|
stacked: Tt(t, "stacked"),
|
|
19224
19224
|
metricAxesTitle: Tt(t, "metricAxesTitle"),
|
|
19225
19225
|
dimensionAxesTitle: Tt(t, "dimensionAxesTitle"),
|
|
19226
|
-
indexAxis:
|
|
19226
|
+
indexAxis: C.value ? "y" : "x",
|
|
19227
19227
|
numLabels: j
|
|
19228
19228
|
});
|
|
19229
19229
|
return {
|
|
@@ -19250,7 +19250,7 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19250
19250
|
[Be.Bottom]: "column"
|
|
19251
19251
|
}, N = L(() => {
|
|
19252
19252
|
if (h.value && U.value) {
|
|
19253
|
-
const q = window.devicePixelRatio, G = U.value, et = G.scales.y.width * q + $
|
|
19253
|
+
const q = window.devicePixelRatio, G = U.value, et = G.scales.y.width * q + $C, it = (G.scales.y.height + G.scales.y.top + G.scales.x.height) * q, nt = h.value.getContext("2d");
|
|
19254
19254
|
return nt.scale(q, q), nt.canvas.width = et, nt.canvas.height = it, nt.canvas.style.width = `${et / q}px`, nt.canvas.style.height = `${it / q}px`, {
|
|
19255
19255
|
scale: q,
|
|
19256
19256
|
width: et * q,
|
|
@@ -19261,9 +19261,9 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19261
19261
|
return null;
|
|
19262
19262
|
}), B = (q) => {
|
|
19263
19263
|
const G = q.target;
|
|
19264
|
-
if (N.value && U.value && !
|
|
19264
|
+
if (N.value && U.value && !C.value) {
|
|
19265
19265
|
const et = N.value.scale, it = N.value.targetCtx, nt = N.value.width, J = N.value.height, vt = U.value, St = vt.canvas;
|
|
19266
|
-
it.fillStyle = "white", G.scrollLeft >=
|
|
19266
|
+
it.fillStyle = "white", G.scrollLeft >= BC && G.scrollLeft <= WC ? (it.globalCompositeOperation = "source-over", it.clearRect(0, 0, nt, J), it.drawImage(St, 0, 0, nt, J, 0, 0, nt, J), it.globalCompositeOperation = "destination-over", it.fillRect(0, 0, nt, J)) : (it.globalCompositeOperation = "source-over", it.fillRect(0, (vt.scales.y.height + vt.scales.y.top + YC) * et, nt, vt.scales.x.height * et));
|
|
19267
19267
|
}
|
|
19268
19268
|
k.offsetY = G.scrollTop, k.offsetX = G.scrollLeft, x.offset = G.scrollLeft;
|
|
19269
19269
|
}, tt = ({ width: q, height: G }) => {
|
|
@@ -19289,7 +19289,7 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19289
19289
|
id: Z(s),
|
|
19290
19290
|
ref: "axis",
|
|
19291
19291
|
class: "axis"
|
|
19292
|
-
}, null, 8,
|
|
19292
|
+
}, null, 8, IC),
|
|
19293
19293
|
lt("div", {
|
|
19294
19294
|
ref: "chartContainer",
|
|
19295
19295
|
class: "chart-container",
|
|
@@ -19304,7 +19304,7 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19304
19304
|
id: Z(r),
|
|
19305
19305
|
ref: "canvas",
|
|
19306
19306
|
class: "chart-canvas"
|
|
19307
|
-
}, null, 8,
|
|
19307
|
+
}, null, 8, LC)
|
|
19308
19308
|
], 4)
|
|
19309
19309
|
], 544),
|
|
19310
19310
|
(X(), It(Ah, { to: "body" }, [
|
|
@@ -19314,10 +19314,10 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19314
19314
|
style: _i({ top: x.top, left: x.left }),
|
|
19315
19315
|
width: "auto"
|
|
19316
19316
|
}, [
|
|
19317
|
-
lt("div",
|
|
19317
|
+
lt("div", NC, ut(x.text), 1)
|
|
19318
19318
|
], 4)) : Nt("", !0),
|
|
19319
19319
|
Xt(Vo, {
|
|
19320
|
-
"absolute-left": Z(
|
|
19320
|
+
"absolute-left": Z(O),
|
|
19321
19321
|
"absolute-top": Z(A),
|
|
19322
19322
|
"chart-parent-ref": l.value,
|
|
19323
19323
|
state: k,
|
|
@@ -19325,15 +19325,15 @@ const IO = ["id"], LO = ["id"], NO = { class: "axis-tooltip-content" }, FO = "10
|
|
|
19325
19325
|
onDimensions: tt
|
|
19326
19326
|
}, null, 8, ["absolute-left", "absolute-top", "chart-parent-ref", "state", "tooltip-title"])
|
|
19327
19327
|
])),
|
|
19328
|
-
Xt(
|
|
19328
|
+
Xt(Oc, {
|
|
19329
19329
|
id: Z(f),
|
|
19330
19330
|
"chart-instance": Z(U),
|
|
19331
19331
|
items: g.value
|
|
19332
19332
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
19333
19333
|
], 2));
|
|
19334
19334
|
}
|
|
19335
|
-
}),
|
|
19336
|
-
const
|
|
19335
|
+
}), VC = /* @__PURE__ */ We(jC, [["__scopeId", "data-v-60e5a1a7"]]);
|
|
19336
|
+
const qC = {
|
|
19337
19337
|
datetime: "MMM d, yyyy, h:mm:ss aaaa",
|
|
19338
19338
|
millisecond: "h:mm:ss.SSS aaaa",
|
|
19339
19339
|
second: "h:mm:ss aaaa",
|
|
@@ -19349,7 +19349,7 @@ df._date.override({
|
|
|
19349
19349
|
_id: "date-fns",
|
|
19350
19350
|
// DEBUG
|
|
19351
19351
|
formats: function() {
|
|
19352
|
-
return
|
|
19352
|
+
return qC;
|
|
19353
19353
|
},
|
|
19354
19354
|
parse: function(e, t) {
|
|
19355
19355
|
if (e === null || typeof e > "u")
|
|
@@ -19417,7 +19417,7 @@ df._date.override({
|
|
|
19417
19417
|
case "hour":
|
|
19418
19418
|
return Iw(e);
|
|
19419
19419
|
case "day":
|
|
19420
|
-
return
|
|
19420
|
+
return Cl(e);
|
|
19421
19421
|
case "week":
|
|
19422
19422
|
return dn(e);
|
|
19423
19423
|
case "isoWeek":
|
|
@@ -19476,14 +19476,14 @@ const nm = {
|
|
|
19476
19476
|
type: String,
|
|
19477
19477
|
default: void 0
|
|
19478
19478
|
}
|
|
19479
|
-
},
|
|
19479
|
+
}, GC = {
|
|
19480
19480
|
ariaLabel: {
|
|
19481
19481
|
type: String
|
|
19482
19482
|
},
|
|
19483
19483
|
ariaDescribedby: {
|
|
19484
19484
|
type: String
|
|
19485
19485
|
}
|
|
19486
|
-
},
|
|
19486
|
+
}, KC = {
|
|
19487
19487
|
type: {
|
|
19488
19488
|
type: String,
|
|
19489
19489
|
required: !0
|
|
@@ -19494,18 +19494,18 @@ const nm = {
|
|
|
19494
19494
|
// No delay by default
|
|
19495
19495
|
},
|
|
19496
19496
|
...nm,
|
|
19497
|
-
...
|
|
19498
|
-
},
|
|
19497
|
+
...GC
|
|
19498
|
+
}, XC = gm[0] === "2" ? (e, t) => Object.assign(e, {
|
|
19499
19499
|
attrs: t
|
|
19500
19500
|
}) : (e, t) => Object.assign(e, t);
|
|
19501
19501
|
function $i(e) {
|
|
19502
19502
|
return Ph(e) ? gl(e) : e;
|
|
19503
19503
|
}
|
|
19504
|
-
function
|
|
19504
|
+
function ZC(e) {
|
|
19505
19505
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e;
|
|
19506
19506
|
return Ph(t) ? new Proxy(e, {}) : e;
|
|
19507
19507
|
}
|
|
19508
|
-
function
|
|
19508
|
+
function QC(e, t) {
|
|
19509
19509
|
const n = e.options;
|
|
19510
19510
|
n && t && Object.assign(n, t);
|
|
19511
19511
|
}
|
|
@@ -19521,7 +19521,7 @@ function sm(e, t, n) {
|
|
|
19521
19521
|
} : (i.push(r), Object.assign(r, s), r);
|
|
19522
19522
|
});
|
|
19523
19523
|
}
|
|
19524
|
-
function
|
|
19524
|
+
function JC(e, t) {
|
|
19525
19525
|
const n = {
|
|
19526
19526
|
labels: [],
|
|
19527
19527
|
datasets: []
|
|
@@ -19529,7 +19529,7 @@ function JO(e, t) {
|
|
|
19529
19529
|
return im(n, e.labels), sm(n, e.datasets, t), n;
|
|
19530
19530
|
}
|
|
19531
19531
|
const tA = ue({
|
|
19532
|
-
props:
|
|
19532
|
+
props: KC,
|
|
19533
19533
|
setup(e, t) {
|
|
19534
19534
|
let { expose: n, slots: i } = t;
|
|
19535
19535
|
const s = Vt(null), r = qe(null);
|
|
@@ -19538,7 +19538,7 @@ const tA = ue({
|
|
|
19538
19538
|
});
|
|
19539
19539
|
const o = () => {
|
|
19540
19540
|
if (!s.value) return;
|
|
19541
|
-
const { type: c, data: u, options: d, plugins: h, datasetIdKey: f } = e, p =
|
|
19541
|
+
const { type: c, data: u, options: d, plugins: h, datasetIdKey: f } = e, p = JC(u, f), g = ZC(p, u);
|
|
19542
19542
|
r.value = new Fe(s.value, {
|
|
19543
19543
|
type: c,
|
|
19544
19544
|
data: g,
|
|
@@ -19566,13 +19566,13 @@ const tA = ue({
|
|
|
19566
19566
|
let y = !1;
|
|
19567
19567
|
if (d) {
|
|
19568
19568
|
const x = $i(d), T = $i(f);
|
|
19569
|
-
x && x !== T && (
|
|
19569
|
+
x && x !== T && (QC(g, x), y = !0);
|
|
19570
19570
|
}
|
|
19571
19571
|
if (h) {
|
|
19572
|
-
const x = $i(h.labels), T = $i(p.labels),
|
|
19573
|
-
x !== T && (im(g.config.data, x), y = !0),
|
|
19572
|
+
const x = $i(h.labels), T = $i(p.labels), C = $i(h.datasets), k = $i(p.datasets);
|
|
19573
|
+
x !== T && (im(g.config.data, x), y = !0), C && C !== k && (sm(g.config.data, C, e.datasetIdKey), y = !0);
|
|
19574
19574
|
}
|
|
19575
|
-
y &&
|
|
19575
|
+
y && Oh(() => {
|
|
19576
19576
|
l(g);
|
|
19577
19577
|
});
|
|
19578
19578
|
}, {
|
|
@@ -19589,7 +19589,7 @@ const tA = ue({
|
|
|
19589
19589
|
]);
|
|
19590
19590
|
}
|
|
19591
19591
|
});
|
|
19592
|
-
function
|
|
19592
|
+
function Cc(e, t) {
|
|
19593
19593
|
return Fe.register(t), ue({
|
|
19594
19594
|
props: nm,
|
|
19595
19595
|
setup(n, i) {
|
|
@@ -19599,7 +19599,7 @@ function Oc(e, t) {
|
|
|
19599
19599
|
};
|
|
19600
19600
|
return s({
|
|
19601
19601
|
chart: r
|
|
19602
|
-
}), () => ml(tA,
|
|
19602
|
+
}), () => ml(tA, XC({
|
|
19603
19603
|
ref: o
|
|
19604
19604
|
}, {
|
|
19605
19605
|
type: e,
|
|
@@ -19608,7 +19608,7 @@ function Oc(e, t) {
|
|
|
19608
19608
|
}
|
|
19609
19609
|
});
|
|
19610
19610
|
}
|
|
19611
|
-
const rm = /* @__PURE__ */
|
|
19611
|
+
const rm = /* @__PURE__ */ Cc("bar", lf), om = /* @__PURE__ */ Cc("doughnut", hr), am = /* @__PURE__ */ Cc("line", cf), eA = { class: "chart-container" }, nA = {
|
|
19612
19612
|
key: 0,
|
|
19613
19613
|
class: "chart-center-metric"
|
|
19614
19614
|
}, iA = { class: "chart-center-total" }, sA = {
|
|
@@ -19675,10 +19675,10 @@ const rm = /* @__PURE__ */ Oc("bar", lf), om = /* @__PURE__ */ Oc("doughnut", hr
|
|
|
19675
19675
|
datasets: f.value
|
|
19676
19676
|
}));
|
|
19677
19677
|
bt.useReportChartDataForSynthetics(Tt(t, "chartData"), Tt(t, "syntheticsDataKey"));
|
|
19678
|
-
const { options:
|
|
19678
|
+
const { options: C } = bt.useDonutChartOptions({
|
|
19679
19679
|
tooltipState: l,
|
|
19680
19680
|
legendID: s
|
|
19681
|
-
}), k = Vt(),
|
|
19681
|
+
}), k = Vt(), O = (M) => ({
|
|
19682
19682
|
[Be.Bottom]: "column",
|
|
19683
19683
|
[Be.Hidden]: "hidden"
|
|
19684
19684
|
})[M], A = ({ width: M, height: _ }) => {
|
|
@@ -19686,7 +19686,7 @@ const rm = /* @__PURE__ */ Oc("bar", lf), om = /* @__PURE__ */ Oc("doughnut", hr
|
|
|
19686
19686
|
};
|
|
19687
19687
|
return (M, _) => (X(), at("div", {
|
|
19688
19688
|
ref: "chartParent",
|
|
19689
|
-
class: Le(["chart-parent",
|
|
19689
|
+
class: Le(["chart-parent", O(e.legendPosition)]),
|
|
19690
19690
|
"data-testid": "donut-chart-parent"
|
|
19691
19691
|
}, [
|
|
19692
19692
|
lt("div", eA, [
|
|
@@ -19695,7 +19695,7 @@ const rm = /* @__PURE__ */ Oc("bar", lf), om = /* @__PURE__ */ Oc("doughnut", hr
|
|
|
19695
19695
|
ref: k,
|
|
19696
19696
|
"chart-id": Z(r),
|
|
19697
19697
|
data: T.value,
|
|
19698
|
-
options: Z(
|
|
19698
|
+
options: Z(C),
|
|
19699
19699
|
plugins: h.value
|
|
19700
19700
|
}, null, 8, ["chart-id", "data", "options", "plugins"]),
|
|
19701
19701
|
e.showCenterMetric && g.value ? (X(), at("div", nA, [
|
|
@@ -19713,7 +19713,7 @@ const rm = /* @__PURE__ */ Oc("bar", lf), om = /* @__PURE__ */ Oc("doughnut", hr
|
|
|
19713
19713
|
}, null, 8, ["absolute-left", "absolute-top", "state", "tooltip-title", "unit"])
|
|
19714
19714
|
]))
|
|
19715
19715
|
]),
|
|
19716
|
-
Xt(
|
|
19716
|
+
Xt(Oc, {
|
|
19717
19717
|
id: Z(s),
|
|
19718
19718
|
"chart-instance": k.value,
|
|
19719
19719
|
items: o.value,
|
|
@@ -19867,7 +19867,7 @@ class dA {
|
|
|
19867
19867
|
this._clearSelectionArea = !0, this._chart && this._chart.update();
|
|
19868
19868
|
}
|
|
19869
19869
|
}
|
|
19870
|
-
const
|
|
19870
|
+
const CP = ["hidden", "single", "full"];
|
|
19871
19871
|
var qi = /* @__PURE__ */ ((e) => (e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Object = "object", e.Undefined = "undefined", e))(qi || {});
|
|
19872
19872
|
const AP = [
|
|
19873
19873
|
"donut",
|
|
@@ -19982,7 +19982,7 @@ class yA {
|
|
|
19982
19982
|
const u = t.scales.y.getPixelForValue(l.value);
|
|
19983
19983
|
i.save(), i.beginPath(), i.moveTo(t.chartArea.left, u), i.lineTo(t.chartArea.right, u), i.lineWidth = 1, i.strokeStyle = Ja(l.type), i.setLineDash([5, 5]), i.stroke(), i.restore();
|
|
19984
19984
|
let d = "";
|
|
19985
|
-
l.label ? d = `${l.label}: ${l.value}` : l.type === "warning" ? d = this.i18n.t("chartLabels.threshold-warning", { value: l.value }) : l.type === "error" ? d = this.i18n.t("chartLabels.threshold-error", { value: l.value }) : d = this.i18n.t("chartLabels.thatreshold-neutral", { value: l.value }), l.hovered && (i.save(), i.fillStyle = Ja(l.type), i.font =
|
|
19985
|
+
l.label ? d = `${l.label}: ${l.value}` : l.type === "warning" ? d = this.i18n.t("chartLabels.threshold-warning", { value: l.value }) : l.type === "error" ? d = this.i18n.t("chartLabels.threshold-error", { value: l.value }) : d = this.i18n.t("chartLabels.thatreshold-neutral", { value: l.value }), l.hovered && (i.save(), i.fillStyle = Ja(l.type), i.font = AT, i.fillText(d, t.chartArea.left, u - 4), i.restore());
|
|
19986
19986
|
});
|
|
19987
19987
|
const o = mA(t, r);
|
|
19988
19988
|
gA(o).forEach((l) => {
|
|
@@ -20038,16 +20038,16 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20038
20038
|
chartID: h,
|
|
20039
20039
|
chartTooltipSortFn: n.chartTooltipSortFn,
|
|
20040
20040
|
interactionMode: "idle"
|
|
20041
|
-
}), { tooltipAbsoluteLeft:
|
|
20041
|
+
}), { tooltipAbsoluteLeft: C, tooltipAbsoluteTop: k } = bt.useTooltipAbsolutePosition(
|
|
20042
20042
|
g,
|
|
20043
20043
|
T
|
|
20044
|
-
),
|
|
20044
|
+
), O = {
|
|
20045
20045
|
id: d,
|
|
20046
20046
|
afterUpdate(U) {
|
|
20047
20047
|
f.value = vp(U, n.legendValues, n.chartLegendSortFn);
|
|
20048
20048
|
}
|
|
20049
20049
|
}, A = L(() => [
|
|
20050
|
-
|
|
20050
|
+
O,
|
|
20051
20051
|
o,
|
|
20052
20052
|
...n.brush ? [a] : [],
|
|
20053
20053
|
...n.type === "timeseries_line" ? [r] : [],
|
|
@@ -20145,7 +20145,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20145
20145
|
}, null, 8, ["chart-id", "data", "options", "plugins"])) : Nt("", !0)
|
|
20146
20146
|
]),
|
|
20147
20147
|
Xt(Vo, {
|
|
20148
|
-
"absolute-left": Z(
|
|
20148
|
+
"absolute-left": Z(C),
|
|
20149
20149
|
"absolute-top": Z(k),
|
|
20150
20150
|
"data-testid": "tooltip",
|
|
20151
20151
|
granularity: e.granularity,
|
|
@@ -20156,7 +20156,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20156
20156
|
onDimensions: E,
|
|
20157
20157
|
onOnAction: P[1] || (P[1] = () => j(!1))
|
|
20158
20158
|
}, null, 8, ["absolute-left", "absolute-top", "granularity", "state", "tooltip-title", "zoom-action-items", "zoom-time-range"]),
|
|
20159
|
-
Xt(
|
|
20159
|
+
Xt(Oc, {
|
|
20160
20160
|
id: Z(d),
|
|
20161
20161
|
"chart-instance": u.value,
|
|
20162
20162
|
"data-testid": "legend",
|
|
@@ -20211,7 +20211,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20211
20211
|
}), l = L(() => i.chartData.meta?.metric_units ? Object.values(i.chartData.meta.metric_units)[0] : ""), c = L(() => i.chartData.meta?.metric_units ? Object.keys(i.chartData.meta.metric_units)[0] ?? "" : ""), u = L(() => i.showLegendValues && i.legendPosition !== Be.Hidden), { legendValues: d } = bt.useChartLegendValues(r, i.chartOptions.type, l), h = L(() => i.chartData?.meta?.limit?.toString() || null), f = L(() => i.chartOptions.hideTruncationWarning ? !1 : i.chartData?.meta?.truncated || !1), p = L(() => s.t("limitedResultsShown", { maxReturned: h.value })), g = L(() => [
|
|
20212
20212
|
"vertical_bar",
|
|
20213
20213
|
"horizontal_bar"
|
|
20214
|
-
].includes(i.chartOptions.type)), y = L(() => ["timeseries_bar", "timeseries_line"].some((H) => H === i.chartOptions.type)), x = L(() => i.chartOptions.type === "donut"), T = L(() => i.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"),
|
|
20214
|
+
].includes(i.chartOptions.type)), y = L(() => ["timeseries_bar", "timeseries_line"].some((H) => H === i.chartOptions.type)), x = L(() => i.chartOptions.type === "donut"), T = L(() => i.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), C = L(() => {
|
|
20215
20215
|
if (!i.chartData?.meta.metric_names || !i.chartData?.meta.metric_units)
|
|
20216
20216
|
return;
|
|
20217
20217
|
const H = i.chartData.meta.metric_names[0], V = i.chartData.meta.metric_units[H] || "";
|
|
@@ -20236,7 +20236,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20236
20236
|
return s.t("metricAxisTitles.size_in", { unit: s.t(`chartUnits.${V}`, { plural: "s" }) });
|
|
20237
20237
|
}
|
|
20238
20238
|
return s.te(`metricAxisTitles.${H}`) && (Xs(V) || s.te(`chartUnits.${V}`)) ? Xs(V) ? s.t(`metricAxisTitles.${H}`) || void 0 : s.t(`metricAxisTitles.${H}`, { unit: s.t(`chartUnits.${V}`, { plural: "s" }) }) || void 0 : H || void 0;
|
|
20239
|
-
}),
|
|
20239
|
+
}), O = L(() => {
|
|
20240
20240
|
if (i.chartOptions?.dimensionAxesTitle)
|
|
20241
20241
|
return i.chartOptions.dimensionAxesTitle;
|
|
20242
20242
|
const H = y.value ? "Time" : Object.keys(i.chartData.meta.display || i.chartData.meta.metric_names)[0];
|
|
@@ -20285,8 +20285,8 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20285
20285
|
]),
|
|
20286
20286
|
default: Ut(() => [
|
|
20287
20287
|
Xt(Z(Sm), {
|
|
20288
|
-
color: `var(--kui-color-text-warning, ${Z(
|
|
20289
|
-
size: `var(--kui-icon-size-40, ${Z(
|
|
20288
|
+
color: `var(--kui-color-text-warning, ${Z(OT)})`,
|
|
20289
|
+
size: `var(--kui-icon-size-40, ${Z(PT)})`
|
|
20290
20290
|
}, null, 8, ["color", "size"])
|
|
20291
20291
|
]),
|
|
20292
20292
|
_: 1
|
|
@@ -20309,27 +20309,27 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20309
20309
|
"synthetics-data-key": e.syntheticsDataKey,
|
|
20310
20310
|
threshold: e.chartOptions.threshold,
|
|
20311
20311
|
"time-range-ms": a.value,
|
|
20312
|
-
"tooltip-metric-display":
|
|
20312
|
+
"tooltip-metric-display": C.value,
|
|
20313
20313
|
"tooltip-title": e.tooltipTitle,
|
|
20314
20314
|
type: e.chartOptions.type,
|
|
20315
20315
|
"zoom-action-items": j.value,
|
|
20316
20316
|
onSelectChartRange: V[0] || (V[0] = (R) => n("select-chart-range", R)),
|
|
20317
20317
|
onZoomTimeRange: V[1] || (V[1] = (R) => n("zoom-time-range", R))
|
|
20318
|
-
}, null, 8, ["brush", "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", "threshold", "time-range-ms", "tooltip-metric-display", "tooltip-title", "type", "zoom-action-items"])) : g.value ? (X(), It(
|
|
20318
|
+
}, null, 8, ["brush", "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", "threshold", "time-range-ms", "tooltip-metric-display", "tooltip-title", "type", "zoom-action-items"])) : g.value ? (X(), It(VC, {
|
|
20319
20319
|
key: 1,
|
|
20320
20320
|
annotations: e.showAnnotations,
|
|
20321
20321
|
"chart-data": r.value,
|
|
20322
20322
|
"chart-legend-sort-fn": D.value,
|
|
20323
20323
|
"chart-tooltip-sort-fn": E.value,
|
|
20324
20324
|
"data-testid": "bar-chart-container",
|
|
20325
|
-
"dimension-axes-title":
|
|
20325
|
+
"dimension-axes-title": O.value,
|
|
20326
20326
|
"legend-values": Z(d),
|
|
20327
20327
|
"metric-axes-title": k.value,
|
|
20328
20328
|
"metric-unit": l.value,
|
|
20329
20329
|
orientation: T.value,
|
|
20330
20330
|
stacked: e.chartOptions.stacked,
|
|
20331
20331
|
"synthetics-data-key": e.syntheticsDataKey,
|
|
20332
|
-
"tooltip-metric-display":
|
|
20332
|
+
"tooltip-metric-display": C.value,
|
|
20333
20333
|
"tooltip-title": e.tooltipTitle
|
|
20334
20334
|
}, 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"])) : x.value ? (X(), It(oA, {
|
|
20335
20335
|
key: 2,
|
|
@@ -20341,8 +20341,8 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20341
20341
|
"metric-unit": l.value,
|
|
20342
20342
|
"show-center-metric": e.chartOptions.showCenterMetric,
|
|
20343
20343
|
"synthetics-data-key": e.syntheticsDataKey,
|
|
20344
|
-
"tooltip-dimension-display":
|
|
20345
|
-
"tooltip-metric-display":
|
|
20344
|
+
"tooltip-dimension-display": O.value,
|
|
20345
|
+
"tooltip-metric-display": C.value,
|
|
20346
20346
|
"tooltip-title": e.tooltipTitle
|
|
20347
20347
|
}, null, 8, ["chart-data", "dataset-colors", "legend-position", "legend-values", "metric-name", "metric-unit", "show-center-metric", "synthetics-data-key", "tooltip-dimension-display", "tooltip-metric-display", "tooltip-title"])) : Nt("", !0)
|
|
20348
20348
|
])) : (X(), It($, {
|
|
@@ -20452,7 +20452,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20452
20452
|
], 4)
|
|
20453
20453
|
]));
|
|
20454
20454
|
}
|
|
20455
|
-
}),
|
|
20455
|
+
}), OA = /* @__PURE__ */ We(kA, [["__scopeId", "data-v-c461b83f"]]), CA = {
|
|
20456
20456
|
key: 1,
|
|
20457
20457
|
class: "single-value-wrapper"
|
|
20458
20458
|
}, AA = { class: "single-value-metric" }, PA = { class: "name-unit-alignment" }, RA = {
|
|
@@ -20532,7 +20532,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20532
20532
|
}
|
|
20533
20533
|
const E = s.decimalPoints && typeof s.decimalPoints == "number" ? s.decimalPoints : Xd;
|
|
20534
20534
|
return w.toLocaleString("en-US", { maximumFractionDigits: E });
|
|
20535
|
-
}), T = L(() => s.showTrend && s.data?.data?.length < 2),
|
|
20535
|
+
}), T = L(() => s.showTrend && s.data?.data?.length < 2), C = L(() => km(g.value ?? 0, p.value ?? 0) || 0), k = L(() => {
|
|
20536
20536
|
if (!s.showTrend)
|
|
20537
20537
|
return 0;
|
|
20538
20538
|
if (s.data?.data?.length < 2) {
|
|
@@ -20541,15 +20541,15 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20541
20541
|
if (l.value === void 0)
|
|
20542
20542
|
return s.increaseIsBad ? 1 : -1;
|
|
20543
20543
|
}
|
|
20544
|
-
return
|
|
20545
|
-
}),
|
|
20544
|
+
return Om(C.value, !0, s.increaseIsBad);
|
|
20545
|
+
}), O = L(() => Cm(k.value, s.increaseIsBad)), A = L(() => {
|
|
20546
20546
|
if (s.showTrend && s.data?.data?.length < 2) {
|
|
20547
20547
|
if (a.value === void 0)
|
|
20548
20548
|
return t.t("singleValue.trend.not_available");
|
|
20549
20549
|
if (l.value === void 0)
|
|
20550
20550
|
return Ec(-1, !0, t.t("singleValue.trend.not_available"));
|
|
20551
20551
|
}
|
|
20552
|
-
return Ec(
|
|
20552
|
+
return Ec(C.value, s.data?.data?.length === 2, t.t("singleValue.trend.not_available"));
|
|
20553
20553
|
}), M = Am(L(() => s.showTrend), void 0, L(() => s.data.meta)), _ = (w) => w > 0 ? "positive" : w < 0 ? "negative" : "neutral", b = (w) => w > 0 ? kT : w < 0 ? DT : Ed;
|
|
20554
20554
|
return Qn(() => {
|
|
20555
20555
|
!s.showTrend && s.data?.data?.length > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", s.data.data.length) : s.showTrend && s.data?.data?.length > 2 && console.warn("SingleValue with trend expects 2 or fewer data points. Instead got:", s.data.data.length);
|
|
@@ -20565,7 +20565,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20565
20565
|
"data-testid": "single-value-error",
|
|
20566
20566
|
"icon-variant": "error",
|
|
20567
20567
|
title: Z(t).t("singleValue.valueError")
|
|
20568
|
-
}, null, 8, ["title"])) : (X(), at("div",
|
|
20568
|
+
}, null, 8, ["title"])) : (X(), at("div", CA, [
|
|
20569
20569
|
lt("div", AA, [
|
|
20570
20570
|
lt("div", PA, [
|
|
20571
20571
|
lt("span", RA, ut(x.value), 1),
|
|
@@ -20578,7 +20578,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20578
20578
|
class: Le(["trend-change", _(k.value)]),
|
|
20579
20579
|
"data-testid": "single-value-trend"
|
|
20580
20580
|
}, [
|
|
20581
|
-
T.value || k.value !== 0 ? (X(), It(ym(
|
|
20581
|
+
T.value || k.value !== 0 ? (X(), It(ym(O.value), {
|
|
20582
20582
|
key: 0,
|
|
20583
20583
|
color: b(k.value),
|
|
20584
20584
|
size: `var(--kui-icon-size-30, ${Z(or)})`
|
|
@@ -20653,7 +20653,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20653
20653
|
const d = Re("KEmptyState");
|
|
20654
20654
|
return X(), at("div", UA, [
|
|
20655
20655
|
l.value ? (X(), at("div", HA, [
|
|
20656
|
-
r.value ? (X(), It(
|
|
20656
|
+
r.value ? (X(), It(OA, {
|
|
20657
20657
|
key: 0,
|
|
20658
20658
|
"chart-data": i.value,
|
|
20659
20659
|
"dataset-colors": e.chartOptions.chartDatasetColors,
|
|
@@ -20724,7 +20724,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20724
20724
|
type: "metric"
|
|
20725
20725
|
});
|
|
20726
20726
|
}), W;
|
|
20727
|
-
}), g = L(() => p.value.filter((W) => W.type === "metric")), y = L(() => p.value.filter((W) => W.type === "dimension").slice(1)), x = (W) => W.type === "dimension" && W.key === c.value, T = (W) => l.value && W.type === "dimension" && !x(W),
|
|
20727
|
+
}), g = L(() => p.value.filter((W) => W.type === "metric")), y = L(() => p.value.filter((W) => W.type === "dimension").slice(1)), x = (W) => W.type === "dimension" && W.key === c.value, T = (W) => l.value && W.type === "dimension" && !x(W), C = (W) => {
|
|
20728
20728
|
const $ = W.event;
|
|
20729
20729
|
return String($[a.value]);
|
|
20730
20730
|
}, k = (W, $) => {
|
|
@@ -20735,11 +20735,11 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20735
20735
|
name: z?.name || "-",
|
|
20736
20736
|
deleted: !!z?.deleted
|
|
20737
20737
|
};
|
|
20738
|
-
},
|
|
20739
|
-
const $ =
|
|
20738
|
+
}, O = (W) => {
|
|
20739
|
+
const $ = C(W), R = u.value && u.value[$];
|
|
20740
20740
|
return R ? R.name : "-";
|
|
20741
20741
|
}, A = (W) => {
|
|
20742
|
-
const $ =
|
|
20742
|
+
const $ = C(W), R = u.value && u.value[$];
|
|
20743
20743
|
return R ? !!R.deleted : !1;
|
|
20744
20744
|
}, M = (W, $) => {
|
|
20745
20745
|
const R = W.event[$];
|
|
@@ -20755,10 +20755,10 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20755
20755
|
translateUnit: (N) => V(N, z)
|
|
20756
20756
|
});
|
|
20757
20757
|
}, _ = (W) => h.value ? M(W, h.value) : "–", b = L(() => s.value?.length ? s.value.map((W) => {
|
|
20758
|
-
const $ = o.value.map((P) => k(W, P)), R = $[0], z = R?.id ||
|
|
20758
|
+
const $ = o.value.map((P) => k(W, P)), R = $[0], z = R?.id || C(W), U = {
|
|
20759
20759
|
id: z,
|
|
20760
20760
|
rowKey: $.map((P) => `${P.dimension}:${P.id}`).join("|") || z,
|
|
20761
|
-
name: R?.name ||
|
|
20761
|
+
name: R?.name || O(W),
|
|
20762
20762
|
deleted: A(W),
|
|
20763
20763
|
dimensions: $,
|
|
20764
20764
|
original: W
|
|
@@ -20800,7 +20800,7 @@ const bA = /* @__PURE__ */ ue({
|
|
|
20800
20800
|
return X(), It(U, {
|
|
20801
20801
|
class: "kong-ui-public-top-n-table",
|
|
20802
20802
|
"title-tag": e.titleTag
|
|
20803
|
-
},
|
|
20803
|
+
}, Ch({
|
|
20804
20804
|
default: Ut(() => [
|
|
20805
20805
|
w.value ? (X(), It(R, {
|
|
20806
20806
|
key: 0,
|
|
@@ -20927,8 +20927,8 @@ Ys.exports;
|
|
|
20927
20927
|
var wh;
|
|
20928
20928
|
function JA() {
|
|
20929
20929
|
return wh || (wh = 1, (function(e, t) {
|
|
20930
|
-
var n = 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]", p = "[object GeneratorFunction]", g = "[object Map]", y = "[object Number]", x = "[object Object]", T = "[object Promise]",
|
|
20931
|
-
G[w] = G[D] = G[E] = G[j] = G[H] = G[V] = G[W] = G[$] = G[R] = !0, G[l] = G[c] = G[_] = G[u] = G[b] = G[d] = G[h] = G[f] = G[g] = G[y] = G[x] = G[
|
|
20930
|
+
var n = 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]", p = "[object GeneratorFunction]", g = "[object Map]", y = "[object Number]", x = "[object Object]", T = "[object Promise]", C = "[object RegExp]", k = "[object Set]", O = "[object String]", A = "[object Symbol]", M = "[object WeakMap]", _ = "[object ArrayBuffer]", b = "[object DataView]", w = "[object Float32Array]", D = "[object Float64Array]", E = "[object Int8Array]", j = "[object Int16Array]", H = "[object Int32Array]", V = "[object Uint8Array]", W = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", R = "[object Uint32Array]", z = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, U = /^\w*$/, P = /^\./, N = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, B = /[\\^$.*+?()[\]{}|]/g, tt = /\\(\\)?/g, Q = /^\[object .+?Constructor\]$/, q = /^(?:0|[1-9]\d*)$/, G = {};
|
|
20931
|
+
G[w] = G[D] = G[E] = G[j] = G[H] = G[V] = G[W] = G[$] = G[R] = !0, G[l] = G[c] = G[_] = G[u] = G[b] = G[d] = G[h] = G[f] = G[g] = G[y] = G[x] = G[C] = G[k] = G[O] = G[M] = !1;
|
|
20932
20932
|
var et = typeof Ke == "object" && Ke && Ke.Object === Object && Ke, it = typeof self == "object" && self && self.Object === Object && self, nt = et || it || Function("return this")(), J = t && !t.nodeType && t, vt = J && !0 && e && !e.nodeType && e, St = vt && vt.exports === J, ct = St && et.process, xt = (function() {
|
|
20933
20933
|
try {
|
|
20934
20934
|
return ct && ct.binding("util");
|
|
@@ -20946,7 +20946,7 @@ function JA() {
|
|
|
20946
20946
|
return S?.[m];
|
|
20947
20947
|
};
|
|
20948
20948
|
}
|
|
20949
|
-
function
|
|
20949
|
+
function Ot(m, S) {
|
|
20950
20950
|
for (var F = -1, K = Array(m); ++F < m; )
|
|
20951
20951
|
K[F] = S(F);
|
|
20952
20952
|
return K;
|
|
@@ -20990,7 +20990,7 @@ function JA() {
|
|
|
20990
20990
|
return m ? "Symbol(src)_1." + m : "";
|
|
20991
20991
|
})(), Qe = ie.toString, $t = fe.hasOwnProperty, ke = fe.toString, ni = RegExp(
|
|
20992
20992
|
"^" + Qe.call($t).replace(B, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
20993
|
-
), xr = nt.Symbol, wr = nt.Uint8Array, hs = fe.propertyIsEnumerable, ii = Yt.splice, fs = Et(Object.keys, Object), si = gn(nt, "DataView"), hn = gn(nt, "Map"), fn = gn(nt, "Promise"), ps = gn(nt, "Set"), ms = gn(nt, "WeakMap"), ri = gn(Object, "create"), qo = bn(si), Go = bn(hn), Sr = bn(fn), Tr = bn(ps), pn = bn(ms),
|
|
20993
|
+
), xr = nt.Symbol, wr = nt.Uint8Array, hs = fe.propertyIsEnumerable, ii = Yt.splice, fs = Et(Object.keys, Object), si = gn(nt, "DataView"), hn = gn(nt, "Map"), fn = gn(nt, "Promise"), ps = gn(nt, "Set"), ms = gn(nt, "WeakMap"), ri = gn(Object, "create"), qo = bn(si), Go = bn(hn), Sr = bn(fn), Tr = bn(ps), pn = bn(ms), Ci = xr ? xr.prototype : void 0, gs = Ci ? Ci.valueOf : void 0, Mr = Ci ? Ci.toString : void 0;
|
|
20994
20994
|
function mn(m) {
|
|
20995
20995
|
var S = -1, F = m ? m.length : 0;
|
|
20996
20996
|
for (this.clear(); ++S < F; ) {
|
|
@@ -21031,7 +21031,7 @@ function JA() {
|
|
|
21031
21031
|
function Jo() {
|
|
21032
21032
|
this.__data__ = [];
|
|
21033
21033
|
}
|
|
21034
|
-
function
|
|
21034
|
+
function Cn(m) {
|
|
21035
21035
|
var S = this.__data__, F = Ri(S, m);
|
|
21036
21036
|
if (F < 0)
|
|
21037
21037
|
return !1;
|
|
@@ -21049,7 +21049,7 @@ function JA() {
|
|
|
21049
21049
|
var F = this.__data__, K = Ri(F, m);
|
|
21050
21050
|
return K < 0 ? F.push([m, S]) : F[K][1] = S, this;
|
|
21051
21051
|
}
|
|
21052
|
-
tn.prototype.clear = Jo, tn.prototype.delete =
|
|
21052
|
+
tn.prototype.clear = Jo, tn.prototype.delete = Cn, tn.prototype.get = ta, tn.prototype.has = ea, tn.prototype.set = na;
|
|
21053
21053
|
function en(m) {
|
|
21054
21054
|
var S = -1, F = m ? m.length : 0;
|
|
21055
21055
|
for (this.clear(); ++S < F; ) {
|
|
@@ -21116,7 +21116,7 @@ function JA() {
|
|
|
21116
21116
|
}
|
|
21117
21117
|
Ye.prototype.clear = Pi, Ye.prototype.delete = ca, Ye.prototype.get = ys, Ye.prototype.has = ua, Ye.prototype.set = da;
|
|
21118
21118
|
function ha(m, S) {
|
|
21119
|
-
var F = v(m) || Rr(m) ?
|
|
21119
|
+
var F = v(m) || Rr(m) ? Ot(m.length, String) : [], K = F.length, gt = !!K;
|
|
21120
21120
|
for (var ot in m)
|
|
21121
21121
|
$t.call(m, ot) && !(gt && (ot == "length" || _s(ot, K))) && F.push(ot);
|
|
21122
21122
|
return F;
|
|
@@ -21144,16 +21144,16 @@ function JA() {
|
|
|
21144
21144
|
return m != null && S in Object(m);
|
|
21145
21145
|
}
|
|
21146
21146
|
function bs(m, S, F, K, gt) {
|
|
21147
|
-
return m === S ? !0 : m == null || S == null || !se(m) && !
|
|
21147
|
+
return m === S ? !0 : m == null || S == null || !se(m) && !Oe(S) ? m !== m && S !== S : ya(m, S, bs, F, K, gt);
|
|
21148
21148
|
}
|
|
21149
21149
|
function ya(m, S, F, K, gt, ot) {
|
|
21150
21150
|
var wt = v(m), re = v(S), jt = c, ge = c;
|
|
21151
21151
|
wt || (jt = me(m), jt = jt == l ? x : jt), re || (ge = me(S), ge = ge == l ? x : ge);
|
|
21152
|
-
var
|
|
21153
|
-
if (we && !
|
|
21154
|
-
return ot || (ot = new Ye()), wt || Er(m) ?
|
|
21152
|
+
var Ce = jt == x && !de(m), Ae = ge == x && !de(S), we = jt == ge;
|
|
21153
|
+
if (we && !Ce)
|
|
21154
|
+
return ot || (ot = new Ye()), wt || Er(m) ? Or(m, S, F, K, gt, ot) : Ta(m, S, jt, F, K, gt, ot);
|
|
21155
21155
|
if (!(gt & o)) {
|
|
21156
|
-
var $e =
|
|
21156
|
+
var $e = Ce && $t.call(m, "__wrapped__"), je = Ae && $t.call(S, "__wrapped__");
|
|
21157
21157
|
if ($e || je) {
|
|
21158
21158
|
var En = $e ? m.value() : m, _n = je ? S.value() : S;
|
|
21159
21159
|
return ot || (ot = new Ye()), F(En, _n, K, gt, ot);
|
|
@@ -21177,27 +21177,27 @@ function JA() {
|
|
|
21177
21177
|
if (jt === void 0 && !(re in m))
|
|
21178
21178
|
return !1;
|
|
21179
21179
|
} else {
|
|
21180
|
-
var
|
|
21181
|
-
if (!(Ae === void 0 ? bs(ge, jt, K, r | o,
|
|
21180
|
+
var Ce = new Ye(), Ae;
|
|
21181
|
+
if (!(Ae === void 0 ? bs(ge, jt, K, r | o, Ce) : Ae))
|
|
21182
21182
|
return !1;
|
|
21183
21183
|
}
|
|
21184
21184
|
}
|
|
21185
21185
|
return !0;
|
|
21186
21186
|
}
|
|
21187
21187
|
function _a(m) {
|
|
21188
|
-
if (!se(m) ||
|
|
21188
|
+
if (!se(m) || Cr(m))
|
|
21189
21189
|
return !1;
|
|
21190
21190
|
var S = st(m) || de(m) ? ni : Q;
|
|
21191
21191
|
return S.test(bn(m));
|
|
21192
21192
|
}
|
|
21193
21193
|
function va(m) {
|
|
21194
|
-
return
|
|
21194
|
+
return Oe(m) && Kt(m.length) && !!G[ke.call(m)];
|
|
21195
21195
|
}
|
|
21196
21196
|
function Dr(m) {
|
|
21197
21197
|
return typeof m == "function" ? m : m == null ? Fi : typeof m == "object" ? v(m) ? Ii(m[0], m[1]) : wa(m) : um(m);
|
|
21198
21198
|
}
|
|
21199
21199
|
function xa(m) {
|
|
21200
|
-
if (!
|
|
21200
|
+
if (!Oa(m))
|
|
21201
21201
|
return fs(m);
|
|
21202
21202
|
var S = [];
|
|
21203
21203
|
for (var F in Object(m))
|
|
@@ -21230,7 +21230,7 @@ function JA() {
|
|
|
21230
21230
|
return S == "0" && 1 / m == -1 / 0 ? "-0" : S;
|
|
21231
21231
|
}
|
|
21232
21232
|
function rn(m) {
|
|
21233
|
-
return v(m) ? m :
|
|
21233
|
+
return v(m) ? m : Ca(m);
|
|
21234
21234
|
}
|
|
21235
21235
|
function Sa(m) {
|
|
21236
21236
|
return function(S, F, K) {
|
|
@@ -21242,18 +21242,18 @@ function JA() {
|
|
|
21242
21242
|
return S;
|
|
21243
21243
|
};
|
|
21244
21244
|
}
|
|
21245
|
-
function
|
|
21245
|
+
function Or(m, S, F, K, gt, ot) {
|
|
21246
21246
|
var wt = gt & o, re = m.length, jt = S.length;
|
|
21247
21247
|
if (re != jt && !(wt && jt > re))
|
|
21248
21248
|
return !1;
|
|
21249
21249
|
var ge = ot.get(m);
|
|
21250
21250
|
if (ge && ot.get(S))
|
|
21251
21251
|
return ge == S;
|
|
21252
|
-
var
|
|
21253
|
-
for (ot.set(m, S), ot.set(S, m); ++
|
|
21254
|
-
var $e = m[
|
|
21252
|
+
var Ce = -1, Ae = !0, we = gt & r ? new Ai() : void 0;
|
|
21253
|
+
for (ot.set(m, S), ot.set(S, m); ++Ce < re; ) {
|
|
21254
|
+
var $e = m[Ce], je = S[Ce];
|
|
21255
21255
|
if (K)
|
|
21256
|
-
var En = wt ? K(je, $e,
|
|
21256
|
+
var En = wt ? K(je, $e, Ce, S, m, ot) : K($e, je, Ce, m, S, ot);
|
|
21257
21257
|
if (En !== void 0) {
|
|
21258
21258
|
if (En)
|
|
21259
21259
|
continue;
|
|
@@ -21289,8 +21289,8 @@ function JA() {
|
|
|
21289
21289
|
return Pr(+m, +S);
|
|
21290
21290
|
case h:
|
|
21291
21291
|
return m.name == S.name && m.message == S.message;
|
|
21292
|
-
case O:
|
|
21293
21292
|
case C:
|
|
21293
|
+
case O:
|
|
21294
21294
|
return m == S + "";
|
|
21295
21295
|
case g:
|
|
21296
21296
|
var re = nn;
|
|
@@ -21302,8 +21302,8 @@ function JA() {
|
|
|
21302
21302
|
if (ge)
|
|
21303
21303
|
return ge == S;
|
|
21304
21304
|
ot |= r, wt.set(m, S);
|
|
21305
|
-
var
|
|
21306
|
-
return wt.delete(m),
|
|
21305
|
+
var Ce = Or(re(m), re(S), K, gt, ot, wt);
|
|
21306
|
+
return wt.delete(m), Ce;
|
|
21307
21307
|
case A:
|
|
21308
21308
|
if (gs)
|
|
21309
21309
|
return gs.call(m) == gs.call(S);
|
|
@@ -21311,8 +21311,8 @@ function JA() {
|
|
|
21311
21311
|
return !1;
|
|
21312
21312
|
}
|
|
21313
21313
|
function Ma(m, S, F, K, gt, ot) {
|
|
21314
|
-
var wt = gt & o, re = ai(m), jt = re.length, ge = ai(S),
|
|
21315
|
-
if (jt !=
|
|
21314
|
+
var wt = gt & o, re = ai(m), jt = re.length, ge = ai(S), Ce = ge.length;
|
|
21315
|
+
if (jt != Ce && !wt)
|
|
21316
21316
|
return !1;
|
|
21317
21317
|
for (var Ae = jt; Ae--; ) {
|
|
21318
21318
|
var we = re[Ae];
|
|
@@ -21400,10 +21400,10 @@ function JA() {
|
|
|
21400
21400
|
var S = typeof m;
|
|
21401
21401
|
return S == "string" || S == "number" || S == "symbol" || S == "boolean" ? m !== "__proto__" : m === null;
|
|
21402
21402
|
}
|
|
21403
|
-
function
|
|
21403
|
+
function Cr(m) {
|
|
21404
21404
|
return !!ei && ei in m;
|
|
21405
21405
|
}
|
|
21406
|
-
function
|
|
21406
|
+
function Oa(m) {
|
|
21407
21407
|
var S = m && m.constructor, F = typeof S == "function" && S.prototype || fe;
|
|
21408
21408
|
return m === F;
|
|
21409
21409
|
}
|
|
@@ -21415,7 +21415,7 @@ function JA() {
|
|
|
21415
21415
|
return F == null ? !1 : F[m] === S && (S !== void 0 || m in Object(F));
|
|
21416
21416
|
};
|
|
21417
21417
|
}
|
|
21418
|
-
var
|
|
21418
|
+
var Ca = oi(function(m) {
|
|
21419
21419
|
m = Rn(m);
|
|
21420
21420
|
var S = [];
|
|
21421
21421
|
return P.test(m) && S.push(""), m.replace(N, function(F, K, gt, ot) {
|
|
@@ -21465,7 +21465,7 @@ function JA() {
|
|
|
21465
21465
|
return m != null && Kt(m.length) && !st(m);
|
|
21466
21466
|
}
|
|
21467
21467
|
function Y(m) {
|
|
21468
|
-
return
|
|
21468
|
+
return Oe(m) && I(m);
|
|
21469
21469
|
}
|
|
21470
21470
|
function st(m) {
|
|
21471
21471
|
var S = se(m) ? ke.call(m) : "";
|
|
@@ -21478,11 +21478,11 @@ function JA() {
|
|
|
21478
21478
|
var S = typeof m;
|
|
21479
21479
|
return !!m && (S == "object" || S == "function");
|
|
21480
21480
|
}
|
|
21481
|
-
function
|
|
21481
|
+
function Oe(m) {
|
|
21482
21482
|
return !!m && typeof m == "object";
|
|
21483
21483
|
}
|
|
21484
21484
|
function ae(m) {
|
|
21485
|
-
return typeof m == "symbol" ||
|
|
21485
|
+
return typeof m == "symbol" || Oe(m) && ke.call(m) == A;
|
|
21486
21486
|
}
|
|
21487
21487
|
var Er = pt ? ne(pt) : va;
|
|
21488
21488
|
function Rn(m) {
|
|
@@ -21552,7 +21552,7 @@ function nP() {
|
|
|
21552
21552
|
}
|
|
21553
21553
|
return N;
|
|
21554
21554
|
}
|
|
21555
|
-
function
|
|
21555
|
+
function C(R, z) {
|
|
21556
21556
|
return R = Object(R), k(R, z, function(U, P) {
|
|
21557
21557
|
return P in R;
|
|
21558
21558
|
});
|
|
@@ -21564,7 +21564,7 @@ function nP() {
|
|
|
21564
21564
|
}
|
|
21565
21565
|
return B;
|
|
21566
21566
|
}
|
|
21567
|
-
function
|
|
21567
|
+
function O(R, z) {
|
|
21568
21568
|
return z = x(z === void 0 ? R.length - 1 : z, 0), function() {
|
|
21569
21569
|
for (var U = arguments, P = -1, N = x(U.length - z, 0), B = Array(N); ++P < N; )
|
|
21570
21570
|
B[P] = U[z + P];
|
|
@@ -21610,8 +21610,8 @@ function nP() {
|
|
|
21610
21610
|
function W(R) {
|
|
21611
21611
|
return typeof R == "symbol" || V(R) && f.call(R) == s;
|
|
21612
21612
|
}
|
|
21613
|
-
var $ =
|
|
21614
|
-
return R == null ? {} :
|
|
21613
|
+
var $ = O(function(R, z) {
|
|
21614
|
+
return R == null ? {} : C(R, c(T(z), M));
|
|
21615
21615
|
});
|
|
21616
21616
|
return pl = $, pl;
|
|
21617
21617
|
}
|
|
@@ -21674,8 +21674,8 @@ function oP() {
|
|
|
21674
21674
|
if ((g || f && p || a) && typeof FileReader < "u") {
|
|
21675
21675
|
var y = new FileReader();
|
|
21676
21676
|
y.onloadend = function() {
|
|
21677
|
-
var
|
|
21678
|
-
|
|
21677
|
+
var C = y.result;
|
|
21678
|
+
C = g ? C : C.replace(/^data:[^;]*;/, "data:attachment/file;"), h ? h.location.href = C : location = C, h = null;
|
|
21679
21679
|
}, y.readAsDataURL(c);
|
|
21680
21680
|
} else {
|
|
21681
21681
|
var x = o.URL || o.webkitURL, T = x.createObjectURL(c);
|
|
@@ -21698,7 +21698,7 @@ function cP() {
|
|
|
21698
21698
|
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 = {};
|
|
21699
21699
|
function u(_) {
|
|
21700
21700
|
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) {
|
|
21701
|
-
var w =
|
|
21701
|
+
var w = O(b);
|
|
21702
21702
|
w.chunkSize = parseInt(w.chunkSize), b.step || b.chunk || (w.chunkSize = null), this._handle = new g(w), (this._handle.streamer = this)._config = w;
|
|
21703
21703
|
}).call(this, _), this.parseChunk = function(b, w) {
|
|
21704
21704
|
var D = parseInt(this._config.skipFirstNLines) || 0;
|
|
@@ -21822,8 +21822,8 @@ function cP() {
|
|
|
21822
21822
|
}
|
|
21823
21823
|
function it(J, vt) {
|
|
21824
21824
|
for (var St = _.header ? {} : [], ct = 0; ct < J.length; ct++) {
|
|
21825
|
-
var xt = ct, pt = J[ct], pt = ((Jt, ft) => ((
|
|
21826
|
-
if (V.test(
|
|
21825
|
+
var xt = ct, pt = J[ct], pt = ((Jt, ft) => ((Ot) => (_.dynamicTypingFunction && _.dynamicTyping[Ot] === void 0 && (_.dynamicTyping[Ot] = _.dynamicTypingFunction(Ot)), (_.dynamicTyping[Ot] || _.dynamicTyping) === !0))(Jt) ? ft === "true" || ft === "TRUE" || ft !== "false" && ft !== "FALSE" && (((Ot) => {
|
|
21826
|
+
if (V.test(Ot) && (Ot = parseFloat(Ot), H < Ot && Ot < j))
|
|
21827
21827
|
return 1;
|
|
21828
21828
|
})(ft) ? parseFloat(ft) : W.test(ft) ? new Date(ft) : ft === "" ? null : ft) : ft)(xt = _.header ? ct >= N.length ? "__parsed_extra" : N[ct] : xt, pt = _.transform ? _.transform(pt, xt) : pt);
|
|
21829
21829
|
xt === "__parsed_extra" ? (St[xt] = St[xt] || [], St[xt].push(pt)) : St[xt] = pt;
|
|
@@ -21843,14 +21843,14 @@ function cP() {
|
|
|
21843
21843
|
B = et, q() ? Q() : (Q(), B.data.length !== 0 && (R += et.data.length, _.preview && R > _.preview ? w.abort() : (B.data = B.data[0], E(B, $))));
|
|
21844
21844
|
}), this.parse = function(et, it, nt) {
|
|
21845
21845
|
var J = _.quoteChar || '"', J = (_.newline || (_.newline = this.guessLineEndings(et, J)), D = !1, _.delimiter ? M(_.delimiter) && (_.delimiter = _.delimiter(et), B.meta.delimiter = _.delimiter) : ((J = ((vt, St, ct, xt, pt) => {
|
|
21846
|
-
var Jt, ft,
|
|
21846
|
+
var Jt, ft, Ot, ne;
|
|
21847
21847
|
pt = pt || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
21848
21848
|
for (var De = 0; De < pt.length; De++) {
|
|
21849
|
-
for (var de, nn = pt[De], Et = 0, he = 0, Yt = 0, ie = (
|
|
21849
|
+
for (var de, nn = pt[De], Et = 0, he = 0, Yt = 0, ie = (Ot = void 0, new x({ comments: xt, delimiter: nn, newline: St, preview: 10 }).parse(vt)), fe = 0; fe < ie.data.length; fe++) ct && tt(ie.data[fe]) ? Yt++ : (de = ie.data[fe].length, he += de, Ot === void 0 ? Ot = de : 0 < de && (Et += Math.abs(de - Ot), Ot = de));
|
|
21850
21850
|
0 < ie.data.length && (he /= ie.data.length - Yt), (ft === void 0 || Et <= ft) && (ne === void 0 || ne < he) && 1.99 < he && (ft = Et, Jt = nn, ne = he);
|
|
21851
21851
|
}
|
|
21852
21852
|
return { successful: !!(_.delimiter = Jt), bestDelimiter: Jt };
|
|
21853
|
-
})(et, _.newline, _.skipEmptyLines, _.comments, _.delimitersToGuess)).successful ? _.delimiter = J.bestDelimiter : (D = !0, _.delimiter = c.DefaultDelimiter), B.meta.delimiter = _.delimiter),
|
|
21853
|
+
})(et, _.newline, _.skipEmptyLines, _.comments, _.delimitersToGuess)).successful ? _.delimiter = J.bestDelimiter : (D = !0, _.delimiter = c.DefaultDelimiter), B.meta.delimiter = _.delimiter), O(_));
|
|
21854
21854
|
return _.preview && _.header && J.preview++, b = et, w = new x(J), B = w.parse(b, it, nt), Q(), U ? { meta: { paused: !0 } } : B || { meta: { paused: !1 } };
|
|
21855
21855
|
}, this.paused = function() {
|
|
21856
21856
|
return U;
|
|
@@ -21908,13 +21908,13 @@ function cP() {
|
|
|
21908
21908
|
if ($ === R && P[ft + 1] === R) ft++;
|
|
21909
21909
|
else if ($ === R || ft === 0 || P[ft - 1] !== R) {
|
|
21910
21910
|
xt !== -1 && xt < ft + 1 && (xt = P.indexOf(b, ft + 1));
|
|
21911
|
-
var
|
|
21912
|
-
if (P.substr(ft + 1 +
|
|
21913
|
-
J.push(P.substring(z, ft).replace(Jt, $)), P[z = ft + 1 +
|
|
21911
|
+
var Ot = De((pt = pt !== -1 && pt < ft + 1 ? P.indexOf(w, ft + 1) : pt) === -1 ? xt : Math.min(xt, pt));
|
|
21912
|
+
if (P.substr(ft + 1 + Ot, Q) === b) {
|
|
21913
|
+
J.push(P.substring(z, ft).replace(Jt, $)), P[z = ft + 1 + Ot + Q] !== $ && (ft = P.indexOf($, z)), xt = P.indexOf(b, z), pt = P.indexOf(w, z);
|
|
21914
21914
|
break;
|
|
21915
21915
|
}
|
|
21916
|
-
if (
|
|
21917
|
-
if (J.push(P.substring(z, ft).replace(Jt, $)), nn(ft + 1 +
|
|
21916
|
+
if (Ot = De(pt), P.substring(ft + 1 + Ot, ft + 1 + Ot + q) === w) {
|
|
21917
|
+
if (J.push(P.substring(z, ft).replace(Jt, $)), nn(ft + 1 + Ot + q), xt = P.indexOf(b, z), ft = P.indexOf($, z), et && (he(), U)) return Et();
|
|
21918
21918
|
if (j && it.length >= j) return Et(!0);
|
|
21919
21919
|
break;
|
|
21920
21920
|
}
|
|
@@ -21975,26 +21975,26 @@ function cP() {
|
|
|
21975
21975
|
if (b.error) w.userError(b.error, b.file);
|
|
21976
21976
|
else if (b.results && b.results.data) {
|
|
21977
21977
|
var E = { abort: function() {
|
|
21978
|
-
D = !0,
|
|
21978
|
+
D = !0, C(b.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
21979
21979
|
}, pause: k, resume: k };
|
|
21980
21980
|
if (M(w.userStep)) {
|
|
21981
21981
|
for (var j = 0; j < b.results.data.length && (w.userStep({ data: b.results.data[j], errors: b.results.errors, meta: b.results.meta }, E), !D); j++) ;
|
|
21982
21982
|
delete b.results;
|
|
21983
21983
|
} else M(w.userChunk) && (w.userChunk(b.results, E, b.file), delete b.results);
|
|
21984
21984
|
}
|
|
21985
|
-
b.finished && !D &&
|
|
21985
|
+
b.finished && !D && C(b.workerId, b.results);
|
|
21986
21986
|
}
|
|
21987
|
-
function
|
|
21987
|
+
function C(_, b) {
|
|
21988
21988
|
var w = a[_];
|
|
21989
21989
|
M(w.userComplete) && w.userComplete(b), w.terminate(), delete a[_];
|
|
21990
21990
|
}
|
|
21991
21991
|
function k() {
|
|
21992
21992
|
throw new Error("Not implemented.");
|
|
21993
21993
|
}
|
|
21994
|
-
function
|
|
21994
|
+
function O(_) {
|
|
21995
21995
|
if (typeof _ != "object" || _ === null) return _;
|
|
21996
21996
|
var b, w = Array.isArray(_) ? [] : {};
|
|
21997
|
-
for (b in _) w[b] =
|
|
21997
|
+
for (b in _) w[b] = O(_[b]);
|
|
21998
21998
|
return w;
|
|
21999
21999
|
}
|
|
22000
22000
|
function A(_, b) {
|
|
@@ -22253,15 +22253,15 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22253
22253
|
}, h = L(() => {
|
|
22254
22254
|
if (i.exportState.status !== "success" || !l.value || !i.exportState.chartData?.meta.metric_names)
|
|
22255
22255
|
return { headers: [], rows: [], csvHeaders: {} };
|
|
22256
|
-
const p = i.exportState.chartData, g = p.data.some((
|
|
22257
|
-
const A = new Date(
|
|
22256
|
+
const p = i.exportState.chartData, g = p.data.some((O) => O.timestamp !== p.data[0].timestamp), y = p.data.map((O) => {
|
|
22257
|
+
const A = new Date(O.timestamp);
|
|
22258
22258
|
return {
|
|
22259
|
-
...Object.keys(
|
|
22259
|
+
...Object.keys(O.event).reduce((_, b) => {
|
|
22260
22260
|
if (b in p.meta.display) {
|
|
22261
|
-
const w =
|
|
22262
|
-
_[b] = w && D && D[w].name ||
|
|
22261
|
+
const w = O.event[b], D = p.meta.display[b];
|
|
22262
|
+
_[b] = w && D && D[w].name || O.event[b];
|
|
22263
22263
|
} else
|
|
22264
|
-
_[b] =
|
|
22264
|
+
_[b] = O.event[b];
|
|
22265
22265
|
return _;
|
|
22266
22266
|
}, {}),
|
|
22267
22267
|
...g ? {
|
|
@@ -22275,23 +22275,23 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22275
22275
|
{ label: n.t("csvExport.Timestamp"), key: "timestamp" },
|
|
22276
22276
|
{ label: n.t("csvExport.UtcOffset"), key: "tzOffset" }
|
|
22277
22277
|
]);
|
|
22278
|
-
const T = "display" in i.exportState.chartData.meta && i.exportState.chartData.meta?.display ? i.exportState.chartData.meta?.display : {},
|
|
22278
|
+
const T = "display" in i.exportState.chartData.meta && i.exportState.chartData.meta?.display ? i.exportState.chartData.meta?.display : {}, C = [
|
|
22279
22279
|
...x,
|
|
22280
22280
|
// `dimensions` are present in v1 and v2 explore meta
|
|
22281
|
-
...Object.keys(T).map((
|
|
22281
|
+
...Object.keys(T).map((O) => ({
|
|
22282
22282
|
// @ts-ignore - dynamic i18n key
|
|
22283
|
-
label: n.t(`chartLabels.${
|
|
22284
|
-
key:
|
|
22283
|
+
label: n.t(`chartLabels.${O}`),
|
|
22284
|
+
key: O
|
|
22285
22285
|
})),
|
|
22286
22286
|
// `metricNames` are common to all explore versions
|
|
22287
|
-
...i.exportState.chartData.meta.metric_names.map((
|
|
22287
|
+
...i.exportState.chartData.meta.metric_names.map((O) => ({
|
|
22288
22288
|
// @ts-ignore - dynamic i18n key
|
|
22289
|
-
label: n.t(`chartLabels.${
|
|
22290
|
-
key:
|
|
22289
|
+
label: n.t(`chartLabels.${O}`),
|
|
22290
|
+
key: O
|
|
22291
22291
|
}))
|
|
22292
|
-
], k =
|
|
22292
|
+
], k = C.reduce((O, A) => (O[A.key] = A.label, O), {});
|
|
22293
22293
|
return {
|
|
22294
|
-
headers:
|
|
22294
|
+
headers: C,
|
|
22295
22295
|
csvHeaders: k,
|
|
22296
22296
|
rows: y
|
|
22297
22297
|
};
|
|
@@ -22307,9 +22307,9 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22307
22307
|
return oe(h, () => {
|
|
22308
22308
|
o.value++;
|
|
22309
22309
|
}), (p, g) => {
|
|
22310
|
-
const y = Re("KSkeleton"), x = Re("KEmptyState"), T = Re("KTableData"),
|
|
22310
|
+
const y = Re("KSkeleton"), x = Re("KEmptyState"), T = Re("KTableData"), C = Re("KTooltip"), k = Re("KButton"), O = Re("KModal");
|
|
22311
22311
|
return X(), at("div", pP, [
|
|
22312
|
-
Xt(
|
|
22312
|
+
Xt(O, {
|
|
22313
22313
|
class: "vitals-report",
|
|
22314
22314
|
"data-testid": "csv-export-modal",
|
|
22315
22315
|
"show-dismiss-icon": "",
|
|
@@ -22361,7 +22361,7 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22361
22361
|
})) : Nt("", !0),
|
|
22362
22362
|
e.exportState.status === "success" && l.value ? (X(), at("div", gP, [
|
|
22363
22363
|
Ee(ut(u.value) + " ", 1),
|
|
22364
|
-
Xt(
|
|
22364
|
+
Xt(C, {
|
|
22365
22365
|
class: "preview-tooltip",
|
|
22366
22366
|
placement: "right",
|
|
22367
22367
|
text: Z(n).t("csvExport.maximumRecordAmount", { value: Z(Jw) })
|
|
@@ -22495,7 +22495,7 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22495
22495
|
]).sort(([M], [_]) => _ - M).map(([, M]) => M).join(", ")), g = L(() => Object.keys(f.value).map((M) => f.value[M]).reduce((M, _) => M + _, 0)), y = L(() => g.value > 0), x = L(() => ({
|
|
22496
22496
|
labels: new Array(l.value).fill(""),
|
|
22497
22497
|
datasets: c.value
|
|
22498
|
-
})), T = L(() => e.datasets.length > 1),
|
|
22498
|
+
})), T = L(() => e.datasets.length > 1), C = `SparklineTooltipPosition-${t}`, k = L(() => {
|
|
22499
22499
|
const M = e.type === "sparkline_bar", _ = M ? s.value - 1 : s.value, b = M ? r.value : r.value - i.value;
|
|
22500
22500
|
return {
|
|
22501
22501
|
maintainAspectRatio: !1,
|
|
@@ -22530,7 +22530,7 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22530
22530
|
},
|
|
22531
22531
|
tooltip: {
|
|
22532
22532
|
enabled: !1,
|
|
22533
|
-
position:
|
|
22533
|
+
position: C,
|
|
22534
22534
|
external: (w) => {
|
|
22535
22535
|
yp(u, w, "minutely", {
|
|
22536
22536
|
contextFormatter: (D) => {
|
|
@@ -22565,13 +22565,13 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22565
22565
|
}
|
|
22566
22566
|
}
|
|
22567
22567
|
};
|
|
22568
|
-
}),
|
|
22568
|
+
}), O = Vt("0"), A = Vt("0");
|
|
22569
22569
|
return Qn(() => {
|
|
22570
|
-
He.positioners[
|
|
22570
|
+
He.positioners[C] = function(M, _) {
|
|
22571
22571
|
if (!M.length || u.interactionMode === "interactive" || _.x === null)
|
|
22572
22572
|
return !1;
|
|
22573
22573
|
const b = 10, w = this.chart.canvas.getBoundingClientRect(), D = u.width || this.width, E = u.height || this.height, j = w.top - E > 0, H = j ? w.top - E - b : w.top + w.height + b, V = w.left > D / 2 - _.x, W = Math.max(b, window.innerWidth - b - D), $ = Math.min(W, V ? Math.floor(w.left - D / 2) + _.x : 0 + b);
|
|
22574
|
-
return
|
|
22574
|
+
return O.value = `${H}px`, A.value = `${$}px`, {
|
|
22575
22575
|
x: $,
|
|
22576
22576
|
y: H,
|
|
22577
22577
|
xAlign: "center",
|
|
@@ -22579,7 +22579,7 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22579
22579
|
};
|
|
22580
22580
|
};
|
|
22581
22581
|
}), Zn(() => {
|
|
22582
|
-
He.positioners[
|
|
22582
|
+
He.positioners[C] && delete He.positioners[C];
|
|
22583
22583
|
}), (M, _) => (X(), at("div", yP, [
|
|
22584
22584
|
y.value ? e.type === "sparkline_bar" ? (X(), It(Z(rm), {
|
|
22585
22585
|
key: 1,
|
|
@@ -22603,7 +22603,7 @@ const dP = ["id"], hP = /* @__PURE__ */ ue({
|
|
|
22603
22603
|
e.disableTooltip ? Nt("", !0) : (X(), It(Vo, {
|
|
22604
22604
|
key: 3,
|
|
22605
22605
|
"absolute-left": A.value,
|
|
22606
|
-
"absolute-top":
|
|
22606
|
+
"absolute-top": O.value,
|
|
22607
22607
|
class: "tooltip",
|
|
22608
22608
|
"data-testid": "sparkline-tooltip",
|
|
22609
22609
|
state: u,
|
|
@@ -22638,10 +22638,10 @@ export {
|
|
|
22638
22638
|
IP as TopNTable,
|
|
22639
22639
|
qi as ValidType,
|
|
22640
22640
|
AP as chartTypes,
|
|
22641
|
-
|
|
22641
|
+
OP as handleQueryError,
|
|
22642
22642
|
$D as isCancellationError,
|
|
22643
22643
|
uD as lookupStatusCodeColor,
|
|
22644
|
-
|
|
22644
|
+
CP as simpleChartMetricDisplay,
|
|
22645
22645
|
PP as simpleChartTypes,
|
|
22646
22646
|
kP as statusCodeBadgeBackgroundColor
|
|
22647
22647
|
};
|