@kong-ui-public/analytics-utilities 12.1.3-pr.2603.f214e76ce.0 → 12.1.3

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