@maptiler/geocoding-control 0.0.56 → 0.0.58

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/dist/leaflet.js CHANGED
@@ -1,48 +1,48 @@
1
- var $s = (r, t, e) => {
1
+ var ta = (r, t, e) => {
2
2
  if (!t.has(r))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var Bn = (r, t, e) => ($s(r, t, "read from private field"), e ? e.call(r) : t.get(r)), cs = (r, t, e) => {
5
+ var Bn = (r, t, e) => (ta(r, t, "read from private field"), e ? e.call(r) : t.get(r)), fs = (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
- }, Co = (r, t, e, n) => ($s(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
9
+ }, Co = (r, t, e, n) => (ta(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
10
10
  import * as tr from "leaflet";
11
11
  function xt() {
12
12
  }
13
- function ol(r, t) {
13
+ function sl(r, t) {
14
14
  for (const e in t)
15
15
  r[e] = t[e];
16
16
  return r;
17
17
  }
18
- function qa(r) {
18
+ function Xa(r) {
19
19
  return r();
20
20
  }
21
- function ta() {
21
+ function ea() {
22
22
  return /* @__PURE__ */ Object.create(null);
23
23
  }
24
24
  function Dr(r) {
25
- r.forEach(qa);
25
+ r.forEach(Xa);
26
26
  }
27
- function Xa(r) {
27
+ function Ya(r) {
28
28
  return typeof r == "function";
29
29
  }
30
30
  function Ti(r, t) {
31
31
  return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
32
32
  }
33
- function sl(r) {
33
+ function al(r) {
34
34
  return Object.keys(r).length === 0;
35
35
  }
36
- function al(r, t, e, n) {
36
+ function ul(r, t, e, n) {
37
37
  if (r) {
38
- const i = Ya(r, t, e, n);
38
+ const i = Ha(r, t, e, n);
39
39
  return r[0](i);
40
40
  }
41
41
  }
42
- function Ya(r, t, e, n) {
43
- return r[1] && n ? ol(e.ctx.slice(), r[1](n(t))) : e.ctx;
42
+ function Ha(r, t, e, n) {
43
+ return r[1] && n ? sl(e.ctx.slice(), r[1](n(t))) : e.ctx;
44
44
  }
45
- function ul(r, t, e, n) {
45
+ function ll(r, t, e, n) {
46
46
  if (r[2] && n) {
47
47
  const i = r[2](n(e));
48
48
  if (t.dirty === void 0)
@@ -57,13 +57,13 @@ function ul(r, t, e, n) {
57
57
  }
58
58
  return t.dirty;
59
59
  }
60
- function ll(r, t, e, n, i, o) {
60
+ function cl(r, t, e, n, i, o) {
61
61
  if (i) {
62
- const s = Ya(t, e, n, o);
62
+ const s = Ha(t, e, n, o);
63
63
  r.p(s, i);
64
64
  }
65
65
  }
66
- function cl(r) {
66
+ function fl(r) {
67
67
  if (r.ctx.length > 32) {
68
68
  const t = [], e = r.ctx.length / 32;
69
69
  for (let n = 0; n < e; n++)
@@ -72,7 +72,7 @@ function cl(r) {
72
72
  }
73
73
  return -1;
74
74
  }
75
- function ea(r) {
75
+ function na(r) {
76
76
  return r ?? "";
77
77
  }
78
78
  function lt(r, t) {
@@ -84,7 +84,7 @@ function Ke(r, t, e) {
84
84
  function Ae(r) {
85
85
  r.parentNode && r.parentNode.removeChild(r);
86
86
  }
87
- function fl(r, t) {
87
+ function hl(r, t) {
88
88
  for (let e = 0; e < r.length; e += 1)
89
89
  r[e] && r[e].d(t);
90
90
  }
@@ -103,7 +103,7 @@ function qn() {
103
103
  function ke(r, t, e, n) {
104
104
  return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
105
105
  }
106
- function hl(r) {
106
+ function gl(r) {
107
107
  return function(t) {
108
108
  return t.preventDefault(), r.call(this, t);
109
109
  };
@@ -111,19 +111,19 @@ function hl(r) {
111
111
  function B(r, t, e) {
112
112
  e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
113
113
  }
114
- function gl(r) {
114
+ function pl(r) {
115
115
  return Array.from(r.childNodes);
116
116
  }
117
117
  function ji(r, t) {
118
118
  t = "" + t, r.wholeText !== t && (r.data = t);
119
119
  }
120
- function na(r, t) {
120
+ function ra(r, t) {
121
121
  r.value = t ?? "";
122
122
  }
123
123
  function rn(r, t, e) {
124
124
  r.classList[e ? "add" : "remove"](t);
125
125
  }
126
- function pl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
126
+ function dl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
127
127
  const i = document.createEvent("CustomEvent");
128
128
  return i.initCustomEvent(r, e, n, t), i;
129
129
  }
@@ -131,20 +131,20 @@ let Ki;
131
131
  function Hi(r) {
132
132
  Ki = r;
133
133
  }
134
- function Ha() {
134
+ function Wa() {
135
135
  if (!Ki)
136
136
  throw new Error("Function called outside component initialization");
137
137
  return Ki;
138
138
  }
139
- function dl(r) {
140
- Ha().$$.on_destroy.push(r);
139
+ function vl(r) {
140
+ Wa().$$.on_destroy.push(r);
141
141
  }
142
- function vl() {
143
- const r = Ha();
142
+ function yl() {
143
+ const r = Wa();
144
144
  return (t, e, { cancelable: n = !1 } = {}) => {
145
145
  const i = r.$$.callbacks[t];
146
146
  if (i) {
147
- const o = pl(t, e, { cancelable: n });
147
+ const o = dl(t, e, { cancelable: n });
148
148
  return i.slice().forEach((s) => {
149
149
  s.call(r, o);
150
150
  }), !o.defaultPrevented;
@@ -152,17 +152,17 @@ function vl() {
152
152
  return !0;
153
153
  };
154
154
  }
155
- const ui = [], vs = [], bo = [], ra = [], yl = Promise.resolve();
156
- let ys = !1;
157
- function ml() {
158
- ys || (ys = !0, yl.then(Wa));
155
+ const ui = [], ys = [], bo = [], ia = [], ml = Promise.resolve();
156
+ let ms = !1;
157
+ function _l() {
158
+ ms || (ms = !0, ml.then(ja));
159
159
  }
160
- function ms(r) {
160
+ function _s(r) {
161
161
  bo.push(r);
162
162
  }
163
- const fs = /* @__PURE__ */ new Set();
163
+ const hs = /* @__PURE__ */ new Set();
164
164
  let ai = 0;
165
- function Wa() {
165
+ function ja() {
166
166
  if (ai !== 0)
167
167
  return;
168
168
  const r = Ki;
@@ -170,28 +170,28 @@ function Wa() {
170
170
  try {
171
171
  for (; ai < ui.length; ) {
172
172
  const t = ui[ai];
173
- ai++, Hi(t), _l(t.$$);
173
+ ai++, Hi(t), El(t.$$);
174
174
  }
175
175
  } catch (t) {
176
176
  throw ui.length = 0, ai = 0, t;
177
177
  }
178
- for (Hi(null), ui.length = 0, ai = 0; vs.length; )
179
- vs.pop()();
178
+ for (Hi(null), ui.length = 0, ai = 0; ys.length; )
179
+ ys.pop()();
180
180
  for (let t = 0; t < bo.length; t += 1) {
181
181
  const e = bo[t];
182
- fs.has(e) || (fs.add(e), e());
182
+ hs.has(e) || (hs.add(e), e());
183
183
  }
184
184
  bo.length = 0;
185
185
  } while (ui.length);
186
- for (; ra.length; )
187
- ra.pop()();
188
- ys = !1, fs.clear(), Hi(r);
186
+ for (; ia.length; )
187
+ ia.pop()();
188
+ ms = !1, hs.clear(), Hi(r);
189
189
  }
190
- function _l(r) {
190
+ function El(r) {
191
191
  if (r.fragment !== null) {
192
192
  r.update(), Dr(r.before_update);
193
193
  const t = r.dirty;
194
- r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ms);
194
+ r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(_s);
195
195
  }
196
196
  }
197
197
  const Po = /* @__PURE__ */ new Set();
@@ -224,17 +224,17 @@ function Qi(r) {
224
224
  }
225
225
  function ci(r, t, e, n) {
226
226
  const { fragment: i, after_update: o } = r.$$;
227
- i && i.m(t, e), n || ms(() => {
228
- const s = r.$$.on_mount.map(qa).filter(Xa);
227
+ i && i.m(t, e), n || _s(() => {
228
+ const s = r.$$.on_mount.map(Xa).filter(Ya);
229
229
  r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Dr(s), r.$$.on_mount = [];
230
- }), o.forEach(ms);
230
+ }), o.forEach(_s);
231
231
  }
232
232
  function fi(r, t) {
233
233
  const e = r.$$;
234
234
  e.fragment !== null && (Dr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
235
235
  }
236
- function El(r, t) {
237
- r.$$.dirty[0] === -1 && (ui.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
236
+ function Il(r, t) {
237
+ r.$$.dirty[0] === -1 && (ui.push(r), _l(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
238
238
  }
239
239
  function Mi(r, t, e, n, i, o, s, a = [-1]) {
240
240
  const u = Ki;
@@ -245,14 +245,14 @@ function Mi(r, t, e, n, i, o, s, a = [-1]) {
245
245
  props: o,
246
246
  update: xt,
247
247
  not_equal: i,
248
- bound: ta(),
248
+ bound: ea(),
249
249
  on_mount: [],
250
250
  on_destroy: [],
251
251
  on_disconnect: [],
252
252
  before_update: [],
253
253
  after_update: [],
254
254
  context: new Map(t.context || (u ? u.$$.context : [])),
255
- callbacks: ta(),
255
+ callbacks: ea(),
256
256
  dirty: a,
257
257
  skip_bound: !1,
258
258
  root: t.target || u.$$.root
@@ -261,14 +261,14 @@ function Mi(r, t, e, n, i, o, s, a = [-1]) {
261
261
  let c = !1;
262
262
  if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
263
263
  const p = g.length ? g[0] : h;
264
- return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && El(r, f)), h;
264
+ return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Il(r, f)), h;
265
265
  }) : [], l.update(), c = !0, Dr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
266
266
  if (t.hydrate) {
267
- const f = gl(t.target);
267
+ const f = pl(t.target);
268
268
  l.fragment && l.fragment.l(f), f.forEach(Ae);
269
269
  } else
270
270
  l.fragment && l.fragment.c();
271
- t.intro && Kt(r.$$.fragment), ci(r, t.target, t.anchor, t.customElement), Wa();
271
+ t.intro && Kt(r.$$.fragment), ci(r, t.target, t.anchor, t.customElement), ja();
272
272
  }
273
273
  Hi(u);
274
274
  }
@@ -277,7 +277,7 @@ class Ai {
277
277
  fi(this, 1), this.$destroy = xt;
278
278
  }
279
279
  $on(t, e) {
280
- if (!Xa(e))
280
+ if (!Ya(e))
281
281
  return xt;
282
282
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
283
283
  return n.push(e), () => {
@@ -286,10 +286,10 @@ class Ai {
286
286
  };
287
287
  }
288
288
  $set(t) {
289
- this.$$set && !sl(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
289
+ this.$$set && !al(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
290
290
  }
291
291
  }
292
- function Il(r) {
292
+ function Cl(r) {
293
293
  let t, e;
294
294
  return {
295
295
  c() {
@@ -306,12 +306,12 @@ function Il(r) {
306
306
  }
307
307
  };
308
308
  }
309
- class Cl extends Ai {
309
+ class Nl extends Ai {
310
310
  constructor(t) {
311
- super(), Mi(this, t, null, Il, Ti, {});
311
+ super(), Mi(this, t, null, Cl, Ti, {});
312
312
  }
313
313
  }
314
- function Nl(r) {
314
+ function xl(r) {
315
315
  let t, e;
316
316
  return {
317
317
  c() {
@@ -328,12 +328,12 @@ function Nl(r) {
328
328
  }
329
329
  };
330
330
  }
331
- class xl extends Ai {
331
+ class Sl extends Ai {
332
332
  constructor(t) {
333
- super(), Mi(this, t, null, Nl, Ti, {});
333
+ super(), Mi(this, t, null, xl, Ti, {});
334
334
  }
335
335
  }
336
- function Sl(r) {
336
+ function wl(r) {
337
337
  let t;
338
338
  return {
339
339
  c() {
@@ -350,12 +350,12 @@ function Sl(r) {
350
350
  }
351
351
  };
352
352
  }
353
- class wl extends Ai {
353
+ class Ll extends Ai {
354
354
  constructor(t) {
355
- super(), Mi(this, t, null, Sl, Ti, {});
355
+ super(), Mi(this, t, null, wl, Ti, {});
356
356
  }
357
357
  }
358
- function Ll(r) {
358
+ function bl(r) {
359
359
  let t, e, n;
360
360
  return {
361
361
  c() {
@@ -374,18 +374,18 @@ function Ll(r) {
374
374
  }
375
375
  };
376
376
  }
377
- function bl(r, t, e) {
377
+ function Pl(r, t, e) {
378
378
  let { displayIn: n } = t;
379
379
  return r.$$set = (i) => {
380
380
  "displayIn" in i && e(0, n = i.displayIn);
381
381
  }, [n];
382
382
  }
383
- class ja extends Ai {
383
+ class Ka extends Ai {
384
384
  constructor(t) {
385
- super(), Mi(this, t, bl, Ll, Ti, { displayIn: 0 });
385
+ super(), Mi(this, t, Pl, bl, Ti, { displayIn: 0 });
386
386
  }
387
387
  }
388
- function Pl(r) {
388
+ function Rl(r) {
389
389
  let t, e;
390
390
  return {
391
391
  c() {
@@ -402,18 +402,18 @@ function Pl(r) {
402
402
  }
403
403
  };
404
404
  }
405
- class Rl extends Ai {
405
+ class Ol extends Ai {
406
406
  constructor(t) {
407
- super(), Mi(this, t, null, Pl, Ti, {});
407
+ super(), Mi(this, t, null, Rl, Ti, {});
408
408
  }
409
409
  }
410
- function ia(r, t, e) {
410
+ function oa(r, t, e) {
411
411
  const n = r.slice();
412
412
  return n[68] = t[e], n[70] = e, n;
413
413
  }
414
- function oa(r) {
414
+ function sa(r) {
415
415
  let t, e;
416
- return t = new wl({}), {
416
+ return t = new Ll({}), {
417
417
  c() {
418
418
  Qi(t.$$.fragment);
419
419
  },
@@ -431,9 +431,9 @@ function oa(r) {
431
431
  }
432
432
  };
433
433
  }
434
- function sa(r) {
434
+ function aa(r) {
435
435
  let t, e, n, i, o;
436
- return e = new Cl({}), {
436
+ return e = new Nl({}), {
437
437
  c() {
438
438
  t = Qt("button"), Qi(e.$$.fragment), B(t, "type", "button"), B(t, "title", r[8]), B(t, "class", "svelte-1h1zm6d"), rn(t, "active", r[1]);
439
439
  },
@@ -454,10 +454,10 @@ function sa(r) {
454
454
  }
455
455
  };
456
456
  }
457
- function Ol(r) {
457
+ function Dl(r) {
458
458
  let t, e, n, i, o = r[12], s = [];
459
459
  for (let u = 0; u < o.length; u += 1)
460
- s[u] = ua(ia(r, o, u));
460
+ s[u] = la(oa(r, o, u));
461
461
  const a = (u) => be(s[u], 1, 1, () => {
462
462
  s[u] = null;
463
463
  });
@@ -482,8 +482,8 @@ function Ol(r) {
482
482
  o = u[12];
483
483
  let c;
484
484
  for (c = 0; c < o.length; c += 1) {
485
- const f = ia(u, o, c);
486
- s[c] ? (s[c].p(f, l), Kt(s[c], 1)) : (s[c] = ua(f), s[c].c(), Kt(s[c], 1), s[c].m(t, null));
485
+ const f = oa(u, o, c);
486
+ s[c] ? (s[c].p(f, l), Kt(s[c], 1)) : (s[c] = la(f), s[c].c(), Kt(s[c], 1), s[c].m(t, null));
487
487
  }
488
488
  for (Ro(), c = o.length; c < s.length; c += 1)
489
489
  a(c);
@@ -504,11 +504,11 @@ function Ol(r) {
504
504
  e = !1;
505
505
  },
506
506
  d(u) {
507
- u && Ae(t), fl(s, u), n = !1, Dr(i);
507
+ u && Ae(t), hl(s, u), n = !1, Dr(i);
508
508
  }
509
509
  };
510
510
  }
511
- function Dl(r) {
511
+ function Tl(r) {
512
512
  let t, e;
513
513
  return {
514
514
  c() {
@@ -527,7 +527,7 @@ function Dl(r) {
527
527
  }
528
528
  };
529
529
  }
530
- function Tl(r) {
530
+ function Ml(r) {
531
531
  let t = "", e;
532
532
  return {
533
533
  c() {
@@ -544,7 +544,7 @@ function Tl(r) {
544
544
  }
545
545
  };
546
546
  }
547
- function Ml(r) {
547
+ function Al(r) {
548
548
  let t, e;
549
549
  return {
550
550
  c() {
@@ -563,7 +563,7 @@ function Ml(r) {
563
563
  }
564
564
  };
565
565
  }
566
- function aa(r) {
566
+ function ua(r) {
567
567
  let t, e = r[68].place_type + "", n;
568
568
  return {
569
569
  c() {
@@ -580,10 +580,10 @@ function aa(r) {
580
580
  }
581
581
  };
582
582
  }
583
- function ua(r) {
583
+ function la(r) {
584
584
  let t, e, n, i, o, s, a = r[68].place_name.replace(/,.*/, "") + "", u, l, c, f, h, g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "", p, m, d, y, I, C;
585
- e = new ja({ props: { displayIn: "list" } });
586
- let x = r[10] && aa(r);
585
+ e = new Ka({ props: { displayIn: "list" } });
586
+ let x = r[10] && ua(r);
587
587
  function b() {
588
588
  return r[56](r[70]);
589
589
  }
@@ -601,7 +601,7 @@ function ua(r) {
601
601
  ], I = !0);
602
602
  },
603
603
  p(D, T) {
604
- r = D, (!y || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && ji(u, a), r[10] ? x ? x.p(r, T) : (x = aa(r), x.c(), x.m(o, null)) : x && (x.d(1), x = null), (!y || T[0] & 4096) && g !== (g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "") && ji(p, g), (!y || T[0] & 8192 && d !== (d = r[13] === r[70])) && B(t, "data-selected", d), (!y || T[0] & 8192) && rn(t, "selected", r[13] === r[70]);
604
+ r = D, (!y || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && ji(u, a), r[10] ? x ? x.p(r, T) : (x = ua(r), x.c(), x.m(o, null)) : x && (x.d(1), x = null), (!y || T[0] & 4096) && g !== (g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "") && ji(p, g), (!y || T[0] & 8192 && d !== (d = r[13] === r[70])) && B(t, "data-selected", d), (!y || T[0] & 8192) && rn(t, "selected", r[13] === r[70]);
605
605
  },
606
606
  i(D) {
607
607
  y || (Kt(e.$$.fragment, D), y = !0);
@@ -614,21 +614,21 @@ function ua(r) {
614
614
  }
615
615
  };
616
616
  }
617
- function Al(r) {
617
+ function Fl(r) {
618
618
  let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, y, I, C, x;
619
- i = new Rl({}), c = new xl({});
620
- let b = r[17] && oa(), w = r[7] === !0 && sa(r);
621
- const D = r[47].default, T = al(D, r, r[46], null), F = [Ml, Tl, Dl, Ol], j = [];
619
+ i = new Ol({}), c = new Sl({});
620
+ let b = r[17] && sa(), w = r[7] === !0 && aa(r);
621
+ const D = r[47].default, T = ul(D, r, r[46], null), F = [Al, Ml, Tl, Dl], j = [];
622
622
  function k(O, Y) {
623
623
  var P, X;
624
624
  return O[16] ? 0 : O[14] ? ((P = O[12]) == null ? void 0 : P.length) === 0 ? 2 : O[14] && ((X = O[12]) != null && X.length) ? 3 : -1 : 1;
625
625
  }
626
626
  return ~(m = k(r)) && (d = j[m] = F[m](r)), {
627
627
  c() {
628
- t = Qt("form"), e = Qt("div"), n = Qt("button"), Qi(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), Qi(c.$$.fragment), f = qn(), b && b.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), d && d.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", y = ea(r[2]) + " svelte-1h1zm6d"), rn(t, "can-collapse", r[6] && r[0] === "");
628
+ t = Qt("form"), e = Qt("div"), n = Qt("button"), Qi(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), Qi(c.$$.fragment), f = qn(), b && b.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), d && d.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", y = na(r[2]) + " svelte-1h1zm6d"), rn(t, "can-collapse", r[6] && r[0] === "");
629
629
  },
630
630
  m(O, Y) {
631
- Ke(O, t, Y), lt(t, e), lt(e, n), ci(i, n, null), lt(e, o), lt(e, s), r[49](s), na(s, r[0]), lt(e, a), lt(e, u), lt(u, l), ci(c, l, null), lt(u, f), b && b.m(u, null), lt(e, h), w && w.m(e, null), lt(e, g), T && T.m(e, null), lt(t, p), ~m && j[m].m(t, null), I = !0, C || (x = [
631
+ Ke(O, t, Y), lt(t, e), lt(e, n), ci(i, n, null), lt(e, o), lt(e, s), r[49](s), ra(s, r[0]), lt(e, a), lt(e, u), lt(u, l), ci(c, l, null), lt(u, f), b && b.m(u, null), lt(e, h), w && w.m(e, null), lt(e, g), T && T.m(e, null), lt(t, p), ~m && j[m].m(t, null), I = !0, C || (x = [
632
632
  ke(n, "click", r[48]),
633
633
  ke(s, "input", r[50]),
634
634
  ke(s, "focus", r[51]),
@@ -636,26 +636,26 @@ function Al(r) {
636
636
  ke(s, "keydown", r[19]),
637
637
  ke(s, "input", r[53]),
638
638
  ke(l, "click", r[54]),
639
- ke(t, "submit", hl(r[18]))
639
+ ke(t, "submit", gl(r[18]))
640
640
  ], C = !0);
641
641
  },
642
642
  p(O, Y) {
643
- (!I || Y[0] & 8) && B(s, "placeholder", O[3]), (!I || Y[0] & 8) && B(s, "aria-label", O[3]), Y[0] & 1 && s.value !== O[0] && na(s, O[0]), (!I || Y[0] & 512) && B(l, "title", O[9]), (!I || Y[0] & 1) && rn(l, "displayable", O[0] !== ""), O[17] ? b ? Y[0] & 131072 && Kt(b, 1) : (b = oa(), b.c(), Kt(b, 1), b.m(u, null)) : b && (Ro(), be(b, 1, 1, () => {
643
+ (!I || Y[0] & 8) && B(s, "placeholder", O[3]), (!I || Y[0] & 8) && B(s, "aria-label", O[3]), Y[0] & 1 && s.value !== O[0] && ra(s, O[0]), (!I || Y[0] & 512) && B(l, "title", O[9]), (!I || Y[0] & 1) && rn(l, "displayable", O[0] !== ""), O[17] ? b ? Y[0] & 131072 && Kt(b, 1) : (b = sa(), b.c(), Kt(b, 1), b.m(u, null)) : b && (Ro(), be(b, 1, 1, () => {
644
644
  b = null;
645
- }), Oo()), O[7] === !0 ? w ? (w.p(O, Y), Y[0] & 128 && Kt(w, 1)) : (w = sa(O), w.c(), Kt(w, 1), w.m(e, g)) : w && (Ro(), be(w, 1, 1, () => {
645
+ }), Oo()), O[7] === !0 ? w ? (w.p(O, Y), Y[0] & 128 && Kt(w, 1)) : (w = aa(O), w.c(), Kt(w, 1), w.m(e, g)) : w && (Ro(), be(w, 1, 1, () => {
646
646
  w = null;
647
- }), Oo()), T && T.p && (!I || Y[1] & 32768) && ll(
647
+ }), Oo()), T && T.p && (!I || Y[1] & 32768) && cl(
648
648
  T,
649
649
  D,
650
650
  O,
651
651
  O[46],
652
- I ? ul(D, O[46], Y, null) : cl(O[46]),
652
+ I ? ll(D, O[46], Y, null) : fl(O[46]),
653
653
  null
654
654
  );
655
655
  let P = m;
656
656
  m = k(O), m === P ? ~m && j[m].p(O, Y) : (d && (Ro(), be(j[P], 1, 1, () => {
657
657
  j[P] = null;
658
- }), Oo()), ~m ? (d = j[m], d ? d.p(O, Y) : (d = j[m] = F[m](O), d.c()), Kt(d, 1), d.m(t, null)) : d = null), (!I || Y[0] & 4 && y !== (y = ea(O[2]) + " svelte-1h1zm6d")) && B(t, "class", y), (!I || Y[0] & 69) && rn(t, "can-collapse", O[6] && O[0] === "");
658
+ }), Oo()), ~m ? (d = j[m], d ? d.p(O, Y) : (d = j[m] = F[m](O), d.c()), Kt(d, 1), d.m(t, null)) : d = null), (!I || Y[0] & 4 && y !== (y = na(O[2]) + " svelte-1h1zm6d")) && B(t, "class", y), (!I || Y[0] & 69) && rn(t, "can-collapse", O[6] && O[0] === "");
659
659
  },
660
660
  i(O) {
661
661
  I || (Kt(i.$$.fragment, O), Kt(c.$$.fragment, O), Kt(b), Kt(w), Kt(T, O), Kt(d), I = !0);
@@ -668,11 +668,11 @@ function Al(r) {
668
668
  }
669
669
  };
670
670
  }
671
- function Fl(r, t, e) {
671
+ function Bl(r, t, e) {
672
672
  const n = t[1], i = t[0], o = n - i;
673
673
  return r === n && e ? r : ((r - i) % o + o) % o + i;
674
674
  }
675
- function Bl(r, t, e) {
675
+ function Gl(r, t, e) {
676
676
  let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { mapController: a = void 0 } = t, { apiKey: u } = t, { debounceSearch: l = 200 } = t, { placeholder: c = "Search" } = t, { errorMessage: f = "Searching failed" } = t, { noResultsMessage: h = "No results found" } = t, { proximity: g = void 0 } = t, { bbox: p = void 0 } = t, { trackProximity: m = !0 } = t, { minLength: d = 2 } = t, { language: y = void 0 } = t, { showResultsWhileTyping: I = !0 } = t, { zoom: C = 16 } = t, { flyTo: x = !0 } = t, { collapsed: b = !1 } = t, { clearOnBlur: w = !1 } = t, { enableReverse: D = !1 } = t, { reverseButtonTitle: T = "toggle reverse geocoding" } = t, { clearButtonTitle: F = "clear" } = t, { filter: j = () => !0 } = t, { searchValue: k = "" } = t, { reverseActive: O = D === "always" } = t, { showPlaceType: Y = !1 } = t, { showFullGeometry: P = !0 } = t, { limit: X = void 0 } = t, { fuzzyMatch: ut = !0 } = t, { country: yt = void 0 } = t, { types: Xt = void 0 } = t;
677
677
  function we() {
678
678
  An.focus();
@@ -681,54 +681,56 @@ function Bl(r, t, e) {
681
681
  An.blur();
682
682
  }
683
683
  function Ze(N, Ft = !0) {
684
- e(0, k = N), Ft ? (e(13, At = -1), Js()) : (as(), setTimeout(() => {
684
+ e(0, k = N), Ft ? (e(13, At = -1), Zs()) : (as(), setTimeout(() => {
685
685
  An.focus(), An.select();
686
686
  }));
687
687
  }
688
- let Le = !1, J, Mt, it, Qs = "", An, At = -1, gr, Eo = [], Fr, si, Io;
689
- const pr = vl();
690
- dl(() => {
688
+ let Le = !1, J, Mt, it, Js = "", An, At = -1, gr, Eo = [], Fr, si, Io;
689
+ const pr = yl();
690
+ vl(() => {
691
691
  a && (a.setEventHandler(void 0), a.indicateReverse(!1), a.setSelectedMarker(-1), a.setMarkers(void 0, void 0));
692
692
  });
693
- function Js(N) {
693
+ function Zs(N) {
694
694
  if (si && (clearTimeout(si), si = void 0), At > -1 && J)
695
695
  e(44, it = J[At]), e(0, k = it.place_name.replace(/,.*/, "")), e(16, gr = void 0), e(43, Mt = void 0), e(13, At = -1);
696
696
  else if (k) {
697
- const Ft = N || !Zs();
697
+ const Ft = N || !$s();
698
698
  ss(k, { exact: !0 }).then(() => {
699
- e(43, Mt = J), e(44, it = void 0), Ft && Xu();
699
+ e(43, Mt = J), e(44, it = void 0), Ft && Yu();
700
700
  }).catch((Fn) => e(16, gr = Fn));
701
701
  }
702
702
  }
703
- function Zs() {
703
+ function $s() {
704
704
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(k);
705
705
  }
706
706
  async function ss(N, { byId: Ft = !1, exact: Fn = !1 } = {}) {
707
707
  e(16, gr = void 0);
708
- const Vi = Zs(), Ge = new URLSearchParams();
709
- y && Ge.set("language", Array.isArray(y) ? y.join(",") : y), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt), Xt && Ge.set("types", Xt.join(",")), Vi || (p && Ge.set("bbox", p.map((Gr) => Gr.toFixed(6)).join(",")), Ft || (g && Ge.set("proximity", g.map((Gr) => Gr.toFixed(6)).join(",")), (Fn || !I) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut)))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
708
+ const Vi = $s(), Ge = new URLSearchParams();
709
+ y && Ge.set("language", Array.isArray(y) ? y.join(",") : y), Xt && Ge.set("types", Xt.join(",")), Vi || (p && Ge.set("bbox", p.map((Gr) => Gr.toFixed(6)).join(",")), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt)), Ft || (g && Ge.set("proximity", g.map((Gr) => Gr.toFixed(6)).join(",")), (Fn || !I) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
710
710
  const Br = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Ge.toString();
711
- if (Br === Qs) {
711
+ if (Br === Js) {
712
712
  Ft ? (e(12, J = void 0), e(44, it = Eo[0])) : e(12, J = Eo);
713
713
  return;
714
714
  }
715
- Qs = Br, Fr == null || Fr.abort(), e(17, Fr = new AbortController());
716
- let ve;
715
+ Js = Br, Fr == null || Fr.abort();
716
+ const ve = new AbortController();
717
+ e(17, Fr = ve);
718
+ let ls;
717
719
  try {
718
- ve = await fetch(Br, { signal: Fr.signal }).finally(() => {
719
- e(17, Fr = void 0);
720
+ console.log("fetch"), ls = await fetch(Br, { signal: ve.signal }).finally(() => {
721
+ ve === Fr && e(17, Fr = void 0);
720
722
  });
721
723
  } catch (Gr) {
722
724
  if (Gr && typeof Gr == "object" && Gr.name === "AbortError")
723
725
  return;
724
726
  throw new Error();
725
727
  }
726
- if (!ve.ok)
728
+ if (!ls.ok)
727
729
  throw new Error();
728
- const ls = await ve.json();
729
- pr("response", { url: Br, featureCollection: ls }), Ft ? (e(12, J = void 0), e(44, it = ls.features[0]), Eo = [it]) : (e(12, J = ls.features.filter(j)), Eo = J, Vi && An.focus());
730
+ const cs = await ls.json();
731
+ pr("response", { url: Br, featureCollection: cs }), Ft ? (e(12, J = void 0), e(44, it = cs.features[0]), Eo = [it]) : (e(12, J = cs.features.filter(j)), Eo = J, Vi && An.focus());
730
732
  }
731
- function Xu() {
733
+ function Yu() {
732
734
  var Fn, Vi, Ge, Br;
733
735
  if (!(Mt != null && Mt.length) || !x)
734
736
  return;
@@ -737,10 +739,10 @@ function Bl(r, t, e) {
737
739
  (Ft || !ve.matching_text) && (N[0] = Math.min(N[0], ((Fn = ve.bbox) == null ? void 0 : Fn[0]) ?? ve.center[0]), N[1] = Math.min(N[1], ((Vi = ve.bbox) == null ? void 0 : Vi[1]) ?? ve.center[1]), N[2] = Math.max(N[2], ((Ge = ve.bbox) == null ? void 0 : Ge[2]) ?? ve.center[0]), N[3] = Math.max(N[3], ((Br = ve.bbox) == null ? void 0 : Br[3]) ?? ve.center[1]));
738
740
  a && Mt.length > 0 && (it && N[0] === N[2] && N[1] === N[3] ? a.flyTo(it.center, C) : a.fitBounds(N, 50));
739
741
  }
740
- function Yu(N) {
741
- e(1, O = D === "always"), Ze(Fl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
742
- }
743
742
  function Hu(N) {
743
+ e(1, O = D === "always"), Ze(Bl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
744
+ }
745
+ function Wu(N) {
744
746
  if (!J)
745
747
  return;
746
748
  let Ft = N.key === "ArrowDown" ? 1 : N.key === "ArrowUp" ? -1 : 0;
@@ -762,18 +764,18 @@ function Bl(r, t, e) {
762
764
  function us(N) {
763
765
  e(44, it = N), e(0, k = N.place_name), e(13, At = -1);
764
766
  }
765
- const Wu = () => An.focus();
766
- function ju(N) {
767
- vs[N ? "unshift" : "push"](() => {
767
+ const ju = () => An.focus();
768
+ function Ku(N) {
769
+ ys[N ? "unshift" : "push"](() => {
768
770
  An = N, e(15, An);
769
771
  });
770
772
  }
771
- function Ku() {
773
+ function Qu() {
772
774
  k = this.value, e(0, k), e(11, Le), e(33, w);
773
775
  }
774
- const Qu = () => e(11, Le = !0), Ju = () => e(11, Le = !1), Zu = () => as(), $u = () => {
776
+ const Ju = () => e(11, Le = !0), Zu = () => e(11, Le = !1), $u = () => as(), tl = () => {
775
777
  e(0, k = ""), An.focus();
776
- }, tl = () => e(1, O = !O), el = (N) => e(13, At = N), nl = (N) => us(N), rl = () => e(13, At = -1), il = () => {
778
+ }, el = () => e(1, O = !O), nl = (N) => e(13, At = N), rl = (N) => us(N), il = () => e(13, At = -1), ol = () => {
777
779
  };
778
780
  return r.$$set = (N) => {
779
781
  "class" in N && e(2, s = N.class), "mapController" in N && e(23, a = N.mapController), "apiKey" in N && e(24, u = N.apiKey), "debounceSearch" in N && e(25, l = N.debounceSearch), "placeholder" in N && e(3, c = N.placeholder), "errorMessage" in N && e(4, f = N.errorMessage), "noResultsMessage" in N && e(5, h = N.noResultsMessage), "proximity" in N && e(22, g = N.proximity), "bbox" in N && e(26, p = N.bbox), "trackProximity" in N && e(27, m = N.trackProximity), "minLength" in N && e(28, d = N.minLength), "language" in N && e(29, y = N.language), "showResultsWhileTyping" in N && e(30, I = N.showResultsWhileTyping), "zoom" in N && e(31, C = N.zoom), "flyTo" in N && e(32, x = N.flyTo), "collapsed" in N && e(6, b = N.collapsed), "clearOnBlur" in N && e(33, w = N.clearOnBlur), "enableReverse" in N && e(7, D = N.enableReverse), "reverseButtonTitle" in N && e(8, T = N.reverseButtonTitle), "clearButtonTitle" in N && e(9, F = N.clearButtonTitle), "filter" in N && e(34, j = N.filter), "searchValue" in N && e(0, k = N.searchValue), "reverseActive" in N && e(1, O = N.reverseActive), "showPlaceType" in N && e(10, Y = N.showPlaceType), "showFullGeometry" in N && e(35, P = N.showFullGeometry), "limit" in N && e(36, X = N.limit), "fuzzyMatch" in N && e(37, ut = N.fuzzyMatch), "country" in N && e(38, yt = N.country), "types" in N && e(39, Xt = N.types), "$$scope" in N && e(46, o = N.$$scope);
@@ -783,7 +785,7 @@ function Bl(r, t, e) {
783
785
  }), r.$$.dirty[0] & 4097 && (k || (e(44, it = void 0), e(12, J = void 0), e(16, gr = void 0), e(43, Mt = J))), r.$$.dirty[1] & 8208 && P && it && !it.address && it.geometry.type === "Point" && ss(it.id, { byId: !0 }).catch((N) => e(16, gr = N)), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 8195 && a && it && x && (!it.bbox || it.bbox[0] === it.bbox[2] && it.bbox[1] === it.bbox[3] ? a.flyTo(it.center, C) : a.fitBounds(it.bbox, 50), e(12, J = void 0), e(43, Mt = void 0), e(13, At = -1)), r.$$.dirty[0] & 4096 | r.$$.dirty[1] & 4096 && Mt !== J && e(43, Mt = void 0), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 12288 && a && a.setMarkers(Mt, it), r.$$.dirty[0] & 1 && e(13, At = -1), r.$$.dirty[0] & 142626818 && a && a.setEventHandler((N) => {
784
786
  switch (N.type) {
785
787
  case "mapClick":
786
- O && Yu(N.coordinates);
788
+ O && Hu(N.coordinates);
787
789
  break;
788
790
  case "proximityChange":
789
791
  e(22, g = m ? N.proximity : void 0);
@@ -825,8 +827,8 @@ function Bl(r, t, e) {
825
827
  An,
826
828
  gr,
827
829
  Fr,
828
- Js,
829
- Hu,
830
+ Zs,
831
+ Wu,
830
832
  as,
831
833
  us,
832
834
  g,
@@ -855,7 +857,6 @@ function Bl(r, t, e) {
855
857
  n,
856
858
  o,
857
859
  i,
858
- Wu,
859
860
  ju,
860
861
  Ku,
861
862
  Qu,
@@ -866,16 +867,17 @@ function Bl(r, t, e) {
866
867
  el,
867
868
  nl,
868
869
  rl,
869
- il
870
+ il,
871
+ ol
870
872
  ];
871
873
  }
872
- let Gl = class extends Ai {
874
+ let kl = class extends Ai {
873
875
  constructor(t) {
874
876
  super(), Mi(
875
877
  this,
876
878
  t,
877
- Bl,
878
- Al,
879
+ Gl,
880
+ Fl,
879
881
  Ti,
880
882
  {
881
883
  class: 2,
@@ -925,7 +927,7 @@ let Gl = class extends Ai {
925
927
  return this.$$.ctx[42];
926
928
  }
927
929
  };
928
- function kl(r, t) {
930
+ function zl(r, t) {
929
931
  var e = { label: 0, sent: function() {
930
932
  if (o[0] & 1)
931
933
  throw o[1];
@@ -996,7 +998,7 @@ var Cr = function() {
996
998
  }
997
999
  return r;
998
1000
  }();
999
- function zl(r, t) {
1001
+ function Vl(r, t) {
1000
1002
  return r > t ? 1 : r < t ? -1 : 0;
1001
1003
  }
1002
1004
  function yr(r, t, e) {
@@ -1025,7 +1027,7 @@ function yr(r, t, e) {
1025
1027
  }
1026
1028
  return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
1027
1029
  }
1028
- function hs(r, t, e, n) {
1030
+ function gs(r, t, e, n) {
1029
1031
  var i = new Cr(r, t);
1030
1032
  if (e === null)
1031
1033
  return i.left = i.right = null, i;
@@ -1033,7 +1035,7 @@ function hs(r, t, e, n) {
1033
1035
  var o = n(r, e.key);
1034
1036
  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;
1035
1037
  }
1036
- function la(r, t, e) {
1038
+ function ca(r, t, e) {
1037
1039
  var n = null, i = null;
1038
1040
  if (t) {
1039
1041
  t = yr(r, t, e);
@@ -1042,23 +1044,23 @@ function la(r, t, e) {
1042
1044
  }
1043
1045
  return { left: n, right: i };
1044
1046
  }
1045
- function Vl(r, t, e) {
1047
+ function Ul(r, t, e) {
1046
1048
  return t === null ? r : (r === null || (t = yr(r.key, t, e), t.left = r), t);
1047
1049
  }
1048
- function _s(r, t, e, n, i) {
1050
+ function Es(r, t, e, n, i) {
1049
1051
  if (r) {
1050
1052
  n("" + t + (e ? "└── " : "├── ") + i(r) + `
1051
1053
  `);
1052
1054
  var o = t + (e ? " " : "│ ");
1053
- r.left && _s(r.left, o, !1, n, i), r.right && _s(r.right, o, !0, n, i);
1055
+ r.left && Es(r.left, o, !1, n, i), r.right && Es(r.right, o, !0, n, i);
1054
1056
  }
1055
1057
  }
1056
- var Ts = function() {
1058
+ var Ms = function() {
1057
1059
  function r(t) {
1058
- t === void 0 && (t = zl), this._root = null, this._size = 0, this._comparator = t;
1060
+ t === void 0 && (t = Vl), this._root = null, this._size = 0, this._comparator = t;
1059
1061
  }
1060
1062
  return r.prototype.insert = function(t, e) {
1061
- return this._size++, this._root = hs(t, e, this._root, this._comparator);
1063
+ return this._size++, this._root = gs(t, e, this._root, this._comparator);
1062
1064
  }, r.prototype.add = function(t, e) {
1063
1065
  var n = new Cr(t, e);
1064
1066
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
@@ -1183,15 +1185,15 @@ var Ts = function() {
1183
1185
  }, r.prototype.clear = function() {
1184
1186
  return this._root = null, this._size = 0, this;
1185
1187
  }, r.prototype.toList = function() {
1186
- return ql(this._root);
1188
+ return Xl(this._root);
1187
1189
  }, r.prototype.load = function(t, e, n) {
1188
1190
  e === void 0 && (e = []), n === void 0 && (n = !1);
1189
1191
  var i = t.length, o = this._comparator;
1190
- if (n && Cs(t, e, 0, i - 1, o), this._root === null)
1191
- this._root = Es(t, e, 0, i), this._size = i;
1192
+ if (n && Ns(t, e, 0, i - 1, o), this._root === null)
1193
+ this._root = Is(t, e, 0, i), this._size = i;
1192
1194
  else {
1193
- var s = Xl(this.toList(), Ul(t, e), o);
1194
- i = this._size + i, this._root = Is({ head: s }, 0, i);
1195
+ var s = Yl(this.toList(), ql(t, e), o);
1196
+ i = this._size + i, this._root = Cs({ head: s }, 0, i);
1195
1197
  }
1196
1198
  return this;
1197
1199
  }, r.prototype.isEmpty = function() {
@@ -1213,17 +1215,17 @@ var Ts = function() {
1213
1215
  return String(n.key);
1214
1216
  });
1215
1217
  var e = [];
1216
- return _s(this._root, "", !0, function(n) {
1218
+ return Es(this._root, "", !0, function(n) {
1217
1219
  return e.push(n);
1218
1220
  }, t), e.join("");
1219
1221
  }, r.prototype.update = function(t, e, n) {
1220
- var i = this._comparator, o = la(t, this._root, i), s = o.left, a = o.right;
1221
- i(t, e) < 0 ? a = hs(e, n, a, i) : s = hs(e, n, s, i), this._root = Vl(s, a, i);
1222
+ var i = this._comparator, o = ca(t, this._root, i), s = o.left, a = o.right;
1223
+ i(t, e) < 0 ? a = gs(e, n, a, i) : s = gs(e, n, s, i), this._root = Ul(s, a, i);
1222
1224
  }, r.prototype.split = function(t) {
1223
- return la(t, this._root, this._comparator);
1225
+ return ca(t, this._root, this._comparator);
1224
1226
  }, r.prototype[Symbol.iterator] = function() {
1225
1227
  var t;
1226
- return kl(this, function(e) {
1228
+ return zl(this, function(e) {
1227
1229
  switch (e.label) {
1228
1230
  case 0:
1229
1231
  t = this.minNode(), e.label = 1;
@@ -1237,38 +1239,38 @@ var Ts = function() {
1237
1239
  });
1238
1240
  }, r;
1239
1241
  }();
1240
- function Es(r, t, e, n) {
1242
+ function Is(r, t, e, n) {
1241
1243
  var i = n - e;
1242
1244
  if (i > 0) {
1243
1245
  var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Cr(s, a);
1244
- return u.left = Es(r, t, e, o), u.right = Es(r, t, o + 1, n), u;
1246
+ return u.left = Is(r, t, e, o), u.right = Is(r, t, o + 1, n), u;
1245
1247
  }
1246
1248
  return null;
1247
1249
  }
1248
- function Ul(r, t) {
1250
+ function ql(r, t) {
1249
1251
  for (var e = new Cr(null, null), n = e, i = 0; i < r.length; i++)
1250
1252
  n = n.next = new Cr(r[i], t[i]);
1251
1253
  return n.next = null, e.next;
1252
1254
  }
1253
- function ql(r) {
1255
+ function Xl(r) {
1254
1256
  for (var t = r, e = [], n = !1, i = new Cr(null, null), o = i; !n; )
1255
1257
  t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
1256
1258
  return o.next = null, i.next;
1257
1259
  }
1258
- function Is(r, t, e) {
1260
+ function Cs(r, t, e) {
1259
1261
  var n = e - t;
1260
1262
  if (n > 0) {
1261
- var i = t + Math.floor(n / 2), o = Is(r, t, i), s = r.head;
1262
- return s.left = o, r.head = r.head.next, s.right = Is(r, i + 1, e), s;
1263
+ var i = t + Math.floor(n / 2), o = Cs(r, t, i), s = r.head;
1264
+ return s.left = o, r.head = r.head.next, s.right = Cs(r, i + 1, e), s;
1263
1265
  }
1264
1266
  return null;
1265
1267
  }
1266
- function Xl(r, t, e) {
1268
+ function Yl(r, t, e) {
1267
1269
  for (var n = new Cr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
1268
1270
  e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
1269
1271
  return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
1270
1272
  }
1271
- function Cs(r, t, e, n, i) {
1273
+ function Ns(r, t, e, n, i) {
1272
1274
  if (!(e >= n)) {
1273
1275
  for (var o = r[e + n >> 1], s = e - 1, a = n + 1; ; ) {
1274
1276
  do
@@ -1282,25 +1284,25 @@ function Cs(r, t, e, n, i) {
1282
1284
  var u = r[s];
1283
1285
  r[s] = r[a], r[a] = u, u = t[s], t[s] = t[a], t[a] = u;
1284
1286
  }
1285
- Cs(r, t, e, a, i), Cs(r, t, a + 1, n, i);
1287
+ Ns(r, t, e, a, i), Ns(r, t, a + 1, n, i);
1286
1288
  }
1287
1289
  }
1288
1290
  function yn(r, t) {
1289
1291
  if (!(r instanceof t))
1290
1292
  throw new TypeError("Cannot call a class as a function");
1291
1293
  }
1292
- function ca(r, t) {
1294
+ function fa(r, t) {
1293
1295
  for (var e = 0; e < t.length; e++) {
1294
1296
  var n = t[e];
1295
1297
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
1296
1298
  }
1297
1299
  }
1298
1300
  function Ee(r, t, e) {
1299
- return t && ca(r.prototype, t), e && ca(r, e), r;
1301
+ return t && fa(r.prototype, t), e && fa(r, e), r;
1300
1302
  }
1301
1303
  var Ui = function(t, e) {
1302
1304
  return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
1303
- }, Ns = function(t, e) {
1305
+ }, xs = function(t, e) {
1304
1306
  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)
1305
1307
  return null;
1306
1308
  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;
@@ -1316,19 +1318,19 @@ var Ui = function(t, e) {
1316
1318
  };
1317
1319
  }, mr = Number.EPSILON;
1318
1320
  mr === void 0 && (mr = Math.pow(2, -52));
1319
- var Yl = mr * mr, xs = function(t, e) {
1321
+ var Hl = mr * mr, Ss = function(t, e) {
1320
1322
  if (-mr < t && t < mr && -mr < e && e < mr)
1321
1323
  return 0;
1322
1324
  var n = t - e;
1323
- return n * n < Yl * t * e ? 0 : t < e ? -1 : 1;
1324
- }, Hl = /* @__PURE__ */ function() {
1325
+ return n * n < Hl * t * e ? 0 : t < e ? -1 : 1;
1326
+ }, Wl = /* @__PURE__ */ function() {
1325
1327
  function r() {
1326
1328
  yn(this, r), this.reset();
1327
1329
  }
1328
1330
  return Ee(r, [{
1329
1331
  key: "reset",
1330
1332
  value: function() {
1331
- this.xRounder = new fa(), this.yRounder = new fa();
1333
+ this.xRounder = new ha(), this.yRounder = new ha();
1332
1334
  }
1333
1335
  }, {
1334
1336
  key: "round",
@@ -1339,25 +1341,25 @@ var Yl = mr * mr, xs = function(t, e) {
1339
1341
  };
1340
1342
  }
1341
1343
  }]), r;
1342
- }(), fa = /* @__PURE__ */ function() {
1344
+ }(), ha = /* @__PURE__ */ function() {
1343
1345
  function r() {
1344
- yn(this, r), this.tree = new Ts(), this.round(0);
1346
+ yn(this, r), this.tree = new Ms(), this.round(0);
1345
1347
  }
1346
1348
  return Ee(r, [{
1347
1349
  key: "round",
1348
1350
  value: function(e) {
1349
1351
  var n = this.tree.add(e), i = this.tree.prev(n);
1350
- if (i !== null && xs(n.key, i.key) === 0)
1352
+ if (i !== null && Ss(n.key, i.key) === 0)
1351
1353
  return this.tree.remove(e), i.key;
1352
1354
  var o = this.tree.next(n);
1353
- return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1355
+ return o !== null && Ss(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1354
1356
  }
1355
1357
  }]), r;
1356
- }(), Ji = new Hl(), Wi = function(t, e) {
1358
+ }(), Ji = new Wl(), Wi = function(t, e) {
1357
1359
  return t.x * e.y - t.y * e.x;
1358
- }, Ka = function(t, e) {
1360
+ }, Qa = function(t, e) {
1359
1361
  return t.x * e.x + t.y * e.y;
1360
- }, ha = function(t, e, n) {
1362
+ }, ga = function(t, e, n) {
1361
1363
  var i = {
1362
1364
  x: e.x - t.x,
1363
1365
  y: e.y - t.y
@@ -1365,10 +1367,10 @@ var Yl = mr * mr, xs = function(t, e) {
1365
1367
  x: n.x - t.x,
1366
1368
  y: n.y - t.y
1367
1369
  }, s = Wi(i, o);
1368
- return xs(s, 0);
1370
+ return Ss(s, 0);
1369
1371
  }, Mo = function(t) {
1370
- return Math.sqrt(Ka(t, t));
1371
- }, Wl = function(t, e, n) {
1372
+ return Math.sqrt(Qa(t, t));
1373
+ }, jl = function(t, e, n) {
1372
1374
  var i = {
1373
1375
  x: e.x - t.x,
1374
1376
  y: e.y - t.y
@@ -1377,7 +1379,7 @@ var Yl = mr * mr, xs = function(t, e) {
1377
1379
  y: n.y - t.y
1378
1380
  };
1379
1381
  return Wi(o, i) / Mo(o) / Mo(i);
1380
- }, jl = function(t, e, n) {
1382
+ }, Kl = function(t, e, n) {
1381
1383
  var i = {
1382
1384
  x: e.x - t.x,
1383
1385
  y: e.y - t.y
@@ -1385,26 +1387,26 @@ var Yl = mr * mr, xs = function(t, e) {
1385
1387
  x: n.x - t.x,
1386
1388
  y: n.y - t.y
1387
1389
  };
1388
- return Ka(o, i) / Mo(o) / Mo(i);
1389
- }, ga = function(t, e, n) {
1390
+ return Qa(o, i) / Mo(o) / Mo(i);
1391
+ }, pa = function(t, e, n) {
1390
1392
  return e.y === 0 ? null : {
1391
1393
  x: t.x + e.x / e.y * (n - t.y),
1392
1394
  y: n
1393
1395
  };
1394
- }, pa = function(t, e, n) {
1396
+ }, da = function(t, e, n) {
1395
1397
  return e.x === 0 ? null : {
1396
1398
  x: n,
1397
1399
  y: t.y + e.y / e.x * (n - t.x)
1398
1400
  };
1399
- }, Kl = function(t, e, n, i) {
1401
+ }, Ql = function(t, e, n, i) {
1400
1402
  if (e.x === 0)
1401
- return pa(n, i, t.x);
1403
+ return da(n, i, t.x);
1402
1404
  if (i.x === 0)
1403
- return pa(t, e, n.x);
1405
+ return da(t, e, n.x);
1404
1406
  if (e.y === 0)
1405
- return ga(n, i, t.y);
1407
+ return pa(n, i, t.y);
1406
1408
  if (i.y === 0)
1407
- return ga(t, e, n.y);
1409
+ return pa(t, e, n.y);
1408
1410
  var o = Wi(e, i);
1409
1411
  if (o == 0)
1410
1412
  return null;
@@ -1470,8 +1472,8 @@ var Yl = mr * mr, xs = function(t, e) {
1470
1472
  var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
1471
1473
  var u = a.otherSE;
1472
1474
  i.set(a, {
1473
- sine: Wl(n.point, e.point, u.point),
1474
- cosine: jl(n.point, e.point, u.point)
1475
+ sine: jl(n.point, e.point, u.point),
1476
+ cosine: Kl(n.point, e.point, u.point)
1475
1477
  });
1476
1478
  };
1477
1479
  return function(s, a) {
@@ -1481,7 +1483,7 @@ var Yl = mr * mr, xs = function(t, e) {
1481
1483
  };
1482
1484
  }
1483
1485
  }]), r;
1484
- }(), Ql = 0, Ao = /* @__PURE__ */ function() {
1486
+ }(), Jl = 0, Ao = /* @__PURE__ */ function() {
1485
1487
  Ee(r, null, [{
1486
1488
  key: "compare",
1487
1489
  value: function(e, n) {
@@ -1542,7 +1544,7 @@ var Yl = mr * mr, xs = function(t, e) {
1542
1544
  }
1543
1545
  }]);
1544
1546
  function r(t, e, n, i) {
1545
- yn(this, r), this.id = ++Ql, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
1547
+ yn(this, r), this.id = ++Jl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
1546
1548
  }
1547
1549
  return Ee(r, [{
1548
1550
  key: "replaceRightSE",
@@ -1594,7 +1596,7 @@ var Yl = mr * mr, xs = function(t, e) {
1594
1596
  }, {
1595
1597
  key: "getIntersection",
1596
1598
  value: function(e) {
1597
- var n = this.bbox(), i = e.bbox(), o = Ns(n, i);
1599
+ var n = this.bbox(), i = e.bbox(), o = xs(n, i);
1598
1600
  if (o === null)
1599
1601
  return null;
1600
1602
  var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = Ui(n, u) && this.comparePoint(u) === 0, f = Ui(i, s) && e.comparePoint(s) === 0, h = Ui(n, l) && this.comparePoint(l) === 0, g = Ui(i, a) && e.comparePoint(a) === 0;
@@ -1610,7 +1612,7 @@ var Yl = mr * mr, xs = function(t, e) {
1610
1612
  return a;
1611
1613
  if (h)
1612
1614
  return l;
1613
- var p = Kl(s, this.vector(), u, e.vector());
1615
+ var p = Ql(s, this.vector(), u, e.vector());
1614
1616
  return p === null || !Ui(o, p) ? null : Ji.round(p.x, p.y);
1615
1617
  }
1616
1618
  }, {
@@ -1758,7 +1760,7 @@ var Yl = mr * mr, xs = function(t, e) {
1758
1760
  return new r(l, c, [i], [a]);
1759
1761
  }
1760
1762
  }]), r;
1761
- }(), da = /* @__PURE__ */ function() {
1763
+ }(), va = /* @__PURE__ */ function() {
1762
1764
  function r(t, e, n) {
1763
1765
  if (yn(this, r), !Array.isArray(t) || t.length === 0)
1764
1766
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -1793,11 +1795,11 @@ var Yl = mr * mr, xs = function(t, e) {
1793
1795
  return e;
1794
1796
  }
1795
1797
  }]), r;
1796
- }(), Jl = /* @__PURE__ */ function() {
1798
+ }(), Zl = /* @__PURE__ */ function() {
1797
1799
  function r(t, e) {
1798
1800
  if (yn(this, r), !Array.isArray(t))
1799
1801
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
1800
- this.exteriorRing = new da(t[0], this, !0), this.bbox = {
1802
+ this.exteriorRing = new va(t[0], this, !0), this.bbox = {
1801
1803
  ll: {
1802
1804
  x: this.exteriorRing.bbox.ll.x,
1803
1805
  y: this.exteriorRing.bbox.ll.y
@@ -1808,7 +1810,7 @@ var Yl = mr * mr, xs = function(t, e) {
1808
1810
  }
1809
1811
  }, this.interiorRings = [];
1810
1812
  for (var n = 1, i = t.length; n < i; n++) {
1811
- var o = new da(t[n], this, !1);
1813
+ var o = new va(t[n], this, !1);
1812
1814
  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);
1813
1815
  }
1814
1816
  this.multiPoly = e;
@@ -1822,7 +1824,7 @@ var Yl = mr * mr, xs = function(t, e) {
1822
1824
  return e;
1823
1825
  }
1824
1826
  }]), r;
1825
- }(), va = /* @__PURE__ */ function() {
1827
+ }(), ya = /* @__PURE__ */ function() {
1826
1828
  function r(t, e) {
1827
1829
  if (yn(this, r), !Array.isArray(t))
1828
1830
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -1841,7 +1843,7 @@ var Yl = mr * mr, xs = function(t, e) {
1841
1843
  }
1842
1844
  };
1843
1845
  for (var n = 0, i = t.length; n < i; n++) {
1844
- var o = new Jl(t[n], this);
1846
+ var o = new Zl(t[n], this);
1845
1847
  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);
1846
1848
  }
1847
1849
  this.isSubject = e;
@@ -1855,7 +1857,7 @@ var Yl = mr * mr, xs = function(t, e) {
1855
1857
  return e;
1856
1858
  }
1857
1859
  }]), r;
1858
- }(), Zl = /* @__PURE__ */ function() {
1860
+ }(), $l = /* @__PURE__ */ function() {
1859
1861
  Ee(r, null, [{
1860
1862
  key: "factory",
1861
1863
  value: function(e) {
@@ -1908,12 +1910,12 @@ var Yl = mr * mr, xs = function(t, e) {
1908
1910
  value: function() {
1909
1911
  for (var e = this.events[0].point, n = [e], i = 1, o = this.events.length - 1; i < o; i++) {
1910
1912
  var s = this.events[i].point, a = this.events[i + 1].point;
1911
- ha(s, e, a) !== 0 && (n.push(s), e = s);
1913
+ ga(s, e, a) !== 0 && (n.push(s), e = s);
1912
1914
  }
1913
1915
  if (n.length === 1)
1914
1916
  return null;
1915
1917
  var u = n[0], l = n[1];
1916
- ha(u, e, l) === 0 && n.shift(), n.push(n[0]);
1918
+ ga(u, e, l) === 0 && n.shift(), n.push(n[0]);
1917
1919
  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)
1918
1920
  g.push([n[p].x, n[p].y]);
1919
1921
  return g;
@@ -1950,7 +1952,7 @@ var Yl = mr * mr, xs = function(t, e) {
1950
1952
  }
1951
1953
  }
1952
1954
  }]), r;
1953
- }(), ya = /* @__PURE__ */ function() {
1955
+ }(), ma = /* @__PURE__ */ function() {
1954
1956
  function r(t) {
1955
1957
  yn(this, r), this.exteriorRing = t, t.poly = this, this.interiorRings = [];
1956
1958
  }
@@ -1972,7 +1974,7 @@ var Yl = mr * mr, xs = function(t, e) {
1972
1974
  return e;
1973
1975
  }
1974
1976
  }]), r;
1975
- }(), $l = /* @__PURE__ */ function() {
1977
+ }(), tc = /* @__PURE__ */ function() {
1976
1978
  function r(t) {
1977
1979
  yn(this, r), this.rings = t, this.polys = this._composePolys(t);
1978
1980
  }
@@ -1992,19 +1994,19 @@ var Yl = mr * mr, xs = function(t, e) {
1992
1994
  var s = e[i];
1993
1995
  if (!s.poly)
1994
1996
  if (s.isExteriorRing())
1995
- n.push(new ya(s));
1997
+ n.push(new ma(s));
1996
1998
  else {
1997
1999
  var a = s.enclosingRing();
1998
- a.poly || n.push(new ya(a)), a.poly.addInterior(s);
2000
+ a.poly || n.push(new ma(a)), a.poly.addInterior(s);
1999
2001
  }
2000
2002
  }
2001
2003
  return n;
2002
2004
  }
2003
2005
  }]), r;
2004
- }(), tc = /* @__PURE__ */ function() {
2006
+ }(), ec = /* @__PURE__ */ function() {
2005
2007
  function r(t) {
2006
2008
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ao.compare;
2007
- yn(this, r), this.queue = t, this.tree = new Ts(e), this.segments = [];
2009
+ yn(this, r), this.queue = t, this.tree = new Ms(e), this.segments = [];
2008
2010
  }
2009
2011
  return Ee(r, [{
2010
2012
  key: "process",
@@ -2075,7 +2077,7 @@ var Yl = mr * mr, xs = function(t, e) {
2075
2077
  return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
2076
2078
  }
2077
2079
  }]), r;
2078
- }(), ma = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, ec = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, nc = /* @__PURE__ */ function() {
2080
+ }(), _a = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, rc = /* @__PURE__ */ function() {
2079
2081
  function r() {
2080
2082
  yn(this, r);
2081
2083
  }
@@ -2083,30 +2085,30 @@ var Yl = mr * mr, xs = function(t, e) {
2083
2085
  key: "run",
2084
2086
  value: function(e, n, i) {
2085
2087
  Cn.type = e, Ji.reset();
2086
- for (var o = [new va(n, !0)], s = 0, a = i.length; s < a; s++)
2087
- o.push(new va(i[s], !1));
2088
+ for (var o = [new ya(n, !0)], s = 0, a = i.length; s < a; s++)
2089
+ o.push(new ya(i[s], !1));
2088
2090
  if (Cn.numMultiPolys = o.length, Cn.type === "difference")
2089
2091
  for (var u = o[0], l = 1; l < o.length; )
2090
- Ns(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
2092
+ xs(o[l].bbox, u.bbox) !== null ? l++ : o.splice(l, 1);
2091
2093
  if (Cn.type === "intersection") {
2092
2094
  for (var c = 0, f = o.length; c < f; c++)
2093
2095
  for (var h = o[c], g = c + 1, p = o.length; g < p; g++)
2094
- if (Ns(h.bbox, o[g].bbox) === null)
2096
+ if (xs(h.bbox, o[g].bbox) === null)
2095
2097
  return [];
2096
2098
  }
2097
- for (var m = new Ts(Vn.compare), d = 0, y = o.length; d < y; d++)
2099
+ for (var m = new Ms(Vn.compare), d = 0, y = o.length; d < y; d++)
2098
2100
  for (var I = o[d].getSweepEvents(), C = 0, x = I.length; C < x; C++)
2099
- if (m.insert(I[C]), m.size > ma)
2101
+ if (m.insert(I[C]), m.size > _a)
2100
2102
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
2101
- for (var b = new tc(m), w = m.size, D = m.pop(); D; ) {
2103
+ for (var b = new ec(m), w = m.size, D = m.pop(); D; ) {
2102
2104
  var T = D.key;
2103
2105
  if (m.size === w) {
2104
2106
  var F = T.segment;
2105
2107
  throw new Error("Unable to pop() ".concat(T.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(T.point.x, ", ").concat(T.point.y, "] from segment #").concat(F.id, " ") + "[".concat(F.leftSE.point.x, ", ").concat(F.leftSE.point.y, "] -> ") + "[".concat(F.rightSE.point.x, ", ").concat(F.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
2106
2108
  }
2107
- if (m.size > ma)
2109
+ if (m.size > _a)
2108
2110
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
2109
- if (b.segments.length > ec)
2111
+ if (b.segments.length > nc)
2110
2112
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
2111
2113
  for (var j = b.process(T), k = 0, O = j.length; k < O; k++) {
2112
2114
  var Y = j[k];
@@ -2115,32 +2117,32 @@ var Yl = mr * mr, xs = function(t, e) {
2115
2117
  w = m.size, D = m.pop();
2116
2118
  }
2117
2119
  Ji.reset();
2118
- var P = Zl.factory(b.segments), X = new $l(P);
2120
+ var P = $l.factory(b.segments), X = new tc(P);
2119
2121
  return X.getGeom();
2120
2122
  }
2121
2123
  }]), r;
2122
- }(), Cn = new nc(), rc = function(t) {
2124
+ }(), Cn = new rc(), ic = function(t) {
2123
2125
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2124
2126
  n[i - 1] = arguments[i];
2125
2127
  return Cn.run("union", t, n);
2126
- }, ic = function(t) {
2128
+ }, oc = function(t) {
2127
2129
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2128
2130
  n[i - 1] = arguments[i];
2129
2131
  return Cn.run("intersection", t, n);
2130
- }, oc = function(t) {
2132
+ }, sc = function(t) {
2131
2133
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2132
2134
  n[i - 1] = arguments[i];
2133
2135
  return Cn.run("xor", t, n);
2134
- }, sc = function(t) {
2136
+ }, ac = function(t) {
2135
2137
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2136
2138
  n[i - 1] = arguments[i];
2137
2139
  return Cn.run("difference", t, n);
2138
- }, Qa = {
2139
- union: rc,
2140
- intersection: ic,
2141
- xor: oc,
2142
- difference: sc
2143
- }, ye = 63710088e-1, Ja = {
2140
+ }, Ja = {
2141
+ union: ic,
2142
+ intersection: oc,
2143
+ xor: sc,
2144
+ difference: ac
2145
+ }, ye = 63710088e-1, Za = {
2144
2146
  centimeters: ye * 100,
2145
2147
  centimetres: ye * 100,
2146
2148
  degrees: ye / 111325,
@@ -2162,14 +2164,14 @@ function Wo(r, t, e) {
2162
2164
  var n = { type: "Feature" };
2163
2165
  return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
2164
2166
  }
2165
- function ac(r, t, e) {
2167
+ function uc(r, t, e) {
2166
2168
  if (e === void 0 && (e = {}), !r)
2167
2169
  throw new Error("coordinates is required");
2168
2170
  if (!Array.isArray(r))
2169
2171
  throw new Error("coordinates must be an Array");
2170
2172
  if (r.length < 2)
2171
2173
  throw new Error("coordinates must be at least 2 numbers long");
2172
- if (!_a(r[0]) || !_a(r[1]))
2174
+ if (!Ea(r[0]) || !Ea(r[1]))
2173
2175
  throw new Error("coordinates must contain numbers");
2174
2176
  var n = {
2175
2177
  type: "Point",
@@ -2177,7 +2179,7 @@ function ac(r, t, e) {
2177
2179
  };
2178
2180
  return Wo(n, t, e);
2179
2181
  }
2180
- function Za(r, t, e) {
2182
+ function $a(r, t, e) {
2181
2183
  e === void 0 && (e = {});
2182
2184
  for (var n = 0, i = r; n < i.length; n++) {
2183
2185
  var o = i[n];
@@ -2193,12 +2195,12 @@ function Za(r, t, e) {
2193
2195
  };
2194
2196
  return Wo(a, t, e);
2195
2197
  }
2196
- function Ss(r, t) {
2198
+ function ws(r, t) {
2197
2199
  t === void 0 && (t = {});
2198
2200
  var e = { type: "FeatureCollection" };
2199
2201
  return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = r, e;
2200
2202
  }
2201
- function $a(r, t, e) {
2203
+ function tu(r, t, e) {
2202
2204
  e === void 0 && (e = {});
2203
2205
  var n = {
2204
2206
  type: "MultiPolygon",
@@ -2206,39 +2208,39 @@ function $a(r, t, e) {
2206
2208
  };
2207
2209
  return Wo(n, t, e);
2208
2210
  }
2209
- function uc(r, t) {
2211
+ function lc(r, t) {
2210
2212
  t === void 0 && (t = "kilometers");
2211
- var e = Ja[t];
2213
+ var e = Za[t];
2212
2214
  if (!e)
2213
2215
  throw new Error(t + " units is invalid");
2214
2216
  return r * e;
2215
2217
  }
2216
- function lc(r, t) {
2218
+ function cc(r, t) {
2217
2219
  t === void 0 && (t = "kilometers");
2218
- var e = Ja[t];
2220
+ var e = Za[t];
2219
2221
  if (!e)
2220
2222
  throw new Error(t + " units is invalid");
2221
2223
  return r / e;
2222
2224
  }
2223
- function _a(r) {
2225
+ function Ea(r) {
2224
2226
  return !isNaN(r) && r !== null && !Array.isArray(r);
2225
2227
  }
2226
2228
  function Fo(r) {
2227
2229
  return r.type === "Feature" ? r.geometry : r;
2228
2230
  }
2229
- function cc(r, t, e) {
2231
+ function fc(r, t, e) {
2230
2232
  e === void 0 && (e = {});
2231
- var n = Fo(r), i = Fo(t), o = Qa.union(n.coordinates, i.coordinates);
2232
- return o.length === 0 ? null : o.length === 1 ? Za(o[0], e.properties) : $a(o, e.properties);
2233
+ var n = Fo(r), i = Fo(t), o = Ja.union(n.coordinates, i.coordinates);
2234
+ return o.length === 0 ? null : o.length === 1 ? $a(o[0], e.properties) : tu(o, e.properties);
2233
2235
  }
2234
- function fc(r, t) {
2235
- var e = Fo(r), n = Fo(t), i = r.properties || {}, o = Qa.difference(
2236
+ function hc(r, t) {
2237
+ var e = Fo(r), n = Fo(t), i = r.properties || {}, o = Ja.difference(
2236
2238
  e.coordinates,
2237
2239
  n.coordinates
2238
2240
  );
2239
- return o.length === 0 ? null : o.length === 1 ? Za(o[0], i) : $a(o, i);
2241
+ return o.length === 0 ? null : o.length === 1 ? $a(o[0], i) : tu(o, i);
2240
2242
  }
2241
- function tu(r, t, e) {
2243
+ function eu(r, t, e) {
2242
2244
  if (r !== null)
2243
2245
  for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", m = g === "Feature", d = p ? r.features.length : 1, y = 0; y < d; y++) {
2244
2246
  l = p ? r.features[y].geometry : m ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
@@ -2315,7 +2317,7 @@ function tu(r, t, e) {
2315
2317
  break;
2316
2318
  case "GeometryCollection":
2317
2319
  for (n = 0; n < s.geometries.length; n++)
2318
- if (tu(s.geometries[n], t, e) === !1)
2320
+ if (eu(s.geometries[n], t, e) === !1)
2319
2321
  return !1;
2320
2322
  break;
2321
2323
  default:
@@ -2325,14 +2327,14 @@ function tu(r, t, e) {
2325
2327
  }
2326
2328
  }
2327
2329
  }
2328
- function Ea(r, t) {
2330
+ function Ia(r, t) {
2329
2331
  if (r.type === "Feature")
2330
2332
  t(r, 0);
2331
2333
  else if (r.type === "FeatureCollection")
2332
2334
  for (var e = 0; e < r.features.length && t(r.features[e], e) !== !1; e++)
2333
2335
  ;
2334
2336
  }
2335
- function eu(r, t) {
2337
+ function nu(r, t) {
2336
2338
  var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", m = g ? r.features.length : 1;
2337
2339
  for (e = 0; e < m; e++) {
2338
2340
  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++) {
@@ -2383,17 +2385,17 @@ function eu(r, t) {
2383
2385
  h++;
2384
2386
  }
2385
2387
  }
2386
- function ws(r) {
2388
+ function Ls(r) {
2387
2389
  var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2388
- return tu(r, function(e) {
2390
+ return eu(r, function(e) {
2389
2391
  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]);
2390
2392
  }), t;
2391
2393
  }
2392
- ws.default = ws;
2393
- function hc(r, t) {
2394
+ Ls.default = Ls;
2395
+ function gc(r, t) {
2394
2396
  t === void 0 && (t = {});
2395
- var e = ws(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
2396
- return ac([n, i], t.properties, t);
2397
+ var e = Ls(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
2398
+ return uc([n, i], t.properties, t);
2397
2399
  }
2398
2400
  "fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
2399
2401
  configurable: !0,
@@ -2439,7 +2441,7 @@ var ft = function(r) {
2439
2441
  }
2440
2442
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
2441
2443
  }(Error), V = function() {
2442
- }, nu = { MAX_VALUE: { configurable: !0 } };
2444
+ }, ru = { MAX_VALUE: { configurable: !0 } };
2443
2445
  V.isNaN = function(t) {
2444
2446
  return Number.isNaN(t);
2445
2447
  };
@@ -2452,10 +2454,10 @@ V.longBitsToDouble = function(t) {
2452
2454
  V.isInfinite = function(t) {
2453
2455
  return !Number.isFinite(t);
2454
2456
  };
2455
- nu.MAX_VALUE.get = function() {
2457
+ ru.MAX_VALUE.get = function() {
2456
2458
  return Number.MAX_VALUE;
2457
2459
  };
2458
- Object.defineProperties(V, nu);
2460
+ Object.defineProperties(V, ru);
2459
2461
  var Fe = function() {
2460
2462
  }, jo = function() {
2461
2463
  }, hi = function() {
@@ -2651,7 +2653,7 @@ Object.defineProperties(_, ho);
2651
2653
  var z = function(r, t) {
2652
2654
  return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
2653
2655
  }, Ie = function() {
2654
- }, ru = { LOG_10: { configurable: !0 } };
2656
+ }, iu = { LOG_10: { configurable: !0 } };
2655
2657
  Ie.prototype.interfaces_ = function() {
2656
2658
  return [];
2657
2659
  };
@@ -2690,10 +2692,10 @@ Ie.max = function() {
2690
2692
  Ie.average = function(t, e) {
2691
2693
  return (t + e) / 2;
2692
2694
  };
2693
- ru.LOG_10.get = function() {
2695
+ iu.LOG_10.get = function() {
2694
2696
  return Math.log(10);
2695
2697
  };
2696
- Object.defineProperties(Ie, ru);
2698
+ Object.defineProperties(Ie, iu);
2697
2699
  var mn = function(t) {
2698
2700
  this.str = t;
2699
2701
  };
@@ -3144,7 +3146,7 @@ Qe.SCI_NOT_ZERO.get = function() {
3144
3146
  };
3145
3147
  Object.defineProperties(E, Qe);
3146
3148
  var ae = function() {
3147
- }, iu = { DP_SAFE_EPSILON: { configurable: !0 } };
3149
+ }, ou = { DP_SAFE_EPSILON: { configurable: !0 } };
3148
3150
  ae.prototype.interfaces_ = function() {
3149
3151
  return [];
3150
3152
  };
@@ -3184,10 +3186,10 @@ ae.orientationIndexFilter = function(t, e, n) {
3184
3186
  ae.signum = function(t) {
3185
3187
  return t > 0 ? 1 : t < 0 ? -1 : 0;
3186
3188
  };
3187
- iu.DP_SAFE_EPSILON.get = function() {
3189
+ ou.DP_SAFE_EPSILON.get = function() {
3188
3190
  return 1e-15;
3189
3191
  };
3190
- Object.defineProperties(ae, iu);
3192
+ Object.defineProperties(ae, ou);
3191
3193
  var Q = function() {
3192
3194
  }, go = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
3193
3195
  go.X.get = function() {
@@ -3233,7 +3235,7 @@ Q.prototype.getClass = function() {
3233
3235
  return Q;
3234
3236
  };
3235
3237
  Object.defineProperties(Q, go);
3236
- var ou = function() {
3238
+ var su = function() {
3237
3239
  }, Fi = function(r) {
3238
3240
  function t() {
3239
3241
  r.call(this, "Projective point not representable on the Cartesian plane.");
@@ -3243,7 +3245,7 @@ var ou = function() {
3243
3245
  }, t.prototype.getClass = function() {
3244
3246
  return t;
3245
3247
  }, t;
3246
- }(ou), zt = function() {
3248
+ }(su), zt = function() {
3247
3249
  };
3248
3250
  zt.arraycopy = function(t, e, n, i, o) {
3249
3251
  for (var s = 0, a = e; a < e + o; a++)
@@ -3326,7 +3328,7 @@ var M = function r() {
3326
3328
  var o = arguments[0], s = arguments[1], a = arguments[2], u = arguments[3];
3327
3329
  this.init(o, s, a, u);
3328
3330
  }
3329
- }, su = { serialVersionUID: { configurable: !0 } };
3331
+ }, au = { serialVersionUID: { configurable: !0 } };
3330
3332
  M.prototype.getArea = function() {
3331
3333
  return this.getWidth() * this.getHeight();
3332
3334
  };
@@ -3508,10 +3510,10 @@ M.intersects = function() {
3508
3510
  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);
3509
3511
  }
3510
3512
  };
3511
- su.serialVersionUID.get = function() {
3513
+ au.serialVersionUID.get = function() {
3512
3514
  return 5873921885273102e3;
3513
3515
  };
3514
- Object.defineProperties(M, su);
3516
+ Object.defineProperties(M, au);
3515
3517
  var $e = {
3516
3518
  typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,
3517
3519
  emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/,
@@ -4321,15 +4323,15 @@ Mn.SORTINDEX_GEOMETRYCOLLECTION.get = function() {
4321
4323
  return 7;
4322
4324
  };
4323
4325
  Mn.geometryChangedFilter.get = function() {
4324
- return Ms;
4326
+ return As;
4325
4327
  };
4326
4328
  Object.defineProperties(G, Mn);
4327
- var Ms = function() {
4329
+ var As = function() {
4328
4330
  };
4329
- Ms.interfaces_ = function() {
4331
+ As.interfaces_ = function() {
4330
4332
  return [Wn];
4331
4333
  };
4332
- Ms.filter = function(t) {
4334
+ As.filter = function(t) {
4333
4335
  t.geometryChangedAction();
4334
4336
  };
4335
4337
  var Sn = function() {
@@ -4440,11 +4442,11 @@ wt.prototype.toArray = function() {
4440
4442
  };
4441
4443
  wt.prototype.remove = function() {
4442
4444
  };
4443
- function As(r) {
4445
+ function Fs(r) {
4444
4446
  this.message = r || "";
4445
4447
  }
4446
- As.prototype = new Error();
4447
- As.prototype.name = "IndexOutOfBoundsException";
4448
+ Fs.prototype = new Error();
4449
+ Fs.prototype.name = "IndexOutOfBoundsException";
4448
4450
  var Bi = function() {
4449
4451
  };
4450
4452
  Bi.prototype.hasNext = function() {
@@ -4486,10 +4488,10 @@ var L = function(r) {
4486
4488
  var o = this.array_[n];
4487
4489
  return this.array_[n] = i, o;
4488
4490
  }, t.prototype.iterator = function() {
4489
- return new gc(this);
4491
+ return new pc(this);
4490
4492
  }, t.prototype.get = function(n) {
4491
4493
  if (n < 0 || n >= this.size())
4492
- throw new As();
4494
+ throw new Fs();
4493
4495
  return this.array_[n];
4494
4496
  }, t.prototype.isEmpty = function() {
4495
4497
  return this.array_.length === 0;
@@ -4507,7 +4509,7 @@ var L = function(r) {
4507
4509
  }
4508
4510
  return o;
4509
4511
  }, t;
4510
- }(Ve), gc = function(r) {
4512
+ }(Ve), pc = function(r) {
4511
4513
  function t(e) {
4512
4514
  r.call(this), this.arrayList_ = e, this.position_ = 0;
4513
4515
  }
@@ -4836,7 +4838,7 @@ ii.prototype.values = function() {
4836
4838
  };
4837
4839
  ii.prototype.entrySet = function() {
4838
4840
  };
4839
- var pc = function(r) {
4841
+ var dc = function(r) {
4840
4842
  function t() {
4841
4843
  r.apply(this, arguments);
4842
4844
  }
@@ -4852,7 +4854,7 @@ function Jo() {
4852
4854
  Jo.prototype = new wt();
4853
4855
  Jo.prototype.contains = function() {
4854
4856
  };
4855
- var Fs = function(r) {
4857
+ var Bs = function(r) {
4856
4858
  function t() {
4857
4859
  r.call(this), this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
4858
4860
  }
@@ -4880,9 +4882,9 @@ var Fs = function(r) {
4880
4882
  i.push(n.array_[o]);
4881
4883
  return i;
4882
4884
  }, t.prototype.iterator = function() {
4883
- return new dc(this);
4885
+ return new vc(this);
4884
4886
  }, t;
4885
- }(Jo), dc = function(r) {
4887
+ }(Jo), vc = function(r) {
4886
4888
  function t(e) {
4887
4889
  r.call(this), this.hashSet_ = e, this.position_ = 0;
4888
4890
  }
@@ -4896,7 +4898,7 @@ var Fs = function(r) {
4896
4898
  throw new vo();
4897
4899
  }, t;
4898
4900
  }(Bi), Un = 0, dr = 1;
4899
- function Ia(r) {
4901
+ function Ca(r) {
4900
4902
  return r === null ? Un : r.color;
4901
4903
  }
4902
4904
  function st(r) {
@@ -4905,16 +4907,16 @@ function st(r) {
4905
4907
  function Gn(r, t) {
4906
4908
  r !== null && (r.color = t);
4907
4909
  }
4908
- function gs(r) {
4910
+ function ps(r) {
4909
4911
  return r === null ? null : r.left;
4910
4912
  }
4911
- function Ca(r) {
4913
+ function Na(r) {
4912
4914
  return r === null ? null : r.right;
4913
4915
  }
4914
4916
  function Ht() {
4915
4917
  this.root_ = null, this.size_ = 0;
4916
4918
  }
4917
- Ht.prototype = new pc();
4919
+ Ht.prototype = new dc();
4918
4920
  Ht.prototype.get = function(r) {
4919
4921
  for (var t = this.root_; t !== null; ) {
4920
4922
  var e = r.compareTo(t.key);
@@ -4973,12 +4975,12 @@ Ht.prototype.put = function(r, t) {
4973
4975
  Ht.prototype.fixAfterInsertion = function(r) {
4974
4976
  var t = this;
4975
4977
  for (r.color = dr; r != null && r !== this.root_ && r.parent.color === dr; )
4976
- if (st(r) === gs(st(st(r)))) {
4977
- var e = Ca(st(st(r)));
4978
- Ia(e) === dr ? (Gn(st(r), Un), Gn(e, Un), Gn(st(st(r)), dr), r = st(st(r))) : (r === Ca(st(r)) && (r = st(r), t.rotateLeft(r)), Gn(st(r), Un), Gn(st(st(r)), dr), t.rotateRight(st(st(r))));
4978
+ if (st(r) === ps(st(st(r)))) {
4979
+ var e = Na(st(st(r)));
4980
+ Ca(e) === dr ? (Gn(st(r), Un), Gn(e, Un), Gn(st(st(r)), dr), r = st(st(r))) : (r === Na(st(r)) && (r = st(r), t.rotateLeft(r)), Gn(st(r), Un), Gn(st(st(r)), dr), t.rotateRight(st(st(r))));
4979
4981
  } else {
4980
- var n = gs(st(st(r)));
4981
- Ia(n) === dr ? (Gn(st(r), Un), Gn(n, Un), Gn(st(st(r)), dr), r = st(st(r))) : (r === gs(st(r)) && (r = st(r), t.rotateRight(r)), Gn(st(r), Un), Gn(st(st(r)), dr), t.rotateLeft(st(st(r))));
4982
+ var n = ps(st(st(r)));
4983
+ Ca(n) === dr ? (Gn(st(r), Un), Gn(n, Un), Gn(st(st(r)), dr), r = st(st(r))) : (r === ps(st(r)) && (r = st(r), t.rotateRight(r)), Gn(st(r), Un), Gn(st(st(r)), dr), t.rotateLeft(st(st(r))));
4982
4984
  }
4983
4985
  this.root_.color = Un;
4984
4986
  };
@@ -4990,7 +4992,7 @@ Ht.prototype.values = function() {
4990
4992
  return r;
4991
4993
  };
4992
4994
  Ht.prototype.entrySet = function() {
4993
- var r = new Fs(), t = this.getFirstEntry();
4995
+ var r = new Bs(), t = this.getFirstEntry();
4994
4996
  if (t !== null)
4995
4997
  for (r.add(t); (t = Ht.successor(t)) !== null; )
4996
4998
  r.add(t);
@@ -5039,13 +5041,13 @@ to.prototype.interfaces_ = function() {
5039
5041
  to.prototype.getClass = function() {
5040
5042
  return to;
5041
5043
  };
5042
- function au() {
5044
+ function uu() {
5043
5045
  }
5044
- au.prototype = new Jo();
5046
+ uu.prototype = new Jo();
5045
5047
  function un() {
5046
5048
  this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
5047
5049
  }
5048
- un.prototype = new au();
5050
+ un.prototype = new uu();
5049
5051
  un.prototype.contains = function(r) {
5050
5052
  for (var t = this, e = 0, n = this.array_.length; e < n; e++) {
5051
5053
  var i = t.array_[e];
@@ -5478,20 +5480,20 @@ Go.prototype.interfaces_ = function() {
5478
5480
  Go.prototype.getClass = function() {
5479
5481
  return Go;
5480
5482
  };
5481
- function vc() {
5482
- }
5483
5483
  function yc() {
5484
5484
  }
5485
- var mc = function() {
5486
- };
5487
- function _c() {
5485
+ function mc() {
5488
5486
  }
5487
+ var _c = function() {
5488
+ };
5489
5489
  function Ec() {
5490
5490
  }
5491
5491
  function Ic() {
5492
5492
  }
5493
+ function Cc() {
5494
+ }
5493
5495
  var Re = function() {
5494
- }, Bs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
5496
+ }, Gs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
5495
5497
  Re.prototype.interfaces_ = function() {
5496
5498
  return [];
5497
5499
  };
@@ -5505,16 +5507,16 @@ Re.chars = function(t, e) {
5505
5507
  };
5506
5508
  Re.getStackTrace = function() {
5507
5509
  if (arguments.length === 1) {
5508
- var t = arguments[0], e = new _c(), n = new vc();
5510
+ var t = arguments[0], e = new Ec(), n = new yc();
5509
5511
  return t.printStackTrace(n), e.toString();
5510
5512
  } else if (arguments.length === 2) {
5511
5513
  var i = arguments[0], o = arguments[1], s = "";
5512
- new yc(Re.getStackTrace(i));
5513
- for (var a = new Ic(), u = 0; u < o; u++)
5514
+ new mc(Re.getStackTrace(i));
5515
+ for (var a = new Cc(), u = 0; u < o; u++)
5514
5516
  try {
5515
5517
  s += a.readLine() + Re.NEWLINE;
5516
5518
  } catch (l) {
5517
- if (l instanceof Ec)
5519
+ if (l instanceof Ic)
5518
5520
  q.shouldNeverReachHere();
5519
5521
  else
5520
5522
  throw l;
@@ -5542,13 +5544,13 @@ Re.toString = function() {
5542
5544
  Re.spaces = function(t) {
5543
5545
  return Re.chars(" ", t);
5544
5546
  };
5545
- Bs.NEWLINE.get = function() {
5547
+ Gs.NEWLINE.get = function() {
5546
5548
  return zt.getProperty("line.separator");
5547
5549
  };
5548
- Bs.SIMPLE_ORDINATE_FORMAT.get = function() {
5549
- return new mc();
5550
+ Gs.SIMPLE_ORDINATE_FORMAT.get = function() {
5551
+ return new _c();
5550
5552
  };
5551
- Object.defineProperties(Re, Bs);
5553
+ Object.defineProperties(Re, Gs);
5552
5554
  var Et = function() {
5553
5555
  };
5554
5556
  Et.prototype.interfaces_ = function() {
@@ -6271,7 +6273,7 @@ var mt = function() {
6271
6273
  t._coordinates[c] = new v();
6272
6274
  }
6273
6275
  }
6274
- }, uu = { serialVersionUID: { configurable: !0 } };
6276
+ }, lu = { serialVersionUID: { configurable: !0 } };
6275
6277
  mt.prototype.setOrdinate = function(t, e, n) {
6276
6278
  switch (e) {
6277
6279
  case Q.X:
@@ -6357,12 +6359,12 @@ mt.prototype.interfaces_ = function() {
6357
6359
  mt.prototype.getClass = function() {
6358
6360
  return mt;
6359
6361
  };
6360
- uu.serialVersionUID.get = function() {
6362
+ lu.serialVersionUID.get = function() {
6361
6363
  return -915438501601840600;
6362
6364
  };
6363
- Object.defineProperties(mt, uu);
6365
+ Object.defineProperties(mt, lu);
6364
6366
  var Ln = function() {
6365
- }, Gs = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
6367
+ }, ks = { serialVersionUID: { configurable: !0 }, instanceObject: { configurable: !0 } };
6366
6368
  Ln.prototype.readResolve = function() {
6367
6369
  return Ln.instance();
6368
6370
  };
@@ -6389,14 +6391,14 @@ Ln.prototype.getClass = function() {
6389
6391
  Ln.instance = function() {
6390
6392
  return Ln.instanceObject;
6391
6393
  };
6392
- Gs.serialVersionUID.get = function() {
6394
+ ks.serialVersionUID.get = function() {
6393
6395
  return -4099577099607551500;
6394
6396
  };
6395
- Gs.instanceObject.get = function() {
6397
+ ks.instanceObject.get = function() {
6396
6398
  return new Ln();
6397
6399
  };
6398
- Object.defineProperties(Ln, Gs);
6399
- var lu = function(r) {
6400
+ Object.defineProperties(Ln, ks);
6401
+ var cu = function(r) {
6400
6402
  function t() {
6401
6403
  r.call(this), this.map_ = /* @__PURE__ */ new Map();
6402
6404
  }
@@ -6409,7 +6411,7 @@ var lu = function(r) {
6409
6411
  n.add(o.value), o = i.next();
6410
6412
  return n;
6411
6413
  }, t.prototype.entrySet = function() {
6412
- var n = new Fs();
6414
+ var n = new Bs();
6413
6415
  return this.map_.entries().forEach(function(i) {
6414
6416
  return n.add(i);
6415
6417
  }), n;
@@ -6431,7 +6433,7 @@ var lu = function(r) {
6431
6433
  this._modelType = n._modelType, this._scale = n._scale;
6432
6434
  }
6433
6435
  }
6434
- }, ks = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
6436
+ }, zs = { serialVersionUID: { configurable: !0 }, maximumPreciseValue: { configurable: !0 } };
6435
6437
  tt.prototype.equals = function(t) {
6436
6438
  if (!(t instanceof tt))
6437
6439
  return !1;
@@ -6488,16 +6490,16 @@ tt.prototype.getClass = function() {
6488
6490
  tt.mostPrecise = function(t, e) {
6489
6491
  return t.compareTo(e) >= 0 ? t : e;
6490
6492
  };
6491
- ks.serialVersionUID.get = function() {
6493
+ zs.serialVersionUID.get = function() {
6492
6494
  return 7777263578777804e3;
6493
6495
  };
6494
- ks.maximumPreciseValue.get = function() {
6496
+ zs.maximumPreciseValue.get = function() {
6495
6497
  return 9007199254740992;
6496
6498
  };
6497
- Object.defineProperties(tt, ks);
6499
+ Object.defineProperties(tt, zs);
6498
6500
  var cn = function r(t) {
6499
6501
  this._name = t || null, r.nameToTypeMap.put(t, this);
6500
- }, zs = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
6502
+ }, Vs = { serialVersionUID: { configurable: !0 }, nameToTypeMap: { configurable: !0 } };
6501
6503
  cn.prototype.readResolve = function() {
6502
6504
  return cn.nameToTypeMap.get(this._name);
6503
6505
  };
@@ -6510,20 +6512,20 @@ cn.prototype.interfaces_ = function() {
6510
6512
  cn.prototype.getClass = function() {
6511
6513
  return cn;
6512
6514
  };
6513
- zs.serialVersionUID.get = function() {
6515
+ Vs.serialVersionUID.get = function() {
6514
6516
  return -552860263173159e4;
6515
6517
  };
6516
- zs.nameToTypeMap.get = function() {
6517
- return new lu();
6518
+ Vs.nameToTypeMap.get = function() {
6519
+ return new cu();
6518
6520
  };
6519
- Object.defineProperties(cn, zs);
6521
+ Object.defineProperties(cn, Vs);
6520
6522
  tt.Type = cn;
6521
6523
  tt.FIXED = new cn("FIXED");
6522
6524
  tt.FLOATING = new cn("FLOATING");
6523
6525
  tt.FLOATING_SINGLE = new cn("FLOATING SINGLE");
6524
6526
  var H = function r() {
6525
6527
  this._precisionModel = new tt(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], gi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof tt && (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]));
6526
- }, cu = { serialVersionUID: { configurable: !0 } };
6528
+ }, fu = { serialVersionUID: { configurable: !0 } };
6527
6529
  H.prototype.toGeometry = function(t) {
6528
6530
  return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new v(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new v(t.getMinX(), t.getMinY()), new v(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new v(t.getMinX(), t.getMinY()), new v(t.getMinX(), t.getMaxY()), new v(t.getMaxX(), t.getMaxY()), new v(t.getMaxX(), t.getMinY()), new v(t.getMinX(), t.getMinY())]), null);
6529
6531
  };
@@ -6718,11 +6720,11 @@ H.toPolygonArray = function(t) {
6718
6720
  H.createPointFromInternalCoord = function(t, e) {
6719
6721
  return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
6720
6722
  };
6721
- cu.serialVersionUID.get = function() {
6723
+ fu.serialVersionUID.get = function() {
6722
6724
  return -6820524753094096e3;
6723
6725
  };
6724
- Object.defineProperties(H, cu);
6725
- var Cc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], ts = function(t) {
6726
+ Object.defineProperties(H, fu);
6727
+ var Nc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], ts = function(t) {
6726
6728
  this.geometryFactory = t || new H();
6727
6729
  };
6728
6730
  ts.prototype.read = function(t) {
@@ -6731,7 +6733,7 @@ ts.prototype.read = function(t) {
6731
6733
  var n = e.type;
6732
6734
  if (!en[n])
6733
6735
  throw new Error("Unknown GeoJSON type: " + e.type);
6734
- return Cc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
6736
+ return Nc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
6735
6737
  };
6736
6738
  ts.prototype.write = function(t) {
6737
6739
  var e = t.getGeometryType();
@@ -6889,14 +6891,14 @@ var en = {
6889
6891
  geometries: e
6890
6892
  };
6891
6893
  }
6892
- }, Vs = function(t) {
6894
+ }, Us = function(t) {
6893
6895
  this.geometryFactory = t || new H(), this.precisionModel = this.geometryFactory.getPrecisionModel(), this.parser = new ts(this.geometryFactory);
6894
6896
  };
6895
- Vs.prototype.read = function(t) {
6897
+ Us.prototype.read = function(t) {
6896
6898
  var e = this.parser.read(t);
6897
6899
  return this.precisionModel.getType() === tt.FIXED && this.reducePrecision(e), e;
6898
6900
  };
6899
- Vs.prototype.reducePrecision = function(t) {
6901
+ Us.prototype.reducePrecision = function(t) {
6900
6902
  var e = this, n, i;
6901
6903
  if (t.coordinate)
6902
6904
  this.precisionModel.makePrecise(t.coordinate);
@@ -6907,10 +6909,10 @@ Vs.prototype.reducePrecision = function(t) {
6907
6909
  for (n = 0, i = t.geometries.length; n < i; n++)
6908
6910
  e.reducePrecision(t.geometries[n]);
6909
6911
  };
6910
- var fu = function() {
6912
+ var hu = function() {
6911
6913
  this.parser = new ts(this.geometryFactory);
6912
6914
  };
6913
- fu.prototype.write = function(t) {
6915
+ hu.prototype.write = function(t) {
6914
6916
  return this.parser.write(t);
6915
6917
  };
6916
6918
  var S = function() {
@@ -7098,7 +7100,7 @@ re.prototype.findResultEdges = function() {
7098
7100
  }
7099
7101
  };
7100
7102
  re.prototype.computeDepths = function(t) {
7101
- var e = this, n = new Fs(), i = new rs(), o = t.getNode();
7103
+ var e = this, n = new Bs(), i = new rs(), o = t.getNode();
7102
7104
  for (i.addLast(o), n.add(o), t.setVisited(!0); !i.isEmpty(); ) {
7103
7105
  var s = i.removeFirst();
7104
7106
  n.add(s), e.computeNodeDepth(s);
@@ -7485,7 +7487,7 @@ St.prototype.interfaces_ = function() {
7485
7487
  St.prototype.getClass = function() {
7486
7488
  return St;
7487
7489
  };
7488
- var Nc = function(r) {
7490
+ var xc = function(r) {
7489
7491
  function t() {
7490
7492
  var e = arguments[0], n = arguments[1];
7491
7493
  r.call(this, e, n);
@@ -7499,7 +7501,7 @@ var Nc = function(r) {
7499
7501
  }, t.prototype.getClass = function() {
7500
7502
  return t;
7501
7503
  }, t;
7502
- }(St), xc = function(r) {
7504
+ }(St), Sc = function(r) {
7503
7505
  function t() {
7504
7506
  var e = arguments[0], n = arguments[1];
7505
7507
  r.call(this, e, n);
@@ -7508,7 +7510,7 @@ var Nc = function(r) {
7508
7510
  var n = this, i = new L(), o = this._startDe;
7509
7511
  do {
7510
7512
  if (o.getMinEdgeRing() === null) {
7511
- var s = new Nc(o, n._geometryFactory);
7513
+ var s = new xc(o, n._geometryFactory);
7512
7514
  i.add(s);
7513
7515
  }
7514
7516
  o = o.getNext();
@@ -7809,7 +7811,7 @@ Wt.prototype.interfaces_ = function() {
7809
7811
  Wt.prototype.getClass = function() {
7810
7812
  return Wt;
7811
7813
  };
7812
- var Ls = function(r) {
7814
+ var bs = function(r) {
7813
7815
  function t() {
7814
7816
  var e = arguments[0], n = arguments[1];
7815
7817
  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)
@@ -7990,7 +7992,7 @@ gt.prototype.addEdges = function(t) {
7990
7992
  for (var e = this, n = t.iterator(); n.hasNext(); ) {
7991
7993
  var i = n.next();
7992
7994
  e._edges.add(i);
7993
- var o = new Ls(i, !0), s = new Ls(i, !1);
7995
+ var o = new bs(i, !0), s = new bs(i, !1);
7994
7996
  o.setSym(s), s.setSym(o), e.add(o), e.add(s);
7995
7997
  }
7996
7998
  };
@@ -8073,7 +8075,7 @@ ge.prototype.buildMaximalEdgeRings = function(t) {
8073
8075
  for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
8074
8076
  var o = i.next();
8075
8077
  if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
8076
- var s = new xc(o, e._geometryFactory);
8078
+ var s = new Sc(o, e._geometryFactory);
8077
8079
  n.add(s), s.setInResult();
8078
8080
  }
8079
8081
  }
@@ -8217,7 +8219,7 @@ var Pt = function() {
8217
8219
  this._level = t;
8218
8220
  }
8219
8221
  }
8220
- }, hu = { serialVersionUID: { configurable: !0 } };
8222
+ }, gu = { serialVersionUID: { configurable: !0 } };
8221
8223
  Pt.prototype.getLevel = function() {
8222
8224
  return this._level;
8223
8225
  };
@@ -8242,10 +8244,10 @@ Pt.prototype.interfaces_ = function() {
8242
8244
  Pt.prototype.getClass = function() {
8243
8245
  return Pt;
8244
8246
  };
8245
- hu.serialVersionUID.get = function() {
8247
+ gu.serialVersionUID.get = function() {
8246
8248
  return 6493722185909574e3;
8247
8249
  };
8248
- Object.defineProperties(Pt, hu);
8250
+ Object.defineProperties(Pt, gu);
8249
8251
  var Ye = function() {
8250
8252
  };
8251
8253
  Ye.reverseOrder = function() {
@@ -8486,7 +8488,7 @@ Ot.compareDoubles = function(t, e) {
8486
8488
  return t > e ? 1 : t < e ? -1 : 0;
8487
8489
  };
8488
8490
  os.IntersectsOp.get = function() {
8489
- return Sc;
8491
+ return wc;
8490
8492
  };
8491
8493
  os.serialVersionUID.get = function() {
8492
8494
  return -3886435814360241e3;
@@ -8495,7 +8497,7 @@ os.DEFAULT_NODE_CAPACITY.get = function() {
8495
8497
  return 10;
8496
8498
  };
8497
8499
  Object.defineProperties(Ot, os);
8498
- var Sc = function() {
8500
+ var wc = function() {
8499
8501
  }, Ci = function() {
8500
8502
  };
8501
8503
  Ci.prototype.distance = function(t, e) {
@@ -8506,7 +8508,7 @@ Ci.prototype.interfaces_ = function() {
8506
8508
  Ci.prototype.getClass = function() {
8507
8509
  return Ci;
8508
8510
  };
8509
- var gu = function(r) {
8511
+ var pu = function(r) {
8510
8512
  function t(n) {
8511
8513
  n = n || t.DEFAULT_NODE_CAPACITY, r.call(this, n);
8512
8514
  }
@@ -8519,7 +8521,7 @@ var gu = function(r) {
8519
8521
  a.addAll(s.createParentBoundablesFromVerticalSlice(i[u], o));
8520
8522
  return a;
8521
8523
  }, t.prototype.createNode = function(i) {
8522
- return new Na(i);
8524
+ return new xa(i);
8523
8525
  }, t.prototype.size = function() {
8524
8526
  return arguments.length === 0 ? r.prototype.size.call(this) : r.prototype.size.apply(this, arguments);
8525
8527
  }, t.prototype.insert = function() {
@@ -8613,7 +8615,7 @@ var gu = function(r) {
8613
8615
  }, t.centreY = function(i) {
8614
8616
  return t.avg(i.getMinY(), i.getMaxY());
8615
8617
  }, e.STRtreeNode.get = function() {
8616
- return Na;
8618
+ return xa;
8617
8619
  }, e.serialVersionUID.get = function() {
8618
8620
  return 259274702368956900;
8619
8621
  }, e.xComparator.get = function() {
@@ -8646,7 +8648,7 @@ var gu = function(r) {
8646
8648
  }, e.DEFAULT_NODE_CAPACITY.get = function() {
8647
8649
  return 10;
8648
8650
  }, Object.defineProperties(t, e), t;
8649
- }(Ot), Na = function(r) {
8651
+ }(Ot), xa = function(r) {
8650
8652
  function t() {
8651
8653
  var e = arguments[0];
8652
8654
  r.call(this, e);
@@ -8963,7 +8965,7 @@ var A = function() {
8963
8965
  var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
8964
8966
  this.p0 = new v(e, n), this.p1 = new v(i, o);
8965
8967
  }
8966
- }, pu = { serialVersionUID: { configurable: !0 } };
8968
+ }, du = { serialVersionUID: { configurable: !0 } };
8967
8969
  A.prototype.minX = function() {
8968
8970
  return Math.min(this.p0.x, this.p1.x);
8969
8971
  };
@@ -9148,10 +9150,10 @@ A.prototype.getClass = function() {
9148
9150
  A.midPoint = function(t, e) {
9149
9151
  return new v((t.x + e.x) / 2, (t.y + e.y) / 2);
9150
9152
  };
9151
- pu.serialVersionUID.get = function() {
9153
+ du.serialVersionUID.get = function() {
9152
9154
  return 3252005833466256400;
9153
9155
  };
9154
- Object.defineProperties(A, pu);
9156
+ Object.defineProperties(A, du);
9155
9157
  var so = function() {
9156
9158
  this.tempEnv1 = new M(), this.tempEnv2 = new M(), this._overlapSeg1 = new A(), this._overlapSeg2 = new A();
9157
9159
  };
@@ -9313,9 +9315,9 @@ ao.prototype.interfaces_ = function() {
9313
9315
  ao.prototype.getClass = function() {
9314
9316
  return ao;
9315
9317
  };
9316
- var Us = function(r) {
9318
+ var qs = function(r) {
9317
9319
  function t(n) {
9318
- n ? r.call(this, n) : r.call(this), this._monoChains = new L(), this._index = new gu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
9320
+ n ? r.call(this, n) : r.call(this), this._monoChains = new L(), this._index = new pu(), this._idCounter = 0, this._nodedSegStrings = null, this._nOverlaps = 0;
9319
9321
  }
9320
9322
  r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
9321
9323
  var e = { SegmentOverlapAction: { configurable: !0 } };
@@ -9337,7 +9339,7 @@ var Us = function(r) {
9337
9339
  o.add(s.next());
9338
9340
  this.intersectChains();
9339
9341
  }, t.prototype.intersectChains = function() {
9340
- for (var i = this, o = new xa(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
9342
+ for (var i = this, o = new Sa(this._segInt), s = this._monoChains.iterator(); s.hasNext(); )
9341
9343
  for (var a = s.next(), u = i._index.query(a.getEnvelope()), l = u.iterator(); l.hasNext(); ) {
9342
9344
  var c = l.next();
9343
9345
  if (c.getId() > a.getId() && (a.computeOverlaps(c, o), i._nOverlaps++), i._segInt.isDone())
@@ -9348,9 +9350,9 @@ var Us = function(r) {
9348
9350
  }, t.prototype.getClass = function() {
9349
9351
  return t;
9350
9352
  }, e.SegmentOverlapAction.get = function() {
9351
- return xa;
9353
+ return Sa;
9352
9354
  }, Object.defineProperties(t, e), t;
9353
- }(ao), xa = function(r) {
9355
+ }(ao), Sa = function(r) {
9354
9356
  function t() {
9355
9357
  r.call(this), this._si = null;
9356
9358
  var e = arguments[0];
@@ -9536,7 +9538,7 @@ mo.NUM_PTS_TO_CHECK.get = function() {
9536
9538
  Object.defineProperties(vt, mo);
9537
9539
  var Ne = function() {
9538
9540
  this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new L();
9539
- }, du = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
9541
+ }, vu = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
9540
9542
  Ne.prototype.getCoordinates = function() {
9541
9543
  var t = this._ptList.toArray(Ne.COORDINATE_ARRAY_TYPE);
9542
9544
  return t;
@@ -9588,10 +9590,10 @@ Ne.prototype.interfaces_ = function() {
9588
9590
  Ne.prototype.getClass = function() {
9589
9591
  return Ne;
9590
9592
  };
9591
- du.COORDINATE_ARRAY_TYPE.get = function() {
9593
+ vu.COORDINATE_ARRAY_TYPE.get = function() {
9592
9594
  return new Array(0).fill(null);
9593
9595
  };
9594
- Object.defineProperties(Ne, du);
9596
+ Object.defineProperties(Ne, vu);
9595
9597
  var K = function() {
9596
9598
  }, oi = { PI_TIMES_2: { configurable: !0 }, PI_OVER_2: { configurable: !0 }, PI_OVER_4: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, CLOCKWISE: { configurable: !0 }, NONE: { configurable: !0 } };
9597
9599
  K.prototype.interfaces_ = function() {
@@ -9953,7 +9955,7 @@ var Hr = function() {
9953
9955
  this._subgraphs = null, this._seg = new A(), this._cga = new R();
9954
9956
  var t = arguments[0];
9955
9957
  this._subgraphs = t;
9956
- }, vu = { DepthSegment: { configurable: !0 } };
9958
+ }, yu = { DepthSegment: { configurable: !0 } };
9957
9959
  Hr.prototype.findStabbedSegments = function() {
9958
9960
  var t = this;
9959
9961
  if (arguments.length === 1) {
@@ -9963,7 +9965,7 @@ Hr.prototype.findStabbedSegments = function() {
9963
9965
  }
9964
9966
  return n;
9965
9967
  } else if (arguments.length === 3) {
9966
- if (z(arguments[2], Ve) && arguments[0] instanceof v && arguments[1] instanceof Ls)
9968
+ if (z(arguments[2], Ve) && arguments[0] instanceof v && arguments[1] instanceof bs)
9967
9969
  for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
9968
9970
  t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
9969
9971
  var h = Math.max(t._seg.p0.x, t._seg.p1.x);
@@ -9994,10 +9996,10 @@ Hr.prototype.interfaces_ = function() {
9994
9996
  Hr.prototype.getClass = function() {
9995
9997
  return Hr;
9996
9998
  };
9997
- vu.DepthSegment.get = function() {
9999
+ yu.DepthSegment.get = function() {
9998
10000
  return Sr;
9999
10001
  };
10000
- Object.defineProperties(Hr, vu);
10002
+ Object.defineProperties(Hr, yu);
10001
10003
  var Sr = function() {
10002
10004
  this._upwardSeg = null, this._leftDepth = null;
10003
10005
  var t = arguments[0], e = arguments[1];
@@ -10405,7 +10407,7 @@ jt.prototype.interfaces_ = function() {
10405
10407
  jt.prototype.getClass = function() {
10406
10408
  return jt;
10407
10409
  };
10408
- var wc = function(r) {
10410
+ var Lc = function(r) {
10409
10411
  function t() {
10410
10412
  r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
10411
10413
  }
@@ -10558,12 +10560,12 @@ var wc = function(r) {
10558
10560
  }, t.prototype.getClass = function() {
10559
10561
  return t;
10560
10562
  }, t;
10561
- }(jt), yu = function(r) {
10563
+ }(jt), mu = function(r) {
10562
10564
  function t() {
10563
10565
  r.apply(this, arguments);
10564
10566
  }
10565
10567
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
10566
- return new is(n, new wc());
10568
+ return new is(n, new Lc());
10567
10569
  }, t.prototype.interfaces_ = function() {
10568
10570
  return [];
10569
10571
  }, t.prototype.getClass = function() {
@@ -10893,7 +10895,7 @@ var kt = function r() {
10893
10895
  for (var e = 0; e < 2; e++)
10894
10896
  for (var n = 0; n < 3; n++)
10895
10897
  t._depth[e][n] = r.NULL_VALUE;
10896
- }, mu = { NULL_VALUE: { configurable: !0 } };
10898
+ }, _u = { NULL_VALUE: { configurable: !0 } };
10897
10899
  kt.prototype.getDepth = function(t, e) {
10898
10900
  return this._depth[t][e];
10899
10901
  };
@@ -10958,10 +10960,10 @@ kt.prototype.getClass = function() {
10958
10960
  kt.depthAtLocation = function(t) {
10959
10961
  return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : kt.NULL_VALUE;
10960
10962
  };
10961
- mu.NULL_VALUE.get = function() {
10963
+ _u.NULL_VALUE.get = function() {
10962
10964
  return -1;
10963
10965
  };
10964
- Object.defineProperties(kt, mu);
10966
+ Object.defineProperties(kt, _u);
10965
10967
  var ko = function(r) {
10966
10968
  function t() {
10967
10969
  if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new kt(), this._depthDelta = 0, arguments.length === 1) {
@@ -11117,7 +11119,7 @@ ee.prototype.createEmptyResultGeometry = function() {
11117
11119
  ee.prototype.getNoder = function(t) {
11118
11120
  if (this._workingNoder !== null)
11119
11121
  return this._workingNoder;
11120
- var e = new Us(), n = new Tr();
11122
+ var e = new qs(), n = new Tr();
11121
11123
  return n.setPrecisionModel(t), e.setSegmentIntersector(new xe(n)), e;
11122
11124
  };
11123
11125
  ee.prototype.buffer = function(t, e) {
@@ -11126,7 +11128,7 @@ ee.prototype.buffer = function(t, e) {
11126
11128
  var i = new ue(n, this._bufParams), o = new Me(t, e, i), s = o.getCurves();
11127
11129
  if (s.size() <= 0)
11128
11130
  return this.createEmptyResultGeometry();
11129
- this.computeNodedEdges(s, n), this._graph = new gt(new yu()), this._graph.addEdges(this._edgeList.getEdges());
11131
+ this.computeNodedEdges(s, n), this._graph = new gt(new mu()), this._graph.addEdges(this._edgeList.getEdges());
11130
11132
  var a = this.createSubgraphs(this._graph), u = new ge(this._geomFact);
11131
11133
  this.buildSubgraphs(a, u);
11132
11134
  var l = u.getPolygons();
@@ -11224,7 +11226,7 @@ var pn = function() {
11224
11226
  this._li = new Tr(), this._segStrings = null;
11225
11227
  var t = arguments[0];
11226
11228
  this._segStrings = t;
11227
- }, _u = { fact: { configurable: !0 } };
11229
+ }, Eu = { fact: { configurable: !0 } };
11228
11230
  pn.prototype.checkEndPtVertexIntersections = function() {
11229
11231
  var t = this;
11230
11232
  if (arguments.length === 0)
@@ -11292,17 +11294,17 @@ pn.prototype.interfaces_ = function() {
11292
11294
  pn.prototype.getClass = function() {
11293
11295
  return pn;
11294
11296
  };
11295
- _u.fact.get = function() {
11297
+ Eu.fact.get = function() {
11296
11298
  return new H();
11297
11299
  };
11298
- Object.defineProperties(pn, _u);
11300
+ Object.defineProperties(pn, Eu);
11299
11301
  var le = function() {
11300
11302
  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;
11301
11303
  var t = arguments[0], e = arguments[1], n = arguments[2];
11302
11304
  if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
11303
11305
  throw new ft("Scale factor must be non-zero");
11304
11306
  e !== 1 && (this._pt = new v(this.scale(t.x), this.scale(t.y)), this._p0Scaled = new v(), this._p1Scaled = new v()), this.initCorners(this._pt);
11305
- }, Eu = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
11307
+ }, Iu = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
11306
11308
  le.prototype.intersectsScaled = function(t, e) {
11307
11309
  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;
11308
11310
  if (a)
@@ -11350,10 +11352,10 @@ le.prototype.interfaces_ = function() {
11350
11352
  le.prototype.getClass = function() {
11351
11353
  return le;
11352
11354
  };
11353
- Eu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
11355
+ Iu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
11354
11356
  return 0.75;
11355
11357
  };
11356
- Object.defineProperties(le, Eu);
11358
+ Object.defineProperties(le, Iu);
11357
11359
  var uo = function() {
11358
11360
  this.tempEnv1 = new M(), this.selectedSegment = new A();
11359
11361
  };
@@ -11375,13 +11377,13 @@ var xi = function() {
11375
11377
  this._index = null;
11376
11378
  var t = arguments[0];
11377
11379
  this._index = t;
11378
- }, Iu = { HotPixelSnapAction: { configurable: !0 } };
11380
+ }, Cu = { HotPixelSnapAction: { configurable: !0 } };
11379
11381
  xi.prototype.snap = function() {
11380
11382
  if (arguments.length === 1) {
11381
11383
  var t = arguments[0];
11382
11384
  return this.snap(t, null, -1);
11383
11385
  } else if (arguments.length === 3) {
11384
- var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Cu(e, n, i);
11386
+ var e = arguments[0], n = arguments[1], i = arguments[2], o = e.getSafeEnvelope(), s = new Nu(e, n, i);
11385
11387
  return this._index.query(o, {
11386
11388
  interfaces_: function() {
11387
11389
  return [or];
@@ -11399,11 +11401,11 @@ xi.prototype.interfaces_ = function() {
11399
11401
  xi.prototype.getClass = function() {
11400
11402
  return xi;
11401
11403
  };
11402
- Iu.HotPixelSnapAction.get = function() {
11403
- return Cu;
11404
+ Cu.HotPixelSnapAction.get = function() {
11405
+ return Nu;
11404
11406
  };
11405
- Object.defineProperties(xi, Iu);
11406
- var Cu = function(r) {
11407
+ Object.defineProperties(xi, Cu);
11408
+ var Nu = function(r) {
11407
11409
  function t() {
11408
11410
  r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
11409
11411
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -11462,7 +11464,7 @@ Rn.prototype.checkCorrectness = function(t) {
11462
11464
  try {
11463
11465
  n.checkValid();
11464
11466
  } catch (i) {
11465
- if (i instanceof ou)
11467
+ if (i instanceof su)
11466
11468
  i.printStackTrace();
11467
11469
  else
11468
11470
  throw i;
@@ -11494,7 +11496,7 @@ Rn.prototype.computeVertexSnaps = function() {
11494
11496
  }
11495
11497
  };
11496
11498
  Rn.prototype.computeNodes = function(t) {
11497
- this._nodedSegStrings = t, this._noder = new Us(), this._pointSnapper = new xi(this._noder.getIndex()), this.snapRound(t, this._li);
11499
+ this._nodedSegStrings = t, this._noder = new qs(), this._pointSnapper = new xi(this._noder.getIndex()), this.snapRound(t, this._li);
11498
11500
  };
11499
11501
  Rn.prototype.computeIntersectionSnaps = function(t) {
11500
11502
  for (var e = this, n = t.iterator(); n.hasNext(); ) {
@@ -11710,7 +11712,7 @@ In.computeDistance = function() {
11710
11712
  };
11711
11713
  var br = function(t) {
11712
11714
  this._maxPtDist = new Zt(), this._inputGeom = t || null;
11713
- }, qs = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
11715
+ }, Xs = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
11714
11716
  br.prototype.computeMaxMidpointDistance = function(t) {
11715
11717
  var e = new lr(this._inputGeom);
11716
11718
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
@@ -11731,13 +11733,13 @@ br.prototype.interfaces_ = function() {
11731
11733
  br.prototype.getClass = function() {
11732
11734
  return br;
11733
11735
  };
11734
- qs.MaxPointDistanceFilter.get = function() {
11736
+ Xs.MaxPointDistanceFilter.get = function() {
11735
11737
  return jr;
11736
11738
  };
11737
- qs.MaxMidpointDistanceFilter.get = function() {
11739
+ Xs.MaxMidpointDistanceFilter.get = function() {
11738
11740
  return lr;
11739
11741
  };
11740
- Object.defineProperties(br, qs);
11742
+ Object.defineProperties(br, Xs);
11741
11743
  var jr = function(t) {
11742
11744
  this._maxPtDist = new Zt(), this._minPtDist = new Zt(), this._geom = t || null;
11743
11745
  };
@@ -11951,7 +11953,7 @@ var $t = function r() {
11951
11953
  var n = arguments[0], i = arguments[1], o = arguments[2];
11952
11954
  this._component = n, this._segIndex = i, this._pt = o;
11953
11955
  }
11954
- }, Nu = { INSIDE_AREA: { configurable: !0 } };
11956
+ }, xu = { INSIDE_AREA: { configurable: !0 } };
11955
11957
  $t.prototype.isInsideArea = function() {
11956
11958
  return this._segIndex === $t.INSIDE_AREA;
11957
11959
  };
@@ -11970,10 +11972,10 @@ $t.prototype.interfaces_ = function() {
11970
11972
  $t.prototype.getClass = function() {
11971
11973
  return $t;
11972
11974
  };
11973
- Nu.INSIDE_AREA.get = function() {
11975
+ xu.INSIDE_AREA.get = function() {
11974
11976
  return -1;
11975
11977
  };
11976
- Object.defineProperties($t, Nu);
11978
+ Object.defineProperties($t, xu);
11977
11979
  var nr = function(t) {
11978
11980
  this._pts = t || null;
11979
11981
  };
@@ -12252,7 +12254,7 @@ var Oe = function() {
12252
12254
  this._g0 = null, this._g1 = null, this._ptDist = new Yt(), this._densifyFrac = 0;
12253
12255
  var t = arguments[0], e = arguments[1];
12254
12256
  this._g0 = t, this._g1 = e;
12255
- }, Xs = { MaxPointDistanceFilter: { configurable: !0 }, MaxDensifiedByFractionDistanceFilter: { configurable: !0 } };
12257
+ }, Ys = { MaxPointDistanceFilter: { configurable: !0 }, MaxDensifiedByFractionDistanceFilter: { configurable: !0 } };
12256
12258
  Oe.prototype.getCoordinates = function() {
12257
12259
  return this._ptDist.getCoordinates();
12258
12260
  };
@@ -12292,13 +12294,13 @@ Oe.distance = function() {
12292
12294
  return a.setDensifyFraction(s), a.distance();
12293
12295
  }
12294
12296
  };
12295
- Xs.MaxPointDistanceFilter.get = function() {
12297
+ Ys.MaxPointDistanceFilter.get = function() {
12296
12298
  return Qr;
12297
12299
  };
12298
- Xs.MaxDensifiedByFractionDistanceFilter.get = function() {
12300
+ Ys.MaxDensifiedByFractionDistanceFilter.get = function() {
12299
12301
  return cr;
12300
12302
  };
12301
- Object.defineProperties(Oe, Xs);
12303
+ Object.defineProperties(Oe, Ys);
12302
12304
  var Qr = function() {
12303
12305
  this._maxPtDist = new Yt(), this._minPtDist = new Yt(), this._euclideanDist = new nn(), this._geom = null;
12304
12306
  var t = arguments[0];
@@ -12347,7 +12349,7 @@ cr.prototype.getClass = function() {
12347
12349
  };
12348
12350
  var fe = function(t, e, n) {
12349
12351
  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;
12350
- }, Ys = { VERBOSE: { configurable: !0 }, MAX_DISTANCE_DIFF_FRAC: { configurable: !0 } };
12352
+ }, Hs = { VERBOSE: { configurable: !0 }, MAX_DISTANCE_DIFF_FRAC: { configurable: !0 } };
12351
12353
  fe.prototype.checkMaximumDistance = function(t, e, n) {
12352
12354
  var i = new Oe(e, t);
12353
12355
  if (i.setDensifyFraction(0.25), this._maxDistanceFound = i.orientedDistance(), this._maxDistanceFound > n) {
@@ -12404,16 +12406,16 @@ fe.prototype.interfaces_ = function() {
12404
12406
  fe.prototype.getClass = function() {
12405
12407
  return fe;
12406
12408
  };
12407
- Ys.VERBOSE.get = function() {
12409
+ Hs.VERBOSE.get = function() {
12408
12410
  return !1;
12409
12411
  };
12410
- Ys.MAX_DISTANCE_DIFF_FRAC.get = function() {
12412
+ Hs.MAX_DISTANCE_DIFF_FRAC.get = function() {
12411
12413
  return 0.012;
12412
12414
  };
12413
- Object.defineProperties(fe, Ys);
12415
+ Object.defineProperties(fe, Hs);
12414
12416
  var Ut = function(t, e, n) {
12415
12417
  this._isValid = !0, this._errorMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._distance = e || null, this._result = n || null;
12416
- }, Hs = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
12418
+ }, Ws = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
12417
12419
  Ut.prototype.isValid = function() {
12418
12420
  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;
12419
12421
  };
@@ -12471,13 +12473,13 @@ Ut.isValid = function(t, e, n) {
12471
12473
  var i = new Ut(t, e, n);
12472
12474
  return !!i.isValid();
12473
12475
  };
12474
- Hs.VERBOSE.get = function() {
12476
+ Ws.VERBOSE.get = function() {
12475
12477
  return !1;
12476
12478
  };
12477
- Hs.MAX_ENV_DIFF_FRAC.get = function() {
12479
+ Ws.MAX_ENV_DIFF_FRAC.get = function() {
12478
12480
  return 0.012;
12479
12481
  };
12480
- Object.defineProperties(Ut, Hs);
12482
+ Object.defineProperties(Ut, Ws);
12481
12483
  var dn = function() {
12482
12484
  this._pts = null, this._data = null;
12483
12485
  var t = arguments[0], e = arguments[1];
@@ -12597,7 +12599,7 @@ je.prototype.setFindAllIntersections = function(t) {
12597
12599
  };
12598
12600
  je.prototype.checkInteriorIntersections = function() {
12599
12601
  this._isValid = !0, this._segInt = new Dt(this._li), this._segInt.setFindAllIntersections(this._findAllIntersections);
12600
- var t = new Us();
12602
+ var t = new qs();
12601
12603
  if (t.setSegmentIntersector(this._segInt), t.computeNodes(this._segStrings), this._segInt.hasIntersection())
12602
12604
  return this._isValid = !1, null;
12603
12605
  };
@@ -12915,13 +12917,13 @@ On.isClosed = function(t) {
12915
12917
  };
12916
12918
  var _t = function(t) {
12917
12919
  this._srcGeom = t || null;
12918
- }, xu = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
12920
+ }, Su = { SNAP_PRECISION_FACTOR: { configurable: !0 } };
12919
12921
  _t.prototype.snapTo = function(t, e) {
12920
- var n = this.extractTargetCoordinates(t), i = new Su(e, n);
12922
+ var n = this.extractTargetCoordinates(t), i = new wu(e, n);
12921
12923
  return i.transform(this._srcGeom);
12922
12924
  };
12923
12925
  _t.prototype.snapToSelf = function(t, e) {
12924
- var n = this.extractTargetCoordinates(this._srcGeom), i = new Su(t, n, !0), o = i.transform(this._srcGeom), s = o;
12926
+ var n = this.extractTargetCoordinates(this._srcGeom), i = new wu(t, n, !0), o = i.transform(this._srcGeom), s = o;
12925
12927
  return e && z(s, ir) && (s = o.buffer(0)), s;
12926
12928
  };
12927
12929
  _t.prototype.computeSnapTolerance = function(t) {
@@ -12973,11 +12975,11 @@ _t.snapToSelf = function(t, e, n) {
12973
12975
  var i = new _t(t);
12974
12976
  return i.snapToSelf(e, n);
12975
12977
  };
12976
- xu.SNAP_PRECISION_FACTOR.get = function() {
12978
+ Su.SNAP_PRECISION_FACTOR.get = function() {
12977
12979
  return 1e-9;
12978
12980
  };
12979
- Object.defineProperties(_t, xu);
12980
- var Su = function(r) {
12981
+ Object.defineProperties(_t, Su);
12982
+ var wu = function(r) {
12981
12983
  function t(e, n, i) {
12982
12984
  r.call(this), this._snapTolerance = e || null, this._snapPts = n || null, this._isSelfSnap = i !== void 0 ? i : !1;
12983
12985
  }
@@ -13040,7 +13042,7 @@ Jt.numCommonMostSigMantissaBits = function(t, e) {
13040
13042
  };
13041
13043
  var fr = function() {
13042
13044
  this._commonCoord = null, this._ccFilter = new $r();
13043
- }, Ws = { CommonCoordinateFilter: { configurable: !0 }, Translater: { configurable: !0 } };
13045
+ }, js = { CommonCoordinateFilter: { configurable: !0 }, Translater: { configurable: !0 } };
13044
13046
  fr.prototype.addCommonBits = function(t) {
13045
13047
  var e = new hr(this._commonCoord);
13046
13048
  t.apply(e), t.geometryChanged();
@@ -13065,13 +13067,13 @@ fr.prototype.interfaces_ = function() {
13065
13067
  fr.prototype.getClass = function() {
13066
13068
  return fr;
13067
13069
  };
13068
- Ws.CommonCoordinateFilter.get = function() {
13070
+ js.CommonCoordinateFilter.get = function() {
13069
13071
  return $r;
13070
13072
  };
13071
- Ws.Translater.get = function() {
13073
+ js.Translater.get = function() {
13072
13074
  return hr;
13073
13075
  };
13074
- Object.defineProperties(fr, Ws);
13076
+ Object.defineProperties(fr, js);
13075
13077
  var $r = function() {
13076
13078
  this._commonBitsX = new Jt(), this._commonBitsY = new Jt();
13077
13079
  };
@@ -13228,7 +13230,7 @@ var de = function r() {
13228
13230
  var n = arguments[0], i = arguments[1], o = arguments[2];
13229
13231
  this._eventType = r.INSERT, this._label = n, this._xValue = i, this._obj = o;
13230
13232
  }
13231
- }, js = { INSERT: { configurable: !0 }, DELETE: { configurable: !0 } };
13233
+ }, Ks = { INSERT: { configurable: !0 }, DELETE: { configurable: !0 } };
13232
13234
  de.prototype.isDelete = function() {
13233
13235
  return this._eventType === de.DELETE;
13234
13236
  };
@@ -13260,13 +13262,13 @@ de.prototype.interfaces_ = function() {
13260
13262
  de.prototype.getClass = function() {
13261
13263
  return de;
13262
13264
  };
13263
- js.INSERT.get = function() {
13265
+ Ks.INSERT.get = function() {
13264
13266
  return 1;
13265
13267
  };
13266
- js.DELETE.get = function() {
13268
+ Ks.DELETE.get = function() {
13267
13269
  return 2;
13268
13270
  };
13269
- Object.defineProperties(de, js);
13271
+ Object.defineProperties(de, Ks);
13270
13272
  var zo = function() {
13271
13273
  };
13272
13274
  zo.prototype.interfaces_ = function() {
@@ -13340,7 +13342,7 @@ qt.prototype.getClass = function() {
13340
13342
  qt.isAdjacentSegments = function(t, e) {
13341
13343
  return Math.abs(t - e) === 1;
13342
13344
  };
13343
- var Lc = function(r) {
13345
+ var bc = function(r) {
13344
13346
  function t() {
13345
13347
  r.call(this), this.events = new L(), this.nOverlaps = null;
13346
13348
  }
@@ -13402,7 +13404,7 @@ var Lc = function(r) {
13402
13404
  }, t;
13403
13405
  }(zo), Dn = function() {
13404
13406
  this._min = V.POSITIVE_INFINITY, this._max = V.NEGATIVE_INFINITY;
13405
- }, wu = { NodeComparator: { configurable: !0 } };
13407
+ }, Lu = { NodeComparator: { configurable: !0 } };
13406
13408
  Dn.prototype.getMin = function() {
13407
13409
  return this._min;
13408
13410
  };
@@ -13421,10 +13423,10 @@ Dn.prototype.interfaces_ = function() {
13421
13423
  Dn.prototype.getClass = function() {
13422
13424
  return Dn;
13423
13425
  };
13424
- wu.NodeComparator.get = function() {
13426
+ Lu.NodeComparator.get = function() {
13425
13427
  return co;
13426
13428
  };
13427
- Object.defineProperties(Dn, wu);
13429
+ Object.defineProperties(Dn, Lu);
13428
13430
  var co = function() {
13429
13431
  };
13430
13432
  co.prototype.compare = function(t, e) {
@@ -13437,7 +13439,7 @@ co.prototype.interfaces_ = function() {
13437
13439
  co.prototype.getClass = function() {
13438
13440
  return co;
13439
13441
  };
13440
- var bc = function(r) {
13442
+ var Pc = function(r) {
13441
13443
  function t() {
13442
13444
  r.call(this), this._item = null;
13443
13445
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -13452,7 +13454,7 @@ var bc = function(r) {
13452
13454
  }, t.prototype.getClass = function() {
13453
13455
  return t;
13454
13456
  }, t;
13455
- }(Dn), Pc = function(r) {
13457
+ }(Dn), Rc = function(r) {
13456
13458
  function t() {
13457
13459
  r.call(this), this._node1 = null, this._node2 = null;
13458
13460
  var e = arguments[0], n = arguments[1];
@@ -13484,7 +13486,7 @@ Tn.prototype.buildTree = function() {
13484
13486
  Tn.prototype.insert = function(t, e, n) {
13485
13487
  if (this._root !== null)
13486
13488
  throw new Error("Index cannot be added to once it has been queried");
13487
- this._leaves.add(new bc(t, e, n));
13489
+ this._leaves.add(new Pc(t, e, n));
13488
13490
  };
13489
13491
  Tn.prototype.query = function(t, e, n) {
13490
13492
  this.init(), this._root.query(t, e, n);
@@ -13509,7 +13511,7 @@ Tn.prototype.buildLevel = function(t, e) {
13509
13511
  if (o === null)
13510
13512
  e.add(i);
13511
13513
  else {
13512
- var s = new Pc(t.get(n), t.get(n + 1));
13514
+ var s = new Rc(t.get(n), t.get(n + 1));
13513
13515
  e.add(s);
13514
13516
  }
13515
13517
  }
@@ -13541,7 +13543,7 @@ var wi = function() {
13541
13543
  if (!z(t, ir))
13542
13544
  throw new ft("Argument must be Polygonal");
13543
13545
  this._index = new Rr(t);
13544
- }, Ks = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
13546
+ }, Qs = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
13545
13547
  wi.prototype.locate = function(t) {
13546
13548
  var e = new on(t), n = new Li(e);
13547
13549
  return this._index.query(t.y, t.y, n), e.getLocation();
@@ -13552,13 +13554,13 @@ wi.prototype.interfaces_ = function() {
13552
13554
  wi.prototype.getClass = function() {
13553
13555
  return wi;
13554
13556
  };
13555
- Ks.SegmentVisitor.get = function() {
13557
+ Qs.SegmentVisitor.get = function() {
13556
13558
  return Li;
13557
13559
  };
13558
- Ks.IntervalIndexedGeometry.get = function() {
13560
+ Qs.IntervalIndexedGeometry.get = function() {
13559
13561
  return Rr;
13560
13562
  };
13561
- Object.defineProperties(wi, Ks);
13563
+ Object.defineProperties(wi, Qs);
13562
13564
  var Li = function() {
13563
13565
  this._counter = null;
13564
13566
  var t = arguments[0];
@@ -13608,7 +13610,7 @@ Rr.prototype.getClass = function() {
13608
13610
  };
13609
13611
  var qi = function(r) {
13610
13612
  function t() {
13611
- if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new lu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new We(), arguments.length === 2) {
13613
+ if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new cu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new We(), arguments.length === 2) {
13612
13614
  var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
13613
13615
  this._argIndex = e, this._parentGeom = n, this._boundaryNodeRule = i, n !== null && this.add(n);
13614
13616
  } else if (arguments.length === 3) {
@@ -13700,7 +13702,7 @@ var qi = function(r) {
13700
13702
  var s = this._nodes.addNode(i), a = s.getLabel();
13701
13703
  a === null ? s._label = new nt(n, o) : a.setLocation(n, o);
13702
13704
  }, t.prototype.createEdgeSetIntersector = function() {
13703
- return new Lc();
13705
+ return new bc();
13704
13706
  }, t.prototype.addSelfIntersectionNodes = function(n) {
13705
13707
  for (var i = this, o = this._edges.iterator(); o.hasNext(); )
13706
13708
  for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
@@ -13802,7 +13804,7 @@ Er.MapOp = function() {
13802
13804
  var U = function(r) {
13803
13805
  function t() {
13804
13806
  var e = arguments[0], n = arguments[1];
13805
- r.call(this, e, n), this._ptLocator = new We(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new He(), this._resultPolyList = new L(), this._resultLineList = new L(), this._resultPointList = new L(), this._graph = new gt(new yu()), this._geomFact = e.getFactory();
13807
+ r.call(this, e, n), this._ptLocator = new We(), this._geomFact = null, this._resultGeom = null, this._graph = null, this._edgeList = new He(), this._resultPolyList = new L(), this._resultLineList = new L(), this._resultPointList = new L(), this._graph = new gt(new mu()), this._geomFact = e.getFactory();
13806
13808
  }
13807
13809
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.insertUniqueEdge = function(n) {
13808
13810
  var i = this._edgeList.findEqualEdge(n);
@@ -14090,7 +14092,7 @@ var Se = function r() {
14090
14092
  this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new L();
14091
14093
  var t = arguments[0], e = arguments[1], n = arguments[2];
14092
14094
  this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new rr(this._geom[0], this._boundaryDistanceTolerance), new rr(this._geom[1], this._boundaryDistanceTolerance), new rr(this._geom[2], this._boundaryDistanceTolerance)];
14093
- }, Lu = { TOLERANCE: { configurable: !0 } };
14095
+ }, bu = { TOLERANCE: { configurable: !0 } };
14094
14096
  Se.prototype.reportResult = function(t, e, n) {
14095
14097
  zt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
14096
14098
  };
@@ -14143,10 +14145,10 @@ Se.isValid = function(t, e, n, i) {
14143
14145
  var o = new Se(t, e, i);
14144
14146
  return o.isValid(n);
14145
14147
  };
14146
- Lu.TOLERANCE.get = function() {
14148
+ bu.TOLERANCE.get = function() {
14147
14149
  return 1e-6;
14148
14150
  };
14149
- Object.defineProperties(Se, Lu);
14151
+ Object.defineProperties(Se, bu);
14150
14152
  var me = function r(t) {
14151
14153
  this._geomFactory = null, this._skipEmpty = !1, this._inputGeoms = null, this._geomFactory = r.extractFactory(t), this._inputGeoms = t;
14152
14154
  };
@@ -14200,7 +14202,7 @@ var Nt = function() {
14200
14202
  this._inputPolys = null, this._geomFactory = null;
14201
14203
  var t = arguments[0];
14202
14204
  this._inputPolys = t, this._inputPolys === null && (this._inputPolys = new L());
14203
- }, bu = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
14205
+ }, Pu = { STRTREE_NODE_CAPACITY: { configurable: !0 } };
14204
14206
  Nt.prototype.reduceToGeometries = function(t) {
14205
14207
  for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
14206
14208
  var o = i.next(), s = null;
@@ -14232,7 +14234,7 @@ Nt.prototype.union = function() {
14232
14234
  if (this._inputPolys.isEmpty())
14233
14235
  return null;
14234
14236
  this._geomFactory = this._inputPolys.iterator().next().getFactory();
14235
- for (var t = new gu(Nt.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
14237
+ for (var t = new pu(Nt.STRTREE_NODE_CAPACITY), e = this._inputPolys.iterator(); e.hasNext(); ) {
14236
14238
  var n = e.next();
14237
14239
  t.insert(n.getEnvelopeInternal(), n);
14238
14240
  }
@@ -14308,10 +14310,10 @@ Nt.union = function(t) {
14308
14310
  var e = new Nt(t);
14309
14311
  return e.union();
14310
14312
  };
14311
- bu.STRTREE_NODE_CAPACITY.get = function() {
14313
+ Pu.STRTREE_NODE_CAPACITY.get = function() {
14312
14314
  return 4;
14313
14315
  };
14314
- Object.defineProperties(Nt, bu);
14316
+ Object.defineProperties(Nt, Pu);
14315
14317
  var Vo = function() {
14316
14318
  };
14317
14319
  Vo.prototype.interfaces_ = function() {
@@ -14343,19 +14345,19 @@ Uo.prototype = {
14343
14345
  this.s = this.t = 0;
14344
14346
  },
14345
14347
  add: function(r) {
14346
- Sa(No, r, this.t), Sa(this, No.s, this.s), this.s ? this.t += No.t : this.s = No.t;
14348
+ wa(No, r, this.t), wa(this, No.s, this.s), this.s ? this.t += No.t : this.s = No.t;
14347
14349
  },
14348
14350
  valueOf: function() {
14349
14351
  return this.s;
14350
14352
  }
14351
14353
  };
14352
14354
  var No = new Uo();
14353
- function Sa(r, t, e) {
14355
+ function wa(r, t, e) {
14354
14356
  var n = r.s = t + e, i = n - t, o = n - i;
14355
14357
  r.t = t - o + (e - i);
14356
14358
  }
14357
- var pt = 1e-6, ot = Math.PI, Xn = ot / 2, wa = ot / 4, Jn = ot * 2, vr = 180 / ot, tn = ot / 180, te = Math.abs, Rc = Math.atan, Ri = Math.atan2, Lt = Math.cos, bt = Math.sin, zi = Math.sqrt;
14358
- function Pu(r) {
14359
+ var pt = 1e-6, ot = Math.PI, Xn = ot / 2, La = ot / 4, Jn = ot * 2, vr = 180 / ot, tn = ot / 180, te = Math.abs, Oc = Math.atan, Ri = Math.atan2, Lt = Math.cos, bt = Math.sin, zi = Math.sqrt;
14360
+ function Ru(r) {
14359
14361
  return r > 1 ? 0 : r < -1 ? ot : Math.acos(r);
14360
14362
  }
14361
14363
  function ti(r) {
@@ -14364,9 +14366,9 @@ function ti(r) {
14364
14366
  function Xi() {
14365
14367
  }
14366
14368
  function qo(r, t) {
14367
- r && ba.hasOwnProperty(r.type) && ba[r.type](r, t);
14369
+ r && Pa.hasOwnProperty(r.type) && Pa[r.type](r, t);
14368
14370
  }
14369
- var La = {
14371
+ var ba = {
14370
14372
  Feature: function(r, t) {
14371
14373
  qo(r.geometry, t);
14372
14374
  },
@@ -14374,7 +14376,7 @@ var La = {
14374
14376
  for (var e = r.features, n = -1, i = e.length; ++n < i; )
14375
14377
  qo(e[n].geometry, t);
14376
14378
  }
14377
- }, ba = {
14379
+ }, Pa = {
14378
14380
  Sphere: function(r, t) {
14379
14381
  t.sphere();
14380
14382
  },
@@ -14386,42 +14388,42 @@ var La = {
14386
14388
  r = e[n], t.point(r[0], r[1], r[2]);
14387
14389
  },
14388
14390
  LineString: function(r, t) {
14389
- bs(r.coordinates, t, 0);
14391
+ Ps(r.coordinates, t, 0);
14390
14392
  },
14391
14393
  MultiLineString: function(r, t) {
14392
14394
  for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
14393
- bs(e[n], t, 0);
14395
+ Ps(e[n], t, 0);
14394
14396
  },
14395
14397
  Polygon: function(r, t) {
14396
- Pa(r.coordinates, t);
14398
+ Ra(r.coordinates, t);
14397
14399
  },
14398
14400
  MultiPolygon: function(r, t) {
14399
14401
  for (var e = r.coordinates, n = -1, i = e.length; ++n < i; )
14400
- Pa(e[n], t);
14402
+ Ra(e[n], t);
14401
14403
  },
14402
14404
  GeometryCollection: function(r, t) {
14403
14405
  for (var e = r.geometries, n = -1, i = e.length; ++n < i; )
14404
14406
  qo(e[n], t);
14405
14407
  }
14406
14408
  };
14407
- function bs(r, t, e) {
14409
+ function Ps(r, t, e) {
14408
14410
  var n = -1, i = r.length - e, o;
14409
14411
  for (t.lineStart(); ++n < i; )
14410
14412
  o = r[n], t.point(o[0], o[1], o[2]);
14411
14413
  t.lineEnd();
14412
14414
  }
14413
- function Pa(r, t) {
14415
+ function Ra(r, t) {
14414
14416
  var e = -1, n = r.length;
14415
14417
  for (t.polygonStart(); ++e < n; )
14416
- bs(r[e], t, 1);
14418
+ Ps(r[e], t, 1);
14417
14419
  t.polygonEnd();
14418
14420
  }
14419
- function Oc(r, t) {
14420
- r && La.hasOwnProperty(r.type) ? La[r.type](r, t) : qo(r, t);
14421
+ function Dc(r, t) {
14422
+ r && ba.hasOwnProperty(r.type) ? ba[r.type](r, t) : qo(r, t);
14421
14423
  }
14422
14424
  Mr();
14423
14425
  Mr();
14424
- function Ps(r) {
14426
+ function Rs(r) {
14425
14427
  return [Ri(r[1], r[0]), ti(r[2])];
14426
14428
  }
14427
14429
  function Oi(r) {
@@ -14434,18 +14436,18 @@ function xo(r, t) {
14434
14436
  function Xo(r, t) {
14435
14437
  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]];
14436
14438
  }
14437
- function ps(r, t) {
14439
+ function ds(r, t) {
14438
14440
  r[0] += t[0], r[1] += t[1], r[2] += t[2];
14439
14441
  }
14440
14442
  function So(r, t) {
14441
14443
  return [r[0] * t, r[1] * t, r[2] * t];
14442
14444
  }
14443
- function Rs(r) {
14445
+ function Os(r) {
14444
14446
  var t = zi(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
14445
14447
  r[0] /= t, r[1] /= t, r[2] /= t;
14446
14448
  }
14447
14449
  Mr();
14448
- function Ru(r, t) {
14450
+ function Ou(r, t) {
14449
14451
  function e(n, i) {
14450
14452
  return n = r(n, i), t(n[0], n[1]);
14451
14453
  }
@@ -14453,23 +14455,23 @@ function Ru(r, t) {
14453
14455
  return n = t.invert(n, i), n && r.invert(n[0], n[1]);
14454
14456
  }), e;
14455
14457
  }
14456
- function Os(r, t) {
14458
+ function Ds(r, t) {
14457
14459
  return [r > ot ? r - Jn : r < -ot ? r + Jn : r, t];
14458
14460
  }
14459
- Os.invert = Os;
14460
- function Dc(r, t, e) {
14461
- return (r %= Jn) ? t || e ? Ru(Oa(r), Da(t, e)) : Oa(r) : t || e ? Da(t, e) : Os;
14461
+ Ds.invert = Ds;
14462
+ function Tc(r, t, e) {
14463
+ return (r %= Jn) ? t || e ? Ou(Da(r), Ta(t, e)) : Da(r) : t || e ? Ta(t, e) : Ds;
14462
14464
  }
14463
- function Ra(r) {
14465
+ function Oa(r) {
14464
14466
  return function(t, e) {
14465
14467
  return t += r, [t > ot ? t - Jn : t < -ot ? t + Jn : t, e];
14466
14468
  };
14467
14469
  }
14468
- function Oa(r) {
14469
- var t = Ra(r);
14470
- return t.invert = Ra(-r), t;
14470
+ function Da(r) {
14471
+ var t = Oa(r);
14472
+ return t.invert = Oa(-r), t;
14471
14473
  }
14472
- function Da(r, t) {
14474
+ function Ta(r, t) {
14473
14475
  var e = Lt(r), n = bt(r), i = Lt(t), o = bt(t);
14474
14476
  function s(a, u) {
14475
14477
  var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
@@ -14486,20 +14488,20 @@ function Da(r, t) {
14486
14488
  ];
14487
14489
  }, s;
14488
14490
  }
14489
- function Tc(r, t, e, n, i, o) {
14491
+ function Mc(r, t, e, n, i, o) {
14490
14492
  if (e) {
14491
14493
  var s = Lt(t), a = bt(t), u = n * e;
14492
- i == null ? (i = t + n * Jn, o = t - u / 2) : (i = Ta(s, i), o = Ta(s, o), (n > 0 ? i < o : i > o) && (i += n * Jn));
14494
+ i == null ? (i = t + n * Jn, o = t - u / 2) : (i = Ma(s, i), o = Ma(s, o), (n > 0 ? i < o : i > o) && (i += n * Jn));
14493
14495
  for (var l, c = i; n > 0 ? c > o : c < o; c -= u)
14494
- l = Ps([s, -a * Lt(c), -a * bt(c)]), r.point(l[0], l[1]);
14496
+ l = Rs([s, -a * Lt(c), -a * bt(c)]), r.point(l[0], l[1]);
14495
14497
  }
14496
14498
  }
14497
- function Ta(r, t) {
14498
- t = Oi(t), t[0] -= r, Rs(t);
14499
- var e = Pu(-t[1]);
14499
+ function Ma(r, t) {
14500
+ t = Oi(t), t[0] -= r, Os(t);
14501
+ var e = Ru(-t[1]);
14500
14502
  return ((-t[2] < 0 ? -e : e) + Jn - pt) % Jn;
14501
14503
  }
14502
- function Ou() {
14504
+ function Du() {
14503
14505
  var r = [], t;
14504
14506
  return {
14505
14507
  point: function(e, n) {
@@ -14518,7 +14520,7 @@ function Ou() {
14518
14520
  }
14519
14521
  };
14520
14522
  }
14521
- function Mc(r, t, e, n, i, o) {
14523
+ function Ac(r, t, e, n, i, o) {
14522
14524
  var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
14523
14525
  if (p = e - s, !(!h && p > 0)) {
14524
14526
  if (p /= h, h < 0) {
@@ -14572,7 +14574,7 @@ function Do(r, t) {
14572
14574
  function wo(r, t, e, n) {
14573
14575
  this.x = r, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
14574
14576
  }
14575
- function Du(r, t, e, n, i) {
14577
+ function Tu(r, t, e, n, i) {
14576
14578
  var o = [], s = [], a, u;
14577
14579
  if (r.forEach(function(p) {
14578
14580
  if (!((m = p.length - 1) <= 0)) {
@@ -14586,7 +14588,7 @@ function Du(r, t, e, n, i) {
14586
14588
  o.push(I = new wo(d, p, null, !0)), s.push(I.o = new wo(d, null, I, !1)), o.push(I = new wo(y, p, null, !1)), s.push(I.o = new wo(y, null, I, !0));
14587
14589
  }
14588
14590
  }), !!o.length) {
14589
- for (s.sort(t), Ma(o), Ma(s), a = 0, u = s.length; a < u; ++a)
14591
+ for (s.sort(t), Aa(o), Aa(s), a = 0, u = s.length; a < u; ++a)
14590
14592
  s[a].e = e = !e;
14591
14593
  for (var l = o[0], c, f; ; ) {
14592
14594
  for (var h = l, g = !0; h.v; )
@@ -14615,18 +14617,18 @@ function Du(r, t, e, n, i) {
14615
14617
  }
14616
14618
  }
14617
14619
  }
14618
- function Ma(r) {
14620
+ function Aa(r) {
14619
14621
  if (t = r.length) {
14620
14622
  for (var t, e = 0, n = r[0], i; ++e < t; )
14621
14623
  n.n = i = r[e], i.p = n, n = i;
14622
14624
  n.n = i = r[0], i.p = n;
14623
14625
  }
14624
14626
  }
14625
- function Tu(r, t) {
14627
+ function Mu(r, t) {
14626
14628
  return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
14627
14629
  }
14628
- function Ac(r) {
14629
- return r.length === 1 && (r = Fc(r)), {
14630
+ function Fc(r) {
14631
+ return r.length === 1 && (r = Bc(r)), {
14630
14632
  left: function(t, e, n, i) {
14631
14633
  for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
14632
14634
  var o = n + i >>> 1;
@@ -14643,13 +14645,13 @@ function Ac(r) {
14643
14645
  }
14644
14646
  };
14645
14647
  }
14646
- function Fc(r) {
14648
+ function Bc(r) {
14647
14649
  return function(t, e) {
14648
- return Tu(r(t), e);
14650
+ return Mu(r(t), e);
14649
14651
  };
14650
14652
  }
14651
- Ac(Tu);
14652
- function Mu(r) {
14653
+ Fc(Mu);
14654
+ function Au(r) {
14653
14655
  for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
14654
14656
  i += r[n].length;
14655
14657
  for (o = new Array(i); --t >= 0; )
@@ -14658,7 +14660,7 @@ function Mu(r) {
14658
14660
  return o;
14659
14661
  }
14660
14662
  var Yi = 1e9, Lo = -Yi;
14661
- function Bc(r, t, e, n) {
14663
+ function Gc(r, t, e, n) {
14662
14664
  function i(l, c) {
14663
14665
  return r <= l && l <= e && t <= c && c <= n;
14664
14666
  }
@@ -14682,7 +14684,7 @@ function Bc(r, t, e, n) {
14682
14684
  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];
14683
14685
  }
14684
14686
  return function(l) {
14685
- var c = l, f = Ou(), h, g, p, m, d, y, I, C, x, b, w, D = {
14687
+ var c = l, f = Du(), h, g, p, m, d, y, I, C, x, b, w, D = {
14686
14688
  point: T,
14687
14689
  lineStart: O,
14688
14690
  lineEnd: Y,
@@ -14702,8 +14704,8 @@ function Bc(r, t, e, n) {
14702
14704
  c = f, h = [], g = [], w = !0;
14703
14705
  }
14704
14706
  function k() {
14705
- var X = F(), ut = w && X, yt = (h = Mu(h)).length;
14706
- (ut || yt) && (l.polygonStart(), ut && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), yt && Du(h, a, X, o, l), l.polygonEnd()), c = l, h = g = p = null;
14707
+ var X = F(), ut = w && X, yt = (h = Au(h)).length;
14708
+ (ut || yt) && (l.polygonStart(), ut && (l.lineStart(), o(null, null, 1, l), l.lineEnd()), yt && Tu(h, a, X, o, l), l.polygonEnd()), c = l, h = g = p = null;
14707
14709
  }
14708
14710
  function O() {
14709
14711
  D.point = P, g && g.push(p = []), b = !0, x = !1, I = C = NaN;
@@ -14719,40 +14721,40 @@ function Bc(r, t, e, n) {
14719
14721
  c.point(X, ut);
14720
14722
  else {
14721
14723
  var Xt = [I = Math.max(Lo, Math.min(Yi, I)), C = Math.max(Lo, Math.min(Yi, C))], we = [X = Math.max(Lo, Math.min(Yi, X)), ut = Math.max(Lo, Math.min(Yi, ut))];
14722
- Mc(Xt, we, r, t, e, n) ? (x || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(we[0], we[1]), yt || c.lineEnd(), w = !1) : yt && (c.lineStart(), c.point(X, ut), w = !1);
14724
+ Ac(Xt, we, r, t, e, n) ? (x || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(we[0], we[1]), yt || c.lineEnd(), w = !1) : yt && (c.lineStart(), c.point(X, ut), w = !1);
14723
14725
  }
14724
14726
  I = X, C = ut, x = yt;
14725
14727
  }
14726
14728
  return D;
14727
14729
  };
14728
14730
  }
14729
- var ds = Mr();
14730
- function Gc(r, t) {
14731
+ var vs = Mr();
14732
+ function kc(r, t) {
14731
14733
  var e = t[0], n = t[1], i = [bt(e), -Lt(e), 0], o = 0, s = 0;
14732
- ds.reset();
14734
+ vs.reset();
14733
14735
  for (var a = 0, u = r.length; a < u; ++a)
14734
14736
  if (c = (l = r[a]).length)
14735
- for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + wa, p = bt(g), m = Lt(g), d = 0; d < c; ++d, h = I, p = x, m = b, f = y) {
14736
- var y = l[d], I = y[0], C = y[1] / 2 + wa, x = bt(C), b = Lt(C), w = I - h, D = w >= 0 ? 1 : -1, T = D * w, F = T > ot, j = p * x;
14737
- if (ds.add(Ri(j * D * bt(T), m * b + j * Lt(T))), o += F ? w + D * Jn : w, F ^ h >= e ^ I >= e) {
14737
+ for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + La, p = bt(g), m = Lt(g), d = 0; d < c; ++d, h = I, p = x, m = b, f = y) {
14738
+ var y = l[d], I = y[0], C = y[1] / 2 + La, x = bt(C), b = Lt(C), w = I - h, D = w >= 0 ? 1 : -1, T = D * w, F = T > ot, j = p * x;
14739
+ if (vs.add(Ri(j * D * bt(T), m * b + j * Lt(T))), o += F ? w + D * Jn : w, F ^ h >= e ^ I >= e) {
14738
14740
  var k = Xo(Oi(f), Oi(y));
14739
- Rs(k);
14741
+ Os(k);
14740
14742
  var O = Xo(i, k);
14741
- Rs(O);
14743
+ Os(O);
14742
14744
  var Y = (F ^ w >= 0 ? -1 : 1) * ti(O[2]);
14743
14745
  (n > Y || n === Y && (k[0] || k[1])) && (s += F ^ w >= 0 ? 1 : -1);
14744
14746
  }
14745
14747
  }
14746
- return (o < -pt || o < pt && ds < -pt) ^ s & 1;
14748
+ return (o < -pt || o < pt && vs < -pt) ^ s & 1;
14747
14749
  }
14748
14750
  Mr();
14749
- function Aa(r) {
14751
+ function Fa(r) {
14750
14752
  return r;
14751
14753
  }
14752
14754
  Mr();
14753
14755
  Mr();
14754
- var Di = 1 / 0, Yo = Di, fo = -Di, Ho = fo, Fa = {
14755
- point: kc,
14756
+ var Di = 1 / 0, Yo = Di, fo = -Di, Ho = fo, Ba = {
14757
+ point: zc,
14756
14758
  lineStart: Xi,
14757
14759
  lineEnd: Xi,
14758
14760
  polygonStart: Xi,
@@ -14762,13 +14764,13 @@ var Di = 1 / 0, Yo = Di, fo = -Di, Ho = fo, Fa = {
14762
14764
  return fo = Ho = -(Yo = Di = 1 / 0), r;
14763
14765
  }
14764
14766
  };
14765
- function kc(r, t) {
14767
+ function zc(r, t) {
14766
14768
  r < Di && (Di = r), r > fo && (fo = r), t < Yo && (Yo = t), t > Ho && (Ho = t);
14767
14769
  }
14768
14770
  Mr();
14769
- function Au(r, t, e, n) {
14771
+ function Fu(r, t, e, n) {
14770
14772
  return function(i, o) {
14771
- var s = t(o), a = i.invert(n[0], n[1]), u = Ou(), l = t(u), c = !1, f, h, g, p = {
14773
+ var s = t(o), a = i.invert(n[0], n[1]), u = Du(), l = t(u), c = !1, f, h, g, p = {
14772
14774
  point: m,
14773
14775
  lineStart: y,
14774
14776
  lineEnd: I,
@@ -14776,9 +14778,9 @@ function Au(r, t, e, n) {
14776
14778
  p.point = C, p.lineStart = x, p.lineEnd = b, h = [], f = [];
14777
14779
  },
14778
14780
  polygonEnd: function() {
14779
- p.point = m, p.lineStart = y, p.lineEnd = I, h = Mu(h);
14780
- var w = Gc(f, a);
14781
- h.length ? (c || (o.polygonStart(), c = !0), Du(h, Vc, w, e, o)) : w && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
14781
+ p.point = m, p.lineStart = y, p.lineEnd = I, h = Au(h);
14782
+ var w = kc(f, a);
14783
+ h.length ? (c || (o.polygonStart(), c = !0), Tu(h, Uc, w, e, o)) : w && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
14782
14784
  },
14783
14785
  sphere: function() {
14784
14786
  o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
@@ -14818,27 +14820,27 @@ function Au(r, t, e, n) {
14818
14820
  }
14819
14821
  return;
14820
14822
  }
14821
- F > 1 && w & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(zc));
14823
+ F > 1 && w & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(Vc));
14822
14824
  }
14823
14825
  }
14824
14826
  return p;
14825
14827
  };
14826
14828
  }
14827
- function zc(r) {
14829
+ function Vc(r) {
14828
14830
  return r.length > 1;
14829
14831
  }
14830
- function Vc(r, t) {
14832
+ function Uc(r, t) {
14831
14833
  return ((r = r.x)[0] < 0 ? r[1] - Xn - pt : Xn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Xn - pt : Xn - t[1]);
14832
14834
  }
14833
- const Ba = Au(
14835
+ const Ga = Fu(
14834
14836
  function() {
14835
14837
  return !0;
14836
14838
  },
14837
- Uc,
14838
- Xc,
14839
+ qc,
14840
+ Yc,
14839
14841
  [-ot, -Xn]
14840
14842
  );
14841
- function Uc(r) {
14843
+ function qc(r) {
14842
14844
  var t = NaN, e = NaN, n = NaN, i;
14843
14845
  return {
14844
14846
  lineStart: function() {
@@ -14846,7 +14848,7 @@ function Uc(r) {
14846
14848
  },
14847
14849
  point: function(o, s) {
14848
14850
  var a = o > 0 ? ot : -ot, u = te(o - t);
14849
- te(u - ot) < pt ? (r.point(t, e = (e + s) / 2 > 0 ? Xn : -Xn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= ot && (te(t - n) < pt && (t -= n * pt), te(o - a) < pt && (o -= a * pt), e = qc(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;
14851
+ te(u - ot) < pt ? (r.point(t, e = (e + s) / 2 > 0 ? Xn : -Xn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= ot && (te(t - n) < pt && (t -= n * pt), te(o - a) < pt && (o -= a * pt), e = Xc(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;
14850
14852
  },
14851
14853
  lineEnd: function() {
14852
14854
  r.lineEnd(), t = e = NaN;
@@ -14856,11 +14858,11 @@ function Uc(r) {
14856
14858
  }
14857
14859
  };
14858
14860
  }
14859
- function qc(r, t, e, n) {
14861
+ function Xc(r, t, e, n) {
14860
14862
  var i, o, s = bt(r - e);
14861
- return te(s) > pt ? Rc((bt(t) * (o = Lt(n)) * bt(e) - bt(n) * (i = Lt(t)) * bt(r)) / (i * o * s)) : (t + n) / 2;
14863
+ return te(s) > pt ? Oc((bt(t) * (o = Lt(n)) * bt(e) - bt(n) * (i = Lt(t)) * bt(r)) / (i * o * s)) : (t + n) / 2;
14862
14864
  }
14863
- function Xc(r, t, e, n) {
14865
+ function Yc(r, t, e, n) {
14864
14866
  var i;
14865
14867
  if (r == null)
14866
14868
  i = e * Xn, n.point(-ot, i), n.point(0, i), n.point(ot, i), n.point(ot, 0), n.point(ot, -i), n.point(0, -i), n.point(-ot, -i), n.point(-ot, 0), n.point(-ot, i);
@@ -14870,10 +14872,10 @@ function Xc(r, t, e, n) {
14870
14872
  } else
14871
14873
  n.point(t[0], t[1]);
14872
14874
  }
14873
- function Yc(r, t) {
14875
+ function Hc(r, t) {
14874
14876
  var e = Lt(r), n = e > 0, i = te(e) > pt;
14875
14877
  function o(c, f, h, g) {
14876
- Tc(g, r, t, h, c, f);
14878
+ Mc(g, r, t, h, c, f);
14877
14879
  }
14878
14880
  function s(c, f) {
14879
14881
  return Lt(c) * Lt(f) > e;
@@ -14907,18 +14909,18 @@ function Yc(r, t) {
14907
14909
  if (!C)
14908
14910
  return !h && c;
14909
14911
  var x = e * y / C, b = -e * I / C, w = Xo(m, d), D = So(m, x), T = So(d, b);
14910
- ps(D, T);
14912
+ ds(D, T);
14911
14913
  var F = w, j = xo(D, F), k = xo(F, F), O = j * j - k * (xo(D, D) - 1);
14912
14914
  if (!(O < 0)) {
14913
14915
  var Y = zi(O), P = So(F, (-j - Y) / k);
14914
- if (ps(P, D), P = Ps(P), !h)
14916
+ if (ds(P, D), P = Rs(P), !h)
14915
14917
  return P;
14916
14918
  var X = c[0], ut = f[0], yt = c[1], Xt = f[1], we;
14917
14919
  ut < X && (we = X, X = ut, ut = we);
14918
14920
  var Ar = ut - X, Ze = te(Ar - ot) < pt, Le = Ze || Ar < pt;
14919
14921
  if (!Ze && Xt < yt && (we = yt, yt = Xt, Xt = we), Le ? Ze ? yt + Xt > 0 ^ P[1] < (te(P[0] - X) < pt ? yt : Xt) : yt <= P[1] && P[1] <= Xt : Ar > ot ^ (X <= P[0] && P[0] <= ut)) {
14920
14922
  var J = So(F, (-j + Y) / k);
14921
- return ps(J, D), [P, Ps(J)];
14923
+ return ds(J, D), [P, Rs(J)];
14922
14924
  }
14923
14925
  }
14924
14926
  }
@@ -14926,20 +14928,20 @@ function Yc(r, t) {
14926
14928
  var h = n ? r : ot - r, g = 0;
14927
14929
  return c < -h ? g |= 1 : c > h && (g |= 2), f < -h ? g |= 4 : f > h && (g |= 8), g;
14928
14930
  }
14929
- return Au(s, a, o, n ? [0, -r] : [-ot, r - ot]);
14931
+ return Fu(s, a, o, n ? [0, -r] : [-ot, r - ot]);
14930
14932
  }
14931
- function Fu(r) {
14933
+ function Bu(r) {
14932
14934
  return function(t) {
14933
- var e = new Ds();
14935
+ var e = new Ts();
14934
14936
  for (var n in r)
14935
14937
  e[n] = r[n];
14936
14938
  return e.stream = t, e;
14937
14939
  };
14938
14940
  }
14939
- function Ds() {
14941
+ function Ts() {
14940
14942
  }
14941
- Ds.prototype = {
14942
- constructor: Ds,
14943
+ Ts.prototype = {
14944
+ constructor: Ts,
14943
14945
  point: function(r, t) {
14944
14946
  this.stream.point(r, t);
14945
14947
  },
@@ -14959,32 +14961,32 @@ Ds.prototype = {
14959
14961
  this.stream.polygonEnd();
14960
14962
  }
14961
14963
  };
14962
- function Bu(r, t, e) {
14964
+ function Gu(r, t, e) {
14963
14965
  var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
14964
- r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Oc(e, r.stream(Fa));
14965
- var s = Fa.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;
14966
+ r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Dc(e, r.stream(Ba));
14967
+ var s = Ba.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;
14966
14968
  return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
14967
14969
  }
14968
- function Hc(r, t, e) {
14969
- return Bu(r, [[0, 0], t], e);
14970
+ function Wc(r, t, e) {
14971
+ return Gu(r, [[0, 0], t], e);
14970
14972
  }
14971
- var Ga = 16, Wc = Lt(30 * tn);
14972
- function ka(r, t) {
14973
- return +t ? Kc(r, t) : jc(r);
14973
+ var ka = 16, jc = Lt(30 * tn);
14974
+ function za(r, t) {
14975
+ return +t ? Qc(r, t) : Kc(r);
14974
14976
  }
14975
- function jc(r) {
14976
- return Fu({
14977
+ function Kc(r) {
14978
+ return Bu({
14977
14979
  point: function(t, e) {
14978
14980
  t = r(t, e), this.stream.point(t[0], t[1]);
14979
14981
  }
14980
14982
  });
14981
14983
  }
14982
- function Kc(r, t) {
14984
+ function Qc(r, t) {
14983
14985
  function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
14984
14986
  var y = l - n, I = c - i, C = y * y + I * I;
14985
14987
  if (C > 4 * t && m--) {
14986
14988
  var x = s + h, b = a + g, w = u + p, D = zi(x * x + b * b + w * w), T = ti(w /= D), F = te(te(w) - 1) < pt || te(o - f) < pt ? (o + f) / 2 : Ri(b, x), j = r(F, T), k = j[0], O = j[1], Y = k - n, P = O - i, X = I * Y - y * P;
14987
- (X * X / C > t || te((y * Y + I * P) / C - 0.5) > 0.3 || s * h + a * g + u * p < Wc) && (e(n, i, o, s, a, u, k, O, F, x /= D, b /= D, w, m, d), d.point(k, O), e(k, O, F, x, b, w, l, c, f, h, g, p, m, d));
14989
+ (X * X / C > t || te((y * Y + I * P) / C - 0.5) > 0.3 || s * h + a * g + u * p < jc) && (e(n, i, o, s, a, u, k, O, F, x /= D, b /= D, w, m, d), d.point(k, O), e(k, O, F, x, b, w, l, c, f, h, g, p, m, d));
14988
14990
  }
14989
14991
  }
14990
14992
  return function(n) {
@@ -15007,7 +15009,7 @@ function Kc(r, t) {
15007
15009
  }
15008
15010
  function C(T, F) {
15009
15011
  var j = Oi([T, F]), k = r(T, F);
15010
- e(f, h, c, g, p, m, f = k[0], h = k[1], c = T, g = j[0], p = j[1], m = j[2], Ga, n), n.point(f, h);
15012
+ e(f, h, c, g, p, m, f = k[0], h = k[1], c = T, g = j[0], p = j[1], m = j[2], ka, n), n.point(f, h);
15011
15013
  }
15012
15014
  function x() {
15013
15015
  d.point = y, n.lineEnd();
@@ -15019,23 +15021,23 @@ function Kc(r, t) {
15019
15021
  C(i = T, F), o = f, s = h, a = g, u = p, l = m, d.point = C;
15020
15022
  }
15021
15023
  function D() {
15022
- e(f, h, c, g, p, m, o, s, i, a, u, l, Ga, n), d.lineEnd = x, x();
15024
+ e(f, h, c, g, p, m, o, s, i, a, u, l, ka, n), d.lineEnd = x, x();
15023
15025
  }
15024
15026
  return d;
15025
15027
  };
15026
15028
  }
15027
- var Qc = Fu({
15029
+ var Jc = Bu({
15028
15030
  point: function(r, t) {
15029
15031
  this.stream.point(r * tn, t * tn);
15030
15032
  }
15031
15033
  });
15032
- function Jc(r) {
15033
- return Zc(function() {
15034
+ function Zc(r) {
15035
+ return $c(function() {
15034
15036
  return r;
15035
15037
  })();
15036
15038
  }
15037
- function Zc(r) {
15038
- var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ba, d = null, y, I, C, x = Aa, b = 0.5, w = ka(k, b), D, T;
15039
+ function $c(r) {
15040
+ var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ga, d = null, y, I, C, x = Fa, b = 0.5, w = za(k, b), D, T;
15039
15041
  function F(P) {
15040
15042
  return P = g(P[0] * tn, P[1] * tn), [P[0] * e + o, s - P[1] * e];
15041
15043
  }
@@ -15046,11 +15048,11 @@ function Zc(r) {
15046
15048
  return P = t(P, X), [P[0] * e + o, s - P[1] * e];
15047
15049
  }
15048
15050
  F.stream = function(P) {
15049
- return D && T === P ? D : D = Qc(m(h, w(x(T = P))));
15051
+ return D && T === P ? D : D = Jc(m(h, w(x(T = P))));
15050
15052
  }, F.clipAngle = function(P) {
15051
- return arguments.length ? (m = +P ? Yc(p = P * tn, 6 * tn) : (p = null, Ba), Y()) : p * vr;
15053
+ return arguments.length ? (m = +P ? Hc(p = P * tn, 6 * tn) : (p = null, Ga), Y()) : p * vr;
15052
15054
  }, F.clipExtent = function(P) {
15053
- return arguments.length ? (x = P == null ? (d = y = I = C = null, Aa) : Bc(d = +P[0][0], y = +P[0][1], I = +P[1][0], C = +P[1][1]), Y()) : d == null ? null : [[d, y], [I, C]];
15055
+ return arguments.length ? (x = P == null ? (d = y = I = C = null, Fa) : Gc(d = +P[0][0], y = +P[0][1], I = +P[1][0], C = +P[1][1]), Y()) : d == null ? null : [[d, y], [I, C]];
15054
15056
  }, F.scale = function(P) {
15055
15057
  return arguments.length ? (e = +P, O()) : e;
15056
15058
  }, F.translate = function(P) {
@@ -15060,14 +15062,14 @@ function Zc(r) {
15060
15062
  }, F.rotate = function(P) {
15061
15063
  return arguments.length ? (l = P[0] % 360 * tn, c = P[1] % 360 * tn, f = P.length > 2 ? P[2] % 360 * tn : 0, O()) : [l * vr, c * vr, f * vr];
15062
15064
  }, F.precision = function(P) {
15063
- return arguments.length ? (w = ka(k, b = P * P), Y()) : zi(b);
15065
+ return arguments.length ? (w = za(k, b = P * P), Y()) : zi(b);
15064
15066
  }, F.fitExtent = function(P, X) {
15065
- return Bu(F, P, X);
15067
+ return Gu(F, P, X);
15066
15068
  }, F.fitSize = function(P, X) {
15067
- return Hc(F, P, X);
15069
+ return Wc(F, P, X);
15068
15070
  };
15069
15071
  function O() {
15070
- g = Ru(h = Dc(l, c, f), t);
15072
+ g = Ou(h = Tc(l, c, f), t);
15071
15073
  var P = t(a, u);
15072
15074
  return o = n - P[0] * e, s = i + P[1] * e, Y();
15073
15075
  }
@@ -15078,7 +15080,7 @@ function Zc(r) {
15078
15080
  return t = r.apply(this, arguments), F.invert = t.invert && j, O();
15079
15081
  };
15080
15082
  }
15081
- function Gu(r) {
15083
+ function ku(r) {
15082
15084
  return function(t, e) {
15083
15085
  var n = Lt(t), i = Lt(e), o = r(n * i);
15084
15086
  return [
@@ -15087,7 +15089,7 @@ function Gu(r) {
15087
15089
  ];
15088
15090
  };
15089
15091
  }
15090
- function ku(r) {
15092
+ function zu(r) {
15091
15093
  return function(t, e) {
15092
15094
  var n = zi(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
15093
15095
  return [
@@ -15096,26 +15098,26 @@ function ku(r) {
15096
15098
  ];
15097
15099
  };
15098
15100
  }
15099
- var $c = Gu(function(r) {
15101
+ var tf = ku(function(r) {
15100
15102
  return zi(2 / (1 + r));
15101
15103
  });
15102
- $c.invert = ku(function(r) {
15104
+ tf.invert = zu(function(r) {
15103
15105
  return 2 * ti(r / 2);
15104
15106
  });
15105
- var zu = Gu(function(r) {
15106
- return (r = Pu(r)) && r / bt(r);
15107
+ var Vu = ku(function(r) {
15108
+ return (r = Ru(r)) && r / bt(r);
15107
15109
  });
15108
- zu.invert = ku(function(r) {
15110
+ Vu.invert = zu(function(r) {
15109
15111
  return r;
15110
15112
  });
15111
- function tf() {
15112
- return Jc(zu).scale(79.4188).clipAngle(180 - 1e-3);
15113
+ function ef() {
15114
+ return Zc(Vu).scale(79.4188).clipAngle(180 - 1e-3);
15113
15115
  }
15114
- function za(r, t) {
15116
+ function Va(r, t) {
15115
15117
  return [r, t];
15116
15118
  }
15117
- za.invert = za;
15118
- function ef(r, t, e) {
15119
+ Va.invert = Va;
15120
+ function nf(r, t, e) {
15119
15121
  e = e || {};
15120
15122
  var n = e.units || "kilometers", i = e.steps || 8;
15121
15123
  if (!r)
@@ -15131,17 +15133,17 @@ function ef(r, t, e) {
15131
15133
  var o = [];
15132
15134
  switch (r.type) {
15133
15135
  case "GeometryCollection":
15134
- return eu(r, function(s) {
15136
+ return nu(r, function(s) {
15135
15137
  var a = To(s, t, n, i);
15136
15138
  a && o.push(a);
15137
- }), Ss(o);
15139
+ }), ws(o);
15138
15140
  case "FeatureCollection":
15139
- return Ea(r, function(s) {
15141
+ return Ia(r, function(s) {
15140
15142
  var a = To(s, t, n, i);
15141
- a && Ea(a, function(u) {
15143
+ a && Ia(a, function(u) {
15142
15144
  u && o.push(u);
15143
15145
  });
15144
- }), Ss(o);
15146
+ }), ws(o);
15145
15147
  }
15146
15148
  return To(r, t, n, i);
15147
15149
  }
@@ -15149,47 +15151,47 @@ function To(r, t, e, n) {
15149
15151
  var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
15150
15152
  if (o.type === "GeometryCollection") {
15151
15153
  var s = [];
15152
- return eu(r, function(m) {
15154
+ return nu(r, function(m) {
15153
15155
  var d = To(m, t, e, n);
15154
15156
  d && s.push(d);
15155
- }), Ss(s);
15157
+ }), ws(s);
15156
15158
  }
15157
- var a = nf(o), u = {
15159
+ var a = rf(o), u = {
15158
15160
  type: o.type,
15159
- coordinates: Uu(o.coordinates, a)
15160
- }, l = new Vs(), c = l.read(u), f = uc(lc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new fu();
15161
- if (h = g.write(h), !Vu(h.coordinates)) {
15161
+ coordinates: qu(o.coordinates, a)
15162
+ }, l = new Us(), c = l.read(u), f = lc(cc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new hu();
15163
+ if (h = g.write(h), !Uu(h.coordinates)) {
15162
15164
  var p = {
15163
15165
  type: h.type,
15164
- coordinates: qu(h.coordinates, a)
15166
+ coordinates: Xu(h.coordinates, a)
15165
15167
  };
15166
15168
  return Wo(p, i);
15167
15169
  }
15168
15170
  }
15169
- function Vu(r) {
15170
- return Array.isArray(r[0]) ? Vu(r[0]) : isNaN(r[0]);
15171
+ function Uu(r) {
15172
+ return Array.isArray(r[0]) ? Uu(r[0]) : isNaN(r[0]);
15171
15173
  }
15172
- function Uu(r, t) {
15174
+ function qu(r, t) {
15173
15175
  return typeof r[0] != "object" ? t(r) : r.map(function(e) {
15174
- return Uu(e, t);
15176
+ return qu(e, t);
15175
15177
  });
15176
15178
  }
15177
- function qu(r, t) {
15179
+ function Xu(r, t) {
15178
15180
  return typeof r[0] != "object" ? t.invert(r) : r.map(function(e) {
15179
- return qu(e, t);
15181
+ return Xu(e, t);
15180
15182
  });
15181
15183
  }
15182
- function nf(r) {
15183
- var t = hc(r).geometry.coordinates, e = [-t[0], -t[1]];
15184
- return tf().rotate(e).scale(ye);
15184
+ function rf(r) {
15185
+ var t = gc(r).geometry.coordinates, e = [-t[0], -t[1]];
15186
+ return ef().rotate(e).scale(ye);
15185
15187
  }
15186
- function Va(r) {
15188
+ function Ua(r) {
15187
15189
  let t;
15188
15190
  for (const e of r)
15189
15191
  t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
15190
15192
  }
15191
- function Ua(r, t) {
15192
- const e = fc(
15193
+ function qa(r, t) {
15194
+ const e = hc(
15193
15195
  {
15194
15196
  type: "Polygon",
15195
15197
  coordinates: [
@@ -15207,20 +15209,20 @@ function Ua(r, t) {
15207
15209
  if (!e)
15208
15210
  return;
15209
15211
  e.properties = { isMask: "y" };
15210
- const n = ef(r, 0);
15212
+ const n = nf(r, 0);
15211
15213
  if (n.geometry.type === "Polygon")
15212
15214
  for (const i of n.geometry.coordinates)
15213
- Va(i);
15215
+ Ua(i);
15214
15216
  else
15215
15217
  for (const i of n.geometry.coordinates)
15216
15218
  for (const o of i)
15217
- Va(o);
15219
+ Ua(o);
15218
15220
  t({
15219
15221
  type: "FeatureCollection",
15220
15222
  features: [n, e]
15221
15223
  });
15222
15224
  }
15223
- function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
15225
+ function of(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
15224
15226
  var l, c, f;
15225
15227
  const a = (l = s == null ? void 0 : s.geometry) == null ? void 0 : l.type, u = (c = s == null ? void 0 : s.properties) != null && c.isMask ? 0 : a === "LineString" || a === "MultiLineString" ? 3 : 2;
15226
15228
  return {
@@ -15248,7 +15250,7 @@ function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
15248
15250
  };
15249
15251
  function p(d, y = !1) {
15250
15252
  const I = document.createElement("div");
15251
- return new ja({ props: { displayIn: "leaflet" }, target: I }), new tr.Marker(d, {
15253
+ return new Ka({ props: { displayIn: "leaflet" }, target: I }), new tr.Marker(d, {
15252
15254
  interactive: y,
15253
15255
  icon: new tr.DivIcon({
15254
15256
  html: I,
@@ -15302,8 +15304,8 @@ function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
15302
15304
  if (b.length > 0) {
15303
15305
  let w = b.pop();
15304
15306
  for (const D of b)
15305
- w = cc(w, D);
15306
- Ua({ ...y, geometry: w }, I), C = !0;
15307
+ w = fc(w, D);
15308
+ qa({ ...y, geometry: w }, I), C = !0;
15307
15309
  } else {
15308
15310
  const w = y.geometry.geometries.filter(
15309
15311
  (D) => D.type === "LineString" || D.type === "MultiLineString"
@@ -15316,7 +15318,7 @@ function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
15316
15318
  }
15317
15319
  if (!C) {
15318
15320
  if (y.geometry.type === "Polygon" || y.geometry.type === "MultiPolygon")
15319
- Ua(y, I);
15321
+ qa(y, I);
15320
15322
  else if (y.geometry.type === "LineString" || y.geometry.type === "MultiLineString") {
15321
15323
  I(y);
15322
15324
  return;
@@ -15355,11 +15357,11 @@ function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
15355
15357
  };
15356
15358
  }
15357
15359
  var En, zr;
15358
- class of extends tr.Control {
15360
+ class sf extends tr.Control {
15359
15361
  constructor(e) {
15360
15362
  super();
15361
- cs(this, En, void 0);
15362
- cs(this, zr, void 0);
15363
+ fs(this, En, void 0);
15364
+ fs(this, zr, void 0);
15363
15365
  Co(this, zr, e);
15364
15366
  }
15365
15367
  onAdd(e) {
@@ -15371,7 +15373,7 @@ class of extends tr.Control {
15371
15373
  flyTo: s,
15372
15374
  fullGeometryStyle: a,
15373
15375
  ...u
15374
- } = Bn(this, zr), l = typeof s == "boolean" ? {} : s, c = rf(
15376
+ } = Bn(this, zr), l = typeof s == "boolean" ? {} : s, c = of(
15375
15377
  e,
15376
15378
  i,
15377
15379
  o,
@@ -15379,7 +15381,7 @@ class of extends tr.Control {
15379
15381
  l,
15380
15382
  a
15381
15383
  );
15382
- Co(this, En, new Gl({
15384
+ Co(this, En, new kl({
15383
15385
  target: n,
15384
15386
  props: {
15385
15387
  mapController: c,
@@ -15437,11 +15439,11 @@ class of extends tr.Control {
15437
15439
  }
15438
15440
  }
15439
15441
  En = new WeakMap(), zr = new WeakMap();
15440
- function sf(...r) {
15441
- return new of(...r);
15442
+ function af(...r) {
15443
+ return new sf(...r);
15442
15444
  }
15443
- window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = sf);
15445
+ window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = af);
15444
15446
  export {
15445
- of as GeocodingControl,
15446
- rf as createLeafletMapController
15447
+ sf as GeocodingControl,
15448
+ of as createLeafletMapController
15447
15449
  };