@maptiler/geocoding-control 2.1.0-with-autocomplete-timeout → 2.1.2

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 +35 -69
  2. package/leaflet-controller.js +1942 -1523
  3. package/leaflet-controller.js.map +1 -1
  4. package/leaflet-controller.umd.js +1 -22
  5. package/leaflet-controller.umd.js.map +1 -1
  6. package/leaflet.js +2798 -2385
  7. package/leaflet.js.map +1 -1
  8. package/leaflet.umd.js +1 -22
  9. package/leaflet.umd.js.map +1 -1
  10. package/maplibregl-controller.js +1918 -1498
  11. package/maplibregl-controller.js.map +1 -1
  12. package/maplibregl-controller.umd.js +1 -22
  13. package/maplibregl-controller.umd.js.map +1 -1
  14. package/maplibregl.d.ts +34 -68
  15. package/maplibregl.js +2892 -2478
  16. package/maplibregl.js.map +1 -1
  17. package/maplibregl.umd.js +1 -22
  18. package/maplibregl.umd.js.map +1 -1
  19. package/maptilersdk.d.ts +34 -68
  20. package/maptilersdk.js +2896 -2481
  21. package/maptilersdk.js.map +1 -1
  22. package/maptilersdk.umd.js +1 -22
  23. package/maptilersdk.umd.js.map +1 -1
  24. package/openlayers-controller.js +1686 -1264
  25. package/openlayers-controller.js.map +1 -1
  26. package/openlayers-controller.umd.js +1 -22
  27. package/openlayers-controller.umd.js.map +1 -1
  28. package/openlayers.js +2778 -2365
  29. package/openlayers.js.map +1 -1
  30. package/openlayers.umd.js +1 -22
  31. package/openlayers.umd.js.map +1 -1
  32. package/package.json +23 -23
  33. package/react.js +753 -756
  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 +71 -58
  38. package/svelte/GeocodingControl.svelte.d.ts +5 -3
  39. package/svelte/MapLibreBasedGeocodingControl.d.ts +35 -69
  40. package/svelte/info.json +1 -0
  41. package/svelte/maplibregl.d.ts +34 -68
  42. package/svelte/maptilersdk.d.ts +34 -68
  43. package/svelte/maptilersdk.js +2 -0
  44. package/svelte/react.js +3 -0
  45. package/svelte/types.d.ts +175 -128
  46. package/types.d.ts +175 -128
  47. package/vanilla.js +847 -853
  48. package/vanilla.js.map +1 -1
  49. package/vanilla.umd.js +1 -1
  50. package/vanilla.umd.js.map +1 -1
