@kong-ui-public/analytics-utilities 12.1.4-pr.2603.ce4ebb0cd.0 → 12.1.4-pr.2686.24ab0d28c.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.
@@ -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 ko = ["90d", "180d", "365d", "current_year", "previous_year"], Go = [
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",
@@ -1045,24 +1045,24 @@ const Ra = {
1045
1045
  formats: Ya,
1046
1046
  defaultWidth: "full"
1047
1047
  })
1048
- }, Aa = {
1048
+ }, Ga = {
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) => Ga[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
1369
  formatLong: ka,
1370
- formatRelative: 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, Gt = 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" && Gt in e ? e[Gt](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,45 +2101,45 @@ 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 = /^'([^]*?)'?$/, ki = /''/g, Gi = /[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(Gi))
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) {
@@ -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,15 +2629,39 @@ 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
- 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";
2640
- return Dn(e, n, r);
2639
+ const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone;
2640
+ let r = "MMM dd, yyy hh:mm a";
2641
+ switch (t.format) {
2642
+ case "year":
2643
+ r = "yyyy";
2644
+ break;
2645
+ case "month":
2646
+ r = "MMM yyyy";
2647
+ break;
2648
+ case "day":
2649
+ r = "MMM dd, yyyy";
2650
+ break;
2651
+ case "hour":
2652
+ r = "MMM dd, yyyy hh a";
2653
+ break;
2654
+ case "minute":
2655
+ r = "MMM dd, yyyy hh:mm a";
2656
+ break;
2657
+ case "second":
2658
+ r = "MMM dd, yyyy hh:mm:ss a";
2659
+ break;
2660
+ case "ms":
2661
+ r = "MMM dd, yyyy hh:mm:ss.SSS a";
2662
+ break;
2663
+ }
2664
+ return t.includeTZ && (r += " (z)"), Dn(e, n, r);
2641
2665
  }
