@maptiler/geocoding-control 0.0.91-git.896be4 → 0.0.91

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,206 +1,206 @@
1
- import { forwardRef as Wt, useRef as Xe, useEffect as Fe, useImperativeHandle as Nt, createElement as jt } from "react";
2
- function P() {
1
+ import { forwardRef as jt, useRef as Ye, useEffect as Ue, useImperativeHandle as Ft, createElement as Gt } from "react";
2
+ function B() {
3
3
  }
4
- function Gt(t, e) {
5
- for (const n in e)
6
- t[n] = e[n];
7
- return t;
4
+ function Ot(n, e) {
5
+ for (const t in e)
6
+ n[t] = e[t];
7
+ return n;
8
8
  }
9
- function ut(t) {
10
- return t();
9
+ function at(n) {
10
+ return n();
11
11
  }
12
- function Ye() {
12
+ function xe() {
13
13
  return /* @__PURE__ */ Object.create(null);
14
14
  }
15
- function ee(t) {
16
- t.forEach(ut);
15
+ function ee(n) {
16
+ n.forEach(at);
17
17
  }
18
- function at(t) {
19
- return typeof t == "function";
18
+ function dt(n) {
19
+ return typeof n == "function";
20
20
  }
21
- function he(t, e) {
22
- return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
21
+ function he(n, e) {
22
+ return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
23
23
  }
24
- let Be;
25
- function le(t, e) {
26
- return Be || (Be = document.createElement("a")), Be.href = e, t === Be.href;
24
+ let Se;
25
+ function le(n, e) {
26
+ return Se || (Se = document.createElement("a")), Se.href = e, n === Se.href;
27
27
  }
28
- function Ot(t) {
29
- return Object.keys(t).length === 0;
28
+ function Zt(n) {
29
+ return Object.keys(n).length === 0;
30
30
  }
31
- function Zt(t, e, n, r) {
32
- if (t) {
33
- const l = dt(t, e, n, r);
34
- return t[0](l);
31
+ function Ut(n, e, t, r) {
32
+ if (n) {
33
+ const l = ht(n, e, t, r);
34
+ return n[0](l);
35
35
  }
36
36
  }
37
- function dt(t, e, n, r) {
38
- return t[1] && r ? Gt(n.ctx.slice(), t[1](r(e))) : n.ctx;
37
+ function ht(n, e, t, r) {
38
+ return n[1] && r ? Ot(t.ctx.slice(), n[1](r(e))) : t.ctx;
39
39
  }
40
- function Ft(t, e, n, r) {
41
- if (t[2] && r) {
42
- const l = t[2](r(n));
40
+ function qt(n, e, t, r) {
41
+ if (n[2] && r) {
42
+ const l = n[2](r(t));
43
43
  if (e.dirty === void 0)
44
44
  return l;
45
45
  if (typeof l == "object") {
46
46
  const a = [], s = Math.max(e.dirty.length, l.length);
47
- for (let c = 0; c < s; c += 1)
48
- a[c] = e.dirty[c] | l[c];
47
+ for (let f = 0; f < s; f += 1)
48
+ a[f] = e.dirty[f] | l[f];
49
49
  return a;
50
50
  }
51
51
  return e.dirty | l;
52
52
  }
53
53
  return e.dirty;
54
54
  }
55
- function Ut(t, e, n, r, l, a) {
55
+ function Dt(n, e, t, r, l, a) {
56
56
  if (l) {
57
- const s = dt(e, n, r, a);
58
- t.p(s, l);
57
+ const s = ht(e, t, r, a);
58
+ n.p(s, l);
59
59
  }
60
60
  }
61
- function qt(t) {
62
- if (t.ctx.length > 32) {
63
- const e = [], n = t.ctx.length / 32;
64
- for (let r = 0; r < n; r++)
61
+ function Kt(n) {
62
+ if (n.ctx.length > 32) {
63
+ const e = [], t = n.ctx.length / 32;
64
+ for (let r = 0; r < t; r++)
65
65
  e[r] = -1;
66
66
  return e;
67
67
  }
68
68
  return -1;
69
69
  }
70
- function xe(t) {
71
- return t ?? "";
70
+ function $e(n) {
71
+ return n ?? "";
72
72
  }
73
- function v(t, e) {
74
- t.appendChild(e);
73
+ function v(n, e) {
74
+ n.appendChild(e);
75
75
  }
76
- function I(t, e, n) {
77
- t.insertBefore(e, n || null);
76
+ function W(n, e, t) {
77
+ n.insertBefore(e, t || null);
78
78
  }
79
- function S(t) {
80
- t.parentNode && t.parentNode.removeChild(t);
79
+ function P(n) {
80
+ n.parentNode && n.parentNode.removeChild(n);
81
81
  }
82
- function C(t) {
83
- return document.createElement(t);
82
+ function I(n) {
83
+ return document.createElement(n);
84
84
  }
85
- function ie(t) {
86
- return document.createElementNS("http://www.w3.org/2000/svg", t);
85
+ function ie(n) {
86
+ return document.createElementNS("http://www.w3.org/2000/svg", n);
87
87
  }
88
- function se(t) {
89
- return document.createTextNode(t);
88
+ function se(n) {
89
+ return document.createTextNode(n);
90
90
  }
91
91
  function V() {
92
92
  return se(" ");
93
93
  }
94
- function Dt() {
94
+ function Vt() {
95
95
  return se("");
96
96
  }
97
- function D(t, e, n, r) {
98
- return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
97
+ function D(n, e, t, r) {
98
+ return n.addEventListener(e, t, r), () => n.removeEventListener(e, t, r);
99
99
  }
100
- function Kt(t) {
100
+ function Ht(n) {
101
101
  return function(e) {
102
- return e.preventDefault(), t.call(this, e);
102
+ return e.preventDefault(), n.call(this, e);
103
103
  };
104
104
  }
105
- function o(t, e, n) {
106
- n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
105
+ function o(n, e, t) {
106
+ t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
107
107
  }
108
- function Vt(t) {
109
- return Array.from(t.childNodes);
108
+ function Qt(n) {
109
+ return Array.from(n.childNodes);
110
110
  }
111
- function Me(t, e) {
112
- e = "" + e, t.data !== e && (t.data = e);
111
+ function Me(n, e) {
112
+ e = "" + e, n.data !== e && (n.data = e);
113
113
  }
114
- function $e(t, e) {
115
- t.value = e ?? "";
114
+ function et(n, e) {
115
+ n.value = e ?? "";
116
116
  }
117
- function re(t, e, n) {
118
- t.classList[n ? "add" : "remove"](e);
117
+ function re(n, e, t) {
118
+ n.classList[t ? "add" : "remove"](e);
119
119
  }
120
- function Ht(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
120
+ function Jt(n, e, { bubbles: t = !1, cancelable: r = !1 } = {}) {
121
121
  const l = document.createEvent("CustomEvent");
122
- return l.initCustomEvent(t, n, r, e), l;
122
+ return l.initCustomEvent(n, t, r, e), l;
123
123
  }
124
- let Re;
125
- function Te(t) {
126
- Re = t;
124
+ let Ce;
125
+ function Te(n) {
126
+ Ce = n;
127
127
  }
128
- function ht() {
129
- if (!Re)
128
+ function mt() {
129
+ if (!Ce)
130
130
  throw new Error("Function called outside component initialization");
131
- return Re;
131
+ return Ce;
132
132
  }
133
- function Qt(t) {
134
- ht().$$.on_destroy.push(t);
133
+ function Xt(n) {
134
+ mt().$$.on_destroy.push(n);
135
135
  }
136
- function Jt() {
137
- const t = ht();
138
- return (e, n, { cancelable: r = !1 } = {}) => {
139
- const l = t.$$.callbacks[e];
136
+ function Yt() {
137
+ const n = mt();
138
+ return (e, t, { cancelable: r = !1 } = {}) => {
139
+ const l = n.$$.callbacks[e];
140
140
  if (l) {
141
- const a = Ht(e, n, { cancelable: r });
141
+ const a = Jt(e, t, { cancelable: r });
142
142
  return l.slice().forEach((s) => {
143
- s.call(t, a);
143
+ s.call(n, a);
144
144
  }), !a.defaultPrevented;
145
145
  }
146
146
  return !0;
147
147
  };
148
148
  }
149
- function et(t, e) {
150
- const n = t.$$.callbacks[e.type];
151
- n && n.slice().forEach((r) => r.call(this, e));
149
+ function tt(n, e) {
150
+ const t = n.$$.callbacks[e.type];
151
+ t && t.slice().forEach((r) => r.call(this, e));
152
152
  }
153
- const ke = [], qe = [];
153
+ const ke = [], De = [];
154
154
  let ve = [];
155
- const tt = [], Xt = /* @__PURE__ */ Promise.resolve();
156
- let De = !1;
157
- function Yt() {
158
- De || (De = !0, Xt.then(_t));
155
+ const nt = [], xt = /* @__PURE__ */ Promise.resolve();
156
+ let Ke = !1;
157
+ function $t() {
158
+ Ke || (Ke = !0, xt.then(_t));
159
159
  }
160
- function Ke(t) {
161
- ve.push(t);
160
+ function Ve(n) {
161
+ ve.push(n);
162
162
  }
163
- const Ue = /* @__PURE__ */ new Set();
163
+ const qe = /* @__PURE__ */ new Set();
164
164
  let we = 0;
165
165
  function _t() {
166
166
  if (we !== 0)
167
167
  return;
168
- const t = Re;
168
+ const n = Ce;
169
169
  do {
170
170
  try {
171
171
  for (; we < ke.length; ) {
172
172
  const e = ke[we];
173
- we++, Te(e), xt(e.$$);
173
+ we++, Te(e), en(e.$$);
174
174
  }
175
175
  } catch (e) {
176
176
  throw ke.length = 0, we = 0, e;
177
177
  }
178
- for (Te(null), ke.length = 0, we = 0; qe.length; )
179
- qe.pop()();
178
+ for (Te(null), ke.length = 0, we = 0; De.length; )
179
+ De.pop()();
180
180
  for (let e = 0; e < ve.length; e += 1) {
181
- const n = ve[e];
182
- Ue.has(n) || (Ue.add(n), n());
181
+ const t = ve[e];
182
+ qe.has(t) || (qe.add(t), t());
183
183
  }
184
184
  ve.length = 0;
185
185
  } while (ke.length);
186
- for (; tt.length; )
187
- tt.pop()();
188
- De = !1, Ue.clear(), Te(t);
189
- }
190
- function xt(t) {
191
- if (t.fragment !== null) {
192
- t.update(), ee(t.before_update);
193
- const e = t.dirty;
194
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
186
+ for (; nt.length; )
187
+ nt.pop()();
188
+ Ke = !1, qe.clear(), Te(n);
189
+ }
190
+ function en(n) {
191
+ if (n.fragment !== null) {
192
+ n.update(), ee(n.before_update);
193
+ const e = n.dirty;
194
+ n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Ve);
195
195
  }
196
196
  }
197
- function $t(t) {
198
- const e = [], n = [];
199
- ve.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ve = e;
197
+ function tn(n) {
198
+ const e = [], t = [];
199
+ ve.forEach((r) => n.indexOf(r) === -1 ? e.push(r) : t.push(r)), t.forEach((r) => r()), ve = e;
200
200
  }
201
- const Pe = /* @__PURE__ */ new Set();
201
+ const ze = /* @__PURE__ */ new Set();
202
202
  let de;
203
- function Se() {
203
+ function Be() {
204
204
  de = {
205
205
  r: 0,
206
206
  c: [],
@@ -208,82 +208,82 @@ function Se() {
208
208
  // parent group
209
209
  };
210
210
  }
211
- function Ae() {
211
+ function Pe() {
212
212
  de.r || ee(de.c), de = de.p;
213
213
  }
214
- function G(t, e) {
215
- t && t.i && (Pe.delete(t), t.i(e));
214
+ function F(n, e) {
215
+ n && n.i && (ze.delete(n), n.i(e));
216
216
  }
217
- function Z(t, e, n, r) {
218
- if (t && t.o) {
219
- if (Pe.has(t))
217
+ function Z(n, e, t, r) {
218
+ if (n && n.o) {
219
+ if (ze.has(n))
220
220
  return;
221
- Pe.add(t), de.c.push(() => {
222
- Pe.delete(t), r && (n && t.d(1), r());
223
- }), t.o(e);
221
+ ze.add(n), de.c.push(() => {
222
+ ze.delete(n), r && (t && n.d(1), r());
223
+ }), n.o(e);
224
224
  } else
225
225
  r && r();
226
226
  }
227
- function en(t, e) {
228
- Z(t, 1, 1, () => {
229
- e.delete(t.key);
227
+ function nn(n, e) {
228
+ Z(n, 1, 1, () => {
229
+ e.delete(n.key);
230
230
  });
231
231
  }
232
- function tn(t, e, n, r, l, a, s, c, d, f, _, k) {
233
- let b = t.length, L = a.length, z = b;
234
- const p = {};
235
- for (; z--; )
236
- p[t[z].key] = z;
237
- const g = [], W = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), O = [];
238
- for (z = L; z--; ) {
239
- const T = k(l, a, z), M = n(T);
240
- let m = s.get(M);
241
- m ? r && O.push(() => m.p(T, e)) : (m = f(M, T), m.c()), W.set(M, g[z] = m), M in p && B.set(M, Math.abs(z - p[M]));
232
+ function rn(n, e, t, r, l, a, s, f, d, c, m, b) {
233
+ let y = n.length, E = a.length, S = y;
234
+ const T = {};
235
+ for (; S--; )
236
+ T[n[S].key] = S;
237
+ const M = [], k = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), G = [];
238
+ for (S = E; S--; ) {
239
+ const C = b(l, a, S), R = t(C);
240
+ let _ = s.get(R);
241
+ _ ? r && G.push(() => _.p(C, e)) : (_ = c(R, C), _.c()), k.set(R, M[S] = _), R in T && z.set(R, Math.abs(S - T[R]));
242
242
  }
243
- const F = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
244
- function y(T) {
245
- G(T, 1), T.m(c, _), s.set(T.key, T), _ = T.first, L--;
243
+ const O = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
244
+ function g(C) {
245
+ F(C, 1), C.m(f, m), s.set(C.key, C), m = C.first, E--;
246
246
  }
247
- for (; b && L; ) {
248
- const T = g[L - 1], M = t[b - 1], m = T.key, w = M.key;
249
- T === M ? (_ = T.first, b--, L--) : W.has(w) ? !s.has(m) || F.has(m) ? y(T) : h.has(w) ? b-- : B.get(m) > B.get(w) ? (h.add(m), y(T)) : (F.add(w), b--) : (d(M, s), b--);
247
+ for (; y && E; ) {
248
+ const C = M[E - 1], R = n[y - 1], _ = C.key, w = R.key;
249
+ C === R ? (m = C.first, y--, E--) : k.has(w) ? !s.has(_) || O.has(_) ? g(C) : h.has(w) ? y-- : z.get(_) > z.get(w) ? (h.add(_), g(C)) : (O.add(w), y--) : (d(R, s), y--);
250
250
  }
251
- for (; b--; ) {
252
- const T = t[b];
253
- W.has(T.key) || d(T, s);
251
+ for (; y--; ) {
252
+ const C = n[y];
253
+ k.has(C.key) || d(C, s);
254
254
  }
255
- for (; L; )
256
- y(g[L - 1]);
257
- return ee(O), g;
258
- }
259
- function oe(t) {
260
- t && t.c();
261
- }
262
- function x(t, e, n, r) {
263
- const { fragment: l, after_update: a } = t.$$;
264
- l && l.m(e, n), r || Ke(() => {
265
- const s = t.$$.on_mount.map(ut).filter(at);
266
- t.$$.on_destroy ? t.$$.on_destroy.push(...s) : ee(s), t.$$.on_mount = [];
267
- }), a.forEach(Ke);
268
- }
269
- function $(t, e) {
270
- const n = t.$$;
271
- n.fragment !== null && ($t(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
272
- }
273
- function nn(t, e) {
274
- t.$$.dirty[0] === -1 && (ke.push(t), Yt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
275
- }
276
- function _e(t, e, n, r, l, a, s, c = [-1]) {
277
- const d = Re;
278
- Te(t);
279
- const f = t.$$ = {
255
+ for (; E; )
256
+ g(M[E - 1]);
257
+ return ee(G), M;
258
+ }
259
+ function oe(n) {
260
+ n && n.c();
261
+ }
262
+ function x(n, e, t, r) {
263
+ const { fragment: l, after_update: a } = n.$$;
264
+ l && l.m(e, t), r || Ve(() => {
265
+ const s = n.$$.on_mount.map(at).filter(dt);
266
+ n.$$.on_destroy ? n.$$.on_destroy.push(...s) : ee(s), n.$$.on_mount = [];
267
+ }), a.forEach(Ve);
268
+ }
269
+ function $(n, e) {
270
+ const t = n.$$;
271
+ t.fragment !== null && (tn(t.after_update), ee(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
272
+ }
273
+ function ln(n, e) {
274
+ n.$$.dirty[0] === -1 && (ke.push(n), $t(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
275
+ }
276
+ function me(n, e, t, r, l, a, s, f = [-1]) {
277
+ const d = Ce;
278
+ Te(n);
279
+ const c = n.$$ = {
280
280
  fragment: null,
281
281
  ctx: [],
282
282
  // state
283
283
  props: a,
284
- update: P,
284
+ update: B,
285
285
  not_equal: l,
286
- bound: Ye(),
286
+ bound: xe(),
287
287
  // lifecycle
288
288
  on_mount: [],
289
289
  on_destroy: [],
@@ -292,279 +292,279 @@ function _e(t, e, n, r, l, a, s, c = [-1]) {
292
292
  after_update: [],
293
293
  context: new Map(e.context || (d ? d.$$.context : [])),
294
294
  // everything else
295
- callbacks: Ye(),
296
- dirty: c,
295
+ callbacks: xe(),
296
+ dirty: f,
297
297
  skip_bound: !1,
298
298
  root: e.target || d.$$.root
299
299
  };
300
- s && s(f.root);
301
- let _ = !1;
302
- if (f.ctx = n ? n(t, e.props || {}, (k, b, ...L) => {
303
- const z = L.length ? L[0] : b;
304
- return f.ctx && l(f.ctx[k], f.ctx[k] = z) && (!f.skip_bound && f.bound[k] && f.bound[k](z), _ && nn(t, k)), b;
305
- }) : [], f.update(), _ = !0, ee(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
300
+ s && s(c.root);
301
+ let m = !1;
302
+ if (c.ctx = t ? t(n, e.props || {}, (b, y, ...E) => {
303
+ const S = E.length ? E[0] : y;
304
+ return c.ctx && l(c.ctx[b], c.ctx[b] = S) && (!c.skip_bound && c.bound[b] && c.bound[b](S), m && ln(n, b)), y;
305
+ }) : [], c.update(), m = !0, ee(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
306
306
  if (e.hydrate) {
307
- const k = Vt(e.target);
308
- f.fragment && f.fragment.l(k), k.forEach(S);
307
+ const b = Qt(e.target);
308
+ c.fragment && c.fragment.l(b), b.forEach(P);
309
309
  } else
310
- f.fragment && f.fragment.c();
311
- e.intro && G(t.$$.fragment), x(t, e.target, e.anchor, e.customElement), _t();
310
+ c.fragment && c.fragment.c();
311
+ e.intro && F(n.$$.fragment), x(n, e.target, e.anchor, e.customElement), _t();
312
312
  }
313
313
  Te(d);
314
314
  }
315
- class me {
315
+ class _e {
316
316
  $destroy() {
317
- $(this, 1), this.$destroy = P;
317
+ $(this, 1), this.$destroy = B;
318
318
  }
319
- $on(e, n) {
320
- if (!at(n))
321
- return P;
319
+ $on(e, t) {
320
+ if (!dt(t))
321
+ return B;
322
322
  const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
323
- return r.push(n), () => {
324
- const l = r.indexOf(n);
323
+ return r.push(t), () => {
324
+ const l = r.indexOf(t);
325
325
  l !== -1 && r.splice(l, 1);
326
326
  };
327
327
  }
328
328
  $set(e) {
329
- this.$$set && !Ot(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
329
+ this.$$set && !Zt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
330
330
  }
331
331
  }
332
- function rn(t) {
333
- let e, n;
332
+ function sn(n) {
333
+ let e, t;
334
334
  return {
335
335
  c() {
336
- e = ie("svg"), n = ie("path"), o(n, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), o(e, "viewBox", "0 0 14 14"), o(e, "width", "13"), o(e, "height", "13"), o(e, "class", "svelte-en2qvf");
336
+ e = ie("svg"), t = ie("path"), o(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), o(e, "viewBox", "0 0 14 14"), o(e, "width", "13"), o(e, "height", "13"), o(e, "class", "svelte-en2qvf");
337
337
  },
338
338
  m(r, l) {
339
- I(r, e, l), v(e, n);
339
+ W(r, e, l), v(e, t);
340
340
  },
341
- p: P,
342
- i: P,
343
- o: P,
341
+ p: B,
342
+ i: B,
343
+ o: B,
344
344
  d(r) {
345
- r && S(e);
345
+ r && P(e);
346
346
  }
347
347
  };
348
348
  }
349
- class mt extends me {
349
+ class gt extends _e {
350
350
  constructor(e) {
351
- super(), _e(this, e, null, rn, he, {});
351
+ super(), me(this, e, null, sn, he, {});
352
352
  }
353
353
  }
354
- function ln(t) {
355
- let e, n;
354
+ function on(n) {
355
+ let e, t;
356
356
  return {
357
357
  c() {
358
- e = ie("svg"), n = ie("path"), o(n, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), o(e, "viewBox", "0 0 30 30"), o(e, "fill", "none"), o(e, "xmlns", "http://www.w3.org/2000/svg"), o(e, "class", "svelte-d2loi5");
358
+ e = ie("svg"), t = ie("path"), o(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), o(e, "viewBox", "0 0 30 30"), o(e, "fill", "none"), o(e, "xmlns", "http://www.w3.org/2000/svg"), o(e, "class", "svelte-d2loi5");
359
359
  },
360
360
  m(r, l) {
361
- I(r, e, l), v(e, n);
361
+ W(r, e, l), v(e, t);
362
362
  },
363
- p: P,
364
- i: P,
365
- o: P,
363
+ p: B,
364
+ i: B,
365
+ o: B,
366
366
  d(r) {
367
- r && S(e);
367
+ r && P(e);
368
368
  }
369
369
  };
370
370
  }
371
- class gt extends me {
371
+ class yt extends _e {
372
372
  constructor(e) {
373
- super(), _e(this, e, null, ln, he, {});
373
+ super(), me(this, e, null, on, he, {});
374
374
  }
375
375
  }
376
- function sn(t) {
377
- let e, n;
376
+ function cn(n) {
377
+ let e, t;
378
378
  return {
379
379
  c() {
380
- e = C("img"), le(e.src, n = "/icons/area.svg") || o(e, "src", n), o(
380
+ e = I("img"), le(e.src, t = "/icons/area.svg") || o(e, "src", t), o(
381
381
  e,
382
382
  "alt",
383
383
  /*placeType*/
384
- t[4]
384
+ n[5]
385
385
  ), o(e, "class", "svelte-ltkwvy");
386
386
  },
387
387
  m(r, l) {
388
- I(r, e, l);
388
+ W(r, e, l);
389
389
  },
390
390
  p(r, l) {
391
391
  l & /*placeType*/
392
- 16 && o(
392
+ 32 && o(
393
393
  e,
394
394
  "alt",
395
395
  /*placeType*/
396
- r[4]
396
+ r[5]
397
397
  );
398
398
  },
399
399
  d(r) {
400
- r && S(e);
400
+ r && P(e);
401
401
  }
402
402
  };
403
403
  }
404
- function on(t) {
405
- let e, n;
404
+ function fn(n) {
405
+ let e, t;
406
406
  return {
407
407
  c() {
408
- e = C("img"), le(e.src, n = "/icons/poi.svg") || o(e, "src", n), o(
408
+ e = I("img"), le(e.src, t = "/icons/poi.svg") || o(e, "src", t), o(
409
409
  e,
410
410
  "alt",
411
411
  /*placeType*/
412
- t[4]
412
+ n[5]
413
413
  ), o(e, "class", "svelte-ltkwvy");
414
414
  },
415
415
  m(r, l) {
416
- I(r, e, l);
416
+ W(r, e, l);
417
417
  },
418
418
  p(r, l) {
419
419
  l & /*placeType*/
420
- 16 && o(
420
+ 32 && o(
421
421
  e,
422
422
  "alt",
423
423
  /*placeType*/
424
- r[4]
424
+ r[5]
425
425
  );
426
426
  },
427
427
  d(r) {
428
- r && S(e);
428
+ r && P(e);
429
429
  }
430
430
  };
431
431
  }
432
- function cn(t) {
433
- let e, n;
432
+ function un(n) {
433
+ let e, t;
434
434
  return {
435
435
  c() {
436
- e = C("img"), le(e.src, n = "/icons/postal_code.svg") || o(e, "src", n), o(
436
+ e = I("img"), le(e.src, t = "/icons/postal_code.svg") || o(e, "src", t), o(
437
437
  e,
438
438
  "alt",
439
439
  /*placeType*/
440
- t[4]
440
+ n[5]
441
441
  ), o(e, "class", "svelte-ltkwvy");
442
442
  },
443
443
  m(r, l) {
444
- I(r, e, l);
444
+ W(r, e, l);
445
445
  },
446
446
  p(r, l) {
447
447
  l & /*placeType*/
448
- 16 && o(
448
+ 32 && o(
449
449
  e,
450
450
  "alt",
451
451
  /*placeType*/
452
- r[4]
452
+ r[5]
453
453
  );
454
454
  },
455
455
  d(r) {
456
- r && S(e);
456
+ r && P(e);
457
457
  }
458
458
  };
459
459
  }
460
- function fn(t) {
461
- let e, n;
460
+ function an(n) {
461
+ let e, t;
462
462
  return {
463
463
  c() {
464
- e = C("img"), le(e.src, n = "/icons/street.svg") || o(e, "src", n), o(
464
+ e = I("img"), le(e.src, t = "/icons/street.svg") || o(e, "src", t), o(
465
465
  e,
466
466
  "alt",
467
467
  /*placeType*/
468
- t[4]
468
+ n[5]
469
469
  ), o(e, "class", "svelte-ltkwvy");
470
470
  },
471
471
  m(r, l) {
472
- I(r, e, l);
472
+ W(r, e, l);
473
473
  },
474
474
  p(r, l) {
475
475
  l & /*placeType*/
476
- 16 && o(
476
+ 32 && o(
477
477
  e,
478
478
  "alt",
479
479
  /*placeType*/
480
- r[4]
480
+ r[5]
481
481
  );
482
482
  },
483
483
  d(r) {
484
- r && S(e);
484
+ r && P(e);
485
485
  }
486
486
  };
487
487
  }
488
- function un(t) {
489
- let e, n;
488
+ function dn(n) {
489
+ let e, t;
490
490
  return {
491
491
  c() {
492
- e = C("img"), le(e.src, n = "/icons/road.svg") || o(e, "src", n), o(
492
+ e = I("img"), le(e.src, t = "/icons/road.svg") || o(e, "src", t), o(
493
493
  e,
494
494
  "alt",
495
495
  /*placeType*/
496
- t[4]
496
+ n[5]
497
497
  ), o(e, "class", "svelte-ltkwvy");
498
498
  },
499
499
  m(r, l) {
500
- I(r, e, l);
500
+ W(r, e, l);
501
501
  },
502
502
  p(r, l) {
503
503
  l & /*placeType*/
504
- 16 && o(
504
+ 32 && o(
505
505
  e,
506
506
  "alt",
507
507
  /*placeType*/
508
- r[4]
508
+ r[5]
509
509
  );
510
510
  },
511
511
  d(r) {
512
- r && S(e);
512
+ r && P(e);
513
513
  }
514
514
  };
515
515
  }
516
- function an(t) {
517
- let e, n;
516
+ function hn(n) {
517
+ let e, t;
518
518
  return {
519
519
  c() {
520
- e = C("img"), le(e.src, n = "/icons/housenumber.svg") || o(e, "src", n), o(
520
+ e = I("img"), le(e.src, t = "/icons/housenumber.svg") || o(e, "src", t), o(
521
521
  e,
522
522
  "alt",
523
523
  /*placeType*/
524
- t[4]
524
+ n[5]
525
525
  ), o(e, "class", "svelte-ltkwvy");
526
526
  },
527
527
  m(r, l) {
528
- I(r, e, l);
528
+ W(r, e, l);
529
529
  },
530
530
  p(r, l) {
531
531
  l & /*placeType*/
532
- 16 && o(
532
+ 32 && o(
533
533
  e,
534
534
  "alt",
535
535
  /*placeType*/
536
- r[4]
536
+ r[5]
537
537
  );
538
538
  },
539
539
  d(r) {
540
- r && S(e);
540
+ r && P(e);
541
541
  }
542
542
  };
543
543
  }
544
- function dn(t) {
545
- let e, n, r, l;
544
+ function mn(n) {
545
+ let e, t, r, l;
546
546
  return {
547
547
  c() {
548
- e = C("img"), le(e.src, n = /*imageUrl*/
549
- t[5]) || o(e, "src", n), o(
548
+ e = I("img"), le(e.src, t = /*imageUrl*/
549
+ n[4]) || o(e, "src", t), o(
550
550
  e,
551
551
  "alt",
552
552
  /*category*/
553
- t[3]
553
+ n[3]
554
554
  ), o(e, "class", "svelte-ltkwvy");
555
555
  },
556
556
  m(a, s) {
557
- I(a, e, s), r || (l = D(
557
+ W(a, e, s), r || (l = D(
558
558
  e,
559
559
  "error",
560
560
  /*error_handler*/
561
- t[10]
561
+ n[11]
562
562
  ), r = !0);
563
563
  },
564
564
  p(a, s) {
565
565
  s & /*imageUrl*/
566
- 32 && !le(e.src, n = /*imageUrl*/
567
- a[5]) && o(e, "src", n), s & /*category*/
566
+ 16 && !le(e.src, t = /*imageUrl*/
567
+ a[4]) && o(e, "src", t), s & /*category*/
568
568
  8 && o(
569
569
  e,
570
570
  "alt",
@@ -573,308 +573,314 @@ function dn(t) {
573
573
  );
574
574
  },
575
575
  d(a) {
576
- a && S(e), r = !1, l();
576
+ a && P(e), r = !1, l();
577
577
  }
578
578
  };
579
579
  }
580
- function nt(t) {
581
- let e, n;
580
+ function rt(n) {
581
+ let e, t;
582
582
  return {
583
583
  c() {
584
- e = C("span"), n = se(
584
+ e = I("span"), t = se(
585
585
  /*placeType*/
586
- t[4]
586
+ n[5]
587
587
  ), o(e, "class", "secondary svelte-ltkwvy");
588
588
  },
589
589
  m(r, l) {
590
- I(r, e, l), v(e, n);
590
+ W(r, e, l), v(e, t);
591
591
  },
592
592
  p(r, l) {
593
593
  l & /*placeType*/
594
- 16 && Me(
595
- n,
594
+ 32 && Me(
595
+ t,
596
596
  /*placeType*/
597
- r[4]
597
+ r[5]
598
598
  );
599
599
  },
600
600
  d(r) {
601
- r && S(e);
601
+ r && P(e);
602
602
  }
603
603
  };
604
604
  }
605
- function hn(t) {
606
- var T, M;
607
- let e, n, r, l, a, s, c, d, f = (
605
+ function _n(n) {
606
+ var C, R;
607
+ let e, t, r, l, a, s, f, d, c = (
608
608
  /*feature*/
609
- t[0].place_name.replace(/,.*/, "") + ""
610
- ), _, k, b = (
609
+ n[0].place_name.replace(/,.*/, "") + ""
610
+ ), m, b, y = (
611
611
  /*showPlaceType*/
612
- t[2] === "always" || /*showPlaceType*/
613
- t[2] && !/*feature*/
614
- t[0].address && /*feature*/
615
- ((T = t[0].properties) == null ? void 0 : T.kind) !== "road" && /*feature*/
616
- ((M = t[0].properties) == null ? void 0 : M.kind) !== "road_relation" && !/*feature*/
617
- t[0].id.startsWith("address.") && !/*feature*/
618
- t[0].id.startsWith("postal_code.") && (!/*feature*/
619
- t[0].id.startsWith("poi.") || !/*imageUrl*/
620
- t[5])
621
- ), L, z, p = (
612
+ n[2] === "always" || /*showPlaceType*/
613
+ n[2] && !/*feature*/
614
+ n[0].address && /*feature*/
615
+ ((C = n[0].properties) == null ? void 0 : C.kind) !== "road" && /*feature*/
616
+ ((R = n[0].properties) == null ? void 0 : R.kind) !== "road_relation" && !/*feature*/
617
+ n[0].id.startsWith("address.") && !/*feature*/
618
+ n[0].id.startsWith("postal_code.") && (!/*feature*/
619
+ n[0].id.startsWith("poi.") || !/*imageUrl*/
620
+ n[4])
621
+ ), E, S, T = (
622
622
  /*feature*/
623
- t[0].place_name.replace(/[^,]*,?\s*/, "") + ""
624
- ), g, W, B;
625
- function O(m, w) {
623
+ n[0].place_name.replace(/[^,]*,?\s*/, "") + ""
624
+ ), M, k, z;
625
+ function G(_, w) {
626
626
  var H, u;
627
627
  return w & /*feature*/
628
- 1 && (n = null), w & /*feature*/
628
+ 1 && (t = null), w & /*feature*/
629
629
  1 && (r = null), w & /*feature*/
630
630
  1 && (l = null), /*imageUrl*/
631
- m[5] ? dn : (
631
+ _[4] ? mn : (
632
632
  /*feature*/
633
- m[0].address ? an : (
633
+ _[0].address ? hn : (
634
634
  /*feature*/
635
- ((H = m[0].properties) == null ? void 0 : H.kind) === "road" || /*feature*/
636
- ((u = m[0].properties) == null ? void 0 : u.kind) === "road_relation" ? un : (n == null && (n = !!/*feature*/
637
- m[0].id.startsWith("address.")), n ? fn : (r == null && (r = !!/*feature*/
638
- m[0].id.startsWith("postal_code.")), r ? cn : (l == null && (l = !!/*feature*/
639
- m[0].id.startsWith("poi.")), l ? on : sn)))
635
+ ((H = _[0].properties) == null ? void 0 : H.kind) === "road" || /*feature*/
636
+ ((u = _[0].properties) == null ? void 0 : u.kind) === "road_relation" ? dn : (t == null && (t = !!/*feature*/
637
+ _[0].id.startsWith("address.")), t ? an : (r == null && (r = !!/*feature*/
638
+ _[0].id.startsWith("postal_code.")), r ? un : (l == null && (l = !!/*feature*/
639
+ _[0].id.startsWith("poi.")), l ? fn : cn)))
640
640
  )
641
641
  );
642
642
  }
643
- let F = O(t, -1), h = F(t), y = b && nt(t);
643
+ let O = G(n, -1), h = O(n), g = y && rt(n);
644
644
  return {
645
645
  c() {
646
- e = C("li"), h.c(), a = V(), s = C("span"), c = C("span"), d = C("span"), _ = se(f), k = V(), y && y.c(), L = V(), z = C("span"), g = se(p), o(d, "class", "primary svelte-ltkwvy"), o(c, "class", "svelte-ltkwvy"), o(z, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
646
+ e = I("li"), h.c(), a = V(), s = I("span"), f = I("span"), d = I("span"), m = se(c), b = V(), g && g.c(), E = V(), S = I("span"), M = se(T), o(d, "class", "primary svelte-ltkwvy"), o(f, "class", "svelte-ltkwvy"), o(S, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
647
647
  e,
648
648
  "data-selected",
649
649
  /*selected*/
650
- t[1]
650
+ n[1]
651
651
  ), o(e, "class", "svelte-ltkwvy"), re(
652
652
  e,
653
653
  "selected",
654
654
  /*selected*/
655
- t[1]
655
+ n[1]
656
656
  );
657
657
  },
658
- m(m, w) {
659
- I(m, e, w), h.m(e, null), v(e, a), v(e, s), v(s, c), v(c, d), v(d, _), v(c, k), y && y.m(c, null), v(s, L), v(s, z), v(z, g), W || (B = [
658
+ m(_, w) {
659
+ W(_, e, w), h.m(e, null), v(e, a), v(e, s), v(s, f), v(f, d), v(d, m), v(f, b), g && g.m(f, null), v(s, E), v(s, S), v(S, M), k || (z = [
660
660
  D(
661
661
  e,
662
662
  "mouseenter",
663
663
  /*mouseenter_handler*/
664
- t[8]
664
+ n[9]
665
665
  ),
666
666
  D(
667
667
  e,
668
668
  "focus",
669
669
  /*focus_handler*/
670
- t[9]
670
+ n[10]
671
671
  )
672
- ], W = !0);
672
+ ], k = !0);
673
673
  },
674
- p(m, [w]) {
674
+ p(_, [w]) {
675
675
  var H, u;
676
- F === (F = O(m, w)) && h ? h.p(m, w) : (h.d(1), h = F(m), h && (h.c(), h.m(e, a))), w & /*feature*/
677
- 1 && f !== (f = /*feature*/
678
- m[0].place_name.replace(/,.*/, "") + "") && Me(_, f), w & /*showPlaceType, feature, imageUrl*/
679
- 37 && (b = /*showPlaceType*/
680
- m[2] === "always" || /*showPlaceType*/
681
- m[2] && !/*feature*/
682
- m[0].address && /*feature*/
683
- ((H = m[0].properties) == null ? void 0 : H.kind) !== "road" && /*feature*/
684
- ((u = m[0].properties) == null ? void 0 : u.kind) !== "road_relation" && !/*feature*/
685
- m[0].id.startsWith("address.") && !/*feature*/
686
- m[0].id.startsWith("postal_code.") && (!/*feature*/
687
- m[0].id.startsWith("poi.") || !/*imageUrl*/
688
- m[5])), b ? y ? y.p(m, w) : (y = nt(m), y.c(), y.m(c, null)) : y && (y.d(1), y = null), w & /*feature*/
689
- 1 && p !== (p = /*feature*/
690
- m[0].place_name.replace(/[^,]*,?\s*/, "") + "") && Me(g, p), w & /*selected*/
676
+ O === (O = G(_, w)) && h ? h.p(_, w) : (h.d(1), h = O(_), h && (h.c(), h.m(e, a))), w & /*feature*/
677
+ 1 && c !== (c = /*feature*/
678
+ _[0].place_name.replace(/,.*/, "") + "") && Me(m, c), w & /*showPlaceType, feature, imageUrl*/
679
+ 21 && (y = /*showPlaceType*/
680
+ _[2] === "always" || /*showPlaceType*/
681
+ _[2] && !/*feature*/
682
+ _[0].address && /*feature*/
683
+ ((H = _[0].properties) == null ? void 0 : H.kind) !== "road" && /*feature*/
684
+ ((u = _[0].properties) == null ? void 0 : u.kind) !== "road_relation" && !/*feature*/
685
+ _[0].id.startsWith("address.") && !/*feature*/
686
+ _[0].id.startsWith("postal_code.") && (!/*feature*/
687
+ _[0].id.startsWith("poi.") || !/*imageUrl*/
688
+ _[4])), y ? g ? g.p(_, w) : (g = rt(_), g.c(), g.m(f, null)) : g && (g.d(1), g = null), w & /*feature*/
689
+ 1 && T !== (T = /*feature*/
690
+ _[0].place_name.replace(/[^,]*,?\s*/, "") + "") && Me(M, T), w & /*selected*/
691
691
  2 && o(
692
692
  e,
693
693
  "data-selected",
694
694
  /*selected*/
695
- m[1]
695
+ _[1]
696
696
  ), w & /*selected*/
697
697
  2 && re(
698
698
  e,
699
699
  "selected",
700
700
  /*selected*/
701
- m[1]
701
+ _[1]
702
702
  );
703
703
  },
704
- i: P,
705
- o: P,
706
- d(m) {
707
- m && S(e), h.d(), y && y.d(), W = !1, ee(B);
704
+ i: B,
705
+ o: B,
706
+ d(_) {
707
+ _ && P(e), h.d(), g && g.d(), k = !1, ee(z);
708
708
  }
709
709
  };
710
710
  }
711
- function _n(t, e, n) {
712
- var p;
713
- let r, l, a, s, { feature: c } = e, { selected: d = !1 } = e, { showPlaceType: f } = e;
714
- const _ = (p = c.properties) == null ? void 0 : p.categories;
715
- function k(g) {
716
- r > -1 ? n(7, r--, r) : g.style.visibility = "hidden";
711
+ function gn(n, e, t) {
712
+ var M;
713
+ let r, l, { feature: a } = e, { selected: s = !1 } = e, { showPlaceType: f } = e, { missingIconsCache: d } = e;
714
+ const c = (M = a.properties) == null ? void 0 : M.categories;
715
+ let m, b;
716
+ function y(k) {
717
+ b && d.add(b), t(8, r--, r);
717
718
  }
718
- function b(g) {
719
- et.call(this, t, g);
719
+ function E(k) {
720
+ tt.call(this, n, k);
720
721
  }
721
- function L(g) {
722
- et.call(this, t, g);
722
+ function S(k) {
723
+ tt.call(this, n, k);
723
724
  }
724
- const z = (g) => k(g.currentTarget);
725
- return t.$$set = (g) => {
726
- "feature" in g && n(0, c = g.feature), "selected" in g && n(1, d = g.selected), "showPlaceType" in g && n(2, f = g.showPlaceType);
727
- }, t.$$.update = () => {
728
- var g, W, B, O;
729
- t.$$.dirty & /*index*/
730
- 128 && n(3, l = _ == null ? void 0 : _[r]), t.$$.dirty & /*category*/
731
- 8 && n(5, a = l ? `/icons/${l.replace(/ /g, "_")}.svg` : void 0), t.$$.dirty & /*feature*/
732
- 1 && n(4, s = c.id.startsWith("poi.") ? (W = (g = c.properties) == null ? void 0 : g.categories) == null ? void 0 : W.join(", ") : ((O = (B = c.properties) == null ? void 0 : B.place_type_name) == null ? void 0 : O[0]) ?? c.place_type[0]);
733
- }, n(7, r = ((_ == null ? void 0 : _.length) ?? 0) - 1), [
734
- c,
735
- d,
725
+ const T = (k) => y(k.currentTarget);
726
+ return n.$$set = (k) => {
727
+ "feature" in k && t(0, a = k.feature), "selected" in k && t(1, s = k.selected), "showPlaceType" in k && t(2, f = k.showPlaceType), "missingIconsCache" in k && t(7, d = k.missingIconsCache);
728
+ }, n.$$.update = () => {
729
+ var k, z, G, O;
730
+ if (n.$$.dirty & /*index, category, imageUrl, missingIconsCache*/
731
+ 408)
732
+ do
733
+ t(8, r--, r), t(3, m = c == null ? void 0 : c[r]), t(4, b = m ? `/icons/${m.replace(/ /g, "_")}.svg` : void 0);
734
+ while (r > -1 && (!b || d.has(b)));
735
+ n.$$.dirty & /*feature*/
736
+ 1 && t(5, l = a.id.startsWith("poi.") ? (z = (k = a.properties) == null ? void 0 : k.categories) == null ? void 0 : z.join(", ") : ((O = (G = a.properties) == null ? void 0 : G.place_type_name) == null ? void 0 : O[0]) ?? a.place_type[0]);
737
+ }, t(8, r = (c == null ? void 0 : c.length) ?? 0), [
738
+ a,
739
+ s,
736
740
  f,
741
+ m,
742
+ b,
737
743
  l,
738
- s,
739
- a,
740
- k,
744
+ y,
745
+ d,
741
746
  r,
742
- b,
743
- L,
744
- z
747
+ E,
748
+ S,
749
+ T
745
750
  ];
746
751
  }
747
- class mn extends me {
752
+ class yn extends _e {
748
753
  constructor(e) {
749
- super(), _e(this, e, _n, hn, he, {
754
+ super(), me(this, e, gn, _n, he, {
750
755
  feature: 0,
751
756
  selected: 1,
752
- showPlaceType: 2
757
+ showPlaceType: 2,
758
+ missingIconsCache: 7
753
759
  });
754
760
  }
755
761
  }
756
- function gn(t) {
762
+ function bn(n) {
757
763
  let e;
758
764
  return {
759
765
  c() {
760
- e = C("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");
766
+ e = I("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");
761
767
  },
762
- m(n, r) {
763
- I(n, e, r);
768
+ m(t, r) {
769
+ W(t, e, r);
764
770
  },
765
- p: P,
766
- i: P,
767
- o: P,
768
- d(n) {
769
- n && S(e);
771
+ p: B,
772
+ i: B,
773
+ o: B,
774
+ d(t) {
775
+ t && P(e);
770
776
  }
771
777
  };
772
778
  }
773
- class yn extends me {
779
+ class wn extends _e {
774
780
  constructor(e) {
775
- super(), _e(this, e, null, gn, he, {});
781
+ super(), me(this, e, null, bn, he, {});
776
782
  }
777
783
  }
778
- function bn(t) {
779
- let e, n;
784
+ function kn(n) {
785
+ let e, t;
780
786
  return {
781
787
  c() {
782
- e = ie("svg"), n = ie("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");
788
+ e = ie("svg"), t = ie("path"), o(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), o(e, "viewBox", "0 0 60.006 21.412"), o(e, "width", "14"), o(e, "height", "20"), o(e, "class", "svelte-en2qvf");
783
789
  },
784
790
  m(r, l) {
785
- I(r, e, l), v(e, n);
791
+ W(r, e, l), v(e, t);
786
792
  },
787
- p: P,
788
- i: P,
789
- o: P,
793
+ p: B,
794
+ i: B,
795
+ o: B,
790
796
  d(r) {
791
- r && S(e);
797
+ r && P(e);
792
798
  }
793
799
  };
794
800
  }
795
- class wn extends me {
801
+ class vn extends _e {
796
802
  constructor(e) {
797
- super(), _e(this, e, null, bn, he, {});
803
+ super(), me(this, e, null, kn, he, {});
798
804
  }
799
805
  }
800
- function kn(t) {
801
- let e, n;
806
+ function pn(n) {
807
+ let e, t;
802
808
  return {
803
809
  c() {
804
- e = ie("svg"), n = ie("path"), o(n, "d", "M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"), o(e, "width", "14"), o(e, "height", "14"), o(e, "viewBox", "0 0 15 15"), o(e, "class", "svelte-en2qvf");
810
+ e = ie("svg"), t = ie("path"), o(t, "d", "M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"), o(e, "width", "14"), o(e, "height", "14"), o(e, "viewBox", "0 0 15 15"), o(e, "class", "svelte-en2qvf");
805
811
  },
806
812
  m(r, l) {
807
- I(r, e, l), v(e, n);
813
+ W(r, e, l), v(e, t);
808
814
  },
809
- p: P,
810
- i: P,
811
- o: P,
815
+ p: B,
816
+ i: B,
817
+ o: B,
812
818
  d(r) {
813
- r && S(e);
819
+ r && P(e);
814
820
  }
815
821
  };
816
822
  }
817
- class vn extends me {
823
+ class Tn extends _e {
818
824
  constructor(e) {
819
- super(), _e(this, e, null, kn, he, {});
825
+ super(), me(this, e, null, pn, he, {});
820
826
  }
821
827
  }
822
- function rt(t, e, n) {
823
- const r = t.slice();
824
- return r[72] = e[n], r[74] = n, r;
828
+ function lt(n, e, t) {
829
+ const r = n.slice();
830
+ return r[74] = e[t], r[76] = t, r;
825
831
  }
826
- function lt(t) {
827
- let e, n;
828
- return e = new yn({}), {
832
+ function it(n) {
833
+ let e, t;
834
+ return e = new wn({}), {
829
835
  c() {
830
836
  oe(e.$$.fragment);
831
837
  },
832
838
  m(r, l) {
833
- x(e, r, l), n = !0;
839
+ x(e, r, l), t = !0;
834
840
  },
835
841
  i(r) {
836
- n || (G(e.$$.fragment, r), n = !0);
842
+ t || (F(e.$$.fragment, r), t = !0);
837
843
  },
838
844
  o(r) {
839
- Z(e.$$.fragment, r), n = !1;
845
+ Z(e.$$.fragment, r), t = !1;
840
846
  },
841
847
  d(r) {
842
848
  $(e, r);
843
849
  }
844
850
  };
845
851
  }
846
- function it(t) {
847
- let e, n, r, l, a;
848
- return n = new wn({}), {
852
+ function st(n) {
853
+ let e, t, r, l, a;
854
+ return t = new vn({}), {
849
855
  c() {
850
- e = C("button"), oe(n.$$.fragment), o(e, "type", "button"), o(
856
+ e = I("button"), oe(t.$$.fragment), o(e, "type", "button"), o(
851
857
  e,
852
858
  "title",
853
859
  /*reverseButtonTitle*/
854
- t[9]
860
+ n[9]
855
861
  ), o(e, "class", "svelte-1r7dvt7"), re(
856
862
  e,
857
863
  "active",
858
864
  /*reverseActive*/
859
- t[0]
865
+ n[0]
860
866
  );
861
867
  },
862
- m(s, c) {
863
- I(s, e, c), x(n, e, null), r = !0, l || (a = D(
868
+ m(s, f) {
869
+ W(s, e, f), x(t, e, null), r = !0, l || (a = D(
864
870
  e,
865
871
  "click",
866
872
  /*click_handler_2*/
867
- t[58]
873
+ n[60]
868
874
  ), l = !0);
869
875
  },
870
- p(s, c) {
871
- (!r || c[0] & /*reverseButtonTitle*/
876
+ p(s, f) {
877
+ (!r || f[0] & /*reverseButtonTitle*/
872
878
  512) && o(
873
879
  e,
874
880
  "title",
875
881
  /*reverseButtonTitle*/
876
882
  s[9]
877
- ), (!r || c[0] & /*reverseActive*/
883
+ ), (!r || f[0] & /*reverseActive*/
878
884
  1) && re(
879
885
  e,
880
886
  "active",
@@ -883,189 +889,191 @@ function it(t) {
883
889
  );
884
890
  },
885
891
  i(s) {
886
- r || (G(n.$$.fragment, s), r = !0);
892
+ r || (F(t.$$.fragment, s), r = !0);
887
893
  },
888
894
  o(s) {
889
- Z(n.$$.fragment, s), r = !1;
895
+ Z(t.$$.fragment, s), r = !1;
890
896
  },
891
897
  d(s) {
892
- s && S(e), $(n), l = !1, a();
898
+ s && P(e), $(t), l = !1, a();
893
899
  }
894
900
  };
895
901
  }
896
- function pn(t) {
897
- let e, n = [], r = /* @__PURE__ */ new Map(), l, a, s, c = (
902
+ function Mn(n) {
903
+ let e, t = [], r = /* @__PURE__ */ new Map(), l, a, s, f = (
898
904
  /*listFeatures*/
899
- t[12]
905
+ n[12]
900
906
  );
901
- const d = (f) => (
907
+ const d = (c) => (
902
908
  /*feature*/
903
- f[72].id
909
+ c[74].id + /*feature*/
910
+ (c[74].address ? "," + /*feature*/
911
+ c[74].address : "")
904
912
  );
905
- for (let f = 0; f < c.length; f += 1) {
906
- let _ = rt(t, c, f), k = d(_);
907
- r.set(k, n[f] = st(k, _));
913
+ for (let c = 0; c < f.length; c += 1) {
914
+ let m = lt(n, f, c), b = d(m);
915
+ r.set(b, t[c] = ot(b, m));
908
916
  }
909
917
  return {
910
918
  c() {
911
- e = C("ul");
912
- for (let f = 0; f < n.length; f += 1)
913
- n[f].c();
919
+ e = I("ul");
920
+ for (let c = 0; c < t.length; c += 1)
921
+ t[c].c();
914
922
  o(e, "class", "svelte-1r7dvt7");
915
923
  },
916
- m(f, _) {
917
- I(f, e, _);
918
- for (let k = 0; k < n.length; k += 1)
919
- n[k] && n[k].m(e, null);
924
+ m(c, m) {
925
+ W(c, e, m);
926
+ for (let b = 0; b < t.length; b += 1)
927
+ t[b] && t[b].m(e, null);
920
928
  l = !0, a || (s = [
921
929
  D(
922
930
  e,
923
931
  "mouseleave",
924
932
  /*mouseleave_handler*/
925
- t[62]
933
+ n[64]
926
934
  ),
927
935
  D(
928
936
  e,
929
937
  "blur",
930
938
  /*blur_handler_1*/
931
- t[63]
939
+ n[65]
932
940
  )
933
941
  ], a = !0);
934
942
  },
935
- p(f, _) {
936
- _[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
937
- 2110464 && (c = /*listFeatures*/
938
- f[12], Se(), n = tn(n, _, d, 1, f, c, r, e, en, st, null, rt), Ae());
943
+ p(c, m) {
944
+ m[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, pick*/
945
+ 4469760 && (f = /*listFeatures*/
946
+ c[12], Be(), t = rn(t, m, d, 1, c, f, r, e, nn, ot, null, lt), Pe());
939
947
  },
940
- i(f) {
948
+ i(c) {
941
949
  if (!l) {
942
- for (let _ = 0; _ < c.length; _ += 1)
943
- G(n[_]);
950
+ for (let m = 0; m < f.length; m += 1)
951
+ F(t[m]);
944
952
  l = !0;
945
953
  }
946
954
  },
947
- o(f) {
948
- for (let _ = 0; _ < n.length; _ += 1)
949
- Z(n[_]);
955
+ o(c) {
956
+ for (let m = 0; m < t.length; m += 1)
957
+ Z(t[m]);
950
958
  l = !1;
951
959
  },
952
- d(f) {
953
- f && S(e);
954
- for (let _ = 0; _ < n.length; _ += 1)
955
- n[_].d();
960
+ d(c) {
961
+ c && P(e);
962
+ for (let m = 0; m < t.length; m += 1)
963
+ t[m].d();
956
964
  a = !1, ee(s);
957
965
  }
958
966
  };
959
967
  }
960
- function Tn(t) {
961
- let e, n, r, l, a, s;
962
- return n = new gt({}), {
968
+ function Cn(n) {
969
+ let e, t, r, l, a, s;
970
+ return t = new yt({}), {
963
971
  c() {
964
- e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
972
+ e = I("div"), oe(t.$$.fragment), r = V(), l = I("div"), a = se(
965
973
  /*noResultsMessage*/
966
- t[7]
974
+ n[7]
967
975
  ), o(l, "class", "svelte-1r7dvt7"), o(e, "class", "no-results svelte-1r7dvt7");
968
976
  },
969
- m(c, d) {
970
- I(c, e, d), x(n, e, null), v(e, r), v(e, l), v(l, a), s = !0;
977
+ m(f, d) {
978
+ W(f, e, d), x(t, e, null), v(e, r), v(e, l), v(l, a), s = !0;
971
979
  },
972
- p(c, d) {
980
+ p(f, d) {
973
981
  (!s || d[0] & /*noResultsMessage*/
974
982
  128) && Me(
975
983
  a,
976
984
  /*noResultsMessage*/
977
- c[7]
985
+ f[7]
978
986
  );
979
987
  },
980
- i(c) {
981
- s || (G(n.$$.fragment, c), s = !0);
988
+ i(f) {
989
+ s || (F(t.$$.fragment, f), s = !0);
982
990
  },
983
- o(c) {
984
- Z(n.$$.fragment, c), s = !1;
991
+ o(f) {
992
+ Z(t.$$.fragment, f), s = !1;
985
993
  },
986
- d(c) {
987
- c && S(e), $(n);
994
+ d(f) {
995
+ f && P(e), $(t);
988
996
  }
989
997
  };
990
998
  }
991
- function Mn(t) {
992
- let e = "", n;
999
+ function Rn(n) {
1000
+ let e = "", t;
993
1001
  return {
994
1002
  c() {
995
- n = se(e);
1003
+ t = se(e);
996
1004
  },
997
1005
  m(r, l) {
998
- I(r, n, l);
1006
+ W(r, t, l);
999
1007
  },
1000
- p: P,
1001
- i: P,
1002
- o: P,
1008
+ p: B,
1009
+ i: B,
1010
+ o: B,
1003
1011
  d(r) {
1004
- r && S(n);
1012
+ r && P(t);
1005
1013
  }
1006
1014
  };
1007
1015
  }
1008
- function Rn(t) {
1009
- let e, n, r, l, a, s, c, d, f, _, k;
1010
- return n = new gt({}), d = new mt({}), {
1016
+ function Ln(n) {
1017
+ let e, t, r, l, a, s, f, d, c, m, b;
1018
+ return t = new yt({}), d = new gt({}), {
1011
1019
  c() {
1012
- e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
1020
+ e = I("div"), oe(t.$$.fragment), r = V(), l = I("div"), a = se(
1013
1021
  /*errorMessage*/
1014
- t[6]
1015
- ), s = V(), c = C("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(c, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
1022
+ n[6]
1023
+ ), s = V(), f = I("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(f, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
1016
1024
  },
1017
- m(b, L) {
1018
- I(b, e, L), x(n, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, c), x(d, c, null), f = !0, _ || (k = D(
1019
- c,
1025
+ m(y, E) {
1026
+ W(y, e, E), x(t, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, f), x(d, f, null), c = !0, m || (b = D(
1027
+ f,
1020
1028
  "click",
1021
1029
  /*click_handler_3*/
1022
- t[59]
1023
- ), _ = !0);
1030
+ n[61]
1031
+ ), m = !0);
1024
1032
  },
1025
- p(b, L) {
1026
- (!f || L[0] & /*errorMessage*/
1033
+ p(y, E) {
1034
+ (!c || E[0] & /*errorMessage*/
1027
1035
  64) && Me(
1028
1036
  a,
1029
1037
  /*errorMessage*/
1030
- b[6]
1038
+ y[6]
1031
1039
  );
1032
1040
  },
1033
- i(b) {
1034
- f || (G(n.$$.fragment, b), G(d.$$.fragment, b), f = !0);
1041
+ i(y) {
1042
+ c || (F(t.$$.fragment, y), F(d.$$.fragment, y), c = !0);
1035
1043
  },
1036
- o(b) {
1037
- Z(n.$$.fragment, b), Z(d.$$.fragment, b), f = !1;
1044
+ o(y) {
1045
+ Z(t.$$.fragment, y), Z(d.$$.fragment, y), c = !1;
1038
1046
  },
1039
- d(b) {
1040
- b && S(e), $(n), $(d), _ = !1, k();
1047
+ d(y) {
1048
+ y && P(e), $(t), $(d), m = !1, b();
1041
1049
  }
1042
1050
  };
1043
1051
  }
1044
- function st(t, e) {
1045
- let n, r, l;
1052
+ function ot(n, e) {
1053
+ let t, r, l;
1046
1054
  function a() {
1047
1055
  return (
1048
1056
  /*mouseenter_handler*/
1049
- e[60](
1057
+ e[62](
1050
1058
  /*i*/
1051
- e[74]
1059
+ e[76]
1052
1060
  )
1053
1061
  );
1054
1062
  }
1055
1063
  function s() {
1056
1064
  return (
1057
1065
  /*focus_handler_1*/
1058
- e[61](
1066
+ e[63](
1059
1067
  /*feature*/
1060
- e[72]
1068
+ e[74]
1061
1069
  )
1062
1070
  );
1063
1071
  }
1064
- return r = new mn({
1072
+ return r = new yn({
1065
1073
  props: {
1066
1074
  feature: (
1067
1075
  /*feature*/
1068
- e[72]
1076
+ e[74]
1069
1077
  ),
1070
1078
  showPlaceType: (
1071
1079
  /*showPlaceType*/
@@ -1074,61 +1082,65 @@ function st(t, e) {
1074
1082
  selected: (
1075
1083
  /*selectedItemIndex*/
1076
1084
  e[13] === /*i*/
1077
- e[74]
1085
+ e[76]
1086
+ ),
1087
+ missingIconsCache: (
1088
+ /*missingIconsCache*/
1089
+ e[18]
1078
1090
  )
1079
1091
  }
1080
1092
  }), r.$on("mouseenter", a), r.$on("focus", s), {
1081
- key: t,
1093
+ key: n,
1082
1094
  first: null,
1083
1095
  c() {
1084
- n = Dt(), oe(r.$$.fragment), this.first = n;
1096
+ t = Vt(), oe(r.$$.fragment), this.first = t;
1085
1097
  },
1086
- m(c, d) {
1087
- I(c, n, d), x(r, c, d), l = !0;
1098
+ m(f, d) {
1099
+ W(f, t, d), x(r, f, d), l = !0;
1088
1100
  },
1089
- p(c, d) {
1090
- e = c;
1091
- const f = {};
1101
+ p(f, d) {
1102
+ e = f;
1103
+ const c = {};
1092
1104
  d[0] & /*listFeatures*/
1093
- 4096 && (f.feature = /*feature*/
1094
- e[72]), d[0] & /*showPlaceType*/
1095
- 1024 && (f.showPlaceType = /*showPlaceType*/
1105
+ 4096 && (c.feature = /*feature*/
1106
+ e[74]), d[0] & /*showPlaceType*/
1107
+ 1024 && (c.showPlaceType = /*showPlaceType*/
1096
1108
  e[10]), d[0] & /*selectedItemIndex, listFeatures*/
1097
- 12288 && (f.selected = /*selectedItemIndex*/
1109
+ 12288 && (c.selected = /*selectedItemIndex*/
1098
1110
  e[13] === /*i*/
1099
- e[74]), r.$set(f);
1111
+ e[76]), r.$set(c);
1100
1112
  },
1101
- i(c) {
1102
- l || (G(r.$$.fragment, c), l = !0);
1113
+ i(f) {
1114
+ l || (F(r.$$.fragment, f), l = !0);
1103
1115
  },
1104
- o(c) {
1105
- Z(r.$$.fragment, c), l = !1;
1116
+ o(f) {
1117
+ Z(r.$$.fragment, f), l = !1;
1106
1118
  },
1107
- d(c) {
1108
- c && S(n), $(r, c);
1119
+ d(f) {
1120
+ f && P(t), $(r, f);
1109
1121
  }
1110
1122
  };
1111
1123
  }
1112
- function Ln(t) {
1113
- let e, n, r, l, a, s, c, d, f, _, k, b, L, z, p, g, W, B, O, F;
1114
- l = new vn({}), _ = new mt({});
1124
+ function En(n) {
1125
+ let e, t, r, l, a, s, f, d, c, m, b, y, E, S, T, M, k, z, G, O;
1126
+ l = new Tn({}), m = new gt({});
1115
1127
  let h = (
1116
1128
  /*abortController*/
1117
- t[17] && lt()
1118
- ), y = (
1129
+ n[17] && it()
1130
+ ), g = (
1119
1131
  /*enableReverse*/
1120
- t[5] === !0 && it(t)
1132
+ n[5] === !0 && st(n)
1121
1133
  );
1122
- const T = (
1134
+ const C = (
1123
1135
  /*#slots*/
1124
- t[50].default
1125
- ), M = Zt(
1126
- T,
1127
- t,
1136
+ n[52].default
1137
+ ), R = Ut(
1138
+ C,
1139
+ n,
1128
1140
  /*$$scope*/
1129
- t[49],
1141
+ n[51],
1130
1142
  null
1131
- ), m = [Rn, Mn, Tn, pn], w = [];
1143
+ ), _ = [Ln, Rn, Cn, Mn], w = [];
1132
1144
  function H(u, A) {
1133
1145
  var Y, ce;
1134
1146
  return (
@@ -1146,101 +1158,101 @@ function Ln(t) {
1146
1158
  )
1147
1159
  );
1148
1160
  }
1149
- return ~(p = H(t)) && (g = w[p] = m[p](t)), {
1161
+ return ~(T = H(n)) && (M = w[T] = _[T](n)), {
1150
1162
  c() {
1151
- e = C("form"), n = C("div"), r = C("button"), oe(l.$$.fragment), a = V(), s = C("input"), c = V(), d = C("div"), f = C("button"), oe(_.$$.fragment), k = V(), h && h.c(), b = V(), y && y.c(), L = V(), M && M.c(), z = V(), g && g.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
1163
+ e = I("form"), t = I("div"), r = I("button"), oe(l.$$.fragment), a = V(), s = I("input"), f = V(), d = I("div"), c = I("button"), oe(m.$$.fragment), b = V(), h && h.c(), y = V(), g && g.c(), E = V(), R && R.c(), S = V(), M && M.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
1152
1164
  s,
1153
1165
  "placeholder",
1154
1166
  /*placeholder*/
1155
- t[8]
1167
+ n[8]
1156
1168
  ), o(
1157
1169
  s,
1158
1170
  "aria-label",
1159
1171
  /*placeholder*/
1160
- t[8]
1161
- ), o(s, "class", "svelte-1r7dvt7"), o(f, "type", "button"), o(
1162
- f,
1172
+ n[8]
1173
+ ), o(s, "class", "svelte-1r7dvt7"), o(c, "type", "button"), o(
1174
+ c,
1163
1175
  "title",
1164
1176
  /*clearButtonTitle*/
1165
- t[3]
1166
- ), o(f, "class", "svelte-1r7dvt7"), o(d, "class", "clear-button-container svelte-1r7dvt7"), re(
1177
+ n[3]
1178
+ ), o(c, "class", "svelte-1r7dvt7"), o(d, "class", "clear-button-container svelte-1r7dvt7"), re(
1167
1179
  d,
1168
1180
  "displayable",
1169
1181
  /*searchValue*/
1170
- t[1] !== ""
1171
- ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = xe(
1182
+ n[1] !== ""
1183
+ ), o(t, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", k = $e(
1172
1184
  /*className*/
1173
- t[2]
1185
+ n[2]
1174
1186
  ) + " svelte-1r7dvt7"), re(
1175
1187
  e,
1176
1188
  "can-collapse",
1177
1189
  /*collapsed*/
1178
- t[4] && /*searchValue*/
1179
- t[1] === ""
1190
+ n[4] && /*searchValue*/
1191
+ n[1] === ""
1180
1192
  );
1181
1193
  },
1182
1194
  m(u, A) {
1183
- I(u, e, A), v(e, n), v(n, r), x(l, r, null), v(n, a), v(n, s), t[52](s), $e(
1195
+ W(u, e, A), v(e, t), v(t, r), x(l, r, null), v(t, a), v(t, s), n[54](s), et(
1184
1196
  s,
1185
1197
  /*searchValue*/
1186
- t[1]
1187
- ), v(n, c), v(n, d), v(d, f), x(_, f, null), v(d, k), h && h.m(d, null), v(n, b), y && y.m(n, null), v(n, L), M && M.m(n, null), v(e, z), ~p && w[p].m(e, null), B = !0, O || (F = [
1198
+ n[1]
1199
+ ), v(t, f), v(t, d), v(d, c), x(m, c, null), v(d, b), h && h.m(d, null), v(t, y), g && g.m(t, null), v(t, E), R && R.m(t, null), v(e, S), ~T && w[T].m(e, null), z = !0, G || (O = [
1188
1200
  D(
1189
1201
  r,
1190
1202
  "click",
1191
1203
  /*click_handler*/
1192
- t[51]
1204
+ n[53]
1193
1205
  ),
1194
1206
  D(
1195
1207
  s,
1196
1208
  "input",
1197
1209
  /*input_1_input_handler*/
1198
- t[53]
1210
+ n[55]
1199
1211
  ),
1200
1212
  D(
1201
1213
  s,
1202
1214
  "focus",
1203
1215
  /*focus_handler*/
1204
- t[54]
1216
+ n[56]
1205
1217
  ),
1206
1218
  D(
1207
1219
  s,
1208
1220
  "blur",
1209
1221
  /*blur_handler*/
1210
- t[55]
1222
+ n[57]
1211
1223
  ),
1212
1224
  D(
1213
1225
  s,
1214
1226
  "keydown",
1215
1227
  /*handleKeyDown*/
1216
- t[19]
1228
+ n[20]
1217
1229
  ),
1218
1230
  D(
1219
1231
  s,
1220
1232
  "input",
1221
1233
  /*input_handler*/
1222
- t[56]
1234
+ n[58]
1223
1235
  ),
1224
1236
  D(
1225
- f,
1237
+ c,
1226
1238
  "click",
1227
1239
  /*click_handler_1*/
1228
- t[57]
1240
+ n[59]
1229
1241
  ),
1230
- D(e, "submit", Kt(
1242
+ D(e, "submit", Ht(
1231
1243
  /*handleOnSubmit*/
1232
- t[18]
1244
+ n[19]
1233
1245
  ))
1234
- ], O = !0);
1246
+ ], G = !0);
1235
1247
  },
1236
1248
  p(u, A) {
1237
- (!B || A[0] & /*placeholder*/
1249
+ (!z || A[0] & /*placeholder*/
1238
1250
  256) && o(
1239
1251
  s,
1240
1252
  "placeholder",
1241
1253
  /*placeholder*/
1242
1254
  u[8]
1243
- ), (!B || A[0] & /*placeholder*/
1255
+ ), (!z || A[0] & /*placeholder*/
1244
1256
  256) && o(
1245
1257
  s,
1246
1258
  "aria-label",
@@ -1248,57 +1260,57 @@ function Ln(t) {
1248
1260
  u[8]
1249
1261
  ), A[0] & /*searchValue*/
1250
1262
  2 && s.value !== /*searchValue*/
1251
- u[1] && $e(
1263
+ u[1] && et(
1252
1264
  s,
1253
1265
  /*searchValue*/
1254
1266
  u[1]
1255
- ), (!B || A[0] & /*clearButtonTitle*/
1267
+ ), (!z || A[0] & /*clearButtonTitle*/
1256
1268
  8) && o(
1257
- f,
1269
+ c,
1258
1270
  "title",
1259
1271
  /*clearButtonTitle*/
1260
1272
  u[3]
1261
1273
  ), /*abortController*/
1262
1274
  u[17] ? h ? A[0] & /*abortController*/
1263
- 131072 && G(h, 1) : (h = lt(), h.c(), G(h, 1), h.m(d, null)) : h && (Se(), Z(h, 1, 1, () => {
1275
+ 131072 && F(h, 1) : (h = it(), h.c(), F(h, 1), h.m(d, null)) : h && (Be(), Z(h, 1, 1, () => {
1264
1276
  h = null;
1265
- }), Ae()), (!B || A[0] & /*searchValue*/
1277
+ }), Pe()), (!z || A[0] & /*searchValue*/
1266
1278
  2) && re(
1267
1279
  d,
1268
1280
  "displayable",
1269
1281
  /*searchValue*/
1270
1282
  u[1] !== ""
1271
1283
  ), /*enableReverse*/
1272
- u[5] === !0 ? y ? (y.p(u, A), A[0] & /*enableReverse*/
1273
- 32 && G(y, 1)) : (y = it(u), y.c(), G(y, 1), y.m(n, L)) : y && (Se(), Z(y, 1, 1, () => {
1274
- y = null;
1275
- }), Ae()), M && M.p && (!B || A[1] & /*$$scope*/
1276
- 262144) && Ut(
1277
- M,
1278
- T,
1284
+ u[5] === !0 ? g ? (g.p(u, A), A[0] & /*enableReverse*/
1285
+ 32 && F(g, 1)) : (g = st(u), g.c(), F(g, 1), g.m(t, E)) : g && (Be(), Z(g, 1, 1, () => {
1286
+ g = null;
1287
+ }), Pe()), R && R.p && (!z || A[1] & /*$$scope*/
1288
+ 1048576) && Dt(
1289
+ R,
1290
+ C,
1279
1291
  u,
1280
1292
  /*$$scope*/
1281
- u[49],
1282
- B ? Ft(
1283
- T,
1293
+ u[51],
1294
+ z ? qt(
1295
+ C,
1284
1296
  /*$$scope*/
1285
- u[49],
1297
+ u[51],
1286
1298
  A,
1287
1299
  null
1288
- ) : qt(
1300
+ ) : Kt(
1289
1301
  /*$$scope*/
1290
- u[49]
1302
+ u[51]
1291
1303
  ),
1292
1304
  null
1293
1305
  );
1294
- let Y = p;
1295
- p = H(u), p === Y ? ~p && w[p].p(u, A) : (g && (Se(), Z(w[Y], 1, 1, () => {
1306
+ let Y = T;
1307
+ T = H(u), T === Y ? ~T && w[T].p(u, A) : (M && (Be(), Z(w[Y], 1, 1, () => {
1296
1308
  w[Y] = null;
1297
- }), Ae()), ~p ? (g = w[p], g ? g.p(u, A) : (g = w[p] = m[p](u), g.c()), G(g, 1), g.m(e, null)) : g = null), (!B || A[0] & /*className*/
1298
- 4 && W !== (W = xe(
1309
+ }), Pe()), ~T ? (M = w[T], M ? M.p(u, A) : (M = w[T] = _[T](u), M.c()), F(M, 1), M.m(e, null)) : M = null), (!z || A[0] & /*className*/
1310
+ 4 && k !== (k = $e(
1299
1311
  /*className*/
1300
1312
  u[2]
1301
- ) + " svelte-1r7dvt7")) && o(e, "class", W), (!B || A[0] & /*className, collapsed, searchValue*/
1313
+ ) + " svelte-1r7dvt7")) && o(e, "class", k), (!z || A[0] & /*className, collapsed, searchValue*/
1302
1314
  22) && re(
1303
1315
  e,
1304
1316
  "can-collapse",
@@ -1308,71 +1320,71 @@ function Ln(t) {
1308
1320
  );
1309
1321
  },
1310
1322
  i(u) {
1311
- B || (G(l.$$.fragment, u), G(_.$$.fragment, u), G(h), G(y), G(M, u), G(g), B = !0);
1323
+ z || (F(l.$$.fragment, u), F(m.$$.fragment, u), F(h), F(g), F(R, u), F(M), z = !0);
1312
1324
  },
1313
1325
  o(u) {
1314
- Z(l.$$.fragment, u), Z(_.$$.fragment, u), Z(h), Z(y), Z(M, u), Z(g), B = !1;
1326
+ Z(l.$$.fragment, u), Z(m.$$.fragment, u), Z(h), Z(g), Z(R, u), Z(M), z = !1;
1315
1327
  },
1316
1328
  d(u) {
1317
- u && S(e), $(l), t[52](null), $(_), h && h.d(), y && y.d(), M && M.d(u), ~p && w[p].d(), O = !1, ee(F);
1329
+ u && P(e), $(l), n[54](null), $(m), h && h.d(), g && g.d(), R && R.d(u), ~T && w[T].d(), G = !1, ee(O);
1318
1330
  }
1319
1331
  };
1320
1332
  }
1321
- function En(t, e, n) {
1333
+ function In(n, e, t) {
1322
1334
  const r = e[1], l = e[0], a = r - l;
1323
- return t === r && n ? t : ((t - l) % a + a) % a + l;
1335
+ return n === r && t ? n : ((n - l) % a + a) % a + l;
1324
1336
  }
1325
- function ot(t) {
1326
- let e = [...t];
1337
+ function ct(n) {
1338
+ let e = [...n];
1327
1339
  return e[2] < e[0] && (e[2] += 360), e;
1328
1340
  }
1329
- function Cn(t, e, n) {
1330
- let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: c } = e, { bbox: d = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: b = void 0 } = e, { debounceSearch: L = 200 } = e, { enableReverse: z = !1 } = e, { errorMessage: p = "Something went wrong…" } = e, { filter: g = () => !0 } = e, { flyTo: W = !0 } = e, { fuzzyMatch: B = !0 } = e, { language: O = void 0 } = e, { limit: F = void 0 } = e, { mapController: h = void 0 } = e, { minLength: y = 2 } = e, { noResultsMessage: T = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: M = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = z === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: A = !0 } = e, { showPlaceType: Y = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Le = !0 } = e, { types: fe = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: pe = 18 } = e, { apiUrl: Ie = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: We = {} } = e;
1331
- function yt() {
1341
+ function Sn(n, e, t) {
1342
+ let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: f } = e, { bbox: d = void 0 } = e, { clearButtonTitle: c = "clear" } = e, { clearOnBlur: m = !1 } = e, { collapsed: b = !1 } = e, { country: y = void 0 } = e, { debounceSearch: E = 200 } = e, { enableReverse: S = !1 } = e, { errorMessage: T = "Something went wrong…" } = e, { filter: M = () => !0 } = e, { flyTo: k = !0 } = e, { fuzzyMatch: z = !0 } = e, { language: G = void 0 } = e, { limit: O = void 0 } = e, { mapController: h = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: C = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: R = "Search" } = e, { proximity: _ = void 0 } = e, { reverseActive: w = S === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: A = !0 } = e, { showPlaceType: Y = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Re = !0 } = e, { types: fe = void 0 } = e, { zoom: Le = 16 } = e, { maxZoom: pe = 18 } = e, { apiUrl: Ae = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: We = {} } = e;
1343
+ function bt() {
1332
1344
  Q.focus();
1333
1345
  }
1334
- function bt() {
1346
+ function wt() {
1335
1347
  Q.blur();
1336
1348
  }
1337
- function Ve(i, j = !0) {
1338
- n(1, u = i), j ? (n(13, N = -1), Qe()) : (je(), setTimeout(() => {
1349
+ function He(i, j = !0) {
1350
+ t(1, u = i), j ? (t(13, N = -1), Je()) : (Fe(), setTimeout(() => {
1339
1351
  Q.focus(), Q.select();
1340
1352
  }));
1341
1353
  }
1342
- let ge = !1, R, U, E, He = "", Q, N = -1, J, Ce = [], ue, ye, ze;
1343
- const te = Jt();
1344
- Qt(() => {
1354
+ let ge = !1, L, U, p, Qe = "", Q, N = -1, J, Ee = [], ue, ye, Ie, Ne;
1355
+ const kt = /* @__PURE__ */ new Set(), te = Yt();
1356
+ Xt(() => {
1345
1357
  h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setMarkers(void 0, void 0));
1346
1358
  });
1347
- function Qe(i) {
1348
- if (ye && (clearTimeout(ye), ye = void 0), N > -1 && R)
1349
- n(47, E = R[N]), n(1, u = E.place_name.replace(/,.*/, "")), n(16, J = void 0), n(46, U = void 0), n(13, N = -1);
1359
+ function Je(i) {
1360
+ if (ye && (clearTimeout(ye), ye = void 0), N > -1 && L)
1361
+ t(48, p = L[N]), t(1, u = p.place_name.replace(/,.*/, "")), t(16, J = void 0), t(47, U = void 0), t(13, N = -1);
1350
1362
  else if (u) {
1351
- const j = i || !Je();
1352
- Ne(u, { exact: !0 }).then(() => {
1353
- n(46, U = R), n(47, E = void 0), j && wt();
1354
- }).catch((X) => n(16, J = X));
1363
+ const j = i || !Xe();
1364
+ je(u, { exact: !0 }).then(() => {
1365
+ t(47, U = L), t(48, p = void 0), j && vt();
1366
+ }).catch((X) => t(16, J = X));
1355
1367
  }
1356
1368
  }
1357
- function Je() {
1369
+ function Xe() {
1358
1370
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(u);
1359
1371
  }
1360
- async function Ne(i, { byId: j = !1, exact: X = !1 } = {}) {
1361
- n(16, J = void 0);
1362
- const be = Je(), K = new URLSearchParams();
1363
- O != null && K.set("language", Array.isArray(O) ? O.join(",") : O), fe && K.set("types", fe.join(",")), be || (d && K.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), b && K.set("country", Array.isArray(b) ? b.join(",") : b)), j || (m && K.set("proximity", m.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && K.set("autocomplete", "false"), K.set("fuzzyMatch", String(B))), F !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && K.set("limit", String(F)), K.set("key", c);
1364
- const ae = Ie + "/" + encodeURIComponent(i) + ".json?" + K.toString();
1365
- if (ae === He) {
1366
- j ? (n(12, R = void 0), n(47, E = Ce[0])) : n(12, R = Ce);
1372
+ async function je(i, { byId: j = !1, exact: X = !1 } = {}) {
1373
+ t(16, J = void 0);
1374
+ const be = Xe(), K = new URLSearchParams();
1375
+ G != null && K.set("language", Array.isArray(G) ? G.join(",") : G), fe && K.set("types", fe.join(",")), be || (d && K.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), y && K.set("country", Array.isArray(y) ? y.join(",") : y)), j || (_ && K.set("proximity", _.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && K.set("autocomplete", "false"), K.set("fuzzyMatch", String(z))), O !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && K.set("limit", String(O)), K.set("key", f);
1376
+ const ae = Ae + "/" + encodeURIComponent(i) + ".json?" + K.toString();
1377
+ if (ae === Qe) {
1378
+ j ? (t(12, L = void 0), t(48, p = Ee[0])) : t(12, L = Ee);
1367
1379
  return;
1368
1380
  }
1369
- He = ae, ue == null || ue.abort();
1381
+ Qe = ae, ue == null || ue.abort();
1370
1382
  const q = new AbortController();
1371
- n(17, ue = q);
1383
+ t(17, ue = q);
1372
1384
  let Oe;
1373
1385
  try {
1374
1386
  Oe = await fetch(ae, { signal: q.signal, ...We }).finally(() => {
1375
- q === ue && n(17, ue = void 0);
1387
+ q === ue && t(17, ue = void 0);
1376
1388
  });
1377
1389
  } catch (ne) {
1378
1390
  if (ne && typeof ne == "object" && "name" in ne && ne.name === "AbortError")
@@ -1382,241 +1394,243 @@ function Cn(t, e, n) {
1382
1394
  if (!Oe.ok)
1383
1395
  throw new Error();
1384
1396
  const Ze = await Oe.json();
1385
- te("response", { url: ae, featureCollection: Ze }), j ? (n(12, R = void 0), n(47, E = Ze.features[0]), Ce = [E]) : (n(12, R = Ze.features.filter(g)), Ce = R, be && Q.focus());
1397
+ te("response", { url: ae, featureCollection: Ze }), j ? (t(12, L = void 0), t(48, p = Ze.features[0]), Ee = [p]) : (t(12, L = Ze.features.filter(M)), Ee = L, be && Q.focus());
1386
1398
  }
1387
- function wt() {
1399
+ function vt() {
1388
1400
  var X, be, K, ae;
1389
- if (!(U != null && U.length) || !W)
1401
+ if (!(U != null && U.length) || !k)
1390
1402
  return;
1391
1403
  const i = [180, 90, -180, -90], j = !U.some((q) => !q.matching_text);
1392
1404
  for (const q of U)
1393
1405
  (j || !q.matching_text) && (i[0] = Math.min(i[0], ((X = q.bbox) == null ? void 0 : X[0]) ?? q.center[0]), i[1] = Math.min(i[1], ((be = q.bbox) == null ? void 0 : be[1]) ?? q.center[1]), i[2] = Math.max(i[2], ((K = q.bbox) == null ? void 0 : K[2]) ?? q.center[0]), i[3] = Math.max(i[3], ((ae = q.bbox) == null ? void 0 : ae[3]) ?? q.center[1]));
1394
- h && U.length > 0 && (E && i[0] === i[2] && i[1] === i[3] ? h.flyTo(E.center, Ee) : h.fitBounds(ot(i), 50, pe));
1406
+ h && U.length > 0 && (p && i[0] === i[2] && i[1] === i[3] ? h.flyTo(p.center, Le) : h.fitBounds(ct(i), 50, pe));
1395
1407
  }
1396
- function kt(i) {
1397
- n(0, w = z === "always"), Ve(En(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1408
+ function pt(i) {
1409
+ t(0, w = S === "always"), He(In(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1398
1410
  }
1399
- function vt(i) {
1400
- if (!R)
1411
+ function Tt(i) {
1412
+ if (!L)
1401
1413
  return;
1402
1414
  let j = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : 0;
1403
- j ? (N === -1 && j === -1 && n(13, N = R.length), n(13, N += j), N >= R.length && n(13, N = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && n(13, N = -1);
1415
+ j ? (N === -1 && j === -1 && t(13, N = L.length), t(13, N += j), N >= L.length && t(13, N = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && t(13, N = -1);
1404
1416
  }
1405
- function je(i = !0) {
1406
- if (n(16, J = void 0), ce) {
1407
- if (ye && clearTimeout(ye), u.length < y)
1417
+ function Fe(i = !0) {
1418
+ if (t(16, J = void 0), ce) {
1419
+ if (ye && clearTimeout(ye), u.length < g)
1408
1420
  return;
1409
1421
  const j = u;
1410
1422
  ye = window.setTimeout(
1411
1423
  () => {
1412
- Ne(j).catch((X) => n(16, J = X));
1424
+ je(j).catch((X) => t(16, J = X));
1413
1425
  },
1414
- i ? L : 0
1426
+ i ? E : 0
1415
1427
  );
1416
1428
  } else
1417
- n(12, R = void 0), n(16, J = void 0);
1429
+ t(12, L = void 0), t(16, J = void 0);
1418
1430
  }
1419
1431
  function Ge(i) {
1420
- n(47, E = i), n(1, u = i.place_name), n(13, N = -1);
1432
+ t(48, p = i), t(1, u = i.place_name), t(13, N = -1);
1421
1433
  }
1422
- const pt = () => Q.focus();
1423
- function Tt(i) {
1424
- qe[i ? "unshift" : "push"](() => {
1425
- Q = i, n(15, Q);
1434
+ const Mt = () => Q.focus();
1435
+ function Ct(i) {
1436
+ De[i ? "unshift" : "push"](() => {
1437
+ Q = i, t(15, Q);
1426
1438
  });
1427
1439
  }
1428
- function Mt() {
1429
- u = this.value, n(1, u), n(11, ge), n(25, _);
1440
+ function Rt() {
1441
+ u = this.value, t(1, u), t(11, ge), t(26, m);
1430
1442
  }
1431
- const Rt = () => n(11, ge = !0), Lt = () => n(11, ge = !1), Et = () => je(), Ct = () => {
1432
- n(1, u = ""), Q.focus();
1433
- }, zt = () => n(0, w = !w), Bt = () => n(16, J = void 0), Pt = (i) => n(13, N = i), St = (i) => Ge(i), At = () => n(13, N = -1), It = () => {
1443
+ const Lt = () => t(11, ge = !0), Et = () => t(11, ge = !1), It = () => Fe(), St = () => {
1444
+ t(1, u = ""), Q.focus();
1445
+ }, zt = () => t(0, w = !w), Bt = () => t(16, J = void 0), Pt = (i) => t(13, N = i), At = (i) => Ge(i), Wt = () => t(13, N = -1), Nt = () => {
1434
1446
  };
1435
- return t.$$set = (i) => {
1436
- "class" in i && n(2, s = i.class), "apiKey" in i && n(23, c = i.apiKey), "bbox" in i && n(24, d = i.bbox), "clearButtonTitle" in i && n(3, f = i.clearButtonTitle), "clearOnBlur" in i && n(25, _ = i.clearOnBlur), "collapsed" in i && n(4, k = i.collapsed), "country" in i && n(26, b = i.country), "debounceSearch" in i && n(27, L = i.debounceSearch), "enableReverse" in i && n(5, z = i.enableReverse), "errorMessage" in i && n(6, p = i.errorMessage), "filter" in i && n(28, g = i.filter), "flyTo" in i && n(29, W = i.flyTo), "fuzzyMatch" in i && n(30, B = i.fuzzyMatch), "language" in i && n(31, O = i.language), "limit" in i && n(32, F = i.limit), "mapController" in i && n(33, h = i.mapController), "minLength" in i && n(34, y = i.minLength), "noResultsMessage" in i && n(7, T = i.noResultsMessage), "placeholder" in i && n(8, M = i.placeholder), "proximity" in i && n(22, m = i.proximity), "reverseActive" in i && n(0, w = i.reverseActive), "reverseButtonTitle" in i && n(9, H = i.reverseButtonTitle), "searchValue" in i && n(1, u = i.searchValue), "showFullGeometry" in i && n(35, A = i.showFullGeometry), "showPlaceType" in i && n(10, Y = i.showPlaceType), "showResultsWhileTyping" in i && n(36, ce = i.showResultsWhileTyping), "trackProximity" in i && n(37, Le = i.trackProximity), "types" in i && n(38, fe = i.types), "zoom" in i && n(39, Ee = i.zoom), "maxZoom" in i && n(40, pe = i.maxZoom), "apiUrl" in i && n(41, Ie = i.apiUrl), "fetchParameters" in i && n(42, We = i.fetchParameters), "$$scope" in i && n(49, a = i.$$scope);
1437
- }, t.$$.update = () => {
1438
- if (t.$$.dirty[1] & /*trackProximity*/
1439
- 64 && (Le || n(22, m = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
1440
- 33556480 && setTimeout(() => {
1441
- n(14, ze = ge), _ && !ge && n(1, u = "");
1442
- }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1443
- 4098 | t.$$.dirty[1] & /*minLength*/
1444
- 8 && u.length < y && (n(47, E = void 0), n(12, R = void 0), n(16, J = void 0), n(46, U = R)), t.$$.dirty[1] & /*showFullGeometry, picked*/
1445
- 65552 && A && E && !E.address && E.geometry.type === "Point" && Ne(E.id, { byId: !0 }).catch((i) => n(16, J = i)), t.$$.dirty[0] & /*flyTo*/
1446
- 536870912 | t.$$.dirty[1] & /*mapController, picked, maxZoom, zoom*/
1447
- 66308 && h && E && W && (!E.bbox || E.bbox[0] === E.bbox[2] && E.bbox[1] === E.bbox[3] ? h.flyTo(E.center, E.id.startsWith("poi.") || E.id.startsWith("address.") ? pe : Ee) : h.fitBounds(ot(E.bbox), 50, pe), n(12, R = void 0), n(46, U = void 0), n(13, N = -1)), t.$$.dirty[0] & /*listFeatures*/
1448
- 4096 | t.$$.dirty[1] & /*markedFeatures*/
1449
- 32768 && U !== R && n(46, U = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1450
- 98308 && h && h.setMarkers(U, E), t.$$.dirty[0] & /*searchValue*/
1451
- 2 && n(13, N = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1452
- 20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1453
- 68 && h && h.setEventHandler((i) => {
1447
+ return n.$$set = (i) => {
1448
+ "class" in i && t(2, s = i.class), "apiKey" in i && t(24, f = i.apiKey), "bbox" in i && t(25, d = i.bbox), "clearButtonTitle" in i && t(3, c = i.clearButtonTitle), "clearOnBlur" in i && t(26, m = i.clearOnBlur), "collapsed" in i && t(4, b = i.collapsed), "country" in i && t(27, y = i.country), "debounceSearch" in i && t(28, E = i.debounceSearch), "enableReverse" in i && t(5, S = i.enableReverse), "errorMessage" in i && t(6, T = i.errorMessage), "filter" in i && t(29, M = i.filter), "flyTo" in i && t(30, k = i.flyTo), "fuzzyMatch" in i && t(31, z = i.fuzzyMatch), "language" in i && t(32, G = i.language), "limit" in i && t(33, O = i.limit), "mapController" in i && t(34, h = i.mapController), "minLength" in i && t(35, g = i.minLength), "noResultsMessage" in i && t(7, C = i.noResultsMessage), "placeholder" in i && t(8, R = i.placeholder), "proximity" in i && t(23, _ = i.proximity), "reverseActive" in i && t(0, w = i.reverseActive), "reverseButtonTitle" in i && t(9, H = i.reverseButtonTitle), "searchValue" in i && t(1, u = i.searchValue), "showFullGeometry" in i && t(36, A = i.showFullGeometry), "showPlaceType" in i && t(10, Y = i.showPlaceType), "showResultsWhileTyping" in i && t(37, ce = i.showResultsWhileTyping), "trackProximity" in i && t(38, Re = i.trackProximity), "types" in i && t(39, fe = i.types), "zoom" in i && t(40, Le = i.zoom), "maxZoom" in i && t(41, pe = i.maxZoom), "apiUrl" in i && t(42, Ae = i.apiUrl), "fetchParameters" in i && t(43, We = i.fetchParameters), "$$scope" in i && t(51, a = i.$$scope);
1449
+ }, n.$$.update = () => {
1450
+ if (n.$$.dirty[1] & /*trackProximity*/
1451
+ 128 && (Re || t(23, _ = void 0)), n.$$.dirty[0] & /*focused, clearOnBlur*/
1452
+ 67110912 && setTimeout(() => {
1453
+ t(14, Ie = ge), m && !ge && t(1, u = "");
1454
+ }), n.$$.dirty[0] & /*searchValue, listFeatures*/
1455
+ 4098 | n.$$.dirty[1] & /*minLength*/
1456
+ 16 && u.length < g && (t(48, p = void 0), t(12, L = void 0), t(16, J = void 0), t(47, U = L)), n.$$.dirty[1] & /*showFullGeometry, picked*/
1457
+ 131104 && A && p && !p.address && p.geometry.type === "Point" && je(p.id, { byId: !0 }).catch((i) => t(16, J = i)), n.$$.dirty[0] & /*flyTo*/
1458
+ 1073741824 | n.$$.dirty[1] & /*mapController, picked, prevIdToFly, maxZoom, zoom*/
1459
+ 394760 && (h && p && p.id !== Ne && k && (!p.bbox || p.bbox[0] === p.bbox[2] && p.bbox[1] === p.bbox[3] ? h.flyTo(p.center, p.id.startsWith("poi.") || p.id.startsWith("address.") ? pe : Le) : h.fitBounds(ct(p.bbox), 50, pe), t(12, L = void 0), t(47, U = void 0), t(13, N = -1)), t(49, Ne = p == null ? void 0 : p.id)), n.$$.dirty[0] & /*listFeatures*/
1460
+ 4096 | n.$$.dirty[1] & /*markedFeatures*/
1461
+ 65536 && U !== L && t(47, U = void 0), n.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1462
+ 196616 && h && h.setMarkers(U, p), n.$$.dirty[0] & /*searchValue*/
1463
+ 2 && t(13, N = -1), n.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1464
+ 20481 | n.$$.dirty[1] & /*mapController, trackProximity*/
1465
+ 136 && h && h.setEventHandler((i) => {
1454
1466
  switch (i.type) {
1455
1467
  case "mapClick":
1456
- w && kt(i.coordinates);
1468
+ w && pt(i.coordinates);
1457
1469
  break;
1458
1470
  case "proximityChange":
1459
- n(22, m = Le ? i.proximity : void 0);
1471
+ t(23, _ = Re ? i.proximity : void 0);
1460
1472
  break;
1461
1473
  case "markerClick":
1462
1474
  {
1463
- const j = R == null ? void 0 : R.find((X) => X.id === i.id);
1475
+ const j = L == null ? void 0 : L.find((X) => X.id === i.id);
1464
1476
  j && Ge(j);
1465
1477
  }
1466
1478
  break;
1467
1479
  case "markerMouseEnter":
1468
- n(13, N = ze ? (R == null ? void 0 : R.findIndex((j) => j.id === i.id)) ?? -1 : -1);
1480
+ t(13, N = Ie ? (L == null ? void 0 : L.findIndex((j) => j.id === i.id)) ?? -1 : -1);
1469
1481
  break;
1470
1482
  case "markerMouseLeave":
1471
- n(13, N = -1);
1483
+ t(13, N = -1);
1472
1484
  break;
1473
1485
  }
1474
- }), t.$$.dirty[0] & /*selectedItemIndex*/
1475
- 8192 | t.$$.dirty[1] & /*mapController*/
1476
- 4 && (h == null || h.setSelectedMarker(N)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1477
- 12288 && n(48, r = R == null ? void 0 : R[N]), t.$$.dirty[0] & /*searchValue*/
1478
- 2 | t.$$.dirty[1] & /*mapController*/
1479
- 4) {
1486
+ }), n.$$.dirty[0] & /*selectedItemIndex*/
1487
+ 8192 | n.$$.dirty[1] & /*mapController*/
1488
+ 8 && (h == null || h.setSelectedMarker(N)), n.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1489
+ 12288 && t(50, r = L == null ? void 0 : L[N]), n.$$.dirty[0] & /*searchValue*/
1490
+ 2 | n.$$.dirty[1] & /*mapController*/
1491
+ 8) {
1480
1492
  const i = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(u);
1481
1493
  h == null || h.setReverseMarker(i ? [Number(i[1]), Number(i[2])] : void 0);
1482
1494
  }
1483
- t.$$.dirty[1] & /*selected*/
1484
- 131072 && te("select", r), t.$$.dirty[1] & /*picked*/
1485
- 65536 && te("pick", E), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1486
- 20480 && te("optionsVisibilityChange", ze && !!R), t.$$.dirty[0] & /*listFeatures*/
1487
- 4096 && te("featuresListed", R), t.$$.dirty[1] & /*markedFeatures*/
1488
- 32768 && te("featuresMarked", U), t.$$.dirty[0] & /*reverseActive*/
1489
- 1 && te("reverseToggle", w), t.$$.dirty[0] & /*searchValue*/
1490
- 2 && te("queryChange", u), t.$$.dirty[0] & /*reverseActive*/
1491
- 1 | t.$$.dirty[1] & /*mapController*/
1492
- 4 && h && h.indicateReverse(w);
1495
+ n.$$.dirty[1] & /*selected*/
1496
+ 524288 && te("select", r), n.$$.dirty[1] & /*picked*/
1497
+ 131072 && te("pick", p), n.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1498
+ 20480 && te("optionsVisibilityChange", Ie && !!L), n.$$.dirty[0] & /*listFeatures*/
1499
+ 4096 && te("featuresListed", L), n.$$.dirty[1] & /*markedFeatures*/
1500
+ 65536 && te("featuresMarked", U), n.$$.dirty[0] & /*reverseActive*/
1501
+ 1 && te("reverseToggle", w), n.$$.dirty[0] & /*searchValue*/
1502
+ 2 && te("queryChange", u), n.$$.dirty[0] & /*reverseActive*/
1503
+ 1 | n.$$.dirty[1] & /*mapController*/
1504
+ 8 && h && h.indicateReverse(w);
1493
1505
  }, [
1494
1506
  w,
1495
1507
  u,
1496
1508
  s,
1497
- f,
1498
- k,
1499
- z,
1500
- p,
1509
+ c,
1510
+ b,
1511
+ S,
1501
1512
  T,
1502
- M,
1513
+ C,
1514
+ R,
1503
1515
  H,
1504
1516
  Y,
1505
1517
  ge,
1506
- R,
1518
+ L,
1507
1519
  N,
1508
- ze,
1520
+ Ie,
1509
1521
  Q,
1510
1522
  J,
1511
1523
  ue,
1512
- Qe,
1513
- vt,
1514
- je,
1524
+ kt,
1525
+ Je,
1526
+ Tt,
1527
+ Fe,
1515
1528
  Ge,
1516
- m,
1517
- c,
1518
- d,
1519
1529
  _,
1520
- b,
1521
- L,
1522
- g,
1523
- W,
1524
- B,
1530
+ f,
1531
+ d,
1532
+ m,
1533
+ y,
1534
+ E,
1535
+ M,
1536
+ k,
1537
+ z,
1538
+ G,
1525
1539
  O,
1526
- F,
1527
1540
  h,
1528
- y,
1541
+ g,
1529
1542
  A,
1530
1543
  ce,
1531
- Le,
1544
+ Re,
1532
1545
  fe,
1533
- Ee,
1546
+ Le,
1534
1547
  pe,
1535
- Ie,
1548
+ Ae,
1536
1549
  We,
1537
- yt,
1538
1550
  bt,
1539
- Ve,
1551
+ wt,
1552
+ He,
1540
1553
  U,
1541
- E,
1554
+ p,
1555
+ Ne,
1542
1556
  r,
1543
1557
  a,
1544
1558
  l,
1545
- pt,
1546
- Tt,
1547
1559
  Mt,
1560
+ Ct,
1548
1561
  Rt,
1549
1562
  Lt,
1550
1563
  Et,
1551
- Ct,
1564
+ It,
1565
+ St,
1552
1566
  zt,
1553
1567
  Bt,
1554
1568
  Pt,
1555
- St,
1556
1569
  At,
1557
- It
1570
+ Wt,
1571
+ Nt
1558
1572
  ];
1559
1573
  }
1560
- class zn extends me {
1574
+ class zn extends _e {
1561
1575
  constructor(e) {
1562
- super(), _e(
1576
+ super(), me(
1563
1577
  this,
1564
1578
  e,
1565
- Cn,
1566
- Ln,
1579
+ Sn,
1580
+ En,
1567
1581
  he,
1568
1582
  {
1569
1583
  class: 2,
1570
- apiKey: 23,
1571
- bbox: 24,
1584
+ apiKey: 24,
1585
+ bbox: 25,
1572
1586
  clearButtonTitle: 3,
1573
- clearOnBlur: 25,
1587
+ clearOnBlur: 26,
1574
1588
  collapsed: 4,
1575
- country: 26,
1576
- debounceSearch: 27,
1589
+ country: 27,
1590
+ debounceSearch: 28,
1577
1591
  enableReverse: 5,
1578
1592
  errorMessage: 6,
1579
- filter: 28,
1580
- flyTo: 29,
1581
- fuzzyMatch: 30,
1582
- language: 31,
1583
- limit: 32,
1584
- mapController: 33,
1585
- minLength: 34,
1593
+ filter: 29,
1594
+ flyTo: 30,
1595
+ fuzzyMatch: 31,
1596
+ language: 32,
1597
+ limit: 33,
1598
+ mapController: 34,
1599
+ minLength: 35,
1586
1600
  noResultsMessage: 7,
1587
1601
  placeholder: 8,
1588
- proximity: 22,
1602
+ proximity: 23,
1589
1603
  reverseActive: 0,
1590
1604
  reverseButtonTitle: 9,
1591
1605
  searchValue: 1,
1592
- showFullGeometry: 35,
1606
+ showFullGeometry: 36,
1593
1607
  showPlaceType: 10,
1594
- showResultsWhileTyping: 36,
1595
- trackProximity: 37,
1596
- types: 38,
1597
- zoom: 39,
1598
- maxZoom: 40,
1599
- apiUrl: 41,
1600
- fetchParameters: 42,
1601
- focus: 43,
1602
- blur: 44,
1603
- setQuery: 45
1608
+ showResultsWhileTyping: 37,
1609
+ trackProximity: 38,
1610
+ types: 39,
1611
+ zoom: 40,
1612
+ maxZoom: 41,
1613
+ apiUrl: 42,
1614
+ fetchParameters: 43,
1615
+ focus: 44,
1616
+ blur: 45,
1617
+ setQuery: 46
1604
1618
  },
1605
1619
  null,
1606
1620
  [-1, -1, -1]
1607
1621
  );
1608
1622
  }
1609
1623
  get focus() {
1610
- return this.$$.ctx[43];
1624
+ return this.$$.ctx[44];
1611
1625
  }
1612
1626
  get blur() {
1613
- return this.$$.ctx[44];
1627
+ return this.$$.ctx[45];
1614
1628
  }
1615
1629
  get setQuery() {
1616
- return this.$$.ctx[45];
1630
+ return this.$$.ctx[46];
1617
1631
  }
1618
1632
  }
1619
- const ct = [
1633
+ const ft = [
1620
1634
  "featuresListed",
1621
1635
  "featuresMarked",
1622
1636
  "optionsVisibilityChange",
@@ -1652,14 +1666,14 @@ const ct = [
1652
1666
  "zoom",
1653
1667
  "mapController"
1654
1668
  ];
1655
- function ft(t) {
1656
- return "on" + t[0].toUpperCase() + t.slice(1);
1657
- }
1658
- const Sn = Wt(function(e, n) {
1659
- const r = Xe(), l = Xe(), a = { ...e };
1660
- for (const s of ct)
1661
- delete a[ft(s)];
1662
- Fe(() => {
1669
+ function ut(n) {
1670
+ return "on" + n[0].toUpperCase() + n.slice(1);
1671
+ }
1672
+ const An = jt(function(e, t) {
1673
+ const r = Ye(), l = Ye(), a = { ...e };
1674
+ for (const s of ft)
1675
+ delete a[ut(s)];
1676
+ Ue(() => {
1663
1677
  if (!r.current)
1664
1678
  throw new Error();
1665
1679
  const s = new zn({
@@ -1669,25 +1683,25 @@ const Sn = Wt(function(e, n) {
1669
1683
  return l.current = s, () => s.$destroy();
1670
1684
  }, []);
1671
1685
  for (const s of Bn)
1672
- Fe(() => {
1686
+ Ue(() => {
1673
1687
  l.current && e[s] !== void 0 && l.current.$set({ [s]: e[s] });
1674
1688
  }, [e[s]]);
1675
- for (const s of ct) {
1676
- const c = e[ft(s)];
1677
- Fe(() => {
1689
+ for (const s of ft) {
1690
+ const f = e[ut(s)];
1691
+ Ue(() => {
1678
1692
  var d;
1679
1693
  (d = l.current) == null || d.$on(
1680
1694
  s,
1681
- c ? (f) => {
1682
- c(f.detail);
1695
+ f ? (c) => {
1696
+ f(c.detail);
1683
1697
  } : void 0
1684
1698
  );
1685
- }, [c]);
1699
+ }, [f]);
1686
1700
  }
1687
- return Nt(n, () => ({
1688
- setQuery: (s, c = !0) => {
1701
+ return Ft(t, () => ({
1702
+ setQuery: (s, f = !0) => {
1689
1703
  var d;
1690
- return (d = l.current) == null ? void 0 : d.setQuery(s, c);
1704
+ return (d = l.current) == null ? void 0 : d.setQuery(s, f);
1691
1705
  },
1692
1706
  focus: () => {
1693
1707
  var s;
@@ -1697,9 +1711,9 @@ const Sn = Wt(function(e, n) {
1697
1711
  var s;
1698
1712
  return (s = l.current) == null ? void 0 : s.blur();
1699
1713
  }
1700
- })), jt("div", { ref: r });
1714
+ })), Gt("div", { ref: r });
1701
1715
  });
1702
1716
  export {
1703
- Sn as GeocodingControl
1717
+ An as GeocodingControl
1704
1718
  };
1705
1719
  //# sourceMappingURL=react.js.map