@maptiler/geocoding-control 0.0.83 → 0.0.84

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/maplibregl.js CHANGED
@@ -7,8 +7,8 @@ var _n = (r, t, e) => (Zs(r, t, "read from private field"), e ? e.call(r) : t.ge
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(r) : t.set(r, e);
9
9
  }, Co = (r, t, e, n) => (Zs(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
10
- import * as ol from "maplibre-gl";
11
- import * as sl from "@maptiler/sdk";
10
+ import * as ol from "@maptiler/sdk";
11
+ import * as sl from "maplibre-gl";
12
12
  function Zt() {
13
13
  }
14
14
  function al(r, t) {
@@ -22,7 +22,7 @@ function Ha(r) {
22
22
  function $s() {
23
23
  return /* @__PURE__ */ Object.create(null);
24
24
  }
25
- function Tr(r) {
25
+ function Mr(r) {
26
26
  r.forEach(Ha);
27
27
  }
28
28
  function Wa(r) {
@@ -92,7 +92,7 @@ function gl(r, t) {
92
92
  function oe(r) {
93
93
  return document.createElement(r);
94
94
  }
95
- function Cr(r) {
95
+ function xr(r) {
96
96
  return document.createElementNS("http://www.w3.org/2000/svg", r);
97
97
  }
98
98
  function Vr(r) {
@@ -116,7 +116,7 @@ function dl(r) {
116
116
  return Array.from(r.childNodes);
117
117
  }
118
118
  function Hi(r, t) {
119
- t = "" + t, r.wholeText !== t && (r.data = t);
119
+ t = "" + t, r.data !== t && (r.data = t);
120
120
  }
121
121
  function ea(r, t) {
122
122
  r.value = t ?? "";
@@ -192,7 +192,7 @@ function Qa() {
192
192
  }
193
193
  function Il(r) {
194
194
  if (r.fragment !== null) {
195
- r.update(), Tr(r.before_update);
195
+ r.update(), Mr(r.before_update);
196
196
  const t = r.dirty;
197
197
  r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, t), r.after_update.forEach(ys);
198
198
  }
@@ -212,7 +212,7 @@ function ra() {
212
212
  };
213
213
  }
214
214
  function ia() {
215
- zr.r || Tr(zr.c), zr = zr.p;
215
+ zr.r || Mr(zr.c), zr = zr.p;
216
216
  }
217
217
  function Je(r, t) {
218
218
  r && r.i && (bo.delete(r), r.i(t));
@@ -234,12 +234,12 @@ function ji(r, t, e, n) {
234
234
  const { fragment: i, after_update: o } = r.$$;
235
235
  i && i.m(t, e), n || ys(() => {
236
236
  const s = r.$$.on_mount.map(Ha).filter(Wa);
237
- r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Tr(s), r.$$.on_mount = [];
237
+ r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Mr(s), r.$$.on_mount = [];
238
238
  }), o.forEach(ys);
239
239
  }
240
240
  function Ki(r, t) {
241
241
  const e = r.$$;
242
- e.fragment !== null && (Cl(e.after_update), Tr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
242
+ e.fragment !== null && (Cl(e.after_update), Mr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
243
243
  }
244
244
  function xl(r, t) {
245
245
  r.$$.dirty[0] === -1 && (ai.push(r), El(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
@@ -273,7 +273,7 @@ function Ti(r, t, e, n, i, o, s, a = [-1]) {
273
273
  if (l.ctx = e ? e(r, t.props || {}, (f, h, ...g) => {
274
274
  const p = g.length ? g[0] : h;
275
275
  return l.ctx && i(l.ctx[f], l.ctx[f] = p) && (!l.skip_bound && l.bound[f] && l.bound[f](p), c && xl(r, f)), h;
276
- }) : [], l.update(), c = !0, Tr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
276
+ }) : [], l.update(), c = !0, Mr(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
277
277
  if (t.hydrate) {
278
278
  const f = dl(t.target);
279
279
  l.fragment && l.fragment.l(f), f.forEach(Te);
@@ -304,7 +304,7 @@ function Nl(r) {
304
304
  let t, e;
305
305
  return {
306
306
  c() {
307
- t = Cr("svg"), e = Cr("path"), B(e, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), B(t, "viewBox", "0 0 60.006 21.412"), B(t, "width", "14"), B(t, "height", "20"), B(t, "class", "svelte-en2qvf");
307
+ t = xr("svg"), e = xr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
308
308
  },
309
309
  m(n, i) {
310
310
  We(n, t, i), ct(t, e);
@@ -323,19 +323,19 @@ class Sl extends Mi {
323
323
  }
324
324
  }
325
325
  function wl(r) {
326
- let t, e;
326
+ let t;
327
327
  return {
328
328
  c() {
329
- t = Cr("svg"), e = Cr("path"), B(e, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "width", "16"), B(t, "height", "16"), B(t, "class", "svelte-en2qvf");
329
+ t = oe("div"), t.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', B(t, "class", "svelte-7cmwmc");
330
330
  },
331
- m(n, i) {
332
- We(n, t, i), ct(t, e);
331
+ m(e, n) {
332
+ We(e, t, n);
333
333
  },
334
334
  p: Zt,
335
335
  i: Zt,
336
336
  o: Zt,
337
- d(n) {
338
- n && Te(t);
337
+ d(e) {
338
+ e && Te(t);
339
339
  }
340
340
  };
341
341
  }
@@ -345,19 +345,19 @@ class Ll extends Mi {
345
345
  }
346
346
  }
347
347
  function bl(r) {
348
- let t;
348
+ let t, e;
349
349
  return {
350
350
  c() {
351
- t = oe("div"), t.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', B(t, "class", "svelte-7cmwmc");
351
+ t = xr("svg"), e = xr("path"), B(e, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), B(t, "viewBox", "0 0 60.006 21.412"), B(t, "width", "14"), B(t, "height", "20"), B(t, "class", "svelte-en2qvf");
352
352
  },
353
- m(e, n) {
354
- We(e, t, n);
353
+ m(n, i) {
354
+ We(n, t, i), ct(t, e);
355
355
  },
356
356
  p: Zt,
357
357
  i: Zt,
358
358
  o: Zt,
359
- d(e) {
360
- e && Te(t);
359
+ d(n) {
360
+ n && Te(t);
361
361
  }
362
362
  };
363
363
  }
@@ -367,65 +367,10 @@ class Pl extends Mi {
367
367
  }
368
368
  }
369
369
  function Rl(r) {
370
- let t, e, n;
371
- return {
372
- c() {
373
- t = Cr("svg"), e = Cr("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = /*displayIn*/
374
- r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
375
- t,
376
- "in-map",
377
- /*displayIn*/
378
- r[0] !== "list"
379
- ), en(
380
- t,
381
- "list-icon",
382
- /*displayIn*/
383
- r[0] === "list"
384
- );
385
- },
386
- m(i, o) {
387
- We(i, t, o), ct(t, e);
388
- },
389
- p(i, [o]) {
390
- o & /*displayIn*/
391
- 1 && n !== (n = /*displayIn*/
392
- i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
393
- 1 && en(
394
- t,
395
- "in-map",
396
- /*displayIn*/
397
- i[0] !== "list"
398
- ), o & /*displayIn*/
399
- 1 && en(
400
- t,
401
- "list-icon",
402
- /*displayIn*/
403
- i[0] === "list"
404
- );
405
- },
406
- i: Zt,
407
- o: Zt,
408
- d(i) {
409
- i && Te(t);
410
- }
411
- };
412
- }
413
- function Ol(r, t, e) {
414
- let { displayIn: n } = t;
415
- return r.$$set = (i) => {
416
- "displayIn" in i && e(0, n = i.displayIn);
417
- }, [n];
418
- }
419
- class Dl extends Mi {
420
- constructor(t) {
421
- super(), Ti(this, t, Ol, Rl, Di, { displayIn: 0 });
422
- }
423
- }
424
- function Tl(r) {
425
370
  let t, e;
426
371
  return {
427
372
  c() {
428
- t = Cr("svg"), e = Cr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
373
+ t = xr("svg"), e = xr("path"), B(e, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), B(t, "viewBox", "0 0 18 18"), B(t, "xml:space", "preserve"), B(t, "width", "20"), B(t, "class", "svelte-en2qvf");
429
374
  },
430
375
  m(n, i) {
431
376
  We(n, t, i), ct(t, e);
@@ -438,9 +383,9 @@ function Tl(r) {
438
383
  }
439
384
  };
440
385
  }
441
- class Ml extends Mi {
386
+ class Ol extends Mi {
442
387
  constructor(t) {
443
- super(), Ti(this, t, null, Tl, Di, {});
388
+ super(), Ti(this, t, null, Rl, Di, {});
444
389
  }
445
390
  }
446
391
  function oa(r, t, e) {
@@ -449,7 +394,7 @@ function oa(r, t, e) {
449
394
  }
450
395
  function sa(r) {
451
396
  let t, e;
452
- return t = new Pl({}), {
397
+ return t = new Ll({}), {
453
398
  c() {
454
399
  Oo(t.$$.fragment);
455
400
  },
@@ -469,7 +414,7 @@ function sa(r) {
469
414
  }
470
415
  function aa(r) {
471
416
  let t, e, n, i, o;
472
- return e = new Sl({}), {
417
+ return e = new Pl({}), {
473
418
  c() {
474
419
  t = oe("button"), Oo(e.$$.fragment), B(t, "type", "button"), B(
475
420
  t,
@@ -517,7 +462,7 @@ function aa(r) {
517
462
  }
518
463
  };
519
464
  }
520
- function Al(r) {
465
+ function Dl(r) {
521
466
  let t, e, n, i = (
522
467
  /*listFeatures*/
523
468
  r[12]
@@ -566,11 +511,11 @@ function Al(r) {
566
511
  }
567
512
  },
568
513
  d(s) {
569
- s && Te(t), gl(o, s), e = !1, Tr(n);
514
+ s && Te(t), gl(o, s), e = !1, Mr(n);
570
515
  }
571
516
  };
572
517
  }
573
- function Fl(r) {
518
+ function Tl(r) {
574
519
  let t, e;
575
520
  return {
576
521
  c() {
@@ -595,7 +540,7 @@ function Fl(r) {
595
540
  }
596
541
  };
597
542
  }
598
- function Bl(r) {
543
+ function Ml(r) {
599
544
  let t = "", e;
600
545
  return {
601
546
  c() {
@@ -610,7 +555,7 @@ function Bl(r) {
610
555
  }
611
556
  };
612
557
  }
613
- function kl(r) {
558
+ function Al(r) {
614
559
  let t, e;
615
560
  return {
616
561
  c() {
@@ -727,13 +672,13 @@ function la(r) {
727
672
  );
728
673
  },
729
674
  d(C) {
730
- C && Te(t), d && d.d(), p = !1, Tr(m);
675
+ C && Te(t), d && d.d(), p = !1, Mr(m);
731
676
  }
732
677
  };
733
678
  }
734
- function Gl(r) {
679
+ function Fl(r) {
735
680
  let t, e, n, i, o, s, a, u, l, c, f, h, g, p, m, d, _, I;
736
- i = new Ml({}), c = new Ll({});
681
+ i = new Ol({}), c = new Sl({});
737
682
  let C = (
738
683
  /*abortController*/
739
684
  r[17] && sa()
@@ -757,21 +702,21 @@ function Gl(r) {
757
702
  /*error*/
758
703
  R[16]
759
704
  )
760
- return kl;
705
+ return Al;
761
706
  if (!/*focusedDelayed*/
762
707
  R[14])
763
- return Bl;
708
+ return Ml;
764
709
  if (
765
710
  /*listFeatures*/
766
711
  ((q = R[12]) == null ? void 0 : q.length) === 0
767
712
  )
768
- return Fl;
713
+ return Tl;
769
714
  if (
770
715
  /*focusedDelayed*/
771
716
  R[14] && /*listFeatures*/
772
717
  ((rt = R[12]) != null && rt.length)
773
718
  )
774
- return Al;
719
+ return Dl;
775
720
  }
776
721
  let F = A(r), D = F && F(r);
777
722
  return {
@@ -938,11 +883,11 @@ function Gl(r) {
938
883
  $n(i.$$.fragment, R), $n(c.$$.fragment, R), $n(C), $n(x), $n(b, R), d = !1;
939
884
  },
940
885
  d(R) {
941
- R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1, Tr(I);
886
+ R && Te(t), Ki(i), r[50](null), Ki(c), C && C.d(), x && x.d(), b && b.d(R), D && D.d(), _ = !1, Mr(I);
942
887
  }
943
888
  };
944
889
  }
945
- function zl(r, t, e) {
890
+ function Bl(r, t, e) {
946
891
  const n = t[1], i = t[0], o = n - i;
947
892
  return r === n && e ? r : ((r - i) % o + o) % o + i;
948
893
  }
@@ -950,9 +895,9 @@ function ca(r) {
950
895
  let t = [...r];
951
896
  return t[2] < t[0] && (t[2] += 360), t;
952
897
  }
953
- function Vl(r, t, e) {
898
+ function kl(r, t, e) {
954
899
  let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { apiKey: a } = t, { bbox: u = void 0 } = t, { clearButtonTitle: l = "clear" } = t, { clearOnBlur: c = !1 } = t, { collapsed: f = !1 } = t, { country: h = void 0 } = t, { debounceSearch: g = 200 } = t, { enableReverse: p = !1 } = t, { errorMessage: m = "Searching failed" } = t, { filter: d = () => !0 } = t, { flyTo: _ = !0 } = t, { fuzzyMatch: I = !0 } = t, { language: C = void 0 } = t, { limit: x = void 0 } = t, { mapController: S = void 0 } = t, { minLength: b = 2 } = t, { noResultsMessage: A = "No results found" } = t, { placeholder: F = "Search" } = t, { proximity: D = void 0 } = t, { reverseActive: R = p === "always" } = t, { reverseButtonTitle: z = "toggle reverse geocoding" } = t, { searchValue: q = "" } = t, { showFullGeometry: rt = !0 } = t, { showPlaceType: O = !1 } = t, { showResultsWhileTyping: Y = !0 } = t, { trackProximity: at = !0 } = t, { types: Nt = void 0 } = t, { zoom: qt = 16 } = t, { fetchParameters: ce = {} } = t;
955
- function Fr() {
900
+ function Br() {
956
901
  Fn.focus();
957
902
  }
958
903
  function mn() {
@@ -963,7 +908,7 @@ function Vl(r, t, e) {
963
908
  Fn.focus(), Fn.select();
964
909
  }));
965
910
  }
966
- let fe = !1, et, Rt, vt, Ks = "", Fn, Mt = -1, gr, Eo = [], Br, oi, Io;
911
+ let fe = !1, et, Rt, vt, Ks = "", Fn, Mt = -1, gr, Eo = [], kr, oi, Io;
967
912
  const pr = ml();
968
913
  yl(() => {
969
914
  S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
@@ -984,41 +929,41 @@ function Vl(r, t, e) {
984
929
  async function is(N, { byId: At = !1, exact: Bn = !1 } = {}) {
985
930
  e(16, gr = void 0);
986
931
  const Gi = Js(), Fe = new URLSearchParams();
987
- C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.join(",")), Gi || (u && Fe.set("bbox", u.map((Gr) => Gr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((Gr) => Gr.toFixed(6)).join(",")), (Bn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), x !== void 0 && Fe.set("limit", String(x)), Fe.set("key", a);
988
- const kr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Fe.toString();
989
- if (kr === Ks) {
932
+ C != null && Fe.set("language", Array.isArray(C) ? C.join(",") : C), Nt && Fe.set("types", Nt.join(",")), Gi || (u && Fe.set("bbox", u.map((dr) => dr.toFixed(6)).join(",")), h && Fe.set("country", Array.isArray(h) ? h.join(",") : h)), At || (D && Fe.set("proximity", D.map((dr) => dr.toFixed(6)).join(",")), (Bn || !Y) && Fe.set("autocomplete", "false"), Fe.set("fuzzyMatch", String(I))), x !== void 0 && Fe.set("limit", String(x)), Fe.set("key", a);
933
+ const Gr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Fe.toString();
934
+ if (Gr === Ks) {
990
935
  At ? (e(12, et = void 0), e(45, vt = Eo[0])) : e(12, et = Eo);
991
936
  return;
992
937
  }
993
- Ks = kr, Br == null || Br.abort();
938
+ Ks = Gr, kr == null || kr.abort();
994
939
  const ye = new AbortController();
995
- e(17, Br = ye);
940
+ e(17, kr = ye);
996
941
  let as;
997
942
  try {
998
- as = await fetch(kr, { signal: ye.signal, ...ce }).finally(() => {
999
- ye === Br && e(17, Br = void 0);
943
+ as = await fetch(Gr, { signal: ye.signal, ...ce }).finally(() => {
944
+ ye === kr && e(17, kr = void 0);
1000
945
  });
1001
- } catch (Gr) {
1002
- if (Gr && typeof Gr == "object" && Gr.name === "AbortError")
946
+ } catch (dr) {
947
+ if (dr && typeof dr == "object" && "name" in dr && dr.name === "AbortError")
1003
948
  return;
1004
949
  throw new Error();
1005
950
  }
1006
951
  if (!as.ok)
1007
952
  throw new Error();
1008
953
  const us = await as.json();
1009
- pr("response", { url: kr, featureCollection: us }), At ? (e(12, et = void 0), e(45, vt = us.features[0]), Eo = [vt]) : (e(12, et = us.features.filter(d)), Eo = et, Gi && Fn.focus());
954
+ pr("response", { url: Gr, featureCollection: us }), At ? (e(12, et = void 0), e(45, vt = us.features[0]), Eo = [vt]) : (e(12, et = us.features.filter(d)), Eo = et, Gi && Fn.focus());
1010
955
  }
1011
956
  function Xu() {
1012
- var Bn, Gi, Fe, kr;
957
+ var Bn, Gi, Fe, Gr;
1013
958
  if (!(Rt != null && Rt.length) || !_)
1014
959
  return;
1015
960
  const N = [180, 90, -180, -90], At = !Rt.some((ye) => !ye.matching_text);
1016
961
  for (const ye of Rt)
1017
- (At || !ye.matching_text) && (N[0] = Math.min(N[0], ((Bn = ye.bbox) == null ? void 0 : Bn[0]) ?? ye.center[0]), N[1] = Math.min(N[1], ((Gi = ye.bbox) == null ? void 0 : Gi[1]) ?? ye.center[1]), N[2] = Math.max(N[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), N[3] = Math.max(N[3], ((kr = ye.bbox) == null ? void 0 : kr[3]) ?? ye.center[1]));
962
+ (At || !ye.matching_text) && (N[0] = Math.min(N[0], ((Bn = ye.bbox) == null ? void 0 : Bn[0]) ?? ye.center[0]), N[1] = Math.min(N[1], ((Gi = ye.bbox) == null ? void 0 : Gi[1]) ?? ye.center[1]), N[2] = Math.max(N[2], ((Fe = ye.bbox) == null ? void 0 : Fe[2]) ?? ye.center[0]), N[3] = Math.max(N[3], ((Gr = ye.bbox) == null ? void 0 : Gr[3]) ?? ye.center[1]));
1018
963
  S && Rt.length > 0 && (vt && N[0] === N[2] && N[1] === N[3] ? S.flyTo(vt.center, qt) : S.fitBounds(ca(N), 50));
1019
964
  }
1020
965
  function Yu(N) {
1021
- e(0, R = p === "always"), An(zl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
966
+ e(0, R = p === "always"), An(Bl(N[0], [-180, 180], !0).toFixed(6) + "," + N[1].toFixed(6));
1022
967
  }
1023
968
  function Hu(N) {
1024
969
  if (!et)
@@ -1130,7 +1075,7 @@ function Vl(r, t, e) {
1130
1075
  Io,
1131
1076
  Fn,
1132
1077
  gr,
1133
- Br,
1078
+ kr,
1134
1079
  Qs,
1135
1080
  Hu,
1136
1081
  os,
@@ -1154,7 +1099,7 @@ function Vl(r, t, e) {
1154
1099
  Nt,
1155
1100
  qt,
1156
1101
  ce,
1157
- Fr,
1102
+ Br,
1158
1103
  mn,
1159
1104
  An,
1160
1105
  Rt,
@@ -1176,13 +1121,13 @@ function Vl(r, t, e) {
1176
1121
  il
1177
1122
  ];
1178
1123
  }
1179
- let Ul = class extends Mi {
1124
+ let Gl = class extends Mi {
1180
1125
  constructor(t) {
1181
1126
  super(), Ti(
1182
1127
  this,
1183
1128
  t,
1184
- Vl,
1185
- Gl,
1129
+ kl,
1130
+ Fl,
1186
1131
  Di,
1187
1132
  {
1188
1133
  class: 2,
@@ -1255,7 +1200,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
1255
1200
  See the Apache Version 2.0 License for specific language governing permissions
1256
1201
  and limitations under the License.
1257
1202
  ***************************************************************************** */
1258
- function ql(r, t) {
1203
+ function zl(r, t) {
1259
1204
  var e = { label: 0, sent: function() {
1260
1205
  if (o[0] & 1)
1261
1206
  throw o[1];
@@ -1320,7 +1265,7 @@ function ql(r, t) {
1320
1265
  return { value: l[0] ? l[1] : void 0, done: !0 };
1321
1266
  }
1322
1267
  }
1323
- var xr = (
1268
+ var Nr = (
1324
1269
  /** @class */
1325
1270
  function() {
1326
1271
  function r(t, e) {
@@ -1329,11 +1274,11 @@ var xr = (
1329
1274
  return r;
1330
1275
  }()
1331
1276
  );
1332
- function Xl(r, t) {
1277
+ function Vl(r, t) {
1333
1278
  return r > t ? 1 : r < t ? -1 : 0;
1334
1279
  }
1335
- function yr(r, t, e) {
1336
- for (var n = new xr(null, null), i = n, o = n; ; ) {
1280
+ function mr(r, t, e) {
1281
+ for (var n = new Nr(null, null), i = n, o = n; ; ) {
1337
1282
  var s = e(r, t.key);
1338
1283
  if (s < 0) {
1339
1284
  if (t.left === null)
@@ -1359,24 +1304,24 @@ function yr(r, t, e) {
1359
1304
  return i.right = t.left, o.left = t.right, t.left = n.right, t.right = n.left, t;
1360
1305
  }
1361
1306
  function fs(r, t, e, n) {
1362
- var i = new xr(r, t);
1307
+ var i = new Nr(r, t);
1363
1308
  if (e === null)
1364
1309
  return i.left = i.right = null, i;
1365
- e = yr(r, e, n);
1310
+ e = mr(r, e, n);
1366
1311
  var o = n(r, e.key);
1367
1312
  return o < 0 ? (i.left = e.left, i.right = e, e.left = null) : o >= 0 && (i.right = e.right, i.left = e, e.right = null), i;
1368
1313
  }
1369
1314
  function fa(r, t, e) {
1370
1315
  var n = null, i = null;
1371
1316
  if (t) {
1372
- t = yr(r, t, e);
1317
+ t = mr(r, t, e);
1373
1318
  var o = e(t.key, r);
1374
1319
  o === 0 ? (n = t.left, i = t.right) : o < 0 ? (i = t.right, t.right = null, n = t) : (n = t.left, t.left = null, i = t);
1375
1320
  }
1376
1321
  return { left: n, right: i };
1377
1322
  }
1378
- function Yl(r, t, e) {
1379
- return t === null ? r : (r === null || (t = yr(r.key, t, e), t.left = r), t);
1323
+ function Ul(r, t, e) {
1324
+ return t === null ? r : (r === null || (t = mr(r.key, t, e), t.left = r), t);
1380
1325
  }
1381
1326
  function ms(r, t, e, n, i) {
1382
1327
  if (r) {
@@ -1390,14 +1335,14 @@ var Ds = (
1390
1335
  /** @class */
1391
1336
  function() {
1392
1337
  function r(t) {
1393
- t === void 0 && (t = Xl), this._root = null, this._size = 0, this._comparator = t;
1338
+ t === void 0 && (t = Vl), this._root = null, this._size = 0, this._comparator = t;
1394
1339
  }
1395
1340
  return r.prototype.insert = function(t, e) {
1396
1341
  return this._size++, this._root = fs(t, e, this._root, this._comparator);
1397
1342
  }, r.prototype.add = function(t, e) {
1398
- var n = new xr(t, e);
1343
+ var n = new Nr(t, e);
1399
1344
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
1400
- var i = this._comparator, o = yr(t, this._root, i), s = i(t, o.key);
1345
+ var i = this._comparator, o = mr(t, this._root, i), s = i(t, o.key);
1401
1346
  return s === 0 ? this._root = o : (s < 0 ? (n.left = o.left, n.right = o, o.left = null) : s > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
1402
1347
  }, r.prototype.remove = function(t) {
1403
1348
  this._root = this._remove(t, this._root, this._comparator);
@@ -1405,15 +1350,15 @@ var Ds = (
1405
1350
  var i;
1406
1351
  if (e === null)
1407
1352
  return null;
1408
- e = yr(t, e, n);
1353
+ e = mr(t, e, n);
1409
1354
  var o = n(t, e.key);
1410
- return o === 0 ? (e.left === null ? i = e.right : (i = yr(t, e.left, n), i.right = e.right), this._size--, i) : e;
1355
+ return o === 0 ? (e.left === null ? i = e.right : (i = mr(t, e.left, n), i.right = e.right), this._size--, i) : e;
1411
1356
  }, r.prototype.pop = function() {
1412
1357
  var t = this._root;
1413
1358
  if (t) {
1414
1359
  for (; t.left; )
1415
1360
  t = t.left;
1416
- return this._root = yr(t.key, this._root, this._comparator), this._root = this._remove(t.key, this._root, this._comparator), { key: t.key, data: t.data };
1361
+ return this._root = mr(t.key, this._root, this._comparator), this._root = this._remove(t.key, this._root, this._comparator), { key: t.key, data: t.data };
1417
1362
  }
1418
1363
  return null;
1419
1364
  }, r.prototype.findStatic = function(t) {
@@ -1425,7 +1370,7 @@ var Ds = (
1425
1370
  }
1426
1371
  return null;
1427
1372
  }, r.prototype.find = function(t) {
1428
- return this._root && (this._root = yr(t, this._root, this._comparator), this._comparator(t, this._root.key) !== 0) ? null : this._root;
1373
+ return this._root && (this._root = mr(t, this._root, this._comparator), this._comparator(t, this._root.key) !== 0) ? null : this._root;
1429
1374
  }, r.prototype.contains = function(t) {
1430
1375
  for (var e = this._root, n = this._comparator; e; ) {
1431
1376
  var i = n(t, e.key);
@@ -1518,14 +1463,14 @@ var Ds = (
1518
1463
  }, r.prototype.clear = function() {
1519
1464
  return this._root = null, this._size = 0, this;
1520
1465
  }, r.prototype.toList = function() {
1521
- return Wl(this._root);
1466
+ return Xl(this._root);
1522
1467
  }, r.prototype.load = function(t, e, n) {
1523
1468
  e === void 0 && (e = []), n === void 0 && (n = !1);
1524
1469
  var i = t.length, o = this._comparator;
1525
1470
  if (n && Is(t, e, 0, i - 1, o), this._root === null)
1526
1471
  this._root = _s(t, e, 0, i), this._size = i;
1527
1472
  else {
1528
- var s = jl(this.toList(), Hl(t, e), o);
1473
+ var s = Yl(this.toList(), ql(t, e), o);
1529
1474
  i = this._size + i, this._root = Es({ head: s }, 0, i);
1530
1475
  }
1531
1476
  return this;
@@ -1553,12 +1498,12 @@ var Ds = (
1553
1498
  }, t), e.join("");
1554
1499
  }, r.prototype.update = function(t, e, n) {
1555
1500
  var i = this._comparator, o = fa(t, this._root, i), s = o.left, a = o.right;
1556
- i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root = Yl(s, a, i);
1501
+ i(t, e) < 0 ? a = fs(e, n, a, i) : s = fs(e, n, s, i), this._root = Ul(s, a, i);
1557
1502
  }, r.prototype.split = function(t) {
1558
1503
  return fa(t, this._root, this._comparator);
1559
1504
  }, r.prototype[Symbol.iterator] = function() {
1560
1505
  var t;
1561
- return ql(this, function(e) {
1506
+ return zl(this, function(e) {
1562
1507
  switch (e.label) {
1563
1508
  case 0:
1564
1509
  t = this.minNode(), e.label = 1;
@@ -1579,18 +1524,18 @@ var Ds = (
1579
1524
  function _s(r, t, e, n) {
1580
1525
  var i = n - e;
1581
1526
  if (i > 0) {
1582
- var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new xr(s, a);
1527
+ var o = e + Math.floor(i / 2), s = r[o], a = t[o], u = new Nr(s, a);
1583
1528
  return u.left = _s(r, t, e, o), u.right = _s(r, t, o + 1, n), u;
1584
1529
  }
1585
1530
  return null;
1586
1531
  }
1587
- function Hl(r, t) {
1588
- for (var e = new xr(null, null), n = e, i = 0; i < r.length; i++)
1589
- n = n.next = new xr(r[i], t[i]);
1532
+ function ql(r, t) {
1533
+ for (var e = new Nr(null, null), n = e, i = 0; i < r.length; i++)
1534
+ n = n.next = new Nr(r[i], t[i]);
1590
1535
  return n.next = null, e.next;
1591
1536
  }
1592
- function Wl(r) {
1593
- for (var t = r, e = [], n = !1, i = new xr(null, null), o = i; !n; )
1537
+ function Xl(r) {
1538
+ for (var t = r, e = [], n = !1, i = new Nr(null, null), o = i; !n; )
1594
1539
  t ? (e.push(t), t = t.left) : e.length > 0 ? (t = o = o.next = e.pop(), t = t.right) : n = !0;
1595
1540
  return o.next = null, i.next;
1596
1541
  }
@@ -1602,8 +1547,8 @@ function Es(r, t, e) {
1602
1547
  }
1603
1548
  return null;
1604
1549
  }
1605
- function jl(r, t, e) {
1606
- for (var n = new xr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
1550
+ function Yl(r, t, e) {
1551
+ for (var n = new Nr(null, null), i = n, o = r, s = t; o !== null && s !== null; )
1607
1552
  e(o.key, s.key) < 0 ? (i.next = o, o = o.next) : (i.next = s, s = s.next), i = i.next;
1608
1553
  return o !== null ? i.next = o : s !== null && (i.next = s), n.next;
1609
1554
  }
@@ -1653,14 +1598,14 @@ var zi = function(t, e) {
1653
1598
  y: s
1654
1599
  }
1655
1600
  };
1656
- }, _r = Number.EPSILON;
1657
- _r === void 0 && (_r = Math.pow(2, -52));
1658
- var Kl = _r * _r, xs = function(t, e) {
1659
- if (-_r < t && t < _r && -_r < e && e < _r)
1601
+ }, Er = Number.EPSILON;
1602
+ Er === void 0 && (Er = Math.pow(2, -52));
1603
+ var Hl = Er * Er, xs = function(t, e) {
1604
+ if (-Er < t && t < Er && -Er < e && e < Er)
1660
1605
  return 0;
1661
1606
  var n = t - e;
1662
- return n * n < Kl * t * e ? 0 : t < e ? -1 : 1;
1663
- }, Ql = /* @__PURE__ */ function() {
1607
+ return n * n < Hl * t * e ? 0 : t < e ? -1 : 1;
1608
+ }, Wl = /* @__PURE__ */ function() {
1664
1609
  function r() {
1665
1610
  dn(this, r), this.reset();
1666
1611
  }
@@ -1692,7 +1637,7 @@ var Kl = _r * _r, xs = function(t, e) {
1692
1637
  return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
1693
1638
  }
1694
1639
  }]), r;
1695
- }(), Qi = new Ql(), Yi = function(t, e) {
1640
+ }(), Qi = new Wl(), Yi = function(t, e) {
1696
1641
  return t.x * e.y - t.y * e.x;
1697
1642
  }, Ja = function(t, e) {
1698
1643
  return t.x * e.x + t.y * e.y;
@@ -1707,7 +1652,7 @@ var Kl = _r * _r, xs = function(t, e) {
1707
1652
  return xs(s, 0);
1708
1653
  }, Do = function(t) {
1709
1654
  return Math.sqrt(Ja(t, t));
1710
- }, Jl = function(t, e, n) {
1655
+ }, jl = function(t, e, n) {
1711
1656
  var i = {
1712
1657
  x: e.x - t.x,
1713
1658
  y: e.y - t.y
@@ -1716,7 +1661,7 @@ var Kl = _r * _r, xs = function(t, e) {
1716
1661
  y: n.y - t.y
1717
1662
  };
1718
1663
  return Yi(o, i) / Do(o) / Do(i);
1719
- }, Zl = function(t, e, n) {
1664
+ }, Kl = function(t, e, n) {
1720
1665
  var i = {
1721
1666
  x: e.x - t.x,
1722
1667
  y: e.y - t.y
@@ -1735,7 +1680,7 @@ var Kl = _r * _r, xs = function(t, e) {
1735
1680
  x: n,
1736
1681
  y: t.y + e.y / e.x * (n - t.x)
1737
1682
  };
1738
- }, $l = function(t, e, n, i) {
1683
+ }, Ql = function(t, e, n, i) {
1739
1684
  if (e.x === 0)
1740
1685
  return va(n, i, t.x);
1741
1686
  if (i.x === 0)
@@ -1824,8 +1769,8 @@ var Kl = _r * _r, xs = function(t, e) {
1824
1769
  var n = this, i = /* @__PURE__ */ new Map(), o = function(a) {
1825
1770
  var u = a.otherSE;
1826
1771
  i.set(a, {
1827
- sine: Jl(n.point, e.point, u.point),
1828
- cosine: Zl(n.point, e.point, u.point)
1772
+ sine: jl(n.point, e.point, u.point),
1773
+ cosine: Kl(n.point, e.point, u.point)
1829
1774
  });
1830
1775
  };
1831
1776
  return function(s, a) {
@@ -1835,7 +1780,7 @@ var Kl = _r * _r, xs = function(t, e) {
1835
1780
  };
1836
1781
  }
1837
1782
  }]), r;
1838
- }(), tc = 0, To = /* @__PURE__ */ function() {
1783
+ }(), Jl = 0, To = /* @__PURE__ */ function() {
1839
1784
  Ie(r, null, [{
1840
1785
  key: "compare",
1841
1786
  /* This compare() function is for ordering segments in the sweep
@@ -1911,7 +1856,7 @@ var Kl = _r * _r, xs = function(t, e) {
1911
1856
  * and possibly will be later modified */
1912
1857
  }]);
1913
1858
  function r(t, e, n, i) {
1914
- dn(this, r), this.id = ++tc, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
1859
+ dn(this, r), this.id = ++Jl, this.leftSE = t, t.segment = this, t.otherSE = e, this.rightSE = e, e.segment = this, e.otherSE = t, this.rings = n, this.windings = i;
1915
1860
  }
1916
1861
  return Ie(r, [{
1917
1862
  key: "replaceRightSE",
@@ -2009,7 +1954,7 @@ var Kl = _r * _r, xs = function(t, e) {
2009
1954
  return a;
2010
1955
  if (h)
2011
1956
  return l;
2012
- var p = $l(s, this.vector(), u, e.vector());
1957
+ var p = Ql(s, this.vector(), u, e.vector());
2013
1958
  return p === null || !zi(o, p) ? null : Qi.round(p.x, p.y);
2014
1959
  }
2015
1960
  /**
@@ -2209,7 +2154,7 @@ var Kl = _r * _r, xs = function(t, e) {
2209
2154
  return e;
2210
2155
  }
2211
2156
  }]), r;
2212
- }(), ec = /* @__PURE__ */ function() {
2157
+ }(), Zl = /* @__PURE__ */ function() {
2213
2158
  function r(t, e) {
2214
2159
  if (dn(this, r), !Array.isArray(t))
2215
2160
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -2257,7 +2202,7 @@ var Kl = _r * _r, xs = function(t, e) {
2257
2202
  }
2258
2203
  };
2259
2204
  for (var n = 0, i = t.length; n < i; n++) {
2260
- var o = new ec(t[n], this);
2205
+ var o = new Zl(t[n], this);
2261
2206
  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);
2262
2207
  }
2263
2208
  this.isSubject = e;
@@ -2271,7 +2216,7 @@ var Kl = _r * _r, xs = function(t, e) {
2271
2216
  return e;
2272
2217
  }
2273
2218
  }]), r;
2274
- }(), nc = /* @__PURE__ */ function() {
2219
+ }(), $l = /* @__PURE__ */ function() {
2275
2220
  Ie(r, null, [{
2276
2221
  key: "factory",
2277
2222
  /* Given the segments from the sweep line pass, compute & return a series
@@ -2391,7 +2336,7 @@ var Kl = _r * _r, xs = function(t, e) {
2391
2336
  return e;
2392
2337
  }
2393
2338
  }]), r;
2394
- }(), rc = /* @__PURE__ */ function() {
2339
+ }(), tc = /* @__PURE__ */ function() {
2395
2340
  function r(t) {
2396
2341
  dn(this, r), this.rings = t, this.polys = this._composePolys(t);
2397
2342
  }
@@ -2420,7 +2365,7 @@ var Kl = _r * _r, xs = function(t, e) {
2420
2365
  return n;
2421
2366
  }
2422
2367
  }]), r;
2423
- }(), ic = /* @__PURE__ */ function() {
2368
+ }(), ec = /* @__PURE__ */ function() {
2424
2369
  function r(t) {
2425
2370
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : To.compare;
2426
2371
  dn(this, r), this.queue = t, this.tree = new Ds(e), this.segments = [];
@@ -2496,7 +2441,7 @@ var Kl = _r * _r, xs = function(t, e) {
2496
2441
  return o.push(i), e.consumedBy === void 0 && this.tree.insert(e), o;
2497
2442
  }
2498
2443
  }]), r;
2499
- }(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, oc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, sc = /* @__PURE__ */ function() {
2444
+ }(), Ea = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, nc = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6, rc = /* @__PURE__ */ function() {
2500
2445
  function r() {
2501
2446
  dn(this, r);
2502
2447
  }
@@ -2519,7 +2464,7 @@ var Kl = _r * _r, xs = function(t, e) {
2519
2464
  for (var I = o[d].getSweepEvents(), C = 0, x = I.length; C < x; C++)
2520
2465
  if (m.insert(I[C]), m.size > Ea)
2521
2466
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");
2522
- for (var S = new ic(m), b = m.size, A = m.pop(); A; ) {
2467
+ for (var S = new ec(m), b = m.size, A = m.pop(); A; ) {
2523
2468
  var F = A.key;
2524
2469
  if (m.size === b) {
2525
2470
  var D = F.segment;
@@ -2527,7 +2472,7 @@ var Kl = _r * _r, xs = function(t, e) {
2527
2472
  }
2528
2473
  if (m.size > Ea)
2529
2474
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");
2530
- if (S.segments.length > oc)
2475
+ if (S.segments.length > nc)
2531
2476
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");
2532
2477
  for (var R = S.process(F), z = 0, q = R.length; z < q; z++) {
2533
2478
  var rt = R[z];
@@ -2536,31 +2481,31 @@ var Kl = _r * _r, xs = function(t, e) {
2536
2481
  b = m.size, A = m.pop();
2537
2482
  }
2538
2483
  Qi.reset();
2539
- var O = nc.factory(S.segments), Y = new rc(O);
2484
+ var O = $l.factory(S.segments), Y = new tc(O);
2540
2485
  return Y.getGeom();
2541
2486
  }
2542
2487
  }]), r;
2543
- }(), Cn = new sc(), ac = function(t) {
2488
+ }(), Cn = new rc(), ic = function(t) {
2544
2489
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2545
2490
  n[i - 1] = arguments[i];
2546
2491
  return Cn.run("union", t, n);
2547
- }, uc = function(t) {
2492
+ }, oc = function(t) {
2548
2493
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2549
2494
  n[i - 1] = arguments[i];
2550
2495
  return Cn.run("intersection", t, n);
2551
- }, lc = function(t) {
2496
+ }, sc = function(t) {
2552
2497
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2553
2498
  n[i - 1] = arguments[i];
2554
2499
  return Cn.run("xor", t, n);
2555
- }, cc = function(t) {
2500
+ }, ac = function(t) {
2556
2501
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2557
2502
  n[i - 1] = arguments[i];
2558
2503
  return Cn.run("difference", t, n);
2559
2504
  }, Za = {
2560
- union: ac,
2561
- intersection: uc,
2562
- xor: lc,
2563
- difference: cc
2505
+ union: ic,
2506
+ intersection: oc,
2507
+ xor: sc,
2508
+ difference: ac
2564
2509
  }, me = 63710088e-1, $a = {
2565
2510
  centimeters: me * 100,
2566
2511
  centimetres: me * 100,
@@ -2583,7 +2528,7 @@ function Yo(r, t, e) {
2583
2528
  var n = { type: "Feature" };
2584
2529
  return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
2585
2530
  }
2586
- function fc(r, t, e) {
2531
+ function uc(r, t, e) {
2587
2532
  if (e === void 0 && (e = {}), !r)
2588
2533
  throw new Error("coordinates is required");
2589
2534
  if (!Array.isArray(r))
@@ -2627,14 +2572,14 @@ function eu(r, t, e) {
2627
2572
  };
2628
2573
  return Yo(n, t, e);
2629
2574
  }
2630
- function hc(r, t) {
2575
+ function lc(r, t) {
2631
2576
  t === void 0 && (t = "kilometers");
2632
2577
  var e = $a[t];
2633
2578
  if (!e)
2634
2579
  throw new Error(t + " units is invalid");
2635
2580
  return r * e;
2636
2581
  }
2637
- function gc(r, t) {
2582
+ function cc(r, t) {
2638
2583
  t === void 0 && (t = "kilometers");
2639
2584
  var e = $a[t];
2640
2585
  if (!e)
@@ -2647,17 +2592,65 @@ function Ia(r) {
2647
2592
  function Mo(r) {
2648
2593
  return r.type === "Feature" ? r.geometry : r;
2649
2594
  }
2650
- function pc(r, t, e) {
2595
+ function fc(r, t, e) {
2651
2596
  e === void 0 && (e = {});
2652
2597
  var n = Mo(r), i = Mo(t), o = Za.union(n.coordinates, i.coordinates);
2653
2598
  return o.length === 0 ? null : o.length === 1 ? tu(o[0], e.properties) : eu(o, e.properties);
2654
2599
  }
2655
- function dc(r, t) {
2656
- var e = Mo(r), n = Mo(t), i = r.properties || {}, o = Za.difference(
2657
- e.coordinates,
2658
- n.coordinates
2659
- );
2660
- return o.length === 0 ? null : o.length === 1 ? tu(o[0], i) : eu(o, i);
2600
+ function hc(r) {
2601
+ let t, e, n;
2602
+ return {
2603
+ c() {
2604
+ t = xr("svg"), e = xr("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = /*displayIn*/
2605
+ r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), en(
2606
+ t,
2607
+ "in-map",
2608
+ /*displayIn*/
2609
+ r[0] !== "list"
2610
+ ), en(
2611
+ t,
2612
+ "list-icon",
2613
+ /*displayIn*/
2614
+ r[0] === "list"
2615
+ );
2616
+ },
2617
+ m(i, o) {
2618
+ We(i, t, o), ct(t, e);
2619
+ },
2620
+ p(i, [o]) {
2621
+ o & /*displayIn*/
2622
+ 1 && n !== (n = /*displayIn*/
2623
+ i[0] !== "list" ? void 0 : "20") && B(t, "width", n), o & /*displayIn*/
2624
+ 1 && en(
2625
+ t,
2626
+ "in-map",
2627
+ /*displayIn*/
2628
+ i[0] !== "list"
2629
+ ), o & /*displayIn*/
2630
+ 1 && en(
2631
+ t,
2632
+ "list-icon",
2633
+ /*displayIn*/
2634
+ i[0] === "list"
2635
+ );
2636
+ },
2637
+ i: Zt,
2638
+ o: Zt,
2639
+ d(i) {
2640
+ i && Te(t);
2641
+ }
2642
+ };
2643
+ }
2644
+ function gc(r, t, e) {
2645
+ let { displayIn: n } = t;
2646
+ return r.$$set = (i) => {
2647
+ "displayIn" in i && e(0, n = i.displayIn);
2648
+ }, [n];
2649
+ }
2650
+ class pc extends Mi {
2651
+ constructor(t) {
2652
+ super(), Ti(this, t, gc, hc, Di, { displayIn: 0 });
2653
+ }
2661
2654
  }
2662
2655
  function nu(r, t, e) {
2663
2656
  if (r !== null)
@@ -2811,10 +2804,10 @@ function Ss(r) {
2811
2804
  }), t;
2812
2805
  }
2813
2806
  Ss.default = Ss;
2814
- function vc(r, t) {
2807
+ function dc(r, t) {
2815
2808
  t === void 0 && (t = {});
2816
2809
  var e = Ss(r), n = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
2817
- return fc([n, i], t.properties, t);
2810
+ return uc([n, i], t.properties, t);
2818
2811
  }
2819
2812
  "fill" in Array.prototype || Object.defineProperty(Array.prototype, "fill", {
2820
2813
  configurable: !0,
@@ -4351,7 +4344,7 @@ ei.COLLINEAR_INTERSECTION.get = function() {
4351
4344
  return 2;
4352
4345
  };
4353
4346
  Object.defineProperties(ft, ei);
4354
- var Mr = function(r) {
4347
+ var Ar = function(r) {
4355
4348
  function t() {
4356
4349
  r.apply(this, arguments);
4357
4350
  }
@@ -4660,7 +4653,7 @@ P.distancePointLine = function() {
4660
4653
  }
4661
4654
  };
4662
4655
  P.isOnLine = function(t, e) {
4663
- for (var n = new Mr(), i = 1; i < e.length; i++) {
4656
+ for (var n = new Ar(), i = 1; i < e.length; i++) {
4664
4657
  var o = e[i - 1], s = e[i];
4665
4658
  if (n.computeIntersection(t, o, s), n.hasIntersection())
4666
4659
  return !0;
@@ -5011,7 +5004,7 @@ var L = function(r) {
5011
5004
  var o = this.array_[n];
5012
5005
  return this.array_[n] = i, o;
5013
5006
  }, t.prototype.iterator = function() {
5014
- return new yc(this);
5007
+ return new vc(this);
5015
5008
  }, t.prototype.get = function(n) {
5016
5009
  if (n < 0 || n >= this.size())
5017
5010
  throw new Ms();
@@ -5032,7 +5025,7 @@ var L = function(r) {
5032
5025
  }
5033
5026
  return o;
5034
5027
  }, t;
5035
- }(Ge), yc = function(r) {
5028
+ }(Ge), vc = function(r) {
5036
5029
  function t(e) {
5037
5030
  r.call(this), this.arrayList_ = e, this.position_ = 0;
5038
5031
  }
@@ -5361,7 +5354,7 @@ ri.prototype.values = function() {
5361
5354
  };
5362
5355
  ri.prototype.entrySet = function() {
5363
5356
  };
5364
- var mc = function(r) {
5357
+ var yc = function(r) {
5365
5358
  function t() {
5366
5359
  r.apply(this, arguments);
5367
5360
  }
@@ -5405,9 +5398,9 @@ var As = function(r) {
5405
5398
  i.push(n.array_[o]);
5406
5399
  return i;
5407
5400
  }, t.prototype.iterator = function() {
5408
- return new _c(this);
5401
+ return new mc(this);
5409
5402
  }, t;
5410
- }(Ko), _c = function(r) {
5403
+ }(Ko), mc = function(r) {
5411
5404
  function t(e) {
5412
5405
  r.call(this), this.hashSet_ = e, this.position_ = 0;
5413
5406
  }
@@ -5420,7 +5413,7 @@ var As = function(r) {
5420
5413
  }, t.prototype.remove = function() {
5421
5414
  throw new po();
5422
5415
  }, t;
5423
- }(Fi), Un = 0, dr = 1;
5416
+ }(Fi), Un = 0, vr = 1;
5424
5417
  function xa(r) {
5425
5418
  return r === null ? Un : r.color;
5426
5419
  }
@@ -5439,7 +5432,7 @@ function Na(r) {
5439
5432
  function Yt() {
5440
5433
  this.root_ = null, this.size_ = 0;
5441
5434
  }
5442
- Yt.prototype = new mc();
5435
+ Yt.prototype = new yc();
5443
5436
  Yt.prototype.get = function(r) {
5444
5437
  for (var t = this.root_; t !== null; ) {
5445
5438
  var e = r.compareTo(t.key);
@@ -5497,13 +5490,13 @@ Yt.prototype.put = function(r, t) {
5497
5490
  };
5498
5491
  Yt.prototype.fixAfterInsertion = function(r) {
5499
5492
  var t = this;
5500
- for (r.color = dr; r != null && r !== this.root_ && r.parent.color === dr; )
5493
+ for (r.color = vr; r != null && r !== this.root_ && r.parent.color === vr; )
5501
5494
  if (ot(r) === hs(ot(ot(r)))) {
5502
5495
  var e = Na(ot(ot(r)));
5503
- xa(e) === dr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === Na(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), dr), t.rotateRight(ot(ot(r))));
5496
+ xa(e) === vr ? (kn(ot(r), Un), kn(e, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === Na(ot(r)) && (r = ot(r), t.rotateLeft(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateRight(ot(ot(r))));
5504
5497
  } else {
5505
5498
  var n = hs(ot(ot(r)));
5506
- xa(n) === dr ? (kn(ot(r), Un), kn(n, Un), kn(ot(ot(r)), dr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), Un), kn(ot(ot(r)), dr), t.rotateLeft(ot(ot(r))));
5499
+ xa(n) === vr ? (kn(ot(r), Un), kn(n, Un), kn(ot(ot(r)), vr), r = ot(ot(r))) : (r === hs(ot(r)) && (r = ot(r), t.rotateRight(r)), kn(ot(r), Un), kn(ot(ot(r)), vr), t.rotateLeft(ot(ot(r))));
5507
5500
  }
5508
5501
  this.root_.color = Un;
5509
5502
  };
@@ -5626,9 +5619,9 @@ Qo.prototype.hasNext = function() {
5626
5619
  Qo.prototype.remove = function() {
5627
5620
  throw new po();
5628
5621
  };
5629
- var Er = function() {
5622
+ var Ir = function() {
5630
5623
  };
5631
- Er.sort = function() {
5624
+ Ir.sort = function() {
5632
5625
  var t = arguments[0], e, n, i, o;
5633
5626
  if (arguments.length === 1)
5634
5627
  o = function(a, u) {
@@ -5649,7 +5642,7 @@ Er.sort = function() {
5649
5642
  }, n.sort(o), s = t.slice(0, arguments[1]).concat(n, t.slice(arguments[2], t.length)), t.splice(0, t.length), e = 0; e < s.length; e++)
5650
5643
  t.push(s[e]);
5651
5644
  };
5652
- Er.asList = function(t) {
5645
+ Ir.asList = function(t) {
5653
5646
  for (var e = new L(), n = 0, i = t.length; n < i; n++)
5654
5647
  e.add(t[n]);
5655
5648
  return e;
@@ -5799,7 +5792,7 @@ var te = function(r) {
5799
5792
  }, t.prototype.normalize = function() {
5800
5793
  for (var i = this, o = 0; o < this._geometries.length; o++)
5801
5794
  i._geometries[o].normalize();
5802
- Er.sort(this._geometries);
5795
+ Ir.sort(this._geometries);
5803
5796
  }, t.prototype.getCoordinate = function() {
5804
5797
  return this.isEmpty() ? null : this._geometries[0].getCoordinate();
5805
5798
  }, t.prototype.getBoundaryDimension = function() {
@@ -5827,7 +5820,7 @@ var te = function(r) {
5827
5820
  }, t.prototype.compareToSameClass = function() {
5828
5821
  var i = this;
5829
5822
  if (arguments.length === 1) {
5830
- var o = arguments[0], s = new sn(Er.asList(this._geometries)), a = new sn(Er.asList(o._geometries));
5823
+ var o = arguments[0], s = new sn(Ir.asList(this._geometries)), a = new sn(Ir.asList(o._geometries));
5831
5824
  return this.compare(s, a);
5832
5825
  } else if (arguments.length === 2) {
5833
5826
  for (var u = arguments[0], l = arguments[1], c = u, f = this.getNumGeometries(), h = c.getNumGeometries(), g = 0; g < f && g < h; ) {
@@ -5887,7 +5880,7 @@ var te = function(r) {
5887
5880
  }, e.serialVersionUID.get = function() {
5888
5881
  return -5694727726395021e3;
5889
5882
  }, Object.defineProperties(t, e), t;
5890
- }(k), Nr = function(r) {
5883
+ }(k), Sr = function(r) {
5891
5884
  function t() {
5892
5885
  r.apply(this, arguments);
5893
5886
  }
@@ -5948,7 +5941,7 @@ Le.prototype.boundaryMultiLineString = function(t) {
5948
5941
  return e.length === 1 ? this._geomFact.createPoint(e[0]) : this._geomFact.createMultiPointFromCoords(e);
5949
5942
  };
5950
5943
  Le.prototype.getBoundary = function() {
5951
- return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof Nr ? this.boundaryMultiLineString(this._geom) : this._geom.getBoundary();
5944
+ return this._geom instanceof pt ? this.boundaryLineString(this._geom) : this._geom instanceof Sr ? this.boundaryMultiLineString(this._geom) : this._geom.getBoundary();
5952
5945
  };
5953
5946
  Le.prototype.boundaryLineString = function(t) {
5954
5947
  if (this._geom.isEmpty())
@@ -6003,18 +5996,18 @@ Fo.prototype.interfaces_ = function() {
6003
5996
  Fo.prototype.getClass = function() {
6004
5997
  return Fo;
6005
5998
  };
6006
- function Ec() {
5999
+ function _c() {
6007
6000
  }
6008
- function Ic() {
6001
+ function Ec() {
6009
6002
  }
6010
- var Cc = function() {
6003
+ var Ic = function() {
6011
6004
  };
6005
+ function Cc() {
6006
+ }
6012
6007
  function xc() {
6013
6008
  }
6014
6009
  function Nc() {
6015
6010
  }
6016
- function Sc() {
6017
- }
6018
6011
  var be = function() {
6019
6012
  }, Fs = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
6020
6013
  be.prototype.interfaces_ = function() {
@@ -6030,16 +6023,16 @@ be.chars = function(t, e) {
6030
6023
  };
6031
6024
  be.getStackTrace = function() {
6032
6025
  if (arguments.length === 1) {
6033
- var t = arguments[0], e = new xc(), n = new Ec();
6026
+ var t = arguments[0], e = new Cc(), n = new _c();
6034
6027
  return t.printStackTrace(n), e.toString();
6035
6028
  } else if (arguments.length === 2) {
6036
6029
  var i = arguments[0], o = arguments[1], s = "";
6037
- new Ic(be.getStackTrace(i));
6038
- for (var a = new Sc(), u = 0; u < o; u++)
6030
+ new Ec(be.getStackTrace(i));
6031
+ for (var a = new Nc(), u = 0; u < o; u++)
6039
6032
  try {
6040
6033
  s += a.readLine() + be.NEWLINE;
6041
6034
  } catch (l) {
6042
- if (l instanceof Nc)
6035
+ if (l instanceof xc)
6043
6036
  X.shouldNeverReachHere();
6044
6037
  else
6045
6038
  throw l;
@@ -6071,7 +6064,7 @@ Fs.NEWLINE.get = function() {
6071
6064
  return Gt.getProperty("line.separator");
6072
6065
  };
6073
6066
  Fs.SIMPLE_ORDINATE_FORMAT.get = function() {
6074
- return new Cc();
6067
+ return new Ic();
6075
6068
  };
6076
6069
  Object.defineProperties(be, Fs);
6077
6070
  var _t = function() {
@@ -6455,7 +6448,7 @@ var Pt = function(r) {
6455
6448
  this.normalize(this._shell, !0);
6456
6449
  for (var o = 0; o < this._holes.length; o++)
6457
6450
  i.normalize(i._holes[o], !1);
6458
- Er.sort(this._holes);
6451
+ Ir.sort(this._holes);
6459
6452
  } else if (arguments.length === 2) {
6460
6453
  var s = arguments[0], a = arguments[1];
6461
6454
  if (s.isEmpty())
@@ -6700,7 +6693,7 @@ Oe.prototype.editGeometryCollection = function(t, e) {
6700
6693
  var a = n.edit(i.getGeometryN(s), e);
6701
6694
  a === null || a.isEmpty() || o.add(a);
6702
6695
  }
6703
- return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Nr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === xn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6696
+ return i.getClass() === yi ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Sr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === xn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
6704
6697
  };
6705
6698
  Oe.prototype.editPolygon = function(t, e) {
6706
6699
  var n = this, i = e.edit(t, this._factory);
@@ -7063,10 +7056,10 @@ H.prototype.createLineString = function(t) {
7063
7056
  };
7064
7057
  H.prototype.createMultiLineString = function() {
7065
7058
  if (arguments.length === 0)
7066
- return new Nr(null, this);
7059
+ return new Sr(null, this);
7067
7060
  if (arguments.length === 1) {
7068
7061
  var t = arguments[0];
7069
- return new Nr(t, this);
7062
+ return new Sr(t, this);
7070
7063
  }
7071
7064
  };
7072
7065
  H.prototype.buildGeometry = function(t) {
@@ -7247,7 +7240,7 @@ hu.serialVersionUID.get = function() {
7247
7240
  return -6820524753094096e3;
7248
7241
  };
7249
7242
  Object.defineProperties(H, hu);
7250
- var wc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
7243
+ var Sc = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Zo = function(t) {
7251
7244
  this.geometryFactory = t || new H();
7252
7245
  };
7253
7246
  Zo.prototype.read = function(t) {
@@ -7256,7 +7249,7 @@ Zo.prototype.read = function(t) {
7256
7249
  var n = e.type;
7257
7250
  if (!$e[n])
7258
7251
  throw new Error("Unknown GeoJSON type: " + e.type);
7259
- return wc.indexOf(n) !== -1 ? $e[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? $e[n].apply(this, [e.geometries]) : $e[n].apply(this, [e]);
7252
+ return Sc.indexOf(n) !== -1 ? $e[n].apply(this, [e.coordinates]) : n === "GeometryCollection" ? $e[n].apply(this, [e.geometries]) : $e[n].apply(this, [e]);
7260
7253
  };
7261
7254
  Zo.prototype.write = function(t) {
7262
7255
  var e = t.getGeometryType();
@@ -8162,7 +8155,7 @@ xt.prototype.interfaces_ = function() {
8162
8155
  xt.prototype.getClass = function() {
8163
8156
  return xt;
8164
8157
  };
8165
- var Lc = function(r) {
8158
+ var wc = function(r) {
8166
8159
  function t() {
8167
8160
  var e = arguments[0], n = arguments[1];
8168
8161
  r.call(this, e, n);
@@ -8176,7 +8169,7 @@ var Lc = function(r) {
8176
8169
  }, t.prototype.getClass = function() {
8177
8170
  return t;
8178
8171
  }, t;
8179
- }(xt), bc = function(r) {
8172
+ }(xt), Lc = function(r) {
8180
8173
  function t() {
8181
8174
  var e = arguments[0], n = arguments[1];
8182
8175
  r.call(this, e, n);
@@ -8185,7 +8178,7 @@ var Lc = function(r) {
8185
8178
  var n = this, i = new L(), o = this._startDe;
8186
8179
  do {
8187
8180
  if (o.getMinEdgeRing() === null) {
8188
- var s = new Lc(o, n._geometryFactory);
8181
+ var s = new wc(o, n._geometryFactory);
8189
8182
  i.add(s);
8190
8183
  }
8191
8184
  o = o.getNext();
@@ -8750,7 +8743,7 @@ pe.prototype.buildMaximalEdgeRings = function(t) {
8750
8743
  for (var e = this, n = new L(), i = t.iterator(); i.hasNext(); ) {
8751
8744
  var o = i.next();
8752
8745
  if (o.isInResult() && o.getLabel().isArea() && o.getEdgeRing() === null) {
8753
- var s = new bc(o, e._geometryFactory);
8746
+ var s = new Lc(o, e._geometryFactory);
8754
8747
  n.add(s), s.setInResult();
8755
8748
  }
8756
8749
  }
@@ -8937,7 +8930,7 @@ qe.min = function(t) {
8937
8930
  };
8938
8931
  qe.sort = function(t, e) {
8939
8932
  var n = t.toArray();
8940
- e ? Er.sort(n, e) : Er.sort(n);
8933
+ e ? Ir.sort(n, e) : Ir.sort(n);
8941
8934
  for (var i = t.iterator(), o = 0, s = n.length; o < s; o++)
8942
8935
  i.next(), i.set(n[o]);
8943
8936
  };
@@ -9163,7 +9156,7 @@ Ot.compareDoubles = function(t, e) {
9163
9156
  return t > e ? 1 : t < e ? -1 : 0;
9164
9157
  };
9165
9158
  rs.IntersectsOp.get = function() {
9166
- return Pc;
9159
+ return bc;
9167
9160
  };
9168
9161
  rs.serialVersionUID.get = function() {
9169
9162
  return -3886435814360241e3;
@@ -9172,7 +9165,7 @@ rs.DEFAULT_NODE_CAPACITY.get = function() {
9172
9165
  return 10;
9173
9166
  };
9174
9167
  Object.defineProperties(Ot, rs);
9175
- var Pc = function() {
9168
+ var bc = function() {
9176
9169
  }, Ei = function() {
9177
9170
  };
9178
9171
  Ei.prototype.distance = function(t, e) {
@@ -9666,7 +9659,7 @@ M.prototype.equals = function(t) {
9666
9659
  return this.p0.equals(e.p0) && this.p1.equals(e.p1);
9667
9660
  };
9668
9661
  M.prototype.intersection = function(t) {
9669
- var e = new Mr();
9662
+ var e = new Ar();
9670
9663
  return e.computeIntersection(this.p0, this.p1, t.p0, t.p1), e.hasIntersection() ? e.getIntersection(0) : null;
9671
9664
  };
9672
9665
  M.prototype.project = function() {
@@ -9961,17 +9954,17 @@ rn.toIntArray = function(t) {
9961
9954
  e[n] = t.get(n).intValue();
9962
9955
  return e;
9963
9956
  };
9964
- var Sr = function() {
9957
+ var wr = function() {
9965
9958
  };
9966
- Sr.prototype.computeNodes = function(t) {
9959
+ wr.prototype.computeNodes = function(t) {
9967
9960
  };
9968
- Sr.prototype.getNodedSubstrings = function() {
9961
+ wr.prototype.getNodedSubstrings = function() {
9969
9962
  };
9970
- Sr.prototype.interfaces_ = function() {
9963
+ wr.prototype.interfaces_ = function() {
9971
9964
  return [];
9972
9965
  };
9973
- Sr.prototype.getClass = function() {
9974
- return Sr;
9966
+ wr.prototype.getClass = function() {
9967
+ return wr;
9975
9968
  };
9976
9969
  var so = function() {
9977
9970
  if (this._segInt = null, arguments.length !== 0) {
@@ -9985,7 +9978,7 @@ so.prototype.setSegmentIntersector = function(t) {
9985
9978
  this._segInt = t;
9986
9979
  };
9987
9980
  so.prototype.interfaces_ = function() {
9988
- return [Sr];
9981
+ return [wr];
9989
9982
  };
9990
9983
  so.prototype.getClass = function() {
9991
9984
  return so;
@@ -10361,7 +10354,7 @@ Object.defineProperties(j, ii);
10361
10354
  var ut = function r() {
10362
10355
  this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new M(), this._seg1 = new M(), this._offset0 = new M(), this._offset1 = new M(), this._side = 0, this._hasNarrowConcaveAngle = !1;
10363
10356
  var t = arguments[0], e = arguments[1], n = arguments[2];
10364
- this._precisionModel = t, this._bufParams = e, this._li = new Mr(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
10357
+ this._precisionModel = t, this._bufParams = e, this._li = new Ar(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === J.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
10365
10358
  }, mo = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
10366
10359
  ut.prototype.addNextSegment = function(t, e) {
10367
10360
  if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = t, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
@@ -10647,7 +10640,7 @@ Hr.prototype.findStabbedSegments = function() {
10647
10640
  if (!(h < a.x) && !t._seg.isHorizontal() && !(a.y < t._seg.p0.y || a.y > t._seg.p1.y) && P.computeOrientation(t._seg.p0, t._seg.p1, a) !== P.RIGHT) {
10648
10641
  var g = u.getDepth(w.LEFT);
10649
10642
  t._seg.p0.equals(c[f]) || (g = u.getDepth(w.RIGHT));
10650
- var p = new wr(t._seg, g);
10643
+ var p = new Lr(t._seg, g);
10651
10644
  l.add(p);
10652
10645
  }
10653
10646
  }
@@ -10672,15 +10665,15 @@ Hr.prototype.getClass = function() {
10672
10665
  return Hr;
10673
10666
  };
10674
10667
  mu.DepthSegment.get = function() {
10675
- return wr;
10668
+ return Lr;
10676
10669
  };
10677
10670
  Object.defineProperties(Hr, mu);
10678
- var wr = function() {
10671
+ var Lr = function() {
10679
10672
  this._upwardSeg = null, this._leftDepth = null;
10680
10673
  var t = arguments[0], e = arguments[1];
10681
10674
  this._upwardSeg = new M(t), this._leftDepth = e;
10682
10675
  };
10683
- wr.prototype.compareTo = function(t) {
10676
+ Lr.prototype.compareTo = function(t) {
10684
10677
  var e = t;
10685
10678
  if (this._upwardSeg.minX() >= e._upwardSeg.maxX())
10686
10679
  return 1;
@@ -10689,18 +10682,18 @@ wr.prototype.compareTo = function(t) {
10689
10682
  var n = this._upwardSeg.orientationIndex(e._upwardSeg);
10690
10683
  return n !== 0 || (n = -1 * e._upwardSeg.orientationIndex(this._upwardSeg), n !== 0) ? n : this._upwardSeg.compareTo(e._upwardSeg);
10691
10684
  };
10692
- wr.prototype.compareX = function(t, e) {
10685
+ Lr.prototype.compareX = function(t, e) {
10693
10686
  var n = t.p0.compareTo(e.p0);
10694
10687
  return n !== 0 ? n : t.p1.compareTo(e.p1);
10695
10688
  };
10696
- wr.prototype.toString = function() {
10689
+ Lr.prototype.toString = function() {
10697
10690
  return this._upwardSeg.toString();
10698
10691
  };
10699
- wr.prototype.interfaces_ = function() {
10692
+ Lr.prototype.interfaces_ = function() {
10700
10693
  return [Me];
10701
10694
  };
10702
- wr.prototype.getClass = function() {
10703
- return wr;
10695
+ Lr.prototype.getClass = function() {
10696
+ return Lr;
10704
10697
  };
10705
10698
  var $ = function(t, e, n) {
10706
10699
  this.p0 = t || null, this.p1 = e || null, this.p2 = n || null;
@@ -10837,7 +10830,7 @@ De.prototype.addPolygonRing = function(t, e, n, i, o) {
10837
10830
  De.prototype.add = function(t) {
10838
10831
  if (t.isEmpty())
10839
10832
  return null;
10840
- t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Nr ? this.addCollection(t) : t instanceof xn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
10833
+ t instanceof Pt ? this.addPolygon(t) : t instanceof pt ? this.addLineString(t) : t instanceof ge ? this.addPoint(t) : t instanceof yi ? this.addCollection(t) : t instanceof Sr ? this.addCollection(t) : t instanceof xn ? this.addCollection(t) : t instanceof te && this.addCollection(t);
10841
10834
  };
10842
10835
  De.prototype.isErodedCompletely = function(t, e) {
10843
10836
  var n = t.getCoordinates();
@@ -11082,7 +11075,7 @@ Wt.prototype.interfaces_ = function() {
11082
11075
  Wt.prototype.getClass = function() {
11083
11076
  return Wt;
11084
11077
  };
11085
- var Rc = function(r) {
11078
+ var Pc = function(r) {
11086
11079
  function t() {
11087
11080
  r.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
11088
11081
  }
@@ -11240,7 +11233,7 @@ var Rc = function(r) {
11240
11233
  r.apply(this, arguments);
11241
11234
  }
11242
11235
  return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.createNode = function(n) {
11243
- return new ns(n, new Rc());
11236
+ return new ns(n, new Pc());
11244
11237
  }, t.prototype.interfaces_ = function() {
11245
11238
  return [];
11246
11239
  }, t.prototype.getClass = function() {
@@ -11328,17 +11321,17 @@ Xe.prototype.interfaces_ = function() {
11328
11321
  Xe.prototype.getClass = function() {
11329
11322
  return Xe;
11330
11323
  };
11331
- var Lr = function() {
11324
+ var br = function() {
11332
11325
  };
11333
- Lr.prototype.processIntersections = function(t, e, n, i) {
11326
+ br.prototype.processIntersections = function(t, e, n, i) {
11334
11327
  };
11335
- Lr.prototype.isDone = function() {
11328
+ br.prototype.isDone = function() {
11336
11329
  };
11337
- Lr.prototype.interfaces_ = function() {
11330
+ br.prototype.interfaces_ = function() {
11338
11331
  return [];
11339
11332
  };
11340
- Lr.prototype.getClass = function() {
11341
- return Lr;
11333
+ br.prototype.getClass = function() {
11334
+ return br;
11342
11335
  };
11343
11336
  var Se = function() {
11344
11337
  this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._hasInterior = !1, this._properIntersectionPoint = null, this._li = null, this._isSelfIntersection = null, this.numIntersections = 0, this.numInteriorIntersections = 0, this.numProperIntersections = 0, this.numTests = 0;
@@ -11386,7 +11379,7 @@ Se.prototype.hasInteriorIntersection = function() {
11386
11379
  return this._hasInterior;
11387
11380
  };
11388
11381
  Se.prototype.interfaces_ = function() {
11389
- return [Lr];
11382
+ return [br];
11390
11383
  };
11391
11384
  Se.prototype.getClass = function() {
11392
11385
  return Se;
@@ -11484,19 +11477,19 @@ Pn.prototype.interfaces_ = function() {
11484
11477
  Pn.prototype.getClass = function() {
11485
11478
  return Pn;
11486
11479
  };
11487
- var br = function() {
11480
+ var Pr = function() {
11488
11481
  };
11489
- br.prototype.getChainStartIndices = function(t) {
11482
+ Pr.prototype.getChainStartIndices = function(t) {
11490
11483
  var e = this, n = 0, i = new L();
11491
11484
  i.add(new on(n));
11492
11485
  do {
11493
11486
  var o = e.findChainEnd(t, n);
11494
11487
  i.add(new on(o)), n = o;
11495
11488
  } while (n < t.length - 1);
11496
- var s = br.toIntArray(i);
11489
+ var s = Pr.toIntArray(i);
11497
11490
  return s;
11498
11491
  };
11499
- br.prototype.findChainEnd = function(t, e) {
11492
+ Pr.prototype.findChainEnd = function(t, e) {
11500
11493
  for (var n = nt.quadrant(t[e], t[e + 1]), i = e + 1; i < t.length; ) {
11501
11494
  var o = nt.quadrant(t[i - 1], t[i]);
11502
11495
  if (o !== n)
@@ -11505,13 +11498,13 @@ br.prototype.findChainEnd = function(t, e) {
11505
11498
  }
11506
11499
  return i - 1;
11507
11500
  };
11508
- br.prototype.interfaces_ = function() {
11501
+ Pr.prototype.interfaces_ = function() {
11509
11502
  return [];
11510
11503
  };
11511
- br.prototype.getClass = function() {
11512
- return br;
11504
+ Pr.prototype.getClass = function() {
11505
+ return Pr;
11513
11506
  };
11514
- br.toIntArray = function(t) {
11507
+ Pr.toIntArray = function(t) {
11515
11508
  for (var e = new Array(t.size()).fill(null), n = 0; n < e.length; n++)
11516
11509
  e[n] = t.get(n).intValue();
11517
11510
  return e;
@@ -11520,7 +11513,7 @@ var Kn = function() {
11520
11513
  this.e = null, this.pts = null, this.startIndex = null, this.env1 = new T(), this.env2 = new T();
11521
11514
  var t = arguments[0];
11522
11515
  this.e = t, this.pts = t.getCoordinates();
11523
- var e = new br();
11516
+ var e = new Pr();
11524
11517
  this.startIndex = e.getChainStartIndices(this.pts);
11525
11518
  };
11526
11519
  Kn.prototype.getCoordinates = function() {
@@ -11794,7 +11787,7 @@ $t.prototype.createEmptyResultGeometry = function() {
11794
11787
  $t.prototype.getNoder = function(t) {
11795
11788
  if (this._workingNoder !== null)
11796
11789
  return this._workingNoder;
11797
- var e = new Vs(), n = new Mr();
11790
+ var e = new Vs(), n = new Ar();
11798
11791
  return n.setPrecisionModel(t), e.setSegmentIntersector(new Se(n)), e;
11799
11792
  };
11800
11793
  $t.prototype.buffer = function(t, e) {
@@ -11892,13 +11885,13 @@ ur.prototype.computeNodes = function(t) {
11892
11885
  this._isScaled && (e = this.scale(t)), this._noder.computeNodes(e);
11893
11886
  };
11894
11887
  ur.prototype.interfaces_ = function() {
11895
- return [Sr];
11888
+ return [wr];
11896
11889
  };
11897
11890
  ur.prototype.getClass = function() {
11898
11891
  return ur;
11899
11892
  };
11900
11893
  var hn = function() {
11901
- this._li = new Mr(), this._segStrings = null;
11894
+ this._li = new Ar(), this._segStrings = null;
11902
11895
  var t = arguments[0];
11903
11896
  this._segStrings = t;
11904
11897
  }, Iu = { fact: { configurable: !0 } };
@@ -12124,7 +12117,7 @@ Wr.prototype.getInteriorIntersections = function() {
12124
12117
  return this._interiorIntersections;
12125
12118
  };
12126
12119
  Wr.prototype.interfaces_ = function() {
12127
- return [Lr];
12120
+ return [br];
12128
12121
  };
12129
12122
  Wr.prototype.getClass = function() {
12130
12123
  return Wr;
@@ -12132,7 +12125,7 @@ Wr.prototype.getClass = function() {
12132
12125
  var Rn = function() {
12133
12126
  this._pm = null, this._li = null, this._scaleFactor = null, this._noder = null, this._pointSnapper = null, this._nodedSegStrings = null;
12134
12127
  var t = arguments[0];
12135
- this._pm = t, this._li = new Mr(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
12128
+ this._pm = t, this._li = new Ar(), this._li.setPrecisionModel(t), this._scaleFactor = t.getScale();
12136
12129
  };
12137
12130
  Rn.prototype.checkCorrectness = function(t) {
12138
12131
  var e = Et.getNodedSubstrings(t), n = new hn(e);
@@ -12180,7 +12173,7 @@ Rn.prototype.computeIntersectionSnaps = function(t) {
12180
12173
  }
12181
12174
  };
12182
12175
  Rn.prototype.interfaces_ = function() {
12183
- return [Sr];
12176
+ return [wr];
12184
12177
  };
12185
12178
  Rn.prototype.getClass = function() {
12186
12179
  return Rn;
@@ -12385,28 +12378,28 @@ In.computeDistance = function() {
12385
12378
  x.setMinimum(S, C);
12386
12379
  }
12387
12380
  };
12388
- var Pr = function(t) {
12381
+ var Rr = function(t) {
12389
12382
  this._maxPtDist = new Kt(), this._inputGeom = t || null;
12390
12383
  }, Us = { MaxPointDistanceFilter: { configurable: !0 }, MaxMidpointDistanceFilter: { configurable: !0 } };
12391
- Pr.prototype.computeMaxMidpointDistance = function(t) {
12384
+ Rr.prototype.computeMaxMidpointDistance = function(t) {
12392
12385
  var e = new lr(this._inputGeom);
12393
12386
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
12394
12387
  };
12395
- Pr.prototype.computeMaxVertexDistance = function(t) {
12388
+ Rr.prototype.computeMaxVertexDistance = function(t) {
12396
12389
  var e = new jr(this._inputGeom);
12397
12390
  t.apply(e), this._maxPtDist.setMaximum(e.getMaxPointDistance());
12398
12391
  };
12399
- Pr.prototype.findDistance = function(t) {
12392
+ Rr.prototype.findDistance = function(t) {
12400
12393
  return this.computeMaxVertexDistance(t), this.computeMaxMidpointDistance(t), this._maxPtDist.getDistance();
12401
12394
  };
12402
- Pr.prototype.getDistancePoints = function() {
12395
+ Rr.prototype.getDistancePoints = function() {
12403
12396
  return this._maxPtDist;
12404
12397
  };
12405
- Pr.prototype.interfaces_ = function() {
12398
+ Rr.prototype.interfaces_ = function() {
12406
12399
  return [];
12407
12400
  };
12408
- Pr.prototype.getClass = function() {
12409
- return Pr;
12401
+ Rr.prototype.getClass = function() {
12402
+ return Rr;
12410
12403
  };
12411
12404
  Us.MaxPointDistanceFilter.get = function() {
12412
12405
  return jr;
@@ -12414,7 +12407,7 @@ Us.MaxPointDistanceFilter.get = function() {
12414
12407
  Us.MaxMidpointDistanceFilter.get = function() {
12415
12408
  return lr;
12416
12409
  };
12417
- Object.defineProperties(Pr, Us);
12410
+ Object.defineProperties(Rr, Us);
12418
12411
  var jr = function(t) {
12419
12412
  this._maxPtDist = new Kt(), this._minPtDist = new Kt(), this._geom = t || null;
12420
12413
  };
@@ -12595,7 +12588,7 @@ Ye.prototype.computeLocation = function(t, e) {
12595
12588
  this.updateLocationInfo(this.locateInternal(t, e));
12596
12589
  else if (e instanceof Pt)
12597
12590
  this.updateLocationInfo(this.locateInternal(t, e));
12598
- else if (e instanceof Nr)
12591
+ else if (e instanceof Sr)
12599
12592
  for (var i = e, o = 0; o < i.getNumGeometries(); o++) {
12600
12593
  var s = i.getGeometryN(o);
12601
12594
  n.updateLocationInfo(n.locateInternal(t, s));
@@ -13237,7 +13230,7 @@ Dt.prototype.isDone = function() {
13237
13230
  return this._findAllIntersections ? !1 : this._interiorIntersection !== null;
13238
13231
  };
13239
13232
  Dt.prototype.interfaces_ = function() {
13240
- return [Lr];
13233
+ return [br];
13241
13234
  };
13242
13235
  Dt.prototype.getClass = function() {
13243
13236
  return Dt;
@@ -13254,7 +13247,7 @@ Dt.createIntersectionCounter = function(t) {
13254
13247
  return e.setFindAllIntersections(!0), e.setKeepIntersections(!1), e;
13255
13248
  };
13256
13249
  var He = function() {
13257
- this._li = new Mr(), this._segStrings = null, this._findAllIntersections = !1, this._segInt = null, this._isValid = !0;
13250
+ this._li = new Ar(), this._segStrings = null, this._findAllIntersections = !1, this._segInt = null, this._isValid = !0;
13258
13251
  var t = arguments[0];
13259
13252
  this._segStrings = t;
13260
13253
  };
@@ -13298,29 +13291,29 @@ He.computeIntersections = function(t) {
13298
13291
  var e = new He(t);
13299
13292
  return e.setFindAllIntersections(!0), e.isValid(), e.getIntersections();
13300
13293
  };
13301
- var Rr = function r() {
13294
+ var Or = function r() {
13302
13295
  this._nv = null;
13303
13296
  var t = arguments[0];
13304
13297
  this._nv = new He(r.toSegmentStrings(t));
13305
13298
  };
13306
- Rr.prototype.checkValid = function() {
13299
+ Or.prototype.checkValid = function() {
13307
13300
  this._nv.checkValid();
13308
13301
  };
13309
- Rr.prototype.interfaces_ = function() {
13302
+ Or.prototype.interfaces_ = function() {
13310
13303
  return [];
13311
13304
  };
13312
- Rr.prototype.getClass = function() {
13313
- return Rr;
13305
+ Or.prototype.getClass = function() {
13306
+ return Or;
13314
13307
  };
13315
- Rr.toSegmentStrings = function(t) {
13308
+ Or.toSegmentStrings = function(t) {
13316
13309
  for (var e = new L(), n = t.iterator(); n.hasNext(); ) {
13317
13310
  var i = n.next();
13318
13311
  e.add(new gn(i.getCoordinates(), i));
13319
13312
  }
13320
13313
  return e;
13321
13314
  };
13322
- Rr.checkValid = function(t) {
13323
- var e = new Rr(t);
13315
+ Or.checkValid = function(t) {
13316
+ var e = new Or(t);
13324
13317
  e.checkValid();
13325
13318
  };
13326
13319
  var Jr = function(t) {
@@ -13502,7 +13495,7 @@ le.prototype.transform = function(t) {
13502
13495
  return this.transformLinearRing(t, null);
13503
13496
  if (t instanceof pt)
13504
13497
  return this.transformLineString(t, null);
13505
- if (t instanceof Nr)
13498
+ if (t instanceof Sr)
13506
13499
  return this.transformMultiLineString(t, null);
13507
13500
  if (t instanceof Pt)
13508
13501
  return this.transformPolygon(t, null);
@@ -14017,7 +14010,7 @@ Ut.prototype.getClass = function() {
14017
14010
  Ut.isAdjacentSegments = function(t, e) {
14018
14011
  return Math.abs(t - e) === 1;
14019
14012
  };
14020
- var Oc = function(r) {
14013
+ var Rc = function(r) {
14021
14014
  function t() {
14022
14015
  r.call(this), this.events = new L(), this.nOverlaps = null;
14023
14016
  }
@@ -14114,7 +14107,7 @@ lo.prototype.interfaces_ = function() {
14114
14107
  lo.prototype.getClass = function() {
14115
14108
  return lo;
14116
14109
  };
14117
- var Dc = function(r) {
14110
+ var Oc = function(r) {
14118
14111
  function t() {
14119
14112
  r.call(this), this._item = null;
14120
14113
  var e = arguments[0], n = arguments[1], i = arguments[2];
@@ -14129,7 +14122,7 @@ var Dc = function(r) {
14129
14122
  }, t.prototype.getClass = function() {
14130
14123
  return t;
14131
14124
  }, t;
14132
- }(Dn), Tc = function(r) {
14125
+ }(Dn), Dc = function(r) {
14133
14126
  function t() {
14134
14127
  r.call(this), this._node1 = null, this._node2 = null;
14135
14128
  var e = arguments[0], n = arguments[1];
@@ -14161,7 +14154,7 @@ Tn.prototype.buildTree = function() {
14161
14154
  Tn.prototype.insert = function(t, e, n) {
14162
14155
  if (this._root !== null)
14163
14156
  throw new Error("Index cannot be added to once it has been queried");
14164
- this._leaves.add(new Dc(t, e, n));
14157
+ this._leaves.add(new Oc(t, e, n));
14165
14158
  };
14166
14159
  Tn.prototype.query = function(t, e, n) {
14167
14160
  this.init(), this._root.query(t, e, n);
@@ -14186,7 +14179,7 @@ Tn.prototype.buildLevel = function(t, e) {
14186
14179
  if (o === null)
14187
14180
  e.add(i);
14188
14181
  else {
14189
- var s = new Tc(t.get(n), t.get(n + 1));
14182
+ var s = new Dc(t.get(n), t.get(n + 1));
14190
14183
  e.add(s);
14191
14184
  }
14192
14185
  }
@@ -14217,7 +14210,7 @@ var Ni = function() {
14217
14210
  var t = arguments[0];
14218
14211
  if (!G(t, ir))
14219
14212
  throw new lt("Argument must be Polygonal");
14220
- this._index = new Or(t);
14213
+ this._index = new Dr(t);
14221
14214
  }, js = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
14222
14215
  Ni.prototype.locate = function(t) {
14223
14216
  var e = new nn(t), n = new Si(e);
@@ -14233,7 +14226,7 @@ js.SegmentVisitor.get = function() {
14233
14226
  return Si;
14234
14227
  };
14235
14228
  js.IntervalIndexedGeometry.get = function() {
14236
- return Or;
14229
+ return Dr;
14237
14230
  };
14238
14231
  Object.defineProperties(Ni, js);
14239
14232
  var Si = function() {
@@ -14251,24 +14244,24 @@ Si.prototype.interfaces_ = function() {
14251
14244
  Si.prototype.getClass = function() {
14252
14245
  return Si;
14253
14246
  };
14254
- var Or = function() {
14247
+ var Dr = function() {
14255
14248
  this._index = new Tn();
14256
14249
  var t = arguments[0];
14257
14250
  this.init(t);
14258
14251
  };
14259
- Or.prototype.init = function(t) {
14252
+ Dr.prototype.init = function(t) {
14260
14253
  for (var e = this, n = Ft.getLines(t), i = n.iterator(); i.hasNext(); ) {
14261
14254
  var o = i.next(), s = o.getCoordinates();
14262
14255
  e.addLine(s);
14263
14256
  }
14264
14257
  };
14265
- Or.prototype.addLine = function(t) {
14258
+ Dr.prototype.addLine = function(t) {
14266
14259
  for (var e = this, n = 1; n < t.length; n++) {
14267
14260
  var i = new M(t[n - 1], t[n]), o = Math.min(i.p0.y, i.p1.y), s = Math.max(i.p0.y, i.p1.y);
14268
14261
  e._index.insert(o, s, i);
14269
14262
  }
14270
14263
  };
14271
- Or.prototype.query = function() {
14264
+ Dr.prototype.query = function() {
14272
14265
  if (arguments.length === 2) {
14273
14266
  var t = arguments[0], e = arguments[1], n = new xi();
14274
14267
  return this._index.query(t, e, n), n.getItems();
@@ -14277,11 +14270,11 @@ Or.prototype.query = function() {
14277
14270
  this._index.query(i, o, s);
14278
14271
  }
14279
14272
  };
14280
- Or.prototype.interfaces_ = function() {
14273
+ Dr.prototype.interfaces_ = function() {
14281
14274
  return [];
14282
14275
  };
14283
- Or.prototype.getClass = function() {
14284
- return Or;
14276
+ Dr.prototype.getClass = function() {
14277
+ return Dr;
14285
14278
  };
14286
14279
  var Vi = function(r) {
14287
14280
  function t() {
@@ -14377,7 +14370,7 @@ var Vi = function(r) {
14377
14370
  var s = this._nodes.addNode(i), a = s.getLabel();
14378
14371
  a === null ? s._label = new tt(n, o) : a.setLocation(n, o);
14379
14372
  }, t.prototype.createEdgeSetIntersector = function() {
14380
- return new Oc();
14373
+ return new Rc();
14381
14374
  }, t.prototype.addSelfIntersectionNodes = function(n) {
14382
14375
  for (var i = this, o = this._edges.iterator(); o.hasNext(); )
14383
14376
  for (var s = o.next(), a = s.getLabel().getLocation(n), u = s.eiList.iterator(); u.hasNext(); ) {
@@ -14397,7 +14390,7 @@ var Vi = function(r) {
14397
14390
  this.addPoint(n);
14398
14391
  else if (n instanceof yi)
14399
14392
  this.addCollection(n);
14400
- else if (n instanceof Nr)
14393
+ else if (n instanceof Sr)
14401
14394
  this.addCollection(n);
14402
14395
  else if (n instanceof xn)
14403
14396
  this.addCollection(n);
@@ -14428,7 +14421,7 @@ var Vi = function(r) {
14428
14421
  return n.isInBoundary(i) ? y.BOUNDARY : y.INTERIOR;
14429
14422
  }, t;
14430
14423
  }(ht), wi = function() {
14431
- if (this._li = new Mr(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
14424
+ if (this._li = new Ar(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
14432
14425
  var t = arguments[0];
14433
14426
  this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new Vi(0, t);
14434
14427
  } else if (arguments.length === 2) {
@@ -14451,22 +14444,22 @@ wi.prototype.interfaces_ = function() {
14451
14444
  wi.prototype.getClass = function() {
14452
14445
  return wi;
14453
14446
  };
14454
- var Ir = function() {
14447
+ var Cr = function() {
14455
14448
  };
14456
- Ir.prototype.interfaces_ = function() {
14449
+ Cr.prototype.interfaces_ = function() {
14457
14450
  return [];
14458
14451
  };
14459
- Ir.prototype.getClass = function() {
14460
- return Ir;
14452
+ Cr.prototype.getClass = function() {
14453
+ return Cr;
14461
14454
  };
14462
- Ir.map = function() {
14463
- if (arguments[0] instanceof k && G(arguments[1], Ir.MapOp)) {
14455
+ Cr.map = function() {
14456
+ if (arguments[0] instanceof k && G(arguments[1], Cr.MapOp)) {
14464
14457
  for (var t = arguments[0], e = arguments[1], n = new L(), i = 0; i < t.getNumGeometries(); i++) {
14465
14458
  var o = e.map(t.getGeometryN(i));
14466
14459
  o !== null && n.add(o);
14467
14460
  }
14468
14461
  return t.getFactory().buildGeometry(n);
14469
- } else if (G(arguments[0], St) && G(arguments[1], Ir.MapOp)) {
14462
+ } else if (G(arguments[0], St) && G(arguments[1], Cr.MapOp)) {
14470
14463
  for (var s = arguments[0], a = arguments[1], u = new L(), l = s.iterator(); l.hasNext(); ) {
14471
14464
  var c = l.next(), f = a.map(c);
14472
14465
  f !== null && u.add(f);
@@ -14474,7 +14467,7 @@ Ir.map = function() {
14474
14467
  return u;
14475
14468
  }
14476
14469
  };
14477
- Ir.MapOp = function() {
14470
+ Cr.MapOp = function() {
14478
14471
  };
14479
14472
  var U = function(r) {
14480
14473
  function t() {
@@ -14535,7 +14528,7 @@ var U = function(r) {
14535
14528
  }, t.prototype.computeOverlay = function(n) {
14536
14529
  this.copyPoints(0), this.copyPoints(1), this._arg[0].computeSelfNodes(this._li, !1), this._arg[1].computeSelfNodes(this._li, !1), this._arg[0].computeEdgeIntersections(this._arg[1], this._li, !0);
14537
14530
  var i = new L();
14538
- this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Rr.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(n), this.cancelDuplicateResultEdges();
14531
+ this._arg[0].computeSplitEdges(i), this._arg[1].computeSplitEdges(i), this.insertUniqueEdges(i), this.computeLabelsFromDepths(), this.replaceCollapsedEdges(), Or.checkValid(this._edgeList.getEdges()), this._graph.addEdges(this._edgeList.getEdges()), this.computeLabelling(), this.labelIncompleteNodes(), this.findResultAreaEdges(n), this.cancelDuplicateResultEdges();
14539
14532
  var o = new pe(this._geomFact);
14540
14533
  o.add(this._graph), this._resultPolyList = o.getPolygons();
14541
14534
  var s = new pn(this, this._geomFact, this._ptLocator);
@@ -14594,7 +14587,7 @@ U.intersection = function(r, t) {
14594
14587
  var e = t;
14595
14588
  return Jr.map(r, {
14596
14589
  interfaces_: function() {
14597
- return [Ir.MapOp];
14590
+ return [Cr.MapOp];
14598
14591
  },
14599
14592
  map: function(n) {
14600
14593
  return n.intersection(e);
@@ -14727,26 +14720,26 @@ Li.prototype.interfaces_ = function() {
14727
14720
  Li.prototype.getClass = function() {
14728
14721
  return Li;
14729
14722
  };
14730
- var Dr = function() {
14723
+ var Tr = function() {
14731
14724
  this._g = null, this._doLeft = !0, this._doRight = !0;
14732
14725
  var t = arguments[0];
14733
14726
  this._g = t;
14734
14727
  };
14735
- Dr.prototype.extractPoints = function(t, e, n) {
14728
+ Tr.prototype.extractPoints = function(t, e, n) {
14736
14729
  for (var i = this, o = t.getCoordinates(), s = 0; s < o.length - 1; s++)
14737
14730
  i.computeOffsetPoints(o[s], o[s + 1], e, n);
14738
14731
  };
14739
- Dr.prototype.setSidesToGenerate = function(t, e) {
14732
+ Tr.prototype.setSidesToGenerate = function(t, e) {
14740
14733
  this._doLeft = t, this._doRight = e;
14741
14734
  };
14742
- Dr.prototype.getPoints = function(t) {
14735
+ Tr.prototype.getPoints = function(t) {
14743
14736
  for (var e = this, n = new L(), i = Ft.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
14744
14737
  var s = o.next();
14745
14738
  e.extractPoints(s, t, n);
14746
14739
  }
14747
14740
  return n;
14748
14741
  };
14749
- Dr.prototype.computeOffsetPoints = function(t, e, n, i) {
14742
+ Tr.prototype.computeOffsetPoints = function(t, e, n, i) {
14750
14743
  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;
14751
14744
  if (this._doLeft) {
14752
14745
  var h = new v(c - l, f + u);
@@ -14757,11 +14750,11 @@ Dr.prototype.computeOffsetPoints = function(t, e, n, i) {
14757
14750
  i.add(g);
14758
14751
  }
14759
14752
  };
14760
- Dr.prototype.interfaces_ = function() {
14753
+ Tr.prototype.interfaces_ = function() {
14761
14754
  return [];
14762
14755
  };
14763
- Dr.prototype.getClass = function() {
14764
- return Dr;
14756
+ Tr.prototype.getClass = function() {
14757
+ return Tr;
14765
14758
  };
14766
14759
  var we = function r() {
14767
14760
  this._geom = null, this._locFinder = null, this._location = new Array(3).fill(null), this._invalidLocation = null, this._boundaryDistanceTolerance = r.TOLERANCE, this._testCoords = new L();
@@ -14791,7 +14784,7 @@ we.prototype.checkValid = function() {
14791
14784
  }
14792
14785
  };
14793
14786
  we.prototype.addTestPts = function(t) {
14794
- var e = new Dr(t);
14787
+ var e = new Tr(t);
14795
14788
  this._testCoords.addAll(e.getPoints(5 * this._boundaryDistanceTolerance));
14796
14789
  };
14797
14790
  we.prototype.isValidResult = function(t, e) {
@@ -15008,7 +15001,7 @@ Go.union = function(t, e) {
15008
15001
  }
15009
15002
  return t.checkNotGeometryCollection(t), t.checkNotGeometryCollection(e), re.overlayOp(t, e, U.UNION);
15010
15003
  };
15011
- function Ar() {
15004
+ function Fr() {
15012
15005
  return new zo();
15013
15006
  }
15014
15007
  function zo() {
@@ -15032,7 +15025,7 @@ function La(r, t, e) {
15032
15025
  var n = r.s = t + e, i = n - t, o = n - i;
15033
15026
  r.t = t - o + (e - i);
15034
15027
  }
15035
- var gt = 1e-6, it = Math.PI, qn = it / 2, ba = it / 4, Qn = it * 2, vr = 180 / it, Ze = it / 180, Jt = Math.abs, Mc = Math.atan, bi = Math.atan2, wt = Math.cos, Lt = Math.sin, _o = Math.sqrt;
15028
+ var gt = 1e-6, it = Math.PI, qn = it / 2, ba = it / 4, Qn = it * 2, yr = 180 / it, Ze = it / 180, Jt = Math.abs, Tc = Math.atan, bi = Math.atan2, wt = Math.cos, Lt = Math.sin, _o = Math.sqrt;
15036
15029
  function Ou(r) {
15037
15030
  return r > 1 ? 0 : r < -1 ? it : Math.acos(r);
15038
15031
  }
@@ -15094,11 +15087,11 @@ function Oa(r, t) {
15094
15087
  Ls(r[e], t, 1);
15095
15088
  t.polygonEnd();
15096
15089
  }
15097
- function Ac(r, t) {
15090
+ function Mc(r, t) {
15098
15091
  r && Pa.hasOwnProperty(r.type) ? Pa[r.type](r, t) : Vo(r, t);
15099
15092
  }
15100
- Ar();
15101
- Ar();
15093
+ Fr();
15094
+ Fr();
15102
15095
  function bs(r) {
15103
15096
  return [bi(r[1], r[0]), Pi(r[2])];
15104
15097
  }
@@ -15122,7 +15115,7 @@ function Ps(r) {
15122
15115
  var t = _o(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
15123
15116
  r[0] /= t, r[1] /= t, r[2] /= t;
15124
15117
  }
15125
- Ar();
15118
+ Fr();
15126
15119
  function Du(r, t) {
15127
15120
  function e(n, i) {
15128
15121
  return n = r(n, i), t(n[0], n[1]);
@@ -15135,7 +15128,7 @@ function Rs(r, t) {
15135
15128
  return [r > it ? r - Qn : r < -it ? r + Qn : r, t];
15136
15129
  }
15137
15130
  Rs.invert = Rs;
15138
- function Fc(r, t, e) {
15131
+ function Ac(r, t, e) {
15139
15132
  return (r %= Qn) ? t || e ? Du(Ta(r), Ma(t, e)) : Ta(r) : t || e ? Ma(t, e) : Rs;
15140
15133
  }
15141
15134
  function Da(r) {
@@ -15164,7 +15157,7 @@ function Ma(r, t) {
15164
15157
  ];
15165
15158
  }, s;
15166
15159
  }
15167
- function Bc(r, t, e, n, i, o) {
15160
+ function Fc(r, t, e, n, i, o) {
15168
15161
  if (e) {
15169
15162
  var s = wt(t), a = Lt(t), u = n * e;
15170
15163
  i == null ? (i = t + n * Qn, o = t - u / 2) : (i = Aa(s, i), o = Aa(s, o), (n > 0 ? i < o : i > o) && (i += n * Qn));
@@ -15196,7 +15189,7 @@ function Tu() {
15196
15189
  }
15197
15190
  };
15198
15191
  }
15199
- function kc(r, t, e, n, i, o) {
15192
+ function Bc(r, t, e, n, i, o) {
15200
15193
  var s = r[0], a = r[1], u = t[0], l = t[1], c = 0, f = 1, h = u - s, g = l - a, p;
15201
15194
  if (p = e - s, !(!h && p > 0)) {
15202
15195
  if (p /= h, h < 0) {
@@ -15303,8 +15296,8 @@ function Fa(r) {
15303
15296
  function Au(r, t) {
15304
15297
  return r < t ? -1 : r > t ? 1 : r >= t ? 0 : NaN;
15305
15298
  }
15306
- function Gc(r) {
15307
- return r.length === 1 && (r = zc(r)), {
15299
+ function kc(r) {
15300
+ return r.length === 1 && (r = Gc(r)), {
15308
15301
  left: function(t, e, n, i) {
15309
15302
  for (n == null && (n = 0), i == null && (i = t.length); n < i; ) {
15310
15303
  var o = n + i >>> 1;
@@ -15321,12 +15314,12 @@ function Gc(r) {
15321
15314
  }
15322
15315
  };
15323
15316
  }
15324
- function zc(r) {
15317
+ function Gc(r) {
15325
15318
  return function(t, e) {
15326
15319
  return Au(r(t), e);
15327
15320
  };
15328
15321
  }
15329
- Gc(Au);
15322
+ kc(Au);
15330
15323
  function Fu(r) {
15331
15324
  for (var t = r.length, e, n = -1, i = 0, o, s; ++n < t; )
15332
15325
  i += r[n].length;
@@ -15336,7 +15329,7 @@ function Fu(r) {
15336
15329
  return o;
15337
15330
  }
15338
15331
  var qi = 1e9, Lo = -qi;
15339
- function Vc(r, t, e, n) {
15332
+ function zc(r, t, e, n) {
15340
15333
  function i(l, c) {
15341
15334
  return r <= l && l <= e && t <= c && c <= n;
15342
15335
  }
@@ -15372,7 +15365,7 @@ function Vc(r, t, e, n) {
15372
15365
  }
15373
15366
  function D() {
15374
15367
  for (var Y = 0, at = 0, Nt = g.length; at < Nt; ++at)
15375
- for (var qt = g[at], ce = 1, Fr = qt.length, mn = qt[0], An, fe, et = mn[0], Rt = mn[1]; ce < Fr; ++ce)
15368
+ for (var qt = g[at], ce = 1, Br = qt.length, mn = qt[0], An, fe, et = mn[0], Rt = mn[1]; ce < Br; ++ce)
15376
15369
  An = et, fe = Rt, mn = qt[ce], et = mn[0], Rt = mn[1], fe <= n ? Rt > n && (et - An) * (n - fe) > (Rt - fe) * (r - An) && ++Y : Rt <= n && (et - An) * (n - fe) < (Rt - fe) * (r - An) && --Y;
15377
15370
  return Y;
15378
15371
  }
@@ -15397,15 +15390,15 @@ function Vc(r, t, e, n) {
15397
15390
  c.point(Y, at);
15398
15391
  else {
15399
15392
  var qt = [I = Math.max(Lo, Math.min(qi, I)), C = Math.max(Lo, Math.min(qi, C))], ce = [Y = Math.max(Lo, Math.min(qi, Y)), at = Math.max(Lo, Math.min(qi, at))];
15400
- kc(qt, ce, r, t, e, n) ? (x || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), Nt || c.lineEnd(), b = !1) : Nt && (c.lineStart(), c.point(Y, at), b = !1);
15393
+ Bc(qt, ce, r, t, e, n) ? (x || (c.lineStart(), c.point(qt[0], qt[1])), c.point(ce[0], ce[1]), Nt || c.lineEnd(), b = !1) : Nt && (c.lineStart(), c.point(Y, at), b = !1);
15401
15394
  }
15402
15395
  I = Y, C = at, x = Nt;
15403
15396
  }
15404
15397
  return A;
15405
15398
  };
15406
15399
  }
15407
- var ps = Ar();
15408
- function Uc(r, t) {
15400
+ var ps = Fr();
15401
+ function Vc(r, t) {
15409
15402
  var e = t[0], n = t[1], i = [Lt(e), -wt(e), 0], o = 0, s = 0;
15410
15403
  ps.reset();
15411
15404
  for (var a = 0, u = r.length; a < u; ++a)
@@ -15423,14 +15416,14 @@ function Uc(r, t) {
15423
15416
  }
15424
15417
  return (o < -gt || o < gt && ps < -gt) ^ s & 1;
15425
15418
  }
15426
- Ar();
15419
+ Fr();
15427
15420
  function Ba(r) {
15428
15421
  return r;
15429
15422
  }
15430
- Ar();
15431
- Ar();
15423
+ Fr();
15424
+ Fr();
15432
15425
  var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, ka = {
15433
- point: qc,
15426
+ point: Uc,
15434
15427
  lineStart: Ui,
15435
15428
  lineEnd: Ui,
15436
15429
  polygonStart: Ui,
@@ -15440,10 +15433,10 @@ var Oi = 1 / 0, qo = Oi, co = -Oi, Xo = co, ka = {
15440
15433
  return co = Xo = -(qo = Oi = 1 / 0), r;
15441
15434
  }
15442
15435
  };
15443
- function qc(r, t) {
15436
+ function Uc(r, t) {
15444
15437
  r < Oi && (Oi = r), r > co && (co = r), t < qo && (qo = t), t > Xo && (Xo = t);
15445
15438
  }
15446
- Ar();
15439
+ Fr();
15447
15440
  function Bu(r, t, e, n) {
15448
15441
  return function(i, o) {
15449
15442
  var s = t(o), a = i.invert(n[0], n[1]), u = Tu(), l = t(u), c = !1, f, h, g, p = {
@@ -15455,8 +15448,8 @@ function Bu(r, t, e, n) {
15455
15448
  },
15456
15449
  polygonEnd: function() {
15457
15450
  p.point = m, p.lineStart = _, p.lineEnd = I, h = Fu(h);
15458
- var b = Uc(f, a);
15459
- h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Yc, b, e, o)) : b && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
15451
+ var b = Vc(f, a);
15452
+ h.length ? (c || (o.polygonStart(), c = !0), Mu(h, Xc, b, e, o)) : b && (c || (o.polygonStart(), c = !0), o.lineStart(), e(null, null, 1, o), o.lineEnd()), c && (o.polygonEnd(), c = !1), h = f = null;
15460
15453
  },
15461
15454
  sphere: function() {
15462
15455
  o.polygonStart(), o.lineStart(), e(null, null, 1, o), o.lineEnd(), o.polygonEnd();
@@ -15496,27 +15489,27 @@ function Bu(r, t, e, n) {
15496
15489
  }
15497
15490
  return;
15498
15491
  }
15499
- D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(Xc));
15492
+ D > 1 && b & 2 && A.push(A.pop().concat(A.shift())), h.push(A.filter(qc));
15500
15493
  }
15501
15494
  }
15502
15495
  return p;
15503
15496
  };
15504
15497
  }
15505
- function Xc(r) {
15498
+ function qc(r) {
15506
15499
  return r.length > 1;
15507
15500
  }
15508
- function Yc(r, t) {
15501
+ function Xc(r, t) {
15509
15502
  return ((r = r.x)[0] < 0 ? r[1] - qn - gt : qn - r[1]) - ((t = t.x)[0] < 0 ? t[1] - qn - gt : qn - t[1]);
15510
15503
  }
15511
15504
  const Ga = Bu(
15512
15505
  function() {
15513
15506
  return !0;
15514
15507
  },
15515
- Hc,
15516
- jc,
15508
+ Yc,
15509
+ Wc,
15517
15510
  [-it, -qn]
15518
15511
  );
15519
- function Hc(r) {
15512
+ function Yc(r) {
15520
15513
  var t = NaN, e = NaN, n = NaN, i;
15521
15514
  return {
15522
15515
  lineStart: function() {
@@ -15524,7 +15517,7 @@ function Hc(r) {
15524
15517
  },
15525
15518
  point: function(o, s) {
15526
15519
  var a = o > 0 ? it : -it, u = Jt(o - t);
15527
- Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e = Wc(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;
15520
+ Jt(u - it) < gt ? (r.point(t, e = (e + s) / 2 > 0 ? qn : -qn), r.point(n, e), r.lineEnd(), r.lineStart(), r.point(a, e), r.point(o, e), i = 0) : n !== a && u >= it && (Jt(t - n) < gt && (t -= n * gt), Jt(o - a) < gt && (o -= a * gt), e = Hc(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;
15528
15521
  },
15529
15522
  lineEnd: function() {
15530
15523
  r.lineEnd(), t = e = NaN;
@@ -15534,11 +15527,11 @@ function Hc(r) {
15534
15527
  }
15535
15528
  };
15536
15529
  }
15537
- function Wc(r, t, e, n) {
15530
+ function Hc(r, t, e, n) {
15538
15531
  var i, o, s = Lt(r - e);
15539
- return Jt(s) > gt ? Mc((Lt(t) * (o = wt(n)) * Lt(e) - Lt(n) * (i = wt(t)) * Lt(r)) / (i * o * s)) : (t + n) / 2;
15532
+ return Jt(s) > gt ? Tc((Lt(t) * (o = wt(n)) * Lt(e) - Lt(n) * (i = wt(t)) * Lt(r)) / (i * o * s)) : (t + n) / 2;
15540
15533
  }
15541
- function jc(r, t, e, n) {
15534
+ function Wc(r, t, e, n) {
15542
15535
  var i;
15543
15536
  if (r == null)
15544
15537
  i = e * qn, 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);
@@ -15548,10 +15541,10 @@ function jc(r, t, e, n) {
15548
15541
  } else
15549
15542
  n.point(t[0], t[1]);
15550
15543
  }
15551
- function Kc(r, t) {
15544
+ function jc(r, t) {
15552
15545
  var e = wt(r), n = e > 0, i = Jt(e) > gt;
15553
15546
  function o(c, f, h, g) {
15554
- Bc(g, r, t, h, c, f);
15547
+ Fc(g, r, t, h, c, f);
15555
15548
  }
15556
15549
  function s(c, f) {
15557
15550
  return wt(c) * wt(f) > e;
@@ -15595,8 +15588,8 @@ function Kc(r, t) {
15595
15588
  return O;
15596
15589
  var Y = c[0], at = f[0], Nt = c[1], qt = f[1], ce;
15597
15590
  at < Y && (ce = Y, Y = at, at = ce);
15598
- var Fr = at - Y, mn = Jt(Fr - it) < gt, An = mn || Fr < gt;
15599
- if (!mn && qt < Nt && (ce = Nt, Nt = qt, qt = ce), An ? mn ? Nt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? Nt : qt) : Nt <= O[1] && O[1] <= qt : Fr > it ^ (Y <= O[0] && O[0] <= at)) {
15591
+ var Br = at - Y, mn = Jt(Br - it) < gt, An = mn || Br < gt;
15592
+ if (!mn && qt < Nt && (ce = Nt, Nt = qt, qt = ce), An ? mn ? Nt + qt > 0 ^ O[1] < (Jt(O[0] - Y) < gt ? Nt : qt) : Nt <= O[1] && O[1] <= qt : Br > it ^ (Y <= O[0] && O[0] <= at)) {
15600
15593
  var fe = So(D, (-R + rt) / z);
15601
15594
  return gs(fe, A), [O, bs(fe)];
15602
15595
  }
@@ -15641,30 +15634,30 @@ Os.prototype = {
15641
15634
  };
15642
15635
  function Gu(r, t, e) {
15643
15636
  var n = t[1][0] - t[0][0], i = t[1][1] - t[0][1], o = r.clipExtent && r.clipExtent();
15644
- r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Ac(e, r.stream(ka));
15637
+ r.scale(150).translate([0, 0]), o != null && r.clipExtent(null), Mc(e, r.stream(ka));
15645
15638
  var s = ka.result(), a = Math.min(n / (s[1][0] - s[0][0]), i / (s[1][1] - s[0][1])), u = +t[0][0] + (n - a * (s[1][0] + s[0][0])) / 2, l = +t[0][1] + (i - a * (s[1][1] + s[0][1])) / 2;
15646
15639
  return o != null && r.clipExtent(o), r.scale(a * 150).translate([u, l]);
15647
15640
  }
15648
- function Qc(r, t, e) {
15641
+ function Kc(r, t, e) {
15649
15642
  return Gu(r, [[0, 0], t], e);
15650
15643
  }
15651
- var za = 16, Jc = wt(30 * Ze);
15644
+ var za = 16, Qc = wt(30 * Ze);
15652
15645
  function Va(r, t) {
15653
- return +t ? $c(r, t) : Zc(r);
15646
+ return +t ? Zc(r, t) : Jc(r);
15654
15647
  }
15655
- function Zc(r) {
15648
+ function Jc(r) {
15656
15649
  return ku({
15657
15650
  point: function(t, e) {
15658
15651
  t = r(t, e), this.stream.point(t[0], t[1]);
15659
15652
  }
15660
15653
  });
15661
15654
  }
15662
- function $c(r, t) {
15655
+ function Zc(r, t) {
15663
15656
  function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
15664
15657
  var _ = l - n, I = c - i, C = _ * _ + I * I;
15665
15658
  if (C > 4 * t && m--) {
15666
15659
  var x = s + h, S = a + g, b = u + p, A = _o(x * x + S * S + b * b), F = Pi(b /= A), D = Jt(Jt(b) - 1) < gt || Jt(o - f) < gt ? (o + f) / 2 : bi(S, x), R = r(D, F), z = R[0], q = R[1], rt = z - n, O = q - i, Y = I * rt - _ * O;
15667
- (Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Jc) && (e(n, i, o, s, a, u, z, q, D, x /= A, S /= A, b, m, d), d.point(z, q), e(z, q, D, x, S, b, l, c, f, h, g, p, m, d));
15660
+ (Y * Y / C > t || Jt((_ * rt + I * O) / C - 0.5) > 0.3 || s * h + a * g + u * p < Qc) && (e(n, i, o, s, a, u, z, q, D, x /= A, S /= A, b, m, d), d.point(z, q), e(z, q, D, x, S, b, l, c, f, h, g, p, m, d));
15668
15661
  }
15669
15662
  }
15670
15663
  return function(n) {
@@ -15704,50 +15697,50 @@ function $c(r, t) {
15704
15697
  return d;
15705
15698
  };
15706
15699
  }
15707
- var tf = ku({
15700
+ var $c = ku({
15708
15701
  point: function(r, t) {
15709
15702
  this.stream.point(r * Ze, t * Ze);
15710
15703
  }
15711
15704
  });
15712
- function ef(r) {
15713
- return nf(function() {
15705
+ function tf(r) {
15706
+ return ef(function() {
15714
15707
  return r;
15715
15708
  })();
15716
15709
  }
15717
- function nf(r) {
15710
+ function ef(r) {
15718
15711
  var t, e = 150, n = 480, i = 250, o, s, a = 0, u = 0, l = 0, c = 0, f = 0, h, g, p = null, m = Ga, d = null, _, I, C, x = Ba, S = 0.5, b = Va(z, S), A, F;
15719
15712
  function D(O) {
15720
15713
  return O = g(O[0] * Ze, O[1] * Ze), [O[0] * e + o, s - O[1] * e];
15721
15714
  }
15722
15715
  function R(O) {
15723
- return O = g.invert((O[0] - o) / e, (s - O[1]) / e), O && [O[0] * vr, O[1] * vr];
15716
+ return O = g.invert((O[0] - o) / e, (s - O[1]) / e), O && [O[0] * yr, O[1] * yr];
15724
15717
  }
15725
15718
  function z(O, Y) {
15726
15719
  return O = t(O, Y), [O[0] * e + o, s - O[1] * e];
15727
15720
  }
15728
15721
  D.stream = function(O) {
15729
- return A && F === O ? A : A = tf(m(h, b(x(F = O))));
15722
+ return A && F === O ? A : A = $c(m(h, b(x(F = O))));
15730
15723
  }, D.clipAngle = function(O) {
15731
- return arguments.length ? (m = +O ? Kc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * vr;
15724
+ return arguments.length ? (m = +O ? jc(p = O * Ze, 6 * Ze) : (p = null, Ga), rt()) : p * yr;
15732
15725
  }, D.clipExtent = function(O) {
15733
- return arguments.length ? (x = O == null ? (d = _ = I = C = null, Ba) : Vc(d = +O[0][0], _ = +O[0][1], I = +O[1][0], C = +O[1][1]), rt()) : d == null ? null : [[d, _], [I, C]];
15726
+ return arguments.length ? (x = O == null ? (d = _ = I = C = null, Ba) : zc(d = +O[0][0], _ = +O[0][1], I = +O[1][0], C = +O[1][1]), rt()) : d == null ? null : [[d, _], [I, C]];
15734
15727
  }, D.scale = function(O) {
15735
15728
  return arguments.length ? (e = +O, q()) : e;
15736
15729
  }, D.translate = function(O) {
15737
15730
  return arguments.length ? (n = +O[0], i = +O[1], q()) : [n, i];
15738
15731
  }, D.center = function(O) {
15739
- return arguments.length ? (a = O[0] % 360 * Ze, u = O[1] % 360 * Ze, q()) : [a * vr, u * vr];
15732
+ return arguments.length ? (a = O[0] % 360 * Ze, u = O[1] % 360 * Ze, q()) : [a * yr, u * yr];
15740
15733
  }, D.rotate = function(O) {
15741
- return arguments.length ? (l = O[0] % 360 * Ze, c = O[1] % 360 * Ze, f = O.length > 2 ? O[2] % 360 * Ze : 0, q()) : [l * vr, c * vr, f * vr];
15734
+ return arguments.length ? (l = O[0] % 360 * Ze, c = O[1] % 360 * Ze, f = O.length > 2 ? O[2] % 360 * Ze : 0, q()) : [l * yr, c * yr, f * yr];
15742
15735
  }, D.precision = function(O) {
15743
15736
  return arguments.length ? (b = Va(z, S = O * O), rt()) : _o(S);
15744
15737
  }, D.fitExtent = function(O, Y) {
15745
15738
  return Gu(D, O, Y);
15746
15739
  }, D.fitSize = function(O, Y) {
15747
- return Qc(D, O, Y);
15740
+ return Kc(D, O, Y);
15748
15741
  };
15749
15742
  function q() {
15750
- g = Du(h = Fc(l, c, f), t);
15743
+ g = Du(h = Ac(l, c, f), t);
15751
15744
  var O = t(a, u);
15752
15745
  return o = n - O[0] * e, s = i + O[1] * e, rt();
15753
15746
  }
@@ -15758,7 +15751,7 @@ function nf(r) {
15758
15751
  return t = r.apply(this, arguments), D.invert = t.invert && R, q();
15759
15752
  };
15760
15753
  }
15761
- function rf(r) {
15754
+ function nf(r) {
15762
15755
  return function(t, e) {
15763
15756
  var n = wt(t), i = wt(e), o = r(n * i);
15764
15757
  return [
@@ -15767,7 +15760,7 @@ function rf(r) {
15767
15760
  ];
15768
15761
  };
15769
15762
  }
15770
- function of(r) {
15763
+ function rf(r) {
15771
15764
  return function(t, e) {
15772
15765
  var n = _o(t * t + e * e), i = r(n), o = Lt(i), s = wt(i);
15773
15766
  return [
@@ -15776,20 +15769,20 @@ function of(r) {
15776
15769
  ];
15777
15770
  };
15778
15771
  }
15779
- var zu = rf(function(r) {
15772
+ var zu = nf(function(r) {
15780
15773
  return (r = Ou(r)) && r / Lt(r);
15781
15774
  });
15782
- zu.invert = of(function(r) {
15775
+ zu.invert = rf(function(r) {
15783
15776
  return r;
15784
15777
  });
15785
- function sf() {
15786
- return ef(zu).scale(79.4188).clipAngle(180 - 1e-3);
15778
+ function of() {
15779
+ return tf(zu).scale(79.4188).clipAngle(180 - 1e-3);
15787
15780
  }
15788
15781
  function Ua(r, t) {
15789
15782
  return [r, t];
15790
15783
  }
15791
15784
  Ua.invert = Ua;
15792
- function af(r, t, e) {
15785
+ function sf(r, t, e) {
15793
15786
  e = e || {};
15794
15787
  var n = e.units || "kilometers", i = e.steps || 8;
15795
15788
  if (!r)
@@ -15828,10 +15821,10 @@ function Ro(r, t, e, n) {
15828
15821
  d && s.push(d);
15829
15822
  }), Ns(s);
15830
15823
  }
15831
- var a = uf(o), u = {
15824
+ var a = af(o), u = {
15832
15825
  type: o.type,
15833
15826
  coordinates: Uu(o.coordinates, a)
15834
- }, l = new zs(), c = l.read(u), f = hc(gc(t, e), "meters"), h = Bt.bufferOp(c, f, n), g = new gu();
15827
+ }, l = new zs(), c = l.read(u), f = lc(cc(t, e), "meters"), h = Bt.bufferOp(c, f, n), g = new gu();
15835
15828
  if (h = g.write(h), !Vu(h.coordinates)) {
15836
15829
  var p = {
15837
15830
  type: h.type,
@@ -15853,9 +15846,16 @@ function qu(r, t) {
15853
15846
  return qu(e, t);
15854
15847
  });
15855
15848
  }
15856
- function uf(r) {
15857
- var t = vc(r).geometry.coordinates, e = [-t[0], -t[1]];
15858
- return sf().rotate(e).scale(me);
15849
+ function af(r) {
15850
+ var t = dc(r).geometry.coordinates, e = [-t[0], -t[1]];
15851
+ return of().rotate(e).scale(me);
15852
+ }
15853
+ function uf(r, t) {
15854
+ var e = Mo(r), n = Mo(t), i = r.properties || {}, o = Za.difference(
15855
+ e.coordinates,
15856
+ n.coordinates
15857
+ );
15858
+ return o.length === 0 ? null : o.length === 1 ? tu(o[0], i) : eu(o, i);
15859
15859
  }
15860
15860
  function qa(r) {
15861
15861
  let t;
@@ -15863,7 +15863,7 @@ function qa(r) {
15863
15863
  t && e[0] - t[0] >= 180 ? e[0] -= 360 : t && e[0] - t[0] < -180 && (e[0] += 360), t = e;
15864
15864
  }
15865
15865
  function Xa(r, t) {
15866
- const e = dc(
15866
+ const e = uf(
15867
15867
  {
15868
15868
  type: "Polygon",
15869
15869
  coordinates: [
@@ -15881,7 +15881,7 @@ function Xa(r, t) {
15881
15881
  if (!e)
15882
15882
  return;
15883
15883
  e.properties = { isMask: "y" };
15884
- const n = af(r, 0);
15884
+ const n = sf(r, 0);
15885
15885
  if (n.geometry.type === "Polygon")
15886
15886
  for (const i of n.geometry.coordinates)
15887
15887
  qa(i);
@@ -15952,7 +15952,7 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15952
15952
  if (!t)
15953
15953
  throw new Error();
15954
15954
  const I = document.createElement("div");
15955
- return _ && I.classList.add("marker-interactive"), new Dl({
15955
+ return _ && I.classList.add("marker-interactive"), new pc({
15956
15956
  props: { displayIn: "maplibre" },
15957
15957
  target: I
15958
15958
  }), new t.Marker({ element: I, offset: [1, -13] });
@@ -15998,7 +15998,7 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
15998
15998
  if (S.length > 0) {
15999
15999
  let b = S.pop();
16000
16000
  for (const A of S)
16001
- b = pc(b, A);
16001
+ b = fc(b, A);
16002
16002
  Xa({ ...I, geometry: b }, C), x = !0;
16003
16003
  } else {
16004
16004
  const b = I.geometry.geometries.filter(
@@ -16049,13 +16049,13 @@ function lf(r, t, e = !0, n = !0, i = {}, o = {}, s = {
16049
16049
  }
16050
16050
  };
16051
16051
  }
16052
- var En, mr;
16052
+ var En, _r;
16053
16053
  class hf extends EventTarget {
16054
16054
  constructor(e = {}) {
16055
16055
  super();
16056
16056
  ls(this, En, void 0);
16057
- ls(this, mr, void 0);
16058
- Co(this, mr, e);
16057
+ ls(this, _r, void 0);
16058
+ Co(this, _r, e);
16059
16059
  }
16060
16060
  onAdd(e) {
16061
16061
  const n = document.createElement("div");
@@ -16066,7 +16066,7 @@ class hf extends EventTarget {
16066
16066
  flyTo: s,
16067
16067
  fullGeometryStyle: a,
16068
16068
  ...u
16069
- } = _n(this, mr), l = typeof s == "boolean" ? {} : s, c = {};
16069
+ } = _n(this, _r), l = typeof s == "boolean" ? {} : s, c = {};
16070
16070
  if ("getSdkConfig" in e && typeof e.getSdkConfig == "function") {
16071
16071
  const { primaryLanguage: g, apiKey: p } = e.getSdkConfig();
16072
16072
  c.apiKey = p;
@@ -16076,7 +16076,7 @@ class hf extends EventTarget {
16076
16076
  const h = {
16077
16077
  mapController: lf(
16078
16078
  e,
16079
- sl ?? ol ?? _n(this, mr).maplibregl,
16079
+ ol ?? sl ?? _n(this, _r).maplibregl,
16080
16080
  i,
16081
16081
  o,
16082
16082
  l,
@@ -16091,7 +16091,7 @@ class hf extends EventTarget {
16091
16091
  };
16092
16092
  if (!h.apiKey)
16093
16093
  throw new Error("no apiKey provided");
16094
- Co(this, En, new Ul({ target: n, props: h }));
16094
+ Co(this, En, new Gl({ target: n, props: h }));
16095
16095
  for (const g of [
16096
16096
  "select",
16097
16097
  "pick",
@@ -16107,7 +16107,7 @@ class hf extends EventTarget {
16107
16107
  }
16108
16108
  setOptions(e) {
16109
16109
  var l;
16110
- Co(this, mr, e);
16110
+ Co(this, _r, e);
16111
16111
  const {
16112
16112
  maplibregl: n,
16113
16113
  marker: i,
@@ -16115,7 +16115,7 @@ class hf extends EventTarget {
16115
16115
  flyTo: s,
16116
16116
  fullGeometryStyle: a,
16117
16117
  ...u
16118
- } = _n(this, mr);
16118
+ } = _n(this, _r);
16119
16119
  (l = _n(this, En)) == null || l.$set(u);
16120
16120
  }
16121
16121
  setQuery(e, n = !0) {
@@ -16139,7 +16139,7 @@ class hf extends EventTarget {
16139
16139
  (e = _n(this, En)) == null || e.$destroy();
16140
16140
  }
16141
16141
  }
16142
- En = new WeakMap(), mr = new WeakMap();
16142
+ En = new WeakMap(), _r = new WeakMap();
16143
16143
  export {
16144
16144
  hf as GeocodingControl,
16145
16145
  lf as createMaplibreglMapController