@kong-ui-public/analytics-geo-map 1.4.16 → 1.4.17-pr.2588.5db93a42d.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,14 +1,14 @@
1
- import { computed as C, defineComponent as Tt, createElementBlock as ae, openBlock as j, createCommentVNode as De, toDisplayString as ce, Fragment as jr, renderList as Kr, createElementVNode as J, normalizeStyle as $r, useCssVars as Wr, toRef as Xt, ref as Se, useId as Zr, onMounted as qr, watch as ut, createBlock as Qt, renderSlot as ct, createVNode as Jr, unref as ue, createTextVNode as Xr } from "vue";
2
- import { Map as Qr } from "maplibre-gl";
3
- import { createI18n as ea, i18nTComponent as ta } from "@kong-ui-public/i18n";
4
- import { AnalyticsIcon as na } from "@kong/icons";
5
- const ra = {
1
+ import { computed as B, defineComponent as Dt, createElementBlock as se, openBlock as W, createCommentVNode as Ne, toDisplayString as ve, Fragment as Kr, renderList as Wr, createElementVNode as ee, normalizeStyle as Zr, useCssVars as qr, toRef as ut, ref as De, useId as Jr, onMounted as Xr, watch as ct, createBlock as nn, renderSlot as dt, createVNode as Qr, unref as de, createTextVNode as ea } from "vue";
2
+ import { Map as ta } from "maplibre-gl";
3
+ import { createI18n as na, i18nTComponent as ra } from "@kong-ui-public/i18n";
4
+ import { AnalyticsIcon as aa } from "@kong/icons";
5
+ const ia = {
6
6
  ms: "ms",
7
7
  bytes: "Byte{plural}",
8
8
  count: "request{plural}",
9
9
  "count/minute": "rpm",
10
10
  requests: "request{plural}"
11
- }, aa = {
11
+ }, oa = {
12
12
  request_count: "Request count",
13
13
  request_per_minute: "Requests per minute",
14
14
  response_latency_average: "Response latency (avg)",
@@ -33,59 +33,27 @@ const ra = {
33
33
  request_size_p95: "Request size (p95)",
34
34
  request_size_p50: "Request size (p50)",
35
35
  request_size_sum: "Request size (sum)"
36
- }, ia = {
36
+ }, sa = {
37
37
  windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
38
38
  mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
39
39
  mobile_zoom_help_text: "Use two fingers to zoom the map"
40
- }, oa = "No location", sa = "No location data found.", la = {
41
- metricUnits: ra,
42
- metrics: aa,
43
- cooperative_gestures: ia,
44
- no_location_data: oa,
45
- no_location_data_description: sa
40
+ }, la = "No location", ua = "No location data found.", ca = {
41
+ metricUnits: ia,
42
+ metrics: oa,
43
+ cooperative_gestures: sa,
44
+ no_location_data: la,
45
+ no_location_data_description: ua
46
46
  };
47
- function ua() {
48
- const e = ea("en-us", la);
47
+ function da() {
48
+ const e = na("en-us", ca);
49
49
  return {
50
50
  i18n: e,
51
- i18nT: ta(e)
51
+ i18nT: ra(e)
52
52
  // Translation component <i18n-t>
53
53
  };
54
54
  }
55
- function wn(e) {
56
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
57
- }
58
- var xn = { exports: {} };
59
- (function(e) {
60
- (function() {
61
- function t(m, u) {
62
- if (u.separator === !1 || m < 1e3)
63
- return m.toString();
64
- var f = typeof u.separator == "string" ? u.separator : ",", _ = [], v = Math.round(m).toString().split("");
65
- return v.reverse().forEach(function(F, N) {
66
- N && N % 3 === 0 && _.push(f), _.push(F);
67
- }), _.reverse().join("");
68
- }
69
- function n(m, u, f) {
70
- var _ = m / u, v = f.round ? "round" : "floor";
71
- return f.decimal === !1 ? (m = Math[v](_), m.toString()) : (f.precision ? m = _ : m = _ < 10 ? Math[v](_ * 10) / 10 : Math[v](_), m = m.toString(), typeof f.decimal == "string" && (m = m.replace(".", f.decimal)), m);
72
- }
73
- var a = 1e3, i = 1e4, s = 1e6, c = 1e9, d = 1e12;
74
- function y(m, u) {
75
- var f;
76
- u = u || {};
77
- var _ = m < 0;
78
- _ && (m = Math.abs(m)), u.precision && (m = parseFloat(m.toPrecision(u.precision)));
79
- var v = u.min10k ? i : a;
80
- return m < v || u.precision && u.precision > Math.log10(m) ? f = t(n(m, 1, u), u) : m < s ? f = n(m, a, u) + "k" : m < c ? f = n(m, s, u) + "m" : m < d ? f = t(n(m, c, u), u) + "b" : f = t(n(m, d, u), u) + "t", _ && (f = "-" + f), u.capital && (f = f.toUpperCase()), u.prefix && (f = u.prefix + f), u.suffix && (f = f + u.suffix), f;
81
- }
82
- y.addCommas = t, e.exports = y;
83
- })();
84
- })(xn);
85
- var ca = xn.exports;
86
- const da = /* @__PURE__ */ wn(ca);
87
- var ma = Object.defineProperty, fa = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, G = (e, t, n) => fa(e, typeof t != "symbol" ? t + "" : t, n), 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 || {});
88
- const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
55
+ var ma = Object.defineProperty, fa = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, A = (e, t, n) => fa(e, typeof t != "symbol" ? t + "" : t, n), h = /* @__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))(h || {});
56
+ const pa = ["in", "not_in", "selector"], ha = ["empty", "not_empty"], ya = [
89
57
  "15m",
90
58
  "1h",
91
59
  "6h",
@@ -97,7 +65,7 @@ const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
97
65
  "30d",
98
66
  "current_month",
99
67
  "previous_month"
100
- ], Re = (e) => e.filter((t) => t !== "time"), Tn = [
68
+ ], Oe = (e) => e.filter((t) => t !== "time"), Mn = [
101
69
  "api",
102
70
  "api_product",
103
71
  "api_product_version",
@@ -110,8 +78,8 @@ const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
110
78
  "status_code",
111
79
  "status_code_grouped",
112
80
  "time"
113
- ], Mn = Re(Tn), _a = [
114
- ...Tn,
81
+ ], Tn = Oe(Mn), _a = [
82
+ ...Mn,
115
83
  "application",
116
84
  "consumer",
117
85
  "country_code",
@@ -120,7 +88,7 @@ const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
120
88
  "response_source",
121
89
  "data_plane_node_version",
122
90
  "realm"
123
- ], Fn = Re(_a), ga = [
91
+ ], Sn = Oe(_a), ga = [
124
92
  "control_plane",
125
93
  "control_plane_group",
126
94
  "gateway_service",
@@ -138,7 +106,7 @@ const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
138
106
  "status_code",
139
107
  "status_code_grouped",
140
108
  "ai_plugin"
141
- ], Sn = Re(ga), va = [
109
+ ], Dn = Oe(ga), wa = [
142
110
  "api",
143
111
  "api_product",
144
112
  "api_product_version",
@@ -173,8 +141,8 @@ const ha = ["in", "not_in", "selector"], pa = ["empty", "not_empty"], ya = [
173
141
  "upstream_status_code_grouped",
174
142
  "websocket"
175
143
  ];
176
- Re(va);
177
- const wa = [
144
+ Oe(wa);
145
+ const va = [
178
146
  "ai_count",
179
147
  "latencies_response_ms",
180
148
  "latencies_upstream_ms",
@@ -185,9 +153,9 @@ const wa = [
185
153
  "status_code",
186
154
  "upstream_status_code"
187
155
  ];
188
- Re(wa);
189
- new Set(Mn), new Set(Fn), new Set(Sn);
190
- const Mt = [
156
+ Oe(va);
157
+ new Set(Tn), new Set(Sn), new Set(Dn);
158
+ const Nt = [
191
159
  { code: "AF", name: "Afghanistan" },
192
160
  { code: "AX", name: "Aland Islands" },
193
161
  { code: "AL", name: "Albania" },
@@ -435,7 +403,7 @@ const Mt = [
435
403
  { code: "ZM", name: "Zambia" },
436
404
  { code: "ZW", name: "Zimbabwe" }
437
405
  ];
438
- Mt.map((e) => e.code);
406
+ Nt.map((e) => e.code);
439
407
  const xa = (e) => ({
440
408
  type: "array",
441
409
  description: "A list of filters to apply to the query",
@@ -451,7 +419,7 @@ const xa = (e) => ({
451
419
  },
452
420
  operator: {
453
421
  type: "string",
454
- enum: ha
422
+ enum: pa
455
423
  },
456
424
  value: {
457
425
  type: "array",
@@ -477,7 +445,7 @@ const xa = (e) => ({
477
445
  },
478
446
  operator: {
479
447
  type: "string",
480
- enum: pa
448
+ enum: ha
481
449
  }
482
450
  },
483
451
  required: [
@@ -489,64 +457,64 @@ const xa = (e) => ({
489
457
  ]
490
458
  }
491
459
  });
492
- xa([.../* @__PURE__ */ new Set([...Fn, ...Mn, ...Sn])]);
493
- let Ta = {};
460
+ xa([.../* @__PURE__ */ new Set([...Sn, ...Tn, ...Dn])]);
461
+ let Fa = {};
494
462
  function Ma() {
495
- return Ta;
463
+ return Fa;
496
464
  }
