@kong-ui-public/analytics-geo-map 1.4.52 → 1.4.53-pr.2843.0e1928965.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.
Files changed (33) hide show
  1. package/package.json +1 -1
  2. package/dist/countries-simple-geo-BFUDnSiE.js +0 -4
  3. package/dist/style.css +0 -1
  4. package/dist/types/components/AnalyticsGeoMap.vue.d.ts +0 -34
  5. package/dist/types/components/AnalyticsGeoMap.vue.d.ts.map +0 -1
  6. package/dist/types/components/MapLegend.vue.d.ts +0 -13
  7. package/dist/types/components/MapLegend.vue.d.ts.map +0 -1
  8. package/dist/types/components/MapTooltip.vue.d.ts +0 -15
  9. package/dist/types/components/MapTooltip.vue.d.ts.map +0 -1
  10. package/dist/types/composables/index.d.ts +0 -10
  11. package/dist/types/composables/index.d.ts.map +0 -1
  12. package/dist/types/composables/useI18n.d.ts +0 -9
  13. package/dist/types/composables/useI18n.d.ts.map +0 -1
  14. package/dist/types/composables/useLegendScale.d.ts +0 -17
  15. package/dist/types/composables/useLegendScale.d.ts.map +0 -1
  16. package/dist/types/composables/useMetricFormat.d.ts +0 -15
  17. package/dist/types/composables/useMetricFormat.d.ts.map +0 -1
  18. package/dist/types/index.d.ts +0 -5
  19. package/dist/types/index.d.ts.map +0 -1
  20. package/dist/types/types/index.d.ts +0 -5
  21. package/dist/types/types/index.d.ts.map +0 -1
  22. package/dist/types/types/map-options.d.ts +0 -5
  23. package/dist/types/types/map-options.d.ts.map +0 -1
  24. package/dist/types/types/metric-units.d.ts +0 -2
  25. package/dist/types/types/metric-units.d.ts.map +0 -1
  26. package/dist/types/utils/debounce.d.ts +0 -2
  27. package/dist/types/utils/debounce.d.ts.map +0 -1
  28. package/dist/types/utils/explore-to-country-metrics.d.ts +0 -3
  29. package/dist/types/utils/explore-to-country-metrics.d.ts.map +0 -1
  30. package/dist/types/utils/index.d.ts +0 -3
  31. package/dist/types/utils/index.d.ts.map +0 -1
  32. package/dist/vitals-geo-map.es.js +0 -4997
  33. package/dist/vitals-geo-map.umd.js +0 -1
