@kong-ui-public/analytics-geo-map 1.9.40 → 1.9.41
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 +157 -157
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as j, defineComponent as ft, openBlock as
|
|
1
|
+
import { computed as j, defineComponent as ft, openBlock as J, createElementBlock as re, toDisplayString as _e, createCommentVNode as Me, Fragment as qr, renderList as Wr, createElementVNode as te, normalizeStyle as Zr, useCssVars as Qr, inject as Jr, toRef as ve, ref as se, useId as Xr, onUnmounted as ea, onMounted as ta, watch as Pe, renderSlot as Xe, createVNode as na, unref as le, createTextVNode as ra, createBlock as zt } from "vue";
|
|
2
2
|
import { Map as aa } from "maplibre-gl";
|
|
3
3
|
import { AnalyticsIcon as ia } from "@kong/icons";
|
|
4
4
|
import { createI18n as oa, i18nTComponent as sa } from "@kong-ui-public/i18n";
|
|
@@ -582,7 +582,7 @@ function Te(t, n) {
|
|
|
582
582
|
function ce(t, n) {
|
|
583
583
|
return Te(n || t, t);
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Le(t, n) {
|
|
586
586
|
const a = ce(t, n?.in);
|
|
587
587
|
return a.setHours(0, 0, 0, 0), a;
|
|
588
588
|
}
|
|
@@ -590,7 +590,7 @@ function Be(t, n) {
|
|
|
590
590
|
const a = Sa(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, u = ce(t, n?.in), d = u.getDay(), y = (d < o ? 7 : 0) + d - o;
|
|
591
591
|
return u.setDate(u.getDate() - y), u.setHours(0, 0, 0, 0), u;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ce(t, n, a) {
|
|
594
594
|
const o = ce(t, a?.in);
|
|
595
595
|
return isNaN(n) ? Te(t, NaN) : (o.setDate(o.getDate() + n), o);
|
|
596
596
|
}
|
|
@@ -637,10 +637,10 @@ function kn(t, n, a) {
|
|
|
637
637
|
return Na(t, -1, a);
|
|
638
638
|
}
|
|
639
639
|
function Pa(t, n) {
|
|
640
|
-
const a =
|
|
641
|
-
return "formatToParts" in a ?
|
|
640
|
+
const a = Ga(n);
|
|
641
|
+
return "formatToParts" in a ? Ca(a, t) : Oa(a, t);
|
|
642
642
|
}
|
|
643
|
-
const
|
|
643
|
+
const La = {
|
|
644
644
|
year: 0,
|
|
645
645
|
month: 1,
|
|
646
646
|
day: 2,
|
|
@@ -648,11 +648,11 @@ const Ca = {
|
|
|
648
648
|
minute: 4,
|
|
649
649
|
second: 5
|
|
650
650
|
};
|
|
651
|
-
function
|
|
651
|
+
function Ca(t, n) {
|
|
652
652
|
try {
|
|
653
653
|
const a = t.formatToParts(n), o = [];
|
|
654
654
|
for (let u = 0; u < a.length; u++) {
|
|
655
|
-
const d =
|
|
655
|
+
const d = La[a[u].type];
|
|
656
656
|
d !== void 0 && (o[d] = parseInt(a[u].value, 10));
|
|
657
657
|
}
|
|
658
658
|
return o;
|
|
@@ -683,7 +683,7 @@ const et = {}, Kt = new Intl.DateTimeFormat("en-US", {
|
|
|
683
683
|
minute: "2-digit",
|
|
684
684
|
second: "2-digit"
|
|
685
685
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ia = Kt === "06/25/2014, 00:00:00" || Kt === "06/25/2014 00:00:00";
|
|
686
|
-
function
|
|
686
|
+
function Ga(t) {
|
|
687
687
|
return et[t] || (et[t] = Ia ? new Intl.DateTimeFormat("en-US", {
|
|
688
688
|
hourCycle: "h23",
|
|
689
689
|
timeZone: t,
|
|
@@ -708,7 +708,7 @@ function yt(t, n, a, o, u, d, y) {
|
|
|
708
708
|
const h = /* @__PURE__ */ new Date(0);
|
|
709
709
|
return h.setUTCFullYear(t, n, a), h.setUTCHours(o, u, d, y), h;
|
|
710
710
|
}
|
|
711
|
-
const qt = 36e5,
|
|
711
|
+
const qt = 36e5, Ua = 6e4, tt = {
|
|
712
712
|
timezoneZ: /^(Z)$/,
|
|
713
713
|
timezoneHH: /^([+-]\d{2})$/,
|
|
714
714
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -725,7 +725,7 @@ function be(t, n, a) {
|
|
|
725
725
|
if (o = tt.timezoneHHMM.exec(t), o) {
|
|
726
726
|
u = parseInt(o[2], 10);
|
|
727
727
|
const y = parseInt(o[3], 10);
|
|
728
|
-
return Wt(u, y) ? (d = Math.abs(u) * qt + y *
|
|
728
|
+
return Wt(u, y) ? (d = Math.abs(u) * qt + y * Ua, o[1] === "+" ? -d : d) : NaN;
|
|
729
729
|
}
|
|
730
730
|
if (Ba(t)) {
|
|
731
731
|
n = new Date(n || Date.now());
|
|
@@ -765,11 +765,11 @@ function Ba(t) {
|
|
|
765
765
|
return !1;
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Qt(t) {
|
|
769
769
|
const n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
770
770
|
return n.setUTCFullYear(t.getFullYear()), +t - +n;
|
|
771
771
|
}
|
|
772
|
-
const Nn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, nt = 36e5,
|
|
772
|
+
const Nn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, nt = 36e5, Jt = 6e4, ba = 2, H = {
|
|
773
773
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
774
774
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
775
775
|
// year tokens
|
|
@@ -829,7 +829,7 @@ function mt(t, n = {}) {
|
|
|
829
829
|
if (N = be(o.timeZone || n.timeZone, new Date(h + T)), isNaN(N))
|
|
830
830
|
return /* @__PURE__ */ new Date(NaN);
|
|
831
831
|
} else
|
|
832
|
-
N =
|
|
832
|
+
N = Qt(new Date(h + T)), N = Qt(new Date(h + T + N));
|
|
833
833
|
return new Date(h + T + N);
|
|
834
834
|
} else
|
|
835
835
|
return /* @__PURE__ */ new Date(NaN);
|
|
@@ -899,11 +899,11 @@ function $a(t) {
|
|
|
899
899
|
if (o)
|
|
900
900
|
return n = parseFloat(o[1].replace(",", ".")), rt(n) ? n % 24 * nt : NaN;
|
|
901
901
|
if (o = H.HHMM.exec(t), o)
|
|
902
|
-
return n = parseInt(o[1], 10), a = parseFloat(o[2].replace(",", ".")), rt(n, a) ? n % 24 * nt + a *
|
|
902
|
+
return n = parseInt(o[1], 10), a = parseFloat(o[2].replace(",", ".")), rt(n, a) ? n % 24 * nt + a * Jt : NaN;
|
|
903
903
|
if (o = H.HHMMSS.exec(t), o) {
|
|
904
904
|
n = parseInt(o[1], 10), a = parseInt(o[2], 10);
|
|
905
905
|
const u = parseFloat(o[3].replace(",", "."));
|
|
906
|
-
return rt(n, a, u) ? n % 24 * nt + a *
|
|
906
|
+
return rt(n, a, u) ? n % 24 * nt + a * Jt + u * 1e3 : NaN;
|
|
907
907
|
}
|
|
908
908
|
return null;
|
|
909
909
|
}
|
|
@@ -954,24 +954,24 @@ function Za(t, n, a) {
|
|
|
954
954
|
const o = yt(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()).getTime(), u = be(n, new Date(o));
|
|
955
955
|
return new Date(o + u);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Qa(t, n) {
|
|
958
958
|
return -be(t, n);
|
|
959
959
|
}
|
|
960
|
-
var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
961
|
-
|
|
960
|
+
var Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ue = { exports: {} };
|
|
961
|
+
Ue.exports;
|
|
962
962
|
var nn;
|
|
963
|
-
function
|
|
963
|
+
function Ja() {
|
|
964
964
|
return nn || (nn = 1, (function(t, n) {
|
|
965
|
-
var a = 200, o = "__lodash_hash_undefined__", u = 9007199254740991, d = "[object Arguments]", y = "[object Array]", h = "[object Boolean]", T = "[object Date]", N = "[object Error]", S = "[object Function]", E = "[object GeneratorFunction]", F = "[object Map]", I = "[object Number]",
|
|
966
|
-
R[d] = R[y] = R[b] = R[f] = R[h] = R[T] = R[_] = R[s] = R[p] = R[g] = R[D] = R[F] = R[I] = R[
|
|
967
|
-
var W = typeof Oe == "object" && Oe && Oe.Object === Object && Oe,
|
|
965
|
+
var a = 200, o = "__lodash_hash_undefined__", u = 9007199254740991, d = "[object Arguments]", y = "[object Array]", h = "[object Boolean]", T = "[object Date]", N = "[object Error]", S = "[object Function]", E = "[object GeneratorFunction]", F = "[object Map]", I = "[object Number]", C = "[object Object]", P = "[object Promise]", L = "[object RegExp]", A = "[object Set]", G = "[object String]", U = "[object Symbol]", z = "[object WeakMap]", b = "[object ArrayBuffer]", f = "[object DataView]", _ = "[object Float32Array]", s = "[object Float64Array]", p = "[object Int8Array]", g = "[object Int16Array]", D = "[object Int32Array]", e = "[object Uint8Array]", i = "[object Uint8ClampedArray]", l = "[object Uint16Array]", w = "[object Uint32Array]", x = /[\\^$.*+?()[\]{}|]/g, k = /\w*$/, O = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, R = {};
|
|
966
|
+
R[d] = R[y] = R[b] = R[f] = R[h] = R[T] = R[_] = R[s] = R[p] = R[g] = R[D] = R[F] = R[I] = R[C] = R[L] = R[A] = R[G] = R[U] = R[e] = R[i] = R[l] = R[w] = !0, R[N] = R[S] = R[z] = !1;
|
|
967
|
+
var W = typeof Oe == "object" && Oe && Oe.Object === Object && Oe, Q = typeof self == "object" && self && self.Object === Object && self, q = W || Q || Function("return this")(), _t = n && !n.nodeType && n, gt = _t && !0 && t && !t.nodeType && t, En = gt && gt.exports === _t;
|
|
968
968
|
function Pn(r, c) {
|
|
969
969
|
return r.set(c[0], c[1]), r;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Ln(r, c) {
|
|
972
972
|
return r.add(c), r;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Cn(r, c) {
|
|
975
975
|
for (var m = -1, M = r ? r.length : 0; ++m < M && c(r[m], m, r) !== !1; )
|
|
976
976
|
;
|
|
977
977
|
return r;
|
|
@@ -991,7 +991,7 @@ function Qa() {
|
|
|
991
991
|
M[m] = c(m);
|
|
992
992
|
return M;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function Gn(r, c) {
|
|
995
995
|
return r?.[c];
|
|
996
996
|
}
|
|
997
997
|
function vt(r) {
|
|
@@ -1020,12 +1020,12 @@ function Qa() {
|
|
|
1020
1020
|
m[++c] = M;
|
|
1021
1021
|
}), m;
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1023
|
+
var Un = Array.prototype, An = Function.prototype, Se = Object.prototype, He = q["__core-js_shared__"], Ft = (function() {
|
|
1024
1024
|
var r = /[^.]+$/.exec(He && He.keys && He.keys.IE_PROTO || "");
|
|
1025
1025
|
return r ? "Symbol(src)_1." + r : "";
|
|
1026
1026
|
})(), Tt = An.toString, ne = Se.hasOwnProperty, De = Se.toString, Vn = RegExp(
|
|
1027
1027
|
"^" + Tt.call(ne).replace(x, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1028
|
-
), St = En ? q.Buffer : void 0, Dt = q.Symbol, kt = q.Uint8Array, Bn = ze(Object.getPrototypeOf, Object), bn = Object.create, zn = Se.propertyIsEnumerable, Hn =
|
|
1028
|
+
), St = En ? q.Buffer : void 0, Dt = q.Symbol, kt = q.Uint8Array, Bn = ze(Object.getPrototypeOf, Object), bn = Object.create, zn = Se.propertyIsEnumerable, Hn = Un.splice, Nt = Object.getOwnPropertySymbols, Yn = St ? St.isBuffer : void 0, $n = ze(Object.keys, Object), Ye = fe(q, "DataView"), ge = fe(q, "Map"), $e = fe(q, "Promise"), je = fe(q, "Set"), Ke = fe(q, "WeakMap"), we = fe(Object, "create"), jn = oe(Ye), Kn = oe(ge), qn = oe($e), Wn = oe(je), Zn = oe(Ke), Rt = Dt ? Dt.prototype : void 0, Et = Rt ? Rt.valueOf : void 0;
|
|
1029
1029
|
function ae(r) {
|
|
1030
1030
|
var c = -1, m = r ? r.length : 0;
|
|
1031
1031
|
for (this.clear(); ++c < m; ) {
|
|
@@ -1033,10 +1033,10 @@ function Qa() {
|
|
|
1033
1033
|
this.set(M[0], M[1]);
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Qn() {
|
|
1037
1037
|
this.__data__ = we ? we(null) : {};
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Jn(r) {
|
|
1040
1040
|
return this.has(r) && delete this.__data__[r];
|
|
1041
1041
|
}
|
|
1042
1042
|
function Xn(r) {
|
|
@@ -1055,7 +1055,7 @@ function Qa() {
|
|
|
1055
1055
|
var m = this.__data__;
|
|
1056
1056
|
return m[r] = we && c === void 0 ? o : c, this;
|
|
1057
1057
|
}
|
|
1058
|
-
ae.prototype.clear =
|
|
1058
|
+
ae.prototype.clear = Qn, ae.prototype.delete = Jn, ae.prototype.get = Xn, ae.prototype.has = er, ae.prototype.set = tr;
|
|
1059
1059
|
function X(r) {
|
|
1060
1060
|
var c = -1, m = r ? r.length : 0;
|
|
1061
1061
|
for (this.clear(); ++c < m; ) {
|
|
@@ -1141,7 +1141,7 @@ function Qa() {
|
|
|
1141
1141
|
function _r(r, c) {
|
|
1142
1142
|
var m = Ze(r) || br(r) ? In(r.length, String) : [], M = m.length, B = !!M;
|
|
1143
1143
|
for (var Y in r)
|
|
1144
|
-
ne.call(r, Y) && !(B && (Y == "length" ||
|
|
1144
|
+
ne.call(r, Y) && !(B && (Y == "length" || Ur(Y, M))) && m.push(Y);
|
|
1145
1145
|
return m;
|
|
1146
1146
|
}
|
|
1147
1147
|
function Pt(r, c, m) {
|
|
@@ -1155,7 +1155,7 @@ function Qa() {
|
|
|
1155
1155
|
return -1;
|
|
1156
1156
|
}
|
|
1157
1157
|
function gr(r, c) {
|
|
1158
|
-
return r &&
|
|
1158
|
+
return r && Lt(c, Qe(c), r);
|
|
1159
1159
|
}
|
|
1160
1160
|
function qe(r, c, m, M, B, Y, ee) {
|
|
1161
1161
|
var $;
|
|
@@ -1171,15 +1171,15 @@ function Qa() {
|
|
|
1171
1171
|
var pe = ie(r), Vt = pe == S || pe == E;
|
|
1172
1172
|
if (Hr(r))
|
|
1173
1173
|
return Tr(r, c);
|
|
1174
|
-
if (pe ==
|
|
1174
|
+
if (pe == C || pe == d || Vt && !Y) {
|
|
1175
1175
|
if (vt(r))
|
|
1176
1176
|
return Y ? r : {};
|
|
1177
1177
|
if ($ = Ir(Vt ? {} : r), !c)
|
|
1178
|
-
return
|
|
1178
|
+
return Lr(r, gr($, r));
|
|
1179
1179
|
} else {
|
|
1180
1180
|
if (!R[pe])
|
|
1181
1181
|
return Y ? r : {};
|
|
1182
|
-
$ =
|
|
1182
|
+
$ = Gr(r, pe, qe, c);
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
ee || (ee = new me());
|
|
@@ -1187,9 +1187,9 @@ function Qa() {
|
|
|
1187
1187
|
if (Bt)
|
|
1188
1188
|
return Bt;
|
|
1189
1189
|
if (ee.set(r, $), !At)
|
|
1190
|
-
var bt = m ?
|
|
1191
|
-
return
|
|
1192
|
-
bt && (Ee =
|
|
1190
|
+
var bt = m ? Cr(r) : Qe(r);
|
|
1191
|
+
return Cn(bt || r, function(Je, Ee) {
|
|
1192
|
+
bt && (Ee = Je, Je = r[Ee]), Pt($, Ee, qe(Je, c, m, M, Ee, r, ee));
|
|
1193
1193
|
}), $;
|
|
1194
1194
|
}
|
|
1195
1195
|
function wr(r) {
|
|
@@ -1205,7 +1205,7 @@ function Qa() {
|
|
|
1205
1205
|
function Mr(r) {
|
|
1206
1206
|
if (!Re(r) || Vr(r))
|
|
1207
1207
|
return !1;
|
|
1208
|
-
var c =
|
|
1208
|
+
var c = Ut(r) || vt(r) ? Vn : O;
|
|
1209
1209
|
return c.test(oe(r));
|
|
1210
1210
|
}
|
|
1211
1211
|
function Fr(r) {
|
|
@@ -1240,7 +1240,7 @@ function Qa() {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
function Nr(r, c, m) {
|
|
1242
1242
|
var M = c ? m(Mt(r), !0) : Mt(r);
|
|
1243
|
-
return wt(M,
|
|
1243
|
+
return wt(M, Ln, new r.constructor());
|
|
1244
1244
|
}
|
|
1245
1245
|
function Rr(r) {
|
|
1246
1246
|
return Et ? Object(Et.call(r)) : {};
|
|
@@ -1255,7 +1255,7 @@ function Qa() {
|
|
|
1255
1255
|
c[m] = r[m];
|
|
1256
1256
|
return c;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Lt(r, c, m, M) {
|
|
1259
1259
|
m || (m = {});
|
|
1260
1260
|
for (var B = -1, Y = c.length; ++B < Y; ) {
|
|
1261
1261
|
var ee = c[B], $ = void 0;
|
|
@@ -1263,23 +1263,23 @@ function Qa() {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
return m;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1266
|
+
function Lr(r, c) {
|
|
1267
|
+
return Lt(r, Ct(r), c);
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return vr(r,
|
|
1269
|
+
function Cr(r) {
|
|
1270
|
+
return vr(r, Qe, Ct);
|
|
1271
1271
|
}
|
|
1272
1272
|
function Ne(r, c) {
|
|
1273
1273
|
var m = r.__data__;
|
|
1274
1274
|
return Ar(c) ? m[typeof c == "string" ? "string" : "hash"] : m.map;
|
|
1275
1275
|
}
|
|
1276
1276
|
function fe(r, c) {
|
|
1277
|
-
var m =
|
|
1277
|
+
var m = Gn(r, c);
|
|
1278
1278
|
return Mr(m) ? m : void 0;
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var Ct = Nt ? ze(Nt, Object) : jr, ie = xr;
|
|
1281
1281
|
(Ye && ie(new Ye(new ArrayBuffer(1))) != f || ge && ie(new ge()) != F || $e && ie($e.resolve()) != P || je && ie(new je()) != A || Ke && ie(new Ke()) != z) && (ie = function(r) {
|
|
1282
|
-
var c = De.call(r), m = c ==
|
|
1282
|
+
var c = De.call(r), m = c == C ? r.constructor : void 0, M = m ? oe(m) : void 0;
|
|
1283
1283
|
if (M)
|
|
1284
1284
|
switch (M) {
|
|
1285
1285
|
case jn:
|
|
@@ -1302,7 +1302,7 @@ function Qa() {
|
|
|
1302
1302
|
function Ir(r) {
|
|
1303
1303
|
return typeof r.constructor == "function" && !Ot(r) ? wr(Bn(r)) : {};
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function Gr(r, c, m, M) {
|
|
1306
1306
|
var B = r.constructor;
|
|
1307
1307
|
switch (c) {
|
|
1308
1308
|
case b:
|
|
@@ -1325,17 +1325,17 @@ function Qa() {
|
|
|
1325
1325
|
case F:
|
|
1326
1326
|
return Dr(r, M, m);
|
|
1327
1327
|
case I:
|
|
1328
|
-
case
|
|
1328
|
+
case G:
|
|
1329
1329
|
return new B(r);
|
|
1330
|
-
case
|
|
1330
|
+
case L:
|
|
1331
1331
|
return kr(r);
|
|
1332
1332
|
case A:
|
|
1333
1333
|
return Nr(r, M, m);
|
|
1334
|
-
case
|
|
1334
|
+
case U:
|
|
1335
1335
|
return Rr(r);
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Ur(r, c) {
|
|
1339
1339
|
return c = c ?? u, !!c && (typeof r == "number" || K.test(r)) && r > -1 && r % 1 == 0 && r < c;
|
|
1340
1340
|
}
|
|
1341
1341
|
function Ar(r) {
|
|
@@ -1372,14 +1372,14 @@ function Qa() {
|
|
|
1372
1372
|
return zr(r) && ne.call(r, "callee") && (!zn.call(r, "callee") || De.call(r) == d);
|
|
1373
1373
|
}
|
|
1374
1374
|
var Ze = Array.isArray;
|
|
1375
|
-
function
|
|
1376
|
-
return r != null && Yr(r.length) && !
|
|
1375
|
+
function Gt(r) {
|
|
1376
|
+
return r != null && Yr(r.length) && !Ut(r);
|
|
1377
1377
|
}
|
|
1378
1378
|
function zr(r) {
|
|
1379
|
-
return $r(r) &&
|
|
1379
|
+
return $r(r) && Gt(r);
|
|
1380
1380
|
}
|
|
1381
1381
|
var Hr = Yn || Kr;
|
|
1382
|
-
function
|
|
1382
|
+
function Ut(r) {
|
|
1383
1383
|
var c = Re(r) ? De.call(r) : "";
|
|
1384
1384
|
return c == S || c == E;
|
|
1385
1385
|
}
|
|
@@ -1393,8 +1393,8 @@ function Qa() {
|
|
|
1393
1393
|
function $r(r) {
|
|
1394
1394
|
return !!r && typeof r == "object";
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1396
|
+
function Qe(r) {
|
|
1397
|
+
return Gt(r) ? _r(r) : Fr(r);
|
|
1398
1398
|
}
|
|
1399
1399
|
function jr() {
|
|
1400
1400
|
return [];
|
|
@@ -1403,10 +1403,10 @@ function Qa() {
|
|
|
1403
1403
|
return !1;
|
|
1404
1404
|
}
|
|
1405
1405
|
t.exports = Br;
|
|
1406
|
-
})(
|
|
1406
|
+
})(Ue, Ue.exports)), Ue.exports;
|
|
1407
1407
|
}
|
|
1408
|
-
|
|
1409
|
-
const Z = (t, n) => new Date(t.getTime() -
|
|
1408
|
+
Ja();
|
|
1409
|
+
const Z = (t, n) => new Date(t.getTime() - Qa(n, t));
|
|
1410
1410
|
class V {
|
|
1411
1411
|
timeframeText;
|
|
1412
1412
|
key;
|
|
@@ -1675,7 +1675,7 @@ v.FIFTEEN_MIN, new V({
|
|
|
1675
1675
|
timeframeText: "Week",
|
|
1676
1676
|
timeframeLength: () => {
|
|
1677
1677
|
const t = Be(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
1678
|
-
return (Ce(
|
|
1678
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1679
1679
|
},
|
|
1680
1680
|
defaultResponseGranularity: "daily",
|
|
1681
1681
|
dataGranularity: "daily",
|
|
@@ -1689,7 +1689,7 @@ v.FIFTEEN_MIN, new V({
|
|
|
1689
1689
|
timeframeText: "Month",
|
|
1690
1690
|
timeframeLength: () => {
|
|
1691
1691
|
const t = he(/* @__PURE__ */ new Date());
|
|
1692
|
-
return (Ce(
|
|
1692
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1693
1693
|
},
|
|
1694
1694
|
defaultResponseGranularity: "daily",
|
|
1695
1695
|
dataGranularity: "daily",
|
|
@@ -1701,7 +1701,7 @@ v.FIFTEEN_MIN, new V({
|
|
|
1701
1701
|
timeframeText: "Quarter",
|
|
1702
1702
|
timeframeLength: () => {
|
|
1703
1703
|
const t = ye(/* @__PURE__ */ new Date());
|
|
1704
|
-
return (Ce(
|
|
1704
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1705
1705
|
},
|
|
1706
1706
|
defaultResponseGranularity: "daily",
|
|
1707
1707
|
dataGranularity: "daily",
|
|
@@ -1713,7 +1713,7 @@ v.FIFTEEN_MIN, new V({
|
|
|
1713
1713
|
timeframeText: "Year",
|
|
1714
1714
|
timeframeLength: () => {
|
|
1715
1715
|
const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
|
|
1716
|
-
return (Ce(
|
|
1716
|
+
return (Le(Ce(/* @__PURE__ */ new Date(), 1)).getTime() - t.getTime()) / 1e3;
|
|
1717
1717
|
},
|
|
1718
1718
|
defaultResponseGranularity: "daily",
|
|
1719
1719
|
dataGranularity: "daily",
|
|
@@ -1883,7 +1883,7 @@ function di() {
|
|
|
1883
1883
|
function h(s, p) {
|
|
1884
1884
|
t = {}, a = [], n = 0, o = 0, u = 1, T(s), u = Math.min(u, d);
|
|
1885
1885
|
for (var g = Math.ceil(Math.log(u) / Math.LN10), D = 0; D < a.length; D++) p.writeStringField(1, a[D]);
|
|
1886
|
-
return o !== 2 && p.writeVarintField(2, o), g !== 6 && p.writeVarintField(3, g), s.type === "FeatureCollection" ? p.writeMessage(4, I, s) : s.type === "Feature" ? p.writeMessage(5,
|
|
1886
|
+
return o !== 2 && p.writeVarintField(2, o), g !== 6 && p.writeVarintField(3, g), s.type === "FeatureCollection" ? p.writeMessage(4, I, s) : s.type === "Feature" ? p.writeMessage(5, C, s) : p.writeMessage(6, P, s), t = null, p.finish();
|
|
1887
1887
|
}
|
|
1888
1888
|
function T(s) {
|
|
1889
1889
|
var p, g;
|
|
@@ -1919,26 +1919,26 @@ function di() {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
function I(s, p) {
|
|
1921
1921
|
for (var g = 0; g < s.features.length; g++)
|
|
1922
|
-
p.writeMessage(1,
|
|
1923
|
-
|
|
1922
|
+
p.writeMessage(1, C, s.features[g]);
|
|
1923
|
+
L(s, p, !0);
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
s.geometry !== null && p.writeMessage(1, P, s.geometry), s.id !== void 0 && (typeof s.id == "number" && s.id % 1 === 0 ? p.writeSVarintField(12, s.id) : p.writeStringField(11, s.id)), s.properties &&
|
|
1925
|
+
function C(s, p) {
|
|
1926
|
+
s.geometry !== null && p.writeMessage(1, P, s.geometry), s.id !== void 0 && (typeof s.id == "number" && s.id % 1 === 0 ? p.writeSVarintField(12, s.id) : p.writeStringField(11, s.id)), s.properties && L(s.properties, p), L(s, p, !0);
|
|
1927
1927
|
}
|
|
1928
1928
|
function P(s, p) {
|
|
1929
1929
|
p.writeVarintField(1, y[s.type]);
|
|
1930
1930
|
var g = s.coordinates;
|
|
1931
|
-
if (s.type === "Point")
|
|
1932
|
-
else if (s.type === "MultiPoint")
|
|
1933
|
-
else if (s.type === "LineString")
|
|
1931
|
+
if (s.type === "Point") G(g, p);
|
|
1932
|
+
else if (s.type === "MultiPoint") U(g, p);
|
|
1933
|
+
else if (s.type === "LineString") U(g, p);
|
|
1934
1934
|
else if (s.type === "MultiLineString") z(g, p);
|
|
1935
1935
|
else if (s.type === "Polygon") z(g, p, !0);
|
|
1936
1936
|
else if (s.type === "MultiPolygon") b(g, p);
|
|
1937
1937
|
else if (s.type === "GeometryCollection")
|
|
1938
1938
|
for (var D = 0; D < s.geometries.length; D++) p.writeMessage(4, P, s.geometries[D]);
|
|
1939
|
-
|
|
1939
|
+
L(s, p, !0);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function L(s, p, g) {
|
|
1942
1942
|
var D = [], e = 0;
|
|
1943
1943
|
for (var i in s)
|
|
1944
1944
|
g && _(i, s.type) || (p.writeMessage(13, A, s[i]), D.push(t[i]), D.push(e++));
|
|
@@ -1950,11 +1950,11 @@ function di() {
|
|
|
1950
1950
|
g === "string" ? p.writeStringField(1, s) : g === "boolean" ? p.writeBooleanField(5, s) : g === "object" ? p.writeStringField(6, JSON.stringify(s)) : g === "number" && (s % 1 !== 0 ? p.writeDoubleField(2, s) : s >= 0 ? p.writeVarintField(3, s) : p.writeVarintField(4, -s));
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function G(s, p) {
|
|
1954
1954
|
for (var g = [], D = 0; D < o; D++) g.push(Math.round(s[D] * u));
|
|
1955
1955
|
p.writePackedSVarint(3, g);
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function U(s, p) {
|
|
1958
1958
|
var g = [];
|
|
1959
1959
|
f(g, s), p.writePackedSVarint(3, g);
|
|
1960
1960
|
}
|
|
@@ -2037,16 +2037,16 @@ function mi() {
|
|
|
2037
2037
|
return _.type = "Point", f.readMessage(I, _);
|
|
2038
2038
|
}
|
|
2039
2039
|
function E(f, _, s) {
|
|
2040
|
-
f === 1 ? _.features.push(N(s, {})) : f === 13 ? n.push(P(s)) : f === 15 &&
|
|
2040
|
+
f === 1 ? _.features.push(N(s, {})) : f === 13 ? n.push(P(s)) : f === 15 && L(s, _);
|
|
2041
2041
|
}
|
|
2042
2042
|
function F(f, _, s) {
|
|
2043
|
-
f === 1 ? _.geometry = S(s, {}) : f === 11 ? _.id = s.readString() : f === 12 ? _.id = s.readSVarint() : f === 13 ? n.push(P(s)) : f === 14 ? _.properties =
|
|
2043
|
+
f === 1 ? _.geometry = S(s, {}) : f === 11 ? _.id = s.readString() : f === 12 ? _.id = s.readSVarint() : f === 13 ? n.push(P(s)) : f === 14 ? _.properties = L(s, {}) : f === 15 && L(s, _);
|
|
2044
2044
|
}
|
|
2045
2045
|
function I(f, _, s) {
|
|
2046
|
-
f === 1 ? _.type = d[s.readVarint()] : f === 2 ? a = s.readPackedVarint() : f === 3 ?
|
|
2046
|
+
f === 1 ? _.type = d[s.readVarint()] : f === 2 ? a = s.readPackedVarint() : f === 3 ? C(_, s, _.type) : f === 4 ? (_.geometries = _.geometries || [], _.geometries.push(S(s, {}))) : f === 13 ? n.push(P(s)) : f === 15 && L(s, _);
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2049
|
-
s === "Point" ? f.coordinates = A(_) : s === "MultiPoint" || s === "LineString" ? f.coordinates =
|
|
2048
|
+
function C(f, _, s) {
|
|
2049
|
+
s === "Point" ? f.coordinates = A(_) : s === "MultiPoint" || s === "LineString" ? f.coordinates = U(_) : s === "MultiLineString" ? f.coordinates = z(_) : s === "Polygon" ? f.coordinates = z(_, !0) : s === "MultiPolygon" && (f.coordinates = b(_));
|
|
2050
2050
|
}
|
|
2051
2051
|
function P(f) {
|
|
2052
2052
|
for (var _ = f.readVarint() + f.pos, s = null; f.pos < _; ) {
|
|
@@ -2055,7 +2055,7 @@ function mi() {
|
|
|
2055
2055
|
}
|
|
2056
2056
|
return s;
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function L(f, _) {
|
|
2059
2059
|
for (var s = f.readVarint() + f.pos; f.pos < s; ) _[t[f.readVarint()]] = n[f.readVarint()];
|
|
2060
2060
|
return n = [], _;
|
|
2061
2061
|
}
|
|
@@ -2063,7 +2063,7 @@ function mi() {
|
|
|
2063
2063
|
for (var _ = f.readVarint() + f.pos, s = []; f.pos < _; ) s.push(f.readSVarint() / u);
|
|
2064
2064
|
return s;
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function G(f, _, s, p) {
|
|
2067
2067
|
var g = 0, D = [], e, i, l = [];
|
|
2068
2068
|
for (i = 0; i < o; i++) l[i] = 0;
|
|
2069
2069
|
for (; s ? g < s : f.pos < _; ) {
|
|
@@ -2073,20 +2073,20 @@ function mi() {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
return p && D.push(D[0]), D;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
return
|
|
2076
|
+
function U(f) {
|
|
2077
|
+
return G(f, f.readVarint() + f.pos);
|
|
2078
2078
|
}
|
|
2079
2079
|
function z(f, _) {
|
|
2080
2080
|
var s = f.readVarint() + f.pos;
|
|
2081
|
-
if (!a) return [
|
|
2082
|
-
for (var p = [], g = 0; g < a.length; g++) p.push(
|
|
2081
|
+
if (!a) return [G(f, s, null, _)];
|
|
2082
|
+
for (var p = [], g = 0; g < a.length; g++) p.push(G(f, s, a[g], _));
|
|
2083
2083
|
return a = null, p;
|
|
2084
2084
|
}
|
|
2085
2085
|
function b(f) {
|
|
2086
2086
|
var _ = f.readVarint() + f.pos;
|
|
2087
|
-
if (!a) return [[
|
|
2087
|
+
if (!a) return [[G(f, _, null, !0)]];
|
|
2088
2088
|
for (var s = [], p = 1, g = 0; g < a[0]; g++) {
|
|
2089
|
-
for (var D = [], e = 0; e < a[p]; e++) D.push(
|
|
2089
|
+
for (var D = [], e = 0; e < a[p]; e++) D.push(G(f, _, a[p + 1 + e], !0));
|
|
2090
2090
|
p += a[p] + 1, s.push(D);
|
|
2091
2091
|
}
|
|
2092
2092
|
return a = null, s;
|
|
@@ -2097,10 +2097,10 @@ var dn;
|
|
|
2097
2097
|
function fi() {
|
|
2098
2098
|
return dn || (dn = 1, Ie.encode = di(), Ie.decode = mi()), Ie;
|
|
2099
2099
|
}
|
|
2100
|
-
var pi = fi(),
|
|
2100
|
+
var pi = fi(), Ge = {};
|
|
2101
2101
|
var mn;
|
|
2102
2102
|
function yi() {
|
|
2103
|
-
return mn || (mn = 1,
|
|
2103
|
+
return mn || (mn = 1, Ge.read = function(t, n, a, o, u) {
|
|
2104
2104
|
var d, y, h = u * 8 - o - 1, T = (1 << h) - 1, N = T >> 1, S = -7, E = a ? u - 1 : 0, F = a ? -1 : 1, I = t[n + E];
|
|
2105
2105
|
for (E += F, d = I & (1 << -S) - 1, I >>= -S, S += h; S > 0; d = d * 256 + t[n + E], E += F, S -= 8)
|
|
2106
2106
|
;
|
|
@@ -2114,14 +2114,14 @@ function yi() {
|
|
|
2114
2114
|
y = y + Math.pow(2, o), d = d - N;
|
|
2115
2115
|
}
|
|
2116
2116
|
return (I ? -1 : 1) * y * Math.pow(2, d - o);
|
|
2117
|
-
},
|
|
2118
|
-
var y, h, T, N = d * 8 - u - 1, S = (1 << N) - 1, E = S >> 1, F = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, I = o ? 0 : d - 1,
|
|
2119
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, y = S) : (y = Math.floor(Math.log(n) / Math.LN2), n * (T = Math.pow(2, -y)) < 1 && (y--, T *= 2), y + E >= 1 ? n += F / T : n += F * Math.pow(2, 1 - E), n * T >= 2 && (y++, T /= 2), y + E >= S ? (h = 0, y = S) : y + E >= 1 ? (h = (n * T - 1) * Math.pow(2, u), y = y + E) : (h = n * Math.pow(2, E - 1) * Math.pow(2, u), y = 0)); u >= 8; t[a + I] = h & 255, I +=
|
|
2117
|
+
}, Ge.write = function(t, n, a, o, u, d) {
|
|
2118
|
+
var y, h, T, N = d * 8 - u - 1, S = (1 << N) - 1, E = S >> 1, F = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, I = o ? 0 : d - 1, C = o ? 1 : -1, P = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
2119
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (h = isNaN(n) ? 1 : 0, y = S) : (y = Math.floor(Math.log(n) / Math.LN2), n * (T = Math.pow(2, -y)) < 1 && (y--, T *= 2), y + E >= 1 ? n += F / T : n += F * Math.pow(2, 1 - E), n * T >= 2 && (y++, T /= 2), y + E >= S ? (h = 0, y = S) : y + E >= 1 ? (h = (n * T - 1) * Math.pow(2, u), y = y + E) : (h = n * Math.pow(2, E - 1) * Math.pow(2, u), y = 0)); u >= 8; t[a + I] = h & 255, I += C, h /= 256, u -= 8)
|
|
2120
2120
|
;
|
|
2121
|
-
for (y = y << u | h, N += u; N > 0; t[a + I] = y & 255, I +=
|
|
2121
|
+
for (y = y << u | h, N += u; N > 0; t[a + I] = y & 255, I += C, y /= 256, N -= 8)
|
|
2122
2122
|
;
|
|
2123
|
-
t[a + I -
|
|
2124
|
-
}),
|
|
2123
|
+
t[a + I - C] |= P * 128;
|
|
2124
|
+
}), Ge;
|
|
2125
2125
|
}
|
|
2126
2126
|
var st, fn;
|
|
2127
2127
|
function hi() {
|
|
@@ -2330,7 +2330,7 @@ function hi() {
|
|
|
2330
2330
|
i.length && this.writeMessage(e, I, i);
|
|
2331
2331
|
},
|
|
2332
2332
|
writePackedSVarint: function(e, i) {
|
|
2333
|
-
i.length && this.writeMessage(e,
|
|
2333
|
+
i.length && this.writeMessage(e, C, i);
|
|
2334
2334
|
},
|
|
2335
2335
|
writePackedBoolean: function(e, i) {
|
|
2336
2336
|
i.length && this.writeMessage(e, A, i);
|
|
@@ -2339,13 +2339,13 @@ function hi() {
|
|
|
2339
2339
|
i.length && this.writeMessage(e, P, i);
|
|
2340
2340
|
},
|
|
2341
2341
|
writePackedDouble: function(e, i) {
|
|
2342
|
-
i.length && this.writeMessage(e,
|
|
2342
|
+
i.length && this.writeMessage(e, L, i);
|
|
2343
2343
|
},
|
|
2344
2344
|
writePackedFixed32: function(e, i) {
|
|
2345
|
-
i.length && this.writeMessage(e,
|
|
2345
|
+
i.length && this.writeMessage(e, G, i);
|
|
2346
2346
|
},
|
|
2347
2347
|
writePackedSFixed32: function(e, i) {
|
|
2348
|
-
i.length && this.writeMessage(e,
|
|
2348
|
+
i.length && this.writeMessage(e, U, i);
|
|
2349
2349
|
},
|
|
2350
2350
|
writePackedFixed64: function(e, i) {
|
|
2351
2351
|
i.length && this.writeMessage(e, z, i);
|
|
@@ -2419,22 +2419,22 @@ function hi() {
|
|
|
2419
2419
|
function I(e, i) {
|
|
2420
2420
|
for (var l = 0; l < e.length; l++) i.writeVarint(e[l]);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function C(e, i) {
|
|
2423
2423
|
for (var l = 0; l < e.length; l++) i.writeSVarint(e[l]);
|
|
2424
2424
|
}
|
|
2425
2425
|
function P(e, i) {
|
|
2426
2426
|
for (var l = 0; l < e.length; l++) i.writeFloat(e[l]);
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function L(e, i) {
|
|
2429
2429
|
for (var l = 0; l < e.length; l++) i.writeDouble(e[l]);
|
|
2430
2430
|
}
|
|
2431
2431
|
function A(e, i) {
|
|
2432
2432
|
for (var l = 0; l < e.length; l++) i.writeBoolean(e[l]);
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2434
|
+
function G(e, i) {
|
|
2435
2435
|
for (var l = 0; l < e.length; l++) i.writeFixed32(e[l]);
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function U(e, i) {
|
|
2438
2438
|
for (var l = 0; l < e.length; l++) i.writeSFixed32(e[l]);
|
|
2439
2439
|
}
|
|
2440
2440
|
function z(e, i) {
|
|
@@ -2456,8 +2456,8 @@ function hi() {
|
|
|
2456
2456
|
for (var w = "", x = i; x < l; ) {
|
|
2457
2457
|
var k = e[x], O = null, K = k > 239 ? 4 : k > 223 ? 3 : k > 191 ? 2 : 1;
|
|
2458
2458
|
if (x + K > l) break;
|
|
2459
|
-
var R, W,
|
|
2460
|
-
K === 1 ? k < 128 && (O = k) : K === 2 ? (R = e[x + 1], (R & 192) === 128 && (O = (k & 31) << 6 | R & 63, O <= 127 && (O = null))) : K === 3 ? (R = e[x + 1], W = e[x + 2], (R & 192) === 128 && (W & 192) === 128 && (O = (k & 15) << 12 | (R & 63) << 6 | W & 63, (O <= 2047 || O >= 55296 && O <= 57343) && (O = null))) : K === 4 && (R = e[x + 1], W = e[x + 2],
|
|
2459
|
+
var R, W, Q;
|
|
2460
|
+
K === 1 ? k < 128 && (O = k) : K === 2 ? (R = e[x + 1], (R & 192) === 128 && (O = (k & 31) << 6 | R & 63, O <= 127 && (O = null))) : K === 3 ? (R = e[x + 1], W = e[x + 2], (R & 192) === 128 && (W & 192) === 128 && (O = (k & 15) << 12 | (R & 63) << 6 | W & 63, (O <= 2047 || O >= 55296 && O <= 57343) && (O = null))) : K === 4 && (R = e[x + 1], W = e[x + 2], Q = e[x + 3], (R & 192) === 128 && (W & 192) === 128 && (Q & 192) === 128 && (O = (k & 15) << 18 | (R & 63) << 12 | (W & 63) << 6 | Q & 63, (O <= 65535 || O >= 1114112) && (O = null))), O === null ? (O = 65533, K = 1) : O > 65535 && (O -= 65536, w += String.fromCharCode(O >>> 10 & 1023 | 55296), O = 56320 | O & 1023), w += String.fromCharCode(O), x += K;
|
|
2461
2461
|
}
|
|
2462
2462
|
return w;
|
|
2463
2463
|
}
|
|
@@ -2525,15 +2525,15 @@ function Ri({
|
|
|
2525
2525
|
emptyCountryFill: o
|
|
2526
2526
|
}) {
|
|
2527
2527
|
const { formatMetric: u, formatMetricRange: d } = Fe.useMetricFormat({ unit: a }), y = j(() => {
|
|
2528
|
-
const
|
|
2529
|
-
for (const P of Object.keys(
|
|
2530
|
-
pt.find((
|
|
2531
|
-
return
|
|
2528
|
+
const C = { ...t.value };
|
|
2529
|
+
for (const P of Object.keys(C))
|
|
2530
|
+
pt.find((L) => L.code === P) || delete C[P];
|
|
2531
|
+
return C;
|
|
2532
2532
|
}), h = j(() => Object.values(y.value)), T = j(() => Object.keys(y.value).length), N = j(() => T.value < hn - 1 ? T.value : hn), S = j(() => !n.value?.includes("latency")), E = j(() => {
|
|
2533
|
-
const
|
|
2533
|
+
const C = [];
|
|
2534
2534
|
if (h.value.length > 10) {
|
|
2535
|
-
const P = [...h.value].sort((b, f) => b - f),
|
|
2536
|
-
return
|
|
2535
|
+
const P = [...h.value].sort((b, f) => b - f), L = Ni(P, 0.75), A = h.value.filter((b) => b >= L), G = h.value.filter((b) => b < L), U = ut(A, 3), z = ut(G, 2);
|
|
2536
|
+
return C.push(...U, ...z), C;
|
|
2537
2537
|
}
|
|
2538
2538
|
return ut(h.value, N.value);
|
|
2539
2539
|
}), F = j(() => h.value.length === 1 ? [{
|
|
@@ -2542,26 +2542,26 @@ function Ri({
|
|
|
2542
2542
|
approximate: S.value,
|
|
2543
2543
|
showUnit: !a.value.includes("count")
|
|
2544
2544
|
}).trim()
|
|
2545
|
-
}] : E.value.map((
|
|
2546
|
-
const
|
|
2547
|
-
let
|
|
2548
|
-
return P === 0 ?
|
|
2545
|
+
}] : E.value.map((C, P) => {
|
|
2546
|
+
const L = P === 0 ? Math.max(...E.value) : E.value[P - 1], A = C, G = L;
|
|
2547
|
+
let U = "";
|
|
2548
|
+
return P === 0 ? U = `> ${u(A, {
|
|
2549
2549
|
showUnit: !a.value.includes("count"),
|
|
2550
2550
|
approximate: S.value
|
|
2551
|
-
})}`.trim() : P === E.value.length - 1 ?
|
|
2551
|
+
})}`.trim() : P === E.value.length - 1 ? U = `< ${u(G, {
|
|
2552
2552
|
showUnit: !a.value.includes("count"),
|
|
2553
2553
|
approximate: S.value
|
|
2554
|
-
})}`.trim() :
|
|
2554
|
+
})}`.trim() : U = d(A, G, {
|
|
2555
2555
|
showUnit: !a.value.includes("count"),
|
|
2556
2556
|
approximate: S.value
|
|
2557
2557
|
}).trim(), {
|
|
2558
2558
|
color: I(A),
|
|
2559
|
-
range:
|
|
2559
|
+
range: U
|
|
2560
2560
|
};
|
|
2561
|
-
})), I = (
|
|
2562
|
-
if (
|
|
2561
|
+
})), I = (C) => {
|
|
2562
|
+
if (C === 0)
|
|
2563
2563
|
return o.value;
|
|
2564
|
-
const P = E.value.findIndex((
|
|
2564
|
+
const P = E.value.findIndex((L) => C >= L);
|
|
2565
2565
|
return P === -1 ? lt[lt.length - 1] : lt[P] ?? o.value;
|
|
2566
2566
|
};
|
|
2567
2567
|
return {
|
|
@@ -2624,7 +2624,7 @@ const ct = (t) => {
|
|
|
2624
2624
|
emptyCountryFill: o("--kui-color-background-neutral-weaker", yn),
|
|
2625
2625
|
waterFill: o("--kui-color-background", pn)
|
|
2626
2626
|
};
|
|
2627
|
-
},
|
|
2627
|
+
}, Li = { class: "legend" }, Ci = {
|
|
2628
2628
|
key: 0,
|
|
2629
2629
|
class: "legend-title"
|
|
2630
2630
|
}, Oi = { class: "legend-text" }, Ii = /* @__PURE__ */ ft({
|
|
@@ -2635,9 +2635,9 @@ const ct = (t) => {
|
|
|
2635
2635
|
data: {}
|
|
2636
2636
|
},
|
|
2637
2637
|
setup(t) {
|
|
2638
|
-
return (n, a) => (
|
|
2639
|
-
t.metric ? (
|
|
2640
|
-
(
|
|
2638
|
+
return (n, a) => (J(), re("div", Li, [
|
|
2639
|
+
t.metric ? (J(), re("div", Ci, _e(t.title), 1)) : Me("", !0),
|
|
2640
|
+
(J(!0), re(qr, null, Wr(t.data, (o, u) => (J(), re("div", {
|
|
2641
2641
|
key: u,
|
|
2642
2642
|
class: "legend-item"
|
|
2643
2643
|
}, [
|
|
@@ -2654,7 +2654,7 @@ const ct = (t) => {
|
|
|
2654
2654
|
for (const [o, u] of n)
|
|
2655
2655
|
a[o] = u;
|
|
2656
2656
|
return a;
|
|
2657
|
-
},
|
|
2657
|
+
}, Gi = /* @__PURE__ */ ht(Ii, [["__scopeId", "data-v-2858aa0d"]]), Ui = { class: "map-tooltip" }, Ai = { class: "map-tooltip-text" }, Vi = { key: 0 }, Bi = /* @__PURE__ */ ft({
|
|
2658
2658
|
__name: "MapTooltip",
|
|
2659
2659
|
props: {
|
|
2660
2660
|
data: {},
|
|
@@ -2663,15 +2663,15 @@ const ct = (t) => {
|
|
|
2663
2663
|
left: {}
|
|
2664
2664
|
},
|
|
2665
2665
|
setup(t) {
|
|
2666
|
-
return
|
|
2666
|
+
return Qr((n) => ({
|
|
2667
2667
|
v75a0a274: n.left,
|
|
2668
2668
|
v144f4294: n.top,
|
|
2669
2669
|
v6e49e79e: n.data.color
|
|
2670
|
-
})), (n, a) => (
|
|
2670
|
+
})), (n, a) => (J(), re("div", Ui, [
|
|
2671
2671
|
a[0] || (a[0] = te("div", { class: "map-tooltip-color" }, null, -1)),
|
|
2672
2672
|
te("div", Ai, [
|
|
2673
2673
|
te("div", null, _e(t.data.label), 1),
|
|
2674
|
-
t.showValue ? (
|
|
2674
|
+
t.showValue ? (J(), re("span", Vi, _e(t.data.value), 1)) : Me("", !0)
|
|
2675
2675
|
])
|
|
2676
2676
|
]));
|
|
2677
2677
|
}
|
|
@@ -2696,12 +2696,12 @@ const ct = (t) => {
|
|
|
2696
2696
|
},
|
|
2697
2697
|
emits: ["boundsChange"],
|
|
2698
2698
|
setup(t, { emit: n }) {
|
|
2699
|
-
const a = import("./countries-simple-geo-BFUDnSiE.js").then((e) => e.default), o = n, { i18n: u } = Fe.useI18n(), d =
|
|
2699
|
+
const a = import("./countries-simple-geo-BFUDnSiE.js").then((e) => e.default), o = n, { i18n: u } = Fe.useI18n(), d = Jr("app:konnectColorMode", j(() => "light")), { getColor: y, legendData: h } = Fe.useLegendScale({
|
|
2700
2700
|
countryMetrics: ve(() => t.countryMetrics),
|
|
2701
2701
|
metric: ve(() => t.metric),
|
|
2702
2702
|
unit: ve(() => t.metricUnit),
|
|
2703
|
-
emptyCountryFill: ve(() =>
|
|
2704
|
-
}), { formatMetric: T } = Fe.useMetricFormat({ unit: ve(() => t.metricUnit) }), N = se(), S = Xr(), E = se(), F = se(), I = se(null),
|
|
2703
|
+
emptyCountryFill: ve(() => L.value.emptyCountryFill)
|
|
2704
|
+
}), { formatMetric: T } = Fe.useMetricFormat({ unit: ve(() => t.metricUnit) }), N = se(), S = Xr(), E = se(), F = se(), I = se(null), C = se({ left: "0px", top: "0px" }), P = se(!1), L = se(ct()), A = j(() => Object.keys(t.countryMetrics).length === 0 && !t.fitToCountry), G = j(() => ({
|
|
2705
2705
|
"fill-color": [
|
|
2706
2706
|
"match",
|
|
2707
2707
|
[
|
|
@@ -2717,13 +2717,13 @@ const ct = (t) => {
|
|
|
2717
2717
|
...Object.keys(t.countryMetrics).length ? Object.entries(t.countryMetrics).flatMap(([e, i]) => [
|
|
2718
2718
|
e,
|
|
2719
2719
|
y(i)
|
|
2720
|
-
]) : [
|
|
2721
|
-
|
|
2720
|
+
]) : [L.value.emptyCountryFill, L.value.emptyCountryFill],
|
|
2721
|
+
L.value.emptyCountryFill
|
|
2722
2722
|
// default color if no match
|
|
2723
2723
|
],
|
|
2724
2724
|
"fill-opacity": 0.7
|
|
2725
|
-
})),
|
|
2726
|
-
"fill-color":
|
|
2725
|
+
})), U = j(() => ({
|
|
2726
|
+
"fill-color": L.value.waterFill
|
|
2727
2727
|
})), z = j(() => t.withLegend && Object.keys(t.countryMetrics).length > 0), b = j(() => t.metric && u.t(`metrics.${t.metric}`) || ""), f = (e) => {
|
|
2728
2728
|
const i = e.flat(1);
|
|
2729
2729
|
return Array.isArray(i[0]) && Array.isArray(i[0][0]) ? f(i) : i;
|
|
@@ -2757,7 +2757,7 @@ const ct = (t) => {
|
|
|
2757
2757
|
if (i) {
|
|
2758
2758
|
const l = i.geometry?.coordinates;
|
|
2759
2759
|
if (!l) return;
|
|
2760
|
-
const w = f(l), x = w.map((
|
|
2760
|
+
const w = f(l), x = w.map((Q) => Q[1]), k = w.map((Q) => Q[0]), O = Math.min(...x), K = Math.max(...x), R = Math.min(...k), W = Math.max(...k);
|
|
2761
2761
|
F.value?.fitBounds([
|
|
2762
2762
|
[R, O],
|
|
2763
2763
|
[W, K]
|
|
@@ -2796,7 +2796,7 @@ const ct = (t) => {
|
|
|
2796
2796
|
return ea(() => {
|
|
2797
2797
|
D();
|
|
2798
2798
|
}), ta(async () => {
|
|
2799
|
-
|
|
2799
|
+
L.value = ct(E.value);
|
|
2800
2800
|
try {
|
|
2801
2801
|
const e = await a, i = await fetch(e), l = new Uint8Array(await i.arrayBuffer()), w = pi.decode(new gi(l));
|
|
2802
2802
|
I.value = w, F.value = new aa(s.value), F.value.on("load", () => {
|
|
@@ -2807,7 +2807,7 @@ const ct = (t) => {
|
|
|
2807
2807
|
id: "countries-layer",
|
|
2808
2808
|
type: "fill",
|
|
2809
2809
|
source: "countries",
|
|
2810
|
-
paint:
|
|
2810
|
+
paint: G.value
|
|
2811
2811
|
}), F.value?.addSource("lakes", {
|
|
2812
2812
|
type: "geojson",
|
|
2813
2813
|
data: Yi
|
|
@@ -2815,16 +2815,16 @@ const ct = (t) => {
|
|
|
2815
2815
|
id: "lakes-layer",
|
|
2816
2816
|
type: "fill",
|
|
2817
2817
|
source: "lakes",
|
|
2818
|
-
paint:
|
|
2818
|
+
paint: U.value
|
|
2819
2819
|
}), F.value?.on("mousemove", "countries-layer", (x) => {
|
|
2820
2820
|
const k = x.features?.[0];
|
|
2821
2821
|
if (k) {
|
|
2822
|
-
const { iso_a2: O, iso_a2_eh: K, ISO_A2: R, admin: W } = k.properties,
|
|
2822
|
+
const { iso_a2: O, iso_a2_eh: K, ISO_A2: R, admin: W } = k.properties, Q = R ?? O === "-99" ? K : O, q = t.countryMetrics[Q];
|
|
2823
2823
|
q !== void 0 && (N.value = {
|
|
2824
2824
|
label: W,
|
|
2825
2825
|
color: y(q),
|
|
2826
2826
|
value: T(q)
|
|
2827
|
-
}, P.value = !0,
|
|
2827
|
+
}, P.value = !0, C.value = {
|
|
2828
2828
|
left: `${x.point.x}px`,
|
|
2829
2829
|
top: `${x.point.y}px`
|
|
2830
2830
|
});
|
|
@@ -2837,9 +2837,9 @@ const ct = (t) => {
|
|
|
2837
2837
|
console.error(e);
|
|
2838
2838
|
}
|
|
2839
2839
|
}), Pe(d, () => {
|
|
2840
|
-
|
|
2841
|
-
}), Pe([
|
|
2842
|
-
F.value?.isStyleLoaded() && (F.value.getLayer("countries-layer") && F.value.setPaintProperty("countries-layer", "fill-color",
|
|
2840
|
+
L.value = ct(E.value);
|
|
2841
|
+
}), Pe([G, U], () => {
|
|
2842
|
+
F.value?.isStyleLoaded() && (F.value.getLayer("countries-layer") && F.value.setPaintProperty("countries-layer", "fill-color", G.value["fill-color"]), F.value.getLayer("lakes-layer") && F.value.setPaintProperty("lakes-layer", "fill-color", U.value["fill-color"]));
|
|
2843
2843
|
}), Pe(() => t.fitToCountry, (e) => {
|
|
2844
2844
|
F.value && e ? _(e) : !s.value.center && !s.value.zoom ? F.value?.fitBounds([
|
|
2845
2845
|
[-180, -90],
|
|
@@ -2849,8 +2849,8 @@ const ct = (t) => {
|
|
|
2849
2849
|
if (!e) return;
|
|
2850
2850
|
const l = e?.flat(), w = i?.flat();
|
|
2851
2851
|
!(l && w && l.length === w.length && l.every((k, O) => Math.round(k * 100) / 100 === Math.round(w[O] * 100) / 100)) && F.value && F.value.fitBounds(e);
|
|
2852
|
-
}), (e, i) => (
|
|
2853
|
-
A.value ? (
|
|
2852
|
+
}), (e, i) => (J(), re("div", $i, [
|
|
2853
|
+
A.value ? (J(), re("div", ji, [
|
|
2854
2854
|
Xe(e.$slots, "no-location-icon", {}, () => [
|
|
2855
2855
|
na(le(ia), {
|
|
2856
2856
|
color: `var(--kui-icon-color-neutral, ${le(wi)})`,
|
|
@@ -2874,19 +2874,19 @@ const ct = (t) => {
|
|
|
2874
2874
|
ref: E,
|
|
2875
2875
|
class: "analytics-geo-map-container"
|
|
2876
2876
|
}, null, 8, Wi),
|
|
2877
|
-
z.value ? (
|
|
2877
|
+
z.value ? (J(), zt(Gi, {
|
|
2878
2878
|
key: 1,
|
|
2879
2879
|
class: "legend-container",
|
|
2880
2880
|
data: le(h),
|
|
2881
2881
|
metric: t.metric,
|
|
2882
2882
|
title: b.value
|
|
2883
2883
|
}, null, 8, ["data", "metric", "title"])) : Me("", !0),
|
|
2884
|
-
P.value && N.value ? (
|
|
2884
|
+
P.value && N.value ? (J(), zt(bi, {
|
|
2885
2885
|
key: 2,
|
|
2886
2886
|
data: N.value,
|
|
2887
|
-
left:
|
|
2887
|
+
left: C.value.left,
|
|
2888
2888
|
"show-value": t.showTooltipValue,
|
|
2889
|
-
top:
|
|
2889
|
+
top: C.value.top
|
|
2890
2890
|
}, null, 8, ["data", "left", "show-value", "top"])) : Me("", !0)
|
|
2891
2891
|
]));
|
|
2892
2892
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/analytics-geo-map",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/vitals-geo-map.umd.js",
|
|
6
6
|
"module": "./dist/vitals-geo-map.es.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue": "^3.5.35"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@kong-ui-public/analytics-utilities": "^12.
|
|
56
|
+
"@kong-ui-public/analytics-utilities": "^12.46.0",
|
|
57
57
|
"@kong/icons": "^1.62.1",
|
|
58
58
|
"geobuf": "^3.0.2"
|
|
59
59
|
},
|