@maptiler/geocoding-control 0.0.91-git.9f388b → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/leaflet.js CHANGED
@@ -10,7 +10,7 @@ var zn = (r, t, e) => (sa(r, t, "read from private field"), e ? e.call(r) : t.ge
10
10
  import * as or from "leaflet";
11
11
  function It() {
12
12
  }
13
- function vl(r, t) {
13
+ function yl(r, t) {
14
14
  for (const e in t)
15
15
  r[e] = t[e];
16
16
  return r;
@@ -34,19 +34,19 @@ let bo;
34
34
  function Pr(r, t) {
35
35
  return bo || (bo = document.createElement("a")), bo.href = t, r === bo.href;
36
36
  }
37
- function yl(r) {
37
+ function ml(r) {
38
38
  return Object.keys(r).length === 0;
39
39
  }
40
- function ml(r, t, e, n) {
40
+ function _l(r, t, e, n) {
41
41
  if (r) {
42
42
  const i = tu(r, t, e, n);
43
43
  return r[0](i);
44
44
  }
45
45
  }
46
46
  function tu(r, t, e, n) {
47
- return r[1] && n ? vl(e.ctx.slice(), r[1](n(t))) : e.ctx;
47
+ return r[1] && n ? yl(e.ctx.slice(), r[1](n(t))) : e.ctx;
48
48
  }
49
- function _l(r, t, e, n) {
49
+ function El(r, t, e, n) {
50
50
  if (r[2] && n) {
51
51
  const i = r[2](n(e));
52
52
  if (t.dirty === void 0)
@@ -61,13 +61,13 @@ function _l(r, t, e, n) {
61
61
  }
62
62
  return t.dirty;
63
63
  }
64
- function El(r, t, e, n, i, o) {
64
+ function Il(r, t, e, n, i, o) {
65
65
  if (i) {
66
66
  const s = tu(t, e, n, o);
67
67
  r.p(s, i);
68
68
  }
69
69
  }
70
- function Il(r) {
70
+ function Cl(r) {
71
71
  if (r.ctx.length > 32) {
72
72
  const t = [], e = r.ctx.length / 32;
73
73
  for (let n = 0; n < e; n++)
@@ -100,13 +100,13 @@ function Rr(r) {
100
100
  function nn() {
101
101
  return Rr(" ");
102
102
  }
103
- function Cl() {
103
+ function Nl() {
104
104
  return Rr("");
105
105
  }
106
106
  function Ce(r, t, e, n) {
107
107
  return r.addEventListener(t, e, n), () => r.removeEventListener(t, e, n);
108
108
  }
109
- function Nl(r) {
109
+ function Sl(r) {
110
110
  return function(t) {
111
111
  return t.preventDefault(), r.call(this, t);
112
112
  };
@@ -114,7 +114,7 @@ function Nl(r) {
114
114
  function P(r, t, e) {
115
115
  e == null ? r.removeAttribute(t) : r.getAttribute(t) !== e && r.setAttribute(t, e);
116
116
  }
117
- function Sl(r) {
117
+ function xl(r) {
118
118
  return Array.from(r.childNodes);
119
119
  }
120
120
  function to(r, t) {
@@ -126,7 +126,7 @@ function la(r, t) {
126
126
  function on(r, t, e) {
127
127
  r.classList[e ? "add" : "remove"](t);
128
128
  }
129
- function xl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
129
+ function wl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
130
130
  const i = document.createEvent("CustomEvent");
131
131
  return i.initCustomEvent(r, e, n, t), i;
132
132
  }
@@ -139,15 +139,15 @@ function eu() {
139
139
  throw new Error("Function called outside component initialization");
140
140
  return eo;
141
141
  }
142
- function wl(r) {
142
+ function Ll(r) {
143
143
  eu().$$.on_destroy.push(r);
144
144
  }
145
- function Ll() {
145
+ function bl() {
146
146
  const r = eu();
147
147
  return (t, e, { cancelable: n = !1 } = {}) => {
148
148
  const i = r.$$.callbacks[t];
149
149
  if (i) {
150
- const o = xl(t, e, { cancelable: n });
150
+ const o = wl(t, e, { cancelable: n });
151
151
  return i.slice().forEach((s) => {
152
152
  s.call(r, o);
153
153
  }), !o.defaultPrevented;
@@ -161,10 +161,10 @@ function ca(r, t) {
161
161
  }
162
162
  const _i = [], Ns = [];
163
163
  let Ii = [];
164
- const fa = [], bl = /* @__PURE__ */ Promise.resolve();
164
+ const fa = [], Pl = /* @__PURE__ */ Promise.resolve();
165
165
  let Ss = !1;
166
- function Pl() {
167
- Ss || (Ss = !0, bl.then(nu));
166
+ function Rl() {
167
+ Ss || (Ss = !0, Pl.then(nu));
168
168
  }
169
169
  function xs(r) {
170
170
  Ii.push(r);
@@ -179,7 +179,7 @@ function nu() {
179
179
  try {
180
180
  for (; mi < _i.length; ) {
181
181
  const t = _i[mi];
182
- mi++, Ji(t), Rl(t.$$);
182
+ mi++, Ji(t), Ol(t.$$);
183
183
  }
184
184
  } catch (t) {
185
185
  throw _i.length = 0, mi = 0, t;
@@ -196,14 +196,14 @@ function nu() {
196
196
  fa.pop()();
197
197
  Ss = !1, ms.clear(), Ji(r);
198
198
  }
199
- function Rl(r) {
199
+ function Ol(r) {
200
200
  if (r.fragment !== null) {
201
201
  r.update(), Er(r.before_update);
202
202
  const t = r.dirty;
203
203
  r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(xs);
204
204
  }
205
205
  }
206
- function Ol(r) {
206
+ function Dl(r) {
207
207
  const t = [], e = [];
208
208
  Ii.forEach((n) => r.indexOf(n) === -1 ? t.push(n) : e.push(n)), e.forEach((n) => n()), Ii = t;
209
209
  }
@@ -233,21 +233,21 @@ function le(r, t, e, n) {
233
233
  } else
234
234
  n && n();
235
235
  }
236
- function Dl(r, t) {
236
+ function Tl(r, t) {
237
237
  le(r, 1, 1, () => {
238
238
  t.delete(r.key);
239
239
  });
240
240
  }
241
- function Tl(r, t, e, n, i, o, s, a, u, l, c, f) {
241
+ function Ml(r, t, e, n, i, o, s, a, u, l, c, f) {
242
242
  let h = r.length, g = o.length, p = h;
243
- const y = {};
243
+ const m = {};
244
244
  for (; p--; )
245
- y[r[p].key] = p;
246
- const d = [], m = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = [];
245
+ m[r[p].key] = p;
246
+ const d = [], v = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = [];
247
247
  for (p = g; p--; ) {
248
248
  const D = f(i, o, p), A = e(D);
249
249
  let w = s.get(A);
250
- w ? n && C.push(() => w.p(D, t)) : (w = l(A, D), w.c()), m.set(A, d[p] = w), A in y && E.set(A, Math.abs(p - y[A]));
250
+ w ? n && C.push(() => w.p(D, t)) : (w = l(A, D), w.c()), v.set(A, d[p] = w), A in m && E.set(A, Math.abs(p - m[A]));
251
251
  }
252
252
  const L = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
253
253
  function x(D) {
@@ -255,11 +255,11 @@ function Tl(r, t, e, n, i, o, s, a, u, l, c, f) {
255
255
  }
256
256
  for (; h && g; ) {
257
257
  const D = d[g - 1], A = r[h - 1], w = D.key, F = A.key;
258
- D === A ? (c = D.first, h--, g--) : m.has(F) ? !s.has(w) || L.has(w) ? x(D) : N.has(F) ? h-- : E.get(w) > E.get(F) ? (N.add(w), x(D)) : (L.add(F), h--) : (u(A, s), h--);
258
+ D === A ? (c = D.first, h--, g--) : v.has(F) ? !s.has(w) || L.has(w) ? x(D) : N.has(F) ? h-- : E.get(w) > E.get(F) ? (N.add(w), x(D)) : (L.add(F), h--) : (u(A, s), h--);
259
259
  }
260
260
  for (; h--; ) {
261
261
  const D = r[h];
262
- m.has(D.key) || u(D, s);
262
+ v.has(D.key) || u(D, s);
263
263
  }
264
264
  for (; g; )
265
265
  x(d[g - 1]);
@@ -277,10 +277,10 @@ function lr(r, t, e, n) {
277
277
  }
278
278
  function cr(r, t) {
279
279
  const e = r.$$;
280
- e.fragment !== null && (Ol(e.after_update), Er(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
280
+ e.fragment !== null && (Dl(e.after_update), Er(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
281
281
  }
282
- function Ml(r, t) {
283
- r.$$.dirty[0] === -1 && (_i.push(r), Pl(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
282
+ function Al(r, t) {
283
+ r.$$.dirty[0] === -1 && (_i.push(r), Rl(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
284
284
  }
285
285
  function qr(r, t, e, n, i, o, s, a = [-1]) {
286
286
  const u = eo;
@@ -310,10 +310,10 @@ function qr(r, t, e, n, i, o, s, a = [-1]) {
310
310
  let c = !1;
311
311
  if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
312
312
  const p = g.length ? g[0] : h;
313
- return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Ml(r, f)), h;
313
+ return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && Al(r, f)), h;
314
314
  }) : [], l.update(), c = !0, Er(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
315
315
  if (t.hydrate) {
316
- const f = Sl(t.target);
316
+ const f = xl(t.target);
317
317
  l.fragment && l.fragment.l(f), f.forEach(Dt);
318
318
  } else
319
319
  l.fragment && l.fragment.c();
@@ -335,10 +335,10 @@ class Xr {
335
335
  };
336
336
  }
337
337
  $set(t) {
338
- this.$$set && !yl(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
338
+ this.$$set && !ml(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
339
339
  }
340
340
  }
341
- function Al(r) {
341
+ function Fl(r) {
342
342
  let t, e;
343
343
  return {
344
344
  c() {
@@ -357,10 +357,10 @@ function Al(r) {
357
357
  }
358
358
  class ru extends Xr {
359
359
  constructor(t) {
360
- super(), qr(this, t, null, Al, Ur, {});
360
+ super(), qr(this, t, null, Fl, Ur, {});
361
361
  }
362
362
  }
363
- function Fl(r) {
363
+ function kl(r) {
364
364
  let t, e;
365
365
  return {
366
366
  c() {
@@ -379,10 +379,10 @@ function Fl(r) {
379
379
  }
380
380
  class iu extends Xr {
381
381
  constructor(t) {
382
- super(), qr(this, t, null, Fl, Ur, {});
382
+ super(), qr(this, t, null, kl, Ur, {});
383
383
  }
384
384
  }
385
- function kl(r) {
385
+ function Bl(r) {
386
386
  let t, e;
387
387
  return {
388
388
  c() {
@@ -390,7 +390,7 @@ function kl(r) {
390
390
  t,
391
391
  "alt",
392
392
  /*placeType*/
393
- r[4]
393
+ r[5]
394
394
  ), P(t, "class", "svelte-ltkwvy");
395
395
  },
396
396
  m(n, i) {
@@ -398,11 +398,11 @@ function kl(r) {
398
398
  },
399
399
  p(n, i) {
400
400
  i & /*placeType*/
401
- 16 && P(
401
+ 32 && P(
402
402
  t,
403
403
  "alt",
404
404
  /*placeType*/
405
- n[4]
405
+ n[5]
406
406
  );
407
407
  },
408
408
  d(n) {
@@ -410,7 +410,7 @@ function kl(r) {
410
410
  }
411
411
  };
412
412
  }
413
- function Bl(r) {
413
+ function Gl(r) {
414
414
  let t, e;
415
415
  return {
416
416
  c() {
@@ -418,7 +418,7 @@ function Bl(r) {
418
418
  t,
419
419
  "alt",
420
420
  /*placeType*/
421
- r[4]
421
+ r[5]
422
422
  ), P(t, "class", "svelte-ltkwvy");
423
423
  },
424
424
  m(n, i) {
@@ -426,11 +426,11 @@ function Bl(r) {
426
426
  },
427
427
  p(n, i) {
428
428
  i & /*placeType*/
429
- 16 && P(
429
+ 32 && P(
430
430
  t,
431
431
  "alt",
432
432
  /*placeType*/
433
- n[4]
433
+ n[5]
434
434
  );
435
435
  },
436
436
  d(n) {
@@ -438,7 +438,7 @@ function Bl(r) {
438
438
  }
439
439
  };
440
440
  }
441
- function Gl(r) {
441
+ function zl(r) {
442
442
  let t, e;
443
443
  return {
444
444
  c() {
@@ -446,7 +446,7 @@ function Gl(r) {
446
446
  t,
447
447
  "alt",
448
448
  /*placeType*/
449
- r[4]
449
+ r[5]
450
450
  ), P(t, "class", "svelte-ltkwvy");
451
451
  },
452
452
  m(n, i) {
@@ -454,11 +454,11 @@ function Gl(r) {
454
454
  },
455
455
  p(n, i) {
456
456
  i & /*placeType*/
457
- 16 && P(
457
+ 32 && P(
458
458
  t,
459
459
  "alt",
460
460
  /*placeType*/
461
- n[4]
461
+ n[5]
462
462
  );
463
463
  },
464
464
  d(n) {
@@ -466,7 +466,7 @@ function Gl(r) {
466
466
  }
467
467
  };
468
468
  }
469
- function zl(r) {
469
+ function Vl(r) {
470
470
  let t, e;
471
471
  return {
472
472
  c() {
@@ -474,7 +474,7 @@ function zl(r) {
474
474
  t,
475
475
  "alt",
476
476
  /*placeType*/
477
- r[4]
477
+ r[5]
478
478
  ), P(t, "class", "svelte-ltkwvy");
479
479
  },
480
480
  m(n, i) {
@@ -482,11 +482,11 @@ function zl(r) {
482
482
  },
483
483
  p(n, i) {
484
484
  i & /*placeType*/
485
- 16 && P(
485
+ 32 && P(
486
486
  t,
487
487
  "alt",
488
488
  /*placeType*/
489
- n[4]
489
+ n[5]
490
490
  );
491
491
  },
492
492
  d(n) {
@@ -494,7 +494,7 @@ function zl(r) {
494
494
  }
495
495
  };
496
496
  }
497
- function Vl(r) {
497
+ function Ul(r) {
498
498
  let t, e;
499
499
  return {
500
500
  c() {
@@ -502,7 +502,7 @@ function Vl(r) {
502
502
  t,
503
503
  "alt",
504
504
  /*placeType*/
505
- r[4]
505
+ r[5]
506
506
  ), P(t, "class", "svelte-ltkwvy");
507
507
  },
508
508
  m(n, i) {
@@ -510,11 +510,11 @@ function Vl(r) {
510
510
  },
511
511
  p(n, i) {
512
512
  i & /*placeType*/
513
- 16 && P(
513
+ 32 && P(
514
514
  t,
515
515
  "alt",
516
516
  /*placeType*/
517
- n[4]
517
+ n[5]
518
518
  );
519
519
  },
520
520
  d(n) {
@@ -522,7 +522,7 @@ function Vl(r) {
522
522
  }
523
523
  };
524
524
  }
525
- function Ul(r) {
525
+ function ql(r) {
526
526
  let t, e;
527
527
  return {
528
528
  c() {
@@ -530,7 +530,7 @@ function Ul(r) {
530
530
  t,
531
531
  "alt",
532
532
  /*placeType*/
533
- r[4]
533
+ r[5]
534
534
  ), P(t, "class", "svelte-ltkwvy");
535
535
  },
536
536
  m(n, i) {
@@ -538,11 +538,11 @@ function Ul(r) {
538
538
  },
539
539
  p(n, i) {
540
540
  i & /*placeType*/
541
- 16 && P(
541
+ 32 && P(
542
542
  t,
543
543
  "alt",
544
544
  /*placeType*/
545
- n[4]
545
+ n[5]
546
546
  );
547
547
  },
548
548
  d(n) {
@@ -550,12 +550,12 @@ function Ul(r) {
550
550
  }
551
551
  };
552
552
  }
553
- function ql(r) {
553
+ function Xl(r) {
554
554
  let t, e, n, i;
555
555
  return {
556
556
  c() {
557
557
  t = ht("img"), Pr(t.src, e = /*imageUrl*/
558
- r[5]) || P(t, "src", e), P(
558
+ r[4]) || P(t, "src", e), P(
559
559
  t,
560
560
  "alt",
561
561
  /*category*/
@@ -567,13 +567,13 @@ function ql(r) {
567
567
  t,
568
568
  "error",
569
569
  /*error_handler*/
570
- r[10]
570
+ r[11]
571
571
  ), n = !0);
572
572
  },
573
573
  p(o, s) {
574
574
  s & /*imageUrl*/
575
- 32 && !Pr(t.src, e = /*imageUrl*/
576
- o[5]) && P(t, "src", e), s & /*category*/
575
+ 16 && !Pr(t.src, e = /*imageUrl*/
576
+ o[4]) && P(t, "src", e), s & /*category*/
577
577
  8 && P(
578
578
  t,
579
579
  "alt",
@@ -592,7 +592,7 @@ function ha(r) {
592
592
  c() {
593
593
  t = ht("span"), e = Rr(
594
594
  /*placeType*/
595
- r[4]
595
+ r[5]
596
596
  ), P(t, "class", "secondary svelte-ltkwvy");
597
597
  },
598
598
  m(n, i) {
@@ -600,10 +600,10 @@ function ha(r) {
600
600
  },
601
601
  p(n, i) {
602
602
  i & /*placeType*/
603
- 16 && to(
603
+ 32 && to(
604
604
  e,
605
605
  /*placeType*/
606
- n[4]
606
+ n[5]
607
607
  );
608
608
  },
609
609
  d(n) {
@@ -611,7 +611,7 @@ function ha(r) {
611
611
  }
612
612
  };
613
613
  }
614
- function Xl(r) {
614
+ function Yl(r) {
615
615
  var D, A;
616
616
  let t, e, n, i, o, s, a, u, l = (
617
617
  /*feature*/
@@ -626,33 +626,33 @@ function Xl(r) {
626
626
  r[0].id.startsWith("address.") && !/*feature*/
627
627
  r[0].id.startsWith("postal_code.") && (!/*feature*/
628
628
  r[0].id.startsWith("poi.") || !/*imageUrl*/
629
- r[5])
630
- ), g, p, y = (
629
+ r[4])
630
+ ), g, p, m = (
631
631
  /*feature*/
632
632
  r[0].place_name.replace(/[^,]*,?\s*/, "") + ""
633
- ), d, m, E;
633
+ ), d, v, E;
634
634
  function C(w, F) {
635
635
  var X, R;
636
636
  return F & /*feature*/
637
637
  1 && (e = null), F & /*feature*/
638
638
  1 && (n = null), F & /*feature*/
639
639
  1 && (i = null), /*imageUrl*/
640
- w[5] ? ql : (
640
+ w[4] ? Xl : (
641
641
  /*feature*/
642
- w[0].address ? Ul : (
642
+ w[0].address ? ql : (
643
643
  /*feature*/
644
644
  ((X = w[0].properties) == null ? void 0 : X.kind) === "road" || /*feature*/
645
- ((R = w[0].properties) == null ? void 0 : R.kind) === "road_relation" ? Vl : (e == null && (e = !!/*feature*/
646
- w[0].id.startsWith("address.")), e ? zl : (n == null && (n = !!/*feature*/
647
- w[0].id.startsWith("postal_code.")), n ? Gl : (i == null && (i = !!/*feature*/
648
- w[0].id.startsWith("poi.")), i ? Bl : kl)))
645
+ ((R = w[0].properties) == null ? void 0 : R.kind) === "road_relation" ? Ul : (e == null && (e = !!/*feature*/
646
+ w[0].id.startsWith("address.")), e ? Vl : (n == null && (n = !!/*feature*/
647
+ w[0].id.startsWith("postal_code.")), n ? zl : (i == null && (i = !!/*feature*/
648
+ w[0].id.startsWith("poi.")), i ? Gl : Bl)))
649
649
  )
650
650
  );
651
651
  }
652
652
  let L = C(r, -1), N = L(r), x = h && ha(r);
653
653
  return {
654
654
  c() {
655
- t = ht("li"), N.c(), o = nn(), s = ht("span"), a = ht("span"), u = ht("span"), c = Rr(l), f = nn(), x && x.c(), g = nn(), p = ht("span"), d = Rr(y), P(u, "class", "primary svelte-ltkwvy"), P(a, "class", "svelte-ltkwvy"), P(p, "class", "line2 svelte-ltkwvy"), P(s, "class", "texts svelte-ltkwvy"), P(t, "tabindex", "0"), P(
655
+ t = ht("li"), N.c(), o = nn(), s = ht("span"), a = ht("span"), u = ht("span"), c = Rr(l), f = nn(), x && x.c(), g = nn(), p = ht("span"), d = Rr(m), P(u, "class", "primary svelte-ltkwvy"), P(a, "class", "svelte-ltkwvy"), P(p, "class", "line2 svelte-ltkwvy"), P(s, "class", "texts svelte-ltkwvy"), P(t, "tabindex", "0"), P(
656
656
  t,
657
657
  "data-selected",
658
658
  /*selected*/
@@ -665,27 +665,27 @@ function Xl(r) {
665
665
  );
666
666
  },
667
667
  m(w, F) {
668
- Tt(w, t, F), N.m(t, null), nt(t, o), nt(t, s), nt(s, a), nt(a, u), nt(u, c), nt(a, f), x && x.m(a, null), nt(s, g), nt(s, p), nt(p, d), m || (E = [
668
+ Tt(w, t, F), N.m(t, null), nt(t, o), nt(t, s), nt(s, a), nt(a, u), nt(u, c), nt(a, f), x && x.m(a, null), nt(s, g), nt(s, p), nt(p, d), v || (E = [
669
669
  Ce(
670
670
  t,
671
671
  "mouseenter",
672
672
  /*mouseenter_handler*/
673
- r[8]
673
+ r[9]
674
674
  ),
675
675
  Ce(
676
676
  t,
677
677
  "focus",
678
678
  /*focus_handler*/
679
- r[9]
679
+ r[10]
680
680
  )
681
- ], m = !0);
681
+ ], v = !0);
682
682
  },
683
683
  p(w, [F]) {
684
684
  var X, R;
685
685
  L === (L = C(w, F)) && N ? N.p(w, F) : (N.d(1), N = L(w), N && (N.c(), N.m(t, o))), F & /*feature*/
686
686
  1 && l !== (l = /*feature*/
687
687
  w[0].place_name.replace(/,.*/, "") + "") && to(c, l), F & /*showPlaceType, feature, imageUrl*/
688
- 37 && (h = /*showPlaceType*/
688
+ 21 && (h = /*showPlaceType*/
689
689
  w[2] === "always" || /*showPlaceType*/
690
690
  w[2] && !/*feature*/
691
691
  w[0].address && /*feature*/
@@ -694,9 +694,9 @@ function Xl(r) {
694
694
  w[0].id.startsWith("address.") && !/*feature*/
695
695
  w[0].id.startsWith("postal_code.") && (!/*feature*/
696
696
  w[0].id.startsWith("poi.") || !/*imageUrl*/
697
- w[5])), h ? x ? x.p(w, F) : (x = ha(w), x.c(), x.m(a, null)) : x && (x.d(1), x = null), F & /*feature*/
698
- 1 && y !== (y = /*feature*/
699
- w[0].place_name.replace(/[^,]*,?\s*/, "") + "") && to(d, y), F & /*selected*/
697
+ w[4])), h ? x ? x.p(w, F) : (x = ha(w), x.c(), x.m(a, null)) : x && (x.d(1), x = null), F & /*feature*/
698
+ 1 && m !== (m = /*feature*/
699
+ w[0].place_name.replace(/[^,]*,?\s*/, "") + "") && to(d, m), F & /*selected*/
700
700
  2 && P(
701
701
  t,
702
702
  "data-selected",
@@ -713,56 +713,62 @@ function Xl(r) {
713
713
  i: It,
714
714
  o: It,
715
715
  d(w) {
716
- w && Dt(t), N.d(), x && x.d(), m = !1, Er(E);
716
+ w && Dt(t), N.d(), x && x.d(), v = !1, Er(E);
717
717
  }
718
718
  };
719
719
  }
720
- function Yl(r, t, e) {
721
- var y;
722
- let n, i, o, s, { feature: a } = t, { selected: u = !1 } = t, { showPlaceType: l } = t;
723
- const c = (y = a.properties) == null ? void 0 : y.categories;
724
- function f(d) {
725
- n > -1 ? e(7, n--, n) : d.style.visibility = "hidden";
726
- }
727
- function h(d) {
728
- ca.call(this, r, d);
729
- }
730
- function g(d) {
731
- ca.call(this, r, d);
732
- }
733
- const p = (d) => f(d.currentTarget);
734
- return r.$$set = (d) => {
735
- "feature" in d && e(0, a = d.feature), "selected" in d && e(1, u = d.selected), "showPlaceType" in d && e(2, l = d.showPlaceType);
720
+ function Wl(r, t, e) {
721
+ var d;
722
+ let n, i, { feature: o } = t, { selected: s = !1 } = t, { showPlaceType: a } = t, { missingIconsCache: u } = t;
723
+ const l = (d = o.properties) == null ? void 0 : d.categories;
724
+ let c, f;
725
+ function h(v) {
726
+ f && u.add(f), e(8, n--, n);
727
+ }
728
+ function g(v) {
729
+ ca.call(this, r, v);
730
+ }
731
+ function p(v) {
732
+ ca.call(this, r, v);
733
+ }
734
+ const m = (v) => h(v.currentTarget);
735
+ return r.$$set = (v) => {
736
+ "feature" in v && e(0, o = v.feature), "selected" in v && e(1, s = v.selected), "showPlaceType" in v && e(2, a = v.showPlaceType), "missingIconsCache" in v && e(7, u = v.missingIconsCache);
736
737
  }, r.$$.update = () => {
737
- var d, m, E, C;
738
- r.$$.dirty & /*index*/
739
- 128 && e(3, i = c == null ? void 0 : c[n]), r.$$.dirty & /*category*/
740
- 8 && e(5, o = i ? `/icons/${i.replace(/ /g, "_")}.svg` : void 0), r.$$.dirty & /*feature*/
741
- 1 && e(4, s = a.id.startsWith("poi.") ? (m = (d = a.properties) == null ? void 0 : d.categories) == null ? void 0 : m.join(", ") : ((C = (E = a.properties) == null ? void 0 : E.place_type_name) == null ? void 0 : C[0]) ?? a.place_type[0]);
742
- }, e(7, n = ((c == null ? void 0 : c.length) ?? 0) - 1), [
743
- a,
744
- u,
745
- l,
746
- i,
747
- s,
738
+ var v, E, C, L;
739
+ if (r.$$.dirty & /*index, category, imageUrl, missingIconsCache*/
740
+ 408)
741
+ do
742
+ e(8, n--, n), e(3, c = l == null ? void 0 : l[n]), e(4, f = c ? `/icons/${c.replace(/ /g, "_")}.svg` : void 0);
743
+ while (n > -1 && (!f || u.has(f)));
744
+ r.$$.dirty & /*feature*/
745
+ 1 && e(5, i = o.id.startsWith("poi.") ? (E = (v = o.properties) == null ? void 0 : v.categories) == null ? void 0 : E.join(", ") : ((L = (C = o.properties) == null ? void 0 : C.place_type_name) == null ? void 0 : L[0]) ?? o.place_type[0]);
746
+ }, e(8, n = (l == null ? void 0 : l.length) ?? 0), [
748
747
  o,
748
+ s,
749
+ a,
750
+ c,
749
751
  f,
750
- n,
752
+ i,
751
753
  h,
754
+ u,
755
+ n,
752
756
  g,
753
- p
757
+ p,
758
+ m
754
759
  ];
755
760
  }
756
- class Wl extends Xr {
761
+ class Hl extends Xr {
757
762
  constructor(t) {
758
- super(), qr(this, t, Yl, Xl, Ur, {
763
+ super(), qr(this, t, Wl, Yl, Ur, {
759
764
  feature: 0,
760
765
  selected: 1,
761
- showPlaceType: 2
766
+ showPlaceType: 2,
767
+ missingIconsCache: 7
762
768
  });
763
769
  }
764
770
  }
765
- function Hl(r) {
771
+ function jl(r) {
766
772
  let t;
767
773
  return {
768
774
  c() {
@@ -779,12 +785,12 @@ function Hl(r) {
779
785
  }
780
786
  };
781
787
  }
782
- class jl extends Xr {
788
+ class Kl extends Xr {
783
789
  constructor(t) {
784
- super(), qr(this, t, null, Hl, Ur, {});
790
+ super(), qr(this, t, null, jl, Ur, {});
785
791
  }
786
792
  }
787
- function Kl(r) {
793
+ function Ql(r) {
788
794
  let t, e;
789
795
  return {
790
796
  c() {
@@ -801,12 +807,12 @@ function Kl(r) {
801
807
  }
802
808
  };
803
809
  }
804
- class Ql extends Xr {
810
+ class Zl extends Xr {
805
811
  constructor(t) {
806
- super(), qr(this, t, null, Kl, Ur, {});
812
+ super(), qr(this, t, null, Ql, Ur, {});
807
813
  }
808
814
  }
809
- function Zl(r) {
815
+ function Jl(r) {
810
816
  let t, e;
811
817
  return {
812
818
  c() {
@@ -823,18 +829,18 @@ function Zl(r) {
823
829
  }
824
830
  };
825
831
  }
826
- class Jl extends Xr {
832
+ class $l extends Xr {
827
833
  constructor(t) {
828
- super(), qr(this, t, null, Zl, Ur, {});
834
+ super(), qr(this, t, null, Jl, Ur, {});
829
835
  }
830
836
  }
831
837
  function ga(r, t, e) {
832
838
  const n = r.slice();
833
- return n[73] = t[e], n[75] = e, n;
839
+ return n[74] = t[e], n[76] = e, n;
834
840
  }
835
841
  function pa(r) {
836
842
  let t, e;
837
- return t = new jl({}), {
843
+ return t = new Kl({}), {
838
844
  c() {
839
845
  Or(t.$$.fragment);
840
846
  },
@@ -854,7 +860,7 @@ function pa(r) {
854
860
  }
855
861
  function da(r) {
856
862
  let t, e, n, i, o;
857
- return e = new Ql({}), {
863
+ return e = new Zl({}), {
858
864
  c() {
859
865
  t = ht("button"), Or(e.$$.fragment), P(t, "type", "button"), P(
860
866
  t,
@@ -873,7 +879,7 @@ function da(r) {
873
879
  t,
874
880
  "click",
875
881
  /*click_handler_2*/
876
- r[59]
882
+ r[60]
877
883
  ), i = !0);
878
884
  },
879
885
  p(s, a) {
@@ -902,16 +908,16 @@ function da(r) {
902
908
  }
903
909
  };
904
910
  }
905
- function $l(r) {
911
+ function tc(r) {
906
912
  let t, e = [], n = /* @__PURE__ */ new Map(), i, o, s, a = (
907
913
  /*listFeatures*/
908
914
  r[12]
909
915
  );
910
916
  const u = (l) => (
911
917
  /*feature*/
912
- l[73].id + /*feature*/
913
- (l[73].address ? "," + /*feature*/
914
- l[73].address : "")
918
+ l[74].id + /*feature*/
919
+ (l[74].address ? "," + /*feature*/
920
+ l[74].address : "")
915
921
  );
916
922
  for (let l = 0; l < a.length; l += 1) {
917
923
  let c = ga(r, a, l), f = u(c);
@@ -933,20 +939,20 @@ function $l(r) {
933
939
  t,
934
940
  "mouseleave",
935
941
  /*mouseleave_handler*/
936
- r[63]
942
+ r[64]
937
943
  ),
938
944
  Ce(
939
945
  t,
940
946
  "blur",
941
947
  /*blur_handler_1*/
942
- r[64]
948
+ r[65]
943
949
  )
944
950
  ], o = !0);
945
951
  },
946
952
  p(l, c) {
947
- c[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
948
- 2110464 && (a = /*listFeatures*/
949
- l[12], Ao(), e = Tl(e, c, u, 1, l, a, n, t, Dl, va, null, ga), Fo());
953
+ c[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, pick*/
954
+ 4469760 && (a = /*listFeatures*/
955
+ l[12], Ao(), e = Ml(e, c, u, 1, l, a, n, t, Tl, va, null, ga), Fo());
950
956
  },
951
957
  i(l) {
952
958
  if (!i) {
@@ -968,7 +974,7 @@ function $l(r) {
968
974
  }
969
975
  };
970
976
  }
971
- function tc(r) {
977
+ function ec(r) {
972
978
  let t, e, n, i, o, s;
973
979
  return e = new iu({}), {
974
980
  c() {
@@ -999,7 +1005,7 @@ function tc(r) {
999
1005
  }
1000
1006
  };
1001
1007
  }
1002
- function ec(r) {
1008
+ function nc(r) {
1003
1009
  let t = "", e;
1004
1010
  return {
1005
1011
  c() {
@@ -1016,7 +1022,7 @@ function ec(r) {
1016
1022
  }
1017
1023
  };
1018
1024
  }
1019
- function nc(r) {
1025
+ function rc(r) {
1020
1026
  let t, e, n, i, o, s, a, u, l, c, f;
1021
1027
  return e = new iu({}), u = new ru({}), {
1022
1028
  c() {
@@ -1030,7 +1036,7 @@ function nc(r) {
1030
1036
  a,
1031
1037
  "click",
1032
1038
  /*click_handler_3*/
1033
- r[60]
1039
+ r[61]
1034
1040
  ), c = !0);
1035
1041
  },
1036
1042
  p(h, g) {
@@ -1057,26 +1063,26 @@ function va(r, t) {
1057
1063
  function o() {
1058
1064
  return (
1059
1065
  /*mouseenter_handler*/
1060
- t[61](
1066
+ t[62](
1061
1067
  /*i*/
1062
- t[75]
1068
+ t[76]
1063
1069
  )
1064
1070
  );
1065
1071
  }
1066
1072
  function s() {
1067
1073
  return (
1068
1074
  /*focus_handler_1*/
1069
- t[62](
1075
+ t[63](
1070
1076
  /*feature*/
1071
- t[73]
1077
+ t[74]
1072
1078
  )
1073
1079
  );
1074
1080
  }
1075
- return n = new Wl({
1081
+ return n = new Hl({
1076
1082
  props: {
1077
1083
  feature: (
1078
1084
  /*feature*/
1079
- t[73]
1085
+ t[74]
1080
1086
  ),
1081
1087
  showPlaceType: (
1082
1088
  /*showPlaceType*/
@@ -1085,14 +1091,18 @@ function va(r, t) {
1085
1091
  selected: (
1086
1092
  /*selectedItemIndex*/
1087
1093
  t[13] === /*i*/
1088
- t[75]
1094
+ t[76]
1095
+ ),
1096
+ missingIconsCache: (
1097
+ /*missingIconsCache*/
1098
+ t[18]
1089
1099
  )
1090
1100
  }
1091
1101
  }), n.$on("mouseenter", o), n.$on("focus", s), {
1092
1102
  key: r,
1093
1103
  first: null,
1094
1104
  c() {
1095
- e = Cl(), Or(n.$$.fragment), this.first = e;
1105
+ e = Nl(), Or(n.$$.fragment), this.first = e;
1096
1106
  },
1097
1107
  m(a, u) {
1098
1108
  Tt(a, e, u), lr(n, a, u), i = !0;
@@ -1102,12 +1112,12 @@ function va(r, t) {
1102
1112
  const l = {};
1103
1113
  u[0] & /*listFeatures*/
1104
1114
  4096 && (l.feature = /*feature*/
1105
- t[73]), u[0] & /*showPlaceType*/
1115
+ t[74]), u[0] & /*showPlaceType*/
1106
1116
  1024 && (l.showPlaceType = /*showPlaceType*/
1107
1117
  t[10]), u[0] & /*selectedItemIndex, listFeatures*/
1108
1118
  12288 && (l.selected = /*selectedItemIndex*/
1109
1119
  t[13] === /*i*/
1110
- t[75]), n.$set(l);
1120
+ t[76]), n.$set(l);
1111
1121
  },
1112
1122
  i(a) {
1113
1123
  i || (Gt(n.$$.fragment, a), i = !0);
@@ -1120,9 +1130,9 @@ function va(r, t) {
1120
1130
  }
1121
1131
  };
1122
1132
  }
1123
- function rc(r) {
1124
- let t, e, n, i, o, s, a, u, l, c, f, h, g, p, y, d, m, E, C, L;
1125
- i = new Jl({}), c = new ru({});
1133
+ function ic(r) {
1134
+ let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, v, E, C, L;
1135
+ i = new $l({}), c = new ru({});
1126
1136
  let N = (
1127
1137
  /*abortController*/
1128
1138
  r[17] && pa()
@@ -1132,14 +1142,14 @@ function rc(r) {
1132
1142
  );
1133
1143
  const D = (
1134
1144
  /*#slots*/
1135
- r[51].default
1136
- ), A = ml(
1145
+ r[52].default
1146
+ ), A = _l(
1137
1147
  D,
1138
1148
  r,
1139
1149
  /*$$scope*/
1140
- r[50],
1150
+ r[51],
1141
1151
  null
1142
- ), w = [nc, ec, tc, $l], F = [];
1152
+ ), w = [rc, nc, ec, tc], F = [];
1143
1153
  function X(R, Y) {
1144
1154
  var T, W;
1145
1155
  return (
@@ -1157,7 +1167,7 @@ function rc(r) {
1157
1167
  )
1158
1168
  );
1159
1169
  }
1160
- return ~(y = X(r)) && (d = F[y] = w[y](r)), {
1170
+ return ~(m = X(r)) && (d = F[m] = w[m](r)), {
1161
1171
  c() {
1162
1172
  t = ht("form"), e = ht("div"), n = ht("button"), Or(i.$$.fragment), o = nn(), s = ht("input"), a = nn(), u = ht("div"), l = ht("button"), Or(c.$$.fragment), f = nn(), N && N.c(), h = nn(), x && x.c(), g = nn(), A && A.c(), p = nn(), d && d.c(), P(n, "class", "search-button svelte-1r7dvt7"), P(n, "type", "button"), P(
1163
1173
  s,
@@ -1179,7 +1189,7 @@ function rc(r) {
1179
1189
  "displayable",
1180
1190
  /*searchValue*/
1181
1191
  r[1] !== ""
1182
- ), P(e, "class", "input-group svelte-1r7dvt7"), P(t, "tabindex", "0"), P(t, "class", m = ua(
1192
+ ), P(e, "class", "input-group svelte-1r7dvt7"), P(t, "tabindex", "0"), P(t, "class", v = ua(
1183
1193
  /*className*/
1184
1194
  r[2]
1185
1195
  ) + " svelte-1r7dvt7"), on(
@@ -1191,56 +1201,56 @@ function rc(r) {
1191
1201
  );
1192
1202
  },
1193
1203
  m(R, Y) {
1194
- Tt(R, t, Y), nt(t, e), nt(e, n), lr(i, n, null), nt(e, o), nt(e, s), r[53](s), la(
1204
+ Tt(R, t, Y), nt(t, e), nt(e, n), lr(i, n, null), nt(e, o), nt(e, s), r[54](s), la(
1195
1205
  s,
1196
1206
  /*searchValue*/
1197
1207
  r[1]
1198
- ), nt(e, a), nt(e, u), nt(u, l), lr(c, l, null), nt(u, f), N && N.m(u, null), nt(e, h), x && x.m(e, null), nt(e, g), A && A.m(e, null), nt(t, p), ~y && F[y].m(t, null), E = !0, C || (L = [
1208
+ ), nt(e, a), nt(e, u), nt(u, l), lr(c, l, null), nt(u, f), N && N.m(u, null), nt(e, h), x && x.m(e, null), nt(e, g), A && A.m(e, null), nt(t, p), ~m && F[m].m(t, null), E = !0, C || (L = [
1199
1209
  Ce(
1200
1210
  n,
1201
1211
  "click",
1202
1212
  /*click_handler*/
1203
- r[52]
1213
+ r[53]
1204
1214
  ),
1205
1215
  Ce(
1206
1216
  s,
1207
1217
  "input",
1208
1218
  /*input_1_input_handler*/
1209
- r[54]
1219
+ r[55]
1210
1220
  ),
1211
1221
  Ce(
1212
1222
  s,
1213
1223
  "focus",
1214
1224
  /*focus_handler*/
1215
- r[55]
1225
+ r[56]
1216
1226
  ),
1217
1227
  Ce(
1218
1228
  s,
1219
1229
  "blur",
1220
1230
  /*blur_handler*/
1221
- r[56]
1231
+ r[57]
1222
1232
  ),
1223
1233
  Ce(
1224
1234
  s,
1225
1235
  "keydown",
1226
1236
  /*handleKeyDown*/
1227
- r[19]
1237
+ r[20]
1228
1238
  ),
1229
1239
  Ce(
1230
1240
  s,
1231
1241
  "input",
1232
1242
  /*input_handler*/
1233
- r[57]
1243
+ r[58]
1234
1244
  ),
1235
1245
  Ce(
1236
1246
  l,
1237
1247
  "click",
1238
1248
  /*click_handler_1*/
1239
- r[58]
1249
+ r[59]
1240
1250
  ),
1241
- Ce(t, "submit", Nl(
1251
+ Ce(t, "submit", Sl(
1242
1252
  /*handleOnSubmit*/
1243
- r[18]
1253
+ r[19]
1244
1254
  ))
1245
1255
  ], C = !0);
1246
1256
  },
@@ -1284,32 +1294,32 @@ function rc(r) {
1284
1294
  32 && Gt(x, 1)) : (x = da(R), x.c(), Gt(x, 1), x.m(e, g)) : x && (Ao(), le(x, 1, 1, () => {
1285
1295
  x = null;
1286
1296
  }), Fo()), A && A.p && (!E || Y[1] & /*$$scope*/
1287
- 524288) && El(
1297
+ 1048576) && Il(
1288
1298
  A,
1289
1299
  D,
1290
1300
  R,
1291
1301
  /*$$scope*/
1292
- R[50],
1293
- E ? _l(
1302
+ R[51],
1303
+ E ? El(
1294
1304
  D,
1295
1305
  /*$$scope*/
1296
- R[50],
1306
+ R[51],
1297
1307
  Y,
1298
1308
  null
1299
- ) : Il(
1309
+ ) : Cl(
1300
1310
  /*$$scope*/
1301
- R[50]
1311
+ R[51]
1302
1312
  ),
1303
1313
  null
1304
1314
  );
1305
- let T = y;
1306
- y = X(R), y === T ? ~y && F[y].p(R, Y) : (d && (Ao(), le(F[T], 1, 1, () => {
1315
+ let T = m;
1316
+ m = X(R), m === T ? ~m && F[m].p(R, Y) : (d && (Ao(), le(F[T], 1, 1, () => {
1307
1317
  F[T] = null;
1308
- }), Fo()), ~y ? (d = F[y], d ? d.p(R, Y) : (d = F[y] = w[y](R), d.c()), Gt(d, 1), d.m(t, null)) : d = null), (!E || Y[0] & /*className*/
1309
- 4 && m !== (m = ua(
1318
+ }), Fo()), ~m ? (d = F[m], d ? d.p(R, Y) : (d = F[m] = w[m](R), d.c()), Gt(d, 1), d.m(t, null)) : d = null), (!E || Y[0] & /*className*/
1319
+ 4 && v !== (v = ua(
1310
1320
  /*className*/
1311
1321
  R[2]
1312
- ) + " svelte-1r7dvt7")) && P(t, "class", m), (!E || Y[0] & /*className, collapsed, searchValue*/
1322
+ ) + " svelte-1r7dvt7")) && P(t, "class", v), (!E || Y[0] & /*className, collapsed, searchValue*/
1313
1323
  22) && on(
1314
1324
  t,
1315
1325
  "can-collapse",
@@ -1325,11 +1335,11 @@ function rc(r) {
1325
1335
  le(i.$$.fragment, R), le(c.$$.fragment, R), le(N), le(x), le(A, R), le(d), E = !1;
1326
1336
  },
1327
1337
  d(R) {
1328
- R && Dt(t), cr(i), r[53](null), cr(c), N && N.d(), x && x.d(), A && A.d(R), ~y && F[y].d(), C = !1, Er(L);
1338
+ R && Dt(t), cr(i), r[54](null), cr(c), N && N.d(), x && x.d(), A && A.d(R), ~m && F[m].d(), C = !1, Er(L);
1329
1339
  }
1330
1340
  };
1331
1341
  }
1332
- function ic(r, t, e) {
1342
+ function oc(r, t, e) {
1333
1343
  const n = t[1], i = t[0], o = n - i;
1334
1344
  return r === n && e ? r : ((r - i) % o + o) % o + i;
1335
1345
  }
@@ -1337,8 +1347,8 @@ function ya(r) {
1337
1347
  let t = [...r];
1338
1348
  return t[2] < t[0] && (t[2] += 360), t;
1339
1349
  }
1340
- function oc(r, t, e) {
1341
- let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: y = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: m = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ge = {} } = t;
1350
+ function sc(r, t, e) {
1351
+ let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: m = "Something went wrong…" } = t, { filter: d = () => !0 } = t, { flyTo: v = !0 } = t, { fuzzyMatch: E = !0 } = t, { language: C = void 0 } = t, { limit: L = void 0 } = t, { mapController: N = void 0 } = t, { minLength: x = 2 } = t, { noResultsMessage: D = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = t, { placeholder: A = "Search" } = t, { proximity: w = void 0 } = t, { reverseActive: F = p === "always" } = t, { reverseButtonTitle: X = "toggle reverse geocoding" } = t, { searchValue: R = "" } = t, { showFullGeometry: Y = !0 } = t, { showPlaceType: T = "ifNeeded" } = t, { showResultsWhileTyping: W = !0 } = t, { trackProximity: ut = !0 } = t, { types: dt = void 0 } = t, { zoom: Ht = 16 } = t, { maxZoom: Jt = 18 } = t, { apiUrl: rr = "https://api.maptiler.com/geocoding" } = t, { fetchParameters: Ge = {} } = t;
1342
1352
  function ir() {
1343
1353
  kn.focus();
1344
1354
  }
@@ -1351,17 +1361,17 @@ function oc(r, t, e) {
1351
1361
  }));
1352
1362
  }
1353
1363
  let ze = !1, ct, _e, ot, ra = "", kn, kt = -1, Bn, xo = [], jr, vi, wo, fs;
1354
- const Ir = Ll();
1355
- wl(() => {
1364
+ const tl = /* @__PURE__ */ new Set(), Ir = bl();
1365
+ Ll(() => {
1356
1366
  N && (N.setEventHandler(void 0), N.indicateReverse(!1), N.setSelectedMarker(-1), N.setMarkers(void 0, void 0));
1357
1367
  });
1358
1368
  function ia(S) {
1359
1369
  if (vi && (clearTimeout(vi), vi = void 0), kt > -1 && ct)
1360
- e(47, ot = ct[kt]), e(1, R = ot.place_name.replace(/,.*/, "")), e(16, Bn = void 0), e(46, _e = void 0), e(13, kt = -1);
1370
+ e(48, ot = ct[kt]), e(1, R = ot.place_name.replace(/,.*/, "")), e(16, Bn = void 0), e(47, _e = void 0), e(13, kt = -1);
1361
1371
  else if (R) {
1362
1372
  const Bt = S || !oa();
1363
1373
  hs(R, { exact: !0 }).then(() => {
1364
- e(46, _e = ct), e(47, ot = void 0), Bt && tl();
1374
+ e(47, _e = ct), e(48, ot = void 0), Bt && el();
1365
1375
  }).catch((Gn) => e(16, Bn = Gn));
1366
1376
  }
1367
1377
  }
@@ -1374,7 +1384,7 @@ function oc(r, t, e) {
1374
1384
  C != null && Ve.set("language", Array.isArray(C) ? C.join(",") : C), dt && Ve.set("types", dt.join(",")), yi || (u && Ve.set("bbox", u.map((Cr) => Cr.toFixed(6)).join(",")), h && Ve.set("country", Array.isArray(h) ? h.join(",") : h)), Bt || (w && Ve.set("proximity", w.map((Cr) => Cr.toFixed(6)).join(",")), (Gn || !W) && Ve.set("autocomplete", "false"), Ve.set("fuzzyMatch", String(E))), L !== void 0 && (!yi || (dt == null ? void 0 : dt.length) === 1) && Ve.set("limit", String(L)), Ve.set("key", a);
1375
1385
  const Kr = rr + "/" + encodeURIComponent(S) + ".json?" + Ve.toString();
1376
1386
  if (Kr === ra) {
1377
- Bt ? (e(12, ct = void 0), e(47, ot = xo[0])) : e(12, ct = xo);
1387
+ Bt ? (e(12, ct = void 0), e(48, ot = xo[0])) : e(12, ct = xo);
1378
1388
  return;
1379
1389
  }
1380
1390
  ra = Kr, jr == null || jr.abort();
@@ -1393,21 +1403,21 @@ function oc(r, t, e) {
1393
1403
  if (!ds.ok)
1394
1404
  throw new Error();
1395
1405
  const vs = await ds.json();
1396
- Ir("response", { url: Kr, featureCollection: vs }), Bt ? (e(12, ct = void 0), e(47, ot = vs.features[0]), xo = [ot]) : (e(12, ct = vs.features.filter(d)), xo = ct, yi && kn.focus());
1406
+ Ir("response", { url: Kr, featureCollection: vs }), Bt ? (e(12, ct = void 0), e(48, ot = vs.features[0]), xo = [ot]) : (e(12, ct = vs.features.filter(d)), xo = ct, yi && kn.focus());
1397
1407
  }
1398
- function tl() {
1408
+ function el() {
1399
1409
  var Gn, yi, Ve, Kr;
1400
- if (!(_e != null && _e.length) || !m)
1410
+ if (!(_e != null && _e.length) || !v)
1401
1411
  return;
1402
1412
  const S = [180, 90, -180, -90], Bt = !_e.some((Ee) => !Ee.matching_text);
1403
1413
  for (const Ee of _e)
1404
1414
  (Bt || !Ee.matching_text) && (S[0] = Math.min(S[0], ((Gn = Ee.bbox) == null ? void 0 : Gn[0]) ?? Ee.center[0]), S[1] = Math.min(S[1], ((yi = Ee.bbox) == null ? void 0 : yi[1]) ?? Ee.center[1]), S[2] = Math.max(S[2], ((Ve = Ee.bbox) == null ? void 0 : Ve[2]) ?? Ee.center[0]), S[3] = Math.max(S[3], ((Kr = Ee.bbox) == null ? void 0 : Kr[3]) ?? Ee.center[1]));
1405
1415
  N && _e.length > 0 && (ot && S[0] === S[2] && S[1] === S[3] ? N.flyTo(ot.center, Ht) : N.fitBounds(ya(S), 50, Jt));
1406
1416
  }
1407
- function el(S) {
1408
- e(0, F = p === "always"), Hr(ic(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
1409
- }
1410
1417
  function nl(S) {
1418
+ e(0, F = p === "always"), Hr(oc(S[0], [-180, 180], !0).toFixed(6) + "," + S[1].toFixed(6));
1419
+ }
1420
+ function rl(S) {
1411
1421
  if (!ct)
1412
1422
  return;
1413
1423
  let Bt = S.key === "ArrowDown" ? 1 : S.key === "ArrowUp" ? -1 : 0;
@@ -1428,46 +1438,46 @@ function oc(r, t, e) {
1428
1438
  e(12, ct = void 0), e(16, Bn = void 0);
1429
1439
  }
1430
1440
  function ps(S) {
1431
- e(47, ot = S), e(1, R = S.place_name), e(13, kt = -1);
1441
+ e(48, ot = S), e(1, R = S.place_name), e(13, kt = -1);
1432
1442
  }
1433
- const rl = () => kn.focus();
1434
- function il(S) {
1443
+ const il = () => kn.focus();
1444
+ function ol(S) {
1435
1445
  Ns[S ? "unshift" : "push"](() => {
1436
1446
  kn = S, e(15, kn);
1437
1447
  });
1438
1448
  }
1439
- function ol() {
1440
- R = this.value, e(1, R), e(11, ze), e(25, c);
1449
+ function sl() {
1450
+ R = this.value, e(1, R), e(11, ze), e(26, c);
1441
1451
  }
1442
- const sl = () => e(11, ze = !0), al = () => e(11, ze = !1), ul = () => gs(), ll = () => {
1452
+ const al = () => e(11, ze = !0), ul = () => e(11, ze = !1), ll = () => gs(), cl = () => {
1443
1453
  e(1, R = ""), kn.focus();
1444
- }, cl = () => e(0, F = !F), fl = () => e(16, Bn = void 0), hl = (S) => e(13, kt = S), gl = (S) => ps(S), pl = () => e(13, kt = -1), dl = () => {
1454
+ }, fl = () => e(0, F = !F), hl = () => e(16, Bn = void 0), gl = (S) => e(13, kt = S), pl = (S) => ps(S), dl = () => e(13, kt = -1), vl = () => {
1445
1455
  };
1446
1456
  return r.$$set = (S) => {
1447
- "class" in S && e(2, s = S.class), "apiKey" in S && e(23, a = S.apiKey), "bbox" in S && e(24, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(25, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(26, h = S.country), "debounceSearch" in S && e(27, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, y = S.errorMessage), "filter" in S && e(28, d = S.filter), "flyTo" in S && e(29, m = S.flyTo), "fuzzyMatch" in S && e(30, E = S.fuzzyMatch), "language" in S && e(31, C = S.language), "limit" in S && e(32, L = S.limit), "mapController" in S && e(33, N = S.mapController), "minLength" in S && e(34, x = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, A = S.placeholder), "proximity" in S && e(22, w = S.proximity), "reverseActive" in S && e(0, F = S.reverseActive), "reverseButtonTitle" in S && e(9, X = S.reverseButtonTitle), "searchValue" in S && e(1, R = S.searchValue), "showFullGeometry" in S && e(35, Y = S.showFullGeometry), "showPlaceType" in S && e(10, T = S.showPlaceType), "showResultsWhileTyping" in S && e(36, W = S.showResultsWhileTyping), "trackProximity" in S && e(37, ut = S.trackProximity), "types" in S && e(38, dt = S.types), "zoom" in S && e(39, Ht = S.zoom), "maxZoom" in S && e(40, Jt = S.maxZoom), "apiUrl" in S && e(41, rr = S.apiUrl), "fetchParameters" in S && e(42, Ge = S.fetchParameters), "$$scope" in S && e(50, o = S.$$scope);
1457
+ "class" in S && e(2, s = S.class), "apiKey" in S && e(24, a = S.apiKey), "bbox" in S && e(25, u = S.bbox), "clearButtonTitle" in S && e(3, l = S.clearButtonTitle), "clearOnBlur" in S && e(26, c = S.clearOnBlur), "collapsed" in S && e(4, f = S.collapsed), "country" in S && e(27, h = S.country), "debounceSearch" in S && e(28, g = S.debounceSearch), "enableReverse" in S && e(5, p = S.enableReverse), "errorMessage" in S && e(6, m = S.errorMessage), "filter" in S && e(29, d = S.filter), "flyTo" in S && e(30, v = S.flyTo), "fuzzyMatch" in S && e(31, E = S.fuzzyMatch), "language" in S && e(32, C = S.language), "limit" in S && e(33, L = S.limit), "mapController" in S && e(34, N = S.mapController), "minLength" in S && e(35, x = S.minLength), "noResultsMessage" in S && e(7, D = S.noResultsMessage), "placeholder" in S && e(8, A = S.placeholder), "proximity" in S && e(23, w = S.proximity), "reverseActive" in S && e(0, F = S.reverseActive), "reverseButtonTitle" in S && e(9, X = S.reverseButtonTitle), "searchValue" in S && e(1, R = S.searchValue), "showFullGeometry" in S && e(36, Y = S.showFullGeometry), "showPlaceType" in S && e(10, T = S.showPlaceType), "showResultsWhileTyping" in S && e(37, W = S.showResultsWhileTyping), "trackProximity" in S && e(38, ut = S.trackProximity), "types" in S && e(39, dt = S.types), "zoom" in S && e(40, Ht = S.zoom), "maxZoom" in S && e(41, Jt = S.maxZoom), "apiUrl" in S && e(42, rr = S.apiUrl), "fetchParameters" in S && e(43, Ge = S.fetchParameters), "$$scope" in S && e(51, o = S.$$scope);
1448
1458
  }, r.$$.update = () => {
1449
1459
  if (r.$$.dirty[1] & /*trackProximity*/
1450
- 64 && (ut || e(22, w = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
1451
- 33556480 && setTimeout(() => {
1460
+ 128 && (ut || e(23, w = void 0)), r.$$.dirty[0] & /*focused, clearOnBlur*/
1461
+ 67110912 && setTimeout(() => {
1452
1462
  e(14, wo = ze), c && !ze && e(1, R = "");
1453
1463
  }), r.$$.dirty[0] & /*searchValue, listFeatures*/
1454
1464
  4098 | r.$$.dirty[1] & /*minLength*/
1455
- 8 && R.length < x && (e(47, ot = void 0), e(12, ct = void 0), e(16, Bn = void 0), e(46, _e = ct)), r.$$.dirty[1] & /*showFullGeometry, picked*/
1456
- 65552 && Y && ot && !ot.address && ot.geometry.type === "Point" && hs(ot.id, { byId: !0 }).catch((S) => e(16, Bn = S)), r.$$.dirty[0] & /*flyTo*/
1457
- 536870912 | r.$$.dirty[1] & /*mapController, picked, prevIdToFly, maxZoom, zoom*/
1458
- 197380 && (N && ot && ot.id !== fs && m && (!ot.bbox || ot.bbox[0] === ot.bbox[2] && ot.bbox[1] === ot.bbox[3] ? N.flyTo(ot.center, ot.id.startsWith("poi.") || ot.id.startsWith("address.") ? Jt : Ht) : N.fitBounds(ya(ot.bbox), 50, Jt), e(12, ct = void 0), e(46, _e = void 0), e(13, kt = -1)), e(48, fs = ot == null ? void 0 : ot.id)), r.$$.dirty[0] & /*listFeatures*/
1465
+ 16 && R.length < x && (e(48, ot = void 0), e(12, ct = void 0), e(16, Bn = void 0), e(47, _e = ct)), r.$$.dirty[1] & /*showFullGeometry, picked*/
1466
+ 131104 && Y && ot && !ot.address && ot.geometry.type === "Point" && hs(ot.id, { byId: !0 }).catch((S) => e(16, Bn = S)), r.$$.dirty[0] & /*flyTo*/
1467
+ 1073741824 | r.$$.dirty[1] & /*mapController, picked, prevIdToFly, maxZoom, zoom*/
1468
+ 394760 && (N && ot && ot.id !== fs && v && (!ot.bbox || ot.bbox[0] === ot.bbox[2] && ot.bbox[1] === ot.bbox[3] ? N.flyTo(ot.center, ot.id.startsWith("poi.") || ot.id.startsWith("address.") ? Jt : Ht) : N.fitBounds(ya(ot.bbox), 50, Jt), e(12, ct = void 0), e(47, _e = void 0), e(13, kt = -1)), e(49, fs = ot == null ? void 0 : ot.id)), r.$$.dirty[0] & /*listFeatures*/
1459
1469
  4096 | r.$$.dirty[1] & /*markedFeatures*/
1460
- 32768 && _e !== ct && e(46, _e = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1461
- 98308 && N && N.setMarkers(_e, ot), r.$$.dirty[0] & /*searchValue*/
1470
+ 65536 && _e !== ct && e(47, _e = void 0), r.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1471
+ 196616 && N && N.setMarkers(_e, ot), r.$$.dirty[0] & /*searchValue*/
1462
1472
  2 && e(13, kt = -1), r.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1463
1473
  20481 | r.$$.dirty[1] & /*mapController, trackProximity*/
1464
- 68 && N && N.setEventHandler((S) => {
1474
+ 136 && N && N.setEventHandler((S) => {
1465
1475
  switch (S.type) {
1466
1476
  case "mapClick":
1467
- F && el(S.coordinates);
1477
+ F && nl(S.coordinates);
1468
1478
  break;
1469
1479
  case "proximityChange":
1470
- e(22, w = ut ? S.proximity : void 0);
1480
+ e(23, w = ut ? S.proximity : void 0);
1471
1481
  break;
1472
1482
  case "markerClick":
1473
1483
  {
@@ -1484,23 +1494,23 @@ function oc(r, t, e) {
1484
1494
  }
1485
1495
  }), r.$$.dirty[0] & /*selectedItemIndex*/
1486
1496
  8192 | r.$$.dirty[1] & /*mapController*/
1487
- 4 && (N == null || N.setSelectedMarker(kt)), r.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1488
- 12288 && e(49, n = ct == null ? void 0 : ct[kt]), r.$$.dirty[0] & /*searchValue*/
1497
+ 8 && (N == null || N.setSelectedMarker(kt)), r.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1498
+ 12288 && e(50, n = ct == null ? void 0 : ct[kt]), r.$$.dirty[0] & /*searchValue*/
1489
1499
  2 | r.$$.dirty[1] & /*mapController*/
1490
- 4) {
1500
+ 8) {
1491
1501
  const S = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(R);
1492
1502
  N == null || N.setReverseMarker(S ? [Number(S[1]), Number(S[2])] : void 0);
1493
1503
  }
1494
1504
  r.$$.dirty[1] & /*selected*/
1495
- 262144 && Ir("select", n), r.$$.dirty[1] & /*picked*/
1496
- 65536 && Ir("pick", ot), r.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1505
+ 524288 && Ir("select", n), r.$$.dirty[1] & /*picked*/
1506
+ 131072 && Ir("pick", ot), r.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1497
1507
  20480 && Ir("optionsVisibilityChange", wo && !!ct), r.$$.dirty[0] & /*listFeatures*/
1498
1508
  4096 && Ir("featuresListed", ct), r.$$.dirty[1] & /*markedFeatures*/
1499
- 32768 && Ir("featuresMarked", _e), r.$$.dirty[0] & /*reverseActive*/
1509
+ 65536 && Ir("featuresMarked", _e), r.$$.dirty[0] & /*reverseActive*/
1500
1510
  1 && Ir("reverseToggle", F), r.$$.dirty[0] & /*searchValue*/
1501
1511
  2 && Ir("queryChange", R), r.$$.dirty[0] & /*reverseActive*/
1502
1512
  1 | r.$$.dirty[1] & /*mapController*/
1503
- 4 && N && N.indicateReverse(F);
1513
+ 8 && N && N.indicateReverse(F);
1504
1514
  }, [
1505
1515
  F,
1506
1516
  R,
@@ -1508,7 +1518,7 @@ function oc(r, t, e) {
1508
1518
  l,
1509
1519
  f,
1510
1520
  p,
1511
- y,
1521
+ m,
1512
1522
  D,
1513
1523
  A,
1514
1524
  X,
@@ -1520,8 +1530,9 @@ function oc(r, t, e) {
1520
1530
  kn,
1521
1531
  Bn,
1522
1532
  jr,
1533
+ tl,
1523
1534
  ia,
1524
- nl,
1535
+ rl,
1525
1536
  gs,
1526
1537
  ps,
1527
1538
  w,
@@ -1531,7 +1542,7 @@ function oc(r, t, e) {
1531
1542
  h,
1532
1543
  g,
1533
1544
  d,
1534
- m,
1545
+ v,
1535
1546
  E,
1536
1547
  C,
1537
1548
  L,
@@ -1554,7 +1565,6 @@ function oc(r, t, e) {
1554
1565
  n,
1555
1566
  o,
1556
1567
  i,
1557
- rl,
1558
1568
  il,
1559
1569
  ol,
1560
1570
  sl,
@@ -1566,66 +1576,67 @@ function oc(r, t, e) {
1566
1576
  hl,
1567
1577
  gl,
1568
1578
  pl,
1569
- dl
1579
+ dl,
1580
+ vl
1570
1581
  ];
1571
1582
  }
1572
- let sc = class extends Xr {
1583
+ let ac = class extends Xr {
1573
1584
  constructor(t) {
1574
1585
  super(), qr(
1575
1586
  this,
1576
1587
  t,
1577
- oc,
1578
- rc,
1588
+ sc,
1589
+ ic,
1579
1590
  Ur,
1580
1591
  {
1581
1592
  class: 2,
1582
- apiKey: 23,
1583
- bbox: 24,
1593
+ apiKey: 24,
1594
+ bbox: 25,
1584
1595
  clearButtonTitle: 3,
1585
- clearOnBlur: 25,
1596
+ clearOnBlur: 26,
1586
1597
  collapsed: 4,
1587
- country: 26,
1588
- debounceSearch: 27,
1598
+ country: 27,
1599
+ debounceSearch: 28,
1589
1600
  enableReverse: 5,
1590
1601
  errorMessage: 6,
1591
- filter: 28,
1592
- flyTo: 29,
1593
- fuzzyMatch: 30,
1594
- language: 31,
1595
- limit: 32,
1596
- mapController: 33,
1597
- minLength: 34,
1602
+ filter: 29,
1603
+ flyTo: 30,
1604
+ fuzzyMatch: 31,
1605
+ language: 32,
1606
+ limit: 33,
1607
+ mapController: 34,
1608
+ minLength: 35,
1598
1609
  noResultsMessage: 7,
1599
1610
  placeholder: 8,
1600
- proximity: 22,
1611
+ proximity: 23,
1601
1612
  reverseActive: 0,
1602
1613
  reverseButtonTitle: 9,
1603
1614
  searchValue: 1,
1604
- showFullGeometry: 35,
1615
+ showFullGeometry: 36,
1605
1616
  showPlaceType: 10,
1606
- showResultsWhileTyping: 36,
1607
- trackProximity: 37,
1608
- types: 38,
1609
- zoom: 39,
1610
- maxZoom: 40,
1611
- apiUrl: 41,
1612
- fetchParameters: 42,
1613
- focus: 43,
1614
- blur: 44,
1615
- setQuery: 45
1617
+ showResultsWhileTyping: 37,
1618
+ trackProximity: 38,
1619
+ types: 39,
1620
+ zoom: 40,
1621
+ maxZoom: 41,
1622
+ apiUrl: 42,
1623
+ fetchParameters: 43,
1624
+ focus: 44,
1625
+ blur: 45,
1626
+ setQuery: 46
1616
1627
  },
1617
1628
  null,
1618
1629
  [-1, -1, -1]
1619
1630
  );
1620
1631
  }
1621
1632
  get focus() {
1622
- return this.$$.ctx[43];
1633
+ return this.$$.ctx[44];
1623
1634
  }
1624
1635
  get blur() {
1625
- return this.$$.ctx[44];
1636
+ return this.$$.ctx[45];
1626
1637
  }
1627
1638
  get setQuery() {
1628
- return this.$$.ctx[45];
1639
+ return this.$$.ctx[46];
1629
1640
  }
1630
1641
  };
1631
1642
  /**
@@ -1650,7 +1661,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
1650
1661
  See the Apache Version 2.0 License for specific language governing permissions
1651
1662
  and limitations under the License.
1652
1663
  ***************************************************************************** */
1653
- function ac(r, t) {
1664
+ function uc(r, t) {
1654
1665
  var e = { label: 0, sent: function() {
1655
1666
  if (o[0] & 1)
1656
1667
  throw o[1];
@@ -1724,7 +1735,7 @@ var Dr = (
1724
1735
  return r;
1725
1736
  }()
1726
1737
  );
1727
- function uc(r, t) {
1738
+ function lc(r, t) {
1728
1739
  return r > t ? 1 : r < t ? -1 : 0;
1729
1740
  }
1730
1741
  function xr(r, t, e) {
@@ -1770,7 +1781,7 @@ function ma(r, t, e) {
1770
1781
  }
1771
1782
  return { left: n, right: i };
1772
1783
  }
1773
- function lc(r, t, e) {
1784
+ function cc(r, t, e) {
1774
1785
  return t === null ? r : (r === null || (t = xr(r.key, t, e), t.left = r), t);
1775
1786
  }
1776
1787
  function ws(r, t, e, n, i) {
@@ -1785,7 +1796,7 @@ var zs = (
1785
1796
  /** @class */
1786
1797
  function() {
1787
1798
  function r(t) {
1788
- t === void 0 && (t = uc), this._root = null, this._size = 0, this._comparator = t;
1799
+ t === void 0 && (t = lc), this._root = null, this._size = 0, this._comparator = t;
1789
1800
  }
1790
1801
  return r.prototype.insert = function(t, e) {
1791
1802
  return this._size++, this._root = _s(t, e, this._root, this._comparator);
@@ -1913,14 +1924,14 @@ var zs = (
1913
1924
  }, r.prototype.clear = function() {
1914
1925
  return this._root = null, this._size = 0, this;
1915
1926
  }, r.prototype.toList = function() {
1916
- return fc(this._root);
1927
+ return hc(this._root);
1917
1928
  }, r.prototype.load = function(t, e, n) {
1918
1929
  e === void 0 && (e = []), n === void 0 && (n = !1);
1919
1930
  var i = t.length, o = this._comparator;
1920
1931
  if (n && Ps(t, e, 0, i - 1, o), this._root === null)
1921
1932
  this._root = Ls(t, e, 0, i), this._size = i;
1922
1933
  else {
1923
- var s = hc(this.toList(), cc(t, e), o);
1934
+ var s = gc(this.toList(), fc(t, e), o);
1924
1935
  i = this._size + i, this._root = bs({ head: s }, 0, i);
1925
1936
  }
1926
1937
  return this;
@@ -1948,12 +1959,12 @@ var zs = (
1948
1959
  }, t), e.join("");
1949
1960
  }, r.prototype.update = function(t, e, n) {
1950
1961
  var i = this._comparator, o = ma(t, this._root, i), s = o.left, a = o.right;
1951
- i(t, e) < 0 ? a = _s(e, n, a, i) : s = _s(e, n, s, i), this._root = lc(s, a, i);
1962
+ i(t, e) < 0 ? a = _s(e, n, a, i) : s = _s(e, n, s, i), this._root = cc(s, a, i);
1952
1963
  }, r.prototype.split = function(t) {
1953
1964
  return ma(t, this._root, this._comparator);
1954
1965
  }, r.prototype[Symbol.iterator] = function() {
1955
1966
  var t;
1956
- return ac(this, function(e) {
1967
+ return uc(this, function(e) {
1957
1968
  switch (e.label) {
1958
1969
  case 0:
1959
1970
  t = this.minNode(), e.label = 1;
@@ -1979,12 +1990,12 @@ function Ls(r, t, e, n) {
1979
1990
  }
1980
1991
  return null;
1981
1992
  }
1982
- function cc(r, t) {
1993
+ function fc(r, t) {
1983
1994
  for (var e = new Dr(null, null), n = e, i = 0; i < r.length; i++)
1984
1995
  n = n.next = new Dr(r[i], t[i]);
1985
1996
  return n.next = null, e.next;
1986
1997
  }
1987
- function fc(r) {
1998
+ function hc(r) {
1988
1999
  for (var t = r, e = [], n = !1, i = new Dr(null, null), o = i; !n; )
1989
2000
  t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
1990
2001
  return o.next = null, i.next;
@@ -1997,7 +2008,7 @@ function bs(r, t, e) {
1997
2008
  }
1998
2009
  return null;
1999
2010
  }
2000
- function hc(r, t, e) {
2011
+ function gc(r, t, e) {
2001
2012
  for (var n = new Dr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
2002
2013
  e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
2003
2014
  return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
@@ -2050,12 +2061,12 @@ var ji = function(t, e) {
2050
2061
  };
2051
2062
  }, wr = Number.EPSILON;
2052
2063
  wr === void 0 && (wr = Math.pow(2, -52));
2053
- var gc = wr * wr, Os = function(t, e) {
2064
+ var pc = wr * wr, Os = function(t, e) {
2054
2065
  if (-wr < t && t < wr && -wr < e && e < wr)
2055
2066
  return 0;
2056
2067
  var n = t - e;
2057
- return n * n < gc * t * e ? 0 : t < e ? -1 : 1;
2058
- }, pc = /* @__PURE__ */ function() {
2068
+ return n * n < pc * t * e ? 0 : t < e ? -1 : 1;
2069
+ }, dc = /* @__PURE__ */ function() {
2059
2070
  function r() {
2060
2071
  mn(this, r), this.reset();
2061
2072
  }
@@ -2087,7 +2098,7 @@ var gc = wr * wr, Os = function(t, e) {
2087
2098
  return o !== null && Os(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
2088
2099
  }
2089
2100
  }]), r;
2090
- }(), no = new pc(), $i = function(t, e) {
2101
+ }(), no = new dc(), $i = function(t, e) {
2091
2102
  return t.x * e.y - t.y * e.x;
2092
2103
  }, ou = function(t, e) {
2093
2104
  return t.x * e.x + t.y * e.y;
@@ -2102,7 +2113,7 @@ var gc = wr * wr, Os = function(t, e) {
2102
2113
  return Os(s, 0);
2103
2114
  }, Go = function(t) {
2104
2115
  return Math.sqrt(ou(t, t));
2105
- }, dc = function(t, e, n) {
2116
+ }, vc = function(t, e, n) {
2106
2117
  var i = {
2107
2118
  x: e.x - t.x,
2108
2119
  y: e.y - t.y
@@ -2111,7 +2122,7 @@ var gc = wr * wr, Os = function(t, e) {
2111
2122
  y: n.y - t.y
2112
2123
  };
2113
2124
  return $i(o, i) / Go(o) / Go(i);
2114
- }, vc = function(t, e, n) {
2125
+ }, yc = function(t, e, n) {
2115
2126
  var i = {
2116
2127
  x: e.x - t.x,
2117
2128
  y: e.y - t.y
@@ -2130,7 +2141,7 @@ var gc = wr * wr, Os = function(t, e) {
2130
2141
  x: n,
2131
2142
  y: t.y + e.y / e.x * (n - t.x)
2132
2143
  };
2133
- }, yc = function(t, e, n, i) {
2144
+ }, mc = function(t, e, n, i) {
2134
2145
  if (e.x === 0)
2135
2146
  return Na(n, i, t.x);
2136
2147
  if (i.x === 0)
@@ -2219,8 +2230,8 @@ var gc = wr * wr, Os = function(t, e) {
2219
2230
  var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
2220
2231
  var u = a.otherSE;
2221
2232
  i.set(a, {
2222
- sine: dc(n.point, e.point, u.point),
2223
- cosine: vc(n.point, e.point, u.point)
2233
+ sine: vc(n.point, e.point, u.point),
2234
+ cosine: yc(n.point, e.point, u.point)
2224
2235
  });
2225
2236
  };
2226
2237
  return function(s, a) {
@@ -2230,7 +2241,7 @@ var gc = wr * wr, Os = function(t, e) {
2230
2241
  };
2231
2242
  }
2232
2243
  }]), r;
2233
- }(), mc = 0, zo = /* @__PURE__ */ function() {
2244
+ }(), _c = 0, zo = /* @__PURE__ */ function() {
2234
2245
  xe(r, null, [{
2235
2246
  key: "compare",
2236
2247
  /* This compare() function is for ordering segments in the sweep
@@ -2274,8 +2285,8 @@ var gc = wr * wr, Os = function(t, e) {
2274
2285
  var p = n.comparePoint(e.leftSE.point);
2275
2286
  if (p !== 0)
2276
2287
  return p;
2277
- var y = e.comparePoint(n.rightSE.point);
2278
- return y < 0 ? 1 : y > 0 ? -1 : 1;
2288
+ var m = e.comparePoint(n.rightSE.point);
2289
+ return m < 0 ? 1 : m > 0 ? -1 : 1;
2279
2290
  }
2280
2291
  if (u < l)
2281
2292
  return -1;
@@ -2287,10 +2298,10 @@ var gc = wr * wr, Os = function(t, e) {
2287
2298
  return d;
2288
2299
  }
2289
2300
  if (s > a) {
2290
- var m = e.comparePoint(n.rightSE.point);
2291
- if (m < 0)
2301
+ var v = e.comparePoint(n.rightSE.point);
2302
+ if (v < 0)
2292
2303
  return 1;
2293
- if (m > 0)
2304
+ if (v > 0)
2294
2305
  return -1;
2295
2306
  }
2296
2307
  if (s !== a) {
@@ -2306,7 +2317,7 @@ var gc = wr * wr, Os = function(t, e) {
2306
2317
  * and possibly will be later modified */
2307
2318
  }]);
2308
2319
  function r(t, e, n, i) {
2309
- mn(this, r), this.id = ++mc, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
2320
+ mn(this, r), this.id = ++_c, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
2310
2321
  }
2311
2322
  return xe(r, [{
2312
2323
  key: "replaceRightSE",
@@ -2404,7 +2415,7 @@ var gc = wr * wr, Os = function(t, e) {
2404
2415
  return a;
2405
2416
  if (h)
2406
2417
  return l;
2407
- var p = yc(s, this.vector(), u, e.vector());
2418
+ var p = mc(s, this.vector(), u, e.vector());
2408
2419
  return p === null || !ji(o, p) ? null : no.round(p.x, p.y);
2409
2420
  }
2410
2421
  /**
@@ -2502,14 +2513,14 @@ var gc = wr * wr, Os = function(t, e) {
2502
2513
  }
2503
2514
  for (var f = [], h = [], g = 0, p = n.length; g < p; g++)
2504
2515
  if (i[g] !== 0) {
2505
- var y = n[g], d = y.poly;
2516
+ var m = n[g], d = m.poly;
2506
2517
  if (h.indexOf(d) === -1)
2507
- if (y.isExterior)
2518
+ if (m.isExterior)
2508
2519
  f.push(d);
2509
2520
  else {
2510
2521
  h.indexOf(d) === -1 && h.push(d);
2511
- var m = f.indexOf(y.poly);
2512
- m !== -1 && f.splice(m, 1);
2522
+ var v = f.indexOf(m.poly);
2523
+ v !== -1 && f.splice(v, 1);
2513
2524
  }
2514
2525
  }
2515
2526
  for (var E = 0, C = f.length; E < C; E++) {
@@ -2604,7 +2615,7 @@ var gc = wr * wr, Os = function(t, e) {
2604
2615
  return e;
2605
2616
  }
2606
2617
  }]), r;
2607
- }(), _c = /* @__PURE__ */ function() {
2618
+ }(), Ec = /* @__PURE__ */ function() {
2608
2619
  function r(t, e) {
2609
2620
  if (mn(this, r), !Array.isArray(t))
2610
2621
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -2652,7 +2663,7 @@ var gc = wr * wr, Os = function(t, e) {
2652
2663
  }
2653
2664
  };
2654
2665
  for (var n = 0, i = t.length; n < i; n++) {
2655
- var o = new _c(t[n], this);
2666
+ var o = new Ec(t[n], this);
2656
2667
  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);
2657
2668
  }
2658
2669
  this.isSubject = e;
@@ -2666,7 +2677,7 @@ var gc = wr * wr, Os = function(t, e) {
2666
2677
  return e;
2667
2678
  }
2668
2679
  }]), r;
2669
- }(), Ec = /* @__PURE__ */ function() {
2680
+ }(), Ic = /* @__PURE__ */ function() {
2670
2681
  xe(r, null, [{
2671
2682
  key: "factory",
2672
2683
  /* Given the segments from the sweep line pass, compute & return a series
@@ -2679,16 +2690,16 @@ var gc = wr * wr, Os = function(t, e) {
2679
2690
  for (; ; ) {
2680
2691
  var g = u.getAvailableLinkedEvents();
2681
2692
  if (g.length === 0) {
2682
- var p = c[0].point, y = c[c.length - 1].point;
2683
- throw new Error("Unable to complete output ring starting at [".concat(p.x, ",") + " ".concat(p.y, "]. Last matching segment found ends at") + " [".concat(y.x, ", ").concat(y.y, "]."));
2693
+ var p = c[0].point, m = c[c.length - 1].point;
2694
+ throw new Error("Unable to complete output ring starting at [".concat(p.x, ",") + " ".concat(p.y, "]. Last matching segment found ends at") + " [".concat(m.x, ", ").concat(m.y, "]."));
2684
2695
  }
2685
2696
  if (g.length === 1) {
2686
2697
  l = g[0].otherSE;
2687
2698
  break;
2688
2699
  }
2689
- for (var d = null, m = 0, E = h.length; m < E; m++)
2690
- if (h[m].point === u.point) {
2691
- d = m;
2700
+ for (var d = null, v = 0, E = h.length; v < E; v++)
2701
+ if (h[v].point === u.point) {
2702
+ d = v;
2692
2703
  break;
2693
2704
  }
2694
2705
  if (d !== null) {
@@ -2786,7 +2797,7 @@ var gc = wr * wr, Os = function(t, e) {
2786
2797
  return e;
2787
2798
  }
2788
2799
  }]), r;
2789
- }(), Ic = /* @__PURE__ */ function() {
2800
+ }(), Cc = /* @__PURE__ */ function() {
2790
2801
  function r(t) {
2791
2802
  mn(this, r), this.rings = t, this.polys = this._composePolys(t);
2792
2803
  }
@@ -2815,7 +2826,7 @@ var gc = wr * wr, Os = function(t, e) {
2815
2826
  return n;
2816
2827
  }
2817
2828
  }]), r;
2818
- }(), Cc = /* @__PURE__ */ function() {
2829
+ }(), Nc = /* @__PURE__ */ function() {
2819
2830
  function r(t) {
2820
2831
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zo.compare;
2821
2832
  mn(this, r), this.queue = t, this.tree = new zs(e), this.segments = [];
@@ -2841,22 +2852,22 @@ var gc = wr * wr, Os = function(t, e) {
2841
2852
  for (var h = this._splitSafely(u, f), g = 0, p = h.length; g < p; g++)
2842
2853
  i.push(h[g]);
2843
2854
  }
2844
- var y = null;
2855
+ var m = null;
2845
2856
  if (l) {
2846
2857
  var d = l.getIntersection(n);
2847
- if (d !== null && (n.isAnEndpoint(d) || (y = d), !l.isAnEndpoint(d)))
2848
- for (var m = this._splitSafely(l, d), E = 0, C = m.length; E < C; E++)
2849
- i.push(m[E]);
2858
+ if (d !== null && (n.isAnEndpoint(d) || (m = d), !l.isAnEndpoint(d)))
2859
+ for (var v = this._splitSafely(l, d), E = 0, C = v.length; E < C; E++)
2860
+ i.push(v[E]);
2850
2861
  }
2851
- if (c !== null || y !== null) {
2862
+ if (c !== null || m !== null) {
2852
2863
  var L = null;
2853
2864
  if (c === null)
2854
- L = y;
2855
- else if (y === null)
2865
+ L = m;
2866
+ else if (m === null)
2856
2867
  L = c;
2857
2868
  else {
2858
- var N = Xn.comparePoints(c, y);
2859
- L = N <= 0 ? c : y;
2869
+ var N = Xn.comparePoints(c, m);
2870
+ L = N <= 0 ? c : m;
2860
2871
  }
2861
2872
  this.queue.remove(n.rightSE), i.push(n.rightSE);
2862
2873
  for (var x = n.split(L), D = 0, A = x.length; D < A; D++)
@@ -2891,7 +2902,7 @@ var gc = wr * wr, Os = function(t, e) {
2891
2902
  return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
2892
2903
  }
2893
2904
  }]), r;
2894
- }(), La = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, Sc = /* @__PURE__ */ function() {
2905
+ }(), La = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Sc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, xc = /* @__PURE__ */ function() {
2895
2906
  function r() {
2896
2907
  mn(this, r);
2897
2908
  }
@@ -2910,52 +2921,52 @@ var gc = wr * wr, Os = function(t, e) {
2910
2921
  if (Rs(h.bbox, o[g].bbox) === null)
2911
2922
  return [];
2912
2923
  }
2913
- for (var y = new zs(Xn.compare), d = 0, m = o.length; d < m; d++)
2924
+ for (var m = new zs(Xn.compare), d = 0, v = o.length; d < v; d++)
2914
2925
  for (var E = o[d].getSweepEvents(), C = 0, L = E.length; C < L; C++)
2915
- if (y.insert(E[C]), y.size > La)
2926
+ if (m.insert(E[C]), m.size > La)
2916
2927
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
2917
- for (var N = new Cc(y), x = y.size, D = y.pop(); D; ) {
2928
+ for (var N = new Nc(m), x = m.size, D = m.pop(); D; ) {
2918
2929
  var A = D.key;
2919
- if (y.size === x) {
2930
+ if (m.size === x) {
2920
2931
  var w = A.segment;
2921
2932
  throw new Error("Unable to pop() ".concat(A.isLeft ? "left" : "right", " SweepEvent ") + "[".concat(A.point.x, ", ").concat(A.point.y, "] from segment #").concat(w.id, " ") + "[".concat(w.leftSE.point.x, ", ").concat(w.leftSE.point.y, "] -> ") + "[".concat(w.rightSE.point.x, ", ").concat(w.rightSE.point.y, "] from queue. ") + "Please file a bug report.");
2922
2933
  }
2923
- if (y.size > La)
2934
+ if (m.size > La)
2924
2935
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
2925
- if (N.segments.length > Nc)
2936
+ if (N.segments.length > Sc)
2926
2937
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
2927
2938
  for (var F = N.process(A), X = 0, R = F.length; X < R; X++) {
2928
2939
  var Y = F[X];
2929
- Y.consumedBy === void 0 && y.insert(Y);
2940
+ Y.consumedBy === void 0 && m.insert(Y);
2930
2941
  }
2931
- x = y.size, D = y.pop();
2942
+ x = m.size, D = m.pop();
2932
2943
  }
2933
2944
  no.reset();
2934
- var T = Ec.factory(N.segments), W = new Ic(T);
2945
+ var T = Ic.factory(N.segments), W = new Cc(T);
2935
2946
  return W.getGeom();
2936
2947
  }
2937
2948
  }]), r;
2938
- }(), Sn = new Sc(), xc = function(t) {
2949
+ }(), Sn = new xc(), wc = function(t) {
2939
2950
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2940
2951
  n[i - 1] = arguments[i];
2941
2952
  return Sn.run("union", t, n);
2942
- }, wc = function(t) {
2953
+ }, Lc = function(t) {
2943
2954
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2944
2955
  n[i - 1] = arguments[i];
2945
2956
  return Sn.run("intersection", t, n);
2946
- }, Lc = function(t) {
2957
+ }, bc = function(t) {
2947
2958
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2948
2959
  n[i - 1] = arguments[i];
2949
2960
  return Sn.run("xor", t, n);
2950
- }, bc = function(t) {
2961
+ }, Pc = function(t) {
2951
2962
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2952
2963
  n[i - 1] = arguments[i];
2953
2964
  return Sn.run("difference", t, n);
2954
2965
  }, su = {
2955
- union: xc,
2956
- intersection: wc,
2957
- xor: Lc,
2958
- difference: bc
2966
+ union: wc,
2967
+ intersection: Lc,
2968
+ xor: bc,
2969
+ difference: Pc
2959
2970
  }, Ie = 63710088e-1, au = {
2960
2971
  centimeters: Ie * 100,
2961
2972
  centimetres: Ie * 100,
@@ -2978,7 +2989,7 @@ function Jo(r, t, e) {
2978
2989
  var n = { type: "Feature" };
2979
2990
  return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
2980
2991
  }
2981
- function Pc(r, t, e) {
2992
+ function Rc(r, t, e) {
2982
2993
  if (e === void 0 && (e = {}), !r)
2983
2994
  throw new Error("coordinates is required");
2984
2995
  if (!Array.isArray(r))
@@ -3022,14 +3033,14 @@ function lu(r, t, e) {
3022
3033
  };
3023
3034
  return Jo(n, t, e);
3024
3035
  }
3025
- function Rc(r, t) {
3036
+ function Oc(r, t) {
3026
3037
  t === void 0 && (t = "kilometers");
3027
3038
  var e = au[t];
3028
3039
  if (!e)
3029
3040
  throw new Error(t + " units is invalid");
3030
3041
  return r * e;
3031
3042
  }
3032
- function Oc(r, t) {
3043
+ function Dc(r, t) {
3033
3044
  t === void 0 && (t = "kilometers");
3034
3045
  var e = au[t];
3035
3046
  if (!e)
@@ -3042,12 +3053,12 @@ function ba(r) {
3042
3053
  function Vo(r) {
3043
3054
  return r.type === "Feature" ? r.geometry : r;
3044
3055
  }
3045
- function Dc(r, t, e) {
3056
+ function Tc(r, t, e) {
3046
3057
  e === void 0 && (e = {});
3047
3058
  var n = Vo(r), i = Vo(t), o = su.union(n.coordinates, i.coordinates);
3048
3059
  return o.length === 0 ? null : o.length === 1 ? uu(o[0], e.properties) : lu(o, e.properties);
3049
3060
  }
3050
- function Tc(r) {
3061
+ function Mc(r) {
3051
3062
  let t, e, n;
3052
3063
  return {
3053
3064
  c() {
@@ -3091,21 +3102,21 @@ function Tc(r) {
3091
3102
  }
3092
3103
  };
3093
3104
  }
3094
- function Mc(r, t, e) {
3105
+ function Ac(r, t, e) {
3095
3106
  let { displayIn: n } = t;
3096
3107
  return r.$$set = (i) => {
3097
3108
  "displayIn" in i && e(0, n = i.displayIn);
3098
3109
  }, [n];
3099
3110
  }
3100
- class Ac extends Xr {
3111
+ class Fc extends Xr {
3101
3112
  constructor(t) {
3102
- super(), qr(this, t, Mc, Tc, Ur, { displayIn: 0 });
3113
+ super(), qr(this, t, Ac, Mc, Ur, { displayIn: 0 });
3103
3114
  }
3104
3115
  }
3105
3116
  function cu(r, t, e) {
3106
3117
  if (r !== null)
3107
- for (var n, i, o, s, a, u, l, c = 0, f = 0, h, g = r.type, p = g === "FeatureCollection", y = g === "Feature", d = p ? r.features.length : 1, m = 0; m < d; m++) {
3108
- l = p ? r.features[m].geometry : y ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
3118
+ 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, v = 0; v < d; v++) {
3119
+ l = p ? r.features[v].geometry : m ? r.geometry : r, h = l ? l.type === "GeometryCollection" : !1, a = h ? l.geometries.length : 1;
3109
3120
  for (var E = 0; E < a; E++) {
3110
3121
  var C = 0, L = 0;
3111
3122
  if (s = h ? l.geometries[E] : l, s !== null) {
@@ -3118,7 +3129,7 @@ function cu(r, t, e) {
3118
3129
  if (t(
3119
3130
  u,
3120
3131
  f,
3121
- m,
3132
+ v,
3122
3133
  C,
3123
3134
  L
3124
3135
  ) === !1)
@@ -3131,7 +3142,7 @@ function cu(r, t, e) {
3131
3142
  if (t(
3132
3143
  u[n],
3133
3144
  f,
3134
- m,
3145
+ v,
3135
3146
  C,
3136
3147
  L
3137
3148
  ) === !1)
@@ -3147,7 +3158,7 @@ function cu(r, t, e) {
3147
3158
  if (t(
3148
3159
  u[n][i],
3149
3160
  f,
3150
- m,
3161
+ v,
3151
3162
  C,
3152
3163
  L
3153
3164
  ) === !1)
@@ -3165,7 +3176,7 @@ function cu(r, t, e) {
3165
3176
  if (t(
3166
3177
  u[n][i][o],
3167
3178
  f,
3168
- m,
3179
+ v,
3169
3180
  C,
3170
3181
  L
3171
3182
  ) === !1)
@@ -3197,8 +3208,8 @@ function Pa(r, t) {
3197
3208
  ;
3198
3209
  }
3199
3210
  function fu(r, t) {
3200
- var e, n, i, o, s, a, u, l, c, f, h = 0, g = r.type === "FeatureCollection", p = r.type === "Feature", y = g ? r.features.length : 1;
3201
- for (e = 0; e < y; e++) {
3211
+ 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;
3212
+ for (e = 0; e < m; e++) {
3202
3213
  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++) {
3203
3214
  if (o = u ? a.geometries[i] : a, o === null) {
3204
3215
  if (t(
@@ -3254,10 +3265,10 @@ function Ts(r) {
3254
3265
  }), t;
3255
3266
  }
3256
3267
  Ts.default = Ts;
3257
- function Fc(r, t) {
3268
+ function kc(r, t) {
3258
3269
  t === void 0 && (t = {});
3259
3270
  var e = Ts(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
3260
- return Pc([n, i], t.properties, t);
3271
+ return Rc([n, i], t.properties, t);
3261
3272
  }
3262
3273
  "fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
3263
3274
  configurable: !0,
@@ -3326,7 +3337,7 @@ var ke = function() {
3326
3337
  };
3327
3338
  function Be() {
3328
3339
  }
3329
- var v = function r() {
3340
+ var y = function r() {
3330
3341
  if (this.x = null, this.y = null, this.z = null, arguments.length === 0)
3331
3342
  this.x = 0, this.y = 0, this.z = r.NULL_ORDINATE;
3332
3343
  else if (arguments.length === 1) {
@@ -3335,22 +3346,22 @@ var v = function r() {
3335
3346
  } else
3336
3347
  arguments.length === 2 ? (this.x = arguments[0], this.y = arguments[1], this.z = r.NULL_ORDINATE) : arguments.length === 3 && (this.x = arguments[0], this.y = arguments[1], this.z = arguments[2]);
3337
3348
  }, fi = { DimensionalComparator: { configurable: !0 }, serialVersionUID: { configurable: !0 }, NULL_ORDINATE: { configurable: !0 }, X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 } };
3338
- v.prototype.setOrdinate = function(t, e) {
3349
+ y.prototype.setOrdinate = function(t, e) {
3339
3350
  switch (t) {
3340
- case v.X:
3351
+ case y.X:
3341
3352
  this.x = e;
3342
3353
  break;
3343
- case v.Y:
3354
+ case y.Y:
3344
3355
  this.y = e;
3345
3356
  break;
3346
- case v.Z:
3357
+ case y.Z:
3347
3358
  this.z = e;
3348
3359
  break;
3349
3360
  default:
3350
3361
  throw new ft("Invalid ordinate index: " + t);
3351
3362
  }
3352
3363
  };
3353
- v.prototype.equals2D = function() {
3364
+ y.prototype.equals2D = function() {
3354
3365
  if (arguments.length === 1) {
3355
3366
  var t = arguments[0];
3356
3367
  return !(this.x !== t.x || this.y !== t.y);
@@ -3359,60 +3370,60 @@ v.prototype.equals2D = function() {
3359
3370
  return !(!Jr.equalsWithTolerance(this.x, e.x, n) || !Jr.equalsWithTolerance(this.y, e.y, n));
3360
3371
  }
3361
3372
  };
3362
- v.prototype.getOrdinate = function(t) {
3373
+ y.prototype.getOrdinate = function(t) {
3363
3374
  switch (t) {
3364
- case v.X:
3375
+ case y.X:
3365
3376
  return this.x;
3366
- case v.Y:
3377
+ case y.Y:
3367
3378
  return this.y;
3368
- case v.Z:
3379
+ case y.Z:
3369
3380
  return this.z;
3370
3381
  }
3371
3382
  throw new ft("Invalid ordinate index: " + t);
3372
3383
  };
3373
- v.prototype.equals3D = function(t) {
3384
+ y.prototype.equals3D = function(t) {
3374
3385
  return this.x === t.x && this.y === t.y && (this.z === t.z || V.isNaN(this.z)) && V.isNaN(t.z);
3375
3386
  };
3376
- v.prototype.equals = function(t) {
3377
- return t instanceof v ? this.equals2D(t) : !1;
3387
+ y.prototype.equals = function(t) {
3388
+ return t instanceof y ? this.equals2D(t) : !1;
3378
3389
  };
3379
- v.prototype.equalInZ = function(t, e) {
3390
+ y.prototype.equalInZ = function(t, e) {
3380
3391
  return Jr.equalsWithTolerance(this.z, t.z, e);
3381
3392
  };
3382
- v.prototype.compareTo = function(t) {
3393
+ y.prototype.compareTo = function(t) {
3383
3394
  var e = t;
3384
3395
  return this.x < e.x ? -1 : this.x > e.x ? 1 : this.y < e.y ? -1 : this.y > e.y ? 1 : 0;
3385
3396
  };
3386
- v.prototype.clone = function() {
3397
+ y.prototype.clone = function() {
3387
3398
  };
3388
- v.prototype.copy = function() {
3389
- return new v(this);
3399
+ y.prototype.copy = function() {
3400
+ return new y(this);
3390
3401
  };
3391
- v.prototype.toString = function() {
3402
+ y.prototype.toString = function() {
3392
3403
  return "(" + this.x + ", " + this.y + ", " + this.z + ")";
3393
3404
  };
3394
- v.prototype.distance3D = function(t) {
3405
+ y.prototype.distance3D = function(t) {
3395
3406
  var e = this.x - t.x, n = this.y - t.y, i = this.z - t.z;
3396
3407
  return Math.sqrt(e * e + n * n + i * i);
3397
3408
  };
3398
- v.prototype.distance = function(t) {
3409
+ y.prototype.distance = function(t) {
3399
3410
  var e = this.x - t.x, n = this.y - t.y;
3400
3411
  return Math.sqrt(e * e + n * n);
3401
3412
  };
3402
- v.prototype.hashCode = function() {
3413
+ y.prototype.hashCode = function() {
3403
3414
  var t = 17;
3404
- return t = 37 * t + v.hashCode(this.x), t = 37 * t + v.hashCode(this.y), t;
3415
+ return t = 37 * t + y.hashCode(this.x), t = 37 * t + y.hashCode(this.y), t;
3405
3416
  };
3406
- v.prototype.setCoordinate = function(t) {
3417
+ y.prototype.setCoordinate = function(t) {
3407
3418
  this.x = t.x, this.y = t.y, this.z = t.z;
3408
3419
  };
3409
- v.prototype.interfaces_ = function() {
3420
+ y.prototype.interfaces_ = function() {
3410
3421
  return [ke, $o, Be];
3411
3422
  };
3412
- v.prototype.getClass = function() {
3413
- return v;
3423
+ y.prototype.getClass = function() {
3424
+ return y;
3414
3425
  };
3415
- v.hashCode = function() {
3426
+ y.hashCode = function() {
3416
3427
  if (arguments.length === 1) {
3417
3428
  var t = arguments[0], e = V.doubleToLongBits(t);
3418
3429
  return Math.trunc((e ^ e) >>> 32);
@@ -3436,7 +3447,7 @@ fi.Y.get = function() {
3436
3447
  fi.Z.get = function() {
3437
3448
  return 2;
3438
3449
  };
3439
- Object.defineProperties(v, fi);
3450
+ Object.defineProperties(y, fi);
3440
3451
  var sr = function(t) {
3441
3452
  if (this._dimensionsToTest = 2, arguments.length !== 0) {
3442
3453
  if (arguments.length === 1) {
@@ -3755,9 +3766,9 @@ I.prototype.selfAdd = function() {
3755
3766
  return o = this._hi + e, a = o - this._hi, s = o - a, s = e - a + (this._hi - s), u = s + this._lo, n = o + u, i = u + (o - n), this._hi = n + i, this._lo = i + (n - this._hi), this;
3756
3767
  }
3757
3768
  } else if (arguments.length === 2) {
3758
- var l = arguments[0], c = arguments[1], f = null, h = null, g = null, p = null, y = null, d = null, m = null, E = null;
3759
- y = this._hi + l, g = this._lo + c, m = y - this._hi, E = g - this._lo, d = y - m, p = g - E, d = l - m + (this._hi - d), p = c - E + (this._lo - p), m = d + g, f = y + m, h = m + (y - f), m = p + h;
3760
- var C = f + m, L = m + (f - C);
3769
+ var l = arguments[0], c = arguments[1], f = null, h = null, g = null, p = null, m = null, d = null, v = null, E = null;
3770
+ m = this._hi + l, g = this._lo + c, v = m - this._hi, E = g - this._lo, d = m - v, p = g - E, d = l - v + (this._hi - d), p = c - E + (this._lo - p), v = d + g, f = m + v, h = v + (m - f), v = p + h;
3771
+ var C = f + v, L = v + (f - C);
3761
3772
  return this._hi = C, this._lo = L, this;
3762
3773
  }
3763
3774
  };
@@ -3935,8 +3946,8 @@ I.parse = function(t) {
3935
3946
  var h = t.substring(e);
3936
3947
  try {
3937
3948
  l = un.parseInt(h);
3938
- } catch (m) {
3939
- throw m instanceof Error ? new Error("Invalid exponent " + h + " in string " + t) : m;
3949
+ } catch (v) {
3950
+ throw v instanceof Error ? new Error("Invalid exponent " + h + " in string " + t) : v;
3940
3951
  } finally {
3941
3952
  }
3942
3953
  break;
@@ -3947,8 +3958,8 @@ I.parse = function(t) {
3947
3958
  if (p === 0)
3948
3959
  g = s;
3949
3960
  else if (p > 0) {
3950
- var y = I.TEN.pow(p);
3951
- g = s.divide(y);
3961
+ var m = I.TEN.pow(p);
3962
+ g = s.divide(m);
3952
3963
  } else if (p < 0) {
3953
3964
  var d = I.TEN.pow(-p);
3954
3965
  g = s.multiply(d);
@@ -4027,8 +4038,8 @@ ce.signOfDet2x2 = function(t, e, n, i) {
4027
4038
  return o.signum();
4028
4039
  };
4029
4040
  ce.intersection = function(t, e, n, i) {
4030
- var o = I.valueOf(i.y).selfSubtract(n.y).selfMultiply(I.valueOf(e.x).selfSubtract(t.x)), s = I.valueOf(i.x).selfSubtract(n.x).selfMultiply(I.valueOf(e.y).selfSubtract(t.y)), a = o.subtract(s), u = I.valueOf(i.x).selfSubtract(n.x).selfMultiply(I.valueOf(t.y).selfSubtract(n.y)), l = I.valueOf(i.y).selfSubtract(n.y).selfMultiply(I.valueOf(t.x).selfSubtract(n.x)), c = u.subtract(l), f = c.selfDivide(a).doubleValue(), h = I.valueOf(t.x).selfAdd(I.valueOf(e.x).selfSubtract(t.x).selfMultiply(f)).doubleValue(), g = I.valueOf(e.x).selfSubtract(t.x).selfMultiply(I.valueOf(t.y).selfSubtract(n.y)), p = I.valueOf(e.y).selfSubtract(t.y).selfMultiply(I.valueOf(t.x).selfSubtract(n.x)), y = g.subtract(p), d = y.selfDivide(a).doubleValue(), m = I.valueOf(n.y).selfAdd(I.valueOf(i.y).selfSubtract(n.y).selfMultiply(d)).doubleValue();
4031
- return new v(h, m);
4041
+ var o = I.valueOf(i.y).selfSubtract(n.y).selfMultiply(I.valueOf(e.x).selfSubtract(t.x)), s = I.valueOf(i.x).selfSubtract(n.x).selfMultiply(I.valueOf(e.y).selfSubtract(t.y)), a = o.subtract(s), u = I.valueOf(i.x).selfSubtract(n.x).selfMultiply(I.valueOf(t.y).selfSubtract(n.y)), l = I.valueOf(i.y).selfSubtract(n.y).selfMultiply(I.valueOf(t.x).selfSubtract(n.x)), c = u.subtract(l), f = c.selfDivide(a).doubleValue(), h = I.valueOf(t.x).selfAdd(I.valueOf(e.x).selfSubtract(t.x).selfMultiply(f)).doubleValue(), g = I.valueOf(e.x).selfSubtract(t.x).selfMultiply(I.valueOf(t.y).selfSubtract(n.y)), p = I.valueOf(e.y).selfSubtract(t.y).selfMultiply(I.valueOf(t.x).selfSubtract(n.x)), m = g.subtract(p), d = m.selfDivide(a).doubleValue(), v = I.valueOf(n.y).selfAdd(I.valueOf(i.y).selfSubtract(n.y).selfMultiply(d)).doubleValue();
4042
+ return new y(h, v);
4032
4043
  };
4033
4044
  ce.orientationIndexFilter = function(t, e, n) {
4034
4045
  var i = null, o = (t.x - n.x) * (e.y - n.y), s = (t.y - n.y) * (e.x - n.x), a = o - s;
@@ -4132,7 +4143,7 @@ var Ue = function r() {
4132
4143
  } else if (arguments[0] instanceof r && arguments[1] instanceof r) {
4133
4144
  var i = arguments[0], o = arguments[1];
4134
4145
  this.x = i.y * o.w - o.y * i.w, this.y = o.x * i.w - i.x * o.w, this.w = i.x * o.y - o.x * i.y;
4135
- } else if (arguments[0] instanceof v && arguments[1] instanceof v) {
4146
+ } else if (arguments[0] instanceof y && arguments[1] instanceof y) {
4136
4147
  var s = arguments[0], a = arguments[1];
4137
4148
  this.x = s.y - a.y, this.y = a.x - s.x, this.w = s.x * a.y - a.x * s.y;
4138
4149
  }
@@ -4140,8 +4151,8 @@ var Ue = function r() {
4140
4151
  var u = arguments[0], l = arguments[1], c = arguments[2];
4141
4152
  this.x = u, this.y = l, this.w = c;
4142
4153
  } else if (arguments.length === 4) {
4143
- var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], y = f.y - h.y, d = h.x - f.x, m = f.x * h.y - h.x * f.y, E = g.y - p.y, C = p.x - g.x, L = g.x * p.y - p.x * g.y;
4144
- this.x = d * L - C * m, this.y = E * m - y * L, this.w = y * C - E * d;
4154
+ var f = arguments[0], h = arguments[1], g = arguments[2], p = arguments[3], m = f.y - h.y, d = h.x - f.x, v = f.x * h.y - h.x * f.y, E = g.y - p.y, C = p.x - g.x, L = g.x * p.y - p.x * g.y;
4155
+ this.x = d * L - C * v, this.y = E * v - m * L, this.w = m * C - E * d;
4145
4156
  }
4146
4157
  };
4147
4158
  Ue.prototype.getY = function() {
@@ -4157,7 +4168,7 @@ Ue.prototype.getX = function() {
4157
4168
  return t;
4158
4169
  };
4159
4170
  Ue.prototype.getCoordinate = function() {
4160
- var t = new v();
4171
+ var t = new y();
4161
4172
  return t.x = this.getX(), t.y = this.getY(), t;
4162
4173
  };
4163
4174
  Ue.prototype.interfaces_ = function() {
@@ -4167,16 +4178,16 @@ Ue.prototype.getClass = function() {
4167
4178
  return Ue;
4168
4179
  };
4169
4180
  Ue.intersection = function(t, e, n, i) {
4170
- var o = t.y - e.y, s = e.x - t.x, a = t.x * e.y - e.x * t.y, u = n.y - i.y, l = i.x - n.x, c = n.x * i.y - i.x * n.y, f = s * c - l * a, h = u * a - o * c, g = o * l - u * s, p = f / g, y = h / g;
4171
- if (V.isNaN(p) || V.isInfinite(p) || V.isNaN(y) || V.isInfinite(y))
4181
+ var o = t.y - e.y, s = e.x - t.x, a = t.x * e.y - e.x * t.y, u = n.y - i.y, l = i.x - n.x, c = n.x * i.y - i.x * n.y, f = s * c - l * a, h = u * a - o * c, g = o * l - u * s, p = f / g, m = h / g;
4182
+ if (V.isNaN(p) || V.isInfinite(p) || V.isNaN(m) || V.isInfinite(m))
4172
4183
  throw new qi();
4173
- return new v(p, y);
4184
+ return new y(p, m);
4174
4185
  };
4175
4186
  var k = function r() {
4176
4187
  if (this._minx = null, this._maxx = null, this._miny = null, this._maxy = null, arguments.length === 0)
4177
4188
  this.init();
4178
4189
  else if (arguments.length === 1) {
4179
- if (arguments[0] instanceof v) {
4190
+ if (arguments[0] instanceof y) {
4180
4191
  var t = arguments[0];
4181
4192
  this.init(t.x, t.x, t.y, t.y);
4182
4193
  } else if (arguments[0] instanceof r) {
@@ -4214,7 +4225,7 @@ k.prototype.getMaxX = function() {
4214
4225
  };
4215
4226
  k.prototype.covers = function() {
4216
4227
  if (arguments.length === 1) {
4217
- if (arguments[0] instanceof v) {
4228
+ if (arguments[0] instanceof y) {
4218
4229
  var t = arguments[0];
4219
4230
  return this.covers(t.x, t.y);
4220
4231
  } else if (arguments[0] instanceof k) {
@@ -4231,7 +4242,7 @@ k.prototype.intersects = function() {
4231
4242
  if (arguments[0] instanceof k) {
4232
4243
  var t = arguments[0];
4233
4244
  return this.isNull() || t.isNull() ? !1 : !(t._minx > this._maxx || t._maxx < this._minx || t._miny > this._maxy || t._maxy < this._miny);
4234
- } else if (arguments[0] instanceof v) {
4245
+ } else if (arguments[0] instanceof y) {
4235
4246
  var e = arguments[0];
4236
4247
  return this.intersects(e.x, e.y);
4237
4248
  }
@@ -4248,7 +4259,7 @@ k.prototype.getMinX = function() {
4248
4259
  };
4249
4260
  k.prototype.expandToInclude = function() {
4250
4261
  if (arguments.length === 1) {
4251
- if (arguments[0] instanceof v) {
4262
+ if (arguments[0] instanceof y) {
4252
4263
  var t = arguments[0];
4253
4264
  this.expandToInclude(t.x, t.y);
4254
4265
  } else if (arguments[0] instanceof k) {
@@ -4311,7 +4322,7 @@ k.prototype.contains = function() {
4311
4322
  if (arguments[0] instanceof k) {
4312
4323
  var t = arguments[0];
4313
4324
  return this.covers(t);
4314
- } else if (arguments[0] instanceof v) {
4325
+ } else if (arguments[0] instanceof y) {
4315
4326
  var e = arguments[0];
4316
4327
  return this.covers(e);
4317
4328
  }
@@ -4321,13 +4332,13 @@ k.prototype.contains = function() {
4321
4332
  }
4322
4333
  };
4323
4334
  k.prototype.centre = function() {
4324
- return this.isNull() ? null : new v((this.getMinX() + this.getMaxX()) / 2, (this.getMinY() + this.getMaxY()) / 2);
4335
+ return this.isNull() ? null : new y((this.getMinX() + this.getMaxX()) / 2, (this.getMinY() + this.getMaxY()) / 2);
4325
4336
  };
4326
4337
  k.prototype.init = function() {
4327
4338
  if (arguments.length === 0)
4328
4339
  this.setToNull();
4329
4340
  else if (arguments.length === 1) {
4330
- if (arguments[0] instanceof v) {
4341
+ if (arguments[0] instanceof y) {
4331
4342
  var t = arguments[0];
4332
4343
  this.init(t.x, t.x, t.y, t.y);
4333
4344
  } else if (arguments[0] instanceof k) {
@@ -4355,7 +4366,7 @@ k.prototype.distance = function(t) {
4355
4366
  };
4356
4367
  k.prototype.hashCode = function() {
4357
4368
  var t = 17;
4358
- return t = 37 * t + v.hashCode(this._minx), t = 37 * t + v.hashCode(this._maxx), t = 37 * t + v.hashCode(this._miny), t = 37 * t + v.hashCode(this._maxy), t;
4369
+ return t = 37 * t + y.hashCode(this._minx), t = 37 * t + y.hashCode(this._maxx), t = 37 * t + y.hashCode(this._miny), t = 37 * t + y.hashCode(this._maxy), t;
4359
4370
  };
4360
4371
  k.prototype.interfaces_ = function() {
4361
4372
  return [ke, Be];
@@ -4508,7 +4519,7 @@ var Un = {
4508
4519
  if (t === void 0)
4509
4520
  return this.geometryFactory.createPoint();
4510
4521
  var e = t.trim().split($e.spaces);
4511
- return this.geometryFactory.createPoint(new v(
4522
+ return this.geometryFactory.createPoint(new y(
4512
4523
  Number.parseFloat(e[0]),
4513
4524
  Number.parseFloat(e[1])
4514
4525
  ));
@@ -4539,7 +4550,7 @@ var Un = {
4539
4550
  if (t === void 0)
4540
4551
  return this.geometryFactory.createLineString();
4541
4552
  for (var e = t.trim().split(","), n = [], i, o = 0, s = e.length; o < s; ++o)
4542
- i = e[o].trim().split($e.spaces), n.push(new v(Number.parseFloat(i[0]), Number.parseFloat(i[1])));
4553
+ i = e[o].trim().split($e.spaces), n.push(new y(Number.parseFloat(i[0]), Number.parseFloat(i[1])));
4543
4554
  return this.geometryFactory.createLineString(n);
4544
4555
  },
4545
4556
  /**
@@ -4553,7 +4564,7 @@ var Un = {
4553
4564
  if (t === void 0)
4554
4565
  return this.geometryFactory.createLinearRing();
4555
4566
  for (var e = t.trim().split(","), n = [], i, o = 0, s = e.length; o < s; ++o)
4556
- i = e[o].trim().split($e.spaces), n.push(new v(Number.parseFloat(i[0]), Number.parseFloat(i[1])));
4567
+ i = e[o].trim().split($e.spaces), n.push(new y(Number.parseFloat(i[0]), Number.parseFloat(i[1])));
4557
4568
  return this.geometryFactory.createLinearRing(n);
4558
4569
  },
4559
4570
  /**
@@ -4680,7 +4691,7 @@ q.equals = function() {
4680
4691
  var gt = function() {
4681
4692
  this._result = null, this._inputLines = Array(2).fill().map(function() {
4682
4693
  return Array(2);
4683
- }), this._intPt = new Array(2).fill(null), this._intLineIndex = null, this._isProper = null, this._pa = null, this._pb = null, this._precisionModel = null, this._intPt[0] = new v(), this._intPt[1] = new v(), this._pa = this._intPt[0], this._pb = this._intPt[1], this._result = 0;
4694
+ }), this._intPt = new Array(2).fill(null), this._intLineIndex = null, this._isProper = null, this._pa = null, this._pb = null, this._precisionModel = null, this._intPt[0] = new y(), this._intPt[1] = new y(), this._pa = this._intPt[0], this._pb = this._intPt[1], this._result = 0;
4684
4695
  }, hi = { DONT_INTERSECT: { configurable: !0 }, DO_INTERSECT: { configurable: !0 }, COLLINEAR: { configurable: !0 }, NO_INTERSECTION: { configurable: !0 }, POINT_INTERSECTION: { configurable: !0 }, COLLINEAR_INTERSECTION: { configurable: !0 } };
4685
4696
  gt.prototype.getIndexAlongSegment = function(t, e) {
4686
4697
  return this.computeIntLineIndex(), this._intLineIndex[t][e];
@@ -4825,7 +4836,7 @@ var Yr = function(r) {
4825
4836
  return a;
4826
4837
  }, t.prototype.intersection = function(n, i, o, s) {
4827
4838
  var a = this.intersectionWithNormalization(n, i, o, s);
4828
- return this.isInSegmentEnvelopes(a) || (a = new v(t.nearestEndpoint(n, i, o, s))), this._precisionModel !== null && this._precisionModel.makePrecise(a), a;
4839
+ return this.isInSegmentEnvelopes(a) || (a = new y(t.nearestEndpoint(n, i, o, s))), this._precisionModel !== null && this._precisionModel.makePrecise(a), a;
4829
4840
  }, t.prototype.smallestInAbsValue = function(n, i, o, s) {
4830
4841
  var a = n, u = Math.abs(a);
4831
4842
  return Math.abs(i) < u && (a = i, u = Math.abs(i)), Math.abs(o) < u && (a = o, u = Math.abs(o)), Math.abs(s) < u && (a = s), a;
@@ -4833,7 +4844,7 @@ var Yr = function(r) {
4833
4844
  var u = ce.intersection(n, i, o, s), l = this.isInSegmentEnvelopes(u);
4834
4845
  qt.out.println("DD in env = " + l + " --------------------- " + u), a.distance(u) > 1e-4 && qt.out.println("Distance = " + a.distance(u));
4835
4846
  }, t.prototype.intersectionWithNormalization = function(n, i, o, s) {
4836
- var a = new v(n), u = new v(i), l = new v(o), c = new v(s), f = new v();
4847
+ var a = new y(n), u = new y(i), l = new y(o), c = new y(s), f = new y();
4837
4848
  this.normalizeToEnvCentre(a, u, l, c, f);
4838
4849
  var h = this.safeHCoordinateIntersection(a, u, l, c);
4839
4850
  return h.x += f.x, h.y += f.y, h;
@@ -4841,7 +4852,7 @@ var Yr = function(r) {
4841
4852
  var a = k.intersects(n, i, o), u = k.intersects(n, i, s), l = k.intersects(o, s, n), c = k.intersects(o, s, i);
4842
4853
  return a && u ? (this._intPt[0] = o, this._intPt[1] = s, r.COLLINEAR_INTERSECTION) : l && c ? (this._intPt[0] = n, this._intPt[1] = i, r.COLLINEAR_INTERSECTION) : a && l ? (this._intPt[0] = o, this._intPt[1] = n, o.equals(n) && !u && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : a && c ? (this._intPt[0] = o, this._intPt[1] = i, o.equals(i) && !u && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && l ? (this._intPt[0] = s, this._intPt[1] = n, s.equals(n) && !a && !c ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : u && c ? (this._intPt[0] = s, this._intPt[1] = i, s.equals(i) && !a && !l ? r.POINT_INTERSECTION : r.COLLINEAR_INTERSECTION) : r.NO_INTERSECTION;
4843
4854
  }, t.prototype.normalizeToEnvCentre = function(n, i, o, s, a) {
4844
- var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, y = o.y > s.y ? o.y : s.y, d = u > h ? u : h, m = c < p ? c : p, E = l > g ? l : g, C = f < y ? f : y, L = (d + m) / 2, N = (E + C) / 2;
4855
+ var u = n.x < i.x ? n.x : i.x, l = n.y < i.y ? n.y : i.y, c = n.x > i.x ? n.x : i.x, f = n.y > i.y ? n.y : i.y, h = o.x < s.x ? o.x : s.x, g = o.y < s.y ? o.y : s.y, p = o.x > s.x ? o.x : s.x, m = o.y > s.y ? o.y : s.y, d = u > h ? u : h, v = c < p ? c : p, E = l > g ? l : g, C = f < m ? f : m, L = (d + v) / 2, N = (E + C) / 2;
4845
4856
  a.x = L, a.y = N, n.x -= a.x, n.y -= a.y, i.x -= a.x, i.y -= a.y, o.x -= a.x, o.y -= a.y, s.x -= a.x, s.y -= a.y;
4846
4857
  }, t.prototype.computeIntersect = function(n, i, o, s) {
4847
4858
  if (this._isProper = !1, !k.intersects(n, i, o, s))
@@ -4853,7 +4864,7 @@ var Yr = function(r) {
4853
4864
  if (l > 0 && c > 0 || l < 0 && c < 0)
4854
4865
  return r.NO_INTERSECTION;
4855
4866
  var f = a === 0 && u === 0 && l === 0 && c === 0;
4856
- return f ? this.computeCollinearIntersection(n, i, o, s) : (a === 0 || u === 0 || l === 0 || c === 0 ? (this._isProper = !1, n.equals2D(o) || n.equals2D(s) ? this._intPt[0] = n : i.equals2D(o) || i.equals2D(s) ? this._intPt[0] = i : a === 0 ? this._intPt[0] = new v(o) : u === 0 ? this._intPt[0] = new v(s) : l === 0 ? this._intPt[0] = new v(n) : c === 0 && (this._intPt[0] = new v(i))) : (this._isProper = !0, this._intPt[0] = this.intersection(n, i, o, s)), r.POINT_INTERSECTION);
4867
+ return f ? this.computeCollinearIntersection(n, i, o, s) : (a === 0 || u === 0 || l === 0 || c === 0 ? (this._isProper = !1, n.equals2D(o) || n.equals2D(s) ? this._intPt[0] = n : i.equals2D(o) || i.equals2D(s) ? this._intPt[0] = i : a === 0 ? this._intPt[0] = new y(o) : u === 0 ? this._intPt[0] = new y(s) : l === 0 ? this._intPt[0] = new y(n) : c === 0 && (this._intPt[0] = new y(i))) : (this._isProper = !0, this._intPt[0] = this.intersection(n, i, o, s)), r.POINT_INTERSECTION);
4857
4868
  }, t.prototype.interfaces_ = function() {
4858
4869
  return [];
4859
4870
  }, t.prototype.getClass = function() {
@@ -4964,12 +4975,12 @@ sn.prototype.getClass = function() {
4964
4975
  return sn;
4965
4976
  };
4966
4977
  sn.locatePointInRing = function() {
4967
- if (arguments[0] instanceof v && z(arguments[1], Q)) {
4968
- for (var t = arguments[0], e = arguments[1], n = new sn(t), i = new v(), o = new v(), s = 1; s < e.size(); s++)
4978
+ if (arguments[0] instanceof y && z(arguments[1], Q)) {
4979
+ for (var t = arguments[0], e = arguments[1], n = new sn(t), i = new y(), o = new y(), s = 1; s < e.size(); s++)
4969
4980
  if (e.getCoordinate(s, i), e.getCoordinate(s - 1, o), n.countSegment(i, o), n.isOnSegment())
4970
4981
  return n.getLocation();
4971
4982
  return n.getLocation();
4972
- } else if (arguments[0] instanceof v && arguments[1] instanceof Array) {
4983
+ } else if (arguments[0] instanceof y && arguments[1] instanceof Array) {
4973
4984
  for (var a = arguments[0], u = arguments[1], l = new sn(a), c = 1; c < u.length; c++) {
4974
4985
  var f = u[c], h = u[c - 1];
4975
4986
  if (l.countSegment(f, h), l.isOnSegment())
@@ -5003,12 +5014,12 @@ M.signedArea = function() {
5003
5014
  var u = arguments[0], l = u.size();
5004
5015
  if (l < 3)
5005
5016
  return 0;
5006
- var c = new v(), f = new v(), h = new v();
5017
+ var c = new y(), f = new y(), h = new y();
5007
5018
  u.getCoordinate(0, f), u.getCoordinate(1, h);
5008
5019
  var g = f.x;
5009
5020
  h.x -= g;
5010
- for (var p = 0, y = 1; y < l - 1; y++)
5011
- c.y = f.y, f.x = h.x, f.y = h.y, u.getCoordinate(y + 1, h), h.x -= g, p += f.x * (c.y - h.y);
5021
+ for (var p = 0, m = 1; m < l - 1; m++)
5022
+ c.y = f.y, f.x = h.x, f.y = h.y, u.getCoordinate(m + 1, h), h.x -= g, p += f.x * (c.y - h.y);
5012
5023
  return p / 2;
5013
5024
  }
5014
5025
  };
@@ -5038,7 +5049,7 @@ M.computeLength = function(t) {
5038
5049
  var e = t.size();
5039
5050
  if (e <= 1)
5040
5051
  return 0;
5041
- var n = 0, i = new v();
5052
+ var n = 0, i = new y();
5042
5053
  t.getCoordinate(0, i);
5043
5054
  for (var o = i.x, s = i.y, a = 1; a < e; a++) {
5044
5055
  t.getCoordinate(a, i);
@@ -5454,7 +5465,7 @@ var O = function(r) {
5454
5465
  var o = this.array_[n];
5455
5466
  return this.array_[n] = i, o;
5456
5467
  }, t.prototype.iterator = function() {
5457
- return new kc(this);
5468
+ return new Bc(this);
5458
5469
  }, t.prototype.get = function(n) {
5459
5470
  if (n < 0 || n >= this.size())
5460
5471
  throw new Us();
@@ -5475,7 +5486,7 @@ var O = function(r) {
5475
5486
  }
5476
5487
  return o;
5477
5488
  }, t;
5478
- }(qe), kc = function(r) {
5489
+ }(qe), Bc = function(r) {
5479
5490
  function t(e) {
5480
5491
  r.call(this), this.arrayList_ = e, this.position_ = 0;
5481
5492
  }
@@ -5531,7 +5542,7 @@ var O = function(r) {
5531
5542
  if (arguments[0] instanceof Array && typeof arguments[1] == "boolean") {
5532
5543
  var s = arguments[0], a = arguments[1];
5533
5544
  return this.add(s, a, !0), !0;
5534
- } else if (arguments[0] instanceof v && typeof arguments[1] == "boolean") {
5545
+ } else if (arguments[0] instanceof y && typeof arguments[1] == "boolean") {
5535
5546
  var u = arguments[0], l = arguments[1];
5536
5547
  if (!l && this.size() >= 1) {
5537
5548
  var c = this.get(this.size() - 1);
@@ -5545,15 +5556,15 @@ var O = function(r) {
5545
5556
  }
5546
5557
  } else if (arguments.length === 3) {
5547
5558
  if (typeof arguments[2] == "boolean" && arguments[0] instanceof Array && typeof arguments[1] == "boolean") {
5548
- var g = arguments[0], p = arguments[1], y = arguments[2];
5549
- if (y)
5559
+ var g = arguments[0], p = arguments[1], m = arguments[2];
5560
+ if (m)
5550
5561
  for (var d = 0; d < g.length; d++)
5551
5562
  i.add(g[d], p);
5552
5563
  else
5553
- for (var m = g.length - 1; m >= 0; m--)
5554
- i.add(g[m], p);
5564
+ for (var v = g.length - 1; v >= 0; v--)
5565
+ i.add(g[v], p);
5555
5566
  return !0;
5556
- } else if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof v) {
5567
+ } else if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof y) {
5557
5568
  var E = arguments[0], C = arguments[1], L = arguments[2];
5558
5569
  if (!L) {
5559
5570
  var N = this.size();
@@ -5580,7 +5591,7 @@ var O = function(r) {
5580
5591
  return !0;
5581
5592
  }
5582
5593
  }, t.prototype.closeRing = function() {
5583
- this.size() > 0 && this.add(new v(this.get(0)), !1);
5594
+ this.size() > 0 && this.add(new y(this.get(0)), !1);
5584
5595
  }, t.prototype.interfaces_ = function() {
5585
5596
  return [];
5586
5597
  }, t.prototype.getClass = function() {
@@ -5680,11 +5691,11 @@ j.removeNull = function(t) {
5680
5691
  j.copyDeep = function() {
5681
5692
  if (arguments.length === 1) {
5682
5693
  for (var t = arguments[0], e = new Array(t.length).fill(null), n = 0; n < t.length; n++)
5683
- e[n] = new v(t[n]);
5694
+ e[n] = new y(t[n]);
5684
5695
  return e;
5685
5696
  } else if (arguments.length === 5)
5686
5697
  for (var i = arguments[0], o = arguments[1], s = arguments[2], a = arguments[3], u = arguments[4], l = 0; l < u; l++)
5687
- s[a + l] = new v(i[o + l]);
5698
+ s[a + l] = new y(i[o + l]);
5688
5699
  };
5689
5700
  j.isEqualReversed = function(t, e) {
5690
5701
  for (var n = 0; n < t.length; n++) {
@@ -5804,7 +5815,7 @@ pi.prototype.values = function() {
5804
5815
  };
5805
5816
  pi.prototype.entrySet = function() {
5806
5817
  };
5807
- var Bc = function(r) {
5818
+ var Gc = function(r) {
5808
5819
  function t() {
5809
5820
  r.apply(this, arguments);
5810
5821
  }
@@ -5848,9 +5859,9 @@ var qs = function(r) {
5848
5859
  i.push(n.array_[o]);
5849
5860
  return i;
5850
5861
  }, t.prototype.iterator = function() {
5851
- return new Gc(this);
5862
+ return new zc(this);
5852
5863
  }, t;
5853
- }(ns), Gc = function(r) {
5864
+ }(ns), zc = function(r) {
5854
5865
  function t(e) {
5855
5866
  r.call(this), this.hashSet_ = e, this.position_ = 0;
5856
5867
  }
@@ -5882,7 +5893,7 @@ function Oa(r) {
5882
5893
  function Kt() {
5883
5894
  this.root_ = null, this.size_ = 0;
5884
5895
  }
5885
- Kt.prototype = new Bc();
5896
+ Kt.prototype = new Gc();
5886
5897
  Kt.prototype.get = function(r) {
5887
5898
  for (var t = this.root_; t !== null; ) {
5888
5899
  var e = r.compareTo(t.key);
@@ -6274,7 +6285,7 @@ var ie = function(r) {
6274
6285
  return this.compare(s, a);
6275
6286
  } else if (arguments.length === 2) {
6276
6287
  for (var u = arguments[0], l = arguments[1], c = u, f = this.getNumGeometries(), h = c.getNumGeometries(), g = 0; g < f && g < h; ) {
6277
- var p = i.getGeometryN(g), y = c.getGeometryN(g), d = p.compareToSameClass(y, l);
6288
+ var p = i.getGeometryN(g), m = c.getGeometryN(g), d = p.compareToSameClass(m, l);
6278
6289
  if (d !== 0)
6279
6290
  return d;
6280
6291
  g++;
@@ -6446,18 +6457,18 @@ qo.prototype.interfaces_ = function() {
6446
6457
  qo.prototype.getClass = function() {
6447
6458
  return qo;
6448
6459
  };
6449
- function zc() {
6450
- }
6451
6460
  function Vc() {
6452
6461
  }
6453
- var Uc = function() {
6454
- };
6455
- function qc() {
6462
+ function Uc() {
6456
6463
  }
6464
+ var qc = function() {
6465
+ };
6457
6466
  function Xc() {
6458
6467
  }
6459
6468
  function Yc() {
6460
6469
  }
6470
+ function Wc() {
6471
+ }
6461
6472
  var De = function() {
6462
6473
  }, Xs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
6463
6474
  De.prototype.interfaces_ = function() {
@@ -6473,16 +6484,16 @@ De.chars = function(t, e) {
6473
6484
  };
6474
6485
  De.getStackTrace = function() {
6475
6486
  if (arguments.length === 1) {
6476
- var t = arguments[0], e = new qc(), n = new zc();
6487
+ var t = arguments[0], e = new Xc(), n = new Vc();
6477
6488
  return t.printStackTrace(n), e.toString();
6478
6489
  } else if (arguments.length === 2) {
6479
6490
  var i = arguments[0], o = arguments[1], s = "";
6480
- new Vc(De.getStackTrace(i));
6481
- for (var a = new Yc(), u = 0; u < o; u++)
6491
+ new Uc(De.getStackTrace(i));
6492
+ for (var a = new Wc(), u = 0; u < o; u++)
6482
6493
  try {
6483
6494
  s += a.readLine() + De.NEWLINE;
6484
6495
  } catch (l) {
6485
- if (l instanceof Xc)
6496
+ if (l instanceof Yc)
6486
6497
  q.shouldNeverReachHere();
6487
6498
  else
6488
6499
  throw l;
@@ -6514,7 +6525,7 @@ Xs.NEWLINE.get = function() {
6514
6525
  return qt.getProperty("line.separator");
6515
6526
  };
6516
6527
  Xs.SIMPLE_ORDINATE_FORMAT.get = function() {
6517
- return new Uc();
6528
+ return new qc();
6518
6529
  };
6519
6530
  Object.defineProperties(De, Xs);
6520
6531
  var Ct = function() {
@@ -6871,8 +6882,8 @@ var Ot = function(r) {
6871
6882
  return !1;
6872
6883
  }
6873
6884
  for (var l = i.getX(0), c = i.getY(0), f = 1; f <= 4; f++) {
6874
- var h = i.getX(f), g = i.getY(f), p = h !== l, y = g !== c;
6875
- if (p === y)
6885
+ var h = i.getX(f), g = i.getY(f), p = h !== l, m = g !== c;
6886
+ if (p === m)
6876
6887
  return !1;
6877
6888
  l = h, c = g;
6878
6889
  }
@@ -6943,13 +6954,13 @@ var Ot = function(r) {
6943
6954
  var u = arguments[0], l = arguments[1], c = u, f = this._shell, h = c._shell, g = f.compareToSameClass(h, l);
6944
6955
  if (g !== 0)
6945
6956
  return g;
6946
- for (var p = this.getNumInteriorRing(), y = c.getNumInteriorRing(), d = 0; d < p && d < y; ) {
6947
- var m = i.getInteriorRingN(d), E = c.getInteriorRingN(d), C = m.compareToSameClass(E, l);
6957
+ for (var p = this.getNumInteriorRing(), m = c.getNumInteriorRing(), d = 0; d < p && d < m; ) {
6958
+ var v = i.getInteriorRingN(d), E = c.getInteriorRingN(d), C = v.compareToSameClass(E, l);
6948
6959
  if (C !== 0)
6949
6960
  return C;
6950
6961
  d++;
6951
6962
  }
6952
- return d < p ? 1 : d < y ? -1 : 0;
6963
+ return d < p ? 1 : d < m ? -1 : 0;
6953
6964
  }
6954
6965
  }, t.prototype.apply = function(i) {
6955
6966
  var o = this;
@@ -7046,7 +7057,7 @@ var Ot = function(r) {
7046
7057
  }, Object.defineProperties(t, e), t;
7047
7058
  }(ie), bn = function(r) {
7048
7059
  function t(n, i) {
7049
- n instanceof v && i instanceof H && (n = i.getCoordinateSequenceFactory().create(n)), r.call(this, n, i), this.validateConstruction();
7060
+ n instanceof y && i instanceof H && (n = i.getCoordinateSequenceFactory().create(n)), r.call(this, n, i), this.validateConstruction();
7050
7061
  }
7051
7062
  r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
7052
7063
  var e = { MINIMUM_VALID_SIZE: { configurable: !0 }, serialVersionUID: { configurable: !0 } };
@@ -7219,7 +7230,7 @@ var _t = function() {
7219
7230
  var e = arguments[0];
7220
7231
  this._coordinates = new Array(e).fill(null);
7221
7232
  for (var n = 0; n < e; n++)
7222
- t._coordinates[n] = new v();
7233
+ t._coordinates[n] = new y();
7223
7234
  } else if (z(arguments[0], Q)) {
7224
7235
  var i = arguments[0];
7225
7236
  if (i === null)
@@ -7236,7 +7247,7 @@ var _t = function() {
7236
7247
  var u = arguments[0], l = arguments[1];
7237
7248
  this._coordinates = new Array(u).fill(null), this._dimension = l;
7238
7249
  for (var c = 0; c < u; c++)
7239
- t._coordinates[c] = new v();
7250
+ t._coordinates[c] = new y();
7240
7251
  }
7241
7252
  }
7242
7253
  }, mu = { serialVersionUID: { configurable: !0 } };
@@ -7279,7 +7290,7 @@ _t.prototype.getCoordinate = function() {
7279
7290
  }
7280
7291
  };
7281
7292
  _t.prototype.getCoordinateCopy = function(t) {
7282
- return new v(this._coordinates[t]);
7293
+ return new y(this._coordinates[t]);
7283
7294
  };
7284
7295
  _t.prototype.getDimension = function() {
7285
7296
  return this._dimension;
@@ -7433,7 +7444,7 @@ $.prototype.makePrecise = function() {
7433
7444
  return e;
7434
7445
  }
7435
7446
  return this._modelType === $.FIXED ? Math.round(t * this._scale) / this._scale : t;
7436
- } else if (arguments[0] instanceof v) {
7447
+ } else if (arguments[0] instanceof y) {
7437
7448
  var n = arguments[0];
7438
7449
  if (this._modelType === $.FLOATING)
7439
7450
  return null;
@@ -7493,7 +7504,7 @@ var H = function r() {
7493
7504
  this._precisionModel = new $(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], Ni) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof $ && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
7494
7505
  }, Eu = { serialVersionUID: { configurable: !0 } };
7495
7506
  H.prototype.toGeometry = function(t) {
7496
- 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);
7507
+ return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new y(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new y(t.getMinX(), t.getMinY()), new y(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new y(t.getMinX(), t.getMinY()), new y(t.getMinX(), t.getMaxY()), new y(t.getMaxX(), t.getMaxY()), new y(t.getMaxX(), t.getMinY()), new y(t.getMinX(), t.getMinY())]), null);
7497
7508
  };
7498
7509
  H.prototype.createLineString = function(t) {
7499
7510
  if (t) {
@@ -7540,7 +7551,7 @@ H.prototype.createPoint = function() {
7540
7551
  if (arguments.length === 0)
7541
7552
  return this.createPoint(this.getCoordinateSequenceFactory().create([]));
7542
7553
  if (arguments.length === 1) {
7543
- if (arguments[0] instanceof v) {
7554
+ if (arguments[0] instanceof y) {
7544
7555
  var t = arguments[0];
7545
7556
  return this.createPoint(t !== null ? this.getCoordinateSequenceFactory().create([t]) : null);
7546
7557
  } else if (z(arguments[0], Q)) {
@@ -7690,7 +7701,7 @@ Eu.serialVersionUID.get = function() {
7690
7701
  return -6820524753094096e3;
7691
7702
  };
7692
7703
  Object.defineProperties(H, Eu);
7693
- var Wc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], os = function(t) {
7704
+ var Hc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], os = function(t) {
7694
7705
  this.geometryFactory = t || new H();
7695
7706
  };
7696
7707
  os.prototype.read = function(t) {
@@ -7699,7 +7710,7 @@ os.prototype.read = function(t) {
7699
7710
  var n = e.type;
7700
7711
  if (!en[n])
7701
7712
  throw new Error("Unknown GeoJSON type: " + e.type);
7702
- return Wc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
7713
+ return Hc.indexOf(n) !== -1 ? en[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? en[n].apply(this, [e.geometries]) : en[n].apply(this, [e]);
7703
7714
  };
7704
7715
  os.prototype.write = function(t) {
7705
7716
  var e = t.getGeometryType();
@@ -7756,7 +7767,7 @@ var en = {
7756
7767
  coordinates: function(r) {
7757
7768
  for (var t = [], e = 0; e < r.length; ++e) {
7758
7769
  var n = r[e];
7759
- t.push(new v(n[0], n[1]));
7770
+ t.push(new y(n[0], n[1]));
7760
7771
  }
7761
7772
  return t;
7762
7773
  },
@@ -7770,11 +7781,11 @@ var en = {
7770
7781
  */
7771
7782
  bbox: function(r) {
7772
7783
  return this.geometryFactory.createLinearRing([
7773
- new v(r[0], r[1]),
7774
- new v(r[2], r[1]),
7775
- new v(r[2], r[3]),
7776
- new v(r[0], r[3]),
7777
- new v(r[0], r[1])
7784
+ new y(r[0], r[1]),
7785
+ new y(r[2], r[1]),
7786
+ new y(r[2], r[3]),
7787
+ new y(r[0], r[3]),
7788
+ new y(r[0], r[1])
7778
7789
  ]);
7779
7790
  },
7780
7791
  /**
@@ -7786,7 +7797,7 @@ var en = {
7786
7797
  * @return {Point} Point.
7787
7798
  */
7788
7799
  Point: function(r) {
7789
- var t = new v(r[0], r[1]);
7800
+ var t = new y(r[0], r[1]);
7790
7801
  return this.geometryFactory.createPoint(t);
7791
7802
  },
7792
7803
  /**
@@ -8152,7 +8163,7 @@ hn.prototype.getClass = function() {
8152
8163
  };
8153
8164
  var Zn = function(r) {
8154
8165
  function t(e, n) {
8155
- r.call(this, t.msgWithCoord(e, n)), this.pt = n ? new v(n) : null, this.name = "TopologyException";
8166
+ r.call(this, t.msgWithCoord(e, n)), this.pt = n ? new y(n) : null, this.name = "TopologyException";
8156
8167
  }
8157
8168
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.getCoordinate = function() {
8158
8169
  return this.pt;
@@ -8605,7 +8616,7 @@ wt.prototype.interfaces_ = function() {
8605
8616
  wt.prototype.getClass = function() {
8606
8617
  return wt;
8607
8618
  };
8608
- var Hc = function(r) {
8619
+ var jc = function(r) {
8609
8620
  function t() {
8610
8621
  var e = arguments[0], n = arguments[1];
8611
8622
  r.call(this, e, n);
@@ -8619,7 +8630,7 @@ var Hc = function(r) {
8619
8630
  }, t.prototype.getClass = function() {
8620
8631
  return t;
8621
8632
  }, t;
8622
- }(wt), jc = function(r) {
8633
+ }(wt), Kc = function(r) {
8623
8634
  function t() {
8624
8635
  var e = arguments[0], n = arguments[1];
8625
8636
  r.call(this, e, n);
@@ -8628,7 +8639,7 @@ var Hc = function(r) {
8628
8639
  var n = this, i = new O(), o = this._startDe;
8629
8640
  do {
8630
8641
  if (o.getMinEdgeRing() === null) {
8631
- var s = new Hc(o, n._geometryFactory);
8642
+ var s = new jc(o, n._geometryFactory);
8632
8643
  i.add(s);
8633
8644
  }
8634
8645
  o = o.getNext();
@@ -8772,7 +8783,7 @@ gn.prototype.find = function(t) {
8772
8783
  return this.nodeMap.get(t);
8773
8784
  };
8774
8785
  gn.prototype.addNode = function() {
8775
- if (arguments[0] instanceof v) {
8786
+ if (arguments[0] instanceof y) {
8776
8787
  var t = arguments[0], e = this.nodeMap.get(t);
8777
8788
  return e === null && (e = this.nodeFact.createNode(t), this.nodeMap.put(t, e)), e;
8778
8789
  } else if (arguments[0] instanceof ls) {
@@ -8844,7 +8855,7 @@ rt.quadrant = function() {
8844
8855
  if (t === 0 && e === 0)
8845
8856
  throw new ft("Cannot compute the quadrant for point ( " + t + ", " + e + " )");
8846
8857
  return t >= 0 ? e >= 0 ? rt.NE : rt.SE : e >= 0 ? rt.NW : rt.SW;
8847
- } else if (arguments[0] instanceof v && arguments[1] instanceof v) {
8858
+ } else if (arguments[0] instanceof y && arguments[1] instanceof y) {
8848
8859
  var n = arguments[0], i = arguments[1];
8849
8860
  if (i.x === n.x && i.y === n.y)
8850
8861
  throw new ft("Cannot compute the quadrant for two identical points " + n);
@@ -9045,7 +9056,7 @@ pt.prototype.addNode = function() {
9045
9056
  if (arguments[0] instanceof ls) {
9046
9057
  var t = arguments[0];
9047
9058
  return this._nodes.addNode(t);
9048
- } else if (arguments[0] instanceof v) {
9059
+ } else if (arguments[0] instanceof y) {
9049
9060
  var e = arguments[0];
9050
9061
  return this._nodes.addNode(e);
9051
9062
  }
@@ -9193,7 +9204,7 @@ ve.prototype.buildMaximalEdgeRings = function(t) {
9193
9204
  for (var e = this, n = new O(), i = t.iterator(); i.hasNext(); ) {
9194
9205
  var o = i.next();
9195
9206
  if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
9196
- var s = new jc(o, e._geometryFactory);
9207
+ var s = new Kc(o, e._geometryFactory);
9197
9208
  n.add(s), s.setInResult();
9198
9209
  }
9199
9210
  }
@@ -9527,9 +9538,9 @@ Mt.prototype.query = function() {
9527
9538
  t.getIntersectsOp().intersects(f.getBounds(), s) && (f instanceof Rt ? t.query(s, f, u) : f instanceof We ? u.visitItem(f.getItem()) : q.shouldNeverReachHere());
9528
9539
  }
9529
9540
  else if (z(arguments[2], qe) && arguments[0] instanceof Object && arguments[1] instanceof Rt)
9530
- for (var h = arguments[0], g = arguments[1], p = arguments[2], y = g.getChildBoundables(), d = 0; d < y.size(); d++) {
9531
- var m = y.get(d);
9532
- t.getIntersectsOp().intersects(m.getBounds(), h) && (m instanceof Rt ? t.query(h, m, p) : m instanceof We ? p.add(m.getItem()) : q.shouldNeverReachHere());
9541
+ for (var h = arguments[0], g = arguments[1], p = arguments[2], m = g.getChildBoundables(), d = 0; d < m.size(); d++) {
9542
+ var v = m.get(d);
9543
+ t.getIntersectsOp().intersects(v.getBounds(), h) && (v instanceof Rt ? t.query(h, v, p) : v instanceof We ? p.add(v.getItem()) : q.shouldNeverReachHere());
9533
9544
  }
9534
9545
  }
9535
9546
  };
@@ -9606,7 +9617,7 @@ Mt.compareDoubles = function(t, e) {
9606
9617
  return t > e ? 1 : t < e ? -1 : 0;
9607
9618
  };
9608
9619
  cs.IntersectsOp.get = function() {
9609
- return Kc;
9620
+ return Qc;
9610
9621
  };
9611
9622
  cs.serialVersionUID.get = function() {
9612
9623
  return -3886435814360241e3;
@@ -9615,7 +9626,7 @@ cs.DEFAULT_NODE_CAPACITY.get = function() {
9615
9626
  return 10;
9616
9627
  };
9617
9628
  Object.defineProperties(Mt, cs);
9618
- var Kc = function() {
9629
+ var Qc = function() {
9619
9630
  }, Di = function() {
9620
9631
  };
9621
9632
  Di.prototype.distance = function(t, e) {
@@ -9711,15 +9722,15 @@ var Nu = function(r) {
9711
9722
  } else if (arguments[0] instanceof St && typeof arguments[1] == "number") {
9712
9723
  var c = arguments[0], f = arguments[1], h = f, g = null, p = new Jn();
9713
9724
  for (p.add(c); !p.isEmpty() && h > 0; ) {
9714
- var y = p.poll(), d = y.getDistance();
9725
+ var m = p.poll(), d = m.getDistance();
9715
9726
  if (d >= h)
9716
9727
  break;
9717
- y.isLeaves() ? (h = d, g = y) : y.expandToQueue(p, h);
9728
+ m.isLeaves() ? (h = d, g = m) : m.expandToQueue(p, h);
9718
9729
  }
9719
9730
  return [g.getBoundable(0).getItem(), g.getBoundable(1).getItem()];
9720
9731
  }
9721
9732
  } else if (arguments.length === 3) {
9722
- var m = arguments[0], E = arguments[1], C = arguments[2], L = new We(m, E), N = new St(this.getRoot(), L, C);
9733
+ var v = arguments[0], E = arguments[1], C = arguments[2], L = new We(v, E), N = new St(this.getRoot(), L, C);
9723
9734
  return this.nearestNeighbour(N)[0];
9724
9735
  }
9725
9736
  }, t.prototype.interfaces_ = function() {
@@ -9823,7 +9834,7 @@ ue.compareValue = function(t, e) {
9823
9834
  var gr = function() {
9824
9835
  this._segString = null, this.coord = null, this.segmentIndex = null, this._segmentOctant = null, this._isInterior = null;
9825
9836
  var t = arguments[0], e = arguments[1], n = arguments[2], i = arguments[3];
9826
- this._segString = t, this.coord = new v(e), this.segmentIndex = n, this._segmentOctant = i, this._isInterior = !e.equals2D(t.getCoordinate(n));
9837
+ this._segString = t, this.coord = new y(e), this.segmentIndex = n, this._segmentOctant = i, this._isInterior = !e.equals2D(t.getCoordinate(n));
9827
9838
  };
9828
9839
  gr.prototype.getCoordinate = function() {
9829
9840
  return this.coord;
@@ -9884,10 +9895,10 @@ se.prototype.findCollapsesFromExistingVertices = function(t) {
9884
9895
  };
9885
9896
  se.prototype.addEdgeCoordinates = function(t, e, n) {
9886
9897
  var i = this, o = this._edge.getCoordinate(e.segmentIndex), s = e.isInterior() || !e.coord.equals2D(o);
9887
- n.add(new v(t.coord), !1);
9898
+ n.add(new y(t.coord), !1);
9888
9899
  for (var a = t.segmentIndex + 1; a <= e.segmentIndex; a++)
9889
9900
  n.add(i._edge.getCoordinate(a));
9890
- s && n.add(new v(e.coord));
9901
+ s && n.add(new y(e.coord));
9891
9902
  };
9892
9903
  se.prototype.iterator = function() {
9893
9904
  return this._nodeMap.values().iterator();
@@ -9923,10 +9934,10 @@ se.prototype.createSplitEdge = function(t, e) {
9923
9934
  var n = this, i = e.segmentIndex - t.segmentIndex + 2, o = this._edge.getCoordinate(e.segmentIndex), s = e.isInterior() || !e.coord.equals2D(o);
9924
9935
  s || i--;
9925
9936
  var a = new Array(i).fill(null), u = 0;
9926
- a[u++] = new v(t.coord);
9937
+ a[u++] = new y(t.coord);
9927
9938
  for (var l = t.segmentIndex + 1; l <= e.segmentIndex; l++)
9928
9939
  a[u++] = n._edge.getCoordinate(l);
9929
- return s && (a[u] = new v(e.coord)), new Nt(a, this._edge.getData());
9940
+ return s && (a[u] = new y(e.coord)), new Nt(a, this._edge.getData());
9930
9941
  };
9931
9942
  se.prototype.add = function(t, e) {
9932
9943
  var n = new gr(this._edge, t, e, this._edge.getSegmentOctant(e)), i = this._nodeMap.get(n);
@@ -9961,7 +9972,7 @@ ei.octant = function() {
9961
9972
  throw new ft("Cannot compute the octant for point ( " + t + ", " + e + " )");
9962
9973
  var n = Math.abs(t), i = Math.abs(e);
9963
9974
  return t >= 0 ? e >= 0 ? n >= i ? 0 : 1 : n >= i ? 7 : 6 : e >= 0 ? n >= i ? 3 : 2 : n >= i ? 4 : 5;
9964
- } else if (arguments[0] instanceof v && arguments[1] instanceof v) {
9975
+ } else if (arguments[0] instanceof y && arguments[1] instanceof y) {
9965
9976
  var o = arguments[0], s = arguments[1], a = s.x - o.x, u = s.y - o.y;
9966
9977
  if (a === 0 && u === 0)
9967
9978
  throw new ft("Cannot compute the octant for two identical points " + o);
@@ -10032,7 +10043,7 @@ Nt.prototype.addIntersection = function() {
10032
10043
  var t = arguments[0], e = arguments[1];
10033
10044
  this.addIntersectionNode(t, e);
10034
10045
  } else if (arguments.length === 4) {
10035
- var n = arguments[0], i = arguments[1], o = arguments[3], s = new v(n.getIntersection(o));
10046
+ var n = arguments[0], i = arguments[1], o = arguments[3], s = new y(n.getIntersection(o));
10036
10047
  this.addIntersection(s, i);
10037
10048
  }
10038
10049
  };
@@ -10073,15 +10084,15 @@ Nt.getNodedSubstrings = function() {
10073
10084
  };
10074
10085
  var B = function() {
10075
10086
  if (this.p0 = null, this.p1 = null, arguments.length === 0)
10076
- this.p0 = new v(), this.p1 = new v();
10087
+ this.p0 = new y(), this.p1 = new y();
10077
10088
  else if (arguments.length === 1) {
10078
10089
  var t = arguments[0];
10079
- this.p0 = new v(t.p0), this.p1 = new v(t.p1);
10090
+ this.p0 = new y(t.p0), this.p1 = new y(t.p1);
10080
10091
  } else if (arguments.length === 2)
10081
10092
  this.p0 = arguments[0], this.p1 = arguments[1];
10082
10093
  else if (arguments.length === 4) {
10083
10094
  var e = arguments[0], n = arguments[1], i = arguments[2], o = arguments[3];
10084
- this.p0 = new v(e, n), this.p1 = new v(i, o);
10095
+ this.p0 = new y(e, n), this.p1 = new y(i, o);
10085
10096
  }
10086
10097
  }, Su = { serialVersionUID: { configurable: !0 } };
10087
10098
  B.prototype.minX = function() {
@@ -10091,7 +10102,7 @@ B.prototype.orientationIndex = function() {
10091
10102
  if (arguments[0] instanceof B) {
10092
10103
  var t = arguments[0], e = M.orientationIndex(this.p0, this.p1, t.p0), n = M.orientationIndex(this.p0, this.p1, t.p1);
10093
10104
  return e >= 0 && n >= 0 || e <= 0 && n <= 0 ? Math.max(e, n) : 0;
10094
- } else if (arguments[0] instanceof v) {
10105
+ } else if (arguments[0] instanceof y) {
10095
10106
  var i = arguments[0];
10096
10107
  return M.orientationIndex(this.p0, this.p1, i);
10097
10108
  }
@@ -10113,11 +10124,11 @@ B.prototype.intersection = function(t) {
10113
10124
  return e.computeIntersection(this.p0, this.p1, t.p0, t.p1), e.hasIntersection() ? e.getIntersection(0) : null;
10114
10125
  };
10115
10126
  B.prototype.project = function() {
10116
- if (arguments[0] instanceof v) {
10127
+ if (arguments[0] instanceof y) {
10117
10128
  var t = arguments[0];
10118
10129
  if (t.equals(this.p0) || t.equals(this.p1))
10119
- return new v(t);
10120
- var e = this.projectionFactor(t), n = new v();
10130
+ return new y(t);
10131
+ var e = this.projectionFactor(t), n = new y();
10121
10132
  return n.x = this.p0.x + e * (this.p1.x - this.p0.x), n.y = this.p0.y + e * (this.p1.y - this.p0.y), n;
10122
10133
  } else if (arguments[0] instanceof B) {
10123
10134
  var i = arguments[0], o = this.projectionFactor(i.p0), s = this.projectionFactor(i.p1);
@@ -10216,7 +10227,7 @@ B.prototype.pointAlongOffset = function(t, e) {
10216
10227
  throw new Error("Cannot compute offset from zero-length line segment");
10217
10228
  u = e * o / a, l = e * s / a;
10218
10229
  }
10219
- var c = n - l, f = i + u, h = new v(c, f);
10230
+ var c = n - l, f = i + u, h = new y(c, f);
10220
10231
  return h;
10221
10232
  };
10222
10233
  B.prototype.setCoordinates = function() {
@@ -10242,13 +10253,13 @@ B.prototype.distance = function() {
10242
10253
  if (arguments[0] instanceof B) {
10243
10254
  var t = arguments[0];
10244
10255
  return M.distanceLineLine(this.p0, this.p1, t.p0, t.p1);
10245
- } else if (arguments[0] instanceof v) {
10256
+ } else if (arguments[0] instanceof y) {
10246
10257
  var e = arguments[0];
10247
10258
  return M.distancePointLine(e, this.p0, this.p1);
10248
10259
  }
10249
10260
  };
10250
10261
  B.prototype.pointAlong = function(t) {
10251
- var e = new v();
10262
+ var e = new y();
10252
10263
  return e.x = this.p0.x + t * (this.p1.x - this.p0.x), e.y = this.p0.y + t * (this.p1.y - this.p0.y), e;
10253
10264
  };
10254
10265
  B.prototype.hashCode = function() {
@@ -10266,7 +10277,7 @@ B.prototype.getClass = function() {
10266
10277
  return B;
10267
10278
  };
10268
10279
  B.midPoint = function(t, e) {
10269
- return new v((t.x + e.x) / 2, (t.y + e.y) / 2);
10280
+ return new y((t.x + e.x) / 2, (t.y + e.y) / 2);
10270
10281
  };
10271
10282
  Su.serialVersionUID.get = function() {
10272
10283
  return 3252005833466256400;
@@ -10665,7 +10676,7 @@ be.prototype.setPrecisionModel = function(t) {
10665
10676
  this._precisionModel = t;
10666
10677
  };
10667
10678
  be.prototype.addPt = function(t) {
10668
- var e = new v(t);
10679
+ var e = new y(t);
10669
10680
  if (this._precisionModel.makePrecise(e), this.isRedundant(e))
10670
10681
  return null;
10671
10682
  this._ptList.add(e);
@@ -10694,7 +10705,7 @@ be.prototype.toString = function() {
10694
10705
  be.prototype.closeRing = function() {
10695
10706
  if (this._ptList.size() < 1)
10696
10707
  return null;
10697
- var t = new v(this._ptList.get(0)), e = this._ptList.get(this._ptList.size() - 1);
10708
+ var t = new y(this._ptList.get(0)), e = this._ptList.get(this._ptList.size() - 1);
10698
10709
  if (t.equals(e))
10699
10710
  return null;
10700
10711
  this._ptList.add(t);
@@ -10826,9 +10837,9 @@ lt.prototype.addLineEndCap = function(t, e) {
10826
10837
  this._segList.addPt(i.p1), this._segList.addPt(o.p1);
10827
10838
  break;
10828
10839
  case J.CAP_SQUARE:
10829
- var l = new v();
10840
+ var l = new y();
10830
10841
  l.x = Math.abs(this._distance) * Math.cos(u), l.y = Math.abs(this._distance) * Math.sin(u);
10831
- var c = new v(i.p1.x + l.x, i.p1.y + l.y), f = new v(o.p1.x + l.x, o.p1.y + l.y);
10842
+ var c = new y(i.p1.x + l.x, i.p1.y + l.y), f = new y(o.p1.x + l.x, o.p1.y + l.y);
10832
10843
  this._segList.addPt(c), this._segList.addPt(f);
10833
10844
  break;
10834
10845
  }
@@ -10845,7 +10856,7 @@ lt.prototype.addMitreJoin = function(t, e, n, i) {
10845
10856
  a > this._bufParams.getMitreLimit() && (o = !1);
10846
10857
  } catch (u) {
10847
10858
  if (u instanceof qi)
10848
- s = new v(0, 0), o = !1;
10859
+ s = new y(0, 0), o = !1;
10849
10860
  else
10850
10861
  throw u;
10851
10862
  } finally {
@@ -10862,7 +10873,7 @@ lt.prototype.addOutsideTurn = function(t, e) {
10862
10873
  this._bufParams.getJoinStyle() === J.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === J.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (e && this._segList.addPt(this._offset0.p1), this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, t, this._distance), this._segList.addPt(this._offset1.p0));
10863
10874
  };
10864
10875
  lt.prototype.createSquare = function(t) {
10865
- this._segList.addPt(new v(t.x + this._distance, t.y + this._distance)), this._segList.addPt(new v(t.x + this._distance, t.y - this._distance)), this._segList.addPt(new v(t.x - this._distance, t.y - this._distance)), this._segList.addPt(new v(t.x - this._distance, t.y + this._distance)), this._segList.closeRing();
10876
+ this._segList.addPt(new y(t.x + this._distance, t.y + this._distance)), this._segList.addPt(new y(t.x + this._distance, t.y - this._distance)), this._segList.addPt(new y(t.x - this._distance, t.y - this._distance)), this._segList.addPt(new y(t.x - this._distance, t.y + this._distance)), this._segList.closeRing();
10866
10877
  };
10867
10878
  lt.prototype.addSegments = function(t, e) {
10868
10879
  this._segList.addPts(t, e);
@@ -10877,7 +10888,7 @@ lt.prototype.initSideSegments = function(t, e, n) {
10877
10888
  this._s1 = t, this._s2 = e, this._side = n, this._seg1.setCoordinates(t, e), this.computeOffsetSegment(this._seg1, n, this._distance, this._offset1);
10878
10889
  };
10879
10890
  lt.prototype.addLimitedMitreJoin = function(t, e, n, i) {
10880
- var o = this._seg0.p1, s = K.angle(o, this._seg0.p0), a = K.angleBetweenOriented(this._seg0.p0, o, this._seg1.p1), u = a / 2, l = K.normalize(s + u), c = K.normalize(l + Math.PI), f = i * n, h = f * Math.abs(Math.sin(u)), g = n - h, p = o.x + f * Math.cos(c), y = o.y + f * Math.sin(c), d = new v(p, y), m = new B(o, d), E = m.pointAlongOffset(1, g), C = m.pointAlongOffset(1, -g);
10891
+ var o = this._seg0.p1, s = K.angle(o, this._seg0.p0), a = K.angleBetweenOriented(this._seg0.p0, o, this._seg1.p1), u = a / 2, l = K.normalize(s + u), c = K.normalize(l + Math.PI), f = i * n, h = f * Math.abs(Math.sin(u)), g = n - h, p = o.x + f * Math.cos(c), m = o.y + f * Math.sin(c), d = new y(p, m), v = new B(o, d), E = v.pointAlongOffset(1, g), C = v.pointAlongOffset(1, -g);
10881
10892
  this._side === b.LEFT ? (this._segList.addPt(E), this._segList.addPt(C)) : (this._segList.addPt(C), this._segList.addPt(E));
10882
10893
  };
10883
10894
  lt.prototype.computeOffsetSegment = function(t, e, n, i) {
@@ -10888,7 +10899,7 @@ lt.prototype.addFilletArc = function(t, e, n, i, o) {
10888
10899
  var s = this, a = i === M.CLOCKWISE ? -1 : 1, u = Math.abs(e - n), l = Math.trunc(u / this._filletAngleQuantum + 0.5);
10889
10900
  if (l < 1)
10890
10901
  return null;
10891
- for (var c = 0, f = u / l, h = c, g = new v(); h < u; ) {
10902
+ for (var c = 0, f = u / l, h = c, g = new y(); h < u; ) {
10892
10903
  var p = e + a * h;
10893
10904
  g.x = t.x + o * Math.cos(p), g.y = t.y + o * Math.sin(p), s._segList.addPt(g), h += f;
10894
10905
  }
@@ -10900,9 +10911,9 @@ lt.prototype.addInsideTurn = function(t, e) {
10900
10911
  this._segList.addPt(this._offset0.p1);
10901
10912
  else {
10902
10913
  if (this._segList.addPt(this._offset0.p1), this._closingSegLengthFactor > 0) {
10903
- var n = new v((this._closingSegLengthFactor * this._offset0.p1.x + this._s1.x) / (this._closingSegLengthFactor + 1), (this._closingSegLengthFactor * this._offset0.p1.y + this._s1.y) / (this._closingSegLengthFactor + 1));
10914
+ var n = new y((this._closingSegLengthFactor * this._offset0.p1.x + this._s1.x) / (this._closingSegLengthFactor + 1), (this._closingSegLengthFactor * this._offset0.p1.y + this._s1.y) / (this._closingSegLengthFactor + 1));
10904
10915
  this._segList.addPt(n);
10905
- var i = new v((this._closingSegLengthFactor * this._offset1.p0.x + this._s1.x) / (this._closingSegLengthFactor + 1), (this._closingSegLengthFactor * this._offset1.p0.y + this._s1.y) / (this._closingSegLengthFactor + 1));
10916
+ var i = new y((this._closingSegLengthFactor * this._offset1.p0.x + this._s1.x) / (this._closingSegLengthFactor + 1), (this._closingSegLengthFactor * this._offset1.p0.y + this._s1.y) / (this._closingSegLengthFactor + 1));
10906
10917
  this._segList.addPt(i);
10907
10918
  } else
10908
10919
  this._segList.addPt(this._s1);
@@ -10910,7 +10921,7 @@ lt.prototype.addInsideTurn = function(t, e) {
10910
10921
  }
10911
10922
  };
10912
10923
  lt.prototype.createCircle = function(t) {
10913
- var e = new v(t.x + this._distance, t.y);
10924
+ var e = new y(t.x + this._distance, t.y);
10914
10925
  this._segList.addPt(e), this.addFilletArc(t, 0, 2 * Math.PI, -1, this._distance), this._segList.closeRing();
10915
10926
  };
10916
10927
  lt.prototype.addBevelJoin = function(t, e) {
@@ -11066,7 +11077,7 @@ fe.prototype.getClass = function() {
11066
11077
  };
11067
11078
  fe.copyCoordinates = function(t) {
11068
11079
  for (var e = new Array(t.length).fill(null), n = 0; n < e.length; n++)
11069
- e[n] = new v(t[n]);
11080
+ e[n] = new y(t[n]);
11070
11081
  return e;
11071
11082
  };
11072
11083
  var ni = function() {
@@ -11083,7 +11094,7 @@ ni.prototype.findStabbedSegments = function() {
11083
11094
  }
11084
11095
  return n;
11085
11096
  } else if (arguments.length === 3) {
11086
- if (z(arguments[2], qe) && arguments[0] instanceof v && arguments[1] instanceof Ms)
11097
+ if (z(arguments[2], qe) && arguments[0] instanceof y && arguments[1] instanceof Ms)
11087
11098
  for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), f = 0; f < c.length - 1; f++) {
11088
11099
  t._seg.p0 = c[f], t._seg.p1 = c[f + 1], t._seg.p0.y > t._seg.p1.y && t._seg.reverse();
11089
11100
  var h = Math.max(t._seg.p0.x, t._seg.p1.x);
@@ -11094,10 +11105,10 @@ ni.prototype.findStabbedSegments = function() {
11094
11105
  l.add(p);
11095
11106
  }
11096
11107
  }
11097
- else if (z(arguments[2], qe) && arguments[0] instanceof v && z(arguments[1], qe))
11098
- for (var y = arguments[0], d = arguments[1], m = arguments[2], E = d.iterator(); E.hasNext(); ) {
11108
+ else if (z(arguments[2], qe) && arguments[0] instanceof y && z(arguments[1], qe))
11109
+ for (var m = arguments[0], d = arguments[1], v = arguments[2], E = d.iterator(); E.hasNext(); ) {
11099
11110
  var C = E.next();
11100
- C.isForward() && t.findStabbedSegments(y, C, m);
11111
+ C.isForward() && t.findStabbedSegments(m, C, v);
11101
11112
  }
11102
11113
  }
11103
11114
  };
@@ -11193,7 +11204,7 @@ tt.det = function(t, e, n, i) {
11193
11204
  return t * i - e * n;
11194
11205
  };
11195
11206
  tt.interpolateZ = function(t, e, n, i) {
11196
- var o = e.x, s = e.y, a = n.x - o, u = i.x - o, l = n.y - s, c = i.y - s, f = a * c - u * l, h = t.x - o, g = t.y - s, p = (c * h - u * g) / f, y = (-l * h + a * g) / f, d = e.z + p * (n.z - e.z) + y * (i.z - e.z);
11207
+ var o = e.x, s = e.y, a = n.x - o, u = i.x - o, l = n.y - s, c = i.y - s, f = a * c - u * l, h = t.x - o, g = t.y - s, p = (c * h - u * g) / f, m = (-l * h + a * g) / f, d = e.z + p * (n.z - e.z) + m * (i.z - e.z);
11197
11208
  return d;
11198
11209
  };
11199
11210
  tt.longestSideLength = function(t, e, n) {
@@ -11205,14 +11216,14 @@ tt.isAcute = function(t, e, n) {
11205
11216
  };
11206
11217
  tt.circumcentre = function(t, e, n) {
11207
11218
  var i = n.x, o = n.y, s = t.x - i, a = t.y - o, u = e.x - i, l = e.y - o, c = 2 * tt.det(s, a, u, l), f = tt.det(a, s * s + a * a, l, u * u + l * l), h = tt.det(s, s * s + a * a, u, u * u + l * l), g = i - f / c, p = o + h / c;
11208
- return new v(g, p);
11219
+ return new y(g, p);
11209
11220
  };
11210
11221
  tt.perpendicularBisector = function(t, e) {
11211
11222
  var n = e.x - t.x, i = e.y - t.y, o = new Ue(t.x + n / 2, t.y + i / 2, 1), s = new Ue(t.x - i + n / 2, t.y + n + i / 2, 1);
11212
11223
  return new Ue(o, s);
11213
11224
  };
11214
11225
  tt.angleBisector = function(t, e, n) {
11215
- var i = e.distance(t), o = e.distance(n), s = i / (i + o), a = n.x - t.x, u = n.y - t.y, l = new v(t.x + s * a, t.y + s * u);
11226
+ var i = e.distance(t), o = e.distance(n), s = i / (i + o), a = n.x - t.x, u = n.y - t.y, l = new y(t.x + s * a, t.y + s * u);
11216
11227
  return l;
11217
11228
  };
11218
11229
  tt.area3D = function(t, e, n) {
@@ -11221,11 +11232,11 @@ tt.area3D = function(t, e, n) {
11221
11232
  };
11222
11233
  tt.centroid = function(t, e, n) {
11223
11234
  var i = (t.x + e.x + n.x) / 3, o = (t.y + e.y + n.y) / 3;
11224
- return new v(i, o);
11235
+ return new y(i, o);
11225
11236
  };
11226
11237
  tt.inCentre = function(t, e, n) {
11227
11238
  var i = e.distance(n), o = t.distance(n), s = t.distance(e), a = i + o + s, u = (i * t.x + o * e.x + s * n.x) / a, l = (i * t.y + o * e.y + s * n.y) / a;
11228
- return new v(u, l);
11239
+ return new y(u, l);
11229
11240
  };
11230
11241
  var Fe = function() {
11231
11242
  this._inputGeom = null, this._distance = null, this._curveBuilder = null, this._curveList = new O();
@@ -11525,7 +11536,7 @@ Zt.prototype.interfaces_ = function() {
11525
11536
  Zt.prototype.getClass = function() {
11526
11537
  return Zt;
11527
11538
  };
11528
- var Qc = function(r) {
11539
+ var Zc = function(r) {
11529
11540
  function t() {
11530
11541
  r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
11531
11542
  }
@@ -11602,8 +11613,8 @@ var Qc = function(r) {
11602
11613
  throw new Zn("depth mismatch at " + i.getCoordinate());
11603
11614
  } else if (arguments.length === 3) {
11604
11615
  for (var c = arguments[0], f = arguments[1], h = arguments[2], g = h, p = c; p < f; p++) {
11605
- var y = n._edgeList.get(p);
11606
- y.setEdgeDepths(b.RIGHT, g), g = y.getDepth(b.LEFT);
11616
+ var m = n._edgeList.get(p);
11617
+ m.setEdgeDepths(b.RIGHT, g), g = m.getDepth(b.LEFT);
11607
11618
  }
11608
11619
  return g;
11609
11620
  }
@@ -11683,7 +11694,7 @@ var Qc = function(r) {
11683
11694
  r.apply(this, arguments);
11684
11695
  }
11685
11696
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
11686
- return new ls(n, new Qc());
11697
+ return new ls(n, new Zc());
11687
11698
  }, t.prototype.interfaces_ = function() {
11688
11699
  return [];
11689
11700
  }, t.prototype.getClass = function() {
@@ -11840,7 +11851,7 @@ Pe.isAdjacentSegments = function(t, e) {
11840
11851
  var pn = function() {
11841
11852
  this.coord = null, this.segmentIndex = null, this.dist = null;
11842
11853
  var t = arguments[0], e = arguments[1], n = arguments[2];
11843
- this.coord = new v(t), this.segmentIndex = e, this.dist = n;
11854
+ this.coord = new y(t), this.segmentIndex = e, this.dist = n;
11844
11855
  };
11845
11856
  pn.prototype.getSegmentIndex = function() {
11846
11857
  return this.segmentIndex;
@@ -11904,7 +11915,7 @@ On.prototype.createSplitEdge = function(t, e) {
11904
11915
  var n = this, i = e.segmentIndex - t.segmentIndex + 2, o = this.edge.pts[e.segmentIndex], s = e.dist > 0 || !e.coord.equals2D(o);
11905
11916
  s || i--;
11906
11917
  var a = new Array(i).fill(null), u = 0;
11907
- a[u++] = new v(t.coord);
11918
+ a[u++] = new y(t.coord);
11908
11919
  for (var l = t.segmentIndex + 1; l <= e.segmentIndex; l++)
11909
11920
  a[u++] = n.edge.pts[l];
11910
11921
  return s && (a[u] = e.coord), new Xo(a, new et(this.edge._label));
@@ -11987,8 +11998,8 @@ $n.prototype.computeIntersectsForChain = function() {
11987
11998
  return c.addIntersections(this.e, o, a.e, u), null;
11988
11999
  if (this.env1.init(f, h), this.env2.init(g, p), !this.env1.intersects(this.env2))
11989
12000
  return null;
11990
- var y = Math.trunc((o + s) / 2), d = Math.trunc((u + l) / 2);
11991
- o < y && (u < d && this.computeIntersectsForChain(o, y, a, u, d, c), d < l && this.computeIntersectsForChain(o, y, a, d, l, c)), y < s && (u < d && this.computeIntersectsForChain(y, s, a, u, d, c), d < l && this.computeIntersectsForChain(y, s, a, d, l, c));
12001
+ var m = Math.trunc((o + s) / 2), d = Math.trunc((u + l) / 2);
12002
+ o < m && (u < d && this.computeIntersectsForChain(o, m, a, u, d, c), d < l && this.computeIntersectsForChain(o, m, a, d, l, c)), m < s && (u < d && this.computeIntersectsForChain(m, s, a, u, d, c), d < l && this.computeIntersectsForChain(m, s, a, d, l, c));
11992
12003
  }
11993
12004
  };
11994
12005
  $n.prototype.getStartIndexes = function() {
@@ -12160,7 +12171,7 @@ var Xo = function(r) {
12160
12171
  }
12161
12172
  return this._env;
12162
12173
  }, t.prototype.addIntersection = function(n, i, o, s) {
12163
- var a = new v(n.getIntersection(s)), u = i, l = n.getEdgeDistance(o, s), c = u + 1;
12174
+ var a = new y(n.getIntersection(s)), u = i, l = n.getEdgeDistance(o, s), c = u + 1;
12164
12175
  if (c < this.pts.length) {
12165
12176
  var f = this.pts[c];
12166
12177
  a.equals2D(f) && (u = c, l = 0);
@@ -12318,7 +12329,7 @@ dr.prototype.scale = function() {
12318
12329
  return n;
12319
12330
  } else if (arguments[0] instanceof Array) {
12320
12331
  for (var s = arguments[0], a = new Array(s.length).fill(null), u = 0; u < s.length; u++)
12321
- a[u] = new v(Math.round((s[u].x - t._offsetX) * t._scaleFactor), Math.round((s[u].y - t._offsetY) * t._scaleFactor), s[u].z);
12332
+ a[u] = new y(Math.round((s[u].x - t._offsetX) * t._scaleFactor), Math.round((s[u].y - t._offsetY) * t._scaleFactor), s[u].z);
12322
12333
  var l = j.removeRepeatedPoints(a);
12323
12334
  return l;
12324
12335
  }
@@ -12372,12 +12383,12 @@ dn.prototype.checkInteriorIntersections = function() {
12372
12383
  for (var f = 0; f < l.length - 1; f++)
12373
12384
  t.checkInteriorIntersections(s, c, a, f);
12374
12385
  else if (arguments.length === 4) {
12375
- var h = arguments[0], g = arguments[1], p = arguments[2], y = arguments[3];
12376
- if (h === p && g === y)
12386
+ var h = arguments[0], g = arguments[1], p = arguments[2], m = arguments[3];
12387
+ if (h === p && g === m)
12377
12388
  return null;
12378
- var d = h.getCoordinates()[g], m = h.getCoordinates()[g + 1], E = p.getCoordinates()[y], C = p.getCoordinates()[y + 1];
12379
- if (this._li.computeIntersection(d, m, E, C), this._li.hasIntersection() && (this._li.isProper() || this.hasInteriorIntersection(this._li, d, m) || this.hasInteriorIntersection(this._li, E, C)))
12380
- throw new Kn("found non-noded intersection at " + d + "-" + m + " and " + E + "-" + C);
12389
+ var d = h.getCoordinates()[g], v = h.getCoordinates()[g + 1], E = p.getCoordinates()[m], C = p.getCoordinates()[m + 1];
12390
+ if (this._li.computeIntersection(d, v, E, C), this._li.hasIntersection() && (this._li.isProper() || this.hasInteriorIntersection(this._li, d, v) || this.hasInteriorIntersection(this._li, E, C)))
12391
+ throw new Kn("found non-noded intersection at " + d + "-" + v + " and " + E + "-" + C);
12381
12392
  }
12382
12393
  };
12383
12394
  dn.prototype.checkValid = function() {
@@ -12421,7 +12432,7 @@ var he = function() {
12421
12432
  var t = arguments[0], e = arguments[1], n = arguments[2];
12422
12433
  if (this._originalPt = t, this._pt = t, this._scaleFactor = e, this._li = n, e <= 0)
12423
12434
  throw new ft("Scale factor must be non-zero");
12424
- 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);
12435
+ e !== 1 && (this._pt = new y(this.scale(t.x), this.scale(t.y)), this._p0Scaled = new y(), this._p1Scaled = new y()), this.initCorners(this._pt);
12425
12436
  }, Ru = { SAFE_ENV_EXPANSION_FACTOR: { configurable: !0 } };
12426
12437
  he.prototype.intersectsScaled = function(t, e) {
12427
12438
  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;
@@ -12432,7 +12443,7 @@ he.prototype.intersectsScaled = function(t, e) {
12432
12443
  };
12433
12444
  he.prototype.initCorners = function(t) {
12434
12445
  var e = 0.5;
12435
- this._minx = t.x - e, this._maxx = t.x + e, this._miny = t.y - e, this._maxy = t.y + e, this._corner[0] = new v(this._maxx, this._maxy), this._corner[1] = new v(this._minx, this._maxy), this._corner[2] = new v(this._minx, this._miny), this._corner[3] = new v(this._maxx, this._miny);
12446
+ this._minx = t.x - e, this._maxx = t.x + e, this._miny = t.y - e, this._maxy = t.y + e, this._corner[0] = new y(this._maxx, this._maxy), this._corner[1] = new y(this._minx, this._maxy), this._corner[2] = new y(this._minx, this._miny), this._corner[3] = new y(this._maxx, this._miny);
12436
12447
  };
12437
12448
  he.prototype.intersects = function(t, e) {
12438
12449
  return this._scaleFactor === 1 ? this.intersectsScaled(t, e) : (this.copyScaled(t, this._p0Scaled), this.copyScaled(e, this._p1Scaled), this.intersectsScaled(this._p0Scaled, this._p1Scaled));
@@ -12711,8 +12722,8 @@ Vt.bufferOp = function() {
12711
12722
  return p;
12712
12723
  }
12713
12724
  } else if (arguments.length === 4) {
12714
- var y = arguments[0], d = arguments[1], m = arguments[2], E = arguments[3], C = new Vt(y);
12715
- C.setQuadrantSegments(m), C.setEndCapStyle(E);
12725
+ var m = arguments[0], d = arguments[1], v = arguments[2], E = arguments[3], C = new Vt(m);
12726
+ C.setQuadrantSegments(v), C.setEndCapStyle(E);
12716
12727
  var L = C.getResultGeometry(d);
12717
12728
  return L;
12718
12729
  }
@@ -12738,7 +12749,7 @@ Wi.MAX_PRECISION_DIGITS.get = function() {
12738
12749
  };
12739
12750
  Object.defineProperties(Vt, Wi);
12740
12751
  var te = function() {
12741
- this._pt = [new v(), new v()], this._distance = V.NaN, this._isNull = !0;
12752
+ this._pt = [new y(), new y()], this._distance = V.NaN, this._isNull = !0;
12742
12753
  };
12743
12754
  te.prototype.getCoordinates = function() {
12744
12755
  return this._pt;
@@ -12799,31 +12810,31 @@ Nn.prototype.getClass = function() {
12799
12810
  return Nn;
12800
12811
  };
12801
12812
  Nn.computeDistance = function() {
12802
- if (arguments[2] instanceof te && arguments[0] instanceof yt && arguments[1] instanceof v)
12813
+ if (arguments[2] instanceof te && arguments[0] instanceof yt && arguments[1] instanceof y)
12803
12814
  for (var t = arguments[0], e = arguments[1], n = arguments[2], i = t.getCoordinates(), o = new B(), s = 0; s < i.length - 1; s++) {
12804
12815
  o.setCoordinates(i[s], i[s + 1]);
12805
12816
  var a = o.closestPoint(e);
12806
12817
  n.setMinimum(a, e);
12807
12818
  }
12808
- else if (arguments[2] instanceof te && arguments[0] instanceof Ot && arguments[1] instanceof v) {
12819
+ else if (arguments[2] instanceof te && arguments[0] instanceof Ot && arguments[1] instanceof y) {
12809
12820
  var u = arguments[0], l = arguments[1], c = arguments[2];
12810
12821
  Nn.computeDistance(u.getExteriorRing(), l, c);
12811
12822
  for (var f = 0; f < u.getNumInteriorRing(); f++)
12812
12823
  Nn.computeDistance(u.getInteriorRingN(f), l, c);
12813
- } else if (arguments[2] instanceof te && arguments[0] instanceof G && arguments[1] instanceof v) {
12824
+ } else if (arguments[2] instanceof te && arguments[0] instanceof G && arguments[1] instanceof y) {
12814
12825
  var h = arguments[0], g = arguments[1], p = arguments[2];
12815
12826
  if (h instanceof yt)
12816
12827
  Nn.computeDistance(h, g, p);
12817
12828
  else if (h instanceof Ot)
12818
12829
  Nn.computeDistance(h, g, p);
12819
12830
  else if (h instanceof ie)
12820
- for (var y = h, d = 0; d < y.getNumGeometries(); d++) {
12821
- var m = y.getGeometryN(d);
12822
- Nn.computeDistance(m, g, p);
12831
+ for (var m = h, d = 0; d < m.getNumGeometries(); d++) {
12832
+ var v = m.getGeometryN(d);
12833
+ Nn.computeDistance(v, g, p);
12823
12834
  }
12824
12835
  else
12825
12836
  p.setMinimum(h.getCoordinate(), g);
12826
- } else if (arguments[2] instanceof te && arguments[0] instanceof B && arguments[1] instanceof v) {
12837
+ } else if (arguments[2] instanceof te && arguments[0] instanceof B && arguments[1] instanceof y) {
12827
12838
  var E = arguments[0], C = arguments[1], L = arguments[2], N = E.closestPoint(C);
12828
12839
  L.setMinimum(N, C);
12829
12840
  }
@@ -12879,7 +12890,7 @@ var vr = function(t) {
12879
12890
  vr.prototype.filter = function(t, e) {
12880
12891
  if (e === 0)
12881
12892
  return null;
12882
- var n = t.getCoordinate(e - 1), i = t.getCoordinate(e), o = new v((n.x + i.x) / 2, (n.y + i.y) / 2);
12893
+ var n = t.getCoordinate(e - 1), i = t.getCoordinate(e), o = new y((n.x + i.x) / 2, (n.y + i.y) / 2);
12883
12894
  this._minPtDist.initialize(), Nn.computeDistance(this._geom, o, this._minPtDist), this._maxPtDist.setMaximum(this._minPtDist);
12884
12895
  };
12885
12896
  vr.prototype.isDone = function() {
@@ -12973,13 +12984,13 @@ zt.getLines = function() {
12973
12984
  } else if (arguments.length === 3) {
12974
12985
  if (typeof arguments[2] == "boolean" && z(arguments[0], Lt) && z(arguments[1], Lt)) {
12975
12986
  for (var f = arguments[0], h = arguments[1], g = arguments[2], p = f.iterator(); p.hasNext(); ) {
12976
- var y = p.next();
12977
- zt.getLines(y, h, g);
12987
+ var m = p.next();
12988
+ zt.getLines(m, h, g);
12978
12989
  }
12979
12990
  return h;
12980
12991
  } else if (typeof arguments[2] == "boolean" && arguments[0] instanceof G && z(arguments[1], Lt)) {
12981
- var d = arguments[0], m = arguments[1], E = arguments[2];
12982
- return d.apply(new zt(m, E)), m;
12992
+ var d = arguments[0], v = arguments[1], E = arguments[2];
12993
+ return d.apply(new zt(v, E)), v;
12983
12994
  }
12984
12995
  }
12985
12996
  };
@@ -12995,7 +13006,7 @@ var Ke = function() {
12995
13006
  };
12996
13007
  Ke.prototype.locateInternal = function() {
12997
13008
  var t = this;
12998
- if (arguments[0] instanceof v && arguments[1] instanceof Ot) {
13009
+ if (arguments[0] instanceof y && arguments[1] instanceof Ot) {
12999
13010
  var e = arguments[0], n = arguments[1];
13000
13011
  if (n.isEmpty())
13001
13012
  return _.EXTERIOR;
@@ -13012,13 +13023,13 @@ Ke.prototype.locateInternal = function() {
13012
13023
  return _.BOUNDARY;
13013
13024
  }
13014
13025
  return _.INTERIOR;
13015
- } else if (arguments[0] instanceof v && arguments[1] instanceof yt) {
13026
+ } else if (arguments[0] instanceof y && arguments[1] instanceof yt) {
13016
13027
  var l = arguments[0], c = arguments[1];
13017
13028
  if (!c.getEnvelopeInternal().intersects(l))
13018
13029
  return _.EXTERIOR;
13019
13030
  var f = c.getCoordinates();
13020
13031
  return !c.isClosed() && (l.equals(f[0]) || l.equals(f[f.length - 1])) ? _.BOUNDARY : M.isOnLine(l, f) ? _.INTERIOR : _.EXTERIOR;
13021
- } else if (arguments[0] instanceof v && arguments[1] instanceof de) {
13032
+ } else if (arguments[0] instanceof y && arguments[1] instanceof de) {
13022
13033
  var h = arguments[0], g = arguments[1], p = g.getCoordinate();
13023
13034
  return p.equals2D(h) ? _.INTERIOR : _.EXTERIOR;
13024
13035
  }
@@ -13163,9 +13174,9 @@ Xt.prototype.computeContainmentDistance = function() {
13163
13174
  if (t.computeContainmentDistance(h, l.get(g), c), t._minDistance <= t._terminateDistance)
13164
13175
  return null;
13165
13176
  } else if (arguments[2] instanceof Array && arguments[0] instanceof ee && arguments[1] instanceof Ot) {
13166
- var p = arguments[0], y = arguments[1], d = arguments[2], m = p.getCoordinate();
13167
- if (_.EXTERIOR !== this._ptLocator.locate(m, y))
13168
- return this._minDistance = 0, d[0] = p, d[1] = new ee(y, m), null;
13177
+ var p = arguments[0], m = arguments[1], d = arguments[2], v = p.getCoordinate();
13178
+ if (_.EXTERIOR !== this._ptLocator.locate(v, m))
13179
+ return this._minDistance = 0, d[0] = p, d[1] = new ee(m, v), null;
13169
13180
  }
13170
13181
  }
13171
13182
  };
@@ -13221,13 +13232,13 @@ Xt.prototype.computeMinDistance = function() {
13221
13232
  var f = arguments[0], h = arguments[1], g = arguments[2];
13222
13233
  if (f.getEnvelopeInternal().distance(h.getEnvelopeInternal()) > this._minDistance)
13223
13234
  return null;
13224
- for (var p = f.getCoordinates(), y = h.getCoordinates(), d = 0; d < p.length - 1; d++)
13225
- for (var m = 0; m < y.length - 1; m++) {
13226
- var E = M.distanceLineLine(p[d], p[d + 1], y[m], y[m + 1]);
13235
+ for (var p = f.getCoordinates(), m = h.getCoordinates(), d = 0; d < p.length - 1; d++)
13236
+ for (var v = 0; v < m.length - 1; v++) {
13237
+ var E = M.distanceLineLine(p[d], p[d + 1], m[v], m[v + 1]);
13227
13238
  if (E < t._minDistance) {
13228
13239
  t._minDistance = E;
13229
- var C = new B(p[d], p[d + 1]), L = new B(y[m], y[m + 1]), N = C.closestPoints(L);
13230
- g[0] = new ee(f, d, N[0]), g[1] = new ee(h, m, N[1]);
13240
+ var C = new B(p[d], p[d + 1]), L = new B(m[v], m[v + 1]), N = C.closestPoints(L);
13241
+ g[0] = new ee(f, d, N[0]), g[1] = new ee(h, v, N[1]);
13231
13242
  }
13232
13243
  if (t._minDistance <= t._terminateDistance)
13233
13244
  return null;
@@ -13275,7 +13286,7 @@ Xt.nearestPoints = function(t, e) {
13275
13286
  return n.nearestPoints();
13276
13287
  };
13277
13288
  var jt = function() {
13278
- this._pt = [new v(), new v()], this._distance = V.NaN, this._isNull = !0;
13289
+ this._pt = [new y(), new y()], this._distance = V.NaN, this._isNull = !0;
13279
13290
  };
13280
13291
  jt.prototype.getCoordinates = function() {
13281
13292
  return this._pt;
@@ -13339,31 +13350,31 @@ rn.prototype.getClass = function() {
13339
13350
  return rn;
13340
13351
  };
13341
13352
  rn.computeDistance = function() {
13342
- if (arguments[2] instanceof jt && arguments[0] instanceof yt && arguments[1] instanceof v)
13353
+ if (arguments[2] instanceof jt && arguments[0] instanceof yt && arguments[1] instanceof y)
13343
13354
  for (var t = arguments[0], e = arguments[1], n = arguments[2], i = new B(), o = t.getCoordinates(), s = 0; s < o.length - 1; s++) {
13344
13355
  i.setCoordinates(o[s], o[s + 1]);
13345
13356
  var a = i.closestPoint(e);
13346
13357
  n.setMinimum(a, e);
13347
13358
  }
13348
- else if (arguments[2] instanceof jt && arguments[0] instanceof Ot && arguments[1] instanceof v) {
13359
+ else if (arguments[2] instanceof jt && arguments[0] instanceof Ot && arguments[1] instanceof y) {
13349
13360
  var u = arguments[0], l = arguments[1], c = arguments[2];
13350
13361
  rn.computeDistance(u.getExteriorRing(), l, c);
13351
13362
  for (var f = 0; f < u.getNumInteriorRing(); f++)
13352
13363
  rn.computeDistance(u.getInteriorRingN(f), l, c);
13353
- } else if (arguments[2] instanceof jt && arguments[0] instanceof G && arguments[1] instanceof v) {
13364
+ } else if (arguments[2] instanceof jt && arguments[0] instanceof G && arguments[1] instanceof y) {
13354
13365
  var h = arguments[0], g = arguments[1], p = arguments[2];
13355
13366
  if (h instanceof yt)
13356
13367
  rn.computeDistance(h, g, p);
13357
13368
  else if (h instanceof Ot)
13358
13369
  rn.computeDistance(h, g, p);
13359
13370
  else if (h instanceof ie)
13360
- for (var y = h, d = 0; d < y.getNumGeometries(); d++) {
13361
- var m = y.getGeometryN(d);
13362
- rn.computeDistance(m, g, p);
13371
+ for (var m = h, d = 0; d < m.getNumGeometries(); d++) {
13372
+ var v = m.getGeometryN(d);
13373
+ rn.computeDistance(v, g, p);
13363
13374
  }
13364
13375
  else
13365
13376
  p.setMinimum(h.getCoordinate(), g);
13366
- } else if (arguments[2] instanceof jt && arguments[0] instanceof B && arguments[1] instanceof v) {
13377
+ } else if (arguments[2] instanceof jt && arguments[0] instanceof B && arguments[1] instanceof y) {
13367
13378
  var E = arguments[0], C = arguments[1], L = arguments[2], N = E.closestPoint(C);
13368
13379
  L.setMinimum(N, C);
13369
13380
  }
@@ -13446,7 +13457,7 @@ yr.prototype.filter = function(t, e) {
13446
13457
  if (e === 0)
13447
13458
  return null;
13448
13459
  for (var i = t.getCoordinate(e - 1), o = t.getCoordinate(e), s = (o.x - i.x) / this._numSubSegs, a = (o.y - i.y) / this._numSubSegs, u = 0; u < this._numSubSegs; u++) {
13449
- var l = i.x + u * s, c = i.y + u * a, f = new v(l, c);
13460
+ var l = i.x + u * s, c = i.y + u * a, f = new y(l, c);
13450
13461
  n._minPtDist.initialize(), rn.computeDistance(n._geom, f, n._minPtDist), n._maxPtDist.setMaximum(n._minPtDist);
13451
13462
  }
13452
13463
  };
@@ -13980,7 +13991,7 @@ var Tn = function r() {
13980
13991
  Tn.prototype.snapVertices = function(t, e) {
13981
13992
  for (var n = this, i = this._isClosed ? t.size() - 1 : t.size(), o = 0; o < i; o++) {
13982
13993
  var s = t.get(o), a = n.findSnapForVertex(s, e);
13983
- a !== null && (t.set(o, new v(a)), o === 0 && n._isClosed && t.set(t.size() - 1, new v(a)));
13994
+ a !== null && (t.set(o, new y(a)), o === 0 && n._isClosed && t.set(t.size() - 1, new y(a)));
13984
13995
  }
13985
13996
  };
13986
13997
  Tn.prototype.findSnapForVertex = function(t, e) {
@@ -14006,7 +14017,7 @@ Tn.prototype.snapSegments = function(t, e) {
14006
14017
  e[0].equals2D(e[e.length - 1]) && (i = e.length - 1);
14007
14018
  for (var o = 0; o < i; o++) {
14008
14019
  var s = e[o], a = n.findSegmentIndexToSnap(s, t);
14009
- a >= 0 && t.add(a + 1, new v(s), !1);
14020
+ a >= 0 && t.add(a + 1, new y(s), !1);
14010
14021
  }
14011
14022
  };
14012
14023
  Tn.prototype.findSegmentIndexToSnap = function(t, e) {
@@ -14168,7 +14179,7 @@ mr.prototype.addCommonBits = function(t) {
14168
14179
  mr.prototype.removeCommonBits = function(t) {
14169
14180
  if (this._commonCoord.x === 0 && this._commonCoord.y === 0)
14170
14181
  return t;
14171
- var e = new v(this._commonCoord);
14182
+ var e = new y(this._commonCoord);
14172
14183
  e.x = -e.x, e.y = -e.y;
14173
14184
  var n = new _r(e);
14174
14185
  return t.apply(n), t.geometryChanged(), t;
@@ -14199,7 +14210,7 @@ li.prototype.filter = function(t) {
14199
14210
  this._commonBitsX.add(t.x), this._commonBitsY.add(t.y);
14200
14211
  };
14201
14212
  li.prototype.getCommonCoordinate = function() {
14202
- return new v(this._commonBitsX.getCommon(), this._commonBitsY.getCommon());
14213
+ return new y(this._commonBitsX.getCommon(), this._commonBitsY.getCommon());
14203
14214
  };
14204
14215
  li.prototype.interfaces_ = function() {
14205
14216
  return [Ln];
@@ -14460,7 +14471,7 @@ Wt.prototype.getClass = function() {
14460
14471
  Wt.isAdjacentSegments = function(t, e) {
14461
14472
  return Math.abs(t - e) === 1;
14462
14473
  };
14463
- var Zc = function(r) {
14474
+ var Jc = function(r) {
14464
14475
  function t() {
14465
14476
  r.call(this), this.events = new O(), this.nOverlaps = null;
14466
14477
  }
@@ -14533,7 +14544,7 @@ Mn.prototype.getMax = function() {
14533
14544
  return this._max;
14534
14545
  };
14535
14546
  Mn.prototype.toString = function() {
14536
- return Xe.toLineString(new v(this._min, 0), new v(this._max, 0));
14547
+ return Xe.toLineString(new y(this._min, 0), new y(this._max, 0));
14537
14548
  };
14538
14549
  Mn.prototype.interfaces_ = function() {
14539
14550
  return [];
@@ -14557,7 +14568,7 @@ vo.prototype.interfaces_ = function() {
14557
14568
  vo.prototype.getClass = function() {
14558
14569
  return vo;
14559
14570
  };
14560
- var Jc = function(r) {
14571
+ var $c = function(r) {
14561
14572
  function t() {
14562
14573
  r.call(this), this._item = null;
14563
14574
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -14572,7 +14583,7 @@ var Jc = function(r) {
14572
14583
  }, t.prototype.getClass = function() {
14573
14584
  return t;
14574
14585
  }, t;
14575
- }(Mn), $c = function(r) {
14586
+ }(Mn), tf = function(r) {
14576
14587
  function t() {
14577
14588
  r.call(this), this._node1 = null, this._node2 = null;
14578
14589
  var e = arguments[0], n = arguments[1];
@@ -14604,7 +14615,7 @@ An.prototype.buildTree = function() {
14604
14615
  An.prototype.insert = function(t, e, n) {
14605
14616
  if (this._root !== null)
14606
14617
  throw new Error("Index cannot be added to once it has been queried");
14607
- this._leaves.add(new Jc(t, e, n));
14618
+ this._leaves.add(new $c(t, e, n));
14608
14619
  };
14609
14620
  An.prototype.query = function(t, e, n) {
14610
14621
  this.init(), this._root.query(t, e, n);
@@ -14615,7 +14626,7 @@ An.prototype.buildRoot = function() {
14615
14626
  this._root = this.buildTree();
14616
14627
  };
14617
14628
  An.prototype.printNode = function(t) {
14618
- qt.out.println(Xe.toLineString(new v(t._min, this._level), new v(t._max, this._level)));
14629
+ qt.out.println(Xe.toLineString(new y(t._min, this._level), new y(t._max, this._level)));
14619
14630
  };
14620
14631
  An.prototype.init = function() {
14621
14632
  if (this._root !== null)
@@ -14629,7 +14640,7 @@ An.prototype.buildLevel = function(t, e) {
14629
14640
  if (o === null)
14630
14641
  e.add(i);
14631
14642
  else {
14632
- var s = new $c(t.get(n), t.get(n + 1));
14643
+ var s = new tf(t.get(n), t.get(n + 1));
14633
14644
  e.add(s);
14634
14645
  }
14635
14646
  }
@@ -14771,7 +14782,7 @@ var Ki = function(r) {
14771
14782
  if (arguments[0] instanceof de) {
14772
14783
  var n = arguments[0], i = n.getCoordinate();
14773
14784
  this.insertPoint(this._argIndex, i, _.INTERIOR);
14774
- } else if (arguments[0] instanceof v) {
14785
+ } else if (arguments[0] instanceof y) {
14775
14786
  var o = arguments[0];
14776
14787
  this.insertPoint(this._argIndex, o, _.INTERIOR);
14777
14788
  }
@@ -14820,7 +14831,7 @@ var Ki = function(r) {
14820
14831
  var s = this._nodes.addNode(i), a = s.getLabel();
14821
14832
  a === null ? s._label = new et(n, o) : a.setLocation(n, o);
14822
14833
  }, t.prototype.createEdgeSetIntersector = function() {
14823
- return new Zc();
14834
+ return new Jc();
14824
14835
  }, t.prototype.addSelfIntersectionNodes = function(n) {
14825
14836
  for (var i = this, o = this._edges.iterator(); o.hasNext(); )
14826
14837
  for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
@@ -15192,11 +15203,11 @@ Vr.prototype.getPoints = function(t) {
15192
15203
  Vr.prototype.computeOffsetPoints = function(t, e, n, i) {
15193
15204
  var o = e.x - t.x, s = e.y - t.y, a = Math.sqrt(o * o + s * s), u = n * o / a, l = n * s / a, c = (e.x + t.x) / 2, f = (e.y + t.y) / 2;
15194
15205
  if (this._doLeft) {
15195
- var h = new v(c - l, f + u);
15206
+ var h = new y(c - l, f + u);
15196
15207
  i.add(h);
15197
15208
  }
15198
15209
  if (this._doRight) {
15199
- var g = new v(c + l, f - u);
15210
+ var g = new y(c + l, f - u);
15200
15211
  i.add(g);
15201
15212
  }
15202
15213
  };
@@ -15475,7 +15486,7 @@ function Ma(r, t, e) {
15475
15486
  var n = r.s = t + e, i = n - t, o = n - i;
15476
15487
  r.t = t - o + (e - i);
15477
15488
  }
15478
- var vt = 1e-6, it = Math.PI, Wn = it / 2, Aa = it / 4, tr = it * 2, Sr = 180 / it, tn = it / 180, ne = Math.abs, tf = Math.atan, zi = Math.atan2, bt = Math.cos, Pt = Math.sin, Hi = Math.sqrt;
15489
+ var vt = 1e-6, it = Math.PI, Wn = it / 2, Aa = it / 4, tr = it * 2, Sr = 180 / it, tn = it / 180, ne = Math.abs, ef = Math.atan, zi = Math.atan2, bt = Math.cos, Pt = Math.sin, Hi = Math.sqrt;
15479
15490
  function Gu(r) {
15480
15491
  return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
15481
15492
  }
@@ -15537,7 +15548,7 @@ function Ba(r, t) {
15537
15548
  As(r[e], t, 1);
15538
15549
  t.polygonEnd();
15539
15550
  }
15540
- function ef(r, t) {
15551
+ function nf(r, t) {
15541
15552
  r && Fa.hasOwnProperty(r.type) ? Fa[r.type](r, t) : jo(r, t);
15542
15553
  }
15543
15554
  Wr();
@@ -15578,7 +15589,7 @@ function Bs(r, t) {
15578
15589
  return [r > it ? r - tr : r < -it ? r + tr : r, t];
15579
15590
  }
15580
15591
  Bs.invert = Bs;
15581
- function nf(r, t, e) {
15592
+ function rf(r, t, e) {
15582
15593
  return (r %= tr) ? t || e ? zu(za(r), Va(t, e)) : za(r) : t || e ? Va(t, e) : Bs;
15583
15594
  }
15584
15595
  function Ga(r) {
@@ -15607,7 +15618,7 @@ function Va(r, t) {
15607
15618
  ];
15608
15619
  }, s;
15609
15620
  }
15610
- function rf(r, t, e, n, i, o) {
15621
+ function of(r, t, e, n, i, o) {
15611
15622
  if (e) {
15612
15623
  var s = bt(t), a = Pt(t), u = n * e;
15613
15624
  i == null ? (i = t + n * tr, o = t - u / 2) : (i = Ua(s, i), o = Ua(s, o), (n > 0 ? i < o : i > o) && (i += n * tr));
@@ -15639,7 +15650,7 @@ function Vu() {
15639
15650
  }
15640
15651
  };
15641
15652
  }
15642
- function of(r, t, e, n, i, o) {
15653
+ function sf(r, t, e, n, i, o) {
15643
15654
  var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
15644
15655
  if (p = e - s, !(!h && p > 0)) {
15645
15656
  if (p /= h, h < 0) {
@@ -15696,15 +15707,15 @@ function Do(r, t, e, n) {
15696
15707
  function Uu(r, t, e, n, i) {
15697
15708
  var o = [], s = [], a, u;
15698
15709
  if (r.forEach(function(p) {
15699
- if (!((y = p.length - 1) <= 0)) {
15700
- var y, d = p[0], m = p[y], E;
15701
- if (ko(d, m)) {
15702
- for (i.lineStart(), a = 0; a < y; ++a)
15710
+ if (!((m = p.length - 1) <= 0)) {
15711
+ var m, d = p[0], v = p[m], E;
15712
+ if (ko(d, v)) {
15713
+ for (i.lineStart(), a = 0; a < m; ++a)
15703
15714
  i.point((d = p[a])[0], d[1]);
15704
15715
  i.lineEnd();
15705
15716
  return;
15706
15717
  }
15707
- o.push(E = new Do(d, p, null, !0)), s.push(E.o = new Do(d, null, E, !1)), o.push(E = new Do(m, p, null, !1)), s.push(E.o = new Do(m, null, E, !0));
15718
+ o.push(E = new Do(d, p, null, !0)), s.push(E.o = new Do(d, null, E, !1)), o.push(E = new Do(v, p, null, !1)), s.push(E.o = new Do(v, null, E, !0));
15708
15719
  }
15709
15720
  }), !!o.length) {
15710
15721
  for (s.sort(t), qa(o), qa(s), a = 0, u = s.length; a < u; ++a)
@@ -15746,8 +15757,8 @@ function qa(r) {
15746
15757
  function qu(r, t) {
15747
15758
  return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
15748
15759
  }
15749
- function sf(r) {
15750
- return r.length === 1 && (r = af(r)), {
15760
+ function af(r) {
15761
+ return r.length === 1 && (r = uf(r)), {
15751
15762
  left: function(t, e, n, i) {
15752
15763
  for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
15753
15764
  var o = n + i >>> 1;
@@ -15764,12 +15775,12 @@ function sf(r) {
15764
15775
  }
15765
15776
  };
15766
15777
  }
15767
- function af(r) {
15778
+ function uf(r) {
15768
15779
  return function(t, e) {
15769
15780
  return qu(r(t), e);
15770
15781
  };
15771
15782
  }
15772
- sf(qu);
15783
+ af(qu);
15773
15784
  function Xu(r) {
15774
15785
  for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
15775
15786
  i += r[n].length;
@@ -15779,7 +15790,7 @@ function Xu(r) {
15779
15790
  return o;
15780
15791
  }
15781
15792
  var Zi = 1e9, To = -Zi;
15782
- function uf(r, t, e, n) {
15793
+ function lf(r, t, e, n) {
15783
15794
  function i(l, c) {
15784
15795
  return r <= l && l <= e && t <= c && c <= n;
15785
15796
  }
@@ -15803,7 +15814,7 @@ function uf(r, t, e, n) {
15803
15814
  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];
15804
15815
  }
15805
15816
  return function(l) {
15806
- var c = l, f = Vu(), h, g, p, y, d, m, E, C, L, N, x, D = {
15817
+ var c = l, f = Vu(), h, g, p, m, d, v, E, C, L, N, x, D = {
15807
15818
  point: A,
15808
15819
  lineStart: R,
15809
15820
  lineEnd: Y,
@@ -15830,17 +15841,17 @@ function uf(r, t, e, n) {
15830
15841
  D.point = T, g && g.push(p = []), N = !0, L = !1, E = C = NaN;
15831
15842
  }
15832
15843
  function Y() {
15833
- h && (T(y, d), m && L && f.rejoin(), h.push(f.result())), D.point = A, L && c.lineEnd();
15844
+ h && (T(m, d), v && L && f.rejoin(), h.push(f.result())), D.point = A, L && c.lineEnd();
15834
15845
  }
15835
15846
  function T(W, ut) {
15836
15847
  var dt = i(W, ut);
15837
15848
  if (g && p.push([W, ut]), N)
15838
- y = W, d = ut, m = dt, N = !1, dt && (c.lineStart(), c.point(W, ut));
15849
+ m = W, d = ut, v = dt, N = !1, dt && (c.lineStart(), c.point(W, ut));
15839
15850
  else if (dt && L)
15840
15851
  c.point(W, ut);
15841
15852
  else {
15842
15853
  var Ht = [E = Math.max(To, Math.min(Zi, E)), C = Math.max(To, Math.min(Zi, C))], Jt = [W = Math.max(To, Math.min(Zi, W)), ut = Math.max(To, Math.min(Zi, ut))];
15843
- of(Ht, Jt, r, t, e, n) ? (L || (c.lineStart(), c.point(Ht[0], Ht[1])), c.point(Jt[0], Jt[1]), dt || c.lineEnd(), x = !1) : dt && (c.lineStart(), c.point(W, ut), x = !1);
15854
+ sf(Ht, Jt, r, t, e, n) ? (L || (c.lineStart(), c.point(Ht[0], Ht[1])), c.point(Jt[0], Jt[1]), dt || c.lineEnd(), x = !1) : dt && (c.lineStart(), c.point(W, ut), x = !1);
15844
15855
  }
15845
15856
  E = W, C = ut, L = dt;
15846
15857
  }
@@ -15848,15 +15859,15 @@ function uf(r, t, e, n) {
15848
15859
  };
15849
15860
  }
15850
15861
  var Cs = Wr();
15851
- function lf(r, t) {
15862
+ function cf(r, t) {
15852
15863
  var e = t[0], n = t[1], i = [Pt(e), -bt(e), 0], o = 0, s = 0;
15853
15864
  Cs.reset();
15854
15865
  for (var a = 0, u = r.length; a < u; ++a)
15855
15866
  if (c = (l = r[a]).length)
15856
- for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Aa, p = Pt(g), y = bt(g), d = 0; d < c; ++d, h = E, p = L, y = N, f = m) {
15857
- var m = l[d], E = m[0], C = m[1] / 2 + Aa, L = Pt(C), N = bt(C), x = E - h, D = x >= 0 ? 1 : -1, A = D * x, w = A > it, F = p * L;
15858
- if (Cs.add(zi(F * D * Pt(A), y * N + F * bt(A))), o += w ? x + D * tr : x, w ^ h >= e ^ E >= e) {
15859
- var X = Ko(Vi(f), Vi(m));
15867
+ for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + Aa, p = Pt(g), m = bt(g), d = 0; d < c; ++d, h = E, p = L, m = N, f = v) {
15868
+ var v = l[d], E = v[0], C = v[1] / 2 + Aa, L = Pt(C), N = bt(C), x = E - h, D = x >= 0 ? 1 : -1, A = D * x, w = A > it, F = p * L;
15869
+ if (Cs.add(zi(F * D * Pt(A), m * N + F * bt(A))), o += w ? x + D * tr : x, w ^ h >= e ^ E >= e) {
15870
+ var X = Ko(Vi(f), Vi(v));
15860
15871
  ks(X);
15861
15872
  var R = Ko(i, X);
15862
15873
  ks(R);
@@ -15873,7 +15884,7 @@ function Xa(r) {
15873
15884
  Wr();
15874
15885
  Wr();
15875
15886
  var Ui = 1 / 0, Qo = Ui, yo = -Ui, Zo = yo, Ya = {
15876
- point: cf,
15887
+ point: ff,
15877
15888
  lineStart: Qi,
15878
15889
  lineEnd: Qi,
15879
15890
  polygonStart: Qi,
@@ -15883,29 +15894,29 @@ var Ui = 1 / 0, Qo = Ui, yo = -Ui, Zo = yo, Ya = {
15883
15894
  return yo = Zo = -(Qo = Ui = 1 / 0), r;
15884
15895
  }
15885
15896
  };
15886
- function cf(r, t) {
15897
+ function ff(r, t) {
15887
15898
  r < Ui && (Ui = r), r > yo && (yo = r), t < Qo && (Qo = t), t > Zo && (Zo = t);
15888
15899
  }
15889
15900
  Wr();
15890
15901
  function Yu(r, t, e, n) {
15891
15902
  return function(i, o) {
15892
15903
  var s = t(o), a = i.invert(n[0], n[1]), u = Vu(), l = t(u), c = !1, f, h, g, p = {
15893
- point: y,
15894
- lineStart: m,
15904
+ point: m,
15905
+ lineStart: v,
15895
15906
  lineEnd: E,
15896
15907
  polygonStart: function() {
15897
15908
  p.point = C, p.lineStart = L, p.lineEnd = N, h = [], f = [];
15898
15909
  },
15899
15910
  polygonEnd: function() {
15900
- p.point = y, p.lineStart = m, p.lineEnd = E, h = Xu(h);
15901
- var x = lf(f, a);
15902
- h.length ? (c || (o.polygonStart(), c = !0), Uu(h, hf, x, e, o)) : x && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
15911
+ p.point = m, p.lineStart = v, p.lineEnd = E, h = Xu(h);
15912
+ var x = cf(f, a);
15913
+ h.length ? (c || (o.polygonStart(), c = !0), Uu(h, gf, x, e, o)) : x && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
15903
15914
  },
15904
15915
  sphere: function() {
15905
15916
  o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
15906
15917
  }
15907
15918
  };
15908
- function y(x, D) {
15919
+ function m(x, D) {
15909
15920
  var A = i(x, D);
15910
15921
  r(x = A[0], D = A[1]) && o.point(x, D);
15911
15922
  }
@@ -15913,11 +15924,11 @@ function Yu(r, t, e, n) {
15913
15924
  var A = i(x, D);
15914
15925
  s.point(A[0], A[1]);
15915
15926
  }
15916
- function m() {
15927
+ function v() {
15917
15928
  p.point = d, s.lineStart();
15918
15929
  }
15919
15930
  function E() {
15920
- p.point = y, s.lineEnd();
15931
+ p.point = m, s.lineEnd();
15921
15932
  }
15922
15933
  function C(x, D) {
15923
15934
  g.push([x, D]);
@@ -15939,27 +15950,27 @@ function Yu(r, t, e, n) {
15939
15950
  }
15940
15951
  return;
15941
15952
  }
15942
- w > 1 && x & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(ff));
15953
+ w > 1 && x & 2 && D.push(D.pop().concat(D.shift())), h.push(D.filter(hf));
15943
15954
  }
15944
15955
  }
15945
15956
  return p;
15946
15957
  };
15947
15958
  }
15948
- function ff(r) {
15959
+ function hf(r) {
15949
15960
  return r.length > 1;
15950
15961
  }
15951
- function hf(r, t) {
15962
+ function gf(r, t) {
15952
15963
  return ((r = r.x)[0] < 0 ? r[1] - Wn - vt : Wn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - Wn - vt : Wn - t[1]);
15953
15964
  }
15954
15965
  const Wa = Yu(
15955
15966
  function() {
15956
15967
  return !0;
15957
15968
  },
15958
- gf,
15959
- df,
15969
+ pf,
15970
+ vf,
15960
15971
  [-it, -Wn]
15961
15972
  );
15962
- function gf(r) {
15973
+ function pf(r) {
15963
15974
  var t = NaN, e = NaN, n = NaN, i;
15964
15975
  return {
15965
15976
  lineStart: function() {
@@ -15967,7 +15978,7 @@ function gf(r) {
15967
15978
  },
15968
15979
  point: function(o, s) {
15969
15980
  var a = o > 0 ? it : -it, u = ne(o - t);
15970
- ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e = pf(t, e, o, s), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), i = 0), r.point(t = o, e = s), n = a;
15981
+ ne(u - it) < vt ? (r.point(t, e = (e + s) / 2 > 0 ? Wn : -Wn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (ne(t - n) < vt && (t -= n * vt), ne(o - a) < vt && (o -= a * vt), e = df(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;
15971
15982
  },
15972
15983
  lineEnd: function() {
15973
15984
  r.lineEnd(), t = e = NaN;
@@ -15977,11 +15988,11 @@ function gf(r) {
15977
15988
  }
15978
15989
  };
15979
15990
  }
15980
- function pf(r, t, e, n) {
15991
+ function df(r, t, e, n) {
15981
15992
  var i, o, s = Pt(r - e);
15982
- return ne(s) > vt ? tf((Pt(t) * (o = bt(n)) * Pt(e) - Pt(n) * (i = bt(t)) * Pt(r)) / (i * o * s)) : (t + n) / 2;
15993
+ return ne(s) > vt ? ef((Pt(t) * (o = bt(n)) * Pt(e) - Pt(n) * (i = bt(t)) * Pt(r)) / (i * o * s)) : (t + n) / 2;
15983
15994
  }
15984
- function df(r, t, e, n) {
15995
+ function vf(r, t, e, n) {
15985
15996
  var i;
15986
15997
  if (r == null)
15987
15998
  i = e * Wn, n.point(-it, i), n.point(0, i), n.point(it, i), n.point(it, 0), n.point(it, -i), n.point(0, -i), n.point(-it, -i), n.point(-it, 0), n.point(-it, i);
@@ -15991,27 +16002,27 @@ function df(r, t, e, n) {
15991
16002
  } else
15992
16003
  n.point(t[0], t[1]);
15993
16004
  }
15994
- function vf(r, t) {
16005
+ function yf(r, t) {
15995
16006
  var e = bt(r), n = e > 0, i = ne(e) > vt;
15996
16007
  function o(c, f, h, g) {
15997
- rf(g, r, t, h, c, f);
16008
+ of(g, r, t, h, c, f);
15998
16009
  }
15999
16010
  function s(c, f) {
16000
16011
  return bt(c) * bt(f) > e;
16001
16012
  }
16002
16013
  function a(c) {
16003
- var f, h, g, p, y;
16014
+ var f, h, g, p, m;
16004
16015
  return {
16005
16016
  lineStart: function() {
16006
- p = g = !1, y = 1;
16017
+ p = g = !1, m = 1;
16007
16018
  },
16008
- point: function(d, m) {
16009
- var E = [d, m], C, L = s(d, m), N = n ? L ? 0 : l(d, m) : L ? l(d + (d < 0 ? it : -it), m) : 0;
16019
+ point: function(d, v) {
16020
+ var E = [d, v], C, L = s(d, v), N = n ? L ? 0 : l(d, v) : L ? l(d + (d < 0 ? it : -it), v) : 0;
16010
16021
  if (!f && (p = g = L) && c.lineStart(), L !== g && (C = u(f, E), (!C || ko(f, C) || ko(E, C)) && (E[0] += vt, E[1] += vt, L = s(E[0], E[1]))), L !== g)
16011
- y = 0, L ? (c.lineStart(), C = u(E, f), c.point(C[0], C[1])) : (C = u(f, E), c.point(C[0], C[1]), c.lineEnd()), f = C;
16022
+ m = 0, L ? (c.lineStart(), C = u(E, f), c.point(C[0], C[1])) : (C = u(f, E), c.point(C[0], C[1]), c.lineEnd()), f = C;
16012
16023
  else if (i && f && n ^ L) {
16013
16024
  var x;
16014
- !(N & h) && (x = u(E, f, !0)) && (y = 0, n ? (c.lineStart(), c.point(x[0][0], x[0][1]), c.point(x[1][0], x[1][1]), c.lineEnd()) : (c.point(x[1][0], x[1][1]), c.lineEnd(), c.lineStart(), c.point(x[0][0], x[0][1])));
16025
+ !(N & h) && (x = u(E, f, !0)) && (m = 0, n ? (c.lineStart(), c.point(x[0][0], x[0][1]), c.point(x[1][0], x[1][1]), c.lineEnd()) : (c.point(x[1][0], x[1][1]), c.lineEnd(), c.lineStart(), c.point(x[0][0], x[0][1])));
16015
16026
  }
16016
16027
  L && (!f || !ko(f, E)) && c.point(E[0], E[1]), f = E, g = L, h = N;
16017
16028
  },
@@ -16021,15 +16032,15 @@ function vf(r, t) {
16021
16032
  // Rejoin first and last segments if there were intersections and the first
16022
16033
  // and last points were visible.
16023
16034
  clean: function() {
16024
- return y | (p && g) << 1;
16035
+ return m | (p && g) << 1;
16025
16036
  }
16026
16037
  };
16027
16038
  }
16028
16039
  function u(c, f, h) {
16029
- var g = Vi(c), p = Vi(f), y = [1, 0, 0], d = Ko(g, p), m = Ro(d, d), E = d[0], C = m - E * E;
16040
+ var g = Vi(c), p = Vi(f), m = [1, 0, 0], d = Ko(g, p), v = Ro(d, d), E = d[0], C = v - E * E;
16030
16041
  if (!C)
16031
16042
  return !h && c;
16032
- var L = e * m / C, N = -e * E / C, x = Ko(y, d), D = Oo(y, L), A = Oo(d, N);
16043
+ var L = e * v / C, N = -e * E / C, x = Ko(m, d), D = Oo(m, L), A = Oo(d, N);
16033
16044
  Is(D, A);
16034
16045
  var w = x, F = Ro(D, w), X = Ro(w, w), R = F * F - X * (Ro(D, D) - 1);
16035
16046
  if (!(R < 0)) {
@@ -16084,35 +16095,35 @@ Gs.prototype = {
16084
16095
  };
16085
16096
  function Hu(r, t, e) {
16086
16097
  var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
16087
- r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), ef(e, r.stream(Ya));
16098
+ r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), nf(e, r.stream(Ya));
16088
16099
  var s = Ya.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;
16089
16100
  return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
16090
16101
  }
16091
- function yf(r, t, e) {
16102
+ function mf(r, t, e) {
16092
16103
  return Hu(r, [[0, 0], t], e);
16093
16104
  }
16094
- var Ha = 16, mf = bt(30 * tn);
16105
+ var Ha = 16, _f = bt(30 * tn);
16095
16106
  function ja(r, t) {
16096
- return +t ? Ef(r, t) : _f(r);
16107
+ return +t ? If(r, t) : Ef(r);
16097
16108
  }
16098
- function _f(r) {
16109
+ function Ef(r) {
16099
16110
  return Wu({
16100
16111
  point: function(t, e) {
16101
16112
  t = r(t, e), this.stream.point(t[0], t[1]);
16102
16113
  }
16103
16114
  });
16104
16115
  }
16105
- function Ef(r, t) {
16106
- function e(n, i, o, s, a, u, l, c, f, h, g, p, y, d) {
16107
- var m = l - n, E = c - i, C = m * m + E * E;
16108
- if (C > 4 * t && y--) {
16109
- var L = s + h, N = a + g, x = u + p, D = Hi(L * L + N * N + x * x), A = ci(x /= D), w = ne(ne(x) - 1) < vt || ne(o - f) < vt ? (o + f) / 2 : zi(N, L), F = r(w, A), X = F[0], R = F[1], Y = X - n, T = R - i, W = E * Y - m * T;
16110
- (W * W / C > t || ne((m * Y + E * T) / C - 0.5) > 0.3 || s * h + a * g + u * p < mf) && (e(n, i, o, s, a, u, X, R, w, L /= D, N /= D, x, y, d), d.point(X, R), e(X, R, w, L, N, x, l, c, f, h, g, p, y, d));
16116
+ function If(r, t) {
16117
+ function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
16118
+ var v = l - n, E = c - i, C = v * v + E * E;
16119
+ if (C > 4 * t && m--) {
16120
+ var L = s + h, N = a + g, x = u + p, D = Hi(L * L + N * N + x * x), A = ci(x /= D), w = ne(ne(x) - 1) < vt || ne(o - f) < vt ? (o + f) / 2 : zi(N, L), F = r(w, A), X = F[0], R = F[1], Y = X - n, T = R - i, W = E * Y - v * T;
16121
+ (W * W / C > t || ne((v * Y + E * T) / C - 0.5) > 0.3 || s * h + a * g + u * p < _f) && (e(n, i, o, s, a, u, X, R, w, L /= D, N /= D, x, m, d), d.point(X, R), e(X, R, w, L, N, x, l, c, f, h, g, p, m, d));
16111
16122
  }
16112
16123
  }
16113
16124
  return function(n) {
16114
- var i, o, s, a, u, l, c, f, h, g, p, y, d = {
16115
- point: m,
16125
+ var i, o, s, a, u, l, c, f, h, g, p, m, d = {
16126
+ point: v,
16116
16127
  lineStart: E,
16117
16128
  lineEnd: L,
16118
16129
  polygonStart: function() {
@@ -16122,7 +16133,7 @@ function Ef(r, t) {
16122
16133
  n.polygonEnd(), d.lineStart = E;
16123
16134
  }
16124
16135
  };
16125
- function m(A, w) {
16136
+ function v(A, w) {
16126
16137
  A = r(A, w), n.point(A[0], A[1]);
16127
16138
  }
16128
16139
  function E() {
@@ -16130,35 +16141,35 @@ function Ef(r, t) {
16130
16141
  }
16131
16142
  function C(A, w) {
16132
16143
  var F = Vi([A, w]), X = r(A, w);
16133
- e(f, h, c, g, p, y, f = X[0], h = X[1], c = A, g = F[0], p = F[1], y = F[2], Ha, n), n.point(f, h);
16144
+ e(f, h, c, g, p, m, f = X[0], h = X[1], c = A, g = F[0], p = F[1], m = F[2], Ha, n), n.point(f, h);
16134
16145
  }
16135
16146
  function L() {
16136
- d.point = m, n.lineEnd();
16147
+ d.point = v, n.lineEnd();
16137
16148
  }
16138
16149
  function N() {
16139
16150
  E(), d.point = x, d.lineEnd = D;
16140
16151
  }
16141
16152
  function x(A, w) {
16142
- C(i = A, w), o = f, s = h, a = g, u = p, l = y, d.point = C;
16153
+ C(i = A, w), o = f, s = h, a = g, u = p, l = m, d.point = C;
16143
16154
  }
16144
16155
  function D() {
16145
- e(f, h, c, g, p, y, o, s, i, a, u, l, Ha, n), d.lineEnd = L, L();
16156
+ e(f, h, c, g, p, m, o, s, i, a, u, l, Ha, n), d.lineEnd = L, L();
16146
16157
  }
16147
16158
  return d;
16148
16159
  };
16149
16160
  }
16150
- var If = Wu({
16161
+ var Cf = Wu({
16151
16162
  point: function(r, t) {
16152
16163
  this.stream.point(r * tn, t * tn);
16153
16164
  }
16154
16165
  });
16155
- function Cf(r) {
16156
- return Nf(function() {
16166
+ function Nf(r) {
16167
+ return Sf(function() {
16157
16168
  return r;
16158
16169
  })();
16159
16170
  }
16160
- function Nf(r) {
16161
- var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, y = Wa, d = null, m, E, C, L = Xa, N = 0.5, x = ja(X, N), D, A;
16171
+ function Sf(r) {
16172
+ 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 = Wa, d = null, v, E, C, L = Xa, N = 0.5, x = ja(X, N), D, A;
16162
16173
  function w(T) {
16163
16174
  return T = g(T[0] * tn, T[1] * tn), [T[0] * e + o, s - T[1] * e];
16164
16175
  }
@@ -16169,11 +16180,11 @@ function Nf(r) {
16169
16180
  return T = t(T, W), [T[0] * e + o, s - T[1] * e];
16170
16181
  }
16171
16182
  w.stream = function(T) {
16172
- return D && A === T ? D : D = If(y(h, x(L(A = T))));
16183
+ return D && A === T ? D : D = Cf(m(h, x(L(A = T))));
16173
16184
  }, w.clipAngle = function(T) {
16174
- return arguments.length ? (y = +T ? vf(p = T * tn, 6 * tn) : (p = null, Wa), Y()) : p * Sr;
16185
+ return arguments.length ? (m = +T ? yf(p = T * tn, 6 * tn) : (p = null, Wa), Y()) : p * Sr;
16175
16186
  }, w.clipExtent = function(T) {
16176
- return arguments.length ? (L = T == null ? (d = m = E = C = null, Xa) : uf(d = +T[0][0], m = +T[0][1], E = +T[1][0], C = +T[1][1]), Y()) : d == null ? null : [[d, m], [E, C]];
16187
+ return arguments.length ? (L = T == null ? (d = v = E = C = null, Xa) : lf(d = +T[0][0], v = +T[0][1], E = +T[1][0], C = +T[1][1]), Y()) : d == null ? null : [[d, v], [E, C]];
16177
16188
  }, w.scale = function(T) {
16178
16189
  return arguments.length ? (e = +T, R()) : e;
16179
16190
  }, w.translate = function(T) {
@@ -16187,10 +16198,10 @@ function Nf(r) {
16187
16198
  }, w.fitExtent = function(T, W) {
16188
16199
  return Hu(w, T, W);
16189
16200
  }, w.fitSize = function(T, W) {
16190
- return yf(w, T, W);
16201
+ return mf(w, T, W);
16191
16202
  };
16192
16203
  function R() {
16193
- g = zu(h = nf(l, c, f), t);
16204
+ g = zu(h = rf(l, c, f), t);
16194
16205
  var T = t(a, u);
16195
16206
  return o = n - T[0] * e, s = i + T[1] * e, Y();
16196
16207
  }
@@ -16219,10 +16230,10 @@ function Ku(r) {
16219
16230
  ];
16220
16231
  };
16221
16232
  }
16222
- var Sf = ju(function(r) {
16233
+ var xf = ju(function(r) {
16223
16234
  return Hi(2 / (1 + r));
16224
16235
  });
16225
- Sf.invert = Ku(function(r) {
16236
+ xf.invert = Ku(function(r) {
16226
16237
  return 2 * ci(r / 2);
16227
16238
  });
16228
16239
  var Qu = ju(function(r) {
@@ -16231,14 +16242,14 @@ var Qu = ju(function(r) {
16231
16242
  Qu.invert = Ku(function(r) {
16232
16243
  return r;
16233
16244
  });
16234
- function xf() {
16235
- return Cf(Qu).scale(79.4188).clipAngle(180 - 1e-3);
16245
+ function wf() {
16246
+ return Nf(Qu).scale(79.4188).clipAngle(180 - 1e-3);
16236
16247
  }
16237
16248
  function Ka(r, t) {
16238
16249
  return [r, t];
16239
16250
  }
16240
16251
  Ka.invert = Ka;
16241
- function wf(r, t, e) {
16252
+ function Lf(r, t, e) {
16242
16253
  e = e || {};
16243
16254
  var n = e.units || "kilometers", i = e.steps || 8;
16244
16255
  if (!r)
@@ -16272,15 +16283,15 @@ function Bo(r, t, e, n) {
16272
16283
  var i = r.properties || {}, o = r.type === "Feature" ? r.geometry : r;
16273
16284
  if (o.type === "GeometryCollection") {
16274
16285
  var s = [];
16275
- return fu(r, function(y) {
16276
- var d = Bo(y, t, e, n);
16286
+ return fu(r, function(m) {
16287
+ var d = Bo(m, t, e, n);
16277
16288
  d && s.push(d);
16278
16289
  }), Ds(s);
16279
16290
  }
16280
- var a = Lf(o), u = {
16291
+ var a = bf(o), u = {
16281
16292
  type: o.type,
16282
16293
  coordinates: Ju(o.coordinates, a)
16283
- }, l = new js(), c = l.read(u), f = Rc(Oc(t, e), "meters"), h = Vt.bufferOp(c, f, n), g = new Iu();
16294
+ }, l = new js(), c = l.read(u), f = Oc(Dc(t, e), "meters"), h = Vt.bufferOp(c, f, n), g = new Iu();
16284
16295
  if (h = g.write(h), !Zu(h.coordinates)) {
16285
16296
  var p = {
16286
16297
  type: h.type,
@@ -16302,11 +16313,11 @@ function $u(r, t) {
16302
16313
  return $u(e, t);
16303
16314
  });
16304
16315
  }
16305
- function Lf(r) {
16306
- var t = Fc(r).geometry.coordinates, e = [-t[0], -t[1]];
16307
- return xf().rotate(e).scale(Ie);
16316
+ function bf(r) {
16317
+ var t = kc(r).geometry.coordinates, e = [-t[0], -t[1]];
16318
+ return wf().rotate(e).scale(Ie);
16308
16319
  }
16309
- function bf(r, t) {
16320
+ function Pf(r, t) {
16310
16321
  var e = Vo(r), n = Vo(t), i = r.properties || {}, o = su.difference(
16311
16322
  e.coordinates,
16312
16323
  n.coordinates
@@ -16319,7 +16330,7 @@ function Qa(r) {
16319
16330
  t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
16320
16331
  }
16321
16332
  function Za(r, t) {
16322
- const e = bf(
16333
+ const e = Pf(
16323
16334
  {
16324
16335
  type: "Polygon",
16325
16336
  coordinates: [
@@ -16337,7 +16348,7 @@ function Za(r, t) {
16337
16348
  if (!e)
16338
16349
  return;
16339
16350
  e.properties = { isMask: "y" };
16340
- const n = wf(r, 0);
16351
+ const n = Lf(r, 0);
16341
16352
  if (n.geometry.type === "Polygon")
16342
16353
  for (const i of n.geometry.coordinates)
16343
16354
  Qa(i);
@@ -16350,7 +16361,7 @@ function Za(r, t) {
16350
16361
  features: [n, e]
16351
16362
  });
16352
16363
  }
16353
- function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16364
+ function Rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16354
16365
  var l, c, f;
16355
16366
  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;
16356
16367
  return {
@@ -16368,18 +16379,18 @@ function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16368
16379
  }).addTo(r);
16369
16380
  const h = () => {
16370
16381
  let d;
16371
- const m = r.getZoom() > 10 ? [(d = r.getCenter().wrap()).lng, d.lat] : void 0;
16372
- a !== m && (a = m, s == null || s({ type: "proximityChange", proximity: m }));
16382
+ const v = r.getZoom() > 10 ? [(d = r.getCenter().wrap()).lng, d.lat] : void 0;
16383
+ a !== v && (a = v, s == null || s({ type: "proximityChange", proximity: v }));
16373
16384
  }, g = (d) => {
16374
16385
  s == null || s({
16375
16386
  type: "mapClick",
16376
16387
  coordinates: [d.latlng.lng, d.latlng.lat]
16377
16388
  });
16378
16389
  };
16379
- function p(d, m = !1) {
16390
+ function p(d, v = !1) {
16380
16391
  const E = document.createElement("div");
16381
- return new Ac({ props: { displayIn: "leaflet" }, target: E }), new or.Marker(d, {
16382
- interactive: m,
16392
+ return new Fc({ props: { displayIn: "leaflet" }, target: E }), new or.Marker(d, {
16393
+ interactive: v,
16383
16394
  icon: new or.DivIcon({
16384
16395
  html: E,
16385
16396
  className: "",
@@ -16393,16 +16404,16 @@ function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16393
16404
  setEventHandler(d) {
16394
16405
  d ? (s = d, r.on("moveend", h), h(), r.on("click", g)) : (r.off("moveend", h), s == null || s({ type: "proximityChange", proximity: void 0 }), s = void 0, r.off("click", g));
16395
16406
  },
16396
- flyTo(d, m) {
16397
- r.flyTo([d[1], d[0]], m, { duration: 2, ...n });
16407
+ flyTo(d, v) {
16408
+ r.flyTo([d[1], d[0]], v, { duration: 2, ...n });
16398
16409
  },
16399
- fitBounds(d, m, E) {
16410
+ fitBounds(d, v, E) {
16400
16411
  r.flyToBounds(
16401
16412
  [
16402
16413
  [d[1], d[0]],
16403
16414
  [d[3], d[2]]
16404
16415
  ],
16405
- { padding: [m, m], duration: 2, maxZoom: E, ...i }
16416
+ { padding: [v, v], duration: 2, maxZoom: E, ...i }
16406
16417
  );
16407
16418
  },
16408
16419
  indicateReverse(d) {
@@ -16412,10 +16423,10 @@ function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16412
16423
  var E;
16413
16424
  if (!t)
16414
16425
  return;
16415
- const m = d && [d[1], d[0]];
16416
- c ? m ? c.setLatLng(m) : (c.remove(), c = void 0) : m && (c = (typeof t == "object" ? new or.Marker(m, t) : p(m)).addTo(r), (E = c.getElement()) == null || E.classList.add("marker-reverse"));
16426
+ const v = d && [d[1], d[0]];
16427
+ c ? v ? c.setLatLng(v) : (c.remove(), c = void 0) : v && (c = (typeof t == "object" ? new or.Marker(v, t) : p(v)).addTo(r), (E = c.getElement()) == null || E.classList.add("marker-reverse"));
16417
16428
  },
16418
- setMarkers(d, m) {
16429
+ setMarkers(d, v) {
16419
16430
  if (!t)
16420
16431
  return;
16421
16432
  function E(C) {
@@ -16423,43 +16434,43 @@ function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16423
16434
  }
16424
16435
  for (const C of u)
16425
16436
  C.remove();
16426
- if (u.length = 0, E(), m) {
16437
+ if (u.length = 0, E(), v) {
16427
16438
  let C = !1;
16428
- if (m.geometry.type === "GeometryCollection") {
16429
- const N = m.geometry.geometries.filter(
16439
+ if (v.geometry.type === "GeometryCollection") {
16440
+ const N = v.geometry.geometries.filter(
16430
16441
  (x) => x.type === "Polygon" || x.type === "MultiPolygon"
16431
16442
  );
16432
16443
  if (N.length > 0) {
16433
16444
  let x = N.pop();
16434
16445
  for (const D of N)
16435
- x = Dc(x, D);
16436
- Za({ ...m, geometry: x }, E), C = !0;
16446
+ x = Tc(x, D);
16447
+ Za({ ...v, geometry: x }, E), C = !0;
16437
16448
  } else {
16438
- const x = m.geometry.geometries.filter(
16449
+ const x = v.geometry.geometries.filter(
16439
16450
  (D) => D.type === "LineString" || D.type === "MultiLineString"
16440
16451
  );
16441
16452
  x.length > 0 && (E({
16442
- ...m,
16453
+ ...v,
16443
16454
  geometry: { type: "GeometryCollection", geometries: x }
16444
16455
  }), C = !0);
16445
16456
  }
16446
16457
  }
16447
16458
  if (!C) {
16448
- if (m.geometry.type === "Polygon" || m.geometry.type === "MultiPolygon")
16449
- Za(m, E);
16450
- else if (m.geometry.type === "LineString" || m.geometry.type === "MultiLineString") {
16451
- E(m);
16459
+ if (v.geometry.type === "Polygon" || v.geometry.type === "MultiPolygon")
16460
+ Za(v, E);
16461
+ else if (v.geometry.type === "LineString" || v.geometry.type === "MultiLineString") {
16462
+ E(v);
16452
16463
  return;
16453
16464
  }
16454
16465
  }
16455
- const L = [m.center[1], m.center[0]];
16466
+ const L = [v.center[1], v.center[0]];
16456
16467
  u.push(
16457
16468
  (typeof t == "object" ? new or.Marker(L, t) : p(L)).addTo(r)
16458
16469
  );
16459
16470
  }
16460
16471
  if (e)
16461
16472
  for (const C of d ?? []) {
16462
- if (C === m)
16473
+ if (C === v)
16463
16474
  continue;
16464
16475
  const L = [
16465
16476
  C.center[1],
@@ -16479,13 +16490,13 @@ function Pf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
16479
16490
  }
16480
16491
  },
16481
16492
  setSelectedMarker(d) {
16482
- var m, E;
16483
- l && ((m = l.getElement()) == null || m.classList.toggle("marker-selected", !1)), l = d > -1 ? u[d] : void 0, (E = l == null ? void 0 : l.getElement()) == null || E.classList.toggle("marker-selected", !0);
16493
+ var v, E;
16494
+ l && ((v = l.getElement()) == null || v.classList.toggle("marker-selected", !1)), l = d > -1 ? u[d] : void 0, (E = l == null ? void 0 : l.getElement()) == null || E.classList.toggle("marker-selected", !0);
16484
16495
  }
16485
16496
  };
16486
16497
  }
16487
16498
  var Cn, Zr;
16488
- class Rf extends or.Control {
16499
+ class Of extends or.Control {
16489
16500
  constructor(e) {
16490
16501
  super();
16491
16502
  ys(this, Cn, void 0);
@@ -16501,7 +16512,7 @@ class Rf extends or.Control {
16501
16512
  flyTo: s,
16502
16513
  fullGeometryStyle: a,
16503
16514
  ...u
16504
- } = zn(this, Zr), l = typeof s == "boolean" ? {} : s, c = Pf(
16515
+ } = zn(this, Zr), l = typeof s == "boolean" ? {} : s, c = Rf(
16505
16516
  e,
16506
16517
  i,
16507
16518
  o,
@@ -16509,7 +16520,7 @@ class Rf extends or.Control {
16509
16520
  l,
16510
16521
  a
16511
16522
  );
16512
- Lo(this, Cn, new sc({
16523
+ Lo(this, Cn, new ac({
16513
16524
  target: n,
16514
16525
  props: {
16515
16526
  mapController: c,
@@ -16567,12 +16578,12 @@ class Rf extends or.Control {
16567
16578
  }
16568
16579
  }
16569
16580
  Cn = new WeakMap(), Zr = new WeakMap();
16570
- function Of(...r) {
16571
- return new Rf(...r);
16581
+ function Df(...r) {
16582
+ return new Of(...r);
16572
16583
  }
16573
- window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = Of);
16584
+ window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = Df);
16574
16585
  export {
16575
- Rf as GeocodingControl,
16576
- Pf as createLeafletMapController
16586
+ Of as GeocodingControl,
16587
+ Rf as createLeafletMapController
16577
16588
  };
16578
16589
  //# sourceMappingURL=leaflet.js.map