@maptiler/geocoding-control 2.1.4 → 2.1.6

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.
Files changed (50) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +51 -34
  2. package/leaflet-controller.js +1 -1
  3. package/leaflet-controller.js.map +1 -1
  4. package/leaflet-controller.umd.js +1 -1
  5. package/leaflet-controller.umd.js.map +1 -1
  6. package/leaflet.js +161 -161
  7. package/leaflet.js.map +1 -1
  8. package/leaflet.umd.js +2 -2
  9. package/leaflet.umd.js.map +1 -1
  10. package/maplibregl-controller.js +29 -29
  11. package/maplibregl-controller.js.map +1 -1
  12. package/maplibregl-controller.umd.js +1 -1
  13. package/maplibregl-controller.umd.js.map +1 -1
  14. package/maplibregl.d.ts +51 -34
  15. package/maplibregl.js +1198 -1196
  16. package/maplibregl.js.map +1 -1
  17. package/maplibregl.umd.js +5 -5
  18. package/maplibregl.umd.js.map +1 -1
  19. package/maptilersdk.d.ts +51 -34
  20. package/maptilersdk.js +1199 -1197
  21. package/maptilersdk.js.map +1 -1
  22. package/maptilersdk.umd.js +5 -5
  23. package/maptilersdk.umd.js.map +1 -1
  24. package/openlayers-controller.js +35 -35
  25. package/openlayers-controller.js.map +1 -1
  26. package/openlayers-controller.umd.js +1 -1
  27. package/openlayers-controller.umd.js.map +1 -1
  28. package/openlayers.js +3 -3
  29. package/openlayers.js.map +1 -1
  30. package/openlayers.umd.js +1 -1
  31. package/openlayers.umd.js.map +1 -1
  32. package/package.json +11 -11
  33. package/react.js +2 -2
  34. package/react.js.map +1 -1
  35. package/react.umd.js +1 -1
  36. package/react.umd.js.map +1 -1
  37. package/svelte/GeocodingControl.svelte +4 -2
  38. package/svelte/GeocodingControl.svelte.d.ts +1 -1
  39. package/svelte/MapLibreBasedGeocodingControl.d.ts +51 -34
  40. package/svelte/MapLibreBasedGeocodingControl.js +4 -0
  41. package/svelte/info.json +1 -1
  42. package/svelte/leaflet-controller.js +1 -1
  43. package/svelte/maplibregl-controller.js +1 -1
  44. package/svelte/maplibregl.d.ts +51 -34
  45. package/svelte/maptilersdk.d.ts +51 -34
  46. package/svelte/openlayers-controller.js +1 -1
  47. package/vanilla.js +2 -2
  48. package/vanilla.js.map +1 -1
  49. package/vanilla.umd.js +1 -1
  50. package/vanilla.umd.js.map +1 -1
package/leaflet.js CHANGED
@@ -230,7 +230,7 @@ function ar(i, e) {
230
230
  e.delete(i.key);
231
231
  });
232
232
  }
