@kong-ui-public/analytics-geo-map 1.5.17 → 1.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vitals-geo-map.es.js +865 -874
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { computed as A, defineComponent as
|
|
2
|
-
import { Map as
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { AnalyticsIcon as
|
|
5
|
-
const
|
|
1
|
+
import { computed as A, defineComponent as Rt, openBlock as K, createElementBlock as ae, toDisplayString as Te, createCommentVNode as Ee, Fragment as ra, renderList as aa, createElementVNode as X, normalizeStyle as ia, useCssVars as oa, toRef as ze, ref as ke, useId as sa, onMounted as la, watch as _t, renderSlot as gt, createVNode as ua, unref as ue, createTextVNode as ca, createBlock as sn } from "vue";
|
|
2
|
+
import { Map as da } from "maplibre-gl";
|
|
3
|
+
import { createI18n as ma, i18nTComponent as fa } from "@kong-ui-public/i18n";
|
|
4
|
+
import { AnalyticsIcon as pa } from "@kong/icons";
|
|
5
|
+
const ha = {
|
|
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
|
-
},
|
|
11
|
+
}, ya = {
|
|
12
12
|
error_rate: "Error rate",
|
|
13
13
|
request_count: "Request count",
|
|
14
14
|
request_per_minute: "Requests per minute",
|
|
@@ -34,27 +34,27 @@ const ca = {
|
|
|
34
34
|
request_size_p95: "Request size (p95)",
|
|
35
35
|
request_size_p50: "Request size (p50)",
|
|
36
36
|
request_size_sum: "Request size (sum)"
|
|
37
|
-
},
|
|
37
|
+
}, _a = {
|
|
38
38
|
windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
|
|
39
39
|
mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
|
|
40
40
|
mobile_zoom_help_text: "Use two fingers to zoom the map"
|
|
41
|
-
},
|
|
42
|
-
metricUnits:
|
|
43
|
-
metrics:
|
|
44
|
-
cooperative_gestures:
|
|
45
|
-
no_location_data:
|
|
46
|
-
no_location_data_description:
|
|
41
|
+
}, ga = "No data in the current time frame", wa = "Once there is traffic, it will display here", va = {
|
|
42
|
+
metricUnits: ha,
|
|
43
|
+
metrics: ya,
|
|
44
|
+
cooperative_gestures: _a,
|
|
45
|
+
no_location_data: ga,
|
|
46
|
+
no_location_data_description: wa
|
|
47
47
|
};
|
|
48
|
-
function
|
|
49
|
-
const e =
|
|
48
|
+
function xa() {
|
|
49
|
+
const e = ma("en-us", va);
|
|
50
50
|
return {
|
|
51
51
|
i18n: e,
|
|
52
|
-
i18nT:
|
|
52
|
+
i18nT: fa(e)
|
|
53
53
|
// Translation component <i18n-t>
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
const
|
|
56
|
+
var Ta = Object.defineProperty, Fa = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t, n) => Fa(e, typeof t != "symbol" ? t + "" : t, n), f = /* @__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))(f || {});
|
|
57
|
+
const Ma = ["in", "not_in", "selector"], Sa = ["empty", "not_empty"], ce = (e) => e.filter((t) => t !== "time"), On = [
|
|
58
58
|
"api",
|
|
59
59
|
"api_package",
|
|
60
60
|
"api_product",
|
|
@@ -68,14 +68,14 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], ce = (e) =
|
|
|
68
68
|
"status_code",
|
|
69
69
|
"status_code_grouped",
|
|
70
70
|
"time"
|
|
71
|
-
],
|
|
71
|
+
], Ln = ce(On), Da = [
|
|
72
72
|
"active_services",
|
|
73
73
|
"error_rate",
|
|
74
74
|
"request_count",
|
|
75
75
|
"request_per_minute",
|
|
76
76
|
"response_latency_average"
|
|
77
|
-
],
|
|
78
|
-
...
|
|
77
|
+
], Et = [
|
|
78
|
+
...On,
|
|
79
79
|
"application",
|
|
80
80
|
"consumer",
|
|
81
81
|
"country_code",
|
|
@@ -85,8 +85,8 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], ce = (e) =
|
|
|
85
85
|
"data_plane_node_version",
|
|
86
86
|
"realm",
|
|
87
87
|
"portal_api"
|
|
88
|
-
],
|
|
89
|
-
...
|
|
88
|
+
], Gn = ce(Et), Un = [
|
|
89
|
+
...Da,
|
|
90
90
|
"response_latency_p99",
|
|
91
91
|
"response_latency_p95",
|
|
92
92
|
"response_latency_p50",
|
|
@@ -108,7 +108,7 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], ce = (e) =
|
|
|
108
108
|
"request_size_p50",
|
|
109
109
|
"request_size_average",
|
|
110
110
|
"request_size_sum"
|
|
111
|
-
],
|
|
111
|
+
], Na = [
|
|
112
112
|
"control_plane",
|
|
113
113
|
"control_plane_group",
|
|
114
114
|
"gateway_service",
|
|
@@ -126,7 +126,7 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], ce = (e) =
|
|
|
126
126
|
"status_code",
|
|
127
127
|
"status_code_grouped",
|
|
128
128
|
"ai_plugin"
|
|
129
|
-
],
|
|
129
|
+
], bn = ce(Na), ka = [
|
|
130
130
|
"a2a_context_id",
|
|
131
131
|
"a2a_error",
|
|
132
132
|
"a2a_method",
|
|
@@ -170,8 +170,8 @@ const wa = ["in", "not_in", "selector"], va = ["empty", "not_empty"], ce = (e) =
|
|
|
170
170
|
"upstream_status_code_grouped",
|
|
171
171
|
"websocket"
|
|
172
172
|
];
|
|
173
|
-
ce(
|
|
174
|
-
const
|
|
173
|
+
ce(ka);
|
|
174
|
+
const Ra = [
|
|
175
175
|
"ai_count",
|
|
176
176
|
"latencies_response_ms",
|
|
177
177
|
"latencies_upstream_ms",
|
|
@@ -182,20 +182,20 @@ const Fa = [
|
|
|
182
182
|
"status_code",
|
|
183
183
|
"upstream_status_code"
|
|
184
184
|
];
|
|
185
|
-
ce(
|
|
186
|
-
const
|
|
187
|
-
...
|
|
185
|
+
ce(Ra);
|
|
186
|
+
const Ea = [
|
|
187
|
+
...Et,
|
|
188
188
|
"mcp_session_id",
|
|
189
189
|
"mcp_method",
|
|
190
190
|
"mcp_tool_name",
|
|
191
191
|
"mcp_error"
|
|
192
|
-
],
|
|
192
|
+
], Oa = ce(Ea);
|
|
193
193
|
[
|
|
194
|
-
...
|
|
194
|
+
...Un
|
|
195
195
|
];
|
|
196
|
-
new Set(
|
|
197
|
-
const
|
|
198
|
-
...
|
|
196
|
+
new Set(Ln), new Set(Gn), new Set(bn), new Set(Oa);
|
|
197
|
+
const La = [
|
|
198
|
+
...Et,
|
|
199
199
|
"a2a_context_id",
|
|
200
200
|
"a2a_error",
|
|
201
201
|
"a2a_method",
|
|
@@ -204,11 +204,11 @@ const ka = [
|
|
|
204
204
|
"mcp_method",
|
|
205
205
|
"mcp_session_id",
|
|
206
206
|
"mcp_tool_name"
|
|
207
|
-
],
|
|
207
|
+
], Ga = ce(La);
|
|
208
208
|
[
|
|
209
|
-
...
|
|
209
|
+
...Un
|
|
210
210
|
];
|
|
211
|
-
const
|
|
211
|
+
const Ot = [
|
|
212
212
|
{ code: "AF", name: "Afghanistan" },
|
|
213
213
|
{ code: "AX", name: "Aland Islands" },
|
|
214
214
|
{ code: "AL", name: "Albania" },
|
|
@@ -456,8 +456,8 @@ const Et = [
|
|
|
456
456
|
{ code: "ZM", name: "Zambia" },
|
|
457
457
|
{ code: "ZW", name: "Zimbabwe" }
|
|
458
458
|
];
|
|
459
|
-
|
|
460
|
-
const
|
|
459
|
+
Ot.map((e) => e.code);
|
|
460
|
+
const Ua = (e) => ({
|
|
461
461
|
type: "array",
|
|
462
462
|
description: "A list of filters to apply to the query",
|
|
463
463
|
items: {
|
|
@@ -472,7 +472,7 @@ const Ea = (e) => ({
|
|
|
472
472
|
},
|
|
473
473
|
operator: {
|
|
474
474
|
type: "string",
|
|
475
|
-
enum:
|
|
475
|
+
enum: Ma
|
|
476
476
|
},
|
|
477
477
|
value: {
|
|
478
478
|
type: "array",
|
|
@@ -498,7 +498,7 @@ const Ea = (e) => ({
|
|
|
498
498
|
},
|
|
499
499
|
operator: {
|
|
500
500
|
type: "string",
|
|
501
|
-
enum:
|
|
501
|
+
enum: Sa
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
required: [
|
|
@@ -510,54 +510,54 @@ const Ea = (e) => ({
|
|
|
510
510
|
]
|
|
511
511
|
}
|
|
512
512
|
});
|
|
513
|
-
|
|
513
|
+
Ua([
|
|
514
514
|
.../* @__PURE__ */ new Set([
|
|
515
|
-
...
|
|
516
|
-
...
|
|
517
|
-
...
|
|
518
|
-
...
|
|
515
|
+
...Gn,
|
|
516
|
+
...Ln,
|
|
517
|
+
...bn,
|
|
518
|
+
...Ga
|
|
519
519
|
])
|
|
520
520
|
]);
|
|
521
|
-
let
|
|
522
|
-
function
|
|
523
|
-
return
|
|
521
|
+
let ba = {};
|
|
522
|
+
function Ia() {
|
|
523
|
+
return ba;
|
|
524
524
|
}
|
|
525
|
-
const
|
|
525
|
+
const Aa = 60, Ca = 3600, ln = Symbol.for("constructDateFrom");
|
|
526
526
|
function Ge(e, t) {
|
|
527
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
527
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && ln in e ? e[ln](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
528
528
|
}
|
|
529
529
|
function de(e, t) {
|
|
530
530
|
return Ge(t || e, e);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Ve(e, t) {
|
|
533
533
|
const n = de(e, void 0);
|
|
534
534
|
return n.setHours(0, 0, 0, 0), n;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function qe(e, t) {
|
|
537
537
|
var n, a, i, o;
|
|
538
|
-
const
|
|
539
|
-
return
|
|
538
|
+
const l = Ia(), 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) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, m = de(e, t == null ? void 0 : t.in), h = m.getDay(), c = (h < d ? 7 : 0) + h - d;
|
|
539
|
+
return m.setDate(m.getDate() - c), m.setHours(0, 0, 0, 0), m;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Ye(e, t, n) {
|
|
542
542
|
const a = de(e, void 0);
|
|
543
543
|
return isNaN(t) ? Ge(e, NaN) : (a.setDate(a.getDate() + t), a);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function In(e, t, n) {
|
|
546
546
|
const a = de(e, void 0);
|
|
547
547
|
if (isNaN(t)) return Ge(e, NaN);
|
|
548
548
|
if (!t)
|
|
549
549
|
return a;
|
|
550
550
|
const i = a.getDate(), o = Ge(e, a.getTime());
|
|
551
551
|
o.setMonth(a.getMonth() + t + 1, 0);
|
|
552
|
-
const
|
|
553
|
-
return i >=
|
|
552
|
+
const l = o.getDate();
|
|
553
|
+
return i >= l ? o : (a.setFullYear(
|
|
554
554
|
o.getFullYear(),
|
|
555
555
|
o.getMonth(),
|
|
556
556
|
i
|
|
557
557
|
), a);
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
559
|
+
function Pa(e, t, n) {
|
|
560
|
+
return In(e, t * 3);
|
|
561
561
|
}
|
|
562
562
|
function ve(e, t) {
|
|
563
563
|
const n = de(e, void 0), a = n.getMonth(), i = a - a % 3;
|
|
@@ -567,28 +567,28 @@ function xe(e, t) {
|
|
|
567
567
|
const n = de(e, void 0);
|
|
568
568
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Ba(e, t) {
|
|
571
571
|
const n = de(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Ge(n, 0);
|
|
572
572
|
return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
return Math.trunc(e *
|
|
574
|
+
function un(e) {
|
|
575
|
+
return Math.trunc(e * Ca);
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
const t = e /
|
|
577
|
+
function Ha(e) {
|
|
578
|
+
const t = e / Aa;
|
|
579
579
|
return Math.trunc(t);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return
|
|
581
|
+
function An(e, t, n) {
|
|
582
|
+
return In(e, -1);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
return
|
|
584
|
+
function Cn(e, t, n) {
|
|
585
|
+
return Pa(e, -1);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
const n =
|
|
589
|
-
return "formatToParts" in n ?
|
|
587
|
+
function za(e, t) {
|
|
588
|
+
const n = Ka(t);
|
|
589
|
+
return "formatToParts" in n ? Ya(n, e) : ja(n, e);
|
|
590
590
|
}
|
|
591
|
-
const
|
|
591
|
+
const Va = {
|
|
592
592
|
year: 0,
|
|
593
593
|
month: 1,
|
|
594
594
|
day: 2,
|
|
@@ -596,11 +596,11 @@ const Pa = {
|
|
|
596
596
|
minute: 4,
|
|
597
597
|
second: 5
|
|
598
598
|
};
|
|
599
|
-
function
|
|
599
|
+
function Ya(e, t) {
|
|
600
600
|
try {
|
|
601
601
|
const n = e.formatToParts(t), a = [];
|
|
602
602
|
for (let i = 0; i < n.length; i++) {
|
|
603
|
-
const o =
|
|
603
|
+
const o = Va[n[i].type];
|
|
604
604
|
o !== void 0 && (a[o] = parseInt(n[i].value, 10));
|
|
605
605
|
}
|
|
606
606
|
return a;
|
|
@@ -610,7 +610,7 @@ function Ca(e, t) {
|
|
|
610
610
|
throw n;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function ja(e, t) {
|
|
614
614
|
const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
615
615
|
return [
|
|
616
616
|
parseInt(a[3], 10),
|
|
@@ -621,7 +621,7 @@ function Ba(e, t) {
|
|
|
621
621
|
parseInt(a[6], 10)
|
|
622
622
|
];
|
|
623
623
|
}
|
|
624
|
-
const
|
|
624
|
+
const wt = {}, cn = new Intl.DateTimeFormat("en-US", {
|
|
625
625
|
hourCycle: "h23",
|
|
626
626
|
timeZone: "America/New_York",
|
|
627
627
|
year: "numeric",
|
|
@@ -630,9 +630,9 @@ const yt = {}, un = new Intl.DateTimeFormat("en-US", {
|
|
|
630
630
|
hour: "2-digit",
|
|
631
631
|
minute: "2-digit",
|
|
632
632
|
second: "2-digit"
|
|
633
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
634
|
-
function
|
|
635
|
-
return
|
|
633
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), $a = cn === "06/25/2014, 00:00:00" || cn === "06/25/2014 00:00:00";
|
|
634
|
+
function Ka(e) {
|
|
635
|
+
return wt[e] || (wt[e] = $a ? new Intl.DateTimeFormat("en-US", {
|
|
636
636
|
hourCycle: "h23",
|
|
637
637
|
timeZone: e,
|
|
638
638
|
year: "numeric",
|
|
@@ -650,74 +650,74 @@ function za(e) {
|
|
|
650
650
|
hour: "2-digit",
|
|
651
651
|
minute: "2-digit",
|
|
652
652
|
second: "2-digit"
|
|
653
|
-
})),
|
|
653
|
+
})), wt[e];
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
const
|
|
657
|
-
return
|
|
655
|
+
function Lt(e, t, n, a, i, o, l) {
|
|
656
|
+
const d = /* @__PURE__ */ new Date(0);
|
|
657
|
+
return d.setUTCFullYear(e, t, n), d.setUTCHours(a, i, o, l), d;
|
|
658
658
|
}
|
|
659
|
-
const
|
|
659
|
+
const dn = 36e5, Wa = 6e4, vt = {
|
|
660
660
|
timezoneZ: /^(Z)$/,
|
|
661
661
|
timezoneHH: /^([+-]\d{2})$/,
|
|
662
662
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
663
663
|
};
|
|
664
|
-
function
|
|
664
|
+
function tt(e, t, n) {
|
|
665
665
|
if (!e)
|
|
666
666
|
return 0;
|
|
667
|
-
let a =
|
|
667
|
+
let a = vt.timezoneZ.exec(e);
|
|
668
668
|
if (a)
|
|
669
669
|
return 0;
|
|
670
670
|
let i, o;
|
|
671
|
-
if (a =
|
|
672
|
-
return i = parseInt(a[1], 10),
|
|
673
|
-
if (a =
|
|
671
|
+
if (a = vt.timezoneHH.exec(e), a)
|
|
672
|
+
return i = parseInt(a[1], 10), mn(i) ? -(i * dn) : NaN;
|
|
673
|
+
if (a = vt.timezoneHHMM.exec(e), a) {
|
|
674
674
|
i = parseInt(a[2], 10);
|
|
675
|
-
const
|
|
676
|
-
return
|
|
675
|
+
const l = parseInt(a[3], 10);
|
|
676
|
+
return mn(i, l) ? (o = Math.abs(i) * dn + l * Wa, a[1] === "+" ? -o : o) : NaN;
|
|
677
677
|
}
|
|
678
|
-
if (
|
|
678
|
+
if (Qa(e)) {
|
|
679
679
|
t = new Date(t || Date.now());
|
|
680
|
-
const
|
|
681
|
-
return -(n ?
|
|
680
|
+
const l = n ? t : Za(t), d = Dt(l, e);
|
|
681
|
+
return -(n ? d : qa(t, d, e));
|
|
682
682
|
}
|
|
683
683
|
return NaN;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
685
|
+
function Za(e) {
|
|
686
|
+
return Lt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
const n =
|
|
688
|
+
function Dt(e, t) {
|
|
689
|
+
const n = za(e, t), a = Lt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
690
690
|
let i = e.getTime();
|
|
691
691
|
const o = i % 1e3;
|
|
692
692
|
return i -= o >= 0 ? o : 1e3 + o, a - i;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function qa(e, t, n) {
|
|
695
695
|
let a = e.getTime() - t;
|
|
696
|
-
const i =
|
|
696
|
+
const i = Dt(new Date(a), n);
|
|
697
697
|
if (t === i)
|
|
698
698
|
return t;
|
|
699
699
|
a -= i - t;
|
|
700
|
-
const o =
|
|
700
|
+
const o = Dt(new Date(a), n);
|
|
701
701
|
return i === o ? i : Math.max(i, o);
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function mn(e, t) {
|
|
704
704
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
705
705
|
}
|
|
706
|
-
const
|
|
707
|
-
function
|
|
708
|
-
if (
|
|
706
|
+
const fn = {};
|
|
707
|
+
function Qa(e) {
|
|
708
|
+
if (fn[e])
|
|
709
709
|
return !0;
|
|
710
710
|
try {
|
|
711
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: e }),
|
|
711
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: e }), fn[e] = !0, !0;
|
|
712
712
|
} catch {
|
|
713
713
|
return !1;
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function pn(e) {
|
|
717
717
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
718
718
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
719
719
|
}
|
|
720
|
-
const
|
|
720
|
+
const Pn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xt = 36e5, hn = 6e4, Ja = 2, E = {
|
|
721
721
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
722
722
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
723
723
|
// year tokens
|
|
@@ -749,14 +749,14 @@ const Ln = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
749
749
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
750
750
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
751
751
|
// time zone tokens (to identify the presence of a tz)
|
|
752
|
-
timeZone:
|
|
752
|
+
timeZone: Pn
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function Nt(e, t = {}) {
|
|
755
755
|
if (arguments.length < 1)
|
|
756
756
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
757
757
|
if (e === null)
|
|
758
758
|
return /* @__PURE__ */ new Date(NaN);
|
|
759
|
-
const n = t.additionalDigits == null ?
|
|
759
|
+
const n = t.additionalDigits == null ? Ja : Number(t.additionalDigits);
|
|
760
760
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
761
761
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
762
762
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -765,36 +765,36 @@ function St(e, t = {}) {
|
|
|
765
765
|
return new Date(e);
|
|
766
766
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
767
767
|
return /* @__PURE__ */ new Date(NaN);
|
|
768
|
-
const a =
|
|
769
|
-
if (
|
|
768
|
+
const a = Xa(e), { year: i, restDateString: o } = ei(a.date, n), l = ti(o, i);
|
|
769
|
+
if (l === null || isNaN(l.getTime()))
|
|
770
770
|
return /* @__PURE__ */ new Date(NaN);
|
|
771
|
-
if (
|
|
772
|
-
const
|
|
773
|
-
let
|
|
774
|
-
if (a.time && (
|
|
771
|
+
if (l) {
|
|
772
|
+
const d = l.getTime();
|
|
773
|
+
let m = 0, h;
|
|
774
|
+
if (a.time && (m = ni(a.time), m === null || isNaN(m)))
|
|
775
775
|
return /* @__PURE__ */ new Date(NaN);
|
|
776
776
|
if (a.timeZone || t.timeZone) {
|
|
777
|
-
if (
|
|
777
|
+
if (h = tt(a.timeZone || t.timeZone, new Date(d + m)), isNaN(h))
|
|
778
778
|
return /* @__PURE__ */ new Date(NaN);
|
|
779
779
|
} else
|
|
780
|
-
|
|
781
|
-
return new Date(
|
|
780
|
+
h = pn(new Date(d + m)), h = pn(new Date(d + m + h));
|
|
781
|
+
return new Date(d + m + h);
|
|
782
782
|
} else
|
|
783
783
|
return /* @__PURE__ */ new Date(NaN);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function Xa(e) {
|
|
786
786
|
const t = {};
|
|
787
|
-
let n =
|
|
788
|
-
if (n ? (t.date = n[1], a = n[3]) : (n =
|
|
789
|
-
const i =
|
|
787
|
+
let n = E.dateTimePattern.exec(e), a;
|
|
788
|
+
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) {
|
|
789
|
+
const i = E.timeZone.exec(a);
|
|
790
790
|
i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
|
|
791
791
|
}
|
|
792
792
|
return t;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function ei(e, t) {
|
|
795
795
|
if (e) {
|
|
796
|
-
const n =
|
|
797
|
-
let i =
|
|
796
|
+
const n = E.YYY[t], a = E.YYYYY[t];
|
|
797
|
+
let i = E.YYYY.exec(e) || a.exec(e);
|
|
798
798
|
if (i) {
|
|
799
799
|
const o = i[1];
|
|
800
800
|
return {
|
|
@@ -802,7 +802,7 @@ function Za(e, t) {
|
|
|
802
802
|
restDateString: e.slice(o.length)
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
|
-
if (i =
|
|
805
|
+
if (i = E.YY.exec(e) || n.exec(e), i) {
|
|
806
806
|
const o = i[1];
|
|
807
807
|
return {
|
|
808
808
|
year: parseInt(o, 10) * 100,
|
|
@@ -814,137 +814,133 @@ function Za(e, t) {
|
|
|
814
814
|
year: null
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function ti(e, t) {
|
|
818
818
|
if (t === null)
|
|
819
819
|
return null;
|
|
820
820
|
let n, a, i;
|
|
821
821
|
if (!e || !e.length)
|
|
822
822
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
823
|
-
let o =
|
|
823
|
+
let o = E.MM.exec(e);
|
|
824
824
|
if (o)
|
|
825
|
-
return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1,
|
|
826
|
-
if (o =
|
|
825
|
+
return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, _n(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
|
|
826
|
+
if (o = E.DDD.exec(e), o) {
|
|
827
827
|
n = /* @__PURE__ */ new Date(0);
|
|
828
|
-
const
|
|
829
|
-
return
|
|
828
|
+
const l = parseInt(o[1], 10);
|
|
829
|
+
return ii(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
|
|
830
830
|
}
|
|
831
|
-
if (o =
|
|
831
|
+
if (o = E.MMDD.exec(e), o) {
|
|
832
832
|
n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
|
|
833
|
-
const
|
|
834
|
-
return
|
|
833
|
+
const l = parseInt(o[2], 10);
|
|
834
|
+
return _n(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
|
|
835
835
|
}
|
|
836
|
-
if (o =
|
|
837
|
-
return i = parseInt(o[1], 10) - 1,
|
|
838
|
-
if (o =
|
|
836
|
+
if (o = E.Www.exec(e), o)
|
|
837
|
+
return i = parseInt(o[1], 10) - 1, gn(i) ? yn(t, i) : /* @__PURE__ */ new Date(NaN);
|
|
838
|
+
if (o = E.WwwD.exec(e), o) {
|
|
839
839
|
i = parseInt(o[1], 10) - 1;
|
|
840
|
-
const
|
|
841
|
-
return
|
|
840
|
+
const l = parseInt(o[2], 10) - 1;
|
|
841
|
+
return gn(i, l) ? yn(t, i, l) : /* @__PURE__ */ new Date(NaN);
|
|
842
842
|
}
|
|
843
843
|
return null;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
let t, n, a =
|
|
845
|
+
function ni(e) {
|
|
846
|
+
let t, n, a = E.HH.exec(e);
|
|
847
847
|
if (a)
|
|
848
|
-
return t = parseFloat(a[1].replace(",", ".")),
|
|
849
|
-
if (a =
|
|
850
|
-
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")),
|
|
851
|
-
if (a =
|
|
848
|
+
return t = parseFloat(a[1].replace(",", ".")), Tt(t) ? t % 24 * xt : NaN;
|
|
849
|
+
if (a = E.HHMM.exec(e), a)
|
|
850
|
+
return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), Tt(t, n) ? t % 24 * xt + n * hn : NaN;
|
|
851
|
+
if (a = E.HHMMSS.exec(e), a) {
|
|
852
852
|
t = parseInt(a[1], 10), n = parseInt(a[2], 10);
|
|
853
853
|
const i = parseFloat(a[3].replace(",", "."));
|
|
854
|
-
return
|
|
854
|
+
return Tt(t, n, i) ? t % 24 * xt + n * hn + i * 1e3 : NaN;
|
|
855
855
|
}
|
|
856
856
|
return null;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function yn(e, t, n) {
|
|
859
859
|
t = t || 0, n = n || 0;
|
|
860
860
|
const a = /* @__PURE__ */ new Date(0);
|
|
861
861
|
a.setUTCFullYear(e, 0, 4);
|
|
862
862
|
const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
|
|
863
863
|
return a.setUTCDate(a.getUTCDate() + o), a;
|
|
864
864
|
}
|
|
865
|
-
const
|
|
866
|
-
function
|
|
865
|
+
const ri = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ai = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
866
|
+
function Bn(e) {
|
|
867
867
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function _n(e, t, n) {
|
|
870
870
|
if (t < 0 || t > 11)
|
|
871
871
|
return !1;
|
|
872
872
|
if (n != null) {
|
|
873
873
|
if (n < 1)
|
|
874
874
|
return !1;
|
|
875
|
-
const a =
|
|
876
|
-
if (a && n >
|
|
875
|
+
const a = Bn(e);
|
|
876
|
+
if (a && n > ai[t] || !a && n > ri[t])
|
|
877
877
|
return !1;
|
|
878
878
|
}
|
|
879
879
|
return !0;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function ii(e, t) {
|
|
882
882
|
if (t < 1)
|
|
883
883
|
return !1;
|
|
884
|
-
const n =
|
|
884
|
+
const n = Bn(e);
|
|
885
885
|
return !(n && t > 366 || !n && t > 365);
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function gn(e, t) {
|
|
888
888
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Tt(e, t, n) {
|
|
891
891
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
e =
|
|
895
|
-
const a =
|
|
893
|
+
function oi(e, t, n) {
|
|
894
|
+
e = Nt(e, n);
|
|
895
|
+
const a = tt(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
|
|
896
896
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
if (typeof e == "string" && !e.match(
|
|
900
|
-
return
|
|
901
|
-
e =
|
|
902
|
-
const a =
|
|
898
|
+
function si(e, t, n) {
|
|
899
|
+
if (typeof e == "string" && !e.match(Pn))
|
|
900
|
+
return Nt(e, { ...n, timeZone: t });
|
|
901
|
+
e = Nt(e, n);
|
|
902
|
+
const a = Lt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = tt(t, new Date(a));
|
|
903
903
|
return new Date(a + i);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
906
|
-
return -
|
|
905
|
+
function li(e, t) {
|
|
906
|
+
return -tt(e, t);
|
|
907
907
|
}
|
|
908
|
-
var
|
|
909
|
-
|
|
910
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
911
|
-
}
|
|
912
|
-
var We = { exports: {} };
|
|
913
|
-
We.exports;
|
|
908
|
+
var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = { exports: {} };
|
|
909
|
+
Qe.exports;
|
|
914
910
|
(function(e, t) {
|
|
915
|
-
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]",
|
|
916
|
-
|
|
917
|
-
var $ = typeof
|
|
918
|
-
function
|
|
911
|
+
var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", m = "[object Date]", h = "[object Error]", c = "[object Function]", x = "[object GeneratorFunction]", F = "[object Map]", g = "[object Number]", T = "[object Object]", k = "[object Promise]", H = "[object RegExp]", B = "[object Set]", b = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", me = "[object DataView]", y = "[object Float32Array]", v = "[object Float64Array]", M = "[object Int8Array]", R = "[object Int16Array]", ee = "[object Int32Array]", W = "[object Uint8Array]", z = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", U = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, _ = {};
|
|
912
|
+
_[o] = _[l] = _[Me] = _[me] = _[d] = _[m] = _[y] = _[v] = _[M] = _[R] = _[ee] = _[F] = _[g] = _[T] = _[H] = _[B] = _[b] = _[ie] = _[W] = _[z] = _[te] = _[ne] = !0, _[h] = _[c] = _[D] = !1;
|
|
913
|
+
var $ = typeof je == "object" && je && je.Object === Object && je, fe = typeof self == "object" && self && self.Object === Object && self, O = $ || fe || Function("return this")(), Z = t && !t.nodeType && t, be = Z && !0 && e && !e.nodeType && e, rt = be && be.exports === Z;
|
|
914
|
+
function at(r, s) {
|
|
919
915
|
return r.set(s[0], s[1]), r;
|
|
920
916
|
}
|
|
921
|
-
function
|
|
917
|
+
function it(r, s) {
|
|
922
918
|
return r.add(s), r;
|
|
923
919
|
}
|
|
924
920
|
function Se(r, s) {
|
|
925
|
-
for (var
|
|
921
|
+
for (var u = -1, p = r ? r.length : 0; ++u < p && s(r[u], u, r) !== !1; )
|
|
926
922
|
;
|
|
927
923
|
return r;
|
|
928
924
|
}
|
|
929
|
-
function
|
|
930
|
-
for (var
|
|
931
|
-
r[N +
|
|
925
|
+
function Vn(r, s) {
|
|
926
|
+
for (var u = -1, p = s.length, N = r.length; ++u < p; )
|
|
927
|
+
r[N + u] = s[u];
|
|
932
928
|
return r;
|
|
933
929
|
}
|
|
934
|
-
function
|
|
935
|
-
for (var N = -1,
|
|
936
|
-
|
|
937
|
-
return
|
|
930
|
+
function At(r, s, u, p) {
|
|
931
|
+
for (var N = -1, L = r ? r.length : 0; ++N < L; )
|
|
932
|
+
u = s(u, r[N], N, r);
|
|
933
|
+
return u;
|
|
938
934
|
}
|
|
939
|
-
function
|
|
940
|
-
for (var
|
|
941
|
-
|
|
942
|
-
return
|
|
935
|
+
function Yn(r, s) {
|
|
936
|
+
for (var u = -1, p = Array(r); ++u < r; )
|
|
937
|
+
p[u] = s(u);
|
|
938
|
+
return p;
|
|
943
939
|
}
|
|
944
|
-
function
|
|
940
|
+
function jn(r, s) {
|
|
945
941
|
return r == null ? void 0 : r[s];
|
|
946
942
|
}
|
|
947
|
-
function
|
|
943
|
+
function Ct(r) {
|
|
948
944
|
var s = !1;
|
|
949
945
|
if (r != null && typeof r.toString != "function")
|
|
950
946
|
try {
|
|
@@ -953,356 +949,356 @@ We.exports;
|
|
|
953
949
|
}
|
|
954
950
|
return s;
|
|
955
951
|
}
|
|
956
|
-
function
|
|
957
|
-
var s = -1,
|
|
958
|
-
return r.forEach(function(
|
|
959
|
-
|
|
960
|
-
}),
|
|
952
|
+
function Pt(r) {
|
|
953
|
+
var s = -1, u = Array(r.size);
|
|
954
|
+
return r.forEach(function(p, N) {
|
|
955
|
+
u[++s] = [N, p];
|
|
956
|
+
}), u;
|
|
961
957
|
}
|
|
962
|
-
function
|
|
963
|
-
return function(
|
|
964
|
-
return r(s(
|
|
958
|
+
function ot(r, s) {
|
|
959
|
+
return function(u) {
|
|
960
|
+
return r(s(u));
|
|
965
961
|
};
|
|
966
962
|
}
|
|
967
|
-
function
|
|
968
|
-
var s = -1,
|
|
969
|
-
return r.forEach(function(
|
|
970
|
-
|
|
971
|
-
}),
|
|
963
|
+
function Bt(r) {
|
|
964
|
+
var s = -1, u = Array(r.size);
|
|
965
|
+
return r.forEach(function(p) {
|
|
966
|
+
u[++s] = p;
|
|
967
|
+
}), u;
|
|
972
968
|
}
|
|
973
|
-
var
|
|
974
|
-
var r = /[^.]+$/.exec(
|
|
969
|
+
var $n = Array.prototype, Kn = Function.prototype, Ie = Object.prototype, st = O["__core-js_shared__"], Ht = function() {
|
|
970
|
+
var r = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
|
|
975
971
|
return r ? "Symbol(src)_1." + r : "";
|
|
976
|
-
}(),
|
|
977
|
-
"^" +
|
|
978
|
-
),
|
|
972
|
+
}(), zt = Kn.toString, re = Ie.hasOwnProperty, Ae = Ie.toString, Wn = RegExp(
|
|
973
|
+
"^" + zt.call(re).replace(U, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
974
|
+
), Vt = rt ? O.Buffer : void 0, Yt = O.Symbol, jt = O.Uint8Array, Zn = ot(Object.getPrototypeOf, Object), qn = Object.create, Qn = Ie.propertyIsEnumerable, Jn = $n.splice, $t = Object.getOwnPropertySymbols, Xn = Vt ? Vt.isBuffer : void 0, er = ot(Object.keys, Object), lt = ye(O, "DataView"), De = ye(O, "Map"), ut = ye(O, "Promise"), ct = ye(O, "Set"), dt = ye(O, "WeakMap"), Ne = ye(Object, "create"), tr = le(lt), nr = le(De), rr = le(ut), ar = le(ct), ir = le(dt), Kt = Yt ? Yt.prototype : void 0, Wt = Kt ? Kt.valueOf : void 0;
|
|
979
975
|
function oe(r) {
|
|
980
|
-
var s = -1,
|
|
981
|
-
for (this.clear(); ++s <
|
|
982
|
-
var
|
|
983
|
-
this.set(
|
|
976
|
+
var s = -1, u = r ? r.length : 0;
|
|
977
|
+
for (this.clear(); ++s < u; ) {
|
|
978
|
+
var p = r[s];
|
|
979
|
+
this.set(p[0], p[1]);
|
|
984
980
|
}
|
|
985
981
|
}
|
|
986
|
-
function
|
|
987
|
-
this.__data__ =
|
|
982
|
+
function or() {
|
|
983
|
+
this.__data__ = Ne ? Ne(null) : {};
|
|
988
984
|
}
|
|
989
|
-
function
|
|
985
|
+
function sr(r) {
|
|
990
986
|
return this.has(r) && delete this.__data__[r];
|
|
991
987
|
}
|
|
992
|
-
function
|
|
988
|
+
function lr(r) {
|
|
993
989
|
var s = this.__data__;
|
|
994
|
-
if (
|
|
995
|
-
var
|
|
996
|
-
return
|
|
990
|
+
if (Ne) {
|
|
991
|
+
var u = s[r];
|
|
992
|
+
return u === a ? void 0 : u;
|
|
997
993
|
}
|
|
998
994
|
return re.call(s, r) ? s[r] : void 0;
|
|
999
995
|
}
|
|
1000
|
-
function
|
|
996
|
+
function ur(r) {
|
|
1001
997
|
var s = this.__data__;
|
|
1002
|
-
return
|
|
998
|
+
return Ne ? s[r] !== void 0 : re.call(s, r);
|
|
1003
999
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var
|
|
1006
|
-
return
|
|
1000
|
+
function cr(r, s) {
|
|
1001
|
+
var u = this.__data__;
|
|
1002
|
+
return u[r] = Ne && s === void 0 ? a : s, this;
|
|
1007
1003
|
}
|
|
1008
|
-
oe.prototype.clear =
|
|
1004
|
+
oe.prototype.clear = or, oe.prototype.delete = sr, oe.prototype.get = lr, oe.prototype.has = ur, oe.prototype.set = cr;
|
|
1009
1005
|
function q(r) {
|
|
1010
|
-
var s = -1,
|
|
1011
|
-
for (this.clear(); ++s <
|
|
1012
|
-
var
|
|
1013
|
-
this.set(
|
|
1006
|
+
var s = -1, u = r ? r.length : 0;
|
|
1007
|
+
for (this.clear(); ++s < u; ) {
|
|
1008
|
+
var p = r[s];
|
|
1009
|
+
this.set(p[0], p[1]);
|
|
1014
1010
|
}
|
|
1015
1011
|
}
|
|
1016
|
-
function
|
|
1012
|
+
function dr() {
|
|
1017
1013
|
this.__data__ = [];
|
|
1018
1014
|
}
|
|
1019
|
-
function
|
|
1020
|
-
var s = this.__data__,
|
|
1021
|
-
if (
|
|
1015
|
+
function mr(r) {
|
|
1016
|
+
var s = this.__data__, u = Ce(s, r);
|
|
1017
|
+
if (u < 0)
|
|
1022
1018
|
return !1;
|
|
1023
|
-
var
|
|
1024
|
-
return
|
|
1019
|
+
var p = s.length - 1;
|
|
1020
|
+
return u == p ? s.pop() : Jn.call(s, u, 1), !0;
|
|
1025
1021
|
}
|
|
1026
|
-
function
|
|
1027
|
-
var s = this.__data__,
|
|
1028
|
-
return
|
|
1022
|
+
function fr(r) {
|
|
1023
|
+
var s = this.__data__, u = Ce(s, r);
|
|
1024
|
+
return u < 0 ? void 0 : s[u][1];
|
|
1029
1025
|
}
|
|
1030
|
-
function
|
|
1031
|
-
return
|
|
1026
|
+
function pr(r) {
|
|
1027
|
+
return Ce(this.__data__, r) > -1;
|
|
1032
1028
|
}
|
|
1033
|
-
function
|
|
1034
|
-
var
|
|
1035
|
-
return
|
|
1029
|
+
function hr(r, s) {
|
|
1030
|
+
var u = this.__data__, p = Ce(u, r);
|
|
1031
|
+
return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
|
|
1036
1032
|
}
|
|
1037
|
-
q.prototype.clear =
|
|
1033
|
+
q.prototype.clear = dr, q.prototype.delete = mr, q.prototype.get = fr, q.prototype.has = pr, q.prototype.set = hr;
|
|
1038
1034
|
function pe(r) {
|
|
1039
|
-
var s = -1,
|
|
1040
|
-
for (this.clear(); ++s <
|
|
1041
|
-
var
|
|
1042
|
-
this.set(
|
|
1035
|
+
var s = -1, u = r ? r.length : 0;
|
|
1036
|
+
for (this.clear(); ++s < u; ) {
|
|
1037
|
+
var p = r[s];
|
|
1038
|
+
this.set(p[0], p[1]);
|
|
1043
1039
|
}
|
|
1044
1040
|
}
|
|
1045
|
-
function
|
|
1041
|
+
function yr() {
|
|
1046
1042
|
this.__data__ = {
|
|
1047
1043
|
hash: new oe(),
|
|
1048
1044
|
map: new (De || q)(),
|
|
1049
1045
|
string: new oe()
|
|
1050
1046
|
};
|
|
1051
1047
|
}
|
|
1052
|
-
function
|
|
1048
|
+
function _r(r) {
|
|
1053
1049
|
return Pe(this, r).delete(r);
|
|
1054
1050
|
}
|
|
1055
|
-
function
|
|
1051
|
+
function gr(r) {
|
|
1056
1052
|
return Pe(this, r).get(r);
|
|
1057
1053
|
}
|
|
1058
|
-
function
|
|
1054
|
+
function wr(r) {
|
|
1059
1055
|
return Pe(this, r).has(r);
|
|
1060
1056
|
}
|
|
1061
|
-
function
|
|
1057
|
+
function vr(r, s) {
|
|
1062
1058
|
return Pe(this, r).set(r, s), this;
|
|
1063
1059
|
}
|
|
1064
|
-
pe.prototype.clear =
|
|
1060
|
+
pe.prototype.clear = yr, pe.prototype.delete = _r, pe.prototype.get = gr, pe.prototype.has = wr, pe.prototype.set = vr;
|
|
1065
1061
|
function he(r) {
|
|
1066
1062
|
this.__data__ = new q(r);
|
|
1067
1063
|
}
|
|
1068
|
-
function
|
|
1064
|
+
function xr() {
|
|
1069
1065
|
this.__data__ = new q();
|
|
1070
1066
|
}
|
|
1071
|
-
function
|
|
1067
|
+
function Tr(r) {
|
|
1072
1068
|
return this.__data__.delete(r);
|
|
1073
1069
|
}
|
|
1074
|
-
function
|
|
1070
|
+
function Fr(r) {
|
|
1075
1071
|
return this.__data__.get(r);
|
|
1076
1072
|
}
|
|
1077
|
-
function
|
|
1073
|
+
function Mr(r) {
|
|
1078
1074
|
return this.__data__.has(r);
|
|
1079
1075
|
}
|
|
1080
|
-
function
|
|
1081
|
-
var
|
|
1082
|
-
if (
|
|
1083
|
-
var
|
|
1084
|
-
if (!De ||
|
|
1085
|
-
return
|
|
1086
|
-
|
|
1076
|
+
function Sr(r, s) {
|
|
1077
|
+
var u = this.__data__;
|
|
1078
|
+
if (u instanceof q) {
|
|
1079
|
+
var p = u.__data__;
|
|
1080
|
+
if (!De || p.length < n - 1)
|
|
1081
|
+
return p.push([r, s]), this;
|
|
1082
|
+
u = this.__data__ = new pe(p);
|
|
1087
1083
|
}
|
|
1088
|
-
return
|
|
1084
|
+
return u.set(r, s), this;
|
|
1089
1085
|
}
|
|
1090
|
-
he.prototype.clear =
|
|
1091
|
-
function
|
|
1092
|
-
var
|
|
1093
|
-
for (var
|
|
1094
|
-
re.call(r,
|
|
1095
|
-
return
|
|
1086
|
+
he.prototype.clear = xr, he.prototype.delete = Tr, he.prototype.get = Fr, he.prototype.has = Mr, he.prototype.set = Sr;
|
|
1087
|
+
function Dr(r, s) {
|
|
1088
|
+
var u = pt(r) || qr(r) ? Yn(r.length, String) : [], p = u.length, N = !!p;
|
|
1089
|
+
for (var L in r)
|
|
1090
|
+
re.call(r, L) && !(N && (L == "length" || $r(L, p))) && u.push(L);
|
|
1091
|
+
return u;
|
|
1096
1092
|
}
|
|
1097
|
-
function
|
|
1098
|
-
var
|
|
1099
|
-
(!(re.call(r, s) &&
|
|
1093
|
+
function Zt(r, s, u) {
|
|
1094
|
+
var p = r[s];
|
|
1095
|
+
(!(re.call(r, s) && Xt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
|
|
1100
1096
|
}
|
|
1101
|
-
function
|
|
1102
|
-
for (var
|
|
1103
|
-
if (
|
|
1104
|
-
return
|
|
1097
|
+
function Ce(r, s) {
|
|
1098
|
+
for (var u = r.length; u--; )
|
|
1099
|
+
if (Xt(r[u][0], s))
|
|
1100
|
+
return u;
|
|
1105
1101
|
return -1;
|
|
1106
1102
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return r &&
|
|
1103
|
+
function Nr(r, s) {
|
|
1104
|
+
return r && qt(s, ht(s), r);
|
|
1109
1105
|
}
|
|
1110
|
-
function
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1113
|
-
return
|
|
1114
|
-
if (!
|
|
1106
|
+
function mt(r, s, u, p, N, L, Q) {
|
|
1107
|
+
var G;
|
|
1108
|
+
if (p && (G = L ? p(r, N, L, Q) : p(r)), G !== void 0)
|
|
1109
|
+
return G;
|
|
1110
|
+
if (!Be(r))
|
|
1115
1111
|
return r;
|
|
1116
|
-
var
|
|
1117
|
-
if (
|
|
1118
|
-
if (
|
|
1119
|
-
return
|
|
1112
|
+
var nn = pt(r);
|
|
1113
|
+
if (nn) {
|
|
1114
|
+
if (G = Vr(r), !s)
|
|
1115
|
+
return Br(r, G);
|
|
1120
1116
|
} else {
|
|
1121
|
-
var _e = se(r),
|
|
1122
|
-
if (
|
|
1123
|
-
return
|
|
1124
|
-
if (_e ==
|
|
1125
|
-
if (
|
|
1126
|
-
return
|
|
1127
|
-
if (
|
|
1128
|
-
return
|
|
1117
|
+
var _e = se(r), rn = _e == c || _e == x;
|
|
1118
|
+
if (Jr(r))
|
|
1119
|
+
return Gr(r, s);
|
|
1120
|
+
if (_e == T || _e == o || rn && !L) {
|
|
1121
|
+
if (Ct(r))
|
|
1122
|
+
return L ? r : {};
|
|
1123
|
+
if (G = Yr(rn ? {} : r), !s)
|
|
1124
|
+
return Hr(r, Nr(G, r));
|
|
1129
1125
|
} else {
|
|
1130
|
-
if (!
|
|
1131
|
-
return
|
|
1132
|
-
|
|
1126
|
+
if (!_[_e])
|
|
1127
|
+
return L ? r : {};
|
|
1128
|
+
G = jr(r, _e, mt, s);
|
|
1133
1129
|
}
|
|
1134
1130
|
}
|
|
1135
1131
|
Q || (Q = new he());
|
|
1136
|
-
var
|
|
1137
|
-
if (
|
|
1138
|
-
return
|
|
1139
|
-
if (Q.set(r,
|
|
1140
|
-
var
|
|
1141
|
-
return Se(
|
|
1142
|
-
|
|
1143
|
-
}),
|
|
1132
|
+
var an = Q.get(r);
|
|
1133
|
+
if (an)
|
|
1134
|
+
return an;
|
|
1135
|
+
if (Q.set(r, G), !nn)
|
|
1136
|
+
var on = u ? zr(r) : ht(r);
|
|
1137
|
+
return Se(on || r, function(yt, He) {
|
|
1138
|
+
on && (He = yt, yt = r[He]), Zt(G, He, mt(yt, s, u, p, He, r, Q));
|
|
1139
|
+
}), G;
|
|
1144
1140
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1141
|
+
function kr(r) {
|
|
1142
|
+
return Be(r) ? qn(r) : {};
|
|
1147
1143
|
}
|
|
1148
|
-
function
|
|
1149
|
-
var
|
|
1150
|
-
return
|
|
1144
|
+
function Rr(r, s, u) {
|
|
1145
|
+
var p = s(r);
|
|
1146
|
+
return pt(r) ? p : Vn(p, u(r));
|
|
1151
1147
|
}
|
|
1152
|
-
function
|
|
1153
|
-
return
|
|
1148
|
+
function Er(r) {
|
|
1149
|
+
return Ae.call(r);
|
|
1154
1150
|
}
|
|
1155
|
-
function
|
|
1156
|
-
if (!
|
|
1151
|
+
function Or(r) {
|
|
1152
|
+
if (!Be(r) || Wr(r))
|
|
1157
1153
|
return !1;
|
|
1158
|
-
var s =
|
|
1159
|
-
return s.test(
|
|
1154
|
+
var s = tn(r) || Ct(r) ? Wn : Y;
|
|
1155
|
+
return s.test(le(r));
|
|
1160
1156
|
}
|
|
1161
|
-
function
|
|
1162
|
-
if (!
|
|
1163
|
-
return
|
|
1157
|
+
function Lr(r) {
|
|
1158
|
+
if (!Jt(r))
|
|
1159
|
+
return er(r);
|
|
1164
1160
|
var s = [];
|
|
1165
|
-
for (var
|
|
1166
|
-
re.call(r,
|
|
1161
|
+
for (var u in Object(r))
|
|
1162
|
+
re.call(r, u) && u != "constructor" && s.push(u);
|
|
1167
1163
|
return s;
|
|
1168
1164
|
}
|
|
1169
|
-
function
|
|
1165
|
+
function Gr(r, s) {
|
|
1170
1166
|
if (s)
|
|
1171
1167
|
return r.slice();
|
|
1172
|
-
var
|
|
1173
|
-
return r.copy(
|
|
1168
|
+
var u = new r.constructor(r.length);
|
|
1169
|
+
return r.copy(u), u;
|
|
1174
1170
|
}
|
|
1175
|
-
function
|
|
1171
|
+
function ft(r) {
|
|
1176
1172
|
var s = new r.constructor(r.byteLength);
|
|
1177
|
-
return new
|
|
1173
|
+
return new jt(s).set(new jt(r)), s;
|
|
1178
1174
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var
|
|
1181
|
-
return new r.constructor(
|
|
1175
|
+
function Ur(r, s) {
|
|
1176
|
+
var u = s ? ft(r.buffer) : r.buffer;
|
|
1177
|
+
return new r.constructor(u, r.byteOffset, r.byteLength);
|
|
1182
1178
|
}
|
|
1183
|
-
function
|
|
1184
|
-
var
|
|
1185
|
-
return
|
|
1179
|
+
function br(r, s, u) {
|
|
1180
|
+
var p = s ? u(Pt(r), !0) : Pt(r);
|
|
1181
|
+
return At(p, at, new r.constructor());
|
|
1186
1182
|
}
|
|
1187
|
-
function
|
|
1183
|
+
function Ir(r) {
|
|
1188
1184
|
var s = new r.constructor(r.source, V.exec(r));
|
|
1189
1185
|
return s.lastIndex = r.lastIndex, s;
|
|
1190
1186
|
}
|
|
1191
|
-
function
|
|
1192
|
-
var
|
|
1193
|
-
return
|
|
1187
|
+
function Ar(r, s, u) {
|
|
1188
|
+
var p = s ? u(Bt(r), !0) : Bt(r);
|
|
1189
|
+
return At(p, it, new r.constructor());
|
|
1194
1190
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return
|
|
1191
|
+
function Cr(r) {
|
|
1192
|
+
return Wt ? Object(Wt.call(r)) : {};
|
|
1197
1193
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var
|
|
1200
|
-
return new r.constructor(
|
|
1194
|
+
function Pr(r, s) {
|
|
1195
|
+
var u = s ? ft(r.buffer) : r.buffer;
|
|
1196
|
+
return new r.constructor(u, r.byteOffset, r.length);
|
|
1201
1197
|
}
|
|
1202
|
-
function
|
|
1203
|
-
var
|
|
1204
|
-
for (s || (s = Array(
|
|
1205
|
-
s[
|
|
1198
|
+
function Br(r, s) {
|
|
1199
|
+
var u = -1, p = r.length;
|
|
1200
|
+
for (s || (s = Array(p)); ++u < p; )
|
|
1201
|
+
s[u] = r[u];
|
|
1206
1202
|
return s;
|
|
1207
1203
|
}
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1210
|
-
for (var N = -1,
|
|
1211
|
-
var Q = s[N],
|
|
1212
|
-
|
|
1204
|
+
function qt(r, s, u, p) {
|
|
1205
|
+
u || (u = {});
|
|
1206
|
+
for (var N = -1, L = s.length; ++N < L; ) {
|
|
1207
|
+
var Q = s[N], G = void 0;
|
|
1208
|
+
Zt(u, Q, G === void 0 ? r[Q] : G);
|
|
1213
1209
|
}
|
|
1214
|
-
return
|
|
1210
|
+
return u;
|
|
1215
1211
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1212
|
+
function Hr(r, s) {
|
|
1213
|
+
return qt(r, Qt(r), s);
|
|
1218
1214
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1215
|
+
function zr(r) {
|
|
1216
|
+
return Rr(r, ht, Qt);
|
|
1221
1217
|
}
|
|
1222
1218
|
function Pe(r, s) {
|
|
1223
|
-
var
|
|
1224
|
-
return
|
|
1219
|
+
var u = r.__data__;
|
|
1220
|
+
return Kr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
|
|
1225
1221
|
}
|
|
1226
1222
|
function ye(r, s) {
|
|
1227
|
-
var
|
|
1228
|
-
return
|
|
1223
|
+
var u = jn(r, s);
|
|
1224
|
+
return Or(u) ? u : void 0;
|
|
1229
1225
|
}
|
|
1230
|
-
var
|
|
1231
|
-
(
|
|
1232
|
-
var s =
|
|
1233
|
-
if (
|
|
1234
|
-
switch (
|
|
1235
|
-
case
|
|
1226
|
+
var Qt = $t ? ot($t, Object) : ta, se = Er;
|
|
1227
|
+
(lt && se(new lt(new ArrayBuffer(1))) != me || De && se(new De()) != F || ut && se(ut.resolve()) != k || ct && se(new ct()) != B || dt && se(new dt()) != D) && (se = function(r) {
|
|
1228
|
+
var s = Ae.call(r), u = s == T ? r.constructor : void 0, p = u ? le(u) : void 0;
|
|
1229
|
+
if (p)
|
|
1230
|
+
switch (p) {
|
|
1231
|
+
case tr:
|
|
1236
1232
|
return me;
|
|
1237
|
-
case
|
|
1238
|
-
return w;
|
|
1239
|
-
case Jn:
|
|
1233
|
+
case nr:
|
|
1240
1234
|
return F;
|
|
1241
|
-
case
|
|
1242
|
-
return B;
|
|
1243
|
-
case er:
|
|
1235
|
+
case rr:
|
|
1244
1236
|
return k;
|
|
1237
|
+
case ar:
|
|
1238
|
+
return B;
|
|
1239
|
+
case ir:
|
|
1240
|
+
return D;
|
|
1245
1241
|
}
|
|
1246
1242
|
return s;
|
|
1247
1243
|
});
|
|
1248
|
-
function
|
|
1249
|
-
var s = r.length,
|
|
1250
|
-
return s && typeof r[0] == "string" && re.call(r, "index") && (
|
|
1244
|
+
function Vr(r) {
|
|
1245
|
+
var s = r.length, u = r.constructor(s);
|
|
1246
|
+
return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
|
|
1251
1247
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return typeof r.constructor == "function" && !
|
|
1248
|
+
function Yr(r) {
|
|
1249
|
+
return typeof r.constructor == "function" && !Jt(r) ? kr(Zn(r)) : {};
|
|
1254
1250
|
}
|
|
1255
|
-
function
|
|
1251
|
+
function jr(r, s, u, p) {
|
|
1256
1252
|
var N = r.constructor;
|
|
1257
1253
|
switch (s) {
|
|
1258
|
-
case
|
|
1259
|
-
return
|
|
1254
|
+
case Me:
|
|
1255
|
+
return ft(r);
|
|
1256
|
+
case d:
|
|
1260
1257
|
case m:
|
|
1261
|
-
case f:
|
|
1262
1258
|
return new N(+r);
|
|
1263
1259
|
case me:
|
|
1264
|
-
return
|
|
1265
|
-
case
|
|
1266
|
-
case
|
|
1267
|
-
case
|
|
1268
|
-
case
|
|
1260
|
+
return Ur(r, p);
|
|
1261
|
+
case y:
|
|
1262
|
+
case v:
|
|
1263
|
+
case M:
|
|
1264
|
+
case R:
|
|
1269
1265
|
case ee:
|
|
1270
1266
|
case W:
|
|
1271
1267
|
case z:
|
|
1272
1268
|
case te:
|
|
1273
1269
|
case ne:
|
|
1274
|
-
return
|
|
1275
|
-
case
|
|
1276
|
-
return
|
|
1270
|
+
return Pr(r, p);
|
|
1271
|
+
case F:
|
|
1272
|
+
return br(r, p, u);
|
|
1277
1273
|
case g:
|
|
1278
1274
|
case b:
|
|
1279
1275
|
return new N(r);
|
|
1280
1276
|
case H:
|
|
1281
|
-
return
|
|
1277
|
+
return Ir(r);
|
|
1282
1278
|
case B:
|
|
1283
|
-
return
|
|
1279
|
+
return Ar(r, p, u);
|
|
1284
1280
|
case ie:
|
|
1285
|
-
return
|
|
1281
|
+
return Cr(r);
|
|
1286
1282
|
}
|
|
1287
1283
|
}
|
|
1288
|
-
function
|
|
1284
|
+
function $r(r, s) {
|
|
1289
1285
|
return s = s ?? i, !!s && (typeof r == "number" || j.test(r)) && r > -1 && r % 1 == 0 && r < s;
|
|
1290
1286
|
}
|
|
1291
|
-
function
|
|
1287
|
+
function Kr(r) {
|
|
1292
1288
|
var s = typeof r;
|
|
1293
1289
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
|
|
1294
1290
|
}
|
|
1295
|
-
function
|
|
1296
|
-
return !!
|
|
1291
|
+
function Wr(r) {
|
|
1292
|
+
return !!Ht && Ht in r;
|
|
1297
1293
|
}
|
|
1298
|
-
function
|
|
1299
|
-
var s = r && r.constructor,
|
|
1300
|
-
return r ===
|
|
1294
|
+
function Jt(r) {
|
|
1295
|
+
var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ie;
|
|
1296
|
+
return r === u;
|
|
1301
1297
|
}
|
|
1302
|
-
function
|
|
1298
|
+
function le(r) {
|
|
1303
1299
|
if (r != null) {
|
|
1304
1300
|
try {
|
|
1305
|
-
return
|
|
1301
|
+
return zt.call(r);
|
|
1306
1302
|
} catch {
|
|
1307
1303
|
}
|
|
1308
1304
|
try {
|
|
@@ -1312,51 +1308,51 @@ We.exports;
|
|
|
1312
1308
|
}
|
|
1313
1309
|
return "";
|
|
1314
1310
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1311
|
+
function Zr(r) {
|
|
1312
|
+
return mt(r, !0, !0);
|
|
1317
1313
|
}
|
|
1318
|
-
function
|
|
1314
|
+
function Xt(r, s) {
|
|
1319
1315
|
return r === s || r !== r && s !== s;
|
|
1320
1316
|
}
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1317
|
+
function qr(r) {
|
|
1318
|
+
return Qr(r) && re.call(r, "callee") && (!Qn.call(r, "callee") || Ae.call(r) == o);
|
|
1323
1319
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1326
|
-
return r != null &&
|
|
1320
|
+
var pt = Array.isArray;
|
|
1321
|
+
function en(r) {
|
|
1322
|
+
return r != null && Xr(r.length) && !tn(r);
|
|
1327
1323
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1324
|
+
function Qr(r) {
|
|
1325
|
+
return ea(r) && en(r);
|
|
1330
1326
|
}
|
|
1331
|
-
var
|
|
1332
|
-
function
|
|
1333
|
-
var s =
|
|
1334
|
-
return s == c || s ==
|
|
1327
|
+
var Jr = Xn || na;
|
|
1328
|
+
function tn(r) {
|
|
1329
|
+
var s = Be(r) ? Ae.call(r) : "";
|
|
1330
|
+
return s == c || s == x;
|
|
1335
1331
|
}
|
|
1336
|
-
function
|
|
1332
|
+
function Xr(r) {
|
|
1337
1333
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
|
|
1338
1334
|
}
|
|
1339
|
-
function
|
|
1335
|
+
function Be(r) {
|
|
1340
1336
|
var s = typeof r;
|
|
1341
1337
|
return !!r && (s == "object" || s == "function");
|
|
1342
1338
|
}
|
|
1343
|
-
function
|
|
1339
|
+
function ea(r) {
|
|
1344
1340
|
return !!r && typeof r == "object";
|
|
1345
1341
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
1342
|
+
function ht(r) {
|
|
1343
|
+
return en(r) ? Dr(r) : Lr(r);
|
|
1348
1344
|
}
|
|
1349
|
-
function
|
|
1345
|
+
function ta() {
|
|
1350
1346
|
return [];
|
|
1351
1347
|
}
|
|
1352
|
-
function
|
|
1348
|
+
function na() {
|
|
1353
1349
|
return !1;
|
|
1354
1350
|
}
|
|
1355
|
-
e.exports =
|
|
1356
|
-
})(
|
|
1357
|
-
|
|
1358
|
-
const
|
|
1359
|
-
class
|
|
1351
|
+
e.exports = Zr;
|
|
1352
|
+
})(Qe, Qe.exports);
|
|
1353
|
+
Qe.exports;
|
|
1354
|
+
const P = (e, t) => new Date(e.getTime() - li(t, e));
|
|
1355
|
+
class S {
|
|
1360
1356
|
constructor(t) {
|
|
1361
1357
|
I(this, "timeframeText"), I(this, "key"), I(this, "display"), I(this, "timeframeLength"), I(this, "allowedTiers"), I(this, "defaultResponseGranularity"), I(this, "dataGranularity"), I(this, "isRelative"), I(this, "fineGrainedDefaultGranularity"), I(this, "_startCustom"), I(this, "_endCustom"), I(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;
|
|
1362
1358
|
}
|
|
@@ -1403,91 +1399,91 @@ class D {
|
|
|
1403
1399
|
tzAdjustedDate(t) {
|
|
1404
1400
|
if (!t)
|
|
1405
1401
|
return /* @__PURE__ */ new Date();
|
|
1406
|
-
const n =
|
|
1407
|
-
return
|
|
1402
|
+
const n = si(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
1403
|
+
return oi(n, t);
|
|
1408
1404
|
}
|
|
1409
1405
|
}
|
|
1410
|
-
class
|
|
1406
|
+
class ui extends S {
|
|
1411
1407
|
rawStart(t) {
|
|
1412
|
-
let n =
|
|
1413
|
-
return t && (n =
|
|
1408
|
+
let n = qe(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1409
|
+
return t && (n = P(n, t)), n;
|
|
1414
1410
|
}
|
|
1415
1411
|
maximumTimeframeLength() {
|
|
1416
1412
|
return 60 * 60 * 24 * 7;
|
|
1417
1413
|
}
|
|
1418
1414
|
}
|
|
1419
|
-
class
|
|
1415
|
+
class ci extends S {
|
|
1420
1416
|
rawStart(t) {
|
|
1421
1417
|
let n = xe(this.tzAdjustedDate(t));
|
|
1422
|
-
return t && (n =
|
|
1418
|
+
return t && (n = P(n, t)), n;
|
|
1423
1419
|
}
|
|
1424
1420
|
maximumTimeframeLength() {
|
|
1425
1421
|
return 60 * 60 * 24 * 31;
|
|
1426
1422
|
}
|
|
1427
1423
|
}
|
|
1428
|
-
class
|
|
1424
|
+
class di extends S {
|
|
1429
1425
|
rawStart(t) {
|
|
1430
1426
|
let n = ve(this.tzAdjustedDate(t));
|
|
1431
|
-
return t && (n =
|
|
1427
|
+
return t && (n = P(n, t)), n;
|
|
1432
1428
|
}
|
|
1433
1429
|
maximumTimeframeLength() {
|
|
1434
1430
|
return 60 * 60 * 24 * 92;
|
|
1435
1431
|
}
|
|
1436
1432
|
}
|
|
1437
|
-
class
|
|
1433
|
+
class mi extends S {
|
|
1438
1434
|
rawStart(t) {
|
|
1439
1435
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1440
|
-
return t && (n =
|
|
1436
|
+
return t && (n = P(n, t)), n;
|
|
1441
1437
|
}
|
|
1442
1438
|
maximumTimeframeLength() {
|
|
1443
1439
|
return 60 * 60 * 24 * 366;
|
|
1444
1440
|
}
|
|
1445
1441
|
}
|
|
1446
|
-
class
|
|
1442
|
+
class fi extends S {
|
|
1447
1443
|
rawEnd(t) {
|
|
1448
|
-
let n =
|
|
1449
|
-
return t && (n =
|
|
1444
|
+
let n = qe(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
1445
|
+
return t && (n = P(n, t)), n;
|
|
1450
1446
|
}
|
|
1451
1447
|
rawStart(t) {
|
|
1452
1448
|
const n = this.tzAdjustedDate(t);
|
|
1453
|
-
let a =
|
|
1449
|
+
let a = qe(n.setDate(n.getDate() - 7), {
|
|
1454
1450
|
weekStartsOn: 1
|
|
1455
1451
|
});
|
|
1456
|
-
return t && (a =
|
|
1452
|
+
return t && (a = P(a, t)), a;
|
|
1457
1453
|
}
|
|
1458
1454
|
}
|
|
1459
|
-
class
|
|
1455
|
+
class pi extends S {
|
|
1460
1456
|
rawEnd(t) {
|
|
1461
1457
|
let n = ve(this.tzAdjustedDate(t));
|
|
1462
|
-
return t && (n =
|
|
1458
|
+
return t && (n = P(n, t)), n;
|
|
1463
1459
|
}
|
|
1464
1460
|
rawStart(t) {
|
|
1465
|
-
let n = ve(
|
|
1466
|
-
return t && (n =
|
|
1461
|
+
let n = ve(Cn(this.tzAdjustedDate(t)));
|
|
1462
|
+
return t && (n = P(n, t)), n;
|
|
1467
1463
|
}
|
|
1468
1464
|
}
|
|
1469
|
-
class
|
|
1465
|
+
class hi extends S {
|
|
1470
1466
|
rawEnd(t) {
|
|
1471
1467
|
let n = xe(this.tzAdjustedDate(t));
|
|
1472
|
-
return t && (n =
|
|
1468
|
+
return t && (n = P(n, t)), n;
|
|
1473
1469
|
}
|
|
1474
1470
|
rawStart(t) {
|
|
1475
|
-
let n = xe(
|
|
1476
|
-
return t && (n =
|
|
1471
|
+
let n = xe(An(this.tzAdjustedDate(t)));
|
|
1472
|
+
return t && (n = P(n, t)), n;
|
|
1477
1473
|
}
|
|
1478
1474
|
}
|
|
1479
|
-
class
|
|
1475
|
+
class yi extends S {
|
|
1480
1476
|
rawEnd(t) {
|
|
1481
1477
|
let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
1482
|
-
return t && (n =
|
|
1478
|
+
return t && (n = P(n, t)), n;
|
|
1483
1479
|
}
|
|
1484
1480
|
rawStart(t) {
|
|
1485
1481
|
let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
|
|
1486
|
-
return t && (n =
|
|
1482
|
+
return t && (n = P(n, t)), n;
|
|
1487
1483
|
}
|
|
1488
1484
|
}
|
|
1489
|
-
|
|
1490
|
-
key:
|
|
1485
|
+
f.FIFTEEN_MIN, new S({
|
|
1486
|
+
key: f.FIFTEEN_MIN,
|
|
1491
1487
|
display: "Last 15 minutes",
|
|
1492
1488
|
timeframeText: "15 minutes",
|
|
1493
1489
|
timeframeLength: () => 60 * 15,
|
|
@@ -1497,8 +1493,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1497
1493
|
fineGrainedDefaultGranularity: "thirtySecondly",
|
|
1498
1494
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1499
1495
|
allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
|
|
1500
|
-
}),
|
|
1501
|
-
key:
|
|
1496
|
+
}), f.ONE_HOUR, new S({
|
|
1497
|
+
key: f.ONE_HOUR,
|
|
1502
1498
|
display: "Last hour",
|
|
1503
1499
|
timeframeText: "One hour",
|
|
1504
1500
|
timeframeLength: () => 60 * 60 * 1,
|
|
@@ -1508,8 +1504,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1508
1504
|
fineGrainedDefaultGranularity: "minutely",
|
|
1509
1505
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1510
1506
|
allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
|
|
1511
|
-
}),
|
|
1512
|
-
key:
|
|
1507
|
+
}), f.SIX_HOUR, new S({
|
|
1508
|
+
key: f.SIX_HOUR,
|
|
1513
1509
|
display: "Last 6 hours",
|
|
1514
1510
|
timeframeText: "6 hours",
|
|
1515
1511
|
timeframeLength: () => 60 * 60 * 6,
|
|
@@ -1519,8 +1515,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1519
1515
|
fineGrainedDefaultGranularity: "fiveMinutely",
|
|
1520
1516
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1521
1517
|
allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1522
|
-
}),
|
|
1523
|
-
key:
|
|
1518
|
+
}), f.TWELVE_HOUR, new S({
|
|
1519
|
+
key: f.TWELVE_HOUR,
|
|
1524
1520
|
display: "Last 12 hours",
|
|
1525
1521
|
timeframeText: "12 hours",
|
|
1526
1522
|
timeframeLength: () => 60 * 60 * 12,
|
|
@@ -1530,8 +1526,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1530
1526
|
fineGrainedDefaultGranularity: "tenMinutely",
|
|
1531
1527
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1532
1528
|
allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1533
|
-
}),
|
|
1534
|
-
key:
|
|
1529
|
+
}), f.ONE_DAY, new S({
|
|
1530
|
+
key: f.ONE_DAY,
|
|
1535
1531
|
display: "Last 24 hours",
|
|
1536
1532
|
timeframeText: "24 hours",
|
|
1537
1533
|
timeframeLength: () => 60 * 60 * 24,
|
|
@@ -1541,8 +1537,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1541
1537
|
fineGrainedDefaultGranularity: "thirtyMinutely",
|
|
1542
1538
|
allowedTiers: ["free", "trial", "plus", "enterprise"],
|
|
1543
1539
|
allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
|
|
1544
|
-
}),
|
|
1545
|
-
key:
|
|
1540
|
+
}), f.SEVEN_DAY, new S({
|
|
1541
|
+
key: f.SEVEN_DAY,
|
|
1546
1542
|
display: "Last 7 days",
|
|
1547
1543
|
timeframeText: "7 days",
|
|
1548
1544
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -1552,8 +1548,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1552
1548
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1553
1549
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1554
1550
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1555
|
-
}),
|
|
1556
|
-
key:
|
|
1551
|
+
}), f.THIRTY_DAY, new S({
|
|
1552
|
+
key: f.THIRTY_DAY,
|
|
1557
1553
|
display: "Last 30 days",
|
|
1558
1554
|
timeframeText: "30 days",
|
|
1559
1555
|
timeframeLength: () => 60 * 60 * 24 * 30,
|
|
@@ -1563,8 +1559,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1563
1559
|
fineGrainedDefaultGranularity: "twelveHourly",
|
|
1564
1560
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1565
1561
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1566
|
-
}),
|
|
1567
|
-
key:
|
|
1562
|
+
}), f.NINETY_DAY, new S({
|
|
1563
|
+
key: f.NINETY_DAY,
|
|
1568
1564
|
display: "Last 90 days",
|
|
1569
1565
|
timeframeText: "90 days",
|
|
1570
1566
|
timeframeLength: () => 60 * 60 * 24 * 90,
|
|
@@ -1574,8 +1570,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1574
1570
|
fineGrainedDefaultGranularity: "daily",
|
|
1575
1571
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1576
1572
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1577
|
-
}),
|
|
1578
|
-
key:
|
|
1573
|
+
}), f.ONE_HUNDRED_EIGHTY_DAY, new S({
|
|
1574
|
+
key: f.ONE_HUNDRED_EIGHTY_DAY,
|
|
1579
1575
|
display: "Last 180 days",
|
|
1580
1576
|
timeframeText: "180 days",
|
|
1581
1577
|
timeframeLength: () => 60 * 60 * 24 * 180,
|
|
@@ -1585,8 +1581,8 @@ p.FIFTEEN_MIN, new D({
|
|
|
1585
1581
|
fineGrainedDefaultGranularity: "daily",
|
|
1586
1582
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1587
1583
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1588
|
-
}),
|
|
1589
|
-
key:
|
|
1584
|
+
}), f.ONE_YEAR, new S({
|
|
1585
|
+
key: f.ONE_YEAR,
|
|
1590
1586
|
display: "Last 365 days",
|
|
1591
1587
|
timeframeText: "365 days",
|
|
1592
1588
|
timeframeLength: () => 60 * 60 * 24 * 365,
|
|
@@ -1596,13 +1592,13 @@ p.FIFTEEN_MIN, new D({
|
|
|
1596
1592
|
fineGrainedDefaultGranularity: "daily",
|
|
1597
1593
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
1598
1594
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
1599
|
-
}),
|
|
1600
|
-
key:
|
|
1595
|
+
}), f.CURRENT_WEEK, new ui({
|
|
1596
|
+
key: f.CURRENT_WEEK,
|
|
1601
1597
|
display: "This week",
|
|
1602
1598
|
timeframeText: "Week",
|
|
1603
1599
|
timeframeLength: () => {
|
|
1604
|
-
const e =
|
|
1605
|
-
return (
|
|
1600
|
+
const e = qe(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1601
|
+
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1606
1602
|
},
|
|
1607
1603
|
defaultResponseGranularity: "daily",
|
|
1608
1604
|
dataGranularity: "daily",
|
|
@@ -1610,44 +1606,44 @@ p.FIFTEEN_MIN, new D({
|
|
|
1610
1606
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1611
1607
|
allowedTiers: ["plus", "enterprise"],
|
|
1612
1608
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1613
|
-
}),
|
|
1614
|
-
key:
|
|
1609
|
+
}), f.CURRENT_MONTH, new ci({
|
|
1610
|
+
key: f.CURRENT_MONTH,
|
|
1615
1611
|
display: "This month",
|
|
1616
1612
|
timeframeText: "Month",
|
|
1617
1613
|
timeframeLength: () => {
|
|
1618
1614
|
const e = xe(/* @__PURE__ */ new Date());
|
|
1619
|
-
return (
|
|
1615
|
+
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1620
1616
|
},
|
|
1621
1617
|
defaultResponseGranularity: "daily",
|
|
1622
1618
|
dataGranularity: "daily",
|
|
1623
1619
|
isRelative: !1,
|
|
1624
1620
|
allowedTiers: ["plus", "enterprise"]
|
|
1625
|
-
}),
|
|
1626
|
-
key:
|
|
1621
|
+
}), f.CURRENT_QUARTER, new di({
|
|
1622
|
+
key: f.CURRENT_QUARTER,
|
|
1627
1623
|
display: "This quarter",
|
|
1628
1624
|
timeframeText: "Quarter",
|
|
1629
1625
|
timeframeLength: () => {
|
|
1630
1626
|
const e = ve(/* @__PURE__ */ new Date());
|
|
1631
|
-
return (
|
|
1627
|
+
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1632
1628
|
},
|
|
1633
1629
|
defaultResponseGranularity: "daily",
|
|
1634
1630
|
dataGranularity: "daily",
|
|
1635
1631
|
isRelative: !1,
|
|
1636
1632
|
allowedTiers: ["plus", "enterprise"]
|
|
1637
|
-
}),
|
|
1638
|
-
key:
|
|
1633
|
+
}), f.CURRENT_YEAR, new mi({
|
|
1634
|
+
key: f.CURRENT_YEAR,
|
|
1639
1635
|
display: "This year",
|
|
1640
1636
|
timeframeText: "Year",
|
|
1641
1637
|
timeframeLength: () => {
|
|
1642
1638
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
|
|
1643
|
-
return (
|
|
1639
|
+
return (Ve(Ye(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
1644
1640
|
},
|
|
1645
1641
|
defaultResponseGranularity: "daily",
|
|
1646
1642
|
dataGranularity: "daily",
|
|
1647
1643
|
isRelative: !1,
|
|
1648
1644
|
allowedTiers: ["plus", "enterprise"]
|
|
1649
|
-
}),
|
|
1650
|
-
key:
|
|
1645
|
+
}), f.PREVIOUS_WEEK, new fi({
|
|
1646
|
+
key: f.PREVIOUS_WEEK,
|
|
1651
1647
|
display: "Previous week",
|
|
1652
1648
|
timeframeText: "Week",
|
|
1653
1649
|
timeframeLength: () => 60 * 60 * 24 * 7,
|
|
@@ -1657,103 +1653,98 @@ p.FIFTEEN_MIN, new D({
|
|
|
1657
1653
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
1658
1654
|
allowedTiers: ["plus", "enterprise"],
|
|
1659
1655
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
1660
|
-
}),
|
|
1661
|
-
key:
|
|
1656
|
+
}), f.PREVIOUS_MONTH, new hi({
|
|
1657
|
+
key: f.PREVIOUS_MONTH,
|
|
1662
1658
|
display: "Previous month",
|
|
1663
1659
|
timeframeText: "Month",
|
|
1664
1660
|
timeframeLength: () => {
|
|
1665
1661
|
let e = 0;
|
|
1666
|
-
const t = xe(/* @__PURE__ */ new Date()), n = xe(
|
|
1667
|
-
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e =
|
|
1662
|
+
const t = xe(/* @__PURE__ */ new Date()), n = xe(An(/* @__PURE__ */ new Date()));
|
|
1663
|
+
return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = wn(t, n)), 60 * 60 * 24 * Ba((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + un(e);
|
|
1668
1664
|
},
|
|
1669
1665
|
defaultResponseGranularity: "daily",
|
|
1670
1666
|
dataGranularity: "daily",
|
|
1671
1667
|
isRelative: !1,
|
|
1672
1668
|
allowedTiers: ["plus", "enterprise"]
|
|
1673
|
-
}),
|
|
1674
|
-
key:
|
|
1669
|
+
}), f.PREVIOUS_QUARTER, new pi({
|
|
1670
|
+
key: f.PREVIOUS_QUARTER,
|
|
1675
1671
|
display: "Previous quarter",
|
|
1676
1672
|
timeframeText: "Quarter",
|
|
1677
1673
|
timeframeLength: () => {
|
|
1678
|
-
const e = ve(/* @__PURE__ */ new Date()), t = ve(
|
|
1674
|
+
const e = ve(/* @__PURE__ */ new Date()), t = ve(Cn(/* @__PURE__ */ new Date()));
|
|
1679
1675
|
return (e.getTime() - t.getTime()) / 1e3;
|
|
1680
1676
|
},
|
|
1681
1677
|
defaultResponseGranularity: "daily",
|
|
1682
1678
|
dataGranularity: "daily",
|
|
1683
1679
|
isRelative: !1,
|
|
1684
1680
|
allowedTiers: ["plus", "enterprise"]
|
|
1685
|
-
}),
|
|
1686
|
-
key:
|
|
1681
|
+
}), f.PREVIOUS_YEAR, new yi({
|
|
1682
|
+
key: f.PREVIOUS_YEAR,
|
|
1687
1683
|
display: "Previous year",
|
|
1688
1684
|
timeframeText: "Year",
|
|
1689
1685
|
timeframeLength: () => {
|
|
1690
1686
|
const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
1691
1687
|
let n = 0;
|
|
1692
|
-
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n =
|
|
1688
|
+
return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = wn(e, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + un(n);
|
|
1693
1689
|
},
|
|
1694
1690
|
defaultResponseGranularity: "daily",
|
|
1695
1691
|
dataGranularity: "daily",
|
|
1696
1692
|
isRelative: !1,
|
|
1697
1693
|
allowedTiers: ["plus", "enterprise"]
|
|
1698
1694
|
});
|
|
1699
|
-
function
|
|
1700
|
-
return
|
|
1695
|
+
function wn(e, t) {
|
|
1696
|
+
return Ha(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
1701
1697
|
}
|
|
1702
|
-
|
|
1703
|
-
new Map(
|
|
1704
|
-
|
|
1705
|
-
(
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
var fi = bn.exports;
|
|
1732
|
-
const vt = /* @__PURE__ */ ai(fi);
|
|
1733
|
-
var gn;
|
|
1734
|
-
const pi = typeof document < "u" && ((gn = document.documentElement) == null ? void 0 : gn.lang) || "en-US", xt = new Intl.NumberFormat(pi);
|
|
1735
|
-
function hi({
|
|
1698
|
+
f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.FIFTEEN_MIN, f.ONE_HOUR, f.SIX_HOUR, f.TWELVE_HOUR, f.ONE_DAY, f.SEVEN_DAY, f.THIRTY_DAY, f.NINETY_DAY, f.ONE_HUNDRED_EIGHTY_DAY, f.ONE_YEAR, f.CURRENT_WEEK, f.CURRENT_MONTH, f.CURRENT_QUARTER, f.CURRENT_YEAR, f.PREVIOUS_WEEK, f.PREVIOUS_MONTH, f.PREVIOUS_QUARTER, f.PREVIOUS_YEAR;
|
|
1699
|
+
new Map(Ot.map((e) => [e.code, { code: e.code, name: e.name }]));
|
|
1700
|
+
const vn = 1e3, _i = 1e4, xn = 1e6, Tn = 1e9, Fn = 1e12, We = (e, t) => {
|
|
1701
|
+
if (t.separator === !1 || e < 1e3)
|
|
1702
|
+
return e.toString();
|
|
1703
|
+
const n = typeof t.separator == "string" ? t.separator : ",", a = [];
|
|
1704
|
+
return Math.round(e).toString().split("").reverse().forEach((i, o) => {
|
|
1705
|
+
o && o % 3 === 0 && a.push(n), a.push(i);
|
|
1706
|
+
}), a.reverse().join("");
|
|
1707
|
+
}, Re = (e, t, n) => {
|
|
1708
|
+
const a = e / t, i = n.round ? "round" : "floor";
|
|
1709
|
+
if (n.decimal === !1)
|
|
1710
|
+
return Math[i](a).toString();
|
|
1711
|
+
let o;
|
|
1712
|
+
n.precision ? o = a : o = a < 10 ? Math[i](a * 10) / 10 : Math[i](a);
|
|
1713
|
+
let l = o.toString();
|
|
1714
|
+
return typeof n.decimal == "string" && (l = l.replace(".", n.decimal)), l;
|
|
1715
|
+
};
|
|
1716
|
+
function Ze(e, t = {}) {
|
|
1717
|
+
let n;
|
|
1718
|
+
const a = e < 0;
|
|
1719
|
+
a && (e = Math.abs(e)), t.precision && (e = parseFloat(e.toPrecision(t.precision)));
|
|
1720
|
+
const i = t.min10k ? _i : vn;
|
|
1721
|
+
return e < i || t.precision && t.precision > Math.log10(e) ? n = We(Re(e, 1, t), t) : e < xn ? n = `${Re(e, vn, t)}k` : e < Tn ? n = `${Re(e, xn, t)}m` : e < Fn ? n = `${We(Re(e, Tn, t), t)}b` : n = `${We(Re(e, Fn, t), t)}t`, a && (n = `-${n}`), t.capital && (n = n.toUpperCase()), t.prefix && (n = `${t.prefix}${n}`), t.suffix && (n = `${n}${t.suffix}`), n;
|
|
1722
|
+
}
|
|
1723
|
+
Ze.addCommas = We;
|
|
1724
|
+
var Mn;
|
|
1725
|
+
const gi = typeof document < "u" && ((Mn = document.documentElement) == null ? void 0 : Mn.lang) || "en-US", Ft = new Intl.NumberFormat(gi);
|
|
1726
|
+
function wi({
|
|
1736
1727
|
i18n: e
|
|
1737
1728
|
}) {
|
|
1738
1729
|
const t = (a, i) => {
|
|
1739
1730
|
if (isNaN(a))
|
|
1740
1731
|
return "0 B";
|
|
1741
|
-
const o = i ? Math.pow(2, 50) : 1e15,
|
|
1732
|
+
const o = i ? Math.pow(2, 50) : 1e15, l = i ? Math.pow(2, 40) : 1e12, d = i ? Math.pow(2, 30) : 1e9, m = i ? Math.pow(2, 20) : 1e6, h = i ? Math.pow(2, 10) : 1e3;
|
|
1742
1733
|
let c;
|
|
1743
1734
|
return a >= o ? c = e.formatNumber(
|
|
1744
1735
|
Number.parseFloat((a / o).toPrecision(3)),
|
|
1745
1736
|
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
1746
|
-
) : a >=
|
|
1747
|
-
Number.parseFloat((a /
|
|
1737
|
+
) : a >= l ? c = e.formatNumber(
|
|
1738
|
+
Number.parseFloat((a / l).toPrecision(3)),
|
|
1748
1739
|
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
1740
|
+
) : a >= d ? c = e.formatNumber(
|
|
1741
|
+
Number.parseFloat((a / d).toPrecision(3)),
|
|
1742
|
+
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
1749
1743
|
) : a >= m ? c = e.formatNumber(
|
|
1750
1744
|
Number.parseFloat((a / m).toPrecision(3)),
|
|
1751
|
-
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
1752
|
-
) : a >= f ? c = e.formatNumber(
|
|
1753
|
-
Number.parseFloat((a / f).toPrecision(3)),
|
|
1754
1745
|
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
1755
|
-
) : a >=
|
|
1756
|
-
Number.parseFloat((a /
|
|
1746
|
+
) : a >= h ? c = e.formatNumber(
|
|
1747
|
+
Number.parseFloat((a / h).toPrecision(3)),
|
|
1757
1748
|
{ style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
|
|
1758
1749
|
) : c = e.formatNumber(
|
|
1759
1750
|
Number.parseFloat(a.toPrecision(3)),
|
|
@@ -1762,35 +1753,35 @@ function hi({
|
|
|
1762
1753
|
}, 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))}`;
|
|
1763
1754
|
return { formatUnit: (a, i, {
|
|
1764
1755
|
isBytes1024: o = !1,
|
|
1765
|
-
currency:
|
|
1766
|
-
approximate:
|
|
1767
|
-
translateUnit:
|
|
1756
|
+
currency: l = "USD",
|
|
1757
|
+
approximate: d = !1,
|
|
1758
|
+
translateUnit: m = (h) => h
|
|
1768
1759
|
} = {}) => {
|
|
1769
|
-
const
|
|
1760
|
+
const h = m(i, a);
|
|
1770
1761
|
switch (i) {
|
|
1771
1762
|
case "bytes":
|
|
1772
1763
|
return t(a, o);
|
|
1773
1764
|
case "usd":
|
|
1774
|
-
return n(a,
|
|
1765
|
+
return n(a, l);
|
|
1775
1766
|
case "ms":
|
|
1776
1767
|
case "count/minute":
|
|
1777
1768
|
case "token count":
|
|
1778
1769
|
case "count":
|
|
1779
1770
|
default:
|
|
1780
|
-
return isNaN(a) ? `${a}` :
|
|
1771
|
+
return isNaN(a) ? `${a}` : d ? `${Ze(a, { capital: !0 })} ${h}` : a >= 0.01 ? `${Ft.format(Number.parseFloat(a.toFixed(2)))} ${h}` : `${Number.parseFloat(a.toPrecision(4))} ${h}`;
|
|
1781
1772
|
}
|
|
1782
1773
|
}, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
|
|
1783
|
-
isBytes1024:
|
|
1784
|
-
currency:
|
|
1785
|
-
approximate:
|
|
1786
|
-
translateUnit:
|
|
1774
|
+
isBytes1024: l = !1,
|
|
1775
|
+
currency: d = "USD",
|
|
1776
|
+
approximate: m = !1,
|
|
1777
|
+
translateUnit: h = (c) => c
|
|
1787
1778
|
} = {}) => {
|
|
1788
|
-
const c =
|
|
1779
|
+
const c = h(o, i);
|
|
1789
1780
|
switch (o) {
|
|
1790
1781
|
case "bytes":
|
|
1791
|
-
return `${t(a,
|
|
1782
|
+
return `${t(a, l)} - ${t(i, l)}`;
|
|
1792
1783
|
case "usd":
|
|
1793
|
-
return `${n(a,
|
|
1784
|
+
return `${n(a, d)} - ${n(i, d)}`;
|
|
1794
1785
|
case "ms":
|
|
1795
1786
|
case "count/minute":
|
|
1796
1787
|
case "token count":
|
|
@@ -1798,111 +1789,111 @@ function hi({
|
|
|
1798
1789
|
default:
|
|
1799
1790
|
if (isNaN(a) || isNaN(i))
|
|
1800
1791
|
return `${a} - ${i}`;
|
|
1801
|
-
if (
|
|
1802
|
-
return `${
|
|
1792
|
+
if (m)
|
|
1793
|
+
return `${Ze(a, { capital: !0 })} - ${Ze(i, { capital: !0 })} ${c}`;
|
|
1803
1794
|
}
|
|
1804
|
-
const
|
|
1805
|
-
return `${
|
|
1795
|
+
const x = a >= 0.01 ? `${Ft.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, F = i >= 0.01 ? `${Ft.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
|
|
1796
|
+
return `${x} - ${F} ${c}`;
|
|
1806
1797
|
} };
|
|
1807
1798
|
}
|
|
1808
|
-
const
|
|
1799
|
+
const Oe = "#e0e4ea", vi = "#828a9e", xi = "32px", Sn = 5, Mt = [
|
|
1809
1800
|
"#00819d",
|
|
1810
1801
|
"#00abd2",
|
|
1811
1802
|
"#00c8f4",
|
|
1812
1803
|
"#67e3ff",
|
|
1813
1804
|
"#b3f1ff"
|
|
1814
|
-
],
|
|
1805
|
+
], Ti = (e, t) => {
|
|
1815
1806
|
const n = e.length;
|
|
1816
1807
|
if (!n)
|
|
1817
1808
|
return NaN;
|
|
1818
1809
|
const a = (n - 1) * t, i = Math.floor(a), o = Math.ceil(a);
|
|
1819
1810
|
return i === o ? e[i] : e[i] + (a - i) * (e[o] - e[i]);
|
|
1820
|
-
},
|
|
1811
|
+
}, St = (e, t) => {
|
|
1821
1812
|
if (e.length === 0)
|
|
1822
1813
|
return [];
|
|
1823
|
-
const n = e.filter((
|
|
1824
|
-
return Array.from({ length: t }, (
|
|
1814
|
+
const n = e.filter((d) => d > 0).map(Math.log).sort((d, m) => d - m), a = Math.min(...n), o = (Math.max(...n) - a) / t;
|
|
1815
|
+
return Array.from({ length: t }, (d, m) => a + m * o).map((d) => Math.exp(d)).reverse();
|
|
1825
1816
|
};
|
|
1826
|
-
function
|
|
1817
|
+
function Fi({
|
|
1827
1818
|
countryMetrics: e,
|
|
1828
1819
|
metric: t,
|
|
1829
1820
|
unit: n
|
|
1830
1821
|
}) {
|
|
1831
|
-
const { formatMetric: a, formatMetricRange: i } =
|
|
1822
|
+
const { formatMetric: a, formatMetricRange: i } = Le.useMetricFormat({ unit: n }), o = A(() => {
|
|
1832
1823
|
const g = { ...e.value };
|
|
1833
|
-
for (const
|
|
1834
|
-
|
|
1824
|
+
for (const T of Object.keys(g))
|
|
1825
|
+
Ot.find((k) => k.code === T) || delete g[T];
|
|
1835
1826
|
return g;
|
|
1836
|
-
}),
|
|
1827
|
+
}), l = A(() => Object.values(o.value)), d = A(() => Object.keys(o.value).length), m = A(() => d.value < Sn - 1 ? d.value : Sn), h = A(() => {
|
|
1837
1828
|
var g;
|
|
1838
1829
|
return !((g = t.value) != null && g.includes("latency"));
|
|
1839
1830
|
}), c = A(() => {
|
|
1840
1831
|
const g = [];
|
|
1841
|
-
if (
|
|
1842
|
-
const
|
|
1832
|
+
if (l.value.length > 10) {
|
|
1833
|
+
const T = [...l.value].sort((D, Me) => D - Me), k = Ti(T, 0.75), H = l.value.filter((D) => D >= k), B = l.value.filter((D) => D < k), b = St(H, 3), ie = St(B, 2);
|
|
1843
1834
|
return g.push(...b, ...ie), g;
|
|
1844
1835
|
}
|
|
1845
|
-
return
|
|
1846
|
-
}),
|
|
1847
|
-
color:
|
|
1848
|
-
range: a(
|
|
1849
|
-
approximate:
|
|
1836
|
+
return St(l.value, m.value);
|
|
1837
|
+
}), x = A(() => l.value.length === 1 ? [{
|
|
1838
|
+
color: F(l.value[0]),
|
|
1839
|
+
range: a(l.value[0], {
|
|
1840
|
+
approximate: h.value,
|
|
1850
1841
|
showUnit: !n.value.includes("count")
|
|
1851
1842
|
}).trim()
|
|
1852
|
-
}] : c.value.map((g,
|
|
1853
|
-
const
|
|
1843
|
+
}] : c.value.map((g, T) => {
|
|
1844
|
+
const k = T === 0 ? Math.max(...c.value) : c.value[T - 1], H = g, B = k;
|
|
1854
1845
|
let b = "";
|
|
1855
|
-
return
|
|
1846
|
+
return T === 0 ? b = `> ${a(H, {
|
|
1856
1847
|
showUnit: !n.value.includes("count"),
|
|
1857
|
-
approximate:
|
|
1858
|
-
})}`.trim() :
|
|
1848
|
+
approximate: h.value
|
|
1849
|
+
})}`.trim() : T === c.value.length - 1 ? b = `< ${a(B, {
|
|
1859
1850
|
showUnit: !n.value.includes("count"),
|
|
1860
|
-
approximate:
|
|
1851
|
+
approximate: h.value
|
|
1861
1852
|
})}`.trim() : b = i(H, B, {
|
|
1862
1853
|
showUnit: !n.value.includes("count"),
|
|
1863
|
-
approximate:
|
|
1854
|
+
approximate: h.value
|
|
1864
1855
|
}).trim(), {
|
|
1865
|
-
color:
|
|
1856
|
+
color: F(H),
|
|
1866
1857
|
range: b
|
|
1867
1858
|
};
|
|
1868
|
-
})),
|
|
1859
|
+
})), F = (g) => {
|
|
1869
1860
|
if (g === 0)
|
|
1870
|
-
return
|
|
1871
|
-
const
|
|
1872
|
-
return
|
|
1861
|
+
return Oe;
|
|
1862
|
+
const T = c.value.findIndex((k) => g >= k);
|
|
1863
|
+
return T === -1 ? Mt[Mt.length - 1] : Mt[T] ?? Oe;
|
|
1873
1864
|
};
|
|
1874
1865
|
return {
|
|
1875
|
-
getColor:
|
|
1876
|
-
legendData:
|
|
1866
|
+
getColor: F,
|
|
1867
|
+
legendData: x,
|
|
1877
1868
|
scale: c
|
|
1878
1869
|
};
|
|
1879
1870
|
}
|
|
1880
|
-
function
|
|
1871
|
+
function Mi({
|
|
1881
1872
|
unit: e
|
|
1882
1873
|
}) {
|
|
1883
|
-
const { i18n: t } =
|
|
1874
|
+
const { i18n: t } = Le.useI18n(), { formatUnit: n, formatRange: a } = wi({ i18n: t });
|
|
1884
1875
|
return {
|
|
1885
|
-
formatMetric: (
|
|
1886
|
-
showUnit:
|
|
1887
|
-
approximate:
|
|
1888
|
-
} = {}) => n(
|
|
1889
|
-
approximate:
|
|
1890
|
-
translateUnit: (
|
|
1876
|
+
formatMetric: (l, {
|
|
1877
|
+
showUnit: d = !0,
|
|
1878
|
+
approximate: m = !1
|
|
1879
|
+
} = {}) => n(l, e.value, {
|
|
1880
|
+
approximate: m,
|
|
1881
|
+
translateUnit: (h) => d ? t.t(`metricUnits.${h}`, { plural: l > 1 ? "s" : "" }) : ""
|
|
1891
1882
|
}),
|
|
1892
|
-
formatMetricRange: (
|
|
1893
|
-
showUnit:
|
|
1894
|
-
approximate:
|
|
1895
|
-
} = {}) => a(
|
|
1896
|
-
approximate:
|
|
1897
|
-
translateUnit: (c) =>
|
|
1883
|
+
formatMetricRange: (l, d, {
|
|
1884
|
+
showUnit: m = !0,
|
|
1885
|
+
approximate: h = !1
|
|
1886
|
+
} = {}) => a(l, d, e.value, {
|
|
1887
|
+
approximate: h,
|
|
1888
|
+
translateUnit: (c) => m ? t.t(`metricUnits.${c}`, { plural: d > 1 ? "s" : "" }) : ""
|
|
1898
1889
|
})
|
|
1899
1890
|
};
|
|
1900
1891
|
}
|
|
1901
|
-
const
|
|
1902
|
-
useI18n:
|
|
1903
|
-
useLegendScale:
|
|
1904
|
-
useMetricFormat:
|
|
1905
|
-
},
|
|
1892
|
+
const Le = {
|
|
1893
|
+
useI18n: xa,
|
|
1894
|
+
useLegendScale: Fi,
|
|
1895
|
+
useMetricFormat: Mi
|
|
1896
|
+
}, Si = "FeatureCollection", Di = [
|
|
1906
1897
|
{
|
|
1907
1898
|
type: "Feature",
|
|
1908
1899
|
properties: {
|
|
@@ -4334,14 +4325,14 @@ const Oe = {
|
|
|
4334
4325
|
]
|
|
4335
4326
|
}
|
|
4336
4327
|
}
|
|
4337
|
-
],
|
|
4338
|
-
type:
|
|
4339
|
-
features:
|
|
4328
|
+
], Ni = {
|
|
4329
|
+
type: Si,
|
|
4330
|
+
features: Di
|
|
4340
4331
|
};
|
|
4341
|
-
function
|
|
4332
|
+
function ki(e) {
|
|
4342
4333
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4343
4334
|
}
|
|
4344
|
-
var
|
|
4335
|
+
var Ri = Oi, Je, Fe, C, Xe, nt, Ei = [
|
|
4345
4336
|
"Point",
|
|
4346
4337
|
"MultiPoint",
|
|
4347
4338
|
"LineString",
|
|
@@ -4350,115 +4341,115 @@ var Si = ki, Ze, Me, P, qe, Xe, Di = [
|
|
|
4350
4341
|
"MultiPolygon",
|
|
4351
4342
|
"GeometryCollection"
|
|
4352
4343
|
];
|
|
4353
|
-
function
|
|
4354
|
-
|
|
4355
|
-
var t = e.readFields(
|
|
4356
|
-
return
|
|
4344
|
+
function Oi(e) {
|
|
4345
|
+
Xe = 2, nt = Math.pow(10, 6), C = null, Je = [], Fe = [];
|
|
4346
|
+
var t = e.readFields(Li, {});
|
|
4347
|
+
return Je = null, t;
|
|
4357
4348
|
}
|
|
4358
|
-
function
|
|
4359
|
-
e === 1 ?
|
|
4349
|
+
function Li(e, t, n) {
|
|
4350
|
+
e === 1 ? Je.push(n.readString()) : e === 2 ? Xe = n.readVarint() : e === 3 ? nt = Math.pow(10, n.readVarint()) : e === 4 ? Gi(n, t) : e === 5 ? Hn(n, t) : e === 6 && Gt(n, t);
|
|
4360
4351
|
}
|
|
4361
|
-
function
|
|
4362
|
-
return t.type = "FeatureCollection", t.features = [], e.readMessage(
|
|
4352
|
+
function Gi(e, t) {
|
|
4353
|
+
return t.type = "FeatureCollection", t.features = [], e.readMessage(Ui, t);
|
|
4363
4354
|
}
|
|
4364
|
-
function
|
|
4355
|
+
function Hn(e, t) {
|
|
4365
4356
|
t.type = "Feature";
|
|
4366
|
-
var n = e.readMessage(
|
|
4357
|
+
var n = e.readMessage(bi, t);
|
|
4367
4358
|
return "geometry" in n || (n.geometry = null), n;
|
|
4368
4359
|
}
|
|
4369
|
-
function
|
|
4370
|
-
return t.type = "Point", e.readMessage(
|
|
4360
|
+
function Gt(e, t) {
|
|
4361
|
+
return t.type = "Point", e.readMessage(Ii, t);
|
|
4371
4362
|
}
|
|
4372
|
-
function
|
|
4373
|
-
e === 1 ? t.features.push(
|
|
4363
|
+
function Ui(e, t, n) {
|
|
4364
|
+
e === 1 ? t.features.push(Hn(n, {})) : e === 13 ? Fe.push(Ut(n)) : e === 15 && et(n, t);
|
|
4374
4365
|
}
|
|
4375
|
-
function
|
|
4376
|
-
e === 1 ? t.geometry =
|
|
4366
|
+
function bi(e, t, n) {
|
|
4367
|
+
e === 1 ? t.geometry = Gt(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? Fe.push(Ut(n)) : e === 14 ? t.properties = et(n, {}) : e === 15 && et(n, t);
|
|
4377
4368
|
}
|
|
4378
|
-
function
|
|
4379
|
-
e === 1 ? t.type =
|
|
4369
|
+
function Ii(e, t, n) {
|
|
4370
|
+
e === 1 ? t.type = Ei[n.readVarint()] : e === 2 ? C = n.readPackedVarint() : e === 3 ? Ai(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Gt(n, {}))) : e === 13 ? Fe.push(Ut(n)) : e === 15 && et(n, t);
|
|
4380
4371
|
}
|
|
4381
|
-
function
|
|
4382
|
-
n === "Point" ? e.coordinates =
|
|
4372
|
+
function Ai(e, t, n) {
|
|
4373
|
+
n === "Point" ? e.coordinates = Ci(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = Dn(t) : n === "MultiLineString" ? e.coordinates = Nn(t) : n === "Polygon" ? e.coordinates = Nn(t, !0) : n === "MultiPolygon" && (e.coordinates = Pi(t));
|
|
4383
4374
|
}
|
|
4384
|
-
function
|
|
4375
|
+
function Ut(e) {
|
|
4385
4376
|
for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
|
|
4386
4377
|
var a = e.readVarint(), i = a >> 3;
|
|
4387
4378
|
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()));
|
|
4388
4379
|
}
|
|
4389
4380
|
return n;
|
|
4390
4381
|
}
|
|
4391
|
-
function
|
|
4392
|
-
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[
|
|
4393
|
-
return
|
|
4382
|
+
function et(e, t) {
|
|
4383
|
+
for (var n = e.readVarint() + e.pos; e.pos < n; ) t[Je[e.readVarint()]] = Fe[e.readVarint()];
|
|
4384
|
+
return Fe = [], t;
|
|
4394
4385
|
}
|
|
4395
|
-
function
|
|
4396
|
-
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() /
|
|
4386
|
+
function Ci(e) {
|
|
4387
|
+
for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / nt);
|
|
4397
4388
|
return n;
|
|
4398
4389
|
}
|
|
4399
|
-
function
|
|
4400
|
-
var i = 0, o = [],
|
|
4401
|
-
for (
|
|
4390
|
+
function Ue(e, t, n, a) {
|
|
4391
|
+
var i = 0, o = [], l, d, m = [];
|
|
4392
|
+
for (d = 0; d < Xe; d++) m[d] = 0;
|
|
4402
4393
|
for (; n ? i < n : e.pos < t; ) {
|
|
4403
|
-
for (
|
|
4404
|
-
|
|
4405
|
-
o.push(
|
|
4394
|
+
for (l = [], d = 0; d < Xe; d++)
|
|
4395
|
+
m[d] += e.readSVarint(), l[d] = m[d] / nt;
|
|
4396
|
+
o.push(l), i++;
|
|
4406
4397
|
}
|
|
4407
4398
|
return a && o.push(o[0]), o;
|
|
4408
4399
|
}
|
|
4409
|
-
function
|
|
4410
|
-
return
|
|
4400
|
+
function Dn(e) {
|
|
4401
|
+
return Ue(e, e.readVarint() + e.pos);
|
|
4411
4402
|
}
|
|
4412
|
-
function
|
|
4403
|
+
function Nn(e, t) {
|
|
4413
4404
|
var n = e.readVarint() + e.pos;
|
|
4414
|
-
if (!
|
|
4415
|
-
for (var a = [], i = 0; i <
|
|
4416
|
-
return
|
|
4405
|
+
if (!C) return [Ue(e, n, null, t)];
|
|
4406
|
+
for (var a = [], i = 0; i < C.length; i++) a.push(Ue(e, n, C[i], t));
|
|
4407
|
+
return C = null, a;
|
|
4417
4408
|
}
|
|
4418
|
-
function
|
|
4409
|
+
function Pi(e) {
|
|
4419
4410
|
var t = e.readVarint() + e.pos;
|
|
4420
|
-
if (!
|
|
4421
|
-
for (var n = [], a = 1, i = 0; i <
|
|
4422
|
-
for (var o = [],
|
|
4423
|
-
a +=
|
|
4411
|
+
if (!C) return [[Ue(e, t, null, !0)]];
|
|
4412
|
+
for (var n = [], a = 1, i = 0; i < C[0]; i++) {
|
|
4413
|
+
for (var o = [], l = 0; l < C[a]; l++) o.push(Ue(e, t, C[a + 1 + l], !0));
|
|
4414
|
+
a += C[a] + 1, n.push(o);
|
|
4424
4415
|
}
|
|
4425
|
-
return
|
|
4416
|
+
return C = null, n;
|
|
4426
4417
|
}
|
|
4427
|
-
var
|
|
4418
|
+
var Bi = Ri, bt = {};
|
|
4428
4419
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4429
|
-
|
|
4430
|
-
var o,
|
|
4431
|
-
for (
|
|
4420
|
+
bt.read = function(e, t, n, a, i) {
|
|
4421
|
+
var o, l, d = i * 8 - a - 1, m = (1 << d) - 1, h = m >> 1, c = -7, x = n ? i - 1 : 0, F = n ? -1 : 1, g = e[t + x];
|
|
4422
|
+
for (x += F, o = g & (1 << -c) - 1, g >>= -c, c += d; c > 0; o = o * 256 + e[t + x], x += F, c -= 8)
|
|
4432
4423
|
;
|
|
4433
|
-
for (
|
|
4424
|
+
for (l = o & (1 << -c) - 1, o >>= -c, c += a; c > 0; l = l * 256 + e[t + x], x += F, c -= 8)
|
|
4434
4425
|
;
|
|
4435
4426
|
if (o === 0)
|
|
4436
|
-
o = 1 -
|
|
4427
|
+
o = 1 - h;
|
|
4437
4428
|
else {
|
|
4438
|
-
if (o ===
|
|
4439
|
-
return
|
|
4440
|
-
|
|
4429
|
+
if (o === m)
|
|
4430
|
+
return l ? NaN : (g ? -1 : 1) * (1 / 0);
|
|
4431
|
+
l = l + Math.pow(2, a), o = o - h;
|
|
4441
4432
|
}
|
|
4442
|
-
return (g ? -1 : 1) *
|
|
4433
|
+
return (g ? -1 : 1) * l * Math.pow(2, o - a);
|
|
4443
4434
|
};
|
|
4444
|
-
|
|
4445
|
-
var
|
|
4446
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (
|
|
4435
|
+
bt.write = function(e, t, n, a, i, o) {
|
|
4436
|
+
var l, d, m, h = o * 8 - i - 1, c = (1 << h) - 1, x = c >> 1, F = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, T = a ? 1 : -1, k = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4437
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, l = c) : (l = Math.floor(Math.log(t) / Math.LN2), t * (m = Math.pow(2, -l)) < 1 && (l--, m *= 2), l + x >= 1 ? t += F / m : t += F * Math.pow(2, 1 - x), t * m >= 2 && (l++, m /= 2), l + x >= c ? (d = 0, l = c) : l + x >= 1 ? (d = (t * m - 1) * Math.pow(2, i), l = l + x) : (d = t * Math.pow(2, x - 1) * Math.pow(2, i), l = 0)); i >= 8; e[n + g] = d & 255, g += T, d /= 256, i -= 8)
|
|
4447
4438
|
;
|
|
4448
|
-
for (
|
|
4439
|
+
for (l = l << i | d, h += i; h > 0; e[n + g] = l & 255, g += T, l /= 256, h -= 8)
|
|
4449
4440
|
;
|
|
4450
|
-
e[n + g -
|
|
4441
|
+
e[n + g - T] |= k * 128;
|
|
4451
4442
|
};
|
|
4452
|
-
var
|
|
4453
|
-
function
|
|
4443
|
+
var Hi = w, $e = bt;
|
|
4444
|
+
function w(e) {
|
|
4454
4445
|
this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
|
|
4455
4446
|
}
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
var
|
|
4461
|
-
|
|
4447
|
+
w.Varint = 0;
|
|
4448
|
+
w.Fixed64 = 1;
|
|
4449
|
+
w.Bytes = 2;
|
|
4450
|
+
w.Fixed32 = 5;
|
|
4451
|
+
var kt = 65536 * 65536, kn = 1 / kt, zi = 12, zn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
|
|
4452
|
+
w.prototype = {
|
|
4462
4453
|
destroy: function() {
|
|
4463
4454
|
this.buf = null;
|
|
4464
4455
|
},
|
|
@@ -4474,33 +4465,33 @@ x.prototype = {
|
|
|
4474
4465
|
return this.readFields(e, t, this.readVarint() + this.pos);
|
|
4475
4466
|
},
|
|
4476
4467
|
readFixed32: function() {
|
|
4477
|
-
var e =
|
|
4468
|
+
var e = Ke(this.buf, this.pos);
|
|
4478
4469
|
return this.pos += 4, e;
|
|
4479
4470
|
},
|
|
4480
4471
|
readSFixed32: function() {
|
|
4481
|
-
var e =
|
|
4472
|
+
var e = En(this.buf, this.pos);
|
|
4482
4473
|
return this.pos += 4, e;
|
|
4483
4474
|
},
|
|
4484
4475
|
// 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
|
|
4485
4476
|
readFixed64: function() {
|
|
4486
|
-
var e =
|
|
4477
|
+
var e = Ke(this.buf, this.pos) + Ke(this.buf, this.pos + 4) * kt;
|
|
4487
4478
|
return this.pos += 8, e;
|
|
4488
4479
|
},
|
|
4489
4480
|
readSFixed64: function() {
|
|
4490
|
-
var e =
|
|
4481
|
+
var e = Ke(this.buf, this.pos) + En(this.buf, this.pos + 4) * kt;
|
|
4491
4482
|
return this.pos += 8, e;
|
|
4492
4483
|
},
|
|
4493
4484
|
readFloat: function() {
|
|
4494
|
-
var e =
|
|
4485
|
+
var e = $e.read(this.buf, this.pos, !0, 23, 4);
|
|
4495
4486
|
return this.pos += 4, e;
|
|
4496
4487
|
},
|
|
4497
4488
|
readDouble: function() {
|
|
4498
|
-
var e =
|
|
4489
|
+
var e = $e.read(this.buf, this.pos, !0, 52, 8);
|
|
4499
4490
|
return this.pos += 8, e;
|
|
4500
4491
|
},
|
|
4501
4492
|
readVarint: function(e) {
|
|
4502
4493
|
var t = this.buf, n, a;
|
|
4503
|
-
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,
|
|
4494
|
+
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, Vi(n, e, this));
|
|
4504
4495
|
},
|
|
4505
4496
|
readVarint64: function() {
|
|
4506
4497
|
return this.readVarint(!0);
|
|
@@ -4514,7 +4505,7 @@ x.prototype = {
|
|
|
4514
4505
|
},
|
|
4515
4506
|
readString: function() {
|
|
4516
4507
|
var e = this.readVarint() + this.pos, t = this.pos;
|
|
4517
|
-
return this.pos = e, e - t >=
|
|
4508
|
+
return this.pos = e, e - t >= zi && zn ? ro(this.buf, t, e) : no(this.buf, t, e);
|
|
4518
4509
|
},
|
|
4519
4510
|
readBytes: function() {
|
|
4520
4511
|
var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
|
|
@@ -4522,66 +4513,66 @@ x.prototype = {
|
|
|
4522
4513
|
},
|
|
4523
4514
|
// verbose for performance reasons; doesn't affect gzipped size
|
|
4524
4515
|
readPackedVarint: function(e, t) {
|
|
4525
|
-
if (this.type !==
|
|
4516
|
+
if (this.type !== w.Bytes) return e.push(this.readVarint(t));
|
|
4526
4517
|
var n = J(this);
|
|
4527
4518
|
for (e = e || []; this.pos < n; ) e.push(this.readVarint(t));
|
|
4528
4519
|
return e;
|
|
4529
4520
|
},
|
|
4530
4521
|
readPackedSVarint: function(e) {
|
|
4531
|
-
if (this.type !==
|
|
4522
|
+
if (this.type !== w.Bytes) return e.push(this.readSVarint());
|
|
4532
4523
|
var t = J(this);
|
|
4533
4524
|
for (e = e || []; this.pos < t; ) e.push(this.readSVarint());
|
|
4534
4525
|
return e;
|
|
4535
4526
|
},
|
|
4536
4527
|
readPackedBoolean: function(e) {
|
|
4537
|
-
if (this.type !==
|
|
4528
|
+
if (this.type !== w.Bytes) return e.push(this.readBoolean());
|
|
4538
4529
|
var t = J(this);
|
|
4539
4530
|
for (e = e || []; this.pos < t; ) e.push(this.readBoolean());
|
|
4540
4531
|
return e;
|
|
4541
4532
|
},
|
|
4542
4533
|
readPackedFloat: function(e) {
|
|
4543
|
-
if (this.type !==
|
|
4534
|
+
if (this.type !== w.Bytes) return e.push(this.readFloat());
|
|
4544
4535
|
var t = J(this);
|
|
4545
4536
|
for (e = e || []; this.pos < t; ) e.push(this.readFloat());
|
|
4546
4537
|
return e;
|
|
4547
4538
|
},
|
|
4548
4539
|
readPackedDouble: function(e) {
|
|
4549
|
-
if (this.type !==
|
|
4540
|
+
if (this.type !== w.Bytes) return e.push(this.readDouble());
|
|
4550
4541
|
var t = J(this);
|
|
4551
4542
|
for (e = e || []; this.pos < t; ) e.push(this.readDouble());
|
|
4552
4543
|
return e;
|
|
4553
4544
|
},
|
|
4554
4545
|
readPackedFixed32: function(e) {
|
|
4555
|
-
if (this.type !==
|
|
4546
|
+
if (this.type !== w.Bytes) return e.push(this.readFixed32());
|
|
4556
4547
|
var t = J(this);
|
|
4557
4548
|
for (e = e || []; this.pos < t; ) e.push(this.readFixed32());
|
|
4558
4549
|
return e;
|
|
4559
4550
|
},
|
|
4560
4551
|
readPackedSFixed32: function(e) {
|
|
4561
|
-
if (this.type !==
|
|
4552
|
+
if (this.type !== w.Bytes) return e.push(this.readSFixed32());
|
|
4562
4553
|
var t = J(this);
|
|
4563
4554
|
for (e = e || []; this.pos < t; ) e.push(this.readSFixed32());
|
|
4564
4555
|
return e;
|
|
4565
4556
|
},
|
|
4566
4557
|
readPackedFixed64: function(e) {
|
|
4567
|
-
if (this.type !==
|
|
4558
|
+
if (this.type !== w.Bytes) return e.push(this.readFixed64());
|
|
4568
4559
|
var t = J(this);
|
|
4569
4560
|
for (e = e || []; this.pos < t; ) e.push(this.readFixed64());
|
|
4570
4561
|
return e;
|
|
4571
4562
|
},
|
|
4572
4563
|
readPackedSFixed64: function(e) {
|
|
4573
|
-
if (this.type !==
|
|
4564
|
+
if (this.type !== w.Bytes) return e.push(this.readSFixed64());
|
|
4574
4565
|
var t = J(this);
|
|
4575
4566
|
for (e = e || []; this.pos < t; ) e.push(this.readSFixed64());
|
|
4576
4567
|
return e;
|
|
4577
4568
|
},
|
|
4578
4569
|
skip: function(e) {
|
|
4579
4570
|
var t = e & 7;
|
|
4580
|
-
if (t ===
|
|
4571
|
+
if (t === w.Varint) for (; this.buf[this.pos++] > 127; )
|
|
4581
4572
|
;
|
|
4582
|
-
else if (t ===
|
|
4583
|
-
else if (t ===
|
|
4584
|
-
else if (t ===
|
|
4573
|
+
else if (t === w.Bytes) this.pos = this.readVarint() + this.pos;
|
|
4574
|
+
else if (t === w.Fixed32) this.pos += 4;
|
|
4575
|
+
else if (t === w.Fixed64) this.pos += 8;
|
|
4585
4576
|
else throw new Error("Unimplemented type: " + t);
|
|
4586
4577
|
},
|
|
4587
4578
|
// === WRITING =================================================================
|
|
@@ -4605,14 +4596,14 @@ x.prototype = {
|
|
|
4605
4596
|
this.realloc(4), we(this.buf, e, this.pos), this.pos += 4;
|
|
4606
4597
|
},
|
|
4607
4598
|
writeFixed64: function(e) {
|
|
4608
|
-
this.realloc(8), we(this.buf, e & -1, this.pos), we(this.buf, Math.floor(e *
|
|
4599
|
+
this.realloc(8), we(this.buf, e & -1, this.pos), we(this.buf, Math.floor(e * kn), this.pos + 4), this.pos += 8;
|
|
4609
4600
|
},
|
|
4610
4601
|
writeSFixed64: function(e) {
|
|
4611
|
-
this.realloc(8), we(this.buf, e & -1, this.pos), we(this.buf, Math.floor(e *
|
|
4602
|
+
this.realloc(8), we(this.buf, e & -1, this.pos), we(this.buf, Math.floor(e * kn), this.pos + 4), this.pos += 8;
|
|
4612
4603
|
},
|
|
4613
4604
|
writeVarint: function(e) {
|
|
4614
4605
|
if (e = +e || 0, e > 268435455 || e < 0) {
|
|
4615
|
-
|
|
4606
|
+
Yi(e, this);
|
|
4616
4607
|
return;
|
|
4617
4608
|
}
|
|
4618
4609
|
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)));
|
|
@@ -4626,15 +4617,15 @@ x.prototype = {
|
|
|
4626
4617
|
writeString: function(e) {
|
|
4627
4618
|
e = String(e), this.realloc(e.length * 4), this.pos++;
|
|
4628
4619
|
var t = this.pos;
|
|
4629
|
-
this.pos =
|
|
4620
|
+
this.pos = ao(this.buf, e, this.pos);
|
|
4630
4621
|
var n = this.pos - t;
|
|
4631
|
-
n >= 128 &&
|
|
4622
|
+
n >= 128 && Rn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
|
|
4632
4623
|
},
|
|
4633
4624
|
writeFloat: function(e) {
|
|
4634
|
-
this.realloc(4),
|
|
4625
|
+
this.realloc(4), $e.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
|
|
4635
4626
|
},
|
|
4636
4627
|
writeDouble: function(e) {
|
|
4637
|
-
this.realloc(8),
|
|
4628
|
+
this.realloc(8), $e.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
|
|
4638
4629
|
},
|
|
4639
4630
|
writeBytes: function(e) {
|
|
4640
4631
|
var t = e.length;
|
|
@@ -4646,150 +4637,150 @@ x.prototype = {
|
|
|
4646
4637
|
var n = this.pos;
|
|
4647
4638
|
e(t, this);
|
|
4648
4639
|
var a = this.pos - n;
|
|
4649
|
-
a >= 128 &&
|
|
4640
|
+
a >= 128 && Rn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
|
|
4650
4641
|
},
|
|
4651
4642
|
writeMessage: function(e, t, n) {
|
|
4652
|
-
this.writeTag(e,
|
|
4643
|
+
this.writeTag(e, w.Bytes), this.writeRawMessage(t, n);
|
|
4653
4644
|
},
|
|
4654
4645
|
writePackedVarint: function(e, t) {
|
|
4655
|
-
t.length && this.writeMessage(e,
|
|
4646
|
+
t.length && this.writeMessage(e, Ki, t);
|
|
4656
4647
|
},
|
|
4657
4648
|
writePackedSVarint: function(e, t) {
|
|
4658
|
-
t.length && this.writeMessage(e,
|
|
4649
|
+
t.length && this.writeMessage(e, Wi, t);
|
|
4659
4650
|
},
|
|
4660
4651
|
writePackedBoolean: function(e, t) {
|
|
4661
|
-
t.length && this.writeMessage(e,
|
|
4652
|
+
t.length && this.writeMessage(e, Qi, t);
|
|
4662
4653
|
},
|
|
4663
4654
|
writePackedFloat: function(e, t) {
|
|
4664
|
-
t.length && this.writeMessage(e,
|
|
4655
|
+
t.length && this.writeMessage(e, Zi, t);
|
|
4665
4656
|
},
|
|
4666
4657
|
writePackedDouble: function(e, t) {
|
|
4667
|
-
t.length && this.writeMessage(e,
|
|
4658
|
+
t.length && this.writeMessage(e, qi, t);
|
|
4668
4659
|
},
|
|
4669
4660
|
writePackedFixed32: function(e, t) {
|
|
4670
|
-
t.length && this.writeMessage(e,
|
|
4661
|
+
t.length && this.writeMessage(e, Ji, t);
|
|
4671
4662
|
},
|
|
4672
4663
|
writePackedSFixed32: function(e, t) {
|
|
4673
|
-
t.length && this.writeMessage(e,
|
|
4664
|
+
t.length && this.writeMessage(e, Xi, t);
|
|
4674
4665
|
},
|
|
4675
4666
|
writePackedFixed64: function(e, t) {
|
|
4676
|
-
t.length && this.writeMessage(e,
|
|
4667
|
+
t.length && this.writeMessage(e, eo, t);
|
|
4677
4668
|
},
|
|
4678
4669
|
writePackedSFixed64: function(e, t) {
|
|
4679
|
-
t.length && this.writeMessage(e,
|
|
4670
|
+
t.length && this.writeMessage(e, to, t);
|
|
4680
4671
|
},
|
|
4681
4672
|
writeBytesField: function(e, t) {
|
|
4682
|
-
this.writeTag(e,
|
|
4673
|
+
this.writeTag(e, w.Bytes), this.writeBytes(t);
|
|
4683
4674
|
},
|
|
4684
4675
|
writeFixed32Field: function(e, t) {
|
|
4685
|
-
this.writeTag(e,
|
|
4676
|
+
this.writeTag(e, w.Fixed32), this.writeFixed32(t);
|
|
4686
4677
|
},
|
|
4687
4678
|
writeSFixed32Field: function(e, t) {
|
|
4688
|
-
this.writeTag(e,
|
|
4679
|
+
this.writeTag(e, w.Fixed32), this.writeSFixed32(t);
|
|
4689
4680
|
},
|
|
4690
4681
|
writeFixed64Field: function(e, t) {
|
|
4691
|
-
this.writeTag(e,
|
|
4682
|
+
this.writeTag(e, w.Fixed64), this.writeFixed64(t);
|
|
4692
4683
|
},
|
|
4693
4684
|
writeSFixed64Field: function(e, t) {
|
|
4694
|
-
this.writeTag(e,
|
|
4685
|
+
this.writeTag(e, w.Fixed64), this.writeSFixed64(t);
|
|
4695
4686
|
},
|
|
4696
4687
|
writeVarintField: function(e, t) {
|
|
4697
|
-
this.writeTag(e,
|
|
4688
|
+
this.writeTag(e, w.Varint), this.writeVarint(t);
|
|
4698
4689
|
},
|
|
4699
4690
|
writeSVarintField: function(e, t) {
|
|
4700
|
-
this.writeTag(e,
|
|
4691
|
+
this.writeTag(e, w.Varint), this.writeSVarint(t);
|
|
4701
4692
|
},
|
|
4702
4693
|
writeStringField: function(e, t) {
|
|
4703
|
-
this.writeTag(e,
|
|
4694
|
+
this.writeTag(e, w.Bytes), this.writeString(t);
|
|
4704
4695
|
},
|
|
4705
4696
|
writeFloatField: function(e, t) {
|
|
4706
|
-
this.writeTag(e,
|
|
4697
|
+
this.writeTag(e, w.Fixed32), this.writeFloat(t);
|
|
4707
4698
|
},
|
|
4708
4699
|
writeDoubleField: function(e, t) {
|
|
4709
|
-
this.writeTag(e,
|
|
4700
|
+
this.writeTag(e, w.Fixed64), this.writeDouble(t);
|
|
4710
4701
|
},
|
|
4711
4702
|
writeBooleanField: function(e, t) {
|
|
4712
4703
|
this.writeVarintField(e, !!t);
|
|
4713
4704
|
}
|
|
4714
4705
|
};
|
|
4715
|
-
function
|
|
4706
|
+
function Vi(e, t, n) {
|
|
4716
4707
|
var a = n.buf, i, o;
|
|
4717
4708
|
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 ge(e, i, t);
|
|
4718
4709
|
throw new Error("Expected varint not more than 10 bytes");
|
|
4719
4710
|
}
|
|
4720
4711
|
function J(e) {
|
|
4721
|
-
return e.type ===
|
|
4712
|
+
return e.type === w.Bytes ? e.readVarint() + e.pos : e.pos + 1;
|
|
4722
4713
|
}
|
|
4723
4714
|
function ge(e, t, n) {
|
|
4724
4715
|
return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
|
|
4725
4716
|
}
|
|
4726
|
-
function
|
|
4717
|
+
function Yi(e, t) {
|
|
4727
4718
|
var n, a;
|
|
4728
4719
|
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)
|
|
4729
4720
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
4730
|
-
t.realloc(10),
|
|
4721
|
+
t.realloc(10), ji(n, a, t), $i(a, t);
|
|
4731
4722
|
}
|
|
4732
|
-
function
|
|
4723
|
+
function ji(e, t, n) {
|
|
4733
4724
|
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;
|
|
4734
4725
|
}
|
|
4735
|
-
function
|
|
4726
|
+
function $i(e, t) {
|
|
4736
4727
|
var n = (e & 7) << 4;
|
|
4737
4728
|
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)))));
|
|
4738
4729
|
}
|
|
4739
|
-
function
|
|
4730
|
+
function Rn(e, t, n) {
|
|
4740
4731
|
var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
|
|
4741
4732
|
n.realloc(a);
|
|
4742
4733
|
for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
|
|
4743
4734
|
}
|
|
4744
|
-
function
|
|
4735
|
+
function Ki(e, t) {
|
|
4745
4736
|
for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
|
|
4746
4737
|
}
|
|
4747
|
-
function
|
|
4738
|
+
function Wi(e, t) {
|
|
4748
4739
|
for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
|
|
4749
4740
|
}
|
|
4750
|
-
function
|
|
4741
|
+
function Zi(e, t) {
|
|
4751
4742
|
for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
|
|
4752
4743
|
}
|
|
4753
|
-
function
|
|
4744
|
+
function qi(e, t) {
|
|
4754
4745
|
for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
|
|
4755
4746
|
}
|
|
4756
|
-
function
|
|
4747
|
+
function Qi(e, t) {
|
|
4757
4748
|
for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
|
|
4758
4749
|
}
|
|
4759
|
-
function
|
|
4750
|
+
function Ji(e, t) {
|
|
4760
4751
|
for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
|
|
4761
4752
|
}
|
|
4762
|
-
function
|
|
4753
|
+
function Xi(e, t) {
|
|
4763
4754
|
for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
|
|
4764
4755
|
}
|
|
4765
|
-
function
|
|
4756
|
+
function eo(e, t) {
|
|
4766
4757
|
for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
|
|
4767
4758
|
}
|
|
4768
|
-
function
|
|
4759
|
+
function to(e, t) {
|
|
4769
4760
|
for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
|
|
4770
4761
|
}
|
|
4771
|
-
function
|
|
4762
|
+
function Ke(e, t) {
|
|
4772
4763
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
|
|
4773
4764
|
}
|
|
4774
4765
|
function we(e, t, n) {
|
|
4775
4766
|
e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
|
|
4776
4767
|
}
|
|
4777
|
-
function
|
|
4768
|
+
function En(e, t) {
|
|
4778
4769
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
|
|
4779
4770
|
}
|
|
4780
|
-
function
|
|
4771
|
+
function no(e, t, n) {
|
|
4781
4772
|
for (var a = "", i = t; i < n; ) {
|
|
4782
|
-
var o = e[i],
|
|
4783
|
-
if (i +
|
|
4784
|
-
var
|
|
4785
|
-
|
|
4773
|
+
var o = e[i], l = null, d = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
|
|
4774
|
+
if (i + d > n) break;
|
|
4775
|
+
var m, h, c;
|
|
4776
|
+
d === 1 ? o < 128 && (l = o) : d === 2 ? (m = e[i + 1], (m & 192) === 128 && (l = (o & 31) << 6 | m & 63, l <= 127 && (l = null))) : d === 3 ? (m = e[i + 1], h = e[i + 2], (m & 192) === 128 && (h & 192) === 128 && (l = (o & 15) << 12 | (m & 63) << 6 | h & 63, (l <= 2047 || l >= 55296 && l <= 57343) && (l = null))) : d === 4 && (m = e[i + 1], h = e[i + 2], c = e[i + 3], (m & 192) === 128 && (h & 192) === 128 && (c & 192) === 128 && (l = (o & 15) << 18 | (m & 63) << 12 | (h & 63) << 6 | c & 63, (l <= 65535 || l >= 1114112) && (l = null))), l === null ? (l = 65533, d = 1) : l > 65535 && (l -= 65536, a += String.fromCharCode(l >>> 10 & 1023 | 55296), l = 56320 | l & 1023), a += String.fromCharCode(l), i += d;
|
|
4786
4777
|
}
|
|
4787
4778
|
return a;
|
|
4788
4779
|
}
|
|
4789
|
-
function
|
|
4790
|
-
return
|
|
4780
|
+
function ro(e, t, n) {
|
|
4781
|
+
return zn.decode(e.subarray(t, n));
|
|
4791
4782
|
}
|
|
4792
|
-
function
|
|
4783
|
+
function ao(e, t, n) {
|
|
4793
4784
|
for (var a = 0, i, o; a < t.length; a++) {
|
|
4794
4785
|
if (i = t.charCodeAt(a), i > 55295 && i < 57344)
|
|
4795
4786
|
if (o)
|
|
@@ -4807,28 +4798,28 @@ function eo(e, t, n) {
|
|
|
4807
4798
|
}
|
|
4808
4799
|
return n;
|
|
4809
4800
|
}
|
|
4810
|
-
const
|
|
4801
|
+
const io = /* @__PURE__ */ ki(Hi), ko = (e) => {
|
|
4811
4802
|
var a, i;
|
|
4812
4803
|
if (!e || !e.data)
|
|
4813
4804
|
return {};
|
|
4814
4805
|
const t = {}, n = e.data;
|
|
4815
4806
|
if (n)
|
|
4816
4807
|
for (const o of n) {
|
|
4817
|
-
const
|
|
4818
|
-
|
|
4808
|
+
const l = (a = o == null ? void 0 : o.event) == null ? void 0 : a.country_code, d = (i = e.meta.metric_names) == null ? void 0 : i[0];
|
|
4809
|
+
l && (t[l] = d ? o.event[d] : 0);
|
|
4819
4810
|
}
|
|
4820
4811
|
return t;
|
|
4821
4812
|
};
|
|
4822
|
-
function
|
|
4813
|
+
function oo(e, t = 0) {
|
|
4823
4814
|
let n = null;
|
|
4824
4815
|
return (...a) => {
|
|
4825
4816
|
n && clearTimeout(n), n = setTimeout(() => e(...a), t);
|
|
4826
4817
|
};
|
|
4827
4818
|
}
|
|
4828
|
-
const
|
|
4819
|
+
const so = { class: "legend" }, lo = {
|
|
4829
4820
|
key: 0,
|
|
4830
4821
|
class: "legend-title"
|
|
4831
|
-
},
|
|
4822
|
+
}, uo = { class: "legend-text" }, co = /* @__PURE__ */ Rt({
|
|
4832
4823
|
__name: "MapLegend",
|
|
4833
4824
|
props: {
|
|
4834
4825
|
metric: {},
|
|
@@ -4836,26 +4827,26 @@ const ro = { class: "legend" }, ao = {
|
|
|
4836
4827
|
data: {}
|
|
4837
4828
|
},
|
|
4838
4829
|
setup(e) {
|
|
4839
|
-
return (t, n) => (K(), ae("div",
|
|
4840
|
-
e.metric ? (K(), ae("div",
|
|
4841
|
-
(K(!0), ae(
|
|
4830
|
+
return (t, n) => (K(), ae("div", so, [
|
|
4831
|
+
e.metric ? (K(), ae("div", lo, Te(e.title), 1)) : Ee("", !0),
|
|
4832
|
+
(K(!0), ae(ra, null, aa(e.data, (a, i) => (K(), ae("div", {
|
|
4842
4833
|
key: i,
|
|
4843
4834
|
class: "legend-item"
|
|
4844
4835
|
}, [
|
|
4845
4836
|
X("span", {
|
|
4846
4837
|
class: "legend-color",
|
|
4847
|
-
style:
|
|
4838
|
+
style: ia({ backgroundColor: a.color })
|
|
4848
4839
|
}, null, 4),
|
|
4849
|
-
X("span",
|
|
4840
|
+
X("span", uo, Te(a.range), 1)
|
|
4850
4841
|
]))), 128))
|
|
4851
4842
|
]));
|
|
4852
4843
|
}
|
|
4853
|
-
}),
|
|
4844
|
+
}), It = (e, t) => {
|
|
4854
4845
|
const n = e.__vccOpts || e;
|
|
4855
4846
|
for (const [a, i] of t)
|
|
4856
4847
|
n[a] = i;
|
|
4857
4848
|
return n;
|
|
4858
|
-
},
|
|
4849
|
+
}, mo = /* @__PURE__ */ It(co, [["__scopeId", "data-v-09205656"]]), fo = { class: "map-tooltip" }, po = { class: "map-tooltip-text" }, ho = { key: 0 }, yo = /* @__PURE__ */ Rt({
|
|
4859
4850
|
__name: "MapTooltip",
|
|
4860
4851
|
props: {
|
|
4861
4852
|
data: {},
|
|
@@ -4864,22 +4855,22 @@ const ro = { class: "legend" }, ao = {
|
|
|
4864
4855
|
left: {}
|
|
4865
4856
|
},
|
|
4866
4857
|
setup(e) {
|
|
4867
|
-
return
|
|
4858
|
+
return oa((t) => ({
|
|
4868
4859
|
v75a0a274: t.left,
|
|
4869
4860
|
v144f4294: t.top,
|
|
4870
4861
|
v6e49e79e: t.data.color
|
|
4871
|
-
})), (t, n) => (K(), ae("div",
|
|
4862
|
+
})), (t, n) => (K(), ae("div", fo, [
|
|
4872
4863
|
n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
|
|
4873
|
-
X("div",
|
|
4864
|
+
X("div", po, [
|
|
4874
4865
|
X("div", null, Te(e.data.label), 1),
|
|
4875
|
-
e.showValue ? (K(), ae("span",
|
|
4866
|
+
e.showValue ? (K(), ae("span", ho, Te(e.data.value), 1)) : Ee("", !0)
|
|
4876
4867
|
])
|
|
4877
4868
|
]));
|
|
4878
4869
|
}
|
|
4879
|
-
}),
|
|
4870
|
+
}), _o = /* @__PURE__ */ It(yo, [["__scopeId", "data-v-6bea2641"]]), go = { class: "kong-ui-public-analytics-geo-map" }, wo = {
|
|
4880
4871
|
key: 0,
|
|
4881
4872
|
class: "no-location-overlay"
|
|
4882
|
-
},
|
|
4873
|
+
}, vo = { class: "no-location-overlay-title" }, xo = { class: "no-location-overlay-description" }, To = ["id"], Fo = /* @__PURE__ */ Rt({
|
|
4883
4874
|
__name: "AnalyticsGeoMap",
|
|
4884
4875
|
props: {
|
|
4885
4876
|
countryMetrics: {},
|
|
@@ -4894,11 +4885,11 @@ const ro = { class: "legend" }, ao = {
|
|
|
4894
4885
|
},
|
|
4895
4886
|
emits: ["boundsChange"],
|
|
4896
4887
|
setup(e, { emit: t }) {
|
|
4897
|
-
const n = import("./countries-simple-geo-BFUDnSiE.js").then((
|
|
4898
|
-
countryMetrics:
|
|
4899
|
-
metric:
|
|
4900
|
-
unit:
|
|
4901
|
-
}), { formatMetric:
|
|
4888
|
+
const n = import("./countries-simple-geo-BFUDnSiE.js").then((y) => y.default), a = t, { i18n: i } = Le.useI18n(), { getColor: o, legendData: l } = Le.useLegendScale({
|
|
4889
|
+
countryMetrics: ze(() => e.countryMetrics),
|
|
4890
|
+
metric: ze(() => e.metric),
|
|
4891
|
+
unit: ze(() => e.metricUnit)
|
|
4892
|
+
}), { formatMetric: d } = Le.useMetricFormat({ unit: ze(() => e.metricUnit) }), m = ke(), h = sa(), c = ke(), x = ke(null), F = ke({ left: "0px", top: "0px" }), g = ke(!1), T = A(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), k = A(() => ({
|
|
4902
4893
|
"fill-color": [
|
|
4903
4894
|
"match",
|
|
4904
4895
|
[
|
|
@@ -4911,60 +4902,60 @@ const ro = { class: "legend" }, ao = {
|
|
|
4911
4902
|
],
|
|
4912
4903
|
["get", "ISO_A2"]
|
|
4913
4904
|
],
|
|
4914
|
-
...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([
|
|
4915
|
-
|
|
4916
|
-
o(
|
|
4917
|
-
]) : [
|
|
4918
|
-
|
|
4905
|
+
...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([y, v]) => [
|
|
4906
|
+
y,
|
|
4907
|
+
o(v)
|
|
4908
|
+
]) : [Oe, Oe],
|
|
4909
|
+
Oe
|
|
4919
4910
|
// default color if no match
|
|
4920
4911
|
],
|
|
4921
4912
|
"fill-opacity": 0.7
|
|
4922
|
-
})), H = A(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = A(() => e.metric && i.t(`metrics.${e.metric}`) || ""), b = (
|
|
4923
|
-
const
|
|
4924
|
-
return Array.isArray(
|
|
4925
|
-
}, ie = (
|
|
4926
|
-
var
|
|
4927
|
-
if (
|
|
4928
|
-
(
|
|
4913
|
+
})), H = A(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), B = A(() => e.metric && i.t(`metrics.${e.metric}`) || ""), b = (y) => {
|
|
4914
|
+
const v = y.flat(1);
|
|
4915
|
+
return Array.isArray(v[0]) && Array.isArray(v[0][0]) ? b(v) : v;
|
|
4916
|
+
}, ie = (y) => {
|
|
4917
|
+
var M, R, ee, W, z, te, ne;
|
|
4918
|
+
if (y === "RU") {
|
|
4919
|
+
(M = c.value) == null || M.fitBounds([
|
|
4929
4920
|
[20, 40],
|
|
4930
4921
|
[180, 80]
|
|
4931
4922
|
]);
|
|
4932
4923
|
return;
|
|
4933
|
-
} else if (
|
|
4934
|
-
(
|
|
4924
|
+
} else if (y === "US") {
|
|
4925
|
+
(R = c.value) == null || R.fitBounds([
|
|
4935
4926
|
[-130, 20],
|
|
4936
4927
|
[-60, 50]
|
|
4937
4928
|
]);
|
|
4938
4929
|
return;
|
|
4939
|
-
} else if (
|
|
4930
|
+
} else if (y === "FR") {
|
|
4940
4931
|
(ee = c.value) == null || ee.fitBounds([
|
|
4941
4932
|
[-5, 42],
|
|
4942
4933
|
[9, 51]
|
|
4943
4934
|
]);
|
|
4944
4935
|
return;
|
|
4945
|
-
} else if (
|
|
4936
|
+
} else if (y === "NO") {
|
|
4946
4937
|
(W = c.value) == null || W.fitBounds([
|
|
4947
4938
|
[4, 57],
|
|
4948
4939
|
[32, 71]
|
|
4949
4940
|
]);
|
|
4950
4941
|
return;
|
|
4951
4942
|
}
|
|
4952
|
-
const
|
|
4953
|
-
var V, Y, j,
|
|
4954
|
-
return (V = U.properties) != null && V.ISO_A2 ? ((Y = U.properties) == null ? void 0 : Y.ISO_A2) ===
|
|
4943
|
+
const v = (z = x.value) == null ? void 0 : z.features.find((U) => {
|
|
4944
|
+
var V, Y, j, _, $;
|
|
4945
|
+
return (V = U.properties) != null && V.ISO_A2 ? ((Y = U.properties) == null ? void 0 : Y.ISO_A2) === y : ((j = U.properties) == null ? void 0 : j.iso_a2) === "-99" ? ((_ = U.properties) == null ? void 0 : _.iso_a2_eh) === y : (($ = U.properties) == null ? void 0 : $.iso_a2) === y;
|
|
4955
4946
|
});
|
|
4956
|
-
if (
|
|
4957
|
-
const U = (te =
|
|
4947
|
+
if (v) {
|
|
4948
|
+
const U = (te = v.geometry) == null ? void 0 : te.coordinates;
|
|
4958
4949
|
if (!U) return;
|
|
4959
|
-
const V = b(U), Y = V.map((Z) => Z[1]), j = V.map((Z) => Z[0]),
|
|
4950
|
+
const V = b(U), Y = V.map((Z) => Z[1]), j = V.map((Z) => Z[0]), _ = Math.min(...Y), $ = Math.max(...Y), fe = Math.min(...j), O = Math.max(...j);
|
|
4960
4951
|
(ne = c.value) == null || ne.fitBounds([
|
|
4961
|
-
[fe,
|
|
4952
|
+
[fe, _],
|
|
4962
4953
|
[O, $]
|
|
4963
4954
|
]);
|
|
4964
4955
|
}
|
|
4965
|
-
},
|
|
4966
|
-
const
|
|
4967
|
-
container:
|
|
4956
|
+
}, D = A(() => {
|
|
4957
|
+
const y = {
|
|
4958
|
+
container: h,
|
|
4968
4959
|
style: { version: 8, sources: {}, layers: [] },
|
|
4969
4960
|
attributionControl: !1,
|
|
4970
4961
|
// fit bounds for whole world minus antarctica
|
|
@@ -4980,21 +4971,21 @@ const ro = { class: "legend" }, ao = {
|
|
|
4980
4971
|
"CooperativeGesturesHandler.MobileHelpText": i.t("cooperative_gestures.mobile_zoom_help_text")
|
|
4981
4972
|
}
|
|
4982
4973
|
};
|
|
4983
|
-
return e.bounds && (
|
|
4984
|
-
}), me =
|
|
4974
|
+
return e.bounds && (y.bounds = e.bounds), y;
|
|
4975
|
+
}), me = oo(() => {
|
|
4985
4976
|
if (!c.value) return;
|
|
4986
|
-
const
|
|
4977
|
+
const y = c.value.getBounds(), v = y.getSouthWest(), M = y.getNorthEast();
|
|
4987
4978
|
a("boundsChange", [
|
|
4988
|
-
[
|
|
4989
|
-
[
|
|
4979
|
+
[v.lng, v.lat],
|
|
4980
|
+
[M.lng, M.lat]
|
|
4990
4981
|
]);
|
|
4991
4982
|
}, 300);
|
|
4992
|
-
return
|
|
4993
|
-
var
|
|
4983
|
+
return la(async () => {
|
|
4984
|
+
var y, v, M;
|
|
4994
4985
|
try {
|
|
4995
|
-
const
|
|
4996
|
-
|
|
4997
|
-
var te, ne, U, V, Y, j,
|
|
4986
|
+
const R = await n, ee = await fetch(R), W = new Uint8Array(await ee.arrayBuffer()), z = Bi(new io(W));
|
|
4987
|
+
x.value = z, c.value = new da(D.value), c.value.on("load", () => {
|
|
4988
|
+
var te, ne, U, V, Y, j, _;
|
|
4998
4989
|
(te = c.value) == null || te.addSource("countries", {
|
|
4999
4990
|
type: "geojson",
|
|
5000
4991
|
data: z
|
|
@@ -5002,10 +4993,10 @@ const ro = { class: "legend" }, ao = {
|
|
|
5002
4993
|
id: "countries-layer",
|
|
5003
4994
|
type: "fill",
|
|
5004
4995
|
source: "countries",
|
|
5005
|
-
paint:
|
|
4996
|
+
paint: k.value
|
|
5006
4997
|
}), (U = c.value) == null || U.addSource("lakes", {
|
|
5007
4998
|
type: "geojson",
|
|
5008
|
-
data:
|
|
4999
|
+
data: Ni
|
|
5009
5000
|
}), (V = c.value) == null || V.addLayer({
|
|
5010
5001
|
id: "lakes-layer",
|
|
5011
5002
|
type: "fill",
|
|
@@ -5017,31 +5008,31 @@ const ro = { class: "legend" }, ao = {
|
|
|
5017
5008
|
var O;
|
|
5018
5009
|
const fe = (O = $.features) == null ? void 0 : O[0];
|
|
5019
5010
|
if (fe) {
|
|
5020
|
-
const { iso_a2: Z, iso_a2_eh:
|
|
5021
|
-
Se !== void 0 && (
|
|
5022
|
-
label:
|
|
5011
|
+
const { iso_a2: Z, iso_a2_eh: be, ISO_A2: rt, admin: at } = fe.properties, it = rt ?? Z === "-99" ? be : Z, Se = e.countryMetrics[it];
|
|
5012
|
+
Se !== void 0 && (m.value = {
|
|
5013
|
+
label: at,
|
|
5023
5014
|
color: o(Se),
|
|
5024
|
-
value:
|
|
5025
|
-
}, g.value = !0,
|
|
5015
|
+
value: d(Se)
|
|
5016
|
+
}, g.value = !0, F.value = {
|
|
5026
5017
|
left: `${$.point.x}px`,
|
|
5027
5018
|
top: `${$.point.y}px`
|
|
5028
5019
|
});
|
|
5029
5020
|
}
|
|
5030
5021
|
}), (j = c.value) == null || j.on("mouseleave", "countries-layer", () => {
|
|
5031
5022
|
g.value = !1;
|
|
5032
|
-
}), (
|
|
5033
|
-
}), (
|
|
5034
|
-
} catch (
|
|
5035
|
-
console.error(
|
|
5023
|
+
}), (_ = c.value) == null || _.on("move", me), e.fitToCountry && ie(e.fitToCountry);
|
|
5024
|
+
}), (y = c.value) == null || y.dragRotate.disable(), (v = c.value) == null || v.keyboard.disable(), (M = c.value) == null || M.touchZoomRotate.disableRotation();
|
|
5025
|
+
} catch (R) {
|
|
5026
|
+
console.error(R);
|
|
5036
5027
|
}
|
|
5037
|
-
}),
|
|
5038
|
-
var
|
|
5028
|
+
}), _t(() => e.countryMetrics, () => {
|
|
5029
|
+
var y;
|
|
5039
5030
|
c.value && c.value.isStyleLoaded() && (c.value.getLayer("countries-layer") && c.value.removeLayer("countries-layer"), c.value.addLayer({
|
|
5040
5031
|
id: "countries-layer",
|
|
5041
5032
|
type: "fill",
|
|
5042
5033
|
source: "countries",
|
|
5043
|
-
paint:
|
|
5044
|
-
}), c.value.removeLayer("lakes-layer"), (
|
|
5034
|
+
paint: k.value
|
|
5035
|
+
}), c.value.removeLayer("lakes-layer"), (y = c.value) == null || y.addLayer({
|
|
5045
5036
|
id: "lakes-layer",
|
|
5046
5037
|
type: "fill",
|
|
5047
5038
|
source: "lakes",
|
|
@@ -5049,58 +5040,58 @@ const ro = { class: "legend" }, ao = {
|
|
|
5049
5040
|
"fill-color": "#FFFFFF"
|
|
5050
5041
|
}
|
|
5051
5042
|
}));
|
|
5052
|
-
}),
|
|
5053
|
-
var
|
|
5054
|
-
c.value &&
|
|
5043
|
+
}), _t(() => e.fitToCountry, (y) => {
|
|
5044
|
+
var v, M, R;
|
|
5045
|
+
c.value && y ? ie(y) : !D.value.center && !D.value.zoom ? (v = c.value) == null || v.fitBounds([
|
|
5055
5046
|
[-180, -90],
|
|
5056
5047
|
[180, 90]
|
|
5057
|
-
]) : (
|
|
5058
|
-
}),
|
|
5059
|
-
if (!
|
|
5060
|
-
const
|
|
5061
|
-
!(
|
|
5062
|
-
}), (
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
color:
|
|
5067
|
-
size:
|
|
5048
|
+
]) : (D.value.zoom && ((M = c.value) == null || M.setZoom(D.value.zoom)), D.value.center && ((R = c.value) == null || R.flyTo({ center: D.value.center })));
|
|
5049
|
+
}), _t(() => e.bounds, (y, v) => {
|
|
5050
|
+
if (!y) return;
|
|
5051
|
+
const M = y == null ? void 0 : y.flat(), R = v == null ? void 0 : v.flat();
|
|
5052
|
+
!(M && R && M.length === R.length && M.every((W, z) => Math.round(W * 100) / 100 === Math.round(R[z] * 100) / 100)) && c.value && c.value.fitBounds(y);
|
|
5053
|
+
}), (y, v) => (K(), ae("div", go, [
|
|
5054
|
+
T.value ? (K(), ae("div", wo, [
|
|
5055
|
+
gt(y.$slots, "no-location-icon", {}, () => [
|
|
5056
|
+
ua(ue(pa), {
|
|
5057
|
+
color: ue(vi),
|
|
5058
|
+
size: ue(xi)
|
|
5068
5059
|
}, null, 8, ["color", "size"])
|
|
5069
5060
|
], !0),
|
|
5070
|
-
X("div",
|
|
5071
|
-
|
|
5072
|
-
|
|
5061
|
+
X("div", vo, [
|
|
5062
|
+
gt(y.$slots, "no-location-title", {}, () => [
|
|
5063
|
+
ca(Te(ue(i).t("no_location_data")), 1)
|
|
5073
5064
|
], !0)
|
|
5074
5065
|
]),
|
|
5075
|
-
X("div",
|
|
5076
|
-
|
|
5077
|
-
X("p", null, Te(
|
|
5066
|
+
X("div", xo, [
|
|
5067
|
+
gt(y.$slots, "no-location-description", {}, () => [
|
|
5068
|
+
X("p", null, Te(ue(i).t("no_location_data_description")), 1)
|
|
5078
5069
|
], !0)
|
|
5079
5070
|
])
|
|
5080
5071
|
])) : Ee("", !0),
|
|
5081
5072
|
X("div", {
|
|
5082
|
-
id:
|
|
5073
|
+
id: ue(h),
|
|
5083
5074
|
class: "analytics-geo-map-container"
|
|
5084
|
-
}, null, 8,
|
|
5085
|
-
H.value ? (K(),
|
|
5075
|
+
}, null, 8, To),
|
|
5076
|
+
H.value ? (K(), sn(mo, {
|
|
5086
5077
|
key: 1,
|
|
5087
5078
|
class: "legend-container",
|
|
5088
|
-
data:
|
|
5079
|
+
data: ue(l),
|
|
5089
5080
|
metric: e.metric,
|
|
5090
5081
|
title: B.value
|
|
5091
5082
|
}, null, 8, ["data", "metric", "title"])) : Ee("", !0),
|
|
5092
|
-
g.value &&
|
|
5083
|
+
g.value && m.value ? (K(), sn(_o, {
|
|
5093
5084
|
key: 2,
|
|
5094
|
-
data:
|
|
5095
|
-
left:
|
|
5085
|
+
data: m.value,
|
|
5086
|
+
left: F.value.left,
|
|
5096
5087
|
"show-value": e.showTooltipValue,
|
|
5097
|
-
top:
|
|
5088
|
+
top: F.value.top
|
|
5098
5089
|
}, null, 8, ["data", "left", "show-value", "top"])) : Ee("", !0)
|
|
5099
5090
|
]));
|
|
5100
5091
|
}
|
|
5101
|
-
}),
|
|
5092
|
+
}), Ro = /* @__PURE__ */ It(Fo, [["__scopeId", "data-v-4e998083"]]);
|
|
5102
5093
|
export {
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5094
|
+
Ro as AnalyticsGeoMap,
|
|
5095
|
+
oo as debounce,
|
|
5096
|
+
ko as exploreResultToCountryMetrics
|
|
5106
5097
|
};
|