@maptiler/geocoding-control 0.0.78 → 0.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/react.js CHANGED
@@ -1,41 +1,41 @@
1
- import { forwardRef as Ct, useRef as qe, useEffect as xe, useImperativeHandle as Rt, createElement as Et } from "react";
1
+ import { forwardRef as Rt, useRef as qe, useEffect as je, useImperativeHandle as Et, createElement as Bt } from "react";
2
2
  function w() {
3
3
  }
4
- function Bt(t, e) {
4
+ function Lt(t, e) {
5
5
  for (const n in e)
6
6
  t[n] = e[n];
7
7
  return t;
8
8
  }
9
- function rt(t) {
9
+ function it(t) {
10
10
  return t();
11
11
  }
12
12
  function Ue() {
13
13
  return /* @__PURE__ */ Object.create(null);
14
14
  }
15
15
  function ee(t) {
16
- t.forEach(rt);
16
+ t.forEach(it);
17
17
  }
18
- function it(t) {
18
+ function ct(t) {
19
19
  return typeof t == "function";
20
20
  }
21
21
  function me(t, e) {
22
22
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
23
23
  }
24
- function Lt(t) {
24
+ function St(t) {
25
25
  return Object.keys(t).length === 0;
26
26
  }
27
- function St(t, e, n, l) {
27
+ function It(t, e, n, r) {
28
28
  if (t) {
29
- const c = ct(t, e, n, l);
29
+ const c = ot(t, e, n, r);
30
30
  return t[0](c);
31
31
  }
32
32
  }
33
- function ct(t, e, n, l) {
34
- return t[1] && l ? Bt(n.ctx.slice(), t[1](l(e))) : n.ctx;
33
+ function ot(t, e, n, r) {
34
+ return t[1] && r ? Lt(n.ctx.slice(), t[1](r(e))) : n.ctx;
35
35
  }
36
- function It(t, e, n, l) {
37
- if (t[2] && l) {
38
- const c = t[2](l(n));
36
+ function At(t, e, n, r) {
37
+ if (t[2] && r) {
38
+ const c = t[2](r(n));
39
39
  if (e.dirty === void 0)
40
40
  return c;
41
41
  if (typeof c == "object") {
@@ -48,17 +48,17 @@ function It(t, e, n, l) {
48
48
  }
49
49
  return e.dirty;
50
50
  }
51
- function At(t, e, n, l, c, u) {
51
+ function Pt(t, e, n, r, c, u) {
52
52
  if (c) {
53
- const i = ct(e, n, l, u);
53
+ const i = ot(e, n, r, u);
54
54
  t.p(i, c);
55
55
  }
56
56
  }
57
- function Pt(t) {
57
+ function Nt(t) {
58
58
  if (t.ctx.length > 32) {
59
59
  const e = [], n = t.ctx.length / 32;
60
- for (let l = 0; l < n; l++)
61
- e[l] = -1;
60
+ for (let r = 0; r < n; r++)
61
+ e[r] = -1;
62
62
  return e;
63
63
  }
64
64
  return -1;
@@ -75,7 +75,7 @@ function K(t, e, n) {
75
75
  function D(t) {
76
76
  t.parentNode && t.parentNode.removeChild(t);
77
77
  }
78
- function Nt(t, e) {
78
+ function xt(t, e) {
79
79
  for (let n = 0; n < t.length; n += 1)
80
80
  t[n] && t[n].d(e);
81
81
  }
@@ -91,18 +91,18 @@ function ce(t) {
91
91
  function W() {
92
92
  return ce(" ");
93
93
  }
94
- function H(t, e, n, l) {
95
- return t.addEventListener(e, n, l), () => t.removeEventListener(e, n, l);
94
+ function H(t, e, n, r) {
95
+ return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
96
96
  }
97
97
  function jt(t) {
98
98
  return function(e) {
99
99
  return e.preventDefault(), t.call(this, e);
100
100
  };
101
101
  }
102
- function s(t, e, n) {
102
+ function o(t, e, n) {
103
103
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
104
104
  }
105
- function xt(t) {
105
+ function Gt(t) {
106
106
  return Array.from(t.childNodes);
107
107
  }
108
108
  function ke(t, e) {
@@ -114,9 +114,9 @@ function Ze(t, e) {
114
114
  function Q(t, e, n) {
115
115
  t.classList[n ? "add" : "remove"](e);
116
116
  }
117
- function Gt(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
117
+ function Ot(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
118
118
  const c = document.createEvent("CustomEvent");
119
- return c.initCustomEvent(t, n, l, e), c;
119
+ return c.initCustomEvent(t, n, r, e), c;
120
120
  }
121
121
  let ve;
122
122
  function we(t) {
@@ -127,15 +127,15 @@ function st() {
127
127
  throw new Error("Function called outside component initialization");
128
128
  return ve;
129
129
  }
130
- function Ot(t) {
130
+ function Dt(t) {
131
131
  st().$$.on_destroy.push(t);
132
132
  }
133
- function Dt() {
133
+ function Ft() {
134
134
  const t = st();
135
- return (e, n, { cancelable: l = !1 } = {}) => {
135
+ return (e, n, { cancelable: r = !1 } = {}) => {
136
136
  const c = t.$$.callbacks[e];
137
137
  if (c) {
138
- const u = Gt(e, n, { cancelable: l });
138
+ const u = Ot(e, n, { cancelable: r });
139
139
  return c.slice().forEach((i) => {
140
140
  i.call(t, u);
141
141
  }), !u.defaultPrevented;
@@ -145,17 +145,17 @@ function Dt() {
145
145
  }
146
146
  const fe = [], Oe = [];
147
147
  let ae = [];
148
- const Je = [], Ft = /* @__PURE__ */ Promise.resolve();
148
+ const Je = [], Vt = /* @__PURE__ */ Promise.resolve();
149
149
  let De = !1;
150
- function Vt() {
151
- De || (De = !0, Ft.then(ot));
150
+ function Ht() {
151
+ De || (De = !0, Vt.then(ut));
152
152
  }
153
153
  function Fe(t) {
154
154
  ae.push(t);
155
155
  }
156
156
  const Ge = /* @__PURE__ */ new Set();
157
157
  let ue = 0;
158
- function ot() {
158
+ function ut() {
159
159
  if (ue !== 0)
160
160
  return;
161
161
  const t = ve;
@@ -163,7 +163,7 @@ function ot() {
163
163
  try {
164
164
  for (; ue < fe.length; ) {
165
165
  const e = fe[ue];
166
- ue++, we(e), Ht(e.$$);
166
+ ue++, we(e), Kt(e.$$);
167
167
  }
168
168
  } catch (e) {
169
169
  throw fe.length = 0, ue = 0, e;
@@ -180,16 +180,16 @@ function ot() {
180
180
  Je.pop()();
181
181
  De = !1, Ge.clear(), we(t);
182
182
  }
183
- function Ht(t) {
183
+ function Kt(t) {
184
184
  if (t.fragment !== null) {
185
185
  t.update(), ee(t.before_update);
186
186
  const e = t.dirty;
187
187
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Fe);
188
188
  }
189
189
  }
190
- function Kt(t) {
190
+ function Qt(t) {
191
191
  const e = [], n = [];
192
- ae.forEach((l) => t.indexOf(l) === -1 ? e.push(l) : n.push(l)), n.forEach((l) => l()), ae = e;
192
+ ae.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ae = e;
193
193
  }
194
194
  const Ee = /* @__PURE__ */ new Set();
195
195
  let ie;
@@ -207,34 +207,34 @@ function Le() {
207
207
  function L(t, e) {
208
208
  t && t.i && (Ee.delete(t), t.i(e));
209
209
  }
210
- function O(t, e, n, l) {
210
+ function O(t, e, n, r) {
211
211
  if (t && t.o) {
212
212
  if (Ee.has(t))
213
213
  return;
214
214
  Ee.add(t), ie.c.push(() => {
215
- Ee.delete(t), l && (n && t.d(1), l());
215
+ Ee.delete(t), r && (n && t.d(1), r());
216
216
  }), t.o(e);
217
217
  } else
218
- l && l();
218
+ r && r();
219
219
  }
220
220
  function pe(t) {
221
221
  t && t.c();
222
222
  }
223
- function de(t, e, n, l) {
223
+ function de(t, e, n, r) {
224
224
  const { fragment: c, after_update: u } = t.$$;
225
- c && c.m(e, n), l || Fe(() => {
226
- const i = t.$$.on_mount.map(rt).filter(it);
225
+ c && c.m(e, n), r || Fe(() => {
226
+ const i = t.$$.on_mount.map(it).filter(ct);
227
227
  t.$$.on_destroy ? t.$$.on_destroy.push(...i) : ee(i), t.$$.on_mount = [];
228
228
  }), u.forEach(Fe);
229
229
  }
230
230
  function he(t, e) {
231
231
  const n = t.$$;
232
- n.fragment !== null && (Kt(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
232
+ n.fragment !== null && (Qt(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
233
233
  }
234
- function Qt(t, e) {
235
- t.$$.dirty[0] === -1 && (fe.push(t), Vt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
234
+ function qt(t, e) {
235
+ t.$$.dirty[0] === -1 && (fe.push(t), Ht(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
236
236
  }
237
- function _e(t, e, n, l, c, u, i, m = [-1]) {
237
+ function _e(t, e, n, r, c, u, i, m = [-1]) {
238
238
  const f = ve;
239
239
  we(t);
240
240
  const a = t.$$ = {
@@ -262,14 +262,14 @@ function _e(t, e, n, l, c, u, i, m = [-1]) {
262
262
  let h = !1;
263
263
  if (a.ctx = n ? n(t, e.props || {}, (v, I, ...N) => {
264
264
  const G = N.length ? N[0] : I;
265
- return a.ctx && c(a.ctx[v], a.ctx[v] = G) && (!a.skip_bound && a.bound[v] && a.bound[v](G), h && Qt(t, v)), I;
266
- }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = l ? l(a.ctx) : !1, e.target) {
265
+ return a.ctx && c(a.ctx[v], a.ctx[v] = G) && (!a.skip_bound && a.bound[v] && a.bound[v](G), h && qt(t, v)), I;
266
+ }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = r ? r(a.ctx) : !1, e.target) {
267
267
  if (e.hydrate) {
268
- const v = xt(e.target);
268
+ const v = Gt(e.target);
269
269
  a.fragment && a.fragment.l(v), v.forEach(D);
270
270
  } else
271
271
  a.fragment && a.fragment.c();
272
- e.intro && L(t.$$.fragment), de(t, e.target, e.anchor, e.customElement), ot();
272
+ e.intro && L(t.$$.fragment), de(t, e.target, e.anchor, e.customElement), ut();
273
273
  }
274
274
  we(f);
275
275
  }
@@ -278,70 +278,70 @@ class ge {
278
278
  he(this, 1), this.$destroy = w;
279
279
  }
280
280
  $on(e, n) {
281
- if (!it(n))
281
+ if (!ct(n))
282
282
  return w;
283
- const l = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
284
- return l.push(n), () => {
285
- const c = l.indexOf(n);
286
- c !== -1 && l.splice(c, 1);
283
+ const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
284
+ return r.push(n), () => {
285
+ const c = r.indexOf(n);
286
+ c !== -1 && r.splice(c, 1);
287
287
  };
288
288
  }
289
289
  $set(e) {
290
- this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
290
+ this.$$set && !St(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
291
291
  }
292
292
  }
293
- function qt(t) {
293
+ function Ut(t) {
294
294
  let e, n;
295
295
  return {
296
296
  c() {
297
- e = $("svg"), n = $("path"), s(n, "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"), s(e, "viewBox", "0 0 60.006 21.412"), s(e, "width", "14"), s(e, "height", "20"), s(e, "class", "svelte-en2qvf");
297
+ e = $("svg"), n = $("path"), o(n, "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"), o(e, "viewBox", "0 0 60.006 21.412"), o(e, "width", "14"), o(e, "height", "20"), o(e, "class", "svelte-en2qvf");
298
298
  },
299
- m(l, c) {
300
- K(l, e, c), _(e, n);
299
+ m(r, c) {
300
+ K(r, e, c), _(e, n);
301
301
  },
302
302
  p: w,
303
303
  i: w,
304
304
  o: w,
305
- d(l) {
306
- l && D(e);
305
+ d(r) {
306
+ r && D(e);
307
307
  }
308
308
  };
309
309
  }
310
- class Ut extends ge {
310
+ class Wt extends ge {
311
311
  constructor(e) {
312
- super(), _e(this, e, null, qt, me, {});
312
+ super(), _e(this, e, null, Ut, me, {});
313
313
  }
314
314
  }
315
- function Wt(t) {
315
+ function Zt(t) {
316
316
  let e, n;
317
317
  return {
318
318
  c() {
319
- e = $("svg"), n = $("path"), s(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), s(e, "viewBox", "0 0 18 18"), s(e, "width", "16"), s(e, "height", "16"), s(e, "class", "svelte-en2qvf");
319
+ e = $("svg"), n = $("path"), o(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), o(e, "viewBox", "0 0 18 18"), o(e, "width", "16"), o(e, "height", "16"), o(e, "class", "svelte-en2qvf");
320
320
  },
321
- m(l, c) {
322
- K(l, e, c), _(e, n);
321
+ m(r, c) {
322
+ K(r, e, c), _(e, n);
323
323
  },
324
324
  p: w,
325
325
  i: w,
326
326
  o: w,
327
- d(l) {
328
- l && D(e);
327
+ d(r) {
328
+ r && D(e);
329
329
  }
330
330
  };
331
331
  }
332
- class Zt extends ge {
332
+ class Jt extends ge {
333
333
  constructor(e) {
334
- super(), _e(this, e, null, Wt, me, {});
334
+ super(), _e(this, e, null, Zt, me, {});
335
335
  }
336
336
  }
337
- function Jt(t) {
337
+ function Xt(t) {
338
338
  let e;
339
339
  return {
340
340
  c() {
341
- e = S("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>', s(e, "class", "svelte-7cmwmc");
341
+ e = S("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>', o(e, "class", "svelte-7cmwmc");
342
342
  },
343
- m(n, l) {
344
- K(n, e, l);
343
+ m(n, r) {
344
+ K(n, e, r);
345
345
  },
346
346
  p: w,
347
347
  i: w,
@@ -351,17 +351,17 @@ function Jt(t) {
351
351
  }
352
352
  };
353
353
  }
354
- class Xt extends ge {
354
+ class Yt extends ge {
355
355
  constructor(e) {
356
- super(), _e(this, e, null, Jt, me, {});
356
+ super(), _e(this, e, null, Xt, me, {});
357
357
  }
358
358
  }
359
- function Yt(t) {
360
- let e, n, l;
359
+ function $t(t) {
360
+ let e, n, r;
361
361
  return {
362
362
  c() {
363
- e = $("svg"), n = $("path"), s(n, "stroke-width", "4"), s(n, "fill-rule", "evenodd"), s(n, "clip-rule", "evenodd"), s(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), s(n, "class", "svelte-1k1cmht"), s(e, "width", l = /*displayIn*/
364
- t[0] !== "list" ? void 0 : "20"), s(e, "viewBox", "0 0 70 85"), s(e, "fill", "none"), s(e, "class", "svelte-1k1cmht"), Q(
363
+ e = $("svg"), n = $("path"), o(n, "stroke-width", "4"), o(n, "fill-rule", "evenodd"), o(n, "clip-rule", "evenodd"), o(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), o(n, "class", "svelte-1k1cmht"), o(e, "width", r = /*displayIn*/
364
+ t[0] !== "list" ? void 0 : "20"), o(e, "viewBox", "0 0 70 85"), o(e, "fill", "none"), o(e, "class", "svelte-1k1cmht"), Q(
365
365
  e,
366
366
  "in-map",
367
367
  /*displayIn*/
@@ -378,8 +378,8 @@ function Yt(t) {
378
378
  },
379
379
  p(c, [u]) {
380
380
  u & /*displayIn*/
381
- 1 && l !== (l = /*displayIn*/
382
- c[0] !== "list" ? void 0 : "20") && s(e, "width", l), u & /*displayIn*/
381
+ 1 && r !== (r = /*displayIn*/
382
+ c[0] !== "list" ? void 0 : "20") && o(e, "width", r), u & /*displayIn*/
383
383
  1 && Q(
384
384
  e,
385
385
  "in-map",
@@ -400,73 +400,73 @@ function Yt(t) {
400
400
  }
401
401
  };
402
402
  }
403
- function $t(t, e, n) {
404
- let { displayIn: l } = e;
403
+ function en(t, e, n) {
404
+ let { displayIn: r } = e;
405
405
  return t.$$set = (c) => {
406
- "displayIn" in c && n(0, l = c.displayIn);
407
- }, [l];
406
+ "displayIn" in c && n(0, r = c.displayIn);
407
+ }, [r];
408
408
  }
409
- class en extends ge {
409
+ class tn extends ge {
410
410
  constructor(e) {
411
- super(), _e(this, e, $t, Yt, me, { displayIn: 0 });
411
+ super(), _e(this, e, en, $t, me, { displayIn: 0 });
412
412
  }
413
413
  }
414
- function tn(t) {
414
+ function nn(t) {
415
415
  let e, n;
416
416
  return {
417
417
  c() {
418
- e = $("svg"), n = $("path"), s(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), s(e, "viewBox", "0 0 18 18"), s(e, "xml:space", "preserve"), s(e, "width", "20"), s(e, "class", "svelte-en2qvf");
418
+ e = $("svg"), n = $("path"), o(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), o(e, "viewBox", "0 0 18 18"), o(e, "xml:space", "preserve"), o(e, "width", "20"), o(e, "class", "svelte-en2qvf");
419
419
  },
420
- m(l, c) {
421
- K(l, e, c), _(e, n);
420
+ m(r, c) {
421
+ K(r, e, c), _(e, n);
422
422
  },
423
423
  p: w,
424
424
  i: w,
425
425
  o: w,
426
- d(l) {
427
- l && D(e);
426
+ d(r) {
427
+ r && D(e);
428
428
  }
429
429
  };
430
430
  }
431
- class nn extends ge {
431
+ class rn extends ge {
432
432
  constructor(e) {
433
- super(), _e(this, e, null, tn, me, {});
433
+ super(), _e(this, e, null, nn, me, {});
434
434
  }
435
435
  }
436
436
  function Xe(t, e, n) {
437
- const l = t.slice();
438
- return l[69] = e[n], l[71] = n, l;
437
+ const r = t.slice();
438
+ return r[69] = e[n], r[71] = n, r;
439
439
  }
440
440
  function Ye(t) {
441
441
  let e, n;
442
- return e = new Xt({}), {
442
+ return e = new Yt({}), {
443
443
  c() {
444
444
  pe(e.$$.fragment);
445
445
  },
446
- m(l, c) {
447
- de(e, l, c), n = !0;
446
+ m(r, c) {
447
+ de(e, r, c), n = !0;
448
448
  },
449
- i(l) {
450
- n || (L(e.$$.fragment, l), n = !0);
449
+ i(r) {
450
+ n || (L(e.$$.fragment, r), n = !0);
451
451
  },
452
- o(l) {
453
- O(e.$$.fragment, l), n = !1;
452
+ o(r) {
453
+ O(e.$$.fragment, r), n = !1;
454
454
  },
455
- d(l) {
456
- he(e, l);
455
+ d(r) {
456
+ he(e, r);
457
457
  }
458
458
  };
459
459
  }
460
460
  function $e(t) {
461
- let e, n, l, c, u;
462
- return n = new Ut({}), {
461
+ let e, n, r, c, u;
462
+ return n = new Wt({}), {
463
463
  c() {
464
- e = S("button"), pe(n.$$.fragment), s(e, "type", "button"), s(
464
+ e = S("button"), pe(n.$$.fragment), o(e, "type", "button"), o(
465
465
  e,
466
466
  "title",
467
467
  /*reverseButtonTitle*/
468
468
  t[9]
469
- ), s(e, "class", "svelte-z0d4ta"), Q(
469
+ ), o(e, "class", "svelte-z0d4ta"), Q(
470
470
  e,
471
471
  "active",
472
472
  /*reverseActive*/
@@ -474,7 +474,7 @@ function $e(t) {
474
474
  );
475
475
  },
476
476
  m(i, m) {
477
- K(i, e, m), de(n, e, null), l = !0, c || (u = H(
477
+ K(i, e, m), de(n, e, null), r = !0, c || (u = H(
478
478
  e,
479
479
  "click",
480
480
  /*click_handler_2*/
@@ -482,13 +482,13 @@ function $e(t) {
482
482
  ), c = !0);
483
483
  },
484
484
  p(i, m) {
485
- (!l || m[0] & /*reverseButtonTitle*/
486
- 512) && s(
485
+ (!r || m[0] & /*reverseButtonTitle*/
486
+ 512) && o(
487
487
  e,
488
488
  "title",
489
489
  /*reverseButtonTitle*/
490
490
  i[9]
491
- ), (!l || m[0] & /*reverseActive*/
491
+ ), (!r || m[0] & /*reverseActive*/
492
492
  1) && Q(
493
493
  e,
494
494
  "active",
@@ -497,10 +497,10 @@ function $e(t) {
497
497
  );
498
498
  },
499
499
  i(i) {
500
- l || (L(n.$$.fragment, i), l = !0);
500
+ r || (L(n.$$.fragment, i), r = !0);
501
501
  },
502
502
  o(i) {
503
- O(n.$$.fragment, i), l = !1;
503
+ O(n.$$.fragment, i), r = !1;
504
504
  },
505
505
  d(i) {
506
506
  i && D(e), he(n), c = !1, u();
@@ -508,7 +508,7 @@ function $e(t) {
508
508
  };
509
509
  }
510
510
  function ln(t) {
511
- let e, n, l, c, u = (
511
+ let e, n, r, c, u = (
512
512
  /*listFeatures*/
513
513
  t[12]
514
514
  ), i = [];
@@ -522,13 +522,13 @@ function ln(t) {
522
522
  e = S("ul");
523
523
  for (let f = 0; f < i.length; f += 1)
524
524
  i[f].c();
525
- s(e, "class", "svelte-z0d4ta");
525
+ o(e, "class", "svelte-z0d4ta");
526
526
  },
527
527
  m(f, a) {
528
528
  K(f, e, a);
529
529
  for (let h = 0; h < i.length; h += 1)
530
530
  i[h] && i[h].m(e, null);
531
- n = !0, l || (c = [
531
+ n = !0, r || (c = [
532
532
  H(
533
533
  e,
534
534
  "mouseleave",
@@ -541,7 +541,7 @@ function ln(t) {
541
541
  /*blur_handler_1*/
542
542
  t[60]
543
543
  )
544
- ], l = !0);
544
+ ], r = !0);
545
545
  },
546
546
  p(f, a) {
547
547
  if (a[0] & /*selectedItemIndex, pick, listFeatures, showPlaceType*/
@@ -572,51 +572,51 @@ function ln(t) {
572
572
  n = !1;
573
573
  },
574
574
  d(f) {
575
- f && D(e), Nt(i, f), l = !1, ee(c);
575
+ f && D(e), xt(i, f), r = !1, ee(c);
576
576
  }
577
577
  };
578
578
  }
579
- function rn(t) {
579
+ function cn(t) {
580
580
  let e, n;
581
581
  return {
582
582
  c() {
583
583
  e = S("div"), n = ce(
584
584
  /*noResultsMessage*/
585
585
  t[7]
586
- ), s(e, "class", "no-results svelte-z0d4ta");
586
+ ), o(e, "class", "no-results svelte-z0d4ta");
587
587
  },
588
- m(l, c) {
589
- K(l, e, c), _(e, n);
588
+ m(r, c) {
589
+ K(r, e, c), _(e, n);
590
590
  },
591
- p(l, c) {
591
+ p(r, c) {
592
592
  c[0] & /*noResultsMessage*/
593
593
  128 && ke(
594
594
  n,
595
595
  /*noResultsMessage*/
596
- l[7]
596
+ r[7]
597
597
  );
598
598
  },
599
599
  i: w,
600
600
  o: w,
601
- d(l) {
602
- l && D(e);
601
+ d(r) {
602
+ r && D(e);
603
603
  }
604
604
  };
605
605
  }
606
- function cn(t) {
606
+ function on(t) {
607
607
  let e = "", n;
608
608
  return {
609
609
  c() {
610
610
  n = ce(e);
611
611
  },
612
- m(l, c) {
613
- K(l, n, c);
612
+ m(r, c) {
613
+ K(r, n, c);
614
614
  },
615
615
  p: w,
616
616
  i: w,
617
617
  o: w,
618
- d(l) {
619
- l && D(n);
618
+ d(r) {
619
+ r && D(n);
620
620
  }
621
621
  };
622
622
  }
@@ -627,23 +627,23 @@ function sn(t) {
627
627
  e = S("div"), n = ce(
628
628
  /*errorMessage*/
629
629
  t[6]
630
- ), s(e, "class", "error svelte-z0d4ta");
630
+ ), o(e, "class", "error svelte-z0d4ta");
631
631
  },
632
- m(l, c) {
633
- K(l, e, c), _(e, n);
632
+ m(r, c) {
633
+ K(r, e, c), _(e, n);
634
634
  },
635
- p(l, c) {
635
+ p(r, c) {
636
636
  c[0] & /*errorMessage*/
637
637
  64 && ke(
638
638
  n,
639
639
  /*errorMessage*/
640
- l[6]
640
+ r[6]
641
641
  );
642
642
  },
643
643
  i: w,
644
644
  o: w,
645
- d(l) {
646
- l && D(e);
645
+ d(r) {
646
+ r && D(e);
647
647
  }
648
648
  };
649
649
  }
@@ -653,20 +653,20 @@ function et(t) {
653
653
  /*feature*/
654
654
  (((u = (c = t[69].properties) == null ? void 0 : c.place_type_name) == null ? void 0 : u[0]) ?? /*feature*/
655
655
  t[69].place_type[0]) + ""
656
- ), l;
656
+ ), r;
657
657
  return {
658
658
  c() {
659
- e = S("span"), l = ce(n), s(e, "class", "svelte-z0d4ta");
659
+ e = S("span"), r = ce(n), o(e, "class", "svelte-z0d4ta");
660
660
  },
661
661
  m(i, m) {
662
- K(i, e, m), _(e, l);
662
+ K(i, e, m), _(e, r);
663
663
  },
664
664
  p(i, m) {
665
665
  var f, a;
666
666
  m[0] & /*listFeatures*/
667
667
  4096 && n !== (n = /*feature*/
668
668
  (((a = (f = i[69].properties) == null ? void 0 : f.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
669
- i[69].place_type[0]) + "") && ke(l, n);
669
+ i[69].place_type[0]) + "") && ke(r, n);
670
670
  },
671
671
  d(i) {
672
672
  i && D(e);
@@ -674,14 +674,14 @@ function et(t) {
674
674
  };
675
675
  }
676
676
  function tt(t) {
677
- let e, n, l, c, u, i, m = (
677
+ let e, n, r, c, u, i, m = (
678
678
  /*feature*/
679
679
  t[69].place_name.replace(/,.*/, "") + ""
680
680
  ), f, a, h, v, I, N = (
681
681
  /*feature*/
682
682
  t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
683
683
  ), G, p, k, B, C, F;
684
- n = new en({ props: { displayIn: "list" } });
684
+ n = new tn({ props: { displayIn: "list" } });
685
685
  let z = (
686
686
  /*showPlaceType*/
687
687
  t[10] && et(t)
@@ -706,9 +706,9 @@ function tt(t) {
706
706
  }
707
707
  return {
708
708
  c() {
709
- e = S("li"), pe(n.$$.fragment), l = W(), c = S("span"), u = S("span"), i = S("span"), f = ce(m), a = W(), z && z.c(), h = W(), v = S("span"), I = S("span"), G = ce(N), p = W(), s(i, "class", "svelte-z0d4ta"), s(u, "class", "svelte-z0d4ta"), s(c, "class", "svelte-z0d4ta"), s(I, "class", "svelte-z0d4ta"), s(v, "class", "svelte-z0d4ta"), s(e, "tabindex", "0"), s(e, "data-selected", k = /*selectedItemIndex*/
709
+ e = S("li"), pe(n.$$.fragment), r = W(), c = S("span"), u = S("span"), i = S("span"), f = ce(m), a = W(), z && z.c(), h = W(), v = S("span"), I = S("span"), G = ce(N), p = W(), o(i, "class", "svelte-z0d4ta"), o(u, "class", "svelte-z0d4ta"), o(c, "class", "svelte-z0d4ta"), o(I, "class", "svelte-z0d4ta"), o(v, "class", "svelte-z0d4ta"), o(e, "tabindex", "0"), o(e, "data-selected", k = /*selectedItemIndex*/
710
710
  t[13] === /*i*/
711
- t[71]), s(e, "class", "svelte-z0d4ta"), Q(
711
+ t[71]), o(e, "class", "svelte-z0d4ta"), Q(
712
712
  e,
713
713
  "selected",
714
714
  /*selectedItemIndex*/
@@ -717,7 +717,7 @@ function tt(t) {
717
717
  );
718
718
  },
719
719
  m(P, M) {
720
- K(P, e, M), de(n, e, null), _(e, l), _(e, c), _(c, u), _(u, i), _(i, f), _(u, a), z && z.m(u, null), _(e, h), _(e, v), _(v, I), _(I, G), _(e, p), B = !0, C || (F = [
720
+ K(P, e, M), de(n, e, null), _(e, r), _(e, c), _(c, u), _(u, i), _(i, f), _(u, a), z && z.m(u, null), _(e, h), _(e, v), _(v, I), _(I, G), _(e, p), B = !0, C || (F = [
721
721
  H(e, "mouseenter", d),
722
722
  H(e, "focus", b)
723
723
  ], C = !0);
@@ -731,7 +731,7 @@ function tt(t) {
731
731
  t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && ke(G, N), (!B || M[0] & /*selectedItemIndex*/
732
732
  8192 && k !== (k = /*selectedItemIndex*/
733
733
  t[13] === /*i*/
734
- t[71])) && s(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
734
+ t[71])) && o(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
735
735
  8192) && Q(
736
736
  e,
737
737
  "selected",
@@ -751,9 +751,9 @@ function tt(t) {
751
751
  }
752
752
  };
753
753
  }
754
- function on(t) {
755
- let e, n, l, c, u, i, m, f, a, h, v, I, N, G, p, k, B, C, F, z;
756
- c = new nn({}), h = new Zt({});
754
+ function un(t) {
755
+ let e, n, r, c, u, i, m, f, a, h, v, I, N, G, p, k, B, C, F, z;
756
+ c = new rn({}), h = new Jt({});
757
757
  let d = (
758
758
  /*abortController*/
759
759
  t[17] && Ye()
@@ -764,25 +764,25 @@ function on(t) {
764
764
  const P = (
765
765
  /*#slots*/
766
766
  t[48].default
767
- ), M = St(
767
+ ), M = It(
768
768
  P,
769
769
  t,
770
770
  /*$$scope*/
771
771
  t[47],
772
772
  null
773
- ), Z = [sn, cn, rn, ln], A = [];
774
- function ye(o, T) {
773
+ ), Z = [sn, on, cn, ln], A = [];
774
+ function ye(s, T) {
775
775
  var J, te;
776
776
  return (
777
777
  /*error*/
778
- o[16] ? 0 : (
778
+ s[16] ? 0 : (
779
779
  /*focusedDelayed*/
780
- o[14] ? (
780
+ s[14] ? (
781
781
  /*listFeatures*/
782
- ((J = o[12]) == null ? void 0 : J.length) === 0 ? 2 : (
782
+ ((J = s[12]) == null ? void 0 : J.length) === 0 ? 2 : (
783
783
  /*focusedDelayed*/
784
- o[14] && /*listFeatures*/
785
- ((te = o[12]) != null && te.length) ? 3 : -1
784
+ s[14] && /*listFeatures*/
785
+ ((te = s[12]) != null && te.length) ? 3 : -1
786
786
  )
787
787
  ) : 1
788
788
  )
@@ -790,27 +790,27 @@ function on(t) {
790
790
  }
791
791
  return ~(p = ye(t)) && (k = A[p] = Z[p](t)), {
792
792
  c() {
793
- e = S("form"), n = S("div"), l = S("button"), pe(c.$$.fragment), u = W(), i = S("input"), m = W(), f = S("div"), a = S("button"), pe(h.$$.fragment), v = W(), d && d.c(), I = W(), b && b.c(), N = W(), M && M.c(), G = W(), k && k.c(), s(l, "type", "button"), s(l, "class", "svelte-z0d4ta"), s(
793
+ e = S("form"), n = S("div"), r = S("button"), pe(c.$$.fragment), u = W(), i = S("input"), m = W(), f = S("div"), a = S("button"), pe(h.$$.fragment), v = W(), d && d.c(), I = W(), b && b.c(), N = W(), M && M.c(), G = W(), k && k.c(), o(r, "type", "button"), o(r, "class", "svelte-z0d4ta"), o(
794
794
  i,
795
795
  "placeholder",
796
796
  /*placeholder*/
797
797
  t[8]
798
- ), s(
798
+ ), o(
799
799
  i,
800
800
  "aria-label",
801
801
  /*placeholder*/
802
802
  t[8]
803
- ), s(i, "class", "svelte-z0d4ta"), s(a, "type", "button"), s(
803
+ ), o(i, "class", "svelte-z0d4ta"), o(a, "type", "button"), o(
804
804
  a,
805
805
  "title",
806
806
  /*clearButtonTitle*/
807
807
  t[3]
808
- ), s(a, "class", "svelte-z0d4ta"), Q(
808
+ ), o(a, "class", "svelte-z0d4ta"), Q(
809
809
  a,
810
810
  "displayable",
811
811
  /*searchValue*/
812
812
  t[1] !== ""
813
- ), s(f, "class", "clear-button-container svelte-z0d4ta"), s(n, "class", "input-group svelte-z0d4ta"), s(e, "tabindex", "0"), s(e, "class", B = We(
813
+ ), o(f, "class", "clear-button-container svelte-z0d4ta"), o(n, "class", "input-group svelte-z0d4ta"), o(e, "tabindex", "0"), o(e, "class", B = We(
814
814
  /*className*/
815
815
  t[2]
816
816
  ) + " svelte-z0d4ta"), Q(
@@ -821,14 +821,14 @@ function on(t) {
821
821
  t[1] === ""
822
822
  );
823
823
  },
824
- m(o, T) {
825
- K(o, e, T), _(e, n), _(n, l), de(c, l, null), _(n, u), _(n, i), t[50](i), Ze(
824
+ m(s, T) {
825
+ K(s, e, T), _(e, n), _(n, r), de(c, r, null), _(n, u), _(n, i), t[50](i), Ze(
826
826
  i,
827
827
  /*searchValue*/
828
828
  t[1]
829
829
  ), _(n, m), _(n, f), _(f, a), de(h, a, null), _(f, v), d && d.m(f, null), _(n, I), b && b.m(n, null), _(n, N), M && M.m(n, null), _(e, G), ~p && A[p].m(e, null), C = !0, F || (z = [
830
830
  H(
831
- l,
831
+ r,
832
832
  "click",
833
833
  /*click_handler*/
834
834
  t[49]
@@ -875,233 +875,237 @@ function on(t) {
875
875
  ))
876
876
  ], F = !0);
877
877
  },
878
- p(o, T) {
878
+ p(s, T) {
879
879
  (!C || T[0] & /*placeholder*/
880
- 256) && s(
880
+ 256) && o(
881
881
  i,
882
882
  "placeholder",
883
883
  /*placeholder*/
884
- o[8]
884
+ s[8]
885
885
  ), (!C || T[0] & /*placeholder*/
886
- 256) && s(
886
+ 256) && o(
887
887
  i,
888
888
  "aria-label",
889
889
  /*placeholder*/
890
- o[8]
890
+ s[8]
891
891
  ), T[0] & /*searchValue*/
892
892
  2 && i.value !== /*searchValue*/
893
- o[1] && Ze(
893
+ s[1] && Ze(
894
894
  i,
895
895
  /*searchValue*/
896
- o[1]
896
+ s[1]
897
897
  ), (!C || T[0] & /*clearButtonTitle*/
898
- 8) && s(
898
+ 8) && o(
899
899
  a,
900
900
  "title",
901
901
  /*clearButtonTitle*/
902
- o[3]
902
+ s[3]
903
903
  ), (!C || T[0] & /*searchValue*/
904
904
  2) && Q(
905
905
  a,
906
906
  "displayable",
907
907
  /*searchValue*/
908
- o[1] !== ""
908
+ s[1] !== ""
909
909
  ), /*abortController*/
910
- o[17] ? d ? T[0] & /*abortController*/
910
+ s[17] ? d ? T[0] & /*abortController*/
911
911
  131072 && L(d, 1) : (d = Ye(), d.c(), L(d, 1), d.m(f, null)) : d && (Be(), O(d, 1, 1, () => {
912
912
  d = null;
913
913
  }), Le()), /*enableReverse*/
914
- o[5] === !0 ? b ? (b.p(o, T), T[0] & /*enableReverse*/
915
- 32 && L(b, 1)) : (b = $e(o), b.c(), L(b, 1), b.m(n, N)) : b && (Be(), O(b, 1, 1, () => {
914
+ s[5] === !0 ? b ? (b.p(s, T), T[0] & /*enableReverse*/
915
+ 32 && L(b, 1)) : (b = $e(s), b.c(), L(b, 1), b.m(n, N)) : b && (Be(), O(b, 1, 1, () => {
916
916
  b = null;
917
917
  }), Le()), M && M.p && (!C || T[1] & /*$$scope*/
918
- 65536) && At(
918
+ 65536) && Pt(
919
919
  M,
920
920
  P,
921
- o,
921
+ s,
922
922
  /*$$scope*/
923
- o[47],
924
- C ? It(
923
+ s[47],
924
+ C ? At(
925
925
  P,
926
926
  /*$$scope*/
927
- o[47],
927
+ s[47],
928
928
  T,
929
929
  null
930
- ) : Pt(
930
+ ) : Nt(
931
931
  /*$$scope*/
932
- o[47]
932
+ s[47]
933
933
  ),
934
934
  null
935
935
  );
936
936
  let J = p;
937
- p = ye(o), p === J ? ~p && A[p].p(o, T) : (k && (Be(), O(A[J], 1, 1, () => {
937
+ p = ye(s), p === J ? ~p && A[p].p(s, T) : (k && (Be(), O(A[J], 1, 1, () => {
938
938
  A[J] = null;
939
- }), Le()), ~p ? (k = A[p], k ? k.p(o, T) : (k = A[p] = Z[p](o), k.c()), L(k, 1), k.m(e, null)) : k = null), (!C || T[0] & /*className*/
939
+ }), Le()), ~p ? (k = A[p], k ? k.p(s, T) : (k = A[p] = Z[p](s), k.c()), L(k, 1), k.m(e, null)) : k = null), (!C || T[0] & /*className*/
940
940
  4 && B !== (B = We(
941
941
  /*className*/
942
- o[2]
943
- ) + " svelte-z0d4ta")) && s(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
942
+ s[2]
943
+ ) + " svelte-z0d4ta")) && o(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
944
944
  22) && Q(
945
945
  e,
946
946
  "can-collapse",
947
947
  /*collapsed*/
948
- o[4] && /*searchValue*/
949
- o[1] === ""
948
+ s[4] && /*searchValue*/
949
+ s[1] === ""
950
950
  );
951
951
  },
952
- i(o) {
953
- C || (L(c.$$.fragment, o), L(h.$$.fragment, o), L(d), L(b), L(M, o), L(k), C = !0);
952
+ i(s) {
953
+ C || (L(c.$$.fragment, s), L(h.$$.fragment, s), L(d), L(b), L(M, s), L(k), C = !0);
954
954
  },
955
- o(o) {
956
- O(c.$$.fragment, o), O(h.$$.fragment, o), O(d), O(b), O(M, o), O(k), C = !1;
955
+ o(s) {
956
+ O(c.$$.fragment, s), O(h.$$.fragment, s), O(d), O(b), O(M, s), O(k), C = !1;
957
957
  },
958
- d(o) {
959
- o && D(e), he(c), t[50](null), he(h), d && d.d(), b && b.d(), M && M.d(o), ~p && A[p].d(), F = !1, ee(z);
958
+ d(s) {
959
+ s && D(e), he(c), t[50](null), he(h), d && d.d(), b && b.d(), M && M.d(s), ~p && A[p].d(), F = !1, ee(z);
960
960
  }
961
961
  };
962
962
  }
963
- function un(t, e, n) {
964
- const l = e[1], c = e[0], u = l - c;
965
- return t === l && n ? t : ((t - c) % u + u) % u + c;
966
- }
967
963
  function fn(t, e, n) {
968
- let l, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey: m } = e, { bbox: f = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: I = void 0 } = e, { debounceSearch: N = 200 } = e, { enableReverse: G = !1 } = e, { errorMessage: p = "Searching failed" } = e, { filter: k = () => !0 } = e, { flyTo: B = !0 } = e, { fuzzyMatch: C = !0 } = e, { language: F = void 0 } = e, { limit: z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: P = "No results found" } = e, { placeholder: M = "Search" } = e, { proximity: Z = void 0 } = e, { reverseActive: A = G === "always" } = e, { reverseButtonTitle: ye = "toggle reverse geocoding" } = e, { searchValue: o = "" } = e, { showFullGeometry: T = !0 } = e, { showPlaceType: J = !1 } = e, { showResultsWhileTyping: te = !0 } = e, { trackProximity: ze = !0 } = e, { types: Me = void 0 } = e, { zoom: Te = 16 } = e, { fetchParameters: Se = {} } = e;
969
- function ut() {
964
+ const r = e[1], c = e[0], u = r - c;
965
+ return t === r && n ? t : ((t - c) % u + u) % u + c;
966
+ }
967
+ function nt(t) {
968
+ let e = [...t];
969
+ return e[2] < e[0] && (e[2] += 360), e;
970
+ }
971
+ function an(t, e, n) {
972
+ let r, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey: m } = e, { bbox: f = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: I = void 0 } = e, { debounceSearch: N = 200 } = e, { enableReverse: G = !1 } = e, { errorMessage: p = "Searching failed" } = e, { filter: k = () => !0 } = e, { flyTo: B = !0 } = e, { fuzzyMatch: C = !0 } = e, { language: F = void 0 } = e, { limit: z = void 0 } = e, { mapController: d = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: P = "No results found" } = e, { placeholder: M = "Search" } = e, { proximity: Z = void 0 } = e, { reverseActive: A = G === "always" } = e, { reverseButtonTitle: ye = "toggle reverse geocoding" } = e, { searchValue: s = "" } = e, { showFullGeometry: T = !0 } = e, { showPlaceType: J = !1 } = e, { showResultsWhileTyping: te = !0 } = e, { trackProximity: ze = !0 } = e, { types: Me = void 0 } = e, { zoom: Te = 16 } = e, { fetchParameters: Se = {} } = e;
973
+ function ft() {
970
974
  q.focus();
971
975
  }
972
- function ft() {
976
+ function at() {
973
977
  q.blur();
974
978
  }
975
- function Ve(r, E = !0) {
976
- n(1, o = r), E ? (n(13, R = -1), Ke()) : (Ae(), setTimeout(() => {
979
+ function Ve(l, E = !0) {
980
+ n(1, s = l), E ? (n(13, R = -1), Ke()) : (Ae(), setTimeout(() => {
977
981
  q.focus(), q.select();
978
982
  }));
979
983
  }
980
- let se = !1, g, j, y, He = "", q, R = -1, X, Ce = [], ne, oe, Re;
981
- const Y = Dt();
982
- Ot(() => {
984
+ let oe = !1, g, x, y, He = "", q, R = -1, X, Ce = [], ne, se, Re;
985
+ const Y = Ft();
986
+ Dt(() => {
983
987
  d && (d.setEventHandler(void 0), d.indicateReverse(!1), d.setSelectedMarker(-1), d.setMarkers(void 0, void 0));
984
988
  });
985
- function Ke(r) {
986
- if (oe && (clearTimeout(oe), oe = void 0), R > -1 && g)
987
- n(45, y = g[R]), n(1, o = y.place_name.replace(/,.*/, "")), n(16, X = void 0), n(44, j = void 0), n(13, R = -1);
988
- else if (o) {
989
- const E = r || !Qe();
990
- Ie(o, { exact: !0 }).then(() => {
991
- n(44, j = g), n(45, y = void 0), E && at();
989
+ function Ke(l) {
990
+ if (se && (clearTimeout(se), se = void 0), R > -1 && g)
991
+ n(45, y = g[R]), n(1, s = y.place_name.replace(/,.*/, "")), n(16, X = void 0), n(44, x = void 0), n(13, R = -1);
992
+ else if (s) {
993
+ const E = l || !Qe();
994
+ Ie(s, { exact: !0 }).then(() => {
995
+ n(44, x = g), n(45, y = void 0), E && dt();
992
996
  }).catch((U) => n(16, X = U));
993
997
  }
994
998
  }
995
999
  function Qe() {
996
- return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(o);
1000
+ return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(s);
997
1001
  }
998
- async function Ie(r, { byId: E = !1, exact: U = !1 } = {}) {
1002
+ async function Ie(l, { byId: E = !1, exact: U = !1 } = {}) {
999
1003
  n(16, X = void 0);
1000
1004
  const be = Qe(), V = new URLSearchParams();
1001
- F != null && V.set("language", Array.isArray(F) ? F.join(",") : F), Me && V.set("types", Me.join(",")), be || (f && V.set("bbox", f.map((re) => re.toFixed(6)).join(",")), I && V.set("country", Array.isArray(I) ? I.join(",") : I)), E || (Z && V.set("proximity", Z.map((re) => re.toFixed(6)).join(",")), (U || !te) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(C))), z !== void 0 && V.set("limit", String(z)), V.set("key", m);
1002
- const le = "https://api.maptiler.com/geocoding/" + encodeURIComponent(r) + ".json?" + V.toString();
1003
- if (le === He) {
1005
+ F != null && V.set("language", Array.isArray(F) ? F.join(",") : F), Me && V.set("types", Me.join(",")), be || (f && V.set("bbox", f.map((le) => le.toFixed(6)).join(",")), I && V.set("country", Array.isArray(I) ? I.join(",") : I)), E || (Z && V.set("proximity", Z.map((le) => le.toFixed(6)).join(",")), (U || !te) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(C))), z !== void 0 && V.set("limit", String(z)), V.set("key", m);
1006
+ const re = "https://api.maptiler.com/geocoding/" + encodeURIComponent(l) + ".json?" + V.toString();
1007
+ if (re === He) {
1004
1008
  E ? (n(12, g = void 0), n(45, y = Ce[0])) : n(12, g = Ce);
1005
1009
  return;
1006
1010
  }
1007
- He = le, ne == null || ne.abort();
1008
- const x = new AbortController();
1009
- n(17, ne = x);
1011
+ He = re, ne == null || ne.abort();
1012
+ const j = new AbortController();
1013
+ n(17, ne = j);
1010
1014
  let Ne;
1011
1015
  try {
1012
- Ne = await fetch(le, { signal: x.signal, ...Se }).finally(() => {
1013
- x === ne && n(17, ne = void 0);
1016
+ Ne = await fetch(re, { signal: j.signal, ...Se }).finally(() => {
1017
+ j === ne && n(17, ne = void 0);
1014
1018
  });
1015
- } catch (re) {
1016
- if (re && typeof re == "object" && re.name === "AbortError")
1019
+ } catch (le) {
1020
+ if (le && typeof le == "object" && le.name === "AbortError")
1017
1021
  return;
1018
1022
  throw new Error();
1019
1023
  }
1020
1024
  if (!Ne.ok)
1021
1025
  throw new Error();
1022
- const je = await Ne.json();
1023
- Y("response", { url: le, featureCollection: je }), E ? (n(12, g = void 0), n(45, y = je.features[0]), Ce = [y]) : (n(12, g = je.features.filter(k)), Ce = g, be && q.focus());
1026
+ const xe = await Ne.json();
1027
+ Y("response", { url: re, featureCollection: xe }), E ? (n(12, g = void 0), n(45, y = xe.features[0]), Ce = [y]) : (n(12, g = xe.features.filter(k)), Ce = g, be && q.focus());
1024
1028
  }
1025
- function at() {
1026
- var U, be, V, le;
1027
- if (!(j != null && j.length) || !B)
1029
+ function dt() {
1030
+ var U, be, V, re;
1031
+ if (!(x != null && x.length) || !B)
1028
1032
  return;
1029
- const r = [180, 90, -180, -90], E = !j.some((x) => !x.matching_text);
1030
- for (const x of j)
1031
- (E || !x.matching_text) && (r[0] = Math.min(r[0], ((U = x.bbox) == null ? void 0 : U[0]) ?? x.center[0]), r[1] = Math.min(r[1], ((be = x.bbox) == null ? void 0 : be[1]) ?? x.center[1]), r[2] = Math.max(r[2], ((V = x.bbox) == null ? void 0 : V[2]) ?? x.center[0]), r[3] = Math.max(r[3], ((le = x.bbox) == null ? void 0 : le[3]) ?? x.center[1]));
1032
- d && j.length > 0 && (y && r[0] === r[2] && r[1] === r[3] ? d.flyTo(y.center, Te) : d.fitBounds(r, 50));
1033
+ const l = [180, 90, -180, -90], E = !x.some((j) => !j.matching_text);
1034
+ for (const j of x)
1035
+ (E || !j.matching_text) && (l[0] = Math.min(l[0], ((U = j.bbox) == null ? void 0 : U[0]) ?? j.center[0]), l[1] = Math.min(l[1], ((be = j.bbox) == null ? void 0 : be[1]) ?? j.center[1]), l[2] = Math.max(l[2], ((V = j.bbox) == null ? void 0 : V[2]) ?? j.center[0]), l[3] = Math.max(l[3], ((re = j.bbox) == null ? void 0 : re[3]) ?? j.center[1]));
1036
+ d && x.length > 0 && (y && l[0] === l[2] && l[1] === l[3] ? d.flyTo(y.center, Te) : d.fitBounds(nt(l), 50));
1033
1037
  }
1034
- function dt(r) {
1035
- n(0, A = G === "always"), Ve(un(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
1038
+ function ht(l) {
1039
+ n(0, A = G === "always"), Ve(fn(l[0], [-180, 180], !0).toFixed(6) + "," + l[1].toFixed(6));
1036
1040
  }
1037
- function ht(r) {
1041
+ function mt(l) {
1038
1042
  if (!g)
1039
1043
  return;
1040
- let E = r.key === "ArrowDown" ? 1 : r.key === "ArrowUp" ? -1 : 0;
1041
- E ? (R === -1 && E === -1 && n(13, R = g.length), n(13, R += E), R >= g.length && n(13, R = -1), r.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(r.key) && n(13, R = -1);
1044
+ let E = l.key === "ArrowDown" ? 1 : l.key === "ArrowUp" ? -1 : 0;
1045
+ E ? (R === -1 && E === -1 && n(13, R = g.length), n(13, R += E), R >= g.length && n(13, R = -1), l.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(l.key) && n(13, R = -1);
1042
1046
  }
1043
- function Ae(r = !0) {
1044
- if (te && o.length > b) {
1045
- oe && clearTimeout(oe);
1046
- const E = o;
1047
- oe = window.setTimeout(
1047
+ function Ae(l = !0) {
1048
+ if (te && s.length > b) {
1049
+ se && clearTimeout(se);
1050
+ const E = s;
1051
+ se = window.setTimeout(
1048
1052
  () => {
1049
1053
  Ie(E).catch((U) => n(16, X = U));
1050
1054
  },
1051
- r ? N : 0
1055
+ l ? N : 0
1052
1056
  );
1053
1057
  } else
1054
1058
  n(12, g = void 0), n(16, X = void 0);
1055
1059
  }
1056
- function Pe(r) {
1057
- n(45, y = r), n(1, o = r.place_name), n(13, R = -1);
1060
+ function Pe(l) {
1061
+ n(45, y = l), n(1, s = l.place_name), n(13, R = -1);
1058
1062
  }
1059
- const mt = () => q.focus();
1060
- function _t(r) {
1061
- Oe[r ? "unshift" : "push"](() => {
1062
- q = r, n(15, q);
1063
+ const _t = () => q.focus();
1064
+ function gt(l) {
1065
+ Oe[l ? "unshift" : "push"](() => {
1066
+ q = l, n(15, q);
1063
1067
  });
1064
1068
  }
1065
- function gt() {
1066
- o = this.value, n(1, o), n(11, se), n(25, h);
1069
+ function yt() {
1070
+ s = this.value, n(1, s), n(11, oe), n(25, h);
1067
1071
  }
1068
- const yt = () => n(11, se = !0), bt = () => n(11, se = !1), wt = () => Ae(), kt = () => {
1069
- n(1, o = ""), q.focus();
1070
- }, vt = () => n(0, A = !A), pt = (r) => n(13, R = r), zt = (r) => Pe(r), Mt = () => n(13, R = -1), Tt = () => {
1072
+ const bt = () => n(11, oe = !0), wt = () => n(11, oe = !1), kt = () => Ae(), vt = () => {
1073
+ n(1, s = ""), q.focus();
1074
+ }, pt = () => n(0, A = !A), zt = (l) => n(13, R = l), Mt = (l) => Pe(l), Tt = () => n(13, R = -1), Ct = () => {
1071
1075
  };
1072
- return t.$$set = (r) => {
1073
- "class" in r && n(2, i = r.class), "apiKey" in r && n(23, m = r.apiKey), "bbox" in r && n(24, f = r.bbox), "clearButtonTitle" in r && n(3, a = r.clearButtonTitle), "clearOnBlur" in r && n(25, h = r.clearOnBlur), "collapsed" in r && n(4, v = r.collapsed), "country" in r && n(26, I = r.country), "debounceSearch" in r && n(27, N = r.debounceSearch), "enableReverse" in r && n(5, G = r.enableReverse), "errorMessage" in r && n(6, p = r.errorMessage), "filter" in r && n(28, k = r.filter), "flyTo" in r && n(29, B = r.flyTo), "fuzzyMatch" in r && n(30, C = r.fuzzyMatch), "language" in r && n(31, F = r.language), "limit" in r && n(32, z = r.limit), "mapController" in r && n(33, d = r.mapController), "minLength" in r && n(34, b = r.minLength), "noResultsMessage" in r && n(7, P = r.noResultsMessage), "placeholder" in r && n(8, M = r.placeholder), "proximity" in r && n(22, Z = r.proximity), "reverseActive" in r && n(0, A = r.reverseActive), "reverseButtonTitle" in r && n(9, ye = r.reverseButtonTitle), "searchValue" in r && n(1, o = r.searchValue), "showFullGeometry" in r && n(35, T = r.showFullGeometry), "showPlaceType" in r && n(10, J = r.showPlaceType), "showResultsWhileTyping" in r && n(36, te = r.showResultsWhileTyping), "trackProximity" in r && n(37, ze = r.trackProximity), "types" in r && n(38, Me = r.types), "zoom" in r && n(39, Te = r.zoom), "fetchParameters" in r && n(40, Se = r.fetchParameters), "$$scope" in r && n(47, u = r.$$scope);
1076
+ return t.$$set = (l) => {
1077
+ "class" in l && n(2, i = l.class), "apiKey" in l && n(23, m = l.apiKey), "bbox" in l && n(24, f = l.bbox), "clearButtonTitle" in l && n(3, a = l.clearButtonTitle), "clearOnBlur" in l && n(25, h = l.clearOnBlur), "collapsed" in l && n(4, v = l.collapsed), "country" in l && n(26, I = l.country), "debounceSearch" in l && n(27, N = l.debounceSearch), "enableReverse" in l && n(5, G = l.enableReverse), "errorMessage" in l && n(6, p = l.errorMessage), "filter" in l && n(28, k = l.filter), "flyTo" in l && n(29, B = l.flyTo), "fuzzyMatch" in l && n(30, C = l.fuzzyMatch), "language" in l && n(31, F = l.language), "limit" in l && n(32, z = l.limit), "mapController" in l && n(33, d = l.mapController), "minLength" in l && n(34, b = l.minLength), "noResultsMessage" in l && n(7, P = l.noResultsMessage), "placeholder" in l && n(8, M = l.placeholder), "proximity" in l && n(22, Z = l.proximity), "reverseActive" in l && n(0, A = l.reverseActive), "reverseButtonTitle" in l && n(9, ye = l.reverseButtonTitle), "searchValue" in l && n(1, s = l.searchValue), "showFullGeometry" in l && n(35, T = l.showFullGeometry), "showPlaceType" in l && n(10, J = l.showPlaceType), "showResultsWhileTyping" in l && n(36, te = l.showResultsWhileTyping), "trackProximity" in l && n(37, ze = l.trackProximity), "types" in l && n(38, Me = l.types), "zoom" in l && n(39, Te = l.zoom), "fetchParameters" in l && n(40, Se = l.fetchParameters), "$$scope" in l && n(47, u = l.$$scope);
1074
1078
  }, t.$$.update = () => {
1075
1079
  if (t.$$.dirty[1] & /*trackProximity*/
1076
1080
  64 && (ze || n(22, Z = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1077
1081
  33556480 && setTimeout(() => {
1078
- n(14, Re = se), h && !se && n(1, o = "");
1082
+ n(14, Re = oe), h && !oe && n(1, s = "");
1079
1083
  }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1080
- 4098 && (o || (n(45, y = void 0), n(12, g = void 0), n(16, X = void 0), n(44, j = g))), t.$$.dirty[1] & /*showFullGeometry, picked*/
1081
- 16400 && T && y && !y.address && y.geometry.type === "Point" && Ie(y.id, { byId: !0 }).catch((r) => n(16, X = r)), t.$$.dirty[0] & /*flyTo*/
1084
+ 4098 && (s || (n(45, y = void 0), n(12, g = void 0), n(16, X = void 0), n(44, x = g))), t.$$.dirty[1] & /*showFullGeometry, picked*/
1085
+ 16400 && T && y && !y.address && y.geometry.type === "Point" && Ie(y.id, { byId: !0 }).catch((l) => n(16, X = l)), t.$$.dirty[0] & /*flyTo*/
1082
1086
  536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
1083
- 16644 && d && y && B && (!y.bbox || y.bbox[0] === y.bbox[2] && y.bbox[1] === y.bbox[3] ? d.flyTo(y.center, Te) : d.fitBounds(y.bbox, 50), n(12, g = void 0), n(44, j = void 0), n(13, R = -1)), t.$$.dirty[0] & /*listFeatures*/
1087
+ 16644 && d && y && B && (!y.bbox || y.bbox[0] === y.bbox[2] && y.bbox[1] === y.bbox[3] ? d.flyTo(y.center, Te) : d.fitBounds(nt(y.bbox), 50), n(12, g = void 0), n(44, x = void 0), n(13, R = -1)), t.$$.dirty[0] & /*listFeatures*/
1084
1088
  4096 | t.$$.dirty[1] & /*markedFeatures*/
1085
- 8192 && j !== g && n(44, j = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1086
- 24580 && d && d.setMarkers(j, y), t.$$.dirty[0] & /*searchValue*/
1089
+ 8192 && x !== g && n(44, x = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1090
+ 24580 && d && d.setMarkers(x, y), t.$$.dirty[0] & /*searchValue*/
1087
1091
  2 && n(13, R = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1088
1092
  20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1089
- 68 && d && d.setEventHandler((r) => {
1090
- switch (r.type) {
1093
+ 68 && d && d.setEventHandler((l) => {
1094
+ switch (l.type) {
1091
1095
  case "mapClick":
1092
- A && dt(r.coordinates);
1096
+ A && ht(l.coordinates);
1093
1097
  break;
1094
1098
  case "proximityChange":
1095
- n(22, Z = ze ? r.proximity : void 0);
1099
+ n(22, Z = ze ? l.proximity : void 0);
1096
1100
  break;
1097
1101
  case "markerClick":
1098
1102
  {
1099
- const E = g == null ? void 0 : g.find((U) => U.id === r.id);
1103
+ const E = g == null ? void 0 : g.find((U) => U.id === l.id);
1100
1104
  E && Pe(E);
1101
1105
  }
1102
1106
  break;
1103
1107
  case "markerMouseEnter":
1104
- n(13, R = Re ? (g == null ? void 0 : g.findIndex((E) => E.id === r.id)) ?? -1 : -1);
1108
+ n(13, R = Re ? (g == null ? void 0 : g.findIndex((E) => E.id === l.id)) ?? -1 : -1);
1105
1109
  break;
1106
1110
  case "markerMouseLeave":
1107
1111
  n(13, R = -1);
@@ -1110,25 +1114,25 @@ function fn(t, e, n) {
1110
1114
  }), t.$$.dirty[0] & /*selectedItemIndex*/
1111
1115
  8192 | t.$$.dirty[1] & /*mapController*/
1112
1116
  4 && (d == null || d.setSelectedMarker(R)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1113
- 12288 && n(46, l = g == null ? void 0 : g[R]), t.$$.dirty[0] & /*searchValue*/
1117
+ 12288 && n(46, r = g == null ? void 0 : g[R]), t.$$.dirty[0] & /*searchValue*/
1114
1118
  2 | t.$$.dirty[1] & /*mapController*/
1115
1119
  4) {
1116
- const r = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(o);
1117
- d == null || d.setReverseMarker(r ? [Number(r[1]), Number(r[2])] : void 0);
1120
+ const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(s);
1121
+ d == null || d.setReverseMarker(l ? [Number(l[1]), Number(l[2])] : void 0);
1118
1122
  }
1119
1123
  t.$$.dirty[1] & /*selected*/
1120
- 32768 && Y("select", l), t.$$.dirty[1] & /*picked*/
1124
+ 32768 && Y("select", r), t.$$.dirty[1] & /*picked*/
1121
1125
  16384 && Y("pick", y), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1122
1126
  20480 && Y("optionsVisibilityChange", Re && !!g), t.$$.dirty[0] & /*listFeatures*/
1123
1127
  4096 && Y("featuresListed", g), t.$$.dirty[1] & /*markedFeatures*/
1124
- 8192 && Y("featuresMarked", j), t.$$.dirty[0] & /*reverseActive*/
1128
+ 8192 && Y("featuresMarked", x), t.$$.dirty[0] & /*reverseActive*/
1125
1129
  1 && Y("reverseToggle", A), t.$$.dirty[0] & /*searchValue*/
1126
- 2 && Y("queryChange", o), t.$$.dirty[0] & /*reverseActive*/
1130
+ 2 && Y("queryChange", s), t.$$.dirty[0] & /*reverseActive*/
1127
1131
  1 | t.$$.dirty[1] & /*mapController*/
1128
1132
  4 && d && d.indicateReverse(A);
1129
1133
  }, [
1130
1134
  A,
1131
- o,
1135
+ s,
1132
1136
  i,
1133
1137
  a,
1134
1138
  v,
@@ -1138,7 +1142,7 @@ function fn(t, e, n) {
1138
1142
  M,
1139
1143
  ye,
1140
1144
  J,
1141
- se,
1145
+ oe,
1142
1146
  g,
1143
1147
  R,
1144
1148
  Re,
@@ -1146,7 +1150,7 @@ function fn(t, e, n) {
1146
1150
  X,
1147
1151
  ne,
1148
1152
  Ke,
1149
- ht,
1153
+ mt,
1150
1154
  Ae,
1151
1155
  Pe,
1152
1156
  Z,
@@ -1168,15 +1172,14 @@ function fn(t, e, n) {
1168
1172
  Me,
1169
1173
  Te,
1170
1174
  Se,
1171
- ut,
1172
1175
  ft,
1176
+ at,
1173
1177
  Ve,
1174
- j,
1178
+ x,
1175
1179
  y,
1176
- l,
1180
+ r,
1177
1181
  u,
1178
1182
  c,
1179
- mt,
1180
1183
  _t,
1181
1184
  gt,
1182
1185
  yt,
@@ -1187,16 +1190,17 @@ function fn(t, e, n) {
1187
1190
  pt,
1188
1191
  zt,
1189
1192
  Mt,
1190
- Tt
1193
+ Tt,
1194
+ Ct
1191
1195
  ];
1192
1196
  }
1193
- class an extends ge {
1197
+ class dn extends ge {
1194
1198
  constructor(e) {
1195
1199
  super(), _e(
1196
1200
  this,
1197
1201
  e,
1198
- fn,
1199
- on,
1202
+ an,
1203
+ un,
1200
1204
  me,
1201
1205
  {
1202
1206
  class: 2,
@@ -1247,7 +1251,7 @@ class an extends ge {
1247
1251
  return this.$$.ctx[43];
1248
1252
  }
1249
1253
  }
1250
- const nt = [
1254
+ const rt = [
1251
1255
  "featuresListed",
1252
1256
  "featuresMarked",
1253
1257
  "optionsVisibilityChange",
@@ -1256,7 +1260,7 @@ const nt = [
1256
1260
  "response",
1257
1261
  "reversetoggle",
1258
1262
  "select"
1259
- ], dn = [
1263
+ ], hn = [
1260
1264
  "apiKey",
1261
1265
  "bbox",
1262
1266
  "clearButtonTitle",
@@ -1286,26 +1290,26 @@ const nt = [
1286
1290
  function lt(t) {
1287
1291
  return "on" + t[0].toUpperCase() + t.slice(1);
1288
1292
  }
1289
- const mn = Ct(function(e, n) {
1290
- const l = qe(), c = qe(), u = { ...e };
1291
- for (const i of nt)
1293
+ const _n = Rt(function(e, n) {
1294
+ const r = qe(), c = qe(), u = { ...e };
1295
+ for (const i of rt)
1292
1296
  delete u[lt(i)];
1293
- xe(() => {
1294
- if (!l.current)
1297
+ je(() => {
1298
+ if (!r.current)
1295
1299
  throw new Error();
1296
- const i = new an({
1297
- target: l.current,
1300
+ const i = new dn({
1301
+ target: r.current,
1298
1302
  props: u
1299
1303
  });
1300
1304
  return c.current = i, () => i.$destroy();
1301
1305
  }, []);
1302
- for (const i of dn)
1303
- xe(() => {
1306
+ for (const i of hn)
1307
+ je(() => {
1304
1308
  c.current && e[i] !== void 0 && c.current.$set({ [i]: e[i] });
1305
1309
  }, [e[i]]);
1306
- for (const i of nt) {
1310
+ for (const i of rt) {
1307
1311
  const m = e[lt(i)];
1308
- xe(() => {
1312
+ je(() => {
1309
1313
  var f;
1310
1314
  (f = c.current) == null || f.$on(
1311
1315
  i,
@@ -1315,7 +1319,7 @@ const mn = Ct(function(e, n) {
1315
1319
  );
1316
1320
  }, [m]);
1317
1321
  }
1318
- return Rt(n, () => ({
1322
+ return Et(n, () => ({
1319
1323
  setQuery: (i, m = !0) => {
1320
1324
  var f;
1321
1325
  return (f = c.current) == null ? void 0 : f.setQuery(i, m);
@@ -1328,8 +1332,8 @@ const mn = Ct(function(e, n) {
1328
1332
  var i;
1329
1333
  return (i = c.current) == null ? void 0 : i.blur();
1330
1334
  }
1331
- })), Et("div", { ref: l });
1335
+ })), Bt("div", { ref: r });
1332
1336
  });
1333
1337
  export {
1334
- mn as GeocodingControl
1338
+ _n as GeocodingControl
1335
1339
  };