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