2642
2666
  function nn(e, t = {}) {
2643
2667
  if (!e)
@@ -2697,18 +2721,22 @@ function _o(e, t, n) {
2697
2721
  function On(e, t, n) {
2698
2722
  return Sn(Math.ceil, e, t, n);
2699
2723
  }
2700
- class Ne {
2724
+ class ve {
2701
2725
  constructor(t, n, r) {
2702
- M(this, "timeRange");
2703
- M(this, "tz");
2704
- M(this, "granularity");
2705
- if (this.constructor === Ne)
2726
+ T(this, "timeframe");
2727
+ T(this, "tz");
2728
+ T(this, "dataGranularity");
2729
+ if (this.constructor === ve)
2706
2730
  throw new Error("BaseQueryTime is not meant to be used directly.");
2707
- this.timeRange = t, this.tz = r, this.granularity = n;
2731
+ this.timeframe = t, this.tz = n, this.dataGranularity = r ?? t.dataGranularity;
2708
2732
  }
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);
2733
+ calculateStartDate(t, n, r = 1) {
2734
+ if (t)
2735
+ return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * r);
2736
+ {
2737
+ const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = _o(o, n, this.tz), g = (i.getTime() - c.getTime()) * (r - 1);
2738
+ return new Date(c.getTime() - g);
2739
+ }
2712
2740
  }
2713
2741
  granularitySeconds() {
2714
2742
  return Math.floor(this.granularityMs() / 1e3);
@@ -2733,26 +2761,28 @@ class Ne {
2733
2761
  return Wt(this.endDate());
2734
2762
  }
2735
2763
  }
2736
- class Ko extends Ne {
2737
- constructor(t, n, r) {
2738
- super(t, n, r);
2764
+ class Ko extends ve {
2765
+ constructor(n, r, i, o, c) {
2766
+ super(n, i, o);
2767
+ T(this, "granularity");
2768
+ r && n.allowedGranularities(c).has(r) ? this.granularity = r : c ? this.granularity = n.fineGrainedDefaultGranularity ?? n.defaultResponseGranularity : this.granularity = n.defaultResponseGranularity;
2739
2769
  }
2740
2770
  startDate() {
2741
- return this.calculateStartDate(this.granularity);
2771
+ return this.calculateStartDate(this.timeframe.isRelative, this.granularity);
2742
2772
  }
2743
2773
  endDate() {
2744
- return On(this.timeRange.end, this.granularity, this.tz);
2774
+ return On(this.timeframe.rawEnd(), this.granularity, this.tz);
2745
2775
  }
2746
2776
  granularityMs() {
2747
2777
  return Te[this.granularity];
2748
2778
  }
2749
2779
  }
2750
- class wo extends Ne {
2780
+ class wo extends ve {
2751
2781
  startDate() {
2752
- return this.calculateStartDate(this.granularity);
2782
+ return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
2753
2783
  }
2754
2784
  endDate() {
2755
- return On(this.timeRange.start, this.granularity, this.tz);
2785
+ return On(this.timeframe.rawEnd(this.tz), this.dataGranularity, this.tz);
2756
2786
  }
2757
2787
  granularityMs() {
2758
2788
  return this.endDate().getTime() - this.startDate().getTime();
@@ -2760,7 +2790,7 @@ class wo extends Ne {
2760
2790
  }
2761
2791
  class Jo extends wo {
2762
2792
  startDate() {
2763
- return this.calculateStartDate(this.granularity, 2);
2793
+ return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
2764
2794
  }
2765
2795
  granularityMs() {
2766
2796
  return this.endDate().getTime() - super.startDate().getTime();
@@ -2773,33 +2803,33 @@ function En(e) {
2773
2803
  var De = { exports: {} };
2774
2804
  De.exports;
2775
2805
  (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;
2806
+ 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 = {};
2807
+ 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;
2778
2808
  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) {
2809
+ function Gn(a, s) {
2780
2810
  return a.set(s[0], s[1]), a;
2781
2811
  }
2782
- function Gn(a, s) {
2812
+ function An(a, s) {
2783
2813
  return a.add(s), a;
2784
2814
  }
2785
2815
  function Fn(a, s) {
2786
- for (var c = -1, y = a ? a.length : 0; ++c < y && s(a[c], c, a) !== !1; )
2816
+ for (var u = -1, y = a ? a.length : 0; ++u < y && s(a[u], u, a) !== !1; )
2787
2817
  ;
2788
2818
  return a;
2789
2819
  }
2790
2820
  function Hn(a, s) {
2791
- for (var c = -1, y = s.length, D = a.length; ++c < y; )
2792
- a[D + c] = s[c];
2821
+ for (var u = -1, y = s.length, M = a.length; ++u < y; )
2822
+ a[M + u] = s[u];
2793
2823
  return a;
2794
2824
  }
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;
2825
+ function ft(a, s, u, y) {
2826
+ for (var M = -1, x = a ? a.length : 0; ++M < x; )
2827
+ u = s(u, a[M], M, a);
2828
+ return u;
2799
2829
  }
2800
2830
  function Ln(a, s) {
2801
- for (var c = -1, y = Array(a); ++c < a; )
2802
- y[c] = s(c);
2831
+ for (var u = -1, y = Array(a); ++u < a; )
2832
+ y[u] = s(u);
2803
2833
  return y;
2804
2834
  }
2805
2835
  function Un(a, s) {
@@ -2815,31 +2845,31 @@ De.exports;
2815
2845
  return s;
2816
2846
  }
2817
2847
  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));
2848
+ var s = -1, u = Array(a.size);
2849
+ return a.forEach(function(y, M) {
2850
+ u[++s] = [M, y];
2851
+ }), u;
2852
+ }
2853
+ function Ne(a, s) {
2854
+ return function(u) {
2855
+ return a(s(u));
2826
2856
  };
2827
2857
  }
2828
2858
  function gt(a) {
2829
- var s = -1, c = Array(a.size);
2859
+ var s = -1, u = Array(a.size);
2830
2860
  return a.forEach(function(y) {
2831
- c[++s] = y;
2832
- }), c;
2861
+ u[++s] = y;
2862
+ }), u;
2833
2863
  }
2834
2864
  var Wn = Array.prototype, qn = Function.prototype, de = Object.prototype, Ie = Y["__core-js_shared__"], pt = function() {
2835
2865
  var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
2836
2866
  return a ? "Symbol(src)_1." + a : "";
2837
2867
  }(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
2838
2868
  "^" + _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;
2869
+ ), wt = kn ? 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
2870
  function j(a) {
2841
- var s = -1, c = a ? a.length : 0;
2842
- for (this.clear(); ++s < c; ) {
2871
+ var s = -1, u = a ? a.length : 0;
2872
+ for (this.clear(); ++s < u; ) {
2843
2873
  var y = a[s];
2844
2874
  this.set(y[0], y[1]);
2845
2875
  }
@@ -2853,8 +2883,8 @@ De.exports;
2853
2883
  function ar(a) {
2854
2884
  var s = this.__data__;
2855
2885
  if (ne) {
2856
- var c = s[a];
2857
- return c === r ? void 0 : c;
2886
+ var u = s[a];
2887
+ return u === r ? void 0 : u;
2858
2888
  }
2859
2889
  return H.call(s, a) ? s[a] : void 0;
2860
2890
  }
@@ -2863,13 +2893,13 @@ De.exports;
2863
2893
  return ne ? s[a] !== void 0 : H.call(s, a);
2864
2894
  }
2865
2895
  function or(a, s) {
2866
- var c = this.__data__;
2867
- return c[a] = ne && s === void 0 ? r : s, this;
2896
+ var u = this.__data__;
2897
+ return u[a] = ne && s === void 0 ? r : s, this;
2868
2898
  }
2869
2899
  j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
2870
2900
  function k(a) {
2871
- var s = -1, c = a ? a.length : 0;
2872
- for (this.clear(); ++s < c; ) {
2901
+ var s = -1, u = a ? a.length : 0;
2902
+ for (this.clear(); ++s < u; ) {
2873
2903
  var y = a[s];
2874
2904
  this.set(y[0], y[1]);
2875
2905
  }
@@ -2877,28 +2907,28 @@ De.exports;
2877
2907
  function sr() {
2878
2908
  this.__data__ = [];
2879
2909
  }
2880
- function cr(a) {
2881
- var s = this.__data__, c = fe(s, a);
2882
- if (c < 0)
2910
+ function ur(a) {
2911
+ var s = this.__data__, u = fe(s, a);
2912
+ if (u < 0)
2883
2913
  return !1;
2884
2914
  var y = s.length - 1;
2885
- return c == y ? s.pop() : Bn.call(s, c, 1), !0;
2915
+ return u == y ? s.pop() : Bn.call(s, u, 1), !0;
2886
2916
  }
2887
- function ur(a) {
2888
- var s = this.__data__, c = fe(s, a);
2889
- return c < 0 ? void 0 : s[c][1];
2917
+ function cr(a) {
2918
+ var s = this.__data__, u = fe(s, a);
2919
+ return u < 0 ? void 0 : s[u][1];
2890
2920
  }
2891
2921
  function lr(a) {
2892
2922
  return fe(this.__data__, a) > -1;
2893
2923
  }
2894
2924
  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;
2925
+ var u = this.__data__, y = fe(u, a);
2926
+ return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
2897
2927
  }
2898
- k.prototype.clear = sr, k.prototype.delete = cr, k.prototype.get = ur, k.prototype.has = lr, k.prototype.set = dr;
2928
+ k.prototype.clear = sr, k.prototype.delete = ur, k.prototype.get = cr, k.prototype.has = lr, k.prototype.set = dr;
2899
2929
  function B(a) {
2900
- var s = -1, c = a ? a.length : 0;
2901
- for (this.clear(); ++s < c; ) {
2930
+ var s = -1, u = a ? a.length : 0;
2931
+ for (this.clear(); ++s < u; ) {
2902
2932
  var y = a[s];
2903
2933
  this.set(y[0], y[1]);
2904
2934
  }
@@ -2939,45 +2969,45 @@ De.exports;
2939
2969
  return this.__data__.has(a);
2940
2970
  }
2941
2971
  function Tr(a, s) {
2942
- var c = this.__data__;
2943
- if (c instanceof k) {
2944
- var y = c.__data__;
2972
+ var u = this.__data__;
2973
+ if (u instanceof k) {
2974
+ var y = u.__data__;
2945
2975
  if (!te || y.length < n - 1)
2946
2976
  return y.push([a, s]), this;
2947
- c = this.__data__ = new B(y);
2977
+ u = this.__data__ = new B(y);
2948
2978
  }
2949
- return c.set(a, s), this;
2979
+ return u.set(a, s), this;
2950
2980
  }
2951
2981
  Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
2952
2982
  function Dr(a, s) {
2953
- var c = Ae(a) || Vr(a) ? Ln(a.length, String) : [], y = c.length, D = !!y;
2983
+ var u = Ge(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2954
2984
  for (var x in a)
2955
- H.call(a, x) && !(D && (x == "length" || Wr(x, y))) && c.push(x);
2956
- return c;
2985
+ H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
2986
+ return u;
2957
2987
  }
2958
- function Ot(a, s, c) {
2988
+ function Ot(a, s, u) {
2959
2989
  var y = a[s];
2960
- (!(H.call(a, s) && It(y, c)) || c === void 0 && !(s in a)) && (a[s] = c);
2990
+ (!(H.call(a, s) && It(y, u)) || u === void 0 && !(s in a)) && (a[s] = u);
2961
2991
  }
2962
2992
  function fe(a, s) {
2963
- for (var c = a.length; c--; )
2964
- if (It(a[c][0], s))
2965
- return c;
2993
+ for (var u = a.length; u--; )
2994
+ if (It(a[u][0], s))
2995
+ return u;
2966
2996
  return -1;
2967
2997
  }
2968
2998
  function Mr(a, s) {
2969
- return a && Et(s, Ge(s), a);
2999
+ return a && Et(s, Ae(s), a);
2970
3000
  }
2971
- function Ye(a, s, c, y, D, x, A) {
3001
+ function Ye(a, s, u, y, M, x, G) {
2972
3002
  var P;
2973
- if (y && (P = x ? y(a, D, x, A) : y(a)), P !== void 0)
3003
+ if (y && (P = x ? y(a, M, x, G) : y(a)), P !== void 0)
2974
3004
  return P;
2975
3005
  if (!ye(a))
2976
3006
  return a;
2977
- var Rt = Ae(a);
3007
+ var Rt = Ge(a);
2978
3008
  if (Rt) {
2979
3009
  if (P = Hr(a), !s)
2980
- return Ar(a, P);
3010
+ return Gr(a, P);
2981
3011
  } else {
2982
3012
  var Q = z(a), Ct = Q == f || Q == d;
2983
3013
  if (Br(a))
@@ -2986,111 +3016,111 @@ De.exports;
2986
3016
  if (ht(a))
2987
3017
  return x ? a : {};
2988
3018
  if (P = Lr(Ct ? {} : a), !s)
2989
- return Gr(a, Mr(P, a));
3019
+ return Ar(a, Mr(P, a));
2990
3020
  } else {
2991
3021
  if (!w[Q])
2992
3022
  return x ? a : {};
2993
3023
  P = Ur(a, Q, Ye, s);
2994
3024
  }
2995
3025
  }
2996
- A || (A = new Z());
2997
- var Yt = A.get(a);
3026
+ G || (G = new Z());
3027
+ var Yt = G.get(a);
2998
3028
  if (Yt)
2999
3029
  return Yt;
3000
- if (A.set(a, P), !Rt)
3001
- var kt = c ? Fr(a) : Ge(a);
3030
+ if (G.set(a, P), !Rt)
3031
+ var kt = u ? Fr(a) : Ae(a);
3002
3032
  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));
3033
+ kt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, G));
3004
3034
  }), P;
3005
3035
  }
3006
3036
  function Sr(a) {
3007
3037
  return ye(a) ? Vn(a) : {};
3008
3038
  }
3009
- function Or(a, s, c) {
3039
+ function Or(a, s, u) {
3010
3040
  var y = s(a);
3011
- return Ae(a) ? y : Hn(y, c(a));
3041
+ return Ge(a) ? y : Hn(y, u(a));
3012
3042
  }
3013
3043
  function Er(a) {
3014
3044
  return me.call(a);
3015
3045
  }
3016
- function Nr(a) {
3046
+ function vr(a) {
3017
3047
  if (!ye(a) || jr(a))
3018
3048
  return !1;
3019
3049
  var s = Pt(a) || ht(a) ? jn : Pn;
3020
3050
  return s.test(V(a));
3021
3051
  }
3022
- function vr(a) {
3023
- if (!vt(a))
3052
+ function Nr(a) {
3053
+ if (!Nt(a))
3024
3054
  return Xn(a);
3025
3055
  var s = [];
3026
- for (var c in Object(a))
3027
- H.call(a, c) && c != "constructor" && s.push(c);
3056
+ for (var u in Object(a))
3057
+ H.call(a, u) && u != "constructor" && s.push(u);
3028
3058
  return s;
3029
3059
  }
3030
3060
  function Ir(a, s) {
3031
3061
  if (s)
3032
3062
  return a.slice();
3033
- var c = new a.constructor(a.length);
3034
- return a.copy(c), c;
3063
+ var u = new a.constructor(a.length);
3064
+ return a.copy(u), u;
3035
3065
  }
3036
3066
  function ke(a) {
3037
3067
  var s = new a.constructor(a.byteLength);
3038
3068
  return new Tt(s).set(new Tt(a)), s;
3039
3069
  }
3040
3070
  function xr(a, s) {
3041
- var c = s ? ke(a.buffer) : a.buffer;
3042
- return new a.constructor(c, a.byteOffset, a.byteLength);
3071
+ var u = s ? ke(a.buffer) : a.buffer;
3072
+ return new a.constructor(u, a.byteOffset, a.byteLength);
3043
3073
  }
3044
- function Pr(a, s, c) {
3045
- var y = s ? c(yt(a), !0) : yt(a);
3046
- return ft(y, An, new a.constructor());
3074
+ function Pr(a, s, u) {
3075
+ var y = s ? u(yt(a), !0) : yt(a);
3076
+ return ft(y, Gn, new a.constructor());
3047
3077
  }
3048
3078
  function Rr(a) {
3049
3079
  var s = new a.constructor(a.source, xn.exec(a));
3050
3080
  return s.lastIndex = a.lastIndex, s;
3051
3081
  }
3052
- function Cr(a, s, c) {
3053
- var y = s ? c(gt(a), !0) : gt(a);
3054
- return ft(y, Gn, new a.constructor());
3082
+ function Cr(a, s, u) {
3083
+ var y = s ? u(gt(a), !0) : gt(a);
3084
+ return ft(y, An, new a.constructor());
3055
3085
  }
3056
3086
  function Yr(a) {
3057
3087
  return St ? Object(St.call(a)) : {};
3058
3088
  }
3059
3089
  function kr(a, s) {
3060
- var c = s ? ke(a.buffer) : a.buffer;
3061
- return new a.constructor(c, a.byteOffset, a.length);
3090
+ var u = s ? ke(a.buffer) : a.buffer;
3091
+ return new a.constructor(u, a.byteOffset, a.length);
3062
3092
  }
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];
3093
+ function Gr(a, s) {
3094
+ var u = -1, y = a.length;
3095
+ for (s || (s = Array(y)); ++u < y; )
3096
+ s[u] = a[u];
3067
3097
  return s;
3068
3098
  }
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);
3099
+ function Et(a, s, u, y) {
3100
+ u || (u = {});
3101
+ for (var M = -1, x = s.length; ++M < x; ) {
3102
+ var G = s[M], P = void 0;
3103
+ Ot(u, G, P === void 0 ? a[G] : P);
3074
3104
  }
3075
- return c;
3105
+ return u;
3076
3106
  }
3077
- function Gr(a, s) {
3078
- return Et(a, Nt(a), s);
3107
+ function Ar(a, s) {
3108
+ return Et(a, vt(a), s);
3079
3109
  }
3080
3110
  function Fr(a) {
3081
- return Or(a, Ge, Nt);
3111
+ return Or(a, Ae, vt);
3082
3112
  }
3083
3113
  function he(a, s) {
3084
- var c = a.__data__;
3085
- return qr(s) ? c[typeof s == "string" ? "string" : "hash"] : c.map;
3114
+ var u = a.__data__;
3115
+ return qr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
3086
3116
  }
3087
3117
  function X(a, s) {
3088
- var c = Un(a, s);
3089
- return Nr(c) ? c : void 0;
3118
+ var u = Un(a, s);
3119
+ return vr(u) ? u : void 0;
3090
3120
  }
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;
3121
+ var vt = Dt ? Ne(Dt, Object) : Qr, z = Er;
3122
+ (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) {
3123
+ var s = me.call(a), u = s == E ? a.constructor : void 0, y = u ? V(u) : void 0;
3094
3124
  if (y)
3095
3125
  switch (y) {
3096
3126
  case Qn:
@@ -3098,7 +3128,7 @@ De.exports;
3098
3128
  case Kn:
3099
3129
  return h;
3100
3130
  case Jn:
3101
- return v;
3131
+ return N;
3102
3132
  case er:
3103
3133
  return W;
3104
3134
  case tr:
@@ -3107,20 +3137,20 @@ De.exports;
3107
3137
  return s;
3108
3138
  });
3109
3139
  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;
3140
+ var s = a.length, u = a.constructor(s);
3141
+ return s && typeof a[0] == "string" && H.call(a, "index") && (u.index = a.index, u.input = a.input), u;
3112
3142
  }
3113
3143
  function Lr(a) {
3114
- return typeof a.constructor == "function" && !vt(a) ? Sr(zn(a)) : {};
3144
+ return typeof a.constructor == "function" && !Nt(a) ? Sr(zn(a)) : {};
3115
3145
  }
3116
- function Ur(a, s, c, y) {
3117
- var D = a.constructor;
3146
+ function Ur(a, s, u, y) {
3147
+ var M = a.constructor;
3118
3148
  switch (s) {
3119
3149
  case tt:
3120
3150
  return ke(a);
3121
3151
  case m:
3122
- case p:
3123
- return new D(+a);
3152
+ case g:
3153
+ return new M(+a);
3124
3154
  case le:
3125
3155
  return xr(a, y);
3126
3156
  case nt:
@@ -3129,20 +3159,20 @@ De.exports;
3129
3159
  case it:
3130
3160
  case ot:
3131
3161
  case st:
3132
- case ct:
3133
3162
  case ut:
3163
+ case ct:
3134
3164
  case lt:
3135
3165
  return kr(a, y);
3136
3166
  case h:
3137
- return Pr(a, y, c);
3167
+ return Pr(a, y, u);
3138
3168
  case b:
3139
- case N:
3140
- return new D(a);
3169
+ case v:
3170
+ return new M(a);
3141
3171
  case C:
3142
3172
  return Rr(a);
3143
3173
  case W:
3144
- return Cr(a, y, c);
3145
- case T:
3174
+ return Cr(a, y, u);
3175
+ case D:
3146
3176
  return Yr(a);
3147
3177
  }
3148
3178
  }
@@ -3156,9 +3186,9 @@ De.exports;
3156
3186
  function jr(a) {
3157
3187
  return !!pt && pt in a;
3158
3188
  }
3159
- function vt(a) {
3160
- var s = a && a.constructor, c = typeof s == "function" && s.prototype || de;
3161
- return a === c;
3189
+ function Nt(a) {
3190
+ var s = a && a.constructor, u = typeof s == "function" && s.prototype || de;
3191
+ return a === u;
3162
3192
  }
3163
3193
  function V(a) {
3164
3194
  if (a != null) {
@@ -3182,7 +3212,7 @@ De.exports;
3182
3212
  function Vr(a) {
3183
3213
  return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
3184
3214
  }
3185
- var Ae = Array.isArray;
3215
+ var Ge = Array.isArray;
3186
3216
  function xt(a) {
3187
3217
  return a != null && Zr(a.length) && !Pt(a);
3188
3218
  }
@@ -3204,8 +3234,8 @@ De.exports;
3204
3234
  function Xr(a) {
3205
3235
  return !!a && typeof a == "object";
3206
3236
  }
3207
- function Ge(a) {
3208
- return xt(a) ? Dr(a) : vr(a);
3237
+ function Ae(a) {
3238
+ return xt(a) ? Dr(a) : Nr(a);
3209
3239
  }
3210
3240
  function Qr() {
3211
3241
  return [];
@@ -3219,28 +3249,28 @@ var bo = De.exports;
3219
3249
  const To = /* @__PURE__ */ En(bo), F = (e, t) => new Date(e.getTime() - Mn(t, e));
3220
3250
  class S {
3221
3251
  constructor(t) {
3222
- M(this, "timeframeText");
3223
- M(this, "key");
3224
- M(this, "display");
3225
- M(this, "timeframeLength");
3226
- M(this, "allowedTiers");
3252
+ T(this, "timeframeText");
3253
+ T(this, "key");
3254
+ T(this, "display");
3255
+ T(this, "timeframeLength");
3256
+ T(this, "allowedTiers");
3227
3257
  // defaultResponseGranularity tracks which of the allowed granularities is picked for a given
3228
3258
  // timeframe if the user does not or cannot specify a granularity.
3229
- M(this, "defaultResponseGranularity");
3259
+ T(this, "defaultResponseGranularity");
3230
3260
  // dataGranularity tracks the granularity of the available data on the server for a specific timeframe.
3231
3261
  // As of writing, it's always the same as the default response granularity, but it may not always be.
3232
3262
  // It controls how timeframes are rounded to ensure complete time buckets from the server.
3233
- M(this, "dataGranularity");
3263
+ T(this, "dataGranularity");
3234
3264
  // isRelative impacts whether we take the `floor` or the `ceil` of the start time.
3235
3265
  // If the time range is relative, we want the ceil -- because we take the ceil of the
3236
3266
  // end time to make sure we're showing all the data we can for the last time bucket.
3237
3267
  // If the time range is absolute, we want the floor -- because otherwise we wouldn't be including
3238
3268
  // the first time bucket.
3239
- M(this, "isRelative");
3240
- M(this, "fineGrainedDefaultGranularity");
3241
- M(this, "_startCustom");
3242
- M(this, "_endCustom");
3243
- M(this, "_allowedGranularitiesOverride");
3269
+ T(this, "isRelative");
3270
+ T(this, "fineGrainedDefaultGranularity");
3271
+ T(this, "_startCustom");
3272
+ T(this, "_endCustom");
3273
+ T(this, "_allowedGranularitiesOverride");
3244
3274
  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
3275
  }
3246
3276
  // rawEnd does not consider granularity and should not be used directly in queries.
@@ -3296,7 +3326,7 @@ class S {
3296
3326
  }
3297
3327
  class Do extends S {
3298
3328
  rawStart(t) {
3299
- let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3329
+ let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3300
3330
  return t && (n = F(n, t)), n;
3301
3331
  }
3302
3332
  maximumTimeframeLength() {
@@ -3323,12 +3353,12 @@ class So extends S {
3323
3353
  }
3324
3354
  class Oo extends S {
3325
3355
  rawEnd(t) {
3326
- let n = G(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3356
+ let n = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
3327
3357
  return t && (n = F(n, t)), n;
3328
3358
  }
3329
3359
  rawStart(t) {
3330
3360
  const n = this.tzAdjustedDate(t);
3331
- let r = G(n.setDate(n.getDate() - 7), {
3361
+ let r = A(n.setDate(n.getDate() - 7), {
3332
3362
  weekStartsOn: 1
3333
3363
  });
3334
3364
  return t && (r = F(r, t)), r;
@@ -3344,7 +3374,7 @@ class Eo extends S {
3344
3374
  return t && (n = F(n, t)), n;
3345
3375
  }
3346
3376
  }
3347
- class No extends S {
3377
+ class vo extends S {
3348
3378
  rawEnd(t) {
3349
3379
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
3350
3380
  return t && (n = F(n, t)), n;
@@ -3354,11 +3384,11 @@ class No extends S {
3354
3384
  return t && (n = F(n, t)), n;
3355
3385
  }
3356
3386
  }
3357
- const vo = /* @__PURE__ */ new Map([
3387
+ const No = /* @__PURE__ */ new Map([
3358
3388
  [
3359
- g.FIFTEEN_MIN,
3389
+ p.FIFTEEN_MIN,
3360
3390
  new S({
3361
- key: g.FIFTEEN_MIN,
3391
+ key: p.FIFTEEN_MIN,
3362
3392
  display: "Last 15 minutes",
3363
3393
  timeframeText: "15 minutes",
3364
3394
  timeframeLength: () => 60 * 15,
@@ -3371,9 +3401,9 @@ const vo = /* @__PURE__ */ new Map([
3371
3401
  })
3372
3402
  ],
3373
3403
  [
3374
- g.ONE_HOUR,
3404
+ p.ONE_HOUR,
3375
3405
  new S({
3376
- key: g.ONE_HOUR,
3406
+ key: p.ONE_HOUR,
3377
3407
  display: "Last hour",
3378
3408
  timeframeText: "One hour",
3379
3409
  timeframeLength: () => 60 * 60 * 1,
@@ -3386,9 +3416,9 @@ const vo = /* @__PURE__ */ new Map([
3386
3416
  })
3387
3417
  ],
3388
3418
  [
3389
- g.SIX_HOUR,
3419
+ p.SIX_HOUR,
3390
3420
  new S({
3391
- key: g.SIX_HOUR,
3421
+ key: p.SIX_HOUR,
3392
3422
  display: "Last 6 hours",
3393
3423
  timeframeText: "6 hours",
3394
3424
  timeframeLength: () => 60 * 60 * 6,
@@ -3401,9 +3431,9 @@ const vo = /* @__PURE__ */ new Map([
3401
3431
  })
3402
3432
  ],
3403
3433
  [
3404
- g.TWELVE_HOUR,
3434
+ p.TWELVE_HOUR,
3405
3435
  new S({
3406
- key: g.TWELVE_HOUR,
3436
+ key: p.TWELVE_HOUR,
3407
3437
  display: "Last 12 hours",
3408
3438
  timeframeText: "12 hours",
3409
3439
  timeframeLength: () => 60 * 60 * 12,
@@ -3416,9 +3446,9 @@ const vo = /* @__PURE__ */ new Map([
3416
3446
  })
3417
3447
  ],
3418
3448
  [
3419
- g.ONE_DAY,
3449
+ p.ONE_DAY,
3420
3450
  new S({
3421
- key: g.ONE_DAY,
3451
+ key: p.ONE_DAY,
3422
3452
  display: "Last 24 hours",
3423
3453
  timeframeText: "24 hours",
3424
3454
  timeframeLength: () => 60 * 60 * 24,
@@ -3431,9 +3461,9 @@ const vo = /* @__PURE__ */ new Map([
3431
3461
  })
3432
3462
  ],
3433
3463
  [
3434
- g.SEVEN_DAY,
3464
+ p.SEVEN_DAY,
3435
3465
  new S({
3436
- key: g.SEVEN_DAY,
3466
+ key: p.SEVEN_DAY,
3437
3467
  display: "Last 7 days",
3438
3468
  timeframeText: "7 days",
3439
3469
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -3446,9 +3476,9 @@ const vo = /* @__PURE__ */ new Map([
3446
3476
  })
3447
3477
  ],
3448
3478
  [
3449
- g.THIRTY_DAY,
3479
+ p.THIRTY_DAY,
3450
3480
  new S({
3451
- key: g.THIRTY_DAY,
3481
+ key: p.THIRTY_DAY,
3452
3482
  display: "Last 30 days",
3453
3483
  timeframeText: "30 days",
3454
3484
  timeframeLength: () => 60 * 60 * 24 * 30,
@@ -3461,9 +3491,9 @@ const vo = /* @__PURE__ */ new Map([
3461
3491
  })
3462
3492
  ],
3463
3493
  [
3464
- g.NINETY_DAY,
3494
+ p.NINETY_DAY,
3465
3495
  new S({
3466
- key: g.NINETY_DAY,
3496
+ key: p.NINETY_DAY,
3467
3497
  display: "Last 90 days",
3468
3498
  timeframeText: "90 days",
3469
3499
  timeframeLength: () => 60 * 60 * 24 * 90,
@@ -3476,9 +3506,9 @@ const vo = /* @__PURE__ */ new Map([
3476
3506
  })
3477
3507
  ],
3478
3508
  [
3479
- g.ONE_HUNDRED_EIGHTY_DAY,
3509
+ p.ONE_HUNDRED_EIGHTY_DAY,
3480
3510
  new S({
3481
- key: g.ONE_HUNDRED_EIGHTY_DAY,
3511
+ key: p.ONE_HUNDRED_EIGHTY_DAY,
3482
3512
  display: "Last 180 days",
3483
3513
  timeframeText: "180 days",
3484
3514
  timeframeLength: () => 60 * 60 * 24 * 180,
@@ -3491,9 +3521,9 @@ const vo = /* @__PURE__ */ new Map([
3491
3521
  })
3492
3522
  ],
3493
3523
  [
3494
- g.ONE_YEAR,
3524
+ p.ONE_YEAR,
3495
3525
  new S({
3496
- key: g.ONE_YEAR,
3526
+ key: p.ONE_YEAR,
3497
3527
  display: "Last 365 days",
3498
3528
  timeframeText: "365 days",
3499
3529
  timeframeLength: () => 60 * 60 * 24 * 365,
@@ -3506,13 +3536,13 @@ const vo = /* @__PURE__ */ new Map([
3506
3536
  })
3507
3537
  ],
3508
3538
  [
3509
- g.CURRENT_WEEK,
3539
+ p.CURRENT_WEEK,
3510
3540
  new Do({
3511
- key: g.CURRENT_WEEK,
3541
+ key: p.CURRENT_WEEK,
3512
3542
  display: "This week",
3513
3543
  timeframeText: "Week",
3514
3544
  timeframeLength: () => {
3515
- const e = G(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3545
+ const e = A(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
3516
3546
  return (ie(Le(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
3517
3547
  },
3518
3548
  defaultResponseGranularity: "daily",
@@ -3524,9 +3554,9 @@ const vo = /* @__PURE__ */ new Map([
3524
3554
  })
3525
3555
  ],
3526
3556
  [
3527
- g.CURRENT_MONTH,
3557
+ p.CURRENT_MONTH,
3528
3558
  new Mo({
3529
- key: g.CURRENT_MONTH,
3559
+ key: p.CURRENT_MONTH,
3530
3560
  display: "This month",
3531
3561
  timeframeText: "Month",
3532
3562
  timeframeLength: () => {
@@ -3540,9 +3570,9 @@ const vo = /* @__PURE__ */ new Map([
3540
3570
  })
3541
3571
  ],
3542
3572
  [
3543
- g.CURRENT_YEAR,
3573
+ p.CURRENT_YEAR,
3544
3574
  new So({
3545
- key: g.CURRENT_YEAR,
3575
+ key: p.CURRENT_YEAR,
3546
3576
  display: "This year",
3547
3577
  timeframeText: "Year",
3548
3578
  timeframeLength: () => {
@@ -3556,9 +3586,9 @@ const vo = /* @__PURE__ */ new Map([
3556
3586
  })
3557
3587
  ],
3558
3588
  [
3559
- g.PREVIOUS_WEEK,
3589
+ p.PREVIOUS_WEEK,
3560
3590
  new Oo({
3561
- key: g.PREVIOUS_WEEK,
3591
+ key: p.PREVIOUS_WEEK,
3562
3592
  display: "Previous week",
3563
3593
  timeframeText: "Week",
3564
3594
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -3571,9 +3601,9 @@ const vo = /* @__PURE__ */ new Map([
3571
3601
  })
3572
3602
  ],
3573
3603
  [
3574
- g.PREVIOUS_MONTH,
3604
+ p.PREVIOUS_MONTH,
3575
3605
  new Eo({
3576
- key: g.PREVIOUS_MONTH,
3606
+ key: p.PREVIOUS_MONTH,
3577
3607
  display: "Previous month",
3578
3608
  timeframeText: "Month",
3579
3609
  timeframeLength: () => {
@@ -3588,9 +3618,9 @@ const vo = /* @__PURE__ */ new Map([
3588
3618
  })
3589
3619
  ],
3590
3620
  [
3591
- g.PREVIOUS_YEAR,
3592
- new No({
3593
- key: g.PREVIOUS_YEAR,
3621
+ p.PREVIOUS_YEAR,
3622
+ new vo({
3623
+ key: p.PREVIOUS_YEAR,
3594
3624
  display: "Previous year",
3595
3625
  timeframeText: "Year",
3596
3626
  timeframeLength: () => {
@@ -3607,7 +3637,7 @@ const vo = /* @__PURE__ */ new Map([
3607
3637
  ]);
3608
3638
  function es(e) {
3609
3639
  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({
3640
+ return e.timePeriodsKey && To(No.get(e.timePeriodsKey)) || new S({
3611
3641
  key: "custom",
3612
3642
  timeframeText: "custom",
3613
3643
  display: "custom",
@@ -3642,32 +3672,32 @@ function rn(e, t) {
3642
3672
  return Wi(e.getTimezoneOffset() - t.getTimezoneOffset());
3643
3673
  }
3644
3674
  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
3675
+ "15M": p.FIFTEEN_MIN,
3676
+ "1H": p.ONE_HOUR,
3677
+ "6H": p.SIX_HOUR,
3678
+ "12H": p.TWELVE_HOUR,
3679
+ "24H": p.ONE_DAY,
3680
+ "7D": p.SEVEN_DAY,
3681
+ "15m": p.FIFTEEN_MIN,
3682
+ "1h": p.ONE_HOUR,
3683
+ "6h": p.SIX_HOUR,
3684
+ "12h": p.TWELVE_HOUR,
3685
+ "24h": p.ONE_DAY,
3686
+ "7d": p.SEVEN_DAY,
3687
+ "30d": p.THIRTY_DAY,
3688
+ "90d": p.NINETY_DAY,
3689
+ "180d": p.ONE_HUNDRED_EIGHTY_DAY,
3690
+ "365d": p.ONE_YEAR,
3691
+ current_week: p.CURRENT_WEEK,
3692
+ current_month: p.CURRENT_MONTH,
3693
+ current_year: p.CURRENT_YEAR,
3694
+ previous_week: p.PREVIOUS_WEEK,
3695
+ previous_month: p.PREVIOUS_MONTH,
3696
+ previous_year: p.PREVIOUS_YEAR
3667
3697
  };
3668
3698
  class et {
3669
3699
  constructor(t) {
3670
- M(this, "_seed");
3700
+ T(this, "_seed");
3671
3701
  this._seed = t;
3672
3702
  }
3673
3703
  next(t, n) {
@@ -3676,30 +3706,30 @@ class et {
3676
3706
  }
3677
3707
  }
3678
3708
  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)
3709
+ const r = vn(10, 1e4), i = new et(r), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), m = [];
3710
+ let g = 0;
3711
+ for (let d = o; d <= c; d += 60 * 60 * 1e3)
3682
3712
  if (t)
3683
3713
  for (const h in t)
3684
3714
  t[h].forEach((b) => {
3685
- p += i.next(50, 500);
3715
+ g += i.next(50, 500);
3686
3716
  const E = {
3687
3717
  [h]: b,
3688
- [e.name]: p
3689
- }, v = {
3718
+ [e.name]: g
3719
+ }, N = {
3690
3720
  version: "1.0",
3691
3721
  timestamp: new Date(d).toISOString(),
3692
3722
  event: E
3693
3723
  };
3694
- m.push(v);
3724
+ m.push(N);
3695
3725
  });
3696
3726
  else {
3697
- p += i.next(50, 500);
3727
+ g += i.next(50, 500);
3698
3728
  const h = {
3699
3729
  version: "1.0",
3700
3730
  timestamp: new Date(d).toISOString(),
3701
3731
  event: {
3702
- [e.name]: p
3732
+ [e.name]: g
3703
3733
  }
3704
3734
  };
3705
3735
  m.push(h);
@@ -3715,9 +3745,9 @@ const as = (e, t, n) => {
3715
3745
  });
3716
3746
  const f = {
3717
3747
  start_ms: o,
3718
- end_ms: u,
3748
+ end_ms: c,
3719
3749
  start: new Date(o).toISOString(),
3720
- end: new Date(u).toISOString(),
3750
+ end: new Date(c).toISOString(),
3721
3751
  query_id: "12345",
3722
3752
  metric_names: [e.name],
3723
3753
  metric_units: {
@@ -3733,7 +3763,7 @@ const as = (e, t, n) => {
3733
3763
  meta: f
3734
3764
  };
3735
3765
  }, 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 = {};
3766
+ const n = vn(10, 1e4), r = new et(n), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], m = {};
3737
3767
  e.forEach((l) => {
3738
3768
  m[l.name] = 0;
3739
3769
  });
@@ -3747,9 +3777,9 @@ const as = (e, t, n) => {
3747
3777
  timestamp: new Date(l).toISOString(),
3748
3778
  event: f
3749
3779
  };
3750
- u.push(d);
3780
+ c.push(d);
3751
3781
  }
3752
- const p = {
3782
+ const g = {
3753
3783
  start_ms: i,
3754
3784
  end_ms: o,
3755
3785
  start: new Date(i).toISOString(),
@@ -3763,25 +3793,25 @@ const as = (e, t, n) => {
3763
3793
  ...t ?? {}
3764
3794
  };
3765
3795
  return {
3766
- data: u,
3767
- meta: p
3796
+ data: c,
3797
+ meta: g
3768
3798
  };
3769
3799
  }, 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 = [];
3800
+ 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
3801
  if (t) {
3772
- const d = Object.keys(t), h = Object.values(t), b = (E, v) => {
3773
- if (v === d.length) {
3802
+ const d = Object.keys(t), h = Object.values(t), b = (E, N) => {
3803
+ if (N === d.length) {
3774
3804
  e.forEach((C) => {
3775
3805
  E[C.name] = i.next(1e3, 5e7);
3776
- }), p.push({
3806
+ }), g.push({
3777
3807
  version: "1.0",
3778
3808
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
3779
3809
  event: { ...E }
3780
3810
  });
3781
3811
  return;
3782
3812
  }
3783
- h[v].forEach((C) => {
3784
- b({ ...E, [d[v]]: C }, v + 1);
3813
+ h[N].forEach((C) => {
3814
+ b({ ...E, [d[N]]: C }, N + 1);
3785
3815
  });
3786
3816
  };
3787
3817
  b({}, 0);
@@ -3789,7 +3819,7 @@ const as = (e, t, n) => {
3789
3819
  const d = {};
3790
3820
  e.forEach((h) => {
3791
3821
  d[h.name] = i.next(50, 500);
3792
- }), p.push({
3822
+ }), g.push({
3793
3823
  version: "1.0",
3794
3824
  timestamp: m,
3795
3825
  event: d
@@ -3806,74 +3836,74 @@ const as = (e, t, n) => {
3806
3836
  });
3807
3837
  const f = {
3808
3838
  start_ms: o,
3809
- end_ms: u,
3839
+ end_ms: c,
3810
3840
  start: new Date(o).toISOString(),
3811
- end: new Date(u).toISOString(),
3841
+ end: new Date(c).toISOString(),
3812
3842
  query_id: "12345",
3813
3843
  metric_names: e.map((d) => d.name),
3814
3844
  metric_units: e.reduce((d, h) => (d[h.name] = h.unit, d), {}),
3815
3845
  truncated: !1,
3816
3846
  limit: 50,
3817
3847
  display: l,
3818
- granularity_ms: u - o,
3848
+ granularity_ms: c - o,
3819
3849
  ...n ?? {}
3820
3850
  };
3821
3851
  return {
3822
- data: p,
3852
+ data: g,
3823
3853
  meta: f
3824
3854
  };
3825
3855
  };
3826
- function Nn(e, t) {
3856
+ function vn(e, t) {
3827
3857
  return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
3828
3858
  }
3829
3859
  const Io = new Map(dn.map((e) => [e.code, { code: e.code, name: e.name }])), ss = (e) => {
3830
3860
  var t;
3831
3861
  return ((t = Io.get(e)) == null ? void 0 : t.name) || e;
3832
3862
  };
3833
- var vn = { exports: {} };
3863
+ var Nn = { exports: {} };
3834
3864
  (function(e) {
3835
3865
  (function() {
3836
3866
  function t(l, f) {
3837
3867
  if (f.separator === !1 || l < 1e3)
3838
3868
  return l.toString();
3839
3869
  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);
3870
+ return b.reverse().forEach(function(E, N) {
3871
+ N && N % 3 === 0 && h.push(d), h.push(E);
3842
3872
  }), h.reverse().join("");
3843
3873
  }
3844
3874
  function n(l, f, d) {
3845
3875
  var h = l / f, b = d.round ? "round" : "floor";
3846
3876
  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
3877
  }
3848
- var r = 1e3, i = 1e4, o = 1e6, u = 1e9, m = 1e12;
3849
- function p(l, f) {
3878
+ var r = 1e3, i = 1e4, o = 1e6, c = 1e9, m = 1e12;
3879
+ function g(l, f) {
3850
3880
  var d;
3851
3881
  f = f || {};
3852
3882
  var h = l < 0;
3853
3883
  h && (l = Math.abs(l)), f.precision && (l = parseFloat(l.toPrecision(f.precision)));
3854
3884
  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;
3885
+ 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
3886
  }
3857
- p.addCommas = t, e.exports = p;
3887
+ g.addCommas = t, e.exports = g;
3858
3888
  })();
3859
- })(vn);
3860
- var xo = vn.exports;
3889
+ })(Nn);
3890
+ var xo = Nn.exports;
3861
3891
  const Ve = /* @__PURE__ */ En(xo);
3862
3892
  var an;
3863
3893
  const $e = new Intl.NumberFormat(((an = document == null ? void 0 : document.documentElement) == null ? void 0 : an.lang) || "en-US");
3864
- function cs({
3894
+ function us({
3865
3895
  i18n: e
3866
3896
  }) {
3867
- const t = (o, u) => {
3897
+ const t = (o, c) => {
3868
3898
  if (isNaN(o))
3869
3899
  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;
3900
+ 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
3901
  let h;
3872
3902
  return o >= m ? h = e.formatNumber(
3873
3903
  Number.parseFloat((o / m).toPrecision(3)),
3874
3904
  { style: "unit", unit: "petabyte", unitDisplay: "narrow" }
3875
- ) : o >= p ? h = e.formatNumber(
3876
- Number.parseFloat((o / p).toPrecision(3)),
3905
+ ) : o >= g ? h = e.formatNumber(
3906
+ Number.parseFloat((o / g).toPrecision(3)),
3877
3907
  { style: "unit", unit: "terabyte", unitDisplay: "narrow" }
3878
3908
  ) : o >= l ? h = e.formatNumber(
3879
3909
  Number.parseFloat((o / l).toPrecision(3)),
@@ -3888,19 +3918,19 @@ function cs({
3888
3918
  Number.parseFloat(o.toPrecision(3)),
3889
3919
  { style: "unit", unit: "byte", unitDisplay: "narrow" }
3890
3920
  ), 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, {
3921
+ }, 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))}`;
3922
+ return { formatUnit: (o, c, {
3893
3923
  isBytes1024: m = !1,
3894
- currency: p = "USD",
3924
+ currency: g = "USD",
3895
3925
  approximate: l = !1,
3896
3926
  translateUnit: f = (d) => d
3897
3927
  } = {}) => {
3898
- const d = f(u, o);
3899
- switch (u) {
3928
+ const d = f(c, o);
3929
+ switch (c) {
3900
3930
  case "bytes":
3901
3931
  return t(o, m);
3902
3932
  case "usd":
3903
- return n(o, p);
3933
+ return n(o, g);
3904
3934
  case "ms":
3905
3935
  case "count/minute":
3906
3936
  case "token count":
@@ -3908,29 +3938,29 @@ function cs({
3908
3938
  default:
3909
3939
  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
3940
  }
3911
- }, formatBytes: t, formatCost: n, formatRange: (o, u, m, {
3912
- isBytes1024: p = !1,
3941
+ }, formatBytes: t, formatCost: n, formatRange: (o, c, m, {
3942
+ isBytes1024: g = !1,
3913
3943
  currency: l = "USD",
3914
3944
  approximate: f = !1,
3915
3945
  translateUnit: d = (h) => h
3916
3946
  } = {}) => {
3917
- const h = d(m, u);
3947
+ const h = d(m, c);
3918
3948
  switch (m) {
3919
3949
  case "bytes":
3920
- return `${t(o, p)} - ${t(u, p)}`;
3950
+ return `${t(o, g)} - ${t(c, g)}`;
3921
3951
  case "usd":
3922
- return `${n(o, l)} - ${n(u, l)}`;
3952
+ return `${n(o, l)} - ${n(c, l)}`;
3923
3953
  case "ms":
3924
3954
  case "count/minute":
3925
3955
  case "token count":
3926
3956
  case "count":
3927
3957
  default:
3928
- if (isNaN(o) || isNaN(u))
3929
- return `${o} - ${u}`;
3958
+ if (isNaN(o) || isNaN(c))
3959
+ return `${o} - ${c}`;
3930
3960
  if (f)
3931
- return `${Ve(o, { capital: !0 })} - ${Ve(u, { capital: !0 })} ${h}`;
3961
+ return `${Ve(o, { capital: !0 })} - ${Ve(c, { capital: !0 })} ${h}`;
3932
3962
  }
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))}`;
3963
+ 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
3964
  return `${b} - ${E} ${h}`;
3935
3965
  } };
3936
3966
  }
@@ -3943,15 +3973,15 @@ export {
3943
3973
  Ro as REFRESH_INTERVAL_MS,
3944
3974
  et as SeededRandom,
3945
3975
  rs as TIMEFRAME_LOOKUP,
3946
- vo as TimePeriods,
3976
+ No as TimePeriods,
3947
3977
  S as Timeframe,
3948
- g as TimeframeKeys,
3978
+ p as TimeframeKeys,
3949
3979
  Ko as TimeseriesQueryTime,
3950
3980
  wo as UnaryQueryTime,
3951
3981
  aa as aiExploreAggregations,
3952
3982
  Ma as apiUsageQuerySchema,
3953
3983
  ma as barChartSchema,
3954
- cn as basicExploreAggregations,
3984
+ un as basicExploreAggregations,
3955
3985
  Sa as basicQuerySchema,
3956
3986
  On as ceilToNearestTimeGrain,
3957
3987
  ba as choroplethMapSchema,
@@ -3969,12 +3999,12 @@ export {
3969
3999
  Me as filterableBasicExploreDimensions,
3970
4000
  Se as filterableExploreDimensions,
3971
4001
  oa as filterableRequestDimensions,
3972
- ua as filterableRequestMetrics,
4002
+ ca as filterableRequestMetrics,
3973
4003
  Uo as filterableRequestWildcardDimensions,
3974
4004
  _o as floorToNearestTimeGrain,
3975
- Bo as formatLogTimestamp,
3976
4005
  nn as formatTime,
3977
4006
  Zo as formatTimeRange,
4007
+ Bo as formatTimestamp,
3978
4008
  ya as gaugeChartSchema,
3979
4009
  os as generateCrossSectionalData,
3980
4010
  is as generateMultipleMetricTimeSeriesData,
@@ -3991,16 +4021,16 @@ export {
3991
4021
  qo as queryDatasources,
3992
4022
  ln as queryableAiExploreDimensions,
3993
4023
  Ze as queryableBasicExploreDimensions,
3994
- un as queryableExploreDimensions,
4024
+ cn as queryableExploreDimensions,
3995
4025
  ia as queryableRequestDimensions,
3996
- ca as queryableRequestMetrics,
4026
+ ua as queryableRequestMetrics,
3997
4027
  sa as queryableRequestWildcardDimensions,
3998
- Nn as rand,
4028
+ vn as rand,
3999
4029
  Wo as relativeTimeRangeValuesRequestV2,
4000
4030
  on as relativeTimeRangeValuesV4,
4001
- Ao as reportChartTypes,
4031
+ Go as reportChartTypes,
4002
4032
  na as requestFilterTypeEmptyV2,
4003
- Go as requestFilterTypeEqualsV2,
4033
+ Ao as requestFilterTypeEqualsV2,
4004
4034
  Fo as requestFilterTypeMetricV2,
4005
4035
  Ho as requestFilterTypeWildcardV2,
4006
4036
  wa as singleValueSchema,
@@ -4008,14 +4038,14 @@ export {
4008
4038
  jo as stripUnknownFilters,
4009
4039
  fa as thresholdSchema,
4010
4040
  Ia as tileConfigSchema,
4011
- Na as tileDefinitionSchema,
4012
- va as tileLayoutSchema,
4041
+ va as tileDefinitionSchema,
4042
+ Na as tileLayoutSchema,
4013
4043
  Lo as timeRangeTypeV2,
4014
4044
  ts as timeframeToDatepickerSelection,
4015
4045
  ns as timeframeToDatepickerTimeperiod,
4016
4046
  ha as timeseriesChartSchema,
4017
4047
  pa as topNTableSchema,
4018
- cs as unitFormatter,
4048
+ us as unitFormatter,
4019
4049
  Ea as validDashboardQuery
4020
4050
  };
4021
4051
  //# sourceMappingURL=vitals-utilities.es.js.map