@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/maptilersdk.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var zn = Object.defineProperty;
|
|
2
|
+
var wi = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var P = (i, e, t) =>
|
|
7
|
-
var
|
|
8
|
-
import * as
|
|
9
|
-
function
|
|
5
|
+
var Un = (i, e, t) => e in i ? zn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
|
+
var P = (i, e, t) => Un(i, typeof e != "symbol" ? e + "" : e, t), Ei = (i, e, t) => e.has(i) || wi("Cannot " + t);
|
|
7
|
+
var ue = (i, e, t) => (Ei(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Xt = (i, e, t) => e.has(i) ? wi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Jt = (i, e, t, n) => (Ei(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
|
|
8
|
+
import * as Li from "@maptiler/sdk";
|
|
9
|
+
function ee() {
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function qn(i, e) {
|
|
12
12
|
for (const t in e) i[t] = e[t];
|
|
13
13
|
return (
|
|
14
14
|
/** @type {T & S} */
|
|
15
15
|
i
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function $i(i) {
|
|
19
19
|
return i();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function _i() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
i.forEach(
|
|
24
|
+
function je(i) {
|
|
25
|
+
i.forEach($i);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function en(i) {
|
|
28
28
|
return typeof i == "function";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Qe(i, e) {
|
|
31
31
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
32
32
|
}
|
|
33
|
-
let
|
|
34
|
-
function
|
|
35
|
-
return i === e ? !0 : (
|
|
33
|
+
let Mt;
|
|
34
|
+
function me(i, e) {
|
|
35
|
+
return i === e ? !0 : (Mt || (Mt = document.createElement("a")), Mt.href = e, i === Mt.href);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Fn(i) {
|
|
38
38
|
return Object.keys(i).length === 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function jn(i, e, t, n) {
|
|
41
41
|
if (i) {
|
|
42
|
-
const r =
|
|
42
|
+
const r = tn(i, e, t, n);
|
|
43
43
|
return i[0](r);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return i[1] && n ?
|
|
46
|
+
function tn(i, e, t, n) {
|
|
47
|
+
return i[1] && n ? qn(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Zn(i, e, t, n) {
|
|
50
50
|
return i[2], e.dirty;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Hn(i, e, t, n, r, u) {
|
|
53
53
|
if (r) {
|
|
54
|
-
const h =
|
|
54
|
+
const h = tn(e, t, n, u);
|
|
55
55
|
i.p(h, r);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Vn(i) {
|
|
59
59
|
if (i.ctx.length > 32) {
|
|
60
60
|
const e = [], t = i.ctx.length / 32;
|
|
61
61
|
for (let n = 0; n < t; n++)
|
|
@@ -64,37 +64,37 @@ function Xn(i) {
|
|
|
64
64
|
}
|
|
65
65
|
return -1;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Wt(i) {
|
|
68
68
|
return i ?? "";
|
|
69
69
|
}
|
|
70
70
|
function H(i, e) {
|
|
71
71
|
i.appendChild(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function te(i, e, t) {
|
|
74
74
|
i.insertBefore(e, t || null);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $(i) {
|
|
77
77
|
i.parentNode && i.parentNode.removeChild(i);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function X(i) {
|
|
80
80
|
return document.createElement(i);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ke(i) {
|
|
83
83
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ke(i) {
|
|
86
86
|
return document.createTextNode(i);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function Ee() {
|
|
89
|
+
return Ke(" ");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function Kn() {
|
|
92
|
+
return Ke("");
|
|
93
93
|
}
|
|
94
94
|
function ce(i, e, t, n) {
|
|
95
95
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Yn(i) {
|
|
98
98
|
return function(e) {
|
|
99
99
|
return e.preventDefault(), i.call(this, e);
|
|
100
100
|
};
|
|
@@ -102,39 +102,39 @@ function $n(i) {
|
|
|
102
102
|
function x(i, e, t) {
|
|
103
103
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Qn(i) {
|
|
106
106
|
return Array.from(i.childNodes);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Et(i, e) {
|
|
109
109
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
110
110
|
e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Si(i, e) {
|
|
113
113
|
i.value = e ?? "";
|
|
114
114
|
}
|
|
115
115
|
function Be(i, e, t) {
|
|
116
116
|
i.classList.toggle(e, !!t);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Xn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
119
119
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
let Lt;
|
|
122
|
+
function wt(i) {
|
|
123
|
+
Lt = i;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
127
|
-
return
|
|
125
|
+
function nn() {
|
|
126
|
+
if (!Lt) throw new Error("Function called outside component initialization");
|
|
127
|
+
return Lt;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Jn(i) {
|
|
130
|
+
nn().$$.on_destroy.push(i);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const i =
|
|
132
|
+
function rn() {
|
|
133
|
+
const i = nn();
|
|
134
134
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
135
135
|
const r = i.$$.callbacks[e];
|
|
136
136
|
if (r) {
|
|
137
|
-
const u =
|
|
137
|
+
const u = Xn(
|
|
138
138
|
/** @type {string} */
|
|
139
139
|
e,
|
|
140
140
|
t,
|
|
@@ -147,90 +147,90 @@ function ln() {
|
|
|
147
147
|
return !0;
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function $n(i, e) {
|
|
151
151
|
const t = i.$$.callbacks[e.type];
|
|
152
152
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
|
|
154
|
+
const ut = [], ii = [];
|
|
155
|
+
let at = [];
|
|
156
|
+
const xi = [], er = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let ni = !1;
|
|
158
|
+
function tr() {
|
|
159
|
+
ni || (ni = !0, er.then(sn));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function ri(i) {
|
|
162
|
+
at.push(i);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
164
|
+
const $t = /* @__PURE__ */ new Set();
|
|
165
|
+
let lt = 0;
|
|
166
|
+
function sn() {
|
|
167
|
+
if (lt !== 0)
|
|
168
168
|
return;
|
|
169
|
-
const i =
|
|
169
|
+
const i = Lt;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const e =
|
|
174
|
-
|
|
172
|
+
for (; lt < ut.length; ) {
|
|
173
|
+
const e = ut[lt];
|
|
174
|
+
lt++, wt(e), ir(e.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (e) {
|
|
177
|
-
throw
|
|
178
|
-
}
|
|
179
|
-
for (
|
|
180
|
-
for (let e = 0; e <
|
|
181
|
-
const t =
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
} while (
|
|
186
|
-
for (;
|
|
187
|
-
|
|
188
|
-
|
|
177
|
+
throw ut.length = 0, lt = 0, e;
|
|
178
|
+
}
|
|
179
|
+
for (wt(null), ut.length = 0, lt = 0; ii.length; ) ii.pop()();
|
|
180
|
+
for (let e = 0; e < at.length; e += 1) {
|
|
181
|
+
const t = at[e];
|
|
182
|
+
$t.has(t) || ($t.add(t), t());
|
|
183
|
+
}
|
|
184
|
+
at.length = 0;
|
|
185
|
+
} while (ut.length);
|
|
186
|
+
for (; xi.length; )
|
|
187
|
+
xi.pop()();
|
|
188
|
+
ni = !1, $t.clear(), wt(i);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function ir(i) {
|
|
191
191
|
if (i.fragment !== null) {
|
|
192
|
-
i.update(),
|
|
192
|
+
i.update(), je(i.before_update);
|
|
193
193
|
const e = i.dirty;
|
|
194
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
194
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(ri);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function nr(i) {
|
|
198
198
|
const e = [], t = [];
|
|
199
|
-
|
|
199
|
+
at.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), at = e;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
function
|
|
204
|
-
|
|
201
|
+
const Rt = /* @__PURE__ */ new Set();
|
|
202
|
+
let rt;
|
|
203
|
+
function Pt() {
|
|
204
|
+
rt = {
|
|
205
205
|
r: 0,
|
|
206
206
|
c: [],
|
|
207
|
-
p:
|
|
207
|
+
p: rt
|
|
208
208
|
// parent group
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
211
|
+
function It() {
|
|
212
|
+
rt.r || je(rt.c), rt = rt.p;
|
|
213
213
|
}
|
|
214
214
|
function oe(i, e) {
|
|
215
|
-
i && i.i && (
|
|
215
|
+
i && i.i && (Rt.delete(i), i.i(e));
|
|
216
216
|
}
|
|
217
217
|
function he(i, e, t, n) {
|
|
218
218
|
if (i && i.o) {
|
|
219
|
-
if (
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
if (Rt.has(i)) return;
|
|
220
|
+
Rt.add(i), rt.c.push(() => {
|
|
221
|
+
Rt.delete(i), n && (t && i.d(1), n());
|
|
222
222
|
}), i.o(e);
|
|
223
223
|
} else n && n();
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Ti(i) {
|
|
226
226
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function rr(i, e) {
|
|
229
229
|
he(i, 1, 1, () => {
|
|
230
230
|
e.delete(i.key);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function sr(i, e, t, n, r, u, h, o, g, c, E, S) {
|
|
234
234
|
let C = i.length, R = u.length, O = C;
|
|
235
235
|
const A = {};
|
|
236
236
|
for (; O--; ) A[i[O].key] = O;
|
|
@@ -253,36 +253,36 @@ function ar(i, e, t, n, r, u, h, o, g, c, E, S) {
|
|
|
253
253
|
k.has(B.key) || g(B, h);
|
|
254
254
|
}
|
|
255
255
|
for (; R; ) z(M[R - 1]);
|
|
256
|
-
return
|
|
256
|
+
return je(N), M;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Ye(i) {
|
|
259
259
|
i && i.c();
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Ue(i, e, t) {
|
|
262
262
|
const { fragment: n, after_update: r } = i.$$;
|
|
263
|
-
n && n.m(e, t),
|
|
264
|
-
const u = i.$$.on_mount.map(
|
|
265
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...u) :
|
|
266
|
-
}), r.forEach(
|
|
263
|
+
n && n.m(e, t), ri(() => {
|
|
264
|
+
const u = i.$$.on_mount.map($i).filter(en);
|
|
265
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...u) : je(u), i.$$.on_mount = [];
|
|
266
|
+
}), r.forEach(ri);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function qe(i, e) {
|
|
269
269
|
const t = i.$$;
|
|
270
|
-
t.fragment !== null && (
|
|
270
|
+
t.fragment !== null && (nr(t.after_update), je(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
i.$$.dirty[0] === -1 && (
|
|
272
|
+
function or(i, e) {
|
|
273
|
+
i.$$.dirty[0] === -1 && (ut.push(i), tr(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const g =
|
|
277
|
-
|
|
275
|
+
function Xe(i, e, t, n, r, u, h = null, o = [-1]) {
|
|
276
|
+
const g = Lt;
|
|
277
|
+
wt(i);
|
|
278
278
|
const c = i.$$ = {
|
|
279
279
|
fragment: null,
|
|
280
280
|
ctx: [],
|
|
281
281
|
// state
|
|
282
282
|
props: u,
|
|
283
|
-
update:
|
|
283
|
+
update: ee,
|
|
284
284
|
not_equal: r,
|
|
285
|
-
bound:
|
|
285
|
+
bound: _i(),
|
|
286
286
|
// lifecycle
|
|
287
287
|
on_mount: [],
|
|
288
288
|
on_destroy: [],
|
|
@@ -291,7 +291,7 @@ function $e(i, e, t, n, r, u, h = null, o = [-1]) {
|
|
|
291
291
|
after_update: [],
|
|
292
292
|
context: new Map(e.context || (g ? g.$$.context : [])),
|
|
293
293
|
// everything else
|
|
294
|
-
callbacks:
|
|
294
|
+
callbacks: _i(),
|
|
295
295
|
dirty: o,
|
|
296
296
|
skip_bound: !1,
|
|
297
297
|
root: e.target || g.$$.root
|
|
@@ -300,18 +300,18 @@ function $e(i, e, t, n, r, u, h = null, o = [-1]) {
|
|
|
300
300
|
let E = !1;
|
|
301
301
|
if (c.ctx = t ? t(i, e.props || {}, (S, C, ...R) => {
|
|
302
302
|
const O = R.length ? R[0] : C;
|
|
303
|
-
return c.ctx && r(c.ctx[S], c.ctx[S] = O) && (!c.skip_bound && c.bound[S] && c.bound[S](O), E &&
|
|
304
|
-
}) : [], c.update(), E = !0,
|
|
303
|
+
return c.ctx && r(c.ctx[S], c.ctx[S] = O) && (!c.skip_bound && c.bound[S] && c.bound[S](O), E && or(i, S)), C;
|
|
304
|
+
}) : [], c.update(), E = !0, je(c.before_update), c.fragment = n ? n(c.ctx) : !1, e.target) {
|
|
305
305
|
if (e.hydrate) {
|
|
306
|
-
const S =
|
|
307
|
-
c.fragment && c.fragment.l(S), S.forEach(
|
|
306
|
+
const S = Qn(e.target);
|
|
307
|
+
c.fragment && c.fragment.l(S), S.forEach($);
|
|
308
308
|
} else
|
|
309
309
|
c.fragment && c.fragment.c();
|
|
310
|
-
e.intro && oe(i.$$.fragment),
|
|
310
|
+
e.intro && oe(i.$$.fragment), Ue(i, e.target, e.anchor), sn();
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
wt(g);
|
|
313
313
|
}
|
|
314
|
-
class
|
|
314
|
+
class Je {
|
|
315
315
|
constructor() {
|
|
316
316
|
/**
|
|
317
317
|
* ### PRIVATE API
|
|
@@ -332,7 +332,7 @@ class et {
|
|
|
332
332
|
}
|
|
333
333
|
/** @returns {void} */
|
|
334
334
|
$destroy() {
|
|
335
|
-
|
|
335
|
+
qe(this, 1), this.$destroy = ee;
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
338
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -341,8 +341,8 @@ class et {
|
|
|
341
341
|
* @returns {() => void}
|
|
342
342
|
*/
|
|
343
343
|
$on(e, t) {
|
|
344
|
-
if (!
|
|
345
|
-
return
|
|
344
|
+
if (!en(t))
|
|
345
|
+
return ee;
|
|
346
346
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
347
347
|
return n.push(t), () => {
|
|
348
348
|
const r = n.indexOf(t);
|
|
@@ -354,60 +354,60 @@ class et {
|
|
|
354
354
|
* @returns {void}
|
|
355
355
|
*/
|
|
356
356
|
$set(e) {
|
|
357
|
-
this.$$set && !
|
|
357
|
+
this.$$set && !Fn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
const
|
|
361
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
362
|
-
function
|
|
360
|
+
const lr = "4";
|
|
361
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lr);
|
|
362
|
+
function ur(i) {
|
|
363
363
|
let e, t;
|
|
364
364
|
return {
|
|
365
365
|
c() {
|
|
366
|
-
e =
|
|
366
|
+
e = ke("svg"), t = ke("path"), x(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"), x(e, "viewBox", "0 0 14 14"), x(e, "width", "13"), x(e, "height", "13"), x(e, "class", "svelte-en2qvf");
|
|
367
367
|
},
|
|
368
368
|
m(n, r) {
|
|
369
|
-
|
|
369
|
+
te(n, e, r), H(e, t);
|
|
370
370
|
},
|
|
371
|
-
p:
|
|
372
|
-
i:
|
|
373
|
-
o:
|
|
371
|
+
p: ee,
|
|
372
|
+
i: ee,
|
|
373
|
+
o: ee,
|
|
374
374
|
d(n) {
|
|
375
|
-
n &&
|
|
375
|
+
n && $(e);
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class on extends Je {
|
|
380
380
|
constructor(e) {
|
|
381
|
-
super(),
|
|
381
|
+
super(), Xe(this, e, null, ur, Qe, {});
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function ar(i) {
|
|
385
385
|
let e, t;
|
|
386
386
|
return {
|
|
387
387
|
c() {
|
|
388
|
-
e =
|
|
388
|
+
e = ke("svg"), t = ke("path"), x(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"), x(e, "viewBox", "0 0 30 30"), x(e, "fill", "none"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "class", "svelte-d2loi5");
|
|
389
389
|
},
|
|
390
390
|
m(n, r) {
|
|
391
|
-
|
|
391
|
+
te(n, e, r), H(e, t);
|
|
392
392
|
},
|
|
393
|
-
p:
|
|
394
|
-
i:
|
|
395
|
-
o:
|
|
393
|
+
p: ee,
|
|
394
|
+
i: ee,
|
|
395
|
+
o: ee,
|
|
396
396
|
d(n) {
|
|
397
|
-
n &&
|
|
397
|
+
n && $(e);
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
class
|
|
401
|
+
class ln extends Je {
|
|
402
402
|
constructor(e) {
|
|
403
|
-
super(),
|
|
403
|
+
super(), Xe(this, e, null, ar, Qe, {});
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function fr(i) {
|
|
407
407
|
let e, t;
|
|
408
408
|
return {
|
|
409
409
|
c() {
|
|
410
|
-
e =
|
|
410
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
411
411
|
i[3] + "area.svg") || x(e, "src", t), x(
|
|
412
412
|
e,
|
|
413
413
|
"alt",
|
|
@@ -421,11 +421,11 @@ function gr(i) {
|
|
|
421
421
|
), x(e, "class", "svelte-w9y5n9");
|
|
422
422
|
},
|
|
423
423
|
m(n, r) {
|
|
424
|
-
|
|
424
|
+
te(n, e, r);
|
|
425
425
|
},
|
|
426
426
|
p(n, r) {
|
|
427
427
|
r & /*iconsBaseUrl*/
|
|
428
|
-
8 && !
|
|
428
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
429
429
|
n[3] + "area.svg") && x(e, "src", t), r & /*placeType*/
|
|
430
430
|
128 && x(
|
|
431
431
|
e,
|
|
@@ -441,15 +441,15 @@ function gr(i) {
|
|
|
441
441
|
);
|
|
442
442
|
},
|
|
443
443
|
d(n) {
|
|
444
|
-
n &&
|
|
444
|
+
n && $(e);
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function cr(i) {
|
|
449
449
|
let e, t;
|
|
450
450
|
return {
|
|
451
451
|
c() {
|
|
452
|
-
e =
|
|
452
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
453
453
|
i[3] + "reverse.svg") || x(e, "src", t), x(
|
|
454
454
|
e,
|
|
455
455
|
"alt",
|
|
@@ -463,11 +463,11 @@ function mr(i) {
|
|
|
463
463
|
), x(e, "class", "svelte-w9y5n9");
|
|
464
464
|
},
|
|
465
465
|
m(n, r) {
|
|
466
|
-
|
|
466
|
+
te(n, e, r);
|
|
467
467
|
},
|
|
468
468
|
p(n, r) {
|
|
469
469
|
r & /*iconsBaseUrl*/
|
|
470
|
-
8 && !
|
|
470
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
471
471
|
n[3] + "reverse.svg") && x(e, "src", t), r & /*placeType*/
|
|
472
472
|
128 && x(
|
|
473
473
|
e,
|
|
@@ -483,15 +483,15 @@ function mr(i) {
|
|
|
483
483
|
);
|
|
484
484
|
},
|
|
485
485
|
d(n) {
|
|
486
|
-
n &&
|
|
486
|
+
n && $(e);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function hr(i) {
|
|
491
491
|
let e, t;
|
|
492
492
|
return {
|
|
493
493
|
c() {
|
|
494
|
-
e =
|
|
494
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
495
495
|
i[3] + "poi.svg") || x(e, "src", t), x(
|
|
496
496
|
e,
|
|
497
497
|
"alt",
|
|
@@ -505,11 +505,11 @@ function pr(i) {
|
|
|
505
505
|
), x(e, "class", "svelte-w9y5n9");
|
|
506
506
|
},
|
|
507
507
|
m(n, r) {
|
|
508
|
-
|
|
508
|
+
te(n, e, r);
|
|
509
509
|
},
|
|
510
510
|
p(n, r) {
|
|
511
511
|
r & /*iconsBaseUrl*/
|
|
512
|
-
8 && !
|
|
512
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
513
513
|
n[3] + "poi.svg") && x(e, "src", t), r & /*placeType*/
|
|
514
514
|
128 && x(
|
|
515
515
|
e,
|
|
@@ -525,15 +525,15 @@ function pr(i) {
|
|
|
525
525
|
);
|
|
526
526
|
},
|
|
527
527
|
d(n) {
|
|
528
|
-
n &&
|
|
528
|
+
n && $(e);
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function dr(i) {
|
|
533
533
|
let e, t;
|
|
534
534
|
return {
|
|
535
535
|
c() {
|
|
536
|
-
e =
|
|
536
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
537
537
|
i[3] + "postal_code.svg") || x(e, "src", t), x(
|
|
538
538
|
e,
|
|
539
539
|
"alt",
|
|
@@ -547,11 +547,11 @@ function yr(i) {
|
|
|
547
547
|
), x(e, "class", "svelte-w9y5n9");
|
|
548
548
|
},
|
|
549
549
|
m(n, r) {
|
|
550
|
-
|
|
550
|
+
te(n, e, r);
|
|
551
551
|
},
|
|
552
552
|
p(n, r) {
|
|
553
553
|
r & /*iconsBaseUrl*/
|
|
554
|
-
8 && !
|
|
554
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
555
555
|
n[3] + "postal_code.svg") && x(e, "src", t), r & /*placeType*/
|
|
556
556
|
128 && x(
|
|
557
557
|
e,
|
|
@@ -567,15 +567,15 @@ function yr(i) {
|
|
|
567
567
|
);
|
|
568
568
|
},
|
|
569
569
|
d(n) {
|
|
570
|
-
n &&
|
|
570
|
+
n && $(e);
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function gr(i) {
|
|
575
575
|
let e, t;
|
|
576
576
|
return {
|
|
577
577
|
c() {
|
|
578
|
-
e =
|
|
578
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
579
579
|
i[3] + "street.svg") || x(e, "src", t), x(
|
|
580
580
|
e,
|
|
581
581
|
"alt",
|
|
@@ -589,11 +589,11 @@ function vr(i) {
|
|
|
589
589
|
), x(e, "class", "svelte-w9y5n9");
|
|
590
590
|
},
|
|
591
591
|
m(n, r) {
|
|
592
|
-
|
|
592
|
+
te(n, e, r);
|
|
593
593
|
},
|
|
594
594
|
p(n, r) {
|
|
595
595
|
r & /*iconsBaseUrl*/
|
|
596
|
-
8 && !
|
|
596
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
597
597
|
n[3] + "street.svg") && x(e, "src", t), r & /*placeType*/
|
|
598
598
|
128 && x(
|
|
599
599
|
e,
|
|
@@ -609,15 +609,15 @@ function vr(i) {
|
|
|
609
609
|
);
|
|
610
610
|
},
|
|
611
611
|
d(n) {
|
|
612
|
-
n &&
|
|
612
|
+
n && $(e);
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function mr(i) {
|
|
617
617
|
let e, t;
|
|
618
618
|
return {
|
|
619
619
|
c() {
|
|
620
|
-
e =
|
|
620
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
621
621
|
i[3] + "road.svg") || x(e, "src", t), x(
|
|
622
622
|
e,
|
|
623
623
|
"alt",
|
|
@@ -631,11 +631,11 @@ function br(i) {
|
|
|
631
631
|
), x(e, "class", "svelte-w9y5n9");
|
|
632
632
|
},
|
|
633
633
|
m(n, r) {
|
|
634
|
-
|
|
634
|
+
te(n, e, r);
|
|
635
635
|
},
|
|
636
636
|
p(n, r) {
|
|
637
637
|
r & /*iconsBaseUrl*/
|
|
638
|
-
8 && !
|
|
638
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
639
639
|
n[3] + "road.svg") && x(e, "src", t), r & /*placeType*/
|
|
640
640
|
128 && x(
|
|
641
641
|
e,
|
|
@@ -651,15 +651,15 @@ function br(i) {
|
|
|
651
651
|
);
|
|
652
652
|
},
|
|
653
653
|
d(n) {
|
|
654
|
-
n &&
|
|
654
|
+
n && $(e);
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function pr(i) {
|
|
659
659
|
let e, t;
|
|
660
660
|
return {
|
|
661
661
|
c() {
|
|
662
|
-
e =
|
|
662
|
+
e = X("img"), me(e.src, t = /*iconsBaseUrl*/
|
|
663
663
|
i[3] + "housenumber.svg") || x(e, "src", t), x(
|
|
664
664
|
e,
|
|
665
665
|
"alt",
|
|
@@ -673,11 +673,11 @@ function wr(i) {
|
|
|
673
673
|
), x(e, "class", "svelte-w9y5n9");
|
|
674
674
|
},
|
|
675
675
|
m(n, r) {
|
|
676
|
-
|
|
676
|
+
te(n, e, r);
|
|
677
677
|
},
|
|
678
678
|
p(n, r) {
|
|
679
679
|
r & /*iconsBaseUrl*/
|
|
680
|
-
8 && !
|
|
680
|
+
8 && !me(e.src, t = /*iconsBaseUrl*/
|
|
681
681
|
n[3] + "housenumber.svg") && x(e, "src", t), r & /*placeType*/
|
|
682
682
|
128 && x(
|
|
683
683
|
e,
|
|
@@ -693,15 +693,15 @@ function wr(i) {
|
|
|
693
693
|
);
|
|
694
694
|
},
|
|
695
695
|
d(n) {
|
|
696
|
-
n &&
|
|
696
|
+
n && $(e);
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function yr(i) {
|
|
701
701
|
let e, t, n, r;
|
|
702
702
|
return {
|
|
703
703
|
c() {
|
|
704
|
-
e =
|
|
704
|
+
e = X("img"), me(e.src, t = /*imageUrl*/
|
|
705
705
|
i[5]) || x(e, "src", t), x(
|
|
706
706
|
e,
|
|
707
707
|
"alt",
|
|
@@ -715,7 +715,7 @@ function Er(i) {
|
|
|
715
715
|
), x(e, "class", "svelte-w9y5n9");
|
|
716
716
|
},
|
|
717
717
|
m(u, h) {
|
|
718
|
-
|
|
718
|
+
te(u, e, h), n || (r = ce(
|
|
719
719
|
e,
|
|
720
720
|
"error",
|
|
721
721
|
/*error_handler*/
|
|
@@ -724,7 +724,7 @@ function Er(i) {
|
|
|
724
724
|
},
|
|
725
725
|
p(u, h) {
|
|
726
726
|
h & /*imageUrl*/
|
|
727
|
-
32 && !
|
|
727
|
+
32 && !me(e.src, t = /*imageUrl*/
|
|
728
728
|
u[5]) && x(e, "src", t), h & /*category*/
|
|
729
729
|
16 && x(
|
|
730
730
|
e,
|
|
@@ -740,25 +740,25 @@ function Er(i) {
|
|
|
740
740
|
);
|
|
741
741
|
},
|
|
742
742
|
d(u) {
|
|
743
|
-
u &&
|
|
743
|
+
u && $(e), n = !1, r();
|
|
744
744
|
}
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function vr(i) {
|
|
748
748
|
let e, t;
|
|
749
749
|
return {
|
|
750
750
|
c() {
|
|
751
|
-
e =
|
|
751
|
+
e = X("div"), x(e, "class", "sprite-icon svelte-w9y5n9"), x(e, "style", t = `
|
|
752
752
|
width: ${/*spriteIcon*/
|
|
753
753
|
i[6].width / _e}px;
|
|
754
754
|
height: ${/*spriteIcon*/
|
|
755
755
|
i[6].height / _e}px;
|
|
756
756
|
background-image: url(${/*iconsBaseUrl*/
|
|
757
|
-
i[3]}sprite${
|
|
757
|
+
i[3]}sprite${si}.png);
|
|
758
758
|
background-position: -${/*spriteIcon*/
|
|
759
759
|
i[6].x / _e}px -${/*spriteIcon*/
|
|
760
760
|
i[6].y / _e}px;
|
|
761
|
-
background-size: ${
|
|
761
|
+
background-size: ${Ne.width / _e}px ${Ne.height / _e}px;
|
|
762
762
|
`), x(
|
|
763
763
|
e,
|
|
764
764
|
"title",
|
|
@@ -767,7 +767,7 @@ function Lr(i) {
|
|
|
767
767
|
);
|
|
768
768
|
},
|
|
769
769
|
m(n, r) {
|
|
770
|
-
|
|
770
|
+
te(n, e, r);
|
|
771
771
|
},
|
|
772
772
|
p(n, r) {
|
|
773
773
|
r & /*spriteIcon, iconsBaseUrl*/
|
|
@@ -777,11 +777,11 @@ function Lr(i) {
|
|
|
777
777
|
height: ${/*spriteIcon*/
|
|
778
778
|
n[6].height / _e}px;
|
|
779
779
|
background-image: url(${/*iconsBaseUrl*/
|
|
780
|
-
n[3]}sprite${
|
|
780
|
+
n[3]}sprite${si}.png);
|
|
781
781
|
background-position: -${/*spriteIcon*/
|
|
782
782
|
n[6].x / _e}px -${/*spriteIcon*/
|
|
783
783
|
n[6].y / _e}px;
|
|
784
|
-
background-size: ${
|
|
784
|
+
background-size: ${Ne.width / _e}px ${Ne.height / _e}px;
|
|
785
785
|
`) && x(e, "style", t), r & /*placeType*/
|
|
786
786
|
128 && x(
|
|
787
787
|
e,
|
|
@@ -791,36 +791,36 @@ function Lr(i) {
|
|
|
791
791
|
);
|
|
792
792
|
},
|
|
793
793
|
d(n) {
|
|
794
|
-
n &&
|
|
794
|
+
n && $(e);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Mi(i) {
|
|
799
799
|
let e, t;
|
|
800
800
|
return {
|
|
801
801
|
c() {
|
|
802
|
-
e =
|
|
802
|
+
e = X("span"), t = Ke(
|
|
803
803
|
/*placeType*/
|
|
804
804
|
i[7]
|
|
805
805
|
), x(e, "class", "secondary svelte-w9y5n9");
|
|
806
806
|
},
|
|
807
807
|
m(n, r) {
|
|
808
|
-
|
|
808
|
+
te(n, e, r), H(e, t);
|
|
809
809
|
},
|
|
810
810
|
p(n, r) {
|
|
811
811
|
r & /*placeType*/
|
|
812
|
-
128 &&
|
|
812
|
+
128 && Et(
|
|
813
813
|
t,
|
|
814
814
|
/*placeType*/
|
|
815
815
|
n[7]
|
|
816
816
|
);
|
|
817
817
|
},
|
|
818
818
|
d(n) {
|
|
819
|
-
n &&
|
|
819
|
+
n && $(e);
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function br(i) {
|
|
824
824
|
let e, t, n, r, u, h, o, g, c, E = (
|
|
825
825
|
/*isReverse*/
|
|
826
826
|
(i[8] ? (
|
|
@@ -853,34 +853,34 @@ function _r(i) {
|
|
|
853
853
|
1 && (t = null), a & /*feature*/
|
|
854
854
|
1 && (n = null), a & /*feature*/
|
|
855
855
|
1 && (r = null), a & /*feature*/
|
|
856
|
-
1 && (u = null),
|
|
857
|
-
m[6] ?
|
|
856
|
+
1 && (u = null), Ne && /*spriteIcon*/
|
|
857
|
+
m[6] ? vr : (
|
|
858
858
|
/*imageUrl*/
|
|
859
|
-
m[5] ?
|
|
859
|
+
m[5] ? yr : (
|
|
860
860
|
/*feature*/
|
|
861
|
-
m[0].address ?
|
|
862
|
-
m[0].id.startsWith("road.")), t ?
|
|
863
|
-
m[0].id.startsWith("address.")), n ?
|
|
864
|
-
m[0].id.startsWith("postal_code.")), r ?
|
|
865
|
-
m[0].id.startsWith("poi.")), u ?
|
|
861
|
+
m[0].address ? pr : (t == null && (t = !!/*feature*/
|
|
862
|
+
m[0].id.startsWith("road.")), t ? mr : (n == null && (n = !!/*feature*/
|
|
863
|
+
m[0].id.startsWith("address.")), n ? gr : (r == null && (r = !!/*feature*/
|
|
864
|
+
m[0].id.startsWith("postal_code.")), r ? dr : (u == null && (u = !!/*feature*/
|
|
865
|
+
m[0].id.startsWith("poi.")), u ? hr : (
|
|
866
866
|
/*isReverse*/
|
|
867
|
-
m[8] ?
|
|
867
|
+
m[8] ? cr : fr
|
|
868
868
|
)))))
|
|
869
869
|
)
|
|
870
870
|
);
|
|
871
871
|
}
|
|
872
|
-
let s = B(i, -1), l = s(i), f = R &&
|
|
872
|
+
let s = B(i, -1), l = s(i), f = R && Mi(i);
|
|
873
873
|
return {
|
|
874
874
|
c() {
|
|
875
|
-
e =
|
|
875
|
+
e = X("li"), l.c(), h = Ee(), o = X("span"), g = X("span"), c = X("span"), S = Ke(E), C = Ee(), f && f.c(), O = Ee(), A = X("span"), k = Ke(M), x(c, "class", "primary svelte-w9y5n9"), x(g, "class", "svelte-w9y5n9"), x(A, "class", "line2 svelte-w9y5n9"), x(o, "class", "texts svelte-w9y5n9"), x(e, "tabindex", "-1"), x(e, "role", "option"), x(e, "aria-selected", y = /*style*/
|
|
876
876
|
i[1] === "selected"), x(e, "aria-checked", N = /*style*/
|
|
877
|
-
i[1] === "picked"), x(e, "class", D =
|
|
877
|
+
i[1] === "picked"), x(e, "class", D = Wt(
|
|
878
878
|
/*style*/
|
|
879
879
|
i[1]
|
|
880
880
|
) + " svelte-w9y5n9");
|
|
881
881
|
},
|
|
882
882
|
m(m, a) {
|
|
883
|
-
|
|
883
|
+
te(m, e, a), l.m(e, null), H(e, h), H(e, o), H(o, g), H(g, c), H(c, S), H(g, C), f && f.m(g, null), H(o, O), H(o, A), H(A, k), q || (z = [
|
|
884
884
|
ce(
|
|
885
885
|
e,
|
|
886
886
|
"mouseenter",
|
|
@@ -910,7 +910,7 @@ function _r(i) {
|
|
|
910
910
|
) : (
|
|
911
911
|
/*feature*/
|
|
912
912
|
m[0].place_name.replace(/,.*/, "")
|
|
913
|
-
)) + "") &&
|
|
913
|
+
)) + "") && Et(S, E), a & /*showPlaceType, feature, imageUrl, isReverse*/
|
|
914
914
|
293 && (R = /*showPlaceType*/
|
|
915
915
|
m[2] === "always" || /*showPlaceType*/
|
|
916
916
|
m[2] !== "never" && !/*feature*/
|
|
@@ -920,56 +920,56 @@ function _r(i) {
|
|
|
920
920
|
m[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
921
921
|
m[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
922
922
|
m[5]) && !/*isReverse*/
|
|
923
|
-
m[8]), R ? f ? f.p(m, a) : (f =
|
|
923
|
+
m[8]), R ? f ? f.p(m, a) : (f = Mi(m), f.c(), f.m(g, null)) : f && (f.d(1), f = null), a & /*isReverse, feature*/
|
|
924
924
|
257 && M !== (M = /*isReverse*/
|
|
925
925
|
(m[8] ? "" : (
|
|
926
926
|
/*feature*/
|
|
927
927
|
m[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
928
|
-
)) + "") &&
|
|
928
|
+
)) + "") && Et(k, M), a & /*style*/
|
|
929
929
|
2 && y !== (y = /*style*/
|
|
930
930
|
m[1] === "selected") && x(e, "aria-selected", y), a & /*style*/
|
|
931
931
|
2 && N !== (N = /*style*/
|
|
932
932
|
m[1] === "picked") && x(e, "aria-checked", N), a & /*style*/
|
|
933
|
-
2 && D !== (D =
|
|
933
|
+
2 && D !== (D = Wt(
|
|
934
934
|
/*style*/
|
|
935
935
|
m[1]
|
|
936
936
|
) + " svelte-w9y5n9") && x(e, "class", D);
|
|
937
937
|
},
|
|
938
|
-
i:
|
|
939
|
-
o:
|
|
938
|
+
i: ee,
|
|
939
|
+
o: ee,
|
|
940
940
|
d(m) {
|
|
941
|
-
m &&
|
|
941
|
+
m && $(e), l.d(), f && f.d(), q = !1, je(z);
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
const
|
|
946
|
-
let
|
|
947
|
-
function
|
|
945
|
+
const un = devicePixelRatio > 1.25, si = un ? "@2x" : "", _e = un ? 2 : 1;
|
|
946
|
+
let Ne, Ct;
|
|
947
|
+
function wr(i, e, t) {
|
|
948
948
|
let n, r, u, { feature: h } = e, { style: o = "default" } = e, { showPlaceType: g } = e, { missingIconsCache: c } = e, { iconsBaseUrl: E } = e;
|
|
949
|
-
const S =
|
|
949
|
+
const S = rn();
|
|
950
950
|
let C, R, O, A;
|
|
951
951
|
function M() {
|
|
952
|
-
|
|
953
|
-
|
|
952
|
+
Ct ?? (Ct = fetch(`${E}sprite${si}.json`).then((s) => s.json()).then((s) => {
|
|
953
|
+
Ne = s;
|
|
954
954
|
}).catch(() => {
|
|
955
|
-
|
|
955
|
+
Ne = null;
|
|
956
956
|
}));
|
|
957
957
|
}
|
|
958
958
|
function k() {
|
|
959
959
|
R && c.add(R), y();
|
|
960
960
|
}
|
|
961
961
|
function y() {
|
|
962
|
-
|
|
962
|
+
Ne !== void 0 ? N() : (M(), Ct == null || Ct.then(N));
|
|
963
963
|
}
|
|
964
964
|
function N() {
|
|
965
965
|
do {
|
|
966
|
-
if (A--, t(4, C = n == null ? void 0 : n[A]), t(6, O = C ?
|
|
966
|
+
if (A--, t(4, C = n == null ? void 0 : n[A]), t(6, O = C ? Ne == null ? void 0 : Ne.icons[C] : void 0), O)
|
|
967
967
|
break;
|
|
968
968
|
t(5, R = C ? E + C.replace(/ /g, "_") + ".svg" : void 0);
|
|
969
969
|
} while (A > -1 && (!R || c.has(R)));
|
|
970
970
|
}
|
|
971
971
|
function D(s) {
|
|
972
|
-
|
|
972
|
+
$n.call(this, i, s);
|
|
973
973
|
}
|
|
974
974
|
const q = () => k(), z = () => S("select", void 0), B = (s) => {
|
|
975
975
|
document.activeElement !== s.target && S("select", void 0);
|
|
@@ -1003,9 +1003,9 @@ function Sr(i, e, t) {
|
|
|
1003
1003
|
B
|
|
1004
1004
|
];
|
|
1005
1005
|
}
|
|
1006
|
-
class
|
|
1006
|
+
class Er extends Je {
|
|
1007
1007
|
constructor(e) {
|
|
1008
|
-
super(),
|
|
1008
|
+
super(), Xe(this, e, wr, br, Qe, {
|
|
1009
1009
|
feature: 0,
|
|
1010
1010
|
style: 1,
|
|
1011
1011
|
showPlaceType: 2,
|
|
@@ -1014,33 +1014,33 @@ class xr extends et {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Lr(i) {
|
|
1018
1018
|
let e;
|
|
1019
1019
|
return {
|
|
1020
1020
|
c() {
|
|
1021
|
-
e =
|
|
1021
|
+
e = X("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>', x(e, "class", "svelte-7cmwmc");
|
|
1022
1022
|
},
|
|
1023
1023
|
m(t, n) {
|
|
1024
|
-
|
|
1024
|
+
te(t, e, n);
|
|
1025
1025
|
},
|
|
1026
|
-
p:
|
|
1027
|
-
i:
|
|
1028
|
-
o:
|
|
1026
|
+
p: ee,
|
|
1027
|
+
i: ee,
|
|
1028
|
+
o: ee,
|
|
1029
1029
|
d(t) {
|
|
1030
|
-
t &&
|
|
1030
|
+
t && $(e);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
class
|
|
1034
|
+
class _r extends Je {
|
|
1035
1035
|
constructor(e) {
|
|
1036
|
-
super(),
|
|
1036
|
+
super(), Xe(this, e, null, Lr, Qe, {});
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Sr(i) {
|
|
1040
1040
|
let e, t, n;
|
|
1041
1041
|
return {
|
|
1042
1042
|
c() {
|
|
1043
|
-
e =
|
|
1043
|
+
e = ke("svg"), t = ke("path"), x(t, "stroke-width", "4"), x(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), x(t, "class", "svelte-gzo3ar"), x(e, "width", n = /*displayIn*/
|
|
1044
1044
|
i[0] === "list" ? 20 : void 0), x(e, "viewBox", "0 0 70 85"), x(e, "fill", "none"), x(e, "class", "svelte-gzo3ar"), Be(
|
|
1045
1045
|
e,
|
|
1046
1046
|
"in-map",
|
|
@@ -1054,7 +1054,7 @@ function Cr(i) {
|
|
|
1054
1054
|
);
|
|
1055
1055
|
},
|
|
1056
1056
|
m(r, u) {
|
|
1057
|
-
|
|
1057
|
+
te(r, e, u), H(e, t);
|
|
1058
1058
|
},
|
|
1059
1059
|
p(r, [u]) {
|
|
1060
1060
|
u & /*displayIn*/
|
|
@@ -1073,88 +1073,88 @@ function Cr(i) {
|
|
|
1073
1073
|
r[0] === "list"
|
|
1074
1074
|
);
|
|
1075
1075
|
},
|
|
1076
|
-
i:
|
|
1077
|
-
o:
|
|
1076
|
+
i: ee,
|
|
1077
|
+
o: ee,
|
|
1078
1078
|
d(r) {
|
|
1079
|
-
r &&
|
|
1079
|
+
r && $(e);
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function xr(i, e, t) {
|
|
1084
1084
|
let { displayIn: n } = e;
|
|
1085
1085
|
return i.$$set = (r) => {
|
|
1086
1086
|
"displayIn" in r && t(0, n = r.displayIn);
|
|
1087
1087
|
}, [n];
|
|
1088
1088
|
}
|
|
1089
|
-
class
|
|
1089
|
+
class Tr extends Je {
|
|
1090
1090
|
constructor(e) {
|
|
1091
|
-
super(),
|
|
1091
|
+
super(), Xe(this, e, xr, Sr, Qe, { displayIn: 0 });
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function Mr(i) {
|
|
1095
1095
|
let e, t;
|
|
1096
1096
|
return {
|
|
1097
1097
|
c() {
|
|
1098
|
-
e =
|
|
1098
|
+
e = ke("svg"), t = ke("path"), x(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"), x(e, "viewBox", "0 0 60.006 21.412"), x(e, "width", "14"), x(e, "height", "20"), x(e, "class", "svelte-en2qvf");
|
|
1099
1099
|
},
|
|
1100
1100
|
m(n, r) {
|
|
1101
|
-
|
|
1101
|
+
te(n, e, r), H(e, t);
|
|
1102
1102
|
},
|
|
1103
|
-
p:
|
|
1104
|
-
i:
|
|
1105
|
-
o:
|
|
1103
|
+
p: ee,
|
|
1104
|
+
i: ee,
|
|
1105
|
+
o: ee,
|
|
1106
1106
|
d(n) {
|
|
1107
|
-
n &&
|
|
1107
|
+
n && $(e);
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
class
|
|
1111
|
+
class Cr extends Je {
|
|
1112
1112
|
constructor(e) {
|
|
1113
|
-
super(),
|
|
1113
|
+
super(), Xe(this, e, null, Mr, Qe, {});
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function Nr(i) {
|
|
1117
1117
|
let e, t, n;
|
|
1118
1118
|
return {
|
|
1119
1119
|
c() {
|
|
1120
|
-
e =
|
|
1120
|
+
e = ke("svg"), t = ke("circle"), n = ke("path"), x(t, "cx", "4.789"), x(t, "cy", "4.787"), x(t, "r", "3.85"), x(t, "class", "svelte-1aq105l"), x(n, "d", "M12.063 12.063 7.635 7.635"), x(n, "class", "svelte-1aq105l"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "width", "13"), x(e, "height", "13"), x(e, "viewBox", "0 0 13 13"), x(e, "class", "svelte-1aq105l");
|
|
1121
1121
|
},
|
|
1122
1122
|
m(r, u) {
|
|
1123
|
-
|
|
1123
|
+
te(r, e, u), H(e, t), H(e, n);
|
|
1124
1124
|
},
|
|
1125
|
-
p:
|
|
1126
|
-
i:
|
|
1127
|
-
o:
|
|
1125
|
+
p: ee,
|
|
1126
|
+
i: ee,
|
|
1127
|
+
o: ee,
|
|
1128
1128
|
d(r) {
|
|
1129
|
-
r &&
|
|
1129
|
+
r && $(e);
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
|
-
class
|
|
1133
|
+
class kr extends Je {
|
|
1134
1134
|
constructor(e) {
|
|
1135
|
-
super(),
|
|
1135
|
+
super(), Xe(this, e, null, Nr, Qe, {});
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function Or(i, e, t) {
|
|
1139
1139
|
const n = e[1], r = e[0], u = n - r;
|
|
1140
1140
|
return i === n && t ? i : ((i - r) % u + u) % u + r;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function Gt(i) {
|
|
1143
1143
|
const e = [...i];
|
|
1144
1144
|
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;
|
|
1145
1145
|
}
|
|
1146
|
-
let
|
|
1147
|
-
async function
|
|
1146
|
+
let gt;
|
|
1147
|
+
async function Rr(i, e, t) {
|
|
1148
1148
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1149
1149
|
for (const r of e ?? [])
|
|
1150
1150
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1151
1151
|
if (r.type === "fixed")
|
|
1152
1152
|
return r.coordinates.join(",");
|
|
1153
1153
|
e: if (r.type === "client-geolocation") {
|
|
1154
|
-
if (
|
|
1155
|
-
if (!
|
|
1154
|
+
if (gt && r.cachedLocationExpiry && gt.time + r.cachedLocationExpiry > Date.now()) {
|
|
1155
|
+
if (!gt.coords)
|
|
1156
1156
|
break e;
|
|
1157
|
-
return
|
|
1157
|
+
return gt.coords;
|
|
1158
1158
|
}
|
|
1159
1159
|
let u;
|
|
1160
1160
|
try {
|
|
@@ -1175,7 +1175,7 @@ async function Br(i, e, t) {
|
|
|
1175
1175
|
}), u;
|
|
1176
1176
|
} catch {
|
|
1177
1177
|
} finally {
|
|
1178
|
-
r.cachedLocationExpiry && (
|
|
1178
|
+
r.cachedLocationExpiry && (gt = {
|
|
1179
1179
|
time: Date.now(),
|
|
1180
1180
|
coords: u
|
|
1181
1181
|
});
|
|
@@ -1189,8 +1189,8 @@ async function Br(i, e, t) {
|
|
|
1189
1189
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1193
|
-
function
|
|
1192
|
+
const Pr = /^(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, Ci = /^([+-]?[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,})$/, Ni = /^(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, ki = /^(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, Oi = /^(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, Ri = /^(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;
|
|
1193
|
+
function Ir(i) {
|
|
1194
1194
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1195
1195
|
throw new Error("invalid format specified");
|
|
1196
1196
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1199,7 +1199,7 @@ function Gr(i) {
|
|
|
1199
1199
|
i == "DD" && (g = `${r}° ${h}, ${u}° ${o}`);
|
|
1200
1200
|
const c = Math.floor(r), E = Math.floor(u), S = (r - c) * 60, C = (u - E) * 60;
|
|
1201
1201
|
if (i == "DM") {
|
|
1202
|
-
let R =
|
|
1202
|
+
let R = Pi(S, 3).toFixed(3).padStart(6, "0"), O = Pi(C, 3).toFixed(3).padStart(6, "0");
|
|
1203
1203
|
R.endsWith(".000") && O.endsWith(".000") && (R = R.replace(/\.000$/, ""), O = O.replace(/\.000$/, "")), g = `${c}° ${R}' ${h}, ${E}° ${O}' ${o}`;
|
|
1204
1204
|
}
|
|
1205
1205
|
if (i == "DMS") {
|
|
@@ -1212,22 +1212,22 @@ function Gr(i) {
|
|
|
1212
1212
|
} else
|
|
1213
1213
|
throw new Error("no decimal coordinates to convert");
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Pi(i, e) {
|
|
1216
1216
|
const t = Math.pow(10, e);
|
|
1217
1217
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function fi(i, e) {
|
|
1220
1220
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1221
1221
|
let t = null, n = null, r = "", u = "", h = null, o = [], g = !1;
|
|
1222
|
-
if (
|
|
1222
|
+
if (Pr.test(i))
|
|
1223
1223
|
throw new Error("invalid coordinate value");
|
|
1224
|
-
if (
|
|
1225
|
-
if (o =
|
|
1224
|
+
if (Ci.test(i))
|
|
1225
|
+
if (o = Ci.exec(i), g = mt(o), g)
|
|
1226
1226
|
t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), h = "DM";
|
|
1227
1227
|
else
|
|
1228
1228
|
throw new Error("invalid coordinate format");
|
|
1229
|
-
else if (
|
|
1230
|
-
if (o =
|
|
1229
|
+
else if (Ni.test(i))
|
|
1230
|
+
if (o = Ni.exec(i), g = mt(o), g) {
|
|
1231
1231
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), h = "DD", Number(Math.round(t)) == Number(t))
|
|
1232
1232
|
throw new Error("integer only coordinate provided");
|
|
1233
1233
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1235,18 +1235,18 @@ function hi(i, e) {
|
|
|
1235
1235
|
o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]);
|
|
1236
1236
|
} else
|
|
1237
1237
|
throw new Error("invalid decimal coordinate format");
|
|
1238
|
-
else if (
|
|
1239
|
-
if (o =
|
|
1238
|
+
else if (ki.test(i))
|
|
1239
|
+
if (o = ki.exec(i), g = mt(o), g)
|
|
1240
1240
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, h = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, h = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[8]) : o[7] && (r = o[7], u = o[14]);
|
|
1241
1241
|
else
|
|
1242
1242
|
throw new Error("invalid DMS coordinates format");
|
|
1243
|
-
else if (
|
|
1244
|
-
if (o =
|
|
1243
|
+
else if (Oi.test(i))
|
|
1244
|
+
if (o = Oi.exec(i), g = mt(o), g)
|
|
1245
1245
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, h = "DM"), o[6] && (t += o[6] / 3600, h = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
1246
1246
|
else
|
|
1247
1247
|
throw new Error("invalid DMS coordinates format");
|
|
1248
|
-
else if (
|
|
1249
|
-
if (o =
|
|
1248
|
+
else if (Ri.test(i)) {
|
|
1249
|
+
if (o = Ri.exec(i), g = mt(o), o.filter((c) => c).length <= 5)
|
|
1250
1250
|
throw new Error("invalid coordinates format");
|
|
1251
1251
|
if (g)
|
|
1252
1252
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, h = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, h = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]);
|
|
@@ -1300,13 +1300,13 @@ function hi(i, e) {
|
|
|
1300
1300
|
decimalLongitude: n,
|
|
1301
1301
|
decimalCoordinates: `${t},${n}`,
|
|
1302
1302
|
originalFormat: h,
|
|
1303
|
-
closeEnough:
|
|
1304
|
-
toCoordinateFormat:
|
|
1303
|
+
closeEnough: Ar,
|
|
1304
|
+
toCoordinateFormat: Ir
|
|
1305
1305
|
});
|
|
1306
1306
|
} else
|
|
1307
1307
|
throw new Error("coordinates pattern match failed");
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function mt(i) {
|
|
1310
1310
|
if (!isNaN(i[0]))
|
|
1311
1311
|
return !1;
|
|
1312
1312
|
const e = [...i];
|
|
@@ -1325,28 +1325,28 @@ function yt(i) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
return !0;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Ii(i, e) {
|
|
1329
1329
|
const t = Math.abs(i - e);
|
|
1330
1330
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Ar(i) {
|
|
1333
1333
|
if (!i)
|
|
1334
1334
|
throw new Error("coords must be provided");
|
|
1335
1335
|
if (i.includes(",")) {
|
|
1336
1336
|
const e = i.split(",");
|
|
1337
1337
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1338
1338
|
throw new Error("coords are not valid decimals");
|
|
1339
|
-
return
|
|
1339
|
+
return Ii(this.decimalLatitude, Number(e[0])) && Ii(this.decimalLongitude, e[1]);
|
|
1340
1340
|
} else
|
|
1341
1341
|
throw new Error("coords being tested must be separated by a comma");
|
|
1342
1342
|
}
|
|
1343
|
-
const
|
|
1343
|
+
const Br = Object.freeze({
|
|
1344
1344
|
DMS: "DMS",
|
|
1345
1345
|
DM: "DM",
|
|
1346
1346
|
DD: "DD"
|
|
1347
1347
|
});
|
|
1348
|
-
|
|
1349
|
-
const
|
|
1348
|
+
fi.to = Br;
|
|
1349
|
+
const Wr = [
|
|
1350
1350
|
{
|
|
1351
1351
|
verbatimCoordinates: "40.123, -74.123",
|
|
1352
1352
|
verbatimLatitude: "40.123",
|
|
@@ -1487,10 +1487,10 @@ const Ur = [
|
|
|
1487
1487
|
verbatimLatitude: "40 7 22.8",
|
|
1488
1488
|
verbatimLongitude: "-74 7 22.8"
|
|
1489
1489
|
}
|
|
1490
|
-
],
|
|
1490
|
+
], Gr = {
|
|
1491
1491
|
decimalLatitude: 40.123,
|
|
1492
1492
|
decimalLongitude: -74.123
|
|
1493
|
-
},
|
|
1493
|
+
}, Dr = [
|
|
1494
1494
|
{
|
|
1495
1495
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1496
1496
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1575,7 +1575,7 @@ const Ur = [
|
|
|
1575
1575
|
decimalLatitude: -18.4,
|
|
1576
1576
|
decimalLongitude: 22.75
|
|
1577
1577
|
}
|
|
1578
|
-
],
|
|
1578
|
+
], zr = [
|
|
1579
1579
|
{
|
|
1580
1580
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1581
1581
|
verbatimLatitude: "10.432342S",
|
|
@@ -1710,27 +1710,27 @@ const Ur = [
|
|
|
1710
1710
|
decimalLongitude: 18.33453
|
|
1711
1711
|
}
|
|
1712
1712
|
];
|
|
1713
|
-
function
|
|
1713
|
+
function Ur() {
|
|
1714
1714
|
const i = [];
|
|
1715
|
-
return
|
|
1716
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1717
|
-
}), [...i, ...
|
|
1715
|
+
return Wr.forEach((e) => {
|
|
1716
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Gr });
|
|
1717
|
+
}), [...i, ...Dr, ...zr];
|
|
1718
1718
|
}
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1721
|
-
const
|
|
1722
|
-
function
|
|
1719
|
+
const qr = Ur();
|
|
1720
|
+
fi.formats = qr.map((i) => i.verbatimCoordinates);
|
|
1721
|
+
const Fr = fi;
|
|
1722
|
+
function Ai(i, e, t) {
|
|
1723
1723
|
const n = i.slice();
|
|
1724
|
-
return n[
|
|
1724
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Bi(i) {
|
|
1727
1727
|
let e, t;
|
|
1728
|
-
return e = new
|
|
1728
|
+
return e = new _r({}), {
|
|
1729
1729
|
c() {
|
|
1730
|
-
|
|
1730
|
+
Ye(e.$$.fragment);
|
|
1731
1731
|
},
|
|
1732
1732
|
m(n, r) {
|
|
1733
|
-
|
|
1733
|
+
Ue(e, n, r), t = !0;
|
|
1734
1734
|
},
|
|
1735
1735
|
i(n) {
|
|
1736
1736
|
t || (oe(e.$$.fragment, n), t = !0);
|
|
@@ -1739,15 +1739,15 @@ function Di(i) {
|
|
|
1739
1739
|
he(e.$$.fragment, n), t = !1;
|
|
1740
1740
|
},
|
|
1741
1741
|
d(n) {
|
|
1742
|
-
|
|
1742
|
+
qe(e, n);
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Wi(i) {
|
|
1747
1747
|
let e, t, n, r, u;
|
|
1748
|
-
return t = new
|
|
1748
|
+
return t = new Cr({}), {
|
|
1749
1749
|
c() {
|
|
1750
|
-
e =
|
|
1750
|
+
e = X("button"), Ye(t.$$.fragment), x(e, "type", "button"), x(
|
|
1751
1751
|
e,
|
|
1752
1752
|
"title",
|
|
1753
1753
|
/*reverseButtonTitle*/
|
|
@@ -1760,11 +1760,11 @@ function zi(i) {
|
|
|
1760
1760
|
);
|
|
1761
1761
|
},
|
|
1762
1762
|
m(h, o) {
|
|
1763
|
-
|
|
1763
|
+
te(h, e, o), Ue(t, e, null), n = !0, r || (u = ce(
|
|
1764
1764
|
e,
|
|
1765
1765
|
"click",
|
|
1766
1766
|
/*click_handler_3*/
|
|
1767
|
-
i[
|
|
1767
|
+
i[79]
|
|
1768
1768
|
), r = !0);
|
|
1769
1769
|
},
|
|
1770
1770
|
p(h, o) {
|
|
@@ -1789,34 +1789,34 @@ function zi(i) {
|
|
|
1789
1789
|
he(t.$$.fragment, h), n = !1;
|
|
1790
1790
|
},
|
|
1791
1791
|
d(h) {
|
|
1792
|
-
h &&
|
|
1792
|
+
h && $(e), qe(t), r = !1, u();
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1797
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, h, o =
|
|
1796
|
+
function jr(i) {
|
|
1797
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, u, h, o = Ti(
|
|
1798
1798
|
/*listFeatures*/
|
|
1799
1799
|
i[13]
|
|
1800
1800
|
);
|
|
1801
1801
|
const g = (c) => (
|
|
1802
1802
|
/*feature*/
|
|
1803
|
-
c[
|
|
1804
|
-
(c[
|
|
1805
|
-
c[
|
|
1803
|
+
c[97].id + /*feature*/
|
|
1804
|
+
(c[97].address ? "," + /*feature*/
|
|
1805
|
+
c[97].address : "")
|
|
1806
1806
|
);
|
|
1807
1807
|
for (let c = 0; c < o.length; c += 1) {
|
|
1808
|
-
let E =
|
|
1809
|
-
n.set(S, t[c] =
|
|
1808
|
+
let E = Ai(i, o, c), S = g(E);
|
|
1809
|
+
n.set(S, t[c] = Gi(S, E));
|
|
1810
1810
|
}
|
|
1811
1811
|
return {
|
|
1812
1812
|
c() {
|
|
1813
|
-
e =
|
|
1813
|
+
e = X("ul");
|
|
1814
1814
|
for (let c = 0; c < t.length; c += 1)
|
|
1815
1815
|
t[c].c();
|
|
1816
1816
|
x(e, "class", "options svelte-bz0zu3"), x(e, "role", "listbox");
|
|
1817
1817
|
},
|
|
1818
1818
|
m(c, E) {
|
|
1819
|
-
|
|
1819
|
+
te(c, e, E);
|
|
1820
1820
|
for (let S = 0; S < t.length; S += 1)
|
|
1821
1821
|
t[S] && t[S].m(e, null);
|
|
1822
1822
|
r = !0, u || (h = [
|
|
@@ -1830,7 +1830,7 @@ function Kr(i) {
|
|
|
1830
1830
|
e,
|
|
1831
1831
|
"blur",
|
|
1832
1832
|
/*blur_handler_1*/
|
|
1833
|
-
i[
|
|
1833
|
+
i[83]
|
|
1834
1834
|
),
|
|
1835
1835
|
ce(
|
|
1836
1836
|
e,
|
|
@@ -1842,10 +1842,10 @@ function Kr(i) {
|
|
|
1842
1842
|
},
|
|
1843
1843
|
p(c, E) {
|
|
1844
1844
|
E[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1845
|
-
102823936 && (o =
|
|
1845
|
+
102823936 && (o = Ti(
|
|
1846
1846
|
/*listFeatures*/
|
|
1847
1847
|
c[13]
|
|
1848
|
-
),
|
|
1848
|
+
), Pt(), t = sr(t, E, g, 1, c, o, n, e, rr, Gi, null, Ai), It());
|
|
1849
1849
|
},
|
|
1850
1850
|
i(c) {
|
|
1851
1851
|
if (!r) {
|
|
@@ -1860,28 +1860,28 @@ function Kr(i) {
|
|
|
1860
1860
|
r = !1;
|
|
1861
1861
|
},
|
|
1862
1862
|
d(c) {
|
|
1863
|
-
c &&
|
|
1863
|
+
c && $(e);
|
|
1864
1864
|
for (let E = 0; E < t.length; E += 1)
|
|
1865
1865
|
t[E].d();
|
|
1866
|
-
u = !1,
|
|
1866
|
+
u = !1, je(h);
|
|
1867
1867
|
}
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function Zr(i) {
|
|
1871
1871
|
let e, t, n, r, u, h;
|
|
1872
|
-
return t = new
|
|
1872
|
+
return t = new ln({}), {
|
|
1873
1873
|
c() {
|
|
1874
|
-
e =
|
|
1874
|
+
e = X("div"), Ye(t.$$.fragment), n = Ee(), r = X("div"), u = Ke(
|
|
1875
1875
|
/*noResultsMessage*/
|
|
1876
1876
|
i[8]
|
|
1877
1877
|
), x(r, "class", "svelte-bz0zu3"), x(e, "class", "no-results svelte-bz0zu3");
|
|
1878
1878
|
},
|
|
1879
1879
|
m(o, g) {
|
|
1880
|
-
|
|
1880
|
+
te(o, e, g), Ue(t, e, null), H(e, n), H(e, r), H(r, u), h = !0;
|
|
1881
1881
|
},
|
|
1882
1882
|
p(o, g) {
|
|
1883
1883
|
(!h || g[0] & /*noResultsMessage*/
|
|
1884
|
-
256) &&
|
|
1884
|
+
256) && Et(
|
|
1885
1885
|
u,
|
|
1886
1886
|
/*noResultsMessage*/
|
|
1887
1887
|
o[8]
|
|
@@ -1894,47 +1894,47 @@ function Yr(i) {
|
|
|
1894
1894
|
he(t.$$.fragment, o), h = !1;
|
|
1895
1895
|
},
|
|
1896
1896
|
d(o) {
|
|
1897
|
-
o &&
|
|
1897
|
+
o && $(e), qe(t);
|
|
1898
1898
|
}
|
|
1899
1899
|
};
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function Hr(i) {
|
|
1902
1902
|
let e = "", t;
|
|
1903
1903
|
return {
|
|
1904
1904
|
c() {
|
|
1905
|
-
t =
|
|
1905
|
+
t = Ke(e);
|
|
1906
1906
|
},
|
|
1907
1907
|
m(n, r) {
|
|
1908
|
-
|
|
1908
|
+
te(n, t, r);
|
|
1909
1909
|
},
|
|
1910
|
-
p:
|
|
1911
|
-
i:
|
|
1912
|
-
o:
|
|
1910
|
+
p: ee,
|
|
1911
|
+
i: ee,
|
|
1912
|
+
o: ee,
|
|
1913
1913
|
d(n) {
|
|
1914
|
-
n &&
|
|
1914
|
+
n && $(t);
|
|
1915
1915
|
}
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Vr(i) {
|
|
1919
1919
|
let e, t, n, r, u, h, o, g, c, E, S;
|
|
1920
|
-
return t = new
|
|
1920
|
+
return t = new ln({}), g = new on({}), {
|
|
1921
1921
|
c() {
|
|
1922
|
-
e =
|
|
1922
|
+
e = X("div"), Ye(t.$$.fragment), n = Ee(), r = X("div"), u = Ke(
|
|
1923
1923
|
/*errorMessage*/
|
|
1924
1924
|
i[7]
|
|
1925
|
-
), h =
|
|
1925
|
+
), h = Ee(), o = X("button"), Ye(g.$$.fragment), x(r, "class", "svelte-bz0zu3"), x(o, "class", "svelte-bz0zu3"), x(e, "class", "error svelte-bz0zu3");
|
|
1926
1926
|
},
|
|
1927
1927
|
m(C, R) {
|
|
1928
|
-
|
|
1928
|
+
te(C, e, R), Ue(t, e, null), H(e, n), H(e, r), H(r, u), H(e, h), H(e, o), Ue(g, o, null), c = !0, E || (S = ce(
|
|
1929
1929
|
o,
|
|
1930
1930
|
"click",
|
|
1931
1931
|
/*click_handler_4*/
|
|
1932
|
-
i[
|
|
1932
|
+
i[80]
|
|
1933
1933
|
), E = !0);
|
|
1934
1934
|
},
|
|
1935
1935
|
p(C, R) {
|
|
1936
1936
|
(!c || R[0] & /*errorMessage*/
|
|
1937
|
-
128) &&
|
|
1937
|
+
128) && Et(
|
|
1938
1938
|
u,
|
|
1939
1939
|
/*errorMessage*/
|
|
1940
1940
|
C[7]
|
|
@@ -1947,36 +1947,36 @@ function Xr(i) {
|
|
|
1947
1947
|
he(t.$$.fragment, C), he(g.$$.fragment, C), c = !1;
|
|
1948
1948
|
},
|
|
1949
1949
|
d(C) {
|
|
1950
|
-
C &&
|
|
1950
|
+
C && $(e), qe(t), qe(g), E = !1, S();
|
|
1951
1951
|
}
|
|
1952
1952
|
};
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Gi(i, e) {
|
|
1955
1955
|
var o;
|
|
1956
1956
|
let t, n, r;
|
|
1957
1957
|
function u() {
|
|
1958
1958
|
return (
|
|
1959
1959
|
/*mouseenter_handler*/
|
|
1960
|
-
e[
|
|
1960
|
+
e[81](
|
|
1961
1961
|
/*i*/
|
|
1962
|
-
e[
|
|
1962
|
+
e[99]
|
|
1963
1963
|
)
|
|
1964
1964
|
);
|
|
1965
1965
|
}
|
|
1966
1966
|
function h() {
|
|
1967
1967
|
return (
|
|
1968
1968
|
/*select_handler*/
|
|
1969
|
-
e[
|
|
1969
|
+
e[82](
|
|
1970
1970
|
/*feature*/
|
|
1971
|
-
e[
|
|
1971
|
+
e[97]
|
|
1972
1972
|
)
|
|
1973
1973
|
);
|
|
1974
1974
|
}
|
|
1975
|
-
return n = new
|
|
1975
|
+
return n = new Er({
|
|
1976
1976
|
props: {
|
|
1977
1977
|
feature: (
|
|
1978
1978
|
/*feature*/
|
|
1979
|
-
e[
|
|
1979
|
+
e[97]
|
|
1980
1980
|
),
|
|
1981
1981
|
showPlaceType: (
|
|
1982
1982
|
/*showPlaceType*/
|
|
@@ -1985,10 +1985,10 @@ function Ui(i, e) {
|
|
|
1985
1985
|
style: (
|
|
1986
1986
|
/*selectedItemIndex*/
|
|
1987
1987
|
e[15] === /*i*/
|
|
1988
|
-
e[
|
|
1988
|
+
e[99] ? "selected" : (
|
|
1989
1989
|
/*picked*/
|
|
1990
1990
|
((o = e[14]) == null ? void 0 : o.id) === /*feature*/
|
|
1991
|
-
e[
|
|
1991
|
+
e[97].id ? "picked" : "default"
|
|
1992
1992
|
)
|
|
1993
1993
|
),
|
|
1994
1994
|
missingIconsCache: (
|
|
@@ -2004,10 +2004,10 @@ function Ui(i, e) {
|
|
|
2004
2004
|
key: i,
|
|
2005
2005
|
first: null,
|
|
2006
2006
|
c() {
|
|
2007
|
-
t =
|
|
2007
|
+
t = Kn(), Ye(n.$$.fragment), this.first = t;
|
|
2008
2008
|
},
|
|
2009
2009
|
m(g, c) {
|
|
2010
|
-
|
|
2010
|
+
te(g, t, c), Ue(n, g, c), r = !0;
|
|
2011
2011
|
},
|
|
2012
2012
|
p(g, c) {
|
|
2013
2013
|
var S;
|
|
@@ -2015,15 +2015,15 @@ function Ui(i, e) {
|
|
|
2015
2015
|
const E = {};
|
|
2016
2016
|
c[0] & /*listFeatures*/
|
|
2017
2017
|
8192 && (E.feature = /*feature*/
|
|
2018
|
-
e[
|
|
2018
|
+
e[97]), c[0] & /*showPlaceType*/
|
|
2019
2019
|
2048 && (E.showPlaceType = /*showPlaceType*/
|
|
2020
2020
|
e[11]), c[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
2021
2021
|
57344 && (E.style = /*selectedItemIndex*/
|
|
2022
2022
|
e[15] === /*i*/
|
|
2023
|
-
e[
|
|
2023
|
+
e[99] ? "selected" : (
|
|
2024
2024
|
/*picked*/
|
|
2025
2025
|
((S = e[14]) == null ? void 0 : S.id) === /*feature*/
|
|
2026
|
-
e[
|
|
2026
|
+
e[97].id ? "picked" : "default"
|
|
2027
2027
|
)), c[0] & /*iconsBaseUrl*/
|
|
2028
2028
|
4096 && (E.iconsBaseUrl = /*iconsBaseUrl*/
|
|
2029
2029
|
e[12]), n.$set(E);
|
|
@@ -2035,30 +2035,30 @@ function Ui(i, e) {
|
|
|
2035
2035
|
he(n.$$.fragment, g), r = !1;
|
|
2036
2036
|
},
|
|
2037
2037
|
d(g) {
|
|
2038
|
-
g &&
|
|
2038
|
+
g && $(t), qe(n, g);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Kr(i) {
|
|
2043
2043
|
let e, t, n, r, u, h, o, g, c, E, S, C, R, O, A, M, k, y, N, D, q, z = !1;
|
|
2044
|
-
u = new
|
|
2044
|
+
u = new kr({}), S = new on({});
|
|
2045
2045
|
let B = (
|
|
2046
2046
|
/*abortController*/
|
|
2047
|
-
i[20] &&
|
|
2047
|
+
i[20] && Bi()
|
|
2048
2048
|
), s = (
|
|
2049
2049
|
/*enableReverse*/
|
|
2050
|
-
i[6] === "button" &&
|
|
2050
|
+
i[6] === "button" && Wi(i)
|
|
2051
2051
|
);
|
|
2052
2052
|
const l = (
|
|
2053
2053
|
/*#slots*/
|
|
2054
|
-
i[
|
|
2055
|
-
), f =
|
|
2054
|
+
i[70].default
|
|
2055
|
+
), f = jn(
|
|
2056
2056
|
l,
|
|
2057
2057
|
i,
|
|
2058
2058
|
/*$$scope*/
|
|
2059
|
-
i[
|
|
2059
|
+
i[69],
|
|
2060
2060
|
null
|
|
2061
|
-
), m = [
|
|
2061
|
+
), m = [Vr, Hr, Zr, jr], a = [];
|
|
2062
2062
|
function b(p, d) {
|
|
2063
2063
|
var v, w;
|
|
2064
2064
|
return (
|
|
@@ -2078,7 +2078,7 @@ function Jr(i) {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
return ~(M = b(i)) && (k = a[M] = m[M](i)), {
|
|
2080
2080
|
c() {
|
|
2081
|
-
e =
|
|
2081
|
+
e = Ee(), t = X("form"), n = X("div"), r = X("button"), Ye(u.$$.fragment), h = Ee(), o = X("input"), g = Ee(), c = X("div"), E = X("button"), Ye(S.$$.fragment), C = Ee(), B && B.c(), R = Ee(), s && s.c(), O = Ee(), f && f.c(), A = Ee(), k && k.c(), x(r, "class", "search-button svelte-bz0zu3"), x(r, "type", "button"), x(
|
|
2082
2082
|
o,
|
|
2083
2083
|
"placeholder",
|
|
2084
2084
|
/*placeholder*/
|
|
@@ -2098,7 +2098,7 @@ function Jr(i) {
|
|
|
2098
2098
|
"displayable",
|
|
2099
2099
|
/*searchValue*/
|
|
2100
2100
|
i[1] !== ""
|
|
2101
|
-
), x(n, "class", "input-group svelte-bz0zu3"), x(t, "class", y =
|
|
2101
|
+
), x(n, "class", "input-group svelte-bz0zu3"), x(t, "class", y = Wt(
|
|
2102
2102
|
/*className*/
|
|
2103
2103
|
i[2]
|
|
2104
2104
|
) + " svelte-bz0zu3"), Be(
|
|
@@ -2110,40 +2110,40 @@ function Jr(i) {
|
|
|
2110
2110
|
);
|
|
2111
2111
|
},
|
|
2112
2112
|
m(p, d) {
|
|
2113
|
-
|
|
2113
|
+
te(p, e, d), te(p, t, d), H(t, n), H(n, r), Ue(u, r, null), H(n, h), H(n, o), i[72](o), Si(
|
|
2114
2114
|
o,
|
|
2115
2115
|
/*searchValue*/
|
|
2116
2116
|
i[1]
|
|
2117
|
-
), H(n, g), H(n, c), H(c, E),
|
|
2117
|
+
), H(n, g), H(n, c), H(c, E), Ue(S, E, null), H(c, C), B && B.m(c, null), H(n, R), s && s.m(n, null), H(n, O), f && f.m(n, null), H(t, A), ~M && a[M].m(t, null), N = !0, D || (q = [
|
|
2118
2118
|
ce(
|
|
2119
2119
|
r,
|
|
2120
2120
|
"click",
|
|
2121
2121
|
/*click_handler*/
|
|
2122
|
-
i[
|
|
2122
|
+
i[71]
|
|
2123
2123
|
),
|
|
2124
2124
|
ce(
|
|
2125
2125
|
o,
|
|
2126
2126
|
"input",
|
|
2127
2127
|
/*input_1_input_handler*/
|
|
2128
|
-
i[
|
|
2128
|
+
i[73]
|
|
2129
2129
|
),
|
|
2130
2130
|
ce(
|
|
2131
2131
|
o,
|
|
2132
2132
|
"focus",
|
|
2133
2133
|
/*focus_handler*/
|
|
2134
|
-
i[
|
|
2134
|
+
i[74]
|
|
2135
2135
|
),
|
|
2136
2136
|
ce(
|
|
2137
2137
|
o,
|
|
2138
2138
|
"blur",
|
|
2139
2139
|
/*blur_handler*/
|
|
2140
|
-
i[
|
|
2140
|
+
i[75]
|
|
2141
2141
|
),
|
|
2142
2142
|
ce(
|
|
2143
2143
|
o,
|
|
2144
2144
|
"click",
|
|
2145
2145
|
/*click_handler_1*/
|
|
2146
|
-
i[
|
|
2146
|
+
i[76]
|
|
2147
2147
|
),
|
|
2148
2148
|
ce(
|
|
2149
2149
|
o,
|
|
@@ -2161,15 +2161,15 @@ function Jr(i) {
|
|
|
2161
2161
|
o,
|
|
2162
2162
|
"change",
|
|
2163
2163
|
/*change_handler*/
|
|
2164
|
-
i[
|
|
2164
|
+
i[77]
|
|
2165
2165
|
),
|
|
2166
2166
|
ce(
|
|
2167
2167
|
E,
|
|
2168
2168
|
"click",
|
|
2169
2169
|
/*click_handler_2*/
|
|
2170
|
-
i[
|
|
2170
|
+
i[78]
|
|
2171
2171
|
),
|
|
2172
|
-
ce(t, "submit",
|
|
2172
|
+
ce(t, "submit", Yn(
|
|
2173
2173
|
/*handleSubmit*/
|
|
2174
2174
|
i[22]
|
|
2175
2175
|
))
|
|
@@ -2190,7 +2190,7 @@ function Jr(i) {
|
|
|
2190
2190
|
p[9]
|
|
2191
2191
|
), d[0] & /*searchValue*/
|
|
2192
2192
|
2 && o.value !== /*searchValue*/
|
|
2193
|
-
p[1] &&
|
|
2193
|
+
p[1] && Si(
|
|
2194
2194
|
o,
|
|
2195
2195
|
/*searchValue*/
|
|
2196
2196
|
p[1]
|
|
@@ -2202,9 +2202,9 @@ function Jr(i) {
|
|
|
2202
2202
|
p[3]
|
|
2203
2203
|
), /*abortController*/
|
|
2204
2204
|
p[20] ? B ? d[0] & /*abortController*/
|
|
2205
|
-
1048576 && oe(B, 1) : (B =
|
|
2205
|
+
1048576 && oe(B, 1) : (B = Bi(), B.c(), oe(B, 1), B.m(c, null)) : B && (Pt(), he(B, 1, 1, () => {
|
|
2206
2206
|
B = null;
|
|
2207
|
-
}),
|
|
2207
|
+
}), It()), (!N || d[0] & /*searchValue*/
|
|
2208
2208
|
2) && Be(
|
|
2209
2209
|
c,
|
|
2210
2210
|
"displayable",
|
|
@@ -2212,32 +2212,32 @@ function Jr(i) {
|
|
|
2212
2212
|
p[1] !== ""
|
|
2213
2213
|
), /*enableReverse*/
|
|
2214
2214
|
p[6] === "button" ? s ? (s.p(p, d), d[0] & /*enableReverse*/
|
|
2215
|
-
64 && oe(s, 1)) : (s =
|
|
2215
|
+
64 && oe(s, 1)) : (s = Wi(p), s.c(), oe(s, 1), s.m(n, O)) : s && (Pt(), he(s, 1, 1, () => {
|
|
2216
2216
|
s = null;
|
|
2217
|
-
}),
|
|
2218
|
-
|
|
2217
|
+
}), It()), f && f.p && (!N || d[2] & /*$$scope*/
|
|
2218
|
+
128) && Hn(
|
|
2219
2219
|
f,
|
|
2220
2220
|
l,
|
|
2221
2221
|
p,
|
|
2222
2222
|
/*$$scope*/
|
|
2223
|
-
p[
|
|
2224
|
-
N ?
|
|
2223
|
+
p[69],
|
|
2224
|
+
N ? Zn(
|
|
2225
2225
|
l,
|
|
2226
2226
|
/*$$scope*/
|
|
2227
|
-
p[
|
|
2227
|
+
p[69],
|
|
2228
2228
|
d,
|
|
2229
2229
|
null
|
|
2230
|
-
) :
|
|
2230
|
+
) : Vn(
|
|
2231
2231
|
/*$$scope*/
|
|
2232
|
-
p[
|
|
2232
|
+
p[69]
|
|
2233
2233
|
),
|
|
2234
2234
|
null
|
|
2235
2235
|
);
|
|
2236
2236
|
let v = M;
|
|
2237
|
-
M = b(p), M === v ? ~M && a[M].p(p, d) : (k && (
|
|
2237
|
+
M = b(p), M === v ? ~M && a[M].p(p, d) : (k && (Pt(), he(a[v], 1, 1, () => {
|
|
2238
2238
|
a[v] = null;
|
|
2239
|
-
}),
|
|
2240
|
-
4 && y !== (y =
|
|
2239
|
+
}), It()), ~M ? (k = a[M], k ? k.p(p, d) : (k = a[M] = m[M](p), k.c()), oe(k, 1), k.m(t, null)) : k = null), (!N || d[0] & /*className*/
|
|
2240
|
+
4 && y !== (y = Wt(
|
|
2241
2241
|
/*className*/
|
|
2242
2242
|
p[2]
|
|
2243
2243
|
) + " svelte-bz0zu3")) && x(t, "class", y), (!N || d[0] & /*className, collapsed, searchValue*/
|
|
@@ -2256,11 +2256,11 @@ function Jr(i) {
|
|
|
2256
2256
|
he(z), he(u.$$.fragment, p), he(S.$$.fragment, p), he(B), he(s), he(f, p), he(k), N = !1;
|
|
2257
2257
|
},
|
|
2258
2258
|
d(p) {
|
|
2259
|
-
p && (
|
|
2259
|
+
p && ($(e), $(t)), qe(u), i[72](null), qe(S), B && B.d(), s && s.d(), f && f.d(p), ~M && a[M].d(), D = !1, je(q);
|
|
2260
2260
|
}
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function Yr(i, e, t) {
|
|
2264
2264
|
let n, r, u, { $$slots: h = {}, $$scope: o } = e;
|
|
2265
2265
|
const g = {
|
|
2266
2266
|
continental_marine: 4,
|
|
@@ -2288,271 +2288,257 @@ function $r(i, e, t) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
let { class: c = void 0 } = e, { apiKey: E } = e, { bbox: S = void 0 } = e, { clearButtonTitle: C = "clear" } = e, { clearOnBlur: R = !1 } = e, { clearListOnPick: O = !1 } = e, { keepListOpen: A = !1 } = e, { collapsed: M = !1 } = e, { country: k = void 0 } = e, { debounceSearch: y = 200 } = e, { enableReverse: N = "never" } = e, { errorMessage: D = "Something went wrong…" } = e, { filter: q = () => !0 } = e, { flyTo: z = !0 } = e, { fuzzyMatch: B = !0 } = e, { language: s = void 0 } = e, { limit: l = void 0 } = e;
|
|
2290
2290
|
const f = 41415112612;
|
|
2291
|
-
let { reverseGeocodingLimit: m = f } = e, { mapController: a = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "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: d = "Search" } = e, { proximity: v = [{ type: "server-geolocation" }] } = e, { reverseActive: w = N === "always" } = e, { reverseButtonTitle: L = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: I = "full-geometry" } = e, { showPlaceType: W = "if-needed" } = e, { showResultsWhileTyping: Z = !0 } = e, {
|
|
2292
|
-
const
|
|
2293
|
-
let { reverseGeocodingTypes:
|
|
2294
|
-
const
|
|
2295
|
-
let { reverseGeocodingExcludeTypes:
|
|
2296
|
-
} } = e, { adjustUrl:
|
|
2291
|
+
let { reverseGeocodingLimit: m = f } = e, { mapController: a = void 0 } = e, { minLength: b = 2 } = e, { noResultsMessage: p = "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: d = "Search" } = e, { proximity: v = [{ type: "server-geolocation" }] } = e, { reverseActive: w = N === "always" } = e, { reverseButtonTitle: L = "toggle reverse geocoding" } = e, { searchValue: T = "" } = e, { pickedResultStyle: I = "full-geometry" } = e, { showPlaceType: W = "if-needed" } = e, { showResultsWhileTyping: Z = !0 } = e, { selectFirst: K = !0 } = e, { flyToSelected: ie = !1 } = e, { markerOnSelected: j = !0 } = e, { types: V = void 0 } = e;
|
|
2292
|
+
const ae = [];
|
|
2293
|
+
let { reverseGeocodingTypes: Ge = ae } = e, { exhaustiveReverseGeocoding: et = !1 } = e, { excludeTypes: tt = !1 } = e;
|
|
2294
|
+
const ye = void 0;
|
|
2295
|
+
let { reverseGeocodingExcludeTypes: Oe = ye } = e, { zoom: de = g } = e, { apiUrl: fe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: J = {} } = e, { iconsBaseUrl: di = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/" } = e, { adjustUrlQuery: Ft = () => {
|
|
2296
|
+
} } = e, { adjustUrl: jt = () => {
|
|
2297
2297
|
} } = e;
|
|
2298
|
-
function
|
|
2298
|
+
function yn(_) {
|
|
2299
2299
|
Me.focus(_);
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function vn() {
|
|
2302
2302
|
Me.blur();
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2305
|
-
t(1, T = _), ne ? (t(15,
|
|
2304
|
+
function gi(_, ne = !0, se = !1) {
|
|
2305
|
+
t(1, T = _), ne ? (t(15, Y = -1), pi()) : (yi(void 0, !se, se), setTimeout(() => {
|
|
2306
2306
|
Me.focus(), Me.select();
|
|
2307
2307
|
}));
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2310
|
-
t(13, F = void 0), t(14, G = void 0), t(15,
|
|
2311
|
-
}
|
|
2312
|
-
function _n() {
|
|
2313
|
-
t(65, ae = []), t(14, G = void 0);
|
|
2309
|
+
function bn() {
|
|
2310
|
+
t(13, F = void 0), t(14, G = void 0), t(15, Y = -1);
|
|
2314
2311
|
}
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
function xn() {
|
|
2318
|
-
return !!Ee;
|
|
2312
|
+
function wn() {
|
|
2313
|
+
t(64, le = []), t(14, G = void 0);
|
|
2319
2314
|
}
|
|
2320
|
-
|
|
2315
|
+
let F, le, G, mi = "", Me, Y = -1, Re, xt = [], it, st, ot, Zt, De = !1;
|
|
2316
|
+
const En = /* @__PURE__ */ new Set(), Ze = rn();
|
|
2317
|
+
Jn(() => {
|
|
2321
2318
|
a && (a.setEventHandler(void 0), a.indicateReverse(!1), a.setSelectedMarker(-1), a.setFeatures(void 0, void 0, !1));
|
|
2322
2319
|
});
|
|
2323
|
-
function
|
|
2324
|
-
if (t(17,
|
|
2325
|
-
|
|
2326
|
-
return;
|
|
2327
|
-
}
|
|
2328
|
-
if (K > -1 && F)
|
|
2329
|
-
t(14, G = F[K]), t(1, T = G.place_type[0] === "reverse" ? G.place_name : G.place_name.replace(/,.*/, "")), t(19, Re = void 0), t(65, ae = void 0), t(15, K = -1);
|
|
2320
|
+
function pi(_) {
|
|
2321
|
+
if (t(17, De = !1), st && (clearTimeout(st), st = void 0), Y > -1 && F)
|
|
2322
|
+
t(14, G = F[Y]), t(1, T = G.place_type[0] === "reverse" ? G.place_name : G.place_name.replace(/,.*/, "")), t(19, Re = void 0), t(64, le = void 0), t(15, Y = -1);
|
|
2330
2323
|
else if (T) {
|
|
2331
|
-
const ne = _ || !
|
|
2332
|
-
|
|
2333
|
-
t(
|
|
2324
|
+
const ne = _ || !Ht(T);
|
|
2325
|
+
Vt(T, { exact: !0 }).then(() => {
|
|
2326
|
+
t(64, le = F), t(14, G = void 0), ne && Ln();
|
|
2334
2327
|
}).catch((se) => t(19, Re = se));
|
|
2335
2328
|
}
|
|
2336
2329
|
}
|
|
2337
|
-
function
|
|
2330
|
+
function Ht(_) {
|
|
2338
2331
|
try {
|
|
2339
|
-
return
|
|
2332
|
+
return Fr(_, 6);
|
|
2340
2333
|
} catch {
|
|
2341
2334
|
return !1;
|
|
2342
2335
|
}
|
|
2343
2336
|
}
|
|
2344
|
-
async function
|
|
2345
|
-
var
|
|
2346
|
-
t(19, Re = void 0),
|
|
2347
|
-
const
|
|
2348
|
-
t(20,
|
|
2337
|
+
async function Vt(_, { byId: ne = !1, exact: se = !1 } = {}) {
|
|
2338
|
+
var be, Pe, He;
|
|
2339
|
+
t(19, Re = void 0), it == null || it.abort();
|
|
2340
|
+
const ve = new AbortController();
|
|
2341
|
+
t(20, it = ve);
|
|
2349
2342
|
try {
|
|
2350
|
-
const
|
|
2343
|
+
const Q = Ht(_), ct = new URL(fe + "/" + encodeURIComponent(Q ? Q.decimalLongitude + "," + Q.decimalLatitude : _) + ".json"), Le = ct.searchParams;
|
|
2351
2344
|
s !== void 0 && Le.set("language", Array.isArray(s) ? s.join(",") : s ?? "");
|
|
2352
|
-
const [
|
|
2353
|
-
let Ie = (
|
|
2345
|
+
const [Qt] = (a == null ? void 0 : a.getCenterAndZoom()) ?? [];
|
|
2346
|
+
let Ie = (be = !Q || Ge === ae ? V : Ge) == null ? void 0 : be.map((ge) => typeof ge == "string" ? ge : Qt === void 0 || (ge[0] ?? 0) <= Qt && Qt < (ge[1] ?? 1 / 0) ? ge[2] : void 0).filter((ge) => ge !== void 0);
|
|
2354
2347
|
Ie && (Ie = [...new Set(Ie)], Le.set("types", Ie.join(",")));
|
|
2355
|
-
const
|
|
2356
|
-
if (
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2348
|
+
const bi = !Q || Oe === ye ? tt : Oe;
|
|
2349
|
+
if (bi && Le.set("excludeTypes", String(bi)), S && Le.set("bbox", S.map((ge) => ge.toFixed(6)).join(",")), k && Le.set("country", Array.isArray(k) ? k.join(",") : k), !ne && !Q) {
|
|
2350
|
+
const ge = await Rr(a, v, ve);
|
|
2351
|
+
ge && Le.set("proximity", ge), (se || !Z) && Le.set("autocomplete", "false"), Le.set("fuzzyMatch", String(B));
|
|
2359
2352
|
}
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
const
|
|
2363
|
-
if (
|
|
2364
|
-
ne ? (O && t(13, F = void 0), t(14, G =
|
|
2353
|
+
const ht = m === f ? l : m;
|
|
2354
|
+
ht !== void 0 && ht > 1 && (Ie == null ? void 0 : Ie.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), Q ? (ht === 1 || ht !== void 0 && (et || (Ie == null ? void 0 : Ie.length) === 1)) && Le.set("limit", String(ht)) : l !== void 0 && Le.set("limit", String(l)), Le.set("key", E), Ft(Le), jt(ct);
|
|
2355
|
+
const Dn = ct.searchParams.get("types") === "" && ct.searchParams.get("excludeTypes") !== "true", Tt = ct.toString();
|
|
2356
|
+
if (Tt === mi) {
|
|
2357
|
+
ne ? (O && t(13, F = void 0), t(14, G = xt[0])) : (t(13, F = xt), ((Pe = F[Y]) == null ? void 0 : Pe.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1));
|
|
2365
2358
|
return;
|
|
2366
2359
|
}
|
|
2367
|
-
|
|
2368
|
-
let
|
|
2369
|
-
if (
|
|
2370
|
-
|
|
2360
|
+
mi = Tt;
|
|
2361
|
+
let dt;
|
|
2362
|
+
if (Dn)
|
|
2363
|
+
dt = { type: "FeatureCollection", features: [] };
|
|
2371
2364
|
else {
|
|
2372
|
-
const
|
|
2373
|
-
if (!
|
|
2374
|
-
throw new Error(await
|
|
2375
|
-
|
|
2365
|
+
const ge = await fetch(Tt, { signal: ve.signal, ...J });
|
|
2366
|
+
if (!ge.ok)
|
|
2367
|
+
throw new Error(await ge.text());
|
|
2368
|
+
dt = await ge.json();
|
|
2376
2369
|
}
|
|
2377
|
-
|
|
2370
|
+
Ze("response", { url: Tt, featureCollection: dt }), ne ? (O && t(13, F = void 0), t(14, G = dt.features[0]), xt = [G]) : (t(13, F = dt.features.filter(q)), Q && F.unshift({
|
|
2378
2371
|
type: "Feature",
|
|
2379
2372
|
properties: {},
|
|
2380
|
-
id: "reverse_" +
|
|
2381
|
-
text:
|
|
2382
|
-
place_name:
|
|
2373
|
+
id: "reverse_" + Q.decimalLongitude + "_" + Q.decimalLatitude,
|
|
2374
|
+
text: Q.decimalLatitude + ", " + Q.decimalLongitude,
|
|
2375
|
+
place_name: Q.decimalLatitude + ", " + Q.decimalLongitude,
|
|
2383
2376
|
place_type: ["reverse"],
|
|
2384
|
-
center: [
|
|
2377
|
+
center: [Q.decimalLongitude, Q.decimalLatitude],
|
|
2385
2378
|
bbox: [
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2379
|
+
Q.decimalLongitude,
|
|
2380
|
+
Q.decimalLatitude,
|
|
2381
|
+
Q.decimalLongitude,
|
|
2382
|
+
Q.decimalLatitude
|
|
2390
2383
|
],
|
|
2391
2384
|
geometry: {
|
|
2392
2385
|
type: "Point",
|
|
2393
|
-
coordinates: [
|
|
2386
|
+
coordinates: [Q.decimalLongitude, Q.decimalLatitude]
|
|
2394
2387
|
}
|
|
2395
|
-
}),
|
|
2396
|
-
} catch (
|
|
2397
|
-
if (
|
|
2388
|
+
}), xt = F, ((He = F[Y]) == null ? void 0 : He.id) !== (r == null ? void 0 : r.id) && t(15, Y = -1), Q && Me.focus());
|
|
2389
|
+
} catch (Q) {
|
|
2390
|
+
if (Q && typeof Q == "object" && "name" in Q && Q.name === "AbortError")
|
|
2398
2391
|
return;
|
|
2399
|
-
throw
|
|
2392
|
+
throw Q;
|
|
2400
2393
|
} finally {
|
|
2401
|
-
|
|
2394
|
+
ve === it && t(20, it = void 0);
|
|
2402
2395
|
}
|
|
2403
2396
|
}
|
|
2404
|
-
function
|
|
2405
|
-
var
|
|
2406
|
-
if (!(
|
|
2397
|
+
function Ln() {
|
|
2398
|
+
var ve;
|
|
2399
|
+
if (!(le != null && le.length) || !z)
|
|
2407
2400
|
return;
|
|
2408
|
-
const _ = [180, 90, -180, -90], ne = !
|
|
2401
|
+
const _ = [180, 90, -180, -90], ne = !le.some((be) => !be.matching_text);
|
|
2409
2402
|
let se;
|
|
2410
|
-
for (const
|
|
2411
|
-
const Pe =
|
|
2412
|
-
if (se = se === void 0 ? Pe : Pe === void 0 ? se : Math.max(se, Pe), ne || !
|
|
2413
|
-
for (const
|
|
2414
|
-
_[
|
|
2403
|
+
for (const be of le) {
|
|
2404
|
+
const Pe = ft(be);
|
|
2405
|
+
if (se = se === void 0 ? Pe : Pe === void 0 ? se : Math.max(se, Pe), ne || !be.matching_text)
|
|
2406
|
+
for (const He of [0, 1, 2, 3])
|
|
2407
|
+
_[He] = Math[He < 2 ? "min" : "max"](_[He], ((ve = be.bbox) == null ? void 0 : ve[He]) ?? be.center[He % 2]);
|
|
2415
2408
|
}
|
|
2416
|
-
a &&
|
|
2409
|
+
a && le.length > 0 && (G && _[0] === _[2] && _[1] === _[3] ? a.flyTo(G.center, ft(G)) : a.fitBounds(Gt(_), 50, se));
|
|
2417
2410
|
}
|
|
2418
|
-
function
|
|
2419
|
-
!G || !a || (!G.bbox || G.bbox[0] === G.bbox[2] && G.bbox[1] === G.bbox[3] ? a.flyTo(G.center,
|
|
2411
|
+
function Kt() {
|
|
2412
|
+
!G || !a || (!G.bbox || G.bbox[0] === G.bbox[2] && G.bbox[1] === G.bbox[3] ? a.flyTo(G.center, ft(G)) : a.fitBounds(Gt(G.bbox), 50, ft(G)));
|
|
2420
2413
|
}
|
|
2421
|
-
function
|
|
2414
|
+
function ft(_) {
|
|
2422
2415
|
var se;
|
|
2423
2416
|
if (!_.bbox || _.bbox[0] !== _.bbox[2] && _.bbox[1] !== _.bbox[3])
|
|
2424
2417
|
return;
|
|
2425
2418
|
const ne = _.id.replace(/\..*/, "");
|
|
2426
2419
|
return (Array.isArray((se = _.properties) == null ? void 0 : se.categories) ? _.properties.categories.reduce(
|
|
2427
|
-
(
|
|
2428
|
-
const Pe =
|
|
2429
|
-
return
|
|
2420
|
+
(ve, be) => {
|
|
2421
|
+
const Pe = de[ne + "." + be];
|
|
2422
|
+
return ve === void 0 ? Pe : Pe === void 0 ? ve : Math.max(ve, Pe);
|
|
2430
2423
|
},
|
|
2431
2424
|
void 0
|
|
2432
|
-
) : void 0) ??
|
|
2425
|
+
) : void 0) ?? de[ne];
|
|
2433
2426
|
}
|
|
2434
|
-
function
|
|
2435
|
-
t(0, w = N === "always"), t(13, F = void 0), t(14, G = void 0), t(15,
|
|
2427
|
+
function _n(_) {
|
|
2428
|
+
t(0, w = N === "always"), t(13, F = void 0), t(14, G = void 0), t(15, Y = -1), gi(_[1].toFixed(6) + ", " + Or(_[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2436
2429
|
}
|
|
2437
|
-
function
|
|
2430
|
+
function Sn(_) {
|
|
2438
2431
|
if (!F)
|
|
2439
2432
|
return;
|
|
2440
2433
|
let ne = _.key === "ArrowDown" ? 1 : _.key === "ArrowUp" ? -1 : 0;
|
|
2441
|
-
ne && (Me.focus(), t(17,
|
|
2434
|
+
ne && (Me.focus(), t(17, De = !0), _.preventDefault(), G && Y === -1 && t(15, Y = F.findIndex((se) => se.id === (G == null ? void 0 : G.id))), Y === (G || K ? 0 : -1) && ne === -1 && t(15, Y = F.length), t(15, Y += ne), Y >= F.length && t(15, Y = -1), Y < 0 && (G || K) && t(15, Y = 0));
|
|
2442
2435
|
}
|
|
2443
|
-
function
|
|
2444
|
-
if (t(19, Re = void 0), t(14, G = void 0), t(17,
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
()
|
|
2456
|
-
t(66, Ee = void 0), ct(Ce, { appendSpace: !0 }).catch((ge) => t(19, Re = ge));
|
|
2457
|
-
},
|
|
2458
|
-
J
|
|
2459
|
-
));
|
|
2436
|
+
function yi(_, ne = !0, se = !1) {
|
|
2437
|
+
if (t(19, Re = void 0), t(14, G = void 0), t(17, De = !0), Z || se) {
|
|
2438
|
+
if (st && clearTimeout(st), T.length < b)
|
|
2439
|
+
return;
|
|
2440
|
+
const ve = T;
|
|
2441
|
+
st = window.setTimeout(
|
|
2442
|
+
() => {
|
|
2443
|
+
Vt(ve).catch((be) => t(19, Re = be));
|
|
2444
|
+
},
|
|
2445
|
+
ne ? y : 0
|
|
2446
|
+
);
|
|
2447
|
+
} else
|
|
2448
|
+
t(13, F = void 0), t(19, Re = void 0);
|
|
2460
2449
|
}
|
|
2461
|
-
function
|
|
2462
|
-
G && (G == null ? void 0 : G.id) === (_ == null ? void 0 : _.id) ?
|
|
2450
|
+
function Yt(_) {
|
|
2451
|
+
G && (G == null ? void 0 : G.id) === (_ == null ? void 0 : _.id) ? Kt() : (t(14, G = _), t(1, T = _.place_name));
|
|
2463
2452
|
}
|
|
2464
|
-
function
|
|
2465
|
-
t(15,
|
|
2453
|
+
function vi(_) {
|
|
2454
|
+
t(15, Y = _);
|
|
2466
2455
|
}
|
|
2467
|
-
function
|
|
2468
|
-
(!
|
|
2456
|
+
function xn() {
|
|
2457
|
+
(!K || G) && t(15, Y = -1), ie && Kt();
|
|
2469
2458
|
}
|
|
2470
|
-
const
|
|
2471
|
-
function
|
|
2472
|
-
|
|
2459
|
+
const Tn = () => Me.focus();
|
|
2460
|
+
function Mn(_) {
|
|
2461
|
+
ii[_ ? "unshift" : "push"](() => {
|
|
2473
2462
|
Me = _, t(18, Me);
|
|
2474
2463
|
});
|
|
2475
2464
|
}
|
|
2476
|
-
function
|
|
2477
|
-
T = this.value, t(1, T), t(17,
|
|
2465
|
+
function Cn() {
|
|
2466
|
+
T = this.value, t(1, T), t(17, De), t(31, R), t(16, ot);
|
|
2478
2467
|
}
|
|
2479
|
-
const
|
|
2468
|
+
const Nn = () => t(17, De = !0), kn = () => t(17, De = !1), On = () => t(17, De = !0), Rn = () => t(14, G = void 0), Pn = () => {
|
|
2480
2469
|
t(1, T = ""), t(14, G = void 0), Me.focus();
|
|
2481
|
-
},
|
|
2470
|
+
}, In = () => t(0, w = !w), An = () => t(19, Re = void 0), Bn = (_) => vi(_), Wn = (_) => Yt(_), Gn = () => {
|
|
2482
2471
|
};
|
|
2483
2472
|
return i.$$set = (_) => {
|
|
2484
|
-
"class" in _ && t(2, c = _.class), "apiKey" in _ && t(29, E = _.apiKey), "bbox" in _ && t(30, S = _.bbox), "clearButtonTitle" in _ && t(3, C = _.clearButtonTitle), "clearOnBlur" in _ && t(31, R = _.clearOnBlur), "clearListOnPick" in _ && t(32, O = _.clearListOnPick), "keepListOpen" in _ && t(4, A = _.keepListOpen), "collapsed" in _ && t(5, M = _.collapsed), "country" in _ && t(33, k = _.country), "debounceSearch" in _ && t(34, y = _.debounceSearch), "enableReverse" in _ && t(6, N = _.enableReverse), "errorMessage" in _ && t(7, D = _.errorMessage), "filter" in _ && t(35, q = _.filter), "flyTo" in _ && t(36, z = _.flyTo), "fuzzyMatch" in _ && t(37, B = _.fuzzyMatch), "language" in _ && t(38, s = _.language), "limit" in _ && t(39, l = _.limit), "reverseGeocodingLimit" in _ && t(40, m = _.reverseGeocodingLimit), "mapController" in _ && t(41, a = _.mapController), "minLength" in _ && t(42, b = _.minLength), "noResultsMessage" in _ && t(8, p = _.noResultsMessage), "placeholder" in _ && t(9, d = _.placeholder), "proximity" in _ && t(43, v = _.proximity), "reverseActive" in _ && t(0, w = _.reverseActive), "reverseButtonTitle" in _ && t(10, L = _.reverseButtonTitle), "searchValue" in _ && t(1, T = _.searchValue), "pickedResultStyle" in _ && t(44, I = _.pickedResultStyle), "showPlaceType" in _ && t(11, W = _.showPlaceType), "showResultsWhileTyping" in _ && t(45, Z = _.showResultsWhileTyping), "
|
|
2473
|
+
"class" in _ && t(2, c = _.class), "apiKey" in _ && t(29, E = _.apiKey), "bbox" in _ && t(30, S = _.bbox), "clearButtonTitle" in _ && t(3, C = _.clearButtonTitle), "clearOnBlur" in _ && t(31, R = _.clearOnBlur), "clearListOnPick" in _ && t(32, O = _.clearListOnPick), "keepListOpen" in _ && t(4, A = _.keepListOpen), "collapsed" in _ && t(5, M = _.collapsed), "country" in _ && t(33, k = _.country), "debounceSearch" in _ && t(34, y = _.debounceSearch), "enableReverse" in _ && t(6, N = _.enableReverse), "errorMessage" in _ && t(7, D = _.errorMessage), "filter" in _ && t(35, q = _.filter), "flyTo" in _ && t(36, z = _.flyTo), "fuzzyMatch" in _ && t(37, B = _.fuzzyMatch), "language" in _ && t(38, s = _.language), "limit" in _ && t(39, l = _.limit), "reverseGeocodingLimit" in _ && t(40, m = _.reverseGeocodingLimit), "mapController" in _ && t(41, a = _.mapController), "minLength" in _ && t(42, b = _.minLength), "noResultsMessage" in _ && t(8, p = _.noResultsMessage), "placeholder" in _ && t(9, d = _.placeholder), "proximity" in _ && t(43, v = _.proximity), "reverseActive" in _ && t(0, w = _.reverseActive), "reverseButtonTitle" in _ && t(10, L = _.reverseButtonTitle), "searchValue" in _ && t(1, T = _.searchValue), "pickedResultStyle" in _ && t(44, I = _.pickedResultStyle), "showPlaceType" in _ && t(11, W = _.showPlaceType), "showResultsWhileTyping" in _ && t(45, Z = _.showResultsWhileTyping), "selectFirst" in _ && t(46, K = _.selectFirst), "flyToSelected" in _ && t(47, ie = _.flyToSelected), "markerOnSelected" in _ && t(48, j = _.markerOnSelected), "types" in _ && t(49, V = _.types), "reverseGeocodingTypes" in _ && t(50, Ge = _.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in _ && t(51, et = _.exhaustiveReverseGeocoding), "excludeTypes" in _ && t(52, tt = _.excludeTypes), "reverseGeocodingExcludeTypes" in _ && t(53, Oe = _.reverseGeocodingExcludeTypes), "zoom" in _ && t(54, de = _.zoom), "apiUrl" in _ && t(55, fe = _.apiUrl), "fetchParameters" in _ && t(56, J = _.fetchParameters), "iconsBaseUrl" in _ && t(12, di = _.iconsBaseUrl), "adjustUrlQuery" in _ && t(57, Ft = _.adjustUrlQuery), "adjustUrl" in _ && t(58, jt = _.adjustUrl), "$$scope" in _ && t(69, o = _.$$scope);
|
|
2485
2474
|
}, i.$$.update = () => {
|
|
2486
2475
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2487
2476
|
64 && t(0, w = N === "always"), i.$$.dirty[0] & /*picked*/
|
|
2488
2477
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2489
|
-
8192 && I !== "marker-only" && G && !G.address && G.geometry.type === "Point" && G.place_type[0] !== "reverse" &&
|
|
2478
|
+
8192 && I !== "marker-only" && G && !G.address && G.geometry.type === "Point" && G.place_type[0] !== "reverse" && Vt(G.id, { byId: !0 }).catch((_) => t(19, Re = _)), i.$$.dirty[0] & /*picked*/
|
|
2490
2479
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2491
2480
|
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2492
|
-
|
|
2481
|
+
8 && (a && G && G.id !== Zt && z && (Kt(), O && t(13, F = void 0), t(64, le = void 0), t(15, Y = -1)), t(65, Zt = G == null ? void 0 : G.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2493
2482
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2494
2483
|
1 && setTimeout(() => {
|
|
2495
|
-
t(16,
|
|
2484
|
+
t(16, ot = De), R && !ot && t(1, T = "");
|
|
2496
2485
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2497
2486
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2498
|
-
2048 && T.length < b && (t(13, F = void 0), t(19, Re = void 0), t(
|
|
2499
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2500
|
-
65536 && X && F != null && F.length && (xn() || t(15, K = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2487
|
+
2048 && T.length < b && (t(13, F = void 0), t(19, Re = void 0), t(64, le = F)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2501
2488
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2502
|
-
|
|
2489
|
+
32768 && K && F != null && F.length && Y == -1 && !G && t(15, Y = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2503
2490
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2504
|
-
|
|
2491
|
+
4 && le !== F && t(64, le = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2505
2492
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2506
2493
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2507
|
-
|
|
2494
|
+
4 && a && a.setEventHandler((_) => {
|
|
2508
2495
|
switch (_.type) {
|
|
2509
2496
|
case "mapClick":
|
|
2510
|
-
w &&
|
|
2497
|
+
w && _n(_.coordinates);
|
|
2511
2498
|
break;
|
|
2512
2499
|
case "markerClick":
|
|
2513
2500
|
{
|
|
2514
2501
|
const ne = F == null ? void 0 : F.find((se) => se.id === _.id);
|
|
2515
|
-
ne &&
|
|
2502
|
+
ne && Yt(ne);
|
|
2516
2503
|
}
|
|
2517
2504
|
break;
|
|
2518
2505
|
case "markerMouseEnter":
|
|
2519
|
-
|
|
2506
|
+
le && t(15, Y = ot ? (F == null ? void 0 : F.findIndex((ne) => ne.id === _.id)) ?? -1 : -1);
|
|
2520
2507
|
break;
|
|
2521
2508
|
case "markerMouseLeave":
|
|
2522
|
-
|
|
2509
|
+
le && t(15, Y = -1);
|
|
2523
2510
|
break;
|
|
2524
2511
|
}
|
|
2525
2512
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2526
|
-
40960 && t(
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
8192 && t(
|
|
2530
|
-
|
|
2531
|
-
|
|
2513
|
+
40960 && t(66, r = F == null ? void 0 : F[Y]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2514
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2515
|
+
16 && a && r && z && ie && a.flyTo(r.center, ft(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2516
|
+
8192 && t(68, n = I === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2517
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2518
|
+
64 && (j || a == null || a.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2532
2519
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2533
|
-
|
|
2534
|
-
|
|
2520
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2521
|
+
84 && a && j && !le && (a.setFeatures(r ? [r] : void 0, G, n), a.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2535
2522
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2536
2523
|
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2537
|
-
|
|
2524
|
+
68 && a && a.setFeatures(le, G, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2538
2525
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2539
2526
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2540
|
-
|
|
2541
|
-
80 && r && (window.clearTimeout(Ee), t(66, Ee = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2527
|
+
4 && le && a && a.setSelectedMarker(Y), i.$$.dirty[0] & /*searchValue*/
|
|
2542
2528
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2543
2529
|
1024 && a) {
|
|
2544
|
-
const _ =
|
|
2530
|
+
const _ = Ht(T);
|
|
2545
2531
|
a.setReverseMarker(_ ? [_.decimalLongitude, _.decimalLatitude] : void 0);
|
|
2546
2532
|
}
|
|
2547
2533
|
i.$$.dirty[2] & /*selected*/
|
|
2548
|
-
|
|
2549
|
-
16384 &&
|
|
2550
|
-
73744 && t(
|
|
2551
|
-
|
|
2552
|
-
8192 &&
|
|
2553
|
-
|
|
2554
|
-
1 &&
|
|
2555
|
-
2 &&
|
|
2534
|
+
16 && Ze("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2535
|
+
16384 && Ze("pick", { feature: G }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2536
|
+
73744 && t(67, u = !!(F != null && F.length) && (ot || A)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2537
|
+
32 && Ze("optionsvisibilitychange", { optionsVisible: u }), i.$$.dirty[0] & /*listFeatures*/
|
|
2538
|
+
8192 && Ze("featureslisted", { features: F }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2539
|
+
4 && Ze("featuresmarked", { features: le }), i.$$.dirty[0] & /*reverseActive*/
|
|
2540
|
+
1 && Ze("reversetoggle", { reverse: w }), i.$$.dirty[0] & /*searchValue*/
|
|
2541
|
+
2 && Ze("querychange", { query: T }), i.$$.dirty[0] & /*reverseActive*/
|
|
2556
2542
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2557
2543
|
1024 && a && a.indicateReverse(w);
|
|
2558
2544
|
}, [
|
|
@@ -2568,22 +2554,22 @@ function $r(i, e, t) {
|
|
|
2568
2554
|
d,
|
|
2569
2555
|
L,
|
|
2570
2556
|
W,
|
|
2571
|
-
|
|
2557
|
+
di,
|
|
2572
2558
|
F,
|
|
2573
2559
|
G,
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2560
|
+
Y,
|
|
2561
|
+
ot,
|
|
2562
|
+
De,
|
|
2577
2563
|
Me,
|
|
2578
2564
|
Re,
|
|
2579
|
-
|
|
2565
|
+
it,
|
|
2566
|
+
En,
|
|
2567
|
+
pi,
|
|
2580
2568
|
Sn,
|
|
2569
|
+
yi,
|
|
2570
|
+
Yt,
|
|
2581
2571
|
vi,
|
|
2582
|
-
|
|
2583
|
-
bi,
|
|
2584
|
-
Xt,
|
|
2585
|
-
wi,
|
|
2586
|
-
Nn,
|
|
2572
|
+
xn,
|
|
2587
2573
|
g,
|
|
2588
2574
|
E,
|
|
2589
2575
|
S,
|
|
@@ -2602,33 +2588,35 @@ function $r(i, e, t) {
|
|
|
2602
2588
|
v,
|
|
2603
2589
|
I,
|
|
2604
2590
|
Z,
|
|
2605
|
-
|
|
2606
|
-
|
|
2591
|
+
K,
|
|
2592
|
+
ie,
|
|
2607
2593
|
j,
|
|
2608
2594
|
V,
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2595
|
+
Ge,
|
|
2596
|
+
et,
|
|
2597
|
+
tt,
|
|
2598
|
+
Oe,
|
|
2613
2599
|
de,
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2600
|
+
fe,
|
|
2601
|
+
J,
|
|
2602
|
+
Ft,
|
|
2603
|
+
jt,
|
|
2604
|
+
yn,
|
|
2605
|
+
vn,
|
|
2606
|
+
gi,
|
|
2607
|
+
bn,
|
|
2619
2608
|
wn,
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
Ln,
|
|
2623
|
-
_n,
|
|
2624
|
-
ae,
|
|
2625
|
-
Ee,
|
|
2626
|
-
Kt,
|
|
2609
|
+
le,
|
|
2610
|
+
Zt,
|
|
2627
2611
|
r,
|
|
2628
2612
|
u,
|
|
2629
2613
|
n,
|
|
2630
2614
|
o,
|
|
2631
2615
|
h,
|
|
2616
|
+
Tn,
|
|
2617
|
+
Mn,
|
|
2618
|
+
Cn,
|
|
2619
|
+
Nn,
|
|
2632
2620
|
kn,
|
|
2633
2621
|
On,
|
|
2634
2622
|
Rn,
|
|
@@ -2637,21 +2625,17 @@ function $r(i, e, t) {
|
|
|
2637
2625
|
An,
|
|
2638
2626
|
Bn,
|
|
2639
2627
|
Wn,
|
|
2640
|
-
Gn
|
|
2641
|
-
Dn,
|
|
2642
|
-
zn,
|
|
2643
|
-
Un,
|
|
2644
|
-
qn
|
|
2628
|
+
Gn
|
|
2645
2629
|
];
|
|
2646
2630
|
}
|
|
2647
|
-
let
|
|
2631
|
+
let Qr = class extends Je {
|
|
2648
2632
|
constructor(e) {
|
|
2649
|
-
super(),
|
|
2633
|
+
super(), Xe(
|
|
2650
2634
|
this,
|
|
2651
2635
|
e,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2636
|
+
Yr,
|
|
2637
|
+
Kr,
|
|
2638
|
+
Qe,
|
|
2655
2639
|
{
|
|
2656
2640
|
ZOOM_DEFAULTS: 28,
|
|
2657
2641
|
class: 2,
|
|
@@ -2683,26 +2667,25 @@ let es = class extends et {
|
|
|
2683
2667
|
pickedResultStyle: 44,
|
|
2684
2668
|
showPlaceType: 11,
|
|
2685
2669
|
showResultsWhileTyping: 45,
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
fetchParameters: 57,
|
|
2670
|
+
selectFirst: 46,
|
|
2671
|
+
flyToSelected: 47,
|
|
2672
|
+
markerOnSelected: 48,
|
|
2673
|
+
types: 49,
|
|
2674
|
+
reverseGeocodingTypes: 50,
|
|
2675
|
+
exhaustiveReverseGeocoding: 51,
|
|
2676
|
+
excludeTypes: 52,
|
|
2677
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2678
|
+
zoom: 54,
|
|
2679
|
+
apiUrl: 55,
|
|
2680
|
+
fetchParameters: 56,
|
|
2698
2681
|
iconsBaseUrl: 12,
|
|
2699
|
-
adjustUrlQuery:
|
|
2700
|
-
adjustUrl:
|
|
2701
|
-
focus:
|
|
2702
|
-
blur:
|
|
2703
|
-
setQuery:
|
|
2704
|
-
clearList:
|
|
2705
|
-
clearMap:
|
|
2682
|
+
adjustUrlQuery: 57,
|
|
2683
|
+
adjustUrl: 58,
|
|
2684
|
+
focus: 59,
|
|
2685
|
+
blur: 60,
|
|
2686
|
+
setQuery: 61,
|
|
2687
|
+
clearList: 62,
|
|
2688
|
+
clearMap: 63
|
|
2706
2689
|
},
|
|
2707
2690
|
null,
|
|
2708
2691
|
[-1, -1, -1, -1]
|
|
@@ -2712,26 +2695,26 @@ let es = class extends et {
|
|
|
2712
2695
|
return this.$$.ctx[28];
|
|
2713
2696
|
}
|
|
2714
2697
|
get focus() {
|
|
2715
|
-
return this.$$.ctx[
|
|
2698
|
+
return this.$$.ctx[59];
|
|
2716
2699
|
}
|
|
2717
2700
|
get blur() {
|
|
2718
|
-
return this.$$.ctx[
|
|
2701
|
+
return this.$$.ctx[60];
|
|
2719
2702
|
}
|
|
2720
2703
|
get setQuery() {
|
|
2721
|
-
return this.$$.ctx[
|
|
2704
|
+
return this.$$.ctx[61];
|
|
2722
2705
|
}
|
|
2723
2706
|
get clearList() {
|
|
2724
|
-
return this.$$.ctx[
|
|
2707
|
+
return this.$$.ctx[62];
|
|
2725
2708
|
}
|
|
2726
2709
|
get clearMap() {
|
|
2727
|
-
return this.$$.ctx[
|
|
2710
|
+
return this.$$.ctx[63];
|
|
2728
2711
|
}
|
|
2729
2712
|
};
|
|
2730
|
-
function
|
|
2713
|
+
function _t(i, e, t = {}) {
|
|
2731
2714
|
const n = { type: "Feature" };
|
|
2732
2715
|
return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
|
|
2733
2716
|
}
|
|
2734
|
-
function
|
|
2717
|
+
function ci(i, e, t = {}) {
|
|
2735
2718
|
for (const r of i) {
|
|
2736
2719
|
if (r.length < 4)
|
|
2737
2720
|
throw new Error(
|
|
@@ -2743,23 +2726,23 @@ function di(i, e, t = {}) {
|
|
|
2743
2726
|
if (r[r.length - 1][u] !== r[0][u])
|
|
2744
2727
|
throw new Error("First and last Position are not equivalent.");
|
|
2745
2728
|
}
|
|
2746
|
-
return
|
|
2729
|
+
return _t({
|
|
2747
2730
|
type: "Polygon",
|
|
2748
2731
|
coordinates: i
|
|
2749
2732
|
}, e, t);
|
|
2750
2733
|
}
|
|
2751
|
-
function
|
|
2734
|
+
function St(i, e = {}) {
|
|
2752
2735
|
const t = { type: "FeatureCollection" };
|
|
2753
2736
|
return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
|
|
2754
2737
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2738
|
+
function an(i, e, t = {}) {
|
|
2739
|
+
return _t({
|
|
2757
2740
|
type: "MultiPolygon",
|
|
2758
2741
|
coordinates: i
|
|
2759
2742
|
}, e, t);
|
|
2760
2743
|
}
|
|
2761
|
-
var
|
|
2762
|
-
function
|
|
2744
|
+
var Xr = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ei = Math.ceil, xe = Math.floor, pe = "[BigNumber Error] ", Di = pe + "Number primitive has more than 15 significant digits: ", Ce = 1e14, U = 14, zi = 9007199254740991, ti = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ve = 1e7, we = 1e9;
|
|
2745
|
+
function fn(i) {
|
|
2763
2746
|
var e, t, n, r = y.prototype = { constructor: y, toString: null, valueOf: null }, u = new y(1), h = 20, o = 4, g = -7, c = 21, E = -1e7, S = 1e7, C = !1, R = 1, O = 0, A = {
|
|
2764
2747
|
prefix: "",
|
|
2765
2748
|
groupSize: 3,
|
|
@@ -2787,7 +2770,7 @@ function dn(i) {
|
|
|
2787
2770
|
}
|
|
2788
2771
|
w = String(s);
|
|
2789
2772
|
} else {
|
|
2790
|
-
if (!
|
|
2773
|
+
if (!Xr.test(w = String(s))) return n(L, w, d);
|
|
2791
2774
|
L.s = w.charCodeAt(0) == 45 ? (w = w.slice(1), -1) : 1;
|
|
2792
2775
|
}
|
|
2793
2776
|
(b = w.indexOf(".")) > -1 && (w = w.replace(".", "")), (p = w.search(/e/i)) > 0 ? (b < 0 && (b = p), b += +w.slice(p + 1), w = w.substring(0, p)) : b < 0 && (b = w.length);
|
|
@@ -2797,7 +2780,7 @@ function dn(i) {
|
|
|
2797
2780
|
if (w = String(s), d = typeof s == "number") {
|
|
2798
2781
|
if (s * 0 != 0) return n(L, w, d, l);
|
|
2799
2782
|
if (L.s = 1 / s < 0 ? (w = w.slice(1), -1) : 1, y.DEBUG && w.replace(/^0\.0*|\./, "").length > 15)
|
|
2800
|
-
throw Error(
|
|
2783
|
+
throw Error(Di + s);
|
|
2801
2784
|
} else
|
|
2802
2785
|
L.s = w.charCodeAt(0) === 45 ? (w = w.slice(1), -1) : 1;
|
|
2803
2786
|
for (f = M.slice(0, l), b = p = 0, v = w.length; p < v; p++)
|
|
@@ -2818,8 +2801,8 @@ function dn(i) {
|
|
|
2818
2801
|
for (p = 0; w.charCodeAt(p) === 48; p++) ;
|
|
2819
2802
|
for (v = w.length; w.charCodeAt(--v) === 48; ) ;
|
|
2820
2803
|
if (w = w.slice(p, ++v)) {
|
|
2821
|
-
if (v -= p, d && y.DEBUG && v > 15 && (s >
|
|
2822
|
-
throw Error(
|
|
2804
|
+
if (v -= p, d && y.DEBUG && v > 15 && (s > zi || s !== xe(s)))
|
|
2805
|
+
throw Error(Di + L.s * s);
|
|
2823
2806
|
if ((b = b - p - 1) > S)
|
|
2824
2807
|
L.c = L.e = null;
|
|
2825
2808
|
else if (b < E)
|
|
@@ -2837,38 +2820,38 @@ function dn(i) {
|
|
|
2837
2820
|
} else
|
|
2838
2821
|
L.c = [L.e = 0];
|
|
2839
2822
|
}
|
|
2840
|
-
y.clone =
|
|
2823
|
+
y.clone = fn, y.ROUND_UP = 0, y.ROUND_DOWN = 1, y.ROUND_CEIL = 2, y.ROUND_FLOOR = 3, y.ROUND_HALF_UP = 4, y.ROUND_HALF_DOWN = 5, y.ROUND_HALF_EVEN = 6, y.ROUND_HALF_CEIL = 7, y.ROUND_HALF_FLOOR = 8, y.EUCLID = 9, y.config = y.set = function(s) {
|
|
2841
2824
|
var l, f;
|
|
2842
2825
|
if (s != null)
|
|
2843
2826
|
if (typeof s == "object") {
|
|
2844
|
-
if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], re(f, 0,
|
|
2827
|
+
if (s.hasOwnProperty(l = "DECIMAL_PLACES") && (f = s[l], re(f, 0, we, l), h = f), s.hasOwnProperty(l = "ROUNDING_MODE") && (f = s[l], re(f, 0, 8, l), o = f), s.hasOwnProperty(l = "EXPONENTIAL_AT") && (f = s[l], f && f.pop ? (re(f[0], -1e9, 0, l), re(f[1], 0, we, l), g = f[0], c = f[1]) : (re(f, -1e9, we, l), g = -(c = f < 0 ? -f : f))), s.hasOwnProperty(l = "RANGE"))
|
|
2845
2828
|
if (f = s[l], f && f.pop)
|
|
2846
|
-
re(f[0], -1e9, -1, l), re(f[1], 1,
|
|
2847
|
-
else if (re(f, -1e9,
|
|
2829
|
+
re(f[0], -1e9, -1, l), re(f[1], 1, we, l), E = f[0], S = f[1];
|
|
2830
|
+
else if (re(f, -1e9, we, l), f)
|
|
2848
2831
|
E = -(S = f < 0 ? -f : f);
|
|
2849
2832
|
else
|
|
2850
|
-
throw Error(
|
|
2833
|
+
throw Error(pe + l + " cannot be zero: " + f);
|
|
2851
2834
|
if (s.hasOwnProperty(l = "CRYPTO"))
|
|
2852
2835
|
if (f = s[l], f === !!f)
|
|
2853
2836
|
if (f)
|
|
2854
2837
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
2855
2838
|
C = f;
|
|
2856
2839
|
else
|
|
2857
|
-
throw C = !f, Error(
|
|
2840
|
+
throw C = !f, Error(pe + "crypto unavailable");
|
|
2858
2841
|
else
|
|
2859
2842
|
C = f;
|
|
2860
2843
|
else
|
|
2861
|
-
throw Error(
|
|
2862
|
-
if (s.hasOwnProperty(l = "MODULO_MODE") && (f = s[l], re(f, 0, 9, l), R = f), s.hasOwnProperty(l = "POW_PRECISION") && (f = s[l], re(f, 0,
|
|
2844
|
+
throw Error(pe + l + " not true or false: " + f);
|
|
2845
|
+
if (s.hasOwnProperty(l = "MODULO_MODE") && (f = s[l], re(f, 0, 9, l), R = f), s.hasOwnProperty(l = "POW_PRECISION") && (f = s[l], re(f, 0, we, l), O = f), s.hasOwnProperty(l = "FORMAT"))
|
|
2863
2846
|
if (f = s[l], typeof f == "object") A = f;
|
|
2864
|
-
else throw Error(
|
|
2847
|
+
else throw Error(pe + l + " not an object: " + f);
|
|
2865
2848
|
if (s.hasOwnProperty(l = "ALPHABET"))
|
|
2866
2849
|
if (f = s[l], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f))
|
|
2867
2850
|
k = f.slice(0, 10) == "0123456789", M = f;
|
|
2868
2851
|
else
|
|
2869
|
-
throw Error(
|
|
2852
|
+
throw Error(pe + l + " invalid: " + f);
|
|
2870
2853
|
} else
|
|
2871
|
-
throw Error(
|
|
2854
|
+
throw Error(pe + "Object expected: " + s);
|
|
2872
2855
|
return {
|
|
2873
2856
|
DECIMAL_PLACES: h,
|
|
2874
2857
|
ROUNDING_MODE: o,
|
|
@@ -2885,20 +2868,20 @@ function dn(i) {
|
|
|
2885
2868
|
if (!y.DEBUG) return !0;
|
|
2886
2869
|
var l, f, m = s.c, a = s.e, b = s.s;
|
|
2887
2870
|
e: if ({}.toString.call(m) == "[object Array]") {
|
|
2888
|
-
if ((b === 1 || b === -1) && a >= -1e9 && a <=
|
|
2871
|
+
if ((b === 1 || b === -1) && a >= -1e9 && a <= we && a === xe(a)) {
|
|
2889
2872
|
if (m[0] === 0) {
|
|
2890
2873
|
if (a === 0 && m.length === 1) return !0;
|
|
2891
2874
|
break e;
|
|
2892
2875
|
}
|
|
2893
2876
|
if (l = (a + 1) % U, l < 1 && (l += U), String(m[0]).length == l) {
|
|
2894
2877
|
for (l = 0; l < m.length; l++)
|
|
2895
|
-
if (f = m[l], f < 0 || f >=
|
|
2878
|
+
if (f = m[l], f < 0 || f >= Ce || f !== xe(f)) break e;
|
|
2896
2879
|
if (f !== 0) return !0;
|
|
2897
2880
|
}
|
|
2898
2881
|
}
|
|
2899
2882
|
} else if (m === null && a === null && (b === null || b === 1 || b === -1))
|
|
2900
2883
|
return !0;
|
|
2901
|
-
throw Error(
|
|
2884
|
+
throw Error(pe + "Invalid BigNumber: " + s);
|
|
2902
2885
|
}, y.maximum = y.max = function() {
|
|
2903
2886
|
return D(arguments, -1);
|
|
2904
2887
|
}, y.minimum = y.min = function() {
|
|
@@ -2911,7 +2894,7 @@ function dn(i) {
|
|
|
2911
2894
|
};
|
|
2912
2895
|
return function(f) {
|
|
2913
2896
|
var m, a, b, p, d, v = 0, w = [], L = new y(u);
|
|
2914
|
-
if (f == null ? f = h : re(f, 0,
|
|
2897
|
+
if (f == null ? f = h : re(f, 0, we), p = ei(f / U), C)
|
|
2915
2898
|
if (crypto.getRandomValues) {
|
|
2916
2899
|
for (m = crypto.getRandomValues(new Uint32Array(p *= 2)); v < p; )
|
|
2917
2900
|
d = m[v] * 131072 + (m[v + 1] >>> 11), d >= 9e15 ? (a = crypto.getRandomValues(new Uint32Array(2)), m[v] = a[0], m[v + 1] = a[1]) : (w.push(d % 1e14), v += 2);
|
|
@@ -2921,11 +2904,11 @@ function dn(i) {
|
|
|
2921
2904
|
d = (m[v] & 31) * 281474976710656 + m[v + 1] * 1099511627776 + m[v + 2] * 4294967296 + m[v + 3] * 16777216 + (m[v + 4] << 16) + (m[v + 5] << 8) + m[v + 6], d >= 9e15 ? crypto.randomBytes(7).copy(m, v) : (w.push(d % 1e14), v += 7);
|
|
2922
2905
|
v = p / 7;
|
|
2923
2906
|
} else
|
|
2924
|
-
throw C = !1, Error(
|
|
2907
|
+
throw C = !1, Error(pe + "crypto unavailable");
|
|
2925
2908
|
if (!C)
|
|
2926
2909
|
for (; v < p; )
|
|
2927
2910
|
d = l(), d < 9e15 && (w[v++] = d % 1e14);
|
|
2928
|
-
for (p = w[--v], f %= U, p && f && (d =
|
|
2911
|
+
for (p = w[--v], f %= U, p && f && (d = ti[U - f], w[v] = xe(p / d) * d); w[v] === 0; w.pop(), v--) ;
|
|
2929
2912
|
if (v < 0)
|
|
2930
2913
|
w = [b = 0];
|
|
2931
2914
|
else {
|
|
@@ -2949,31 +2932,31 @@ function dn(i) {
|
|
|
2949
2932
|
return d.reverse();
|
|
2950
2933
|
}
|
|
2951
2934
|
return function(f, m, a, b, p) {
|
|
2952
|
-
var d, v, w, L, T, I, W, Z,
|
|
2953
|
-
for (
|
|
2954
|
-
|
|
2935
|
+
var d, v, w, L, T, I, W, Z, K = f.indexOf("."), ie = h, j = o;
|
|
2936
|
+
for (K >= 0 && (L = O, O = 0, f = f.replace(".", ""), Z = new y(m), I = Z.pow(f.length - K), O = L, Z.c = l(
|
|
2937
|
+
ze(Se(I.c), I.e, "0"),
|
|
2955
2938
|
10,
|
|
2956
2939
|
a,
|
|
2957
2940
|
s
|
|
2958
2941
|
), Z.e = Z.c.length), W = l(f, m, a, p ? (d = M, s) : (d = s, M)), w = L = W.length; W[--L] == 0; W.pop()) ;
|
|
2959
2942
|
if (!W[0]) return d.charAt(0);
|
|
2960
|
-
if (
|
|
2961
|
-
f = T ?
|
|
2943
|
+
if (K < 0 ? --w : (I.c = W, I.e = w, I.s = b, I = e(I, Z, ie, j, a), W = I.c, T = I.r, w = I.e), v = w + ie + 1, K = W[v], L = a / 2, T = T || v < 0 || W[v + 1] != null, T = j < 4 ? (K != null || T) && (j == 0 || j == (I.s < 0 ? 3 : 2)) : K > L || K == L && (j == 4 || T || j == 6 && W[v - 1] & 1 || j == (I.s < 0 ? 8 : 7)), v < 1 || !W[0])
|
|
2944
|
+
f = T ? ze(d.charAt(1), -ie, d.charAt(0)) : d.charAt(0);
|
|
2962
2945
|
else {
|
|
2963
2946
|
if (W.length = v, T)
|
|
2964
2947
|
for (--a; ++W[--v] > a; )
|
|
2965
2948
|
W[v] = 0, v || (++w, W = [1].concat(W));
|
|
2966
2949
|
for (L = W.length; !W[--L]; ) ;
|
|
2967
|
-
for (
|
|
2968
|
-
f =
|
|
2950
|
+
for (K = 0, f = ""; K <= L; f += d.charAt(W[K++])) ;
|
|
2951
|
+
f = ze(f, w, d.charAt(0));
|
|
2969
2952
|
}
|
|
2970
2953
|
return f;
|
|
2971
2954
|
};
|
|
2972
2955
|
}(), e = /* @__PURE__ */ function() {
|
|
2973
2956
|
function s(m, a, b) {
|
|
2974
|
-
var p, d, v, w, L = 0, T = m.length, I = a %
|
|
2957
|
+
var p, d, v, w, L = 0, T = m.length, I = a % Ve, W = a / Ve | 0;
|
|
2975
2958
|
for (m = m.slice(); T--; )
|
|
2976
|
-
v = m[T] %
|
|
2959
|
+
v = m[T] % Ve, w = m[T] / Ve | 0, p = W * v + w * I, d = I * v + p % Ve * Ve + L, L = (d / b | 0) + (p / Ve | 0) + W * w, m[T] = d % b;
|
|
2977
2960
|
return L && (m = [L].concat(m)), m;
|
|
2978
2961
|
}
|
|
2979
2962
|
function l(m, a, b, p) {
|
|
@@ -2994,53 +2977,53 @@ function dn(i) {
|
|
|
2994
2977
|
for (; !m[0] && m.length > 1; m.splice(0, 1)) ;
|
|
2995
2978
|
}
|
|
2996
2979
|
return function(m, a, b, p, d) {
|
|
2997
|
-
var v, w, L, T, I, W, Z,
|
|
2998
|
-
if (!
|
|
2980
|
+
var v, w, L, T, I, W, Z, K, ie, j, V, ae, Ge, et, tt, ye, Oe, de = m.s == a.s ? 1 : -1, fe = m.c, J = a.c;
|
|
2981
|
+
if (!fe || !fe[0] || !J || !J[0])
|
|
2999
2982
|
return new y(
|
|
3000
2983
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
3001
|
-
!m.s || !a.s || (
|
|
2984
|
+
!m.s || !a.s || (fe ? J && fe[0] == J[0] : !J) ? NaN : (
|
|
3002
2985
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
3003
|
-
|
|
2986
|
+
fe && fe[0] == 0 || !J ? de * 0 : de / 0
|
|
3004
2987
|
)
|
|
3005
2988
|
);
|
|
3006
|
-
for (
|
|
3007
|
-
if (
|
|
3008
|
-
|
|
2989
|
+
for (K = new y(de), ie = K.c = [], w = m.e - a.e, de = b + w + 1, d || (d = Ce, w = Te(m.e / U) - Te(a.e / U), de = de / U | 0), L = 0; J[L] == (fe[L] || 0); L++) ;
|
|
2990
|
+
if (J[L] > (fe[L] || 0) && w--, de < 0)
|
|
2991
|
+
ie.push(1), T = !0;
|
|
3009
2992
|
else {
|
|
3010
|
-
for (
|
|
3011
|
-
|
|
2993
|
+
for (et = fe.length, ye = J.length, L = 0, de += 2, I = xe(d / (J[0] + 1)), I > 1 && (J = s(J, I, d), fe = s(fe, I, d), ye = J.length, et = fe.length), Ge = ye, j = fe.slice(0, ye), V = j.length; V < ye; j[V++] = 0) ;
|
|
2994
|
+
Oe = J.slice(), Oe = [0].concat(Oe), tt = J[0], J[1] >= d / 2 && tt++;
|
|
3012
2995
|
do {
|
|
3013
|
-
if (I = 0, v = l(
|
|
3014
|
-
if (
|
|
3015
|
-
for (I >= d && (I = d - 1), W = s(
|
|
3016
|
-
I--, f(W, ye < Z ?
|
|
2996
|
+
if (I = 0, v = l(J, j, ye, V), v < 0) {
|
|
2997
|
+
if (ae = j[0], ye != V && (ae = ae * d + (j[1] || 0)), I = xe(ae / tt), I > 1)
|
|
2998
|
+
for (I >= d && (I = d - 1), W = s(J, I, d), Z = W.length, V = j.length; l(W, j, Z, V) == 1; )
|
|
2999
|
+
I--, f(W, ye < Z ? Oe : J, Z, d), Z = W.length, v = 1;
|
|
3017
3000
|
else
|
|
3018
|
-
I == 0 && (v = I = 1), W =
|
|
3001
|
+
I == 0 && (v = I = 1), W = J.slice(), Z = W.length;
|
|
3019
3002
|
if (Z < V && (W = [0].concat(W)), f(j, W, V, d), V = j.length, v == -1)
|
|
3020
|
-
for (; l(
|
|
3021
|
-
I++, f(j, ye < V ?
|
|
3003
|
+
for (; l(J, j, ye, V) < 1; )
|
|
3004
|
+
I++, f(j, ye < V ? Oe : J, V, d), V = j.length;
|
|
3022
3005
|
} else v === 0 && (I++, j = [0]);
|
|
3023
|
-
|
|
3024
|
-
} while ((
|
|
3025
|
-
T = j[0] != null,
|
|
3006
|
+
ie[L++] = I, j[0] ? j[V++] = fe[Ge] || 0 : (j = [fe[Ge]], V = 1);
|
|
3007
|
+
} while ((Ge++ < et || j[0] != null) && de--);
|
|
3008
|
+
T = j[0] != null, ie[0] || ie.splice(0, 1);
|
|
3026
3009
|
}
|
|
3027
|
-
if (d ==
|
|
3028
|
-
for (L = 1, de =
|
|
3029
|
-
z(
|
|
3010
|
+
if (d == Ce) {
|
|
3011
|
+
for (L = 1, de = ie[0]; de >= 10; de /= 10, L++) ;
|
|
3012
|
+
z(K, b + (K.e = L + w * U - 1) + 1, p, T);
|
|
3030
3013
|
} else
|
|
3031
|
-
|
|
3032
|
-
return
|
|
3014
|
+
K.e = w, K.r = +T;
|
|
3015
|
+
return K;
|
|
3033
3016
|
};
|
|
3034
3017
|
}();
|
|
3035
3018
|
function N(s, l, f, m) {
|
|
3036
3019
|
var a, b, p, d, v;
|
|
3037
3020
|
if (f == null ? f = o : re(f, 0, 8), !s.c) return s.toString();
|
|
3038
3021
|
if (a = s.c[0], p = s.e, l == null)
|
|
3039
|
-
v = Se(s.c), v = m == 1 || m == 2 && (p <= g || p >= c) ?
|
|
3022
|
+
v = Se(s.c), v = m == 1 || m == 2 && (p <= g || p >= c) ? kt(v, p) : ze(v, p, "0");
|
|
3040
3023
|
else if (s = z(new y(s), l, f), b = s.e, v = Se(s.c), d = v.length, m == 1 || m == 2 && (l <= b || b <= g)) {
|
|
3041
3024
|
for (; d < l; v += "0", d++) ;
|
|
3042
|
-
v =
|
|
3043
|
-
} else if (l -= p, v =
|
|
3025
|
+
v = kt(v, b);
|
|
3026
|
+
} else if (l -= p, v = ze(v, b, "0"), b + 1 > d) {
|
|
3044
3027
|
if (--l > 0) for (v += "."; l--; v += "0") ;
|
|
3045
3028
|
} else if (l += b - d, l > 0)
|
|
3046
3029
|
for (b + 1 == d && (v += "."); l--; v += "0") ;
|
|
@@ -3048,7 +3031,7 @@ function dn(i) {
|
|
|
3048
3031
|
}
|
|
3049
3032
|
function D(s, l) {
|
|
3050
3033
|
for (var f, m, a = 1, b = new y(s[0]); a < s.length; a++)
|
|
3051
|
-
m = new y(s[a]), (!m.s || (f =
|
|
3034
|
+
m = new y(s[a]), (!m.s || (f = nt(b, m)) === l || f === 0 && b.s === l) && (b = m);
|
|
3052
3035
|
return b;
|
|
3053
3036
|
}
|
|
3054
3037
|
function q(s, l, f) {
|
|
@@ -3068,20 +3051,20 @@ function dn(i) {
|
|
|
3068
3051
|
}), v && (w = v, L = L.replace(l, "$1").replace(f, "0.$1")), p != L))
|
|
3069
3052
|
return new y(L, w);
|
|
3070
3053
|
if (y.DEBUG)
|
|
3071
|
-
throw Error(
|
|
3054
|
+
throw Error(pe + "Not a" + (v ? " base " + v : "") + " number: " + p);
|
|
3072
3055
|
b.s = null;
|
|
3073
3056
|
}
|
|
3074
3057
|
b.c = b.e = null;
|
|
3075
3058
|
};
|
|
3076
3059
|
}();
|
|
3077
3060
|
function z(s, l, f, m) {
|
|
3078
|
-
var a, b, p, d, v, w, L, T = s.c, I =
|
|
3061
|
+
var a, b, p, d, v, w, L, T = s.c, I = ti;
|
|
3079
3062
|
if (T) {
|
|
3080
3063
|
e: {
|
|
3081
3064
|
for (a = 1, d = T[0]; d >= 10; d /= 10, a++) ;
|
|
3082
3065
|
if (b = l - a, b < 0)
|
|
3083
3066
|
b += U, p = l, v = T[w = 0], L = xe(v / I[a - p - 1] % 10);
|
|
3084
|
-
else if (w =
|
|
3067
|
+
else if (w = ei((b + 1) / U), w >= T.length)
|
|
3085
3068
|
if (m) {
|
|
3086
3069
|
for (; T.length <= w; T.push(0)) ;
|
|
3087
3070
|
v = L = 0, a = 1, b %= U, p = b - U + 1;
|
|
@@ -3102,10 +3085,10 @@ function dn(i) {
|
|
|
3102
3085
|
if (w == 0) {
|
|
3103
3086
|
for (b = 1, p = T[0]; p >= 10; p /= 10, b++) ;
|
|
3104
3087
|
for (p = T[0] += d, d = 1; p >= 10; p /= 10, d++) ;
|
|
3105
|
-
b != d && (s.e++, T[0] ==
|
|
3088
|
+
b != d && (s.e++, T[0] == Ce && (T[0] = 1));
|
|
3106
3089
|
break;
|
|
3107
3090
|
} else {
|
|
3108
|
-
if (T[w] += d, T[w] !=
|
|
3091
|
+
if (T[w] += d, T[w] != Ce) break;
|
|
3109
3092
|
T[w--] = 0, d = 1;
|
|
3110
3093
|
}
|
|
3111
3094
|
for (b = T.length; T[--b] === 0; T.pop()) ;
|
|
@@ -3116,17 +3099,17 @@ function dn(i) {
|
|
|
3116
3099
|
}
|
|
3117
3100
|
function B(s) {
|
|
3118
3101
|
var l, f = s.e;
|
|
3119
|
-
return f === null ? s.toString() : (l = Se(s.c), l = f <= g || f >= c ?
|
|
3102
|
+
return f === null ? s.toString() : (l = Se(s.c), l = f <= g || f >= c ? kt(l, f) : ze(l, f, "0"), s.s < 0 ? "-" + l : l);
|
|
3120
3103
|
}
|
|
3121
3104
|
return r.absoluteValue = r.abs = function() {
|
|
3122
3105
|
var s = new y(this);
|
|
3123
3106
|
return s.s < 0 && (s.s = 1), s;
|
|
3124
3107
|
}, r.comparedTo = function(s, l) {
|
|
3125
|
-
return
|
|
3108
|
+
return nt(this, new y(s, l));
|
|
3126
3109
|
}, r.decimalPlaces = r.dp = function(s, l) {
|
|
3127
3110
|
var f, m, a, b = this;
|
|
3128
3111
|
if (s != null)
|
|
3129
|
-
return re(s, 0,
|
|
3112
|
+
return re(s, 0, we), l == null ? l = o : re(l, 0, 8), z(new y(b), s + b.e + 1, l);
|
|
3130
3113
|
if (!(f = b.c)) return null;
|
|
3131
3114
|
if (m = ((a = f.length - 1) - Te(this.e / U)) * U, a = f[a]) for (; a % 10 == 0; a /= 10, m--) ;
|
|
3132
3115
|
return m < 0 && (m = 0), m;
|
|
@@ -3137,18 +3120,18 @@ function dn(i) {
|
|
|
3137
3120
|
}, r.exponentiatedBy = r.pow = function(s, l) {
|
|
3138
3121
|
var f, m, a, b, p, d, v, w, L, T = this;
|
|
3139
3122
|
if (s = new y(s), s.c && !s.isInteger())
|
|
3140
|
-
throw Error(
|
|
3123
|
+
throw Error(pe + "Exponent not an integer: " + B(s));
|
|
3141
3124
|
if (l != null && (l = new y(l)), d = s.e > 14, !T.c || !T.c[0] || T.c[0] == 1 && !T.e && T.c.length == 1 || !s.c || !s.c[0])
|
|
3142
|
-
return L = new y(Math.pow(+B(T), d ? s.s * (2 -
|
|
3125
|
+
return L = new y(Math.pow(+B(T), d ? s.s * (2 - Nt(s)) : +B(s))), l ? L.mod(l) : L;
|
|
3143
3126
|
if (v = s.s < 0, l) {
|
|
3144
3127
|
if (l.c ? !l.c[0] : !l.s) return new y(NaN);
|
|
3145
3128
|
m = !v && T.isInteger() && l.isInteger(), m && (T = T.mod(l));
|
|
3146
3129
|
} else {
|
|
3147
3130
|
if (s.e > 9 && (T.e > 0 || T.e < -1 || (T.e == 0 ? T.c[0] > 1 || d && T.c[1] >= 24e7 : T.c[0] < 8e13 || d && T.c[0] <= 9999975e7)))
|
|
3148
|
-
return b = T.s < 0 &&
|
|
3149
|
-
O && (b =
|
|
3131
|
+
return b = T.s < 0 && Nt(s) ? -0 : 0, T.e > -1 && (b = 1 / b), new y(v ? 1 / b : b);
|
|
3132
|
+
O && (b = ei(O / U + 2));
|
|
3150
3133
|
}
|
|
3151
|
-
for (d ? (f = new y(0.5), v && (s.s = 1), w =
|
|
3134
|
+
for (d ? (f = new y(0.5), v && (s.s = 1), w = Nt(s)) : (a = Math.abs(+B(s)), w = a % 2), L = new y(u); ; ) {
|
|
3152
3135
|
if (w) {
|
|
3153
3136
|
if (L = L.times(T), !L.c) break;
|
|
3154
3137
|
b ? L.c.length > b && (L.c.length = b) : m && (L = L.mod(l));
|
|
@@ -3157,7 +3140,7 @@ function dn(i) {
|
|
|
3157
3140
|
if (a = xe(a / 2), a === 0) break;
|
|
3158
3141
|
w = a % 2;
|
|
3159
3142
|
} else if (s = s.times(f), z(s, s.e + 1, 1), s.e > 14)
|
|
3160
|
-
w =
|
|
3143
|
+
w = Nt(s);
|
|
3161
3144
|
else {
|
|
3162
3145
|
if (a = +B(s), a === 0) break;
|
|
3163
3146
|
w = a % 2;
|
|
@@ -3169,19 +3152,19 @@ function dn(i) {
|
|
|
3169
3152
|
var l = new y(this);
|
|
3170
3153
|
return s == null ? s = o : re(s, 0, 8), z(l, l.e + 1, s);
|
|
3171
3154
|
}, r.isEqualTo = r.eq = function(s, l) {
|
|
3172
|
-
return
|
|
3155
|
+
return nt(this, new y(s, l)) === 0;
|
|
3173
3156
|
}, r.isFinite = function() {
|
|
3174
3157
|
return !!this.c;
|
|
3175
3158
|
}, r.isGreaterThan = r.gt = function(s, l) {
|
|
3176
|
-
return
|
|
3159
|
+
return nt(this, new y(s, l)) > 0;
|
|
3177
3160
|
}, r.isGreaterThanOrEqualTo = r.gte = function(s, l) {
|
|
3178
|
-
return (l =
|
|
3161
|
+
return (l = nt(this, new y(s, l))) === 1 || l === 0;
|
|
3179
3162
|
}, r.isInteger = function() {
|
|
3180
3163
|
return !!this.c && Te(this.e / U) > this.c.length - 2;
|
|
3181
3164
|
}, r.isLessThan = r.lt = function(s, l) {
|
|
3182
|
-
return
|
|
3165
|
+
return nt(this, new y(s, l)) < 0;
|
|
3183
3166
|
}, r.isLessThanOrEqualTo = r.lte = function(s, l) {
|
|
3184
|
-
return (l =
|
|
3167
|
+
return (l = nt(this, new y(s, l))) === -1 || l === 0;
|
|
3185
3168
|
}, r.isNaN = function() {
|
|
3186
3169
|
return !this.s;
|
|
3187
3170
|
}, r.isNegative = function() {
|
|
@@ -3214,10 +3197,10 @@ function dn(i) {
|
|
|
3214
3197
|
break;
|
|
3215
3198
|
}
|
|
3216
3199
|
if (b && (a = L, L = T, T = a, s.s = -s.s), l = (m = T.length) - (f = L.length), l > 0) for (; l--; L[f++] = 0) ;
|
|
3217
|
-
for (l =
|
|
3200
|
+
for (l = Ce - 1; m > d; ) {
|
|
3218
3201
|
if (L[--m] < T[m]) {
|
|
3219
3202
|
for (f = m; f && !L[--f]; L[f] = l) ;
|
|
3220
|
-
--L[f], L[m] +=
|
|
3203
|
+
--L[f], L[m] += Ce;
|
|
3221
3204
|
}
|
|
3222
3205
|
L[m] -= T[m];
|
|
3223
3206
|
}
|
|
@@ -3227,13 +3210,13 @@ function dn(i) {
|
|
|
3227
3210
|
var f, m, a = this;
|
|
3228
3211
|
return s = new y(s, l), !a.c || !s.s || s.c && !s.c[0] ? new y(NaN) : !s.c || a.c && !a.c[0] ? new y(a) : (R == 9 ? (m = s.s, s.s = 1, f = e(a, s, 0, 3), s.s = m, f.s *= m) : f = e(a, s, 0, R), s = a.minus(f.times(s)), !s.c[0] && R == 1 && (s.s = a.s), s);
|
|
3229
3212
|
}, r.multipliedBy = r.times = function(s, l) {
|
|
3230
|
-
var f, m, a, b, p, d, v, w, L, T, I, W, Z,
|
|
3231
|
-
if (!V || !
|
|
3232
|
-
return !j.s || !s.s || V && !V[0] && !
|
|
3233
|
-
for (m = Te(j.e / U) + Te(s.e / U), s.s *= j.s, v = V.length, T =
|
|
3234
|
-
for (
|
|
3235
|
-
for (f = 0, I =
|
|
3236
|
-
w = V[--p] %
|
|
3213
|
+
var f, m, a, b, p, d, v, w, L, T, I, W, Z, K, ie, j = this, V = j.c, ae = (s = new y(s, l)).c;
|
|
3214
|
+
if (!V || !ae || !V[0] || !ae[0])
|
|
3215
|
+
return !j.s || !s.s || V && !V[0] && !ae || ae && !ae[0] && !V ? s.c = s.e = s.s = null : (s.s *= j.s, !V || !ae ? s.c = s.e = null : (s.c = [0], s.e = 0)), s;
|
|
3216
|
+
for (m = Te(j.e / U) + Te(s.e / U), s.s *= j.s, v = V.length, T = ae.length, v < T && (Z = V, V = ae, ae = Z, a = v, v = T, T = a), a = v + T, Z = []; a--; Z.push(0)) ;
|
|
3217
|
+
for (K = Ce, ie = Ve, a = T; --a >= 0; ) {
|
|
3218
|
+
for (f = 0, I = ae[a] % ie, W = ae[a] / ie | 0, p = v, b = a + p; b > a; )
|
|
3219
|
+
w = V[--p] % ie, L = V[p] / ie | 0, d = W * w + L * I, w = I * w + d % ie * ie + Z[b] + f, f = (w / K | 0) + (d / ie | 0) + W * L, Z[b--] = w % K;
|
|
3237
3220
|
Z[b] = f;
|
|
3238
3221
|
}
|
|
3239
3222
|
return f ? ++m : Z.splice(0, 1), q(s, Z, m);
|
|
@@ -3255,12 +3238,12 @@ function dn(i) {
|
|
|
3255
3238
|
f.reverse();
|
|
3256
3239
|
}
|
|
3257
3240
|
for (a = d.length, l = v.length, a - l < 0 && (f = v, v = d, d = f, l = a), a = 0; l; )
|
|
3258
|
-
a = (d[--l] = d[l] + v[l] + a) /
|
|
3241
|
+
a = (d[--l] = d[l] + v[l] + a) / Ce | 0, d[l] = Ce === d[l] ? 0 : d[l] % Ce;
|
|
3259
3242
|
return a && (d = [a].concat(d), ++p), q(s, d, p);
|
|
3260
3243
|
}, r.precision = r.sd = function(s, l) {
|
|
3261
3244
|
var f, m, a, b = this;
|
|
3262
3245
|
if (s != null && s !== !!s)
|
|
3263
|
-
return re(s, 1,
|
|
3246
|
+
return re(s, 1, we), l == null ? l = o : re(l, 0, 8), z(new y(b), s, l);
|
|
3264
3247
|
if (!(f = b.c)) return null;
|
|
3265
3248
|
if (a = f.length - 1, m = a * U + 1, a = f[a]) {
|
|
3266
3249
|
for (; a % 10 == 0; a /= 10, m--) ;
|
|
@@ -3268,7 +3251,7 @@ function dn(i) {
|
|
|
3268
3251
|
}
|
|
3269
3252
|
return s && b.e + 1 > m && (m = b.e + 1), m;
|
|
3270
3253
|
}, r.shiftedBy = function(s) {
|
|
3271
|
-
return re(s, -9007199254740991,
|
|
3254
|
+
return re(s, -9007199254740991, zi), this.times("1e" + s);
|
|
3272
3255
|
}, r.squareRoot = r.sqrt = function() {
|
|
3273
3256
|
var s, l, f, m, a, b = this, p = b.c, d = b.s, v = b.e, w = h + 4, L = new y("0.5");
|
|
3274
3257
|
if (d !== 1 || !p || !p[0])
|
|
@@ -3289,15 +3272,15 @@ function dn(i) {
|
|
|
3289
3272
|
}
|
|
3290
3273
|
return z(f, f.e + h + 1, o, s);
|
|
3291
3274
|
}, r.toExponential = function(s, l) {
|
|
3292
|
-
return s != null && (re(s, 0,
|
|
3275
|
+
return s != null && (re(s, 0, we), s++), N(this, s, l, 1);
|
|
3293
3276
|
}, r.toFixed = function(s, l) {
|
|
3294
|
-
return s != null && (re(s, 0,
|
|
3277
|
+
return s != null && (re(s, 0, we), s = s + this.e + 1), N(this, s, l);
|
|
3295
3278
|
}, r.toFormat = function(s, l, f) {
|
|
3296
3279
|
var m, a = this;
|
|
3297
3280
|
if (f == null)
|
|
3298
3281
|
s != null && l && typeof l == "object" ? (f = l, l = null) : s && typeof s == "object" ? (f = s, s = l = null) : f = A;
|
|
3299
3282
|
else if (typeof f != "object")
|
|
3300
|
-
throw Error(
|
|
3283
|
+
throw Error(pe + "Argument not an object: " + f);
|
|
3301
3284
|
if (m = a.toFixed(s, l), a.c) {
|
|
3302
3285
|
var b, p = m.split("."), d = +f.groupSize, v = +f.secondaryGroupSize, w = f.groupSeparator || "", L = p[0], T = p[1], I = a.s < 0, W = I ? L.slice(1) : L, Z = W.length;
|
|
3303
3286
|
if (v && (b = d, d = v, v = b, Z -= b), d > 0 && Z > 0) {
|
|
@@ -3313,9 +3296,9 @@ function dn(i) {
|
|
|
3313
3296
|
}, r.toFraction = function(s) {
|
|
3314
3297
|
var l, f, m, a, b, p, d, v, w, L, T, I, W = this, Z = W.c;
|
|
3315
3298
|
if (s != null && (d = new y(s), !d.isInteger() && (d.c || d.s !== 1) || d.lt(u)))
|
|
3316
|
-
throw Error(
|
|
3299
|
+
throw Error(pe + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + B(d));
|
|
3317
3300
|
if (!Z) return new y(W);
|
|
3318
|
-
for (l = new y(u), w = f = new y(u), m = v = new y(u), I = Se(Z), b = l.e = I.length - W.e - 1, l.c[0] =
|
|
3301
|
+
for (l = new y(u), w = f = new y(u), m = v = new y(u), I = Se(Z), b = l.e = I.length - W.e - 1, l.c[0] = ti[(p = b % U) < 0 ? U + p : p], s = !s || d.comparedTo(l) > 0 ? b > 0 ? l : w : d, p = S, S = 1 / 0, d = new y(I), v.c[0] = 0; L = e(d, l, 0, 1), a = f.plus(L.times(m)), a.comparedTo(s) != 1; )
|
|
3319
3302
|
f = m, m = a, w = v.plus(L.times(a = w)), v = a, l = d.minus(L.times(a = l)), d = a;
|
|
3320
3303
|
return a = e(s.minus(f), m, 0, 1), v = v.plus(a.times(w)), f = f.plus(a.times(m)), v.s = w.s = W.s, b = b * 2, T = e(w, m, b, o).minus(W).abs().comparedTo(
|
|
3321
3304
|
e(v, f, b, o).minus(W).abs()
|
|
@@ -3323,10 +3306,10 @@ function dn(i) {
|
|
|
3323
3306
|
}, r.toNumber = function() {
|
|
3324
3307
|
return +B(this);
|
|
3325
3308
|
}, r.toPrecision = function(s, l) {
|
|
3326
|
-
return s != null && re(s, 1,
|
|
3309
|
+
return s != null && re(s, 1, we), N(this, s, l, 2);
|
|
3327
3310
|
}, r.toString = function(s) {
|
|
3328
3311
|
var l, f = this, m = f.s, a = f.e;
|
|
3329
|
-
return a === null ? m ? (l = "Infinity", m < 0 && (l = "-" + l)) : l = "NaN" : (s == null ? l = a <= g || a >= c ?
|
|
3312
|
+
return a === null ? m ? (l = "Infinity", m < 0 && (l = "-" + l)) : l = "NaN" : (s == null ? l = a <= g || a >= c ? kt(Se(f.c), a) : ze(Se(f.c), a, "0") : s === 10 && k ? (f = z(new y(f), h + a + 1, o), l = ze(Se(f.c), f.e, "0")) : (re(s, 2, M.length, "Base"), l = t(ze(Se(f.c), a, "0"), 10, s, m, !0)), m < 0 && f.c[0] && (l = "-" + l)), l;
|
|
3330
3313
|
}, r.valueOf = r.toJSON = function() {
|
|
3331
3314
|
return B(this);
|
|
3332
3315
|
}, r._isBigNumber = !0, r[Symbol.toStringTag] = "BigNumber", r[Symbol.for("nodejs.util.inspect.custom")] = r.valueOf, i != null && y.set(i), y;
|
|
@@ -3343,7 +3326,7 @@ function Se(i) {
|
|
|
3343
3326
|
for (r = u.length; u.charCodeAt(--r) === 48; ) ;
|
|
3344
3327
|
return u.slice(0, r + 1 || 1);
|
|
3345
3328
|
}
|
|
3346
|
-
function
|
|
3329
|
+
function nt(i, e) {
|
|
3347
3330
|
var t, n, r = i.c, u = e.c, h = i.s, o = e.s, g = i.e, c = e.e;
|
|
3348
3331
|
if (!h || !o) return null;
|
|
3349
3332
|
if (t = r && !r[0], n = u && !u[0], t || n) return t ? n ? 0 : -o : h;
|
|
@@ -3355,16 +3338,16 @@ function st(i, e) {
|
|
|
3355
3338
|
}
|
|
3356
3339
|
function re(i, e, t, n) {
|
|
3357
3340
|
if (i < e || i > t || i !== xe(i))
|
|
3358
|
-
throw Error(
|
|
3341
|
+
throw Error(pe + (n || "Argument") + (typeof i == "number" ? i < e || i > t ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(i));
|
|
3359
3342
|
}
|
|
3360
|
-
function
|
|
3343
|
+
function Nt(i) {
|
|
3361
3344
|
var e = i.c.length - 1;
|
|
3362
3345
|
return Te(i.e / U) == e && i.c[e] % 2 != 0;
|
|
3363
3346
|
}
|
|
3364
|
-
function
|
|
3347
|
+
function kt(i, e) {
|
|
3365
3348
|
return (i.length > 1 ? i.charAt(0) + "." + i.slice(1) : i) + (e < 0 ? "e" : "e+") + e;
|
|
3366
3349
|
}
|
|
3367
|
-
function
|
|
3350
|
+
function ze(i, e, t) {
|
|
3368
3351
|
var n, r;
|
|
3369
3352
|
if (e < 0) {
|
|
3370
3353
|
for (r = t + "."; ++e; r += t) ;
|
|
@@ -3375,18 +3358,18 @@ function De(i, e, t) {
|
|
|
3375
3358
|
} else e < n && (i = i.slice(0, e) + "." + i.slice(e));
|
|
3376
3359
|
return i;
|
|
3377
3360
|
}
|
|
3378
|
-
var We =
|
|
3361
|
+
var We = fn(), Jr = class {
|
|
3379
3362
|
constructor(i) {
|
|
3380
3363
|
P(this, "key");
|
|
3381
3364
|
P(this, "left", null);
|
|
3382
3365
|
P(this, "right", null);
|
|
3383
3366
|
this.key = i;
|
|
3384
3367
|
}
|
|
3385
|
-
},
|
|
3368
|
+
}, pt = class extends Jr {
|
|
3386
3369
|
constructor(i) {
|
|
3387
3370
|
super(i);
|
|
3388
3371
|
}
|
|
3389
|
-
},
|
|
3372
|
+
}, $r = class {
|
|
3390
3373
|
constructor() {
|
|
3391
3374
|
P(this, "size", 0);
|
|
3392
3375
|
P(this, "modificationCount", 0);
|
|
@@ -3484,13 +3467,13 @@ var We = dn(), is = class {
|
|
|
3484
3467
|
has: (i) => this.has(i)
|
|
3485
3468
|
};
|
|
3486
3469
|
}
|
|
3487
|
-
},
|
|
3470
|
+
}, Xi, Ji, Dt = class vt extends $r {
|
|
3488
3471
|
constructor(t, n) {
|
|
3489
3472
|
super();
|
|
3490
3473
|
P(this, "root", null);
|
|
3491
3474
|
P(this, "compare");
|
|
3492
3475
|
P(this, "validKey");
|
|
3493
|
-
P(this,
|
|
3476
|
+
P(this, Xi, "[object Set]");
|
|
3494
3477
|
this.compare = t ?? this.defaultCompare(), this.validKey = n ?? ((r) => r != null && r != null);
|
|
3495
3478
|
}
|
|
3496
3479
|
delete(t) {
|
|
@@ -3508,11 +3491,11 @@ var We = dn(), is = class {
|
|
|
3508
3491
|
}
|
|
3509
3492
|
add(t) {
|
|
3510
3493
|
const n = this.splay(t);
|
|
3511
|
-
return n != 0 && this.addNewRoot(new
|
|
3494
|
+
return n != 0 && this.addNewRoot(new pt(t), n), this;
|
|
3512
3495
|
}
|
|
3513
3496
|
addAndReturn(t) {
|
|
3514
3497
|
const n = this.splay(t);
|
|
3515
|
-
return n != 0 && this.addNewRoot(new
|
|
3498
|
+
return n != 0 && this.addNewRoot(new pt(t), n), this.root.key;
|
|
3516
3499
|
}
|
|
3517
3500
|
addAll(t) {
|
|
3518
3501
|
for (const n of t)
|
|
@@ -3560,7 +3543,7 @@ var We = dn(), is = class {
|
|
|
3560
3543
|
return r.key;
|
|
3561
3544
|
}
|
|
3562
3545
|
retainAll(t) {
|
|
3563
|
-
const n = new
|
|
3546
|
+
const n = new vt(this.compare, this.validKey), r = this.modificationCount;
|
|
3564
3547
|
for (const u of t) {
|
|
3565
3548
|
if (r != this.modificationCount)
|
|
3566
3549
|
throw "Concurrent modification during iteration.";
|
|
@@ -3572,13 +3555,13 @@ var We = dn(), is = class {
|
|
|
3572
3555
|
return !this.validKey(t) || this.splay(t) != 0 ? null : this.root.key;
|
|
3573
3556
|
}
|
|
3574
3557
|
intersection(t) {
|
|
3575
|
-
const n = new
|
|
3558
|
+
const n = new vt(this.compare, this.validKey);
|
|
3576
3559
|
for (const r of this)
|
|
3577
3560
|
t.has(r) && n.add(r);
|
|
3578
3561
|
return n;
|
|
3579
3562
|
}
|
|
3580
3563
|
difference(t) {
|
|
3581
|
-
const n = new
|
|
3564
|
+
const n = new vt(this.compare, this.validKey);
|
|
3582
3565
|
for (const r of this)
|
|
3583
3566
|
t.has(r) || n.add(r);
|
|
3584
3567
|
return n;
|
|
@@ -3588,7 +3571,7 @@ var We = dn(), is = class {
|
|
|
3588
3571
|
return n.addAll(t), n;
|
|
3589
3572
|
}
|
|
3590
3573
|
clone() {
|
|
3591
|
-
const t = new
|
|
3574
|
+
const t = new vt(this.compare, this.validKey);
|
|
3592
3575
|
return t.size = this.size, t.root = this.copyNode(this.root), t;
|
|
3593
3576
|
}
|
|
3594
3577
|
copyNode(t) {
|
|
@@ -3597,23 +3580,23 @@ var We = dn(), is = class {
|
|
|
3597
3580
|
let o, g;
|
|
3598
3581
|
do {
|
|
3599
3582
|
if (o = u.left, g = u.right, o != null) {
|
|
3600
|
-
const c = new
|
|
3583
|
+
const c = new pt(o.key);
|
|
3601
3584
|
h.left = c, n(o, c);
|
|
3602
3585
|
}
|
|
3603
3586
|
if (g != null) {
|
|
3604
|
-
const c = new
|
|
3587
|
+
const c = new pt(g.key);
|
|
3605
3588
|
h.right = c, u = g, h = c;
|
|
3606
3589
|
}
|
|
3607
3590
|
} while (g != null);
|
|
3608
3591
|
}
|
|
3609
|
-
const r = new
|
|
3592
|
+
const r = new pt(t.key);
|
|
3610
3593
|
return n(t, r), r;
|
|
3611
3594
|
}
|
|
3612
3595
|
toSet() {
|
|
3613
3596
|
return this.clone();
|
|
3614
3597
|
}
|
|
3615
3598
|
entries() {
|
|
3616
|
-
return new
|
|
3599
|
+
return new ts(this.wrap());
|
|
3617
3600
|
}
|
|
3618
3601
|
keys() {
|
|
3619
3602
|
return this[Symbol.iterator]();
|
|
@@ -3621,10 +3604,10 @@ var We = dn(), is = class {
|
|
|
3621
3604
|
values() {
|
|
3622
3605
|
return this[Symbol.iterator]();
|
|
3623
3606
|
}
|
|
3624
|
-
[(
|
|
3625
|
-
return new
|
|
3607
|
+
[(Ji = Symbol.iterator, Xi = Symbol.toStringTag, Ji)]() {
|
|
3608
|
+
return new es(this.wrap());
|
|
3626
3609
|
}
|
|
3627
|
-
},
|
|
3610
|
+
}, cn = class {
|
|
3628
3611
|
constructor(i) {
|
|
3629
3612
|
P(this, "tree");
|
|
3630
3613
|
P(this, "path", new Array());
|
|
@@ -3673,65 +3656,65 @@ var We = dn(), is = class {
|
|
|
3673
3656
|
i = this.path.pop();
|
|
3674
3657
|
return this.path.length > 0;
|
|
3675
3658
|
}
|
|
3676
|
-
},
|
|
3659
|
+
}, es = class extends cn {
|
|
3677
3660
|
getValue(i) {
|
|
3678
3661
|
return i.key;
|
|
3679
3662
|
}
|
|
3680
|
-
},
|
|
3663
|
+
}, ts = class extends cn {
|
|
3681
3664
|
getValue(i) {
|
|
3682
3665
|
return [i.key, i.key];
|
|
3683
3666
|
}
|
|
3684
|
-
},
|
|
3685
|
-
const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) :
|
|
3667
|
+
}, hn = (i) => () => i, oi = (i) => {
|
|
3668
|
+
const e = i ? (t, n) => n.minus(t).abs().isLessThanOrEqualTo(i) : hn(!1);
|
|
3686
3669
|
return (t, n) => e(t, n) ? 0 : t.comparedTo(n);
|
|
3687
3670
|
};
|
|
3688
|
-
function
|
|
3671
|
+
function is(i) {
|
|
3689
3672
|
const e = i ? (t, n, r, u, h) => t.exponentiatedBy(2).isLessThanOrEqualTo(
|
|
3690
3673
|
u.minus(n).exponentiatedBy(2).plus(h.minus(r).exponentiatedBy(2)).times(i)
|
|
3691
|
-
) :
|
|
3674
|
+
) : hn(!1);
|
|
3692
3675
|
return (t, n, r) => {
|
|
3693
3676
|
const u = t.x, h = t.y, o = r.x, g = r.y, c = h.minus(g).times(n.x.minus(o)).minus(u.minus(o).times(n.y.minus(g)));
|
|
3694
3677
|
return e(c, u, h, o, g) ? 0 : c.comparedTo(0);
|
|
3695
3678
|
};
|
|
3696
3679
|
}
|
|
3697
|
-
var
|
|
3680
|
+
var ns = (i) => i, rs = (i) => {
|
|
3698
3681
|
if (i) {
|
|
3699
|
-
const e = new
|
|
3682
|
+
const e = new Dt(oi(i)), t = new Dt(oi(i)), n = (u, h) => h.addAndReturn(u), r = (u) => ({
|
|
3700
3683
|
x: n(u.x, e),
|
|
3701
3684
|
y: n(u.y, t)
|
|
3702
3685
|
});
|
|
3703
3686
|
return r({ x: new We(0), y: new We(0) }), r;
|
|
3704
3687
|
}
|
|
3705
|
-
return
|
|
3706
|
-
},
|
|
3688
|
+
return ns;
|
|
3689
|
+
}, li = (i) => ({
|
|
3707
3690
|
set: (e) => {
|
|
3708
|
-
|
|
3691
|
+
Fe = li(e);
|
|
3709
3692
|
},
|
|
3710
|
-
reset: () =>
|
|
3711
|
-
compare:
|
|
3712
|
-
snap:
|
|
3713
|
-
orient:
|
|
3714
|
-
}),
|
|
3693
|
+
reset: () => li(i),
|
|
3694
|
+
compare: oi(i),
|
|
3695
|
+
snap: rs(i),
|
|
3696
|
+
orient: is(i)
|
|
3697
|
+
}), Fe = li(), yt = (i, e) => i.ll.x.isLessThanOrEqualTo(e.x) && e.x.isLessThanOrEqualTo(i.ur.x) && i.ll.y.isLessThanOrEqualTo(e.y) && e.y.isLessThanOrEqualTo(i.ur.y), ui = (i, e) => {
|
|
3715
3698
|
if (e.ur.x.isLessThan(i.ll.x) || i.ur.x.isLessThan(e.ll.x) || e.ur.y.isLessThan(i.ll.y) || i.ur.y.isLessThan(e.ll.y))
|
|
3716
3699
|
return null;
|
|
3717
3700
|
const t = i.ll.x.isLessThan(e.ll.x) ? e.ll.x : i.ll.x, n = i.ur.x.isLessThan(e.ur.x) ? i.ur.x : e.ur.x, r = i.ll.y.isLessThan(e.ll.y) ? e.ll.y : i.ll.y, u = i.ur.y.isLessThan(e.ur.y) ? i.ur.y : e.ur.y;
|
|
3718
3701
|
return { ll: { x: t, y: r }, ur: { x: n, y: u } };
|
|
3719
|
-
},
|
|
3702
|
+
}, At = (i, e) => i.x.times(e.y).minus(i.y.times(e.x)), dn = (i, e) => i.x.times(e.x).plus(i.y.times(e.y)), zt = (i) => dn(i, i).sqrt(), ss = (i, e, t) => {
|
|
3720
3703
|
const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
|
|
3721
|
-
return
|
|
3722
|
-
},
|
|
3704
|
+
return At(r, n).div(zt(r)).div(zt(n));
|
|
3705
|
+
}, os = (i, e, t) => {
|
|
3723
3706
|
const n = { x: e.x.minus(i.x), y: e.y.minus(i.y) }, r = { x: t.x.minus(i.x), y: t.y.minus(i.y) };
|
|
3724
|
-
return
|
|
3725
|
-
},
|
|
3726
|
-
if (e.x.isZero()) return
|
|
3727
|
-
if (n.x.isZero()) return
|
|
3728
|
-
if (e.y.isZero()) return
|
|
3729
|
-
if (n.y.isZero()) return
|
|
3730
|
-
const r =
|
|
3707
|
+
return dn(r, n).div(zt(r)).div(zt(n));
|
|
3708
|
+
}, Ui = (i, e, t) => e.y.isZero() ? null : { x: i.x.plus(e.x.div(e.y).times(t.minus(i.y))), y: t }, qi = (i, e, t) => e.x.isZero() ? null : { x: t, y: i.y.plus(e.y.div(e.x).times(t.minus(i.x))) }, ls = (i, e, t, n) => {
|
|
3709
|
+
if (e.x.isZero()) return qi(t, n, i.x);
|
|
3710
|
+
if (n.x.isZero()) return qi(i, e, t.x);
|
|
3711
|
+
if (e.y.isZero()) return Ui(t, n, i.y);
|
|
3712
|
+
if (n.y.isZero()) return Ui(i, e, t.y);
|
|
3713
|
+
const r = At(e, n);
|
|
3731
3714
|
if (r.isZero()) return null;
|
|
3732
|
-
const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, h =
|
|
3715
|
+
const u = { x: t.x.minus(i.x), y: t.y.minus(i.y) }, h = At(u, e).div(r), o = At(u, n).div(r), g = i.x.plus(o.times(e.x)), c = t.x.plus(h.times(n.x)), E = i.y.plus(o.times(e.y)), S = t.y.plus(h.times(n.y)), C = g.plus(c).div(2), R = E.plus(S).div(2);
|
|
3733
3716
|
return { x: C, y: R };
|
|
3734
|
-
}, Ae = class
|
|
3717
|
+
}, Ae = class gn {
|
|
3735
3718
|
// Warning: 'point' input will be modified and re-used (for performance)
|
|
3736
3719
|
constructor(e, t) {
|
|
3737
3720
|
P(this, "point");
|
|
@@ -3743,8 +3726,8 @@ var ls = (i) => i, us = (i) => {
|
|
|
3743
3726
|
}
|
|
3744
3727
|
// for ordering sweep events in the sweep event queue
|
|
3745
3728
|
static compare(e, t) {
|
|
3746
|
-
const n =
|
|
3747
|
-
return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 :
|
|
3729
|
+
const n = gn.comparePoints(e.point, t.point);
|
|
3730
|
+
return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : qt.compare(e.segment, t.segment));
|
|
3748
3731
|
}
|
|
3749
3732
|
// for ordering points in sweep line order
|
|
3750
3733
|
static comparePoints(e, t) {
|
|
@@ -3795,8 +3778,8 @@ var ls = (i) => i, us = (i) => {
|
|
|
3795
3778
|
const t = /* @__PURE__ */ new Map(), n = (r) => {
|
|
3796
3779
|
const u = r.otherSE;
|
|
3797
3780
|
t.set(r, {
|
|
3798
|
-
sine:
|
|
3799
|
-
cosine:
|
|
3781
|
+
sine: ss(this.point, e.point, u.point),
|
|
3782
|
+
cosine: os(this.point, e.point, u.point)
|
|
3800
3783
|
});
|
|
3801
3784
|
};
|
|
3802
3785
|
return (r, u) => {
|
|
@@ -3805,7 +3788,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
3805
3788
|
return h.isGreaterThanOrEqualTo(0) && g.isGreaterThanOrEqualTo(0) ? o.isLessThan(c) ? 1 : o.isGreaterThan(c) ? -1 : 0 : h.isLessThan(0) && g.isLessThan(0) ? o.isLessThan(c) ? -1 : o.isGreaterThan(c) ? 1 : 0 : g.isLessThan(h) ? -1 : g.isGreaterThan(h) ? 1 : 0;
|
|
3806
3789
|
};
|
|
3807
3790
|
}
|
|
3808
|
-
},
|
|
3791
|
+
}, us = class ai {
|
|
3809
3792
|
constructor(e) {
|
|
3810
3793
|
P(this, "events");
|
|
3811
3794
|
P(this, "poly");
|
|
@@ -3846,7 +3829,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
3846
3829
|
}
|
|
3847
3830
|
if (R !== null) {
|
|
3848
3831
|
const A = S.splice(R)[0], M = c.splice(A.index);
|
|
3849
|
-
M.unshift(M[0].otherSE), t.push(new
|
|
3832
|
+
M.unshift(M[0].otherSE), t.push(new ai(M.reverse()));
|
|
3850
3833
|
continue;
|
|
3851
3834
|
}
|
|
3852
3835
|
S.push({
|
|
@@ -3857,7 +3840,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
3857
3840
|
g = C.sort(O)[0].otherSE;
|
|
3858
3841
|
break;
|
|
3859
3842
|
}
|
|
3860
|
-
t.push(new
|
|
3843
|
+
t.push(new ai(c));
|
|
3861
3844
|
}
|
|
3862
3845
|
return t;
|
|
3863
3846
|
}
|
|
@@ -3866,11 +3849,11 @@ var ls = (i) => i, us = (i) => {
|
|
|
3866
3849
|
const t = [e];
|
|
3867
3850
|
for (let c = 1, E = this.events.length - 1; c < E; c++) {
|
|
3868
3851
|
const S = this.events[c].point, C = this.events[c + 1].point;
|
|
3869
|
-
|
|
3852
|
+
Fe.orient(S, e, C) !== 0 && (t.push(S), e = S);
|
|
3870
3853
|
}
|
|
3871
3854
|
if (t.length === 1) return null;
|
|
3872
3855
|
const n = t[0], r = t[1];
|
|
3873
|
-
|
|
3856
|
+
Fe.orient(n, e, r) === 0 && t.shift(), t.push(t[0]);
|
|
3874
3857
|
const u = this.isExteriorRing() ? 1 : -1, h = this.isExteriorRing() ? 0 : t.length - 1, o = this.isExteriorRing() ? t.length : -1, g = [];
|
|
3875
3858
|
for (let c = h; c != o; c += u)
|
|
3876
3859
|
g.push([t[c].x.toNumber(), t[c].y.toNumber()]);
|
|
@@ -3903,7 +3886,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
3903
3886
|
t = n.prevInResult(), n = t ? t.prevInResult() : null;
|
|
3904
3887
|
}
|
|
3905
3888
|
}
|
|
3906
|
-
},
|
|
3889
|
+
}, Fi = class {
|
|
3907
3890
|
constructor(i) {
|
|
3908
3891
|
P(this, "exteriorRing");
|
|
3909
3892
|
P(this, "interiorRings");
|
|
@@ -3922,7 +3905,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
3922
3905
|
}
|
|
3923
3906
|
return e;
|
|
3924
3907
|
}
|
|
3925
|
-
},
|
|
3908
|
+
}, as = class {
|
|
3926
3909
|
constructor(i) {
|
|
3927
3910
|
P(this, "rings");
|
|
3928
3911
|
P(this, "polys");
|
|
@@ -3942,20 +3925,20 @@ var ls = (i) => i, us = (i) => {
|
|
|
3942
3925
|
for (let n = 0, r = i.length; n < r; n++) {
|
|
3943
3926
|
const u = i[n];
|
|
3944
3927
|
if (!u.poly)
|
|
3945
|
-
if (u.isExteriorRing()) e.push(new
|
|
3928
|
+
if (u.isExteriorRing()) e.push(new Fi(u));
|
|
3946
3929
|
else {
|
|
3947
3930
|
const h = u.enclosingRing();
|
|
3948
|
-
h != null && h.poly || e.push(new
|
|
3931
|
+
h != null && h.poly || e.push(new Fi(h)), (t = h == null ? void 0 : h.poly) == null || t.addInterior(u);
|
|
3949
3932
|
}
|
|
3950
3933
|
}
|
|
3951
3934
|
return e;
|
|
3952
3935
|
}
|
|
3953
|
-
},
|
|
3954
|
-
constructor(i, e =
|
|
3936
|
+
}, fs = class {
|
|
3937
|
+
constructor(i, e = qt.compare) {
|
|
3955
3938
|
P(this, "queue");
|
|
3956
3939
|
P(this, "tree");
|
|
3957
3940
|
P(this, "segments");
|
|
3958
|
-
this.queue = i, this.tree = new
|
|
3941
|
+
this.queue = i, this.tree = new Dt(e), this.segments = [];
|
|
3959
3942
|
}
|
|
3960
3943
|
process(i) {
|
|
3961
3944
|
const e = i.segment, t = [];
|
|
@@ -4028,35 +4011,35 @@ var ls = (i) => i, us = (i) => {
|
|
|
4028
4011
|
const n = i.split(e);
|
|
4029
4012
|
return n.push(t), i.consumedBy === void 0 && this.tree.add(i), n;
|
|
4030
4013
|
}
|
|
4031
|
-
},
|
|
4014
|
+
}, cs = class {
|
|
4032
4015
|
constructor() {
|
|
4033
4016
|
P(this, "type");
|
|
4034
4017
|
P(this, "numMultiPolys");
|
|
4035
4018
|
}
|
|
4036
4019
|
run(i, e, t) {
|
|
4037
|
-
|
|
4038
|
-
const n = [new
|
|
4020
|
+
bt.type = i;
|
|
4021
|
+
const n = [new Zi(e, !0)];
|
|
4039
4022
|
for (let c = 0, E = t.length; c < E; c++)
|
|
4040
|
-
n.push(new
|
|
4041
|
-
if (
|
|
4023
|
+
n.push(new Zi(t[c], !1));
|
|
4024
|
+
if (bt.numMultiPolys = n.length, bt.type === "difference") {
|
|
4042
4025
|
const c = n[0];
|
|
4043
4026
|
let E = 1;
|
|
4044
4027
|
for (; E < n.length; )
|
|
4045
|
-
|
|
4028
|
+
ui(n[E].bbox, c.bbox) !== null ? E++ : n.splice(E, 1);
|
|
4046
4029
|
}
|
|
4047
|
-
if (
|
|
4030
|
+
if (bt.type === "intersection")
|
|
4048
4031
|
for (let c = 0, E = n.length; c < E; c++) {
|
|
4049
4032
|
const S = n[c];
|
|
4050
4033
|
for (let C = c + 1, R = n.length; C < R; C++)
|
|
4051
|
-
if (
|
|
4034
|
+
if (ui(S.bbox, n[C].bbox) === null) return [];
|
|
4052
4035
|
}
|
|
4053
|
-
const r = new
|
|
4036
|
+
const r = new Dt(Ae.compare);
|
|
4054
4037
|
for (let c = 0, E = n.length; c < E; c++) {
|
|
4055
4038
|
const S = n[c].getSweepEvents();
|
|
4056
4039
|
for (let C = 0, R = S.length; C < R; C++)
|
|
4057
4040
|
r.add(S[C]);
|
|
4058
4041
|
}
|
|
4059
|
-
const u = new
|
|
4042
|
+
const u = new fs(r);
|
|
4060
4043
|
let h = null;
|
|
4061
4044
|
for (r.size != 0 && (h = r.first(), r.delete(h)); h; ) {
|
|
4062
4045
|
const c = u.process(h);
|
|
@@ -4066,11 +4049,11 @@ var ls = (i) => i, us = (i) => {
|
|
|
4066
4049
|
}
|
|
4067
4050
|
r.size != 0 ? (h = r.first(), r.delete(h)) : h = null;
|
|
4068
4051
|
}
|
|
4069
|
-
|
|
4070
|
-
const o =
|
|
4071
|
-
return new
|
|
4052
|
+
Fe.reset();
|
|
4053
|
+
const o = us.factory(u.segments);
|
|
4054
|
+
return new as(o).getGeom();
|
|
4072
4055
|
}
|
|
4073
|
-
},
|
|
4056
|
+
}, bt = new cs(), Ut = bt, hs = 0, qt = class Bt {
|
|
4074
4057
|
/* Warning: a reference to ringWindings input will be stored,
|
|
4075
4058
|
* and possibly will be later modified */
|
|
4076
4059
|
constructor(e, t, n, r) {
|
|
@@ -4086,7 +4069,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4086
4069
|
P(this, "_beforeState");
|
|
4087
4070
|
P(this, "_afterState");
|
|
4088
4071
|
P(this, "_isInResult");
|
|
4089
|
-
this.id = ++
|
|
4072
|
+
this.id = ++hs, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
|
|
4090
4073
|
}
|
|
4091
4074
|
/* This compare() function is for ordering segments in the sweep
|
|
4092
4075
|
* line tree, and does so according to the following criteria:
|
|
@@ -4153,7 +4136,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4153
4136
|
`Tried to create degenerate segment at [${e.x}, ${e.y}]`
|
|
4154
4137
|
);
|
|
4155
4138
|
const g = new Ae(r, !0), c = new Ae(u, !1);
|
|
4156
|
-
return new
|
|
4139
|
+
return new Bt(g, c, [n], [h]);
|
|
4157
4140
|
}
|
|
4158
4141
|
/* When a segment is split, the rightSE is replaced with a new sweep event */
|
|
4159
4142
|
replaceRightSE(e) {
|
|
@@ -4190,7 +4173,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4190
4173
|
* -1: point lies below the segment (to the right of vertical)
|
|
4191
4174
|
*/
|
|
4192
4175
|
comparePoint(e) {
|
|
4193
|
-
return
|
|
4176
|
+
return Fe.orient(this.leftSE.point, e, this.rightSE.point);
|
|
4194
4177
|
}
|
|
4195
4178
|
/**
|
|
4196
4179
|
* Given another segment, returns the first non-trivial intersection
|
|
@@ -4208,9 +4191,9 @@ var ls = (i) => i, us = (i) => {
|
|
|
4208
4191
|
* Else, return null.
|
|
4209
4192
|
*/
|
|
4210
4193
|
getIntersection(e) {
|
|
4211
|
-
const t = this.bbox(), n = e.bbox(), r =
|
|
4194
|
+
const t = this.bbox(), n = e.bbox(), r = ui(t, n);
|
|
4212
4195
|
if (r === null) return null;
|
|
4213
|
-
const u = this.leftSE.point, h = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, c =
|
|
4196
|
+
const u = this.leftSE.point, h = this.rightSE.point, o = e.leftSE.point, g = e.rightSE.point, c = yt(t, o) && this.comparePoint(o) === 0, E = yt(n, u) && e.comparePoint(u) === 0, S = yt(t, g) && this.comparePoint(g) === 0, C = yt(n, h) && e.comparePoint(h) === 0;
|
|
4214
4197
|
if (E && c)
|
|
4215
4198
|
return C && !S ? h : !C && S ? g : null;
|
|
4216
4199
|
if (E)
|
|
@@ -4220,8 +4203,8 @@ var ls = (i) => i, us = (i) => {
|
|
|
4220
4203
|
if (C && S) return null;
|
|
4221
4204
|
if (C) return h;
|
|
4222
4205
|
if (S) return g;
|
|
4223
|
-
const R =
|
|
4224
|
-
return R === null || !
|
|
4206
|
+
const R = ls(u, this.vector(), o, e.vector());
|
|
4207
|
+
return R === null || !yt(r, R) ? null : Fe.snap(R);
|
|
4225
4208
|
}
|
|
4226
4209
|
/**
|
|
4227
4210
|
* Split the given segment into multiple segments on the given points.
|
|
@@ -4238,7 +4221,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4238
4221
|
split(e) {
|
|
4239
4222
|
const t = [], n = e.events !== void 0, r = new Ae(e, !0), u = new Ae(e, !1), h = this.rightSE;
|
|
4240
4223
|
this.replaceRightSE(u), t.push(u), t.push(r);
|
|
4241
|
-
const o = new
|
|
4224
|
+
const o = new Bt(
|
|
4242
4225
|
r,
|
|
4243
4226
|
h,
|
|
4244
4227
|
this.rings.slice(),
|
|
@@ -4259,7 +4242,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4259
4242
|
let t = this, n = e;
|
|
4260
4243
|
for (; t.consumedBy; ) t = t.consumedBy;
|
|
4261
4244
|
for (; n.consumedBy; ) n = n.consumedBy;
|
|
4262
|
-
const r =
|
|
4245
|
+
const r = Bt.compare(t, n);
|
|
4263
4246
|
if (r !== 0) {
|
|
4264
4247
|
if (r > 0) {
|
|
4265
4248
|
const u = t;
|
|
@@ -4330,7 +4313,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4330
4313
|
if (this.consumedBy) return !1;
|
|
4331
4314
|
if (this._isInResult !== void 0) return this._isInResult;
|
|
4332
4315
|
const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
|
|
4333
|
-
switch (
|
|
4316
|
+
switch (Ut.type) {
|
|
4334
4317
|
case "union": {
|
|
4335
4318
|
const n = e.length === 0, r = t.length === 0;
|
|
4336
4319
|
this._isInResult = n !== r;
|
|
@@ -4338,7 +4321,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4338
4321
|
}
|
|
4339
4322
|
case "intersection": {
|
|
4340
4323
|
let n, r;
|
|
4341
|
-
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r ===
|
|
4324
|
+
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === Ut.numMultiPolys && n < r;
|
|
4342
4325
|
break;
|
|
4343
4326
|
}
|
|
4344
4327
|
case "xor": {
|
|
@@ -4354,7 +4337,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4354
4337
|
}
|
|
4355
4338
|
return this._isInResult;
|
|
4356
4339
|
}
|
|
4357
|
-
},
|
|
4340
|
+
}, ji = class {
|
|
4358
4341
|
constructor(i, e, t) {
|
|
4359
4342
|
P(this, "poly");
|
|
4360
4343
|
P(this, "isExterior");
|
|
@@ -4364,7 +4347,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4364
4347
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4365
4348
|
if (this.poly = e, this.isExterior = t, this.segments = [], typeof i[0][0] != "number" || typeof i[0][1] != "number")
|
|
4366
4349
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4367
|
-
const n =
|
|
4350
|
+
const n = Fe.snap({ x: new We(i[0][0]), y: new We(i[0][1]) });
|
|
4368
4351
|
this.bbox = {
|
|
4369
4352
|
ll: { x: n.x, y: n.y },
|
|
4370
4353
|
ur: { x: n.x, y: n.y }
|
|
@@ -4373,10 +4356,10 @@ var ls = (i) => i, us = (i) => {
|
|
|
4373
4356
|
for (let u = 1, h = i.length; u < h; u++) {
|
|
4374
4357
|
if (typeof i[u][0] != "number" || typeof i[u][1] != "number")
|
|
4375
4358
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4376
|
-
const o =
|
|
4377
|
-
o.x.eq(r.x) && o.y.eq(r.y) || (this.segments.push(
|
|
4359
|
+
const o = Fe.snap({ x: new We(i[u][0]), y: new We(i[u][1]) });
|
|
4360
|
+
o.x.eq(r.x) && o.y.eq(r.y) || (this.segments.push(qt.fromRing(r, o, this)), o.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = o.x), o.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = o.y), o.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = o.x), o.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = o.y), r = o);
|
|
4378
4361
|
}
|
|
4379
|
-
(!n.x.eq(r.x) || !n.y.eq(r.y)) && this.segments.push(
|
|
4362
|
+
(!n.x.eq(r.x) || !n.y.eq(r.y)) && this.segments.push(qt.fromRing(r, n, this));
|
|
4380
4363
|
}
|
|
4381
4364
|
getSweepEvents() {
|
|
4382
4365
|
const i = [];
|
|
@@ -4386,7 +4369,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4386
4369
|
}
|
|
4387
4370
|
return i;
|
|
4388
4371
|
}
|
|
4389
|
-
},
|
|
4372
|
+
}, ds = class {
|
|
4390
4373
|
constructor(i, e) {
|
|
4391
4374
|
P(this, "multiPoly");
|
|
4392
4375
|
P(this, "exteriorRing");
|
|
@@ -4394,12 +4377,12 @@ var ls = (i) => i, us = (i) => {
|
|
|
4394
4377
|
P(this, "bbox");
|
|
4395
4378
|
if (!Array.isArray(i))
|
|
4396
4379
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
4397
|
-
this.exteriorRing = new
|
|
4380
|
+
this.exteriorRing = new ji(i[0], this, !0), this.bbox = {
|
|
4398
4381
|
ll: { x: this.exteriorRing.bbox.ll.x, y: this.exteriorRing.bbox.ll.y },
|
|
4399
4382
|
ur: { x: this.exteriorRing.bbox.ur.x, y: this.exteriorRing.bbox.ur.y }
|
|
4400
4383
|
}, this.interiorRings = [];
|
|
4401
4384
|
for (let t = 1, n = i.length; t < n; t++) {
|
|
4402
|
-
const r = new
|
|
4385
|
+
const r = new ji(i[t], this, !1);
|
|
4403
4386
|
r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.interiorRings.push(r);
|
|
4404
4387
|
}
|
|
4405
4388
|
this.multiPoly = e;
|
|
@@ -4413,7 +4396,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4413
4396
|
}
|
|
4414
4397
|
return i;
|
|
4415
4398
|
}
|
|
4416
|
-
},
|
|
4399
|
+
}, Zi = class {
|
|
4417
4400
|
constructor(i, e) {
|
|
4418
4401
|
P(this, "isSubject");
|
|
4419
4402
|
P(this, "polys");
|
|
@@ -4429,7 +4412,7 @@ var ls = (i) => i, us = (i) => {
|
|
|
4429
4412
|
ur: { x: new We(Number.NEGATIVE_INFINITY), y: new We(Number.NEGATIVE_INFINITY) }
|
|
4430
4413
|
};
|
|
4431
4414
|
for (let t = 0, n = i.length; t < n; t++) {
|
|
4432
|
-
const r = new
|
|
4415
|
+
const r = new ds(i[t], this);
|
|
4433
4416
|
r.bbox.ll.x.isLessThan(this.bbox.ll.x) && (this.bbox.ll.x = r.bbox.ll.x), r.bbox.ll.y.isLessThan(this.bbox.ll.y) && (this.bbox.ll.y = r.bbox.ll.y), r.bbox.ur.x.isGreaterThan(this.bbox.ur.x) && (this.bbox.ur.x = r.bbox.ur.x), r.bbox.ur.y.isGreaterThan(this.bbox.ur.y) && (this.bbox.ur.y = r.bbox.ur.y), this.polys.push(r);
|
|
4434
4417
|
}
|
|
4435
4418
|
this.isSubject = e;
|
|
@@ -4443,9 +4426,9 @@ var ls = (i) => i, us = (i) => {
|
|
|
4443
4426
|
}
|
|
4444
4427
|
return i;
|
|
4445
4428
|
}
|
|
4446
|
-
},
|
|
4447
|
-
|
|
4448
|
-
function
|
|
4429
|
+
}, gs = (i, ...e) => Ut.run("union", i, e), ms = (i, ...e) => Ut.run("difference", i, e);
|
|
4430
|
+
Fe.set;
|
|
4431
|
+
function mn(i, e, t) {
|
|
4449
4432
|
if (i !== null)
|
|
4450
4433
|
for (var n, r, u, h, o, g, c, E = 0, S = 0, C, R = i.type, O = R === "FeatureCollection", A = R === "Feature", M = O ? i.features.length : 1, k = 0; k < M; k++) {
|
|
4451
4434
|
c = O ? i.features[k].geometry : A ? i.geometry : i, C = c ? c.type === "GeometryCollection" : !1, o = C ? c.geometries.length : 1;
|
|
@@ -4522,7 +4505,7 @@ function vn(i, e, t) {
|
|
|
4522
4505
|
break;
|
|
4523
4506
|
case "GeometryCollection":
|
|
4524
4507
|
for (n = 0; n < h.geometries.length; n++)
|
|
4525
|
-
if (
|
|
4508
|
+
if (mn(h.geometries[n], e) === !1)
|
|
4526
4509
|
return !1;
|
|
4527
4510
|
break;
|
|
4528
4511
|
default:
|
|
@@ -4532,7 +4515,7 @@ function vn(i, e, t) {
|
|
|
4532
4515
|
}
|
|
4533
4516
|
}
|
|
4534
4517
|
}
|
|
4535
|
-
function
|
|
4518
|
+
function hi(i, e) {
|
|
4536
4519
|
var t, n, r, u, h, o, g, c, E, S, C = 0, R = i.type === "FeatureCollection", O = i.type === "Feature", A = R ? i.features.length : 1;
|
|
4537
4520
|
for (t = 0; t < A; t++) {
|
|
4538
4521
|
for (o = R ? i.features[t].geometry : O ? i.geometry : i, c = R ? i.features[t].properties : O ? i.properties : {}, E = R ? i.features[t].bbox : O ? i.bbox : void 0, S = R ? i.features[t].id : O ? i.id : void 0, g = o ? o.type === "GeometryCollection" : !1, h = g ? o.geometries.length : 1, r = 0; r < h; r++) {
|
|
@@ -4583,8 +4566,8 @@ function gi(i, e) {
|
|
|
4583
4566
|
C++;
|
|
4584
4567
|
}
|
|
4585
4568
|
}
|
|
4586
|
-
function
|
|
4587
|
-
|
|
4569
|
+
function ps(i, e) {
|
|
4570
|
+
hi(i, function(t, n, r, u, h) {
|
|
4588
4571
|
var o = t === null ? null : t.type;
|
|
4589
4572
|
switch (o) {
|
|
4590
4573
|
case null:
|
|
@@ -4592,7 +4575,7 @@ function ws(i, e) {
|
|
|
4592
4575
|
case "LineString":
|
|
4593
4576
|
case "Polygon":
|
|
4594
4577
|
return e(
|
|
4595
|
-
|
|
4578
|
+
_t(t, r, { bbox: u, id: h }),
|
|
4596
4579
|
n,
|
|
4597
4580
|
0
|
|
4598
4581
|
) === !1 ? !1 : void 0;
|
|
@@ -4614,52 +4597,52 @@ function ws(i, e) {
|
|
|
4614
4597
|
type: g,
|
|
4615
4598
|
coordinates: E
|
|
4616
4599
|
};
|
|
4617
|
-
if (e(
|
|
4600
|
+
if (e(_t(S, r), n, c) === !1)
|
|
4618
4601
|
return !1;
|
|
4619
4602
|
}
|
|
4620
4603
|
});
|
|
4621
4604
|
}
|
|
4622
|
-
function
|
|
4605
|
+
function ys(i, e = {}) {
|
|
4623
4606
|
const t = [];
|
|
4624
|
-
if (
|
|
4607
|
+
if (hi(i, (r) => {
|
|
4625
4608
|
t.push(r.coordinates);
|
|
4626
4609
|
}), t.length < 2)
|
|
4627
4610
|
throw new Error("Must have at least 2 geometries");
|
|
4628
|
-
const n =
|
|
4629
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4611
|
+
const n = gs(t[0], ...t.slice(1));
|
|
4612
|
+
return n.length === 0 ? null : n.length === 1 ? ci(n[0], e.properties) : an(n, e.properties);
|
|
4630
4613
|
}
|
|
4631
|
-
var
|
|
4632
|
-
function
|
|
4614
|
+
var pn = ys;
|
|
4615
|
+
function vs(i, e = {}) {
|
|
4633
4616
|
if (i.bbox != null && e.recompute !== !0)
|
|
4634
4617
|
return i.bbox;
|
|
4635
4618
|
const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
4636
|
-
return
|
|
4619
|
+
return mn(i, (n) => {
|
|
4637
4620
|
t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
|
|
4638
4621
|
}), t;
|
|
4639
4622
|
}
|
|
4640
|
-
var
|
|
4641
|
-
function
|
|
4623
|
+
var Hi = vs;
|
|
4624
|
+
function bs(i) {
|
|
4642
4625
|
const e = [];
|
|
4643
|
-
if (
|
|
4626
|
+
if (hi(i, (r) => {
|
|
4644
4627
|
e.push(r.coordinates);
|
|
4645
4628
|
}), e.length < 2)
|
|
4646
4629
|
throw new Error("Must have at least two features");
|
|
4647
|
-
const t = i.features[0].properties || {}, n =
|
|
4648
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4630
|
+
const t = i.features[0].properties || {}, n = ms(e[0], ...e.slice(1));
|
|
4631
|
+
return n.length === 0 ? null : n.length === 1 ? ci(n[0], t) : an(n, t);
|
|
4649
4632
|
}
|
|
4650
|
-
var
|
|
4651
|
-
function
|
|
4633
|
+
var ws = bs;
|
|
4634
|
+
function Es(i) {
|
|
4652
4635
|
if (!i) throw new Error("geojson is required");
|
|
4653
4636
|
var e = [];
|
|
4654
|
-
return
|
|
4637
|
+
return ps(i, function(t) {
|
|
4655
4638
|
e.push(t);
|
|
4656
|
-
}),
|
|
4639
|
+
}), St(e);
|
|
4657
4640
|
}
|
|
4658
|
-
var
|
|
4659
|
-
function
|
|
4660
|
-
const t =
|
|
4661
|
-
|
|
4662
|
-
|
|
4641
|
+
var Ls = Es;
|
|
4642
|
+
function Vi(i, e) {
|
|
4643
|
+
const t = ws(
|
|
4644
|
+
St([
|
|
4645
|
+
ci([
|
|
4663
4646
|
[
|
|
4664
4647
|
[180, 90],
|
|
4665
4648
|
[-180, 90],
|
|
@@ -4674,10 +4657,10 @@ function Qi(i, e) {
|
|
|
4674
4657
|
if (!t)
|
|
4675
4658
|
return;
|
|
4676
4659
|
t.properties = { isMask: !0 };
|
|
4677
|
-
const n =
|
|
4660
|
+
const n = Gt(Hi(i)), r = (n[2] - n[0]) / 360 / 1e3, u = n[0] < -180, h = n[2] > 180, o = Ls(i);
|
|
4678
4661
|
if (o.features.length > 1 && (u || h))
|
|
4679
4662
|
for (const g of o.features) {
|
|
4680
|
-
const c =
|
|
4663
|
+
const c = Gt(Hi(g));
|
|
4681
4664
|
if (h && c[0] < -180 + r)
|
|
4682
4665
|
for (const E of g.geometry.coordinates)
|
|
4683
4666
|
for (const S of E)
|
|
@@ -4688,13 +4671,13 @@ function Qi(i, e) {
|
|
|
4688
4671
|
S[0] -= 360 - r;
|
|
4689
4672
|
}
|
|
4690
4673
|
e(
|
|
4691
|
-
|
|
4692
|
-
o.features.length < 2 ? i :
|
|
4674
|
+
St([
|
|
4675
|
+
o.features.length < 2 ? i : pn(o) ?? i,
|
|
4693
4676
|
t
|
|
4694
4677
|
])
|
|
4695
4678
|
);
|
|
4696
4679
|
}
|
|
4697
|
-
const
|
|
4680
|
+
const Ki = {
|
|
4698
4681
|
fill: {
|
|
4699
4682
|
paint: {
|
|
4700
4683
|
"fill-color": "#000",
|
|
@@ -4713,8 +4696,8 @@ const Xi = {
|
|
|
4713
4696
|
},
|
|
4714
4697
|
filter: ["!", ["has", "isMask"]]
|
|
4715
4698
|
}
|
|
4716
|
-
},
|
|
4717
|
-
function
|
|
4699
|
+
}, Ot = "mtlr-gc-full-geom", Yi = "mtlr-gc-full-geom-fill", Qi = "mtlr-gc-full-geom-line";
|
|
4700
|
+
function _s(i, e, t = !0, n = !0, r = {}, u = {}, h = Ki) {
|
|
4718
4701
|
let o;
|
|
4719
4702
|
const g = [];
|
|
4720
4703
|
let c, E, S;
|
|
@@ -4723,29 +4706,29 @@ function Ms(i, e, t = !0, n = !0, r = {}, u = {}, h = Xi) {
|
|
|
4723
4706
|
i.once("load", C);
|
|
4724
4707
|
return;
|
|
4725
4708
|
}
|
|
4726
|
-
const M = h ? h === !0 ?
|
|
4709
|
+
const M = h ? h === !0 ? Ki : h : void 0;
|
|
4727
4710
|
if (!(M != null && M.fill) && !(M != null && M.line))
|
|
4728
4711
|
return;
|
|
4729
|
-
const k = i.getSource(
|
|
4712
|
+
const k = i.getSource(Ot);
|
|
4730
4713
|
if (k)
|
|
4731
|
-
k.setData(S ??
|
|
4714
|
+
k.setData(S ?? St([]));
|
|
4732
4715
|
else if (S)
|
|
4733
|
-
i.addSource(
|
|
4716
|
+
i.addSource(Ot, {
|
|
4734
4717
|
type: "geojson",
|
|
4735
4718
|
data: S
|
|
4736
4719
|
});
|
|
4737
4720
|
else
|
|
4738
4721
|
return;
|
|
4739
|
-
!i.getLayer(
|
|
4722
|
+
!i.getLayer(Yi) && (M != null && M.fill) && i.addLayer({
|
|
4740
4723
|
...M == null ? void 0 : M.fill,
|
|
4741
|
-
id:
|
|
4724
|
+
id: Yi,
|
|
4742
4725
|
type: "fill",
|
|
4743
|
-
source:
|
|
4744
|
-
}), !i.getLayer(
|
|
4726
|
+
source: Ot
|
|
4727
|
+
}), !i.getLayer(Qi) && (M != null && M.line) && i.addLayer({
|
|
4745
4728
|
...M == null ? void 0 : M.line,
|
|
4746
|
-
id:
|
|
4729
|
+
id: Qi,
|
|
4747
4730
|
type: "line",
|
|
4748
|
-
source:
|
|
4731
|
+
source: Ot
|
|
4749
4732
|
});
|
|
4750
4733
|
}
|
|
4751
4734
|
function R(M) {
|
|
@@ -4766,7 +4749,7 @@ function Ms(i, e, t = !0, n = !0, r = {}, u = {}, h = Xi) {
|
|
|
4766
4749
|
if (!e)
|
|
4767
4750
|
throw new Error();
|
|
4768
4751
|
const k = document.createElement("div");
|
|
4769
|
-
return M && k.classList.add("marker-interactive"), new
|
|
4752
|
+
return M && k.classList.add("marker-interactive"), new Tr({
|
|
4770
4753
|
props: { displayIn: "maplibre" },
|
|
4771
4754
|
target: k
|
|
4772
4755
|
}), new e.Marker({ element: k, offset: [1, -13] });
|
|
@@ -4804,12 +4787,12 @@ function Ms(i, e, t = !0, n = !0, r = {}, u = {}, h = Xi) {
|
|
|
4804
4787
|
(q) => q.type === "Polygon" || q.type === "MultiPolygon"
|
|
4805
4788
|
);
|
|
4806
4789
|
t: if (D.length > 0) {
|
|
4807
|
-
const q =
|
|
4808
|
-
|
|
4790
|
+
const q = pn(
|
|
4791
|
+
St(D.map((z) => _t(z)))
|
|
4809
4792
|
);
|
|
4810
4793
|
if (!q)
|
|
4811
4794
|
break t;
|
|
4812
|
-
|
|
4795
|
+
Vi(
|
|
4813
4796
|
{
|
|
4814
4797
|
...k,
|
|
4815
4798
|
geometry: q.geometry
|
|
@@ -4828,7 +4811,7 @@ function Ms(i, e, t = !0, n = !0, r = {}, u = {}, h = Xi) {
|
|
|
4828
4811
|
}
|
|
4829
4812
|
if (!N) {
|
|
4830
4813
|
if (k.geometry.type === "Polygon" || k.geometry.type === "MultiPolygon")
|
|
4831
|
-
|
|
4814
|
+
Vi(k, R);
|
|
4832
4815
|
else if (k.geometry.type === "LineString" || k.geometry.type === "MultiLineString") {
|
|
4833
4816
|
R(k);
|
|
4834
4817
|
break e;
|
|
@@ -4882,7 +4865,7 @@ function Ms(i, e, t = !0, n = !0, r = {}, u = {}, h = Xi) {
|
|
|
4882
4865
|
}
|
|
4883
4866
|
};
|
|
4884
4867
|
}
|
|
4885
|
-
function
|
|
4868
|
+
function Ss(i, e, t) {
|
|
4886
4869
|
var O, A;
|
|
4887
4870
|
class n {
|
|
4888
4871
|
constructor(k, y) {
|
|
@@ -4951,9 +4934,9 @@ function Cs(i, e, t) {
|
|
|
4951
4934
|
class C extends i {
|
|
4952
4935
|
constructor(y = {}) {
|
|
4953
4936
|
super();
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4937
|
+
Xt(this, O);
|
|
4938
|
+
Xt(this, A);
|
|
4939
|
+
Jt(this, A, y);
|
|
4957
4940
|
}
|
|
4958
4941
|
onAddInt(y) {
|
|
4959
4942
|
const N = document.createElement("div");
|
|
@@ -4964,8 +4947,8 @@ function Cs(i, e, t) {
|
|
|
4964
4947
|
flyTo: z,
|
|
4965
4948
|
fullGeometryStyle: B,
|
|
4966
4949
|
...s
|
|
4967
|
-
} =
|
|
4968
|
-
mapController:
|
|
4950
|
+
} = ue(this, A), l = typeof z == "boolean" ? {} : z, m = {
|
|
4951
|
+
mapController: _s(
|
|
4969
4952
|
y,
|
|
4970
4953
|
e,
|
|
4971
4954
|
D,
|
|
@@ -4982,15 +4965,15 @@ function Cs(i, e, t) {
|
|
|
4982
4965
|
};
|
|
4983
4966
|
if (!m.apiKey)
|
|
4984
4967
|
throw new Error("no apiKey provided");
|
|
4985
|
-
return
|
|
4968
|
+
return Jt(this, O, new Qr({ target: N, props: m })), ue(this, O).$on("select", (a) => {
|
|
4986
4969
|
this.fire(new r(this, a.detail));
|
|
4987
|
-
}),
|
|
4970
|
+
}), ue(this, O).$on("pick", (a) => {
|
|
4988
4971
|
this.fire(new g(this, a.detail.feature));
|
|
4989
|
-
}),
|
|
4972
|
+
}), ue(this, O).$on("featureslisted", (a) => {
|
|
4990
4973
|
this.fire(new u(this, a.detail.features));
|
|
4991
|
-
}),
|
|
4974
|
+
}), ue(this, O).$on("featuresmarked", (a) => {
|
|
4992
4975
|
this.fire(new h(this, a.detail.features));
|
|
4993
|
-
}),
|
|
4976
|
+
}), ue(this, O).$on("response", (a) => {
|
|
4994
4977
|
this.fire(
|
|
4995
4978
|
new E(
|
|
4996
4979
|
this,
|
|
@@ -4998,13 +4981,13 @@ function Cs(i, e, t) {
|
|
|
4998
4981
|
a.detail.featureCollection
|
|
4999
4982
|
)
|
|
5000
4983
|
);
|
|
5001
|
-
}),
|
|
4984
|
+
}), ue(this, O).$on("optionsvisibilitychange", (a) => {
|
|
5002
4985
|
this.fire(
|
|
5003
4986
|
new o(this, a.detail.optionsVisible)
|
|
5004
4987
|
);
|
|
5005
|
-
}),
|
|
4988
|
+
}), ue(this, O).$on("reversetoggle", (a) => {
|
|
5006
4989
|
this.fire(new S(this, a.detail.reverse));
|
|
5007
|
-
}),
|
|
4990
|
+
}), ue(this, O).$on("querychange", (a) => {
|
|
5008
4991
|
this.fire(new c(this, a.detail.query));
|
|
5009
4992
|
}), N;
|
|
5010
4993
|
}
|
|
@@ -5027,15 +5010,15 @@ function Cs(i, e, t) {
|
|
|
5027
5010
|
*/
|
|
5028
5011
|
setOptions(y) {
|
|
5029
5012
|
var s;
|
|
5030
|
-
Object.assign(
|
|
5013
|
+
Object.assign(ue(this, A), y);
|
|
5031
5014
|
const {
|
|
5032
5015
|
marker: N,
|
|
5033
5016
|
showResultMarkers: D,
|
|
5034
5017
|
flyTo: q,
|
|
5035
5018
|
fullGeometryStyle: z,
|
|
5036
5019
|
...B
|
|
5037
|
-
} =
|
|
5038
|
-
(s =
|
|
5020
|
+
} = ue(this, A);
|
|
5021
|
+
(s = ue(this, O)) == null || s.$set(B);
|
|
5039
5022
|
}
|
|
5040
5023
|
/**
|
|
5041
5024
|
* Set the content of search input box.
|
|
@@ -5045,21 +5028,21 @@ function Cs(i, e, t) {
|
|
|
5045
5028
|
*/
|
|
5046
5029
|
setQuery(y, N = !0) {
|
|
5047
5030
|
var D;
|
|
5048
|
-
(D =
|
|
5031
|
+
(D = ue(this, O)) == null || D.setQuery(y, N);
|
|
5049
5032
|
}
|
|
5050
5033
|
/**
|
|
5051
5034
|
* Clear geocoding search results from the map.
|
|
5052
5035
|
*/
|
|
5053
5036
|
clearMap() {
|
|
5054
5037
|
var y;
|
|
5055
|
-
(y =
|
|
5038
|
+
(y = ue(this, O)) == null || y.clearMap();
|
|
5056
5039
|
}
|
|
5057
5040
|
/**
|
|
5058
5041
|
* Clear search result list.
|
|
5059
5042
|
*/
|
|
5060
5043
|
clearList() {
|
|
5061
5044
|
var y;
|
|
5062
|
-
(y =
|
|
5045
|
+
(y = ue(this, O)) == null || y.clearList();
|
|
5063
5046
|
}
|
|
5064
5047
|
/**
|
|
5065
5048
|
* Set reverse geocoding mode.
|
|
@@ -5068,7 +5051,7 @@ function Cs(i, e, t) {
|
|
|
5068
5051
|
*/
|
|
5069
5052
|
setReverseMode(y) {
|
|
5070
5053
|
var N;
|
|
5071
|
-
(N =
|
|
5054
|
+
(N = ue(this, O)) == null || N.$set({ reverseActive: y });
|
|
5072
5055
|
}
|
|
5073
5056
|
/**
|
|
5074
5057
|
* Focus the search input box.
|
|
@@ -5077,18 +5060,18 @@ function Cs(i, e, t) {
|
|
|
5077
5060
|
*/
|
|
5078
5061
|
focus(y) {
|
|
5079
5062
|
var N;
|
|
5080
|
-
(N =
|
|
5063
|
+
(N = ue(this, O)) == null || N.focus(y);
|
|
5081
5064
|
}
|
|
5082
5065
|
/**
|
|
5083
5066
|
* Blur the search input box.
|
|
5084
5067
|
*/
|
|
5085
5068
|
blur() {
|
|
5086
5069
|
var y;
|
|
5087
|
-
(y =
|
|
5070
|
+
(y = ue(this, O)) == null || y.blur();
|
|
5088
5071
|
}
|
|
5089
5072
|
onRemove() {
|
|
5090
5073
|
var y;
|
|
5091
|
-
(y =
|
|
5074
|
+
(y = ue(this, O)) == null || y.$destroy();
|
|
5092
5075
|
}
|
|
5093
5076
|
}
|
|
5094
5077
|
return O = new WeakMap(), A = new WeakMap(), {
|
|
@@ -5105,9 +5088,9 @@ function Cs(i, e, t) {
|
|
|
5105
5088
|
}
|
|
5106
5089
|
};
|
|
5107
5090
|
}
|
|
5108
|
-
const
|
|
5109
|
-
|
|
5110
|
-
|
|
5091
|
+
const xs = "@maptiler/geocoding-control", Ts = "2.1.3", { MapLibreBasedGeocodingControl: Ms, events: $e } = Ss(
|
|
5092
|
+
Li.Evented,
|
|
5093
|
+
Li,
|
|
5111
5094
|
(i, e) => {
|
|
5112
5095
|
const t = {};
|
|
5113
5096
|
if (!("getSdkConfig" in i && typeof i.getSdkConfig == "function"))
|
|
@@ -5118,23 +5101,23 @@ const Ns = "@maptiler/geocoding-control", ks = "2.1.3-rc2", { MapLibreBasedGeoco
|
|
|
5118
5101
|
return u && (t.language = u[1]), e.className += " maptiler-ctrl", t;
|
|
5119
5102
|
}
|
|
5120
5103
|
);
|
|
5121
|
-
class
|
|
5104
|
+
class ks extends Ms {
|
|
5122
5105
|
onAdd(e) {
|
|
5123
5106
|
var t;
|
|
5124
|
-
return (t = e.telemetry) == null || t.registerModule(
|
|
5107
|
+
return (t = e.telemetry) == null || t.registerModule(xs, Ts), super.onAddInt(e);
|
|
5125
5108
|
}
|
|
5126
5109
|
}
|
|
5127
|
-
const
|
|
5110
|
+
const Os = $e.SelectEvent, Rs = $e.FeaturesListedEvent, Ps = $e.FeaturesMarkedEvent, Is = $e.OptionsVisibilityChangeEvent, As = $e.PickEvent, Bs = $e.QueryChangeEvent, Ws = $e.ResponseEvent, Gs = $e.ReverseToggleEvent;
|
|
5128
5111
|
export {
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5112
|
+
Rs as FeaturesListedEvent,
|
|
5113
|
+
Ps as FeaturesMarkedEvent,
|
|
5114
|
+
ks as GeocodingControl,
|
|
5115
|
+
Is as OptionsVisibilityChangeEvent,
|
|
5116
|
+
As as PickEvent,
|
|
5117
|
+
Bs as QueryChangeEvent,
|
|
5118
|
+
Ws as ResponseEvent,
|
|
5119
|
+
Gs as ReverseToggleEvent,
|
|
5120
|
+
Os as SelectEvent,
|
|
5121
|
+
_s as createMapLibreGlMapController
|
|
5139
5122
|
};
|
|
5140
5123
|
//# sourceMappingURL=maptilersdk.js.map
|