@maptiler/geocoding-control 0.0.94 → 0.0.96-alpha.1

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