@maptiler/geocoding-control 1.3.0-rc2 → 1.3.0-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leaflet.js +843 -850
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +8 -8
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1 -1
- package/maplibregl.umd.js +1 -1
- package/maptilersdk.js +848 -855
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +8 -8
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1 -1
- package/openlayers.umd.js +1 -1
- package/package.json +2 -2
- package/react.js +1 -1
- package/react.umd.js +1 -1
- package/svelte/GeocodingControl.svelte +1 -1
- package/vanilla.js +1 -1
- package/vanilla.umd.js +1 -1
package/maptilersdk.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Ph = Object.defineProperty;
|
|
2
|
+
var Ah = (a, r, i) => r in a ? Ph(a, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[r] = i;
|
|
3
|
+
var Ss = (a, r, i) => (Ah(a, typeof r != "symbol" ? r + "" : r, i), i), Ao = (a, r, i) => {
|
|
4
4
|
if (!r.has(a))
|
|
5
5
|
throw TypeError("Cannot " + i);
|
|
6
6
|
};
|
|
7
|
-
var Et = (a, r, i) => (Ao(a, r, "read from private field"), i ? i.call(a) : r.get(a)),
|
|
7
|
+
var Et = (a, r, i) => (Ao(a, r, "read from private field"), i ? i.call(a) : r.get(a)), Is = (a, r, i) => {
|
|
8
8
|
if (r.has(a))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
r instanceof WeakSet ? r.add(a) : r.set(a, i);
|
|
11
11
|
}, ii = (a, r, i, u) => (Ao(a, r, "write to private field"), u ? u.call(a, i) : r.set(a, i), i);
|
|
12
|
-
import * as
|
|
12
|
+
import * as Dh from "@maptiler/sdk";
|
|
13
13
|
function Te() {
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Fh(a, r) {
|
|
16
16
|
for (const i in r)
|
|
17
17
|
a[i] = r[i];
|
|
18
18
|
return (
|
|
@@ -20,16 +20,16 @@ function Bh(a, r) {
|
|
|
20
20
|
a
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ec(a) {
|
|
24
24
|
return a();
|
|
25
25
|
}
|
|
26
26
|
function Do() {
|
|
27
27
|
return /* @__PURE__ */ Object.create(null);
|
|
28
28
|
}
|
|
29
29
|
function $t(a) {
|
|
30
|
-
a.forEach(
|
|
30
|
+
a.forEach(ec);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function tc(a) {
|
|
33
33
|
return typeof a == "function";
|
|
34
34
|
}
|
|
35
35
|
function hn(a, r) {
|
|
@@ -39,19 +39,19 @@ let si;
|
|
|
39
39
|
function He(a, r) {
|
|
40
40
|
return a === r ? !0 : (si || (si = document.createElement("a")), si.href = r, a === si.href);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Bh(a) {
|
|
43
43
|
return Object.keys(a).length === 0;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Gh(a, r, i, u) {
|
|
46
46
|
if (a) {
|
|
47
|
-
const l =
|
|
47
|
+
const l = nc(a, r, i, u);
|
|
48
48
|
return a[0](l);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return a[1] && u ?
|
|
51
|
+
function nc(a, r, i, u) {
|
|
52
|
+
return a[1] && u ? Fh(i.ctx.slice(), a[1](u(r))) : i.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function qh(a, r, i, u) {
|
|
55
55
|
if (a[2] && u) {
|
|
56
56
|
const l = a[2](u(i));
|
|
57
57
|
if (r.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function zh(a, r, i, u) {
|
|
|
66
66
|
}
|
|
67
67
|
return r.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function zh(a, r, i, u, l, f) {
|
|
70
70
|
if (l) {
|
|
71
|
-
const g =
|
|
71
|
+
const g = nc(r, i, u, f);
|
|
72
72
|
a.p(g, l);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Uh(a) {
|
|
76
76
|
if (a.ctx.length > 32) {
|
|
77
77
|
const r = [], i = a.ctx.length / 32;
|
|
78
78
|
for (let u = 0; u < i; u++)
|
|
@@ -105,13 +105,13 @@ function ln(a) {
|
|
|
105
105
|
function ht() {
|
|
106
106
|
return ln(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Yh() {
|
|
109
109
|
return ln("");
|
|
110
110
|
}
|
|
111
111
|
function et(a, r, i, u) {
|
|
112
112
|
return a.addEventListener(r, i, u), () => a.removeEventListener(r, i, u);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Wh(a) {
|
|
115
115
|
return function(r) {
|
|
116
116
|
return r.preventDefault(), a.call(this, r);
|
|
117
117
|
};
|
|
@@ -119,7 +119,7 @@ function Xh(a) {
|
|
|
119
119
|
function Y(a, r, i) {
|
|
120
120
|
i == null ? a.removeAttribute(r) : a.getAttribute(r) !== i && a.setAttribute(r, i);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Xh(a) {
|
|
123
123
|
return Array.from(a.childNodes);
|
|
124
124
|
}
|
|
125
125
|
function zr(a, r) {
|
|
@@ -132,27 +132,27 @@ function Bo(a, r) {
|
|
|
132
132
|
function St(a, r, i) {
|
|
133
133
|
a.classList.toggle(r, !!i);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function jh(a, r, { bubbles: i = !1, cancelable: u = !1 } = {}) {
|
|
136
136
|
return new CustomEvent(a, { detail: r, bubbles: i, cancelable: u });
|
|
137
137
|
}
|
|
138
138
|
let Ur;
|
|
139
139
|
function Dr(a) {
|
|
140
140
|
Ur = a;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function rc() {
|
|
143
143
|
if (!Ur)
|
|
144
144
|
throw new Error("Function called outside component initialization");
|
|
145
145
|
return Ur;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
147
|
+
function Vh(a) {
|
|
148
|
+
rc().$$.on_destroy.push(a);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
const a =
|
|
150
|
+
function Hh() {
|
|
151
|
+
const a = rc();
|
|
152
152
|
return (r, i, { cancelable: u = !1 } = {}) => {
|
|
153
153
|
const l = a.$$.callbacks[r];
|
|
154
154
|
if (l) {
|
|
155
|
-
const f =
|
|
155
|
+
const f = jh(
|
|
156
156
|
/** @type {string} */
|
|
157
157
|
r,
|
|
158
158
|
i,
|
|
@@ -171,17 +171,17 @@ function Go(a, r) {
|
|
|
171
171
|
}
|
|
172
172
|
const Jn = [], Zs = [];
|
|
173
173
|
let tr = [];
|
|
174
|
-
const qo = [],
|
|
174
|
+
const qo = [], Zh = /* @__PURE__ */ Promise.resolve();
|
|
175
175
|
let Ks = !1;
|
|
176
|
-
function
|
|
177
|
-
Ks || (Ks = !0,
|
|
176
|
+
function Kh() {
|
|
177
|
+
Ks || (Ks = !0, Zh.then(ic));
|
|
178
178
|
}
|
|
179
179
|
function Qs(a) {
|
|
180
180
|
tr.push(a);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const bs = /* @__PURE__ */ new Set();
|
|
183
183
|
let Hn = 0;
|
|
184
|
-
function
|
|
184
|
+
function ic() {
|
|
185
185
|
if (Hn !== 0)
|
|
186
186
|
return;
|
|
187
187
|
const a = Ur;
|
|
@@ -189,7 +189,7 @@ function sc() {
|
|
|
189
189
|
try {
|
|
190
190
|
for (; Hn < Jn.length; ) {
|
|
191
191
|
const r = Jn[Hn];
|
|
192
|
-
Hn++, Dr(r),
|
|
192
|
+
Hn++, Dr(r), Qh(r.$$);
|
|
193
193
|
}
|
|
194
194
|
} catch (r) {
|
|
195
195
|
throw Jn.length = 0, Hn = 0, r;
|
|
@@ -198,22 +198,22 @@ function sc() {
|
|
|
198
198
|
Zs.pop()();
|
|
199
199
|
for (let r = 0; r < tr.length; r += 1) {
|
|
200
200
|
const i = tr[r];
|
|
201
|
-
|
|
201
|
+
bs.has(i) || (bs.add(i), i());
|
|
202
202
|
}
|
|
203
203
|
tr.length = 0;
|
|
204
204
|
} while (Jn.length);
|
|
205
205
|
for (; qo.length; )
|
|
206
206
|
qo.pop()();
|
|
207
|
-
Ks = !1,
|
|
207
|
+
Ks = !1, bs.clear(), Dr(a);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Qh(a) {
|
|
210
210
|
if (a.fragment !== null) {
|
|
211
211
|
a.update(), $t(a.before_update);
|
|
212
212
|
const r = a.dirty;
|
|
213
213
|
a.dirty = [-1], a.fragment && a.fragment.p(a.ctx, r), a.after_update.forEach(Qs);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Jh(a) {
|
|
217
217
|
const r = [], i = [];
|
|
218
218
|
tr.forEach((u) => a.indexOf(u) === -1 ? r.push(u) : i.push(u)), i.forEach((u) => u()), tr = r;
|
|
219
219
|
}
|
|
@@ -246,12 +246,12 @@ function Ye(a, r, i, u) {
|
|
|
246
246
|
function zo(a) {
|
|
247
247
|
return (a == null ? void 0 : a.length) !== void 0 ? a : Array.from(a);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function $h(a, r) {
|
|
250
250
|
Ye(a, 1, 1, () => {
|
|
251
251
|
r.delete(a.key);
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function eg(a, r, i, u, l, f, g, v, m, _, k, p) {
|
|
255
255
|
let x = a.length, S = f.length, b = x;
|
|
256
256
|
const R = {};
|
|
257
257
|
for (; b--; )
|
|
@@ -284,16 +284,16 @@ function cn(a) {
|
|
|
284
284
|
function Qt(a, r, i) {
|
|
285
285
|
const { fragment: u, after_update: l } = a.$$;
|
|
286
286
|
u && u.m(r, i), Qs(() => {
|
|
287
|
-
const f = a.$$.on_mount.map(
|
|
287
|
+
const f = a.$$.on_mount.map(ec).filter(tc);
|
|
288
288
|
a.$$.on_destroy ? a.$$.on_destroy.push(...f) : $t(f), a.$$.on_mount = [];
|
|
289
289
|
}), l.forEach(Qs);
|
|
290
290
|
}
|
|
291
291
|
function Jt(a, r) {
|
|
292
292
|
const i = a.$$;
|
|
293
|
-
i.fragment !== null && (
|
|
293
|
+
i.fragment !== null && (Jh(i.after_update), $t(i.on_destroy), i.fragment && i.fragment.d(r), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
a.$$.dirty[0] === -1 && (Jn.push(a),
|
|
295
|
+
function tg(a, r) {
|
|
296
|
+
a.$$.dirty[0] === -1 && (Jn.push(a), Kh(), a.$$.dirty.fill(0)), a.$$.dirty[r / 31 | 0] |= 1 << r % 31;
|
|
297
297
|
}
|
|
298
298
|
function gn(a, r, i, u, l, f, g = null, v = [-1]) {
|
|
299
299
|
const m = Ur;
|
|
@@ -323,14 +323,14 @@ function gn(a, r, i, u, l, f, g = null, v = [-1]) {
|
|
|
323
323
|
let k = !1;
|
|
324
324
|
if (_.ctx = i ? i(a, r.props || {}, (p, x, ...S) => {
|
|
325
325
|
const b = S.length ? S[0] : x;
|
|
326
|
-
return _.ctx && l(_.ctx[p], _.ctx[p] = b) && (!_.skip_bound && _.bound[p] && _.bound[p](b), k &&
|
|
326
|
+
return _.ctx && l(_.ctx[p], _.ctx[p] = b) && (!_.skip_bound && _.bound[p] && _.bound[p](b), k && tg(a, p)), x;
|
|
327
327
|
}) : [], _.update(), k = !0, $t(_.before_update), _.fragment = u ? u(_.ctx) : !1, r.target) {
|
|
328
328
|
if (r.hydrate) {
|
|
329
|
-
const p =
|
|
329
|
+
const p = Xh(r.target);
|
|
330
330
|
_.fragment && _.fragment.l(p), p.forEach(Ce);
|
|
331
331
|
} else
|
|
332
332
|
_.fragment && _.fragment.c();
|
|
333
|
-
r.intro && Be(a.$$.fragment), Qt(a, r.target, r.anchor),
|
|
333
|
+
r.intro && Be(a.$$.fragment), Qt(a, r.target, r.anchor), ic();
|
|
334
334
|
}
|
|
335
335
|
Dr(m);
|
|
336
336
|
}
|
|
@@ -343,7 +343,7 @@ class yn {
|
|
|
343
343
|
*
|
|
344
344
|
* @type {any}
|
|
345
345
|
*/
|
|
346
|
-
|
|
346
|
+
Ss(this, "$$");
|
|
347
347
|
/**
|
|
348
348
|
* ### PRIVATE API
|
|
349
349
|
*
|
|
@@ -351,7 +351,7 @@ class yn {
|
|
|
351
351
|
*
|
|
352
352
|
* @type {any}
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
Ss(this, "$$set");
|
|
355
355
|
}
|
|
356
356
|
/** @returns {void} */
|
|
357
357
|
$destroy() {
|
|
@@ -364,7 +364,7 @@ class yn {
|
|
|
364
364
|
* @returns {() => void}
|
|
365
365
|
*/
|
|
366
366
|
$on(r, i) {
|
|
367
|
-
if (!
|
|
367
|
+
if (!tc(i))
|
|
368
368
|
return Te;
|
|
369
369
|
const u = this.$$.callbacks[r] || (this.$$.callbacks[r] = []);
|
|
370
370
|
return u.push(i), () => {
|
|
@@ -377,12 +377,12 @@ class yn {
|
|
|
377
377
|
* @returns {void}
|
|
378
378
|
*/
|
|
379
379
|
$set(r) {
|
|
380
|
-
this.$$set && !
|
|
380
|
+
this.$$set && !Bh(r) && (this.$$.skip_bound = !0, this.$$set(r), this.$$.skip_bound = !1);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
const
|
|
384
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
385
|
-
function
|
|
383
|
+
const ng = "4";
|
|
384
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ng);
|
|
385
|
+
function rg(a) {
|
|
386
386
|
let r, i;
|
|
387
387
|
return {
|
|
388
388
|
c() {
|
|
@@ -399,12 +399,12 @@ function ig(a) {
|
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
|
-
class
|
|
402
|
+
class sc extends yn {
|
|
403
403
|
constructor(r) {
|
|
404
|
-
super(), gn(this, r, null,
|
|
404
|
+
super(), gn(this, r, null, rg, hn, {});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function ig(a) {
|
|
408
408
|
let r, i;
|
|
409
409
|
return {
|
|
410
410
|
c() {
|
|
@@ -421,12 +421,12 @@ function sg(a) {
|
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class ac extends yn {
|
|
425
425
|
constructor(r) {
|
|
426
|
-
super(), gn(this, r, null,
|
|
426
|
+
super(), gn(this, r, null, ig, hn, {});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function sg(a) {
|
|
430
430
|
let r, i;
|
|
431
431
|
return {
|
|
432
432
|
c() {
|
|
@@ -457,7 +457,7 @@ function ag(a) {
|
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function ag(a) {
|
|
461
461
|
let r, i;
|
|
462
462
|
return {
|
|
463
463
|
c() {
|
|
@@ -488,7 +488,7 @@ function og(a) {
|
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function og(a) {
|
|
492
492
|
let r, i;
|
|
493
493
|
return {
|
|
494
494
|
c() {
|
|
@@ -519,7 +519,7 @@ function ug(a) {
|
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function ug(a) {
|
|
523
523
|
let r, i;
|
|
524
524
|
return {
|
|
525
525
|
c() {
|
|
@@ -550,7 +550,7 @@ function lg(a) {
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function lg(a) {
|
|
554
554
|
let r, i;
|
|
555
555
|
return {
|
|
556
556
|
c() {
|
|
@@ -581,7 +581,7 @@ function cg(a) {
|
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function cg(a) {
|
|
585
585
|
let r, i;
|
|
586
586
|
return {
|
|
587
587
|
c() {
|
|
@@ -612,7 +612,7 @@ function fg(a) {
|
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function fg(a) {
|
|
616
616
|
let r, i;
|
|
617
617
|
return {
|
|
618
618
|
c() {
|
|
@@ -643,7 +643,7 @@ function hg(a) {
|
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function hg(a) {
|
|
647
647
|
let r, i, u, l;
|
|
648
648
|
return {
|
|
649
649
|
c() {
|
|
@@ -704,7 +704,7 @@ function Uo(a) {
|
|
|
704
704
|
}
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function gg(a) {
|
|
708
708
|
var q, U;
|
|
709
709
|
let r, i, u, l, f, g, v, m, _ = (
|
|
710
710
|
/*isReverse*/
|
|
@@ -740,17 +740,17 @@ function yg(a) {
|
|
|
740
740
|
1 && (i = null), H & /*feature*/
|
|
741
741
|
1 && (u = null), H & /*feature*/
|
|
742
742
|
1 && (l = null), /*imageUrl*/
|
|
743
|
-
D[5] ?
|
|
743
|
+
D[5] ? hg : (
|
|
744
744
|
/*feature*/
|
|
745
|
-
D[0].address ?
|
|
745
|
+
D[0].address ? fg : (
|
|
746
746
|
/*feature*/
|
|
747
747
|
((ee = D[0].properties) == null ? void 0 : ee.kind) === "road" || /*feature*/
|
|
748
|
-
((Z = D[0].properties) == null ? void 0 : Z.kind) === "road_relation" ?
|
|
749
|
-
D[0].id.startsWith("address.")), i ?
|
|
750
|
-
D[0].id.startsWith("postal_code.")), u ?
|
|
751
|
-
D[0].id.startsWith("poi.")), l ?
|
|
748
|
+
((Z = D[0].properties) == null ? void 0 : Z.kind) === "road_relation" ? cg : (i == null && (i = !!/*feature*/
|
|
749
|
+
D[0].id.startsWith("address.")), i ? lg : (u == null && (u = !!/*feature*/
|
|
750
|
+
D[0].id.startsWith("postal_code.")), u ? ug : (l == null && (l = !!/*feature*/
|
|
751
|
+
D[0].id.startsWith("poi.")), l ? og : (
|
|
752
752
|
/*isReverse*/
|
|
753
|
-
D[7] ?
|
|
753
|
+
D[7] ? ag : sg
|
|
754
754
|
))))
|
|
755
755
|
)
|
|
756
756
|
);
|
|
@@ -833,7 +833,7 @@ function yg(a) {
|
|
|
833
833
|
}
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function yg(a, r, i) {
|
|
837
837
|
var P;
|
|
838
838
|
let u, l, { feature: f } = r, { selected: g = !1 } = r, { showPlaceType: v } = r, { missingIconsCache: m } = r, { iconsBaseUrl: _ } = r;
|
|
839
839
|
const k = (P = f.properties) == null ? void 0 : P.categories;
|
|
@@ -877,9 +877,9 @@ function vg(a, r, i) {
|
|
|
877
877
|
M
|
|
878
878
|
];
|
|
879
879
|
}
|
|
880
|
-
class
|
|
880
|
+
class vg extends yn {
|
|
881
881
|
constructor(r) {
|
|
882
|
-
super(), gn(this, r,
|
|
882
|
+
super(), gn(this, r, yg, gg, hn, {
|
|
883
883
|
feature: 0,
|
|
884
884
|
selected: 1,
|
|
885
885
|
showPlaceType: 2,
|
|
@@ -888,7 +888,7 @@ class dg extends yn {
|
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function dg(a) {
|
|
892
892
|
let r;
|
|
893
893
|
return {
|
|
894
894
|
c() {
|
|
@@ -905,12 +905,12 @@ function mg(a) {
|
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
class
|
|
908
|
+
class mg extends yn {
|
|
909
909
|
constructor(r) {
|
|
910
|
-
super(), gn(this, r, null,
|
|
910
|
+
super(), gn(this, r, null, dg, hn, {});
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function pg(a) {
|
|
914
914
|
let r, i, u;
|
|
915
915
|
return {
|
|
916
916
|
c() {
|
|
@@ -954,18 +954,18 @@ function _g(a) {
|
|
|
954
954
|
}
|
|
955
955
|
};
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function _g(a, r, i) {
|
|
958
958
|
let { displayIn: u } = r;
|
|
959
959
|
return a.$$set = (l) => {
|
|
960
960
|
"displayIn" in l && i(0, u = l.displayIn);
|
|
961
961
|
}, [u];
|
|
962
962
|
}
|
|
963
|
-
class
|
|
963
|
+
class Eg extends yn {
|
|
964
964
|
constructor(r) {
|
|
965
|
-
super(), gn(this, r,
|
|
965
|
+
super(), gn(this, r, _g, pg, hn, { displayIn: 0 });
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function kg(a) {
|
|
969
969
|
let r, i;
|
|
970
970
|
return {
|
|
971
971
|
c() {
|
|
@@ -982,12 +982,12 @@ function xg(a) {
|
|
|
982
982
|
}
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
|
-
class
|
|
985
|
+
class xg extends yn {
|
|
986
986
|
constructor(r) {
|
|
987
|
-
super(), gn(this, r, null,
|
|
987
|
+
super(), gn(this, r, null, kg, hn, {});
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Sg(a) {
|
|
991
991
|
let r, i, u;
|
|
992
992
|
return {
|
|
993
993
|
c() {
|
|
@@ -1004,12 +1004,12 @@ function Ig(a) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
|
-
class
|
|
1007
|
+
class Ig extends yn {
|
|
1008
1008
|
constructor(r) {
|
|
1009
|
-
super(), gn(this, r, null,
|
|
1009
|
+
super(), gn(this, r, null, Sg, hn, {});
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function bg(a, r, i) {
|
|
1013
1013
|
const u = r[1], l = r[0], f = u - l;
|
|
1014
1014
|
return a === u && i ? a : ((a - l) % f + f) % f + l;
|
|
1015
1015
|
}
|
|
@@ -1018,7 +1018,7 @@ function Yo(a) {
|
|
|
1018
1018
|
return r[2] < r[0] && (r[2] += 360), r;
|
|
1019
1019
|
}
|
|
1020
1020
|
let Nr;
|
|
1021
|
-
async function
|
|
1021
|
+
async function wg(a, r, i) {
|
|
1022
1022
|
const u = a == null ? void 0 : a.getCenterAndZoom();
|
|
1023
1023
|
for (const l of r ?? [])
|
|
1024
1024
|
if (!(u && (l.minZoom != null && l.minZoom > u[0] || l.maxZoom != null && l.maxZoom < u[0]))) {
|
|
@@ -1065,7 +1065,7 @@ async function Ng(a, r, i) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
const Wo = /([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})/, Xo = /(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?/i, jo = /(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?/i, Vo = /(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?/i, Ho = /(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?/i;
|
|
1068
|
-
function
|
|
1068
|
+
function Ng(a) {
|
|
1069
1069
|
if (!["DMS", "DM", "DD"].includes(a))
|
|
1070
1070
|
throw new Error("invalid format specified");
|
|
1071
1071
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1082,13 +1082,13 @@ function Lg(a) {
|
|
|
1082
1082
|
function Zo(a, r) {
|
|
1083
1083
|
const i = Math.abs(a), u = Math.floor(i), l = (i - u) * 60;
|
|
1084
1084
|
if (r == "DM") {
|
|
1085
|
-
let v =
|
|
1085
|
+
let v = Lg(l, 3).toFixed(3).padStart(6, "0");
|
|
1086
1086
|
return `${u}° ${v}'`;
|
|
1087
1087
|
}
|
|
1088
1088
|
let f = Math.floor(l), g = ((l - f) * 60).toFixed(1).padStart(4, "0");
|
|
1089
1089
|
return f = f.toString().padStart(2, "0"), `${u}° ${f}' ${g}"`;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function Lg(a, r) {
|
|
1092
1092
|
const i = Math.pow(10, r);
|
|
1093
1093
|
return Math.round((a + Number.EPSILON) * i) / i;
|
|
1094
1094
|
}
|
|
@@ -1169,8 +1169,8 @@ function Ta(a, r) {
|
|
|
1169
1169
|
decimalLatitude: i,
|
|
1170
1170
|
decimalLongitude: u,
|
|
1171
1171
|
decimalCoordinates: `${i},${u}`,
|
|
1172
|
-
closeEnough:
|
|
1173
|
-
toCoordinateFormat:
|
|
1172
|
+
closeEnough: Tg,
|
|
1173
|
+
toCoordinateFormat: Ng
|
|
1174
1174
|
});
|
|
1175
1175
|
} else
|
|
1176
1176
|
throw new Error("coordinates pattern match failed");
|
|
@@ -1198,7 +1198,7 @@ function Ko(a, r) {
|
|
|
1198
1198
|
const i = Math.abs(a - r);
|
|
1199
1199
|
return Number(i.toFixed(6)) <= 1e-5;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Tg(a) {
|
|
1202
1202
|
if (a.includes(",")) {
|
|
1203
1203
|
const r = a.split(",");
|
|
1204
1204
|
if (Number(r[0]) == NaN || Number(r[1]) == NaN)
|
|
@@ -1207,13 +1207,13 @@ function Cg(a) {
|
|
|
1207
1207
|
} else
|
|
1208
1208
|
throw new Error("coords being tested must be separated by a comma");
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const Cg = Object.freeze({
|
|
1211
1211
|
DMS: "DMS",
|
|
1212
1212
|
DM: "DM",
|
|
1213
1213
|
DD: "DD"
|
|
1214
1214
|
});
|
|
1215
|
-
Ta.to =
|
|
1216
|
-
const
|
|
1215
|
+
Ta.to = Cg;
|
|
1216
|
+
const Og = [
|
|
1217
1217
|
{
|
|
1218
1218
|
verbatimCoordinates: "40.123, -74.123",
|
|
1219
1219
|
verbatimLatitude: "40.123",
|
|
@@ -1354,10 +1354,10 @@ const Rg = [
|
|
|
1354
1354
|
verbatimLatitude: "40 7 22.8",
|
|
1355
1355
|
verbatimLongitude: "-74 7 22.8"
|
|
1356
1356
|
}
|
|
1357
|
-
],
|
|
1357
|
+
], Rg = {
|
|
1358
1358
|
decimalLatitude: 40.123,
|
|
1359
1359
|
decimalLongitude: -74.123
|
|
1360
|
-
},
|
|
1360
|
+
}, Mg = [
|
|
1361
1361
|
{
|
|
1362
1362
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1363
1363
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1442,7 +1442,7 @@ const Rg = [
|
|
|
1442
1442
|
decimalLatitude: -18.4,
|
|
1443
1443
|
decimalLongitude: 22.75
|
|
1444
1444
|
}
|
|
1445
|
-
],
|
|
1445
|
+
], Pg = [
|
|
1446
1446
|
// additional formats we've encountered
|
|
1447
1447
|
{
|
|
1448
1448
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
@@ -1571,22 +1571,22 @@ const Rg = [
|
|
|
1571
1571
|
decimalLongitude: 18.95764
|
|
1572
1572
|
}
|
|
1573
1573
|
];
|
|
1574
|
-
function
|
|
1574
|
+
function Ag() {
|
|
1575
1575
|
const a = [];
|
|
1576
|
-
return
|
|
1577
|
-
r.decimalLatitude ? a.push(r) : a.push({ ...r, ...
|
|
1578
|
-
}), [...a, ...
|
|
1576
|
+
return Og.forEach((r) => {
|
|
1577
|
+
r.decimalLatitude ? a.push(r) : a.push({ ...r, ...Rg });
|
|
1578
|
+
}), [...a, ...Mg, ...Pg];
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1581
|
-
Ta.formats =
|
|
1582
|
-
const
|
|
1580
|
+
const Dg = Ag();
|
|
1581
|
+
Ta.formats = Dg.map((a) => a.verbatimCoordinates);
|
|
1582
|
+
const Fg = Ta;
|
|
1583
1583
|
function Qo(a, r, i) {
|
|
1584
1584
|
const u = a.slice();
|
|
1585
1585
|
return u[81] = r[i], u[83] = i, u;
|
|
1586
1586
|
}
|
|
1587
1587
|
function Jo(a) {
|
|
1588
1588
|
let r, i;
|
|
1589
|
-
return r = new
|
|
1589
|
+
return r = new mg({}), {
|
|
1590
1590
|
c() {
|
|
1591
1591
|
cn(r.$$.fragment);
|
|
1592
1592
|
},
|
|
@@ -1606,7 +1606,7 @@ function Jo(a) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
function $o(a) {
|
|
1608
1608
|
let r, i, u, l, f;
|
|
1609
|
-
return i = new
|
|
1609
|
+
return i = new xg({}), {
|
|
1610
1610
|
c() {
|
|
1611
1611
|
r = ke("button"), cn(i.$$.fragment), Y(r, "type", "button"), Y(
|
|
1612
1612
|
r,
|
|
@@ -1654,7 +1654,7 @@ function $o(a) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Bg(a) {
|
|
1658
1658
|
let r, i = [], u = /* @__PURE__ */ new Map(), l, f, g, v = zo(
|
|
1659
1659
|
/*listFeatures*/
|
|
1660
1660
|
a[14]
|
|
@@ -1700,7 +1700,7 @@ function Gg(a) {
|
|
|
1700
1700
|
17880064 && (v = zo(
|
|
1701
1701
|
/*listFeatures*/
|
|
1702
1702
|
_[14]
|
|
1703
|
-
), vi(), i =
|
|
1703
|
+
), vi(), i = eg(i, k, m, 1, _, v, u, r, $h, eu, null, Qo), di());
|
|
1704
1704
|
},
|
|
1705
1705
|
i(_) {
|
|
1706
1706
|
if (!l) {
|
|
@@ -1722,9 +1722,9 @@ function Gg(a) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Gg(a) {
|
|
1726
1726
|
let r, i, u, l, f, g;
|
|
1727
|
-
return i = new
|
|
1727
|
+
return i = new ac({}), {
|
|
1728
1728
|
c() {
|
|
1729
1729
|
r = ke("div"), cn(i.$$.fragment), u = ht(), l = ke("div"), f = ln(
|
|
1730
1730
|
/*noResultsMessage*/
|
|
@@ -1753,7 +1753,7 @@ function qg(a) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function qg(a) {
|
|
1757
1757
|
let r = "", i;
|
|
1758
1758
|
return {
|
|
1759
1759
|
c() {
|
|
@@ -1770,9 +1770,9 @@ function zg(a) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function zg(a) {
|
|
1774
1774
|
let r, i, u, l, f, g, v, m, _, k, p;
|
|
1775
|
-
return i = new
|
|
1775
|
+
return i = new ac({}), m = new sc({}), {
|
|
1776
1776
|
c() {
|
|
1777
1777
|
r = ke("div"), cn(i.$$.fragment), u = ht(), l = ke("div"), f = ln(
|
|
1778
1778
|
/*errorMessage*/
|
|
@@ -1826,7 +1826,7 @@ function eu(a, r) {
|
|
|
1826
1826
|
)
|
|
1827
1827
|
);
|
|
1828
1828
|
}
|
|
1829
|
-
return u = new
|
|
1829
|
+
return u = new vg({
|
|
1830
1830
|
props: {
|
|
1831
1831
|
feature: (
|
|
1832
1832
|
/*feature*/
|
|
@@ -1854,7 +1854,7 @@ function eu(a, r) {
|
|
|
1854
1854
|
key: a,
|
|
1855
1855
|
first: null,
|
|
1856
1856
|
c() {
|
|
1857
|
-
i =
|
|
1857
|
+
i = Yh(), cn(u.$$.fragment), this.first = i;
|
|
1858
1858
|
},
|
|
1859
1859
|
m(v, m) {
|
|
1860
1860
|
Re(v, i, m), Qt(u, v, m), l = !0;
|
|
@@ -1884,9 +1884,9 @@ function eu(a, r) {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function Ug(a) {
|
|
1888
1888
|
let r, i, u, l, f, g, v, m, _, k, p, x, S, b, R, L, T, M, P, A, O, z = !1;
|
|
1889
|
-
f = new
|
|
1889
|
+
f = new Ig({}), p = new sc({});
|
|
1890
1890
|
let q = (
|
|
1891
1891
|
/*abortController*/
|
|
1892
1892
|
a[19] && Jo()
|
|
@@ -1897,13 +1897,13 @@ function Yg(a) {
|
|
|
1897
1897
|
const D = (
|
|
1898
1898
|
/*#slots*/
|
|
1899
1899
|
a[59].default
|
|
1900
|
-
), H =
|
|
1900
|
+
), H = Gh(
|
|
1901
1901
|
D,
|
|
1902
1902
|
a,
|
|
1903
1903
|
/*$$scope*/
|
|
1904
1904
|
a[58],
|
|
1905
1905
|
null
|
|
1906
|
-
), ee = [
|
|
1906
|
+
), ee = [zg, qg, Gg, Bg], Z = [];
|
|
1907
1907
|
function ae(F, K) {
|
|
1908
1908
|
var ie, de;
|
|
1909
1909
|
return (
|
|
@@ -2002,7 +2002,7 @@ function Yg(a) {
|
|
|
2002
2002
|
/*click_handler_1*/
|
|
2003
2003
|
a[66]
|
|
2004
2004
|
),
|
|
2005
|
-
et(i, "submit",
|
|
2005
|
+
et(i, "submit", Wh(
|
|
2006
2006
|
/*handleOnSubmit*/
|
|
2007
2007
|
a[21]
|
|
2008
2008
|
))
|
|
@@ -2048,19 +2048,19 @@ function Yg(a) {
|
|
|
2048
2048
|
32 && Be(U, 1)) : (U = $o(F), U.c(), Be(U, 1), U.m(u, b)) : U && (vi(), Ye(U, 1, 1, () => {
|
|
2049
2049
|
U = null;
|
|
2050
2050
|
}), di()), H && H.p && (!P || K[1] & /*$$scope*/
|
|
2051
|
-
134217728) &&
|
|
2051
|
+
134217728) && zh(
|
|
2052
2052
|
H,
|
|
2053
2053
|
D,
|
|
2054
2054
|
F,
|
|
2055
2055
|
/*$$scope*/
|
|
2056
2056
|
F[58],
|
|
2057
|
-
P ?
|
|
2057
|
+
P ? qh(
|
|
2058
2058
|
D,
|
|
2059
2059
|
/*$$scope*/
|
|
2060
2060
|
F[58],
|
|
2061
2061
|
K,
|
|
2062
2062
|
null
|
|
2063
|
-
) :
|
|
2063
|
+
) : Uh(
|
|
2064
2064
|
/*$$scope*/
|
|
2065
2065
|
F[58]
|
|
2066
2066
|
),
|
|
@@ -2093,8 +2093,8 @@ function Yg(a) {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
};
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2097
|
-
let u, { $$slots: l = {}, $$scope: f } = r, { class: g = void 0 } = r, { apiKey: v } = r, { bbox: m = void 0 } = r, { clearButtonTitle: _ = "clear" } = r, { clearOnBlur: k = !1 } = r, { collapsed: p = !1 } = r, { country: x = void 0 } = r, { debounceSearch: S = 200 } = r, { enableReverse: b = !1 } = r, { errorMessage: R = "Something went wrong…" } = r, { filter: L = () => !0 } = r, { flyTo: T = !0 } = r, { fuzzyMatch: M = !0 } = r, { language: P = void 0 } = r, { limit: A = void 0 } = r, { mapController: O = void 0 } = r, { minLength: z = 2 } = r, { noResultsMessage: q = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = r, { placeholder: U = "Search" } = r, { proximity: D = [{ type: "server-geolocation" }] } = r, { reverseActive: H = b === "always" } = r, { reverseButtonTitle: ee = "toggle reverse geocoding" } = r, { searchValue: Z = "" } = r, { showFullGeometry: ae = !0 } = r, { showPlaceType: F = "ifNeeded" } = r, { showResultsWhileTyping: K = !0 } = r, { selectFirst: ie = !0 } = r, { flyToSelected: de = !1 } = r, { markerOnSelected: Me = !0 } = r, { types: Se = void 0 } = r, { excludeTypes: Q = !1 } = r, { zoom: Fe = 16 } = r, { maxZoom: we = 18 } = r, { apiUrl: ze = "https://api.maptiler.com/geocoding" } = r, { fetchParameters: fe = {} } = r, { iconsBaseUrl: gt = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.3.0-
|
|
2096
|
+
function Yg(a, r, i) {
|
|
2097
|
+
let u, { $$slots: l = {}, $$scope: f } = r, { class: g = void 0 } = r, { apiKey: v } = r, { bbox: m = void 0 } = r, { clearButtonTitle: _ = "clear" } = r, { clearOnBlur: k = !1 } = r, { collapsed: p = !1 } = r, { country: x = void 0 } = r, { debounceSearch: S = 200 } = r, { enableReverse: b = !1 } = r, { errorMessage: R = "Something went wrong…" } = r, { filter: L = () => !0 } = r, { flyTo: T = !0 } = r, { fuzzyMatch: M = !0 } = r, { language: P = void 0 } = r, { limit: A = void 0 } = r, { mapController: O = void 0 } = r, { minLength: z = 2 } = r, { noResultsMessage: q = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = r, { placeholder: U = "Search" } = r, { proximity: D = [{ type: "server-geolocation" }] } = r, { reverseActive: H = b === "always" } = r, { reverseButtonTitle: ee = "toggle reverse geocoding" } = r, { searchValue: Z = "" } = r, { showFullGeometry: ae = !0 } = r, { showPlaceType: F = "ifNeeded" } = r, { showResultsWhileTyping: K = !0 } = r, { selectFirst: ie = !0 } = r, { flyToSelected: de = !1 } = r, { markerOnSelected: Me = !0 } = r, { types: Se = void 0 } = r, { excludeTypes: Q = !1 } = r, { zoom: Fe = 16 } = r, { maxZoom: we = 18 } = r, { apiUrl: ze = "https://api.maptiler.com/geocoding" } = r, { fetchParameters: fe = {} } = r, { iconsBaseUrl: gt = "https://cdn.maptiler.com/maptiler-geocoding-control/v1.3.0-rc3/icons/" } = r, { adjustUrlQuery: vr = () => {
|
|
2098
2098
|
} } = r;
|
|
2099
2099
|
function Hr() {
|
|
2100
2100
|
tt.focus();
|
|
@@ -2114,8 +2114,8 @@ function Wg(a, r, i) {
|
|
|
2114
2114
|
i(54, Ne = []), i(55, oe = void 0);
|
|
2115
2115
|
}
|
|
2116
2116
|
let I = !1, le, Ne, oe, dr = "", tt, Ie = -1, W, pn = [], Pt, nt, An, ue;
|
|
2117
|
-
const _n = /* @__PURE__ */ new Set(), st =
|
|
2118
|
-
|
|
2117
|
+
const _n = /* @__PURE__ */ new Set(), st = Hh();
|
|
2118
|
+
Vh(() => {
|
|
2119
2119
|
O && (O.setEventHandler(void 0), O.indicateReverse(!1), O.setSelectedMarker(-1), O.setMarkers(void 0, void 0));
|
|
2120
2120
|
});
|
|
2121
2121
|
function Dn(G) {
|
|
@@ -2130,7 +2130,7 @@ function Wg(a, r, i) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
function te(G) {
|
|
2132
2132
|
try {
|
|
2133
|
-
return
|
|
2133
|
+
return Fg(G, 6);
|
|
2134
2134
|
} catch {
|
|
2135
2135
|
return !1;
|
|
2136
2136
|
}
|
|
@@ -2142,7 +2142,7 @@ function Wg(a, r, i) {
|
|
|
2142
2142
|
try {
|
|
2143
2143
|
const he = te(G), Qe = new URLSearchParams();
|
|
2144
2144
|
if (P !== void 0 && Qe.set("language", Array.isArray(P) ? P.join(",") : P ?? ""), Se && Qe.set("types", Se.join(",")), Q && Qe.set("excludeTypes", String(Q)), m && Qe.set("bbox", m.map((Gn) => Gn.toFixed(6)).join(",")), x && Qe.set("country", Array.isArray(x) ? x.join(",") : x), !Le && !he) {
|
|
2145
|
-
const Gn = await
|
|
2145
|
+
const Gn = await wg(O, D, Ke);
|
|
2146
2146
|
Gn && Qe.set("proximity", Gn), (Ge || !K) && Qe.set("autocomplete", "false"), Qe.set("fuzzyMatch", String(M));
|
|
2147
2147
|
}
|
|
2148
2148
|
A !== void 0 && (!he || (Se == null ? void 0 : Se.length) === 1) && Qe.set("limit", String(A)), Qe.set("key", v), vr(Qe);
|
|
@@ -2195,9 +2195,9 @@ function Wg(a, r, i) {
|
|
|
2195
2195
|
O && Ne.length > 0 && (oe && G[0] === G[2] && G[1] === G[3] ? O.flyTo(oe.center, Fe) : O.fitBounds(Yo(G), 50, we));
|
|
2196
2196
|
}
|
|
2197
2197
|
function se(G) {
|
|
2198
|
-
i(0, H = b === "always"), i(14, le = void 0), i(55, oe = void 0), i(15, Ie = -1), Zr(G[1].toFixed(6) + ", " +
|
|
2198
|
+
i(0, H = b === "always"), i(14, le = void 0), i(55, oe = void 0), i(15, Ie = -1), Zr(G[1].toFixed(6) + ", " + bg(G[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function rs(G) {
|
|
2201
2201
|
if (!le)
|
|
2202
2202
|
return;
|
|
2203
2203
|
let Le = G.key === "ArrowDown" ? 1 : G.key === "ArrowUp" ? -1 : 0;
|
|
@@ -2221,17 +2221,17 @@ function Wg(a, r, i) {
|
|
|
2221
2221
|
i(55, oe = G), i(1, Z = G.place_name), i(15, Ie = -1);
|
|
2222
2222
|
}
|
|
2223
2223
|
const ne = () => tt.focus();
|
|
2224
|
-
function
|
|
2224
|
+
function is(G) {
|
|
2225
2225
|
Zs[G ? "unshift" : "push"](() => {
|
|
2226
2226
|
tt = G, i(17, tt);
|
|
2227
2227
|
});
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function ss() {
|
|
2230
2230
|
Z = this.value, i(1, Z), i(13, I), i(27, k);
|
|
2231
2231
|
}
|
|
2232
2232
|
const pr = () => i(13, I = !0), rt = () => i(13, I = !1), kn = () => at(), yt = () => {
|
|
2233
2233
|
i(1, Z = ""), tt.focus();
|
|
2234
|
-
}, Kr = () => i(0, H = !H), Fn = () => i(18, W = void 0),
|
|
2234
|
+
}, Kr = () => i(0, H = !H), Fn = () => i(18, W = void 0), as = (G) => i(15, Ie = G), Qr = (G) => mr(G), Wt = () => {
|
|
2235
2235
|
ie || i(15, Ie = -1);
|
|
2236
2236
|
}, V = () => {
|
|
2237
2237
|
};
|
|
@@ -2316,7 +2316,7 @@ function Wg(a, r, i) {
|
|
|
2316
2316
|
Pt,
|
|
2317
2317
|
_n,
|
|
2318
2318
|
Dn,
|
|
2319
|
-
|
|
2319
|
+
rs,
|
|
2320
2320
|
at,
|
|
2321
2321
|
mr,
|
|
2322
2322
|
v,
|
|
@@ -2355,27 +2355,27 @@ function Wg(a, r, i) {
|
|
|
2355
2355
|
f,
|
|
2356
2356
|
l,
|
|
2357
2357
|
ne,
|
|
2358
|
-
rs,
|
|
2359
2358
|
is,
|
|
2359
|
+
ss,
|
|
2360
2360
|
pr,
|
|
2361
2361
|
rt,
|
|
2362
2362
|
kn,
|
|
2363
2363
|
yt,
|
|
2364
2364
|
Kr,
|
|
2365
2365
|
Fn,
|
|
2366
|
-
|
|
2366
|
+
as,
|
|
2367
2367
|
Qr,
|
|
2368
2368
|
Wt,
|
|
2369
2369
|
V
|
|
2370
2370
|
];
|
|
2371
2371
|
}
|
|
2372
|
-
let
|
|
2372
|
+
let Wg = class extends yn {
|
|
2373
2373
|
constructor(r) {
|
|
2374
2374
|
super(), gn(
|
|
2375
2375
|
this,
|
|
2376
2376
|
r,
|
|
2377
|
-
Wg,
|
|
2378
2377
|
Yg,
|
|
2378
|
+
Ug,
|
|
2379
2379
|
hn,
|
|
2380
2380
|
{
|
|
2381
2381
|
class: 2,
|
|
@@ -2441,11 +2441,11 @@ let Xg = class extends yn {
|
|
|
2441
2441
|
return this.$$.ctx[53];
|
|
2442
2442
|
}
|
|
2443
2443
|
};
|
|
2444
|
-
var
|
|
2445
|
-
function
|
|
2444
|
+
var Qi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2445
|
+
function oc(a) {
|
|
2446
2446
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2448
|
+
function Xg(a) {
|
|
2449
2449
|
if (a.__esModule)
|
|
2450
2450
|
return a;
|
|
2451
2451
|
var r = a.default;
|
|
@@ -2466,17 +2466,17 @@ function jg(a) {
|
|
|
2466
2466
|
});
|
|
2467
2467
|
}), i;
|
|
2468
2468
|
}
|
|
2469
|
-
var tu = Object.prototype.toString,
|
|
2469
|
+
var tu = Object.prototype.toString, uc = function(r) {
|
|
2470
2470
|
var i = tu.call(r), u = i === "[object Arguments]";
|
|
2471
2471
|
return u || (u = i !== "[object Array]" && r !== null && typeof r == "object" && typeof r.length == "number" && r.length >= 0 && tu.call(r.callee) === "[object Function]"), u;
|
|
2472
|
-
},
|
|
2473
|
-
function
|
|
2472
|
+
}, ws, nu;
|
|
2473
|
+
function jg() {
|
|
2474
2474
|
if (nu)
|
|
2475
|
-
return
|
|
2475
|
+
return ws;
|
|
2476
2476
|
nu = 1;
|
|
2477
2477
|
var a;
|
|
2478
2478
|
if (!Object.keys) {
|
|
2479
|
-
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, u =
|
|
2479
|
+
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, u = uc, l = Object.prototype.propertyIsEnumerable, f = !l.call({ toString: null }, "toString"), g = l.call(function() {
|
|
2480
2480
|
}, "prototype"), v = [
|
|
2481
2481
|
"toString",
|
|
2482
2482
|
"toLocaleString",
|
|
@@ -2556,11 +2556,11 @@ function Vg() {
|
|
|
2556
2556
|
return M;
|
|
2557
2557
|
};
|
|
2558
2558
|
}
|
|
2559
|
-
return
|
|
2559
|
+
return ws = a, ws;
|
|
2560
2560
|
}
|
|
2561
|
-
var
|
|
2561
|
+
var Vg = Array.prototype.slice, Hg = uc, ru = Object.keys, mi = ru ? function(r) {
|
|
2562
2562
|
return ru(r);
|
|
2563
|
-
} :
|
|
2563
|
+
} : jg(), iu = Object.keys;
|
|
2564
2564
|
mi.shim = function() {
|
|
2565
2565
|
if (Object.keys) {
|
|
2566
2566
|
var r = function() {
|
|
@@ -2568,13 +2568,13 @@ mi.shim = function() {
|
|
|
2568
2568
|
return i && i.length === arguments.length;
|
|
2569
2569
|
}(1, 2);
|
|
2570
2570
|
r || (Object.keys = function(u) {
|
|
2571
|
-
return
|
|
2571
|
+
return Hg(u) ? iu(Vg.call(u)) : iu(u);
|
|
2572
2572
|
});
|
|
2573
2573
|
} else
|
|
2574
2574
|
Object.keys = mi;
|
|
2575
2575
|
return Object.keys || mi;
|
|
2576
2576
|
};
|
|
2577
|
-
var Ca = mi,
|
|
2577
|
+
var Ca = mi, Zg = Error, Kg = EvalError, Qg = RangeError, Jg = ReferenceError, lc = SyntaxError, vn = TypeError, $g = URIError, Ji = function() {
|
|
2578
2578
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2579
2579
|
return !1;
|
|
2580
2580
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2597,32 +2597,32 @@ var Ca = mi, Kg = Error, Qg = EvalError, Jg = RangeError, $g = ReferenceError, c
|
|
|
2597
2597
|
return !1;
|
|
2598
2598
|
}
|
|
2599
2599
|
return !0;
|
|
2600
|
-
}, su = typeof Symbol < "u" && Symbol,
|
|
2601
|
-
return typeof su != "function" || typeof Symbol != "function" || typeof su("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
2602
|
-
},
|
|
2600
|
+
}, su = typeof Symbol < "u" && Symbol, ey = Ji, Oa = function() {
|
|
2601
|
+
return typeof su != "function" || typeof Symbol != "function" || typeof su("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ey();
|
|
2602
|
+
}, Ns = {
|
|
2603
2603
|
__proto__: null,
|
|
2604
2604
|
foo: {}
|
|
2605
|
-
},
|
|
2606
|
-
return { __proto__:
|
|
2607
|
-
},
|
|
2605
|
+
}, ty = Object, ny = function() {
|
|
2606
|
+
return { __proto__: Ns }.foo === Ns.foo && !(Ns instanceof ty);
|
|
2607
|
+
}, ry = "Function.prototype.bind called on incompatible ", iy = Object.prototype.toString, sy = Math.max, ay = "[object Function]", au = function(r, i) {
|
|
2608
2608
|
for (var u = [], l = 0; l < r.length; l += 1)
|
|
2609
2609
|
u[l] = r[l];
|
|
2610
2610
|
for (var f = 0; f < i.length; f += 1)
|
|
2611
2611
|
u[f + r.length] = i[f];
|
|
2612
2612
|
return u;
|
|
2613
|
-
},
|
|
2613
|
+
}, oy = function(r, i) {
|
|
2614
2614
|
for (var u = [], l = i, f = 0; l < r.length; l += 1, f += 1)
|
|
2615
2615
|
u[f] = r[l];
|
|
2616
2616
|
return u;
|
|
2617
|
-
},
|
|
2617
|
+
}, uy = function(a, r) {
|
|
2618
2618
|
for (var i = "", u = 0; u < a.length; u += 1)
|
|
2619
2619
|
i += a[u], u + 1 < a.length && (i += r);
|
|
2620
2620
|
return i;
|
|
2621
|
-
},
|
|
2621
|
+
}, ly = function(r) {
|
|
2622
2622
|
var i = this;
|
|
2623
|
-
if (typeof i != "function" ||
|
|
2624
|
-
throw new TypeError(
|
|
2625
|
-
for (var u =
|
|
2623
|
+
if (typeof i != "function" || iy.apply(i) !== ay)
|
|
2624
|
+
throw new TypeError(ry + i);
|
|
2625
|
+
for (var u = oy(arguments, 1), l, f = function() {
|
|
2626
2626
|
if (this instanceof l) {
|
|
2627
2627
|
var k = i.apply(
|
|
2628
2628
|
this,
|
|
@@ -2634,17 +2634,17 @@ var Ca = mi, Kg = Error, Qg = EvalError, Jg = RangeError, $g = ReferenceError, c
|
|
|
2634
2634
|
r,
|
|
2635
2635
|
au(u, arguments)
|
|
2636
2636
|
);
|
|
2637
|
-
}, g =
|
|
2637
|
+
}, g = sy(0, i.length - u.length), v = [], m = 0; m < g; m++)
|
|
2638
2638
|
v[m] = "$" + m;
|
|
2639
|
-
if (l = Function("binder", "return function (" +
|
|
2639
|
+
if (l = Function("binder", "return function (" + uy(v, ",") + "){ return binder.apply(this,arguments); }")(f), i.prototype) {
|
|
2640
2640
|
var _ = function() {
|
|
2641
2641
|
};
|
|
2642
2642
|
_.prototype = i.prototype, l.prototype = new _(), _.prototype = null;
|
|
2643
2643
|
}
|
|
2644
2644
|
return l;
|
|
2645
|
-
},
|
|
2645
|
+
}, cy = ly, Ra = Function.prototype.bind || cy, fy = Function.prototype.call, hy = Object.prototype.hasOwnProperty, gy = Ra, cc = gy.call(fy, hy), ye, yy = Zg, vy = Kg, dy = Qg, my = Jg, rr = lc, nr = vn, py = $g, fc = Function, Ls = function(a) {
|
|
2646
2646
|
try {
|
|
2647
|
-
return
|
|
2647
|
+
return fc('"use strict"; return (' + a + ").constructor;")();
|
|
2648
2648
|
} catch {
|
|
2649
2649
|
}
|
|
2650
2650
|
}, Tn = Object.getOwnPropertyDescriptor;
|
|
@@ -2654,21 +2654,21 @@ if (Tn)
|
|
|
2654
2654
|
} catch {
|
|
2655
2655
|
Tn = null;
|
|
2656
2656
|
}
|
|
2657
|
-
var
|
|
2657
|
+
var Ts = function() {
|
|
2658
2658
|
throw new nr();
|
|
2659
|
-
},
|
|
2659
|
+
}, _y = Tn ? function() {
|
|
2660
2660
|
try {
|
|
2661
|
-
return arguments.callee,
|
|
2661
|
+
return arguments.callee, Ts;
|
|
2662
2662
|
} catch {
|
|
2663
2663
|
try {
|
|
2664
2664
|
return Tn(arguments, "callee").get;
|
|
2665
2665
|
} catch {
|
|
2666
|
-
return
|
|
2666
|
+
return Ts;
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
|
-
}() :
|
|
2669
|
+
}() : Ts, Zn = Oa(), Ey = ny(), Ue = Object.getPrototypeOf || (Ey ? function(a) {
|
|
2670
2670
|
return a.__proto__;
|
|
2671
|
-
} : null), $n = {},
|
|
2671
|
+
} : null), $n = {}, ky = typeof Uint8Array > "u" || !Ue ? ye : Ue(Uint8Array), Cn = {
|
|
2672
2672
|
__proto__: null,
|
|
2673
2673
|
"%AggregateError%": typeof AggregateError > "u" ? ye : AggregateError,
|
|
2674
2674
|
"%Array%": Array,
|
|
@@ -2690,14 +2690,14 @@ var Ls = function() {
|
|
|
2690
2690
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2691
2691
|
"%encodeURI%": encodeURI,
|
|
2692
2692
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2693
|
-
"%Error%":
|
|
2693
|
+
"%Error%": yy,
|
|
2694
2694
|
"%eval%": eval,
|
|
2695
2695
|
// eslint-disable-line no-eval
|
|
2696
|
-
"%EvalError%":
|
|
2696
|
+
"%EvalError%": vy,
|
|
2697
2697
|
"%Float32Array%": typeof Float32Array > "u" ? ye : Float32Array,
|
|
2698
2698
|
"%Float64Array%": typeof Float64Array > "u" ? ye : Float64Array,
|
|
2699
2699
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? ye : FinalizationRegistry,
|
|
2700
|
-
"%Function%":
|
|
2700
|
+
"%Function%": fc,
|
|
2701
2701
|
"%GeneratorFunction%": $n,
|
|
2702
2702
|
"%Int8Array%": typeof Int8Array > "u" ? ye : Int8Array,
|
|
2703
2703
|
"%Int16Array%": typeof Int16Array > "u" ? ye : Int16Array,
|
|
@@ -2715,8 +2715,8 @@ var Ls = function() {
|
|
|
2715
2715
|
"%parseInt%": parseInt,
|
|
2716
2716
|
"%Promise%": typeof Promise > "u" ? ye : Promise,
|
|
2717
2717
|
"%Proxy%": typeof Proxy > "u" ? ye : Proxy,
|
|
2718
|
-
"%RangeError%":
|
|
2719
|
-
"%ReferenceError%":
|
|
2718
|
+
"%RangeError%": dy,
|
|
2719
|
+
"%ReferenceError%": my,
|
|
2720
2720
|
"%Reflect%": typeof Reflect > "u" ? ye : Reflect,
|
|
2721
2721
|
"%RegExp%": RegExp,
|
|
2722
2722
|
"%Set%": typeof Set > "u" ? ye : Set,
|
|
@@ -2726,14 +2726,14 @@ var Ls = function() {
|
|
|
2726
2726
|
"%StringIteratorPrototype%": Zn && Ue ? Ue(""[Symbol.iterator]()) : ye,
|
|
2727
2727
|
"%Symbol%": Zn ? Symbol : ye,
|
|
2728
2728
|
"%SyntaxError%": rr,
|
|
2729
|
-
"%ThrowTypeError%":
|
|
2730
|
-
"%TypedArray%":
|
|
2729
|
+
"%ThrowTypeError%": _y,
|
|
2730
|
+
"%TypedArray%": ky,
|
|
2731
2731
|
"%TypeError%": nr,
|
|
2732
2732
|
"%Uint8Array%": typeof Uint8Array > "u" ? ye : Uint8Array,
|
|
2733
2733
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? ye : Uint8ClampedArray,
|
|
2734
2734
|
"%Uint16Array%": typeof Uint16Array > "u" ? ye : Uint16Array,
|
|
2735
2735
|
"%Uint32Array%": typeof Uint32Array > "u" ? ye : Uint32Array,
|
|
2736
|
-
"%URIError%":
|
|
2736
|
+
"%URIError%": py,
|
|
2737
2737
|
"%WeakMap%": typeof WeakMap > "u" ? ye : WeakMap,
|
|
2738
2738
|
"%WeakRef%": typeof WeakRef > "u" ? ye : WeakRef,
|
|
2739
2739
|
"%WeakSet%": typeof WeakSet > "u" ? ye : WeakSet
|
|
@@ -2742,17 +2742,17 @@ if (Ue)
|
|
|
2742
2742
|
try {
|
|
2743
2743
|
null.error;
|
|
2744
2744
|
} catch (a) {
|
|
2745
|
-
var
|
|
2746
|
-
Cn["%Error.prototype%"] =
|
|
2745
|
+
var xy = Ue(Ue(a));
|
|
2746
|
+
Cn["%Error.prototype%"] = xy;
|
|
2747
2747
|
}
|
|
2748
|
-
var
|
|
2748
|
+
var Sy = function a(r) {
|
|
2749
2749
|
var i;
|
|
2750
2750
|
if (r === "%AsyncFunction%")
|
|
2751
|
-
i =
|
|
2751
|
+
i = Ls("async function () {}");
|
|
2752
2752
|
else if (r === "%GeneratorFunction%")
|
|
2753
|
-
i =
|
|
2753
|
+
i = Ls("function* () {}");
|
|
2754
2754
|
else if (r === "%AsyncGeneratorFunction%")
|
|
2755
|
-
i =
|
|
2755
|
+
i = Ls("async function* () {}");
|
|
2756
2756
|
else if (r === "%AsyncGenerator%") {
|
|
2757
2757
|
var u = a("%AsyncGeneratorFunction%");
|
|
2758
2758
|
u && (i = u.prototype);
|
|
@@ -2814,21 +2814,21 @@ var Iy = function a(r) {
|
|
|
2814
2814
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2815
2815
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2816
2816
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2817
|
-
}, jr = Ra,
|
|
2818
|
-
var i =
|
|
2817
|
+
}, jr = Ra, Li = cc, Iy = jr.call(Function.call, Array.prototype.concat), by = jr.call(Function.apply, Array.prototype.splice), uu = jr.call(Function.call, String.prototype.replace), Ti = jr.call(Function.call, String.prototype.slice), wy = jr.call(Function.call, RegExp.prototype.exec), Ny = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ly = /\\(\\)?/g, Ty = function(r) {
|
|
2818
|
+
var i = Ti(r, 0, 1), u = Ti(r, -1);
|
|
2819
2819
|
if (i === "%" && u !== "%")
|
|
2820
2820
|
throw new rr("invalid intrinsic syntax, expected closing `%`");
|
|
2821
2821
|
if (u === "%" && i !== "%")
|
|
2822
2822
|
throw new rr("invalid intrinsic syntax, expected opening `%`");
|
|
2823
2823
|
var l = [];
|
|
2824
|
-
return uu(r,
|
|
2825
|
-
l[l.length] = v ? uu(m,
|
|
2824
|
+
return uu(r, Ny, function(f, g, v, m) {
|
|
2825
|
+
l[l.length] = v ? uu(m, Ly, "$1") : g || f;
|
|
2826
2826
|
}), l;
|
|
2827
|
-
},
|
|
2827
|
+
}, Cy = function(r, i) {
|
|
2828
2828
|
var u = r, l;
|
|
2829
|
-
if (
|
|
2829
|
+
if (Li(ou, u) && (l = ou[u], u = "%" + l[0] + "%"), Li(Cn, u)) {
|
|
2830
2830
|
var f = Cn[u];
|
|
2831
|
-
if (f === $n && (f =
|
|
2831
|
+
if (f === $n && (f = Sy(u)), typeof f > "u" && !i)
|
|
2832
2832
|
throw new nr("intrinsic " + r + " exists, but is not available. Please file an issue!");
|
|
2833
2833
|
return {
|
|
2834
2834
|
alias: l,
|
|
@@ -2842,15 +2842,15 @@ var Iy = function a(r) {
|
|
|
2842
2842
|
throw new nr("intrinsic name must be a non-empty string");
|
|
2843
2843
|
if (arguments.length > 1 && typeof i != "boolean")
|
|
2844
2844
|
throw new nr('"allowMissing" argument must be a boolean');
|
|
2845
|
-
if (
|
|
2845
|
+
if (wy(/^%?[^%]*%?$/, r) === null)
|
|
2846
2846
|
throw new rr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2847
|
-
var u =
|
|
2848
|
-
_ && (l = _[0],
|
|
2847
|
+
var u = Ty(r), l = u.length > 0 ? u[0] : "", f = Cy("%" + l + "%", i), g = f.name, v = f.value, m = !1, _ = f.alias;
|
|
2848
|
+
_ && (l = _[0], by(u, Iy([0, 1], _)));
|
|
2849
2849
|
for (var k = 1, p = !0; k < u.length; k += 1) {
|
|
2850
|
-
var x = u[k], S =
|
|
2850
|
+
var x = u[k], S = Ti(x, 0, 1), b = Ti(x, -1);
|
|
2851
2851
|
if ((S === '"' || S === "'" || S === "`" || b === '"' || b === "'" || b === "`") && S !== b)
|
|
2852
2852
|
throw new rr("property names with quotes must have matching quotes");
|
|
2853
|
-
if ((x === "constructor" || !p) && (m = !0), l += "." + x, g = "%" + l + "%",
|
|
2853
|
+
if ((x === "constructor" || !p) && (m = !0), l += "." + x, g = "%" + l + "%", Li(Cn, g))
|
|
2854
2854
|
v = Cn[g];
|
|
2855
2855
|
else if (v != null) {
|
|
2856
2856
|
if (!(x in v)) {
|
|
@@ -2862,33 +2862,26 @@ var Iy = function a(r) {
|
|
|
2862
2862
|
var R = Tn(v, x);
|
|
2863
2863
|
p = !!R, p && "get" in R && !("originalValue" in R.get) ? v = R.get : v = v[x];
|
|
2864
2864
|
} else
|
|
2865
|
-
p =
|
|
2865
|
+
p = Li(v, x), v = v[x];
|
|
2866
2866
|
p && !m && (Cn[g] = v);
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
2869
|
return v;
|
|
2870
|
-
},
|
|
2871
|
-
function Ma() {
|
|
2872
|
-
if (lu)
|
|
2873
|
-
return Ts;
|
|
2874
|
-
lu = 1;
|
|
2875
|
-
var a = Ut, r = a("%Object.defineProperty%", !0) || !1;
|
|
2876
|
-
if (r)
|
|
2877
|
-
try {
|
|
2878
|
-
r({}, "a", { value: 1 });
|
|
2879
|
-
} catch {
|
|
2880
|
-
r = !1;
|
|
2881
|
-
}
|
|
2882
|
-
return Ts = r, Ts;
|
|
2883
|
-
}
|
|
2884
|
-
var Ry = Ut, pi = Ry("%Object.getOwnPropertyDescriptor%", !0);
|
|
2870
|
+
}, Oy = Ut, pi = Oy("%Object.defineProperty%", !0) || !1;
|
|
2885
2871
|
if (pi)
|
|
2886
2872
|
try {
|
|
2887
|
-
pi(
|
|
2873
|
+
pi({}, "a", { value: 1 });
|
|
2874
|
+
} catch {
|
|
2875
|
+
pi = !1;
|
|
2876
|
+
}
|
|
2877
|
+
var Ma = pi, Ry = Ut, _i = Ry("%Object.getOwnPropertyDescriptor%", !0);
|
|
2878
|
+
if (_i)
|
|
2879
|
+
try {
|
|
2880
|
+
_i([], "length");
|
|
2888
2881
|
} catch {
|
|
2889
|
-
|
|
2882
|
+
_i = null;
|
|
2890
2883
|
}
|
|
2891
|
-
var Pa =
|
|
2884
|
+
var Pa = _i, lu = Ma, My = lc, Kn = vn, cu = Pa, Aa = function(r, i, u) {
|
|
2892
2885
|
if (!r || typeof r != "object" && typeof r != "function")
|
|
2893
2886
|
throw new Kn("`obj` must be an object or a function`");
|
|
2894
2887
|
if (typeof i != "string" && typeof i != "symbol")
|
|
@@ -2901,9 +2894,9 @@ var Pa = pi, cu = Ma(), My = cc, Kn = vn, fu = Pa, Aa = function(r, i, u) {
|
|
|
2901
2894
|
throw new Kn("`nonConfigurable`, if provided, must be a boolean or null");
|
|
2902
2895
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
2903
2896
|
throw new Kn("`loose`, if provided, must be a boolean");
|
|
2904
|
-
var l = arguments.length > 3 ? arguments[3] : null, f = arguments.length > 4 ? arguments[4] : null, g = arguments.length > 5 ? arguments[5] : null, v = arguments.length > 6 ? arguments[6] : !1, m = !!
|
|
2905
|
-
if (
|
|
2906
|
-
|
|
2897
|
+
var l = arguments.length > 3 ? arguments[3] : null, f = arguments.length > 4 ? arguments[4] : null, g = arguments.length > 5 ? arguments[5] : null, v = arguments.length > 6 ? arguments[6] : !1, m = !!cu && cu(r, i);
|
|
2898
|
+
if (lu)
|
|
2899
|
+
lu(r, i, {
|
|
2907
2900
|
configurable: g === null && m ? m.configurable : !g,
|
|
2908
2901
|
enumerable: l === null && m ? m.enumerable : !l,
|
|
2909
2902
|
value: u,
|
|
@@ -2913,10 +2906,10 @@ var Pa = pi, cu = Ma(), My = cc, Kn = vn, fu = Pa, Aa = function(r, i, u) {
|
|
|
2913
2906
|
r[i] = u;
|
|
2914
2907
|
else
|
|
2915
2908
|
throw new My("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2916
|
-
}, Js = Ma
|
|
2909
|
+
}, Js = Ma, hc = function() {
|
|
2917
2910
|
return !!Js;
|
|
2918
2911
|
};
|
|
2919
|
-
|
|
2912
|
+
hc.hasArrayLengthDefineBug = function() {
|
|
2920
2913
|
if (!Js)
|
|
2921
2914
|
return null;
|
|
2922
2915
|
try {
|
|
@@ -2925,9 +2918,9 @@ gc.hasArrayLengthDefineBug = function() {
|
|
|
2925
2918
|
return !0;
|
|
2926
2919
|
}
|
|
2927
2920
|
};
|
|
2928
|
-
var Da =
|
|
2921
|
+
var Da = hc, Py = Ca, Ay = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Dy = Object.prototype.toString, Fy = Array.prototype.concat, fu = Aa, By = function(a) {
|
|
2929
2922
|
return typeof a == "function" && Dy.call(a) === "[object Function]";
|
|
2930
|
-
},
|
|
2923
|
+
}, gc = Da(), Gy = function(a, r, i, u) {
|
|
2931
2924
|
if (r in a) {
|
|
2932
2925
|
if (u === !0) {
|
|
2933
2926
|
if (a[r] === i)
|
|
@@ -2935,32 +2928,32 @@ var Da = gc, Py = Ca, Ay = typeof Symbol == "function" && typeof Symbol("foo") =
|
|
|
2935
2928
|
} else if (!By(u) || !u())
|
|
2936
2929
|
return;
|
|
2937
2930
|
}
|
|
2938
|
-
|
|
2939
|
-
},
|
|
2931
|
+
gc ? fu(a, r, i, !0) : fu(a, r, i);
|
|
2932
|
+
}, yc = function(a, r) {
|
|
2940
2933
|
var i = arguments.length > 2 ? arguments[2] : {}, u = Py(r);
|
|
2941
2934
|
Ay && (u = Fy.call(u, Object.getOwnPropertySymbols(r)));
|
|
2942
2935
|
for (var l = 0; l < u.length; l += 1)
|
|
2943
2936
|
Gy(a, u[l], r[u[l]], i[u[l]]);
|
|
2944
2937
|
};
|
|
2945
|
-
|
|
2946
|
-
var Rn =
|
|
2938
|
+
yc.supportsDescriptors = !!gc;
|
|
2939
|
+
var Rn = yc, vc = { exports: {} }, qy = Ut, hu = Aa, zy = Da(), gu = Pa, yu = vn, Uy = qy("%Math.floor%"), Yy = function(r, i) {
|
|
2947
2940
|
if (typeof r != "function")
|
|
2948
|
-
throw new
|
|
2941
|
+
throw new yu("`fn` is not a function");
|
|
2949
2942
|
if (typeof i != "number" || i < 0 || i > 4294967295 || Uy(i) !== i)
|
|
2950
|
-
throw new
|
|
2943
|
+
throw new yu("`length` must be a positive 32-bit integer");
|
|
2951
2944
|
var u = arguments.length > 2 && !!arguments[2], l = !0, f = !0;
|
|
2952
|
-
if ("length" in r &&
|
|
2953
|
-
var g =
|
|
2945
|
+
if ("length" in r && gu) {
|
|
2946
|
+
var g = gu(r, "length");
|
|
2954
2947
|
g && !g.configurable && (l = !1), g && !g.writable && (f = !1);
|
|
2955
2948
|
}
|
|
2956
|
-
return (l || f || !u) && (zy ?
|
|
2949
|
+
return (l || f || !u) && (zy ? hu(
|
|
2957
2950
|
/** @type {Parameters<define>[0]} */
|
|
2958
2951
|
r,
|
|
2959
2952
|
"length",
|
|
2960
2953
|
i,
|
|
2961
2954
|
!0,
|
|
2962
2955
|
!0
|
|
2963
|
-
) :
|
|
2956
|
+
) : hu(
|
|
2964
2957
|
/** @type {Parameters<define>[0]} */
|
|
2965
2958
|
r,
|
|
2966
2959
|
"length",
|
|
@@ -2968,7 +2961,7 @@ var Rn = vc, dc = { exports: {} }, qy = Ut, gu = Aa, zy = Da(), yu = Pa, vu = vn
|
|
|
2968
2961
|
)), r;
|
|
2969
2962
|
};
|
|
2970
2963
|
(function(a) {
|
|
2971
|
-
var r = Ra, i = Ut, u = Yy, l = vn, f = i("%Function.prototype.apply%"), g = i("%Function.prototype.call%"), v = i("%Reflect.apply%", !0) || r.call(g, f), m = Ma
|
|
2964
|
+
var r = Ra, i = Ut, u = Yy, l = vn, f = i("%Function.prototype.apply%"), g = i("%Function.prototype.call%"), v = i("%Reflect.apply%", !0) || r.call(g, f), m = Ma, _ = i("%Math.max%");
|
|
2972
2965
|
a.exports = function(x) {
|
|
2973
2966
|
if (typeof x != "function")
|
|
2974
2967
|
throw new l("a function is required");
|
|
@@ -2983,33 +2976,33 @@ var Rn = vc, dc = { exports: {} }, qy = Ut, gu = Aa, zy = Da(), yu = Pa, vu = vn
|
|
|
2983
2976
|
return v(r, f, arguments);
|
|
2984
2977
|
};
|
|
2985
2978
|
m ? m(a.exports, "apply", { value: k }) : a.exports.apply = k;
|
|
2986
|
-
})(
|
|
2987
|
-
var lr =
|
|
2988
|
-
var u =
|
|
2989
|
-
return typeof u == "function" && Wy(r, ".prototype.") > -1 ?
|
|
2990
|
-
}, Xy = Ca,
|
|
2979
|
+
})(vc);
|
|
2980
|
+
var lr = vc.exports, dc = Ut, mc = lr, Wy = mc(dc("String.prototype.indexOf")), bt = function(r, i) {
|
|
2981
|
+
var u = dc(r, !!i);
|
|
2982
|
+
return typeof u == "function" && Wy(r, ".prototype.") > -1 ? mc(u) : u;
|
|
2983
|
+
}, Xy = Ca, pc = Ji(), _c = bt, vu = Object, jy = _c("Array.prototype.push"), du = _c("Object.prototype.propertyIsEnumerable"), Vy = pc ? Object.getOwnPropertySymbols : null, Ec = function(r, i) {
|
|
2991
2984
|
if (r == null)
|
|
2992
2985
|
throw new TypeError("target must be an object");
|
|
2993
|
-
var u =
|
|
2986
|
+
var u = vu(r);
|
|
2994
2987
|
if (arguments.length === 1)
|
|
2995
2988
|
return u;
|
|
2996
2989
|
for (var l = 1; l < arguments.length; ++l) {
|
|
2997
|
-
var f =
|
|
2990
|
+
var f = vu(arguments[l]), g = Xy(f), v = pc && (Object.getOwnPropertySymbols || Vy);
|
|
2998
2991
|
if (v)
|
|
2999
2992
|
for (var m = v(f), _ = 0; _ < m.length; ++_) {
|
|
3000
2993
|
var k = m[_];
|
|
3001
|
-
|
|
2994
|
+
du(f, k) && jy(g, k);
|
|
3002
2995
|
}
|
|
3003
2996
|
for (var p = 0; p < g.length; ++p) {
|
|
3004
2997
|
var x = g[p];
|
|
3005
|
-
if (
|
|
2998
|
+
if (du(f, x)) {
|
|
3006
2999
|
var S = f[x];
|
|
3007
3000
|
u[x] = S;
|
|
3008
3001
|
}
|
|
3009
3002
|
}
|
|
3010
3003
|
}
|
|
3011
3004
|
return u;
|
|
3012
|
-
}, Cs =
|
|
3005
|
+
}, Cs = Ec, Hy = function() {
|
|
3013
3006
|
if (!Object.assign)
|
|
3014
3007
|
return !1;
|
|
3015
3008
|
for (var a = "abcdefghijklmnopqrst", r = a.split(""), i = {}, u = 0; u < r.length; ++u)
|
|
@@ -3028,9 +3021,9 @@ var lr = dc.exports, mc = Ut, pc = lr, Wy = pc(mc("String.prototype.indexOf")),
|
|
|
3028
3021
|
return a[1] === "y";
|
|
3029
3022
|
}
|
|
3030
3023
|
return !1;
|
|
3031
|
-
},
|
|
3024
|
+
}, kc = function() {
|
|
3032
3025
|
return !Object.assign || Hy() || Zy() ? Cs : Object.assign;
|
|
3033
|
-
}, Ky = Rn, Qy =
|
|
3026
|
+
}, Ky = Rn, Qy = kc, Jy = function() {
|
|
3034
3027
|
var r = Qy();
|
|
3035
3028
|
return Ky(
|
|
3036
3029
|
Object,
|
|
@@ -3039,15 +3032,15 @@ var lr = dc.exports, mc = Ut, pc = lr, Wy = pc(mc("String.prototype.indexOf")),
|
|
|
3039
3032
|
return Object.assign !== r;
|
|
3040
3033
|
} }
|
|
3041
3034
|
), r;
|
|
3042
|
-
}, $y = Rn, ev = lr, tv =
|
|
3035
|
+
}, $y = Rn, ev = lr, tv = Ec, xc = kc, nv = Jy, rv = ev.apply(xc()), Sc = function(r, i) {
|
|
3043
3036
|
return rv(Object, arguments);
|
|
3044
3037
|
};
|
|
3045
|
-
$y(
|
|
3046
|
-
getPolyfill:
|
|
3038
|
+
$y(Sc, {
|
|
3039
|
+
getPolyfill: xc,
|
|
3047
3040
|
implementation: tv,
|
|
3048
3041
|
shim: nv
|
|
3049
3042
|
});
|
|
3050
|
-
var iv =
|
|
3043
|
+
var iv = Sc, Yr = function() {
|
|
3051
3044
|
return typeof (function() {
|
|
3052
3045
|
}).name == "string";
|
|
3053
3046
|
}, Fr = Object.getOwnPropertyDescriptor;
|
|
@@ -3069,29 +3062,29 @@ Yr.boundFunctionsHaveNames = function() {
|
|
|
3069
3062
|
return Yr() && typeof sv == "function" && (function() {
|
|
3070
3063
|
}).bind().name !== "";
|
|
3071
3064
|
};
|
|
3072
|
-
var av = Yr,
|
|
3065
|
+
var av = Yr, mu = Aa, ov = Da(), uv = av.functionsHaveConfigurableNames(), lv = vn, cv = function(r, i) {
|
|
3073
3066
|
if (typeof r != "function")
|
|
3074
3067
|
throw new lv("`fn` is not a function");
|
|
3075
3068
|
var u = arguments.length > 2 && !!arguments[2];
|
|
3076
|
-
return (!u || uv) && (ov ?
|
|
3069
|
+
return (!u || uv) && (ov ? mu(
|
|
3077
3070
|
/** @type {Parameters<define>[0]} */
|
|
3078
3071
|
r,
|
|
3079
3072
|
"name",
|
|
3080
3073
|
i,
|
|
3081
3074
|
!0,
|
|
3082
3075
|
!0
|
|
3083
|
-
) :
|
|
3076
|
+
) : mu(
|
|
3084
3077
|
/** @type {Parameters<define>[0]} */
|
|
3085
3078
|
r,
|
|
3086
3079
|
"name",
|
|
3087
3080
|
i
|
|
3088
3081
|
)), r;
|
|
3089
|
-
}, fv = cv, hv = vn, gv = Object,
|
|
3082
|
+
}, fv = cv, hv = vn, gv = Object, Ic = fv(function() {
|
|
3090
3083
|
if (this == null || this !== gv(this))
|
|
3091
3084
|
throw new hv("RegExp.prototype.flags getter called on non-object");
|
|
3092
3085
|
var r = "";
|
|
3093
3086
|
return this.hasIndices && (r += "d"), this.global && (r += "g"), this.ignoreCase && (r += "i"), this.multiline && (r += "m"), this.dotAll && (r += "s"), this.unicode && (r += "u"), this.unicodeSets && (r += "v"), this.sticky && (r += "y"), r;
|
|
3094
|
-
}, "get flags", !0), yv =
|
|
3087
|
+
}, "get flags", !0), yv = Ic, vv = Rn.supportsDescriptors, dv = Object.getOwnPropertyDescriptor, bc = function() {
|
|
3095
3088
|
if (vv && /a/mig.flags === "gim") {
|
|
3096
3089
|
var r = dv(RegExp.prototype, "flags");
|
|
3097
3090
|
if (r && typeof r.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
|
|
@@ -3109,45 +3102,45 @@ var av = Yr, pu = Aa, ov = Da(), uv = av.functionsHaveConfigurableNames(), lv =
|
|
|
3109
3102
|
}
|
|
3110
3103
|
}
|
|
3111
3104
|
return yv;
|
|
3112
|
-
}, mv = Rn.supportsDescriptors, pv =
|
|
3113
|
-
if (!mv || !
|
|
3105
|
+
}, mv = Rn.supportsDescriptors, pv = bc, _v = Object.getOwnPropertyDescriptor, Ev = Object.defineProperty, kv = TypeError, pu = Object.getPrototypeOf, xv = /a/, Sv = function() {
|
|
3106
|
+
if (!mv || !pu)
|
|
3114
3107
|
throw new kv("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
3115
|
-
var r = pv(), i =
|
|
3108
|
+
var r = pv(), i = pu(xv), u = _v(i, "flags");
|
|
3116
3109
|
return (!u || u.get !== r) && Ev(i, "flags", {
|
|
3117
3110
|
configurable: !0,
|
|
3118
3111
|
enumerable: !1,
|
|
3119
3112
|
get: r
|
|
3120
3113
|
}), r;
|
|
3121
|
-
}, Iv = Rn, bv = lr, wv =
|
|
3122
|
-
Iv(
|
|
3123
|
-
getPolyfill:
|
|
3114
|
+
}, Iv = Rn, bv = lr, wv = Ic, wc = bc, Nv = Sv, Nc = bv(wc());
|
|
3115
|
+
Iv(Nc, {
|
|
3116
|
+
getPolyfill: wc,
|
|
3124
3117
|
implementation: wv,
|
|
3125
3118
|
shim: Nv
|
|
3126
3119
|
});
|
|
3127
|
-
var Lv =
|
|
3120
|
+
var Lv = Nc, Ei = { exports: {} }, Tv = Ji, Mn = function() {
|
|
3128
3121
|
return Tv() && !!Symbol.toStringTag;
|
|
3129
|
-
}, Cv = Mn(), Ov = bt, $s = Ov("Object.prototype.toString"),
|
|
3122
|
+
}, Cv = Mn(), Ov = bt, $s = Ov("Object.prototype.toString"), $i = function(r) {
|
|
3130
3123
|
return Cv && r && typeof r == "object" && Symbol.toStringTag in r ? !1 : $s(r) === "[object Arguments]";
|
|
3131
|
-
},
|
|
3132
|
-
return
|
|
3124
|
+
}, Lc = function(r) {
|
|
3125
|
+
return $i(r) ? !0 : r !== null && typeof r == "object" && typeof r.length == "number" && r.length >= 0 && $s(r) !== "[object Array]" && $s(r.callee) === "[object Function]";
|
|
3133
3126
|
}, Rv = function() {
|
|
3134
|
-
return
|
|
3127
|
+
return $i(arguments);
|
|
3135
3128
|
}();
|
|
3136
|
-
|
|
3137
|
-
var
|
|
3129
|
+
$i.isLegacyArguments = Lc;
|
|
3130
|
+
var Tc = Rv ? $i : Lc;
|
|
3138
3131
|
const Mv = {}, Pv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3139
3132
|
__proto__: null,
|
|
3140
3133
|
default: Mv
|
|
3141
|
-
}, Symbol.toStringTag, { value: "Module" })), Av = /* @__PURE__ */
|
|
3142
|
-
var Fa = typeof Map == "function" && Map.prototype, Os = Object.getOwnPropertyDescriptor && Fa ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
3134
|
+
}, Symbol.toStringTag, { value: "Module" })), Av = /* @__PURE__ */ Xg(Pv);
|
|
3135
|
+
var Fa = typeof Map == "function" && Map.prototype, Os = Object.getOwnPropertyDescriptor && Fa ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ci = Fa && Os && typeof Os.get == "function" ? Os.get : null, _u = Fa && Map.prototype.forEach, Ba = typeof Set == "function" && Set.prototype, Rs = Object.getOwnPropertyDescriptor && Ba ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Oi = Ba && Rs && typeof Rs.get == "function" ? Rs.get : null, Eu = Ba && Set.prototype.forEach, Dv = typeof WeakMap == "function" && WeakMap.prototype, Br = Dv ? WeakMap.prototype.has : null, Fv = typeof WeakSet == "function" && WeakSet.prototype, Gr = Fv ? WeakSet.prototype.has : null, Bv = typeof WeakRef == "function" && WeakRef.prototype, ku = Bv ? WeakRef.prototype.deref : null, Gv = Boolean.prototype.valueOf, qv = Object.prototype.toString, zv = Function.prototype.toString, Uv = String.prototype.match, Ga = String.prototype.slice, an = String.prototype.replace, Yv = String.prototype.toUpperCase, xu = String.prototype.toLowerCase, Cc = RegExp.prototype.test, Su = Array.prototype.concat, Bt = Array.prototype.join, Wv = Array.prototype.slice, Iu = Math.floor, ea = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ms = Object.getOwnPropertySymbols, ta = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ir = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ze = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ir || !0) ? Symbol.toStringTag : null, Oc = Object.prototype.propertyIsEnumerable, bu = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(a) {
|
|
3143
3136
|
return a.__proto__;
|
|
3144
3137
|
} : null);
|
|
3145
|
-
function
|
|
3146
|
-
if (a === 1 / 0 || a === -1 / 0 || a !== a || a && a > -1e3 && a < 1e3 ||
|
|
3138
|
+
function wu(a, r) {
|
|
3139
|
+
if (a === 1 / 0 || a === -1 / 0 || a !== a || a && a > -1e3 && a < 1e3 || Cc.call(/e/, r))
|
|
3147
3140
|
return r;
|
|
3148
3141
|
var i = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3149
3142
|
if (typeof a == "number") {
|
|
3150
|
-
var u = a < 0 ? -
|
|
3143
|
+
var u = a < 0 ? -Iu(-a) : Iu(a);
|
|
3151
3144
|
if (u !== a) {
|
|
3152
3145
|
var l = String(u), f = Ga.call(r, l.length + 1);
|
|
3153
3146
|
return an.call(l, i, "$&_") + "." + an.call(an.call(f, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
@@ -3155,7 +3148,7 @@ function Nu(a, r) {
|
|
|
3155
3148
|
}
|
|
3156
3149
|
return an.call(r, i, "$&_");
|
|
3157
3150
|
}
|
|
3158
|
-
var na = Av,
|
|
3151
|
+
var na = Av, Nu = na.custom, Lu = Mc(Nu) ? Nu : null, Xv = function a(r, i, u, l) {
|
|
3159
3152
|
var f = i || {};
|
|
3160
3153
|
if (rn(f, "quoteStyle") && f.quoteStyle !== "single" && f.quoteStyle !== "double")
|
|
3161
3154
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -3176,16 +3169,16 @@ var na = Av, Lu = na.custom, Tu = Pc(Lu) ? Lu : null, Xv = function a(r, i, u, l
|
|
|
3176
3169
|
if (typeof r == "boolean")
|
|
3177
3170
|
return r ? "true" : "false";
|
|
3178
3171
|
if (typeof r == "string")
|
|
3179
|
-
return
|
|
3172
|
+
return Ac(r, f);
|
|
3180
3173
|
if (typeof r == "number") {
|
|
3181
3174
|
if (r === 0)
|
|
3182
3175
|
return 1 / 0 / r > 0 ? "0" : "-0";
|
|
3183
3176
|
var m = String(r);
|
|
3184
|
-
return v ?
|
|
3177
|
+
return v ? wu(r, m) : m;
|
|
3185
3178
|
}
|
|
3186
3179
|
if (typeof r == "bigint") {
|
|
3187
3180
|
var _ = String(r) + "n";
|
|
3188
|
-
return v ?
|
|
3181
|
+
return v ? wu(r, _) : _;
|
|
3189
3182
|
}
|
|
3190
3183
|
var k = typeof f.depth > "u" ? 5 : f.depth;
|
|
3191
3184
|
if (typeof u > "u" && (u = 0), u >= k && k > 0 && typeof r == "object")
|
|
@@ -3193,7 +3186,7 @@ var na = Av, Lu = na.custom, Tu = Pc(Lu) ? Lu : null, Xv = function a(r, i, u, l
|
|
|
3193
3186
|
var p = ld(f, u);
|
|
3194
3187
|
if (typeof l > "u")
|
|
3195
3188
|
l = [];
|
|
3196
|
-
else if (
|
|
3189
|
+
else if (Pc(l, r) >= 0)
|
|
3197
3190
|
return "[Circular]";
|
|
3198
3191
|
function x(ae, F, K) {
|
|
3199
3192
|
if (F && (l = Wv.call(l), l.push(F)), K) {
|
|
@@ -3204,18 +3197,18 @@ var na = Av, Lu = na.custom, Tu = Pc(Lu) ? Lu : null, Xv = function a(r, i, u, l
|
|
|
3204
3197
|
}
|
|
3205
3198
|
return a(ae, f, u + 1, l);
|
|
3206
3199
|
}
|
|
3207
|
-
if (typeof r == "function" && !
|
|
3200
|
+
if (typeof r == "function" && !Tu(r)) {
|
|
3208
3201
|
var S = ed(r), b = ai(r, x);
|
|
3209
3202
|
return "[Function" + (S ? ": " + S : " (anonymous)") + "]" + (b.length > 0 ? " { " + Bt.call(b, ", ") + " }" : "");
|
|
3210
3203
|
}
|
|
3211
|
-
if (
|
|
3204
|
+
if (Mc(r)) {
|
|
3212
3205
|
var R = ir ? an.call(String(r), /^(Symbol\(.*\))_[^)]*$/, "$1") : ta.call(r);
|
|
3213
3206
|
return typeof r == "object" && !ir ? Tr(R) : R;
|
|
3214
3207
|
}
|
|
3215
3208
|
if (ad(r)) {
|
|
3216
|
-
for (var L = "<" +
|
|
3217
|
-
L += " " + T[M].name + "=" +
|
|
3218
|
-
return L += ">", r.childNodes && r.childNodes.length && (L += "..."), L += "</" +
|
|
3209
|
+
for (var L = "<" + xu.call(String(r.nodeName)), T = r.attributes || [], M = 0; M < T.length; M++)
|
|
3210
|
+
L += " " + T[M].name + "=" + Rc(jv(T[M].value), "double", f);
|
|
3211
|
+
return L += ">", r.childNodes && r.childNodes.length && (L += "..."), L += "</" + xu.call(String(r.nodeName)) + ">", L;
|
|
3219
3212
|
}
|
|
3220
3213
|
if (ra(r)) {
|
|
3221
3214
|
if (r.length === 0)
|
|
@@ -3225,25 +3218,25 @@ var na = Av, Lu = na.custom, Tu = Pc(Lu) ? Lu : null, Xv = function a(r, i, u, l
|
|
|
3225
3218
|
}
|
|
3226
3219
|
if (Hv(r)) {
|
|
3227
3220
|
var A = ai(r, x);
|
|
3228
|
-
return !("cause" in Error.prototype) && "cause" in r && !
|
|
3221
|
+
return !("cause" in Error.prototype) && "cause" in r && !Oc.call(r, "cause") ? "{ [" + String(r) + "] " + Bt.call(Su.call("[cause]: " + x(r.cause), A), ", ") + " }" : A.length === 0 ? "[" + String(r) + "]" : "{ [" + String(r) + "] " + Bt.call(A, ", ") + " }";
|
|
3229
3222
|
}
|
|
3230
3223
|
if (typeof r == "object" && g) {
|
|
3231
|
-
if (
|
|
3224
|
+
if (Lu && typeof r[Lu] == "function" && na)
|
|
3232
3225
|
return na(r, { depth: k - u });
|
|
3233
3226
|
if (g !== "symbol" && typeof r.inspect == "function")
|
|
3234
3227
|
return r.inspect();
|
|
3235
3228
|
}
|
|
3236
3229
|
if (td(r)) {
|
|
3237
3230
|
var O = [];
|
|
3238
|
-
return
|
|
3231
|
+
return _u && _u.call(r, function(ae, F) {
|
|
3239
3232
|
O.push(x(F, r, !0) + " => " + x(ae, r));
|
|
3240
|
-
}),
|
|
3233
|
+
}), Cu("Map", Ci.call(r), O, p);
|
|
3241
3234
|
}
|
|
3242
3235
|
if (id(r)) {
|
|
3243
3236
|
var z = [];
|
|
3244
|
-
return
|
|
3237
|
+
return Eu && Eu.call(r, function(ae) {
|
|
3245
3238
|
z.push(x(ae, r));
|
|
3246
|
-
}),
|
|
3239
|
+
}), Cu("Set", Oi.call(r), z, p);
|
|
3247
3240
|
}
|
|
3248
3241
|
if (nd(r))
|
|
3249
3242
|
return Ps("WeakMap");
|
|
@@ -3261,15 +3254,15 @@ var na = Av, Lu = na.custom, Tu = Pc(Lu) ? Lu : null, Xv = function a(r, i, u, l
|
|
|
3261
3254
|
return Tr(x(String(r)));
|
|
3262
3255
|
if (typeof window < "u" && r === window)
|
|
3263
3256
|
return "{ [object Window] }";
|
|
3264
|
-
if (r ===
|
|
3257
|
+
if (r === Qi)
|
|
3265
3258
|
return "{ [object globalThis] }";
|
|
3266
|
-
if (!Vv(r) && !
|
|
3267
|
-
var q = ai(r, x), U =
|
|
3259
|
+
if (!Vv(r) && !Tu(r)) {
|
|
3260
|
+
var q = ai(r, x), U = bu ? bu(r) === Object.prototype : r instanceof Object || r.constructor === Object, D = r instanceof Object ? "" : "null prototype", H = !U && Ze && Object(r) === r && Ze in r ? Ga.call(dn(r), 8, -1) : D ? "Object" : "", ee = U || typeof r.constructor != "function" ? "" : r.constructor.name ? r.constructor.name + " " : "", Z = ee + (H || D ? "[" + Bt.call(Su.call([], H || [], D || []), ": ") + "] " : "");
|
|
3268
3261
|
return q.length === 0 ? Z + "{}" : p ? Z + "{" + ia(q, p) + "}" : Z + "{ " + Bt.call(q, ", ") + " }";
|
|
3269
3262
|
}
|
|
3270
3263
|
return String(r);
|
|
3271
3264
|
};
|
|
3272
|
-
function
|
|
3265
|
+
function Rc(a, r, i) {
|
|
3273
3266
|
var u = (i.quoteStyle || r) === "double" ? '"' : "'";
|
|
3274
3267
|
return u + a + u;
|
|
3275
3268
|
}
|
|
@@ -3282,7 +3275,7 @@ function ra(a) {
|
|
|
3282
3275
|
function Vv(a) {
|
|
3283
3276
|
return dn(a) === "[object Date]" && (!Ze || !(typeof a == "object" && Ze in a));
|
|
3284
3277
|
}
|
|
3285
|
-
function
|
|
3278
|
+
function Tu(a) {
|
|
3286
3279
|
return dn(a) === "[object RegExp]" && (!Ze || !(typeof a == "object" && Ze in a));
|
|
3287
3280
|
}
|
|
3288
3281
|
function Hv(a) {
|
|
@@ -3297,7 +3290,7 @@ function Kv(a) {
|
|
|
3297
3290
|
function Qv(a) {
|
|
3298
3291
|
return dn(a) === "[object Boolean]" && (!Ze || !(typeof a == "object" && Ze in a));
|
|
3299
3292
|
}
|
|
3300
|
-
function
|
|
3293
|
+
function Mc(a) {
|
|
3301
3294
|
if (ir)
|
|
3302
3295
|
return a && typeof a == "object" && a instanceof Symbol;
|
|
3303
3296
|
if (typeof a == "symbol")
|
|
@@ -3334,7 +3327,7 @@ function ed(a) {
|
|
|
3334
3327
|
var r = Uv.call(zv.call(a), /^function\s*([\w$]+)/);
|
|
3335
3328
|
return r ? r[1] : null;
|
|
3336
3329
|
}
|
|
3337
|
-
function
|
|
3330
|
+
function Pc(a, r) {
|
|
3338
3331
|
if (a.indexOf)
|
|
3339
3332
|
return a.indexOf(r);
|
|
3340
3333
|
for (var i = 0, u = a.length; i < u; i++)
|
|
@@ -3343,12 +3336,12 @@ function Ac(a, r) {
|
|
|
3343
3336
|
return -1;
|
|
3344
3337
|
}
|
|
3345
3338
|
function td(a) {
|
|
3346
|
-
if (!
|
|
3339
|
+
if (!Ci || !a || typeof a != "object")
|
|
3347
3340
|
return !1;
|
|
3348
3341
|
try {
|
|
3349
|
-
|
|
3342
|
+
Ci.call(a);
|
|
3350
3343
|
try {
|
|
3351
|
-
|
|
3344
|
+
Oi.call(a);
|
|
3352
3345
|
} catch {
|
|
3353
3346
|
return !0;
|
|
3354
3347
|
}
|
|
@@ -3373,21 +3366,21 @@ function nd(a) {
|
|
|
3373
3366
|
return !1;
|
|
3374
3367
|
}
|
|
3375
3368
|
function rd(a) {
|
|
3376
|
-
if (!
|
|
3369
|
+
if (!ku || !a || typeof a != "object")
|
|
3377
3370
|
return !1;
|
|
3378
3371
|
try {
|
|
3379
|
-
return
|
|
3372
|
+
return ku.call(a), !0;
|
|
3380
3373
|
} catch {
|
|
3381
3374
|
}
|
|
3382
3375
|
return !1;
|
|
3383
3376
|
}
|
|
3384
3377
|
function id(a) {
|
|
3385
|
-
if (!
|
|
3378
|
+
if (!Oi || !a || typeof a != "object")
|
|
3386
3379
|
return !1;
|
|
3387
3380
|
try {
|
|
3388
|
-
|
|
3381
|
+
Oi.call(a);
|
|
3389
3382
|
try {
|
|
3390
|
-
|
|
3383
|
+
Ci.call(a);
|
|
3391
3384
|
} catch {
|
|
3392
3385
|
return !0;
|
|
3393
3386
|
}
|
|
@@ -3414,13 +3407,13 @@ function sd(a) {
|
|
|
3414
3407
|
function ad(a) {
|
|
3415
3408
|
return !a || typeof a != "object" ? !1 : typeof HTMLElement < "u" && a instanceof HTMLElement ? !0 : typeof a.nodeName == "string" && typeof a.getAttribute == "function";
|
|
3416
3409
|
}
|
|
3417
|
-
function
|
|
3410
|
+
function Ac(a, r) {
|
|
3418
3411
|
if (a.length > r.maxStringLength) {
|
|
3419
3412
|
var i = a.length - r.maxStringLength, u = "... " + i + " more character" + (i > 1 ? "s" : "");
|
|
3420
|
-
return
|
|
3413
|
+
return Ac(Ga.call(a, 0, r.maxStringLength), r) + u;
|
|
3421
3414
|
}
|
|
3422
3415
|
var l = an.call(an.call(a, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, od);
|
|
3423
|
-
return
|
|
3416
|
+
return Rc(l, "single", r);
|
|
3424
3417
|
}
|
|
3425
3418
|
function od(a) {
|
|
3426
3419
|
var r = a.charCodeAt(0), i = {
|
|
@@ -3438,13 +3431,13 @@ function Tr(a) {
|
|
|
3438
3431
|
function Ps(a) {
|
|
3439
3432
|
return a + " { ? }";
|
|
3440
3433
|
}
|
|
3441
|
-
function
|
|
3434
|
+
function Cu(a, r, i, u) {
|
|
3442
3435
|
var l = u ? ia(i, u) : Bt.call(i, ", ");
|
|
3443
3436
|
return a + " (" + r + ") {" + l + "}";
|
|
3444
3437
|
}
|
|
3445
3438
|
function ud(a) {
|
|
3446
3439
|
for (var r = 0; r < a.length; r++)
|
|
3447
|
-
if (
|
|
3440
|
+
if (Pc(a[r], `
|
|
3448
3441
|
`) >= 0)
|
|
3449
3442
|
return !1;
|
|
3450
3443
|
return !0;
|
|
@@ -3484,13 +3477,13 @@ function ai(a, r) {
|
|
|
3484
3477
|
g["$" + f[v]] = f[v];
|
|
3485
3478
|
}
|
|
3486
3479
|
for (var m in a)
|
|
3487
|
-
rn(a, m) && (i && String(Number(m)) === m && m < a.length || ir && g["$" + m] instanceof Symbol || (
|
|
3480
|
+
rn(a, m) && (i && String(Number(m)) === m && m < a.length || ir && g["$" + m] instanceof Symbol || (Cc.call(/[^\w$]/, m) ? u.push(r(m, a) + ": " + r(a[m], a)) : u.push(m + ": " + r(a[m], a))));
|
|
3488
3481
|
if (typeof Ms == "function")
|
|
3489
3482
|
for (var _ = 0; _ < f.length; _++)
|
|
3490
|
-
|
|
3483
|
+
Oc.call(a, f[_]) && u.push("[" + r(f[_]) + "]: " + r(a[f[_]], a));
|
|
3491
3484
|
return u;
|
|
3492
3485
|
}
|
|
3493
|
-
var
|
|
3486
|
+
var Dc = Ut, cr = bt, cd = Xv, fd = vn, oi = Dc("%WeakMap%", !0), ui = Dc("%Map%", !0), hd = cr("WeakMap.prototype.get", !0), gd = cr("WeakMap.prototype.set", !0), yd = cr("WeakMap.prototype.has", !0), vd = cr("Map.prototype.get", !0), dd = cr("Map.prototype.set", !0), md = cr("Map.prototype.has", !0), qa = function(a, r) {
|
|
3494
3487
|
for (var i = a, u; (u = i.next) !== null; i = u)
|
|
3495
3488
|
if (u.key === r)
|
|
3496
3489
|
return i.next = u.next, u.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -3509,7 +3502,7 @@ var Fc = Ut, cr = bt, cd = Xv, fd = vn, oi = Fc("%WeakMap%", !0), ui = Fc("%Map%
|
|
|
3509
3502
|
};
|
|
3510
3503
|
}, Ed = function(a, r) {
|
|
3511
3504
|
return !!qa(a, r);
|
|
3512
|
-
},
|
|
3505
|
+
}, Fc = function() {
|
|
3513
3506
|
var r, i, u, l = {
|
|
3514
3507
|
assert: function(f) {
|
|
3515
3508
|
if (!l.has(f))
|
|
@@ -3541,7 +3534,7 @@ var Fc = Ut, cr = bt, cd = Xv, fd = vn, oi = Fc("%WeakMap%", !0), ui = Fc("%Map%
|
|
|
3541
3534
|
}
|
|
3542
3535
|
};
|
|
3543
3536
|
return l;
|
|
3544
|
-
}, kd =
|
|
3537
|
+
}, kd = cc, Cr = Fc(), Ht = vn, za = {
|
|
3545
3538
|
assert: function(a, r) {
|
|
3546
3539
|
if (!a || typeof a != "object" && typeof a != "function")
|
|
3547
3540
|
throw new Ht("`O` is not an object");
|
|
@@ -3576,8 +3569,8 @@ var Fc = Ut, cr = bt, cd = Xv, fd = vn, oi = Fc("%WeakMap%", !0), ui = Fc("%Map%
|
|
|
3576
3569
|
}
|
|
3577
3570
|
};
|
|
3578
3571
|
Object.freeze && Object.freeze(za);
|
|
3579
|
-
var xd = za, Or = xd, Sd = SyntaxError,
|
|
3580
|
-
if (!
|
|
3572
|
+
var xd = za, Or = xd, Sd = SyntaxError, Ou = typeof StopIteration == "object" ? StopIteration : null, Id = function(r) {
|
|
3573
|
+
if (!Ou)
|
|
3581
3574
|
throw new Sd("this environment lacks StopIteration");
|
|
3582
3575
|
Or.set(r, "[[Done]]", !1);
|
|
3583
3576
|
var i = {
|
|
@@ -3589,7 +3582,7 @@ var xd = za, Or = xd, Sd = SyntaxError, Ru = typeof StopIteration == "object" ?
|
|
|
3589
3582
|
value: f ? void 0 : l.next()
|
|
3590
3583
|
};
|
|
3591
3584
|
} catch (g) {
|
|
3592
|
-
if (Or.set(l, "[[Done]]", !0), g !==
|
|
3585
|
+
if (Or.set(l, "[[Done]]", !0), g !== Ou)
|
|
3593
3586
|
throw g;
|
|
3594
3587
|
return {
|
|
3595
3588
|
done: !0,
|
|
@@ -3599,7 +3592,7 @@ var xd = za, Or = xd, Sd = SyntaxError, Ru = typeof StopIteration == "object" ?
|
|
|
3599
3592
|
}
|
|
3600
3593
|
};
|
|
3601
3594
|
return Or.set(i, "[[Iterator]]", r), i;
|
|
3602
|
-
}, bd = {}.toString,
|
|
3595
|
+
}, bd = {}.toString, Bc = Array.isArray || function(a) {
|
|
3603
3596
|
return bd.call(a) == "[object Array]";
|
|
3604
3597
|
}, wd = String.prototype.valueOf, Nd = function(r) {
|
|
3605
3598
|
try {
|
|
@@ -3607,23 +3600,23 @@ var xd = za, Or = xd, Sd = SyntaxError, Ru = typeof StopIteration == "object" ?
|
|
|
3607
3600
|
} catch {
|
|
3608
3601
|
return !1;
|
|
3609
3602
|
}
|
|
3610
|
-
}, Ld = Object.prototype.toString, Td = "[object String]", Cd = Mn(),
|
|
3603
|
+
}, Ld = Object.prototype.toString, Td = "[object String]", Cd = Mn(), Gc = function(r) {
|
|
3611
3604
|
return typeof r == "string" ? !0 : typeof r != "object" ? !1 : Cd ? Nd(r) : Ld.call(r) === Td;
|
|
3612
|
-
}, Ua = typeof Map == "function" && Map.prototype ? Map : null, Od = typeof Set == "function" && Set.prototype ? Set : null,
|
|
3613
|
-
Ua || (
|
|
3605
|
+
}, Ua = typeof Map == "function" && Map.prototype ? Map : null, Od = typeof Set == "function" && Set.prototype ? Set : null, Ri;
|
|
3606
|
+
Ua || (Ri = function(r) {
|
|
3614
3607
|
return !1;
|
|
3615
3608
|
});
|
|
3616
|
-
var
|
|
3617
|
-
!
|
|
3609
|
+
var qc = Ua ? Map.prototype.has : null, Ru = Od ? Set.prototype.has : null;
|
|
3610
|
+
!Ri && !qc && (Ri = function(r) {
|
|
3618
3611
|
return !1;
|
|
3619
3612
|
});
|
|
3620
|
-
var
|
|
3613
|
+
var zc = Ri || function(r) {
|
|
3621
3614
|
if (!r || typeof r != "object")
|
|
3622
3615
|
return !1;
|
|
3623
3616
|
try {
|
|
3624
|
-
if (
|
|
3617
|
+
if (qc.call(r), Ru)
|
|
3625
3618
|
try {
|
|
3626
|
-
|
|
3619
|
+
Ru.call(r);
|
|
3627
3620
|
} catch {
|
|
3628
3621
|
return !0;
|
|
3629
3622
|
}
|
|
@@ -3631,21 +3624,21 @@ var Uc = Oi || function(r) {
|
|
|
3631
3624
|
} catch {
|
|
3632
3625
|
}
|
|
3633
3626
|
return !1;
|
|
3634
|
-
}, Rd = typeof Map == "function" && Map.prototype ? Map : null, Ya = typeof Set == "function" && Set.prototype ? Set : null,
|
|
3635
|
-
Ya || (
|
|
3627
|
+
}, Rd = typeof Map == "function" && Map.prototype ? Map : null, Ya = typeof Set == "function" && Set.prototype ? Set : null, Mi;
|
|
3628
|
+
Ya || (Mi = function(r) {
|
|
3636
3629
|
return !1;
|
|
3637
3630
|
});
|
|
3638
|
-
var
|
|
3639
|
-
!
|
|
3631
|
+
var Mu = Rd ? Map.prototype.has : null, Uc = Ya ? Set.prototype.has : null;
|
|
3632
|
+
!Mi && !Uc && (Mi = function(r) {
|
|
3640
3633
|
return !1;
|
|
3641
3634
|
});
|
|
3642
|
-
var
|
|
3635
|
+
var Yc = Mi || function(r) {
|
|
3643
3636
|
if (!r || typeof r != "object")
|
|
3644
3637
|
return !1;
|
|
3645
3638
|
try {
|
|
3646
|
-
if (
|
|
3639
|
+
if (Uc.call(r), Mu)
|
|
3647
3640
|
try {
|
|
3648
|
-
|
|
3641
|
+
Mu.call(r);
|
|
3649
3642
|
} catch {
|
|
3650
3643
|
return !0;
|
|
3651
3644
|
}
|
|
@@ -3653,24 +3646,24 @@ var Wc = Ri || function(r) {
|
|
|
3653
3646
|
} catch {
|
|
3654
3647
|
}
|
|
3655
3648
|
return !1;
|
|
3656
|
-
},
|
|
3657
|
-
if (Oa() ||
|
|
3649
|
+
}, Pu = Tc, Au = Id;
|
|
3650
|
+
if (Oa() || Ji()) {
|
|
3658
3651
|
var As = Symbol.iterator;
|
|
3659
|
-
|
|
3652
|
+
Ei.exports = function(r) {
|
|
3660
3653
|
if (r != null && typeof r[As] < "u")
|
|
3661
3654
|
return r[As]();
|
|
3662
|
-
if (
|
|
3655
|
+
if (Pu(r))
|
|
3663
3656
|
return Array.prototype[As].call(r);
|
|
3664
3657
|
};
|
|
3665
3658
|
} else {
|
|
3666
|
-
var Md =
|
|
3659
|
+
var Md = Bc, Pd = Gc, Du = Ut, Ad = Du("%Map%", !0), Dd = Du("%Set%", !0), Tt = bt, Fu = Tt("Array.prototype.push"), Bu = Tt("String.prototype.charCodeAt"), Fd = Tt("String.prototype.slice"), Bd = function(r, i) {
|
|
3667
3660
|
var u = r.length;
|
|
3668
3661
|
if (i + 1 >= u)
|
|
3669
3662
|
return i + 1;
|
|
3670
|
-
var l =
|
|
3663
|
+
var l = Bu(r, i);
|
|
3671
3664
|
if (l < 55296 || l > 56319)
|
|
3672
3665
|
return i + 1;
|
|
3673
|
-
var f =
|
|
3666
|
+
var f = Bu(r, i + 1);
|
|
3674
3667
|
return f < 56320 || f > 57343 ? i + 1 : i + 2;
|
|
3675
3668
|
}, Ds = function(r) {
|
|
3676
3669
|
var i = 0;
|
|
@@ -3683,8 +3676,8 @@ if (Oa() || Qi()) {
|
|
|
3683
3676
|
};
|
|
3684
3677
|
}
|
|
3685
3678
|
};
|
|
3686
|
-
},
|
|
3687
|
-
if (Md(r) ||
|
|
3679
|
+
}, Gu = function(r, i) {
|
|
3680
|
+
if (Md(r) || Pu(r))
|
|
3688
3681
|
return Ds(r);
|
|
3689
3682
|
if (Pd(r)) {
|
|
3690
3683
|
var u = 0;
|
|
@@ -3702,69 +3695,69 @@ if (Oa() || Qi()) {
|
|
|
3702
3695
|
return r["_es6-shim iterator_"]();
|
|
3703
3696
|
};
|
|
3704
3697
|
if (!Ad && !Dd)
|
|
3705
|
-
|
|
3698
|
+
Ei.exports = function(r) {
|
|
3706
3699
|
if (r != null)
|
|
3707
|
-
return
|
|
3700
|
+
return Gu(r, !0);
|
|
3708
3701
|
};
|
|
3709
3702
|
else {
|
|
3710
|
-
var Gd =
|
|
3703
|
+
var Gd = zc, qd = Yc, qu = Tt("Map.prototype.forEach", !0), zu = Tt("Set.prototype.forEach", !0);
|
|
3711
3704
|
if (typeof process > "u" || !process.versions || !process.versions.node)
|
|
3712
|
-
var
|
|
3713
|
-
var
|
|
3705
|
+
var Uu = Tt("Map.prototype.iterator", !0), Yu = Tt("Set.prototype.iterator", !0);
|
|
3706
|
+
var Wu = Tt("Map.prototype.@@iterator", !0) || Tt("Map.prototype._es6-shim iterator_", !0), Xu = Tt("Set.prototype.@@iterator", !0) || Tt("Set.prototype._es6-shim iterator_", !0), zd = function(r) {
|
|
3714
3707
|
if (Gd(r)) {
|
|
3715
|
-
if (
|
|
3716
|
-
return
|
|
3717
|
-
if (
|
|
3718
|
-
return
|
|
3719
|
-
if (
|
|
3708
|
+
if (Uu)
|
|
3709
|
+
return Au(Uu(r));
|
|
3710
|
+
if (Wu)
|
|
3711
|
+
return Wu(r);
|
|
3712
|
+
if (qu) {
|
|
3720
3713
|
var i = [];
|
|
3721
|
-
return
|
|
3722
|
-
|
|
3714
|
+
return qu(r, function(l, f) {
|
|
3715
|
+
Fu(i, [f, l]);
|
|
3723
3716
|
}), Ds(i);
|
|
3724
3717
|
}
|
|
3725
3718
|
}
|
|
3726
3719
|
if (qd(r)) {
|
|
3727
|
-
if (
|
|
3728
|
-
return
|
|
3729
|
-
if (
|
|
3730
|
-
return
|
|
3731
|
-
if (
|
|
3720
|
+
if (Yu)
|
|
3721
|
+
return Au(Yu(r));
|
|
3722
|
+
if (Xu)
|
|
3723
|
+
return Xu(r);
|
|
3724
|
+
if (zu) {
|
|
3732
3725
|
var u = [];
|
|
3733
|
-
return
|
|
3734
|
-
|
|
3726
|
+
return zu(r, function(l) {
|
|
3727
|
+
Fu(u, l);
|
|
3735
3728
|
}), Ds(u);
|
|
3736
3729
|
}
|
|
3737
3730
|
}
|
|
3738
3731
|
};
|
|
3739
|
-
|
|
3740
|
-
return zd(r) ||
|
|
3732
|
+
Ei.exports = function(r) {
|
|
3733
|
+
return zd(r) || Gu(r);
|
|
3741
3734
|
};
|
|
3742
3735
|
}
|
|
3743
3736
|
}
|
|
3744
|
-
var Ud =
|
|
3737
|
+
var Ud = Ei.exports, ju = function(a) {
|
|
3745
3738
|
return a !== a;
|
|
3746
|
-
},
|
|
3747
|
-
return r === 0 && i === 0 ? 1 / r === 1 / i : !!(r === i ||
|
|
3748
|
-
}, Yd =
|
|
3739
|
+
}, Wc = function(r, i) {
|
|
3740
|
+
return r === 0 && i === 0 ? 1 / r === 1 / i : !!(r === i || ju(r) && ju(i));
|
|
3741
|
+
}, Yd = Wc, Xc = function() {
|
|
3749
3742
|
return typeof Object.is == "function" ? Object.is : Yd;
|
|
3750
|
-
}, Wd =
|
|
3743
|
+
}, Wd = Xc, Xd = Rn, jd = function() {
|
|
3751
3744
|
var r = Wd();
|
|
3752
3745
|
return Xd(Object, { is: r }, {
|
|
3753
3746
|
is: function() {
|
|
3754
3747
|
return Object.is !== r;
|
|
3755
3748
|
}
|
|
3756
3749
|
}), r;
|
|
3757
|
-
}, Vd = Rn, Hd = lr, Zd =
|
|
3758
|
-
Vd(
|
|
3759
|
-
getPolyfill:
|
|
3750
|
+
}, Vd = Rn, Hd = lr, Zd = Wc, jc = Xc, Kd = jd, Vc = Hd(jc(), Object);
|
|
3751
|
+
Vd(Vc, {
|
|
3752
|
+
getPolyfill: jc,
|
|
3760
3753
|
implementation: Zd,
|
|
3761
3754
|
shim: Kd
|
|
3762
3755
|
});
|
|
3763
|
-
var Qd =
|
|
3756
|
+
var Qd = Vc, Jd = lr, Hc = bt, $d = Ut, sa = $d("%ArrayBuffer%", !0), ki = Hc("ArrayBuffer.prototype.byteLength", !0), em = Hc("Object.prototype.toString"), Vu = !!sa && !ki && new sa(0).slice, Hu = !!Vu && Jd(Vu), Zc = ki || Hu ? function(r) {
|
|
3764
3757
|
if (!r || typeof r != "object")
|
|
3765
3758
|
return !1;
|
|
3766
3759
|
try {
|
|
3767
|
-
return
|
|
3760
|
+
return ki ? ki(r) : Hu(r, 0), !0;
|
|
3768
3761
|
} catch {
|
|
3769
3762
|
return !1;
|
|
3770
3763
|
}
|
|
@@ -3780,9 +3773,9 @@ var Qd = Hc, Jd = lr, Zc = bt, $d = Ut, sa = $d("%ArrayBuffer%", !0), Ei = Zc("A
|
|
|
3780
3773
|
}
|
|
3781
3774
|
}, rm = Object.prototype.toString, im = "[object Date]", sm = Mn(), am = function(r) {
|
|
3782
3775
|
return typeof r != "object" || r === null ? !1 : sm ? nm(r) : rm.call(r) === im;
|
|
3783
|
-
}, aa = bt,
|
|
3784
|
-
if (
|
|
3785
|
-
|
|
3776
|
+
}, aa = bt, Kc = Mn(), Qc, Jc, oa, ua;
|
|
3777
|
+
if (Kc) {
|
|
3778
|
+
Qc = aa("Object.prototype.hasOwnProperty"), Jc = aa("RegExp.prototype.exec"), oa = {};
|
|
3786
3779
|
var Fs = function() {
|
|
3787
3780
|
throw oa;
|
|
3788
3781
|
};
|
|
@@ -3791,24 +3784,24 @@ if (Qc) {
|
|
|
3791
3784
|
valueOf: Fs
|
|
3792
3785
|
}, typeof Symbol.toPrimitive == "symbol" && (ua[Symbol.toPrimitive] = Fs);
|
|
3793
3786
|
}
|
|
3794
|
-
var om = aa("Object.prototype.toString"), um = Object.getOwnPropertyDescriptor, lm = "[object RegExp]", cm =
|
|
3787
|
+
var om = aa("Object.prototype.toString"), um = Object.getOwnPropertyDescriptor, lm = "[object RegExp]", cm = Kc ? function(r) {
|
|
3795
3788
|
if (!r || typeof r != "object")
|
|
3796
3789
|
return !1;
|
|
3797
|
-
var i = um(r, "lastIndex"), u = i &&
|
|
3790
|
+
var i = um(r, "lastIndex"), u = i && Qc(i, "value");
|
|
3798
3791
|
if (!u)
|
|
3799
3792
|
return !1;
|
|
3800
3793
|
try {
|
|
3801
|
-
|
|
3794
|
+
Jc(r, ua);
|
|
3802
3795
|
} catch (l) {
|
|
3803
3796
|
return l === oa;
|
|
3804
3797
|
}
|
|
3805
3798
|
} : function(r) {
|
|
3806
3799
|
return !r || typeof r != "object" && typeof r != "function" ? !1 : om(r) === lm;
|
|
3807
|
-
}, fm = bt,
|
|
3800
|
+
}, fm = bt, Zu = fm("SharedArrayBuffer.prototype.byteLength", !0), hm = Zu ? function(r) {
|
|
3808
3801
|
if (!r || typeof r != "object")
|
|
3809
3802
|
return !1;
|
|
3810
3803
|
try {
|
|
3811
|
-
return
|
|
3804
|
+
return Zu(r), !0;
|
|
3812
3805
|
} catch {
|
|
3813
3806
|
return !1;
|
|
3814
3807
|
}
|
|
@@ -3822,7 +3815,7 @@ var om = aa("Object.prototype.toString"), um = Object.getOwnPropertyDescriptor,
|
|
|
3822
3815
|
}
|
|
3823
3816
|
}, vm = Object.prototype.toString, dm = "[object Number]", mm = Mn(), pm = function(r) {
|
|
3824
3817
|
return typeof r == "number" ? !0 : typeof r != "object" ? !1 : mm ? ym(r) : vm.call(r) === dm;
|
|
3825
|
-
},
|
|
3818
|
+
}, $c = bt, _m = $c("Boolean.prototype.toString"), Em = $c("Object.prototype.toString"), km = function(r) {
|
|
3826
3819
|
try {
|
|
3827
3820
|
return _m(r), !0;
|
|
3828
3821
|
} catch {
|
|
@@ -3850,8 +3843,8 @@ if (wm) {
|
|
|
3850
3843
|
la.exports = function(r) {
|
|
3851
3844
|
return !1;
|
|
3852
3845
|
};
|
|
3853
|
-
var Cm = la.exports, ca = { exports: {} },
|
|
3854
|
-
return typeof
|
|
3846
|
+
var Cm = la.exports, ca = { exports: {} }, Ku = typeof BigInt < "u" && BigInt, Om = function() {
|
|
3847
|
+
return typeof Ku == "function" && typeof BigInt == "function" && typeof Ku(42) == "bigint" && typeof BigInt(42) == "bigint";
|
|
3855
3848
|
}, Rm = Om();
|
|
3856
3849
|
if (Rm) {
|
|
3857
3850
|
var Mm = BigInt.prototype.valueOf, Pm = function(r) {
|
|
@@ -3868,7 +3861,7 @@ if (Rm) {
|
|
|
3868
3861
|
ca.exports = function(r) {
|
|
3869
3862
|
return !1;
|
|
3870
3863
|
};
|
|
3871
|
-
var Am = ca.exports, Dm =
|
|
3864
|
+
var Am = ca.exports, Dm = Gc, Fm = pm, Bm = Im, Gm = Cm, qm = Am, zm = function(r) {
|
|
3872
3865
|
if (r == null || typeof r != "object" && typeof r != "function")
|
|
3873
3866
|
return null;
|
|
3874
3867
|
if (Dm(r))
|
|
@@ -3881,15 +3874,15 @@ var Am = ca.exports, Dm = qc, Fm = pm, Bm = Im, Gm = Cm, qm = Am, zm = function(
|
|
|
3881
3874
|
return "Symbol";
|
|
3882
3875
|
if (qm(r))
|
|
3883
3876
|
return "BigInt";
|
|
3884
|
-
},
|
|
3885
|
-
|
|
3877
|
+
}, Pi = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap : null, Qu = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet : null, Ai;
|
|
3878
|
+
Pi || (Ai = function(r) {
|
|
3886
3879
|
return !1;
|
|
3887
3880
|
});
|
|
3888
|
-
var fa =
|
|
3889
|
-
!
|
|
3881
|
+
var fa = Pi ? Pi.prototype.has : null, Bs = Qu ? Qu.prototype.has : null;
|
|
3882
|
+
!Ai && !fa && (Ai = function(r) {
|
|
3890
3883
|
return !1;
|
|
3891
3884
|
});
|
|
3892
|
-
var Um =
|
|
3885
|
+
var Um = Ai || function(r) {
|
|
3893
3886
|
if (!r || typeof r != "object")
|
|
3894
3887
|
return !1;
|
|
3895
3888
|
try {
|
|
@@ -3899,13 +3892,13 @@ var Um = Pi || function(r) {
|
|
|
3899
3892
|
} catch {
|
|
3900
3893
|
return !0;
|
|
3901
3894
|
}
|
|
3902
|
-
return r instanceof
|
|
3895
|
+
return r instanceof Pi;
|
|
3903
3896
|
} catch {
|
|
3904
3897
|
}
|
|
3905
3898
|
return !1;
|
|
3906
|
-
}, ha = { exports: {} }, Ym = Ut,
|
|
3899
|
+
}, ha = { exports: {} }, Ym = Ut, ef = bt, Wm = Ym("%WeakSet%", !0), Gs = ef("WeakSet.prototype.has", !0);
|
|
3907
3900
|
if (Gs) {
|
|
3908
|
-
var qs =
|
|
3901
|
+
var qs = ef("WeakMap.prototype.has", !0);
|
|
3909
3902
|
ha.exports = function(r) {
|
|
3910
3903
|
if (!r || typeof r != "object")
|
|
3911
3904
|
return !1;
|
|
@@ -3925,7 +3918,7 @@ if (Gs) {
|
|
|
3925
3918
|
ha.exports = function(r) {
|
|
3926
3919
|
return !1;
|
|
3927
3920
|
};
|
|
3928
|
-
var Xm = ha.exports, jm =
|
|
3921
|
+
var Xm = ha.exports, jm = zc, Vm = Yc, Hm = Um, Zm = Xm, Km = function(r) {
|
|
3929
3922
|
if (r && typeof r == "object") {
|
|
3930
3923
|
if (jm(r))
|
|
3931
3924
|
return "Map";
|
|
@@ -3937,43 +3930,43 @@ var Xm = ha.exports, jm = Uc, Vm = Wc, Hm = Um, Zm = Xm, Km = function(r) {
|
|
|
3937
3930
|
return "WeakSet";
|
|
3938
3931
|
}
|
|
3939
3932
|
return !1;
|
|
3940
|
-
},
|
|
3933
|
+
}, tf = Function.prototype.toString, er = typeof Reflect == "object" && Reflect !== null && Reflect.apply, ga, xi;
|
|
3941
3934
|
if (typeof er == "function" && typeof Object.defineProperty == "function")
|
|
3942
3935
|
try {
|
|
3943
3936
|
ga = Object.defineProperty({}, "length", {
|
|
3944
3937
|
get: function() {
|
|
3945
|
-
throw
|
|
3938
|
+
throw xi;
|
|
3946
3939
|
}
|
|
3947
|
-
}),
|
|
3940
|
+
}), xi = {}, er(function() {
|
|
3948
3941
|
throw 42;
|
|
3949
3942
|
}, null, ga);
|
|
3950
3943
|
} catch (a) {
|
|
3951
|
-
a !==
|
|
3944
|
+
a !== xi && (er = null);
|
|
3952
3945
|
}
|
|
3953
3946
|
else
|
|
3954
3947
|
er = null;
|
|
3955
3948
|
var Qm = /^\s*class\b/, ya = function(r) {
|
|
3956
3949
|
try {
|
|
3957
|
-
var i =
|
|
3950
|
+
var i = tf.call(r);
|
|
3958
3951
|
return Qm.test(i);
|
|
3959
3952
|
} catch {
|
|
3960
3953
|
return !1;
|
|
3961
3954
|
}
|
|
3962
3955
|
}, zs = function(r) {
|
|
3963
3956
|
try {
|
|
3964
|
-
return ya(r) ? !1 : (
|
|
3957
|
+
return ya(r) ? !1 : (tf.call(r), !0);
|
|
3965
3958
|
} catch {
|
|
3966
3959
|
return !1;
|
|
3967
3960
|
}
|
|
3968
|
-
},
|
|
3961
|
+
}, Si = Object.prototype.toString, Jm = "[object Object]", $m = "[object Function]", ep = "[object GeneratorFunction]", tp = "[object HTMLAllCollection]", np = "[object HTML document.all class]", rp = "[object HTMLCollection]", ip = typeof Symbol == "function" && !!Symbol.toStringTag, sp = !(0 in [,]), va = function() {
|
|
3969
3962
|
return !1;
|
|
3970
3963
|
};
|
|
3971
3964
|
if (typeof document == "object") {
|
|
3972
3965
|
var ap = document.all;
|
|
3973
|
-
|
|
3966
|
+
Si.call(ap) === Si.call(document.all) && (va = function(r) {
|
|
3974
3967
|
if ((sp || !r) && (typeof r > "u" || typeof r == "object"))
|
|
3975
3968
|
try {
|
|
3976
|
-
var i =
|
|
3969
|
+
var i = Si.call(r);
|
|
3977
3970
|
return (i === tp || i === np || i === rp || i === Jm) && r("") == null;
|
|
3978
3971
|
} catch {
|
|
3979
3972
|
}
|
|
@@ -3988,7 +3981,7 @@ var op = er ? function(r) {
|
|
|
3988
3981
|
try {
|
|
3989
3982
|
er(r, null, ga);
|
|
3990
3983
|
} catch (i) {
|
|
3991
|
-
if (i !==
|
|
3984
|
+
if (i !== xi)
|
|
3992
3985
|
return !1;
|
|
3993
3986
|
}
|
|
3994
3987
|
return !ya(r) && zs(r);
|
|
@@ -4001,17 +3994,17 @@ var op = er ? function(r) {
|
|
|
4001
3994
|
return zs(r);
|
|
4002
3995
|
if (ya(r))
|
|
4003
3996
|
return !1;
|
|
4004
|
-
var i =
|
|
3997
|
+
var i = Si.call(r);
|
|
4005
3998
|
return i !== $m && i !== ep && !/^\[object HTML/.test(i) ? !1 : zs(r);
|
|
4006
|
-
}, up = op, lp = Object.prototype.toString,
|
|
3999
|
+
}, up = op, lp = Object.prototype.toString, nf = Object.prototype.hasOwnProperty, cp = function(r, i, u) {
|
|
4007
4000
|
for (var l = 0, f = r.length; l < f; l++)
|
|
4008
|
-
|
|
4001
|
+
nf.call(r, l) && (u == null ? i(r[l], l, r) : i.call(u, r[l], l, r));
|
|
4009
4002
|
}, fp = function(r, i, u) {
|
|
4010
4003
|
for (var l = 0, f = r.length; l < f; l++)
|
|
4011
4004
|
u == null ? i(r.charAt(l), l, r) : i.call(u, r.charAt(l), l, r);
|
|
4012
4005
|
}, hp = function(r, i, u) {
|
|
4013
4006
|
for (var l in r)
|
|
4014
|
-
|
|
4007
|
+
nf.call(r, l) && (u == null ? i(r[l], l, r) : i.call(u, r[l], l, r));
|
|
4015
4008
|
}, gp = function(r, i, u) {
|
|
4016
4009
|
if (!up(i))
|
|
4017
4010
|
throw new TypeError("iterator must be a function");
|
|
@@ -4029,37 +4022,37 @@ var op = er ? function(r) {
|
|
|
4029
4022
|
"Uint32Array",
|
|
4030
4023
|
"BigInt64Array",
|
|
4031
4024
|
"BigUint64Array"
|
|
4032
|
-
], Us = vp, dp = typeof globalThis > "u" ?
|
|
4025
|
+
], Us = vp, dp = typeof globalThis > "u" ? Qi : globalThis, mp = function() {
|
|
4033
4026
|
for (var r = [], i = 0; i < Us.length; i++)
|
|
4034
4027
|
typeof dp[Us[i]] == "function" && (r[r.length] = Us[i]);
|
|
4035
4028
|
return r;
|
|
4036
|
-
},
|
|
4029
|
+
}, Di = yp, pp = mp, Ju = lr, Wa = bt, Ii = Pa, _p = Wa("Object.prototype.toString"), rf = Mn(), $u = typeof globalThis > "u" ? Qi : globalThis, da = pp(), Xa = Wa("String.prototype.slice"), Ys = Object.getPrototypeOf, Ep = Wa("Array.prototype.indexOf", !0) || function(r, i) {
|
|
4037
4030
|
for (var u = 0; u < r.length; u += 1)
|
|
4038
4031
|
if (r[u] === i)
|
|
4039
4032
|
return u;
|
|
4040
4033
|
return -1;
|
|
4041
|
-
},
|
|
4042
|
-
|
|
4043
|
-
var r = new
|
|
4034
|
+
}, Fi = { __proto__: null };
|
|
4035
|
+
rf && Ii && Ys ? Di(da, function(a) {
|
|
4036
|
+
var r = new $u[a]();
|
|
4044
4037
|
if (Symbol.toStringTag in r) {
|
|
4045
|
-
var i = Ys(r), u =
|
|
4038
|
+
var i = Ys(r), u = Ii(i, Symbol.toStringTag);
|
|
4046
4039
|
if (!u) {
|
|
4047
4040
|
var l = Ys(i);
|
|
4048
|
-
u =
|
|
4041
|
+
u = Ii(l, Symbol.toStringTag);
|
|
4049
4042
|
}
|
|
4050
|
-
|
|
4043
|
+
Fi["$" + a] = Ju(u.get);
|
|
4051
4044
|
}
|
|
4052
|
-
}) :
|
|
4053
|
-
var r = new
|
|
4054
|
-
i && (
|
|
4045
|
+
}) : Di(da, function(a) {
|
|
4046
|
+
var r = new $u[a](), i = r.slice || r.set;
|
|
4047
|
+
i && (Fi["$" + a] = Ju(i));
|
|
4055
4048
|
});
|
|
4056
4049
|
var kp = function(r) {
|
|
4057
4050
|
var i = !1;
|
|
4058
|
-
return
|
|
4051
|
+
return Di(
|
|
4059
4052
|
// eslint-disable-next-line no-extra-parens
|
|
4060
4053
|
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
4061
4054
|
/** @type {any} */
|
|
4062
|
-
|
|
4055
|
+
Fi,
|
|
4063
4056
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
4064
4057
|
function(u, l) {
|
|
4065
4058
|
if (!i)
|
|
@@ -4071,11 +4064,11 @@ var kp = function(r) {
|
|
|
4071
4064
|
), i;
|
|
4072
4065
|
}, xp = function(r) {
|
|
4073
4066
|
var i = !1;
|
|
4074
|
-
return
|
|
4067
|
+
return Di(
|
|
4075
4068
|
// eslint-disable-next-line no-extra-parens
|
|
4076
4069
|
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
4077
4070
|
/** @type {any} */
|
|
4078
|
-
|
|
4071
|
+
Fi,
|
|
4079
4072
|
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
4080
4073
|
function(u, l) {
|
|
4081
4074
|
if (!i)
|
|
@@ -4088,53 +4081,53 @@ var kp = function(r) {
|
|
|
4088
4081
|
}, Sp = function(r) {
|
|
4089
4082
|
if (!r || typeof r != "object")
|
|
4090
4083
|
return !1;
|
|
4091
|
-
if (!
|
|
4084
|
+
if (!rf) {
|
|
4092
4085
|
var i = Xa(_p(r), 8, -1);
|
|
4093
4086
|
return Ep(da, i) > -1 ? i : i !== "Object" ? !1 : xp(r);
|
|
4094
4087
|
}
|
|
4095
|
-
return
|
|
4096
|
-
}, Ip = bt,
|
|
4097
|
-
return bp(r) ?
|
|
4098
|
-
},
|
|
4099
|
-
function
|
|
4088
|
+
return Ii ? kp(r) : null;
|
|
4089
|
+
}, Ip = bt, el = Ip("ArrayBuffer.prototype.byteLength", !0), bp = Zc, wp = function(r) {
|
|
4090
|
+
return bp(r) ? el ? el(r) : r.byteLength : NaN;
|
|
4091
|
+
}, sf = iv, Yt = bt, tl = Lv, Np = Ut, sr = Ud, Lp = Fc, nl = Qd, rl = Tc, il = Bc, sl = Zc, al = am, ol = cm, ul = hm, ll = Ca, cl = zm, fl = Km, hl = Sp, gl = wp, yl = Yt("SharedArrayBuffer.prototype.byteLength", !0), vl = Yt("Date.prototype.getTime"), Ws = Object.getPrototypeOf, dl = Yt("Object.prototype.toString"), Bi = Np("%Set%", !0), ma = Yt("Map.prototype.has", !0), Gi = Yt("Map.prototype.get", !0), ml = Yt("Map.prototype.size", !0), qi = Yt("Set.prototype.add", !0), af = Yt("Set.prototype.delete", !0), zi = Yt("Set.prototype.has", !0), bi = Yt("Set.prototype.size", !0);
|
|
4092
|
+
function pl(a, r, i, u) {
|
|
4100
4093
|
for (var l = sr(a), f; (f = l.next()) && !f.done; )
|
|
4101
4094
|
if (Rt(r, f.value, i, u))
|
|
4102
|
-
return
|
|
4095
|
+
return af(a, f.value), !0;
|
|
4103
4096
|
return !1;
|
|
4104
4097
|
}
|
|
4105
|
-
function
|
|
4098
|
+
function of(a) {
|
|
4106
4099
|
if (typeof a > "u")
|
|
4107
4100
|
return null;
|
|
4108
4101
|
if (typeof a != "object")
|
|
4109
4102
|
return typeof a == "symbol" ? !1 : typeof a == "string" || typeof a == "number" ? +a == +a : !0;
|
|
4110
4103
|
}
|
|
4111
4104
|
function Tp(a, r, i, u, l, f) {
|
|
4112
|
-
var g =
|
|
4105
|
+
var g = of(i);
|
|
4113
4106
|
if (g != null)
|
|
4114
4107
|
return g;
|
|
4115
|
-
var v =
|
|
4108
|
+
var v = Gi(r, g), m = sf({}, l, { strict: !1 });
|
|
4116
4109
|
return typeof v > "u" && !ma(r, g) || !Rt(u, v, m, f) ? !1 : !ma(a, g) && Rt(u, v, m, f);
|
|
4117
4110
|
}
|
|
4118
4111
|
function Cp(a, r, i) {
|
|
4119
|
-
var u =
|
|
4120
|
-
return u ?? (
|
|
4112
|
+
var u = of(i);
|
|
4113
|
+
return u ?? (zi(r, u) && !zi(a, u));
|
|
4121
4114
|
}
|
|
4122
|
-
function
|
|
4115
|
+
function _l(a, r, i, u, l, f) {
|
|
4123
4116
|
for (var g = sr(a), v, m; (v = g.next()) && !v.done; )
|
|
4124
4117
|
if (m = v.value, // eslint-disable-next-line no-use-before-define
|
|
4125
|
-
Rt(i, m, l, f) && Rt(u,
|
|
4126
|
-
return
|
|
4118
|
+
Rt(i, m, l, f) && Rt(u, Gi(r, m), l, f))
|
|
4119
|
+
return af(a, m), !0;
|
|
4127
4120
|
return !1;
|
|
4128
4121
|
}
|
|
4129
4122
|
function Rt(a, r, i, u) {
|
|
4130
4123
|
var l = i || {};
|
|
4131
|
-
if (l.strict ?
|
|
4124
|
+
if (l.strict ? nl(a, r) : a === r)
|
|
4132
4125
|
return !0;
|
|
4133
|
-
var f =
|
|
4126
|
+
var f = cl(a), g = cl(r);
|
|
4134
4127
|
if (f !== g)
|
|
4135
4128
|
return !1;
|
|
4136
4129
|
if (!a || !r || typeof a != "object" && typeof r != "object")
|
|
4137
|
-
return l.strict ?
|
|
4130
|
+
return l.strict ? nl(a, r) : a == r;
|
|
4138
4131
|
var v = u.has(a), m = u.has(r), _;
|
|
4139
4132
|
if (v && m) {
|
|
4140
4133
|
if (u.get(a) === u.get(r))
|
|
@@ -4143,70 +4136,70 @@ function Rt(a, r, i, u) {
|
|
|
4143
4136
|
_ = {};
|
|
4144
4137
|
return v || u.set(a, _), m || u.set(r, _), Mp(a, r, l, u);
|
|
4145
4138
|
}
|
|
4146
|
-
function
|
|
4139
|
+
function El(a) {
|
|
4147
4140
|
return !a || typeof a != "object" || typeof a.length != "number" || typeof a.copy != "function" || typeof a.slice != "function" || a.length > 0 && typeof a[0] != "number" ? !1 : !!(a.constructor && a.constructor.isBuffer && a.constructor.isBuffer(a));
|
|
4148
4141
|
}
|
|
4149
4142
|
function Op(a, r, i, u) {
|
|
4150
|
-
if (
|
|
4143
|
+
if (bi(a) !== bi(r))
|
|
4151
4144
|
return !1;
|
|
4152
4145
|
for (var l = sr(a), f = sr(r), g, v, m; (g = l.next()) && !g.done; )
|
|
4153
4146
|
if (g.value && typeof g.value == "object")
|
|
4154
|
-
m || (m = new
|
|
4155
|
-
else if (!
|
|
4147
|
+
m || (m = new Bi()), qi(m, g.value);
|
|
4148
|
+
else if (!zi(r, g.value)) {
|
|
4156
4149
|
if (i.strict || !Cp(a, r, g.value))
|
|
4157
4150
|
return !1;
|
|
4158
|
-
m || (m = new
|
|
4151
|
+
m || (m = new Bi()), qi(m, g.value);
|
|
4159
4152
|
}
|
|
4160
4153
|
if (m) {
|
|
4161
4154
|
for (; (v = f.next()) && !v.done; )
|
|
4162
4155
|
if (v.value && typeof v.value == "object") {
|
|
4163
|
-
if (!
|
|
4156
|
+
if (!pl(m, v.value, i.strict, u))
|
|
4164
4157
|
return !1;
|
|
4165
|
-
} else if (!i.strict && !
|
|
4158
|
+
} else if (!i.strict && !zi(a, v.value) && !pl(m, v.value, i.strict, u))
|
|
4166
4159
|
return !1;
|
|
4167
|
-
return
|
|
4160
|
+
return bi(m) === 0;
|
|
4168
4161
|
}
|
|
4169
4162
|
return !0;
|
|
4170
4163
|
}
|
|
4171
4164
|
function Rp(a, r, i, u) {
|
|
4172
|
-
if (
|
|
4165
|
+
if (ml(a) !== ml(r))
|
|
4173
4166
|
return !1;
|
|
4174
4167
|
for (var l = sr(a), f = sr(r), g, v, m, _, k, p; (g = l.next()) && !g.done; )
|
|
4175
4168
|
if (_ = g.value[0], k = g.value[1], _ && typeof _ == "object")
|
|
4176
|
-
m || (m = new
|
|
4177
|
-
else if (p =
|
|
4169
|
+
m || (m = new Bi()), qi(m, _);
|
|
4170
|
+
else if (p = Gi(r, _), typeof p > "u" && !ma(r, _) || !Rt(k, p, i, u)) {
|
|
4178
4171
|
if (i.strict || !Tp(a, r, _, k, i, u))
|
|
4179
4172
|
return !1;
|
|
4180
|
-
m || (m = new
|
|
4173
|
+
m || (m = new Bi()), qi(m, _);
|
|
4181
4174
|
}
|
|
4182
4175
|
if (m) {
|
|
4183
4176
|
for (; (v = f.next()) && !v.done; )
|
|
4184
4177
|
if (_ = v.value[0], p = v.value[1], _ && typeof _ == "object") {
|
|
4185
|
-
if (!
|
|
4178
|
+
if (!_l(m, a, _, p, i, u))
|
|
4186
4179
|
return !1;
|
|
4187
|
-
} else if (!i.strict && (!a.has(_) || !Rt(
|
|
4180
|
+
} else if (!i.strict && (!a.has(_) || !Rt(Gi(a, _), p, i, u)) && !_l(m, a, _, p, sf({}, i, { strict: !1 }), u))
|
|
4188
4181
|
return !1;
|
|
4189
|
-
return
|
|
4182
|
+
return bi(m) === 0;
|
|
4190
4183
|
}
|
|
4191
4184
|
return !0;
|
|
4192
4185
|
}
|
|
4193
4186
|
function Mp(a, r, i, u) {
|
|
4194
4187
|
var l, f;
|
|
4195
|
-
if (typeof a != typeof r || a == null || r == null ||
|
|
4188
|
+
if (typeof a != typeof r || a == null || r == null || dl(a) !== dl(r) || rl(a) !== rl(r))
|
|
4196
4189
|
return !1;
|
|
4197
|
-
var g =
|
|
4190
|
+
var g = il(a), v = il(r);
|
|
4198
4191
|
if (g !== v)
|
|
4199
4192
|
return !1;
|
|
4200
4193
|
var m = a instanceof Error, _ = r instanceof Error;
|
|
4201
4194
|
if (m !== _ || (m || _) && (a.name !== r.name || a.message !== r.message))
|
|
4202
4195
|
return !1;
|
|
4203
|
-
var k =
|
|
4204
|
-
if (k !== p || (k || p) && (a.source !== r.source ||
|
|
4196
|
+
var k = ol(a), p = ol(r);
|
|
4197
|
+
if (k !== p || (k || p) && (a.source !== r.source || tl(a) !== tl(r)))
|
|
4205
4198
|
return !1;
|
|
4206
|
-
var x =
|
|
4207
|
-
if (x !== S || (x || S) &&
|
|
4199
|
+
var x = al(a), S = al(r);
|
|
4200
|
+
if (x !== S || (x || S) && vl(a) !== vl(r) || i.strict && Ws && Ws(a) !== Ws(r))
|
|
4208
4201
|
return !1;
|
|
4209
|
-
var b =
|
|
4202
|
+
var b = hl(a), R = hl(r);
|
|
4210
4203
|
if (b !== R)
|
|
4211
4204
|
return !1;
|
|
4212
4205
|
if (b || R) {
|
|
@@ -4217,7 +4210,7 @@ function Mp(a, r, i, u) {
|
|
|
4217
4210
|
return !1;
|
|
4218
4211
|
return !0;
|
|
4219
4212
|
}
|
|
4220
|
-
var L =
|
|
4213
|
+
var L = El(a), T = El(r);
|
|
4221
4214
|
if (L !== T)
|
|
4222
4215
|
return !1;
|
|
4223
4216
|
if (L || T) {
|
|
@@ -4228,19 +4221,19 @@ function Mp(a, r, i, u) {
|
|
|
4228
4221
|
return !1;
|
|
4229
4222
|
return !0;
|
|
4230
4223
|
}
|
|
4231
|
-
var M =
|
|
4224
|
+
var M = sl(a), P = sl(r);
|
|
4232
4225
|
if (M !== P)
|
|
4233
4226
|
return !1;
|
|
4234
4227
|
if (M || P)
|
|
4235
|
-
return
|
|
4236
|
-
var A =
|
|
4228
|
+
return gl(a) !== gl(r) ? !1 : typeof Uint8Array == "function" && Rt(new Uint8Array(a), new Uint8Array(r), i, u);
|
|
4229
|
+
var A = ul(a), O = ul(r);
|
|
4237
4230
|
if (A !== O)
|
|
4238
4231
|
return !1;
|
|
4239
4232
|
if (A || O)
|
|
4240
|
-
return
|
|
4233
|
+
return yl(a) !== yl(r) ? !1 : typeof Uint8Array == "function" && Rt(new Uint8Array(a), new Uint8Array(r), i, u);
|
|
4241
4234
|
if (typeof a != typeof r)
|
|
4242
4235
|
return !1;
|
|
4243
|
-
var z =
|
|
4236
|
+
var z = ll(a), q = ll(r);
|
|
4244
4237
|
if (z.length !== q.length)
|
|
4245
4238
|
return !1;
|
|
4246
4239
|
for (z.sort(), q.sort(), l = z.length - 1; l >= 0; l--)
|
|
@@ -4249,13 +4242,13 @@ function Mp(a, r, i, u) {
|
|
|
4249
4242
|
for (l = z.length - 1; l >= 0; l--)
|
|
4250
4243
|
if (f = z[l], !Rt(a[f], r[f], i, u))
|
|
4251
4244
|
return !1;
|
|
4252
|
-
var U =
|
|
4245
|
+
var U = fl(a), D = fl(r);
|
|
4253
4246
|
return U !== D ? !1 : U === "Set" || D === "Set" ? Op(a, r, i, u) : U === "Map" ? Rp(a, r, i, u) : !0;
|
|
4254
4247
|
}
|
|
4255
4248
|
var Pp = function(r, i, u) {
|
|
4256
4249
|
return Rt(r, i, u, Lp());
|
|
4257
4250
|
};
|
|
4258
|
-
const Ap = /* @__PURE__ */
|
|
4251
|
+
const Ap = /* @__PURE__ */ oc(Pp);
|
|
4259
4252
|
var Dp = Object.defineProperty, Ee = (a, r) => Dp(a, "name", { value: r, configurable: !0 }), Fp = class {
|
|
4260
4253
|
constructor(r) {
|
|
4261
4254
|
this.direction = !1, this.compareProperties = !0;
|
|
@@ -4357,7 +4350,7 @@ function pa(a) {
|
|
|
4357
4350
|
}));
|
|
4358
4351
|
}
|
|
4359
4352
|
Ee(pa, "explode");
|
|
4360
|
-
var it = 63710088e-1,
|
|
4353
|
+
var it = 63710088e-1, uf = {
|
|
4361
4354
|
centimeters: it * 100,
|
|
4362
4355
|
centimetres: it * 100,
|
|
4363
4356
|
degrees: 360 / (2 * Math.PI),
|
|
@@ -4373,7 +4366,7 @@ var it = 63710088e-1, lf = {
|
|
|
4373
4366
|
nauticalmiles: it / 1852,
|
|
4374
4367
|
radians: 1,
|
|
4375
4368
|
yards: it * 1.0936
|
|
4376
|
-
},
|
|
4369
|
+
}, kl = {
|
|
4377
4370
|
acres: 247105e-9,
|
|
4378
4371
|
centimeters: 1e4,
|
|
4379
4372
|
centimetres: 1e4,
|
|
@@ -4404,11 +4397,11 @@ function Bp(a, r, i = {}) {
|
|
|
4404
4397
|
case "Polygon":
|
|
4405
4398
|
return fr(r).geometry;
|
|
4406
4399
|
case "MultiPoint":
|
|
4407
|
-
return ff(r).geometry;
|
|
4408
|
-
case "MultiLineString":
|
|
4409
4400
|
return cf(r).geometry;
|
|
4401
|
+
case "MultiLineString":
|
|
4402
|
+
return lf(r).geometry;
|
|
4410
4403
|
case "MultiPolygon":
|
|
4411
|
-
return
|
|
4404
|
+
return es(r).geometry;
|
|
4412
4405
|
default:
|
|
4413
4406
|
throw new Error(a + " is invalid");
|
|
4414
4407
|
}
|
|
@@ -4421,7 +4414,7 @@ function Gt(a, r, i = {}) {
|
|
|
4421
4414
|
throw new Error("coordinates must be an Array");
|
|
4422
4415
|
if (a.length < 2)
|
|
4423
4416
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
4424
|
-
if (!
|
|
4417
|
+
if (!Ui(a[0]) || !Ui(a[1]))
|
|
4425
4418
|
throw new Error("coordinates must contain numbers");
|
|
4426
4419
|
return It({
|
|
4427
4420
|
type: "Point",
|
|
@@ -4482,27 +4475,27 @@ function Mt(a, r = {}) {
|
|
|
4482
4475
|
return r.id && (i.id = r.id), r.bbox && (i.bbox = r.bbox), i.features = a, i;
|
|
4483
4476
|
}
|
|
4484
4477
|
Ee(Mt, "featureCollection");
|
|
4485
|
-
function
|
|
4478
|
+
function lf(a, r, i = {}) {
|
|
4486
4479
|
return It({
|
|
4487
4480
|
type: "MultiLineString",
|
|
4488
4481
|
coordinates: a
|
|
4489
4482
|
}, r, i);
|
|
4490
4483
|
}
|
|
4491
|
-
Ee(
|
|
4492
|
-
function
|
|
4484
|
+
Ee(lf, "multiLineString");
|
|
4485
|
+
function cf(a, r, i = {}) {
|
|
4493
4486
|
return It({
|
|
4494
4487
|
type: "MultiPoint",
|
|
4495
4488
|
coordinates: a
|
|
4496
4489
|
}, r, i);
|
|
4497
4490
|
}
|
|
4498
|
-
Ee(
|
|
4499
|
-
function
|
|
4491
|
+
Ee(cf, "multiPoint");
|
|
4492
|
+
function es(a, r, i = {}) {
|
|
4500
4493
|
return It({
|
|
4501
4494
|
type: "MultiPolygon",
|
|
4502
4495
|
coordinates: a
|
|
4503
4496
|
}, r, i);
|
|
4504
4497
|
}
|
|
4505
|
-
Ee(
|
|
4498
|
+
Ee(es, "multiPolygon");
|
|
4506
4499
|
function Up(a, r, i = {}) {
|
|
4507
4500
|
return It({
|
|
4508
4501
|
type: "GeometryCollection",
|
|
@@ -4518,21 +4511,21 @@ function Yp(a, r = 0) {
|
|
|
4518
4511
|
}
|
|
4519
4512
|
Ee(Yp, "round");
|
|
4520
4513
|
function ja(a, r = "kilometers") {
|
|
4521
|
-
const i =
|
|
4514
|
+
const i = uf[r];
|
|
4522
4515
|
if (!i)
|
|
4523
4516
|
throw new Error(r + " units is invalid");
|
|
4524
4517
|
return a * i;
|
|
4525
4518
|
}
|
|
4526
4519
|
Ee(ja, "radiansToLength");
|
|
4527
|
-
function
|
|
4528
|
-
const i =
|
|
4520
|
+
function ts(a, r = "kilometers") {
|
|
4521
|
+
const i = uf[r];
|
|
4529
4522
|
if (!i)
|
|
4530
4523
|
throw new Error(r + " units is invalid");
|
|
4531
4524
|
return a / i;
|
|
4532
4525
|
}
|
|
4533
|
-
Ee(
|
|
4526
|
+
Ee(ts, "lengthToRadians");
|
|
4534
4527
|
function Wp(a, r) {
|
|
4535
|
-
return
|
|
4528
|
+
return ff(ts(a, r));
|
|
4536
4529
|
}
|
|
4537
4530
|
Ee(Wp, "lengthToDegrees");
|
|
4538
4531
|
function Xp(a) {
|
|
@@ -4540,10 +4533,10 @@ function Xp(a) {
|
|
|
4540
4533
|
return r < 0 && (r += 360), r;
|
|
4541
4534
|
}
|
|
4542
4535
|
Ee(Xp, "bearingToAzimuth");
|
|
4543
|
-
function
|
|
4536
|
+
function ff(a) {
|
|
4544
4537
|
return a % (2 * Math.PI) * 180 / Math.PI;
|
|
4545
4538
|
}
|
|
4546
|
-
Ee(
|
|
4539
|
+
Ee(ff, "radiansToDegrees");
|
|
4547
4540
|
function jp(a) {
|
|
4548
4541
|
return a % 360 * Math.PI / 180;
|
|
4549
4542
|
}
|
|
@@ -4551,25 +4544,25 @@ Ee(jp, "degreesToRadians");
|
|
|
4551
4544
|
function Vp(a, r = "kilometers", i = "kilometers") {
|
|
4552
4545
|
if (!(a >= 0))
|
|
4553
4546
|
throw new Error("length must be a positive number");
|
|
4554
|
-
return ja(
|
|
4547
|
+
return ja(ts(a, r), i);
|
|
4555
4548
|
}
|
|
4556
4549
|
Ee(Vp, "convertLength");
|
|
4557
4550
|
function Hp(a, r = "meters", i = "kilometers") {
|
|
4558
4551
|
if (!(a >= 0))
|
|
4559
4552
|
throw new Error("area must be a positive number");
|
|
4560
|
-
const u =
|
|
4553
|
+
const u = kl[r];
|
|
4561
4554
|
if (!u)
|
|
4562
4555
|
throw new Error("invalid original units");
|
|
4563
|
-
const l =
|
|
4556
|
+
const l = kl[i];
|
|
4564
4557
|
if (!l)
|
|
4565
4558
|
throw new Error("invalid final units");
|
|
4566
4559
|
return a / u * l;
|
|
4567
4560
|
}
|
|
4568
4561
|
Ee(Hp, "convertArea");
|
|
4569
|
-
function
|
|
4562
|
+
function Ui(a) {
|
|
4570
4563
|
return !isNaN(a) && a !== null && !Array.isArray(a);
|
|
4571
4564
|
}
|
|
4572
|
-
Ee(
|
|
4565
|
+
Ee(Ui, "isNumber");
|
|
4573
4566
|
function Va(a) {
|
|
4574
4567
|
return a !== null && typeof a == "object" && !Array.isArray(a);
|
|
4575
4568
|
}
|
|
@@ -4582,7 +4575,7 @@ function Zp(a) {
|
|
|
4582
4575
|
if (a.length !== 4 && a.length !== 6)
|
|
4583
4576
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
4584
4577
|
a.forEach((r) => {
|
|
4585
|
-
if (!
|
|
4578
|
+
if (!Ui(r))
|
|
4586
4579
|
throw new Error("bbox must only contain numbers");
|
|
4587
4580
|
});
|
|
4588
4581
|
}
|
|
@@ -4727,7 +4720,7 @@ function Xs(a, r, i, u) {
|
|
|
4727
4720
|
var f = u(a, i.key);
|
|
4728
4721
|
return f < 0 ? (l.left = i.left, l.right = i, i.left = null) : f >= 0 && (l.right = i.right, l.left = i, i.right = null), l;
|
|
4729
4722
|
}
|
|
4730
|
-
function
|
|
4723
|
+
function xl(a, r, i) {
|
|
4731
4724
|
var u = null, l = null;
|
|
4732
4725
|
if (r) {
|
|
4733
4726
|
r = sn(a, r, i);
|
|
@@ -4913,10 +4906,10 @@ var Ha = (
|
|
|
4913
4906
|
return i.push(u);
|
|
4914
4907
|
}, r), i.join("");
|
|
4915
4908
|
}, a.prototype.update = function(r, i, u) {
|
|
4916
|
-
var l = this._comparator, f =
|
|
4909
|
+
var l = this._comparator, f = xl(r, this._root, l), g = f.left, v = f.right;
|
|
4917
4910
|
l(r, i) < 0 ? v = Xs(i, u, v, l) : g = Xs(i, u, g, l), this._root = $p(g, v, l);
|
|
4918
4911
|
}, a.prototype.split = function(r) {
|
|
4919
|
-
return
|
|
4912
|
+
return xl(r, this._root, this._comparator);
|
|
4920
4913
|
}, a.prototype[Symbol.iterator] = function() {
|
|
4921
4914
|
var r, i, u;
|
|
4922
4915
|
return Qp(this, function(l) {
|
|
@@ -5014,7 +5007,7 @@ function i0(a, r) {
|
|
|
5014
5007
|
function Vr(a) {
|
|
5015
5008
|
return new Float64Array(a);
|
|
5016
5009
|
}
|
|
5017
|
-
const s0 = (3 + 16 * Kt) * Kt, a0 = (2 + 12 * Kt) * Kt, o0 = (9 + 64 * Kt) * Kt * Kt, Qn = Vr(4),
|
|
5010
|
+
const s0 = (3 + 16 * Kt) * Kt, a0 = (2 + 12 * Kt) * Kt, o0 = (9 + 64 * Kt) * Kt * Kt, Qn = Vr(4), Sl = Vr(8), Il = Vr(12), bl = Vr(16), $e = Vr(4);
|
|
5018
5011
|
function u0(a, r, i, u, l, f, g) {
|
|
5019
5012
|
let v, m, _, k, p, x, S, b, R, L, T, M, P, A, O, z, q, U;
|
|
5020
5013
|
const D = a - l, H = i - l, ee = r - f, Z = u - f;
|
|
@@ -5023,12 +5016,12 @@ function u0(a, r, i, u, l, f, g) {
|
|
|
5023
5016
|
if (ae >= F || -ae >= F || (p = a - D, v = a - (D + p) + (p - l), p = i - H, _ = i - (H + p) + (p - l), p = r - ee, m = r - (ee + p) + (p - f), p = u - Z, k = u - (Z + p) + (p - f), v === 0 && m === 0 && _ === 0 && k === 0) || (F = o0 * g + r0 * Math.abs(ae), ae += D * k + Z * v - (ee * _ + H * m), ae >= F || -ae >= F))
|
|
5024
5017
|
return ae;
|
|
5025
5018
|
A = v * Z, x = Ve * v, S = x - (x - v), b = v - S, x = Ve * Z, R = x - (x - Z), L = Z - R, O = b * L - (A - S * R - b * R - S * L), z = m * H, x = Ve * m, S = x - (x - m), b = m - S, x = Ve * H, R = x - (x - H), L = H - R, q = b * L - (z - S * R - b * R - S * L), T = O - q, p = O - T, $e[0] = O - (T + p) + (p - q), M = A + T, p = M - A, P = A - (M - p) + (T - p), T = P - z, p = P - T, $e[1] = P - (T + p) + (p - z), U = M + T, p = U - M, $e[2] = M - (U - p) + (T - p), $e[3] = U;
|
|
5026
|
-
const K = js(4, Qn, 4, $e,
|
|
5019
|
+
const K = js(4, Qn, 4, $e, Sl);
|
|
5027
5020
|
A = D * k, x = Ve * D, S = x - (x - D), b = D - S, x = Ve * k, R = x - (x - k), L = k - R, O = b * L - (A - S * R - b * R - S * L), z = ee * _, x = Ve * ee, S = x - (x - ee), b = ee - S, x = Ve * _, R = x - (x - _), L = _ - R, q = b * L - (z - S * R - b * R - S * L), T = O - q, p = O - T, $e[0] = O - (T + p) + (p - q), M = A + T, p = M - A, P = A - (M - p) + (T - p), T = P - z, p = P - T, $e[1] = P - (T + p) + (p - z), U = M + T, p = U - M, $e[2] = M - (U - p) + (T - p), $e[3] = U;
|
|
5028
|
-
const ie = js(K,
|
|
5021
|
+
const ie = js(K, Sl, 4, $e, Il);
|
|
5029
5022
|
A = v * k, x = Ve * v, S = x - (x - v), b = v - S, x = Ve * k, R = x - (x - k), L = k - R, O = b * L - (A - S * R - b * R - S * L), z = m * _, x = Ve * m, S = x - (x - m), b = m - S, x = Ve * _, R = x - (x - _), L = _ - R, q = b * L - (z - S * R - b * R - S * L), T = O - q, p = O - T, $e[0] = O - (T + p) + (p - q), M = A + T, p = M - A, P = A - (M - p) + (T - p), T = P - z, p = P - T, $e[1] = P - (T + p) + (p - z), U = M + T, p = U - M, $e[2] = M - (U - p) + (T - p), $e[3] = U;
|
|
5030
|
-
const de = js(ie,
|
|
5031
|
-
return
|
|
5023
|
+
const de = js(ie, Il, 4, $e, bl);
|
|
5024
|
+
return bl[de - 1];
|
|
5032
5025
|
}
|
|
5033
5026
|
function l0(a, r, i, u, l, f) {
|
|
5034
5027
|
const g = (r - f) * (i - l), v = (a - l) * (u - f), m = g - v, _ = Math.abs(g + v);
|
|
@@ -5051,7 +5044,7 @@ const Rr = (a, r) => a.ll.x <= r.x && r.x <= a.ur.x && a.ll.y <= r.y && r.y <= a
|
|
|
5051
5044
|
};
|
|
5052
5045
|
let on = Number.EPSILON;
|
|
5053
5046
|
on === void 0 && (on = Math.pow(2, -52));
|
|
5054
|
-
const c0 = on * on,
|
|
5047
|
+
const c0 = on * on, wl = (a, r) => {
|
|
5055
5048
|
if (-on < a && a < on && -on < r && r < on)
|
|
5056
5049
|
return 0;
|
|
5057
5050
|
const i = a - r;
|
|
@@ -5062,7 +5055,7 @@ class f0 {
|
|
|
5062
5055
|
this.reset();
|
|
5063
5056
|
}
|
|
5064
5057
|
reset() {
|
|
5065
|
-
this.xRounder = new
|
|
5058
|
+
this.xRounder = new Nl(), this.yRounder = new Nl();
|
|
5066
5059
|
}
|
|
5067
5060
|
round(r, i) {
|
|
5068
5061
|
return {
|
|
@@ -5071,7 +5064,7 @@ class f0 {
|
|
|
5071
5064
|
};
|
|
5072
5065
|
}
|
|
5073
5066
|
}
|
|
5074
|
-
class
|
|
5067
|
+
class Nl {
|
|
5075
5068
|
constructor() {
|
|
5076
5069
|
this.tree = new Ha(), this.round(0);
|
|
5077
5070
|
}
|
|
@@ -5084,16 +5077,16 @@ class Ll {
|
|
|
5084
5077
|
// angle for t-intersections).
|
|
5085
5078
|
round(r) {
|
|
5086
5079
|
const i = this.tree.add(r), u = this.tree.prev(i);
|
|
5087
|
-
if (u !== null &&
|
|
5080
|
+
if (u !== null && wl(i.key, u.key) === 0)
|
|
5088
5081
|
return this.tree.remove(r), u.key;
|
|
5089
5082
|
const l = this.tree.next(i);
|
|
5090
|
-
return l !== null &&
|
|
5083
|
+
return l !== null && wl(i.key, l.key) === 0 ? (this.tree.remove(r), l.key) : r;
|
|
5091
5084
|
}
|
|
5092
5085
|
}
|
|
5093
|
-
const Wr = new f0(),
|
|
5086
|
+
const Wr = new f0(), wi = (a, r) => a.x * r.y - a.y * r.x, hf = (a, r) => a.x * r.x + a.y * r.y, Ll = (a, r, i) => {
|
|
5094
5087
|
const u = l0(a.x, a.y, r.x, r.y, i.x, i.y);
|
|
5095
5088
|
return u > 0 ? -1 : u < 0 ? 1 : 0;
|
|
5096
|
-
},
|
|
5089
|
+
}, Yi = (a) => Math.sqrt(hf(a, a)), h0 = (a, r, i) => {
|
|
5097
5090
|
const u = {
|
|
5098
5091
|
x: r.x - a.x,
|
|
5099
5092
|
y: r.y - a.y
|
|
@@ -5101,7 +5094,7 @@ const Wr = new f0(), bi = (a, r) => a.x * r.y - a.y * r.x, gf = (a, r) => a.x *
|
|
|
5101
5094
|
x: i.x - a.x,
|
|
5102
5095
|
y: i.y - a.y
|
|
5103
5096
|
};
|
|
5104
|
-
return
|
|
5097
|
+
return wi(l, u) / Yi(l) / Yi(u);
|
|
5105
5098
|
}, g0 = (a, r, i) => {
|
|
5106
5099
|
const u = {
|
|
5107
5100
|
x: r.x - a.x,
|
|
@@ -5110,29 +5103,29 @@ const Wr = new f0(), bi = (a, r) => a.x * r.y - a.y * r.x, gf = (a, r) => a.x *
|
|
|
5110
5103
|
x: i.x - a.x,
|
|
5111
5104
|
y: i.y - a.y
|
|
5112
5105
|
};
|
|
5113
|
-
return
|
|
5114
|
-
},
|
|
5106
|
+
return hf(l, u) / Yi(l) / Yi(u);
|
|
5107
|
+
}, Tl = (a, r, i) => r.y === 0 ? null : {
|
|
5115
5108
|
x: a.x + r.x / r.y * (i - a.y),
|
|
5116
5109
|
y: i
|
|
5117
|
-
},
|
|
5110
|
+
}, Cl = (a, r, i) => r.x === 0 ? null : {
|
|
5118
5111
|
x: i,
|
|
5119
5112
|
y: a.y + r.y / r.x * (i - a.x)
|
|
5120
5113
|
}, y0 = (a, r, i, u) => {
|
|
5121
5114
|
if (r.x === 0)
|
|
5122
|
-
return
|
|
5115
|
+
return Cl(i, u, a.x);
|
|
5123
5116
|
if (u.x === 0)
|
|
5124
|
-
return
|
|
5117
|
+
return Cl(a, r, i.x);
|
|
5125
5118
|
if (r.y === 0)
|
|
5126
|
-
return
|
|
5119
|
+
return Tl(i, u, a.y);
|
|
5127
5120
|
if (u.y === 0)
|
|
5128
|
-
return
|
|
5129
|
-
const l =
|
|
5121
|
+
return Tl(a, r, i.y);
|
|
5122
|
+
const l = wi(r, u);
|
|
5130
5123
|
if (l == 0)
|
|
5131
5124
|
return null;
|
|
5132
5125
|
const f = {
|
|
5133
5126
|
x: i.x - a.x,
|
|
5134
5127
|
y: i.y - a.y
|
|
5135
|
-
}, g =
|
|
5128
|
+
}, g = wi(f, r) / l, v = wi(f, u) / l, m = a.x + v * r.x, _ = i.x + g * u.x, k = a.y + v * r.y, p = i.y + g * u.y, x = (m + _) / 2, S = (k + p) / 2;
|
|
5136
5129
|
return {
|
|
5137
5130
|
x,
|
|
5138
5131
|
y: S
|
|
@@ -5526,7 +5519,7 @@ class un {
|
|
|
5526
5519
|
return this._isInResult;
|
|
5527
5520
|
}
|
|
5528
5521
|
}
|
|
5529
|
-
class
|
|
5522
|
+
class Ol {
|
|
5530
5523
|
constructor(r, i, u) {
|
|
5531
5524
|
if (!Array.isArray(r) || r.length === 0)
|
|
5532
5525
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -5565,7 +5558,7 @@ class d0 {
|
|
|
5565
5558
|
constructor(r, i) {
|
|
5566
5559
|
if (!Array.isArray(r))
|
|
5567
5560
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
5568
|
-
this.exteriorRing = new
|
|
5561
|
+
this.exteriorRing = new Ol(r[0], this, !0), this.bbox = {
|
|
5569
5562
|
ll: {
|
|
5570
5563
|
x: this.exteriorRing.bbox.ll.x,
|
|
5571
5564
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -5576,7 +5569,7 @@ class d0 {
|
|
|
5576
5569
|
}
|
|
5577
5570
|
}, this.interiorRings = [];
|
|
5578
5571
|
for (let u = 1, l = r.length; u < l; u++) {
|
|
5579
|
-
const f = new
|
|
5572
|
+
const f = new Ol(r[u], this, !1);
|
|
5580
5573
|
f.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = f.bbox.ll.x), f.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = f.bbox.ll.y), f.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = f.bbox.ur.x), f.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = f.bbox.ur.y), this.interiorRings.push(f);
|
|
5581
5574
|
}
|
|
5582
5575
|
this.multiPoly = i;
|
|
@@ -5591,7 +5584,7 @@ class d0 {
|
|
|
5591
5584
|
return r;
|
|
5592
5585
|
}
|
|
5593
5586
|
}
|
|
5594
|
-
class
|
|
5587
|
+
class Rl {
|
|
5595
5588
|
constructor(r, i) {
|
|
5596
5589
|
if (!Array.isArray(r))
|
|
5597
5590
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -5625,7 +5618,7 @@ class Ml {
|
|
|
5625
5618
|
return r;
|
|
5626
5619
|
}
|
|
5627
5620
|
}
|
|
5628
|
-
class
|
|
5621
|
+
class Wi {
|
|
5629
5622
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
5630
5623
|
* of closed rings from all the segments marked to be part of the result */
|
|
5631
5624
|
static factory(r) {
|
|
@@ -5655,7 +5648,7 @@ class Yi {
|
|
|
5655
5648
|
}
|
|
5656
5649
|
if (S !== null) {
|
|
5657
5650
|
const R = p.splice(S)[0], L = _.splice(R.index);
|
|
5658
|
-
L.unshift(L[0].otherSE), i.push(new
|
|
5651
|
+
L.unshift(L[0].otherSE), i.push(new Wi(L.reverse()));
|
|
5659
5652
|
continue;
|
|
5660
5653
|
}
|
|
5661
5654
|
p.push({
|
|
@@ -5666,7 +5659,7 @@ class Yi {
|
|
|
5666
5659
|
m = x.sort(b)[0].otherSE;
|
|
5667
5660
|
break;
|
|
5668
5661
|
}
|
|
5669
|
-
i.push(new
|
|
5662
|
+
i.push(new Wi(_));
|
|
5670
5663
|
}
|
|
5671
5664
|
return i;
|
|
5672
5665
|
}
|
|
@@ -5681,12 +5674,12 @@ class Yi {
|
|
|
5681
5674
|
const i = [r];
|
|
5682
5675
|
for (let _ = 1, k = this.events.length - 1; _ < k; _++) {
|
|
5683
5676
|
const p = this.events[_].point, x = this.events[_ + 1].point;
|
|
5684
|
-
|
|
5677
|
+
Ll(p, r, x) !== 0 && (i.push(p), r = p);
|
|
5685
5678
|
}
|
|
5686
5679
|
if (i.length === 1)
|
|
5687
5680
|
return null;
|
|
5688
5681
|
const u = i[0], l = i[1];
|
|
5689
|
-
|
|
5682
|
+
Ll(u, r, l) === 0 && i.shift(), i.push(i[0]);
|
|
5690
5683
|
const f = this.isExteriorRing() ? 1 : -1, g = this.isExteriorRing() ? 0 : i.length - 1, v = this.isExteriorRing() ? i.length : -1, m = [];
|
|
5691
5684
|
for (let _ = g; _ != v; _ += f)
|
|
5692
5685
|
m.push([i[_].x, i[_].y]);
|
|
@@ -5721,7 +5714,7 @@ class Yi {
|
|
|
5721
5714
|
}
|
|
5722
5715
|
}
|
|
5723
5716
|
}
|
|
5724
|
-
class
|
|
5717
|
+
class Ml {
|
|
5725
5718
|
constructor(r) {
|
|
5726
5719
|
this.exteriorRing = r, r.poly = this, this.interiorRings = [];
|
|
5727
5720
|
}
|
|
@@ -5757,10 +5750,10 @@ class m0 {
|
|
|
5757
5750
|
const f = r[u];
|
|
5758
5751
|
if (!f.poly)
|
|
5759
5752
|
if (f.isExteriorRing())
|
|
5760
|
-
i.push(new
|
|
5753
|
+
i.push(new Ml(f));
|
|
5761
5754
|
else {
|
|
5762
5755
|
const g = f.enclosingRing();
|
|
5763
|
-
g.poly || i.push(new
|
|
5756
|
+
g.poly || i.push(new Ml(g)), g.poly.addInterior(f);
|
|
5764
5757
|
}
|
|
5765
5758
|
}
|
|
5766
5759
|
return i;
|
|
@@ -5840,13 +5833,13 @@ class p0 {
|
|
|
5840
5833
|
return l.push(u), r.consumedBy === void 0 && this.tree.add(r), l;
|
|
5841
5834
|
}
|
|
5842
5835
|
}
|
|
5843
|
-
const
|
|
5836
|
+
const Pl = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, _0 = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
|
|
5844
5837
|
class E0 {
|
|
5845
5838
|
run(r, i, u) {
|
|
5846
5839
|
Ct.type = r, Wr.reset();
|
|
5847
|
-
const l = [new
|
|
5840
|
+
const l = [new Rl(i, !0)];
|
|
5848
5841
|
for (let p = 0, x = u.length; p < x; p++)
|
|
5849
|
-
l.push(new
|
|
5842
|
+
l.push(new Rl(u[p], !1));
|
|
5850
5843
|
if (Ct.numMultiPolys = l.length, Ct.type === "difference") {
|
|
5851
5844
|
const p = l[0];
|
|
5852
5845
|
let x = 1;
|
|
@@ -5864,7 +5857,7 @@ class E0 {
|
|
|
5864
5857
|
for (let p = 0, x = l.length; p < x; p++) {
|
|
5865
5858
|
const S = l[p].getSweepEvents();
|
|
5866
5859
|
for (let b = 0, R = S.length; b < R; b++)
|
|
5867
|
-
if (f.insert(S[b]), f.size >
|
|
5860
|
+
if (f.insert(S[b]), f.size > Pl)
|
|
5868
5861
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
|
|
5869
5862
|
}
|
|
5870
5863
|
const g = new p0(f);
|
|
@@ -5875,7 +5868,7 @@ class E0 {
|
|
|
5875
5868
|
const S = p.segment;
|
|
5876
5869
|
throw new Error(`Unable to pop() ${p.isLeft ? "left" : "right"} SweepEvent [${p.point.x}, ${p.point.y}] from segment #${S.id} [${S.leftSE.point.x}, ${S.leftSE.point.y}] -> [${S.rightSE.point.x}, ${S.rightSE.point.y}] from queue.`);
|
|
5877
5870
|
}
|
|
5878
|
-
if (f.size >
|
|
5871
|
+
if (f.size > Pl)
|
|
5879
5872
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
|
|
5880
5873
|
if (g.segments.length > _0)
|
|
5881
5874
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
|
|
@@ -5887,7 +5880,7 @@ class E0 {
|
|
|
5887
5880
|
v = f.size, m = f.pop();
|
|
5888
5881
|
}
|
|
5889
5882
|
Wr.reset();
|
|
5890
|
-
const _ =
|
|
5883
|
+
const _ = Wi.factory(g.segments);
|
|
5891
5884
|
return new m0(_).getGeom();
|
|
5892
5885
|
}
|
|
5893
5886
|
}
|
|
@@ -5908,7 +5901,7 @@ const Ct = new E0(), k0 = function(a) {
|
|
|
5908
5901
|
i[u - 1] = arguments[u];
|
|
5909
5902
|
return Ct.run("difference", a, i);
|
|
5910
5903
|
};
|
|
5911
|
-
var
|
|
5904
|
+
var gf = {
|
|
5912
5905
|
union: k0,
|
|
5913
5906
|
intersection: x0,
|
|
5914
5907
|
xor: S0,
|
|
@@ -6020,7 +6013,7 @@ function w0(a, r, i, u) {
|
|
|
6020
6013
|
), l;
|
|
6021
6014
|
}
|
|
6022
6015
|
Xe(w0, "coordReduce");
|
|
6023
|
-
function
|
|
6016
|
+
function yf(a, r) {
|
|
6024
6017
|
var i;
|
|
6025
6018
|
switch (a.type) {
|
|
6026
6019
|
case "FeatureCollection":
|
|
@@ -6032,25 +6025,25 @@ function vf(a, r) {
|
|
|
6032
6025
|
break;
|
|
6033
6026
|
}
|
|
6034
6027
|
}
|
|
6035
|
-
Xe(
|
|
6028
|
+
Xe(yf, "propEach");
|
|
6036
6029
|
function N0(a, r, i) {
|
|
6037
6030
|
var u = i;
|
|
6038
|
-
return
|
|
6031
|
+
return yf(a, function(l, f) {
|
|
6039
6032
|
f === 0 && i === void 0 ? u = l : u = r(u, l, f);
|
|
6040
6033
|
}), u;
|
|
6041
6034
|
}
|
|
6042
6035
|
Xe(N0, "propReduce");
|
|
6043
|
-
function
|
|
6036
|
+
function Xi(a, r) {
|
|
6044
6037
|
if (a.type === "Feature")
|
|
6045
6038
|
r(a, 0);
|
|
6046
6039
|
else if (a.type === "FeatureCollection")
|
|
6047
6040
|
for (var i = 0; i < a.features.length && r(a.features[i], i) !== !1; i++)
|
|
6048
6041
|
;
|
|
6049
6042
|
}
|
|
6050
|
-
Xe(
|
|
6043
|
+
Xe(Xi, "featureEach");
|
|
6051
6044
|
function L0(a, r, i) {
|
|
6052
6045
|
var u = i;
|
|
6053
|
-
return
|
|
6046
|
+
return Xi(a, function(l, f) {
|
|
6054
6047
|
f === 0 && i === void 0 ? u = l : u = r(u, l, f);
|
|
6055
6048
|
}), u;
|
|
6056
6049
|
}
|
|
@@ -6131,7 +6124,7 @@ function C0(a, r, i) {
|
|
|
6131
6124
|
), u;
|
|
6132
6125
|
}
|
|
6133
6126
|
Xe(C0, "geomReduce");
|
|
6134
|
-
function
|
|
6127
|
+
function ns(a, r) {
|
|
6135
6128
|
Pn(a, function(i, u, l, f, g) {
|
|
6136
6129
|
var v = i === null ? null : i.type;
|
|
6137
6130
|
switch (v) {
|
|
@@ -6167,10 +6160,10 @@ function ts(a, r) {
|
|
|
6167
6160
|
}
|
|
6168
6161
|
});
|
|
6169
6162
|
}
|
|
6170
|
-
Xe(
|
|
6163
|
+
Xe(ns, "flattenEach");
|
|
6171
6164
|
function O0(a, r, i) {
|
|
6172
6165
|
var u = i;
|
|
6173
|
-
return
|
|
6166
|
+
return ns(
|
|
6174
6167
|
a,
|
|
6175
6168
|
function(l, f, g) {
|
|
6176
6169
|
f === 0 && g === 0 && i === void 0 ? u = l : u = r(
|
|
@@ -6183,8 +6176,8 @@ function O0(a, r, i) {
|
|
|
6183
6176
|
), u;
|
|
6184
6177
|
}
|
|
6185
6178
|
Xe(O0, "flattenReduce");
|
|
6186
|
-
function
|
|
6187
|
-
|
|
6179
|
+
function vf(a, r) {
|
|
6180
|
+
ns(a, function(i, u, l) {
|
|
6188
6181
|
var f = 0;
|
|
6189
6182
|
if (i.geometry) {
|
|
6190
6183
|
var g = i.geometry.type;
|
|
@@ -6217,10 +6210,10 @@ function df(a, r) {
|
|
|
6217
6210
|
}
|
|
6218
6211
|
});
|
|
6219
6212
|
}
|
|
6220
|
-
Xe(
|
|
6213
|
+
Xe(vf, "segmentEach");
|
|
6221
6214
|
function R0(a, r, i) {
|
|
6222
6215
|
var u = i, l = !1;
|
|
6223
|
-
return
|
|
6216
|
+
return vf(
|
|
6224
6217
|
a,
|
|
6225
6218
|
function(f, g, v, m, _) {
|
|
6226
6219
|
l === !1 && i === void 0 ? u = f : u = r(
|
|
@@ -6235,10 +6228,10 @@ function R0(a, r, i) {
|
|
|
6235
6228
|
), u;
|
|
6236
6229
|
}
|
|
6237
6230
|
Xe(R0, "segmentReduce");
|
|
6238
|
-
function
|
|
6231
|
+
function df(a, r) {
|
|
6239
6232
|
if (!a)
|
|
6240
6233
|
throw new Error("geojson is required");
|
|
6241
|
-
|
|
6234
|
+
ns(a, function(i, u, l) {
|
|
6242
6235
|
if (i.geometry !== null) {
|
|
6243
6236
|
var f = i.geometry.type, g = i.geometry.coordinates;
|
|
6244
6237
|
switch (f) {
|
|
@@ -6260,10 +6253,10 @@ function mf(a, r) {
|
|
|
6260
6253
|
}
|
|
6261
6254
|
});
|
|
6262
6255
|
}
|
|
6263
|
-
Xe(
|
|
6256
|
+
Xe(df, "lineEach");
|
|
6264
6257
|
function M0(a, r, i) {
|
|
6265
6258
|
var u = i;
|
|
6266
|
-
return
|
|
6259
|
+
return df(
|
|
6267
6260
|
a,
|
|
6268
6261
|
function(l, f, g, v) {
|
|
6269
6262
|
f === 0 && i === void 0 ? u = l : u = r(
|
|
@@ -6392,18 +6385,18 @@ function A0(a, r) {
|
|
|
6392
6385
|
}
|
|
6393
6386
|
Xe(A0, "findPoint");
|
|
6394
6387
|
var D0 = Object.defineProperty, F0 = (a, r) => D0(a, "name", { value: r, configurable: !0 });
|
|
6395
|
-
function
|
|
6388
|
+
function mf(a, r = {}) {
|
|
6396
6389
|
const i = [];
|
|
6397
6390
|
if (Pn(a, (l) => {
|
|
6398
6391
|
i.push(l.coordinates);
|
|
6399
6392
|
}), i.length < 2)
|
|
6400
6393
|
throw new Error("Must have at least 2 geometries");
|
|
6401
|
-
const u =
|
|
6402
|
-
return u.length === 0 ? null : u.length === 1 ? fr(u[0], r.properties) :
|
|
6394
|
+
const u = gf.union(i[0], ...i.slice(1));
|
|
6395
|
+
return u.length === 0 ? null : u.length === 1 ? fr(u[0], r.properties) : es(u, r.properties);
|
|
6403
6396
|
}
|
|
6404
|
-
F0(
|
|
6405
|
-
var B0 =
|
|
6406
|
-
function
|
|
6397
|
+
F0(mf, "union");
|
|
6398
|
+
var B0 = mf, G0 = Object.defineProperty, q0 = (a, r) => G0(a, "name", { value: r, configurable: !0 });
|
|
6399
|
+
function pf(a, r = {}) {
|
|
6407
6400
|
if (a.bbox != null && r.recompute !== !0)
|
|
6408
6401
|
return a.bbox;
|
|
6409
6402
|
const i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
@@ -6411,18 +6404,18 @@ function _f(a, r = {}) {
|
|
|
6411
6404
|
i[0] > u[0] && (i[0] = u[0]), i[1] > u[1] && (i[1] = u[1]), i[2] < u[0] && (i[2] = u[0]), i[3] < u[1] && (i[3] = u[1]);
|
|
6412
6405
|
}), i;
|
|
6413
6406
|
}
|
|
6414
|
-
q0(
|
|
6407
|
+
q0(pf, "bbox");
|
|
6415
6408
|
var z0 = Object.defineProperty, U0 = (a, r) => z0(a, "name", { value: r, configurable: !0 });
|
|
6416
|
-
function
|
|
6417
|
-
const i =
|
|
6409
|
+
function _f(a, r = {}) {
|
|
6410
|
+
const i = pf(a), u = (i[0] + i[2]) / 2, l = (i[1] + i[3]) / 2;
|
|
6418
6411
|
return Gt([u, l], r.properties, r);
|
|
6419
6412
|
}
|
|
6420
|
-
U0(
|
|
6421
|
-
var
|
|
6413
|
+
U0(_f, "center");
|
|
6414
|
+
var Ef = { exports: {} };
|
|
6422
6415
|
(function(a, r) {
|
|
6423
6416
|
(function(i, u) {
|
|
6424
6417
|
a.exports = u();
|
|
6425
|
-
})(
|
|
6418
|
+
})(Qi, function() {
|
|
6426
6419
|
function i(o, e) {
|
|
6427
6420
|
if (!(o instanceof e))
|
|
6428
6421
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -7935,7 +7928,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7935
7928
|
} }]), o;
|
|
7936
7929
|
}();
|
|
7937
7930
|
se.CLOCKWISE = -1, se.RIGHT = se.CLOCKWISE, se.COUNTERCLOCKWISE = 1, se.LEFT = se.COUNTERCLOCKWISE, se.COLLINEAR = 0, se.STRAIGHT = se.COLLINEAR;
|
|
7938
|
-
var
|
|
7931
|
+
var rs = function() {
|
|
7939
7932
|
function o() {
|
|
7940
7933
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
7941
7934
|
}
|
|
@@ -8023,7 +8016,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8023
8016
|
var h = this.array[s];
|
|
8024
8017
|
return this.array[s] = c, h;
|
|
8025
8018
|
} }, { key: "iterator", value: function() {
|
|
8026
|
-
return new
|
|
8019
|
+
return new is(this);
|
|
8027
8020
|
} }, { key: "get", value: function(s) {
|
|
8028
8021
|
if (s < 0 || s >= this.size())
|
|
8029
8022
|
throw new Pt();
|
|
@@ -8046,7 +8039,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8046
8039
|
} }, { key: e, value: function() {
|
|
8047
8040
|
return this.array.values();
|
|
8048
8041
|
} }]), n;
|
|
8049
|
-
}(nt, Symbol.iterator),
|
|
8042
|
+
}(nt, Symbol.iterator), is = function() {
|
|
8050
8043
|
function o(e) {
|
|
8051
8044
|
i(this, o), this.arrayList = e, this.position = 0;
|
|
8052
8045
|
}
|
|
@@ -8061,7 +8054,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8061
8054
|
} }, { key: "remove", value: function() {
|
|
8062
8055
|
this.arrayList.remove(this.arrayList.get(this.position));
|
|
8063
8056
|
} }]), o;
|
|
8064
|
-
}(),
|
|
8057
|
+
}(), ss = function() {
|
|
8065
8058
|
function o() {
|
|
8066
8059
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
8067
8060
|
}
|
|
@@ -8144,15 +8137,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8144
8137
|
} }, { key: "interfaces_", get: function() {
|
|
8145
8138
|
return [q];
|
|
8146
8139
|
} }], [{ key: "constructor_", value: function() {
|
|
8147
|
-
this._finder = null, this._dirEdgeList = new ne(), this._nodes = new ne(), this._rightMostCoord = null, this._env = null, this._finder = new
|
|
8140
|
+
this._finder = null, this._dirEdgeList = new ne(), this._nodes = new ne(), this._rightMostCoord = null, this._env = null, this._finder = new rs();
|
|
8148
8141
|
} }]), o;
|
|
8149
8142
|
}(), pr = function() {
|
|
8150
8143
|
function o() {
|
|
8151
8144
|
i(this, o);
|
|
8152
8145
|
}
|
|
8153
8146
|
return l(o, null, [{ key: "intersection", value: function(e, t, n, s) {
|
|
8154
|
-
var c = e.x < t.x ? e.x : t.x, h = e.y < t.y ? e.y : t.y, y = e.x > t.x ? e.x : t.x, d = e.y > t.y ? e.y : t.y, E = n.x < s.x ? n.x : s.x, w = n.y < s.y ? n.y : s.y, N = n.x > s.x ? n.x : s.x, B = n.y > s.y ? n.y : s.y, j = ((c > E ? c : E) + (y < N ? y : N)) / 2, X = ((h > w ? h : w) + (d < B ? d : B)) / 2, $ = e.x - j, re = e.y - X, ce = t.x - j, _e = t.y - X, Pe = n.x - j, je = n.y - X, ct = s.x - j, Lt = s.y - X, Vt = re - _e, wn = ce - $, br = $ * _e - ce * re, wr = je - Lt, Vn = ct - Pe, Mo = Pe * Lt - ct * je, Po = Vt * Vn - wr * wn,
|
|
8155
|
-
return Q.isNaN(
|
|
8147
|
+
var c = e.x < t.x ? e.x : t.x, h = e.y < t.y ? e.y : t.y, y = e.x > t.x ? e.x : t.x, d = e.y > t.y ? e.y : t.y, E = n.x < s.x ? n.x : s.x, w = n.y < s.y ? n.y : s.y, N = n.x > s.x ? n.x : s.x, B = n.y > s.y ? n.y : s.y, j = ((c > E ? c : E) + (y < N ? y : N)) / 2, X = ((h > w ? h : w) + (d < B ? d : B)) / 2, $ = e.x - j, re = e.y - X, ce = t.x - j, _e = t.y - X, Pe = n.x - j, je = n.y - X, ct = s.x - j, Lt = s.y - X, Vt = re - _e, wn = ce - $, br = $ * _e - ce * re, wr = je - Lt, Vn = ct - Pe, Mo = Pe * Lt - ct * je, Po = Vt * Vn - wr * wn, ks = (wn * Mo - Vn * br) / Po, xs = (wr * br - Vt * Mo) / Po;
|
|
8148
|
+
return Q.isNaN(ks) || Q.isInfinite(ks) || Q.isNaN(xs) || Q.isInfinite(xs) ? null : new C(ks + j, xs + X);
|
|
8156
8149
|
} }]), o;
|
|
8157
8150
|
}(), rt = function() {
|
|
8158
8151
|
function o() {
|
|
@@ -8263,7 +8256,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8263
8256
|
}
|
|
8264
8257
|
return l(o, [{ key: "filter", value: function(e) {
|
|
8265
8258
|
} }]), o;
|
|
8266
|
-
}(),
|
|
8259
|
+
}(), as = function() {
|
|
8267
8260
|
function o() {
|
|
8268
8261
|
i(this, o);
|
|
8269
8262
|
}
|
|
@@ -8486,7 +8479,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8486
8479
|
} }, { key: "getDimension", value: function() {
|
|
8487
8480
|
return 1;
|
|
8488
8481
|
} }, { key: "getLength", value: function() {
|
|
8489
|
-
return
|
|
8482
|
+
return as.ofLine(this._points);
|
|
8490
8483
|
} }, { key: "getNumPoints", value: function() {
|
|
8491
8484
|
return this._points.size();
|
|
8492
8485
|
} }, { key: "compareToSameClass", value: function() {
|
|
@@ -8973,9 +8966,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8973
8966
|
} }, { key: "toArray", value: function() {
|
|
8974
8967
|
return this.array.slice();
|
|
8975
8968
|
} }, { key: "iterator", value: function() {
|
|
8976
|
-
return new
|
|
8969
|
+
return new Df(this.array);
|
|
8977
8970
|
} }]), t;
|
|
8978
|
-
}(Gn),
|
|
8971
|
+
}(Gn), Df = function() {
|
|
8979
8972
|
function o(e) {
|
|
8980
8973
|
i(this, o), this.array = e, this.position = 0;
|
|
8981
8974
|
}
|
|
@@ -9113,7 +9106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9113
9106
|
}
|
|
9114
9107
|
}
|
|
9115
9108
|
} }]), t;
|
|
9116
|
-
}(J),
|
|
9109
|
+
}(J), os = function(o) {
|
|
9117
9110
|
f(t, o);
|
|
9118
9111
|
var e = S(t);
|
|
9119
9112
|
function t() {
|
|
@@ -9302,7 +9295,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9302
9295
|
} }]), t;
|
|
9303
9296
|
}(C);
|
|
9304
9297
|
Sn.X = 0, Sn.Y = 1, Sn.Z = -1, Sn.M = 2;
|
|
9305
|
-
var
|
|
9298
|
+
var us = function(o) {
|
|
9306
9299
|
f(t, o);
|
|
9307
9300
|
var e = S(t);
|
|
9308
9301
|
function t() {
|
|
@@ -9369,9 +9362,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9369
9362
|
i(this, o);
|
|
9370
9363
|
}
|
|
9371
9364
|
return l(o, null, [{ key: "measures", value: function(e) {
|
|
9372
|
-
return e instanceof xn ? 0 : e instanceof Sn || e instanceof
|
|
9365
|
+
return e instanceof xn ? 0 : e instanceof Sn || e instanceof us ? 1 : 0;
|
|
9373
9366
|
} }, { key: "dimension", value: function(e) {
|
|
9374
|
-
return e instanceof xn ? 2 : e instanceof Sn ? 3 : e instanceof
|
|
9367
|
+
return e instanceof xn ? 2 : e instanceof Sn ? 3 : e instanceof us ? 4 : 3;
|
|
9375
9368
|
} }, { key: "create", value: function() {
|
|
9376
9369
|
if (arguments.length === 1) {
|
|
9377
9370
|
var e = arguments[0];
|
|
@@ -9379,7 +9372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9379
9372
|
}
|
|
9380
9373
|
if (arguments.length === 2) {
|
|
9381
9374
|
var t = arguments[0], n = arguments[1];
|
|
9382
|
-
return t === 2 ? new xn() : t === 3 && n === 0 ? new C() : t === 3 && n === 1 ? new Sn() : t === 4 && n === 1 ? new
|
|
9375
|
+
return t === 2 ? new xn() : t === 3 && n === 0 ? new C() : t === 3 && n === 1 ? new Sn() : t === 4 && n === 1 ? new us() : new C();
|
|
9383
9376
|
}
|
|
9384
9377
|
} }]), o;
|
|
9385
9378
|
}(), Er = function(o) {
|
|
@@ -9646,7 +9639,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9646
9639
|
c[h++] = e[y];
|
|
9647
9640
|
return c;
|
|
9648
9641
|
} }]), o;
|
|
9649
|
-
}(),
|
|
9642
|
+
}(), Ff = function() {
|
|
9650
9643
|
function o() {
|
|
9651
9644
|
i(this, o);
|
|
9652
9645
|
}
|
|
@@ -9656,7 +9649,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9656
9649
|
} }, { key: "interfaces_", get: function() {
|
|
9657
9650
|
return [Fe];
|
|
9658
9651
|
} }]), o;
|
|
9659
|
-
}(),
|
|
9652
|
+
}(), Bf = function() {
|
|
9660
9653
|
function o() {
|
|
9661
9654
|
i(this, o);
|
|
9662
9655
|
}
|
|
@@ -9689,7 +9682,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9689
9682
|
return [Fe];
|
|
9690
9683
|
} }]), o;
|
|
9691
9684
|
}();
|
|
9692
|
-
qe.ForwardComparator =
|
|
9685
|
+
qe.ForwardComparator = Ff, qe.BidirectionalComparator = Bf, qe.coordArrayType = new Array(0).fill(null);
|
|
9693
9686
|
var $r = function() {
|
|
9694
9687
|
function o(e) {
|
|
9695
9688
|
i(this, o), this.str = e;
|
|
@@ -9816,7 +9809,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9816
9809
|
}
|
|
9817
9810
|
}
|
|
9818
9811
|
} }]), o;
|
|
9819
|
-
}(),
|
|
9812
|
+
}(), ls = function() {
|
|
9820
9813
|
function o() {
|
|
9821
9814
|
i(this, o);
|
|
9822
9815
|
}
|
|
@@ -9848,8 +9841,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9848
9841
|
return o.instanceObject;
|
|
9849
9842
|
} }]), o;
|
|
9850
9843
|
}();
|
|
9851
|
-
|
|
9852
|
-
var
|
|
9844
|
+
ls.instanceObject = new ls();
|
|
9845
|
+
var cs = function(o) {
|
|
9853
9846
|
f(t, o);
|
|
9854
9847
|
var e = S(t);
|
|
9855
9848
|
function t() {
|
|
@@ -9898,7 +9891,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9898
9891
|
} }, { key: "values", value: function() {
|
|
9899
9892
|
} }, { key: "entrySet", value: function() {
|
|
9900
9893
|
} }]), o;
|
|
9901
|
-
}(),
|
|
9894
|
+
}(), Gf = function(o) {
|
|
9902
9895
|
f(t, o);
|
|
9903
9896
|
var e = S(t);
|
|
9904
9897
|
function t() {
|
|
@@ -9994,8 +9987,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9994
9987
|
this._name = e, o.nameToTypeMap.put(e, this);
|
|
9995
9988
|
} }]), o;
|
|
9996
9989
|
}();
|
|
9997
|
-
qn.nameToTypeMap = new
|
|
9998
|
-
var
|
|
9990
|
+
qn.nameToTypeMap = new Gf(), wt.Type = qn, wt.FIXED = new qn("FIXED"), wt.FLOATING = new qn("FLOATING"), wt.FLOATING_SINGLE = new qn("FLOATING SINGLE"), wt.maximumPreciseValue = 9007199254740992;
|
|
9991
|
+
var fs = function(o) {
|
|
9999
9992
|
f(t, o);
|
|
10000
9993
|
var e = S(t);
|
|
10001
9994
|
function t() {
|
|
@@ -10069,10 +10062,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10069
10062
|
}
|
|
10070
10063
|
} }, { key: "createMultiLineString", value: function() {
|
|
10071
10064
|
if (arguments.length === 0)
|
|
10072
|
-
return new
|
|
10065
|
+
return new fs(null, this);
|
|
10073
10066
|
if (arguments.length === 1) {
|
|
10074
10067
|
var e = arguments[0];
|
|
10075
|
-
return new
|
|
10068
|
+
return new fs(e, this);
|
|
10076
10069
|
}
|
|
10077
10070
|
} }, { key: "buildGeometry", value: function(e) {
|
|
10078
10071
|
for (var t = null, n = !1, s = !1, c = e.iterator(); c.hasNext(); ) {
|
|
@@ -10157,18 +10150,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10157
10150
|
}
|
|
10158
10151
|
} }, { key: "createMultiPolygon", value: function() {
|
|
10159
10152
|
if (arguments.length === 0)
|
|
10160
|
-
return new
|
|
10153
|
+
return new cs(null, this);
|
|
10161
10154
|
if (arguments.length === 1) {
|
|
10162
10155
|
var e = arguments[0];
|
|
10163
|
-
return new
|
|
10156
|
+
return new cs(e, this);
|
|
10164
10157
|
}
|
|
10165
10158
|
} }, { key: "createMultiPoint", value: function() {
|
|
10166
10159
|
if (arguments.length === 0)
|
|
10167
|
-
return new
|
|
10160
|
+
return new os(null, this);
|
|
10168
10161
|
if (arguments.length === 1) {
|
|
10169
10162
|
if (arguments[0] instanceof Array) {
|
|
10170
10163
|
var e = arguments[0];
|
|
10171
|
-
return new
|
|
10164
|
+
return new os(e, this);
|
|
10172
10165
|
}
|
|
10173
10166
|
if (ue(arguments[0], ge)) {
|
|
10174
10167
|
var t = arguments[0];
|
|
@@ -10210,7 +10203,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10210
10203
|
var t = new Array(e.size()).fill(null);
|
|
10211
10204
|
return e.toArray(t);
|
|
10212
10205
|
} }, { key: "getDefaultCoordinateSequenceFactory", value: function() {
|
|
10213
|
-
return
|
|
10206
|
+
return ls.instance();
|
|
10214
10207
|
} }, { key: "toMultiLineStringArray", value: function(e) {
|
|
10215
10208
|
var t = new Array(e.size()).fill(null);
|
|
10216
10209
|
return e.toArray(t);
|
|
@@ -10232,10 +10225,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10232
10225
|
} }, { key: "createPointFromInternalCoord", value: function(e, t) {
|
|
10233
10226
|
return t.getPrecisionModel().makePrecise(e), t.getFactory().createPoint(e);
|
|
10234
10227
|
} }]), o;
|
|
10235
|
-
}(),
|
|
10236
|
-
for (var
|
|
10237
|
-
eo[
|
|
10238
|
-
var
|
|
10228
|
+
}(), hs = "XY", qf = "XYZ", zf = "XYM", Uf = "XYZM", eo = { POINT: "Point", LINE_STRING: "LineString", LINEAR_RING: "LinearRing", POLYGON: "Polygon", MULTI_POINT: "MultiPoint", MULTI_LINE_STRING: "MultiLineString", MULTI_POLYGON: "MultiPolygon", GEOMETRY_COLLECTION: "GeometryCollection", CIRCLE: "Circle" }, to = "EMPTY", ei = 1, Xt = 2, tn = 3, no = 4, Un = 5, Yf = 6;
|
|
10229
|
+
for (var Wf in eo)
|
|
10230
|
+
eo[Wf].toUpperCase();
|
|
10231
|
+
var Xf = function() {
|
|
10239
10232
|
function o(e) {
|
|
10240
10233
|
i(this, o), this.wkt = e, this.index_ = -1;
|
|
10241
10234
|
}
|
|
@@ -10265,7 +10258,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10265
10258
|
return this.nextToken();
|
|
10266
10259
|
if (t !== "")
|
|
10267
10260
|
throw new Error("Unexpected character: " + t);
|
|
10268
|
-
e =
|
|
10261
|
+
e = Yf;
|
|
10269
10262
|
}
|
|
10270
10263
|
return { position: n, value: s, type: e };
|
|
10271
10264
|
} }, { key: "readNumber_", value: function() {
|
|
@@ -10281,9 +10274,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10281
10274
|
while (this.isAlpha_(e));
|
|
10282
10275
|
return this.wkt.substring(t, this.index_--).toUpperCase();
|
|
10283
10276
|
} }]), o;
|
|
10284
|
-
}(),
|
|
10277
|
+
}(), jf = function() {
|
|
10285
10278
|
function o(e, t) {
|
|
10286
|
-
i(this, o), this.lexer_ = e, this.token_, this.layout_ =
|
|
10279
|
+
i(this, o), this.lexer_ = e, this.token_, this.layout_ = hs, this.factory = t;
|
|
10287
10280
|
}
|
|
10288
10281
|
return l(o, [{ key: "consume_", value: function() {
|
|
10289
10282
|
this.token_ = this.lexer_.nextToken();
|
|
@@ -10295,10 +10288,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10295
10288
|
} }, { key: "parse", value: function() {
|
|
10296
10289
|
return this.consume_(), this.parseGeometry_();
|
|
10297
10290
|
} }, { key: "parseGeometryLayout_", value: function() {
|
|
10298
|
-
var e =
|
|
10291
|
+
var e = hs, t = this.token_;
|
|
10299
10292
|
if (this.isTokenType(ei)) {
|
|
10300
10293
|
var n = t.value;
|
|
10301
|
-
n === "Z" ? e =
|
|
10294
|
+
n === "Z" ? e = qf : n === "M" ? e = zf : n === "ZM" && (e = Uf), e !== hs && this.consume_();
|
|
10302
10295
|
}
|
|
10303
10296
|
return e;
|
|
10304
10297
|
} }, { key: "parseGeometryCollectionText_", value: function() {
|
|
@@ -10466,7 +10459,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10466
10459
|
e.push("(" + xr(o.getInteriorRingN(t)) + ")");
|
|
10467
10460
|
return e.join(", ");
|
|
10468
10461
|
}
|
|
10469
|
-
var
|
|
10462
|
+
var Vf = { Point: ro, LineString: xr, LinearRing: xr, Polygon: io, MultiPoint: function(o) {
|
|
10470
10463
|
for (var e = [], t = 0, n = o.getNumGeometries(); t < n; ++t)
|
|
10471
10464
|
e.push("(" + ro(o.getGeometryN(t)) + ")");
|
|
10472
10465
|
return e.join(", ");
|
|
@@ -10484,7 +10477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10484
10477
|
return e.join(", ");
|
|
10485
10478
|
} };
|
|
10486
10479
|
function so(o) {
|
|
10487
|
-
var e = o.getGeometryType(), t =
|
|
10480
|
+
var e = o.getGeometryType(), t = Vf[e];
|
|
10488
10481
|
e = e.toUpperCase();
|
|
10489
10482
|
var n = function(s) {
|
|
10490
10483
|
var c = "";
|
|
@@ -10495,19 +10488,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10495
10488
|
}(o);
|
|
10496
10489
|
return n.length > 0 && (e += " " + n), o.isEmpty() ? e + " " + to : e + " (" + t(o) + ")";
|
|
10497
10490
|
}
|
|
10498
|
-
var
|
|
10491
|
+
var Hf = function() {
|
|
10499
10492
|
function o(e) {
|
|
10500
10493
|
i(this, o), this.geometryFactory = e || new zn(), this.precisionModel = this.geometryFactory.getPrecisionModel();
|
|
10501
10494
|
}
|
|
10502
10495
|
return l(o, [{ key: "read", value: function(e) {
|
|
10503
|
-
var t = new
|
|
10504
|
-
return new
|
|
10496
|
+
var t = new Xf(e);
|
|
10497
|
+
return new jf(t, this.geometryFactory).parse();
|
|
10505
10498
|
} }, { key: "write", value: function(e) {
|
|
10506
10499
|
return so(e);
|
|
10507
10500
|
} }]), o;
|
|
10508
|
-
}(),
|
|
10501
|
+
}(), gs = function() {
|
|
10509
10502
|
function o(e) {
|
|
10510
|
-
i(this, o), this.parser = new
|
|
10503
|
+
i(this, o), this.parser = new Hf(e);
|
|
10511
10504
|
}
|
|
10512
10505
|
return l(o, [{ key: "write", value: function(e) {
|
|
10513
10506
|
return this.parser.write(e);
|
|
@@ -10562,7 +10555,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10562
10555
|
} }, { key: "isCollinear", value: function() {
|
|
10563
10556
|
return this._result === o.COLLINEAR_INTERSECTION;
|
|
10564
10557
|
} }, { key: "toString", value: function() {
|
|
10565
|
-
return
|
|
10558
|
+
return gs.toLineString(this._inputLines[0][0], this._inputLines[0][1]) + " - " + gs.toLineString(this._inputLines[1][0], this._inputLines[1][1]) + this.getTopologySummary();
|
|
10566
10559
|
} }, { key: "getEndpoint", value: function(e, t) {
|
|
10567
10560
|
return this._inputLines[e][t];
|
|
10568
10561
|
} }, { key: "isIntersection", value: function(e) {
|
|
@@ -10633,7 +10626,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10633
10626
|
var y = n, d = yt.pointToSegment(n, c, h), E = yt.pointToSegment(s, c, h);
|
|
10634
10627
|
return E < d && (d = E, y = s), (E = yt.pointToSegment(c, n, s)) < d && (d = E, y = c), (E = yt.pointToSegment(h, n, s)) < d && (d = E, y = h), y;
|
|
10635
10628
|
} }]), t;
|
|
10636
|
-
}(Oe),
|
|
10629
|
+
}(Oe), Zf = function() {
|
|
10637
10630
|
function o() {
|
|
10638
10631
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
10639
10632
|
}
|
|
@@ -10678,7 +10671,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10678
10671
|
return E.getLocation();
|
|
10679
10672
|
}
|
|
10680
10673
|
} }]), o;
|
|
10681
|
-
}(),
|
|
10674
|
+
}(), ys = function() {
|
|
10682
10675
|
function o() {
|
|
10683
10676
|
i(this, o);
|
|
10684
10677
|
}
|
|
@@ -10698,7 +10691,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10698
10691
|
return !1;
|
|
10699
10692
|
}
|
|
10700
10693
|
} }, { key: "locateInRing", value: function(e, t) {
|
|
10701
|
-
return
|
|
10694
|
+
return Zf.locatePointInRing(e, t);
|
|
10702
10695
|
} }, { key: "isInRing", value: function(e, t) {
|
|
10703
10696
|
return o.locateInRing(e, t) !== I.EXTERIOR;
|
|
10704
10697
|
} }]), o;
|
|
@@ -10926,7 +10919,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10926
10919
|
while (e !== this._startDe);
|
|
10927
10920
|
} }, { key: "containsPoint", value: function(e) {
|
|
10928
10921
|
var t = this.getLinearRing();
|
|
10929
|
-
if (!t.getEnvelopeInternal().contains(e) || !
|
|
10922
|
+
if (!t.getEnvelopeInternal().contains(e) || !ys.isInRing(e, t.getCoordinates()))
|
|
10930
10923
|
return !1;
|
|
10931
10924
|
for (var n = this._holes.iterator(); n.hasNext(); )
|
|
10932
10925
|
if (n.next().containsPoint(e))
|
|
@@ -10969,7 +10962,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10969
10962
|
}
|
|
10970
10963
|
}
|
|
10971
10964
|
} }]), o;
|
|
10972
|
-
}(),
|
|
10965
|
+
}(), Kf = function(o) {
|
|
10973
10966
|
f(t, o);
|
|
10974
10967
|
var e = S(t);
|
|
10975
10968
|
function t() {
|
|
@@ -10984,7 +10977,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10984
10977
|
var n = arguments[0], s = arguments[1];
|
|
10985
10978
|
ti.constructor_.call(this, n, s);
|
|
10986
10979
|
} }]), t;
|
|
10987
|
-
}(ti),
|
|
10980
|
+
}(ti), Qf = function(o) {
|
|
10988
10981
|
f(t, o);
|
|
10989
10982
|
var e = S(t);
|
|
10990
10983
|
function t() {
|
|
@@ -10995,7 +10988,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10995
10988
|
var n = new ne(), s = this._startDe;
|
|
10996
10989
|
do {
|
|
10997
10990
|
if (s.getMinEdgeRing() === null) {
|
|
10998
|
-
var c = new
|
|
10991
|
+
var c = new Kf(s, this._geometryFactory);
|
|
10999
10992
|
n.add(c);
|
|
11000
10993
|
}
|
|
11001
10994
|
s = s.getNext();
|
|
@@ -11110,7 +11103,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11110
11103
|
var n = arguments[0], s = arguments[1];
|
|
11111
11104
|
this._coord = n, this._edges = s, this._label = new mt(0, I.NONE);
|
|
11112
11105
|
} }]), t;
|
|
11113
|
-
}(ao),
|
|
11106
|
+
}(ao), Jf = function(o) {
|
|
11114
11107
|
f(t, o);
|
|
11115
11108
|
var e = S(t);
|
|
11116
11109
|
function t() {
|
|
@@ -11127,7 +11120,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11127
11120
|
function At(o, e) {
|
|
11128
11121
|
o !== null && (o.color = e);
|
|
11129
11122
|
}
|
|
11130
|
-
function
|
|
11123
|
+
function vs(o) {
|
|
11131
11124
|
return o == null ? null : o.left;
|
|
11132
11125
|
}
|
|
11133
11126
|
function uo(o) {
|
|
@@ -11180,7 +11173,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11180
11173
|
} }, { key: "fixAfterInsertion", value: function(n) {
|
|
11181
11174
|
var s;
|
|
11182
11175
|
for (n.color = 1; n != null && n !== this.root_ && n.parent.color === 1; )
|
|
11183
|
-
pe(n) ===
|
|
11176
|
+
pe(n) === vs(pe(pe(n))) ? oo(s = uo(pe(pe(n)))) === 1 ? (At(pe(n), 0), At(s, 0), At(pe(pe(n)), 1), n = pe(pe(n))) : (n === uo(pe(n)) && (n = pe(n), this.rotateLeft(n)), At(pe(n), 0), At(pe(pe(n)), 1), this.rotateRight(pe(pe(n)))) : oo(s = vs(pe(pe(n)))) === 1 ? (At(pe(n), 0), At(s, 0), At(pe(pe(n)), 1), n = pe(pe(n))) : (n === vs(pe(n)) && (n = pe(n), this.rotateRight(n)), At(pe(n), 0), At(pe(pe(n)), 1), this.rotateLeft(pe(pe(n))));
|
|
11184
11177
|
this.root_.color = 0;
|
|
11185
11178
|
} }, { key: "values", value: function() {
|
|
11186
11179
|
var n = new ne(), s = this.getFirstEntry();
|
|
@@ -11238,7 +11231,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11238
11231
|
c = s, s = s.parent;
|
|
11239
11232
|
return s;
|
|
11240
11233
|
} }]), t;
|
|
11241
|
-
}(
|
|
11234
|
+
}(Jf), lo = function() {
|
|
11242
11235
|
function o() {
|
|
11243
11236
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
11244
11237
|
}
|
|
@@ -11357,7 +11350,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11357
11350
|
o.constructor_.call(this, c), this.init(h, y), this._label = d;
|
|
11358
11351
|
}
|
|
11359
11352
|
} }]), o;
|
|
11360
|
-
}(),
|
|
11353
|
+
}(), ds = function(o) {
|
|
11361
11354
|
f(t, o);
|
|
11362
11355
|
var e = S(t);
|
|
11363
11356
|
function t() {
|
|
@@ -11513,7 +11506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11513
11506
|
for (var t = e.iterator(); t.hasNext(); ) {
|
|
11514
11507
|
var n = t.next();
|
|
11515
11508
|
this._edges.add(n);
|
|
11516
|
-
var s = new
|
|
11509
|
+
var s = new ds(n, !0), c = new ds(n, !1);
|
|
11517
11510
|
s.setSym(c), c.setSym(s), this.add(s), this.add(c);
|
|
11518
11511
|
}
|
|
11519
11512
|
} }, { key: "add", value: function(e) {
|
|
@@ -11538,7 +11531,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11538
11531
|
for (var t = e.iterator(); t.hasNext(); )
|
|
11539
11532
|
t.next().getEdges().linkResultDirectedEdges();
|
|
11540
11533
|
} }]), o;
|
|
11541
|
-
}(),
|
|
11534
|
+
}(), $f = function() {
|
|
11542
11535
|
function o() {
|
|
11543
11536
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
11544
11537
|
}
|
|
@@ -11578,7 +11571,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11578
11571
|
for (var t = new ne(), n = e.iterator(); n.hasNext(); ) {
|
|
11579
11572
|
var s = n.next();
|
|
11580
11573
|
if (s.isInResult() && s.getLabel().isArea() && s.getEdgeRing() === null) {
|
|
11581
|
-
var c = new
|
|
11574
|
+
var c = new Qf(s, this._geometryFactory);
|
|
11582
11575
|
t.add(c), c.setInResult();
|
|
11583
11576
|
}
|
|
11584
11577
|
}
|
|
@@ -11616,7 +11609,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11616
11609
|
if (!N.equals(s) && N.contains(s)) {
|
|
11617
11610
|
c = qe.ptNotInList(n.getCoordinates(), w.getCoordinates());
|
|
11618
11611
|
var B = !1;
|
|
11619
|
-
|
|
11612
|
+
ys.isInRing(c, w.getCoordinates()) && (B = !0), B && (h === null || y.contains(N)) && (y = (h = E).getLinearRing().getEnvelopeInternal());
|
|
11620
11613
|
}
|
|
11621
11614
|
}
|
|
11622
11615
|
return h;
|
|
@@ -11672,7 +11665,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11672
11665
|
} }], [{ key: "constructor_", value: function() {
|
|
11673
11666
|
this._size = null, this._items = null, this._size = 0, this._items = new ne(), this._items.add(null);
|
|
11674
11667
|
} }]), o;
|
|
11675
|
-
}(),
|
|
11668
|
+
}(), eh = function() {
|
|
11676
11669
|
function o() {
|
|
11677
11670
|
i(this, o);
|
|
11678
11671
|
}
|
|
@@ -11720,7 +11713,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11720
11713
|
}, singletonList: function(o) {
|
|
11721
11714
|
var e = new ne();
|
|
11722
11715
|
return e.add(o), e;
|
|
11723
|
-
} },
|
|
11716
|
+
} }, th = function() {
|
|
11724
11717
|
function o() {
|
|
11725
11718
|
i(this, o);
|
|
11726
11719
|
}
|
|
@@ -11742,7 +11735,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11742
11735
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
11743
11736
|
}
|
|
11744
11737
|
return l(o, [{ key: "maximumDistance", value: function() {
|
|
11745
|
-
return
|
|
11738
|
+
return th.maximumDistance(this._boundable1.getBounds(), this._boundable2.getBounds());
|
|
11746
11739
|
} }, { key: "expandToQueue", value: function(e, t) {
|
|
11747
11740
|
var n = o.isComposite(this._boundable1), s = o.isComposite(this._boundable2);
|
|
11748
11741
|
if (n && s)
|
|
@@ -11936,7 +11929,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11936
11929
|
}();
|
|
11937
11930
|
Xn.IntersectsOp = function() {
|
|
11938
11931
|
}, Xn.DEFAULT_NODE_CAPACITY = 10;
|
|
11939
|
-
var
|
|
11932
|
+
var nh = function() {
|
|
11940
11933
|
function o() {
|
|
11941
11934
|
i(this, o);
|
|
11942
11935
|
}
|
|
@@ -12031,7 +12024,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12031
12024
|
return this.createParentBoundablesFromVerticalSlices(y, s);
|
|
12032
12025
|
} }, { key: "nearestNeighbour", value: function() {
|
|
12033
12026
|
if (arguments.length === 1) {
|
|
12034
|
-
if (ue(arguments[0],
|
|
12027
|
+
if (ue(arguments[0], nh)) {
|
|
12035
12028
|
var n = arguments[0];
|
|
12036
12029
|
if (this.isEmpty())
|
|
12037
12030
|
return null;
|
|
@@ -12087,7 +12080,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12087
12080
|
return this.isWithinDistance(B, N);
|
|
12088
12081
|
}
|
|
12089
12082
|
} }, { key: "interfaces_", get: function() {
|
|
12090
|
-
return [
|
|
12083
|
+
return [eh, D];
|
|
12091
12084
|
} }], [{ key: "constructor_", value: function() {
|
|
12092
12085
|
if (arguments.length === 0)
|
|
12093
12086
|
t.constructor_.call(this, t.DEFAULT_NODE_CAPACITY);
|
|
@@ -12154,7 +12147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12154
12147
|
return e.intersects(t);
|
|
12155
12148
|
} }]), o;
|
|
12156
12149
|
}())(), Dt.DEFAULT_NODE_CAPACITY = 10;
|
|
12157
|
-
var
|
|
12150
|
+
var rh = function() {
|
|
12158
12151
|
function o() {
|
|
12159
12152
|
i(this, o);
|
|
12160
12153
|
}
|
|
@@ -12186,7 +12179,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12186
12179
|
} }, { key: "compareValue", value: function(e, t) {
|
|
12187
12180
|
return e < 0 ? -1 : e > 0 ? 1 : t < 0 ? -1 : t > 0 ? 1 : 0;
|
|
12188
12181
|
} }]), o;
|
|
12189
|
-
}(),
|
|
12182
|
+
}(), ih = function() {
|
|
12190
12183
|
function o() {
|
|
12191
12184
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
12192
12185
|
}
|
|
@@ -12196,7 +12189,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12196
12189
|
e.print(this.coord), e.print(" seg # = " + this.segmentIndex);
|
|
12197
12190
|
} }, { key: "compareTo", value: function(e) {
|
|
12198
12191
|
var t = e;
|
|
12199
|
-
return this.segmentIndex < t.segmentIndex ? -1 : this.segmentIndex > t.segmentIndex ? 1 : this.coord.equals2D(t.coord) ? 0 : this._isInterior ? t._isInterior ?
|
|
12192
|
+
return this.segmentIndex < t.segmentIndex ? -1 : this.segmentIndex > t.segmentIndex ? 1 : this.coord.equals2D(t.coord) ? 0 : this._isInterior ? t._isInterior ? rh.compare(this._segmentOctant, this.coord, t.coord) : 1 : -1;
|
|
12200
12193
|
} }, { key: "isEndPoint", value: function(e) {
|
|
12201
12194
|
return this.segmentIndex === 0 && !this._isInterior || this.segmentIndex === e;
|
|
12202
12195
|
} }, { key: "toString", value: function() {
|
|
@@ -12210,7 +12203,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12210
12203
|
var e = arguments[0], t = arguments[1], n = arguments[2], s = arguments[3];
|
|
12211
12204
|
this._segString = e, this.coord = new C(t), this.segmentIndex = n, this._segmentOctant = s, this._isInterior = !t.equals2D(e.getCoordinate(n));
|
|
12212
12205
|
} }]), o;
|
|
12213
|
-
}(),
|
|
12206
|
+
}(), sh = function() {
|
|
12214
12207
|
function o() {
|
|
12215
12208
|
i(this, o);
|
|
12216
12209
|
}
|
|
@@ -12218,7 +12211,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12218
12211
|
} }, { key: "next", value: function() {
|
|
12219
12212
|
} }, { key: "remove", value: function() {
|
|
12220
12213
|
} }]), o;
|
|
12221
|
-
}(),
|
|
12214
|
+
}(), ah = function() {
|
|
12222
12215
|
function o() {
|
|
12223
12216
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
12224
12217
|
}
|
|
@@ -12289,7 +12282,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12289
12282
|
var n = this.createSplitEdgePts(e, t);
|
|
12290
12283
|
return new bn(n, this._edge.getData());
|
|
12291
12284
|
} }, { key: "add", value: function(e, t) {
|
|
12292
|
-
var n = new
|
|
12285
|
+
var n = new ih(this._edge, e, t, this._edge.getSegmentOctant(t)), s = this._nodeMap.get(n);
|
|
12293
12286
|
return s !== null ? (fe.isTrue(s.coord.equals2D(e), "Found equal nodes with different coordinates"), s) : (this._nodeMap.put(n, n), n);
|
|
12294
12287
|
} }, { key: "checkSplitEdgesCorrectness", value: function(e) {
|
|
12295
12288
|
var t = this._edge.getCoordinates(), n = e.get(0).getCoordinate(0);
|
|
@@ -12303,7 +12296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12303
12296
|
var e = arguments[0];
|
|
12304
12297
|
this._edge = e;
|
|
12305
12298
|
} }]), o;
|
|
12306
|
-
}(),
|
|
12299
|
+
}(), oh = function() {
|
|
12307
12300
|
function o() {
|
|
12308
12301
|
i(this, o);
|
|
12309
12302
|
}
|
|
@@ -12322,7 +12315,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12322
12315
|
return o.octant(y, d);
|
|
12323
12316
|
}
|
|
12324
12317
|
} }]), o;
|
|
12325
|
-
}(),
|
|
12318
|
+
}(), uh = function() {
|
|
12326
12319
|
function o() {
|
|
12327
12320
|
i(this, o);
|
|
12328
12321
|
}
|
|
@@ -12333,13 +12326,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12333
12326
|
} }, { key: "setData", value: function(e) {
|
|
12334
12327
|
} }, { key: "getData", value: function() {
|
|
12335
12328
|
} }]), o;
|
|
12336
|
-
}(),
|
|
12329
|
+
}(), lh = function() {
|
|
12337
12330
|
function o() {
|
|
12338
12331
|
i(this, o);
|
|
12339
12332
|
}
|
|
12340
12333
|
return l(o, [{ key: "addIntersection", value: function(e, t) {
|
|
12341
12334
|
} }, { key: "interfaces_", get: function() {
|
|
12342
|
-
return [
|
|
12335
|
+
return [uh];
|
|
12343
12336
|
} }]), o;
|
|
12344
12337
|
}(), bn = function() {
|
|
12345
12338
|
function o() {
|
|
@@ -12358,7 +12351,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12358
12351
|
} }, { key: "setData", value: function(e) {
|
|
12359
12352
|
this._data = e;
|
|
12360
12353
|
} }, { key: "safeOctant", value: function(e, t) {
|
|
12361
|
-
return e.equals2D(t) ? 0 :
|
|
12354
|
+
return e.equals2D(t) ? 0 : oh.octant(e, t);
|
|
12362
12355
|
} }, { key: "getData", value: function() {
|
|
12363
12356
|
return this._data;
|
|
12364
12357
|
} }, { key: "addIntersection", value: function() {
|
|
@@ -12370,7 +12363,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12370
12363
|
this.addIntersection(h, s);
|
|
12371
12364
|
}
|
|
12372
12365
|
} }, { key: "toString", value: function() {
|
|
12373
|
-
return
|
|
12366
|
+
return gs.toLineString(new kr(this._pts));
|
|
12374
12367
|
} }, { key: "getNodeList", value: function() {
|
|
12375
12368
|
return this._nodeList;
|
|
12376
12369
|
} }, { key: "addIntersectionNode", value: function(e, t) {
|
|
@@ -12384,9 +12377,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12384
12377
|
for (var s = 0; s < e.getIntersectionNum(); s++)
|
|
12385
12378
|
this.addIntersection(e, t, n, s);
|
|
12386
12379
|
} }, { key: "interfaces_", get: function() {
|
|
12387
|
-
return [
|
|
12380
|
+
return [lh];
|
|
12388
12381
|
} }], [{ key: "constructor_", value: function() {
|
|
12389
|
-
this._nodeList = new
|
|
12382
|
+
this._nodeList = new ah(this), this._pts = null, this._data = null;
|
|
12390
12383
|
var e = arguments[0], t = arguments[1];
|
|
12391
12384
|
this._pts = e, this._data = t;
|
|
12392
12385
|
} }, { key: "getNodedSubstrings", value: function() {
|
|
@@ -12555,7 +12548,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12555
12548
|
} }, { key: "midPoint", value: function(e, t) {
|
|
12556
12549
|
return new C((e.x + t.x) / 2, (e.y + t.y) / 2);
|
|
12557
12550
|
} }]), o;
|
|
12558
|
-
}(),
|
|
12551
|
+
}(), ch = function() {
|
|
12559
12552
|
function o() {
|
|
12560
12553
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
12561
12554
|
}
|
|
@@ -12625,7 +12618,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12625
12618
|
var e = arguments[0], t = arguments[1], n = arguments[2], s = arguments[3];
|
|
12626
12619
|
this._pts = e, this._start = t, this._end = n, this._context = s;
|
|
12627
12620
|
} }]), o;
|
|
12628
|
-
}(),
|
|
12621
|
+
}(), fh = function() {
|
|
12629
12622
|
function o() {
|
|
12630
12623
|
i(this, o);
|
|
12631
12624
|
}
|
|
@@ -12651,7 +12644,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12651
12644
|
return s;
|
|
12652
12645
|
}
|
|
12653
12646
|
} }]), o;
|
|
12654
|
-
}(),
|
|
12647
|
+
}(), ms = function() {
|
|
12655
12648
|
function o() {
|
|
12656
12649
|
i(this, o);
|
|
12657
12650
|
}
|
|
@@ -12665,7 +12658,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12665
12658
|
return l(o, [{ key: "setSegmentIntersector", value: function(e) {
|
|
12666
12659
|
this._segInt = e;
|
|
12667
12660
|
} }, { key: "interfaces_", get: function() {
|
|
12668
|
-
return [
|
|
12661
|
+
return [ms];
|
|
12669
12662
|
} }], [{ key: "constructor_", value: function() {
|
|
12670
12663
|
if (this._segInt = null, arguments.length !== 0) {
|
|
12671
12664
|
if (arguments.length === 1) {
|
|
@@ -12674,7 +12667,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12674
12667
|
}
|
|
12675
12668
|
}
|
|
12676
12669
|
} }]), o;
|
|
12677
|
-
}(),
|
|
12670
|
+
}(), ps = function(o) {
|
|
12678
12671
|
f(t, o);
|
|
12679
12672
|
var e = S(t);
|
|
12680
12673
|
function t() {
|
|
@@ -12688,7 +12681,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12688
12681
|
} }, { key: "getIndex", value: function() {
|
|
12689
12682
|
return this._index;
|
|
12690
12683
|
} }, { key: "add", value: function(n) {
|
|
12691
|
-
for (var s =
|
|
12684
|
+
for (var s = fh.getChains(n.getCoordinates(), n).iterator(); s.hasNext(); ) {
|
|
12692
12685
|
var c = s.next();
|
|
12693
12686
|
c.setId(this._idCounter++), this._index.insert(c.getEnvelope(), c), this._monoChains.add(c);
|
|
12694
12687
|
}
|
|
@@ -12729,8 +12722,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12729
12722
|
var n = arguments[0];
|
|
12730
12723
|
this._si = n;
|
|
12731
12724
|
} }]), t;
|
|
12732
|
-
}(
|
|
12733
|
-
|
|
12725
|
+
}(ch);
|
|
12726
|
+
ps.SegmentOverlapAction = _o;
|
|
12734
12727
|
var Nt = function() {
|
|
12735
12728
|
function o() {
|
|
12736
12729
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
@@ -12983,7 +12976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12983
12976
|
} }]), o;
|
|
12984
12977
|
}();
|
|
12985
12978
|
Ir.OFFSET_SEGMENT_SEPARATION_FACTOR = 1e-3, Ir.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR = 1e-3, Ir.CURVE_VERTEX_SNAP_DISTANCE_FACTOR = 1e-6, Ir.MAX_CLOSING_SEG_LEN_FACTOR = 80;
|
|
12986
|
-
var
|
|
12979
|
+
var hh = function() {
|
|
12987
12980
|
function o() {
|
|
12988
12981
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
12989
12982
|
}
|
|
@@ -13102,7 +13095,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13102
13095
|
return t;
|
|
13103
13096
|
}
|
|
13104
13097
|
if (arguments.length === 3) {
|
|
13105
|
-
if (ue(arguments[2], nt) && arguments[0] instanceof C && arguments[1] instanceof
|
|
13098
|
+
if (ue(arguments[2], nt) && arguments[0] instanceof C && arguments[1] instanceof ds)
|
|
13106
13099
|
for (var h = arguments[0], y = arguments[1], d = arguments[2], E = y.getEdge().getCoordinates(), w = 0; w < E.length - 1; w++) {
|
|
13107
13100
|
this._seg.p0 = E[w], this._seg.p1 = E[w + 1], this._seg.p0.y > this._seg.p1.y && this._seg.reverse();
|
|
13108
13101
|
var N = Math.max(this._seg.p0.x, this._seg.p1.x);
|
|
@@ -13163,7 +13156,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13163
13156
|
return l(t, null, [{ key: "constructor_", value: function() {
|
|
13164
13157
|
A.constructor_.call(this, "Projective point not representable on the Cartesian plane.");
|
|
13165
13158
|
} }]), t;
|
|
13166
|
-
}(A),
|
|
13159
|
+
}(A), _s = function() {
|
|
13167
13160
|
function o() {
|
|
13168
13161
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13169
13162
|
}
|
|
@@ -13205,7 +13198,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13205
13198
|
this.x = re * je - Pe * ce, this.y = _e * ce - $ * je, this.w = $ * Pe - _e * re;
|
|
13206
13199
|
}
|
|
13207
13200
|
} }]), o;
|
|
13208
|
-
}(),
|
|
13201
|
+
}(), gh = function() {
|
|
13209
13202
|
function o() {
|
|
13210
13203
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13211
13204
|
}
|
|
@@ -13254,8 +13247,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13254
13247
|
var s = n.x, c = n.y, h = e.x - s, y = e.y - c, d = t.x - s, E = t.y - c, w = 2 * o.det(h, y, d, E), N = o.det(y, h * h + y * y, E, d * d + E * E), B = o.det(h, h * h + y * y, d, d * d + E * E);
|
|
13255
13248
|
return new C(s - N / w, c + B / w);
|
|
13256
13249
|
} }, { key: "perpendicularBisector", value: function(e, t) {
|
|
13257
|
-
var n = t.x - e.x, s = t.y - e.y, c = new
|
|
13258
|
-
return new
|
|
13250
|
+
var n = t.x - e.x, s = t.y - e.y, c = new _s(e.x + n / 2, e.y + s / 2, 1), h = new _s(e.x - s + n / 2, e.y + n + s / 2, 1);
|
|
13251
|
+
return new _s(c, h);
|
|
13259
13252
|
} }, { key: "angleBisector", value: function(e, t, n) {
|
|
13260
13253
|
var s = t.distance(e), c = s / (s + t.distance(n)), h = n.x - e.x, y = n.y - e.y;
|
|
13261
13254
|
return new C(e.x + c * h, e.y + c * y);
|
|
@@ -13269,7 +13262,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13269
13262
|
var s = t.distance(n), c = e.distance(n), h = e.distance(t), y = s + c + h, d = (s * e.x + c * t.x + h * n.x) / y, E = (s * e.y + c * t.y + h * n.y) / y;
|
|
13270
13263
|
return new C(d, E);
|
|
13271
13264
|
} }]), o;
|
|
13272
|
-
}(),
|
|
13265
|
+
}(), yh = function() {
|
|
13273
13266
|
function o() {
|
|
13274
13267
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13275
13268
|
}
|
|
@@ -13299,7 +13292,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13299
13292
|
this._distance > 0 && this.isErodedCompletely(y, -this._distance) || this.addRingSide(d, t, W.opposite(n), I.INTERIOR, I.EXTERIOR);
|
|
13300
13293
|
}
|
|
13301
13294
|
} }, { key: "isTriangleErodedCompletely", value: function(e, t) {
|
|
13302
|
-
var n = new
|
|
13295
|
+
var n = new gh(e[0], e[1], e[2]), s = n.inCentre();
|
|
13303
13296
|
return yt.pointToSegment(s, n.p0, n.p1) < Math.abs(t);
|
|
13304
13297
|
} }, { key: "addLineString", value: function(e) {
|
|
13305
13298
|
if (this._curveBuilder.isLineOffsetEmpty(this._distance))
|
|
@@ -13327,11 +13320,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13327
13320
|
this.addLineString(e);
|
|
13328
13321
|
else if (e instanceof he)
|
|
13329
13322
|
this.addPoint(e);
|
|
13330
|
-
else if (e instanceof
|
|
13323
|
+
else if (e instanceof os)
|
|
13331
13324
|
this.addCollection(e);
|
|
13332
|
-
else if (e instanceof
|
|
13325
|
+
else if (e instanceof fs)
|
|
13333
13326
|
this.addCollection(e);
|
|
13334
|
-
else if (e instanceof
|
|
13327
|
+
else if (e instanceof cs)
|
|
13335
13328
|
this.addCollection(e);
|
|
13336
13329
|
else {
|
|
13337
13330
|
if (!(e instanceof ot))
|
|
@@ -13356,13 +13349,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13356
13349
|
var e = arguments[0], t = arguments[1], n = arguments[2];
|
|
13357
13350
|
this._inputGeom = e, this._distance = t, this._curveBuilder = n;
|
|
13358
13351
|
} }]), o;
|
|
13359
|
-
}(),
|
|
13352
|
+
}(), vh = function() {
|
|
13360
13353
|
function o() {
|
|
13361
13354
|
i(this, o);
|
|
13362
13355
|
}
|
|
13363
13356
|
return l(o, [{ key: "locate", value: function(e) {
|
|
13364
13357
|
} }]), o;
|
|
13365
|
-
}(),
|
|
13358
|
+
}(), dh = function() {
|
|
13366
13359
|
function o() {
|
|
13367
13360
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13368
13361
|
}
|
|
@@ -13390,7 +13383,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13390
13383
|
}
|
|
13391
13384
|
return !(this._index >= this._max);
|
|
13392
13385
|
} }, { key: "interfaces_", get: function() {
|
|
13393
|
-
return [
|
|
13386
|
+
return [sh];
|
|
13394
13387
|
} }], [{ key: "constructor_", value: function() {
|
|
13395
13388
|
this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
|
|
13396
13389
|
var e = arguments[0];
|
|
@@ -13398,14 +13391,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13398
13391
|
} }, { key: "isAtomic", value: function(e) {
|
|
13399
13392
|
return !(e instanceof ot);
|
|
13400
13393
|
} }]), o;
|
|
13401
|
-
}(),
|
|
13394
|
+
}(), mh = function() {
|
|
13402
13395
|
function o() {
|
|
13403
13396
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13404
13397
|
}
|
|
13405
13398
|
return l(o, [{ key: "locate", value: function(e) {
|
|
13406
13399
|
return o.locate(e, this._geom);
|
|
13407
13400
|
} }, { key: "interfaces_", get: function() {
|
|
13408
|
-
return [
|
|
13401
|
+
return [vh];
|
|
13409
13402
|
} }], [{ key: "constructor_", value: function() {
|
|
13410
13403
|
this._geom = null;
|
|
13411
13404
|
var e = arguments[0];
|
|
@@ -13425,14 +13418,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13425
13418
|
}
|
|
13426
13419
|
return I.INTERIOR;
|
|
13427
13420
|
} }, { key: "locatePointInRing", value: function(e, t) {
|
|
13428
|
-
return t.getEnvelopeInternal().intersects(e) ?
|
|
13421
|
+
return t.getEnvelopeInternal().intersects(e) ? ys.locateInRing(e, t.getCoordinates()) : I.EXTERIOR;
|
|
13429
13422
|
} }, { key: "containsPointInPolygon", value: function(e, t) {
|
|
13430
13423
|
return I.EXTERIOR !== o.locatePointInPolygon(e, t);
|
|
13431
13424
|
} }, { key: "locateInGeometry", value: function(e, t) {
|
|
13432
13425
|
if (t instanceof en)
|
|
13433
13426
|
return o.locatePointInPolygon(e, t);
|
|
13434
13427
|
if (t instanceof ot)
|
|
13435
|
-
for (var n = new
|
|
13428
|
+
for (var n = new dh(t); n.hasNext(); ) {
|
|
13436
13429
|
var s = n.next();
|
|
13437
13430
|
if (s !== t) {
|
|
13438
13431
|
var c = o.locateInGeometry(e, s);
|
|
@@ -13446,7 +13439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13446
13439
|
} }, { key: "locate", value: function(e, t) {
|
|
13447
13440
|
return t.isEmpty() ? I.EXTERIOR : t.getEnvelopeInternal().intersects(e) ? o.locateInGeometry(e, t) : I.EXTERIOR;
|
|
13448
13441
|
} }]), o;
|
|
13449
|
-
}(),
|
|
13442
|
+
}(), ph = function() {
|
|
13450
13443
|
function o() {
|
|
13451
13444
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13452
13445
|
}
|
|
@@ -13508,7 +13501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13508
13501
|
} }, { key: "getEdges", value: function() {
|
|
13509
13502
|
return this._edgeList === null && (this._edgeList = new ne(this._edgeMap.values())), this._edgeList;
|
|
13510
13503
|
} }, { key: "getLocation", value: function(e, t, n) {
|
|
13511
|
-
return this._ptInAreaLocation[e] === I.NONE && (this._ptInAreaLocation[e] =
|
|
13504
|
+
return this._ptInAreaLocation[e] === I.NONE && (this._ptInAreaLocation[e] = mh.locate(t, n[e].getGeometry())), this._ptInAreaLocation[e];
|
|
13512
13505
|
} }, { key: "toString", value: function() {
|
|
13513
13506
|
var e = new _n();
|
|
13514
13507
|
e.append("EdgeEndStar: " + this.getCoordinate()), e.append(`
|
|
@@ -13546,7 +13539,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13546
13539
|
} }], [{ key: "constructor_", value: function() {
|
|
13547
13540
|
this._edgeMap = new Sr(), this._edgeList = null, this._ptInAreaLocation = [I.NONE, I.NONE];
|
|
13548
13541
|
} }]), o;
|
|
13549
|
-
}(),
|
|
13542
|
+
}(), _h = function(o) {
|
|
13550
13543
|
f(t, o);
|
|
13551
13544
|
var e = S(t);
|
|
13552
13545
|
function t() {
|
|
@@ -13694,14 +13687,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13694
13687
|
} }], [{ key: "constructor_", value: function() {
|
|
13695
13688
|
this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
13696
13689
|
} }]), t;
|
|
13697
|
-
}(
|
|
13690
|
+
}(ph), Eh = function(o) {
|
|
13698
13691
|
f(t, o);
|
|
13699
13692
|
var e = S(t);
|
|
13700
13693
|
function t() {
|
|
13701
13694
|
return i(this, t), e.call(this);
|
|
13702
13695
|
}
|
|
13703
13696
|
return l(t, [{ key: "createNode", value: function(n) {
|
|
13704
|
-
return new ni(n, new
|
|
13697
|
+
return new ni(n, new _h());
|
|
13705
13698
|
} }]), t;
|
|
13706
13699
|
}(fo), Io = function() {
|
|
13707
13700
|
function o() {
|
|
@@ -13732,7 +13725,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13732
13725
|
return 0;
|
|
13733
13726
|
}
|
|
13734
13727
|
} }]), o;
|
|
13735
|
-
}(),
|
|
13728
|
+
}(), kh = function() {
|
|
13736
13729
|
function o() {
|
|
13737
13730
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13738
13731
|
}
|
|
@@ -13777,7 +13770,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13777
13770
|
return l(o, [{ key: "processIntersections", value: function(e, t, n, s) {
|
|
13778
13771
|
} }, { key: "isDone", value: function() {
|
|
13779
13772
|
} }]), o;
|
|
13780
|
-
}(),
|
|
13773
|
+
}(), xh = function() {
|
|
13781
13774
|
function o() {
|
|
13782
13775
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13783
13776
|
}
|
|
@@ -13821,7 +13814,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13821
13814
|
} }, { key: "isAdjacentSegments", value: function(e, t) {
|
|
13822
13815
|
return Math.abs(e - t) === 1;
|
|
13823
13816
|
} }]), o;
|
|
13824
|
-
}(),
|
|
13817
|
+
}(), Sh = function() {
|
|
13825
13818
|
function o() {
|
|
13826
13819
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13827
13820
|
}
|
|
@@ -13849,7 +13842,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13849
13842
|
var e = arguments[0], t = arguments[1], n = arguments[2];
|
|
13850
13843
|
this.coord = new C(e), this.segmentIndex = t, this.dist = n;
|
|
13851
13844
|
} }]), o;
|
|
13852
|
-
}(),
|
|
13845
|
+
}(), Ih = function() {
|
|
13853
13846
|
function o() {
|
|
13854
13847
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13855
13848
|
}
|
|
@@ -13877,7 +13870,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13877
13870
|
h[y++] = this.edge.pts[d];
|
|
13878
13871
|
return c && (h[y] = t.coord), new No(h, new mt(this.edge._label));
|
|
13879
13872
|
} }, { key: "add", value: function(e, t, n) {
|
|
13880
|
-
var s = new
|
|
13873
|
+
var s = new Sh(e, t, n), c = this._nodeMap.get(s);
|
|
13881
13874
|
return c !== null ? c : (this._nodeMap.put(s, s), s);
|
|
13882
13875
|
} }, { key: "isIntersection", value: function(e) {
|
|
13883
13876
|
for (var t = this.iterator(); t.hasNext(); )
|
|
@@ -13889,7 +13882,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13889
13882
|
var e = arguments[0];
|
|
13890
13883
|
this.edge = e;
|
|
13891
13884
|
} }]), o;
|
|
13892
|
-
}(),
|
|
13885
|
+
}(), bh = function() {
|
|
13893
13886
|
function o() {
|
|
13894
13887
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13895
13888
|
}
|
|
@@ -13989,7 +13982,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13989
13982
|
} }, { key: "isTrue", value: function(e) {
|
|
13990
13983
|
return e >= 0 || e === V.TRUE;
|
|
13991
13984
|
} }]), o;
|
|
13992
|
-
}(),
|
|
13985
|
+
}(), wh = function() {
|
|
13993
13986
|
function o() {
|
|
13994
13987
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
13995
13988
|
}
|
|
@@ -14015,12 +14008,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14015
14008
|
this._data = new Array(e).fill(null);
|
|
14016
14009
|
}
|
|
14017
14010
|
} }]), o;
|
|
14018
|
-
}(),
|
|
14011
|
+
}(), Nh = function() {
|
|
14019
14012
|
function o() {
|
|
14020
14013
|
i(this, o);
|
|
14021
14014
|
}
|
|
14022
14015
|
return l(o, [{ key: "getChainStartIndices", value: function(e) {
|
|
14023
|
-
var t = 0, n = new
|
|
14016
|
+
var t = 0, n = new wh(Math.trunc(e.length / 2));
|
|
14024
14017
|
n.add(t);
|
|
14025
14018
|
do {
|
|
14026
14019
|
var s = this.findChainEnd(e, t);
|
|
@@ -14044,7 +14037,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14044
14037
|
t[n] = e.get(n).intValue();
|
|
14045
14038
|
return t;
|
|
14046
14039
|
} }]), o;
|
|
14047
|
-
}(),
|
|
14040
|
+
}(), Lh = function() {
|
|
14048
14041
|
function o() {
|
|
14049
14042
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14050
14043
|
}
|
|
@@ -14081,7 +14074,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14081
14074
|
this.e = null, this.pts = null, this.startIndex = null;
|
|
14082
14075
|
var e = arguments[0];
|
|
14083
14076
|
this.e = e, this.pts = e.getCoordinates();
|
|
14084
|
-
var t = new
|
|
14077
|
+
var t = new Nh();
|
|
14085
14078
|
this.startIndex = t.getChainStartIndices(this.pts);
|
|
14086
14079
|
} }]), o;
|
|
14087
14080
|
}(), wo = function() {
|
|
@@ -14207,7 +14200,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14207
14200
|
n.print(this.pts[s] + " ");
|
|
14208
14201
|
n.println("");
|
|
14209
14202
|
} }, { key: "getMonotoneChainEdge", value: function() {
|
|
14210
|
-
return this._mce === null && (this._mce = new
|
|
14203
|
+
return this._mce === null && (this._mce = new Lh(this)), this._mce;
|
|
14211
14204
|
} }, { key: "getEnvelope", value: function() {
|
|
14212
14205
|
if (this._env === null) {
|
|
14213
14206
|
this._env = new xe();
|
|
@@ -14243,7 +14236,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14243
14236
|
for (var h = 0; h < n.getIntersectionNum(); h++)
|
|
14244
14237
|
this.addIntersection(n, s, c, h);
|
|
14245
14238
|
} }], [{ key: "constructor_", value: function() {
|
|
14246
|
-
if (this.pts = null, this._env = null, this.eiList = new
|
|
14239
|
+
if (this.pts = null, this._env = null, this.eiList = new Ih(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new wo(), this._depthDelta = 0, arguments.length === 1) {
|
|
14247
14240
|
var n = arguments[0];
|
|
14248
14241
|
t.constructor_.call(this, n, null);
|
|
14249
14242
|
} else if (arguments.length === 2) {
|
|
@@ -14251,7 +14244,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14251
14244
|
this.pts = s, this._label = c;
|
|
14252
14245
|
}
|
|
14253
14246
|
} }, { key: "updateIM", value: function() {
|
|
14254
|
-
if (!(arguments.length === 2 && arguments[1] instanceof
|
|
14247
|
+
if (!(arguments.length === 2 && arguments[1] instanceof bh && arguments[0] instanceof mt))
|
|
14255
14248
|
return b(g(t), "updateIM", this).apply(this, arguments);
|
|
14256
14249
|
var n = arguments[0], s = arguments[1];
|
|
14257
14250
|
s.setAtLeastIfValid(n.getLocation(0, W.ON), n.getLocation(1, W.ON), 1), n.isArea() && (s.setAtLeastIfValid(n.getLocation(0, W.LEFT), n.getLocation(1, W.LEFT), 2), s.setAtLeastIfValid(n.getLocation(0, W.RIGHT), n.getLocation(1, W.RIGHT), 2));
|
|
@@ -14280,7 +14273,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14280
14273
|
for (var t = new ne(), n = e.getNodes().iterator(); n.hasNext(); ) {
|
|
14281
14274
|
var s = n.next();
|
|
14282
14275
|
if (!s.isVisited()) {
|
|
14283
|
-
var c = new
|
|
14276
|
+
var c = new ss();
|
|
14284
14277
|
c.create(s), t.add(c);
|
|
14285
14278
|
}
|
|
14286
14279
|
}
|
|
@@ -14290,16 +14283,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14290
14283
|
} }, { key: "getNoder", value: function(e) {
|
|
14291
14284
|
if (this._workingNoder !== null)
|
|
14292
14285
|
return this._workingNoder;
|
|
14293
|
-
var t = new
|
|
14294
|
-
return n.setPrecisionModel(e), t.setSegmentIntersector(new
|
|
14286
|
+
var t = new ps(), n = new In();
|
|
14287
|
+
return n.setPrecisionModel(e), t.setSegmentIntersector(new xh(n)), t;
|
|
14295
14288
|
} }, { key: "buffer", value: function(e, t) {
|
|
14296
14289
|
var n = this._workingPrecisionModel;
|
|
14297
14290
|
n === null && (n = e.getPrecisionModel()), this._geomFact = e.getFactory();
|
|
14298
|
-
var s = new
|
|
14291
|
+
var s = new hh(n, this._bufParams), c = new yh(e, t, s).getCurves();
|
|
14299
14292
|
if (c.size() <= 0)
|
|
14300
14293
|
return this.createEmptyResultGeometry();
|
|
14301
|
-
this.computeNodedEdges(c, n), this._graph = new ho(new
|
|
14302
|
-
var h = this.createSubgraphs(this._graph), y = new
|
|
14294
|
+
this.computeNodedEdges(c, n), this._graph = new ho(new Eh()), this._graph.addEdges(this._edgeList.getEdges());
|
|
14295
|
+
var h = this.createSubgraphs(this._graph), y = new $f(this._geomFact);
|
|
14303
14296
|
this.buildSubgraphs(h, y);
|
|
14304
14297
|
var d = y.getPolygons();
|
|
14305
14298
|
return d.size() <= 0 ? this.createEmptyResultGeometry() : this._geomFact.buildGeometry(d);
|
|
@@ -14316,7 +14309,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14316
14309
|
} }, { key: "setNoder", value: function(e) {
|
|
14317
14310
|
this._workingNoder = e;
|
|
14318
14311
|
} }], [{ key: "constructor_", value: function() {
|
|
14319
|
-
this._bufParams = null, this._workingPrecisionModel = null, this._workingNoder = null, this._geomFact = null, this._graph = null, this._edgeList = new
|
|
14312
|
+
this._bufParams = null, this._workingPrecisionModel = null, this._workingNoder = null, this._geomFact = null, this._graph = null, this._edgeList = new kh();
|
|
14320
14313
|
var e = arguments[0];
|
|
14321
14314
|
this._bufParams = e;
|
|
14322
14315
|
} }, { key: "depthDelta", value: function(e) {
|
|
@@ -14329,7 +14322,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14329
14322
|
}
|
|
14330
14323
|
return t.buildGeometry(n);
|
|
14331
14324
|
} }]), o;
|
|
14332
|
-
}(),
|
|
14325
|
+
}(), Th = function() {
|
|
14333
14326
|
function o() {
|
|
14334
14327
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14335
14328
|
}
|
|
@@ -14367,7 +14360,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14367
14360
|
var t = e;
|
|
14368
14361
|
this._isScaled && (t = this.scale(e)), this._noder.computeNodes(t);
|
|
14369
14362
|
} }, { key: "interfaces_", get: function() {
|
|
14370
|
-
return [
|
|
14363
|
+
return [ms];
|
|
14371
14364
|
} }], [{ key: "constructor_", value: function() {
|
|
14372
14365
|
if (this._noder = null, this._scaleFactor = null, this._offsetX = null, this._offsetY = null, this._isScaled = !1, arguments.length === 2) {
|
|
14373
14366
|
var e = arguments[0], t = arguments[1];
|
|
@@ -14440,7 +14433,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14440
14433
|
} }]), o;
|
|
14441
14434
|
}();
|
|
14442
14435
|
To.fact = new zn();
|
|
14443
|
-
var
|
|
14436
|
+
var Es = function() {
|
|
14444
14437
|
function o() {
|
|
14445
14438
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14446
14439
|
}
|
|
@@ -14483,8 +14476,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14483
14476
|
t !== 1 && (this._pt = new C(this.scale(e.x), this.scale(e.y)), this._p0Scaled = new C(), this._p1Scaled = new C()), this.initCorners(this._pt);
|
|
14484
14477
|
} }]), o;
|
|
14485
14478
|
}();
|
|
14486
|
-
|
|
14487
|
-
var
|
|
14479
|
+
Es.SAFE_ENV_EXPANSION_FACTOR = 0.75;
|
|
14480
|
+
var Ch = function() {
|
|
14488
14481
|
function o() {
|
|
14489
14482
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14490
14483
|
}
|
|
@@ -14546,9 +14539,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14546
14539
|
var n = arguments[0], s = arguments[1], c = arguments[2];
|
|
14547
14540
|
this._hotPixel = n, this._parentEdge = s, this._hotPixelVertexIndex = c;
|
|
14548
14541
|
} }]), t;
|
|
14549
|
-
}(
|
|
14542
|
+
}(Ch);
|
|
14550
14543
|
Co.HotPixelSnapAction = Oo;
|
|
14551
|
-
var
|
|
14544
|
+
var Oh = function() {
|
|
14552
14545
|
function o() {
|
|
14553
14546
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14554
14547
|
}
|
|
@@ -14572,7 +14565,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14572
14565
|
var e = arguments[0];
|
|
14573
14566
|
this._li = e, this._interiorIntersections = new ne();
|
|
14574
14567
|
} }]), o;
|
|
14575
|
-
}(),
|
|
14568
|
+
}(), Rh = function() {
|
|
14576
14569
|
function o() {
|
|
14577
14570
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14578
14571
|
}
|
|
@@ -14591,7 +14584,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14591
14584
|
var n = this.findInteriorIntersections(e, t);
|
|
14592
14585
|
this.computeIntersectionSnaps(n), this.computeVertexSnaps(e);
|
|
14593
14586
|
} }, { key: "findInteriorIntersections", value: function(e, t) {
|
|
14594
|
-
var n = new
|
|
14587
|
+
var n = new Oh(t);
|
|
14595
14588
|
return this._noder.setSegmentIntersector(n), this._noder.computeNodes(e), n.getInteriorIntersections();
|
|
14596
14589
|
} }, { key: "computeVertexSnaps", value: function() {
|
|
14597
14590
|
if (ue(arguments[0], le))
|
|
@@ -14601,18 +14594,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14601
14594
|
}
|
|
14602
14595
|
else if (arguments[0] instanceof bn)
|
|
14603
14596
|
for (var s = arguments[0], c = s.getCoordinates(), h = 0; h < c.length; h++) {
|
|
14604
|
-
var y = new
|
|
14597
|
+
var y = new Es(c[h], this._scaleFactor, this._li), d = this._pointSnapper.snap(y, s, h);
|
|
14605
14598
|
d && s.addIntersection(c[h], h);
|
|
14606
14599
|
}
|
|
14607
14600
|
} }, { key: "computeNodes", value: function(e) {
|
|
14608
|
-
this._nodedSegStrings = e, this._noder = new
|
|
14601
|
+
this._nodedSegStrings = e, this._noder = new ps(), this._pointSnapper = new Co(this._noder.getIndex()), this.snapRound(e, this._li);
|
|
14609
14602
|
} }, { key: "computeIntersectionSnaps", value: function(e) {
|
|
14610
14603
|
for (var t = e.iterator(); t.hasNext(); ) {
|
|
14611
|
-
var n = t.next(), s = new
|
|
14604
|
+
var n = t.next(), s = new Es(n, this._scaleFactor, this._li);
|
|
14612
14605
|
this._pointSnapper.snap(s);
|
|
14613
14606
|
}
|
|
14614
14607
|
} }, { key: "interfaces_", get: function() {
|
|
14615
|
-
return [
|
|
14608
|
+
return [ms];
|
|
14616
14609
|
} }], [{ key: "constructor_", value: function() {
|
|
14617
14610
|
this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
|
|
14618
14611
|
var e = arguments[0];
|
|
@@ -14623,7 +14616,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14623
14616
|
i(this, o), o.constructor_.apply(this, arguments);
|
|
14624
14617
|
}
|
|
14625
14618
|
return l(o, [{ key: "bufferFixedPrecision", value: function(e) {
|
|
14626
|
-
var t = new
|
|
14619
|
+
var t = new Th(new Rh(new wt(1)), e.getScale()), n = new Lo(this._bufParams);
|
|
14627
14620
|
n.setWorkingPrecisionModel(e), n.setNoder(t), this._resultGeometry = n.buffer(this._argGeom, this._distance);
|
|
14628
14621
|
} }, { key: "bufferReducedPrecision", value: function() {
|
|
14629
14622
|
if (arguments.length === 0) {
|
|
@@ -14700,7 +14693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14700
14693
|
} }]), o;
|
|
14701
14694
|
}();
|
|
14702
14695
|
jn.CAP_ROUND = P.CAP_ROUND, jn.CAP_BUTT = P.CAP_FLAT, jn.CAP_FLAT = P.CAP_FLAT, jn.CAP_SQUARE = P.CAP_SQUARE, jn.MAX_PRECISION_DIGITS = 12;
|
|
14703
|
-
var
|
|
14696
|
+
var Mh = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Ro = function() {
|
|
14704
14697
|
function o(e) {
|
|
14705
14698
|
i(this, o), this.geometryFactory = e || new zn();
|
|
14706
14699
|
}
|
|
@@ -14708,7 +14701,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14708
14701
|
var t, n = (t = typeof e == "string" ? JSON.parse(e) : e).type;
|
|
14709
14702
|
if (!_t[n])
|
|
14710
14703
|
throw new Error("Unknown GeoJSON type: " + t.type);
|
|
14711
|
-
return
|
|
14704
|
+
return Mh.indexOf(n) !== -1 ? _t[n].call(this, t.coordinates) : n === "GeometryCollection" ? _t[n].call(this, t.geometries) : _t[n].call(this, t);
|
|
14712
14705
|
} }, { key: "write", value: function(e) {
|
|
14713
14706
|
var t = e.getGeometryType();
|
|
14714
14707
|
if (!Ft[t])
|
|
@@ -14834,35 +14827,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14834
14827
|
} }]), o;
|
|
14835
14828
|
}() };
|
|
14836
14829
|
});
|
|
14837
|
-
})(
|
|
14838
|
-
var Y0 =
|
|
14839
|
-
const W0 = /* @__PURE__ */
|
|
14830
|
+
})(Ef);
|
|
14831
|
+
var Y0 = Ef.exports;
|
|
14832
|
+
const W0 = /* @__PURE__ */ oc(Y0);
|
|
14840
14833
|
function mn() {
|
|
14841
|
-
return new
|
|
14834
|
+
return new ji();
|
|
14842
14835
|
}
|
|
14843
|
-
function
|
|
14836
|
+
function ji() {
|
|
14844
14837
|
this.reset();
|
|
14845
14838
|
}
|
|
14846
|
-
|
|
14847
|
-
constructor:
|
|
14839
|
+
ji.prototype = {
|
|
14840
|
+
constructor: ji,
|
|
14848
14841
|
reset: function() {
|
|
14849
14842
|
this.s = // rounded value
|
|
14850
14843
|
this.t = 0;
|
|
14851
14844
|
},
|
|
14852
14845
|
add: function(a) {
|
|
14853
|
-
|
|
14846
|
+
Al(li, a, this.t), Al(this, li.s, this.s), this.s ? this.t += li.t : this.s = li.t;
|
|
14854
14847
|
},
|
|
14855
14848
|
valueOf: function() {
|
|
14856
14849
|
return this.s;
|
|
14857
14850
|
}
|
|
14858
14851
|
};
|
|
14859
|
-
var li = new
|
|
14860
|
-
function
|
|
14852
|
+
var li = new ji();
|
|
14853
|
+
function Al(a, r, i) {
|
|
14861
14854
|
var u = a.s = r + i, l = u - r, f = u - l;
|
|
14862
14855
|
a.t = r - f + (i - l);
|
|
14863
14856
|
}
|
|
14864
|
-
var be = 1e-6, me = Math.PI, qt = me / 2,
|
|
14865
|
-
function
|
|
14857
|
+
var be = 1e-6, me = Math.PI, qt = me / 2, Dl = me / 4, zt = me * 2, nn = 180 / me, kt = me / 180, We = Math.abs, X0 = Math.atan, ar = Math.atan2, Ae = Math.cos, De = Math.sin, gr = Math.sqrt;
|
|
14858
|
+
function kf(a) {
|
|
14866
14859
|
return a > 1 ? 0 : a < -1 ? me : Math.acos(a);
|
|
14867
14860
|
}
|
|
14868
14861
|
function On(a) {
|
|
@@ -14870,18 +14863,18 @@ function On(a) {
|
|
|
14870
14863
|
}
|
|
14871
14864
|
function Pr() {
|
|
14872
14865
|
}
|
|
14873
|
-
function
|
|
14874
|
-
a &&
|
|
14866
|
+
function Vi(a, r) {
|
|
14867
|
+
a && Bl.hasOwnProperty(a.type) && Bl[a.type](a, r);
|
|
14875
14868
|
}
|
|
14876
|
-
var
|
|
14869
|
+
var Fl = {
|
|
14877
14870
|
Feature: function(a, r) {
|
|
14878
|
-
|
|
14871
|
+
Vi(a.geometry, r);
|
|
14879
14872
|
},
|
|
14880
14873
|
FeatureCollection: function(a, r) {
|
|
14881
14874
|
for (var i = a.features, u = -1, l = i.length; ++u < l; )
|
|
14882
|
-
|
|
14875
|
+
Vi(i[u].geometry, r);
|
|
14883
14876
|
}
|
|
14884
|
-
},
|
|
14877
|
+
}, Bl = {
|
|
14885
14878
|
Sphere: function(a, r) {
|
|
14886
14879
|
r.sphere();
|
|
14887
14880
|
},
|
|
@@ -14900,15 +14893,15 @@ var Bl = {
|
|
|
14900
14893
|
Ia(i[u], r, 0);
|
|
14901
14894
|
},
|
|
14902
14895
|
Polygon: function(a, r) {
|
|
14903
|
-
|
|
14896
|
+
Gl(a.coordinates, r);
|
|
14904
14897
|
},
|
|
14905
14898
|
MultiPolygon: function(a, r) {
|
|
14906
14899
|
for (var i = a.coordinates, u = -1, l = i.length; ++u < l; )
|
|
14907
|
-
|
|
14900
|
+
Gl(i[u], r);
|
|
14908
14901
|
},
|
|
14909
14902
|
GeometryCollection: function(a, r) {
|
|
14910
14903
|
for (var i = a.geometries, u = -1, l = i.length; ++u < l; )
|
|
14911
|
-
|
|
14904
|
+
Vi(i[u], r);
|
|
14912
14905
|
}
|
|
14913
14906
|
};
|
|
14914
14907
|
function Ia(a, r, i) {
|
|
@@ -14917,14 +14910,14 @@ function Ia(a, r, i) {
|
|
|
14917
14910
|
f = a[u], r.point(f[0], f[1], f[2]);
|
|
14918
14911
|
r.lineEnd();
|
|
14919
14912
|
}
|
|
14920
|
-
function
|
|
14913
|
+
function Gl(a, r) {
|
|
14921
14914
|
var i = -1, u = a.length;
|
|
14922
14915
|
for (r.polygonStart(); ++i < u; )
|
|
14923
14916
|
Ia(a[i], r, 1);
|
|
14924
14917
|
r.polygonEnd();
|
|
14925
14918
|
}
|
|
14926
14919
|
function j0(a, r) {
|
|
14927
|
-
a &&
|
|
14920
|
+
a && Fl.hasOwnProperty(a.type) ? Fl[a.type](a, r) : Vi(a, r);
|
|
14928
14921
|
}
|
|
14929
14922
|
mn();
|
|
14930
14923
|
mn();
|
|
@@ -14938,7 +14931,7 @@ function or(a) {
|
|
|
14938
14931
|
function ci(a, r) {
|
|
14939
14932
|
return a[0] * r[0] + a[1] * r[1] + a[2] * r[2];
|
|
14940
14933
|
}
|
|
14941
|
-
function
|
|
14934
|
+
function Hi(a, r) {
|
|
14942
14935
|
return [a[1] * r[2] - a[2] * r[1], a[2] * r[0] - a[0] * r[2], a[0] * r[1] - a[1] * r[0]];
|
|
14943
14936
|
}
|
|
14944
14937
|
function Vs(a, r) {
|
|
@@ -14952,7 +14945,7 @@ function wa(a) {
|
|
|
14952
14945
|
a[0] /= r, a[1] /= r, a[2] /= r;
|
|
14953
14946
|
}
|
|
14954
14947
|
mn();
|
|
14955
|
-
function
|
|
14948
|
+
function xf(a, r) {
|
|
14956
14949
|
function i(u, l) {
|
|
14957
14950
|
return u = a(u, l), r(u[0], u[1]);
|
|
14958
14951
|
}
|
|
@@ -14965,18 +14958,18 @@ function Na(a, r) {
|
|
|
14965
14958
|
}
|
|
14966
14959
|
Na.invert = Na;
|
|
14967
14960
|
function V0(a, r, i) {
|
|
14968
|
-
return (a %= zt) ? r || i ?
|
|
14961
|
+
return (a %= zt) ? r || i ? xf(zl(a), Ul(r, i)) : zl(a) : r || i ? Ul(r, i) : Na;
|
|
14969
14962
|
}
|
|
14970
|
-
function
|
|
14963
|
+
function ql(a) {
|
|
14971
14964
|
return function(r, i) {
|
|
14972
14965
|
return r += a, [r > me ? r - zt : r < -me ? r + zt : r, i];
|
|
14973
14966
|
};
|
|
14974
14967
|
}
|
|
14975
|
-
function
|
|
14976
|
-
var r =
|
|
14977
|
-
return r.invert =
|
|
14968
|
+
function zl(a) {
|
|
14969
|
+
var r = ql(a);
|
|
14970
|
+
return r.invert = ql(-a), r;
|
|
14978
14971
|
}
|
|
14979
|
-
function
|
|
14972
|
+
function Ul(a, r) {
|
|
14980
14973
|
var i = Ae(a), u = De(a), l = Ae(r), f = De(r);
|
|
14981
14974
|
function g(v, m) {
|
|
14982
14975
|
var _ = Ae(m), k = Ae(v) * _, p = De(v) * _, x = De(m), S = x * i + k * u;
|
|
@@ -14996,17 +14989,17 @@ function Yl(a, r) {
|
|
|
14996
14989
|
function H0(a, r, i, u, l, f) {
|
|
14997
14990
|
if (i) {
|
|
14998
14991
|
var g = Ae(r), v = De(r), m = u * i;
|
|
14999
|
-
l == null ? (l = r + u * zt, f = r - m / 2) : (l =
|
|
14992
|
+
l == null ? (l = r + u * zt, f = r - m / 2) : (l = Yl(g, l), f = Yl(g, f), (u > 0 ? l < f : l > f) && (l += u * zt));
|
|
15000
14993
|
for (var _, k = l; u > 0 ? k > f : k < f; k -= m)
|
|
15001
14994
|
_ = ba([g, -v * Ae(k), -v * De(k)]), a.point(_[0], _[1]);
|
|
15002
14995
|
}
|
|
15003
14996
|
}
|
|
15004
|
-
function
|
|
14997
|
+
function Yl(a, r) {
|
|
15005
14998
|
r = or(r), r[0] -= a, wa(r);
|
|
15006
|
-
var i =
|
|
14999
|
+
var i = kf(-r[1]);
|
|
15007
15000
|
return ((-r[2] < 0 ? -i : i) + zt - be) % zt;
|
|
15008
15001
|
}
|
|
15009
|
-
function
|
|
15002
|
+
function Sf() {
|
|
15010
15003
|
var a = [], r;
|
|
15011
15004
|
return {
|
|
15012
15005
|
point: function(i, u) {
|
|
@@ -15073,18 +15066,18 @@ function Z0(a, r, i, u, l, f) {
|
|
|
15073
15066
|
}
|
|
15074
15067
|
}
|
|
15075
15068
|
}
|
|
15076
|
-
function
|
|
15069
|
+
function Ni(a, r) {
|
|
15077
15070
|
return We(a[0] - r[0]) < be && We(a[1] - r[1]) < be;
|
|
15078
15071
|
}
|
|
15079
15072
|
function hi(a, r, i, u) {
|
|
15080
15073
|
this.x = a, this.z = r, this.o = i, this.e = u, this.v = !1, this.n = this.p = null;
|
|
15081
15074
|
}
|
|
15082
|
-
function
|
|
15075
|
+
function If(a, r, i, u, l) {
|
|
15083
15076
|
var f = [], g = [], v, m;
|
|
15084
15077
|
if (a.forEach(function(b) {
|
|
15085
15078
|
if (!((R = b.length - 1) <= 0)) {
|
|
15086
15079
|
var R, L = b[0], T = b[R], M;
|
|
15087
|
-
if (
|
|
15080
|
+
if (Ni(L, T)) {
|
|
15088
15081
|
for (l.lineStart(), v = 0; v < R; ++v)
|
|
15089
15082
|
l.point((L = b[v])[0], L[1]);
|
|
15090
15083
|
l.lineEnd();
|
|
@@ -15093,7 +15086,7 @@ function bf(a, r, i, u, l) {
|
|
|
15093
15086
|
f.push(M = new hi(L, b, null, !0)), g.push(M.o = new hi(L, null, M, !1)), f.push(M = new hi(T, b, null, !1)), g.push(M.o = new hi(T, null, M, !0));
|
|
15094
15087
|
}
|
|
15095
15088
|
}), !!f.length) {
|
|
15096
|
-
for (g.sort(r),
|
|
15089
|
+
for (g.sort(r), Wl(f), Wl(g), v = 0, m = g.length; v < m; ++v)
|
|
15097
15090
|
g[v].e = i = !i;
|
|
15098
15091
|
for (var _ = f[0], k, p; ; ) {
|
|
15099
15092
|
for (var x = _, S = !0; x.v; )
|
|
@@ -15122,14 +15115,14 @@ function bf(a, r, i, u, l) {
|
|
|
15122
15115
|
}
|
|
15123
15116
|
}
|
|
15124
15117
|
}
|
|
15125
|
-
function
|
|
15118
|
+
function Wl(a) {
|
|
15126
15119
|
if (r = a.length) {
|
|
15127
15120
|
for (var r, i = 0, u = a[0], l; ++i < r; )
|
|
15128
15121
|
u.n = l = a[i], l.p = u, u = l;
|
|
15129
15122
|
u.n = l = a[0], l.p = u;
|
|
15130
15123
|
}
|
|
15131
15124
|
}
|
|
15132
|
-
function
|
|
15125
|
+
function bf(a, r) {
|
|
15133
15126
|
return a < r ? -1 : a > r ? 1 : a >= r ? 0 : NaN;
|
|
15134
15127
|
}
|
|
15135
15128
|
function K0(a) {
|
|
@@ -15152,11 +15145,11 @@ function K0(a) {
|
|
|
15152
15145
|
}
|
|
15153
15146
|
function Q0(a) {
|
|
15154
15147
|
return function(r, i) {
|
|
15155
|
-
return
|
|
15148
|
+
return bf(a(r), i);
|
|
15156
15149
|
};
|
|
15157
15150
|
}
|
|
15158
|
-
K0(
|
|
15159
|
-
function
|
|
15151
|
+
K0(bf);
|
|
15152
|
+
function wf(a) {
|
|
15160
15153
|
for (var r = a.length, i, u = -1, l = 0, f, g; ++u < r; )
|
|
15161
15154
|
l += a[u].length;
|
|
15162
15155
|
for (f = new Array(l); --r >= 0; )
|
|
@@ -15189,7 +15182,7 @@ function J0(a, r, i, u) {
|
|
|
15189
15182
|
return p !== x ? p - x : p === 0 ? k[1] - _[1] : p === 1 ? _[0] - k[0] : p === 2 ? _[1] - k[1] : k[0] - _[0];
|
|
15190
15183
|
}
|
|
15191
15184
|
return function(_) {
|
|
15192
|
-
var k = _, p =
|
|
15185
|
+
var k = _, p = Sf(), x, S, b, R, L, T, M, P, A, O, z, q = {
|
|
15193
15186
|
point: U,
|
|
15194
15187
|
lineStart: Z,
|
|
15195
15188
|
lineEnd: ae,
|
|
@@ -15209,8 +15202,8 @@ function J0(a, r, i, u) {
|
|
|
15209
15202
|
k = p, x = [], S = [], z = !0;
|
|
15210
15203
|
}
|
|
15211
15204
|
function ee() {
|
|
15212
|
-
var K = D(), ie = z && K, de = (x =
|
|
15213
|
-
(ie || de) && (_.polygonStart(), ie && (_.lineStart(), f(null, null, 1, _), _.lineEnd()), de &&
|
|
15205
|
+
var K = D(), ie = z && K, de = (x = wf(x)).length;
|
|
15206
|
+
(ie || de) && (_.polygonStart(), ie && (_.lineStart(), f(null, null, 1, _), _.lineEnd()), de && If(x, v, K, f, _), _.polygonEnd()), k = _, x = S = b = null;
|
|
15214
15207
|
}
|
|
15215
15208
|
function Z() {
|
|
15216
15209
|
q.point = F, S && S.push(b = []), O = !0, A = !1, M = P = NaN;
|
|
@@ -15239,12 +15232,12 @@ function $0(a, r) {
|
|
|
15239
15232
|
Hs.reset();
|
|
15240
15233
|
for (var v = 0, m = a.length; v < m; ++v)
|
|
15241
15234
|
if (k = (_ = a[v]).length)
|
|
15242
|
-
for (var _, k, p = _[k - 1], x = p[0], S = p[1] / 2 +
|
|
15243
|
-
var T = _[L], M = T[0], P = T[1] / 2 +
|
|
15235
|
+
for (var _, k, p = _[k - 1], x = p[0], S = p[1] / 2 + Dl, b = De(S), R = Ae(S), L = 0; L < k; ++L, x = M, b = A, R = O, p = T) {
|
|
15236
|
+
var T = _[L], M = T[0], P = T[1] / 2 + Dl, A = De(P), O = Ae(P), z = M - x, q = z >= 0 ? 1 : -1, U = q * z, D = U > me, H = b * A;
|
|
15244
15237
|
if (Hs.add(ar(H * q * De(U), R * O + H * Ae(U))), f += D ? z + q * zt : z, D ^ x >= i ^ M >= i) {
|
|
15245
|
-
var ee =
|
|
15238
|
+
var ee = Hi(or(p), or(T));
|
|
15246
15239
|
wa(ee);
|
|
15247
|
-
var Z =
|
|
15240
|
+
var Z = Hi(l, ee);
|
|
15248
15241
|
wa(Z);
|
|
15249
15242
|
var ae = (D ^ z >= 0 ? -1 : 1) * On(Z[2]);
|
|
15250
15243
|
(u > ae || u === ae && (ee[0] || ee[1])) && (g += D ^ z >= 0 ? 1 : -1);
|
|
@@ -15253,29 +15246,29 @@ function $0(a, r) {
|
|
|
15253
15246
|
return (f < -be || f < be && Hs < -be) ^ g & 1;
|
|
15254
15247
|
}
|
|
15255
15248
|
mn();
|
|
15256
|
-
function
|
|
15249
|
+
function Xl(a) {
|
|
15257
15250
|
return a;
|
|
15258
15251
|
}
|
|
15259
15252
|
mn();
|
|
15260
15253
|
mn();
|
|
15261
|
-
var ur = 1 / 0,
|
|
15254
|
+
var ur = 1 / 0, Zi = ur, Xr = -ur, Ki = Xr, jl = {
|
|
15262
15255
|
point: e_,
|
|
15263
15256
|
lineStart: Pr,
|
|
15264
15257
|
lineEnd: Pr,
|
|
15265
15258
|
polygonStart: Pr,
|
|
15266
15259
|
polygonEnd: Pr,
|
|
15267
15260
|
result: function() {
|
|
15268
|
-
var a = [[ur,
|
|
15269
|
-
return Xr =
|
|
15261
|
+
var a = [[ur, Zi], [Xr, Ki]];
|
|
15262
|
+
return Xr = Ki = -(Zi = ur = 1 / 0), a;
|
|
15270
15263
|
}
|
|
15271
15264
|
};
|
|
15272
15265
|
function e_(a, r) {
|
|
15273
|
-
a < ur && (ur = a), a > Xr && (Xr = a), r <
|
|
15266
|
+
a < ur && (ur = a), a > Xr && (Xr = a), r < Zi && (Zi = r), r > Ki && (Ki = r);
|
|
15274
15267
|
}
|
|
15275
15268
|
mn();
|
|
15276
|
-
function
|
|
15269
|
+
function Nf(a, r, i, u) {
|
|
15277
15270
|
return function(l, f) {
|
|
15278
|
-
var g = r(f), v = l.invert(u[0], u[1]), m =
|
|
15271
|
+
var g = r(f), v = l.invert(u[0], u[1]), m = Sf(), _ = r(m), k = !1, p, x, S, b = {
|
|
15279
15272
|
point: R,
|
|
15280
15273
|
lineStart: T,
|
|
15281
15274
|
lineEnd: M,
|
|
@@ -15283,9 +15276,9 @@ function Lf(a, r, i, u) {
|
|
|
15283
15276
|
b.point = P, b.lineStart = A, b.lineEnd = O, x = [], p = [];
|
|
15284
15277
|
},
|
|
15285
15278
|
polygonEnd: function() {
|
|
15286
|
-
b.point = R, b.lineStart = T, b.lineEnd = M, x =
|
|
15279
|
+
b.point = R, b.lineStart = T, b.lineEnd = M, x = wf(x);
|
|
15287
15280
|
var z = $0(p, v);
|
|
15288
|
-
x.length ? (k || (f.polygonStart(), k = !0),
|
|
15281
|
+
x.length ? (k || (f.polygonStart(), k = !0), If(x, n_, z, i, f)) : z && (k || (f.polygonStart(), k = !0), f.lineStart(), i(null, null, 1, f), f.lineEnd()), k && (f.polygonEnd(), k = !1), x = p = null;
|
|
15289
15282
|
},
|
|
15290
15283
|
sphere: function() {
|
|
15291
15284
|
f.polygonStart(), f.lineStart(), i(null, null, 1, f), f.lineEnd(), f.polygonEnd();
|
|
@@ -15337,7 +15330,7 @@ function t_(a) {
|
|
|
15337
15330
|
function n_(a, r) {
|
|
15338
15331
|
return ((a = a.x)[0] < 0 ? a[1] - qt - be : qt - a[1]) - ((r = r.x)[0] < 0 ? r[1] - qt - be : qt - r[1]);
|
|
15339
15332
|
}
|
|
15340
|
-
const
|
|
15333
|
+
const Vl = Nf(
|
|
15341
15334
|
function() {
|
|
15342
15335
|
return !0;
|
|
15343
15336
|
},
|
|
@@ -15393,13 +15386,13 @@ function a_(a, r) {
|
|
|
15393
15386
|
},
|
|
15394
15387
|
point: function(L, T) {
|
|
15395
15388
|
var M = [L, T], P, A = g(L, T), O = u ? A ? 0 : _(L, T) : A ? _(L + (L < 0 ? me : -me), T) : 0;
|
|
15396
|
-
if (!p && (b = S = A) && k.lineStart(), A !== S && (P = m(p, M), (!P ||
|
|
15389
|
+
if (!p && (b = S = A) && k.lineStart(), A !== S && (P = m(p, M), (!P || Ni(p, P) || Ni(M, P)) && (M[0] += be, M[1] += be, A = g(M[0], M[1]))), A !== S)
|
|
15397
15390
|
R = 0, A ? (k.lineStart(), P = m(M, p), k.point(P[0], P[1])) : (P = m(p, M), k.point(P[0], P[1]), k.lineEnd()), p = P;
|
|
15398
15391
|
else if (l && p && u ^ A) {
|
|
15399
15392
|
var z;
|
|
15400
15393
|
!(O & x) && (z = m(M, p, !0)) && (R = 0, u ? (k.lineStart(), k.point(z[0][0], z[0][1]), k.point(z[1][0], z[1][1]), k.lineEnd()) : (k.point(z[1][0], z[1][1]), k.lineEnd(), k.lineStart(), k.point(z[0][0], z[0][1])));
|
|
15401
15394
|
}
|
|
15402
|
-
A && (!p || !
|
|
15395
|
+
A && (!p || !Ni(p, M)) && k.point(M[0], M[1]), p = M, S = A, x = O;
|
|
15403
15396
|
},
|
|
15404
15397
|
lineEnd: function() {
|
|
15405
15398
|
S && k.lineEnd(), p = null;
|
|
@@ -15412,10 +15405,10 @@ function a_(a, r) {
|
|
|
15412
15405
|
};
|
|
15413
15406
|
}
|
|
15414
15407
|
function m(k, p, x) {
|
|
15415
|
-
var S = or(k), b = or(p), R = [1, 0, 0], L =
|
|
15408
|
+
var S = or(k), b = or(p), R = [1, 0, 0], L = Hi(S, b), T = ci(L, L), M = L[0], P = T - M * M;
|
|
15416
15409
|
if (!P)
|
|
15417
15410
|
return !x && k;
|
|
15418
|
-
var A = i * T / P, O = -i * M / P, z =
|
|
15411
|
+
var A = i * T / P, O = -i * M / P, z = Hi(R, L), q = fi(R, A), U = fi(L, O);
|
|
15419
15412
|
Vs(q, U);
|
|
15420
15413
|
var D = z, H = ci(q, D), ee = ci(D, D), Z = H * H - ee * (ci(q, q) - 1);
|
|
15421
15414
|
if (!(Z < 0)) {
|
|
@@ -15435,9 +15428,9 @@ function a_(a, r) {
|
|
|
15435
15428
|
var x = u ? a : me - a, S = 0;
|
|
15436
15429
|
return k < -x ? S |= 1 : k > x && (S |= 2), p < -x ? S |= 4 : p > x && (S |= 8), S;
|
|
15437
15430
|
}
|
|
15438
|
-
return
|
|
15431
|
+
return Nf(g, v, f, u ? [0, -a] : [-me, a - me]);
|
|
15439
15432
|
}
|
|
15440
|
-
function
|
|
15433
|
+
function Lf(a) {
|
|
15441
15434
|
return function(r) {
|
|
15442
15435
|
var i = new La();
|
|
15443
15436
|
for (var u in a)
|
|
@@ -15468,21 +15461,21 @@ La.prototype = {
|
|
|
15468
15461
|
this.stream.polygonEnd();
|
|
15469
15462
|
}
|
|
15470
15463
|
};
|
|
15471
|
-
function
|
|
15464
|
+
function Tf(a, r, i) {
|
|
15472
15465
|
var u = r[1][0] - r[0][0], l = r[1][1] - r[0][1], f = a.clipExtent && a.clipExtent();
|
|
15473
|
-
a.scale(150).translate([0, 0]), f != null && a.clipExtent(null), j0(i, a.stream(
|
|
15474
|
-
var g =
|
|
15466
|
+
a.scale(150).translate([0, 0]), f != null && a.clipExtent(null), j0(i, a.stream(jl));
|
|
15467
|
+
var g = jl.result(), v = Math.min(u / (g[1][0] - g[0][0]), l / (g[1][1] - g[0][1])), m = +r[0][0] + (u - v * (g[1][0] + g[0][0])) / 2, _ = +r[0][1] + (l - v * (g[1][1] + g[0][1])) / 2;
|
|
15475
15468
|
return f != null && a.clipExtent(f), a.scale(v * 150).translate([m, _]);
|
|
15476
15469
|
}
|
|
15477
15470
|
function o_(a, r, i) {
|
|
15478
|
-
return
|
|
15471
|
+
return Tf(a, [[0, 0], r], i);
|
|
15479
15472
|
}
|
|
15480
|
-
var
|
|
15481
|
-
function
|
|
15473
|
+
var Hl = 16, u_ = Ae(30 * kt);
|
|
15474
|
+
function Zl(a, r) {
|
|
15482
15475
|
return +r ? c_(a, r) : l_(a);
|
|
15483
15476
|
}
|
|
15484
15477
|
function l_(a) {
|
|
15485
|
-
return
|
|
15478
|
+
return Lf({
|
|
15486
15479
|
point: function(r, i) {
|
|
15487
15480
|
r = a(r, i), this.stream.point(r[0], r[1]);
|
|
15488
15481
|
}
|
|
@@ -15516,7 +15509,7 @@ function c_(a, r) {
|
|
|
15516
15509
|
}
|
|
15517
15510
|
function P(U, D) {
|
|
15518
15511
|
var H = or([U, D]), ee = a(U, D);
|
|
15519
|
-
i(p, x, k, S, b, R, p = ee[0], x = ee[1], k = U, S = H[0], b = H[1], R = H[2],
|
|
15512
|
+
i(p, x, k, S, b, R, p = ee[0], x = ee[1], k = U, S = H[0], b = H[1], R = H[2], Hl, u), u.point(p, x);
|
|
15520
15513
|
}
|
|
15521
15514
|
function A() {
|
|
15522
15515
|
L.point = T, u.lineEnd();
|
|
@@ -15528,12 +15521,12 @@ function c_(a, r) {
|
|
|
15528
15521
|
P(l = U, D), f = p, g = x, v = S, m = b, _ = R, L.point = P;
|
|
15529
15522
|
}
|
|
15530
15523
|
function q() {
|
|
15531
|
-
i(p, x, k, S, b, R, f, g, l, v, m, _,
|
|
15524
|
+
i(p, x, k, S, b, R, f, g, l, v, m, _, Hl, u), L.lineEnd = A, A();
|
|
15532
15525
|
}
|
|
15533
15526
|
return L;
|
|
15534
15527
|
};
|
|
15535
15528
|
}
|
|
15536
|
-
var f_ =
|
|
15529
|
+
var f_ = Lf({
|
|
15537
15530
|
point: function(a, r) {
|
|
15538
15531
|
this.stream.point(a * kt, r * kt);
|
|
15539
15532
|
}
|
|
@@ -15544,7 +15537,7 @@ function h_(a) {
|
|
|
15544
15537
|
})();
|
|
15545
15538
|
}
|
|
15546
15539
|
function g_(a) {
|
|
15547
|
-
var r, i = 150, u = 480, l = 250, f, g, v = 0, m = 0, _ = 0, k = 0, p = 0, x, S, b = null, R =
|
|
15540
|
+
var r, i = 150, u = 480, l = 250, f, g, v = 0, m = 0, _ = 0, k = 0, p = 0, x, S, b = null, R = Vl, L = null, T, M, P, A = Xl, O = 0.5, z = Zl(ee, O), q, U;
|
|
15548
15541
|
function D(F) {
|
|
15549
15542
|
return F = S(F[0] * kt, F[1] * kt), [F[0] * i + f, g - F[1] * i];
|
|
15550
15543
|
}
|
|
@@ -15557,9 +15550,9 @@ function g_(a) {
|
|
|
15557
15550
|
D.stream = function(F) {
|
|
15558
15551
|
return q && U === F ? q : q = f_(R(x, z(A(U = F))));
|
|
15559
15552
|
}, D.clipAngle = function(F) {
|
|
15560
|
-
return arguments.length ? (R = +F ? a_(b = F * kt, 6 * kt) : (b = null,
|
|
15553
|
+
return arguments.length ? (R = +F ? a_(b = F * kt, 6 * kt) : (b = null, Vl), ae()) : b * nn;
|
|
15561
15554
|
}, D.clipExtent = function(F) {
|
|
15562
|
-
return arguments.length ? (A = F == null ? (L = T = M = P = null,
|
|
15555
|
+
return arguments.length ? (A = F == null ? (L = T = M = P = null, Xl) : J0(L = +F[0][0], T = +F[0][1], M = +F[1][0], P = +F[1][1]), ae()) : L == null ? null : [[L, T], [M, P]];
|
|
15563
15556
|
}, D.scale = function(F) {
|
|
15564
15557
|
return arguments.length ? (i = +F, Z()) : i;
|
|
15565
15558
|
}, D.translate = function(F) {
|
|
@@ -15569,14 +15562,14 @@ function g_(a) {
|
|
|
15569
15562
|
}, D.rotate = function(F) {
|
|
15570
15563
|
return arguments.length ? (_ = F[0] % 360 * kt, k = F[1] % 360 * kt, p = F.length > 2 ? F[2] % 360 * kt : 0, Z()) : [_ * nn, k * nn, p * nn];
|
|
15571
15564
|
}, D.precision = function(F) {
|
|
15572
|
-
return arguments.length ? (z =
|
|
15565
|
+
return arguments.length ? (z = Zl(ee, O = F * F), ae()) : gr(O);
|
|
15573
15566
|
}, D.fitExtent = function(F, K) {
|
|
15574
|
-
return
|
|
15567
|
+
return Tf(D, F, K);
|
|
15575
15568
|
}, D.fitSize = function(F, K) {
|
|
15576
15569
|
return o_(D, F, K);
|
|
15577
15570
|
};
|
|
15578
15571
|
function Z() {
|
|
15579
|
-
S =
|
|
15572
|
+
S = xf(x = V0(_, k, p), r);
|
|
15580
15573
|
var F = r(v, m);
|
|
15581
15574
|
return f = u - F[0] * i, g = l + F[1] * i, ae();
|
|
15582
15575
|
}
|
|
@@ -15587,7 +15580,7 @@ function g_(a) {
|
|
|
15587
15580
|
return r = a.apply(this, arguments), D.invert = r.invert && H, Z();
|
|
15588
15581
|
};
|
|
15589
15582
|
}
|
|
15590
|
-
function
|
|
15583
|
+
function Cf(a) {
|
|
15591
15584
|
return function(r, i) {
|
|
15592
15585
|
var u = Ae(r), l = Ae(i), f = a(u * l);
|
|
15593
15586
|
return [
|
|
@@ -15596,7 +15589,7 @@ function Of(a) {
|
|
|
15596
15589
|
];
|
|
15597
15590
|
};
|
|
15598
15591
|
}
|
|
15599
|
-
function
|
|
15592
|
+
function Of(a) {
|
|
15600
15593
|
return function(r, i) {
|
|
15601
15594
|
var u = gr(r * r + i * i), l = a(u), f = De(l), g = Ae(l);
|
|
15602
15595
|
return [
|
|
@@ -15605,27 +15598,27 @@ function Rf(a) {
|
|
|
15605
15598
|
];
|
|
15606
15599
|
};
|
|
15607
15600
|
}
|
|
15608
|
-
var y_ =
|
|
15601
|
+
var y_ = Cf(function(a) {
|
|
15609
15602
|
return gr(2 / (1 + a));
|
|
15610
15603
|
});
|
|
15611
|
-
y_.invert =
|
|
15604
|
+
y_.invert = Of(function(a) {
|
|
15612
15605
|
return 2 * On(a / 2);
|
|
15613
15606
|
});
|
|
15614
|
-
var
|
|
15615
|
-
return (a =
|
|
15607
|
+
var Rf = Cf(function(a) {
|
|
15608
|
+
return (a = kf(a)) && a / De(a);
|
|
15616
15609
|
});
|
|
15617
|
-
|
|
15610
|
+
Rf.invert = Of(function(a) {
|
|
15618
15611
|
return a;
|
|
15619
15612
|
});
|
|
15620
15613
|
function v_() {
|
|
15621
|
-
return h_(
|
|
15614
|
+
return h_(Rf).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15622
15615
|
}
|
|
15623
|
-
function
|
|
15616
|
+
function Kl(a, r) {
|
|
15624
15617
|
return [a, r];
|
|
15625
15618
|
}
|
|
15626
|
-
|
|
15619
|
+
Kl.invert = Kl;
|
|
15627
15620
|
var d_ = Object.defineProperty, yr = (a, r) => d_(a, "name", { value: r, configurable: !0 }), { BufferOp: m_, GeoJSONReader: p_, GeoJSONWriter: __ } = W0;
|
|
15628
|
-
function
|
|
15621
|
+
function Mf(a, r, i) {
|
|
15629
15622
|
i = i || {};
|
|
15630
15623
|
var u = i.units || "kilometers", l = i.steps || 8;
|
|
15631
15624
|
if (!a)
|
|
@@ -15646,16 +15639,16 @@ function Pf(a, r, i) {
|
|
|
15646
15639
|
v && f.push(v);
|
|
15647
15640
|
}), Mt(f);
|
|
15648
15641
|
case "FeatureCollection":
|
|
15649
|
-
return
|
|
15642
|
+
return Xi(a, function(g) {
|
|
15650
15643
|
var v = qr(g, r, u, l);
|
|
15651
|
-
v &&
|
|
15644
|
+
v && Xi(v, function(m) {
|
|
15652
15645
|
m && f.push(m);
|
|
15653
15646
|
});
|
|
15654
15647
|
}), Mt(f);
|
|
15655
15648
|
}
|
|
15656
15649
|
return qr(a, r, u, l);
|
|
15657
15650
|
}
|
|
15658
|
-
yr(
|
|
15651
|
+
yr(Mf, "buffer");
|
|
15659
15652
|
function qr(a, r, i, u) {
|
|
15660
15653
|
var l = a.properties || {}, f = a.type === "Feature" ? a.geometry : a;
|
|
15661
15654
|
if (f.type === "GeometryCollection") {
|
|
@@ -15665,10 +15658,10 @@ function qr(a, r, i, u) {
|
|
|
15665
15658
|
L && g.push(L);
|
|
15666
15659
|
}), Mt(g);
|
|
15667
15660
|
}
|
|
15668
|
-
var v =
|
|
15661
|
+
var v = Pf(f), m = {
|
|
15669
15662
|
type: f.type,
|
|
15670
15663
|
coordinates: Ka(f.coordinates, v)
|
|
15671
|
-
}, _ = new p_(), k = _.read(m), p = ja(
|
|
15664
|
+
}, _ = new p_(), k = _.read(m), p = ja(ts(r, i), "meters"), x = m_.bufferOp(k, p, u), S = new __();
|
|
15672
15665
|
if (x = S.write(x), !Za(x.coordinates)) {
|
|
15673
15666
|
var b = {
|
|
15674
15667
|
type: x.type,
|
|
@@ -15694,29 +15687,29 @@ function Qa(a, r) {
|
|
|
15694
15687
|
});
|
|
15695
15688
|
}
|
|
15696
15689
|
yr(Qa, "unprojectCoords");
|
|
15697
|
-
function
|
|
15698
|
-
var r =
|
|
15690
|
+
function Pf(a) {
|
|
15691
|
+
var r = _f(a).geometry.coordinates, i = [-r[0], -r[1]];
|
|
15699
15692
|
return v_().rotate(i).scale(it);
|
|
15700
15693
|
}
|
|
15701
|
-
yr(
|
|
15702
|
-
var E_ =
|
|
15703
|
-
function
|
|
15694
|
+
yr(Pf, "defineProjection");
|
|
15695
|
+
var E_ = Mf, k_ = Object.defineProperty, x_ = (a, r) => k_(a, "name", { value: r, configurable: !0 });
|
|
15696
|
+
function Af(a) {
|
|
15704
15697
|
const r = [];
|
|
15705
15698
|
if (Pn(a, (l) => {
|
|
15706
15699
|
r.push(l.coordinates);
|
|
15707
15700
|
}), r.length < 2)
|
|
15708
15701
|
throw new Error("Must have at least two features");
|
|
15709
|
-
const i = a.features[0].properties || {}, u =
|
|
15710
|
-
return u.length === 0 ? null : u.length === 1 ? fr(u[0], i) :
|
|
15702
|
+
const i = a.features[0].properties || {}, u = gf.difference(r[0], ...r.slice(1));
|
|
15703
|
+
return u.length === 0 ? null : u.length === 1 ? fr(u[0], i) : es(u, i);
|
|
15711
15704
|
}
|
|
15712
|
-
x_(
|
|
15713
|
-
var S_ =
|
|
15714
|
-
function
|
|
15705
|
+
x_(Af, "difference");
|
|
15706
|
+
var S_ = Af;
|
|
15707
|
+
function Ql(a) {
|
|
15715
15708
|
let r;
|
|
15716
15709
|
for (const i of a)
|
|
15717
15710
|
r && i[0] - r[0] >= 180 ? i[0] -= 360 : r && i[0] - r[0] < -180 && (i[0] += 360), r = i;
|
|
15718
15711
|
}
|
|
15719
|
-
function
|
|
15712
|
+
function Jl(a, r) {
|
|
15720
15713
|
const i = S_(
|
|
15721
15714
|
Mt([
|
|
15722
15715
|
fr([
|
|
@@ -15738,15 +15731,15 @@ function $l(a, r) {
|
|
|
15738
15731
|
if (u) {
|
|
15739
15732
|
if (u.geometry.type === "Polygon")
|
|
15740
15733
|
for (const l of u.geometry.coordinates)
|
|
15741
|
-
|
|
15734
|
+
Ql(l);
|
|
15742
15735
|
else
|
|
15743
15736
|
for (const l of u.geometry.coordinates)
|
|
15744
15737
|
for (const f of l)
|
|
15745
|
-
|
|
15738
|
+
Ql(f);
|
|
15746
15739
|
r(Mt([u, i]));
|
|
15747
15740
|
}
|
|
15748
15741
|
}
|
|
15749
|
-
const
|
|
15742
|
+
const $l = Mt([]);
|
|
15750
15743
|
function I_(a, r, i = !0, u = !0, l = {}, f = {}, g = {
|
|
15751
15744
|
fill: {
|
|
15752
15745
|
paint: {
|
|
@@ -15773,7 +15766,7 @@ function I_(a, r, i = !0, u = !0, l = {}, f = {}, g = {
|
|
|
15773
15766
|
function x() {
|
|
15774
15767
|
!a.getSource("full-geom") && (g != null && g.fill || g != null && g.line) && a.addSource("full-geom", {
|
|
15775
15768
|
type: "geojson",
|
|
15776
|
-
data:
|
|
15769
|
+
data: $l
|
|
15777
15770
|
}), !a.getLayer("full-geom-fill") && (g != null && g.fill) && a.addLayer({
|
|
15778
15771
|
...g == null ? void 0 : g.fill,
|
|
15779
15772
|
id: "full-geom-fill",
|
|
@@ -15801,7 +15794,7 @@ function I_(a, r, i = !0, u = !0, l = {}, f = {}, g = {
|
|
|
15801
15794
|
if (!r)
|
|
15802
15795
|
throw new Error();
|
|
15803
15796
|
const T = document.createElement("div");
|
|
15804
|
-
return L && T.classList.add("marker-interactive"), new
|
|
15797
|
+
return L && T.classList.add("marker-interactive"), new Eg({
|
|
15805
15798
|
props: { displayIn: "maplibre" },
|
|
15806
15799
|
target: T
|
|
15807
15800
|
}), new r.Marker({ element: T, offset: [1, -13] });
|
|
@@ -15836,7 +15829,7 @@ function I_(a, r, i = !0, u = !0, l = {}, f = {}, g = {
|
|
|
15836
15829
|
if (i) {
|
|
15837
15830
|
for (const M of m)
|
|
15838
15831
|
M.remove();
|
|
15839
|
-
if (m.length = 0, R(
|
|
15832
|
+
if (m.length = 0, R($l), !!r) {
|
|
15840
15833
|
if (T) {
|
|
15841
15834
|
let M = !1;
|
|
15842
15835
|
if (T.geometry.type === "GeometryCollection") {
|
|
@@ -15850,7 +15843,7 @@ function I_(a, r, i = !0, u = !0, l = {}, f = {}, g = {
|
|
|
15850
15843
|
);
|
|
15851
15844
|
if (!A)
|
|
15852
15845
|
break e;
|
|
15853
|
-
|
|
15846
|
+
Jl(
|
|
15854
15847
|
{
|
|
15855
15848
|
...T,
|
|
15856
15849
|
geometry: A.geometry
|
|
@@ -15869,7 +15862,7 @@ function I_(a, r, i = !0, u = !0, l = {}, f = {}, g = {
|
|
|
15869
15862
|
}
|
|
15870
15863
|
if (!M) {
|
|
15871
15864
|
if (T.geometry.type === "Polygon" || T.geometry.type === "MultiPolygon")
|
|
15872
|
-
|
|
15865
|
+
Jl(T, R);
|
|
15873
15866
|
else if (T.geometry.type === "LineString" || T.geometry.type === "MultiLineString") {
|
|
15874
15867
|
R(T);
|
|
15875
15868
|
return;
|
|
@@ -15917,8 +15910,8 @@ var ft, Ln;
|
|
|
15917
15910
|
class b_ extends EventTarget {
|
|
15918
15911
|
constructor(i = {}) {
|
|
15919
15912
|
super();
|
|
15920
|
-
|
|
15921
|
-
|
|
15913
|
+
Is(this, ft, void 0);
|
|
15914
|
+
Is(this, Ln, void 0);
|
|
15922
15915
|
ii(this, Ln, i);
|
|
15923
15916
|
}
|
|
15924
15917
|
onAddInt(i) {
|
|
@@ -15948,7 +15941,7 @@ class b_ extends EventTarget {
|
|
|
15948
15941
|
};
|
|
15949
15942
|
if (!x.apiKey)
|
|
15950
15943
|
throw new Error("no apiKey provided");
|
|
15951
|
-
ii(this, ft, new
|
|
15944
|
+
ii(this, ft, new Wg({ target: u, props: x }));
|
|
15952
15945
|
for (const S of [
|
|
15953
15946
|
"select",
|
|
15954
15947
|
"pick",
|
|
@@ -16006,7 +15999,7 @@ class b_ extends EventTarget {
|
|
|
16006
15999
|
ft = new WeakMap(), Ln = new WeakMap();
|
|
16007
16000
|
class T_ extends b_ {
|
|
16008
16001
|
getMapLibreGl() {
|
|
16009
|
-
return
|
|
16002
|
+
return Dh;
|
|
16010
16003
|
}
|
|
16011
16004
|
onAdd(r) {
|
|
16012
16005
|
return super.onAddInt(r);
|