@maptiler/geocoding-control 0.0.75 → 0.0.76

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 Ge, 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
21
  function he(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,7 +94,7 @@ 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
  };
@@ -102,19 +102,19 @@ function Pt(t) {
102
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 jt(t) {
105
+ function Gt(t) {
106
106
  return Array.from(t.childNodes);
107
107
  }
108
108
  function we(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) {
115
115
  t.classList[n ? "add" : "remove"](e);
116
116
  }
117
- function Gt(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
117
+ function xt(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
  }
@@ -122,20 +122,20 @@ let ke;
122
122
  function be(t) {
123
123
  ke = t;
124
124
  }
125
- function ct() {
125
+ function ot() {
126
126
  if (!ke)
127
127
  throw new Error("Function called outside component initialization");
128
128
  return ke;
129
129
  }
130
- function xt(t) {
131
- ct().$$.on_destroy.push(t);
130
+ function Ot(t) {
131
+ ot().$$.on_destroy.push(t);
132
132
  }
133
- function Ot() {
134
- const t = ct();
133
+ function Dt() {
134
+ const t = ot();
135
135
  return (e, n, { cancelable: l = !1 } = {}) => {
136
136
  const c = t.$$.callbacks[e];
137
137
  if (c) {
138
- const u = Gt(e, n, { cancelable: l });
138
+ const u = xt(e, n, { cancelable: l });
139
139
  return c.slice().forEach((i) => {
140
140
  i.call(t, u);
141
141
  }), !u.defaultPrevented;
@@ -143,17 +143,17 @@ 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 = [], Re = [], Je = [], Ft = Promise.resolve();
147
+ let De = !1;
148
+ function Vt() {
149
+ De || (De = !0, Ft.then(st));
150
150
  }
151
- function De(t) {
151
+ function Fe(t) {
152
152
  Re.push(t);
153
153
  }
154
- const Ge = /* @__PURE__ */ new Set();
154
+ const xe = /* @__PURE__ */ new Set();
155
155
  let ue = 0;
156
- function ot() {
156
+ function st() {
157
157
  if (ue !== 0)
158
158
  return;
159
159
  const t = ke;
@@ -161,28 +161,28 @@ function ot() {
161
161
  try {
162
162
  for (; ue < fe.length; ) {
163
163
  const e = fe[ue];
164
- ue++, be(e), Vt(e.$$);
164
+ ue++, be(e), Ht(e.$$);
165
165
  }
166
166
  } catch (e) {
167
167
  throw fe.length = 0, ue = 0, e;
168
168
  }
169
- for (be(null), fe.length = 0, ue = 0; xe.length; )
170
- xe.pop()();
169
+ for (be(null), fe.length = 0, ue = 0; Oe.length; )
170
+ Oe.pop()();
171
171
  for (let e = 0; e < Re.length; e += 1) {
172
172
  const n = Re[e];
173
- Ge.has(n) || (Ge.add(n), n());
173
+ xe.has(n) || (xe.add(n), n());
174
174
  }
175
175
  Re.length = 0;
176
176
  } while (fe.length);
177
- for (; Ze.length; )
178
- Ze.pop()();
179
- Oe = !1, Ge.clear(), be(t);
177
+ for (; Je.length; )
178
+ Je.pop()();
179
+ De = !1, xe.clear(), be(t);
180
180
  }
181
- function Vt(t) {
181
+ function Ht(t) {
182
182
  if (t.fragment !== null) {
183
183
  t.update(), ee(t.before_update);
184
184
  const e = t.dirty;
185
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(De);
185
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Fe);
186
186
  }
187
187
  }
188
188
  const Ee = /* @__PURE__ */ new Set();
@@ -216,17 +216,17 @@ function ve(t) {
216
216
  }
217
217
  function ae(t, e, n, l) {
218
218
  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);
219
+ c && c.m(e, n), l || Fe(() => {
220
+ const i = t.$$.on_mount.map(rt).filter(it);
221
221
  t.$$.on_destroy ? t.$$.on_destroy.push(...i) : ee(i), t.$$.on_mount = [];
222
- }), u.forEach(De);
222
+ }), u.forEach(Fe);
223
223
  }
224
224
  function de(t, e) {
225
225
  const n = t.$$;
226
226
  n.fragment !== null && (ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
227
227
  }
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;
228
+ function Kt(t, e) {
229
+ t.$$.dirty[0] === -1 && (fe.push(t), Vt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
230
230
  }
231
231
  function me(t, e, n, l, c, u, i, m = [-1]) {
232
232
  const f = ke;
@@ -238,7 +238,7 @@ function me(t, e, n, l, c, u, i, m = [-1]) {
238
238
  props: u,
239
239
  update: w,
240
240
  not_equal: c,
241
- bound: qe(),
241
+ bound: Ue(),
242
242
  // lifecycle
243
243
  on_mount: [],
244
244
  on_destroy: [],
@@ -247,23 +247,23 @@ function me(t, e, n, l, c, u, i, m = [-1]) {
247
247
  after_update: [],
248
248
  context: new Map(e.context || (f ? f.$$.context : [])),
249
249
  // everything else
250
- callbacks: qe(),
250
+ callbacks: Ue(),
251
251
  dirty: m,
252
252
  skip_bound: !1,
253
253
  root: e.target || f.$$.root
254
254
  };
255
255
  i && i(a.root);
256
256
  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;
257
+ if (a.ctx = n ? n(t, e.props || {}, (v, I, ...N) => {
258
+ const x = N.length ? N[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 && Kt(t, v)), I;
260
260
  }) : [], a.update(), h = !0, ee(a.before_update), a.fragment = l ? l(a.ctx) : !1, e.target) {
261
261
  if (e.hydrate) {
262
- const v = jt(e.target);
262
+ const v = Gt(e.target);
263
263
  a.fragment && a.fragment.l(v), v.forEach(D);
264
264
  } else
265
265
  a.fragment && a.fragment.c();
266
- e.intro && L(t.$$.fragment), ae(t, e.target, e.anchor, e.customElement), ot();
266
+ e.intro && L(t.$$.fragment), ae(t, e.target, e.anchor, e.customElement), st();
267
267
  }
268
268
  be(f);
269
269
  }
@@ -272,7 +272,7 @@ class _e {
272
272
  de(this, 1), this.$destroy = w;
273
273
  }
274
274
  $on(e, n) {
275
- if (!rt(n))
275
+ if (!it(n))
276
276
  return w;
277
277
  const l = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
278
278
  return l.push(n), () => {
@@ -281,10 +281,10 @@ class _e {
281
281
  };
282
282
  }
283
283
  $set(e) {
284
- this.$$set && !Bt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
284
+ this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
285
285
  }
286
286
  }
287
- function Kt(t) {
287
+ function Qt(t) {
288
288
  let e, n;
289
289
  return {
290
290
  c() {
@@ -301,12 +301,12 @@ function Kt(t) {
301
301
  }
302
302
  };
303
303
  }
304
- class Qt extends _e {
304
+ class qt extends _e {
305
305
  constructor(e) {
306
- super(), me(this, e, null, Kt, he, {});
306
+ super(), me(this, e, null, Qt, he, {});
307
307
  }
308
308
  }
309
- function qt(t) {
309
+ function Ut(t) {
310
310
  let e, n;
311
311
  return {
312
312
  c() {
@@ -323,12 +323,12 @@ function qt(t) {
323
323
  }
324
324
  };
325
325
  }
326
- class Ut extends _e {
326
+ class Wt extends _e {
327
327
  constructor(e) {
328
- super(), me(this, e, null, qt, he, {});
328
+ super(), me(this, e, null, Ut, he, {});
329
329
  }
330
330
  }
331
- function Wt(t) {
331
+ function Zt(t) {
332
332
  let e;
333
333
  return {
334
334
  c() {
@@ -345,12 +345,12 @@ function Wt(t) {
345
345
  }
346
346
  };
347
347
  }
348
- class Zt extends _e {
348
+ class Jt extends _e {
349
349
  constructor(e) {
350
- super(), me(this, e, null, Wt, he, {});
350
+ super(), me(this, e, null, Zt, he, {});
351
351
  }
352
352
  }
353
- function Jt(t) {
353
+ function Xt(t) {
354
354
  let e, n, l;
355
355
  return {
356
356
  c() {
@@ -394,18 +394,18 @@ function Jt(t) {
394
394
  }
395
395
  };
396
396
  }
397
- function Xt(t, e, n) {
397
+ function Yt(t, e, n) {
398
398
  let { displayIn: l } = e;
399
399
  return t.$$set = (c) => {
400
400
  "displayIn" in c && n(0, l = c.displayIn);
401
401
  }, [l];
402
402
  }
403
- class Yt extends _e {
403
+ class $t extends _e {
404
404
  constructor(e) {
405
- super(), me(this, e, Xt, Jt, he, { displayIn: 0 });
405
+ super(), me(this, e, Yt, Xt, he, { displayIn: 0 });
406
406
  }
407
407
  }
408
- function $t(t) {
408
+ function en(t) {
409
409
  let e, n;
410
410
  return {
411
411
  c() {
@@ -422,18 +422,18 @@ function $t(t) {
422
422
  }
423
423
  };
424
424
  }
425
- class en extends _e {
425
+ class tn extends _e {
426
426
  constructor(e) {
427
- super(), me(this, e, null, $t, he, {});
427
+ super(), me(this, e, null, en, he, {});
428
428
  }
429
429
  }
430
- function Je(t, e, n) {
430
+ function Xe(t, e, n) {
431
431
  const l = t.slice();
432
- return l[68] = e[n], l[70] = n, l;
432
+ return l[69] = e[n], l[71] = n, l;
433
433
  }
434
- function Xe(t) {
434
+ function Ye(t) {
435
435
  let e, n;
436
- return e = new Zt({}), {
436
+ return e = new Jt({}), {
437
437
  c() {
438
438
  ve(e.$$.fragment);
439
439
  },
@@ -451,9 +451,9 @@ function Xe(t) {
451
451
  }
452
452
  };
453
453
  }
454
- function Ye(t) {
454
+ function $e(t) {
455
455
  let e, n, l, c, u;
456
- return n = new Qt({}), {
456
+ return n = new qt({}), {
457
457
  c() {
458
458
  e = S("button"), ve(n.$$.fragment), o(e, "type", "button"), o(
459
459
  e,
@@ -472,7 +472,7 @@ function Ye(t) {
472
472
  e,
473
473
  "click",
474
474
  /*click_handler_2*/
475
- t[55]
475
+ t[56]
476
476
  ), c = !0);
477
477
  },
478
478
  p(i, m) {
@@ -501,13 +501,13 @@ function Ye(t) {
501
501
  }
502
502
  };
503
503
  }
504
- function tn(t) {
504
+ function nn(t) {
505
505
  let e, n, l, c, u = (
506
506
  /*listFeatures*/
507
507
  t[12]
508
508
  ), i = [];
509
509
  for (let f = 0; f < u.length; f += 1)
510
- i[f] = et(Je(t, u, f));
510
+ i[f] = tt(Xe(t, u, f));
511
511
  const m = (f) => O(i[f], 1, 1, () => {
512
512
  i[f] = null;
513
513
  });
@@ -527,13 +527,13 @@ function tn(t) {
527
527
  e,
528
528
  "mouseleave",
529
529
  /*mouseleave_handler*/
530
- t[58]
530
+ t[59]
531
531
  ),
532
532
  H(
533
533
  e,
534
534
  "blur",
535
535
  /*blur_handler_1*/
536
- t[59]
536
+ t[60]
537
537
  )
538
538
  ], l = !0);
539
539
  },
@@ -544,8 +544,8 @@ function tn(t) {
544
544
  f[12];
545
545
  let h;
546
546
  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));
547
+ const v = Xe(f, u, h);
548
+ 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
549
  }
550
550
  for (Be(), h = u.length; h < i.length; h += 1)
551
551
  m(h);
@@ -570,7 +570,7 @@ function tn(t) {
570
570
  }
571
571
  };
572
572
  }
573
- function nn(t) {
573
+ function ln(t) {
574
574
  let e, n;
575
575
  return {
576
576
  c() {
@@ -597,7 +597,7 @@ function nn(t) {
597
597
  }
598
598
  };
599
599
  }
600
- function ln(t) {
600
+ function rn(t) {
601
601
  let e = "", n;
602
602
  return {
603
603
  c() {
@@ -614,7 +614,7 @@ function ln(t) {
614
614
  }
615
615
  };
616
616
  }
617
- function rn(t) {
617
+ function cn(t) {
618
618
  let e, n;
619
619
  return {
620
620
  c() {
@@ -641,12 +641,12 @@ function rn(t) {
641
641
  }
642
642
  };
643
643
  }
644
- function $e(t) {
644
+ function et(t) {
645
645
  var c, u;
646
646
  let e, n = (
647
647
  /*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]) + ""
648
+ (((u = (c = t[69].properties) == null ? void 0 : c.place_type_name) == null ? void 0 : u[0]) ?? /*feature*/
649
+ t[69].place_type[0]) + ""
650
650
  ), l;
651
651
  return {
652
652
  c() {
@@ -659,112 +659,112 @@ function $e(t) {
659
659
  var f, a;
660
660
  m[0] & /*listFeatures*/
661
661
  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);
662
+ (((a = (f = i[69].properties) == null ? void 0 : f.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
663
+ i[69].place_type[0]) + "") && we(l, n);
664
664
  },
665
665
  d(i) {
666
666
  i && D(e);
667
667
  }
668
668
  };
669
669
  }
670
- function et(t) {
670
+ function tt(t) {
671
671
  let e, n, l, c, u, i, m = (
672
672
  /*feature*/
673
- t[68].place_name.replace(/,.*/, "") + ""
674
- ), f, a, h, v, I, P = (
673
+ t[69].place_name.replace(/,.*/, "") + ""
674
+ ), f, a, h, v, I, N = (
675
675
  /*feature*/
676
- t[68].place_name.replace(/[^,]*,?\s*/, "") + ""
676
+ t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
677
677
  ), x, p, k, B, C, F;
678
- n = new Yt({ props: { displayIn: "list" } });
678
+ n = new $t({ props: { displayIn: "list" } });
679
679
  let z = (
680
680
  /*showPlaceType*/
681
- t[10] && $e(t)
681
+ t[10] && et(t)
682
682
  );
683
683
  function d() {
684
684
  return (
685
685
  /*mouseenter_handler*/
686
- t[56](
686
+ t[57](
687
687
  /*i*/
688
- t[70]
688
+ t[71]
689
689
  )
690
690
  );
691
691
  }
692
692
  function b() {
693
693
  return (
694
694
  /*focus_handler_1*/
695
- t[57](
695
+ t[58](
696
696
  /*feature*/
697
- t[68]
697
+ t[69]
698
698
  )
699
699
  );
700
700
  }
701
701
  return {
702
702
  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*/
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(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*/
704
704
  t[13] === /*i*/
705
- t[70]), o(e, "class", "svelte-z0d4ta"), Q(
705
+ t[71]), o(e, "class", "svelte-z0d4ta"), Q(
706
706
  e,
707
707
  "selected",
708
708
  /*selectedItemIndex*/
709
709
  t[13] === /*i*/
710
- t[70]
710
+ t[71]
711
711
  );
712
712
  },
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 = [
713
+ m(P, M) {
714
+ K(P, 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 = [
715
715
  H(e, "mouseenter", d),
716
716
  H(e, "focus", b)
717
717
  ], C = !0);
718
718
  },
719
- p(N, M) {
720
- t = N, (!B || M[0] & /*listFeatures*/
719
+ p(P, M) {
720
+ t = P, (!B || M[0] & /*listFeatures*/
721
721
  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*/
722
+ t[69].place_name.replace(/,.*/, "") + "") && we(f, m), /*showPlaceType*/
723
+ 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*/
724
+ 4096) && N !== (N = /*feature*/
725
+ t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && we(x, N), (!B || M[0] & /*selectedItemIndex*/
726
726
  8192 && k !== (k = /*selectedItemIndex*/
727
727
  t[13] === /*i*/
728
- t[70])) && o(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
728
+ t[71])) && o(e, "data-selected", k), (!B || M[0] & /*selectedItemIndex*/
729
729
  8192) && Q(
730
730
  e,
731
731
  "selected",
732
732
  /*selectedItemIndex*/
733
733
  t[13] === /*i*/
734
- t[70]
734
+ t[71]
735
735
  );
736
736
  },
737
- i(N) {
738
- B || (L(n.$$.fragment, N), B = !0);
737
+ i(P) {
738
+ B || (L(n.$$.fragment, P), B = !0);
739
739
  },
740
- o(N) {
741
- O(n.$$.fragment, N), B = !1;
740
+ o(P) {
741
+ O(n.$$.fragment, P), B = !1;
742
742
  },
743
- d(N) {
744
- N && D(e), de(n), z && z.d(), C = !1, ee(F);
743
+ d(P) {
744
+ P && D(e), de(n), z && z.d(), C = !1, ee(F);
745
745
  }
746
746
  };
747
747
  }
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({});
748
+ function on(t) {
749
+ let e, n, l, c, u, i, m, f, a, h, v, I, N, x, p, k, B, C, F, z;
750
+ c = new tn({}), h = new Wt({});
751
751
  let d = (
752
752
  /*abortController*/
753
- t[17] && Xe()
753
+ t[17] && Ye()
754
754
  ), b = (
755
755
  /*enableReverse*/
756
- t[5] === !0 && Ye(t)
756
+ t[5] === !0 && $e(t)
757
757
  );
758
- const N = (
758
+ const P = (
759
759
  /*#slots*/
760
- t[47].default
761
- ), M = Lt(
762
- N,
760
+ t[48].default
761
+ ), M = St(
762
+ P,
763
763
  t,
764
764
  /*$$scope*/
765
- t[46],
765
+ t[47],
766
766
  null
767
- ), Z = [rn, ln, nn, tn], A = [];
767
+ ), Z = [cn, rn, ln, nn], A = [];
768
768
  function ge(s, T) {
769
769
  var J, te;
770
770
  return (
@@ -784,7 +784,7 @@ function cn(t) {
784
784
  }
785
785
  return ~(p = ge(t)) && (k = A[p] = Z[p](t)), {
786
786
  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(
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(), N = W(), M && M.c(), x = W(), k && k.c(), o(l, "type", "button"), o(l, "class", "svelte-z0d4ta"), o(
788
788
  i,
789
789
  "placeholder",
790
790
  /*placeholder*/
@@ -804,7 +804,7 @@ function cn(t) {
804
804
  "displayable",
805
805
  /*searchValue*/
806
806
  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(
807
+ ), o(f, "class", "clear-button-container svelte-z0d4ta"), o(n, "class", "input-group svelte-z0d4ta"), o(e, "tabindex", "0"), o(e, "class", B = We(
808
808
  /*className*/
809
809
  t[2]
810
810
  ) + " svelte-z0d4ta"), Q(
@@ -816,34 +816,34 @@ function cn(t) {
816
816
  );
817
817
  },
818
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(
819
+ K(s, e, T), _(e, n), _(n, l), ae(c, l, null), _(n, u), _(n, i), t[50](i), Ze(
820
820
  i,
821
821
  /*searchValue*/
822
822
  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 = [
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, N), M && M.m(n, null), _(e, x), ~p && A[p].m(e, null), C = !0, F || (z = [
824
824
  H(
825
825
  l,
826
826
  "click",
827
827
  /*click_handler*/
828
- t[48]
828
+ t[49]
829
829
  ),
830
830
  H(
831
831
  i,
832
832
  "input",
833
833
  /*input_1_input_handler*/
834
- t[50]
834
+ t[51]
835
835
  ),
836
836
  H(
837
837
  i,
838
838
  "focus",
839
839
  /*focus_handler*/
840
- t[51]
840
+ t[52]
841
841
  ),
842
842
  H(
843
843
  i,
844
844
  "blur",
845
845
  /*blur_handler*/
846
- t[52]
846
+ t[53]
847
847
  ),
848
848
  H(
849
849
  i,
@@ -855,15 +855,15 @@ function cn(t) {
855
855
  i,
856
856
  "input",
857
857
  /*input_handler*/
858
- t[53]
858
+ t[54]
859
859
  ),
860
860
  H(
861
861
  a,
862
862
  "click",
863
863
  /*click_handler_1*/
864
- t[54]
864
+ t[55]
865
865
  ),
866
- H(e, "submit", Pt(
866
+ H(e, "submit", jt(
867
867
  /*handleOnSubmit*/
868
868
  t[18]
869
869
  ))
@@ -884,7 +884,7 @@ function cn(t) {
884
884
  s[8]
885
885
  ), T[0] & /*searchValue*/
886
886
  2 && i.value !== /*searchValue*/
887
- s[1] && We(
887
+ s[1] && Ze(
888
888
  i,
889
889
  /*searchValue*/
890
890
  s[1]
@@ -902,28 +902,28 @@ function cn(t) {
902
902
  s[1] !== ""
903
903
  ), /*abortController*/
904
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, () => {
905
+ 131072 && L(d, 1) : (d = Ye(), d.c(), L(d, 1), d.m(f, null)) : d && (Be(), O(d, 1, 1, () => {
906
906
  d = null;
907
907
  }), Le()), /*enableReverse*/
908
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, () => {
909
+ 32 && L(b, 1)) : (b = $e(s), b.c(), L(b, 1), b.m(n, N)) : b && (Be(), O(b, 1, 1, () => {
910
910
  b = null;
911
911
  }), Le()), M && M.p && (!C || T[1] & /*$$scope*/
912
- 32768) && It(
912
+ 65536) && At(
913
913
  M,
914
- N,
914
+ P,
915
915
  s,
916
916
  /*$$scope*/
917
- s[46],
918
- C ? St(
919
- N,
917
+ s[47],
918
+ C ? It(
919
+ P,
920
920
  /*$$scope*/
921
- s[46],
921
+ s[47],
922
922
  T,
923
923
  null
924
- ) : At(
924
+ ) : Pt(
925
925
  /*$$scope*/
926
- s[46]
926
+ s[47]
927
927
  ),
928
928
  null
929
929
  );
@@ -931,7 +931,7 @@ function cn(t) {
931
931
  p = ge(s), p === J ? ~p && A[p].p(s, T) : (k && (Be(), O(A[J], 1, 1, () => {
932
932
  A[J] = null;
933
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(
934
+ 4 && B !== (B = We(
935
935
  /*className*/
936
936
  s[2]
937
937
  ) + " svelte-z0d4ta")) && o(e, "class", B), (!C || T[0] & /*className, collapsed, searchValue*/
@@ -950,60 +950,60 @@ function cn(t) {
950
950
  O(c.$$.fragment, s), O(h.$$.fragment, s), O(d), O(b), O(M, s), O(k), C = !1;
951
951
  },
952
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);
953
+ s && D(e), de(c), t[50](null), de(h), d && d.d(), b && b.d(), M && M.d(s), ~p && A[p].d(), F = !1, ee(z);
954
954
  }
955
955
  };
956
956
  }
957
- function on(t, e, n) {
957
+ function sn(t, e, n) {
958
958
  const l = e[1], c = e[0], u = l - c;
959
959
  return t === l && n ? t : ((t - c) % u + u) % u + c;
960
960
  }
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() {
961
+ function un(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: N = 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: P = "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, { fetchParameters: Se = {} } = e;
963
+ function ut() {
964
964
  q.focus();
965
965
  }
966
- function ut() {
966
+ function ft() {
967
967
  q.blur();
968
968
  }
969
- function Fe(r, E = !0) {
970
- n(1, s = r), E ? (n(13, R = -1), He()) : (Ie(), setTimeout(() => {
969
+ function Ve(r, E = !0) {
970
+ n(1, s = r), E ? (n(13, R = -1), Ke()) : (Ae(), setTimeout(() => {
971
971
  q.focus(), q.select();
972
972
  }));
973
973
  }
974
- let oe = !1, g, j, y, Ve = "", q, R = -1, X, Te = [], ne, se, Ce;
975
- const Y = Ot();
976
- xt(() => {
974
+ let oe = !1, g, j, y, He = "", q, R = -1, X, Te = [], ne, se, Ce;
975
+ const Y = Dt();
976
+ Ot(() => {
977
977
  d && (d.setEventHandler(void 0), d.indicateReverse(!1), d.setSelectedMarker(-1), d.setMarkers(void 0, void 0));
978
978
  });
979
- function He(r) {
979
+ function Ke(r) {
980
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);
981
+ n(45, y = g[R]), n(1, s = y.place_name.replace(/,.*/, "")), n(16, X = void 0), n(44, j = void 0), n(13, R = -1);
982
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();
983
+ const E = r || !Qe();
984
+ Ie(s, { exact: !0 }).then(() => {
985
+ n(44, j = g), n(45, y = void 0), E && at();
986
986
  }).catch((U) => n(16, X = U));
987
987
  }
988
988
  }
989
- function Ke() {
989
+ function Qe() {
990
990
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(s);
991
991
  }
992
- async function Se(r, { byId: E = !1, exact: U = !1 } = {}) {
992
+ async function Ie(r, { byId: E = !1, exact: U = !1 } = {}) {
993
993
  n(16, X = void 0);
994
- const ye = Ke(), V = new URLSearchParams();
994
+ const ye = Qe(), V = new URLSearchParams();
995
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
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);
997
+ if (le === He) {
998
+ E ? (n(12, g = void 0), n(45, y = Te[0])) : n(12, g = Te);
999
999
  return;
1000
1000
  }
1001
- Ve = le, ne == null || ne.abort();
1001
+ He = le, ne == null || ne.abort();
1002
1002
  const G = new AbortController();
1003
1003
  n(17, ne = G);
1004
1004
  let Ne;
1005
1005
  try {
1006
- Ne = await fetch(le, { signal: G.signal }).finally(() => {
1006
+ Ne = await fetch(le, { signal: G.signal, ...Se }).finally(() => {
1007
1007
  G === ne && n(17, ne = void 0);
1008
1008
  });
1009
1009
  } catch (re) {
@@ -1013,10 +1013,10 @@ function sn(t, e, n) {
1013
1013
  }
1014
1014
  if (!Ne.ok)
1015
1015
  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());
1016
+ const je = await Ne.json();
1017
+ Y("response", { url: le, featureCollection: je }), E ? (n(12, g = void 0), n(45, y = je.features[0]), Te = [y]) : (n(12, g = je.features.filter(k)), Te = g, ye && q.focus());
1018
1018
  }
1019
- function ft() {
1019
+ function at() {
1020
1020
  var U, ye, V, le;
1021
1021
  if (!(j != null && j.length) || !B)
1022
1022
  return;
@@ -1025,65 +1025,65 @@ function sn(t, e, n) {
1025
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
1026
  d && j.length > 0 && (y && r[0] === r[2] && r[1] === r[3] ? d.flyTo(y.center, Me) : d.fitBounds(r, 50));
1027
1027
  }
1028
- function at(r) {
1029
- n(0, A = x === "always"), Fe(on(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
1030
- }
1031
1028
  function dt(r) {
1029
+ n(0, A = x === "always"), Ve(sn(r[0], [-180, 180], !0).toFixed(6) + "," + r[1].toFixed(6));
1030
+ }
1031
+ function ht(r) {
1032
1032
  if (!g)
1033
1033
  return;
1034
1034
  let E = r.key === "ArrowDown" ? 1 : r.key === "ArrowUp" ? -1 : 0;
1035
1035
  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
1036
  }
1037
- function Ie(r = !0) {
1037
+ function Ae(r = !0) {
1038
1038
  if (te && s.length > b) {
1039
1039
  se && clearTimeout(se);
1040
1040
  const E = s;
1041
1041
  se = window.setTimeout(
1042
1042
  () => {
1043
- Se(E).catch((U) => n(16, X = U));
1043
+ Ie(E).catch((U) => n(16, X = U));
1044
1044
  },
1045
- r ? P : 0
1045
+ r ? N : 0
1046
1046
  );
1047
1047
  } else
1048
1048
  n(12, g = void 0), n(16, X = void 0);
1049
1049
  }
1050
- function Ae(r) {
1051
- n(44, y = r), n(1, s = r.place_name), n(13, R = -1);
1050
+ function Pe(r) {
1051
+ n(45, y = r), n(1, s = r.place_name), n(13, R = -1);
1052
1052
  }
1053
- const ht = () => q.focus();
1054
- function mt(r) {
1055
- xe[r ? "unshift" : "push"](() => {
1053
+ const mt = () => q.focus();
1054
+ function _t(r) {
1055
+ Oe[r ? "unshift" : "push"](() => {
1056
1056
  q = r, n(15, q);
1057
1057
  });
1058
1058
  }
1059
- function _t() {
1059
+ function gt() {
1060
1060
  s = this.value, n(1, s), n(11, oe), n(25, h);
1061
1061
  }
1062
- const gt = () => n(11, oe = !0), yt = () => n(11, oe = !1), bt = () => Ie(), wt = () => {
1062
+ const yt = () => n(11, oe = !0), bt = () => n(11, oe = !1), wt = () => Ae(), kt = () => {
1063
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 = () => {
1064
+ }, vt = () => n(0, A = !A), pt = (r) => n(13, R = r), zt = (r) => Pe(r), Mt = () => n(13, R = -1), Tt = () => {
1065
1065
  };
1066
1066
  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);
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, N = 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, 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, 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), "fetchParameters" in r && n(40, Se = r.fetchParameters), "$$scope" in r && n(47, u = r.$$scope);
1068
1068
  }, t.$$.update = () => {
1069
1069
  if (t.$$.dirty[1] & /*trackProximity*/
1070
1070
  64 && (pe || n(22, Z = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1071
1071
  33556480 && setTimeout(() => {
1072
1072
  n(14, Ce = oe), h && !oe && n(1, s = "");
1073
1073
  }), 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*/
1074
+ 4098 && (s || (n(45, y = void 0), n(12, g = void 0), n(16, X = void 0), n(44, j = g))), t.$$.dirty[1] & /*showFullGeometry, picked*/
1075
+ 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
1076
  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*/
1077
+ 16644 && 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(44, j = void 0), n(13, R = -1)), t.$$.dirty[0] & /*listFeatures*/
1078
1078
  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*/
1079
+ 8192 && j !== g && n(44, j = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1080
+ 24580 && d && d.setMarkers(j, y), t.$$.dirty[0] & /*searchValue*/
1081
1081
  2 && n(13, R = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1082
1082
  20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1083
1083
  68 && d && d.setEventHandler((r) => {
1084
1084
  switch (r.type) {
1085
1085
  case "mapClick":
1086
- A && at(r.coordinates);
1086
+ A && dt(r.coordinates);
1087
1087
  break;
1088
1088
  case "proximityChange":
1089
1089
  n(22, Z = pe ? r.proximity : void 0);
@@ -1091,7 +1091,7 @@ function sn(t, e, n) {
1091
1091
  case "markerClick":
1092
1092
  {
1093
1093
  const E = g == null ? void 0 : g.find((U) => U.id === r.id);
1094
- E && Ae(E);
1094
+ E && Pe(E);
1095
1095
  }
1096
1096
  break;
1097
1097
  case "markerMouseEnter":
@@ -1104,18 +1104,18 @@ function sn(t, e, n) {
1104
1104
  }), t.$$.dirty[0] & /*selectedItemIndex*/
1105
1105
  8192 | t.$$.dirty[1] & /*mapController*/
1106
1106
  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*/
1107
+ 12288 && n(46, l = g == null ? void 0 : g[R]), t.$$.dirty[0] & /*searchValue*/
1108
1108
  2 | t.$$.dirty[1] & /*mapController*/
1109
1109
  4) {
1110
1110
  const r = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(s);
1111
1111
  d == null || d.setReverseMarker(r ? [Number(r[1]), Number(r[2])] : void 0);
1112
1112
  }
1113
1113
  t.$$.dirty[1] & /*selected*/
1114
- 16384 && Y("select", l), t.$$.dirty[1] & /*picked*/
1115
- 8192 && Y("pick", y), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1114
+ 32768 && Y("select", l), t.$$.dirty[1] & /*picked*/
1115
+ 16384 && Y("pick", y), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1116
1116
  20480 && Y("optionsVisibilityChange", Ce && !!g), t.$$.dirty[0] & /*listFeatures*/
1117
1117
  4096 && Y("featuresListed", g), t.$$.dirty[1] & /*markedFeatures*/
1118
- 4096 && Y("featuresMarked", j), t.$$.dirty[0] & /*reverseActive*/
1118
+ 8192 && Y("featuresMarked", j), t.$$.dirty[0] & /*reverseActive*/
1119
1119
  1 && Y("reverseToggle", A), t.$$.dirty[0] & /*searchValue*/
1120
1120
  2 && Y("queryChange", s), t.$$.dirty[0] & /*reverseActive*/
1121
1121
  1 | t.$$.dirty[1] & /*mapController*/
@@ -1128,7 +1128,7 @@ function sn(t, e, n) {
1128
1128
  v,
1129
1129
  x,
1130
1130
  p,
1131
- N,
1131
+ P,
1132
1132
  M,
1133
1133
  ge,
1134
1134
  J,
@@ -1139,16 +1139,16 @@ function sn(t, e, n) {
1139
1139
  q,
1140
1140
  X,
1141
1141
  ne,
1142
- He,
1143
- dt,
1144
- Ie,
1142
+ Ke,
1143
+ ht,
1145
1144
  Ae,
1145
+ Pe,
1146
1146
  Z,
1147
1147
  m,
1148
1148
  f,
1149
1149
  h,
1150
1150
  I,
1151
- P,
1151
+ N,
1152
1152
  k,
1153
1153
  B,
1154
1154
  C,
@@ -1161,15 +1161,15 @@ function sn(t, e, n) {
1161
1161
  pe,
1162
1162
  ze,
1163
1163
  Me,
1164
- st,
1164
+ Se,
1165
1165
  ut,
1166
- Fe,
1166
+ ft,
1167
+ Ve,
1167
1168
  j,
1168
1169
  y,
1169
1170
  l,
1170
1171
  u,
1171
1172
  c,
1172
- ht,
1173
1173
  mt,
1174
1174
  _t,
1175
1175
  gt,
@@ -1180,16 +1180,17 @@ function sn(t, e, n) {
1180
1180
  vt,
1181
1181
  pt,
1182
1182
  zt,
1183
- Mt
1183
+ Mt,
1184
+ Tt
1184
1185
  ];
1185
1186
  }
1186
- class un extends _e {
1187
+ class fn extends _e {
1187
1188
  constructor(e) {
1188
1189
  super(), me(
1189
1190
  this,
1190
1191
  e,
1191
- sn,
1192
- cn,
1192
+ un,
1193
+ on,
1193
1194
  he,
1194
1195
  {
1195
1196
  class: 2,
@@ -1221,25 +1222,26 @@ class un extends _e {
1221
1222
  trackProximity: 37,
1222
1223
  types: 38,
1223
1224
  zoom: 39,
1224
- focus: 40,
1225
- blur: 41,
1226
- setQuery: 42
1225
+ fetchParameters: 40,
1226
+ focus: 41,
1227
+ blur: 42,
1228
+ setQuery: 43
1227
1229
  },
1228
1230
  null,
1229
1231
  [-1, -1, -1]
1230
1232
  );
1231
1233
  }
1232
1234
  get focus() {
1233
- return this.$$.ctx[40];
1235
+ return this.$$.ctx[41];
1234
1236
  }
1235
1237
  get blur() {
1236
- return this.$$.ctx[41];
1238
+ return this.$$.ctx[42];
1237
1239
  }
1238
1240
  get setQuery() {
1239
- return this.$$.ctx[42];
1241
+ return this.$$.ctx[43];
1240
1242
  }
1241
1243
  }
1242
- const tt = [
1244
+ const nt = [
1243
1245
  "featuresListed",
1244
1246
  "featuresMarked",
1245
1247
  "optionsVisibilityChange",
@@ -1248,7 +1250,7 @@ const tt = [
1248
1250
  "response",
1249
1251
  "reversetoggle",
1250
1252
  "select"
1251
- ], fn = [
1253
+ ], an = [
1252
1254
  "apiKey",
1253
1255
  "bbox",
1254
1256
  "clearButtonTitle",
@@ -1275,29 +1277,29 @@ const tt = [
1275
1277
  "zoom",
1276
1278
  "mapController"
1277
1279
  ];
1278
- function nt(t) {
1280
+ function lt(t) {
1279
1281
  return "on" + t[0].toUpperCase() + t.slice(1);
1280
1282
  }
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(() => {
1283
+ const hn = Ct(function(e, n) {
1284
+ const l = qe(), c = qe(), u = { ...e };
1285
+ for (const i of nt)
1286
+ delete u[lt(i)];
1287
+ Ge(() => {
1286
1288
  if (!l.current)
1287
1289
  throw new Error();
1288
- const i = new un({
1290
+ const i = new fn({
1289
1291
  target: l.current,
1290
1292
  props: u
1291
1293
  });
1292
1294
  return c.current = i, () => i.$destroy();
1293
1295
  }, []);
1294
- for (const i of fn)
1295
- je(() => {
1296
+ for (const i of an)
1297
+ Ge(() => {
1296
1298
  c.current && e[i] !== void 0 && c.current.$set({ [i]: e[i] });
1297
1299
  }, [e[i]]);
1298
- for (const i of tt) {
1299
- const m = e[nt(i)];
1300
- je(() => {
1300
+ for (const i of nt) {
1301
+ const m = e[lt(i)];
1302
+ Ge(() => {
1301
1303
  var f;
1302
1304
  (f = c.current) == null || f.$on(
1303
1305
  i,
@@ -1307,7 +1309,7 @@ const dn = Tt(function(e, n) {
1307
1309
  );
1308
1310
  }, [m]);
1309
1311
  }
1310
- return Ct(n, () => ({
1312
+ return Rt(n, () => ({
1311
1313
  setQuery: (i, m = !0) => {
1312
1314
  var f;
1313
1315
  return (f = c.current) == null ? void 0 : f.setQuery(i, m);
@@ -1320,8 +1322,8 @@ const dn = Tt(function(e, n) {
1320
1322
  var i;
1321
1323
  return (i = c.current) == null ? void 0 : i.blur();
1322
1324
  }
1323
- })), Rt("div", { ref: l });
1325
+ })), Et("div", { ref: l });
1324
1326
  });
1325
1327
  export {
1326
- dn as GeocodingControl
1328
+ hn as GeocodingControl
1327
1329
  };