@maptiler/geocoding-control 0.0.78 → 0.0.79
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 +456 -452
- package/leaflet.umd.js +5 -5
- package/maplibregl.js +456 -452
- package/maplibregl.umd.js +5 -5
- package/package.json +4 -4
- package/react.js +319 -315
- package/react.umd.js +1 -1
- package/src/lib/GeocodingControl.svelte +15 -3
- package/src/main.ts +12 -12
package/leaflet.js
CHANGED
|
@@ -10,39 +10,39 @@ var Gn = (r, t, e) => (ea(r, t, "read from private field"), e ? e.call(r) : t.ge
|
|
|
10
10
|
import * as er from "leaflet";
|
|
11
11
|
function Nt() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function sl(r, t) {
|
|
14
14
|
for (const e in t)
|
|
15
15
|
r[e] = t[e];
|
|
16
16
|
return r;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ha(r) {
|
|
19
19
|
return r();
|
|
20
20
|
}
|
|
21
21
|
function na() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
24
|
function Tr(r) {
|
|
25
|
-
r.forEach(
|
|
25
|
+
r.forEach(Ha);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Wa(r) {
|
|
28
28
|
return typeof r == "function";
|
|
29
29
|
}
|
|
30
30
|
function Ai(r, t) {
|
|
31
31
|
return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function al(r) {
|
|
34
34
|
return Object.keys(r).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ul(r, t, e, n) {
|
|
37
37
|
if (r) {
|
|
38
|
-
const i =
|
|
38
|
+
const i = ja(r, t, e, n);
|
|
39
39
|
return r[0](i);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return r[1] && n ?
|
|
42
|
+
function ja(r, t, e, n) {
|
|
43
|
+
return r[1] && n ? sl(e.ctx.slice(), r[1](n(t))) : e.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ll(r, t, e, n) {
|
|
46
46
|
if (r[2] && n) {
|
|
47
47
|
const i = r[2](n(e));
|
|
48
48
|
if (t.dirty === void 0)
|
|
@@ -57,13 +57,13 @@ function ul(r, t, e, n) {
|
|
|
57
57
|
}
|
|
58
58
|
return t.dirty;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function cl(r, t, e, n, i, o) {
|
|
61
61
|
if (i) {
|
|
62
|
-
const s =
|
|
62
|
+
const s = ja(t, e, n, o);
|
|
63
63
|
r.p(s, i);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function fl(r) {
|
|
67
67
|
if (r.ctx.length > 32) {
|
|
68
68
|
const t = [], e = r.ctx.length / 32;
|
|
69
69
|
for (let n = 0; n < e; n++)
|
|
@@ -84,7 +84,7 @@ function Ke(r, t, e) {
|
|
|
84
84
|
function Ae(r) {
|
|
85
85
|
r.parentNode && r.parentNode.removeChild(r);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function hl(r, t) {
|
|
88
88
|
for (let e = 0; e < r.length; e += 1)
|
|
89
89
|
r[e] && r[e].d(t);
|
|
90
90
|
}
|
|
@@ -103,7 +103,7 @@ function Xn() {
|
|
|
103
103
|
function ke(r, t, e, n) {
|
|
104
104
|
return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function gl(r) {
|
|
107
107
|
return function(t) {
|
|
108
108
|
return t.preventDefault(), r.call(this, t);
|
|
109
109
|
};
|
|
@@ -111,7 +111,7 @@ function hl(r) {
|
|
|
111
111
|
function B(r, t, e) {
|
|
112
112
|
e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function pl(r) {
|
|
115
115
|
return Array.from(r.childNodes);
|
|
116
116
|
}
|
|
117
117
|
function Ki(r, t) {
|
|
@@ -123,7 +123,7 @@ function ia(r, t) {
|
|
|
123
123
|
function nn(r, t, e) {
|
|
124
124
|
r.classList[e ? "add" : "remove"](t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function dl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
127
127
|
const i = document.createEvent("CustomEvent");
|
|
128
128
|
return i.initCustomEvent(r, e, n, t), i;
|
|
129
129
|
}
|
|
@@ -131,20 +131,20 @@ let Qi;
|
|
|
131
131
|
function Wi(r) {
|
|
132
132
|
Qi = r;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ka() {
|
|
135
135
|
if (!Qi)
|
|
136
136
|
throw new Error("Function called outside component initialization");
|
|
137
137
|
return Qi;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
139
|
+
function vl(r) {
|
|
140
|
+
Ka().$$.on_destroy.push(r);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const r =
|
|
142
|
+
function yl() {
|
|
143
|
+
const r = Ka();
|
|
144
144
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
145
145
|
const i = r.$$.callbacks[t];
|
|
146
146
|
if (i) {
|
|
147
|
-
const o =
|
|
147
|
+
const o = dl(t, e, { cancelable: n });
|
|
148
148
|
return i.slice().forEach((s) => {
|
|
149
149
|
s.call(r, o);
|
|
150
150
|
}), !o.defaultPrevented;
|
|
@@ -154,17 +154,17 @@ function vl() {
|
|
|
154
154
|
}
|
|
155
155
|
const ui = [], ms = [];
|
|
156
156
|
let ci = [];
|
|
157
|
-
const oa = [],
|
|
157
|
+
const oa = [], ml = /* @__PURE__ */ Promise.resolve();
|
|
158
158
|
let _s = !1;
|
|
159
|
-
function
|
|
160
|
-
_s || (_s = !0,
|
|
159
|
+
function _l() {
|
|
160
|
+
_s || (_s = !0, ml.then(Qa));
|
|
161
161
|
}
|
|
162
162
|
function Es(r) {
|
|
163
163
|
ci.push(r);
|
|
164
164
|
}
|
|
165
165
|
const gs = /* @__PURE__ */ new Set();
|
|
166
166
|
let ai = 0;
|
|
167
|
-
function
|
|
167
|
+
function Qa() {
|
|
168
168
|
if (ai !== 0)
|
|
169
169
|
return;
|
|
170
170
|
const r = Qi;
|
|
@@ -172,7 +172,7 @@ function Ka() {
|
|
|
172
172
|
try {
|
|
173
173
|
for (; ai < ui.length; ) {
|
|
174
174
|
const t = ui[ai];
|
|
175
|
-
ai++, Wi(t),
|
|
175
|
+
ai++, Wi(t), El(t.$$);
|
|
176
176
|
}
|
|
177
177
|
} catch (t) {
|
|
178
178
|
throw ui.length = 0, ai = 0, t;
|
|
@@ -189,14 +189,14 @@ function Ka() {
|
|
|
189
189
|
oa.pop()();
|
|
190
190
|
_s = !1, gs.clear(), Wi(r);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function El(r) {
|
|
193
193
|
if (r.fragment !== null) {
|
|
194
194
|
r.update(), Tr(r.before_update);
|
|
195
195
|
const t = r.dirty;
|
|
196
196
|
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(Es);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Il(r) {
|
|
200
200
|
const t = [], e = [];
|
|
201
201
|
ci.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), ci = t;
|
|
202
202
|
}
|
|
@@ -232,16 +232,16 @@ function Ji(r) {
|
|
|
232
232
|
function fi(r, t, e, n) {
|
|
233
233
|
const { fragment: i, after_update: o } = r.$$;
|
|
234
234
|
i && i.m(t, e), n || Es(() => {
|
|
235
|
-
const s = r.$$.on_mount.map(
|
|
235
|
+
const s = r.$$.on_mount.map(Ha).filter(Wa);
|
|
236
236
|
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Tr(s), r.$$.on_mount = [];
|
|
237
237
|
}), o.forEach(Es);
|
|
238
238
|
}
|
|
239
239
|
function hi(r, t) {
|
|
240
240
|
const e = r.$$;
|
|
241
|
-
e.fragment !== null && (
|
|
241
|
+
e.fragment !== null && (Il(e.after_update), Tr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
r.$$.dirty[0] === -1 && (ui.push(r),
|
|
243
|
+
function Cl(r, t) {
|
|
244
|
+
r.$$.dirty[0] === -1 && (ui.push(r), _l(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
245
245
|
}
|
|
246
246
|
function Fi(r, t, e, n, i, o, s, a = [-1]) {
|
|
247
247
|
const u = Qi;
|
|
@@ -271,14 +271,14 @@ function Fi(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
271
271
|
let c = !1;
|
|
272
272
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
273
273
|
const p = g.length ? g[0] : h;
|
|
274
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
274
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Cl(r, f)), h;
|
|
275
275
|
}) : [], l.update(), c = !0, Tr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
276
276
|
if (t.hydrate) {
|
|
277
|
-
const f =
|
|
277
|
+
const f = pl(t.target);
|
|
278
278
|
l.fragment && l.fragment.l(f), f.forEach(Ae);
|
|
279
279
|
} else
|
|
280
280
|
l.fragment && l.fragment.c();
|
|
281
|
-
t.intro && Kt(r.$$.fragment), fi(r, t.target, t.anchor, t.customElement),
|
|
281
|
+
t.intro && Kt(r.$$.fragment), fi(r, t.target, t.anchor, t.customElement), Qa();
|
|
282
282
|
}
|
|
283
283
|
Wi(u);
|
|
284
284
|
}
|
|
@@ -287,7 +287,7 @@ class Bi {
|
|
|
287
287
|
hi(this, 1), this.$destroy = Nt;
|
|
288
288
|
}
|
|
289
289
|
$on(t, e) {
|
|
290
|
-
if (!
|
|
290
|
+
if (!Wa(e))
|
|
291
291
|
return Nt;
|
|
292
292
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
293
293
|
return n.push(e), () => {
|
|
@@ -296,10 +296,10 @@ class Bi {
|
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
$set(t) {
|
|
299
|
-
this.$$set && !
|
|
299
|
+
this.$$set && !al(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Nl(r) {
|
|
303
303
|
let t, e;
|
|
304
304
|
return {
|
|
305
305
|
c() {
|
|
@@ -316,12 +316,12 @@ function Cl(r) {
|
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class xl extends Bi {
|
|
320
320
|
constructor(t) {
|
|
321
|
-
super(), Fi(this, t, null,
|
|
321
|
+
super(), Fi(this, t, null, Nl, Ai, {});
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Sl(r) {
|
|
325
325
|
let t, e;
|
|
326
326
|
return {
|
|
327
327
|
c() {
|
|
@@ -338,12 +338,12 @@ function xl(r) {
|
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
class
|
|
341
|
+
class wl extends Bi {
|
|
342
342
|
constructor(t) {
|
|
343
|
-
super(), Fi(this, t, null,
|
|
343
|
+
super(), Fi(this, t, null, Sl, Ai, {});
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ll(r) {
|
|
347
347
|
let t;
|
|
348
348
|
return {
|
|
349
349
|
c() {
|
|
@@ -360,12 +360,12 @@ function wl(r) {
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
class
|
|
363
|
+
class bl extends Bi {
|
|
364
364
|
constructor(t) {
|
|
365
|
-
super(), Fi(this, t, null,
|
|
365
|
+
super(), Fi(this, t, null, Ll, Ai, {});
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Pl(r) {
|
|
369
369
|
let t, e, n;
|
|
370
370
|
return {
|
|
371
371
|
c() {
|
|
@@ -409,18 +409,18 @@ function bl(r) {
|
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Rl(r, t, e) {
|
|
413
413
|
let { displayIn: n } = t;
|
|
414
414
|
return r.$$set = (i) => {
|
|
415
415
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
416
416
|
}, [n];
|
|
417
417
|
}
|
|
418
|
-
class
|
|
418
|
+
class Ja extends Bi {
|
|
419
419
|
constructor(t) {
|
|
420
|
-
super(), Fi(this, t,
|
|
420
|
+
super(), Fi(this, t, Rl, Pl, Ai, { displayIn: 0 });
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Ol(r) {
|
|
424
424
|
let t, e;
|
|
425
425
|
return {
|
|
426
426
|
c() {
|
|
@@ -437,9 +437,9 @@ function Rl(r) {
|
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
class
|
|
440
|
+
class Dl extends Bi {
|
|
441
441
|
constructor(t) {
|
|
442
|
-
super(), Fi(this, t, null,
|
|
442
|
+
super(), Fi(this, t, null, Ol, Ai, {});
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
function sa(r, t, e) {
|
|
@@ -448,7 +448,7 @@ function sa(r, t, e) {
|
|
|
448
448
|
}
|
|
449
449
|
function aa(r) {
|
|
450
450
|
let t, e;
|
|
451
|
-
return t = new
|
|
451
|
+
return t = new bl({}), {
|
|
452
452
|
c() {
|
|
453
453
|
Ji(t.$$.fragment);
|
|
454
454
|
},
|
|
@@ -468,7 +468,7 @@ function aa(r) {
|
|
|
468
468
|
}
|
|
469
469
|
function ua(r) {
|
|
470
470
|
let t, e, n, i, o;
|
|
471
|
-
return e = new
|
|
471
|
+
return e = new xl({}), {
|
|
472
472
|
c() {
|
|
473
473
|
t = Qt("button"), Ji(e.$$.fragment), B(t, "type", "button"), B(
|
|
474
474
|
t,
|
|
@@ -516,7 +516,7 @@ function ua(r) {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Tl(r) {
|
|
520
520
|
let t, e, n, i, o = (
|
|
521
521
|
/*listFeatures*/
|
|
522
522
|
r[12]
|
|
@@ -581,11 +581,11 @@ function Dl(r) {
|
|
|
581
581
|
e = !1;
|
|
582
582
|
},
|
|
583
583
|
d(u) {
|
|
584
|
-
u && Ae(t),
|
|
584
|
+
u && Ae(t), hl(s, u), n = !1, Tr(i);
|
|
585
585
|
}
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Ml(r) {
|
|
589
589
|
let t, e;
|
|
590
590
|
return {
|
|
591
591
|
c() {
|
|
@@ -612,7 +612,7 @@ function Tl(r) {
|
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Al(r) {
|
|
616
616
|
let t = "", e;
|
|
617
617
|
return {
|
|
618
618
|
c() {
|
|
@@ -629,7 +629,7 @@ function Ml(r) {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Fl(r) {
|
|
633
633
|
let t, e;
|
|
634
634
|
return {
|
|
635
635
|
c() {
|
|
@@ -690,7 +690,7 @@ function ca(r) {
|
|
|
690
690
|
/*feature*/
|
|
691
691
|
r[69].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
692
692
|
), p, m, d, y, I, C;
|
|
693
|
-
e = new
|
|
693
|
+
e = new Ja({ props: { displayIn: "list" } });
|
|
694
694
|
let S = (
|
|
695
695
|
/*showPlaceType*/
|
|
696
696
|
r[10] && la(r)
|
|
@@ -760,9 +760,9 @@ function ca(r) {
|
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Bl(r) {
|
|
764
764
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, y, I, C, S;
|
|
765
|
-
i = new
|
|
765
|
+
i = new Dl({}), c = new wl({});
|
|
766
766
|
let x = (
|
|
767
767
|
/*abortController*/
|
|
768
768
|
r[17] && aa()
|
|
@@ -773,13 +773,13 @@ function Fl(r) {
|
|
|
773
773
|
const D = (
|
|
774
774
|
/*#slots*/
|
|
775
775
|
r[48].default
|
|
776
|
-
), T =
|
|
776
|
+
), T = ul(
|
|
777
777
|
D,
|
|
778
778
|
r,
|
|
779
779
|
/*$$scope*/
|
|
780
780
|
r[47],
|
|
781
781
|
null
|
|
782
|
-
), A = [Al, Ml, Tl
|
|
782
|
+
), A = [Fl, Al, Ml, Tl], q = [];
|
|
783
783
|
function j(P, X) {
|
|
784
784
|
var R, Y;
|
|
785
785
|
return (
|
|
@@ -878,7 +878,7 @@ function Fl(r) {
|
|
|
878
878
|
/*click_handler_1*/
|
|
879
879
|
r[55]
|
|
880
880
|
),
|
|
881
|
-
ke(t, "submit",
|
|
881
|
+
ke(t, "submit", gl(
|
|
882
882
|
/*handleOnSubmit*/
|
|
883
883
|
r[18]
|
|
884
884
|
))
|
|
@@ -924,19 +924,19 @@ function Fl(r) {
|
|
|
924
924
|
32 && Kt(L, 1)) : (L = ua(P), L.c(), Kt(L, 1), L.m(e, g)) : L && (Oo(), be(L, 1, 1, () => {
|
|
925
925
|
L = null;
|
|
926
926
|
}), Do()), T && T.p && (!I || X[1] & /*$$scope*/
|
|
927
|
-
65536) &&
|
|
927
|
+
65536) && cl(
|
|
928
928
|
T,
|
|
929
929
|
D,
|
|
930
930
|
P,
|
|
931
931
|
/*$$scope*/
|
|
932
932
|
P[47],
|
|
933
|
-
I ?
|
|
933
|
+
I ? ll(
|
|
934
934
|
D,
|
|
935
935
|
/*$$scope*/
|
|
936
936
|
P[47],
|
|
937
937
|
X,
|
|
938
938
|
null
|
|
939
|
-
) :
|
|
939
|
+
) : fl(
|
|
940
940
|
/*$$scope*/
|
|
941
941
|
P[47]
|
|
942
942
|
),
|
|
@@ -969,11 +969,15 @@ function Fl(r) {
|
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Gl(r, t, e) {
|
|
973
973
|
const n = t[1], i = t[0], o = n - i;
|
|
974
974
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function fa(r) {
|
|
977
|
+
let t = [...r];
|
|
978
|
+
return t[2] < t[0] && (t[2] += 360), t;
|
|
979
|
+
}
|
|
980
|
+
function kl(r, t, e) {
|
|
977
981
|
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: y = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: S = void 0 } = t, { mapController: x = void 0 } = t, { minLength: L = 2 } = t, { noResultsMessage: D = "No results found" } = t, { placeholder: T = "Search" } = t, { proximity: A = void 0 } = t, { reverseActive: q = p === "always" } = t, { reverseButtonTitle: j = "toggle reverse geocoding" } = t, { searchValue: P = "" } = t, { showFullGeometry: X = !0 } = t, { showPlaceType: R = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: St = void 0 } = t, { zoom: Xt = 16 } = t, { fetchParameters: fe = {} } = t;
|
|
978
982
|
function Fr() {
|
|
979
983
|
Fn.focus();
|
|
@@ -987,8 +991,8 @@ function Gl(r, t, e) {
|
|
|
987
991
|
}));
|
|
988
992
|
}
|
|
989
993
|
let he = !1, nt, Ot, vt, Zs = "", Fn, At = -1, pr, Co = [], Br, si, No;
|
|
990
|
-
const dr =
|
|
991
|
-
|
|
994
|
+
const dr = yl();
|
|
995
|
+
vl(() => {
|
|
992
996
|
x && (x.setEventHandler(void 0), x.indicateReverse(!1), x.setSelectedMarker(-1), x.setMarkers(void 0, void 0));
|
|
993
997
|
});
|
|
994
998
|
function $s(N) {
|
|
@@ -997,7 +1001,7 @@ function Gl(r, t, e) {
|
|
|
997
1001
|
else if (P) {
|
|
998
1002
|
const Ft = N || !ta();
|
|
999
1003
|
as(P, { exact: !0 }).then(() => {
|
|
1000
|
-
e(44, Ot = nt), e(45, vt = void 0), Ft &&
|
|
1004
|
+
e(44, Ot = nt), e(45, vt = void 0), Ft && Yu();
|
|
1001
1005
|
}).catch((Bn) => e(16, pr = Bn));
|
|
1002
1006
|
}
|
|
1003
1007
|
}
|
|
@@ -1031,19 +1035,19 @@ function Gl(r, t, e) {
|
|
|
1031
1035
|
const fs = await cs.json();
|
|
1032
1036
|
dr("response", { url: Gr, featureCollection: fs }), Ft ? (e(12, nt = void 0), e(45, vt = fs.features[0]), Co = [vt]) : (e(12, nt = fs.features.filter(d)), Co = nt, Ui && Fn.focus());
|
|
1033
1037
|
}
|
|
1034
|
-
function
|
|
1038
|
+
function Yu() {
|
|
1035
1039
|
var Bn, Ui, Ge, Gr;
|
|
1036
1040
|
if (!(Ot != null && Ot.length) || !y)
|
|
1037
1041
|
return;
|
|
1038
1042
|
const N = [180, 90, -180, -90], Ft = !Ot.some((me) => !me.matching_text);
|
|
1039
1043
|
for (const me of Ot)
|
|
1040
1044
|
(Ft || !me.matching_text) && (N[0] = Math.min(N[0], ((Bn = me.bbox) == null ? void 0 : Bn[0]) ?? me.center[0]), N[1] = Math.min(N[1], ((Ui = me.bbox) == null ? void 0 : Ui[1]) ?? me.center[1]), N[2] = Math.max(N[2], ((Ge = me.bbox) == null ? void 0 : Ge[2]) ?? me.center[0]), N[3] = Math.max(N[3], ((Gr = me.bbox) == null ? void 0 : Gr[3]) ?? me.center[1]));
|
|
1041
|
-
x && Ot.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(N, 50));
|
|
1042
|
-
}
|
|
1043
|
-
function Yu(N) {
|
|
1044
|
-
e(0, q = p === "always"), An(Bl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
|
|
1045
|
+
x && Ot.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(fa(N), 50));
|
|
1045
1046
|
}
|
|
1046
1047
|
function Hu(N) {
|
|
1048
|
+
e(0, q = p === "always"), An(Gl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
|
|
1049
|
+
}
|
|
1050
|
+
function Wu(N) {
|
|
1047
1051
|
if (!nt)
|
|
1048
1052
|
return;
|
|
1049
1053
|
let Ft = N.key === "ArrowDown" ? 1 : N.key === "ArrowUp" ? -1 : 0;
|
|
@@ -1065,18 +1069,18 @@ function Gl(r, t, e) {
|
|
|
1065
1069
|
function ls(N) {
|
|
1066
1070
|
e(45, vt = N), e(1, P = N.place_name), e(13, At = -1);
|
|
1067
1071
|
}
|
|
1068
|
-
const
|
|
1069
|
-
function
|
|
1072
|
+
const ju = () => Fn.focus();
|
|
1073
|
+
function Ku(N) {
|
|
1070
1074
|
ms[N ? "unshift" : "push"](() => {
|
|
1071
1075
|
Fn = N, e(15, Fn);
|
|
1072
1076
|
});
|
|
1073
1077
|
}
|
|
1074
|
-
function
|
|
1078
|
+
function Qu() {
|
|
1075
1079
|
P = this.value, e(1, P), e(11, he), e(25, c);
|
|
1076
1080
|
}
|
|
1077
|
-
const
|
|
1081
|
+
const Ju = () => e(11, he = !0), Zu = () => e(11, he = !1), $u = () => us(), tl = () => {
|
|
1078
1082
|
e(1, P = ""), Fn.focus();
|
|
1079
|
-
},
|
|
1083
|
+
}, el = () => e(0, q = !q), nl = (N) => e(13, At = N), rl = (N) => ls(N), il = () => e(13, At = -1), ol = () => {
|
|
1080
1084
|
};
|
|
1081
1085
|
return r.$$set = (N) => {
|
|
1082
1086
|
"class" in N && e(2, s = N.class), "apiKey" in N && e(23, a = N.apiKey), "bbox" in N && e(24, u = N.bbox), "clearButtonTitle" in N && e(3, l = N.clearButtonTitle), "clearOnBlur" in N && e(25, c = N.clearOnBlur), "collapsed" in N && e(4, f = N.collapsed), "country" in N && e(26, h = N.country), "debounceSearch" in N && e(27, g = N.debounceSearch), "enableReverse" in N && e(5, p = N.enableReverse), "errorMessage" in N && e(6, m = N.errorMessage), "filter" in N && e(28, d = N.filter), "flyTo" in N && e(29, y = N.flyTo), "fuzzyMatch" in N && e(30, I = N.fuzzyMatch), "language" in N && e(31, C = N.language), "limit" in N && e(32, S = N.limit), "mapController" in N && e(33, x = N.mapController), "minLength" in N && e(34, L = N.minLength), "noResultsMessage" in N && e(7, D = N.noResultsMessage), "placeholder" in N && e(8, T = N.placeholder), "proximity" in N && e(22, A = N.proximity), "reverseActive" in N && e(0, q = N.reverseActive), "reverseButtonTitle" in N && e(9, j = N.reverseButtonTitle), "searchValue" in N && e(1, P = N.searchValue), "showFullGeometry" in N && e(35, X = N.showFullGeometry), "showPlaceType" in N && e(10, R = N.showPlaceType), "showResultsWhileTyping" in N && e(36, Y = N.showResultsWhileTyping), "trackProximity" in N && e(37, at = N.trackProximity), "types" in N && e(38, St = N.types), "zoom" in N && e(39, Xt = N.zoom), "fetchParameters" in N && e(40, fe = N.fetchParameters), "$$scope" in N && e(47, o = N.$$scope);
|
|
@@ -1089,7 +1093,7 @@ function Gl(r, t, e) {
|
|
|
1089
1093
|
4098 && (P || (e(45, vt = void 0), e(12, nt = void 0), e(16, pr = void 0), e(44, Ot = nt))), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1090
1094
|
16400 && X && vt && !vt.address && vt.geometry.type === "Point" && as(vt.id, { byId: !0 }).catch((N) => e(16, pr = N)), r.$$.dirty[0] & /*flyTo*/
|
|
1091
1095
|
536870912 | r.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1092
|
-
16644 && x && vt && y && (!vt.bbox || vt.bbox[0] === vt.bbox[2] && vt.bbox[1] === vt.bbox[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(vt.bbox, 50), e(12, nt = void 0), e(44, Ot = void 0), e(13, At = -1)), r.$$.dirty[0] & /*listFeatures*/
|
|
1096
|
+
16644 && x && vt && y && (!vt.bbox || vt.bbox[0] === vt.bbox[2] && vt.bbox[1] === vt.bbox[3] ? x.flyTo(vt.center, Xt) : x.fitBounds(fa(vt.bbox), 50), e(12, nt = void 0), e(44, Ot = void 0), e(13, At = -1)), r.$$.dirty[0] & /*listFeatures*/
|
|
1093
1097
|
4096 | r.$$.dirty[1] & /*markedFeatures*/
|
|
1094
1098
|
8192 && Ot !== nt && e(44, Ot = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1095
1099
|
24580 && x && x.setMarkers(Ot, vt), r.$$.dirty[0] & /*searchValue*/
|
|
@@ -1098,7 +1102,7 @@ function Gl(r, t, e) {
|
|
|
1098
1102
|
68 && x && x.setEventHandler((N) => {
|
|
1099
1103
|
switch (N.type) {
|
|
1100
1104
|
case "mapClick":
|
|
1101
|
-
q &&
|
|
1105
|
+
q && Hu(N.coordinates);
|
|
1102
1106
|
break;
|
|
1103
1107
|
case "proximityChange":
|
|
1104
1108
|
e(22, A = at ? N.proximity : void 0);
|
|
@@ -1155,7 +1159,7 @@ function Gl(r, t, e) {
|
|
|
1155
1159
|
pr,
|
|
1156
1160
|
Br,
|
|
1157
1161
|
$s,
|
|
1158
|
-
|
|
1162
|
+
Wu,
|
|
1159
1163
|
us,
|
|
1160
1164
|
ls,
|
|
1161
1165
|
A,
|
|
@@ -1185,7 +1189,6 @@ function Gl(r, t, e) {
|
|
|
1185
1189
|
n,
|
|
1186
1190
|
o,
|
|
1187
1191
|
i,
|
|
1188
|
-
Wu,
|
|
1189
1192
|
ju,
|
|
1190
1193
|
Ku,
|
|
1191
1194
|
Qu,
|
|
@@ -1196,16 +1199,17 @@ function Gl(r, t, e) {
|
|
|
1196
1199
|
el,
|
|
1197
1200
|
nl,
|
|
1198
1201
|
rl,
|
|
1199
|
-
il
|
|
1202
|
+
il,
|
|
1203
|
+
ol
|
|
1200
1204
|
];
|
|
1201
1205
|
}
|
|
1202
|
-
let
|
|
1206
|
+
let zl = class extends Bi {
|
|
1203
1207
|
constructor(t) {
|
|
1204
1208
|
super(), Fi(
|
|
1205
1209
|
this,
|
|
1206
1210
|
t,
|
|
1207
|
-
|
|
1208
|
-
|
|
1211
|
+
kl,
|
|
1212
|
+
Bl,
|
|
1209
1213
|
Ai,
|
|
1210
1214
|
{
|
|
1211
1215
|
class: 2,
|
|
@@ -1278,7 +1282,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1278
1282
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1279
1283
|
and limitations under the License.
|
|
1280
1284
|
***************************************************************************** */
|
|
1281
|
-
function
|
|
1285
|
+
function Vl(r, t) {
|
|
1282
1286
|
var e = { label: 0, sent: function() {
|
|
1283
1287
|
if (o[0] & 1)
|
|
1284
1288
|
throw o[1];
|
|
@@ -1352,7 +1356,7 @@ var Nr = (
|
|
|
1352
1356
|
return r;
|
|
1353
1357
|
}()
|
|
1354
1358
|
);
|
|
1355
|
-
function
|
|
1359
|
+
function Ul(r, t) {
|
|
1356
1360
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1357
1361
|
}
|
|
1358
1362
|
function mr(r, t, e) {
|
|
@@ -1389,7 +1393,7 @@ function ps(r, t, e, n) {
|
|
|
1389
1393
|
var o = n(r, e.key);
|
|
1390
1394
|
return o < 0 ? (i.left = e.left, i.right = e, e.left = null) : o >= 0 && (i.right = e.right, i.left = e, e.right = null), i;
|
|
1391
1395
|
}
|
|
1392
|
-
function
|
|
1396
|
+
function ha(r, t, e) {
|
|
1393
1397
|
var n = null, i = null;
|
|
1394
1398
|
if (t) {
|
|
1395
1399
|
t = mr(r, t, e);
|
|
@@ -1398,7 +1402,7 @@ function fa(r, t, e) {
|
|
|
1398
1402
|
}
|
|
1399
1403
|
return { left: n, right: i };
|
|
1400
1404
|
}
|
|
1401
|
-
function
|
|
1405
|
+
function ql(r, t, e) {
|
|
1402
1406
|
return t === null ? r : (r === null || (t = mr(r.key, t, e), t.left = r), t);
|
|
1403
1407
|
}
|
|
1404
1408
|
function Is(r, t, e, n, i) {
|
|
@@ -1413,7 +1417,7 @@ var As = (
|
|
|
1413
1417
|
/** @class */
|
|
1414
1418
|
function() {
|
|
1415
1419
|
function r(t) {
|
|
1416
|
-
t === void 0 && (t =
|
|
1420
|
+
t === void 0 && (t = Ul), this._root = null, this._size = 0, this._comparator = t;
|
|
1417
1421
|
}
|
|
1418
1422
|
return r.prototype.insert = function(t, e) {
|
|
1419
1423
|
return this._size++, this._root = ps(t, e, this._root, this._comparator);
|
|
@@ -1541,14 +1545,14 @@ var As = (
|
|
|
1541
1545
|
}, r.prototype.clear = function() {
|
|
1542
1546
|
return this._root = null, this._size = 0, this;
|
|
1543
1547
|
}, r.prototype.toList = function() {
|
|
1544
|
-
return
|
|
1548
|
+
return Yl(this._root);
|
|
1545
1549
|
}, r.prototype.load = function(t, e, n) {
|
|
1546
1550
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1547
1551
|
var i = t.length, o = this._comparator;
|
|
1548
1552
|
if (n && xs(t, e, 0, i - 1, o), this._root === null)
|
|
1549
1553
|
this._root = Cs(t, e, 0, i), this._size = i;
|
|
1550
1554
|
else {
|
|
1551
|
-
var s =
|
|
1555
|
+
var s = Hl(this.toList(), Xl(t, e), o);
|
|
1552
1556
|
i = this._size + i, this._root = Ns({ head: s }, 0, i);
|
|
1553
1557
|
}
|
|
1554
1558
|
return this;
|
|
@@ -1575,13 +1579,13 @@ var As = (
|
|
|
1575
1579
|
return e.push(n);
|
|
1576
1580
|
}, t), e.join("");
|
|
1577
1581
|
}, r.prototype.update = function(t, e, n) {
|
|
1578
|
-
var i = this._comparator, o =
|
|
1579
|
-
i(t, e) < 0 ? a = ps(e, n, a, i) : s = ps(e, n, s, i), this._root =
|
|
1582
|
+
var i = this._comparator, o = ha(t, this._root, i), s = o.left, a = o.right;
|
|
1583
|
+
i(t, e) < 0 ? a = ps(e, n, a, i) : s = ps(e, n, s, i), this._root = ql(s, a, i);
|
|
1580
1584
|
}, r.prototype.split = function(t) {
|
|
1581
|
-
return
|
|
1585
|
+
return ha(t, this._root, this._comparator);
|
|
1582
1586
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1583
1587
|
var t;
|
|
1584
|
-
return
|
|
1588
|
+
return Vl(this, function(e) {
|
|
1585
1589
|
switch (e.label) {
|
|
1586
1590
|
case 0:
|
|
1587
1591
|
t = this.minNode(), e.label = 1;
|
|
@@ -1607,12 +1611,12 @@ function Cs(r, t, e, n) {
|
|
|
1607
1611
|
}
|
|
1608
1612
|
return null;
|
|
1609
1613
|
}
|
|
1610
|
-
function
|
|
1614
|
+
function Xl(r, t) {
|
|
1611
1615
|
for (var e = new Nr(null, null), n = e, i = 0; i < r.length; i++)
|
|
1612
1616
|
n = n.next = new Nr(r[i], t[i]);
|
|
1613
1617
|
return n.next = null, e.next;
|
|
1614
1618
|
}
|
|
1615
|
-
function
|
|
1619
|
+
function Yl(r) {
|
|
1616
1620
|
for (var t = r, e = [], n = !1, i = new Nr(null, null), o = i; !n; )
|
|
1617
1621
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1618
1622
|
return o.next = null, i.next;
|
|
@@ -1625,7 +1629,7 @@ function Ns(r, t, e) {
|
|
|
1625
1629
|
}
|
|
1626
1630
|
return null;
|
|
1627
1631
|
}
|
|
1628
|
-
function
|
|
1632
|
+
function Hl(r, t, e) {
|
|
1629
1633
|
for (var n = new Nr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
1630
1634
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
1631
1635
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
@@ -1651,14 +1655,14 @@ function vn(r, t) {
|
|
|
1651
1655
|
if (!(r instanceof t))
|
|
1652
1656
|
throw new TypeError("Cannot call a class as a function");
|
|
1653
1657
|
}
|
|
1654
|
-
function
|
|
1658
|
+
function ga(r, t) {
|
|
1655
1659
|
for (var e = 0; e < t.length; e++) {
|
|
1656
1660
|
var n = t[e];
|
|
1657
1661
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
|
|
1658
1662
|
}
|
|
1659
1663
|
}
|
|
1660
1664
|
function Ce(r, t, e) {
|
|
1661
|
-
return t &&
|
|
1665
|
+
return t && ga(r.prototype, t), e && ga(r, e), r;
|
|
1662
1666
|
}
|
|
1663
1667
|
var qi = function(t, e) {
|
|
1664
1668
|
return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
|
|
@@ -1678,19 +1682,19 @@ var qi = function(t, e) {
|
|
|
1678
1682
|
};
|
|
1679
1683
|
}, _r = Number.EPSILON;
|
|
1680
1684
|
_r === void 0 && (_r = Math.pow(2, -52));
|
|
1681
|
-
var
|
|
1685
|
+
var Wl = _r * _r, ws = function(t, e) {
|
|
1682
1686
|
if (-_r < t && t < _r && -_r < e && e < _r)
|
|
1683
1687
|
return 0;
|
|
1684
1688
|
var n = t - e;
|
|
1685
|
-
return n * n <
|
|
1686
|
-
},
|
|
1689
|
+
return n * n < Wl * t * e ? 0 : t < e ? -1 : 1;
|
|
1690
|
+
}, jl = /* @__PURE__ */ function() {
|
|
1687
1691
|
function r() {
|
|
1688
1692
|
vn(this, r), this.reset();
|
|
1689
1693
|
}
|
|
1690
1694
|
return Ce(r, [{
|
|
1691
1695
|
key: "reset",
|
|
1692
1696
|
value: function() {
|
|
1693
|
-
this.xRounder = new
|
|
1697
|
+
this.xRounder = new pa(), this.yRounder = new pa();
|
|
1694
1698
|
}
|
|
1695
1699
|
}, {
|
|
1696
1700
|
key: "round",
|
|
@@ -1701,7 +1705,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1701
1705
|
};
|
|
1702
1706
|
}
|
|
1703
1707
|
}]), r;
|
|
1704
|
-
}(),
|
|
1708
|
+
}(), pa = /* @__PURE__ */ function() {
|
|
1705
1709
|
function r() {
|
|
1706
1710
|
vn(this, r), this.tree = new As(), this.round(0);
|
|
1707
1711
|
}
|
|
@@ -1715,11 +1719,11 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1715
1719
|
return o !== null && ws(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1716
1720
|
}
|
|
1717
1721
|
}]), r;
|
|
1718
|
-
}(), Zi = new
|
|
1722
|
+
}(), Zi = new jl(), ji = function(t, e) {
|
|
1719
1723
|
return t.x * e.y - t.y * e.x;
|
|
1720
|
-
},
|
|
1724
|
+
}, Za = function(t, e) {
|
|
1721
1725
|
return t.x * e.x + t.y * e.y;
|
|
1722
|
-
},
|
|
1726
|
+
}, da = function(t, e, n) {
|
|
1723
1727
|
var i = {
|
|
1724
1728
|
x: e.x - t.x,
|
|
1725
1729
|
y: e.y - t.y
|
|
@@ -1729,8 +1733,8 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1729
1733
|
}, s = ji(i, o);
|
|
1730
1734
|
return ws(s, 0);
|
|
1731
1735
|
}, Ao = function(t) {
|
|
1732
|
-
return Math.sqrt(
|
|
1733
|
-
},
|
|
1736
|
+
return Math.sqrt(Za(t, t));
|
|
1737
|
+
}, Kl = function(t, e, n) {
|
|
1734
1738
|
var i = {
|
|
1735
1739
|
x: e.x - t.x,
|
|
1736
1740
|
y: e.y - t.y
|
|
@@ -1739,7 +1743,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1739
1743
|
y: n.y - t.y
|
|
1740
1744
|
};
|
|
1741
1745
|
return ji(o, i) / Ao(o) / Ao(i);
|
|
1742
|
-
},
|
|
1746
|
+
}, Ql = function(t, e, n) {
|
|
1743
1747
|
var i = {
|
|
1744
1748
|
x: e.x - t.x,
|
|
1745
1749
|
y: e.y - t.y
|
|
@@ -1747,26 +1751,26 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1747
1751
|
x: n.x - t.x,
|
|
1748
1752
|
y: n.y - t.y
|
|
1749
1753
|
};
|
|
1750
|
-
return
|
|
1751
|
-
},
|
|
1754
|
+
return Za(o, i) / Ao(o) / Ao(i);
|
|
1755
|
+
}, va = function(t, e, n) {
|
|
1752
1756
|
return e.y === 0 ? null : {
|
|
1753
1757
|
x: t.x + e.x / e.y * (n - t.y),
|
|
1754
1758
|
y: n
|
|
1755
1759
|
};
|
|
1756
|
-
},
|
|
1760
|
+
}, ya = function(t, e, n) {
|
|
1757
1761
|
return e.x === 0 ? null : {
|
|
1758
1762
|
x: n,
|
|
1759
1763
|
y: t.y + e.y / e.x * (n - t.x)
|
|
1760
1764
|
};
|
|
1761
|
-
},
|
|
1765
|
+
}, Jl = function(t, e, n, i) {
|
|
1762
1766
|
if (e.x === 0)
|
|
1763
|
-
return
|
|
1767
|
+
return ya(n, i, t.x);
|
|
1764
1768
|
if (i.x === 0)
|
|
1765
|
-
return
|
|
1769
|
+
return ya(t, e, n.x);
|
|
1766
1770
|
if (e.y === 0)
|
|
1767
|
-
return
|
|
1771
|
+
return va(n, i, t.y);
|
|
1768
1772
|
if (i.y === 0)
|
|
1769
|
-
return
|
|
1773
|
+
return va(t, e, n.y);
|
|
1770
1774
|
var o = ji(e, i);
|
|
1771
1775
|
if (o == 0)
|
|
1772
1776
|
return null;
|
|
@@ -1847,8 +1851,8 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1847
1851
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
1848
1852
|
var u = a.otherSE;
|
|
1849
1853
|
i.set(a, {
|
|
1850
|
-
sine:
|
|
1851
|
-
cosine:
|
|
1854
|
+
sine: Kl(n.point, e.point, u.point),
|
|
1855
|
+
cosine: Ql(n.point, e.point, u.point)
|
|
1852
1856
|
});
|
|
1853
1857
|
};
|
|
1854
1858
|
return function(s, a) {
|
|
@@ -1858,7 +1862,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1858
1862
|
};
|
|
1859
1863
|
}
|
|
1860
1864
|
}]), r;
|
|
1861
|
-
}(),
|
|
1865
|
+
}(), Zl = 0, Fo = /* @__PURE__ */ function() {
|
|
1862
1866
|
Ce(r, null, [{
|
|
1863
1867
|
key: "compare",
|
|
1864
1868
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -1934,7 +1938,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
1934
1938
|
* and possibly will be later modified */
|
|
1935
1939
|
}]);
|
|
1936
1940
|
function r(t, e, n, i) {
|
|
1937
|
-
vn(this, r), this.id = ++
|
|
1941
|
+
vn(this, r), this.id = ++Zl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
1938
1942
|
}
|
|
1939
1943
|
return Ce(r, [{
|
|
1940
1944
|
key: "replaceRightSE",
|
|
@@ -2032,7 +2036,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2032
2036
|
return a;
|
|
2033
2037
|
if (h)
|
|
2034
2038
|
return l;
|
|
2035
|
-
var p =
|
|
2039
|
+
var p = Jl(s, this.vector(), u, e.vector());
|
|
2036
2040
|
return p === null || !qi(o, p) ? null : Zi.round(p.x, p.y);
|
|
2037
2041
|
}
|
|
2038
2042
|
/**
|
|
@@ -2197,7 +2201,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2197
2201
|
return new r(l, c, [i], [a]);
|
|
2198
2202
|
}
|
|
2199
2203
|
}]), r;
|
|
2200
|
-
}(),
|
|
2204
|
+
}(), ma = /* @__PURE__ */ function() {
|
|
2201
2205
|
function r(t, e, n) {
|
|
2202
2206
|
if (vn(this, r), !Array.isArray(t) || t.length === 0)
|
|
2203
2207
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2232,11 +2236,11 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2232
2236
|
return e;
|
|
2233
2237
|
}
|
|
2234
2238
|
}]), r;
|
|
2235
|
-
}(),
|
|
2239
|
+
}(), $l = /* @__PURE__ */ function() {
|
|
2236
2240
|
function r(t, e) {
|
|
2237
2241
|
if (vn(this, r), !Array.isArray(t))
|
|
2238
2242
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
2239
|
-
this.exteriorRing = new
|
|
2243
|
+
this.exteriorRing = new ma(t[0], this, !0), this.bbox = {
|
|
2240
2244
|
ll: {
|
|
2241
2245
|
x: this.exteriorRing.bbox.ll.x,
|
|
2242
2246
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -2247,7 +2251,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2247
2251
|
}
|
|
2248
2252
|
}, this.interiorRings = [];
|
|
2249
2253
|
for (var n = 1, i = t.length; n < i; n++) {
|
|
2250
|
-
var o = new
|
|
2254
|
+
var o = new ma(t[n], this, !1);
|
|
2251
2255
|
o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
|
|
2252
2256
|
}
|
|
2253
2257
|
this.multiPoly = e;
|
|
@@ -2261,7 +2265,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2261
2265
|
return e;
|
|
2262
2266
|
}
|
|
2263
2267
|
}]), r;
|
|
2264
|
-
}(),
|
|
2268
|
+
}(), _a = /* @__PURE__ */ function() {
|
|
2265
2269
|
function r(t, e) {
|
|
2266
2270
|
if (vn(this, r), !Array.isArray(t))
|
|
2267
2271
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2280,7 +2284,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2280
2284
|
}
|
|
2281
2285
|
};
|
|
2282
2286
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2283
|
-
var o = new
|
|
2287
|
+
var o = new $l(t[n], this);
|
|
2284
2288
|
o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.polys.push(o);
|
|
2285
2289
|
}
|
|
2286
2290
|
this.isSubject = e;
|
|
@@ -2294,7 +2298,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2294
2298
|
return e;
|
|
2295
2299
|
}
|
|
2296
2300
|
}]), r;
|
|
2297
|
-
}(),
|
|
2301
|
+
}(), tc = /* @__PURE__ */ function() {
|
|
2298
2302
|
Ce(r, null, [{
|
|
2299
2303
|
key: "factory",
|
|
2300
2304
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2349,12 +2353,12 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2349
2353
|
value: function() {
|
|
2350
2354
|
for (var e = this.events[0].point, n = [e], i = 1, o = this.events.length - 1; i < o; i++) {
|
|
2351
2355
|
var s = this.events[i].point, a = this.events[i + 1].point;
|
|
2352
|
-
|
|
2356
|
+
da(s, e, a) !== 0 && (n.push(s), e = s);
|
|
2353
2357
|
}
|
|
2354
2358
|
if (n.length === 1)
|
|
2355
2359
|
return null;
|
|
2356
2360
|
var u = n[0], l = n[1];
|
|
2357
|
-
|
|
2361
|
+
da(u, e, l) === 0 && n.shift(), n.push(n[0]);
|
|
2358
2362
|
for (var c = this.isExteriorRing() ? 1 : -1, f = this.isExteriorRing() ? 0 : n.length - 1, h = this.isExteriorRing() ? n.length : -1, g = [], p = f; p != h; p += c)
|
|
2359
2363
|
g.push([n[p].x, n[p].y]);
|
|
2360
2364
|
return g;
|
|
@@ -2392,7 +2396,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2392
2396
|
}
|
|
2393
2397
|
}
|
|
2394
2398
|
}]), r;
|
|
2395
|
-
}(),
|
|
2399
|
+
}(), Ea = /* @__PURE__ */ function() {
|
|
2396
2400
|
function r(t) {
|
|
2397
2401
|
vn(this, r), this.exteriorRing = t, t.poly = this, this.interiorRings = [];
|
|
2398
2402
|
}
|
|
@@ -2414,7 +2418,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2414
2418
|
return e;
|
|
2415
2419
|
}
|
|
2416
2420
|
}]), r;
|
|
2417
|
-
}(),
|
|
2421
|
+
}(), ec = /* @__PURE__ */ function() {
|
|
2418
2422
|
function r(t) {
|
|
2419
2423
|
vn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2420
2424
|
}
|
|
@@ -2434,16 +2438,16 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2434
2438
|
var s = e[i];
|
|
2435
2439
|
if (!s.poly)
|
|
2436
2440
|
if (s.isExteriorRing())
|
|
2437
|
-
n.push(new
|
|
2441
|
+
n.push(new Ea(s));
|
|
2438
2442
|
else {
|
|
2439
2443
|
var a = s.enclosingRing();
|
|
2440
|
-
a.poly || n.push(new
|
|
2444
|
+
a.poly || n.push(new Ea(a)), a.poly.addInterior(s);
|
|
2441
2445
|
}
|
|
2442
2446
|
}
|
|
2443
2447
|
return n;
|
|
2444
2448
|
}
|
|
2445
2449
|
}]), r;
|
|
2446
|
-
}(),
|
|
2450
|
+
}(), nc = /* @__PURE__ */ function() {
|
|
2447
2451
|
function r(t) {
|
|
2448
2452
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Fo.compare;
|
|
2449
2453
|
vn(this, r), this.queue = t, this.tree = new As(e), this.segments = [];
|
|
@@ -2519,7 +2523,7 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2519
2523
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2520
2524
|
}
|
|
2521
2525
|
}]), r;
|
|
2522
|
-
}(),
|
|
2526
|
+
}(), Ia = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, rc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, ic = /* @__PURE__ */ function() {
|
|
2523
2527
|
function r() {
|
|
2524
2528
|
vn(this, r);
|
|
2525
2529
|
}
|
|
@@ -2527,8 +2531,8 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2527
2531
|
key: "run",
|
|
2528
2532
|
value: function(e, n, i) {
|
|
2529
2533
|
Cn.type = e, Zi.reset();
|
|
2530
|
-
for (var o = [new
|
|
2531
|
-
o.push(new
|
|
2534
|
+
for (var o = [new _a(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2535
|
+
o.push(new _a(i[s], !1));
|
|
2532
2536
|
if (Cn.numMultiPolys = o.length, Cn.type === "difference")
|
|
2533
2537
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2534
2538
|
Ss(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
@@ -2540,17 +2544,17 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2540
2544
|
}
|
|
2541
2545
|
for (var m = new As(Un.compare), d = 0, y = o.length; d < y; d++)
|
|
2542
2546
|
for (var I = o[d].getSweepEvents(), C = 0, S = I.length; C < S; C++)
|
|
2543
|
-
if (m.insert(I[C]), m.size >
|
|
2547
|
+
if (m.insert(I[C]), m.size > Ia)
|
|
2544
2548
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2545
|
-
for (var x = new
|
|
2549
|
+
for (var x = new nc(m), L = m.size, D = m.pop(); D; ) {
|
|
2546
2550
|
var T = D.key;
|
|
2547
2551
|
if (m.size === L) {
|
|
2548
2552
|
var A = T.segment;
|
|
2549
2553
|
throw new Error("Unable to pop() ".concat(T.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(T.point.x, ", ").concat(T.point.y, "] from segment #").concat(A.id, " ") + "[".concat(A.leftSE.point.x, ", ").concat(A.leftSE.point.y, "] -> ") + "[".concat(A.rightSE.point.x, ", ").concat(A.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
|
|
2550
2554
|
}
|
|
2551
|
-
if (m.size >
|
|
2555
|
+
if (m.size > Ia)
|
|
2552
2556
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2553
|
-
if (x.segments.length >
|
|
2557
|
+
if (x.segments.length > rc)
|
|
2554
2558
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2555
2559
|
for (var q = x.process(T), j = 0, P = q.length; j < P; j++) {
|
|
2556
2560
|
var X = q[j];
|
|
@@ -2559,32 +2563,32 @@ var Hl = _r * _r, ws = function(t, e) {
|
|
|
2559
2563
|
L = m.size, D = m.pop();
|
|
2560
2564
|
}
|
|
2561
2565
|
Zi.reset();
|
|
2562
|
-
var R =
|
|
2566
|
+
var R = tc.factory(x.segments), Y = new ec(R);
|
|
2563
2567
|
return Y.getGeom();
|
|
2564
2568
|
}
|
|
2565
2569
|
}]), r;
|
|
2566
|
-
}(), Cn = new
|
|
2570
|
+
}(), Cn = new ic(), oc = function(t) {
|
|
2567
2571
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2568
2572
|
n[i - 1] = arguments[i];
|
|
2569
2573
|
return Cn.run("union", t, n);
|
|
2570
|
-
},
|
|
2574
|
+
}, sc = function(t) {
|
|
2571
2575
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2572
2576
|
n[i - 1] = arguments[i];
|
|
2573
2577
|
return Cn.run("intersection", t, n);
|
|
2574
|
-
},
|
|
2578
|
+
}, ac = function(t) {
|
|
2575
2579
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2576
2580
|
n[i - 1] = arguments[i];
|
|
2577
2581
|
return Cn.run("xor", t, n);
|
|
2578
|
-
},
|
|
2582
|
+
}, uc = function(t) {
|
|
2579
2583
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2580
2584
|
n[i - 1] = arguments[i];
|
|
2581
2585
|
return Cn.run("difference", t, n);
|
|
2582
|
-
},
|
|
2583
|
-
union:
|
|
2584
|
-
intersection:
|
|
2585
|
-
xor:
|
|
2586
|
-
difference:
|
|
2587
|
-
}, _e = 63710088e-1,
|
|
2586
|
+
}, $a = {
|
|
2587
|
+
union: oc,
|
|
2588
|
+
intersection: sc,
|
|
2589
|
+
xor: ac,
|
|
2590
|
+
difference: uc
|
|
2591
|
+
}, _e = 63710088e-1, tu = {
|
|
2588
2592
|
centimeters: _e * 100,
|
|
2589
2593
|
centimetres: _e * 100,
|
|
2590
2594
|
degrees: _e / 111325,
|
|
@@ -2606,14 +2610,14 @@ function jo(r, t, e) {
|
|
|
2606
2610
|
var n = { type: "Feature" };
|
|
2607
2611
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2608
2612
|
}
|
|
2609
|
-
function
|
|
2613
|
+
function lc(r, t, e) {
|
|
2610
2614
|
if (e === void 0 && (e = {}), !r)
|
|
2611
2615
|
throw new Error("coordinates is required");
|
|
2612
2616
|
if (!Array.isArray(r))
|
|
2613
2617
|
throw new Error("coordinates must be an Array");
|
|
2614
2618
|
if (r.length < 2)
|
|
2615
2619
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
2616
|
-
if (!
|
|
2620
|
+
if (!Ca(r[0]) || !Ca(r[1]))
|
|
2617
2621
|
throw new Error("coordinates must contain numbers");
|
|
2618
2622
|
var n = {
|
|
2619
2623
|
type: "Point",
|
|
@@ -2621,7 +2625,7 @@ function uc(r, t, e) {
|
|
|
2621
2625
|
};
|
|
2622
2626
|
return jo(n, t, e);
|
|
2623
2627
|
}
|
|
2624
|
-
function
|
|
2628
|
+
function eu(r, t, e) {
|
|
2625
2629
|
e === void 0 && (e = {});
|
|
2626
2630
|
for (var n = 0, i = r; n < i.length; n++) {
|
|
2627
2631
|
var o = i[n];
|
|
@@ -2642,7 +2646,7 @@ function Ls(r, t) {
|
|
|
2642
2646
|
var e = { type: "FeatureCollection" };
|
|
2643
2647
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
|
|
2644
2648
|
}
|
|
2645
|
-
function
|
|
2649
|
+
function nu(r, t, e) {
|
|
2646
2650
|
e === void 0 && (e = {});
|
|
2647
2651
|
var n = {
|
|
2648
2652
|
type: "MultiPolygon",
|
|
@@ -2650,39 +2654,39 @@ function eu(r, t, e) {
|
|
|
2650
2654
|
};
|
|
2651
2655
|
return jo(n, t, e);
|
|
2652
2656
|
}
|
|
2653
|
-
function
|
|
2657
|
+
function cc(r, t) {
|
|
2654
2658
|
t === void 0 && (t = "kilometers");
|
|
2655
|
-
var e =
|
|
2659
|
+
var e = tu[t];
|
|
2656
2660
|
if (!e)
|
|
2657
2661
|
throw new Error(t + " units is invalid");
|
|
2658
2662
|
return r * e;
|
|
2659
2663
|
}
|
|
2660
|
-
function
|
|
2664
|
+
function fc(r, t) {
|
|
2661
2665
|
t === void 0 && (t = "kilometers");
|
|
2662
|
-
var e =
|
|
2666
|
+
var e = tu[t];
|
|
2663
2667
|
if (!e)
|
|
2664
2668
|
throw new Error(t + " units is invalid");
|
|
2665
2669
|
return r / e;
|
|
2666
2670
|
}
|
|
2667
|
-
function
|
|
2671
|
+
function Ca(r) {
|
|
2668
2672
|
return !isNaN(r) && r !== null && !Array.isArray(r);
|
|
2669
2673
|
}
|
|
2670
2674
|
function Bo(r) {
|
|
2671
2675
|
return r.type === "Feature" ? r.geometry : r;
|
|
2672
2676
|
}
|
|
2673
|
-
function
|
|
2677
|
+
function hc(r, t, e) {
|
|
2674
2678
|
e === void 0 && (e = {});
|
|
2675
|
-
var n = Bo(r), i = Bo(t), o =
|
|
2676
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
2679
|
+
var n = Bo(r), i = Bo(t), o = $a.union(n.coordinates, i.coordinates);
|
|
2680
|
+
return o.length === 0 ? null : o.length === 1 ? eu(o[0], e.properties) : nu(o, e.properties);
|
|
2677
2681
|
}
|
|
2678
|
-
function
|
|
2679
|
-
var e = Bo(r), n = Bo(t), i = r.properties || {}, o =
|
|
2682
|
+
function gc(r, t) {
|
|
2683
|
+
var e = Bo(r), n = Bo(t), i = r.properties || {}, o = $a.difference(
|
|
2680
2684
|
e.coordinates,
|
|
2681
2685
|
n.coordinates
|
|
2682
2686
|
);
|
|
2683
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
2687
|
+
return o.length === 0 ? null : o.length === 1 ? eu(o[0], i) : nu(o, i);
|
|
2684
2688
|
}
|
|
2685
|
-
function
|
|
2689
|
+
function ru(r, t, e) {
|
|
2686
2690
|
if (r !== null)
|
|
2687
2691
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", m = g === "Feature", d = p ? r.features.length : 1, y = 0; y < d; y++) {
|
|
2688
2692
|
l = p ? r.features[y].geometry : m ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
|
|
@@ -2759,7 +2763,7 @@ function nu(r, t, e) {
|
|
|
2759
2763
|
break;
|
|
2760
2764
|
case "GeometryCollection":
|
|
2761
2765
|
for (n = 0; n < s.geometries.length; n++)
|
|
2762
|
-
if (
|
|
2766
|
+
if (ru(s.geometries[n], t, e) === !1)
|
|
2763
2767
|
return !1;
|
|
2764
2768
|
break;
|
|
2765
2769
|
default:
|
|
@@ -2769,14 +2773,14 @@ function nu(r, t, e) {
|
|
|
2769
2773
|
}
|
|
2770
2774
|
}
|
|
2771
2775
|
}
|
|
2772
|
-
function
|
|
2776
|
+
function Na(r, t) {
|
|
2773
2777
|
if (r.type === "Feature")
|
|
2774
2778
|
t(r, 0);
|
|
2775
2779
|
else if (r.type === "FeatureCollection")
|
|
2776
2780
|
for (var e = 0; e < r.features.length && t(r.features[e], e) !== !1; e++)
|
|
2777
2781
|
;
|
|
2778
2782
|
}
|
|
2779
|
-
function
|
|
2783
|
+
function iu(r, t) {
|
|
2780
2784
|
var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", m = g ? r.features.length : 1;
|
|
2781
2785
|
for (e = 0; e < m; e++) {
|
|
2782
2786
|
for (a = g ? r.features[e].geometry : p ? r.geometry : r, l = g ? r.features[e].properties : p ? r.properties : {}, c = g ? r.features[e].bbox : p ? r.bbox : void 0, f = g ? r.features[e].id : p ? r.id : void 0, u = a ? a.type === "GeometryCollection" : !1, s = u ? a.geometries.length : 1, i = 0; i < s; i++) {
|
|
@@ -2829,15 +2833,15 @@ function ru(r, t) {
|
|
|
2829
2833
|
}
|
|
2830
2834
|
function bs(r) {
|
|
2831
2835
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2832
|
-
return
|
|
2836
|
+
return ru(r, function(e) {
|
|
2833
2837
|
t[0] > e[0] && (t[0] = e[0]), t[1] > e[1] && (t[1] = e[1]), t[2] < e[0] && (t[2] = e[0]), t[3] < e[1] && (t[3] = e[1]);
|
|
2834
2838
|
}), t;
|
|
2835
2839
|
}
|
|
2836
2840
|
bs.default = bs;
|
|
2837
|
-
function
|
|
2841
|
+
function pc(r, t) {
|
|
2838
2842
|
t === void 0 && (t = {});
|
|
2839
2843
|
var e = bs(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
2840
|
-
return
|
|
2844
|
+
return lc([n, i], t.properties, t);
|
|
2841
2845
|
}
|
|
2842
2846
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
2843
2847
|
configurable: !0,
|
|
@@ -2883,7 +2887,7 @@ var ct = function(r) {
|
|
|
2883
2887
|
}
|
|
2884
2888
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
2885
2889
|
}(Error), z = function() {
|
|
2886
|
-
},
|
|
2890
|
+
}, ou = { MAX_VALUE: { configurable: !0 } };
|
|
2887
2891
|
z.isNaN = function(t) {
|
|
2888
2892
|
return Number.isNaN(t);
|
|
2889
2893
|
};
|
|
@@ -2896,10 +2900,10 @@ z.longBitsToDouble = function(t) {
|
|
|
2896
2900
|
z.isInfinite = function(t) {
|
|
2897
2901
|
return !Number.isFinite(t);
|
|
2898
2902
|
};
|
|
2899
|
-
|
|
2903
|
+
ou.MAX_VALUE.get = function() {
|
|
2900
2904
|
return Number.MAX_VALUE;
|
|
2901
2905
|
};
|
|
2902
|
-
Object.defineProperties(z,
|
|
2906
|
+
Object.defineProperties(z, ou);
|
|
2903
2907
|
var Fe = function() {
|
|
2904
2908
|
}, Ko = function() {
|
|
2905
2909
|
}, gi = function() {
|
|
@@ -3095,7 +3099,7 @@ Object.defineProperties(_, go);
|
|
|
3095
3099
|
var k = function(r, t) {
|
|
3096
3100
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
3097
3101
|
}, Ne = function() {
|
|
3098
|
-
},
|
|
3102
|
+
}, su = { LOG_10: { configurable: !0 } };
|
|
3099
3103
|
Ne.prototype.interfaces_ = function() {
|
|
3100
3104
|
return [];
|
|
3101
3105
|
};
|
|
@@ -3134,10 +3138,10 @@ Ne.max = function() {
|
|
|
3134
3138
|
Ne.average = function(t, e) {
|
|
3135
3139
|
return (t + e) / 2;
|
|
3136
3140
|
};
|
|
3137
|
-
|
|
3141
|
+
su.LOG_10.get = function() {
|
|
3138
3142
|
return Math.log(10);
|
|
3139
3143
|
};
|
|
3140
|
-
Object.defineProperties(Ne,
|
|
3144
|
+
Object.defineProperties(Ne, su);
|
|
3141
3145
|
var yn = function(t) {
|
|
3142
3146
|
this.str = t;
|
|
3143
3147
|
};
|
|
@@ -3588,7 +3592,7 @@ Qe.SCI_NOT_ZERO.get = function() {
|
|
|
3588
3592
|
};
|
|
3589
3593
|
Object.defineProperties(E, Qe);
|
|
3590
3594
|
var ae = function() {
|
|
3591
|
-
},
|
|
3595
|
+
}, au = { DP_SAFE_EPSILON: { configurable: !0 } };
|
|
3592
3596
|
ae.prototype.interfaces_ = function() {
|
|
3593
3597
|
return [];
|
|
3594
3598
|
};
|
|
@@ -3628,10 +3632,10 @@ ae.orientationIndexFilter = function(t, e, n) {
|
|
|
3628
3632
|
ae.signum = function(t) {
|
|
3629
3633
|
return t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
3630
3634
|
};
|
|
3631
|
-
|
|
3635
|
+
au.DP_SAFE_EPSILON.get = function() {
|
|
3632
3636
|
return 1e-15;
|
|
3633
3637
|
};
|
|
3634
|
-
Object.defineProperties(ae,
|
|
3638
|
+
Object.defineProperties(ae, au);
|
|
3635
3639
|
var Q = function() {
|
|
3636
3640
|
}, po = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
|
|
3637
3641
|
po.X.get = function() {
|
|
@@ -3677,7 +3681,7 @@ Q.prototype.getClass = function() {
|
|
|
3677
3681
|
return Q;
|
|
3678
3682
|
};
|
|
3679
3683
|
Object.defineProperties(Q, po);
|
|
3680
|
-
var
|
|
3684
|
+
var uu = function() {
|
|
3681
3685
|
}, Gi = function(r) {
|
|
3682
3686
|
function t() {
|
|
3683
3687
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
@@ -3687,7 +3691,7 @@ var au = function() {
|
|
|
3687
3691
|
}, t.prototype.getClass = function() {
|
|
3688
3692
|
return t;
|
|
3689
3693
|
}, t;
|
|
3690
|
-
}(
|
|
3694
|
+
}(uu), zt = function() {
|
|
3691
3695
|
};
|
|
3692
3696
|
zt.arraycopy = function(t, e, n, i, o) {
|
|
3693
3697
|
for (var s = 0, a = e; a < e + o; a++)
|
|
@@ -3770,7 +3774,7 @@ var M = function r() {
|
|
|
3770
3774
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = arguments[3];
|
|
3771
3775
|
this.init(o, s, a, u);
|
|
3772
3776
|
}
|
|
3773
|
-
},
|
|
3777
|
+
}, lu = { serialVersionUID: { configurable: !0 } };
|
|
3774
3778
|
M.prototype.getArea = function() {
|
|
3775
3779
|
return this.getWidth() * this.getHeight();
|
|
3776
3780
|
};
|
|
@@ -3952,10 +3956,10 @@ M.intersects = function() {
|
|
|
3952
3956
|
return !(c > l || f < u || (u = Math.min(s.y, a.y), l = Math.max(s.y, a.y), c = Math.min(i.y, o.y), f = Math.max(i.y, o.y), c > l) || f < u);
|
|
3953
3957
|
}
|
|
3954
3958
|
};
|
|
3955
|
-
|
|
3959
|
+
lu.serialVersionUID.get = function() {
|
|
3956
3960
|
return 5873921885273102e3;
|
|
3957
3961
|
};
|
|
3958
|
-
Object.defineProperties(M,
|
|
3962
|
+
Object.defineProperties(M, lu);
|
|
3959
3963
|
var Ze = {
|
|
3960
3964
|
typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,
|
|
3961
3965
|
emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/,
|
|
@@ -5034,7 +5038,7 @@ var b = function(r) {
|
|
|
5034
5038
|
var o = this.array_[n];
|
|
5035
5039
|
return this.array_[n] = i, o;
|
|
5036
5040
|
}, t.prototype.iterator = function() {
|
|
5037
|
-
return new
|
|
5041
|
+
return new dc(this);
|
|
5038
5042
|
}, t.prototype.get = function(n) {
|
|
5039
5043
|
if (n < 0 || n >= this.size())
|
|
5040
5044
|
throw new Bs();
|
|
@@ -5055,7 +5059,7 @@ var b = function(r) {
|
|
|
5055
5059
|
}
|
|
5056
5060
|
return o;
|
|
5057
5061
|
}, t;
|
|
5058
|
-
}(Ve),
|
|
5062
|
+
}(Ve), dc = function(r) {
|
|
5059
5063
|
function t(e) {
|
|
5060
5064
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5061
5065
|
}
|
|
@@ -5384,7 +5388,7 @@ ii.prototype.values = function() {
|
|
|
5384
5388
|
};
|
|
5385
5389
|
ii.prototype.entrySet = function() {
|
|
5386
5390
|
};
|
|
5387
|
-
var
|
|
5391
|
+
var vc = function(r) {
|
|
5388
5392
|
function t() {
|
|
5389
5393
|
r.apply(this, arguments);
|
|
5390
5394
|
}
|
|
@@ -5428,9 +5432,9 @@ var Gs = function(r) {
|
|
|
5428
5432
|
i.push(n.array_[o]);
|
|
5429
5433
|
return i;
|
|
5430
5434
|
}, t.prototype.iterator = function() {
|
|
5431
|
-
return new
|
|
5435
|
+
return new yc(this);
|
|
5432
5436
|
}, t;
|
|
5433
|
-
}(Zo),
|
|
5437
|
+
}(Zo), yc = function(r) {
|
|
5434
5438
|
function t(e) {
|
|
5435
5439
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5436
5440
|
}
|
|
@@ -5444,7 +5448,7 @@ var Gs = function(r) {
|
|
|
5444
5448
|
throw new yo();
|
|
5445
5449
|
}, t;
|
|
5446
5450
|
}(ki), qn = 0, vr = 1;
|
|
5447
|
-
function
|
|
5451
|
+
function xa(r) {
|
|
5448
5452
|
return r === null ? qn : r.color;
|
|
5449
5453
|
}
|
|
5450
5454
|
function ot(r) {
|
|
@@ -5456,13 +5460,13 @@ function kn(r, t) {
|
|
|
5456
5460
|
function ds(r) {
|
|
5457
5461
|
return r === null ? null : r.left;
|
|
5458
5462
|
}
|
|
5459
|
-
function
|
|
5463
|
+
function Sa(r) {
|
|
5460
5464
|
return r === null ? null : r.right;
|
|
5461
5465
|
}
|
|
5462
5466
|
function Ht() {
|
|
5463
5467
|
this.root_ = null, this.size_ = 0;
|
|
5464
5468
|
}
|
|
5465
|
-
Ht.prototype = new
|
|
5469
|
+
Ht.prototype = new vc();
|
|
5466
5470
|
Ht.prototype.get = function(r) {
|
|
5467
5471
|
for (var t = this.root_; t !== null; ) {
|
|
5468
5472
|
var e = r.compareTo(t.key);
|
|
@@ -5522,11 +5526,11 @@ Ht.prototype.fixAfterInsertion = function(r) {
|
|
|
5522
5526
|
var t = this;
|
|
5523
5527
|
for (r.color = vr; r != null && r !== this.root_ && r.parent.color === vr; )
|
|
5524
5528
|
if (ot(r) === ds(ot(ot(r)))) {
|
|
5525
|
-
var e =
|
|
5526
|
-
|
|
5529
|
+
var e = Sa(ot(ot(r)));
|
|
5530
|
+
xa(e) === vr ? (kn(ot(r), qn), kn(e, qn), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === Sa(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), qn), kn(ot(ot(r)), vr), t.rotateRight(ot(ot(r))));
|
|
5527
5531
|
} else {
|
|
5528
5532
|
var n = ds(ot(ot(r)));
|
|
5529
|
-
|
|
5533
|
+
xa(n) === vr ? (kn(ot(r), qn), kn(n, qn), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === ds(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), qn), kn(ot(ot(r)), vr), t.rotateLeft(ot(ot(r))));
|
|
5530
5534
|
}
|
|
5531
5535
|
this.root_.color = qn;
|
|
5532
5536
|
};
|
|
@@ -5587,13 +5591,13 @@ eo.prototype.interfaces_ = function() {
|
|
|
5587
5591
|
eo.prototype.getClass = function() {
|
|
5588
5592
|
return eo;
|
|
5589
5593
|
};
|
|
5590
|
-
function
|
|
5594
|
+
function cu() {
|
|
5591
5595
|
}
|
|
5592
|
-
|
|
5596
|
+
cu.prototype = new Zo();
|
|
5593
5597
|
function an() {
|
|
5594
5598
|
this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
|
|
5595
5599
|
}
|
|
5596
|
-
an.prototype = new
|
|
5600
|
+
an.prototype = new cu();
|
|
5597
5601
|
an.prototype.contains = function(r) {
|
|
5598
5602
|
for (var t = this, e = 0, n = this.array_.length; e < n; e++) {
|
|
5599
5603
|
var i = t.array_[e];
|
|
@@ -6026,18 +6030,18 @@ ko.prototype.interfaces_ = function() {
|
|
|
6026
6030
|
ko.prototype.getClass = function() {
|
|
6027
6031
|
return ko;
|
|
6028
6032
|
};
|
|
6029
|
-
function yc() {
|
|
6030
|
-
}
|
|
6031
6033
|
function mc() {
|
|
6032
6034
|
}
|
|
6033
|
-
|
|
6034
|
-
};
|
|
6035
|
-
function Ec() {
|
|
6035
|
+
function _c() {
|
|
6036
6036
|
}
|
|
6037
|
+
var Ec = function() {
|
|
6038
|
+
};
|
|
6037
6039
|
function Ic() {
|
|
6038
6040
|
}
|
|
6039
6041
|
function Cc() {
|
|
6040
6042
|
}
|
|
6043
|
+
function Nc() {
|
|
6044
|
+
}
|
|
6041
6045
|
var Re = function() {
|
|
6042
6046
|
}, ks = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6043
6047
|
Re.prototype.interfaces_ = function() {
|
|
@@ -6053,16 +6057,16 @@ Re.chars = function(t, e) {
|
|
|
6053
6057
|
};
|
|
6054
6058
|
Re.getStackTrace = function() {
|
|
6055
6059
|
if (arguments.length === 1) {
|
|
6056
|
-
var t = arguments[0], e = new
|
|
6060
|
+
var t = arguments[0], e = new Ic(), n = new mc();
|
|
6057
6061
|
return t.printStackTrace(n), e.toString();
|
|
6058
6062
|
} else if (arguments.length === 2) {
|
|
6059
6063
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6060
|
-
new
|
|
6061
|
-
for (var a = new
|
|
6064
|
+
new _c(Re.getStackTrace(i));
|
|
6065
|
+
for (var a = new Nc(), u = 0; u < o; u++)
|
|
6062
6066
|
try {
|
|
6063
6067
|
s += a.readLine() + Re.NEWLINE;
|
|
6064
6068
|
} catch (l) {
|
|
6065
|
-
if (l instanceof
|
|
6069
|
+
if (l instanceof Cc)
|
|
6066
6070
|
U.shouldNeverReachHere();
|
|
6067
6071
|
else
|
|
6068
6072
|
throw l;
|
|
@@ -6094,7 +6098,7 @@ ks.NEWLINE.get = function() {
|
|
|
6094
6098
|
return zt.getProperty("line.separator");
|
|
6095
6099
|
};
|
|
6096
6100
|
ks.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6097
|
-
return new
|
|
6101
|
+
return new Ec();
|
|
6098
6102
|
};
|
|
6099
6103
|
Object.defineProperties(Re, ks);
|
|
6100
6104
|
var _t = function() {
|
|
@@ -6819,7 +6823,7 @@ var yt = function() {
|
|
|
6819
6823
|
t._coordinates[c] = new v();
|
|
6820
6824
|
}
|
|
6821
6825
|
}
|
|
6822
|
-
},
|
|
6826
|
+
}, fu = { serialVersionUID: { configurable: !0 } };
|
|
6823
6827
|
yt.prototype.setOrdinate = function(t, e, n) {
|
|
6824
6828
|
switch (e) {
|
|
6825
6829
|
case Q.X:
|
|
@@ -6905,10 +6909,10 @@ yt.prototype.interfaces_ = function() {
|
|
|
6905
6909
|
yt.prototype.getClass = function() {
|
|
6906
6910
|
return yt;
|
|
6907
6911
|
};
|
|
6908
|
-
|
|
6912
|
+
fu.serialVersionUID.get = function() {
|
|
6909
6913
|
return -915438501601840600;
|
|
6910
6914
|
};
|
|
6911
|
-
Object.defineProperties(yt,
|
|
6915
|
+
Object.defineProperties(yt, fu);
|
|
6912
6916
|
var Ln = function() {
|
|
6913
6917
|
}, zs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
6914
6918
|
Ln.prototype.readResolve = function() {
|
|
@@ -6944,7 +6948,7 @@ zs.instanceObject.get = function() {
|
|
|
6944
6948
|
return new Ln();
|
|
6945
6949
|
};
|
|
6946
6950
|
Object.defineProperties(Ln, zs);
|
|
6947
|
-
var
|
|
6951
|
+
var hu = function(r) {
|
|
6948
6952
|
function t() {
|
|
6949
6953
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
6950
6954
|
}
|
|
@@ -7062,7 +7066,7 @@ Us.serialVersionUID.get = function() {
|
|
|
7062
7066
|
return -552860263173159e4;
|
|
7063
7067
|
};
|
|
7064
7068
|
Us.nameToTypeMap.get = function() {
|
|
7065
|
-
return new
|
|
7069
|
+
return new hu();
|
|
7066
7070
|
};
|
|
7067
7071
|
Object.defineProperties(ln, Us);
|
|
7068
7072
|
$.Type = ln;
|
|
@@ -7071,7 +7075,7 @@ $.FLOATING = new ln("FLOATING");
|
|
|
7071
7075
|
$.FLOATING_SINGLE = new ln("FLOATING SINGLE");
|
|
7072
7076
|
var H = function r() {
|
|
7073
7077
|
this._precisionModel = new $(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? k(arguments[0], pi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof $ && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
|
|
7074
|
-
},
|
|
7078
|
+
}, gu = { serialVersionUID: { configurable: !0 } };
|
|
7075
7079
|
H.prototype.toGeometry = function(t) {
|
|
7076
7080
|
return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new v(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new v(t.getMinX(), t.getMinY()), new v(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new v(t.getMinX(), t.getMinY()), new v(t.getMinX(), t.getMaxY()), new v(t.getMaxX(), t.getMaxY()), new v(t.getMaxX(), t.getMinY()), new v(t.getMinX(), t.getMinY())]), null);
|
|
7077
7081
|
};
|
|
@@ -7266,11 +7270,11 @@ H.toPolygonArray = function(t) {
|
|
|
7266
7270
|
H.createPointFromInternalCoord = function(t, e) {
|
|
7267
7271
|
return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
|
|
7268
7272
|
};
|
|
7269
|
-
|
|
7273
|
+
gu.serialVersionUID.get = function() {
|
|
7270
7274
|
return -6820524753094096e3;
|
|
7271
7275
|
};
|
|
7272
|
-
Object.defineProperties(H,
|
|
7273
|
-
var
|
|
7276
|
+
Object.defineProperties(H, gu);
|
|
7277
|
+
var xc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], es = function(t) {
|
|
7274
7278
|
this.geometryFactory = t || new H();
|
|
7275
7279
|
};
|
|
7276
7280
|
es.prototype.read = function(t) {
|
|
@@ -7279,7 +7283,7 @@ es.prototype.read = function(t) {
|
|
|
7279
7283
|
var n = e.type;
|
|
7280
7284
|
if (!tn[n])
|
|
7281
7285
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7282
|
-
return
|
|
7286
|
+
return xc.indexOf(n) !== -1 ? tn[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? tn[n].apply(this, [e.geometries]) : tn[n].apply(this, [e]);
|
|
7283
7287
|
};
|
|
7284
7288
|
es.prototype.write = function(t) {
|
|
7285
7289
|
var e = t.getGeometryType();
|
|
@@ -7607,10 +7611,10 @@ qs.prototype.reducePrecision = function(t) {
|
|
|
7607
7611
|
for (n = 0, i = t.geometries.length; n < i; n++)
|
|
7608
7612
|
e.reducePrecision(t.geometries[n]);
|
|
7609
7613
|
};
|
|
7610
|
-
var
|
|
7614
|
+
var pu = function() {
|
|
7611
7615
|
this.parser = new es(this.geometryFactory);
|
|
7612
7616
|
};
|
|
7613
|
-
|
|
7617
|
+
pu.prototype.write = function(t) {
|
|
7614
7618
|
return this.parser.write(t);
|
|
7615
7619
|
};
|
|
7616
7620
|
var w = function() {
|
|
@@ -8185,7 +8189,7 @@ xt.prototype.interfaces_ = function() {
|
|
|
8185
8189
|
xt.prototype.getClass = function() {
|
|
8186
8190
|
return xt;
|
|
8187
8191
|
};
|
|
8188
|
-
var
|
|
8192
|
+
var Sc = function(r) {
|
|
8189
8193
|
function t() {
|
|
8190
8194
|
var e = arguments[0], n = arguments[1];
|
|
8191
8195
|
r.call(this, e, n);
|
|
@@ -8199,7 +8203,7 @@ var xc = function(r) {
|
|
|
8199
8203
|
}, t.prototype.getClass = function() {
|
|
8200
8204
|
return t;
|
|
8201
8205
|
}, t;
|
|
8202
|
-
}(xt),
|
|
8206
|
+
}(xt), wc = function(r) {
|
|
8203
8207
|
function t() {
|
|
8204
8208
|
var e = arguments[0], n = arguments[1];
|
|
8205
8209
|
r.call(this, e, n);
|
|
@@ -8208,7 +8212,7 @@ var xc = function(r) {
|
|
|
8208
8212
|
var n = this, i = new b(), o = this._startDe;
|
|
8209
8213
|
do {
|
|
8210
8214
|
if (o.getMinEdgeRing() === null) {
|
|
8211
|
-
var s = new
|
|
8215
|
+
var s = new Sc(o, n._geometryFactory);
|
|
8212
8216
|
i.add(s);
|
|
8213
8217
|
}
|
|
8214
8218
|
o = o.getNext();
|
|
@@ -8773,7 +8777,7 @@ de.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
8773
8777
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
8774
8778
|
var o = i.next();
|
|
8775
8779
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
8776
|
-
var s = new
|
|
8780
|
+
var s = new wc(o, e._geometryFactory);
|
|
8777
8781
|
n.add(s), s.setInResult();
|
|
8778
8782
|
}
|
|
8779
8783
|
}
|
|
@@ -8917,7 +8921,7 @@ var Pt = function() {
|
|
|
8917
8921
|
this._level = t;
|
|
8918
8922
|
}
|
|
8919
8923
|
}
|
|
8920
|
-
},
|
|
8924
|
+
}, du = { serialVersionUID: { configurable: !0 } };
|
|
8921
8925
|
Pt.prototype.getLevel = function() {
|
|
8922
8926
|
return this._level;
|
|
8923
8927
|
};
|
|
@@ -8942,10 +8946,10 @@ Pt.prototype.interfaces_ = function() {
|
|
|
8942
8946
|
Pt.prototype.getClass = function() {
|
|
8943
8947
|
return Pt;
|
|
8944
8948
|
};
|
|
8945
|
-
|
|
8949
|
+
du.serialVersionUID.get = function() {
|
|
8946
8950
|
return 6493722185909574e3;
|
|
8947
8951
|
};
|
|
8948
|
-
Object.defineProperties(Pt,
|
|
8952
|
+
Object.defineProperties(Pt, du);
|
|
8949
8953
|
var Ye = function() {
|
|
8950
8954
|
};
|
|
8951
8955
|
Ye.reverseOrder = function() {
|
|
@@ -9186,7 +9190,7 @@ Dt.compareDoubles = function(t, e) {
|
|
|
9186
9190
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9187
9191
|
};
|
|
9188
9192
|
ss.IntersectsOp.get = function() {
|
|
9189
|
-
return
|
|
9193
|
+
return Lc;
|
|
9190
9194
|
};
|
|
9191
9195
|
ss.serialVersionUID.get = function() {
|
|
9192
9196
|
return -3886435814360241e3;
|
|
@@ -9195,7 +9199,7 @@ ss.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9195
9199
|
return 10;
|
|
9196
9200
|
};
|
|
9197
9201
|
Object.defineProperties(Dt, ss);
|
|
9198
|
-
var
|
|
9202
|
+
var Lc = function() {
|
|
9199
9203
|
}, Ni = function() {
|
|
9200
9204
|
};
|
|
9201
9205
|
Ni.prototype.distance = function(t, e) {
|
|
@@ -9206,7 +9210,7 @@ Ni.prototype.interfaces_ = function() {
|
|
|
9206
9210
|
Ni.prototype.getClass = function() {
|
|
9207
9211
|
return Ni;
|
|
9208
9212
|
};
|
|
9209
|
-
var
|
|
9213
|
+
var vu = function(r) {
|
|
9210
9214
|
function t(n) {
|
|
9211
9215
|
n = n || t.DEFAULT_NODE_CAPACITY, r.call(this, n);
|
|
9212
9216
|
}
|
|
@@ -9219,7 +9223,7 @@ var du = function(r) {
|
|
|
9219
9223
|
a.addAll(s.createParentBoundablesFromVerticalSlice(i[u], o));
|
|
9220
9224
|
return a;
|
|
9221
9225
|
}, t.prototype.createNode = function(i) {
|
|
9222
|
-
return new
|
|
9226
|
+
return new wa(i);
|
|
9223
9227
|
}, t.prototype.size = function() {
|
|
9224
9228
|
return arguments.length === 0 ? r.prototype.size.call(this) : r.prototype.size.apply(this, arguments);
|
|
9225
9229
|
}, t.prototype.insert = function() {
|
|
@@ -9313,7 +9317,7 @@ var du = function(r) {
|
|
|
9313
9317
|
}, t.centreY = function(i) {
|
|
9314
9318
|
return t.avg(i.getMinY(), i.getMaxY());
|
|
9315
9319
|
}, e.STRtreeNode.get = function() {
|
|
9316
|
-
return
|
|
9320
|
+
return wa;
|
|
9317
9321
|
}, e.serialVersionUID.get = function() {
|
|
9318
9322
|
return 259274702368956900;
|
|
9319
9323
|
}, e.xComparator.get = function() {
|
|
@@ -9346,7 +9350,7 @@ var du = function(r) {
|
|
|
9346
9350
|
}, e.DEFAULT_NODE_CAPACITY.get = function() {
|
|
9347
9351
|
return 10;
|
|
9348
9352
|
}, Object.defineProperties(t, e), t;
|
|
9349
|
-
}(Dt),
|
|
9353
|
+
}(Dt), wa = function(r) {
|
|
9350
9354
|
function t() {
|
|
9351
9355
|
var e = arguments[0];
|
|
9352
9356
|
r.call(this, e);
|
|
@@ -9663,7 +9667,7 @@ var F = function() {
|
|
|
9663
9667
|
var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
|
|
9664
9668
|
this.p0 = new v(e, n), this.p1 = new v(i, o);
|
|
9665
9669
|
}
|
|
9666
|
-
},
|
|
9670
|
+
}, yu = { serialVersionUID: { configurable: !0 } };
|
|
9667
9671
|
F.prototype.minX = function() {
|
|
9668
9672
|
return Math.min(this.p0.x, this.p1.x);
|
|
9669
9673
|
};
|
|
@@ -9848,10 +9852,10 @@ F.prototype.getClass = function() {
|
|
|
9848
9852
|
F.midPoint = function(t, e) {
|
|
9849
9853
|
return new v((t.x + e.x) / 2, (t.y + e.y) / 2);
|
|
9850
9854
|
};
|
|
9851
|
-
|
|
9855
|
+
yu.serialVersionUID.get = function() {
|
|
9852
9856
|
return 3252005833466256400;
|
|
9853
9857
|
};
|
|
9854
|
-
Object.defineProperties(F,
|
|
9858
|
+
Object.defineProperties(F, yu);
|
|
9855
9859
|
var ao = function() {
|
|
9856
9860
|
this.tempEnv1 = new M(), this.tempEnv2 = new M(), this._overlapSeg1 = new F(), this._overlapSeg2 = new F();
|
|
9857
9861
|
};
|
|
@@ -10015,7 +10019,7 @@ uo.prototype.getClass = function() {
|
|
|
10015
10019
|
};
|
|
10016
10020
|
var Xs = function(r) {
|
|
10017
10021
|
function t(n) {
|
|
10018
|
-
n ? r.call(this, n) : r.call(this), this._monoChains = new b(), this._index = new
|
|
10022
|
+
n ? r.call(this, n) : r.call(this), this._monoChains = new b(), this._index = new vu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
|
|
10019
10023
|
}
|
|
10020
10024
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
10021
10025
|
var e = { SegmentOverlapAction: { configurable: !0 } };
|
|
@@ -10037,7 +10041,7 @@ var Xs = function(r) {
|
|
|
10037
10041
|
o.add(s.next());
|
|
10038
10042
|
this.intersectChains();
|
|
10039
10043
|
}, t.prototype.intersectChains = function() {
|
|
10040
|
-
for (var i = this, o = new
|
|
10044
|
+
for (var i = this, o = new La(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
|
|
10041
10045
|
for (var a = s.next(), u = i._index.query(a.getEnvelope()), l = u.iterator(); l.hasNext(); ) {
|
|
10042
10046
|
var c = l.next();
|
|
10043
10047
|
if (c.getId() > a.getId() && (a.computeOverlaps(c, o), i._nOverlaps++), i._segInt.isDone())
|
|
@@ -10048,9 +10052,9 @@ var Xs = function(r) {
|
|
|
10048
10052
|
}, t.prototype.getClass = function() {
|
|
10049
10053
|
return t;
|
|
10050
10054
|
}, e.SegmentOverlapAction.get = function() {
|
|
10051
|
-
return
|
|
10055
|
+
return La;
|
|
10052
10056
|
}, Object.defineProperties(t, e), t;
|
|
10053
|
-
}(uo),
|
|
10057
|
+
}(uo), La = function(r) {
|
|
10054
10058
|
function t() {
|
|
10055
10059
|
r.call(this), this._si = null;
|
|
10056
10060
|
var e = arguments[0];
|
|
@@ -10236,7 +10240,7 @@ _o.NUM_PTS_TO_CHECK.get = function() {
|
|
|
10236
10240
|
Object.defineProperties(dt, _o);
|
|
10237
10241
|
var Se = function() {
|
|
10238
10242
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new b();
|
|
10239
|
-
},
|
|
10243
|
+
}, mu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
10240
10244
|
Se.prototype.getCoordinates = function() {
|
|
10241
10245
|
var t = this._ptList.toArray(Se.COORDINATE_ARRAY_TYPE);
|
|
10242
10246
|
return t;
|
|
@@ -10288,10 +10292,10 @@ Se.prototype.interfaces_ = function() {
|
|
|
10288
10292
|
Se.prototype.getClass = function() {
|
|
10289
10293
|
return Se;
|
|
10290
10294
|
};
|
|
10291
|
-
|
|
10295
|
+
mu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
10292
10296
|
return new Array(0).fill(null);
|
|
10293
10297
|
};
|
|
10294
|
-
Object.defineProperties(Se,
|
|
10298
|
+
Object.defineProperties(Se, mu);
|
|
10295
10299
|
var K = function() {
|
|
10296
10300
|
}, oi = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
10297
10301
|
K.prototype.interfaces_ = function() {
|
|
@@ -10653,7 +10657,7 @@ var Wr = function() {
|
|
|
10653
10657
|
this._subgraphs = null, this._seg = new F(), this._cga = new O();
|
|
10654
10658
|
var t = arguments[0];
|
|
10655
10659
|
this._subgraphs = t;
|
|
10656
|
-
},
|
|
10660
|
+
}, _u = { DepthSegment: { configurable: !0 } };
|
|
10657
10661
|
Wr.prototype.findStabbedSegments = function() {
|
|
10658
10662
|
var t = this;
|
|
10659
10663
|
if (arguments.length === 1) {
|
|
@@ -10694,10 +10698,10 @@ Wr.prototype.interfaces_ = function() {
|
|
|
10694
10698
|
Wr.prototype.getClass = function() {
|
|
10695
10699
|
return Wr;
|
|
10696
10700
|
};
|
|
10697
|
-
|
|
10701
|
+
_u.DepthSegment.get = function() {
|
|
10698
10702
|
return wr;
|
|
10699
10703
|
};
|
|
10700
|
-
Object.defineProperties(Wr,
|
|
10704
|
+
Object.defineProperties(Wr, _u);
|
|
10701
10705
|
var wr = function() {
|
|
10702
10706
|
this._upwardSeg = null, this._leftDepth = null;
|
|
10703
10707
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11105,7 +11109,7 @@ jt.prototype.interfaces_ = function() {
|
|
|
11105
11109
|
jt.prototype.getClass = function() {
|
|
11106
11110
|
return jt;
|
|
11107
11111
|
};
|
|
11108
|
-
var
|
|
11112
|
+
var bc = function(r) {
|
|
11109
11113
|
function t() {
|
|
11110
11114
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11111
11115
|
}
|
|
@@ -11258,12 +11262,12 @@ var Lc = function(r) {
|
|
|
11258
11262
|
}, t.prototype.getClass = function() {
|
|
11259
11263
|
return t;
|
|
11260
11264
|
}, t;
|
|
11261
|
-
}(jt),
|
|
11265
|
+
}(jt), Eu = function(r) {
|
|
11262
11266
|
function t() {
|
|
11263
11267
|
r.apply(this, arguments);
|
|
11264
11268
|
}
|
|
11265
11269
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11266
|
-
return new os(n, new
|
|
11270
|
+
return new os(n, new bc());
|
|
11267
11271
|
}, t.prototype.interfaces_ = function() {
|
|
11268
11272
|
return [];
|
|
11269
11273
|
}, t.prototype.getClass = function() {
|
|
@@ -11593,7 +11597,7 @@ var kt = function r() {
|
|
|
11593
11597
|
for (var e = 0; e < 2; e++)
|
|
11594
11598
|
for (var n = 0; n < 3; n++)
|
|
11595
11599
|
t._depth[e][n] = r.NULL_VALUE;
|
|
11596
|
-
},
|
|
11600
|
+
}, Iu = { NULL_VALUE: { configurable: !0 } };
|
|
11597
11601
|
kt.prototype.getDepth = function(t, e) {
|
|
11598
11602
|
return this._depth[t][e];
|
|
11599
11603
|
};
|
|
@@ -11658,10 +11662,10 @@ kt.prototype.getClass = function() {
|
|
|
11658
11662
|
kt.depthAtLocation = function(t) {
|
|
11659
11663
|
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : kt.NULL_VALUE;
|
|
11660
11664
|
};
|
|
11661
|
-
|
|
11665
|
+
Iu.NULL_VALUE.get = function() {
|
|
11662
11666
|
return -1;
|
|
11663
11667
|
};
|
|
11664
|
-
Object.defineProperties(kt,
|
|
11668
|
+
Object.defineProperties(kt, Iu);
|
|
11665
11669
|
var zo = function(r) {
|
|
11666
11670
|
function t() {
|
|
11667
11671
|
if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new kt(), this._depthDelta = 0, arguments.length === 1) {
|
|
@@ -11826,7 +11830,7 @@ ee.prototype.buffer = function(t, e) {
|
|
|
11826
11830
|
var i = new ue(n, this._bufParams), o = new Me(t, e, i), s = o.getCurves();
|
|
11827
11831
|
if (s.size() <= 0)
|
|
11828
11832
|
return this.createEmptyResultGeometry();
|
|
11829
|
-
this.computeNodedEdges(s, n), this._graph = new ht(new
|
|
11833
|
+
this.computeNodedEdges(s, n), this._graph = new ht(new Eu()), this._graph.addEdges(this._edgeList.getEdges());
|
|
11830
11834
|
var a = this.createSubgraphs(this._graph), u = new de(this._geomFact);
|
|
11831
11835
|
this.buildSubgraphs(a, u);
|
|
11832
11836
|
var l = u.getPolygons();
|
|
@@ -11924,7 +11928,7 @@ var gn = function() {
|
|
|
11924
11928
|
this._li = new Mr(), this._segStrings = null;
|
|
11925
11929
|
var t = arguments[0];
|
|
11926
11930
|
this._segStrings = t;
|
|
11927
|
-
},
|
|
11931
|
+
}, Cu = { fact: { configurable: !0 } };
|
|
11928
11932
|
gn.prototype.checkEndPtVertexIntersections = function() {
|
|
11929
11933
|
var t = this;
|
|
11930
11934
|
if (arguments.length === 0)
|
|
@@ -11992,17 +11996,17 @@ gn.prototype.interfaces_ = function() {
|
|
|
11992
11996
|
gn.prototype.getClass = function() {
|
|
11993
11997
|
return gn;
|
|
11994
11998
|
};
|
|
11995
|
-
|
|
11999
|
+
Cu.fact.get = function() {
|
|
11996
12000
|
return new H();
|
|
11997
12001
|
};
|
|
11998
|
-
Object.defineProperties(gn,
|
|
12002
|
+
Object.defineProperties(gn, Cu);
|
|
11999
12003
|
var le = function() {
|
|
12000
12004
|
this._li = null, this._pt = null, this._originalPt = null, this._ptScaled = null, this._p0Scaled = null, this._p1Scaled = null, this._scaleFactor = null, this._minx = null, this._maxx = null, this._miny = null, this._maxy = null, this._corner = new Array(4).fill(null), this._safeEnv = null;
|
|
12001
12005
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
12002
12006
|
if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
|
|
12003
12007
|
throw new ct("Scale factor must be non-zero");
|
|
12004
12008
|
e !== 1 && (this._pt = new v(this.scale(t.x), this.scale(t.y)), this._p0Scaled = new v(), this._p1Scaled = new v()), this.initCorners(this._pt);
|
|
12005
|
-
},
|
|
12009
|
+
}, Nu = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
|
|
12006
12010
|
le.prototype.intersectsScaled = function(t, e) {
|
|
12007
12011
|
var n = Math.min(t.x, e.x), i = Math.max(t.x, e.x), o = Math.min(t.y, e.y), s = Math.max(t.y, e.y), a = this._maxx < n || this._minx > i || this._maxy < o || this._miny > s;
|
|
12008
12012
|
if (a)
|
|
@@ -12050,10 +12054,10 @@ le.prototype.interfaces_ = function() {
|
|
|
12050
12054
|
le.prototype.getClass = function() {
|
|
12051
12055
|
return le;
|
|
12052
12056
|
};
|
|
12053
|
-
|
|
12057
|
+
Nu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
|
|
12054
12058
|
return 0.75;
|
|
12055
12059
|
};
|
|
12056
|
-
Object.defineProperties(le,
|
|
12060
|
+
Object.defineProperties(le, Nu);
|
|
12057
12061
|
var lo = function() {
|
|
12058
12062
|
this.tempEnv1 = new M(), this.selectedSegment = new F();
|
|
12059
12063
|
};
|
|
@@ -12075,13 +12079,13 @@ var Si = function() {
|
|
|
12075
12079
|
this._index = null;
|
|
12076
12080
|
var t = arguments[0];
|
|
12077
12081
|
this._index = t;
|
|
12078
|
-
},
|
|
12082
|
+
}, xu = { HotPixelSnapAction: { configurable: !0 } };
|
|
12079
12083
|
Si.prototype.snap = function() {
|
|
12080
12084
|
if (arguments.length === 1) {
|
|
12081
12085
|
var t = arguments[0];
|
|
12082
12086
|
return this.snap(t, null, -1);
|
|
12083
12087
|
} else if (arguments.length === 3) {
|
|
12084
|
-
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new
|
|
12088
|
+
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Su(e, n, i);
|
|
12085
12089
|
return this._index.query(o, {
|
|
12086
12090
|
interfaces_: function() {
|
|
12087
12091
|
return [sr];
|
|
@@ -12099,11 +12103,11 @@ Si.prototype.interfaces_ = function() {
|
|
|
12099
12103
|
Si.prototype.getClass = function() {
|
|
12100
12104
|
return Si;
|
|
12101
12105
|
};
|
|
12102
|
-
|
|
12103
|
-
return
|
|
12106
|
+
xu.HotPixelSnapAction.get = function() {
|
|
12107
|
+
return Su;
|
|
12104
12108
|
};
|
|
12105
|
-
Object.defineProperties(Si,
|
|
12106
|
-
var
|
|
12109
|
+
Object.defineProperties(Si, xu);
|
|
12110
|
+
var Su = function(r) {
|
|
12107
12111
|
function t() {
|
|
12108
12112
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
12109
12113
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -12162,7 +12166,7 @@ Rn.prototype.checkCorrectness = function(t) {
|
|
|
12162
12166
|
try {
|
|
12163
12167
|
n.checkValid();
|
|
12164
12168
|
} catch (i) {
|
|
12165
|
-
if (i instanceof
|
|
12169
|
+
if (i instanceof uu)
|
|
12166
12170
|
i.printStackTrace();
|
|
12167
12171
|
else
|
|
12168
12172
|
throw i;
|
|
@@ -12651,7 +12655,7 @@ var $t = function r() {
|
|
|
12651
12655
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
12652
12656
|
this._component = n, this._segIndex = i, this._pt = o;
|
|
12653
12657
|
}
|
|
12654
|
-
},
|
|
12658
|
+
}, wu = { INSIDE_AREA: { configurable: !0 } };
|
|
12655
12659
|
$t.prototype.isInsideArea = function() {
|
|
12656
12660
|
return this._segIndex === $t.INSIDE_AREA;
|
|
12657
12661
|
};
|
|
@@ -12670,10 +12674,10 @@ $t.prototype.interfaces_ = function() {
|
|
|
12670
12674
|
$t.prototype.getClass = function() {
|
|
12671
12675
|
return $t;
|
|
12672
12676
|
};
|
|
12673
|
-
|
|
12677
|
+
wu.INSIDE_AREA.get = function() {
|
|
12674
12678
|
return -1;
|
|
12675
12679
|
};
|
|
12676
|
-
Object.defineProperties($t,
|
|
12680
|
+
Object.defineProperties($t, wu);
|
|
12677
12681
|
var rr = function(t) {
|
|
12678
12682
|
this._pts = t || null;
|
|
12679
12683
|
};
|
|
@@ -13615,13 +13619,13 @@ On.isClosed = function(t) {
|
|
|
13615
13619
|
};
|
|
13616
13620
|
var mt = function(t) {
|
|
13617
13621
|
this._srcGeom = t || null;
|
|
13618
|
-
},
|
|
13622
|
+
}, Lu = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
|
|
13619
13623
|
mt.prototype.snapTo = function(t, e) {
|
|
13620
|
-
var n = this.extractTargetCoordinates(t), i = new
|
|
13624
|
+
var n = this.extractTargetCoordinates(t), i = new bu(e, n);
|
|
13621
13625
|
return i.transform(this._srcGeom);
|
|
13622
13626
|
};
|
|
13623
13627
|
mt.prototype.snapToSelf = function(t, e) {
|
|
13624
|
-
var n = this.extractTargetCoordinates(this._srcGeom), i = new
|
|
13628
|
+
var n = this.extractTargetCoordinates(this._srcGeom), i = new bu(t, n, !0), o = i.transform(this._srcGeom), s = o;
|
|
13625
13629
|
return e && k(s, or) && (s = o.buffer(0)), s;
|
|
13626
13630
|
};
|
|
13627
13631
|
mt.prototype.computeSnapTolerance = function(t) {
|
|
@@ -13673,11 +13677,11 @@ mt.snapToSelf = function(t, e, n) {
|
|
|
13673
13677
|
var i = new mt(t);
|
|
13674
13678
|
return i.snapToSelf(e, n);
|
|
13675
13679
|
};
|
|
13676
|
-
|
|
13680
|
+
Lu.SNAP_PRECISION_FACTOR.get = function() {
|
|
13677
13681
|
return 1e-9;
|
|
13678
13682
|
};
|
|
13679
|
-
Object.defineProperties(mt,
|
|
13680
|
-
var
|
|
13683
|
+
Object.defineProperties(mt, Lu);
|
|
13684
|
+
var bu = function(r) {
|
|
13681
13685
|
function t(e, n, i) {
|
|
13682
13686
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
13683
13687
|
}
|
|
@@ -14040,7 +14044,7 @@ qt.prototype.getClass = function() {
|
|
|
14040
14044
|
qt.isAdjacentSegments = function(t, e) {
|
|
14041
14045
|
return Math.abs(t - e) === 1;
|
|
14042
14046
|
};
|
|
14043
|
-
var
|
|
14047
|
+
var Pc = function(r) {
|
|
14044
14048
|
function t() {
|
|
14045
14049
|
r.call(this), this.events = new b(), this.nOverlaps = null;
|
|
14046
14050
|
}
|
|
@@ -14102,7 +14106,7 @@ var bc = function(r) {
|
|
|
14102
14106
|
}, t;
|
|
14103
14107
|
}(Vo), Dn = function() {
|
|
14104
14108
|
this._min = z.POSITIVE_INFINITY, this._max = z.NEGATIVE_INFINITY;
|
|
14105
|
-
},
|
|
14109
|
+
}, Pu = { NodeComparator: { configurable: !0 } };
|
|
14106
14110
|
Dn.prototype.getMin = function() {
|
|
14107
14111
|
return this._min;
|
|
14108
14112
|
};
|
|
@@ -14121,10 +14125,10 @@ Dn.prototype.interfaces_ = function() {
|
|
|
14121
14125
|
Dn.prototype.getClass = function() {
|
|
14122
14126
|
return Dn;
|
|
14123
14127
|
};
|
|
14124
|
-
|
|
14128
|
+
Pu.NodeComparator.get = function() {
|
|
14125
14129
|
return fo;
|
|
14126
14130
|
};
|
|
14127
|
-
Object.defineProperties(Dn,
|
|
14131
|
+
Object.defineProperties(Dn, Pu);
|
|
14128
14132
|
var fo = function() {
|
|
14129
14133
|
};
|
|
14130
14134
|
fo.prototype.compare = function(t, e) {
|
|
@@ -14137,7 +14141,7 @@ fo.prototype.interfaces_ = function() {
|
|
|
14137
14141
|
fo.prototype.getClass = function() {
|
|
14138
14142
|
return fo;
|
|
14139
14143
|
};
|
|
14140
|
-
var
|
|
14144
|
+
var Rc = function(r) {
|
|
14141
14145
|
function t() {
|
|
14142
14146
|
r.call(this), this._item = null;
|
|
14143
14147
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14152,7 +14156,7 @@ var Pc = function(r) {
|
|
|
14152
14156
|
}, t.prototype.getClass = function() {
|
|
14153
14157
|
return t;
|
|
14154
14158
|
}, t;
|
|
14155
|
-
}(Dn),
|
|
14159
|
+
}(Dn), Oc = function(r) {
|
|
14156
14160
|
function t() {
|
|
14157
14161
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14158
14162
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14184,7 +14188,7 @@ Tn.prototype.buildTree = function() {
|
|
|
14184
14188
|
Tn.prototype.insert = function(t, e, n) {
|
|
14185
14189
|
if (this._root !== null)
|
|
14186
14190
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14187
|
-
this._leaves.add(new
|
|
14191
|
+
this._leaves.add(new Rc(t, e, n));
|
|
14188
14192
|
};
|
|
14189
14193
|
Tn.prototype.query = function(t, e, n) {
|
|
14190
14194
|
this.init(), this._root.query(t, e, n);
|
|
@@ -14209,7 +14213,7 @@ Tn.prototype.buildLevel = function(t, e) {
|
|
|
14209
14213
|
if (o === null)
|
|
14210
14214
|
e.add(i);
|
|
14211
14215
|
else {
|
|
14212
|
-
var s = new
|
|
14216
|
+
var s = new Oc(t.get(n), t.get(n + 1));
|
|
14213
14217
|
e.add(s);
|
|
14214
14218
|
}
|
|
14215
14219
|
}
|
|
@@ -14308,7 +14312,7 @@ Or.prototype.getClass = function() {
|
|
|
14308
14312
|
};
|
|
14309
14313
|
var Xi = function(r) {
|
|
14310
14314
|
function t() {
|
|
14311
|
-
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new
|
|
14315
|
+
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new hu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new We(), arguments.length === 2) {
|
|
14312
14316
|
var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
|
|
14313
14317
|
this._argIndex = e, this._parentGeom = n, this._boundaryNodeRule = i, n !== null && this.add(n);
|
|
14314
14318
|
} else if (arguments.length === 3) {
|
|
@@ -14400,7 +14404,7 @@ var Xi = function(r) {
|
|
|
14400
14404
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14401
14405
|
a === null ? s._label = new et(n, o) : a.setLocation(n, o);
|
|
14402
14406
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14403
|
-
return new
|
|
14407
|
+
return new Pc();
|
|
14404
14408
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14405
14409
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14406
14410
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -14502,7 +14506,7 @@ Ir.MapOp = function() {
|
|
|
14502
14506
|
var V = function(r) {
|
|
14503
14507
|
function t() {
|
|
14504
14508
|
var e = arguments[0], n = arguments[1];
|
|
14505
|
-
r.call(this, e, n), this._ptLocator = new We(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new He(), this._resultPolyList = new b(), this._resultLineList = new b(), this._resultPointList = new b(), this._graph = new ht(new
|
|
14509
|
+
r.call(this, e, n), this._ptLocator = new We(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new He(), this._resultPolyList = new b(), this._resultLineList = new b(), this._resultPointList = new b(), this._graph = new ht(new Eu()), this._geomFact = e.getFactory();
|
|
14506
14510
|
}
|
|
14507
14511
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.insertUniqueEdge = function(n) {
|
|
14508
14512
|
var i = this._edgeList.findEqualEdge(n);
|
|
@@ -14790,7 +14794,7 @@ var Le = function r() {
|
|
|
14790
14794
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new b();
|
|
14791
14795
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
14792
14796
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new ir(this._geom[0], this._boundaryDistanceTolerance), new ir(this._geom[1], this._boundaryDistanceTolerance), new ir(this._geom[2], this._boundaryDistanceTolerance)];
|
|
14793
|
-
},
|
|
14797
|
+
}, Ru = { TOLERANCE: { configurable: !0 } };
|
|
14794
14798
|
Le.prototype.reportResult = function(t, e, n) {
|
|
14795
14799
|
zt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
14796
14800
|
};
|
|
@@ -14843,10 +14847,10 @@ Le.isValid = function(t, e, n, i) {
|
|
|
14843
14847
|
var o = new Le(t, e, i);
|
|
14844
14848
|
return o.isValid(n);
|
|
14845
14849
|
};
|
|
14846
|
-
|
|
14850
|
+
Ru.TOLERANCE.get = function() {
|
|
14847
14851
|
return 1e-6;
|
|
14848
14852
|
};
|
|
14849
|
-
Object.defineProperties(Le,
|
|
14853
|
+
Object.defineProperties(Le, Ru);
|
|
14850
14854
|
var Ee = function r(t) {
|
|
14851
14855
|
this._geomFactory = null, this._skipEmpty = !1, this._inputGeoms = null, this._geomFactory = r.extractFactory(t), this._inputGeoms = t;
|
|
14852
14856
|
};
|
|
@@ -14900,7 +14904,7 @@ var Ct = function() {
|
|
|
14900
14904
|
this._inputPolys = null, this._geomFactory = null;
|
|
14901
14905
|
var t = arguments[0];
|
|
14902
14906
|
this._inputPolys = t, this._inputPolys === null && (this._inputPolys = new b());
|
|
14903
|
-
},
|
|
14907
|
+
}, Ou = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
|
|
14904
14908
|
Ct.prototype.reduceToGeometries = function(t) {
|
|
14905
14909
|
for (var e = this, n = new b(), i = t.iterator(); i.hasNext(); ) {
|
|
14906
14910
|
var o = i.next(), s = null;
|
|
@@ -14932,7 +14936,7 @@ Ct.prototype.union = function() {
|
|
|
14932
14936
|
if (this._inputPolys.isEmpty())
|
|
14933
14937
|
return null;
|
|
14934
14938
|
this._geomFactory = this._inputPolys.iterator().next().getFactory();
|
|
14935
|
-
for (var t = new
|
|
14939
|
+
for (var t = new vu(Ct.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
|
|
14936
14940
|
var n = e.next();
|
|
14937
14941
|
t.insert(n.getEnvelopeInternal(), n);
|
|
14938
14942
|
}
|
|
@@ -15008,10 +15012,10 @@ Ct.union = function(t) {
|
|
|
15008
15012
|
var e = new Ct(t);
|
|
15009
15013
|
return e.union();
|
|
15010
15014
|
};
|
|
15011
|
-
|
|
15015
|
+
Ou.STRTREE_NODE_CAPACITY.get = function() {
|
|
15012
15016
|
return 4;
|
|
15013
15017
|
};
|
|
15014
|
-
Object.defineProperties(Ct,
|
|
15018
|
+
Object.defineProperties(Ct, Ou);
|
|
15015
15019
|
var Uo = function() {
|
|
15016
15020
|
};
|
|
15017
15021
|
Uo.prototype.interfaces_ = function() {
|
|
@@ -15044,19 +15048,19 @@ qo.prototype = {
|
|
|
15044
15048
|
this.t = 0;
|
|
15045
15049
|
},
|
|
15046
15050
|
add: function(r) {
|
|
15047
|
-
|
|
15051
|
+
ba(So, r, this.t), ba(this, So.s, this.s), this.s ? this.t += So.t : this.s = So.t;
|
|
15048
15052
|
},
|
|
15049
15053
|
valueOf: function() {
|
|
15050
15054
|
return this.s;
|
|
15051
15055
|
}
|
|
15052
15056
|
};
|
|
15053
15057
|
var So = new qo();
|
|
15054
|
-
function
|
|
15058
|
+
function ba(r, t, e) {
|
|
15055
15059
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15056
15060
|
r.t = t - o + (e - i);
|
|
15057
15061
|
}
|
|
15058
|
-
var gt = 1e-6, it = Math.PI, Yn = it / 2,
|
|
15059
|
-
function
|
|
15062
|
+
var gt = 1e-6, it = Math.PI, Yn = it / 2, Pa = it / 4, Zn = it * 2, yr = 180 / it, $e = it / 180, te = Math.abs, Dc = Math.atan, Oi = Math.atan2, Lt = Math.cos, bt = Math.sin, Io = Math.sqrt;
|
|
15063
|
+
function Du(r) {
|
|
15060
15064
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15061
15065
|
}
|
|
15062
15066
|
function Di(r) {
|
|
@@ -15065,9 +15069,9 @@ function Di(r) {
|
|
|
15065
15069
|
function Yi() {
|
|
15066
15070
|
}
|
|
15067
15071
|
function Xo(r, t) {
|
|
15068
|
-
r &&
|
|
15072
|
+
r && Oa.hasOwnProperty(r.type) && Oa[r.type](r, t);
|
|
15069
15073
|
}
|
|
15070
|
-
var
|
|
15074
|
+
var Ra = {
|
|
15071
15075
|
Feature: function(r, t) {
|
|
15072
15076
|
Xo(r.geometry, t);
|
|
15073
15077
|
},
|
|
@@ -15075,7 +15079,7 @@ var Pa = {
|
|
|
15075
15079
|
for (var e = r.features, n = -1, i = e.length; ++n < i; )
|
|
15076
15080
|
Xo(e[n].geometry, t);
|
|
15077
15081
|
}
|
|
15078
|
-
},
|
|
15082
|
+
}, Oa = {
|
|
15079
15083
|
Sphere: function(r, t) {
|
|
15080
15084
|
t.sphere();
|
|
15081
15085
|
},
|
|
@@ -15094,11 +15098,11 @@ var Pa = {
|
|
|
15094
15098
|
Rs(e[n], t, 0);
|
|
15095
15099
|
},
|
|
15096
15100
|
Polygon: function(r, t) {
|
|
15097
|
-
|
|
15101
|
+
Da(r.coordinates, t);
|
|
15098
15102
|
},
|
|
15099
15103
|
MultiPolygon: function(r, t) {
|
|
15100
15104
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
15101
|
-
|
|
15105
|
+
Da(e[n], t);
|
|
15102
15106
|
},
|
|
15103
15107
|
GeometryCollection: function(r, t) {
|
|
15104
15108
|
for (var e = r.geometries, n = -1, i = e.length; ++n < i; )
|
|
@@ -15111,14 +15115,14 @@ function Rs(r, t, e) {
|
|
|
15111
15115
|
o = r[n], t.point(o[0], o[1], o[2]);
|
|
15112
15116
|
t.lineEnd();
|
|
15113
15117
|
}
|
|
15114
|
-
function
|
|
15118
|
+
function Da(r, t) {
|
|
15115
15119
|
var e = -1, n = r.length;
|
|
15116
15120
|
for (t.polygonStart(); ++e < n; )
|
|
15117
15121
|
Rs(r[e], t, 1);
|
|
15118
15122
|
t.polygonEnd();
|
|
15119
15123
|
}
|
|
15120
|
-
function
|
|
15121
|
-
r &&
|
|
15124
|
+
function Tc(r, t) {
|
|
15125
|
+
r && Ra.hasOwnProperty(r.type) ? Ra[r.type](r, t) : Xo(r, t);
|
|
15122
15126
|
}
|
|
15123
15127
|
Ar();
|
|
15124
15128
|
Ar();
|
|
@@ -15146,7 +15150,7 @@ function Ds(r) {
|
|
|
15146
15150
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15147
15151
|
}
|
|
15148
15152
|
Ar();
|
|
15149
|
-
function
|
|
15153
|
+
function Tu(r, t) {
|
|
15150
15154
|
function e(n, i) {
|
|
15151
15155
|
return n = r(n, i), t(n[0], n[1]);
|
|
15152
15156
|
}
|
|
@@ -15158,19 +15162,19 @@ function Ts(r, t) {
|
|
|
15158
15162
|
return [r > it ? r - Zn : r < -it ? r + Zn : r, t];
|
|
15159
15163
|
}
|
|
15160
15164
|
Ts.invert = Ts;
|
|
15161
|
-
function
|
|
15162
|
-
return (r %= Zn) ? t || e ?
|
|
15165
|
+
function Mc(r, t, e) {
|
|
15166
|
+
return (r %= Zn) ? t || e ? Tu(Ma(r), Aa(t, e)) : Ma(r) : t || e ? Aa(t, e) : Ts;
|
|
15163
15167
|
}
|
|
15164
|
-
function
|
|
15168
|
+
function Ta(r) {
|
|
15165
15169
|
return function(t, e) {
|
|
15166
15170
|
return t += r, [t > it ? t - Zn : t < -it ? t + Zn : t, e];
|
|
15167
15171
|
};
|
|
15168
15172
|
}
|
|
15169
|
-
function
|
|
15170
|
-
var t =
|
|
15171
|
-
return t.invert =
|
|
15173
|
+
function Ma(r) {
|
|
15174
|
+
var t = Ta(r);
|
|
15175
|
+
return t.invert = Ta(-r), t;
|
|
15172
15176
|
}
|
|
15173
|
-
function
|
|
15177
|
+
function Aa(r, t) {
|
|
15174
15178
|
var e = Lt(r), n = bt(r), i = Lt(t), o = bt(t);
|
|
15175
15179
|
function s(a, u) {
|
|
15176
15180
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
|
|
@@ -15187,20 +15191,20 @@ function Ma(r, t) {
|
|
|
15187
15191
|
];
|
|
15188
15192
|
}, s;
|
|
15189
15193
|
}
|
|
15190
|
-
function
|
|
15194
|
+
function Ac(r, t, e, n, i, o) {
|
|
15191
15195
|
if (e) {
|
|
15192
15196
|
var s = Lt(t), a = bt(t), u = n * e;
|
|
15193
|
-
i == null ? (i = t + n * Zn, o = t - u / 2) : (i =
|
|
15197
|
+
i == null ? (i = t + n * Zn, o = t - u / 2) : (i = Fa(s, i), o = Fa(s, o), (n > 0 ? i < o : i > o) && (i += n * Zn));
|
|
15194
15198
|
for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
|
|
15195
15199
|
l = Os([s, -a * Lt(c), -a * bt(c)]), r.point(l[0], l[1]);
|
|
15196
15200
|
}
|
|
15197
15201
|
}
|
|
15198
|
-
function
|
|
15202
|
+
function Fa(r, t) {
|
|
15199
15203
|
t = Ti(t), t[0] -= r, Ds(t);
|
|
15200
|
-
var e =
|
|
15204
|
+
var e = Du(-t[1]);
|
|
15201
15205
|
return ((-t[2] < 0 ? -e : e) + Zn - gt) % Zn;
|
|
15202
15206
|
}
|
|
15203
|
-
function
|
|
15207
|
+
function Mu() {
|
|
15204
15208
|
var r = [], t;
|
|
15205
15209
|
return {
|
|
15206
15210
|
point: function(e, n) {
|
|
@@ -15219,7 +15223,7 @@ function Tu() {
|
|
|
15219
15223
|
}
|
|
15220
15224
|
};
|
|
15221
15225
|
}
|
|
15222
|
-
function
|
|
15226
|
+
function Fc(r, t, e, n, i, o) {
|
|
15223
15227
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15224
15228
|
if (p = e - s, !(!h && p > 0)) {
|
|
15225
15229
|
if (p /= h, h < 0) {
|
|
@@ -15273,7 +15277,7 @@ function To(r, t) {
|
|
|
15273
15277
|
function bo(r, t, e, n) {
|
|
15274
15278
|
this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
15275
15279
|
}
|
|
15276
|
-
function
|
|
15280
|
+
function Au(r, t, e, n, i) {
|
|
15277
15281
|
var o = [], s = [], a, u;
|
|
15278
15282
|
if (r.forEach(function(p) {
|
|
15279
15283
|
if (!((m = p.length - 1) <= 0)) {
|
|
@@ -15287,7 +15291,7 @@ function Mu(r, t, e, n, i) {
|
|
|
15287
15291
|
o.push(I = new bo(d, p, null, !0)), s.push(I.o = new bo(d, null, I, !1)), o.push(I = new bo(y, p, null, !1)), s.push(I.o = new bo(y, null, I, !0));
|
|
15288
15292
|
}
|
|
15289
15293
|
}), !!o.length) {
|
|
15290
|
-
for (s.sort(t),
|
|
15294
|
+
for (s.sort(t), Ba(o), Ba(s), a = 0, u = s.length; a < u; ++a)
|
|
15291
15295
|
s[a].e = e = !e;
|
|
15292
15296
|
for (var l = o[0], c, f; ; ) {
|
|
15293
15297
|
for (var h = l, g = !0; h.v; )
|
|
@@ -15316,18 +15320,18 @@ function Mu(r, t, e, n, i) {
|
|
|
15316
15320
|
}
|
|
15317
15321
|
}
|
|
15318
15322
|
}
|
|
15319
|
-
function
|
|
15323
|
+
function Ba(r) {
|
|
15320
15324
|
if (t = r.length) {
|
|
15321
15325
|
for (var t, e = 0, n = r[0], i; ++e < t; )
|
|
15322
15326
|
n.n = i = r[e], i.p = n, n = i;
|
|
15323
15327
|
n.n = i = r[0], i.p = n;
|
|
15324
15328
|
}
|
|
15325
15329
|
}
|
|
15326
|
-
function
|
|
15330
|
+
function Fu(r, t) {
|
|
15327
15331
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15328
15332
|
}
|
|
15329
|
-
function
|
|
15330
|
-
return r.length === 1 && (r =
|
|
15333
|
+
function Bc(r) {
|
|
15334
|
+
return r.length === 1 && (r = Gc(r)), {
|
|
15331
15335
|
left: function(t, e, n, i) {
|
|
15332
15336
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15333
15337
|
var o = n + i >>> 1;
|
|
@@ -15344,13 +15348,13 @@ function Fc(r) {
|
|
|
15344
15348
|
}
|
|
15345
15349
|
};
|
|
15346
15350
|
}
|
|
15347
|
-
function
|
|
15351
|
+
function Gc(r) {
|
|
15348
15352
|
return function(t, e) {
|
|
15349
|
-
return
|
|
15353
|
+
return Fu(r(t), e);
|
|
15350
15354
|
};
|
|
15351
15355
|
}
|
|
15352
|
-
|
|
15353
|
-
function
|
|
15356
|
+
Bc(Fu);
|
|
15357
|
+
function Bu(r) {
|
|
15354
15358
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15355
15359
|
i += r[n].length;
|
|
15356
15360
|
for (o = new Array(i); --t >= 0; )
|
|
@@ -15359,7 +15363,7 @@ function Fu(r) {
|
|
|
15359
15363
|
return o;
|
|
15360
15364
|
}
|
|
15361
15365
|
var Hi = 1e9, Po = -Hi;
|
|
15362
|
-
function
|
|
15366
|
+
function kc(r, t, e, n) {
|
|
15363
15367
|
function i(l, c) {
|
|
15364
15368
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15365
15369
|
}
|
|
@@ -15383,7 +15387,7 @@ function Gc(r, t, e, n) {
|
|
|
15383
15387
|
return f !== h ? f - h : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
15384
15388
|
}
|
|
15385
15389
|
return function(l) {
|
|
15386
|
-
var c = l, f =
|
|
15390
|
+
var c = l, f = Mu(), h, g, p, m, d, y, I, C, S, x, L, D = {
|
|
15387
15391
|
point: T,
|
|
15388
15392
|
lineStart: P,
|
|
15389
15393
|
lineEnd: X,
|
|
@@ -15403,8 +15407,8 @@ function Gc(r, t, e, n) {
|
|
|
15403
15407
|
c = f, h = [], g = [], L = !0;
|
|
15404
15408
|
}
|
|
15405
15409
|
function j() {
|
|
15406
|
-
var Y = A(), at = L && Y, St = (h =
|
|
15407
|
-
(at || St) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), St &&
|
|
15410
|
+
var Y = A(), at = L && Y, St = (h = Bu(h)).length;
|
|
15411
|
+
(at || St) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), St && Au(h, a, Y, o, l), l.polygonEnd()), c = l, h = g = p = null;
|
|
15408
15412
|
}
|
|
15409
15413
|
function P() {
|
|
15410
15414
|
D.point = R, g && g.push(p = []), x = !0, S = !1, I = C = NaN;
|
|
@@ -15420,7 +15424,7 @@ function Gc(r, t, e, n) {
|
|
|
15420
15424
|
c.point(Y, at);
|
|
15421
15425
|
else {
|
|
15422
15426
|
var Xt = [I = Math.max(Po, Math.min(Hi, I)), C = Math.max(Po, Math.min(Hi, C))], fe = [Y = Math.max(Po, Math.min(Hi, Y)), at = Math.max(Po, Math.min(Hi, at))];
|
|
15423
|
-
|
|
15427
|
+
Fc(Xt, fe, r, t, e, n) ? (S || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(fe[0], fe[1]), St || c.lineEnd(), L = !1) : St && (c.lineStart(), c.point(Y, at), L = !1);
|
|
15424
15428
|
}
|
|
15425
15429
|
I = Y, C = at, S = St;
|
|
15426
15430
|
}
|
|
@@ -15428,13 +15432,13 @@ function Gc(r, t, e, n) {
|
|
|
15428
15432
|
};
|
|
15429
15433
|
}
|
|
15430
15434
|
var ys = Ar();
|
|
15431
|
-
function
|
|
15435
|
+
function zc(r, t) {
|
|
15432
15436
|
var e = t[0], n = t[1], i = [bt(e), -Lt(e), 0], o = 0, s = 0;
|
|
15433
15437
|
ys.reset();
|
|
15434
15438
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
15435
15439
|
if (c = (l = r[a]).length)
|
|
15436
|
-
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 +
|
|
15437
|
-
var y = l[d], I = y[0], C = y[1] / 2 +
|
|
15440
|
+
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Pa, p = bt(g), m = Lt(g), d = 0; d < c; ++d, h = I, p = S, m = x, f = y) {
|
|
15441
|
+
var y = l[d], I = y[0], C = y[1] / 2 + Pa, S = bt(C), x = Lt(C), L = I - h, D = L >= 0 ? 1 : -1, T = D * L, A = T > it, q = p * S;
|
|
15438
15442
|
if (ys.add(Oi(q * D * bt(T), m * x + q * Lt(T))), o += A ? L + D * Zn : L, A ^ h >= e ^ I >= e) {
|
|
15439
15443
|
var j = Yo(Ti(f), Ti(y));
|
|
15440
15444
|
Ds(j);
|
|
@@ -15447,13 +15451,13 @@ function kc(r, t) {
|
|
|
15447
15451
|
return (o < -gt || o < gt && ys < -gt) ^ s & 1;
|
|
15448
15452
|
}
|
|
15449
15453
|
Ar();
|
|
15450
|
-
function
|
|
15454
|
+
function Ga(r) {
|
|
15451
15455
|
return r;
|
|
15452
15456
|
}
|
|
15453
15457
|
Ar();
|
|
15454
15458
|
Ar();
|
|
15455
|
-
var Mi = 1 / 0, Ho = Mi, ho = -Mi, Wo = ho,
|
|
15456
|
-
point:
|
|
15459
|
+
var Mi = 1 / 0, Ho = Mi, ho = -Mi, Wo = ho, ka = {
|
|
15460
|
+
point: Vc,
|
|
15457
15461
|
lineStart: Yi,
|
|
15458
15462
|
lineEnd: Yi,
|
|
15459
15463
|
polygonStart: Yi,
|
|
@@ -15463,13 +15467,13 @@ var Mi = 1 / 0, Ho = Mi, ho = -Mi, Wo = ho, Ga = {
|
|
|
15463
15467
|
return ho = Wo = -(Ho = Mi = 1 / 0), r;
|
|
15464
15468
|
}
|
|
15465
15469
|
};
|
|
15466
|
-
function
|
|
15470
|
+
function Vc(r, t) {
|
|
15467
15471
|
r < Mi && (Mi = r), r > ho && (ho = r), t < Ho && (Ho = t), t > Wo && (Wo = t);
|
|
15468
15472
|
}
|
|
15469
15473
|
Ar();
|
|
15470
|
-
function
|
|
15474
|
+
function Gu(r, t, e, n) {
|
|
15471
15475
|
return function(i, o) {
|
|
15472
|
-
var s = t(o), a = i.invert(n[0], n[1]), u =
|
|
15476
|
+
var s = t(o), a = i.invert(n[0], n[1]), u = Mu(), l = t(u), c = !1, f, h, g, p = {
|
|
15473
15477
|
point: m,
|
|
15474
15478
|
lineStart: y,
|
|
15475
15479
|
lineEnd: I,
|
|
@@ -15477,9 +15481,9 @@ function Bu(r, t, e, n) {
|
|
|
15477
15481
|
p.point = C, p.lineStart = S, p.lineEnd = x, h = [], f = [];
|
|
15478
15482
|
},
|
|
15479
15483
|
polygonEnd: function() {
|
|
15480
|
-
p.point = m, p.lineStart = y, p.lineEnd = I, h =
|
|
15481
|
-
var L =
|
|
15482
|
-
h.length ? (c || (o.polygonStart(), c = !0),
|
|
15484
|
+
p.point = m, p.lineStart = y, p.lineEnd = I, h = Bu(h);
|
|
15485
|
+
var L = zc(f, a);
|
|
15486
|
+
h.length ? (c || (o.polygonStart(), c = !0), Au(h, qc, L, e, o)) : L && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15483
15487
|
},
|
|
15484
15488
|
sphere: function() {
|
|
15485
15489
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15519,27 +15523,27 @@ function Bu(r, t, e, n) {
|
|
|
15519
15523
|
}
|
|
15520
15524
|
return;
|
|
15521
15525
|
}
|
|
15522
|
-
A > 1 && L & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(
|
|
15526
|
+
A > 1 && L & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(Uc));
|
|
15523
15527
|
}
|
|
15524
15528
|
}
|
|
15525
15529
|
return p;
|
|
15526
15530
|
};
|
|
15527
15531
|
}
|
|
15528
|
-
function
|
|
15532
|
+
function Uc(r) {
|
|
15529
15533
|
return r.length > 1;
|
|
15530
15534
|
}
|
|
15531
|
-
function
|
|
15535
|
+
function qc(r, t) {
|
|
15532
15536
|
return ((r = r.x)[0] < 0 ? r[1] - Yn - gt : Yn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Yn - gt : Yn - t[1]);
|
|
15533
15537
|
}
|
|
15534
|
-
const
|
|
15538
|
+
const za = Gu(
|
|
15535
15539
|
function() {
|
|
15536
15540
|
return !0;
|
|
15537
15541
|
},
|
|
15538
|
-
|
|
15539
|
-
|
|
15542
|
+
Xc,
|
|
15543
|
+
Hc,
|
|
15540
15544
|
[-it, -Yn]
|
|
15541
15545
|
);
|
|
15542
|
-
function
|
|
15546
|
+
function Xc(r) {
|
|
15543
15547
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15544
15548
|
return {
|
|
15545
15549
|
lineStart: function() {
|
|
@@ -15547,7 +15551,7 @@ function qc(r) {
|
|
|
15547
15551
|
},
|
|
15548
15552
|
point: function(o, s) {
|
|
15549
15553
|
var a = o > 0 ? it : -it, u = te(o - t);
|
|
15550
|
-
te(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? Yn : -Yn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (te(t - n) < gt && (t -= n * gt), te(o - a) < gt && (o -= a * gt), e =
|
|
15554
|
+
te(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? Yn : -Yn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (te(t - n) < gt && (t -= n * gt), te(o - a) < gt && (o -= a * gt), e = Yc(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
|
|
15551
15555
|
},
|
|
15552
15556
|
lineEnd: function() {
|
|
15553
15557
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15557,11 +15561,11 @@ function qc(r) {
|
|
|
15557
15561
|
}
|
|
15558
15562
|
};
|
|
15559
15563
|
}
|
|
15560
|
-
function
|
|
15564
|
+
function Yc(r, t, e, n) {
|
|
15561
15565
|
var i, o, s = bt(r - e);
|
|
15562
|
-
return te(s) > gt ?
|
|
15566
|
+
return te(s) > gt ? Dc((bt(t) * (o = Lt(n)) * bt(e) - bt(n) * (i = Lt(t)) * bt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15563
15567
|
}
|
|
15564
|
-
function
|
|
15568
|
+
function Hc(r, t, e, n) {
|
|
15565
15569
|
var i;
|
|
15566
15570
|
if (r == null)
|
|
15567
15571
|
i = e * Yn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
|
|
@@ -15571,10 +15575,10 @@ function Yc(r, t, e, n) {
|
|
|
15571
15575
|
} else
|
|
15572
15576
|
n.point(t[0], t[1]);
|
|
15573
15577
|
}
|
|
15574
|
-
function
|
|
15578
|
+
function Wc(r, t) {
|
|
15575
15579
|
var e = Lt(r), n = e > 0, i = te(e) > gt;
|
|
15576
15580
|
function o(c, f, h, g) {
|
|
15577
|
-
|
|
15581
|
+
Ac(g, r, t, h, c, f);
|
|
15578
15582
|
}
|
|
15579
15583
|
function s(c, f) {
|
|
15580
15584
|
return Lt(c) * Lt(f) > e;
|
|
@@ -15629,9 +15633,9 @@ function Hc(r, t) {
|
|
|
15629
15633
|
var h = n ? r : it - r, g = 0;
|
|
15630
15634
|
return c < -h ? g |= 1 : c > h && (g |= 2), f < -h ? g |= 4 : f > h && (g |= 8), g;
|
|
15631
15635
|
}
|
|
15632
|
-
return
|
|
15636
|
+
return Gu(s, a, o, n ? [0, -r] : [-it, r - it]);
|
|
15633
15637
|
}
|
|
15634
|
-
function
|
|
15638
|
+
function ku(r) {
|
|
15635
15639
|
return function(t) {
|
|
15636
15640
|
var e = new Ms();
|
|
15637
15641
|
for (var n in r)
|
|
@@ -15662,32 +15666,32 @@ Ms.prototype = {
|
|
|
15662
15666
|
this.stream.polygonEnd();
|
|
15663
15667
|
}
|
|
15664
15668
|
};
|
|
15665
|
-
function
|
|
15669
|
+
function zu(r, t, e) {
|
|
15666
15670
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
15667
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
15668
|
-
var s =
|
|
15671
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Tc(e, r.stream(ka));
|
|
15672
|
+
var s = ka.result(), a = Math.min(n / (s[1][0] - s[0][0]), i / (s[1][1] - s[0][1])), u = +t[0][0] + (n - a * (s[1][0] + s[0][0])) / 2, l = +t[0][1] + (i - a * (s[1][1] + s[0][1])) / 2;
|
|
15669
15673
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
15670
15674
|
}
|
|
15671
|
-
function
|
|
15672
|
-
return
|
|
15675
|
+
function jc(r, t, e) {
|
|
15676
|
+
return zu(r, [[0, 0], t], e);
|
|
15673
15677
|
}
|
|
15674
|
-
var
|
|
15675
|
-
function
|
|
15676
|
-
return +t ?
|
|
15678
|
+
var Va = 16, Kc = Lt(30 * $e);
|
|
15679
|
+
function Ua(r, t) {
|
|
15680
|
+
return +t ? Jc(r, t) : Qc(r);
|
|
15677
15681
|
}
|
|
15678
|
-
function
|
|
15679
|
-
return
|
|
15682
|
+
function Qc(r) {
|
|
15683
|
+
return ku({
|
|
15680
15684
|
point: function(t, e) {
|
|
15681
15685
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
15682
15686
|
}
|
|
15683
15687
|
});
|
|
15684
15688
|
}
|
|
15685
|
-
function
|
|
15689
|
+
function Jc(r, t) {
|
|
15686
15690
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
|
|
15687
15691
|
var y = l - n, I = c - i, C = y * y + I * I;
|
|
15688
15692
|
if (C > 4 * t && m--) {
|
|
15689
15693
|
var S = s + h, x = a + g, L = u + p, D = Io(S * S + x * x + L * L), T = Di(L /= D), A = te(te(L) - 1) < gt || te(o - f) < gt ? (o + f) / 2 : Oi(x, S), q = r(A, T), j = q[0], P = q[1], X = j - n, R = P - i, Y = I * X - y * R;
|
|
15690
|
-
(Y * Y / C > t || te((y * X + I * R) / C - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
15694
|
+
(Y * Y / C > t || te((y * X + I * R) / C - 0.5) > 0.3 || s * h + a * g + u * p < Kc) && (e(n, i, o, s, a, u, j, P, A, S /= D, x /= D, L, m, d), d.point(j, P), e(j, P, A, S, x, L, l, c, f, h, g, p, m, d));
|
|
15691
15695
|
}
|
|
15692
15696
|
}
|
|
15693
15697
|
return function(n) {
|
|
@@ -15710,7 +15714,7 @@ function Qc(r, t) {
|
|
|
15710
15714
|
}
|
|
15711
15715
|
function C(T, A) {
|
|
15712
15716
|
var q = Ti([T, A]), j = r(T, A);
|
|
15713
|
-
e(f, h, c, g, p, m, f = j[0], h = j[1], c = T, g = q[0], p = q[1], m = q[2],
|
|
15717
|
+
e(f, h, c, g, p, m, f = j[0], h = j[1], c = T, g = q[0], p = q[1], m = q[2], Va, n), n.point(f, h);
|
|
15714
15718
|
}
|
|
15715
15719
|
function S() {
|
|
15716
15720
|
d.point = y, n.lineEnd();
|
|
@@ -15722,23 +15726,23 @@ function Qc(r, t) {
|
|
|
15722
15726
|
C(i = T, A), o = f, s = h, a = g, u = p, l = m, d.point = C;
|
|
15723
15727
|
}
|
|
15724
15728
|
function D() {
|
|
15725
|
-
e(f, h, c, g, p, m, o, s, i, a, u, l,
|
|
15729
|
+
e(f, h, c, g, p, m, o, s, i, a, u, l, Va, n), d.lineEnd = S, S();
|
|
15726
15730
|
}
|
|
15727
15731
|
return d;
|
|
15728
15732
|
};
|
|
15729
15733
|
}
|
|
15730
|
-
var
|
|
15734
|
+
var Zc = ku({
|
|
15731
15735
|
point: function(r, t) {
|
|
15732
15736
|
this.stream.point(r * $e, t * $e);
|
|
15733
15737
|
}
|
|
15734
15738
|
});
|
|
15735
|
-
function
|
|
15736
|
-
return
|
|
15739
|
+
function $c(r) {
|
|
15740
|
+
return tf(function() {
|
|
15737
15741
|
return r;
|
|
15738
15742
|
})();
|
|
15739
15743
|
}
|
|
15740
|
-
function
|
|
15741
|
-
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m =
|
|
15744
|
+
function tf(r) {
|
|
15745
|
+
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = za, d = null, y, I, C, S = Ga, x = 0.5, L = Ua(j, x), D, T;
|
|
15742
15746
|
function A(R) {
|
|
15743
15747
|
return R = g(R[0] * $e, R[1] * $e), [R[0] * e + o, s - R[1] * e];
|
|
15744
15748
|
}
|
|
@@ -15749,11 +15753,11 @@ function $c(r) {
|
|
|
15749
15753
|
return R = t(R, Y), [R[0] * e + o, s - R[1] * e];
|
|
15750
15754
|
}
|
|
15751
15755
|
A.stream = function(R) {
|
|
15752
|
-
return D && T === R ? D : D =
|
|
15756
|
+
return D && T === R ? D : D = Zc(m(h, L(S(T = R))));
|
|
15753
15757
|
}, A.clipAngle = function(R) {
|
|
15754
|
-
return arguments.length ? (m = +R ?
|
|
15758
|
+
return arguments.length ? (m = +R ? Wc(p = R * $e, 6 * $e) : (p = null, za), X()) : p * yr;
|
|
15755
15759
|
}, A.clipExtent = function(R) {
|
|
15756
|
-
return arguments.length ? (S = R == null ? (d = y = I = C = null,
|
|
15760
|
+
return arguments.length ? (S = R == null ? (d = y = I = C = null, Ga) : kc(d = +R[0][0], y = +R[0][1], I = +R[1][0], C = +R[1][1]), X()) : d == null ? null : [[d, y], [I, C]];
|
|
15757
15761
|
}, A.scale = function(R) {
|
|
15758
15762
|
return arguments.length ? (e = +R, P()) : e;
|
|
15759
15763
|
}, A.translate = function(R) {
|
|
@@ -15763,14 +15767,14 @@ function $c(r) {
|
|
|
15763
15767
|
}, A.rotate = function(R) {
|
|
15764
15768
|
return arguments.length ? (l = R[0] % 360 * $e, c = R[1] % 360 * $e, f = R.length > 2 ? R[2] % 360 * $e : 0, P()) : [l * yr, c * yr, f * yr];
|
|
15765
15769
|
}, A.precision = function(R) {
|
|
15766
|
-
return arguments.length ? (L =
|
|
15770
|
+
return arguments.length ? (L = Ua(j, x = R * R), X()) : Io(x);
|
|
15767
15771
|
}, A.fitExtent = function(R, Y) {
|
|
15768
|
-
return
|
|
15772
|
+
return zu(A, R, Y);
|
|
15769
15773
|
}, A.fitSize = function(R, Y) {
|
|
15770
|
-
return
|
|
15774
|
+
return jc(A, R, Y);
|
|
15771
15775
|
};
|
|
15772
15776
|
function P() {
|
|
15773
|
-
g =
|
|
15777
|
+
g = Tu(h = Mc(l, c, f), t);
|
|
15774
15778
|
var R = t(a, u);
|
|
15775
15779
|
return o = n - R[0] * e, s = i + R[1] * e, X();
|
|
15776
15780
|
}
|
|
@@ -15781,7 +15785,7 @@ function $c(r) {
|
|
|
15781
15785
|
return t = r.apply(this, arguments), A.invert = t.invert && q, P();
|
|
15782
15786
|
};
|
|
15783
15787
|
}
|
|
15784
|
-
function
|
|
15788
|
+
function ef(r) {
|
|
15785
15789
|
return function(t, e) {
|
|
15786
15790
|
var n = Lt(t), i = Lt(e), o = r(n * i);
|
|
15787
15791
|
return [
|
|
@@ -15790,7 +15794,7 @@ function tf(r) {
|
|
|
15790
15794
|
];
|
|
15791
15795
|
};
|
|
15792
15796
|
}
|
|
15793
|
-
function
|
|
15797
|
+
function nf(r) {
|
|
15794
15798
|
return function(t, e) {
|
|
15795
15799
|
var n = Io(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
|
|
15796
15800
|
return [
|
|
@@ -15799,20 +15803,20 @@ function ef(r) {
|
|
|
15799
15803
|
];
|
|
15800
15804
|
};
|
|
15801
15805
|
}
|
|
15802
|
-
var
|
|
15803
|
-
return (r =
|
|
15806
|
+
var Vu = ef(function(r) {
|
|
15807
|
+
return (r = Du(r)) && r / bt(r);
|
|
15804
15808
|
});
|
|
15805
|
-
|
|
15809
|
+
Vu.invert = nf(function(r) {
|
|
15806
15810
|
return r;
|
|
15807
15811
|
});
|
|
15808
|
-
function
|
|
15809
|
-
return
|
|
15812
|
+
function rf() {
|
|
15813
|
+
return $c(Vu).scale(79.4188).clipAngle(180 - 1e-3);
|
|
15810
15814
|
}
|
|
15811
|
-
function
|
|
15815
|
+
function qa(r, t) {
|
|
15812
15816
|
return [r, t];
|
|
15813
15817
|
}
|
|
15814
|
-
|
|
15815
|
-
function
|
|
15818
|
+
qa.invert = qa;
|
|
15819
|
+
function of(r, t, e) {
|
|
15816
15820
|
e = e || {};
|
|
15817
15821
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
15818
15822
|
if (!r)
|
|
@@ -15828,14 +15832,14 @@ function rf(r, t, e) {
|
|
|
15828
15832
|
var o = [];
|
|
15829
15833
|
switch (r.type) {
|
|
15830
15834
|
case "GeometryCollection":
|
|
15831
|
-
return
|
|
15835
|
+
return iu(r, function(s) {
|
|
15832
15836
|
var a = Mo(s, t, n, i);
|
|
15833
15837
|
a && o.push(a);
|
|
15834
15838
|
}), Ls(o);
|
|
15835
15839
|
case "FeatureCollection":
|
|
15836
|
-
return
|
|
15840
|
+
return Na(r, function(s) {
|
|
15837
15841
|
var a = Mo(s, t, n, i);
|
|
15838
|
-
a &&
|
|
15842
|
+
a && Na(a, function(u) {
|
|
15839
15843
|
u && o.push(u);
|
|
15840
15844
|
});
|
|
15841
15845
|
}), Ls(o);
|
|
@@ -15846,47 +15850,47 @@ function Mo(r, t, e, n) {
|
|
|
15846
15850
|
var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
|
|
15847
15851
|
if (o.type === "GeometryCollection") {
|
|
15848
15852
|
var s = [];
|
|
15849
|
-
return
|
|
15853
|
+
return iu(r, function(m) {
|
|
15850
15854
|
var d = Mo(m, t, e, n);
|
|
15851
15855
|
d && s.push(d);
|
|
15852
15856
|
}), Ls(s);
|
|
15853
15857
|
}
|
|
15854
|
-
var a =
|
|
15858
|
+
var a = sf(o), u = {
|
|
15855
15859
|
type: o.type,
|
|
15856
|
-
coordinates:
|
|
15857
|
-
}, l = new qs(), c = l.read(u), f =
|
|
15858
|
-
if (h = g.write(h), !
|
|
15860
|
+
coordinates: qu(o.coordinates, a)
|
|
15861
|
+
}, l = new qs(), c = l.read(u), f = cc(fc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new pu();
|
|
15862
|
+
if (h = g.write(h), !Uu(h.coordinates)) {
|
|
15859
15863
|
var p = {
|
|
15860
15864
|
type: h.type,
|
|
15861
|
-
coordinates:
|
|
15865
|
+
coordinates: Xu(h.coordinates, a)
|
|
15862
15866
|
};
|
|
15863
15867
|
return jo(p, i);
|
|
15864
15868
|
}
|
|
15865
15869
|
}
|
|
15866
|
-
function
|
|
15867
|
-
return Array.isArray(r[0]) ?
|
|
15870
|
+
function Uu(r) {
|
|
15871
|
+
return Array.isArray(r[0]) ? Uu(r[0]) : isNaN(r[0]);
|
|
15868
15872
|
}
|
|
15869
|
-
function
|
|
15873
|
+
function qu(r, t) {
|
|
15870
15874
|
return typeof r[0] != "object" ? t(r) : r.map(function(e) {
|
|
15871
|
-
return
|
|
15875
|
+
return qu(e, t);
|
|
15872
15876
|
});
|
|
15873
15877
|
}
|
|
15874
|
-
function
|
|
15878
|
+
function Xu(r, t) {
|
|
15875
15879
|
return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
|
|
15876
|
-
return
|
|
15880
|
+
return Xu(e, t);
|
|
15877
15881
|
});
|
|
15878
15882
|
}
|
|
15879
|
-
function
|
|
15880
|
-
var t =
|
|
15881
|
-
return
|
|
15883
|
+
function sf(r) {
|
|
15884
|
+
var t = pc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
15885
|
+
return rf().rotate(e).scale(_e);
|
|
15882
15886
|
}
|
|
15883
|
-
function
|
|
15887
|
+
function Xa(r) {
|
|
15884
15888
|
let t;
|
|
15885
15889
|
for (const e of r)
|
|
15886
15890
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
15887
15891
|
}
|
|
15888
|
-
function
|
|
15889
|
-
const e =
|
|
15892
|
+
function Ya(r, t) {
|
|
15893
|
+
const e = gc(
|
|
15890
15894
|
{
|
|
15891
15895
|
type: "Polygon",
|
|
15892
15896
|
coordinates: [
|
|
@@ -15904,20 +15908,20 @@ function Xa(r, t) {
|
|
|
15904
15908
|
if (!e)
|
|
15905
15909
|
return;
|
|
15906
15910
|
e.properties = { isMask: "y" };
|
|
15907
|
-
const n =
|
|
15911
|
+
const n = of(r, 0);
|
|
15908
15912
|
if (n.geometry.type === "Polygon")
|
|
15909
15913
|
for (const i of n.geometry.coordinates)
|
|
15910
|
-
|
|
15914
|
+
Xa(i);
|
|
15911
15915
|
else
|
|
15912
15916
|
for (const i of n.geometry.coordinates)
|
|
15913
15917
|
for (const o of i)
|
|
15914
|
-
|
|
15918
|
+
Xa(o);
|
|
15915
15919
|
t({
|
|
15916
15920
|
type: "FeatureCollection",
|
|
15917
15921
|
features: [n, e]
|
|
15918
15922
|
});
|
|
15919
15923
|
}
|
|
15920
|
-
function
|
|
15924
|
+
function af(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
15921
15925
|
var l, c, f;
|
|
15922
15926
|
const a = (l = s == null ? void 0 : s.geometry) == null ? void 0 : l.type, u = (c = s == null ? void 0 : s.properties) != null && c.isMask ? 0 : a === "LineString" || a === "MultiLineString" ? 3 : 2;
|
|
15923
15927
|
return {
|
|
@@ -15945,7 +15949,7 @@ function sf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15945
15949
|
};
|
|
15946
15950
|
function p(d, y = !1) {
|
|
15947
15951
|
const I = document.createElement("div");
|
|
15948
|
-
return new
|
|
15952
|
+
return new Ja({ props: { displayIn: "leaflet" }, target: I }), new er.Marker(d, {
|
|
15949
15953
|
interactive: y,
|
|
15950
15954
|
icon: new er.DivIcon({
|
|
15951
15955
|
html: I,
|
|
@@ -15999,8 +16003,8 @@ function sf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15999
16003
|
if (x.length > 0) {
|
|
16000
16004
|
let L = x.pop();
|
|
16001
16005
|
for (const D of x)
|
|
16002
|
-
L =
|
|
16003
|
-
|
|
16006
|
+
L = hc(L, D);
|
|
16007
|
+
Ya({ ...y, geometry: L }, I), C = !0;
|
|
16004
16008
|
} else {
|
|
16005
16009
|
const L = y.geometry.geometries.filter(
|
|
16006
16010
|
(D) => D.type === "LineString" || D.type === "MultiLineString"
|
|
@@ -16013,7 +16017,7 @@ function sf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16013
16017
|
}
|
|
16014
16018
|
if (!C) {
|
|
16015
16019
|
if (y.geometry.type === "Polygon" || y.geometry.type === "MultiPolygon")
|
|
16016
|
-
|
|
16020
|
+
Ya(y, I);
|
|
16017
16021
|
else if (y.geometry.type === "LineString" || y.geometry.type === "MultiLineString") {
|
|
16018
16022
|
I(y);
|
|
16019
16023
|
return;
|
|
@@ -16052,7 +16056,7 @@ function sf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
16052
16056
|
};
|
|
16053
16057
|
}
|
|
16054
16058
|
var En, Vr;
|
|
16055
|
-
class
|
|
16059
|
+
class uf extends er.Control {
|
|
16056
16060
|
constructor(e) {
|
|
16057
16061
|
super();
|
|
16058
16062
|
hs(this, En, void 0);
|
|
@@ -16068,7 +16072,7 @@ class af extends er.Control {
|
|
|
16068
16072
|
flyTo: s,
|
|
16069
16073
|
fullGeometryStyle: a,
|
|
16070
16074
|
...u
|
|
16071
|
-
} = Gn(this, Vr), l = typeof s == "boolean" ? {} : s, c =
|
|
16075
|
+
} = Gn(this, Vr), l = typeof s == "boolean" ? {} : s, c = af(
|
|
16072
16076
|
e,
|
|
16073
16077
|
i,
|
|
16074
16078
|
o,
|
|
@@ -16076,7 +16080,7 @@ class af extends er.Control {
|
|
|
16076
16080
|
l,
|
|
16077
16081
|
a
|
|
16078
16082
|
);
|
|
16079
|
-
xo(this, En, new
|
|
16083
|
+
xo(this, En, new zl({
|
|
16080
16084
|
target: n,
|
|
16081
16085
|
props: {
|
|
16082
16086
|
mapController: c,
|
|
@@ -16134,11 +16138,11 @@ class af extends er.Control {
|
|
|
16134
16138
|
}
|
|
16135
16139
|
}
|
|
16136
16140
|
En = new WeakMap(), Vr = new WeakMap();
|
|
16137
|
-
function
|
|
16138
|
-
return new
|
|
16141
|
+
function lf(...r) {
|
|
16142
|
+
return new uf(...r);
|
|
16139
16143
|
}
|
|
16140
|
-
window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding =
|
|
16144
|
+
window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = lf);
|
|
16141
16145
|
export {
|
|
16142
|
-
|
|
16143
|
-
|
|
16146
|
+
uf as GeocodingControl,
|
|
16147
|
+
af as createLeafletMapController
|
|
16144
16148
|
};
|