package/react.js CHANGED
@@ -1,69 +1,57 @@
1
- var _i = Object.defineProperty;
2
- var yi = (i, e, t) => e in i ? _i(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var lt = (i, e, t) => yi(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { forwardRef as wi, useRef as pt, useEffect as ut, useImperativeHandle as pi, createElement as Ei } from "react";
1
+ var Ni = Object.defineProperty;
2
+ var ki = (i, e, t) => e in i ? Ni(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var dt = (i, e, t) => ki(i, typeof e != "symbol" ? e + "" : e, t);
4
+ import { forwardRef as Mi, useRef as Ct, useEffect as ft, useImperativeHandle as Ci, createElement as Wi } from "react";
5
5
  function P() {
6
6
  }
7
- function Si(i, e) {
7
+ function zi(i, e) {
8
8
  for (const t in e) i[t] = e[t];
9
9
  return (
10
10
  /** @type {T & S} */
11
11
  i
12
12
  );
13
13
  }
14
- function Ht(i) {
14
+ function Yt(i) {
15
15
  return i();
16
16
  }
17
- function Et() {
17
+ function Wt() {
18
18
  return /* @__PURE__ */ Object.create(null);
19
19
  }
20
- function ue(i) {
21
- i.forEach(Ht);
20
+ function de(i) {
21
+ i.forEach(Yt);
22
22
  }
23
- function Zt(i) {
23
+ function Xt(i) {
24
24
  return typeof i == "function";
25
25
  }
26
26
  function _e(i, e) {
27
27
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
28
28
  }
29
- let Ge;
29
+ let Ke;
30
30
  function X(i, e) {
31
- return i === e ? !0 : (Ge || (Ge = document.createElement("a")), Ge.href = e, i === Ge.href);
31
+ return i === e ? !0 : (Ke || (Ke = document.createElement("a")), Ke.href = e, i === Ke.href);
32
32
  }
33
- function Ti(i) {
33
+ function Oi(i) {
34
34
  return Object.keys(i).length === 0;
35
35
  }
36
- function Ni(i, e, t, n) {
36
+ function Ri(i, e, t, n) {
37
37
  if (i) {
38
- const r = Gt(i, e, t, n);
38
+ const r = Jt(i, e, t, n);
39
39
  return i[0](r);
40
40
  }
41
41
  }
42
- function Gt(i, e, t, n) {
43
- return i[1] && n ? Si(t.ctx.slice(), i[1](n(e))) : t.ctx;
44
- }
45
- function ki(i, e, t, n) {
46
- if (i[2] && n) {
47
- const r = i[2](n(t));
48
- if (e.dirty === void 0)
49
- return r;
50
- if (typeof r == "object") {
51
- const u = [], l = Math.max(e.dirty.length, r.length);
52
- for (let o = 0; o < l; o += 1)
53
- u[o] = e.dirty[o] | r[o];
54
- return u;
55
- }
56
- return e.dirty | r;
57
- }
58
- return e.dirty;
42
+ function Jt(i, e, t, n) {
43
+ return i[1] && n ? zi(t.ctx.slice(), i[1](n(e))) : t.ctx;
44
+ }
45
+ function Ui(i, e, t, n) {
46
+ return i[2], e.dirty;
59
47
  }
60
- function Mi(i, e, t, n, r, u) {
48
+ function Di(i, e, t, n, r, u) {
61
49
  if (r) {
62
- const l = Gt(e, t, n, u);
50
+ const l = Jt(e, t, n, u);
63
51
  i.p(l, r);
64
52
  }
65
53
  }
66
- function Ci(i) {
54
+ function Ii(i) {
67
55
  if (i.ctx.length > 32) {
68
56
  const e = [], t = i.ctx.length / 32;
69
57
  for (let n = 0; n < t; n++)
@@ -72,37 +60,37 @@ function Ci(i) {
72
60
  }
73
61
  return -1;
74
62
  }
75
- function Ve(i) {
63
+ function Je(i) {
76
64
  return i ?? "";
77
65
  }
78
- function N(i, e) {
66
+ function M(i, e) {
79
67
  i.appendChild(e);
80
68
  }
81
- function j(i, e, t) {
69
+ function B(i, e, t) {
82
70
  i.insertBefore(e, t || null);
83
71
  }
84
- function A(i) {
72
+ function I(i) {
85
73
  i.parentNode && i.parentNode.removeChild(i);
86
74
  }
87
75
  function U(i) {
88
76
  return document.createElement(i);
89
77
  }
90
- function se(i) {
78
+ function le(i) {
91
79
  return document.createElementNS("http://www.w3.org/2000/svg", i);
92
80
  }
93
- function me(i) {
81
+ function ge(i) {
94
82
  return document.createTextNode(i);
95
83
  }
96
- function Y() {
97
- return me(" ");
84
+ function $() {
85
+ return ge(" ");
98
86
  }
99
- function Wi() {
100
- return me("");
87
+ function Ai() {
88
+ return ge("");
101
89
  }
102
- function Q(i, e, t, n) {
90
+ function q(i, e, t, n) {
103
91
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
104
92
  }
105
- function zi(i) {
93
+ function Pi(i) {
106
94
  return function(e) {
107
95
  return e.preventDefault(), i.call(this, e);
108
96
  };
@@ -110,39 +98,39 @@ function zi(i) {
110
98
  function a(i, e, t) {
111
99
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
112
100
  }
113
- function Ri(i) {
101
+ function Bi(i) {
114
102
  return Array.from(i.childNodes);
115
103
  }
116
- function Oe(i, e) {
104
+ function Ie(i, e) {
117
105
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
118
106
  e);
119
107
  }
120
- function St(i, e) {
108
+ function zt(i, e) {
121
109
  i.value = e ?? "";
122
110
  }
123
- function Te(i, e, t) {
111
+ function ke(i, e, t) {
124
112
  i.classList.toggle(e, !!t);
125
113
  }
126
- function Oi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
114
+ function Fi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
127
115
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
128
116
  }
129
- let Ue;
130
- function Re(i) {
131
- Ue = i;
117
+ let Ae;
118
+ function De(i) {
119
+ Ae = i;
132
120
  }
133
- function qt() {
134
- if (!Ue) throw new Error("Function called outside component initialization");
135
- return Ue;
121
+ function xt() {
122
+ if (!Ae) throw new Error("Function called outside component initialization");
123
+ return Ae;
136
124
  }
137
- function Ui(i) {
138
- qt().$$.on_destroy.push(i);
125
+ function Gi(i) {
126
+ xt().$$.on_destroy.push(i);
139
127
  }
140
- function Qt() {
141
- const i = qt();
128
+ function $t() {
129
+ const i = xt();
142
130
  return (e, t, { cancelable: n = !1 } = {}) => {
143
131
  const r = i.$$.callbacks[e];
144
132
  if (r) {
145
- const u = Oi(
133
+ const u = Fi(
146
134
  /** @type {string} */
147
135
  e,
148
136
  t,
@@ -155,60 +143,60 @@ function Qt() {
155
143
  return !0;
156
144
  };
157
145
  }
158
- function Di(i, e) {
146
+ function ji(i, e) {
159
147
  const t = i.$$.callbacks[e.type];
160
148
  t && t.slice().forEach((n) => n.call(this, e));
161
149
  }
162
- const Se = [], dt = [];
163
- let Ne = [];
164
- const Tt = [], Ii = /* @__PURE__ */ Promise.resolve();
165
- let ft = !1;
166
- function Ai() {
167
- ft || (ft = !0, Ii.then(Kt));
150
+ const Ne = [], gt = [];
151
+ let Me = [];
152
+ const Ot = [], Hi = /* @__PURE__ */ Promise.resolve();
153
+ let ht = !1;
154
+ function Zi() {
155
+ ht || (ht = !0, Hi.then(ei));
168
156
  }
169
- function mt(i) {
170
- Ne.push(i);
157
+ function bt(i) {
158
+ Me.push(i);
171
159
  }
172
- const ct = /* @__PURE__ */ new Set();
173
- let Ee = 0;
174
- function Kt() {
175
- if (Ee !== 0)
160
+ const mt = /* @__PURE__ */ new Set();
161
+ let Te = 0;
162
+ function ei() {
163
+ if (Te !== 0)
176
164
  return;
177
- const i = Ue;
165
+ const i = Ae;
178
166
  do {
179
167
  try {
180
- for (; Ee < Se.length; ) {
181
- const e = Se[Ee];
182
- Ee++, Re(e), Bi(e.$$);
168
+ for (; Te < Ne.length; ) {
169
+ const e = Ne[Te];
170
+ Te++, De(e), qi(e.$$);
183
171
  }
184
172
  } catch (e) {
185
- throw Se.length = 0, Ee = 0, e;
173
+ throw Ne.length = 0, Te = 0, e;
186
174
  }
187
- for (Re(null), Se.length = 0, Ee = 0; dt.length; ) dt.pop()();
188
- for (let e = 0; e < Ne.length; e += 1) {
189
- const t = Ne[e];
190
- ct.has(t) || (ct.add(t), t());
175
+ for (De(null), Ne.length = 0, Te = 0; gt.length; ) gt.pop()();
176
+ for (let e = 0; e < Me.length; e += 1) {
177
+ const t = Me[e];
178
+ mt.has(t) || (mt.add(t), t());
191
179
  }
192
- Ne.length = 0;
193
- } while (Se.length);
194
- for (; Tt.length; )
195
- Tt.pop()();
196
- ft = !1, ct.clear(), Re(i);
180
+ Me.length = 0;
181
+ } while (Ne.length);
182
+ for (; Ot.length; )
183
+ Ot.pop()();
184
+ ht = !1, mt.clear(), De(i);
197
185
  }
198
- function Bi(i) {
186
+ function qi(i) {
199
187
  if (i.fragment !== null) {
200
- i.update(), ue(i.before_update);
188
+ i.update(), de(i.before_update);
201
189
  const e = i.dirty;
202
- i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(mt);
190
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(bt);
203
191
  }
204
192
  }
205
- function Pi(i) {
193
+ function Qi(i) {
206
194
  const e = [], t = [];
207
- Ne.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ne = e;
195
+ Me.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Me = e;
208
196
  }
209
- const qe = /* @__PURE__ */ new Set();
197
+ const Ve = /* @__PURE__ */ new Set();
210
198
  let Le;
211
- function Qe() {
199
+ function Ye() {
212
200
  Le = {
213
201
  r: 0,
214
202
  c: [],
@@ -216,73 +204,73 @@ function Qe() {
216
204
  // parent group
217
205
  };
218
206
  }
219
- function Ke() {
220
- Le.r || ue(Le.c), Le = Le.p;
207
+ function Xe() {
208
+ Le.r || de(Le.c), Le = Le.p;
221
209
  }
222
- function Z(i, e) {
223
- i && i.i && (qe.delete(i), i.i(e));
210
+ function j(i, e) {
211
+ i && i.i && (Ve.delete(i), i.i(e));
224
212
  }
225
- function K(i, e, t, n) {
213
+ function Q(i, e, t, n) {
226
214
  if (i && i.o) {
227
- if (qe.has(i)) return;
228
- qe.add(i), Le.c.push(() => {
229
- qe.delete(i), n && (t && i.d(1), n());
215
+ if (Ve.has(i)) return;
216
+ Ve.add(i), Le.c.push(() => {
217
+ Ve.delete(i), n && (t && i.d(1), n());
230
218
  }), i.o(e);
231
219
  } else n && n();
232
220
  }
233
- function Nt(i) {
221
+ function Rt(i) {
234
222
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
235
223
  }
236
- function ji(i, e) {
237
- K(i, 1, 1, () => {
224
+ function Ki(i, e) {
225
+ Q(i, 1, 1, () => {
238
226
  e.delete(i.key);
239
227
  });
240
228
  }
241
- function Fi(i, e, t, n, r, u, l, o, d, c, f, g) {
229
+ function Vi(i, e, t, n, r, u, l, o, d, c, f, g) {
242
230
  let b = i.length, _ = u.length, w = b;
243
- const I = {};
244
- for (; w--; ) I[i[w].key] = w;
245
- const S = [], T = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), C = [];
231
+ const D = {};
232
+ for (; w--; ) D[i[w].key] = w;
233
+ const E = [], S = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), W = [];
246
234
  for (w = _; w--; ) {
247
- const L = g(r, u, w), y = t(L);
248
- let M = l.get(y);
249
- M ? C.push(() => M.p(L, e)) : (M = c(y, L), M.c()), T.set(y, S[w] = M), y in I && z.set(y, Math.abs(w - I[y]));
235
+ const v = g(r, u, w), y = t(v);
236
+ let N = l.get(y);
237
+ N ? W.push(() => N.p(v, e)) : (N = c(y, v), N.c()), S.set(y, E[w] = N), y in D && z.set(y, Math.abs(w - D[y]));
250
238
  }
251
- const q = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
252
- function k(L) {
253
- Z(L, 1), L.m(o, f), l.set(L.key, L), f = L.first, _--;
239
+ const Z = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
240
+ function C(v) {
241
+ j(v, 1), v.m(o, f), l.set(v.key, v), f = v.first, _--;
254
242
  }
255
243
  for (; b && _; ) {
256
- const L = S[_ - 1], y = i[b - 1], M = L.key, m = y.key;
257
- L === y ? (f = L.first, b--, _--) : T.has(m) ? !l.has(M) || q.has(M) ? k(L) : J.has(m) ? b-- : z.get(M) > z.get(m) ? (J.add(M), k(L)) : (q.add(m), b--) : (d(y, l), b--);
244
+ const v = E[_ - 1], y = i[b - 1], N = v.key, k = y.key;
245
+ v === y ? (f = v.first, b--, _--) : S.has(k) ? !l.has(N) || Z.has(N) ? C(v) : V.has(k) ? b-- : z.get(N) > z.get(k) ? (V.add(N), C(v)) : (Z.add(k), b--) : (d(y, l), b--);
258
246
  }
259
247
  for (; b--; ) {
260
- const L = i[b];
261
- T.has(L.key) || d(L, l);
248
+ const v = i[b];
249
+ S.has(v.key) || d(v, l);
262
250
  }
263
- for (; _; ) k(S[_ - 1]);
264
- return ue(C), S;
251
+ for (; _; ) C(E[_ - 1]);
252
+ return de(W), E;
265
253
  }
266
- function ge(i) {
254
+ function he(i) {
267
255
  i && i.c();
268
256
  }
269
- function ae(i, e, t) {
257
+ function ue(i, e, t) {
270
258
  const { fragment: n, after_update: r } = i.$$;
271
- n && n.m(e, t), mt(() => {
272
- const u = i.$$.on_mount.map(Ht).filter(Zt);
273
- i.$$.on_destroy ? i.$$.on_destroy.push(...u) : ue(u), i.$$.on_mount = [];
274
- }), r.forEach(mt);
259
+ n && n.m(e, t), bt(() => {
260
+ const u = i.$$.on_mount.map(Yt).filter(Xt);
261
+ i.$$.on_destroy ? i.$$.on_destroy.push(...u) : de(u), i.$$.on_mount = [];
262
+ }), r.forEach(bt);
275
263
  }
276
- function le(i, e) {
264
+ function ce(i, e) {
277
265
  const t = i.$$;
278
- t.fragment !== null && (Pi(t.after_update), ue(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
266
+ t.fragment !== null && (Qi(t.after_update), de(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
279
267
  }
280
- function Hi(i, e) {
281
- i.$$.dirty[0] === -1 && (Se.push(i), Ai(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
268
+ function Yi(i, e) {
269
+ i.$$.dirty[0] === -1 && (Ne.push(i), Zi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
282
270
  }
283
271
  function ye(i, e, t, n, r, u, l = null, o = [-1]) {
284
- const d = Ue;
285
- Re(i);
272
+ const d = Ae;
273
+ De(i);
286
274
  const c = i.$$ = {
287
275
  fragment: null,
288
276
  ctx: [],
@@ -290,7 +278,7 @@ function ye(i, e, t, n, r, u, l = null, o = [-1]) {
290
278
  props: u,
291
279
  update: P,
292
280
  not_equal: r,
293
- bound: Et(),
281
+ bound: Wt(),
294
282
  // lifecycle
295
283
  on_mount: [],
296
284
  on_destroy: [],
@@ -299,7 +287,7 @@ function ye(i, e, t, n, r, u, l = null, o = [-1]) {
299
287
  after_update: [],
300
288
  context: new Map(e.context || (d ? d.$$.context : [])),
301
289
  // everything else
302
- callbacks: Et(),
290
+ callbacks: Wt(),
303
291
  dirty: o,
304
292
  skip_bound: !1,
305
293
  root: e.target || d.$$.root
@@ -308,16 +296,16 @@ function ye(i, e, t, n, r, u, l = null, o = [-1]) {
308
296
  let f = !1;
309
297
  if (c.ctx = t ? t(i, e.props || {}, (g, b, ..._) => {
310
298
  const w = _.length ? _[0] : b;
311
- return c.ctx && r(c.ctx[g], c.ctx[g] = w) && (!c.skip_bound && c.bound[g] && c.bound[g](w), f && Hi(i, g)), b;
312
- }) : [], c.update(), f = !0, ue(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
299
+ return c.ctx && r(c.ctx[g], c.ctx[g] = w) && (!c.skip_bound && c.bound[g] && c.bound[g](w), f && Yi(i, g)), b;
300
+ }) : [], c.update(), f = !0, de(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
313
301
  if (e.hydrate) {
314
- const g = Ri(e.target);
315
- c.fragment && c.fragment.l(g), g.forEach(A);
302
+ const g = Bi(e.target);
303
+ c.fragment && c.fragment.l(g), g.forEach(I);
316
304
  } else
317
305
  c.fragment && c.fragment.c();
318
- e.intro && Z(i.$$.fragment), ae(i, e.target, e.anchor), Kt();
306
+ e.intro && j(i.$$.fragment), ue(i, e.target, e.anchor), ei();
319
307
  }
320
- Re(d);
308
+ De(d);
321
309
  }
322
310
  class we {
323
311
  constructor() {
@@ -328,7 +316,7 @@ class we {
328
316
  *
329
317
  * @type {any}
330
318
  */
331
- lt(this, "$$");
319
+ dt(this, "$$");
332
320
  /**
333
321
  * ### PRIVATE API
334
322
  *
@@ -336,11 +324,11 @@ class we {
336
324
  *
337
325
  * @type {any}
338
326
  */
339
- lt(this, "$$set");
327
+ dt(this, "$$set");
340
328
  }
341
329
  /** @returns {void} */
342
330
  $destroy() {
343
- le(this, 1), this.$destroy = P;
331
+ ce(this, 1), this.$destroy = P;
344
332
  }
345
333
  /**
346
334
  * @template {Extract<keyof Events, string>} K
@@ -349,7 +337,7 @@ class we {
349
337
  * @returns {() => void}
350
338
  */
351
339
  $on(e, t) {
352
- if (!Zt(t))
340
+ if (!Xt(t))
353
341
  return P;
354
342
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
355
343
  return n.push(t), () => {
@@ -362,56 +350,56 @@ class we {
362
350
  * @returns {void}
363
351
  */
364
352
  $set(e) {
365
- this.$$set && !Ti(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
353
+ this.$$set && !Oi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
366
354
  }
367
355
  }
368
- const Zi = "4";
369
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zi);
370
- function Gi(i) {
356
+ const Xi = "4";
357
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xi);
358
+ function Ji(i) {
371
359
  let e, t;
372
360
  return {
373
361
  c() {
374
- e = se("svg"), t = se("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
362
+ e = le("svg"), t = le("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
375
363
  },
376
364
  m(n, r) {
377
- j(n, e, r), N(e, t);
365
+ B(n, e, r), M(e, t);
378
366
  },
379
367
  p: P,
380
368
  i: P,
381
369
  o: P,
382
370
  d(n) {
383
- n && A(e);
371
+ n && I(e);
384
372
  }
385
373
  };
386
374
  }
387
- class Vt extends we {
375
+ class ti extends we {
388
376
  constructor(e) {
389
- super(), ye(this, e, null, Gi, _e, {});
377
+ super(), ye(this, e, null, Ji, _e, {});
390
378
  }
391
379
  }
392
- function qi(i) {
380
+ function xi(i) {
393
381
  let e, t;
394
382
  return {
395
383
  c() {
396
- e = se("svg"), t = se("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
384
+ e = le("svg"), t = le("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
397
385
  },
398
386
  m(n, r) {
399
- j(n, e, r), N(e, t);
387
+ B(n, e, r), M(e, t);
400
388
  },
401
389
  p: P,
402
390
  i: P,
403
391
  o: P,
404
392
  d(n) {
405
- n && A(e);
393
+ n && I(e);
406
394
  }
407
395
  };
408
396
  }
409
- class Jt extends we {
397
+ class ii extends we {
410
398
  constructor(e) {
411
- super(), ye(this, e, null, qi, _e, {});
399
+ super(), ye(this, e, null, xi, _e, {});
412
400
  }
413
401
  }
414
- function Qi(i) {
402
+ function $i(i) {
415
403
  let e, t;
416
404
  return {
417
405
  c() {
@@ -429,7 +417,7 @@ function Qi(i) {
429
417
  ), a(e, "class", "svelte-z7p9pp");
430
418
  },
431
419
  m(n, r) {
432
- j(n, e, r);
420
+ B(n, e, r);
433
421
  },
434
422
  p(n, r) {
435
423
  r & /*iconsBaseUrl*/
@@ -449,11 +437,11 @@ function Qi(i) {
449
437
  );
450
438
  },
451
439
  d(n) {
452
- n && A(e);
440
+ n && I(e);
453
441
  }
454
442
  };
455
443
  }
456
- function Ki(i) {
444
+ function en(i) {
457
445
  let e, t;
458
446
  return {
459
447
  c() {
@@ -471,7 +459,7 @@ function Ki(i) {
471
459
  ), a(e, "class", "svelte-z7p9pp");
472
460
  },
473
461
  m(n, r) {
474
- j(n, e, r);
462
+ B(n, e, r);
475
463
  },
476
464
  p(n, r) {
477
465
  r & /*iconsBaseUrl*/
@@ -491,11 +479,11 @@ function Ki(i) {
491
479
  );
492
480
  },
493
481
  d(n) {
494
- n && A(e);
482
+ n && I(e);
495
483
  }
496
484
  };
497
485
  }
498
- function Vi(i) {
486
+ function tn(i) {
499
487
  let e, t;
500
488
  return {
501
489
  c() {
@@ -513,7 +501,7 @@ function Vi(i) {
513
501
  ), a(e, "class", "svelte-z7p9pp");
514
502
  },
515
503
  m(n, r) {
516
- j(n, e, r);
504
+ B(n, e, r);
517
505
  },
518
506
  p(n, r) {
519
507
  r & /*iconsBaseUrl*/
@@ -533,11 +521,11 @@ function Vi(i) {
533
521
  );
534
522
  },
535
523
  d(n) {
536
- n && A(e);
524
+ n && I(e);
537
525
  }
538
526
  };
539
527
  }
540
- function Ji(i) {
528
+ function nn(i) {
541
529
  let e, t;
542
530
  return {
543
531
  c() {
@@ -555,7 +543,7 @@ function Ji(i) {
555
543
  ), a(e, "class", "svelte-z7p9pp");
556
544
  },
557
545
  m(n, r) {
558
- j(n, e, r);
546
+ B(n, e, r);
559
547
  },
560
548
  p(n, r) {
561
549
  r & /*iconsBaseUrl*/
@@ -575,11 +563,11 @@ function Ji(i) {
575
563
  );
576
564
  },
577
565
  d(n) {
578
- n && A(e);
566
+ n && I(e);
579
567
  }
580
568
  };
581
569
  }
582
- function Xi(i) {
570
+ function rn(i) {
583
571
  let e, t;
584
572
  return {
585
573
  c() {
@@ -597,7 +585,7 @@ function Xi(i) {
597
585
  ), a(e, "class", "svelte-z7p9pp");
598
586
  },
599
587
  m(n, r) {
600
- j(n, e, r);
588
+ B(n, e, r);
601
589
  },
602
590
  p(n, r) {
603
591
  r & /*iconsBaseUrl*/
@@ -617,11 +605,11 @@ function Xi(i) {
617
605
  );
618
606
  },
619
607
  d(n) {
620
- n && A(e);
608
+ n && I(e);
621
609
  }
622
610
  };
623
611
  }
624
- function Yi(i) {
612
+ function on(i) {
625
613
  let e, t;
626
614
  return {
627
615
  c() {
@@ -639,7 +627,7 @@ function Yi(i) {
639
627
  ), a(e, "class", "svelte-z7p9pp");
640
628
  },
641
629
  m(n, r) {
642
- j(n, e, r);
630
+ B(n, e, r);
643
631
  },
644
632
  p(n, r) {
645
633
  r & /*iconsBaseUrl*/
@@ -659,11 +647,11 @@ function Yi(i) {
659
647
  );
660
648
  },
661
649
  d(n) {
662
- n && A(e);
650
+ n && I(e);
663
651
  }
664
652
  };
665
653
  }
666
- function xi(i) {
654
+ function sn(i) {
667
655
  let e, t;
668
656
  return {
669
657
  c() {
@@ -681,7 +669,7 @@ function xi(i) {
681
669
  ), a(e, "class", "svelte-z7p9pp");
682
670
  },
683
671
  m(n, r) {
684
- j(n, e, r);
672
+ B(n, e, r);
685
673
  },
686
674
  p(n, r) {
687
675
  r & /*iconsBaseUrl*/
@@ -701,11 +689,11 @@ function xi(i) {
701
689
  );
702
690
  },
703
691
  d(n) {
704
- n && A(e);
692
+ n && I(e);
705
693
  }
706
694
  };
707
695
  }
708
- function $i(i) {
696
+ function an(i) {
709
697
  let e, t, n, r;
710
698
  return {
711
699
  c() {
@@ -723,7 +711,7 @@ function $i(i) {
723
711
  ), a(e, "class", "svelte-z7p9pp");
724
712
  },
725
713
  m(u, l) {
726
- j(u, e, l), n || (r = Q(
714
+ B(u, e, l), n || (r = q(
727
715
  e,
728
716
  "error",
729
717
  /*error_handler*/
@@ -748,36 +736,36 @@ function $i(i) {
748
736
  );
749
737
  },
750
738
  d(u) {
751
- u && A(e), n = !1, r();
739
+ u && I(e), n = !1, r();
752
740
  }
753
741
  };
754
742
  }
755
- function kt(i) {
743
+ function Ut(i) {
756
744
  let e, t;
757
745
  return {
758
746
  c() {
759
- e = U("span"), t = me(
747
+ e = U("span"), t = ge(
760
748
  /*placeType*/
761
749
  i[6]
762
750
  ), a(e, "class", "secondary svelte-z7p9pp");
763
751
  },
764
752
  m(n, r) {
765
- j(n, e, r), N(e, t);
753
+ B(n, e, r), M(e, t);
766
754
  },
767
755
  p(n, r) {
768
756
  r & /*placeType*/
769
- 64 && Oe(
757
+ 64 && Ie(
770
758
  t,
771
759
  /*placeType*/
772
760
  n[6]
773
761
  );
774
762
  },
775
763
  d(n) {
776
- n && A(e);
764
+ n && I(e);
777
765
  }
778
766
  };
779
767
  }
780
- function en(i) {
768
+ function ln(i) {
781
769
  let e, t, n, r, u, l, o, d, c, f = (
782
770
  /*isReverse*/
783
771
  (i[8] ? (
@@ -798,65 +786,65 @@ function en(i) {
798
786
  i[0].id.startsWith("poi.") || !/*imageUrl*/
799
787
  i[5]) && !/*isReverse*/
800
788
  i[8]
801
- ), w, I, S = (
789
+ ), w, D, E = (
802
790
  /*isReverse*/
803
791
  (i[8] ? "" : (
804
792
  /*feature*/
805
793
  i[0].place_name.replace(/[^,]*,?\s*/, "")
806
794
  )) + ""
807
- ), T, z, C, q, J, k;
808
- function L(p, R) {
809
- return R & /*feature*/
810
- 1 && (t = null), R & /*feature*/
811
- 1 && (n = null), R & /*feature*/
812
- 1 && (r = null), R & /*feature*/
795
+ ), S, z, W, Z, V, C;
796
+ function v(p, m) {
797
+ return m & /*feature*/
798
+ 1 && (t = null), m & /*feature*/
799
+ 1 && (n = null), m & /*feature*/
800
+ 1 && (r = null), m & /*feature*/
813
801
  1 && (u = null), /*imageUrl*/
814
- p[5] ? $i : (
802
+ p[5] ? an : (
815
803
  /*feature*/
816
- p[0].address ? xi : (t == null && (t = !!/*feature*/
817
- p[0].id.startsWith("road.")), t ? Yi : (n == null && (n = !!/*feature*/
818
- p[0].id.startsWith("address.")), n ? Xi : (r == null && (r = !!/*feature*/
819
- p[0].id.startsWith("postal_code.")), r ? Ji : (u == null && (u = !!/*feature*/
820
- p[0].id.startsWith("poi.")), u ? Vi : (
804
+ p[0].address ? sn : (t == null && (t = !!/*feature*/
805
+ p[0].id.startsWith("road.")), t ? on : (n == null && (n = !!/*feature*/
806
+ p[0].id.startsWith("address.")), n ? rn : (r == null && (r = !!/*feature*/
807
+ p[0].id.startsWith("postal_code.")), r ? nn : (u == null && (u = !!/*feature*/
808
+ p[0].id.startsWith("poi.")), u ? tn : (
821
809
  /*isReverse*/
822
- p[8] ? Ki : Qi
810
+ p[8] ? en : $i
823
811
  )))))
824
812
  );
825
813
  }
826
- let y = L(i, -1), M = y(i), m = _ && kt(i);
814
+ let y = v(i, -1), N = y(i), k = _ && Ut(i);
827
815
  return {
828
816
  c() {
829
- e = U("li"), M.c(), l = Y(), o = U("span"), d = U("span"), c = U("span"), g = me(f), b = Y(), m && m.c(), w = Y(), I = U("span"), T = me(S), a(c, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(I, "class", "line2 svelte-z7p9pp"), a(o, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
830
- i[1] === "selected"), a(e, "aria-checked", C = /*style*/
831
- i[1] === "picked"), a(e, "class", q = Ve(
817
+ e = U("li"), N.c(), l = $(), o = U("span"), d = U("span"), c = U("span"), g = ge(f), b = $(), k && k.c(), w = $(), D = U("span"), S = ge(E), a(c, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(D, "class", "line2 svelte-z7p9pp"), a(o, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
818
+ i[1] === "selected"), a(e, "aria-checked", W = /*style*/
819
+ i[1] === "picked"), a(e, "class", Z = Je(
832
820
  /*style*/
833
821
  i[1]
834
822
  ) + " svelte-z7p9pp");
835
823
  },
836
- m(p, R) {
837
- j(p, e, R), M.m(e, null), N(e, l), N(e, o), N(o, d), N(d, c), N(c, g), N(d, b), m && m.m(d, null), N(o, w), N(o, I), N(I, T), J || (k = [
838
- Q(
824
+ m(p, m) {
825
+ B(p, e, m), N.m(e, null), M(e, l), M(e, o), M(o, d), M(d, c), M(c, g), M(d, b), k && k.m(d, null), M(o, w), M(o, D), M(D, S), V || (C = [
826
+ q(
839
827
  e,
840
828
  "mouseenter",
841
829
  /*mouseenter_handler*/
842
830
  i[13]
843
831
  ),
844
- Q(
832
+ q(
845
833
  e,
846
834
  "focus",
847
835
  /*focus_handler*/
848
836
  i[15]
849
837
  ),
850
- Q(
838
+ q(
851
839
  e,
852
840
  "click",
853
841
  /*click_handler*/
854
842
  i[16]
855
843
  )
856
- ], J = !0);
844
+ ], V = !0);
857
845
  },
858
- p(p, [R]) {
859
- y === (y = L(p, R)) && M ? M.p(p, R) : (M.d(1), M = y(p), M && (M.c(), M.m(e, l))), R & /*feature*/
846
+ p(p, [m]) {
847
+ y === (y = v(p, m)) && N ? N.p(p, m) : (N.d(1), N = y(p), N && (N.c(), N.m(e, l))), m & /*feature*/
860
848
  1 && f !== (f = /*isReverse*/
861
849
  (p[8] ? (
862
850
  /*feature*/
@@ -864,7 +852,7 @@ function en(i) {
864
852
  ) : (
865
853
  /*feature*/
866
854
  p[0].place_name.replace(/,.*/, "")
867
- )) + "") && Oe(g, f), R & /*showPlaceType, feature, imageUrl*/
855
+ )) + "") && Ie(g, f), m & /*showPlaceType, feature, imageUrl*/
868
856
  37 && (_ = /*showPlaceType*/
869
857
  p[2] === "always" || /*showPlaceType*/
870
858
  p[2] !== "never" && !/*feature*/
@@ -874,53 +862,53 @@ function en(i) {
874
862
  p[0].id.startsWith("postal_code.") && (!/*feature*/
875
863
  p[0].id.startsWith("poi.") || !/*imageUrl*/
876
864
  p[5]) && !/*isReverse*/
877
- p[8]), _ ? m ? m.p(p, R) : (m = kt(p), m.c(), m.m(d, null)) : m && (m.d(1), m = null), R & /*feature*/
878
- 1 && S !== (S = /*isReverse*/
865
+ p[8]), _ ? k ? k.p(p, m) : (k = Ut(p), k.c(), k.m(d, null)) : k && (k.d(1), k = null), m & /*feature*/
866
+ 1 && E !== (E = /*isReverse*/
879
867
  (p[8] ? "" : (
880
868
  /*feature*/
881
869
  p[0].place_name.replace(/[^,]*,?\s*/, "")
882
- )) + "") && Oe(T, S), R & /*style*/
870
+ )) + "") && Ie(S, E), m & /*style*/
883
871
  2 && z !== (z = /*style*/
884
- p[1] === "selected") && a(e, "aria-selected", z), R & /*style*/
885
- 2 && C !== (C = /*style*/
886
- p[1] === "picked") && a(e, "aria-checked", C), R & /*style*/
887
- 2 && q !== (q = Ve(
872
+ p[1] === "selected") && a(e, "aria-selected", z), m & /*style*/
873
+ 2 && W !== (W = /*style*/
874
+ p[1] === "picked") && a(e, "aria-checked", W), m & /*style*/
875
+ 2 && Z !== (Z = Je(
888
876
  /*style*/
889
877
  p[1]
890
- ) + " svelte-z7p9pp") && a(e, "class", q);
878
+ ) + " svelte-z7p9pp") && a(e, "class", Z);
891
879
  },
892
880
  i: P,
893
881
  o: P,
894
882
  d(p) {
895
- p && A(e), M.d(), m && m.d(), J = !1, ue(k);
883
+ p && I(e), N.d(), k && k.d(), V = !1, de(C);
896
884
  }
897
885
  };
898
886
  }
899
- function tn(i, e, t) {
900
- var J;
887
+ function un(i, e, t) {
888
+ var V;
901
889
  let n, r, { feature: u } = e, { style: l = "default" } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: c } = e;
902
- const f = Qt(), g = (J = u.properties) == null ? void 0 : J.categories;
903
- let b, _, w = 0, I = u.place_type[0] === "reverse";
904
- function S() {
890
+ const f = $t(), g = (V = u.properties) == null ? void 0 : V.categories;
891
+ let b, _, w = 0, D = u.place_type[0] === "reverse";
892
+ function E() {
905
893
  _ && d.add(_), t(11, w++, w);
906
894
  }
907
- function T(k) {
908
- Di.call(this, i, k);
895
+ function S(C) {
896
+ ji.call(this, i, C);
909
897
  }
910
- const z = () => S(), C = () => f("select", void 0), q = (k) => {
911
- document.activeElement !== k.target && f("select", void 0);
898
+ const z = () => E(), W = () => f("select", void 0), Z = (C) => {
899
+ document.activeElement !== C.target && f("select", void 0);
912
900
  };
913
- return i.$$set = (k) => {
914
- "feature" in k && t(0, u = k.feature), "style" in k && t(1, l = k.style), "showPlaceType" in k && t(2, o = k.showPlaceType), "missingIconsCache" in k && t(10, d = k.missingIconsCache), "iconsBaseUrl" in k && t(3, c = k.iconsBaseUrl);
901
+ return i.$$set = (C) => {
902
+ "feature" in C && t(0, u = C.feature), "style" in C && t(1, l = C.style), "showPlaceType" in C && t(2, o = C.showPlaceType), "missingIconsCache" in C && t(10, d = C.missingIconsCache), "iconsBaseUrl" in C && t(3, c = C.iconsBaseUrl);
915
903
  }, i.$$.update = () => {
916
- var k, L, y, M;
904
+ var C, v, y, N;
917
905
  if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
918
906
  7224)
919
907
  do
920
908
  t(12, n--, n), t(4, b = g == null ? void 0 : g[n]), t(5, _ = b ? c + b.replace(/ /g, "_") + ".svg" : void 0);
921
909
  while (n > -1 && (!_ || d.has(_)));
922
910
  i.$$.dirty & /*feature*/
923
- 1 && t(6, r = ((L = (k = u.properties) == null ? void 0 : k.categories) == null ? void 0 : L.join(", ")) ?? ((M = (y = u.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : M[0]) ?? u.place_type[0]);
911
+ 1 && t(6, r = ((v = (C = u.properties) == null ? void 0 : C.categories) == null ? void 0 : v.join(", ")) ?? ((N = (y = u.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : N[0]) ?? u.place_type[0]);
924
912
  }, t(12, n = (g == null ? void 0 : g.length) ?? 0), [
925
913
  u,
926
914
  l,
@@ -930,20 +918,20 @@ function tn(i, e, t) {
930
918
  _,
931
919
  r,
932
920
  f,
933
- I,
934
- S,
921
+ D,
922
+ E,
935
923
  d,
936
924
  w,
937
925
  n,
938
- T,
926
+ S,
939
927
  z,
940
- C,
941
- q
928
+ W,
929
+ Z
942
930
  ];
943
931
  }
944
- class nn extends we {
932
+ class cn extends we {
945
933
  constructor(e) {
946
- super(), ye(this, e, tn, en, _e, {
934
+ super(), ye(this, e, un, ln, _e, {
947
935
  feature: 0,
948
936
  style: 1,
949
937
  showPlaceType: 2,
@@ -952,92 +940,92 @@ class nn extends we {
952
940
  });
953
941
  }
954
942
  }
955
- function rn(i) {
943
+ function dn(i) {
956
944
  let e;
957
945
  return {
958
946
  c() {
959
947
  e = U("div"), e.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>', a(e, "class", "svelte-7cmwmc");
960
948
  },
961
949
  m(t, n) {
962
- j(t, e, n);
950
+ B(t, e, n);
963
951
  },
964
952
  p: P,
965
953
  i: P,
966
954
  o: P,
967
955
  d(t) {
968
- t && A(e);
956
+ t && I(e);
969
957
  }
970
958
  };
971
959
  }
972
- class on extends we {
960
+ class fn extends we {
973
961
  constructor(e) {
974
- super(), ye(this, e, null, rn, _e, {});
962
+ super(), ye(this, e, null, dn, _e, {});
975
963
  }
976
964
  }
977
- function sn(i) {
965
+ function mn(i) {
978
966
  let e, t;
979
967
  return {
980
968
  c() {
981
- e = se("svg"), t = se("path"), a(t, "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"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
969
+ e = le("svg"), t = le("path"), a(t, "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"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
982
970
  },
983
971
  m(n, r) {
984
- j(n, e, r), N(e, t);
972
+ B(n, e, r), M(e, t);
985
973
  },
986
974
  p: P,
987
975
  i: P,
988
976
  o: P,
989
977
  d(n) {
990
- n && A(e);
978
+ n && I(e);
991
979
  }
992
980
  };
993
981
  }
994
- class an extends we {
982
+ class gn extends we {
995
983
  constructor(e) {
996
- super(), ye(this, e, null, sn, _e, {});
984
+ super(), ye(this, e, null, mn, _e, {});
997
985
  }
998
986
  }
999
- function ln(i) {
987
+ function hn(i) {
1000
988
  let e, t, n;
1001
989
  return {
1002
990
  c() {
1003
- e = se("svg"), t = se("circle"), n = se("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
991
+ e = le("svg"), t = le("circle"), n = le("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
1004
992
  },
1005
993
  m(r, u) {
1006
- j(r, e, u), N(e, t), N(e, n);
994
+ B(r, e, u), M(e, t), M(e, n);
1007
995
  },
1008
996
  p: P,
1009
997
  i: P,
1010
998
  o: P,
1011
999
  d(r) {
1012
- r && A(e);
1000
+ r && I(e);
1013
1001
  }
1014
1002
  };
1015
1003
  }
1016
- class un extends we {
1004
+ class bn extends we {
1017
1005
  constructor(e) {
1018
- super(), ye(this, e, null, ln, _e, {});
1006
+ super(), ye(this, e, null, hn, _e, {});
1019
1007
  }
1020
1008
  }
1021
- function cn(i, e, t) {
1009
+ function vn(i, e, t) {
1022
1010
  const n = e[1], r = e[0], u = n - r;
1023
1011
  return i === n && t ? i : ((i - r) % u + u) % u + r;
1024
1012
  }
1025
- function Mt(i) {
1013
+ function Dt(i) {
1026
1014
  const e = [...i];
1027
1015
  return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
1028
1016
  }
1029
- let We;
1030
- async function dn(i, e, t) {
1017
+ let Re;
1018
+ async function Ln(i, e, t) {
1031
1019
  const n = i == null ? void 0 : i.getCenterAndZoom();
1032
1020
  for (const r of e ?? [])
1033
1021
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
1034
1022
  if (r.type === "fixed")
1035
1023
  return r.coordinates.join(",");
1036
1024
  e: if (r.type === "client-geolocation") {
1037
- if (We && r.cachedLocationExpiry && We.time + r.cachedLocationExpiry > Date.now()) {
1038
- if (!We.coords)
1025
+ if (Re && r.cachedLocationExpiry && Re.time + r.cachedLocationExpiry > Date.now()) {
1026
+ if (!Re.coords)
1039
1027
  break e;
1040
- return We.coords;
1028
+ return Re.coords;
1041
1029
  }
1042
1030
  let u;
1043
1031
  try {
@@ -1058,7 +1046,7 @@ async function dn(i, e, t) {
1058
1046
  }), u;
1059
1047
  } catch {
1060
1048
  } finally {
1061
- r.cachedLocationExpiry && (We = {
1049
+ r.cachedLocationExpiry && (Re = {
1062
1050
  time: Date.now(),
1063
1051
  coords: u
1064
1052
  });
@@ -1072,8 +1060,8 @@ async function dn(i, e, t) {
1072
1060
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1073
1061
  }
1074
1062
  }
1075
- const fn = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Ct = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Wt = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, zt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Rt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ot = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
1076
- function mn(i) {
1063
+ const _n = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, It = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, At = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Pt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Bt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ft = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
1064
+ function yn(i) {
1077
1065
  if (!["DMS", "DM", "DD"].includes(i))
1078
1066
  throw new Error("invalid format specified");
1079
1067
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1082,35 +1070,35 @@ function mn(i) {
1082
1070
  i == "DD" && (d = `${r}° ${l}, ${u}° ${o}`);
1083
1071
  const c = Math.floor(r), f = Math.floor(u), g = (r - c) * 60, b = (u - f) * 60;
1084
1072
  if (i == "DM") {
1085
- let _ = Ut(g, 3).toFixed(3).padStart(6, "0"), w = Ut(b, 3).toFixed(3).padStart(6, "0");
1073
+ let _ = Gt(g, 3).toFixed(3).padStart(6, "0"), w = Gt(b, 3).toFixed(3).padStart(6, "0");
1086
1074
  _.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${c}° ${_}' ${l}, ${f}° ${w}' ${o}`;
1087
1075
  }
1088
1076
  if (i == "DMS") {
1089
1077
  const _ = Math.floor(g), w = Math.floor(b);
1090
- let I = ((g - _) * 60).toFixed(1).padStart(4, "0"), S = ((b - w) * 60).toFixed(1).padStart(4, "0");
1091
- const T = _.toString().padStart(2, "0"), z = w.toString().padStart(2, "0");
1092
- I.endsWith(".0") && S.endsWith(".0") && (I = I.replace(/\.0$/, ""), S = S.replace(/\.0$/, "")), d = `${c}° ${T}' ${I}" ${l}, ${f}° ${z}' ${S}" ${o}`;
1078
+ let D = ((g - _) * 60).toFixed(1).padStart(4, "0"), E = ((b - w) * 60).toFixed(1).padStart(4, "0");
1079
+ const S = _.toString().padStart(2, "0"), z = w.toString().padStart(2, "0");
1080
+ D.endsWith(".0") && E.endsWith(".0") && (D = D.replace(/\.0$/, ""), E = E.replace(/\.0$/, "")), d = `${c}° ${S}' ${D}" ${l}, ${f}° ${z}' ${E}" ${o}`;
1093
1081
  }
1094
1082
  return d;
1095
1083
  } else
1096
1084
  throw new Error("no decimal coordinates to convert");
1097
1085
  }
1098
- function Ut(i, e) {
1086
+ function Gt(i, e) {
1099
1087
  const t = Math.pow(10, e);
1100
1088
  return Math.round((i + Number.EPSILON) * t) / t;
1101
1089
  }
1102
- function gt(i, e) {
1090
+ function vt(i, e) {
1103
1091
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1104
1092
  let t = null, n = null, r = "", u = "", l = null, o = [], d = !1;
1105
- if (fn.test(i))
1093
+ if (_n.test(i))
1106
1094
  throw new Error("invalid coordinate value");
1107
- if (Ct.test(i))
1108
- if (o = Ct.exec(i), d = ze(o), d)
1095
+ if (It.test(i))
1096
+ if (o = It.exec(i), d = Ue(o), d)
1109
1097
  t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), l = "DM";
1110
1098
  else
1111
1099
  throw new Error("invalid coordinate format");
1112
- else if (Wt.test(i))
1113
- if (o = Wt.exec(i), d = ze(o), d) {
1100
+ else if (At.test(i))
1101
+ if (o = At.exec(i), d = Ue(o), d) {
1114
1102
  if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
1115
1103
  throw new Error("integer only coordinate provided");
1116
1104
  if (Number(Math.round(n)) == Number(n))
@@ -1118,18 +1106,18 @@ function gt(i, e) {
1118
1106
  o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]);
1119
1107
  } else
1120
1108
  throw new Error("invalid decimal coordinate format");
1121
- else if (zt.test(i))
1122
- if (o = zt.exec(i), d = ze(o), d)
1109
+ else if (Pt.test(i))
1110
+ if (o = Pt.exec(i), d = Ue(o), d)
1123
1111
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[8]) : o[7] && (r = o[7], u = o[14]);
1124
1112
  else
1125
1113
  throw new Error("invalid DMS coordinates format");
1126
- else if (Rt.test(i))
1127
- if (o = Rt.exec(i), d = ze(o), d)
1114
+ else if (Bt.test(i))
1115
+ if (o = Bt.exec(i), d = Ue(o), d)
1128
1116
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6] / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
1129
1117
  else
1130
1118
  throw new Error("invalid DMS coordinates format");
1131
- else if (Ot.test(i)) {
1132
- if (o = Ot.exec(i), d = ze(o), o.filter((c) => c).length <= 5)
1119
+ else if (Ft.test(i)) {
1120
+ if (o = Ft.exec(i), d = Ue(o), o.filter((c) => c).length <= 5)
1133
1121
  throw new Error("invalid coordinates format");
1134
1122
  if (d)
1135
1123
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
@@ -1152,26 +1140,26 @@ function gt(i, e) {
1152
1140
  let g, b;
1153
1141
  const _ = /[,/;\u0020]/g, w = f.match(_);
1154
1142
  if (w == null) {
1155
- const T = Math.floor(i.length / 2);
1156
- g = f.substring(0, T).trim(), b = f.substring(T).trim();
1143
+ const S = Math.floor(i.length / 2);
1144
+ g = f.substring(0, S).trim(), b = f.substring(S).trim();
1157
1145
  } else {
1158
- let T;
1159
- w.length % 2 == 1 ? T = Math.floor(w.length / 2) : T = w.length / 2 - 1;
1146
+ let S;
1147
+ w.length % 2 == 1 ? S = Math.floor(w.length / 2) : S = w.length / 2 - 1;
1160
1148
  let z = 0;
1161
- if (T == 0)
1149
+ if (S == 0)
1162
1150
  z = f.indexOf(w[0]), g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
1163
1151
  else {
1164
- let C = 0, q = 0;
1165
- for (; C <= T; )
1166
- z = f.indexOf(w[C], q), q = z + 1, C++;
1152
+ let W = 0, Z = 0;
1153
+ for (; W <= S; )
1154
+ z = f.indexOf(w[W], Z), Z = z + 1, W++;
1167
1155
  g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
1168
1156
  }
1169
1157
  }
1170
- const I = g.split(".");
1171
- if (I.length == 2 && I[1] == 0 && I[1].length != 2)
1158
+ const D = g.split(".");
1159
+ if (D.length == 2 && D[1] == 0 && D[1].length != 2)
1172
1160
  throw new Error("invalid coordinates format");
1173
- const S = b.split(".");
1174
- if (S.length == 2 && S[1] == 0 && S[1].length != 2)
1161
+ const E = b.split(".");
1162
+ if (E.length == 2 && E[1] == 0 && E[1].length != 2)
1175
1163
  throw new Error("invalid coordinates format");
1176
1164
  if (/^\d+$/.test(g) || /^\d+$/.test(b))
1177
1165
  throw new Error("degree only coordinate/s provided");
@@ -1183,13 +1171,13 @@ function gt(i, e) {
1183
1171
  decimalLongitude: n,
1184
1172
  decimalCoordinates: `${t},${n}`,
1185
1173
  originalFormat: l,
1186
- closeEnough: gn,
1187
- toCoordinateFormat: mn
1174
+ closeEnough: wn,
1175
+ toCoordinateFormat: yn
1188
1176
  });
1189
1177
  } else
1190
1178
  throw new Error("coordinates pattern match failed");
1191
1179
  }
1192
- function ze(i) {
1180
+ function Ue(i) {
1193
1181
  if (!isNaN(i[0]))
1194
1182
  return !1;
1195
1183
  const e = [...i];
@@ -1208,28 +1196,28 @@ function ze(i) {
1208
1196
  }
1209
1197
  return !0;
1210
1198
  }
1211
- function Dt(i, e) {
1199
+ function jt(i, e) {
1212
1200
  const t = Math.abs(i - e);
1213
1201
  return Number(t.toFixed(6)) <= 1e-5;
1214
1202
  }
1215
- function gn(i) {
1203
+ function wn(i) {
1216
1204
  if (!i)
1217
1205
  throw new Error("coords must be provided");
1218
1206
  if (i.includes(",")) {
1219
1207
  const e = i.split(",");
1220
1208
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1221
1209
  throw new Error("coords are not valid decimals");
1222
- return Dt(this.decimalLatitude, Number(e[0])) && Dt(this.decimalLongitude, e[1]);
1210
+ return jt(this.decimalLatitude, Number(e[0])) && jt(this.decimalLongitude, e[1]);
1223
1211
  } else
1224
1212
  throw new Error("coords being tested must be separated by a comma");
1225
1213
  }
1226
- const hn = Object.freeze({
1214
+ const pn = Object.freeze({
1227
1215
  DMS: "DMS",
1228
1216
  DM: "DM",
1229
1217
  DD: "DD"
1230
1218
  });
1231
- gt.to = hn;
1232
- const bn = [
1219
+ vt.to = pn;
1220
+ const En = [
1233
1221
  {
1234
1222
  verbatimCoordinates: "40.123, -74.123",
1235
1223
  verbatimLatitude: "40.123",
@@ -1370,10 +1358,10 @@ const bn = [
1370
1358
  verbatimLatitude: "40 7 22.8",
1371
1359
  verbatimLongitude: "-74 7 22.8"
1372
1360
  }
1373
- ], vn = {
1361
+ ], Sn = {
1374
1362
  decimalLatitude: 40.123,
1375
1363
  decimalLongitude: -74.123
1376
- }, Ln = [
1364
+ }, Tn = [
1377
1365
  {
1378
1366
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1379
1367
  verbatimLatitude: `50°4'17.698"south`,
@@ -1458,7 +1446,7 @@ const bn = [
1458
1446
  decimalLatitude: -18.4,
1459
1447
  decimalLongitude: 22.75
1460
1448
  }
1461
- ], _n = [
1449
+ ], Nn = [
1462
1450
  {
1463
1451
  verbatimCoordinates: "10.432342S 10.6345345E",
1464
1452
  verbatimLatitude: "10.432342S",
@@ -1593,49 +1581,49 @@ const bn = [
1593
1581
  decimalLongitude: 18.33453
1594
1582
  }
1595
1583
  ];
1596
- function yn() {
1584
+ function kn() {
1597
1585
  const i = [];
1598
- return bn.forEach((e) => {
1599
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...vn });
1600
- }), [...i, ...Ln, ..._n];
1601
- }
1602
- const wn = yn();
1603
- gt.formats = wn.map((i) => i.verbatimCoordinates);
1604
- const pn = gt;
1605
- function It(i, e, t) {
1586
+ return En.forEach((e) => {
1587
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Sn });
1588
+ }), [...i, ...Tn, ...Nn];
1589
+ }
1590
+ const Mn = kn();
1591
+ vt.formats = Mn.map((i) => i.verbatimCoordinates);
1592
+ const Cn = vt;
1593
+ function Ht(i, e, t) {
1606
1594
  const n = i.slice();
1607
- return n[94] = e[t], n[96] = t, n;
1595
+ return n[97] = e[t], n[99] = t, n;
1608
1596
  }
1609
- function At(i) {
1597
+ function Zt(i) {
1610
1598
  let e, t;
1611
- return e = new on({}), {
1599
+ return e = new fn({}), {
1612
1600
  c() {
1613
- ge(e.$$.fragment);
1601
+ he(e.$$.fragment);
1614
1602
  },
1615
1603
  m(n, r) {
1616
- ae(e, n, r), t = !0;
1604
+ ue(e, n, r), t = !0;
1617
1605
  },
1618
1606
  i(n) {
1619
- t || (Z(e.$$.fragment, n), t = !0);
1607
+ t || (j(e.$$.fragment, n), t = !0);
1620
1608
  },
1621
1609
  o(n) {
1622
- K(e.$$.fragment, n), t = !1;
1610
+ Q(e.$$.fragment, n), t = !1;
1623
1611
  },
1624
1612
  d(n) {
1625
- le(e, n);
1613
+ ce(e, n);
1626
1614
  }
1627
1615
  };
1628
1616
  }
1629
- function Bt(i) {
1617
+ function qt(i) {
1630
1618
  let e, t, n, r, u;
1631
- return t = new an({}), {
1619
+ return t = new gn({}), {
1632
1620
  c() {
1633
- e = U("button"), ge(t.$$.fragment), a(e, "type", "button"), a(
1621
+ e = U("button"), he(t.$$.fragment), a(e, "type", "button"), a(
1634
1622
  e,
1635
1623
  "title",
1636
1624
  /*reverseButtonTitle*/
1637
1625
  i[10]
1638
- ), a(e, "class", "svelte-bz0zu3"), Te(
1626
+ ), a(e, "class", "svelte-bz0zu3"), ke(
1639
1627
  e,
1640
1628
  "active",
1641
1629
  /*reverseActive*/
@@ -1643,11 +1631,11 @@ function Bt(i) {
1643
1631
  );
1644
1632
  },
1645
1633
  m(l, o) {
1646
- j(l, e, o), ae(t, e, null), n = !0, r || (u = Q(
1634
+ B(l, e, o), ue(t, e, null), n = !0, r || (u = q(
1647
1635
  e,
1648
1636
  "click",
1649
1637
  /*click_handler_3*/
1650
- i[78]
1638
+ i[79]
1651
1639
  ), r = !0);
1652
1640
  },
1653
1641
  p(l, o) {
@@ -1658,7 +1646,7 @@ function Bt(i) {
1658
1646
  /*reverseButtonTitle*/
1659
1647
  l[10]
1660
1648
  ), (!n || o[0] & /*reverseActive*/
1661
- 1) && Te(
1649
+ 1) && ke(
1662
1650
  e,
1663
1651
  "active",
1664
1652
  /*reverseActive*/
@@ -1666,30 +1654,30 @@ function Bt(i) {
1666
1654
  );
1667
1655
  },
1668
1656
  i(l) {
1669
- n || (Z(t.$$.fragment, l), n = !0);
1657
+ n || (j(t.$$.fragment, l), n = !0);
1670
1658
  },
1671
1659
  o(l) {
1672
- K(t.$$.fragment, l), n = !1;
1660
+ Q(t.$$.fragment, l), n = !1;
1673
1661
  },
1674
1662
  d(l) {
1675
- l && A(e), le(t), r = !1, u();
1663
+ l && I(e), ce(t), r = !1, u();
1676
1664
  }
1677
1665
  };
1678
1666
  }
1679
- function En(i) {
1680
- let e, t = [], n = /* @__PURE__ */ new Map(), r, u, l, o = Nt(
1667
+ function Wn(i) {
1668
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, u, l, o = Rt(
1681
1669
  /*listFeatures*/
1682
1670
  i[13]
1683
1671
  );
1684
1672
  const d = (c) => (
1685
1673
  /*feature*/
1686
- c[94].id + /*feature*/
1687
- (c[94].address ? "," + /*feature*/
1688
- c[94].address : "")
1674
+ c[97].id + /*feature*/
1675
+ (c[97].address ? "," + /*feature*/
1676
+ c[97].address : "")
1689
1677
  );
1690
1678
  for (let c = 0; c < o.length; c += 1) {
1691
- let f = It(i, o, c), g = d(f);
1692
- n.set(g, t[c] = Pt(g, f));
1679
+ let f = Ht(i, o, c), g = d(f);
1680
+ n.set(g, t[c] = Qt(g, f));
1693
1681
  }
1694
1682
  return {
1695
1683
  c() {
@@ -1699,23 +1687,23 @@ function En(i) {
1699
1687
  a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
1700
1688
  },
1701
1689
  m(c, f) {
1702
- j(c, e, f);
1690
+ B(c, e, f);
1703
1691
  for (let g = 0; g < t.length; g += 1)
1704
1692
  t[g] && t[g].m(e, null);
1705
1693
  r = !0, u || (l = [
1706
- Q(
1694
+ q(
1707
1695
  e,
1708
1696
  "mouseleave",
1709
1697
  /*handleMouseLeave*/
1710
1698
  i[27]
1711
1699
  ),
1712
- Q(
1700
+ q(
1713
1701
  e,
1714
1702
  "blur",
1715
1703
  /*blur_handler_1*/
1716
- i[82]
1704
+ i[83]
1717
1705
  ),
1718
- Q(
1706
+ q(
1719
1707
  e,
1720
1708
  "keydown",
1721
1709
  /*handleKeyDown*/
@@ -1725,141 +1713,141 @@ function En(i) {
1725
1713
  },
1726
1714
  p(c, f) {
1727
1715
  f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1728
- 102823936 && (o = Nt(
1716
+ 102823936 && (o = Rt(
1729
1717
  /*listFeatures*/
1730
1718
  c[13]
1731
- ), Qe(), t = Fi(t, f, d, 1, c, o, n, e, ji, Pt, null, It), Ke());
1719
+ ), Ye(), t = Vi(t, f, d, 1, c, o, n, e, Ki, Qt, null, Ht), Xe());
1732
1720
  },
1733
1721
  i(c) {
1734
1722
  if (!r) {
1735
1723
  for (let f = 0; f < o.length; f += 1)
1736
- Z(t[f]);
1724
+ j(t[f]);
1737
1725
  r = !0;
1738
1726
  }
1739
1727
  },
1740
1728
  o(c) {
1741
1729
  for (let f = 0; f < t.length; f += 1)
1742
- K(t[f]);
1730
+ Q(t[f]);
1743
1731
  r = !1;
1744
1732
  },
1745
1733
  d(c) {
1746
- c && A(e);
1734
+ c && I(e);
1747
1735
  for (let f = 0; f < t.length; f += 1)
1748
1736
  t[f].d();
1749
- u = !1, ue(l);
1737
+ u = !1, de(l);
1750
1738
  }
1751
1739
  };
1752
1740
  }
1753
- function Sn(i) {
1741
+ function zn(i) {
1754
1742
  let e, t, n, r, u, l;
1755
- return t = new Jt({}), {
1743
+ return t = new ii({}), {
1756
1744
  c() {
1757
- e = U("div"), ge(t.$$.fragment), n = Y(), r = U("div"), u = me(
1745
+ e = U("div"), he(t.$$.fragment), n = $(), r = U("div"), u = ge(
1758
1746
  /*noResultsMessage*/
1759
1747
  i[8]
1760
1748
  ), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
1761
1749
  },
1762
1750
  m(o, d) {
1763
- j(o, e, d), ae(t, e, null), N(e, n), N(e, r), N(r, u), l = !0;
1751
+ B(o, e, d), ue(t, e, null), M(e, n), M(e, r), M(r, u), l = !0;
1764
1752
  },
1765
1753
  p(o, d) {
1766
1754
  (!l || d[0] & /*noResultsMessage*/
1767
- 256) && Oe(
1755
+ 256) && Ie(
1768
1756
  u,
1769
1757
  /*noResultsMessage*/
1770
1758
  o[8]
1771
1759
  );
1772
1760
  },
1773
1761
  i(o) {
1774
- l || (Z(t.$$.fragment, o), l = !0);
1762
+ l || (j(t.$$.fragment, o), l = !0);
1775
1763
  },
1776
1764
  o(o) {
1777
- K(t.$$.fragment, o), l = !1;
1765
+ Q(t.$$.fragment, o), l = !1;
1778
1766
  },
1779
1767
  d(o) {
1780
- o && A(e), le(t);
1768
+ o && I(e), ce(t);
1781
1769
  }
1782
1770
  };
1783
1771
  }
1784
- function Tn(i) {
1772
+ function On(i) {
1785
1773
  let e = "", t;
1786
1774
  return {
1787
1775
  c() {
1788
- t = me(e);
1776
+ t = ge(e);
1789
1777
  },
1790
1778
  m(n, r) {
1791
- j(n, t, r);
1779
+ B(n, t, r);
1792
1780
  },
1793
1781
  p: P,
1794
1782
  i: P,
1795
1783
  o: P,
1796
1784
  d(n) {
1797
- n && A(t);
1785
+ n && I(t);
1798
1786
  }
1799
1787
  };
1800
1788
  }
1801
- function Nn(i) {
1789
+ function Rn(i) {
1802
1790
  let e, t, n, r, u, l, o, d, c, f, g;
1803
- return t = new Jt({}), d = new Vt({}), {
1791
+ return t = new ii({}), d = new ti({}), {
1804
1792
  c() {
1805
- e = U("div"), ge(t.$$.fragment), n = Y(), r = U("div"), u = me(
1793
+ e = U("div"), he(t.$$.fragment), n = $(), r = U("div"), u = ge(
1806
1794
  /*errorMessage*/
1807
1795
  i[7]
1808
- ), l = Y(), o = U("button"), ge(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1796
+ ), l = $(), o = U("button"), he(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1809
1797
  },
1810
1798
  m(b, _) {
1811
- j(b, e, _), ae(t, e, null), N(e, n), N(e, r), N(r, u), N(e, l), N(e, o), ae(d, o, null), c = !0, f || (g = Q(
1799
+ B(b, e, _), ue(t, e, null), M(e, n), M(e, r), M(r, u), M(e, l), M(e, o), ue(d, o, null), c = !0, f || (g = q(
1812
1800
  o,
1813
1801
  "click",
1814
1802
  /*click_handler_4*/
1815
- i[79]
1803
+ i[80]
1816
1804
  ), f = !0);
1817
1805
  },
1818
1806
  p(b, _) {
1819
1807
  (!c || _[0] & /*errorMessage*/
1820
- 128) && Oe(
1808
+ 128) && Ie(
1821
1809
  u,
1822
1810
  /*errorMessage*/
1823
1811
  b[7]
1824
1812
  );
1825
1813
  },
1826
1814
  i(b) {
1827
- c || (Z(t.$$.fragment, b), Z(d.$$.fragment, b), c = !0);
1815
+ c || (j(t.$$.fragment, b), j(d.$$.fragment, b), c = !0);
1828
1816
  },
1829
1817
  o(b) {
1830
- K(t.$$.fragment, b), K(d.$$.fragment, b), c = !1;
1818
+ Q(t.$$.fragment, b), Q(d.$$.fragment, b), c = !1;
1831
1819
  },
1832
1820
  d(b) {
1833
- b && A(e), le(t), le(d), f = !1, g();
1821
+ b && I(e), ce(t), ce(d), f = !1, g();
1834
1822
  }
1835
1823
  };
1836
1824
  }
1837
- function Pt(i, e) {
1825
+ function Qt(i, e) {
1838
1826
  var o;
1839
1827
  let t, n, r;
1840
1828
  function u() {
1841
1829
  return (
1842
1830
  /*mouseenter_handler*/
1843
- e[80](
1831
+ e[81](
1844
1832
  /*i*/
1845
- e[96]
1833
+ e[99]
1846
1834
  )
1847
1835
  );
1848
1836
  }
1849
1837
  function l() {
1850
1838
  return (
1851
1839
  /*select_handler*/
1852
- e[81](
1840
+ e[82](
1853
1841
  /*feature*/
1854
- e[94]
1842
+ e[97]
1855
1843
  )
1856
1844
  );
1857
1845
  }
1858
- return n = new nn({
1846
+ return n = new cn({
1859
1847
  props: {
1860
1848
  feature: (
1861
1849
  /*feature*/
1862
- e[94]
1850
+ e[97]
1863
1851
  ),
1864
1852
  showPlaceType: (
1865
1853
  /*showPlaceType*/
@@ -1868,10 +1856,10 @@ function Pt(i, e) {
1868
1856
  style: (
1869
1857
  /*selectedItemIndex*/
1870
1858
  e[15] === /*i*/
1871
- e[96] ? "selected" : (
1859
+ e[99] ? "selected" : (
1872
1860
  /*picked*/
1873
1861
  ((o = e[14]) == null ? void 0 : o.id) === /*feature*/
1874
- e[94].id ? "picked" : "default"
1862
+ e[97].id ? "picked" : "default"
1875
1863
  )
1876
1864
  ),
1877
1865
  missingIconsCache: (
@@ -1887,10 +1875,10 @@ function Pt(i, e) {
1887
1875
  key: i,
1888
1876
  first: null,
1889
1877
  c() {
1890
- t = Wi(), ge(n.$$.fragment), this.first = t;
1878
+ t = Ai(), he(n.$$.fragment), this.first = t;
1891
1879
  },
1892
1880
  m(d, c) {
1893
- j(d, t, c), ae(n, d, c), r = !0;
1881
+ B(d, t, c), ue(n, d, c), r = !0;
1894
1882
  },
1895
1883
  p(d, c) {
1896
1884
  var g;
@@ -1898,70 +1886,70 @@ function Pt(i, e) {
1898
1886
  const f = {};
1899
1887
  c[0] & /*listFeatures*/
1900
1888
  8192 && (f.feature = /*feature*/
1901
- e[94]), c[0] & /*showPlaceType*/
1889
+ e[97]), c[0] & /*showPlaceType*/
1902
1890
  2048 && (f.showPlaceType = /*showPlaceType*/
1903
1891
  e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
1904
1892
  57344 && (f.style = /*selectedItemIndex*/
1905
1893
  e[15] === /*i*/
1906
- e[96] ? "selected" : (
1894
+ e[99] ? "selected" : (
1907
1895
  /*picked*/
1908
1896
  ((g = e[14]) == null ? void 0 : g.id) === /*feature*/
1909
- e[94].id ? "picked" : "default"
1897
+ e[97].id ? "picked" : "default"
1910
1898
  )), c[0] & /*iconsBaseUrl*/
1911
1899
  4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
1912
1900
  e[12]), n.$set(f);
1913
1901
  },
1914
1902
  i(d) {
1915
- r || (Z(n.$$.fragment, d), r = !0);
1903
+ r || (j(n.$$.fragment, d), r = !0);
1916
1904
  },
1917
1905
  o(d) {
1918
- K(n.$$.fragment, d), r = !1;
1906
+ Q(n.$$.fragment, d), r = !1;
1919
1907
  },
1920
1908
  d(d) {
1921
- d && A(t), le(n, d);
1909
+ d && I(t), ce(n, d);
1922
1910
  }
1923
1911
  };
1924
1912
  }
1925
- function kn(i) {
1926
- let e, t, n, r, u, l, o, d, c, f, g, b, _, w, I, S, T, z, C, q, J, k = !1;
1927
- u = new un({}), g = new Vt({});
1928
- let L = (
1913
+ function Un(i) {
1914
+ let e, t, n, r, u, l, o, d, c, f, g, b, _, w, D, E, S, z, W, Z, V, C = !1;
1915
+ u = new bn({}), g = new ti({});
1916
+ let v = (
1929
1917
  /*abortController*/
1930
- i[20] && At()
1918
+ i[20] && Zt()
1931
1919
  ), y = (
1932
1920
  /*enableReverse*/
1933
- i[6] === "button" && Bt(i)
1921
+ i[6] === "button" && qt(i)
1934
1922
  );
1935
- const M = (
1923
+ const N = (
1936
1924
  /*#slots*/
1937
- i[69].default
1938
- ), m = Ni(
1939
- M,
1925
+ i[70].default
1926
+ ), k = Ri(
1927
+ N,
1940
1928
  i,
1941
1929
  /*$$scope*/
1942
- i[68],
1930
+ i[69],
1943
1931
  null
1944
- ), p = [Nn, Tn, Sn, En], R = [];
1945
- function ke(v, O) {
1946
- var re, F;
1932
+ ), p = [Rn, On, zn, Wn], m = [];
1933
+ function be(L, F) {
1934
+ var ne, ee;
1947
1935
  return (
1948
1936
  /*error*/
1949
- v[19] ? 0 : !/*focusedDelayed*/
1950
- v[16] && !/*keepListOpen*/
1951
- v[4] ? 1 : (
1937
+ L[19] ? 0 : !/*focusedDelayed*/
1938
+ L[16] && !/*keepListOpen*/
1939
+ L[4] ? 1 : (
1952
1940
  /*listFeatures*/
1953
- ((re = v[13]) == null ? void 0 : re.length) === 0 ? 2 : (
1941
+ ((ne = L[13]) == null ? void 0 : ne.length) === 0 ? 2 : (
1954
1942
  /*listFeatures*/
1955
- (F = v[13]) != null && F.length && /*focusedDelayed*/
1956
- (v[16] || /*keepListOpen*/
1957
- v[4]) ? 3 : -1
1943
+ (ee = L[13]) != null && ee.length && /*focusedDelayed*/
1944
+ (L[16] || /*keepListOpen*/
1945
+ L[4]) ? 3 : -1
1958
1946
  )
1959
1947
  )
1960
1948
  );
1961
1949
  }
1962
- return ~(S = ke(i)) && (T = R[S] = p[S](i)), {
1950
+ return ~(E = be(i)) && (S = m[E] = p[E](i)), {
1963
1951
  c() {
1964
- e = Y(), t = U("form"), n = U("div"), r = U("button"), ge(u.$$.fragment), l = Y(), o = U("input"), d = Y(), c = U("div"), f = U("button"), ge(g.$$.fragment), b = Y(), L && L.c(), _ = Y(), y && y.c(), w = Y(), m && m.c(), I = Y(), T && T.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1952
+ e = $(), t = U("form"), n = U("div"), r = U("button"), he(u.$$.fragment), l = $(), o = U("input"), d = $(), c = U("div"), f = U("button"), he(g.$$.fragment), b = $(), v && v.c(), _ = $(), y && y.c(), w = $(), k && k.c(), D = $(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1965
1953
  o,
1966
1954
  "placeholder",
1967
1955
  /*placeholder*/
@@ -1976,15 +1964,15 @@ function kn(i) {
1976
1964
  "title",
1977
1965
  /*clearButtonTitle*/
1978
1966
  i[3]
1979
- ), a(f, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"), Te(
1967
+ ), a(f, "class", "svelte-bz0zu3"), a(c, "class", "clear-button-container svelte-bz0zu3"), ke(
1980
1968
  c,
1981
1969
  "displayable",
1982
1970
  /*searchValue*/
1983
1971
  i[1] !== ""
1984
- ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = Ve(
1972
+ ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = Je(
1985
1973
  /*className*/
1986
1974
  i[2]
1987
- ) + " svelte-bz0zu3"), Te(
1975
+ ) + " svelte-bz0zu3"), ke(
1988
1976
  t,
1989
1977
  "can-collapse",
1990
1978
  /*collapsed*/
@@ -1992,158 +1980,158 @@ function kn(i) {
1992
1980
  i[1] === ""
1993
1981
  );
1994
1982
  },
1995
- m(v, O) {
1996
- j(v, e, O), j(v, t, O), N(t, n), N(n, r), ae(u, r, null), N(n, l), N(n, o), i[71](o), St(
1983
+ m(L, F) {
1984
+ B(L, e, F), B(L, t, F), M(t, n), M(n, r), ue(u, r, null), M(n, l), M(n, o), i[72](o), zt(
1997
1985
  o,
1998
1986
  /*searchValue*/
1999
1987
  i[1]
2000
- ), N(n, d), N(n, c), N(c, f), ae(g, f, null), N(c, b), L && L.m(c, null), N(n, _), y && y.m(n, null), N(n, w), m && m.m(n, null), N(t, I), ~S && R[S].m(t, null), C = !0, q || (J = [
2001
- Q(
1988
+ ), M(n, d), M(n, c), M(c, f), ue(g, f, null), M(c, b), v && v.m(c, null), M(n, _), y && y.m(n, null), M(n, w), k && k.m(n, null), M(t, D), ~E && m[E].m(t, null), W = !0, Z || (V = [
1989
+ q(
2002
1990
  r,
2003
1991
  "click",
2004
1992
  /*click_handler*/
2005
- i[70]
1993
+ i[71]
2006
1994
  ),
2007
- Q(
1995
+ q(
2008
1996
  o,
2009
1997
  "input",
2010
1998
  /*input_1_input_handler*/
2011
- i[72]
1999
+ i[73]
2012
2000
  ),
2013
- Q(
2001
+ q(
2014
2002
  o,
2015
2003
  "focus",
2016
2004
  /*focus_handler*/
2017
- i[73]
2005
+ i[74]
2018
2006
  ),
2019
- Q(
2007
+ q(
2020
2008
  o,
2021
2009
  "blur",
2022
2010
  /*blur_handler*/
2023
- i[74]
2011
+ i[75]
2024
2012
  ),
2025
- Q(
2013
+ q(
2026
2014
  o,
2027
2015
  "click",
2028
2016
  /*click_handler_1*/
2029
- i[75]
2017
+ i[76]
2030
2018
  ),
2031
- Q(
2019
+ q(
2032
2020
  o,
2033
2021
  "keydown",
2034
2022
  /*handleKeyDown*/
2035
2023
  i[23]
2036
2024
  ),
2037
- Q(
2025
+ q(
2038
2026
  o,
2039
2027
  "input",
2040
2028
  /*handleInput*/
2041
2029
  i[24]
2042
2030
  ),
2043
- Q(
2031
+ q(
2044
2032
  o,
2045
2033
  "change",
2046
2034
  /*change_handler*/
2047
- i[76]
2035
+ i[77]
2048
2036
  ),
2049
- Q(
2037
+ q(
2050
2038
  f,
2051
2039
  "click",
2052
2040
  /*click_handler_2*/
2053
- i[77]
2041
+ i[78]
2054
2042
  ),
2055
- Q(t, "submit", zi(
2043
+ q(t, "submit", Pi(
2056
2044
  /*handleSubmit*/
2057
2045
  i[22]
2058
2046
  ))
2059
- ], q = !0);
2047
+ ], Z = !0);
2060
2048
  },
2061
- p(v, O) {
2062
- (!C || O[0] & /*placeholder*/
2049
+ p(L, F) {
2050
+ (!W || F[0] & /*placeholder*/
2063
2051
  512) && a(
2064
2052
  o,
2065
2053
  "placeholder",
2066
2054
  /*placeholder*/
2067
- v[9]
2068
- ), (!C || O[0] & /*placeholder*/
2055
+ L[9]
2056
+ ), (!W || F[0] & /*placeholder*/
2069
2057
  512) && a(
2070
2058
  o,
2071
2059
  "aria-label",
2072
2060
  /*placeholder*/
2073
- v[9]
2074
- ), O[0] & /*searchValue*/
2061
+ L[9]
2062
+ ), F[0] & /*searchValue*/
2075
2063
  2 && o.value !== /*searchValue*/
2076
- v[1] && St(
2064
+ L[1] && zt(
2077
2065
  o,
2078
2066
  /*searchValue*/
2079
- v[1]
2080
- ), (!C || O[0] & /*clearButtonTitle*/
2067
+ L[1]
2068
+ ), (!W || F[0] & /*clearButtonTitle*/
2081
2069
  8) && a(
2082
2070
  f,
2083
2071
  "title",
2084
2072
  /*clearButtonTitle*/
2085
- v[3]
2073
+ L[3]
2086
2074
  ), /*abortController*/
2087
- v[20] ? L ? O[0] & /*abortController*/
2088
- 1048576 && Z(L, 1) : (L = At(), L.c(), Z(L, 1), L.m(c, null)) : L && (Qe(), K(L, 1, 1, () => {
2089
- L = null;
2090
- }), Ke()), (!C || O[0] & /*searchValue*/
2091
- 2) && Te(
2075
+ L[20] ? v ? F[0] & /*abortController*/
2076
+ 1048576 && j(v, 1) : (v = Zt(), v.c(), j(v, 1), v.m(c, null)) : v && (Ye(), Q(v, 1, 1, () => {
2077
+ v = null;
2078
+ }), Xe()), (!W || F[0] & /*searchValue*/
2079
+ 2) && ke(
2092
2080
  c,
2093
2081
  "displayable",
2094
2082
  /*searchValue*/
2095
- v[1] !== ""
2083
+ L[1] !== ""
2096
2084
  ), /*enableReverse*/
2097
- v[6] === "button" ? y ? (y.p(v, O), O[0] & /*enableReverse*/
2098
- 64 && Z(y, 1)) : (y = Bt(v), y.c(), Z(y, 1), y.m(n, w)) : y && (Qe(), K(y, 1, 1, () => {
2085
+ L[6] === "button" ? y ? (y.p(L, F), F[0] & /*enableReverse*/
2086
+ 64 && j(y, 1)) : (y = qt(L), y.c(), j(y, 1), y.m(n, w)) : y && (Ye(), Q(y, 1, 1, () => {
2099
2087
  y = null;
2100
- }), Ke()), m && m.p && (!C || O[2] & /*$$scope*/
2101
- 64) && Mi(
2102
- m,
2103
- M,
2104
- v,
2088
+ }), Xe()), k && k.p && (!W || F[2] & /*$$scope*/
2089
+ 128) && Di(
2090
+ k,
2091
+ N,
2092
+ L,
2105
2093
  /*$$scope*/
2106
- v[68],
2107
- C ? ki(
2108
- M,
2094
+ L[69],
2095
+ W ? Ui(
2096
+ N,
2109
2097
  /*$$scope*/
2110
- v[68],
2111
- O,
2098
+ L[69],
2099
+ F,
2112
2100
  null
2113
- ) : Ci(
2101
+ ) : Ii(
2114
2102
  /*$$scope*/
2115
- v[68]
2103
+ L[69]
2116
2104
  ),
2117
2105
  null
2118
2106
  );
2119
- let re = S;
2120
- S = ke(v), S === re ? ~S && R[S].p(v, O) : (T && (Qe(), K(R[re], 1, 1, () => {
2121
- R[re] = null;
2122
- }), Ke()), ~S ? (T = R[S], T ? T.p(v, O) : (T = R[S] = p[S](v), T.c()), Z(T, 1), T.m(t, null)) : T = null), (!C || O[0] & /*className*/
2123
- 4 && z !== (z = Ve(
2107
+ let ne = E;
2108
+ E = be(L), E === ne ? ~E && m[E].p(L, F) : (S && (Ye(), Q(m[ne], 1, 1, () => {
2109
+ m[ne] = null;
2110
+ }), Xe()), ~E ? (S = m[E], S ? S.p(L, F) : (S = m[E] = p[E](L), S.c()), j(S, 1), S.m(t, null)) : S = null), (!W || F[0] & /*className*/
2111
+ 4 && z !== (z = Je(
2124
2112
  /*className*/
2125
- v[2]
2126
- ) + " svelte-bz0zu3")) && a(t, "class", z), (!C || O[0] & /*className, collapsed, searchValue*/
2127
- 38) && Te(
2113
+ L[2]
2114
+ ) + " svelte-bz0zu3")) && a(t, "class", z), (!W || F[0] & /*className, collapsed, searchValue*/
2115
+ 38) && ke(
2128
2116
  t,
2129
2117
  "can-collapse",
2130
2118
  /*collapsed*/
2131
- v[5] && /*searchValue*/
2132
- v[1] === ""
2119
+ L[5] && /*searchValue*/
2120
+ L[1] === ""
2133
2121
  );
2134
2122
  },
2135
- i(v) {
2136
- C || (Z(k), Z(u.$$.fragment, v), Z(g.$$.fragment, v), Z(L), Z(y), Z(m, v), Z(T), C = !0);
2123
+ i(L) {
2124
+ W || (j(C), j(u.$$.fragment, L), j(g.$$.fragment, L), j(v), j(y), j(k, L), j(S), W = !0);
2137
2125
  },
2138
- o(v) {
2139
- K(k), K(u.$$.fragment, v), K(g.$$.fragment, v), K(L), K(y), K(m, v), K(T), C = !1;
2126
+ o(L) {
2127
+ Q(C), Q(u.$$.fragment, L), Q(g.$$.fragment, L), Q(v), Q(y), Q(k, L), Q(S), W = !1;
2140
2128
  },
2141
- d(v) {
2142
- v && (A(e), A(t)), le(u), i[71](null), le(g), L && L.d(), y && y.d(), m && m.d(v), ~S && R[S].d(), q = !1, ue(J);
2129
+ d(L) {
2130
+ L && (I(e), I(t)), ce(u), i[72](null), ce(g), v && v.d(), y && y.d(), k && k.d(L), ~E && m[E].d(), Z = !1, de(V);
2143
2131
  }
2144
2132
  };
2145
2133
  }
2146
- function Mn(i, e, t) {
2134
+ function Dn(i, e, t) {
2147
2135
  let n, r, u, { $$slots: l = {}, $$scope: o } = e;
2148
2136
  const d = {
2149
2137
  continental_marine: 4,
@@ -2169,351 +2157,355 @@ function Mn(i, e, t) {
2169
2157
  "poi.restaurant": 18,
2170
2158
  "poi.aerodrome": 13
2171
2159
  };
2172
- let { class: c = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen: I = !1 } = e, { collapsed: S = !1 } = e, { country: T = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: C = "never" } = e, { errorMessage: q = "Something went wrong…" } = e, { filter: J = () => !0 } = e, { flyTo: k = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: y = void 0 } = e, { limit: M = void 0 } = e, { mapController: m = void 0 } = e, { minLength: p = 2 } = e, { noResultsMessage: R = "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: ke = "Search" } = e, { proximity: v = [{ type: "server-geolocation" }] } = e, { reverseActive: O = C === "always" } = e, { reverseButtonTitle: re = "toggle reverse geocoding" } = e, { searchValue: F = "" } = e, { pickedResultStyle: De = "full-geometry" } = e, { showPlaceType: ht = "if-needed" } = e, { showResultsWhileTyping: Ie = !0 } = e, { autocompleteTimeout: Je = void 0 } = e, { selectFirst: he = !0 } = e, { flyToSelected: Ae = !1 } = e, { markerOnSelected: Be = !0 } = e, { types: be = void 0 } = e, { exhaustiveReverseGeocoding: Xe = !1 } = e, { excludeTypes: Pe = !1 } = e, { zoom: je = d } = e, { apiUrl: Ye = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: xe = {} } = e, { iconsBaseUrl: bt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-with-autocomplete-timeout/icons/" } = e, { adjustUrlQuery: $e = () => {
2173
- } } = e, { adjustUrl: et = () => {
2160
+ let { class: c = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen: D = !1 } = e, { collapsed: E = !1 } = e, { country: S = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: W = "never" } = e, { errorMessage: Z = "Something went wrong…" } = e, { filter: V = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: v = !0 } = e, { language: y = void 0 } = e, { limit: N = void 0 } = e;
2161
+ const k = 41415112612;
2162
+ let { reverseGeocodingLimit: p = k } = e, { mapController: m = void 0 } = e, { minLength: be = 2 } = e, { noResultsMessage: L = "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: F = "Search" } = e, { proximity: ne = [{ type: "server-geolocation" }] } = e, { reverseActive: ee = W === "always" } = e, { reverseButtonTitle: Lt = "toggle reverse geocoding" } = e, { searchValue: K = "" } = e, { pickedResultStyle: Pe = "full-geometry" } = e, { showPlaceType: _t = "if-needed" } = e, { showResultsWhileTyping: Be = !0 } = e, { selectFirst: pe = !0 } = e, { flyToSelected: Fe = !1 } = e, { markerOnSelected: Ge = !0 } = e, { types: xe = void 0 } = e;
2163
+ const yt = [];
2164
+ let { reverseGeocodingTypes: je = yt } = e, { exhaustiveReverseGeocoding: $e = !1 } = e, { excludeTypes: et = !1 } = e;
2165
+ const wt = void 0;
2166
+ let { reverseGeocodingExcludeTypes: He = wt } = e, { zoom: Ze = d } = e, { apiUrl: tt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: it = {} } = e, { iconsBaseUrl: pt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.2/icons/" } = e, { adjustUrlQuery: nt = () => {
2167
+ } } = e, { adjustUrl: rt = () => {
2174
2168
  } } = e;
2175
- function Xt(s) {
2176
- $.focus(s);
2169
+ function ni(s) {
2170
+ ie.focus(s);
2177
2171
  }
2178
- function Yt() {
2179
- $.blur();
2172
+ function ri() {
2173
+ ie.blur();
2180
2174
  }
2181
- function vt(s, B = !0, H = !1) {
2182
- t(1, F = s), B ? (t(15, W = -1), _t()) : (yt(void 0, !H, H), setTimeout(() => {
2183
- $.focus(), $.select();
2175
+ function Et(s, A = !0, G = !1) {
2176
+ t(1, K = s), A ? (t(15, O = -1), Tt()) : (Nt(void 0, !G, G), setTimeout(() => {
2177
+ ie.focus(), ie.select();
2184
2178
  }));
2185
2179
  }
2186
- function xt() {
2187
- t(13, E = void 0), t(14, h = void 0), t(15, W = -1);
2188
- }
2189
- function $t() {
2190
- t(62, G = []), t(14, h = void 0);
2180
+ function oi() {
2181
+ t(13, T = void 0), t(14, h = void 0), t(15, O = -1);
2191
2182
  }
2192
- let E, G, h, Lt = "", $, W = -1, ie, Fe = [], ve, ce, x, pe, tt, oe = !1;
2193
- const ei = /* @__PURE__ */ new Set(), de = Qt();
2194
- function ti() {
2195
- return !!x;
2183
+ function si() {
2184
+ t(64, H = []), t(14, h = void 0);
2196
2185
  }
2197
- Ui(() => {
2186
+ let T, H, h, St = "", ie, O = -1, re, qe = [], ve, Ee, Se, ot, ae = !1;
2187
+ const ai = /* @__PURE__ */ new Set(), fe = $t();
2188
+ Gi(() => {
2198
2189
  m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
2199
2190
  });
2200
- function _t(s) {
2201
- if (t(17, oe = !1), ce && (window.clearTimeout(ce), ce = void 0), x) {
2202
- window.clearTimeout(x), t(63, x = void 0), Me(F, { appendSpace: !0 });
2203
- return;
2204
- }
2205
- if (W > -1 && E)
2206
- t(14, h = E[W]), t(1, F = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, ie = void 0), t(62, G = void 0), t(15, W = -1);
2207
- else if (F) {
2208
- const B = s || !it(F);
2209
- Me(F, { exact: !0 }).then(() => {
2210
- t(62, G = E), t(14, h = void 0), B && ii();
2211
- }).catch((H) => t(19, ie = H));
2191
+ function Tt(s) {
2192
+ if (t(17, ae = !1), Ee && (clearTimeout(Ee), Ee = void 0), O > -1 && T)
2193
+ t(14, h = T[O]), t(1, K = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, re = void 0), t(64, H = void 0), t(15, O = -1);
2194
+ else if (K) {
2195
+ const A = s || !st(K);
2196
+ at(K, { exact: !0 }).then(() => {
2197
+ t(64, H = T), t(14, h = void 0), A && li();
2198
+ }).catch((G) => t(19, re = G));
2212
2199
  }
2213
2200
  }
2214
- function it(s) {
2201
+ function st(s) {
2215
2202
  try {
2216
- return pn(s, 6);
2203
+ return Cn(s, 6);
2217
2204
  } catch {
2218
2205
  return !1;
2219
2206
  }
2220
2207
  }
2221
- async function Me(s, { byId: B = !1, exact: H = !1, appendSpace: ee = !1 } = {}) {
2222
- var ne, fe;
2223
- t(19, ie = void 0), ve == null || ve.abort();
2224
- const V = new AbortController();
2225
- t(20, ve = V);
2208
+ async function at(s, { byId: A = !1, exact: G = !1 } = {}) {
2209
+ var x, oe, me;
2210
+ t(19, re = void 0), ve == null || ve.abort();
2211
+ const J = new AbortController();
2212
+ t(20, ve = J);
2226
2213
  try {
2227
- const D = it(s), ot = new URL(Ye + "/" + encodeURIComponent(D ? D.decimalLongitude + "," + D.decimalLatitude : s + (ee ? " " : "")) + ".json"), te = ot.searchParams;
2228
- if (y !== void 0 && te.set("language", Array.isArray(y) ? y.join(",") : y ?? ""), be && te.set("types", be.join(",")), Pe && te.set("excludeTypes", String(Pe)), g && te.set("bbox", g.map((Ze) => Ze.toFixed(6)).join(",")), T && te.set("country", Array.isArray(T) ? T.join(",") : T), !B && !D) {
2229
- const Ze = await dn(m, v, V);
2230
- Ze && te.set("proximity", Ze), (H || !Ie) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(L));
2214
+ const R = st(s), We = new URL(tt + "/" + encodeURIComponent(R ? R.decimalLongitude + "," + R.decimalLatitude : s) + ".json"), te = We.searchParams;
2215
+ y !== void 0 && te.set("language", Array.isArray(y) ? y.join(",") : y ?? "");
2216
+ const [ct] = (m == null ? void 0 : m.getCenterAndZoom()) ?? [];
2217
+ let se = (x = !R || je === yt ? xe : je) == null ? void 0 : x.map((Y) => typeof Y == "string" ? Y : ct === void 0 || (Y[0] ?? 0) <= ct && ct < (Y[1] ?? 1 / 0) ? Y[2] : void 0).filter((Y) => Y !== void 0);
2218
+ se && (se = [...new Set(se)], te.set("types", se.join(",")));
2219
+ const Mt = !R || He === wt ? et : He;
2220
+ if (Mt && te.set("excludeTypes", String(Mt)), g && te.set("bbox", g.map((Y) => Y.toFixed(6)).join(",")), S && te.set("country", Array.isArray(S) ? S.join(",") : S), !A && !R) {
2221
+ const Y = await Ln(m, ne, J);
2222
+ Y && te.set("proximity", Y), (G || !Be) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(v));
2231
2223
  }
2232
- M !== void 0 && (Xe || !D || (be == null ? void 0 : be.length) === 1) && te.set("limit", String(M)), te.set("key", f), $e(te), et(ot);
2233
- const He = ot.toString();
2234
- if (He === Lt) {
2235
- B ? (w && t(13, E = void 0), t(14, h = Fe[0])) : (t(13, E = Fe), ((ne = E[W]) == null ? void 0 : ne.id) !== (r == null ? void 0 : r.id) && t(15, W = -1));
2224
+ const ze = p === k ? N : p;
2225
+ ze !== void 0 && ze > 1 && (se == null ? void 0 : se.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), R ? (ze === 1 || ze !== void 0 && ($e || (se == null ? void 0 : se.length) === 1)) && te.set("limit", String(ze)) : N !== void 0 && te.set("limit", String(N)), te.set("key", f), nt(te), rt(We);
2226
+ const Ti = We.searchParams.get("types") === "" && We.searchParams.get("excludeTypes") !== "true", Qe = We.toString();
2227
+ if (Qe === St) {
2228
+ A ? (w && t(13, T = void 0), t(14, h = qe[0])) : (t(13, T = qe), ((oe = T[O]) == null ? void 0 : oe.id) !== (r == null ? void 0 : r.id) && t(15, O = -1));
2236
2229
  return;
2237
2230
  }
2238
- Lt = He;
2239
- const st = await fetch(He, { signal: V.signal, ...xe });
2240
- if (!st.ok)
2241
- throw new Error(await st.text());
2242
- const at = await st.json();
2243
- de("response", { url: He, featureCollection: at }), B ? (w && t(13, E = void 0), t(14, h = at.features[0]), Fe = [h]) : (t(13, E = at.features.filter(J)), D && E.unshift({
2231
+ St = Qe;
2232
+ let Oe;
2233
+ if (Ti)
2234
+ Oe = { type: "FeatureCollection", features: [] };
2235
+ else {
2236
+ const Y = await fetch(Qe, { signal: J.signal, ...it });
2237
+ if (!Y.ok)
2238
+ throw new Error(await Y.text());
2239
+ Oe = await Y.json();
2240
+ }
2241
+ fe("response", { url: Qe, featureCollection: Oe }), A ? (w && t(13, T = void 0), t(14, h = Oe.features[0]), qe = [h]) : (t(13, T = Oe.features.filter(V)), R && T.unshift({
2244
2242
  type: "Feature",
2245
2243
  properties: {},
2246
- id: "reverse_" + D.decimalLongitude + "_" + D.decimalLatitude,
2247
- text: D.decimalLatitude + ", " + D.decimalLongitude,
2248
- place_name: D.decimalLatitude + ", " + D.decimalLongitude,
2244
+ id: "reverse_" + R.decimalLongitude + "_" + R.decimalLatitude,
2245
+ text: R.decimalLatitude + ", " + R.decimalLongitude,
2246
+ place_name: R.decimalLatitude + ", " + R.decimalLongitude,
2249
2247
  place_type: ["reverse"],
2250
- center: [D.decimalLongitude, D.decimalLatitude],
2248
+ center: [R.decimalLongitude, R.decimalLatitude],
2251
2249
  bbox: [
2252
- D.decimalLongitude,
2253
- D.decimalLatitude,
2254
- D.decimalLongitude,
2255
- D.decimalLatitude
2250
+ R.decimalLongitude,
2251
+ R.decimalLatitude,
2252
+ R.decimalLongitude,
2253
+ R.decimalLatitude
2256
2254
  ],
2257
2255
  geometry: {
2258
2256
  type: "Point",
2259
- coordinates: [D.decimalLongitude, D.decimalLatitude]
2257
+ coordinates: [R.decimalLongitude, R.decimalLatitude]
2260
2258
  }
2261
- }), Fe = E, ((fe = E[W]) == null ? void 0 : fe.id) !== (r == null ? void 0 : r.id) && t(15, W = -1), D && $.focus());
2262
- } catch (D) {
2263
- if (D && typeof D == "object" && "name" in D && D.name === "AbortError")
2259
+ }), qe = T, ((me = T[O]) == null ? void 0 : me.id) !== (r == null ? void 0 : r.id) && t(15, O = -1), R && ie.focus());
2260
+ } catch (R) {
2261
+ if (R && typeof R == "object" && "name" in R && R.name === "AbortError")
2264
2262
  return;
2265
- throw D;
2263
+ throw R;
2266
2264
  } finally {
2267
- V === ve && t(20, ve = void 0);
2265
+ J === ve && t(20, ve = void 0);
2268
2266
  }
2269
2267
  }
2270
- function ii() {
2271
- var ee;
2272
- if (!(G != null && G.length) || !k)
2268
+ function li() {
2269
+ var J;
2270
+ if (!(H != null && H.length) || !C)
2273
2271
  return;
2274
- const s = [180, 90, -180, -90], B = !G.some((V) => !V.matching_text);
2275
- let H;
2276
- for (const V of G) {
2277
- const ne = Ce(V);
2278
- if (H = H === void 0 ? ne : ne === void 0 ? H : Math.max(H, ne), B || !V.matching_text)
2279
- for (const fe of [0, 1, 2, 3])
2280
- s[fe] = Math[fe < 2 ? "min" : "max"](s[fe], ((ee = V.bbox) == null ? void 0 : ee[fe]) ?? V.center[fe % 2]);
2272
+ const s = [180, 90, -180, -90], A = !H.some((x) => !x.matching_text);
2273
+ let G;
2274
+ for (const x of H) {
2275
+ const oe = Ce(x);
2276
+ if (G = G === void 0 ? oe : oe === void 0 ? G : Math.max(G, oe), A || !x.matching_text)
2277
+ for (const me of [0, 1, 2, 3])
2278
+ s[me] = Math[me < 2 ? "min" : "max"](s[me], ((J = x.bbox) == null ? void 0 : J[me]) ?? x.center[me % 2]);
2281
2279
  }
2282
- m && G.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Mt(s), 50, H));
2280
+ m && H.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Dt(s), 50, G));
2283
2281
  }
2284
- function nt() {
2285
- !h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Mt(h.bbox), 50, Ce(h)));
2282
+ function lt() {
2283
+ !h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Ce(h)) : m.fitBounds(Dt(h.bbox), 50, Ce(h)));
2286
2284
  }
2287
2285
  function Ce(s) {
2288
- var H;
2286
+ var G;
2289
2287
  if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
2290
2288
  return;
2291
- const B = s.id.replace(/\..*/, "");
2292
- return (Array.isArray((H = s.properties) == null ? void 0 : H.categories) ? s.properties.categories.reduce(
2293
- (ee, V) => {
2294
- const ne = je[B + "." + V];
2295
- return ee === void 0 ? ne : ne === void 0 ? ee : Math.max(ee, ne);
2289
+ const A = s.id.replace(/\..*/, "");
2290
+ return (Array.isArray((G = s.properties) == null ? void 0 : G.categories) ? s.properties.categories.reduce(
2291
+ (J, x) => {
2292
+ const oe = Ze[A + "." + x];
2293
+ return J === void 0 ? oe : oe === void 0 ? J : Math.max(J, oe);
2296
2294
  },
2297
2295
  void 0
2298
- ) : void 0) ?? je[B];
2296
+ ) : void 0) ?? Ze[A];
2299
2297
  }
2300
- function ni(s) {
2301
- t(0, O = C === "always"), t(13, E = void 0), t(14, h = void 0), t(15, W = -1), vt(s[1].toFixed(6) + ", " + cn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2298
+ function ui(s) {
2299
+ t(0, ee = W === "always"), t(13, T = void 0), t(14, h = void 0), t(15, O = -1), Et(s[1].toFixed(6) + ", " + vn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2302
2300
  }
2303
- function ri(s) {
2304
- if (!E)
2301
+ function ci(s) {
2302
+ if (!T)
2305
2303
  return;
2306
- let B = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2307
- B && ($.focus(), t(17, oe = !0), s.preventDefault(), h && W === -1 && t(15, W = E.findIndex((H) => H.id === (h == null ? void 0 : h.id))), W === (h || he ? 0 : -1) && B === -1 && t(15, W = E.length), t(15, W += B), W >= E.length && t(15, W = -1), W < 0 && (h || he) && t(15, W = 0));
2304
+ let A = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2305
+ A && (ie.focus(), t(17, ae = !0), s.preventDefault(), h && O === -1 && t(15, O = T.findIndex((G) => G.id === (h == null ? void 0 : h.id))), O === (h || pe ? 0 : -1) && A === -1 && t(15, O = T.length), t(15, O += A), O >= T.length && t(15, O = -1), O < 0 && (h || pe) && t(15, O = 0));
2308
2306
  }
2309
- function yt(s, B = !0, H = !1) {
2310
- if (t(19, ie = void 0), t(14, h = void 0), t(17, oe = !0), ce && (window.clearTimeout(ce), ce = void 0), x && (window.clearTimeout(x), t(63, x = void 0)), !Ie && !H || F.length < p) {
2311
- t(13, E = void 0);
2312
- return;
2313
- }
2314
- const ee = F;
2315
- ce = window.setTimeout(
2316
- () => {
2317
- ce = void 0, Me(ee).catch((V) => t(19, ie = V));
2318
- },
2319
- B ? z : 0
2320
- ), F.endsWith(" ") || t(63, x = window.setTimeout(
2321
- () => {
2322
- t(63, x = void 0), Me(ee, { appendSpace: !0 }).catch((V) => t(19, ie = V));
2323
- },
2324
- Je
2325
- ));
2307
+ function Nt(s, A = !0, G = !1) {
2308
+ if (t(19, re = void 0), t(14, h = void 0), t(17, ae = !0), Be || G) {
2309
+ if (Ee && clearTimeout(Ee), K.length < be)
2310
+ return;
2311
+ const J = K;
2312
+ Ee = window.setTimeout(
2313
+ () => {
2314
+ at(J).catch((x) => t(19, re = x));
2315
+ },
2316
+ A ? z : 0
2317
+ );
2318
+ } else
2319
+ t(13, T = void 0), t(19, re = void 0);
2326
2320
  }
2327
- function rt(s) {
2328
- h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ? nt() : (t(14, h = s), t(1, F = s.place_name));
2321
+ function ut(s) {
2322
+ h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ? lt() : (t(14, h = s), t(1, K = s.place_name));
2329
2323
  }
2330
- function wt(s) {
2331
- t(15, W = s);
2324
+ function kt(s) {
2325
+ t(15, O = s);
2332
2326
  }
2333
- function oi() {
2334
- (!he || h) && t(15, W = -1), Ae && nt();
2327
+ function di() {
2328
+ (!pe || h) && t(15, O = -1), Fe && lt();
2335
2329
  }
2336
- const si = () => $.focus();
2337
- function ai(s) {
2338
- dt[s ? "unshift" : "push"](() => {
2339
- $ = s, t(18, $);
2330
+ const fi = () => ie.focus();
2331
+ function mi(s) {
2332
+ gt[s ? "unshift" : "push"](() => {
2333
+ ie = s, t(18, ie);
2340
2334
  });
2341
2335
  }
2342
- function li() {
2343
- F = this.value, t(1, F), t(17, oe), t(31, _), t(16, pe);
2336
+ function gi() {
2337
+ K = this.value, t(1, K), t(17, ae), t(31, _), t(16, Se);
2344
2338
  }
2345
- const ui = () => t(17, oe = !0), ci = () => t(17, oe = !1), di = () => t(17, oe = !0), fi = () => t(14, h = void 0), mi = () => {
2346
- t(1, F = ""), $.focus();
2347
- }, gi = () => t(0, O = !O), hi = () => t(19, ie = void 0), bi = (s) => wt(s), vi = (s) => rt(s), Li = () => {
2339
+ const hi = () => t(17, ae = !0), bi = () => t(17, ae = !1), vi = () => t(17, ae = !0), Li = () => t(14, h = void 0), _i = () => {
2340
+ t(1, K = ""), ie.focus();
2341
+ }, yi = () => t(0, ee = !ee), wi = () => t(19, re = void 0), pi = (s) => kt(s), Ei = (s) => ut(s), Si = () => {
2348
2342
  };
2349
2343
  return i.$$set = (s) => {
2350
- "class" in s && t(2, c = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, w = s.clearListOnPick), "keepListOpen" in s && t(4, I = s.keepListOpen), "collapsed" in s && t(5, S = s.collapsed), "country" in s && t(33, T = s.country), "debounceSearch" in s && t(34, z = s.debounceSearch), "enableReverse" in s && t(6, C = s.enableReverse), "errorMessage" in s && t(7, q = s.errorMessage), "filter" in s && t(35, J = s.filter), "flyTo" in s && t(36, k = s.flyTo), "fuzzyMatch" in s && t(37, L = s.fuzzyMatch), "language" in s && t(38, y = s.language), "limit" in s && t(39, M = s.limit), "mapController" in s && t(40, m = s.mapController), "minLength" in s && t(41, p = s.minLength), "noResultsMessage" in s && t(8, R = s.noResultsMessage), "placeholder" in s && t(9, ke = s.placeholder), "proximity" in s && t(42, v = s.proximity), "reverseActive" in s && t(0, O = s.reverseActive), "reverseButtonTitle" in s && t(10, re = s.reverseButtonTitle), "searchValue" in s && t(1, F = s.searchValue), "pickedResultStyle" in s && t(43, De = s.pickedResultStyle), "showPlaceType" in s && t(11, ht = s.showPlaceType), "showResultsWhileTyping" in s && t(44, Ie = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(45, Je = s.autocompleteTimeout), "selectFirst" in s && t(46, he = s.selectFirst), "flyToSelected" in s && t(47, Ae = s.flyToSelected), "markerOnSelected" in s && t(48, Be = s.markerOnSelected), "types" in s && t(49, be = s.types), "exhaustiveReverseGeocoding" in s && t(50, Xe = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(51, Pe = s.excludeTypes), "zoom" in s && t(52, je = s.zoom), "apiUrl" in s && t(53, Ye = s.apiUrl), "fetchParameters" in s && t(54, xe = s.fetchParameters), "iconsBaseUrl" in s && t(12, bt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(55, $e = s.adjustUrlQuery), "adjustUrl" in s && t(56, et = s.adjustUrl), "$$scope" in s && t(68, o = s.$$scope);
2344
+ "class" in s && t(2, c = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, w = s.clearListOnPick), "keepListOpen" in s && t(4, D = s.keepListOpen), "collapsed" in s && t(5, E = s.collapsed), "country" in s && t(33, S = s.country), "debounceSearch" in s && t(34, z = s.debounceSearch), "enableReverse" in s && t(6, W = s.enableReverse), "errorMessage" in s && t(7, Z = s.errorMessage), "filter" in s && t(35, V = s.filter), "flyTo" in s && t(36, C = s.flyTo), "fuzzyMatch" in s && t(37, v = s.fuzzyMatch), "language" in s && t(38, y = s.language), "limit" in s && t(39, N = s.limit), "reverseGeocodingLimit" in s && t(40, p = s.reverseGeocodingLimit), "mapController" in s && t(41, m = s.mapController), "minLength" in s && t(42, be = s.minLength), "noResultsMessage" in s && t(8, L = s.noResultsMessage), "placeholder" in s && t(9, F = s.placeholder), "proximity" in s && t(43, ne = s.proximity), "reverseActive" in s && t(0, ee = s.reverseActive), "reverseButtonTitle" in s && t(10, Lt = s.reverseButtonTitle), "searchValue" in s && t(1, K = s.searchValue), "pickedResultStyle" in s && t(44, Pe = s.pickedResultStyle), "showPlaceType" in s && t(11, _t = s.showPlaceType), "showResultsWhileTyping" in s && t(45, Be = s.showResultsWhileTyping), "selectFirst" in s && t(46, pe = s.selectFirst), "flyToSelected" in s && t(47, Fe = s.flyToSelected), "markerOnSelected" in s && t(48, Ge = s.markerOnSelected), "types" in s && t(49, xe = s.types), "reverseGeocodingTypes" in s && t(50, je = s.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in s && t(51, $e = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(52, et = s.excludeTypes), "reverseGeocodingExcludeTypes" in s && t(53, He = s.reverseGeocodingExcludeTypes), "zoom" in s && t(54, Ze = s.zoom), "apiUrl" in s && t(55, tt = s.apiUrl), "fetchParameters" in s && t(56, it = s.fetchParameters), "iconsBaseUrl" in s && t(12, pt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(57, nt = s.adjustUrlQuery), "adjustUrl" in s && t(58, rt = s.adjustUrl), "$$scope" in s && t(69, o = s.$$scope);
2351
2345
  }, i.$$.update = () => {
2352
2346
  if (i.$$.dirty[0] & /*enableReverse*/
2353
- 64 && t(0, O = C === "always"), i.$$.dirty[0] & /*picked*/
2347
+ 64 && t(0, ee = W === "always"), i.$$.dirty[0] & /*picked*/
2354
2348
  16384 | i.$$.dirty[1] & /*pickedResultStyle*/
2355
- 4096 && De !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && Me(h.id, { byId: !0 }).catch((s) => t(19, ie = s)), i.$$.dirty[0] & /*picked*/
2349
+ 8192 && Pe !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && at(h.id, { byId: !0 }).catch((s) => t(19, re = s)), i.$$.dirty[0] & /*picked*/
2356
2350
  16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
2357
- 546 | i.$$.dirty[2] & /*prevIdToFly*/
2358
- 4 && (m && h && h.id !== tt && k && (nt(), w && t(13, E = void 0), t(62, G = void 0), t(15, W = -1)), t(64, tt = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2351
+ 1058 | i.$$.dirty[2] & /*prevIdToFly*/
2352
+ 8 && (m && h && h.id !== ot && C && (lt(), w && t(13, T = void 0), t(64, H = void 0), t(15, O = -1)), t(65, ot = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2359
2353
  196608 | i.$$.dirty[1] & /*clearOnBlur*/
2360
2354
  1 && setTimeout(() => {
2361
- t(16, pe = oe), _ && !pe && t(1, F = "");
2355
+ t(16, Se = ae), _ && !Se && t(1, K = "");
2362
2356
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2363
2357
  8194 | i.$$.dirty[1] & /*minLength*/
2364
- 1024 && F.length < p && (t(13, E = void 0), t(19, ie = void 0), t(62, G = E)), i.$$.dirty[0] & /*listFeatures*/
2365
- 8192 | i.$$.dirty[1] & /*selectFirst*/
2366
- 32768 && he && E != null && E.length && (ti() || t(15, W = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2358
+ 2048 && K.length < be && (t(13, T = void 0), t(19, re = void 0), t(64, H = T)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2367
2359
  57344 | i.$$.dirty[1] & /*selectFirst*/
2368
- 32768 && he && E != null && E.length && W == -1 && !h && t(15, W = 0), i.$$.dirty[0] & /*listFeatures*/
2360
+ 32768 && pe && T != null && T.length && O == -1 && !h && t(15, O = 0), i.$$.dirty[0] & /*listFeatures*/
2369
2361
  8192 | i.$$.dirty[2] & /*markedFeatures*/
2370
- 1 && G !== E && t(62, G = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2362
+ 4 && H !== T && t(64, H = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2371
2363
  73729 | i.$$.dirty[1] & /*mapController*/
2372
- 512 | i.$$.dirty[2] & /*markedFeatures*/
2373
- 1 && m && m.setEventHandler((s) => {
2364
+ 1024 | i.$$.dirty[2] & /*markedFeatures*/
2365
+ 4 && m && m.setEventHandler((s) => {
2374
2366
  switch (s.type) {
2375
2367
  case "mapClick":
2376
- O && ni(s.coordinates);
2368
+ ee && ui(s.coordinates);
2377
2369
  break;
2378
2370
  case "markerClick":
2379
2371
  {
2380
- const B = E == null ? void 0 : E.find((H) => H.id === s.id);
2381
- B && rt(B);
2372
+ const A = T == null ? void 0 : T.find((G) => G.id === s.id);
2373
+ A && ut(A);
2382
2374
  }
2383
2375
  break;
2384
2376
  case "markerMouseEnter":
2385
- G && t(15, W = pe ? (E == null ? void 0 : E.findIndex((B) => B.id === s.id)) ?? -1 : -1);
2377
+ H && t(15, O = Se ? (T == null ? void 0 : T.findIndex((A) => A.id === s.id)) ?? -1 : -1);
2386
2378
  break;
2387
2379
  case "markerMouseLeave":
2388
- G && t(15, W = -1);
2380
+ H && t(15, O = -1);
2389
2381
  break;
2390
2382
  }
2391
2383
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2392
- 40960 && t(65, r = E == null ? void 0 : E[W]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2393
- 66080 | i.$$.dirty[2] & /*selected*/
2394
- 8 && m && r && k && Ae && m.flyTo(r.center, Ce(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2395
- 4096 && t(67, n = De === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2396
- 131584 | i.$$.dirty[2] & /*showPolygonMarker*/
2397
- 32 && (Be || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2384
+ 40960 && t(66, r = T == null ? void 0 : T[O]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2385
+ 66592 | i.$$.dirty[2] & /*selected*/
2386
+ 16 && m && r && C && Fe && m.flyTo(r.center, Ce(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2387
+ 8192 && t(68, n = Pe === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2388
+ 132096 | i.$$.dirty[2] & /*showPolygonMarker*/
2389
+ 64 && (Ge || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2398
2390
  16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
2399
- 131584 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
2400
- 41 && m && Be && !G && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2391
+ 132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
2392
+ 84 && m && Ge && !H && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2401
2393
  16384 | i.$$.dirty[1] & /*mapController*/
2402
- 512 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
2403
- 33 && m && m.setFeatures(G, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
2394
+ 1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
2395
+ 68 && m && m.setFeatures(H, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
2404
2396
  32768 | i.$$.dirty[1] & /*mapController*/
2405
- 512 | i.$$.dirty[2] & /*markedFeatures*/
2406
- 1 && G && m && m.setSelectedMarker(W), i.$$.dirty[2] & /*selected, autocompleteTimeoutRef*/
2407
- 10 && r && (window.clearTimeout(x), t(63, x = void 0)), i.$$.dirty[0] & /*searchValue*/
2397
+ 1024 | i.$$.dirty[2] & /*markedFeatures*/
2398
+ 4 && H && m && m.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2408
2399
  2 | i.$$.dirty[1] & /*mapController*/
2409
- 512 && m) {
2410
- const s = it(F);
2400
+ 1024 && m) {
2401
+ const s = st(K);
2411
2402
  m.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2412
2403
  }
2413
2404
  i.$$.dirty[2] & /*selected*/
2414
- 8 && de("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2415
- 16384 && de("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2416
- 73744 && t(66, u = !!(E != null && E.length) && (pe || I)), i.$$.dirty[2] & /*optionsVisible*/
2417
- 16 && de("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
2418
- 8192 && de("featureslisted", { features: E }), i.$$.dirty[2] & /*markedFeatures*/
2419
- 1 && de("featuresmarked", { features: G }), i.$$.dirty[0] & /*reverseActive*/
2420
- 1 && de("reversetoggle", { reverse: O }), i.$$.dirty[0] & /*searchValue*/
2421
- 2 && de("querychange", { query: F }), i.$$.dirty[0] & /*reverseActive*/
2405
+ 16 && fe("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2406
+ 16384 && fe("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2407
+ 73744 && t(67, u = !!(T != null && T.length) && (Se || D)), i.$$.dirty[2] & /*optionsVisible*/
2408
+ 32 && fe("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
2409
+ 8192 && fe("featureslisted", { features: T }), i.$$.dirty[2] & /*markedFeatures*/
2410
+ 4 && fe("featuresmarked", { features: H }), i.$$.dirty[0] & /*reverseActive*/
2411
+ 1 && fe("reversetoggle", { reverse: ee }), i.$$.dirty[0] & /*searchValue*/
2412
+ 2 && fe("querychange", { query: K }), i.$$.dirty[0] & /*reverseActive*/
2422
2413
  1 | i.$$.dirty[1] & /*mapController*/
2423
- 512 && m && m.indicateReverse(O);
2414
+ 1024 && m && m.indicateReverse(ee);
2424
2415
  }, [
2425
- O,
2426
- F,
2416
+ ee,
2417
+ K,
2427
2418
  c,
2428
2419
  b,
2429
- I,
2430
- S,
2431
- C,
2432
- q,
2433
- R,
2434
- ke,
2435
- re,
2436
- ht,
2437
- bt,
2420
+ D,
2438
2421
  E,
2439
- h,
2440
2422
  W,
2441
- pe,
2442
- oe,
2443
- $,
2423
+ Z,
2424
+ L,
2425
+ F,
2426
+ Lt,
2427
+ _t,
2428
+ pt,
2429
+ T,
2430
+ h,
2431
+ O,
2432
+ Se,
2433
+ ae,
2444
2434
  ie,
2435
+ re,
2445
2436
  ve,
2446
- ei,
2447
- _t,
2448
- ri,
2449
- yt,
2450
- rt,
2451
- wt,
2452
- oi,
2437
+ ai,
2438
+ Tt,
2439
+ ci,
2440
+ Nt,
2441
+ ut,
2442
+ kt,
2443
+ di,
2453
2444
  d,
2454
2445
  f,
2455
2446
  g,
2456
2447
  _,
2457
2448
  w,
2458
- T,
2449
+ S,
2459
2450
  z,
2460
- J,
2461
- k,
2462
- L,
2451
+ V,
2452
+ C,
2453
+ v,
2463
2454
  y,
2464
- M,
2465
- m,
2455
+ N,
2466
2456
  p,
2467
- v,
2468
- De,
2469
- Ie,
2470
- Je,
2471
- he,
2472
- Ae,
2473
- Be,
2457
+ m,
2474
2458
  be,
2475
- Xe,
2459
+ ne,
2476
2460
  Pe,
2477
- je,
2478
- Ye,
2461
+ Be,
2462
+ pe,
2463
+ Fe,
2464
+ Ge,
2479
2465
  xe,
2466
+ je,
2480
2467
  $e,
2481
2468
  et,
2482
- Xt,
2483
- Yt,
2484
- vt,
2485
- xt,
2486
- $t,
2487
- G,
2488
- x,
2469
+ He,
2470
+ Ze,
2489
2471
  tt,
2472
+ it,
2473
+ nt,
2474
+ rt,
2475
+ ni,
2476
+ ri,
2477
+ Et,
2478
+ oi,
2479
+ si,
2480
+ H,
2481
+ ot,
2490
2482
  r,
2491
2483
  u,
2492
2484
  n,
2493
2485
  o,
2494
2486
  l,
2495
- si,
2496
- ai,
2497
- li,
2498
- ui,
2499
- ci,
2500
- di,
2501
2487
  fi,
2502
2488
  mi,
2503
2489
  gi,
2504
2490
  hi,
2505
2491
  bi,
2506
2492
  vi,
2507
- Li
2493
+ Li,
2494
+ _i,
2495
+ yi,
2496
+ wi,
2497
+ pi,
2498
+ Ei,
2499
+ Si
2508
2500
  ];
2509
2501
  }
2510
- class Cn extends we {
2502
+ class In extends we {
2511
2503
  constructor(e) {
2512
2504
  super(), ye(
2513
2505
  this,
2514
2506
  e,
2515
- Mn,
2516
- kn,
2507
+ Dn,
2508
+ Un,
2517
2509
  _e,
2518
2510
  {
2519
2511
  ZOOM_DEFAULTS: 28,
@@ -2534,35 +2526,37 @@ class Cn extends we {
2534
2526
  fuzzyMatch: 37,
2535
2527
  language: 38,
2536
2528
  limit: 39,
2537
- mapController: 40,
2538
- minLength: 41,
2529
+ reverseGeocodingLimit: 40,
2530
+ mapController: 41,
2531
+ minLength: 42,
2539
2532
  noResultsMessage: 8,
2540
2533
  placeholder: 9,
2541
- proximity: 42,
2534
+ proximity: 43,
2542
2535
  reverseActive: 0,
2543
2536
  reverseButtonTitle: 10,
2544
2537
  searchValue: 1,
2545
- pickedResultStyle: 43,
2538
+ pickedResultStyle: 44,
2546
2539
  showPlaceType: 11,
2547
- showResultsWhileTyping: 44,
2548
- autocompleteTimeout: 45,
2540
+ showResultsWhileTyping: 45,
2549
2541
  selectFirst: 46,
2550
2542
  flyToSelected: 47,
2551
2543
  markerOnSelected: 48,
2552
2544
  types: 49,
2553
- exhaustiveReverseGeocoding: 50,
2554
- excludeTypes: 51,
2555
- zoom: 52,
2556
- apiUrl: 53,
2557
- fetchParameters: 54,
2545
+ reverseGeocodingTypes: 50,
2546
+ exhaustiveReverseGeocoding: 51,
2547
+ excludeTypes: 52,
2548
+ reverseGeocodingExcludeTypes: 53,
2549
+ zoom: 54,
2550
+ apiUrl: 55,
2551
+ fetchParameters: 56,
2558
2552
  iconsBaseUrl: 12,
2559
- adjustUrlQuery: 55,
2560
- adjustUrl: 56,
2561
- focus: 57,
2562
- blur: 58,
2563
- setQuery: 59,
2564
- clearList: 60,
2565
- clearMap: 61
2553
+ adjustUrlQuery: 57,
2554
+ adjustUrl: 58,
2555
+ focus: 59,
2556
+ blur: 60,
2557
+ setQuery: 61,
2558
+ clearList: 62,
2559
+ clearMap: 63
2566
2560
  },
2567
2561
  null,
2568
2562
  [-1, -1, -1, -1]
@@ -2572,22 +2566,22 @@ class Cn extends we {
2572
2566
  return this.$$.ctx[28];
2573
2567
  }
2574
2568
  get focus() {
2575
- return this.$$.ctx[57];
2569
+ return this.$$.ctx[59];
2576
2570
  }
2577
2571
  get blur() {
2578
- return this.$$.ctx[58];
2572
+ return this.$$.ctx[60];
2579
2573
  }
2580
2574
  get setQuery() {
2581
- return this.$$.ctx[59];
2575
+ return this.$$.ctx[61];
2582
2576
  }
2583
2577
  get clearList() {
2584
- return this.$$.ctx[60];
2578
+ return this.$$.ctx[62];
2585
2579
  }
2586
2580
  get clearMap() {
2587
- return this.$$.ctx[61];
2581
+ return this.$$.ctx[63];
2588
2582
  }
2589
2583
  }
2590
- const jt = [
2584
+ const Kt = [
2591
2585
  "featuresListed",
2592
2586
  "featuresMarked",
2593
2587
  "optionsVisibilityChange",
@@ -2596,7 +2590,7 @@ const jt = [
2596
2590
  "response",
2597
2591
  "reverseToggle",
2598
2592
  "select"
2599
- ], Wn = [
2593
+ ], An = [
2600
2594
  "adjustUrlQuery",
2601
2595
  "adjustUrl",
2602
2596
  "apiKey",
@@ -2612,6 +2606,7 @@ const jt = [
2612
2606
  "enableReverse",
2613
2607
  "errorMessage",
2614
2608
  "excludeTypes",
2609
+ "reverseGeocodingExcludeTypes",
2615
2610
  "exhaustiveReverseGeocoding",
2616
2611
  "fetchParameters",
2617
2612
  "filter",
@@ -2621,6 +2616,7 @@ const jt = [
2621
2616
  "keepListOpen",
2622
2617
  "language",
2623
2618
  "limit",
2619
+ "reverseGeocodingLimit",
2624
2620
  "mapController",
2625
2621
  "markerOnSelected",
2626
2622
  "minLength",
@@ -2634,31 +2630,32 @@ const jt = [
2634
2630
  "showPlaceType",
2635
2631
  "showResultsWhileTyping",
2636
2632
  "types",
2633
+ "reverseGeocodingTypes",
2637
2634
  "zoom"
2638
2635
  ];
2639
- function Ft(i) {
2636
+ function Vt(i) {
2640
2637
  return "on" + i[0].toUpperCase() + i.slice(1);
2641
2638
  }
2642
- const On = wi(function(e, t) {
2643
- const n = pt(void 0), r = pt(void 0), u = { ...e };
2644
- for (const l of jt)
2645
- delete u[Ft(l)];
2646
- ut(() => {
2639
+ const Fn = Mi(function(e, t) {
2640
+ const n = Ct(void 0), r = Ct(void 0), u = { ...e };
2641
+ for (const l of Kt)
2642
+ delete u[Vt(l)];
2643
+ ft(() => {
2647
2644
  if (!n.current)
2648
2645
  throw new Error();
2649
- const l = new Cn({
2646
+ const l = new In({
2650
2647
  target: n.current,
2651
2648
  props: u
2652
2649
  });
2653
2650
  return r.current = l, () => l.$destroy();
2654
2651
  }, []);
2655
- for (const l of Wn)
2656
- ut(() => {
2652
+ for (const l of An)
2653
+ ft(() => {
2657
2654
  r.current && e[l] !== void 0 && r.current.$set({ [l]: e[l] });
2658
2655
  }, [e[l]]);
2659
- for (const l of jt) {
2660
- const o = e[Ft(l)];
2661
- ut(
2656
+ for (const l of Kt) {
2657
+ const o = e[Vt(l)];
2658
+ ft(
2662
2659
  () => {
2663
2660
  var d;
2664
2661
  return o && ((d = r.current) == null ? void 0 : d.$on(l.toLowerCase(), (c) => {
@@ -2668,7 +2665,7 @@ const On = wi(function(e, t) {
2668
2665
  [o]
2669
2666
  );
2670
2667
  }
2671
- return pi(t, () => ({
2668
+ return Ci(t, () => ({
2672
2669
  setQuery: (l, o = !0) => {
2673
2670
  var d;
2674
2671
  return (d = r.current) == null ? void 0 : d.setQuery(l, o);
@@ -2693,9 +2690,9 @@ const On = wi(function(e, t) {
2693
2690
  var o;
2694
2691
  return (o = r.current) == null ? void 0 : o.$set({ reverseActive: l });
2695
2692
  }
2696
- })), Ei("div", { ref: n });
2693
+ })), Wi("div", { ref: n });
2697
2694
  });
2698
2695
  export {
2699
- On as GeocodingControl
2696
+ Fn as GeocodingControl
2700
2697
  };
2701
2698
  //# sourceMappingURL=react.js.map