233
- function fr(i, e, t, n, r, u, a, o, g, c, L, _) {
233
+ function fr(i, e, t, n, r, u, a, o, g, c, E, _) {
234
234
  let C = i.length, M = u.length, N = C;
235
235
  const P = {};
236
236
  for (; N--; ) P[i[N].key] = N;
@@ -242,11 +242,11 @@ function fr(i, e, t, n, r, u, a, o, g, c, L, _) {
242
242
  }
243
243
  const D = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
244
244
  function V(G) {
245
- oe(G, 1), G.m(o, L), a.set(G.key, G), L = G.first, M--;
245
+ oe(G, 1), G.m(o, E), a.set(G.key, G), E = G.first, M--;
246
246
  }
247
247
  for (; C && M; ) {
248
248
  const G = R[M - 1], s = i[C - 1], l = G.key, f = s.key;
249
- G === s ? (L = G.first, C--, M--) : k.has(f) ? !a.has(l) || D.has(l) ? V(G) : H.has(f) ? C-- : S.get(l) > S.get(f) ? (H.add(l), V(G)) : (D.add(f), C--) : (g(s, a), C--);
249
+ G === s ? (E = G.first, C--, M--) : k.has(f) ? !a.has(l) || D.has(l) ? V(G) : H.has(f) ? C-- : S.get(l) > S.get(f) ? (H.add(l), V(G)) : (D.add(f), C--) : (g(s, a), C--);
250
250
  }
251
251
  for (; C--; ) {
252
252
  const G = i[C];
@@ -297,11 +297,11 @@ function $e(i, e, t, n, r, u, a = null, o = [-1]) {
297
297
  root: e.target || g.$$.root
298
298
  };
299
299
  a && a(c.root);
300
- let L = !1;
300
+ let E = !1;
301
301
  if (c.ctx = t ? t(i, e.props || {}, (_, C, ...M) => {
302
302
  const N = M.length ? M[0] : C;
303
- return c.ctx && r(c.ctx[_], c.ctx[_] = N) && (!c.skip_bound && c.bound[_] && c.bound[_](N), L && cr(i, _)), C;
304
- }) : [], c.update(), L = !0, He(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
303
+ return c.ctx && r(c.ctx[_], c.ctx[_] = N) && (!c.skip_bound && c.bound[_] && c.bound[_](N), E && cr(i, _)), C;
304
+ }) : [], c.update(), E = !0, He(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
305
305
  if (e.hydrate) {
306
306
  const _ = tr(e.target);
307
307
  c.fragment && c.fragment.l(_), _.forEach($);
@@ -821,7 +821,7 @@ function Ni(i) {
821
821
  };
822
822
  }
823
823
  function Sr(i) {
824
- let e, t, n, r, u, a, o, g, c, L = (
824
+ let e, t, n, r, u, a, o, g, c, E = (
825
825
  /*isReverse*/
826
826
  (i[8] ? (
827
827
  /*feature*/
@@ -872,7 +872,7 @@ function Sr(i) {
872
872
  let s = G(i, -1), l = s(i), f = M && Ni(i);
873
873
  return {
874
874
  c() {
875
- e = Q("li"), l.c(), a = Le(), o = Q("span"), g = Q("span"), c = Q("span"), _ = Xe(L), C = Le(), f && f.c(), N = Le(), P = Q("span"), k = Xe(R), x(c, "class", "primary svelte-w9y5n9"), x(g, "class", "svelte-w9y5n9"), x(P, "class", "line2 svelte-w9y5n9"), x(o, "class", "texts svelte-w9y5n9"), x(e, "tabindex", "-1"), x(e, "role", "option"), x(e, "aria-selected", S = /*style*/
875
+ e = Q("li"), l.c(), a = Le(), o = Q("span"), g = Q("span"), c = Q("span"), _ = Xe(E), C = Le(), f && f.c(), N = Le(), P = Q("span"), k = Xe(R), x(c, "class", "primary svelte-w9y5n9"), x(g, "class", "svelte-w9y5n9"), x(P, "class", "line2 svelte-w9y5n9"), x(o, "class", "texts svelte-w9y5n9"), x(e, "tabindex", "-1"), x(e, "role", "option"), x(e, "aria-selected", S = /*style*/
876
876
  i[1] === "selected"), x(e, "aria-checked", O = /*style*/
877
877
  i[1] === "picked"), x(e, "class", D = Dt(
878
878
  /*style*/
@@ -903,14 +903,14 @@ function Sr(i) {
903
903
  },
904
904
  p(m, [h]) {
905
905
  s === (s = G(m, h)) && l ? l.p(m, h) : (l.d(1), l = s(m), l && (l.c(), l.m(e, a))), h & /*isReverse, feature*/
906
- 257 && L !== (L = /*isReverse*/
906
+ 257 && E !== (E = /*isReverse*/
907
907
  (m[8] ? (
908
908
  /*feature*/
909
909
  m[0].place_name
910
910
  ) : (
911
911
  /*feature*/
912
912
  m[0].place_name.replace(/,.*/, "")
913
- )) + "") && _t(_, L), h & /*showPlaceType, feature, imageUrl, isReverse*/
913
+ )) + "") && _t(_, E), h & /*showPlaceType, feature, imageUrl, isReverse*/
914
914
  293 && (M = /*showPlaceType*/
915
915
  m[2] === "always" || /*showPlaceType*/
916
916
  m[2] !== "never" && !/*feature*/
@@ -945,11 +945,11 @@ function Sr(i) {
945
945
  const an = typeof devicePixelRatio > "u" ? 1 : devicePixelRatio > 1.25, oi = an ? "@2x" : "", Se = an ? 2 : 1;
946
946
  let Oe, Ot;
947
947
  function xr(i, e, t) {
948
- let n, r, u, { feature: a } = e, { style: o = "default" } = e, { showPlaceType: g } = e, { missingIconsCache: c } = e, { iconsBaseUrl: L } = e;
948
+ let n, r, u, { feature: a } = e, { style: o = "default" } = e, { showPlaceType: g } = e, { missingIconsCache: c } = e, { iconsBaseUrl: E } = e;
949
949
  const _ = sn();
950
950
  let C, M, N, P;
951
951
  function R() {
952
- Ot ?? (Ot = fetch(`${L}sprite${oi}.json`).then((s) => s.json()).then((s) => {
952
+ Ot ?? (Ot = fetch(`${E}sprite${oi}.json`).then((s) => s.json()).then((s) => {
953
953
  Oe = s;
954
954
  }).catch(() => {
955
955
  Oe = null;
@@ -965,7 +965,7 @@ function xr(i, e, t) {
965
965
  do {
966
966
  if (P--, t(4, C = n == null ? void 0 : n[P]), t(6, N = C ? Oe == null ? void 0 : Oe.icons[C] : void 0), N)
967
967
  break;
968
- t(5, M = C ? L + C.replace(/ /g, "_") + ".svg" : void 0);
968
+ t(5, M = C ? E + C.replace(/ /g, "_") + ".svg" : void 0);
969
969
  } while (P > -1 && (!M || c.has(M)));
970
970
  }
971
971
  function D(s) {
@@ -975,7 +975,7 @@ function xr(i, e, t) {
975
975
  document.activeElement !== s.target && _("select", void 0);
976
976
  };
977
977
  return i.$$set = (s) => {
978
- "feature" in s && t(0, a = s.feature), "style" in s && t(1, o = s.style), "showPlaceType" in s && t(2, g = s.showPlaceType), "missingIconsCache" in s && t(11, c = s.missingIconsCache), "iconsBaseUrl" in s && t(3, L = s.iconsBaseUrl);
978
+ "feature" in s && t(0, a = s.feature), "style" in s && t(1, o = s.style), "showPlaceType" in s && t(2, g = s.showPlaceType), "missingIconsCache" in s && t(11, c = s.missingIconsCache), "iconsBaseUrl" in s && t(3, E = s.iconsBaseUrl);
979
979
  }, i.$$.update = () => {
980
980
  var s, l, f, m, h;
981
981
  i.$$.dirty & /*feature*/
@@ -987,7 +987,7 @@ function xr(i, e, t) {
987
987
  a,
988
988
  o,
989
989
  g,
990
- L,
990
+ E,
991
991
  C,
992
992
  M,
993
993
  N,
@@ -1197,16 +1197,16 @@ function Dr(i) {
1197
1197
  const e = this.decimalCoordinates.split(",").map((M) => Number(M.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), u = Math.abs(n), a = t > 0 ? "N" : "S", o = n > 0 ? "E" : "W";
1198
1198
  let g;
1199
1199
  i == "DD" && (g = `${r}° ${a}, ${u}° ${o}`);
1200
- const c = Math.floor(r), L = Math.floor(u), _ = (r - c) * 60, C = (u - L) * 60;
1200
+ const c = Math.floor(r), E = Math.floor(u), _ = (r - c) * 60, C = (u - E) * 60;
1201
1201
  if (i == "DM") {
1202
1202
  let M = Ii(_, 3).toFixed(3).padStart(6, "0"), N = Ii(C, 3).toFixed(3).padStart(6, "0");
1203
- M.endsWith(".000") && N.endsWith(".000") && (M = M.replace(/\.000$/, ""), N = N.replace(/\.000$/, "")), g = `${c}° ${M}' ${a}, ${L}° ${N}' ${o}`;
1203
+ M.endsWith(".000") && N.endsWith(".000") && (M = M.replace(/\.000$/, ""), N = N.replace(/\.000$/, "")), g = `${c}° ${M}' ${a}, ${E}° ${N}' ${o}`;
1204
1204
  }
1205
1205
  if (i == "DMS") {
1206
1206
  const M = Math.floor(_), N = Math.floor(C);
1207
1207
  let P = ((_ - M) * 60).toFixed(1).padStart(4, "0"), R = ((C - N) * 60).toFixed(1).padStart(4, "0");
1208
1208
  const k = M.toString().padStart(2, "0"), S = N.toString().padStart(2, "0");
1209
- P.endsWith(".0") && R.endsWith(".0") && (P = P.replace(/\.0$/, ""), R = R.replace(/\.0$/, "")), g = `${c}° ${k}' ${P}" ${a}, ${L}° ${S}' ${R}" ${o}`;
1209
+ P.endsWith(".0") && R.endsWith(".0") && (P = P.replace(/\.0$/, ""), R = R.replace(/\.0$/, "")), g = `${c}° ${k}' ${P}" ${a}, ${E}° ${S}' ${R}" ${o}`;
1210
1210
  }
1211
1211
  return g;
1212
1212
  } else
@@ -1265,23 +1265,23 @@ function hi(i, e) {
1265
1265
  t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
1266
1266
  let c = /S|SOUTH/i;
1267
1267
  c.test(r) && t > 0 && (t = -1 * t), c = /W|WEST/i, c.test(u) && n > 0 && (n = -1 * n);
1268
- const L = o[0].trim();
1268
+ const E = o[0].trim();
1269
1269
  let _, C;
1270
- const M = /[,/;\u0020]/g, N = L.match(M);
1270
+ const M = /[,/;\u0020]/g, N = E.match(M);
1271
1271
  if (N == null) {
1272
1272
  const k = Math.floor(i.length / 2);
1273
- _ = L.substring(0, k).trim(), C = L.substring(k).trim();
1273
+ _ = E.substring(0, k).trim(), C = E.substring(k).trim();
1274
1274
  } else {
1275
1275
  let k;
1276
1276
  N.length % 2 == 1 ? k = Math.floor(N.length / 2) : k = N.length / 2 - 1;
1277
1277
  let S = 0;
1278
1278
  if (k == 0)
1279
- S = L.indexOf(N[0]), _ = L.substring(0, S).trim(), C = L.substring(S + 1).trim();
1279
+ S = E.indexOf(N[0]), _ = E.substring(0, S).trim(), C = E.substring(S + 1).trim();
1280
1280
  else {
1281
1281
  let O = 0, D = 0;
1282
1282
  for (; O <= k; )
1283
- S = L.indexOf(N[O], D), D = S + 1, O++;
1284
- _ = L.substring(0, S).trim(), C = L.substring(S + 1).trim();
1283
+ S = E.indexOf(N[O], D), D = S + 1, O++;
1284
+ _ = E.substring(0, S).trim(), C = E.substring(S + 1).trim();
1285
1285
  }
1286
1286
  }
1287
1287
  const P = _.split(".");
@@ -1293,7 +1293,7 @@ function hi(i, e) {
1293
1293
  if (/^\d+$/.test(_) || /^\d+$/.test(C))
1294
1294
  throw new Error("degree only coordinate/s provided");
1295
1295
  return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
1296
- verbatimCoordinates: L,
1296
+ verbatimCoordinates: E,
1297
1297
  verbatimLatitude: _,
1298
1298
  verbatimLongitude: C,
1299
1299
  decimalLatitude: t,
@@ -1314,11 +1314,11 @@ function yt(i) {
1314
1314
  return !1;
1315
1315
  const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
1316
1316
  for (let u = 0; u < r; u++) {
1317
- const a = e[u], o = e[u + r], g = t.test(a) && t.test(o), c = n.test(a) && n.test(o), L = a == o;
1317
+ const a = e[u], o = e[u + r], g = t.test(a) && t.test(o), c = n.test(a) && n.test(o), E = a == o;
1318
1318
  if (!(a == null && o == null)) {
1319
1319
  if (a == null || o == null)
1320
1320
  return !1;
1321
- if (g || c || L)
1321
+ if (g || c || E)
1322
1322
  continue;
1323
1323
  return !1;
1324
1324
  }
@@ -1805,8 +1805,8 @@ function Yr(i) {
1805
1805
  c[97].address : "")
1806
1806
  );
1807
1807
  for (let c = 0; c < o.length; c += 1) {
1808
- let L = Gi(i, o, c), _ = g(L);
1809
- n.set(_, t[c] = zi(_, L));
1808
+ let E = Gi(i, o, c), _ = g(E);
1809
+ n.set(_, t[c] = zi(_, E));
1810
1810
  }
1811
1811
  return {
1812
1812
  c() {
@@ -1815,8 +1815,8 @@ function Yr(i) {
1815
1815
  t[c].c();
1816
1816
  x(e, "class", "options svelte-bz0zu3"), x(e, "role", "listbox");
1817
1817
  },
1818
- m(c, L) {
1819
- te(c, e, L);
1818
+ m(c, E) {
1819
+ te(c, e, E);
1820
1820
  for (let _ = 0; _ < t.length; _ += 1)
1821
1821
  t[_] && t[_].m(e, null);
1822
1822
  r = !0, u || (a = [
@@ -1840,29 +1840,29 @@ function Yr(i) {
1840
1840
  )
1841
1841
  ], u = !0);
1842
1842
  },
1843
- p(c, L) {
1844
- L[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1843
+ p(c, E) {
1844
+ E[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1845
1845
  102823936 && (o = Ci(
1846
1846
  /*listFeatures*/
1847
1847
  c[13]
1848
- ), It(), t = fr(t, L, g, 1, c, o, n, e, ar, zi, null, Gi), Bt());
1848
+ ), It(), t = fr(t, E, g, 1, c, o, n, e, ar, zi, null, Gi), Bt());
1849
1849
  },
1850
1850
  i(c) {
1851
1851
  if (!r) {
1852
- for (let L = 0; L < o.length; L += 1)
1853
- oe(t[L]);
1852
+ for (let E = 0; E < o.length; E += 1)
1853
+ oe(t[E]);
1854
1854
  r = !0;
1855
1855
  }
1856
1856
  },
1857
1857
  o(c) {
1858
- for (let L = 0; L < t.length; L += 1)
1859
- ce(t[L]);
1858
+ for (let E = 0; E < t.length; E += 1)
1859
+ ce(t[E]);
1860
1860
  r = !1;
1861
1861
  },
1862
1862
  d(c) {
1863
1863
  c && $(e);
1864
- for (let L = 0; L < t.length; L += 1)
1865
- t[L].d();
1864
+ for (let E = 0; E < t.length; E += 1)
1865
+ t[E].d();
1866
1866
  u = !1, He(a);
1867
1867
  }
1868
1868
  };
@@ -1916,7 +1916,7 @@ function Qr(i) {
1916
1916
  };
1917
1917
  }
1918
1918
  function Jr(i) {
1919
- let e, t, n, r, u, a, o, g, c, L, _;
1919
+ let e, t, n, r, u, a, o, g, c, E, _;
1920
1920
  return t = new un({}), g = new ln({}), {
1921
1921
  c() {
1922
1922
  e = Q("div"), Qe(t.$$.fragment), n = Le(), r = Q("div"), u = Xe(
@@ -1925,12 +1925,12 @@ function Jr(i) {
1925
1925
  ), a = Le(), o = Q("button"), Qe(g.$$.fragment), x(r, "class", "svelte-bz0zu3"), x(o, "class", "svelte-bz0zu3"), x(e, "class", "error svelte-bz0zu3");
1926
1926
  },
1927
1927
  m(C, M) {
1928
- te(C, e, M), qe(t, e, null), Z(e, n), Z(e, r), Z(r, u), Z(e, a), Z(e, o), qe(g, o, null), c = !0, L || (_ = fe(
1928
+ te(C, e, M), qe(t, e, null), Z(e, n), Z(e, r), Z(r, u), Z(e, a), Z(e, o), qe(g, o, null), c = !0, E || (_ = fe(
1929
1929
  o,
1930
1930
  "click",
1931
1931
  /*click_handler_4*/
1932
1932
  i[80]
1933
- ), L = !0);
1933
+ ), E = !0);
1934
1934
  },
1935
1935
  p(C, M) {
1936
1936
  (!c || M[0] & /*errorMessage*/
@@ -1947,7 +1947,7 @@ function Jr(i) {
1947
1947
  ce(t.$$.fragment, C), ce(g.$$.fragment, C), c = !1;
1948
1948
  },
1949
1949
  d(C) {
1950
- C && $(e), Ze(t), Ze(g), L = !1, _();
1950
+ C && $(e), Ze(t), Ze(g), E = !1, _();
1951
1951
  }
1952
1952
  };
1953
1953
  }
@@ -2012,21 +2012,21 @@ function zi(i, e) {
2012
2012
  p(g, c) {
2013
2013
  var _;
2014
2014
  e = g;
2015
- const L = {};
2015
+ const E = {};
2016
2016
  c[0] & /*listFeatures*/
2017
- 8192 && (L.feature = /*feature*/
2017
+ 8192 && (E.feature = /*feature*/
2018
2018
  e[97]), c[0] & /*showPlaceType*/
2019
- 2048 && (L.showPlaceType = /*showPlaceType*/
2019
+ 2048 && (E.showPlaceType = /*showPlaceType*/
2020
2020
  e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
2021
- 57344 && (L.style = /*selectedItemIndex*/
2021
+ 57344 && (E.style = /*selectedItemIndex*/
2022
2022
  e[15] === /*i*/
2023
2023
  e[99] ? "selected" : (
2024
2024
  /*picked*/
2025
2025
  ((_ = e[14]) == null ? void 0 : _.id) === /*feature*/
2026
2026
  e[97].id ? "picked" : "default"
2027
2027
  )), c[0] & /*iconsBaseUrl*/
2028
- 4096 && (L.iconsBaseUrl = /*iconsBaseUrl*/
2029
- e[12]), n.$set(L);
2028
+ 4096 && (E.iconsBaseUrl = /*iconsBaseUrl*/
2029
+ e[12]), n.$set(E);
2030
2030
  },
2031
2031
  i(g) {
2032
2032
  r || (oe(n.$$.fragment, g), r = !0);
@@ -2040,7 +2040,7 @@ function zi(i, e) {
2040
2040
  };
2041
2041
  }
2042
2042
  function $r(i) {
2043
- let e, t, n, r, u, a, o, g, c, L, _, C, M, N, P, R, k, S, O, D, H, V = !1;
2043
+ let e, t, n, r, u, a, o, g, c, E, _, C, M, N, P, R, k, S, O, D, H, V = !1;
2044
2044
  u = new Ir({}), _ = new ln({});
2045
2045
  let G = (
2046
2046
  /*abortController*/
@@ -2078,7 +2078,7 @@ function $r(i) {
2078
2078
  }
2079
2079
  return ~(R = b(i)) && (k = h[R] = m[R](i)), {
2080
2080
  c() {
2081
- e = Le(), t = Q("form"), n = Q("div"), r = Q("button"), Qe(u.$$.fragment), a = Le(), o = Q("input"), g = Le(), c = Q("div"), L = Q("button"), Qe(_.$$.fragment), C = Le(), G && G.c(), M = Le(), s && s.c(), N = Le(), f && f.c(), P = Le(), k && k.c(), x(r, "class", "search-button svelte-bz0zu3"), x(r, "type", "button"), x(
2081
+ e = Le(), t = Q("form"), n = Q("div"), r = Q("button"), Qe(u.$$.fragment), a = Le(), o = Q("input"), g = Le(), c = Q("div"), E = Q("button"), Qe(_.$$.fragment), C = Le(), G && G.c(), M = Le(), s && s.c(), N = Le(), f && f.c(), P = Le(), k && k.c(), x(r, "class", "search-button svelte-bz0zu3"), x(r, "type", "button"), x(
2082
2082
  o,
2083
2083
  "placeholder",
2084
2084
  /*placeholder*/
@@ -2088,12 +2088,12 @@ function $r(i) {
2088
2088
  "aria-label",
2089
2089
  /*placeholder*/
2090
2090
  i[9]
2091
- ), x(o, "class", "svelte-bz0zu3"), x(L, "type", "button"), x(
2092
- L,
2091
+ ), x(o, "class", "svelte-bz0zu3"), x(E, "type", "button"), x(
2092
+ E,
2093
2093
  "title",
2094
2094
  /*clearButtonTitle*/
2095
2095
  i[3]
2096
- ), x(L, "class", "svelte-bz0zu3"), x(c, "class", "clear-button-container svelte-bz0zu3"), We(
2096
+ ), x(E, "class", "svelte-bz0zu3"), x(c, "class", "clear-button-container svelte-bz0zu3"), We(
2097
2097
  c,
2098
2098
  "displayable",
2099
2099
  /*searchValue*/
@@ -2114,7 +2114,7 @@ function $r(i) {
2114
2114
  o,
2115
2115
  /*searchValue*/
2116
2116
  i[1]
2117
- ), Z(n, g), Z(n, c), Z(c, L), qe(_, L, null), Z(c, C), G && G.m(c, null), Z(n, M), s && s.m(n, null), Z(n, N), f && f.m(n, null), Z(t, P), ~R && h[R].m(t, null), O = !0, D || (H = [
2117
+ ), Z(n, g), Z(n, c), Z(c, E), qe(_, E, null), Z(c, C), G && G.m(c, null), Z(n, M), s && s.m(n, null), Z(n, N), f && f.m(n, null), Z(t, P), ~R && h[R].m(t, null), O = !0, D || (H = [
2118
2118
  fe(
2119
2119
  r,
2120
2120
  "click",
@@ -2164,7 +2164,7 @@ function $r(i) {
2164
2164
  i[77]
2165
2165
  ),
2166
2166
  fe(
2167
- L,
2167
+ E,
2168
2168
  "click",
2169
2169
  /*click_handler_2*/
2170
2170
  i[78]
@@ -2196,7 +2196,7 @@ function $r(i) {
2196
2196
  p[1]
2197
2197
  ), (!O || d[0] & /*clearButtonTitle*/
2198
2198
  8) && x(
2199
- L,
2199
+ E,
2200
2200
  "title",
2201
2201
  /*clearButtonTitle*/
2202
2202
  p[3]
@@ -2286,23 +2286,23 @@ function es(i, e, t) {
2286
2286
  "poi.restaurant": 18,
2287
2287
  "poi.aerodrome": 13
2288
2288
  };
2289
- let { class: c = void 0 } = e, { apiKey: L } = e, { bbox: _ = void 0 } = e, { clearButtonTitle: C = "clear" } = e, { clearOnBlur: M = !1 } = e, { clearListOnPick: N = !1 } = e, { keepListOpen: P = !1 } = e, { collapsed: R = !1 } = e, { country: k = void 0 } = e, { debounceSearch: S = 200 } = e, { enableReverse: O = "never" } = e, { errorMessage: D = "Something went wrong…" } = e, { filter: H = () => !0 } = e, { flyTo: V = !0 } = e, { fuzzyMatch: G = !0 } = e, { language: s = void 0 } = e, { limit: l = void 0 } = e;
2289
+ let { class: c = void 0 } = e, { apiKey: E } = e, { bbox: _ = void 0 } = e, { clearButtonTitle: C = "clear" } = e, { clearOnBlur: M = !1 } = e, { clearListOnPick: N = !1 } = e, { keepListOpen: P = !1 } = e, { collapsed: R = !1 } = e, { country: k = void 0 } = e, { debounceSearch: S = 200 } = e, { enableReverse: O = "never" } = e, { errorMessage: D = "Something went wrong…" } = e, { filter: H = () => !0 } = e, { flyTo: V = !0 } = e, { fuzzyMatch: G = !0 } = e, { language: s = void 0 } = e, { limit: l = void 0 } = e;
2290
2290
  const f = 41415112612;
2291
2291
  let { reverseGeocodingLimit: m = f } = e, { mapController: h = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: d = "Search" } = e, { proximity: y = [{ type: "server-geolocation" }] } = e, { reverseActive: v = O === "always" } = e, { reverseButtonTitle: w = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: B = "if-needed" } = e, { showResultsWhileTyping: q = !0 } = e, { selectFirst: K = !0 } = e, { flyToSelected: ie = !1 } = e, { markerOnSelected: F = !0 } = e, { types: j = void 0 } = e;
2292
2292
  const ue = [];
2293
2293
  let { reverseGeocodingTypes: ze = ue } = e, { exhaustiveReverseGeocoding: tt = !1 } = e, { excludeTypes: it = !1 } = e;
2294
2294
  const pe = void 0;
2295
- let { reverseGeocodingExcludeTypes: Pe = pe } = e, { zoom: he = g } = e, { apiUrl: ae = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: pi = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.4/icons/" } = e, { adjustUrlQuery: Zt = () => {
2295
+ let { reverseGeocodingExcludeTypes: Pe = pe } = e, { zoom: he = g } = e, { apiUrl: ae = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: pi = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.6/icons/" } = e, { adjustUrlQuery: Zt = () => {
2296
2296
  } } = e, { adjustUrl: jt = () => {
2297
2297
  } } = e;
2298
- function Ln(E) {
2299
- Ce.focus(E);
2298
+ function Ln(L) {
2299
+ Ce.focus(L);
2300
2300
  }
2301
2301
  function _n() {
2302
2302
  Ce.blur();
2303
2303
  }
2304
- function yi(E, ne = !0, se = !1) {
2305
- t(1, T = E), ne ? (t(15, Y = -1), vi()) : (wi(void 0, !se, se), setTimeout(() => {
2304
+ function yi(L, ne = !0, se = !1) {
2305
+ t(1, T = L), ne ? (t(15, Y = -1), vi()) : (wi(void 0, !se, se), setTimeout(() => {
2306
2306
  Ce.focus(), Ce.select();
2307
2307
  }));
2308
2308
  }
@@ -2317,30 +2317,30 @@ function es(i, e, t) {
2317
2317
  nr(() => {
2318
2318
  h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setFeatures(void 0, void 0, !1));
2319
2319
  });
2320
- function vi(E) {
2320
+ function vi(L) {
2321
2321
  if (t(17, Ue = !1), lt && (clearTimeout(lt), lt = void 0), Y > -1 && U)
2322
2322
  t(14, W = U[Y]), t(1, T = W.place_type[0] === "reverse" ? W.place_name : W.place_name.replace(/,.*/, "")), t(19, Ae = void 0), t(64, le = void 0), t(15, Y = -1);
2323
2323
  else if (T) {
2324
- const ne = E || !Vt(T);
2324
+ const ne = L || !Vt(T);
2325
2325
  Kt(T, { exact: !0 }).then(() => {
2326
2326
  t(64, le = U), t(14, W = void 0), ne && Mn();
2327
2327
  }).catch((se) => t(19, Ae = se));
2328
2328
  }
2329
2329
  }
2330
- function Vt(E) {
2330
+ function Vt(L) {
2331
2331
  try {
2332
- return Kr(E, 6);
2332
+ return Kr(L, 6);
2333
2333
  } catch {
2334
2334
  return !1;
2335
2335
  }
2336
2336
  }
2337
- async function Kt(E, { byId: ne = !1, exact: se = !1 } = {}) {
2337
+ async function Kt(L, { byId: ne = !1, exact: se = !1 } = {}) {
2338
2338
  var be, Ie, Ke;
2339
2339
  t(19, Ae = void 0), nt == null || nt.abort();
2340
2340
  const ye = new AbortController();
2341
2341
  t(20, nt = ye);
2342
2342
  try {
2343
- const X = Vt(E), dt = new URL(ae + "/" + encodeURIComponent(X ? X.decimalLongitude + "," + X.decimalLatitude : E) + ".json"), _e = dt.searchParams;
2343
+ const X = Vt(L), dt = new URL(ae + "/" + encodeURIComponent(X ? X.decimalLongitude + "," + X.decimalLatitude : L) + ".json"), _e = dt.searchParams;
2344
2344
  s !== void 0 && _e.set("language", Array.isArray(s) ? s.join(",") : s ?? "");
2345
2345
  const [Qt] = (h == null ? void 0 : h.getCenterAndZoom()) ?? [];
2346
2346
  let Be = (be = !X || ze === ue ? j : ze) == null ? void 0 : be.map((de) => typeof de == "string" ? de : Qt === void 0 || (de[0] ?? 0) <= Qt && Qt < (de[1] ?? 1 / 0) ? de[2] : void 0).filter((de) => de !== void 0);
@@ -2351,7 +2351,7 @@ function es(i, e, t) {
2351
2351
  de && _e.set("proximity", de), (se || !q) && _e.set("autocomplete", "false"), _e.set("fuzzyMatch", String(G));
2352
2352
  }
2353
2353
  const gt = m === f ? l : m;
2354
- gt !== void 0 && gt > 1 && (Be == null ? void 0 : Be.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), X ? (gt === 1 || gt !== void 0 && (tt || (Be == null ? void 0 : Be.length) === 1)) && _e.set("limit", String(gt)) : l !== void 0 && _e.set("limit", String(l)), _e.set("key", L), Zt(_e), jt(dt);
2354
+ gt !== void 0 && gt > 1 && (Be == null ? void 0 : Be.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), X ? (gt === 1 || gt !== void 0 && (tt || (Be == null ? void 0 : Be.length) === 1)) && _e.set("limit", String(gt)) : l !== void 0 && _e.set("limit", String(l)), E && _e.set("key", E), Zt(_e), jt(dt);
2355
2355
  const Zn = dt.searchParams.get("types") === "" && dt.searchParams.get("excludeTypes") !== "true", Nt = dt.toString();
2356
2356
  if (Nt === bi) {
2357
2357
  ne ? (N && t(13, U = void 0), t(14, W = Ct[0])) : (t(13, U = Ct), ((Ie = U[Y]) == null ? void 0 : Ie.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1));
@@ -2398,25 +2398,25 @@ function es(i, e, t) {
2398
2398
  var ye;
2399
2399
  if (!(le != null && le.length) || !V)
2400
2400
  return;
2401
- const E = [180, 90, -180, -90], ne = !le.some((be) => !be.matching_text);
2401
+ const L = [180, 90, -180, -90], ne = !le.some((be) => !be.matching_text);
2402
2402
  let se;
2403
2403
  for (const be of le) {
2404
2404
  const Ie = ht(be);
2405
2405
  if (se = se === void 0 ? Ie : Ie === void 0 ? se : Math.max(se, Ie), ne || !be.matching_text)
2406
2406
  for (const Ke of [0, 1, 2, 3])
2407
- E[Ke] = Math[Ke < 2 ? "min" : "max"](E[Ke], ((ye = be.bbox) == null ? void 0 : ye[Ke]) ?? be.center[Ke % 2]);
2407
+ L[Ke] = Math[Ke < 2 ? "min" : "max"](L[Ke], ((ye = be.bbox) == null ? void 0 : ye[Ke]) ?? be.center[Ke % 2]);
2408
2408
  }
2409
- h && le.length > 0 && (W && E[0] === E[2] && E[1] === E[3] ? h.flyTo(W.center, ht(W)) : h.fitBounds(xt(E), 50, se));
2409
+ h && le.length > 0 && (W && L[0] === L[2] && L[1] === L[3] ? h.flyTo(W.center, ht(W)) : h.fitBounds(xt(L), 50, se));
2410
2410
  }
2411
2411
  function Yt() {
2412
2412
  !W || !h || (!W.bbox || W.bbox[0] === W.bbox[2] && W.bbox[1] === W.bbox[3] ? h.flyTo(W.center, ht(W)) : h.fitBounds(xt(W.bbox), 50, ht(W)));
2413
2413
  }
2414
- function ht(E) {
2414
+ function ht(L) {
2415
2415
  var se;
2416
- if (!E.bbox || E.bbox[0] !== E.bbox[2] && E.bbox[1] !== E.bbox[3])
2416
+ if (!L.bbox || L.bbox[0] !== L.bbox[2] && L.bbox[1] !== L.bbox[3])
2417
2417
  return;
2418
- const ne = E.id.replace(/\..*/, "");
2419
- return (Array.isArray((se = E.properties) == null ? void 0 : se.categories) ? E.properties.categories.reduce(
2418
+ const ne = L.id.replace(/\..*/, "");
2419
+ return (Array.isArray((se = L.properties) == null ? void 0 : se.categories) ? L.properties.categories.reduce(
2420
2420
  (ye, be) => {
2421
2421
  const Ie = he[ne + "." + be];
2422
2422
  return ye === void 0 ? Ie : Ie === void 0 ? ye : Math.max(ye, Ie);
@@ -2424,16 +2424,16 @@ function es(i, e, t) {
2424
2424
  void 0
2425
2425
  ) : void 0) ?? he[ne];
2426
2426
  }
2427
- function Cn(E) {
2428
- t(0, v = O === "always"), t(13, U = void 0), t(14, W = void 0), t(15, Y = -1), yi(E[1].toFixed(6) + ", " + Br(E[0], [-180, 180], !0).toFixed(6), !1, !0);
2427
+ function Cn(L) {
2428
+ t(0, v = O === "always"), t(13, U = void 0), t(14, W = void 0), t(15, Y = -1), yi(L[1].toFixed(6) + ", " + Br(L[0], [-180, 180], !0).toFixed(6), !1, !0);
2429
2429
  }
2430
- function Nn(E) {
2430
+ function Nn(L) {
2431
2431
  if (!U)
2432
2432
  return;
2433
- let ne = E.key === "ArrowDown" ? 1 : E.key === "ArrowUp" ? -1 : 0;
2434
- ne && (Ce.focus(), t(17, Ue = !0), E.preventDefault(), W && Y === -1 && t(15, Y = U.findIndex((se) => se.id === (W == null ? void 0 : W.id))), Y === (W || K ? 0 : -1) && ne === -1 && t(15, Y = U.length), t(15, Y += ne), Y >= U.length && t(15, Y = -1), Y < 0 && (W || K) && t(15, Y = 0));
2433
+ let ne = L.key === "ArrowDown" ? 1 : L.key === "ArrowUp" ? -1 : 0;
2434
+ ne && (Ce.focus(), t(17, Ue = !0), L.preventDefault(), W && Y === -1 && t(15, Y = U.findIndex((se) => se.id === (W == null ? void 0 : W.id))), Y === (W || K ? 0 : -1) && ne === -1 && t(15, Y = U.length), t(15, Y += ne), Y >= U.length && t(15, Y = -1), Y < 0 && (W || K) && t(15, Y = 0));
2435
2435
  }
2436
- function wi(E, ne = !0, se = !1) {
2436
+ function wi(L, ne = !0, se = !1) {
2437
2437
  if (t(19, Ae = void 0), t(14, W = void 0), t(17, Ue = !0), q || se) {
2438
2438
  if (lt && clearTimeout(lt), T.length < b)
2439
2439
  return;
@@ -2447,19 +2447,19 @@ function es(i, e, t) {
2447
2447
  } else
2448
2448
  t(13, U = void 0), t(19, Ae = void 0);
2449
2449
  }
2450
- function Xt(E) {
2451
- W && (W == null ? void 0 : W.id) === (E == null ? void 0 : E.id) ? Yt() : (t(14, W = E), t(1, T = E.place_name));
2450
+ function Xt(L) {
2451
+ W && (W == null ? void 0 : W.id) === (L == null ? void 0 : L.id) ? Yt() : (t(14, W = L), t(1, T = L.place_name));
2452
2452
  }
2453
- function Ei(E) {
2454
- t(15, Y = E);
2453
+ function Ei(L) {
2454
+ t(15, Y = L);
2455
2455
  }
2456
2456
  function kn() {
2457
2457
  (!K || W) && t(15, Y = -1), ie && Yt();
2458
2458
  }
2459
2459
  const On = () => Ce.focus();
2460
- function Rn(E) {
2461
- ni[E ? "unshift" : "push"](() => {
2462
- Ce = E, t(18, Ce);
2460
+ function Rn(L) {
2461
+ ni[L ? "unshift" : "push"](() => {
2462
+ Ce = L, t(18, Ce);
2463
2463
  });
2464
2464
  }
2465
2465
  function Pn() {
@@ -2467,15 +2467,15 @@ function es(i, e, t) {
2467
2467
  }
2468
2468
  const An = () => t(17, Ue = !0), In = () => t(17, Ue = !1), Bn = () => t(17, Ue = !0), Gn = () => t(14, W = void 0), Wn = () => {
2469
2469
  t(1, T = ""), t(14, W = void 0), Ce.focus();
2470
- }, Dn = () => t(0, v = !v), zn = () => t(19, Ae = void 0), Un = (E) => Ei(E), Fn = (E) => Xt(E), qn = () => {
2470
+ }, Dn = () => t(0, v = !v), zn = () => t(19, Ae = void 0), Un = (L) => Ei(L), Fn = (L) => Xt(L), qn = () => {
2471
2471
  };
2472
- return i.$$set = (E) => {
2473
- "class" in E && t(2, c = E.class), "apiKey" in E && t(29, L = E.apiKey), "bbox" in E && t(30, _ = E.bbox), "clearButtonTitle" in E && t(3, C = E.clearButtonTitle), "clearOnBlur" in E && t(31, M = E.clearOnBlur), "clearListOnPick" in E && t(32, N = E.clearListOnPick), "keepListOpen" in E && t(4, P = E.keepListOpen), "collapsed" in E && t(5, R = E.collapsed), "country" in E && t(33, k = E.country), "debounceSearch" in E && t(34, S = E.debounceSearch), "enableReverse" in E && t(6, O = E.enableReverse), "errorMessage" in E && t(7, D = E.errorMessage), "filter" in E && t(35, H = E.filter), "flyTo" in E && t(36, V = E.flyTo), "fuzzyMatch" in E && t(37, G = E.fuzzyMatch), "language" in E && t(38, s = E.language), "limit" in E && t(39, l = E.limit), "reverseGeocodingLimit" in E && t(40, m = E.reverseGeocodingLimit), "mapController" in E && t(41, h = E.mapController), "minLength" in E && t(42, b = E.minLength), "noResultsMessage" in E && t(8, p = E.noResultsMessage), "placeholder" in E && t(9, d = E.placeholder), "proximity" in E && t(43, y = E.proximity), "reverseActive" in E && t(0, v = E.reverseActive), "reverseButtonTitle" in E && t(10, w = E.reverseButtonTitle), "searchValue" in E && t(1, T = E.searchValue), "pickedResultStyle" in E && t(44, A = E.pickedResultStyle), "showPlaceType" in E && t(11, B = E.showPlaceType), "showResultsWhileTyping" in E && t(45, q = E.showResultsWhileTyping), "selectFirst" in E && t(46, K = E.selectFirst), "flyToSelected" in E && t(47, ie = E.flyToSelected), "markerOnSelected" in E && t(48, F = E.markerOnSelected), "types" in E && t(49, j = E.types), "reverseGeocodingTypes" in E && t(50, ze = E.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in E && t(51, tt = E.exhaustiveReverseGeocoding), "excludeTypes" in E && t(52, it = E.excludeTypes), "reverseGeocodingExcludeTypes" in E && t(53, Pe = E.reverseGeocodingExcludeTypes), "zoom" in E && t(54, he = E.zoom), "apiUrl" in E && t(55, ae = E.apiUrl), "fetchParameters" in E && t(56, J = E.fetchParameters), "iconsBaseUrl" in E && t(12, pi = E.iconsBaseUrl), "adjustUrlQuery" in E && t(57, Zt = E.adjustUrlQuery), "adjustUrl" in E && t(58, jt = E.adjustUrl), "$$scope" in E && t(69, o = E.$$scope);
2472
+ return i.$$set = (L) => {
2473
+ "class" in L && t(2, c = L.class), "apiKey" in L && t(29, E = L.apiKey), "bbox" in L && t(30, _ = L.bbox), "clearButtonTitle" in L && t(3, C = L.clearButtonTitle), "clearOnBlur" in L && t(31, M = L.clearOnBlur), "clearListOnPick" in L && t(32, N = L.clearListOnPick), "keepListOpen" in L && t(4, P = L.keepListOpen), "collapsed" in L && t(5, R = L.collapsed), "country" in L && t(33, k = L.country), "debounceSearch" in L && t(34, S = L.debounceSearch), "enableReverse" in L && t(6, O = L.enableReverse), "errorMessage" in L && t(7, D = L.errorMessage), "filter" in L && t(35, H = L.filter), "flyTo" in L && t(36, V = L.flyTo), "fuzzyMatch" in L && t(37, G = L.fuzzyMatch), "language" in L && t(38, s = L.language), "limit" in L && t(39, l = L.limit), "reverseGeocodingLimit" in L && t(40, m = L.reverseGeocodingLimit), "mapController" in L && t(41, h = L.mapController), "minLength" in L && t(42, b = L.minLength), "noResultsMessage" in L && t(8, p = L.noResultsMessage), "placeholder" in L && t(9, d = L.placeholder), "proximity" in L && t(43, y = L.proximity), "reverseActive" in L && t(0, v = L.reverseActive), "reverseButtonTitle" in L && t(10, w = L.reverseButtonTitle), "searchValue" in L && t(1, T = L.searchValue), "pickedResultStyle" in L && t(44, A = L.pickedResultStyle), "showPlaceType" in L && t(11, B = L.showPlaceType), "showResultsWhileTyping" in L && t(45, q = L.showResultsWhileTyping), "selectFirst" in L && t(46, K = L.selectFirst), "flyToSelected" in L && t(47, ie = L.flyToSelected), "markerOnSelected" in L && t(48, F = L.markerOnSelected), "types" in L && t(49, j = L.types), "reverseGeocodingTypes" in L && t(50, ze = L.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in L && t(51, tt = L.exhaustiveReverseGeocoding), "excludeTypes" in L && t(52, it = L.excludeTypes), "reverseGeocodingExcludeTypes" in L && t(53, Pe = L.reverseGeocodingExcludeTypes), "zoom" in L && t(54, he = L.zoom), "apiUrl" in L && t(55, ae = L.apiUrl), "fetchParameters" in L && t(56, J = L.fetchParameters), "iconsBaseUrl" in L && t(12, pi = L.iconsBaseUrl), "adjustUrlQuery" in L && t(57, Zt = L.adjustUrlQuery), "adjustUrl" in L && t(58, jt = L.adjustUrl), "$$scope" in L && t(69, o = L.$$scope);
2474
2474
  }, i.$$.update = () => {
2475
2475
  if (i.$$.dirty[0] & /*enableReverse*/
2476
2476
  64 && t(0, v = O === "always"), i.$$.dirty[0] & /*picked*/
2477
2477
  16384 | i.$$.dirty[1] & /*pickedResultStyle*/
2478
- 8192 && A !== "marker-only" && W && !W.address && W.geometry.type === "Point" && W.place_type[0] !== "reverse" && Kt(W.id, { byId: !0 }).catch((E) => t(19, Ae = E)), i.$$.dirty[0] & /*picked*/
2478
+ 8192 && A !== "marker-only" && W && !W.address && W.geometry.type === "Point" && W.place_type[0] !== "reverse" && Kt(W.id, { byId: !0 }).catch((L) => t(19, Ae = L)), i.$$.dirty[0] & /*picked*/
2479
2479
  16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
2480
2480
  1058 | i.$$.dirty[2] & /*prevIdToFly*/
2481
2481
  8 && (h && W && W.id !== Ht && V && (Yt(), N && t(13, U = void 0), t(64, le = void 0), t(15, Y = -1)), t(65, Ht = W == null ? void 0 : W.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
@@ -2491,19 +2491,19 @@ function es(i, e, t) {
2491
2491
  4 && le !== U && t(64, le = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2492
2492
  73729 | i.$$.dirty[1] & /*mapController*/
2493
2493
  1024 | i.$$.dirty[2] & /*markedFeatures*/
2494
- 4 && h && h.setEventHandler((E) => {
2495
- switch (E.type) {
2494
+ 4 && h && h.setEventHandler((L) => {
2495
+ switch (L.type) {
2496
2496
  case "mapClick":
2497
- v && Cn(E.coordinates);
2497
+ v && Cn(L.coordinates);
2498
2498
  break;
2499
2499
  case "markerClick":
2500
2500
  {
2501
- const ne = U == null ? void 0 : U.find((se) => se.id === E.id);
2501
+ const ne = U == null ? void 0 : U.find((se) => se.id === L.id);
2502
2502
  ne && Xt(ne);
2503
2503
  }
2504
2504
  break;
2505
2505
  case "markerMouseEnter":
2506
- le && t(15, Y = ut ? (U == null ? void 0 : U.findIndex((ne) => ne.id === E.id)) ?? -1 : -1);
2506
+ le && t(15, Y = ut ? (U == null ? void 0 : U.findIndex((ne) => ne.id === L.id)) ?? -1 : -1);
2507
2507
  break;
2508
2508
  case "markerMouseLeave":
2509
2509
  le && t(15, Y = -1);
@@ -2527,8 +2527,8 @@ function es(i, e, t) {
2527
2527
  4 && le && h && h.setSelectedMarker(Y), i.$$.dirty[0] & /*searchValue*/
2528
2528
  2 | i.$$.dirty[1] & /*mapController*/
2529
2529
  1024 && h) {
2530
- const E = Vt(T);
2531
- h.setReverseMarker(E ? [E.decimalLongitude, E.decimalLatitude] : void 0);
2530
+ const L = Vt(T);
2531
+ h.setReverseMarker(L ? [L.decimalLongitude, L.decimalLatitude] : void 0);
2532
2532
  }
2533
2533
  i.$$.dirty[2] & /*selected*/
2534
2534
  16 && Ve("select", { feature: r }), i.$$.dirty[0] & /*picked*/
@@ -2571,7 +2571,7 @@ function es(i, e, t) {
2571
2571
  Ei,
2572
2572
  kn,
2573
2573
  g,
2574
- L,
2574
+ E,
2575
2575
  _,
2576
2576
  M,
2577
2577
  N,
@@ -2743,14 +2743,14 @@ function fn(i, e, t = {}) {
2743
2743
  }
2744
2744
  function cn(i, e, t) {
2745
2745
  if (i !== null)
2746
- for (var n, r, u, a, o, g, c, L = 0, _ = 0, C, M = i.type, N = M === "FeatureCollection", P = M === "Feature", R = N ? i.features.length : 1, k = 0; k < R; k++) {
2746
+ for (var n, r, u, a, o, g, c, E = 0, _ = 0, C, M = i.type, N = M === "FeatureCollection", P = M === "Feature", R = N ? i.features.length : 1, k = 0; k < R; k++) {
2747
2747
  c = N ? i.features[k].geometry : P ? i.geometry : i, C = c ? c.type === "GeometryCollection" : !1, o = C ? c.geometries.length : 1;
2748
2748
  for (var S = 0; S < o; S++) {
2749
2749
  var O = 0, D = 0;
2750
2750
  if (a = C ? c.geometries[S] : c, a !== null) {
2751
2751
  g = a.coordinates;
2752
2752
  var H = a.type;
2753
- switch (L = 0, H) {
2753
+ switch (E = 0, H) {
2754
2754
  case null:
2755
2755
  break;
2756
2756
  case "Point":
@@ -2782,7 +2782,7 @@ function cn(i, e, t) {
2782
2782
  case "Polygon":
2783
2783
  case "MultiLineString":
2784
2784
  for (n = 0; n < g.length; n++) {
2785
- for (r = 0; r < g[n].length - L; r++) {
2785
+ for (r = 0; r < g[n].length - E; r++) {
2786
2786
  if (e(
2787
2787
  g[n][r],
2788
2788
  _,
@@ -2800,7 +2800,7 @@ function cn(i, e, t) {
2800
2800
  case "MultiPolygon":
2801
2801
  for (n = 0; n < g.length; n++) {
2802
2802
  for (D = 0, r = 0; r < g[n].length; r++) {
2803
- for (u = 0; u < g[n][r].length - L; u++) {
2803
+ for (u = 0; u < g[n][r].length - E; u++) {
2804
2804
  if (e(
2805
2805
  g[n][r][u],
2806
2806
  _,
@@ -2829,15 +2829,15 @@ function cn(i, e, t) {
2829
2829
  }
2830
2830
  }
2831
2831
  function gi(i, e) {
2832
- var t, n, r, u, a, o, g, c, L, _, C = 0, M = i.type === "FeatureCollection", N = i.type === "Feature", P = M ? i.features.length : 1;
2832
+ var t, n, r, u, a, o, g, c, E, _, C = 0, M = i.type === "FeatureCollection", N = i.type === "Feature", P = M ? i.features.length : 1;
2833
2833
  for (t = 0; t < P; t++) {
2834
- for (o = M ? i.features[t].geometry : N ? i.geometry : i, c = M ? i.features[t].properties : N ? i.properties : {}, L = M ? i.features[t].bbox : N ? i.bbox : void 0, _ = M ? i.features[t].id : N ? i.id : void 0, g = o ? o.type === "GeometryCollection" : !1, a = g ? o.geometries.length : 1, r = 0; r < a; r++) {
2834
+ for (o = M ? i.features[t].geometry : N ? i.geometry : i, c = M ? i.features[t].properties : N ? i.properties : {}, E = M ? i.features[t].bbox : N ? i.bbox : void 0, _ = M ? i.features[t].id : N ? i.id : void 0, g = o ? o.type === "GeometryCollection" : !1, a = g ? o.geometries.length : 1, r = 0; r < a; r++) {
2835
2835
  if (u = g ? o.geometries[r] : o, u === null) {
2836
2836
  if (e(
2837
2837
  null,
2838
2838
  C,
2839
2839
  c,
2840
- L,
2840
+ E,
2841
2841
  _
2842
2842
  ) === !1)
2843
2843
  return !1;
@@ -2854,7 +2854,7 @@ function gi(i, e) {
2854
2854
  u,
2855
2855
  C,
2856
2856
  c,
2857
- L,
2857
+ E,
2858
2858
  _
2859
2859
  ) === !1)
2860
2860
  return !1;
@@ -2866,7 +2866,7 @@ function gi(i, e) {
2866
2866
  u.geometries[n],
2867
2867
  C,
2868
2868
  c,
2869
- L,
2869
+ E,
2870
2870
  _
2871
2871
  ) === !1)
2872
2872
  return !1;
@@ -2906,9 +2906,9 @@ function is(i, e) {
2906
2906
  break;
2907
2907
  }
2908
2908
  for (var c = 0; c < t.coordinates.length; c++) {
2909
- var L = t.coordinates[c], _ = {
2909
+ var E = t.coordinates[c], _ = {
2910
2910
  type: g,
2911
- coordinates: L
2911
+ coordinates: E
2912
2912
  };
2913
2913
  if (e(Tt(_, r), n, c) === !1)
2914
2914
  return !1;
@@ -2986,7 +2986,7 @@ function gn(i) {
2986
2986
  }
2987
2987
  var os = rs, ls = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ti = Math.ceil, Te = Math.floor, me = "[BigNumber Error] ", Ui = me + "Number primitive has more than 15 significant digits: ", Ne = 1e14, z = 14, Fi = 9007199254740991, ii = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ye = 1e7, we = 1e9;
2988
2988
  function mn(i) {
2989
- var e, t, n, r = S.prototype = { constructor: S, toString: null, valueOf: null }, u = new S(1), a = 20, o = 4, g = -7, c = 21, L = -1e7, _ = 1e7, C = !1, M = 1, N = 0, P = {
2989
+ var e, t, n, r = S.prototype = { constructor: S, toString: null, valueOf: null }, u = new S(1), a = 20, o = 4, g = -7, c = 21, E = -1e7, _ = 1e7, C = !1, M = 1, N = 0, P = {
2990
2990
  prefix: "",
2991
2991
  groupSize: 3,
2992
2992
  secondaryGroupSize: 0,
@@ -3002,7 +3002,7 @@ function mn(i) {
3002
3002
  if (!(w instanceof S)) return new S(s, l);
3003
3003
  if (l == null) {
3004
3004
  if (s && s._isBigNumber === !0) {
3005
- w.s = s.s, !s.c || s.e > _ ? w.c = w.e = null : s.e < L ? w.c = [w.e = 0] : (w.e = s.e, w.c = s.c.slice());
3005
+ w.s = s.s, !s.c || s.e > _ ? w.c = w.e = null : s.e < E ? w.c = [w.e = 0] : (w.e = s.e, w.c = s.c.slice());
3006
3006
  return;
3007
3007
  }
3008
3008
  if ((d = typeof s == "number") && s * 0 == 0) {
@@ -3048,7 +3048,7 @@ function mn(i) {
3048
3048
  throw Error(Ui + w.s * s);
3049
3049
  if ((b = b - p - 1) > _)
3050
3050
  w.c = w.e = null;
3051
- else if (b < L)
3051
+ else if (b < E)
3052
3052
  w.c = [w.e = 0];
3053
3053
  else {
3054
3054
  if (w.e = b, w.c = [], p = (b + 1) % z, b < 0 && (p += z), p < y) {
@@ -3069,9 +3069,9 @@ function mn(i) {
3069
3069
  if (typeof s == "object") {
3070
3070
  if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], re(f, 0, we, l), a = f), s.hasOwnProperty(l = "ROUNDING_MODE") && (f = s[l], re(f, 0, 8, l), o = f), s.hasOwnProperty(l = "EXPONENTIAL_AT") && (f = s[l], f && f.pop ? (re(f[0], -1e9, 0, l), re(f[1], 0, we, l), g = f[0], c = f[1]) : (re(f, -1e9, we, l), g = -(c = f < 0 ? -f : f))), s.hasOwnProperty(l = "RANGE"))
3071
3071
  if (f = s[l], f && f.pop)
3072
- re(f[0], -1e9, -1, l), re(f[1], 1, we, l), L = f[0], _ = f[1];
3072
+ re(f[0], -1e9, -1, l), re(f[1], 1, we, l), E = f[0], _ = f[1];
3073
3073
  else if (re(f, -1e9, we, l), f)
3074
- L = -(_ = f < 0 ? -f : f);
3074
+ E = -(_ = f < 0 ? -f : f);
3075
3075
  else
3076
3076
  throw Error(me + l + " cannot be zero: " + f);
3077
3077
  if (s.hasOwnProperty(l = "CRYPTO"))
@@ -3099,7 +3099,7 @@ function mn(i) {
3099
3099
  DECIMAL_PLACES: a,
3100
3100
  ROUNDING_MODE: o,
3101
3101
  EXPONENTIAL_AT: [g, c],
3102
- RANGE: [L, _],
3102
+ RANGE: [E, _],
3103
3103
  CRYPTO: C,
3104
3104
  MODULO_MODE: M,
3105
3105
  POW_PRECISION: N,
@@ -3280,7 +3280,7 @@ function mn(i) {
3280
3280
  function H(s, l, f) {
3281
3281
  for (var m = 1, h = l.length; !l[--h]; l.pop()) ;
3282
3282
  for (h = l[0]; h >= 10; h /= 10, m++) ;
3283
- return (f = m + f * z - 1) > _ ? s.c = s.e = null : f < L ? s.c = [s.e = 0] : (s.e = f, s.c = l), s;
3283
+ return (f = m + f * z - 1) > _ ? s.c = s.e = null : f < E ? s.c = [s.e = 0] : (s.e = f, s.c = l), s;
3284
3284
  }
3285
3285
  n = /* @__PURE__ */ function() {
3286
3286
  var s = /^(-?)0([xbo])(?=\w[\w.]*$)/i, l = /^([^.]+)\.$/, f = /^\.([^.]+)$/, m = /^-?(Infinity|NaN)$/, h = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
@@ -3336,7 +3336,7 @@ function mn(i) {
3336
3336
  }
3337
3337
  for (b = T.length; T[--b] === 0; T.pop()) ;
3338
3338
  }
3339
- s.e > _ ? s.c = s.e = null : s.e < L && (s.c = [s.e = 0]);
3339
+ s.e > _ ? s.c = s.e = null : s.e < E && (s.c = [s.e = 0]);
3340
3340
  }
3341
3341
  return s;
3342
3342
  }
@@ -3955,7 +3955,7 @@ var ds = (i) => i, gs = (i) => {
3955
3955
  if (n.y.isZero()) return qi(i, e, t.y);
3956
3956
  const r = Gt(e, n);
3957
3957
  if (r.isZero()) return null;
3958
- const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, a = Gt(u, e).div(r), o = Gt(u, n).div(r), g = i.x.plus(o.times(e.x)), c = t.x.plus(a.times(n.x)), L = i.y.plus(o.times(e.y)), _ = t.y.plus(a.times(n.y)), C = g.plus(c).div(2), M = L.plus(_).div(2);
3958
+ const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, a = Gt(u, e).div(r), o = Gt(u, n).div(r), g = i.x.plus(o.times(e.x)), c = t.x.plus(a.times(n.x)), E = i.y.plus(o.times(e.y)), _ = t.y.plus(a.times(n.y)), C = g.plus(c).div(2), M = E.plus(_).div(2);
3959
3959
  return { x: C, y: M };
3960
3960
  }, Ge = class vn {
3961
3961
  // Warning: 'point' input will be modified and re-used (for performance)
@@ -4050,8 +4050,8 @@ var ds = (i) => i, gs = (i) => {
4050
4050
  const u = e[n];
4051
4051
  if (!u.isInResult() || u.ringOut) continue;
4052
4052
  let a = null, o = u.leftSE, g = u.rightSE;
4053
- const c = [o], L = o.point, _ = [];
4054
- for (; a = o, o = g, c.push(o), o.point !== L; )
4053
+ const c = [o], E = o.point, _ = [];
4054
+ for (; a = o, o = g, c.push(o), o.point !== E; )
4055
4055
  for (; ; ) {
4056
4056
  const C = o.getAvailableLinkedEvents();
4057
4057
  if (C.length === 0) {
@@ -4090,7 +4090,7 @@ var ds = (i) => i, gs = (i) => {
4090
4090
  getGeom() {
4091
4091
  let e = this.events[0].point;
4092
4092
  const t = [e];
4093
- for (let c = 1, L = this.events.length - 1; c < L; c++) {
4093
+ for (let c = 1, E = this.events.length - 1; c < E; c++) {
4094
4094
  const _ = this.events[c].point, C = this.events[c + 1].point;
4095
4095
  je.orient(_, e, C) !== 0 && (t.push(_), e = _);
4096
4096
  }
@@ -4201,7 +4201,7 @@ var ds = (i) => i, gs = (i) => {
4201
4201
  const o = n.getIntersection(e);
4202
4202
  if (o !== null && (e.isAnEndpoint(o) || (u = o), !n.isAnEndpoint(o))) {
4203
4203
  const g = this._splitSafely(n, o);
4204
- for (let c = 0, L = g.length; c < L; c++)
4204
+ for (let c = 0, E = g.length; c < E; c++)
4205
4205
  t.push(g[c]);
4206
4206
  }
4207
4207
  }
@@ -4210,7 +4210,7 @@ var ds = (i) => i, gs = (i) => {
4210
4210
  const o = r.getIntersection(e);
4211
4211
  if (o !== null && (e.isAnEndpoint(o) || (a = o), !r.isAnEndpoint(o))) {
4212
4212
  const g = this._splitSafely(r, o);
4213
- for (let c = 0, L = g.length; c < L; c++)
4213
+ for (let c = 0, E = g.length; c < E; c++)
4214
4214
  t.push(g[c]);
4215
4215
  }
4216
4216
  }
@@ -4221,7 +4221,7 @@ var ds = (i) => i, gs = (i) => {
4221
4221
  a
4222
4222
  ) <= 0 ? u : a, this.queue.delete(e.rightSE), t.push(e.rightSE);
4223
4223
  const g = e.split(o);
4224
- for (let c = 0, L = g.length; c < L; c++)
4224
+ for (let c = 0, E = g.length; c < E; c++)
4225
4225
  t.push(g[c]);
4226
4226
  }
4227
4227
  t.length > 0 ? (this.tree.delete(e), t.push(i)) : (this.segments.push(e), e.prev = n);
@@ -4262,22 +4262,22 @@ var ds = (i) => i, gs = (i) => {
4262
4262
  run(i, e, t) {
4263
4263
  Et.type = i;
4264
4264
  const n = [new Vi(e, !0)];
4265
- for (let c = 0, L = t.length; c < L; c++)
4265
+ for (let c = 0, E = t.length; c < E; c++)
4266
4266
  n.push(new Vi(t[c], !1));
4267
4267
  if (Et.numMultiPolys = n.length, Et.type === "difference") {
4268
4268
  const c = n[0];
4269
- let L = 1;
4270
- for (; L < n.length; )
4271
- fi(n[L].bbox, c.bbox) !== null ? L++ : n.splice(L, 1);
4269
+ let E = 1;
4270
+ for (; E < n.length; )
4271
+ fi(n[E].bbox, c.bbox) !== null ? E++ : n.splice(E, 1);
4272
4272
  }
4273
4273
  if (Et.type === "intersection")
4274
- for (let c = 0, L = n.length; c < L; c++) {
4274
+ for (let c = 0, E = n.length; c < E; c++) {
4275
4275
  const _ = n[c];
4276
4276
  for (let C = c + 1, M = n.length; C < M; C++)
4277
4277
  if (fi(_.bbox, n[C].bbox) === null) return [];
4278
4278
  }
4279
4279
  const r = new zt(Ge.compare);
4280
- for (let c = 0, L = n.length; c < L; c++) {
4280
+ for (let c = 0, E = n.length; c < E; c++) {
4281
4281
  const _ = n[c].getSweepEvents();
4282
4282
  for (let C = 0, M = _.length; C < M; C++)
4283
4283
  r.add(_[C]);
@@ -4286,8 +4286,8 @@ var ds = (i) => i, gs = (i) => {
4286
4286
  let a = null;
4287
4287
  for (r.size != 0 && (a = r.first(), r.delete(a)); a; ) {
4288
4288
  const c = u.process(a);
4289
- for (let L = 0, _ = c.length; L < _; L++) {
4290
- const C = c[L];
4289
+ for (let E = 0, _ = c.length; E < _; E++) {
4290
+ const C = c[E];
4291
4291
  C.consumedBy === void 0 && r.add(C);
4292
4292
  }
4293
4293
  r.size != 0 ? (a = r.first(), r.delete(a)) : a = null;
@@ -4331,7 +4331,7 @@ var ds = (i) => i, gs = (i) => {
4331
4331
  const n = e.leftSE.point.x, r = t.leftSE.point.x, u = e.rightSE.point.x, a = t.rightSE.point.x;
4332
4332
  if (a.isLessThan(n)) return 1;
4333
4333
  if (u.isLessThan(r)) return -1;
4334
- const o = e.leftSE.point.y, g = t.leftSE.point.y, c = e.rightSE.point.y, L = t.rightSE.point.y;
4334
+ const o = e.leftSE.point.y, g = t.leftSE.point.y, c = e.rightSE.point.y, E = t.rightSE.point.y;
4335
4335
  if (n.isLessThan(r)) {
4336
4336
  if (g.isLessThan(o) && g.isLessThan(c)) return 1;
4337
4337
  if (g.isGreaterThan(o) && g.isGreaterThan(c)) return -1;
@@ -4342,8 +4342,8 @@ var ds = (i) => i, gs = (i) => {
4342
4342
  return C !== 0 ? C : -1;
4343
4343
  }
4344
4344
  if (n.isGreaterThan(r)) {
4345
- if (o.isLessThan(g) && o.isLessThan(L)) return -1;
4346
- if (o.isGreaterThan(g) && o.isGreaterThan(L)) return 1;
4345
+ if (o.isLessThan(g) && o.isLessThan(E)) return -1;
4346
+ if (o.isGreaterThan(g) && o.isGreaterThan(E)) return 1;
4347
4347
  const _ = t.comparePoint(e.leftSE.point);
4348
4348
  if (_ !== 0) return _;
4349
4349
  const C = e.comparePoint(t.rightSE.point);
@@ -4361,11 +4361,11 @@ var ds = (i) => i, gs = (i) => {
4361
4361
  if (_ > 0) return -1;
4362
4362
  }
4363
4363
  if (!u.eq(a)) {
4364
- const _ = c.minus(o), C = u.minus(n), M = L.minus(g), N = a.minus(r);
4364
+ const _ = c.minus(o), C = u.minus(n), M = E.minus(g), N = a.minus(r);
4365
4365
  if (_.isGreaterThan(C) && M.isLessThan(N)) return 1;
4366
4366
  if (_.isLessThan(C) && M.isGreaterThan(N)) return -1;
4367
4367
  }
4368
- return u.isGreaterThan(a) ? 1 : u.isLessThan(a) || c.isLessThan(L) ? -1 : c.isGreaterThan(L) ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
4368
+ return u.isGreaterThan(a) ? 1 : u.isLessThan(a) || c.isLessThan(E) ? -1 : c.isGreaterThan(E) ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
4369
4369
  }
4370
4370
  static fromRing(e, t, n) {
4371
4371
  let r, u, a;
@@ -4436,10 +4436,10 @@ var ds = (i) => i, gs = (i) => {
4436
4436
  getIntersection(e) {
4437
4437
  const t = this.bbox(), n = e.bbox(), r = fi(t, n);
4438
4438
  if (r === null) return null;
4439
- const u = this.leftSE.point, a = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, c = vt(t, o) && this.comparePoint(o) === 0, L = vt(n, u) && e.comparePoint(u) === 0, _ = vt(t, g) && this.comparePoint(g) === 0, C = vt(n, a) && e.comparePoint(a) === 0;
4440
- if (L && c)
4439
+ const u = this.leftSE.point, a = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, c = vt(t, o) && this.comparePoint(o) === 0, E = vt(n, u) && e.comparePoint(u) === 0, _ = vt(t, g) && this.comparePoint(g) === 0, C = vt(n, a) && e.comparePoint(a) === 0;
4440
+ if (E && c)
4441
4441
  return C && !_ ? a : !C && _ ? g : null;
4442
- if (L)
4442
+ if (E)
4443
4443
  return _ && u.x.eq(g.x) && u.y.eq(g.y) ? null : u;
4444
4444
  if (c)
4445
4445
  return C && a.x.eq(o.x) && a.y.eq(o.y) ? null : o;
@@ -4530,17 +4530,17 @@ var ds = (i) => i, gs = (i) => {
4530
4530
  };
4531
4531
  const t = this._afterState.rings, n = this._afterState.windings, r = this._afterState.multiPolys;
4532
4532
  for (let o = 0, g = this.rings.length; o < g; o++) {
4533
- const c = this.rings[o], L = this.windings[o], _ = t.indexOf(c);
4534
- _ === -1 ? (t.push(c), n.push(L)) : n[_] += L;
4533
+ const c = this.rings[o], E = this.windings[o], _ = t.indexOf(c);
4534
+ _ === -1 ? (t.push(c), n.push(E)) : n[_] += E;
4535
4535
  }
4536
4536
  const u = [], a = [];
4537
4537
  for (let o = 0, g = t.length; o < g; o++) {
4538
4538
  if (n[o] === 0) continue;
4539
- const c = t[o], L = c.poly;
4540
- if (a.indexOf(L) === -1)
4541
- if (c.isExterior) u.push(L);
4539
+ const c = t[o], E = c.poly;
4540
+ if (a.indexOf(E) === -1)
4541
+ if (c.isExterior) u.push(E);
4542
4542
  else {
4543
- a.indexOf(L) === -1 && a.push(L);
4543
+ a.indexOf(E) === -1 && a.push(E);
4544
4544
  const _ = u.indexOf(c.poly);
4545
4545
  _ !== -1 && u.splice(_, 1);
4546
4546
  }
@@ -4722,12 +4722,12 @@ function Ki(i, e) {
4722
4722
  for (const g of o.features) {
4723
4723
  const c = xt(li(g));
4724
4724
  if (a && c[0] < -180 + r)
4725
- for (const L of g.geometry.coordinates)
4726
- for (const _ of L)
4725
+ for (const E of g.geometry.coordinates)
4726
+ for (const _ of E)
4727
4727
  _[0] += 360 - r;
4728
4728
  if (u && c[2] > 180 - r)
4729
- for (const L of g.geometry.coordinates)
4730
- for (const _ of L)
4729
+ for (const E of g.geometry.coordinates)
4730
+ for (const _ of E)
4731
4731
  _[0] -= 360 - r;
4732
4732
  }
4733
4733
  e(
@@ -4753,7 +4753,7 @@ function Os(i, e = !0, t = !0, n = {}, r = {}, u = Yi) {
4753
4753
  let a;
4754
4754
  const o = [];
4755
4755
  let g, c;
4756
- const L = ke.geoJSON(void 0, {
4756
+ const E = ke.geoJSON(void 0, {
4757
4757
  style: u === !0 ? Yi : u === !1 ? void 0 : u ?? void 0,
4758
4758
  interactive: !1
4759
4759
  }).addTo(i), _ = (M) => {
@@ -4808,7 +4808,7 @@ function Os(i, e = !0, t = !0, n = {}, r = {}, u = Yi) {
4808
4808
  },
4809
4809
  setFeatures(M, N, P) {
4810
4810
  function R(k) {
4811
- L.clearLayers(), k && L.addData(k);
4811
+ E.clearLayers(), k && E.addData(k);
4812
4812
  }
4813
4813
  for (const k of o)
4814
4814
  k.remove();
@@ -4855,7 +4855,7 @@ function Os(i, e = !0, t = !0, n = {}, r = {}, u = Yi) {
4855
4855
  break e;
4856
4856
  }
4857
4857
  }
4858
- if (!P && N.geometry.type !== "Point")
4858
+ if (!P && !N.geometry.type.endsWith("Point"))
4859
4859
  break e;
4860
4860
  if (e instanceof Function) {
4861
4861
  const S = e(i, N);
@@ -4942,12 +4942,12 @@ class Rs extends En {
4942
4942
  fullGeometryStyle: o,
4943
4943
  position: g,
4944
4944
  ...c
4945
- } = ve(this, ot), L = typeof a == "boolean" ? {} : a, _ = Os(
4945
+ } = ve(this, ot), E = typeof a == "boolean" ? {} : a, _ = Os(
4946
4946
  t,
4947
4947
  r,
4948
4948
  u,
4949
- L,
4950
- L,
4949
+ E,
4950
+ E,
4951
4951
  o
4952
4952
  );
4953
4953
  $t(this, Ee, new ts({