@maptiler/geocoding-control 0.0.75 → 0.0.77

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,39 +1,39 @@
1
- import { forwardRef as Tt, useRef as Qe, useEffect as je, useImperativeHandle as Ct, createElement as Rt } from "react";
1
+ import { forwardRef as Ct, useRef as qe, useEffect as xe, useImperativeHandle as Rt, createElement as Et } from "react";
2
2
  function w() {
3
3
  }
4
- function Et(t, e) {
4
+ function Bt(t, e) {
5
5
  for (const n in e)
6
6
  t[n] = e[n];
7
7
  return t;
8
8
  }
9
- function lt(t) {
9
+ function rt(t) {
10
10
  return t();
11
11
  }
12
- function qe() {
12
+ function Ue() {
13
13
  return /* @__PURE__ */ Object.create(null);
14
14
  }
15
15
  function ee(t) {
16
- t.forEach(lt);
16
+ t.forEach(rt);
17
17
  }
18
- function rt(t) {
18
+ function it(t) {
19
19
  return typeof t == "function";
20
20
  }
21
- function he(t, e) {
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 Bt(t) {
24
+ function Lt(t) {
25
25
  return Object.keys(t).length === 0;
26
26
  }
27
- function Lt(t, e, n, l) {
27
+ function St(t, e, n, l) {
28
28
  if (t) {
29
- const c = it(t, e, n, l);
29
+ const c = ct(t, e, n, l);
30
30
  return t[0](c);
31
31
  }
32
32
  }
33
- function it(t, e, n, l) {
34
- return t[1] && l ? Et(n.ctx.slice(), t[1](l(e))) : n.ctx;
33
+ function ct(t, e, n, l) {
34
+ return t[1] && l ? Bt(n.ctx.slice(), t[1](l(e))) : n.ctx;
35
35
  }
36
- function St(t, e, n, l) {
36
+ function It(t, e, n, l) {
37
37
  if (t[2] && l) {
38
38
  const c = t[2](l(n));
39
39
  if (e.dirty === void 0)
@@ -48,13 +48,13 @@ function St(t, e, n, l) {
48
48
  }
49
49
  return e.dirty;
50
50
  }
51
- function It(t, e, n, l, c, u) {
51
+ function At(t, e, n, l, c, u) {
52
52
  if (c) {
53
- const i = it(e, n, l, u);
53
+ const i = ct(e, n, l, u);
54
54
  t.p(i, c);
55
55
  }
56
56
  }
57
- function At(t) {
57
+ function Pt(t) {
58
58
  if (t.ctx.length > 32) {
59
59
  const e = [], n = t.ctx.length / 32;
60
60
  for (let l = 0; l < n; l++)
@@ -63,7 +63,7 @@ function At(t) {
63
63
  }
64
64
  return -1;
65
65
  }
66
- function Ue(t) {
66
+ function We(t) {
67
67
  return t ?? "";
68
68
  }
69
69
  function _(t, e) {
@@ -94,21 +94,21 @@ function W() {
94
94
  function H(t, e, n, l) {
95
95
  return t.addEventListener(e, n, l), () => t.removeEventListener(e, n, l);
96
96
  }
97
- function Pt(t) {
97
+ function jt(t) {
98
98
  return function(e) {
99
99
  return e.preventDefault(), t.call(this, e);
100
100
  };
101
101
  }
102
- function o(t, e, n) {
102
+ function s(t, e, n) {
103
103
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
104
104
  }
105
- function jt(t) {
105
+ function xt(t) {
106
106
  return Array.from(t.childNodes);
107
107
  }
108
- function we(t, e) {
108
+ function ke(t, e) {
109
109
  e = "" + e, t.wholeText !== e && (t.data = e);
110
110
  }
111
- function We(t, e) {
111
+ function Ze(t, e) {
112
112
  t.value = e ?? "";
113
113
  }
114
114
  function Q(t, e, n) {
@@ -118,20 +118,20 @@ function Gt(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
118
118
  const c = document.createEvent("CustomEvent");
119
119
  return c.initCustomEvent(t, n, l, e), c;
120
120
  }
121
- let ke;
122
- function be(t) {
123
- ke = t;
121
+ let ve;
122
+ function we(t) {
123
+ ve = t;
124
124
  }
125
- function ct() {
126
- if (!ke)
125
+ function st() {
126
+ if (!ve)
127
127
  throw new Error("Function called outside component initialization");
128
- return ke;
128
+ return ve;
129
129
  }
130
- function xt(t) {
131
- ct().$$.on_destroy.push(t);
130
+ function Ot(t) {
131
+ st().$$.on_destroy.push(t);
132
132
  }
133
- function Ot() {
134
- const t = ct();
133
+ function Dt() {
134
+ const t = st();
135
135
  return (e, n, { cancelable: l = !1 } = {}) => {
136
136
  const c = t.$$.callbacks[e];
137
137
  if (c) {
@@ -143,48 +143,54 @@ function Ot() {
143
143
  return !0;
144
144
  };
145
145
  }
146
- const fe = [], xe = [], Re = [], Ze = [], Dt = Promise.resolve();
147
- let Oe = !1;
148
- function Ft() {
149
- Oe || (Oe = !0, Dt.then(ot));
146
+ const fe = [], Oe = [];
147
+ let ae = [];
148
+ const Je = [], Ft = /* @__PURE__ */ Promise.resolve();
149
+ let De = !1;
150
+ function Vt() {
151
+ De || (De = !0, Ft.then(ot));
150
152
  }
151
- function De(t) {
152
- Re.push(t);
153
+ function Fe(t) {
154
+ ae.push(t);
153
155
  }
154
156
  const Ge = /* @__PURE__ */ new Set();
155
157
  let ue = 0;
156
158
  function ot() {
157
159
  if (ue !== 0)
158
160
  return;
159
- const t = ke;
161
+ const t = ve;
160
162
  do {
161
163
  try {
162
164
  for (; ue < fe.length; ) {
163
165
  const e = fe[ue];
164
- ue++, be(e), Vt(e.$$);
166
+ ue++, we(e), Ht(e.$$);
165
167
  }
166
168
  } catch (e) {
167
169
  throw fe.length = 0, ue = 0, e;
168
170
  }
169
- for (be(null), fe.length = 0, ue = 0; xe.length; )
170
- xe.pop()();
171
- for (let e = 0; e < Re.length; e += 1) {
172
- const n = Re[e];
171
+ for (we(null), fe.length = 0, ue = 0; Oe.length; )
172
+ Oe.pop()();
173
+ for (let e = 0; e < ae.length; e += 1) {
174
+ const n = ae[e];
173
175
  Ge.has(n) || (Ge.add(n), n());
174
176
  }
175
- Re.length = 0;
177
+ ae.length = 0;
176
178
  } while (fe.length);
177
- for (; Ze.length; )
178
- Ze.pop()();
179
- Oe = !1, Ge.clear(), be(t);
179
+ for (; Je.length; )
180
+ Je.pop()();
181
+ De = !1, Ge.clear(), we(t);
180
182
  }
181
- function Vt(t) {
183
+ function Ht(t) {
182
184
  if (t.fragment !== null) {
183
185
  t.update(), ee(t.before_update);
184
186
  const e = t.dirty;
185
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(De);
187
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Fe);
186
188
  }
187
189
  }
190
+ function Kt(t) {
191
+ const e = [], n = [];
192
+ ae.forEach((l) => t.indexOf(l) === -1 ? e.push(l) : n.push(l)), n.forEach((l) => l()), ae = e;
193
+ }
188
194
  const Ee = /* @__PURE__ */ new Set();
189
195
  let ie;
190
196
  function Be() {
@@ -211,26 +217,26 @@ function O(t, e, n, l) {
211
217
  } else
212
218
  l && l();
213
219
  }
214
- function ve(t) {
220
+ function pe(t) {
215
221
  t && t.c();
216
222
  }
217
- function ae(t, e, n, l) {
223
+ function de(t, e, n, l) {
218
224
  const { fragment: c, after_update: u } = t.$$;
219
- c && c.m(e, n), l || De(() => {
220
- const i = t.$$.on_mount.map(lt).filter(rt);
225
+ c && c.m(e, n), l || Fe(() => {
226
+ const i = t.$$.on_mount.map(rt).filter(it);
221
227
  t.$$.on_destroy ? t.$$.on_destroy.push(...i) : ee(i), t.$$.on_mount = [];
222
- }), u.forEach(De);
228
+ }), u.forEach(Fe);
223
229
  }
224
- function de(t, e) {
230
+ function he(t, e) {
225
231
  const n = t.$$;
226
- n.fragment !== null && (ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
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 = []);
227
233
  }
228
- function Ht(t, e) {
229
- t.$$.dirty[0] === -1 && (fe.push(t), Ft(), 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), Vt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
230
236
  }
231
- function me(t, e, n, l, c, u, i, m = [-1]) {
232
- const f = ke;
233
- be(t);
237
+ function _e(t, e, n, l, c, u, i, m = [-1]) {
238
+ const f = ve;
239
+ we(t);
234
240
  const a = t.$$ = {
235
241
  fragment: null,
236
242
  ctx: [],
@@ -238,7 +244,7 @@ function me(t, e, n, l, c, u, i, m = [-1]) {
238
244
  props: u,
239
245
  update: w,
240
246
  not_equal: c,
241
- bound: qe(),
247
+ bound: Ue(),
242
248
  // lifecycle
243
249
  on_mount: [],
244
250
  on_destroy: [],
@@ -247,32 +253,32 @@ function me(t, e, n, l, c, u, i, m = [-1]) {
247
253
  after_update: [],
248
254
  context: new Map(e.context || (f ? f.$$.context : [])),
249
255
  // everything else
250
- callbacks: qe(),
256
+ callbacks: Ue(),
251
257
  dirty: m,
252
258
  skip_bound: !1,
253
259
  root: e.target || f.$$.root
254
260
  };
255
261
  i && i(a.root);
256
262
  let h = !1;
257
- if (a.ctx = n ? n(t, e.props || {}, (v, I, ...P) => {
258
- const x = P.length ? P[0] : I;
259
- return a.ctx && c(a.ctx[v], a.ctx[v] = x) && (!a.skip_bound && a.bound[v] && a.bound[v](x), h && Ht(t, v)), I;
263
+ if (a.ctx = n ? n(t, e.props || {}, (v, I, ...N) => {
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;
260
266
  }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = l ? l(a.ctx) : !1, e.target) {
261
267
  if (e.hydrate) {
262
- const v = jt(e.target);
268
+ const v = xt(e.target);
263
269
  a.fragment && a.fragment.l(v), v.forEach(D);
264
270
  } else
265
271
  a.fragment && a.fragment.c();
266
- e.intro && L(t.$$.fragment), ae(t, e.target, e.anchor, e.customElement), ot();
272
+ e.intro && L(t.$$.fragment), de(t, e.target, e.anchor, e.customElement), ot();
267
273
  }
268
- be(f);
274
+ we(f);
269
275
  }
270
- class _e {
276
+ class ge {
271
277
  $destroy() {
272
- de(this, 1), this.$destroy = w;
278
+ he(this, 1), this.$destroy = w;
273
279
  }
274
280
  $on(e, n) {
275
- if (!rt(n))
281
+ if (!it(n))
276
282
  return w;
277
283
  const l = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
278
284
  return l.push(n), () => {
@@ -281,14 +287,14 @@ class _e {
281
287
  };
282
288
  }
283
289
  $set(e) {
284
- this.$$set && !Bt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
290
+ this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
285
291
  }
286
292
  }
287
- function Kt(t) {
293
+ function qt(t) {
288
294
  let e, n;
289
295
  return {
290
296
  c() {
291
- 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");
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");
292
298
  },
293
299
  m(l, c) {
294
300
  K(l, e, c), _(e, n);
@@ -301,16 +307,16 @@ function Kt(t) {
301
307
  }
302
308
  };
303
309
  }
304
- class Qt extends _e {
310
+ class Ut extends ge {
305
311
  constructor(e) {
306
- super(), me(this, e, null, Kt, he, {});
312
+ super(), _e(this, e, null, qt, me, {});
307
313
  }
308
314
  }
309
- function qt(t) {
315
+ function Wt(t) {
310
316
  let e, n;
311
317
  return {
312
318
  c() {
313
- 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");
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");
314
320
  },
315
321
  m(l, c) {
316
322
  K(l, e, c), _(e, n);
@@ -323,16 +329,16 @@ function qt(t) {
323
329
  }
324
330
  };
325
331
  }
326
- class Ut extends _e {
332
+ class Zt extends ge {
327
333
  constructor(e) {
328
- super(), me(this, e, null, qt, he, {});
334
+ super(), _e(this, e, null, Wt, me, {});
329
335
  }
330
336
  }
331
- function Wt(t) {
337
+ function Jt(t) {
332
338
  let e;
333
339
  return {
334
340
  c() {
335
- 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");
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");
336
342
  },
337
343
  m(n, l) {
338
344
  K(n, e, l);
@@ -345,17 +351,17 @@ function Wt(t) {
345
351
  }
346
352
  };
347
353
  }
348
- class Zt extends _e {
354
+ class Xt extends ge {
349
355
  constructor(e) {
350
- super(), me(this, e, null, Wt, he, {});
356
+ super(), _e(this, e, null, Jt, me, {});
351
357
  }
352
358
  }
353
- function Jt(t) {
359
+ function Yt(t) {
354
360
  let e, n, l;
355
361
  return {
356
362
  c() {
357
- 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", l = /*displayIn*/
358
- t[0] !== "list" ? void 0 : "20"), o(e, "viewBox", "0 0 70 85"), o(e, "fill", "none"), o(e, "class", "svelte-1k1cmht"), Q(
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(
359
365
  e,
360
366
  "in-map",
361
367
  /*displayIn*/
@@ -373,7 +379,7 @@ function Jt(t) {
373
379
  p(c, [u]) {
374
380
  u & /*displayIn*/
375
381
  1 && l !== (l = /*displayIn*/
376
- c[0] !== "list" ? void 0 : "20") && o(e, "width", l), u & /*displayIn*/
382
+ c[0] !== "list" ? void 0 : "20") && s(e, "width", l), u & /*displayIn*/
377
383
  1 && Q(
378
384
  e,
379
385
  "in-map",
@@ -394,22 +400,22 @@ function Jt(t) {
394
400
  }
395
401
  };
396
402
  }
397
- function Xt(t, e, n) {
403
+ function $t(t, e, n) {
398
404
  let { displayIn: l } = e;
399
405
  return t.$$set = (c) => {
400
406
  "displayIn" in c && n(0, l = c.displayIn);
401
407
  }, [l];
402
408
  }
403
- class Yt extends _e {
409
+ class en extends ge {
404
410
  constructor(e) {
405
- super(), me(this, e, Xt, Jt, he, { displayIn: 0 });
411
+ super(), _e(this, e, $t, Yt, me, { displayIn: 0 });
406
412
  }
407
413
  }
408
- function $t(t) {
414
+ function tn(t) {
409
415
  let e, n;
410
416
  return {
411
417
  c() {
412
- 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");
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");
413
419
  },
414
420
  m(l, c) {
415
421
  K(l, e, c), _(e, n);
@@ -422,23 +428,23 @@ function $t(t) {
422
428
  }
423
429
  };
424
430
  }
425
- class en extends _e {
431
+ class nn extends ge {
426
432
  constructor(e) {
427
- super(), me(this, e, null, $t, he, {});
433
+ super(), _e(this, e, null, tn, me, {});
428
434
  }
429
435
  }
430
- function Je(t, e, n) {
436
+ function Xe(t, e, n) {
431
437
  const l = t.slice();
432
- return l[68] = e[n], l[70] = n, l;
438
+ return l[69] = e[n], l[71] = n, l;
433
439
  }
434
- function Xe(t) {
440
+ function Ye(t) {
435
441
  let e, n;
436
- return e = new Zt({}), {
442
+ return e = new Xt({}), {
437
443
  c() {
438
- ve(e.$$.fragment);
444
+ pe(e.$$.fragment);
439
445
  },
440
446
  m(l, c) {
441
- ae(e, l, c), n = !0;
447
+ de(e, l, c), n = !0;
442
448
  },
443
449
  i(l) {
444
450
  n || (L(e.$$.fragment, l), n = !0);
@@ -447,20 +453,20 @@ function Xe(t) {
447
453
  O(e.$$.fragment, l), n = !1;
448
454
  },
449
455
  d(l) {
450
- de(e, l);
456
+ he(e, l);
451
457
  }
452
458
  };
453
459
  }
454
- function Ye(t) {
460
+ function $e(t) {
455
461
  let e, n, l, c, u;
456
- return n = new Qt({}), {
462
+ return n = new Ut({}), {
457
463
  c() {
458
- e = S("button"), ve(n.$$.fragment), o(e, "type", "button"), o(
464
+ e = S("button"), pe(n.$$.fragment), s(e, "type", "button"), s(
459
465
  e,
460
466
  "title",
461
467
  /*reverseButtonTitle*/
462
468
  t[9]
463
- ), o(e, "class", "svelte-z0d4ta"), Q(
469
+ ), s(e, "class", "svelte-z0d4ta"), Q(
464
470
  e,
465
471
  "active",
466
472
  /*reverseActive*/
@@ -468,16 +474,16 @@ function Ye(t) {
468
474
  );
469
475
  },
470
476
  m(i, m) {
471
- K(i, e, m), ae(n, e, null), l = !0, c || (u = H(
477
+ K(i, e, m), de(n, e, null), l = !0, c || (u = H(
472
478
  e,
473
479
  "click",
474
480
  /*click_handler_2*/
475
- t[55]
481
+ t[56]
476
482
  ), c = !0);
477
483
  },
478
484
  p(i, m) {
479
485
  (!l || m[0] & /*reverseButtonTitle*/
480
- 512) && o(
486
+ 512) && s(
481
487
  e,
482
488
  "title",
483
489
  /*reverseButtonTitle*/
@@ -497,17 +503,17 @@ function Ye(t) {
497
503
  O(n.$$.fragment, i), l = !1;
498
504
  },
499
505
  d(i) {
500
- i && D(e), de(n), c = !1, u();
506
+ i && D(e), he(n), c = !1, u();
501
507
  }
502
508
  };
503
509
  }
504
- function tn(t) {
510
+ function ln(t) {
505
511
  let e, n, l, c, u = (
506
512
  /*listFeatures*/
507
513
  t[12]
508
514
  ), i = [];
509
515
  for (let f = 0; f < u.length; f += 1)
510
- i[f] = et(Je(t, u, f));
516
+ i[f] = tt(Xe(t, u, f));
511
517
  const m = (f) => O(i[f], 1, 1, () => {
512
518
  i[f] = null;
513
519
  });
@@ -516,24 +522,24 @@ function tn(t) {
516
522
  e = S("ul");
517
523
  for (let f = 0; f < i.length; f += 1)
518
524
  i[f].c();
519
- o(e, "class", "svelte-z0d4ta");
525
+ s(e, "class", "svelte-z0d4ta");
520
526
  },
521
527
  m(f, a) {
522
528
  K(f, e, a);
523
529
  for (let h = 0; h < i.length; h += 1)
524
- i[h].m(e, null);
530
+ i[h] && i[h].m(e, null);
525
531
  n = !0, l || (c = [
526
532
  H(
527
533
  e,
528
534
  "mouseleave",
529
535
  /*mouseleave_handler*/
530
- t[58]
536
+ t[59]
531
537
  ),
532
538
  H(
533
539
  e,
534
540
  "blur",
535
541
  /*blur_handler_1*/
536
- t[59]
542
+ t[60]
537
543
  )
538
544
  ], l = !0);
539
545
  },
@@ -544,8 +550,8 @@ function tn(t) {
544
550
  f[12];
545
551
  let h;
546
552
  for (h = 0; h < u.length; h += 1) {
547
- const v = Je(f, u, h);
548
- i[h] ? (i[h].p(v, a), L(i[h], 1)) : (i[h] = et(v), i[h].c(), L(i[h], 1), i[h].m(e, null));
553
+ const v = Xe(f, u, h);
554
+ i[h] ? (i[h].p(v, a), L(i[h], 1)) : (i[h] = tt(v), i[h].c(), L(i[h], 1), i[h].m(e, null));
549
555
  }
550
556
  for (Be(), h = u.length; h < i.length; h += 1)
551
557
  m(h);
@@ -570,21 +576,21 @@ function tn(t) {
570
576
  }
571
577
  };
572
578
  }
573
- function nn(t) {
579
+ function rn(t) {
574
580
  let e, n;
575
581
  return {
576
582
  c() {
577
583
  e = S("div"), n = ce(
578
584
  /*noResultsMessage*/
579
585
  t[7]
580
- ), o(e, "class", "no-results svelte-z0d4ta");
586
+ ), s(e, "class", "no-results svelte-z0d4ta");
581
587
  },
582
588
  m(l, c) {
583
589
  K(l, e, c), _(e, n);
584
590
  },
585
591
  p(l, c) {
586
592
  c[0] & /*noResultsMessage*/
587
- 128 && we(
593
+ 128 && ke(
588
594
  n,
589
595
  /*noResultsMessage*/
590
596
  l[7]
@@ -597,7 +603,7 @@ function nn(t) {
597
603
  }
598
604
  };
599
605
  }
600
- function ln(t) {
606
+ function cn(t) {
601
607
  let e = "", n;
602
608
  return {
603
609
  c() {
@@ -614,21 +620,21 @@ function ln(t) {
614
620
  }
615
621
  };
616
622
  }
617
- function rn(t) {
623
+ function sn(t) {
618
624
  let e, n;
619
625
  return {
620
626
  c() {
621
627
  e = S("div"), n = ce(
622
628
  /*errorMessage*/
623
629
  t[6]
624
- ), o(e, "class", "error svelte-z0d4ta");
630
+ ), s(e, "class", "error svelte-z0d4ta");
625
631
  },
626
632
  m(l, c) {
627
633
  K(l, e, c), _(e, n);
628
634
  },
629
635
  p(l, c) {
630
636
  c[0] & /*errorMessage*/
631
- 64 && we(
637
+ 64 && ke(
632
638
  n,
633
639
  /*errorMessage*/
634
640
  l[6]
@@ -641,16 +647,16 @@ function rn(t) {
641
647
  }
642
648
  };
643
649
  }
644
- function $e(t) {
650
+ function et(t) {
645
651
  var c, u;
646
652
  let e, n = (
647
653
  /*feature*/
648
- (((u = (c = t[68].properties) == null ? void 0 : c.place_type_name) == null ? void 0 : u[0]) ?? /*feature*/
649
- t[68].place_type[0]) + ""
654
+ (((u = (c = t[69].properties) == null ? void 0 : c.place_type_name) == null ? void 0 : u[0]) ?? /*feature*/
655
+ t[69].place_type[0]) + ""
650
656
  ), l;
651
657
  return {
652
658
  c() {
653
- e = S("span"), l = ce(n), o(e, "class", "svelte-z0d4ta");
659
+ e = S("span"), l = ce(n), s(e, "class", "svelte-z0d4ta");
654
660
  },
655
661
  m(i, m) {
656
662
  K(i, e, m), _(e, l);
@@ -659,152 +665,152 @@ function $e(t) {
659
665
  var f, a;
660
666
  m[0] & /*listFeatures*/
661
667
  4096 && n !== (n = /*feature*/
662
- (((a = (f = i[68].properties) == null ? void 0 : f.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
663
- i[68].place_type[0]) + "") && we(l, n);
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);
664
670
  },
665
671
  d(i) {
666
672
  i && D(e);
667
673
  }
668
674
  };
669
675
  }
670
- function et(t) {
676
+ function tt(t) {
671
677
  let e, n, l, c, u, i, m = (
672
678
  /*feature*/
673
- t[68].place_name.replace(/,.*/, "") + ""
674
- ), f, a, h, v, I, P = (
679
+ t[69].place_name.replace(/,.*/, "") + ""
680
+ ), f, a, h, v, I, N = (
675
681
  /*feature*/
676
- t[68].place_name.replace(/[^,]*,?\s*/, "") + ""
677
- ), x, p, k, B, C, F;
678
- n = new Yt({ props: { displayIn: "list" } });
682
+ t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
683
+ ), G, p, k, B, C, F;
684
+ n = new en({ props: { displayIn: "list" } });
679
685
  let z = (
680
686
  /*showPlaceType*/
681
- t[10] && $e(t)
687
+ t[10] && et(t)
682
688
  );
683
689
  function d() {
684
690
  return (
685
691
  /*mouseenter_handler*/
686
- t[56](
692
+ t[57](
687
693
  /*i*/
688
- t[70]
694
+ t[71]
689
695
  )
690
696
  );
691
697
  }
692
698
  function b() {
693
699
  return (
694
700
  /*focus_handler_1*/
695
- t[57](
701
+ t[58](
696
702
  /*feature*/
697
- t[68]
703
+ t[69]
698
704
  )
699
705
  );
700
706
  }
701
707
  return {
702
708
  c() {
703
- e = S("li"), ve(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"), x = ce(P), 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*/
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*/
704
710
  t[13] === /*i*/
705
- t[70]), o(e, "class", "svelte-z0d4ta"), Q(
711
+ t[71]), s(e, "class", "svelte-z0d4ta"), Q(
706
712
  e,
707
713
  "selected",
708
714
  /*selectedItemIndex*/
709
715
  t[13] === /*i*/
710
- t[70]
716
+ t[71]
711
717
  );
712
718
  },
713
- m(N, M) {
714
- K(N, e, M), ae(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, x), _(e, p), B = !0, C || (F = [
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 = [
715
721
  H(e, "mouseenter", d),
716
722
  H(e, "focus", b)
717
723
  ], C = !0);
718
724
  },
719
- p(N, M) {
720
- t = N, (!B || M[0] & /*listFeatures*/
725
+ p(P, M) {
726
+ t = P, (!B || M[0] & /*listFeatures*/
721
727
  4096) && m !== (m = /*feature*/
722
- t[68].place_name.replace(/,.*/, "") + "") && we(f, m), /*showPlaceType*/
723
- t[10] ? z ? z.p(t, M) : (z = $e(t), z.c(), z.m(u, null)) : z && (z.d(1), z = null), (!B || M[0] & /*listFeatures*/
724
- 4096) && P !== (P = /*feature*/
725
- t[68].place_name.replace(/[^,]*,?\s*/, "") + "") && we(x, P), (!B || M[0] & /*selectedItemIndex*/
728
+ t[69].place_name.replace(/,.*/, "") + "") && ke(f, m), /*showPlaceType*/
729
+ t[10] ? z ? z.p(t, M) : (z = et(t), z.c(), z.m(u, null)) : z && (z.d(1), z = null), (!B || M[0] & /*listFeatures*/
730
+ 4096) && N !== (N = /*feature*/
731
+ t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && ke(G, N), (!B || M[0] & /*selectedItemIndex*/
726
732
  8192 && k !== (k = /*selectedItemIndex*/
727
733
  t[13] === /*i*/
728
- t[70])) && o(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
734
+ t[71])) && s(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
729
735
  8192) && Q(
730
736
  e,
731
737
  "selected",
732
738
  /*selectedItemIndex*/
733
739
  t[13] === /*i*/
734
- t[70]
740
+ t[71]
735
741
  );
736
742
  },
737
- i(N) {
738
- B || (L(n.$$.fragment, N), B = !0);
743
+ i(P) {
744
+ B || (L(n.$$.fragment, P), B = !0);
739
745
  },
740
- o(N) {
741
- O(n.$$.fragment, N), B = !1;
746
+ o(P) {
747
+ O(n.$$.fragment, P), B = !1;
742
748
  },
743
- d(N) {
744
- N && D(e), de(n), z && z.d(), C = !1, ee(F);
749
+ d(P) {
750
+ P && D(e), he(n), z && z.d(), C = !1, ee(F);
745
751
  }
746
752
  };
747
753
  }
748
- function cn(t) {
749
- let e, n, l, c, u, i, m, f, a, h, v, I, P, x, p, k, B, C, F, z;
750
- c = new en({}), h = new Ut({});
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({});
751
757
  let d = (
752
758
  /*abortController*/
753
- t[17] && Xe()
759
+ t[17] && Ye()
754
760
  ), b = (
755
761
  /*enableReverse*/
756
- t[5] === !0 && Ye(t)
762
+ t[5] === !0 && $e(t)
757
763
  );
758
- const N = (
764
+ const P = (
759
765
  /*#slots*/
760
- t[47].default
761
- ), M = Lt(
762
- N,
766
+ t[48].default
767
+ ), M = St(
768
+ P,
763
769
  t,
764
770
  /*$$scope*/
765
- t[46],
771
+ t[47],
766
772
  null
767
- ), Z = [rn, ln, nn, tn], A = [];
768
- function ge(s, T) {
773
+ ), Z = [sn, cn, rn, ln], A = [];
774
+ function ye(o, T) {
769
775
  var J, te;
770
776
  return (
771
777
  /*error*/
772
- s[16] ? 0 : (
778
+ o[16] ? 0 : (
773
779
  /*focusedDelayed*/
774
- s[14] ? (
780
+ o[14] ? (
775
781
  /*listFeatures*/
776
- ((J = s[12]) == null ? void 0 : J.length) === 0 ? 2 : (
782
+ ((J = o[12]) == null ? void 0 : J.length) === 0 ? 2 : (
777
783
  /*focusedDelayed*/
778
- s[14] && /*listFeatures*/
779
- ((te = s[12]) != null && te.length) ? 3 : -1
784
+ o[14] && /*listFeatures*/
785
+ ((te = o[12]) != null && te.length) ? 3 : -1
780
786
  )
781
787
  ) : 1
782
788
  )
783
789
  );
784
790
  }
785
- return ~(p = ge(t)) && (k = A[p] = Z[p](t)), {
791
+ return ~(p = ye(t)) && (k = A[p] = Z[p](t)), {
786
792
  c() {
787
- e = S("form"), n = S("div"), l = S("button"), ve(c.$$.fragment), u = W(), i = S("input"), m = W(), f = S("div"), a = S("button"), ve(h.$$.fragment), v = W(), d && d.c(), I = W(), b && b.c(), P = W(), M && M.c(), x = W(), k && k.c(), o(l, "type", "button"), o(l, "class", "svelte-z0d4ta"), o(
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(
788
794
  i,
789
795
  "placeholder",
790
796
  /*placeholder*/
791
797
  t[8]
792
- ), o(
798
+ ), s(
793
799
  i,
794
800
  "aria-label",
795
801
  /*placeholder*/
796
802
  t[8]
797
- ), o(i, "class", "svelte-z0d4ta"), o(a, "type", "button"), o(
803
+ ), s(i, "class", "svelte-z0d4ta"), s(a, "type", "button"), s(
798
804
  a,
799
805
  "title",
800
806
  /*clearButtonTitle*/
801
807
  t[3]
802
- ), o(a, "class", "svelte-z0d4ta"), Q(
808
+ ), s(a, "class", "svelte-z0d4ta"), Q(
803
809
  a,
804
810
  "displayable",
805
811
  /*searchValue*/
806
812
  t[1] !== ""
807
- ), o(f, "class", "clear-button-container svelte-z0d4ta"), o(n, "class", "input-group svelte-z0d4ta"), o(e, "tabindex", "0"), o(e, "class", B = Ue(
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(
808
814
  /*className*/
809
815
  t[2]
810
816
  ) + " svelte-z0d4ta"), Q(
@@ -815,35 +821,35 @@ function cn(t) {
815
821
  t[1] === ""
816
822
  );
817
823
  },
818
- m(s, T) {
819
- K(s, e, T), _(e, n), _(n, l), ae(c, l, null), _(n, u), _(n, i), t[49](i), We(
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(
820
826
  i,
821
827
  /*searchValue*/
822
828
  t[1]
823
- ), _(n, m), _(n, f), _(f, a), ae(h, a, null), _(f, v), d && d.m(f, null), _(n, I), b && b.m(n, null), _(n, P), M && M.m(n, null), _(e, x), ~p && A[p].m(e, null), C = !0, F || (z = [
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 = [
824
830
  H(
825
831
  l,
826
832
  "click",
827
833
  /*click_handler*/
828
- t[48]
834
+ t[49]
829
835
  ),
830
836
  H(
831
837
  i,
832
838
  "input",
833
839
  /*input_1_input_handler*/
834
- t[50]
840
+ t[51]
835
841
  ),
836
842
  H(
837
843
  i,
838
844
  "focus",
839
845
  /*focus_handler*/
840
- t[51]
846
+ t[52]
841
847
  ),
842
848
  H(
843
849
  i,
844
850
  "blur",
845
851
  /*blur_handler*/
846
- t[52]
852
+ t[53]
847
853
  ),
848
854
  H(
849
855
  i,
@@ -855,156 +861,156 @@ function cn(t) {
855
861
  i,
856
862
  "input",
857
863
  /*input_handler*/
858
- t[53]
864
+ t[54]
859
865
  ),
860
866
  H(
861
867
  a,
862
868
  "click",
863
869
  /*click_handler_1*/
864
- t[54]
870
+ t[55]
865
871
  ),
866
- H(e, "submit", Pt(
872
+ H(e, "submit", jt(
867
873
  /*handleOnSubmit*/
868
874
  t[18]
869
875
  ))
870
876
  ], F = !0);
871
877
  },
872
- p(s, T) {
878
+ p(o, T) {
873
879
  (!C || T[0] & /*placeholder*/
874
- 256) && o(
880
+ 256) && s(
875
881
  i,
876
882
  "placeholder",
877
883
  /*placeholder*/
878
- s[8]
884
+ o[8]
879
885
  ), (!C || T[0] & /*placeholder*/
880
- 256) && o(
886
+ 256) && s(
881
887
  i,
882
888
  "aria-label",
883
889
  /*placeholder*/
884
- s[8]
890
+ o[8]
885
891
  ), T[0] & /*searchValue*/
886
892
  2 && i.value !== /*searchValue*/
887
- s[1] && We(
893
+ o[1] && Ze(
888
894
  i,
889
895
  /*searchValue*/
890
- s[1]
896
+ o[1]
891
897
  ), (!C || T[0] & /*clearButtonTitle*/
892
- 8) && o(
898
+ 8) && s(
893
899
  a,
894
900
  "title",
895
901
  /*clearButtonTitle*/
896
- s[3]
902
+ o[3]
897
903
  ), (!C || T[0] & /*searchValue*/
898
904
  2) && Q(
899
905
  a,
900
906
  "displayable",
901
907
  /*searchValue*/
902
- s[1] !== ""
908
+ o[1] !== ""
903
909
  ), /*abortController*/
904
- s[17] ? d ? T[0] & /*abortController*/
905
- 131072 && L(d, 1) : (d = Xe(), d.c(), L(d, 1), d.m(f, null)) : d && (Be(), O(d, 1, 1, () => {
910
+ o[17] ? d ? T[0] & /*abortController*/
911
+ 131072 && L(d, 1) : (d = Ye(), d.c(), L(d, 1), d.m(f, null)) : d && (Be(), O(d, 1, 1, () => {
906
912
  d = null;
907
913
  }), Le()), /*enableReverse*/
908
- s[5] === !0 ? b ? (b.p(s, T), T[0] & /*enableReverse*/
909
- 32 && L(b, 1)) : (b = Ye(s), b.c(), L(b, 1), b.m(n, P)) : b && (Be(), O(b, 1, 1, () => {
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, () => {
910
916
  b = null;
911
917
  }), Le()), M && M.p && (!C || T[1] & /*$$scope*/
912
- 32768) && It(
918
+ 65536) && At(
913
919
  M,
914
- N,
915
- s,
920
+ P,
921
+ o,
916
922
  /*$$scope*/
917
- s[46],
918
- C ? St(
919
- N,
923
+ o[47],
924
+ C ? It(
925
+ P,
920
926
  /*$$scope*/
921
- s[46],
927
+ o[47],
922
928
  T,
923
929
  null
924
- ) : At(
930
+ ) : Pt(
925
931
  /*$$scope*/
926
- s[46]
932
+ o[47]
927
933
  ),
928
934
  null
929
935
  );
930
936
  let J = p;
931
- p = ge(s), p === J ? ~p && A[p].p(s, T) : (k && (Be(), O(A[J], 1, 1, () => {
937
+ p = ye(o), p === J ? ~p && A[p].p(o, T) : (k && (Be(), O(A[J], 1, 1, () => {
932
938
  A[J] = null;
933
- }), 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*/
934
- 4 && B !== (B = Ue(
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*/
940
+ 4 && B !== (B = We(
935
941
  /*className*/
936
- s[2]
937
- ) + " svelte-z0d4ta")) && o(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
942
+ o[2]
943
+ ) + " svelte-z0d4ta")) && s(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
938
944
  22) && Q(
939
945
  e,
940
946
  "can-collapse",
941
947
  /*collapsed*/
942
- s[4] && /*searchValue*/
943
- s[1] === ""
948
+ o[4] && /*searchValue*/
949
+ o[1] === ""
944
950
  );
945
951
  },
946
- i(s) {
947
- C || (L(c.$$.fragment, s), L(h.$$.fragment, s), L(d), L(b), L(M, s), L(k), C = !0);
952
+ i(o) {
953
+ C || (L(c.$$.fragment, o), L(h.$$.fragment, o), L(d), L(b), L(M, o), L(k), C = !0);
948
954
  },
949
- o(s) {
950
- O(c.$$.fragment, s), O(h.$$.fragment, s), O(d), O(b), O(M, s), O(k), C = !1;
955
+ o(o) {
956
+ O(c.$$.fragment, o), O(h.$$.fragment, o), O(d), O(b), O(M, o), O(k), C = !1;
951
957
  },
952
- d(s) {
953
- s && D(e), de(c), t[49](null), de(h), d && d.d(), b && b.d(), M && M.d(s), ~p && A[p].d(), F = !1, ee(z);
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);
954
960
  }
955
961
  };
956
962
  }
957
- function on(t, e, n) {
963
+ function un(t, e, n) {
958
964
  const l = e[1], c = e[0], u = l - c;
959
965
  return t === l && n ? t : ((t - c) % u + u) % u + c;
960
966
  }
961
- function sn(t, e, n) {
962
- 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: P = 200 } = e, { enableReverse: x = !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: N = "No results found" } = e, { placeholder: M = "Search" } = e, { proximity: Z = void 0 } = e, { reverseActive: A = x === "always" } = e, { reverseButtonTitle: ge = "toggle reverse geocoding" } = e, { searchValue: s = "" } = e, { showFullGeometry: T = !0 } = e, { showPlaceType: J = !1 } = e, { showResultsWhileTyping: te = !0 } = e, { trackProximity: pe = !0 } = e, { types: ze = void 0 } = e, { zoom: Me = 16 } = e;
963
- function st() {
967
+ 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
970
  q.focus();
965
971
  }
966
- function ut() {
972
+ function ft() {
967
973
  q.blur();
968
974
  }
969
- function Fe(r, E = !0) {
970
- n(1, s = r), E ? (n(13, R = -1), He()) : (Ie(), setTimeout(() => {
975
+ function Ve(r, E = !0) {
976
+ n(1, o = r), E ? (n(13, R = -1), Ke()) : (Ae(), setTimeout(() => {
971
977
  q.focus(), q.select();
972
978
  }));
973
979
  }
974
- let oe = !1, g, j, y, Ve = "", q, R = -1, X, Te = [], ne, se, Ce;
975
- const Y = Ot();
976
- xt(() => {
980
+ let se = !1, g, j, y, He = "", q, R = -1, X, Ce = [], ne, oe, Re;
981
+ const Y = Dt();
982
+ Ot(() => {
977
983
  d && (d.setEventHandler(void 0), d.indicateReverse(!1), d.setSelectedMarker(-1), d.setMarkers(void 0, void 0));
978
984
  });
979
- function He(r) {
980
- if (se && (clearTimeout(se), se = void 0), R > -1 && g)
981
- n(44, y = g[R]), n(1, s = y.place_name.replace(/,.*/, "")), n(16, X = void 0), n(43, j = void 0), n(13, R = -1);
982
- else if (s) {
983
- const E = r || !Ke();
984
- Se(s, { exact: !0 }).then(() => {
985
- n(43, j = g), n(44, y = void 0), E && ft();
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();
986
992
  }).catch((U) => n(16, X = U));
987
993
  }
988
994
  }
989
- function Ke() {
990
- return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(s);
995
+ function Qe() {
996
+ return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(o);
991
997
  }
992
- async function Se(r, { byId: E = !1, exact: U = !1 } = {}) {
998
+ async function Ie(r, { byId: E = !1, exact: U = !1 } = {}) {
993
999
  n(16, X = void 0);
994
- const ye = Ke(), V = new URLSearchParams();
995
- F != null && V.set("language", Array.isArray(F) ? F.join(",") : F), ze && V.set("types", ze.join(",")), ye || (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);
996
- const le = "https://api.maptiler.com/geocoding/" + encodeURIComponent(r) + ".json?" + V.toString();
997
- if (le === Ve) {
998
- E ? (n(12, g = void 0), n(44, y = Te[0])) : n(12, g = Te);
1000
+ 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.replaceAll(";", ",")) + ".json?" + V.toString();
1003
+ if (le === He) {
1004
+ E ? (n(12, g = void 0), n(45, y = Ce[0])) : n(12, g = Ce);
999
1005
  return;
1000
1006
  }
1001
- Ve = le, ne == null || ne.abort();
1002
- const G = new AbortController();
1003
- n(17, ne = G);
1007
+ He = le, ne == null || ne.abort();
1008
+ const x = new AbortController();
1009
+ n(17, ne = x);
1004
1010
  let Ne;
1005
1011
  try {
1006
- Ne = await fetch(le, { signal: G.signal }).finally(() => {
1007
- G === ne && n(17, ne = void 0);
1012
+ Ne = await fetch(le, { signal: x.signal, ...Se }).finally(() => {
1013
+ x === ne && n(17, ne = void 0);
1008
1014
  });
1009
1015
  } catch (re) {
1010
1016
  if (re && typeof re == "object" && re.name === "AbortError")
@@ -1013,89 +1019,89 @@ function sn(t, e, n) {
1013
1019
  }
1014
1020
  if (!Ne.ok)
1015
1021
  throw new Error();
1016
- const Pe = await Ne.json();
1017
- Y("response", { url: le, featureCollection: Pe }), E ? (n(12, g = void 0), n(44, y = Pe.features[0]), Te = [y]) : (n(12, g = Pe.features.filter(k)), Te = g, ye && q.focus());
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());
1018
1024
  }
1019
- function ft() {
1020
- var U, ye, V, le;
1025
+ function at() {
1026
+ var U, be, V, le;
1021
1027
  if (!(j != null && j.length) || !B)
1022
1028
  return;
1023
- const r = [180, 90, -180, -90], E = !j.some((G) => !G.matching_text);
1024
- for (const G of j)
1025
- (E || !G.matching_text) && (r[0] = Math.min(r[0], ((U = G.bbox) == null ? void 0 : U[0]) ?? G.center[0]), r[1] = Math.min(r[1], ((ye = G.bbox) == null ? void 0 : ye[1]) ?? G.center[1]), r[2] = Math.max(r[2], ((V = G.bbox) == null ? void 0 : V[2]) ?? G.center[0]), r[3] = Math.max(r[3], ((le = G.bbox) == null ? void 0 : le[3]) ?? G.center[1]));
1026
- d && j.length > 0 && (y && r[0] === r[2] && r[1] === r[3] ? d.flyTo(y.center, Me) : d.fitBounds(r, 50));
1027
- }
1028
- function at(r) {
1029
- n(0, A = x === "always"), Fe(on(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
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));
1030
1033
  }
1031
1034
  function dt(r) {
1035
+ n(0, A = G === "always"), Ve(un(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
1036
+ }
1037
+ function ht(r) {
1032
1038
  if (!g)
1033
1039
  return;
1034
1040
  let E = r.key === "ArrowDown" ? 1 : r.key === "ArrowUp" ? -1 : 0;
1035
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);
1036
1042
  }
1037
- function Ie(r = !0) {
1038
- if (te && s.length > b) {
1039
- se && clearTimeout(se);
1040
- const E = s;
1041
- se = window.setTimeout(
1043
+ function Ae(r = !0) {
1044
+ if (te && o.length > b) {
1045
+ oe && clearTimeout(oe);
1046
+ const E = o;
1047
+ oe = window.setTimeout(
1042
1048
  () => {
1043
- Se(E).catch((U) => n(16, X = U));
1049
+ Ie(E).catch((U) => n(16, X = U));
1044
1050
  },
1045
- r ? P : 0
1051
+ r ? N : 0
1046
1052
  );
1047
1053
  } else
1048
1054
  n(12, g = void 0), n(16, X = void 0);
1049
1055
  }
1050
- function Ae(r) {
1051
- n(44, y = r), n(1, s = r.place_name), n(13, R = -1);
1056
+ function Pe(r) {
1057
+ n(45, y = r), n(1, o = r.place_name), n(13, R = -1);
1052
1058
  }
1053
- const ht = () => q.focus();
1054
- function mt(r) {
1055
- xe[r ? "unshift" : "push"](() => {
1059
+ const mt = () => q.focus();
1060
+ function _t(r) {
1061
+ Oe[r ? "unshift" : "push"](() => {
1056
1062
  q = r, n(15, q);
1057
1063
  });
1058
1064
  }
1059
- function _t() {
1060
- s = this.value, n(1, s), n(11, oe), n(25, h);
1065
+ function gt() {
1066
+ o = this.value, n(1, o), n(11, se), n(25, h);
1061
1067
  }
1062
- const gt = () => n(11, oe = !0), yt = () => n(11, oe = !1), bt = () => Ie(), wt = () => {
1063
- n(1, s = ""), q.focus();
1064
- }, kt = () => n(0, A = !A), vt = (r) => n(13, R = r), pt = (r) => Ae(r), zt = () => n(13, R = -1), Mt = () => {
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 = () => {
1065
1071
  };
1066
1072
  return t.$$set = (r) => {
1067
- "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, P = r.debounceSearch), "enableReverse" in r && n(5, x = 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, N = 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, ge = r.reverseButtonTitle), "searchValue" in r && n(1, s = 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, pe = r.trackProximity), "types" in r && n(38, ze = r.types), "zoom" in r && n(39, Me = r.zoom), "$$scope" in r && n(46, u = r.$$scope);
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);
1068
1074
  }, t.$$.update = () => {
1069
1075
  if (t.$$.dirty[1] & /*trackProximity*/
1070
- 64 && (pe || n(22, Z = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1076
+ 64 && (ze || n(22, Z = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1071
1077
  33556480 && setTimeout(() => {
1072
- n(14, Ce = oe), h && !oe && n(1, s = "");
1078
+ n(14, Re = se), h && !se && n(1, o = "");
1073
1079
  }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1074
- 4098 && (s || (n(44, y = void 0), n(12, g = void 0), n(16, X = void 0), n(43, j = g))), t.$$.dirty[1] & /*showFullGeometry, picked*/
1075
- 8208 && T && y && !y.address && y.geometry.type === "Point" && Se(y.id, { byId: !0 }).catch((r) => n(16, X = r)), t.$$.dirty[0] & /*flyTo*/
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*/
1076
1082
  536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
1077
- 8452 && d && y && B && (!y.bbox || y.bbox[0] === y.bbox[2] && y.bbox[1] === y.bbox[3] ? d.flyTo(y.center, Me) : d.fitBounds(y.bbox, 50), n(12, g = void 0), n(43, j = void 0), n(13, R = -1)), t.$$.dirty[0] & /*listFeatures*/
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*/
1078
1084
  4096 | t.$$.dirty[1] & /*markedFeatures*/
1079
- 4096 && j !== g && n(43, j = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1080
- 12292 && d && d.setMarkers(j, y), t.$$.dirty[0] & /*searchValue*/
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*/
1081
1087
  2 && n(13, R = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1082
1088
  20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1083
1089
  68 && d && d.setEventHandler((r) => {
1084
1090
  switch (r.type) {
1085
1091
  case "mapClick":
1086
- A && at(r.coordinates);
1092
+ A && dt(r.coordinates);
1087
1093
  break;
1088
1094
  case "proximityChange":
1089
- n(22, Z = pe ? r.proximity : void 0);
1095
+ n(22, Z = ze ? r.proximity : void 0);
1090
1096
  break;
1091
1097
  case "markerClick":
1092
1098
  {
1093
1099
  const E = g == null ? void 0 : g.find((U) => U.id === r.id);
1094
- E && Ae(E);
1100
+ E && Pe(E);
1095
1101
  }
1096
1102
  break;
1097
1103
  case "markerMouseEnter":
1098
- n(13, R = Ce ? (g == null ? void 0 : g.findIndex((E) => E.id === r.id)) ?? -1 : -1);
1104
+ n(13, R = Re ? (g == null ? void 0 : g.findIndex((E) => E.id === r.id)) ?? -1 : -1);
1099
1105
  break;
1100
1106
  case "markerMouseLeave":
1101
1107
  n(13, R = -1);
@@ -1104,51 +1110,51 @@ function sn(t, e, n) {
1104
1110
  }), t.$$.dirty[0] & /*selectedItemIndex*/
1105
1111
  8192 | t.$$.dirty[1] & /*mapController*/
1106
1112
  4 && (d == null || d.setSelectedMarker(R)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1107
- 12288 && n(45, l = g == null ? void 0 : g[R]), t.$$.dirty[0] & /*searchValue*/
1113
+ 12288 && n(46, l = g == null ? void 0 : g[R]), t.$$.dirty[0] & /*searchValue*/
1108
1114
  2 | t.$$.dirty[1] & /*mapController*/
1109
1115
  4) {
1110
- const r = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(s);
1116
+ const r = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(o);
1111
1117
  d == null || d.setReverseMarker(r ? [Number(r[1]), Number(r[2])] : void 0);
1112
1118
  }
1113
1119
  t.$$.dirty[1] & /*selected*/
1114
- 16384 && Y("select", l), t.$$.dirty[1] & /*picked*/
1115
- 8192 && Y("pick", y), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1116
- 20480 && Y("optionsVisibilityChange", Ce && !!g), t.$$.dirty[0] & /*listFeatures*/
1120
+ 32768 && Y("select", l), t.$$.dirty[1] & /*picked*/
1121
+ 16384 && Y("pick", y), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1122
+ 20480 && Y("optionsVisibilityChange", Re && !!g), t.$$.dirty[0] & /*listFeatures*/
1117
1123
  4096 && Y("featuresListed", g), t.$$.dirty[1] & /*markedFeatures*/
1118
- 4096 && Y("featuresMarked", j), t.$$.dirty[0] & /*reverseActive*/
1124
+ 8192 && Y("featuresMarked", j), t.$$.dirty[0] & /*reverseActive*/
1119
1125
  1 && Y("reverseToggle", A), t.$$.dirty[0] & /*searchValue*/
1120
- 2 && Y("queryChange", s), t.$$.dirty[0] & /*reverseActive*/
1126
+ 2 && Y("queryChange", o), t.$$.dirty[0] & /*reverseActive*/
1121
1127
  1 | t.$$.dirty[1] & /*mapController*/
1122
1128
  4 && d && d.indicateReverse(A);
1123
1129
  }, [
1124
1130
  A,
1125
- s,
1131
+ o,
1126
1132
  i,
1127
1133
  a,
1128
1134
  v,
1129
- x,
1135
+ G,
1130
1136
  p,
1131
- N,
1137
+ P,
1132
1138
  M,
1133
- ge,
1139
+ ye,
1134
1140
  J,
1135
- oe,
1141
+ se,
1136
1142
  g,
1137
1143
  R,
1138
- Ce,
1144
+ Re,
1139
1145
  q,
1140
1146
  X,
1141
1147
  ne,
1142
- He,
1143
- dt,
1144
- Ie,
1148
+ Ke,
1149
+ ht,
1145
1150
  Ae,
1151
+ Pe,
1146
1152
  Z,
1147
1153
  m,
1148
1154
  f,
1149
1155
  h,
1150
1156
  I,
1151
- P,
1157
+ N,
1152
1158
  k,
1153
1159
  B,
1154
1160
  C,
@@ -1158,18 +1164,18 @@ function sn(t, e, n) {
1158
1164
  b,
1159
1165
  T,
1160
1166
  te,
1161
- pe,
1162
1167
  ze,
1163
1168
  Me,
1164
- st,
1169
+ Te,
1170
+ Se,
1165
1171
  ut,
1166
- Fe,
1172
+ ft,
1173
+ Ve,
1167
1174
  j,
1168
1175
  y,
1169
1176
  l,
1170
1177
  u,
1171
1178
  c,
1172
- ht,
1173
1179
  mt,
1174
1180
  _t,
1175
1181
  gt,
@@ -1180,17 +1186,18 @@ function sn(t, e, n) {
1180
1186
  vt,
1181
1187
  pt,
1182
1188
  zt,
1183
- Mt
1189
+ Mt,
1190
+ Tt
1184
1191
  ];
1185
1192
  }
1186
- class un extends _e {
1193
+ class an extends ge {
1187
1194
  constructor(e) {
1188
- super(), me(
1195
+ super(), _e(
1189
1196
  this,
1190
1197
  e,
1191
- sn,
1192
- cn,
1193
- he,
1198
+ fn,
1199
+ on,
1200
+ me,
1194
1201
  {
1195
1202
  class: 2,
1196
1203
  apiKey: 23,
@@ -1221,25 +1228,26 @@ class un extends _e {
1221
1228
  trackProximity: 37,
1222
1229
  types: 38,
1223
1230
  zoom: 39,
1224
- focus: 40,
1225
- blur: 41,
1226
- setQuery: 42
1231
+ fetchParameters: 40,
1232
+ focus: 41,
1233
+ blur: 42,
1234
+ setQuery: 43
1227
1235
  },
1228
1236
  null,
1229
1237
  [-1, -1, -1]
1230
1238
  );
1231
1239
  }
1232
1240
  get focus() {
1233
- return this.$$.ctx[40];
1241
+ return this.$$.ctx[41];
1234
1242
  }
1235
1243
  get blur() {
1236
- return this.$$.ctx[41];
1244
+ return this.$$.ctx[42];
1237
1245
  }
1238
1246
  get setQuery() {
1239
- return this.$$.ctx[42];
1247
+ return this.$$.ctx[43];
1240
1248
  }
1241
1249
  }
1242
- const tt = [
1250
+ const nt = [
1243
1251
  "featuresListed",
1244
1252
  "featuresMarked",
1245
1253
  "optionsVisibilityChange",
@@ -1248,7 +1256,7 @@ const tt = [
1248
1256
  "response",
1249
1257
  "reversetoggle",
1250
1258
  "select"
1251
- ], fn = [
1259
+ ], dn = [
1252
1260
  "apiKey",
1253
1261
  "bbox",
1254
1262
  "clearButtonTitle",
@@ -1275,29 +1283,29 @@ const tt = [
1275
1283
  "zoom",
1276
1284
  "mapController"
1277
1285
  ];
1278
- function nt(t) {
1286
+ function lt(t) {
1279
1287
  return "on" + t[0].toUpperCase() + t.slice(1);
1280
1288
  }
1281
- const dn = Tt(function(e, n) {
1282
- const l = Qe(), c = Qe(), u = { ...e };
1283
- for (const i of tt)
1284
- delete u[nt(i)];
1285
- je(() => {
1289
+ const mn = Ct(function(e, n) {
1290
+ const l = qe(), c = qe(), u = { ...e };
1291
+ for (const i of nt)
1292
+ delete u[lt(i)];
1293
+ xe(() => {
1286
1294
  if (!l.current)
1287
1295
  throw new Error();
1288
- const i = new un({
1296
+ const i = new an({
1289
1297
  target: l.current,
1290
1298
  props: u
1291
1299
  });
1292
1300
  return c.current = i, () => i.$destroy();
1293
1301
  }, []);
1294
- for (const i of fn)
1295
- je(() => {
1302
+ for (const i of dn)
1303
+ xe(() => {
1296
1304
  c.current && e[i] !== void 0 && c.current.$set({ [i]: e[i] });
1297
1305
  }, [e[i]]);
1298
- for (const i of tt) {
1299
- const m = e[nt(i)];
1300
- je(() => {
1306
+ for (const i of nt) {
1307
+ const m = e[lt(i)];
1308
+ xe(() => {
1301
1309
  var f;
1302
1310
  (f = c.current) == null || f.$on(
1303
1311
  i,
@@ -1307,7 +1315,7 @@ const dn = Tt(function(e, n) {
1307
1315
  );
1308
1316
  }, [m]);
1309
1317
  }
1310
- return Ct(n, () => ({
1318
+ return Rt(n, () => ({
1311
1319
  setQuery: (i, m = !0) => {
1312
1320
  var f;
1313
1321
  return (f = c.current) == null ? void 0 : f.setQuery(i, m);
@@ -1320,8 +1328,8 @@ const dn = Tt(function(e, n) {
1320
1328
  var i;
1321
1329
  return (i = c.current) == null ? void 0 : i.blur();
1322
1330
  }
1323
- })), Rt("div", { ref: l });
1331
+ })), Et("div", { ref: l });
1324
1332
  });
1325
1333
  export {
1326
- dn as GeocodingControl
1334
+ mn as GeocodingControl
1327
1335
  };