@kong-ui-public/analytics-utilities 12.1.3-pr.2606.eb096907d.0 → 12.1.4-pr.2603.ce4ebb0cd.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/types/queryTime.d.ts +9 -7
- package/dist/types/queryTime.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +430 -436
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/queryTime.spec.tz.d.ts +0 -2
- package/dist/types/queryTime.spec.tz.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Jr = Object.defineProperty;
|
|
2
2
|
var ea = (e, t, n) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var M = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
const Ro = 3e4, Co = 1e3, Yo = "analytics-query-provider";
|
|
5
|
-
var
|
|
6
|
-
const
|
|
5
|
+
var g = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(g || {});
|
|
6
|
+
const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
9
9
|
"timeseries_line",
|
|
@@ -11,7 +11,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
], ta = ["in", "not_in", "selector"],
|
|
14
|
+
], ta = ["in", "not_in", "selector"], Go = ["=", "!="], Fo = ["=", "!=", "<", ">", "<=", ">="], na = ["empty", "not_empty"], Ho = ["starts_with", "ends_with"], Lo = ["absolute", "relative"], on = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -50,12 +50,12 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
50
50
|
"status_code",
|
|
51
51
|
"status_code_grouped",
|
|
52
52
|
"time"
|
|
53
|
-
], Me = oe(Ze),
|
|
53
|
+
], Me = oe(Ze), cn = [
|
|
54
54
|
"active_services",
|
|
55
55
|
"request_count",
|
|
56
56
|
"request_per_minute",
|
|
57
57
|
"response_latency_average"
|
|
58
|
-
],
|
|
58
|
+
], un = [
|
|
59
59
|
...Ze,
|
|
60
60
|
"application",
|
|
61
61
|
"consumer",
|
|
@@ -65,8 +65,8 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
65
65
|
"response_source",
|
|
66
66
|
"data_plane_node_version",
|
|
67
67
|
"realm"
|
|
68
|
-
], Se = oe(
|
|
69
|
-
...
|
|
68
|
+
], Se = oe(un), ra = [
|
|
69
|
+
...cn,
|
|
70
70
|
"response_latency_p99",
|
|
71
71
|
"response_latency_p95",
|
|
72
72
|
"response_latency_p50",
|
|
@@ -166,7 +166,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
166
166
|
"service_protocol",
|
|
167
167
|
"trace_id",
|
|
168
168
|
"upstream_uri"
|
|
169
|
-
], Uo = sa,
|
|
169
|
+
], Uo = sa, ca = [
|
|
170
170
|
"ai_count",
|
|
171
171
|
"latencies_response_ms",
|
|
172
172
|
"latencies_upstream_ms",
|
|
@@ -176,7 +176,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
176
176
|
"response_header_content_length",
|
|
177
177
|
"status_code",
|
|
178
178
|
"upstream_status_code"
|
|
179
|
-
],
|
|
179
|
+
], ua = oe(ca), Wo = [
|
|
180
180
|
"15M",
|
|
181
181
|
"1H",
|
|
182
182
|
"6H",
|
|
@@ -807,7 +807,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
807
807
|
]
|
|
808
808
|
},
|
|
809
809
|
metrics: Qe(ra),
|
|
810
|
-
dimensions: Ke(
|
|
810
|
+
dimensions: Ke(un),
|
|
811
811
|
filters: Ee(Se),
|
|
812
812
|
...Xe
|
|
813
813
|
},
|
|
@@ -823,7 +823,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
823
823
|
"basic"
|
|
824
824
|
]
|
|
825
825
|
},
|
|
826
|
-
metrics: Qe(
|
|
826
|
+
metrics: Qe(cn),
|
|
827
827
|
dimensions: Ke(Ze),
|
|
828
828
|
filters: Ee(Me),
|
|
829
829
|
...Xe
|
|
@@ -849,7 +849,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
849
849
|
additionalProperties: !1
|
|
850
850
|
}, Ea = {
|
|
851
851
|
anyOf: [Ma, Sa, Oa]
|
|
852
|
-
},
|
|
852
|
+
}, Na = {
|
|
853
853
|
type: "object",
|
|
854
854
|
properties: {
|
|
855
855
|
query: Ea,
|
|
@@ -869,7 +869,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
869
869
|
},
|
|
870
870
|
required: ["query", "chart"],
|
|
871
871
|
additionalProperties: !1
|
|
872
|
-
},
|
|
872
|
+
}, va = {
|
|
873
873
|
type: "object",
|
|
874
874
|
properties: {
|
|
875
875
|
position: {
|
|
@@ -913,8 +913,8 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
913
913
|
type: "string",
|
|
914
914
|
enum: ["chart"]
|
|
915
915
|
},
|
|
916
|
-
definition:
|
|
917
|
-
layout:
|
|
916
|
+
definition: Na,
|
|
917
|
+
layout: va,
|
|
918
918
|
id: {
|
|
919
919
|
type: "string",
|
|
920
920
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -943,7 +943,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
|
|
|
943
943
|
additionalProperties: !1
|
|
944
944
|
}, $o = (e) => {
|
|
945
945
|
const t = [];
|
|
946
|
-
return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (oa.includes(e) ||
|
|
946
|
+
return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (oa.includes(e) || ua.includes(e)) && t.push("requests"), t;
|
|
947
947
|
}, xa = {
|
|
948
948
|
lessThanXSeconds: {
|
|
949
949
|
one: "less than a second",
|
|
@@ -1032,7 +1032,7 @@ const Ra = {
|
|
|
1032
1032
|
long: "{{date}} 'at' {{time}}",
|
|
1033
1033
|
medium: "{{date}}, {{time}}",
|
|
1034
1034
|
short: "{{date}}, {{time}}"
|
|
1035
|
-
},
|
|
1035
|
+
}, ka = {
|
|
1036
1036
|
date: He({
|
|
1037
1037
|
formats: Ra,
|
|
1038
1038
|
defaultWidth: "full"
|
|
@@ -1045,24 +1045,24 @@ const Ra = {
|
|
|
1045
1045
|
formats: Ya,
|
|
1046
1046
|
defaultWidth: "full"
|
|
1047
1047
|
})
|
|
1048
|
-
},
|
|
1048
|
+
}, Aa = {
|
|
1049
1049
|
lastWeek: "'last' eeee 'at' p",
|
|
1050
1050
|
yesterday: "'yesterday at' p",
|
|
1051
1051
|
today: "'today at' p",
|
|
1052
1052
|
tomorrow: "'tomorrow at' p",
|
|
1053
1053
|
nextWeek: "eeee 'at' p",
|
|
1054
1054
|
other: "P"
|
|
1055
|
-
},
|
|
1055
|
+
}, Ga = (e, t, n, r) => Aa[e];
|
|
1056
1056
|
function re(e) {
|
|
1057
1057
|
return (t, n) => {
|
|
1058
1058
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
1059
1059
|
let i;
|
|
1060
1060
|
if (r === "formatting" && e.formattingValues) {
|
|
1061
|
-
const
|
|
1062
|
-
i = e.formattingValues[m] || e.formattingValues[
|
|
1061
|
+
const u = e.defaultFormattingWidth || e.defaultWidth, m = n != null && n.width ? String(n.width) : u;
|
|
1062
|
+
i = e.formattingValues[m] || e.formattingValues[u];
|
|
1063
1063
|
} else {
|
|
1064
|
-
const
|
|
1065
|
-
i = e.values[m] || e.values[
|
|
1064
|
+
const u = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
1065
|
+
i = e.values[m] || e.values[u];
|
|
1066
1066
|
}
|
|
1067
1067
|
const o = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1068
1068
|
return i[o];
|
|
@@ -1224,16 +1224,16 @@ function ae(e) {
|
|
|
1224
1224
|
const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
1225
1225
|
if (!o)
|
|
1226
1226
|
return null;
|
|
1227
|
-
const
|
|
1227
|
+
const u = o[0], m = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(m) ? $a(m, (d) => d.test(u)) : (
|
|
1228
1228
|
// [TODO] -- I challenge you to fix the type
|
|
1229
|
-
Va(m, (d) => d.test(
|
|
1229
|
+
Va(m, (d) => d.test(u))
|
|
1230
1230
|
);
|
|
1231
1231
|
let l;
|
|
1232
|
-
l = e.valueCallback ? e.valueCallback(
|
|
1232
|
+
l = e.valueCallback ? e.valueCallback(p) : p, l = n.valueCallback ? (
|
|
1233
1233
|
// [TODO] -- I challenge you to fix the type
|
|
1234
1234
|
n.valueCallback(l)
|
|
1235
1235
|
) : l;
|
|
1236
|
-
const f = t.slice(
|
|
1236
|
+
const f = t.slice(u.length);
|
|
1237
1237
|
return { value: l, rest: f };
|
|
1238
1238
|
};
|
|
1239
1239
|
}
|
|
@@ -1253,10 +1253,10 @@ function Ba(e) {
|
|
|
1253
1253
|
if (!r) return null;
|
|
1254
1254
|
const i = r[0], o = t.match(e.parsePattern);
|
|
1255
1255
|
if (!o) return null;
|
|
1256
|
-
let
|
|
1257
|
-
|
|
1256
|
+
let u = e.valueCallback ? e.valueCallback(o[0]) : o[0];
|
|
1257
|
+
u = n.valueCallback ? n.valueCallback(u) : u;
|
|
1258
1258
|
const m = t.slice(i.length);
|
|
1259
|
-
return { value:
|
|
1259
|
+
return { value: u, rest: m };
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
1262
|
const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
|
|
@@ -1363,11 +1363,11 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
|
|
|
1363
1363
|
parsePatterns: oi,
|
|
1364
1364
|
defaultParseWidth: "any"
|
|
1365
1365
|
})
|
|
1366
|
-
},
|
|
1366
|
+
}, ci = {
|
|
1367
1367
|
code: "en-US",
|
|
1368
1368
|
formatDistance: Pa,
|
|
1369
|
-
formatLong:
|
|
1370
|
-
formatRelative:
|
|
1369
|
+
formatLong: ka,
|
|
1370
|
+
formatRelative: Ga,
|
|
1371
1371
|
localize: za,
|
|
1372
1372
|
match: si,
|
|
1373
1373
|
options: {
|
|
@@ -1375,18 +1375,18 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
|
|
|
1375
1375
|
firstWeekContainsDate: 1
|
|
1376
1376
|
}
|
|
1377
1377
|
};
|
|
1378
|
-
let
|
|
1379
|
-
function
|
|
1380
|
-
return
|
|
1378
|
+
let ui = {};
|
|
1379
|
+
function ce() {
|
|
1380
|
+
return ui;
|
|
1381
1381
|
}
|
|
1382
|
-
const hn = 6048e5, li = 864e5, di = 60, mi = 3600,
|
|
1382
|
+
const hn = 6048e5, li = 864e5, di = 60, mi = 3600, At = Symbol.for("constructDateFrom");
|
|
1383
1383
|
function R(e, t) {
|
|
1384
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
1384
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && At in e ? e[At](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1385
1385
|
}
|
|
1386
1386
|
function O(e, t) {
|
|
1387
1387
|
return R(t || e, e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Gt(e) {
|
|
1390
1390
|
const t = O(e), n = new Date(
|
|
1391
1391
|
Date.UTC(
|
|
1392
1392
|
t.getFullYear(),
|
|
@@ -1416,8 +1416,8 @@ function hi(e, t, n) {
|
|
|
1416
1416
|
n == null ? void 0 : n.in,
|
|
1417
1417
|
e,
|
|
1418
1418
|
t
|
|
1419
|
-
), o = ie(r),
|
|
1420
|
-
return Math.round((m -
|
|
1419
|
+
), o = ie(r), u = ie(i), m = +o - Gt(o), p = +u - Gt(u);
|
|
1420
|
+
return Math.round((m - p) / li);
|
|
1421
1421
|
}
|
|
1422
1422
|
function yi(e, t) {
|
|
1423
1423
|
const n = O(e, t == null ? void 0 : t.in);
|
|
@@ -1427,20 +1427,20 @@ function gi(e, t) {
|
|
|
1427
1427
|
const n = O(e, t == null ? void 0 : t.in);
|
|
1428
1428
|
return hi(n, yi(n)) + 1;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var m,
|
|
1432
|
-
const n =
|
|
1433
|
-
return i.setDate(i.getDate() -
|
|
1430
|
+
function G(e, t) {
|
|
1431
|
+
var m, p, l, f;
|
|
1432
|
+
const n = ce(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((p = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : p.weekStartsOn) ?? n.weekStartsOn ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = O(e, t == null ? void 0 : t.in), o = i.getDay(), u = (o < r ? 7 : 0) + o - r;
|
|
1433
|
+
return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
|
|
1434
1434
|
}
|
|
1435
1435
|
function _e(e, t) {
|
|
1436
|
-
return
|
|
1436
|
+
return G(e, { ...t, weekStartsOn: 1 });
|
|
1437
1437
|
}
|
|
1438
1438
|
function yn(e, t) {
|
|
1439
1439
|
const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = R(n, 0);
|
|
1440
1440
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
1441
|
-
const o = _e(i),
|
|
1442
|
-
|
|
1443
|
-
const m = _e(
|
|
1441
|
+
const o = _e(i), u = R(n, 0);
|
|
1442
|
+
u.setFullYear(r, 0, 4), u.setHours(0, 0, 0, 0);
|
|
1443
|
+
const m = _e(u);
|
|
1444
1444
|
return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= m.getTime() ? r : r - 1;
|
|
1445
1445
|
}
|
|
1446
1446
|
function pi(e, t) {
|
|
@@ -1453,20 +1453,20 @@ function _i(e, t) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
function gn(e, t) {
|
|
1455
1455
|
var f, d, h, b;
|
|
1456
|
-
const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i =
|
|
1457
|
-
|
|
1458
|
-
const m =
|
|
1459
|
-
|
|
1460
|
-
const l =
|
|
1456
|
+
const n = O(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ce(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((b = (h = i.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, u = R((t == null ? void 0 : t.in) || e, 0);
|
|
1457
|
+
u.setFullYear(r + 1, 0, o), u.setHours(0, 0, 0, 0);
|
|
1458
|
+
const m = G(u, t), p = R((t == null ? void 0 : t.in) || e, 0);
|
|
1459
|
+
p.setFullYear(r, 0, o), p.setHours(0, 0, 0, 0);
|
|
1460
|
+
const l = G(p, t);
|
|
1461
1461
|
return +n >= +m ? r + 1 : +n >= +l ? r : r - 1;
|
|
1462
1462
|
}
|
|
1463
1463
|
function wi(e, t) {
|
|
1464
|
-
var m,
|
|
1465
|
-
const n =
|
|
1466
|
-
return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0),
|
|
1464
|
+
var m, p, l, f;
|
|
1465
|
+
const n = ce(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((p = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : p.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = gn(e, t), o = R((t == null ? void 0 : t.in) || e, 0);
|
|
1466
|
+
return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), G(o, t);
|
|
1467
1467
|
}
|
|
1468
1468
|
function bi(e, t) {
|
|
1469
|
-
const n = O(e, t == null ? void 0 : t.in), r = +
|
|
1469
|
+
const n = O(e, t == null ? void 0 : t.in), r = +G(n, t) - +wi(n, t);
|
|
1470
1470
|
return Math.round(r / hn) + 1;
|
|
1471
1471
|
}
|
|
1472
1472
|
function _(e, t) {
|
|
@@ -1562,8 +1562,8 @@ const L = {
|
|
|
1562
1562
|
Y: function(e, t, n, r) {
|
|
1563
1563
|
const i = gn(e, r), o = i > 0 ? i : 1 - i;
|
|
1564
1564
|
if (t === "YY") {
|
|
1565
|
-
const
|
|
1566
|
-
return _(
|
|
1565
|
+
const u = o % 100;
|
|
1566
|
+
return _(u, 2);
|
|
1567
1567
|
}
|
|
1568
1568
|
return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : _(o, t.length);
|
|
1569
1569
|
},
|
|
@@ -2084,10 +2084,10 @@ const Ut = (e, t) => {
|
|
|
2084
2084
|
function Ei(e) {
|
|
2085
2085
|
return Mi.test(e);
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Ni(e) {
|
|
2088
2088
|
return Si.test(e);
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function vi(e, t, n) {
|
|
2091
2091
|
const r = Ii(e, t, n);
|
|
2092
2092
|
if (console.warn(r), Oi.includes(e)) throw new RangeError(r);
|
|
2093
2093
|
}
|
|
@@ -2101,50 +2101,50 @@ function xi(e) {
|
|
|
2101
2101
|
function Pi(e) {
|
|
2102
2102
|
return !(!xi(e) && typeof e != "number" || isNaN(+O(e)));
|
|
2103
2103
|
}
|
|
2104
|
-
const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/,
|
|
2105
|
-
function
|
|
2106
|
-
var f, d, h, b, E,
|
|
2107
|
-
const r =
|
|
2104
|
+
const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, ki = /''/g, Ai = /[a-zA-Z]/;
|
|
2105
|
+
function Gi(e, t, n) {
|
|
2106
|
+
var f, d, h, b, E, v, C, W;
|
|
2107
|
+
const r = ce(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? ci, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, u = (n == null ? void 0 : n.weekStartsOn) ?? ((v = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : v.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, m = O(e, n == null ? void 0 : n.in);
|
|
2108
2108
|
if (!Pi(m))
|
|
2109
2109
|
throw new RangeError("Invalid time value");
|
|
2110
|
-
let
|
|
2111
|
-
const
|
|
2112
|
-
if (
|
|
2113
|
-
const q = Di[
|
|
2114
|
-
return q(
|
|
2110
|
+
let p = t.match(Ci).map((N) => {
|
|
2111
|
+
const T = N[0];
|
|
2112
|
+
if (T === "p" || T === "P") {
|
|
2113
|
+
const q = Di[T];
|
|
2114
|
+
return q(N, i.formatLong);
|
|
2115
2115
|
}
|
|
2116
|
-
return
|
|
2117
|
-
}).join("").match(Ri).map((
|
|
2118
|
-
if (
|
|
2116
|
+
return N;
|
|
2117
|
+
}).join("").match(Ri).map((N) => {
|
|
2118
|
+
if (N === "''")
|
|
2119
2119
|
return { isToken: !1, value: "'" };
|
|
2120
|
-
const
|
|
2121
|
-
if (
|
|
2122
|
-
return { isToken: !1, value: Fi(
|
|
2123
|
-
if (Ft[
|
|
2124
|
-
return { isToken: !0, value:
|
|
2125
|
-
if (
|
|
2120
|
+
const T = N[0];
|
|
2121
|
+
if (T === "'")
|
|
2122
|
+
return { isToken: !1, value: Fi(N) };
|
|
2123
|
+
if (Ft[T])
|
|
2124
|
+
return { isToken: !0, value: N };
|
|
2125
|
+
if (T.match(Ai))
|
|
2126
2126
|
throw new RangeError(
|
|
2127
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
2127
|
+
"Format string contains an unescaped latin alphabet character `" + T + "`"
|
|
2128
2128
|
);
|
|
2129
|
-
return { isToken: !1, value:
|
|
2129
|
+
return { isToken: !1, value: N };
|
|
2130
2130
|
});
|
|
2131
|
-
i.localize.preprocessor && (
|
|
2131
|
+
i.localize.preprocessor && (p = i.localize.preprocessor(m, p));
|
|
2132
2132
|
const l = {
|
|
2133
2133
|
firstWeekContainsDate: o,
|
|
2134
|
-
weekStartsOn:
|
|
2134
|
+
weekStartsOn: u,
|
|
2135
2135
|
locale: i
|
|
2136
2136
|
};
|
|
2137
|
-
return
|
|
2138
|
-
if (!
|
|
2139
|
-
const
|
|
2140
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
2141
|
-
const q = Ft[
|
|
2142
|
-
return q(m,
|
|
2137
|
+
return p.map((N) => {
|
|
2138
|
+
if (!N.isToken) return N.value;
|
|
2139
|
+
const T = N.value;
|
|
2140
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Ni(T) || !(n != null && n.useAdditionalDayOfYearTokens) && Ei(T)) && vi(T, t, String(e));
|
|
2141
|
+
const q = Ft[T[0]];
|
|
2142
|
+
return q(m, T, i.localize, l);
|
|
2143
2143
|
}).join("");
|
|
2144
2144
|
}
|
|
2145
2145
|
function Fi(e) {
|
|
2146
2146
|
const t = e.match(Yi);
|
|
2147
|
-
return t ? t[1].replace(
|
|
2147
|
+
return t ? t[1].replace(ki, "'") : e;
|
|
2148
2148
|
}
|
|
2149
2149
|
function Le(e, t, n) {
|
|
2150
2150
|
const r = O(e, n == null ? void 0 : n.in);
|
|
@@ -2155,8 +2155,8 @@ function Hi(e, t, n) {
|
|
|
2155
2155
|
if (isNaN(t)) return R(e, NaN);
|
|
2156
2156
|
const i = r.getDate(), o = R(e, r.getTime());
|
|
2157
2157
|
o.setMonth(r.getMonth() + t + 1, 0);
|
|
2158
|
-
const
|
|
2159
|
-
return i >=
|
|
2158
|
+
const u = o.getDate();
|
|
2159
|
+
return i >= u ? o : (r.setFullYear(
|
|
2160
2160
|
o.getFullYear(),
|
|
2161
2161
|
o.getMonth(),
|
|
2162
2162
|
i
|
|
@@ -2171,7 +2171,7 @@ function Li(e, t) {
|
|
|
2171
2171
|
return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2172
2172
|
}
|
|
2173
2173
|
function Ui() {
|
|
2174
|
-
return Object.assign({},
|
|
2174
|
+
return Object.assign({}, ce());
|
|
2175
2175
|
}
|
|
2176
2176
|
function Wt(e) {
|
|
2177
2177
|
return +O(e);
|
|
@@ -2277,16 +2277,16 @@ function Qi(e) {
|
|
|
2277
2277
|
second: "2-digit"
|
|
2278
2278
|
})), Ue[e];
|
|
2279
2279
|
}
|
|
2280
|
-
function Je(e, t, n, r, i, o,
|
|
2280
|
+
function Je(e, t, n, r, i, o, u) {
|
|
2281
2281
|
const m = /* @__PURE__ */ new Date(0);
|
|
2282
|
-
return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o,
|
|
2282
|
+
return m.setUTCFullYear(e, t, n), m.setUTCHours(r, i, o, u), m;
|
|
2283
2283
|
}
|
|
2284
2284
|
const $t = 36e5, Ki = 6e4, We = {
|
|
2285
2285
|
timezoneZ: /^(Z)$/,
|
|
2286
2286
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2287
2287
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
2288
2288
|
};
|
|
2289
|
-
function
|
|
2289
|
+
function ue(e, t, n) {
|
|
2290
2290
|
if (!e)
|
|
2291
2291
|
return 0;
|
|
2292
2292
|
let r = We.timezoneZ.exec(e);
|
|
@@ -2297,12 +2297,12 @@ function ce(e, t, n) {
|
|
|
2297
2297
|
return i = parseInt(r[1], 10), Bt(i) ? -(i * $t) : NaN;
|
|
2298
2298
|
if (r = We.timezoneHHMM.exec(e), r) {
|
|
2299
2299
|
i = parseInt(r[2], 10);
|
|
2300
|
-
const
|
|
2301
|
-
return Bt(i,
|
|
2300
|
+
const u = parseInt(r[3], 10);
|
|
2301
|
+
return Bt(i, u) ? (o = Math.abs(i) * $t + u * Ki, r[1] === "+" ? -o : o) : NaN;
|
|
2302
2302
|
}
|
|
2303
2303
|
if (to(e)) {
|
|
2304
2304
|
t = new Date(t || Date.now());
|
|
2305
|
-
const
|
|
2305
|
+
const u = n ? t : Ji(t), m = Be(u, e);
|
|
2306
2306
|
return -(n ? m : eo(t, m, e));
|
|
2307
2307
|
}
|
|
2308
2308
|
return NaN;
|
|
@@ -2322,8 +2322,8 @@ function eo(e, t, n) {
|
|
|
2322
2322
|
if (t === o)
|
|
2323
2323
|
return t;
|
|
2324
2324
|
i -= o - t;
|
|
2325
|
-
const
|
|
2326
|
-
return o ===
|
|
2325
|
+
const u = Be(new Date(i), n);
|
|
2326
|
+
return o === u ? o : Math.max(o, u);
|
|
2327
2327
|
}
|
|
2328
2328
|
function Bt(e, t) {
|
|
2329
2329
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
@@ -2398,7 +2398,7 @@ const no = 60 * 1e3, ro = {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
};
|
|
2400
2400
|
function qe(e, t) {
|
|
2401
|
-
const n = e ?
|
|
2401
|
+
const n = e ? ue(e, t, !0) / no : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2402
2402
|
if (Number.isNaN(n))
|
|
2403
2403
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2404
2404
|
return n;
|
|
@@ -2473,20 +2473,20 @@ function be(e, t = {}) {
|
|
|
2473
2473
|
return new Date(e);
|
|
2474
2474
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2475
2475
|
return /* @__PURE__ */ new Date(NaN);
|
|
2476
|
-
const r = oo(e), { year: i, restDateString: o } = so(r.date, n),
|
|
2477
|
-
if (
|
|
2476
|
+
const r = oo(e), { year: i, restDateString: o } = so(r.date, n), u = co(o, i);
|
|
2477
|
+
if (u === null || isNaN(u.getTime()))
|
|
2478
2478
|
return /* @__PURE__ */ new Date(NaN);
|
|
2479
|
-
if (
|
|
2480
|
-
const m =
|
|
2481
|
-
let
|
|
2482
|
-
if (r.time && (
|
|
2479
|
+
if (u) {
|
|
2480
|
+
const m = u.getTime();
|
|
2481
|
+
let p = 0, l;
|
|
2482
|
+
if (r.time && (p = uo(r.time), p === null || isNaN(p)))
|
|
2483
2483
|
return /* @__PURE__ */ new Date(NaN);
|
|
2484
2484
|
if (r.timeZone || t.timeZone) {
|
|
2485
|
-
if (l =
|
|
2485
|
+
if (l = ue(r.timeZone || t.timeZone, new Date(m + p)), isNaN(l))
|
|
2486
2486
|
return /* @__PURE__ */ new Date(NaN);
|
|
2487
2487
|
} else
|
|
2488
|
-
l = Qt(new Date(m +
|
|
2489
|
-
return new Date(m +
|
|
2488
|
+
l = Qt(new Date(m + p)), l = Qt(new Date(m + p + l));
|
|
2489
|
+
return new Date(m + p + l);
|
|
2490
2490
|
} else
|
|
2491
2491
|
return /* @__PURE__ */ new Date(NaN);
|
|
2492
2492
|
}
|
|
@@ -2522,7 +2522,7 @@ function so(e, t) {
|
|
|
2522
2522
|
year: null
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function co(e, t) {
|
|
2526
2526
|
if (t === null)
|
|
2527
2527
|
return null;
|
|
2528
2528
|
let n, r, i;
|
|
@@ -2533,24 +2533,24 @@ function uo(e, t) {
|
|
|
2533
2533
|
return n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1, en(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
2534
2534
|
if (o = I.DDD.exec(e), o) {
|
|
2535
2535
|
n = /* @__PURE__ */ new Date(0);
|
|
2536
|
-
const
|
|
2537
|
-
return fo(t,
|
|
2536
|
+
const u = parseInt(o[1], 10);
|
|
2537
|
+
return fo(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
2538
2538
|
}
|
|
2539
2539
|
if (o = I.MMDD.exec(e), o) {
|
|
2540
2540
|
n = /* @__PURE__ */ new Date(0), r = parseInt(o[1], 10) - 1;
|
|
2541
|
-
const
|
|
2542
|
-
return en(t, r,
|
|
2541
|
+
const u = parseInt(o[2], 10);
|
|
2542
|
+
return en(t, r, u) ? (n.setUTCFullYear(t, r, u), n) : /* @__PURE__ */ new Date(NaN);
|
|
2543
2543
|
}
|
|
2544
2544
|
if (o = I.Www.exec(e), o)
|
|
2545
2545
|
return i = parseInt(o[1], 10) - 1, tn(i) ? Jt(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
2546
2546
|
if (o = I.WwwD.exec(e), o) {
|
|
2547
2547
|
i = parseInt(o[1], 10) - 1;
|
|
2548
|
-
const
|
|
2549
|
-
return tn(i,
|
|
2548
|
+
const u = parseInt(o[2], 10) - 1;
|
|
2549
|
+
return tn(i, u) ? Jt(t, i, u) : /* @__PURE__ */ new Date(NaN);
|
|
2550
2550
|
}
|
|
2551
2551
|
return null;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function uo(e) {
|
|
2554
2554
|
let t, n, r = I.HH.exec(e);
|
|
2555
2555
|
if (r)
|
|
2556
2556
|
return t = parseFloat(r[1].replace(",", ".")), ze(t) ? t % 24 * je : NaN;
|
|
@@ -2604,18 +2604,18 @@ function yo(e, t, n = {}) {
|
|
|
2604
2604
|
const r = t.match(ho);
|
|
2605
2605
|
if (r) {
|
|
2606
2606
|
const i = be(n.originalDate || e, n);
|
|
2607
|
-
t = r.reduce(function(o,
|
|
2608
|
-
if (
|
|
2607
|
+
t = r.reduce(function(o, u) {
|
|
2608
|
+
if (u[0] === "'")
|
|
2609
2609
|
return o;
|
|
2610
|
-
const m = o.indexOf(
|
|
2611
|
-
return
|
|
2610
|
+
const m = o.indexOf(u), p = o[m - 1] === "'", l = o.replace(u, "'" + ro[u[0]](i, u, n) + "'");
|
|
2611
|
+
return p ? l.substring(0, m - 1) + l.substring(m + 1) : l;
|
|
2612
2612
|
}, t);
|
|
2613
2613
|
}
|
|
2614
|
-
return
|
|
2614
|
+
return Gi(e, t, n);
|
|
2615
2615
|
}
|
|
2616
2616
|
function Tn(e, t, n) {
|
|
2617
2617
|
e = be(e, n);
|
|
2618
|
-
const r =
|
|
2618
|
+
const r = ue(t, e, !0), i = new Date(e.getTime() - r), o = /* @__PURE__ */ new Date(0);
|
|
2619
2619
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
2620
2620
|
}
|
|
2621
2621
|
function Dn(e, t, n, r) {
|
|
@@ -2629,11 +2629,11 @@ function go(e, t, n) {
|
|
|
2629
2629
|
if (typeof e == "string" && !e.match(wn))
|
|
2630
2630
|
return be(e, { ...n, timeZone: t });
|
|
2631
2631
|
e = be(e, n);
|
|
2632
|
-
const r = Je(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i =
|
|
2632
|
+
const r = Je(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = ue(t, new Date(r));
|
|
2633
2633
|
return new Date(r + i);
|
|
2634
2634
|
}
|
|
2635
2635
|
function Mn(e, t) {
|
|
2636
|
-
return -
|
|
2636
|
+
return -ue(e, t);
|
|
2637
2637
|
}
|
|
2638
2638
|
function Bo(e, t = {}) {
|
|
2639
2639
|
const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone, r = t != null && t.includeTZ ? "yyyy-MM-dd HH:mm:ss.SSS (z)" : "yyyy-MM-dd HH:mm:ss.SSS";
|
|
@@ -2697,22 +2697,18 @@ function _o(e, t, n) {
|
|
|
2697
2697
|
function On(e, t, n) {
|
|
2698
2698
|
return Sn(Math.ceil, e, t, n);
|
|
2699
2699
|
}
|
|
2700
|
-
class
|
|
2700
|
+
class Ne {
|
|
2701
2701
|
constructor(t, n, r) {
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
if (this.constructor ===
|
|
2702
|
+
M(this, "timeRange");
|
|
2703
|
+
M(this, "tz");
|
|
2704
|
+
M(this, "granularity");
|
|
2705
|
+
if (this.constructor === Ne)
|
|
2706
2706
|
throw new Error("BaseQueryTime is not meant to be used directly.");
|
|
2707
|
-
this.
|
|
2707
|
+
this.timeRange = t, this.tz = r, this.granularity = n;
|
|
2708
2708
|
}
|
|
2709
|
-
calculateStartDate(t, n
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
{
|
|
2713
|
-
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = _o(o, n, this.tz), g = (i.getTime() - c.getTime()) * (r - 1);
|
|
2714
|
-
return new Date(c.getTime() - g);
|
|
2715
|
-
}
|
|
2709
|
+
calculateStartDate(t, n = 1) {
|
|
2710
|
+
const r = this.timeRange.end, i = _o(this.timeRange.start, t, this.tz), u = (r.getTime() - i.getTime()) * n;
|
|
2711
|
+
return new Date(i.getTime() - u);
|
|
2716
2712
|
}
|
|
2717
2713
|
granularitySeconds() {
|
|
2718
2714
|
return Math.floor(this.granularityMs() / 1e3);
|
|
@@ -2737,28 +2733,26 @@ class ve {
|
|
|
2737
2733
|
return Wt(this.endDate());
|
|
2738
2734
|
}
|
|
2739
2735
|
}
|
|
2740
|
-
class Ko extends
|
|
2741
|
-
constructor(n, r
|
|
2742
|
-
super(
|
|
2743
|
-
T(this, "granularity");
|
|
2744
|
-
r && n.allowedGranularities(c).has(r) ? this.granularity = r : c ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
|
|
2736
|
+
class Ko extends Ne {
|
|
2737
|
+
constructor(t, n, r) {
|
|
2738
|
+
super(t, n, r);
|
|
2745
2739
|
}
|
|
2746
2740
|
startDate() {
|
|
2747
|
-
return this.calculateStartDate(this.
|
|
2741
|
+
return this.calculateStartDate(this.granularity);
|
|
2748
2742
|
}
|
|
2749
2743
|
endDate() {
|
|
2750
|
-
return On(this.
|
|
2744
|
+
return On(this.timeRange.end, this.granularity, this.tz);
|
|
2751
2745
|
}
|
|
2752
2746
|
granularityMs() {
|
|
2753
2747
|
return Te[this.granularity];
|
|
2754
2748
|
}
|
|
2755
2749
|
}
|
|
2756
|
-
class wo extends
|
|
2750
|
+
class wo extends Ne {
|
|
2757
2751
|
startDate() {
|
|
2758
|
-
return this.calculateStartDate(this.
|
|
2752
|
+
return this.calculateStartDate(this.granularity);
|
|
2759
2753
|
}
|
|
2760
2754
|
endDate() {
|
|
2761
|
-
return On(this.
|
|
2755
|
+
return On(this.timeRange.start, this.granularity, this.tz);
|
|
2762
2756
|
}
|
|
2763
2757
|
granularityMs() {
|
|
2764
2758
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
@@ -2766,7 +2760,7 @@ class wo extends ve {
|
|
|
2766
2760
|
}
|
|
2767
2761
|
class Jo extends wo {
|
|
2768
2762
|
startDate() {
|
|
2769
|
-
return this.calculateStartDate(this.
|
|
2763
|
+
return this.calculateStartDate(this.granularity, 2);
|
|
2770
2764
|
}
|
|
2771
2765
|
granularityMs() {
|
|
2772
2766
|
return this.endDate().getTime() - super.startDate().getTime();
|
|
@@ -2779,33 +2773,33 @@ function En(e) {
|
|
|
2779
2773
|
var De = { exports: {} };
|
|
2780
2774
|
De.exports;
|
|
2781
2775
|
(function(e, t) {
|
|
2782
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]",
|
|
2783
|
-
w[o] = w[
|
|
2784
|
-
var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e,
|
|
2785
|
-
function
|
|
2776
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", u = "[object Array]", m = "[object Boolean]", p = "[object Date]", l = "[object Error]", f = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", b = "[object Number]", E = "[object Object]", v = "[object Promise]", C = "[object RegExp]", W = "[object Set]", N = "[object String]", T = "[object Symbol]", q = "[object WeakMap]", tt = "[object ArrayBuffer]", le = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", at = "[object Int8Array]", it = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ct = "[object Uint8ClampedArray]", ut = "[object Uint16Array]", lt = "[object Uint32Array]", In = /[\\^$.*+?()[\]{}|]/g, xn = /\w*$/, Pn = /^\[object .+?Constructor\]$/, Rn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2777
|
+
w[o] = w[u] = w[tt] = w[le] = w[m] = w[p] = w[nt] = w[rt] = w[at] = w[it] = w[ot] = w[h] = w[b] = w[E] = w[C] = w[W] = w[N] = w[T] = w[st] = w[ct] = w[ut] = w[lt] = !0, w[l] = w[f] = w[q] = !1;
|
|
2778
|
+
var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, kn = mt && mt.exports === dt;
|
|
2779
|
+
function An(a, s) {
|
|
2786
2780
|
return a.set(s[0], s[1]), a;
|
|
2787
2781
|
}
|
|
2788
|
-
function
|
|
2782
|
+
function Gn(a, s) {
|
|
2789
2783
|
return a.add(s), a;
|
|
2790
2784
|
}
|
|
2791
2785
|
function Fn(a, s) {
|
|
2792
|
-
for (var
|
|
2786
|
+
for (var c = -1, y = a ? a.length : 0; ++c < y && s(a[c], c, a) !== !1; )
|
|
2793
2787
|
;
|
|
2794
2788
|
return a;
|
|
2795
2789
|
}
|
|
2796
2790
|
function Hn(a, s) {
|
|
2797
|
-
for (var
|
|
2798
|
-
a[
|
|
2791
|
+
for (var c = -1, y = s.length, D = a.length; ++c < y; )
|
|
2792
|
+
a[D + c] = s[c];
|
|
2799
2793
|
return a;
|
|
2800
2794
|
}
|
|
2801
|
-
function ft(a, s,
|
|
2802
|
-
for (var
|
|
2803
|
-
|
|
2804
|
-
return
|
|
2795
|
+
function ft(a, s, c, y) {
|
|
2796
|
+
for (var D = -1, x = a ? a.length : 0; ++D < x; )
|
|
2797
|
+
c = s(c, a[D], D, a);
|
|
2798
|
+
return c;
|
|
2805
2799
|
}
|
|
2806
2800
|
function Ln(a, s) {
|
|
2807
|
-
for (var
|
|
2808
|
-
y[
|
|
2801
|
+
for (var c = -1, y = Array(a); ++c < a; )
|
|
2802
|
+
y[c] = s(c);
|
|
2809
2803
|
return y;
|
|
2810
2804
|
}
|
|
2811
2805
|
function Un(a, s) {
|
|
@@ -2821,31 +2815,31 @@ De.exports;
|
|
|
2821
2815
|
return s;
|
|
2822
2816
|
}
|
|
2823
2817
|
function yt(a) {
|
|
2824
|
-
var s = -1,
|
|
2825
|
-
return a.forEach(function(y,
|
|
2826
|
-
|
|
2827
|
-
}),
|
|
2828
|
-
}
|
|
2829
|
-
function
|
|
2830
|
-
return function(
|
|
2831
|
-
return a(s(
|
|
2818
|
+
var s = -1, c = Array(a.size);
|
|
2819
|
+
return a.forEach(function(y, D) {
|
|
2820
|
+
c[++s] = [D, y];
|
|
2821
|
+
}), c;
|
|
2822
|
+
}
|
|
2823
|
+
function ve(a, s) {
|
|
2824
|
+
return function(c) {
|
|
2825
|
+
return a(s(c));
|
|
2832
2826
|
};
|
|
2833
2827
|
}
|
|
2834
2828
|
function gt(a) {
|
|
2835
|
-
var s = -1,
|
|
2829
|
+
var s = -1, c = Array(a.size);
|
|
2836
2830
|
return a.forEach(function(y) {
|
|
2837
|
-
|
|
2838
|
-
}),
|
|
2831
|
+
c[++s] = y;
|
|
2832
|
+
}), c;
|
|
2839
2833
|
}
|
|
2840
2834
|
var Wn = Array.prototype, qn = Function.prototype, de = Object.prototype, Ie = Y["__core-js_shared__"], pt = function() {
|
|
2841
2835
|
var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
|
|
2842
2836
|
return a ? "Symbol(src)_1." + a : "";
|
|
2843
2837
|
}(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
|
|
2844
2838
|
"^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2845
|
-
), wt =
|
|
2839
|
+
), wt = kn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = ve(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = ve(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
|
|
2846
2840
|
function j(a) {
|
|
2847
|
-
var s = -1,
|
|
2848
|
-
for (this.clear(); ++s <
|
|
2841
|
+
var s = -1, c = a ? a.length : 0;
|
|
2842
|
+
for (this.clear(); ++s < c; ) {
|
|
2849
2843
|
var y = a[s];
|
|
2850
2844
|
this.set(y[0], y[1]);
|
|
2851
2845
|
}
|
|
@@ -2859,8 +2853,8 @@ De.exports;
|
|
|
2859
2853
|
function ar(a) {
|
|
2860
2854
|
var s = this.__data__;
|
|
2861
2855
|
if (ne) {
|
|
2862
|
-
var
|
|
2863
|
-
return
|
|
2856
|
+
var c = s[a];
|
|
2857
|
+
return c === r ? void 0 : c;
|
|
2864
2858
|
}
|
|
2865
2859
|
return H.call(s, a) ? s[a] : void 0;
|
|
2866
2860
|
}
|
|
@@ -2869,13 +2863,13 @@ De.exports;
|
|
|
2869
2863
|
return ne ? s[a] !== void 0 : H.call(s, a);
|
|
2870
2864
|
}
|
|
2871
2865
|
function or(a, s) {
|
|
2872
|
-
var
|
|
2873
|
-
return
|
|
2866
|
+
var c = this.__data__;
|
|
2867
|
+
return c[a] = ne && s === void 0 ? r : s, this;
|
|
2874
2868
|
}
|
|
2875
2869
|
j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
|
|
2876
|
-
function
|
|
2877
|
-
var s = -1,
|
|
2878
|
-
for (this.clear(); ++s <
|
|
2870
|
+
function k(a) {
|
|
2871
|
+
var s = -1, c = a ? a.length : 0;
|
|
2872
|
+
for (this.clear(); ++s < c; ) {
|
|
2879
2873
|
var y = a[s];
|
|
2880
2874
|
this.set(y[0], y[1]);
|
|
2881
2875
|
}
|
|
@@ -2883,28 +2877,28 @@ De.exports;
|
|
|
2883
2877
|
function sr() {
|
|
2884
2878
|
this.__data__ = [];
|
|
2885
2879
|
}
|
|
2886
|
-
function
|
|
2887
|
-
var s = this.__data__,
|
|
2888
|
-
if (
|
|
2880
|
+
function cr(a) {
|
|
2881
|
+
var s = this.__data__, c = fe(s, a);
|
|
2882
|
+
if (c < 0)
|
|
2889
2883
|
return !1;
|
|
2890
2884
|
var y = s.length - 1;
|
|
2891
|
-
return
|
|
2885
|
+
return c == y ? s.pop() : Bn.call(s, c, 1), !0;
|
|
2892
2886
|
}
|
|
2893
|
-
function
|
|
2894
|
-
var s = this.__data__,
|
|
2895
|
-
return
|
|
2887
|
+
function ur(a) {
|
|
2888
|
+
var s = this.__data__, c = fe(s, a);
|
|
2889
|
+
return c < 0 ? void 0 : s[c][1];
|
|
2896
2890
|
}
|
|
2897
2891
|
function lr(a) {
|
|
2898
2892
|
return fe(this.__data__, a) > -1;
|
|
2899
2893
|
}
|
|
2900
2894
|
function dr(a, s) {
|
|
2901
|
-
var
|
|
2902
|
-
return y < 0 ?
|
|
2895
|
+
var c = this.__data__, y = fe(c, a);
|
|
2896
|
+
return y < 0 ? c.push([a, s]) : c[y][1] = s, this;
|
|
2903
2897
|
}
|
|
2904
|
-
|
|
2898
|
+
k.prototype.clear = sr, k.prototype.delete = cr, k.prototype.get = ur, k.prototype.has = lr, k.prototype.set = dr;
|
|
2905
2899
|
function B(a) {
|
|
2906
|
-
var s = -1,
|
|
2907
|
-
for (this.clear(); ++s <
|
|
2900
|
+
var s = -1, c = a ? a.length : 0;
|
|
2901
|
+
for (this.clear(); ++s < c; ) {
|
|
2908
2902
|
var y = a[s];
|
|
2909
2903
|
this.set(y[0], y[1]);
|
|
2910
2904
|
}
|
|
@@ -2912,7 +2906,7 @@ De.exports;
|
|
|
2912
2906
|
function mr() {
|
|
2913
2907
|
this.__data__ = {
|
|
2914
2908
|
hash: new j(),
|
|
2915
|
-
map: new (te ||
|
|
2909
|
+
map: new (te || k)(),
|
|
2916
2910
|
string: new j()
|
|
2917
2911
|
};
|
|
2918
2912
|
}
|
|
@@ -2930,10 +2924,10 @@ De.exports;
|
|
|
2930
2924
|
}
|
|
2931
2925
|
B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
|
|
2932
2926
|
function Z(a) {
|
|
2933
|
-
this.__data__ = new
|
|
2927
|
+
this.__data__ = new k(a);
|
|
2934
2928
|
}
|
|
2935
2929
|
function pr() {
|
|
2936
|
-
this.__data__ = new
|
|
2930
|
+
this.__data__ = new k();
|
|
2937
2931
|
}
|
|
2938
2932
|
function _r(a) {
|
|
2939
2933
|
return this.__data__.delete(a);
|
|
@@ -2945,45 +2939,45 @@ De.exports;
|
|
|
2945
2939
|
return this.__data__.has(a);
|
|
2946
2940
|
}
|
|
2947
2941
|
function Tr(a, s) {
|
|
2948
|
-
var
|
|
2949
|
-
if (
|
|
2950
|
-
var y =
|
|
2942
|
+
var c = this.__data__;
|
|
2943
|
+
if (c instanceof k) {
|
|
2944
|
+
var y = c.__data__;
|
|
2951
2945
|
if (!te || y.length < n - 1)
|
|
2952
2946
|
return y.push([a, s]), this;
|
|
2953
|
-
|
|
2947
|
+
c = this.__data__ = new B(y);
|
|
2954
2948
|
}
|
|
2955
|
-
return
|
|
2949
|
+
return c.set(a, s), this;
|
|
2956
2950
|
}
|
|
2957
2951
|
Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
|
|
2958
2952
|
function Dr(a, s) {
|
|
2959
|
-
var
|
|
2953
|
+
var c = Ae(a) || Vr(a) ? Ln(a.length, String) : [], y = c.length, D = !!y;
|
|
2960
2954
|
for (var x in a)
|
|
2961
|
-
H.call(a, x) && !(
|
|
2962
|
-
return
|
|
2955
|
+
H.call(a, x) && !(D && (x == "length" || Wr(x, y))) && c.push(x);
|
|
2956
|
+
return c;
|
|
2963
2957
|
}
|
|
2964
|
-
function Ot(a, s,
|
|
2958
|
+
function Ot(a, s, c) {
|
|
2965
2959
|
var y = a[s];
|
|
2966
|
-
(!(H.call(a, s) && It(y,
|
|
2960
|
+
(!(H.call(a, s) && It(y, c)) || c === void 0 && !(s in a)) && (a[s] = c);
|
|
2967
2961
|
}
|
|
2968
2962
|
function fe(a, s) {
|
|
2969
|
-
for (var
|
|
2970
|
-
if (It(a[
|
|
2971
|
-
return
|
|
2963
|
+
for (var c = a.length; c--; )
|
|
2964
|
+
if (It(a[c][0], s))
|
|
2965
|
+
return c;
|
|
2972
2966
|
return -1;
|
|
2973
2967
|
}
|
|
2974
2968
|
function Mr(a, s) {
|
|
2975
|
-
return a && Et(s,
|
|
2969
|
+
return a && Et(s, Ge(s), a);
|
|
2976
2970
|
}
|
|
2977
|
-
function Ye(a, s,
|
|
2971
|
+
function Ye(a, s, c, y, D, x, A) {
|
|
2978
2972
|
var P;
|
|
2979
|
-
if (y && (P = x ? y(a,
|
|
2973
|
+
if (y && (P = x ? y(a, D, x, A) : y(a)), P !== void 0)
|
|
2980
2974
|
return P;
|
|
2981
2975
|
if (!ye(a))
|
|
2982
2976
|
return a;
|
|
2983
|
-
var Rt =
|
|
2977
|
+
var Rt = Ae(a);
|
|
2984
2978
|
if (Rt) {
|
|
2985
2979
|
if (P = Hr(a), !s)
|
|
2986
|
-
return
|
|
2980
|
+
return Ar(a, P);
|
|
2987
2981
|
} else {
|
|
2988
2982
|
var Q = z(a), Ct = Q == f || Q == d;
|
|
2989
2983
|
if (Br(a))
|
|
@@ -2992,111 +2986,111 @@ De.exports;
|
|
|
2992
2986
|
if (ht(a))
|
|
2993
2987
|
return x ? a : {};
|
|
2994
2988
|
if (P = Lr(Ct ? {} : a), !s)
|
|
2995
|
-
return
|
|
2989
|
+
return Gr(a, Mr(P, a));
|
|
2996
2990
|
} else {
|
|
2997
2991
|
if (!w[Q])
|
|
2998
2992
|
return x ? a : {};
|
|
2999
2993
|
P = Ur(a, Q, Ye, s);
|
|
3000
2994
|
}
|
|
3001
2995
|
}
|
|
3002
|
-
|
|
3003
|
-
var Yt =
|
|
2996
|
+
A || (A = new Z());
|
|
2997
|
+
var Yt = A.get(a);
|
|
3004
2998
|
if (Yt)
|
|
3005
2999
|
return Yt;
|
|
3006
|
-
if (
|
|
3007
|
-
var
|
|
3008
|
-
return Fn(
|
|
3009
|
-
|
|
3000
|
+
if (A.set(a, P), !Rt)
|
|
3001
|
+
var kt = c ? Fr(a) : Ge(a);
|
|
3002
|
+
return Fn(kt || a, function(Fe, ge) {
|
|
3003
|
+
kt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, c, y, ge, a, A));
|
|
3010
3004
|
}), P;
|
|
3011
3005
|
}
|
|
3012
3006
|
function Sr(a) {
|
|
3013
3007
|
return ye(a) ? Vn(a) : {};
|
|
3014
3008
|
}
|
|
3015
|
-
function Or(a, s,
|
|
3009
|
+
function Or(a, s, c) {
|
|
3016
3010
|
var y = s(a);
|
|
3017
|
-
return
|
|
3011
|
+
return Ae(a) ? y : Hn(y, c(a));
|
|
3018
3012
|
}
|
|
3019
3013
|
function Er(a) {
|
|
3020
3014
|
return me.call(a);
|
|
3021
3015
|
}
|
|
3022
|
-
function
|
|
3016
|
+
function Nr(a) {
|
|
3023
3017
|
if (!ye(a) || jr(a))
|
|
3024
3018
|
return !1;
|
|
3025
3019
|
var s = Pt(a) || ht(a) ? jn : Pn;
|
|
3026
3020
|
return s.test(V(a));
|
|
3027
3021
|
}
|
|
3028
|
-
function
|
|
3029
|
-
if (!
|
|
3022
|
+
function vr(a) {
|
|
3023
|
+
if (!vt(a))
|
|
3030
3024
|
return Xn(a);
|
|
3031
3025
|
var s = [];
|
|
3032
|
-
for (var
|
|
3033
|
-
H.call(a,
|
|
3026
|
+
for (var c in Object(a))
|
|
3027
|
+
H.call(a, c) && c != "constructor" && s.push(c);
|
|
3034
3028
|
return s;
|
|
3035
3029
|
}
|
|
3036
3030
|
function Ir(a, s) {
|
|
3037
3031
|
if (s)
|
|
3038
3032
|
return a.slice();
|
|
3039
|
-
var
|
|
3040
|
-
return a.copy(
|
|
3033
|
+
var c = new a.constructor(a.length);
|
|
3034
|
+
return a.copy(c), c;
|
|
3041
3035
|
}
|
|
3042
|
-
function
|
|
3036
|
+
function ke(a) {
|
|
3043
3037
|
var s = new a.constructor(a.byteLength);
|
|
3044
3038
|
return new Tt(s).set(new Tt(a)), s;
|
|
3045
3039
|
}
|
|
3046
3040
|
function xr(a, s) {
|
|
3047
|
-
var
|
|
3048
|
-
return new a.constructor(
|
|
3041
|
+
var c = s ? ke(a.buffer) : a.buffer;
|
|
3042
|
+
return new a.constructor(c, a.byteOffset, a.byteLength);
|
|
3049
3043
|
}
|
|
3050
|
-
function Pr(a, s,
|
|
3051
|
-
var y = s ?
|
|
3052
|
-
return ft(y,
|
|
3044
|
+
function Pr(a, s, c) {
|
|
3045
|
+
var y = s ? c(yt(a), !0) : yt(a);
|
|
3046
|
+
return ft(y, An, new a.constructor());
|
|
3053
3047
|
}
|
|
3054
3048
|
function Rr(a) {
|
|
3055
3049
|
var s = new a.constructor(a.source, xn.exec(a));
|
|
3056
3050
|
return s.lastIndex = a.lastIndex, s;
|
|
3057
3051
|
}
|
|
3058
|
-
function Cr(a, s,
|
|
3059
|
-
var y = s ?
|
|
3060
|
-
return ft(y,
|
|
3052
|
+
function Cr(a, s, c) {
|
|
3053
|
+
var y = s ? c(gt(a), !0) : gt(a);
|
|
3054
|
+
return ft(y, Gn, new a.constructor());
|
|
3061
3055
|
}
|
|
3062
3056
|
function Yr(a) {
|
|
3063
3057
|
return St ? Object(St.call(a)) : {};
|
|
3064
3058
|
}
|
|
3065
|
-
function Gr(a, s) {
|
|
3066
|
-
var u = s ? Ge(a.buffer) : a.buffer;
|
|
3067
|
-
return new a.constructor(u, a.byteOffset, a.length);
|
|
3068
|
-
}
|
|
3069
3059
|
function kr(a, s) {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3072
|
-
|
|
3060
|
+
var c = s ? ke(a.buffer) : a.buffer;
|
|
3061
|
+
return new a.constructor(c, a.byteOffset, a.length);
|
|
3062
|
+
}
|
|
3063
|
+
function Ar(a, s) {
|
|
3064
|
+
var c = -1, y = a.length;
|
|
3065
|
+
for (s || (s = Array(y)); ++c < y; )
|
|
3066
|
+
s[c] = a[c];
|
|
3073
3067
|
return s;
|
|
3074
3068
|
}
|
|
3075
|
-
function Et(a, s,
|
|
3076
|
-
|
|
3077
|
-
for (var
|
|
3078
|
-
var
|
|
3079
|
-
Ot(
|
|
3069
|
+
function Et(a, s, c, y) {
|
|
3070
|
+
c || (c = {});
|
|
3071
|
+
for (var D = -1, x = s.length; ++D < x; ) {
|
|
3072
|
+
var A = s[D], P = void 0;
|
|
3073
|
+
Ot(c, A, P === void 0 ? a[A] : P);
|
|
3080
3074
|
}
|
|
3081
|
-
return
|
|
3075
|
+
return c;
|
|
3082
3076
|
}
|
|
3083
|
-
function
|
|
3084
|
-
return Et(a,
|
|
3077
|
+
function Gr(a, s) {
|
|
3078
|
+
return Et(a, Nt(a), s);
|
|
3085
3079
|
}
|
|
3086
3080
|
function Fr(a) {
|
|
3087
|
-
return Or(a,
|
|
3081
|
+
return Or(a, Ge, Nt);
|
|
3088
3082
|
}
|
|
3089
3083
|
function he(a, s) {
|
|
3090
|
-
var
|
|
3091
|
-
return qr(s) ?
|
|
3084
|
+
var c = a.__data__;
|
|
3085
|
+
return qr(s) ? c[typeof s == "string" ? "string" : "hash"] : c.map;
|
|
3092
3086
|
}
|
|
3093
3087
|
function X(a, s) {
|
|
3094
|
-
var
|
|
3095
|
-
return
|
|
3088
|
+
var c = Un(a, s);
|
|
3089
|
+
return Nr(c) ? c : void 0;
|
|
3096
3090
|
}
|
|
3097
|
-
var
|
|
3098
|
-
(xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != h || Pe && z(Pe.resolve()) !=
|
|
3099
|
-
var s = me.call(a),
|
|
3091
|
+
var Nt = Dt ? ve(Dt, Object) : Qr, z = Er;
|
|
3092
|
+
(xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != h || Pe && z(Pe.resolve()) != v || Re && z(new Re()) != W || Ce && z(new Ce()) != q) && (z = function(a) {
|
|
3093
|
+
var s = me.call(a), c = s == E ? a.constructor : void 0, y = c ? V(c) : void 0;
|
|
3100
3094
|
if (y)
|
|
3101
3095
|
switch (y) {
|
|
3102
3096
|
case Qn:
|
|
@@ -3104,7 +3098,7 @@ De.exports;
|
|
|
3104
3098
|
case Kn:
|
|
3105
3099
|
return h;
|
|
3106
3100
|
case Jn:
|
|
3107
|
-
return
|
|
3101
|
+
return v;
|
|
3108
3102
|
case er:
|
|
3109
3103
|
return W;
|
|
3110
3104
|
case tr:
|
|
@@ -3113,20 +3107,20 @@ De.exports;
|
|
|
3113
3107
|
return s;
|
|
3114
3108
|
});
|
|
3115
3109
|
function Hr(a) {
|
|
3116
|
-
var s = a.length,
|
|
3117
|
-
return s && typeof a[0] == "string" && H.call(a, "index") && (
|
|
3110
|
+
var s = a.length, c = a.constructor(s);
|
|
3111
|
+
return s && typeof a[0] == "string" && H.call(a, "index") && (c.index = a.index, c.input = a.input), c;
|
|
3118
3112
|
}
|
|
3119
3113
|
function Lr(a) {
|
|
3120
|
-
return typeof a.constructor == "function" && !
|
|
3114
|
+
return typeof a.constructor == "function" && !vt(a) ? Sr(zn(a)) : {};
|
|
3121
3115
|
}
|
|
3122
|
-
function Ur(a, s,
|
|
3123
|
-
var
|
|
3116
|
+
function Ur(a, s, c, y) {
|
|
3117
|
+
var D = a.constructor;
|
|
3124
3118
|
switch (s) {
|
|
3125
3119
|
case tt:
|
|
3126
|
-
return
|
|
3120
|
+
return ke(a);
|
|
3127
3121
|
case m:
|
|
3128
|
-
case
|
|
3129
|
-
return new
|
|
3122
|
+
case p:
|
|
3123
|
+
return new D(+a);
|
|
3130
3124
|
case le:
|
|
3131
3125
|
return xr(a, y);
|
|
3132
3126
|
case nt:
|
|
@@ -3135,20 +3129,20 @@ De.exports;
|
|
|
3135
3129
|
case it:
|
|
3136
3130
|
case ot:
|
|
3137
3131
|
case st:
|
|
3138
|
-
case ut:
|
|
3139
3132
|
case ct:
|
|
3133
|
+
case ut:
|
|
3140
3134
|
case lt:
|
|
3141
|
-
return
|
|
3135
|
+
return kr(a, y);
|
|
3142
3136
|
case h:
|
|
3143
|
-
return Pr(a, y,
|
|
3137
|
+
return Pr(a, y, c);
|
|
3144
3138
|
case b:
|
|
3145
|
-
case
|
|
3146
|
-
return new
|
|
3139
|
+
case N:
|
|
3140
|
+
return new D(a);
|
|
3147
3141
|
case C:
|
|
3148
3142
|
return Rr(a);
|
|
3149
3143
|
case W:
|
|
3150
|
-
return Cr(a, y,
|
|
3151
|
-
case
|
|
3144
|
+
return Cr(a, y, c);
|
|
3145
|
+
case T:
|
|
3152
3146
|
return Yr(a);
|
|
3153
3147
|
}
|
|
3154
3148
|
}
|
|
@@ -3162,9 +3156,9 @@ De.exports;
|
|
|
3162
3156
|
function jr(a) {
|
|
3163
3157
|
return !!pt && pt in a;
|
|
3164
3158
|
}
|
|
3165
|
-
function
|
|
3166
|
-
var s = a && a.constructor,
|
|
3167
|
-
return a ===
|
|
3159
|
+
function vt(a) {
|
|
3160
|
+
var s = a && a.constructor, c = typeof s == "function" && s.prototype || de;
|
|
3161
|
+
return a === c;
|
|
3168
3162
|
}
|
|
3169
3163
|
function V(a) {
|
|
3170
3164
|
if (a != null) {
|
|
@@ -3188,7 +3182,7 @@ De.exports;
|
|
|
3188
3182
|
function Vr(a) {
|
|
3189
3183
|
return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
|
|
3190
3184
|
}
|
|
3191
|
-
var
|
|
3185
|
+
var Ae = Array.isArray;
|
|
3192
3186
|
function xt(a) {
|
|
3193
3187
|
return a != null && Zr(a.length) && !Pt(a);
|
|
3194
3188
|
}
|
|
@@ -3210,8 +3204,8 @@ De.exports;
|
|
|
3210
3204
|
function Xr(a) {
|
|
3211
3205
|
return !!a && typeof a == "object";
|
|
3212
3206
|
}
|
|
3213
|
-
function
|
|
3214
|
-
return xt(a) ? Dr(a) :
|
|
3207
|
+
function Ge(a) {
|
|
3208
|
+
return xt(a) ? Dr(a) : vr(a);
|
|
3215
3209
|
}
|
|
3216
3210
|
function Qr() {
|
|
3217
3211
|
return [];
|
|
@@ -3225,28 +3219,28 @@ var bo = De.exports;
|
|
|
3225
3219
|
const To = /* @__PURE__ */ En(bo), F = (e, t) => new Date(e.getTime() - Mn(t, e));
|
|
3226
3220
|
class S {
|
|
3227
3221
|
constructor(t) {
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3222
|
+
M(this, "timeframeText");
|
|
3223
|
+
M(this, "key");
|
|
3224
|
+
M(this, "display");
|
|
3225
|
+
M(this, "timeframeLength");
|
|
3226
|
+
M(this, "allowedTiers");
|
|
3233
3227
|
// defaultResponseGranularity tracks which of the allowed granularities is picked for a given
|
|
3234
3228
|
// timeframe if the user does not or cannot specify a granularity.
|
|
3235
|
-
|
|
3229
|
+
M(this, "defaultResponseGranularity");
|
|
3236
3230
|
// dataGranularity tracks the granularity of the available data on the server for a specific timeframe.
|
|
3237
3231
|
// As of writing, it's always the same as the default response granularity, but it may not always be.
|
|
3238
3232
|
// It controls how timeframes are rounded to ensure complete time buckets from the server.
|
|
3239
|
-
|
|
3233
|
+
M(this, "dataGranularity");
|
|
3240
3234
|
// isRelative impacts whether we take the `floor` or the `ceil` of the start time.
|
|
3241
3235
|
// If the time range is relative, we want the ceil -- because we take the ceil of the
|
|
3242
3236
|
// end time to make sure we're showing all the data we can for the last time bucket.
|
|
3243
3237
|
// If the time range is absolute, we want the floor -- because otherwise we wouldn't be including
|
|
3244
3238
|
// the first time bucket.
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3239
|
+
M(this, "isRelative");
|
|
3240
|
+
M(this, "fineGrainedDefaultGranularity");
|
|
3241
|
+
M(this, "_startCustom");
|
|
3242
|
+
M(this, "_endCustom");
|
|
3243
|
+
M(this, "_allowedGranularitiesOverride");
|
|
3250
3244
|
this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
|
|
3251
3245
|
}
|
|
3252
3246
|
// rawEnd does not consider granularity and should not be used directly in queries.
|
|
@@ -3302,7 +3296,7 @@ class S {
|
|
|
3302
3296
|
}
|
|
3303
3297
|
class Do extends S {
|
|
3304
3298
|
rawStart(t) {
|
|
3305
|
-
let n =
|
|
3299
|
+
let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3306
3300
|
return t && (n = F(n, t)), n;
|
|
3307
3301
|
}
|
|
3308
3302
|
maximumTimeframeLength() {
|
|
@@ -3329,12 +3323,12 @@ class So extends S {
|
|
|
3329
3323
|
}
|
|
3330
3324
|
class Oo extends S {
|
|
3331
3325
|
rawEnd(t) {
|
|
3332
|
-
let n =
|
|
3326
|
+
let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3333
3327
|
return t && (n = F(n, t)), n;
|
|
3334
3328
|
}
|
|
3335
3329
|
rawStart(t) {
|
|
3336
3330
|
const n = this.tzAdjustedDate(t);
|
|
3337
|
-
let r =
|
|
3331
|
+
let r = G(n.setDate(n.getDate() - 7), {
|
|
3338
3332
|
weekStartsOn: 1
|
|
3339
3333
|
});
|
|
3340
3334
|
return t && (r = F(r, t)), r;
|
|
@@ -3350,7 +3344,7 @@ class Eo extends S {
|
|
|
3350
3344
|
return t && (n = F(n, t)), n;
|
|
3351
3345
|
}
|
|
3352
3346
|
}
|
|
3353
|
-
class
|
|
3347
|
+
class No extends S {
|
|
3354
3348
|
rawEnd(t) {
|
|
3355
3349
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
3356
3350
|
return t && (n = F(n, t)), n;
|
|
@@ -3360,11 +3354,11 @@ class vo extends S {
|
|
|
3360
3354
|
return t && (n = F(n, t)), n;
|
|
3361
3355
|
}
|
|
3362
3356
|
}
|
|
3363
|
-
const
|
|
3357
|
+
const vo = /* @__PURE__ */ new Map([
|
|
3364
3358
|
[
|
|
3365
|
-
|
|
3359
|
+
g.FIFTEEN_MIN,
|
|
3366
3360
|
new S({
|
|
3367
|
-
key:
|
|
3361
|
+
key: g.FIFTEEN_MIN,
|
|
3368
3362
|
display: "Last 15 minutes",
|
|
3369
3363
|
timeframeText: "15 minutes",
|
|
3370
3364
|
timeframeLength: () => 60 * 15,
|
|
@@ -3377,9 +3371,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3377
3371
|
})
|
|
3378
3372
|
],
|
|
3379
3373
|
[
|
|
3380
|
-
|
|
3374
|
+
g.ONE_HOUR,
|
|
3381
3375
|
new S({
|
|
3382
|
-
key:
|
|
3376
|
+
key: g.ONE_HOUR,
|
|
3383
3377
|
display: "Last hour",
|
|
3384
3378
|
timeframeText: "One hour",
|
|
3385
3379
|
timeframeLength: () => 60 * 60 * 1,
|
|
@@ -3392,9 +3386,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3392
3386
|
})
|
|
3393
3387
|
],
|
|
3394
3388
|
[
|
|
3395
|
-
|
|
3389
|
+
g.SIX_HOUR,
|
|
3396
3390
|
new S({
|
|
3397
|
-
key:
|
|
3391
|
+
key: g.SIX_HOUR,
|
|
3398
3392
|
display: "Last 6 hours",
|
|
3399
3393
|
timeframeText: "6 hours",
|
|
3400
3394
|
timeframeLength: () => 60 * 60 * 6,
|
|
@@ -3407,9 +3401,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3407
3401
|
})
|
|
3408
3402
|
],
|
|
3409
3403
|
[
|
|
3410
|
-
|
|
3404
|
+
g.TWELVE_HOUR,
|
|
3411
3405
|
new S({
|
|
3412
|
-
key:
|
|
3406
|
+
key: g.TWELVE_HOUR,
|
|
3413
3407
|
display: "Last 12 hours",
|
|
3414
3408
|
timeframeText: "12 hours",
|
|
3415
3409
|
timeframeLength: () => 60 * 60 * 12,
|
|
@@ -3422,9 +3416,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3422
3416
|
})
|
|
3423
3417
|
],
|
|
3424
3418
|
[
|
|
3425
|
-
|
|
3419
|
+
g.ONE_DAY,
|
|
3426
3420
|
new S({
|
|
3427
|
-
key:
|
|
3421
|
+
key: g.ONE_DAY,
|
|
3428
3422
|
display: "Last 24 hours",
|
|
3429
3423
|
timeframeText: "24 hours",
|
|
3430
3424
|
timeframeLength: () => 60 * 60 * 24,
|
|
@@ -3437,9 +3431,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3437
3431
|
})
|
|
3438
3432
|
],
|
|
3439
3433
|
[
|
|
3440
|
-
|
|
3434
|
+
g.SEVEN_DAY,
|
|
3441
3435
|
new S({
|
|
3442
|
-
key:
|
|
3436
|
+
key: g.SEVEN_DAY,
|
|
3443
3437
|
display: "Last 7 days",
|
|
3444
3438
|
timeframeText: "7 days",
|
|
3445
3439
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3452,9 +3446,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3452
3446
|
})
|
|
3453
3447
|
],
|
|
3454
3448
|
[
|
|
3455
|
-
|
|
3449
|
+
g.THIRTY_DAY,
|
|
3456
3450
|
new S({
|
|
3457
|
-
key:
|
|
3451
|
+
key: g.THIRTY_DAY,
|
|
3458
3452
|
display: "Last 30 days",
|
|
3459
3453
|
timeframeText: "30 days",
|
|
3460
3454
|
timeframeLength: () => 60 * 60 * 24 * 30,
|
|
@@ -3467,9 +3461,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3467
3461
|
})
|
|
3468
3462
|
],
|
|
3469
3463
|
[
|
|
3470
|
-
|
|
3464
|
+
g.NINETY_DAY,
|
|
3471
3465
|
new S({
|
|
3472
|
-
key:
|
|
3466
|
+
key: g.NINETY_DAY,
|
|
3473
3467
|
display: "Last 90 days",
|
|
3474
3468
|
timeframeText: "90 days",
|
|
3475
3469
|
timeframeLength: () => 60 * 60 * 24 * 90,
|
|
@@ -3482,9 +3476,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3482
3476
|
})
|
|
3483
3477
|
],
|
|
3484
3478
|
[
|
|
3485
|
-
|
|
3479
|
+
g.ONE_HUNDRED_EIGHTY_DAY,
|
|
3486
3480
|
new S({
|
|
3487
|
-
key:
|
|
3481
|
+
key: g.ONE_HUNDRED_EIGHTY_DAY,
|
|
3488
3482
|
display: "Last 180 days",
|
|
3489
3483
|
timeframeText: "180 days",
|
|
3490
3484
|
timeframeLength: () => 60 * 60 * 24 * 180,
|
|
@@ -3497,9 +3491,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3497
3491
|
})
|
|
3498
3492
|
],
|
|
3499
3493
|
[
|
|
3500
|
-
|
|
3494
|
+
g.ONE_YEAR,
|
|
3501
3495
|
new S({
|
|
3502
|
-
key:
|
|
3496
|
+
key: g.ONE_YEAR,
|
|
3503
3497
|
display: "Last 365 days",
|
|
3504
3498
|
timeframeText: "365 days",
|
|
3505
3499
|
timeframeLength: () => 60 * 60 * 24 * 365,
|
|
@@ -3512,13 +3506,13 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3512
3506
|
})
|
|
3513
3507
|
],
|
|
3514
3508
|
[
|
|
3515
|
-
|
|
3509
|
+
g.CURRENT_WEEK,
|
|
3516
3510
|
new Do({
|
|
3517
|
-
key:
|
|
3511
|
+
key: g.CURRENT_WEEK,
|
|
3518
3512
|
display: "This week",
|
|
3519
3513
|
timeframeText: "Week",
|
|
3520
3514
|
timeframeLength: () => {
|
|
3521
|
-
const e =
|
|
3515
|
+
const e = G(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3522
3516
|
return (ie(Le(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3523
3517
|
},
|
|
3524
3518
|
defaultResponseGranularity: "daily",
|
|
@@ -3530,9 +3524,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3530
3524
|
})
|
|
3531
3525
|
],
|
|
3532
3526
|
[
|
|
3533
|
-
|
|
3527
|
+
g.CURRENT_MONTH,
|
|
3534
3528
|
new Mo({
|
|
3535
|
-
key:
|
|
3529
|
+
key: g.CURRENT_MONTH,
|
|
3536
3530
|
display: "This month",
|
|
3537
3531
|
timeframeText: "Month",
|
|
3538
3532
|
timeframeLength: () => {
|
|
@@ -3546,9 +3540,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3546
3540
|
})
|
|
3547
3541
|
],
|
|
3548
3542
|
[
|
|
3549
|
-
|
|
3543
|
+
g.CURRENT_YEAR,
|
|
3550
3544
|
new So({
|
|
3551
|
-
key:
|
|
3545
|
+
key: g.CURRENT_YEAR,
|
|
3552
3546
|
display: "This year",
|
|
3553
3547
|
timeframeText: "Year",
|
|
3554
3548
|
timeframeLength: () => {
|
|
@@ -3562,9 +3556,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3562
3556
|
})
|
|
3563
3557
|
],
|
|
3564
3558
|
[
|
|
3565
|
-
|
|
3559
|
+
g.PREVIOUS_WEEK,
|
|
3566
3560
|
new Oo({
|
|
3567
|
-
key:
|
|
3561
|
+
key: g.PREVIOUS_WEEK,
|
|
3568
3562
|
display: "Previous week",
|
|
3569
3563
|
timeframeText: "Week",
|
|
3570
3564
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -3577,9 +3571,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3577
3571
|
})
|
|
3578
3572
|
],
|
|
3579
3573
|
[
|
|
3580
|
-
|
|
3574
|
+
g.PREVIOUS_MONTH,
|
|
3581
3575
|
new Eo({
|
|
3582
|
-
key:
|
|
3576
|
+
key: g.PREVIOUS_MONTH,
|
|
3583
3577
|
display: "Previous month",
|
|
3584
3578
|
timeframeText: "Month",
|
|
3585
3579
|
timeframeLength: () => {
|
|
@@ -3594,9 +3588,9 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3594
3588
|
})
|
|
3595
3589
|
],
|
|
3596
3590
|
[
|
|
3597
|
-
|
|
3598
|
-
new
|
|
3599
|
-
key:
|
|
3591
|
+
g.PREVIOUS_YEAR,
|
|
3592
|
+
new No({
|
|
3593
|
+
key: g.PREVIOUS_YEAR,
|
|
3600
3594
|
display: "Previous year",
|
|
3601
3595
|
timeframeText: "Year",
|
|
3602
3596
|
timeframeLength: () => {
|
|
@@ -3613,7 +3607,7 @@ const No = /* @__PURE__ */ new Map([
|
|
|
3613
3607
|
]);
|
|
3614
3608
|
function es(e) {
|
|
3615
3609
|
const t = new Date(e.start), n = new Date(e.end), r = (n.getTime() - t.getTime()) / 1e3;
|
|
3616
|
-
return e.timePeriodsKey && To(
|
|
3610
|
+
return e.timePeriodsKey && To(vo.get(e.timePeriodsKey)) || new S({
|
|
3617
3611
|
key: "custom",
|
|
3618
3612
|
timeframeText: "custom",
|
|
3619
3613
|
display: "custom",
|
|
@@ -3648,32 +3642,32 @@ function rn(e, t) {
|
|
|
3648
3642
|
return Wi(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3649
3643
|
}
|
|
3650
3644
|
const rs = {
|
|
3651
|
-
"15M":
|
|
3652
|
-
"1H":
|
|
3653
|
-
"6H":
|
|
3654
|
-
"12H":
|
|
3655
|
-
"24H":
|
|
3656
|
-
"7D":
|
|
3657
|
-
"15m":
|
|
3658
|
-
"1h":
|
|
3659
|
-
"6h":
|
|
3660
|
-
"12h":
|
|
3661
|
-
"24h":
|
|
3662
|
-
"7d":
|
|
3663
|
-
"30d":
|
|
3664
|
-
"90d":
|
|
3665
|
-
"180d":
|
|
3666
|
-
"365d":
|
|
3667
|
-
current_week:
|
|
3668
|
-
current_month:
|
|
3669
|
-
current_year:
|
|
3670
|
-
previous_week:
|
|
3671
|
-
previous_month:
|
|
3672
|
-
previous_year:
|
|
3645
|
+
"15M": g.FIFTEEN_MIN,
|
|
3646
|
+
"1H": g.ONE_HOUR,
|
|
3647
|
+
"6H": g.SIX_HOUR,
|
|
3648
|
+
"12H": g.TWELVE_HOUR,
|
|
3649
|
+
"24H": g.ONE_DAY,
|
|
3650
|
+
"7D": g.SEVEN_DAY,
|
|
3651
|
+
"15m": g.FIFTEEN_MIN,
|
|
3652
|
+
"1h": g.ONE_HOUR,
|
|
3653
|
+
"6h": g.SIX_HOUR,
|
|
3654
|
+
"12h": g.TWELVE_HOUR,
|
|
3655
|
+
"24h": g.ONE_DAY,
|
|
3656
|
+
"7d": g.SEVEN_DAY,
|
|
3657
|
+
"30d": g.THIRTY_DAY,
|
|
3658
|
+
"90d": g.NINETY_DAY,
|
|
3659
|
+
"180d": g.ONE_HUNDRED_EIGHTY_DAY,
|
|
3660
|
+
"365d": g.ONE_YEAR,
|
|
3661
|
+
current_week: g.CURRENT_WEEK,
|
|
3662
|
+
current_month: g.CURRENT_MONTH,
|
|
3663
|
+
current_year: g.CURRENT_YEAR,
|
|
3664
|
+
previous_week: g.PREVIOUS_WEEK,
|
|
3665
|
+
previous_month: g.PREVIOUS_MONTH,
|
|
3666
|
+
previous_year: g.PREVIOUS_YEAR
|
|
3673
3667
|
};
|
|
3674
3668
|
class et {
|
|
3675
3669
|
constructor(t) {
|
|
3676
|
-
|
|
3670
|
+
M(this, "_seed");
|
|
3677
3671
|
this._seed = t;
|
|
3678
3672
|
}
|
|
3679
3673
|
next(t, n) {
|
|
@@ -3682,30 +3676,30 @@ class et {
|
|
|
3682
3676
|
}
|
|
3683
3677
|
}
|
|
3684
3678
|
const as = (e, t, n) => {
|
|
3685
|
-
const r =
|
|
3686
|
-
let
|
|
3687
|
-
for (let d = o; d <=
|
|
3679
|
+
const r = Nn(10, 1e4), i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), m = [];
|
|
3680
|
+
let p = 0;
|
|
3681
|
+
for (let d = o; d <= u; d += 60 * 60 * 1e3)
|
|
3688
3682
|
if (t)
|
|
3689
3683
|
for (const h in t)
|
|
3690
3684
|
t[h].forEach((b) => {
|
|
3691
|
-
|
|
3685
|
+
p += i.next(50, 500);
|
|
3692
3686
|
const E = {
|
|
3693
3687
|
[h]: b,
|
|
3694
|
-
[e.name]:
|
|
3695
|
-
},
|
|
3688
|
+
[e.name]: p
|
|
3689
|
+
}, v = {
|
|
3696
3690
|
version: "1.0",
|
|
3697
3691
|
timestamp: new Date(d).toISOString(),
|
|
3698
3692
|
event: E
|
|
3699
3693
|
};
|
|
3700
|
-
m.push(
|
|
3694
|
+
m.push(v);
|
|
3701
3695
|
});
|
|
3702
3696
|
else {
|
|
3703
|
-
|
|
3697
|
+
p += i.next(50, 500);
|
|
3704
3698
|
const h = {
|
|
3705
3699
|
version: "1.0",
|
|
3706
3700
|
timestamp: new Date(d).toISOString(),
|
|
3707
3701
|
event: {
|
|
3708
|
-
[e.name]:
|
|
3702
|
+
[e.name]: p
|
|
3709
3703
|
}
|
|
3710
3704
|
};
|
|
3711
3705
|
m.push(h);
|
|
@@ -3721,9 +3715,9 @@ const as = (e, t, n) => {
|
|
|
3721
3715
|
});
|
|
3722
3716
|
const f = {
|
|
3723
3717
|
start_ms: o,
|
|
3724
|
-
end_ms:
|
|
3718
|
+
end_ms: u,
|
|
3725
3719
|
start: new Date(o).toISOString(),
|
|
3726
|
-
end: new Date(
|
|
3720
|
+
end: new Date(u).toISOString(),
|
|
3727
3721
|
query_id: "12345",
|
|
3728
3722
|
metric_names: [e.name],
|
|
3729
3723
|
metric_units: {
|
|
@@ -3739,7 +3733,7 @@ const as = (e, t, n) => {
|
|
|
3739
3733
|
meta: f
|
|
3740
3734
|
};
|
|
3741
3735
|
}, is = (e, t) => {
|
|
3742
|
-
const n =
|
|
3736
|
+
const n = Nn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), u = [], m = {};
|
|
3743
3737
|
e.forEach((l) => {
|
|
3744
3738
|
m[l.name] = 0;
|
|
3745
3739
|
});
|
|
@@ -3753,9 +3747,9 @@ const as = (e, t, n) => {
|
|
|
3753
3747
|
timestamp: new Date(l).toISOString(),
|
|
3754
3748
|
event: f
|
|
3755
3749
|
};
|
|
3756
|
-
|
|
3750
|
+
u.push(d);
|
|
3757
3751
|
}
|
|
3758
|
-
const
|
|
3752
|
+
const p = {
|
|
3759
3753
|
start_ms: i,
|
|
3760
3754
|
end_ms: o,
|
|
3761
3755
|
start: new Date(i).toISOString(),
|
|
@@ -3769,25 +3763,25 @@ const as = (e, t, n) => {
|
|
|
3769
3763
|
...t ?? {}
|
|
3770
3764
|
};
|
|
3771
3765
|
return {
|
|
3772
|
-
data:
|
|
3773
|
-
meta:
|
|
3766
|
+
data: u,
|
|
3767
|
+
meta: p
|
|
3774
3768
|
};
|
|
3775
3769
|
}, os = (e, t, n) => {
|
|
3776
|
-
const r = Math.floor(Math.random() * 9991) + 10, i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3,
|
|
3770
|
+
const r = Math.floor(Math.random() * 9991) + 10, i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, u = Date.now(), m = new Date((o + u) / 2).toISOString(), p = [];
|
|
3777
3771
|
if (t) {
|
|
3778
|
-
const d = Object.keys(t), h = Object.values(t), b = (E,
|
|
3779
|
-
if (
|
|
3772
|
+
const d = Object.keys(t), h = Object.values(t), b = (E, v) => {
|
|
3773
|
+
if (v === d.length) {
|
|
3780
3774
|
e.forEach((C) => {
|
|
3781
3775
|
E[C.name] = i.next(1e3, 5e7);
|
|
3782
|
-
}),
|
|
3776
|
+
}), p.push({
|
|
3783
3777
|
version: "1.0",
|
|
3784
3778
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3785
3779
|
event: { ...E }
|
|
3786
3780
|
});
|
|
3787
3781
|
return;
|
|
3788
3782
|
}
|
|
3789
|
-
h[
|
|
3790
|
-
b({ ...E, [d[
|
|
3783
|
+
h[v].forEach((C) => {
|
|
3784
|
+
b({ ...E, [d[v]]: C }, v + 1);
|
|
3791
3785
|
});
|
|
3792
3786
|
};
|
|
3793
3787
|
b({}, 0);
|
|
@@ -3795,7 +3789,7 @@ const as = (e, t, n) => {
|
|
|
3795
3789
|
const d = {};
|
|
3796
3790
|
e.forEach((h) => {
|
|
3797
3791
|
d[h.name] = i.next(50, 500);
|
|
3798
|
-
}),
|
|
3792
|
+
}), p.push({
|
|
3799
3793
|
version: "1.0",
|
|
3800
3794
|
timestamp: m,
|
|
3801
3795
|
event: d
|
|
@@ -3812,74 +3806,74 @@ const as = (e, t, n) => {
|
|
|
3812
3806
|
});
|
|
3813
3807
|
const f = {
|
|
3814
3808
|
start_ms: o,
|
|
3815
|
-
end_ms:
|
|
3809
|
+
end_ms: u,
|
|
3816
3810
|
start: new Date(o).toISOString(),
|
|
3817
|
-
end: new Date(
|
|
3811
|
+
end: new Date(u).toISOString(),
|
|
3818
3812
|
query_id: "12345",
|
|
3819
3813
|
metric_names: e.map((d) => d.name),
|
|
3820
3814
|
metric_units: e.reduce((d, h) => (d[h.name] = h.unit, d), {}),
|
|
3821
3815
|
truncated: !1,
|
|
3822
3816
|
limit: 50,
|
|
3823
3817
|
display: l,
|
|
3824
|
-
granularity_ms:
|
|
3818
|
+
granularity_ms: u - o,
|
|
3825
3819
|
...n ?? {}
|
|
3826
3820
|
};
|
|
3827
3821
|
return {
|
|
3828
|
-
data:
|
|
3822
|
+
data: p,
|
|
3829
3823
|
meta: f
|
|
3830
3824
|
};
|
|
3831
3825
|
};
|
|
3832
|
-
function
|
|
3826
|
+
function Nn(e, t) {
|
|
3833
3827
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3834
3828
|
}
|
|
3835
3829
|
const Io = new Map(dn.map((e) => [e.code, { code: e.code, name: e.name }])), ss = (e) => {
|
|
3836
3830
|
var t;
|
|
3837
3831
|
return ((t = Io.get(e)) == null ? void 0 : t.name) || e;
|
|
3838
3832
|
};
|
|
3839
|
-
var
|
|
3833
|
+
var vn = { exports: {} };
|
|
3840
3834
|
(function(e) {
|
|
3841
3835
|
(function() {
|
|
3842
3836
|
function t(l, f) {
|
|
3843
3837
|
if (f.separator === !1 || l < 1e3)
|
|
3844
3838
|
return l.toString();
|
|
3845
3839
|
var d = typeof f.separator == "string" ? f.separator : ",", h = [], b = Math.round(l).toString().split("");
|
|
3846
|
-
return b.reverse().forEach(function(E,
|
|
3847
|
-
|
|
3840
|
+
return b.reverse().forEach(function(E, v) {
|
|
3841
|
+
v && v % 3 === 0 && h.push(d), h.push(E);
|
|
3848
3842
|
}), h.reverse().join("");
|
|
3849
3843
|
}
|
|
3850
3844
|
function n(l, f, d) {
|
|
3851
3845
|
var h = l / f, b = d.round ? "round" : "floor";
|
|
3852
3846
|
return d.decimal === !1 ? (l = Math[b](h), l.toString()) : (d.precision ? l = h : l = h < 10 ? Math[b](h * 10) / 10 : Math[b](h), l = l.toString(), typeof d.decimal == "string" && (l = l.replace(".", d.decimal)), l);
|
|
3853
3847
|
}
|
|
3854
|
-
var r = 1e3, i = 1e4, o = 1e6,
|
|
3855
|
-
function
|
|
3848
|
+
var r = 1e3, i = 1e4, o = 1e6, u = 1e9, m = 1e12;
|
|
3849
|
+
function p(l, f) {
|
|
3856
3850
|
var d;
|
|
3857
3851
|
f = f || {};
|
|
3858
3852
|
var h = l < 0;
|
|
3859
3853
|
h && (l = Math.abs(l)), f.precision && (l = parseFloat(l.toPrecision(f.precision)));
|
|
3860
3854
|
var b = f.min10k ? i : r;
|
|
3861
|
-
return l < b || f.precision && f.precision > Math.log10(l) ? d = t(n(l, 1, f), f) : l < o ? d = n(l, r, f) + "k" : l <
|
|
3855
|
+
return l < b || f.precision && f.precision > Math.log10(l) ? d = t(n(l, 1, f), f) : l < o ? d = n(l, r, f) + "k" : l < u ? d = n(l, o, f) + "m" : l < m ? d = t(n(l, u, f), f) + "b" : d = t(n(l, m, f), f) + "t", h && (d = "-" + d), f.capital && (d = d.toUpperCase()), f.prefix && (d = f.prefix + d), f.suffix && (d = d + f.suffix), d;
|
|
3862
3856
|
}
|
|
3863
|
-
|
|
3857
|
+
p.addCommas = t, e.exports = p;
|
|
3864
3858
|
})();
|
|
3865
|
-
})(
|
|
3866
|
-
var xo =
|
|
3859
|
+
})(vn);
|
|
3860
|
+
var xo = vn.exports;
|
|
3867
3861
|
const Ve = /* @__PURE__ */ En(xo);
|
|
3868
3862
|
var an;
|
|
3869
3863
|
const $e = new Intl.NumberFormat(((an = document == null ? void 0 : document.documentElement) == null ? void 0 : an.lang) || "en-US");
|
|
3870
|
-
function
|
|
3864
|
+
function cs({
|
|
3871
3865
|
i18n: e
|
|
3872
3866
|
}) {
|
|
3873
|
-
const t = (o,
|
|
3867
|
+
const t = (o, u) => {
|
|
3874
3868
|
if (isNaN(o))
|
|
3875
3869
|
return "0 B";
|
|
3876
|
-
const m =
|
|
3870
|
+
const m = u ? Math.pow(2, 50) : 1e15, p = u ? Math.pow(2, 40) : 1e12, l = u ? Math.pow(2, 30) : 1e9, f = u ? Math.pow(2, 20) : 1e6, d = u ? Math.pow(2, 10) : 1e3;
|
|
3877
3871
|
let h;
|
|
3878
3872
|
return o >= m ? h = e.formatNumber(
|
|
3879
3873
|
Number.parseFloat((o / m).toPrecision(3)),
|
|
3880
3874
|
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
3881
|
-
) : o >=
|
|
3882
|
-
Number.parseFloat((o /
|
|
3875
|
+
) : o >= p ? h = e.formatNumber(
|
|
3876
|
+
Number.parseFloat((o / p).toPrecision(3)),
|
|
3883
3877
|
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
3884
3878
|
) : o >= l ? h = e.formatNumber(
|
|
3885
3879
|
Number.parseFloat((o / l).toPrecision(3)),
|
|
@@ -3894,19 +3888,19 @@ function us({
|
|
|
3894
3888
|
Number.parseFloat(o.toPrecision(3)),
|
|
3895
3889
|
{ style: "unit", unit: "byte", unitDisplay: "narrow" }
|
|
3896
3890
|
), h.replace(/([a-zA-Z]*)$/, " $1");
|
|
3897
|
-
}, n = (o,
|
|
3898
|
-
return { formatUnit: (o,
|
|
3891
|
+
}, n = (o, u = "USD") => isNaN(o) ? u === "USD" ? "$0.00" : `${o}` : o >= 0.01 || u !== "USD" ? e.formatNumber(o, { style: "currency", currency: u }) : o < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(o.toPrecision(4))}`;
|
|
3892
|
+
return { formatUnit: (o, u, {
|
|
3899
3893
|
isBytes1024: m = !1,
|
|
3900
|
-
currency:
|
|
3894
|
+
currency: p = "USD",
|
|
3901
3895
|
approximate: l = !1,
|
|
3902
3896
|
translateUnit: f = (d) => d
|
|
3903
3897
|
} = {}) => {
|
|
3904
|
-
const d = f(
|
|
3905
|
-
switch (
|
|
3898
|
+
const d = f(u, o);
|
|
3899
|
+
switch (u) {
|
|
3906
3900
|
case "bytes":
|
|
3907
3901
|
return t(o, m);
|
|
3908
3902
|
case "usd":
|
|
3909
|
-
return n(o,
|
|
3903
|
+
return n(o, p);
|
|
3910
3904
|
case "ms":
|
|
3911
3905
|
case "count/minute":
|
|
3912
3906
|
case "token count":
|
|
@@ -3914,29 +3908,29 @@ function us({
|
|
|
3914
3908
|
default:
|
|
3915
3909
|
return isNaN(o) ? `${o}` : l ? `${Ve(o, { capital: !0 })} ${d}` : o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))} ${d}` : `${Number.parseFloat(o.toPrecision(4))} ${d}`;
|
|
3916
3910
|
}
|
|
3917
|
-
}, formatBytes: t, formatCost: n, formatRange: (o,
|
|
3918
|
-
isBytes1024:
|
|
3911
|
+
}, formatBytes: t, formatCost: n, formatRange: (o, u, m, {
|
|
3912
|
+
isBytes1024: p = !1,
|
|
3919
3913
|
currency: l = "USD",
|
|
3920
3914
|
approximate: f = !1,
|
|
3921
3915
|
translateUnit: d = (h) => h
|
|
3922
3916
|
} = {}) => {
|
|
3923
|
-
const h = d(m,
|
|
3917
|
+
const h = d(m, u);
|
|
3924
3918
|
switch (m) {
|
|
3925
3919
|
case "bytes":
|
|
3926
|
-
return `${t(o,
|
|
3920
|
+
return `${t(o, p)} - ${t(u, p)}`;
|
|
3927
3921
|
case "usd":
|
|
3928
|
-
return `${n(o, l)} - ${n(
|
|
3922
|
+
return `${n(o, l)} - ${n(u, l)}`;
|
|
3929
3923
|
case "ms":
|
|
3930
3924
|
case "count/minute":
|
|
3931
3925
|
case "token count":
|
|
3932
3926
|
case "count":
|
|
3933
3927
|
default:
|
|
3934
|
-
if (isNaN(o) || isNaN(
|
|
3935
|
-
return `${o} - ${
|
|
3928
|
+
if (isNaN(o) || isNaN(u))
|
|
3929
|
+
return `${o} - ${u}`;
|
|
3936
3930
|
if (f)
|
|
3937
|
-
return `${Ve(o, { capital: !0 })} - ${Ve(
|
|
3931
|
+
return `${Ve(o, { capital: !0 })} - ${Ve(u, { capital: !0 })} ${h}`;
|
|
3938
3932
|
}
|
|
3939
|
-
const b = o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, E =
|
|
3933
|
+
const b = o >= 0.01 ? `${$e.format(Number.parseFloat(o.toFixed(2)))}` : `${Number.parseFloat(o.toPrecision(4))}`, E = u >= 0.01 ? `${$e.format(Number.parseFloat(u.toFixed(2)))}` : `${Number.parseFloat(u.toPrecision(4))}`;
|
|
3940
3934
|
return `${b} - ${E} ${h}`;
|
|
3941
3935
|
} };
|
|
3942
3936
|
}
|
|
@@ -3949,15 +3943,15 @@ export {
|
|
|
3949
3943
|
Ro as REFRESH_INTERVAL_MS,
|
|
3950
3944
|
et as SeededRandom,
|
|
3951
3945
|
rs as TIMEFRAME_LOOKUP,
|
|
3952
|
-
|
|
3946
|
+
vo as TimePeriods,
|
|
3953
3947
|
S as Timeframe,
|
|
3954
|
-
|
|
3948
|
+
g as TimeframeKeys,
|
|
3955
3949
|
Ko as TimeseriesQueryTime,
|
|
3956
3950
|
wo as UnaryQueryTime,
|
|
3957
3951
|
aa as aiExploreAggregations,
|
|
3958
3952
|
Ma as apiUsageQuerySchema,
|
|
3959
3953
|
ma as barChartSchema,
|
|
3960
|
-
|
|
3954
|
+
cn as basicExploreAggregations,
|
|
3961
3955
|
Sa as basicQuerySchema,
|
|
3962
3956
|
On as ceilToNearestTimeGrain,
|
|
3963
3957
|
ba as choroplethMapSchema,
|
|
@@ -3970,12 +3964,12 @@ export {
|
|
|
3970
3964
|
rn as dstOffsetHours,
|
|
3971
3965
|
ra as exploreAggregations,
|
|
3972
3966
|
ta as exploreFilterTypesV2,
|
|
3973
|
-
|
|
3967
|
+
ko as extendedRelativeTimeRangeValues,
|
|
3974
3968
|
Oe as filterableAiExploreDimensions,
|
|
3975
3969
|
Me as filterableBasicExploreDimensions,
|
|
3976
3970
|
Se as filterableExploreDimensions,
|
|
3977
3971
|
oa as filterableRequestDimensions,
|
|
3978
|
-
|
|
3972
|
+
ua as filterableRequestMetrics,
|
|
3979
3973
|
Uo as filterableRequestWildcardDimensions,
|
|
3980
3974
|
_o as floorToNearestTimeGrain,
|
|
3981
3975
|
Bo as formatLogTimestamp,
|
|
@@ -3997,16 +3991,16 @@ export {
|
|
|
3997
3991
|
qo as queryDatasources,
|
|
3998
3992
|
ln as queryableAiExploreDimensions,
|
|
3999
3993
|
Ze as queryableBasicExploreDimensions,
|
|
4000
|
-
|
|
3994
|
+
un as queryableExploreDimensions,
|
|
4001
3995
|
ia as queryableRequestDimensions,
|
|
4002
|
-
|
|
3996
|
+
ca as queryableRequestMetrics,
|
|
4003
3997
|
sa as queryableRequestWildcardDimensions,
|
|
4004
|
-
|
|
3998
|
+
Nn as rand,
|
|
4005
3999
|
Wo as relativeTimeRangeValuesRequestV2,
|
|
4006
4000
|
on as relativeTimeRangeValuesV4,
|
|
4007
|
-
|
|
4001
|
+
Ao as reportChartTypes,
|
|
4008
4002
|
na as requestFilterTypeEmptyV2,
|
|
4009
|
-
|
|
4003
|
+
Go as requestFilterTypeEqualsV2,
|
|
4010
4004
|
Fo as requestFilterTypeMetricV2,
|
|
4011
4005
|
Ho as requestFilterTypeWildcardV2,
|
|
4012
4006
|
wa as singleValueSchema,
|
|
@@ -4014,14 +4008,14 @@ export {
|
|
|
4014
4008
|
jo as stripUnknownFilters,
|
|
4015
4009
|
fa as thresholdSchema,
|
|
4016
4010
|
Ia as tileConfigSchema,
|
|
4017
|
-
|
|
4018
|
-
|
|
4011
|
+
Na as tileDefinitionSchema,
|
|
4012
|
+
va as tileLayoutSchema,
|
|
4019
4013
|
Lo as timeRangeTypeV2,
|
|
4020
4014
|
ts as timeframeToDatepickerSelection,
|
|
4021
4015
|
ns as timeframeToDatepickerTimeperiod,
|
|
4022
4016
|
ha as timeseriesChartSchema,
|
|
4023
4017
|
pa as topNTableSchema,
|
|
4024
|
-
|
|
4018
|
+
cs as unitFormatter,
|
|
4025
4019
|
Ea as validDashboardQuery
|
|
4026
4020
|
};
|
|
4027
4021
|
//# sourceMappingURL=vitals-utilities.es.js.map
|