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

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/vanilla.js CHANGED
@@ -1,54 +1,54 @@
1
- var Ei = Object.defineProperty;
2
- var Si = Object.getPrototypeOf;
3
- var Ni = Reflect.get;
4
- var St = (i) => {
1
+ var ki = Object.defineProperty;
2
+ var Mi = Object.getPrototypeOf;
3
+ var Ci = Reflect.get;
4
+ var kt = (i) => {
5
5
  throw TypeError(i);
6
6
  };
7
- var ki = (i, e, t) => e in i ? Ei(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
- var lt = (i, e, t) => ki(i, typeof e != "symbol" ? e + "" : e, t), ut = (i, e, t) => e.has(i) || St("Cannot " + t);
9
- var ie = (i, e, t) => (ut(i, e, "read from private field"), t ? t.call(i) : e.get(i)), ct = (i, e, t) => e.has(i) ? St("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Nt = (i, e, t, n) => (ut(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), kt = (i, e, t) => (ut(i, e, "access private method"), t);
10
- var Mt = (i, e, t) => Ni(Si(i), t, e);
7
+ var Wi = (i, e, t) => e in i ? ki(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
+ var dt = (i, e, t) => Wi(i, typeof e != "symbol" ? e + "" : e, t), ft = (i, e, t) => e.has(i) || kt("Cannot " + t);
9
+ var ne = (i, e, t) => (ft(i, e, "read from private field"), t ? t.call(i) : e.get(i)), mt = (i, e, t) => e.has(i) ? kt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Mt = (i, e, t, n) => (ft(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), Ct = (i, e, t) => (ft(i, e, "access private method"), t);
10
+ var Wt = (i, e, t) => Ci(Mi(i), t, e);
11
11
  function P() {
12
12
  }
13
- function Mi(i, e) {
13
+ function zi(i, e) {
14
14
  for (const t in e) i[t] = e[t];
15
15
  return (
16
16
  /** @type {T & S} */
17
17
  i
18
18
  );
19
19
  }
20
- function Qt(i) {
20
+ function Jt(i) {
21
21
  return i();
22
22
  }
23
- function Tt() {
23
+ function zt() {
24
24
  return /* @__PURE__ */ Object.create(null);
25
25
  }
26
- function ce(i) {
27
- i.forEach(Qt);
26
+ function de(i) {
27
+ i.forEach(Jt);
28
28
  }
29
- function Kt(i) {
29
+ function Xt(i) {
30
30
  return typeof i == "function";
31
31
  }
32
- function ve(i, e) {
32
+ function we(i, e) {
33
33
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
34
34
  }
35
- let Ze;
36
- function J(i, e) {
37
- return i === e ? !0 : (Ze || (Ze = document.createElement("a")), Ze.href = e, i === Ze.href);
35
+ let Qe;
36
+ function X(i, e) {
37
+ return i === e ? !0 : (Qe || (Qe = document.createElement("a")), Qe.href = e, i === Qe.href);
38
38
  }
39
- function Ti(i) {
39
+ function Oi(i) {
40
40
  return Object.keys(i).length === 0;
41
41
  }
42
- function Ci(i, e, t, n) {
42
+ function Ri(i, e, t, n) {
43
43
  if (i) {
44
- const r = Vt(i, e, t, n);
44
+ const r = Yt(i, e, t, n);
45
45
  return i[0](r);
46
46
  }
47
47
  }
48
- function Vt(i, e, t, n) {
49
- return i[1] && n ? Mi(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
+ function Yt(i, e, t, n) {
49
+ return i[1] && n ? zi(t.ctx.slice(), i[1](n(e))) : t.ctx;
50
50
  }
51
- function Wi(i, e, t, n) {
51
+ function Di(i, e, t, n) {
52
52
  if (i[2] && n) {
53
53
  const r = i[2](n(t));
54
54
  if (e.dirty === void 0)
@@ -63,13 +63,13 @@ function Wi(i, e, t, n) {
63
63
  }
64
64
  return e.dirty;
65
65
  }
66
- function zi(i, e, t, n, r, l) {
66
+ function Ui(i, e, t, n, r, l) {
67
67
  if (r) {
68
- const c = Vt(e, t, n, l);
68
+ const c = Yt(e, t, n, l);
69
69
  i.p(c, r);
70
70
  }
71
71
  }
72
- function Oi(i) {
72
+ function Ii(i) {
73
73
  if (i.ctx.length > 32) {
74
74
  const e = [], t = i.ctx.length / 32;
75
75
  for (let n = 0; n < t; n++)
@@ -78,10 +78,10 @@ function Oi(i) {
78
78
  }
79
79
  return -1;
80
80
  }
81
- function Ke(i) {
81
+ function Xe(i) {
82
82
  return i ?? "";
83
83
  }
84
- function k(i, e) {
84
+ function N(i, e) {
85
85
  i.appendChild(e);
86
86
  }
87
87
  function j(i, e, t) {
@@ -90,25 +90,25 @@ function j(i, e, t) {
90
90
  function A(i) {
91
91
  i.parentNode && i.parentNode.removeChild(i);
92
92
  }
93
- function U(i) {
93
+ function D(i) {
94
94
  return document.createElement(i);
95
95
  }
96
- function ae(i) {
96
+ function le(i) {
97
97
  return document.createElementNS("http://www.w3.org/2000/svg", i);
98
98
  }
99
- function fe(i) {
99
+ function he(i) {
100
100
  return document.createTextNode(i);
101
101
  }
102
- function $() {
103
- return fe(" ");
102
+ function x() {
103
+ return he(" ");
104
104
  }
105
- function Ri() {
106
- return fe("");
105
+ function Ai() {
106
+ return he("");
107
107
  }
108
108
  function Q(i, e, t, n) {
109
109
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
110
110
  }
111
- function Di(i) {
111
+ function Bi(i) {
112
112
  return function(e) {
113
113
  return e.preventDefault(), i.call(this, e);
114
114
  };
@@ -116,39 +116,39 @@ function Di(i) {
116
116
  function a(i, e, t) {
117
117
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
118
118
  }
119
- function Ui(i) {
119
+ function Pi(i) {
120
120
  return Array.from(i.childNodes);
121
121
  }
122
- function Oe(i, e) {
122
+ function Ue(i, e) {
123
123
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
124
124
  e);
125
125
  }
126
- function Ct(i, e) {
126
+ function Ot(i, e) {
127
127
  i.value = e ?? "";
128
128
  }
129
- function Ne(i, e, t) {
129
+ function ke(i, e, t) {
130
130
  i.classList.toggle(e, !!t);
131
131
  }
132
- function Ii(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
132
+ function ji(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
133
133
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
134
134
  }
135
- let Re;
136
- function ze(i) {
137
- Re = i;
135
+ let Ie;
136
+ function De(i) {
137
+ Ie = i;
138
138
  }
139
- function Jt() {
140
- if (!Re) throw new Error("Function called outside component initialization");
141
- return Re;
139
+ function xt() {
140
+ if (!Ie) throw new Error("Function called outside component initialization");
141
+ return Ie;
142
142
  }
143
- function Ai(i) {
144
- Jt().$$.on_destroy.push(i);
143
+ function Fi(i) {
144
+ xt().$$.on_destroy.push(i);
145
145
  }
146
- function Xt() {
147
- const i = Jt();
146
+ function $t() {
147
+ const i = xt();
148
148
  return (e, t, { cancelable: n = !1 } = {}) => {
149
149
  const r = i.$$.callbacks[e];
150
150
  if (r) {
151
- const l = Ii(
151
+ const l = ji(
152
152
  /** @type {string} */
153
153
  e,
154
154
  t,
@@ -161,134 +161,134 @@ function Xt() {
161
161
  return !0;
162
162
  };
163
163
  }
164
- function Bi(i, e) {
164
+ function Hi(i, e) {
165
165
  const t = i.$$.callbacks[e.type];
166
166
  t && t.slice().forEach((n) => n.call(this, e));
167
167
  }
168
- const Se = [], ft = [];
169
- let ke = [];
170
- const Wt = [], Pi = /* @__PURE__ */ Promise.resolve();
171
- let mt = !1;
172
- function ji() {
173
- mt || (mt = !0, Pi.then(Yt));
168
+ const Ne = [], ht = [];
169
+ let Me = [];
170
+ const Rt = [], Zi = /* @__PURE__ */ Promise.resolve();
171
+ let bt = !1;
172
+ function qi() {
173
+ bt || (bt = !0, Zi.then(ei));
174
174
  }
175
- function gt(i) {
176
- ke.push(i);
175
+ function vt(i) {
176
+ Me.push(i);
177
177
  }
178
- const dt = /* @__PURE__ */ new Set();
179
- let Ee = 0;
180
- function Yt() {
181
- if (Ee !== 0)
178
+ const gt = /* @__PURE__ */ new Set();
179
+ let Te = 0;
180
+ function ei() {
181
+ if (Te !== 0)
182
182
  return;
183
- const i = Re;
183
+ const i = Ie;
184
184
  do {
185
185
  try {
186
- for (; Ee < Se.length; ) {
187
- const e = Se[Ee];
188
- Ee++, ze(e), Fi(e.$$);
186
+ for (; Te < Ne.length; ) {
187
+ const e = Ne[Te];
188
+ Te++, De(e), Gi(e.$$);
189
189
  }
190
190
  } catch (e) {
191
- throw Se.length = 0, Ee = 0, e;
191
+ throw Ne.length = 0, Te = 0, e;
192
192
  }
193
- for (ze(null), Se.length = 0, Ee = 0; ft.length; ) ft.pop()();
194
- for (let e = 0; e < ke.length; e += 1) {
195
- const t = ke[e];
196
- dt.has(t) || (dt.add(t), t());
193
+ for (De(null), Ne.length = 0, Te = 0; ht.length; ) ht.pop()();
194
+ for (let e = 0; e < Me.length; e += 1) {
195
+ const t = Me[e];
196
+ gt.has(t) || (gt.add(t), t());
197
197
  }
198
- ke.length = 0;
199
- } while (Se.length);
200
- for (; Wt.length; )
201
- Wt.pop()();
202
- mt = !1, dt.clear(), ze(i);
198
+ Me.length = 0;
199
+ } while (Ne.length);
200
+ for (; Rt.length; )
201
+ Rt.pop()();
202
+ bt = !1, gt.clear(), De(i);
203
203
  }
204
- function Fi(i) {
204
+ function Gi(i) {
205
205
  if (i.fragment !== null) {
206
- i.update(), ce(i.before_update);
206
+ i.update(), de(i.before_update);
207
207
  const e = i.dirty;
208
- i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(gt);
208
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(vt);
209
209
  }
210
210
  }
211
- function Hi(i) {
211
+ function Qi(i) {
212
212
  const e = [], t = [];
213
- ke.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ke = e;
213
+ Me.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Me = e;
214
214
  }
215
- const qe = /* @__PURE__ */ new Set();
216
- let be;
217
- function Ge() {
218
- be = {
215
+ const Ke = /* @__PURE__ */ new Set();
216
+ let ye;
217
+ function Ve() {
218
+ ye = {
219
219
  r: 0,
220
220
  c: [],
221
- p: be
221
+ p: ye
222
222
  // parent group
223
223
  };
224
224
  }
225
- function Qe() {
226
- be.r || ce(be.c), be = be.p;
225
+ function Je() {
226
+ ye.r || de(ye.c), ye = ye.p;
227
227
  }
228
- function H(i, e) {
229
- i && i.i && (qe.delete(i), i.i(e));
228
+ function Z(i, e) {
229
+ i && i.i && (Ke.delete(i), i.i(e));
230
230
  }
231
231
  function K(i, e, t, n) {
232
232
  if (i && i.o) {
233
- if (qe.has(i)) return;
234
- qe.add(i), be.c.push(() => {
235
- qe.delete(i), n && (t && i.d(1), n());
233
+ if (Ke.has(i)) return;
234
+ Ke.add(i), ye.c.push(() => {
235
+ Ke.delete(i), n && (t && i.d(1), n());
236
236
  }), i.o(e);
237
237
  } else n && n();
238
238
  }
239
- function zt(i) {
239
+ function Dt(i) {
240
240
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
241
241
  }
242
- function Zi(i, e) {
242
+ function Ki(i, e) {
243
243
  K(i, 1, 1, () => {
244
244
  e.delete(i.key);
245
245
  });
246
246
  }
247
- function qi(i, e, t, n, r, l, c, o, d, u, f, g) {
248
- let b = i.length, _ = l.length, p = b;
247
+ function Vi(i, e, t, n, r, l, c, o, d, u, f, g) {
248
+ let b = i.length, _ = l.length, w = b;
249
249
  const I = {};
250
- for (; p--; ) I[i[p].key] = p;
251
- const E = [], S = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), W = [];
252
- for (p = _; p--; ) {
253
- const L = g(r, l, p), y = t(L);
254
- let T = c.get(y);
255
- T ? W.push(() => T.p(L, e)) : (T = u(y, L), T.c()), S.set(y, E[p] = T), y in I && z.set(y, Math.abs(p - I[y]));
250
+ for (; w--; ) I[i[w].key] = w;
251
+ const S = [], T = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), C = [];
252
+ for (w = _; w--; ) {
253
+ const L = g(r, l, w), y = t(L);
254
+ let M = c.get(y);
255
+ M ? C.push(() => M.p(L, e)) : (M = u(y, L), M.c()), T.set(y, S[w] = M), y in I && z.set(y, Math.abs(w - I[y]));
256
256
  }
257
- const G = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
258
- function M(L) {
259
- H(L, 1), L.m(o, f), c.set(L.key, L), f = L.first, _--;
257
+ const G = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
258
+ function k(L) {
259
+ Z(L, 1), L.m(o, f), c.set(L.key, L), f = L.first, _--;
260
260
  }
261
261
  for (; b && _; ) {
262
- const L = E[_ - 1], y = i[b - 1], T = L.key, m = y.key;
263
- L === y ? (f = L.first, b--, _--) : S.has(m) ? !c.has(T) || G.has(T) ? M(L) : V.has(m) ? b-- : z.get(T) > z.get(m) ? (V.add(T), M(L)) : (G.add(m), b--) : (d(y, c), b--);
262
+ const L = S[_ - 1], y = i[b - 1], M = L.key, m = y.key;
263
+ L === y ? (f = L.first, b--, _--) : T.has(m) ? !c.has(M) || G.has(M) ? k(L) : J.has(m) ? b-- : z.get(M) > z.get(m) ? (J.add(M), k(L)) : (G.add(m), b--) : (d(y, c), b--);
264
264
  }
265
265
  for (; b--; ) {
266
266
  const L = i[b];
267
- S.has(L.key) || d(L, c);
267
+ T.has(L.key) || d(L, c);
268
268
  }
269
- for (; _; ) M(E[_ - 1]);
270
- return ce(W), E;
269
+ for (; _; ) k(S[_ - 1]);
270
+ return de(C), S;
271
271
  }
272
- function me(i) {
272
+ function be(i) {
273
273
  i && i.c();
274
274
  }
275
- function le(i, e, t) {
275
+ function ue(i, e, t) {
276
276
  const { fragment: n, after_update: r } = i.$$;
277
- n && n.m(e, t), gt(() => {
278
- const l = i.$$.on_mount.map(Qt).filter(Kt);
279
- i.$$.on_destroy ? i.$$.on_destroy.push(...l) : ce(l), i.$$.on_mount = [];
280
- }), r.forEach(gt);
277
+ n && n.m(e, t), vt(() => {
278
+ const l = i.$$.on_mount.map(Jt).filter(Xt);
279
+ i.$$.on_destroy ? i.$$.on_destroy.push(...l) : de(l), i.$$.on_mount = [];
280
+ }), r.forEach(vt);
281
281
  }
282
- function ue(i, e) {
282
+ function ce(i, e) {
283
283
  const t = i.$$;
284
- t.fragment !== null && (Hi(t.after_update), ce(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
284
+ t.fragment !== null && (Qi(t.after_update), de(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
285
285
  }
286
- function Gi(i, e) {
287
- i.$$.dirty[0] === -1 && (Se.push(i), ji(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
+ function Ji(i, e) {
287
+ i.$$.dirty[0] === -1 && (Ne.push(i), qi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
288
288
  }
289
- function Le(i, e, t, n, r, l, c = null, o = [-1]) {
290
- const d = Re;
291
- ze(i);
289
+ function pe(i, e, t, n, r, l, c = null, o = [-1]) {
290
+ const d = Ie;
291
+ De(i);
292
292
  const u = i.$$ = {
293
293
  fragment: null,
294
294
  ctx: [],
@@ -296,7 +296,7 @@ function Le(i, e, t, n, r, l, c = null, o = [-1]) {
296
296
  props: l,
297
297
  update: P,
298
298
  not_equal: r,
299
- bound: Tt(),
299
+ bound: zt(),
300
300
  // lifecycle
301
301
  on_mount: [],
302
302
  on_destroy: [],
@@ -305,7 +305,7 @@ function Le(i, e, t, n, r, l, c = null, o = [-1]) {
305
305
  after_update: [],
306
306
  context: new Map(e.context || (d ? d.$$.context : [])),
307
307
  // everything else
308
- callbacks: Tt(),
308
+ callbacks: zt(),
309
309
  dirty: o,
310
310
  skip_bound: !1,
311
311
  root: e.target || d.$$.root
@@ -313,19 +313,19 @@ function Le(i, e, t, n, r, l, c = null, o = [-1]) {
313
313
  c && c(u.root);
314
314
  let f = !1;
315
315
  if (u.ctx = t ? t(i, e.props || {}, (g, b, ..._) => {
316
- const p = _.length ? _[0] : b;
317
- return u.ctx && r(u.ctx[g], u.ctx[g] = p) && (!u.skip_bound && u.bound[g] && u.bound[g](p), f && Gi(i, g)), b;
318
- }) : [], u.update(), f = !0, ce(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
316
+ const w = _.length ? _[0] : b;
317
+ return u.ctx && r(u.ctx[g], u.ctx[g] = w) && (!u.skip_bound && u.bound[g] && u.bound[g](w), f && Ji(i, g)), b;
318
+ }) : [], u.update(), f = !0, de(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
319
319
  if (e.hydrate) {
320
- const g = Ui(e.target);
320
+ const g = Pi(e.target);
321
321
  u.fragment && u.fragment.l(g), g.forEach(A);
322
322
  } else
323
323
  u.fragment && u.fragment.c();
324
- e.intro && H(i.$$.fragment), le(i, e.target, e.anchor), Yt();
324
+ e.intro && Z(i.$$.fragment), ue(i, e.target, e.anchor), ei();
325
325
  }
326
- ze(d);
326
+ De(d);
327
327
  }
328
- class _e {
328
+ class Ee {
329
329
  constructor() {
330
330
  /**
331
331
  * ### PRIVATE API
@@ -334,7 +334,7 @@ class _e {
334
334
  *
335
335
  * @type {any}
336
336
  */
337
- lt(this, "$$");
337
+ dt(this, "$$");
338
338
  /**
339
339
  * ### PRIVATE API
340
340
  *
@@ -342,11 +342,11 @@ class _e {
342
342
  *
343
343
  * @type {any}
344
344
  */
345
- lt(this, "$$set");
345
+ dt(this, "$$set");
346
346
  }
347
347
  /** @returns {void} */
348
348
  $destroy() {
349
- ue(this, 1), this.$destroy = P;
349
+ ce(this, 1), this.$destroy = P;
350
350
  }
351
351
  /**
352
352
  * @template {Extract<keyof Events, string>} K
@@ -355,7 +355,7 @@ class _e {
355
355
  * @returns {() => void}
356
356
  */
357
357
  $on(e, t) {
358
- if (!Kt(t))
358
+ if (!Xt(t))
359
359
  return P;
360
360
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
361
361
  return n.push(t), () => {
@@ -368,19 +368,19 @@ class _e {
368
368
  * @returns {void}
369
369
  */
370
370
  $set(e) {
371
- this.$$set && !Ti(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
371
+ this.$$set && !Oi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
372
372
  }
373
373
  }
374
- const Qi = "4";
375
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qi);
376
- function Ki(i) {
374
+ const Xi = "4";
375
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xi);
376
+ function Yi(i) {
377
377
  let e, t;
378
378
  return {
379
379
  c() {
380
- e = ae("svg"), t = ae("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
380
+ e = le("svg"), t = le("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
381
381
  },
382
382
  m(n, r) {
383
- j(n, e, r), k(e, t);
383
+ j(n, e, r), N(e, t);
384
384
  },
385
385
  p: P,
386
386
  i: P,
@@ -390,19 +390,19 @@ function Ki(i) {
390
390
  }
391
391
  };
392
392
  }
393
- class xt extends _e {
393
+ class ti extends Ee {
394
394
  constructor(e) {
395
- super(), Le(this, e, null, Ki, ve, {});
395
+ super(), pe(this, e, null, Yi, we, {});
396
396
  }
397
397
  }
398
- function Vi(i) {
398
+ function xi(i) {
399
399
  let e, t;
400
400
  return {
401
401
  c() {
402
- e = ae("svg"), t = ae("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
402
+ e = le("svg"), t = le("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
403
403
  },
404
404
  m(n, r) {
405
- j(n, e, r), k(e, t);
405
+ j(n, e, r), N(e, t);
406
406
  },
407
407
  p: P,
408
408
  i: P,
@@ -412,16 +412,16 @@ function Vi(i) {
412
412
  }
413
413
  };
414
414
  }
415
- class $t extends _e {
415
+ class ii extends Ee {
416
416
  constructor(e) {
417
- super(), Le(this, e, null, Vi, ve, {});
417
+ super(), pe(this, e, null, xi, we, {});
418
418
  }
419
419
  }
420
- function Ji(i) {
420
+ function $i(i) {
421
421
  let e, t;
422
422
  return {
423
423
  c() {
424
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
424
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
425
425
  i[3] + "area.svg") || a(e, "src", t), a(
426
426
  e,
427
427
  "alt",
@@ -439,7 +439,7 @@ function Ji(i) {
439
439
  },
440
440
  p(n, r) {
441
441
  r & /*iconsBaseUrl*/
442
- 8 && !J(e.src, t = /*iconsBaseUrl*/
442
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
443
443
  n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
444
444
  64 && a(
445
445
  e,
@@ -459,11 +459,11 @@ function Ji(i) {
459
459
  }
460
460
  };
461
461
  }
462
- function Xi(i) {
462
+ function en(i) {
463
463
  let e, t;
464
464
  return {
465
465
  c() {
466
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
466
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
467
467
  i[3] + "reverse.svg") || a(e, "src", t), a(
468
468
  e,
469
469
  "alt",
@@ -481,7 +481,7 @@ function Xi(i) {
481
481
  },
482
482
  p(n, r) {
483
483
  r & /*iconsBaseUrl*/
484
- 8 && !J(e.src, t = /*iconsBaseUrl*/
484
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
485
485
  n[3] + "reverse.svg") && a(e, "src", t), r & /*placeType*/
486
486
  64 && a(
487
487
  e,
@@ -501,11 +501,11 @@ function Xi(i) {
501
501
  }
502
502
  };
503
503
  }
504
- function Yi(i) {
504
+ function tn(i) {
505
505
  let e, t;
506
506
  return {
507
507
  c() {
508
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
508
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
509
509
  i[3] + "poi.svg") || a(e, "src", t), a(
510
510
  e,
511
511
  "alt",
@@ -523,7 +523,7 @@ function Yi(i) {
523
523
  },
524
524
  p(n, r) {
525
525
  r & /*iconsBaseUrl*/
526
- 8 && !J(e.src, t = /*iconsBaseUrl*/
526
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
527
527
  n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
528
528
  64 && a(
529
529
  e,
@@ -543,11 +543,11 @@ function Yi(i) {
543
543
  }
544
544
  };
545
545
  }
546
- function xi(i) {
546
+ function nn(i) {
547
547
  let e, t;
548
548
  return {
549
549
  c() {
550
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
550
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
551
551
  i[3] + "postal_code.svg") || a(e, "src", t), a(
552
552
  e,
553
553
  "alt",
@@ -565,7 +565,7 @@ function xi(i) {
565
565
  },
566
566
  p(n, r) {
567
567
  r & /*iconsBaseUrl*/
568
- 8 && !J(e.src, t = /*iconsBaseUrl*/
568
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
569
569
  n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
570
570
  64 && a(
571
571
  e,
@@ -585,11 +585,11 @@ function xi(i) {
585
585
  }
586
586
  };
587
587
  }
588
- function $i(i) {
588
+ function rn(i) {
589
589
  let e, t;
590
590
  return {
591
591
  c() {
592
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
592
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
593
593
  i[3] + "street.svg") || a(e, "src", t), a(
594
594
  e,
595
595
  "alt",
@@ -607,7 +607,7 @@ function $i(i) {
607
607
  },
608
608
  p(n, r) {
609
609
  r & /*iconsBaseUrl*/
610
- 8 && !J(e.src, t = /*iconsBaseUrl*/
610
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
611
611
  n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
612
612
  64 && a(
613
613
  e,
@@ -627,11 +627,11 @@ function $i(i) {
627
627
  }
628
628
  };
629
629
  }
630
- function en(i) {
630
+ function on(i) {
631
631
  let e, t;
632
632
  return {
633
633
  c() {
634
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
634
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
635
635
  i[3] + "road.svg") || a(e, "src", t), a(
636
636
  e,
637
637
  "alt",
@@ -649,7 +649,7 @@ function en(i) {
649
649
  },
650
650
  p(n, r) {
651
651
  r & /*iconsBaseUrl*/
652
- 8 && !J(e.src, t = /*iconsBaseUrl*/
652
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
653
653
  n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
654
654
  64 && a(
655
655
  e,
@@ -669,11 +669,11 @@ function en(i) {
669
669
  }
670
670
  };
671
671
  }
672
- function tn(i) {
672
+ function sn(i) {
673
673
  let e, t;
674
674
  return {
675
675
  c() {
676
- e = U("img"), J(e.src, t = /*iconsBaseUrl*/
676
+ e = D("img"), X(e.src, t = /*iconsBaseUrl*/
677
677
  i[3] + "housenumber.svg") || a(e, "src", t), a(
678
678
  e,
679
679
  "alt",
@@ -691,7 +691,7 @@ function tn(i) {
691
691
  },
692
692
  p(n, r) {
693
693
  r & /*iconsBaseUrl*/
694
- 8 && !J(e.src, t = /*iconsBaseUrl*/
694
+ 8 && !X(e.src, t = /*iconsBaseUrl*/
695
695
  n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
696
696
  64 && a(
697
697
  e,
@@ -711,11 +711,11 @@ function tn(i) {
711
711
  }
712
712
  };
713
713
  }
714
- function nn(i) {
714
+ function an(i) {
715
715
  let e, t, n, r;
716
716
  return {
717
717
  c() {
718
- e = U("img"), J(e.src, t = /*imageUrl*/
718
+ e = D("img"), X(e.src, t = /*imageUrl*/
719
719
  i[5]) || a(e, "src", t), a(
720
720
  e,
721
721
  "alt",
@@ -738,7 +738,7 @@ function nn(i) {
738
738
  },
739
739
  p(l, c) {
740
740
  c & /*imageUrl*/
741
- 32 && !J(e.src, t = /*imageUrl*/
741
+ 32 && !X(e.src, t = /*imageUrl*/
742
742
  l[5]) && a(e, "src", t), c & /*category*/
743
743
  16 && a(
744
744
  e,
@@ -758,21 +758,21 @@ function nn(i) {
758
758
  }
759
759
  };
760
760
  }
761
- function Ot(i) {
761
+ function Ut(i) {
762
762
  let e, t;
763
763
  return {
764
764
  c() {
765
- e = U("span"), t = fe(
765
+ e = D("span"), t = he(
766
766
  /*placeType*/
767
767
  i[6]
768
768
  ), a(e, "class", "secondary svelte-z7p9pp");
769
769
  },
770
770
  m(n, r) {
771
- j(n, e, r), k(e, t);
771
+ j(n, e, r), N(e, t);
772
772
  },
773
773
  p(n, r) {
774
774
  r & /*placeType*/
775
- 64 && Oe(
775
+ 64 && Ue(
776
776
  t,
777
777
  /*placeType*/
778
778
  n[6]
@@ -783,7 +783,7 @@ function Ot(i) {
783
783
  }
784
784
  };
785
785
  }
786
- function rn(i) {
786
+ function ln(i) {
787
787
  let e, t, n, r, l, c, o, d, u, f = (
788
788
  /*isReverse*/
789
789
  (i[8] ? (
@@ -804,43 +804,43 @@ function rn(i) {
804
804
  i[0].id.startsWith("poi.") || !/*imageUrl*/
805
805
  i[5]) && !/*isReverse*/
806
806
  i[8]
807
- ), p, I, E = (
807
+ ), w, I, S = (
808
808
  /*isReverse*/
809
809
  (i[8] ? "" : (
810
810
  /*feature*/
811
811
  i[0].place_name.replace(/[^,]*,?\s*/, "")
812
812
  )) + ""
813
- ), S, z, W, G, V, M;
814
- function L(w, R) {
815
- return R & /*feature*/
816
- 1 && (t = null), R & /*feature*/
817
- 1 && (n = null), R & /*feature*/
818
- 1 && (r = null), R & /*feature*/
813
+ ), T, z, C, G, J, k;
814
+ function L(p, O) {
815
+ return O & /*feature*/
816
+ 1 && (t = null), O & /*feature*/
817
+ 1 && (n = null), O & /*feature*/
818
+ 1 && (r = null), O & /*feature*/
819
819
  1 && (l = null), /*imageUrl*/
820
- w[5] ? nn : (
820
+ p[5] ? an : (
821
821
  /*feature*/
822
- w[0].address ? tn : (t == null && (t = !!/*feature*/
823
- w[0].id.startsWith("road.")), t ? en : (n == null && (n = !!/*feature*/
824
- w[0].id.startsWith("address.")), n ? $i : (r == null && (r = !!/*feature*/
825
- w[0].id.startsWith("postal_code.")), r ? xi : (l == null && (l = !!/*feature*/
826
- w[0].id.startsWith("poi.")), l ? Yi : (
822
+ p[0].address ? sn : (t == null && (t = !!/*feature*/
823
+ p[0].id.startsWith("road.")), t ? on : (n == null && (n = !!/*feature*/
824
+ p[0].id.startsWith("address.")), n ? rn : (r == null && (r = !!/*feature*/
825
+ p[0].id.startsWith("postal_code.")), r ? nn : (l == null && (l = !!/*feature*/
826
+ p[0].id.startsWith("poi.")), l ? tn : (
827
827
  /*isReverse*/
828
- w[8] ? Xi : Ji
828
+ p[8] ? en : $i
829
829
  )))))
830
830
  );
831
831
  }
832
- let y = L(i, -1), T = y(i), m = _ && Ot(i);
832
+ let y = L(i, -1), M = y(i), m = _ && Ut(i);
833
833
  return {
834
834
  c() {
835
- e = U("li"), T.c(), c = $(), o = U("span"), d = U("span"), u = U("span"), g = fe(f), b = $(), m && m.c(), p = $(), I = U("span"), S = fe(E), a(u, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(I, "class", "line2 svelte-z7p9pp"), a(o, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
836
- i[1] === "selected"), a(e, "aria-checked", W = /*style*/
837
- i[1] === "picked"), a(e, "class", G = Ke(
835
+ e = D("li"), M.c(), c = x(), o = D("span"), d = D("span"), u = D("span"), g = he(f), b = x(), m && m.c(), w = x(), I = D("span"), T = he(S), a(u, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(I, "class", "line2 svelte-z7p9pp"), a(o, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
836
+ i[1] === "selected"), a(e, "aria-checked", C = /*style*/
837
+ i[1] === "picked"), a(e, "class", G = Xe(
838
838
  /*style*/
839
839
  i[1]
840
840
  ) + " svelte-z7p9pp");
841
841
  },
842
- m(w, R) {
843
- j(w, e, R), T.m(e, null), k(e, c), k(e, o), k(o, d), k(d, u), k(u, g), k(d, b), m && m.m(d, null), k(o, p), k(o, I), k(I, S), V || (M = [
842
+ m(p, O) {
843
+ j(p, e, O), M.m(e, null), N(e, c), N(e, o), N(o, d), N(d, u), N(u, g), N(d, b), m && m.m(d, null), N(o, w), N(o, I), N(I, T), J || (k = [
844
844
  Q(
845
845
  e,
846
846
  "mouseenter",
@@ -859,74 +859,74 @@ function rn(i) {
859
859
  /*click_handler*/
860
860
  i[16]
861
861
  )
862
- ], V = !0);
862
+ ], J = !0);
863
863
  },
864
- p(w, [R]) {
865
- y === (y = L(w, R)) && T ? T.p(w, R) : (T.d(1), T = y(w), T && (T.c(), T.m(e, c))), R & /*feature*/
864
+ p(p, [O]) {
865
+ y === (y = L(p, O)) && M ? M.p(p, O) : (M.d(1), M = y(p), M && (M.c(), M.m(e, c))), O & /*feature*/
866
866
  1 && f !== (f = /*isReverse*/
867
- (w[8] ? (
867
+ (p[8] ? (
868
868
  /*feature*/
869
- w[0].place_name
869
+ p[0].place_name
870
870
  ) : (
871
871
  /*feature*/
872
- w[0].place_name.replace(/,.*/, "")
873
- )) + "") && Oe(g, f), R & /*showPlaceType, feature, imageUrl*/
872
+ p[0].place_name.replace(/,.*/, "")
873
+ )) + "") && Ue(g, f), O & /*showPlaceType, feature, imageUrl*/
874
874
  37 && (_ = /*showPlaceType*/
875
- w[2] === "always" || /*showPlaceType*/
876
- w[2] !== "never" && !/*feature*/
877
- w[0].address && !/*feature*/
878
- w[0].id.startsWith("road.") && !/*feature*/
879
- w[0].id.startsWith("address.") && !/*feature*/
880
- w[0].id.startsWith("postal_code.") && (!/*feature*/
881
- w[0].id.startsWith("poi.") || !/*imageUrl*/
882
- w[5]) && !/*isReverse*/
883
- w[8]), _ ? m ? m.p(w, R) : (m = Ot(w), m.c(), m.m(d, null)) : m && (m.d(1), m = null), R & /*feature*/
884
- 1 && E !== (E = /*isReverse*/
885
- (w[8] ? "" : (
875
+ p[2] === "always" || /*showPlaceType*/
876
+ p[2] !== "never" && !/*feature*/
877
+ p[0].address && !/*feature*/
878
+ p[0].id.startsWith("road.") && !/*feature*/
879
+ p[0].id.startsWith("address.") && !/*feature*/
880
+ p[0].id.startsWith("postal_code.") && (!/*feature*/
881
+ p[0].id.startsWith("poi.") || !/*imageUrl*/
882
+ p[5]) && !/*isReverse*/
883
+ p[8]), _ ? m ? m.p(p, O) : (m = Ut(p), m.c(), m.m(d, null)) : m && (m.d(1), m = null), O & /*feature*/
884
+ 1 && S !== (S = /*isReverse*/
885
+ (p[8] ? "" : (
886
886
  /*feature*/
887
- w[0].place_name.replace(/[^,]*,?\s*/, "")
888
- )) + "") && Oe(S, E), R & /*style*/
887
+ p[0].place_name.replace(/[^,]*,?\s*/, "")
888
+ )) + "") && Ue(T, S), O & /*style*/
889
889
  2 && z !== (z = /*style*/
890
- w[1] === "selected") && a(e, "aria-selected", z), R & /*style*/
891
- 2 && W !== (W = /*style*/
892
- w[1] === "picked") && a(e, "aria-checked", W), R & /*style*/
893
- 2 && G !== (G = Ke(
890
+ p[1] === "selected") && a(e, "aria-selected", z), O & /*style*/
891
+ 2 && C !== (C = /*style*/
892
+ p[1] === "picked") && a(e, "aria-checked", C), O & /*style*/
893
+ 2 && G !== (G = Xe(
894
894
  /*style*/
895
- w[1]
895
+ p[1]
896
896
  ) + " svelte-z7p9pp") && a(e, "class", G);
897
897
  },
898
898
  i: P,
899
899
  o: P,
900
- d(w) {
901
- w && A(e), T.d(), m && m.d(), V = !1, ce(M);
900
+ d(p) {
901
+ p && A(e), M.d(), m && m.d(), J = !1, de(k);
902
902
  }
903
903
  };
904
904
  }
905
- function on(i, e, t) {
906
- var V;
905
+ function un(i, e, t) {
906
+ var J;
907
907
  let n, r, { feature: l } = e, { style: c = "default" } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
908
- const f = Xt(), g = (V = l.properties) == null ? void 0 : V.categories;
909
- let b, _, p = 0, I = l.place_type[0] === "reverse";
910
- function E() {
911
- _ && d.add(_), t(11, p++, p);
908
+ const f = $t(), g = (J = l.properties) == null ? void 0 : J.categories;
909
+ let b, _, w = 0, I = l.place_type[0] === "reverse";
910
+ function S() {
911
+ _ && d.add(_), t(11, w++, w);
912
912
  }
913
- function S(M) {
914
- Bi.call(this, i, M);
913
+ function T(k) {
914
+ Hi.call(this, i, k);
915
915
  }
916
- const z = () => E(), W = () => f("select", void 0), G = (M) => {
917
- document.activeElement !== M.target && f("select", void 0);
916
+ const z = () => S(), C = () => f("select", void 0), G = (k) => {
917
+ document.activeElement !== k.target && f("select", void 0);
918
918
  };
919
- return i.$$set = (M) => {
920
- "feature" in M && t(0, l = M.feature), "style" in M && t(1, c = M.style), "showPlaceType" in M && t(2, o = M.showPlaceType), "missingIconsCache" in M && t(10, d = M.missingIconsCache), "iconsBaseUrl" in M && t(3, u = M.iconsBaseUrl);
919
+ return i.$$set = (k) => {
920
+ "feature" in k && t(0, l = k.feature), "style" in k && t(1, c = k.style), "showPlaceType" in k && t(2, o = k.showPlaceType), "missingIconsCache" in k && t(10, d = k.missingIconsCache), "iconsBaseUrl" in k && t(3, u = k.iconsBaseUrl);
921
921
  }, i.$$.update = () => {
922
- var M, L, y, T;
922
+ var k, L, y, M;
923
923
  if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
924
924
  7224)
925
925
  do
926
926
  t(12, n--, n), t(4, b = g == null ? void 0 : g[n]), t(5, _ = b ? u + b.replace(/ /g, "_") + ".svg" : void 0);
927
927
  while (n > -1 && (!_ || d.has(_)));
928
928
  i.$$.dirty & /*feature*/
929
- 1 && t(6, r = ((L = (M = l.properties) == null ? void 0 : M.categories) == null ? void 0 : L.join(", ")) ?? ((T = (y = l.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : T[0]) ?? l.place_type[0]);
929
+ 1 && t(6, r = ((L = (k = l.properties) == null ? void 0 : k.categories) == null ? void 0 : L.join(", ")) ?? ((M = (y = l.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : M[0]) ?? l.place_type[0]);
930
930
  }, t(12, n = (g == null ? void 0 : g.length) ?? 0), [
931
931
  l,
932
932
  c,
@@ -937,19 +937,19 @@ function on(i, e, t) {
937
937
  r,
938
938
  f,
939
939
  I,
940
- E,
940
+ S,
941
941
  d,
942
- p,
942
+ w,
943
943
  n,
944
- S,
944
+ T,
945
945
  z,
946
- W,
946
+ C,
947
947
  G
948
948
  ];
949
949
  }
950
- class sn extends _e {
950
+ class cn extends Ee {
951
951
  constructor(e) {
952
- super(), Le(this, e, on, rn, ve, {
952
+ super(), pe(this, e, un, ln, we, {
953
953
  feature: 0,
954
954
  style: 1,
955
955
  showPlaceType: 2,
@@ -958,11 +958,11 @@ class sn extends _e {
958
958
  });
959
959
  }
960
960
  }
961
- function an(i) {
961
+ function dn(i) {
962
962
  let e;
963
963
  return {
964
964
  c() {
965
- e = U("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
965
+ e = D("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
966
966
  },
967
967
  m(t, n) {
968
968
  j(t, e, n);
@@ -975,19 +975,19 @@ function an(i) {
975
975
  }
976
976
  };
977
977
  }
978
- class ln extends _e {
978
+ class fn extends Ee {
979
979
  constructor(e) {
980
- super(), Le(this, e, null, an, ve, {});
980
+ super(), pe(this, e, null, dn, we, {});
981
981
  }
982
982
  }
983
- function un(i) {
983
+ function mn(i) {
984
984
  let e, t;
985
985
  return {
986
986
  c() {
987
- e = ae("svg"), t = ae("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
987
+ e = le("svg"), t = le("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
988
988
  },
989
989
  m(n, r) {
990
- j(n, e, r), k(e, t);
990
+ j(n, e, r), N(e, t);
991
991
  },
992
992
  p: P,
993
993
  i: P,
@@ -997,19 +997,19 @@ function un(i) {
997
997
  }
998
998
  };
999
999
  }
1000
- class cn extends _e {
1000
+ class gn extends Ee {
1001
1001
  constructor(e) {
1002
- super(), Le(this, e, null, un, ve, {});
1002
+ super(), pe(this, e, null, mn, we, {});
1003
1003
  }
1004
1004
  }
1005
- function dn(i) {
1005
+ function hn(i) {
1006
1006
  let e, t, n;
1007
1007
  return {
1008
1008
  c() {
1009
- e = ae("svg"), t = ae("circle"), n = ae("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
1009
+ e = le("svg"), t = le("circle"), n = le("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
1010
1010
  },
1011
1011
  m(r, l) {
1012
- j(r, e, l), k(e, t), k(e, n);
1012
+ j(r, e, l), N(e, t), N(e, n);
1013
1013
  },
1014
1014
  p: P,
1015
1015
  i: P,
@@ -1019,31 +1019,31 @@ function dn(i) {
1019
1019
  }
1020
1020
  };
1021
1021
  }
1022
- class fn extends _e {
1022
+ class bn extends Ee {
1023
1023
  constructor(e) {
1024
- super(), Le(this, e, null, dn, ve, {});
1024
+ super(), pe(this, e, null, hn, we, {});
1025
1025
  }
1026
1026
  }
1027
- function mn(i, e, t) {
1027
+ function vn(i, e, t) {
1028
1028
  const n = e[1], r = e[0], l = n - r;
1029
1029
  return i === n && t ? i : ((i - r) % l + l) % l + r;
1030
1030
  }
1031
- function Rt(i) {
1031
+ function It(i) {
1032
1032
  const e = [...i];
1033
1033
  return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
1034
1034
  }
1035
- let Ce;
1036
- async function gn(i, e, t) {
1035
+ let Oe;
1036
+ async function Ln(i, e, t) {
1037
1037
  const n = i == null ? void 0 : i.getCenterAndZoom();
1038
1038
  for (const r of e ?? [])
1039
1039
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
1040
1040
  if (r.type === "fixed")
1041
1041
  return r.coordinates.join(",");
1042
1042
  e: if (r.type === "client-geolocation") {
1043
- if (Ce && r.cachedLocationExpiry && Ce.time + r.cachedLocationExpiry > Date.now()) {
1044
- if (!Ce.coords)
1043
+ if (Oe && r.cachedLocationExpiry && Oe.time + r.cachedLocationExpiry > Date.now()) {
1044
+ if (!Oe.coords)
1045
1045
  break e;
1046
- return Ce.coords;
1046
+ return Oe.coords;
1047
1047
  }
1048
1048
  let l;
1049
1049
  try {
@@ -1064,7 +1064,7 @@ async function gn(i, e, t) {
1064
1064
  }), l;
1065
1065
  } catch {
1066
1066
  } finally {
1067
- r.cachedLocationExpiry && (Ce = {
1067
+ r.cachedLocationExpiry && (Oe = {
1068
1068
  time: Date.now(),
1069
1069
  coords: l
1070
1070
  });
@@ -1078,8 +1078,8 @@ async function gn(i, e, t) {
1078
1078
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1079
1079
  }
1080
1080
  }
1081
- const hn = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Dt = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Ut = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, It = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, At = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Bt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
1082
- function bn(i) {
1081
+ const _n = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, At = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Bt = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Pt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, jt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ft = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
1082
+ function yn(i) {
1083
1083
  if (!["DMS", "DM", "DD"].includes(i))
1084
1084
  throw new Error("invalid format specified");
1085
1085
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1088,35 +1088,35 @@ function bn(i) {
1088
1088
  i == "DD" && (d = `${r}° ${c}, ${l}° ${o}`);
1089
1089
  const u = Math.floor(r), f = Math.floor(l), g = (r - u) * 60, b = (l - f) * 60;
1090
1090
  if (i == "DM") {
1091
- let _ = Pt(g, 3).toFixed(3).padStart(6, "0"), p = Pt(b, 3).toFixed(3).padStart(6, "0");
1092
- _.endsWith(".000") && p.endsWith(".000") && (_ = _.replace(/\.000$/, ""), p = p.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${p}' ${o}`;
1091
+ let _ = Ht(g, 3).toFixed(3).padStart(6, "0"), w = Ht(b, 3).toFixed(3).padStart(6, "0");
1092
+ _.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${o}`;
1093
1093
  }
1094
1094
  if (i == "DMS") {
1095
- const _ = Math.floor(g), p = Math.floor(b);
1096
- let I = ((g - _) * 60).toFixed(1).padStart(4, "0"), E = ((b - p) * 60).toFixed(1).padStart(4, "0");
1097
- const S = _.toString().padStart(2, "0"), z = p.toString().padStart(2, "0");
1098
- I.endsWith(".0") && E.endsWith(".0") && (I = I.replace(/\.0$/, ""), E = E.replace(/\.0$/, "")), d = `${u}° ${S}' ${I}" ${c}, ${f}° ${z}' ${E}" ${o}`;
1095
+ const _ = Math.floor(g), w = Math.floor(b);
1096
+ let I = ((g - _) * 60).toFixed(1).padStart(4, "0"), S = ((b - w) * 60).toFixed(1).padStart(4, "0");
1097
+ const T = _.toString().padStart(2, "0"), z = w.toString().padStart(2, "0");
1098
+ I.endsWith(".0") && S.endsWith(".0") && (I = I.replace(/\.0$/, ""), S = S.replace(/\.0$/, "")), d = `${u}° ${T}' ${I}" ${c}, ${f}° ${z}' ${S}" ${o}`;
1099
1099
  }
1100
1100
  return d;
1101
1101
  } else
1102
1102
  throw new Error("no decimal coordinates to convert");
1103
1103
  }
1104
- function Pt(i, e) {
1104
+ function Ht(i, e) {
1105
1105
  const t = Math.pow(10, e);
1106
1106
  return Math.round((i + Number.EPSILON) * t) / t;
1107
1107
  }
1108
- function ht(i, e) {
1108
+ function Lt(i, e) {
1109
1109
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1110
1110
  let t = null, n = null, r = "", l = "", c = null, o = [], d = !1;
1111
- if (hn.test(i))
1111
+ if (_n.test(i))
1112
1112
  throw new Error("invalid coordinate value");
1113
- if (Dt.test(i))
1114
- if (o = Dt.exec(i), d = We(o), d)
1113
+ if (At.test(i))
1114
+ if (o = At.exec(i), d = Re(o), d)
1115
1115
  t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), c = "DM";
1116
1116
  else
1117
1117
  throw new Error("invalid coordinate format");
1118
- else if (Ut.test(i))
1119
- if (o = Ut.exec(i), d = We(o), d) {
1118
+ else if (Bt.test(i))
1119
+ if (o = Bt.exec(i), d = Re(o), d) {
1120
1120
  if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
1121
1121
  throw new Error("integer only coordinate provided");
1122
1122
  if (Number(Math.round(n)) == Number(n))
@@ -1124,18 +1124,18 @@ function ht(i, e) {
1124
1124
  o[1] ? (r = o[1], l = o[5]) : o[4] && (r = o[4], l = o[8]);
1125
1125
  } else
1126
1126
  throw new Error("invalid decimal coordinate format");
1127
- else if (It.test(i))
1128
- if (o = It.exec(i), d = We(o), d)
1127
+ else if (Pt.test(i))
1128
+ if (o = Pt.exec(i), d = Re(o), d)
1129
1129
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[8]) : o[7] && (r = o[7], l = o[14]);
1130
1130
  else
1131
1131
  throw new Error("invalid DMS coordinates format");
1132
- else if (At.test(i))
1133
- if (o = At.exec(i), d = We(o), d)
1132
+ else if (jt.test(i))
1133
+ if (o = jt.exec(i), d = Re(o), d)
1134
1134
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6] / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
1135
1135
  else
1136
1136
  throw new Error("invalid DMS coordinates format");
1137
- else if (Bt.test(i)) {
1138
- if (o = Bt.exec(i), d = We(o), o.filter((u) => u).length <= 5)
1137
+ else if (Ft.test(i)) {
1138
+ if (o = Ft.exec(i), d = Re(o), o.filter((u) => u).length <= 5)
1139
1139
  throw new Error("invalid coordinates format");
1140
1140
  if (d)
1141
1141
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
@@ -1156,28 +1156,28 @@ function ht(i, e) {
1156
1156
  u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
1157
1157
  const f = o[0].trim();
1158
1158
  let g, b;
1159
- const _ = /[,/;\u0020]/g, p = f.match(_);
1160
- if (p == null) {
1161
- const S = Math.floor(i.length / 2);
1162
- g = f.substring(0, S).trim(), b = f.substring(S).trim();
1159
+ const _ = /[,/;\u0020]/g, w = f.match(_);
1160
+ if (w == null) {
1161
+ const T = Math.floor(i.length / 2);
1162
+ g = f.substring(0, T).trim(), b = f.substring(T).trim();
1163
1163
  } else {
1164
- let S;
1165
- p.length % 2 == 1 ? S = Math.floor(p.length / 2) : S = p.length / 2 - 1;
1164
+ let T;
1165
+ w.length % 2 == 1 ? T = Math.floor(w.length / 2) : T = w.length / 2 - 1;
1166
1166
  let z = 0;
1167
- if (S == 0)
1168
- z = f.indexOf(p[0]), g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
1167
+ if (T == 0)
1168
+ z = f.indexOf(w[0]), g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
1169
1169
  else {
1170
- let W = 0, G = 0;
1171
- for (; W <= S; )
1172
- z = f.indexOf(p[W], G), G = z + 1, W++;
1170
+ let C = 0, G = 0;
1171
+ for (; C <= T; )
1172
+ z = f.indexOf(w[C], G), G = z + 1, C++;
1173
1173
  g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
1174
1174
  }
1175
1175
  }
1176
1176
  const I = g.split(".");
1177
1177
  if (I.length == 2 && I[1] == 0 && I[1].length != 2)
1178
1178
  throw new Error("invalid coordinates format");
1179
- const E = b.split(".");
1180
- if (E.length == 2 && E[1] == 0 && E[1].length != 2)
1179
+ const S = b.split(".");
1180
+ if (S.length == 2 && S[1] == 0 && S[1].length != 2)
1181
1181
  throw new Error("invalid coordinates format");
1182
1182
  if (/^\d+$/.test(g) || /^\d+$/.test(b))
1183
1183
  throw new Error("degree only coordinate/s provided");
@@ -1189,13 +1189,13 @@ function ht(i, e) {
1189
1189
  decimalLongitude: n,
1190
1190
  decimalCoordinates: `${t},${n}`,
1191
1191
  originalFormat: c,
1192
- closeEnough: vn,
1193
- toCoordinateFormat: bn
1192
+ closeEnough: wn,
1193
+ toCoordinateFormat: yn
1194
1194
  });
1195
1195
  } else
1196
1196
  throw new Error("coordinates pattern match failed");
1197
1197
  }
1198
- function We(i) {
1198
+ function Re(i) {
1199
1199
  if (!isNaN(i[0]))
1200
1200
  return !1;
1201
1201
  const e = [...i];
@@ -1214,28 +1214,28 @@ function We(i) {
1214
1214
  }
1215
1215
  return !0;
1216
1216
  }
1217
- function jt(i, e) {
1217
+ function Zt(i, e) {
1218
1218
  const t = Math.abs(i - e);
1219
1219
  return Number(t.toFixed(6)) <= 1e-5;
1220
1220
  }
1221
- function vn(i) {
1221
+ function wn(i) {
1222
1222
  if (!i)
1223
1223
  throw new Error("coords must be provided");
1224
1224
  if (i.includes(",")) {
1225
1225
  const e = i.split(",");
1226
1226
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1227
1227
  throw new Error("coords are not valid decimals");
1228
- return jt(this.decimalLatitude, Number(e[0])) && jt(this.decimalLongitude, e[1]);
1228
+ return Zt(this.decimalLatitude, Number(e[0])) && Zt(this.decimalLongitude, e[1]);
1229
1229
  } else
1230
1230
  throw new Error("coords being tested must be separated by a comma");
1231
1231
  }
1232
- const Ln = Object.freeze({
1232
+ const pn = Object.freeze({
1233
1233
  DMS: "DMS",
1234
1234
  DM: "DM",
1235
1235
  DD: "DD"
1236
1236
  });
1237
- ht.to = Ln;
1238
- const _n = [
1237
+ Lt.to = pn;
1238
+ const En = [
1239
1239
  {
1240
1240
  verbatimCoordinates: "40.123, -74.123",
1241
1241
  verbatimLatitude: "40.123",
@@ -1376,10 +1376,10 @@ const _n = [
1376
1376
  verbatimLatitude: "40 7 22.8",
1377
1377
  verbatimLongitude: "-74 7 22.8"
1378
1378
  }
1379
- ], yn = {
1379
+ ], Sn = {
1380
1380
  decimalLatitude: 40.123,
1381
1381
  decimalLongitude: -74.123
1382
- }, pn = [
1382
+ }, Tn = [
1383
1383
  {
1384
1384
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1385
1385
  verbatimLatitude: `50°4'17.698"south`,
@@ -1464,7 +1464,7 @@ const _n = [
1464
1464
  decimalLatitude: -18.4,
1465
1465
  decimalLongitude: 22.75
1466
1466
  }
1467
- ], wn = [
1467
+ ], Nn = [
1468
1468
  {
1469
1469
  verbatimCoordinates: "10.432342S 10.6345345E",
1470
1470
  verbatimLatitude: "10.432342S",
@@ -1599,49 +1599,49 @@ const _n = [
1599
1599
  decimalLongitude: 18.33453
1600
1600
  }
1601
1601
  ];
1602
- function En() {
1602
+ function kn() {
1603
1603
  const i = [];
1604
- return _n.forEach((e) => {
1605
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...yn });
1606
- }), [...i, ...pn, ...wn];
1607
- }
1608
- const Sn = En();
1609
- ht.formats = Sn.map((i) => i.verbatimCoordinates);
1610
- const Nn = ht;
1611
- function Ft(i, e, t) {
1604
+ return En.forEach((e) => {
1605
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Sn });
1606
+ }), [...i, ...Tn, ...Nn];
1607
+ }
1608
+ const Mn = kn();
1609
+ Lt.formats = Mn.map((i) => i.verbatimCoordinates);
1610
+ const Cn = Lt;
1611
+ function qt(i, e, t) {
1612
1612
  const n = i.slice();
1613
- return n[91] = e[t], n[93] = t, n;
1613
+ return n[94] = e[t], n[96] = t, n;
1614
1614
  }
1615
- function Ht(i) {
1615
+ function Gt(i) {
1616
1616
  let e, t;
1617
- return e = new ln({}), {
1617
+ return e = new fn({}), {
1618
1618
  c() {
1619
- me(e.$$.fragment);
1619
+ be(e.$$.fragment);
1620
1620
  },
1621
1621
  m(n, r) {
1622
- le(e, n, r), t = !0;
1622
+ ue(e, n, r), t = !0;
1623
1623
  },
1624
1624
  i(n) {
1625
- t || (H(e.$$.fragment, n), t = !0);
1625
+ t || (Z(e.$$.fragment, n), t = !0);
1626
1626
  },
1627
1627
  o(n) {
1628
1628
  K(e.$$.fragment, n), t = !1;
1629
1629
  },
1630
1630
  d(n) {
1631
- ue(e, n);
1631
+ ce(e, n);
1632
1632
  }
1633
1633
  };
1634
1634
  }
1635
- function Zt(i) {
1635
+ function Qt(i) {
1636
1636
  let e, t, n, r, l;
1637
- return t = new cn({}), {
1637
+ return t = new gn({}), {
1638
1638
  c() {
1639
- e = U("button"), me(t.$$.fragment), a(e, "type", "button"), a(
1639
+ e = D("button"), be(t.$$.fragment), a(e, "type", "button"), a(
1640
1640
  e,
1641
1641
  "title",
1642
1642
  /*reverseButtonTitle*/
1643
1643
  i[10]
1644
- ), a(e, "class", "svelte-bz0zu3"), Ne(
1644
+ ), a(e, "class", "svelte-bz0zu3"), ke(
1645
1645
  e,
1646
1646
  "active",
1647
1647
  /*reverseActive*/
@@ -1649,11 +1649,11 @@ function Zt(i) {
1649
1649
  );
1650
1650
  },
1651
1651
  m(c, o) {
1652
- j(c, e, o), le(t, e, null), n = !0, r || (l = Q(
1652
+ j(c, e, o), ue(t, e, null), n = !0, r || (l = Q(
1653
1653
  e,
1654
1654
  "click",
1655
1655
  /*click_handler_3*/
1656
- i[76]
1656
+ i[78]
1657
1657
  ), r = !0);
1658
1658
  },
1659
1659
  p(c, o) {
@@ -1664,7 +1664,7 @@ function Zt(i) {
1664
1664
  /*reverseButtonTitle*/
1665
1665
  c[10]
1666
1666
  ), (!n || o[0] & /*reverseActive*/
1667
- 1) && Ne(
1667
+ 1) && ke(
1668
1668
  e,
1669
1669
  "active",
1670
1670
  /*reverseActive*/
@@ -1672,34 +1672,34 @@ function Zt(i) {
1672
1672
  );
1673
1673
  },
1674
1674
  i(c) {
1675
- n || (H(t.$$.fragment, c), n = !0);
1675
+ n || (Z(t.$$.fragment, c), n = !0);
1676
1676
  },
1677
1677
  o(c) {
1678
1678
  K(t.$$.fragment, c), n = !1;
1679
1679
  },
1680
1680
  d(c) {
1681
- c && A(e), ue(t), r = !1, l();
1681
+ c && A(e), ce(t), r = !1, l();
1682
1682
  }
1683
1683
  };
1684
1684
  }
1685
- function kn(i) {
1686
- let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, o = zt(
1685
+ function Wn(i) {
1686
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, o = Dt(
1687
1687
  /*listFeatures*/
1688
1688
  i[13]
1689
1689
  );
1690
1690
  const d = (u) => (
1691
1691
  /*feature*/
1692
- u[91].id + /*feature*/
1693
- (u[91].address ? "," + /*feature*/
1694
- u[91].address : "")
1692
+ u[94].id + /*feature*/
1693
+ (u[94].address ? "," + /*feature*/
1694
+ u[94].address : "")
1695
1695
  );
1696
1696
  for (let u = 0; u < o.length; u += 1) {
1697
- let f = Ft(i, o, u), g = d(f);
1698
- n.set(g, t[u] = qt(g, f));
1697
+ let f = qt(i, o, u), g = d(f);
1698
+ n.set(g, t[u] = Kt(g, f));
1699
1699
  }
1700
1700
  return {
1701
1701
  c() {
1702
- e = U("ul");
1702
+ e = D("ul");
1703
1703
  for (let u = 0; u < t.length; u += 1)
1704
1704
  t[u].c();
1705
1705
  a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
@@ -1719,7 +1719,7 @@ function kn(i) {
1719
1719
  e,
1720
1720
  "blur",
1721
1721
  /*blur_handler_1*/
1722
- i[80]
1722
+ i[82]
1723
1723
  ),
1724
1724
  Q(
1725
1725
  e,
@@ -1731,15 +1731,15 @@ function kn(i) {
1731
1731
  },
1732
1732
  p(u, f) {
1733
1733
  f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
1734
- 102823936 && (o = zt(
1734
+ 102823936 && (o = Dt(
1735
1735
  /*listFeatures*/
1736
1736
  u[13]
1737
- ), Ge(), t = qi(t, f, d, 1, u, o, n, e, Zi, qt, null, Ft), Qe());
1737
+ ), Ve(), t = Vi(t, f, d, 1, u, o, n, e, Ki, Kt, null, qt), Je());
1738
1738
  },
1739
1739
  i(u) {
1740
1740
  if (!r) {
1741
1741
  for (let f = 0; f < o.length; f += 1)
1742
- H(t[f]);
1742
+ Z(t[f]);
1743
1743
  r = !0;
1744
1744
  }
1745
1745
  },
@@ -1752,46 +1752,46 @@ function kn(i) {
1752
1752
  u && A(e);
1753
1753
  for (let f = 0; f < t.length; f += 1)
1754
1754
  t[f].d();
1755
- l = !1, ce(c);
1755
+ l = !1, de(c);
1756
1756
  }
1757
1757
  };
1758
1758
  }
1759
- function Mn(i) {
1759
+ function zn(i) {
1760
1760
  let e, t, n, r, l, c;
1761
- return t = new $t({}), {
1761
+ return t = new ii({}), {
1762
1762
  c() {
1763
- e = U("div"), me(t.$$.fragment), n = $(), r = U("div"), l = fe(
1763
+ e = D("div"), be(t.$$.fragment), n = x(), r = D("div"), l = he(
1764
1764
  /*noResultsMessage*/
1765
1765
  i[8]
1766
1766
  ), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
1767
1767
  },
1768
1768
  m(o, d) {
1769
- j(o, e, d), le(t, e, null), k(e, n), k(e, r), k(r, l), c = !0;
1769
+ j(o, e, d), ue(t, e, null), N(e, n), N(e, r), N(r, l), c = !0;
1770
1770
  },
1771
1771
  p(o, d) {
1772
1772
  (!c || d[0] & /*noResultsMessage*/
1773
- 256) && Oe(
1773
+ 256) && Ue(
1774
1774
  l,
1775
1775
  /*noResultsMessage*/
1776
1776
  o[8]
1777
1777
  );
1778
1778
  },
1779
1779
  i(o) {
1780
- c || (H(t.$$.fragment, o), c = !0);
1780
+ c || (Z(t.$$.fragment, o), c = !0);
1781
1781
  },
1782
1782
  o(o) {
1783
1783
  K(t.$$.fragment, o), c = !1;
1784
1784
  },
1785
1785
  d(o) {
1786
- o && A(e), ue(t);
1786
+ o && A(e), ce(t);
1787
1787
  }
1788
1788
  };
1789
1789
  }
1790
- function Tn(i) {
1790
+ function On(i) {
1791
1791
  let e = "", t;
1792
1792
  return {
1793
1793
  c() {
1794
- t = fe(e);
1794
+ t = he(e);
1795
1795
  },
1796
1796
  m(n, r) {
1797
1797
  j(n, t, r);
@@ -1804,68 +1804,68 @@ function Tn(i) {
1804
1804
  }
1805
1805
  };
1806
1806
  }
1807
- function Cn(i) {
1807
+ function Rn(i) {
1808
1808
  let e, t, n, r, l, c, o, d, u, f, g;
1809
- return t = new $t({}), d = new xt({}), {
1809
+ return t = new ii({}), d = new ti({}), {
1810
1810
  c() {
1811
- e = U("div"), me(t.$$.fragment), n = $(), r = U("div"), l = fe(
1811
+ e = D("div"), be(t.$$.fragment), n = x(), r = D("div"), l = he(
1812
1812
  /*errorMessage*/
1813
1813
  i[7]
1814
- ), c = $(), o = U("button"), me(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1814
+ ), c = x(), o = D("button"), be(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1815
1815
  },
1816
1816
  m(b, _) {
1817
- j(b, e, _), le(t, e, null), k(e, n), k(e, r), k(r, l), k(e, c), k(e, o), le(d, o, null), u = !0, f || (g = Q(
1817
+ j(b, e, _), ue(t, e, null), N(e, n), N(e, r), N(r, l), N(e, c), N(e, o), ue(d, o, null), u = !0, f || (g = Q(
1818
1818
  o,
1819
1819
  "click",
1820
1820
  /*click_handler_4*/
1821
- i[77]
1821
+ i[79]
1822
1822
  ), f = !0);
1823
1823
  },
1824
1824
  p(b, _) {
1825
1825
  (!u || _[0] & /*errorMessage*/
1826
- 128) && Oe(
1826
+ 128) && Ue(
1827
1827
  l,
1828
1828
  /*errorMessage*/
1829
1829
  b[7]
1830
1830
  );
1831
1831
  },
1832
1832
  i(b) {
1833
- u || (H(t.$$.fragment, b), H(d.$$.fragment, b), u = !0);
1833
+ u || (Z(t.$$.fragment, b), Z(d.$$.fragment, b), u = !0);
1834
1834
  },
1835
1835
  o(b) {
1836
1836
  K(t.$$.fragment, b), K(d.$$.fragment, b), u = !1;
1837
1837
  },
1838
1838
  d(b) {
1839
- b && A(e), ue(t), ue(d), f = !1, g();
1839
+ b && A(e), ce(t), ce(d), f = !1, g();
1840
1840
  }
1841
1841
  };
1842
1842
  }
1843
- function qt(i, e) {
1843
+ function Kt(i, e) {
1844
1844
  var o;
1845
1845
  let t, n, r;
1846
1846
  function l() {
1847
1847
  return (
1848
1848
  /*mouseenter_handler*/
1849
- e[78](
1849
+ e[80](
1850
1850
  /*i*/
1851
- e[93]
1851
+ e[96]
1852
1852
  )
1853
1853
  );
1854
1854
  }
1855
1855
  function c() {
1856
1856
  return (
1857
1857
  /*select_handler*/
1858
- e[79](
1858
+ e[81](
1859
1859
  /*feature*/
1860
- e[91]
1860
+ e[94]
1861
1861
  )
1862
1862
  );
1863
1863
  }
1864
- return n = new sn({
1864
+ return n = new cn({
1865
1865
  props: {
1866
1866
  feature: (
1867
1867
  /*feature*/
1868
- e[91]
1868
+ e[94]
1869
1869
  ),
1870
1870
  showPlaceType: (
1871
1871
  /*showPlaceType*/
@@ -1874,10 +1874,10 @@ function qt(i, e) {
1874
1874
  style: (
1875
1875
  /*selectedItemIndex*/
1876
1876
  e[15] === /*i*/
1877
- e[93] ? "selected" : (
1877
+ e[96] ? "selected" : (
1878
1878
  /*picked*/
1879
1879
  ((o = e[14]) == null ? void 0 : o.id) === /*feature*/
1880
- e[91].id ? "picked" : "default"
1880
+ e[94].id ? "picked" : "default"
1881
1881
  )
1882
1882
  ),
1883
1883
  missingIconsCache: (
@@ -1893,10 +1893,10 @@ function qt(i, e) {
1893
1893
  key: i,
1894
1894
  first: null,
1895
1895
  c() {
1896
- t = Ri(), me(n.$$.fragment), this.first = t;
1896
+ t = Ai(), be(n.$$.fragment), this.first = t;
1897
1897
  },
1898
1898
  m(d, u) {
1899
- j(d, t, u), le(n, d, u), r = !0;
1899
+ j(d, t, u), ue(n, d, u), r = !0;
1900
1900
  },
1901
1901
  p(d, u) {
1902
1902
  var g;
@@ -1904,70 +1904,70 @@ function qt(i, e) {
1904
1904
  const f = {};
1905
1905
  u[0] & /*listFeatures*/
1906
1906
  8192 && (f.feature = /*feature*/
1907
- e[91]), u[0] & /*showPlaceType*/
1907
+ e[94]), u[0] & /*showPlaceType*/
1908
1908
  2048 && (f.showPlaceType = /*showPlaceType*/
1909
1909
  e[11]), u[0] & /*selectedItemIndex, listFeatures, picked*/
1910
1910
  57344 && (f.style = /*selectedItemIndex*/
1911
1911
  e[15] === /*i*/
1912
- e[93] ? "selected" : (
1912
+ e[96] ? "selected" : (
1913
1913
  /*picked*/
1914
1914
  ((g = e[14]) == null ? void 0 : g.id) === /*feature*/
1915
- e[91].id ? "picked" : "default"
1915
+ e[94].id ? "picked" : "default"
1916
1916
  )), u[0] & /*iconsBaseUrl*/
1917
1917
  4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
1918
1918
  e[12]), n.$set(f);
1919
1919
  },
1920
1920
  i(d) {
1921
- r || (H(n.$$.fragment, d), r = !0);
1921
+ r || (Z(n.$$.fragment, d), r = !0);
1922
1922
  },
1923
1923
  o(d) {
1924
1924
  K(n.$$.fragment, d), r = !1;
1925
1925
  },
1926
1926
  d(d) {
1927
- d && A(t), ue(n, d);
1927
+ d && A(t), ce(n, d);
1928
1928
  }
1929
1929
  };
1930
1930
  }
1931
- function Wn(i) {
1932
- let e, t, n, r, l, c, o, d, u, f, g, b, _, p, I, E, S, z, W, G, V, M = !1;
1933
- l = new fn({}), g = new xt({});
1931
+ function Dn(i) {
1932
+ let e, t, n, r, l, c, o, d, u, f, g, b, _, w, I, S, T, z, C, G, J, k = !1;
1933
+ l = new bn({}), g = new ti({});
1934
1934
  let L = (
1935
1935
  /*abortController*/
1936
- i[20] && Ht()
1936
+ i[20] && Gt()
1937
1937
  ), y = (
1938
1938
  /*enableReverse*/
1939
- i[6] === "button" && Zt(i)
1939
+ i[6] === "button" && Qt(i)
1940
1940
  );
1941
- const T = (
1941
+ const M = (
1942
1942
  /*#slots*/
1943
- i[67].default
1944
- ), m = Ci(
1945
- T,
1943
+ i[69].default
1944
+ ), m = Ri(
1945
+ M,
1946
1946
  i,
1947
1947
  /*$$scope*/
1948
- i[66],
1948
+ i[68],
1949
1949
  null
1950
- ), w = [Cn, Tn, Mn, kn], R = [];
1951
- function Me(v, D) {
1952
- var oe, Z;
1950
+ ), p = [Rn, On, zn, Wn], O = [];
1951
+ function Ce(v, R) {
1952
+ var se, F;
1953
1953
  return (
1954
1954
  /*error*/
1955
1955
  v[19] ? 0 : !/*focusedDelayed*/
1956
1956
  v[16] && !/*keepListOpen*/
1957
1957
  v[4] ? 1 : (
1958
1958
  /*listFeatures*/
1959
- ((oe = v[13]) == null ? void 0 : oe.length) === 0 ? 2 : (
1959
+ ((se = v[13]) == null ? void 0 : se.length) === 0 ? 2 : (
1960
1960
  /*listFeatures*/
1961
- (Z = v[13]) != null && Z.length && /*focusedDelayed*/
1961
+ (F = v[13]) != null && F.length && /*focusedDelayed*/
1962
1962
  (v[16] || /*keepListOpen*/
1963
1963
  v[4]) ? 3 : -1
1964
1964
  )
1965
1965
  )
1966
1966
  );
1967
1967
  }
1968
- return ~(E = Me(i)) && (S = R[E] = w[E](i)), {
1968
+ return ~(S = Ce(i)) && (T = O[S] = p[S](i)), {
1969
1969
  c() {
1970
- e = $(), t = U("form"), n = U("div"), r = U("button"), me(l.$$.fragment), c = $(), o = U("input"), d = $(), u = U("div"), f = U("button"), me(g.$$.fragment), b = $(), L && L.c(), _ = $(), y && y.c(), p = $(), m && m.c(), I = $(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1970
+ e = x(), t = D("form"), n = D("div"), r = D("button"), be(l.$$.fragment), c = x(), o = D("input"), d = x(), u = D("div"), f = D("button"), be(g.$$.fragment), b = x(), L && L.c(), _ = x(), y && y.c(), w = x(), m && m.c(), I = x(), T && T.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1971
1971
  o,
1972
1972
  "placeholder",
1973
1973
  /*placeholder*/
@@ -1982,15 +1982,15 @@ function Wn(i) {
1982
1982
  "title",
1983
1983
  /*clearButtonTitle*/
1984
1984
  i[3]
1985
- ), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), Ne(
1985
+ ), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), ke(
1986
1986
  u,
1987
1987
  "displayable",
1988
1988
  /*searchValue*/
1989
1989
  i[1] !== ""
1990
- ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = Ke(
1990
+ ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = Xe(
1991
1991
  /*className*/
1992
1992
  i[2]
1993
- ) + " svelte-bz0zu3"), Ne(
1993
+ ) + " svelte-bz0zu3"), ke(
1994
1994
  t,
1995
1995
  "can-collapse",
1996
1996
  /*collapsed*/
@@ -1998,41 +1998,41 @@ function Wn(i) {
1998
1998
  i[1] === ""
1999
1999
  );
2000
2000
  },
2001
- m(v, D) {
2002
- j(v, e, D), j(v, t, D), k(t, n), k(n, r), le(l, r, null), k(n, c), k(n, o), i[69](o), Ct(
2001
+ m(v, R) {
2002
+ j(v, e, R), j(v, t, R), N(t, n), N(n, r), ue(l, r, null), N(n, c), N(n, o), i[71](o), Ot(
2003
2003
  o,
2004
2004
  /*searchValue*/
2005
2005
  i[1]
2006
- ), k(n, d), k(n, u), k(u, f), le(g, f, null), k(u, b), L && L.m(u, null), k(n, _), y && y.m(n, null), k(n, p), m && m.m(n, null), k(t, I), ~E && R[E].m(t, null), W = !0, G || (V = [
2006
+ ), N(n, d), N(n, u), N(u, f), ue(g, f, null), N(u, b), L && L.m(u, null), N(n, _), y && y.m(n, null), N(n, w), m && m.m(n, null), N(t, I), ~S && O[S].m(t, null), C = !0, G || (J = [
2007
2007
  Q(
2008
2008
  r,
2009
2009
  "click",
2010
2010
  /*click_handler*/
2011
- i[68]
2011
+ i[70]
2012
2012
  ),
2013
2013
  Q(
2014
2014
  o,
2015
2015
  "input",
2016
2016
  /*input_1_input_handler*/
2017
- i[70]
2017
+ i[72]
2018
2018
  ),
2019
2019
  Q(
2020
2020
  o,
2021
2021
  "focus",
2022
2022
  /*focus_handler*/
2023
- i[71]
2023
+ i[73]
2024
2024
  ),
2025
2025
  Q(
2026
2026
  o,
2027
2027
  "blur",
2028
2028
  /*blur_handler*/
2029
- i[72]
2029
+ i[74]
2030
2030
  ),
2031
2031
  Q(
2032
2032
  o,
2033
2033
  "click",
2034
2034
  /*click_handler_1*/
2035
- i[73]
2035
+ i[75]
2036
2036
  ),
2037
2037
  Q(
2038
2038
  o,
@@ -2050,87 +2050,87 @@ function Wn(i) {
2050
2050
  o,
2051
2051
  "change",
2052
2052
  /*change_handler*/
2053
- i[74]
2053
+ i[76]
2054
2054
  ),
2055
2055
  Q(
2056
2056
  f,
2057
2057
  "click",
2058
2058
  /*click_handler_2*/
2059
- i[75]
2059
+ i[77]
2060
2060
  ),
2061
- Q(t, "submit", Di(
2061
+ Q(t, "submit", Bi(
2062
2062
  /*handleSubmit*/
2063
2063
  i[22]
2064
2064
  ))
2065
2065
  ], G = !0);
2066
2066
  },
2067
- p(v, D) {
2068
- (!W || D[0] & /*placeholder*/
2067
+ p(v, R) {
2068
+ (!C || R[0] & /*placeholder*/
2069
2069
  512) && a(
2070
2070
  o,
2071
2071
  "placeholder",
2072
2072
  /*placeholder*/
2073
2073
  v[9]
2074
- ), (!W || D[0] & /*placeholder*/
2074
+ ), (!C || R[0] & /*placeholder*/
2075
2075
  512) && a(
2076
2076
  o,
2077
2077
  "aria-label",
2078
2078
  /*placeholder*/
2079
2079
  v[9]
2080
- ), D[0] & /*searchValue*/
2080
+ ), R[0] & /*searchValue*/
2081
2081
  2 && o.value !== /*searchValue*/
2082
- v[1] && Ct(
2082
+ v[1] && Ot(
2083
2083
  o,
2084
2084
  /*searchValue*/
2085
2085
  v[1]
2086
- ), (!W || D[0] & /*clearButtonTitle*/
2086
+ ), (!C || R[0] & /*clearButtonTitle*/
2087
2087
  8) && a(
2088
2088
  f,
2089
2089
  "title",
2090
2090
  /*clearButtonTitle*/
2091
2091
  v[3]
2092
2092
  ), /*abortController*/
2093
- v[20] ? L ? D[0] & /*abortController*/
2094
- 1048576 && H(L, 1) : (L = Ht(), L.c(), H(L, 1), L.m(u, null)) : L && (Ge(), K(L, 1, 1, () => {
2093
+ v[20] ? L ? R[0] & /*abortController*/
2094
+ 1048576 && Z(L, 1) : (L = Gt(), L.c(), Z(L, 1), L.m(u, null)) : L && (Ve(), K(L, 1, 1, () => {
2095
2095
  L = null;
2096
- }), Qe()), (!W || D[0] & /*searchValue*/
2097
- 2) && Ne(
2096
+ }), Je()), (!C || R[0] & /*searchValue*/
2097
+ 2) && ke(
2098
2098
  u,
2099
2099
  "displayable",
2100
2100
  /*searchValue*/
2101
2101
  v[1] !== ""
2102
2102
  ), /*enableReverse*/
2103
- v[6] === "button" ? y ? (y.p(v, D), D[0] & /*enableReverse*/
2104
- 64 && H(y, 1)) : (y = Zt(v), y.c(), H(y, 1), y.m(n, p)) : y && (Ge(), K(y, 1, 1, () => {
2103
+ v[6] === "button" ? y ? (y.p(v, R), R[0] & /*enableReverse*/
2104
+ 64 && Z(y, 1)) : (y = Qt(v), y.c(), Z(y, 1), y.m(n, w)) : y && (Ve(), K(y, 1, 1, () => {
2105
2105
  y = null;
2106
- }), Qe()), m && m.p && (!W || D[2] & /*$$scope*/
2107
- 16) && zi(
2106
+ }), Je()), m && m.p && (!C || R[2] & /*$$scope*/
2107
+ 64) && Ui(
2108
2108
  m,
2109
- T,
2109
+ M,
2110
2110
  v,
2111
2111
  /*$$scope*/
2112
- v[66],
2113
- W ? Wi(
2114
- T,
2112
+ v[68],
2113
+ C ? Di(
2114
+ M,
2115
2115
  /*$$scope*/
2116
- v[66],
2117
- D,
2116
+ v[68],
2117
+ R,
2118
2118
  null
2119
- ) : Oi(
2119
+ ) : Ii(
2120
2120
  /*$$scope*/
2121
- v[66]
2121
+ v[68]
2122
2122
  ),
2123
2123
  null
2124
2124
  );
2125
- let oe = E;
2126
- E = Me(v), E === oe ? ~E && R[E].p(v, D) : (S && (Ge(), K(R[oe], 1, 1, () => {
2127
- R[oe] = null;
2128
- }), Qe()), ~E ? (S = R[E], S ? S.p(v, D) : (S = R[E] = w[E](v), S.c()), H(S, 1), S.m(t, null)) : S = null), (!W || D[0] & /*className*/
2129
- 4 && z !== (z = Ke(
2125
+ let se = S;
2126
+ S = Ce(v), S === se ? ~S && O[S].p(v, R) : (T && (Ve(), K(O[se], 1, 1, () => {
2127
+ O[se] = null;
2128
+ }), Je()), ~S ? (T = O[S], T ? T.p(v, R) : (T = O[S] = p[S](v), T.c()), Z(T, 1), T.m(t, null)) : T = null), (!C || R[0] & /*className*/
2129
+ 4 && z !== (z = Xe(
2130
2130
  /*className*/
2131
2131
  v[2]
2132
- ) + " svelte-bz0zu3")) && a(t, "class", z), (!W || D[0] & /*className, collapsed, searchValue*/
2133
- 38) && Ne(
2132
+ ) + " svelte-bz0zu3")) && a(t, "class", z), (!C || R[0] & /*className, collapsed, searchValue*/
2133
+ 38) && ke(
2134
2134
  t,
2135
2135
  "can-collapse",
2136
2136
  /*collapsed*/
@@ -2139,17 +2139,17 @@ function Wn(i) {
2139
2139
  );
2140
2140
  },
2141
2141
  i(v) {
2142
- W || (H(M), H(l.$$.fragment, v), H(g.$$.fragment, v), H(L), H(y), H(m, v), H(S), W = !0);
2142
+ C || (Z(k), Z(l.$$.fragment, v), Z(g.$$.fragment, v), Z(L), Z(y), Z(m, v), Z(T), C = !0);
2143
2143
  },
2144
2144
  o(v) {
2145
- K(M), K(l.$$.fragment, v), K(g.$$.fragment, v), K(L), K(y), K(m, v), K(S), W = !1;
2145
+ K(k), K(l.$$.fragment, v), K(g.$$.fragment, v), K(L), K(y), K(m, v), K(T), C = !1;
2146
2146
  },
2147
2147
  d(v) {
2148
- v && (A(e), A(t)), ue(l), i[69](null), ue(g), L && L.d(), y && y.d(), m && m.d(v), ~E && R[E].d(), G = !1, ce(V);
2148
+ v && (A(e), A(t)), ce(l), i[71](null), ce(g), L && L.d(), y && y.d(), m && m.d(v), ~S && O[S].d(), G = !1, de(J);
2149
2149
  }
2150
2150
  };
2151
2151
  }
2152
- function zn(i, e, t) {
2152
+ function Un(i, e, t) {
2153
2153
  let n, r, l, { $$slots: c = {}, $$scope: o } = e;
2154
2154
  const d = {
2155
2155
  continental_marine: 4,
@@ -2175,315 +2175,329 @@ function zn(i, e, t) {
2175
2175
  "poi.restaurant": 18,
2176
2176
  "poi.aerodrome": 13
2177
2177
  };
2178
- let { class: u = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: p = !1 } = e, { keepListOpen: I = !1 } = e, { collapsed: E = !1 } = e, { country: S = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: W = "never" } = e, { errorMessage: G = "Something went wrong…" } = e, { filter: V = () => !0 } = e, { flyTo: M = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: y = void 0 } = e, { limit: T = void 0 } = e, { mapController: m = void 0 } = e, { minLength: w = 2 } = e, { noResultsMessage: R = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: Me = "Search" } = e, { proximity: v = [{ type: "server-geolocation" }] } = e, { reverseActive: D = W === "always" } = e, { reverseButtonTitle: oe = "toggle reverse geocoding" } = e, { searchValue: Z = "" } = e, { pickedResultStyle: De = "full-geometry" } = e, { showPlaceType: vt = "if-needed" } = e, { showResultsWhileTyping: Ue = !0 } = e, { selectFirst: ye = !0 } = e, { flyToSelected: Ie = !1 } = e, { markerOnSelected: Ae = !0 } = e, { types: ge = void 0 } = e, { exhaustiveReverseGeocoding: Je = !1 } = e, { excludeTypes: Be = !1 } = e, { zoom: Pe = d } = e, { apiUrl: Xe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Ye = {} } = e, { iconsBaseUrl: Lt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-rc1/icons/" } = e, { adjustUrlQuery: xe = () => {
2179
- } } = e, { adjustUrl: $e = () => {
2178
+ let { class: u = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen: I = !1 } = e, { collapsed: S = !1 } = e, { country: T = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: C = "never" } = e, { errorMessage: G = "Something went wrong…" } = e, { filter: J = () => !0 } = e, { flyTo: k = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: y = void 0 } = e, { limit: M = void 0 } = e, { mapController: m = void 0 } = e, { minLength: p = 2 } = e, { noResultsMessage: O = "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: Ce = "Search" } = e, { proximity: v = [{ type: "server-geolocation" }] } = e, { reverseActive: R = C === "always" } = e, { reverseButtonTitle: se = "toggle reverse geocoding" } = e, { searchValue: F = "" } = e, { pickedResultStyle: Ae = "full-geometry" } = e, { showPlaceType: yt = "if-needed" } = e, { showResultsWhileTyping: Be = !0 } = e, { autocompleteTimeout: xe = void 0 } = e, { selectFirst: ve = !0 } = e, { flyToSelected: Pe = !1 } = e, { markerOnSelected: je = !0 } = e, { types: Le = void 0 } = e, { exhaustiveReverseGeocoding: $e = !1 } = e, { excludeTypes: Fe = !1 } = e, { zoom: He = d } = e, { apiUrl: et = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: tt = {} } = e, { iconsBaseUrl: wt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-with-autocomplete-timeout/icons/" } = e, { adjustUrlQuery: it = () => {
2179
+ } } = e, { adjustUrl: nt = () => {
2180
2180
  } } = e;
2181
- function ti(s) {
2181
+ function ri(s) {
2182
2182
  ee.focus(s);
2183
2183
  }
2184
- function ii() {
2184
+ function oi() {
2185
2185
  ee.blur();
2186
2186
  }
2187
- function _t(s, B = !0, F = !1) {
2188
- t(1, Z = s), B ? (t(15, O = -1), pt()) : (wt(void 0, !F, F), setTimeout(() => {
2187
+ function pt(s, B = !0, H = !1) {
2188
+ t(1, F = s), B ? (t(15, W = -1), St()) : (Tt(void 0, !H, H), setTimeout(() => {
2189
2189
  ee.focus(), ee.select();
2190
2190
  }));
2191
2191
  }
2192
- function ni() {
2193
- t(13, N = void 0), t(14, h = void 0), t(15, O = -1);
2192
+ function si() {
2193
+ t(13, E = void 0), t(14, h = void 0), t(15, W = -1);
2194
2194
  }
2195
- function ri() {
2196
- t(61, q = []), t(14, h = void 0);
2195
+ function ai() {
2196
+ t(62, q = []), t(14, h = void 0);
2197
2197
  }
2198
- let N, q, h, yt = "", ee, O = -1, ne, je = [], he, pe, we, et, se = !1;
2199
- const oi = /* @__PURE__ */ new Set(), de = Xt();
2200
- Ai(() => {
2198
+ let E, q, h, Et = "", ee, W = -1, re, Ze = [], _e, fe, $, Se, rt, ae = !1;
2199
+ const li = /* @__PURE__ */ new Set(), me = $t();
2200
+ function ui() {
2201
+ return !!$;
2202
+ }
2203
+ Fi(() => {
2201
2204
  m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
2202
2205
  });
2203
- function pt(s) {
2204
- if (t(17, se = !1), pe && (clearTimeout(pe), pe = void 0), O > -1 && N)
2205
- t(14, h = N[O]), t(1, Z = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, ne = void 0), t(61, q = void 0), t(15, O = -1);
2206
- else if (Z) {
2207
- const B = s || !tt(Z);
2208
- it(Z, { exact: !0 }).then(() => {
2209
- t(61, q = N), t(14, h = void 0), B && si();
2210
- }).catch((F) => t(19, ne = F));
2206
+ function St(s) {
2207
+ if (t(17, ae = !1), fe && (window.clearTimeout(fe), fe = void 0), $) {
2208
+ window.clearTimeout($), t(63, $ = void 0), We(F, { appendSpace: !0 });
2209
+ return;
2210
+ }
2211
+ if (W > -1 && E)
2212
+ t(14, h = E[W]), t(1, F = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, re = void 0), t(62, q = void 0), t(15, W = -1);
2213
+ else if (F) {
2214
+ const B = s || !ot(F);
2215
+ We(F, { exact: !0 }).then(() => {
2216
+ t(62, q = E), t(14, h = void 0), B && ci();
2217
+ }).catch((H) => t(19, re = H));
2211
2218
  }
2212
2219
  }
2213
- function tt(s) {
2220
+ function ot(s) {
2214
2221
  try {
2215
- return Nn(s, 6);
2222
+ return Cn(s, 6);
2216
2223
  } catch {
2217
2224
  return !1;
2218
2225
  }
2219
2226
  }
2220
- async function it(s, { byId: B = !1, exact: F = !1 } = {}) {
2221
- var x, re;
2222
- t(19, ne = void 0), he == null || he.abort();
2223
- const Y = new AbortController();
2224
- t(20, he = Y);
2227
+ async function We(s, { byId: B = !1, exact: H = !1, appendSpace: te = !1 } = {}) {
2228
+ var oe, ge;
2229
+ t(19, re = void 0), _e == null || _e.abort();
2230
+ const V = new AbortController();
2231
+ t(20, _e = V);
2225
2232
  try {
2226
- const C = tt(s), ot = new URL(Xe + "/" + encodeURIComponent(C ? C.decimalLongitude + "," + C.decimalLatitude : s) + ".json"), te = ot.searchParams;
2227
- if (y !== void 0 && te.set("language", Array.isArray(y) ? y.join(",") : y ?? ""), ge && te.set("types", ge.join(",")), Be && te.set("excludeTypes", String(Be)), g && te.set("bbox", g.map((He) => He.toFixed(6)).join(",")), S && te.set("country", Array.isArray(S) ? S.join(",") : S), !B && !C) {
2228
- const He = await gn(m, v, Y);
2229
- He && te.set("proximity", He), (F || !Ue) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(L));
2233
+ const U = ot(s), lt = new URL(et + "/" + encodeURIComponent(U ? U.decimalLongitude + "," + U.decimalLatitude : s + (te ? " " : "")) + ".json"), ie = lt.searchParams;
2234
+ if (y !== void 0 && ie.set("language", Array.isArray(y) ? y.join(",") : y ?? ""), Le && ie.set("types", Le.join(",")), Fe && ie.set("excludeTypes", String(Fe)), g && ie.set("bbox", g.map((Ge) => Ge.toFixed(6)).join(",")), T && ie.set("country", Array.isArray(T) ? T.join(",") : T), !B && !U) {
2235
+ const Ge = await Ln(m, v, V);
2236
+ Ge && ie.set("proximity", Ge), (H || !Be) && ie.set("autocomplete", "false"), ie.set("fuzzyMatch", String(L));
2230
2237
  }
2231
- T !== void 0 && (Je || !C || (ge == null ? void 0 : ge.length) === 1) && te.set("limit", String(T)), te.set("key", f), xe(te), $e(ot);
2232
- const Fe = ot.toString();
2233
- if (Fe === yt) {
2234
- B ? (p && t(13, N = void 0), t(14, h = je[0])) : (t(13, N = je), ((x = N[O]) == null ? void 0 : x.id) !== (r == null ? void 0 : r.id) && t(15, O = -1));
2238
+ M !== void 0 && ($e || !U || (Le == null ? void 0 : Le.length) === 1) && ie.set("limit", String(M)), ie.set("key", f), it(ie), nt(lt);
2239
+ const qe = lt.toString();
2240
+ if (qe === Et) {
2241
+ B ? (w && t(13, E = void 0), t(14, h = Ze[0])) : (t(13, E = Ze), ((oe = E[W]) == null ? void 0 : oe.id) !== (r == null ? void 0 : r.id) && t(15, W = -1));
2235
2242
  return;
2236
2243
  }
2237
- yt = Fe;
2238
- const st = await fetch(Fe, { signal: Y.signal, ...Ye });
2239
- if (!st.ok)
2240
- throw new Error(await st.text());
2241
- const at = await st.json();
2242
- de("response", { url: Fe, featureCollection: at }), B ? (p && t(13, N = void 0), t(14, h = at.features[0]), je = [h]) : (t(13, N = at.features.filter(V)), C && N.unshift({
2244
+ Et = qe;
2245
+ const ut = await fetch(qe, { signal: V.signal, ...tt });
2246
+ if (!ut.ok)
2247
+ throw new Error(await ut.text());
2248
+ const ct = await ut.json();
2249
+ me("response", { url: qe, featureCollection: ct }), B ? (w && t(13, E = void 0), t(14, h = ct.features[0]), Ze = [h]) : (t(13, E = ct.features.filter(J)), U && E.unshift({
2243
2250
  type: "Feature",
2244
2251
  properties: {},
2245
- id: "reverse_" + C.decimalLongitude + "_" + C.decimalLatitude,
2246
- text: C.decimalLatitude + ", " + C.decimalLongitude,
2247
- place_name: C.decimalLatitude + ", " + C.decimalLongitude,
2252
+ id: "reverse_" + U.decimalLongitude + "_" + U.decimalLatitude,
2253
+ text: U.decimalLatitude + ", " + U.decimalLongitude,
2254
+ place_name: U.decimalLatitude + ", " + U.decimalLongitude,
2248
2255
  place_type: ["reverse"],
2249
- center: [C.decimalLongitude, C.decimalLatitude],
2256
+ center: [U.decimalLongitude, U.decimalLatitude],
2250
2257
  bbox: [
2251
- C.decimalLongitude,
2252
- C.decimalLatitude,
2253
- C.decimalLongitude,
2254
- C.decimalLatitude
2258
+ U.decimalLongitude,
2259
+ U.decimalLatitude,
2260
+ U.decimalLongitude,
2261
+ U.decimalLatitude
2255
2262
  ],
2256
2263
  geometry: {
2257
2264
  type: "Point",
2258
- coordinates: [C.decimalLongitude, C.decimalLatitude]
2265
+ coordinates: [U.decimalLongitude, U.decimalLatitude]
2259
2266
  }
2260
- }), je = N, ((re = N[O]) == null ? void 0 : re.id) !== (r == null ? void 0 : r.id) && t(15, O = -1), C && ee.focus());
2261
- } catch (C) {
2262
- if (C && typeof C == "object" && "name" in C && C.name === "AbortError")
2267
+ }), Ze = E, ((ge = E[W]) == null ? void 0 : ge.id) !== (r == null ? void 0 : r.id) && t(15, W = -1), U && ee.focus());
2268
+ } catch (U) {
2269
+ if (U && typeof U == "object" && "name" in U && U.name === "AbortError")
2263
2270
  return;
2264
- throw C;
2271
+ throw U;
2265
2272
  } finally {
2266
- Y === he && t(20, he = void 0);
2273
+ V === _e && t(20, _e = void 0);
2267
2274
  }
2268
2275
  }
2269
- function si() {
2270
- var Y;
2271
- if (!(q != null && q.length) || !M)
2276
+ function ci() {
2277
+ var te;
2278
+ if (!(q != null && q.length) || !k)
2272
2279
  return;
2273
- const s = [180, 90, -180, -90], B = !q.some((x) => !x.matching_text);
2274
- let F;
2275
- for (const x of q) {
2276
- const re = Te(x);
2277
- if (F = F === void 0 ? re : re === void 0 ? F : Math.max(F, re), B || !x.matching_text)
2278
- for (const C of [0, 1, 2, 3])
2279
- s[C] = Math[C < 2 ? "min" : "max"](s[C], ((Y = x.bbox) == null ? void 0 : Y[C]) ?? x.center[C % 2]);
2280
+ const s = [180, 90, -180, -90], B = !q.some((V) => !V.matching_text);
2281
+ let H;
2282
+ for (const V of q) {
2283
+ const oe = ze(V);
2284
+ if (H = H === void 0 ? oe : oe === void 0 ? H : Math.max(H, oe), B || !V.matching_text)
2285
+ for (const ge of [0, 1, 2, 3])
2286
+ s[ge] = Math[ge < 2 ? "min" : "max"](s[ge], ((te = V.bbox) == null ? void 0 : te[ge]) ?? V.center[ge % 2]);
2280
2287
  }
2281
- m && q.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center, Te(h)) : m.fitBounds(Rt(s), 50, F));
2288
+ m && q.length > 0 && (h && s[0] === s[2] && s[1] === s[3] ? m.flyTo(h.center, ze(h)) : m.fitBounds(It(s), 50, H));
2282
2289
  }
2283
- function nt() {
2284
- !h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, Te(h)) : m.fitBounds(Rt(h.bbox), 50, Te(h)));
2290
+ function st() {
2291
+ !h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, ze(h)) : m.fitBounds(It(h.bbox), 50, ze(h)));
2285
2292
  }
2286
- function Te(s) {
2287
- var F;
2293
+ function ze(s) {
2294
+ var H;
2288
2295
  if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
2289
2296
  return;
2290
2297
  const B = s.id.replace(/\..*/, "");
2291
- return (Array.isArray((F = s.properties) == null ? void 0 : F.categories) ? s.properties.categories.reduce(
2292
- (Y, x) => {
2293
- const re = Pe[B + "." + x];
2294
- return Y === void 0 ? re : re === void 0 ? Y : Math.max(Y, re);
2298
+ return (Array.isArray((H = s.properties) == null ? void 0 : H.categories) ? s.properties.categories.reduce(
2299
+ (te, V) => {
2300
+ const oe = He[B + "." + V];
2301
+ return te === void 0 ? oe : oe === void 0 ? te : Math.max(te, oe);
2295
2302
  },
2296
2303
  void 0
2297
- ) : void 0) ?? Pe[B];
2304
+ ) : void 0) ?? He[B];
2298
2305
  }
2299
- function ai(s) {
2300
- t(0, D = W === "always"), t(13, N = void 0), t(14, h = void 0), t(15, O = -1), _t(s[1].toFixed(6) + ", " + mn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2306
+ function di(s) {
2307
+ t(0, R = C === "always"), t(13, E = void 0), t(14, h = void 0), t(15, W = -1), pt(s[1].toFixed(6) + ", " + vn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2301
2308
  }
2302
- function li(s) {
2303
- if (!N)
2309
+ function fi(s) {
2310
+ if (!E)
2304
2311
  return;
2305
2312
  let B = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2306
- B && (ee.focus(), t(17, se = !0), s.preventDefault(), h && O === -1 && t(15, O = N.findIndex((F) => F.id === (h == null ? void 0 : h.id))), O === (h || ye ? 0 : -1) && B === -1 && t(15, O = N.length), t(15, O += B), O >= N.length && t(15, O = -1), O < 0 && (h || ye) && t(15, O = 0));
2313
+ B && (ee.focus(), t(17, ae = !0), s.preventDefault(), h && W === -1 && t(15, W = E.findIndex((H) => H.id === (h == null ? void 0 : h.id))), W === (h || ve ? 0 : -1) && B === -1 && t(15, W = E.length), t(15, W += B), W >= E.length && t(15, W = -1), W < 0 && (h || ve) && t(15, W = 0));
2307
2314
  }
2308
- function wt(s, B = !0, F = !1) {
2309
- if (t(19, ne = void 0), t(14, h = void 0), t(17, se = !0), Ue || F) {
2310
- if (pe && clearTimeout(pe), Z.length < w)
2311
- return;
2312
- const Y = Z;
2313
- pe = window.setTimeout(
2314
- () => {
2315
- it(Y).catch((x) => t(19, ne = x));
2316
- },
2317
- B ? z : 0
2318
- );
2319
- } else
2320
- t(13, N = void 0), t(19, ne = void 0);
2315
+ function Tt(s, B = !0, H = !1) {
2316
+ if (t(19, re = void 0), t(14, h = void 0), t(17, ae = !0), fe && (window.clearTimeout(fe), fe = void 0), $ && (window.clearTimeout($), t(63, $ = void 0)), !Be && !H || F.length < p) {
2317
+ t(13, E = void 0);
2318
+ return;
2319
+ }
2320
+ const te = F;
2321
+ fe = window.setTimeout(
2322
+ () => {
2323
+ fe = void 0, We(te).catch((V) => t(19, re = V));
2324
+ },
2325
+ B ? z : 0
2326
+ ), F.endsWith(" ") || t(63, $ = window.setTimeout(
2327
+ () => {
2328
+ t(63, $ = void 0), We(te, { appendSpace: !0 }).catch((V) => t(19, re = V));
2329
+ },
2330
+ xe
2331
+ ));
2321
2332
  }
2322
- function rt(s) {
2323
- h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ? nt() : (t(14, h = s), t(1, Z = s.place_name));
2333
+ function at(s) {
2334
+ h && (h == null ? void 0 : h.id) === (s == null ? void 0 : s.id) ? st() : (t(14, h = s), t(1, F = s.place_name));
2324
2335
  }
2325
- function Et(s) {
2326
- t(15, O = s);
2336
+ function Nt(s) {
2337
+ t(15, W = s);
2327
2338
  }
2328
- function ui() {
2329
- (!ye || h) && t(15, O = -1), Ie && nt();
2339
+ function mi() {
2340
+ (!ve || h) && t(15, W = -1), Pe && st();
2330
2341
  }
2331
- const ci = () => ee.focus();
2332
- function di(s) {
2333
- ft[s ? "unshift" : "push"](() => {
2342
+ const gi = () => ee.focus();
2343
+ function hi(s) {
2344
+ ht[s ? "unshift" : "push"](() => {
2334
2345
  ee = s, t(18, ee);
2335
2346
  });
2336
2347
  }
2337
- function fi() {
2338
- Z = this.value, t(1, Z), t(17, se), t(31, _), t(16, we);
2348
+ function bi() {
2349
+ F = this.value, t(1, F), t(17, ae), t(31, _), t(16, Se);
2339
2350
  }
2340
- const mi = () => t(17, se = !0), gi = () => t(17, se = !1), hi = () => t(17, se = !0), bi = () => t(14, h = void 0), vi = () => {
2341
- t(1, Z = ""), ee.focus();
2342
- }, Li = () => t(0, D = !D), _i = () => t(19, ne = void 0), yi = (s) => Et(s), pi = (s) => rt(s), wi = () => {
2351
+ const vi = () => t(17, ae = !0), Li = () => t(17, ae = !1), _i = () => t(17, ae = !0), yi = () => t(14, h = void 0), wi = () => {
2352
+ t(1, F = ""), ee.focus();
2353
+ }, pi = () => t(0, R = !R), Ei = () => t(19, re = void 0), Si = (s) => Nt(s), Ti = (s) => at(s), Ni = () => {
2343
2354
  };
2344
2355
  return i.$$set = (s) => {
2345
- "class" in s && t(2, u = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, p = s.clearListOnPick), "keepListOpen" in s && t(4, I = s.keepListOpen), "collapsed" in s && t(5, E = s.collapsed), "country" in s && t(33, S = s.country), "debounceSearch" in s && t(34, z = s.debounceSearch), "enableReverse" in s && t(6, W = s.enableReverse), "errorMessage" in s && t(7, G = s.errorMessage), "filter" in s && t(35, V = s.filter), "flyTo" in s && t(36, M = s.flyTo), "fuzzyMatch" in s && t(37, L = s.fuzzyMatch), "language" in s && t(38, y = s.language), "limit" in s && t(39, T = s.limit), "mapController" in s && t(40, m = s.mapController), "minLength" in s && t(41, w = s.minLength), "noResultsMessage" in s && t(8, R = s.noResultsMessage), "placeholder" in s && t(9, Me = s.placeholder), "proximity" in s && t(42, v = s.proximity), "reverseActive" in s && t(0, D = s.reverseActive), "reverseButtonTitle" in s && t(10, oe = s.reverseButtonTitle), "searchValue" in s && t(1, Z = s.searchValue), "pickedResultStyle" in s && t(43, De = s.pickedResultStyle), "showPlaceType" in s && t(11, vt = s.showPlaceType), "showResultsWhileTyping" in s && t(44, Ue = s.showResultsWhileTyping), "selectFirst" in s && t(45, ye = s.selectFirst), "flyToSelected" in s && t(46, Ie = s.flyToSelected), "markerOnSelected" in s && t(47, Ae = s.markerOnSelected), "types" in s && t(48, ge = s.types), "exhaustiveReverseGeocoding" in s && t(49, Je = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(50, Be = s.excludeTypes), "zoom" in s && t(51, Pe = s.zoom), "apiUrl" in s && t(52, Xe = s.apiUrl), "fetchParameters" in s && t(53, Ye = s.fetchParameters), "iconsBaseUrl" in s && t(12, Lt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(54, xe = s.adjustUrlQuery), "adjustUrl" in s && t(55, $e = s.adjustUrl), "$$scope" in s && t(66, o = s.$$scope);
2356
+ "class" in s && t(2, u = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, g = s.bbox), "clearButtonTitle" in s && t(3, b = s.clearButtonTitle), "clearOnBlur" in s && t(31, _ = s.clearOnBlur), "clearListOnPick" in s && t(32, w = s.clearListOnPick), "keepListOpen" in s && t(4, I = s.keepListOpen), "collapsed" in s && t(5, S = s.collapsed), "country" in s && t(33, T = s.country), "debounceSearch" in s && t(34, z = s.debounceSearch), "enableReverse" in s && t(6, C = s.enableReverse), "errorMessage" in s && t(7, G = s.errorMessage), "filter" in s && t(35, J = s.filter), "flyTo" in s && t(36, k = s.flyTo), "fuzzyMatch" in s && t(37, L = s.fuzzyMatch), "language" in s && t(38, y = s.language), "limit" in s && t(39, M = s.limit), "mapController" in s && t(40, m = s.mapController), "minLength" in s && t(41, p = s.minLength), "noResultsMessage" in s && t(8, O = s.noResultsMessage), "placeholder" in s && t(9, Ce = s.placeholder), "proximity" in s && t(42, v = s.proximity), "reverseActive" in s && t(0, R = s.reverseActive), "reverseButtonTitle" in s && t(10, se = s.reverseButtonTitle), "searchValue" in s && t(1, F = s.searchValue), "pickedResultStyle" in s && t(43, Ae = s.pickedResultStyle), "showPlaceType" in s && t(11, yt = s.showPlaceType), "showResultsWhileTyping" in s && t(44, Be = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(45, xe = s.autocompleteTimeout), "selectFirst" in s && t(46, ve = s.selectFirst), "flyToSelected" in s && t(47, Pe = s.flyToSelected), "markerOnSelected" in s && t(48, je = s.markerOnSelected), "types" in s && t(49, Le = s.types), "exhaustiveReverseGeocoding" in s && t(50, $e = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(51, Fe = s.excludeTypes), "zoom" in s && t(52, He = s.zoom), "apiUrl" in s && t(53, et = s.apiUrl), "fetchParameters" in s && t(54, tt = s.fetchParameters), "iconsBaseUrl" in s && t(12, wt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(55, it = s.adjustUrlQuery), "adjustUrl" in s && t(56, nt = s.adjustUrl), "$$scope" in s && t(68, o = s.$$scope);
2346
2357
  }, i.$$.update = () => {
2347
2358
  if (i.$$.dirty[0] & /*enableReverse*/
2348
- 64 && t(0, D = W === "always"), i.$$.dirty[0] & /*picked*/
2359
+ 64 && t(0, R = C === "always"), i.$$.dirty[0] & /*picked*/
2349
2360
  16384 | i.$$.dirty[1] & /*pickedResultStyle*/
2350
- 4096 && De !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && it(h.id, { byId: !0 }).catch((s) => t(19, ne = s)), i.$$.dirty[0] & /*picked*/
2361
+ 4096 && Ae !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && We(h.id, { byId: !0 }).catch((s) => t(19, re = s)), i.$$.dirty[0] & /*picked*/
2351
2362
  16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
2352
2363
  546 | i.$$.dirty[2] & /*prevIdToFly*/
2353
- 1 && (m && h && h.id !== et && M && (nt(), p && t(13, N = void 0), t(61, q = void 0), t(15, O = -1)), t(62, et = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2364
+ 4 && (m && h && h.id !== rt && k && (st(), w && t(13, E = void 0), t(62, q = void 0), t(15, W = -1)), t(64, rt = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
2354
2365
  196608 | i.$$.dirty[1] & /*clearOnBlur*/
2355
2366
  1 && setTimeout(() => {
2356
- t(16, we = se), _ && !we && t(1, Z = "");
2367
+ t(16, Se = ae), _ && !Se && t(1, F = "");
2357
2368
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2358
2369
  8194 | i.$$.dirty[1] & /*minLength*/
2359
- 1024 && Z.length < w && (t(13, N = void 0), t(19, ne = void 0), t(61, q = N)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2370
+ 1024 && F.length < p && (t(13, E = void 0), t(19, re = void 0), t(62, q = E)), i.$$.dirty[0] & /*listFeatures*/
2371
+ 8192 | i.$$.dirty[1] & /*selectFirst*/
2372
+ 32768 && ve && E != null && E.length && (ui() || t(15, W = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
2360
2373
  57344 | i.$$.dirty[1] & /*selectFirst*/
2361
- 16384 && ye && N != null && N.length && O == -1 && !h && t(15, O = 0), i.$$.dirty[0] & /*listFeatures*/
2362
- 8192 | i.$$.dirty[1] & /*markedFeatures*/
2363
- 1073741824 && q !== N && t(61, q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2364
- 73729 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2365
- 1073742336 && m && m.setEventHandler((s) => {
2374
+ 32768 && ve && E != null && E.length && W == -1 && !h && t(15, W = 0), i.$$.dirty[0] & /*listFeatures*/
2375
+ 8192 | i.$$.dirty[2] & /*markedFeatures*/
2376
+ 1 && q !== E && t(62, q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2377
+ 73729 | i.$$.dirty[1] & /*mapController*/
2378
+ 512 | i.$$.dirty[2] & /*markedFeatures*/
2379
+ 1 && m && m.setEventHandler((s) => {
2366
2380
  switch (s.type) {
2367
2381
  case "mapClick":
2368
- D && ai(s.coordinates);
2382
+ R && di(s.coordinates);
2369
2383
  break;
2370
2384
  case "markerClick":
2371
2385
  {
2372
- const B = N == null ? void 0 : N.find((F) => F.id === s.id);
2373
- B && rt(B);
2386
+ const B = E == null ? void 0 : E.find((H) => H.id === s.id);
2387
+ B && at(B);
2374
2388
  }
2375
2389
  break;
2376
2390
  case "markerMouseEnter":
2377
- q && t(15, O = we ? (N == null ? void 0 : N.findIndex((B) => B.id === s.id)) ?? -1 : -1);
2391
+ q && t(15, W = Se ? (E == null ? void 0 : E.findIndex((B) => B.id === s.id)) ?? -1 : -1);
2378
2392
  break;
2379
2393
  case "markerMouseLeave":
2380
- q && t(15, O = -1);
2394
+ q && t(15, W = -1);
2381
2395
  break;
2382
2396
  }
2383
2397
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2384
- 40960 && t(63, r = N == null ? void 0 : N[O]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2385
- 33312 | i.$$.dirty[2] & /*selected*/
2386
- 2 && m && r && M && Ie && m.flyTo(r.center, Te(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2387
- 4096 && t(65, n = De === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2388
- 66048 | i.$$.dirty[2] & /*showPolygonMarker*/
2389
- 8 && (Ae || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2390
- 16384 | i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures*/
2391
- 1073807872 | i.$$.dirty[2] & /*selected, showPolygonMarker*/
2392
- 10 && m && Ae && !q && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2393
- 16384 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2394
- 1073742336 | i.$$.dirty[2] & /*showPolygonMarker*/
2395
- 8 && m && m.setFeatures(q, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
2396
- 32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2397
- 1073742336 && q && m && m.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2398
+ 40960 && t(65, r = E == null ? void 0 : E[W]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
2399
+ 66080 | i.$$.dirty[2] & /*selected*/
2400
+ 8 && m && r && k && Pe && m.flyTo(r.center, ze(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2401
+ 4096 && t(67, n = Ae === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2402
+ 131584 | i.$$.dirty[2] & /*showPolygonMarker*/
2403
+ 32 && (je || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
2404
+ 16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
2405
+ 131584 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
2406
+ 41 && m && je && !q && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
2407
+ 16384 | i.$$.dirty[1] & /*mapController*/
2408
+ 512 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
2409
+ 33 && m && m.setFeatures(q, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
2410
+ 32768 | i.$$.dirty[1] & /*mapController*/
2411
+ 512 | i.$$.dirty[2] & /*markedFeatures*/
2412
+ 1 && q && m && m.setSelectedMarker(W), i.$$.dirty[2] & /*selected, autocompleteTimeoutRef*/
2413
+ 10 && r && (window.clearTimeout($), t(63, $ = void 0)), i.$$.dirty[0] & /*searchValue*/
2398
2414
  2 | i.$$.dirty[1] & /*mapController*/
2399
2415
  512 && m) {
2400
- const s = tt(Z);
2416
+ const s = ot(F);
2401
2417
  m.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2402
2418
  }
2403
2419
  i.$$.dirty[2] & /*selected*/
2404
- 2 && de("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2405
- 16384 && de("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2406
- 73744 && t(64, l = !!(N != null && N.length) && (we || I)), i.$$.dirty[2] & /*optionsVisible*/
2407
- 4 && de("optionsvisibilitychange", { optionsVisible: l }), i.$$.dirty[0] & /*listFeatures*/
2408
- 8192 && de("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
2409
- 1073741824 && de("featuresmarked", { features: q }), i.$$.dirty[0] & /*reverseActive*/
2410
- 1 && de("reversetoggle", { reverse: D }), i.$$.dirty[0] & /*searchValue*/
2411
- 2 && de("querychange", { query: Z }), i.$$.dirty[0] & /*reverseActive*/
2420
+ 8 && me("select", { feature: r }), i.$$.dirty[0] & /*picked*/
2421
+ 16384 && me("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
2422
+ 73744 && t(66, l = !!(E != null && E.length) && (Se || I)), i.$$.dirty[2] & /*optionsVisible*/
2423
+ 16 && me("optionsvisibilitychange", { optionsVisible: l }), i.$$.dirty[0] & /*listFeatures*/
2424
+ 8192 && me("featureslisted", { features: E }), i.$$.dirty[2] & /*markedFeatures*/
2425
+ 1 && me("featuresmarked", { features: q }), i.$$.dirty[0] & /*reverseActive*/
2426
+ 1 && me("reversetoggle", { reverse: R }), i.$$.dirty[0] & /*searchValue*/
2427
+ 2 && me("querychange", { query: F }), i.$$.dirty[0] & /*reverseActive*/
2412
2428
  1 | i.$$.dirty[1] & /*mapController*/
2413
- 512 && m && m.indicateReverse(D);
2429
+ 512 && m && m.indicateReverse(R);
2414
2430
  }, [
2415
- D,
2416
- Z,
2431
+ R,
2432
+ F,
2417
2433
  u,
2418
2434
  b,
2419
2435
  I,
2420
- E,
2421
- W,
2436
+ S,
2437
+ C,
2422
2438
  G,
2423
- R,
2424
- Me,
2425
- oe,
2426
- vt,
2427
- Lt,
2428
- N,
2429
- h,
2430
2439
  O,
2431
- we,
2440
+ Ce,
2432
2441
  se,
2442
+ yt,
2443
+ wt,
2444
+ E,
2445
+ h,
2446
+ W,
2447
+ Se,
2448
+ ae,
2433
2449
  ee,
2434
- ne,
2435
- he,
2436
- oi,
2437
- pt,
2450
+ re,
2451
+ _e,
2438
2452
  li,
2439
- wt,
2440
- rt,
2441
- Et,
2442
- ui,
2453
+ St,
2454
+ fi,
2455
+ Tt,
2456
+ at,
2457
+ Nt,
2458
+ mi,
2443
2459
  d,
2444
2460
  f,
2445
2461
  g,
2446
2462
  _,
2447
- p,
2448
- S,
2463
+ w,
2464
+ T,
2449
2465
  z,
2450
- V,
2451
- M,
2466
+ J,
2467
+ k,
2452
2468
  L,
2453
2469
  y,
2454
- T,
2470
+ M,
2455
2471
  m,
2456
- w,
2472
+ p,
2457
2473
  v,
2458
- De,
2459
- Ue,
2460
- ye,
2461
- Ie,
2462
2474
  Ae,
2463
- ge,
2464
- Je,
2465
2475
  Be,
2466
- Pe,
2467
- Xe,
2468
- Ye,
2469
2476
  xe,
2477
+ ve,
2478
+ Pe,
2479
+ je,
2480
+ Le,
2470
2481
  $e,
2471
- ti,
2472
- ii,
2473
- _t,
2474
- ni,
2482
+ Fe,
2483
+ He,
2484
+ et,
2485
+ tt,
2486
+ it,
2487
+ nt,
2475
2488
  ri,
2489
+ oi,
2490
+ pt,
2491
+ si,
2492
+ ai,
2476
2493
  q,
2477
- et,
2494
+ $,
2495
+ rt,
2478
2496
  r,
2479
2497
  l,
2480
2498
  n,
2481
2499
  o,
2482
2500
  c,
2483
- ci,
2484
- di,
2485
- fi,
2486
- mi,
2487
2501
  gi,
2488
2502
  hi,
2489
2503
  bi,
@@ -2491,18 +2505,22 @@ function zn(i, e, t) {
2491
2505
  Li,
2492
2506
  _i,
2493
2507
  yi,
2508
+ wi,
2494
2509
  pi,
2495
- wi
2510
+ Ei,
2511
+ Si,
2512
+ Ti,
2513
+ Ni
2496
2514
  ];
2497
2515
  }
2498
- let On = class extends _e {
2516
+ let In = class extends Ee {
2499
2517
  constructor(e) {
2500
- super(), Le(
2518
+ super(), pe(
2501
2519
  this,
2502
2520
  e,
2503
- zn,
2504
- Wn,
2505
- ve,
2521
+ Un,
2522
+ Dn,
2523
+ we,
2506
2524
  {
2507
2525
  ZOOM_DEFAULTS: 28,
2508
2526
  class: 2,
@@ -2533,23 +2551,24 @@ let On = class extends _e {
2533
2551
  pickedResultStyle: 43,
2534
2552
  showPlaceType: 11,
2535
2553
  showResultsWhileTyping: 44,
2536
- selectFirst: 45,
2537
- flyToSelected: 46,
2538
- markerOnSelected: 47,
2539
- types: 48,
2540
- exhaustiveReverseGeocoding: 49,
2541
- excludeTypes: 50,
2542
- zoom: 51,
2543
- apiUrl: 52,
2544
- fetchParameters: 53,
2554
+ autocompleteTimeout: 45,
2555
+ selectFirst: 46,
2556
+ flyToSelected: 47,
2557
+ markerOnSelected: 48,
2558
+ types: 49,
2559
+ exhaustiveReverseGeocoding: 50,
2560
+ excludeTypes: 51,
2561
+ zoom: 52,
2562
+ apiUrl: 53,
2563
+ fetchParameters: 54,
2545
2564
  iconsBaseUrl: 12,
2546
- adjustUrlQuery: 54,
2547
- adjustUrl: 55,
2548
- focus: 56,
2549
- blur: 57,
2550
- setQuery: 58,
2551
- clearList: 59,
2552
- clearMap: 60
2565
+ adjustUrlQuery: 55,
2566
+ adjustUrl: 56,
2567
+ focus: 57,
2568
+ blur: 58,
2569
+ setQuery: 59,
2570
+ clearList: 60,
2571
+ clearMap: 61
2553
2572
  },
2554
2573
  null,
2555
2574
  [-1, -1, -1, -1]
@@ -2559,31 +2578,31 @@ let On = class extends _e {
2559
2578
  return this.$$.ctx[28];
2560
2579
  }
2561
2580
  get focus() {
2562
- return this.$$.ctx[56];
2581
+ return this.$$.ctx[57];
2563
2582
  }
2564
2583
  get blur() {
2565
- return this.$$.ctx[57];
2584
+ return this.$$.ctx[58];
2566
2585
  }
2567
2586
  get setQuery() {
2568
- return this.$$.ctx[58];
2587
+ return this.$$.ctx[59];
2569
2588
  }
2570
2589
  get clearList() {
2571
- return this.$$.ctx[59];
2590
+ return this.$$.ctx[60];
2572
2591
  }
2573
2592
  get clearMap() {
2574
- return this.$$.ctx[60];
2593
+ return this.$$.ctx[61];
2575
2594
  }
2576
2595
  };
2577
- const Rn = new FinalizationRegistry((i) => {
2596
+ const An = new FinalizationRegistry((i) => {
2578
2597
  i.$destroy();
2579
2598
  });
2580
- var X, Ve, ei;
2581
- const bt = class bt extends EventTarget {
2599
+ var Y, Ye, ni;
2600
+ const _t = class _t extends EventTarget {
2582
2601
  constructor({ target: t, ...n }) {
2583
2602
  super();
2584
- ct(this, Ve);
2585
- ct(this, X);
2586
- Nt(this, X, new On({
2603
+ mt(this, Ye);
2604
+ mt(this, Y);
2605
+ Mt(this, Y, new In({
2587
2606
  target: t,
2588
2607
  props: n
2589
2608
  }));
@@ -2597,15 +2616,15 @@ const bt = class bt extends EventTarget {
2597
2616
  "reversetoggle",
2598
2617
  "querychange"
2599
2618
  ])
2600
- ie(this, X).$on(r, (l) => {
2601
- kt(this, Ve, ei).call(this, r, l.detail);
2619
+ ne(this, Y).$on(r, (l) => {
2620
+ Ct(this, Ye, ni).call(this, r, l.detail);
2602
2621
  });
2603
- ie(this, X).$on("select", (r) => {
2622
+ ne(this, Y).$on("select", (r) => {
2604
2623
  const l = new CustomEvent(r.type, {
2605
2624
  detail: r.detail
2606
2625
  });
2607
2626
  this.dispatchEvent(l);
2608
- }), Rn.register(this, ie(this, X));
2627
+ }), An.register(this, ne(this, Y));
2609
2628
  }
2610
2629
  /**
2611
2630
  * Update the control options.
@@ -2613,7 +2632,7 @@ const bt = class bt extends EventTarget {
2613
2632
  * @param options options to update
2614
2633
  */
2615
2634
  setOptions(t) {
2616
- ie(this, X).$set(t);
2635
+ ne(this, Y).$set(t);
2617
2636
  }
2618
2637
  /**
2619
2638
  * Set the content of search input box.
@@ -2623,21 +2642,21 @@ const bt = class bt extends EventTarget {
2623
2642
  */
2624
2643
  setQuery(t, n = !0) {
2625
2644
  var r;
2626
- (r = ie(this, X)) == null || r.setQuery(t, n);
2645
+ (r = ne(this, Y)) == null || r.setQuery(t, n);
2627
2646
  }
2628
2647
  /**
2629
2648
  * Clear geocoding search results from the map.
2630
2649
  */
2631
2650
  clearMap() {
2632
2651
  var t;
2633
- (t = ie(this, X)) == null || t.clearMap();
2652
+ (t = ne(this, Y)) == null || t.clearMap();
2634
2653
  }
2635
2654
  /**
2636
2655
  * Clear search result list.
2637
2656
  */
2638
2657
  clearList() {
2639
2658
  var t;
2640
- (t = ie(this, X)) == null || t.clearList();
2659
+ (t = ne(this, Y)) == null || t.clearList();
2641
2660
  }
2642
2661
  /**
2643
2662
  * Set reverse geocoding mode.
@@ -2646,7 +2665,7 @@ const bt = class bt extends EventTarget {
2646
2665
  */
2647
2666
  setReverseMode(t) {
2648
2667
  var n;
2649
- (n = ie(this, X)) == null || n.$set({ reverseActive: t });
2668
+ (n = ne(this, Y)) == null || n.$set({ reverseActive: t });
2650
2669
  }
2651
2670
  /**
2652
2671
  * Focus the search input box.
@@ -2655,14 +2674,14 @@ const bt = class bt extends EventTarget {
2655
2674
  */
2656
2675
  focus(t) {
2657
2676
  var n;
2658
- (n = ie(this, X)) == null || n.focus(t);
2677
+ (n = ne(this, Y)) == null || n.focus(t);
2659
2678
  }
2660
2679
  /**
2661
2680
  * Blur the search input box.
2662
2681
  */
2663
2682
  blur() {
2664
2683
  var t;
2665
- (t = ie(this, X)) == null || t.blur();
2684
+ (t = ne(this, Y)) == null || t.blur();
2666
2685
  }
2667
2686
  addEventListener(t, n, r) {
2668
2687
  super.addEventListener(t, n, r);
@@ -2674,16 +2693,16 @@ const bt = class bt extends EventTarget {
2674
2693
  return super.dispatchEvent(t);
2675
2694
  }
2676
2695
  };
2677
- X = new WeakMap(), Ve = new WeakSet(), ei = function(t, n) {
2678
- return Mt(bt.prototype, this, "dispatchEvent").call(
2696
+ Y = new WeakMap(), Ye = new WeakSet(), ni = function(t, n) {
2697
+ return Wt(_t.prototype, this, "dispatchEvent").call(
2679
2698
  this,
2680
2699
  new CustomEvent(t, {
2681
2700
  detail: n
2682
2701
  })
2683
2702
  );
2684
2703
  };
2685
- let Gt = bt;
2704
+ let Vt = _t;
2686
2705
  export {
2687
- Gt as GeocodingControl
2706
+ Vt as GeocodingControl
2688
2707
  };
2689
2708
  //# sourceMappingURL=vanilla.js.map