@maptiler/geocoding-control 1.4.2-dev.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreBasedGeocodingControl.d.ts +70 -35
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +407 -398
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -3
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +52 -16
- package/leaflet.js +888 -870
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +7 -7
- package/maplibregl-controller.js +421 -413
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +29 -5
- package/maplibregl.js +1244 -1236
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +29 -5
- package/maptilersdk.js +1194 -1180
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +694 -692
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +5 -5
- package/react.js +671 -669
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +4 -2
- package/svelte/GeocodingControl.svelte.d.ts +1 -0
- package/svelte/MapLibreBasedGeocodingControl.d.ts +70 -35
- package/svelte/MapLibreBasedGeocodingControl.js +69 -66
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +47 -24
- package/svelte/leaflet.d.ts +52 -16
- package/svelte/leaflet.js +14 -2
- package/svelte/maplibregl-controller.d.ts +7 -7
- package/svelte/maplibregl-controller.js +55 -34
- package/svelte/maplibregl.d.ts +29 -5
- package/svelte/maplibregl.js +3 -8
- package/svelte/maptilersdk.d.ts +29 -5
- package/svelte/maptilersdk.js +15 -18
- package/svelte/types.d.ts +6 -0
- package/types.d.ts +6 -0
- package/vanilla.js +392 -390
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/vanilla.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ai = Object.defineProperty;
|
|
2
|
+
var ct = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var oe = (i, e, t) => (
|
|
5
|
+
var li = (i, e, t) => e in i ? ai(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
|
+
var et = (i, e, t) => li(i, typeof e != "symbol" ? e + "" : e, t), dt = (i, e, t) => e.has(i) || ct("Cannot " + t);
|
|
7
|
+
var oe = (i, e, t) => (dt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), ft = (i, e, t) => e.has(i) ? ct("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), mt = (i, e, t, n) => (dt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
|
|
8
8
|
function A() {
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function ui(i, e) {
|
|
11
11
|
for (const t in e) i[t] = e[t];
|
|
12
12
|
return (
|
|
13
13
|
/** @type {T & S} */
|
|
14
14
|
i
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Rt(i) {
|
|
18
18
|
return i();
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function gt() {
|
|
21
21
|
return /* @__PURE__ */ Object.create(null);
|
|
22
22
|
}
|
|
23
23
|
function ue(i) {
|
|
24
|
-
i.forEach(
|
|
24
|
+
i.forEach(Rt);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ut(i) {
|
|
27
27
|
return typeof i == "function";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ve(i, e) {
|
|
30
30
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
31
31
|
}
|
|
32
32
|
let Fe;
|
|
33
33
|
function V(i, e) {
|
|
34
34
|
return i === e ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = e, i === Fe.href);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ci(i) {
|
|
37
37
|
return Object.keys(i).length === 0;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function di(i, e, t, n) {
|
|
40
40
|
if (i) {
|
|
41
|
-
const o =
|
|
41
|
+
const o = It(i, e, t, n);
|
|
42
42
|
return i[0](o);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return i[1] && n ?
|
|
45
|
+
function It(i, e, t, n) {
|
|
46
|
+
return i[1] && n ? ui(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function fi(i, e, t, n) {
|
|
49
49
|
if (i[2] && n) {
|
|
50
50
|
const o = i[2](n(t));
|
|
51
51
|
if (e.dirty === void 0)
|
|
@@ -60,13 +60,13 @@ function di(i, e, t, n) {
|
|
|
60
60
|
}
|
|
61
61
|
return e.dirty;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function mi(i, e, t, n, o, l) {
|
|
64
64
|
if (o) {
|
|
65
|
-
const c =
|
|
65
|
+
const c = It(e, t, n, l);
|
|
66
66
|
i.p(c, o);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function gi(i) {
|
|
70
70
|
if (i.ctx.length > 32) {
|
|
71
71
|
const e = [], t = i.ctx.length / 32;
|
|
72
72
|
for (let n = 0; n < t; n++)
|
|
@@ -75,7 +75,7 @@ function mi(i) {
|
|
|
75
75
|
}
|
|
76
76
|
return -1;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function ht(i) {
|
|
79
79
|
return i ?? "";
|
|
80
80
|
}
|
|
81
81
|
function T(i, e) {
|
|
@@ -99,13 +99,13 @@ function fe(i) {
|
|
|
99
99
|
function J() {
|
|
100
100
|
return fe(" ");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function hi() {
|
|
103
103
|
return fe("");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function x(i, e, t, n) {
|
|
106
106
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function bi(i) {
|
|
109
109
|
return function(e) {
|
|
110
110
|
return e.preventDefault(), i.call(this, e);
|
|
111
111
|
};
|
|
@@ -113,39 +113,39 @@ function hi(i) {
|
|
|
113
113
|
function a(i, e, t) {
|
|
114
114
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function vi(i) {
|
|
117
117
|
return Array.from(i.childNodes);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function We(i, e) {
|
|
120
120
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
121
121
|
e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function bt(i, e) {
|
|
124
124
|
i.value = e ?? "";
|
|
125
125
|
}
|
|
126
126
|
function de(i, e, t) {
|
|
127
127
|
i.classList.toggle(e, !!t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Li(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
130
130
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let Oe;
|
|
133
|
+
function Ce(i) {
|
|
134
|
+
Oe = i;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
138
|
-
return
|
|
136
|
+
function At() {
|
|
137
|
+
if (!Oe) throw new Error("Function called outside component initialization");
|
|
138
|
+
return Oe;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function _i(i) {
|
|
141
|
+
At().$$.on_destroy.push(i);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const i =
|
|
143
|
+
function yi() {
|
|
144
|
+
const i = At();
|
|
145
145
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
146
146
|
const o = i.$$.callbacks[e];
|
|
147
147
|
if (o) {
|
|
148
|
-
const l =
|
|
148
|
+
const l = Li(
|
|
149
149
|
/** @type {string} */
|
|
150
150
|
e,
|
|
151
151
|
t,
|
|
@@ -158,69 +158,69 @@ function _i() {
|
|
|
158
158
|
return !0;
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function vt(i, e) {
|
|
162
162
|
const t = i.$$.callbacks[e.type];
|
|
163
163
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
let
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
function
|
|
170
|
-
|
|
165
|
+
const pe = [], it = [];
|
|
166
|
+
let Ne = [];
|
|
167
|
+
const Lt = [], wi = /* @__PURE__ */ Promise.resolve();
|
|
168
|
+
let nt = !1;
|
|
169
|
+
function Ei() {
|
|
170
|
+
nt || (nt = !0, wi.then(Bt));
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
172
|
+
function rt(i) {
|
|
173
|
+
Ne.push(i);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
175
|
+
const tt = /* @__PURE__ */ new Set();
|
|
176
|
+
let Se = 0;
|
|
177
|
+
function Bt() {
|
|
178
|
+
if (Se !== 0)
|
|
179
179
|
return;
|
|
180
|
-
const i =
|
|
180
|
+
const i = Oe;
|
|
181
181
|
do {
|
|
182
182
|
try {
|
|
183
|
-
for (;
|
|
184
|
-
const e = Se
|
|
185
|
-
|
|
183
|
+
for (; Se < pe.length; ) {
|
|
184
|
+
const e = pe[Se];
|
|
185
|
+
Se++, Ce(e), Si(e.$$);
|
|
186
186
|
}
|
|
187
187
|
} catch (e) {
|
|
188
|
-
throw
|
|
188
|
+
throw pe.length = 0, Se = 0, e;
|
|
189
189
|
}
|
|
190
|
-
for (
|
|
191
|
-
for (let e = 0; e <
|
|
192
|
-
const t =
|
|
193
|
-
|
|
190
|
+
for (Ce(null), pe.length = 0, Se = 0; it.length; ) it.pop()();
|
|
191
|
+
for (let e = 0; e < Ne.length; e += 1) {
|
|
192
|
+
const t = Ne[e];
|
|
193
|
+
tt.has(t) || (tt.add(t), t());
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
} while (
|
|
197
|
-
for (;
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
Ne.length = 0;
|
|
196
|
+
} while (pe.length);
|
|
197
|
+
for (; Lt.length; )
|
|
198
|
+
Lt.pop()();
|
|
199
|
+
nt = !1, tt.clear(), Ce(i);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Si(i) {
|
|
202
202
|
if (i.fragment !== null) {
|
|
203
203
|
i.update(), ue(i.before_update);
|
|
204
204
|
const e = i.dirty;
|
|
205
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
205
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(rt);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function pi(i) {
|
|
209
209
|
const e = [], t = [];
|
|
210
|
-
|
|
210
|
+
Ne.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Ne = e;
|
|
211
211
|
}
|
|
212
212
|
const ze = /* @__PURE__ */ new Set();
|
|
213
|
-
let
|
|
213
|
+
let be;
|
|
214
214
|
function He() {
|
|
215
|
-
|
|
215
|
+
be = {
|
|
216
216
|
r: 0,
|
|
217
217
|
c: [],
|
|
218
|
-
p:
|
|
218
|
+
p: be
|
|
219
219
|
// parent group
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function je() {
|
|
223
|
-
|
|
223
|
+
be.r || ue(be.c), be = be.p;
|
|
224
224
|
}
|
|
225
225
|
function z(i, e) {
|
|
226
226
|
i && i.i && (ze.delete(i), i.i(e));
|
|
@@ -228,20 +228,20 @@ function z(i, e) {
|
|
|
228
228
|
function Q(i, e, t, n) {
|
|
229
229
|
if (i && i.o) {
|
|
230
230
|
if (ze.has(i)) return;
|
|
231
|
-
ze.add(i),
|
|
231
|
+
ze.add(i), be.c.push(() => {
|
|
232
232
|
ze.delete(i), n && (t && i.d(1), n());
|
|
233
233
|
}), i.o(e);
|
|
234
234
|
} else n && n();
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function _t(i) {
|
|
237
237
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Ni(i, e) {
|
|
240
240
|
Q(i, 1, 1, () => {
|
|
241
241
|
e.delete(i.key);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Mi(i, e, t, n, o, l, c, r, d, u, f, h) {
|
|
245
245
|
let v = i.length, _ = l.length, w = v;
|
|
246
246
|
const W = {};
|
|
247
247
|
for (; w--; ) W[i[w].key] = w;
|
|
@@ -271,21 +271,21 @@ function me(i) {
|
|
|
271
271
|
}
|
|
272
272
|
function ae(i, e, t) {
|
|
273
273
|
const { fragment: n, after_update: o } = i.$$;
|
|
274
|
-
n && n.m(e, t),
|
|
275
|
-
const l = i.$$.on_mount.map(
|
|
274
|
+
n && n.m(e, t), rt(() => {
|
|
275
|
+
const l = i.$$.on_mount.map(Rt).filter(Ut);
|
|
276
276
|
i.$$.on_destroy ? i.$$.on_destroy.push(...l) : ue(l), i.$$.on_mount = [];
|
|
277
|
-
}), o.forEach(
|
|
277
|
+
}), o.forEach(rt);
|
|
278
278
|
}
|
|
279
279
|
function le(i, e) {
|
|
280
280
|
const t = i.$$;
|
|
281
|
-
t.fragment !== null && (
|
|
281
|
+
t.fragment !== null && (pi(t.after_update), ue(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
i.$$.dirty[0] === -1 && (
|
|
283
|
+
function Ti(i, e) {
|
|
284
|
+
i.$$.dirty[0] === -1 && (pe.push(i), Ei(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const d =
|
|
288
|
-
|
|
286
|
+
function Le(i, e, t, n, o, l, c = null, r = [-1]) {
|
|
287
|
+
const d = Oe;
|
|
288
|
+
Ce(i);
|
|
289
289
|
const u = i.$$ = {
|
|
290
290
|
fragment: null,
|
|
291
291
|
ctx: [],
|
|
@@ -293,7 +293,7 @@ function ve(i, e, t, n, o, l, c = null, r = [-1]) {
|
|
|
293
293
|
props: l,
|
|
294
294
|
update: A,
|
|
295
295
|
not_equal: o,
|
|
296
|
-
bound:
|
|
296
|
+
bound: gt(),
|
|
297
297
|
// lifecycle
|
|
298
298
|
on_mount: [],
|
|
299
299
|
on_destroy: [],
|
|
@@ -302,7 +302,7 @@ function ve(i, e, t, n, o, l, c = null, r = [-1]) {
|
|
|
302
302
|
after_update: [],
|
|
303
303
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
304
304
|
// everything else
|
|
305
|
-
callbacks:
|
|
305
|
+
callbacks: gt(),
|
|
306
306
|
dirty: r,
|
|
307
307
|
skip_bound: !1,
|
|
308
308
|
root: e.target || d.$$.root
|
|
@@ -311,18 +311,18 @@ function ve(i, e, t, n, o, l, c = null, r = [-1]) {
|
|
|
311
311
|
let f = !1;
|
|
312
312
|
if (u.ctx = t ? t(i, e.props || {}, (h, v, ..._) => {
|
|
313
313
|
const w = _.length ? _[0] : v;
|
|
314
|
-
return u.ctx && o(u.ctx[h], u.ctx[h] = w) && (!u.skip_bound && u.bound[h] && u.bound[h](w), f &&
|
|
314
|
+
return u.ctx && o(u.ctx[h], u.ctx[h] = w) && (!u.skip_bound && u.bound[h] && u.bound[h](w), f && Ti(i, h)), v;
|
|
315
315
|
}) : [], u.update(), f = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
316
316
|
if (e.hydrate) {
|
|
317
|
-
const h =
|
|
317
|
+
const h = vi(e.target);
|
|
318
318
|
u.fragment && u.fragment.l(h), h.forEach(U);
|
|
319
319
|
} else
|
|
320
320
|
u.fragment && u.fragment.c();
|
|
321
|
-
e.intro && z(i.$$.fragment), ae(i, e.target, e.anchor),
|
|
321
|
+
e.intro && z(i.$$.fragment), ae(i, e.target, e.anchor), Bt();
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
Ce(d);
|
|
324
324
|
}
|
|
325
|
-
class
|
|
325
|
+
class _e {
|
|
326
326
|
constructor() {
|
|
327
327
|
/**
|
|
328
328
|
* ### PRIVATE API
|
|
@@ -331,7 +331,7 @@ class Le {
|
|
|
331
331
|
*
|
|
332
332
|
* @type {any}
|
|
333
333
|
*/
|
|
334
|
-
|
|
334
|
+
et(this, "$$");
|
|
335
335
|
/**
|
|
336
336
|
* ### PRIVATE API
|
|
337
337
|
*
|
|
@@ -339,7 +339,7 @@ class Le {
|
|
|
339
339
|
*
|
|
340
340
|
* @type {any}
|
|
341
341
|
*/
|
|
342
|
-
|
|
342
|
+
et(this, "$$set");
|
|
343
343
|
}
|
|
344
344
|
/** @returns {void} */
|
|
345
345
|
$destroy() {
|
|
@@ -352,7 +352,7 @@ class Le {
|
|
|
352
352
|
* @returns {() => void}
|
|
353
353
|
*/
|
|
354
354
|
$on(e, t) {
|
|
355
|
-
if (!
|
|
355
|
+
if (!Ut(t))
|
|
356
356
|
return A;
|
|
357
357
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
358
358
|
return n.push(t), () => {
|
|
@@ -365,12 +365,12 @@ class Le {
|
|
|
365
365
|
* @returns {void}
|
|
366
366
|
*/
|
|
367
367
|
$set(e) {
|
|
368
|
-
this.$$set && !
|
|
368
|
+
this.$$set && !ci(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
373
|
-
function
|
|
371
|
+
const ki = "4";
|
|
372
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ki);
|
|
373
|
+
function Ci(i) {
|
|
374
374
|
let e, t;
|
|
375
375
|
return {
|
|
376
376
|
c() {
|
|
@@ -387,12 +387,12 @@ function ki(i) {
|
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class Ft extends _e {
|
|
391
391
|
constructor(e) {
|
|
392
|
-
super(),
|
|
392
|
+
super(), Le(this, e, null, Ci, ve, {});
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Wi(i) {
|
|
396
396
|
let e, t;
|
|
397
397
|
return {
|
|
398
398
|
c() {
|
|
@@ -409,12 +409,12 @@ function Ci(i) {
|
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
class
|
|
412
|
+
class zt extends _e {
|
|
413
413
|
constructor(e) {
|
|
414
|
-
super(),
|
|
414
|
+
super(), Le(this, e, null, Wi, ve, {});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Oi(i) {
|
|
418
418
|
let e, t;
|
|
419
419
|
return {
|
|
420
420
|
c() {
|
|
@@ -445,7 +445,7 @@ function Wi(i) {
|
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Di(i) {
|
|
449
449
|
let e, t;
|
|
450
450
|
return {
|
|
451
451
|
c() {
|
|
@@ -476,7 +476,7 @@ function Oi(i) {
|
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ri(i) {
|
|
480
480
|
let e, t;
|
|
481
481
|
return {
|
|
482
482
|
c() {
|
|
@@ -507,7 +507,7 @@ function Di(i) {
|
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ui(i) {
|
|
511
511
|
let e, t;
|
|
512
512
|
return {
|
|
513
513
|
c() {
|
|
@@ -538,7 +538,7 @@ function Ri(i) {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Ii(i) {
|
|
542
542
|
let e, t;
|
|
543
543
|
return {
|
|
544
544
|
c() {
|
|
@@ -569,7 +569,7 @@ function Ui(i) {
|
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Ai(i) {
|
|
573
573
|
let e, t;
|
|
574
574
|
return {
|
|
575
575
|
c() {
|
|
@@ -600,7 +600,7 @@ function Ii(i) {
|
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Bi(i) {
|
|
604
604
|
let e, t;
|
|
605
605
|
return {
|
|
606
606
|
c() {
|
|
@@ -631,7 +631,7 @@ function Ai(i) {
|
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Fi(i) {
|
|
635
635
|
let e, t, n, o;
|
|
636
636
|
return {
|
|
637
637
|
c() {
|
|
@@ -644,7 +644,7 @@ function Bi(i) {
|
|
|
644
644
|
), a(e, "class", "svelte-ltkwvy");
|
|
645
645
|
},
|
|
646
646
|
m(l, c) {
|
|
647
|
-
B(l, e, c), n || (o =
|
|
647
|
+
B(l, e, c), n || (o = x(
|
|
648
648
|
e,
|
|
649
649
|
"error",
|
|
650
650
|
/*error_handler*/
|
|
@@ -667,7 +667,7 @@ function Bi(i) {
|
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function yt(i) {
|
|
671
671
|
let e, t;
|
|
672
672
|
return {
|
|
673
673
|
c() {
|
|
@@ -681,7 +681,7 @@ function _t(i) {
|
|
|
681
681
|
},
|
|
682
682
|
p(n, o) {
|
|
683
683
|
o & /*placeType*/
|
|
684
|
-
64 &&
|
|
684
|
+
64 && We(
|
|
685
685
|
t,
|
|
686
686
|
/*placeType*/
|
|
687
687
|
n[6]
|
|
@@ -692,7 +692,7 @@ function _t(i) {
|
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function zi(i) {
|
|
696
696
|
let e, t, n, o, l, c, r, d, u, f = (
|
|
697
697
|
/*isReverse*/
|
|
698
698
|
(i[7] ? (
|
|
@@ -726,19 +726,19 @@ function Fi(i) {
|
|
|
726
726
|
1 && (n = null), k & /*feature*/
|
|
727
727
|
1 && (o = null), k & /*feature*/
|
|
728
728
|
1 && (l = null), /*imageUrl*/
|
|
729
|
-
m[5] ?
|
|
729
|
+
m[5] ? Fi : (
|
|
730
730
|
/*feature*/
|
|
731
|
-
m[0].address ?
|
|
732
|
-
m[0].id.startsWith("road.")), t ?
|
|
733
|
-
m[0].id.startsWith("address.")), n ?
|
|
734
|
-
m[0].id.startsWith("postal_code.")), o ?
|
|
735
|
-
m[0].id.startsWith("poi.")), l ?
|
|
731
|
+
m[0].address ? Bi : (t == null && (t = !!/*feature*/
|
|
732
|
+
m[0].id.startsWith("road.")), t ? Ai : (n == null && (n = !!/*feature*/
|
|
733
|
+
m[0].id.startsWith("address.")), n ? Ii : (o == null && (o = !!/*feature*/
|
|
734
|
+
m[0].id.startsWith("postal_code.")), o ? Ui : (l == null && (l = !!/*feature*/
|
|
735
|
+
m[0].id.startsWith("poi.")), l ? Ri : (
|
|
736
736
|
/*isReverse*/
|
|
737
|
-
m[7] ?
|
|
737
|
+
m[7] ? Di : Oi
|
|
738
738
|
)))))
|
|
739
739
|
);
|
|
740
740
|
}
|
|
741
|
-
let q = p(i, -1), b = q(i), g = _ &&
|
|
741
|
+
let q = p(i, -1), b = q(i), g = _ && yt(i);
|
|
742
742
|
return {
|
|
743
743
|
c() {
|
|
744
744
|
e = D("li"), b.c(), c = J(), r = D("span"), d = D("span"), u = D("span"), h = fe(f), v = J(), g && g.c(), w = J(), W = D("span"), E = fe(y), a(u, "class", "primary svelte-ltkwvy"), a(d, "class", "svelte-ltkwvy"), a(W, "class", "line2 svelte-ltkwvy"), a(r, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
|
|
@@ -755,13 +755,13 @@ function Fi(i) {
|
|
|
755
755
|
},
|
|
756
756
|
m(m, k) {
|
|
757
757
|
B(m, e, k), b.m(e, null), T(e, c), T(e, r), T(r, d), T(d, u), T(u, h), T(d, v), g && g.m(d, null), T(r, w), T(r, W), T(W, E), C || (O = [
|
|
758
|
-
|
|
758
|
+
x(
|
|
759
759
|
e,
|
|
760
760
|
"mouseenter",
|
|
761
761
|
/*mouseenter_handler*/
|
|
762
762
|
i[12]
|
|
763
763
|
),
|
|
764
|
-
|
|
764
|
+
x(
|
|
765
765
|
e,
|
|
766
766
|
"focus",
|
|
767
767
|
/*focus_handler*/
|
|
@@ -778,7 +778,7 @@ function Fi(i) {
|
|
|
778
778
|
) : (
|
|
779
779
|
/*feature*/
|
|
780
780
|
m[0].place_name.replace(/,.*/, "")
|
|
781
|
-
)) + "") &&
|
|
781
|
+
)) + "") && We(h, f), k & /*showPlaceType, feature, imageUrl*/
|
|
782
782
|
37 && (_ = /*showPlaceType*/
|
|
783
783
|
m[2] === "always" || /*showPlaceType*/
|
|
784
784
|
m[2] && !/*feature*/
|
|
@@ -788,12 +788,12 @@ function Fi(i) {
|
|
|
788
788
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
789
789
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
790
790
|
m[5]) && !/*isReverse*/
|
|
791
|
-
m[7]), _ ? g ? g.p(m, k) : (g =
|
|
791
|
+
m[7]), _ ? g ? g.p(m, k) : (g = yt(m), g.c(), g.m(d, null)) : g && (g.d(1), g = null), k & /*feature*/
|
|
792
792
|
1 && y !== (y = /*isReverse*/
|
|
793
793
|
(m[7] ? "" : (
|
|
794
794
|
/*feature*/
|
|
795
795
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
796
|
-
)) + "") &&
|
|
796
|
+
)) + "") && We(E, y), k & /*selected*/
|
|
797
797
|
2 && a(
|
|
798
798
|
e,
|
|
799
799
|
"data-selected",
|
|
@@ -814,7 +814,7 @@ function Fi(i) {
|
|
|
814
814
|
}
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Hi(i, e, t) {
|
|
818
818
|
var O;
|
|
819
819
|
let n, o, { feature: l } = e, { selected: c = !1 } = e, { showPlaceType: r } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
|
|
820
820
|
const f = (O = l.properties) == null ? void 0 : O.categories;
|
|
@@ -823,10 +823,10 @@ function zi(i, e, t) {
|
|
|
823
823
|
v && d.add(v), t(10, _++, _);
|
|
824
824
|
}
|
|
825
825
|
function y(p) {
|
|
826
|
-
|
|
826
|
+
vt.call(this, i, p);
|
|
827
827
|
}
|
|
828
828
|
function E(p) {
|
|
829
|
-
|
|
829
|
+
vt.call(this, i, p);
|
|
830
830
|
}
|
|
831
831
|
const C = () => W();
|
|
832
832
|
return i.$$set = (p) => {
|
|
@@ -858,9 +858,9 @@ function zi(i, e, t) {
|
|
|
858
858
|
C
|
|
859
859
|
];
|
|
860
860
|
}
|
|
861
|
-
class
|
|
861
|
+
class ji extends _e {
|
|
862
862
|
constructor(e) {
|
|
863
|
-
super(),
|
|
863
|
+
super(), Le(this, e, Hi, zi, ve, {
|
|
864
864
|
feature: 0,
|
|
865
865
|
selected: 1,
|
|
866
866
|
showPlaceType: 2,
|
|
@@ -869,7 +869,7 @@ class Hi extends Le {
|
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Pi(i) {
|
|
873
873
|
let e;
|
|
874
874
|
return {
|
|
875
875
|
c() {
|
|
@@ -886,12 +886,12 @@ function ji(i) {
|
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
class
|
|
889
|
+
class Zi extends _e {
|
|
890
890
|
constructor(e) {
|
|
891
|
-
super(),
|
|
891
|
+
super(), Le(this, e, null, Pi, ve, {});
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Gi(i) {
|
|
895
895
|
let e, t;
|
|
896
896
|
return {
|
|
897
897
|
c() {
|
|
@@ -908,12 +908,12 @@ function Zi(i) {
|
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
class
|
|
911
|
+
class qi extends _e {
|
|
912
912
|
constructor(e) {
|
|
913
|
-
super(),
|
|
913
|
+
super(), Le(this, e, null, Gi, ve, {});
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Qi(i) {
|
|
917
917
|
let e, t, n;
|
|
918
918
|
return {
|
|
919
919
|
c() {
|
|
@@ -930,20 +930,20 @@ function qi(i) {
|
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
|
-
class
|
|
933
|
+
class Vi extends _e {
|
|
934
934
|
constructor(e) {
|
|
935
|
-
super(),
|
|
935
|
+
super(), Le(this, e, null, Qi, ve, {});
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function xi(i, e, t) {
|
|
939
939
|
const n = e[1], o = e[0], l = n - o;
|
|
940
940
|
return i === n && t ? i : ((i - o) % l + l) % l + o;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function wt(i) {
|
|
943
943
|
const e = [...i];
|
|
944
944
|
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;
|
|
945
945
|
}
|
|
946
|
-
let
|
|
946
|
+
let Te;
|
|
947
947
|
async function Ki(i, e, t) {
|
|
948
948
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
949
949
|
for (const o of e ?? [])
|
|
@@ -951,10 +951,10 @@ async function Ki(i, e, t) {
|
|
|
951
951
|
if (o.type === "fixed")
|
|
952
952
|
return o.coordinates.join(",");
|
|
953
953
|
e: if (o.type === "client-geolocation") {
|
|
954
|
-
if (
|
|
955
|
-
if (!
|
|
954
|
+
if (Te && o.cachedLocationExpiry && Te.time + o.cachedLocationExpiry > Date.now()) {
|
|
955
|
+
if (!Te.coords)
|
|
956
956
|
break e;
|
|
957
|
-
return
|
|
957
|
+
return Te.coords;
|
|
958
958
|
}
|
|
959
959
|
let l;
|
|
960
960
|
try {
|
|
@@ -975,7 +975,7 @@ async function Ki(i, e, t) {
|
|
|
975
975
|
}), l;
|
|
976
976
|
} catch {
|
|
977
977
|
} finally {
|
|
978
|
-
o.cachedLocationExpiry && (
|
|
978
|
+
o.cachedLocationExpiry && (Te = {
|
|
979
979
|
time: Date.now(),
|
|
980
980
|
coords: l
|
|
981
981
|
});
|
|
@@ -989,8 +989,8 @@ async function Ki(i, e, t) {
|
|
|
989
989
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
const
|
|
993
|
-
function
|
|
992
|
+
const Ji = /^(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, Et = /^([+-]?[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,})$/, St = /^(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, pt = /^(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, Nt = /^(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, Mt = /^(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;
|
|
993
|
+
function Xi(i) {
|
|
994
994
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
995
995
|
throw new Error("invalid format specified");
|
|
996
996
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -999,7 +999,7 @@ function Ji(i) {
|
|
|
999
999
|
i == "DD" && (d = `${o}° ${c}, ${l}° ${r}`);
|
|
1000
1000
|
const u = Math.floor(o), f = Math.floor(l), h = (o - u) * 60, v = (l - f) * 60;
|
|
1001
1001
|
if (i == "DM") {
|
|
1002
|
-
let _ =
|
|
1002
|
+
let _ = Tt(h, 3).toFixed(3).padStart(6, "0"), w = Tt(v, 3).toFixed(3).padStart(6, "0");
|
|
1003
1003
|
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${r}`;
|
|
1004
1004
|
}
|
|
1005
1005
|
if (i == "DMS") {
|
|
@@ -1012,22 +1012,22 @@ function Ji(i) {
|
|
|
1012
1012
|
} else
|
|
1013
1013
|
throw new Error("no decimal coordinates to convert");
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Tt(i, e) {
|
|
1016
1016
|
const t = Math.pow(10, e);
|
|
1017
1017
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function ot(i, e) {
|
|
1020
1020
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1021
1021
|
let t = null, n = null, o = "", l = "", c = null, r = [], d = !1;
|
|
1022
|
-
if (
|
|
1022
|
+
if (Ji.test(i))
|
|
1023
1023
|
throw new Error("invalid coordinate value");
|
|
1024
|
-
if (
|
|
1025
|
-
if (r =
|
|
1024
|
+
if (Et.test(i))
|
|
1025
|
+
if (r = Et.exec(i), d = ke(r), d)
|
|
1026
1026
|
t = Math.abs(r[1]) + r[2] / 60, Number(r[1]) < 0 && (t *= -1), n = Math.abs(r[3]) + r[4] / 60, Number(r[3]) < 0 && (n *= -1), c = "DM";
|
|
1027
1027
|
else
|
|
1028
1028
|
throw new Error("invalid coordinate format");
|
|
1029
|
-
else if (
|
|
1030
|
-
if (r =
|
|
1029
|
+
else if (St.test(i))
|
|
1030
|
+
if (r = St.exec(i), d = ke(r), d) {
|
|
1031
1031
|
if (t = r[2], n = r[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
|
|
1032
1032
|
throw new Error("integer only coordinate provided");
|
|
1033
1033
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1035,18 +1035,18 @@ function rt(i, e) {
|
|
|
1035
1035
|
r[1] ? (o = r[1], l = r[5]) : r[4] && (o = r[4], l = r[8]);
|
|
1036
1036
|
} else
|
|
1037
1037
|
throw new Error("invalid decimal coordinate format");
|
|
1038
|
-
else if (
|
|
1039
|
-
if (r =
|
|
1038
|
+
else if (pt.test(i))
|
|
1039
|
+
if (r = pt.exec(i), d = ke(r), d)
|
|
1040
1040
|
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, c = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, c = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[9])), r[11] && (n += r[11] / 60), r[13] && (n += r[13].replace(",", ".") / 3600), parseInt(r[9]) < 0 && (n = -1 * n), r[1] ? (o = r[1], l = r[8]) : r[7] && (o = r[7], l = r[14]);
|
|
1041
1041
|
else
|
|
1042
1042
|
throw new Error("invalid DMS coordinates format");
|
|
1043
|
-
else if (
|
|
1044
|
-
if (r =
|
|
1043
|
+
else if (Nt.test(i))
|
|
1044
|
+
if (r = Nt.exec(i), d = ke(r), d)
|
|
1045
1045
|
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4] / 60, c = "DM"), r[6] && (t += r[6] / 3600, c = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12] / 60), r[14] && (n += r[14] / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], l = r[9]) : r[8] && (o = r[8], l = r[16]);
|
|
1046
1046
|
else
|
|
1047
1047
|
throw new Error("invalid DMS coordinates format");
|
|
1048
|
-
else if (
|
|
1049
|
-
if (r =
|
|
1048
|
+
else if (Mt.test(i)) {
|
|
1049
|
+
if (r = Mt.exec(i), d = ke(r), r.filter((u) => u).length <= 5)
|
|
1050
1050
|
throw new Error("invalid coordinates format");
|
|
1051
1051
|
if (d)
|
|
1052
1052
|
t = Math.abs(parseInt(r[2])), r[4] && (t += r[4].replace(",", ".") / 60, c = "DM"), r[6] && (t += r[6].replace(",", ".") / 3600, c = "DMS"), parseInt(r[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(r[10])), r[12] && (n += r[12].replace(",", ".") / 60), r[14] && (n += r[14].replace(",", ".") / 3600), parseInt(r[10]) < 0 && (n = -1 * n), r[1] ? (o = r[1], l = r[9]) : r[8] && (o = r[8], l = r[16]);
|
|
@@ -1100,13 +1100,13 @@ function rt(i, e) {
|
|
|
1100
1100
|
decimalLongitude: n,
|
|
1101
1101
|
decimalCoordinates: `${t},${n}`,
|
|
1102
1102
|
originalFormat: c,
|
|
1103
|
-
closeEnough:
|
|
1104
|
-
toCoordinateFormat:
|
|
1103
|
+
closeEnough: Yi,
|
|
1104
|
+
toCoordinateFormat: Xi
|
|
1105
1105
|
});
|
|
1106
1106
|
} else
|
|
1107
1107
|
throw new Error("coordinates pattern match failed");
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function ke(i) {
|
|
1110
1110
|
if (!isNaN(i[0]))
|
|
1111
1111
|
return !1;
|
|
1112
1112
|
const e = [...i];
|
|
@@ -1125,28 +1125,28 @@ function Te(i) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
return !0;
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function kt(i, e) {
|
|
1129
1129
|
const t = Math.abs(i - e);
|
|
1130
1130
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Yi(i) {
|
|
1133
1133
|
if (!i)
|
|
1134
1134
|
throw new Error("coords must be provided");
|
|
1135
1135
|
if (i.includes(",")) {
|
|
1136
1136
|
const e = i.split(",");
|
|
1137
1137
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1138
1138
|
throw new Error("coords are not valid decimals");
|
|
1139
|
-
return
|
|
1139
|
+
return kt(this.decimalLatitude, Number(e[0])) && kt(this.decimalLongitude, e[1]);
|
|
1140
1140
|
} else
|
|
1141
1141
|
throw new Error("coords being tested must be separated by a comma");
|
|
1142
1142
|
}
|
|
1143
|
-
const
|
|
1143
|
+
const $i = Object.freeze({
|
|
1144
1144
|
DMS: "DMS",
|
|
1145
1145
|
DM: "DM",
|
|
1146
1146
|
DD: "DD"
|
|
1147
1147
|
});
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1148
|
+
ot.to = $i;
|
|
1149
|
+
const en = [
|
|
1150
1150
|
{
|
|
1151
1151
|
verbatimCoordinates: "40.123, -74.123",
|
|
1152
1152
|
verbatimLatitude: "40.123",
|
|
@@ -1287,10 +1287,10 @@ const $i = [
|
|
|
1287
1287
|
verbatimLatitude: "40 7 22.8",
|
|
1288
1288
|
verbatimLongitude: "-74 7 22.8"
|
|
1289
1289
|
}
|
|
1290
|
-
],
|
|
1290
|
+
], tn = {
|
|
1291
1291
|
decimalLatitude: 40.123,
|
|
1292
1292
|
decimalLongitude: -74.123
|
|
1293
|
-
},
|
|
1293
|
+
}, nn = [
|
|
1294
1294
|
{
|
|
1295
1295
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1296
1296
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1375,7 +1375,7 @@ const $i = [
|
|
|
1375
1375
|
decimalLatitude: -18.4,
|
|
1376
1376
|
decimalLongitude: 22.75
|
|
1377
1377
|
}
|
|
1378
|
-
],
|
|
1378
|
+
], rn = [
|
|
1379
1379
|
{
|
|
1380
1380
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1381
1381
|
verbatimLatitude: "10.432342S",
|
|
@@ -1510,22 +1510,22 @@ const $i = [
|
|
|
1510
1510
|
decimalLongitude: 18.33453
|
|
1511
1511
|
}
|
|
1512
1512
|
];
|
|
1513
|
-
function
|
|
1513
|
+
function on() {
|
|
1514
1514
|
const i = [];
|
|
1515
|
-
return
|
|
1516
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1517
|
-
}), [...i, ...
|
|
1518
|
-
}
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1521
|
-
const
|
|
1522
|
-
function
|
|
1515
|
+
return en.forEach((e) => {
|
|
1516
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...tn });
|
|
1517
|
+
}), [...i, ...nn, ...rn];
|
|
1518
|
+
}
|
|
1519
|
+
const sn = on();
|
|
1520
|
+
ot.formats = sn.map((i) => i.verbatimCoordinates);
|
|
1521
|
+
const an = ot;
|
|
1522
|
+
function Ct(i, e, t) {
|
|
1523
1523
|
const n = i.slice();
|
|
1524
|
-
return n[
|
|
1524
|
+
return n[84] = e[t], n[86] = t, n;
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Wt(i) {
|
|
1527
1527
|
let e, t;
|
|
1528
|
-
return e = new
|
|
1528
|
+
return e = new Zi({}), {
|
|
1529
1529
|
c() {
|
|
1530
1530
|
me(e.$$.fragment);
|
|
1531
1531
|
},
|
|
@@ -1543,9 +1543,9 @@ function Ct(i) {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Ot(i) {
|
|
1547
1547
|
let e, t, n, o, l;
|
|
1548
|
-
return t = new
|
|
1548
|
+
return t = new qi({}), {
|
|
1549
1549
|
c() {
|
|
1550
1550
|
e = D("button"), me(t.$$.fragment), a(e, "type", "button"), a(
|
|
1551
1551
|
e,
|
|
@@ -1560,11 +1560,11 @@ function Wt(i) {
|
|
|
1560
1560
|
);
|
|
1561
1561
|
},
|
|
1562
1562
|
m(c, r) {
|
|
1563
|
-
B(c, e, r), ae(t, e, null), n = !0, o || (l =
|
|
1563
|
+
B(c, e, r), ae(t, e, null), n = !0, o || (l = x(
|
|
1564
1564
|
e,
|
|
1565
1565
|
"click",
|
|
1566
1566
|
/*click_handler_2*/
|
|
1567
|
-
i[
|
|
1567
|
+
i[69]
|
|
1568
1568
|
), o = !0);
|
|
1569
1569
|
},
|
|
1570
1570
|
p(c, r) {
|
|
@@ -1593,20 +1593,20 @@ function Wt(i) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1597
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), o, l, c, r =
|
|
1596
|
+
function ln(i) {
|
|
1597
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), o, l, c, r = _t(
|
|
1598
1598
|
/*listFeatures*/
|
|
1599
1599
|
i[14]
|
|
1600
1600
|
);
|
|
1601
1601
|
const d = (u) => (
|
|
1602
1602
|
/*feature*/
|
|
1603
|
-
u[
|
|
1604
|
-
(u[
|
|
1605
|
-
u[
|
|
1603
|
+
u[84].id + /*feature*/
|
|
1604
|
+
(u[84].address ? "," + /*feature*/
|
|
1605
|
+
u[84].address : "")
|
|
1606
1606
|
);
|
|
1607
1607
|
for (let u = 0; u < r.length; u += 1) {
|
|
1608
|
-
let f =
|
|
1609
|
-
n.set(h, t[u] =
|
|
1608
|
+
let f = Ct(i, r, u), h = d(f);
|
|
1609
|
+
n.set(h, t[u] = Dt(h, f));
|
|
1610
1610
|
}
|
|
1611
1611
|
return {
|
|
1612
1612
|
c() {
|
|
@@ -1620,26 +1620,26 @@ function an(i) {
|
|
|
1620
1620
|
for (let h = 0; h < t.length; h += 1)
|
|
1621
1621
|
t[h] && t[h].m(e, null);
|
|
1622
1622
|
o = !0, l || (c = [
|
|
1623
|
-
|
|
1623
|
+
x(
|
|
1624
1624
|
e,
|
|
1625
1625
|
"mouseleave",
|
|
1626
1626
|
/*mouseleave_handler*/
|
|
1627
|
-
i[
|
|
1627
|
+
i[73]
|
|
1628
1628
|
),
|
|
1629
|
-
|
|
1629
|
+
x(
|
|
1630
1630
|
e,
|
|
1631
1631
|
"blur",
|
|
1632
1632
|
/*blur_handler_1*/
|
|
1633
|
-
i[
|
|
1633
|
+
i[74]
|
|
1634
1634
|
)
|
|
1635
1635
|
], l = !0);
|
|
1636
1636
|
},
|
|
1637
1637
|
p(u, f) {
|
|
1638
1638
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1639
|
-
17880064 && (r =
|
|
1639
|
+
17880064 && (r = _t(
|
|
1640
1640
|
/*listFeatures*/
|
|
1641
1641
|
u[14]
|
|
1642
|
-
), He(), t =
|
|
1642
|
+
), He(), t = Mi(t, f, d, 1, u, r, n, e, Ni, Dt, null, Ct), je());
|
|
1643
1643
|
},
|
|
1644
1644
|
i(u) {
|
|
1645
1645
|
if (!o) {
|
|
@@ -1661,9 +1661,9 @@ function an(i) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function un(i) {
|
|
1665
1665
|
let e, t, n, o, l, c;
|
|
1666
|
-
return t = new
|
|
1666
|
+
return t = new zt({}), {
|
|
1667
1667
|
c() {
|
|
1668
1668
|
e = D("div"), me(t.$$.fragment), n = J(), o = D("div"), l = fe(
|
|
1669
1669
|
/*noResultsMessage*/
|
|
@@ -1675,7 +1675,7 @@ function ln(i) {
|
|
|
1675
1675
|
},
|
|
1676
1676
|
p(r, d) {
|
|
1677
1677
|
(!c || d[0] & /*noResultsMessage*/
|
|
1678
|
-
128) &&
|
|
1678
|
+
128) && We(
|
|
1679
1679
|
l,
|
|
1680
1680
|
/*noResultsMessage*/
|
|
1681
1681
|
r[7]
|
|
@@ -1692,7 +1692,7 @@ function ln(i) {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function cn(i) {
|
|
1696
1696
|
let e = "", t;
|
|
1697
1697
|
return {
|
|
1698
1698
|
c() {
|
|
@@ -1709,9 +1709,9 @@ function un(i) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function dn(i) {
|
|
1713
1713
|
let e, t, n, o, l, c, r, d, u, f, h;
|
|
1714
|
-
return t = new
|
|
1714
|
+
return t = new zt({}), d = new Ft({}), {
|
|
1715
1715
|
c() {
|
|
1716
1716
|
e = D("div"), me(t.$$.fragment), n = J(), o = D("div"), l = fe(
|
|
1717
1717
|
/*errorMessage*/
|
|
@@ -1719,16 +1719,16 @@ function cn(i) {
|
|
|
1719
1719
|
), c = J(), r = D("button"), me(d.$$.fragment), a(o, "class", "svelte-1uvos7g"), a(r, "class", "svelte-1uvos7g"), a(e, "class", "error svelte-1uvos7g");
|
|
1720
1720
|
},
|
|
1721
1721
|
m(v, _) {
|
|
1722
|
-
B(v, e, _), ae(t, e, null), T(e, n), T(e, o), T(o, l), T(e, c), T(e, r), ae(d, r, null), u = !0, f || (h =
|
|
1722
|
+
B(v, e, _), ae(t, e, null), T(e, n), T(e, o), T(o, l), T(e, c), T(e, r), ae(d, r, null), u = !0, f || (h = x(
|
|
1723
1723
|
r,
|
|
1724
1724
|
"click",
|
|
1725
1725
|
/*click_handler_3*/
|
|
1726
|
-
i[
|
|
1726
|
+
i[70]
|
|
1727
1727
|
), f = !0);
|
|
1728
1728
|
},
|
|
1729
1729
|
p(v, _) {
|
|
1730
1730
|
(!u || _[0] & /*errorMessage*/
|
|
1731
|
-
64) &&
|
|
1731
|
+
64) && We(
|
|
1732
1732
|
l,
|
|
1733
1733
|
/*errorMessage*/
|
|
1734
1734
|
v[6]
|
|
@@ -1745,31 +1745,31 @@ function cn(i) {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function Dt(i, e) {
|
|
1749
1749
|
let t, n, o;
|
|
1750
1750
|
function l() {
|
|
1751
1751
|
return (
|
|
1752
1752
|
/*mouseenter_handler*/
|
|
1753
|
-
e[
|
|
1753
|
+
e[71](
|
|
1754
1754
|
/*i*/
|
|
1755
|
-
e[
|
|
1755
|
+
e[86]
|
|
1756
1756
|
)
|
|
1757
1757
|
);
|
|
1758
1758
|
}
|
|
1759
1759
|
function c() {
|
|
1760
1760
|
return (
|
|
1761
1761
|
/*focus_handler_1*/
|
|
1762
|
-
e[
|
|
1762
|
+
e[72](
|
|
1763
1763
|
/*feature*/
|
|
1764
|
-
e[
|
|
1764
|
+
e[84]
|
|
1765
1765
|
)
|
|
1766
1766
|
);
|
|
1767
1767
|
}
|
|
1768
|
-
return n = new
|
|
1768
|
+
return n = new ji({
|
|
1769
1769
|
props: {
|
|
1770
1770
|
feature: (
|
|
1771
1771
|
/*feature*/
|
|
1772
|
-
e[
|
|
1772
|
+
e[84]
|
|
1773
1773
|
),
|
|
1774
1774
|
showPlaceType: (
|
|
1775
1775
|
/*showPlaceType*/
|
|
@@ -1778,7 +1778,7 @@ function Ot(i, e) {
|
|
|
1778
1778
|
selected: (
|
|
1779
1779
|
/*selectedItemIndex*/
|
|
1780
1780
|
e[15] === /*i*/
|
|
1781
|
-
e[
|
|
1781
|
+
e[86]
|
|
1782
1782
|
),
|
|
1783
1783
|
missingIconsCache: (
|
|
1784
1784
|
/*missingIconsCache*/
|
|
@@ -1793,7 +1793,7 @@ function Ot(i, e) {
|
|
|
1793
1793
|
key: i,
|
|
1794
1794
|
first: null,
|
|
1795
1795
|
c() {
|
|
1796
|
-
t =
|
|
1796
|
+
t = hi(), me(n.$$.fragment), this.first = t;
|
|
1797
1797
|
},
|
|
1798
1798
|
m(r, d) {
|
|
1799
1799
|
B(r, t, d), ae(n, r, d), o = !0;
|
|
@@ -1803,12 +1803,12 @@ function Ot(i, e) {
|
|
|
1803
1803
|
const u = {};
|
|
1804
1804
|
d[0] & /*listFeatures*/
|
|
1805
1805
|
16384 && (u.feature = /*feature*/
|
|
1806
|
-
e[
|
|
1806
|
+
e[84]), d[0] & /*showPlaceType*/
|
|
1807
1807
|
1024 && (u.showPlaceType = /*showPlaceType*/
|
|
1808
1808
|
e[10]), d[0] & /*selectedItemIndex, listFeatures*/
|
|
1809
1809
|
49152 && (u.selected = /*selectedItemIndex*/
|
|
1810
1810
|
e[15] === /*i*/
|
|
1811
|
-
e[
|
|
1811
|
+
e[86]), d[0] & /*iconsBaseUrl*/
|
|
1812
1812
|
4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1813
1813
|
e[12]), n.$set(u);
|
|
1814
1814
|
},
|
|
@@ -1823,26 +1823,26 @@ function Ot(i, e) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
};
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function fn(i) {
|
|
1827
1827
|
let e, t, n, o, l, c, r, d, u, f, h, v, _, w, W, y, E, C, O, p, q, b = !1;
|
|
1828
|
-
l = new
|
|
1828
|
+
l = new Vi({}), h = new Ft({});
|
|
1829
1829
|
let g = (
|
|
1830
1830
|
/*abortController*/
|
|
1831
|
-
i[19] &&
|
|
1831
|
+
i[19] && Wt()
|
|
1832
1832
|
), m = (
|
|
1833
1833
|
/*enableReverse*/
|
|
1834
|
-
i[5] === !0 &&
|
|
1834
|
+
i[5] === !0 && Ot(i)
|
|
1835
1835
|
);
|
|
1836
1836
|
const k = (
|
|
1837
1837
|
/*#slots*/
|
|
1838
|
-
i[
|
|
1839
|
-
), H =
|
|
1838
|
+
i[61].default
|
|
1839
|
+
), H = di(
|
|
1840
1840
|
k,
|
|
1841
1841
|
i,
|
|
1842
1842
|
/*$$scope*/
|
|
1843
|
-
i[
|
|
1843
|
+
i[60],
|
|
1844
1844
|
null
|
|
1845
|
-
), X = [cn, un, ln
|
|
1845
|
+
), X = [dn, cn, un, ln], $ = [];
|
|
1846
1846
|
function j(L, F) {
|
|
1847
1847
|
var ee, re;
|
|
1848
1848
|
return (
|
|
@@ -1882,7 +1882,7 @@ function dn(i) {
|
|
|
1882
1882
|
"displayable",
|
|
1883
1883
|
/*searchValue*/
|
|
1884
1884
|
i[1] !== ""
|
|
1885
|
-
), a(n, "class", "input-group svelte-1uvos7g"), a(t, "tabindex", "0"), a(t, "class", C =
|
|
1885
|
+
), a(n, "class", "input-group svelte-1uvos7g"), a(t, "tabindex", "0"), a(t, "class", C = ht(
|
|
1886
1886
|
/*className*/
|
|
1887
1887
|
i[2]
|
|
1888
1888
|
) + " svelte-1uvos7g"), de(
|
|
@@ -1894,54 +1894,54 @@ function dn(i) {
|
|
|
1894
1894
|
);
|
|
1895
1895
|
},
|
|
1896
1896
|
m(L, F) {
|
|
1897
|
-
B(L, e, F), B(L, t, F), T(t, n), T(n, o), ae(l, o, null), T(n, c), T(n, r), i[
|
|
1897
|
+
B(L, e, F), B(L, t, F), T(t, n), T(n, o), ae(l, o, null), T(n, c), T(n, r), i[63](r), bt(
|
|
1898
1898
|
r,
|
|
1899
1899
|
/*searchValue*/
|
|
1900
1900
|
i[1]
|
|
1901
1901
|
), T(n, d), T(n, u), T(u, f), ae(h, f, null), T(u, v), g && g.m(u, null), T(n, _), m && m.m(n, null), T(n, w), H && H.m(n, null), T(t, W), ~y && $[y].m(t, null), O = !0, p || (q = [
|
|
1902
|
-
|
|
1902
|
+
x(
|
|
1903
1903
|
o,
|
|
1904
1904
|
"click",
|
|
1905
1905
|
/*click_handler*/
|
|
1906
|
-
i[
|
|
1906
|
+
i[62]
|
|
1907
1907
|
),
|
|
1908
|
-
|
|
1908
|
+
x(
|
|
1909
1909
|
r,
|
|
1910
1910
|
"input",
|
|
1911
1911
|
/*input_1_input_handler*/
|
|
1912
|
-
i[
|
|
1912
|
+
i[64]
|
|
1913
1913
|
),
|
|
1914
|
-
|
|
1914
|
+
x(
|
|
1915
1915
|
r,
|
|
1916
1916
|
"focus",
|
|
1917
1917
|
/*focus_handler*/
|
|
1918
|
-
i[
|
|
1918
|
+
i[65]
|
|
1919
1919
|
),
|
|
1920
|
-
|
|
1920
|
+
x(
|
|
1921
1921
|
r,
|
|
1922
1922
|
"blur",
|
|
1923
1923
|
/*blur_handler*/
|
|
1924
|
-
i[
|
|
1924
|
+
i[66]
|
|
1925
1925
|
),
|
|
1926
|
-
|
|
1926
|
+
x(
|
|
1927
1927
|
r,
|
|
1928
1928
|
"keydown",
|
|
1929
1929
|
/*handleKeyDown*/
|
|
1930
1930
|
i[22]
|
|
1931
1931
|
),
|
|
1932
|
-
|
|
1932
|
+
x(
|
|
1933
1933
|
r,
|
|
1934
1934
|
"input",
|
|
1935
1935
|
/*input_handler*/
|
|
1936
|
-
i[
|
|
1936
|
+
i[67]
|
|
1937
1937
|
),
|
|
1938
|
-
|
|
1938
|
+
x(
|
|
1939
1939
|
f,
|
|
1940
1940
|
"click",
|
|
1941
1941
|
/*click_handler_1*/
|
|
1942
|
-
i[
|
|
1942
|
+
i[68]
|
|
1943
1943
|
),
|
|
1944
|
-
|
|
1944
|
+
x(t, "submit", bi(
|
|
1945
1945
|
/*handleOnSubmit*/
|
|
1946
1946
|
i[21]
|
|
1947
1947
|
))
|
|
@@ -1962,7 +1962,7 @@ function dn(i) {
|
|
|
1962
1962
|
L[8]
|
|
1963
1963
|
), F[0] & /*searchValue*/
|
|
1964
1964
|
2 && r.value !== /*searchValue*/
|
|
1965
|
-
L[1] &&
|
|
1965
|
+
L[1] && bt(
|
|
1966
1966
|
r,
|
|
1967
1967
|
/*searchValue*/
|
|
1968
1968
|
L[1]
|
|
@@ -1974,7 +1974,7 @@ function dn(i) {
|
|
|
1974
1974
|
L[3]
|
|
1975
1975
|
), /*abortController*/
|
|
1976
1976
|
L[19] ? g ? F[0] & /*abortController*/
|
|
1977
|
-
524288 && z(g, 1) : (g =
|
|
1977
|
+
524288 && z(g, 1) : (g = Wt(), g.c(), z(g, 1), g.m(u, null)) : g && (He(), Q(g, 1, 1, () => {
|
|
1978
1978
|
g = null;
|
|
1979
1979
|
}), je()), (!O || F[0] & /*searchValue*/
|
|
1980
1980
|
2) && de(
|
|
@@ -1984,24 +1984,24 @@ function dn(i) {
|
|
|
1984
1984
|
L[1] !== ""
|
|
1985
1985
|
), /*enableReverse*/
|
|
1986
1986
|
L[5] === !0 ? m ? (m.p(L, F), F[0] & /*enableReverse*/
|
|
1987
|
-
32 && z(m, 1)) : (m =
|
|
1987
|
+
32 && z(m, 1)) : (m = Ot(L), m.c(), z(m, 1), m.m(n, w)) : m && (He(), Q(m, 1, 1, () => {
|
|
1988
1988
|
m = null;
|
|
1989
1989
|
}), je()), H && H.p && (!O || F[1] & /*$$scope*/
|
|
1990
|
-
|
|
1990
|
+
536870912) && mi(
|
|
1991
1991
|
H,
|
|
1992
1992
|
k,
|
|
1993
1993
|
L,
|
|
1994
1994
|
/*$$scope*/
|
|
1995
|
-
L[
|
|
1996
|
-
O ?
|
|
1995
|
+
L[60],
|
|
1996
|
+
O ? fi(
|
|
1997
1997
|
k,
|
|
1998
1998
|
/*$$scope*/
|
|
1999
|
-
L[
|
|
1999
|
+
L[60],
|
|
2000
2000
|
F,
|
|
2001
2001
|
null
|
|
2002
|
-
) :
|
|
2002
|
+
) : gi(
|
|
2003
2003
|
/*$$scope*/
|
|
2004
|
-
L[
|
|
2004
|
+
L[60]
|
|
2005
2005
|
),
|
|
2006
2006
|
null
|
|
2007
2007
|
);
|
|
@@ -2009,7 +2009,7 @@ function dn(i) {
|
|
|
2009
2009
|
y = j(L), y === ee ? ~y && $[y].p(L, F) : (E && (He(), Q($[ee], 1, 1, () => {
|
|
2010
2010
|
$[ee] = null;
|
|
2011
2011
|
}), je()), ~y ? (E = $[y], E ? E.p(L, F) : (E = $[y] = X[y](L), E.c()), z(E, 1), E.m(t, null)) : E = null), (!O || F[0] & /*className*/
|
|
2012
|
-
4 && C !== (C =
|
|
2012
|
+
4 && C !== (C = ht(
|
|
2013
2013
|
/*className*/
|
|
2014
2014
|
L[2]
|
|
2015
2015
|
) + " svelte-1uvos7g")) && a(t, "class", C), (!O || F[0] & /*className, collapsed, searchValue*/
|
|
@@ -2028,11 +2028,11 @@ function dn(i) {
|
|
|
2028
2028
|
Q(b), Q(l.$$.fragment, L), Q(h.$$.fragment, L), Q(g), Q(m), Q(H, L), Q(E), O = !1;
|
|
2029
2029
|
},
|
|
2030
2030
|
d(L) {
|
|
2031
|
-
L && (U(e), U(t)), le(l), i[
|
|
2031
|
+
L && (U(e), U(t)), le(l), i[63](null), le(h), g && g.d(), m && m.d(), H && H.d(L), ~y && $[y].d(), p = !1, ue(q);
|
|
2032
2032
|
}
|
|
2033
2033
|
};
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2035
|
+
function mn(i, e, t) {
|
|
2036
2036
|
let n, { $$slots: o = {}, $$scope: l } = e;
|
|
2037
2037
|
const c = {
|
|
2038
2038
|
continental_marine: 4,
|
|
@@ -2058,69 +2058,69 @@ function fn(i, e, t) {
|
|
|
2058
2058
|
"poi.restaurant": 18,
|
|
2059
2059
|
"poi.aerodrome": 13
|
|
2060
2060
|
};
|
|
2061
|
-
let { class: r = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: O = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: k = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: $ = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { showFullGeometry: L = !0 } = e, { showPlaceType: F = "ifNeeded" } = e, { showResultsWhileTyping: ee = !0 } = e, { selectFirst: re = !0 } = e, { flyToSelected: Pe = !1 } = e, { markerOnSelected:
|
|
2061
|
+
let { class: r = void 0 } = e, { apiKey: d } = e, { bbox: u = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: h = !1 } = e, { collapsed: v = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: w = 200 } = e, { enableReverse: W = !1 } = e, { errorMessage: y = "Something went wrong…" } = e, { filter: E = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: O = !0 } = e, { language: p = void 0 } = e, { limit: q = void 0 } = e, { mapController: b = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: m = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: k = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: X = W === "always" } = e, { reverseButtonTitle: $ = "toggle reverse geocoding" } = e, { searchValue: j = "" } = e, { showFullGeometry: L = !0 } = e, { showPlaceType: F = "ifNeeded" } = e, { showResultsWhileTyping: ee = !0 } = e, { selectFirst: re = !0 } = e, { flyToSelected: Pe = !1 } = e, { markerOnSelected: De = !0 } = e, { types: ge = void 0 } = e, { exhaustiveReverseGeocoding: Ze = !1 } = e, { excludeTypes: Re = !1 } = e, { zoom: ye = c } = e, { maxZoom: Ue = void 0 } = e, { apiUrl: Ge = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: qe = {} } = e, { iconsBaseUrl: st = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0/icons/" } = e, { adjustUrlQuery: Qe = () => {
|
|
2062
2062
|
} } = e;
|
|
2063
|
-
function
|
|
2063
|
+
function Ht() {
|
|
2064
2064
|
te.focus();
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function jt() {
|
|
2067
2067
|
te.blur();
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2070
|
-
t(1, j = s), I ? (t(15, R = -1),
|
|
2069
|
+
function at(s, I = !0, G = !1) {
|
|
2070
|
+
t(1, j = s), I ? (t(15, R = -1), ut()) : (Je(!G, G), setTimeout(() => {
|
|
2071
2071
|
te.focus(), te.select();
|
|
2072
2072
|
}));
|
|
2073
2073
|
}
|
|
2074
|
-
function jt() {
|
|
2075
|
-
t(14, M = void 0), t(56, S = void 0), t(15, R = -1);
|
|
2076
|
-
}
|
|
2077
2074
|
function Pt() {
|
|
2078
|
-
t(
|
|
2075
|
+
t(14, M = void 0), t(57, S = void 0), t(15, R = -1);
|
|
2076
|
+
}
|
|
2077
|
+
function Zt() {
|
|
2078
|
+
t(56, P = []), t(57, S = void 0);
|
|
2079
2079
|
}
|
|
2080
|
-
let
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2080
|
+
let we = !1, M, P, S, lt = "", te, R = -1, ie, Ie = [], he, Ee, Ae, Ve;
|
|
2081
|
+
const Gt = /* @__PURE__ */ new Set(), ce = yi();
|
|
2082
|
+
_i(() => {
|
|
2083
2083
|
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setMarkers(void 0, void 0));
|
|
2084
2084
|
});
|
|
2085
|
-
function
|
|
2086
|
-
if (
|
|
2087
|
-
t(
|
|
2085
|
+
function ut(s) {
|
|
2086
|
+
if (Ee && (clearTimeout(Ee), Ee = void 0), R > -1 && M)
|
|
2087
|
+
t(57, S = M[R]), t(1, j = S.place_type[0] === "reverse" ? S.place_name : S.place_name.replace(/,.*/, "")), t(18, ie = void 0), t(56, P = void 0), t(15, R = -1);
|
|
2088
2088
|
else if (j) {
|
|
2089
|
-
const I = s || !
|
|
2089
|
+
const I = s || !xe(j);
|
|
2090
2090
|
Ke(j, { exact: !0 }).then(() => {
|
|
2091
|
-
t(
|
|
2091
|
+
t(56, P = M), t(57, S = void 0), I && qt();
|
|
2092
2092
|
}).catch((G) => t(18, ie = G));
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function xe(s) {
|
|
2096
2096
|
try {
|
|
2097
|
-
return
|
|
2097
|
+
return an(s, 6);
|
|
2098
2098
|
} catch {
|
|
2099
2099
|
return !1;
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
2102
|
async function Ke(s, { byId: I = !1, exact: G = !1 } = {}) {
|
|
2103
|
-
t(18, ie = void 0),
|
|
2104
|
-
const
|
|
2105
|
-
t(19,
|
|
2103
|
+
t(18, ie = void 0), he == null || he.abort();
|
|
2104
|
+
const K = new AbortController();
|
|
2105
|
+
t(19, he = K);
|
|
2106
2106
|
try {
|
|
2107
|
-
const N =
|
|
2108
|
-
if (p !== void 0 && Z.set("language", Array.isArray(p) ? p.join(",") : p ?? ""),
|
|
2109
|
-
const Be = await Ki(b, H,
|
|
2107
|
+
const N = xe(s), Z = new URLSearchParams();
|
|
2108
|
+
if (p !== void 0 && Z.set("language", Array.isArray(p) ? p.join(",") : p ?? ""), ge && Z.set("types", ge.join(",")), Re && Z.set("excludeTypes", String(Re)), u && Z.set("bbox", u.map((Be) => Be.toFixed(6)).join(",")), _ && Z.set("country", Array.isArray(_) ? _.join(",") : _), !I && !N) {
|
|
2109
|
+
const Be = await Ki(b, H, K);
|
|
2110
2110
|
Be && Z.set("proximity", Be), (G || !ee) && Z.set("autocomplete", "false"), Z.set("fuzzyMatch", String(O));
|
|
2111
2111
|
}
|
|
2112
|
-
q !== void 0 && Z.set("limit", String(q)), Z.set("key", d),
|
|
2113
|
-
const ne =
|
|
2114
|
-
if (ne ===
|
|
2115
|
-
I ? (t(14, M = void 0), t(
|
|
2112
|
+
q !== void 0 && (Ze || !N || (ge == null ? void 0 : ge.length) === 1) && Z.set("limit", String(q)), Z.set("key", d), Qe(Z);
|
|
2113
|
+
const ne = Ge + "/" + encodeURIComponent(N ? N.decimalLongitude + "," + N.decimalLatitude : s) + ".json?" + Z.toString();
|
|
2114
|
+
if (ne === lt) {
|
|
2115
|
+
I ? (t(14, M = void 0), t(57, S = Ie[0])) : t(14, M = Ie);
|
|
2116
2116
|
return;
|
|
2117
2117
|
}
|
|
2118
|
-
|
|
2119
|
-
const
|
|
2120
|
-
if (!
|
|
2121
|
-
throw new Error(await
|
|
2122
|
-
const
|
|
2123
|
-
ce("response", { url: ne, featureCollection:
|
|
2118
|
+
lt = ne;
|
|
2119
|
+
const Ye = await fetch(ne, { signal: K.signal, ...qe });
|
|
2120
|
+
if (!Ye.ok)
|
|
2121
|
+
throw new Error(await Ye.text());
|
|
2122
|
+
const $e = await Ye.json();
|
|
2123
|
+
ce("response", { url: ne, featureCollection: $e }), I ? (t(14, M = void 0), t(57, S = $e.features[0]), Ie = [S]) : (t(14, M = $e.features.filter(E)), N && M.unshift({
|
|
2124
2124
|
type: "Feature",
|
|
2125
2125
|
properties: {},
|
|
2126
2126
|
id: "reverse_" + N.decimalLongitude + "_" + N.decimalLatitude,
|
|
@@ -2144,105 +2144,105 @@ function fn(i, e, t) {
|
|
|
2144
2144
|
return;
|
|
2145
2145
|
throw N;
|
|
2146
2146
|
} finally {
|
|
2147
|
-
|
|
2147
|
+
K === he && t(19, he = void 0);
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2151
|
-
var
|
|
2150
|
+
function qt() {
|
|
2151
|
+
var K;
|
|
2152
2152
|
if (!(P != null && P.length) || !C)
|
|
2153
2153
|
return;
|
|
2154
2154
|
const s = [180, 90, -180, -90], I = !P.some((N) => !N.matching_text);
|
|
2155
2155
|
let G;
|
|
2156
2156
|
for (const N of P) {
|
|
2157
|
-
const Z =
|
|
2157
|
+
const Z = Me(N);
|
|
2158
2158
|
if (G = Ue ?? (G === void 0 ? Z : Z === void 0 ? G : Math.max(G, Z)), I || !N.matching_text)
|
|
2159
2159
|
for (const ne of [0, 1, 2, 3])
|
|
2160
|
-
s[ne] = Math[ne < 2 ? "min" : "max"](s[ne], ((
|
|
2160
|
+
s[ne] = Math[ne < 2 ? "min" : "max"](s[ne], ((K = N.bbox) == null ? void 0 : K[ne]) ?? N.center[ne % 2]);
|
|
2161
2161
|
}
|
|
2162
|
-
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center,
|
|
2162
|
+
b && P.length > 0 && (S && s[0] === s[2] && s[1] === s[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(wt(s), 50, G));
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function Me(s) {
|
|
2165
2165
|
var G;
|
|
2166
2166
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2167
2167
|
return;
|
|
2168
|
-
if (typeof
|
|
2169
|
-
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Ue :
|
|
2168
|
+
if (typeof ye == "number")
|
|
2169
|
+
return s.id.startsWith("poi.") || s.id.startsWith("address.") ? Ue : ye;
|
|
2170
2170
|
const I = s.id.replace(/\..*/, "");
|
|
2171
2171
|
return (Array.isArray((G = s.properties) == null ? void 0 : G.categories) ? s.properties.categories.reduce(
|
|
2172
|
-
(
|
|
2173
|
-
const Z =
|
|
2174
|
-
return
|
|
2172
|
+
(K, N) => {
|
|
2173
|
+
const Z = ye[I + "." + N];
|
|
2174
|
+
return K === void 0 ? Z : Z === void 0 ? K : Math.max(K, Z);
|
|
2175
2175
|
},
|
|
2176
2176
|
void 0
|
|
2177
|
-
) : void 0) ??
|
|
2178
|
-
}
|
|
2179
|
-
function qt(s) {
|
|
2180
|
-
t(0, X = W === "always"), t(14, M = void 0), t(56, S = void 0), t(15, R = -1), st(s[1].toFixed(6) + ", " + Vi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2177
|
+
) : void 0) ?? ye[I];
|
|
2181
2178
|
}
|
|
2182
2179
|
function Qt(s) {
|
|
2180
|
+
t(0, X = W === "always"), t(14, M = void 0), t(57, S = void 0), t(15, R = -1), at(s[1].toFixed(6) + ", " + xi(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2181
|
+
}
|
|
2182
|
+
function Vt(s) {
|
|
2183
2183
|
if (!M)
|
|
2184
2184
|
return;
|
|
2185
2185
|
let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2186
2186
|
I && (R === (re ? 0 : -1) && I === -1 && t(15, R = M.length), t(15, R += I), R >= M.length && t(15, R = -1), R < 0 && re && t(15, R = 0), s.preventDefault());
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function Je(s = !0, I = !1) {
|
|
2189
2189
|
if (t(18, ie = void 0), ee || I) {
|
|
2190
|
-
if (
|
|
2190
|
+
if (Ee && clearTimeout(Ee), j.length < g)
|
|
2191
2191
|
return;
|
|
2192
2192
|
const G = j;
|
|
2193
|
-
|
|
2193
|
+
Ee = window.setTimeout(
|
|
2194
2194
|
() => {
|
|
2195
|
-
Ke(G).catch((
|
|
2195
|
+
Ke(G).catch((K) => t(18, ie = K));
|
|
2196
2196
|
},
|
|
2197
2197
|
s ? w : 0
|
|
2198
2198
|
);
|
|
2199
2199
|
} else
|
|
2200
2200
|
t(14, M = void 0), t(18, ie = void 0);
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2203
|
-
t(
|
|
2202
|
+
function Xe(s) {
|
|
2203
|
+
t(57, S = s), t(1, j = s.place_name), t(15, R = -1);
|
|
2204
2204
|
}
|
|
2205
|
-
const
|
|
2205
|
+
const xt = () => te.focus();
|
|
2206
2206
|
function Kt(s) {
|
|
2207
|
-
|
|
2207
|
+
it[s ? "unshift" : "push"](() => {
|
|
2208
2208
|
te = s, t(17, te);
|
|
2209
2209
|
});
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2212
|
-
j = this.value, t(1, j), t(13,
|
|
2211
|
+
function Jt() {
|
|
2212
|
+
j = this.value, t(1, j), t(13, we), t(28, h);
|
|
2213
2213
|
}
|
|
2214
|
-
const
|
|
2214
|
+
const Xt = () => t(13, we = !0), Yt = () => t(13, we = !1), $t = () => Je(), ei = () => {
|
|
2215
2215
|
t(1, j = ""), te.focus();
|
|
2216
|
-
},
|
|
2216
|
+
}, ti = () => t(0, X = !X), ii = () => t(18, ie = void 0), ni = (s) => t(15, R = s), ri = (s) => Xe(s), oi = () => {
|
|
2217
2217
|
re || t(15, R = -1);
|
|
2218
|
-
},
|
|
2218
|
+
}, si = () => {
|
|
2219
2219
|
};
|
|
2220
2220
|
return i.$$set = (s) => {
|
|
2221
|
-
"class" in s && t(2, r = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, O = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, k = s.placeholder), "proximity" in s && t(38, H = s.proximity), "reverseActive" in s && t(0, X = s.reverseActive), "reverseButtonTitle" in s && t(9, $ = s.reverseButtonTitle), "searchValue" in s && t(1, j = s.searchValue), "showFullGeometry" in s && t(39, L = s.showFullGeometry), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, ee = s.showResultsWhileTyping), "selectFirst" in s && t(11, re = s.selectFirst), "flyToSelected" in s && t(41, Pe = s.flyToSelected), "markerOnSelected" in s && t(42,
|
|
2221
|
+
"class" in s && t(2, r = s.class), "apiKey" in s && t(26, d = s.apiKey), "bbox" in s && t(27, u = s.bbox), "clearButtonTitle" in s && t(3, f = s.clearButtonTitle), "clearOnBlur" in s && t(28, h = s.clearOnBlur), "collapsed" in s && t(4, v = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, w = s.debounceSearch), "enableReverse" in s && t(5, W = s.enableReverse), "errorMessage" in s && t(6, y = s.errorMessage), "filter" in s && t(31, E = s.filter), "flyTo" in s && t(32, C = s.flyTo), "fuzzyMatch" in s && t(33, O = s.fuzzyMatch), "language" in s && t(34, p = s.language), "limit" in s && t(35, q = s.limit), "mapController" in s && t(36, b = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, m = s.noResultsMessage), "placeholder" in s && t(8, k = s.placeholder), "proximity" in s && t(38, H = s.proximity), "reverseActive" in s && t(0, X = s.reverseActive), "reverseButtonTitle" in s && t(9, $ = s.reverseButtonTitle), "searchValue" in s && t(1, j = s.searchValue), "showFullGeometry" in s && t(39, L = s.showFullGeometry), "showPlaceType" in s && t(10, F = s.showPlaceType), "showResultsWhileTyping" in s && t(40, ee = s.showResultsWhileTyping), "selectFirst" in s && t(11, re = s.selectFirst), "flyToSelected" in s && t(41, Pe = s.flyToSelected), "markerOnSelected" in s && t(42, De = s.markerOnSelected), "types" in s && t(43, ge = s.types), "exhaustiveReverseGeocoding" in s && t(44, Ze = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Re = s.excludeTypes), "zoom" in s && t(46, ye = s.zoom), "maxZoom" in s && t(47, Ue = s.maxZoom), "apiUrl" in s && t(48, Ge = s.apiUrl), "fetchParameters" in s && t(49, qe = s.fetchParameters), "iconsBaseUrl" in s && t(12, st = s.iconsBaseUrl), "adjustUrlQuery" in s && t(50, Qe = s.adjustUrlQuery), "$$scope" in s && t(60, l = s.$$scope);
|
|
2222
2222
|
}, i.$$.update = () => {
|
|
2223
2223
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2224
2224
|
32 && t(0, X = W === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2225
2225
|
268443648 && setTimeout(() => {
|
|
2226
|
-
t(16, Ae =
|
|
2226
|
+
t(16, Ae = we), h && !we && t(1, j = "");
|
|
2227
2227
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2228
2228
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2229
|
-
64 && j.length < g && (t(
|
|
2230
|
-
|
|
2231
|
-
|
|
2229
|
+
64 && j.length < g && (t(57, S = void 0), t(14, M = void 0), t(18, ie = void 0), t(56, P = M)), i.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
2230
|
+
67109120 && L && S && !S.address && S.geometry.type === "Point" && S.place_type[0] !== "reverse" && Ke(S.id, { byId: !0 }).catch((s) => t(18, ie = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2231
|
+
201326626 && (b && S && S.id !== Ve && C && (!S.bbox || S.bbox[0] === S.bbox[2] && S.bbox[1] === S.bbox[3] ? b.flyTo(S.center, Me(S)) : b.fitBounds(wt(S.bbox), 50, Me(S)), t(14, M = void 0), t(56, P = void 0), t(15, R = -1)), t(58, Ve = S == null ? void 0 : S.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2232
2232
|
18432 && re && M != null && M.length && t(15, R = 0), i.$$.dirty[0] & /*searchValue*/
|
|
2233
2233
|
2 && t(15, R = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2234
2234
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2235
|
-
|
|
2235
|
+
33554432 && P !== M && t(56, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2236
2236
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2237
|
-
|
|
2237
|
+
33554464 && b && b.setEventHandler((s) => {
|
|
2238
2238
|
switch (s.type) {
|
|
2239
2239
|
case "mapClick":
|
|
2240
|
-
X &&
|
|
2240
|
+
X && Qt(s.coordinates);
|
|
2241
2241
|
break;
|
|
2242
2242
|
case "markerClick":
|
|
2243
2243
|
{
|
|
2244
2244
|
const I = M == null ? void 0 : M.find((G) => G.id === s.id);
|
|
2245
|
-
I &&
|
|
2245
|
+
I && Xe(I);
|
|
2246
2246
|
}
|
|
2247
2247
|
break;
|
|
2248
2248
|
case "markerMouseEnter":
|
|
@@ -2253,24 +2253,24 @@ function fn(i, e, t) {
|
|
|
2253
2253
|
break;
|
|
2254
2254
|
}
|
|
2255
2255
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2256
|
-
49152 && t(
|
|
2257
|
-
|
|
2258
|
-
2080 && (
|
|
2259
|
-
|
|
2260
|
-
|
|
2256
|
+
49152 && t(59, n = M == null ? void 0 : M[R]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2257
|
+
268436514 && b && n && C && Pe && b.flyTo(n.center, Me(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2258
|
+
2080 && (De || b == null || b.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
|
|
2259
|
+
301991968 && b && De && !P && (b.setMarkers(n ? [n] : void 0, void 0), b.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
2260
|
+
100663328 && b && b.setMarkers(P, S), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2261
2261
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2262
|
-
|
|
2262
|
+
33554464 && P && b && b.setSelectedMarker(R), i.$$.dirty[0] & /*searchValue*/
|
|
2263
2263
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2264
2264
|
32 && b) {
|
|
2265
|
-
const s =
|
|
2265
|
+
const s = xe(j);
|
|
2266
2266
|
b.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2267
2267
|
}
|
|
2268
2268
|
i.$$.dirty[1] & /*selected*/
|
|
2269
|
-
|
|
2270
|
-
|
|
2269
|
+
268435456 && ce("select", n), i.$$.dirty[1] & /*picked*/
|
|
2270
|
+
67108864 && ce("pick", S), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2271
2271
|
81920 && ce("optionsVisibilityChange", Ae && !!M), i.$$.dirty[0] & /*listFeatures*/
|
|
2272
2272
|
16384 && ce("featuresListed", M), i.$$.dirty[1] & /*markedFeatures*/
|
|
2273
|
-
|
|
2273
|
+
33554432 && ce("featuresMarked", P), i.$$.dirty[0] & /*reverseActive*/
|
|
2274
2274
|
1 && ce("reverseToggle", X), i.$$.dirty[0] & /*searchValue*/
|
|
2275
2275
|
2 && ce("queryChange", j), i.$$.dirty[0] & /*reverseActive*/
|
|
2276
2276
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
@@ -2288,19 +2288,19 @@ function fn(i, e, t) {
|
|
|
2288
2288
|
$,
|
|
2289
2289
|
F,
|
|
2290
2290
|
re,
|
|
2291
|
-
|
|
2292
|
-
|
|
2291
|
+
st,
|
|
2292
|
+
we,
|
|
2293
2293
|
M,
|
|
2294
2294
|
R,
|
|
2295
2295
|
Ae,
|
|
2296
2296
|
te,
|
|
2297
2297
|
ie,
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
xe,
|
|
2298
|
+
he,
|
|
2299
|
+
Gt,
|
|
2300
|
+
ut,
|
|
2301
|
+
Vt,
|
|
2303
2302
|
Je,
|
|
2303
|
+
Xe,
|
|
2304
2304
|
c,
|
|
2305
2305
|
d,
|
|
2306
2306
|
u,
|
|
@@ -2318,28 +2318,28 @@ function fn(i, e, t) {
|
|
|
2318
2318
|
L,
|
|
2319
2319
|
ee,
|
|
2320
2320
|
Pe,
|
|
2321
|
-
Oe,
|
|
2322
2321
|
De,
|
|
2322
|
+
ge,
|
|
2323
|
+
Ze,
|
|
2323
2324
|
Re,
|
|
2324
|
-
|
|
2325
|
+
ye,
|
|
2325
2326
|
Ue,
|
|
2326
|
-
Ze,
|
|
2327
2327
|
Ge,
|
|
2328
2328
|
qe,
|
|
2329
|
-
|
|
2329
|
+
Qe,
|
|
2330
2330
|
Ht,
|
|
2331
|
-
st,
|
|
2332
2331
|
jt,
|
|
2332
|
+
at,
|
|
2333
2333
|
Pt,
|
|
2334
|
+
Zt,
|
|
2334
2335
|
P,
|
|
2335
2336
|
S,
|
|
2336
|
-
|
|
2337
|
+
Ve,
|
|
2337
2338
|
n,
|
|
2338
2339
|
l,
|
|
2339
2340
|
o,
|
|
2340
|
-
Vt,
|
|
2341
|
-
Kt,
|
|
2342
2341
|
xt,
|
|
2342
|
+
Kt,
|
|
2343
2343
|
Jt,
|
|
2344
2344
|
Xt,
|
|
2345
2345
|
Yt,
|
|
@@ -2349,17 +2349,18 @@ function fn(i, e, t) {
|
|
|
2349
2349
|
ii,
|
|
2350
2350
|
ni,
|
|
2351
2351
|
ri,
|
|
2352
|
-
oi
|
|
2352
|
+
oi,
|
|
2353
|
+
si
|
|
2353
2354
|
];
|
|
2354
2355
|
}
|
|
2355
|
-
let
|
|
2356
|
+
let gn = class extends _e {
|
|
2356
2357
|
constructor(e) {
|
|
2357
|
-
super(),
|
|
2358
|
+
super(), Le(
|
|
2358
2359
|
this,
|
|
2359
2360
|
e,
|
|
2361
|
+
mn,
|
|
2360
2362
|
fn,
|
|
2361
|
-
|
|
2362
|
-
be,
|
|
2363
|
+
ve,
|
|
2363
2364
|
{
|
|
2364
2365
|
ZOOM_DEFAULTS: 25,
|
|
2365
2366
|
class: 2,
|
|
@@ -2392,18 +2393,19 @@ let mn = class extends Le {
|
|
|
2392
2393
|
flyToSelected: 41,
|
|
2393
2394
|
markerOnSelected: 42,
|
|
2394
2395
|
types: 43,
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2396
|
+
exhaustiveReverseGeocoding: 44,
|
|
2397
|
+
excludeTypes: 45,
|
|
2398
|
+
zoom: 46,
|
|
2399
|
+
maxZoom: 47,
|
|
2400
|
+
apiUrl: 48,
|
|
2401
|
+
fetchParameters: 49,
|
|
2400
2402
|
iconsBaseUrl: 12,
|
|
2401
|
-
adjustUrlQuery:
|
|
2402
|
-
focus:
|
|
2403
|
-
blur:
|
|
2404
|
-
setQuery:
|
|
2405
|
-
clearList:
|
|
2406
|
-
clearMap:
|
|
2403
|
+
adjustUrlQuery: 50,
|
|
2404
|
+
focus: 51,
|
|
2405
|
+
blur: 52,
|
|
2406
|
+
setQuery: 53,
|
|
2407
|
+
clearList: 54,
|
|
2408
|
+
clearMap: 55
|
|
2407
2409
|
},
|
|
2408
2410
|
null,
|
|
2409
2411
|
[-1, -1, -1]
|
|
@@ -2413,30 +2415,30 @@ let mn = class extends Le {
|
|
|
2413
2415
|
return this.$$.ctx[25];
|
|
2414
2416
|
}
|
|
2415
2417
|
get focus() {
|
|
2416
|
-
return this.$$.ctx[
|
|
2418
|
+
return this.$$.ctx[51];
|
|
2417
2419
|
}
|
|
2418
2420
|
get blur() {
|
|
2419
|
-
return this.$$.ctx[
|
|
2421
|
+
return this.$$.ctx[52];
|
|
2420
2422
|
}
|
|
2421
2423
|
get setQuery() {
|
|
2422
|
-
return this.$$.ctx[
|
|
2424
|
+
return this.$$.ctx[53];
|
|
2423
2425
|
}
|
|
2424
2426
|
get clearList() {
|
|
2425
|
-
return this.$$.ctx[
|
|
2427
|
+
return this.$$.ctx[54];
|
|
2426
2428
|
}
|
|
2427
2429
|
get clearMap() {
|
|
2428
|
-
return this.$$.ctx[
|
|
2430
|
+
return this.$$.ctx[55];
|
|
2429
2431
|
}
|
|
2430
2432
|
};
|
|
2431
|
-
const
|
|
2433
|
+
const hn = new FinalizationRegistry((i) => {
|
|
2432
2434
|
i.$destroy();
|
|
2433
2435
|
});
|
|
2434
2436
|
var Y;
|
|
2435
|
-
class
|
|
2437
|
+
class Ln extends EventTarget {
|
|
2436
2438
|
constructor({ target: t, ...n }) {
|
|
2437
2439
|
super();
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
+
ft(this, Y);
|
|
2441
|
+
mt(this, Y, new gn({
|
|
2440
2442
|
target: t,
|
|
2441
2443
|
props: n
|
|
2442
2444
|
}));
|
|
@@ -2451,7 +2453,7 @@ class vn extends EventTarget {
|
|
|
2451
2453
|
"queryChange"
|
|
2452
2454
|
])
|
|
2453
2455
|
oe(this, Y).$on(o, (l) => this.dispatchEvent(l));
|
|
2454
|
-
|
|
2456
|
+
hn.register(this, oe(this, Y));
|
|
2455
2457
|
}
|
|
2456
2458
|
setOptions(t) {
|
|
2457
2459
|
oe(this, Y).$set(t);
|
|
@@ -2479,6 +2481,6 @@ class vn extends EventTarget {
|
|
|
2479
2481
|
}
|
|
2480
2482
|
Y = new WeakMap();
|
|
2481
2483
|
export {
|
|
2482
|
-
|
|
2484
|
+
Ln as GeocodingControl
|
|
2483
2485
|
};
|
|
2484
2486
|
//# sourceMappingURL=vanilla.js.map
|