497
- const Fa = 60, Sa = 3600, en = Symbol.for("constructDateFrom");
498
- function Ne(e, t) {
499
- return typeof e == "function" ? e(t) : e && typeof e == "object" && en in e ? e[en](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
465
+ const Ta = 60, Sa = 3600, rn = Symbol.for("constructDateFrom");
466
+ function Ee(e, t) {
467
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && rn in e ? e[rn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
500
468
  }
501
- function Te(e, t) {
502
- return Ne(t || e, e);
469
+ function Fe(e, t) {
470
+ return Ee(t || e, e);
503
471
  }
504
- function dt(e, t) {
505
- const n = Te(e, void 0);
472
+ function mt(e, t) {
473
+ const n = Fe(e, void 0);
506
474
  return n.setHours(0, 0, 0, 0), n;
507
475
  }
508
- function He(e, t) {
509
- var n, a, i, s;
510
- const c = Ma(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? c.weekStartsOn ?? ((s = (i = c.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? 0, y = Te(e, t == null ? void 0 : t.in), m = y.getDay(), u = (m < d ? 7 : 0) + m - d;
511
- return y.setDate(y.getDate() - u), y.setHours(0, 0, 0, 0), y;
476
+ function Ve(e, t) {
477
+ var n, a, i, o;
478
+ const u = Ma(), d = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? u.weekStartsOn ?? ((o = (i = u.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, f = Fe(e, t == null ? void 0 : t.in), m = f.getDay(), c = (m < d ? 7 : 0) + m - d;
479
+ return f.setDate(f.getDate() - c), f.setHours(0, 0, 0, 0), f;
512
480
  }
513
- function mt(e, t, n) {
514
- const a = Te(e, void 0);
515
- return isNaN(t) ? Ne(e, NaN) : (a.setDate(a.getDate() + t), a);
481
+ function ft(e, t, n) {
482
+ const a = Fe(e, void 0);
483
+ return isNaN(t) ? Ee(e, NaN) : (a.setDate(a.getDate() + t), a);
516
484
  }
517
485
  function Da(e, t, n) {
518
- const a = Te(e, void 0);
519
- if (isNaN(t)) return Ne(e, NaN);
520
- const i = a.getDate(), s = Ne(e, a.getTime());
521
- s.setMonth(a.getMonth() + t + 1, 0);
522
- const c = s.getDate();
523
- return i >= c ? s : (a.setFullYear(
524
- s.getFullYear(),
525
- s.getMonth(),
486
+ const a = Fe(e, void 0);
487
+ if (isNaN(t)) return Ee(e, NaN);
488
+ const i = a.getDate(), o = Ee(e, a.getTime());
489
+ o.setMonth(a.getMonth() + t + 1, 0);
490
+ const u = o.getDate();
491
+ return i >= u ? o : (a.setFullYear(
492
+ o.getFullYear(),
493
+ o.getMonth(),
526
494
  i
527
495
  ), a);
528
496
  }
529
497
  function we(e, t) {
530
- const n = Te(e, void 0);
498
+ const n = Fe(e, void 0);
531
499
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
532
500
  }
533
- function ka(e, t) {
534
- const n = Te(e, void 0), a = n.getFullYear(), i = n.getMonth(), s = Ne(n, 0);
535
- return s.setFullYear(a, i + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
501
+ function Na(e, t) {
502
+ const n = Fe(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Ee(n, 0);
503
+ return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
536
504
  }
537
- function tn(e) {
505
+ function an(e) {
538
506
  return Math.trunc(e * Sa);
539
507
  }
540
- function Na(e) {
541
- const t = e / Fa;
508
+ function ka(e) {
509
+ const t = e / Ta;
542
510
  return Math.trunc(t);
543
511
  }
544
- function Dn(e, t, n) {
512
+ function Nn(e, t, n) {
545
513
  return Da(e, -1);
546
514
  }
547
515
  function Ea(e, t) {
548
- const n = Ga(t);
549
- return "formatToParts" in n ? Oa(n, e) : Ia(n, e);
516
+ const n = Ia(t);
517
+ return "formatToParts" in n ? Oa(n, e) : ba(n, e);
550
518
  }
551
519
  const Ra = {
552
520
  year: 0,
@@ -560,8 +528,8 @@ function Oa(e, t) {
560
528
  try {
561
529
  const n = e.formatToParts(t), a = [];
562
530
  for (let i = 0; i < n.length; i++) {
563
- const s = Ra[n[i].type];
564
- s !== void 0 && (a[s] = parseInt(n[i].value, 10));
531
+ const o = Ra[n[i].type];
532
+ o !== void 0 && (a[o] = parseInt(n[i].value, 10));
565
533
  }
566
534
  return a;
567
535
  } catch (n) {
@@ -570,7 +538,7 @@ function Oa(e, t) {
570
538
  throw n;
571
539
  }
572
540
  }
573
- function Ia(e, t) {
541
+ function ba(e, t) {
574
542
  const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
575
543
  return [
576
544
  parseInt(a[3], 10),
@@ -581,7 +549,7 @@ function Ia(e, t) {
581
549
  parseInt(a[6], 10)
582
550
  ];
583
551
  }
584
- const ft = {}, nn = new Intl.DateTimeFormat("en-US", {
552
+ const pt = {}, on = new Intl.DateTimeFormat("en-US", {
585
553
  hourCycle: "h23",
586
554
  timeZone: "America/New_York",
587
555
  year: "numeric",
@@ -590,9 +558,9 @@ const ft = {}, nn = new Intl.DateTimeFormat("en-US", {
590
558
  hour: "2-digit",
591
559
  minute: "2-digit",
592
560
  second: "2-digit"
593
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), La = nn === "06/25/2014, 00:00:00" || nn === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
594
- function Ga(e) {
595
- return ft[e] || (ft[e] = La ? new Intl.DateTimeFormat("en-US", {
561
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ga = on === "06/25/2014, 00:00:00" || on === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
562
+ function Ia(e) {
563
+ return pt[e] || (pt[e] = Ga ? new Intl.DateTimeFormat("en-US", {
596
564
  hourCycle: "h23",
597
565
  timeZone: e,
598
566
  year: "numeric",
@@ -610,13 +578,13 @@ function Ga(e) {
610
578
  hour: "2-digit",
611
579
  minute: "2-digit",
612
580
  second: "2-digit"
613
- })), ft[e];
581
+ })), pt[e];
614
582
  }
615
- function Ft(e, t, n, a, i, s, c) {
583
+ function kt(e, t, n, a, i, o, u) {
616
584
  const d = /* @__PURE__ */ new Date(0);
617
- return d.setUTCFullYear(e, t, n), d.setUTCHours(a, i, s, c), d;
585
+ return d.setUTCFullYear(e, t, n), d.setUTCHours(a, i, o, u), d;
618
586
  }
619
- const rn = 36e5, Ca = 6e4, ht = {
587
+ const sn = 36e5, La = 6e4, ht = {
620
588
  timezoneZ: /^(Z)$/,
621
589
  timezoneHH: /^([+-]\d{2})$/,
622
590
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
@@ -627,57 +595,57 @@ function Ke(e, t, n) {
627
595
  let a = ht.timezoneZ.exec(e);
628
596
  if (a)
629
597
  return 0;
630
- let i, s;
598
+ let i, o;
631
599
  if (a = ht.timezoneHH.exec(e), a)
632
- return i = parseInt(a[1], 10), an(i) ? -(i * rn) : NaN;
600
+ return i = parseInt(a[1], 10), ln(i) ? -(i * sn) : NaN;
633
601
  if (a = ht.timezoneHHMM.exec(e), a) {
634
602
  i = parseInt(a[2], 10);
635
- const c = parseInt(a[3], 10);
636
- return an(i, c) ? (s = Math.abs(i) * rn + c * Ca, a[1] === "+" ? -s : s) : NaN;
603
+ const u = parseInt(a[3], 10);
604
+ return ln(i, u) ? (o = Math.abs(i) * sn + u * La, a[1] === "+" ? -o : o) : NaN;
637
605
  }
638
- if (Ua(e)) {
606
+ if (Ca(e)) {
639
607
  t = new Date(t || Date.now());
640
- const c = n ? t : Aa(t), d = vt(c, e);
641
- return -(n ? d : Pa(t, d, e));
608
+ const u = n ? t : Pa(t), d = Ft(u, e);
609
+ return -(n ? d : Ua(t, d, e));
642
610
  }
643
611
  return NaN;
644
612
  }
645
- function Aa(e) {
646
- return Ft(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
613
+ function Pa(e) {
614
+ return kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
647
615
  }
648
- function vt(e, t) {
649
- const n = Ea(e, t), a = Ft(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
616
+ function Ft(e, t) {
617
+ const n = Ea(e, t), a = kt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
650
618
  let i = e.getTime();
651
- const s = i % 1e3;
652
- return i -= s >= 0 ? s : 1e3 + s, a - i;
619
+ const o = i % 1e3;
620
+ return i -= o >= 0 ? o : 1e3 + o, a - i;
653
621
  }
654
- function Pa(e, t, n) {
622
+ function Ua(e, t, n) {
655
623
  let a = e.getTime() - t;
656
- const i = vt(new Date(a), n);
624
+ const i = Ft(new Date(a), n);
657
625
  if (t === i)
658
626
  return t;
659
627
  a -= i - t;
660
- const s = vt(new Date(a), n);
661
- return i === s ? i : Math.max(i, s);
628
+ const o = Ft(new Date(a), n);
629
+ return i === o ? i : Math.max(i, o);
662
630
  }
663
- function an(e, t) {
631
+ function ln(e, t) {
664
632
  return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
665
633
  }
666
- const on = {};
667
- function Ua(e) {
668
- if (on[e])
634
+ const un = {};
635
+ function Ca(e) {
636
+ if (un[e])
669
637
  return !0;
670
638
  try {
671
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), on[e] = !0, !0;
639
+ return new Intl.DateTimeFormat(void 0, { timeZone: e }), un[e] = !0, !0;
672
640
  } catch {
673
641
  return !1;
674
642
  }
675
643
  }
676
- function sn(e) {
644
+ function cn(e) {
677
645
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
678
646
  return t.setUTCFullYear(e.getFullYear()), +e - +t;
679
647
  }
680
- const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, pt = 36e5, ln = 6e4, ba = 2, E = {
648
+ const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, yt = 36e5, dn = 6e4, Aa = 2, b = {
681
649
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
682
650
  datePattern: /^([0-9W+-]+)(.*)/,
683
651
  // year tokens
@@ -711,12 +679,12 @@ const kn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
711
679
  // time zone tokens (to identify the presence of a tz)
712
680
  timeZone: kn
713
681
  };
714
- function wt(e, t = {}) {
682
+ function Mt(e, t = {}) {
715
683
  if (arguments.length < 1)
716
684
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
717
685
  if (e === null)
718
686
  return /* @__PURE__ */ new Date(NaN);
719
- const n = t.additionalDigits == null ? ba : Number(t.additionalDigits);
687
+ const n = t.additionalDigits == null ? Aa : Number(t.additionalDigits);
720
688
  if (n !== 2 && n !== 1 && n !== 0)
721
689
  throw new RangeError("additionalDigits must be 0, 1 or 2");
722
690
  if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
@@ -725,48 +693,48 @@ function wt(e, t = {}) {
725
693
  return new Date(e);
726
694
  if (Object.prototype.toString.call(e) !== "[object String]")
727
695
  return /* @__PURE__ */ new Date(NaN);
728
- const a = Ba(e), { year: i, restDateString: s } = Ha(a.date, n), c = Ya(s, i);
729
- if (c === null || isNaN(c.getTime()))
696
+ const a = Ba(e), { year: i, restDateString: o } = Ha(a.date, n), u = Va(o, i);
697
+ if (u === null || isNaN(u.getTime()))
730
698
  return /* @__PURE__ */ new Date(NaN);
731
- if (c) {
732
- const d = c.getTime();
733
- let y = 0, m;
734
- if (a.time && (y = Va(a.time), y === null || isNaN(y)))
699
+ if (u) {
700
+ const d = u.getTime();
701
+ let f = 0, m;
702
+ if (a.time && (f = Ya(a.time), f === null || isNaN(f)))
735
703
  return /* @__PURE__ */ new Date(NaN);
736
704
  if (a.timeZone || t.timeZone) {
737
- if (m = Ke(a.timeZone || t.timeZone, new Date(d + y)), isNaN(m))
705
+ if (m = Ke(a.timeZone || t.timeZone, new Date(d + f)), isNaN(m))
738
706
  return /* @__PURE__ */ new Date(NaN);
739
707
  } else
740
- m = sn(new Date(d + y)), m = sn(new Date(d + y + m));
741
- return new Date(d + y + m);
708
+ m = cn(new Date(d + f)), m = cn(new Date(d + f + m));
709
+ return new Date(d + f + m);
742
710
  } else
743
711
  return /* @__PURE__ */ new Date(NaN);
744
712
  }
745
713
  function Ba(e) {
746
714
  const t = {};
747
- let n = E.dateTimePattern.exec(e), a;
748
- if (n ? (t.date = n[1], a = n[3]) : (n = E.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
749
- const i = E.timeZone.exec(a);
715
+ let n = b.dateTimePattern.exec(e), a;
716
+ if (n ? (t.date = n[1], a = n[3]) : (n = b.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
717
+ const i = b.timeZone.exec(a);
750
718
  i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
751
719
  }
752
720
  return t;
753
721
  }
754
722
  function Ha(e, t) {
755
723
  if (e) {
756
- const n = E.YYY[t], a = E.YYYYY[t];
757
- let i = E.YYYY.exec(e) || a.exec(e);
724
+ const n = b.YYY[t], a = b.YYYYY[t];
725
+ let i = b.YYYY.exec(e) || a.exec(e);
758
726
  if (i) {
759
- const s = i[1];
727
+ const o = i[1];
760
728
  return {
761
- year: parseInt(s, 10),
762
- restDateString: e.slice(s.length)
729
+ year: parseInt(o, 10),
730
+ restDateString: e.slice(o.length)
763
731
  };
764
732
  }
765
- if (i = E.YY.exec(e) || n.exec(e), i) {
766
- const s = i[1];
733
+ if (i = b.YY.exec(e) || n.exec(e), i) {
734
+ const o = i[1];
767
735
  return {
768
- year: parseInt(s, 10) * 100,
769
- restDateString: e.slice(s.length)
736
+ year: parseInt(o, 10) * 100,
737
+ restDateString: e.slice(o.length)
770
738
  };
771
739
  }
772
740
  }
@@ -774,491 +742,495 @@ function Ha(e, t) {
774
742
  year: null
775
743
  };
776
744
  }
777
- function Ya(e, t) {
745
+ function Va(e, t) {
778
746
  if (t === null)
779
747
  return null;
780
748
  let n, a, i;
781
749
  if (!e || !e.length)
782
750
  return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
783
- let s = E.MM.exec(e);
784
- if (s)
785
- return n = /* @__PURE__ */ new Date(0), a = parseInt(s[1], 10) - 1, cn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
786
- if (s = E.DDD.exec(e), s) {
751
+ let o = b.MM.exec(e);
752
+ if (o)
753
+ return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, fn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
754
+ if (o = b.DDD.exec(e), o) {
787
755
  n = /* @__PURE__ */ new Date(0);
788
- const c = parseInt(s[1], 10);
789
- return Ka(t, c) ? (n.setUTCFullYear(t, 0, c), n) : /* @__PURE__ */ new Date(NaN);
756
+ const u = parseInt(o[1], 10);
757
+ return $a(t, u) ? (n.setUTCFullYear(t, 0, u), n) : /* @__PURE__ */ new Date(NaN);
790
758
  }
791
- if (s = E.MMDD.exec(e), s) {
792
- n = /* @__PURE__ */ new Date(0), a = parseInt(s[1], 10) - 1;
793
- const c = parseInt(s[2], 10);
794
- return cn(t, a, c) ? (n.setUTCFullYear(t, a, c), n) : /* @__PURE__ */ new Date(NaN);
759
+ if (o = b.MMDD.exec(e), o) {
760
+ n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
761
+ const u = parseInt(o[2], 10);
762
+ return fn(t, a, u) ? (n.setUTCFullYear(t, a, u), n) : /* @__PURE__ */ new Date(NaN);
795
763
  }
796
- if (s = E.Www.exec(e), s)
797
- return i = parseInt(s[1], 10) - 1, dn(i) ? un(t, i) : /* @__PURE__ */ new Date(NaN);
798
- if (s = E.WwwD.exec(e), s) {
799
- i = parseInt(s[1], 10) - 1;
800
- const c = parseInt(s[2], 10) - 1;
801
- return dn(i, c) ? un(t, i, c) : /* @__PURE__ */ new Date(NaN);
764
+ if (o = b.Www.exec(e), o)
765
+ return i = parseInt(o[1], 10) - 1, pn(i) ? mn(t, i) : /* @__PURE__ */ new Date(NaN);
766
+ if (o = b.WwwD.exec(e), o) {
767
+ i = parseInt(o[1], 10) - 1;
768
+ const u = parseInt(o[2], 10) - 1;
769
+ return pn(i, u) ? mn(t, i, u) : /* @__PURE__ */ new Date(NaN);
802
770
  }
803
771
  return null;
804
772
  }
805
- function Va(e) {
806
- let t, n, a = E.HH.exec(e);
773
+ function Ya(e) {
774
+ let t, n, a = b.HH.exec(e);
807
775
  if (a)
808
- return t = parseFloat(a[1].replace(",", ".")), yt(t) ? t % 24 * pt : NaN;
809
- if (a = E.HHMM.exec(e), a)
810
- return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), yt(t, n) ? t % 24 * pt + n * ln : NaN;
811
- if (a = E.HHMMSS.exec(e), a) {
776
+ return t = parseFloat(a[1].replace(",", ".")), _t(t) ? t % 24 * yt : NaN;
777
+ if (a = b.HHMM.exec(e), a)
778
+ return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), _t(t, n) ? t % 24 * yt + n * dn : NaN;
779
+ if (a = b.HHMMSS.exec(e), a) {
812
780
  t = parseInt(a[1], 10), n = parseInt(a[2], 10);
813
781
  const i = parseFloat(a[3].replace(",", "."));
814
- return yt(t, n, i) ? t % 24 * pt + n * ln + i * 1e3 : NaN;
782
+ return _t(t, n, i) ? t % 24 * yt + n * dn + i * 1e3 : NaN;
815
783
  }
816
784
  return null;
817
785
  }
818
- function un(e, t, n) {
786
+ function mn(e, t, n) {
819
787
  t = t || 0, n = n || 0;
820
788
  const a = /* @__PURE__ */ new Date(0);
821
789
  a.setUTCFullYear(e, 0, 4);
822
- const i = a.getUTCDay() || 7, s = t * 7 + n + 1 - i;
823
- return a.setUTCDate(a.getUTCDate() + s), a;
790
+ const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
791
+ return a.setUTCDate(a.getUTCDate() + o), a;
824
792
  }
825
793
  const za = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ja = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
826
- function Nn(e) {
794
+ function En(e) {
827
795
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
828
796
  }
829
- function cn(e, t, n) {
797
+ function fn(e, t, n) {
830
798
  if (t < 0 || t > 11)
831
799
  return !1;
832
800
  if (n != null) {
833
801
  if (n < 1)
834
802
  return !1;
835
- const a = Nn(e);
803
+ const a = En(e);
836
804
  if (a && n > ja[t] || !a && n > za[t])
837
805
  return !1;
838
806
  }
839
807
  return !0;
840
808
  }
841
- function Ka(e, t) {
809
+ function $a(e, t) {
842
810
  if (t < 1)
843
811
  return !1;
844
- const n = Nn(e);
812
+ const n = En(e);
845
813
  return !(n && t > 366 || !n && t > 365);
846
814
  }
847
- function dn(e, t) {
815
+ function pn(e, t) {
848
816
  return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
849
817
  }
850
- function yt(e, t, n) {
818
+ function _t(e, t, n) {
851
819
  return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
852
820
  }
853
- function $a(e, t, n) {
854
- e = wt(e, n);
855
- const a = Ke(t, e, !0), i = new Date(e.getTime() - a), s = /* @__PURE__ */ new Date(0);
856
- return s.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), s.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), s;
821
+ function Ka(e, t, n) {
822
+ e = Mt(e, n);
823
+ const a = Ke(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
824
+ return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
857
825
  }
858
826
  function Wa(e, t, n) {
859
827
  if (typeof e == "string" && !e.match(kn))
860
- return wt(e, { ...n, timeZone: t });
861
- e = wt(e, n);
862
- const a = Ft(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Ke(t, new Date(a));
828
+ return Mt(e, { ...n, timeZone: t });
829
+ e = Mt(e, n);
830
+ const a = kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Ke(t, new Date(a));
863
831
  return new Date(a + i);
864
832
  }
865
833
  function Za(e, t) {
866
834
  return -Ke(e, t);
867
835
  }
868
- var Ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ye = { exports: {} };
836
+ var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
837
+ function qa(e) {
838
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
839
+ }
840
+ var Ye = { exports: {} };
869
841
  Ye.exports;
870
842
  (function(e, t) {
871
- var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", y = "[object Date]", m = "[object Error]", u = "[object Function]", f = "[object GeneratorFunction]", _ = "[object Map]", v = "[object Number]", F = "[object Object]", N = "[object Promise]", P = "[object RegExp]", Q = "[object Set]", U = "[object String]", ie = "[object Symbol]", b = "[object WeakMap]", We = "[object ArrayBuffer]", de = "[object DataView]", g = "[object Float32Array]", T = "[object Float64Array]", M = "[object Int8Array]", D = "[object Int16Array]", ee = "[object Int32Array]", K = "[object Uint8Array]", B = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, H = /\w*$/, Y = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, w = {};
872
- w[s] = w[c] = w[We] = w[de] = w[d] = w[y] = w[g] = w[T] = w[M] = w[D] = w[ee] = w[_] = w[v] = w[F] = w[P] = w[Q] = w[U] = w[ie] = w[K] = w[B] = w[te] = w[ne] = !0, w[m] = w[u] = w[b] = !1;
873
- var z = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, me = typeof self == "object" && self && self.Object === Object && self, R = z || me || Function("return this")(), $ = t && !t.nodeType && t, Oe = $ && !0 && e && !e.nodeType && e, Ze = Oe && Oe.exports === $;
874
- function qe(r, o) {
875
- return r.set(o[0], o[1]), r;
843
+ var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", f = "[object Date]", m = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", w = "[object Map]", x = "[object Number]", k = "[object Object]", P = "[object Promise]", M = "[object RegExp]", T = "[object Set]", S = "[object String]", U = "[object Symbol]", E = "[object WeakMap]", V = "[object ArrayBuffer]", ne = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", D = "[object Int8Array]", R = "[object Int16Array]", re = "[object Int32Array]", Z = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", ae = "[object Uint16Array]", ie = "[object Uint32Array]", C = /[\\^$.*+?()[\]{}|]/g, z = /\w*$/, j = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, g = {};
844
+ g[o] = g[u] = g[V] = g[ne] = g[d] = g[f] = g[_] = g[F] = g[D] = g[R] = g[re] = g[w] = g[x] = g[k] = g[M] = g[T] = g[S] = g[U] = g[Z] = g[Y] = g[ae] = g[ie] = !0, g[m] = g[c] = g[E] = !1;
845
+ var K = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, me = typeof self == "object" && self && self.Object === Object && self, G = K || me || Function("return this")(), q = t && !t.nodeType && t, be = q && !0 && e && !e.nodeType && e, Ze = be && be.exports === q;
846
+ function qe(r, s) {
847
+ return r.set(s[0], s[1]), r;
876
848
  }
877
- function Je(r, o) {
878
- return r.add(o), r;
849
+ function Je(r, s) {
850
+ return r.add(s), r;
879
851
  }
880
- function fe(r, o) {
881
- for (var l = -1, h = r ? r.length : 0; ++l < h && o(r[l], l, r) !== !1; )
852
+ function Me(r, s) {
853
+ for (var l = -1, p = r ? r.length : 0; ++l < p && s(r[l], l, r) !== !1; )
882
854
  ;
883
855
  return r;
884
856
  }
885
- function On(r, o) {
886
- for (var l = -1, h = o.length, S = r.length; ++l < h; )
887
- r[S + l] = o[l];
857
+ function Gn(r, s) {
858
+ for (var l = -1, p = s.length, N = r.length; ++l < p; )
859
+ r[N + l] = s[l];
888
860
  return r;
889
861
  }
890
- function Et(r, o, l, h) {
891
- for (var S = -1, O = r ? r.length : 0; ++S < O; )
892
- l = o(l, r[S], S, r);
862
+ function Gt(r, s, l, p) {
863
+ for (var N = -1, I = r ? r.length : 0; ++N < I; )
864
+ l = s(l, r[N], N, r);
893
865
  return l;
894
866
  }
895
- function In(r, o) {
896
- for (var l = -1, h = Array(r); ++l < r; )
897
- h[l] = o(l);
898
- return h;
867
+ function In(r, s) {
868
+ for (var l = -1, p = Array(r); ++l < r; )
869
+ p[l] = s(l);
870
+ return p;
899
871
  }
900
- function Ln(r, o) {
901
- return r == null ? void 0 : r[o];
872
+ function Ln(r, s) {
873
+ return r == null ? void 0 : r[s];
902
874
  }
903
- function Rt(r) {
904
- var o = !1;
875
+ function It(r) {
876
+ var s = !1;
905
877
  if (r != null && typeof r.toString != "function")
906
878
  try {
907
- o = !!(r + "");
879
+ s = !!(r + "");
908
880
  } catch {
909
881
  }
910
- return o;
882
+ return s;
911
883
  }
912
- function Ot(r) {
913
- var o = -1, l = Array(r.size);
914
- return r.forEach(function(h, S) {
915
- l[++o] = [S, h];
884
+ function Lt(r) {
885
+ var s = -1, l = Array(r.size);
886
+ return r.forEach(function(p, N) {
887
+ l[++s] = [N, p];
916
888
  }), l;
917
889
  }
918
- function Xe(r, o) {
890
+ function Xe(r, s) {
919
891
  return function(l) {
920
- return r(o(l));
892
+ return r(s(l));
921
893
  };
922
894
  }
923
- function It(r) {
924
- var o = -1, l = Array(r.size);
925
- return r.forEach(function(h) {
926
- l[++o] = h;
895
+ function Pt(r) {
896
+ var s = -1, l = Array(r.size);
897
+ return r.forEach(function(p) {
898
+ l[++s] = p;
927
899
  }), l;
928
900
  }
929
- var Gn = Array.prototype, Cn = Function.prototype, Ie = Object.prototype, Qe = R["__core-js_shared__"], Lt = function() {
901
+ var Pn = Array.prototype, Un = Function.prototype, Ge = Object.prototype, Qe = G["__core-js_shared__"], Ut = function() {
930
902
  var r = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
931
903
  return r ? "Symbol(src)_1." + r : "";
932
- }(), Gt = Cn.toString, re = Ie.hasOwnProperty, Le = Ie.toString, An = RegExp(
933
- "^" + Gt.call(re).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
934
- ), Ct = Ze ? R.Buffer : void 0, At = R.Symbol, Pt = R.Uint8Array, Pn = Xe(Object.getPrototypeOf, Object), Un = Object.create, bn = Ie.propertyIsEnumerable, Bn = Gn.splice, Ut = Object.getOwnPropertySymbols, Hn = Ct ? Ct.isBuffer : void 0, Yn = Xe(Object.keys, Object), et = ye(R, "DataView"), Me = ye(R, "Map"), tt = ye(R, "Promise"), nt = ye(R, "Set"), rt = ye(R, "WeakMap"), Fe = ye(Object, "create"), Vn = le(et), zn = le(Me), jn = le(tt), Kn = le(nt), $n = le(rt), bt = At ? At.prototype : void 0, Bt = bt ? bt.valueOf : void 0;
935
- function oe(r) {
936
- var o = -1, l = r ? r.length : 0;
937
- for (this.clear(); ++o < l; ) {
938
- var h = r[o];
939
- this.set(h[0], h[1]);
904
+ }(), Ct = Un.toString, oe = Ge.hasOwnProperty, Ie = Ge.toString, Cn = RegExp(
905
+ "^" + Ct.call(oe).replace(C, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
906
+ ), At = Ze ? G.Buffer : void 0, Bt = G.Symbol, Ht = G.Uint8Array, An = Xe(Object.getPrototypeOf, Object), Bn = Object.create, Hn = Ge.propertyIsEnumerable, Vn = Pn.splice, Vt = Object.getOwnPropertySymbols, Yn = At ? At.isBuffer : void 0, zn = Xe(Object.keys, Object), et = he(G, "DataView"), Te = he(G, "Map"), tt = he(G, "Promise"), nt = he(G, "Set"), rt = he(G, "WeakMap"), Se = he(Object, "create"), jn = ce(et), $n = ce(Te), Kn = ce(tt), Wn = ce(nt), Zn = ce(rt), Yt = Bt ? Bt.prototype : void 0, zt = Yt ? Yt.valueOf : void 0;
907
+ function le(r) {
908
+ var s = -1, l = r ? r.length : 0;
909
+ for (this.clear(); ++s < l; ) {
910
+ var p = r[s];
911
+ this.set(p[0], p[1]);
940
912
  }
941
913
  }
942
- function Wn() {
943
- this.__data__ = Fe ? Fe(null) : {};
914
+ function qn() {
915
+ this.__data__ = Se ? Se(null) : {};
944
916
  }
945
- function Zn(r) {
917
+ function Jn(r) {
946
918
  return this.has(r) && delete this.__data__[r];
947
919
  }
948
- function qn(r) {
949
- var o = this.__data__;
950
- if (Fe) {
951
- var l = o[r];
920
+ function Xn(r) {
921
+ var s = this.__data__;
922
+ if (Se) {
923
+ var l = s[r];
952
924
  return l === a ? void 0 : l;
953
925
  }
954
- return re.call(o, r) ? o[r] : void 0;
926
+ return oe.call(s, r) ? s[r] : void 0;
955
927
  }
956
- function Jn(r) {
957
- var o = this.__data__;
958
- return Fe ? o[r] !== void 0 : re.call(o, r);
928
+ function Qn(r) {
929
+ var s = this.__data__;
930
+ return Se ? s[r] !== void 0 : oe.call(s, r);
959
931
  }
960
- function Xn(r, o) {
932
+ function er(r, s) {
961
933
  var l = this.__data__;
962
- return l[r] = Fe && o === void 0 ? a : o, this;
934
+ return l[r] = Se && s === void 0 ? a : s, this;
963
935
  }
964
- oe.prototype.clear = Wn, oe.prototype.delete = Zn, oe.prototype.get = qn, oe.prototype.has = Jn, oe.prototype.set = Xn;
965
- function W(r) {
966
- var o = -1, l = r ? r.length : 0;
967
- for (this.clear(); ++o < l; ) {
968
- var h = r[o];
969
- this.set(h[0], h[1]);
936
+ le.prototype.clear = qn, le.prototype.delete = Jn, le.prototype.get = Xn, le.prototype.has = Qn, le.prototype.set = er;
937
+ function J(r) {
938
+ var s = -1, l = r ? r.length : 0;
939
+ for (this.clear(); ++s < l; ) {
940
+ var p = r[s];
941
+ this.set(p[0], p[1]);
970
942
  }
971
943
  }
972
- function Qn() {
944
+ function tr() {
973
945
  this.__data__ = [];
974
946
  }
975
- function er(r) {
976
- var o = this.__data__, l = Ge(o, r);
947
+ function nr(r) {
948
+ var s = this.__data__, l = Le(s, r);
977
949
  if (l < 0)
978
950
  return !1;
979
- var h = o.length - 1;
980
- return l == h ? o.pop() : Bn.call(o, l, 1), !0;
951
+ var p = s.length - 1;
952
+ return l == p ? s.pop() : Vn.call(s, l, 1), !0;
981
953
  }
982
- function tr(r) {
983
- var o = this.__data__, l = Ge(o, r);
984
- return l < 0 ? void 0 : o[l][1];
954
+ function rr(r) {
955
+ var s = this.__data__, l = Le(s, r);
956
+ return l < 0 ? void 0 : s[l][1];
985
957
  }
986
- function nr(r) {
987
- return Ge(this.__data__, r) > -1;
958
+ function ar(r) {
959
+ return Le(this.__data__, r) > -1;
988
960
  }
989
- function rr(r, o) {
990
- var l = this.__data__, h = Ge(l, r);
991
- return h < 0 ? l.push([r, o]) : l[h][1] = o, this;
961
+ function ir(r, s) {
962
+ var l = this.__data__, p = Le(l, r);
963
+ return p < 0 ? l.push([r, s]) : l[p][1] = s, this;
992
964
  }
993
- W.prototype.clear = Qn, W.prototype.delete = er, W.prototype.get = tr, W.prototype.has = nr, W.prototype.set = rr;
994
- function he(r) {
995
- var o = -1, l = r ? r.length : 0;
996
- for (this.clear(); ++o < l; ) {
997
- var h = r[o];
998
- this.set(h[0], h[1]);
965
+ J.prototype.clear = tr, J.prototype.delete = nr, J.prototype.get = rr, J.prototype.has = ar, J.prototype.set = ir;
966
+ function fe(r) {
967
+ var s = -1, l = r ? r.length : 0;
968
+ for (this.clear(); ++s < l; ) {
969
+ var p = r[s];
970
+ this.set(p[0], p[1]);
999
971
  }
1000
972
  }
1001
- function ar() {
973
+ function or() {
1002
974
  this.__data__ = {
1003
- hash: new oe(),
1004
- map: new (Me || W)(),
1005
- string: new oe()
975
+ hash: new le(),
976
+ map: new (Te || J)(),
977
+ string: new le()
1006
978
  };
1007
979
  }
1008
- function ir(r) {
1009
- return Ce(this, r).delete(r);
980
+ function sr(r) {
981
+ return Pe(this, r).delete(r);
1010
982
  }
1011
- function or(r) {
1012
- return Ce(this, r).get(r);
983
+ function lr(r) {
984
+ return Pe(this, r).get(r);
1013
985
  }
1014
- function sr(r) {
1015
- return Ce(this, r).has(r);
986
+ function ur(r) {
987
+ return Pe(this, r).has(r);
1016
988
  }
1017
- function lr(r, o) {
1018
- return Ce(this, r).set(r, o), this;
989
+ function cr(r, s) {
990
+ return Pe(this, r).set(r, s), this;
1019
991
  }
1020
- he.prototype.clear = ar, he.prototype.delete = ir, he.prototype.get = or, he.prototype.has = sr, he.prototype.set = lr;
992
+ fe.prototype.clear = or, fe.prototype.delete = sr, fe.prototype.get = lr, fe.prototype.has = ur, fe.prototype.set = cr;
1021
993
  function pe(r) {
1022
- this.__data__ = new W(r);
994
+ this.__data__ = new J(r);
1023
995
  }
1024
- function ur() {
1025
- this.__data__ = new W();
996
+ function dr() {
997
+ this.__data__ = new J();
1026
998
  }
1027
- function cr(r) {
999
+ function mr(r) {
1028
1000
  return this.__data__.delete(r);
1029
1001
  }
1030
- function dr(r) {
1002
+ function fr(r) {
1031
1003
  return this.__data__.get(r);
1032
1004
  }
1033
- function mr(r) {
1005
+ function pr(r) {
1034
1006
  return this.__data__.has(r);
1035
1007
  }
1036
- function fr(r, o) {
1008
+ function hr(r, s) {
1037
1009
  var l = this.__data__;
1038
- if (l instanceof W) {
1039
- var h = l.__data__;
1040
- if (!Me || h.length < n - 1)
1041
- return h.push([r, o]), this;
1042
- l = this.__data__ = new he(h);
1010
+ if (l instanceof J) {
1011
+ var p = l.__data__;
1012
+ if (!Te || p.length < n - 1)
1013
+ return p.push([r, s]), this;
1014
+ l = this.__data__ = new fe(p);
1043
1015
  }
1044
- return l.set(r, o), this;
1016
+ return l.set(r, s), this;
1045
1017
  }
1046
- pe.prototype.clear = ur, pe.prototype.delete = cr, pe.prototype.get = dr, pe.prototype.has = mr, pe.prototype.set = fr;
1047
- function hr(r, o) {
1048
- var l = ot(r) || Ur(r) ? In(r.length, String) : [], h = l.length, S = !!h;
1049
- for (var O in r)
1050
- re.call(r, O) && !(S && (O == "length" || Gr(O, h))) && l.push(O);
1018
+ pe.prototype.clear = dr, pe.prototype.delete = mr, pe.prototype.get = fr, pe.prototype.has = pr, pe.prototype.set = hr;
1019
+ function yr(r, s) {
1020
+ var l = ot(r) || Br(r) ? In(r.length, String) : [], p = l.length, N = !!p;
1021
+ for (var I in r)
1022
+ oe.call(r, I) && !(N && (I == "length" || Pr(I, p))) && l.push(I);
1051
1023
  return l;
1052
1024
  }
1053
- function Ht(r, o, l) {
1054
- var h = r[o];
1055
- (!(re.call(r, o) && jt(h, l)) || l === void 0 && !(o in r)) && (r[o] = l);
1025
+ function jt(r, s, l) {
1026
+ var p = r[s];
1027
+ (!(oe.call(r, s) && Zt(p, l)) || l === void 0 && !(s in r)) && (r[s] = l);
1056
1028
  }
1057
- function Ge(r, o) {
1029
+ function Le(r, s) {
1058
1030
  for (var l = r.length; l--; )
1059
- if (jt(r[l][0], o))
1031
+ if (Zt(r[l][0], s))
1060
1032
  return l;
1061
1033
  return -1;
1062
1034
  }
1063
- function pr(r, o) {
1064
- return r && Yt(o, st(o), r);
1035
+ function _r(r, s) {
1036
+ return r && $t(s, st(s), r);
1065
1037
  }
1066
- function at(r, o, l, h, S, O, Z) {
1067
- var I;
1068
- if (h && (I = O ? h(r, S, O, Z) : h(r)), I !== void 0)
1069
- return I;
1070
- if (!Ae(r))
1038
+ function at(r, s, l, p, N, I, X) {
1039
+ var L;
1040
+ if (p && (L = I ? p(r, N, I, X) : p(r)), L !== void 0)
1041
+ return L;
1042
+ if (!Ue(r))
1071
1043
  return r;
1072
- var Wt = ot(r);
1073
- if (Wt) {
1074
- if (I = Or(r), !o)
1075
- return Nr(r, I);
1044
+ var Xt = ot(r);
1045
+ if (Xt) {
1046
+ if (L = Gr(r), !s)
1047
+ return Rr(r, L);
1076
1048
  } else {
1077
- var _e = se(r), Zt = _e == u || _e == f;
1078
- if (Br(r))
1079
- return xr(r, o);
1080
- if (_e == F || _e == s || Zt && !O) {
1081
- if (Rt(r))
1082
- return O ? r : {};
1083
- if (I = Ir(Zt ? {} : r), !o)
1084
- return Er(r, pr(I, r));
1049
+ var ye = ue(r), Qt = ye == c || ye == y;
1050
+ if (Vr(r))
1051
+ return Mr(r, s);
1052
+ if (ye == k || ye == o || Qt && !I) {
1053
+ if (It(r))
1054
+ return I ? r : {};
1055
+ if (L = Ir(Qt ? {} : r), !s)
1056
+ return Or(r, _r(L, r));
1085
1057
  } else {
1086
- if (!w[_e])
1087
- return O ? r : {};
1088
- I = Lr(r, _e, at, o);
1058
+ if (!g[ye])
1059
+ return I ? r : {};
1060
+ L = Lr(r, ye, at, s);
1089
1061
  }
1090
1062
  }
1091
- Z || (Z = new pe());
1092
- var qt = Z.get(r);
1093
- if (qt)
1094
- return qt;
1095
- if (Z.set(r, I), !Wt)
1096
- var Jt = l ? Rr(r) : st(r);
1097
- return fe(Jt || r, function(lt, Pe) {
1098
- Jt && (Pe = lt, lt = r[Pe]), Ht(I, Pe, at(lt, o, l, h, Pe, r, Z));
1099
- }), I;
1100
- }
1101
- function yr(r) {
1102
- return Ae(r) ? Un(r) : {};
1103
- }
1104
- function _r(r, o, l) {
1105
- var h = o(r);
1106
- return ot(r) ? h : On(h, l(r));
1063
+ X || (X = new pe());
1064
+ var en = X.get(r);
1065
+ if (en)
1066
+ return en;
1067
+ if (X.set(r, L), !Xt)
1068
+ var tn = l ? br(r) : st(r);
1069
+ return Me(tn || r, function(lt, Ce) {
1070
+ tn && (Ce = lt, lt = r[Ce]), jt(L, Ce, at(lt, s, l, p, Ce, r, X));
1071
+ }), L;
1107
1072
  }
1108
1073
  function gr(r) {
1109
- return Le.call(r);
1074
+ return Ue(r) ? Bn(r) : {};
1075
+ }
1076
+ function wr(r, s, l) {
1077
+ var p = s(r);
1078
+ return ot(r) ? p : Gn(p, l(r));
1110
1079
  }
1111
1080
  function vr(r) {
1112
- if (!Ae(r) || Ar(r))
1081
+ return Ie.call(r);
1082
+ }
1083
+ function xr(r) {
1084
+ if (!Ue(r) || Cr(r))
1113
1085
  return !1;
1114
- var o = $t(r) || Rt(r) ? An : Y;
1115
- return o.test(le(r));
1086
+ var s = Jt(r) || It(r) ? Cn : j;
1087
+ return s.test(ce(r));
1116
1088
  }
1117
- function wr(r) {
1118
- if (!zt(r))
1119
- return Yn(r);
1120
- var o = [];
1089
+ function Fr(r) {
1090
+ if (!Wt(r))
1091
+ return zn(r);
1092
+ var s = [];
1121
1093
  for (var l in Object(r))
1122
- re.call(r, l) && l != "constructor" && o.push(l);
1123
- return o;
1094
+ oe.call(r, l) && l != "constructor" && s.push(l);
1095
+ return s;
1124
1096
  }
1125
- function xr(r, o) {
1126
- if (o)
1097
+ function Mr(r, s) {
1098
+ if (s)
1127
1099
  return r.slice();
1128
1100
  var l = new r.constructor(r.length);
1129
1101
  return r.copy(l), l;
1130
1102
  }
1131
1103
  function it(r) {
1132
- var o = new r.constructor(r.byteLength);
1133
- return new Pt(o).set(new Pt(r)), o;
1104
+ var s = new r.constructor(r.byteLength);
1105
+ return new Ht(s).set(new Ht(r)), s;
1134
1106
  }
1135
- function Tr(r, o) {
1136
- var l = o ? it(r.buffer) : r.buffer;
1107
+ function Tr(r, s) {
1108
+ var l = s ? it(r.buffer) : r.buffer;
1137
1109
  return new r.constructor(l, r.byteOffset, r.byteLength);
1138
1110
  }
1139
- function Mr(r, o, l) {
1140
- var h = o ? l(Ot(r), !0) : Ot(r);
1141
- return Et(h, qe, new r.constructor());
1111
+ function Sr(r, s, l) {
1112
+ var p = s ? l(Lt(r), !0) : Lt(r);
1113
+ return Gt(p, qe, new r.constructor());
1142
1114
  }
1143
- function Fr(r) {
1144
- var o = new r.constructor(r.source, H.exec(r));
1145
- return o.lastIndex = r.lastIndex, o;
1115
+ function Dr(r) {
1116
+ var s = new r.constructor(r.source, z.exec(r));
1117
+ return s.lastIndex = r.lastIndex, s;
1146
1118
  }
1147
- function Sr(r, o, l) {
1148
- var h = o ? l(It(r), !0) : It(r);
1149
- return Et(h, Je, new r.constructor());
1119
+ function Nr(r, s, l) {
1120
+ var p = s ? l(Pt(r), !0) : Pt(r);
1121
+ return Gt(p, Je, new r.constructor());
1150
1122
  }
1151
- function Dr(r) {
1152
- return Bt ? Object(Bt.call(r)) : {};
1123
+ function kr(r) {
1124
+ return zt ? Object(zt.call(r)) : {};
1153
1125
  }
1154
- function kr(r, o) {
1155
- var l = o ? it(r.buffer) : r.buffer;
1126
+ function Er(r, s) {
1127
+ var l = s ? it(r.buffer) : r.buffer;
1156
1128
  return new r.constructor(l, r.byteOffset, r.length);
1157
1129
  }
1158
- function Nr(r, o) {
1159
- var l = -1, h = r.length;
1160
- for (o || (o = Array(h)); ++l < h; )
1161
- o[l] = r[l];
1162
- return o;
1130
+ function Rr(r, s) {
1131
+ var l = -1, p = r.length;
1132
+ for (s || (s = Array(p)); ++l < p; )
1133
+ s[l] = r[l];
1134
+ return s;
1163
1135
  }
1164
- function Yt(r, o, l, h) {
1136
+ function $t(r, s, l, p) {
1165
1137
  l || (l = {});
1166
- for (var S = -1, O = o.length; ++S < O; ) {
1167
- var Z = o[S], I = void 0;
1168
- Ht(l, Z, I === void 0 ? r[Z] : I);
1138
+ for (var N = -1, I = s.length; ++N < I; ) {
1139
+ var X = s[N], L = void 0;
1140
+ jt(l, X, L === void 0 ? r[X] : L);
1169
1141
  }
1170
1142
  return l;
1171
1143
  }
1172
- function Er(r, o) {
1173
- return Yt(r, Vt(r), o);
1144
+ function Or(r, s) {
1145
+ return $t(r, Kt(r), s);
1174
1146
  }
1175
- function Rr(r) {
1176
- return _r(r, st, Vt);
1147
+ function br(r) {
1148
+ return wr(r, st, Kt);
1177
1149
  }
1178
- function Ce(r, o) {
1150
+ function Pe(r, s) {
1179
1151
  var l = r.__data__;
1180
- return Cr(o) ? l[typeof o == "string" ? "string" : "hash"] : l.map;
1152
+ return Ur(s) ? l[typeof s == "string" ? "string" : "hash"] : l.map;
1181
1153
  }
1182
- function ye(r, o) {
1183
- var l = Ln(r, o);
1184
- return vr(l) ? l : void 0;
1154
+ function he(r, s) {
1155
+ var l = Ln(r, s);
1156
+ return xr(l) ? l : void 0;
1185
1157
  }
1186
- var Vt = Ut ? Xe(Ut, Object) : Vr, se = gr;
1187
- (et && se(new et(new ArrayBuffer(1))) != de || Me && se(new Me()) != _ || tt && se(tt.resolve()) != N || nt && se(new nt()) != Q || rt && se(new rt()) != b) && (se = function(r) {
1188
- var o = Le.call(r), l = o == F ? r.constructor : void 0, h = l ? le(l) : void 0;
1189
- if (h)
1190
- switch (h) {
1191
- case Vn:
1192
- return de;
1193
- case zn:
1194
- return _;
1158
+ var Kt = Vt ? Xe(Vt, Object) : jr, ue = vr;
1159
+ (et && ue(new et(new ArrayBuffer(1))) != ne || Te && ue(new Te()) != w || tt && ue(tt.resolve()) != P || nt && ue(new nt()) != T || rt && ue(new rt()) != E) && (ue = function(r) {
1160
+ var s = Ie.call(r), l = s == k ? r.constructor : void 0, p = l ? ce(l) : void 0;
1161
+ if (p)
1162
+ switch (p) {
1195
1163
  case jn:
1196
- return N;
1197
- case Kn:
1198
- return Q;
1164
+ return ne;
1199
1165
  case $n:
1200
- return b;
1166
+ return w;
1167
+ case Kn:
1168
+ return P;
1169
+ case Wn:
1170
+ return T;
1171
+ case Zn:
1172
+ return E;
1201
1173
  }
1202
- return o;
1174
+ return s;
1203
1175
  });
1204
- function Or(r) {
1205
- var o = r.length, l = r.constructor(o);
1206
- return o && typeof r[0] == "string" && re.call(r, "index") && (l.index = r.index, l.input = r.input), l;
1176
+ function Gr(r) {
1177
+ var s = r.length, l = r.constructor(s);
1178
+ return s && typeof r[0] == "string" && oe.call(r, "index") && (l.index = r.index, l.input = r.input), l;
1207
1179
  }
1208
1180
  function Ir(r) {
1209
- return typeof r.constructor == "function" && !zt(r) ? yr(Pn(r)) : {};
1181
+ return typeof r.constructor == "function" && !Wt(r) ? gr(An(r)) : {};
1210
1182
  }
1211
- function Lr(r, o, l, h) {
1212
- var S = r.constructor;
1213
- switch (o) {
1214
- case We:
1183
+ function Lr(r, s, l, p) {
1184
+ var N = r.constructor;
1185
+ switch (s) {
1186
+ case V:
1215
1187
  return it(r);
1216
1188
  case d:
1217
- case y:
1218
- return new S(+r);
1219
- case de:
1220
- return Tr(r, h);
1221
- case g:
1222
- case T:
1223
- case M:
1224
- case D:
1225
- case ee:
1226
- case K:
1227
- case B:
1228
- case te:
1189
+ case f:
1190
+ return new N(+r);
1229
1191
  case ne:
1230
- return kr(r, h);
1192
+ return Tr(r, p);
1231
1193
  case _:
1232
- return Mr(r, h, l);
1233
- case v:
1234
- case U:
1235
- return new S(r);
1236
- case P:
1237
- return Fr(r);
1238
- case Q:
1239
- return Sr(r, h, l);
1194
+ case F:
1195
+ case D:
1196
+ case R:
1197
+ case re:
1198
+ case Z:
1199
+ case Y:
1200
+ case ae:
1240
1201
  case ie:
1202
+ return Er(r, p);
1203
+ case w:
1204
+ return Sr(r, p, l);
1205
+ case x:
1206
+ case S:
1207
+ return new N(r);
1208
+ case M:
1241
1209
  return Dr(r);
1210
+ case T:
1211
+ return Nr(r, p, l);
1212
+ case U:
1213
+ return kr(r);
1242
1214
  }
1243
1215
  }
1244
- function Gr(r, o) {
1245
- return o = o ?? i, !!o && (typeof r == "number" || V.test(r)) && r > -1 && r % 1 == 0 && r < o;
1216
+ function Pr(r, s) {
1217
+ return s = s ?? i, !!s && (typeof r == "number" || $.test(r)) && r > -1 && r % 1 == 0 && r < s;
1246
1218
  }
1247
- function Cr(r) {
1248
- var o = typeof r;
1249
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? r !== "__proto__" : r === null;
1219
+ function Ur(r) {
1220
+ var s = typeof r;
1221
+ return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
1250
1222
  }
1251
- function Ar(r) {
1252
- return !!Lt && Lt in r;
1223
+ function Cr(r) {
1224
+ return !!Ut && Ut in r;
1253
1225
  }
1254
- function zt(r) {
1255
- var o = r && r.constructor, l = typeof o == "function" && o.prototype || Ie;
1226
+ function Wt(r) {
1227
+ var s = r && r.constructor, l = typeof s == "function" && s.prototype || Ge;
1256
1228
  return r === l;
1257
1229
  }
1258
- function le(r) {
1230
+ function ce(r) {
1259
1231
  if (r != null) {
1260
1232
  try {
1261
- return Gt.call(r);
1233
+ return Ct.call(r);
1262
1234
  } catch {
1263
1235
  }
1264
1236
  try {
@@ -1268,53 +1240,53 @@ Ye.exports;
1268
1240
  }
1269
1241
  return "";
1270
1242
  }
1271
- function Pr(r) {
1243
+ function Ar(r) {
1272
1244
  return at(r, !0, !0);
1273
1245
  }
1274
- function jt(r, o) {
1275
- return r === o || r !== r && o !== o;
1246
+ function Zt(r, s) {
1247
+ return r === s || r !== r && s !== s;
1276
1248
  }
1277
- function Ur(r) {
1278
- return br(r) && re.call(r, "callee") && (!bn.call(r, "callee") || Le.call(r) == s);
1249
+ function Br(r) {
1250
+ return Hr(r) && oe.call(r, "callee") && (!Hn.call(r, "callee") || Ie.call(r) == o);
1279
1251
  }
1280
1252
  var ot = Array.isArray;
1281
- function Kt(r) {
1282
- return r != null && Hr(r.length) && !$t(r);
1253
+ function qt(r) {
1254
+ return r != null && Yr(r.length) && !Jt(r);
1283
1255
  }
1284
- function br(r) {
1285
- return Yr(r) && Kt(r);
1256
+ function Hr(r) {
1257
+ return zr(r) && qt(r);
1286
1258
  }
1287
- var Br = Hn || zr;
1288
- function $t(r) {
1289
- var o = Ae(r) ? Le.call(r) : "";
1290
- return o == u || o == f;
1259
+ var Vr = Yn || $r;
1260
+ function Jt(r) {
1261
+ var s = Ue(r) ? Ie.call(r) : "";
1262
+ return s == c || s == y;
1291
1263
  }
1292
- function Hr(r) {
1264
+ function Yr(r) {
1293
1265
  return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
1294
1266
  }
1295
- function Ae(r) {
1296
- var o = typeof r;
1297
- return !!r && (o == "object" || o == "function");
1267
+ function Ue(r) {
1268
+ var s = typeof r;
1269
+ return !!r && (s == "object" || s == "function");
1298
1270
  }
1299
- function Yr(r) {
1271
+ function zr(r) {
1300
1272
  return !!r && typeof r == "object";
1301
1273
  }
1302
1274
  function st(r) {
1303
- return Kt(r) ? hr(r) : wr(r);
1275
+ return qt(r) ? yr(r) : Fr(r);
1304
1276
  }
1305
- function Vr() {
1277
+ function jr() {
1306
1278
  return [];
1307
1279
  }
1308
- function zr() {
1280
+ function $r() {
1309
1281
  return !1;
1310
1282
  }
1311
- e.exports = Pr;
1283
+ e.exports = Ar;
1312
1284
  })(Ye, Ye.exports);
1313
1285
  Ye.exports;
1314
- const X = (e, t) => new Date(e.getTime() - Za(t, e));
1315
- class k {
1286
+ const te = (e, t) => new Date(e.getTime() - Za(t, e));
1287
+ class O {
1316
1288
  constructor(t) {
1317
- G(this, "timeframeText"), G(this, "key"), G(this, "display"), G(this, "timeframeLength"), G(this, "allowedTiers"), G(this, "defaultResponseGranularity"), G(this, "dataGranularity"), G(this, "isRelative"), G(this, "fineGrainedDefaultGranularity"), G(this, "_startCustom"), G(this, "_endCustom"), G(this, "_allowedGranularitiesOverride"), 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;
1289
+ A(this, "timeframeText"), A(this, "key"), A(this, "display"), A(this, "timeframeLength"), A(this, "allowedTiers"), A(this, "defaultResponseGranularity"), A(this, "dataGranularity"), A(this, "isRelative"), A(this, "fineGrainedDefaultGranularity"), A(this, "_startCustom"), A(this, "_endCustom"), A(this, "_allowedGranularitiesOverride"), 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;
1318
1290
  }
1319
1291
  // rawEnd does not consider granularity and should not be used directly in queries.
1320
1292
  // Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
@@ -1364,71 +1336,71 @@ class k {
1364
1336
  if (!t)
1365
1337
  return /* @__PURE__ */ new Date();
1366
1338
  const n = Wa(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1367
- return $a(n, t);
1339
+ return Ka(n, t);
1368
1340
  }
1369
1341
  }
1370
- class qa extends k {
1342
+ class Ja extends O {
1371
1343
  rawStart(t) {
1372
- let n = He(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1373
- return t && (n = X(n, t)), n;
1344
+ let n = Ve(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1345
+ return t && (n = te(n, t)), n;
1374
1346
  }
1375
1347
  maximumTimeframeLength() {
1376
1348
  return 60 * 60 * 24 * 7;
1377
1349
  }
1378
1350
  }
1379
- class Ja extends k {
1351
+ class Xa extends O {
1380
1352
  rawStart(t) {
1381
1353
  let n = we(this.tzAdjustedDate(t));
1382
- return t && (n = X(n, t)), n;
1354
+ return t && (n = te(n, t)), n;
1383
1355
  }
1384
1356
  maximumTimeframeLength() {
1385
1357
  return 60 * 60 * 24 * 31;
1386
1358
  }
1387
1359
  }
1388
- class Xa extends k {
1360
+ class Qa extends O {
1389
1361
  rawStart(t) {
1390
1362
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1391
- return t && (n = X(n, t)), n;
1363
+ return t && (n = te(n, t)), n;
1392
1364
  }
1393
1365
  maximumTimeframeLength() {
1394
1366
  return 60 * 60 * 24 * 366;
1395
1367
  }
1396
1368
  }
1397
- class Qa extends k {
1369
+ class ei extends O {
1398
1370
  rawEnd(t) {
1399
- let n = He(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1400
- return t && (n = X(n, t)), n;
1371
+ let n = Ve(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1372
+ return t && (n = te(n, t)), n;
1401
1373
  }
1402
1374
  rawStart(t) {
1403
1375
  const n = this.tzAdjustedDate(t);
1404
- let a = He(n.setDate(n.getDate() - 7), {
1376
+ let a = Ve(n.setDate(n.getDate() - 7), {
1405
1377
  weekStartsOn: 1
1406
1378
  });
1407
- return t && (a = X(a, t)), a;
1379
+ return t && (a = te(a, t)), a;
1408
1380
  }
1409
1381
  }
1410
- class ei extends k {
1382
+ class ti extends O {
1411
1383
  rawEnd(t) {
1412
1384
  let n = we(this.tzAdjustedDate(t));
1413
- return t && (n = X(n, t)), n;
1385
+ return t && (n = te(n, t)), n;
1414
1386
  }
1415
1387
  rawStart(t) {
1416
- let n = we(Dn(this.tzAdjustedDate(t)));
1417
- return t && (n = X(n, t)), n;
1388
+ let n = we(Nn(this.tzAdjustedDate(t)));
1389
+ return t && (n = te(n, t)), n;
1418
1390
  }
1419
1391
  }
1420
- class ti extends k {
1392
+ class ni extends O {
1421
1393
  rawEnd(t) {
1422
1394
  let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1423
- return t && (n = X(n, t)), n;
1395
+ return t && (n = te(n, t)), n;
1424
1396
  }
1425
1397
  rawStart(t) {
1426
1398
  let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
1427
- return t && (n = X(n, t)), n;
1399
+ return t && (n = te(n, t)), n;
1428
1400
  }
1429
1401
  }
1430
- p.FIFTEEN_MIN, new k({
1431
- key: p.FIFTEEN_MIN,
1402
+ h.FIFTEEN_MIN, new O({
1403
+ key: h.FIFTEEN_MIN,
1432
1404
  display: "Last 15 minutes",
1433
1405
  timeframeText: "15 minutes",
1434
1406
  timeframeLength: () => 60 * 15,
@@ -1438,8 +1410,8 @@ p.FIFTEEN_MIN, new k({
1438
1410
  fineGrainedDefaultGranularity: "thirtySecondly",
1439
1411
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1440
1412
  allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
1441
- }), p.ONE_HOUR, new k({
1442
- key: p.ONE_HOUR,
1413
+ }), h.ONE_HOUR, new O({
1414
+ key: h.ONE_HOUR,
1443
1415
  display: "Last hour",
1444
1416
  timeframeText: "One hour",
1445
1417
  timeframeLength: () => 60 * 60 * 1,
@@ -1449,8 +1421,8 @@ p.FIFTEEN_MIN, new k({
1449
1421
  fineGrainedDefaultGranularity: "minutely",
1450
1422
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1451
1423
  allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
1452
- }), p.SIX_HOUR, new k({
1453
- key: p.SIX_HOUR,
1424
+ }), h.SIX_HOUR, new O({
1425
+ key: h.SIX_HOUR,
1454
1426
  display: "Last 6 hours",
1455
1427
  timeframeText: "6 hours",
1456
1428
  timeframeLength: () => 60 * 60 * 6,
@@ -1460,8 +1432,8 @@ p.FIFTEEN_MIN, new k({
1460
1432
  fineGrainedDefaultGranularity: "fiveMinutely",
1461
1433
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1462
1434
  allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1463
- }), p.TWELVE_HOUR, new k({
1464
- key: p.TWELVE_HOUR,
1435
+ }), h.TWELVE_HOUR, new O({
1436
+ key: h.TWELVE_HOUR,
1465
1437
  display: "Last 12 hours",
1466
1438
  timeframeText: "12 hours",
1467
1439
  timeframeLength: () => 60 * 60 * 12,
@@ -1471,8 +1443,8 @@ p.FIFTEEN_MIN, new k({
1471
1443
  fineGrainedDefaultGranularity: "tenMinutely",
1472
1444
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1473
1445
  allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1474
- }), p.ONE_DAY, new k({
1475
- key: p.ONE_DAY,
1446
+ }), h.ONE_DAY, new O({
1447
+ key: h.ONE_DAY,
1476
1448
  display: "Last 24 hours",
1477
1449
  timeframeText: "24 hours",
1478
1450
  timeframeLength: () => 60 * 60 * 24,
@@ -1482,8 +1454,8 @@ p.FIFTEEN_MIN, new k({
1482
1454
  fineGrainedDefaultGranularity: "thirtyMinutely",
1483
1455
  allowedTiers: ["free", "trial", "plus", "enterprise"],
1484
1456
  allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1485
- }), p.SEVEN_DAY, new k({
1486
- key: p.SEVEN_DAY,
1457
+ }), h.SEVEN_DAY, new O({
1458
+ key: h.SEVEN_DAY,
1487
1459
  display: "Last 7 days",
1488
1460
  timeframeText: "7 days",
1489
1461
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -1493,8 +1465,8 @@ p.FIFTEEN_MIN, new k({
1493
1465
  fineGrainedDefaultGranularity: "twoHourly",
1494
1466
  allowedTiers: ["trial", "plus", "enterprise"],
1495
1467
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1496
- }), p.THIRTY_DAY, new k({
1497
- key: p.THIRTY_DAY,
1468
+ }), h.THIRTY_DAY, new O({
1469
+ key: h.THIRTY_DAY,
1498
1470
  display: "Last 30 days",
1499
1471
  timeframeText: "30 days",
1500
1472
  timeframeLength: () => 60 * 60 * 24 * 30,
@@ -1504,8 +1476,8 @@ p.FIFTEEN_MIN, new k({
1504
1476
  fineGrainedDefaultGranularity: "twelveHourly",
1505
1477
  allowedTiers: ["trial", "plus", "enterprise"],
1506
1478
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1507
- }), p.NINETY_DAY, new k({
1508
- key: p.NINETY_DAY,
1479
+ }), h.NINETY_DAY, new O({
1480
+ key: h.NINETY_DAY,
1509
1481
  display: "Last 90 days",
1510
1482
  timeframeText: "90 days",
1511
1483
  timeframeLength: () => 60 * 60 * 24 * 90,
@@ -1515,8 +1487,8 @@ p.FIFTEEN_MIN, new k({
1515
1487
  fineGrainedDefaultGranularity: "daily",
1516
1488
  allowedTiers: ["trial", "plus", "enterprise"],
1517
1489
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1518
- }), p.ONE_HUNDRED_EIGHTY_DAY, new k({
1519
- key: p.ONE_HUNDRED_EIGHTY_DAY,
1490
+ }), h.ONE_HUNDRED_EIGHTY_DAY, new O({
1491
+ key: h.ONE_HUNDRED_EIGHTY_DAY,
1520
1492
  display: "Last 180 days",
1521
1493
  timeframeText: "180 days",
1522
1494
  timeframeLength: () => 60 * 60 * 24 * 180,
@@ -1526,8 +1498,8 @@ p.FIFTEEN_MIN, new k({
1526
1498
  fineGrainedDefaultGranularity: "daily",
1527
1499
  allowedTiers: ["trial", "plus", "enterprise"],
1528
1500
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1529
- }), p.ONE_YEAR, new k({
1530
- key: p.ONE_YEAR,
1501
+ }), h.ONE_YEAR, new O({
1502
+ key: h.ONE_YEAR,
1531
1503
  display: "Last 365 days",
1532
1504
  timeframeText: "365 days",
1533
1505
  timeframeLength: () => 60 * 60 * 24 * 365,
@@ -1537,13 +1509,13 @@ p.FIFTEEN_MIN, new k({
1537
1509
  fineGrainedDefaultGranularity: "daily",
1538
1510
  allowedTiers: ["trial", "plus", "enterprise"],
1539
1511
  allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1540
- }), p.CURRENT_WEEK, new qa({
1541
- key: p.CURRENT_WEEK,
1512
+ }), h.CURRENT_WEEK, new Ja({
1513
+ key: h.CURRENT_WEEK,
1542
1514
  display: "This week",
1543
1515
  timeframeText: "Week",
1544
1516
  timeframeLength: () => {
1545
- const e = He(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1546
- return (dt(mt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1517
+ const e = Ve(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1518
+ return (mt(ft(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1547
1519
  },
1548
1520
  defaultResponseGranularity: "daily",
1549
1521
  dataGranularity: "daily",
@@ -1551,32 +1523,32 @@ p.FIFTEEN_MIN, new k({
1551
1523
  fineGrainedDefaultGranularity: "twoHourly",
1552
1524
  allowedTiers: ["plus", "enterprise"],
1553
1525
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1554
- }), p.CURRENT_MONTH, new Ja({
1555
- key: p.CURRENT_MONTH,
1526
+ }), h.CURRENT_MONTH, new Xa({
1527
+ key: h.CURRENT_MONTH,
1556
1528
  display: "This month",
1557
1529
  timeframeText: "Month",
1558
1530
  timeframeLength: () => {
1559
1531
  const e = we(/* @__PURE__ */ new Date());
1560
- return (dt(mt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1532
+ return (mt(ft(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1561
1533
  },
1562
1534
  defaultResponseGranularity: "daily",
1563
1535
  dataGranularity: "daily",
1564
1536
  isRelative: !1,
1565
1537
  allowedTiers: ["plus", "enterprise"]
1566
- }), p.CURRENT_YEAR, new Xa({
1567
- key: p.CURRENT_YEAR,
1538
+ }), h.CURRENT_YEAR, new Qa({
1539
+ key: h.CURRENT_YEAR,
1568
1540
  display: "This year",
1569
1541
  timeframeText: "Year",
1570
1542
  timeframeLength: () => {
1571
1543
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
1572
- return (dt(mt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1544
+ return (mt(ft(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1573
1545
  },
1574
1546
  defaultResponseGranularity: "daily",
1575
1547
  dataGranularity: "daily",
1576
1548
  isRelative: !1,
1577
1549
  allowedTiers: ["plus", "enterprise"]
1578
- }), p.PREVIOUS_WEEK, new Qa({
1579
- key: p.PREVIOUS_WEEK,
1550
+ }), h.PREVIOUS_WEEK, new ei({
1551
+ key: h.PREVIOUS_WEEK,
1580
1552
  display: "Previous week",
1581
1553
  timeframeText: "Week",
1582
1554
  timeframeLength: () => 60 * 60 * 24 * 7,
@@ -1586,106 +1558,218 @@ p.FIFTEEN_MIN, new k({
1586
1558
  fineGrainedDefaultGranularity: "twoHourly",
1587
1559
  allowedTiers: ["plus", "enterprise"],
1588
1560
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1589
- }), p.PREVIOUS_MONTH, new ei({
1590
- key: p.PREVIOUS_MONTH,
1561
+ }), h.PREVIOUS_MONTH, new ti({
1562
+ key: h.PREVIOUS_MONTH,
1591
1563
  display: "Previous month",
1592
1564
  timeframeText: "Month",
1593
1565
  timeframeLength: () => {
1594
1566
  let e = 0;
1595
- const t = we(/* @__PURE__ */ new Date()), n = we(Dn(/* @__PURE__ */ new Date()));
1596
- return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = mn(t, n)), 60 * 60 * 24 * ka((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + tn(e);
1567
+ const t = we(/* @__PURE__ */ new Date()), n = we(Nn(/* @__PURE__ */ new Date()));
1568
+ return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = hn(t, n)), 60 * 60 * 24 * Na((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + an(e);
1597
1569
  },
1598
1570
  defaultResponseGranularity: "daily",
1599
1571
  dataGranularity: "daily",
1600
1572
  isRelative: !1,
1601
1573
  allowedTiers: ["plus", "enterprise"]
1602
- }), p.PREVIOUS_YEAR, new ti({
1603
- key: p.PREVIOUS_YEAR,
1574
+ }), h.PREVIOUS_YEAR, new ni({
1575
+ key: h.PREVIOUS_YEAR,
1604
1576
  display: "Previous year",
1605
1577
  timeframeText: "Year",
1606
1578
  timeframeLength: () => {
1607
1579
  const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
1608
1580
  let n = 0;
1609
- return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = mn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + tn(n);
1581
+ return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = hn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + an(n);
1610
1582
  },
1611
1583
  defaultResponseGranularity: "daily",
1612
1584
  dataGranularity: "daily",
1613
1585
  isRelative: !1,
1614
1586
  allowedTiers: ["plus", "enterprise"]
1615
1587
  });
1616
- function mn(e, t) {
1617
- return Na(e.getTimezoneOffset() - t.getTimezoneOffset());
1588
+ function hn(e, t) {
1589
+ return ka(e.getTimezoneOffset() - t.getTimezoneOffset());
1590
+ }
1591
+ h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.THIRTY_DAY, h.NINETY_DAY, h.ONE_HUNDRED_EIGHTY_DAY, h.ONE_YEAR, h.CURRENT_WEEK, h.CURRENT_MONTH, h.CURRENT_YEAR, h.PREVIOUS_WEEK, h.PREVIOUS_MONTH, h.PREVIOUS_YEAR;
1592
+ new Map(Nt.map((e) => [e.code, { code: e.code, name: e.name }]));
1593
+ var Rn = { exports: {} };
1594
+ (function(e) {
1595
+ (function() {
1596
+ function t(m, c) {
1597
+ if (c.separator === !1 || m < 1e3)
1598
+ return m.toString();
1599
+ var y = typeof c.separator == "string" ? c.separator : ",", w = [], x = Math.round(m).toString().split("");
1600
+ return x.reverse().forEach(function(k, P) {
1601
+ P && P % 3 === 0 && w.push(y), w.push(k);
1602
+ }), w.reverse().join("");
1603
+ }
1604
+ function n(m, c, y) {
1605
+ var w = m / c, x = y.round ? "round" : "floor";
1606
+ return y.decimal === !1 ? (m = Math[x](w), m.toString()) : (y.precision ? m = w : m = w < 10 ? Math[x](w * 10) / 10 : Math[x](w), m = m.toString(), typeof y.decimal == "string" && (m = m.replace(".", y.decimal)), m);
1607
+ }
1608
+ var a = 1e3, i = 1e4, o = 1e6, u = 1e9, d = 1e12;
1609
+ function f(m, c) {
1610
+ var y;
1611
+ c = c || {};
1612
+ var w = m < 0;
1613
+ w && (m = Math.abs(m)), c.precision && (m = parseFloat(m.toPrecision(c.precision)));
1614
+ var x = c.min10k ? i : a;
1615
+ return m < x || c.precision && c.precision > Math.log10(m) ? y = t(n(m, 1, c), c) : m < o ? y = n(m, a, c) + "k" : m < u ? y = n(m, o, c) + "m" : m < d ? y = t(n(m, u, c), c) + "b" : y = t(n(m, d, c), c) + "t", w && (y = "-" + y), c.capital && (y = y.toUpperCase()), c.prefix && (y = c.prefix + y), c.suffix && (y = y + c.suffix), y;
1616
+ }
1617
+ f.addCommas = t, e.exports = f;
1618
+ })();
1619
+ })(Rn);
1620
+ var ri = Rn.exports;
1621
+ const gt = /* @__PURE__ */ qa(ri);
1622
+ var yn;
1623
+ const wt = new Intl.NumberFormat(((yn = document == null ? void 0 : document.documentElement) == null ? void 0 : yn.lang) || "en-US");
1624
+ function ai({
1625
+ i18n: e
1626
+ }) {
1627
+ const t = (a, i) => {
1628
+ if (isNaN(a))
1629
+ return "0 B";
1630
+ const o = i ? Math.pow(2, 50) : 1e15, u = i ? Math.pow(2, 40) : 1e12, d = i ? Math.pow(2, 30) : 1e9, f = i ? Math.pow(2, 20) : 1e6, m = i ? Math.pow(2, 10) : 1e3;
1631
+ let c;
1632
+ return a >= o ? c = e.formatNumber(
1633
+ Number.parseFloat((a / o).toPrecision(3)),
1634
+ { style: "unit", unit: "petabyte", unitDisplay: "narrow" }
1635
+ ) : a >= u ? c = e.formatNumber(
1636
+ Number.parseFloat((a / u).toPrecision(3)),
1637
+ { style: "unit", unit: "terabyte", unitDisplay: "narrow" }
1638
+ ) : a >= d ? c = e.formatNumber(
1639
+ Number.parseFloat((a / d).toPrecision(3)),
1640
+ { style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
1641
+ ) : a >= f ? c = e.formatNumber(
1642
+ Number.parseFloat((a / f).toPrecision(3)),
1643
+ { style: "unit", unit: "megabyte", unitDisplay: "narrow" }
1644
+ ) : a >= m ? c = e.formatNumber(
1645
+ Number.parseFloat((a / m).toPrecision(3)),
1646
+ { style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
1647
+ ) : c = e.formatNumber(
1648
+ Number.parseFloat(a.toPrecision(3)),
1649
+ { style: "unit", unit: "byte", unitDisplay: "narrow" }
1650
+ ), c.replace(/([a-zA-Z]*)$/, " $1");
1651
+ }, n = (a, i = "USD") => isNaN(a) ? i === "USD" ? "$0.00" : `${a}` : a >= 0.01 || i !== "USD" ? e.formatNumber(a, { style: "currency", currency: i }) : a < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(a.toPrecision(4))}`;
1652
+ return { formatUnit: (a, i, {
1653
+ isBytes1024: o = !1,
1654
+ currency: u = "USD",
1655
+ approximate: d = !1,
1656
+ translateUnit: f = (m) => m
1657
+ } = {}) => {
1658
+ const m = f(i, a);
1659
+ switch (i) {
1660
+ case "bytes":
1661
+ return t(a, o);
1662
+ case "usd":
1663
+ return n(a, u);
1664
+ case "ms":
1665
+ case "count/minute":
1666
+ case "token count":
1667
+ case "count":
1668
+ default:
1669
+ return isNaN(a) ? `${a}` : d ? `${gt(a, { capital: !0 })} ${m}` : a >= 0.01 ? `${wt.format(Number.parseFloat(a.toFixed(2)))} ${m}` : `${Number.parseFloat(a.toPrecision(4))} ${m}`;
1670
+ }
1671
+ }, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
1672
+ isBytes1024: u = !1,
1673
+ currency: d = "USD",
1674
+ approximate: f = !1,
1675
+ translateUnit: m = (c) => c
1676
+ } = {}) => {
1677
+ const c = m(o, i);
1678
+ switch (o) {
1679
+ case "bytes":
1680
+ return `${t(a, u)} - ${t(i, u)}`;
1681
+ case "usd":
1682
+ return `${n(a, d)} - ${n(i, d)}`;
1683
+ case "ms":
1684
+ case "count/minute":
1685
+ case "token count":
1686
+ case "count":
1687
+ default:
1688
+ if (isNaN(a) || isNaN(i))
1689
+ return `${a} - ${i}`;
1690
+ if (f)
1691
+ return `${gt(a, { capital: !0 })} - ${gt(i, { capital: !0 })} ${c}`;
1692
+ }
1693
+ const y = a >= 0.01 ? `${wt.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, w = i >= 0.01 ? `${wt.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
1694
+ return `${y} - ${w} ${c}`;
1695
+ } };
1618
1696
  }
1619
- p.FIFTEEN_MIN, p.ONE_HOUR, p.SIX_HOUR, p.TWELVE_HOUR, p.ONE_DAY, p.SEVEN_DAY, p.FIFTEEN_MIN, p.ONE_HOUR, p.SIX_HOUR, p.TWELVE_HOUR, p.ONE_DAY, p.SEVEN_DAY, p.THIRTY_DAY, p.NINETY_DAY, p.ONE_HUNDRED_EIGHTY_DAY, p.ONE_YEAR, p.CURRENT_WEEK, p.CURRENT_MONTH, p.CURRENT_YEAR, p.PREVIOUS_WEEK, p.PREVIOUS_MONTH, p.PREVIOUS_YEAR;
1620
- new Map(Mt.map((e) => [e.code, { code: e.code, name: e.name }]));
1621
- const ke = "#e0e4ea", ni = "#828a9e", ri = "32px", fn = 5, _t = [
1697
+ const ke = "#e0e4ea", ii = "#828a9e", oi = "32px", _n = 5, vt = [
1622
1698
  "#00819d",
1623
1699
  "#00abd2",
1624
1700
  "#00c8f4",
1625
1701
  "#67e3ff",
1626
1702
  "#b3f1ff"
1627
- ], ai = (e, t) => {
1703
+ ], si = (e, t) => {
1628
1704
  const n = e.length;
1629
1705
  if (!n)
1630
1706
  return NaN;
1631
- const a = (n - 1) * t, i = Math.floor(a), s = Math.ceil(a);
1632
- return i === s ? e[i] : e[i] + (a - i) * (e[s] - e[i]);
1633
- }, gt = (e, t) => {
1707
+ const a = (n - 1) * t, i = Math.floor(a), o = Math.ceil(a);
1708
+ return i === o ? e[i] : e[i] + (a - i) * (e[o] - e[i]);
1709
+ }, xt = (e, t) => {
1634
1710
  if (e.length === 0)
1635
1711
  return [];
1636
- const n = e.filter((d) => d > 0).map(Math.log).sort((d, y) => d - y), a = Math.min(...n), s = (Math.max(...n) - a) / t;
1637
- return Array.from({ length: t }, (d, y) => a + y * s).map((d) => Math.exp(d)).reverse();
1712
+ const n = e.filter((d) => d > 0).map(Math.log).sort((d, f) => d - f), a = Math.min(...n), o = (Math.max(...n) - a) / t;
1713
+ return Array.from({ length: t }, (d, f) => a + f * o).map((d) => Math.exp(d)).reverse();
1638
1714
  };
1639
- function ii({
1715
+ function li({
1640
1716
  countryMetrics: e,
1641
- metric: t
1717
+ metric: t,
1718
+ unit: n
1642
1719
  }) {
1643
- const n = C(() => {
1644
- const f = { ...e.value };
1645
- for (const _ of Object.keys(f))
1646
- Mt.find((v) => v.code === _) || delete f[_];
1647
- return f;
1648
- }), a = C(() => Object.values(n.value)), i = C(() => Object.keys(n.value).length), s = C(() => i.value < fn - 1 ? i.value : fn), c = C(() => {
1649
- var f;
1650
- return !((f = t.value) != null && f.includes("latency"));
1651
- }), d = C(() => {
1652
- const f = [];
1653
- if (a.value.length > 10) {
1654
- const _ = [...a.value].sort((U, ie) => U - ie), v = ai(_, 0.75), F = a.value.filter((U) => U >= v), N = a.value.filter((U) => U < v), P = gt(F, 3), Q = gt(N, 2);
1655
- return f.push(...P, ...Q), f;
1720
+ const { i18n: a } = Tt.useI18n(), { formatUnit: i, formatRange: o } = ai({ i18n: a }), u = B(() => {
1721
+ const M = { ...e.value };
1722
+ for (const T of Object.keys(M))
1723
+ Nt.find((S) => S.code === T) || delete M[T];
1724
+ return M;
1725
+ }), d = B(() => Object.values(u.value)), f = B(() => Object.keys(u.value).length), m = B(() => f.value < _n - 1 ? f.value : _n), c = B(() => {
1726
+ var M;
1727
+ return !((M = t.value) != null && M.includes("latency"));
1728
+ }), y = B(() => {
1729
+ const M = [];
1730
+ if (d.value.length > 10) {
1731
+ const T = [...d.value].sort((_, F) => _ - F), S = si(T, 0.75), U = d.value.filter((_) => _ >= S), E = d.value.filter((_) => _ < S), V = xt(U, 3), ne = xt(E, 2);
1732
+ return M.push(...V, ...ne), M;
1656
1733
  }
1657
- return gt(a.value, s.value);
1658
- }), y = C(() => a.value.length === 1 ? [{
1659
- color: m(a.value[0]),
1660
- range: u(a.value[0])
1661
- }] : d.value.map((f, _) => {
1662
- const v = _ === 0 ? Math.max(...d.value) : d.value[_ - 1], F = f, N = v;
1663
- let P = "";
1664
- return _ === 0 ? P = `> ${u(F)}` : _ === d.value.length - 1 ? P = `< ${u(N)}` : P = `${u(F)} - ${u(N)}`, {
1665
- color: m(F),
1666
- range: P
1734
+ return xt(d.value, m.value);
1735
+ }), w = B(() => d.value.length === 1 ? [{
1736
+ color: x(d.value[0]),
1737
+ range: k(d.value[0])
1738
+ }] : y.value.map((M, T) => {
1739
+ const S = T === 0 ? Math.max(...y.value) : y.value[T - 1], U = M, E = S;
1740
+ let V = "";
1741
+ return T === 0 ? V = `> ${k(U, { showUnit: !n.value.includes("count") })}`.trim() : T === y.value.length - 1 ? V = `< ${k(E, { showUnit: !n.value.includes("count") })}`.trim() : V = P(U, E, { showUnit: !n.value.includes("count") }).trim(), {
1742
+ color: x(U),
1743
+ range: V
1667
1744
  };
1668
- })), m = (f) => {
1669
- if (f === 0)
1745
+ })), x = (M) => {
1746
+ if (M === 0)
1670
1747
  return ke;
1671
- const _ = d.value.findIndex((v) => f >= v);
1672
- return _ === -1 ? _t[_t.length - 1] : _t[_] ?? ke;
1673
- }, u = (f) => {
1674
- var v;
1675
- const _ = Math.trunc(f);
1676
- return c.value ? da(_, { capital: !0 }) : new Intl.NumberFormat(((v = document == null ? void 0 : document.documentElement) == null ? void 0 : v.lang) || "en-US").format(_);
1677
- };
1748
+ const T = y.value.findIndex((S) => M >= S);
1749
+ return T === -1 ? vt[vt.length - 1] : vt[T] ?? ke;
1750
+ }, k = (M, {
1751
+ showUnit: T = !0
1752
+ } = {}) => i(M, n.value, {
1753
+ approximate: c.value,
1754
+ translateUnit: (S) => T ? a.t(`metricUnits.${S}`, { plural: M > 1 ? "s" : "" }) : ""
1755
+ }), P = (M, T, {
1756
+ showUnit: S = !0
1757
+ } = {}) => o(M, T, n.value, {
1758
+ approximate: c.value,
1759
+ translateUnit: (U) => S ? a.t(`metricUnits.${U}`, { plural: T > 1 ? "s" : "" }) : ""
1760
+ });
1678
1761
  return {
1679
- getColor: m,
1680
- formatMetric: u,
1681
- legendData: y,
1682
- scale: d
1762
+ getColor: x,
1763
+ formatMetric: k,
1764
+ formatMetricRange: P,
1765
+ legendData: w,
1766
+ scale: y
1683
1767
  };
1684
1768
  }
1685
- const hn = {
1686
- useI18n: ua,
1687
- useMetricUtils: ii
1688
- }, oi = "FeatureCollection", si = [
1769
+ const Tt = {
1770
+ useI18n: da,
1771
+ useMetricUtils: li
1772
+ }, ui = "FeatureCollection", ci = [
1689
1773
  {
1690
1774
  type: "Feature",
1691
1775
  properties: {
@@ -4117,11 +4201,14 @@ const hn = {
4117
4201
  ]
4118
4202
  }
4119
4203
  }
4120
- ], li = {
4121
- type: oi,
4122
- features: si
4204
+ ], di = {
4205
+ type: ui,
4206
+ features: ci
4123
4207
  };
4124
- var ui = di, Ve, xe, A, ze, $e, ci = [
4208
+ function mi(e) {
4209
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4210
+ }
4211
+ var fi = hi, ze, xe, H, je, We, pi = [
4125
4212
  "Point",
4126
4213
  "MultiPoint",
4127
4214
  "LineString",
@@ -4130,123 +4217,123 @@ var ui = di, Ve, xe, A, ze, $e, ci = [
4130
4217
  "MultiPolygon",
4131
4218
  "GeometryCollection"
4132
4219
  ];
4133
- function di(e) {
4134
- ze = 2, $e = Math.pow(10, 6), A = null, Ve = [], xe = [];
4135
- var t = e.readFields(mi, {});
4136
- return Ve = null, t;
4220
+ function hi(e) {
4221
+ je = 2, We = Math.pow(10, 6), H = null, ze = [], xe = [];
4222
+ var t = e.readFields(yi, {});
4223
+ return ze = null, t;
4137
4224
  }
4138
- function mi(e, t, n) {
4139
- e === 1 ? Ve.push(n.readString()) : e === 2 ? ze = n.readVarint() : e === 3 ? $e = Math.pow(10, n.readVarint()) : e === 4 ? fi(n, t) : e === 5 ? En(n, t) : e === 6 && St(n, t);
4225
+ function yi(e, t, n) {
4226
+ e === 1 ? ze.push(n.readString()) : e === 2 ? je = n.readVarint() : e === 3 ? We = Math.pow(10, n.readVarint()) : e === 4 ? _i(n, t) : e === 5 ? On(n, t) : e === 6 && Et(n, t);
4140
4227
  }
4141
- function fi(e, t) {
4142
- return t.type = "FeatureCollection", t.features = [], e.readMessage(hi, t);
4228
+ function _i(e, t) {
4229
+ return t.type = "FeatureCollection", t.features = [], e.readMessage(gi, t);
4143
4230
  }
4144
- function En(e, t) {
4231
+ function On(e, t) {
4145
4232
  t.type = "Feature";
4146
- var n = e.readMessage(pi, t);
4233
+ var n = e.readMessage(wi, t);
4147
4234
  return "geometry" in n || (n.geometry = null), n;
4148
4235
  }
4149
- function St(e, t) {
4150
- return t.type = "Point", e.readMessage(yi, t);
4236
+ function Et(e, t) {
4237
+ return t.type = "Point", e.readMessage(vi, t);
4151
4238
  }
4152
- function hi(e, t, n) {
4153
- e === 1 ? t.features.push(En(n, {})) : e === 13 ? xe.push(Dt(n)) : e === 15 && je(n, t);
4239
+ function gi(e, t, n) {
4240
+ e === 1 ? t.features.push(On(n, {})) : e === 13 ? xe.push(Rt(n)) : e === 15 && $e(n, t);
4154
4241
  }
4155
- function pi(e, t, n) {
4156
- e === 1 ? t.geometry = St(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? xe.push(Dt(n)) : e === 14 ? t.properties = je(n, {}) : e === 15 && je(n, t);
4242
+ function wi(e, t, n) {
4243
+ e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? xe.push(Rt(n)) : e === 14 ? t.properties = $e(n, {}) : e === 15 && $e(n, t);
4157
4244
  }
4158
- function yi(e, t, n) {
4159
- e === 1 ? t.type = ci[n.readVarint()] : e === 2 ? A = n.readPackedVarint() : e === 3 ? _i(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(St(n, {}))) : e === 13 ? xe.push(Dt(n)) : e === 15 && je(n, t);
4245
+ function vi(e, t, n) {
4246
+ e === 1 ? t.type = pi[n.readVarint()] : e === 2 ? H = n.readPackedVarint() : e === 3 ? xi(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? xe.push(Rt(n)) : e === 15 && $e(n, t);
4160
4247
  }
4161
- function _i(e, t, n) {
4162
- n === "Point" ? e.coordinates = gi(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = pn(t) : n === "MultiLineString" ? e.coordinates = yn(t) : n === "Polygon" ? e.coordinates = yn(t, !0) : n === "MultiPolygon" && (e.coordinates = vi(t));
4248
+ function xi(e, t, n) {
4249
+ n === "Point" ? e.coordinates = Fi(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = gn(t) : n === "MultiLineString" ? e.coordinates = wn(t) : n === "Polygon" ? e.coordinates = wn(t, !0) : n === "MultiPolygon" && (e.coordinates = Mi(t));
4163
4250
  }
4164
- function Dt(e) {
4251
+ function Rt(e) {
4165
4252
  for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
4166
4253
  var a = e.readVarint(), i = a >> 3;
4167
4254
  i === 1 ? n = e.readString() : i === 2 ? n = e.readDouble() : i === 3 ? n = e.readVarint() : i === 4 ? n = -e.readVarint() : i === 5 ? n = e.readBoolean() : i === 6 && (n = JSON.parse(e.readString()));
4168
4255
  }
4169
4256
  return n;
4170
4257
  }
4171
- function je(e, t) {
4172
- for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Ve[e.readVarint()]] = xe[e.readVarint()];
4258
+ function $e(e, t) {
4259
+ for (var n = e.readVarint() + e.pos; e.pos < n; ) t[ze[e.readVarint()]] = xe[e.readVarint()];
4173
4260
  return xe = [], t;
4174
4261
  }
4175
- function gi(e) {
4176
- for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / $e);
4262
+ function Fi(e) {
4263
+ for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / We);
4177
4264
  return n;
4178
4265
  }
4179
- function Ee(e, t, n, a) {
4180
- var i = 0, s = [], c, d, y = [];
4181
- for (d = 0; d < ze; d++) y[d] = 0;
4266
+ function Re(e, t, n, a) {
4267
+ var i = 0, o = [], u, d, f = [];
4268
+ for (d = 0; d < je; d++) f[d] = 0;
4182
4269
  for (; n ? i < n : e.pos < t; ) {
4183
- for (c = [], d = 0; d < ze; d++)
4184
- y[d] += e.readSVarint(), c[d] = y[d] / $e;
4185
- s.push(c), i++;
4270
+ for (u = [], d = 0; d < je; d++)
4271
+ f[d] += e.readSVarint(), u[d] = f[d] / We;
4272
+ o.push(u), i++;
4186
4273
  }
4187
- return a && s.push(s[0]), s;
4274
+ return a && o.push(o[0]), o;
4188
4275
  }
4189
- function pn(e) {
4190
- return Ee(e, e.readVarint() + e.pos);
4276
+ function gn(e) {
4277
+ return Re(e, e.readVarint() + e.pos);
4191
4278
  }
4192
- function yn(e, t) {
4279
+ function wn(e, t) {
4193
4280
  var n = e.readVarint() + e.pos;
4194
- if (!A) return [Ee(e, n, null, t)];
4195
- for (var a = [], i = 0; i < A.length; i++) a.push(Ee(e, n, A[i], t));
4196
- return A = null, a;
4281
+ if (!H) return [Re(e, n, null, t)];
4282
+ for (var a = [], i = 0; i < H.length; i++) a.push(Re(e, n, H[i], t));
4283
+ return H = null, a;
4197
4284
  }
4198
- function vi(e) {
4285
+ function Mi(e) {
4199
4286
  var t = e.readVarint() + e.pos;
4200
- if (!A) return [[Ee(e, t, null, !0)]];
4201
- for (var n = [], a = 1, i = 0; i < A[0]; i++) {
4202
- for (var s = [], c = 0; c < A[a]; c++) s.push(Ee(e, t, A[a + 1 + c], !0));
4203
- a += A[a] + 1, n.push(s);
4287
+ if (!H) return [[Re(e, t, null, !0)]];
4288
+ for (var n = [], a = 1, i = 0; i < H[0]; i++) {
4289
+ for (var o = [], u = 0; u < H[a]; u++) o.push(Re(e, t, H[a + 1 + u], !0));
4290
+ a += H[a] + 1, n.push(o);
4204
4291
  }
4205
- return A = null, n;
4292
+ return H = null, n;
4206
4293
  }
4207
- var wi = ui, kt = {};
4294
+ var Ti = fi, Ot = {};
4208
4295
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
4209
- kt.read = function(e, t, n, a, i) {
4210
- var s, c, d = i * 8 - a - 1, y = (1 << d) - 1, m = y >> 1, u = -7, f = n ? i - 1 : 0, _ = n ? -1 : 1, v = e[t + f];
4211
- for (f += _, s = v & (1 << -u) - 1, v >>= -u, u += d; u > 0; s = s * 256 + e[t + f], f += _, u -= 8)
4296
+ Ot.read = function(e, t, n, a, i) {
4297
+ var o, u, d = i * 8 - a - 1, f = (1 << d) - 1, m = f >> 1, c = -7, y = n ? i - 1 : 0, w = n ? -1 : 1, x = e[t + y];
4298
+ for (y += w, o = x & (1 << -c) - 1, x >>= -c, c += d; c > 0; o = o * 256 + e[t + y], y += w, c -= 8)
4212
4299
  ;
4213
- for (c = s & (1 << -u) - 1, s >>= -u, u += a; u > 0; c = c * 256 + e[t + f], f += _, u -= 8)
4300
+ for (u = o & (1 << -c) - 1, o >>= -c, c += a; c > 0; u = u * 256 + e[t + y], y += w, c -= 8)
4214
4301
  ;
4215
- if (s === 0)
4216
- s = 1 - m;
4302
+ if (o === 0)
4303
+ o = 1 - m;
4217
4304
  else {
4218
- if (s === y)
4219
- return c ? NaN : (v ? -1 : 1) * (1 / 0);
4220
- c = c + Math.pow(2, a), s = s - m;
4305
+ if (o === f)
4306
+ return u ? NaN : (x ? -1 : 1) * (1 / 0);
4307
+ u = u + Math.pow(2, a), o = o - m;
4221
4308
  }
4222
- return (v ? -1 : 1) * c * Math.pow(2, s - a);
4309
+ return (x ? -1 : 1) * u * Math.pow(2, o - a);
4223
4310
  };
4224
- kt.write = function(e, t, n, a, i, s) {
4225
- var c, d, y, m = s * 8 - i - 1, u = (1 << m) - 1, f = u >> 1, _ = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = a ? 0 : s - 1, F = a ? 1 : -1, N = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
4226
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, c = u) : (c = Math.floor(Math.log(t) / Math.LN2), t * (y = Math.pow(2, -c)) < 1 && (c--, y *= 2), c + f >= 1 ? t += _ / y : t += _ * Math.pow(2, 1 - f), t * y >= 2 && (c++, y /= 2), c + f >= u ? (d = 0, c = u) : c + f >= 1 ? (d = (t * y - 1) * Math.pow(2, i), c = c + f) : (d = t * Math.pow(2, f - 1) * Math.pow(2, i), c = 0)); i >= 8; e[n + v] = d & 255, v += F, d /= 256, i -= 8)
4311
+ Ot.write = function(e, t, n, a, i, o) {
4312
+ var u, d, f, m = o * 8 - i - 1, c = (1 << m) - 1, y = c >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, x = a ? 0 : o - 1, k = a ? 1 : -1, P = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
4313
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, u = c) : (u = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -u)) < 1 && (u--, f *= 2), u + y >= 1 ? t += w / f : t += w * Math.pow(2, 1 - y), t * f >= 2 && (u++, f /= 2), u + y >= c ? (d = 0, u = c) : u + y >= 1 ? (d = (t * f - 1) * Math.pow(2, i), u = u + y) : (d = t * Math.pow(2, y - 1) * Math.pow(2, i), u = 0)); i >= 8; e[n + x] = d & 255, x += k, d /= 256, i -= 8)
4227
4314
  ;
4228
- for (c = c << i | d, m += i; m > 0; e[n + v] = c & 255, v += F, c /= 256, m -= 8)
4315
+ for (u = u << i | d, m += i; m > 0; e[n + x] = u & 255, x += k, u /= 256, m -= 8)
4229
4316
  ;
4230
- e[n + v - F] |= N * 128;
4317
+ e[n + x - k] |= P * 128;
4231
4318
  };
4232
- var xi = x, be = kt;
4233
- function x(e) {
4319
+ var Si = v, Be = Ot;
4320
+ function v(e) {
4234
4321
  this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
4235
4322
  }
4236
- x.Varint = 0;
4237
- x.Fixed64 = 1;
4238
- x.Bytes = 2;
4239
- x.Fixed32 = 5;
4240
- var xt = 65536 * 65536, _n = 1 / xt, Ti = 12, Rn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4241
- x.prototype = {
4323
+ v.Varint = 0;
4324
+ v.Fixed64 = 1;
4325
+ v.Bytes = 2;
4326
+ v.Fixed32 = 5;
4327
+ var St = 65536 * 65536, vn = 1 / St, Di = 12, bn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4328
+ v.prototype = {
4242
4329
  destroy: function() {
4243
4330
  this.buf = null;
4244
4331
  },
4245
4332
  // === READING =================================================================
4246
4333
  readFields: function(e, t, n) {
4247
4334
  for (n = n || this.length; this.pos < n; ) {
4248
- var a = this.readVarint(), i = a >> 3, s = this.pos;
4249
- this.type = a & 7, e(i, t, this), this.pos === s && this.skip(a);
4335
+ var a = this.readVarint(), i = a >> 3, o = this.pos;
4336
+ this.type = a & 7, e(i, t, this), this.pos === o && this.skip(a);
4250
4337
  }
4251
4338
  return t;
4252
4339
  },
@@ -4254,33 +4341,33 @@ x.prototype = {
4254
4341
  return this.readFields(e, t, this.readVarint() + this.pos);
4255
4342
  },
4256
4343
  readFixed32: function() {
4257
- var e = Be(this.buf, this.pos);
4344
+ var e = He(this.buf, this.pos);
4258
4345
  return this.pos += 4, e;
4259
4346
  },
4260
4347
  readSFixed32: function() {
4261
- var e = vn(this.buf, this.pos);
4348
+ var e = Fn(this.buf, this.pos);
4262
4349
  return this.pos += 4, e;
4263
4350
  },
4264
4351
  // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
4265
4352
  readFixed64: function() {
4266
- var e = Be(this.buf, this.pos) + Be(this.buf, this.pos + 4) * xt;
4353
+ var e = He(this.buf, this.pos) + He(this.buf, this.pos + 4) * St;
4267
4354
  return this.pos += 8, e;
4268
4355
  },
4269
4356
  readSFixed64: function() {
4270
- var e = Be(this.buf, this.pos) + vn(this.buf, this.pos + 4) * xt;
4357
+ var e = He(this.buf, this.pos) + Fn(this.buf, this.pos + 4) * St;
4271
4358
  return this.pos += 8, e;
4272
4359
  },
4273
4360
  readFloat: function() {
4274
- var e = be.read(this.buf, this.pos, !0, 23, 4);
4361
+ var e = Be.read(this.buf, this.pos, !0, 23, 4);
4275
4362
  return this.pos += 4, e;
4276
4363
  },
4277
4364
  readDouble: function() {
4278
- var e = be.read(this.buf, this.pos, !0, 52, 8);
4365
+ var e = Be.read(this.buf, this.pos, !0, 52, 8);
4279
4366
  return this.pos += 8, e;
4280
4367
  },
4281
4368
  readVarint: function(e) {
4282
4369
  var t = this.buf, n, a;
4283
- return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Mi(n, e, this));
4370
+ return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Ni(n, e, this));
4284
4371
  },
4285
4372
  readVarint64: function() {
4286
4373
  return this.readVarint(!0);
@@ -4294,7 +4381,7 @@ x.prototype = {
4294
4381
  },
4295
4382
  readString: function() {
4296
4383
  var e = this.readVarint() + this.pos, t = this.pos;
4297
- return this.pos = e, e - t >= Ti && Rn ? Pi(this.buf, t, e) : Ai(this.buf, t, e);
4384
+ return this.pos = e, e - t >= Di && bn ? Hi(this.buf, t, e) : Bi(this.buf, t, e);
4298
4385
  },
4299
4386
  readBytes: function() {
4300
4387
  var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
@@ -4302,66 +4389,66 @@ x.prototype = {
4302
4389
  },
4303
4390
  // verbose for performance reasons; doesn't affect gzipped size
4304
4391
  readPackedVarint: function(e, t) {
4305
- if (this.type !== x.Bytes) return e.push(this.readVarint(t));
4306
- var n = q(this);
4392
+ if (this.type !== v.Bytes) return e.push(this.readVarint(t));
4393
+ var n = Q(this);
4307
4394
  for (e = e || []; this.pos < n; ) e.push(this.readVarint(t));
4308
4395
  return e;
4309
4396
  },
4310
4397
  readPackedSVarint: function(e) {
4311
- if (this.type !== x.Bytes) return e.push(this.readSVarint());
4312
- var t = q(this);
4398
+ if (this.type !== v.Bytes) return e.push(this.readSVarint());
4399
+ var t = Q(this);
4313
4400
  for (e = e || []; this.pos < t; ) e.push(this.readSVarint());
4314
4401
  return e;
4315
4402
  },
4316
4403
  readPackedBoolean: function(e) {
4317
- if (this.type !== x.Bytes) return e.push(this.readBoolean());
4318
- var t = q(this);
4404
+ if (this.type !== v.Bytes) return e.push(this.readBoolean());
4405
+ var t = Q(this);
4319
4406
  for (e = e || []; this.pos < t; ) e.push(this.readBoolean());
4320
4407
  return e;
4321
4408
  },
4322
4409
  readPackedFloat: function(e) {
4323
- if (this.type !== x.Bytes) return e.push(this.readFloat());
4324
- var t = q(this);
4410
+ if (this.type !== v.Bytes) return e.push(this.readFloat());
4411
+ var t = Q(this);
4325
4412
  for (e = e || []; this.pos < t; ) e.push(this.readFloat());
4326
4413
  return e;
4327
4414
  },
4328
4415
  readPackedDouble: function(e) {
4329
- if (this.type !== x.Bytes) return e.push(this.readDouble());
4330
- var t = q(this);
4416
+ if (this.type !== v.Bytes) return e.push(this.readDouble());
4417
+ var t = Q(this);
4331
4418
  for (e = e || []; this.pos < t; ) e.push(this.readDouble());
4332
4419
  return e;
4333
4420
  },
4334
4421
  readPackedFixed32: function(e) {
4335
- if (this.type !== x.Bytes) return e.push(this.readFixed32());
4336
- var t = q(this);
4422
+ if (this.type !== v.Bytes) return e.push(this.readFixed32());
4423
+ var t = Q(this);
4337
4424
  for (e = e || []; this.pos < t; ) e.push(this.readFixed32());
4338
4425
  return e;
4339
4426
  },
4340
4427
  readPackedSFixed32: function(e) {
4341
- if (this.type !== x.Bytes) return e.push(this.readSFixed32());
4342
- var t = q(this);
4428
+ if (this.type !== v.Bytes) return e.push(this.readSFixed32());
4429
+ var t = Q(this);
4343
4430
  for (e = e || []; this.pos < t; ) e.push(this.readSFixed32());
4344
4431
  return e;
4345
4432
  },
4346
4433
  readPackedFixed64: function(e) {
4347
- if (this.type !== x.Bytes) return e.push(this.readFixed64());
4348
- var t = q(this);
4434
+ if (this.type !== v.Bytes) return e.push(this.readFixed64());
4435
+ var t = Q(this);
4349
4436
  for (e = e || []; this.pos < t; ) e.push(this.readFixed64());
4350
4437
  return e;
4351
4438
  },
4352
4439
  readPackedSFixed64: function(e) {
4353
- if (this.type !== x.Bytes) return e.push(this.readSFixed64());
4354
- var t = q(this);
4440
+ if (this.type !== v.Bytes) return e.push(this.readSFixed64());
4441
+ var t = Q(this);
4355
4442
  for (e = e || []; this.pos < t; ) e.push(this.readSFixed64());
4356
4443
  return e;
4357
4444
  },
4358
4445
  skip: function(e) {
4359
4446
  var t = e & 7;
4360
- if (t === x.Varint) for (; this.buf[this.pos++] > 127; )
4447
+ if (t === v.Varint) for (; this.buf[this.pos++] > 127; )
4361
4448
  ;
4362
- else if (t === x.Bytes) this.pos = this.readVarint() + this.pos;
4363
- else if (t === x.Fixed32) this.pos += 4;
4364
- else if (t === x.Fixed64) this.pos += 8;
4449
+ else if (t === v.Bytes) this.pos = this.readVarint() + this.pos;
4450
+ else if (t === v.Fixed32) this.pos += 4;
4451
+ else if (t === v.Fixed64) this.pos += 8;
4365
4452
  else throw new Error("Unimplemented type: " + t);
4366
4453
  },
4367
4454
  // === WRITING =================================================================
@@ -4379,20 +4466,20 @@ x.prototype = {
4379
4466
  return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
4380
4467
  },
4381
4468
  writeFixed32: function(e) {
4382
- this.realloc(4), ve(this.buf, e, this.pos), this.pos += 4;
4469
+ this.realloc(4), ge(this.buf, e, this.pos), this.pos += 4;
4383
4470
  },
4384
4471
  writeSFixed32: function(e) {
4385
- this.realloc(4), ve(this.buf, e, this.pos), this.pos += 4;
4472
+ this.realloc(4), ge(this.buf, e, this.pos), this.pos += 4;
4386
4473
  },
4387
4474
  writeFixed64: function(e) {
4388
- this.realloc(8), ve(this.buf, e & -1, this.pos), ve(this.buf, Math.floor(e * _n), this.pos + 4), this.pos += 8;
4475
+ this.realloc(8), ge(this.buf, e & -1, this.pos), ge(this.buf, Math.floor(e * vn), this.pos + 4), this.pos += 8;
4389
4476
  },
4390
4477
  writeSFixed64: function(e) {
4391
- this.realloc(8), ve(this.buf, e & -1, this.pos), ve(this.buf, Math.floor(e * _n), this.pos + 4), this.pos += 8;
4478
+ this.realloc(8), ge(this.buf, e & -1, this.pos), ge(this.buf, Math.floor(e * vn), this.pos + 4), this.pos += 8;
4392
4479
  },
4393
4480
  writeVarint: function(e) {
4394
4481
  if (e = +e || 0, e > 268435455 || e < 0) {
4395
- Fi(e, this);
4482
+ ki(e, this);
4396
4483
  return;
4397
4484
  }
4398
4485
  this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
@@ -4406,15 +4493,15 @@ x.prototype = {
4406
4493
  writeString: function(e) {
4407
4494
  e = String(e), this.realloc(e.length * 4), this.pos++;
4408
4495
  var t = this.pos;
4409
- this.pos = Ui(this.buf, e, this.pos);
4496
+ this.pos = Vi(this.buf, e, this.pos);
4410
4497
  var n = this.pos - t;
4411
- n >= 128 && gn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4498
+ n >= 128 && xn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4412
4499
  },
4413
4500
  writeFloat: function(e) {
4414
- this.realloc(4), be.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
4501
+ this.realloc(4), Be.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
4415
4502
  },
4416
4503
  writeDouble: function(e) {
4417
- this.realloc(8), be.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
4504
+ this.realloc(8), Be.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
4418
4505
  },
4419
4506
  writeBytes: function(e) {
4420
4507
  var t = e.length;
@@ -4426,189 +4513,189 @@ x.prototype = {
4426
4513
  var n = this.pos;
4427
4514
  e(t, this);
4428
4515
  var a = this.pos - n;
4429
- a >= 128 && gn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
4516
+ a >= 128 && xn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
4430
4517
  },
4431
4518
  writeMessage: function(e, t, n) {
4432
- this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
4519
+ this.writeTag(e, v.Bytes), this.writeRawMessage(t, n);
4433
4520
  },
4434
4521
  writePackedVarint: function(e, t) {
4435
- t.length && this.writeMessage(e, ki, t);
4522
+ t.length && this.writeMessage(e, Oi, t);
4436
4523
  },
4437
4524
  writePackedSVarint: function(e, t) {
4438
- t.length && this.writeMessage(e, Ni, t);
4525
+ t.length && this.writeMessage(e, bi, t);
4439
4526
  },
4440
4527
  writePackedBoolean: function(e, t) {
4441
- t.length && this.writeMessage(e, Oi, t);
4528
+ t.length && this.writeMessage(e, Li, t);
4442
4529
  },
4443
4530
  writePackedFloat: function(e, t) {
4444
- t.length && this.writeMessage(e, Ei, t);
4531
+ t.length && this.writeMessage(e, Gi, t);
4445
4532
  },
4446
4533
  writePackedDouble: function(e, t) {
4447
- t.length && this.writeMessage(e, Ri, t);
4534
+ t.length && this.writeMessage(e, Ii, t);
4448
4535
  },
4449
4536
  writePackedFixed32: function(e, t) {
4450
- t.length && this.writeMessage(e, Ii, t);
4537
+ t.length && this.writeMessage(e, Pi, t);
4451
4538
  },
4452
4539
  writePackedSFixed32: function(e, t) {
4453
- t.length && this.writeMessage(e, Li, t);
4540
+ t.length && this.writeMessage(e, Ui, t);
4454
4541
  },
4455
4542
  writePackedFixed64: function(e, t) {
4456
- t.length && this.writeMessage(e, Gi, t);
4543
+ t.length && this.writeMessage(e, Ci, t);
4457
4544
  },
4458
4545
  writePackedSFixed64: function(e, t) {
4459
- t.length && this.writeMessage(e, Ci, t);
4546
+ t.length && this.writeMessage(e, Ai, t);
4460
4547
  },
4461
4548
  writeBytesField: function(e, t) {
4462
- this.writeTag(e, x.Bytes), this.writeBytes(t);
4549
+ this.writeTag(e, v.Bytes), this.writeBytes(t);
4463
4550
  },
4464
4551
  writeFixed32Field: function(e, t) {
4465
- this.writeTag(e, x.Fixed32), this.writeFixed32(t);
4552
+ this.writeTag(e, v.Fixed32), this.writeFixed32(t);
4466
4553
  },
4467
4554
  writeSFixed32Field: function(e, t) {
4468
- this.writeTag(e, x.Fixed32), this.writeSFixed32(t);
4555
+ this.writeTag(e, v.Fixed32), this.writeSFixed32(t);
4469
4556
  },
4470
4557
  writeFixed64Field: function(e, t) {
4471
- this.writeTag(e, x.Fixed64), this.writeFixed64(t);
4558
+ this.writeTag(e, v.Fixed64), this.writeFixed64(t);
4472
4559
  },
4473
4560
  writeSFixed64Field: function(e, t) {
4474
- this.writeTag(e, x.Fixed64), this.writeSFixed64(t);
4561
+ this.writeTag(e, v.Fixed64), this.writeSFixed64(t);
4475
4562
  },
4476
4563
  writeVarintField: function(e, t) {
4477
- this.writeTag(e, x.Varint), this.writeVarint(t);
4564
+ this.writeTag(e, v.Varint), this.writeVarint(t);
4478
4565
  },
4479
4566
  writeSVarintField: function(e, t) {
4480
- this.writeTag(e, x.Varint), this.writeSVarint(t);
4567
+ this.writeTag(e, v.Varint), this.writeSVarint(t);
4481
4568
  },
4482
4569
  writeStringField: function(e, t) {
4483
- this.writeTag(e, x.Bytes), this.writeString(t);
4570
+ this.writeTag(e, v.Bytes), this.writeString(t);
4484
4571
  },
4485
4572
  writeFloatField: function(e, t) {
4486
- this.writeTag(e, x.Fixed32), this.writeFloat(t);
4573
+ this.writeTag(e, v.Fixed32), this.writeFloat(t);
4487
4574
  },
4488
4575
  writeDoubleField: function(e, t) {
4489
- this.writeTag(e, x.Fixed64), this.writeDouble(t);
4576
+ this.writeTag(e, v.Fixed64), this.writeDouble(t);
4490
4577
  },
4491
4578
  writeBooleanField: function(e, t) {
4492
4579
  this.writeVarintField(e, !!t);
4493
4580
  }
4494
4581
  };
4495
- function Mi(e, t, n) {
4496
- var a = n.buf, i, s;
4497
- if (s = a[n.pos++], i = (s & 112) >> 4, s < 128 || (s = a[n.pos++], i |= (s & 127) << 3, s < 128) || (s = a[n.pos++], i |= (s & 127) << 10, s < 128) || (s = a[n.pos++], i |= (s & 127) << 17, s < 128) || (s = a[n.pos++], i |= (s & 127) << 24, s < 128) || (s = a[n.pos++], i |= (s & 1) << 31, s < 128)) return ge(e, i, t);
4582
+ function Ni(e, t, n) {
4583
+ var a = n.buf, i, o;
4584
+ if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return _e(e, i, t);
4498
4585
  throw new Error("Expected varint not more than 10 bytes");
4499
4586
  }
4500
- function q(e) {
4501
- return e.type === x.Bytes ? e.readVarint() + e.pos : e.pos + 1;
4587
+ function Q(e) {
4588
+ return e.type === v.Bytes ? e.readVarint() + e.pos : e.pos + 1;
4502
4589
  }
4503
- function ge(e, t, n) {
4590
+ function _e(e, t, n) {
4504
4591
  return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
4505
4592
  }
4506
- function Fi(e, t) {
4593
+ function ki(e, t) {
4507
4594
  var n, a;
4508
4595
  if (e >= 0 ? (n = e % 4294967296 | 0, a = e / 4294967296 | 0) : (n = ~(-e % 4294967296), a = ~(-e / 4294967296), n ^ 4294967295 ? n = n + 1 | 0 : (n = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
4509
4596
  throw new Error("Given varint doesn't fit into 10 bytes");
4510
- t.realloc(10), Si(n, a, t), Di(a, t);
4597
+ t.realloc(10), Ei(n, a, t), Ri(a, t);
4511
4598
  }
4512
- function Si(e, t, n) {
4599
+ function Ei(e, t, n) {
4513
4600
  n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos] = e & 127;
4514
4601
  }
4515
- function Di(e, t) {
4602
+ function Ri(e, t) {
4516
4603
  var n = (e & 7) << 4;
4517
4604
  t.buf[t.pos++] |= n | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
4518
4605
  }
4519
- function gn(e, t, n) {
4606
+ function xn(e, t, n) {
4520
4607
  var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
4521
4608
  n.realloc(a);
4522
4609
  for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
4523
4610
  }
4524
- function ki(e, t) {
4611
+ function Oi(e, t) {
4525
4612
  for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
4526
4613
  }
4527
- function Ni(e, t) {
4614
+ function bi(e, t) {
4528
4615
  for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
4529
4616
  }
4530
- function Ei(e, t) {
4617
+ function Gi(e, t) {
4531
4618
  for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
4532
4619
  }
4533
- function Ri(e, t) {
4620
+ function Ii(e, t) {
4534
4621
  for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
4535
4622
  }
4536
- function Oi(e, t) {
4623
+ function Li(e, t) {
4537
4624
  for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
4538
4625
  }
4539
- function Ii(e, t) {
4626
+ function Pi(e, t) {
4540
4627
  for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
4541
4628
  }
4542
- function Li(e, t) {
4629
+ function Ui(e, t) {
4543
4630
  for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
4544
4631
  }
4545
- function Gi(e, t) {
4632
+ function Ci(e, t) {
4546
4633
  for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
4547
4634
  }
4548
- function Ci(e, t) {
4635
+ function Ai(e, t) {
4549
4636
  for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
4550
4637
  }
4551
- function Be(e, t) {
4638
+ function He(e, t) {
4552
4639
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
4553
4640
  }
4554
- function ve(e, t, n) {
4641
+ function ge(e, t, n) {
4555
4642
  e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
4556
4643
  }
4557
- function vn(e, t) {
4644
+ function Fn(e, t) {
4558
4645
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
4559
4646
  }
4560
- function Ai(e, t, n) {
4647
+ function Bi(e, t, n) {
4561
4648
  for (var a = "", i = t; i < n; ) {
4562
- var s = e[i], c = null, d = s > 239 ? 4 : s > 223 ? 3 : s > 191 ? 2 : 1;
4649
+ var o = e[i], u = null, d = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
4563
4650
  if (i + d > n) break;
4564
- var y, m, u;
4565
- d === 1 ? s < 128 && (c = s) : d === 2 ? (y = e[i + 1], (y & 192) === 128 && (c = (s & 31) << 6 | y & 63, c <= 127 && (c = null))) : d === 3 ? (y = e[i + 1], m = e[i + 2], (y & 192) === 128 && (m & 192) === 128 && (c = (s & 15) << 12 | (y & 63) << 6 | m & 63, (c <= 2047 || c >= 55296 && c <= 57343) && (c = null))) : d === 4 && (y = e[i + 1], m = e[i + 2], u = e[i + 3], (y & 192) === 128 && (m & 192) === 128 && (u & 192) === 128 && (c = (s & 15) << 18 | (y & 63) << 12 | (m & 63) << 6 | u & 63, (c <= 65535 || c >= 1114112) && (c = null))), c === null ? (c = 65533, d = 1) : c > 65535 && (c -= 65536, a += String.fromCharCode(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), a += String.fromCharCode(c), i += d;
4651
+ var f, m, c;
4652
+ d === 1 ? o < 128 && (u = o) : d === 2 ? (f = e[i + 1], (f & 192) === 128 && (u = (o & 31) << 6 | f & 63, u <= 127 && (u = null))) : d === 3 ? (f = e[i + 1], m = e[i + 2], (f & 192) === 128 && (m & 192) === 128 && (u = (o & 15) << 12 | (f & 63) << 6 | m & 63, (u <= 2047 || u >= 55296 && u <= 57343) && (u = null))) : d === 4 && (f = e[i + 1], m = e[i + 2], c = e[i + 3], (f & 192) === 128 && (m & 192) === 128 && (c & 192) === 128 && (u = (o & 15) << 18 | (f & 63) << 12 | (m & 63) << 6 | c & 63, (u <= 65535 || u >= 1114112) && (u = null))), u === null ? (u = 65533, d = 1) : u > 65535 && (u -= 65536, a += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), a += String.fromCharCode(u), i += d;
4566
4653
  }
4567
4654
  return a;
4568
4655
  }
4569
- function Pi(e, t, n) {
4570
- return Rn.decode(e.subarray(t, n));
4656
+ function Hi(e, t, n) {
4657
+ return bn.decode(e.subarray(t, n));
4571
4658
  }
4572
- function Ui(e, t, n) {
4573
- for (var a = 0, i, s; a < t.length; a++) {
4659
+ function Vi(e, t, n) {
4660
+ for (var a = 0, i, o; a < t.length; a++) {
4574
4661
  if (i = t.charCodeAt(a), i > 55295 && i < 57344)
4575
- if (s)
4662
+ if (o)
4576
4663
  if (i < 56320) {
4577
- e[n++] = 239, e[n++] = 191, e[n++] = 189, s = i;
4664
+ e[n++] = 239, e[n++] = 191, e[n++] = 189, o = i;
4578
4665
  continue;
4579
4666
  } else
4580
- i = s - 55296 << 10 | i - 56320 | 65536, s = null;
4667
+ i = o - 55296 << 10 | i - 56320 | 65536, o = null;
4581
4668
  else {
4582
- i > 56319 || a + 1 === t.length ? (e[n++] = 239, e[n++] = 191, e[n++] = 189) : s = i;
4669
+ i > 56319 || a + 1 === t.length ? (e[n++] = 239, e[n++] = 191, e[n++] = 189) : o = i;
4583
4670
  continue;
4584
4671
  }
4585
- else s && (e[n++] = 239, e[n++] = 191, e[n++] = 189, s = null);
4672
+ else o && (e[n++] = 239, e[n++] = 191, e[n++] = 189, o = null);
4586
4673
  i < 128 ? e[n++] = i : (i < 2048 ? e[n++] = i >> 6 | 192 : (i < 65536 ? e[n++] = i >> 12 | 224 : (e[n++] = i >> 18 | 240, e[n++] = i >> 12 & 63 | 128), e[n++] = i >> 6 & 63 | 128), e[n++] = i & 63 | 128);
4587
4674
  }
4588
4675
  return n;
4589
4676
  }
4590
- const bi = /* @__PURE__ */ wn(xi), s0 = (e) => {
4677
+ const Yi = /* @__PURE__ */ mi(Si), mo = (e) => {
4591
4678
  var a, i;
4592
4679
  if (!e || !e.data)
4593
4680
  return {};
4594
4681
  const t = {}, n = e.data;
4595
4682
  if (n)
4596
- for (const s of n) {
4597
- const c = (a = s == null ? void 0 : s.event) == null ? void 0 : a.country_code, d = (i = e.meta.metric_names) == null ? void 0 : i[0];
4598
- c && (t[c] = d ? s.event[d] : 0);
4683
+ for (const o of n) {
4684
+ const u = (a = o == null ? void 0 : o.event) == null ? void 0 : a.country_code, d = (i = e.meta.metric_names) == null ? void 0 : i[0];
4685
+ u && (t[u] = d ? o.event[d] : 0);
4599
4686
  }
4600
4687
  return t;
4601
4688
  };
4602
- function Bi(e, t = 0) {
4689
+ function zi(e, t = 0) {
4603
4690
  let n = null;
4604
4691
  return (...a) => {
4605
4692
  n && clearTimeout(n), n = setTimeout(() => e(...a), t);
4606
4693
  };
4607
4694
  }
4608
- const Hi = { class: "legend" }, Yi = {
4695
+ const ji = { class: "legend" }, $i = {
4609
4696
  key: 0,
4610
4697
  class: "legend-title"
4611
- }, Vi = { class: "legend-text" }, zi = /* @__PURE__ */ Tt({
4698
+ }, Ki = { class: "legend-text" }, Wi = /* @__PURE__ */ Dt({
4612
4699
  __name: "MapLegend",
4613
4700
  props: {
4614
4701
  metric: {},
@@ -4616,26 +4703,26 @@ const Hi = { class: "legend" }, Yi = {
4616
4703
  data: {}
4617
4704
  },
4618
4705
  setup(e) {
4619
- return (t, n) => (j(), ae("div", Hi, [
4620
- t.metric ? (j(), ae("div", Yi, ce(t.title), 1)) : De("", !0),
4621
- (j(!0), ae(jr, null, Kr(t.data, (a, i) => (j(), ae("div", {
4706
+ return (t, n) => (W(), se("div", ji, [
4707
+ t.metric ? (W(), se("div", $i, ve(t.title), 1)) : Ne("", !0),
4708
+ (W(!0), se(Kr, null, Wr(t.data, (a, i) => (W(), se("div", {
4622
4709
  key: i,
4623
4710
  class: "legend-item"
4624
4711
  }, [
4625
- J("span", {
4712
+ ee("span", {
4626
4713
  class: "legend-color",
4627
- style: $r({ backgroundColor: a.color })
4714
+ style: Zr({ backgroundColor: a.color })
4628
4715
  }, null, 4),
4629
- J("span", Vi, ce(a.range), 1)
4716
+ ee("span", Ki, ve(a.range), 1)
4630
4717
  ]))), 128))
4631
4718
  ]));
4632
4719
  }
4633
- }), Nt = (e, t) => {
4720
+ }), bt = (e, t) => {
4634
4721
  const n = e.__vccOpts || e;
4635
4722
  for (const [a, i] of t)
4636
4723
  n[a] = i;
4637
4724
  return n;
4638
- }, ji = /* @__PURE__ */ Nt(zi, [["__scopeId", "data-v-5f034736"]]), Ki = { class: "map-tooltip" }, $i = { class: "map-tooltip-text" }, Wi = { key: 0 }, Zi = /* @__PURE__ */ Tt({
4725
+ }, Zi = /* @__PURE__ */ bt(Wi, [["__scopeId", "data-v-5f034736"]]), qi = { class: "map-tooltip" }, Ji = { class: "map-tooltip-text" }, Xi = { key: 0 }, Qi = /* @__PURE__ */ Dt({
4639
4726
  __name: "MapTooltip",
4640
4727
  props: {
4641
4728
  data: {},
@@ -4644,22 +4731,22 @@ const Hi = { class: "legend" }, Yi = {
4644
4731
  left: {}
4645
4732
  },
4646
4733
  setup(e) {
4647
- return Wr((t) => ({
4648
- "55ff282a": t.left,
4649
- "23ce2e1e": t.top,
4650
- "011f7503": t.data.color
4651
- })), (t, n) => (j(), ae("div", Ki, [
4652
- n[0] || (n[0] = J("div", { class: "map-tooltip-color" }, null, -1)),
4653
- J("div", $i, [
4654
- J("div", null, ce(t.data.label), 1),
4655
- t.showValue ? (j(), ae("span", Wi, ce(t.data.value) + " " + ce(t.data.unit), 1)) : De("", !0)
4734
+ return qr((t) => ({
4735
+ "75a0a274": t.left,
4736
+ "144f4294": t.top,
4737
+ "6e49e79e": t.data.color
4738
+ })), (t, n) => (W(), se("div", qi, [
4739
+ n[0] || (n[0] = ee("div", { class: "map-tooltip-color" }, null, -1)),
4740
+ ee("div", Ji, [
4741
+ ee("div", null, ve(t.data.label), 1),
4742
+ t.showValue ? (W(), se("span", Xi, ve(t.data.value), 1)) : Ne("", !0)
4656
4743
  ])
4657
4744
  ]));
4658
4745
  }
4659
- }), qi = /* @__PURE__ */ Nt(Zi, [["__scopeId", "data-v-5e8af715"]]), Ji = { class: "kong-ui-public-analytics-geo-map" }, Xi = {
4746
+ }), eo = /* @__PURE__ */ bt(Qi, [["__scopeId", "data-v-6bea2641"]]), to = { class: "kong-ui-public-analytics-geo-map" }, no = {
4660
4747
  key: 0,
4661
4748
  class: "no-location-overlay"
4662
- }, Qi = { class: "no-location-overlay-title" }, e0 = { class: "no-location-overlay-description" }, t0 = ["id"], n0 = /* @__PURE__ */ Tt({
4749
+ }, ro = { class: "no-location-overlay-title" }, ao = { class: "no-location-overlay-description" }, io = ["id"], oo = /* @__PURE__ */ Dt({
4663
4750
  __name: "AnalyticsGeoMap",
4664
4751
  props: {
4665
4752
  countryMetrics: {},
@@ -4674,10 +4761,11 @@ const Hi = { class: "legend" }, Yi = {
4674
4761
  },
4675
4762
  emits: ["boundsChange"],
4676
4763
  setup(e, { emit: t }) {
4677
- const n = import("./countries-simple-geo-BFUDnSiE.js").then((g) => g.default), a = t, { i18n: i } = hn.useI18n(), { getColor: s, formatMetric: c, legendData: d } = hn.useMetricUtils({
4678
- countryMetrics: Xt(() => e.countryMetrics),
4679
- metric: Xt(() => e.metric)
4680
- }), y = Se(), m = Zr(), u = Se(), f = Se(null), _ = Se({ left: "0px", top: "0px" }), v = Se(!1), F = C(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), N = C(() => ({
4764
+ const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Tt.useI18n(), { getColor: o, formatMetric: u, legendData: d } = Tt.useMetricUtils({
4765
+ countryMetrics: ut(() => e.countryMetrics),
4766
+ metric: ut(() => e.metric),
4767
+ unit: ut(() => e.metricUnit)
4768
+ }), f = De(), m = Jr(), c = De(), y = De(null), w = De({ left: "0px", top: "0px" }), x = De(!1), k = B(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), P = B(() => ({
4681
4769
  "fill-color": [
4682
4770
  "match",
4683
4771
  [
@@ -4690,59 +4778,59 @@ const Hi = { class: "legend" }, Yi = {
4690
4778
  ],
4691
4779
  ["get", "ISO_A2"]
4692
4780
  ],
4693
- ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([g, T]) => [
4694
- g,
4695
- s(T)
4781
+ ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([_, F]) => [
4782
+ _,
4783
+ o(F)
4696
4784
  ]) : [ke, ke],
4697
4785
  ke
4698
4786
  // default color if no match
4699
4787
  ],
4700
4788
  "fill-opacity": 0.7
4701
- })), P = C(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), Q = C(() => e.metric && i.t(`metrics.${e.metric}`) || ""), U = (g) => {
4702
- const T = g.flat(1);
4703
- return Array.isArray(T[0]) && Array.isArray(T[0][0]) ? U(T) : T;
4704
- }, ie = (g) => {
4705
- var M, D, ee, K, B, te, ne;
4706
- if (g === "RU") {
4707
- (M = u.value) == null || M.fitBounds([
4789
+ })), M = B(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), T = B(() => e.metric && i.t(`metrics.${e.metric}`) || ""), S = (_) => {
4790
+ const F = _.flat(1);
4791
+ return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? S(F) : F;
4792
+ }, U = (_) => {
4793
+ var D, R, re, Z, Y, ae, ie;
4794
+ if (_ === "RU") {
4795
+ (D = c.value) == null || D.fitBounds([
4708
4796
  [20, 40],
4709
4797
  [180, 80]
4710
4798
  ]);
4711
4799
  return;
4712
- } else if (g === "US") {
4713
- (D = u.value) == null || D.fitBounds([
4800
+ } else if (_ === "US") {
4801
+ (R = c.value) == null || R.fitBounds([
4714
4802
  [-130, 20],
4715
4803
  [-60, 50]
4716
4804
  ]);
4717
4805
  return;
4718
- } else if (g === "FR") {
4719
- (ee = u.value) == null || ee.fitBounds([
4806
+ } else if (_ === "FR") {
4807
+ (re = c.value) == null || re.fitBounds([
4720
4808
  [-5, 42],
4721
4809
  [9, 51]
4722
4810
  ]);
4723
4811
  return;
4724
- } else if (g === "NO") {
4725
- (K = u.value) == null || K.fitBounds([
4812
+ } else if (_ === "NO") {
4813
+ (Z = c.value) == null || Z.fitBounds([
4726
4814
  [4, 57],
4727
4815
  [32, 71]
4728
4816
  ]);
4729
4817
  return;
4730
4818
  }
4731
- const T = (B = f.value) == null ? void 0 : B.features.find((L) => {
4732
- var H, Y, V, w, z;
4733
- return (H = L.properties) != null && H.ISO_A2 ? ((Y = L.properties) == null ? void 0 : Y.ISO_A2) === g : ((V = L.properties) == null ? void 0 : V.iso_a2) === "-99" ? ((w = L.properties) == null ? void 0 : w.iso_a2_eh) === g : ((z = L.properties) == null ? void 0 : z.iso_a2) === g;
4819
+ const F = (Y = y.value) == null ? void 0 : Y.features.find((C) => {
4820
+ var z, j, $, g, K;
4821
+ return (z = C.properties) != null && z.ISO_A2 ? ((j = C.properties) == null ? void 0 : j.ISO_A2) === _ : (($ = C.properties) == null ? void 0 : $.iso_a2) === "-99" ? ((g = C.properties) == null ? void 0 : g.iso_a2_eh) === _ : ((K = C.properties) == null ? void 0 : K.iso_a2) === _;
4734
4822
  });
4735
- if (T) {
4736
- const L = (te = T.geometry) == null ? void 0 : te.coordinates;
4737
- if (!L) return;
4738
- const H = U(L), Y = H.map(($) => $[1]), V = H.map(($) => $[0]), w = Math.min(...Y), z = Math.max(...Y), me = Math.min(...V), R = Math.max(...V);
4739
- (ne = u.value) == null || ne.fitBounds([
4740
- [me, w],
4741
- [R, z]
4823
+ if (F) {
4824
+ const C = (ae = F.geometry) == null ? void 0 : ae.coordinates;
4825
+ if (!C) return;
4826
+ const z = S(C), j = z.map((q) => q[1]), $ = z.map((q) => q[0]), g = Math.min(...j), K = Math.max(...j), me = Math.min(...$), G = Math.max(...$);
4827
+ (ie = c.value) == null || ie.fitBounds([
4828
+ [me, g],
4829
+ [G, K]
4742
4830
  ]);
4743
4831
  }
4744
- }, b = C(() => {
4745
- const g = {
4832
+ }, E = B(() => {
4833
+ const _ = {
4746
4834
  container: m,
4747
4835
  style: { version: 8, sources: {}, layers: [] },
4748
4836
  attributionControl: !1,
@@ -4759,69 +4847,68 @@ const Hi = { class: "legend" }, Yi = {
4759
4847
  "CooperativeGesturesHandler.MobileHelpText": i.t("cooperative_gestures.mobile_zoom_help_text")
4760
4848
  }
4761
4849
  };
4762
- return e.bounds && (g.bounds = e.bounds), g;
4763
- }), de = Bi(() => {
4764
- if (!u.value) return;
4765
- const g = u.value.getBounds(), T = g.getSouthWest(), M = g.getNorthEast();
4850
+ return e.bounds && (_.bounds = e.bounds), _;
4851
+ }), ne = zi(() => {
4852
+ if (!c.value) return;
4853
+ const _ = c.value.getBounds(), F = _.getSouthWest(), D = _.getNorthEast();
4766
4854
  a("boundsChange", [
4767
- [T.lng, T.lat],
4768
- [M.lng, M.lat]
4855
+ [F.lng, F.lat],
4856
+ [D.lng, D.lat]
4769
4857
  ]);
4770
4858
  }, 300);
4771
- return qr(async () => {
4772
- var g, T, M;
4859
+ return Xr(async () => {
4860
+ var _, F, D;
4773
4861
  try {
4774
- const D = await n, ee = await fetch(D), K = new Uint8Array(await ee.arrayBuffer()), B = wi(new bi(K));
4775
- f.value = B, u.value = new Qr(b.value), u.value.on("load", () => {
4776
- var te, ne, L, H, Y, V, w;
4777
- (te = u.value) == null || te.addSource("countries", {
4862
+ const R = await n, re = await fetch(R), Z = new Uint8Array(await re.arrayBuffer()), Y = Ti(new Yi(Z));
4863
+ y.value = Y, c.value = new ta(E.value), c.value.on("load", () => {
4864
+ var ae, ie, C, z, j, $, g;
4865
+ (ae = c.value) == null || ae.addSource("countries", {
4778
4866
  type: "geojson",
4779
- data: B
4780
- }), (ne = u.value) == null || ne.addLayer({
4867
+ data: Y
4868
+ }), (ie = c.value) == null || ie.addLayer({
4781
4869
  id: "countries-layer",
4782
4870
  type: "fill",
4783
4871
  source: "countries",
4784
- paint: N.value
4785
- }), (L = u.value) == null || L.addSource("lakes", {
4872
+ paint: P.value
4873
+ }), (C = c.value) == null || C.addSource("lakes", {
4786
4874
  type: "geojson",
4787
- data: li
4788
- }), (H = u.value) == null || H.addLayer({
4875
+ data: di
4876
+ }), (z = c.value) == null || z.addLayer({
4789
4877
  id: "lakes-layer",
4790
4878
  type: "fill",
4791
4879
  source: "lakes",
4792
4880
  paint: {
4793
4881
  "fill-color": "#FFFFFF"
4794
4882
  }
4795
- }), (Y = u.value) == null || Y.on("mousemove", "countries-layer", (z) => {
4796
- var R;
4797
- const me = (R = z.features) == null ? void 0 : R[0];
4883
+ }), (j = c.value) == null || j.on("mousemove", "countries-layer", (K) => {
4884
+ var G;
4885
+ const me = (G = K.features) == null ? void 0 : G[0];
4798
4886
  if (me) {
4799
- const { iso_a2: $, iso_a2_eh: Oe, ISO_A2: Ze, admin: qe } = me.properties, Je = Ze ?? $ === "-99" ? Oe : $, fe = e.countryMetrics[Je];
4800
- fe !== void 0 && (y.value = {
4887
+ const { iso_a2: q, iso_a2_eh: be, ISO_A2: Ze, admin: qe } = me.properties, Je = Ze ?? q === "-99" ? be : q, Me = e.countryMetrics[Je];
4888
+ Me !== void 0 && (f.value = {
4801
4889
  label: qe,
4802
- color: s(fe),
4803
- value: c(fe),
4804
- unit: i.t(`metricUnits.${e.metricUnit}`, { plural: fe > 1 ? "s" : "" })
4805
- }, v.value = !0, _.value = {
4806
- left: `${z.point.x}px`,
4807
- top: `${z.point.y}px`
4890
+ color: o(Me),
4891
+ value: u(Me)
4892
+ }, x.value = !0, w.value = {
4893
+ left: `${K.point.x}px`,
4894
+ top: `${K.point.y}px`
4808
4895
  });
4809
4896
  }
4810
- }), (V = u.value) == null || V.on("mouseleave", "countries-layer", () => {
4811
- v.value = !1;
4812
- }), (w = u.value) == null || w.on("move", de), e.fitToCountry && ie(e.fitToCountry);
4813
- }), (g = u.value) == null || g.dragRotate.disable(), (T = u.value) == null || T.keyboard.disable(), (M = u.value) == null || M.touchZoomRotate.disableRotation();
4814
- } catch (D) {
4815
- console.error(D);
4897
+ }), ($ = c.value) == null || $.on("mouseleave", "countries-layer", () => {
4898
+ x.value = !1;
4899
+ }), (g = c.value) == null || g.on("move", ne), e.fitToCountry && U(e.fitToCountry);
4900
+ }), (_ = c.value) == null || _.dragRotate.disable(), (F = c.value) == null || F.keyboard.disable(), (D = c.value) == null || D.touchZoomRotate.disableRotation();
4901
+ } catch (R) {
4902
+ console.error(R);
4816
4903
  }
4817
- }), ut(() => e.countryMetrics, () => {
4818
- var g;
4819
- u.value && u.value.isStyleLoaded() && (u.value.getLayer("countries-layer") && u.value.removeLayer("countries-layer"), u.value.addLayer({
4904
+ }), ct(() => e.countryMetrics, () => {
4905
+ var _;
4906
+ c.value && c.value.isStyleLoaded() && (c.value.getLayer("countries-layer") && c.value.removeLayer("countries-layer"), c.value.addLayer({
4820
4907
  id: "countries-layer",
4821
4908
  type: "fill",
4822
4909
  source: "countries",
4823
- paint: N.value
4824
- }), u.value.removeLayer("lakes-layer"), (g = u.value) == null || g.addLayer({
4910
+ paint: P.value
4911
+ }), c.value.removeLayer("lakes-layer"), (_ = c.value) == null || _.addLayer({
4825
4912
  id: "lakes-layer",
4826
4913
  type: "fill",
4827
4914
  source: "lakes",
@@ -4829,58 +4916,58 @@ const Hi = { class: "legend" }, Yi = {
4829
4916
  "fill-color": "#FFFFFF"
4830
4917
  }
4831
4918
  }));
4832
- }), ut(() => e.fitToCountry, (g) => {
4833
- var T, M, D;
4834
- u.value && g ? ie(g) : !b.value.center && !b.value.zoom ? (T = u.value) == null || T.fitBounds([
4919
+ }), ct(() => e.fitToCountry, (_) => {
4920
+ var F, D, R;
4921
+ c.value && _ ? U(_) : !E.value.center && !E.value.zoom ? (F = c.value) == null || F.fitBounds([
4835
4922
  [-180, -90],
4836
4923
  [180, 90]
4837
- ]) : (b.value.zoom && ((M = u.value) == null || M.setZoom(b.value.zoom)), b.value.center && ((D = u.value) == null || D.flyTo({ center: b.value.center })));
4838
- }), ut(() => e.bounds, (g, T) => {
4839
- if (!g) return;
4840
- const M = g == null ? void 0 : g.flat(), D = T == null ? void 0 : T.flat();
4841
- !(M && D && M.length === D.length && M.every((K, B) => Math.round(K * 100) / 100 === Math.round(D[B] * 100) / 100)) && u.value && u.value.fitBounds(g);
4842
- }), (g, T) => (j(), ae("div", Ji, [
4843
- F.value ? (j(), ae("div", Xi, [
4844
- ct(g.$slots, "no-location-icon", {}, () => [
4845
- Jr(ue(na), {
4846
- color: ue(ni),
4847
- size: ue(ri)
4924
+ ]) : (E.value.zoom && ((D = c.value) == null || D.setZoom(E.value.zoom)), E.value.center && ((R = c.value) == null || R.flyTo({ center: E.value.center })));
4925
+ }), ct(() => e.bounds, (_, F) => {
4926
+ if (!_) return;
4927
+ const D = _ == null ? void 0 : _.flat(), R = F == null ? void 0 : F.flat();
4928
+ !(D && R && D.length === R.length && D.every((Z, Y) => Math.round(Z * 100) / 100 === Math.round(R[Y] * 100) / 100)) && c.value && c.value.fitBounds(_);
4929
+ }), (_, F) => (W(), se("div", to, [
4930
+ k.value ? (W(), se("div", no, [
4931
+ dt(_.$slots, "no-location-icon", {}, () => [
4932
+ Qr(de(aa), {
4933
+ color: de(ii),
4934
+ size: de(oi)
4848
4935
  }, null, 8, ["color", "size"])
4849
4936
  ], !0),
4850
- J("div", Qi, [
4851
- ct(g.$slots, "no-location-title", {}, () => [
4852
- Xr(ce(ue(i).t("no_location_data")), 1)
4937
+ ee("div", ro, [
4938
+ dt(_.$slots, "no-location-title", {}, () => [
4939
+ ea(ve(de(i).t("no_location_data")), 1)
4853
4940
  ], !0)
4854
4941
  ]),
4855
- J("div", e0, [
4856
- ct(g.$slots, "no-location-description", {}, () => [
4857
- J("p", null, ce(ue(i).t("no_location_data_description")), 1)
4942
+ ee("div", ao, [
4943
+ dt(_.$slots, "no-location-description", {}, () => [
4944
+ ee("p", null, ve(de(i).t("no_location_data_description")), 1)
4858
4945
  ], !0)
4859
4946
  ])
4860
- ])) : De("", !0),
4861
- J("div", {
4862
- id: ue(m),
4947
+ ])) : Ne("", !0),
4948
+ ee("div", {
4949
+ id: de(m),
4863
4950
  class: "analytics-geo-map-container"
4864
- }, null, 8, t0),
4865
- P.value ? (j(), Qt(ji, {
4951
+ }, null, 8, io),
4952
+ M.value ? (W(), nn(Zi, {
4866
4953
  key: 1,
4867
4954
  class: "legend-container",
4868
- data: ue(d),
4869
- metric: g.metric,
4870
- title: Q.value
4871
- }, null, 8, ["data", "metric", "title"])) : De("", !0),
4872
- v.value && y.value ? (j(), Qt(qi, {
4955
+ data: de(d),
4956
+ metric: _.metric,
4957
+ title: T.value
4958
+ }, null, 8, ["data", "metric", "title"])) : Ne("", !0),
4959
+ x.value && f.value ? (W(), nn(eo, {
4873
4960
  key: 2,
4874
- data: y.value,
4875
- left: _.value.left,
4876
- "show-value": g.showTooltipValue,
4877
- top: _.value.top
4878
- }, null, 8, ["data", "left", "show-value", "top"])) : De("", !0)
4961
+ data: f.value,
4962
+ left: w.value.left,
4963
+ "show-value": _.showTooltipValue,
4964
+ top: w.value.top
4965
+ }, null, 8, ["data", "left", "show-value", "top"])) : Ne("", !0)
4879
4966
  ]));
4880
4967
  }
4881
- }), l0 = /* @__PURE__ */ Nt(n0, [["__scopeId", "data-v-f8b9de28"]]);
4968
+ }), fo = /* @__PURE__ */ bt(oo, [["__scopeId", "data-v-86afc763"]]);
4882
4969
  export {
4883
- l0 as AnalyticsGeoMap,
4884
- Bi as debounce,
4885
- s0 as exploreResultToCountryMetrics
4970
+ fo as AnalyticsGeoMap,
4971
+ zi as debounce,
4972
+ mo as exploreResultToCountryMetrics
4886
4973
  };