@maptiler/geocoding-control 0.0.91-git.535bd0 → 0.0.91-git.896be4
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/GeocodingControl.svelte +12 -16
- package/leaflet.js +825 -826
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +5 -5
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +828 -829
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +827 -828
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +5 -5
- package/maptilersdk.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +341 -342
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
package/maptilersdk.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ia = (r, t, e) => {
|
|
2
2
|
if (!t.has(r))
|
|
3
3
|
throw TypeError("Cannot " + e);
|
|
4
4
|
};
|
|
5
|
-
var Vn = (r, t, e) => (
|
|
5
|
+
var Vn = (r, t, e) => (ia(r, t, "read from private field"), e ? e.call(r) : t.get(r)), ds = (r, t, e) => {
|
|
6
6
|
if (t.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
9
|
-
}, wo = (r, t, e, n) => (
|
|
10
|
-
import * as
|
|
9
|
+
}, wo = (r, t, e, n) => (ia(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
|
+
import * as dl from "@maptiler/sdk";
|
|
11
11
|
function It() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function vl(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 Za(r) {
|
|
19
19
|
return r();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function oa() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
24
|
function _r(r) {
|
|
25
|
-
r.forEach(
|
|
25
|
+
r.forEach(Za);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ja(r) {
|
|
28
28
|
return typeof r == "function";
|
|
29
29
|
}
|
|
30
30
|
function zr(r, t) {
|
|
@@ -34,19 +34,19 @@ let Lo;
|
|
|
34
34
|
function br(r, t) {
|
|
35
35
|
return Lo || (Lo = document.createElement("a")), Lo.href = t, r === Lo.href;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function yl(r) {
|
|
38
38
|
return Object.keys(r).length === 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function ml(r, t, e, n) {
|
|
41
41
|
if (r) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = $a(r, t, e, n);
|
|
43
43
|
return r[0](i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return r[1] && n ?
|
|
46
|
+
function $a(r, t, e, n) {
|
|
47
|
+
return r[1] && n ? vl(e.ctx.slice(), r[1](n(t))) : e.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function _l(r, t, e, n) {
|
|
50
50
|
if (r[2] && n) {
|
|
51
51
|
const i = r[2](n(e));
|
|
52
52
|
if (t.dirty === void 0)
|
|
@@ -61,13 +61,13 @@ function El(r, t, e, n) {
|
|
|
61
61
|
}
|
|
62
62
|
return t.dirty;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function El(r, t, e, n, i, o) {
|
|
65
65
|
if (i) {
|
|
66
|
-
const s =
|
|
66
|
+
const s = $a(t, e, n, o);
|
|
67
67
|
r.p(s, i);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Il(r) {
|
|
71
71
|
if (r.ctx.length > 32) {
|
|
72
72
|
const t = [], e = r.ctx.length / 32;
|
|
73
73
|
for (let n = 0; n < e; n++)
|
|
@@ -76,7 +76,7 @@ function Cl(r) {
|
|
|
76
76
|
}
|
|
77
77
|
return -1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function sa(r) {
|
|
80
80
|
return r ?? "";
|
|
81
81
|
}
|
|
82
82
|
function nt(r, t) {
|
|
@@ -100,13 +100,13 @@ function Pr(r) {
|
|
|
100
100
|
function nn() {
|
|
101
101
|
return Pr(" ");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Cl() {
|
|
104
104
|
return Pr("");
|
|
105
105
|
}
|
|
106
106
|
function Ce(r, t, e, n) {
|
|
107
107
|
return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Nl(r) {
|
|
110
110
|
return function(t) {
|
|
111
111
|
return t.preventDefault(), r.call(this, t);
|
|
112
112
|
};
|
|
@@ -114,19 +114,19 @@ function xl(r) {
|
|
|
114
114
|
function P(r, t, e) {
|
|
115
115
|
e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function xl(r) {
|
|
118
118
|
return Array.from(r.childNodes);
|
|
119
119
|
}
|
|
120
120
|
function $i(r, t) {
|
|
121
121
|
t = "" + t, r.data !== t && (r.data = t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function aa(r, t) {
|
|
124
124
|
r.value = t ?? "";
|
|
125
125
|
}
|
|
126
126
|
function on(r, t, e) {
|
|
127
127
|
r.classList[e ? "add" : "remove"](t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Sl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
130
130
|
const i = document.createEvent("CustomEvent");
|
|
131
131
|
return i.initCustomEvent(r, e, n, t), i;
|
|
132
132
|
}
|
|
@@ -134,20 +134,20 @@ let to;
|
|
|
134
134
|
function Zi(r) {
|
|
135
135
|
to = r;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function tu() {
|
|
138
138
|
if (!to)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
140
|
return to;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function wl(r) {
|
|
143
|
+
tu().$$.on_destroy.push(r);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
const r =
|
|
145
|
+
function Ll() {
|
|
146
|
+
const r = tu();
|
|
147
147
|
return (t, e, { cancelable: n = !1 } = {}) => {
|
|
148
148
|
const i = r.$$.callbacks[t];
|
|
149
149
|
if (i) {
|
|
150
|
-
const o =
|
|
150
|
+
const o = Sl(t, e, { cancelable: n });
|
|
151
151
|
return i.slice().forEach((s) => {
|
|
152
152
|
s.call(r, o);
|
|
153
153
|
}), !o.defaultPrevented;
|
|
@@ -155,23 +155,23 @@ function bl() {
|
|
|
155
155
|
return !0;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ua(r, t) {
|
|
159
159
|
const e = r.$$.callbacks[t.type];
|
|
160
160
|
e && e.slice().forEach((n) => n.call(this, t));
|
|
161
161
|
}
|
|
162
|
-
const mi = [],
|
|
162
|
+
const mi = [], Is = [];
|
|
163
163
|
let Ei = [];
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
|
|
164
|
+
const la = [], bl = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let Cs = !1;
|
|
166
|
+
function Pl() {
|
|
167
|
+
Cs || (Cs = !0, bl.then(eu));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ns(r) {
|
|
170
170
|
Ei.push(r);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const vs = /* @__PURE__ */ new Set();
|
|
173
173
|
let yi = 0;
|
|
174
|
-
function
|
|
174
|
+
function eu() {
|
|
175
175
|
if (yi !== 0)
|
|
176
176
|
return;
|
|
177
177
|
const r = to;
|
|
@@ -179,31 +179,31 @@ function nu() {
|
|
|
179
179
|
try {
|
|
180
180
|
for (; yi < mi.length; ) {
|
|
181
181
|
const t = mi[yi];
|
|
182
|
-
yi++, Zi(t),
|
|
182
|
+
yi++, Zi(t), Rl(t.$$);
|
|
183
183
|
}
|
|
184
184
|
} catch (t) {
|
|
185
185
|
throw mi.length = 0, yi = 0, t;
|
|
186
186
|
}
|
|
187
|
-
for (Zi(null), mi.length = 0, yi = 0;
|
|
188
|
-
|
|
187
|
+
for (Zi(null), mi.length = 0, yi = 0; Is.length; )
|
|
188
|
+
Is.pop()();
|
|
189
189
|
for (let t = 0; t < Ei.length; t += 1) {
|
|
190
190
|
const e = Ei[t];
|
|
191
|
-
|
|
191
|
+
vs.has(e) || (vs.add(e), e());
|
|
192
192
|
}
|
|
193
193
|
Ei.length = 0;
|
|
194
194
|
} while (mi.length);
|
|
195
|
-
for (;
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
for (; la.length; )
|
|
196
|
+
la.pop()();
|
|
197
|
+
Cs = !1, vs.clear(), Zi(r);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Rl(r) {
|
|
200
200
|
if (r.fragment !== null) {
|
|
201
201
|
r.update(), _r(r.before_update);
|
|
202
202
|
const t = r.dirty;
|
|
203
|
-
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(
|
|
203
|
+
r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(Ns);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Ol(r) {
|
|
207
207
|
const t = [], e = [];
|
|
208
208
|
Ei.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), Ei = t;
|
|
209
209
|
}
|
|
@@ -233,12 +233,12 @@ function le(r, t, e, n) {
|
|
|
233
233
|
} else
|
|
234
234
|
n && n();
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Tl(r, t) {
|
|
237
237
|
le(r, 1, 1, () => {
|
|
238
238
|
t.delete(r.key);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Dl(r, t, e, n, i, o, s, a, u, l, c, f) {
|
|
242
242
|
let h = r.length, g = o.length, p = h;
|
|
243
243
|
const v = {};
|
|
244
244
|
for (; p--; )
|
|
@@ -270,17 +270,17 @@ function Rr(r) {
|
|
|
270
270
|
}
|
|
271
271
|
function ur(r, t, e, n) {
|
|
272
272
|
const { fragment: i, after_update: o } = r.$$;
|
|
273
|
-
i && i.m(t, e), n ||
|
|
274
|
-
const s = r.$$.on_mount.map(
|
|
273
|
+
i && i.m(t, e), n || Ns(() => {
|
|
274
|
+
const s = r.$$.on_mount.map(Za).filter(Ja);
|
|
275
275
|
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : _r(s), r.$$.on_mount = [];
|
|
276
|
-
}), o.forEach(
|
|
276
|
+
}), o.forEach(Ns);
|
|
277
277
|
}
|
|
278
278
|
function lr(r, t) {
|
|
279
279
|
const e = r.$$;
|
|
280
|
-
e.fragment !== null && (
|
|
280
|
+
e.fragment !== null && (Ol(e.after_update), _r(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
r.$$.dirty[0] === -1 && (mi.push(r),
|
|
282
|
+
function Ml(r, t) {
|
|
283
|
+
r.$$.dirty[0] === -1 && (mi.push(r), Pl(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
284
284
|
}
|
|
285
285
|
function Ur(r, t, e, n, i, o, s, a = [-1]) {
|
|
286
286
|
const u = to;
|
|
@@ -292,7 +292,7 @@ function Ur(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
292
292
|
props: o,
|
|
293
293
|
update: It,
|
|
294
294
|
not_equal: i,
|
|
295
|
-
bound:
|
|
295
|
+
bound: oa(),
|
|
296
296
|
// lifecycle
|
|
297
297
|
on_mount: [],
|
|
298
298
|
on_destroy: [],
|
|
@@ -301,7 +301,7 @@ function Ur(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
301
301
|
after_update: [],
|
|
302
302
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
303
303
|
// everything else
|
|
304
|
-
callbacks:
|
|
304
|
+
callbacks: oa(),
|
|
305
305
|
dirty: a,
|
|
306
306
|
skip_bound: !1,
|
|
307
307
|
root: t.target || u.$$.root
|
|
@@ -310,14 +310,14 @@ function Ur(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
310
310
|
let c = !1;
|
|
311
311
|
if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
|
|
312
312
|
const p = g.length ? g[0] : h;
|
|
313
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c &&
|
|
313
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Ml(r, f)), h;
|
|
314
314
|
}) : [], l.update(), c = !0, _r(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
315
315
|
if (t.hydrate) {
|
|
316
|
-
const f =
|
|
316
|
+
const f = xl(t.target);
|
|
317
317
|
l.fragment && l.fragment.l(f), f.forEach(Tt);
|
|
318
318
|
} else
|
|
319
319
|
l.fragment && l.fragment.c();
|
|
320
|
-
t.intro && Gt(r.$$.fragment), ur(r, t.target, t.anchor, t.customElement),
|
|
320
|
+
t.intro && Gt(r.$$.fragment), ur(r, t.target, t.anchor, t.customElement), eu();
|
|
321
321
|
}
|
|
322
322
|
Zi(u);
|
|
323
323
|
}
|
|
@@ -326,7 +326,7 @@ class qr {
|
|
|
326
326
|
lr(this, 1), this.$destroy = It;
|
|
327
327
|
}
|
|
328
328
|
$on(t, e) {
|
|
329
|
-
if (
|
|
329
|
+
if (!Ja(e))
|
|
330
330
|
return It;
|
|
331
331
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
332
332
|
return n.push(e), () => {
|
|
@@ -335,10 +335,10 @@ class qr {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
$set(t) {
|
|
338
|
-
this.$$set && !
|
|
338
|
+
this.$$set && !yl(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Al(r) {
|
|
342
342
|
let t, e;
|
|
343
343
|
return {
|
|
344
344
|
c() {
|
|
@@ -355,12 +355,12 @@ function Fl(r) {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
class
|
|
358
|
+
class nu extends qr {
|
|
359
359
|
constructor(t) {
|
|
360
|
-
super(), Ur(this, t, null,
|
|
360
|
+
super(), Ur(this, t, null, Al, zr, {});
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Fl(r) {
|
|
364
364
|
let t, e;
|
|
365
365
|
return {
|
|
366
366
|
c() {
|
|
@@ -377,12 +377,12 @@ function kl(r) {
|
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
class
|
|
380
|
+
class ru extends qr {
|
|
381
381
|
constructor(t) {
|
|
382
|
-
super(), Ur(this, t, null,
|
|
382
|
+
super(), Ur(this, t, null, Fl, zr, {});
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function kl(r) {
|
|
386
386
|
let t, e;
|
|
387
387
|
return {
|
|
388
388
|
c() {
|
|
@@ -410,7 +410,7 @@ function Bl(r) {
|
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Bl(r) {
|
|
414
414
|
let t, e;
|
|
415
415
|
return {
|
|
416
416
|
c() {
|
|
@@ -438,7 +438,7 @@ function Gl(r) {
|
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Gl(r) {
|
|
442
442
|
let t, e;
|
|
443
443
|
return {
|
|
444
444
|
c() {
|
|
@@ -466,7 +466,7 @@ function Vl(r) {
|
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Vl(r) {
|
|
470
470
|
let t, e;
|
|
471
471
|
return {
|
|
472
472
|
c() {
|
|
@@ -494,7 +494,7 @@ function zl(r) {
|
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function zl(r) {
|
|
498
498
|
let t, e;
|
|
499
499
|
return {
|
|
500
500
|
c() {
|
|
@@ -522,7 +522,7 @@ function Ul(r) {
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Ul(r) {
|
|
526
526
|
let t, e;
|
|
527
527
|
return {
|
|
528
528
|
c() {
|
|
@@ -550,7 +550,7 @@ function ql(r) {
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ql(r) {
|
|
554
554
|
let t, e, n, i;
|
|
555
555
|
return {
|
|
556
556
|
c() {
|
|
@@ -586,7 +586,7 @@ function Xl(r) {
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function ca(r) {
|
|
590
590
|
let t, e;
|
|
591
591
|
return {
|
|
592
592
|
c() {
|
|
@@ -611,7 +611,7 @@ function fa(r) {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Xl(r) {
|
|
615
615
|
var T, A;
|
|
616
616
|
let t, e, n, i, o, s, a, u, l = (
|
|
617
617
|
/*feature*/
|
|
@@ -637,19 +637,19 @@ function Yl(r) {
|
|
|
637
637
|
1 && (e = null), F & /*feature*/
|
|
638
638
|
1 && (n = null), F & /*feature*/
|
|
639
639
|
1 && (i = null), /*imageUrl*/
|
|
640
|
-
L[5] ?
|
|
640
|
+
L[5] ? ql : (
|
|
641
641
|
/*feature*/
|
|
642
|
-
L[0].address ?
|
|
642
|
+
L[0].address ? Ul : (
|
|
643
643
|
/*feature*/
|
|
644
644
|
((X = L[0].properties) == null ? void 0 : X.kind) === "road" || /*feature*/
|
|
645
|
-
((R = L[0].properties) == null ? void 0 : R.kind) === "road_relation" ?
|
|
646
|
-
L[0].id.startsWith("address.")), e ?
|
|
647
|
-
L[0].id.startsWith("postal_code.")), n ?
|
|
648
|
-
L[0].id.startsWith("poi.")), i ?
|
|
645
|
+
((R = L[0].properties) == null ? void 0 : R.kind) === "road_relation" ? zl : (e == null && (e = !!/*feature*/
|
|
646
|
+
L[0].id.startsWith("address.")), e ? Vl : (n == null && (n = !!/*feature*/
|
|
647
|
+
L[0].id.startsWith("postal_code.")), n ? Gl : (i == null && (i = !!/*feature*/
|
|
648
|
+
L[0].id.startsWith("poi.")), i ? Bl : kl)))
|
|
649
649
|
)
|
|
650
650
|
);
|
|
651
651
|
}
|
|
652
|
-
let w = C(r, -1), N = w(r), S = h &&
|
|
652
|
+
let w = C(r, -1), N = w(r), S = h && ca(r);
|
|
653
653
|
return {
|
|
654
654
|
c() {
|
|
655
655
|
t = ht("li"), N.c(), o = nn(), s = ht("span"), a = ht("span"), u = ht("span"), c = Pr(l), f = nn(), S && S.c(), g = nn(), p = ht("span"), d = Pr(v), P(u, "class", "primary svelte-ltkwvy"), P(a, "class", "svelte-ltkwvy"), P(p, "class", "line2 svelte-ltkwvy"), P(s, "class", "texts svelte-ltkwvy"), P(t, "tabindex", "0"), P(
|
|
@@ -694,7 +694,7 @@ function Yl(r) {
|
|
|
694
694
|
L[0].id.startsWith("address.") && !/*feature*/
|
|
695
695
|
L[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
696
696
|
L[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
697
|
-
L[5])), h ? S ? S.p(L, F) : (S =
|
|
697
|
+
L[5])), h ? S ? S.p(L, F) : (S = ca(L), S.c(), S.m(a, null)) : S && (S.d(1), S = null), F & /*feature*/
|
|
698
698
|
1 && v !== (v = /*feature*/
|
|
699
699
|
L[0].place_name.replace(/[^,]*,?\s*/, "") + "") && $i(d, v), F & /*selected*/
|
|
700
700
|
2 && P(
|
|
@@ -717,7 +717,7 @@ function Yl(r) {
|
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Yl(r, t, e) {
|
|
721
721
|
var v;
|
|
722
722
|
let n, i, o, s, { feature: a } = t, { selected: u = !1 } = t, { showPlaceType: l } = t;
|
|
723
723
|
const c = (v = a.properties) == null ? void 0 : v.categories;
|
|
@@ -725,10 +725,10 @@ function Wl(r, t, e) {
|
|
|
725
725
|
n > -1 ? e(7, n--, n) : d.style.visibility = "hidden";
|
|
726
726
|
}
|
|
727
727
|
function h(d) {
|
|
728
|
-
|
|
728
|
+
ua.call(this, r, d);
|
|
729
729
|
}
|
|
730
730
|
function g(d) {
|
|
731
|
-
|
|
731
|
+
ua.call(this, r, d);
|
|
732
732
|
}
|
|
733
733
|
const p = (d) => f(d.currentTarget);
|
|
734
734
|
return r.$$set = (d) => {
|
|
@@ -753,16 +753,16 @@ function Wl(r, t, e) {
|
|
|
753
753
|
p
|
|
754
754
|
];
|
|
755
755
|
}
|
|
756
|
-
class
|
|
756
|
+
class Wl extends qr {
|
|
757
757
|
constructor(t) {
|
|
758
|
-
super(), Ur(this, t,
|
|
758
|
+
super(), Ur(this, t, Yl, Xl, zr, {
|
|
759
759
|
feature: 0,
|
|
760
760
|
selected: 1,
|
|
761
761
|
showPlaceType: 2
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Hl(r) {
|
|
766
766
|
let t;
|
|
767
767
|
return {
|
|
768
768
|
c() {
|
|
@@ -779,12 +779,12 @@ function jl(r) {
|
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
class
|
|
782
|
+
class jl extends qr {
|
|
783
783
|
constructor(t) {
|
|
784
|
-
super(), Ur(this, t, null,
|
|
784
|
+
super(), Ur(this, t, null, Hl, zr, {});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Kl(r) {
|
|
788
788
|
let t, e;
|
|
789
789
|
return {
|
|
790
790
|
c() {
|
|
@@ -801,12 +801,12 @@ function Ql(r) {
|
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
}
|
|
804
|
-
class
|
|
804
|
+
class Ql extends qr {
|
|
805
805
|
constructor(t) {
|
|
806
|
-
super(), Ur(this, t, null,
|
|
806
|
+
super(), Ur(this, t, null, Kl, zr, {});
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Zl(r) {
|
|
810
810
|
let t, e;
|
|
811
811
|
return {
|
|
812
812
|
c() {
|
|
@@ -823,18 +823,18 @@ function Jl(r) {
|
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class Jl extends qr {
|
|
827
827
|
constructor(t) {
|
|
828
|
-
super(), Ur(this, t, null,
|
|
828
|
+
super(), Ur(this, t, null, Zl, zr, {});
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function fa(r, t, e) {
|
|
832
832
|
const n = r.slice();
|
|
833
|
-
return n[
|
|
833
|
+
return n[72] = t[e], n[74] = e, n;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function ha(r) {
|
|
836
836
|
let t, e;
|
|
837
|
-
return t = new
|
|
837
|
+
return t = new jl({}), {
|
|
838
838
|
c() {
|
|
839
839
|
Rr(t.$$.fragment);
|
|
840
840
|
},
|
|
@@ -852,9 +852,9 @@ function ga(r) {
|
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function ga(r) {
|
|
856
856
|
let t, e, n, i, o;
|
|
857
|
-
return e = new
|
|
857
|
+
return e = new Ql({}), {
|
|
858
858
|
c() {
|
|
859
859
|
t = ht("button"), Rr(e.$$.fragment), P(t, "type", "button"), P(
|
|
860
860
|
t,
|
|
@@ -873,7 +873,7 @@ function pa(r) {
|
|
|
873
873
|
t,
|
|
874
874
|
"click",
|
|
875
875
|
/*click_handler_2*/
|
|
876
|
-
r[
|
|
876
|
+
r[58]
|
|
877
877
|
), i = !0);
|
|
878
878
|
},
|
|
879
879
|
p(s, a) {
|
|
@@ -902,18 +902,18 @@ function pa(r) {
|
|
|
902
902
|
}
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function $l(r) {
|
|
906
906
|
let t, e = [], n = /* @__PURE__ */ new Map(), i, o, s, a = (
|
|
907
907
|
/*listFeatures*/
|
|
908
908
|
r[12]
|
|
909
909
|
);
|
|
910
910
|
const u = (l) => (
|
|
911
911
|
/*feature*/
|
|
912
|
-
l[
|
|
912
|
+
l[72].id
|
|
913
913
|
);
|
|
914
914
|
for (let l = 0; l < a.length; l += 1) {
|
|
915
|
-
let c =
|
|
916
|
-
n.set(f, e[l] =
|
|
915
|
+
let c = fa(r, a, l), f = u(c);
|
|
916
|
+
n.set(f, e[l] = pa(f, c));
|
|
917
917
|
}
|
|
918
918
|
return {
|
|
919
919
|
c() {
|
|
@@ -931,20 +931,20 @@ function tc(r) {
|
|
|
931
931
|
t,
|
|
932
932
|
"mouseleave",
|
|
933
933
|
/*mouseleave_handler*/
|
|
934
|
-
r[
|
|
934
|
+
r[62]
|
|
935
935
|
),
|
|
936
936
|
Ce(
|
|
937
937
|
t,
|
|
938
938
|
"blur",
|
|
939
939
|
/*blur_handler_1*/
|
|
940
|
-
r[
|
|
940
|
+
r[63]
|
|
941
941
|
)
|
|
942
942
|
], o = !0);
|
|
943
943
|
},
|
|
944
944
|
p(l, c) {
|
|
945
945
|
c[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
|
|
946
946
|
2110464 && (a = /*listFeatures*/
|
|
947
|
-
l[12], Mo(), e =
|
|
947
|
+
l[12], Mo(), e = Dl(e, c, u, 1, l, a, n, t, Tl, pa, null, fa), Ao());
|
|
948
948
|
},
|
|
949
949
|
i(l) {
|
|
950
950
|
if (!i) {
|
|
@@ -966,9 +966,9 @@ function tc(r) {
|
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function tc(r) {
|
|
970
970
|
let t, e, n, i, o, s;
|
|
971
|
-
return e = new
|
|
971
|
+
return e = new ru({}), {
|
|
972
972
|
c() {
|
|
973
973
|
t = ht("div"), Rr(e.$$.fragment), n = nn(), i = ht("div"), o = Pr(
|
|
974
974
|
/*noResultsMessage*/
|
|
@@ -997,7 +997,7 @@ function ec(r) {
|
|
|
997
997
|
}
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function ec(r) {
|
|
1001
1001
|
let t = "", e;
|
|
1002
1002
|
return {
|
|
1003
1003
|
c() {
|
|
@@ -1014,9 +1014,9 @@ function nc(r) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function nc(r) {
|
|
1018
1018
|
let t, e, n, i, o, s, a, u, l, c, f;
|
|
1019
|
-
return e = new
|
|
1019
|
+
return e = new ru({}), u = new nu({}), {
|
|
1020
1020
|
c() {
|
|
1021
1021
|
t = ht("div"), Rr(e.$$.fragment), n = nn(), i = ht("div"), o = Pr(
|
|
1022
1022
|
/*errorMessage*/
|
|
@@ -1028,7 +1028,7 @@ function rc(r) {
|
|
|
1028
1028
|
a,
|
|
1029
1029
|
"click",
|
|
1030
1030
|
/*click_handler_3*/
|
|
1031
|
-
r[
|
|
1031
|
+
r[59]
|
|
1032
1032
|
), c = !0);
|
|
1033
1033
|
},
|
|
1034
1034
|
p(h, g) {
|
|
@@ -1050,31 +1050,31 @@ function rc(r) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function pa(r, t) {
|
|
1054
1054
|
let e, n, i;
|
|
1055
1055
|
function o() {
|
|
1056
1056
|
return (
|
|
1057
1057
|
/*mouseenter_handler*/
|
|
1058
|
-
t[
|
|
1058
|
+
t[60](
|
|
1059
1059
|
/*i*/
|
|
1060
|
-
t[
|
|
1060
|
+
t[74]
|
|
1061
1061
|
)
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
1064
|
function s() {
|
|
1065
1065
|
return (
|
|
1066
1066
|
/*focus_handler_1*/
|
|
1067
|
-
t[
|
|
1067
|
+
t[61](
|
|
1068
1068
|
/*feature*/
|
|
1069
|
-
t[
|
|
1069
|
+
t[72]
|
|
1070
1070
|
)
|
|
1071
1071
|
);
|
|
1072
1072
|
}
|
|
1073
|
-
return n = new
|
|
1073
|
+
return n = new Wl({
|
|
1074
1074
|
props: {
|
|
1075
1075
|
feature: (
|
|
1076
1076
|
/*feature*/
|
|
1077
|
-
t[
|
|
1077
|
+
t[72]
|
|
1078
1078
|
),
|
|
1079
1079
|
showPlaceType: (
|
|
1080
1080
|
/*showPlaceType*/
|
|
@@ -1083,14 +1083,14 @@ function da(r, t) {
|
|
|
1083
1083
|
selected: (
|
|
1084
1084
|
/*selectedItemIndex*/
|
|
1085
1085
|
t[13] === /*i*/
|
|
1086
|
-
t[
|
|
1086
|
+
t[74]
|
|
1087
1087
|
)
|
|
1088
1088
|
}
|
|
1089
1089
|
}), n.$on("mouseenter", o), n.$on("focus", s), {
|
|
1090
1090
|
key: r,
|
|
1091
1091
|
first: null,
|
|
1092
1092
|
c() {
|
|
1093
|
-
e =
|
|
1093
|
+
e = Cl(), Rr(n.$$.fragment), this.first = e;
|
|
1094
1094
|
},
|
|
1095
1095
|
m(a, u) {
|
|
1096
1096
|
Dt(a, e, u), ur(n, a, u), i = !0;
|
|
@@ -1100,12 +1100,12 @@ function da(r, t) {
|
|
|
1100
1100
|
const l = {};
|
|
1101
1101
|
u[0] & /*listFeatures*/
|
|
1102
1102
|
4096 && (l.feature = /*feature*/
|
|
1103
|
-
t[
|
|
1103
|
+
t[72]), u[0] & /*showPlaceType*/
|
|
1104
1104
|
1024 && (l.showPlaceType = /*showPlaceType*/
|
|
1105
1105
|
t[10]), u[0] & /*selectedItemIndex, listFeatures*/
|
|
1106
1106
|
12288 && (l.selected = /*selectedItemIndex*/
|
|
1107
1107
|
t[13] === /*i*/
|
|
1108
|
-
t[
|
|
1108
|
+
t[74]), n.$set(l);
|
|
1109
1109
|
},
|
|
1110
1110
|
i(a) {
|
|
1111
1111
|
i || (Gt(n.$$.fragment, a), i = !0);
|
|
@@ -1118,26 +1118,26 @@ function da(r, t) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function rc(r) {
|
|
1122
1122
|
let t, e, n, i, o, s, a, u, l, c, f, h, g, p, v, d, m, E, C, w;
|
|
1123
|
-
i = new
|
|
1123
|
+
i = new Jl({}), c = new nu({});
|
|
1124
1124
|
let N = (
|
|
1125
1125
|
/*abortController*/
|
|
1126
|
-
r[17] &&
|
|
1126
|
+
r[17] && ha()
|
|
1127
1127
|
), S = (
|
|
1128
1128
|
/*enableReverse*/
|
|
1129
|
-
r[5] === !0 &&
|
|
1129
|
+
r[5] === !0 && ga(r)
|
|
1130
1130
|
);
|
|
1131
1131
|
const T = (
|
|
1132
1132
|
/*#slots*/
|
|
1133
|
-
r[
|
|
1134
|
-
), A =
|
|
1133
|
+
r[50].default
|
|
1134
|
+
), A = ml(
|
|
1135
1135
|
T,
|
|
1136
1136
|
r,
|
|
1137
1137
|
/*$$scope*/
|
|
1138
|
-
r[
|
|
1138
|
+
r[49],
|
|
1139
1139
|
null
|
|
1140
|
-
), L = [
|
|
1140
|
+
), L = [nc, ec, tc, $l], F = [];
|
|
1141
1141
|
function X(R, Y) {
|
|
1142
1142
|
var D, W;
|
|
1143
1143
|
return (
|
|
@@ -1177,7 +1177,7 @@ function ic(r) {
|
|
|
1177
1177
|
"displayable",
|
|
1178
1178
|
/*searchValue*/
|
|
1179
1179
|
r[1] !== ""
|
|
1180
|
-
), P(e, "class", "input-group svelte-1r7dvt7"), P(t, "tabindex", "0"), P(t, "class", m =
|
|
1180
|
+
), P(e, "class", "input-group svelte-1r7dvt7"), P(t, "tabindex", "0"), P(t, "class", m = sa(
|
|
1181
1181
|
/*className*/
|
|
1182
1182
|
r[2]
|
|
1183
1183
|
) + " svelte-1r7dvt7"), on(
|
|
@@ -1189,7 +1189,7 @@ function ic(r) {
|
|
|
1189
1189
|
);
|
|
1190
1190
|
},
|
|
1191
1191
|
m(R, Y) {
|
|
1192
|
-
Dt(R, t, Y), nt(t, e), nt(e, n), ur(i, n, null), nt(e, o), nt(e, s), r[
|
|
1192
|
+
Dt(R, t, Y), nt(t, e), nt(e, n), ur(i, n, null), nt(e, o), nt(e, s), r[52](s), aa(
|
|
1193
1193
|
s,
|
|
1194
1194
|
/*searchValue*/
|
|
1195
1195
|
r[1]
|
|
@@ -1198,25 +1198,25 @@ function ic(r) {
|
|
|
1198
1198
|
n,
|
|
1199
1199
|
"click",
|
|
1200
1200
|
/*click_handler*/
|
|
1201
|
-
r[
|
|
1201
|
+
r[51]
|
|
1202
1202
|
),
|
|
1203
1203
|
Ce(
|
|
1204
1204
|
s,
|
|
1205
1205
|
"input",
|
|
1206
1206
|
/*input_1_input_handler*/
|
|
1207
|
-
r[
|
|
1207
|
+
r[53]
|
|
1208
1208
|
),
|
|
1209
1209
|
Ce(
|
|
1210
1210
|
s,
|
|
1211
1211
|
"focus",
|
|
1212
1212
|
/*focus_handler*/
|
|
1213
|
-
r[
|
|
1213
|
+
r[54]
|
|
1214
1214
|
),
|
|
1215
1215
|
Ce(
|
|
1216
1216
|
s,
|
|
1217
1217
|
"blur",
|
|
1218
1218
|
/*blur_handler*/
|
|
1219
|
-
r[
|
|
1219
|
+
r[55]
|
|
1220
1220
|
),
|
|
1221
1221
|
Ce(
|
|
1222
1222
|
s,
|
|
@@ -1228,15 +1228,15 @@ function ic(r) {
|
|
|
1228
1228
|
s,
|
|
1229
1229
|
"input",
|
|
1230
1230
|
/*input_handler*/
|
|
1231
|
-
r[
|
|
1231
|
+
r[56]
|
|
1232
1232
|
),
|
|
1233
1233
|
Ce(
|
|
1234
1234
|
l,
|
|
1235
1235
|
"click",
|
|
1236
1236
|
/*click_handler_1*/
|
|
1237
|
-
r[
|
|
1237
|
+
r[57]
|
|
1238
1238
|
),
|
|
1239
|
-
Ce(t, "submit",
|
|
1239
|
+
Ce(t, "submit", Nl(
|
|
1240
1240
|
/*handleOnSubmit*/
|
|
1241
1241
|
r[18]
|
|
1242
1242
|
))
|
|
@@ -1257,7 +1257,7 @@ function ic(r) {
|
|
|
1257
1257
|
R[8]
|
|
1258
1258
|
), Y[0] & /*searchValue*/
|
|
1259
1259
|
2 && s.value !== /*searchValue*/
|
|
1260
|
-
R[1] &&
|
|
1260
|
+
R[1] && aa(
|
|
1261
1261
|
s,
|
|
1262
1262
|
/*searchValue*/
|
|
1263
1263
|
R[1]
|
|
@@ -1269,7 +1269,7 @@ function ic(r) {
|
|
|
1269
1269
|
R[3]
|
|
1270
1270
|
), /*abortController*/
|
|
1271
1271
|
R[17] ? N ? Y[0] & /*abortController*/
|
|
1272
|
-
131072 && Gt(N, 1) : (N =
|
|
1272
|
+
131072 && Gt(N, 1) : (N = ha(), N.c(), Gt(N, 1), N.m(u, null)) : N && (Mo(), le(N, 1, 1, () => {
|
|
1273
1273
|
N = null;
|
|
1274
1274
|
}), Ao()), (!E || Y[0] & /*searchValue*/
|
|
1275
1275
|
2) && on(
|
|
@@ -1279,24 +1279,24 @@ function ic(r) {
|
|
|
1279
1279
|
R[1] !== ""
|
|
1280
1280
|
), /*enableReverse*/
|
|
1281
1281
|
R[5] === !0 ? S ? (S.p(R, Y), Y[0] & /*enableReverse*/
|
|
1282
|
-
32 && Gt(S, 1)) : (S =
|
|
1282
|
+
32 && Gt(S, 1)) : (S = ga(R), S.c(), Gt(S, 1), S.m(e, g)) : S && (Mo(), le(S, 1, 1, () => {
|
|
1283
1283
|
S = null;
|
|
1284
1284
|
}), Ao()), A && A.p && (!E || Y[1] & /*$$scope*/
|
|
1285
|
-
|
|
1285
|
+
262144) && El(
|
|
1286
1286
|
A,
|
|
1287
1287
|
T,
|
|
1288
1288
|
R,
|
|
1289
1289
|
/*$$scope*/
|
|
1290
|
-
R[
|
|
1291
|
-
E ?
|
|
1290
|
+
R[49],
|
|
1291
|
+
E ? _l(
|
|
1292
1292
|
T,
|
|
1293
1293
|
/*$$scope*/
|
|
1294
|
-
R[
|
|
1294
|
+
R[49],
|
|
1295
1295
|
Y,
|
|
1296
1296
|
null
|
|
1297
|
-
) :
|
|
1297
|
+
) : Il(
|
|
1298
1298
|
/*$$scope*/
|
|
1299
|
-
R[
|
|
1299
|
+
R[49]
|
|
1300
1300
|
),
|
|
1301
1301
|
null
|
|
1302
1302
|
);
|
|
@@ -1304,7 +1304,7 @@ function ic(r) {
|
|
|
1304
1304
|
v = X(R), v === D ? ~v && F[v].p(R, Y) : (d && (Mo(), le(F[D], 1, 1, () => {
|
|
1305
1305
|
F[D] = null;
|
|
1306
1306
|
}), Ao()), ~v ? (d = F[v], d ? d.p(R, Y) : (d = F[v] = L[v](R), d.c()), Gt(d, 1), d.m(t, null)) : d = null), (!E || Y[0] & /*className*/
|
|
1307
|
-
4 && m !== (m =
|
|
1307
|
+
4 && m !== (m = sa(
|
|
1308
1308
|
/*className*/
|
|
1309
1309
|
R[2]
|
|
1310
1310
|
) + " svelte-1r7dvt7")) && P(t, "class", m), (!E || Y[0] & /*className, collapsed, searchValue*/
|
|
@@ -1323,20 +1323,20 @@ function ic(r) {
|
|
|
1323
1323
|
le(i.$$.fragment, R), le(c.$$.fragment, R), le(N), le(S), le(A, R), le(d), E = !1;
|
|
1324
1324
|
},
|
|
1325
1325
|
d(R) {
|
|
1326
|
-
R && Tt(t), lr(i), r[
|
|
1326
|
+
R && Tt(t), lr(i), r[52](null), lr(c), N && N.d(), S && S.d(), A && A.d(R), ~v && F[v].d(), C = !1, _r(w);
|
|
1327
1327
|
}
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function ic(r, t, e) {
|
|
1331
1331
|
const n = t[1], i = t[0], o = n - i;
|
|
1332
1332
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function da(r) {
|
|
1335
1335
|
let t = [...r];
|
|
1336
1336
|
return t[2] < t[0] && (t[2] += 360), t;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
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: v = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: w = void 0 } = t, { mapController: N = void 0 } = t, { minLength: S = 2 } = t, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: L = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity:
|
|
1338
|
+
function oc(r, t, e) {
|
|
1339
|
+
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: v = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: w = void 0 } = t, { mapController: N = void 0 } = t, { minLength: S = 2 } = t, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: L = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: D = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: at = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ge = {} } = t;
|
|
1340
1340
|
function ir() {
|
|
1341
1341
|
kn.focus();
|
|
1342
1342
|
}
|
|
@@ -1344,43 +1344,43 @@ function sc(r, t, e) {
|
|
|
1344
1344
|
kn.blur();
|
|
1345
1345
|
}
|
|
1346
1346
|
function Wr(x, Bt = !0) {
|
|
1347
|
-
e(1, R = x), Bt ? (e(13, kt = -1),
|
|
1347
|
+
e(1, R = x), Bt ? (e(13, kt = -1), na()) : (fs(), setTimeout(() => {
|
|
1348
1348
|
kn.focus(), kn.select();
|
|
1349
1349
|
}));
|
|
1350
1350
|
}
|
|
1351
|
-
let Ve = !1,
|
|
1352
|
-
const Er =
|
|
1353
|
-
|
|
1351
|
+
let Ve = !1, lt, _e, ft, ea = "", kn, kt = -1, Bn, xo = [], Hr, di, So;
|
|
1352
|
+
const Er = Ll();
|
|
1353
|
+
wl(() => {
|
|
1354
1354
|
N && (N.setEventHandler(void 0), N.indicateReverse(!1), N.setSelectedMarker(-1), N.setMarkers(void 0, void 0));
|
|
1355
1355
|
});
|
|
1356
|
-
function
|
|
1357
|
-
if (di && (clearTimeout(di), di = void 0), kt > -1 &&
|
|
1358
|
-
e(47,
|
|
1356
|
+
function na(x) {
|
|
1357
|
+
if (di && (clearTimeout(di), di = void 0), kt > -1 && lt)
|
|
1358
|
+
e(47, ft = lt[kt]), e(1, R = ft.place_name.replace(/,.*/, "")), e(16, Bn = void 0), e(46, _e = void 0), e(13, kt = -1);
|
|
1359
1359
|
else if (R) {
|
|
1360
|
-
const Bt = x || !
|
|
1361
|
-
|
|
1362
|
-
e(46, _e =
|
|
1360
|
+
const Bt = x || !ra();
|
|
1361
|
+
cs(R, { exact: !0 }).then(() => {
|
|
1362
|
+
e(46, _e = lt), e(47, ft = void 0), Bt && $u();
|
|
1363
1363
|
}).catch((Gn) => e(16, Bn = Gn));
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function ra() {
|
|
1367
1367
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(R);
|
|
1368
1368
|
}
|
|
1369
|
-
async function
|
|
1369
|
+
async function cs(x, { byId: Bt = !1, exact: Gn = !1 } = {}) {
|
|
1370
1370
|
e(16, Bn = void 0);
|
|
1371
|
-
const vi =
|
|
1371
|
+
const vi = ra(), ze = new URLSearchParams();
|
|
1372
1372
|
C != null && ze.set("language", Array.isArray(C) ? C.join(",") : C), dt && ze.set("types", dt.join(",")), vi || (u && ze.set("bbox", u.map((Ir) => Ir.toFixed(6)).join(",")), h && ze.set("country", Array.isArray(h) ? h.join(",") : h)), Bt || (L && ze.set("proximity", L.map((Ir) => Ir.toFixed(6)).join(",")), (Gn || !W) && ze.set("autocomplete", "false"), ze.set("fuzzyMatch", String(E))), w !== void 0 && (!vi || (dt == null ? void 0 : dt.length) === 1) && ze.set("limit", String(w)), ze.set("key", a);
|
|
1373
1373
|
const jr = rr + "/" + encodeURIComponent(x) + ".json?" + ze.toString();
|
|
1374
|
-
if (jr ===
|
|
1375
|
-
Bt ? (e(12,
|
|
1374
|
+
if (jr === ea) {
|
|
1375
|
+
Bt ? (e(12, lt = void 0), e(47, ft = xo[0])) : e(12, lt = xo);
|
|
1376
1376
|
return;
|
|
1377
1377
|
}
|
|
1378
|
-
|
|
1378
|
+
ea = jr, Hr == null || Hr.abort();
|
|
1379
1379
|
const Ee = new AbortController();
|
|
1380
1380
|
e(17, Hr = Ee);
|
|
1381
|
-
let
|
|
1381
|
+
let gs;
|
|
1382
1382
|
try {
|
|
1383
|
-
|
|
1383
|
+
gs = await fetch(jr, { signal: Ee.signal, ...Ge }).finally(() => {
|
|
1384
1384
|
Ee === Hr && e(17, Hr = void 0);
|
|
1385
1385
|
});
|
|
1386
1386
|
} catch (Ir) {
|
|
@@ -1388,93 +1388,93 @@ function sc(r, t, e) {
|
|
|
1388
1388
|
return;
|
|
1389
1389
|
throw new Error();
|
|
1390
1390
|
}
|
|
1391
|
-
if (!
|
|
1391
|
+
if (!gs.ok)
|
|
1392
1392
|
throw new Error();
|
|
1393
|
-
const
|
|
1394
|
-
Er("response", { url: jr, featureCollection:
|
|
1393
|
+
const ps = await gs.json();
|
|
1394
|
+
Er("response", { url: jr, featureCollection: ps }), Bt ? (e(12, lt = void 0), e(47, ft = ps.features[0]), xo = [ft]) : (e(12, lt = ps.features.filter(d)), xo = lt, vi && kn.focus());
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function $u() {
|
|
1397
1397
|
var Gn, vi, ze, jr;
|
|
1398
1398
|
if (!(_e != null && _e.length) || !m)
|
|
1399
1399
|
return;
|
|
1400
1400
|
const x = [180, 90, -180, -90], Bt = !_e.some((Ee) => !Ee.matching_text);
|
|
1401
1401
|
for (const Ee of _e)
|
|
1402
1402
|
(Bt || !Ee.matching_text) && (x[0] = Math.min(x[0], ((Gn = Ee.bbox) == null ? void 0 : Gn[0]) ?? Ee.center[0]), x[1] = Math.min(x[1], ((vi = Ee.bbox) == null ? void 0 : vi[1]) ?? Ee.center[1]), x[2] = Math.max(x[2], ((ze = Ee.bbox) == null ? void 0 : ze[2]) ?? Ee.center[0]), x[3] = Math.max(x[3], ((jr = Ee.bbox) == null ? void 0 : jr[3]) ?? Ee.center[1]));
|
|
1403
|
-
N && _e.length > 0 && (
|
|
1403
|
+
N && _e.length > 0 && (ft && x[0] === x[2] && x[1] === x[3] ? N.flyTo(ft.center, Ht) : N.fitBounds(da(x), 50, Jt));
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1406
|
-
e(0, F = p === "always"), Wr(
|
|
1405
|
+
function tl(x) {
|
|
1406
|
+
e(0, F = p === "always"), Wr(ic(x[0], [-180, 180], !0).toFixed(6) + "," + x[1].toFixed(6));
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (!
|
|
1408
|
+
function el(x) {
|
|
1409
|
+
if (!lt)
|
|
1410
1410
|
return;
|
|
1411
1411
|
let Bt = x.key === "ArrowDown" ? 1 : x.key === "ArrowUp" ? -1 : 0;
|
|
1412
|
-
Bt ? (kt === -1 && Bt === -1 && e(13, kt =
|
|
1412
|
+
Bt ? (kt === -1 && Bt === -1 && e(13, kt = lt.length), e(13, kt += Bt), kt >= lt.length && e(13, kt = -1), x.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(x.key) && e(13, kt = -1);
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function fs(x = !0) {
|
|
1415
1415
|
if (e(16, Bn = void 0), W) {
|
|
1416
1416
|
if (di && clearTimeout(di), R.length < S)
|
|
1417
1417
|
return;
|
|
1418
1418
|
const Bt = R;
|
|
1419
1419
|
di = window.setTimeout(
|
|
1420
1420
|
() => {
|
|
1421
|
-
|
|
1421
|
+
cs(Bt).catch((Gn) => e(16, Bn = Gn));
|
|
1422
1422
|
},
|
|
1423
1423
|
x ? g : 0
|
|
1424
1424
|
);
|
|
1425
1425
|
} else
|
|
1426
|
-
e(12,
|
|
1426
|
+
e(12, lt = void 0), e(16, Bn = void 0);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1429
|
-
e(47,
|
|
1428
|
+
function hs(x) {
|
|
1429
|
+
e(47, ft = x), e(1, R = x.place_name), e(13, kt = -1);
|
|
1430
1430
|
}
|
|
1431
|
-
const
|
|
1432
|
-
function
|
|
1433
|
-
|
|
1431
|
+
const nl = () => kn.focus();
|
|
1432
|
+
function rl(x) {
|
|
1433
|
+
Is[x ? "unshift" : "push"](() => {
|
|
1434
1434
|
kn = x, e(15, kn);
|
|
1435
1435
|
});
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function il() {
|
|
1438
1438
|
R = this.value, e(1, R), e(11, Ve), e(25, c);
|
|
1439
1439
|
}
|
|
1440
|
-
const
|
|
1440
|
+
const ol = () => e(11, Ve = !0), sl = () => e(11, Ve = !1), al = () => fs(), ul = () => {
|
|
1441
1441
|
e(1, R = ""), kn.focus();
|
|
1442
|
-
},
|
|
1442
|
+
}, ll = () => e(0, F = !F), cl = () => e(16, Bn = void 0), fl = (x) => e(13, kt = x), hl = (x) => hs(x), gl = () => e(13, kt = -1), pl = () => {
|
|
1443
1443
|
};
|
|
1444
1444
|
return r.$$set = (x) => {
|
|
1445
|
-
"class" in x && e(2, s = x.class), "apiKey" in x && e(23, a = x.apiKey), "bbox" in x && e(24, u = x.bbox), "clearButtonTitle" in x && e(3, l = x.clearButtonTitle), "clearOnBlur" in x && e(25, c = x.clearOnBlur), "collapsed" in x && e(4, f = x.collapsed), "country" in x && e(26, h = x.country), "debounceSearch" in x && e(27, g = x.debounceSearch), "enableReverse" in x && e(5, p = x.enableReverse), "errorMessage" in x && e(6, v = x.errorMessage), "filter" in x && e(28, d = x.filter), "flyTo" in x && e(29, m = x.flyTo), "fuzzyMatch" in x && e(30, E = x.fuzzyMatch), "language" in x && e(31, C = x.language), "limit" in x && e(32, w = x.limit), "mapController" in x && e(33, N = x.mapController), "minLength" in x && e(34, S = x.minLength), "noResultsMessage" in x && e(7, T = x.noResultsMessage), "placeholder" in x && e(8, A = x.placeholder), "proximity" in x && e(22, L = x.proximity), "reverseActive" in x && e(0, F = x.reverseActive), "reverseButtonTitle" in x && e(9, X = x.reverseButtonTitle), "searchValue" in x && e(1, R = x.searchValue), "showFullGeometry" in x && e(35, Y = x.showFullGeometry), "showPlaceType" in x && e(10, D = x.showPlaceType), "showResultsWhileTyping" in x && e(36, W = x.showResultsWhileTyping), "trackProximity" in x && e(37,
|
|
1445
|
+
"class" in x && e(2, s = x.class), "apiKey" in x && e(23, a = x.apiKey), "bbox" in x && e(24, u = x.bbox), "clearButtonTitle" in x && e(3, l = x.clearButtonTitle), "clearOnBlur" in x && e(25, c = x.clearOnBlur), "collapsed" in x && e(4, f = x.collapsed), "country" in x && e(26, h = x.country), "debounceSearch" in x && e(27, g = x.debounceSearch), "enableReverse" in x && e(5, p = x.enableReverse), "errorMessage" in x && e(6, v = x.errorMessage), "filter" in x && e(28, d = x.filter), "flyTo" in x && e(29, m = x.flyTo), "fuzzyMatch" in x && e(30, E = x.fuzzyMatch), "language" in x && e(31, C = x.language), "limit" in x && e(32, w = x.limit), "mapController" in x && e(33, N = x.mapController), "minLength" in x && e(34, S = x.minLength), "noResultsMessage" in x && e(7, T = x.noResultsMessage), "placeholder" in x && e(8, A = x.placeholder), "proximity" in x && e(22, L = x.proximity), "reverseActive" in x && e(0, F = x.reverseActive), "reverseButtonTitle" in x && e(9, X = x.reverseButtonTitle), "searchValue" in x && e(1, R = x.searchValue), "showFullGeometry" in x && e(35, Y = x.showFullGeometry), "showPlaceType" in x && e(10, D = x.showPlaceType), "showResultsWhileTyping" in x && e(36, W = x.showResultsWhileTyping), "trackProximity" in x && e(37, at = x.trackProximity), "types" in x && e(38, dt = x.types), "zoom" in x && e(39, Ht = x.zoom), "maxZoom" in x && e(40, Jt = x.maxZoom), "apiUrl" in x && e(41, rr = x.apiUrl), "fetchParameters" in x && e(42, Ge = x.fetchParameters), "$$scope" in x && e(49, o = x.$$scope);
|
|
1446
1446
|
}, r.$$.update = () => {
|
|
1447
1447
|
if (r.$$.dirty[1] & /*trackProximity*/
|
|
1448
|
-
64 && (
|
|
1448
|
+
64 && (at || e(22, L = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
1449
1449
|
33556480 && setTimeout(() => {
|
|
1450
1450
|
e(14, So = Ve), c && !Ve && e(1, R = "");
|
|
1451
1451
|
}), r.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1452
1452
|
4098 | r.$$.dirty[1] & /*minLength*/
|
|
1453
|
-
8 && R.length < S && (e(47,
|
|
1454
|
-
65552 && Y &&
|
|
1455
|
-
536870912 | r.$$.dirty[1] & /*mapController, picked,
|
|
1456
|
-
|
|
1453
|
+
8 && R.length < S && (e(47, ft = void 0), e(12, lt = void 0), e(16, Bn = void 0), e(46, _e = lt)), r.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1454
|
+
65552 && Y && ft && !ft.address && ft.geometry.type === "Point" && cs(ft.id, { byId: !0 }).catch((x) => e(16, Bn = x)), r.$$.dirty[0] & /*flyTo*/
|
|
1455
|
+
536870912 | r.$$.dirty[1] & /*mapController, picked, maxZoom, zoom*/
|
|
1456
|
+
66308 && N && ft && m && (!ft.bbox || ft.bbox[0] === ft.bbox[2] && ft.bbox[1] === ft.bbox[3] ? N.flyTo(ft.center, ft.id.startsWith("poi.") || ft.id.startsWith("address.") ? Jt : Ht) : N.fitBounds(da(ft.bbox), 50, Jt), e(12, lt = void 0), e(46, _e = void 0), e(13, kt = -1)), r.$$.dirty[0] & /*listFeatures*/
|
|
1457
1457
|
4096 | r.$$.dirty[1] & /*markedFeatures*/
|
|
1458
|
-
32768 && _e !==
|
|
1459
|
-
98308 && N && N.setMarkers(_e,
|
|
1458
|
+
32768 && _e !== lt && e(46, _e = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1459
|
+
98308 && N && N.setMarkers(_e, ft), r.$$.dirty[0] & /*searchValue*/
|
|
1460
1460
|
2 && e(13, kt = -1), r.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1461
1461
|
20481 | r.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1462
1462
|
68 && N && N.setEventHandler((x) => {
|
|
1463
1463
|
switch (x.type) {
|
|
1464
1464
|
case "mapClick":
|
|
1465
|
-
F &&
|
|
1465
|
+
F && tl(x.coordinates);
|
|
1466
1466
|
break;
|
|
1467
1467
|
case "proximityChange":
|
|
1468
|
-
e(22, L =
|
|
1468
|
+
e(22, L = at ? x.proximity : void 0);
|
|
1469
1469
|
break;
|
|
1470
1470
|
case "markerClick":
|
|
1471
1471
|
{
|
|
1472
|
-
const Bt =
|
|
1473
|
-
Bt &&
|
|
1472
|
+
const Bt = lt == null ? void 0 : lt.find((Gn) => Gn.id === x.id);
|
|
1473
|
+
Bt && hs(Bt);
|
|
1474
1474
|
}
|
|
1475
1475
|
break;
|
|
1476
1476
|
case "markerMouseEnter":
|
|
1477
|
-
e(13, kt = So ? (
|
|
1477
|
+
e(13, kt = So ? (lt == null ? void 0 : lt.findIndex((Bt) => Bt.id === x.id)) ?? -1 : -1);
|
|
1478
1478
|
break;
|
|
1479
1479
|
case "markerMouseLeave":
|
|
1480
1480
|
e(13, kt = -1);
|
|
@@ -1483,17 +1483,17 @@ function sc(r, t, e) {
|
|
|
1483
1483
|
}), r.$$.dirty[0] & /*selectedItemIndex*/
|
|
1484
1484
|
8192 | r.$$.dirty[1] & /*mapController*/
|
|
1485
1485
|
4 && (N == null || N.setSelectedMarker(kt)), r.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1486
|
-
12288 && e(
|
|
1486
|
+
12288 && e(48, n = lt == null ? void 0 : lt[kt]), r.$$.dirty[0] & /*searchValue*/
|
|
1487
1487
|
2 | r.$$.dirty[1] & /*mapController*/
|
|
1488
1488
|
4) {
|
|
1489
1489
|
const x = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);
|
|
1490
1490
|
N == null || N.setReverseMarker(x ? [Number(x[1]), Number(x[2])] : void 0);
|
|
1491
1491
|
}
|
|
1492
1492
|
r.$$.dirty[1] & /*selected*/
|
|
1493
|
-
|
|
1494
|
-
65536 && Er("pick",
|
|
1495
|
-
20480 && Er("optionsVisibilityChange", So && !!
|
|
1496
|
-
4096 && Er("featuresListed",
|
|
1493
|
+
131072 && Er("select", n), r.$$.dirty[1] & /*picked*/
|
|
1494
|
+
65536 && Er("pick", ft), r.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1495
|
+
20480 && Er("optionsVisibilityChange", So && !!lt), r.$$.dirty[0] & /*listFeatures*/
|
|
1496
|
+
4096 && Er("featuresListed", lt), r.$$.dirty[1] & /*markedFeatures*/
|
|
1497
1497
|
32768 && Er("featuresMarked", _e), r.$$.dirty[0] & /*reverseActive*/
|
|
1498
1498
|
1 && Er("reverseToggle", F), r.$$.dirty[0] & /*searchValue*/
|
|
1499
1499
|
2 && Er("queryChange", R), r.$$.dirty[0] & /*reverseActive*/
|
|
@@ -1512,16 +1512,16 @@ function sc(r, t, e) {
|
|
|
1512
1512
|
X,
|
|
1513
1513
|
D,
|
|
1514
1514
|
Ve,
|
|
1515
|
-
|
|
1515
|
+
lt,
|
|
1516
1516
|
kt,
|
|
1517
1517
|
So,
|
|
1518
1518
|
kn,
|
|
1519
1519
|
Bn,
|
|
1520
1520
|
Hr,
|
|
1521
|
-
|
|
1522
|
-
|
|
1521
|
+
na,
|
|
1522
|
+
el,
|
|
1523
|
+
fs,
|
|
1523
1524
|
hs,
|
|
1524
|
-
gs,
|
|
1525
1525
|
L,
|
|
1526
1526
|
a,
|
|
1527
1527
|
u,
|
|
@@ -1537,7 +1537,7 @@ function sc(r, t, e) {
|
|
|
1537
1537
|
S,
|
|
1538
1538
|
Y,
|
|
1539
1539
|
W,
|
|
1540
|
-
|
|
1540
|
+
at,
|
|
1541
1541
|
dt,
|
|
1542
1542
|
Ht,
|
|
1543
1543
|
Jt,
|
|
@@ -1547,11 +1547,11 @@ function sc(r, t, e) {
|
|
|
1547
1547
|
In,
|
|
1548
1548
|
Wr,
|
|
1549
1549
|
_e,
|
|
1550
|
-
|
|
1551
|
-
cs,
|
|
1550
|
+
ft,
|
|
1552
1551
|
n,
|
|
1553
1552
|
o,
|
|
1554
1553
|
i,
|
|
1554
|
+
nl,
|
|
1555
1555
|
rl,
|
|
1556
1556
|
il,
|
|
1557
1557
|
ol,
|
|
@@ -1563,17 +1563,16 @@ function sc(r, t, e) {
|
|
|
1563
1563
|
fl,
|
|
1564
1564
|
hl,
|
|
1565
1565
|
gl,
|
|
1566
|
-
pl
|
|
1567
|
-
dl
|
|
1566
|
+
pl
|
|
1568
1567
|
];
|
|
1569
1568
|
}
|
|
1570
|
-
let
|
|
1569
|
+
let sc = class extends qr {
|
|
1571
1570
|
constructor(t) {
|
|
1572
1571
|
super(), Ur(
|
|
1573
1572
|
this,
|
|
1574
1573
|
t,
|
|
1575
|
-
|
|
1576
|
-
|
|
1574
|
+
oc,
|
|
1575
|
+
rc,
|
|
1577
1576
|
zr,
|
|
1578
1577
|
{
|
|
1579
1578
|
class: 2,
|
|
@@ -1648,7 +1647,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
1648
1647
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
1649
1648
|
and limitations under the License.
|
|
1650
1649
|
***************************************************************************** */
|
|
1651
|
-
function
|
|
1650
|
+
function ac(r, t) {
|
|
1652
1651
|
var e = { label: 0, sent: function() {
|
|
1653
1652
|
if (o[0] & 1)
|
|
1654
1653
|
throw o[1];
|
|
@@ -1722,7 +1721,7 @@ var Or = (
|
|
|
1722
1721
|
return r;
|
|
1723
1722
|
}()
|
|
1724
1723
|
);
|
|
1725
|
-
function
|
|
1724
|
+
function uc(r, t) {
|
|
1726
1725
|
return r > t ? 1 : r < t ? -1 : 0;
|
|
1727
1726
|
}
|
|
1728
1727
|
function xr(r, t, e) {
|
|
@@ -1751,7 +1750,7 @@ function xr(r, t, e) {
|
|
|
1751
1750
|
}
|
|
1752
1751
|
return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
|
|
1753
1752
|
}
|
|
1754
|
-
function
|
|
1753
|
+
function ys(r, t, e, n) {
|
|
1755
1754
|
var i = new Or(r, t);
|
|
1756
1755
|
if (e === null)
|
|
1757
1756
|
return i.left = i.right = null, i;
|
|
@@ -1759,7 +1758,7 @@ function ms(r, t, e, n) {
|
|
|
1759
1758
|
var o = n(r, e.key);
|
|
1760
1759
|
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;
|
|
1761
1760
|
}
|
|
1762
|
-
function
|
|
1761
|
+
function va(r, t, e) {
|
|
1763
1762
|
var n = null, i = null;
|
|
1764
1763
|
if (t) {
|
|
1765
1764
|
t = xr(r, t, e);
|
|
@@ -1768,25 +1767,25 @@ function ya(r, t, e) {
|
|
|
1768
1767
|
}
|
|
1769
1768
|
return { left: n, right: i };
|
|
1770
1769
|
}
|
|
1771
|
-
function
|
|
1770
|
+
function lc(r, t, e) {
|
|
1772
1771
|
return t === null ? r : (r === null || (t = xr(r.key, t, e), t.left = r), t);
|
|
1773
1772
|
}
|
|
1774
|
-
function
|
|
1773
|
+
function xs(r, t, e, n, i) {
|
|
1775
1774
|
if (r) {
|
|
1776
1775
|
n("" + t + (e ? "└── " : "├── ") + i(r) + `
|
|
1777
1776
|
`);
|
|
1778
1777
|
var o = t + (e ? " " : "│ ");
|
|
1779
|
-
r.left &&
|
|
1778
|
+
r.left && xs(r.left, o, !1, n, i), r.right && xs(r.right, o, !0, n, i);
|
|
1780
1779
|
}
|
|
1781
1780
|
}
|
|
1782
|
-
var
|
|
1781
|
+
var Bs = (
|
|
1783
1782
|
/** @class */
|
|
1784
1783
|
function() {
|
|
1785
1784
|
function r(t) {
|
|
1786
|
-
t === void 0 && (t =
|
|
1785
|
+
t === void 0 && (t = uc), this._root = null, this._size = 0, this._comparator = t;
|
|
1787
1786
|
}
|
|
1788
1787
|
return r.prototype.insert = function(t, e) {
|
|
1789
|
-
return this._size++, this._root =
|
|
1788
|
+
return this._size++, this._root = ys(t, e, this._root, this._comparator);
|
|
1790
1789
|
}, r.prototype.add = function(t, e) {
|
|
1791
1790
|
var n = new Or(t, e);
|
|
1792
1791
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
@@ -1911,15 +1910,15 @@ var Gs = (
|
|
|
1911
1910
|
}, r.prototype.clear = function() {
|
|
1912
1911
|
return this._root = null, this._size = 0, this;
|
|
1913
1912
|
}, r.prototype.toList = function() {
|
|
1914
|
-
return
|
|
1913
|
+
return fc(this._root);
|
|
1915
1914
|
}, r.prototype.load = function(t, e, n) {
|
|
1916
1915
|
e === void 0 && (e = []), n === void 0 && (n = !1);
|
|
1917
1916
|
var i = t.length, o = this._comparator;
|
|
1918
|
-
if (n &&
|
|
1919
|
-
this._root =
|
|
1917
|
+
if (n && Ls(t, e, 0, i - 1, o), this._root === null)
|
|
1918
|
+
this._root = Ss(t, e, 0, i), this._size = i;
|
|
1920
1919
|
else {
|
|
1921
|
-
var s =
|
|
1922
|
-
i = this._size + i, this._root =
|
|
1920
|
+
var s = hc(this.toList(), cc(t, e), o);
|
|
1921
|
+
i = this._size + i, this._root = ws({ head: s }, 0, i);
|
|
1923
1922
|
}
|
|
1924
1923
|
return this;
|
|
1925
1924
|
}, r.prototype.isEmpty = function() {
|
|
@@ -1941,17 +1940,17 @@ var Gs = (
|
|
|
1941
1940
|
return String(n.key);
|
|
1942
1941
|
});
|
|
1943
1942
|
var e = [];
|
|
1944
|
-
return
|
|
1943
|
+
return xs(this._root, "", !0, function(n) {
|
|
1945
1944
|
return e.push(n);
|
|
1946
1945
|
}, t), e.join("");
|
|
1947
1946
|
}, r.prototype.update = function(t, e, n) {
|
|
1948
|
-
var i = this._comparator, o =
|
|
1949
|
-
i(t, e) < 0 ? a =
|
|
1947
|
+
var i = this._comparator, o = va(t, this._root, i), s = o.left, a = o.right;
|
|
1948
|
+
i(t, e) < 0 ? a = ys(e, n, a, i) : s = ys(e, n, s, i), this._root = lc(s, a, i);
|
|
1950
1949
|
}, r.prototype.split = function(t) {
|
|
1951
|
-
return
|
|
1950
|
+
return va(t, this._root, this._comparator);
|
|
1952
1951
|
}, r.prototype[Symbol.iterator] = function() {
|
|
1953
1952
|
var t;
|
|
1954
|
-
return
|
|
1953
|
+
return ac(this, function(e) {
|
|
1955
1954
|
switch (e.label) {
|
|
1956
1955
|
case 0:
|
|
1957
1956
|
t = this.minNode(), e.label = 1;
|
|
@@ -1969,38 +1968,38 @@ var Gs = (
|
|
|
1969
1968
|
}, r;
|
|
1970
1969
|
}()
|
|
1971
1970
|
);
|
|
1972
|
-
function
|
|
1971
|
+
function Ss(r, t, e, n) {
|
|
1973
1972
|
var i = n - e;
|
|
1974
1973
|
if (i > 0) {
|
|
1975
1974
|
var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Or(s, a);
|
|
1976
|
-
return u.left =
|
|
1975
|
+
return u.left = Ss(r, t, e, o), u.right = Ss(r, t, o + 1, n), u;
|
|
1977
1976
|
}
|
|
1978
1977
|
return null;
|
|
1979
1978
|
}
|
|
1980
|
-
function
|
|
1979
|
+
function cc(r, t) {
|
|
1981
1980
|
for (var e = new Or(null, null), n = e, i = 0; i < r.length; i++)
|
|
1982
1981
|
n = n.next = new Or(r[i], t[i]);
|
|
1983
1982
|
return n.next = null, e.next;
|
|
1984
1983
|
}
|
|
1985
|
-
function
|
|
1984
|
+
function fc(r) {
|
|
1986
1985
|
for (var t = r, e = [], n = !1, i = new Or(null, null), o = i; !n; )
|
|
1987
1986
|
t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
|
|
1988
1987
|
return o.next = null, i.next;
|
|
1989
1988
|
}
|
|
1990
|
-
function
|
|
1989
|
+
function ws(r, t, e) {
|
|
1991
1990
|
var n = e - t;
|
|
1992
1991
|
if (n > 0) {
|
|
1993
|
-
var i = t + Math.floor(n / 2), o =
|
|
1994
|
-
return s.left = o, r.head = r.head.next, s.right =
|
|
1992
|
+
var i = t + Math.floor(n / 2), o = ws(r, t, i), s = r.head;
|
|
1993
|
+
return s.left = o, r.head = r.head.next, s.right = ws(r, i + 1, e), s;
|
|
1995
1994
|
}
|
|
1996
1995
|
return null;
|
|
1997
1996
|
}
|
|
1998
|
-
function
|
|
1997
|
+
function hc(r, t, e) {
|
|
1999
1998
|
for (var n = new Or(null, null), i = n, o = r, s = t; o !== null && s !== null; )
|
|
2000
1999
|
e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
|
|
2001
2000
|
return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
|
|
2002
2001
|
}
|
|
2003
|
-
function
|
|
2002
|
+
function Ls(r, t, e, n, i) {
|
|
2004
2003
|
if (!(e >= n)) {
|
|
2005
2004
|
for (var o = r[e + n >> 1], s = e - 1, a = n + 1; ; ) {
|
|
2006
2005
|
do
|
|
@@ -2014,25 +2013,25 @@ function bs(r, t, e, n, i) {
|
|
|
2014
2013
|
var u = r[s];
|
|
2015
2014
|
r[s] = r[a], r[a] = u, u = t[s], t[s] = t[a], t[a] = u;
|
|
2016
2015
|
}
|
|
2017
|
-
|
|
2016
|
+
Ls(r, t, e, a, i), Ls(r, t, a + 1, n, i);
|
|
2018
2017
|
}
|
|
2019
2018
|
}
|
|
2020
2019
|
function mn(r, t) {
|
|
2021
2020
|
if (!(r instanceof t))
|
|
2022
2021
|
throw new TypeError("Cannot call a class as a function");
|
|
2023
2022
|
}
|
|
2024
|
-
function
|
|
2023
|
+
function ya(r, t) {
|
|
2025
2024
|
for (var e = 0; e < t.length; e++) {
|
|
2026
2025
|
var n = t[e];
|
|
2027
2026
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
|
|
2028
2027
|
}
|
|
2029
2028
|
}
|
|
2030
2029
|
function Se(r, t, e) {
|
|
2031
|
-
return t &&
|
|
2030
|
+
return t && ya(r.prototype, t), e && ya(r, e), r;
|
|
2032
2031
|
}
|
|
2033
2032
|
var Hi = function(t, e) {
|
|
2034
2033
|
return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
|
|
2035
|
-
},
|
|
2034
|
+
}, bs = function(t, e) {
|
|
2036
2035
|
if (e.ur.x < t.ll.x || t.ur.x < e.ll.x || e.ur.y < t.ll.y || t.ur.y < e.ll.y)
|
|
2037
2036
|
return null;
|
|
2038
2037
|
var n = t.ll.x < e.ll.x ? e.ll.x : t.ll.x, i = t.ur.x < e.ur.x ? t.ur.x : e.ur.x, o = t.ll.y < e.ll.y ? e.ll.y : t.ll.y, s = t.ur.y < e.ur.y ? t.ur.y : e.ur.y;
|
|
@@ -2048,19 +2047,19 @@ var Hi = function(t, e) {
|
|
|
2048
2047
|
};
|
|
2049
2048
|
}, Sr = Number.EPSILON;
|
|
2050
2049
|
Sr === void 0 && (Sr = Math.pow(2, -52));
|
|
2051
|
-
var
|
|
2050
|
+
var gc = Sr * Sr, Ps = function(t, e) {
|
|
2052
2051
|
if (-Sr < t && t < Sr && -Sr < e && e < Sr)
|
|
2053
2052
|
return 0;
|
|
2054
2053
|
var n = t - e;
|
|
2055
|
-
return n * n <
|
|
2056
|
-
},
|
|
2054
|
+
return n * n < gc * t * e ? 0 : t < e ? -1 : 1;
|
|
2055
|
+
}, pc = /* @__PURE__ */ function() {
|
|
2057
2056
|
function r() {
|
|
2058
2057
|
mn(this, r), this.reset();
|
|
2059
2058
|
}
|
|
2060
2059
|
return Se(r, [{
|
|
2061
2060
|
key: "reset",
|
|
2062
2061
|
value: function() {
|
|
2063
|
-
this.xRounder = new
|
|
2062
|
+
this.xRounder = new ma(), this.yRounder = new ma();
|
|
2064
2063
|
}
|
|
2065
2064
|
}, {
|
|
2066
2065
|
key: "round",
|
|
@@ -2071,25 +2070,25 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2071
2070
|
};
|
|
2072
2071
|
}
|
|
2073
2072
|
}]), r;
|
|
2074
|
-
}(),
|
|
2073
|
+
}(), ma = /* @__PURE__ */ function() {
|
|
2075
2074
|
function r() {
|
|
2076
|
-
mn(this, r), this.tree = new
|
|
2075
|
+
mn(this, r), this.tree = new Bs(), this.round(0);
|
|
2077
2076
|
}
|
|
2078
2077
|
return Se(r, [{
|
|
2079
2078
|
key: "round",
|
|
2080
2079
|
value: function(e) {
|
|
2081
2080
|
var n = this.tree.add(e), i = this.tree.prev(n);
|
|
2082
|
-
if (i !== null &&
|
|
2081
|
+
if (i !== null && Ps(n.key, i.key) === 0)
|
|
2083
2082
|
return this.tree.remove(e), i.key;
|
|
2084
2083
|
var o = this.tree.next(n);
|
|
2085
|
-
return o !== null &&
|
|
2084
|
+
return o !== null && Ps(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
2086
2085
|
}
|
|
2087
2086
|
}]), r;
|
|
2088
|
-
}(), eo = new
|
|
2087
|
+
}(), eo = new pc(), Ji = function(t, e) {
|
|
2089
2088
|
return t.x * e.y - t.y * e.x;
|
|
2090
|
-
},
|
|
2089
|
+
}, iu = function(t, e) {
|
|
2091
2090
|
return t.x * e.x + t.y * e.y;
|
|
2092
|
-
},
|
|
2091
|
+
}, _a = function(t, e, n) {
|
|
2093
2092
|
var i = {
|
|
2094
2093
|
x: e.x - t.x,
|
|
2095
2094
|
y: e.y - t.y
|
|
@@ -2097,10 +2096,10 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2097
2096
|
x: n.x - t.x,
|
|
2098
2097
|
y: n.y - t.y
|
|
2099
2098
|
}, s = Ji(i, o);
|
|
2100
|
-
return
|
|
2099
|
+
return Ps(s, 0);
|
|
2101
2100
|
}, Bo = function(t) {
|
|
2102
|
-
return Math.sqrt(
|
|
2103
|
-
},
|
|
2101
|
+
return Math.sqrt(iu(t, t));
|
|
2102
|
+
}, dc = function(t, e, n) {
|
|
2104
2103
|
var i = {
|
|
2105
2104
|
x: e.x - t.x,
|
|
2106
2105
|
y: e.y - t.y
|
|
@@ -2109,7 +2108,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2109
2108
|
y: n.y - t.y
|
|
2110
2109
|
};
|
|
2111
2110
|
return Ji(o, i) / Bo(o) / Bo(i);
|
|
2112
|
-
},
|
|
2111
|
+
}, vc = function(t, e, n) {
|
|
2113
2112
|
var i = {
|
|
2114
2113
|
x: e.x - t.x,
|
|
2115
2114
|
y: e.y - t.y
|
|
@@ -2117,26 +2116,26 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2117
2116
|
x: n.x - t.x,
|
|
2118
2117
|
y: n.y - t.y
|
|
2119
2118
|
};
|
|
2120
|
-
return
|
|
2121
|
-
},
|
|
2119
|
+
return iu(o, i) / Bo(o) / Bo(i);
|
|
2120
|
+
}, Ea = function(t, e, n) {
|
|
2122
2121
|
return e.y === 0 ? null : {
|
|
2123
2122
|
x: t.x + e.x / e.y * (n - t.y),
|
|
2124
2123
|
y: n
|
|
2125
2124
|
};
|
|
2126
|
-
},
|
|
2125
|
+
}, Ia = function(t, e, n) {
|
|
2127
2126
|
return e.x === 0 ? null : {
|
|
2128
2127
|
x: n,
|
|
2129
2128
|
y: t.y + e.y / e.x * (n - t.x)
|
|
2130
2129
|
};
|
|
2131
|
-
},
|
|
2130
|
+
}, yc = function(t, e, n, i) {
|
|
2132
2131
|
if (e.x === 0)
|
|
2133
|
-
return
|
|
2132
|
+
return Ia(n, i, t.x);
|
|
2134
2133
|
if (i.x === 0)
|
|
2135
|
-
return
|
|
2134
|
+
return Ia(t, e, n.x);
|
|
2136
2135
|
if (e.y === 0)
|
|
2137
|
-
return
|
|
2136
|
+
return Ea(n, i, t.y);
|
|
2138
2137
|
if (i.y === 0)
|
|
2139
|
-
return
|
|
2138
|
+
return Ea(t, e, n.y);
|
|
2140
2139
|
var o = Ji(e, i);
|
|
2141
2140
|
if (o == 0)
|
|
2142
2141
|
return null;
|
|
@@ -2217,8 +2216,8 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2217
2216
|
var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
|
|
2218
2217
|
var u = a.otherSE;
|
|
2219
2218
|
i.set(a, {
|
|
2220
|
-
sine:
|
|
2221
|
-
cosine:
|
|
2219
|
+
sine: dc(n.point, e.point, u.point),
|
|
2220
|
+
cosine: vc(n.point, e.point, u.point)
|
|
2222
2221
|
});
|
|
2223
2222
|
};
|
|
2224
2223
|
return function(s, a) {
|
|
@@ -2228,7 +2227,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2228
2227
|
};
|
|
2229
2228
|
}
|
|
2230
2229
|
}]), r;
|
|
2231
|
-
}(),
|
|
2230
|
+
}(), mc = 0, Go = /* @__PURE__ */ function() {
|
|
2232
2231
|
Se(r, null, [{
|
|
2233
2232
|
key: "compare",
|
|
2234
2233
|
/* This compare() function is for ordering segments in the sweep
|
|
@@ -2304,7 +2303,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2304
2303
|
* and possibly will be later modified */
|
|
2305
2304
|
}]);
|
|
2306
2305
|
function r(t, e, n, i) {
|
|
2307
|
-
mn(this, r), this.id = ++
|
|
2306
|
+
mn(this, r), this.id = ++mc, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
|
|
2308
2307
|
}
|
|
2309
2308
|
return Se(r, [{
|
|
2310
2309
|
key: "replaceRightSE",
|
|
@@ -2386,7 +2385,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2386
2385
|
}, {
|
|
2387
2386
|
key: "getIntersection",
|
|
2388
2387
|
value: function(e) {
|
|
2389
|
-
var n = this.bbox(), i = e.bbox(), o =
|
|
2388
|
+
var n = this.bbox(), i = e.bbox(), o = bs(n, i);
|
|
2390
2389
|
if (o === null)
|
|
2391
2390
|
return null;
|
|
2392
2391
|
var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = Hi(n, u) && this.comparePoint(u) === 0, f = Hi(i, s) && e.comparePoint(s) === 0, h = Hi(n, l) && this.comparePoint(l) === 0, g = Hi(i, a) && e.comparePoint(a) === 0;
|
|
@@ -2402,7 +2401,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2402
2401
|
return a;
|
|
2403
2402
|
if (h)
|
|
2404
2403
|
return l;
|
|
2405
|
-
var p =
|
|
2404
|
+
var p = yc(s, this.vector(), u, e.vector());
|
|
2406
2405
|
return p === null || !Hi(o, p) ? null : eo.round(p.x, p.y);
|
|
2407
2406
|
}
|
|
2408
2407
|
/**
|
|
@@ -2567,7 +2566,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2567
2566
|
return new r(l, c, [i], [a]);
|
|
2568
2567
|
}
|
|
2569
2568
|
}]), r;
|
|
2570
|
-
}(),
|
|
2569
|
+
}(), Ca = /* @__PURE__ */ function() {
|
|
2571
2570
|
function r(t, e, n) {
|
|
2572
2571
|
if (mn(this, r), !Array.isArray(t) || t.length === 0)
|
|
2573
2572
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2602,11 +2601,11 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2602
2601
|
return e;
|
|
2603
2602
|
}
|
|
2604
2603
|
}]), r;
|
|
2605
|
-
}(),
|
|
2604
|
+
}(), _c = /* @__PURE__ */ function() {
|
|
2606
2605
|
function r(t, e) {
|
|
2607
2606
|
if (mn(this, r), !Array.isArray(t))
|
|
2608
2607
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
2609
|
-
this.exteriorRing = new
|
|
2608
|
+
this.exteriorRing = new Ca(t[0], this, !0), this.bbox = {
|
|
2610
2609
|
ll: {
|
|
2611
2610
|
x: this.exteriorRing.bbox.ll.x,
|
|
2612
2611
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -2617,7 +2616,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2617
2616
|
}
|
|
2618
2617
|
}, this.interiorRings = [];
|
|
2619
2618
|
for (var n = 1, i = t.length; n < i; n++) {
|
|
2620
|
-
var o = new
|
|
2619
|
+
var o = new Ca(t[n], this, !1);
|
|
2621
2620
|
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);
|
|
2622
2621
|
}
|
|
2623
2622
|
this.multiPoly = e;
|
|
@@ -2631,7 +2630,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2631
2630
|
return e;
|
|
2632
2631
|
}
|
|
2633
2632
|
}]), r;
|
|
2634
|
-
}(),
|
|
2633
|
+
}(), Na = /* @__PURE__ */ function() {
|
|
2635
2634
|
function r(t, e) {
|
|
2636
2635
|
if (mn(this, r), !Array.isArray(t))
|
|
2637
2636
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -2650,7 +2649,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2650
2649
|
}
|
|
2651
2650
|
};
|
|
2652
2651
|
for (var n = 0, i = t.length; n < i; n++) {
|
|
2653
|
-
var o = new
|
|
2652
|
+
var o = new _c(t[n], this);
|
|
2654
2653
|
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);
|
|
2655
2654
|
}
|
|
2656
2655
|
this.isSubject = e;
|
|
@@ -2664,7 +2663,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2664
2663
|
return e;
|
|
2665
2664
|
}
|
|
2666
2665
|
}]), r;
|
|
2667
|
-
}(),
|
|
2666
|
+
}(), Ec = /* @__PURE__ */ function() {
|
|
2668
2667
|
Se(r, null, [{
|
|
2669
2668
|
key: "factory",
|
|
2670
2669
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
@@ -2719,12 +2718,12 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2719
2718
|
value: function() {
|
|
2720
2719
|
for (var e = this.events[0].point, n = [e], i = 1, o = this.events.length - 1; i < o; i++) {
|
|
2721
2720
|
var s = this.events[i].point, a = this.events[i + 1].point;
|
|
2722
|
-
|
|
2721
|
+
_a(s, e, a) !== 0 && (n.push(s), e = s);
|
|
2723
2722
|
}
|
|
2724
2723
|
if (n.length === 1)
|
|
2725
2724
|
return null;
|
|
2726
2725
|
var u = n[0], l = n[1];
|
|
2727
|
-
|
|
2726
|
+
_a(u, e, l) === 0 && n.shift(), n.push(n[0]);
|
|
2728
2727
|
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)
|
|
2729
2728
|
g.push([n[p].x, n[p].y]);
|
|
2730
2729
|
return g;
|
|
@@ -2762,7 +2761,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2762
2761
|
}
|
|
2763
2762
|
}
|
|
2764
2763
|
}]), r;
|
|
2765
|
-
}(),
|
|
2764
|
+
}(), xa = /* @__PURE__ */ function() {
|
|
2766
2765
|
function r(t) {
|
|
2767
2766
|
mn(this, r), this.exteriorRing = t, t.poly = this, this.interiorRings = [];
|
|
2768
2767
|
}
|
|
@@ -2784,7 +2783,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2784
2783
|
return e;
|
|
2785
2784
|
}
|
|
2786
2785
|
}]), r;
|
|
2787
|
-
}(),
|
|
2786
|
+
}(), Ic = /* @__PURE__ */ function() {
|
|
2788
2787
|
function r(t) {
|
|
2789
2788
|
mn(this, r), this.rings = t, this.polys = this._composePolys(t);
|
|
2790
2789
|
}
|
|
@@ -2804,19 +2803,19 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2804
2803
|
var s = e[i];
|
|
2805
2804
|
if (!s.poly)
|
|
2806
2805
|
if (s.isExteriorRing())
|
|
2807
|
-
n.push(new
|
|
2806
|
+
n.push(new xa(s));
|
|
2808
2807
|
else {
|
|
2809
2808
|
var a = s.enclosingRing();
|
|
2810
|
-
a.poly || n.push(new
|
|
2809
|
+
a.poly || n.push(new xa(a)), a.poly.addInterior(s);
|
|
2811
2810
|
}
|
|
2812
2811
|
}
|
|
2813
2812
|
return n;
|
|
2814
2813
|
}
|
|
2815
2814
|
}]), r;
|
|
2816
|
-
}(),
|
|
2815
|
+
}(), Cc = /* @__PURE__ */ function() {
|
|
2817
2816
|
function r(t) {
|
|
2818
2817
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Go.compare;
|
|
2819
|
-
mn(this, r), this.queue = t, this.tree = new
|
|
2818
|
+
mn(this, r), this.queue = t, this.tree = new Bs(e), this.segments = [];
|
|
2820
2819
|
}
|
|
2821
2820
|
return Se(r, [{
|
|
2822
2821
|
key: "process",
|
|
@@ -2889,7 +2888,7 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2889
2888
|
return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
|
|
2890
2889
|
}
|
|
2891
2890
|
}]), r;
|
|
2892
|
-
}(),
|
|
2891
|
+
}(), Sa = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, xc = /* @__PURE__ */ function() {
|
|
2893
2892
|
function r() {
|
|
2894
2893
|
mn(this, r);
|
|
2895
2894
|
}
|
|
@@ -2897,30 +2896,30 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2897
2896
|
key: "run",
|
|
2898
2897
|
value: function(e, n, i) {
|
|
2899
2898
|
xn.type = e, eo.reset();
|
|
2900
|
-
for (var o = [new
|
|
2901
|
-
o.push(new
|
|
2899
|
+
for (var o = [new Na(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2900
|
+
o.push(new Na(i[s], !1));
|
|
2902
2901
|
if (xn.numMultiPolys = o.length, xn.type === "difference")
|
|
2903
2902
|
for (var u = o[0], l = 1; l < o.length; )
|
|
2904
|
-
|
|
2903
|
+
bs(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
|
|
2905
2904
|
if (xn.type === "intersection") {
|
|
2906
2905
|
for (var c = 0, f = o.length; c < f; c++)
|
|
2907
2906
|
for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
|
|
2908
|
-
if (
|
|
2907
|
+
if (bs(h.bbox, o[g].bbox) === null)
|
|
2909
2908
|
return [];
|
|
2910
2909
|
}
|
|
2911
|
-
for (var v = new
|
|
2910
|
+
for (var v = new Bs(Xn.compare), d = 0, m = o.length; d < m; d++)
|
|
2912
2911
|
for (var E = o[d].getSweepEvents(), C = 0, w = E.length; C < w; C++)
|
|
2913
|
-
if (v.insert(E[C]), v.size >
|
|
2912
|
+
if (v.insert(E[C]), v.size > Sa)
|
|
2914
2913
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
|
|
2915
|
-
for (var N = new
|
|
2914
|
+
for (var N = new Cc(v), S = v.size, T = v.pop(); T; ) {
|
|
2916
2915
|
var A = T.key;
|
|
2917
2916
|
if (v.size === S) {
|
|
2918
2917
|
var L = A.segment;
|
|
2919
2918
|
throw new Error("Unable to pop() ".concat(A.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(A.point.x, ", ").concat(A.point.y, "] from segment #").concat(L.id, " ") + "[".concat(L.leftSE.point.x, ", ").concat(L.leftSE.point.y, "] -> ") + "[".concat(L.rightSE.point.x, ", ").concat(L.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
|
|
2920
2919
|
}
|
|
2921
|
-
if (v.size >
|
|
2920
|
+
if (v.size > Sa)
|
|
2922
2921
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
|
|
2923
|
-
if (N.segments.length >
|
|
2922
|
+
if (N.segments.length > Nc)
|
|
2924
2923
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
|
|
2925
2924
|
for (var F = N.process(A), X = 0, R = F.length; X < R; X++) {
|
|
2926
2925
|
var Y = F[X];
|
|
@@ -2929,32 +2928,32 @@ var pc = Sr * Sr, Rs = function(t, e) {
|
|
|
2929
2928
|
S = v.size, T = v.pop();
|
|
2930
2929
|
}
|
|
2931
2930
|
eo.reset();
|
|
2932
|
-
var D =
|
|
2931
|
+
var D = Ec.factory(N.segments), W = new Ic(D);
|
|
2933
2932
|
return W.getGeom();
|
|
2934
2933
|
}
|
|
2935
2934
|
}]), r;
|
|
2936
|
-
}(), xn = new
|
|
2935
|
+
}(), xn = new xc(), Sc = function(t) {
|
|
2937
2936
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2938
2937
|
n[i - 1] = arguments[i];
|
|
2939
2938
|
return xn.run("union", t, n);
|
|
2940
|
-
},
|
|
2939
|
+
}, wc = function(t) {
|
|
2941
2940
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2942
2941
|
n[i - 1] = arguments[i];
|
|
2943
2942
|
return xn.run("intersection", t, n);
|
|
2944
|
-
},
|
|
2943
|
+
}, Lc = function(t) {
|
|
2945
2944
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2946
2945
|
n[i - 1] = arguments[i];
|
|
2947
2946
|
return xn.run("xor", t, n);
|
|
2948
|
-
},
|
|
2947
|
+
}, bc = function(t) {
|
|
2949
2948
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
2950
2949
|
n[i - 1] = arguments[i];
|
|
2951
2950
|
return xn.run("difference", t, n);
|
|
2952
|
-
},
|
|
2953
|
-
union:
|
|
2954
|
-
intersection:
|
|
2955
|
-
xor:
|
|
2956
|
-
difference:
|
|
2957
|
-
}, Ie = 63710088e-1,
|
|
2951
|
+
}, ou = {
|
|
2952
|
+
union: Sc,
|
|
2953
|
+
intersection: wc,
|
|
2954
|
+
xor: Lc,
|
|
2955
|
+
difference: bc
|
|
2956
|
+
}, Ie = 63710088e-1, su = {
|
|
2958
2957
|
centimeters: Ie * 100,
|
|
2959
2958
|
centimetres: Ie * 100,
|
|
2960
2959
|
degrees: Ie / 111325,
|
|
@@ -2976,14 +2975,14 @@ function Zo(r, t, e) {
|
|
|
2976
2975
|
var n = { type: "Feature" };
|
|
2977
2976
|
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
2978
2977
|
}
|
|
2979
|
-
function
|
|
2978
|
+
function Pc(r, t, e) {
|
|
2980
2979
|
if (e === void 0 && (e = {}), !r)
|
|
2981
2980
|
throw new Error("coordinates is required");
|
|
2982
2981
|
if (!Array.isArray(r))
|
|
2983
2982
|
throw new Error("coordinates must be an Array");
|
|
2984
2983
|
if (r.length < 2)
|
|
2985
2984
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
2986
|
-
if (!
|
|
2985
|
+
if (!wa(r[0]) || !wa(r[1]))
|
|
2987
2986
|
throw new Error("coordinates must contain numbers");
|
|
2988
2987
|
var n = {
|
|
2989
2988
|
type: "Point",
|
|
@@ -2991,7 +2990,7 @@ function Rc(r, t, e) {
|
|
|
2991
2990
|
};
|
|
2992
2991
|
return Zo(n, t, e);
|
|
2993
2992
|
}
|
|
2994
|
-
function
|
|
2993
|
+
function au(r, t, e) {
|
|
2995
2994
|
e === void 0 && (e = {});
|
|
2996
2995
|
for (var n = 0, i = r; n < i.length; n++) {
|
|
2997
2996
|
var o = i[n];
|
|
@@ -3007,12 +3006,12 @@ function uu(r, t, e) {
|
|
|
3007
3006
|
};
|
|
3008
3007
|
return Zo(a, t, e);
|
|
3009
3008
|
}
|
|
3010
|
-
function
|
|
3009
|
+
function Rs(r, t) {
|
|
3011
3010
|
t === void 0 && (t = {});
|
|
3012
3011
|
var e = { type: "FeatureCollection" };
|
|
3013
3012
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
|
|
3014
3013
|
}
|
|
3015
|
-
function
|
|
3014
|
+
function uu(r, t, e) {
|
|
3016
3015
|
e === void 0 && (e = {});
|
|
3017
3016
|
var n = {
|
|
3018
3017
|
type: "MultiPolygon",
|
|
@@ -3020,32 +3019,32 @@ function lu(r, t, e) {
|
|
|
3020
3019
|
};
|
|
3021
3020
|
return Zo(n, t, e);
|
|
3022
3021
|
}
|
|
3023
|
-
function
|
|
3022
|
+
function Rc(r, t) {
|
|
3024
3023
|
t === void 0 && (t = "kilometers");
|
|
3025
|
-
var e =
|
|
3024
|
+
var e = su[t];
|
|
3026
3025
|
if (!e)
|
|
3027
3026
|
throw new Error(t + " units is invalid");
|
|
3028
3027
|
return r * e;
|
|
3029
3028
|
}
|
|
3030
|
-
function
|
|
3029
|
+
function Oc(r, t) {
|
|
3031
3030
|
t === void 0 && (t = "kilometers");
|
|
3032
|
-
var e =
|
|
3031
|
+
var e = su[t];
|
|
3033
3032
|
if (!e)
|
|
3034
3033
|
throw new Error(t + " units is invalid");
|
|
3035
3034
|
return r / e;
|
|
3036
3035
|
}
|
|
3037
|
-
function
|
|
3036
|
+
function wa(r) {
|
|
3038
3037
|
return !isNaN(r) && r !== null && !Array.isArray(r);
|
|
3039
3038
|
}
|
|
3040
3039
|
function Vo(r) {
|
|
3041
3040
|
return r.type === "Feature" ? r.geometry : r;
|
|
3042
3041
|
}
|
|
3043
|
-
function
|
|
3042
|
+
function Tc(r, t, e) {
|
|
3044
3043
|
e === void 0 && (e = {});
|
|
3045
|
-
var n = Vo(r), i = Vo(t), o =
|
|
3046
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
3044
|
+
var n = Vo(r), i = Vo(t), o = ou.union(n.coordinates, i.coordinates);
|
|
3045
|
+
return o.length === 0 ? null : o.length === 1 ? au(o[0], e.properties) : uu(o, e.properties);
|
|
3047
3046
|
}
|
|
3048
|
-
function
|
|
3047
|
+
function Dc(r) {
|
|
3049
3048
|
let t, e, n;
|
|
3050
3049
|
return {
|
|
3051
3050
|
c() {
|
|
@@ -3089,18 +3088,18 @@ function Mc(r) {
|
|
|
3089
3088
|
}
|
|
3090
3089
|
};
|
|
3091
3090
|
}
|
|
3092
|
-
function
|
|
3091
|
+
function Mc(r, t, e) {
|
|
3093
3092
|
let { displayIn: n } = t;
|
|
3094
3093
|
return r.$$set = (i) => {
|
|
3095
3094
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
3096
3095
|
}, [n];
|
|
3097
3096
|
}
|
|
3098
|
-
class
|
|
3097
|
+
class Ac extends qr {
|
|
3099
3098
|
constructor(t) {
|
|
3100
|
-
super(), Ur(this, t,
|
|
3099
|
+
super(), Ur(this, t, Mc, Dc, zr, { displayIn: 0 });
|
|
3101
3100
|
}
|
|
3102
3101
|
}
|
|
3103
|
-
function
|
|
3102
|
+
function lu(r, t, e) {
|
|
3104
3103
|
if (r !== null)
|
|
3105
3104
|
for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", v = g === "Feature", d = p ? r.features.length : 1, m = 0; m < d; m++) {
|
|
3106
3105
|
l = p ? r.features[m].geometry : v ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
|
|
@@ -3177,7 +3176,7 @@ function cu(r, t, e) {
|
|
|
3177
3176
|
break;
|
|
3178
3177
|
case "GeometryCollection":
|
|
3179
3178
|
for (n = 0; n < s.geometries.length; n++)
|
|
3180
|
-
if (
|
|
3179
|
+
if (lu(s.geometries[n], t, e) === !1)
|
|
3181
3180
|
return !1;
|
|
3182
3181
|
break;
|
|
3183
3182
|
default:
|
|
@@ -3187,14 +3186,14 @@ function cu(r, t, e) {
|
|
|
3187
3186
|
}
|
|
3188
3187
|
}
|
|
3189
3188
|
}
|
|
3190
|
-
function
|
|
3189
|
+
function La(r, t) {
|
|
3191
3190
|
if (r.type === "Feature")
|
|
3192
3191
|
t(r, 0);
|
|
3193
3192
|
else if (r.type === "FeatureCollection")
|
|
3194
3193
|
for (var e = 0; e < r.features.length && t(r.features[e], e) !== !1; e++)
|
|
3195
3194
|
;
|
|
3196
3195
|
}
|
|
3197
|
-
function
|
|
3196
|
+
function cu(r, t) {
|
|
3198
3197
|
var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", v = g ? r.features.length : 1;
|
|
3199
3198
|
for (e = 0; e < v; e++) {
|
|
3200
3199
|
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++) {
|
|
@@ -3245,17 +3244,17 @@ function fu(r, t) {
|
|
|
3245
3244
|
h++;
|
|
3246
3245
|
}
|
|
3247
3246
|
}
|
|
3248
|
-
function
|
|
3247
|
+
function Os(r) {
|
|
3249
3248
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
3250
|
-
return
|
|
3249
|
+
return lu(r, function(e) {
|
|
3251
3250
|
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]);
|
|
3252
3251
|
}), t;
|
|
3253
3252
|
}
|
|
3254
|
-
|
|
3255
|
-
function
|
|
3253
|
+
Os.default = Os;
|
|
3254
|
+
function Fc(r, t) {
|
|
3256
3255
|
t === void 0 && (t = {});
|
|
3257
|
-
var e =
|
|
3258
|
-
return
|
|
3256
|
+
var e = Os(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
3257
|
+
return Pc([n, i], t.properties, t);
|
|
3259
3258
|
}
|
|
3260
3259
|
"fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
|
|
3261
3260
|
configurable: !0,
|
|
@@ -3295,13 +3294,13 @@ Zr.prototype.getClass = function() {
|
|
|
3295
3294
|
Zr.prototype.equalsWithTolerance = function(t, e, n) {
|
|
3296
3295
|
return Math.abs(t - e) <= n;
|
|
3297
3296
|
};
|
|
3298
|
-
var
|
|
3297
|
+
var ct = function(r) {
|
|
3299
3298
|
function t(e) {
|
|
3300
3299
|
r.call(this, e), this.name = "IllegalArgumentException", this.message = e, this.stack = new r().stack;
|
|
3301
3300
|
}
|
|
3302
3301
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
3303
3302
|
}(Error), z = function() {
|
|
3304
|
-
},
|
|
3303
|
+
}, fu = { MAX_VALUE: { configurable: !0 } };
|
|
3305
3304
|
z.isNaN = function(t) {
|
|
3306
3305
|
return Number.isNaN(t);
|
|
3307
3306
|
};
|
|
@@ -3314,10 +3313,10 @@ z.longBitsToDouble = function(t) {
|
|
|
3314
3313
|
z.isInfinite = function(t) {
|
|
3315
3314
|
return !Number.isFinite(t);
|
|
3316
3315
|
};
|
|
3317
|
-
|
|
3316
|
+
fu.MAX_VALUE.get = function() {
|
|
3318
3317
|
return Number.MAX_VALUE;
|
|
3319
3318
|
};
|
|
3320
|
-
Object.defineProperties(z,
|
|
3319
|
+
Object.defineProperties(z, fu);
|
|
3321
3320
|
var ke = function() {
|
|
3322
3321
|
}, Jo = function() {
|
|
3323
3322
|
}, Ii = function() {
|
|
@@ -3345,7 +3344,7 @@ y.prototype.setOrdinate = function(t, e) {
|
|
|
3345
3344
|
this.z = e;
|
|
3346
3345
|
break;
|
|
3347
3346
|
default:
|
|
3348
|
-
throw new
|
|
3347
|
+
throw new ct("Invalid ordinate index: " + t);
|
|
3349
3348
|
}
|
|
3350
3349
|
};
|
|
3351
3350
|
y.prototype.equals2D = function() {
|
|
@@ -3366,7 +3365,7 @@ y.prototype.getOrdinate = function(t) {
|
|
|
3366
3365
|
case y.Z:
|
|
3367
3366
|
return this.z;
|
|
3368
3367
|
}
|
|
3369
|
-
throw new
|
|
3368
|
+
throw new ct("Invalid ordinate index: " + t);
|
|
3370
3369
|
};
|
|
3371
3370
|
y.prototype.equals3D = function(t) {
|
|
3372
3371
|
return this.x === t.x && this.y === t.y && (this.z === t.z || z.isNaN(this.z)) && z.isNaN(t.z);
|
|
@@ -3440,7 +3439,7 @@ var or = function(t) {
|
|
|
3440
3439
|
if (arguments.length === 1) {
|
|
3441
3440
|
var e = arguments[0];
|
|
3442
3441
|
if (e !== 2 && e !== 3)
|
|
3443
|
-
throw new
|
|
3442
|
+
throw new ct("only 2 or 3 dimensions may be specified");
|
|
3444
3443
|
this._dimensionsToTest = e;
|
|
3445
3444
|
}
|
|
3446
3445
|
}
|
|
@@ -3495,7 +3494,7 @@ _.toLocationSymbol = function(t) {
|
|
|
3495
3494
|
case _.NONE:
|
|
3496
3495
|
return "-";
|
|
3497
3496
|
}
|
|
3498
|
-
throw new
|
|
3497
|
+
throw new ct("Unknown location value: " + t);
|
|
3499
3498
|
};
|
|
3500
3499
|
yo.INTERIOR.get = function() {
|
|
3501
3500
|
return 0;
|
|
@@ -3513,7 +3512,7 @@ Object.defineProperties(_, yo);
|
|
|
3513
3512
|
var V = function(r, t) {
|
|
3514
3513
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
3515
3514
|
}, we = function() {
|
|
3516
|
-
},
|
|
3515
|
+
}, hu = { LOG_10: { configurable: !0 } };
|
|
3517
3516
|
we.prototype.interfaces_ = function() {
|
|
3518
3517
|
return [];
|
|
3519
3518
|
};
|
|
@@ -3552,10 +3551,10 @@ we.max = function() {
|
|
|
3552
3551
|
we.average = function(t, e) {
|
|
3553
3552
|
return (t + e) / 2;
|
|
3554
3553
|
};
|
|
3555
|
-
|
|
3554
|
+
hu.LOG_10.get = function() {
|
|
3556
3555
|
return Math.log(10);
|
|
3557
3556
|
};
|
|
3558
|
-
Object.defineProperties(we,
|
|
3557
|
+
Object.defineProperties(we, hu);
|
|
3559
3558
|
var _n = function(t) {
|
|
3560
3559
|
this.str = t;
|
|
3561
3560
|
};
|
|
@@ -4006,7 +4005,7 @@ Ze.SCI_NOT_ZERO.get = function() {
|
|
|
4006
4005
|
};
|
|
4007
4006
|
Object.defineProperties(I, Ze);
|
|
4008
4007
|
var ce = function() {
|
|
4009
|
-
},
|
|
4008
|
+
}, gu = { DP_SAFE_EPSILON: { configurable: !0 } };
|
|
4010
4009
|
ce.prototype.interfaces_ = function() {
|
|
4011
4010
|
return [];
|
|
4012
4011
|
};
|
|
@@ -4046,10 +4045,10 @@ ce.orientationIndexFilter = function(t, e, n) {
|
|
|
4046
4045
|
ce.signum = function(t) {
|
|
4047
4046
|
return t > 0 ? 1 : t < 0 ? -1 : 0;
|
|
4048
4047
|
};
|
|
4049
|
-
|
|
4048
|
+
gu.DP_SAFE_EPSILON.get = function() {
|
|
4050
4049
|
return 1e-15;
|
|
4051
4050
|
};
|
|
4052
|
-
Object.defineProperties(ce,
|
|
4051
|
+
Object.defineProperties(ce, gu);
|
|
4053
4052
|
var Q = function() {
|
|
4054
4053
|
}, mo = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
|
|
4055
4054
|
mo.X.get = function() {
|
|
@@ -4095,7 +4094,7 @@ Q.prototype.getClass = function() {
|
|
|
4095
4094
|
return Q;
|
|
4096
4095
|
};
|
|
4097
4096
|
Object.defineProperties(Q, mo);
|
|
4098
|
-
var
|
|
4097
|
+
var pu = function() {
|
|
4099
4098
|
}, Ui = function(r) {
|
|
4100
4099
|
function t() {
|
|
4101
4100
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
@@ -4105,7 +4104,7 @@ var du = function() {
|
|
|
4105
4104
|
}, t.prototype.getClass = function() {
|
|
4106
4105
|
return t;
|
|
4107
4106
|
}, t;
|
|
4108
|
-
}(
|
|
4107
|
+
}(pu), qt = function() {
|
|
4109
4108
|
};
|
|
4110
4109
|
qt.arraycopy = function(t, e, n, i, o) {
|
|
4111
4110
|
for (var s = 0, a = e; a < e + o; a++)
|
|
@@ -4188,7 +4187,7 @@ var k = function r() {
|
|
|
4188
4187
|
var o = arguments[0], s = arguments[1], a = arguments[2], u = arguments[3];
|
|
4189
4188
|
this.init(o, s, a, u);
|
|
4190
4189
|
}
|
|
4191
|
-
},
|
|
4190
|
+
}, du = { serialVersionUID: { configurable: !0 } };
|
|
4192
4191
|
k.prototype.getArea = function() {
|
|
4193
4192
|
return this.getWidth() * this.getHeight();
|
|
4194
4193
|
};
|
|
@@ -4370,10 +4369,10 @@ k.intersects = function() {
|
|
|
4370
4369
|
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);
|
|
4371
4370
|
}
|
|
4372
4371
|
};
|
|
4373
|
-
|
|
4372
|
+
du.serialVersionUID.get = function() {
|
|
4374
4373
|
return 5873921885273102e3;
|
|
4375
4374
|
};
|
|
4376
|
-
Object.defineProperties(k,
|
|
4375
|
+
Object.defineProperties(k, du);
|
|
4377
4376
|
var $e = {
|
|
4378
4377
|
typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,
|
|
4379
4378
|
emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/,
|
|
@@ -5048,7 +5047,7 @@ M.computeLength = function(t) {
|
|
|
5048
5047
|
M.isCCW = function(t) {
|
|
5049
5048
|
var e = t.length - 1;
|
|
5050
5049
|
if (e < 3)
|
|
5051
|
-
throw new
|
|
5050
|
+
throw new ct("Ring has fewer than 4 points, so orientation cannot be determined");
|
|
5052
5051
|
for (var n = t[0], i = 0, o = 1; o <= e; o++) {
|
|
5053
5052
|
var s = t[o];
|
|
5054
5053
|
s.y > n.y && (n = s, i = o);
|
|
@@ -5081,7 +5080,7 @@ M.distancePointLine = function() {
|
|
|
5081
5080
|
if (arguments.length === 2) {
|
|
5082
5081
|
var t = arguments[0], e = arguments[1];
|
|
5083
5082
|
if (e.length === 0)
|
|
5084
|
-
throw new
|
|
5083
|
+
throw new ct("Line array must contain at least one vertex");
|
|
5085
5084
|
for (var n = t.distance(e[0]), i = 0; i < e.length - 1; i++) {
|
|
5086
5085
|
var o = M.distancePointLine(t, e[i], e[i + 1]);
|
|
5087
5086
|
o < n && (n = o);
|
|
@@ -5206,7 +5205,7 @@ G.prototype.getEnvelope = function() {
|
|
|
5206
5205
|
};
|
|
5207
5206
|
G.prototype.checkNotGeometryCollection = function(t) {
|
|
5208
5207
|
if (t.getSortIndex() === G.SORTINDEX_GEOMETRYCOLLECTION)
|
|
5209
|
-
throw new
|
|
5208
|
+
throw new ct("This method does not support GeometryCollection arguments");
|
|
5210
5209
|
};
|
|
5211
5210
|
G.prototype.equal = function(t, e, n) {
|
|
5212
5211
|
return n === 0 ? t.equals(e) : t.distance(e) <= n;
|
|
@@ -5287,15 +5286,15 @@ Fn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
|
|
|
5287
5286
|
return 7;
|
|
5288
5287
|
};
|
|
5289
5288
|
Fn.geometryChangedFilter.get = function() {
|
|
5290
|
-
return
|
|
5289
|
+
return Gs;
|
|
5291
5290
|
};
|
|
5292
5291
|
Object.defineProperties(G, Fn);
|
|
5293
|
-
var
|
|
5292
|
+
var Gs = function() {
|
|
5294
5293
|
};
|
|
5295
|
-
|
|
5294
|
+
Gs.interfaces_ = function() {
|
|
5296
5295
|
return [Qn];
|
|
5297
5296
|
};
|
|
5298
|
-
|
|
5297
|
+
Gs.filter = function(t) {
|
|
5299
5298
|
t.geometryChangedAction();
|
|
5300
5299
|
};
|
|
5301
5300
|
var Ln = function() {
|
|
@@ -5406,11 +5405,11 @@ Lt.prototype.toArray = function() {
|
|
|
5406
5405
|
};
|
|
5407
5406
|
Lt.prototype.remove = function() {
|
|
5408
5407
|
};
|
|
5409
|
-
function
|
|
5408
|
+
function Vs(r) {
|
|
5410
5409
|
this.message = r || "";
|
|
5411
5410
|
}
|
|
5412
|
-
|
|
5413
|
-
|
|
5411
|
+
Vs.prototype = new Error();
|
|
5412
|
+
Vs.prototype.name = "IndexOutOfBoundsException";
|
|
5414
5413
|
var qi = function() {
|
|
5415
5414
|
};
|
|
5416
5415
|
qi.prototype.hasNext = function() {
|
|
@@ -5452,10 +5451,10 @@ var O = function(r) {
|
|
|
5452
5451
|
var o = this.array_[n];
|
|
5453
5452
|
return this.array_[n] = i, o;
|
|
5454
5453
|
}, t.prototype.iterator = function() {
|
|
5455
|
-
return new
|
|
5454
|
+
return new kc(this);
|
|
5456
5455
|
}, t.prototype.get = function(n) {
|
|
5457
5456
|
if (n < 0 || n >= this.size())
|
|
5458
|
-
throw new
|
|
5457
|
+
throw new Vs();
|
|
5459
5458
|
return this.array_[n];
|
|
5460
5459
|
}, t.prototype.isEmpty = function() {
|
|
5461
5460
|
return this.array_.length === 0;
|
|
@@ -5473,7 +5472,7 @@ var O = function(r) {
|
|
|
5473
5472
|
}
|
|
5474
5473
|
return o;
|
|
5475
5474
|
}, t;
|
|
5476
|
-
}(qe),
|
|
5475
|
+
}(qe), kc = function(r) {
|
|
5477
5476
|
function t(e) {
|
|
5478
5477
|
r.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
5479
5478
|
}
|
|
@@ -5802,7 +5801,7 @@ gi.prototype.values = function() {
|
|
|
5802
5801
|
};
|
|
5803
5802
|
gi.prototype.entrySet = function() {
|
|
5804
5803
|
};
|
|
5805
|
-
var
|
|
5804
|
+
var Bc = function(r) {
|
|
5806
5805
|
function t() {
|
|
5807
5806
|
r.apply(this, arguments);
|
|
5808
5807
|
}
|
|
@@ -5818,7 +5817,7 @@ function es() {
|
|
|
5818
5817
|
es.prototype = new Lt();
|
|
5819
5818
|
es.prototype.contains = function() {
|
|
5820
5819
|
};
|
|
5821
|
-
var
|
|
5820
|
+
var zs = function(r) {
|
|
5822
5821
|
function t() {
|
|
5823
5822
|
r.call(this), this.array_ = [], arguments[0] instanceof Lt && this.addAll(arguments[0]);
|
|
5824
5823
|
}
|
|
@@ -5846,9 +5845,9 @@ var Us = function(r) {
|
|
|
5846
5845
|
i.push(n.array_[o]);
|
|
5847
5846
|
return i;
|
|
5848
5847
|
}, t.prototype.iterator = function() {
|
|
5849
|
-
return new
|
|
5848
|
+
return new Gc(this);
|
|
5850
5849
|
}, t;
|
|
5851
|
-
}(es),
|
|
5850
|
+
}(es), Gc = function(r) {
|
|
5852
5851
|
function t(e) {
|
|
5853
5852
|
r.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
5854
5853
|
}
|
|
@@ -5862,25 +5861,25 @@ var Us = function(r) {
|
|
|
5862
5861
|
throw new Eo();
|
|
5863
5862
|
}, t;
|
|
5864
5863
|
}(qi), Yn = 0, Cr = 1;
|
|
5865
|
-
function
|
|
5864
|
+
function ba(r) {
|
|
5866
5865
|
return r === null ? Yn : r.color;
|
|
5867
5866
|
}
|
|
5868
|
-
function
|
|
5867
|
+
function ot(r) {
|
|
5869
5868
|
return r === null ? null : r.parent;
|
|
5870
5869
|
}
|
|
5871
5870
|
function zn(r, t) {
|
|
5872
5871
|
r !== null && (r.color = t);
|
|
5873
5872
|
}
|
|
5874
|
-
function
|
|
5873
|
+
function ms(r) {
|
|
5875
5874
|
return r === null ? null : r.left;
|
|
5876
5875
|
}
|
|
5877
|
-
function
|
|
5876
|
+
function Pa(r) {
|
|
5878
5877
|
return r === null ? null : r.right;
|
|
5879
5878
|
}
|
|
5880
5879
|
function Kt() {
|
|
5881
5880
|
this.root_ = null, this.size_ = 0;
|
|
5882
5881
|
}
|
|
5883
|
-
Kt.prototype = new
|
|
5882
|
+
Kt.prototype = new Bc();
|
|
5884
5883
|
Kt.prototype.get = function(r) {
|
|
5885
5884
|
for (var t = this.root_; t !== null; ) {
|
|
5886
5885
|
var e = r.compareTo(t.key);
|
|
@@ -5939,12 +5938,12 @@ Kt.prototype.put = function(r, t) {
|
|
|
5939
5938
|
Kt.prototype.fixAfterInsertion = function(r) {
|
|
5940
5939
|
var t = this;
|
|
5941
5940
|
for (r.color = Cr; r != null && r !== this.root_ && r.parent.color === Cr; )
|
|
5942
|
-
if (
|
|
5943
|
-
var e =
|
|
5944
|
-
|
|
5941
|
+
if (ot(r) === ms(ot(ot(r)))) {
|
|
5942
|
+
var e = Pa(ot(ot(r)));
|
|
5943
|
+
ba(e) === Cr ? (zn(ot(r), Yn), zn(e, Yn), zn(ot(ot(r)), Cr), r = ot(ot(r))) : (r === Pa(ot(r)) && (r = ot(r), t.rotateLeft(r)), zn(ot(r), Yn), zn(ot(ot(r)), Cr), t.rotateRight(ot(ot(r))));
|
|
5945
5944
|
} else {
|
|
5946
|
-
var n =
|
|
5947
|
-
|
|
5945
|
+
var n = ms(ot(ot(r)));
|
|
5946
|
+
ba(n) === Cr ? (zn(ot(r), Yn), zn(n, Yn), zn(ot(ot(r)), Cr), r = ot(ot(r))) : (r === ms(ot(r)) && (r = ot(r), t.rotateRight(r)), zn(ot(r), Yn), zn(ot(ot(r)), Cr), t.rotateLeft(ot(ot(r))));
|
|
5948
5947
|
}
|
|
5949
5948
|
this.root_.color = Yn;
|
|
5950
5949
|
};
|
|
@@ -5956,7 +5955,7 @@ Kt.prototype.values = function() {
|
|
|
5956
5955
|
return r;
|
|
5957
5956
|
};
|
|
5958
5957
|
Kt.prototype.entrySet = function() {
|
|
5959
|
-
var r = new
|
|
5958
|
+
var r = new zs(), t = this.getFirstEntry();
|
|
5960
5959
|
if (t !== null)
|
|
5961
5960
|
for (r.add(t); (t = Kt.successor(t)) !== null; )
|
|
5962
5961
|
r.add(t);
|
|
@@ -6005,13 +6004,13 @@ io.prototype.interfaces_ = function() {
|
|
|
6005
6004
|
io.prototype.getClass = function() {
|
|
6006
6005
|
return io;
|
|
6007
6006
|
};
|
|
6008
|
-
function
|
|
6007
|
+
function vu() {
|
|
6009
6008
|
}
|
|
6010
|
-
|
|
6009
|
+
vu.prototype = new es();
|
|
6011
6010
|
function ln() {
|
|
6012
6011
|
this.array_ = [], arguments[0] instanceof Lt && this.addAll(arguments[0]);
|
|
6013
6012
|
}
|
|
6014
|
-
ln.prototype = new
|
|
6013
|
+
ln.prototype = new vu();
|
|
6015
6014
|
ln.prototype.contains = function(r) {
|
|
6016
6015
|
for (var t = this, e = 0, n = this.array_.length; e < n; e++) {
|
|
6017
6016
|
var i = t.array_[e];
|
|
@@ -6154,7 +6153,7 @@ Z.toDimensionSymbol = function(t) {
|
|
|
6154
6153
|
case Z.A:
|
|
6155
6154
|
return Z.SYM_A;
|
|
6156
6155
|
}
|
|
6157
|
-
throw new
|
|
6156
|
+
throw new ct("Unknown dimension value: " + t);
|
|
6158
6157
|
};
|
|
6159
6158
|
Z.toDimensionValue = function(t) {
|
|
6160
6159
|
switch (no.toUpperCase(t)) {
|
|
@@ -6171,7 +6170,7 @@ Z.toDimensionValue = function(t) {
|
|
|
6171
6170
|
case Z.SYM_A:
|
|
6172
6171
|
return Z.A;
|
|
6173
6172
|
}
|
|
6174
|
-
throw new
|
|
6173
|
+
throw new ct("Unknown dimension symbol: " + t);
|
|
6175
6174
|
};
|
|
6176
6175
|
Object.defineProperties(Z, Je);
|
|
6177
6176
|
var cn = function() {
|
|
@@ -6201,7 +6200,7 @@ Ye.prototype.getClass = function() {
|
|
|
6201
6200
|
var ie = function(r) {
|
|
6202
6201
|
function t(n, i) {
|
|
6203
6202
|
if (r.call(this, i), this._geometries = n || [], r.hasNullElements(this._geometries))
|
|
6204
|
-
throw new
|
|
6203
|
+
throw new ct("geometries must not contain null elements");
|
|
6205
6204
|
}
|
|
6206
6205
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
6207
6206
|
var e = { serialVersionUID: { configurable: !0 } };
|
|
@@ -6444,20 +6443,20 @@ Uo.prototype.interfaces_ = function() {
|
|
|
6444
6443
|
Uo.prototype.getClass = function() {
|
|
6445
6444
|
return Uo;
|
|
6446
6445
|
};
|
|
6447
|
-
function
|
|
6446
|
+
function Vc() {
|
|
6448
6447
|
}
|
|
6449
|
-
function
|
|
6448
|
+
function zc() {
|
|
6450
6449
|
}
|
|
6451
|
-
var
|
|
6450
|
+
var Uc = function() {
|
|
6452
6451
|
};
|
|
6452
|
+
function qc() {
|
|
6453
|
+
}
|
|
6453
6454
|
function Xc() {
|
|
6454
6455
|
}
|
|
6455
6456
|
function Yc() {
|
|
6456
6457
|
}
|
|
6457
|
-
function Wc() {
|
|
6458
|
-
}
|
|
6459
6458
|
var Te = function() {
|
|
6460
|
-
},
|
|
6459
|
+
}, Us = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
6461
6460
|
Te.prototype.interfaces_ = function() {
|
|
6462
6461
|
return [];
|
|
6463
6462
|
};
|
|
@@ -6471,16 +6470,16 @@ Te.chars = function(t, e) {
|
|
|
6471
6470
|
};
|
|
6472
6471
|
Te.getStackTrace = function() {
|
|
6473
6472
|
if (arguments.length === 1) {
|
|
6474
|
-
var t = arguments[0], e = new
|
|
6473
|
+
var t = arguments[0], e = new qc(), n = new Vc();
|
|
6475
6474
|
return t.printStackTrace(n), e.toString();
|
|
6476
6475
|
} else if (arguments.length === 2) {
|
|
6477
6476
|
var i = arguments[0], o = arguments[1], s = "";
|
|
6478
|
-
new
|
|
6479
|
-
for (var a = new
|
|
6477
|
+
new zc(Te.getStackTrace(i));
|
|
6478
|
+
for (var a = new Yc(), u = 0; u < o; u++)
|
|
6480
6479
|
try {
|
|
6481
6480
|
s += a.readLine() + Te.NEWLINE;
|
|
6482
6481
|
} catch (l) {
|
|
6483
|
-
if (l instanceof
|
|
6482
|
+
if (l instanceof Xc)
|
|
6484
6483
|
q.shouldNeverReachHere();
|
|
6485
6484
|
else
|
|
6486
6485
|
throw l;
|
|
@@ -6508,13 +6507,13 @@ Te.toString = function() {
|
|
|
6508
6507
|
Te.spaces = function(t) {
|
|
6509
6508
|
return Te.chars(" ", t);
|
|
6510
6509
|
};
|
|
6511
|
-
|
|
6510
|
+
Us.NEWLINE.get = function() {
|
|
6512
6511
|
return qt.getProperty("line.separator");
|
|
6513
6512
|
};
|
|
6514
|
-
|
|
6515
|
-
return new
|
|
6513
|
+
Us.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
6514
|
+
return new Uc();
|
|
6516
6515
|
};
|
|
6517
|
-
Object.defineProperties(Te,
|
|
6516
|
+
Object.defineProperties(Te, Us);
|
|
6518
6517
|
var Ct = function() {
|
|
6519
6518
|
};
|
|
6520
6519
|
Ct.prototype.interfaces_ = function() {
|
|
@@ -6703,7 +6702,7 @@ var yt = function(r) {
|
|
|
6703
6702
|
return this._points.size() === 0;
|
|
6704
6703
|
}, t.prototype.init = function(i) {
|
|
6705
6704
|
if (i === null && (i = this.getFactory().getCoordinateSequenceFactory().create([])), i.size() === 1)
|
|
6706
|
-
throw new
|
|
6705
|
+
throw new ct("Invalid number of points in LineString (found " + i.size() + " - must be 0 or >= 2)");
|
|
6707
6706
|
this._points = i;
|
|
6708
6707
|
}, t.prototype.isCoordinate = function(i) {
|
|
6709
6708
|
for (var o = this, s = 0; s < this._points.size(); s++)
|
|
@@ -6830,9 +6829,9 @@ cr.prototype.getClass = function() {
|
|
|
6830
6829
|
var Ot = function(r) {
|
|
6831
6830
|
function t(n, i, o) {
|
|
6832
6831
|
if (r.call(this, o), this._shell = null, this._holes = null, n === null && (n = this.getFactory().createLinearRing()), i === null && (i = []), r.hasNullElements(i))
|
|
6833
|
-
throw new
|
|
6832
|
+
throw new ct("holes must not contain null elements");
|
|
6834
6833
|
if (n.isEmpty() && r.hasNonEmptyElements(i))
|
|
6835
|
-
throw new
|
|
6834
|
+
throw new ct("shell is empty but holes are not");
|
|
6836
6835
|
this._shell = n, this._holes = i;
|
|
6837
6836
|
}
|
|
6838
6837
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
@@ -7061,9 +7060,9 @@ var Ot = function(r) {
|
|
|
7061
7060
|
return o;
|
|
7062
7061
|
}, t.prototype.validateConstruction = function() {
|
|
7063
7062
|
if (!this.isEmpty() && !r.prototype.isClosed.call(this))
|
|
7064
|
-
throw new
|
|
7063
|
+
throw new ct("Points of LinearRing do not form a closed linestring");
|
|
7065
7064
|
if (this.getCoordinateSequence().size() >= 1 && this.getCoordinateSequence().size() < t.MINIMUM_VALID_SIZE)
|
|
7066
|
-
throw new
|
|
7065
|
+
throw new ct("Invalid number of points in LinearRing (found " + this.getCoordinateSequence().size() + " - must be 0 or >= 4)");
|
|
7067
7066
|
}, t.prototype.getGeometryType = function() {
|
|
7068
7067
|
return "LinearRing";
|
|
7069
7068
|
}, t.prototype.copy = function() {
|
|
@@ -7237,7 +7236,7 @@ var _t = function() {
|
|
|
7237
7236
|
t._coordinates[c] = new y();
|
|
7238
7237
|
}
|
|
7239
7238
|
}
|
|
7240
|
-
},
|
|
7239
|
+
}, yu = { serialVersionUID: { configurable: !0 } };
|
|
7241
7240
|
_t.prototype.setOrdinate = function(t, e, n) {
|
|
7242
7241
|
switch (e) {
|
|
7243
7242
|
case Q.X:
|
|
@@ -7250,7 +7249,7 @@ _t.prototype.setOrdinate = function(t, e, n) {
|
|
|
7250
7249
|
this._coordinates[t].z = n;
|
|
7251
7250
|
break;
|
|
7252
7251
|
default:
|
|
7253
|
-
throw new
|
|
7252
|
+
throw new ct("invalid ordinateIndex");
|
|
7254
7253
|
}
|
|
7255
7254
|
};
|
|
7256
7255
|
_t.prototype.size = function() {
|
|
@@ -7323,12 +7322,12 @@ _t.prototype.interfaces_ = function() {
|
|
|
7323
7322
|
_t.prototype.getClass = function() {
|
|
7324
7323
|
return _t;
|
|
7325
7324
|
};
|
|
7326
|
-
|
|
7325
|
+
yu.serialVersionUID.get = function() {
|
|
7327
7326
|
return -915438501601840600;
|
|
7328
7327
|
};
|
|
7329
|
-
Object.defineProperties(_t,
|
|
7328
|
+
Object.defineProperties(_t, yu);
|
|
7330
7329
|
var Pn = function() {
|
|
7331
|
-
},
|
|
7330
|
+
}, qs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
|
|
7332
7331
|
Pn.prototype.readResolve = function() {
|
|
7333
7332
|
return Pn.instance();
|
|
7334
7333
|
};
|
|
@@ -7355,14 +7354,14 @@ Pn.prototype.getClass = function() {
|
|
|
7355
7354
|
Pn.instance = function() {
|
|
7356
7355
|
return Pn.instanceObject;
|
|
7357
7356
|
};
|
|
7358
|
-
|
|
7357
|
+
qs.serialVersionUID.get = function() {
|
|
7359
7358
|
return -4099577099607551500;
|
|
7360
7359
|
};
|
|
7361
|
-
|
|
7360
|
+
qs.instanceObject.get = function() {
|
|
7362
7361
|
return new Pn();
|
|
7363
7362
|
};
|
|
7364
|
-
Object.defineProperties(Pn,
|
|
7365
|
-
var
|
|
7363
|
+
Object.defineProperties(Pn, qs);
|
|
7364
|
+
var mu = function(r) {
|
|
7366
7365
|
function t() {
|
|
7367
7366
|
r.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
7368
7367
|
}
|
|
@@ -7375,7 +7374,7 @@ var _u = function(r) {
|
|
|
7375
7374
|
n.add(o.value), o = i.next();
|
|
7376
7375
|
return n;
|
|
7377
7376
|
}, t.prototype.entrySet = function() {
|
|
7378
|
-
var n = new
|
|
7377
|
+
var n = new zs();
|
|
7379
7378
|
return this.map_.entries().forEach(function(i) {
|
|
7380
7379
|
return n.add(i);
|
|
7381
7380
|
}), n;
|
|
@@ -7397,7 +7396,7 @@ var _u = function(r) {
|
|
|
7397
7396
|
this._modelType = n._modelType, this._scale = n._scale;
|
|
7398
7397
|
}
|
|
7399
7398
|
}
|
|
7400
|
-
},
|
|
7399
|
+
}, Xs = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
|
|
7401
7400
|
$.prototype.equals = function(t) {
|
|
7402
7401
|
if (!(t instanceof $))
|
|
7403
7402
|
return !1;
|
|
@@ -7454,16 +7453,16 @@ $.prototype.getClass = function() {
|
|
|
7454
7453
|
$.mostPrecise = function(t, e) {
|
|
7455
7454
|
return t.compareTo(e) >= 0 ? t : e;
|
|
7456
7455
|
};
|
|
7457
|
-
|
|
7456
|
+
Xs.serialVersionUID.get = function() {
|
|
7458
7457
|
return 7777263578777804e3;
|
|
7459
7458
|
};
|
|
7460
|
-
|
|
7459
|
+
Xs.maximumPreciseValue.get = function() {
|
|
7461
7460
|
return 9007199254740992;
|
|
7462
7461
|
};
|
|
7463
|
-
Object.defineProperties($,
|
|
7462
|
+
Object.defineProperties($, Xs);
|
|
7464
7463
|
var fn = function r(t) {
|
|
7465
7464
|
this._name = t || null, r.nameToTypeMap.put(t, this);
|
|
7466
|
-
},
|
|
7465
|
+
}, Ys = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
|
|
7467
7466
|
fn.prototype.readResolve = function() {
|
|
7468
7467
|
return fn.nameToTypeMap.get(this._name);
|
|
7469
7468
|
};
|
|
@@ -7476,20 +7475,20 @@ fn.prototype.interfaces_ = function() {
|
|
|
7476
7475
|
fn.prototype.getClass = function() {
|
|
7477
7476
|
return fn;
|
|
7478
7477
|
};
|
|
7479
|
-
|
|
7478
|
+
Ys.serialVersionUID.get = function() {
|
|
7480
7479
|
return -552860263173159e4;
|
|
7481
7480
|
};
|
|
7482
|
-
|
|
7483
|
-
return new
|
|
7481
|
+
Ys.nameToTypeMap.get = function() {
|
|
7482
|
+
return new mu();
|
|
7484
7483
|
};
|
|
7485
|
-
Object.defineProperties(fn,
|
|
7484
|
+
Object.defineProperties(fn, Ys);
|
|
7486
7485
|
$.Type = fn;
|
|
7487
7486
|
$.FIXED = new fn("FIXED");
|
|
7488
7487
|
$.FLOATING = new fn("FLOATING");
|
|
7489
7488
|
$.FLOATING_SINGLE = new fn("FLOATING SINGLE");
|
|
7490
7489
|
var H = function r() {
|
|
7491
7490
|
this._precisionModel = new $(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? V(arguments[0], Ci) ? 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]));
|
|
7492
|
-
},
|
|
7491
|
+
}, _u = { serialVersionUID: { configurable: !0 } };
|
|
7493
7492
|
H.prototype.toGeometry = function(t) {
|
|
7494
7493
|
return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new y(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new y(t.getMinX(), t.getMinY()), new y(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new y(t.getMinX(), t.getMinY()), new y(t.getMinX(), t.getMaxY()), new y(t.getMaxX(), t.getMaxY()), new y(t.getMaxX(), t.getMinY()), new y(t.getMinX(), t.getMinY())]), null);
|
|
7495
7494
|
};
|
|
@@ -7684,11 +7683,11 @@ H.toPolygonArray = function(t) {
|
|
|
7684
7683
|
H.createPointFromInternalCoord = function(t, e) {
|
|
7685
7684
|
return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
|
|
7686
7685
|
};
|
|
7687
|
-
|
|
7686
|
+
_u.serialVersionUID.get = function() {
|
|
7688
7687
|
return -6820524753094096e3;
|
|
7689
7688
|
};
|
|
7690
|
-
Object.defineProperties(H,
|
|
7691
|
-
var
|
|
7689
|
+
Object.defineProperties(H, _u);
|
|
7690
|
+
var Wc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], is = function(t) {
|
|
7692
7691
|
this.geometryFactory = t || new H();
|
|
7693
7692
|
};
|
|
7694
7693
|
is.prototype.read = function(t) {
|
|
@@ -7697,7 +7696,7 @@ is.prototype.read = function(t) {
|
|
|
7697
7696
|
var n = e.type;
|
|
7698
7697
|
if (!en[n])
|
|
7699
7698
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
7700
|
-
return
|
|
7699
|
+
return Wc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
|
|
7701
7700
|
};
|
|
7702
7701
|
is.prototype.write = function(t) {
|
|
7703
7702
|
var e = t.getGeometryType();
|
|
@@ -8007,14 +8006,14 @@ var en = {
|
|
|
8007
8006
|
geometries: e
|
|
8008
8007
|
};
|
|
8009
8008
|
}
|
|
8010
|
-
},
|
|
8009
|
+
}, Ws = function(t) {
|
|
8011
8010
|
this.geometryFactory = t || new H(), this.precisionModel = this.geometryFactory.getPrecisionModel(), this.parser = new is(this.geometryFactory);
|
|
8012
8011
|
};
|
|
8013
|
-
|
|
8012
|
+
Ws.prototype.read = function(t) {
|
|
8014
8013
|
var e = this.parser.read(t);
|
|
8015
8014
|
return this.precisionModel.getType() === $.FIXED && this.reducePrecision(e), e;
|
|
8016
8015
|
};
|
|
8017
|
-
|
|
8016
|
+
Ws.prototype.reducePrecision = function(t) {
|
|
8018
8017
|
var e = this, n, i;
|
|
8019
8018
|
if (t.coordinate)
|
|
8020
8019
|
this.precisionModel.makePrecise(t.coordinate);
|
|
@@ -8025,10 +8024,10 @@ Hs.prototype.reducePrecision = function(t) {
|
|
|
8025
8024
|
for (n = 0, i = t.geometries.length; n < i; n++)
|
|
8026
8025
|
e.reducePrecision(t.geometries[n]);
|
|
8027
8026
|
};
|
|
8028
|
-
var
|
|
8027
|
+
var Eu = function() {
|
|
8029
8028
|
this.parser = new is(this.geometryFactory);
|
|
8030
8029
|
};
|
|
8031
|
-
|
|
8030
|
+
Eu.prototype.write = function(t) {
|
|
8032
8031
|
return this.parser.write(t);
|
|
8033
8032
|
};
|
|
8034
8033
|
var b = function() {
|
|
@@ -8216,7 +8215,7 @@ oe.prototype.findResultEdges = function() {
|
|
|
8216
8215
|
}
|
|
8217
8216
|
};
|
|
8218
8217
|
oe.prototype.computeDepths = function(t) {
|
|
8219
|
-
var e = this, n = new
|
|
8218
|
+
var e = this, n = new zs(), i = new as(), o = t.getNode();
|
|
8220
8219
|
for (i.addLast(o), n.add(o), t.setVisited(!0); !i.isEmpty(); ) {
|
|
8221
8220
|
var s = i.removeFirst();
|
|
8222
8221
|
n.add(s), e.computeNodeDepth(s);
|
|
@@ -8275,7 +8274,7 @@ oe.prototype.interfaces_ = function() {
|
|
|
8275
8274
|
oe.prototype.getClass = function() {
|
|
8276
8275
|
return oe;
|
|
8277
8276
|
};
|
|
8278
|
-
var
|
|
8277
|
+
var st = function r() {
|
|
8279
8278
|
var t = this;
|
|
8280
8279
|
if (this.location = null, arguments.length === 1) {
|
|
8281
8280
|
if (arguments[0] instanceof Array) {
|
|
@@ -8295,24 +8294,24 @@ var at = function r() {
|
|
|
8295
8294
|
this.init(3), this.location[b.ON] = s, this.location[b.LEFT] = a, this.location[b.RIGHT] = u;
|
|
8296
8295
|
}
|
|
8297
8296
|
};
|
|
8298
|
-
|
|
8297
|
+
st.prototype.setAllLocations = function(t) {
|
|
8299
8298
|
for (var e = this, n = 0; n < this.location.length; n++)
|
|
8300
8299
|
e.location[n] = t;
|
|
8301
8300
|
};
|
|
8302
|
-
|
|
8301
|
+
st.prototype.isNull = function() {
|
|
8303
8302
|
for (var t = this, e = 0; e < this.location.length; e++)
|
|
8304
8303
|
if (t.location[e] !== _.NONE)
|
|
8305
8304
|
return !1;
|
|
8306
8305
|
return !0;
|
|
8307
8306
|
};
|
|
8308
|
-
|
|
8307
|
+
st.prototype.setAllLocationsIfNull = function(t) {
|
|
8309
8308
|
for (var e = this, n = 0; n < this.location.length; n++)
|
|
8310
8309
|
e.location[n] === _.NONE && (e.location[n] = t);
|
|
8311
8310
|
};
|
|
8312
|
-
|
|
8311
|
+
st.prototype.isLine = function() {
|
|
8313
8312
|
return this.location.length === 1;
|
|
8314
8313
|
};
|
|
8315
|
-
|
|
8314
|
+
st.prototype.merge = function(t) {
|
|
8316
8315
|
var e = this;
|
|
8317
8316
|
if (t.location.length > this.location.length) {
|
|
8318
8317
|
var n = new Array(3).fill(null);
|
|
@@ -8321,35 +8320,35 @@ at.prototype.merge = function(t) {
|
|
|
8321
8320
|
for (var i = 0; i < this.location.length; i++)
|
|
8322
8321
|
e.location[i] === _.NONE && i < t.location.length && (e.location[i] = t.location[i]);
|
|
8323
8322
|
};
|
|
8324
|
-
|
|
8323
|
+
st.prototype.getLocations = function() {
|
|
8325
8324
|
return this.location;
|
|
8326
8325
|
};
|
|
8327
|
-
|
|
8326
|
+
st.prototype.flip = function() {
|
|
8328
8327
|
if (this.location.length <= 1)
|
|
8329
8328
|
return null;
|
|
8330
8329
|
var t = this.location[b.LEFT];
|
|
8331
8330
|
this.location[b.LEFT] = this.location[b.RIGHT], this.location[b.RIGHT] = t;
|
|
8332
8331
|
};
|
|
8333
|
-
|
|
8332
|
+
st.prototype.toString = function() {
|
|
8334
8333
|
var t = new _n();
|
|
8335
8334
|
return this.location.length > 1 && t.append(_.toLocationSymbol(this.location[b.LEFT])), t.append(_.toLocationSymbol(this.location[b.ON])), this.location.length > 1 && t.append(_.toLocationSymbol(this.location[b.RIGHT])), t.toString();
|
|
8336
8335
|
};
|
|
8337
|
-
|
|
8336
|
+
st.prototype.setLocations = function(t, e, n) {
|
|
8338
8337
|
this.location[b.ON] = t, this.location[b.LEFT] = e, this.location[b.RIGHT] = n;
|
|
8339
8338
|
};
|
|
8340
|
-
|
|
8339
|
+
st.prototype.get = function(t) {
|
|
8341
8340
|
return t < this.location.length ? this.location[t] : _.NONE;
|
|
8342
8341
|
};
|
|
8343
|
-
|
|
8342
|
+
st.prototype.isArea = function() {
|
|
8344
8343
|
return this.location.length > 1;
|
|
8345
8344
|
};
|
|
8346
|
-
|
|
8345
|
+
st.prototype.isAnyNull = function() {
|
|
8347
8346
|
for (var t = this, e = 0; e < this.location.length; e++)
|
|
8348
8347
|
if (t.location[e] === _.NONE)
|
|
8349
8348
|
return !0;
|
|
8350
8349
|
return !1;
|
|
8351
8350
|
};
|
|
8352
|
-
|
|
8351
|
+
st.prototype.setLocation = function() {
|
|
8353
8352
|
if (arguments.length === 1) {
|
|
8354
8353
|
var t = arguments[0];
|
|
8355
8354
|
this.setLocation(b.ON, t);
|
|
@@ -8358,42 +8357,42 @@ at.prototype.setLocation = function() {
|
|
|
8358
8357
|
this.location[e] = n;
|
|
8359
8358
|
}
|
|
8360
8359
|
};
|
|
8361
|
-
|
|
8360
|
+
st.prototype.init = function(t) {
|
|
8362
8361
|
this.location = new Array(t).fill(null), this.setAllLocations(_.NONE);
|
|
8363
8362
|
};
|
|
8364
|
-
|
|
8363
|
+
st.prototype.isEqualOnSide = function(t, e) {
|
|
8365
8364
|
return this.location[e] === t.location[e];
|
|
8366
8365
|
};
|
|
8367
|
-
|
|
8366
|
+
st.prototype.allPositionsEqual = function(t) {
|
|
8368
8367
|
for (var e = this, n = 0; n < this.location.length; n++)
|
|
8369
8368
|
if (e.location[n] !== t)
|
|
8370
8369
|
return !1;
|
|
8371
8370
|
return !0;
|
|
8372
8371
|
};
|
|
8373
|
-
|
|
8372
|
+
st.prototype.interfaces_ = function() {
|
|
8374
8373
|
return [];
|
|
8375
8374
|
};
|
|
8376
|
-
|
|
8377
|
-
return
|
|
8375
|
+
st.prototype.getClass = function() {
|
|
8376
|
+
return st;
|
|
8378
8377
|
};
|
|
8379
8378
|
var et = function r() {
|
|
8380
8379
|
if (this.elt = new Array(2).fill(null), arguments.length === 1) {
|
|
8381
8380
|
if (Number.isInteger(arguments[0])) {
|
|
8382
8381
|
var t = arguments[0];
|
|
8383
|
-
this.elt[0] = new
|
|
8382
|
+
this.elt[0] = new st(t), this.elt[1] = new st(t);
|
|
8384
8383
|
} else if (arguments[0] instanceof r) {
|
|
8385
8384
|
var e = arguments[0];
|
|
8386
|
-
this.elt[0] = new
|
|
8385
|
+
this.elt[0] = new st(e.elt[0]), this.elt[1] = new st(e.elt[1]);
|
|
8387
8386
|
}
|
|
8388
8387
|
} else if (arguments.length === 2) {
|
|
8389
8388
|
var n = arguments[0], i = arguments[1];
|
|
8390
|
-
this.elt[0] = new
|
|
8389
|
+
this.elt[0] = new st(_.NONE), this.elt[1] = new st(_.NONE), this.elt[n].setLocation(i);
|
|
8391
8390
|
} else if (arguments.length === 3) {
|
|
8392
8391
|
var o = arguments[0], s = arguments[1], a = arguments[2];
|
|
8393
|
-
this.elt[0] = new
|
|
8392
|
+
this.elt[0] = new st(o, s, a), this.elt[1] = new st(o, s, a);
|
|
8394
8393
|
} else if (arguments.length === 4) {
|
|
8395
8394
|
var u = arguments[0], l = arguments[1], c = arguments[2], f = arguments[3];
|
|
8396
|
-
this.elt[0] = new
|
|
8395
|
+
this.elt[0] = new st(_.NONE, _.NONE, _.NONE), this.elt[1] = new st(_.NONE, _.NONE, _.NONE), this.elt[u].setLocations(l, c, f);
|
|
8397
8396
|
}
|
|
8398
8397
|
};
|
|
8399
8398
|
et.prototype.getGeometryCount = function() {
|
|
@@ -8420,7 +8419,7 @@ et.prototype.isLine = function(t) {
|
|
|
8420
8419
|
};
|
|
8421
8420
|
et.prototype.merge = function(t) {
|
|
8422
8421
|
for (var e = this, n = 0; n < 2; n++)
|
|
8423
|
-
e.elt[n] === null && t.elt[n] !== null ? e.elt[n] = new
|
|
8422
|
+
e.elt[n] === null && t.elt[n] !== null ? e.elt[n] = new st(t.elt[n]) : e.elt[n].merge(t.elt[n]);
|
|
8424
8423
|
};
|
|
8425
8424
|
et.prototype.flip = function() {
|
|
8426
8425
|
this.elt[0].flip(), this.elt[1].flip();
|
|
@@ -8465,7 +8464,7 @@ et.prototype.allPositionsEqual = function(t, e) {
|
|
|
8465
8464
|
return this.elt[t].allPositionsEqual(e);
|
|
8466
8465
|
};
|
|
8467
8466
|
et.prototype.toLine = function(t) {
|
|
8468
|
-
this.elt[t].isArea() && (this.elt[t] = new
|
|
8467
|
+
this.elt[t].isArea() && (this.elt[t] = new st(this.elt[t].location[0]));
|
|
8469
8468
|
};
|
|
8470
8469
|
et.prototype.interfaces_ = function() {
|
|
8471
8470
|
return [];
|
|
@@ -8603,7 +8602,7 @@ wt.prototype.interfaces_ = function() {
|
|
|
8603
8602
|
wt.prototype.getClass = function() {
|
|
8604
8603
|
return wt;
|
|
8605
8604
|
};
|
|
8606
|
-
var
|
|
8605
|
+
var Hc = function(r) {
|
|
8607
8606
|
function t() {
|
|
8608
8607
|
var e = arguments[0], n = arguments[1];
|
|
8609
8608
|
r.call(this, e, n);
|
|
@@ -8617,7 +8616,7 @@ var jc = function(r) {
|
|
|
8617
8616
|
}, t.prototype.getClass = function() {
|
|
8618
8617
|
return t;
|
|
8619
8618
|
}, t;
|
|
8620
|
-
}(wt),
|
|
8619
|
+
}(wt), jc = function(r) {
|
|
8621
8620
|
function t() {
|
|
8622
8621
|
var e = arguments[0], n = arguments[1];
|
|
8623
8622
|
r.call(this, e, n);
|
|
@@ -8626,7 +8625,7 @@ var jc = function(r) {
|
|
|
8626
8625
|
var n = this, i = new O(), o = this._startDe;
|
|
8627
8626
|
do {
|
|
8628
8627
|
if (o.getMinEdgeRing() === null) {
|
|
8629
|
-
var s = new
|
|
8628
|
+
var s = new Hc(o, n._geometryFactory);
|
|
8630
8629
|
i.add(s);
|
|
8631
8630
|
}
|
|
8632
8631
|
o = o.getNext();
|
|
@@ -8840,12 +8839,12 @@ rt.quadrant = function() {
|
|
|
8840
8839
|
if (typeof arguments[0] == "number" && typeof arguments[1] == "number") {
|
|
8841
8840
|
var t = arguments[0], e = arguments[1];
|
|
8842
8841
|
if (t === 0 && e === 0)
|
|
8843
|
-
throw new
|
|
8842
|
+
throw new ct("Cannot compute the quadrant for point ( " + t + ", " + e + " )");
|
|
8844
8843
|
return t >= 0 ? e >= 0 ? rt.NE : rt.SE : e >= 0 ? rt.NW : rt.SW;
|
|
8845
8844
|
} else if (arguments[0] instanceof y && arguments[1] instanceof y) {
|
|
8846
8845
|
var n = arguments[0], i = arguments[1];
|
|
8847
8846
|
if (i.x === n.x && i.y === n.y)
|
|
8848
|
-
throw new
|
|
8847
|
+
throw new ct("Cannot compute the quadrant for two identical points " + n);
|
|
8849
8848
|
return i.x >= n.x ? i.y >= n.y ? rt.NE : rt.SE : i.y >= n.y ? rt.NW : rt.SW;
|
|
8850
8849
|
}
|
|
8851
8850
|
};
|
|
@@ -8927,7 +8926,7 @@ Qt.prototype.interfaces_ = function() {
|
|
|
8927
8926
|
Qt.prototype.getClass = function() {
|
|
8928
8927
|
return Qt;
|
|
8929
8928
|
};
|
|
8930
|
-
var
|
|
8929
|
+
var Ts = function(r) {
|
|
8931
8930
|
function t() {
|
|
8932
8931
|
var e = arguments[0], n = arguments[1];
|
|
8933
8932
|
if (r.call(this, e), this._isForward = null, this._isInResult = !1, this._isVisited = !1, this._sym = null, this._next = null, this._nextMin = null, this._edgeRing = null, this._minEdgeRing = null, this._depth = [0, -999, -999], this._isForward = n, n)
|
|
@@ -9108,7 +9107,7 @@ pt.prototype.addEdges = function(t) {
|
|
|
9108
9107
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
9109
9108
|
var i = n.next();
|
|
9110
9109
|
e._edges.add(i);
|
|
9111
|
-
var o = new
|
|
9110
|
+
var o = new Ts(i, !0), s = new Ts(i, !1);
|
|
9112
9111
|
o.setSym(s), s.setSym(o), e.add(o), e.add(s);
|
|
9113
9112
|
}
|
|
9114
9113
|
};
|
|
@@ -9191,7 +9190,7 @@ ve.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
9191
9190
|
for (var e = this, n = new O(), i = t.iterator(); i.hasNext(); ) {
|
|
9192
9191
|
var o = i.next();
|
|
9193
9192
|
if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
|
|
9194
|
-
var s = new
|
|
9193
|
+
var s = new jc(o, e._geometryFactory);
|
|
9195
9194
|
n.add(s), s.setInResult();
|
|
9196
9195
|
}
|
|
9197
9196
|
}
|
|
@@ -9335,7 +9334,7 @@ var Rt = function() {
|
|
|
9335
9334
|
this._level = t;
|
|
9336
9335
|
}
|
|
9337
9336
|
}
|
|
9338
|
-
},
|
|
9337
|
+
}, Iu = { serialVersionUID: { configurable: !0 } };
|
|
9339
9338
|
Rt.prototype.getLevel = function() {
|
|
9340
9339
|
return this._level;
|
|
9341
9340
|
};
|
|
@@ -9360,10 +9359,10 @@ Rt.prototype.interfaces_ = function() {
|
|
|
9360
9359
|
Rt.prototype.getClass = function() {
|
|
9361
9360
|
return Rt;
|
|
9362
9361
|
};
|
|
9363
|
-
|
|
9362
|
+
Iu.serialVersionUID.get = function() {
|
|
9364
9363
|
return 6493722185909574e3;
|
|
9365
9364
|
};
|
|
9366
|
-
Object.defineProperties(Rt,
|
|
9365
|
+
Object.defineProperties(Rt, Iu);
|
|
9367
9366
|
var He = function() {
|
|
9368
9367
|
};
|
|
9369
9368
|
He.reverseOrder = function() {
|
|
@@ -9399,7 +9398,7 @@ xt.prototype.expandToQueue = function(t, e) {
|
|
|
9399
9398
|
return this.expand(this._boundable1, this._boundable2, t, e), null;
|
|
9400
9399
|
if (i)
|
|
9401
9400
|
return this.expand(this._boundable2, this._boundable1, t, e), null;
|
|
9402
|
-
throw new
|
|
9401
|
+
throw new ct("neither boundable is composite");
|
|
9403
9402
|
};
|
|
9404
9403
|
xt.prototype.isLeaves = function() {
|
|
9405
9404
|
return !(xt.isComposite(this._boundable1) || xt.isComposite(this._boundable2));
|
|
@@ -9604,7 +9603,7 @@ Mt.compareDoubles = function(t, e) {
|
|
|
9604
9603
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
9605
9604
|
};
|
|
9606
9605
|
ls.IntersectsOp.get = function() {
|
|
9607
|
-
return
|
|
9606
|
+
return Kc;
|
|
9608
9607
|
};
|
|
9609
9608
|
ls.serialVersionUID.get = function() {
|
|
9610
9609
|
return -3886435814360241e3;
|
|
@@ -9613,7 +9612,7 @@ ls.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
9613
9612
|
return 10;
|
|
9614
9613
|
};
|
|
9615
9614
|
Object.defineProperties(Mt, ls);
|
|
9616
|
-
var
|
|
9615
|
+
var Kc = function() {
|
|
9617
9616
|
}, Oi = function() {
|
|
9618
9617
|
};
|
|
9619
9618
|
Oi.prototype.distance = function(t, e) {
|
|
@@ -9624,7 +9623,7 @@ Oi.prototype.interfaces_ = function() {
|
|
|
9624
9623
|
Oi.prototype.getClass = function() {
|
|
9625
9624
|
return Oi;
|
|
9626
9625
|
};
|
|
9627
|
-
var
|
|
9626
|
+
var Cu = function(r) {
|
|
9628
9627
|
function t(n) {
|
|
9629
9628
|
n = n || t.DEFAULT_NODE_CAPACITY, r.call(this, n);
|
|
9630
9629
|
}
|
|
@@ -9637,7 +9636,7 @@ var Nu = function(r) {
|
|
|
9637
9636
|
a.addAll(s.createParentBoundablesFromVerticalSlice(i[u], o));
|
|
9638
9637
|
return a;
|
|
9639
9638
|
}, t.prototype.createNode = function(i) {
|
|
9640
|
-
return new
|
|
9639
|
+
return new Ra(i);
|
|
9641
9640
|
}, t.prototype.size = function() {
|
|
9642
9641
|
return arguments.length === 0 ? r.prototype.size.call(this) : r.prototype.size.apply(this, arguments);
|
|
9643
9642
|
}, t.prototype.insert = function() {
|
|
@@ -9731,7 +9730,7 @@ var Nu = function(r) {
|
|
|
9731
9730
|
}, t.centreY = function(i) {
|
|
9732
9731
|
return t.avg(i.getMinY(), i.getMaxY());
|
|
9733
9732
|
}, e.STRtreeNode.get = function() {
|
|
9734
|
-
return
|
|
9733
|
+
return Ra;
|
|
9735
9734
|
}, e.serialVersionUID.get = function() {
|
|
9736
9735
|
return 259274702368956900;
|
|
9737
9736
|
}, e.xComparator.get = function() {
|
|
@@ -9764,7 +9763,7 @@ var Nu = function(r) {
|
|
|
9764
9763
|
}, e.DEFAULT_NODE_CAPACITY.get = function() {
|
|
9765
9764
|
return 10;
|
|
9766
9765
|
}, Object.defineProperties(t, e), t;
|
|
9767
|
-
}(Mt),
|
|
9766
|
+
}(Mt), Ra = function(r) {
|
|
9768
9767
|
function t() {
|
|
9769
9768
|
var e = arguments[0];
|
|
9770
9769
|
r.call(this, e);
|
|
@@ -9956,13 +9955,13 @@ ti.octant = function() {
|
|
|
9956
9955
|
if (typeof arguments[0] == "number" && typeof arguments[1] == "number") {
|
|
9957
9956
|
var t = arguments[0], e = arguments[1];
|
|
9958
9957
|
if (t === 0 && e === 0)
|
|
9959
|
-
throw new
|
|
9958
|
+
throw new ct("Cannot compute the octant for point ( " + t + ", " + e + " )");
|
|
9960
9959
|
var n = Math.abs(t), i = Math.abs(e);
|
|
9961
9960
|
return t >= 0 ? e >= 0 ? n >= i ? 0 : 1 : n >= i ? 7 : 6 : e >= 0 ? n >= i ? 3 : 2 : n >= i ? 4 : 5;
|
|
9962
9961
|
} else if (arguments[0] instanceof y && arguments[1] instanceof y) {
|
|
9963
9962
|
var o = arguments[0], s = arguments[1], a = s.x - o.x, u = s.y - o.y;
|
|
9964
9963
|
if (a === 0 && u === 0)
|
|
9965
|
-
throw new
|
|
9964
|
+
throw new ct("Cannot compute the octant for two identical points " + o);
|
|
9966
9965
|
return ti.octant(a, u);
|
|
9967
9966
|
}
|
|
9968
9967
|
};
|
|
@@ -10081,7 +10080,7 @@ var B = function() {
|
|
|
10081
10080
|
var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
|
|
10082
10081
|
this.p0 = new y(e, n), this.p1 = new y(i, o);
|
|
10083
10082
|
}
|
|
10084
|
-
},
|
|
10083
|
+
}, Nu = { serialVersionUID: { configurable: !0 } };
|
|
10085
10084
|
B.prototype.minX = function() {
|
|
10086
10085
|
return Math.min(this.p0.x, this.p1.x);
|
|
10087
10086
|
};
|
|
@@ -10266,10 +10265,10 @@ B.prototype.getClass = function() {
|
|
|
10266
10265
|
B.midPoint = function(t, e) {
|
|
10267
10266
|
return new y((t.x + e.x) / 2, (t.y + e.y) / 2);
|
|
10268
10267
|
};
|
|
10269
|
-
|
|
10268
|
+
Nu.serialVersionUID.get = function() {
|
|
10270
10269
|
return 3252005833466256400;
|
|
10271
10270
|
};
|
|
10272
|
-
Object.defineProperties(B,
|
|
10271
|
+
Object.defineProperties(B, Nu);
|
|
10273
10272
|
var co = function() {
|
|
10274
10273
|
this.tempEnv1 = new k(), this.tempEnv2 = new k(), this._overlapSeg1 = new B(), this._overlapSeg2 = new B();
|
|
10275
10274
|
};
|
|
@@ -10431,9 +10430,9 @@ fo.prototype.interfaces_ = function() {
|
|
|
10431
10430
|
fo.prototype.getClass = function() {
|
|
10432
10431
|
return fo;
|
|
10433
10432
|
};
|
|
10434
|
-
var
|
|
10433
|
+
var Hs = function(r) {
|
|
10435
10434
|
function t(n) {
|
|
10436
|
-
n ? r.call(this, n) : r.call(this), this._monoChains = new O(), this._index = new
|
|
10435
|
+
n ? r.call(this, n) : r.call(this), this._monoChains = new O(), this._index = new Cu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
|
|
10437
10436
|
}
|
|
10438
10437
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
10439
10438
|
var e = { SegmentOverlapAction: { configurable: !0 } };
|
|
@@ -10455,7 +10454,7 @@ var js = function(r) {
|
|
|
10455
10454
|
o.add(s.next());
|
|
10456
10455
|
this.intersectChains();
|
|
10457
10456
|
}, t.prototype.intersectChains = function() {
|
|
10458
|
-
for (var i = this, o = new
|
|
10457
|
+
for (var i = this, o = new Oa(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
|
|
10459
10458
|
for (var a = s.next(), u = i._index.query(a.getEnvelope()), l = u.iterator(); l.hasNext(); ) {
|
|
10460
10459
|
var c = l.next();
|
|
10461
10460
|
if (c.getId() > a.getId() && (a.computeOverlaps(c, o), i._nOverlaps++), i._segInt.isDone())
|
|
@@ -10466,9 +10465,9 @@ var js = function(r) {
|
|
|
10466
10465
|
}, t.prototype.getClass = function() {
|
|
10467
10466
|
return t;
|
|
10468
10467
|
}, e.SegmentOverlapAction.get = function() {
|
|
10469
|
-
return
|
|
10468
|
+
return Oa;
|
|
10470
10469
|
}, Object.defineProperties(t, e), t;
|
|
10471
|
-
}(fo),
|
|
10470
|
+
}(fo), Oa = function(r) {
|
|
10472
10471
|
function t() {
|
|
10473
10472
|
r.call(this), this._si = null;
|
|
10474
10473
|
var e = arguments[0];
|
|
@@ -10654,7 +10653,7 @@ Co.NUM_PTS_TO_CHECK.get = function() {
|
|
|
10654
10653
|
Object.defineProperties(mt, Co);
|
|
10655
10654
|
var be = function() {
|
|
10656
10655
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new O();
|
|
10657
|
-
},
|
|
10656
|
+
}, xu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
10658
10657
|
be.prototype.getCoordinates = function() {
|
|
10659
10658
|
var t = this._ptList.toArray(be.COORDINATE_ARRAY_TYPE);
|
|
10660
10659
|
return t;
|
|
@@ -10706,10 +10705,10 @@ be.prototype.interfaces_ = function() {
|
|
|
10706
10705
|
be.prototype.getClass = function() {
|
|
10707
10706
|
return be;
|
|
10708
10707
|
};
|
|
10709
|
-
|
|
10708
|
+
xu.COORDINATE_ARRAY_TYPE.get = function() {
|
|
10710
10709
|
return new Array(0).fill(null);
|
|
10711
10710
|
};
|
|
10712
|
-
Object.defineProperties(be,
|
|
10711
|
+
Object.defineProperties(be, xu);
|
|
10713
10712
|
var K = function() {
|
|
10714
10713
|
}, pi = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
10715
10714
|
K.prototype.interfaces_ = function() {
|
|
@@ -10799,18 +10798,18 @@ pi.NONE.get = function() {
|
|
|
10799
10798
|
return M.COLLINEAR;
|
|
10800
10799
|
};
|
|
10801
10800
|
Object.defineProperties(K, pi);
|
|
10802
|
-
var
|
|
10801
|
+
var ut = function r() {
|
|
10803
10802
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new B(), this._seg1 = new B(), this._offset0 = new B(), this._offset1 = new B(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
10804
10803
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
10805
10804
|
this._precisionModel = t, this._bufParams = e, this._li = new Xr(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
|
|
10806
10805
|
}, No = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
|
|
10807
|
-
|
|
10806
|
+
ut.prototype.addNextSegment = function(t, e) {
|
|
10808
10807
|
if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = t, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
|
|
10809
10808
|
return null;
|
|
10810
10809
|
var n = M.computeOrientation(this._s0, this._s1, this._s2), i = n === M.CLOCKWISE && this._side === b.LEFT || n === M.COUNTERCLOCKWISE && this._side === b.RIGHT;
|
|
10811
10810
|
n === 0 ? this.addCollinear(e) : i ? this.addOutsideTurn(n, e) : this.addInsideTurn(n, e);
|
|
10812
10811
|
};
|
|
10813
|
-
|
|
10812
|
+
ut.prototype.addLineEndCap = function(t, e) {
|
|
10814
10813
|
var n = new B(t, e), i = new B();
|
|
10815
10814
|
this.computeOffsetSegment(n, b.LEFT, this._distance, i);
|
|
10816
10815
|
var o = new B();
|
|
@@ -10831,11 +10830,11 @@ lt.prototype.addLineEndCap = function(t, e) {
|
|
|
10831
10830
|
break;
|
|
10832
10831
|
}
|
|
10833
10832
|
};
|
|
10834
|
-
|
|
10833
|
+
ut.prototype.getCoordinates = function() {
|
|
10835
10834
|
var t = this._segList.getCoordinates();
|
|
10836
10835
|
return t;
|
|
10837
10836
|
};
|
|
10838
|
-
|
|
10837
|
+
ut.prototype.addMitreJoin = function(t, e, n, i) {
|
|
10839
10838
|
var o = !0, s = null;
|
|
10840
10839
|
try {
|
|
10841
10840
|
s = Ue.intersection(e.p0, e.p1, n.p0, n.p1);
|
|
@@ -10850,39 +10849,39 @@ lt.prototype.addMitreJoin = function(t, e, n, i) {
|
|
|
10850
10849
|
}
|
|
10851
10850
|
o ? this._segList.addPt(s) : this.addLimitedMitreJoin(e, n, i, this._bufParams.getMitreLimit());
|
|
10852
10851
|
};
|
|
10853
|
-
|
|
10852
|
+
ut.prototype.addFilletCorner = function(t, e, n, i, o) {
|
|
10854
10853
|
var s = e.x - t.x, a = e.y - t.y, u = Math.atan2(a, s), l = n.x - t.x, c = n.y - t.y, f = Math.atan2(c, l);
|
|
10855
10854
|
i === M.CLOCKWISE ? u <= f && (u += 2 * Math.PI) : u >= f && (u -= 2 * Math.PI), this._segList.addPt(e), this.addFilletArc(t, u, f, i, o), this._segList.addPt(n);
|
|
10856
10855
|
};
|
|
10857
|
-
|
|
10858
|
-
if (this._offset0.p1.distance(this._offset1.p0) < this._distance *
|
|
10856
|
+
ut.prototype.addOutsideTurn = function(t, e) {
|
|
10857
|
+
if (this._offset0.p1.distance(this._offset1.p0) < this._distance * ut.OFFSET_SEGMENT_SEPARATION_FACTOR)
|
|
10859
10858
|
return this._segList.addPt(this._offset0.p1), null;
|
|
10860
10859
|
this._bufParams.getJoinStyle() === J.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === J.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (e && this._segList.addPt(this._offset0.p1), this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, t, this._distance), this._segList.addPt(this._offset1.p0));
|
|
10861
10860
|
};
|
|
10862
|
-
|
|
10861
|
+
ut.prototype.createSquare = function(t) {
|
|
10863
10862
|
this._segList.addPt(new y(t.x + this._distance, t.y + this._distance)), this._segList.addPt(new y(t.x + this._distance, t.y - this._distance)), this._segList.addPt(new y(t.x - this._distance, t.y - this._distance)), this._segList.addPt(new y(t.x - this._distance, t.y + this._distance)), this._segList.closeRing();
|
|
10864
10863
|
};
|
|
10865
|
-
|
|
10864
|
+
ut.prototype.addSegments = function(t, e) {
|
|
10866
10865
|
this._segList.addPts(t, e);
|
|
10867
10866
|
};
|
|
10868
|
-
|
|
10867
|
+
ut.prototype.addFirstSegment = function() {
|
|
10869
10868
|
this._segList.addPt(this._offset1.p0);
|
|
10870
10869
|
};
|
|
10871
|
-
|
|
10870
|
+
ut.prototype.addLastSegment = function() {
|
|
10872
10871
|
this._segList.addPt(this._offset1.p1);
|
|
10873
10872
|
};
|
|
10874
|
-
|
|
10873
|
+
ut.prototype.initSideSegments = function(t, e, n) {
|
|
10875
10874
|
this._s1 = t, this._s2 = e, this._side = n, this._seg1.setCoordinates(t, e), this.computeOffsetSegment(this._seg1, n, this._distance, this._offset1);
|
|
10876
10875
|
};
|
|
10877
|
-
|
|
10876
|
+
ut.prototype.addLimitedMitreJoin = function(t, e, n, i) {
|
|
10878
10877
|
var o = this._seg0.p1, s = K.angle(o, this._seg0.p0), a = K.angleBetweenOriented(this._seg0.p0, o, this._seg1.p1), u = a / 2, l = K.normalize(s + u), c = K.normalize(l + Math.PI), f = i * n, h = f * Math.abs(Math.sin(u)), g = n - h, p = o.x + f * Math.cos(c), v = o.y + f * Math.sin(c), d = new y(p, v), m = new B(o, d), E = m.pointAlongOffset(1, g), C = m.pointAlongOffset(1, -g);
|
|
10879
10878
|
this._side === b.LEFT ? (this._segList.addPt(E), this._segList.addPt(C)) : (this._segList.addPt(C), this._segList.addPt(E));
|
|
10880
10879
|
};
|
|
10881
|
-
|
|
10880
|
+
ut.prototype.computeOffsetSegment = function(t, e, n, i) {
|
|
10882
10881
|
var o = e === b.LEFT ? 1 : -1, s = t.p1.x - t.p0.x, a = t.p1.y - t.p0.y, u = Math.sqrt(s * s + a * a), l = o * n * s / u, c = o * n * a / u;
|
|
10883
10882
|
i.p0.x = t.p0.x - c, i.p0.y = t.p0.y + l, i.p1.x = t.p1.x - c, i.p1.y = t.p1.y + l;
|
|
10884
10883
|
};
|
|
10885
|
-
|
|
10884
|
+
ut.prototype.addFilletArc = function(t, e, n, i, o) {
|
|
10886
10885
|
var s = this, a = i === M.CLOCKWISE ? -1 : 1, u = Math.abs(e - n), l = Math.trunc(u / this._filletAngleQuantum + 0.5);
|
|
10887
10886
|
if (l < 1)
|
|
10888
10887
|
return null;
|
|
@@ -10891,10 +10890,10 @@ lt.prototype.addFilletArc = function(t, e, n, i, o) {
|
|
|
10891
10890
|
g.x = t.x + o * Math.cos(p), g.y = t.y + o * Math.sin(p), s._segList.addPt(g), h += f;
|
|
10892
10891
|
}
|
|
10893
10892
|
};
|
|
10894
|
-
|
|
10893
|
+
ut.prototype.addInsideTurn = function(t, e) {
|
|
10895
10894
|
if (this._li.computeIntersection(this._offset0.p0, this._offset0.p1, this._offset1.p0, this._offset1.p1), this._li.hasIntersection())
|
|
10896
10895
|
this._segList.addPt(this._li.getIntersection(0));
|
|
10897
|
-
else if (this._hasNarrowConcaveAngle = !0, this._offset0.p1.distance(this._offset1.p0) < this._distance *
|
|
10896
|
+
else if (this._hasNarrowConcaveAngle = !0, this._offset0.p1.distance(this._offset1.p0) < this._distance * ut.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)
|
|
10898
10897
|
this._segList.addPt(this._offset0.p1);
|
|
10899
10898
|
else {
|
|
10900
10899
|
if (this._segList.addPt(this._offset0.p1), this._closingSegLengthFactor > 0) {
|
|
@@ -10907,32 +10906,32 @@ lt.prototype.addInsideTurn = function(t, e) {
|
|
|
10907
10906
|
this._segList.addPt(this._offset1.p0);
|
|
10908
10907
|
}
|
|
10909
10908
|
};
|
|
10910
|
-
|
|
10909
|
+
ut.prototype.createCircle = function(t) {
|
|
10911
10910
|
var e = new y(t.x + this._distance, t.y);
|
|
10912
10911
|
this._segList.addPt(e), this.addFilletArc(t, 0, 2 * Math.PI, -1, this._distance), this._segList.closeRing();
|
|
10913
10912
|
};
|
|
10914
|
-
|
|
10913
|
+
ut.prototype.addBevelJoin = function(t, e) {
|
|
10915
10914
|
this._segList.addPt(t.p1), this._segList.addPt(e.p0);
|
|
10916
10915
|
};
|
|
10917
|
-
|
|
10918
|
-
this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new be(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t *
|
|
10916
|
+
ut.prototype.init = function(t) {
|
|
10917
|
+
this._distance = t, this._maxCurveSegmentError = t * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new be(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(t * ut.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
10919
10918
|
};
|
|
10920
|
-
|
|
10919
|
+
ut.prototype.addCollinear = function(t) {
|
|
10921
10920
|
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2);
|
|
10922
10921
|
var e = this._li.getIntersectionNum();
|
|
10923
10922
|
e >= 2 && (this._bufParams.getJoinStyle() === J.JOIN_BEVEL || this._bufParams.getJoinStyle() === J.JOIN_MITRE ? (t && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, M.CLOCKWISE, this._distance));
|
|
10924
10923
|
};
|
|
10925
|
-
|
|
10924
|
+
ut.prototype.closeRing = function() {
|
|
10926
10925
|
this._segList.closeRing();
|
|
10927
10926
|
};
|
|
10928
|
-
|
|
10927
|
+
ut.prototype.hasNarrowConcaveAngle = function() {
|
|
10929
10928
|
return this._hasNarrowConcaveAngle;
|
|
10930
10929
|
};
|
|
10931
|
-
|
|
10930
|
+
ut.prototype.interfaces_ = function() {
|
|
10932
10931
|
return [];
|
|
10933
10932
|
};
|
|
10934
|
-
|
|
10935
|
-
return
|
|
10933
|
+
ut.prototype.getClass = function() {
|
|
10934
|
+
return ut;
|
|
10936
10935
|
};
|
|
10937
10936
|
No.OFFSET_SEGMENT_SEPARATION_FACTOR.get = function() {
|
|
10938
10937
|
return 1e-3;
|
|
@@ -10946,7 +10945,7 @@ No.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
|
|
|
10946
10945
|
No.MAX_CLOSING_SEG_LEN_FACTOR.get = function() {
|
|
10947
10946
|
return 80;
|
|
10948
10947
|
};
|
|
10949
|
-
Object.defineProperties(
|
|
10948
|
+
Object.defineProperties(ut, No);
|
|
10950
10949
|
var fe = function() {
|
|
10951
10950
|
this._distance = 0, this._precisionModel = null, this._bufParams = null;
|
|
10952
10951
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11054,7 +11053,7 @@ fe.prototype.computeOffsetCurve = function(t, e, n) {
|
|
|
11054
11053
|
n.addLastSegment();
|
|
11055
11054
|
};
|
|
11056
11055
|
fe.prototype.getSegGen = function(t) {
|
|
11057
|
-
return new
|
|
11056
|
+
return new ut(this._precisionModel, this._bufParams, t);
|
|
11058
11057
|
};
|
|
11059
11058
|
fe.prototype.interfaces_ = function() {
|
|
11060
11059
|
return [];
|
|
@@ -11071,7 +11070,7 @@ var ei = function() {
|
|
|
11071
11070
|
this._subgraphs = null, this._seg = new B(), this._cga = new M();
|
|
11072
11071
|
var t = arguments[0];
|
|
11073
11072
|
this._subgraphs = t;
|
|
11074
|
-
},
|
|
11073
|
+
}, Su = { DepthSegment: { configurable: !0 } };
|
|
11075
11074
|
ei.prototype.findStabbedSegments = function() {
|
|
11076
11075
|
var t = this;
|
|
11077
11076
|
if (arguments.length === 1) {
|
|
@@ -11081,7 +11080,7 @@ ei.prototype.findStabbedSegments = function() {
|
|
|
11081
11080
|
}
|
|
11082
11081
|
return n;
|
|
11083
11082
|
} else if (arguments.length === 3) {
|
|
11084
|
-
if (V(arguments[2], qe) && arguments[0] instanceof y && arguments[1] instanceof
|
|
11083
|
+
if (V(arguments[2], qe) && arguments[0] instanceof y && arguments[1] instanceof Ts)
|
|
11085
11084
|
for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
|
|
11086
11085
|
t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
|
|
11087
11086
|
var h = Math.max(t._seg.p0.x, t._seg.p1.x);
|
|
@@ -11112,10 +11111,10 @@ ei.prototype.interfaces_ = function() {
|
|
|
11112
11111
|
ei.prototype.getClass = function() {
|
|
11113
11112
|
return ei;
|
|
11114
11113
|
};
|
|
11115
|
-
|
|
11114
|
+
Su.DepthSegment.get = function() {
|
|
11116
11115
|
return Mr;
|
|
11117
11116
|
};
|
|
11118
|
-
Object.defineProperties(ei,
|
|
11117
|
+
Object.defineProperties(ei, Su);
|
|
11119
11118
|
var Mr = function() {
|
|
11120
11119
|
this._upwardSeg = null, this._leftDepth = null;
|
|
11121
11120
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11154,7 +11153,7 @@ tt.prototype.signedArea = function() {
|
|
|
11154
11153
|
};
|
|
11155
11154
|
tt.prototype.interpolateZ = function(t) {
|
|
11156
11155
|
if (t === null)
|
|
11157
|
-
throw new
|
|
11156
|
+
throw new ct("Supplied point is null.");
|
|
11158
11157
|
return tt.interpolateZ(t, this.p0, this.p1, this.p2);
|
|
11159
11158
|
};
|
|
11160
11159
|
tt.prototype.longestSideLength = function() {
|
|
@@ -11523,7 +11522,7 @@ Zt.prototype.interfaces_ = function() {
|
|
|
11523
11522
|
Zt.prototype.getClass = function() {
|
|
11524
11523
|
return Zt;
|
|
11525
11524
|
};
|
|
11526
|
-
var
|
|
11525
|
+
var Qc = function(r) {
|
|
11527
11526
|
function t() {
|
|
11528
11527
|
r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
11529
11528
|
}
|
|
@@ -11676,12 +11675,12 @@ var Zc = function(r) {
|
|
|
11676
11675
|
}, t.prototype.getClass = function() {
|
|
11677
11676
|
return t;
|
|
11678
11677
|
}, t;
|
|
11679
|
-
}(Zt),
|
|
11678
|
+
}(Zt), wu = function(r) {
|
|
11680
11679
|
function t() {
|
|
11681
11680
|
r.apply(this, arguments);
|
|
11682
11681
|
}
|
|
11683
11682
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
|
|
11684
|
-
return new us(n, new
|
|
11683
|
+
return new us(n, new Qc());
|
|
11685
11684
|
}, t.prototype.interfaces_ = function() {
|
|
11686
11685
|
return [];
|
|
11687
11686
|
}, t.prototype.getClass = function() {
|
|
@@ -12011,7 +12010,7 @@ var Ut = function r() {
|
|
|
12011
12010
|
for (var e = 0; e < 2; e++)
|
|
12012
12011
|
for (var n = 0; n < 3; n++)
|
|
12013
12012
|
t._depth[e][n] = r.NULL_VALUE;
|
|
12014
|
-
},
|
|
12013
|
+
}, Lu = { NULL_VALUE: { configurable: !0 } };
|
|
12015
12014
|
Ut.prototype.getDepth = function(t, e) {
|
|
12016
12015
|
return this._depth[t][e];
|
|
12017
12016
|
};
|
|
@@ -12076,10 +12075,10 @@ Ut.prototype.getClass = function() {
|
|
|
12076
12075
|
Ut.depthAtLocation = function(t) {
|
|
12077
12076
|
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : Ut.NULL_VALUE;
|
|
12078
12077
|
};
|
|
12079
|
-
|
|
12078
|
+
Lu.NULL_VALUE.get = function() {
|
|
12080
12079
|
return -1;
|
|
12081
12080
|
};
|
|
12082
|
-
Object.defineProperties(Ut,
|
|
12081
|
+
Object.defineProperties(Ut, Lu);
|
|
12083
12082
|
var qo = function(r) {
|
|
12084
12083
|
function t() {
|
|
12085
12084
|
if (r.call(this), this.pts = null, this._env = null, this.eiList = new On(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new Ut(), this._depthDelta = 0, arguments.length === 1) {
|
|
@@ -12235,7 +12234,7 @@ re.prototype.createEmptyResultGeometry = function() {
|
|
|
12235
12234
|
re.prototype.getNoder = function(t) {
|
|
12236
12235
|
if (this._workingNoder !== null)
|
|
12237
12236
|
return this._workingNoder;
|
|
12238
|
-
var e = new
|
|
12237
|
+
var e = new Hs(), n = new Xr();
|
|
12239
12238
|
return n.setPrecisionModel(t), e.setSegmentIntersector(new Pe(n)), e;
|
|
12240
12239
|
};
|
|
12241
12240
|
re.prototype.buffer = function(t, e) {
|
|
@@ -12244,7 +12243,7 @@ re.prototype.buffer = function(t, e) {
|
|
|
12244
12243
|
var i = new fe(n, this._bufParams), o = new Fe(t, e, i), s = o.getCurves();
|
|
12245
12244
|
if (s.size() <= 0)
|
|
12246
12245
|
return this.createEmptyResultGeometry();
|
|
12247
|
-
this.computeNodedEdges(s, n), this._graph = new pt(new
|
|
12246
|
+
this.computeNodedEdges(s, n), this._graph = new pt(new wu()), this._graph.addEdges(this._edgeList.getEdges());
|
|
12248
12247
|
var a = this.createSubgraphs(this._graph), u = new ve(this._geomFact);
|
|
12249
12248
|
this.buildSubgraphs(a, u);
|
|
12250
12249
|
var l = u.getPolygons();
|
|
@@ -12342,7 +12341,7 @@ var dn = function() {
|
|
|
12342
12341
|
this._li = new Xr(), this._segStrings = null;
|
|
12343
12342
|
var t = arguments[0];
|
|
12344
12343
|
this._segStrings = t;
|
|
12345
|
-
},
|
|
12344
|
+
}, bu = { fact: { configurable: !0 } };
|
|
12346
12345
|
dn.prototype.checkEndPtVertexIntersections = function() {
|
|
12347
12346
|
var t = this;
|
|
12348
12347
|
if (arguments.length === 0)
|
|
@@ -12410,17 +12409,17 @@ dn.prototype.interfaces_ = function() {
|
|
|
12410
12409
|
dn.prototype.getClass = function() {
|
|
12411
12410
|
return dn;
|
|
12412
12411
|
};
|
|
12413
|
-
|
|
12412
|
+
bu.fact.get = function() {
|
|
12414
12413
|
return new H();
|
|
12415
12414
|
};
|
|
12416
|
-
Object.defineProperties(dn,
|
|
12415
|
+
Object.defineProperties(dn, bu);
|
|
12417
12416
|
var he = function() {
|
|
12418
12417
|
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;
|
|
12419
12418
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
12420
12419
|
if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
|
|
12421
|
-
throw new
|
|
12420
|
+
throw new ct("Scale factor must be non-zero");
|
|
12422
12421
|
e !== 1 && (this._pt = new y(this.scale(t.x), this.scale(t.y)), this._p0Scaled = new y(), this._p1Scaled = new y()), this.initCorners(this._pt);
|
|
12423
|
-
},
|
|
12422
|
+
}, Pu = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
|
|
12424
12423
|
he.prototype.intersectsScaled = function(t, e) {
|
|
12425
12424
|
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;
|
|
12426
12425
|
if (a)
|
|
@@ -12468,10 +12467,10 @@ he.prototype.interfaces_ = function() {
|
|
|
12468
12467
|
he.prototype.getClass = function() {
|
|
12469
12468
|
return he;
|
|
12470
12469
|
};
|
|
12471
|
-
|
|
12470
|
+
Pu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
|
|
12472
12471
|
return 0.75;
|
|
12473
12472
|
};
|
|
12474
|
-
Object.defineProperties(he,
|
|
12473
|
+
Object.defineProperties(he, Pu);
|
|
12475
12474
|
var ho = function() {
|
|
12476
12475
|
this.tempEnv1 = new k(), this.selectedSegment = new B();
|
|
12477
12476
|
};
|
|
@@ -12493,13 +12492,13 @@ var Di = function() {
|
|
|
12493
12492
|
this._index = null;
|
|
12494
12493
|
var t = arguments[0];
|
|
12495
12494
|
this._index = t;
|
|
12496
|
-
},
|
|
12495
|
+
}, Ru = { HotPixelSnapAction: { configurable: !0 } };
|
|
12497
12496
|
Di.prototype.snap = function() {
|
|
12498
12497
|
if (arguments.length === 1) {
|
|
12499
12498
|
var t = arguments[0];
|
|
12500
12499
|
return this.snap(t, null, -1);
|
|
12501
12500
|
} else if (arguments.length === 3) {
|
|
12502
|
-
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new
|
|
12501
|
+
var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Ou(e, n, i);
|
|
12503
12502
|
return this._index.query(o, {
|
|
12504
12503
|
interfaces_: function() {
|
|
12505
12504
|
return [fr];
|
|
@@ -12517,11 +12516,11 @@ Di.prototype.interfaces_ = function() {
|
|
|
12517
12516
|
Di.prototype.getClass = function() {
|
|
12518
12517
|
return Di;
|
|
12519
12518
|
};
|
|
12520
|
-
|
|
12521
|
-
return
|
|
12519
|
+
Ru.HotPixelSnapAction.get = function() {
|
|
12520
|
+
return Ou;
|
|
12522
12521
|
};
|
|
12523
|
-
Object.defineProperties(Di,
|
|
12524
|
-
var
|
|
12522
|
+
Object.defineProperties(Di, Ru);
|
|
12523
|
+
var Ou = function(r) {
|
|
12525
12524
|
function t() {
|
|
12526
12525
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
12527
12526
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -12580,7 +12579,7 @@ Tn.prototype.checkCorrectness = function(t) {
|
|
|
12580
12579
|
try {
|
|
12581
12580
|
n.checkValid();
|
|
12582
12581
|
} catch (i) {
|
|
12583
|
-
if (i instanceof
|
|
12582
|
+
if (i instanceof pu)
|
|
12584
12583
|
i.printStackTrace();
|
|
12585
12584
|
else
|
|
12586
12585
|
throw i;
|
|
@@ -12612,7 +12611,7 @@ Tn.prototype.computeVertexSnaps = function() {
|
|
|
12612
12611
|
}
|
|
12613
12612
|
};
|
|
12614
12613
|
Tn.prototype.computeNodes = function(t) {
|
|
12615
|
-
this._nodedSegStrings = t, this._noder = new
|
|
12614
|
+
this._nodedSegStrings = t, this._noder = new Hs(), this._pointSnapper = new Di(this._noder.getIndex()), this.snapRound(t, this._li);
|
|
12616
12615
|
};
|
|
12617
12616
|
Tn.prototype.computeIntersectionSnaps = function(t) {
|
|
12618
12617
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
@@ -12828,7 +12827,7 @@ Nn.computeDistance = function() {
|
|
|
12828
12827
|
};
|
|
12829
12828
|
var kr = function(t) {
|
|
12830
12829
|
this._maxPtDist = new te(), this._inputGeom = t || null;
|
|
12831
|
-
},
|
|
12830
|
+
}, js = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
|
|
12832
12831
|
kr.prototype.computeMaxMidpointDistance = function(t) {
|
|
12833
12832
|
var e = new dr(this._inputGeom);
|
|
12834
12833
|
t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
|
|
@@ -12849,13 +12848,13 @@ kr.prototype.interfaces_ = function() {
|
|
|
12849
12848
|
kr.prototype.getClass = function() {
|
|
12850
12849
|
return kr;
|
|
12851
12850
|
};
|
|
12852
|
-
|
|
12851
|
+
js.MaxPointDistanceFilter.get = function() {
|
|
12853
12852
|
return ri;
|
|
12854
12853
|
};
|
|
12855
|
-
|
|
12854
|
+
js.MaxMidpointDistanceFilter.get = function() {
|
|
12856
12855
|
return dr;
|
|
12857
12856
|
};
|
|
12858
|
-
Object.defineProperties(kr,
|
|
12857
|
+
Object.defineProperties(kr, js);
|
|
12859
12858
|
var ri = function(t) {
|
|
12860
12859
|
this._maxPtDist = new te(), this._minPtDist = new te(), this._geom = t || null;
|
|
12861
12860
|
};
|
|
@@ -12986,7 +12985,7 @@ var Ke = function() {
|
|
|
12986
12985
|
if (arguments.length === 1) {
|
|
12987
12986
|
var t = arguments[0];
|
|
12988
12987
|
if (t === null)
|
|
12989
|
-
throw new
|
|
12988
|
+
throw new ct("Rule must be non-null");
|
|
12990
12989
|
this._boundaryRule = t;
|
|
12991
12990
|
}
|
|
12992
12991
|
}
|
|
@@ -13069,7 +13068,7 @@ var ee = function r() {
|
|
|
13069
13068
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
13070
13069
|
this._component = n, this._segIndex = i, this._pt = o;
|
|
13071
13070
|
}
|
|
13072
|
-
},
|
|
13071
|
+
}, Tu = { INSIDE_AREA: { configurable: !0 } };
|
|
13073
13072
|
ee.prototype.isInsideArea = function() {
|
|
13074
13073
|
return this._segIndex === ee.INSIDE_AREA;
|
|
13075
13074
|
};
|
|
@@ -13088,10 +13087,10 @@ ee.prototype.interfaces_ = function() {
|
|
|
13088
13087
|
ee.prototype.getClass = function() {
|
|
13089
13088
|
return ee;
|
|
13090
13089
|
};
|
|
13091
|
-
|
|
13090
|
+
Tu.INSIDE_AREA.get = function() {
|
|
13092
13091
|
return -1;
|
|
13093
13092
|
};
|
|
13094
|
-
Object.defineProperties(ee,
|
|
13093
|
+
Object.defineProperties(ee, Tu);
|
|
13095
13094
|
var sr = function(t) {
|
|
13096
13095
|
this._pts = t || null;
|
|
13097
13096
|
};
|
|
@@ -13243,7 +13242,7 @@ Xt.prototype.computeMinDistancePoints = function(t, e, n) {
|
|
|
13243
13242
|
};
|
|
13244
13243
|
Xt.prototype.distance = function() {
|
|
13245
13244
|
if (this._geom[0] === null || this._geom[1] === null)
|
|
13246
|
-
throw new
|
|
13245
|
+
throw new ct("null geometries are not supported");
|
|
13247
13246
|
return this._geom[0].isEmpty() || this._geom[1].isEmpty() ? 0 : (this.computeMinDistance(), this._minDistance);
|
|
13248
13247
|
};
|
|
13249
13248
|
Xt.prototype.computeMinDistanceLines = function(t, e, n) {
|
|
@@ -13370,13 +13369,13 @@ var De = function() {
|
|
|
13370
13369
|
this._g0 = null, this._g1 = null, this._ptDist = new jt(), this._densifyFrac = 0;
|
|
13371
13370
|
var t = arguments[0], e = arguments[1];
|
|
13372
13371
|
this._g0 = t, this._g1 = e;
|
|
13373
|
-
},
|
|
13372
|
+
}, Ks = { MaxPointDistanceFilter: { configurable: !0 }, MaxDensifiedByFractionDistanceFilter: { configurable: !0 } };
|
|
13374
13373
|
De.prototype.getCoordinates = function() {
|
|
13375
13374
|
return this._ptDist.getCoordinates();
|
|
13376
13375
|
};
|
|
13377
13376
|
De.prototype.setDensifyFraction = function(t) {
|
|
13378
13377
|
if (t > 1 || t <= 0)
|
|
13379
|
-
throw new
|
|
13378
|
+
throw new ct("Fraction is not in range (0.0 - 1.0]");
|
|
13380
13379
|
this._densifyFrac = t;
|
|
13381
13380
|
};
|
|
13382
13381
|
De.prototype.compute = function(t, e) {
|
|
@@ -13410,13 +13409,13 @@ De.distance = function() {
|
|
|
13410
13409
|
return a.setDensifyFraction(s), a.distance();
|
|
13411
13410
|
}
|
|
13412
13411
|
};
|
|
13413
|
-
|
|
13412
|
+
Ks.MaxPointDistanceFilter.get = function() {
|
|
13414
13413
|
return oi;
|
|
13415
13414
|
};
|
|
13416
|
-
|
|
13415
|
+
Ks.MaxDensifiedByFractionDistanceFilter.get = function() {
|
|
13417
13416
|
return vr;
|
|
13418
13417
|
};
|
|
13419
|
-
Object.defineProperties(De,
|
|
13418
|
+
Object.defineProperties(De, Ks);
|
|
13420
13419
|
var oi = function() {
|
|
13421
13420
|
this._maxPtDist = new jt(), this._minPtDist = new jt(), this._euclideanDist = new rn(), this._geom = null;
|
|
13422
13421
|
var t = arguments[0];
|
|
@@ -13465,7 +13464,7 @@ vr.prototype.getClass = function() {
|
|
|
13465
13464
|
};
|
|
13466
13465
|
var pe = function(t, e, n) {
|
|
13467
13466
|
this._minValidDistance = null, this._maxValidDistance = null, this._minDistanceFound = null, this._maxDistanceFound = null, this._isValid = !0, this._errMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._bufDistance = e || null, this._result = n || null;
|
|
13468
|
-
},
|
|
13467
|
+
}, Qs = { VERBOSE: { configurable: !0 }, MAX_DISTANCE_DIFF_FRAC: { configurable: !0 } };
|
|
13469
13468
|
pe.prototype.checkMaximumDistance = function(t, e, n) {
|
|
13470
13469
|
var i = new De(e, t);
|
|
13471
13470
|
if (i.setDensifyFraction(0.25), this._maxDistanceFound = i.orientedDistance(), this._maxDistanceFound > n) {
|
|
@@ -13522,16 +13521,16 @@ pe.prototype.interfaces_ = function() {
|
|
|
13522
13521
|
pe.prototype.getClass = function() {
|
|
13523
13522
|
return pe;
|
|
13524
13523
|
};
|
|
13525
|
-
|
|
13524
|
+
Qs.VERBOSE.get = function() {
|
|
13526
13525
|
return !1;
|
|
13527
13526
|
};
|
|
13528
|
-
|
|
13527
|
+
Qs.MAX_DISTANCE_DIFF_FRAC.get = function() {
|
|
13529
13528
|
return 0.012;
|
|
13530
13529
|
};
|
|
13531
|
-
Object.defineProperties(pe,
|
|
13530
|
+
Object.defineProperties(pe, Qs);
|
|
13532
13531
|
var Yt = function(t, e, n) {
|
|
13533
13532
|
this._isValid = !0, this._errorMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._distance = e || null, this._result = n || null;
|
|
13534
|
-
},
|
|
13533
|
+
}, Zs = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
|
|
13535
13534
|
Yt.prototype.isValid = function() {
|
|
13536
13535
|
return this.checkPolygonal(), this._isValid ? (this.checkExpectedEmpty(), this._isValid ? (this.checkEnvelope(), this._isValid ? (this.checkArea(), this._isValid ? (this.checkDistance(), this._isValid) : this._isValid) : this._isValid) : this._isValid) : this._isValid;
|
|
13537
13536
|
};
|
|
@@ -13589,13 +13588,13 @@ Yt.isValid = function(t, e, n) {
|
|
|
13589
13588
|
var i = new Yt(t, e, n);
|
|
13590
13589
|
return !!i.isValid();
|
|
13591
13590
|
};
|
|
13592
|
-
|
|
13591
|
+
Zs.VERBOSE.get = function() {
|
|
13593
13592
|
return !1;
|
|
13594
13593
|
};
|
|
13595
|
-
|
|
13594
|
+
Zs.MAX_ENV_DIFF_FRAC.get = function() {
|
|
13596
13595
|
return 0.012;
|
|
13597
13596
|
};
|
|
13598
|
-
Object.defineProperties(Yt,
|
|
13597
|
+
Object.defineProperties(Yt, Zs);
|
|
13599
13598
|
var vn = function() {
|
|
13600
13599
|
this._pts = null, this._data = null;
|
|
13601
13600
|
var t = arguments[0], e = arguments[1];
|
|
@@ -13715,7 +13714,7 @@ Qe.prototype.setFindAllIntersections = function(t) {
|
|
|
13715
13714
|
};
|
|
13716
13715
|
Qe.prototype.checkInteriorIntersections = function() {
|
|
13717
13716
|
this._isValid = !0, this._segInt = new At(this._li), this._segInt.setFindAllIntersections(this._findAllIntersections);
|
|
13718
|
-
var t = new
|
|
13717
|
+
var t = new Hs();
|
|
13719
13718
|
if (t.setSegmentIntersector(this._segInt), t.computeNodes(this._segStrings), this._segInt.hasIntersection())
|
|
13720
13719
|
return this._isValid = !1, null;
|
|
13721
13720
|
};
|
|
@@ -13951,7 +13950,7 @@ ge.prototype.transform = function(t) {
|
|
|
13951
13950
|
return this.transformMultiPolygon(t, null);
|
|
13952
13951
|
if (t instanceof ie)
|
|
13953
13952
|
return this.transformGeometryCollection(t, null);
|
|
13954
|
-
throw new
|
|
13953
|
+
throw new ct("Unknown Geometry subtype: " + t.getClass().getName());
|
|
13955
13954
|
};
|
|
13956
13955
|
ge.prototype.transformLinearRing = function(t, e) {
|
|
13957
13956
|
var n = this.transformCoordinates(t.getCoordinateSequence(), t);
|
|
@@ -14033,13 +14032,13 @@ Dn.isClosed = function(t) {
|
|
|
14033
14032
|
};
|
|
14034
14033
|
var Et = function(t) {
|
|
14035
14034
|
this._srcGeom = t || null;
|
|
14036
|
-
},
|
|
14035
|
+
}, Du = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
|
|
14037
14036
|
Et.prototype.snapTo = function(t, e) {
|
|
14038
|
-
var n = this.extractTargetCoordinates(t), i = new
|
|
14037
|
+
var n = this.extractTargetCoordinates(t), i = new Mu(e, n);
|
|
14039
14038
|
return i.transform(this._srcGeom);
|
|
14040
14039
|
};
|
|
14041
14040
|
Et.prototype.snapToSelf = function(t, e) {
|
|
14042
|
-
var n = this.extractTargetCoordinates(this._srcGeom), i = new
|
|
14041
|
+
var n = this.extractTargetCoordinates(this._srcGeom), i = new Mu(t, n, !0), o = i.transform(this._srcGeom), s = o;
|
|
14043
14042
|
return e && V(s, cr) && (s = o.buffer(0)), s;
|
|
14044
14043
|
};
|
|
14045
14044
|
Et.prototype.computeSnapTolerance = function(t) {
|
|
@@ -14091,11 +14090,11 @@ Et.snapToSelf = function(t, e, n) {
|
|
|
14091
14090
|
var i = new Et(t);
|
|
14092
14091
|
return i.snapToSelf(e, n);
|
|
14093
14092
|
};
|
|
14094
|
-
|
|
14093
|
+
Du.SNAP_PRECISION_FACTOR.get = function() {
|
|
14095
14094
|
return 1e-9;
|
|
14096
14095
|
};
|
|
14097
|
-
Object.defineProperties(Et,
|
|
14098
|
-
var
|
|
14096
|
+
Object.defineProperties(Et, Du);
|
|
14097
|
+
var Mu = function(r) {
|
|
14099
14098
|
function t(e, n, i) {
|
|
14100
14099
|
r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
|
|
14101
14100
|
}
|
|
@@ -14158,7 +14157,7 @@ $t.numCommonMostSigMantissaBits = function(t, e) {
|
|
|
14158
14157
|
};
|
|
14159
14158
|
var yr = function() {
|
|
14160
14159
|
this._commonCoord = null, this._ccFilter = new ui();
|
|
14161
|
-
},
|
|
14160
|
+
}, Js = { CommonCoordinateFilter: { configurable: !0 }, Translater: { configurable: !0 } };
|
|
14162
14161
|
yr.prototype.addCommonBits = function(t) {
|
|
14163
14162
|
var e = new mr(this._commonCoord);
|
|
14164
14163
|
t.apply(e), t.geometryChanged();
|
|
@@ -14183,13 +14182,13 @@ yr.prototype.interfaces_ = function() {
|
|
|
14183
14182
|
yr.prototype.getClass = function() {
|
|
14184
14183
|
return yr;
|
|
14185
14184
|
};
|
|
14186
|
-
|
|
14185
|
+
Js.CommonCoordinateFilter.get = function() {
|
|
14187
14186
|
return ui;
|
|
14188
14187
|
};
|
|
14189
|
-
|
|
14188
|
+
Js.Translater.get = function() {
|
|
14190
14189
|
return mr;
|
|
14191
14190
|
};
|
|
14192
|
-
Object.defineProperties(yr,
|
|
14191
|
+
Object.defineProperties(yr, Js);
|
|
14193
14192
|
var ui = function() {
|
|
14194
14193
|
this._commonBitsX = new $t(), this._commonBitsY = new $t();
|
|
14195
14194
|
};
|
|
@@ -14346,7 +14345,7 @@ var me = function r() {
|
|
|
14346
14345
|
var n = arguments[0], i = arguments[1], o = arguments[2];
|
|
14347
14346
|
this._eventType = r.INSERT, this._label = n, this._xValue = i, this._obj = o;
|
|
14348
14347
|
}
|
|
14349
|
-
},
|
|
14348
|
+
}, $s = { INSERT: { configurable: !0 }, DELETE: { configurable: !0 } };
|
|
14350
14349
|
me.prototype.isDelete = function() {
|
|
14351
14350
|
return this._eventType === me.DELETE;
|
|
14352
14351
|
};
|
|
@@ -14378,13 +14377,13 @@ me.prototype.interfaces_ = function() {
|
|
|
14378
14377
|
me.prototype.getClass = function() {
|
|
14379
14378
|
return me;
|
|
14380
14379
|
};
|
|
14381
|
-
|
|
14380
|
+
$s.INSERT.get = function() {
|
|
14382
14381
|
return 1;
|
|
14383
14382
|
};
|
|
14384
|
-
|
|
14383
|
+
$s.DELETE.get = function() {
|
|
14385
14384
|
return 2;
|
|
14386
14385
|
};
|
|
14387
|
-
Object.defineProperties(me,
|
|
14386
|
+
Object.defineProperties(me, $s);
|
|
14388
14387
|
var Xo = function() {
|
|
14389
14388
|
};
|
|
14390
14389
|
Xo.prototype.interfaces_ = function() {
|
|
@@ -14458,7 +14457,7 @@ Wt.prototype.getClass = function() {
|
|
|
14458
14457
|
Wt.isAdjacentSegments = function(t, e) {
|
|
14459
14458
|
return Math.abs(t - e) === 1;
|
|
14460
14459
|
};
|
|
14461
|
-
var
|
|
14460
|
+
var Zc = function(r) {
|
|
14462
14461
|
function t() {
|
|
14463
14462
|
r.call(this), this.events = new O(), this.nOverlaps = null;
|
|
14464
14463
|
}
|
|
@@ -14520,7 +14519,7 @@ var Jc = function(r) {
|
|
|
14520
14519
|
}, t;
|
|
14521
14520
|
}(Xo), Mn = function() {
|
|
14522
14521
|
this._min = z.POSITIVE_INFINITY, this._max = z.NEGATIVE_INFINITY;
|
|
14523
|
-
},
|
|
14522
|
+
}, Au = { NodeComparator: { configurable: !0 } };
|
|
14524
14523
|
Mn.prototype.getMin = function() {
|
|
14525
14524
|
return this._min;
|
|
14526
14525
|
};
|
|
@@ -14539,10 +14538,10 @@ Mn.prototype.interfaces_ = function() {
|
|
|
14539
14538
|
Mn.prototype.getClass = function() {
|
|
14540
14539
|
return Mn;
|
|
14541
14540
|
};
|
|
14542
|
-
|
|
14541
|
+
Au.NodeComparator.get = function() {
|
|
14543
14542
|
return po;
|
|
14544
14543
|
};
|
|
14545
|
-
Object.defineProperties(Mn,
|
|
14544
|
+
Object.defineProperties(Mn, Au);
|
|
14546
14545
|
var po = function() {
|
|
14547
14546
|
};
|
|
14548
14547
|
po.prototype.compare = function(t, e) {
|
|
@@ -14555,7 +14554,7 @@ po.prototype.interfaces_ = function() {
|
|
|
14555
14554
|
po.prototype.getClass = function() {
|
|
14556
14555
|
return po;
|
|
14557
14556
|
};
|
|
14558
|
-
var
|
|
14557
|
+
var Jc = function(r) {
|
|
14559
14558
|
function t() {
|
|
14560
14559
|
r.call(this), this._item = null;
|
|
14561
14560
|
var e = arguments[0], n = arguments[1], i = arguments[2];
|
|
@@ -14570,7 +14569,7 @@ var $c = function(r) {
|
|
|
14570
14569
|
}, t.prototype.getClass = function() {
|
|
14571
14570
|
return t;
|
|
14572
14571
|
}, t;
|
|
14573
|
-
}(Mn),
|
|
14572
|
+
}(Mn), $c = function(r) {
|
|
14574
14573
|
function t() {
|
|
14575
14574
|
r.call(this), this._node1 = null, this._node2 = null;
|
|
14576
14575
|
var e = arguments[0], n = arguments[1];
|
|
@@ -14602,7 +14601,7 @@ An.prototype.buildTree = function() {
|
|
|
14602
14601
|
An.prototype.insert = function(t, e, n) {
|
|
14603
14602
|
if (this._root !== null)
|
|
14604
14603
|
throw new Error("Index cannot be added to once it has been queried");
|
|
14605
|
-
this._leaves.add(new
|
|
14604
|
+
this._leaves.add(new Jc(t, e, n));
|
|
14606
14605
|
};
|
|
14607
14606
|
An.prototype.query = function(t, e, n) {
|
|
14608
14607
|
this.init(), this._root.query(t, e, n);
|
|
@@ -14627,7 +14626,7 @@ An.prototype.buildLevel = function(t, e) {
|
|
|
14627
14626
|
if (o === null)
|
|
14628
14627
|
e.add(i);
|
|
14629
14628
|
else {
|
|
14630
|
-
var s = new
|
|
14629
|
+
var s = new $c(t.get(n), t.get(n + 1));
|
|
14631
14630
|
e.add(s);
|
|
14632
14631
|
}
|
|
14633
14632
|
}
|
|
@@ -14657,9 +14656,9 @@ var Ai = function() {
|
|
|
14657
14656
|
this._index = null;
|
|
14658
14657
|
var t = arguments[0];
|
|
14659
14658
|
if (!V(t, cr))
|
|
14660
|
-
throw new
|
|
14659
|
+
throw new ct("Argument must be Polygonal");
|
|
14661
14660
|
this._index = new Gr(t);
|
|
14662
|
-
},
|
|
14661
|
+
}, ta = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
14663
14662
|
Ai.prototype.locate = function(t) {
|
|
14664
14663
|
var e = new sn(t), n = new Fi(e);
|
|
14665
14664
|
return this._index.query(t.y, t.y, n), e.getLocation();
|
|
@@ -14670,13 +14669,13 @@ Ai.prototype.interfaces_ = function() {
|
|
|
14670
14669
|
Ai.prototype.getClass = function() {
|
|
14671
14670
|
return Ai;
|
|
14672
14671
|
};
|
|
14673
|
-
|
|
14672
|
+
ta.SegmentVisitor.get = function() {
|
|
14674
14673
|
return Fi;
|
|
14675
14674
|
};
|
|
14676
|
-
|
|
14675
|
+
ta.IntervalIndexedGeometry.get = function() {
|
|
14677
14676
|
return Gr;
|
|
14678
14677
|
};
|
|
14679
|
-
Object.defineProperties(Ai,
|
|
14678
|
+
Object.defineProperties(Ai, ta);
|
|
14680
14679
|
var Fi = function() {
|
|
14681
14680
|
this._counter = null;
|
|
14682
14681
|
var t = arguments[0];
|
|
@@ -14726,7 +14725,7 @@ Gr.prototype.getClass = function() {
|
|
|
14726
14725
|
};
|
|
14727
14726
|
var ji = function(r) {
|
|
14728
14727
|
function t() {
|
|
14729
|
-
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new
|
|
14728
|
+
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new mu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new Ke(), arguments.length === 2) {
|
|
14730
14729
|
var e = arguments[0], n = arguments[1], i = Me.OGC_SFS_BOUNDARY_RULE;
|
|
14731
14730
|
this._argIndex = e, this._parentGeom = n, this._boundaryNodeRule = i, n !== null && this.add(n);
|
|
14732
14731
|
} else if (arguments.length === 3) {
|
|
@@ -14818,7 +14817,7 @@ var ji = function(r) {
|
|
|
14818
14817
|
var s = this._nodes.addNode(i), a = s.getLabel();
|
|
14819
14818
|
a === null ? s._label = new et(n, o) : a.setLocation(n, o);
|
|
14820
14819
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
14821
|
-
return new
|
|
14820
|
+
return new Zc();
|
|
14822
14821
|
}, t.prototype.addSelfIntersectionNodes = function(n) {
|
|
14823
14822
|
for (var i = this, o = this._edges.iterator(); o.hasNext(); )
|
|
14824
14823
|
for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -14920,7 +14919,7 @@ Lr.MapOp = function() {
|
|
|
14920
14919
|
var U = function(r) {
|
|
14921
14920
|
function t() {
|
|
14922
14921
|
var e = arguments[0], n = arguments[1];
|
|
14923
|
-
r.call(this, e, n), this._ptLocator = new Ke(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new je(), this._resultPolyList = new O(), this._resultLineList = new O(), this._resultPointList = new O(), this._graph = new pt(new
|
|
14922
|
+
r.call(this, e, n), this._ptLocator = new Ke(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new je(), this._resultPolyList = new O(), this._resultLineList = new O(), this._resultPointList = new O(), this._graph = new pt(new wu()), this._geomFact = e.getFactory();
|
|
14924
14923
|
}
|
|
14925
14924
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.insertUniqueEdge = function(n) {
|
|
14926
14925
|
var i = this._edgeList.findEqualEdge(n);
|
|
@@ -15208,7 +15207,7 @@ var Re = function r() {
|
|
|
15208
15207
|
this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new O();
|
|
15209
15208
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
15210
15209
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new ar(this._geom[0], this._boundaryDistanceTolerance), new ar(this._geom[1], this._boundaryDistanceTolerance), new ar(this._geom[2], this._boundaryDistanceTolerance)];
|
|
15211
|
-
},
|
|
15210
|
+
}, Fu = { TOLERANCE: { configurable: !0 } };
|
|
15212
15211
|
Re.prototype.reportResult = function(t, e, n) {
|
|
15213
15212
|
qt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
15214
15213
|
};
|
|
@@ -15261,10 +15260,10 @@ Re.isValid = function(t, e, n, i) {
|
|
|
15261
15260
|
var o = new Re(t, e, i);
|
|
15262
15261
|
return o.isValid(n);
|
|
15263
15262
|
};
|
|
15264
|
-
|
|
15263
|
+
Fu.TOLERANCE.get = function() {
|
|
15265
15264
|
return 1e-6;
|
|
15266
15265
|
};
|
|
15267
|
-
Object.defineProperties(Re,
|
|
15266
|
+
Object.defineProperties(Re, Fu);
|
|
15268
15267
|
var Ne = function r(t) {
|
|
15269
15268
|
this._geomFactory = null, this._skipEmpty = !1, this._inputGeoms = null, this._geomFactory = r.extractFactory(t), this._inputGeoms = t;
|
|
15270
15269
|
};
|
|
@@ -15318,7 +15317,7 @@ var St = function() {
|
|
|
15318
15317
|
this._inputPolys = null, this._geomFactory = null;
|
|
15319
15318
|
var t = arguments[0];
|
|
15320
15319
|
this._inputPolys = t, this._inputPolys === null && (this._inputPolys = new O());
|
|
15321
|
-
},
|
|
15320
|
+
}, ku = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
|
|
15322
15321
|
St.prototype.reduceToGeometries = function(t) {
|
|
15323
15322
|
for (var e = this, n = new O(), i = t.iterator(); i.hasNext(); ) {
|
|
15324
15323
|
var o = i.next(), s = null;
|
|
@@ -15350,7 +15349,7 @@ St.prototype.union = function() {
|
|
|
15350
15349
|
if (this._inputPolys.isEmpty())
|
|
15351
15350
|
return null;
|
|
15352
15351
|
this._geomFactory = this._inputPolys.iterator().next().getFactory();
|
|
15353
|
-
for (var t = new
|
|
15352
|
+
for (var t = new Cu(St.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
|
|
15354
15353
|
var n = e.next();
|
|
15355
15354
|
t.insert(n.getEnvelopeInternal(), n);
|
|
15356
15355
|
}
|
|
@@ -15426,10 +15425,10 @@ St.union = function(t) {
|
|
|
15426
15425
|
var e = new St(t);
|
|
15427
15426
|
return e.union();
|
|
15428
15427
|
};
|
|
15429
|
-
|
|
15428
|
+
ku.STRTREE_NODE_CAPACITY.get = function() {
|
|
15430
15429
|
return 4;
|
|
15431
15430
|
};
|
|
15432
|
-
Object.defineProperties(St,
|
|
15431
|
+
Object.defineProperties(St, ku);
|
|
15433
15432
|
var Yo = function() {
|
|
15434
15433
|
};
|
|
15435
15434
|
Yo.prototype.interfaces_ = function() {
|
|
@@ -15462,19 +15461,19 @@ Wo.prototype = {
|
|
|
15462
15461
|
this.t = 0;
|
|
15463
15462
|
},
|
|
15464
15463
|
add: function(r) {
|
|
15465
|
-
|
|
15464
|
+
Ta(bo, r, this.t), Ta(this, bo.s, this.s), this.s ? this.t += bo.t : this.s = bo.t;
|
|
15466
15465
|
},
|
|
15467
15466
|
valueOf: function() {
|
|
15468
15467
|
return this.s;
|
|
15469
15468
|
}
|
|
15470
15469
|
};
|
|
15471
15470
|
var bo = new Wo();
|
|
15472
|
-
function
|
|
15471
|
+
function Ta(r, t, e) {
|
|
15473
15472
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
15474
15473
|
r.t = t - o + (e - i);
|
|
15475
15474
|
}
|
|
15476
|
-
var vt = 1e-6, it = Math.PI, Wn = it / 2,
|
|
15477
|
-
function
|
|
15475
|
+
var vt = 1e-6, it = Math.PI, Wn = it / 2, Da = it / 4, tr = it * 2, Nr = 180 / it, tn = it / 180, ne = Math.abs, tf = Math.atan, Gi = Math.atan2, bt = Math.cos, Pt = Math.sin, Wi = Math.sqrt;
|
|
15476
|
+
function Bu(r) {
|
|
15478
15477
|
return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
|
|
15479
15478
|
}
|
|
15480
15479
|
function li(r) {
|
|
@@ -15483,9 +15482,9 @@ function li(r) {
|
|
|
15483
15482
|
function Ki() {
|
|
15484
15483
|
}
|
|
15485
15484
|
function Ho(r, t) {
|
|
15486
|
-
r &&
|
|
15485
|
+
r && Aa.hasOwnProperty(r.type) && Aa[r.type](r, t);
|
|
15487
15486
|
}
|
|
15488
|
-
var
|
|
15487
|
+
var Ma = {
|
|
15489
15488
|
Feature: function(r, t) {
|
|
15490
15489
|
Ho(r.geometry, t);
|
|
15491
15490
|
},
|
|
@@ -15493,7 +15492,7 @@ var Aa = {
|
|
|
15493
15492
|
for (var e = r.features, n = -1, i = e.length; ++n < i; )
|
|
15494
15493
|
Ho(e[n].geometry, t);
|
|
15495
15494
|
}
|
|
15496
|
-
},
|
|
15495
|
+
}, Aa = {
|
|
15497
15496
|
Sphere: function(r, t) {
|
|
15498
15497
|
t.sphere();
|
|
15499
15498
|
},
|
|
@@ -15505,42 +15504,42 @@ var Aa = {
|
|
|
15505
15504
|
r = e[n], t.point(r[0], r[1], r[2]);
|
|
15506
15505
|
},
|
|
15507
15506
|
LineString: function(r, t) {
|
|
15508
|
-
|
|
15507
|
+
Ds(r.coordinates, t, 0);
|
|
15509
15508
|
},
|
|
15510
15509
|
MultiLineString: function(r, t) {
|
|
15511
15510
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
15512
|
-
|
|
15511
|
+
Ds(e[n], t, 0);
|
|
15513
15512
|
},
|
|
15514
15513
|
Polygon: function(r, t) {
|
|
15515
|
-
|
|
15514
|
+
Fa(r.coordinates, t);
|
|
15516
15515
|
},
|
|
15517
15516
|
MultiPolygon: function(r, t) {
|
|
15518
15517
|
for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
|
|
15519
|
-
|
|
15518
|
+
Fa(e[n], t);
|
|
15520
15519
|
},
|
|
15521
15520
|
GeometryCollection: function(r, t) {
|
|
15522
15521
|
for (var e = r.geometries, n = -1, i = e.length; ++n < i; )
|
|
15523
15522
|
Ho(e[n], t);
|
|
15524
15523
|
}
|
|
15525
15524
|
};
|
|
15526
|
-
function
|
|
15525
|
+
function Ds(r, t, e) {
|
|
15527
15526
|
var n = -1, i = r.length - e, o;
|
|
15528
15527
|
for (t.lineStart(); ++n < i; )
|
|
15529
15528
|
o = r[n], t.point(o[0], o[1], o[2]);
|
|
15530
15529
|
t.lineEnd();
|
|
15531
15530
|
}
|
|
15532
|
-
function
|
|
15531
|
+
function Fa(r, t) {
|
|
15533
15532
|
var e = -1, n = r.length;
|
|
15534
15533
|
for (t.polygonStart(); ++e < n; )
|
|
15535
|
-
|
|
15534
|
+
Ds(r[e], t, 1);
|
|
15536
15535
|
t.polygonEnd();
|
|
15537
15536
|
}
|
|
15538
|
-
function
|
|
15539
|
-
r &&
|
|
15537
|
+
function ef(r, t) {
|
|
15538
|
+
r && Ma.hasOwnProperty(r.type) ? Ma[r.type](r, t) : Ho(r, t);
|
|
15540
15539
|
}
|
|
15541
15540
|
Yr();
|
|
15542
15541
|
Yr();
|
|
15543
|
-
function
|
|
15542
|
+
function Ms(r) {
|
|
15544
15543
|
return [Gi(r[1], r[0]), li(r[2])];
|
|
15545
15544
|
}
|
|
15546
15545
|
function Vi(r) {
|
|
@@ -15553,18 +15552,18 @@ function Po(r, t) {
|
|
|
15553
15552
|
function jo(r, t) {
|
|
15554
15553
|
return [r[1] * t[2] - r[2] * t[1], r[2] * t[0] - r[0] * t[2], r[0] * t[1] - r[1] * t[0]];
|
|
15555
15554
|
}
|
|
15556
|
-
function
|
|
15555
|
+
function _s(r, t) {
|
|
15557
15556
|
r[0] += t[0], r[1] += t[1], r[2] += t[2];
|
|
15558
15557
|
}
|
|
15559
15558
|
function Ro(r, t) {
|
|
15560
15559
|
return [r[0] * t, r[1] * t, r[2] * t];
|
|
15561
15560
|
}
|
|
15562
|
-
function
|
|
15561
|
+
function As(r) {
|
|
15563
15562
|
var t = Wi(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
15564
15563
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
15565
15564
|
}
|
|
15566
15565
|
Yr();
|
|
15567
|
-
function
|
|
15566
|
+
function Gu(r, t) {
|
|
15568
15567
|
function e(n, i) {
|
|
15569
15568
|
return n = r(n, i), t(n[0], n[1]);
|
|
15570
15569
|
}
|
|
@@ -15572,23 +15571,23 @@ function Vu(r, t) {
|
|
|
15572
15571
|
return n = t.invert(n, i), n && r.invert(n[0], n[1]);
|
|
15573
15572
|
}), e;
|
|
15574
15573
|
}
|
|
15575
|
-
function
|
|
15574
|
+
function Fs(r, t) {
|
|
15576
15575
|
return [r > it ? r - tr : r < -it ? r + tr : r, t];
|
|
15577
15576
|
}
|
|
15578
|
-
|
|
15579
|
-
function
|
|
15580
|
-
return (r %= tr) ? t || e ?
|
|
15577
|
+
Fs.invert = Fs;
|
|
15578
|
+
function nf(r, t, e) {
|
|
15579
|
+
return (r %= tr) ? t || e ? Gu(Ba(r), Ga(t, e)) : Ba(r) : t || e ? Ga(t, e) : Fs;
|
|
15581
15580
|
}
|
|
15582
|
-
function
|
|
15581
|
+
function ka(r) {
|
|
15583
15582
|
return function(t, e) {
|
|
15584
15583
|
return t += r, [t > it ? t - tr : t < -it ? t + tr : t, e];
|
|
15585
15584
|
};
|
|
15586
15585
|
}
|
|
15587
|
-
function
|
|
15588
|
-
var t =
|
|
15589
|
-
return t.invert =
|
|
15586
|
+
function Ba(r) {
|
|
15587
|
+
var t = ka(r);
|
|
15588
|
+
return t.invert = ka(-r), t;
|
|
15590
15589
|
}
|
|
15591
|
-
function
|
|
15590
|
+
function Ga(r, t) {
|
|
15592
15591
|
var e = bt(r), n = Pt(r), i = bt(t), o = Pt(t);
|
|
15593
15592
|
function s(a, u) {
|
|
15594
15593
|
var l = bt(u), c = bt(a) * l, f = Pt(a) * l, h = Pt(u), g = h * e + c * n;
|
|
@@ -15605,20 +15604,20 @@ function Va(r, t) {
|
|
|
15605
15604
|
];
|
|
15606
15605
|
}, s;
|
|
15607
15606
|
}
|
|
15608
|
-
function
|
|
15607
|
+
function rf(r, t, e, n, i, o) {
|
|
15609
15608
|
if (e) {
|
|
15610
15609
|
var s = bt(t), a = Pt(t), u = n * e;
|
|
15611
|
-
i == null ? (i = t + n * tr, o = t - u / 2) : (i =
|
|
15610
|
+
i == null ? (i = t + n * tr, o = t - u / 2) : (i = Va(s, i), o = Va(s, o), (n > 0 ? i < o : i > o) && (i += n * tr));
|
|
15612
15611
|
for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
|
|
15613
|
-
l =
|
|
15612
|
+
l = Ms([s, -a * bt(c), -a * Pt(c)]), r.point(l[0], l[1]);
|
|
15614
15613
|
}
|
|
15615
15614
|
}
|
|
15616
|
-
function
|
|
15617
|
-
t = Vi(t), t[0] -= r,
|
|
15618
|
-
var e =
|
|
15615
|
+
function Va(r, t) {
|
|
15616
|
+
t = Vi(t), t[0] -= r, As(t);
|
|
15617
|
+
var e = Bu(-t[1]);
|
|
15619
15618
|
return ((-t[2] < 0 ? -e : e) + tr - vt) % tr;
|
|
15620
15619
|
}
|
|
15621
|
-
function
|
|
15620
|
+
function Vu() {
|
|
15622
15621
|
var r = [], t;
|
|
15623
15622
|
return {
|
|
15624
15623
|
point: function(e, n) {
|
|
@@ -15637,7 +15636,7 @@ function zu() {
|
|
|
15637
15636
|
}
|
|
15638
15637
|
};
|
|
15639
15638
|
}
|
|
15640
|
-
function
|
|
15639
|
+
function of(r, t, e, n, i, o) {
|
|
15641
15640
|
var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
|
|
15642
15641
|
if (p = e - s, !(!h && p > 0)) {
|
|
15643
15642
|
if (p /= h, h < 0) {
|
|
@@ -15691,7 +15690,7 @@ function Fo(r, t) {
|
|
|
15691
15690
|
function Oo(r, t, e, n) {
|
|
15692
15691
|
this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
|
|
15693
15692
|
}
|
|
15694
|
-
function
|
|
15693
|
+
function zu(r, t, e, n, i) {
|
|
15695
15694
|
var o = [], s = [], a, u;
|
|
15696
15695
|
if (r.forEach(function(p) {
|
|
15697
15696
|
if (!((v = p.length - 1) <= 0)) {
|
|
@@ -15705,7 +15704,7 @@ function Uu(r, t, e, n, i) {
|
|
|
15705
15704
|
o.push(E = new Oo(d, p, null, !0)), s.push(E.o = new Oo(d, null, E, !1)), o.push(E = new Oo(m, p, null, !1)), s.push(E.o = new Oo(m, null, E, !0));
|
|
15706
15705
|
}
|
|
15707
15706
|
}), !!o.length) {
|
|
15708
|
-
for (s.sort(t),
|
|
15707
|
+
for (s.sort(t), za(o), za(s), a = 0, u = s.length; a < u; ++a)
|
|
15709
15708
|
s[a].e = e = !e;
|
|
15710
15709
|
for (var l = o[0], c, f; ; ) {
|
|
15711
15710
|
for (var h = l, g = !0; h.v; )
|
|
@@ -15734,18 +15733,18 @@ function Uu(r, t, e, n, i) {
|
|
|
15734
15733
|
}
|
|
15735
15734
|
}
|
|
15736
15735
|
}
|
|
15737
|
-
function
|
|
15736
|
+
function za(r) {
|
|
15738
15737
|
if (t = r.length) {
|
|
15739
15738
|
for (var t, e = 0, n = r[0], i; ++e < t; )
|
|
15740
15739
|
n.n = i = r[e], i.p = n, n = i;
|
|
15741
15740
|
n.n = i = r[0], i.p = n;
|
|
15742
15741
|
}
|
|
15743
15742
|
}
|
|
15744
|
-
function
|
|
15743
|
+
function Uu(r, t) {
|
|
15745
15744
|
return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
|
|
15746
15745
|
}
|
|
15747
|
-
function
|
|
15748
|
-
return r.length === 1 && (r =
|
|
15746
|
+
function sf(r) {
|
|
15747
|
+
return r.length === 1 && (r = af(r)), {
|
|
15749
15748
|
left: function(t, e, n, i) {
|
|
15750
15749
|
for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
|
|
15751
15750
|
var o = n + i >>> 1;
|
|
@@ -15762,13 +15761,13 @@ function af(r) {
|
|
|
15762
15761
|
}
|
|
15763
15762
|
};
|
|
15764
15763
|
}
|
|
15765
|
-
function
|
|
15764
|
+
function af(r) {
|
|
15766
15765
|
return function(t, e) {
|
|
15767
|
-
return
|
|
15766
|
+
return Uu(r(t), e);
|
|
15768
15767
|
};
|
|
15769
15768
|
}
|
|
15770
|
-
|
|
15771
|
-
function
|
|
15769
|
+
sf(Uu);
|
|
15770
|
+
function qu(r) {
|
|
15772
15771
|
for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
|
|
15773
15772
|
i += r[n].length;
|
|
15774
15773
|
for (o = new Array(i); --t >= 0; )
|
|
@@ -15777,7 +15776,7 @@ function Xu(r) {
|
|
|
15777
15776
|
return o;
|
|
15778
15777
|
}
|
|
15779
15778
|
var Qi = 1e9, To = -Qi;
|
|
15780
|
-
function
|
|
15779
|
+
function uf(r, t, e, n) {
|
|
15781
15780
|
function i(l, c) {
|
|
15782
15781
|
return r <= l && l <= e && t <= c && c <= n;
|
|
15783
15782
|
}
|
|
@@ -15801,19 +15800,19 @@ function lf(r, t, e, n) {
|
|
|
15801
15800
|
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];
|
|
15802
15801
|
}
|
|
15803
15802
|
return function(l) {
|
|
15804
|
-
var c = l, f =
|
|
15803
|
+
var c = l, f = Vu(), h, g, p, v, d, m, E, C, w, N, S, T = {
|
|
15805
15804
|
point: A,
|
|
15806
15805
|
lineStart: R,
|
|
15807
15806
|
lineEnd: Y,
|
|
15808
15807
|
polygonStart: F,
|
|
15809
15808
|
polygonEnd: X
|
|
15810
15809
|
};
|
|
15811
|
-
function A(W,
|
|
15812
|
-
i(W,
|
|
15810
|
+
function A(W, at) {
|
|
15811
|
+
i(W, at) && c.point(W, at);
|
|
15813
15812
|
}
|
|
15814
15813
|
function L() {
|
|
15815
|
-
for (var W = 0,
|
|
15816
|
-
for (var Ht = g[
|
|
15814
|
+
for (var W = 0, at = 0, dt = g.length; at < dt; ++at)
|
|
15815
|
+
for (var Ht = g[at], Jt = 1, rr = Ht.length, Ge = Ht[0], ir, In, Wr = Ge[0], Ve = Ge[1]; Jt < rr; ++Jt)
|
|
15817
15816
|
ir = Wr, In = Ve, Ge = Ht[Jt], Wr = Ge[0], Ve = Ge[1], In <= n ? Ve > n && (Wr - ir) * (n - In) > (Ve - In) * (r - ir) && ++W : Ve <= n && (Wr - ir) * (n - In) < (Ve - In) * (r - ir) && --W;
|
|
15818
15817
|
return W;
|
|
15819
15818
|
}
|
|
@@ -15821,8 +15820,8 @@ function lf(r, t, e, n) {
|
|
|
15821
15820
|
c = f, h = [], g = [], S = !0;
|
|
15822
15821
|
}
|
|
15823
15822
|
function X() {
|
|
15824
|
-
var W = L(),
|
|
15825
|
-
(
|
|
15823
|
+
var W = L(), at = S && W, dt = (h = qu(h)).length;
|
|
15824
|
+
(at || dt) && (l.polygonStart(), at && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), dt && zu(h, a, W, o, l), l.polygonEnd()), c = l, h = g = p = null;
|
|
15826
15825
|
}
|
|
15827
15826
|
function R() {
|
|
15828
15827
|
T.point = D, g && g.push(p = []), N = !0, w = !1, E = C = NaN;
|
|
@@ -15830,48 +15829,48 @@ function lf(r, t, e, n) {
|
|
|
15830
15829
|
function Y() {
|
|
15831
15830
|
h && (D(v, d), m && w && f.rejoin(), h.push(f.result())), T.point = A, w && c.lineEnd();
|
|
15832
15831
|
}
|
|
15833
|
-
function D(W,
|
|
15834
|
-
var dt = i(W,
|
|
15835
|
-
if (g && p.push([W,
|
|
15836
|
-
v = W, d =
|
|
15832
|
+
function D(W, at) {
|
|
15833
|
+
var dt = i(W, at);
|
|
15834
|
+
if (g && p.push([W, at]), N)
|
|
15835
|
+
v = W, d = at, m = dt, N = !1, dt && (c.lineStart(), c.point(W, at));
|
|
15837
15836
|
else if (dt && w)
|
|
15838
|
-
c.point(W,
|
|
15837
|
+
c.point(W, at);
|
|
15839
15838
|
else {
|
|
15840
|
-
var Ht = [E = Math.max(To, Math.min(Qi, E)), C = Math.max(To, Math.min(Qi, C))], Jt = [W = Math.max(To, Math.min(Qi, W)),
|
|
15841
|
-
|
|
15839
|
+
var Ht = [E = Math.max(To, Math.min(Qi, E)), C = Math.max(To, Math.min(Qi, C))], Jt = [W = Math.max(To, Math.min(Qi, W)), at = Math.max(To, Math.min(Qi, at))];
|
|
15840
|
+
of(Ht, Jt, r, t, e, n) ? (w || (c.lineStart(), c.point(Ht[0], Ht[1])), c.point(Jt[0], Jt[1]), dt || c.lineEnd(), S = !1) : dt && (c.lineStart(), c.point(W, at), S = !1);
|
|
15842
15841
|
}
|
|
15843
|
-
E = W, C =
|
|
15842
|
+
E = W, C = at, w = dt;
|
|
15844
15843
|
}
|
|
15845
15844
|
return T;
|
|
15846
15845
|
};
|
|
15847
15846
|
}
|
|
15848
|
-
var
|
|
15849
|
-
function
|
|
15847
|
+
var Es = Yr();
|
|
15848
|
+
function lf(r, t) {
|
|
15850
15849
|
var e = t[0], n = t[1], i = [Pt(e), -bt(e), 0], o = 0, s = 0;
|
|
15851
|
-
|
|
15850
|
+
Es.reset();
|
|
15852
15851
|
for (var a = 0, u = r.length; a < u; ++a)
|
|
15853
15852
|
if (c = (l = r[a]).length)
|
|
15854
|
-
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 +
|
|
15855
|
-
var m = l[d], E = m[0], C = m[1] / 2 +
|
|
15856
|
-
if (
|
|
15853
|
+
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Da, p = Pt(g), v = bt(g), d = 0; d < c; ++d, h = E, p = w, v = N, f = m) {
|
|
15854
|
+
var m = l[d], E = m[0], C = m[1] / 2 + Da, w = Pt(C), N = bt(C), S = E - h, T = S >= 0 ? 1 : -1, A = T * S, L = A > it, F = p * w;
|
|
15855
|
+
if (Es.add(Gi(F * T * Pt(A), v * N + F * bt(A))), o += L ? S + T * tr : S, L ^ h >= e ^ E >= e) {
|
|
15857
15856
|
var X = jo(Vi(f), Vi(m));
|
|
15858
|
-
|
|
15857
|
+
As(X);
|
|
15859
15858
|
var R = jo(i, X);
|
|
15860
|
-
|
|
15859
|
+
As(R);
|
|
15861
15860
|
var Y = (L ^ S >= 0 ? -1 : 1) * li(R[2]);
|
|
15862
15861
|
(n > Y || n === Y && (X[0] || X[1])) && (s += L ^ S >= 0 ? 1 : -1);
|
|
15863
15862
|
}
|
|
15864
15863
|
}
|
|
15865
|
-
return (o < -vt || o < vt &&
|
|
15864
|
+
return (o < -vt || o < vt && Es < -vt) ^ s & 1;
|
|
15866
15865
|
}
|
|
15867
15866
|
Yr();
|
|
15868
|
-
function
|
|
15867
|
+
function Ua(r) {
|
|
15869
15868
|
return r;
|
|
15870
15869
|
}
|
|
15871
15870
|
Yr();
|
|
15872
15871
|
Yr();
|
|
15873
|
-
var zi = 1 / 0, Ko = zi, vo = -zi, Qo = vo,
|
|
15874
|
-
point:
|
|
15872
|
+
var zi = 1 / 0, Ko = zi, vo = -zi, Qo = vo, qa = {
|
|
15873
|
+
point: cf,
|
|
15875
15874
|
lineStart: Ki,
|
|
15876
15875
|
lineEnd: Ki,
|
|
15877
15876
|
polygonStart: Ki,
|
|
@@ -15881,13 +15880,13 @@ var zi = 1 / 0, Ko = zi, vo = -zi, Qo = vo, Xa = {
|
|
|
15881
15880
|
return vo = Qo = -(Ko = zi = 1 / 0), r;
|
|
15882
15881
|
}
|
|
15883
15882
|
};
|
|
15884
|
-
function
|
|
15883
|
+
function cf(r, t) {
|
|
15885
15884
|
r < zi && (zi = r), r > vo && (vo = r), t < Ko && (Ko = t), t > Qo && (Qo = t);
|
|
15886
15885
|
}
|
|
15887
15886
|
Yr();
|
|
15888
|
-
function
|
|
15887
|
+
function Xu(r, t, e, n) {
|
|
15889
15888
|
return function(i, o) {
|
|
15890
|
-
var s = t(o), a = i.invert(n[0], n[1]), u =
|
|
15889
|
+
var s = t(o), a = i.invert(n[0], n[1]), u = Vu(), l = t(u), c = !1, f, h, g, p = {
|
|
15891
15890
|
point: v,
|
|
15892
15891
|
lineStart: m,
|
|
15893
15892
|
lineEnd: E,
|
|
@@ -15895,9 +15894,9 @@ function Yu(r, t, e, n) {
|
|
|
15895
15894
|
p.point = C, p.lineStart = w, p.lineEnd = N, h = [], f = [];
|
|
15896
15895
|
},
|
|
15897
15896
|
polygonEnd: function() {
|
|
15898
|
-
p.point = v, p.lineStart = m, p.lineEnd = E, h =
|
|
15899
|
-
var S =
|
|
15900
|
-
h.length ? (c || (o.polygonStart(), c = !0),
|
|
15897
|
+
p.point = v, p.lineStart = m, p.lineEnd = E, h = qu(h);
|
|
15898
|
+
var S = lf(f, a);
|
|
15899
|
+
h.length ? (c || (o.polygonStart(), c = !0), zu(h, hf, S, e, o)) : S && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
|
|
15901
15900
|
},
|
|
15902
15901
|
sphere: function() {
|
|
15903
15902
|
o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
|
|
@@ -15937,27 +15936,27 @@ function Yu(r, t, e, n) {
|
|
|
15937
15936
|
}
|
|
15938
15937
|
return;
|
|
15939
15938
|
}
|
|
15940
|
-
L > 1 && S & 2 && T.push(T.pop().concat(T.shift())), h.push(T.filter(
|
|
15939
|
+
L > 1 && S & 2 && T.push(T.pop().concat(T.shift())), h.push(T.filter(ff));
|
|
15941
15940
|
}
|
|
15942
15941
|
}
|
|
15943
15942
|
return p;
|
|
15944
15943
|
};
|
|
15945
15944
|
}
|
|
15946
|
-
function
|
|
15945
|
+
function ff(r) {
|
|
15947
15946
|
return r.length > 1;
|
|
15948
15947
|
}
|
|
15949
|
-
function
|
|
15948
|
+
function hf(r, t) {
|
|
15950
15949
|
return ((r = r.x)[0] < 0 ? r[1] - Wn - vt : Wn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Wn - vt : Wn - t[1]);
|
|
15951
15950
|
}
|
|
15952
|
-
const
|
|
15951
|
+
const Xa = Xu(
|
|
15953
15952
|
function() {
|
|
15954
15953
|
return !0;
|
|
15955
15954
|
},
|
|
15956
|
-
|
|
15957
|
-
|
|
15955
|
+
gf,
|
|
15956
|
+
df,
|
|
15958
15957
|
[-it, -Wn]
|
|
15959
15958
|
);
|
|
15960
|
-
function
|
|
15959
|
+
function gf(r) {
|
|
15961
15960
|
var t = NaN, e = NaN, n = NaN, i;
|
|
15962
15961
|
return {
|
|
15963
15962
|
lineStart: function() {
|
|
@@ -15965,7 +15964,7 @@ function pf(r) {
|
|
|
15965
15964
|
},
|
|
15966
15965
|
point: function(o, s) {
|
|
15967
15966
|
var a = o > 0 ? it : -it, u = ne(o - t);
|
|
15968
|
-
ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e =
|
|
15967
|
+
ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e = pf(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;
|
|
15969
15968
|
},
|
|
15970
15969
|
lineEnd: function() {
|
|
15971
15970
|
r.lineEnd(), t = e = NaN;
|
|
@@ -15975,11 +15974,11 @@ function pf(r) {
|
|
|
15975
15974
|
}
|
|
15976
15975
|
};
|
|
15977
15976
|
}
|
|
15978
|
-
function
|
|
15977
|
+
function pf(r, t, e, n) {
|
|
15979
15978
|
var i, o, s = Pt(r - e);
|
|
15980
|
-
return ne(s) > vt ?
|
|
15979
|
+
return ne(s) > vt ? tf((Pt(t) * (o = bt(n)) * Pt(e) - Pt(n) * (i = bt(t)) * Pt(r)) / (i * o * s)) : (t + n) / 2;
|
|
15981
15980
|
}
|
|
15982
|
-
function
|
|
15981
|
+
function df(r, t, e, n) {
|
|
15983
15982
|
var i;
|
|
15984
15983
|
if (r == null)
|
|
15985
15984
|
i = e * Wn, 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);
|
|
@@ -15989,10 +15988,10 @@ function vf(r, t, e, n) {
|
|
|
15989
15988
|
} else
|
|
15990
15989
|
n.point(t[0], t[1]);
|
|
15991
15990
|
}
|
|
15992
|
-
function
|
|
15991
|
+
function vf(r, t) {
|
|
15993
15992
|
var e = bt(r), n = e > 0, i = ne(e) > vt;
|
|
15994
15993
|
function o(c, f, h, g) {
|
|
15995
|
-
|
|
15994
|
+
rf(g, r, t, h, c, f);
|
|
15996
15995
|
}
|
|
15997
15996
|
function s(c, f) {
|
|
15998
15997
|
return bt(c) * bt(f) > e;
|
|
@@ -16028,18 +16027,18 @@ function yf(r, t) {
|
|
|
16028
16027
|
if (!C)
|
|
16029
16028
|
return !h && c;
|
|
16030
16029
|
var w = e * m / C, N = -e * E / C, S = jo(v, d), T = Ro(v, w), A = Ro(d, N);
|
|
16031
|
-
|
|
16030
|
+
_s(T, A);
|
|
16032
16031
|
var L = S, F = Po(T, L), X = Po(L, L), R = F * F - X * (Po(T, T) - 1);
|
|
16033
16032
|
if (!(R < 0)) {
|
|
16034
16033
|
var Y = Wi(R), D = Ro(L, (-F - Y) / X);
|
|
16035
|
-
if (
|
|
16034
|
+
if (_s(D, T), D = Ms(D), !h)
|
|
16036
16035
|
return D;
|
|
16037
|
-
var W = c[0],
|
|
16038
|
-
|
|
16039
|
-
var rr =
|
|
16040
|
-
if (!Ge && Ht < dt && (Jt = dt, dt = Ht, Ht = Jt), ir ? Ge ? dt + Ht > 0 ^ D[1] < (ne(D[0] - W) < vt ? dt : Ht) : dt <= D[1] && D[1] <= Ht : rr > it ^ (W <= D[0] && D[0] <=
|
|
16036
|
+
var W = c[0], at = f[0], dt = c[1], Ht = f[1], Jt;
|
|
16037
|
+
at < W && (Jt = W, W = at, at = Jt);
|
|
16038
|
+
var rr = at - W, Ge = ne(rr - it) < vt, ir = Ge || rr < vt;
|
|
16039
|
+
if (!Ge && Ht < dt && (Jt = dt, dt = Ht, Ht = Jt), ir ? Ge ? dt + Ht > 0 ^ D[1] < (ne(D[0] - W) < vt ? dt : Ht) : dt <= D[1] && D[1] <= Ht : rr > it ^ (W <= D[0] && D[0] <= at)) {
|
|
16041
16040
|
var In = Ro(L, (-F + Y) / X);
|
|
16042
|
-
return
|
|
16041
|
+
return _s(In, T), [D, Ms(In)];
|
|
16043
16042
|
}
|
|
16044
16043
|
}
|
|
16045
16044
|
}
|
|
@@ -16047,20 +16046,20 @@ function yf(r, t) {
|
|
|
16047
16046
|
var h = n ? r : it - r, g = 0;
|
|
16048
16047
|
return c < -h ? g |= 1 : c > h && (g |= 2), f < -h ? g |= 4 : f > h && (g |= 8), g;
|
|
16049
16048
|
}
|
|
16050
|
-
return
|
|
16049
|
+
return Xu(s, a, o, n ? [0, -r] : [-it, r - it]);
|
|
16051
16050
|
}
|
|
16052
|
-
function
|
|
16051
|
+
function Yu(r) {
|
|
16053
16052
|
return function(t) {
|
|
16054
|
-
var e = new
|
|
16053
|
+
var e = new ks();
|
|
16055
16054
|
for (var n in r)
|
|
16056
16055
|
e[n] = r[n];
|
|
16057
16056
|
return e.stream = t, e;
|
|
16058
16057
|
};
|
|
16059
16058
|
}
|
|
16060
|
-
function
|
|
16059
|
+
function ks() {
|
|
16061
16060
|
}
|
|
16062
|
-
|
|
16063
|
-
constructor:
|
|
16061
|
+
ks.prototype = {
|
|
16062
|
+
constructor: ks,
|
|
16064
16063
|
point: function(r, t) {
|
|
16065
16064
|
this.stream.point(r, t);
|
|
16066
16065
|
},
|
|
@@ -16080,32 +16079,32 @@ Bs.prototype = {
|
|
|
16080
16079
|
this.stream.polygonEnd();
|
|
16081
16080
|
}
|
|
16082
16081
|
};
|
|
16083
|
-
function
|
|
16082
|
+
function Wu(r, t, e) {
|
|
16084
16083
|
var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
|
|
16085
|
-
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null),
|
|
16086
|
-
var s =
|
|
16084
|
+
r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), ef(e, r.stream(qa));
|
|
16085
|
+
var s = qa.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;
|
|
16087
16086
|
return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
|
|
16088
16087
|
}
|
|
16089
|
-
function
|
|
16090
|
-
return
|
|
16088
|
+
function yf(r, t, e) {
|
|
16089
|
+
return Wu(r, [[0, 0], t], e);
|
|
16091
16090
|
}
|
|
16092
|
-
var
|
|
16093
|
-
function
|
|
16094
|
-
return +t ?
|
|
16091
|
+
var Ya = 16, mf = bt(30 * tn);
|
|
16092
|
+
function Wa(r, t) {
|
|
16093
|
+
return +t ? Ef(r, t) : _f(r);
|
|
16095
16094
|
}
|
|
16096
|
-
function
|
|
16097
|
-
return
|
|
16095
|
+
function _f(r) {
|
|
16096
|
+
return Yu({
|
|
16098
16097
|
point: function(t, e) {
|
|
16099
16098
|
t = r(t, e), this.stream.point(t[0], t[1]);
|
|
16100
16099
|
}
|
|
16101
16100
|
});
|
|
16102
16101
|
}
|
|
16103
|
-
function
|
|
16102
|
+
function Ef(r, t) {
|
|
16104
16103
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, v, d) {
|
|
16105
16104
|
var m = l - n, E = c - i, C = m * m + E * E;
|
|
16106
16105
|
if (C > 4 * t && v--) {
|
|
16107
16106
|
var w = s + h, N = a + g, S = u + p, T = Wi(w * w + N * N + S * S), A = li(S /= T), L = ne(ne(S) - 1) < vt || ne(o - f) < vt ? (o + f) / 2 : Gi(N, w), F = r(L, A), X = F[0], R = F[1], Y = X - n, D = R - i, W = E * Y - m * D;
|
|
16108
|
-
(W * W / C > t || ne((m * Y + E * D) / C - 0.5) > 0.3 || s * h + a * g + u * p <
|
|
16107
|
+
(W * W / C > t || ne((m * Y + E * D) / C - 0.5) > 0.3 || s * h + a * g + u * p < mf) && (e(n, i, o, s, a, u, X, R, L, w /= T, N /= T, S, v, d), d.point(X, R), e(X, R, L, w, N, S, l, c, f, h, g, p, v, d));
|
|
16109
16108
|
}
|
|
16110
16109
|
}
|
|
16111
16110
|
return function(n) {
|
|
@@ -16128,7 +16127,7 @@ function If(r, t) {
|
|
|
16128
16127
|
}
|
|
16129
16128
|
function C(A, L) {
|
|
16130
16129
|
var F = Vi([A, L]), X = r(A, L);
|
|
16131
|
-
e(f, h, c, g, p, v, f = X[0], h = X[1], c = A, g = F[0], p = F[1], v = F[2],
|
|
16130
|
+
e(f, h, c, g, p, v, f = X[0], h = X[1], c = A, g = F[0], p = F[1], v = F[2], Ya, n), n.point(f, h);
|
|
16132
16131
|
}
|
|
16133
16132
|
function w() {
|
|
16134
16133
|
d.point = m, n.lineEnd();
|
|
@@ -16140,23 +16139,23 @@ function If(r, t) {
|
|
|
16140
16139
|
C(i = A, L), o = f, s = h, a = g, u = p, l = v, d.point = C;
|
|
16141
16140
|
}
|
|
16142
16141
|
function T() {
|
|
16143
|
-
e(f, h, c, g, p, v, o, s, i, a, u, l,
|
|
16142
|
+
e(f, h, c, g, p, v, o, s, i, a, u, l, Ya, n), d.lineEnd = w, w();
|
|
16144
16143
|
}
|
|
16145
16144
|
return d;
|
|
16146
16145
|
};
|
|
16147
16146
|
}
|
|
16148
|
-
var
|
|
16147
|
+
var If = Yu({
|
|
16149
16148
|
point: function(r, t) {
|
|
16150
16149
|
this.stream.point(r * tn, t * tn);
|
|
16151
16150
|
}
|
|
16152
16151
|
});
|
|
16153
|
-
function
|
|
16154
|
-
return
|
|
16152
|
+
function Cf(r) {
|
|
16153
|
+
return Nf(function() {
|
|
16155
16154
|
return r;
|
|
16156
16155
|
})();
|
|
16157
16156
|
}
|
|
16158
|
-
function
|
|
16159
|
-
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, v =
|
|
16157
|
+
function Nf(r) {
|
|
16158
|
+
var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, v = Xa, d = null, m, E, C, w = Ua, N = 0.5, S = Wa(X, N), T, A;
|
|
16160
16159
|
function L(D) {
|
|
16161
16160
|
return D = g(D[0] * tn, D[1] * tn), [D[0] * e + o, s - D[1] * e];
|
|
16162
16161
|
}
|
|
@@ -16167,11 +16166,11 @@ function xf(r) {
|
|
|
16167
16166
|
return D = t(D, W), [D[0] * e + o, s - D[1] * e];
|
|
16168
16167
|
}
|
|
16169
16168
|
L.stream = function(D) {
|
|
16170
|
-
return T && A === D ? T : T =
|
|
16169
|
+
return T && A === D ? T : T = If(v(h, S(w(A = D))));
|
|
16171
16170
|
}, L.clipAngle = function(D) {
|
|
16172
|
-
return arguments.length ? (v = +D ?
|
|
16171
|
+
return arguments.length ? (v = +D ? vf(p = D * tn, 6 * tn) : (p = null, Xa), Y()) : p * Nr;
|
|
16173
16172
|
}, L.clipExtent = function(D) {
|
|
16174
|
-
return arguments.length ? (w = D == null ? (d = m = E = C = null,
|
|
16173
|
+
return arguments.length ? (w = D == null ? (d = m = E = C = null, Ua) : uf(d = +D[0][0], m = +D[0][1], E = +D[1][0], C = +D[1][1]), Y()) : d == null ? null : [[d, m], [E, C]];
|
|
16175
16174
|
}, L.scale = function(D) {
|
|
16176
16175
|
return arguments.length ? (e = +D, R()) : e;
|
|
16177
16176
|
}, L.translate = function(D) {
|
|
@@ -16181,14 +16180,14 @@ function xf(r) {
|
|
|
16181
16180
|
}, L.rotate = function(D) {
|
|
16182
16181
|
return arguments.length ? (l = D[0] % 360 * tn, c = D[1] % 360 * tn, f = D.length > 2 ? D[2] % 360 * tn : 0, R()) : [l * Nr, c * Nr, f * Nr];
|
|
16183
16182
|
}, L.precision = function(D) {
|
|
16184
|
-
return arguments.length ? (S =
|
|
16183
|
+
return arguments.length ? (S = Wa(X, N = D * D), Y()) : Wi(N);
|
|
16185
16184
|
}, L.fitExtent = function(D, W) {
|
|
16186
|
-
return
|
|
16185
|
+
return Wu(L, D, W);
|
|
16187
16186
|
}, L.fitSize = function(D, W) {
|
|
16188
|
-
return
|
|
16187
|
+
return yf(L, D, W);
|
|
16189
16188
|
};
|
|
16190
16189
|
function R() {
|
|
16191
|
-
g =
|
|
16190
|
+
g = Gu(h = nf(l, c, f), t);
|
|
16192
16191
|
var D = t(a, u);
|
|
16193
16192
|
return o = n - D[0] * e, s = i + D[1] * e, Y();
|
|
16194
16193
|
}
|
|
@@ -16199,7 +16198,7 @@ function xf(r) {
|
|
|
16199
16198
|
return t = r.apply(this, arguments), L.invert = t.invert && F, R();
|
|
16200
16199
|
};
|
|
16201
16200
|
}
|
|
16202
|
-
function
|
|
16201
|
+
function Hu(r) {
|
|
16203
16202
|
return function(t, e) {
|
|
16204
16203
|
var n = bt(t), i = bt(e), o = r(n * i);
|
|
16205
16204
|
return [
|
|
@@ -16208,7 +16207,7 @@ function ju(r) {
|
|
|
16208
16207
|
];
|
|
16209
16208
|
};
|
|
16210
16209
|
}
|
|
16211
|
-
function
|
|
16210
|
+
function ju(r) {
|
|
16212
16211
|
return function(t, e) {
|
|
16213
16212
|
var n = Wi(t * t + e * e), i = r(n), o = Pt(i), s = bt(i);
|
|
16214
16213
|
return [
|
|
@@ -16217,26 +16216,26 @@ function Ku(r) {
|
|
|
16217
16216
|
];
|
|
16218
16217
|
};
|
|
16219
16218
|
}
|
|
16220
|
-
var
|
|
16219
|
+
var xf = Hu(function(r) {
|
|
16221
16220
|
return Wi(2 / (1 + r));
|
|
16222
16221
|
});
|
|
16223
|
-
|
|
16222
|
+
xf.invert = ju(function(r) {
|
|
16224
16223
|
return 2 * li(r / 2);
|
|
16225
16224
|
});
|
|
16226
|
-
var
|
|
16227
|
-
return (r =
|
|
16225
|
+
var Ku = Hu(function(r) {
|
|
16226
|
+
return (r = Bu(r)) && r / Pt(r);
|
|
16228
16227
|
});
|
|
16229
|
-
|
|
16228
|
+
Ku.invert = ju(function(r) {
|
|
16230
16229
|
return r;
|
|
16231
16230
|
});
|
|
16232
|
-
function
|
|
16233
|
-
return
|
|
16231
|
+
function Sf() {
|
|
16232
|
+
return Cf(Ku).scale(79.4188).clipAngle(180 - 1e-3);
|
|
16234
16233
|
}
|
|
16235
|
-
function
|
|
16234
|
+
function Ha(r, t) {
|
|
16236
16235
|
return [r, t];
|
|
16237
16236
|
}
|
|
16238
|
-
|
|
16239
|
-
function
|
|
16237
|
+
Ha.invert = Ha;
|
|
16238
|
+
function wf(r, t, e) {
|
|
16240
16239
|
e = e || {};
|
|
16241
16240
|
var n = e.units || "kilometers", i = e.steps || 8;
|
|
16242
16241
|
if (!r)
|
|
@@ -16252,17 +16251,17 @@ function Lf(r, t, e) {
|
|
|
16252
16251
|
var o = [];
|
|
16253
16252
|
switch (r.type) {
|
|
16254
16253
|
case "GeometryCollection":
|
|
16255
|
-
return
|
|
16254
|
+
return cu(r, function(s) {
|
|
16256
16255
|
var a = ko(s, t, n, i);
|
|
16257
16256
|
a && o.push(a);
|
|
16258
|
-
}),
|
|
16257
|
+
}), Rs(o);
|
|
16259
16258
|
case "FeatureCollection":
|
|
16260
|
-
return
|
|
16259
|
+
return La(r, function(s) {
|
|
16261
16260
|
var a = ko(s, t, n, i);
|
|
16262
|
-
a &&
|
|
16261
|
+
a && La(a, function(u) {
|
|
16263
16262
|
u && o.push(u);
|
|
16264
16263
|
});
|
|
16265
|
-
}),
|
|
16264
|
+
}), Rs(o);
|
|
16266
16265
|
}
|
|
16267
16266
|
return ko(r, t, n, i);
|
|
16268
16267
|
}
|
|
@@ -16270,54 +16269,54 @@ function ko(r, t, e, n) {
|
|
|
16270
16269
|
var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
|
|
16271
16270
|
if (o.type === "GeometryCollection") {
|
|
16272
16271
|
var s = [];
|
|
16273
|
-
return
|
|
16272
|
+
return cu(r, function(v) {
|
|
16274
16273
|
var d = ko(v, t, e, n);
|
|
16275
16274
|
d && s.push(d);
|
|
16276
|
-
}),
|
|
16275
|
+
}), Rs(s);
|
|
16277
16276
|
}
|
|
16278
|
-
var a =
|
|
16277
|
+
var a = Lf(o), u = {
|
|
16279
16278
|
type: o.type,
|
|
16280
|
-
coordinates:
|
|
16281
|
-
}, l = new
|
|
16282
|
-
if (h = g.write(h), !
|
|
16279
|
+
coordinates: Zu(o.coordinates, a)
|
|
16280
|
+
}, l = new Ws(), c = l.read(u), f = Rc(Oc(t, e), "meters"), h = zt.bufferOp(c, f, n), g = new Eu();
|
|
16281
|
+
if (h = g.write(h), !Qu(h.coordinates)) {
|
|
16283
16282
|
var p = {
|
|
16284
16283
|
type: h.type,
|
|
16285
|
-
coordinates:
|
|
16284
|
+
coordinates: Ju(h.coordinates, a)
|
|
16286
16285
|
};
|
|
16287
16286
|
return Zo(p, i);
|
|
16288
16287
|
}
|
|
16289
16288
|
}
|
|
16290
|
-
function
|
|
16291
|
-
return Array.isArray(r[0]) ?
|
|
16289
|
+
function Qu(r) {
|
|
16290
|
+
return Array.isArray(r[0]) ? Qu(r[0]) : isNaN(r[0]);
|
|
16292
16291
|
}
|
|
16293
|
-
function
|
|
16292
|
+
function Zu(r, t) {
|
|
16294
16293
|
return typeof r[0] != "object" ? t(r) : r.map(function(e) {
|
|
16295
|
-
return
|
|
16294
|
+
return Zu(e, t);
|
|
16296
16295
|
});
|
|
16297
16296
|
}
|
|
16298
|
-
function
|
|
16297
|
+
function Ju(r, t) {
|
|
16299
16298
|
return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
|
|
16300
|
-
return
|
|
16299
|
+
return Ju(e, t);
|
|
16301
16300
|
});
|
|
16302
16301
|
}
|
|
16303
|
-
function
|
|
16304
|
-
var t =
|
|
16305
|
-
return
|
|
16302
|
+
function Lf(r) {
|
|
16303
|
+
var t = Fc(r).geometry.coordinates, e = [-t[0], -t[1]];
|
|
16304
|
+
return Sf().rotate(e).scale(Ie);
|
|
16306
16305
|
}
|
|
16307
|
-
function
|
|
16308
|
-
var e = Vo(r), n = Vo(t), i = r.properties || {}, o =
|
|
16306
|
+
function bf(r, t) {
|
|
16307
|
+
var e = Vo(r), n = Vo(t), i = r.properties || {}, o = ou.difference(
|
|
16309
16308
|
e.coordinates,
|
|
16310
16309
|
n.coordinates
|
|
16311
16310
|
);
|
|
16312
|
-
return o.length === 0 ? null : o.length === 1 ?
|
|
16311
|
+
return o.length === 0 ? null : o.length === 1 ? au(o[0], i) : uu(o, i);
|
|
16313
16312
|
}
|
|
16314
|
-
function
|
|
16313
|
+
function ja(r) {
|
|
16315
16314
|
let t;
|
|
16316
16315
|
for (const e of r)
|
|
16317
16316
|
t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
|
|
16318
16317
|
}
|
|
16319
|
-
function
|
|
16320
|
-
const e =
|
|
16318
|
+
function Ka(r, t) {
|
|
16319
|
+
const e = bf(
|
|
16321
16320
|
{
|
|
16322
16321
|
type: "Polygon",
|
|
16323
16322
|
coordinates: [
|
|
@@ -16335,24 +16334,24 @@ function Qa(r, t) {
|
|
|
16335
16334
|
if (!e)
|
|
16336
16335
|
return;
|
|
16337
16336
|
e.properties = { isMask: "y" };
|
|
16338
|
-
const n =
|
|
16337
|
+
const n = wf(r, 0);
|
|
16339
16338
|
if (n.geometry.type === "Polygon")
|
|
16340
16339
|
for (const i of n.geometry.coordinates)
|
|
16341
|
-
|
|
16340
|
+
ja(i);
|
|
16342
16341
|
else
|
|
16343
16342
|
for (const i of n.geometry.coordinates)
|
|
16344
16343
|
for (const o of i)
|
|
16345
|
-
|
|
16344
|
+
ja(o);
|
|
16346
16345
|
t({
|
|
16347
16346
|
type: "FeatureCollection",
|
|
16348
16347
|
features: [n, e]
|
|
16349
16348
|
});
|
|
16350
16349
|
}
|
|
16351
|
-
let
|
|
16350
|
+
let Qa = {
|
|
16352
16351
|
type: "FeatureCollection",
|
|
16353
16352
|
features: []
|
|
16354
16353
|
};
|
|
16355
|
-
function
|
|
16354
|
+
function Pf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
16356
16355
|
fill: {
|
|
16357
16356
|
paint: {
|
|
16358
16357
|
"fill-color": "#000",
|
|
@@ -16376,7 +16375,7 @@ function Rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16376
16375
|
function h() {
|
|
16377
16376
|
(s != null && s.fill || s != null && s.line) && r.addSource("full-geom", {
|
|
16378
16377
|
type: "geojson",
|
|
16379
|
-
data:
|
|
16378
|
+
data: Qa
|
|
16380
16379
|
}), s != null && s.fill && r.addLayer({
|
|
16381
16380
|
...s == null ? void 0 : s.fill,
|
|
16382
16381
|
id: "full-geom-fill",
|
|
@@ -16406,7 +16405,7 @@ function Rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16406
16405
|
if (!t)
|
|
16407
16406
|
throw new Error();
|
|
16408
16407
|
const E = document.createElement("div");
|
|
16409
|
-
return m && E.classList.add("marker-interactive"), new
|
|
16408
|
+
return m && E.classList.add("marker-interactive"), new Ac({
|
|
16410
16409
|
props: { displayIn: "maplibre" },
|
|
16411
16410
|
target: E
|
|
16412
16411
|
}), new t.Marker({ element: E, offset: [1, -13] });
|
|
@@ -16442,7 +16441,7 @@ function Rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16442
16441
|
}
|
|
16443
16442
|
for (const w of l)
|
|
16444
16443
|
w.remove();
|
|
16445
|
-
if (l.length = 0, C(
|
|
16444
|
+
if (l.length = 0, C(Qa), !!t) {
|
|
16446
16445
|
if (E) {
|
|
16447
16446
|
let w = !1;
|
|
16448
16447
|
if (E.geometry.type === "GeometryCollection") {
|
|
@@ -16452,8 +16451,8 @@ function Rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16452
16451
|
if (N.length > 0) {
|
|
16453
16452
|
let S = N.pop();
|
|
16454
16453
|
for (const T of N)
|
|
16455
|
-
S =
|
|
16456
|
-
|
|
16454
|
+
S = Tc(S, T);
|
|
16455
|
+
Ka({ ...E, geometry: S }, C), w = !0;
|
|
16457
16456
|
} else {
|
|
16458
16457
|
const S = E.geometry.geometries.filter(
|
|
16459
16458
|
(T) => T.type === "LineString" || T.type === "MultiLineString"
|
|
@@ -16466,7 +16465,7 @@ function Rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16466
16465
|
}
|
|
16467
16466
|
if (!w) {
|
|
16468
16467
|
if (E.geometry.type === "Polygon" || E.geometry.type === "MultiPolygon")
|
|
16469
|
-
|
|
16468
|
+
Ka(E, C);
|
|
16470
16469
|
else if (E.geometry.type === "LineString" || E.geometry.type === "MultiLineString") {
|
|
16471
16470
|
C(E);
|
|
16472
16471
|
return;
|
|
@@ -16504,11 +16503,11 @@ function Rf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
|
|
|
16504
16503
|
};
|
|
16505
16504
|
}
|
|
16506
16505
|
var Cn, Qr;
|
|
16507
|
-
class
|
|
16506
|
+
class Rf extends EventTarget {
|
|
16508
16507
|
constructor(e) {
|
|
16509
16508
|
super();
|
|
16510
|
-
|
|
16511
|
-
|
|
16509
|
+
ds(this, Cn, void 0);
|
|
16510
|
+
ds(this, Qr, void 0);
|
|
16512
16511
|
wo(this, Qr, e);
|
|
16513
16512
|
}
|
|
16514
16513
|
onAdd(e) {
|
|
@@ -16521,7 +16520,7 @@ class Of extends EventTarget {
|
|
|
16521
16520
|
fullGeometryStyle: a,
|
|
16522
16521
|
...u
|
|
16523
16522
|
} = Vn(this, Qr), l = typeof s == "boolean" ? {} : s, c = this.getExtraProps(e, n), h = {
|
|
16524
|
-
mapController:
|
|
16523
|
+
mapController: Pf(
|
|
16525
16524
|
e,
|
|
16526
16525
|
this.getMapLibreGl(),
|
|
16527
16526
|
i,
|
|
@@ -16538,7 +16537,7 @@ class Of extends EventTarget {
|
|
|
16538
16537
|
};
|
|
16539
16538
|
if (!h.apiKey)
|
|
16540
16539
|
throw new Error("no apiKey provided");
|
|
16541
|
-
wo(this, Cn, new
|
|
16540
|
+
wo(this, Cn, new sc({ target: n, props: h }));
|
|
16542
16541
|
for (const g of [
|
|
16543
16542
|
"select",
|
|
16544
16543
|
"pick",
|
|
@@ -16586,9 +16585,9 @@ class Of extends EventTarget {
|
|
|
16586
16585
|
}
|
|
16587
16586
|
}
|
|
16588
16587
|
Cn = new WeakMap(), Qr = new WeakMap();
|
|
16589
|
-
class
|
|
16588
|
+
class Df extends Rf {
|
|
16590
16589
|
getMapLibreGl() {
|
|
16591
|
-
return
|
|
16590
|
+
return dl;
|
|
16592
16591
|
}
|
|
16593
16592
|
getExtraProps(t, e) {
|
|
16594
16593
|
const n = {};
|
|
@@ -16601,6 +16600,6 @@ class Mf extends Of {
|
|
|
16601
16600
|
}
|
|
16602
16601
|
}
|
|
16603
16602
|
export {
|
|
16604
|
-
|
|
16603
|
+
Df as GeocodingControl
|
|
16605
16604
|
};
|
|
16606
16605
|
//# sourceMappingURL=maptilersdk.js.map
|