@@ -1,4997 +0,0 @@
1
- import { computed as U, defineComponent as Dt, createElementBlock as ae, openBlock as $, createCommentVNode as ke, toDisplayString as we, Fragment as Wr, renderList as Zr, createElementVNode as X, normalizeStyle as qr, useCssVars as Jr, toRef as Be, ref as Ne, useId as Xr, onMounted as Qr, watch as dt, createBlock as nn, renderSlot as mt, createVNode as ea, unref as ue, createTextVNode as ta } from "vue";
2
- import { Map as na } from "maplibre-gl";
3
- import { createI18n as ra, i18nTComponent as aa } from "@kong-ui-public/i18n";
4
- import { AnalyticsIcon as ia } from "@kong/icons";
5
- const oa = {
6
- ms: "ms",
7
- bytes: "Byte{plural}",
8
- count: "request{plural}",
9
- "count/minute": "rpm",
10
- requests: "request{plural}"
11
- }, sa = {
12
- request_count: "Request count",
13
- request_per_minute: "Requests per minute",
14
- response_latency_average: "Response latency (avg)",
15
- response_latency_p99: "Response latency (p99)",
16
- response_latency_p95: "Response latency (p95)",
17
- response_latency_p50: "Response latency (p50)",
18
- kong_latency_average: "Kong latency (avg)",
19
- kong_latency_p99: "Kong latency (p99)",
20
- kong_latency_p95: "Kong latency (p95)",
21
- kong_latency_p50: "Kong latency (p50)",
22
- upstream_latency_average: "Upstream latency (avg)",
23
- upstream_latency_p99: "Upstream latency (p99)",
24
- upstream_latency_p95: "Upstream latency (p95)",
25
- upstream_latency_p50: "Upstream latency (p50)",
26
- response_size_average: "Response size (avg)",
27
- response_size_p99: "Response size (p99)",
28
- response_size_p95: "Response size (p95)",
29
- response_size_p50: "Response size (p50)",
30
- response_size_sum: "Response size (sum)",
31
- request_size_average: "Request size (avg)",
32
- request_size_p99: "Request size (p99)",
33
- request_size_p95: "Request size (p95)",
34
- request_size_p50: "Request size (p50)",
35
- request_size_sum: "Request size (sum)"
36
- }, la = {
37
- windows_zoom_help_text: "Use Ctrl + Scroll to zoom the map",
38
- mac_zoom_help_text: "Use ⌘ + Scroll to zoom the map",
39
- mobile_zoom_help_text: "Use two fingers to zoom the map"
40
- }, ua = "No data in the current time frame", ca = "Once there is traffic, it will display here", da = {
41
- metricUnits: oa,
42
- metrics: sa,
43
- cooperative_gestures: la,
44
- no_location_data: ua,
45
- no_location_data_description: ca
46
- };
47
- function ma() {
48
- const e = ra("en-us", da);
49
- return {
50
- i18n: e,
51
- i18nT: aa(e)
52
- // Translation component <i18n-t>
53
- };
54
- }
55
- var fa = Object.defineProperty, pa = (e, t, n) => t in e ? fa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, I = (e, t, n) => pa(e, typeof t != "symbol" ? t + "" : t, n), h = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(h || {});
56
- const ha = ["in", "not_in", "selector"], ya = ["empty", "not_empty"], _a = [
57
- "15m",
58
- "1h",
59
- "6h",
60
- "12h",
61
- "24h",
62
- "7d",
63
- "current_week",
64
- "previous_week",
65
- "30d",
66
- "current_month",
67
- "previous_month"
68
- ], xe = (e) => e.filter((t) => t !== "time"), Mn = [
69
- "api",
70
- "api_package",
71
- "api_product",
72
- "api_product_version",
73
- "control_plane",
74
- "control_plane_group",
75
- "data_plane_node",
76
- "gateway_service",
77
- "portal",
78
- "route",
79
- "status_code",
80
- "status_code_grouped",
81
- "time"
82
- ], Tn = xe(Mn), Sn = [
83
- ...Mn,
84
- "application",
85
- "consumer",
86
- "country_code",
87
- "upstream_status_code",
88
- "upstream_status_code_grouped",
89
- "response_source",
90
- "data_plane_node_version",
91
- "realm",
92
- "portal_api"
93
- ], Dn = xe(Sn), ga = [
94
- "control_plane",
95
- "control_plane_group",
96
- "gateway_service",
97
- "consumer",
98
- "application",
99
- "route",
100
- "ai_provider",
101
- "ai_response_model",
102
- "ai_request_model",
103
- "llm_cache_status",
104
- "llm_embeddings_provider",
105
- "llm_embeddings_model",
106
- "time",
107
- "realm",
108
- "status_code",
109
- "status_code_grouped",
110
- "ai_plugin"
111
- ], Nn = xe(ga), wa = [
112
- "api",
113
- "api_package",
114
- "api_product",
115
- "api_product_version",
116
- "application",
117
- "auth_type",
118
- "client_ip",
119
- "consumer",
120
- "consumer_group",
121
- "control_plane",
122
- "control_plane_group",
123
- "country_code",
124
- "data_plane_node",
125
- "data_plane_node_version",
126
- "gateway_service",
127
- "header_host",
128
- "header_user_agent",
129
- "http_method",
130
- "portal",
131
- "realm",
132
- "request_id",
133
- "request_uri",
134
- "response_header_content_type",
135
- "response_source",
136
- "route",
137
- "service_port",
138
- "service_protocol",
139
- "sse",
140
- "status_code_grouped",
141
- "time",
142
- "trace_id",
143
- "upstream_uri",
144
- "upstream_status_code_grouped",
145
- "websocket"
146
- ];
147
- xe(wa);
148
- const va = [
149
- "ai_count",
150
- "latencies_response_ms",
151
- "latencies_upstream_ms",
152
- "latencies_kong_gateway_ms",
153
- "request_body_size",
154
- "response_body_size",
155
- "response_header_content_length",
156
- "status_code",
157
- "upstream_status_code"
158
- ];
159
- xe(va);
160
- const xa = [
161
- ...Sn,
162
- "mcp_session_id",
163
- "mcp_method",
164
- "mcp_tool_name",
165
- "mcp_error"
166
- ], Fa = xe(xa);
167
- new Set(Tn), new Set(Dn), new Set(Nn), new Set(Fa);
168
- const Nt = [
169
- { code: "AF", name: "Afghanistan" },
170
- { code: "AX", name: "Aland Islands" },
171
- { code: "AL", name: "Albania" },
172
- { code: "DZ", name: "Algeria" },
173
- { code: "AS", name: "American Samoa" },
174
- { code: "AD", name: "Andorra" },
175
- { code: "AO", name: "Angola" },
176
- { code: "AI", name: "Anguilla" },
177
- { code: "AQ", name: "Antarctica" },
178
- { code: "AG", name: "Antigua and Barbuda" },
179
- { code: "AR", name: "Argentina" },
180
- { code: "AM", name: "Armenia" },
181
- { code: "AW", name: "Aruba" },
182
- { code: "AU", name: "Australia" },
183
- { code: "AT", name: "Austria" },
184
- { code: "AZ", name: "Azerbaijan" },
185
- { code: "BS", name: "Bahamas" },
186
- { code: "BH", name: "Bahrain" },
187
- { code: "BD", name: "Bangladesh" },
188
- { code: "BB", name: "Barbados" },
189
- { code: "BY", name: "Belarus" },
190
- { code: "BE", name: "Belgium" },
191
- { code: "BZ", name: "Belize" },
192
- { code: "BJ", name: "Benin" },
193
- { code: "BM", name: "Bermuda" },
194
- { code: "BT", name: "Bhutan" },
195
- { code: "BO", name: "Bolivia" },
196
- { code: "BA", name: "Bosnia and Herzegovina" },
197
- { code: "BW", name: "Botswana" },
198
- { code: "BV", name: "Bouvet Island" },
199
- { code: "BR", name: "Brazil" },
200
- { code: "IO", name: "British Indian Ocean Territory" },
201
- { code: "BN", name: "Brunei Darussalam" },
202
- { code: "BG", name: "Bulgaria" },
203
- { code: "BF", name: "Burkina Faso" },
204
- { code: "BI", name: "Burundi" },
205
- { code: "KH", name: "Cambodia" },
206
- { code: "CM", name: "Cameroon" },
207
- { code: "CA", name: "Canada" },
208
- { code: "CV", name: "Cape Verde" },
209
- { code: "KY", name: "Cayman Islands" },
210
- { code: "CF", name: "Central African Republic" },
211
- { code: "TD", name: "Chad" },
212
- { code: "CL", name: "Chile" },
213
- { code: "CN", name: "China" },
214
- { code: "CX", name: "Christmas Island" },
215
- { code: "CC", name: "Cocos (Keeling) Islands" },
216
- { code: "CO", name: "Colombia" },
217
- { code: "KM", name: "Comoros" },
218
- { code: "CG", name: "Congo" },
219
- { code: "CD", name: "Democratic Republic of the Congo" },
220
- { code: "CK", name: "Cook Islands" },
221
- { code: "CR", name: "Costa Rica" },
222
- { code: "CI", name: "Cote d'Ivoire" },
223
- { code: "HR", name: "Croatia" },
224
- { code: "CU", name: "Cuba" },
225
- { code: "CY", name: "Cyprus" },
226
- { code: "CZ", name: "Czech Republic" },
227
- { code: "DK", name: "Denmark" },
228
- { code: "DJ", name: "Djibouti" },
229
- { code: "DM", name: "Dominica" },
230
- { code: "DO", name: "Dominican Republic" },
231
- { code: "EC", name: "Ecuador" },
232
- { code: "EG", name: "Egypt" },
233
- { code: "SV", name: "El Salvador" },
234
- { code: "GQ", name: "Equatorial Guinea" },
235
- { code: "ER", name: "Eritrea" },
236
- { code: "EE", name: "Estonia" },
237
- { code: "ET", name: "Ethiopia" },
238
- { code: "FK", name: "Falkland Islands (Malvinas)" },
239
- { code: "FO", name: "Faroe Islands" },
240
- { code: "FJ", name: "Fiji" },
241
- { code: "FI", name: "Finland" },
242
- { code: "FR", name: "France" },
243
- { code: "GF", name: "French Guiana" },
244
- { code: "PF", name: "French Polynesia" },
245
- { code: "TF", name: "French Southern Territories" },
246
- { code: "GA", name: "Gabon" },
247
- { code: "GM", name: "Gambia" },
248
- { code: "GE", name: "Georgia" },
249
- { code: "DE", name: "Germany" },
250
- { code: "GH", name: "Ghana" },
251
- { code: "GI", name: "Gibraltar" },
252
- { code: "GR", name: "Greece" },
253
- { code: "GL", name: "Greenland" },
254
- { code: "GD", name: "Grenada" },
255
- { code: "GP", name: "Guadeloupe" },
256
- { code: "GU", name: "Guam" },
257
- { code: "GT", name: "Guatemala" },
258
- { code: "GG", name: "Guernsey" },
259
- { code: "GN", name: "Guinea" },
260
- { code: "GW", name: "Guinea-Bissau" },
261
- { code: "GY", name: "Guyana" },
262
- { code: "HT", name: "Haiti" },
263
- { code: "HM", name: "Heard Island and McDonald Islands" },
264
- { code: "VA", name: "The Vatican" },
265
- { code: "HN", name: "Honduras" },
266
- { code: "HK", name: "Hong Kong" },
267
- { code: "HU", name: "Hungary" },
268
- { code: "IS", name: "Iceland" },
269
- { code: "IN", name: "India" },
270
- { code: "ID", name: "Indonesia" },
271
- { code: "IR", name: "Iran" },
272
- { code: "IQ", name: "Iraq" },
273
- { code: "IE", name: "Ireland" },
274
- { code: "IM", name: "Isle of Man" },
275
- { code: "IL", name: "Israel" },
276
- { code: "IT", name: "Italy" },
277
- { code: "JM", name: "Jamaica" },
278
- { code: "JP", name: "Japan" },
279
- { code: "JE", name: "Jersey" },
280
- { code: "JO", name: "Jordan" },
281
- { code: "KZ", name: "Kazakhstan" },
282
- { code: "KE", name: "Kenya" },
283
- { code: "KI", name: "Kiribati" },
284
- { code: "KP", name: "North Korea" },
285
- { code: "KR", name: "South Korea" },
286
- { code: "KW", name: "Kuwait" },
287
- { code: "KG", name: "Kyrgyzstan" },
288
- { code: "LA", name: "Laos" },
289
- { code: "LV", name: "Latvia" },
290
- { code: "LB", name: "Lebanon" },
291
- { code: "LS", name: "Lesotho" },
292
- { code: "LR", name: "Liberia" },
293
- { code: "LY", name: "Libya" },
294
- { code: "LI", name: "Liechtenstein" },
295
- { code: "LT", name: "Lithuania" },
296
- { code: "LU", name: "Luxembourg" },
297
- { code: "MO", name: "Macao" },
298
- { code: "MK", name: "Macedonia" },
299
- { code: "MG", name: "Madagascar" },
300
- { code: "MW", name: "Malawi" },
301
- { code: "MY", name: "Malaysia" },
302
- { code: "MV", name: "Maldives" },
303
- { code: "ML", name: "Mali" },
304
- { code: "MT", name: "Malta" },
305
- { code: "MH", name: "Marshall Islands" },
306
- { code: "MQ", name: "Martinique" },
307
- { code: "MR", name: "Mauritania" },
308
- { code: "MU", name: "Mauritius" },
309
- { code: "YT", name: "Mayotte" },
310
- { code: "MX", name: "Mexico" },
311
- { code: "FM", name: "Micronesia, " },
312
- { code: "MD", name: "Moldova," },
313
- { code: "MC", name: "Monaco" },
314
- { code: "MN", name: "Mongolia" },
315
- { code: "ME", name: "Montenegro" },
316
- { code: "MS", name: "Montserrat" },
317
- { code: "MA", name: "Morocco" },
318
- { code: "MZ", name: "Mozambique" },
319
- { code: "MM", name: "Myanmar" },
320
- { code: "NA", name: "Namibia" },
321
- { code: "NR", name: "Nauru" },
322
- { code: "NP", name: "Nepal" },
323
- { code: "NL", name: "Netherlands" },
324
- { code: "NC", name: "New Caledonia" },
325
- { code: "NZ", name: "New Zealand" },
326
- { code: "NI", name: "Nicaragua" },
327
- { code: "NE", name: "Niger" },
328
- { code: "NG", name: "Nigeria" },
329
- { code: "NU", name: "Niue" },
330
- { code: "NF", name: "Norfolk Island" },
331
- { code: "MP", name: "Northern Mariana Islands" },
332
- { code: "NO", name: "Norway" },
333
- { code: "OM", name: "Oman" },
334
- { code: "PK", name: "Pakistan" },
335
- { code: "PW", name: "Palau" },
336
- { code: "PA", name: "Panama" },
337
- { code: "PG", name: "Papua New Guinea" },
338
- { code: "PY", name: "Paraguay" },
339
- { code: "PE", name: "Peru" },
340
- { code: "PH", name: "Philippines" },
341
- { code: "PN", name: "Pitcairn" },
342
- { code: "PL", name: "Poland" },
343
- { code: "PT", name: "Portugal" },
344
- { code: "PR", name: "Puerto Rico" },
345
- { code: "QA", name: "Qatar" },
346
- { code: "RE", name: "Reunion" },
347
- { code: "RO", name: "Romania" },
348
- { code: "RU", name: "Russia" },
349
- { code: "RW", name: "Rwanda" },
350
- { code: "BL", name: "Saint Barthelemy" },
351
- { code: "SH", name: "Saint Helena" },
352
- { code: "KN", name: "Saint Kitts and Nevis" },
353
- { code: "LC", name: "Saint Lucia" },
354
- { code: "MF", name: "Saint Martin" },
355
- { code: "PM", name: "Saint Pierre and Miquelon" },
356
- { code: "VC", name: "Saint Vincent and the Grenadines" },
357
- { code: "WS", name: "Samoa" },
358
- { code: "SM", name: "San Marino" },
359
- { code: "ST", name: "Sao Tome and Principe" },
360
- { code: "SA", name: "Saudi Arabia" },
361
- { code: "SN", name: "Senegal" },
362
- { code: "RS", name: "Serbia" },
363
- { code: "SC", name: "Seychelles" },
364
- { code: "SL", name: "Sierra Leone" },
365
- { code: "SG", name: "Singapore" },
366
- { code: "SX", name: "Sint Maarten" },
367
- { code: "SK", name: "Slovakia" },
368
- { code: "SI", name: "Slovenia" },
369
- { code: "SB", name: "Solomon Islands" },
370
- { code: "SO", name: "Somalia" },
371
- { code: "ZA", name: "South Africa" },
372
- { code: "GS", name: "South Georgia and the South Sandwich Islands" },
373
- { code: "SS", name: "South Sudan" },
374
- { code: "ES", name: "Spain" },
375
- { code: "LK", name: "Sri Lanka" },
376
- { code: "SD", name: "Sudan" },
377
- { code: "SR", name: "Suriname" },
378
- { code: "SJ", name: "Svalbard and Jan Mayen" },
379
- { code: "SZ", name: "Swaziland" },
380
- { code: "SE", name: "Sweden" },
381
- { code: "CH", name: "Switzerland" },
382
- { code: "SY", name: "Syria" },
383
- { code: "TW", name: "Taiwan" },
384
- { code: "TJ", name: "Tajikistan" },
385
- { code: "TZ", name: "Tanzania" },
386
- { code: "TH", name: "Thailand" },
387
- { code: "TL", name: "Timor-Leste" },
388
- { code: "TG", name: "Togo" },
389
- { code: "TK", name: "Tokelau" },
390
- { code: "TO", name: "Tonga" },
391
- { code: "TT", name: "Trinidad and Tobago" },
392
- { code: "TN", name: "Tunisia" },
393
- { code: "TR", name: "Turkey" },
394
- { code: "TM", name: "Turkmenistan" },
395
- { code: "TC", name: "Turks and Caicos Islands" },
396
- { code: "TV", name: "Tuvalu" },
397
- { code: "UG", name: "Uganda" },
398
- { code: "UA", name: "Ukraine" },
399
- { code: "AE", name: "United Arab Emirates" },
400
- { code: "GB", name: "United Kingdom" },
401
- { code: "US", name: "United States" },
402
- { code: "UM", name: "United States Minor Outlying Islands" },
403
- { code: "UY", name: "Uruguay" },
404
- { code: "UZ", name: "Uzbekistan" },
405
- { code: "VU", name: "Vanuatu" },
406
- { code: "VE", name: "Venezuela" },
407
- { code: "VN", name: "Vietnam" },
408
- { code: "VG", name: "British Virgin Islands" },
409
- { code: "VI", name: "U.S. Virgin Islands" },
410
- { code: "WF", name: "Wallis and Futuna" },
411
- { code: "EH", name: "Western Sahara" },
412
- { code: "YE", name: "Yemen" },
413
- { code: "ZM", name: "Zambia" },
414
- { code: "ZW", name: "Zimbabwe" }
415
- ];
416
- Nt.map((e) => e.code);
417
- const Ma = (e) => ({
418
- type: "array",
419
- description: "A list of filters to apply to the query",
420
- items: {
421
- oneOf: [
422
- {
423
- type: "object",
424
- description: "In filter",
425
- properties: {
426
- field: {
427
- type: "string",
428
- enum: e
429
- },
430
- operator: {
431
- type: "string",
432
- enum: ha
433
- },
434
- value: {
435
- type: "array",
436
- items: {
437
- type: ["string", "number", "null"]
438
- }
439
- }
440
- },
441
- required: [
442
- "field",
443
- "operator",
444
- "value"
445
- ],
446
- additionalProperties: !1
447
- },
448
- {
449
- type: "object",
450
- description: "Empty filter",
451
- properties: {
452
- field: {
453
- type: "string",
454
- enum: e
455
- },
456
- operator: {
457
- type: "string",
458
- enum: ya
459
- }
460
- },
461
- required: [
462
- "field",
463
- "operator"
464
- ],
465
- additionalProperties: !1
466
- }
467
- ]
468
- }
469
- });
470
- Ma([.../* @__PURE__ */ new Set([...Dn, ...Tn, ...Nn])]);
471
- let Ta = {};
472
- function Sa() {
473
- return Ta;
474
- }
475
- const Da = 60, Na = 3600, rn = /* @__PURE__ */ Symbol.for("constructDateFrom");
476
- function Oe(e, t) {
477
- return typeof e == "function" ? e(t) : e && typeof e == "object" && rn in e ? e[rn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
478
- }
479
- function Fe(e, t) {
480
- return Oe(t || e, e);
481
- }
482
- function ft(e, t) {
483
- const n = Fe(e, void 0);
484
- return n.setHours(0, 0, 0, 0), n;
485
- }
486
- function ze(e, t) {
487
- var n, a, i, o;
488
- const l = Sa(), m = (t == null ? void 0 : t.weekStartsOn) ?? ((a = (n = t == null ? void 0 : t.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? l.weekStartsOn ?? ((o = (i = l.locale) == null ? void 0 : i.options) == null ? void 0 : o.weekStartsOn) ?? 0, f = Fe(e, t == null ? void 0 : t.in), d = f.getDay(), c = (d < m ? 7 : 0) + d - m;
489
- return f.setDate(f.getDate() - c), f.setHours(0, 0, 0, 0), f;
490
- }
491
- function pt(e, t, n) {
492
- const a = Fe(e, void 0);
493
- return isNaN(t) ? Oe(e, NaN) : (a.setDate(a.getDate() + t), a);
494
- }
495
- function ka(e, t, n) {
496
- const a = Fe(e, void 0);
497
- if (isNaN(t)) return Oe(e, NaN);
498
- const i = a.getDate(), o = Oe(e, a.getTime());
499
- o.setMonth(a.getMonth() + t + 1, 0);
500
- const l = o.getDate();
501
- return i >= l ? o : (a.setFullYear(
502
- o.getFullYear(),
503
- o.getMonth(),
504
- i
505
- ), a);
506
- }
507
- function ge(e, t) {
508
- const n = Fe(e, void 0);
509
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
510
- }
511
- function Ea(e, t) {
512
- const n = Fe(e, void 0), a = n.getFullYear(), i = n.getMonth(), o = Oe(n, 0);
513
- return o.setFullYear(a, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
514
- }
515
- function an(e) {
516
- return Math.trunc(e * Na);
517
- }
518
- function Ra(e) {
519
- const t = e / Da;
520
- return Math.trunc(t);
521
- }
522
- function kn(e, t, n) {
523
- return ka(e, -1);
524
- }
525
- function Oa(e, t) {
526
- const n = Ia(t);
527
- return "formatToParts" in n ? La(n, e) : Ga(n, e);
528
- }
529
- const ba = {
530
- year: 0,
531
- month: 1,
532
- day: 2,
533
- hour: 3,
534
- minute: 4,
535
- second: 5
536
- };
537
- function La(e, t) {
538
- try {
539
- const n = e.formatToParts(t), a = [];
540
- for (let i = 0; i < n.length; i++) {
541
- const o = ba[n[i].type];
542
- o !== void 0 && (a[o] = parseInt(n[i].value, 10));
543
- }
544
- return a;
545
- } catch (n) {
546
- if (n instanceof RangeError)
547
- return [NaN];
548
- throw n;
549
- }
550
- }
551
- function Ga(e, t) {
552
- const n = e.format(t), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
553
- return [
554
- parseInt(a[3], 10),
555
- parseInt(a[1], 10),
556
- parseInt(a[2], 10),
557
- parseInt(a[4], 10),
558
- parseInt(a[5], 10),
559
- parseInt(a[6], 10)
560
- ];
561
- }
562
- const ht = {}, on = new Intl.DateTimeFormat("en-US", {
563
- hourCycle: "h23",
564
- timeZone: "America/New_York",
565
- year: "numeric",
566
- month: "2-digit",
567
- day: "2-digit",
568
- hour: "2-digit",
569
- minute: "2-digit",
570
- second: "2-digit"
571
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ca = on === "06/25/2014, 00:00:00" || on === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
572
- function Ia(e) {
573
- return ht[e] || (ht[e] = Ca ? new Intl.DateTimeFormat("en-US", {
574
- hourCycle: "h23",
575
- timeZone: e,
576
- year: "numeric",
577
- month: "numeric",
578
- day: "2-digit",
579
- hour: "2-digit",
580
- minute: "2-digit",
581
- second: "2-digit"
582
- }) : new Intl.DateTimeFormat("en-US", {
583
- hour12: !1,
584
- timeZone: e,
585
- year: "numeric",
586
- month: "numeric",
587
- day: "2-digit",
588
- hour: "2-digit",
589
- minute: "2-digit",
590
- second: "2-digit"
591
- })), ht[e];
592
- }
593
- function kt(e, t, n, a, i, o, l) {
594
- const m = /* @__PURE__ */ new Date(0);
595
- return m.setUTCFullYear(e, t, n), m.setUTCHours(a, i, o, l), m;
596
- }
597
- const sn = 36e5, Ua = 6e4, yt = {
598
- timezoneZ: /^(Z)$/,
599
- timezoneHH: /^([+-]\d{2})$/,
600
- timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
601
- };
602
- function Ze(e, t, n) {
603
- if (!e)
604
- return 0;
605
- let a = yt.timezoneZ.exec(e);
606
- if (a)
607
- return 0;
608
- let i, o;
609
- if (a = yt.timezoneHH.exec(e), a)
610
- return i = parseInt(a[1], 10), ln(i) ? -(i * sn) : NaN;
611
- if (a = yt.timezoneHHMM.exec(e), a) {
612
- i = parseInt(a[2], 10);
613
- const l = parseInt(a[3], 10);
614
- return ln(i, l) ? (o = Math.abs(i) * sn + l * Ua, a[1] === "+" ? -o : o) : NaN;
615
- }
616
- if (Ba(e)) {
617
- t = new Date(t || Date.now());
618
- const l = n ? t : Pa(t), m = Mt(l, e);
619
- return -(n ? m : Aa(t, m, e));
620
- }
621
- return NaN;
622
- }
623
- function Pa(e) {
624
- return kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
625
- }
626
- function Mt(e, t) {
627
- const n = Oa(e, t), a = kt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
628
- let i = e.getTime();
629
- const o = i % 1e3;
630
- return i -= o >= 0 ? o : 1e3 + o, a - i;
631
- }
632
- function Aa(e, t, n) {
633
- let a = e.getTime() - t;
634
- const i = Mt(new Date(a), n);
635
- if (t === i)
636
- return t;
637
- a -= i - t;
638
- const o = Mt(new Date(a), n);
639
- return i === o ? i : Math.max(i, o);
640
- }
641
- function ln(e, t) {
642
- return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
643
- }
644
- const un = {};
645
- function Ba(e) {
646
- if (un[e])
647
- return !0;
648
- try {
649
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), un[e] = !0, !0;
650
- } catch {
651
- return !1;
652
- }
653
- }
654
- function cn(e) {
655
- const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
656
- return t.setUTCFullYear(e.getFullYear()), +e - +t;
657
- }
658
- const En = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, _t = 36e5, dn = 6e4, Ha = 2, R = {
659
- dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
660
- datePattern: /^([0-9W+-]+)(.*)/,
661
- // year tokens
662
- YY: /^(\d{2})$/,
663
- YYY: [
664
- /^([+-]\d{2})$/,
665
- // 0 additional digits
666
- /^([+-]\d{3})$/,
667
- // 1 additional digit
668
- /^([+-]\d{4})$/
669
- // 2 additional digits
670
- ],
671
- YYYY: /^(\d{4})/,
672
- YYYYY: [
673
- /^([+-]\d{4})/,
674
- // 0 additional digits
675
- /^([+-]\d{5})/,
676
- // 1 additional digit
677
- /^([+-]\d{6})/
678
- // 2 additional digits
679
- ],
680
- // date tokens
681
- MM: /^-(\d{2})$/,
682
- DDD: /^-?(\d{3})$/,
683
- MMDD: /^-?(\d{2})-?(\d{2})$/,
684
- Www: /^-?W(\d{2})$/,
685
- WwwD: /^-?W(\d{2})-?(\d{1})$/,
686
- HH: /^(\d{2}([.,]\d*)?)$/,
687
- HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
688
- HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
689
- // time zone tokens (to identify the presence of a tz)
690
- timeZone: En
691
- };
692
- function Tt(e, t = {}) {
693
- if (arguments.length < 1)
694
- throw new TypeError("1 argument required, but only " + arguments.length + " present");
695
- if (e === null)
696
- return /* @__PURE__ */ new Date(NaN);
697
- const n = t.additionalDigits == null ? Ha : Number(t.additionalDigits);
698
- if (n !== 2 && n !== 1 && n !== 0)
699
- throw new RangeError("additionalDigits must be 0, 1 or 2");
700
- if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
701
- return new Date(e.getTime());
702
- if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]")
703
- return new Date(e);
704
- if (Object.prototype.toString.call(e) !== "[object String]")
705
- return /* @__PURE__ */ new Date(NaN);
706
- const a = Va(e), { year: i, restDateString: o } = Ya(a.date, n), l = za(o, i);
707
- if (l === null || isNaN(l.getTime()))
708
- return /* @__PURE__ */ new Date(NaN);
709
- if (l) {
710
- const m = l.getTime();
711
- let f = 0, d;
712
- if (a.time && (f = ja(a.time), f === null || isNaN(f)))
713
- return /* @__PURE__ */ new Date(NaN);
714
- if (a.timeZone || t.timeZone) {
715
- if (d = Ze(a.timeZone || t.timeZone, new Date(m + f)), isNaN(d))
716
- return /* @__PURE__ */ new Date(NaN);
717
- } else
718
- d = cn(new Date(m + f)), d = cn(new Date(m + f + d));
719
- return new Date(m + f + d);
720
- } else
721
- return /* @__PURE__ */ new Date(NaN);
722
- }
723
- function Va(e) {
724
- const t = {};
725
- let n = R.dateTimePattern.exec(e), a;
726
- if (n ? (t.date = n[1], a = n[3]) : (n = R.datePattern.exec(e), n ? (t.date = n[1], a = n[2]) : (t.date = null, a = e)), a) {
727
- const i = R.timeZone.exec(a);
728
- i ? (t.time = a.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = a;
729
- }
730
- return t;
731
- }
732
- function Ya(e, t) {
733
- if (e) {
734
- const n = R.YYY[t], a = R.YYYYY[t];
735
- let i = R.YYYY.exec(e) || a.exec(e);
736
- if (i) {
737
- const o = i[1];
738
- return {
739
- year: parseInt(o, 10),
740
- restDateString: e.slice(o.length)
741
- };
742
- }
743
- if (i = R.YY.exec(e) || n.exec(e), i) {
744
- const o = i[1];
745
- return {
746
- year: parseInt(o, 10) * 100,
747
- restDateString: e.slice(o.length)
748
- };
749
- }
750
- }
751
- return {
752
- year: null
753
- };
754
- }
755
- function za(e, t) {
756
- if (t === null)
757
- return null;
758
- let n, a, i;
759
- if (!e || !e.length)
760
- return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
761
- let o = R.MM.exec(e);
762
- if (o)
763
- return n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1, fn(t, a) ? (n.setUTCFullYear(t, a), n) : /* @__PURE__ */ new Date(NaN);
764
- if (o = R.DDD.exec(e), o) {
765
- n = /* @__PURE__ */ new Date(0);
766
- const l = parseInt(o[1], 10);
767
- return Wa(t, l) ? (n.setUTCFullYear(t, 0, l), n) : /* @__PURE__ */ new Date(NaN);
768
- }
769
- if (o = R.MMDD.exec(e), o) {
770
- n = /* @__PURE__ */ new Date(0), a = parseInt(o[1], 10) - 1;
771
- const l = parseInt(o[2], 10);
772
- return fn(t, a, l) ? (n.setUTCFullYear(t, a, l), n) : /* @__PURE__ */ new Date(NaN);
773
- }
774
- if (o = R.Www.exec(e), o)
775
- return i = parseInt(o[1], 10) - 1, pn(i) ? mn(t, i) : /* @__PURE__ */ new Date(NaN);
776
- if (o = R.WwwD.exec(e), o) {
777
- i = parseInt(o[1], 10) - 1;
778
- const l = parseInt(o[2], 10) - 1;
779
- return pn(i, l) ? mn(t, i, l) : /* @__PURE__ */ new Date(NaN);
780
- }
781
- return null;
782
- }
783
- function ja(e) {
784
- let t, n, a = R.HH.exec(e);
785
- if (a)
786
- return t = parseFloat(a[1].replace(",", ".")), gt(t) ? t % 24 * _t : NaN;
787
- if (a = R.HHMM.exec(e), a)
788
- return t = parseInt(a[1], 10), n = parseFloat(a[2].replace(",", ".")), gt(t, n) ? t % 24 * _t + n * dn : NaN;
789
- if (a = R.HHMMSS.exec(e), a) {
790
- t = parseInt(a[1], 10), n = parseInt(a[2], 10);
791
- const i = parseFloat(a[3].replace(",", "."));
792
- return gt(t, n, i) ? t % 24 * _t + n * dn + i * 1e3 : NaN;
793
- }
794
- return null;
795
- }
796
- function mn(e, t, n) {
797
- t = t || 0, n = n || 0;
798
- const a = /* @__PURE__ */ new Date(0);
799
- a.setUTCFullYear(e, 0, 4);
800
- const i = a.getUTCDay() || 7, o = t * 7 + n + 1 - i;
801
- return a.setUTCDate(a.getUTCDate() + o), a;
802
- }
803
- const $a = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ka = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
804
- function Rn(e) {
805
- return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
806
- }
807
- function fn(e, t, n) {
808
- if (t < 0 || t > 11)
809
- return !1;
810
- if (n != null) {
811
- if (n < 1)
812
- return !1;
813
- const a = Rn(e);
814
- if (a && n > Ka[t] || !a && n > $a[t])
815
- return !1;
816
- }
817
- return !0;
818
- }
819
- function Wa(e, t) {
820
- if (t < 1)
821
- return !1;
822
- const n = Rn(e);
823
- return !(n && t > 366 || !n && t > 365);
824
- }
825
- function pn(e, t) {
826
- return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
827
- }
828
- function gt(e, t, n) {
829
- return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
830
- }
831
- function Za(e, t, n) {
832
- e = Tt(e, n);
833
- const a = Ze(t, e, !0), i = new Date(e.getTime() - a), o = /* @__PURE__ */ new Date(0);
834
- return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
835
- }
836
- function qa(e, t, n) {
837
- if (typeof e == "string" && !e.match(En))
838
- return Tt(e, { ...n, timeZone: t });
839
- e = Tt(e, n);
840
- const a = kt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = Ze(t, new Date(a));
841
- return new Date(a + i);
842
- }
843
- function Ja(e, t) {
844
- return -Ze(e, t);
845
- }
846
- var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
847
- function Xa(e) {
848
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
849
- }
850
- var je = { exports: {} };
851
- je.exports;
852
- (function(e, t) {
853
- var n = 200, a = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", m = "[object Boolean]", f = "[object Date]", d = "[object Error]", c = "[object Function]", y = "[object GeneratorFunction]", w = "[object Map]", g = "[object Number]", M = "[object Object]", T = "[object Promise]", B = "[object RegExp]", A = "[object Set]", C = "[object String]", ie = "[object Symbol]", D = "[object WeakMap]", Me = "[object ArrayBuffer]", ce = "[object DataView]", _ = "[object Float32Array]", F = "[object Float64Array]", S = "[object Int8Array]", k = "[object Int16Array]", ee = "[object Int32Array]", K = "[object Uint8Array]", H = "[object Uint8ClampedArray]", te = "[object Uint16Array]", ne = "[object Uint32Array]", G = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, Y = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, v = {};
854
- v[o] = v[l] = v[Me] = v[ce] = v[m] = v[f] = v[_] = v[F] = v[S] = v[k] = v[ee] = v[w] = v[g] = v[M] = v[B] = v[A] = v[C] = v[ie] = v[K] = v[H] = v[te] = v[ne] = !0, v[d] = v[c] = v[D] = !1;
855
- var j = typeof He == "object" && He && He.Object === Object && He, de = typeof self == "object" && self && self.Object === Object && self, O = j || de || Function("return this")(), W = t && !t.nodeType && t, Le = W && !0 && e && !e.nodeType && e, Je = Le && Le.exports === W;
856
- function Xe(r, s) {
857
- return r.set(s[0], s[1]), r;
858
- }
859
- function Qe(r, s) {
860
- return r.add(s), r;
861
- }
862
- function Te(r, s) {
863
- for (var u = -1, p = r ? r.length : 0; ++u < p && s(r[u], u, r) !== !1; )
864
- ;
865
- return r;
866
- }
867
- function Gn(r, s) {
868
- for (var u = -1, p = s.length, N = r.length; ++u < p; )
869
- r[N + u] = s[u];
870
- return r;
871
- }
872
- function Lt(r, s, u, p) {
873
- for (var N = -1, b = r ? r.length : 0; ++N < b; )
874
- u = s(u, r[N], N, r);
875
- return u;
876
- }
877
- function Cn(r, s) {
878
- for (var u = -1, p = Array(r); ++u < r; )
879
- p[u] = s(u);
880
- return p;
881
- }
882
- function In(r, s) {
883
- return r == null ? void 0 : r[s];
884
- }
885
- function Gt(r) {
886
- var s = !1;
887
- if (r != null && typeof r.toString != "function")
888
- try {
889
- s = !!(r + "");
890
- } catch {
891
- }
892
- return s;
893
- }
894
- function Ct(r) {
895
- var s = -1, u = Array(r.size);
896
- return r.forEach(function(p, N) {
897
- u[++s] = [N, p];
898
- }), u;
899
- }
900
- function et(r, s) {
901
- return function(u) {
902
- return r(s(u));
903
- };
904
- }
905
- function It(r) {
906
- var s = -1, u = Array(r.size);
907
- return r.forEach(function(p) {
908
- u[++s] = p;
909
- }), u;
910
- }
911
- var Un = Array.prototype, Pn = Function.prototype, Ge = Object.prototype, tt = O["__core-js_shared__"], Ut = (function() {
912
- var r = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
913
- return r ? "Symbol(src)_1." + r : "";
914
- })(), Pt = Pn.toString, re = Ge.hasOwnProperty, Ce = Ge.toString, An = RegExp(
915
- "^" + Pt.call(re).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
916
- ), At = Je ? O.Buffer : void 0, Bt = O.Symbol, Ht = O.Uint8Array, Bn = et(Object.getPrototypeOf, Object), Hn = Object.create, Vn = Ge.propertyIsEnumerable, Yn = Un.splice, Vt = Object.getOwnPropertySymbols, zn = At ? At.isBuffer : void 0, jn = et(Object.keys, Object), nt = pe(O, "DataView"), Se = pe(O, "Map"), rt = pe(O, "Promise"), at = pe(O, "Set"), it = pe(O, "WeakMap"), De = pe(Object, "create"), $n = le(nt), Kn = le(Se), Wn = le(rt), Zn = le(at), qn = le(it), Yt = Bt ? Bt.prototype : void 0, zt = Yt ? Yt.valueOf : void 0;
917
- function oe(r) {
918
- var s = -1, u = r ? r.length : 0;
919
- for (this.clear(); ++s < u; ) {
920
- var p = r[s];
921
- this.set(p[0], p[1]);
922
- }
923
- }
924
- function Jn() {
925
- this.__data__ = De ? De(null) : {};
926
- }
927
- function Xn(r) {
928
- return this.has(r) && delete this.__data__[r];
929
- }
930
- function Qn(r) {
931
- var s = this.__data__;
932
- if (De) {
933
- var u = s[r];
934
- return u === a ? void 0 : u;
935
- }
936
- return re.call(s, r) ? s[r] : void 0;
937
- }
938
- function er(r) {
939
- var s = this.__data__;
940
- return De ? s[r] !== void 0 : re.call(s, r);
941
- }
942
- function tr(r, s) {
943
- var u = this.__data__;
944
- return u[r] = De && s === void 0 ? a : s, this;
945
- }
946
- oe.prototype.clear = Jn, oe.prototype.delete = Xn, oe.prototype.get = Qn, oe.prototype.has = er, oe.prototype.set = tr;
947
- function Z(r) {
948
- var s = -1, u = r ? r.length : 0;
949
- for (this.clear(); ++s < u; ) {
950
- var p = r[s];
951
- this.set(p[0], p[1]);
952
- }
953
- }
954
- function nr() {
955
- this.__data__ = [];
956
- }
957
- function rr(r) {
958
- var s = this.__data__, u = Ie(s, r);
959
- if (u < 0)
960
- return !1;
961
- var p = s.length - 1;
962
- return u == p ? s.pop() : Yn.call(s, u, 1), !0;
963
- }
964
- function ar(r) {
965
- var s = this.__data__, u = Ie(s, r);
966
- return u < 0 ? void 0 : s[u][1];
967
- }
968
- function ir(r) {
969
- return Ie(this.__data__, r) > -1;
970
- }
971
- function or(r, s) {
972
- var u = this.__data__, p = Ie(u, r);
973
- return p < 0 ? u.push([r, s]) : u[p][1] = s, this;
974
- }
975
- Z.prototype.clear = nr, Z.prototype.delete = rr, Z.prototype.get = ar, Z.prototype.has = ir, Z.prototype.set = or;
976
- function me(r) {
977
- var s = -1, u = r ? r.length : 0;
978
- for (this.clear(); ++s < u; ) {
979
- var p = r[s];
980
- this.set(p[0], p[1]);
981
- }
982
- }
983
- function sr() {
984
- this.__data__ = {
985
- hash: new oe(),
986
- map: new (Se || Z)(),
987
- string: new oe()
988
- };
989
- }
990
- function lr(r) {
991
- return Ue(this, r).delete(r);
992
- }
993
- function ur(r) {
994
- return Ue(this, r).get(r);
995
- }
996
- function cr(r) {
997
- return Ue(this, r).has(r);
998
- }
999
- function dr(r, s) {
1000
- return Ue(this, r).set(r, s), this;
1001
- }
1002
- me.prototype.clear = sr, me.prototype.delete = lr, me.prototype.get = ur, me.prototype.has = cr, me.prototype.set = dr;
1003
- function fe(r) {
1004
- this.__data__ = new Z(r);
1005
- }
1006
- function mr() {
1007
- this.__data__ = new Z();
1008
- }
1009
- function fr(r) {
1010
- return this.__data__.delete(r);
1011
- }
1012
- function pr(r) {
1013
- return this.__data__.get(r);
1014
- }
1015
- function hr(r) {
1016
- return this.__data__.has(r);
1017
- }
1018
- function yr(r, s) {
1019
- var u = this.__data__;
1020
- if (u instanceof Z) {
1021
- var p = u.__data__;
1022
- if (!Se || p.length < n - 1)
1023
- return p.push([r, s]), this;
1024
- u = this.__data__ = new me(p);
1025
- }
1026
- return u.set(r, s), this;
1027
- }
1028
- fe.prototype.clear = mr, fe.prototype.delete = fr, fe.prototype.get = pr, fe.prototype.has = hr, fe.prototype.set = yr;
1029
- function _r(r, s) {
1030
- var u = lt(r) || Hr(r) ? Cn(r.length, String) : [], p = u.length, N = !!p;
1031
- for (var b in r)
1032
- re.call(r, b) && !(N && (b == "length" || Ur(b, p))) && u.push(b);
1033
- return u;
1034
- }
1035
- function jt(r, s, u) {
1036
- var p = r[s];
1037
- (!(re.call(r, s) && Zt(p, u)) || u === void 0 && !(s in r)) && (r[s] = u);
1038
- }
1039
- function Ie(r, s) {
1040
- for (var u = r.length; u--; )
1041
- if (Zt(r[u][0], s))
1042
- return u;
1043
- return -1;
1044
- }
1045
- function gr(r, s) {
1046
- return r && $t(s, ut(s), r);
1047
- }
1048
- function ot(r, s, u, p, N, b, q) {
1049
- var L;
1050
- if (p && (L = b ? p(r, N, b, q) : p(r)), L !== void 0)
1051
- return L;
1052
- if (!Pe(r))
1053
- return r;
1054
- var Xt = lt(r);
1055
- if (Xt) {
1056
- if (L = Gr(r), !s)
1057
- return Or(r, L);
1058
- } else {
1059
- var he = se(r), Qt = he == c || he == y;
1060
- if (Yr(r))
1061
- return Tr(r, s);
1062
- if (he == M || he == o || Qt && !b) {
1063
- if (Gt(r))
1064
- return b ? r : {};
1065
- if (L = Cr(Qt ? {} : r), !s)
1066
- return br(r, gr(L, r));
1067
- } else {
1068
- if (!v[he])
1069
- return b ? r : {};
1070
- L = Ir(r, he, ot, s);
1071
- }
1072
- }
1073
- q || (q = new fe());
1074
- var en = q.get(r);
1075
- if (en)
1076
- return en;
1077
- if (q.set(r, L), !Xt)
1078
- var tn = u ? Lr(r) : ut(r);
1079
- return Te(tn || r, function(ct, Ae) {
1080
- tn && (Ae = ct, ct = r[Ae]), jt(L, Ae, ot(ct, s, u, p, Ae, r, q));
1081
- }), L;
1082
- }
1083
- function wr(r) {
1084
- return Pe(r) ? Hn(r) : {};
1085
- }
1086
- function vr(r, s, u) {
1087
- var p = s(r);
1088
- return lt(r) ? p : Gn(p, u(r));
1089
- }
1090
- function xr(r) {
1091
- return Ce.call(r);
1092
- }
1093
- function Fr(r) {
1094
- if (!Pe(r) || Ar(r))
1095
- return !1;
1096
- var s = Jt(r) || Gt(r) ? An : Y;
1097
- return s.test(le(r));
1098
- }
1099
- function Mr(r) {
1100
- if (!Wt(r))
1101
- return jn(r);
1102
- var s = [];
1103
- for (var u in Object(r))
1104
- re.call(r, u) && u != "constructor" && s.push(u);
1105
- return s;
1106
- }
1107
- function Tr(r, s) {
1108
- if (s)
1109
- return r.slice();
1110
- var u = new r.constructor(r.length);
1111
- return r.copy(u), u;
1112
- }
1113
- function st(r) {
1114
- var s = new r.constructor(r.byteLength);
1115
- return new Ht(s).set(new Ht(r)), s;
1116
- }
1117
- function Sr(r, s) {
1118
- var u = s ? st(r.buffer) : r.buffer;
1119
- return new r.constructor(u, r.byteOffset, r.byteLength);
1120
- }
1121
- function Dr(r, s, u) {
1122
- var p = s ? u(Ct(r), !0) : Ct(r);
1123
- return Lt(p, Xe, new r.constructor());
1124
- }
1125
- function Nr(r) {
1126
- var s = new r.constructor(r.source, V.exec(r));
1127
- return s.lastIndex = r.lastIndex, s;
1128
- }
1129
- function kr(r, s, u) {
1130
- var p = s ? u(It(r), !0) : It(r);
1131
- return Lt(p, Qe, new r.constructor());
1132
- }
1133
- function Er(r) {
1134
- return zt ? Object(zt.call(r)) : {};
1135
- }
1136
- function Rr(r, s) {
1137
- var u = s ? st(r.buffer) : r.buffer;
1138
- return new r.constructor(u, r.byteOffset, r.length);
1139
- }
1140
- function Or(r, s) {
1141
- var u = -1, p = r.length;
1142
- for (s || (s = Array(p)); ++u < p; )
1143
- s[u] = r[u];
1144
- return s;
1145
- }
1146
- function $t(r, s, u, p) {
1147
- u || (u = {});
1148
- for (var N = -1, b = s.length; ++N < b; ) {
1149
- var q = s[N], L = void 0;
1150
- jt(u, q, L === void 0 ? r[q] : L);
1151
- }
1152
- return u;
1153
- }
1154
- function br(r, s) {
1155
- return $t(r, Kt(r), s);
1156
- }
1157
- function Lr(r) {
1158
- return vr(r, ut, Kt);
1159
- }
1160
- function Ue(r, s) {
1161
- var u = r.__data__;
1162
- return Pr(s) ? u[typeof s == "string" ? "string" : "hash"] : u.map;
1163
- }
1164
- function pe(r, s) {
1165
- var u = In(r, s);
1166
- return Fr(u) ? u : void 0;
1167
- }
1168
- var Kt = Vt ? et(Vt, Object) : $r, se = xr;
1169
- (nt && se(new nt(new ArrayBuffer(1))) != ce || Se && se(new Se()) != w || rt && se(rt.resolve()) != T || at && se(new at()) != A || it && se(new it()) != D) && (se = function(r) {
1170
- var s = Ce.call(r), u = s == M ? r.constructor : void 0, p = u ? le(u) : void 0;
1171
- if (p)
1172
- switch (p) {
1173
- case $n:
1174
- return ce;
1175
- case Kn:
1176
- return w;
1177
- case Wn:
1178
- return T;
1179
- case Zn:
1180
- return A;
1181
- case qn:
1182
- return D;
1183
- }
1184
- return s;
1185
- });
1186
- function Gr(r) {
1187
- var s = r.length, u = r.constructor(s);
1188
- return s && typeof r[0] == "string" && re.call(r, "index") && (u.index = r.index, u.input = r.input), u;
1189
- }
1190
- function Cr(r) {
1191
- return typeof r.constructor == "function" && !Wt(r) ? wr(Bn(r)) : {};
1192
- }
1193
- function Ir(r, s, u, p) {
1194
- var N = r.constructor;
1195
- switch (s) {
1196
- case Me:
1197
- return st(r);
1198
- case m:
1199
- case f:
1200
- return new N(+r);
1201
- case ce:
1202
- return Sr(r, p);
1203
- case _:
1204
- case F:
1205
- case S:
1206
- case k:
1207
- case ee:
1208
- case K:
1209
- case H:
1210
- case te:
1211
- case ne:
1212
- return Rr(r, p);
1213
- case w:
1214
- return Dr(r, p, u);
1215
- case g:
1216
- case C:
1217
- return new N(r);
1218
- case B:
1219
- return Nr(r);
1220
- case A:
1221
- return kr(r, p, u);
1222
- case ie:
1223
- return Er(r);
1224
- }
1225
- }
1226
- function Ur(r, s) {
1227
- return s = s ?? i, !!s && (typeof r == "number" || z.test(r)) && r > -1 && r % 1 == 0 && r < s;
1228
- }
1229
- function Pr(r) {
1230
- var s = typeof r;
1231
- return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? r !== "__proto__" : r === null;
1232
- }
1233
- function Ar(r) {
1234
- return !!Ut && Ut in r;
1235
- }
1236
- function Wt(r) {
1237
- var s = r && r.constructor, u = typeof s == "function" && s.prototype || Ge;
1238
- return r === u;
1239
- }
1240
- function le(r) {
1241
- if (r != null) {
1242
- try {
1243
- return Pt.call(r);
1244
- } catch {
1245
- }
1246
- try {
1247
- return r + "";
1248
- } catch {
1249
- }
1250
- }
1251
- return "";
1252
- }
1253
- function Br(r) {
1254
- return ot(r, !0, !0);
1255
- }
1256
- function Zt(r, s) {
1257
- return r === s || r !== r && s !== s;
1258
- }
1259
- function Hr(r) {
1260
- return Vr(r) && re.call(r, "callee") && (!Vn.call(r, "callee") || Ce.call(r) == o);
1261
- }
1262
- var lt = Array.isArray;
1263
- function qt(r) {
1264
- return r != null && zr(r.length) && !Jt(r);
1265
- }
1266
- function Vr(r) {
1267
- return jr(r) && qt(r);
1268
- }
1269
- var Yr = zn || Kr;
1270
- function Jt(r) {
1271
- var s = Pe(r) ? Ce.call(r) : "";
1272
- return s == c || s == y;
1273
- }
1274
- function zr(r) {
1275
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= i;
1276
- }
1277
- function Pe(r) {
1278
- var s = typeof r;
1279
- return !!r && (s == "object" || s == "function");
1280
- }
1281
- function jr(r) {
1282
- return !!r && typeof r == "object";
1283
- }
1284
- function ut(r) {
1285
- return qt(r) ? _r(r) : Mr(r);
1286
- }
1287
- function $r() {
1288
- return [];
1289
- }
1290
- function Kr() {
1291
- return !1;
1292
- }
1293
- e.exports = Br;
1294
- })(je, je.exports);
1295
- je.exports;
1296
- const Q = (e, t) => new Date(e.getTime() - Ja(t, e));
1297
- class E {
1298
- constructor(t) {
1299
- I(this, "timeframeText"), I(this, "key"), I(this, "display"), I(this, "timeframeLength"), I(this, "allowedTiers"), I(this, "defaultResponseGranularity"), I(this, "dataGranularity"), I(this, "isRelative"), I(this, "fineGrainedDefaultGranularity"), I(this, "_startCustom"), I(this, "_endCustom"), I(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
1300
- }
1301
- // rawEnd does not consider granularity and should not be used directly in queries.
1302
- // Use `new QueryTime(timeframe, granularity?).queryEndSeconds()` instead.
1303
- // eslint-disable-next-line -- `tz` is required because it's used in subclasses.
1304
- rawEnd(t) {
1305
- return this._endCustom || /* @__PURE__ */ new Date();
1306
- }
1307
- // rawStart does not consider granularity and should not be used directly in queries.
1308
- // Use `new QueryTime(timeframe, granularity?).queryStartSeconds()` instead.
1309
- // eslint-disable-next-line -- `tz` is required because it's used in subclasses.
1310
- rawStart(t) {
1311
- return this._startCustom || new Date(this.rawEnd().getTime() - this.timeframeLengthMs());
1312
- }
1313
- timeframeLengthMs() {
1314
- return this.timeframeLength() * 1e3;
1315
- }
1316
- maximumTimeframeLength() {
1317
- return this.timeframeLength();
1318
- }
1319
- allowedGranularities(t) {
1320
- if (this._allowedGranularitiesOverride && t)
1321
- return new Set(this._allowedGranularitiesOverride);
1322
- const n = /* @__PURE__ */ new Set(), a = this.maximumTimeframeLength() / 3600;
1323
- return a <= 6 && n.add("minutely"), a >= 2 && a <= 168 && n.add("hourly"), a >= 48 && n.add("daily"), a >= 672 && n.add("weekly"), n;
1324
- }
1325
- cacheKey() {
1326
- return this.key !== "custom" ? this.key : `${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`;
1327
- }
1328
- v4Query(t) {
1329
- if (this.key === "custom")
1330
- return {
1331
- type: "absolute",
1332
- start: this.rawStart(),
1333
- end: this.rawEnd(),
1334
- tz: t
1335
- };
1336
- if (_a.includes(this.key))
1337
- return {
1338
- type: "relative",
1339
- // Safe assertion; we just checked that key is a member of the union.
1340
- time_range: this.key,
1341
- tz: t
1342
- };
1343
- throw new Error("Unsupported relative time value for Explore");
1344
- }
1345
- tzAdjustedDate(t) {
1346
- if (!t)
1347
- return /* @__PURE__ */ new Date();
1348
- const n = qa(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
1349
- return Za(n, t);
1350
- }
1351
- }
1352
- class Qa extends E {
1353
- rawStart(t) {
1354
- let n = ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1355
- return t && (n = Q(n, t)), n;
1356
- }
1357
- maximumTimeframeLength() {
1358
- return 3600 * 24 * 7;
1359
- }
1360
- }
1361
- class ei extends E {
1362
- rawStart(t) {
1363
- let n = ge(this.tzAdjustedDate(t));
1364
- return t && (n = Q(n, t)), n;
1365
- }
1366
- maximumTimeframeLength() {
1367
- return 3600 * 24 * 31;
1368
- }
1369
- }
1370
- class ti extends E {
1371
- rawStart(t) {
1372
- let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1373
- return t && (n = Q(n, t)), n;
1374
- }
1375
- maximumTimeframeLength() {
1376
- return 3600 * 24 * 366;
1377
- }
1378
- }
1379
- class ni extends E {
1380
- rawEnd(t) {
1381
- let n = ze(this.tzAdjustedDate(t), { weekStartsOn: 1 });
1382
- return t && (n = Q(n, t)), n;
1383
- }
1384
- rawStart(t) {
1385
- const n = this.tzAdjustedDate(t);
1386
- let a = ze(n.setDate(n.getDate() - 7), {
1387
- weekStartsOn: 1
1388
- });
1389
- return t && (a = Q(a, t)), a;
1390
- }
1391
- }
1392
- class ri extends E {
1393
- rawEnd(t) {
1394
- let n = ge(this.tzAdjustedDate(t));
1395
- return t && (n = Q(n, t)), n;
1396
- }
1397
- rawStart(t) {
1398
- let n = ge(kn(this.tzAdjustedDate(t)));
1399
- return t && (n = Q(n, t)), n;
1400
- }
1401
- }
1402
- class ai extends E {
1403
- rawEnd(t) {
1404
- let n = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
1405
- return t && (n = Q(n, t)), n;
1406
- }
1407
- rawStart(t) {
1408
- let n = new Date(this.tzAdjustedDate(t).getFullYear() - 1, 0, 1);
1409
- return t && (n = Q(n, t)), n;
1410
- }
1411
- }
1412
- h.FIFTEEN_MIN, new E({
1413
- key: h.FIFTEEN_MIN,
1414
- display: "Last 15 minutes",
1415
- timeframeText: "15 minutes",
1416
- timeframeLength: () => 900,
1417
- defaultResponseGranularity: "minutely",
1418
- dataGranularity: "minutely",
1419
- isRelative: !0,
1420
- fineGrainedDefaultGranularity: "thirtySecondly",
1421
- allowedTiers: ["free", "trial", "plus", "enterprise"],
1422
- allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely"]
1423
- }), h.ONE_HOUR, new E({
1424
- key: h.ONE_HOUR,
1425
- display: "Last hour",
1426
- timeframeText: "One hour",
1427
- timeframeLength: () => 3600 * 1,
1428
- defaultResponseGranularity: "minutely",
1429
- dataGranularity: "minutely",
1430
- isRelative: !0,
1431
- fineGrainedDefaultGranularity: "minutely",
1432
- allowedTiers: ["free", "trial", "plus", "enterprise"],
1433
- allowedGranularitiesOverride: ["tenSecondly", "thirtySecondly", "minutely", "fiveMinutely", "tenMinutely"]
1434
- }), h.SIX_HOUR, new E({
1435
- key: h.SIX_HOUR,
1436
- display: "Last 6 hours",
1437
- timeframeText: "6 hours",
1438
- timeframeLength: () => 3600 * 6,
1439
- defaultResponseGranularity: "hourly",
1440
- dataGranularity: "hourly",
1441
- isRelative: !0,
1442
- fineGrainedDefaultGranularity: "fiveMinutely",
1443
- allowedTiers: ["free", "trial", "plus", "enterprise"],
1444
- allowedGranularitiesOverride: ["thirtySecondly", "minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1445
- }), h.TWELVE_HOUR, new E({
1446
- key: h.TWELVE_HOUR,
1447
- display: "Last 12 hours",
1448
- timeframeText: "12 hours",
1449
- timeframeLength: () => 3600 * 12,
1450
- defaultResponseGranularity: "hourly",
1451
- dataGranularity: "hourly",
1452
- isRelative: !0,
1453
- fineGrainedDefaultGranularity: "tenMinutely",
1454
- allowedTiers: ["free", "trial", "plus", "enterprise"],
1455
- allowedGranularitiesOverride: ["minutely", "fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1456
- }), h.ONE_DAY, new E({
1457
- key: h.ONE_DAY,
1458
- display: "Last 24 hours",
1459
- timeframeText: "24 hours",
1460
- timeframeLength: () => 3600 * 24,
1461
- defaultResponseGranularity: "hourly",
1462
- dataGranularity: "hourly",
1463
- isRelative: !0,
1464
- fineGrainedDefaultGranularity: "thirtyMinutely",
1465
- allowedTiers: ["free", "trial", "plus", "enterprise"],
1466
- allowedGranularitiesOverride: ["fiveMinutely", "tenMinutely", "thirtyMinutely", "hourly"]
1467
- }), h.SEVEN_DAY, new E({
1468
- key: h.SEVEN_DAY,
1469
- display: "Last 7 days",
1470
- timeframeText: "7 days",
1471
- timeframeLength: () => 3600 * 24 * 7,
1472
- defaultResponseGranularity: "daily",
1473
- dataGranularity: "daily",
1474
- isRelative: !0,
1475
- fineGrainedDefaultGranularity: "twoHourly",
1476
- allowedTiers: ["trial", "plus", "enterprise"],
1477
- allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1478
- }), h.THIRTY_DAY, new E({
1479
- key: h.THIRTY_DAY,
1480
- display: "Last 30 days",
1481
- timeframeText: "30 days",
1482
- timeframeLength: () => 3600 * 24 * 30,
1483
- defaultResponseGranularity: "daily",
1484
- dataGranularity: "daily",
1485
- isRelative: !0,
1486
- fineGrainedDefaultGranularity: "twelveHourly",
1487
- allowedTiers: ["trial", "plus", "enterprise"],
1488
- allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1489
- }), h.NINETY_DAY, new E({
1490
- key: h.NINETY_DAY,
1491
- display: "Last 90 days",
1492
- timeframeText: "90 days",
1493
- timeframeLength: () => 3600 * 24 * 90,
1494
- defaultResponseGranularity: "daily",
1495
- dataGranularity: "daily",
1496
- isRelative: !0,
1497
- fineGrainedDefaultGranularity: "daily",
1498
- allowedTiers: ["trial", "plus", "enterprise"],
1499
- allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1500
- }), h.ONE_HUNDRED_EIGHTY_DAY, new E({
1501
- key: h.ONE_HUNDRED_EIGHTY_DAY,
1502
- display: "Last 180 days",
1503
- timeframeText: "180 days",
1504
- timeframeLength: () => 3600 * 24 * 180,
1505
- defaultResponseGranularity: "daily",
1506
- dataGranularity: "daily",
1507
- isRelative: !0,
1508
- fineGrainedDefaultGranularity: "daily",
1509
- allowedTiers: ["trial", "plus", "enterprise"],
1510
- allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1511
- }), h.ONE_YEAR, new E({
1512
- key: h.ONE_YEAR,
1513
- display: "Last 365 days",
1514
- timeframeText: "365 days",
1515
- timeframeLength: () => 3600 * 24 * 365,
1516
- defaultResponseGranularity: "daily",
1517
- dataGranularity: "daily",
1518
- isRelative: !0,
1519
- fineGrainedDefaultGranularity: "daily",
1520
- allowedTiers: ["trial", "plus", "enterprise"],
1521
- allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
1522
- }), h.CURRENT_WEEK, new Qa({
1523
- key: h.CURRENT_WEEK,
1524
- display: "This week",
1525
- timeframeText: "Week",
1526
- timeframeLength: () => {
1527
- const e = ze(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
1528
- return (ft(pt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1529
- },
1530
- defaultResponseGranularity: "daily",
1531
- dataGranularity: "daily",
1532
- isRelative: !1,
1533
- fineGrainedDefaultGranularity: "twoHourly",
1534
- allowedTiers: ["plus", "enterprise"],
1535
- allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1536
- }), h.CURRENT_MONTH, new ei({
1537
- key: h.CURRENT_MONTH,
1538
- display: "This month",
1539
- timeframeText: "Month",
1540
- timeframeLength: () => {
1541
- const e = ge(/* @__PURE__ */ new Date());
1542
- return (ft(pt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1543
- },
1544
- defaultResponseGranularity: "daily",
1545
- dataGranularity: "daily",
1546
- isRelative: !1,
1547
- allowedTiers: ["plus", "enterprise"]
1548
- }), h.CURRENT_YEAR, new ti({
1549
- key: h.CURRENT_YEAR,
1550
- display: "This year",
1551
- timeframeText: "Year",
1552
- timeframeLength: () => {
1553
- const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1);
1554
- return (ft(pt(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
1555
- },
1556
- defaultResponseGranularity: "daily",
1557
- dataGranularity: "daily",
1558
- isRelative: !1,
1559
- allowedTiers: ["plus", "enterprise"]
1560
- }), h.PREVIOUS_WEEK, new ni({
1561
- key: h.PREVIOUS_WEEK,
1562
- display: "Previous week",
1563
- timeframeText: "Week",
1564
- timeframeLength: () => 3600 * 24 * 7,
1565
- defaultResponseGranularity: "daily",
1566
- dataGranularity: "daily",
1567
- isRelative: !1,
1568
- fineGrainedDefaultGranularity: "twoHourly",
1569
- allowedTiers: ["plus", "enterprise"],
1570
- allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
1571
- }), h.PREVIOUS_MONTH, new ri({
1572
- key: h.PREVIOUS_MONTH,
1573
- display: "Previous month",
1574
- timeframeText: "Month",
1575
- timeframeLength: () => {
1576
- let e = 0;
1577
- const t = ge(/* @__PURE__ */ new Date()), n = ge(kn(/* @__PURE__ */ new Date()));
1578
- return t.getTimezoneOffset() !== n.getTimezoneOffset() && (e = hn(t, n)), 3600 * 24 * Ea((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + an(e);
1579
- },
1580
- defaultResponseGranularity: "daily",
1581
- dataGranularity: "daily",
1582
- isRelative: !1,
1583
- allowedTiers: ["plus", "enterprise"]
1584
- }), h.PREVIOUS_YEAR, new ai({
1585
- key: h.PREVIOUS_YEAR,
1586
- display: "Previous year",
1587
- timeframeText: "Year",
1588
- timeframeLength: () => {
1589
- const e = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
1590
- let n = 0;
1591
- return e.getTimezoneOffset() !== t.getTimezoneOffset() && (n = hn(e, t)), 3600 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + an(n);
1592
- },
1593
- defaultResponseGranularity: "daily",
1594
- dataGranularity: "daily",
1595
- isRelative: !1,
1596
- allowedTiers: ["plus", "enterprise"]
1597
- });
1598
- function hn(e, t) {
1599
- return Ra(e.getTimezoneOffset() - t.getTimezoneOffset());
1600
- }
1601
- h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.FIFTEEN_MIN, h.ONE_HOUR, h.SIX_HOUR, h.TWELVE_HOUR, h.ONE_DAY, h.SEVEN_DAY, h.THIRTY_DAY, h.NINETY_DAY, h.ONE_HUNDRED_EIGHTY_DAY, h.ONE_YEAR, h.CURRENT_WEEK, h.CURRENT_MONTH, h.CURRENT_YEAR, h.PREVIOUS_WEEK, h.PREVIOUS_MONTH, h.PREVIOUS_YEAR;
1602
- new Map(Nt.map((e) => [e.code, { code: e.code, name: e.name }]));
1603
- var On = { exports: {} };
1604
- (function(e) {
1605
- (function() {
1606
- function t(d, c) {
1607
- if (c.separator === !1 || d < 1e3)
1608
- return d.toString();
1609
- var y = typeof c.separator == "string" ? c.separator : ",", w = [], g = Math.round(d).toString().split("");
1610
- return g.reverse().forEach(function(M, T) {
1611
- T && T % 3 === 0 && w.push(y), w.push(M);
1612
- }), w.reverse().join("");
1613
- }
1614
- function n(d, c, y) {
1615
- var w = d / c, g = y.round ? "round" : "floor";
1616
- return y.decimal === !1 ? (d = Math[g](w), d.toString()) : (y.precision ? d = w : d = w < 10 ? Math[g](w * 10) / 10 : Math[g](w), d = d.toString(), typeof y.decimal == "string" && (d = d.replace(".", y.decimal)), d);
1617
- }
1618
- var a = 1e3, i = 1e4, o = 1e6, l = 1e9, m = 1e12;
1619
- function f(d, c) {
1620
- var y;
1621
- c = c || {};
1622
- var w = d < 0;
1623
- w && (d = Math.abs(d)), c.precision && (d = parseFloat(d.toPrecision(c.precision)));
1624
- var g = c.min10k ? i : a;
1625
- return d < g || c.precision && c.precision > Math.log10(d) ? y = t(n(d, 1, c), c) : d < o ? y = n(d, a, c) + "k" : d < l ? y = n(d, o, c) + "m" : d < m ? y = t(n(d, l, c), c) + "b" : y = t(n(d, m, c), c) + "t", w && (y = "-" + y), c.capital && (y = y.toUpperCase()), c.prefix && (y = c.prefix + y), c.suffix && (y = y + c.suffix), y;
1626
- }
1627
- f.addCommas = t, e.exports = f;
1628
- })();
1629
- })(On);
1630
- var ii = On.exports;
1631
- const wt = /* @__PURE__ */ Xa(ii);
1632
- var yn;
1633
- const oi = typeof document < "u" && ((yn = document.documentElement) == null ? void 0 : yn.lang) || "en-US", vt = new Intl.NumberFormat(oi);
1634
- function si({
1635
- i18n: e
1636
- }) {
1637
- const t = (a, i) => {
1638
- if (isNaN(a))
1639
- return "0 B";
1640
- const o = i ? Math.pow(2, 50) : 1e15, l = i ? Math.pow(2, 40) : 1e12, m = i ? Math.pow(2, 30) : 1e9, f = i ? Math.pow(2, 20) : 1e6, d = i ? Math.pow(2, 10) : 1e3;
1641
- let c;
1642
- return a >= o ? c = e.formatNumber(
1643
- Number.parseFloat((a / o).toPrecision(3)),
1644
- { style: "unit", unit: "petabyte", unitDisplay: "narrow" }
1645
- ) : a >= l ? c = e.formatNumber(
1646
- Number.parseFloat((a / l).toPrecision(3)),
1647
- { style: "unit", unit: "terabyte", unitDisplay: "narrow" }
1648
- ) : a >= m ? c = e.formatNumber(
1649
- Number.parseFloat((a / m).toPrecision(3)),
1650
- { style: "unit", unit: "gigabyte", unitDisplay: "narrow" }
1651
- ) : a >= f ? c = e.formatNumber(
1652
- Number.parseFloat((a / f).toPrecision(3)),
1653
- { style: "unit", unit: "megabyte", unitDisplay: "narrow" }
1654
- ) : a >= d ? c = e.formatNumber(
1655
- Number.parseFloat((a / d).toPrecision(3)),
1656
- { style: "unit", unit: "kilobyte", unitDisplay: "narrow" }
1657
- ) : c = e.formatNumber(
1658
- Number.parseFloat(a.toPrecision(3)),
1659
- { style: "unit", unit: "byte", unitDisplay: "narrow" }
1660
- ), c.replace(/([a-zA-Z]*)$/, " $1");
1661
- }, n = (a, i = "USD") => isNaN(a) ? i === "USD" ? "$0.00" : `${a}` : a >= 0.01 || i !== "USD" ? e.formatNumber(a, { style: "currency", currency: i }) : a < 1e-4 ? "< $0.0001" : `$${Number.parseFloat(a.toPrecision(4))}`;
1662
- return { formatUnit: (a, i, {
1663
- isBytes1024: o = !1,
1664
- currency: l = "USD",
1665
- approximate: m = !1,
1666
- translateUnit: f = (d) => d
1667
- } = {}) => {
1668
- const d = f(i, a);
1669
- switch (i) {
1670
- case "bytes":
1671
- return t(a, o);
1672
- case "usd":
1673
- return n(a, l);
1674
- default:
1675
- return isNaN(a) ? `${a}` : m ? `${wt(a, { capital: !0 })} ${d}` : a >= 0.01 ? `${vt.format(Number.parseFloat(a.toFixed(2)))} ${d}` : `${Number.parseFloat(a.toPrecision(4))} ${d}`;
1676
- }
1677
- }, formatBytes: t, formatCost: n, formatRange: (a, i, o, {
1678
- isBytes1024: l = !1,
1679
- currency: m = "USD",
1680
- approximate: f = !1,
1681
- translateUnit: d = (c) => c
1682
- } = {}) => {
1683
- const c = d(o, i);
1684
- switch (o) {
1685
- case "bytes":
1686
- return `${t(a, l)} - ${t(i, l)}`;
1687
- case "usd":
1688
- return `${n(a, m)} - ${n(i, m)}`;
1689
- default:
1690
- if (isNaN(a) || isNaN(i))
1691
- return `${a} - ${i}`;
1692
- if (f)
1693
- return `${wt(a, { capital: !0 })} - ${wt(i, { capital: !0 })} ${c}`;
1694
- }
1695
- const y = a >= 0.01 ? `${vt.format(Number.parseFloat(a.toFixed(2)))}` : `${Number.parseFloat(a.toPrecision(4))}`, w = i >= 0.01 ? `${vt.format(Number.parseFloat(i.toFixed(2)))}` : `${Number.parseFloat(i.toPrecision(4))}`;
1696
- return `${y} - ${w} ${c}`;
1697
- } };
1698
- }
1699
- const Ee = "#e0e4ea", li = "#828a9e", ui = "32px", _n = 5, xt = [
1700
- "#00819d",
1701
- "#00abd2",
1702
- "#00c8f4",
1703
- "#67e3ff",
1704
- "#b3f1ff"
1705
- ], ci = (e, t) => {
1706
- const n = e.length;
1707
- if (!n)
1708
- return NaN;
1709
- const a = (n - 1) * t, i = Math.floor(a), o = Math.ceil(a);
1710
- return i === o ? e[i] : e[i] + (a - i) * (e[o] - e[i]);
1711
- }, Ft = (e, t) => {
1712
- if (e.length === 0)
1713
- return [];
1714
- const n = e.filter((m) => m > 0).map(Math.log).sort((m, f) => m - f), a = Math.min(...n), o = (Math.max(...n) - a) / t;
1715
- return Array.from({ length: t }, (m, f) => a + f * o).map((m) => Math.exp(m)).reverse();
1716
- };
1717
- function di({
1718
- countryMetrics: e,
1719
- metric: t,
1720
- unit: n
1721
- }) {
1722
- const { formatMetric: a, formatMetricRange: i } = Re.useMetricFormat({ unit: n }), o = U(() => {
1723
- const g = { ...e.value };
1724
- for (const M of Object.keys(g))
1725
- Nt.find((T) => T.code === M) || delete g[M];
1726
- return g;
1727
- }), l = U(() => Object.values(o.value)), m = U(() => Object.keys(o.value).length), f = U(() => m.value < _n - 1 ? m.value : _n), d = U(() => {
1728
- var g;
1729
- return !((g = t.value) != null && g.includes("latency"));
1730
- }), c = U(() => {
1731
- const g = [];
1732
- if (l.value.length > 10) {
1733
- const M = [...l.value].sort((D, Me) => D - Me), T = ci(M, 0.75), B = l.value.filter((D) => D >= T), A = l.value.filter((D) => D < T), C = Ft(B, 3), ie = Ft(A, 2);
1734
- return g.push(...C, ...ie), g;
1735
- }
1736
- return Ft(l.value, f.value);
1737
- }), y = U(() => l.value.length === 1 ? [{
1738
- color: w(l.value[0]),
1739
- range: a(l.value[0], {
1740
- approximate: d.value,
1741
- showUnit: !n.value.includes("count")
1742
- }).trim()
1743
- }] : c.value.map((g, M) => {
1744
- const T = M === 0 ? Math.max(...c.value) : c.value[M - 1], B = g, A = T;
1745
- let C = "";
1746
- return M === 0 ? C = `> ${a(B, {
1747
- showUnit: !n.value.includes("count"),
1748
- approximate: d.value
1749
- })}`.trim() : M === c.value.length - 1 ? C = `< ${a(A, {
1750
- showUnit: !n.value.includes("count"),
1751
- approximate: d.value
1752
- })}`.trim() : C = i(B, A, {
1753
- showUnit: !n.value.includes("count"),
1754
- approximate: d.value
1755
- }).trim(), {
1756
- color: w(B),
1757
- range: C
1758
- };
1759
- })), w = (g) => {
1760
- if (g === 0)
1761
- return Ee;
1762
- const M = c.value.findIndex((T) => g >= T);
1763
- return M === -1 ? xt[xt.length - 1] : xt[M] ?? Ee;
1764
- };
1765
- return {
1766
- getColor: w,
1767
- legendData: y,
1768
- scale: c
1769
- };
1770
- }
1771
- function mi({
1772
- unit: e
1773
- }) {
1774
- const { i18n: t } = Re.useI18n(), { formatUnit: n, formatRange: a } = si({ i18n: t });
1775
- return {
1776
- formatMetric: (l, {
1777
- showUnit: m = !0,
1778
- approximate: f = !1
1779
- } = {}) => n(l, e.value, {
1780
- approximate: f,
1781
- translateUnit: (d) => m ? t.t(`metricUnits.${d}`, { plural: l > 1 ? "s" : "" }) : ""
1782
- }),
1783
- formatMetricRange: (l, m, {
1784
- showUnit: f = !0,
1785
- approximate: d = !1
1786
- } = {}) => a(l, m, e.value, {
1787
- approximate: d,
1788
- translateUnit: (c) => f ? t.t(`metricUnits.${c}`, { plural: m > 1 ? "s" : "" }) : ""
1789
- })
1790
- };
1791
- }
1792
- const Re = {
1793
- useI18n: ma,
1794
- useLegendScale: di,
1795
- useMetricFormat: mi
1796
- }, fi = "FeatureCollection", pi = [
1797
- {
1798
- type: "Feature",
1799
- properties: {
1800
- scalerank: 0,
1801
- featurecla: "Lake",
1802
- name: "Lake\rBaikal",
1803
- name_alt: null,
1804
- admin: null,
1805
- min_zoom: 1,
1806
- min_label: 3
1807
- },
1808
- geometry: {
1809
- type: "Polygon",
1810
- coordinates: [
1811
- [
1812
- [
1813
- 106.57998579307912,
1814
- 52.79998159444554
1815
- ],
1816
- [
1817
- 106.53998823448521,
1818
- 52.93999888774037
1819
- ],
1820
- [
1821
- 107.0800069519353,
1822
- 53.18001007751998
1823
- ],
1824
- [
1825
- 107.2999935242018,
1826
- 53.37999787048953
1827
- ],
1828
- [
1829
- 107.59997521365611,
1830
- 53.51998932556822
1831
- ],
1832
- [
1833
- 108.03994835818912,
1834
- 53.859968573616456
1835
- ],
1836
- [
1837
- 108.37997928266967,
1838
- 54.25999583598784
1839
- ],
1840
- [
1841
- 109.05270307824526,
1842
- 55.027597561251326
1843
- ],
1844
- [
1845
- 109.19346967980832,
1846
- 55.53560272889659
1847
- ],
1848
- [
1849
- 109.50699059452313,
1850
- 55.73091380474372
1851
- ],
1852
- [
1853
- 109.92980716353523,
1854
- 55.7129562445223
1855
- ],
1856
- [
1857
- 109.70000206913326,
1858
- 54.980003567110515
1859
- ],
1860
- [
1861
- 109.66000451053935,
1862
- 54.71999359803395
1863
- ],
1864
- [
1865
- 109.47996382043448,
1866
- 54.33999095317566
1867
- ],
1868
- [
1869
- 109.31997358605884,
1870
- 53.81999685323869
1871
- ],
1872
- [
1873
- 109.22003136600637,
1874
- 53.619983222052994
1875
- ],
1876
- [
1877
- 108.99999311730755,
1878
- 53.78002513286093
1879
- ],
1880
- [
1881
- 108.60001753136845,
1882
- 53.4399942083804
1883
- ],
1884
- [
1885
- 108.800005324338,
1886
- 53.37999787048953
1887
- ],
1888
- [
1889
- 108.76000776574409,
1890
- 53.200008856816936
1891
- ],
1892
- [
1893
- 108.45997439985749,
1894
- 53.14001251892607
1895
- ],
1896
- [
1897
- 108.17999148970011,
1898
- 52.79998159444554
1899
- ],
1900
- [
1901
- 107.79996300662566,
1902
- 52.579995022179034
1903
- ],
1904
- [
1905
- 107.31999230349876,
1906
- 52.42000478780339
1907
- ],
1908
- [
1909
- 106.64003380740229,
1910
- 52.32001089131862
1911
- ],
1912
- [
1913
- 106.1000150899522,
1914
- 52.03997630472897
1915
- ],
1916
- [
1917
- 105.740037062607,
1918
- 51.759993394571595
1919
- ],
1920
- [
1921
- 105.24001590375084,
1922
- 51.52000804300813
1923
- ],
1924
- [
1925
- 104.81998986208251,
1926
- 51.46001170511727
1927
- ],
1928
- [
1929
- 104.30002160036167,
1930
- 51.50000926371118
1931
- ],
1932
- [
1933
- 103.7600028829116,
1934
- 51.60000316019595
1935
- ],
1936
- [
1937
- 103.6200114278329,
1938
- 51.73999461527464
1939
- ],
1940
- [
1941
- 103.85999677939637,
1942
- 51.85998729105637
1943
- ],
1944
- [
1945
- 104.39996382041414,
1946
- 51.85998729105637
1947
- ],
1948
- [
1949
- 105.05997521364597,
1950
- 52.0000045843512
1951
- ],
1952
- [
1953
- 105.4800012553143,
1954
- 52.28001333272471
1955
- ],
1956
- [
1957
- 105.98002241417046,
1958
- 52.51999868428817
1959
- ],
1960
- [
1961
- 106.26000532432784,
1962
- 52.619992580772944
1963
- ],
1964
- [
1965
- 106.57998579307912,
1966
- 52.79998159444554
1967
- ]
1968
- ]
1969
- ]
1970
- }
1971
- },
1972
- {
1973
- type: "Feature",
1974
- properties: {
1975
- scalerank: 0,
1976
- featurecla: "Lake",
1977
- name: "Lake\rWinnipeg",
1978
- name_alt: null,
1979
- admin: null,
1980
- min_zoom: 1,
1981
- min_label: 3
1982
- },
1983
- geometry: {
1984
- type: "Polygon",
1985
- coordinates: [
1986
- [
1987
- [
1988
- -98.95540137408423,
1989
- 53.92978343364277
1990
- ],
1991
- [
1992
- -97.95799455441879,
1993
- 54.337097072967325
1994
- ],
1995
- [
1996
- -97.8050064766187,
1997
- 54.05938792583079
1998
- ],
1999
- [
2000
- -97.64380184608419,
2001
- 53.42521474874492
2002
- ],
2003
- [
2004
- -96.39258622921722,
2005
- 51.39730235453108
2006
- ],
2007
- [
2008
- -96.23789282915149,
2009
- 50.6910147161819
2010
- ],
2011
- [
2012
- -96.72558915890605,
2013
- 50.448910630894474
2014
- ],
2015
- [
2016
- -96.92110694048235,
2017
- 50.75405996357799
2018
- ],
2019
- [
2020
- -97.23568722205913,
2021
- 51.49778717712263
2022
- ],
2023
- [
2024
- -98.20097713905517,
2025
- 52.18456696228162
2026
- ],
2027
- [
2028
- -99.23680538612963,
2029
- 53.21628693298888
2030
- ],
2031
- [
2032
- -98.95540137408423,
2033
- 53.92978343364277
2034
- ]
2035
- ]
2036
- ]
2037
- }
2038
- },
2039
- {
2040
- type: "Feature",
2041
- properties: {
2042
- scalerank: 0,
2043
- featurecla: "Lake",
2044
- name: "Great\rSlave Lake",
2045
- name_alt: null,
2046
- admin: null,
2047
- min_zoom: 1,
2048
- min_label: 3
2049
- },
2050
- geometry: {
2051
- type: "Polygon",
2052
- coordinates: [
2053
- [
2054
- [
2055
- -115.00000342492967,
2056
- 61.9723932969562
2057
- ],
2058
- [
2059
- -115.80669837122196,
2060
- 62.54171255151576
2061
- ],
2062
- [
2063
- -116.0585951404287,
2064
- 62.77880402287089
2065
- ],
2066
- [
2067
- -115.84279435917783,
2068
- 62.7503044704619
2069
- ],
2070
- [
2071
- -114.45259497766185,
2072
- 62.42820526798667
2073
- ],
2074
- [
2075
- -113.35341142459757,
2076
- 62.04448192000336
2077
- ],
2078
- [
2079
- -111.77890804731261,
2080
- 62.44360484480964
2081
- ],
2082
- [
2083
- -111.04001258018727,
2084
- 62.92000987410843
2085
- ],
2086
- [
2087
- -110.20001217328286,
2088
- 63.08000010848407
2089
- ],
2090
- [
2091
- -109.40000932497237,
2092
- 62.87817780216814
2093
- ],
2094
- [
2095
- -109.09010576051801,
2096
- 62.814099026126215
2097
- ],
2098
- [
2099
- -109.11651241741916,
2100
- 62.6928144395372
2101
- ],
2102
- [
2103
- -110.10089677614705,
2104
- 62.51561595320837
2105
- ],
2106
- [
2107
- -111.27599300824811,
2108
- 62.34911448836395
2109
- ],
2110
- [
2111
- -112.63050981326654,
2112
- 61.55991201440246
2113
- ],
2114
- [
2115
- -113.64000891808828,
2116
- 61.07999298770784
2117
- ],
2118
- [
2119
- -115.3409903634076,
2120
- 60.87659455020702
2121
- ],
2122
- [
2123
- -116.43999304895887,
2124
- 60.86000641544133
2125
- ],
2126
- [
2127
- -118.06110856817108,
2128
- 61.31196849226605
2129
- ],
2130
- [
2131
- -118.3474735177165,
2132
- 61.36137116153708
2133
- ],
2134
- [
2135
- -118.3849906075604,
2136
- 61.52110301375126
2137
- ],
2138
- [
2139
- -118.17960262741634,
2140
- 61.55629466414203
2141
- ],
2142
- [
2143
- -116.8028132800801,
2144
- 61.32589529076871
2145
- ],
2146
- [
2147
- -115.67879920129957,
2148
- 61.69179026961132
2149
- ],
2150
- [
2151
- -115.00000342492967,
2152
- 61.9723932969562
2153
- ]
2154
- ]
2155
- ]
2156
- }
2157
- },
2158
- {
2159
- type: "Feature",
2160
- properties: {
2161
- scalerank: 0,
2162
- featurecla: "Lake",
2163
- name: "L. Ontario",
2164
- name_alt: null,
2165
- admin: "admin-0",
2166
- min_zoom: 1,
2167
- min_label: 3
2168
- },
2169
- geometry: {
2170
- type: "Polygon",
2171
- coordinates: [
2172
- [
2173
- [
2174
- -79.05630591502026,
2175
- 43.25410431576152
2176
- ],
2177
- [
2178
- -79.36168779164908,
2179
- 43.20237620703736
2180
- ],
2181
- [
2182
- -79.76047481964547,
2183
- 43.29720246029295
2184
- ],
2185
- [
2186
- -79.46116492381094,
2187
- 43.639197089200565
2188
- ],
2189
- [
2190
- -79.1561706204243,
2191
- 43.75743276628437
2192
- ],
2193
- [
2194
- -78.45052893747877,
2195
- 43.9031861435636
2196
- ],
2197
- [
2198
- -77.60536088734519,
2199
- 44.039327704436545
2200
- ],
2201
- [
2202
- -77.16148617217414,
2203
- 43.850140285815996
2204
- ],
2205
- [
2206
- -76.88269181995948,
2207
- 44.0694550644627
2208
- ],
2209
- [
2210
- -76.56555355498425,
2211
- 44.20802541765336
2212
- ],
2213
- [
2214
- -76.35303422718391,
2215
- 44.134670722015045
2216
- ],
2217
- [
2218
- -76.23926856149336,
2219
- 43.979150499032656
2220
- ],
2221
- [
2222
- -76.17999569365458,
2223
- 43.5900011256587
2224
- ],
2225
- [
2226
- -76.9300015937227,
2227
- 43.2599954290428
2228
- ],
2229
- [
2230
- -77.74915056019732,
2231
- 43.342832750006664
2232
- ],
2233
- [
2234
- -78.53499406605984,
2235
- 43.379988104824534
2236
- ],
2237
- [
2238
- -79.05630591502026,
2239
- 43.25410431576152
2240
- ]
2241
- ]
2242
- ]
2243
- }
2244
- },
2245
- {
2246
- type: "Feature",
2247
- properties: {
2248
- scalerank: 0,
2249
- featurecla: "Lake",
2250
- name: "L. Erie",
2251
- name_alt: null,
2252
- admin: "admin-0",
2253
- min_zoom: 1,
2254
- min_label: 3
2255
- },
2256
- geometry: {
2257
- type: "Polygon",
2258
- coordinates: [
2259
- [
2260
- [
2261
- -83.12001135937246,
2262
- 42.08001577409016
2263
- ],
2264
- [
2265
- -82.57123348664891,
2266
- 42.01702220312636
2267
- ],
2268
- [
2269
- -81.82918575715374,
2270
- 42.33552989355732
2271
- ],
2272
- [
2273
- -81.39226152212595,
2274
- 42.61517690690481
2275
- ],
2276
- [
2277
- -81.09496700715081,
2278
- 42.66075552018623
2279
- ],
2280
- [
2281
- -80.54515560578142,
2282
- 42.560089830081665
2283
- ],
2284
- [
2285
- -80.27917700877515,
2286
- 42.71566172949635
2287
- ],
2288
- [
2289
- -79.79135148793986,
2290
- 42.84203644466612
2291
- ],
2292
- [
2293
- -78.92000932485044,
2294
- 42.96500051530464
2295
- ],
2296
- [
2297
- -78.90057898630869,
2298
- 42.8667119410855
2299
- ],
2300
- [
2301
- -79.76220598012725,
2302
- 42.269616604169045
2303
- ],
2304
- [
2305
- -80.51644934764329,
2306
- 41.980331936199136
2307
- ],
2308
- [
2309
- -81.03119828970264,
2310
- 41.845508124349635
2311
- ],
2312
- [
2313
- -81.62351355663209,
2314
- 41.568935858723535
2315
- ],
2316
- [
2317
- -82.34744869660895,
2318
- 41.435920722004255
2319
- ],
2320
- [
2321
- -82.84610043000939,
2322
- 41.48710622818935
2323
- ],
2324
- [
2325
- -83.46283281119673,
2326
- 41.69396698665372
2327
- ],
2328
- [
2329
- -83.12001135937246,
2330
- 42.08001577409016
2331
- ],
2332
- [
2333
- -83.12001135937246,
2334
- 42.08001577409016
2335
- ]
2336
- ]
2337
- ]
2338
- }
2339
- },
2340
- {
2341
- type: "Feature",
2342
- properties: {
2343
- scalerank: 0,
2344
- featurecla: "Lake",
2345
- name: "Lake Superior",
2346
- name_alt: null,
2347
- admin: "admin-0",
2348
- min_zoom: 1,
2349
- min_label: 3
2350
- },
2351
- geometry: {
2352
- type: "Polygon",
2353
- coordinates: [
2354
- [
2355
- [
2356
- -89.60000342482806,
2357
- 48.00998973244721
2358
- ],
2359
- [
2360
- -89.19405921095924,
2361
- 48.40546946877693
2362
- ],
2363
- [
2364
- -88.62641944044917,
2365
- 48.56251414651193
2366
- ],
2367
- [
2368
- -88.40423661981026,
2369
- 48.80632355406499
2370
- ],
2371
- [
2372
- -88.17895321323383,
2373
- 48.93670319273738
2374
- ],
2375
- [
2376
- -87.24903581414156,
2377
- 48.73511343036678
2378
- ],
2379
- [
2380
- -86.56000810417788,
2381
- 48.71108388935106
2382
- ],
2383
- [
2384
- -86.32103044304411,
2385
- 48.57729360614741
2386
- ],
2387
- [
2388
- -85.98652889681881,
2389
- 48.01035146747326
2390
- ],
2391
- [
2392
- -84.8642201403039,
2393
- 47.86007640236849
2394
- ],
2395
- [
2396
- -85.04061764193222,
2397
- 47.575700995466306
2398
- ],
2399
- [
2400
- -84.64500871452178,
2401
- 47.28220469826462
2402
- ],
2403
- [
2404
- -84.81528255892351,
2405
- 46.90233124448706
2406
- ],
2407
- [
2408
- -84.39559241406505,
2409
- 46.77683502866624
2410
- ],
2411
- [
2412
- -84.60490780306328,
2413
- 46.439594631529474
2414
- ],
2415
- [
2416
- -84.9100054593145,
2417
- 46.48000560158172
2418
- ],
2419
- [
2420
- -85.11999264193253,
2421
- 46.76001434995524
2422
- ],
2423
- [
2424
- -86.1026200019625,
2425
- 46.67265534116582
2426
- ],
2427
- [
2428
- -86.99000769727856,
2429
- 46.45000743263628
2430
- ],
2431
- [
2432
- -87.69427995476835,
2433
- 46.83104360614041
2434
- ],
2435
- [
2436
- -88.2612220934425,
2437
- 46.958581041036766
2438
- ],
2439
- [
2440
- -87.93992387566777,
2441
- 47.485913194359185
2442
- ],
2443
- [
2444
- -88.82260901564527,
2445
- 47.154796454449
2446
- ],
2447
- [
2448
- -89.62498897984119,
2449
- 46.83083690041124
2450
- ],
2451
- [
2452
- -90.39703487828177,
2453
- 46.57648550067064
2454
- ],
2455
- [
2456
- -91.00999487991183,
2457
- 46.92000458433087
2458
- ],
2459
- [
2460
- -92.01192338740282,
2461
- 46.71167104754619
2462
- ],
2463
- [
2464
- -92.00877112503301,
2465
- 46.85843211525511
2466
- ],
2467
- [
2468
- -91.33000118687926,
2469
- 47.28000844989221
2470
- ],
2471
- [
2472
- -90.61999284540505,
2473
- 47.68000987404746
2474
- ],
2475
- [
2476
- -89.60000342482806,
2477
- 48.00998973244721
2478
- ]
2479
- ]
2480
- ]
2481
- }
2482
- },
2483
- {
2484
- type: "Feature",
2485
- properties: {
2486
- scalerank: 0,
2487
- featurecla: "Lake",
2488
- name: "Lake\rVictoria",
2489
- name_alt: null,
2490
- admin: "admin-0",
2491
- min_zoom: 1,
2492
- min_label: 3
2493
- },
2494
- geometry: {
2495
- type: "Polygon",
2496
- coordinates: [
2497
- [
2498
- [
2499
- 33.85036827976734,
2500
- 0.128157863766091
2501
- ],
2502
- [
2503
- 33.85036827976734,
2504
- 0.128157863766091
2505
- ],
2506
- [
2507
- 34.13624230320599,
2508
- -0.319308363449238
2509
- ],
2510
- [
2511
- 34.0726286150547,
2512
- -1.059831638191795
2513
- ],
2514
- [
2515
- 33.579428745261055,
2516
- -1.506005954599821
2517
- ],
2518
- [
2519
- 33.251748488098286,
2520
- -1.957968031424549
2521
- ],
2522
- [
2523
- 33.64717654799571,
2524
- -2.30089283611342
2525
- ],
2526
- [
2527
- 33.07672041192572,
2528
- -2.547131035984201
2529
- ],
2530
- [
2531
- 32.95176679864397,
2532
- -2.43044565186915
2533
- ],
2534
- [
2535
- 32.37309410983957,
2536
- -2.489925225437091
2537
- ],
2538
- [
2539
- 31.926558058405476,
2540
- -2.714511000177573
2541
- ],
2542
- [
2543
- 31.648022088352292,
2544
- -2.32921152100937
2545
- ],
2546
- [
2547
- 31.836020949030114,
2548
- -1.629305922048232
2549
- ],
2550
- [
2551
- 31.866199985488578,
2552
- -1.027378838712494
2553
- ],
2554
- [
2555
- 31.815143670384202,
2556
- -0.64042571371094
2557
- ],
2558
- [
2559
- 32.27284183119332,
2560
- -0.056120293786734
2561
- ],
2562
- [
2563
- 32.906136508930246,
2564
- 0.0867650415003
2565
- ],
2566
- [
2567
- 33.33184695815069,
2568
- 0.324993394365833
2569
- ],
2570
- [
2571
- 33.85036827976734,
2572
- 0.128157863766091
2573
- ]
2574
- ]
2575
- ]
2576
- }
2577
- },
2578
- {
2579
- type: "Feature",
2580
- properties: {
2581
- scalerank: 0,
2582
- featurecla: "Lake",
2583
- name: "Lake\rLadoga",
2584
- name_alt: null,
2585
- admin: null,
2586
- min_zoom: 1,
2587
- min_label: 3
2588
- },
2589
- geometry: {
2590
- type: "Polygon",
2591
- coordinates: [
2592
- [
2593
- [
2594
- 29.836711460089845,
2595
- 61.22608226179696
2596
- ],
2597
- [
2598
- 29.836711460089845,
2599
- 61.22608226179696
2600
- ],
2601
- [
2602
- 30.85199832532828,
2603
- 61.77504100203353
2604
- ],
2605
- [
2606
- 32.52688317234018,
2607
- 61.11751007755173
2608
- ],
2609
- [
2610
- 32.94432539239392,
2611
- 60.64260366478942
2612
- ],
2613
- [
2614
- 32.81575442885176,
2615
- 60.481889960361684
2616
- ],
2617
- [
2618
- 32.599901971168606,
2619
- 60.533514716221276
2620
- ],
2621
- [
2622
- 32.583882277158125,
2623
- 60.20893504499601
2624
- ],
2625
- [
2626
- 31.699440138482714,
2627
- 60.23565176049091
2628
- ],
2629
- [
2630
- 31.50973595553924,
2631
- 59.92034800886205
2632
- ],
2633
- [
2634
- 31.106246372204282,
2635
- 59.92768606224749
2636
- ],
2637
- [
2638
- 31.10893354668346,
2639
- 60.14645823835514
2640
- ],
2641
- [
2642
- 30.533878208139498,
2643
- 60.63009796817478
2644
- ],
2645
- [
2646
- 30.502045525847706,
2647
- 60.843211574946466
2648
- ],
2649
- [
2650
- 29.836711460089845,
2651
- 61.22608226179696
2652
- ]
2653
- ]
2654
- ]
2655
- }
2656
- },
2657
- {
2658
- type: "Feature",
2659
- properties: {
2660
- scalerank: 0,
2661
- featurecla: "Lake",
2662
- name: "Lake\rBalkhash",
2663
- name_alt: "Balqash Köli",
2664
- admin: null,
2665
- min_zoom: 1,
2666
- min_label: 3
2667
- },
2668
- geometry: {
2669
- type: "Polygon",
2670
- coordinates: [
2671
- [
2672
- [
2673
- 78.99076541536459,
2674
- 46.748619696634876
2675
- ],
2676
- [
2677
- 78.99076541536459,
2678
- 46.748619696634876
2679
- ],
2680
- [
2681
- 79.2451684915375,
2682
- 46.64516347918655
2683
- ],
2684
- [
2685
- 78.88989301953086,
2686
- 46.369934800800024
2687
- ],
2688
- [
2689
- 78.44506229036242,
2690
- 46.29717438413307
2691
- ],
2692
- [
2693
- 77.20606814973246,
2694
- 46.3955663112168
2695
- ],
2696
- [
2697
- 75.61128177277294,
2698
- 46.50718740496724
2699
- ],
2700
- [
2701
- 75.46333214712132,
2702
- 46.6706141220903
2703
- ],
2704
- [
2705
- 75.40566124868357,
2706
- 46.47080719663377
2707
- ],
2708
- [
2709
- 74.91122114451494,
2710
- 46.404661363300164
2711
- ],
2712
- [
2713
- 74.77138471873312,
2714
- 46.107831936215646
2715
- ],
2716
- [
2717
- 74.27802981964263,
2718
- 46.004065660173566
2719
- ],
2720
- [
2721
- 74.0999528339648,
2722
- 44.98893382423201
2723
- ],
2724
- [
2725
- 73.4367375019309,
2726
- 45.60946442319282
2727
- ],
2728
- [
2729
- 73.4399931171653,
2730
- 45.80586070411809
2731
- ],
2732
- [
2733
- 73.73713260284359,
2734
- 46.012747300798594
2735
- ],
2736
- [
2737
- 73.67925499867667,
2738
- 46.18307282163262
2739
- ],
2740
- [
2741
- 74.02068118682908,
2742
- 46.20490611427593
2743
- ],
2744
- [
2745
- 74.09432010284502,
2746
- 46.42781240496693
2747
- ],
2748
- [
2749
- 74.939384800114,
2750
- 46.81678091082786
2751
- ],
2752
- [
2753
- 76.20313195181177,
2754
- 46.7800131292522
2755
- ],
2756
- [
2757
- 77.18131513866464,
2758
- 46.64340648048862
2759
- ],
2760
- [
2761
- 77.85993004752152,
2762
- 46.64785065366573
2763
- ],
2764
- [
2765
- 78.29700931184618,
2766
- 46.46853343361292
2767
- ],
2768
- [
2769
- 78.39710656119556,
2770
- 46.657669175801175
2771
- ],
2772
- [
2773
- 78.99076541536459,
2774
- 46.748619696634876
2775
- ]
2776
- ]
2777
- ]
2778
- }
2779
- },
2780
- {
2781
- type: "Feature",
2782
- properties: {
2783
- scalerank: 0,
2784
- featurecla: "Lake",
2785
- name: "Lake\rTanganyika",
2786
- name_alt: null,
2787
- admin: "admin-0",
2788
- min_zoom: 1,
2789
- min_label: 3
2790
- },
2791
- geometry: {
2792
- type: "Polygon",
2793
- coordinates: [
2794
- [
2795
- [
2796
- 30.806006300588507,
2797
- -8.578339125201033
2798
- ],
2799
- [
2800
- 30.46442508313922,
2801
- -8.498188978716335
2802
- ],
2803
- [
2804
- 30.566847771941724,
2805
- -8.1150082332721
2806
- ],
2807
- [
2808
- 30.27735639824263,
2809
- -7.848357842646031
2810
- ],
2811
- [
2812
- 30.14702843600253,
2813
- -7.299244073112582
2814
- ],
2815
- [
2816
- 29.536523064906334,
2817
- -6.7541610652979
2818
- ],
2819
- [
2820
- 29.19318484875913,
2821
- -6.038029066597119
2822
- ],
2823
- [
2824
- 29.371985304489016,
2825
- -5.616452731960017
2826
- ],
2827
- [
2828
- 29.101717563602506,
2829
- -5.054006442895265
2830
- ],
2831
- [
2832
- 29.281034783655315,
2833
- -3.455499362810748
2834
- ],
2835
- [
2836
- 29.652588331833897,
2837
- -4.420143324403149
2838
- ],
2839
- [
2840
- 29.600085076625334,
2841
- -4.896393324405054
2842
- ],
2843
- [
2844
- 29.79195966972506,
2845
- -5.040880629093131
2846
- ],
2847
- [
2848
- 29.758421665167646,
2849
- -5.466901136907339
2850
- ],
2851
- [
2852
- 29.951226434048635,
2853
- -5.860985609565162
2854
- ],
2855
- [
2856
- 29.722041456834177,
2857
- -6.244114678577112
2858
- ],
2859
- [
2860
- 30.52803877129051,
2861
- -6.922729587433992
2862
- ],
2863
- [
2864
- 30.604158156056457,
2865
- -7.541916599155222
2866
- ],
2867
- [
2868
- 31.189032016735865,
2869
- -8.729906101113095
2870
- ],
2871
- [
2872
- 31.022117140433124,
2873
- -8.786543470904988
2874
- ],
2875
- [
2876
- 30.806006300588507,
2877
- -8.578339125201033
2878
- ],
2879
- [
2880
- 30.806006300588507,
2881
- -8.578339125201033
2882
- ]
2883
- ]
2884
- ]
2885
- }
2886
- },
2887
- {
2888
- type: "Feature",
2889
- properties: {
2890
- scalerank: 0,
2891
- featurecla: "Lake",
2892
- name: "Lake Malawi",
2893
- name_alt: "Lake Nyasa",
2894
- admin: "admin-0",
2895
- min_zoom: 1,
2896
- min_label: 3
2897
- },
2898
- geometry: {
2899
- type: "Polygon",
2900
- coordinates: [
2901
- [
2902
- [
2903
- 35.2602047055542,
2904
- -14.277474460510291
2905
- ],
2906
- [
2907
- 35.236226840970915,
2908
- -14.401291192281633
2909
- ],
2910
- [
2911
- 34.881209751125766,
2912
- -14.012012627826891
2913
- ],
2914
- [
2915
- 34.706543409979076,
2916
- -14.262023207255027
2917
- ],
2918
- [
2919
- 34.54675988133266,
2920
- -14.047669366108266
2921
- ],
2922
- [
2923
- 34.55110070164528,
2924
- -13.67208505621096
2925
- ],
2926
- [
2927
- 34.3209338722171,
2928
- -13.379389743709737
2929
- ],
2930
- [
2931
- 34.32997724786827,
2932
- -12.944584242405995
2933
- ],
2934
- [
2935
- 34.032527703596315,
2936
- -12.208556817272836
2937
- ],
2938
- [
2939
- 34.322690870915096,
2940
- -11.652983493702834
2941
- ],
2942
- [
2943
- 34.25990400568048,
2944
- -10.447579034062642
2945
- ],
2946
- [
2947
- 33.906592238100984,
2948
- -9.801726983278854
2949
- ],
2950
- [
2951
- 33.99557905450757,
2952
- -9.495440769084837
2953
- ],
2954
- [
2955
- 34.52422895685345,
2956
- -10.03013681400887
2957
- ],
2958
- [
2959
- 34.60789310073403,
2960
- -11.080511976773494
2961
- ],
2962
- [
2963
- 34.93702029800096,
2964
- -11.463434340056267
2965
- ],
2966
- [
2967
- 34.69388268406766,
2968
- -12.422393894096615
2969
- ],
2970
- [
2971
- 34.86756717300062,
2972
- -13.701127211159019
2973
- ],
2974
- [
2975
- 35.05597944513687,
2976
- -13.742933444883136
2977
- ],
2978
- [
2979
- 35.2602047055542,
2980
- -14.277474460510291
2981
- ]
2982
- ]
2983
- ]
2984
- }
2985
- },
2986
- {
2987
- type: "Feature",
2988
- properties: {
2989
- scalerank: 0,
2990
- featurecla: "Lake",
2991
- name: "Aral\rSea",
2992
- name_alt: null,
2993
- admin: null,
2994
- min_zoom: 1,
2995
- min_label: 3
2996
- },
2997
- geometry: {
2998
- type: "Polygon",
2999
- coordinates: [
3000
- [
3001
- [
3002
- 60.05285159692946,
3003
- 44.264636949229114
3004
- ],
3005
- [
3006
- 59.77002648299603,
3007
- 44.15999217383806
3008
- ],
3009
- [
3010
- 59.06288618351405,
3011
- 44.36928172462015
3012
- ],
3013
- [
3014
- 59.34571129744745,
3015
- 44.99720205339871
3016
- ],
3017
- [
3018
- 59.35930219914022,
3019
- 45.190006822279685
3020
- ],
3021
- [
3022
- 58.96139367049281,
3023
- 45.37500844988459
3024
- ],
3025
- [
3026
- 58.92144778833119,
3027
- 45.101846828789746
3028
- ],
3029
- [
3030
- 58.92144778833119,
3031
- 44.73556427670495
3032
- ],
3033
- [
3034
- 58.497132602782614,
3035
- 44.212340399749735
3036
- ],
3037
- [
3038
- 58.285000848224456,
3039
- 44.473952338227335
3040
- ],
3041
- [
3042
- 58.285000848224456,
3043
- 44.89255727800766
3044
- ],
3045
- [
3046
- 58.689989048095896,
3047
- 45.50001373959863
3048
- ],
3049
- [
3050
- 58.78000939314833,
3051
- 45.88673432065487
3052
- ],
3053
- [
3054
- 59.20427290226462,
3055
- 45.93905670835039
3056
- ],
3057
- [
3058
- 59.535002068932585,
3059
- 45.70501414650049
3060
- ],
3061
- [
3062
- 59.55784305200561,
3063
- 46.30533926043519
3064
- ],
3065
- [
3066
- 59.77002648299603,
3067
- 46.25299103452352
3068
- ],
3069
- [
3070
- 60.12359663273702,
3071
- 46.096023871436955
3072
- ],
3073
- [
3074
- 60.12359663273702,
3075
- 45.88673432065487
3076
- ],
3077
- [
3078
- 59.94675988143425,
3079
- 45.808211981787366
3080
- ],
3081
- [
3082
- 59.84071984237133,
3083
- 45.520477606786216
3084
- ],
3085
- [
3086
- 60.12359663273702,
3087
- 45.572774156265595
3088
- ],
3089
- [
3090
- 60.23997195825834,
3091
- 44.78403677019473
3092
- ],
3093
- [
3094
- 60.05285159692946,
3095
- 44.264636949229114
3096
- ]
3097
- ]
3098
- ]
3099
- }
3100
- },
3101
- {
3102
- type: "Feature",
3103
- properties: {
3104
- scalerank: 1,
3105
- featurecla: "Lake",
3106
- name: "Vänern",
3107
- name_alt: null,
3108
- admin: null,
3109
- min_zoom: 1.7,
3110
- min_label: 3.6
3111
- },
3112
- geometry: {
3113
- type: "Polygon",
3114
- coordinates: [
3115
- [
3116
- [
3117
- 13.979281447005576,
3118
- 59.20491364199721
3119
- ],
3120
- [
3121
- 13.979281447005576,
3122
- 59.20491364199721
3123
- ],
3124
- [
3125
- 13.984449090234762,
3126
- 59.086212877022774
3127
- ],
3128
- [
3129
- 13.91892337408865,
3130
- 58.902503160225166
3131
- ],
3132
- [
3133
- 13.28268313971111,
3134
- 58.608670966213566
3135
- ],
3136
- [
3137
- 12.830100945698888,
3138
- 58.50903880475484
3139
- ],
3140
- [
3141
- 12.460149366921371,
3142
- 58.50619660097878
3143
- ],
3144
- [
3145
- 12.537767368223768,
3146
- 58.77594757754237
3147
- ],
3148
- [
3149
- 12.522161085671598,
3150
- 58.880282294339665
3151
- ],
3152
- [
3153
- 12.697085808979608,
3154
- 58.953843695707135
3155
- ],
3156
- [
3157
- 13.027039829163215,
3158
- 58.993531195707305
3159
- ],
3160
- [
3161
- 13.195298292705559,
3162
- 59.12900096296045
3163
- ],
3164
- [
3165
- 13.59144982265505,
3166
- 59.336481838612315
3167
- ],
3168
- [
3169
- 13.979281447005576,
3170
- 59.20491364199721
3171
- ]
3172
- ]
3173
- ]
3174
- }
3175
- },
3176
- {
3177
- type: "Feature",
3178
- properties: {
3179
- scalerank: 1,
3180
- featurecla: "Lake",
3181
- name: "Lake Okeechobee",
3182
- name_alt: null,
3183
- admin: null,
3184
- min_zoom: 1.7,
3185
- min_label: 3.6
3186
- },
3187
- geometry: {
3188
- type: "Polygon",
3189
- coordinates: [
3190
- [
3191
- [
3192
- -80.70643775096435,
3193
- 26.788959458924822
3194
- ],
3195
- [
3196
- -80.93244462759287,
3197
- 26.823272609966622
3198
- ],
3199
- [
3200
- -80.91970638703292,
3201
- 27.068916530866048
3202
- ],
3203
- [
3204
- -80.69369951040441,
3205
- 27.034629218040394
3206
- ],
3207
- [
3208
- -80.70643775096435,
3209
- 26.788959458924822
3210
- ],
3211
- [
3212
- -80.70643775096435,
3213
- 26.788959458924822
3214
- ]
3215
- ]
3216
- ]
3217
- }
3218
- },
3219
- {
3220
- type: "Feature",
3221
- properties: {
3222
- scalerank: 1,
3223
- featurecla: "Lake",
3224
- name: "Lago de\rNicaragua",
3225
- name_alt: null,
3226
- admin: null,
3227
- min_zoom: 1.7,
3228
- min_label: 3.6
3229
- },
3230
- geometry: {
3231
- type: "Polygon",
3232
- coordinates: [
3233
- [
3234
- [
3235
- -84.85548682324658,
3236
- 11.147898667846633
3237
- ],
3238
- [
3239
- -85.29013729525353,
3240
- 11.176165676310276
3241
- ],
3242
- [
3243
- -85.79132117383625,
3244
- 11.509737046754324
3245
- ],
3246
- [
3247
- -85.8851655748783,
3248
- 11.900100816287136
3249
- ],
3250
- [
3251
- -85.5653401354239,
3252
- 11.940330918826362
3253
- ],
3254
- [
3255
- -85.03684526237491,
3256
- 11.5216484643976
3257
- ],
3258
- [
3259
- -84.85548682324658,
3260
- 11.147898667846633
3261
- ],
3262
- [
3263
- -84.85548682324658,
3264
- 11.147898667846633
3265
- ]
3266
- ]
3267
- ]
3268
- }
3269
- },
3270
- {
3271
- type: "Feature",
3272
- properties: {
3273
- scalerank: 1,
3274
- featurecla: "Lake",
3275
- name: "Lake Tana",
3276
- name_alt: null,
3277
- admin: null,
3278
- min_zoom: 1.7,
3279
- min_label: 3.6
3280
- },
3281
- geometry: {
3282
- type: "Polygon",
3283
- coordinates: [
3284
- [
3285
- [
3286
- 37.14370730972843,
3287
- 11.850594794151519
3288
- ],
3289
- [
3290
- 37.01482628759251,
3291
- 12.035596421756424
3292
- ],
3293
- [
3294
- 37.24401126480697,
3295
- 12.233878892460353
3296
- ],
3297
- [
3298
- 37.518361443844526,
3299
- 12.160601711470477
3300
- ],
3301
- [
3302
- 37.48187788264647,
3303
- 11.825092474815477
3304
- ],
3305
- [
3306
- 37.33635704931254,
3307
- 11.713393866416595
3308
- ],
3309
- [
3310
- 37.14370730972843,
3311
- 11.850594794151519
3312
- ],
3313
- [
3314
- 37.14370730972843,
3315
- 11.850594794151519
3316
- ]
3317
- ]
3318
- ]
3319
- }
3320
- },
3321
- {
3322
- type: "Feature",
3323
- properties: {
3324
- scalerank: 1,
3325
- featurecla: "Lake",
3326
- name: "Lago Titicaca",
3327
- name_alt: null,
3328
- admin: null,
3329
- min_zoom: 1.7,
3330
- min_label: 3.6
3331
- },
3332
- geometry: {
3333
- type: "Polygon",
3334
- coordinates: [
3335
- [
3336
- [
3337
- -69.40673987494259,
3338
- -16.126198825752063
3339
- ],
3340
- [
3341
- -69.7290974595793,
3342
- -15.928794854397104
3343
- ],
3344
- [
3345
- -69.98365556504908,
3346
- -15.73717864345884
3347
- ],
3348
- [
3349
- -69.8770212470148,
3350
- -15.669844252182529
3351
- ],
3352
- [
3353
- -69.8679778713637,
3354
- -15.546079196843493
3355
- ],
3356
- [
3357
- -69.88559953477524,
3358
- -15.35425628017606
3359
- ],
3360
- [
3361
- -69.59675411647981,
3362
- -15.410480238509614
3363
- ],
3364
- [
3365
- -68.98697221543571,
3366
- -15.885903415594846
3367
- ],
3368
- [
3369
- -68.9596870591856,
3370
- -15.91329192470954
3371
- ],
3372
- [
3373
- -68.74623755560401,
3374
- -16.356003920154023
3375
- ],
3376
- [
3377
- -68.90524593776611,
3378
- -16.506640720284835
3379
- ],
3380
- [
3381
- -69.00115739609983,
3382
- -16.536406345284952
3383
- ],
3384
- [
3385
- -69.09084184434238,
3386
- -16.461992282784657
3387
- ],
3388
- [
3389
- -69.18205074733753,
3390
- -16.40116912197712
3391
- ],
3392
- [
3393
- -69.25098710801488,
3394
- -16.227536309476427
3395
- ],
3396
- [
3397
- -69.40673987494259,
3398
- -16.126198825752063
3399
- ],
3400
- [
3401
- -69.40673987494259,
3402
- -16.126198825752063
3403
- ]
3404
- ]
3405
- ]
3406
- }
3407
- },
3408
- {
3409
- type: "Feature",
3410
- properties: {
3411
- scalerank: 1,
3412
- featurecla: "Lake",
3413
- name: "Lake\rWinnipegosis",
3414
- name_alt: null,
3415
- admin: null,
3416
- min_zoom: 1.7,
3417
- min_label: 3.6
3418
- },
3419
- geometry: {
3420
- type: "Polygon",
3421
- coordinates: [
3422
- [
3423
- [
3424
- -99.40377193886468,
3425
- 53.1258531764781
3426
- ],
3427
- [
3428
- -99.54846594928192,
3429
- 53.120427151087455
3430
- ],
3431
- [
3432
- -99.80498775917877,
3433
- 53.14290639913442
3434
- ],
3435
- [
3436
- -100.43146114785316,
3437
- 53.2841897650204
3438
- ],
3439
- [
3440
- -100.60685095905177,
3441
- 53.531616522833886
3442
- ],
3443
- [
3444
- -100.33487789589965,
3445
- 53.745246893928496
3446
- ],
3447
- [
3448
- -100.42673275429846,
3449
- 53.90740753846039
3450
- ],
3451
- [
3452
- -100.4044860501968,
3453
- 53.94507965760117
3454
- ],
3455
- [
3456
- -100.32629960813921,
3457
- 54.094011135466346
3458
- ],
3459
- [
3460
- -100.23586585162842,
3461
- 54.23033356385231
3462
- ],
3463
- [
3464
- -99.99549292682278,
3465
- 54.215864162810576
3466
- ],
3467
- [
3468
- -100.04778947630214,
3469
- 54.10013479269293
3470
- ],
3471
- [
3472
- -100.18356930214904,
3473
- 53.930351874397985
3474
- ],
3475
- [
3476
- -99.87128862180926,
3477
- 53.928465684619326
3478
- ],
3479
- [
3480
- -99.91066606321566,
3481
- 53.821314602262134
3482
- ],
3483
- [
3484
- -100.05649695514333,
3485
- 53.44332733826322
3486
- ],
3487
- [
3488
- -99.66551306842301,
3489
- 53.29581696228607
3490
- ],
3491
- [
3492
- -99.39317827024485,
3493
- 53.26791168884846
3494
- ],
3495
- [
3496
- -99.40377193886468,
3497
- 53.1258531764781
3498
- ],
3499
- [
3500
- -99.40377193886468,
3501
- 53.1258531764781
3502
- ]
3503
- ]
3504
- ]
3505
- }
3506
- },
3507
- {
3508
- type: "Feature",
3509
- properties: {
3510
- scalerank: 1,
3511
- featurecla: "Lake",
3512
- name: "Lake\rOnega",
3513
- name_alt: null,
3514
- admin: null,
3515
- min_zoom: 1.7,
3516
- min_label: 3.6
3517
- },
3518
- geometry: {
3519
- type: "Polygon",
3520
- coordinates: [
3521
- [
3522
- [
3523
- 35.71464725112901,
3524
- 62.2802298041189
3525
- ],
3526
- [
3527
- 36.0541614112866,
3528
- 61.716310736733874
3529
- ],
3530
- [
3531
- 36.391401808423325,
3532
- 61.27605337182331
3533
- ],
3534
- [
3535
- 36.10945519383887,
3536
- 61.01508738874924
3537
- ],
3538
- [
3539
- 35.35074181492962,
3540
- 60.948579820389625
3541
- ],
3542
- [
3543
- 34.866843702948586,
3544
- 61.11637319604125
3545
- ],
3546
- [
3547
- 35.207288038887384,
3548
- 61.114435329830485
3549
- ],
3550
- [
3551
- 35.57832482274313,
3552
- 61.08634918887975
3553
- ],
3554
- [
3555
- 35.16000410334027,
3556
- 61.39428904890701
3557
- ],
3558
- [
3559
- 34.85733523940689,
3560
- 61.55179881453273
3561
- ],
3562
- [
3563
- 34.48691857273877,
3564
- 61.86697337508076
3565
- ],
3566
- [
3567
- 34.265019972477376,
3568
- 62.21914826114994
3569
- ],
3570
- [
3571
- 34.289824659977455,
3572
- 62.29774811466581
3573
- ],
3574
- [
3575
- 34.66561567560399,
3576
- 62.22979360620195
3577
- ],
3578
- [
3579
- 34.62613488133297,
3580
- 62.45223480900245
3581
- ],
3582
- [
3583
- 34.8356311378443,
3584
- 62.29676626245225
3585
- ],
3586
- [
3587
- 35.080267368314026,
3588
- 62.1411943630377
3589
- ],
3590
- [
3591
- 35.21658979669991,
3592
- 62.193284206787894
3593
- ],
3594
- [
3595
- 35.463706495919666,
3596
- 62.2560193955901
3597
- ],
3598
- [
3599
- 35.13969526544963,
3600
- 62.48776235620312
3601
- ],
3602
- [
3603
- 34.614352654770414,
3604
- 62.762448432050576
3605
- ],
3606
- [
3607
- 34.99541466649072,
3608
- 62.748469957115674
3609
- ],
3610
- [
3611
- 35.23395307795005,
3612
- 62.675347805422575
3613
- ],
3614
- [
3615
- 35.71464725112901,
3616
- 62.2802298041189
3617
- ]
3618
- ]
3619
- ]
3620
- }
3621
- },
3622
- {
3623
- type: "Feature",
3624
- properties: {
3625
- scalerank: 1,
3626
- featurecla: "Lake",
3627
- name: "Great Salt Lake",
3628
- name_alt: null,
3629
- admin: null,
3630
- min_zoom: 1.7,
3631
- min_label: 3.6
3632
- },
3633
- geometry: {
3634
- type: "Polygon",
3635
- coordinates: [
3636
- [
3637
- [
3638
- -112.18405127648089,
3639
- 41.34124949804567
3640
- ],
3641
- [
3642
- -112.13875688357706,
3643
- 41.142346910154174
3644
- ],
3645
- [
3646
- -112.17193315310845,
3647
- 40.851460272783186
3648
- ],
3649
- [
3650
- -112.67882727745939,
3651
- 41.130487168943205
3652
- ],
3653
- [
3654
- -112.70549231652205,
3655
- 41.16753917089636
3656
- ],
3657
- [
3658
- -112.87814327680917,
3659
- 41.62815705013003
3660
- ],
3661
- [
3662
- -112.58955624067522,
3663
- 41.43891795507716
3664
- ],
3665
- [
3666
- -112.40532975955472,
3667
- 41.33801972102742
3668
- ],
3669
- [
3670
- -112.21901038292629,
3671
- 41.42855683040267
3672
- ],
3673
- [
3674
- -112.18405127648089,
3675
- 41.34124949804567
3676
- ]
3677
- ]
3678
- ]
3679
- }
3680
- },
3681
- {
3682
- type: "Feature",
3683
- properties: {
3684
- scalerank: 1,
3685
- featurecla: "Lake",
3686
- name: "Great\rBear Lake",
3687
- name_alt: null,
3688
- admin: null,
3689
- min_zoom: 1.7,
3690
- min_label: 3.6
3691
- },
3692
- geometry: {
3693
- type: "Polygon",
3694
- coordinates: [
3695
- [
3696
- [
3697
- -117.7592923653704,
3698
- 66.22368419052789
3699
- ],
3700
- [
3701
- -117.97374955938167,
3702
- 65.85489533147692
3703
- ],
3704
- [
3705
- -118.10710059291085,
3706
- 65.76691620550001
3707
- ],
3708
- [
3709
- -119.7200520432652,
3710
- 65.73479930283061
3711
- ],
3712
- [
3713
- -119.74568355368197,
3714
- 65.65436493596833
3715
- ],
3716
- [
3717
- -119.6648099371452,
3718
- 65.52742178004333
3719
- ],
3720
- [
3721
- -119.70219783590836,
3722
- 65.36794830999061
3723
- ],
3724
- [
3725
- -121.35509436098008,
3726
- 64.87999359807459
3727
- ],
3728
- [
3729
- -121.33610327211281,
3730
- 64.99461192489797
3731
- ],
3732
- [
3733
- -120.94527441468938,
3734
- 65.37774099390991
3735
- ],
3736
- [
3737
- -121.05728308168202,
3738
- 65.4463414577774
3739
- ],
3740
- [
3741
- -122.56450374412293,
3742
- 65.0310696478799
3743
- ],
3744
- [
3745
- -123.232705851873,
3746
- 65.18041453720339
3747
- ],
3748
- [
3749
- -123.17963415590926,
3750
- 65.31937246363624
3751
- ],
3752
- [
3753
- -122.32599117087979,
3754
- 65.79378795029179
3755
- ],
3756
- [
3757
- -122.35622188377054,
3758
- 65.90184337021411
3759
- ],
3760
- [
3761
- -124.95363440005697,
3762
- 66.04925039332666
3763
- ],
3764
- [
3765
- -124.89753963280414,
3766
- 66.15115631780624
3767
- ],
3768
- [
3769
- -119.48724971579031,
3770
- 66.96929759385118
3771
- ],
3772
- [
3773
- -119.35743771042887,
3774
- 66.87519481064767
3775
- ],
3776
- [
3777
- -120.1769492193738,
3778
- 66.46527151149239
3779
- ],
3780
- [
3781
- -117.60545162643749,
3782
- 66.55934845647975
3783
- ],
3784
- [
3785
- -117.61278967982294,
3786
- 66.41997711858856
3787
- ],
3788
- [
3789
- -117.7592923653704,
3790
- 66.22368419052789
3791
- ],
3792
- [
3793
- -117.7592923653704,
3794
- 66.22368419052789
3795
- ]
3796
- ]
3797
- ]
3798
- }
3799
- },
3800
- {
3801
- type: "Feature",
3802
- properties: {
3803
- scalerank: 1,
3804
- featurecla: "Lake",
3805
- name: "Lake Athabasca",
3806
- name_alt: null,
3807
- admin: null,
3808
- min_zoom: 1.7,
3809
- min_label: 3.6
3810
- },
3811
- geometry: {
3812
- type: "Polygon",
3813
- coordinates: [
3814
- [
3815
- [
3816
- -109.65330135785099,
3817
- 59.03763703066841
3818
- ],
3819
- [
3820
- -111.08626298708849,
3821
- 58.56017263450765
3822
- ],
3823
- [
3824
- -111.19948605023998,
3825
- 58.685565497463884
3826
- ],
3827
- [
3828
- -111.160005255969,
3829
- 58.75985036888345
3830
- ],
3831
- [
3832
- -109.09672034385136,
3833
- 59.55042226830068
3834
- ],
3835
- [
3836
- -106.54517066122398,
3837
- 59.31968699811746
3838
- ],
3839
- [
3840
- -106.54695349813804,
3841
- 59.292815253325685
3842
- ],
3843
- [
3844
- -109.65330135785099,
3845
- 59.03763703066841
3846
- ],
3847
- [
3848
- -109.65330135785099,
3849
- 59.03763703066841
3850
- ]
3851
- ]
3852
- ]
3853
- }
3854
- },
3855
- {
3856
- type: "Feature",
3857
- properties: {
3858
- scalerank: 1,
3859
- featurecla: "Lake",
3860
- name: "Reindeer\rLake",
3861
- name_alt: null,
3862
- admin: null,
3863
- min_zoom: 1.7,
3864
- min_label: 3.6
3865
- },
3866
- geometry: {
3867
- type: "Polygon",
3868
- coordinates: [
3869
- [
3870
- [
3871
- -101.89514441608819,
3872
- 58.01403025983099
3873
- ],
3874
- [
3875
- -101.89514441608819,
3876
- 58.01403025983099
3877
- ],
3878
- [
3879
- -101.54384802936804,
3880
- 57.86809601503873
3881
- ],
3882
- [
3883
- -101.97090206582807,
3884
- 57.34867035585697
3885
- ],
3886
- [
3887
- -101.93403093138781,
3888
- 57.23066722271848
3889
- ],
3890
- [
3891
- -103.20416012247362,
3892
- 56.34539826112639
3893
- ],
3894
- [
3895
- -103.2825015938281,
3896
- 56.40994212505895
3897
- ],
3898
- [
3899
- -103.1487371488406,
3900
- 56.70411021588043
3901
- ],
3902
- [
3903
- -103.07832800984292,
3904
- 56.71080231386223
3905
- ],
3906
- [
3907
- -103.01440426309787,
3908
- 56.56510061301529
3909
- ],
3910
- [
3911
- -102.57680823445028,
3912
- 56.938281968811054
3913
- ],
3914
- [
3915
- -102.81322791218561,
3916
- 57.28714956321349
3917
- ],
3918
- [
3919
- -102.81369300007623,
3920
- 57.46434804954232
3921
- ],
3922
- [
3923
- -102.12874772826359,
3924
- 58.01914622662788
3925
- ],
3926
- [
3927
- -101.89514441608819,
3928
- 58.01403025983099
3929
- ]
3930
- ]
3931
- ]
3932
- }
3933
- },
3934
- {
3935
- type: "Feature",
3936
- properties: {
3937
- scalerank: 0,
3938
- featurecla: "Lake",
3939
- name: "Lake\rHuron",
3940
- name_alt: null,
3941
- admin: "admin-0",
3942
- min_zoom: 1,
3943
- min_label: 3
3944
- },
3945
- geometry: {
3946
- type: "Polygon",
3947
- coordinates: [
3948
- [
3949
- [
3950
- -80.41056433787725,
3951
- 45.590137437515665
3952
- ],
3953
- [
3954
- -79.76292945017934,
3955
- 44.824602769543844
3956
- ],
3957
- [
3958
- -80.08500281443844,
3959
- 44.493925279308144
3960
- ],
3961
- [
3962
- -80.89769222687659,
3963
- 44.63164297136599
3964
- ],
3965
- [
3966
- -81.40233842642287,
3967
- 45.25005483660284
3968
- ],
3969
- [
3970
- -81.27567949087549,
3971
- 44.6201708033972
3972
- ],
3973
- [
3974
- -81.75265296092948,
3975
- 44.06464915625956
3976
- ],
3977
- [
3978
- -81.70017554393709,
3979
- 43.590052802090995
3980
- ],
3981
- [
3982
- -81.78272864452336,
3983
- 43.310845038417995
3984
- ],
3985
- [
3986
- -82.43000179719522,
3987
- 42.98001251888543
3988
- ],
3989
- [
3990
- -82.4799987454376,
3991
- 43.39001333268915
3992
- ],
3993
- [
3994
- -82.6599877591102,
3995
- 43.970003770516996
3996
- ],
3997
- [
3998
- -83.02999101432,
3999
- 44.06999766700177
4000
- ],
4001
- [
4002
- -83.6500048489579,
4003
- 43.62999868425261
4004
- ],
4005
- [
4006
- -83.84870073112015,
4007
- 43.63831858985161
4008
- ],
4009
- [
4010
- -83.89998959016984,
4011
- 43.88998281511303
4012
- ],
4013
- [
4014
- -83.34999732128743,
4015
- 44.29001007748441
4016
- ],
4017
- [
4018
- -83.25878841829228,
4019
- 44.74574453386644
4020
- ],
4021
- [
4022
- -83.33999793163895,
4023
- 45.200006211928155
4024
- ],
4025
- [
4026
- -84.08000444205858,
4027
- 45.58998240821879
4028
- ],
4029
- [
4030
- -84.93000423861146,
4031
- 45.789996039404485
4032
- ],
4033
- [
4034
- -84.75355506055087,
4035
- 45.924483954444085
4036
- ],
4037
- [
4038
- -84.71999121777729,
4039
- 45.91998810483469
4040
- ],
4041
- [
4042
- -83.83919226757845,
4043
- 46.010215155616294
4044
- ],
4045
- [
4046
- -84.33670711946846,
4047
- 46.40876963966737
4048
- ],
4049
- [
4050
- -84.14870825879063,
4051
- 46.55576325132161
4052
- ],
4053
- [
4054
- -83.95257036002683,
4055
- 46.334278062518635
4056
- ],
4057
- [
4058
- -83.20251278352643,
4059
- 46.21015127215355
4060
- ],
4061
- [
4062
- -82.44199072948692,
4063
- 46.19963511818216
4064
- ],
4065
- [
4066
- -81.63136837434045,
4067
- 46.09754832618957
4068
- ],
4069
- [
4070
- -80.73679765493583,
4071
- 45.90381338152733
4072
- ],
4073
- [
4074
- -80.41056433787725,
4075
- 45.590137437515665
4076
- ]
4077
- ]
4078
- ]
4079
- }
4080
- },
4081
- {
4082
- type: "Feature",
4083
- properties: {
4084
- scalerank: 0,
4085
- featurecla: "Lake",
4086
- name: "Lake\rMichigan",
4087
- name_alt: null,
4088
- admin: "admin-0",
4089
- min_zoom: 1,
4090
- min_label: 3
4091
- },
4092
- geometry: {
4093
- type: "Polygon",
4094
- coordinates: [
4095
- [
4096
- [
4097
- -85.53999284538475,
4098
- 46.03000722918408
4099
- ],
4100
- [
4101
- -84.75355506055087,
4102
- 45.924483954444085
4103
- ],
4104
- [
4105
- -84.93000423861146,
4106
- 45.789996039404485
4107
- ],
4108
- [
4109
- -85.06999569369015,
4110
- 45.40999339454619
4111
- ],
4112
- [
4113
- -85.29044735384727,
4114
- 45.30824249936349
4115
- ],
4116
- [
4117
- -85.46710323763705,
4118
- 44.81457754167923
4119
- ],
4120
- [
4121
- -85.55999162468169,
4122
- 45.150009263685774
4123
- ],
4124
- [
4125
- -85.95983801954006,
4126
- 44.91059235287753
4127
- ],
4128
- [
4129
- -86.20935767286137,
4130
- 44.574798895844935
4131
- ],
4132
- [
4133
- -86.47027197950304,
4134
- 44.08423452409818
4135
- ],
4136
- [
4137
- -86.52001054558397,
4138
- 43.65999685319804
4139
- ],
4140
- [
4141
- -86.18842871778315,
4142
- 43.04140412044818
4143
- ],
4144
- [
4145
- -86.21604977084317,
4146
- 42.38170278581012
4147
- ],
4148
- [
4149
- -86.62191647006355,
4150
- 41.8944198675139
4151
- ],
4152
- [
4153
- -86.8244364082154,
4154
- 41.75618541113313
4155
- ],
4156
- [
4157
- -87.09444576694042,
4158
- 41.64616628678374
4159
- ],
4160
- [
4161
- -87.4342183092595,
4162
- 41.640714423176945
4163
- ],
4164
- [
4165
- -87.52617652052288,
4166
- 41.70851390234388
4167
- ],
4168
- [
4169
- -87.79569495314115,
4170
- 42.23411489518453
4171
- ],
4172
- [
4173
- -87.80344641798493,
4174
- 42.49399567318035
4175
- ],
4176
- [
4177
- -87.77672970249003,
4178
- 42.740853990238634
4179
- ],
4180
- [
4181
- -87.90214840366241,
4182
- 43.23051402442029
4183
- ],
4184
- [
4185
- -87.71221167677363,
4186
- 43.79650014909703
4187
- ],
4188
- [
4189
- -87.486359829442,
4190
- 44.49335683855294
4191
- ],
4192
- [
4193
- -86.9674767727993,
4194
- 45.26287059181122
4195
- ],
4196
- [
4197
- -87.11806189649782,
4198
- 45.25933075619923
4199
- ],
4200
- [
4201
- -87.85282324903983,
4202
- 44.61505483660031
4203
- ],
4204
- [
4205
- -87.98831885450912,
4206
- 44.73331635190026
4207
- ],
4208
- [
4209
- -87.5964306302237,
4210
- 45.093707790703775
4211
- ],
4212
- [
4213
- -87.00000708692704,
4214
- 45.73999909116209
4215
- ],
4216
- [
4217
- -86.31999691439827,
4218
- 45.829993597998396
4219
- ],
4220
- [
4221
- -85.53999284538475,
4222
- 46.03000722918408
4223
- ]
4224
- ]
4225
- ]
4226
- }
4227
- }
4228
- ], hi = {
4229
- type: fi,
4230
- features: pi
4231
- };
4232
- function yi(e) {
4233
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4234
- }
4235
- var _i = wi, $e, ve, P, Ke, qe, gi = [
4236
- "Point",
4237
- "MultiPoint",
4238
- "LineString",
4239
- "MultiLineString",
4240
- "Polygon",
4241
- "MultiPolygon",
4242
- "GeometryCollection"
4243
- ];
4244
- function wi(e) {
4245
- Ke = 2, qe = Math.pow(10, 6), P = null, $e = [], ve = [];
4246
- var t = e.readFields(vi, {});
4247
- return $e = null, t;
4248
- }
4249
- function vi(e, t, n) {
4250
- e === 1 ? $e.push(n.readString()) : e === 2 ? Ke = n.readVarint() : e === 3 ? qe = Math.pow(10, n.readVarint()) : e === 4 ? xi(n, t) : e === 5 ? bn(n, t) : e === 6 && Et(n, t);
4251
- }
4252
- function xi(e, t) {
4253
- return t.type = "FeatureCollection", t.features = [], e.readMessage(Fi, t);
4254
- }
4255
- function bn(e, t) {
4256
- t.type = "Feature";
4257
- var n = e.readMessage(Mi, t);
4258
- return "geometry" in n || (n.geometry = null), n;
4259
- }
4260
- function Et(e, t) {
4261
- return t.type = "Point", e.readMessage(Ti, t);
4262
- }
4263
- function Fi(e, t, n) {
4264
- e === 1 ? t.features.push(bn(n, {})) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4265
- }
4266
- function Mi(e, t, n) {
4267
- e === 1 ? t.geometry = Et(n, {}) : e === 11 ? t.id = n.readString() : e === 12 ? t.id = n.readSVarint() : e === 13 ? ve.push(Rt(n)) : e === 14 ? t.properties = We(n, {}) : e === 15 && We(n, t);
4268
- }
4269
- function Ti(e, t, n) {
4270
- e === 1 ? t.type = gi[n.readVarint()] : e === 2 ? P = n.readPackedVarint() : e === 3 ? Si(t, n, t.type) : e === 4 ? (t.geometries = t.geometries || [], t.geometries.push(Et(n, {}))) : e === 13 ? ve.push(Rt(n)) : e === 15 && We(n, t);
4271
- }
4272
- function Si(e, t, n) {
4273
- n === "Point" ? e.coordinates = Di(t) : n === "MultiPoint" || n === "LineString" ? e.coordinates = gn(t) : n === "MultiLineString" ? e.coordinates = wn(t) : n === "Polygon" ? e.coordinates = wn(t, !0) : n === "MultiPolygon" && (e.coordinates = Ni(t));
4274
- }
4275
- function Rt(e) {
4276
- for (var t = e.readVarint() + e.pos, n = null; e.pos < t; ) {
4277
- var a = e.readVarint(), i = a >> 3;
4278
- i === 1 ? n = e.readString() : i === 2 ? n = e.readDouble() : i === 3 ? n = e.readVarint() : i === 4 ? n = -e.readVarint() : i === 5 ? n = e.readBoolean() : i === 6 && (n = JSON.parse(e.readString()));
4279
- }
4280
- return n;
4281
- }
4282
- function We(e, t) {
4283
- for (var n = e.readVarint() + e.pos; e.pos < n; ) t[$e[e.readVarint()]] = ve[e.readVarint()];
4284
- return ve = [], t;
4285
- }
4286
- function Di(e) {
4287
- for (var t = e.readVarint() + e.pos, n = []; e.pos < t; ) n.push(e.readSVarint() / qe);
4288
- return n;
4289
- }
4290
- function be(e, t, n, a) {
4291
- var i = 0, o = [], l, m, f = [];
4292
- for (m = 0; m < Ke; m++) f[m] = 0;
4293
- for (; n ? i < n : e.pos < t; ) {
4294
- for (l = [], m = 0; m < Ke; m++)
4295
- f[m] += e.readSVarint(), l[m] = f[m] / qe;
4296
- o.push(l), i++;
4297
- }
4298
- return a && o.push(o[0]), o;
4299
- }
4300
- function gn(e) {
4301
- return be(e, e.readVarint() + e.pos);
4302
- }
4303
- function wn(e, t) {
4304
- var n = e.readVarint() + e.pos;
4305
- if (!P) return [be(e, n, null, t)];
4306
- for (var a = [], i = 0; i < P.length; i++) a.push(be(e, n, P[i], t));
4307
- return P = null, a;
4308
- }
4309
- function Ni(e) {
4310
- var t = e.readVarint() + e.pos;
4311
- if (!P) return [[be(e, t, null, !0)]];
4312
- for (var n = [], a = 1, i = 0; i < P[0]; i++) {
4313
- for (var o = [], l = 0; l < P[a]; l++) o.push(be(e, t, P[a + 1 + l], !0));
4314
- a += P[a] + 1, n.push(o);
4315
- }
4316
- return P = null, n;
4317
- }
4318
- var ki = _i, Ot = {};
4319
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
4320
- Ot.read = function(e, t, n, a, i) {
4321
- var o, l, m = i * 8 - a - 1, f = (1 << m) - 1, d = f >> 1, c = -7, y = n ? i - 1 : 0, w = n ? -1 : 1, g = e[t + y];
4322
- for (y += w, o = g & (1 << -c) - 1, g >>= -c, c += m; c > 0; o = o * 256 + e[t + y], y += w, c -= 8)
4323
- ;
4324
- for (l = o & (1 << -c) - 1, o >>= -c, c += a; c > 0; l = l * 256 + e[t + y], y += w, c -= 8)
4325
- ;
4326
- if (o === 0)
4327
- o = 1 - d;
4328
- else {
4329
- if (o === f)
4330
- return l ? NaN : (g ? -1 : 1) * (1 / 0);
4331
- l = l + Math.pow(2, a), o = o - d;
4332
- }
4333
- return (g ? -1 : 1) * l * Math.pow(2, o - a);
4334
- };
4335
- Ot.write = function(e, t, n, a, i, o) {
4336
- var l, m, f, d = o * 8 - i - 1, c = (1 << d) - 1, y = c >> 1, w = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = a ? 0 : o - 1, M = a ? 1 : -1, T = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
4337
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, l = c) : (l = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -l)) < 1 && (l--, f *= 2), l + y >= 1 ? t += w / f : t += w * Math.pow(2, 1 - y), t * f >= 2 && (l++, f /= 2), l + y >= c ? (m = 0, l = c) : l + y >= 1 ? (m = (t * f - 1) * Math.pow(2, i), l = l + y) : (m = t * Math.pow(2, y - 1) * Math.pow(2, i), l = 0)); i >= 8; e[n + g] = m & 255, g += M, m /= 256, i -= 8)
4338
- ;
4339
- for (l = l << i | m, d += i; d > 0; e[n + g] = l & 255, g += M, l /= 256, d -= 8)
4340
- ;
4341
- e[n + g - M] |= T * 128;
4342
- };
4343
- var Ei = x, Ve = Ot;
4344
- function x(e) {
4345
- this.buf = ArrayBuffer.isView && ArrayBuffer.isView(e) ? e : new Uint8Array(e || 0), this.pos = 0, this.type = 0, this.length = this.buf.length;
4346
- }
4347
- x.Varint = 0;
4348
- x.Fixed64 = 1;
4349
- x.Bytes = 2;
4350
- x.Fixed32 = 5;
4351
- var St = 65536 * 65536, vn = 1 / St, Ri = 12, Ln = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
4352
- x.prototype = {
4353
- destroy: function() {
4354
- this.buf = null;
4355
- },
4356
- // === READING =================================================================
4357
- readFields: function(e, t, n) {
4358
- for (n = n || this.length; this.pos < n; ) {
4359
- var a = this.readVarint(), i = a >> 3, o = this.pos;
4360
- this.type = a & 7, e(i, t, this), this.pos === o && this.skip(a);
4361
- }
4362
- return t;
4363
- },
4364
- readMessage: function(e, t) {
4365
- return this.readFields(e, t, this.readVarint() + this.pos);
4366
- },
4367
- readFixed32: function() {
4368
- var e = Ye(this.buf, this.pos);
4369
- return this.pos += 4, e;
4370
- },
4371
- readSFixed32: function() {
4372
- var e = Fn(this.buf, this.pos);
4373
- return this.pos += 4, e;
4374
- },
4375
- // 64-bit int handling is based on github.com/dpw/node-buffer-more-ints (MIT-licensed)
4376
- readFixed64: function() {
4377
- var e = Ye(this.buf, this.pos) + Ye(this.buf, this.pos + 4) * St;
4378
- return this.pos += 8, e;
4379
- },
4380
- readSFixed64: function() {
4381
- var e = Ye(this.buf, this.pos) + Fn(this.buf, this.pos + 4) * St;
4382
- return this.pos += 8, e;
4383
- },
4384
- readFloat: function() {
4385
- var e = Ve.read(this.buf, this.pos, !0, 23, 4);
4386
- return this.pos += 4, e;
4387
- },
4388
- readDouble: function() {
4389
- var e = Ve.read(this.buf, this.pos, !0, 52, 8);
4390
- return this.pos += 8, e;
4391
- },
4392
- readVarint: function(e) {
4393
- var t = this.buf, n, a;
4394
- return a = t[this.pos++], n = a & 127, a < 128 || (a = t[this.pos++], n |= (a & 127) << 7, a < 128) || (a = t[this.pos++], n |= (a & 127) << 14, a < 128) || (a = t[this.pos++], n |= (a & 127) << 21, a < 128) ? n : (a = t[this.pos], n |= (a & 15) << 28, Oi(n, e, this));
4395
- },
4396
- readVarint64: function() {
4397
- return this.readVarint(!0);
4398
- },
4399
- readSVarint: function() {
4400
- var e = this.readVarint();
4401
- return e % 2 === 1 ? (e + 1) / -2 : e / 2;
4402
- },
4403
- readBoolean: function() {
4404
- return !!this.readVarint();
4405
- },
4406
- readString: function() {
4407
- var e = this.readVarint() + this.pos, t = this.pos;
4408
- return this.pos = e, e - t >= Ri && Ln ? ji(this.buf, t, e) : zi(this.buf, t, e);
4409
- },
4410
- readBytes: function() {
4411
- var e = this.readVarint() + this.pos, t = this.buf.subarray(this.pos, e);
4412
- return this.pos = e, t;
4413
- },
4414
- // verbose for performance reasons; doesn't affect gzipped size
4415
- readPackedVarint: function(e, t) {
4416
- if (this.type !== x.Bytes) return e.push(this.readVarint(t));
4417
- var n = J(this);
4418
- for (e = e || []; this.pos < n; ) e.push(this.readVarint(t));
4419
- return e;
4420
- },
4421
- readPackedSVarint: function(e) {
4422
- if (this.type !== x.Bytes) return e.push(this.readSVarint());
4423
- var t = J(this);
4424
- for (e = e || []; this.pos < t; ) e.push(this.readSVarint());
4425
- return e;
4426
- },
4427
- readPackedBoolean: function(e) {
4428
- if (this.type !== x.Bytes) return e.push(this.readBoolean());
4429
- var t = J(this);
4430
- for (e = e || []; this.pos < t; ) e.push(this.readBoolean());
4431
- return e;
4432
- },
4433
- readPackedFloat: function(e) {
4434
- if (this.type !== x.Bytes) return e.push(this.readFloat());
4435
- var t = J(this);
4436
- for (e = e || []; this.pos < t; ) e.push(this.readFloat());
4437
- return e;
4438
- },
4439
- readPackedDouble: function(e) {
4440
- if (this.type !== x.Bytes) return e.push(this.readDouble());
4441
- var t = J(this);
4442
- for (e = e || []; this.pos < t; ) e.push(this.readDouble());
4443
- return e;
4444
- },
4445
- readPackedFixed32: function(e) {
4446
- if (this.type !== x.Bytes) return e.push(this.readFixed32());
4447
- var t = J(this);
4448
- for (e = e || []; this.pos < t; ) e.push(this.readFixed32());
4449
- return e;
4450
- },
4451
- readPackedSFixed32: function(e) {
4452
- if (this.type !== x.Bytes) return e.push(this.readSFixed32());
4453
- var t = J(this);
4454
- for (e = e || []; this.pos < t; ) e.push(this.readSFixed32());
4455
- return e;
4456
- },
4457
- readPackedFixed64: function(e) {
4458
- if (this.type !== x.Bytes) return e.push(this.readFixed64());
4459
- var t = J(this);
4460
- for (e = e || []; this.pos < t; ) e.push(this.readFixed64());
4461
- return e;
4462
- },
4463
- readPackedSFixed64: function(e) {
4464
- if (this.type !== x.Bytes) return e.push(this.readSFixed64());
4465
- var t = J(this);
4466
- for (e = e || []; this.pos < t; ) e.push(this.readSFixed64());
4467
- return e;
4468
- },
4469
- skip: function(e) {
4470
- var t = e & 7;
4471
- if (t === x.Varint) for (; this.buf[this.pos++] > 127; )
4472
- ;
4473
- else if (t === x.Bytes) this.pos = this.readVarint() + this.pos;
4474
- else if (t === x.Fixed32) this.pos += 4;
4475
- else if (t === x.Fixed64) this.pos += 8;
4476
- else throw new Error("Unimplemented type: " + t);
4477
- },
4478
- // === WRITING =================================================================
4479
- writeTag: function(e, t) {
4480
- this.writeVarint(e << 3 | t);
4481
- },
4482
- realloc: function(e) {
4483
- for (var t = this.length || 16; t < this.pos + e; ) t *= 2;
4484
- if (t !== this.length) {
4485
- var n = new Uint8Array(t);
4486
- n.set(this.buf), this.buf = n, this.length = t;
4487
- }
4488
- },
4489
- finish: function() {
4490
- return this.length = this.pos, this.pos = 0, this.buf.subarray(0, this.length);
4491
- },
4492
- writeFixed32: function(e) {
4493
- this.realloc(4), _e(this.buf, e, this.pos), this.pos += 4;
4494
- },
4495
- writeSFixed32: function(e) {
4496
- this.realloc(4), _e(this.buf, e, this.pos), this.pos += 4;
4497
- },
4498
- writeFixed64: function(e) {
4499
- this.realloc(8), _e(this.buf, e & -1, this.pos), _e(this.buf, Math.floor(e * vn), this.pos + 4), this.pos += 8;
4500
- },
4501
- writeSFixed64: function(e) {
4502
- this.realloc(8), _e(this.buf, e & -1, this.pos), _e(this.buf, Math.floor(e * vn), this.pos + 4), this.pos += 8;
4503
- },
4504
- writeVarint: function(e) {
4505
- if (e = +e || 0, e > 268435455 || e < 0) {
4506
- bi(e, this);
4507
- return;
4508
- }
4509
- this.realloc(4), this.buf[this.pos++] = e & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = (e >>>= 7) & 127 | (e > 127 ? 128 : 0), !(e <= 127) && (this.buf[this.pos++] = e >>> 7 & 127)));
4510
- },
4511
- writeSVarint: function(e) {
4512
- this.writeVarint(e < 0 ? -e * 2 - 1 : e * 2);
4513
- },
4514
- writeBoolean: function(e) {
4515
- this.writeVarint(!!e);
4516
- },
4517
- writeString: function(e) {
4518
- e = String(e), this.realloc(e.length * 4), this.pos++;
4519
- var t = this.pos;
4520
- this.pos = $i(this.buf, e, this.pos);
4521
- var n = this.pos - t;
4522
- n >= 128 && xn(t, n, this), this.pos = t - 1, this.writeVarint(n), this.pos += n;
4523
- },
4524
- writeFloat: function(e) {
4525
- this.realloc(4), Ve.write(this.buf, e, this.pos, !0, 23, 4), this.pos += 4;
4526
- },
4527
- writeDouble: function(e) {
4528
- this.realloc(8), Ve.write(this.buf, e, this.pos, !0, 52, 8), this.pos += 8;
4529
- },
4530
- writeBytes: function(e) {
4531
- var t = e.length;
4532
- this.writeVarint(t), this.realloc(t);
4533
- for (var n = 0; n < t; n++) this.buf[this.pos++] = e[n];
4534
- },
4535
- writeRawMessage: function(e, t) {
4536
- this.pos++;
4537
- var n = this.pos;
4538
- e(t, this);
4539
- var a = this.pos - n;
4540
- a >= 128 && xn(n, a, this), this.pos = n - 1, this.writeVarint(a), this.pos += a;
4541
- },
4542
- writeMessage: function(e, t, n) {
4543
- this.writeTag(e, x.Bytes), this.writeRawMessage(t, n);
4544
- },
4545
- writePackedVarint: function(e, t) {
4546
- t.length && this.writeMessage(e, Ci, t);
4547
- },
4548
- writePackedSVarint: function(e, t) {
4549
- t.length && this.writeMessage(e, Ii, t);
4550
- },
4551
- writePackedBoolean: function(e, t) {
4552
- t.length && this.writeMessage(e, Ai, t);
4553
- },
4554
- writePackedFloat: function(e, t) {
4555
- t.length && this.writeMessage(e, Ui, t);
4556
- },
4557
- writePackedDouble: function(e, t) {
4558
- t.length && this.writeMessage(e, Pi, t);
4559
- },
4560
- writePackedFixed32: function(e, t) {
4561
- t.length && this.writeMessage(e, Bi, t);
4562
- },
4563
- writePackedSFixed32: function(e, t) {
4564
- t.length && this.writeMessage(e, Hi, t);
4565
- },
4566
- writePackedFixed64: function(e, t) {
4567
- t.length && this.writeMessage(e, Vi, t);
4568
- },
4569
- writePackedSFixed64: function(e, t) {
4570
- t.length && this.writeMessage(e, Yi, t);
4571
- },
4572
- writeBytesField: function(e, t) {
4573
- this.writeTag(e, x.Bytes), this.writeBytes(t);
4574
- },
4575
- writeFixed32Field: function(e, t) {
4576
- this.writeTag(e, x.Fixed32), this.writeFixed32(t);
4577
- },
4578
- writeSFixed32Field: function(e, t) {
4579
- this.writeTag(e, x.Fixed32), this.writeSFixed32(t);
4580
- },
4581
- writeFixed64Field: function(e, t) {
4582
- this.writeTag(e, x.Fixed64), this.writeFixed64(t);
4583
- },
4584
- writeSFixed64Field: function(e, t) {
4585
- this.writeTag(e, x.Fixed64), this.writeSFixed64(t);
4586
- },
4587
- writeVarintField: function(e, t) {
4588
- this.writeTag(e, x.Varint), this.writeVarint(t);
4589
- },
4590
- writeSVarintField: function(e, t) {
4591
- this.writeTag(e, x.Varint), this.writeSVarint(t);
4592
- },
4593
- writeStringField: function(e, t) {
4594
- this.writeTag(e, x.Bytes), this.writeString(t);
4595
- },
4596
- writeFloatField: function(e, t) {
4597
- this.writeTag(e, x.Fixed32), this.writeFloat(t);
4598
- },
4599
- writeDoubleField: function(e, t) {
4600
- this.writeTag(e, x.Fixed64), this.writeDouble(t);
4601
- },
4602
- writeBooleanField: function(e, t) {
4603
- this.writeVarintField(e, !!t);
4604
- }
4605
- };
4606
- function Oi(e, t, n) {
4607
- var a = n.buf, i, o;
4608
- if (o = a[n.pos++], i = (o & 112) >> 4, o < 128 || (o = a[n.pos++], i |= (o & 127) << 3, o < 128) || (o = a[n.pos++], i |= (o & 127) << 10, o < 128) || (o = a[n.pos++], i |= (o & 127) << 17, o < 128) || (o = a[n.pos++], i |= (o & 127) << 24, o < 128) || (o = a[n.pos++], i |= (o & 1) << 31, o < 128)) return ye(e, i, t);
4609
- throw new Error("Expected varint not more than 10 bytes");
4610
- }
4611
- function J(e) {
4612
- return e.type === x.Bytes ? e.readVarint() + e.pos : e.pos + 1;
4613
- }
4614
- function ye(e, t, n) {
4615
- return n ? t * 4294967296 + (e >>> 0) : (t >>> 0) * 4294967296 + (e >>> 0);
4616
- }
4617
- function bi(e, t) {
4618
- var n, a;
4619
- if (e >= 0 ? (n = e % 4294967296 | 0, a = e / 4294967296 | 0) : (n = ~(-e % 4294967296), a = ~(-e / 4294967296), n ^ 4294967295 ? n = n + 1 | 0 : (n = 0, a = a + 1 | 0)), e >= 18446744073709552e3 || e < -18446744073709552e3)
4620
- throw new Error("Given varint doesn't fit into 10 bytes");
4621
- t.realloc(10), Li(n, a, t), Gi(a, t);
4622
- }
4623
- function Li(e, t, n) {
4624
- n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos++] = e & 127 | 128, e >>>= 7, n.buf[n.pos] = e & 127;
4625
- }
4626
- function Gi(e, t) {
4627
- var n = (e & 7) << 4;
4628
- t.buf[t.pos++] |= n | ((e >>>= 3) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127 | ((e >>>= 7) ? 128 : 0), e && (t.buf[t.pos++] = e & 127)))));
4629
- }
4630
- function xn(e, t, n) {
4631
- var a = t <= 16383 ? 1 : t <= 2097151 ? 2 : t <= 268435455 ? 3 : Math.floor(Math.log(t) / (Math.LN2 * 7));
4632
- n.realloc(a);
4633
- for (var i = n.pos - 1; i >= e; i--) n.buf[i + a] = n.buf[i];
4634
- }
4635
- function Ci(e, t) {
4636
- for (var n = 0; n < e.length; n++) t.writeVarint(e[n]);
4637
- }
4638
- function Ii(e, t) {
4639
- for (var n = 0; n < e.length; n++) t.writeSVarint(e[n]);
4640
- }
4641
- function Ui(e, t) {
4642
- for (var n = 0; n < e.length; n++) t.writeFloat(e[n]);
4643
- }
4644
- function Pi(e, t) {
4645
- for (var n = 0; n < e.length; n++) t.writeDouble(e[n]);
4646
- }
4647
- function Ai(e, t) {
4648
- for (var n = 0; n < e.length; n++) t.writeBoolean(e[n]);
4649
- }
4650
- function Bi(e, t) {
4651
- for (var n = 0; n < e.length; n++) t.writeFixed32(e[n]);
4652
- }
4653
- function Hi(e, t) {
4654
- for (var n = 0; n < e.length; n++) t.writeSFixed32(e[n]);
4655
- }
4656
- function Vi(e, t) {
4657
- for (var n = 0; n < e.length; n++) t.writeFixed64(e[n]);
4658
- }
4659
- function Yi(e, t) {
4660
- for (var n = 0; n < e.length; n++) t.writeSFixed64(e[n]);
4661
- }
4662
- function Ye(e, t) {
4663
- return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + e[t + 3] * 16777216;
4664
- }
4665
- function _e(e, t, n) {
4666
- e[n] = t, e[n + 1] = t >>> 8, e[n + 2] = t >>> 16, e[n + 3] = t >>> 24;
4667
- }
4668
- function Fn(e, t) {
4669
- return (e[t] | e[t + 1] << 8 | e[t + 2] << 16) + (e[t + 3] << 24);
4670
- }
4671
- function zi(e, t, n) {
4672
- for (var a = "", i = t; i < n; ) {
4673
- var o = e[i], l = null, m = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
4674
- if (i + m > n) break;
4675
- var f, d, c;
4676
- m === 1 ? o < 128 && (l = o) : m === 2 ? (f = e[i + 1], (f & 192) === 128 && (l = (o & 31) << 6 | f & 63, l <= 127 && (l = null))) : m === 3 ? (f = e[i + 1], d = e[i + 2], (f & 192) === 128 && (d & 192) === 128 && (l = (o & 15) << 12 | (f & 63) << 6 | d & 63, (l <= 2047 || l >= 55296 && l <= 57343) && (l = null))) : m === 4 && (f = e[i + 1], d = e[i + 2], c = e[i + 3], (f & 192) === 128 && (d & 192) === 128 && (c & 192) === 128 && (l = (o & 15) << 18 | (f & 63) << 12 | (d & 63) << 6 | c & 63, (l <= 65535 || l >= 1114112) && (l = null))), l === null ? (l = 65533, m = 1) : l > 65535 && (l -= 65536, a += String.fromCharCode(l >>> 10 & 1023 | 55296), l = 56320 | l & 1023), a += String.fromCharCode(l), i += m;
4677
- }
4678
- return a;
4679
- }
4680
- function ji(e, t, n) {
4681
- return Ln.decode(e.subarray(t, n));
4682
- }
4683
- function $i(e, t, n) {
4684
- for (var a = 0, i, o; a < t.length; a++) {
4685
- if (i = t.charCodeAt(a), i > 55295 && i < 57344)
4686
- if (o)
4687
- if (i < 56320) {
4688
- e[n++] = 239, e[n++] = 191, e[n++] = 189, o = i;
4689
- continue;
4690
- } else
4691
- i = o - 55296 << 10 | i - 56320 | 65536, o = null;
4692
- else {
4693
- i > 56319 || a + 1 === t.length ? (e[n++] = 239, e[n++] = 191, e[n++] = 189) : o = i;
4694
- continue;
4695
- }
4696
- else o && (e[n++] = 239, e[n++] = 191, e[n++] = 189, o = null);
4697
- i < 128 ? e[n++] = i : (i < 2048 ? e[n++] = i >> 6 | 192 : (i < 65536 ? e[n++] = i >> 12 | 224 : (e[n++] = i >> 18 | 240, e[n++] = i >> 12 & 63 | 128), e[n++] = i >> 6 & 63 | 128), e[n++] = i & 63 | 128);
4698
- }
4699
- return n;
4700
- }
4701
- const Ki = /* @__PURE__ */ yi(Ei), yo = (e) => {
4702
- var a, i;
4703
- if (!e || !e.data)
4704
- return {};
4705
- const t = {}, n = e.data;
4706
- if (n)
4707
- for (const o of n) {
4708
- const l = (a = o == null ? void 0 : o.event) == null ? void 0 : a.country_code, m = (i = e.meta.metric_names) == null ? void 0 : i[0];
4709
- l && (t[l] = m ? o.event[m] : 0);
4710
- }
4711
- return t;
4712
- };
4713
- function Wi(e, t = 0) {
4714
- let n = null;
4715
- return (...a) => {
4716
- n && clearTimeout(n), n = setTimeout(() => e(...a), t);
4717
- };
4718
- }
4719
- const Zi = { class: "legend" }, qi = {
4720
- key: 0,
4721
- class: "legend-title"
4722
- }, Ji = { class: "legend-text" }, Xi = /* @__PURE__ */ Dt({
4723
- __name: "MapLegend",
4724
- props: {
4725
- metric: {},
4726
- title: {},
4727
- data: {}
4728
- },
4729
- setup(e) {
4730
- return (t, n) => ($(), ae("div", Zi, [
4731
- e.metric ? ($(), ae("div", qi, we(e.title), 1)) : ke("", !0),
4732
- ($(!0), ae(Wr, null, Zr(e.data, (a, i) => ($(), ae("div", {
4733
- key: i,
4734
- class: "legend-item"
4735
- }, [
4736
- X("span", {
4737
- class: "legend-color",
4738
- style: qr({ backgroundColor: a.color })
4739
- }, null, 4),
4740
- X("span", Ji, we(a.range), 1)
4741
- ]))), 128))
4742
- ]));
4743
- }
4744
- }), bt = (e, t) => {
4745
- const n = e.__vccOpts || e;
4746
- for (const [a, i] of t)
4747
- n[a] = i;
4748
- return n;
4749
- }, Qi = /* @__PURE__ */ bt(Xi, [["__scopeId", "data-v-5f034736"]]), eo = { class: "map-tooltip" }, to = { class: "map-tooltip-text" }, no = { key: 0 }, ro = /* @__PURE__ */ Dt({
4750
- __name: "MapTooltip",
4751
- props: {
4752
- data: {},
4753
- showValue: { type: Boolean },
4754
- top: {},
4755
- left: {}
4756
- },
4757
- setup(e) {
4758
- return Jr((t) => ({
4759
- v75a0a274: t.left,
4760
- v144f4294: t.top,
4761
- v6e49e79e: t.data.color
4762
- })), (t, n) => ($(), ae("div", eo, [
4763
- n[0] || (n[0] = X("div", { class: "map-tooltip-color" }, null, -1)),
4764
- X("div", to, [
4765
- X("div", null, we(e.data.label), 1),
4766
- e.showValue ? ($(), ae("span", no, we(e.data.value), 1)) : ke("", !0)
4767
- ])
4768
- ]));
4769
- }
4770
- }), ao = /* @__PURE__ */ bt(ro, [["__scopeId", "data-v-6bea2641"]]), io = { class: "kong-ui-public-analytics-geo-map" }, oo = {
4771
- key: 0,
4772
- class: "no-location-overlay"
4773
- }, so = { class: "no-location-overlay-title" }, lo = { class: "no-location-overlay-description" }, uo = ["id"], co = /* @__PURE__ */ Dt({
4774
- __name: "AnalyticsGeoMap",
4775
- props: {
4776
- countryMetrics: {},
4777
- metricUnit: {},
4778
- metric: {},
4779
- withLegend: { type: Boolean, default: !0 },
4780
- showTooltipValue: { type: Boolean, default: !0 },
4781
- fitToCountry: { default: () => {
4782
- } },
4783
- bounds: { default: () => {
4784
- } }
4785
- },
4786
- emits: ["boundsChange"],
4787
- setup(e, { emit: t }) {
4788
- const n = import("./countries-simple-geo-BFUDnSiE.js").then((_) => _.default), a = t, { i18n: i } = Re.useI18n(), { getColor: o, legendData: l } = Re.useLegendScale({
4789
- countryMetrics: Be(() => e.countryMetrics),
4790
- metric: Be(() => e.metric),
4791
- unit: Be(() => e.metricUnit)
4792
- }), { formatMetric: m } = Re.useMetricFormat({ unit: Be(() => e.metricUnit) }), f = Ne(), d = Xr(), c = Ne(), y = Ne(null), w = Ne({ left: "0px", top: "0px" }), g = Ne(!1), M = U(() => Object.keys(e.countryMetrics).length === 0 && !e.fitToCountry), T = U(() => ({
4793
- "fill-color": [
4794
- "match",
4795
- [
4796
- "coalesce",
4797
- [
4798
- "case",
4799
- ["==", ["get", "iso_a2"], "-99"],
4800
- ["get", "iso_a2_eh"],
4801
- ["get", "iso_a2"]
4802
- ],
4803
- ["get", "ISO_A2"]
4804
- ],
4805
- ...Object.keys(e.countryMetrics).length ? Object.entries(e.countryMetrics).flatMap(([_, F]) => [
4806
- _,
4807
- o(F)
4808
- ]) : [Ee, Ee],
4809
- Ee
4810
- // default color if no match
4811
- ],
4812
- "fill-opacity": 0.7
4813
- })), B = U(() => e.withLegend && Object.keys(e.countryMetrics).length > 0), A = U(() => e.metric && i.t(`metrics.${e.metric}`) || ""), C = (_) => {
4814
- const F = _.flat(1);
4815
- return Array.isArray(F[0]) && Array.isArray(F[0][0]) ? C(F) : F;
4816
- }, ie = (_) => {
4817
- var S, k, ee, K, H, te, ne;
4818
- if (_ === "RU") {
4819
- (S = c.value) == null || S.fitBounds([
4820
- [20, 40],
4821
- [180, 80]
4822
- ]);
4823
- return;
4824
- } else if (_ === "US") {
4825
- (k = c.value) == null || k.fitBounds([
4826
- [-130, 20],
4827
- [-60, 50]
4828
- ]);
4829
- return;
4830
- } else if (_ === "FR") {
4831
- (ee = c.value) == null || ee.fitBounds([
4832
- [-5, 42],
4833
- [9, 51]
4834
- ]);
4835
- return;
4836
- } else if (_ === "NO") {
4837
- (K = c.value) == null || K.fitBounds([
4838
- [4, 57],
4839
- [32, 71]
4840
- ]);
4841
- return;
4842
- }
4843
- const F = (H = y.value) == null ? void 0 : H.features.find((G) => {
4844
- var V, Y, z, v, j;
4845
- return (V = G.properties) != null && V.ISO_A2 ? ((Y = G.properties) == null ? void 0 : Y.ISO_A2) === _ : ((z = G.properties) == null ? void 0 : z.iso_a2) === "-99" ? ((v = G.properties) == null ? void 0 : v.iso_a2_eh) === _ : ((j = G.properties) == null ? void 0 : j.iso_a2) === _;
4846
- });
4847
- if (F) {
4848
- const G = (te = F.geometry) == null ? void 0 : te.coordinates;
4849
- if (!G) return;
4850
- const V = C(G), Y = V.map((W) => W[1]), z = V.map((W) => W[0]), v = Math.min(...Y), j = Math.max(...Y), de = Math.min(...z), O = Math.max(...z);
4851
- (ne = c.value) == null || ne.fitBounds([
4852
- [de, v],
4853
- [O, j]
4854
- ]);
4855
- }
4856
- }, D = U(() => {
4857
- const _ = {
4858
- container: d,
4859
- style: { version: 8, sources: {}, layers: [] },
4860
- attributionControl: !1,
4861
- // fit bounds for whole world minus antarctica
4862
- maxBounds: [
4863
- [-179, -75],
4864
- // -75 south tip of south america
4865
- [179, 90]
4866
- ],
4867
- cooperativeGestures: !0,
4868
- locale: {
4869
- "CooperativeGesturesHandler.WindowsHelpText": i.t("cooperative_gestures.windows_zoom_help_text"),
4870
- "CooperativeGesturesHandler.MacHelpText": i.t("cooperative_gestures.mac_zoom_help_text"),
4871
- "CooperativeGesturesHandler.MobileHelpText": i.t("cooperative_gestures.mobile_zoom_help_text")
4872
- }
4873
- };
4874
- return e.bounds && (_.bounds = e.bounds), _;
4875
- }), ce = Wi(() => {
4876
- if (!c.value) return;
4877
- const _ = c.value.getBounds(), F = _.getSouthWest(), S = _.getNorthEast();
4878
- a("boundsChange", [
4879
- [F.lng, F.lat],
4880
- [S.lng, S.lat]
4881
- ]);
4882
- }, 300);
4883
- return Qr(async () => {
4884
- var _, F, S;
4885
- try {
4886
- const k = await n, ee = await fetch(k), K = new Uint8Array(await ee.arrayBuffer()), H = ki(new Ki(K));
4887
- y.value = H, c.value = new na(D.value), c.value.on("load", () => {
4888
- var te, ne, G, V, Y, z, v;
4889
- (te = c.value) == null || te.addSource("countries", {
4890
- type: "geojson",
4891
- data: H
4892
- }), (ne = c.value) == null || ne.addLayer({
4893
- id: "countries-layer",
4894
- type: "fill",
4895
- source: "countries",
4896
- paint: T.value
4897
- }), (G = c.value) == null || G.addSource("lakes", {
4898
- type: "geojson",
4899
- data: hi
4900
- }), (V = c.value) == null || V.addLayer({
4901
- id: "lakes-layer",
4902
- type: "fill",
4903
- source: "lakes",
4904
- paint: {
4905
- "fill-color": "#FFFFFF"
4906
- }
4907
- }), (Y = c.value) == null || Y.on("mousemove", "countries-layer", (j) => {
4908
- var O;
4909
- const de = (O = j.features) == null ? void 0 : O[0];
4910
- if (de) {
4911
- const { iso_a2: W, iso_a2_eh: Le, ISO_A2: Je, admin: Xe } = de.properties, Qe = Je ?? W === "-99" ? Le : W, Te = e.countryMetrics[Qe];
4912
- Te !== void 0 && (f.value = {
4913
- label: Xe,
4914
- color: o(Te),
4915
- value: m(Te)
4916
- }, g.value = !0, w.value = {
4917
- left: `${j.point.x}px`,
4918
- top: `${j.point.y}px`
4919
- });
4920
- }
4921
- }), (z = c.value) == null || z.on("mouseleave", "countries-layer", () => {
4922
- g.value = !1;
4923
- }), (v = c.value) == null || v.on("move", ce), e.fitToCountry && ie(e.fitToCountry);
4924
- }), (_ = c.value) == null || _.dragRotate.disable(), (F = c.value) == null || F.keyboard.disable(), (S = c.value) == null || S.touchZoomRotate.disableRotation();
4925
- } catch (k) {
4926
- console.error(k);
4927
- }
4928
- }), dt(() => e.countryMetrics, () => {
4929
- var _;
4930
- c.value && c.value.isStyleLoaded() && (c.value.getLayer("countries-layer") && c.value.removeLayer("countries-layer"), c.value.addLayer({
4931
- id: "countries-layer",
4932
- type: "fill",
4933
- source: "countries",
4934
- paint: T.value
4935
- }), c.value.removeLayer("lakes-layer"), (_ = c.value) == null || _.addLayer({
4936
- id: "lakes-layer",
4937
- type: "fill",
4938
- source: "lakes",
4939
- paint: {
4940
- "fill-color": "#FFFFFF"
4941
- }
4942
- }));
4943
- }), dt(() => e.fitToCountry, (_) => {
4944
- var F, S, k;
4945
- c.value && _ ? ie(_) : !D.value.center && !D.value.zoom ? (F = c.value) == null || F.fitBounds([
4946
- [-180, -90],
4947
- [180, 90]
4948
- ]) : (D.value.zoom && ((S = c.value) == null || S.setZoom(D.value.zoom)), D.value.center && ((k = c.value) == null || k.flyTo({ center: D.value.center })));
4949
- }), dt(() => e.bounds, (_, F) => {
4950
- if (!_) return;
4951
- const S = _ == null ? void 0 : _.flat(), k = F == null ? void 0 : F.flat();
4952
- !(S && k && S.length === k.length && S.every((K, H) => Math.round(K * 100) / 100 === Math.round(k[H] * 100) / 100)) && c.value && c.value.fitBounds(_);
4953
- }), (_, F) => ($(), ae("div", io, [
4954
- M.value ? ($(), ae("div", oo, [
4955
- mt(_.$slots, "no-location-icon", {}, () => [
4956
- ea(ue(ia), {
4957
- color: ue(li),
4958
- size: ue(ui)
4959
- }, null, 8, ["color", "size"])
4960
- ], !0),
4961
- X("div", so, [
4962
- mt(_.$slots, "no-location-title", {}, () => [
4963
- ta(we(ue(i).t("no_location_data")), 1)
4964
- ], !0)
4965
- ]),
4966
- X("div", lo, [
4967
- mt(_.$slots, "no-location-description", {}, () => [
4968
- X("p", null, we(ue(i).t("no_location_data_description")), 1)
4969
- ], !0)
4970
- ])
4971
- ])) : ke("", !0),
4972
- X("div", {
4973
- id: ue(d),
4974
- class: "analytics-geo-map-container"
4975
- }, null, 8, uo),
4976
- B.value ? ($(), nn(Qi, {
4977
- key: 1,
4978
- class: "legend-container",
4979
- data: ue(l),
4980
- metric: e.metric,
4981
- title: A.value
4982
- }, null, 8, ["data", "metric", "title"])) : ke("", !0),
4983
- g.value && f.value ? ($(), nn(ao, {
4984
- key: 2,
4985
- data: f.value,
4986
- left: w.value.left,
4987
- "show-value": e.showTooltipValue,
4988
- top: w.value.top
4989
- }, null, 8, ["data", "left", "show-value", "top"])) : ke("", !0)
4990
- ]));
4991
- }
4992
- }), _o = /* @__PURE__ */ bt(co, [["__scopeId", "data-v-4e998083"]]);
4993
- export {
4994
- _o as AnalyticsGeoMap,
4995
- Wi as debounce,
4996
- yo as exploreResultToCountryMetrics
4997
- };