@maptiler/geocoding-control 0.0.31 → 0.0.36

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/dist/leaflet.js CHANGED
@@ -2,15 +2,15 @@ var Ve = (t, e, n) => {
2
2
  if (!e.has(t))
3
3
  throw TypeError("Cannot " + n);
4
4
  };
5
- var Z = (t, e, n) => (Ve(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Be = (t, e, n) => {
5
+ var Z = (t, e, n) => (Ve(t, e, "read from private field"), n ? n.call(t) : e.get(t)), je = (t, e, n) => {
6
6
  if (e.has(t))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
9
- }, Ce = (t, e, n, l) => (Ve(t, e, "write to private field"), l ? l.call(t, n) : e.set(t, n), n);
9
+ }, Te = (t, e, n, l) => (Ve(t, e, "write to private field"), l ? l.call(t, n) : e.set(t, n), n);
10
10
  import * as se from "leaflet";
11
- function w() {
11
+ function k() {
12
12
  }
13
- function vt(t, e) {
13
+ function wt(t, e) {
14
14
  for (const n in e)
15
15
  t[n] = e[n];
16
16
  return t;
@@ -18,19 +18,19 @@ function vt(t, e) {
18
18
  function $e(t) {
19
19
  return t();
20
20
  }
21
- function Ue() {
21
+ function Ge() {
22
22
  return /* @__PURE__ */ Object.create(null);
23
23
  }
24
- function te(t) {
24
+ function ne(t) {
25
25
  t.forEach($e);
26
26
  }
27
27
  function et(t) {
28
28
  return typeof t == "function";
29
29
  }
30
- function he(t, e) {
30
+ function _e(t, e) {
31
31
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
32
32
  }
33
- function wt(t) {
33
+ function vt(t) {
34
34
  return Object.keys(t).length === 0;
35
35
  }
36
36
  function kt(t, e, n, l) {
@@ -40,7 +40,7 @@ function kt(t, e, n, l) {
40
40
  }
41
41
  }
42
42
  function tt(t, e, n, l) {
43
- return t[1] && l ? vt(n.ctx.slice(), t[1](l(e))) : n.ctx;
43
+ return t[1] && l ? wt(n.ctx.slice(), t[1](l(e))) : n.ctx;
44
44
  }
45
45
  function Ct(t, e, n, l) {
46
46
  if (t[2] && l) {
@@ -48,8 +48,8 @@ function Ct(t, e, n, l) {
48
48
  if (e.dirty === void 0)
49
49
  return r;
50
50
  if (typeof r == "object") {
51
- const c = [], o = Math.max(e.dirty.length, r.length);
52
- for (let i = 0; i < o; i += 1)
51
+ const c = [], s = Math.max(e.dirty.length, r.length);
52
+ for (let i = 0; i < s; i += 1)
53
53
  c[i] = e.dirty[i] | r[i];
54
54
  return c;
55
55
  }
@@ -59,8 +59,8 @@ function Ct(t, e, n, l) {
59
59
  }
60
60
  function Mt(t, e, n, l, r, c) {
61
61
  if (r) {
62
- const o = tt(e, n, l, c);
63
- t.p(o, r);
62
+ const s = tt(e, n, l, c);
63
+ t.p(s, r);
64
64
  }
65
65
  }
66
66
  function Tt(t) {
@@ -72,7 +72,7 @@ function Tt(t) {
72
72
  }
73
73
  return -1;
74
74
  }
75
- function We(t) {
75
+ function Ue(t) {
76
76
  return t == null ? "" : t;
77
77
  }
78
78
  function y(t, e) {
@@ -84,26 +84,26 @@ function V(t, e, n) {
84
84
  function H(t) {
85
85
  t.parentNode.removeChild(t);
86
86
  }
87
- function Et(t, e) {
87
+ function zt(t, e) {
88
88
  for (let n = 0; n < t.length; n += 1)
89
89
  t[n] && t[n].d(e);
90
90
  }
91
- function A(t) {
91
+ function B(t) {
92
92
  return document.createElement(t);
93
93
  }
94
- function ee(t) {
94
+ function te(t) {
95
95
  return document.createElementNS("http://www.w3.org/2000/svg", t);
96
96
  }
97
- function ce(t) {
97
+ function fe(t) {
98
98
  return document.createTextNode(t);
99
99
  }
100
100
  function x() {
101
- return ce(" ");
101
+ return fe(" ");
102
102
  }
103
103
  function Q(t, e, n, l) {
104
104
  return t.addEventListener(e, n, l), () => t.removeEventListener(e, n, l);
105
105
  }
106
- function Rt(t) {
106
+ function Lt(t) {
107
107
  return function(e) {
108
108
  return e.preventDefault(), t.call(this, e);
109
109
  };
@@ -111,94 +111,94 @@ function Rt(t) {
111
111
  function f(t, e, n) {
112
112
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
113
113
  }
114
- function Lt(t) {
114
+ function Et(t) {
115
115
  return Array.from(t.childNodes);
116
116
  }
117
117
  function ve(t, e) {
118
118
  e = "" + e, t.wholeText !== e && (t.data = e);
119
119
  }
120
- function Ge(t, e) {
120
+ function We(t, e) {
121
121
  t.value = e == null ? "" : e;
122
122
  }
123
123
  function O(t, e, n) {
124
124
  t.classList[n ? "add" : "remove"](e);
125
125
  }
126
- function St(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
126
+ function Rt(t, e, { bubbles: n = !1, cancelable: l = !1 } = {}) {
127
127
  const r = document.createEvent("CustomEvent");
128
128
  return r.initCustomEvent(t, n, l, e), r;
129
129
  }
130
- let we;
131
- function pe(t) {
132
- we = t;
130
+ let ke;
131
+ function we(t) {
132
+ ke = t;
133
133
  }
134
134
  function nt() {
135
- if (!we)
135
+ if (!ke)
136
136
  throw new Error("Function called outside component initialization");
137
- return we;
137
+ return ke;
138
138
  }
139
- function It(t) {
139
+ function St(t) {
140
140
  nt().$$.on_destroy.push(t);
141
141
  }
142
- function Bt() {
142
+ function It() {
143
143
  const t = nt();
144
144
  return (e, n, { cancelable: l = !1 } = {}) => {
145
145
  const r = t.$$.callbacks[e];
146
146
  if (r) {
147
- const c = St(e, n, { cancelable: l });
148
- return r.slice().forEach((o) => {
149
- o.call(t, c);
147
+ const c = Rt(e, n, { cancelable: l });
148
+ return r.slice().forEach((s) => {
149
+ s.call(t, c);
150
150
  }), !c.defaultPrevented;
151
151
  }
152
152
  return !0;
153
153
  };
154
154
  }
155
- const be = [], Ae = [], Te = [], Ze = [], Pt = Promise.resolve();
156
- let ze = !1;
157
- function At() {
158
- ze || (ze = !0, Pt.then(lt));
155
+ const pe = [], De = [], Le = [], Ze = [], Pt = Promise.resolve();
156
+ let Ne = !1;
157
+ function Bt() {
158
+ Ne || (Ne = !0, Pt.then(lt));
159
159
  }
160
- function je(t) {
161
- Te.push(t);
160
+ function qe(t) {
161
+ Le.push(t);
162
162
  }
163
- const Pe = /* @__PURE__ */ new Set();
164
- let Me = 0;
163
+ const Oe = /* @__PURE__ */ new Set();
164
+ let ze = 0;
165
165
  function lt() {
166
- const t = we;
166
+ const t = ke;
167
167
  do {
168
- for (; Me < be.length; ) {
169
- const e = be[Me];
170
- Me++, pe(e), zt(e.$$);
168
+ for (; ze < pe.length; ) {
169
+ const e = pe[ze];
170
+ ze++, we(e), At(e.$$);
171
171
  }
172
- for (pe(null), be.length = 0, Me = 0; Ae.length; )
173
- Ae.pop()();
174
- for (let e = 0; e < Te.length; e += 1) {
175
- const n = Te[e];
176
- Pe.has(n) || (Pe.add(n), n());
172
+ for (we(null), pe.length = 0, ze = 0; De.length; )
173
+ De.pop()();
174
+ for (let e = 0; e < Le.length; e += 1) {
175
+ const n = Le[e];
176
+ Oe.has(n) || (Oe.add(n), n());
177
177
  }
178
- Te.length = 0;
179
- } while (be.length);
178
+ Le.length = 0;
179
+ } while (pe.length);
180
180
  for (; Ze.length; )
181
181
  Ze.pop()();
182
- ze = !1, Pe.clear(), pe(t);
182
+ Ne = !1, Oe.clear(), we(t);
183
183
  }
184
- function zt(t) {
184
+ function At(t) {
185
185
  if (t.fragment !== null) {
186
- t.update(), te(t.before_update);
186
+ t.update(), ne(t.before_update);
187
187
  const e = t.dirty;
188
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(je);
188
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(qe);
189
189
  }
190
190
  }
191
191
  const Ee = /* @__PURE__ */ new Set();
192
- let oe;
192
+ let ie;
193
193
  function Re() {
194
- oe = {
194
+ ie = {
195
195
  r: 0,
196
196
  c: [],
197
- p: oe
197
+ p: ie
198
198
  };
199
199
  }
200
- function Le() {
201
- oe.r || te(oe.c), oe = oe.p;
200
+ function Se() {
201
+ ie.r || ne(ie.c), ie = ie.p;
202
202
  }
203
203
  function P(t, e) {
204
204
  t && t.i && (Ee.delete(t), t.i(e));
@@ -207,72 +207,72 @@ function q(t, e, n, l) {
207
207
  if (t && t.o) {
208
208
  if (Ee.has(t))
209
209
  return;
210
- Ee.add(t), oe.c.push(() => {
210
+ Ee.add(t), ie.c.push(() => {
211
211
  Ee.delete(t), l && (n && t.d(1), l());
212
212
  }), t.o(e);
213
213
  } else
214
214
  l && l();
215
215
  }
216
- function ke(t) {
216
+ function Ce(t) {
217
217
  t && t.c();
218
218
  }
219
- function ae(t, e, n, l) {
219
+ function he(t, e, n, l) {
220
220
  const { fragment: r, after_update: c } = t.$$;
221
- r && r.m(e, n), l || je(() => {
222
- const o = t.$$.on_mount.map($e).filter(et);
223
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : te(o), t.$$.on_mount = [];
224
- }), c.forEach(je);
221
+ r && r.m(e, n), l || qe(() => {
222
+ const s = t.$$.on_mount.map($e).filter(et);
223
+ t.$$.on_destroy ? t.$$.on_destroy.push(...s) : ne(s), t.$$.on_mount = [];
224
+ }), c.forEach(qe);
225
225
  }
226
- function de(t, e) {
226
+ function me(t, e) {
227
227
  const n = t.$$;
228
- n.fragment !== null && (te(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
228
+ n.fragment !== null && (ne(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
229
229
  }
230
230
  function jt(t, e) {
231
- t.$$.dirty[0] === -1 && (be.push(t), At(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
231
+ t.$$.dirty[0] === -1 && (pe.push(t), Bt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
232
232
  }
233
- function _e(t, e, n, l, r, c, o, i = [-1]) {
234
- const u = we;
235
- pe(t);
233
+ function ge(t, e, n, l, r, c, s, i = [-1]) {
234
+ const u = ke;
235
+ we(t);
236
236
  const a = t.$$ = {
237
237
  fragment: null,
238
238
  ctx: [],
239
239
  props: c,
240
- update: w,
240
+ update: k,
241
241
  not_equal: r,
242
- bound: Ue(),
242
+ bound: Ge(),
243
243
  on_mount: [],
244
244
  on_destroy: [],
245
245
  on_disconnect: [],
246
246
  before_update: [],
247
247
  after_update: [],
248
248
  context: new Map(e.context || (u ? u.$$.context : [])),
249
- callbacks: Ue(),
249
+ callbacks: Ge(),
250
250
  dirty: i,
251
251
  skip_bound: !1,
252
252
  root: e.target || u.$$.root
253
253
  };
254
- o && o(a.root);
254
+ s && s(a.root);
255
255
  let h = !1;
256
256
  if (a.ctx = n ? n(t, e.props || {}, (p, D, ...d) => {
257
- const m = d.length ? d[0] : D;
258
- return a.ctx && r(a.ctx[p], a.ctx[p] = m) && (!a.skip_bound && a.bound[p] && a.bound[p](m), h && jt(t, p)), D;
259
- }) : [], a.update(), h = !0, te(a.before_update), a.fragment = l ? l(a.ctx) : !1, e.target) {
257
+ const g = d.length ? d[0] : D;
258
+ return a.ctx && r(a.ctx[p], a.ctx[p] = g) && (!a.skip_bound && a.bound[p] && a.bound[p](g), h && jt(t, p)), D;
259
+ }) : [], a.update(), h = !0, ne(a.before_update), a.fragment = l ? l(a.ctx) : !1, e.target) {
260
260
  if (e.hydrate) {
261
- const p = Lt(e.target);
261
+ const p = Et(e.target);
262
262
  a.fragment && a.fragment.l(p), p.forEach(H);
263
263
  } else
264
264
  a.fragment && a.fragment.c();
265
- e.intro && P(t.$$.fragment), ae(t, e.target, e.anchor, e.customElement), lt();
265
+ e.intro && P(t.$$.fragment), he(t, e.target, e.anchor, e.customElement), lt();
266
266
  }
267
- pe(u);
267
+ we(u);
268
268
  }
269
- class ge {
269
+ class ye {
270
270
  $destroy() {
271
- de(this, 1), this.$destroy = w;
271
+ me(this, 1), this.$destroy = k;
272
272
  }
273
273
  $on(e, n) {
274
274
  if (!et(n))
275
- return w;
275
+ return k;
276
276
  const l = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
277
277
  return l.push(n), () => {
278
278
  const r = l.indexOf(n);
@@ -280,80 +280,80 @@ class ge {
280
280
  };
281
281
  }
282
282
  $set(e) {
283
- this.$$set && !wt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
283
+ this.$$set && !vt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
284
284
  }
285
285
  }
286
286
  function Ot(t) {
287
287
  let e, n;
288
288
  return {
289
289
  c() {
290
- e = ee("svg"), n = ee("path"), f(n, "d", "M500 115.1c212.2 0 384.9 172.6 384.9 384.9 0 212.2-172.7 384.9-384.9 384.9S115.1 712.2 115.1 500c0-212.4 172.5-384.9 384.9-384.9M500 10C229.4 10 10 229.4 10 500s219.4 490 490 490 490-219.4 490-490c-.2-270.6-219.5-490-490-490zm0 315c96.5 0 175 78.4 175 175 0 96.5-78.4 175-175 175-96.5 0-175-78.4-175-175 0-96.5 78.4-175 175-175m0-105c-154.7 0-279.9 125.4-279.9 279.9 0 154.7 125.4 279.9 279.9 279.9 154.5 0 279.9-125.4 279.9-279.9C779.9 345.3 654.5 220 500 220zm70 280c0 38.7-31.3 70-70 70s-70-31.3-70-70 31.3-70 70-70 70 31.3 70 70z"), f(e, "viewBox", "0 0 1000 1000"), f(e, "width", "18px"), f(e, "height", "18px"), f(e, "class", "svelte-en2qvf");
290
+ e = te("svg"), n = te("path"), f(n, "d", "M500 115.1c212.2 0 384.9 172.6 384.9 384.9 0 212.2-172.7 384.9-384.9 384.9S115.1 712.2 115.1 500c0-212.4 172.5-384.9 384.9-384.9M500 10C229.4 10 10 229.4 10 500s219.4 490 490 490 490-219.4 490-490c-.2-270.6-219.5-490-490-490zm0 315c96.5 0 175 78.4 175 175 0 96.5-78.4 175-175 175-96.5 0-175-78.4-175-175 0-96.5 78.4-175 175-175m0-105c-154.7 0-279.9 125.4-279.9 279.9 0 154.7 125.4 279.9 279.9 279.9 154.5 0 279.9-125.4 279.9-279.9C779.9 345.3 654.5 220 500 220zm70 280c0 38.7-31.3 70-70 70s-70-31.3-70-70 31.3-70 70-70 70 31.3 70 70z"), f(e, "viewBox", "0 0 1000 1000"), f(e, "width", "18px"), f(e, "height", "18px"), f(e, "class", "svelte-en2qvf");
291
291
  },
292
292
  m(l, r) {
293
293
  V(l, e, r), y(e, n);
294
294
  },
295
- p: w,
296
- i: w,
297
- o: w,
295
+ p: k,
296
+ i: k,
297
+ o: k,
298
298
  d(l) {
299
299
  l && H(e);
300
300
  }
301
301
  };
302
302
  }
303
- class Dt extends ge {
303
+ class Dt extends ye {
304
304
  constructor(e) {
305
- super(), _e(this, e, null, Ot, he, {});
305
+ super(), ge(this, e, null, Ot, _e, {});
306
306
  }
307
307
  }
308
308
  function Nt(t) {
309
309
  let e, n;
310
310
  return {
311
311
  c() {
312
- e = ee("svg"), n = ee("path"), f(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "width", "16"), f(e, "height", "16"), f(e, "class", "svelte-en2qvf");
312
+ e = te("svg"), n = te("path"), f(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "width", "16"), f(e, "height", "16"), f(e, "class", "svelte-en2qvf");
313
313
  },
314
314
  m(l, r) {
315
315
  V(l, e, r), y(e, n);
316
316
  },
317
- p: w,
318
- i: w,
319
- o: w,
317
+ p: k,
318
+ i: k,
319
+ o: k,
320
320
  d(l) {
321
321
  l && H(e);
322
322
  }
323
323
  };
324
324
  }
325
- class qt extends ge {
325
+ class qt extends ye {
326
326
  constructor(e) {
327
- super(), _e(this, e, null, Nt, he, {});
327
+ super(), ge(this, e, null, Nt, _e, {});
328
328
  }
329
329
  }
330
330
  function Ht(t) {
331
331
  let e;
332
332
  return {
333
333
  c() {
334
- e = A("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>', f(e, "class", "svelte-7cmwmc");
334
+ e = B("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>', f(e, "class", "svelte-7cmwmc");
335
335
  },
336
336
  m(n, l) {
337
337
  V(n, e, l);
338
338
  },
339
- p: w,
340
- i: w,
341
- o: w,
339
+ p: k,
340
+ i: k,
341
+ o: k,
342
342
  d(n) {
343
343
  n && H(e);
344
344
  }
345
345
  };
346
346
  }
347
- class Kt extends ge {
347
+ class Kt extends ye {
348
348
  constructor(e) {
349
- super(), _e(this, e, null, Ht, he, {});
349
+ super(), ge(this, e, null, Ht, _e, {});
350
350
  }
351
351
  }
352
352
  function Qt(t) {
353
353
  let e, n, l;
354
354
  return {
355
355
  c() {
356
- e = ee("svg"), n = ee("path"), f(n, "stroke-width", "4"), f(n, "fill-rule", "evenodd"), f(n, "clip-rule", "evenodd"), f(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), f(n, "class", "svelte-656hh2"), f(e, "width", l = t[0] !== "list" ? void 0 : "20"), f(e, "viewBox", "0 0 70 85"), f(e, "fill", "none"), f(e, "class", "svelte-656hh2"), O(e, "in-map", t[0] !== "list"), O(e, "for-maplibre", t[0] === "maplibre"), O(e, "for-leaflet", t[0] === "leaflet"), O(e, "list-icon", t[0] === "list");
356
+ e = te("svg"), n = te("path"), f(n, "stroke-width", "4"), f(n, "fill-rule", "evenodd"), f(n, "clip-rule", "evenodd"), f(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), f(n, "class", "svelte-656hh2"), f(e, "width", l = t[0] !== "list" ? void 0 : "20"), f(e, "viewBox", "0 0 70 85"), f(e, "fill", "none"), f(e, "class", "svelte-656hh2"), O(e, "in-map", t[0] !== "list"), O(e, "for-maplibre", t[0] === "maplibre"), O(e, "for-leaflet", t[0] === "leaflet"), O(e, "list-icon", t[0] === "list");
357
357
  },
358
358
  m(r, c) {
359
359
  V(r, e, c), y(e, n);
@@ -361,8 +361,8 @@ function Qt(t) {
361
361
  p(r, [c]) {
362
362
  c & 1 && l !== (l = r[0] !== "list" ? void 0 : "20") && f(e, "width", l), c & 1 && O(e, "in-map", r[0] !== "list"), c & 1 && O(e, "for-maplibre", r[0] === "maplibre"), c & 1 && O(e, "for-leaflet", r[0] === "leaflet"), c & 1 && O(e, "list-icon", r[0] === "list");
363
363
  },
364
- i: w,
365
- o: w,
364
+ i: k,
365
+ o: k,
366
366
  d(r) {
367
367
  r && H(e);
368
368
  }
@@ -374,31 +374,31 @@ function Vt(t, e, n) {
374
374
  "displayIn" in r && n(0, l = r.displayIn);
375
375
  }, [l];
376
376
  }
377
- class rt extends ge {
377
+ class rt extends ye {
378
378
  constructor(e) {
379
- super(), _e(this, e, Vt, Qt, he, { displayIn: 0 });
379
+ super(), ge(this, e, Vt, Qt, _e, { displayIn: 0 });
380
380
  }
381
381
  }
382
- function Ut(t) {
382
+ function Gt(t) {
383
383
  let e, n;
384
384
  return {
385
385
  c() {
386
- e = ee("svg"), n = ee("path"), f(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "xml:space", "preserve"), f(e, "width", "20"), f(e, "class", "svelte-en2qvf");
386
+ e = te("svg"), n = te("path"), f(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "xml:space", "preserve"), f(e, "width", "20"), f(e, "class", "svelte-en2qvf");
387
387
  },
388
388
  m(l, r) {
389
389
  V(l, e, r), y(e, n);
390
390
  },
391
- p: w,
392
- i: w,
393
- o: w,
391
+ p: k,
392
+ i: k,
393
+ o: k,
394
394
  d(l) {
395
395
  l && H(e);
396
396
  }
397
397
  };
398
398
  }
399
- class Wt extends ge {
399
+ class Ut extends ye {
400
400
  constructor(e) {
401
- super(), _e(this, e, null, Ut, he, {});
401
+ super(), ge(this, e, null, Gt, _e, {});
402
402
  }
403
403
  }
404
404
  function xe(t, e, n) {
@@ -409,10 +409,10 @@ function Je(t) {
409
409
  let e, n;
410
410
  return e = new Kt({}), {
411
411
  c() {
412
- ke(e.$$.fragment);
412
+ Ce(e.$$.fragment);
413
413
  },
414
414
  m(l, r) {
415
- ae(e, l, r), n = !0;
415
+ he(e, l, r), n = !0;
416
416
  },
417
417
  i(l) {
418
418
  n || (P(e.$$.fragment, l), n = !0);
@@ -421,18 +421,18 @@ function Je(t) {
421
421
  q(e.$$.fragment, l), n = !1;
422
422
  },
423
423
  d(l) {
424
- de(e, l);
424
+ me(e, l);
425
425
  }
426
426
  };
427
427
  }
428
428
  function Xe(t) {
429
- let e, n, l, r, c, o;
429
+ let e, n, l, r, c, s;
430
430
  return n = new Dt({}), {
431
431
  c() {
432
- e = A("button"), ke(n.$$.fragment), f(e, "type", "button"), f(e, "title", l = t[7] === !0 ? "toggle reverse geocoding" : t[7]), f(e, "class", "svelte-16s24r9"), O(e, "active", t[1]);
432
+ e = B("button"), Ce(n.$$.fragment), f(e, "type", "button"), f(e, "title", l = t[7] === !0 ? "toggle reverse geocoding" : t[7]), f(e, "class", "svelte-1h1zm6d"), O(e, "active", t[1]);
433
433
  },
434
434
  m(i, u) {
435
- V(i, e, u), ae(n, e, null), r = !0, c || (o = Q(e, "click", t[47]), c = !0);
435
+ V(i, e, u), he(n, e, null), r = !0, c || (s = Q(e, "click", t[47]), c = !0);
436
436
  },
437
437
  p(i, u) {
438
438
  (!r || u[0] & 128 && l !== (l = i[7] === !0 ? "toggle reverse geocoding" : i[7])) && f(e, "title", l), (!r || u[0] & 2) && O(e, "active", i[1]);
@@ -444,28 +444,28 @@ function Xe(t) {
444
444
  q(n.$$.fragment, i), r = !1;
445
445
  },
446
446
  d(i) {
447
- i && H(e), de(n), c = !1, o();
447
+ i && H(e), me(n), c = !1, s();
448
448
  }
449
449
  };
450
450
  }
451
- function Gt(t) {
452
- let e, n, l, r, c = t[10], o = [];
451
+ function Wt(t) {
452
+ let e, n, l, r, c = t[10], s = [];
453
453
  for (let u = 0; u < c.length; u += 1)
454
- o[u] = Fe(xe(t, c, u));
455
- const i = (u) => q(o[u], 1, 1, () => {
456
- o[u] = null;
454
+ s[u] = Fe(xe(t, c, u));
455
+ const i = (u) => q(s[u], 1, 1, () => {
456
+ s[u] = null;
457
457
  });
458
458
  return {
459
459
  c() {
460
- e = A("ul");
461
- for (let u = 0; u < o.length; u += 1)
462
- o[u].c();
463
- f(e, "class", "svelte-16s24r9");
460
+ e = B("ul");
461
+ for (let u = 0; u < s.length; u += 1)
462
+ s[u].c();
463
+ f(e, "class", "svelte-1h1zm6d");
464
464
  },
465
465
  m(u, a) {
466
466
  V(u, e, a);
467
- for (let h = 0; h < o.length; h += 1)
468
- o[h].m(e, null);
467
+ for (let h = 0; h < s.length; h += 1)
468
+ s[h].m(e, null);
469
469
  n = !0, l || (r = [
470
470
  Q(e, "mouseout", t[50]),
471
471
  Q(e, "blur", t[51])
@@ -477,28 +477,28 @@ function Gt(t) {
477
477
  let h;
478
478
  for (h = 0; h < c.length; h += 1) {
479
479
  const p = xe(u, c, h);
480
- o[h] ? (o[h].p(p, a), P(o[h], 1)) : (o[h] = Fe(p), o[h].c(), P(o[h], 1), o[h].m(e, null));
480
+ s[h] ? (s[h].p(p, a), P(s[h], 1)) : (s[h] = Fe(p), s[h].c(), P(s[h], 1), s[h].m(e, null));
481
481
  }
482
- for (Re(), h = c.length; h < o.length; h += 1)
482
+ for (Re(), h = c.length; h < s.length; h += 1)
483
483
  i(h);
484
- Le();
484
+ Se();
485
485
  }
486
486
  },
487
487
  i(u) {
488
488
  if (!n) {
489
489
  for (let a = 0; a < c.length; a += 1)
490
- P(o[a]);
490
+ P(s[a]);
491
491
  n = !0;
492
492
  }
493
493
  },
494
494
  o(u) {
495
- o = o.filter(Boolean);
496
- for (let a = 0; a < o.length; a += 1)
497
- q(o[a]);
495
+ s = s.filter(Boolean);
496
+ for (let a = 0; a < s.length; a += 1)
497
+ q(s[a]);
498
498
  n = !1;
499
499
  },
500
500
  d(u) {
501
- u && H(e), Et(o, u), l = !1, te(r);
501
+ u && H(e), zt(s, u), l = !1, ne(r);
502
502
  }
503
503
  };
504
504
  }
@@ -506,7 +506,7 @@ function Zt(t) {
506
506
  let e, n;
507
507
  return {
508
508
  c() {
509
- e = A("div"), n = ce(t[5]), f(e, "class", "no-results svelte-16s24r9");
509
+ e = B("div"), n = fe(t[5]), f(e, "class", "no-results svelte-1h1zm6d");
510
510
  },
511
511
  m(l, r) {
512
512
  V(l, e, r), y(e, n);
@@ -514,8 +514,8 @@ function Zt(t) {
514
514
  p(l, r) {
515
515
  r[0] & 32 && ve(n, l[5]);
516
516
  },
517
- i: w,
518
- o: w,
517
+ i: k,
518
+ o: k,
519
519
  d(l) {
520
520
  l && H(e);
521
521
  }
@@ -525,7 +525,7 @@ function xt(t) {
525
525
  let e, n;
526
526
  return {
527
527
  c() {
528
- e = A("div"), n = ce(t[4]), f(e, "class", "error svelte-16s24r9");
528
+ e = B("div"), n = fe(t[4]), f(e, "class", "error svelte-1h1zm6d");
529
529
  },
530
530
  m(l, r) {
531
531
  V(l, e, r), y(e, n);
@@ -533,8 +533,8 @@ function xt(t) {
533
533
  p(l, r) {
534
534
  r[0] & 16 && ve(n, l[4]);
535
535
  },
536
- i: w,
537
- o: w,
536
+ i: k,
537
+ o: k,
538
538
  d(l) {
539
539
  l && H(e);
540
540
  }
@@ -544,14 +544,14 @@ function Jt(t) {
544
544
  let e = "", n;
545
545
  return {
546
546
  c() {
547
- n = ce(e);
547
+ n = fe(e);
548
548
  },
549
549
  m(l, r) {
550
550
  V(l, n, r);
551
551
  },
552
- p: w,
553
- i: w,
554
- o: w,
552
+ p: k,
553
+ i: k,
554
+ o: k,
555
555
  d(l) {
556
556
  l && H(n);
557
557
  }
@@ -561,7 +561,7 @@ function Ye(t) {
561
561
  let e, n = t[59].place_type + "", l;
562
562
  return {
563
563
  c() {
564
- e = A("span"), l = ce(n), f(e, "class", "svelte-16s24r9");
564
+ e = B("span"), l = fe(n), f(e, "class", "svelte-1h1zm6d");
565
565
  },
566
566
  m(r, c) {
567
567
  V(r, e, c), y(e, l);
@@ -575,228 +575,230 @@ function Ye(t) {
575
575
  };
576
576
  }
577
577
  function Fe(t) {
578
- let e, n, l, r, c, o, i = t[59].place_name.replace(/,.*/, "") + "", u, a, h, p, D, d = t[59].place_name.replace(/[^,]*,?\s*/, "") + "", m, g, b, C, M, U;
578
+ let e, n, l, r, c, s, i = t[59].place_name.replace(/,.*/, "") + "", u, a, h, p, D, d = t[59].place_name.replace(/[^,]*,?\s*/, "") + "", g, _, b, M, T, G;
579
579
  n = new rt({ props: { displayIn: "list" } });
580
- let T = t[8] && Ye(t);
581
- function E() {
580
+ let z = t[8] && Ye(t);
581
+ function L() {
582
582
  return t[48](t[61]);
583
583
  }
584
- function v() {
584
+ function w() {
585
585
  return t[49](t[59]);
586
586
  }
587
587
  return {
588
588
  c() {
589
- e = A("li"), ke(n.$$.fragment), l = x(), r = A("span"), c = A("span"), o = A("span"), u = ce(i), a = x(), T && T.c(), h = x(), p = A("span"), D = A("span"), m = ce(d), g = x(), f(o, "class", "svelte-16s24r9"), f(c, "class", "svelte-16s24r9"), f(r, "class", "svelte-16s24r9"), f(D, "class", "svelte-16s24r9"), f(p, "class", "svelte-16s24r9"), f(e, "tabindex", "0"), f(e, "data-selected", b = t[12] === t[61]), f(e, "class", "svelte-16s24r9"), O(e, "selected", t[12] === t[61]);
589
+ e = B("li"), Ce(n.$$.fragment), l = x(), r = B("span"), c = B("span"), s = B("span"), u = fe(i), a = x(), z && z.c(), h = x(), p = B("span"), D = B("span"), g = fe(d), _ = x(), f(s, "class", "svelte-1h1zm6d"), f(c, "class", "svelte-1h1zm6d"), f(r, "class", "svelte-1h1zm6d"), f(D, "class", "svelte-1h1zm6d"), f(p, "class", "svelte-1h1zm6d"), f(e, "tabindex", "0"), f(e, "data-selected", b = t[12] === t[61]), f(e, "class", "svelte-1h1zm6d"), O(e, "selected", t[12] === t[61]);
590
590
  },
591
- m(j, k) {
592
- V(j, e, k), ae(n, e, null), y(e, l), y(e, r), y(r, c), y(c, o), y(o, u), y(c, a), T && T.m(c, null), y(e, h), y(e, p), y(p, D), y(D, m), y(e, g), C = !0, M || (U = [
593
- Q(e, "mouseover", E),
594
- Q(e, "focus", v)
595
- ], M = !0);
591
+ m(j, C) {
592
+ V(j, e, C), he(n, e, null), y(e, l), y(e, r), y(r, c), y(c, s), y(s, u), y(c, a), z && z.m(c, null), y(e, h), y(e, p), y(p, D), y(D, g), y(e, _), M = !0, T || (G = [
593
+ Q(e, "mouseover", L),
594
+ Q(e, "focus", w)
595
+ ], T = !0);
596
596
  },
597
- p(j, k) {
598
- t = j, (!C || k[0] & 1024) && i !== (i = t[59].place_name.replace(/,.*/, "") + "") && ve(u, i), t[8] ? T ? T.p(t, k) : (T = Ye(t), T.c(), T.m(c, null)) : T && (T.d(1), T = null), (!C || k[0] & 1024) && d !== (d = t[59].place_name.replace(/[^,]*,?\s*/, "") + "") && ve(m, d), (!C || k[0] & 4096 && b !== (b = t[12] === t[61])) && f(e, "data-selected", b), (!C || k[0] & 4096) && O(e, "selected", t[12] === t[61]);
597
+ p(j, C) {
598
+ t = j, (!M || C[0] & 1024) && i !== (i = t[59].place_name.replace(/,.*/, "") + "") && ve(u, i), t[8] ? z ? z.p(t, C) : (z = Ye(t), z.c(), z.m(c, null)) : z && (z.d(1), z = null), (!M || C[0] & 1024) && d !== (d = t[59].place_name.replace(/[^,]*,?\s*/, "") + "") && ve(g, d), (!M || C[0] & 4096 && b !== (b = t[12] === t[61])) && f(e, "data-selected", b), (!M || C[0] & 4096) && O(e, "selected", t[12] === t[61]);
599
599
  },
600
600
  i(j) {
601
- C || (P(n.$$.fragment, j), C = !0);
601
+ M || (P(n.$$.fragment, j), M = !0);
602
602
  },
603
603
  o(j) {
604
- q(n.$$.fragment, j), C = !1;
604
+ q(n.$$.fragment, j), M = !1;
605
605
  },
606
606
  d(j) {
607
- j && H(e), de(n), T && T.d(), M = !1, te(U);
607
+ j && H(e), me(n), z && z.d(), T = !1, ne(G);
608
608
  }
609
609
  };
610
610
  }
611
611
  function Xt(t) {
612
- let e, n, l, r, c, o, i, u, a, h, p, D, d, m, g, b, C, M, U, T;
613
- r = new Wt({}), h = new qt({});
614
- let E = t[16] && Je(), v = t[7] && Xe(t);
615
- const j = t[39].default, k = kt(j, t, t[38], null), L = [Jt, xt, Zt, Gt], z = [];
616
- function me(_, S) {
612
+ let e, n, l, r, c, s, i, u, a, h, p, D, d, g, _, b, M, T, G, z;
613
+ r = new Ut({}), h = new qt({});
614
+ let L = t[16] && Je(), w = t[7] && Xe(t);
615
+ const j = t[39].default, C = kt(j, t, t[38], null), R = [Jt, xt, Zt, Wt], A = [];
616
+ function be(m, S) {
617
617
  var J, X;
618
- return _[13] ? _[15] ? 1 : ((J = _[10]) == null ? void 0 : J.length) === 0 ? 2 : _[13] && ((X = _[10]) == null ? void 0 : X.length) ? 3 : -1 : 0;
618
+ return m[13] ? m[15] ? 1 : ((J = m[10]) == null ? void 0 : J.length) === 0 ? 2 : m[13] && ((X = m[10]) == null ? void 0 : X.length) ? 3 : -1 : 0;
619
619
  }
620
- return ~(g = me(t)) && (b = z[g] = L[g](t)), {
620
+ return ~(_ = be(t)) && (b = A[_] = R[_](t)), {
621
621
  c() {
622
- e = A("form"), n = A("div"), l = A("button"), ke(r.$$.fragment), c = x(), o = A("input"), i = x(), u = A("div"), a = A("button"), ke(h.$$.fragment), p = x(), E && E.c(), D = x(), v && v.c(), d = x(), k && k.c(), m = x(), b && b.c(), f(l, "type", "button"), f(l, "class", "svelte-16s24r9"), f(o, "placeholder", t[3]), f(o, "aria-label", t[3]), f(o, "class", "svelte-16s24r9"), f(a, "type", "button"), f(a, "class", "svelte-16s24r9"), O(a, "displayable", t[0] !== ""), f(u, "class", "clear-button-container svelte-16s24r9"), f(n, "class", "input-group svelte-16s24r9"), f(e, "tabindex", "0"), f(e, "class", C = We(t[2]) + " svelte-16s24r9"), O(e, "can-collapse", t[6] && t[0] === "");
622
+ e = B("form"), n = B("div"), l = B("button"), Ce(r.$$.fragment), c = x(), s = B("input"), i = x(), u = B("div"), a = B("button"), Ce(h.$$.fragment), p = x(), L && L.c(), D = x(), w && w.c(), d = x(), C && C.c(), g = x(), b && b.c(), f(l, "type", "button"), f(l, "class", "svelte-1h1zm6d"), f(s, "placeholder", t[3]), f(s, "aria-label", t[3]), f(s, "class", "svelte-1h1zm6d"), f(a, "type", "button"), f(a, "class", "svelte-1h1zm6d"), O(a, "displayable", t[0] !== ""), f(u, "class", "clear-button-container svelte-1h1zm6d"), f(n, "class", "input-group svelte-1h1zm6d"), f(e, "tabindex", "0"), f(e, "class", M = Ue(t[2]) + " svelte-1h1zm6d"), O(e, "can-collapse", t[6] && t[0] === "");
623
623
  },
624
- m(_, S) {
625
- V(_, e, S), y(e, n), y(n, l), ae(r, l, null), y(n, c), y(n, o), t[41](o), Ge(o, t[0]), y(n, i), y(n, u), y(u, a), ae(h, a, null), y(u, p), E && E.m(u, null), y(n, D), v && v.m(n, null), y(n, d), k && k.m(n, null), y(e, m), ~g && z[g].m(e, null), M = !0, U || (T = [
624
+ m(m, S) {
625
+ V(m, e, S), y(e, n), y(n, l), he(r, l, null), y(n, c), y(n, s), t[41](s), We(s, t[0]), y(n, i), y(n, u), y(u, a), he(h, a, null), y(u, p), L && L.m(u, null), y(n, D), w && w.m(n, null), y(n, d), C && C.m(n, null), y(e, g), ~_ && A[_].m(e, null), T = !0, G || (z = [
626
626
  Q(l, "click", t[40]),
627
- Q(o, "input", t[42]),
628
- Q(o, "focus", t[43]),
629
- Q(o, "blur", t[44]),
630
- Q(o, "keydown", t[18]),
631
- Q(o, "input", t[45]),
627
+ Q(s, "input", t[42]),
628
+ Q(s, "focus", t[43]),
629
+ Q(s, "blur", t[44]),
630
+ Q(s, "keydown", t[18]),
631
+ Q(s, "input", t[45]),
632
632
  Q(a, "click", t[46]),
633
- Q(e, "submit", Rt(t[17]))
634
- ], U = !0);
635
- },
636
- p(_, S) {
637
- (!M || S[0] & 8) && f(o, "placeholder", _[3]), (!M || S[0] & 8) && f(o, "aria-label", _[3]), S[0] & 1 && o.value !== _[0] && Ge(o, _[0]), (!M || S[0] & 1) && O(a, "displayable", _[0] !== ""), _[16] ? E ? S[0] & 65536 && P(E, 1) : (E = Je(), E.c(), P(E, 1), E.m(u, null)) : E && (Re(), q(E, 1, 1, () => {
638
- E = null;
639
- }), Le()), _[7] ? v ? (v.p(_, S), S[0] & 128 && P(v, 1)) : (v = Xe(_), v.c(), P(v, 1), v.m(n, d)) : v && (Re(), q(v, 1, 1, () => {
640
- v = null;
641
- }), Le()), k && k.p && (!M || S[1] & 128) && Mt(
642
- k,
633
+ Q(e, "submit", Lt(t[17]))
634
+ ], G = !0);
635
+ },
636
+ p(m, S) {
637
+ (!T || S[0] & 8) && f(s, "placeholder", m[3]), (!T || S[0] & 8) && f(s, "aria-label", m[3]), S[0] & 1 && s.value !== m[0] && We(s, m[0]), (!T || S[0] & 1) && O(a, "displayable", m[0] !== ""), m[16] ? L ? S[0] & 65536 && P(L, 1) : (L = Je(), L.c(), P(L, 1), L.m(u, null)) : L && (Re(), q(L, 1, 1, () => {
638
+ L = null;
639
+ }), Se()), m[7] ? w ? (w.p(m, S), S[0] & 128 && P(w, 1)) : (w = Xe(m), w.c(), P(w, 1), w.m(n, d)) : w && (Re(), q(w, 1, 1, () => {
640
+ w = null;
641
+ }), Se()), C && C.p && (!T || S[1] & 128) && Mt(
642
+ C,
643
643
  j,
644
- _,
645
- _[38],
646
- M ? Ct(j, _[38], S, null) : Tt(_[38]),
644
+ m,
645
+ m[38],
646
+ T ? Ct(j, m[38], S, null) : Tt(m[38]),
647
647
  null
648
648
  );
649
- let J = g;
650
- g = me(_), g === J ? ~g && z[g].p(_, S) : (b && (Re(), q(z[J], 1, 1, () => {
651
- z[J] = null;
652
- }), Le()), ~g ? (b = z[g], b ? b.p(_, S) : (b = z[g] = L[g](_), b.c()), P(b, 1), b.m(e, null)) : b = null), (!M || S[0] & 4 && C !== (C = We(_[2]) + " svelte-16s24r9")) && f(e, "class", C), (!M || S[0] & 69) && O(e, "can-collapse", _[6] && _[0] === "");
649
+ let J = _;
650
+ _ = be(m), _ === J ? ~_ && A[_].p(m, S) : (b && (Re(), q(A[J], 1, 1, () => {
651
+ A[J] = null;
652
+ }), Se()), ~_ ? (b = A[_], b ? b.p(m, S) : (b = A[_] = R[_](m), b.c()), P(b, 1), b.m(e, null)) : b = null), (!T || S[0] & 4 && M !== (M = Ue(m[2]) + " svelte-1h1zm6d")) && f(e, "class", M), (!T || S[0] & 69) && O(e, "can-collapse", m[6] && m[0] === "");
653
653
  },
654
- i(_) {
655
- M || (P(r.$$.fragment, _), P(h.$$.fragment, _), P(E), P(v), P(k, _), P(b), M = !0);
654
+ i(m) {
655
+ T || (P(r.$$.fragment, m), P(h.$$.fragment, m), P(L), P(w), P(C, m), P(b), T = !0);
656
656
  },
657
- o(_) {
658
- q(r.$$.fragment, _), q(h.$$.fragment, _), q(E), q(v), q(k, _), q(b), M = !1;
657
+ o(m) {
658
+ q(r.$$.fragment, m), q(h.$$.fragment, m), q(L), q(w), q(C, m), q(b), T = !1;
659
659
  },
660
- d(_) {
661
- _ && H(e), de(r), t[41](null), de(h), E && E.d(), v && v.d(), k && k.d(_), ~g && z[g].d(), U = !1, te(T);
660
+ d(m) {
661
+ m && H(e), me(r), t[41](null), me(h), L && L.d(), w && w.d(), C && C.d(m), ~_ && A[_].d(), G = !1, ne(z);
662
662
  }
663
663
  };
664
664
  }
665
665
  function Yt(t, e, n) {
666
- let l, { $$slots: r = {}, $$scope: c } = e, { class: o = void 0 } = e, { mapController: i = void 0 } = e, { apiKey: u } = e, { debounceSearch: a = 200 } = e, { placeholder: h = "Search" } = e, { errorMessage: p = "Searching failed" } = e, { noResultsMessage: D = "No results found" } = e, { proximity: d = void 0 } = e, { bbox: m = void 0 } = e, { trackProximity: g = !0 } = e, { minLength: b = 2 } = e, { language: C = void 0 } = e, { showResultsWhileTyping: M = !0 } = e, { zoom: U = 16 } = e, { flyTo: T = !0 } = e, { collapsed: E = !1 } = e, { clearOnBlur: v = !1 } = e, { enableReverse: j = !1 } = e, { filter: k = () => !0 } = e, { searchValue: L = "" } = e, { reverseActive: z = !1 } = e, { showPlaceType: me = !1 } = e;
667
- function _() {
668
- Y.focus();
666
+ let l, { $$slots: r = {}, $$scope: c } = e, { class: s = void 0 } = e, { mapController: i = void 0 } = e, { apiKey: u } = e, { debounceSearch: a = 200 } = e, { placeholder: h = "Search" } = e, { errorMessage: p = "Searching failed" } = e, { noResultsMessage: D = "No results found" } = e, { proximity: d = void 0 } = e, { bbox: g = void 0 } = e, { trackProximity: _ = !0 } = e, { minLength: b = 2 } = e, { language: M = void 0 } = e, { showResultsWhileTyping: T = !0 } = e, { zoom: G = 16 } = e, { flyTo: z = !0 } = e, { collapsed: L = !1 } = e, { clearOnBlur: w = !1 } = e, { enableReverse: j = !1 } = e, { filter: C = () => !0 } = e, { searchValue: R = "" } = e, { reverseActive: A = !1 } = e, { showPlaceType: be = !1 } = e;
667
+ function m() {
668
+ W.focus();
669
669
  }
670
670
  function S() {
671
- Y.blur();
671
+ W.blur();
672
672
  }
673
- function J(s, K = !0) {
674
- n(0, L = s), K && (n(12, B = -1), Ne());
673
+ function J(o, K = !0) {
674
+ n(0, R = o), K ? (n(12, I = -1), Ke()) : (Ae(), setTimeout(() => {
675
+ W.focus(), W.select();
676
+ }));
675
677
  }
676
- let X = !1, R, N, I, Oe = "", Y, B = -1, ne, De = [], le, Se, Ie;
677
- const F = Bt();
678
- It(() => {
678
+ let X = !1, E, N, v, He = "", W, I = -1, Y, Me = [], le, Ie, Pe;
679
+ const F = It();
680
+ St(() => {
679
681
  i && (i.setProximityChangeHandler(void 0), i.setMapClickHandler(void 0), i.indicateReverse(!1), i.setSelectedMarker(-1), i.setMarkers(void 0, void 0));
680
682
  });
681
- function Ne() {
682
- B > -1 && R ? (n(11, I = R[B]), n(0, L = I.place_name.replace(/,.*/, "")), n(15, ne = void 0), n(36, N = void 0), n(12, B = -1)) : L && qe(L).then(() => {
683
- n(36, N = R), n(11, I = void 0), st();
684
- }).catch((s) => n(15, ne = s));
685
- }
686
- async function qe(s) {
687
- n(15, ne = void 0);
688
- const K = /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(s), G = new URLSearchParams();
689
- G.set("key", u), C && G.set("language", String(C)), K || (m && G.set("bbox", m.join(",")), d && G.set("proximity", d.join(",")));
690
- const re = "https://api.maptiler.com/geocoding/" + encodeURIComponent(s) + ".json?" + G.toString();
691
- if (re === Oe) {
692
- n(10, R = De);
683
+ function Ke() {
684
+ I > -1 && E ? (n(11, v = E[I]), n(0, R = v.place_name.replace(/,.*/, "")), n(15, Y = void 0), n(36, N = void 0), n(12, I = -1)) : R && Be(R).then(() => {
685
+ n(36, N = E), n(11, v = void 0), ot();
686
+ }).catch((o) => n(15, Y = o));
687
+ }
688
+ async function Be(o, K = !1) {
689
+ n(15, Y = void 0);
690
+ const re = /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(o), $ = new URLSearchParams();
691
+ $.set("key", u), M && $.set("language", String(M)), re || (g && $.set("bbox", g.join(",")), d && $.set("proximity", d.join(",")));
692
+ const oe = "https://api.maptiler.com/geocoding/" + encodeURIComponent(o) + ".json?" + $.toString();
693
+ if (oe === He) {
694
+ K ? (n(10, E = void 0), n(11, v = Me[0])) : n(10, E = Me);
693
695
  return;
694
696
  }
695
- Oe = re, le == null || le.abort(), n(16, le = new AbortController());
696
- let fe;
697
+ He = oe, le == null || le.abort(), n(16, le = new AbortController());
698
+ let ue;
697
699
  try {
698
- fe = await fetch(re, { signal: le.signal }).finally(() => {
700
+ ue = await fetch(oe, { signal: le.signal }).finally(() => {
699
701
  n(16, le = void 0);
700
702
  });
701
- } catch (ue) {
702
- if (ue && typeof ue == "object" && ue.name === "AbortError")
703
+ } catch (de) {
704
+ if (de && typeof de == "object" && de.name === "AbortError")
703
705
  return;
704
706
  throw new Error();
705
707
  }
706
- if (!fe.ok)
708
+ if (!ue.ok)
707
709
  throw new Error();
708
- const ye = await fe.json();
709
- F("response", { url: re, featureCollection: ye }), n(10, R = ye.features.filter(k)), De = R, K && Y.focus();
710
+ const ae = await ue.json();
711
+ F("response", { url: oe, featureCollection: ae }), K ? (n(10, E = void 0), n(11, v = ae.features[0]), Me = [v]) : (n(10, E = ae.features.filter(C)), Me = E, re && W.focus());
710
712
  }
711
- function st() {
712
- var K, G, re, fe, ye, ue, Ke, Qe;
713
- if (!(N != null && N.length) || !T)
713
+ function ot() {
714
+ var K, re, $, oe, ue, ae, de, Qe;
715
+ if (!(N != null && N.length) || !z)
714
716
  return;
715
- const s = [180, 90, -180, -90];
716
- for (const $ of N)
717
- s[0] = Math.min(s[0], (G = (K = $.bbox) == null ? void 0 : K[0]) != null ? G : $.center[0]), s[1] = Math.min(s[1], (fe = (re = $.bbox) == null ? void 0 : re[1]) != null ? fe : $.center[1]), s[2] = Math.max(s[2], (ue = (ye = $.bbox) == null ? void 0 : ye[2]) != null ? ue : $.center[0]), s[3] = Math.max(s[3], (Qe = (Ke = $.bbox) == null ? void 0 : Ke[3]) != null ? Qe : $.center[1]);
718
- i && N.length > 0 && (I && s[0] === s[2] && s[1] === s[3] ? i.flyTo(I.center, U) : i.fitBounds(s, 50));
717
+ const o = [180, 90, -180, -90];
718
+ for (const ee of N)
719
+ o[0] = Math.min(o[0], (re = (K = ee.bbox) == null ? void 0 : K[0]) != null ? re : ee.center[0]), o[1] = Math.min(o[1], (oe = ($ = ee.bbox) == null ? void 0 : $[1]) != null ? oe : ee.center[1]), o[2] = Math.max(o[2], (ae = (ue = ee.bbox) == null ? void 0 : ue[2]) != null ? ae : ee.center[0]), o[3] = Math.max(o[3], (Qe = (de = ee.bbox) == null ? void 0 : de[3]) != null ? Qe : ee.center[1]);
720
+ i && N.length > 0 && (v && o[0] === o[2] && o[1] === o[3] ? i.flyTo(v.center, G) : i.fitBounds(o, 50));
719
721
  }
720
- function ot(s) {
721
- n(1, z = !1), J(s[0].toFixed(6) + "," + s[1].toFixed(6));
722
+ function st(o) {
723
+ n(1, A = !1), J(o[0].toFixed(6) + "," + o[1].toFixed(6));
722
724
  }
723
- function it(s) {
724
- if (!R)
725
+ function it(o) {
726
+ if (!E)
725
727
  return;
726
- let K = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
727
- K ? (B === -1 && K === -1 && n(12, B = R.length), n(12, B += K), B >= R.length && n(12, B = -1), s.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(s.key) && n(12, B = -1);
728
- }
729
- function He(s = !0) {
730
- if (M && L.length > b) {
731
- Se && clearTimeout(Se);
732
- const K = L;
733
- Se = window.setTimeout(
728
+ let K = o.key === "ArrowDown" ? 1 : o.key === "ArrowUp" ? -1 : 0;
729
+ K ? (I === -1 && K === -1 && n(12, I = E.length), n(12, I += K), I >= E.length && n(12, I = -1), o.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(o.key) && n(12, I = -1);
730
+ }
731
+ function Ae(o = !0) {
732
+ if (T && R.length > b) {
733
+ Ie && clearTimeout(Ie);
734
+ const K = R;
735
+ Ie = window.setTimeout(
734
736
  () => {
735
- qe(K).catch((G) => n(15, ne = G));
737
+ Be(K).catch((re) => n(15, Y = re));
736
738
  },
737
- s ? a : 0
739
+ o ? a : 0
738
740
  );
739
741
  } else
740
- n(10, R = void 0), n(15, ne = void 0);
742
+ n(10, E = void 0), n(15, Y = void 0);
741
743
  }
742
- const ct = () => Y.focus();
743
- function ft(s) {
744
- Ae[s ? "unshift" : "push"](() => {
745
- Y = s, n(14, Y);
744
+ const ct = () => W.focus();
745
+ function ft(o) {
746
+ De[o ? "unshift" : "push"](() => {
747
+ W = o, n(14, W);
746
748
  });
747
749
  }
748
750
  function ut() {
749
- L = this.value, n(0, L), n(9, X), n(31, v);
751
+ R = this.value, n(0, R), n(9, X), n(31, w);
750
752
  }
751
- const at = () => n(9, X = !0), dt = () => n(9, X = !1), ht = () => He(), _t = () => {
752
- n(0, L = ""), Y.focus();
753
- }, gt = () => n(1, z = !z), mt = (s) => n(12, B = s), yt = (s) => {
754
- n(11, I = s), n(0, L = s.place_name.replace(/,.*/, "")), n(12, B = -1);
755
- }, bt = () => n(12, B = -1), pt = () => {
753
+ const at = () => n(9, X = !0), dt = () => n(9, X = !1), ht = () => Ae(), mt = () => {
754
+ n(0, R = ""), W.focus();
755
+ }, _t = () => n(1, A = !A), gt = (o) => n(12, I = o), yt = (o) => {
756
+ n(11, v = o), n(0, R = o.place_name.replace(/,.*/, "")), n(12, I = -1);
757
+ }, bt = () => n(12, I = -1), pt = () => {
756
758
  };
757
- return t.$$set = (s) => {
758
- "class" in s && n(2, o = s.class), "mapController" in s && n(21, i = s.mapController), "apiKey" in s && n(22, u = s.apiKey), "debounceSearch" in s && n(23, a = s.debounceSearch), "placeholder" in s && n(3, h = s.placeholder), "errorMessage" in s && n(4, p = s.errorMessage), "noResultsMessage" in s && n(5, D = s.noResultsMessage), "proximity" in s && n(20, d = s.proximity), "bbox" in s && n(24, m = s.bbox), "trackProximity" in s && n(25, g = s.trackProximity), "minLength" in s && n(26, b = s.minLength), "language" in s && n(27, C = s.language), "showResultsWhileTyping" in s && n(28, M = s.showResultsWhileTyping), "zoom" in s && n(29, U = s.zoom), "flyTo" in s && n(30, T = s.flyTo), "collapsed" in s && n(6, E = s.collapsed), "clearOnBlur" in s && n(31, v = s.clearOnBlur), "enableReverse" in s && n(7, j = s.enableReverse), "filter" in s && n(32, k = s.filter), "searchValue" in s && n(0, L = s.searchValue), "reverseActive" in s && n(1, z = s.reverseActive), "showPlaceType" in s && n(8, me = s.showPlaceType), "$$scope" in s && n(38, c = s.$$scope);
759
+ return t.$$set = (o) => {
760
+ "class" in o && n(2, s = o.class), "mapController" in o && n(21, i = o.mapController), "apiKey" in o && n(22, u = o.apiKey), "debounceSearch" in o && n(23, a = o.debounceSearch), "placeholder" in o && n(3, h = o.placeholder), "errorMessage" in o && n(4, p = o.errorMessage), "noResultsMessage" in o && n(5, D = o.noResultsMessage), "proximity" in o && n(20, d = o.proximity), "bbox" in o && n(24, g = o.bbox), "trackProximity" in o && n(25, _ = o.trackProximity), "minLength" in o && n(26, b = o.minLength), "language" in o && n(27, M = o.language), "showResultsWhileTyping" in o && n(28, T = o.showResultsWhileTyping), "zoom" in o && n(29, G = o.zoom), "flyTo" in o && n(30, z = o.flyTo), "collapsed" in o && n(6, L = o.collapsed), "clearOnBlur" in o && n(31, w = o.clearOnBlur), "enableReverse" in o && n(7, j = o.enableReverse), "filter" in o && n(32, C = o.filter), "searchValue" in o && n(0, R = o.searchValue), "reverseActive" in o && n(1, A = o.reverseActive), "showPlaceType" in o && n(8, be = o.showPlaceType), "$$scope" in o && n(38, c = o.$$scope);
759
761
  }, t.$$.update = () => {
760
- t.$$.dirty[0] & 35651584 && i && i.setProximityChangeHandler(g ? (s) => {
761
- n(20, d = s);
762
- } : void 0), t.$$.dirty[0] & 33554432 && (g || n(20, d = void 0)), t.$$.dirty[0] & 512 | t.$$.dirty[1] & 1 && setTimeout(() => {
763
- n(13, Ie = X), v && !X && n(0, L = "");
764
- }), t.$$.dirty[0] & 1025 && (L || (n(11, I = void 0), n(10, R = void 0), n(15, ne = void 0), n(36, N = R))), t.$$.dirty[0] & 1612711936 && i && I && T && (!I.bbox || I.bbox[0] === I.bbox[2] && I.bbox[1] === I.bbox[3] ? i.flyTo(I.center, U) : i.fitBounds(I.bbox, 0), n(10, R = void 0), n(36, N = void 0), n(12, B = -1)), t.$$.dirty[0] & 1024 | t.$$.dirty[1] & 32 && N !== R && n(36, N = void 0), t.$$.dirty[0] & 2099200 | t.$$.dirty[1] & 32 && i && i.setMarkers(N, I), t.$$.dirty[0] & 1 && n(12, B = -1), t.$$.dirty[0] & 2101248 && (i == null || i.setSelectedMarker(B)), t.$$.dirty[0] & 5120 && n(37, l = R == null ? void 0 : R[B]), t.$$.dirty[1] & 64 && F("select", l), t.$$.dirty[0] & 2048 && F("pick", I), t.$$.dirty[0] & 9216 && F("optionsVisibilityChange", Ie && !!R), t.$$.dirty[0] & 1024 && F("featuresListed", R), t.$$.dirty[1] & 32 && F("featuresMarked", N), t.$$.dirty[0] & 2 && F("reverseToggle", z), t.$$.dirty[0] & 1 && F("queryChange", L), t.$$.dirty[0] & 2097154 && i && i.indicateReverse(z), t.$$.dirty[0] & 2097154 && i && i.setMapClickHandler(z ? ot : void 0);
762
+ t.$$.dirty[0] & 35651584 && i && i.setProximityChangeHandler(_ ? (o) => {
763
+ n(20, d = o);
764
+ } : void 0), t.$$.dirty[0] & 33554432 && (_ || n(20, d = void 0)), t.$$.dirty[0] & 512 | t.$$.dirty[1] & 1 && setTimeout(() => {
765
+ n(13, Pe = X), w && !X && n(0, R = "");
766
+ }), t.$$.dirty[0] & 1025 && (R || (n(11, v = void 0), n(10, E = void 0), n(15, Y = void 0), n(36, N = E))), t.$$.dirty[0] & 2048 && v && !v.address && v.geometry.type === "Point" && Be(v.id, !0).catch((o) => n(15, Y = o)), t.$$.dirty[0] & 1612711936 && i && v && z && (!v.bbox || v.bbox[0] === v.bbox[2] && v.bbox[1] === v.bbox[3] ? i.flyTo(v.center, G) : i.fitBounds(v.bbox, 50), n(10, E = void 0), n(36, N = void 0), n(12, I = -1)), t.$$.dirty[0] & 1024 | t.$$.dirty[1] & 32 && N !== E && n(36, N = void 0), t.$$.dirty[0] & 2099200 | t.$$.dirty[1] & 32 && i && i.setMarkers(N, v), t.$$.dirty[0] & 1 && n(12, I = -1), t.$$.dirty[0] & 2101248 && (i == null || i.setSelectedMarker(I)), t.$$.dirty[0] & 5120 && n(37, l = E == null ? void 0 : E[I]), t.$$.dirty[1] & 64 && F("select", l), t.$$.dirty[0] & 2048 && F("pick", v), t.$$.dirty[0] & 9216 && F("optionsVisibilityChange", Pe && !!E), t.$$.dirty[0] & 1024 && F("featuresListed", E), t.$$.dirty[1] & 32 && F("featuresMarked", N), t.$$.dirty[0] & 2 && F("reverseToggle", A), t.$$.dirty[0] & 1 && F("queryChange", R), t.$$.dirty[0] & 2097154 && i && i.indicateReverse(A), t.$$.dirty[0] & 2097154 && i && i.setMapClickHandler(A ? st : void 0);
765
767
  }, [
766
- L,
767
- z,
768
- o,
768
+ R,
769
+ A,
770
+ s,
769
771
  h,
770
772
  p,
771
773
  D,
772
- E,
774
+ L,
773
775
  j,
774
- me,
776
+ be,
775
777
  X,
776
- R,
778
+ E,
779
+ v,
777
780
  I,
778
- B,
779
- Ie,
781
+ Pe,
782
+ W,
780
783
  Y,
781
- ne,
782
784
  le,
783
- Ne,
785
+ Ke,
784
786
  it,
785
- He,
787
+ Ae,
786
788
  d,
787
789
  i,
788
790
  u,
789
791
  a,
790
- m,
791
792
  g,
793
+ _,
792
794
  b,
793
- C,
794
795
  M,
795
- U,
796
796
  T,
797
- v,
798
- k,
799
- _,
797
+ G,
798
+ z,
799
+ w,
800
+ C,
801
+ m,
800
802
  S,
801
803
  J,
802
804
  N,
@@ -809,22 +811,22 @@ function Yt(t, e, n) {
809
811
  at,
810
812
  dt,
811
813
  ht,
814
+ mt,
812
815
  _t,
813
816
  gt,
814
- mt,
815
817
  yt,
816
818
  bt,
817
819
  pt
818
820
  ];
819
821
  }
820
- class Ft extends ge {
822
+ class Ft extends ye {
821
823
  constructor(e) {
822
- super(), _e(
824
+ super(), ge(
823
825
  this,
824
826
  e,
825
827
  Yt,
826
828
  Xt,
827
- he,
829
+ _e,
828
830
  {
829
831
  class: 2,
830
832
  mapController: 21,
@@ -867,89 +869,89 @@ class Ft extends ge {
867
869
  }
868
870
  }
869
871
  function $t(t, e = !0, n = !0, l = {}, r = {}) {
870
- let c, o, i, u = [], a;
872
+ let c, s, i, u = [], a;
871
873
  const h = () => {
872
874
  if (!c) {
873
875
  i = void 0;
874
876
  return;
875
877
  }
876
878
  let d;
877
- const m = t.getZoom() > 10 ? [(d = t.getCenter().wrap()).lng, d.lat] : void 0;
878
- i !== m && (i = m, c(m));
879
+ const g = t.getZoom() > 10 ? [(d = t.getCenter().wrap()).lng, d.lat] : void 0;
880
+ i !== g && (i = g, c(g));
879
881
  }, p = (d) => {
880
- o == null || o([d.latlng.lng, d.latlng.lat]);
882
+ s == null || s([d.latlng.lng, d.latlng.lat]);
881
883
  };
882
884
  return {
883
885
  setProximityChangeHandler(d) {
884
886
  d ? (c = d, t.on("moveend", h), h()) : (t.off("moveend", h), c == null || c(void 0), c = void 0);
885
887
  },
886
888
  setMapClickHandler(d) {
887
- o = d, o ? t.on("click", p) : t.off("click", p);
889
+ s = d, s ? t.on("click", p) : t.off("click", p);
888
890
  },
889
- flyTo(d, m) {
890
- t.flyTo(d, m, l);
891
+ flyTo(d, g) {
892
+ t.flyTo(d, g, l);
891
893
  },
892
- fitBounds(d, m) {
894
+ fitBounds(d, g) {
893
895
  t.flyToBounds(
894
896
  [
895
897
  [d[1], d[0]],
896
898
  [d[3], d[2]]
897
899
  ],
898
- { ...r, padding: [m, m] }
900
+ { ...r, padding: [g, g] }
899
901
  );
900
902
  },
901
903
  indicateReverse(d) {
902
904
  t.getContainer().style.cursor = d ? "crosshair" : "";
903
905
  },
904
- setMarkers(d, m) {
905
- for (const g of u)
906
- g.remove();
906
+ setMarkers(d, g) {
907
+ for (const _ of u)
908
+ _.remove();
907
909
  u.length = 0;
908
- for (const g of m ? [...d != null ? d : [], m] : d != null ? d : []) {
910
+ for (const _ of g ? [...d != null ? d : [], g] : d != null ? d : []) {
909
911
  let b;
910
- const C = [g.center[1], g.center[0]];
911
- if (g === m && typeof e == "object")
912
- b = new se.Marker(C, e);
913
- else if (g !== m && typeof n == "object")
914
- b = new se.Marker(C, n);
912
+ const M = [_.center[1], _.center[0]];
913
+ if (_ === g && typeof e == "object")
914
+ b = new se.Marker(M, e);
915
+ else if (_ !== g && typeof n == "object")
916
+ b = new se.Marker(M, n);
915
917
  else {
916
- const M = document.createElement("div");
917
- new rt({ props: { displayIn: "leaflet" }, target: M }), b = new se.Marker(C, {
918
- icon: new se.DivIcon({ html: M, className: "" })
918
+ const T = document.createElement("div");
919
+ new rt({ props: { displayIn: "leaflet" }, target: T }), b = new se.Marker(M, {
920
+ icon: new se.DivIcon({ html: T, className: "" })
919
921
  });
920
922
  }
921
923
  u.push(b.addTo(t));
922
924
  }
923
925
  },
924
926
  setSelectedMarker(d) {
925
- var m, g;
926
- a && ((m = a.getElement()) == null || m.classList.toggle("marker-selected", !1)), a = d > -1 ? u[d] : void 0, (g = a == null ? void 0 : a.getElement()) == null || g.classList.toggle("marker-selected", !0);
927
+ var g, _;
928
+ a && ((g = a.getElement()) == null || g.classList.toggle("marker-selected", !1)), a = d > -1 ? u[d] : void 0, (_ = a == null ? void 0 : a.getElement()) == null || _.classList.toggle("marker-selected", !0);
927
929
  }
928
930
  };
929
931
  }
930
- var W, ie;
931
- class tn extends se.Control {
932
+ var U, ce;
933
+ class en extends se.Control {
932
934
  constructor(n) {
933
935
  super();
934
- Be(this, W, void 0);
935
- Be(this, ie, void 0);
936
- Ce(this, ie, n);
936
+ je(this, U, void 0);
937
+ je(this, ce, void 0);
938
+ Te(this, ce, n);
937
939
  }
938
940
  onAdd(n) {
939
941
  const l = document.createElement("div");
940
942
  l.className = "leaflet-ctrl-geocoder", se.DomEvent.disableClickPropagation(l), se.DomEvent.disableScrollPropagation(l);
941
- const { marker: r, showResultMarkers: c, flyTo: o, ...i } = Z(this, ie), u = typeof o == "boolean" ? {} : o, a = $t(
943
+ const { marker: r, showResultMarkers: c, flyTo: s, ...i } = Z(this, ce), u = typeof s == "boolean" ? {} : s, a = $t(
942
944
  n,
943
945
  r,
944
946
  c,
945
947
  u,
946
948
  u
947
949
  );
948
- Ce(this, W, new Ft({
950
+ Te(this, U, new Ft({
949
951
  target: l,
950
952
  props: {
951
953
  mapController: a,
952
- flyTo: o === void 0 ? !0 : !!o,
954
+ flyTo: s === void 0 ? !0 : !!s,
953
955
  ...i
954
956
  }
955
957
  }));
@@ -963,7 +965,7 @@ class tn extends se.Control {
963
965
  "reverseToggle",
964
966
  "queryChange"
965
967
  ])
966
- Z(this, W).$on(
968
+ Z(this, U).$on(
967
969
  h,
968
970
  (p) => n.fire(h.toLowerCase(), p.detail)
969
971
  );
@@ -971,32 +973,37 @@ class tn extends se.Control {
971
973
  }
972
974
  setOptions(n) {
973
975
  var i;
974
- Ce(this, ie, n);
975
- const { marker: l, showResultMarkers: r, flyTo: c, ...o } = Z(this, ie);
976
- (i = Z(this, W)) == null || i.$set(o);
976
+ Te(this, ce, n);
977
+ const { marker: l, showResultMarkers: r, flyTo: c, ...s } = Z(this, ce);
978
+ (i = Z(this, U)) == null || i.$set(s);
977
979
  }
978
980
  setQuery(n, l = !0) {
979
981
  var r;
980
- (r = Z(this, W)) == null || r.setQuery(n, l);
982
+ (r = Z(this, U)) == null || r.setQuery(n, l);
981
983
  }
982
984
  setReverseMode(n) {
983
985
  var l;
984
- (l = Z(this, W)) == null || l.$set({ reverseActive: n });
986
+ (l = Z(this, U)) == null || l.$set({ reverseActive: n });
985
987
  }
986
988
  focus() {
987
989
  var n;
988
- (n = Z(this, W)) == null || n.focus();
990
+ (n = Z(this, U)) == null || n.focus();
989
991
  }
990
992
  blur() {
991
993
  var n;
992
- (n = Z(this, W)) == null || n.blur();
994
+ (n = Z(this, U)) == null || n.blur();
993
995
  }
994
996
  onRemove() {
995
997
  var n;
996
- (n = Z(this, W)) == null || n.$destroy();
998
+ (n = Z(this, U)) == null || n.$destroy();
997
999
  }
998
1000
  }
999
- W = new WeakMap(), ie = new WeakMap();
1001
+ U = new WeakMap(), ce = new WeakMap();
1002
+ function tn(...t) {
1003
+ return new en(...t);
1004
+ }
1005
+ window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = tn);
1000
1006
  export {
1001
- tn as GeocodingControl
1007
+ en as GeocodingControl,
1008
+ $t as createLeafletMapController
1002
1009
  };