@kong-ui-public/analytics-geo-map 1.8.11 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vitals-geo-map.es.js +146 -146
- package/dist/vitals-geo-map.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computed as j, defineComponent as ft, openBlock as W, createElementBlock as ne, toDisplayString as
|
|
1
|
+
import { computed as j, defineComponent as ft, openBlock as W, createElementBlock as ne, toDisplayString as he, createCommentVNode as xe, Fragment as Yr, renderList as $r, createElementVNode as X, normalizeStyle as jr, useCssVars as Kr, toRef as Le, ref as we, useId as qr, onUnmounted as Wr, onMounted as Zr, watch as Xe, renderSlot as et, createVNode as Jr, unref as oe, createTextVNode as Qr, createBlock as zt } from "vue";
|
|
2
2
|
import { Map as Xr } from "maplibre-gl";
|
|
3
3
|
import { createI18n as ea, i18nTComponent as ta } from "@kong-ui-public/i18n";
|
|
4
4
|
import { AnalyticsIcon as na } from "@kong/icons";
|
|
5
|
-
const ra = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}" }, aa = { error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_average: "Response size (avg)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_sum: "Response size (sum)", request_size_average: "Request size (avg)", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_sum: "Request size (sum)" }, ia = { windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map", mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map", mobile_zoom_help_text: "Use two fingers to zoom the map" }, oa = "No data in the current time frame", sa = "Once there is traffic, it will display here", la = {
|
|
5
|
+
const ra = { ms: "ms", bytes: "Byte{plural}", count: "request{plural}", "count/minute": "rpm", requests: "request{plural}" }, aa = { error_rate: "Error rate", request_count: "Request count", request_per_minute: "Requests per minute", response_latency_average: "Response latency (avg)", response_latency_p99: "Response latency (p99)", response_latency_p95: "Response latency (p95)", response_latency_p50: "Response latency (p50)", kong_latency_average: "Kong latency (avg)", kong_latency_p99: "Kong latency (p99)", kong_latency_p95: "Kong latency (p95)", kong_latency_p50: "Kong latency (p50)", upstream_latency_average: "Upstream latency (avg)", upstream_latency_p99: "Upstream latency (p99)", upstream_latency_p95: "Upstream latency (p95)", upstream_latency_p50: "Upstream latency (p50)", response_size_average: "Response size (avg)", response_size_p99: "Response size (p99)", response_size_p95: "Response size (p95)", response_size_p50: "Response size (p50)", response_size_sum: "Response size (sum)", request_size_average: "Request size (avg)", request_size_p99: "Request size (p99)", request_size_p95: "Request size (p95)", request_size_p50: "Request size (p50)", request_size_sum: "Request size (sum)", cache_hit_rate: "Cache hit rate" }, ia = { windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map", mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map", mobile_zoom_help_text: "Use two fingers to zoom the map" }, oa = "No data in the current time frame", sa = "Once there is traffic, it will display here", la = {
|
|
6
6
|
metricUnits: ra,
|
|
7
7
|
metrics: aa,
|
|
8
8
|
cooperative_gestures: ia,
|
|
@@ -46,7 +46,7 @@ function da(e, n = {}) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
var v = /* @__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))(v || {});
|
|
49
|
-
const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) => e.filter((n) => n !== "time"),
|
|
49
|
+
const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) => e.filter((n) => n !== "time"), hn = [
|
|
50
50
|
"api",
|
|
51
51
|
"api_package",
|
|
52
52
|
"api_product",
|
|
@@ -60,14 +60,14 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) =
|
|
|
60
60
|
"status_code",
|
|
61
61
|
"status_code_grouped",
|
|
62
62
|
"time"
|
|
63
|
-
],
|
|
63
|
+
], yn = se(hn), pa = [
|
|
64
64
|
"active_services",
|
|
65
65
|
"error_rate",
|
|
66
66
|
"request_count",
|
|
67
67
|
"request_per_minute",
|
|
68
68
|
"response_latency_average"
|
|
69
69
|
], _n = [
|
|
70
|
-
...
|
|
70
|
+
...hn,
|
|
71
71
|
"application",
|
|
72
72
|
"bot_info_action",
|
|
73
73
|
"bot_info_detection_reason",
|
|
@@ -83,7 +83,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) =
|
|
|
83
83
|
"realm",
|
|
84
84
|
"portal_api",
|
|
85
85
|
"principal"
|
|
86
|
-
], gn = se(_n),
|
|
86
|
+
], gn = se(_n), ha = [
|
|
87
87
|
...pa,
|
|
88
88
|
"cache_hit_rate",
|
|
89
89
|
"response_latency_p99",
|
|
@@ -111,7 +111,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) =
|
|
|
111
111
|
"request_size_p50",
|
|
112
112
|
"request_size_average",
|
|
113
113
|
"request_size_sum"
|
|
114
|
-
],
|
|
114
|
+
], ya = [
|
|
115
115
|
"control_plane",
|
|
116
116
|
"control_plane_group",
|
|
117
117
|
"gateway_service",
|
|
@@ -130,7 +130,7 @@ const ma = ["in", "not_in", "selector"], fa = ["empty", "not_empty"], se = (e) =
|
|
|
130
130
|
"status_code_grouped",
|
|
131
131
|
"ai_plugin",
|
|
132
132
|
"principal"
|
|
133
|
-
], wn = se(
|
|
133
|
+
], wn = se(ya), _a = [
|
|
134
134
|
"a2a_context_id",
|
|
135
135
|
"a2a_error",
|
|
136
136
|
"a2a_method",
|
|
@@ -207,7 +207,7 @@ const wa = [
|
|
|
207
207
|
"mcp_tool_name"
|
|
208
208
|
], vn = se(wa);
|
|
209
209
|
[
|
|
210
|
-
...
|
|
210
|
+
...ha
|
|
211
211
|
];
|
|
212
212
|
const va = [
|
|
213
213
|
"control_plane",
|
|
@@ -218,7 +218,7 @@ const va = [
|
|
|
218
218
|
"region",
|
|
219
219
|
"time"
|
|
220
220
|
], xa = se(va);
|
|
221
|
-
new Set(
|
|
221
|
+
new Set(yn), new Set(gn), new Set(wn), new Set(vn), new Set(xa);
|
|
222
222
|
const pt = [
|
|
223
223
|
{ code: "AF", name: "Afghanistan" },
|
|
224
224
|
{ code: "AX", name: "Aland Islands" },
|
|
@@ -537,7 +537,7 @@ const Fa = (e) => ({
|
|
|
537
537
|
Fa([
|
|
538
538
|
.../* @__PURE__ */ new Set([
|
|
539
539
|
...gn,
|
|
540
|
-
...
|
|
540
|
+
...yn,
|
|
541
541
|
...wn,
|
|
542
542
|
...vn,
|
|
543
543
|
...Ma
|
|
@@ -559,8 +559,8 @@ function Pe(e, n) {
|
|
|
559
559
|
return a.setHours(0, 0, 0, 0), a;
|
|
560
560
|
}
|
|
561
561
|
function Be(e, n) {
|
|
562
|
-
const a = Sa(), i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, l = le(e, n?.in), d = l.getDay(),
|
|
563
|
-
return l.setDate(l.getDate() -
|
|
562
|
+
const a = Sa(), i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, l = le(e, n?.in), d = l.getDay(), h = (d < i ? 7 : 0) + d - i;
|
|
563
|
+
return l.setDate(l.getDate() - h), l.setHours(0, 0, 0, 0), l;
|
|
564
564
|
}
|
|
565
565
|
function Ge(e, n, a) {
|
|
566
566
|
const i = le(e, a?.in);
|
|
@@ -573,8 +573,8 @@ function xn(e, n, a) {
|
|
|
573
573
|
return i;
|
|
574
574
|
const l = i.getDate(), d = Te(e, i.getTime());
|
|
575
575
|
d.setMonth(i.getMonth() + n + 1, 0);
|
|
576
|
-
const
|
|
577
|
-
return l >=
|
|
576
|
+
const h = d.getDate();
|
|
577
|
+
return l >= h ? d : (i.setFullYear(
|
|
578
578
|
d.getFullYear(),
|
|
579
579
|
d.getMonth(),
|
|
580
580
|
l
|
|
@@ -676,9 +676,9 @@ function Ca(e) {
|
|
|
676
676
|
second: "2-digit"
|
|
677
677
|
})), tt[e];
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ht(e, n, a, i, l, d, h) {
|
|
680
680
|
const w = /* @__PURE__ */ new Date(0);
|
|
681
|
-
return w.setUTCFullYear(e, n, a), w.setUTCHours(i, l, d,
|
|
681
|
+
return w.setUTCFullYear(e, n, a), w.setUTCHours(i, l, d, h), w;
|
|
682
682
|
}
|
|
683
683
|
const qt = 36e5, Ua = 6e4, nt = {
|
|
684
684
|
timezoneZ: /^(Z)$/,
|
|
@@ -696,21 +696,21 @@ function be(e, n, a) {
|
|
|
696
696
|
return l = parseInt(i[1], 10), Wt(l) ? -(l * qt) : NaN;
|
|
697
697
|
if (i = nt.timezoneHHMM.exec(e), i) {
|
|
698
698
|
l = parseInt(i[2], 10);
|
|
699
|
-
const
|
|
700
|
-
return Wt(l,
|
|
699
|
+
const h = parseInt(i[3], 10);
|
|
700
|
+
return Wt(l, h) ? (d = Math.abs(l) * qt + h * Ua, i[1] === "+" ? -d : d) : NaN;
|
|
701
701
|
}
|
|
702
702
|
if (Ba(e)) {
|
|
703
703
|
n = new Date(n || Date.now());
|
|
704
|
-
const
|
|
704
|
+
const h = a ? n : Aa(n), w = dt(h, e);
|
|
705
705
|
return -(a ? w : Va(n, w, e));
|
|
706
706
|
}
|
|
707
707
|
return NaN;
|
|
708
708
|
}
|
|
709
709
|
function Aa(e) {
|
|
710
|
-
return
|
|
710
|
+
return ht(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
711
711
|
}
|
|
712
712
|
function dt(e, n) {
|
|
713
|
-
const a = La(e, n), i =
|
|
713
|
+
const a = La(e, n), i = ht(a[0], a[1] - 1, a[2], a[3] % 24, a[4], a[5], 0).getTime();
|
|
714
714
|
let l = e.getTime();
|
|
715
715
|
const d = l % 1e3;
|
|
716
716
|
return l -= d >= 0 ? d : 1e3 + d, i - l;
|
|
@@ -789,11 +789,11 @@ function mt(e, n = {}) {
|
|
|
789
789
|
return new Date(e);
|
|
790
790
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
791
791
|
return /* @__PURE__ */ new Date(NaN);
|
|
792
|
-
const i = za(e), { year: l, restDateString: d } = Ha(i.date, a),
|
|
793
|
-
if (
|
|
792
|
+
const i = za(e), { year: l, restDateString: d } = Ha(i.date, a), h = Ya(d, l);
|
|
793
|
+
if (h === null || isNaN(h.getTime()))
|
|
794
794
|
return /* @__PURE__ */ new Date(NaN);
|
|
795
|
-
if (
|
|
796
|
-
const w =
|
|
795
|
+
if (h) {
|
|
796
|
+
const w = h.getTime();
|
|
797
797
|
let S = 0, D;
|
|
798
798
|
if (i.time && (S = $a(i.time), S === null || isNaN(S)))
|
|
799
799
|
return /* @__PURE__ */ new Date(NaN);
|
|
@@ -849,20 +849,20 @@ function Ya(e, n) {
|
|
|
849
849
|
return a = /* @__PURE__ */ new Date(0), i = parseInt(d[1], 10) - 1, en(n, i) ? (a.setUTCFullYear(n, i), a) : /* @__PURE__ */ new Date(NaN);
|
|
850
850
|
if (d = z.DDD.exec(e), d) {
|
|
851
851
|
a = /* @__PURE__ */ new Date(0);
|
|
852
|
-
const
|
|
853
|
-
return qa(n,
|
|
852
|
+
const h = parseInt(d[1], 10);
|
|
853
|
+
return qa(n, h) ? (a.setUTCFullYear(n, 0, h), a) : /* @__PURE__ */ new Date(NaN);
|
|
854
854
|
}
|
|
855
855
|
if (d = z.MMDD.exec(e), d) {
|
|
856
856
|
a = /* @__PURE__ */ new Date(0), i = parseInt(d[1], 10) - 1;
|
|
857
|
-
const
|
|
858
|
-
return en(n, i,
|
|
857
|
+
const h = parseInt(d[2], 10);
|
|
858
|
+
return en(n, i, h) ? (a.setUTCFullYear(n, i, h), a) : /* @__PURE__ */ new Date(NaN);
|
|
859
859
|
}
|
|
860
860
|
if (d = z.Www.exec(e), d)
|
|
861
861
|
return l = parseInt(d[1], 10) - 1, tn(l) ? Xt(n, l) : /* @__PURE__ */ new Date(NaN);
|
|
862
862
|
if (d = z.WwwD.exec(e), d) {
|
|
863
863
|
l = parseInt(d[1], 10) - 1;
|
|
864
|
-
const
|
|
865
|
-
return tn(l,
|
|
864
|
+
const h = parseInt(d[2], 10) - 1;
|
|
865
|
+
return tn(l, h) ? Xt(n, l, h) : /* @__PURE__ */ new Date(NaN);
|
|
866
866
|
}
|
|
867
867
|
return null;
|
|
868
868
|
}
|
|
@@ -923,7 +923,7 @@ function Za(e, n, a) {
|
|
|
923
923
|
if (typeof e == "string" && !e.match(Tn))
|
|
924
924
|
return mt(e, { ...a, timeZone: n });
|
|
925
925
|
e = mt(e, a);
|
|
926
|
-
const i =
|
|
926
|
+
const i = ht(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), l = be(n, new Date(i));
|
|
927
927
|
return new Date(i + l);
|
|
928
928
|
}
|
|
929
929
|
function Ja(e, n) {
|
|
@@ -934,9 +934,9 @@ Ue.exports;
|
|
|
934
934
|
var nn;
|
|
935
935
|
function Qa() {
|
|
936
936
|
return nn || (nn = 1, (function(e, n) {
|
|
937
|
-
var a = 200, i = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]",
|
|
938
|
-
k[d] = k[
|
|
939
|
-
var ee = typeof Oe == "object" && Oe && Oe.Object === Object && Oe,
|
|
937
|
+
var a = 200, i = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", h = "[object Array]", w = "[object Boolean]", S = "[object Date]", D = "[object Error]", y = "[object Function]", E = "[object GeneratorFunction]", L = "[object Map]", R = "[object Number]", P = "[object Object]", O = "[object Promise]", C = "[object RegExp]", V = "[object Set]", U = "[object String]", b = "[object Symbol]", I = "[object WeakMap]", q = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", s = "[object Float64Array]", m = "[object Int8Array]", _ = "[object Int16Array]", x = "[object Int32Array]", t = "[object Uint8Array]", o = "[object Uint8ClampedArray]", u = "[object Uint16Array]", F = "[object Uint32Array]", T = /[\\^$.*+?()[\]{}|]/g, N = /\w*$/, G = /^\[object .+?Constructor\]$/, $ = /^(?:0|[1-9]\d*)$/, k = {};
|
|
938
|
+
k[d] = k[h] = k[q] = k[p] = k[w] = k[S] = k[g] = k[s] = k[m] = k[_] = k[x] = k[L] = k[R] = k[P] = k[C] = k[V] = k[U] = k[b] = k[t] = k[o] = k[u] = k[F] = !0, k[D] = k[y] = k[I] = !1;
|
|
939
|
+
var ee = typeof Oe == "object" && Oe && Oe.Object === Object && Oe, ye = typeof self == "object" && self && self.Object === Object && self, Z = ee || ye || Function("return this")(), _t = n && !n.nodeType && n, gt = _t && !0 && e && !e.nodeType && e, Dn = gt && gt.exports === _t;
|
|
940
940
|
function Nn(r, c) {
|
|
941
941
|
return r.set(c[0], c[1]), r;
|
|
942
942
|
}
|
|
@@ -1140,7 +1140,7 @@ function Qa() {
|
|
|
1140
1140
|
if (Y = Er(r), !c)
|
|
1141
1141
|
return Nr(r, Y);
|
|
1142
1142
|
} else {
|
|
1143
|
-
var me = ae(r), Vt = me ==
|
|
1143
|
+
var me = ae(r), Vt = me == y || me == E;
|
|
1144
1144
|
if (Vr(r))
|
|
1145
1145
|
return vr(r, c);
|
|
1146
1146
|
if (me == P || me == d || Vt && !H) {
|
|
@@ -1164,10 +1164,10 @@ function Qa() {
|
|
|
1164
1164
|
bt && (Ee = Qe, Qe = r[Ee]), Lt(Y, Ee, qe(Qe, c, f, M, Ee, r, Q));
|
|
1165
1165
|
}), Y;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function hr(r) {
|
|
1168
1168
|
return Re(r) ? Un(r) : {};
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function yr(r, c, f) {
|
|
1171
1171
|
var M = c(r);
|
|
1172
1172
|
return Ze(r) ? M : En(M, f(r));
|
|
1173
1173
|
}
|
|
@@ -1239,7 +1239,7 @@ function Qa() {
|
|
|
1239
1239
|
return Pt(r, Gt(r), c);
|
|
1240
1240
|
}
|
|
1241
1241
|
function Rr(r) {
|
|
1242
|
-
return
|
|
1242
|
+
return yr(r, Je, Gt);
|
|
1243
1243
|
}
|
|
1244
1244
|
function ke(r, c) {
|
|
1245
1245
|
var f = r.__data__;
|
|
@@ -1272,7 +1272,7 @@ function Qa() {
|
|
|
1272
1272
|
return c && typeof r[0] == "string" && te.call(r, "index") && (f.index = r.index, f.input = r.input), f;
|
|
1273
1273
|
}
|
|
1274
1274
|
function Lr(r) {
|
|
1275
|
-
return typeof r.constructor == "function" && !Ot(r) ?
|
|
1275
|
+
return typeof r.constructor == "function" && !Ot(r) ? hr(Cn(r)) : {};
|
|
1276
1276
|
}
|
|
1277
1277
|
function Pr(r, c, f, M) {
|
|
1278
1278
|
var B = r.constructor;
|
|
@@ -1353,7 +1353,7 @@ function Qa() {
|
|
|
1353
1353
|
var Vr = Bn || Hr;
|
|
1354
1354
|
function Ut(r) {
|
|
1355
1355
|
var c = Re(r) ? De.call(r) : "";
|
|
1356
|
-
return c ==
|
|
1356
|
+
return c == y || c == E;
|
|
1357
1357
|
}
|
|
1358
1358
|
function Br(r) {
|
|
1359
1359
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= l;
|
|
@@ -1759,8 +1759,8 @@ const an = 1e3, si = 1e4, on = 1e6, sn = 1e9, ln = 1e12, Ae = (e, n) => {
|
|
|
1759
1759
|
return Math[l](i).toString();
|
|
1760
1760
|
let d;
|
|
1761
1761
|
a.precision ? d = i : d = i < 10 ? Math[l](i * 10) / 10 : Math[l](i);
|
|
1762
|
-
let
|
|
1763
|
-
return typeof a.decimal == "string" && (
|
|
1762
|
+
let h = d.toString();
|
|
1763
|
+
return typeof a.decimal == "string" && (h = h.replace(".", a.decimal)), h;
|
|
1764
1764
|
};
|
|
1765
1765
|
function Ve(e, n = {}) {
|
|
1766
1766
|
let a;
|
|
@@ -1777,31 +1777,31 @@ function ui({
|
|
|
1777
1777
|
const n = (i, l) => {
|
|
1778
1778
|
if (isNaN(i))
|
|
1779
1779
|
return "0 B";
|
|
1780
|
-
const d = l ? Math.pow(2, 50) : 1e15,
|
|
1781
|
-
let
|
|
1782
|
-
return i >= d ?
|
|
1780
|
+
const d = l ? Math.pow(2, 50) : 1e15, h = l ? Math.pow(2, 40) : 1e12, w = l ? Math.pow(2, 30) : 1e9, S = l ? Math.pow(2, 20) : 1e6, D = l ? Math.pow(2, 10) : 1e3;
|
|
1781
|
+
let y;
|
|
1782
|
+
return i >= d ? y = e.formatNumber(
|
|
1783
1783
|
Number.parseFloat((i / d).toPrecision(3)),
|
|
1784
1784
|
{ style: "unit", unit: "petabyte", unitDisplay: "narrow" }
|
|
1785
|
-
) : i >=
|
|
1786
|
-
Number.parseFloat((i /
|
|
1785
|
+
) : i >= h ? y = e.formatNumber(
|
|
1786
|
+
Number.parseFloat((i / h).toPrecision(3)),
|
|
1787
1787
|
{ style: "unit", unit: "terabyte", unitDisplay: "narrow" }
|
|
1788
|
-
) : i >= w ?
|
|
1788
|
+
) : i >= w ? y = e.formatNumber(
|
|
1789
1789
|
Number.parseFloat((i / w).toPrecision(3)),
|
|
1790
1790
|
{ style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
|
|
1791
|
-
) : i >= S ?
|
|
1791
|
+
) : i >= S ? y = e.formatNumber(
|
|
1792
1792
|
Number.parseFloat((i / S).toPrecision(3)),
|
|
1793
1793
|
{ style: "unit", unit: "megabyte", unitDisplay: "narrow" }
|
|
1794
|
-
) : i >= D ?
|
|
1794
|
+
) : i >= D ? y = e.formatNumber(
|
|
1795
1795
|
Number.parseFloat((i / D).toPrecision(3)),
|
|
1796
1796
|
{ style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
|
|
1797
|
-
) :
|
|
1797
|
+
) : y = e.formatNumber(
|
|
1798
1798
|
Number.parseFloat(i.toPrecision(3)),
|
|
1799
1799
|
{ style: "unit", unit: "byte", unitDisplay: "narrow" }
|
|
1800
|
-
),
|
|
1800
|
+
), y.replace(/([a-zA-Z]*)$/, " $1");
|
|
1801
1801
|
}, a = (i, l = "USD") => isNaN(i) ? l === "USD" ? "$0.00" : `${i}` : i >= 0.01 || l !== "USD" ? e.formatNumber(i, { style: "currency", currency: l }) : i < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(i.toPrecision(4))}`;
|
|
1802
1802
|
return { formatUnit: (i, l, {
|
|
1803
1803
|
isBytes1024: d = !1,
|
|
1804
|
-
currency:
|
|
1804
|
+
currency: h = "USD",
|
|
1805
1805
|
approximate: w = !1,
|
|
1806
1806
|
translateUnit: S = (D) => D
|
|
1807
1807
|
} = {}) => {
|
|
@@ -1810,30 +1810,30 @@ function ui({
|
|
|
1810
1810
|
case "bytes":
|
|
1811
1811
|
return n(i, d);
|
|
1812
1812
|
case "usd":
|
|
1813
|
-
return a(i,
|
|
1813
|
+
return a(i, h);
|
|
1814
1814
|
default:
|
|
1815
1815
|
return isNaN(i) ? `${i}` : w ? `${Ve(i, { capital: !0 })} ${D}` : i >= 0.01 ? `${it.format(Number.parseFloat(i.toFixed(2)))} ${D}` : `${Number.parseFloat(i.toPrecision(4))} ${D}`;
|
|
1816
1816
|
}
|
|
1817
1817
|
}, formatBytes: n, formatCost: a, formatRange: (i, l, d, {
|
|
1818
|
-
isBytes1024:
|
|
1818
|
+
isBytes1024: h = !1,
|
|
1819
1819
|
currency: w = "USD",
|
|
1820
1820
|
approximate: S = !1,
|
|
1821
|
-
translateUnit: D = (
|
|
1821
|
+
translateUnit: D = (y) => y
|
|
1822
1822
|
} = {}) => {
|
|
1823
|
-
const
|
|
1823
|
+
const y = D(d, l);
|
|
1824
1824
|
switch (d) {
|
|
1825
1825
|
case "bytes":
|
|
1826
|
-
return `${n(i,
|
|
1826
|
+
return `${n(i, h)} - ${n(l, h)}`;
|
|
1827
1827
|
case "usd":
|
|
1828
1828
|
return `${a(i, w)} - ${a(l, w)}`;
|
|
1829
1829
|
default:
|
|
1830
1830
|
if (isNaN(i) || isNaN(l))
|
|
1831
1831
|
return `${i} - ${l}`;
|
|
1832
1832
|
if (S)
|
|
1833
|
-
return `${Ve(i, { capital: !0 })} - ${Ve(l, { capital: !0 })} ${
|
|
1833
|
+
return `${Ve(i, { capital: !0 })} - ${Ve(l, { capital: !0 })} ${y}`;
|
|
1834
1834
|
}
|
|
1835
1835
|
const E = i >= 0.01 ? `${it.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`, L = l >= 0.01 ? `${it.format(Number.parseFloat(l.toFixed(2)))}` : `${Number.parseFloat(l.toPrecision(4))}`;
|
|
1836
|
-
return `${E} - ${L} ${
|
|
1836
|
+
return `${E} - ${L} ${y}`;
|
|
1837
1837
|
} };
|
|
1838
1838
|
}
|
|
1839
1839
|
const Fe = "#e0e4ea", ci = "#828a9e", di = "32px", un = 5, ot = [
|
|
@@ -1864,26 +1864,26 @@ function fi({
|
|
|
1864
1864
|
for (const P of Object.keys(R))
|
|
1865
1865
|
pt.find((O) => O.code === P) || delete R[P];
|
|
1866
1866
|
return R;
|
|
1867
|
-
}),
|
|
1867
|
+
}), h = j(() => Object.values(d.value)), w = j(() => Object.keys(d.value).length), S = j(() => w.value < un - 1 ? w.value : un), D = j(() => !n.value?.includes("latency")), y = j(() => {
|
|
1868
1868
|
const R = [];
|
|
1869
|
-
if (
|
|
1870
|
-
const P = [...
|
|
1869
|
+
if (h.value.length > 10) {
|
|
1870
|
+
const P = [...h.value].sort((I, q) => I - q), O = mi(P, 0.75), C = h.value.filter((I) => I >= O), V = h.value.filter((I) => I < O), U = st(C, 3), b = st(V, 2);
|
|
1871
1871
|
return R.push(...U, ...b), R;
|
|
1872
1872
|
}
|
|
1873
|
-
return st(
|
|
1874
|
-
}), E = j(() =>
|
|
1875
|
-
color: L(
|
|
1876
|
-
range: i(
|
|
1873
|
+
return st(h.value, S.value);
|
|
1874
|
+
}), E = j(() => h.value.length === 1 ? [{
|
|
1875
|
+
color: L(h.value[0]),
|
|
1876
|
+
range: i(h.value[0], {
|
|
1877
1877
|
approximate: D.value,
|
|
1878
1878
|
showUnit: !a.value.includes("count")
|
|
1879
1879
|
}).trim()
|
|
1880
|
-
}] :
|
|
1881
|
-
const O = P === 0 ? Math.max(...
|
|
1880
|
+
}] : y.value.map((R, P) => {
|
|
1881
|
+
const O = P === 0 ? Math.max(...y.value) : y.value[P - 1], C = R, V = O;
|
|
1882
1882
|
let U = "";
|
|
1883
1883
|
return P === 0 ? U = `> ${i(C, {
|
|
1884
1884
|
showUnit: !a.value.includes("count"),
|
|
1885
1885
|
approximate: D.value
|
|
1886
|
-
})}`.trim() : P ===
|
|
1886
|
+
})}`.trim() : P === y.value.length - 1 ? U = `< ${i(V, {
|
|
1887
1887
|
showUnit: !a.value.includes("count"),
|
|
1888
1888
|
approximate: D.value
|
|
1889
1889
|
})}`.trim() : U = l(C, V, {
|
|
@@ -1896,13 +1896,13 @@ function fi({
|
|
|
1896
1896
|
})), L = (R) => {
|
|
1897
1897
|
if (R === 0)
|
|
1898
1898
|
return Fe;
|
|
1899
|
-
const P =
|
|
1899
|
+
const P = y.value.findIndex((O) => R >= O);
|
|
1900
1900
|
return P === -1 ? ot[ot.length - 1] : ot[P] ?? Fe;
|
|
1901
1901
|
};
|
|
1902
1902
|
return {
|
|
1903
1903
|
getColor: L,
|
|
1904
1904
|
legendData: E,
|
|
1905
|
-
scale:
|
|
1905
|
+
scale: y
|
|
1906
1906
|
};
|
|
1907
1907
|
}
|
|
1908
1908
|
function pi({
|
|
@@ -1910,19 +1910,19 @@ function pi({
|
|
|
1910
1910
|
}) {
|
|
1911
1911
|
const { i18n: n } = Me.useI18n(), { formatUnit: a, formatRange: i } = ui({ i18n: n });
|
|
1912
1912
|
return {
|
|
1913
|
-
formatMetric: (
|
|
1913
|
+
formatMetric: (h, {
|
|
1914
1914
|
showUnit: w = !0,
|
|
1915
1915
|
approximate: S = !1
|
|
1916
|
-
} = {}) => a(
|
|
1916
|
+
} = {}) => a(h, e.value, {
|
|
1917
1917
|
approximate: S,
|
|
1918
|
-
translateUnit: (D) => w ? n.t(`metricUnits.${D}`, { plural:
|
|
1918
|
+
translateUnit: (D) => w ? n.t(`metricUnits.${D}`, { plural: h > 1 ? "s" : "" }) : ""
|
|
1919
1919
|
}),
|
|
1920
|
-
formatMetricRange: (
|
|
1920
|
+
formatMetricRange: (h, w, {
|
|
1921
1921
|
showUnit: S = !0,
|
|
1922
1922
|
approximate: D = !1
|
|
1923
|
-
} = {}) => i(
|
|
1923
|
+
} = {}) => i(h, w, e.value, {
|
|
1924
1924
|
approximate: D,
|
|
1925
|
-
translateUnit: (
|
|
1925
|
+
translateUnit: (y) => S ? n.t(`metricUnits.${y}`, { plural: w > 1 ? "s" : "" }) : ""
|
|
1926
1926
|
})
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
@@ -1930,9 +1930,9 @@ const Me = {
|
|
|
1930
1930
|
useI18n: ua,
|
|
1931
1931
|
useLegendScale: fi,
|
|
1932
1932
|
useMetricFormat: pi
|
|
1933
|
-
}, yi = "FeatureCollection", hi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), _i = {
|
|
1934
|
-
type:
|
|
1935
|
-
features:
|
|
1933
|
+
}, hi = "FeatureCollection", yi = /* @__PURE__ */ JSON.parse('[{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBaikal","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[106.57998579307912,52.79998159444554],[106.53998823448521,52.93999888774037],[107.0800069519353,53.18001007751998],[107.2999935242018,53.37999787048953],[107.59997521365611,53.51998932556822],[108.03994835818912,53.859968573616456],[108.37997928266967,54.25999583598784],[109.05270307824526,55.027597561251326],[109.19346967980832,55.53560272889659],[109.50699059452313,55.73091380474372],[109.92980716353523,55.7129562445223],[109.70000206913326,54.980003567110515],[109.66000451053935,54.71999359803395],[109.47996382043448,54.33999095317566],[109.31997358605884,53.81999685323869],[109.22003136600637,53.619983222052994],[108.99999311730755,53.78002513286093],[108.60001753136845,53.4399942083804],[108.800005324338,53.37999787048953],[108.76000776574409,53.200008856816936],[108.45997439985749,53.14001251892607],[108.17999148970011,52.79998159444554],[107.79996300662566,52.579995022179034],[107.31999230349876,52.42000478780339],[106.64003380740229,52.32001089131862],[106.1000150899522,52.03997630472897],[105.740037062607,51.759993394571595],[105.24001590375084,51.52000804300813],[104.81998986208251,51.46001170511727],[104.30002160036167,51.50000926371118],[103.7600028829116,51.60000316019595],[103.6200114278329,51.73999461527464],[103.85999677939637,51.85998729105637],[104.39996382041414,51.85998729105637],[105.05997521364597,52.0000045843512],[105.4800012553143,52.28001333272471],[105.98002241417046,52.51999868428817],[106.26000532432784,52.619992580772944],[106.57998579307912,52.79998159444554]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rWinnipeg","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-98.95540137408423,53.92978343364277],[-97.95799455441879,54.337097072967325],[-97.8050064766187,54.05938792583079],[-97.64380184608419,53.42521474874492],[-96.39258622921722,51.39730235453108],[-96.23789282915149,50.6910147161819],[-96.72558915890605,50.448910630894474],[-96.92110694048235,50.75405996357799],[-97.23568722205913,51.49778717712263],[-98.20097713905517,52.18456696228162],[-99.23680538612963,53.21628693298888],[-98.95540137408423,53.92978343364277]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Great\\rSlave Lake","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-115.00000342492967,61.9723932969562],[-115.80669837122196,62.54171255151576],[-116.0585951404287,62.77880402287089],[-115.84279435917783,62.7503044704619],[-114.45259497766185,62.42820526798667],[-113.35341142459757,62.04448192000336],[-111.77890804731261,62.44360484480964],[-111.04001258018727,62.92000987410843],[-110.20001217328286,63.08000010848407],[-109.40000932497237,62.87817780216814],[-109.09010576051801,62.814099026126215],[-109.11651241741916,62.6928144395372],[-110.10089677614705,62.51561595320837],[-111.27599300824811,62.34911448836395],[-112.63050981326654,61.55991201440246],[-113.64000891808828,61.07999298770784],[-115.3409903634076,60.87659455020702],[-116.43999304895887,60.86000641544133],[-118.06110856817108,61.31196849226605],[-118.3474735177165,61.36137116153708],[-118.3849906075604,61.52110301375126],[-118.17960262741634,61.55629466414203],[-116.8028132800801,61.32589529076871],[-115.67879920129957,61.69179026961132],[-115.00000342492967,61.9723932969562]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Ontario","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-79.05630591502026,43.25410431576152],[-79.36168779164908,43.20237620703736],[-79.76047481964547,43.29720246029295],[-79.46116492381094,43.639197089200565],[-79.1561706204243,43.75743276628437],[-78.45052893747877,43.9031861435636],[-77.60536088734519,44.039327704436545],[-77.16148617217414,43.850140285815996],[-76.88269181995948,44.0694550644627],[-76.56555355498425,44.20802541765336],[-76.35303422718391,44.134670722015045],[-76.23926856149336,43.979150499032656],[-76.17999569365458,43.5900011256587],[-76.9300015937227,43.2599954290428],[-77.74915056019732,43.342832750006664],[-78.53499406605984,43.379988104824534],[-79.05630591502026,43.25410431576152]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"L. Erie","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-83.12001135937246,42.08001577409016],[-82.57123348664891,42.01702220312636],[-81.82918575715374,42.33552989355732],[-81.39226152212595,42.61517690690481],[-81.09496700715081,42.66075552018623],[-80.54515560578142,42.560089830081665],[-80.27917700877515,42.71566172949635],[-79.79135148793986,42.84203644466612],[-78.92000932485044,42.96500051530464],[-78.90057898630869,42.8667119410855],[-79.76220598012725,42.269616604169045],[-80.51644934764329,41.980331936199136],[-81.03119828970264,41.845508124349635],[-81.62351355663209,41.568935858723535],[-82.34744869660895,41.435920722004255],[-82.84610043000939,41.48710622818935],[-83.46283281119673,41.69396698665372],[-83.12001135937246,42.08001577409016],[-83.12001135937246,42.08001577409016]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Superior","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-89.60000342482806,48.00998973244721],[-89.19405921095924,48.40546946877693],[-88.62641944044917,48.56251414651193],[-88.40423661981026,48.80632355406499],[-88.17895321323383,48.93670319273738],[-87.24903581414156,48.73511343036678],[-86.56000810417788,48.71108388935106],[-86.32103044304411,48.57729360614741],[-85.98652889681881,48.01035146747326],[-84.8642201403039,47.86007640236849],[-85.04061764193222,47.575700995466306],[-84.64500871452178,47.28220469826462],[-84.81528255892351,46.90233124448706],[-84.39559241406505,46.77683502866624],[-84.60490780306328,46.439594631529474],[-84.9100054593145,46.48000560158172],[-85.11999264193253,46.76001434995524],[-86.1026200019625,46.67265534116582],[-86.99000769727856,46.45000743263628],[-87.69427995476835,46.83104360614041],[-88.2612220934425,46.958581041036766],[-87.93992387566777,47.485913194359185],[-88.82260901564527,47.154796454449],[-89.62498897984119,46.83083690041124],[-90.39703487828177,46.57648550067064],[-91.00999487991183,46.92000458433087],[-92.01192338740282,46.71167104754619],[-92.00877112503301,46.85843211525511],[-91.33000118687926,47.28000844989221],[-90.61999284540505,47.68000987404746],[-89.60000342482806,48.00998973244721]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rVictoria","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[33.85036827976734,0.128157863766091],[33.85036827976734,0.128157863766091],[34.13624230320599,-0.319308363449238],[34.0726286150547,-1.059831638191795],[33.579428745261055,-1.506005954599821],[33.251748488098286,-1.957968031424549],[33.64717654799571,-2.30089283611342],[33.07672041192572,-2.547131035984201],[32.95176679864397,-2.43044565186915],[32.37309410983957,-2.489925225437091],[31.926558058405476,-2.714511000177573],[31.648022088352292,-2.32921152100937],[31.836020949030114,-1.629305922048232],[31.866199985488578,-1.027378838712494],[31.815143670384202,-0.64042571371094],[32.27284183119332,-0.056120293786734],[32.906136508930246,0.0867650415003],[33.33184695815069,0.324993394365833],[33.85036827976734,0.128157863766091]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rLadoga","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[29.836711460089845,61.22608226179696],[29.836711460089845,61.22608226179696],[30.85199832532828,61.77504100203353],[32.52688317234018,61.11751007755173],[32.94432539239392,60.64260366478942],[32.81575442885176,60.481889960361684],[32.599901971168606,60.533514716221276],[32.583882277158125,60.20893504499601],[31.699440138482714,60.23565176049091],[31.50973595553924,59.92034800886205],[31.106246372204282,59.92768606224749],[31.10893354668346,60.14645823835514],[30.533878208139498,60.63009796817478],[30.502045525847706,60.843211574946466],[29.836711460089845,61.22608226179696]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rBalkhash","name_alt":"Balqash Köli","admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[78.99076541536459,46.748619696634876],[78.99076541536459,46.748619696634876],[79.2451684915375,46.64516347918655],[78.88989301953086,46.369934800800024],[78.44506229036242,46.29717438413307],[77.20606814973246,46.3955663112168],[75.61128177277294,46.50718740496724],[75.46333214712132,46.6706141220903],[75.40566124868357,46.47080719663377],[74.91122114451494,46.404661363300164],[74.77138471873312,46.107831936215646],[74.27802981964263,46.004065660173566],[74.0999528339648,44.98893382423201],[73.4367375019309,45.60946442319282],[73.4399931171653,45.80586070411809],[73.73713260284359,46.012747300798594],[73.67925499867667,46.18307282163262],[74.02068118682908,46.20490611427593],[74.09432010284502,46.42781240496693],[74.939384800114,46.81678091082786],[76.20313195181177,46.7800131292522],[77.18131513866464,46.64340648048862],[77.85993004752152,46.64785065366573],[78.29700931184618,46.46853343361292],[78.39710656119556,46.657669175801175],[78.99076541536459,46.748619696634876]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rTanganyika","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[30.806006300588507,-8.578339125201033],[30.46442508313922,-8.498188978716335],[30.566847771941724,-8.1150082332721],[30.27735639824263,-7.848357842646031],[30.14702843600253,-7.299244073112582],[29.536523064906334,-6.7541610652979],[29.19318484875913,-6.038029066597119],[29.371985304489016,-5.616452731960017],[29.101717563602506,-5.054006442895265],[29.281034783655315,-3.455499362810748],[29.652588331833897,-4.420143324403149],[29.600085076625334,-4.896393324405054],[29.79195966972506,-5.040880629093131],[29.758421665167646,-5.466901136907339],[29.951226434048635,-5.860985609565162],[29.722041456834177,-6.244114678577112],[30.52803877129051,-6.922729587433992],[30.604158156056457,-7.541916599155222],[31.189032016735865,-8.729906101113095],[31.022117140433124,-8.786543470904988],[30.806006300588507,-8.578339125201033],[30.806006300588507,-8.578339125201033]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake Malawi","name_alt":"Lake Nyasa","admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[35.2602047055542,-14.277474460510291],[35.236226840970915,-14.401291192281633],[34.881209751125766,-14.012012627826891],[34.706543409979076,-14.262023207255027],[34.54675988133266,-14.047669366108266],[34.55110070164528,-13.67208505621096],[34.3209338722171,-13.379389743709737],[34.32997724786827,-12.944584242405995],[34.032527703596315,-12.208556817272836],[34.322690870915096,-11.652983493702834],[34.25990400568048,-10.447579034062642],[33.906592238100984,-9.801726983278854],[33.99557905450757,-9.495440769084837],[34.52422895685345,-10.03013681400887],[34.60789310073403,-11.080511976773494],[34.93702029800096,-11.463434340056267],[34.69388268406766,-12.422393894096615],[34.86756717300062,-13.701127211159019],[35.05597944513687,-13.742933444883136],[35.2602047055542,-14.277474460510291]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Aral\\rSea","name_alt":null,"admin":null,"min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[60.05285159692946,44.264636949229114],[59.77002648299603,44.15999217383806],[59.06288618351405,44.36928172462015],[59.34571129744745,44.99720205339871],[59.35930219914022,45.190006822279685],[58.96139367049281,45.37500844988459],[58.92144778833119,45.101846828789746],[58.92144778833119,44.73556427670495],[58.497132602782614,44.212340399749735],[58.285000848224456,44.473952338227335],[58.285000848224456,44.89255727800766],[58.689989048095896,45.50001373959863],[58.78000939314833,45.88673432065487],[59.20427290226462,45.93905670835039],[59.535002068932585,45.70501414650049],[59.55784305200561,46.30533926043519],[59.77002648299603,46.25299103452352],[60.12359663273702,46.096023871436955],[60.12359663273702,45.88673432065487],[59.94675988143425,45.808211981787366],[59.84071984237133,45.520477606786216],[60.12359663273702,45.572774156265595],[60.23997195825834,44.78403677019473],[60.05285159692946,44.264636949229114]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Vänern","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[13.979281447005576,59.20491364199721],[13.979281447005576,59.20491364199721],[13.984449090234762,59.086212877022774],[13.91892337408865,58.902503160225166],[13.28268313971111,58.608670966213566],[12.830100945698888,58.50903880475484],[12.460149366921371,58.50619660097878],[12.537767368223768,58.77594757754237],[12.522161085671598,58.880282294339665],[12.697085808979608,58.953843695707135],[13.027039829163215,58.993531195707305],[13.195298292705559,59.12900096296045],[13.59144982265505,59.336481838612315],[13.979281447005576,59.20491364199721]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Okeechobee","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-80.70643775096435,26.788959458924822],[-80.93244462759287,26.823272609966622],[-80.91970638703292,27.068916530866048],[-80.69369951040441,27.034629218040394],[-80.70643775096435,26.788959458924822],[-80.70643775096435,26.788959458924822]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago de\\rNicaragua","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-84.85548682324658,11.147898667846633],[-85.29013729525353,11.176165676310276],[-85.79132117383625,11.509737046754324],[-85.8851655748783,11.900100816287136],[-85.5653401354239,11.940330918826362],[-85.03684526237491,11.5216484643976],[-84.85548682324658,11.147898667846633],[-84.85548682324658,11.147898667846633]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Tana","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[37.14370730972843,11.850594794151519],[37.01482628759251,12.035596421756424],[37.24401126480697,12.233878892460353],[37.518361443844526,12.160601711470477],[37.48187788264647,11.825092474815477],[37.33635704931254,11.713393866416595],[37.14370730972843,11.850594794151519],[37.14370730972843,11.850594794151519]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lago Titicaca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-69.40673987494259,-16.126198825752063],[-69.7290974595793,-15.928794854397104],[-69.98365556504908,-15.73717864345884],[-69.8770212470148,-15.669844252182529],[-69.8679778713637,-15.546079196843493],[-69.88559953477524,-15.35425628017606],[-69.59675411647981,-15.410480238509614],[-68.98697221543571,-15.885903415594846],[-68.9596870591856,-15.91329192470954],[-68.74623755560401,-16.356003920154023],[-68.90524593776611,-16.506640720284835],[-69.00115739609983,-16.536406345284952],[-69.09084184434238,-16.461992282784657],[-69.18205074733753,-16.40116912197712],[-69.25098710801488,-16.227536309476427],[-69.40673987494259,-16.126198825752063],[-69.40673987494259,-16.126198825752063]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rWinnipegosis","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-99.40377193886468,53.1258531764781],[-99.54846594928192,53.120427151087455],[-99.80498775917877,53.14290639913442],[-100.43146114785316,53.2841897650204],[-100.60685095905177,53.531616522833886],[-100.33487789589965,53.745246893928496],[-100.42673275429846,53.90740753846039],[-100.4044860501968,53.94507965760117],[-100.32629960813921,54.094011135466346],[-100.23586585162842,54.23033356385231],[-99.99549292682278,54.215864162810576],[-100.04778947630214,54.10013479269293],[-100.18356930214904,53.930351874397985],[-99.87128862180926,53.928465684619326],[-99.91066606321566,53.821314602262134],[-100.05649695514333,53.44332733826322],[-99.66551306842301,53.29581696228607],[-99.39317827024485,53.26791168884846],[-99.40377193886468,53.1258531764781],[-99.40377193886468,53.1258531764781]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake\\rOnega","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[35.71464725112901,62.2802298041189],[36.0541614112866,61.716310736733874],[36.391401808423325,61.27605337182331],[36.10945519383887,61.01508738874924],[35.35074181492962,60.948579820389625],[34.866843702948586,61.11637319604125],[35.207288038887384,61.114435329830485],[35.57832482274313,61.08634918887975],[35.16000410334027,61.39428904890701],[34.85733523940689,61.55179881453273],[34.48691857273877,61.86697337508076],[34.265019972477376,62.21914826114994],[34.289824659977455,62.29774811466581],[34.66561567560399,62.22979360620195],[34.62613488133297,62.45223480900245],[34.8356311378443,62.29676626245225],[35.080267368314026,62.1411943630377],[35.21658979669991,62.193284206787894],[35.463706495919666,62.2560193955901],[35.13969526544963,62.48776235620312],[34.614352654770414,62.762448432050576],[34.99541466649072,62.748469957115674],[35.23395307795005,62.675347805422575],[35.71464725112901,62.2802298041189]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great Salt Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-112.18405127648089,41.34124949804567],[-112.13875688357706,41.142346910154174],[-112.17193315310845,40.851460272783186],[-112.67882727745939,41.130487168943205],[-112.70549231652205,41.16753917089636],[-112.87814327680917,41.62815705013003],[-112.58955624067522,41.43891795507716],[-112.40532975955472,41.33801972102742],[-112.21901038292629,41.42855683040267],[-112.18405127648089,41.34124949804567]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Great\\rBear Lake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-117.7592923653704,66.22368419052789],[-117.97374955938167,65.85489533147692],[-118.10710059291085,65.76691620550001],[-119.7200520432652,65.73479930283061],[-119.74568355368197,65.65436493596833],[-119.6648099371452,65.52742178004333],[-119.70219783590836,65.36794830999061],[-121.35509436098008,64.87999359807459],[-121.33610327211281,64.99461192489797],[-120.94527441468938,65.37774099390991],[-121.05728308168202,65.4463414577774],[-122.56450374412293,65.0310696478799],[-123.232705851873,65.18041453720339],[-123.17963415590926,65.31937246363624],[-122.32599117087979,65.79378795029179],[-122.35622188377054,65.90184337021411],[-124.95363440005697,66.04925039332666],[-124.89753963280414,66.15115631780624],[-119.48724971579031,66.96929759385118],[-119.35743771042887,66.87519481064767],[-120.1769492193738,66.46527151149239],[-117.60545162643749,66.55934845647975],[-117.61278967982294,66.41997711858856],[-117.7592923653704,66.22368419052789],[-117.7592923653704,66.22368419052789]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Lake Athabasca","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-109.65330135785099,59.03763703066841],[-111.08626298708849,58.56017263450765],[-111.19948605023998,58.685565497463884],[-111.160005255969,58.75985036888345],[-109.09672034385136,59.55042226830068],[-106.54517066122398,59.31968699811746],[-106.54695349813804,59.292815253325685],[-109.65330135785099,59.03763703066841],[-109.65330135785099,59.03763703066841]]]}},{"type":"Feature","properties":{"scalerank":1,"featurecla":"Lake","name":"Reindeer\\rLake","name_alt":null,"admin":null,"min_zoom":1.7,"min_label":3.6},"geometry":{"type":"Polygon","coordinates":[[[-101.89514441608819,58.01403025983099],[-101.89514441608819,58.01403025983099],[-101.54384802936804,57.86809601503873],[-101.97090206582807,57.34867035585697],[-101.93403093138781,57.23066722271848],[-103.20416012247362,56.34539826112639],[-103.2825015938281,56.40994212505895],[-103.1487371488406,56.70411021588043],[-103.07832800984292,56.71080231386223],[-103.01440426309787,56.56510061301529],[-102.57680823445028,56.938281968811054],[-102.81322791218561,57.28714956321349],[-102.81369300007623,57.46434804954232],[-102.12874772826359,58.01914622662788],[-101.89514441608819,58.01403025983099]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rHuron","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-80.41056433787725,45.590137437515665],[-79.76292945017934,44.824602769543844],[-80.08500281443844,44.493925279308144],[-80.89769222687659,44.63164297136599],[-81.40233842642287,45.25005483660284],[-81.27567949087549,44.6201708033972],[-81.75265296092948,44.06464915625956],[-81.70017554393709,43.590052802090995],[-81.78272864452336,43.310845038417995],[-82.43000179719522,42.98001251888543],[-82.4799987454376,43.39001333268915],[-82.6599877591102,43.970003770516996],[-83.02999101432,44.06999766700177],[-83.6500048489579,43.62999868425261],[-83.84870073112015,43.63831858985161],[-83.89998959016984,43.88998281511303],[-83.34999732128743,44.29001007748441],[-83.25878841829228,44.74574453386644],[-83.33999793163895,45.200006211928155],[-84.08000444205858,45.58998240821879],[-84.93000423861146,45.789996039404485],[-84.75355506055087,45.924483954444085],[-84.71999121777729,45.91998810483469],[-83.83919226757845,46.010215155616294],[-84.33670711946846,46.40876963966737],[-84.14870825879063,46.55576325132161],[-83.95257036002683,46.334278062518635],[-83.20251278352643,46.21015127215355],[-82.44199072948692,46.19963511818216],[-81.63136837434045,46.09754832618957],[-80.73679765493583,45.90381338152733],[-80.41056433787725,45.590137437515665]]]}},{"type":"Feature","properties":{"scalerank":0,"featurecla":"Lake","name":"Lake\\rMichigan","name_alt":null,"admin":"admin-0","min_zoom":1,"min_label":3},"geometry":{"type":"Polygon","coordinates":[[[-85.53999284538475,46.03000722918408],[-84.75355506055087,45.924483954444085],[-84.93000423861146,45.789996039404485],[-85.06999569369015,45.40999339454619],[-85.29044735384727,45.30824249936349],[-85.46710323763705,44.81457754167923],[-85.55999162468169,45.150009263685774],[-85.95983801954006,44.91059235287753],[-86.20935767286137,44.574798895844935],[-86.47027197950304,44.08423452409818],[-86.52001054558397,43.65999685319804],[-86.18842871778315,43.04140412044818],[-86.21604977084317,42.38170278581012],[-86.62191647006355,41.8944198675139],[-86.8244364082154,41.75618541113313],[-87.09444576694042,41.64616628678374],[-87.4342183092595,41.640714423176945],[-87.52617652052288,41.70851390234388],[-87.79569495314115,42.23411489518453],[-87.80344641798493,42.49399567318035],[-87.77672970249003,42.740853990238634],[-87.90214840366241,43.23051402442029],[-87.71221167677363,43.79650014909703],[-87.486359829442,44.49335683855294],[-86.9674767727993,45.26287059181122],[-87.11806189649782,45.25933075619923],[-87.85282324903983,44.61505483660031],[-87.98831885450912,44.73331635190026],[-87.5964306302237,45.093707790703775],[-87.00000708692704,45.73999909116209],[-86.31999691439827,45.829993597998396],[-85.53999284538475,46.03000722918408]]]}}]'), _i = {
|
|
1934
|
+
type: hi,
|
|
1935
|
+
features: yi
|
|
1936
1936
|
};
|
|
1937
1937
|
function gi(e) {
|
|
1938
1938
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -1941,7 +1941,7 @@ var Ie = {}, lt, cn;
|
|
|
1941
1941
|
function wi() {
|
|
1942
1942
|
if (cn) return lt;
|
|
1943
1943
|
cn = 1, lt = w;
|
|
1944
|
-
var e, n, a, i, l, d = 1e6,
|
|
1944
|
+
var e, n, a, i, l, d = 1e6, h = {
|
|
1945
1945
|
Point: 0,
|
|
1946
1946
|
MultiPoint: 1,
|
|
1947
1947
|
LineString: 2,
|
|
@@ -1963,10 +1963,10 @@ function wi() {
|
|
|
1963
1963
|
s.geometry !== null && S(s.geometry);
|
|
1964
1964
|
for (_ in s.properties) L(_);
|
|
1965
1965
|
} else if (s.type === "Point") E(s.coordinates);
|
|
1966
|
-
else if (s.type === "MultiPoint")
|
|
1966
|
+
else if (s.type === "MultiPoint") y(s.coordinates);
|
|
1967
1967
|
else if (s.type === "GeometryCollection")
|
|
1968
1968
|
for (m = 0; m < s.geometries.length; m++) S(s.geometries[m]);
|
|
1969
|
-
else if (s.type === "LineString")
|
|
1969
|
+
else if (s.type === "LineString") y(s.coordinates);
|
|
1970
1970
|
else if (s.type === "Polygon" || s.type === "MultiLineString") D(s.coordinates);
|
|
1971
1971
|
else if (s.type === "MultiPolygon")
|
|
1972
1972
|
for (m = 0; m < s.coordinates.length; m++) D(s.coordinates[m]);
|
|
@@ -1974,9 +1974,9 @@ function wi() {
|
|
|
1974
1974
|
g(_, s.type) || L(_);
|
|
1975
1975
|
}
|
|
1976
1976
|
function D(s) {
|
|
1977
|
-
for (var m = 0; m < s.length; m++)
|
|
1977
|
+
for (var m = 0; m < s.length; m++) y(s[m]);
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function y(s) {
|
|
1980
1980
|
for (var m = 0; m < s.length; m++) E(s[m]);
|
|
1981
1981
|
}
|
|
1982
1982
|
function E(s) {
|
|
@@ -1996,7 +1996,7 @@ function wi() {
|
|
|
1996
1996
|
s.geometry !== null && m.writeMessage(1, O, s.geometry), s.id !== void 0 && (typeof s.id == "number" && s.id % 1 === 0 ? m.writeSVarintField(12, s.id) : m.writeStringField(11, s.id)), s.properties && C(s.properties, m), C(s, m, !0);
|
|
1997
1997
|
}
|
|
1998
1998
|
function O(s, m) {
|
|
1999
|
-
m.writeVarintField(1,
|
|
1999
|
+
m.writeVarintField(1, h[s.type]);
|
|
2000
2000
|
var _ = s.coordinates;
|
|
2001
2001
|
if (s.type === "Point") U(_, m);
|
|
2002
2002
|
else if (s.type === "MultiPoint") b(_, m);
|
|
@@ -2077,7 +2077,7 @@ function wi() {
|
|
|
2077
2077
|
var ut, dn;
|
|
2078
2078
|
function vi() {
|
|
2079
2079
|
if (dn) return ut;
|
|
2080
|
-
dn = 1, ut =
|
|
2080
|
+
dn = 1, ut = h;
|
|
2081
2081
|
var e, n, a, i, l, d = [
|
|
2082
2082
|
"Point",
|
|
2083
2083
|
"MultiPoint",
|
|
@@ -2087,13 +2087,13 @@ function vi() {
|
|
|
2087
2087
|
"MultiPolygon",
|
|
2088
2088
|
"GeometryCollection"
|
|
2089
2089
|
];
|
|
2090
|
-
function
|
|
2090
|
+
function h(p) {
|
|
2091
2091
|
i = 2, l = Math.pow(10, 6), a = null, e = [], n = [];
|
|
2092
2092
|
var g = p.readFields(w, {});
|
|
2093
2093
|
return e = null, g;
|
|
2094
2094
|
}
|
|
2095
2095
|
function w(p, g, s) {
|
|
2096
|
-
p === 1 ? e.push(s.readString()) : p === 2 ? i = s.readVarint() : p === 3 ? l = Math.pow(10, s.readVarint()) : p === 4 ? S(s, g) : p === 5 ? D(s, g) : p === 6 &&
|
|
2096
|
+
p === 1 ? e.push(s.readString()) : p === 2 ? i = s.readVarint() : p === 3 ? l = Math.pow(10, s.readVarint()) : p === 4 ? S(s, g) : p === 5 ? D(s, g) : p === 6 && y(s, g);
|
|
2097
2097
|
}
|
|
2098
2098
|
function S(p, g) {
|
|
2099
2099
|
return g.type = "FeatureCollection", g.features = [], p.readMessage(E, g);
|
|
@@ -2103,17 +2103,17 @@ function vi() {
|
|
|
2103
2103
|
var s = p.readMessage(L, g);
|
|
2104
2104
|
return "geometry" in s || (s.geometry = null), s;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function y(p, g) {
|
|
2107
2107
|
return g.type = "Point", p.readMessage(R, g);
|
|
2108
2108
|
}
|
|
2109
2109
|
function E(p, g, s) {
|
|
2110
2110
|
p === 1 ? g.features.push(D(s, {})) : p === 13 ? n.push(O(s)) : p === 15 && C(s, g);
|
|
2111
2111
|
}
|
|
2112
2112
|
function L(p, g, s) {
|
|
2113
|
-
p === 1 ? g.geometry =
|
|
2113
|
+
p === 1 ? g.geometry = y(s, {}) : p === 11 ? g.id = s.readString() : p === 12 ? g.id = s.readSVarint() : p === 13 ? n.push(O(s)) : p === 14 ? g.properties = C(s, {}) : p === 15 && C(s, g);
|
|
2114
2114
|
}
|
|
2115
2115
|
function R(p, g, s) {
|
|
2116
|
-
p === 1 ? g.type = d[s.readVarint()] : p === 2 ? a = s.readPackedVarint() : p === 3 ? P(g, s, g.type) : p === 4 ? (g.geometries = g.geometries || [], g.geometries.push(
|
|
2116
|
+
p === 1 ? g.type = d[s.readVarint()] : p === 2 ? a = s.readPackedVarint() : p === 3 ? P(g, s, g.type) : p === 4 ? (g.geometries = g.geometries || [], g.geometries.push(y(s, {}))) : p === 13 ? n.push(O(s)) : p === 15 && C(s, g);
|
|
2117
2117
|
}
|
|
2118
2118
|
function P(p, g, s) {
|
|
2119
2119
|
s === "Point" ? p.coordinates = V(g) : s === "MultiPoint" || s === "LineString" ? p.coordinates = b(g) : s === "MultiLineString" ? p.coordinates = I(g) : s === "Polygon" ? p.coordinates = I(g, !0) : s === "MultiPolygon" && (p.coordinates = q(g));
|
|
@@ -2171,24 +2171,24 @@ var Fi = xi(), Ce = {};
|
|
|
2171
2171
|
var fn;
|
|
2172
2172
|
function Mi() {
|
|
2173
2173
|
return fn || (fn = 1, Ce.read = function(e, n, a, i, l) {
|
|
2174
|
-
var d,
|
|
2175
|
-
for (E += L, d = R & (1 << -
|
|
2174
|
+
var d, h, w = l * 8 - i - 1, S = (1 << w) - 1, D = S >> 1, y = -7, E = a ? l - 1 : 0, L = a ? -1 : 1, R = e[n + E];
|
|
2175
|
+
for (E += L, d = R & (1 << -y) - 1, R >>= -y, y += w; y > 0; d = d * 256 + e[n + E], E += L, y -= 8)
|
|
2176
2176
|
;
|
|
2177
|
-
for (
|
|
2177
|
+
for (h = d & (1 << -y) - 1, d >>= -y, y += i; y > 0; h = h * 256 + e[n + E], E += L, y -= 8)
|
|
2178
2178
|
;
|
|
2179
2179
|
if (d === 0)
|
|
2180
2180
|
d = 1 - D;
|
|
2181
2181
|
else {
|
|
2182
2182
|
if (d === S)
|
|
2183
|
-
return
|
|
2184
|
-
|
|
2183
|
+
return h ? NaN : (R ? -1 : 1) * (1 / 0);
|
|
2184
|
+
h = h + Math.pow(2, i), d = d - D;
|
|
2185
2185
|
}
|
|
2186
|
-
return (R ? -1 : 1) *
|
|
2186
|
+
return (R ? -1 : 1) * h * Math.pow(2, d - i);
|
|
2187
2187
|
}, Ce.write = function(e, n, a, i, l, d) {
|
|
2188
|
-
var
|
|
2189
|
-
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (w = isNaN(n) ? 1 : 0,
|
|
2188
|
+
var h, w, S, D = d * 8 - l - 1, y = (1 << D) - 1, E = y >> 1, L = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, R = i ? 0 : d - 1, P = i ? 1 : -1, O = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
2189
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (w = isNaN(n) ? 1 : 0, h = y) : (h = Math.floor(Math.log(n) / Math.LN2), n * (S = Math.pow(2, -h)) < 1 && (h--, S *= 2), h + E >= 1 ? n += L / S : n += L * Math.pow(2, 1 - E), n * S >= 2 && (h++, S /= 2), h + E >= y ? (w = 0, h = y) : h + E >= 1 ? (w = (n * S - 1) * Math.pow(2, l), h = h + E) : (w = n * Math.pow(2, E - 1) * Math.pow(2, l), h = 0)); l >= 8; e[a + R] = w & 255, R += P, w /= 256, l -= 8)
|
|
2190
2190
|
;
|
|
2191
|
-
for (
|
|
2191
|
+
for (h = h << l | w, D += l; D > 0; e[a + R] = h & 255, R += P, h /= 256, D -= 8)
|
|
2192
2192
|
;
|
|
2193
2193
|
e[a + R - P] |= O * 128;
|
|
2194
2194
|
}), Ce;
|
|
@@ -2245,7 +2245,7 @@ function Ti() {
|
|
|
2245
2245
|
},
|
|
2246
2246
|
readVarint: function(t) {
|
|
2247
2247
|
var o = this.buf, u, F;
|
|
2248
|
-
return F = o[this.pos++], u = F & 127, F < 128 || (F = o[this.pos++], u |= (F & 127) << 7, F < 128) || (F = o[this.pos++], u |= (F & 127) << 14, F < 128) || (F = o[this.pos++], u |= (F & 127) << 21, F < 128) ? u : (F = o[this.pos], u |= (F & 15) << 28,
|
|
2248
|
+
return F = o[this.pos++], u = F & 127, F < 128 || (F = o[this.pos++], u |= (F & 127) << 7, F < 128) || (F = o[this.pos++], u |= (F & 127) << 14, F < 128) || (F = o[this.pos++], u |= (F & 127) << 21, F < 128) ? u : (F = o[this.pos], u |= (F & 15) << 28, h(u, t, this));
|
|
2249
2249
|
},
|
|
2250
2250
|
readVarint64: function() {
|
|
2251
2251
|
return this.readVarint(!0);
|
|
@@ -2457,7 +2457,7 @@ function Ti() {
|
|
|
2457
2457
|
this.writeVarintField(t, !!o);
|
|
2458
2458
|
}
|
|
2459
2459
|
};
|
|
2460
|
-
function
|
|
2460
|
+
function h(t, o, u) {
|
|
2461
2461
|
var F = u.buf, T, N;
|
|
2462
2462
|
if (N = F[u.pos++], T = (N & 112) >> 4, N < 128 || (N = F[u.pos++], T |= (N & 127) << 3, N < 128) || (N = F[u.pos++], T |= (N & 127) << 10, N < 128) || (N = F[u.pos++], T |= (N & 127) << 17, N < 128) || (N = F[u.pos++], T |= (N & 127) << 24, N < 128) || (N = F[u.pos++], T |= (N & 1) << 31, N < 128)) return S(t, T, o);
|
|
2463
2463
|
throw new Error("Expected varint not more than 10 bytes");
|
|
@@ -2472,9 +2472,9 @@ function Ti() {
|
|
|
2472
2472
|
var u, F;
|
|
2473
2473
|
if (t >= 0 ? (u = t % 4294967296 | 0, F = t / 4294967296 | 0) : (u = ~(-t % 4294967296), F = ~(-t / 4294967296), u ^ 4294967295 ? u = u + 1 | 0 : (u = 0, F = F + 1 | 0)), t >= 18446744073709552e3 || t < -18446744073709552e3)
|
|
2474
2474
|
throw new Error("Given varint doesn't fit into 10 bytes");
|
|
2475
|
-
o.realloc(10),
|
|
2475
|
+
o.realloc(10), y(u, F, o), E(F, o);
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function y(t, o, u) {
|
|
2478
2478
|
u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos++] = t & 127 | 128, t >>>= 7, u.buf[u.pos] = t & 127;
|
|
2479
2479
|
}
|
|
2480
2480
|
function E(t, o) {
|
|
@@ -2526,8 +2526,8 @@ function Ti() {
|
|
|
2526
2526
|
for (var F = "", T = o; T < u; ) {
|
|
2527
2527
|
var N = t[T], G = null, $ = N > 239 ? 4 : N > 223 ? 3 : N > 191 ? 2 : 1;
|
|
2528
2528
|
if (T + $ > u) break;
|
|
2529
|
-
var k, ee,
|
|
2530
|
-
$ === 1 ? N < 128 && (G = N) : $ === 2 ? (k = t[T + 1], (k & 192) === 128 && (G = (N & 31) << 6 | k & 63, G <= 127 && (G = null))) : $ === 3 ? (k = t[T + 1], ee = t[T + 2], (k & 192) === 128 && (ee & 192) === 128 && (G = (N & 15) << 12 | (k & 63) << 6 | ee & 63, (G <= 2047 || G >= 55296 && G <= 57343) && (G = null))) : $ === 4 && (k = t[T + 1], ee = t[T + 2],
|
|
2529
|
+
var k, ee, ye;
|
|
2530
|
+
$ === 1 ? N < 128 && (G = N) : $ === 2 ? (k = t[T + 1], (k & 192) === 128 && (G = (N & 31) << 6 | k & 63, G <= 127 && (G = null))) : $ === 3 ? (k = t[T + 1], ee = t[T + 2], (k & 192) === 128 && (ee & 192) === 128 && (G = (N & 15) << 12 | (k & 63) << 6 | ee & 63, (G <= 2047 || G >= 55296 && G <= 57343) && (G = null))) : $ === 4 && (k = t[T + 1], ee = t[T + 2], ye = t[T + 3], (k & 192) === 128 && (ee & 192) === 128 && (ye & 192) === 128 && (G = (N & 15) << 18 | (k & 63) << 12 | (ee & 63) << 6 | ye & 63, (G <= 65535 || G >= 1114112) && (G = null))), G === null ? (G = 65533, $ = 1) : G > 65535 && (G -= 65536, F += String.fromCharCode(G >>> 10 & 1023 | 55296), G = 56320 | G & 1023), F += String.fromCharCode(G), T += $;
|
|
2531
2531
|
}
|
|
2532
2532
|
return F;
|
|
2533
2533
|
}
|
|
@@ -2584,7 +2584,7 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2584
2584
|
},
|
|
2585
2585
|
setup(e) {
|
|
2586
2586
|
return (n, a) => (W(), ne("div", ki, [
|
|
2587
|
-
e.metric ? (W(), ne("div", Ri,
|
|
2587
|
+
e.metric ? (W(), ne("div", Ri, he(e.title), 1)) : xe("", !0),
|
|
2588
2588
|
(W(!0), ne(Yr, null, $r(e.data, (i, l) => (W(), ne("div", {
|
|
2589
2589
|
key: l,
|
|
2590
2590
|
class: "legend-item"
|
|
@@ -2593,16 +2593,16 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2593
2593
|
class: "legend-color",
|
|
2594
2594
|
style: jr({ backgroundColor: i.color })
|
|
2595
2595
|
}, null, 4),
|
|
2596
|
-
X("span", Ei,
|
|
2596
|
+
X("span", Ei, he(i.range), 1)
|
|
2597
2597
|
]))), 128))
|
|
2598
2598
|
]));
|
|
2599
2599
|
}
|
|
2600
|
-
}),
|
|
2600
|
+
}), yt = (e, n) => {
|
|
2601
2601
|
const a = e.__vccOpts || e;
|
|
2602
2602
|
for (const [i, l] of n)
|
|
2603
2603
|
a[i] = l;
|
|
2604
2604
|
return a;
|
|
2605
|
-
}, Pi = /* @__PURE__ */
|
|
2605
|
+
}, Pi = /* @__PURE__ */ yt(Li, [["__scopeId", "data-v-2858aa0d"]]), Gi = { class: "map-tooltip" }, Oi = { class: "map-tooltip-text" }, Ii = { key: 0 }, Ci = /* @__PURE__ */ ft({
|
|
2606
2606
|
__name: "MapTooltip",
|
|
2607
2607
|
props: {
|
|
2608
2608
|
data: {},
|
|
@@ -2618,12 +2618,12 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2618
2618
|
})), (n, a) => (W(), ne("div", Gi, [
|
|
2619
2619
|
a[0] || (a[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
|
|
2620
2620
|
X("div", Oi, [
|
|
2621
|
-
X("div", null,
|
|
2622
|
-
e.showValue ? (W(), ne("span", Ii,
|
|
2621
|
+
X("div", null, he(e.data.label), 1),
|
|
2622
|
+
e.showValue ? (W(), ne("span", Ii, he(e.data.value), 1)) : xe("", !0)
|
|
2623
2623
|
])
|
|
2624
2624
|
]));
|
|
2625
2625
|
}
|
|
2626
|
-
}), Ui = /* @__PURE__ */
|
|
2626
|
+
}), Ui = /* @__PURE__ */ yt(Ci, [["__scopeId", "data-v-6bea2641"]]), Ai = { class: "kong-ui-public-analytics-geo-map" }, Vi = {
|
|
2627
2627
|
key: 0,
|
|
2628
2628
|
class: "no-location-overlay"
|
|
2629
2629
|
}, Bi = { class: "no-location-overlay-title" }, bi = { class: "no-location-overlay-description" }, zi = ["id"], Hi = /* @__PURE__ */ ft({
|
|
@@ -2641,11 +2641,11 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2641
2641
|
},
|
|
2642
2642
|
emits: ["boundsChange"],
|
|
2643
2643
|
setup(e, { emit: n }) {
|
|
2644
|
-
const a = import("./countries-simple-geo-BFUDnSiE.js").then((s) => s.default), i = n, { i18n: l } = Me.useI18n(), { getColor: d, legendData:
|
|
2644
|
+
const a = import("./countries-simple-geo-BFUDnSiE.js").then((s) => s.default), i = n, { i18n: l } = Me.useI18n(), { getColor: d, legendData: h } = Me.useLegendScale({
|
|
2645
2645
|
countryMetrics: Le(() => e.countryMetrics),
|
|
2646
2646
|
metric: Le(() => e.metric),
|
|
2647
2647
|
unit: Le(() => e.metricUnit)
|
|
2648
|
-
}), { formatMetric: w } = Me.useMetricFormat({ unit: Le(() => e.metricUnit) }), S = we(), D = qr(),
|
|
2648
|
+
}), { formatMetric: w } = Me.useMetricFormat({ unit: Le(() => e.metricUnit) }), S = we(), D = qr(), y = we(), E = we(null), L = we({ left: "0px", top: "0px" }), R = we(!1), P = j(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), O = j(() => ({
|
|
2649
2649
|
"fill-color": [
|
|
2650
2650
|
"match",
|
|
2651
2651
|
[
|
|
@@ -2671,25 +2671,25 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2671
2671
|
return Array.isArray(m[0]) && Array.isArray(m[0][0]) ? U(m) : m;
|
|
2672
2672
|
}, b = (s) => {
|
|
2673
2673
|
if (s === "RU") {
|
|
2674
|
-
|
|
2674
|
+
y.value?.fitBounds([
|
|
2675
2675
|
[20, 40],
|
|
2676
2676
|
[180, 80]
|
|
2677
2677
|
]);
|
|
2678
2678
|
return;
|
|
2679
2679
|
} else if (s === "US") {
|
|
2680
|
-
|
|
2680
|
+
y.value?.fitBounds([
|
|
2681
2681
|
[-130, 20],
|
|
2682
2682
|
[-60, 50]
|
|
2683
2683
|
]);
|
|
2684
2684
|
return;
|
|
2685
2685
|
} else if (s === "FR") {
|
|
2686
|
-
|
|
2686
|
+
y.value?.fitBounds([
|
|
2687
2687
|
[-5, 42],
|
|
2688
2688
|
[9, 51]
|
|
2689
2689
|
]);
|
|
2690
2690
|
return;
|
|
2691
2691
|
} else if (s === "NO") {
|
|
2692
|
-
|
|
2692
|
+
y.value?.fitBounds([
|
|
2693
2693
|
[4, 57],
|
|
2694
2694
|
[32, 71]
|
|
2695
2695
|
]);
|
|
@@ -2700,7 +2700,7 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2700
2700
|
const _ = m.geometry?.coordinates;
|
|
2701
2701
|
if (!_) return;
|
|
2702
2702
|
const x = U(_), t = x.map((G) => G[1]), o = x.map((G) => G[0]), u = Math.min(...t), F = Math.max(...t), T = Math.min(...o), N = Math.max(...o);
|
|
2703
|
-
|
|
2703
|
+
y.value?.fitBounds([
|
|
2704
2704
|
[T, u],
|
|
2705
2705
|
[N, F]
|
|
2706
2706
|
]);
|
|
@@ -2725,41 +2725,41 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2725
2725
|
};
|
|
2726
2726
|
return e.bounds && (s.bounds = e.bounds), s;
|
|
2727
2727
|
}), p = Ni(() => {
|
|
2728
|
-
if (!
|
|
2729
|
-
const s =
|
|
2728
|
+
if (!y.value) return;
|
|
2729
|
+
const s = y.value.getBounds(), m = s.getSouthWest(), _ = s.getNorthEast();
|
|
2730
2730
|
i("boundsChange", [
|
|
2731
2731
|
[m.lng, m.lat],
|
|
2732
2732
|
[_.lng, _.lat]
|
|
2733
2733
|
]);
|
|
2734
2734
|
}, 300), g = da(
|
|
2735
|
-
() =>
|
|
2736
|
-
{ redraw: () =>
|
|
2735
|
+
() => y.value?.getCanvas(),
|
|
2736
|
+
{ redraw: () => y.value?.redraw() }
|
|
2737
2737
|
);
|
|
2738
2738
|
return Wr(() => {
|
|
2739
2739
|
g();
|
|
2740
2740
|
}), Zr(async () => {
|
|
2741
2741
|
try {
|
|
2742
2742
|
const s = await a, m = await fetch(s), _ = new Uint8Array(await m.arrayBuffer()), x = Fi.decode(new Di(_));
|
|
2743
|
-
E.value = x,
|
|
2744
|
-
|
|
2743
|
+
E.value = x, y.value = new Xr(I.value), y.value.on("load", () => {
|
|
2744
|
+
y.value?.addSource("countries", {
|
|
2745
2745
|
type: "geojson",
|
|
2746
2746
|
data: x
|
|
2747
|
-
}),
|
|
2747
|
+
}), y.value?.addLayer({
|
|
2748
2748
|
id: "countries-layer",
|
|
2749
2749
|
type: "fill",
|
|
2750
2750
|
source: "countries",
|
|
2751
2751
|
paint: O.value
|
|
2752
|
-
}),
|
|
2752
|
+
}), y.value?.addSource("lakes", {
|
|
2753
2753
|
type: "geojson",
|
|
2754
2754
|
data: _i
|
|
2755
|
-
}),
|
|
2755
|
+
}), y.value?.addLayer({
|
|
2756
2756
|
id: "lakes-layer",
|
|
2757
2757
|
type: "fill",
|
|
2758
2758
|
source: "lakes",
|
|
2759
2759
|
paint: {
|
|
2760
2760
|
"fill-color": "#FFFFFF"
|
|
2761
2761
|
}
|
|
2762
|
-
}),
|
|
2762
|
+
}), y.value?.on("mousemove", "countries-layer", (t) => {
|
|
2763
2763
|
const o = t.features?.[0];
|
|
2764
2764
|
if (o) {
|
|
2765
2765
|
const { iso_a2: u, iso_a2_eh: F, ISO_A2: T, admin: N } = o.properties, G = T ?? u === "-99" ? F : u, $ = e.countryMetrics[G];
|
|
@@ -2772,20 +2772,20 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2772
2772
|
top: `${t.point.y}px`
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
|
-
}),
|
|
2775
|
+
}), y.value?.on("mouseleave", "countries-layer", () => {
|
|
2776
2776
|
R.value = !1;
|
|
2777
|
-
}),
|
|
2778
|
-
}),
|
|
2777
|
+
}), y.value?.on("move", p), e.fitToCountry && b(e.fitToCountry);
|
|
2778
|
+
}), y.value?.dragRotate.disable(), y.value?.keyboard.disable(), y.value?.touchZoomRotate.disableRotation();
|
|
2779
2779
|
} catch (s) {
|
|
2780
2780
|
console.error(s);
|
|
2781
2781
|
}
|
|
2782
2782
|
}), Xe(() => e.countryMetrics, () => {
|
|
2783
|
-
|
|
2783
|
+
y.value && y.value.isStyleLoaded() && (y.value.getLayer("countries-layer") && y.value.removeLayer("countries-layer"), y.value.addLayer({
|
|
2784
2784
|
id: "countries-layer",
|
|
2785
2785
|
type: "fill",
|
|
2786
2786
|
source: "countries",
|
|
2787
2787
|
paint: O.value
|
|
2788
|
-
}),
|
|
2788
|
+
}), y.value.removeLayer("lakes-layer"), y.value?.addLayer({
|
|
2789
2789
|
id: "lakes-layer",
|
|
2790
2790
|
type: "fill",
|
|
2791
2791
|
source: "lakes",
|
|
@@ -2794,14 +2794,14 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2794
2794
|
}
|
|
2795
2795
|
}));
|
|
2796
2796
|
}), Xe(() => e.fitToCountry, (s) => {
|
|
2797
|
-
|
|
2797
|
+
y.value && s ? b(s) : !I.value.center && !I.value.zoom ? y.value?.fitBounds([
|
|
2798
2798
|
[-180, -90],
|
|
2799
2799
|
[180, 90]
|
|
2800
|
-
]) : (I.value.zoom &&
|
|
2800
|
+
]) : (I.value.zoom && y.value?.setZoom(I.value.zoom), I.value.center && y.value?.flyTo({ center: I.value.center }));
|
|
2801
2801
|
}), Xe(() => e.bounds, (s, m) => {
|
|
2802
2802
|
if (!s) return;
|
|
2803
2803
|
const _ = s?.flat(), x = m?.flat();
|
|
2804
|
-
!(_ && x && _.length === x.length && _.every((o, u) => Math.round(o * 100) / 100 === Math.round(x[u] * 100) / 100)) &&
|
|
2804
|
+
!(_ && x && _.length === x.length && _.every((o, u) => Math.round(o * 100) / 100 === Math.round(x[u] * 100) / 100)) && y.value && y.value.fitBounds(s);
|
|
2805
2805
|
}), (s, m) => (W(), ne("div", Ai, [
|
|
2806
2806
|
P.value ? (W(), ne("div", Vi, [
|
|
2807
2807
|
et(s.$slots, "no-location-icon", {}, () => [
|
|
@@ -2812,12 +2812,12 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2812
2812
|
], !0),
|
|
2813
2813
|
X("div", Bi, [
|
|
2814
2814
|
et(s.$slots, "no-location-title", {}, () => [
|
|
2815
|
-
Qr(
|
|
2815
|
+
Qr(he(oe(l).t("no_location_data")), 1)
|
|
2816
2816
|
], !0)
|
|
2817
2817
|
]),
|
|
2818
2818
|
X("div", bi, [
|
|
2819
2819
|
et(s.$slots, "no-location-description", {}, () => [
|
|
2820
|
-
X("p", null,
|
|
2820
|
+
X("p", null, he(oe(l).t("no_location_data_description")), 1)
|
|
2821
2821
|
], !0)
|
|
2822
2822
|
])
|
|
2823
2823
|
])) : xe("", !0),
|
|
@@ -2828,7 +2828,7 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2828
2828
|
C.value ? (W(), zt(Pi, {
|
|
2829
2829
|
key: 1,
|
|
2830
2830
|
class: "legend-container",
|
|
2831
|
-
data: oe(
|
|
2831
|
+
data: oe(h),
|
|
2832
2832
|
metric: e.metric,
|
|
2833
2833
|
title: V.value
|
|
2834
2834
|
}, null, 8, ["data", "metric", "title"])) : xe("", !0),
|
|
@@ -2841,7 +2841,7 @@ const ki = { class: "legend" }, Ri = {
|
|
|
2841
2841
|
}, null, 8, ["data", "left", "show-value", "top"])) : xe("", !0)
|
|
2842
2842
|
]));
|
|
2843
2843
|
}
|
|
2844
|
-
}), Wi = /* @__PURE__ */
|
|
2844
|
+
}), Wi = /* @__PURE__ */ yt(Hi, [["__scopeId", "data-v-71f48e24"]]);
|
|
2845
2845
|
export {
|
|
2846
2846
|
Wi as AnalyticsGeoMap,
|
|
2847
2847
|
Ni as debounce,
|