@maptiler/geocoding-control 2.1.3-rc2 → 2.1.3
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/leaflet.js +914 -931
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +13 -13
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +911 -928
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +13 -13
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +912 -929
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +13 -13
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +932 -949
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +13 -13
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +642 -659
- package/react.js.map +1 -1
- package/react.umd.js +13 -13
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +17 -45
- package/svelte/GeocodingControl.svelte.d.ts +0 -1
- package/svelte/info.json +1 -1
- package/svelte/types.d.ts +0 -1
- package/types.d.ts +0 -1
- package/vanilla.js +770 -787
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +12 -12
- package/vanilla.umd.js.map +1 -1
package/vanilla.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var Bi = Object.defineProperty;
|
|
2
|
+
var Fi = Object.getPrototypeOf;
|
|
3
|
+
var ji = Reflect.get;
|
|
4
|
+
var Pt = (i) => {
|
|
5
5
|
throw TypeError(i);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var se = (i, e, t) => (
|
|
10
|
-
var
|
|
7
|
+
var Gi = (i, e, t) => e in i ? Bi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
8
|
+
var vt = (i, e, t) => Gi(i, typeof e != "symbol" ? e + "" : e, t), Lt = (i, e, t) => e.has(i) || Pt("Cannot " + t);
|
|
9
|
+
var se = (i, e, t) => (Lt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), _t = (i, e, t) => e.has(i) ? Pt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Bt = (i, e, t, n) => (Lt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), Ft = (i, e, t) => (Lt(i, e, "access private method"), t);
|
|
10
|
+
var jt = (i, e, t) => ji(Fi(i), t, e);
|
|
11
11
|
function P() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Hi(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 oi(i) {
|
|
21
21
|
return i();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Gt() {
|
|
24
24
|
return /* @__PURE__ */ Object.create(null);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
i.forEach(
|
|
26
|
+
function he(i) {
|
|
27
|
+
i.forEach(oi);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ai(i) {
|
|
30
30
|
return typeof i == "function";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Se(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 Y(i, e) {
|
|
37
|
+
return i === e ? !0 : (Je || (Je = document.createElement("a")), Je.href = e, i === Je.href);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Zi(i) {
|
|
40
40
|
return Object.keys(i).length === 0;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function qi(i, e, t, n) {
|
|
43
43
|
if (i) {
|
|
44
|
-
const r =
|
|
44
|
+
const r = li(i, e, t, n);
|
|
45
45
|
return i[0](r);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return i[1] && n ?
|
|
48
|
+
function li(i, e, t, n) {
|
|
49
|
+
return i[1] && n ? Hi(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Qi(i, e, t, n) {
|
|
52
52
|
return i[2], e.dirty;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ki(i, e, t, n, r, l) {
|
|
55
55
|
if (r) {
|
|
56
|
-
const c =
|
|
56
|
+
const c = li(e, t, n, l);
|
|
57
57
|
i.p(c, r);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Vi(i) {
|
|
61
61
|
if (i.ctx.length > 32) {
|
|
62
62
|
const e = [], t = i.ctx.length / 32;
|
|
63
63
|
for (let n = 0; n < t; n++)
|
|
@@ -66,37 +66,37 @@ function xi(i) {
|
|
|
66
66
|
}
|
|
67
67
|
return -1;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function it(i) {
|
|
70
70
|
return i ?? "";
|
|
71
71
|
}
|
|
72
72
|
function M(i, e) {
|
|
73
73
|
i.appendChild(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function I(i, e, t) {
|
|
76
76
|
i.insertBefore(e, t || null);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function U(i) {
|
|
79
79
|
i.parentNode && i.parentNode.removeChild(i);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function R(i) {
|
|
82
82
|
return document.createElement(i);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fe(i) {
|
|
85
85
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Le(i) {
|
|
88
88
|
return document.createTextNode(i);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function ee() {
|
|
91
|
+
return Le(" ");
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return
|
|
93
|
+
function Yi() {
|
|
94
|
+
return Le("");
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Z(i, e, t, n) {
|
|
97
97
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Xi(i) {
|
|
100
100
|
return function(e) {
|
|
101
101
|
return e.preventDefault(), i.call(this, e);
|
|
102
102
|
};
|
|
@@ -104,39 +104,39 @@ function en(i) {
|
|
|
104
104
|
function a(i, e, t) {
|
|
105
105
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ji(i) {
|
|
108
108
|
return Array.from(i.childNodes);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Fe(i, e) {
|
|
111
111
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
112
112
|
e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ht(i, e) {
|
|
115
115
|
i.value = e ?? "";
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Oe(i, e, t) {
|
|
118
118
|
i.classList.toggle(e, !!t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function xi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
121
121
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
122
122
|
}
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
|
|
123
|
+
let je;
|
|
124
|
+
function Be(i) {
|
|
125
|
+
je = i;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
if (!
|
|
129
|
-
return
|
|
127
|
+
function ui() {
|
|
128
|
+
if (!je) throw new Error("Function called outside component initialization");
|
|
129
|
+
return je;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function $i(i) {
|
|
132
|
+
ui().$$.on_destroy.push(i);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
const i =
|
|
134
|
+
function ci() {
|
|
135
|
+
const i = ui();
|
|
136
136
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
137
137
|
const r = i.$$.callbacks[e];
|
|
138
138
|
if (r) {
|
|
139
|
-
const l =
|
|
139
|
+
const l = xi(
|
|
140
140
|
/** @type {string} */
|
|
141
141
|
e,
|
|
142
142
|
t,
|
|
@@ -149,134 +149,134 @@ function mi() {
|
|
|
149
149
|
return !0;
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function en(i, e) {
|
|
153
153
|
const t = i.$$.callbacks[e.type];
|
|
154
154
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
|
|
156
|
+
const We = [], wt = [];
|
|
157
|
+
let ze = [];
|
|
158
|
+
const Zt = [], tn = /* @__PURE__ */ Promise.resolve();
|
|
159
|
+
let Et = !1;
|
|
160
|
+
function nn() {
|
|
161
|
+
Et || (Et = !0, tn.then(di));
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function St(i) {
|
|
164
|
+
ze.push(i);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
166
|
+
const yt = /* @__PURE__ */ new Set();
|
|
167
|
+
let Ce = 0;
|
|
168
|
+
function di() {
|
|
169
|
+
if (Ce !== 0)
|
|
170
170
|
return;
|
|
171
|
-
const i =
|
|
171
|
+
const i = je;
|
|
172
172
|
do {
|
|
173
173
|
try {
|
|
174
|
-
for (;
|
|
175
|
-
const e =
|
|
176
|
-
|
|
174
|
+
for (; Ce < We.length; ) {
|
|
175
|
+
const e = We[Ce];
|
|
176
|
+
Ce++, Be(e), rn(e.$$);
|
|
177
177
|
}
|
|
178
178
|
} catch (e) {
|
|
179
|
-
throw
|
|
179
|
+
throw We.length = 0, Ce = 0, e;
|
|
180
180
|
}
|
|
181
|
-
for (
|
|
182
|
-
for (let e = 0; e <
|
|
183
|
-
const t =
|
|
184
|
-
|
|
181
|
+
for (Be(null), We.length = 0, Ce = 0; wt.length; ) wt.pop()();
|
|
182
|
+
for (let e = 0; e < ze.length; e += 1) {
|
|
183
|
+
const t = ze[e];
|
|
184
|
+
yt.has(t) || (yt.add(t), t());
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
} while (
|
|
188
|
-
for (;
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
ze.length = 0;
|
|
187
|
+
} while (We.length);
|
|
188
|
+
for (; Zt.length; )
|
|
189
|
+
Zt.pop()();
|
|
190
|
+
Et = !1, yt.clear(), Be(i);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function rn(i) {
|
|
193
193
|
if (i.fragment !== null) {
|
|
194
|
-
i.update(),
|
|
194
|
+
i.update(), he(i.before_update);
|
|
195
195
|
const e = i.dirty;
|
|
196
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
196
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(St);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function sn(i) {
|
|
200
200
|
const e = [], t = [];
|
|
201
|
-
|
|
201
|
+
ze.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ze = e;
|
|
202
202
|
}
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
function
|
|
206
|
-
|
|
203
|
+
const $e = /* @__PURE__ */ new Set();
|
|
204
|
+
let Ee;
|
|
205
|
+
function et() {
|
|
206
|
+
Ee = {
|
|
207
207
|
r: 0,
|
|
208
208
|
c: [],
|
|
209
|
-
p:
|
|
209
|
+
p: Ee
|
|
210
210
|
// parent group
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
213
|
+
function tt() {
|
|
214
|
+
Ee.r || he(Ee.c), Ee = Ee.p;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
i && i.i && (
|
|
216
|
+
function j(i, e) {
|
|
217
|
+
i && i.i && ($e.delete(i), i.i(e));
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function q(i, e, t, n) {
|
|
220
220
|
if (i && i.o) {
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
if ($e.has(i)) return;
|
|
222
|
+
$e.add(i), Ee.c.push(() => {
|
|
223
|
+
$e.delete(i), n && (t && i.d(1), n());
|
|
224
224
|
}), i.o(e);
|
|
225
225
|
} else n && n();
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function qt(i) {
|
|
228
228
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
230
|
+
function on(i, e) {
|
|
231
|
+
q(i, 1, 1, () => {
|
|
232
232
|
e.delete(i.key);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function an(i, e, t, n, r, l, c, s, f, u, d, h) {
|
|
236
236
|
let v = i.length, y = l.length, E = v;
|
|
237
|
-
const
|
|
238
|
-
for (; E--; )
|
|
239
|
-
const
|
|
237
|
+
const O = {};
|
|
238
|
+
for (; E--; ) O[i[E].key] = E;
|
|
239
|
+
const p = [], S = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), C = [];
|
|
240
240
|
for (E = y; E--; ) {
|
|
241
241
|
const w = h(r, l, E), g = t(w);
|
|
242
242
|
let N = c.get(g);
|
|
243
|
-
N ? C.push(() => N.p(w, e)) : (N = u(g, w), N.c()), S.set(g,
|
|
243
|
+
N ? C.push(() => N.p(w, e)) : (N = u(g, w), N.c()), S.set(g, p[E] = N), g in O && W.set(g, Math.abs(E - O[g]));
|
|
244
244
|
}
|
|
245
|
-
const H = /* @__PURE__ */ new Set(),
|
|
246
|
-
function
|
|
247
|
-
|
|
245
|
+
const H = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Set();
|
|
246
|
+
function Q(w) {
|
|
247
|
+
j(w, 1), w.m(s, d), c.set(w.key, w), d = w.first, y--;
|
|
248
248
|
}
|
|
249
249
|
for (; v && y; ) {
|
|
250
|
-
const w =
|
|
251
|
-
w === g ? (d = w.first, v--, y--) : S.has(
|
|
250
|
+
const w = p[y - 1], g = i[v - 1], N = w.key, T = g.key;
|
|
251
|
+
w === g ? (d = w.first, v--, y--) : S.has(T) ? !c.has(N) || H.has(N) ? Q(w) : X.has(T) ? v-- : W.get(N) > W.get(T) ? (X.add(N), Q(w)) : (H.add(T), v--) : (f(g, c), v--);
|
|
252
252
|
}
|
|
253
253
|
for (; v--; ) {
|
|
254
254
|
const w = i[v];
|
|
255
255
|
S.has(w.key) || f(w, c);
|
|
256
256
|
}
|
|
257
|
-
for (; y; )
|
|
258
|
-
return
|
|
257
|
+
for (; y; ) Q(p[y - 1]);
|
|
258
|
+
return he(C), p;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function _e(i) {
|
|
261
261
|
i && i.c();
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function me(i, e, t) {
|
|
264
264
|
const { fragment: n, after_update: r } = i.$$;
|
|
265
|
-
n && n.m(e, t),
|
|
266
|
-
const l = i.$$.on_mount.map(
|
|
267
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...l) :
|
|
268
|
-
}), r.forEach(
|
|
265
|
+
n && n.m(e, t), St(() => {
|
|
266
|
+
const l = i.$$.on_mount.map(oi).filter(ai);
|
|
267
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...l) : he(l), i.$$.on_mount = [];
|
|
268
|
+
}), r.forEach(St);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function ge(i, e) {
|
|
271
271
|
const t = i.$$;
|
|
272
|
-
t.fragment !== null && (
|
|
272
|
+
t.fragment !== null && (sn(t.after_update), he(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
i.$$.dirty[0] === -1 && (
|
|
274
|
+
function ln(i, e) {
|
|
275
|
+
i.$$.dirty[0] === -1 && (We.push(i), nn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
const f =
|
|
279
|
-
|
|
277
|
+
function pe(i, e, t, n, r, l, c = null, s = [-1]) {
|
|
278
|
+
const f = je;
|
|
279
|
+
Be(i);
|
|
280
280
|
const u = i.$$ = {
|
|
281
281
|
fragment: null,
|
|
282
282
|
ctx: [],
|
|
@@ -284,7 +284,7 @@ function Ne(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
284
284
|
props: l,
|
|
285
285
|
update: P,
|
|
286
286
|
not_equal: r,
|
|
287
|
-
bound:
|
|
287
|
+
bound: Gt(),
|
|
288
288
|
// lifecycle
|
|
289
289
|
on_mount: [],
|
|
290
290
|
on_destroy: [],
|
|
@@ -293,8 +293,8 @@ function Ne(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
293
293
|
after_update: [],
|
|
294
294
|
context: new Map(e.context || (f ? f.$$.context : [])),
|
|
295
295
|
// everything else
|
|
296
|
-
callbacks:
|
|
297
|
-
dirty:
|
|
296
|
+
callbacks: Gt(),
|
|
297
|
+
dirty: s,
|
|
298
298
|
skip_bound: !1,
|
|
299
299
|
root: e.target || f.$$.root
|
|
300
300
|
};
|
|
@@ -302,18 +302,18 @@ function Ne(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
302
302
|
let d = !1;
|
|
303
303
|
if (u.ctx = t ? t(i, e.props || {}, (h, v, ...y) => {
|
|
304
304
|
const E = y.length ? y[0] : v;
|
|
305
|
-
return u.ctx && r(u.ctx[h], u.ctx[h] = E) && (!u.skip_bound && u.bound[h] && u.bound[h](E), d &&
|
|
306
|
-
}) : [], u.update(), d = !0,
|
|
305
|
+
return u.ctx && r(u.ctx[h], u.ctx[h] = E) && (!u.skip_bound && u.bound[h] && u.bound[h](E), d && ln(i, h)), v;
|
|
306
|
+
}) : [], u.update(), d = !0, he(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
307
307
|
if (e.hydrate) {
|
|
308
|
-
const h =
|
|
309
|
-
u.fragment && u.fragment.l(h), h.forEach(
|
|
308
|
+
const h = Ji(e.target);
|
|
309
|
+
u.fragment && u.fragment.l(h), h.forEach(U);
|
|
310
310
|
} else
|
|
311
311
|
u.fragment && u.fragment.c();
|
|
312
|
-
e.intro &&
|
|
312
|
+
e.intro && j(i.$$.fragment), me(i, e.target, e.anchor), di();
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
Be(f);
|
|
315
315
|
}
|
|
316
|
-
class
|
|
316
|
+
class ke {
|
|
317
317
|
constructor() {
|
|
318
318
|
/**
|
|
319
319
|
* ### PRIVATE API
|
|
@@ -322,7 +322,7 @@ class Me {
|
|
|
322
322
|
*
|
|
323
323
|
* @type {any}
|
|
324
324
|
*/
|
|
325
|
-
|
|
325
|
+
vt(this, "$$");
|
|
326
326
|
/**
|
|
327
327
|
* ### PRIVATE API
|
|
328
328
|
*
|
|
@@ -330,11 +330,11 @@ class Me {
|
|
|
330
330
|
*
|
|
331
331
|
* @type {any}
|
|
332
332
|
*/
|
|
333
|
-
|
|
333
|
+
vt(this, "$$set");
|
|
334
334
|
}
|
|
335
335
|
/** @returns {void} */
|
|
336
336
|
$destroy() {
|
|
337
|
-
|
|
337
|
+
ge(this, 1), this.$destroy = P;
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -343,7 +343,7 @@ class Me {
|
|
|
343
343
|
* @returns {() => void}
|
|
344
344
|
*/
|
|
345
345
|
$on(e, t) {
|
|
346
|
-
if (!
|
|
346
|
+
if (!ai(t))
|
|
347
347
|
return P;
|
|
348
348
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
349
349
|
return n.push(t), () => {
|
|
@@ -356,60 +356,60 @@ class Me {
|
|
|
356
356
|
* @returns {void}
|
|
357
357
|
*/
|
|
358
358
|
$set(e) {
|
|
359
|
-
this.$$set && !
|
|
359
|
+
this.$$set && !Zi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
const
|
|
363
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
364
|
-
function
|
|
362
|
+
const un = "4";
|
|
363
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(un);
|
|
364
|
+
function cn(i) {
|
|
365
365
|
let e, t;
|
|
366
366
|
return {
|
|
367
367
|
c() {
|
|
368
|
-
e =
|
|
368
|
+
e = fe("svg"), t = fe("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");
|
|
369
369
|
},
|
|
370
370
|
m(n, r) {
|
|
371
|
-
|
|
371
|
+
I(n, e, r), M(e, t);
|
|
372
372
|
},
|
|
373
373
|
p: P,
|
|
374
374
|
i: P,
|
|
375
375
|
o: P,
|
|
376
376
|
d(n) {
|
|
377
|
-
n &&
|
|
377
|
+
n && U(e);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
class
|
|
381
|
+
class fi extends ke {
|
|
382
382
|
constructor(e) {
|
|
383
|
-
super(),
|
|
383
|
+
super(), pe(this, e, null, cn, Se, {});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function dn(i) {
|
|
387
387
|
let e, t;
|
|
388
388
|
return {
|
|
389
389
|
c() {
|
|
390
|
-
e =
|
|
390
|
+
e = fe("svg"), t = fe("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");
|
|
391
391
|
},
|
|
392
392
|
m(n, r) {
|
|
393
|
-
|
|
393
|
+
I(n, e, r), M(e, t);
|
|
394
394
|
},
|
|
395
395
|
p: P,
|
|
396
396
|
i: P,
|
|
397
397
|
o: P,
|
|
398
398
|
d(n) {
|
|
399
|
-
n &&
|
|
399
|
+
n && U(e);
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class mi extends ke {
|
|
404
404
|
constructor(e) {
|
|
405
|
-
super(),
|
|
405
|
+
super(), pe(this, e, null, dn, Se, {});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function fn(i) {
|
|
409
409
|
let e, t;
|
|
410
410
|
return {
|
|
411
411
|
c() {
|
|
412
|
-
e =
|
|
412
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
413
413
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
414
414
|
e,
|
|
415
415
|
"alt",
|
|
@@ -423,11 +423,11 @@ function bn(i) {
|
|
|
423
423
|
), a(e, "class", "svelte-w9y5n9");
|
|
424
424
|
},
|
|
425
425
|
m(n, r) {
|
|
426
|
-
|
|
426
|
+
I(n, e, r);
|
|
427
427
|
},
|
|
428
428
|
p(n, r) {
|
|
429
429
|
r & /*iconsBaseUrl*/
|
|
430
|
-
8 && !
|
|
430
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
431
431
|
n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
|
|
432
432
|
128 && a(
|
|
433
433
|
e,
|
|
@@ -443,15 +443,15 @@ function bn(i) {
|
|
|
443
443
|
);
|
|
444
444
|
},
|
|
445
445
|
d(n) {
|
|
446
|
-
n &&
|
|
446
|
+
n && U(e);
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function mn(i) {
|
|
451
451
|
let e, t;
|
|
452
452
|
return {
|
|
453
453
|
c() {
|
|
454
|
-
e =
|
|
454
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
455
455
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
456
456
|
e,
|
|
457
457
|
"alt",
|
|
@@ -465,11 +465,11 @@ function vn(i) {
|
|
|
465
465
|
), a(e, "class", "svelte-w9y5n9");
|
|
466
466
|
},
|
|
467
467
|
m(n, r) {
|
|
468
|
-
|
|
468
|
+
I(n, e, r);
|
|
469
469
|
},
|
|
470
470
|
p(n, r) {
|
|
471
471
|
r & /*iconsBaseUrl*/
|
|
472
|
-
8 && !
|
|
472
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
473
473
|
n[3] + "reverse.svg") && a(e, "src", t), r & /*placeType*/
|
|
474
474
|
128 && a(
|
|
475
475
|
e,
|
|
@@ -485,15 +485,15 @@ function vn(i) {
|
|
|
485
485
|
);
|
|
486
486
|
},
|
|
487
487
|
d(n) {
|
|
488
|
-
n &&
|
|
488
|
+
n && U(e);
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function gn(i) {
|
|
493
493
|
let e, t;
|
|
494
494
|
return {
|
|
495
495
|
c() {
|
|
496
|
-
e =
|
|
496
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
497
497
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
498
498
|
e,
|
|
499
499
|
"alt",
|
|
@@ -507,11 +507,11 @@ function Ln(i) {
|
|
|
507
507
|
), a(e, "class", "svelte-w9y5n9");
|
|
508
508
|
},
|
|
509
509
|
m(n, r) {
|
|
510
|
-
|
|
510
|
+
I(n, e, r);
|
|
511
511
|
},
|
|
512
512
|
p(n, r) {
|
|
513
513
|
r & /*iconsBaseUrl*/
|
|
514
|
-
8 && !
|
|
514
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
515
515
|
n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
|
|
516
516
|
128 && a(
|
|
517
517
|
e,
|
|
@@ -527,15 +527,15 @@ function Ln(i) {
|
|
|
527
527
|
);
|
|
528
528
|
},
|
|
529
529
|
d(n) {
|
|
530
|
-
n &&
|
|
530
|
+
n && U(e);
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function hn(i) {
|
|
535
535
|
let e, t;
|
|
536
536
|
return {
|
|
537
537
|
c() {
|
|
538
|
-
e =
|
|
538
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
539
539
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
540
540
|
e,
|
|
541
541
|
"alt",
|
|
@@ -549,11 +549,11 @@ function _n(i) {
|
|
|
549
549
|
), a(e, "class", "svelte-w9y5n9");
|
|
550
550
|
},
|
|
551
551
|
m(n, r) {
|
|
552
|
-
|
|
552
|
+
I(n, e, r);
|
|
553
553
|
},
|
|
554
554
|
p(n, r) {
|
|
555
555
|
r & /*iconsBaseUrl*/
|
|
556
|
-
8 && !
|
|
556
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
557
557
|
n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
|
|
558
558
|
128 && a(
|
|
559
559
|
e,
|
|
@@ -569,15 +569,15 @@ function _n(i) {
|
|
|
569
569
|
);
|
|
570
570
|
},
|
|
571
571
|
d(n) {
|
|
572
|
-
n &&
|
|
572
|
+
n && U(e);
|
|
573
573
|
}
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function bn(i) {
|
|
577
577
|
let e, t;
|
|
578
578
|
return {
|
|
579
579
|
c() {
|
|
580
|
-
e =
|
|
580
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
581
581
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
582
582
|
e,
|
|
583
583
|
"alt",
|
|
@@ -591,11 +591,11 @@ function yn(i) {
|
|
|
591
591
|
), a(e, "class", "svelte-w9y5n9");
|
|
592
592
|
},
|
|
593
593
|
m(n, r) {
|
|
594
|
-
|
|
594
|
+
I(n, e, r);
|
|
595
595
|
},
|
|
596
596
|
p(n, r) {
|
|
597
597
|
r & /*iconsBaseUrl*/
|
|
598
|
-
8 && !
|
|
598
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
599
599
|
n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
|
|
600
600
|
128 && a(
|
|
601
601
|
e,
|
|
@@ -611,15 +611,15 @@ function yn(i) {
|
|
|
611
611
|
);
|
|
612
612
|
},
|
|
613
613
|
d(n) {
|
|
614
|
-
n &&
|
|
614
|
+
n && U(e);
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function vn(i) {
|
|
619
619
|
let e, t;
|
|
620
620
|
return {
|
|
621
621
|
c() {
|
|
622
|
-
e =
|
|
622
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
623
623
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
624
624
|
e,
|
|
625
625
|
"alt",
|
|
@@ -633,11 +633,11 @@ function wn(i) {
|
|
|
633
633
|
), a(e, "class", "svelte-w9y5n9");
|
|
634
634
|
},
|
|
635
635
|
m(n, r) {
|
|
636
|
-
|
|
636
|
+
I(n, e, r);
|
|
637
637
|
},
|
|
638
638
|
p(n, r) {
|
|
639
639
|
r & /*iconsBaseUrl*/
|
|
640
|
-
8 && !
|
|
640
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
641
641
|
n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
|
|
642
642
|
128 && a(
|
|
643
643
|
e,
|
|
@@ -653,15 +653,15 @@ function wn(i) {
|
|
|
653
653
|
);
|
|
654
654
|
},
|
|
655
655
|
d(n) {
|
|
656
|
-
n &&
|
|
656
|
+
n && U(e);
|
|
657
657
|
}
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Ln(i) {
|
|
661
661
|
let e, t;
|
|
662
662
|
return {
|
|
663
663
|
c() {
|
|
664
|
-
e =
|
|
664
|
+
e = R("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
665
665
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
666
666
|
e,
|
|
667
667
|
"alt",
|
|
@@ -675,11 +675,11 @@ function En(i) {
|
|
|
675
675
|
), a(e, "class", "svelte-w9y5n9");
|
|
676
676
|
},
|
|
677
677
|
m(n, r) {
|
|
678
|
-
|
|
678
|
+
I(n, e, r);
|
|
679
679
|
},
|
|
680
680
|
p(n, r) {
|
|
681
681
|
r & /*iconsBaseUrl*/
|
|
682
|
-
8 && !
|
|
682
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
683
683
|
n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
|
|
684
684
|
128 && a(
|
|
685
685
|
e,
|
|
@@ -695,15 +695,15 @@ function En(i) {
|
|
|
695
695
|
);
|
|
696
696
|
},
|
|
697
697
|
d(n) {
|
|
698
|
-
n &&
|
|
698
|
+
n && U(e);
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function _n(i) {
|
|
703
703
|
let e, t, n, r;
|
|
704
704
|
return {
|
|
705
705
|
c() {
|
|
706
|
-
e =
|
|
706
|
+
e = R("img"), Y(e.src, t = /*imageUrl*/
|
|
707
707
|
i[5]) || a(e, "src", t), a(
|
|
708
708
|
e,
|
|
709
709
|
"alt",
|
|
@@ -717,7 +717,7 @@ function Sn(i) {
|
|
|
717
717
|
), a(e, "class", "svelte-w9y5n9");
|
|
718
718
|
},
|
|
719
719
|
m(l, c) {
|
|
720
|
-
|
|
720
|
+
I(l, e, c), n || (r = Z(
|
|
721
721
|
e,
|
|
722
722
|
"error",
|
|
723
723
|
/*error_handler*/
|
|
@@ -726,7 +726,7 @@ function Sn(i) {
|
|
|
726
726
|
},
|
|
727
727
|
p(l, c) {
|
|
728
728
|
c & /*imageUrl*/
|
|
729
|
-
32 && !
|
|
729
|
+
32 && !Y(e.src, t = /*imageUrl*/
|
|
730
730
|
l[5]) && a(e, "src", t), c & /*category*/
|
|
731
731
|
16 && a(
|
|
732
732
|
e,
|
|
@@ -742,25 +742,25 @@ function Sn(i) {
|
|
|
742
742
|
);
|
|
743
743
|
},
|
|
744
744
|
d(l) {
|
|
745
|
-
l &&
|
|
745
|
+
l && U(e), n = !1, r();
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function yn(i) {
|
|
750
750
|
let e, t;
|
|
751
751
|
return {
|
|
752
752
|
c() {
|
|
753
|
-
e =
|
|
753
|
+
e = R("div"), a(e, "class", "sprite-icon svelte-w9y5n9"), a(e, "style", t = `
|
|
754
754
|
width: ${/*spriteIcon*/
|
|
755
755
|
i[6].width / ne}px;
|
|
756
756
|
height: ${/*spriteIcon*/
|
|
757
757
|
i[6].height / ne}px;
|
|
758
758
|
background-image: url(${/*iconsBaseUrl*/
|
|
759
|
-
i[3]}sprite${
|
|
759
|
+
i[3]}sprite${pt}.png);
|
|
760
760
|
background-position: -${/*spriteIcon*/
|
|
761
761
|
i[6].x / ne}px -${/*spriteIcon*/
|
|
762
762
|
i[6].y / ne}px;
|
|
763
|
-
background-size: ${
|
|
763
|
+
background-size: ${oe.width / ne}px ${oe.height / ne}px;
|
|
764
764
|
`), a(
|
|
765
765
|
e,
|
|
766
766
|
"title",
|
|
@@ -769,7 +769,7 @@ function pn(i) {
|
|
|
769
769
|
);
|
|
770
770
|
},
|
|
771
771
|
m(n, r) {
|
|
772
|
-
|
|
772
|
+
I(n, e, r);
|
|
773
773
|
},
|
|
774
774
|
p(n, r) {
|
|
775
775
|
r & /*spriteIcon, iconsBaseUrl*/
|
|
@@ -779,11 +779,11 @@ function pn(i) {
|
|
|
779
779
|
height: ${/*spriteIcon*/
|
|
780
780
|
n[6].height / ne}px;
|
|
781
781
|
background-image: url(${/*iconsBaseUrl*/
|
|
782
|
-
n[3]}sprite${
|
|
782
|
+
n[3]}sprite${pt}.png);
|
|
783
783
|
background-position: -${/*spriteIcon*/
|
|
784
784
|
n[6].x / ne}px -${/*spriteIcon*/
|
|
785
785
|
n[6].y / ne}px;
|
|
786
|
-
background-size: ${
|
|
786
|
+
background-size: ${oe.width / ne}px ${oe.height / ne}px;
|
|
787
787
|
`) && a(e, "style", t), r & /*placeType*/
|
|
788
788
|
128 && a(
|
|
789
789
|
e,
|
|
@@ -793,37 +793,37 @@ function pn(i) {
|
|
|
793
793
|
);
|
|
794
794
|
},
|
|
795
795
|
d(n) {
|
|
796
|
-
n &&
|
|
796
|
+
n && U(e);
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Qt(i) {
|
|
801
801
|
let e, t;
|
|
802
802
|
return {
|
|
803
803
|
c() {
|
|
804
|
-
e =
|
|
804
|
+
e = R("span"), t = Le(
|
|
805
805
|
/*placeType*/
|
|
806
806
|
i[7]
|
|
807
807
|
), a(e, "class", "secondary svelte-w9y5n9");
|
|
808
808
|
},
|
|
809
809
|
m(n, r) {
|
|
810
|
-
|
|
810
|
+
I(n, e, r), M(e, t);
|
|
811
811
|
},
|
|
812
812
|
p(n, r) {
|
|
813
813
|
r & /*placeType*/
|
|
814
|
-
128 &&
|
|
814
|
+
128 && Fe(
|
|
815
815
|
t,
|
|
816
816
|
/*placeType*/
|
|
817
817
|
n[7]
|
|
818
818
|
);
|
|
819
819
|
},
|
|
820
820
|
d(n) {
|
|
821
|
-
n &&
|
|
821
|
+
n && U(e);
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
let e, t, n, r, l, c,
|
|
825
|
+
function wn(i) {
|
|
826
|
+
let e, t, n, r, l, c, s, f, u, d = (
|
|
827
827
|
/*isReverse*/
|
|
828
828
|
(i[8] ? (
|
|
829
829
|
/*feature*/
|
|
@@ -843,65 +843,65 @@ function Tn(i) {
|
|
|
843
843
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
844
844
|
i[5]) && !/*isReverse*/
|
|
845
845
|
i[8]
|
|
846
|
-
), E,
|
|
846
|
+
), E, O, p = (
|
|
847
847
|
/*isReverse*/
|
|
848
848
|
(i[8] ? "" : (
|
|
849
849
|
/*feature*/
|
|
850
850
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
851
851
|
)) + ""
|
|
852
|
-
), S, W, C, H,
|
|
852
|
+
), S, W, C, H, X, Q;
|
|
853
853
|
function w(L, m) {
|
|
854
854
|
return m & /*feature*/
|
|
855
855
|
1 && (t = null), m & /*feature*/
|
|
856
856
|
1 && (n = null), m & /*feature*/
|
|
857
857
|
1 && (r = null), m & /*feature*/
|
|
858
|
-
1 && (l = null),
|
|
859
|
-
L[6] ?
|
|
858
|
+
1 && (l = null), oe && /*spriteIcon*/
|
|
859
|
+
L[6] ? yn : (
|
|
860
860
|
/*imageUrl*/
|
|
861
|
-
L[5] ?
|
|
861
|
+
L[5] ? _n : (
|
|
862
862
|
/*feature*/
|
|
863
|
-
L[0].address ?
|
|
864
|
-
L[0].id.startsWith("road.")), t ?
|
|
865
|
-
L[0].id.startsWith("address.")), n ?
|
|
866
|
-
L[0].id.startsWith("postal_code.")), r ?
|
|
867
|
-
L[0].id.startsWith("poi.")), l ?
|
|
863
|
+
L[0].address ? Ln : (t == null && (t = !!/*feature*/
|
|
864
|
+
L[0].id.startsWith("road.")), t ? vn : (n == null && (n = !!/*feature*/
|
|
865
|
+
L[0].id.startsWith("address.")), n ? bn : (r == null && (r = !!/*feature*/
|
|
866
|
+
L[0].id.startsWith("postal_code.")), r ? hn : (l == null && (l = !!/*feature*/
|
|
867
|
+
L[0].id.startsWith("poi.")), l ? gn : (
|
|
868
868
|
/*isReverse*/
|
|
869
|
-
L[8] ?
|
|
869
|
+
L[8] ? mn : fn
|
|
870
870
|
)))))
|
|
871
871
|
)
|
|
872
872
|
);
|
|
873
873
|
}
|
|
874
|
-
let g = w(i, -1), N = g(i),
|
|
874
|
+
let g = w(i, -1), N = g(i), T = y && Qt(i);
|
|
875
875
|
return {
|
|
876
876
|
c() {
|
|
877
|
-
e =
|
|
877
|
+
e = R("li"), N.c(), c = ee(), s = R("span"), f = R("span"), u = R("span"), h = Le(d), v = ee(), T && T.c(), E = ee(), O = R("span"), S = Le(p), a(u, "class", "primary svelte-w9y5n9"), a(f, "class", "svelte-w9y5n9"), a(O, "class", "line2 svelte-w9y5n9"), a(s, "class", "texts svelte-w9y5n9"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", W = /*style*/
|
|
878
878
|
i[1] === "selected"), a(e, "aria-checked", C = /*style*/
|
|
879
|
-
i[1] === "picked"), a(e, "class", H =
|
|
879
|
+
i[1] === "picked"), a(e, "class", H = it(
|
|
880
880
|
/*style*/
|
|
881
881
|
i[1]
|
|
882
882
|
) + " svelte-w9y5n9");
|
|
883
883
|
},
|
|
884
884
|
m(L, m) {
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
I(L, e, m), N.m(e, null), M(e, c), M(e, s), M(s, f), M(f, u), M(u, h), M(f, v), T && T.m(f, null), M(s, E), M(s, O), M(O, S), X || (Q = [
|
|
886
|
+
Z(
|
|
887
887
|
e,
|
|
888
888
|
"mouseenter",
|
|
889
889
|
/*mouseenter_handler*/
|
|
890
890
|
i[13]
|
|
891
891
|
),
|
|
892
|
-
|
|
892
|
+
Z(
|
|
893
893
|
e,
|
|
894
894
|
"focus",
|
|
895
895
|
/*focus_handler*/
|
|
896
896
|
i[15]
|
|
897
897
|
),
|
|
898
|
-
|
|
898
|
+
Z(
|
|
899
899
|
e,
|
|
900
900
|
"click",
|
|
901
901
|
/*click_handler*/
|
|
902
902
|
i[16]
|
|
903
903
|
)
|
|
904
|
-
],
|
|
904
|
+
], X = !0);
|
|
905
905
|
},
|
|
906
906
|
p(L, [m]) {
|
|
907
907
|
g === (g = w(L, m)) && N ? N.p(L, m) : (N.d(1), N = g(L), N && (N.c(), N.m(e, c))), m & /*isReverse, feature*/
|
|
@@ -912,7 +912,7 @@ function Tn(i) {
|
|
|
912
912
|
) : (
|
|
913
913
|
/*feature*/
|
|
914
914
|
L[0].place_name.replace(/,.*/, "")
|
|
915
|
-
)) + "") &&
|
|
915
|
+
)) + "") && Fe(h, d), m & /*showPlaceType, feature, imageUrl, isReverse*/
|
|
916
916
|
293 && (y = /*showPlaceType*/
|
|
917
917
|
L[2] === "always" || /*showPlaceType*/
|
|
918
918
|
L[2] !== "never" && !/*feature*/
|
|
@@ -922,17 +922,17 @@ function Tn(i) {
|
|
|
922
922
|
L[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
923
923
|
L[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
924
924
|
L[5]) && !/*isReverse*/
|
|
925
|
-
L[8]), y ?
|
|
926
|
-
257 &&
|
|
925
|
+
L[8]), y ? T ? T.p(L, m) : (T = Qt(L), T.c(), T.m(f, null)) : T && (T.d(1), T = null), m & /*isReverse, feature*/
|
|
926
|
+
257 && p !== (p = /*isReverse*/
|
|
927
927
|
(L[8] ? "" : (
|
|
928
928
|
/*feature*/
|
|
929
929
|
L[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
930
|
-
)) + "") &&
|
|
930
|
+
)) + "") && Fe(S, p), m & /*style*/
|
|
931
931
|
2 && W !== (W = /*style*/
|
|
932
932
|
L[1] === "selected") && a(e, "aria-selected", W), m & /*style*/
|
|
933
933
|
2 && C !== (C = /*style*/
|
|
934
934
|
L[1] === "picked") && a(e, "aria-checked", C), m & /*style*/
|
|
935
|
-
2 && H !== (H =
|
|
935
|
+
2 && H !== (H = it(
|
|
936
936
|
/*style*/
|
|
937
937
|
L[1]
|
|
938
938
|
) + " svelte-w9y5n9") && a(e, "class", H);
|
|
@@ -940,54 +940,54 @@ function Tn(i) {
|
|
|
940
940
|
i: P,
|
|
941
941
|
o: P,
|
|
942
942
|
d(L) {
|
|
943
|
-
L &&
|
|
943
|
+
L && U(e), N.d(), T && T.d(), X = !1, he(Q);
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
const
|
|
948
|
-
let
|
|
949
|
-
function
|
|
950
|
-
let n, r, l, { feature: c } = e, { style:
|
|
951
|
-
const h =
|
|
952
|
-
let v, y, E,
|
|
953
|
-
function
|
|
954
|
-
|
|
955
|
-
|
|
947
|
+
const gi = devicePixelRatio > 1.25, pt = gi ? "@2x" : "", ne = gi ? 2 : 1;
|
|
948
|
+
let oe, xe;
|
|
949
|
+
function En(i, e, t) {
|
|
950
|
+
let n, r, l, { feature: c } = e, { style: s = "default" } = e, { showPlaceType: f } = e, { missingIconsCache: u } = e, { iconsBaseUrl: d } = e;
|
|
951
|
+
const h = ci();
|
|
952
|
+
let v, y, E, O;
|
|
953
|
+
function p() {
|
|
954
|
+
xe ?? (xe = fetch(`${d}sprite${pt}.json`).then((g) => g.json()).then((g) => {
|
|
955
|
+
oe = g;
|
|
956
956
|
}).catch(() => {
|
|
957
|
-
|
|
957
|
+
oe = null;
|
|
958
958
|
}));
|
|
959
959
|
}
|
|
960
960
|
function S() {
|
|
961
961
|
y && u.add(y), W();
|
|
962
962
|
}
|
|
963
963
|
function W() {
|
|
964
|
-
|
|
964
|
+
oe !== void 0 ? C() : (p(), xe == null || xe.then(C));
|
|
965
965
|
}
|
|
966
966
|
function C() {
|
|
967
967
|
do {
|
|
968
|
-
if (
|
|
968
|
+
if (O--, t(4, v = n == null ? void 0 : n[O]), t(6, E = v ? oe == null ? void 0 : oe.icons[v] : void 0), E)
|
|
969
969
|
break;
|
|
970
970
|
t(5, y = v ? d + v.replace(/ /g, "_") + ".svg" : void 0);
|
|
971
|
-
} while (
|
|
971
|
+
} while (O > -1 && (!y || u.has(y)));
|
|
972
972
|
}
|
|
973
973
|
function H(g) {
|
|
974
|
-
|
|
974
|
+
en.call(this, i, g);
|
|
975
975
|
}
|
|
976
|
-
const
|
|
976
|
+
const X = () => S(), Q = () => h("select", void 0), w = (g) => {
|
|
977
977
|
document.activeElement !== g.target && h("select", void 0);
|
|
978
978
|
};
|
|
979
979
|
return i.$$set = (g) => {
|
|
980
|
-
"feature" in g && t(0, c = g.feature), "style" in g && t(1,
|
|
980
|
+
"feature" in g && t(0, c = g.feature), "style" in g && t(1, s = g.style), "showPlaceType" in g && t(2, f = g.showPlaceType), "missingIconsCache" in g && t(11, u = g.missingIconsCache), "iconsBaseUrl" in g && t(3, d = g.iconsBaseUrl);
|
|
981
981
|
}, i.$$.update = () => {
|
|
982
|
-
var g, N,
|
|
982
|
+
var g, N, T, L, m;
|
|
983
983
|
i.$$.dirty & /*feature*/
|
|
984
984
|
1 && t(12, n = (g = c.properties) == null ? void 0 : g.categories), i.$$.dirty & /*feature*/
|
|
985
985
|
1 && t(8, r = c.place_type[0] === "reverse"), i.$$.dirty & /*feature*/
|
|
986
|
-
1 && t(7, l = ((
|
|
987
|
-
4096 && (
|
|
986
|
+
1 && t(7, l = ((T = (N = c.properties) == null ? void 0 : N.categories) == null ? void 0 : T.join(", ")) ?? ((m = (L = c.properties) == null ? void 0 : L.place_type_name) == null ? void 0 : m[0]) ?? c.place_type[0]), i.$$.dirty & /*categories*/
|
|
987
|
+
4096 && (O = (n == null ? void 0 : n.length) ?? 0, W());
|
|
988
988
|
}, [
|
|
989
989
|
c,
|
|
990
|
-
|
|
990
|
+
s,
|
|
991
991
|
f,
|
|
992
992
|
d,
|
|
993
993
|
v,
|
|
@@ -1000,14 +1000,14 @@ function kn(i, e, t) {
|
|
|
1000
1000
|
u,
|
|
1001
1001
|
n,
|
|
1002
1002
|
H,
|
|
1003
|
-
|
|
1004
|
-
|
|
1003
|
+
X,
|
|
1004
|
+
Q,
|
|
1005
1005
|
w
|
|
1006
1006
|
];
|
|
1007
1007
|
}
|
|
1008
|
-
class
|
|
1008
|
+
class Sn extends ke {
|
|
1009
1009
|
constructor(e) {
|
|
1010
|
-
super(),
|
|
1010
|
+
super(), pe(this, e, En, wn, Se, {
|
|
1011
1011
|
feature: 0,
|
|
1012
1012
|
style: 1,
|
|
1013
1013
|
showPlaceType: 2,
|
|
@@ -1016,98 +1016,98 @@ class Nn extends Me {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function pn(i) {
|
|
1020
1020
|
let e;
|
|
1021
1021
|
return {
|
|
1022
1022
|
c() {
|
|
1023
|
-
e =
|
|
1023
|
+
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");
|
|
1024
1024
|
},
|
|
1025
1025
|
m(t, n) {
|
|
1026
|
-
|
|
1026
|
+
I(t, e, n);
|
|
1027
1027
|
},
|
|
1028
1028
|
p: P,
|
|
1029
1029
|
i: P,
|
|
1030
1030
|
o: P,
|
|
1031
1031
|
d(t) {
|
|
1032
|
-
t &&
|
|
1032
|
+
t && U(e);
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
class
|
|
1036
|
+
class kn extends ke {
|
|
1037
1037
|
constructor(e) {
|
|
1038
|
-
super(),
|
|
1038
|
+
super(), pe(this, e, null, pn, Se, {});
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Tn(i) {
|
|
1042
1042
|
let e, t;
|
|
1043
1043
|
return {
|
|
1044
1044
|
c() {
|
|
1045
|
-
e =
|
|
1045
|
+
e = fe("svg"), t = fe("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");
|
|
1046
1046
|
},
|
|
1047
1047
|
m(n, r) {
|
|
1048
|
-
|
|
1048
|
+
I(n, e, r), M(e, t);
|
|
1049
1049
|
},
|
|
1050
1050
|
p: P,
|
|
1051
1051
|
i: P,
|
|
1052
1052
|
o: P,
|
|
1053
1053
|
d(n) {
|
|
1054
|
-
n &&
|
|
1054
|
+
n && U(e);
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
class
|
|
1058
|
+
class Nn extends ke {
|
|
1059
1059
|
constructor(e) {
|
|
1060
|
-
super(),
|
|
1060
|
+
super(), pe(this, e, null, Tn, Se, {});
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Mn(i) {
|
|
1064
1064
|
let e, t, n;
|
|
1065
1065
|
return {
|
|
1066
1066
|
c() {
|
|
1067
|
-
e =
|
|
1067
|
+
e = fe("svg"), t = fe("circle"), n = fe("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");
|
|
1068
1068
|
},
|
|
1069
1069
|
m(r, l) {
|
|
1070
|
-
|
|
1070
|
+
I(r, e, l), M(e, t), M(e, n);
|
|
1071
1071
|
},
|
|
1072
1072
|
p: P,
|
|
1073
1073
|
i: P,
|
|
1074
1074
|
o: P,
|
|
1075
1075
|
d(r) {
|
|
1076
|
-
r &&
|
|
1076
|
+
r && U(e);
|
|
1077
1077
|
}
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
|
-
class
|
|
1080
|
+
class Cn extends ke {
|
|
1081
1081
|
constructor(e) {
|
|
1082
|
-
super(),
|
|
1082
|
+
super(), pe(this, e, null, Mn, Se, {});
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Wn(i, e, t) {
|
|
1086
1086
|
const n = e[1], r = e[0], l = n - r;
|
|
1087
1087
|
return i === n && t ? i : ((i - r) % l + l) % l + r;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function Kt(i) {
|
|
1090
1090
|
const e = [...i];
|
|
1091
1091
|
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;
|
|
1092
1092
|
}
|
|
1093
|
-
let
|
|
1094
|
-
async function
|
|
1093
|
+
let Ae;
|
|
1094
|
+
async function On(i, e, t) {
|
|
1095
1095
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1096
1096
|
for (const r of e ?? [])
|
|
1097
1097
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1098
1098
|
if (r.type === "fixed")
|
|
1099
1099
|
return r.coordinates.join(",");
|
|
1100
1100
|
e: if (r.type === "client-geolocation") {
|
|
1101
|
-
if (
|
|
1102
|
-
if (!
|
|
1101
|
+
if (Ae && r.cachedLocationExpiry && Ae.time + r.cachedLocationExpiry > Date.now()) {
|
|
1102
|
+
if (!Ae.coords)
|
|
1103
1103
|
break e;
|
|
1104
|
-
return
|
|
1104
|
+
return Ae.coords;
|
|
1105
1105
|
}
|
|
1106
1106
|
let l;
|
|
1107
1107
|
try {
|
|
1108
|
-
return l = await new Promise((c,
|
|
1108
|
+
return l = await new Promise((c, s) => {
|
|
1109
1109
|
t.signal.addEventListener("abort", () => {
|
|
1110
|
-
|
|
1110
|
+
s(Error("aborted"));
|
|
1111
1111
|
}), navigator.geolocation.getCurrentPosition(
|
|
1112
1112
|
(f) => {
|
|
1113
1113
|
c(
|
|
@@ -1115,14 +1115,14 @@ async function In(i, e, t) {
|
|
|
1115
1115
|
);
|
|
1116
1116
|
},
|
|
1117
1117
|
(f) => {
|
|
1118
|
-
|
|
1118
|
+
s(f);
|
|
1119
1119
|
},
|
|
1120
1120
|
r
|
|
1121
1121
|
);
|
|
1122
1122
|
}), l;
|
|
1123
1123
|
} catch {
|
|
1124
1124
|
} finally {
|
|
1125
|
-
r.cachedLocationExpiry && (
|
|
1125
|
+
r.cachedLocationExpiry && (Ae = {
|
|
1126
1126
|
time: Date.now(),
|
|
1127
1127
|
coords: l
|
|
1128
1128
|
});
|
|
@@ -1136,67 +1136,67 @@ async function In(i, e, t) {
|
|
|
1136
1136
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
const
|
|
1140
|
-
function
|
|
1139
|
+
const zn = /^(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, Vt = /^([+-]?[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,})$/, Yt = /^(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, Xt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Jt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, xt = /^(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;
|
|
1140
|
+
function Dn(i) {
|
|
1141
1141
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1142
1142
|
throw new Error("invalid format specified");
|
|
1143
1143
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
1144
|
-
const e = this.decimalCoordinates.split(",").map((y) => Number(y.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S",
|
|
1144
|
+
const e = this.decimalCoordinates.split(",").map((y) => Number(y.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S", s = n > 0 ? "E" : "W";
|
|
1145
1145
|
let f;
|
|
1146
|
-
i == "DD" && (f = `${r}° ${c}, ${l}° ${
|
|
1146
|
+
i == "DD" && (f = `${r}° ${c}, ${l}° ${s}`);
|
|
1147
1147
|
const u = Math.floor(r), d = Math.floor(l), h = (r - u) * 60, v = (l - d) * 60;
|
|
1148
1148
|
if (i == "DM") {
|
|
1149
|
-
let y =
|
|
1150
|
-
y.endsWith(".000") && E.endsWith(".000") && (y = y.replace(/\.000$/, ""), E = E.replace(/\.000$/, "")), f = `${u}° ${y}' ${c}, ${d}° ${E}' ${
|
|
1149
|
+
let y = $t(h, 3).toFixed(3).padStart(6, "0"), E = $t(v, 3).toFixed(3).padStart(6, "0");
|
|
1150
|
+
y.endsWith(".000") && E.endsWith(".000") && (y = y.replace(/\.000$/, ""), E = E.replace(/\.000$/, "")), f = `${u}° ${y}' ${c}, ${d}° ${E}' ${s}`;
|
|
1151
1151
|
}
|
|
1152
1152
|
if (i == "DMS") {
|
|
1153
1153
|
const y = Math.floor(h), E = Math.floor(v);
|
|
1154
|
-
let
|
|
1154
|
+
let O = ((h - y) * 60).toFixed(1).padStart(4, "0"), p = ((v - E) * 60).toFixed(1).padStart(4, "0");
|
|
1155
1155
|
const S = y.toString().padStart(2, "0"), W = E.toString().padStart(2, "0");
|
|
1156
|
-
|
|
1156
|
+
O.endsWith(".0") && p.endsWith(".0") && (O = O.replace(/\.0$/, ""), p = p.replace(/\.0$/, "")), f = `${u}° ${S}' ${O}" ${c}, ${d}° ${W}' ${p}" ${s}`;
|
|
1157
1157
|
}
|
|
1158
1158
|
return f;
|
|
1159
1159
|
} else
|
|
1160
1160
|
throw new Error("no decimal coordinates to convert");
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function $t(i, e) {
|
|
1163
1163
|
const t = Math.pow(10, e);
|
|
1164
1164
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function kt(i, e) {
|
|
1167
1167
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1168
|
-
let t = null, n = null, r = "", l = "", c = null,
|
|
1169
|
-
if (
|
|
1168
|
+
let t = null, n = null, r = "", l = "", c = null, s = [], f = !1;
|
|
1169
|
+
if (zn.test(i))
|
|
1170
1170
|
throw new Error("invalid coordinate value");
|
|
1171
|
-
if (
|
|
1172
|
-
if (
|
|
1173
|
-
t = Math.abs(
|
|
1171
|
+
if (Vt.test(i))
|
|
1172
|
+
if (s = Vt.exec(i), f = Pe(s), f)
|
|
1173
|
+
t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), c = "DM";
|
|
1174
1174
|
else
|
|
1175
1175
|
throw new Error("invalid coordinate format");
|
|
1176
|
-
else if (
|
|
1177
|
-
if (
|
|
1178
|
-
if (t =
|
|
1176
|
+
else if (Yt.test(i))
|
|
1177
|
+
if (s = Yt.exec(i), f = Pe(s), f) {
|
|
1178
|
+
if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
|
|
1179
1179
|
throw new Error("integer only coordinate provided");
|
|
1180
1180
|
if (Number(Math.round(n)) == Number(n))
|
|
1181
1181
|
throw new Error("integer only coordinate provided");
|
|
1182
|
-
|
|
1182
|
+
s[1] ? (r = s[1], l = s[5]) : s[4] && (r = s[4], l = s[8]);
|
|
1183
1183
|
} else
|
|
1184
1184
|
throw new Error("invalid decimal coordinate format");
|
|
1185
|
-
else if (
|
|
1186
|
-
if (
|
|
1187
|
-
t = Math.abs(parseInt(
|
|
1185
|
+
else if (Xt.test(i))
|
|
1186
|
+
if (s = Xt.exec(i), f = Pe(s), f)
|
|
1187
|
+
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, c = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, c = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], l = s[8]) : s[7] && (r = s[7], l = s[14]);
|
|
1188
1188
|
else
|
|
1189
1189
|
throw new Error("invalid DMS coordinates format");
|
|
1190
|
-
else if (
|
|
1191
|
-
if (
|
|
1192
|
-
t = Math.abs(parseInt(
|
|
1190
|
+
else if (Jt.test(i))
|
|
1191
|
+
if (s = Jt.exec(i), f = Pe(s), f)
|
|
1192
|
+
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, c = "DM"), s[6] && (t += s[6] / 3600, c = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], l = s[9]) : s[8] && (r = s[8], l = s[16]);
|
|
1193
1193
|
else
|
|
1194
1194
|
throw new Error("invalid DMS coordinates format");
|
|
1195
|
-
else if (
|
|
1196
|
-
if (
|
|
1195
|
+
else if (xt.test(i)) {
|
|
1196
|
+
if (s = xt.exec(i), f = Pe(s), s.filter((u) => u).length <= 5)
|
|
1197
1197
|
throw new Error("invalid coordinates format");
|
|
1198
1198
|
if (f)
|
|
1199
|
-
t = Math.abs(parseInt(
|
|
1199
|
+
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, c = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, c = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], l = s[9]) : s[8] && (r = s[8], l = s[16]);
|
|
1200
1200
|
else
|
|
1201
1201
|
throw new Error("invalid coordinates format");
|
|
1202
1202
|
}
|
|
@@ -1212,7 +1212,7 @@ function Nt(i, e) {
|
|
|
1212
1212
|
t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
|
|
1213
1213
|
let u = /S|SOUTH/i;
|
|
1214
1214
|
u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
|
|
1215
|
-
const d =
|
|
1215
|
+
const d = s[0].trim();
|
|
1216
1216
|
let h, v;
|
|
1217
1217
|
const y = /[,/;\u0020]/g, E = d.match(y);
|
|
1218
1218
|
if (E == null) {
|
|
@@ -1231,11 +1231,11 @@ function Nt(i, e) {
|
|
|
1231
1231
|
h = d.substring(0, W).trim(), v = d.substring(W + 1).trim();
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1235
|
-
if (
|
|
1234
|
+
const O = h.split(".");
|
|
1235
|
+
if (O.length == 2 && O[1] == 0 && O[1].length != 2)
|
|
1236
1236
|
throw new Error("invalid coordinates format");
|
|
1237
|
-
const
|
|
1238
|
-
if (
|
|
1237
|
+
const p = v.split(".");
|
|
1238
|
+
if (p.length == 2 && p[1] == 0 && p[1].length != 2)
|
|
1239
1239
|
throw new Error("invalid coordinates format");
|
|
1240
1240
|
if (/^\d+$/.test(h) || /^\d+$/.test(v))
|
|
1241
1241
|
throw new Error("degree only coordinate/s provided");
|
|
@@ -1247,13 +1247,13 @@ function Nt(i, e) {
|
|
|
1247
1247
|
decimalLongitude: n,
|
|
1248
1248
|
decimalCoordinates: `${t},${n}`,
|
|
1249
1249
|
originalFormat: c,
|
|
1250
|
-
closeEnough:
|
|
1251
|
-
toCoordinateFormat:
|
|
1250
|
+
closeEnough: Rn,
|
|
1251
|
+
toCoordinateFormat: Dn
|
|
1252
1252
|
});
|
|
1253
1253
|
} else
|
|
1254
1254
|
throw new Error("coordinates pattern match failed");
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Pe(i) {
|
|
1257
1257
|
if (!isNaN(i[0]))
|
|
1258
1258
|
return !1;
|
|
1259
1259
|
const e = [...i];
|
|
@@ -1261,9 +1261,9 @@ function je(i) {
|
|
|
1261
1261
|
return !1;
|
|
1262
1262
|
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
|
|
1263
1263
|
for (let l = 0; l < r; l++) {
|
|
1264
|
-
const c = e[l],
|
|
1265
|
-
if (!(c == null &&
|
|
1266
|
-
if (c == null ||
|
|
1264
|
+
const c = e[l], s = e[l + r], f = t.test(c) && t.test(s), u = n.test(c) && n.test(s), d = c == s;
|
|
1265
|
+
if (!(c == null && s == null)) {
|
|
1266
|
+
if (c == null || s == null)
|
|
1267
1267
|
return !1;
|
|
1268
1268
|
if (f || u || d)
|
|
1269
1269
|
continue;
|
|
@@ -1272,28 +1272,28 @@ function je(i) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
return !0;
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function ei(i, e) {
|
|
1276
1276
|
const t = Math.abs(i - e);
|
|
1277
1277
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Rn(i) {
|
|
1280
1280
|
if (!i)
|
|
1281
1281
|
throw new Error("coords must be provided");
|
|
1282
1282
|
if (i.includes(",")) {
|
|
1283
1283
|
const e = i.split(",");
|
|
1284
1284
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1285
1285
|
throw new Error("coords are not valid decimals");
|
|
1286
|
-
return
|
|
1286
|
+
return ei(this.decimalLatitude, Number(e[0])) && ei(this.decimalLongitude, e[1]);
|
|
1287
1287
|
} else
|
|
1288
1288
|
throw new Error("coords being tested must be separated by a comma");
|
|
1289
1289
|
}
|
|
1290
|
-
const
|
|
1290
|
+
const Un = Object.freeze({
|
|
1291
1291
|
DMS: "DMS",
|
|
1292
1292
|
DM: "DM",
|
|
1293
1293
|
DD: "DD"
|
|
1294
1294
|
});
|
|
1295
|
-
|
|
1296
|
-
const
|
|
1295
|
+
kt.to = Un;
|
|
1296
|
+
const In = [
|
|
1297
1297
|
{
|
|
1298
1298
|
verbatimCoordinates: "40.123, -74.123",
|
|
1299
1299
|
verbatimLatitude: "40.123",
|
|
@@ -1434,10 +1434,10 @@ const jn = [
|
|
|
1434
1434
|
verbatimLatitude: "40 7 22.8",
|
|
1435
1435
|
verbatimLongitude: "-74 7 22.8"
|
|
1436
1436
|
}
|
|
1437
|
-
],
|
|
1437
|
+
], An = {
|
|
1438
1438
|
decimalLatitude: 40.123,
|
|
1439
1439
|
decimalLongitude: -74.123
|
|
1440
|
-
},
|
|
1440
|
+
}, Pn = [
|
|
1441
1441
|
{
|
|
1442
1442
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1443
1443
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1522,7 +1522,7 @@ const jn = [
|
|
|
1522
1522
|
decimalLatitude: -18.4,
|
|
1523
1523
|
decimalLongitude: 22.75
|
|
1524
1524
|
}
|
|
1525
|
-
],
|
|
1525
|
+
], Bn = [
|
|
1526
1526
|
{
|
|
1527
1527
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1528
1528
|
verbatimLatitude: "10.432342S",
|
|
@@ -1657,72 +1657,72 @@ const jn = [
|
|
|
1657
1657
|
decimalLongitude: 18.33453
|
|
1658
1658
|
}
|
|
1659
1659
|
];
|
|
1660
|
-
function
|
|
1660
|
+
function Fn() {
|
|
1661
1661
|
const i = [];
|
|
1662
|
-
return
|
|
1663
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1664
|
-
}), [...i, ...
|
|
1665
|
-
}
|
|
1666
|
-
const
|
|
1667
|
-
|
|
1668
|
-
const
|
|
1669
|
-
function
|
|
1662
|
+
return In.forEach((e) => {
|
|
1663
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...An });
|
|
1664
|
+
}), [...i, ...Pn, ...Bn];
|
|
1665
|
+
}
|
|
1666
|
+
const jn = Fn();
|
|
1667
|
+
kt.formats = jn.map((i) => i.verbatimCoordinates);
|
|
1668
|
+
const Gn = kt;
|
|
1669
|
+
function ti(i, e, t) {
|
|
1670
1670
|
const n = i.slice();
|
|
1671
|
-
return n[
|
|
1671
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function ii(i) {
|
|
1674
1674
|
let e, t;
|
|
1675
|
-
return e = new
|
|
1675
|
+
return e = new kn({}), {
|
|
1676
1676
|
c() {
|
|
1677
|
-
|
|
1677
|
+
_e(e.$$.fragment);
|
|
1678
1678
|
},
|
|
1679
1679
|
m(n, r) {
|
|
1680
|
-
|
|
1680
|
+
me(e, n, r), t = !0;
|
|
1681
1681
|
},
|
|
1682
1682
|
i(n) {
|
|
1683
|
-
t || (
|
|
1683
|
+
t || (j(e.$$.fragment, n), t = !0);
|
|
1684
1684
|
},
|
|
1685
1685
|
o(n) {
|
|
1686
|
-
|
|
1686
|
+
q(e.$$.fragment, n), t = !1;
|
|
1687
1687
|
},
|
|
1688
1688
|
d(n) {
|
|
1689
|
-
|
|
1689
|
+
ge(e, n);
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function ni(i) {
|
|
1694
1694
|
let e, t, n, r, l;
|
|
1695
|
-
return t = new
|
|
1695
|
+
return t = new Nn({}), {
|
|
1696
1696
|
c() {
|
|
1697
|
-
e =
|
|
1697
|
+
e = R("button"), _e(t.$$.fragment), a(e, "type", "button"), a(
|
|
1698
1698
|
e,
|
|
1699
1699
|
"title",
|
|
1700
1700
|
/*reverseButtonTitle*/
|
|
1701
1701
|
i[10]
|
|
1702
|
-
), a(e, "class", "svelte-bz0zu3"),
|
|
1702
|
+
), a(e, "class", "svelte-bz0zu3"), Oe(
|
|
1703
1703
|
e,
|
|
1704
1704
|
"active",
|
|
1705
1705
|
/*reverseActive*/
|
|
1706
1706
|
i[0]
|
|
1707
1707
|
);
|
|
1708
1708
|
},
|
|
1709
|
-
m(c,
|
|
1710
|
-
|
|
1709
|
+
m(c, s) {
|
|
1710
|
+
I(c, e, s), me(t, e, null), n = !0, r || (l = Z(
|
|
1711
1711
|
e,
|
|
1712
1712
|
"click",
|
|
1713
1713
|
/*click_handler_3*/
|
|
1714
|
-
i[
|
|
1714
|
+
i[79]
|
|
1715
1715
|
), r = !0);
|
|
1716
1716
|
},
|
|
1717
|
-
p(c,
|
|
1718
|
-
(!n ||
|
|
1717
|
+
p(c, s) {
|
|
1718
|
+
(!n || s[0] & /*reverseButtonTitle*/
|
|
1719
1719
|
1024) && a(
|
|
1720
1720
|
e,
|
|
1721
1721
|
"title",
|
|
1722
1722
|
/*reverseButtonTitle*/
|
|
1723
1723
|
c[10]
|
|
1724
|
-
), (!n ||
|
|
1725
|
-
1) &&
|
|
1724
|
+
), (!n || s[0] & /*reverseActive*/
|
|
1725
|
+
1) && Oe(
|
|
1726
1726
|
e,
|
|
1727
1727
|
"active",
|
|
1728
1728
|
/*reverseActive*/
|
|
@@ -1730,56 +1730,56 @@ function si(i) {
|
|
|
1730
1730
|
);
|
|
1731
1731
|
},
|
|
1732
1732
|
i(c) {
|
|
1733
|
-
n || (
|
|
1733
|
+
n || (j(t.$$.fragment, c), n = !0);
|
|
1734
1734
|
},
|
|
1735
1735
|
o(c) {
|
|
1736
|
-
|
|
1736
|
+
q(t.$$.fragment, c), n = !1;
|
|
1737
1737
|
},
|
|
1738
1738
|
d(c) {
|
|
1739
|
-
c &&
|
|
1739
|
+
c && U(e), ge(t), r = !1, l();
|
|
1740
1740
|
}
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1744
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c,
|
|
1743
|
+
function Hn(i) {
|
|
1744
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, s = qt(
|
|
1745
1745
|
/*listFeatures*/
|
|
1746
1746
|
i[13]
|
|
1747
1747
|
);
|
|
1748
1748
|
const f = (u) => (
|
|
1749
1749
|
/*feature*/
|
|
1750
|
-
u[
|
|
1751
|
-
(u[
|
|
1752
|
-
u[
|
|
1750
|
+
u[97].id + /*feature*/
|
|
1751
|
+
(u[97].address ? "," + /*feature*/
|
|
1752
|
+
u[97].address : "")
|
|
1753
1753
|
);
|
|
1754
|
-
for (let u = 0; u <
|
|
1755
|
-
let d =
|
|
1756
|
-
n.set(h, t[u] =
|
|
1754
|
+
for (let u = 0; u < s.length; u += 1) {
|
|
1755
|
+
let d = ti(i, s, u), h = f(d);
|
|
1756
|
+
n.set(h, t[u] = ri(h, d));
|
|
1757
1757
|
}
|
|
1758
1758
|
return {
|
|
1759
1759
|
c() {
|
|
1760
|
-
e =
|
|
1760
|
+
e = R("ul");
|
|
1761
1761
|
for (let u = 0; u < t.length; u += 1)
|
|
1762
1762
|
t[u].c();
|
|
1763
1763
|
a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
|
|
1764
1764
|
},
|
|
1765
1765
|
m(u, d) {
|
|
1766
|
-
|
|
1766
|
+
I(u, e, d);
|
|
1767
1767
|
for (let h = 0; h < t.length; h += 1)
|
|
1768
1768
|
t[h] && t[h].m(e, null);
|
|
1769
1769
|
r = !0, l || (c = [
|
|
1770
|
-
|
|
1770
|
+
Z(
|
|
1771
1771
|
e,
|
|
1772
1772
|
"mouseleave",
|
|
1773
1773
|
/*handleMouseLeave*/
|
|
1774
1774
|
i[27]
|
|
1775
1775
|
),
|
|
1776
|
-
|
|
1776
|
+
Z(
|
|
1777
1777
|
e,
|
|
1778
1778
|
"blur",
|
|
1779
1779
|
/*blur_handler_1*/
|
|
1780
|
-
i[
|
|
1780
|
+
i[83]
|
|
1781
1781
|
),
|
|
1782
|
-
|
|
1782
|
+
Z(
|
|
1783
1783
|
e,
|
|
1784
1784
|
"keydown",
|
|
1785
1785
|
/*handleKeyDown*/
|
|
@@ -1789,141 +1789,141 @@ function Kn(i) {
|
|
|
1789
1789
|
},
|
|
1790
1790
|
p(u, d) {
|
|
1791
1791
|
d[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1792
|
-
102823936 && (
|
|
1792
|
+
102823936 && (s = qt(
|
|
1793
1793
|
/*listFeatures*/
|
|
1794
1794
|
u[13]
|
|
1795
|
-
),
|
|
1795
|
+
), et(), t = an(t, d, f, 1, u, s, n, e, on, ri, null, ti), tt());
|
|
1796
1796
|
},
|
|
1797
1797
|
i(u) {
|
|
1798
1798
|
if (!r) {
|
|
1799
|
-
for (let d = 0; d <
|
|
1800
|
-
|
|
1799
|
+
for (let d = 0; d < s.length; d += 1)
|
|
1800
|
+
j(t[d]);
|
|
1801
1801
|
r = !0;
|
|
1802
1802
|
}
|
|
1803
1803
|
},
|
|
1804
1804
|
o(u) {
|
|
1805
1805
|
for (let d = 0; d < t.length; d += 1)
|
|
1806
|
-
|
|
1806
|
+
q(t[d]);
|
|
1807
1807
|
r = !1;
|
|
1808
1808
|
},
|
|
1809
1809
|
d(u) {
|
|
1810
|
-
u &&
|
|
1810
|
+
u && U(e);
|
|
1811
1811
|
for (let d = 0; d < t.length; d += 1)
|
|
1812
1812
|
t[d].d();
|
|
1813
|
-
l = !1,
|
|
1813
|
+
l = !1, he(c);
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Zn(i) {
|
|
1818
1818
|
let e, t, n, r, l, c;
|
|
1819
|
-
return t = new
|
|
1819
|
+
return t = new mi({}), {
|
|
1820
1820
|
c() {
|
|
1821
|
-
e =
|
|
1821
|
+
e = R("div"), _e(t.$$.fragment), n = ee(), r = R("div"), l = Le(
|
|
1822
1822
|
/*noResultsMessage*/
|
|
1823
1823
|
i[8]
|
|
1824
1824
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1825
1825
|
},
|
|
1826
|
-
m(
|
|
1827
|
-
|
|
1826
|
+
m(s, f) {
|
|
1827
|
+
I(s, e, f), me(t, e, null), M(e, n), M(e, r), M(r, l), c = !0;
|
|
1828
1828
|
},
|
|
1829
|
-
p(
|
|
1829
|
+
p(s, f) {
|
|
1830
1830
|
(!c || f[0] & /*noResultsMessage*/
|
|
1831
|
-
256) &&
|
|
1831
|
+
256) && Fe(
|
|
1832
1832
|
l,
|
|
1833
1833
|
/*noResultsMessage*/
|
|
1834
|
-
|
|
1834
|
+
s[8]
|
|
1835
1835
|
);
|
|
1836
1836
|
},
|
|
1837
|
-
i(
|
|
1838
|
-
c || (
|
|
1837
|
+
i(s) {
|
|
1838
|
+
c || (j(t.$$.fragment, s), c = !0);
|
|
1839
1839
|
},
|
|
1840
|
-
o(
|
|
1841
|
-
|
|
1840
|
+
o(s) {
|
|
1841
|
+
q(t.$$.fragment, s), c = !1;
|
|
1842
1842
|
},
|
|
1843
|
-
d(
|
|
1844
|
-
|
|
1843
|
+
d(s) {
|
|
1844
|
+
s && U(e), ge(t);
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function qn(i) {
|
|
1849
1849
|
let e = "", t;
|
|
1850
1850
|
return {
|
|
1851
1851
|
c() {
|
|
1852
|
-
t =
|
|
1852
|
+
t = Le(e);
|
|
1853
1853
|
},
|
|
1854
1854
|
m(n, r) {
|
|
1855
|
-
|
|
1855
|
+
I(n, t, r);
|
|
1856
1856
|
},
|
|
1857
1857
|
p: P,
|
|
1858
1858
|
i: P,
|
|
1859
1859
|
o: P,
|
|
1860
1860
|
d(n) {
|
|
1861
|
-
n &&
|
|
1861
|
+
n && U(t);
|
|
1862
1862
|
}
|
|
1863
1863
|
};
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1866
|
-
let e, t, n, r, l, c,
|
|
1867
|
-
return t = new
|
|
1865
|
+
function Qn(i) {
|
|
1866
|
+
let e, t, n, r, l, c, s, f, u, d, h;
|
|
1867
|
+
return t = new mi({}), f = new fi({}), {
|
|
1868
1868
|
c() {
|
|
1869
|
-
e =
|
|
1869
|
+
e = R("div"), _e(t.$$.fragment), n = ee(), r = R("div"), l = Le(
|
|
1870
1870
|
/*errorMessage*/
|
|
1871
1871
|
i[7]
|
|
1872
|
-
), c =
|
|
1872
|
+
), c = ee(), s = R("button"), _e(f.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(s, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1873
1873
|
},
|
|
1874
1874
|
m(v, y) {
|
|
1875
|
-
|
|
1876
|
-
|
|
1875
|
+
I(v, e, y), me(t, e, null), M(e, n), M(e, r), M(r, l), M(e, c), M(e, s), me(f, s, null), u = !0, d || (h = Z(
|
|
1876
|
+
s,
|
|
1877
1877
|
"click",
|
|
1878
1878
|
/*click_handler_4*/
|
|
1879
|
-
i[
|
|
1879
|
+
i[80]
|
|
1880
1880
|
), d = !0);
|
|
1881
1881
|
},
|
|
1882
1882
|
p(v, y) {
|
|
1883
1883
|
(!u || y[0] & /*errorMessage*/
|
|
1884
|
-
128) &&
|
|
1884
|
+
128) && Fe(
|
|
1885
1885
|
l,
|
|
1886
1886
|
/*errorMessage*/
|
|
1887
1887
|
v[7]
|
|
1888
1888
|
);
|
|
1889
1889
|
},
|
|
1890
1890
|
i(v) {
|
|
1891
|
-
u || (
|
|
1891
|
+
u || (j(t.$$.fragment, v), j(f.$$.fragment, v), u = !0);
|
|
1892
1892
|
},
|
|
1893
1893
|
o(v) {
|
|
1894
|
-
|
|
1894
|
+
q(t.$$.fragment, v), q(f.$$.fragment, v), u = !1;
|
|
1895
1895
|
},
|
|
1896
1896
|
d(v) {
|
|
1897
|
-
v &&
|
|
1897
|
+
v && U(e), ge(t), ge(f), d = !1, h();
|
|
1898
1898
|
}
|
|
1899
1899
|
};
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1902
|
-
var
|
|
1901
|
+
function ri(i, e) {
|
|
1902
|
+
var s;
|
|
1903
1903
|
let t, n, r;
|
|
1904
1904
|
function l() {
|
|
1905
1905
|
return (
|
|
1906
1906
|
/*mouseenter_handler*/
|
|
1907
|
-
e[
|
|
1907
|
+
e[81](
|
|
1908
1908
|
/*i*/
|
|
1909
|
-
e[
|
|
1909
|
+
e[99]
|
|
1910
1910
|
)
|
|
1911
1911
|
);
|
|
1912
1912
|
}
|
|
1913
1913
|
function c() {
|
|
1914
1914
|
return (
|
|
1915
1915
|
/*select_handler*/
|
|
1916
|
-
e[
|
|
1916
|
+
e[82](
|
|
1917
1917
|
/*feature*/
|
|
1918
|
-
e[
|
|
1918
|
+
e[97]
|
|
1919
1919
|
)
|
|
1920
1920
|
);
|
|
1921
1921
|
}
|
|
1922
|
-
return n = new
|
|
1922
|
+
return n = new Sn({
|
|
1923
1923
|
props: {
|
|
1924
1924
|
feature: (
|
|
1925
1925
|
/*feature*/
|
|
1926
|
-
e[
|
|
1926
|
+
e[97]
|
|
1927
1927
|
),
|
|
1928
1928
|
showPlaceType: (
|
|
1929
1929
|
/*showPlaceType*/
|
|
@@ -1932,10 +1932,10 @@ function ai(i, e) {
|
|
|
1932
1932
|
style: (
|
|
1933
1933
|
/*selectedItemIndex*/
|
|
1934
1934
|
e[15] === /*i*/
|
|
1935
|
-
e[
|
|
1935
|
+
e[99] ? "selected" : (
|
|
1936
1936
|
/*picked*/
|
|
1937
|
-
((
|
|
1938
|
-
e[
|
|
1937
|
+
((s = e[14]) == null ? void 0 : s.id) === /*feature*/
|
|
1938
|
+
e[97].id ? "picked" : "default"
|
|
1939
1939
|
)
|
|
1940
1940
|
),
|
|
1941
1941
|
missingIconsCache: (
|
|
@@ -1951,10 +1951,10 @@ function ai(i, e) {
|
|
|
1951
1951
|
key: i,
|
|
1952
1952
|
first: null,
|
|
1953
1953
|
c() {
|
|
1954
|
-
t =
|
|
1954
|
+
t = Yi(), _e(n.$$.fragment), this.first = t;
|
|
1955
1955
|
},
|
|
1956
1956
|
m(f, u) {
|
|
1957
|
-
|
|
1957
|
+
I(f, t, u), me(n, f, u), r = !0;
|
|
1958
1958
|
},
|
|
1959
1959
|
p(f, u) {
|
|
1960
1960
|
var h;
|
|
@@ -1962,93 +1962,93 @@ function ai(i, e) {
|
|
|
1962
1962
|
const d = {};
|
|
1963
1963
|
u[0] & /*listFeatures*/
|
|
1964
1964
|
8192 && (d.feature = /*feature*/
|
|
1965
|
-
e[
|
|
1965
|
+
e[97]), u[0] & /*showPlaceType*/
|
|
1966
1966
|
2048 && (d.showPlaceType = /*showPlaceType*/
|
|
1967
1967
|
e[11]), u[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
1968
1968
|
57344 && (d.style = /*selectedItemIndex*/
|
|
1969
1969
|
e[15] === /*i*/
|
|
1970
|
-
e[
|
|
1970
|
+
e[99] ? "selected" : (
|
|
1971
1971
|
/*picked*/
|
|
1972
1972
|
((h = e[14]) == null ? void 0 : h.id) === /*feature*/
|
|
1973
|
-
e[
|
|
1973
|
+
e[97].id ? "picked" : "default"
|
|
1974
1974
|
)), u[0] & /*iconsBaseUrl*/
|
|
1975
1975
|
4096 && (d.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1976
1976
|
e[12]), n.$set(d);
|
|
1977
1977
|
},
|
|
1978
1978
|
i(f) {
|
|
1979
|
-
r || (
|
|
1979
|
+
r || (j(n.$$.fragment, f), r = !0);
|
|
1980
1980
|
},
|
|
1981
1981
|
o(f) {
|
|
1982
|
-
|
|
1982
|
+
q(n.$$.fragment, f), r = !1;
|
|
1983
1983
|
},
|
|
1984
1984
|
d(f) {
|
|
1985
|
-
f &&
|
|
1985
|
+
f && U(t), ge(n, f);
|
|
1986
1986
|
}
|
|
1987
1987
|
};
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1990
|
-
let e, t, n, r, l, c,
|
|
1991
|
-
l = new
|
|
1989
|
+
function Kn(i) {
|
|
1990
|
+
let e, t, n, r, l, c, s, f, u, d, h, v, y, E, O, p, S, W, C, H, X, Q = !1;
|
|
1991
|
+
l = new Cn({}), h = new fi({});
|
|
1992
1992
|
let w = (
|
|
1993
1993
|
/*abortController*/
|
|
1994
|
-
i[20] &&
|
|
1994
|
+
i[20] && ii()
|
|
1995
1995
|
), g = (
|
|
1996
1996
|
/*enableReverse*/
|
|
1997
|
-
i[6] === "button" &&
|
|
1997
|
+
i[6] === "button" && ni(i)
|
|
1998
1998
|
);
|
|
1999
1999
|
const N = (
|
|
2000
2000
|
/*#slots*/
|
|
2001
|
-
i[
|
|
2002
|
-
),
|
|
2001
|
+
i[70].default
|
|
2002
|
+
), T = qi(
|
|
2003
2003
|
N,
|
|
2004
2004
|
i,
|
|
2005
2005
|
/*$$scope*/
|
|
2006
|
-
i[
|
|
2006
|
+
i[69],
|
|
2007
2007
|
null
|
|
2008
|
-
), L = [
|
|
2009
|
-
function
|
|
2010
|
-
var
|
|
2008
|
+
), L = [Qn, qn, Zn, Hn], m = [];
|
|
2009
|
+
function ye(_, B) {
|
|
2010
|
+
var ae, te;
|
|
2011
2011
|
return (
|
|
2012
2012
|
/*error*/
|
|
2013
2013
|
_[19] ? 0 : !/*focusedDelayed*/
|
|
2014
2014
|
_[16] && !/*keepListOpen*/
|
|
2015
2015
|
_[4] ? 1 : (
|
|
2016
2016
|
/*listFeatures*/
|
|
2017
|
-
((
|
|
2017
|
+
((ae = _[13]) == null ? void 0 : ae.length) === 0 ? 2 : (
|
|
2018
2018
|
/*listFeatures*/
|
|
2019
|
-
(
|
|
2019
|
+
(te = _[13]) != null && te.length && /*focusedDelayed*/
|
|
2020
2020
|
(_[16] || /*keepListOpen*/
|
|
2021
2021
|
_[4]) ? 3 : -1
|
|
2022
2022
|
)
|
|
2023
2023
|
)
|
|
2024
2024
|
);
|
|
2025
2025
|
}
|
|
2026
|
-
return ~(
|
|
2026
|
+
return ~(p = ye(i)) && (S = m[p] = L[p](i)), {
|
|
2027
2027
|
c() {
|
|
2028
|
-
e =
|
|
2029
|
-
|
|
2028
|
+
e = ee(), t = R("form"), n = R("div"), r = R("button"), _e(l.$$.fragment), c = ee(), s = R("input"), f = ee(), u = R("div"), d = R("button"), _e(h.$$.fragment), v = ee(), w && w.c(), y = ee(), g && g.c(), E = ee(), T && T.c(), O = ee(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
2029
|
+
s,
|
|
2030
2030
|
"placeholder",
|
|
2031
2031
|
/*placeholder*/
|
|
2032
2032
|
i[9]
|
|
2033
2033
|
), a(
|
|
2034
|
-
|
|
2034
|
+
s,
|
|
2035
2035
|
"aria-label",
|
|
2036
2036
|
/*placeholder*/
|
|
2037
2037
|
i[9]
|
|
2038
|
-
), a(
|
|
2038
|
+
), a(s, "class", "svelte-bz0zu3"), a(d, "type", "button"), a(
|
|
2039
2039
|
d,
|
|
2040
2040
|
"title",
|
|
2041
2041
|
/*clearButtonTitle*/
|
|
2042
2042
|
i[3]
|
|
2043
|
-
), a(d, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"),
|
|
2043
|
+
), a(d, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), Oe(
|
|
2044
2044
|
u,
|
|
2045
2045
|
"displayable",
|
|
2046
2046
|
/*searchValue*/
|
|
2047
2047
|
i[1] !== ""
|
|
2048
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", W =
|
|
2048
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", W = it(
|
|
2049
2049
|
/*className*/
|
|
2050
2050
|
i[2]
|
|
2051
|
-
) + " svelte-bz0zu3"),
|
|
2051
|
+
) + " svelte-bz0zu3"), Oe(
|
|
2052
2052
|
t,
|
|
2053
2053
|
"can-collapse",
|
|
2054
2054
|
/*collapsed*/
|
|
@@ -2057,66 +2057,66 @@ function Jn(i) {
|
|
|
2057
2057
|
);
|
|
2058
2058
|
},
|
|
2059
2059
|
m(_, B) {
|
|
2060
|
-
|
|
2061
|
-
|
|
2060
|
+
I(_, e, B), I(_, t, B), M(t, n), M(n, r), me(l, r, null), M(n, c), M(n, s), i[72](s), Ht(
|
|
2061
|
+
s,
|
|
2062
2062
|
/*searchValue*/
|
|
2063
2063
|
i[1]
|
|
2064
|
-
), M(n, f), M(n, u), M(u, d),
|
|
2065
|
-
|
|
2064
|
+
), M(n, f), M(n, u), M(u, d), me(h, d, null), M(u, v), w && w.m(u, null), M(n, y), g && g.m(n, null), M(n, E), T && T.m(n, null), M(t, O), ~p && m[p].m(t, null), C = !0, H || (X = [
|
|
2065
|
+
Z(
|
|
2066
2066
|
r,
|
|
2067
2067
|
"click",
|
|
2068
2068
|
/*click_handler*/
|
|
2069
|
-
i[
|
|
2069
|
+
i[71]
|
|
2070
2070
|
),
|
|
2071
|
-
|
|
2072
|
-
|
|
2071
|
+
Z(
|
|
2072
|
+
s,
|
|
2073
2073
|
"input",
|
|
2074
2074
|
/*input_1_input_handler*/
|
|
2075
|
-
i[
|
|
2075
|
+
i[73]
|
|
2076
2076
|
),
|
|
2077
|
-
|
|
2078
|
-
|
|
2077
|
+
Z(
|
|
2078
|
+
s,
|
|
2079
2079
|
"focus",
|
|
2080
2080
|
/*focus_handler*/
|
|
2081
|
-
i[
|
|
2081
|
+
i[74]
|
|
2082
2082
|
),
|
|
2083
|
-
|
|
2084
|
-
|
|
2083
|
+
Z(
|
|
2084
|
+
s,
|
|
2085
2085
|
"blur",
|
|
2086
2086
|
/*blur_handler*/
|
|
2087
|
-
i[
|
|
2087
|
+
i[75]
|
|
2088
2088
|
),
|
|
2089
|
-
|
|
2090
|
-
|
|
2089
|
+
Z(
|
|
2090
|
+
s,
|
|
2091
2091
|
"click",
|
|
2092
2092
|
/*click_handler_1*/
|
|
2093
|
-
i[
|
|
2093
|
+
i[76]
|
|
2094
2094
|
),
|
|
2095
|
-
|
|
2096
|
-
|
|
2095
|
+
Z(
|
|
2096
|
+
s,
|
|
2097
2097
|
"keydown",
|
|
2098
2098
|
/*handleKeyDown*/
|
|
2099
2099
|
i[23]
|
|
2100
2100
|
),
|
|
2101
|
-
|
|
2102
|
-
|
|
2101
|
+
Z(
|
|
2102
|
+
s,
|
|
2103
2103
|
"input",
|
|
2104
2104
|
/*handleInput*/
|
|
2105
2105
|
i[24]
|
|
2106
2106
|
),
|
|
2107
|
-
|
|
2108
|
-
|
|
2107
|
+
Z(
|
|
2108
|
+
s,
|
|
2109
2109
|
"change",
|
|
2110
2110
|
/*change_handler*/
|
|
2111
|
-
i[
|
|
2111
|
+
i[77]
|
|
2112
2112
|
),
|
|
2113
|
-
|
|
2113
|
+
Z(
|
|
2114
2114
|
d,
|
|
2115
2115
|
"click",
|
|
2116
2116
|
/*click_handler_2*/
|
|
2117
|
-
i[
|
|
2117
|
+
i[78]
|
|
2118
2118
|
),
|
|
2119
|
-
|
|
2119
|
+
Z(t, "submit", Xi(
|
|
2120
2120
|
/*handleSubmit*/
|
|
2121
2121
|
i[22]
|
|
2122
2122
|
))
|
|
@@ -2125,20 +2125,20 @@ function Jn(i) {
|
|
|
2125
2125
|
p(_, B) {
|
|
2126
2126
|
(!C || B[0] & /*placeholder*/
|
|
2127
2127
|
512) && a(
|
|
2128
|
-
|
|
2128
|
+
s,
|
|
2129
2129
|
"placeholder",
|
|
2130
2130
|
/*placeholder*/
|
|
2131
2131
|
_[9]
|
|
2132
2132
|
), (!C || B[0] & /*placeholder*/
|
|
2133
2133
|
512) && a(
|
|
2134
|
-
|
|
2134
|
+
s,
|
|
2135
2135
|
"aria-label",
|
|
2136
2136
|
/*placeholder*/
|
|
2137
2137
|
_[9]
|
|
2138
2138
|
), B[0] & /*searchValue*/
|
|
2139
|
-
2 &&
|
|
2140
|
-
_[1] &&
|
|
2141
|
-
|
|
2139
|
+
2 && s.value !== /*searchValue*/
|
|
2140
|
+
_[1] && Ht(
|
|
2141
|
+
s,
|
|
2142
2142
|
/*searchValue*/
|
|
2143
2143
|
_[1]
|
|
2144
2144
|
), (!C || B[0] & /*clearButtonTitle*/
|
|
@@ -2149,46 +2149,46 @@ function Jn(i) {
|
|
|
2149
2149
|
_[3]
|
|
2150
2150
|
), /*abortController*/
|
|
2151
2151
|
_[20] ? w ? B[0] & /*abortController*/
|
|
2152
|
-
1048576 &&
|
|
2152
|
+
1048576 && j(w, 1) : (w = ii(), w.c(), j(w, 1), w.m(u, null)) : w && (et(), q(w, 1, 1, () => {
|
|
2153
2153
|
w = null;
|
|
2154
|
-
}),
|
|
2155
|
-
2) &&
|
|
2154
|
+
}), tt()), (!C || B[0] & /*searchValue*/
|
|
2155
|
+
2) && Oe(
|
|
2156
2156
|
u,
|
|
2157
2157
|
"displayable",
|
|
2158
2158
|
/*searchValue*/
|
|
2159
2159
|
_[1] !== ""
|
|
2160
2160
|
), /*enableReverse*/
|
|
2161
2161
|
_[6] === "button" ? g ? (g.p(_, B), B[0] & /*enableReverse*/
|
|
2162
|
-
64 &&
|
|
2162
|
+
64 && j(g, 1)) : (g = ni(_), g.c(), j(g, 1), g.m(n, E)) : g && (et(), q(g, 1, 1, () => {
|
|
2163
2163
|
g = null;
|
|
2164
|
-
}),
|
|
2165
|
-
|
|
2166
|
-
|
|
2164
|
+
}), tt()), T && T.p && (!C || B[2] & /*$$scope*/
|
|
2165
|
+
128) && Ki(
|
|
2166
|
+
T,
|
|
2167
2167
|
N,
|
|
2168
2168
|
_,
|
|
2169
2169
|
/*$$scope*/
|
|
2170
|
-
_[
|
|
2171
|
-
C ?
|
|
2170
|
+
_[69],
|
|
2171
|
+
C ? Qi(
|
|
2172
2172
|
N,
|
|
2173
2173
|
/*$$scope*/
|
|
2174
|
-
_[
|
|
2174
|
+
_[69],
|
|
2175
2175
|
B,
|
|
2176
2176
|
null
|
|
2177
|
-
) :
|
|
2177
|
+
) : Vi(
|
|
2178
2178
|
/*$$scope*/
|
|
2179
|
-
_[
|
|
2179
|
+
_[69]
|
|
2180
2180
|
),
|
|
2181
2181
|
null
|
|
2182
2182
|
);
|
|
2183
|
-
let
|
|
2184
|
-
|
|
2185
|
-
m[
|
|
2186
|
-
}),
|
|
2187
|
-
4 && W !== (W =
|
|
2183
|
+
let ae = p;
|
|
2184
|
+
p = ye(_), p === ae ? ~p && m[p].p(_, B) : (S && (et(), q(m[ae], 1, 1, () => {
|
|
2185
|
+
m[ae] = null;
|
|
2186
|
+
}), tt()), ~p ? (S = m[p], S ? S.p(_, B) : (S = m[p] = L[p](_), S.c()), j(S, 1), S.m(t, null)) : S = null), (!C || B[0] & /*className*/
|
|
2187
|
+
4 && W !== (W = it(
|
|
2188
2188
|
/*className*/
|
|
2189
2189
|
_[2]
|
|
2190
2190
|
) + " svelte-bz0zu3")) && a(t, "class", W), (!C || B[0] & /*className, collapsed, searchValue*/
|
|
2191
|
-
38) &&
|
|
2191
|
+
38) && Oe(
|
|
2192
2192
|
t,
|
|
2193
2193
|
"can-collapse",
|
|
2194
2194
|
/*collapsed*/
|
|
@@ -2197,18 +2197,18 @@ function Jn(i) {
|
|
|
2197
2197
|
);
|
|
2198
2198
|
},
|
|
2199
2199
|
i(_) {
|
|
2200
|
-
C || (
|
|
2200
|
+
C || (j(Q), j(l.$$.fragment, _), j(h.$$.fragment, _), j(w), j(g), j(T, _), j(S), C = !0);
|
|
2201
2201
|
},
|
|
2202
2202
|
o(_) {
|
|
2203
|
-
Q
|
|
2203
|
+
q(Q), q(l.$$.fragment, _), q(h.$$.fragment, _), q(w), q(g), q(T, _), q(S), C = !1;
|
|
2204
2204
|
},
|
|
2205
2205
|
d(_) {
|
|
2206
|
-
_ && (
|
|
2206
|
+
_ && (U(e), U(t)), ge(l), i[72](null), ge(h), w && w.d(), g && g.d(), T && T.d(_), ~p && m[p].d(), H = !1, he(X);
|
|
2207
2207
|
}
|
|
2208
2208
|
};
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2211
|
-
let n, r, l, { $$slots: c = {}, $$scope:
|
|
2210
|
+
function Vn(i, e, t) {
|
|
2211
|
+
let n, r, l, { $$slots: c = {}, $$scope: s } = e;
|
|
2212
2212
|
const f = {
|
|
2213
2213
|
continental_marine: 4,
|
|
2214
2214
|
country: 4,
|
|
@@ -2233,304 +2233,290 @@ function xn(i, e, t) {
|
|
|
2233
2233
|
"poi.restaurant": 18,
|
|
2234
2234
|
"poi.aerodrome": 13
|
|
2235
2235
|
};
|
|
2236
|
-
let { class: u = void 0 } = e, { apiKey: d } = e, { bbox: h = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: y = !1 } = e, { clearListOnPick: E = !1 } = e, { keepListOpen:
|
|
2237
|
-
const
|
|
2238
|
-
let { reverseGeocodingLimit: L =
|
|
2239
|
-
const
|
|
2240
|
-
let { reverseGeocodingTypes:
|
|
2241
|
-
const
|
|
2242
|
-
let { reverseGeocodingExcludeTypes:
|
|
2243
|
-
} } = e, { adjustUrl:
|
|
2236
|
+
let { class: u = void 0 } = e, { apiKey: d } = e, { bbox: h = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: y = !1 } = e, { clearListOnPick: E = !1 } = e, { keepListOpen: O = !1 } = e, { collapsed: p = !1 } = e, { country: S = void 0 } = e, { debounceSearch: W = 200 } = e, { enableReverse: C = "never" } = e, { errorMessage: H = "Something went wrong…" } = e, { filter: X = () => !0 } = e, { flyTo: Q = !0 } = e, { fuzzyMatch: w = !0 } = e, { language: g = void 0 } = e, { limit: N = void 0 } = e;
|
|
2237
|
+
const T = 41415112612;
|
|
2238
|
+
let { reverseGeocodingLimit: L = T } = e, { mapController: m = void 0 } = e, { minLength: ye = 2 } = e, { noResultsMessage: _ = "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: B = "Search" } = e, { proximity: ae = [{ type: "server-geolocation" }] } = e, { reverseActive: te = C === "always" } = e, { reverseButtonTitle: Nt = "toggle reverse geocoding" } = e, { searchValue: K = "" } = e, { pickedResultStyle: Ge = "full-geometry" } = e, { showPlaceType: Mt = "if-needed" } = e, { showResultsWhileTyping: He = !0 } = e, { selectFirst: Te = !0 } = e, { flyToSelected: Ze = !1 } = e, { markerOnSelected: qe = !0 } = e, { types: rt = void 0 } = e;
|
|
2239
|
+
const Ct = [];
|
|
2240
|
+
let { reverseGeocodingTypes: Qe = Ct } = e, { exhaustiveReverseGeocoding: st = !1 } = e, { excludeTypes: ot = !1 } = e;
|
|
2241
|
+
const Wt = void 0;
|
|
2242
|
+
let { reverseGeocodingExcludeTypes: Ke = Wt } = e, { zoom: Ve = f } = e, { apiUrl: at = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: lt = {} } = e, { iconsBaseUrl: Ot = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/" } = e, { adjustUrlQuery: ut = () => {
|
|
2243
|
+
} } = e, { adjustUrl: ct = () => {
|
|
2244
2244
|
} } = e;
|
|
2245
|
-
function
|
|
2246
|
-
re.focus(
|
|
2245
|
+
function bi(o) {
|
|
2246
|
+
re.focus(o);
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function vi() {
|
|
2249
2249
|
re.blur();
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2252
|
-
t(1,
|
|
2251
|
+
function zt(o, A = !0, F = !1) {
|
|
2252
|
+
t(1, K = o), A ? (t(15, z = -1), Rt()) : (Ut(void 0, !F, F), setTimeout(() => {
|
|
2253
2253
|
re.focus(), re.select();
|
|
2254
2254
|
}));
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2257
|
-
t(13,
|
|
2258
|
-
}
|
|
2259
|
-
function Ei() {
|
|
2260
|
-
t(65, G = []), t(14, b = void 0);
|
|
2256
|
+
function Li() {
|
|
2257
|
+
t(13, k = void 0), t(14, b = void 0), t(15, z = -1);
|
|
2261
2258
|
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
function pi() {
|
|
2265
|
-
return !!te;
|
|
2259
|
+
function _i() {
|
|
2260
|
+
t(64, G = []), t(14, b = void 0);
|
|
2266
2261
|
}
|
|
2267
|
-
|
|
2262
|
+
let k, G, b, Dt = "", re, z = -1, le, Ye = [], we, Ne, Me, dt, de = !1;
|
|
2263
|
+
const yi = /* @__PURE__ */ new Set(), be = ci();
|
|
2264
|
+
$i(() => {
|
|
2268
2265
|
m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
|
|
2269
2266
|
});
|
|
2270
|
-
function
|
|
2271
|
-
if (t(17,
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
const A = s || !ht(Z);
|
|
2279
|
-
De(Z, { exact: !0 }).then(() => {
|
|
2280
|
-
t(65, G = p), t(14, b = void 0), A && Ti();
|
|
2281
|
-
}).catch((j) => t(19, ue = j));
|
|
2267
|
+
function Rt(o) {
|
|
2268
|
+
if (t(17, de = !1), Ne && (clearTimeout(Ne), Ne = void 0), z > -1 && k)
|
|
2269
|
+
t(14, b = k[z]), t(1, K = b.place_type[0] === "reverse" ? b.place_name : b.place_name.replace(/,.*/, "")), t(19, le = void 0), t(64, G = void 0), t(15, z = -1);
|
|
2270
|
+
else if (K) {
|
|
2271
|
+
const A = o || !ft(K);
|
|
2272
|
+
mt(K, { exact: !0 }).then(() => {
|
|
2273
|
+
t(64, G = k), t(14, b = void 0), A && wi();
|
|
2274
|
+
}).catch((F) => t(19, le = F));
|
|
2282
2275
|
}
|
|
2283
2276
|
}
|
|
2284
|
-
function
|
|
2277
|
+
function ft(o) {
|
|
2285
2278
|
try {
|
|
2286
|
-
return
|
|
2279
|
+
return Gn(o, 6);
|
|
2287
2280
|
} catch {
|
|
2288
2281
|
return !1;
|
|
2289
2282
|
}
|
|
2290
2283
|
}
|
|
2291
|
-
async function
|
|
2292
|
-
var
|
|
2293
|
-
t(19,
|
|
2294
|
-
const
|
|
2295
|
-
t(20,
|
|
2284
|
+
async function mt(o, { byId: A = !1, exact: F = !1 } = {}) {
|
|
2285
|
+
var $, ue, ve;
|
|
2286
|
+
t(19, le = void 0), we == null || we.abort();
|
|
2287
|
+
const x = new AbortController();
|
|
2288
|
+
t(20, we = x);
|
|
2296
2289
|
try {
|
|
2297
|
-
const
|
|
2290
|
+
const D = ft(o), Re = new URL(at + "/" + encodeURIComponent(D ? D.decimalLongitude + "," + D.decimalLatitude : o) + ".json"), ie = Re.searchParams;
|
|
2298
2291
|
g !== void 0 && ie.set("language", Array.isArray(g) ? g.join(",") : g ?? "");
|
|
2299
|
-
const [
|
|
2300
|
-
let
|
|
2301
|
-
|
|
2302
|
-
const
|
|
2303
|
-
if (
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2292
|
+
const [bt] = (m == null ? void 0 : m.getCenterAndZoom()) ?? [];
|
|
2293
|
+
let ce = ($ = !D || Qe === Ct ? rt : Qe) == null ? void 0 : $.map((V) => typeof V == "string" ? V : bt === void 0 || (V[0] ?? 0) <= bt && bt < (V[1] ?? 1 / 0) ? V[2] : void 0).filter((V) => V !== void 0);
|
|
2294
|
+
ce && (ce = [...new Set(ce)], ie.set("types", ce.join(",")));
|
|
2295
|
+
const At = !D || Ke === Wt ? ot : Ke;
|
|
2296
|
+
if (At && ie.set("excludeTypes", String(At)), h && ie.set("bbox", h.map((V) => V.toFixed(6)).join(",")), S && ie.set("country", Array.isArray(S) ? S.join(",") : S), !A && !D) {
|
|
2297
|
+
const V = await On(m, ae, x);
|
|
2298
|
+
V && ie.set("proximity", V), (F || !He) && ie.set("autocomplete", "false"), ie.set("fuzzyMatch", String(w));
|
|
2306
2299
|
}
|
|
2307
|
-
const
|
|
2308
|
-
|
|
2309
|
-
const
|
|
2310
|
-
if (
|
|
2311
|
-
A ? (E && t(13,
|
|
2300
|
+
const Ue = L === T ? N : L;
|
|
2301
|
+
Ue !== void 0 && Ue > 1 && (ce == null ? void 0 : ce.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), D ? (Ue === 1 || Ue !== void 0 && (st || (ce == null ? void 0 : ce.length) === 1)) && ie.set("limit", String(Ue)) : N !== void 0 && ie.set("limit", String(N)), ie.set("key", d), ut(ie), ct(Re);
|
|
2302
|
+
const Pi = Re.searchParams.get("types") === "" && Re.searchParams.get("excludeTypes") !== "true", Xe = Re.toString();
|
|
2303
|
+
if (Xe === Dt) {
|
|
2304
|
+
A ? (E && t(13, k = void 0), t(14, b = Ye[0])) : (t(13, k = Ye), ((ue = k[z]) == null ? void 0 : ue.id) !== (r == null ? void 0 : r.id) && t(15, z = -1));
|
|
2312
2305
|
return;
|
|
2313
2306
|
}
|
|
2314
|
-
|
|
2315
|
-
let
|
|
2316
|
-
if (
|
|
2317
|
-
|
|
2307
|
+
Dt = Xe;
|
|
2308
|
+
let Ie;
|
|
2309
|
+
if (Pi)
|
|
2310
|
+
Ie = { type: "FeatureCollection", features: [] };
|
|
2318
2311
|
else {
|
|
2319
|
-
const
|
|
2320
|
-
if (!
|
|
2321
|
-
throw new Error(await
|
|
2322
|
-
|
|
2312
|
+
const V = await fetch(Xe, { signal: x.signal, ...lt });
|
|
2313
|
+
if (!V.ok)
|
|
2314
|
+
throw new Error(await V.text());
|
|
2315
|
+
Ie = await V.json();
|
|
2323
2316
|
}
|
|
2324
|
-
|
|
2317
|
+
be("response", { url: Xe, featureCollection: Ie }), A ? (E && t(13, k = void 0), t(14, b = Ie.features[0]), Ye = [b]) : (t(13, k = Ie.features.filter(X)), D && k.unshift({
|
|
2325
2318
|
type: "Feature",
|
|
2326
2319
|
properties: {},
|
|
2327
|
-
id: "reverse_" +
|
|
2328
|
-
text:
|
|
2329
|
-
place_name:
|
|
2320
|
+
id: "reverse_" + D.decimalLongitude + "_" + D.decimalLatitude,
|
|
2321
|
+
text: D.decimalLatitude + ", " + D.decimalLongitude,
|
|
2322
|
+
place_name: D.decimalLatitude + ", " + D.decimalLongitude,
|
|
2330
2323
|
place_type: ["reverse"],
|
|
2331
|
-
center: [
|
|
2324
|
+
center: [D.decimalLongitude, D.decimalLatitude],
|
|
2332
2325
|
bbox: [
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2326
|
+
D.decimalLongitude,
|
|
2327
|
+
D.decimalLatitude,
|
|
2328
|
+
D.decimalLongitude,
|
|
2329
|
+
D.decimalLatitude
|
|
2337
2330
|
],
|
|
2338
2331
|
geometry: {
|
|
2339
2332
|
type: "Point",
|
|
2340
|
-
coordinates: [
|
|
2333
|
+
coordinates: [D.decimalLongitude, D.decimalLatitude]
|
|
2341
2334
|
}
|
|
2342
|
-
}),
|
|
2343
|
-
} catch (
|
|
2344
|
-
if (
|
|
2335
|
+
}), Ye = k, ((ve = k[z]) == null ? void 0 : ve.id) !== (r == null ? void 0 : r.id) && t(15, z = -1), D && re.focus());
|
|
2336
|
+
} catch (D) {
|
|
2337
|
+
if (D && typeof D == "object" && "name" in D && D.name === "AbortError")
|
|
2345
2338
|
return;
|
|
2346
|
-
throw
|
|
2339
|
+
throw D;
|
|
2347
2340
|
} finally {
|
|
2348
|
-
|
|
2341
|
+
x === we && t(20, we = void 0);
|
|
2349
2342
|
}
|
|
2350
2343
|
}
|
|
2351
|
-
function
|
|
2352
|
-
var
|
|
2353
|
-
if (!(G != null && G.length) || !
|
|
2344
|
+
function wi() {
|
|
2345
|
+
var x;
|
|
2346
|
+
if (!(G != null && G.length) || !Q)
|
|
2354
2347
|
return;
|
|
2355
|
-
const
|
|
2356
|
-
let
|
|
2357
|
-
for (const
|
|
2358
|
-
const
|
|
2359
|
-
if (
|
|
2360
|
-
for (const
|
|
2361
|
-
|
|
2348
|
+
const o = [180, 90, -180, -90], A = !G.some(($) => !$.matching_text);
|
|
2349
|
+
let F;
|
|
2350
|
+
for (const $ of G) {
|
|
2351
|
+
const ue = De($);
|
|
2352
|
+
if (F = F === void 0 ? ue : ue === void 0 ? F : Math.max(F, ue), A || !$.matching_text)
|
|
2353
|
+
for (const ve of [0, 1, 2, 3])
|
|
2354
|
+
o[ve] = Math[ve < 2 ? "min" : "max"](o[ve], ((x = $.bbox) == null ? void 0 : x[ve]) ?? $.center[ve % 2]);
|
|
2362
2355
|
}
|
|
2363
|
-
m && G.length > 0 && (b &&
|
|
2356
|
+
m && G.length > 0 && (b && o[0] === o[2] && o[1] === o[3] ? m.flyTo(b.center, De(b)) : m.fitBounds(Kt(o), 50, F));
|
|
2364
2357
|
}
|
|
2365
|
-
function
|
|
2366
|
-
!b || !m || (!b.bbox || b.bbox[0] === b.bbox[2] && b.bbox[1] === b.bbox[3] ? m.flyTo(b.center,
|
|
2358
|
+
function gt() {
|
|
2359
|
+
!b || !m || (!b.bbox || b.bbox[0] === b.bbox[2] && b.bbox[1] === b.bbox[3] ? m.flyTo(b.center, De(b)) : m.fitBounds(Kt(b.bbox), 50, De(b)));
|
|
2367
2360
|
}
|
|
2368
|
-
function
|
|
2369
|
-
var
|
|
2370
|
-
if (!
|
|
2361
|
+
function De(o) {
|
|
2362
|
+
var F;
|
|
2363
|
+
if (!o.bbox || o.bbox[0] !== o.bbox[2] && o.bbox[1] !== o.bbox[3])
|
|
2371
2364
|
return;
|
|
2372
|
-
const A =
|
|
2373
|
-
return (Array.isArray((
|
|
2374
|
-
(
|
|
2375
|
-
const
|
|
2376
|
-
return
|
|
2365
|
+
const A = o.id.replace(/\..*/, "");
|
|
2366
|
+
return (Array.isArray((F = o.properties) == null ? void 0 : F.categories) ? o.properties.categories.reduce(
|
|
2367
|
+
(x, $) => {
|
|
2368
|
+
const ue = Ve[A + "." + $];
|
|
2369
|
+
return x === void 0 ? ue : ue === void 0 ? x : Math.max(x, ue);
|
|
2377
2370
|
},
|
|
2378
2371
|
void 0
|
|
2379
|
-
) : void 0) ??
|
|
2372
|
+
) : void 0) ?? Ve[A];
|
|
2380
2373
|
}
|
|
2381
|
-
function
|
|
2382
|
-
t(0,
|
|
2374
|
+
function Ei(o) {
|
|
2375
|
+
t(0, te = C === "always"), t(13, k = void 0), t(14, b = void 0), t(15, z = -1), zt(o[1].toFixed(6) + ", " + Wn(o[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2383
2376
|
}
|
|
2384
|
-
function
|
|
2385
|
-
if (!
|
|
2377
|
+
function Si(o) {
|
|
2378
|
+
if (!k)
|
|
2386
2379
|
return;
|
|
2387
|
-
let A =
|
|
2388
|
-
A && (re.focus(), t(17,
|
|
2380
|
+
let A = o.key === "ArrowDown" ? 1 : o.key === "ArrowUp" ? -1 : 0;
|
|
2381
|
+
A && (re.focus(), t(17, de = !0), o.preventDefault(), b && z === -1 && t(15, z = k.findIndex((F) => F.id === (b == null ? void 0 : b.id))), z === (b || Te ? 0 : -1) && A === -1 && t(15, z = k.length), t(15, z += A), z >= k.length && t(15, z = -1), z < 0 && (b || Te) && t(15, z = 0));
|
|
2389
2382
|
}
|
|
2390
|
-
function
|
|
2391
|
-
if (t(19,
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
()
|
|
2403
|
-
t(66, te = void 0), De(oe, { appendSpace: !0 }).catch((V) => t(19, ue = V));
|
|
2404
|
-
},
|
|
2405
|
-
st
|
|
2406
|
-
));
|
|
2383
|
+
function Ut(o, A = !0, F = !1) {
|
|
2384
|
+
if (t(19, le = void 0), t(14, b = void 0), t(17, de = !0), He || F) {
|
|
2385
|
+
if (Ne && clearTimeout(Ne), K.length < ye)
|
|
2386
|
+
return;
|
|
2387
|
+
const x = K;
|
|
2388
|
+
Ne = window.setTimeout(
|
|
2389
|
+
() => {
|
|
2390
|
+
mt(x).catch(($) => t(19, le = $));
|
|
2391
|
+
},
|
|
2392
|
+
A ? W : 0
|
|
2393
|
+
);
|
|
2394
|
+
} else
|
|
2395
|
+
t(13, k = void 0), t(19, le = void 0);
|
|
2407
2396
|
}
|
|
2408
|
-
function
|
|
2409
|
-
b && (b == null ? void 0 : b.id) === (
|
|
2397
|
+
function ht(o) {
|
|
2398
|
+
b && (b == null ? void 0 : b.id) === (o == null ? void 0 : o.id) ? gt() : (t(14, b = o), t(1, K = o.place_name));
|
|
2410
2399
|
}
|
|
2411
|
-
function
|
|
2412
|
-
t(15,
|
|
2400
|
+
function It(o) {
|
|
2401
|
+
t(15, z = o);
|
|
2413
2402
|
}
|
|
2414
|
-
function
|
|
2415
|
-
(!
|
|
2403
|
+
function pi() {
|
|
2404
|
+
(!Te || b) && t(15, z = -1), Ze && gt();
|
|
2416
2405
|
}
|
|
2417
|
-
const
|
|
2418
|
-
function
|
|
2419
|
-
|
|
2420
|
-
re =
|
|
2406
|
+
const ki = () => re.focus();
|
|
2407
|
+
function Ti(o) {
|
|
2408
|
+
wt[o ? "unshift" : "push"](() => {
|
|
2409
|
+
re = o, t(18, re);
|
|
2421
2410
|
});
|
|
2422
2411
|
}
|
|
2423
|
-
function
|
|
2424
|
-
|
|
2412
|
+
function Ni() {
|
|
2413
|
+
K = this.value, t(1, K), t(17, de), t(31, y), t(16, Me);
|
|
2425
2414
|
}
|
|
2426
|
-
const
|
|
2427
|
-
t(1,
|
|
2428
|
-
},
|
|
2415
|
+
const Mi = () => t(17, de = !0), Ci = () => t(17, de = !1), Wi = () => t(17, de = !0), Oi = () => t(14, b = void 0), zi = () => {
|
|
2416
|
+
t(1, K = ""), t(14, b = void 0), re.focus();
|
|
2417
|
+
}, Di = () => t(0, te = !te), Ri = () => t(19, le = void 0), Ui = (o) => It(o), Ii = (o) => ht(o), Ai = () => {
|
|
2429
2418
|
};
|
|
2430
|
-
return i.$$set = (
|
|
2431
|
-
"class" in
|
|
2419
|
+
return i.$$set = (o) => {
|
|
2420
|
+
"class" in o && t(2, u = o.class), "apiKey" in o && t(29, d = o.apiKey), "bbox" in o && t(30, h = o.bbox), "clearButtonTitle" in o && t(3, v = o.clearButtonTitle), "clearOnBlur" in o && t(31, y = o.clearOnBlur), "clearListOnPick" in o && t(32, E = o.clearListOnPick), "keepListOpen" in o && t(4, O = o.keepListOpen), "collapsed" in o && t(5, p = o.collapsed), "country" in o && t(33, S = o.country), "debounceSearch" in o && t(34, W = o.debounceSearch), "enableReverse" in o && t(6, C = o.enableReverse), "errorMessage" in o && t(7, H = o.errorMessage), "filter" in o && t(35, X = o.filter), "flyTo" in o && t(36, Q = o.flyTo), "fuzzyMatch" in o && t(37, w = o.fuzzyMatch), "language" in o && t(38, g = o.language), "limit" in o && t(39, N = o.limit), "reverseGeocodingLimit" in o && t(40, L = o.reverseGeocodingLimit), "mapController" in o && t(41, m = o.mapController), "minLength" in o && t(42, ye = o.minLength), "noResultsMessage" in o && t(8, _ = o.noResultsMessage), "placeholder" in o && t(9, B = o.placeholder), "proximity" in o && t(43, ae = o.proximity), "reverseActive" in o && t(0, te = o.reverseActive), "reverseButtonTitle" in o && t(10, Nt = o.reverseButtonTitle), "searchValue" in o && t(1, K = o.searchValue), "pickedResultStyle" in o && t(44, Ge = o.pickedResultStyle), "showPlaceType" in o && t(11, Mt = o.showPlaceType), "showResultsWhileTyping" in o && t(45, He = o.showResultsWhileTyping), "selectFirst" in o && t(46, Te = o.selectFirst), "flyToSelected" in o && t(47, Ze = o.flyToSelected), "markerOnSelected" in o && t(48, qe = o.markerOnSelected), "types" in o && t(49, rt = o.types), "reverseGeocodingTypes" in o && t(50, Qe = o.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in o && t(51, st = o.exhaustiveReverseGeocoding), "excludeTypes" in o && t(52, ot = o.excludeTypes), "reverseGeocodingExcludeTypes" in o && t(53, Ke = o.reverseGeocodingExcludeTypes), "zoom" in o && t(54, Ve = o.zoom), "apiUrl" in o && t(55, at = o.apiUrl), "fetchParameters" in o && t(56, lt = o.fetchParameters), "iconsBaseUrl" in o && t(12, Ot = o.iconsBaseUrl), "adjustUrlQuery" in o && t(57, ut = o.adjustUrlQuery), "adjustUrl" in o && t(58, ct = o.adjustUrl), "$$scope" in o && t(69, s = o.$$scope);
|
|
2432
2421
|
}, i.$$.update = () => {
|
|
2433
2422
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2434
|
-
64 && t(0,
|
|
2423
|
+
64 && t(0, te = C === "always"), i.$$.dirty[0] & /*picked*/
|
|
2435
2424
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2436
|
-
8192 &&
|
|
2425
|
+
8192 && Ge !== "marker-only" && b && !b.address && b.geometry.type === "Point" && b.place_type[0] !== "reverse" && mt(b.id, { byId: !0 }).catch((o) => t(19, le = o)), i.$$.dirty[0] & /*picked*/
|
|
2437
2426
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2438
2427
|
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2439
|
-
|
|
2428
|
+
8 && (m && b && b.id !== dt && Q && (gt(), E && t(13, k = void 0), t(64, G = void 0), t(15, z = -1)), t(65, dt = b == null ? void 0 : b.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2440
2429
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2441
2430
|
1 && setTimeout(() => {
|
|
2442
|
-
t(16,
|
|
2431
|
+
t(16, Me = de), y && !Me && t(1, K = "");
|
|
2443
2432
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2444
2433
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2445
|
-
2048 &&
|
|
2446
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2447
|
-
65536 && Se && p != null && p.length && (pi() || t(15, O = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2434
|
+
2048 && K.length < ye && (t(13, k = void 0), t(19, le = void 0), t(64, G = k)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2448
2435
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2449
|
-
|
|
2436
|
+
32768 && Te && k != null && k.length && z == -1 && !b && t(15, z = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2450
2437
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2451
|
-
|
|
2438
|
+
4 && G !== k && t(64, G = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2452
2439
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2453
2440
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2454
|
-
|
|
2455
|
-
switch (
|
|
2441
|
+
4 && m && m.setEventHandler((o) => {
|
|
2442
|
+
switch (o.type) {
|
|
2456
2443
|
case "mapClick":
|
|
2457
|
-
|
|
2444
|
+
te && Ei(o.coordinates);
|
|
2458
2445
|
break;
|
|
2459
2446
|
case "markerClick":
|
|
2460
2447
|
{
|
|
2461
|
-
const A =
|
|
2462
|
-
A &&
|
|
2448
|
+
const A = k == null ? void 0 : k.find((F) => F.id === o.id);
|
|
2449
|
+
A && ht(A);
|
|
2463
2450
|
}
|
|
2464
2451
|
break;
|
|
2465
2452
|
case "markerMouseEnter":
|
|
2466
|
-
G && t(15,
|
|
2453
|
+
G && t(15, z = Me ? (k == null ? void 0 : k.findIndex((A) => A.id === o.id)) ?? -1 : -1);
|
|
2467
2454
|
break;
|
|
2468
2455
|
case "markerMouseLeave":
|
|
2469
|
-
G && t(15,
|
|
2456
|
+
G && t(15, z = -1);
|
|
2470
2457
|
break;
|
|
2471
2458
|
}
|
|
2472
2459
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2473
|
-
40960 && t(
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
8192 && t(
|
|
2477
|
-
|
|
2478
|
-
|
|
2460
|
+
40960 && t(66, r = k == null ? void 0 : k[z]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2461
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2462
|
+
16 && m && r && Q && Ze && m.flyTo(r.center, De(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2463
|
+
8192 && t(68, n = Ge === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2464
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2465
|
+
64 && (qe || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2479
2466
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2480
|
-
|
|
2481
|
-
|
|
2467
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2468
|
+
84 && m && qe && !G && (m.setFeatures(r ? [r] : void 0, b, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2482
2469
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2483
2470
|
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2484
|
-
|
|
2471
|
+
68 && m && m.setFeatures(G, b, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2485
2472
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2486
2473
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2487
|
-
|
|
2488
|
-
80 && r && (window.clearTimeout(te), t(66, te = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2474
|
+
4 && G && m && m.setSelectedMarker(z), i.$$.dirty[0] & /*searchValue*/
|
|
2489
2475
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2490
2476
|
1024 && m) {
|
|
2491
|
-
const
|
|
2492
|
-
m.setReverseMarker(
|
|
2477
|
+
const o = ft(K);
|
|
2478
|
+
m.setReverseMarker(o ? [o.decimalLongitude, o.decimalLatitude] : void 0);
|
|
2493
2479
|
}
|
|
2494
2480
|
i.$$.dirty[2] & /*selected*/
|
|
2495
|
-
|
|
2496
|
-
16384 &&
|
|
2497
|
-
73744 && t(
|
|
2498
|
-
|
|
2499
|
-
8192 &&
|
|
2500
|
-
|
|
2501
|
-
1 &&
|
|
2502
|
-
2 &&
|
|
2481
|
+
16 && be("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2482
|
+
16384 && be("pick", { feature: b }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2483
|
+
73744 && t(67, l = !!(k != null && k.length) && (Me || O)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2484
|
+
32 && be("optionsvisibilitychange", { optionsVisible: l }), i.$$.dirty[0] & /*listFeatures*/
|
|
2485
|
+
8192 && be("featureslisted", { features: k }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2486
|
+
4 && be("featuresmarked", { features: G }), i.$$.dirty[0] & /*reverseActive*/
|
|
2487
|
+
1 && be("reversetoggle", { reverse: te }), i.$$.dirty[0] & /*searchValue*/
|
|
2488
|
+
2 && be("querychange", { query: K }), i.$$.dirty[0] & /*reverseActive*/
|
|
2503
2489
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2504
|
-
1024 && m && m.indicateReverse(
|
|
2490
|
+
1024 && m && m.indicateReverse(te);
|
|
2505
2491
|
}, [
|
|
2506
|
-
|
|
2507
|
-
|
|
2492
|
+
te,
|
|
2493
|
+
K,
|
|
2508
2494
|
u,
|
|
2509
2495
|
v,
|
|
2510
|
-
|
|
2511
|
-
|
|
2496
|
+
O,
|
|
2497
|
+
p,
|
|
2512
2498
|
C,
|
|
2513
2499
|
H,
|
|
2514
2500
|
_,
|
|
2515
2501
|
B,
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2502
|
+
Nt,
|
|
2503
|
+
Mt,
|
|
2504
|
+
Ot,
|
|
2505
|
+
k,
|
|
2520
2506
|
b,
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2507
|
+
z,
|
|
2508
|
+
Me,
|
|
2509
|
+
de,
|
|
2524
2510
|
re,
|
|
2525
|
-
|
|
2526
|
-
|
|
2511
|
+
le,
|
|
2512
|
+
we,
|
|
2513
|
+
yi,
|
|
2514
|
+
Rt,
|
|
2527
2515
|
Si,
|
|
2528
2516
|
Ut,
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
Pt,
|
|
2533
|
-
Mi,
|
|
2517
|
+
ht,
|
|
2518
|
+
It,
|
|
2519
|
+
pi,
|
|
2534
2520
|
f,
|
|
2535
2521
|
d,
|
|
2536
2522
|
h,
|
|
@@ -2538,67 +2524,65 @@ function xn(i, e, t) {
|
|
|
2538
2524
|
E,
|
|
2539
2525
|
S,
|
|
2540
2526
|
W,
|
|
2541
|
-
|
|
2542
|
-
|
|
2527
|
+
X,
|
|
2528
|
+
Q,
|
|
2543
2529
|
w,
|
|
2544
2530
|
g,
|
|
2545
2531
|
N,
|
|
2546
2532
|
L,
|
|
2547
2533
|
m,
|
|
2548
|
-
|
|
2549
|
-
|
|
2534
|
+
ye,
|
|
2535
|
+
ae,
|
|
2536
|
+
Ge,
|
|
2537
|
+
He,
|
|
2538
|
+
Te,
|
|
2550
2539
|
Ze,
|
|
2551
2540
|
qe,
|
|
2552
|
-
|
|
2553
|
-
Se,
|
|
2541
|
+
rt,
|
|
2554
2542
|
Qe,
|
|
2543
|
+
st,
|
|
2544
|
+
ot,
|
|
2555
2545
|
Ke,
|
|
2556
|
-
at,
|
|
2557
2546
|
Ve,
|
|
2547
|
+
at,
|
|
2558
2548
|
lt,
|
|
2559
2549
|
ut,
|
|
2560
|
-
Ye,
|
|
2561
|
-
Xe,
|
|
2562
2550
|
ct,
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2551
|
+
bi,
|
|
2552
|
+
vi,
|
|
2553
|
+
zt,
|
|
2554
|
+
Li,
|
|
2566
2555
|
_i,
|
|
2567
|
-
yi,
|
|
2568
|
-
Dt,
|
|
2569
|
-
wi,
|
|
2570
|
-
Ei,
|
|
2571
2556
|
G,
|
|
2572
|
-
|
|
2573
|
-
gt,
|
|
2557
|
+
dt,
|
|
2574
2558
|
r,
|
|
2575
2559
|
l,
|
|
2576
2560
|
n,
|
|
2577
|
-
|
|
2561
|
+
s,
|
|
2578
2562
|
c,
|
|
2563
|
+
ki,
|
|
2564
|
+
Ti,
|
|
2565
|
+
Ni,
|
|
2566
|
+
Mi,
|
|
2579
2567
|
Ci,
|
|
2580
2568
|
Wi,
|
|
2581
2569
|
Oi,
|
|
2582
2570
|
zi,
|
|
2583
|
-
Ri,
|
|
2584
2571
|
Di,
|
|
2585
|
-
|
|
2572
|
+
Ri,
|
|
2586
2573
|
Ui,
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
Bi,
|
|
2590
|
-
ji,
|
|
2591
|
-
Fi
|
|
2574
|
+
Ii,
|
|
2575
|
+
Ai
|
|
2592
2576
|
];
|
|
2593
2577
|
}
|
|
2594
|
-
let
|
|
2578
|
+
let Yn = class extends ke {
|
|
2595
2579
|
constructor(e) {
|
|
2596
|
-
super(),
|
|
2580
|
+
super(), pe(
|
|
2597
2581
|
this,
|
|
2598
2582
|
e,
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2583
|
+
Vn,
|
|
2584
|
+
Kn,
|
|
2585
|
+
Se,
|
|
2602
2586
|
{
|
|
2603
2587
|
ZOOM_DEFAULTS: 28,
|
|
2604
2588
|
class: 2,
|
|
@@ -2630,26 +2614,25 @@ let $n = class extends Me {
|
|
|
2630
2614
|
pickedResultStyle: 44,
|
|
2631
2615
|
showPlaceType: 11,
|
|
2632
2616
|
showResultsWhileTyping: 45,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
fetchParameters: 57,
|
|
2617
|
+
selectFirst: 46,
|
|
2618
|
+
flyToSelected: 47,
|
|
2619
|
+
markerOnSelected: 48,
|
|
2620
|
+
types: 49,
|
|
2621
|
+
reverseGeocodingTypes: 50,
|
|
2622
|
+
exhaustiveReverseGeocoding: 51,
|
|
2623
|
+
excludeTypes: 52,
|
|
2624
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2625
|
+
zoom: 54,
|
|
2626
|
+
apiUrl: 55,
|
|
2627
|
+
fetchParameters: 56,
|
|
2645
2628
|
iconsBaseUrl: 12,
|
|
2646
|
-
adjustUrlQuery:
|
|
2647
|
-
adjustUrl:
|
|
2648
|
-
focus:
|
|
2649
|
-
blur:
|
|
2650
|
-
setQuery:
|
|
2651
|
-
clearList:
|
|
2652
|
-
clearMap:
|
|
2629
|
+
adjustUrlQuery: 57,
|
|
2630
|
+
adjustUrl: 58,
|
|
2631
|
+
focus: 59,
|
|
2632
|
+
blur: 60,
|
|
2633
|
+
setQuery: 61,
|
|
2634
|
+
clearList: 62,
|
|
2635
|
+
clearMap: 63
|
|
2653
2636
|
},
|
|
2654
2637
|
null,
|
|
2655
2638
|
[-1, -1, -1, -1]
|
|
@@ -2659,31 +2642,31 @@ let $n = class extends Me {
|
|
|
2659
2642
|
return this.$$.ctx[28];
|
|
2660
2643
|
}
|
|
2661
2644
|
get focus() {
|
|
2662
|
-
return this.$$.ctx[
|
|
2645
|
+
return this.$$.ctx[59];
|
|
2663
2646
|
}
|
|
2664
2647
|
get blur() {
|
|
2665
|
-
return this.$$.ctx[
|
|
2648
|
+
return this.$$.ctx[60];
|
|
2666
2649
|
}
|
|
2667
2650
|
get setQuery() {
|
|
2668
|
-
return this.$$.ctx[
|
|
2651
|
+
return this.$$.ctx[61];
|
|
2669
2652
|
}
|
|
2670
2653
|
get clearList() {
|
|
2671
|
-
return this.$$.ctx[
|
|
2654
|
+
return this.$$.ctx[62];
|
|
2672
2655
|
}
|
|
2673
2656
|
get clearMap() {
|
|
2674
|
-
return this.$$.ctx[
|
|
2657
|
+
return this.$$.ctx[63];
|
|
2675
2658
|
}
|
|
2676
2659
|
};
|
|
2677
|
-
const
|
|
2660
|
+
const Xn = new FinalizationRegistry((i) => {
|
|
2678
2661
|
i.$destroy();
|
|
2679
2662
|
});
|
|
2680
|
-
var
|
|
2681
|
-
const
|
|
2663
|
+
var J, nt, hi;
|
|
2664
|
+
const Tt = class Tt extends EventTarget {
|
|
2682
2665
|
constructor({ target: t, ...n }) {
|
|
2683
2666
|
super();
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2667
|
+
_t(this, nt);
|
|
2668
|
+
_t(this, J);
|
|
2669
|
+
Bt(this, J, new Yn({
|
|
2687
2670
|
target: t,
|
|
2688
2671
|
props: n
|
|
2689
2672
|
}));
|
|
@@ -2697,15 +2680,15 @@ const Mt = class Mt extends EventTarget {
|
|
|
2697
2680
|
"reversetoggle",
|
|
2698
2681
|
"querychange"
|
|
2699
2682
|
])
|
|
2700
|
-
se(this,
|
|
2701
|
-
|
|
2683
|
+
se(this, J).$on(r, (l) => {
|
|
2684
|
+
Ft(this, nt, hi).call(this, r, l.detail);
|
|
2702
2685
|
});
|
|
2703
|
-
se(this,
|
|
2686
|
+
se(this, J).$on("select", (r) => {
|
|
2704
2687
|
const l = new CustomEvent(r.type, {
|
|
2705
2688
|
detail: r.detail
|
|
2706
2689
|
});
|
|
2707
2690
|
this.dispatchEvent(l);
|
|
2708
|
-
}),
|
|
2691
|
+
}), Xn.register(this, se(this, J));
|
|
2709
2692
|
}
|
|
2710
2693
|
/**
|
|
2711
2694
|
* Update the control options.
|
|
@@ -2713,7 +2696,7 @@ const Mt = class Mt extends EventTarget {
|
|
|
2713
2696
|
* @param options options to update
|
|
2714
2697
|
*/
|
|
2715
2698
|
setOptions(t) {
|
|
2716
|
-
se(this,
|
|
2699
|
+
se(this, J).$set(t);
|
|
2717
2700
|
}
|
|
2718
2701
|
/**
|
|
2719
2702
|
* Set the content of search input box.
|
|
@@ -2723,21 +2706,21 @@ const Mt = class Mt extends EventTarget {
|
|
|
2723
2706
|
*/
|
|
2724
2707
|
setQuery(t, n = !0) {
|
|
2725
2708
|
var r;
|
|
2726
|
-
(r = se(this,
|
|
2709
|
+
(r = se(this, J)) == null || r.setQuery(t, n);
|
|
2727
2710
|
}
|
|
2728
2711
|
/**
|
|
2729
2712
|
* Clear geocoding search results from the map.
|
|
2730
2713
|
*/
|
|
2731
2714
|
clearMap() {
|
|
2732
2715
|
var t;
|
|
2733
|
-
(t = se(this,
|
|
2716
|
+
(t = se(this, J)) == null || t.clearMap();
|
|
2734
2717
|
}
|
|
2735
2718
|
/**
|
|
2736
2719
|
* Clear search result list.
|
|
2737
2720
|
*/
|
|
2738
2721
|
clearList() {
|
|
2739
2722
|
var t;
|
|
2740
|
-
(t = se(this,
|
|
2723
|
+
(t = se(this, J)) == null || t.clearList();
|
|
2741
2724
|
}
|
|
2742
2725
|
/**
|
|
2743
2726
|
* Set reverse geocoding mode.
|
|
@@ -2746,7 +2729,7 @@ const Mt = class Mt extends EventTarget {
|
|
|
2746
2729
|
*/
|
|
2747
2730
|
setReverseMode(t) {
|
|
2748
2731
|
var n;
|
|
2749
|
-
(n = se(this,
|
|
2732
|
+
(n = se(this, J)) == null || n.$set({ reverseActive: t });
|
|
2750
2733
|
}
|
|
2751
2734
|
/**
|
|
2752
2735
|
* Focus the search input box.
|
|
@@ -2755,14 +2738,14 @@ const Mt = class Mt extends EventTarget {
|
|
|
2755
2738
|
*/
|
|
2756
2739
|
focus(t) {
|
|
2757
2740
|
var n;
|
|
2758
|
-
(n = se(this,
|
|
2741
|
+
(n = se(this, J)) == null || n.focus(t);
|
|
2759
2742
|
}
|
|
2760
2743
|
/**
|
|
2761
2744
|
* Blur the search input box.
|
|
2762
2745
|
*/
|
|
2763
2746
|
blur() {
|
|
2764
2747
|
var t;
|
|
2765
|
-
(t = se(this,
|
|
2748
|
+
(t = se(this, J)) == null || t.blur();
|
|
2766
2749
|
}
|
|
2767
2750
|
addEventListener(t, n, r) {
|
|
2768
2751
|
super.addEventListener(t, n, r);
|
|
@@ -2774,16 +2757,16 @@ const Mt = class Mt extends EventTarget {
|
|
|
2774
2757
|
return super.dispatchEvent(t);
|
|
2775
2758
|
}
|
|
2776
2759
|
};
|
|
2777
|
-
|
|
2778
|
-
return
|
|
2760
|
+
J = new WeakMap(), nt = new WeakSet(), hi = function(t, n) {
|
|
2761
|
+
return jt(Tt.prototype, this, "dispatchEvent").call(
|
|
2779
2762
|
this,
|
|
2780
2763
|
new CustomEvent(t, {
|
|
2781
2764
|
detail: n
|
|
2782
2765
|
})
|
|
2783
2766
|
);
|
|
2784
2767
|
};
|
|
2785
|
-
let
|
|
2768
|
+
let si = Tt;
|
|
2786
2769
|
export {
|
|
2787
|
-
|
|
2770
|
+
si as GeocodingControl
|
|
2788
2771
|
};
|
|
2789
2772
|
//# sourceMappingURL=vanilla.js.map
|