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