@maptiler/geocoding-control 2.0.0-rc.1 → 2.0.0-rc.2
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/MapLibreBasedGeocodingControl.d.ts +1436 -1748
- package/leaflet.js +714 -718
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.d.ts +2625 -0
- package/maplibregl.js +636 -640
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +2620 -0
- package/maptilersdk.js +636 -640
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +643 -647
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +2 -2
- package/react.js +427 -431
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/FeatureItem.svelte.d.ts +1 -1
- package/svelte/GeocodingControl.svelte +8 -15
- package/svelte/GeocodingControl.svelte.d.ts +3 -4
- package/svelte/MapLibreBasedGeocodingControl.d.ts +1436 -1748
- package/svelte/MapLibreBasedGeocodingControl.js +2 -3
- package/svelte/leaflet.js +2 -1
- package/svelte/maplibregl.d.ts +2625 -0
- package/svelte/maptilersdk.d.ts +2620 -0
- package/svelte/openlayers.js +2 -1
- package/svelte/react.js +5 -5
- package/svelte/types.d.ts +45 -23
- package/types.d.ts +45 -23
- package/vanilla.js +484 -488
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/vanilla.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var bi = Object.defineProperty;
|
|
2
|
+
var vi = Object.getPrototypeOf;
|
|
3
|
+
var Li = Reflect.get;
|
|
4
|
+
var bt = (i) => {
|
|
5
5
|
throw TypeError(i);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var oe = (i, e, t) => (
|
|
10
|
-
var
|
|
7
|
+
var _i = (i, e, t) => e in i ? bi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
8
|
+
var nt = (i, e, t) => _i(i, typeof e != "symbol" ? e + "" : e, t), rt = (i, e, t) => e.has(i) || bt("Cannot " + t);
|
|
9
|
+
var oe = (i, e, t) => (rt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), ot = (i, e, t) => e.has(i) ? bt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), vt = (i, e, t, n) => (rt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), Lt = (i, e, t) => (rt(i, e, "access private method"), t);
|
|
10
|
+
var _t = (i, e, t) => Li(vi(i), t, e);
|
|
11
11
|
function U() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function yi(i, e) {
|
|
14
14
|
for (const t in e) i[t] = e[t];
|
|
15
15
|
return (
|
|
16
16
|
/** @type {T & S} */
|
|
17
17
|
i
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ht(i) {
|
|
21
21
|
return i();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function yt() {
|
|
24
24
|
return /* @__PURE__ */ Object.create(null);
|
|
25
25
|
}
|
|
26
26
|
function ue(i) {
|
|
27
|
-
i.forEach(
|
|
27
|
+
i.forEach(Ht);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function jt(i) {
|
|
30
30
|
return typeof i == "function";
|
|
31
31
|
}
|
|
32
32
|
function Le(i, e) {
|
|
33
33
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
34
34
|
}
|
|
35
|
-
let
|
|
36
|
-
function
|
|
37
|
-
return i === e ? !0 : (
|
|
35
|
+
let je;
|
|
36
|
+
function K(i, e) {
|
|
37
|
+
return i === e ? !0 : (je || (je = document.createElement("a")), je.href = e, i === je.href);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function wi(i) {
|
|
40
40
|
return Object.keys(i).length === 0;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ei(i, e, t, n) {
|
|
43
43
|
if (i) {
|
|
44
|
-
const r =
|
|
44
|
+
const r = Pt(i, e, t, n);
|
|
45
45
|
return i[0](r);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return i[1] && n ?
|
|
48
|
+
function Pt(i, e, t, n) {
|
|
49
|
+
return i[1] && n ? yi(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Si(i, e, t, n) {
|
|
52
52
|
if (i[2] && n) {
|
|
53
53
|
const r = i[2](n(t));
|
|
54
54
|
if (e.dirty === void 0)
|
|
@@ -63,13 +63,13 @@ function pi(i, e, t, n) {
|
|
|
63
63
|
}
|
|
64
64
|
return e.dirty;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function pi(i, e, t, n, r, l) {
|
|
67
67
|
if (r) {
|
|
68
|
-
const c =
|
|
68
|
+
const c = Pt(e, t, n, l);
|
|
69
69
|
i.p(c, r);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ti(i) {
|
|
73
73
|
if (i.ctx.length > 32) {
|
|
74
74
|
const e = [], t = i.ctx.length / 32;
|
|
75
75
|
for (let n = 0; n < t; n++)
|
|
@@ -78,19 +78,19 @@ function Ni(i) {
|
|
|
78
78
|
}
|
|
79
79
|
return -1;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function wt(i) {
|
|
82
82
|
return i ?? "";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function k(i, e) {
|
|
85
85
|
i.appendChild(e);
|
|
86
86
|
}
|
|
87
87
|
function A(i, e, t) {
|
|
88
88
|
i.insertBefore(e, t || null);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function O(i) {
|
|
91
91
|
i.parentNode && i.parentNode.removeChild(i);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function R(i) {
|
|
94
94
|
return document.createElement(i);
|
|
95
95
|
}
|
|
96
96
|
function se(i) {
|
|
@@ -102,10 +102,10 @@ function me(i) {
|
|
|
102
102
|
function X() {
|
|
103
103
|
return me(" ");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ni() {
|
|
106
106
|
return me("");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function V(i, e, t, n) {
|
|
109
109
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
110
110
|
}
|
|
111
111
|
function ki(i) {
|
|
@@ -116,39 +116,39 @@ function ki(i) {
|
|
|
116
116
|
function a(i, e, t) {
|
|
117
117
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Mi(i) {
|
|
120
120
|
return Array.from(i.childNodes);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Re(i, e) {
|
|
123
123
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
124
124
|
e);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Et(i, e) {
|
|
127
127
|
i.value = e ?? "";
|
|
128
128
|
}
|
|
129
129
|
function fe(i, e, t) {
|
|
130
130
|
i.classList.toggle(e, !!t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ci(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
133
133
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
134
134
|
}
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
let De;
|
|
136
|
+
function ze(i) {
|
|
137
|
+
De = i;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
if (!
|
|
141
|
-
return
|
|
139
|
+
function Zt() {
|
|
140
|
+
if (!De) throw new Error("Function called outside component initialization");
|
|
141
|
+
return De;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function Wi(i) {
|
|
144
|
+
Zt().$$.on_destroy.push(i);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const i =
|
|
146
|
+
function zi() {
|
|
147
|
+
const i = Zt();
|
|
148
148
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
149
149
|
const r = i.$$.callbacks[e];
|
|
150
150
|
if (r) {
|
|
151
|
-
const l =
|
|
151
|
+
const l = Ci(
|
|
152
152
|
/** @type {string} */
|
|
153
153
|
e,
|
|
154
154
|
t,
|
|
@@ -161,60 +161,60 @@ function Di() {
|
|
|
161
161
|
return !0;
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function St(i, e) {
|
|
165
165
|
const t = i.$$.callbacks[e.type];
|
|
166
166
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
const
|
|
171
|
-
let
|
|
172
|
-
function
|
|
173
|
-
|
|
168
|
+
const Te = [], at = [];
|
|
169
|
+
let Ne = [];
|
|
170
|
+
const pt = [], Ri = /* @__PURE__ */ Promise.resolve();
|
|
171
|
+
let lt = !1;
|
|
172
|
+
function Di() {
|
|
173
|
+
lt || (lt = !0, Ri.then(qt));
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
175
|
+
function ut(i) {
|
|
176
|
+
Ne.push(i);
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
178
|
+
const st = /* @__PURE__ */ new Set();
|
|
179
|
+
let pe = 0;
|
|
180
180
|
function qt() {
|
|
181
|
-
if (
|
|
181
|
+
if (pe !== 0)
|
|
182
182
|
return;
|
|
183
|
-
const i =
|
|
183
|
+
const i = De;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
|
-
for (;
|
|
187
|
-
const e =
|
|
188
|
-
|
|
186
|
+
for (; pe < Te.length; ) {
|
|
187
|
+
const e = Te[pe];
|
|
188
|
+
pe++, ze(e), Oi(e.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (e) {
|
|
191
|
-
throw
|
|
191
|
+
throw Te.length = 0, pe = 0, e;
|
|
192
192
|
}
|
|
193
|
-
for (
|
|
194
|
-
for (let e = 0; e <
|
|
195
|
-
const t =
|
|
196
|
-
|
|
193
|
+
for (ze(null), Te.length = 0, pe = 0; at.length; ) at.pop()();
|
|
194
|
+
for (let e = 0; e < Ne.length; e += 1) {
|
|
195
|
+
const t = Ne[e];
|
|
196
|
+
st.has(t) || (st.add(t), t());
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
} while (
|
|
200
|
-
for (;
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
Ne.length = 0;
|
|
199
|
+
} while (Te.length);
|
|
200
|
+
for (; pt.length; )
|
|
201
|
+
pt.pop()();
|
|
202
|
+
lt = !1, st.clear(), ze(i);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Oi(i) {
|
|
205
205
|
if (i.fragment !== null) {
|
|
206
206
|
i.update(), ue(i.before_update);
|
|
207
207
|
const e = i.dirty;
|
|
208
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
208
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(ut);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ii(i) {
|
|
212
212
|
const e = [], t = [];
|
|
213
|
-
|
|
213
|
+
Ne.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ne = e;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
216
216
|
let ve;
|
|
217
|
-
function
|
|
217
|
+
function Ze() {
|
|
218
218
|
ve = {
|
|
219
219
|
r: 0,
|
|
220
220
|
c: [],
|
|
@@ -226,41 +226,41 @@ function qe() {
|
|
|
226
226
|
ve.r || ue(ve.c), ve = ve.p;
|
|
227
227
|
}
|
|
228
228
|
function H(i, e) {
|
|
229
|
-
i && i.i && (
|
|
229
|
+
i && i.i && (Pe.delete(i), i.i(e));
|
|
230
230
|
}
|
|
231
231
|
function Q(i, e, t, n) {
|
|
232
232
|
if (i && i.o) {
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
if (Pe.has(i)) return;
|
|
234
|
+
Pe.add(i), ve.c.push(() => {
|
|
235
|
+
Pe.delete(i), n && (t && i.d(1), n());
|
|
236
236
|
}), i.o(e);
|
|
237
237
|
} else n && n();
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Tt(i) {
|
|
240
240
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Ui(i, e) {
|
|
243
243
|
Q(i, 1, 1, () => {
|
|
244
244
|
e.delete(i.key);
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ai(i, e, t, n, r, l, c, o, d, u, f, h) {
|
|
248
248
|
let v = i.length, _ = l.length, w = v;
|
|
249
249
|
const W = {};
|
|
250
250
|
for (; w--; ) W[i[w].key] = w;
|
|
251
251
|
const y = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), z = [];
|
|
252
252
|
for (w = _; w--; ) {
|
|
253
253
|
const g = h(r, l, w), m = t(g);
|
|
254
|
-
let
|
|
255
|
-
|
|
254
|
+
let M = c.get(m);
|
|
255
|
+
M ? z.push(() => M.p(g, e)) : (M = u(m, g), M.c()), E.set(m, y[w] = M), m in W && C.set(m, Math.abs(w - W[m]));
|
|
256
256
|
}
|
|
257
|
-
const p = /* @__PURE__ */ new Set(),
|
|
257
|
+
const p = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set();
|
|
258
258
|
function b(g) {
|
|
259
259
|
H(g, 1), g.m(o, f), c.set(g.key, g), f = g.first, _--;
|
|
260
260
|
}
|
|
261
261
|
for (; v && _; ) {
|
|
262
|
-
const g = y[_ - 1], m = i[v - 1],
|
|
263
|
-
g === m ? (f = g.first, v--, _--) : E.has(j) ? !c.has(
|
|
262
|
+
const g = y[_ - 1], m = i[v - 1], M = g.key, j = m.key;
|
|
263
|
+
g === m ? (f = g.first, v--, _--) : E.has(j) ? !c.has(M) || p.has(M) ? b(g) : q.has(j) ? v-- : C.get(M) > C.get(j) ? (q.add(M), b(g)) : (p.add(j), v--) : (d(m, c), v--);
|
|
264
264
|
}
|
|
265
265
|
for (; v--; ) {
|
|
266
266
|
const g = i[v];
|
|
@@ -274,21 +274,21 @@ function ge(i) {
|
|
|
274
274
|
}
|
|
275
275
|
function ae(i, e, t) {
|
|
276
276
|
const { fragment: n, after_update: r } = i.$$;
|
|
277
|
-
n && n.m(e, t),
|
|
278
|
-
const l = i.$$.on_mount.map(
|
|
277
|
+
n && n.m(e, t), ut(() => {
|
|
278
|
+
const l = i.$$.on_mount.map(Ht).filter(jt);
|
|
279
279
|
i.$$.on_destroy ? i.$$.on_destroy.push(...l) : ue(l), i.$$.on_mount = [];
|
|
280
|
-
}), r.forEach(
|
|
280
|
+
}), r.forEach(ut);
|
|
281
281
|
}
|
|
282
282
|
function le(i, e) {
|
|
283
283
|
const t = i.$$;
|
|
284
|
-
t.fragment !== null && (
|
|
284
|
+
t.fragment !== null && (Ii(t.after_update), ue(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
i.$$.dirty[0] === -1 && (
|
|
286
|
+
function Bi(i, e) {
|
|
287
|
+
i.$$.dirty[0] === -1 && (Te.push(i), Di(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
288
288
|
}
|
|
289
289
|
function _e(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
290
|
-
const d =
|
|
291
|
-
|
|
290
|
+
const d = De;
|
|
291
|
+
ze(i);
|
|
292
292
|
const u = i.$$ = {
|
|
293
293
|
fragment: null,
|
|
294
294
|
ctx: [],
|
|
@@ -296,7 +296,7 @@ function _e(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
296
296
|
props: l,
|
|
297
297
|
update: U,
|
|
298
298
|
not_equal: r,
|
|
299
|
-
bound:
|
|
299
|
+
bound: yt(),
|
|
300
300
|
// lifecycle
|
|
301
301
|
on_mount: [],
|
|
302
302
|
on_destroy: [],
|
|
@@ -305,7 +305,7 @@ function _e(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
305
305
|
after_update: [],
|
|
306
306
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
307
307
|
// everything else
|
|
308
|
-
callbacks:
|
|
308
|
+
callbacks: yt(),
|
|
309
309
|
dirty: o,
|
|
310
310
|
skip_bound: !1,
|
|
311
311
|
root: e.target || d.$$.root
|
|
@@ -314,16 +314,16 @@ function _e(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
314
314
|
let f = !1;
|
|
315
315
|
if (u.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
|
|
316
316
|
const w = _.length ? _[0] : v;
|
|
317
|
-
return u.ctx && r(u.ctx[h], u.ctx[h] = w) && (!u.skip_bound && u.bound[h] && u.bound[h](w), f &&
|
|
317
|
+
return u.ctx && r(u.ctx[h], u.ctx[h] = w) && (!u.skip_bound && u.bound[h] && u.bound[h](w), f && Bi(i, h)), v;
|
|
318
318
|
}) : [], u.update(), f = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
319
319
|
if (e.hydrate) {
|
|
320
|
-
const h =
|
|
321
|
-
u.fragment && u.fragment.l(h), h.forEach(
|
|
320
|
+
const h = Mi(e.target);
|
|
321
|
+
u.fragment && u.fragment.l(h), h.forEach(O);
|
|
322
322
|
} else
|
|
323
323
|
u.fragment && u.fragment.c();
|
|
324
324
|
e.intro && H(i.$$.fragment), ae(i, e.target, e.anchor), qt();
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
ze(d);
|
|
327
327
|
}
|
|
328
328
|
class ye {
|
|
329
329
|
constructor() {
|
|
@@ -334,7 +334,7 @@ class ye {
|
|
|
334
334
|
*
|
|
335
335
|
* @type {any}
|
|
336
336
|
*/
|
|
337
|
-
|
|
337
|
+
nt(this, "$$");
|
|
338
338
|
/**
|
|
339
339
|
* ### PRIVATE API
|
|
340
340
|
*
|
|
@@ -342,7 +342,7 @@ class ye {
|
|
|
342
342
|
*
|
|
343
343
|
* @type {any}
|
|
344
344
|
*/
|
|
345
|
-
|
|
345
|
+
nt(this, "$$set");
|
|
346
346
|
}
|
|
347
347
|
/** @returns {void} */
|
|
348
348
|
$destroy() {
|
|
@@ -355,7 +355,7 @@ class ye {
|
|
|
355
355
|
* @returns {() => void}
|
|
356
356
|
*/
|
|
357
357
|
$on(e, t) {
|
|
358
|
-
if (!
|
|
358
|
+
if (!jt(t))
|
|
359
359
|
return U;
|
|
360
360
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
361
361
|
return n.push(t), () => {
|
|
@@ -368,60 +368,60 @@ class ye {
|
|
|
368
368
|
* @returns {void}
|
|
369
369
|
*/
|
|
370
370
|
$set(e) {
|
|
371
|
-
this.$$set && !
|
|
371
|
+
this.$$set && !wi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
375
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
376
|
-
function
|
|
374
|
+
const Fi = "4";
|
|
375
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fi);
|
|
376
|
+
function Hi(i) {
|
|
377
377
|
let e, t;
|
|
378
378
|
return {
|
|
379
379
|
c() {
|
|
380
380
|
e = se("svg"), t = se("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
|
|
381
381
|
},
|
|
382
382
|
m(n, r) {
|
|
383
|
-
A(n, e, r),
|
|
383
|
+
A(n, e, r), k(e, t);
|
|
384
384
|
},
|
|
385
385
|
p: U,
|
|
386
386
|
i: U,
|
|
387
387
|
o: U,
|
|
388
388
|
d(n) {
|
|
389
|
-
n &&
|
|
389
|
+
n && O(e);
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Gt extends ye {
|
|
394
394
|
constructor(e) {
|
|
395
|
-
super(), _e(this, e, null,
|
|
395
|
+
super(), _e(this, e, null, Hi, Le, {});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ji(i) {
|
|
399
399
|
let e, t;
|
|
400
400
|
return {
|
|
401
401
|
c() {
|
|
402
402
|
e = se("svg"), t = se("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
|
|
403
403
|
},
|
|
404
404
|
m(n, r) {
|
|
405
|
-
A(n, e, r),
|
|
405
|
+
A(n, e, r), k(e, t);
|
|
406
406
|
},
|
|
407
407
|
p: U,
|
|
408
408
|
i: U,
|
|
409
409
|
o: U,
|
|
410
410
|
d(n) {
|
|
411
|
-
n &&
|
|
411
|
+
n && O(e);
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class Qt extends ye {
|
|
416
416
|
constructor(e) {
|
|
417
|
-
super(), _e(this, e, null,
|
|
417
|
+
super(), _e(this, e, null, ji, Le, {});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Pi(i) {
|
|
421
421
|
let e, t;
|
|
422
422
|
return {
|
|
423
423
|
c() {
|
|
424
|
-
e =
|
|
424
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
425
425
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
426
426
|
e,
|
|
427
427
|
"alt",
|
|
@@ -434,7 +434,7 @@ function Zi(i) {
|
|
|
434
434
|
},
|
|
435
435
|
p(n, r) {
|
|
436
436
|
r & /*iconsBaseUrl*/
|
|
437
|
-
8 && !
|
|
437
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
438
438
|
n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
|
|
439
439
|
64 && a(
|
|
440
440
|
e,
|
|
@@ -444,15 +444,15 @@ function Zi(i) {
|
|
|
444
444
|
);
|
|
445
445
|
},
|
|
446
446
|
d(n) {
|
|
447
|
-
n &&
|
|
447
|
+
n && O(e);
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Zi(i) {
|
|
452
452
|
let e, t;
|
|
453
453
|
return {
|
|
454
454
|
c() {
|
|
455
|
-
e =
|
|
455
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
456
456
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
457
457
|
e,
|
|
458
458
|
"alt",
|
|
@@ -465,7 +465,7 @@ function Gi(i) {
|
|
|
465
465
|
},
|
|
466
466
|
p(n, r) {
|
|
467
467
|
r & /*iconsBaseUrl*/
|
|
468
|
-
8 && !
|
|
468
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
469
469
|
n[3] + "reverse.svg") && a(e, "src", t), r & /*placeType*/
|
|
470
470
|
64 && a(
|
|
471
471
|
e,
|
|
@@ -475,7 +475,7 @@ function Gi(i) {
|
|
|
475
475
|
);
|
|
476
476
|
},
|
|
477
477
|
d(n) {
|
|
478
|
-
n &&
|
|
478
|
+
n && O(e);
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
@@ -483,7 +483,7 @@ function qi(i) {
|
|
|
483
483
|
let e, t;
|
|
484
484
|
return {
|
|
485
485
|
c() {
|
|
486
|
-
e =
|
|
486
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
487
487
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
488
488
|
e,
|
|
489
489
|
"alt",
|
|
@@ -496,7 +496,7 @@ function qi(i) {
|
|
|
496
496
|
},
|
|
497
497
|
p(n, r) {
|
|
498
498
|
r & /*iconsBaseUrl*/
|
|
499
|
-
8 && !
|
|
499
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
500
500
|
n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
|
|
501
501
|
64 && a(
|
|
502
502
|
e,
|
|
@@ -506,15 +506,15 @@ function qi(i) {
|
|
|
506
506
|
);
|
|
507
507
|
},
|
|
508
508
|
d(n) {
|
|
509
|
-
n &&
|
|
509
|
+
n && O(e);
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Gi(i) {
|
|
514
514
|
let e, t;
|
|
515
515
|
return {
|
|
516
516
|
c() {
|
|
517
|
-
e =
|
|
517
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
518
518
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
519
519
|
e,
|
|
520
520
|
"alt",
|
|
@@ -527,7 +527,7 @@ function Qi(i) {
|
|
|
527
527
|
},
|
|
528
528
|
p(n, r) {
|
|
529
529
|
r & /*iconsBaseUrl*/
|
|
530
|
-
8 && !
|
|
530
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
531
531
|
n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
|
|
532
532
|
64 && a(
|
|
533
533
|
e,
|
|
@@ -537,15 +537,15 @@ function Qi(i) {
|
|
|
537
537
|
);
|
|
538
538
|
},
|
|
539
539
|
d(n) {
|
|
540
|
-
n &&
|
|
540
|
+
n && O(e);
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Qi(i) {
|
|
545
545
|
let e, t;
|
|
546
546
|
return {
|
|
547
547
|
c() {
|
|
548
|
-
e =
|
|
548
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
549
549
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
550
550
|
e,
|
|
551
551
|
"alt",
|
|
@@ -558,7 +558,7 @@ function xi(i) {
|
|
|
558
558
|
},
|
|
559
559
|
p(n, r) {
|
|
560
560
|
r & /*iconsBaseUrl*/
|
|
561
|
-
8 && !
|
|
561
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
562
562
|
n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
|
|
563
563
|
64 && a(
|
|
564
564
|
e,
|
|
@@ -568,7 +568,7 @@ function xi(i) {
|
|
|
568
568
|
);
|
|
569
569
|
},
|
|
570
570
|
d(n) {
|
|
571
|
-
n &&
|
|
571
|
+
n && O(e);
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
574
|
}
|
|
@@ -576,7 +576,7 @@ function Ki(i) {
|
|
|
576
576
|
let e, t;
|
|
577
577
|
return {
|
|
578
578
|
c() {
|
|
579
|
-
e =
|
|
579
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
580
580
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
581
581
|
e,
|
|
582
582
|
"alt",
|
|
@@ -589,7 +589,7 @@ function Ki(i) {
|
|
|
589
589
|
},
|
|
590
590
|
p(n, r) {
|
|
591
591
|
r & /*iconsBaseUrl*/
|
|
592
|
-
8 && !
|
|
592
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
593
593
|
n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
|
|
594
594
|
64 && a(
|
|
595
595
|
e,
|
|
@@ -599,7 +599,7 @@ function Ki(i) {
|
|
|
599
599
|
);
|
|
600
600
|
},
|
|
601
601
|
d(n) {
|
|
602
|
-
n &&
|
|
602
|
+
n && O(e);
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
605
|
}
|
|
@@ -607,7 +607,7 @@ function Vi(i) {
|
|
|
607
607
|
let e, t;
|
|
608
608
|
return {
|
|
609
609
|
c() {
|
|
610
|
-
e =
|
|
610
|
+
e = R("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
611
611
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
612
612
|
e,
|
|
613
613
|
"alt",
|
|
@@ -620,7 +620,7 @@ function Vi(i) {
|
|
|
620
620
|
},
|
|
621
621
|
p(n, r) {
|
|
622
622
|
r & /*iconsBaseUrl*/
|
|
623
|
-
8 && !
|
|
623
|
+
8 && !K(e.src, t = /*iconsBaseUrl*/
|
|
624
624
|
n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
|
|
625
625
|
64 && a(
|
|
626
626
|
e,
|
|
@@ -630,15 +630,15 @@ function Vi(i) {
|
|
|
630
630
|
);
|
|
631
631
|
},
|
|
632
632
|
d(n) {
|
|
633
|
-
n &&
|
|
633
|
+
n && O(e);
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function xi(i) {
|
|
638
638
|
let e, t, n, r;
|
|
639
639
|
return {
|
|
640
640
|
c() {
|
|
641
|
-
e =
|
|
641
|
+
e = R("img"), K(e.src, t = /*imageUrl*/
|
|
642
642
|
i[5]) || a(e, "src", t), a(
|
|
643
643
|
e,
|
|
644
644
|
"alt",
|
|
@@ -647,7 +647,7 @@ function Ji(i) {
|
|
|
647
647
|
), a(e, "class", "svelte-ltkwvy");
|
|
648
648
|
},
|
|
649
649
|
m(l, c) {
|
|
650
|
-
A(l, e, c), n || (r =
|
|
650
|
+
A(l, e, c), n || (r = V(
|
|
651
651
|
e,
|
|
652
652
|
"error",
|
|
653
653
|
/*error_handler*/
|
|
@@ -656,7 +656,7 @@ function Ji(i) {
|
|
|
656
656
|
},
|
|
657
657
|
p(l, c) {
|
|
658
658
|
c & /*imageUrl*/
|
|
659
|
-
32 && !
|
|
659
|
+
32 && !K(e.src, t = /*imageUrl*/
|
|
660
660
|
l[5]) && a(e, "src", t), c & /*category*/
|
|
661
661
|
16 && a(
|
|
662
662
|
e,
|
|
@@ -666,36 +666,36 @@ function Ji(i) {
|
|
|
666
666
|
);
|
|
667
667
|
},
|
|
668
668
|
d(l) {
|
|
669
|
-
l &&
|
|
669
|
+
l && O(e), n = !1, r();
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Nt(i) {
|
|
674
674
|
let e, t;
|
|
675
675
|
return {
|
|
676
676
|
c() {
|
|
677
|
-
e =
|
|
677
|
+
e = R("span"), t = me(
|
|
678
678
|
/*placeType*/
|
|
679
679
|
i[6]
|
|
680
680
|
), a(e, "class", "secondary svelte-ltkwvy");
|
|
681
681
|
},
|
|
682
682
|
m(n, r) {
|
|
683
|
-
A(n, e, r),
|
|
683
|
+
A(n, e, r), k(e, t);
|
|
684
684
|
},
|
|
685
685
|
p(n, r) {
|
|
686
686
|
r & /*placeType*/
|
|
687
|
-
64 &&
|
|
687
|
+
64 && Re(
|
|
688
688
|
t,
|
|
689
689
|
/*placeType*/
|
|
690
690
|
n[6]
|
|
691
691
|
);
|
|
692
692
|
},
|
|
693
693
|
d(n) {
|
|
694
|
-
n &&
|
|
694
|
+
n && O(e);
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Ji(i) {
|
|
699
699
|
let e, t, n, r, l, c, o, d, u, f = (
|
|
700
700
|
/*isReverse*/
|
|
701
701
|
(i[7] ? (
|
|
@@ -708,7 +708,7 @@ function Xi(i) {
|
|
|
708
708
|
), h, v, _ = (
|
|
709
709
|
/*showPlaceType*/
|
|
710
710
|
i[2] === "always" || /*showPlaceType*/
|
|
711
|
-
i[2] && !/*feature*/
|
|
711
|
+
i[2] !== "never" && !/*feature*/
|
|
712
712
|
i[0].address && !/*feature*/
|
|
713
713
|
i[0].id.startsWith("road.") && !/*feature*/
|
|
714
714
|
i[0].id.startsWith("address.") && !/*feature*/
|
|
@@ -723,28 +723,28 @@ function Xi(i) {
|
|
|
723
723
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
724
724
|
)) + ""
|
|
725
725
|
), E, C, z;
|
|
726
|
-
function p(m,
|
|
727
|
-
return
|
|
728
|
-
1 && (t = null),
|
|
729
|
-
1 && (n = null),
|
|
730
|
-
1 && (r = null),
|
|
726
|
+
function p(m, M) {
|
|
727
|
+
return M & /*feature*/
|
|
728
|
+
1 && (t = null), M & /*feature*/
|
|
729
|
+
1 && (n = null), M & /*feature*/
|
|
730
|
+
1 && (r = null), M & /*feature*/
|
|
731
731
|
1 && (l = null), /*imageUrl*/
|
|
732
|
-
m[5] ?
|
|
732
|
+
m[5] ? xi : (
|
|
733
733
|
/*feature*/
|
|
734
734
|
m[0].address ? Vi : (t == null && (t = !!/*feature*/
|
|
735
735
|
m[0].id.startsWith("road.")), t ? Ki : (n == null && (n = !!/*feature*/
|
|
736
|
-
m[0].id.startsWith("address.")), n ?
|
|
737
|
-
m[0].id.startsWith("postal_code.")), r ?
|
|
736
|
+
m[0].id.startsWith("address.")), n ? Qi : (r == null && (r = !!/*feature*/
|
|
737
|
+
m[0].id.startsWith("postal_code.")), r ? Gi : (l == null && (l = !!/*feature*/
|
|
738
738
|
m[0].id.startsWith("poi.")), l ? qi : (
|
|
739
739
|
/*isReverse*/
|
|
740
|
-
m[7] ?
|
|
740
|
+
m[7] ? Zi : Pi
|
|
741
741
|
)))))
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
let
|
|
744
|
+
let q = p(i, -1), b = q(i), g = _ && Nt(i);
|
|
745
745
|
return {
|
|
746
746
|
c() {
|
|
747
|
-
e =
|
|
747
|
+
e = R("li"), b.c(), c = X(), o = R("span"), d = R("span"), u = R("span"), h = me(f), v = X(), g && g.c(), w = X(), W = R("span"), E = me(y), a(u, "class", "primary svelte-ltkwvy"), a(d, "class", "svelte-ltkwvy"), a(W, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
|
|
748
748
|
e,
|
|
749
749
|
"data-selected",
|
|
750
750
|
/*selected*/
|
|
@@ -756,15 +756,15 @@ function Xi(i) {
|
|
|
756
756
|
i[1]
|
|
757
757
|
);
|
|
758
758
|
},
|
|
759
|
-
m(m,
|
|
760
|
-
A(m, e,
|
|
761
|
-
|
|
759
|
+
m(m, M) {
|
|
760
|
+
A(m, e, M), b.m(e, null), k(e, c), k(e, o), k(o, d), k(d, u), k(u, h), k(d, v), g && g.m(d, null), k(o, w), k(o, W), k(W, E), C || (z = [
|
|
761
|
+
V(
|
|
762
762
|
e,
|
|
763
763
|
"mouseenter",
|
|
764
764
|
/*mouseenter_handler*/
|
|
765
765
|
i[12]
|
|
766
766
|
),
|
|
767
|
-
|
|
767
|
+
V(
|
|
768
768
|
e,
|
|
769
769
|
"focus",
|
|
770
770
|
/*focus_handler*/
|
|
@@ -772,8 +772,8 @@ function Xi(i) {
|
|
|
772
772
|
)
|
|
773
773
|
], C = !0);
|
|
774
774
|
},
|
|
775
|
-
p(m, [
|
|
776
|
-
|
|
775
|
+
p(m, [M]) {
|
|
776
|
+
q === (q = p(m, M)) && b ? b.p(m, M) : (b.d(1), b = q(m), b && (b.c(), b.m(e, c))), M & /*feature*/
|
|
777
777
|
1 && f !== (f = /*isReverse*/
|
|
778
778
|
(m[7] ? (
|
|
779
779
|
/*feature*/
|
|
@@ -781,28 +781,28 @@ function Xi(i) {
|
|
|
781
781
|
) : (
|
|
782
782
|
/*feature*/
|
|
783
783
|
m[0].place_name.replace(/,.*/, "")
|
|
784
|
-
)) + "") &&
|
|
784
|
+
)) + "") && Re(h, f), M & /*showPlaceType, feature, imageUrl*/
|
|
785
785
|
37 && (_ = /*showPlaceType*/
|
|
786
786
|
m[2] === "always" || /*showPlaceType*/
|
|
787
|
-
m[2] && !/*feature*/
|
|
787
|
+
m[2] !== "never" && !/*feature*/
|
|
788
788
|
m[0].address && !/*feature*/
|
|
789
789
|
m[0].id.startsWith("road.") && !/*feature*/
|
|
790
790
|
m[0].id.startsWith("address.") && !/*feature*/
|
|
791
791
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
792
792
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
793
793
|
m[5]) && !/*isReverse*/
|
|
794
|
-
m[7]), _ ? g ? g.p(m,
|
|
794
|
+
m[7]), _ ? g ? g.p(m, M) : (g = Nt(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), M & /*feature*/
|
|
795
795
|
1 && y !== (y = /*isReverse*/
|
|
796
796
|
(m[7] ? "" : (
|
|
797
797
|
/*feature*/
|
|
798
798
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
799
|
-
)) + "") &&
|
|
799
|
+
)) + "") && Re(E, y), M & /*selected*/
|
|
800
800
|
2 && a(
|
|
801
801
|
e,
|
|
802
802
|
"data-selected",
|
|
803
803
|
/*selected*/
|
|
804
804
|
m[1]
|
|
805
|
-
),
|
|
805
|
+
), M & /*selected*/
|
|
806
806
|
2 && fe(
|
|
807
807
|
e,
|
|
808
808
|
"selected",
|
|
@@ -813,11 +813,11 @@ function Xi(i) {
|
|
|
813
813
|
i: U,
|
|
814
814
|
o: U,
|
|
815
815
|
d(m) {
|
|
816
|
-
m &&
|
|
816
|
+
m && O(e), b.d(), g && g.d(), C = !1, ue(z);
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Xi(i, e, t) {
|
|
821
821
|
var z;
|
|
822
822
|
let n, r, { feature: l } = e, { selected: c = !1 } = e, { showPlaceType: o } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
|
|
823
823
|
const f = (z = l.properties) == null ? void 0 : z.categories;
|
|
@@ -826,23 +826,23 @@ function Yi(i, e, t) {
|
|
|
826
826
|
v && d.add(v), t(10, _++, _);
|
|
827
827
|
}
|
|
828
828
|
function y(p) {
|
|
829
|
-
|
|
829
|
+
St.call(this, i, p);
|
|
830
830
|
}
|
|
831
831
|
function E(p) {
|
|
832
|
-
|
|
832
|
+
St.call(this, i, p);
|
|
833
833
|
}
|
|
834
834
|
const C = () => W();
|
|
835
835
|
return i.$$set = (p) => {
|
|
836
836
|
"feature" in p && t(0, l = p.feature), "selected" in p && t(1, c = p.selected), "showPlaceType" in p && t(2, o = p.showPlaceType), "missingIconsCache" in p && t(9, d = p.missingIconsCache), "iconsBaseUrl" in p && t(3, u = p.iconsBaseUrl);
|
|
837
837
|
}, i.$$.update = () => {
|
|
838
|
-
var p,
|
|
838
|
+
var p, q, b, g;
|
|
839
839
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
840
840
|
3640)
|
|
841
841
|
do
|
|
842
842
|
t(11, n--, n), t(4, h = f == null ? void 0 : f[n]), t(5, v = h ? u + h.replace(/ /g, "_") + ".svg" : void 0);
|
|
843
843
|
while (n > -1 && (!v || d.has(v)));
|
|
844
844
|
i.$$.dirty & /*feature*/
|
|
845
|
-
1 && t(6, r = ((
|
|
845
|
+
1 && t(6, r = ((q = (p = l.properties) == null ? void 0 : p.categories) == null ? void 0 : q.join(", ")) ?? ((g = (b = l.properties) == null ? void 0 : b.place_type_name) == null ? void 0 : g[0]) ?? l.place_type[0]);
|
|
846
846
|
}, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
|
|
847
847
|
l,
|
|
848
848
|
c,
|
|
@@ -861,9 +861,9 @@ function Yi(i, e, t) {
|
|
|
861
861
|
C
|
|
862
862
|
];
|
|
863
863
|
}
|
|
864
|
-
class
|
|
864
|
+
class Yi extends ye {
|
|
865
865
|
constructor(e) {
|
|
866
|
-
super(), _e(this, e,
|
|
866
|
+
super(), _e(this, e, Xi, Ji, Le, {
|
|
867
867
|
feature: 0,
|
|
868
868
|
selected: 1,
|
|
869
869
|
showPlaceType: 2,
|
|
@@ -872,11 +872,11 @@ class $i extends ye {
|
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function $i(i) {
|
|
876
876
|
let e;
|
|
877
877
|
return {
|
|
878
878
|
c() {
|
|
879
|
-
e =
|
|
879
|
+
e = R("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
|
|
880
880
|
},
|
|
881
881
|
m(t, n) {
|
|
882
882
|
A(t, e, n);
|
|
@@ -885,60 +885,60 @@ function en(i) {
|
|
|
885
885
|
i: U,
|
|
886
886
|
o: U,
|
|
887
887
|
d(t) {
|
|
888
|
-
t &&
|
|
888
|
+
t && O(e);
|
|
889
889
|
}
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
class
|
|
892
|
+
class en extends ye {
|
|
893
893
|
constructor(e) {
|
|
894
|
-
super(), _e(this, e, null,
|
|
894
|
+
super(), _e(this, e, null, $i, Le, {});
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function tn(i) {
|
|
898
898
|
let e, t;
|
|
899
899
|
return {
|
|
900
900
|
c() {
|
|
901
901
|
e = se("svg"), t = se("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
|
|
902
902
|
},
|
|
903
903
|
m(n, r) {
|
|
904
|
-
A(n, e, r),
|
|
904
|
+
A(n, e, r), k(e, t);
|
|
905
905
|
},
|
|
906
906
|
p: U,
|
|
907
907
|
i: U,
|
|
908
908
|
o: U,
|
|
909
909
|
d(n) {
|
|
910
|
-
n &&
|
|
910
|
+
n && O(e);
|
|
911
911
|
}
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
|
-
class
|
|
914
|
+
class nn extends ye {
|
|
915
915
|
constructor(e) {
|
|
916
|
-
super(), _e(this, e, null,
|
|
916
|
+
super(), _e(this, e, null, tn, Le, {});
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function rn(i) {
|
|
920
920
|
let e, t, n;
|
|
921
921
|
return {
|
|
922
922
|
c() {
|
|
923
923
|
e = se("svg"), t = se("circle"), n = se("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
|
|
924
924
|
},
|
|
925
925
|
m(r, l) {
|
|
926
|
-
A(r, e, l),
|
|
926
|
+
A(r, e, l), k(e, t), k(e, n);
|
|
927
927
|
},
|
|
928
928
|
p: U,
|
|
929
929
|
i: U,
|
|
930
930
|
o: U,
|
|
931
931
|
d(r) {
|
|
932
|
-
r &&
|
|
932
|
+
r && O(e);
|
|
933
933
|
}
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
class
|
|
936
|
+
class on extends ye {
|
|
937
937
|
constructor(e) {
|
|
938
|
-
super(), _e(this, e, null,
|
|
938
|
+
super(), _e(this, e, null, rn, Le, {});
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function sn(i, e, t) {
|
|
942
942
|
const n = e[1], r = e[0], l = n - r;
|
|
943
943
|
return i === n && t ? i : ((i - r) % l + l) % l + r;
|
|
944
944
|
}
|
|
@@ -946,18 +946,18 @@ function kt(i) {
|
|
|
946
946
|
const e = [...i];
|
|
947
947
|
return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
|
|
948
948
|
}
|
|
949
|
-
let
|
|
950
|
-
async function
|
|
949
|
+
let Ce;
|
|
950
|
+
async function an(i, e, t) {
|
|
951
951
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
952
952
|
for (const r of e ?? [])
|
|
953
953
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
954
954
|
if (r.type === "fixed")
|
|
955
955
|
return r.coordinates.join(",");
|
|
956
956
|
e: if (r.type === "client-geolocation") {
|
|
957
|
-
if (
|
|
958
|
-
if (!
|
|
957
|
+
if (Ce && r.cachedLocationExpiry && Ce.time + r.cachedLocationExpiry > Date.now()) {
|
|
958
|
+
if (!Ce.coords)
|
|
959
959
|
break e;
|
|
960
|
-
return
|
|
960
|
+
return Ce.coords;
|
|
961
961
|
}
|
|
962
962
|
let l;
|
|
963
963
|
try {
|
|
@@ -978,7 +978,7 @@ async function ln(i, e, t) {
|
|
|
978
978
|
}), l;
|
|
979
979
|
} catch {
|
|
980
980
|
} finally {
|
|
981
|
-
r.cachedLocationExpiry && (
|
|
981
|
+
r.cachedLocationExpiry && (Ce = {
|
|
982
982
|
time: Date.now(),
|
|
983
983
|
coords: l
|
|
984
984
|
});
|
|
@@ -992,8 +992,8 @@ async function ln(i, e, t) {
|
|
|
992
992
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
const
|
|
996
|
-
function
|
|
995
|
+
const ln = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, Mt = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Ct = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Wt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, zt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Rt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
|
|
996
|
+
function un(i) {
|
|
997
997
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
998
998
|
throw new Error("invalid format specified");
|
|
999
999
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1002,7 +1002,7 @@ function cn(i) {
|
|
|
1002
1002
|
i == "DD" && (d = `${r}° ${c}, ${l}° ${o}`);
|
|
1003
1003
|
const u = Math.floor(r), f = Math.floor(l), h = (r - u) * 60, v = (l - f) * 60;
|
|
1004
1004
|
if (i == "DM") {
|
|
1005
|
-
let _ =
|
|
1005
|
+
let _ = Dt(h, 3).toFixed(3).padStart(6, "0"), w = Dt(v, 3).toFixed(3).padStart(6, "0");
|
|
1006
1006
|
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${o}`;
|
|
1007
1007
|
}
|
|
1008
1008
|
if (i == "DMS") {
|
|
@@ -1015,22 +1015,22 @@ function cn(i) {
|
|
|
1015
1015
|
} else
|
|
1016
1016
|
throw new Error("no decimal coordinates to convert");
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Dt(i, e) {
|
|
1019
1019
|
const t = Math.pow(10, e);
|
|
1020
1020
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function ct(i, e) {
|
|
1023
1023
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1024
1024
|
let t = null, n = null, r = "", l = "", c = null, o = [], d = !1;
|
|
1025
|
-
if (
|
|
1025
|
+
if (ln.test(i))
|
|
1026
1026
|
throw new Error("invalid coordinate value");
|
|
1027
|
-
if (
|
|
1028
|
-
if (o =
|
|
1027
|
+
if (Mt.test(i))
|
|
1028
|
+
if (o = Mt.exec(i), d = We(o), d)
|
|
1029
1029
|
t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), c = "DM";
|
|
1030
1030
|
else
|
|
1031
1031
|
throw new Error("invalid coordinate format");
|
|
1032
|
-
else if (
|
|
1033
|
-
if (o =
|
|
1032
|
+
else if (Ct.test(i))
|
|
1033
|
+
if (o = Ct.exec(i), d = We(o), d) {
|
|
1034
1034
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
|
|
1035
1035
|
throw new Error("integer only coordinate provided");
|
|
1036
1036
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1038,18 +1038,18 @@ function dt(i, e) {
|
|
|
1038
1038
|
o[1] ? (r = o[1], l = o[5]) : o[4] && (r = o[4], l = o[8]);
|
|
1039
1039
|
} else
|
|
1040
1040
|
throw new Error("invalid decimal coordinate format");
|
|
1041
|
-
else if (
|
|
1042
|
-
if (o =
|
|
1041
|
+
else if (Wt.test(i))
|
|
1042
|
+
if (o = Wt.exec(i), d = We(o), d)
|
|
1043
1043
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[8]) : o[7] && (r = o[7], l = o[14]);
|
|
1044
1044
|
else
|
|
1045
1045
|
throw new Error("invalid DMS coordinates format");
|
|
1046
|
-
else if (
|
|
1047
|
-
if (o =
|
|
1046
|
+
else if (zt.test(i))
|
|
1047
|
+
if (o = zt.exec(i), d = We(o), d)
|
|
1048
1048
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, c = "DM"), o[6] && (t += o[6] / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
|
|
1049
1049
|
else
|
|
1050
1050
|
throw new Error("invalid DMS coordinates format");
|
|
1051
|
-
else if (
|
|
1052
|
-
if (o =
|
|
1051
|
+
else if (Rt.test(i)) {
|
|
1052
|
+
if (o = Rt.exec(i), d = We(o), o.filter((u) => u).length <= 5)
|
|
1053
1053
|
throw new Error("invalid coordinates format");
|
|
1054
1054
|
if (d)
|
|
1055
1055
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, c = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, c = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
|
|
@@ -1103,13 +1103,13 @@ function dt(i, e) {
|
|
|
1103
1103
|
decimalLongitude: n,
|
|
1104
1104
|
decimalCoordinates: `${t},${n}`,
|
|
1105
1105
|
originalFormat: c,
|
|
1106
|
-
closeEnough:
|
|
1107
|
-
toCoordinateFormat:
|
|
1106
|
+
closeEnough: cn,
|
|
1107
|
+
toCoordinateFormat: un
|
|
1108
1108
|
});
|
|
1109
1109
|
} else
|
|
1110
1110
|
throw new Error("coordinates pattern match failed");
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function We(i) {
|
|
1113
1113
|
if (!isNaN(i[0]))
|
|
1114
1114
|
return !1;
|
|
1115
1115
|
const e = [...i];
|
|
@@ -1128,28 +1128,28 @@ function ze(i) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
return !0;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Ot(i, e) {
|
|
1132
1132
|
const t = Math.abs(i - e);
|
|
1133
1133
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function cn(i) {
|
|
1136
1136
|
if (!i)
|
|
1137
1137
|
throw new Error("coords must be provided");
|
|
1138
1138
|
if (i.includes(",")) {
|
|
1139
1139
|
const e = i.split(",");
|
|
1140
1140
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1141
1141
|
throw new Error("coords are not valid decimals");
|
|
1142
|
-
return
|
|
1142
|
+
return Ot(this.decimalLatitude, Number(e[0])) && Ot(this.decimalLongitude, e[1]);
|
|
1143
1143
|
} else
|
|
1144
1144
|
throw new Error("coords being tested must be separated by a comma");
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const dn = Object.freeze({
|
|
1147
1147
|
DMS: "DMS",
|
|
1148
1148
|
DM: "DM",
|
|
1149
1149
|
DD: "DD"
|
|
1150
1150
|
});
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1151
|
+
ct.to = dn;
|
|
1152
|
+
const fn = [
|
|
1153
1153
|
{
|
|
1154
1154
|
verbatimCoordinates: "40.123, -74.123",
|
|
1155
1155
|
verbatimLatitude: "40.123",
|
|
@@ -1290,10 +1290,10 @@ const mn = [
|
|
|
1290
1290
|
verbatimLatitude: "40 7 22.8",
|
|
1291
1291
|
verbatimLongitude: "-74 7 22.8"
|
|
1292
1292
|
}
|
|
1293
|
-
],
|
|
1293
|
+
], mn = {
|
|
1294
1294
|
decimalLatitude: 40.123,
|
|
1295
1295
|
decimalLongitude: -74.123
|
|
1296
|
-
},
|
|
1296
|
+
}, gn = [
|
|
1297
1297
|
{
|
|
1298
1298
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1299
1299
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1378,7 +1378,7 @@ const mn = [
|
|
|
1378
1378
|
decimalLatitude: -18.4,
|
|
1379
1379
|
decimalLongitude: 22.75
|
|
1380
1380
|
}
|
|
1381
|
-
],
|
|
1381
|
+
], hn = [
|
|
1382
1382
|
{
|
|
1383
1383
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1384
1384
|
verbatimLatitude: "10.432342S",
|
|
@@ -1513,22 +1513,22 @@ const mn = [
|
|
|
1513
1513
|
decimalLongitude: 18.33453
|
|
1514
1514
|
}
|
|
1515
1515
|
];
|
|
1516
|
-
function
|
|
1516
|
+
function bn() {
|
|
1517
1517
|
const i = [];
|
|
1518
|
-
return
|
|
1519
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1520
|
-
}), [...i, ...
|
|
1521
|
-
}
|
|
1522
|
-
const
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1525
|
-
function
|
|
1518
|
+
return fn.forEach((e) => {
|
|
1519
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...mn });
|
|
1520
|
+
}), [...i, ...gn, ...hn];
|
|
1521
|
+
}
|
|
1522
|
+
const vn = bn();
|
|
1523
|
+
ct.formats = vn.map((i) => i.verbatimCoordinates);
|
|
1524
|
+
const Ln = ct;
|
|
1525
|
+
function It(i, e, t) {
|
|
1526
1526
|
const n = i.slice();
|
|
1527
|
-
return n[
|
|
1527
|
+
return n[86] = e[t], n[88] = t, n;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function Ut(i) {
|
|
1530
1530
|
let e, t;
|
|
1531
|
-
return e = new
|
|
1531
|
+
return e = new en({}), {
|
|
1532
1532
|
c() {
|
|
1533
1533
|
ge(e.$$.fragment);
|
|
1534
1534
|
},
|
|
@@ -1546,11 +1546,11 @@ function At(i) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function At(i) {
|
|
1550
1550
|
let e, t, n, r, l;
|
|
1551
|
-
return t = new
|
|
1551
|
+
return t = new nn({}), {
|
|
1552
1552
|
c() {
|
|
1553
|
-
e =
|
|
1553
|
+
e = R("button"), ge(t.$$.fragment), a(e, "type", "button"), a(
|
|
1554
1554
|
e,
|
|
1555
1555
|
"title",
|
|
1556
1556
|
/*reverseButtonTitle*/
|
|
@@ -1563,11 +1563,11 @@ function Bt(i) {
|
|
|
1563
1563
|
);
|
|
1564
1564
|
},
|
|
1565
1565
|
m(c, o) {
|
|
1566
|
-
A(c, e, o), ae(t, e, null), n = !0, r || (l =
|
|
1566
|
+
A(c, e, o), ae(t, e, null), n = !0, r || (l = V(
|
|
1567
1567
|
e,
|
|
1568
1568
|
"click",
|
|
1569
1569
|
/*click_handler_2*/
|
|
1570
|
-
i[
|
|
1570
|
+
i[70]
|
|
1571
1571
|
), r = !0);
|
|
1572
1572
|
},
|
|
1573
1573
|
p(c, o) {
|
|
@@ -1592,28 +1592,28 @@ function Bt(i) {
|
|
|
1592
1592
|
Q(t.$$.fragment, c), n = !1;
|
|
1593
1593
|
},
|
|
1594
1594
|
d(c) {
|
|
1595
|
-
c &&
|
|
1595
|
+
c && O(e), le(t), r = !1, l();
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1600
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, o =
|
|
1599
|
+
function _n(i) {
|
|
1600
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, o = Tt(
|
|
1601
1601
|
/*listFeatures*/
|
|
1602
1602
|
i[14]
|
|
1603
1603
|
);
|
|
1604
1604
|
const d = (u) => (
|
|
1605
1605
|
/*feature*/
|
|
1606
|
-
u[
|
|
1607
|
-
(u[
|
|
1608
|
-
u[
|
|
1606
|
+
u[86].id + /*feature*/
|
|
1607
|
+
(u[86].address ? "," + /*feature*/
|
|
1608
|
+
u[86].address : "")
|
|
1609
1609
|
);
|
|
1610
1610
|
for (let u = 0; u < o.length; u += 1) {
|
|
1611
|
-
let f =
|
|
1612
|
-
n.set(h, t[u] =
|
|
1611
|
+
let f = It(i, o, u), h = d(f);
|
|
1612
|
+
n.set(h, t[u] = Bt(h, f));
|
|
1613
1613
|
}
|
|
1614
1614
|
return {
|
|
1615
1615
|
c() {
|
|
1616
|
-
e =
|
|
1616
|
+
e = R("ul");
|
|
1617
1617
|
for (let u = 0; u < t.length; u += 1)
|
|
1618
1618
|
t[u].c();
|
|
1619
1619
|
a(e, "class", "options svelte-bz0zu3");
|
|
@@ -1623,26 +1623,26 @@ function yn(i) {
|
|
|
1623
1623
|
for (let h = 0; h < t.length; h += 1)
|
|
1624
1624
|
t[h] && t[h].m(e, null);
|
|
1625
1625
|
r = !0, l || (c = [
|
|
1626
|
-
|
|
1626
|
+
V(
|
|
1627
1627
|
e,
|
|
1628
1628
|
"mouseleave",
|
|
1629
1629
|
/*mouseleave_handler*/
|
|
1630
|
-
i[
|
|
1630
|
+
i[74]
|
|
1631
1631
|
),
|
|
1632
|
-
|
|
1632
|
+
V(
|
|
1633
1633
|
e,
|
|
1634
1634
|
"blur",
|
|
1635
1635
|
/*blur_handler_1*/
|
|
1636
|
-
i[
|
|
1636
|
+
i[75]
|
|
1637
1637
|
)
|
|
1638
1638
|
], l = !0);
|
|
1639
1639
|
},
|
|
1640
1640
|
p(u, f) {
|
|
1641
1641
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1642
|
-
17880064 && (o =
|
|
1642
|
+
17880064 && (o = Tt(
|
|
1643
1643
|
/*listFeatures*/
|
|
1644
1644
|
u[14]
|
|
1645
|
-
),
|
|
1645
|
+
), Ze(), t = Ai(t, f, d, 1, u, o, n, e, Ui, Bt, null, It), qe());
|
|
1646
1646
|
},
|
|
1647
1647
|
i(u) {
|
|
1648
1648
|
if (!r) {
|
|
@@ -1657,28 +1657,28 @@ function yn(i) {
|
|
|
1657
1657
|
r = !1;
|
|
1658
1658
|
},
|
|
1659
1659
|
d(u) {
|
|
1660
|
-
u &&
|
|
1660
|
+
u && O(e);
|
|
1661
1661
|
for (let f = 0; f < t.length; f += 1)
|
|
1662
1662
|
t[f].d();
|
|
1663
1663
|
l = !1, ue(c);
|
|
1664
1664
|
}
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function yn(i) {
|
|
1668
1668
|
let e, t, n, r, l, c;
|
|
1669
|
-
return t = new
|
|
1669
|
+
return t = new Qt({}), {
|
|
1670
1670
|
c() {
|
|
1671
|
-
e =
|
|
1671
|
+
e = R("div"), ge(t.$$.fragment), n = X(), r = R("div"), l = me(
|
|
1672
1672
|
/*noResultsMessage*/
|
|
1673
1673
|
i[7]
|
|
1674
1674
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1675
1675
|
},
|
|
1676
1676
|
m(o, d) {
|
|
1677
|
-
A(o, e, d), ae(t, e, null),
|
|
1677
|
+
A(o, e, d), ae(t, e, null), k(e, n), k(e, r), k(r, l), c = !0;
|
|
1678
1678
|
},
|
|
1679
1679
|
p(o, d) {
|
|
1680
1680
|
(!c || d[0] & /*noResultsMessage*/
|
|
1681
|
-
128) &&
|
|
1681
|
+
128) && Re(
|
|
1682
1682
|
l,
|
|
1683
1683
|
/*noResultsMessage*/
|
|
1684
1684
|
o[7]
|
|
@@ -1691,11 +1691,11 @@ function wn(i) {
|
|
|
1691
1691
|
Q(t.$$.fragment, o), c = !1;
|
|
1692
1692
|
},
|
|
1693
1693
|
d(o) {
|
|
1694
|
-
o &&
|
|
1694
|
+
o && O(e), le(t);
|
|
1695
1695
|
}
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function wn(i) {
|
|
1699
1699
|
let e = "", t;
|
|
1700
1700
|
return {
|
|
1701
1701
|
c() {
|
|
@@ -1708,30 +1708,30 @@ function En(i) {
|
|
|
1708
1708
|
i: U,
|
|
1709
1709
|
o: U,
|
|
1710
1710
|
d(n) {
|
|
1711
|
-
n &&
|
|
1711
|
+
n && O(t);
|
|
1712
1712
|
}
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function En(i) {
|
|
1716
1716
|
let e, t, n, r, l, c, o, d, u, f, h;
|
|
1717
|
-
return t = new
|
|
1717
|
+
return t = new Qt({}), d = new Gt({}), {
|
|
1718
1718
|
c() {
|
|
1719
|
-
e =
|
|
1719
|
+
e = R("div"), ge(t.$$.fragment), n = X(), r = R("div"), l = me(
|
|
1720
1720
|
/*errorMessage*/
|
|
1721
1721
|
i[6]
|
|
1722
|
-
), c = X(), o =
|
|
1722
|
+
), c = X(), o = R("button"), ge(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1723
1723
|
},
|
|
1724
1724
|
m(v, _) {
|
|
1725
|
-
A(v, e, _), ae(t, e, null),
|
|
1725
|
+
A(v, e, _), ae(t, e, null), k(e, n), k(e, r), k(r, l), k(e, c), k(e, o), ae(d, o, null), u = !0, f || (h = V(
|
|
1726
1726
|
o,
|
|
1727
1727
|
"click",
|
|
1728
1728
|
/*click_handler_3*/
|
|
1729
|
-
i[
|
|
1729
|
+
i[71]
|
|
1730
1730
|
), f = !0);
|
|
1731
1731
|
},
|
|
1732
1732
|
p(v, _) {
|
|
1733
1733
|
(!u || _[0] & /*errorMessage*/
|
|
1734
|
-
64) &&
|
|
1734
|
+
64) && Re(
|
|
1735
1735
|
l,
|
|
1736
1736
|
/*errorMessage*/
|
|
1737
1737
|
v[6]
|
|
@@ -1744,35 +1744,35 @@ function Sn(i) {
|
|
|
1744
1744
|
Q(t.$$.fragment, v), Q(d.$$.fragment, v), u = !1;
|
|
1745
1745
|
},
|
|
1746
1746
|
d(v) {
|
|
1747
|
-
v &&
|
|
1747
|
+
v && O(e), le(t), le(d), f = !1, h();
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function Bt(i, e) {
|
|
1752
1752
|
let t, n, r;
|
|
1753
1753
|
function l() {
|
|
1754
1754
|
return (
|
|
1755
1755
|
/*mouseenter_handler*/
|
|
1756
|
-
e[
|
|
1756
|
+
e[72](
|
|
1757
1757
|
/*i*/
|
|
1758
|
-
e[
|
|
1758
|
+
e[88]
|
|
1759
1759
|
)
|
|
1760
1760
|
);
|
|
1761
1761
|
}
|
|
1762
1762
|
function c() {
|
|
1763
1763
|
return (
|
|
1764
1764
|
/*focus_handler_1*/
|
|
1765
|
-
e[
|
|
1765
|
+
e[73](
|
|
1766
1766
|
/*feature*/
|
|
1767
|
-
e[
|
|
1767
|
+
e[86]
|
|
1768
1768
|
)
|
|
1769
1769
|
);
|
|
1770
1770
|
}
|
|
1771
|
-
return n = new
|
|
1771
|
+
return n = new Yi({
|
|
1772
1772
|
props: {
|
|
1773
1773
|
feature: (
|
|
1774
1774
|
/*feature*/
|
|
1775
|
-
e[
|
|
1775
|
+
e[86]
|
|
1776
1776
|
),
|
|
1777
1777
|
showPlaceType: (
|
|
1778
1778
|
/*showPlaceType*/
|
|
@@ -1781,7 +1781,7 @@ function Ft(i, e) {
|
|
|
1781
1781
|
selected: (
|
|
1782
1782
|
/*selectedItemIndex*/
|
|
1783
1783
|
e[15] === /*i*/
|
|
1784
|
-
e[
|
|
1784
|
+
e[88]
|
|
1785
1785
|
),
|
|
1786
1786
|
missingIconsCache: (
|
|
1787
1787
|
/*missingIconsCache*/
|
|
@@ -1796,7 +1796,7 @@ function Ft(i, e) {
|
|
|
1796
1796
|
key: i,
|
|
1797
1797
|
first: null,
|
|
1798
1798
|
c() {
|
|
1799
|
-
t =
|
|
1799
|
+
t = Ni(), ge(n.$$.fragment), this.first = t;
|
|
1800
1800
|
},
|
|
1801
1801
|
m(o, d) {
|
|
1802
1802
|
A(o, t, d), ae(n, o, d), r = !0;
|
|
@@ -1806,12 +1806,12 @@ function Ft(i, e) {
|
|
|
1806
1806
|
const u = {};
|
|
1807
1807
|
d[0] & /*listFeatures*/
|
|
1808
1808
|
16384 && (u.feature = /*feature*/
|
|
1809
|
-
e[
|
|
1809
|
+
e[86]), d[0] & /*showPlaceType*/
|
|
1810
1810
|
1024 && (u.showPlaceType = /*showPlaceType*/
|
|
1811
1811
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1812
1812
|
49152 && (u.selected = /*selectedItemIndex*/
|
|
1813
1813
|
e[15] === /*i*/
|
|
1814
|
-
e[
|
|
1814
|
+
e[88]), d[0] & /*iconsBaseUrl*/
|
|
1815
1815
|
4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1816
1816
|
e[12]), n.$set(u);
|
|
1817
1817
|
},
|
|
@@ -1822,30 +1822,30 @@ function Ft(i, e) {
|
|
|
1822
1822
|
Q(n.$$.fragment, o), r = !1;
|
|
1823
1823
|
},
|
|
1824
1824
|
d(o) {
|
|
1825
|
-
o &&
|
|
1825
|
+
o && O(t), le(n, o);
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1830
|
-
let e, t, n, r, l, c, o, d, u, f, h, v, _, w, W, y, E, C, z, p,
|
|
1831
|
-
l = new
|
|
1829
|
+
function Sn(i) {
|
|
1830
|
+
let e, t, n, r, l, c, o, d, u, f, h, v, _, w, W, y, E, C, z, p, q, b = !1;
|
|
1831
|
+
l = new on({}), h = new Gt({});
|
|
1832
1832
|
let g = (
|
|
1833
1833
|
/*abortController*/
|
|
1834
|
-
i[19] &&
|
|
1834
|
+
i[19] && Ut()
|
|
1835
1835
|
), m = (
|
|
1836
1836
|
/*enableReverse*/
|
|
1837
|
-
i[5] === !0 &&
|
|
1837
|
+
i[5] === !0 && At(i)
|
|
1838
1838
|
);
|
|
1839
|
-
const
|
|
1839
|
+
const M = (
|
|
1840
1840
|
/*#slots*/
|
|
1841
|
-
i[
|
|
1842
|
-
), j =
|
|
1843
|
-
|
|
1841
|
+
i[62].default
|
|
1842
|
+
), j = Ei(
|
|
1843
|
+
M,
|
|
1844
1844
|
i,
|
|
1845
1845
|
/*$$scope*/
|
|
1846
|
-
i[
|
|
1846
|
+
i[61],
|
|
1847
1847
|
null
|
|
1848
|
-
), Y = [
|
|
1848
|
+
), Y = [En, wn, yn, _n], te = [];
|
|
1849
1849
|
function B(L, F) {
|
|
1850
1850
|
var ie, we;
|
|
1851
1851
|
return (
|
|
@@ -1865,7 +1865,7 @@ function pn(i) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
return ~(y = B(i)) && (E = te[y] = Y[y](i)), {
|
|
1867
1867
|
c() {
|
|
1868
|
-
e = X(), t =
|
|
1868
|
+
e = X(), t = R("form"), n = R("div"), r = R("button"), ge(l.$$.fragment), c = X(), o = R("input"), d = X(), u = R("div"), f = R("button"), ge(h.$$.fragment), v = X(), g && g.c(), _ = X(), m && m.c(), w = X(), j && j.c(), W = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
1869
1869
|
o,
|
|
1870
1870
|
"placeholder",
|
|
1871
1871
|
/*placeholder*/
|
|
@@ -1885,7 +1885,7 @@ function pn(i) {
|
|
|
1885
1885
|
"displayable",
|
|
1886
1886
|
/*searchValue*/
|
|
1887
1887
|
i[1] !== ""
|
|
1888
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C =
|
|
1888
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = wt(
|
|
1889
1889
|
/*className*/
|
|
1890
1890
|
i[2]
|
|
1891
1891
|
) + " svelte-bz0zu3"), fe(
|
|
@@ -1897,54 +1897,54 @@ function pn(i) {
|
|
|
1897
1897
|
);
|
|
1898
1898
|
},
|
|
1899
1899
|
m(L, F) {
|
|
1900
|
-
A(L, e, F), A(L, t, F),
|
|
1900
|
+
A(L, e, F), A(L, t, F), k(t, n), k(n, r), ae(l, r, null), k(n, c), k(n, o), i[64](o), Et(
|
|
1901
1901
|
o,
|
|
1902
1902
|
/*searchValue*/
|
|
1903
1903
|
i[1]
|
|
1904
|
-
),
|
|
1905
|
-
|
|
1904
|
+
), k(n, d), k(n, u), k(u, f), ae(h, f, null), k(u, v), g && g.m(u, null), k(n, _), m && m.m(n, null), k(n, w), j && j.m(n, null), k(t, W), ~y && te[y].m(t, null), z = !0, p || (q = [
|
|
1905
|
+
V(
|
|
1906
1906
|
r,
|
|
1907
1907
|
"click",
|
|
1908
1908
|
/*click_handler*/
|
|
1909
|
-
i[
|
|
1909
|
+
i[63]
|
|
1910
1910
|
),
|
|
1911
|
-
|
|
1911
|
+
V(
|
|
1912
1912
|
o,
|
|
1913
1913
|
"input",
|
|
1914
1914
|
/*input_1_input_handler*/
|
|
1915
|
-
i[
|
|
1915
|
+
i[65]
|
|
1916
1916
|
),
|
|
1917
|
-
|
|
1917
|
+
V(
|
|
1918
1918
|
o,
|
|
1919
1919
|
"focus",
|
|
1920
1920
|
/*focus_handler*/
|
|
1921
|
-
i[
|
|
1921
|
+
i[66]
|
|
1922
1922
|
),
|
|
1923
|
-
|
|
1923
|
+
V(
|
|
1924
1924
|
o,
|
|
1925
1925
|
"blur",
|
|
1926
1926
|
/*blur_handler*/
|
|
1927
|
-
i[
|
|
1927
|
+
i[67]
|
|
1928
1928
|
),
|
|
1929
|
-
|
|
1929
|
+
V(
|
|
1930
1930
|
o,
|
|
1931
1931
|
"keydown",
|
|
1932
1932
|
/*handleKeyDown*/
|
|
1933
1933
|
i[22]
|
|
1934
1934
|
),
|
|
1935
|
-
|
|
1935
|
+
V(
|
|
1936
1936
|
o,
|
|
1937
1937
|
"input",
|
|
1938
1938
|
/*input_handler*/
|
|
1939
|
-
i[
|
|
1939
|
+
i[68]
|
|
1940
1940
|
),
|
|
1941
|
-
|
|
1941
|
+
V(
|
|
1942
1942
|
f,
|
|
1943
1943
|
"click",
|
|
1944
1944
|
/*click_handler_1*/
|
|
1945
|
-
i[
|
|
1945
|
+
i[69]
|
|
1946
1946
|
),
|
|
1947
|
-
|
|
1947
|
+
V(t, "submit", ki(
|
|
1948
1948
|
/*handleSubmit*/
|
|
1949
1949
|
i[21]
|
|
1950
1950
|
))
|
|
@@ -1965,7 +1965,7 @@ function pn(i) {
|
|
|
1965
1965
|
L[8]
|
|
1966
1966
|
), F[0] & /*searchValue*/
|
|
1967
1967
|
2 && o.value !== /*searchValue*/
|
|
1968
|
-
L[1] &&
|
|
1968
|
+
L[1] && Et(
|
|
1969
1969
|
o,
|
|
1970
1970
|
/*searchValue*/
|
|
1971
1971
|
L[1]
|
|
@@ -1977,7 +1977,7 @@ function pn(i) {
|
|
|
1977
1977
|
L[3]
|
|
1978
1978
|
), /*abortController*/
|
|
1979
1979
|
L[19] ? g ? F[0] & /*abortController*/
|
|
1980
|
-
524288 && H(g, 1) : (g =
|
|
1980
|
+
524288 && H(g, 1) : (g = Ut(), g.c(), H(g, 1), g.m(u, null)) : g && (Ze(), Q(g, 1, 1, () => {
|
|
1981
1981
|
g = null;
|
|
1982
1982
|
}), qe()), (!z || F[0] & /*searchValue*/
|
|
1983
1983
|
2) && fe(
|
|
@@ -1987,32 +1987,32 @@ function pn(i) {
|
|
|
1987
1987
|
L[1] !== ""
|
|
1988
1988
|
), /*enableReverse*/
|
|
1989
1989
|
L[5] === !0 ? m ? (m.p(L, F), F[0] & /*enableReverse*/
|
|
1990
|
-
32 && H(m, 1)) : (m =
|
|
1990
|
+
32 && H(m, 1)) : (m = At(L), m.c(), H(m, 1), m.m(n, w)) : m && (Ze(), Q(m, 1, 1, () => {
|
|
1991
1991
|
m = null;
|
|
1992
|
-
}), qe()), j && j.p && (!z || F[
|
|
1993
|
-
|
|
1992
|
+
}), qe()), j && j.p && (!z || F[1] & /*$$scope*/
|
|
1993
|
+
1073741824) && pi(
|
|
1994
1994
|
j,
|
|
1995
|
-
|
|
1995
|
+
M,
|
|
1996
1996
|
L,
|
|
1997
1997
|
/*$$scope*/
|
|
1998
|
-
L[
|
|
1999
|
-
z ?
|
|
2000
|
-
|
|
1998
|
+
L[61],
|
|
1999
|
+
z ? Si(
|
|
2000
|
+
M,
|
|
2001
2001
|
/*$$scope*/
|
|
2002
|
-
L[
|
|
2002
|
+
L[61],
|
|
2003
2003
|
F,
|
|
2004
2004
|
null
|
|
2005
|
-
) :
|
|
2005
|
+
) : Ti(
|
|
2006
2006
|
/*$$scope*/
|
|
2007
|
-
L[
|
|
2007
|
+
L[61]
|
|
2008
2008
|
),
|
|
2009
2009
|
null
|
|
2010
2010
|
);
|
|
2011
2011
|
let ie = y;
|
|
2012
|
-
y = B(L), y === ie ? ~y && te[y].p(L, F) : (E && (
|
|
2012
|
+
y = B(L), y === ie ? ~y && te[y].p(L, F) : (E && (Ze(), Q(te[ie], 1, 1, () => {
|
|
2013
2013
|
te[ie] = null;
|
|
2014
2014
|
}), qe()), ~y ? (E = te[y], E ? E.p(L, F) : (E = te[y] = Y[y](L), E.c()), H(E, 1), E.m(t, null)) : E = null), (!z || F[0] & /*className*/
|
|
2015
|
-
4 && C !== (C =
|
|
2015
|
+
4 && C !== (C = wt(
|
|
2016
2016
|
/*className*/
|
|
2017
2017
|
L[2]
|
|
2018
2018
|
) + " svelte-bz0zu3")) && a(t, "class", C), (!z || F[0] & /*className, collapsed, searchValue*/
|
|
@@ -2031,11 +2031,11 @@ function pn(i) {
|
|
|
2031
2031
|
Q(b), Q(l.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(j, L), Q(E), z = !1;
|
|
2032
2032
|
},
|
|
2033
2033
|
d(L) {
|
|
2034
|
-
L && (
|
|
2034
|
+
L && (O(e), O(t)), le(l), i[64](null), le(h), g && g.d(), m && m.d(), j && j.d(L), ~y && te[y].d(), p = !1, ue(q);
|
|
2035
2035
|
}
|
|
2036
2036
|
};
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function pn(i, e, t) {
|
|
2039
2039
|
let n, { $$slots: r = {}, $$scope: l } = e;
|
|
2040
2040
|
const c = {
|
|
2041
2041
|
continental_marine: 4,
|
|
@@ -2061,76 +2061,76 @@ function Tn(i, e, t) {
|
|
|
2061
2061
|
"poi.restaurant": 18,
|
|
2062
2062
|
"poi.aerodrome": 13
|
|
2063
2063
|
};
|
|
2064
|
-
let { class: o = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: z = !0 } = e, { language: p = void 0 } = e, { limit:
|
|
2064
|
+
let { class: o = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: z = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: M = "Search" } = e, { proximity: j = [{ type: "server-geolocation" }] } = e, { reverseActive: Y = W === "always" } = e, { reverseButtonTitle: te = "toggle reverse geocoding" } = e, { searchValue: B = "" } = e, { pickedResultStyle: L = "full-geometry" } = e, { showPlaceType: F = "if-needed" } = e, { showResultsWhileTyping: ie = !0 } = e, { autocompleteTimeout: we = void 0 } = e, { selectFirst: Ee = !0 } = e, { flyToSelected: Qe = !1 } = e, { markerOnSelected: Oe = !0 } = e, { types: he = void 0 } = e, { exhaustiveReverseGeocoding: Ke = !1 } = e, { excludeTypes: Ie = !1 } = e, { zoom: Ue = c } = e, { apiUrl: Ve = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: xe = {} } = e, { iconsBaseUrl: ft = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/" } = e, { adjustUrlQuery: Je = () => {
|
|
2065
2065
|
} } = e;
|
|
2066
2066
|
function Vt() {
|
|
2067
2067
|
ne.focus();
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function xt() {
|
|
2070
2070
|
ne.blur();
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2073
|
-
t(1, B = s), I ? (t(15,
|
|
2072
|
+
function mt(s, I = !0, Z = !1) {
|
|
2073
|
+
t(1, B = s), I ? (t(15, D = -1), ht()) : ($e(!Z, Z), setTimeout(() => {
|
|
2074
2074
|
ne.focus(), ne.select();
|
|
2075
2075
|
}));
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2078
|
-
t(14, N = void 0), t(
|
|
2077
|
+
function Jt() {
|
|
2078
|
+
t(14, N = void 0), t(57, S = void 0), t(15, D = -1);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2081
|
-
t(
|
|
2080
|
+
function Xt() {
|
|
2081
|
+
t(56, P = []), t(57, S = void 0);
|
|
2082
2082
|
}
|
|
2083
|
-
let
|
|
2084
|
-
const
|
|
2085
|
-
function
|
|
2083
|
+
let Se = !1, N, P, S, gt = "", ne, D = -1, re, Ae = [], be, ce, $, Be, Xe;
|
|
2084
|
+
const Yt = /* @__PURE__ */ new Set(), de = zi();
|
|
2085
|
+
function $t() {
|
|
2086
2086
|
return !!$;
|
|
2087
2087
|
}
|
|
2088
|
-
|
|
2088
|
+
Wi(() => {
|
|
2089
2089
|
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
|
|
2090
2090
|
});
|
|
2091
|
-
function
|
|
2091
|
+
function ht(s) {
|
|
2092
2092
|
if (ce && (window.clearTimeout(ce), ce = void 0), $) {
|
|
2093
|
-
window.clearTimeout($), t(
|
|
2093
|
+
window.clearTimeout($), t(58, $ = void 0), ke(B, { exact: !0 });
|
|
2094
2094
|
return;
|
|
2095
2095
|
}
|
|
2096
|
-
if (
|
|
2097
|
-
t(
|
|
2096
|
+
if (D > -1 && N)
|
|
2097
|
+
t(57, S = N[D]), t(1, B = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, re = void 0), t(56, P = void 0), t(15, D = -1);
|
|
2098
2098
|
else if (B) {
|
|
2099
|
-
const I = s ||
|
|
2099
|
+
const I = s || !Ye(B);
|
|
2100
2100
|
ke(B, { exact: !0 }).then(() => {
|
|
2101
|
-
t(
|
|
2101
|
+
t(56, P = N), t(57, S = void 0), I && ei();
|
|
2102
2102
|
}).catch((Z) => t(18, re = Z));
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function Ye(s) {
|
|
2106
2106
|
try {
|
|
2107
|
-
return
|
|
2107
|
+
return Ln(s, 6);
|
|
2108
2108
|
} catch {
|
|
2109
2109
|
return !1;
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
async function ke(s, { byId: I = !1, exact: Z = !1, appendSpace: ee = !1 } = {}) {
|
|
2113
2113
|
t(18, re = void 0), be == null || be.abort();
|
|
2114
|
-
const
|
|
2115
|
-
t(19, be =
|
|
2114
|
+
const x = new AbortController();
|
|
2115
|
+
t(19, be = x);
|
|
2116
2116
|
try {
|
|
2117
|
-
const T =
|
|
2118
|
-
if (p !== void 0 &&
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2117
|
+
const T = Ye(s), G = new URLSearchParams();
|
|
2118
|
+
if (p !== void 0 && G.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), he && G.set("types", he.join(",")), Ie && G.set("excludeTypes", String(Ie)), u && G.set("bbox", u.map((He) => He.toFixed(6)).join(",")), _ && G.set("country", Array.isArray(_) ? _.join(",") : _), !I && !T) {
|
|
2119
|
+
const He = await an(b, j, x);
|
|
2120
|
+
He && G.set("proximity", He), (Z || !ie) && G.set("autocomplete", "false"), G.set("fuzzyMatch", String(z));
|
|
2121
2121
|
}
|
|
2122
|
-
|
|
2123
|
-
const
|
|
2124
|
-
if (
|
|
2125
|
-
I ? (t(14, N = void 0), t(
|
|
2122
|
+
q !== void 0 && (Ke || !T || (he == null ? void 0 : he.length) === 1) && G.set("limit", String(q)), G.set("key", d), Je(G);
|
|
2123
|
+
const Fe = Ve + "/" + encodeURIComponent(T ? T.decimalLongitude + "," + T.decimalLatitude : s + (ee ? " " : "")) + ".json?" + G.toString();
|
|
2124
|
+
if (Fe === gt) {
|
|
2125
|
+
I ? (t(14, N = void 0), t(57, S = Ae[0])) : t(14, N = Ae);
|
|
2126
2126
|
return;
|
|
2127
2127
|
}
|
|
2128
|
-
|
|
2129
|
-
const
|
|
2130
|
-
if (!
|
|
2131
|
-
throw new Error(await
|
|
2132
|
-
const
|
|
2133
|
-
de("response", { url:
|
|
2128
|
+
gt = Fe;
|
|
2129
|
+
const tt = await fetch(Fe, { signal: x.signal, ...xe });
|
|
2130
|
+
if (!tt.ok)
|
|
2131
|
+
throw new Error(await tt.text());
|
|
2132
|
+
const it = await tt.json();
|
|
2133
|
+
de("response", { url: Fe, featureCollection: it }), I ? (t(14, N = void 0), t(57, S = it.features[0]), Ae = [S]) : (t(14, N = it.features.filter(E)), T && N.unshift({
|
|
2134
2134
|
type: "Feature",
|
|
2135
2135
|
properties: {},
|
|
2136
2136
|
id: "reverse_" + T.decimalLongitude + "_" + T.decimalLatitude,
|
|
@@ -2148,55 +2148,53 @@ function Tn(i, e, t) {
|
|
|
2148
2148
|
type: "Point",
|
|
2149
2149
|
coordinates: [T.decimalLongitude, T.decimalLatitude]
|
|
2150
2150
|
}
|
|
2151
|
-
}),
|
|
2151
|
+
}), Ae = N, T && ne.focus());
|
|
2152
2152
|
} catch (T) {
|
|
2153
2153
|
if (T && typeof T == "object" && "name" in T && T.name === "AbortError")
|
|
2154
2154
|
return;
|
|
2155
2155
|
throw T;
|
|
2156
2156
|
} finally {
|
|
2157
|
-
|
|
2157
|
+
x === be && t(19, be = void 0);
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2160
|
+
function ei() {
|
|
2161
2161
|
var ee;
|
|
2162
2162
|
if (!(P != null && P.length) || !C)
|
|
2163
2163
|
return;
|
|
2164
|
-
const s = [180, 90, -180, -90], I = !P.some((
|
|
2164
|
+
const s = [180, 90, -180, -90], I = !P.some((x) => !x.matching_text);
|
|
2165
2165
|
let Z;
|
|
2166
|
-
for (const
|
|
2167
|
-
const T =
|
|
2168
|
-
if (Z =
|
|
2169
|
-
for (const
|
|
2170
|
-
s[
|
|
2166
|
+
for (const x of P) {
|
|
2167
|
+
const T = Me(x);
|
|
2168
|
+
if (Z = Z === void 0 ? T : T === void 0 ? Z : Math.max(Z, T), I || !x.matching_text)
|
|
2169
|
+
for (const G of [0, 1, 2, 3])
|
|
2170
|
+
s[G] = Math[G < 2 ? "min" : "max"](s[G], ((ee = x.bbox) == null ? void 0 : ee[G]) ?? x.center[G % 2]);
|
|
2171
2171
|
}
|
|
2172
|
-
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center,
|
|
2172
|
+
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(kt(s), 50, Z));
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function Me(s) {
|
|
2175
2175
|
var Z;
|
|
2176
2176
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2177
2177
|
return;
|
|
2178
|
-
if (typeof Se == "number")
|
|
2179
|
-
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Ae : Se;
|
|
2180
2178
|
const I = s.id.replace(/\..*/, "");
|
|
2181
2179
|
return (Array.isArray((Z = s.properties) == null ? void 0 : Z.categories) ? s.properties.categories.reduce(
|
|
2182
|
-
(ee,
|
|
2183
|
-
const T =
|
|
2180
|
+
(ee, x) => {
|
|
2181
|
+
const T = Ue[I + "." + x];
|
|
2184
2182
|
return ee === void 0 ? T : T === void 0 ? ee : Math.max(ee, T);
|
|
2185
2183
|
},
|
|
2186
2184
|
void 0
|
|
2187
|
-
) : void 0) ??
|
|
2185
|
+
) : void 0) ?? Ue[I];
|
|
2188
2186
|
}
|
|
2189
|
-
function
|
|
2190
|
-
t(0, Y = W === "always"), t(14, N = void 0), t(
|
|
2187
|
+
function ti(s) {
|
|
2188
|
+
t(0, Y = W === "always"), t(14, N = void 0), t(57, S = void 0), t(15, D = -1), mt(s[1].toFixed(6) + ", " + sn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2191
2189
|
}
|
|
2192
|
-
function
|
|
2190
|
+
function ii(s) {
|
|
2193
2191
|
if (!N)
|
|
2194
2192
|
return;
|
|
2195
2193
|
let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2196
|
-
I && (
|
|
2194
|
+
I && (D === (Ee ? 0 : -1) && I === -1 && t(15, D = N.length), t(15, D += I), D >= N.length && t(15, D = -1), D < 0 && Ee && t(15, D = 0), s.preventDefault());
|
|
2197
2195
|
}
|
|
2198
|
-
function
|
|
2199
|
-
if (t(18, re = void 0), ce && (window.clearTimeout(ce), ce = void 0), $ && (window.clearTimeout($), t(
|
|
2196
|
+
function $e(s = !0, I = !1) {
|
|
2197
|
+
if (t(18, re = void 0), ce && (window.clearTimeout(ce), ce = void 0), $ && (window.clearTimeout($), t(58, $ = void 0)), !ie && !I || B.length < g) {
|
|
2200
2198
|
t(14, N = void 0);
|
|
2201
2199
|
return;
|
|
2202
2200
|
}
|
|
@@ -2206,88 +2204,88 @@ function Tn(i, e, t) {
|
|
|
2206
2204
|
ce = void 0, ke(Z).catch((ee) => t(18, re = ee));
|
|
2207
2205
|
},
|
|
2208
2206
|
s ? w : 0
|
|
2209
|
-
), B.endsWith(" ") || t(
|
|
2207
|
+
), B.endsWith(" ") || t(58, $ = window.setTimeout(
|
|
2210
2208
|
() => {
|
|
2211
|
-
t(
|
|
2209
|
+
t(58, $ = void 0), ke(Z, { appendSpace: !0 }).catch((ee) => t(18, re = ee));
|
|
2212
2210
|
},
|
|
2213
2211
|
we
|
|
2214
2212
|
));
|
|
2215
2213
|
}
|
|
2216
|
-
function
|
|
2217
|
-
t(
|
|
2214
|
+
function et(s) {
|
|
2215
|
+
t(57, S = s), t(1, B = s.place_name), t(15, D = -1);
|
|
2218
2216
|
}
|
|
2219
|
-
const
|
|
2220
|
-
function
|
|
2221
|
-
|
|
2217
|
+
const ni = () => ne.focus();
|
|
2218
|
+
function ri(s) {
|
|
2219
|
+
at[s ? "unshift" : "push"](() => {
|
|
2222
2220
|
ne = s, t(17, ne);
|
|
2223
2221
|
});
|
|
2224
2222
|
}
|
|
2225
|
-
function
|
|
2226
|
-
B = this.value, t(1, B), t(13,
|
|
2223
|
+
function oi() {
|
|
2224
|
+
B = this.value, t(1, B), t(13, Se), t(28, h);
|
|
2227
2225
|
}
|
|
2228
|
-
const
|
|
2226
|
+
const si = () => t(13, Se = !0), ai = () => t(13, Se = !1), li = () => $e(), ui = () => {
|
|
2229
2227
|
t(1, B = ""), ne.focus();
|
|
2230
|
-
},
|
|
2231
|
-
Ee || t(15,
|
|
2232
|
-
},
|
|
2228
|
+
}, ci = () => t(0, Y = !Y), di = () => t(18, re = void 0), fi = (s) => t(15, D = s), mi = (s) => et(s), gi = () => {
|
|
2229
|
+
Ee || t(15, D = -1);
|
|
2230
|
+
}, hi = () => {
|
|
2233
2231
|
};
|
|
2234
2232
|
return i.$$set = (s) => {
|
|
2235
|
-
"class" in s && t(2, o = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, z = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35,
|
|
2233
|
+
"class" in s && t(2, o = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, z = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, M = s.placeholder), "proximity" in s && t(38, j = s.proximity), "reverseActive" in s && t(0, Y = s.reverseActive), "reverseButtonTitle" in s && t(9, te = s.reverseButtonTitle), "searchValue" in s && t(1, B = s.searchValue), "pickedResultStyle" in s && t(39, L = s.pickedResultStyle), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, ie = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(41, we = s.autocompleteTimeout), "selectFirst" in s && t(11, Ee = s.selectFirst), "flyToSelected" in s && t(42, Qe = s.flyToSelected), "markerOnSelected" in s && t(43, Oe = s.markerOnSelected), "types" in s && t(44, he = s.types), "exhaustiveReverseGeocoding" in s && t(45, Ke = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(46, Ie = s.excludeTypes), "zoom" in s && t(47, Ue = s.zoom), "apiUrl" in s && t(48, Ve = s.apiUrl), "fetchParameters" in s && t(49, xe = s.fetchParameters), "iconsBaseUrl" in s && t(12, ft = s.iconsBaseUrl), "adjustUrlQuery" in s && t(50, Je = s.adjustUrlQuery), "$$scope" in s && t(61, l = s.$$scope);
|
|
2236
2234
|
}, i.$$.update = () => {
|
|
2237
2235
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2238
2236
|
32 && t(0, Y = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2239
2237
|
268443648 && setTimeout(() => {
|
|
2240
|
-
t(16,
|
|
2238
|
+
t(16, Be = Se), h && !Se && t(1, B = "");
|
|
2241
2239
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2242
2240
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2243
|
-
64 && B.length < g && (t(
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
18432 && Ee && N != null && N.length && (
|
|
2247
|
-
2 && t(15,
|
|
2241
|
+
64 && B.length < g && (t(57, S = void 0), t(14, N = void 0), t(18, re = void 0), t(56, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
|
|
2242
|
+
67109120 && L !== "marker-only" && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && ke(S.id, { byId: !0 }).catch((s) => t(18, re = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2243
|
+
335544354 && (b && S && S.id !== Xe && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(kt(S.bbox), 50, Me(S)), t(14, N = void 0), t(56, P = void 0), t(15, D = -1)), t(59, Xe = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2244
|
+
18432 && Ee && N != null && N.length && ($t() || t(15, D = 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2245
|
+
2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2248
2246
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2249
|
-
|
|
2247
|
+
33554432 && P !== N && t(56, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2250
2248
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2251
|
-
|
|
2249
|
+
33554464 && b && b.setEventHandler((s) => {
|
|
2252
2250
|
switch (s.type) {
|
|
2253
2251
|
case "mapClick":
|
|
2254
|
-
Y &&
|
|
2252
|
+
Y && ti(s.coordinates);
|
|
2255
2253
|
break;
|
|
2256
2254
|
case "markerClick":
|
|
2257
2255
|
{
|
|
2258
2256
|
const I = N == null ? void 0 : N.find((Z) => Z.id === s.id);
|
|
2259
|
-
I &&
|
|
2257
|
+
I && et(I);
|
|
2260
2258
|
}
|
|
2261
2259
|
break;
|
|
2262
2260
|
case "markerMouseEnter":
|
|
2263
|
-
P && t(15,
|
|
2261
|
+
P && t(15, D = Be ? (N == null ? void 0 : N.findIndex((I) => I.id === s.id)) ?? -1 : -1);
|
|
2264
2262
|
break;
|
|
2265
2263
|
case "markerMouseLeave":
|
|
2266
|
-
P && t(15,
|
|
2264
|
+
P && t(15, D = -1);
|
|
2267
2265
|
break;
|
|
2268
2266
|
}
|
|
2269
2267
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2270
|
-
49152 && t(
|
|
2271
|
-
|
|
2272
|
-
4128 && (
|
|
2273
|
-
|
|
2274
|
-
|
|
2268
|
+
49152 && t(60, n = N == null ? void 0 : N[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2269
|
+
536872994 && b && n && C && Qe && b.flyTo(n.center, Me(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2270
|
+
4128 && (Oe || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2271
|
+
570429472 && b && Oe && !P && (b.setMarkers(n ? [n] : void 0, void 0), b.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2272
|
+
100663328 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2275
2273
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2276
|
-
|
|
2277
|
-
|
|
2274
|
+
33554464 && P && b && b.setSelectedMarker(D), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
|
|
2275
|
+
671088640 && n && (window.clearTimeout($), t(58, $ = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2278
2276
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2279
2277
|
32 && b) {
|
|
2280
|
-
const s =
|
|
2278
|
+
const s = Ye(B);
|
|
2281
2279
|
b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2282
2280
|
}
|
|
2283
2281
|
i.$$.dirty[1] & /*selected*/
|
|
2284
|
-
|
|
2285
|
-
|
|
2282
|
+
536870912 && de("select", { feature: n }), i.$$.dirty[1] & /*picked*/
|
|
2283
|
+
67108864 && de("pick", { feature: S }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2286
2284
|
81920 && de("optionsvisibilitychange", {
|
|
2287
|
-
optionsVisible:
|
|
2285
|
+
optionsVisible: Be && !!N
|
|
2288
2286
|
}), i.$$.dirty[0] & /*listFeatures*/
|
|
2289
2287
|
16384 && de("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
|
|
2290
|
-
|
|
2288
|
+
33554432 && de("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
|
|
2291
2289
|
1 && de("reversetoggle", { reverse: Y }), i.$$.dirty[0] & /*searchValue*/
|
|
2292
2290
|
2 && de("querychange", { query: B }), i.$$.dirty[0] & /*reverseActive*/
|
|
2293
2291
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
@@ -2301,23 +2299,23 @@ function Tn(i, e, t) {
|
|
|
2301
2299
|
W,
|
|
2302
2300
|
y,
|
|
2303
2301
|
m,
|
|
2304
|
-
|
|
2302
|
+
M,
|
|
2305
2303
|
te,
|
|
2306
2304
|
F,
|
|
2307
2305
|
Ee,
|
|
2308
|
-
|
|
2309
|
-
|
|
2306
|
+
ft,
|
|
2307
|
+
Se,
|
|
2310
2308
|
N,
|
|
2311
|
-
|
|
2312
|
-
|
|
2309
|
+
D,
|
|
2310
|
+
Be,
|
|
2313
2311
|
ne,
|
|
2314
2312
|
re,
|
|
2315
2313
|
be,
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2314
|
+
Yt,
|
|
2315
|
+
ht,
|
|
2316
|
+
ii,
|
|
2317
|
+
$e,
|
|
2319
2318
|
et,
|
|
2320
|
-
tt,
|
|
2321
2319
|
c,
|
|
2322
2320
|
d,
|
|
2323
2321
|
u,
|
|
@@ -2328,35 +2326,35 @@ function Tn(i, e, t) {
|
|
|
2328
2326
|
C,
|
|
2329
2327
|
z,
|
|
2330
2328
|
p,
|
|
2331
|
-
|
|
2329
|
+
q,
|
|
2332
2330
|
b,
|
|
2333
2331
|
g,
|
|
2334
2332
|
j,
|
|
2335
2333
|
L,
|
|
2336
2334
|
ie,
|
|
2337
2335
|
we,
|
|
2338
|
-
|
|
2339
|
-
|
|
2336
|
+
Qe,
|
|
2337
|
+
Oe,
|
|
2340
2338
|
he,
|
|
2341
2339
|
Ke,
|
|
2340
|
+
Ie,
|
|
2342
2341
|
Ue,
|
|
2343
|
-
Se,
|
|
2344
|
-
Ae,
|
|
2345
2342
|
Ve,
|
|
2343
|
+
xe,
|
|
2346
2344
|
Je,
|
|
2347
|
-
Xe,
|
|
2348
2345
|
Vt,
|
|
2346
|
+
xt,
|
|
2347
|
+
mt,
|
|
2349
2348
|
Jt,
|
|
2350
|
-
gt,
|
|
2351
2349
|
Xt,
|
|
2352
|
-
Yt,
|
|
2353
2350
|
P,
|
|
2354
2351
|
S,
|
|
2355
2352
|
$,
|
|
2356
|
-
|
|
2353
|
+
Xe,
|
|
2357
2354
|
n,
|
|
2358
2355
|
l,
|
|
2359
2356
|
r,
|
|
2357
|
+
ni,
|
|
2360
2358
|
ri,
|
|
2361
2359
|
oi,
|
|
2362
2360
|
si,
|
|
@@ -2368,17 +2366,16 @@ function Tn(i, e, t) {
|
|
|
2368
2366
|
fi,
|
|
2369
2367
|
mi,
|
|
2370
2368
|
gi,
|
|
2371
|
-
hi
|
|
2372
|
-
bi
|
|
2369
|
+
hi
|
|
2373
2370
|
];
|
|
2374
2371
|
}
|
|
2375
|
-
let
|
|
2372
|
+
let Tn = class extends ye {
|
|
2376
2373
|
constructor(e) {
|
|
2377
2374
|
super(), _e(
|
|
2378
2375
|
this,
|
|
2379
2376
|
e,
|
|
2380
|
-
Tn,
|
|
2381
2377
|
pn,
|
|
2378
|
+
Sn,
|
|
2382
2379
|
Le,
|
|
2383
2380
|
{
|
|
2384
2381
|
ZOOM_DEFAULTS: 25,
|
|
@@ -2405,7 +2402,7 @@ let Nn = class extends ye {
|
|
|
2405
2402
|
reverseActive: 0,
|
|
2406
2403
|
reverseButtonTitle: 9,
|
|
2407
2404
|
searchValue: 1,
|
|
2408
|
-
|
|
2405
|
+
pickedResultStyle: 39,
|
|
2409
2406
|
showPlaceType: 10,
|
|
2410
2407
|
showResultsWhileTyping: 40,
|
|
2411
2408
|
autocompleteTimeout: 41,
|
|
@@ -2416,16 +2413,15 @@ let Nn = class extends ye {
|
|
|
2416
2413
|
exhaustiveReverseGeocoding: 45,
|
|
2417
2414
|
excludeTypes: 46,
|
|
2418
2415
|
zoom: 47,
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
fetchParameters: 50,
|
|
2416
|
+
apiUrl: 48,
|
|
2417
|
+
fetchParameters: 49,
|
|
2422
2418
|
iconsBaseUrl: 12,
|
|
2423
|
-
adjustUrlQuery:
|
|
2424
|
-
focus:
|
|
2425
|
-
blur:
|
|
2426
|
-
setQuery:
|
|
2427
|
-
clearList:
|
|
2428
|
-
clearMap:
|
|
2419
|
+
adjustUrlQuery: 50,
|
|
2420
|
+
focus: 51,
|
|
2421
|
+
blur: 52,
|
|
2422
|
+
setQuery: 53,
|
|
2423
|
+
clearList: 54,
|
|
2424
|
+
clearMap: 55
|
|
2429
2425
|
},
|
|
2430
2426
|
null,
|
|
2431
2427
|
[-1, -1, -1]
|
|
@@ -2435,31 +2431,31 @@ let Nn = class extends ye {
|
|
|
2435
2431
|
return this.$$.ctx[25];
|
|
2436
2432
|
}
|
|
2437
2433
|
get focus() {
|
|
2438
|
-
return this.$$.ctx[
|
|
2434
|
+
return this.$$.ctx[51];
|
|
2439
2435
|
}
|
|
2440
2436
|
get blur() {
|
|
2441
|
-
return this.$$.ctx[
|
|
2437
|
+
return this.$$.ctx[52];
|
|
2442
2438
|
}
|
|
2443
2439
|
get setQuery() {
|
|
2444
|
-
return this.$$.ctx[
|
|
2440
|
+
return this.$$.ctx[53];
|
|
2445
2441
|
}
|
|
2446
2442
|
get clearList() {
|
|
2447
|
-
return this.$$.ctx[
|
|
2443
|
+
return this.$$.ctx[54];
|
|
2448
2444
|
}
|
|
2449
2445
|
get clearMap() {
|
|
2450
|
-
return this.$$.ctx[
|
|
2446
|
+
return this.$$.ctx[55];
|
|
2451
2447
|
}
|
|
2452
2448
|
};
|
|
2453
|
-
const
|
|
2449
|
+
const Nn = new FinalizationRegistry((i) => {
|
|
2454
2450
|
i.$destroy();
|
|
2455
2451
|
});
|
|
2456
|
-
var J,
|
|
2457
|
-
const
|
|
2452
|
+
var J, Ge, Kt;
|
|
2453
|
+
const dt = class dt extends EventTarget {
|
|
2458
2454
|
constructor({ target: t, ...n }) {
|
|
2459
2455
|
super();
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2456
|
+
ot(this, Ge);
|
|
2457
|
+
ot(this, J);
|
|
2458
|
+
vt(this, J, new Tn({
|
|
2463
2459
|
target: t,
|
|
2464
2460
|
props: n
|
|
2465
2461
|
}));
|
|
@@ -2474,14 +2470,14 @@ const ft = class ft extends EventTarget {
|
|
|
2474
2470
|
"querychange"
|
|
2475
2471
|
])
|
|
2476
2472
|
oe(this, J).$on(r, (l) => {
|
|
2477
|
-
|
|
2473
|
+
Lt(this, Ge, Kt).call(this, r, l.detail);
|
|
2478
2474
|
});
|
|
2479
2475
|
oe(this, J).$on("select", (r) => {
|
|
2480
2476
|
const l = new CustomEvent(r.type, {
|
|
2481
2477
|
detail: r.detail
|
|
2482
2478
|
});
|
|
2483
2479
|
this.dispatchEvent(l);
|
|
2484
|
-
}),
|
|
2480
|
+
}), Nn.register(this, oe(this, J));
|
|
2485
2481
|
}
|
|
2486
2482
|
setOptions(t) {
|
|
2487
2483
|
oe(this, J).$set(t);
|
|
@@ -2516,16 +2512,16 @@ const ft = class ft extends EventTarget {
|
|
|
2516
2512
|
return super.dispatchEvent(t);
|
|
2517
2513
|
}
|
|
2518
2514
|
};
|
|
2519
|
-
J = new WeakMap(),
|
|
2520
|
-
return
|
|
2515
|
+
J = new WeakMap(), Ge = new WeakSet(), Kt = function(t, n) {
|
|
2516
|
+
return _t(dt.prototype, this, "dispatchEvent").call(
|
|
2521
2517
|
this,
|
|
2522
2518
|
new CustomEvent(t, {
|
|
2523
2519
|
detail: n
|
|
2524
2520
|
})
|
|
2525
2521
|
);
|
|
2526
2522
|
};
|
|
2527
|
-
let
|
|
2523
|
+
let Ft = dt;
|
|
2528
2524
|
export {
|
|
2529
|
-
|
|
2525
|
+
Ft as GeocodingControl
|
|
2530
2526
|
};
|
|
2531
2527
|
//# sourceMappingURL=vanilla.js.map
|