@maptiler/geocoding-control 2.0.0-rc.7 → 2.0.0-rc.9

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.
Files changed (51) hide show
  1. package/leaflet-controller.d.ts +1 -1
  2. package/leaflet-controller.js +1 -1
  3. package/leaflet-controller.js.map +1 -1
  4. package/leaflet-controller.umd.js +1 -1
  5. package/leaflet-controller.umd.js.map +1 -1
  6. package/leaflet.js +817 -802
  7. package/leaflet.js.map +1 -1
  8. package/leaflet.umd.js +3 -3
  9. package/leaflet.umd.js.map +1 -1
  10. package/maplibregl-controller.d.ts +1 -1
  11. package/maplibregl-controller.js +16 -16
  12. package/maplibregl-controller.js.map +1 -1
  13. package/maplibregl-controller.umd.js +1 -1
  14. package/maplibregl-controller.umd.js.map +1 -1
  15. package/maplibregl.js +1220 -1205
  16. package/maplibregl.js.map +1 -1
  17. package/maplibregl.umd.js +3 -3
  18. package/maplibregl.umd.js.map +1 -1
  19. package/maptilersdk.js +1196 -1181
  20. package/maptilersdk.js.map +1 -1
  21. package/maptilersdk.umd.js +3 -3
  22. package/maptilersdk.umd.js.map +1 -1
  23. package/openlayers-controller.d.ts +1 -1
  24. package/openlayers-controller.js +5 -5
  25. package/openlayers-controller.js.map +1 -1
  26. package/openlayers-controller.umd.js +2 -2
  27. package/openlayers-controller.umd.js.map +1 -1
  28. package/openlayers.js +1405 -1391
  29. package/openlayers.js.map +1 -1
  30. package/openlayers.umd.js +3 -3
  31. package/openlayers.umd.js.map +1 -1
  32. package/package.json +4 -4
  33. package/react.js +860 -845
  34. package/react.js.map +1 -1
  35. package/react.umd.js +1 -1
  36. package/react.umd.js.map +1 -1
  37. package/svelte/GeocodingControl.svelte +50 -25
  38. package/svelte/GeocodingControl.svelte.d.ts +1 -0
  39. package/svelte/leaflet-controller.d.ts +1 -1
  40. package/svelte/leaflet-controller.js +1 -1
  41. package/svelte/maplibregl-controller.d.ts +1 -1
  42. package/svelte/maplibregl-controller.js +1 -1
  43. package/svelte/openlayers-controller.d.ts +1 -1
  44. package/svelte/openlayers-controller.js +1 -1
  45. package/svelte/openlayers.js +2 -3
  46. package/svelte/types.d.ts +2 -1
  47. package/types.d.ts +2 -1
  48. package/vanilla.js +606 -591
  49. package/vanilla.js.map +1 -1
  50. package/vanilla.umd.js +1 -1
  51. package/vanilla.umd.js.map +1 -1
package/openlayers.js CHANGED
@@ -1,65 +1,65 @@
1
- var mn = Object.defineProperty;
2
- var Zt = (n) => {
3
- throw TypeError(n);
1
+ var vn = Object.defineProperty;
2
+ var Yt = (i) => {
3
+ throw TypeError(i);
4
4
  };
5
- var yn = (n, e, t) => e in n ? mn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
6
- var ne = (n, e, t) => yn(n, typeof e != "symbol" ? e + "" : e, t), Ht = (n, e, t) => e.has(n) || Zt("Cannot " + t);
7
- var Q = (n, e, t) => (Ht(n, e, "read from private field"), t ? t.call(n) : e.get(n)), it = (n, e, t) => e.has(n) ? Zt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), nt = (n, e, t, i) => (Ht(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
8
- import { Control as pn } from "ol/control";
9
- import xe from "ol/events/Event";
10
- import { Feature as fe } from "ol";
11
- import { Polygon as Yt, MultiPolygon as Xt, GeometryCollection as vn, LineString as Kt, MultiLineString as Jt, Point as Mt } from "ol/geom";
12
- import bn from "ol/layer/Vector";
13
- import { toLonLat as $t, getUserProjection as wn, fromLonLat as rt, transformExtent as _n } from "ol/proj";
14
- import En from "ol/source/Vector";
15
- import ei from "ol/style/Fill";
16
- import Ln from "ol/style/Icon";
17
- import ti from "ol/style/Stroke";
18
- import Sn from "ol/style/Style";
19
- import xn from "ol/style/Text";
5
+ var bn = (i, e, t) => e in i ? vn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
+ var oe = (i, e, t) => bn(i, typeof e != "symbol" ? e + "" : e, t), Xt = (i, e, t) => e.has(i) || Yt("Cannot " + t);
7
+ var Q = (i, e, t) => (Xt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Mt = (i, e, t) => e.has(i) ? Yt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), kt = (i, e, t, n) => (Xt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
+ import { Control as wn } from "ol/control";
9
+ import ke from "ol/events/Event";
10
+ import { Feature as de } from "ol";
11
+ import { Point as Ct, Polygon as Kt, MultiPolygon as Jt, GeometryCollection as _n, LineString as $t, MultiLineString as ei } from "ol/geom";
12
+ import En from "ol/layer/Vector";
13
+ import { fromLonLat as rt, transformExtent as Ln, toLonLat as ti, getUserProjection as Sn } from "ol/proj";
14
+ import xn from "ol/source/Vector";
15
+ import ii from "ol/style/Fill";
16
+ import Mn from "ol/style/Icon";
17
+ import ni from "ol/style/Stroke";
18
+ import kn from "ol/style/Style";
19
+ import Cn from "ol/style/Text";
20
20
  function D() {
21
21
  }
22
- function Mn(n, e) {
23
- for (const t in e) n[t] = e[t];
22
+ function Nn(i, e) {
23
+ for (const t in e) i[t] = e[t];
24
24
  return (
25
25
  /** @type {T & S} */
26
- n
26
+ i
27
27
  );
28
28
  }
29
- function Ai(n) {
30
- return n();
29
+ function Fi(i) {
30
+ return i();
31
31
  }
32
- function ii() {
32
+ function ri() {
33
33
  return /* @__PURE__ */ Object.create(null);
34
34
  }
35
- function ye(n) {
36
- n.forEach(Ai);
35
+ function pe(i) {
36
+ i.forEach(Fi);
37
37
  }
38
- function zi(n) {
39
- return typeof n == "function";
38
+ function Bi(i) {
39
+ return typeof i == "function";
40
40
  }
41
- function Pe(n, e) {
42
- return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
41
+ function Re(i, e) {
42
+ return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
43
43
  }
44
44
  let ot;
45
- function K(n, e) {
46
- return n === e ? !0 : (ot || (ot = document.createElement("a")), ot.href = e, n === ot.href);
45
+ function K(i, e) {
46
+ return i === e ? !0 : (ot || (ot = document.createElement("a")), ot.href = e, i === ot.href);
47
47
  }
48
- function kn(n) {
49
- return Object.keys(n).length === 0;
48
+ function Pn(i) {
49
+ return Object.keys(i).length === 0;
50
50
  }
51
- function Cn(n, e, t, i) {
52
- if (n) {
53
- const r = Bi(n, e, t, i);
54
- return n[0](r);
51
+ function Tn(i, e, t, n) {
52
+ if (i) {
53
+ const r = Di(i, e, t, n);
54
+ return i[0](r);
55
55
  }
56
56
  }
57
- function Bi(n, e, t, i) {
58
- return n[1] && i ? Mn(t.ctx.slice(), n[1](i(e))) : t.ctx;
57
+ function Di(i, e, t, n) {
58
+ return i[1] && n ? Nn(t.ctx.slice(), i[1](n(e))) : t.ctx;
59
59
  }
60
- function Nn(n, e, t, i) {
61
- if (n[2] && i) {
62
- const r = n[2](i(t));
60
+ function Rn(i, e, t, n) {
61
+ if (i[2] && n) {
62
+ const r = i[2](n(t));
63
63
  if (e.dirty === void 0)
64
64
  return r;
65
65
  if (typeof r == "object") {
@@ -72,240 +72,240 @@ function Nn(n, e, t, i) {
72
72
  }
73
73
  return e.dirty;
74
74
  }
75
- function Pn(n, e, t, i, r, o) {
75
+ function In(i, e, t, n, r, o) {
76
76
  if (r) {
77
- const l = Bi(e, t, i, o);
78
- n.p(l, r);
77
+ const l = Di(e, t, n, o);
78
+ i.p(l, r);
79
79
  }
80
80
  }
81
- function Rn(n) {
82
- if (n.ctx.length > 32) {
83
- const e = [], t = n.ctx.length / 32;
84
- for (let i = 0; i < t; i++)
85
- e[i] = -1;
81
+ function On(i) {
82
+ if (i.ctx.length > 32) {
83
+ const e = [], t = i.ctx.length / 32;
84
+ for (let n = 0; n < t; n++)
85
+ e[n] = -1;
86
86
  return e;
87
87
  }
88
88
  return -1;
89
89
  }
90
- function ni(n) {
91
- return n ?? "";
90
+ function oi(i) {
91
+ return i ?? "";
92
92
  }
93
- function T(n, e) {
94
- n.appendChild(e);
93
+ function R(i, e) {
94
+ i.appendChild(e);
95
95
  }
96
- function U(n, e, t) {
97
- n.insertBefore(e, t || null);
96
+ function U(i, e, t) {
97
+ i.insertBefore(e, t || null);
98
98
  }
99
- function B(n) {
100
- n.parentNode && n.parentNode.removeChild(n);
99
+ function F(i) {
100
+ i.parentNode && i.parentNode.removeChild(i);
101
101
  }
102
- function W(n) {
103
- return document.createElement(n);
102
+ function W(i) {
103
+ return document.createElement(i);
104
104
  }
105
- function de(n) {
106
- return document.createElementNS("http://www.w3.org/2000/svg", n);
105
+ function he(i) {
106
+ return document.createElementNS("http://www.w3.org/2000/svg", i);
107
107
  }
108
- function Ee(n) {
109
- return document.createTextNode(n);
108
+ function Se(i) {
109
+ return document.createTextNode(i);
110
110
  }
111
111
  function ie() {
112
- return Ee(" ");
112
+ return Se(" ");
113
113
  }
114
- function Tn() {
115
- return Ee("");
114
+ function Wn() {
115
+ return Se("");
116
116
  }
117
- function ee(n, e, t, i) {
118
- return n.addEventListener(e, t, i), () => n.removeEventListener(e, t, i);
117
+ function ee(i, e, t, n) {
118
+ return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
119
119
  }
120
- function In(n) {
120
+ function An(i) {
121
121
  return function(e) {
122
- return e.preventDefault(), n.call(this, e);
122
+ return e.preventDefault(), i.call(this, e);
123
123
  };
124
124
  }
125
- function p(n, e, t) {
126
- t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
125
+ function p(i, e, t) {
126
+ t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
127
127
  }
128
- function On(n) {
129
- return Array.from(n.childNodes);
128
+ function zn(i) {
129
+ return Array.from(i.childNodes);
130
130
  }
131
- function Qe(n, e) {
132
- e = "" + e, n.data !== e && (n.data = /** @type {string} */
131
+ function Ze(i, e) {
132
+ e = "" + e, i.data !== e && (i.data = /** @type {string} */
133
133
  e);
134
134
  }
135
- function ri(n, e) {
136
- n.value = e ?? "";
135
+ function si(i, e) {
136
+ i.value = e ?? "";
137
137
  }
138
- function be(n, e, t) {
139
- n.classList.toggle(e, !!t);
138
+ function _e(i, e, t) {
139
+ i.classList.toggle(e, !!t);
140
140
  }
141
- function Wn(n, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
142
- return new CustomEvent(n, { detail: e, bubbles: t, cancelable: i });
141
+ function Fn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
142
+ return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
143
143
  }
144
- let Ve;
145
- function qe(n) {
146
- Ve = n;
144
+ let He;
145
+ function Ve(i) {
146
+ He = i;
147
147
  }
148
- function Fi() {
149
- if (!Ve) throw new Error("Function called outside component initialization");
150
- return Ve;
148
+ function Ui() {
149
+ if (!He) throw new Error("Function called outside component initialization");
150
+ return He;
151
151
  }
152
- function An(n) {
153
- Fi().$$.on_destroy.push(n);
152
+ function Bn(i) {
153
+ Ui().$$.on_destroy.push(i);
154
154
  }
155
- function zn() {
156
- const n = Fi();
157
- return (e, t, { cancelable: i = !1 } = {}) => {
158
- const r = n.$$.callbacks[e];
155
+ function Dn() {
156
+ const i = Ui();
157
+ return (e, t, { cancelable: n = !1 } = {}) => {
158
+ const r = i.$$.callbacks[e];
159
159
  if (r) {
160
- const o = Wn(
160
+ const o = Fn(
161
161
  /** @type {string} */
162
162
  e,
163
163
  t,
164
- { cancelable: i }
164
+ { cancelable: n }
165
165
  );
166
166
  return r.slice().forEach((l) => {
167
- l.call(n, o);
167
+ l.call(i, o);
168
168
  }), !o.defaultPrevented;
169
169
  }
170
170
  return !0;
171
171
  };
172
172
  }
173
- function oi(n, e) {
174
- const t = n.$$.callbacks[e.type];
175
- t && t.slice().forEach((i) => i.call(this, e));
173
+ function li(i, e) {
174
+ const t = i.$$.callbacks[e.type];
175
+ t && t.slice().forEach((n) => n.call(this, e));
176
176
  }
177
- const Be = [], Pt = [];
178
- let Fe = [];
179
- const si = [], Bn = /* @__PURE__ */ Promise.resolve();
180
- let Rt = !1;
181
- function Fn() {
182
- Rt || (Rt = !0, Bn.then(Di));
177
+ const Be = [], Rt = [];
178
+ let De = [];
179
+ const ui = [], Un = /* @__PURE__ */ Promise.resolve();
180
+ let It = !1;
181
+ function Gn() {
182
+ It || (It = !0, Un.then(Gi));
183
183
  }
184
- function Tt(n) {
185
- Fe.push(n);
184
+ function Ot(i) {
185
+ De.push(i);
186
186
  }
187
- const kt = /* @__PURE__ */ new Set();
188
- let Ae = 0;
189
- function Di() {
190
- if (Ae !== 0)
187
+ const Nt = /* @__PURE__ */ new Set();
188
+ let ze = 0;
189
+ function Gi() {
190
+ if (ze !== 0)
191
191
  return;
192
- const n = Ve;
192
+ const i = He;
193
193
  do {
194
194
  try {
195
- for (; Ae < Be.length; ) {
196
- const e = Be[Ae];
197
- Ae++, qe(e), Dn(e.$$);
195
+ for (; ze < Be.length; ) {
196
+ const e = Be[ze];
197
+ ze++, Ve(e), jn(e.$$);
198
198
  }
199
199
  } catch (e) {
200
- throw Be.length = 0, Ae = 0, e;
200
+ throw Be.length = 0, ze = 0, e;
201
201
  }
202
- for (qe(null), Be.length = 0, Ae = 0; Pt.length; ) Pt.pop()();
203
- for (let e = 0; e < Fe.length; e += 1) {
204
- const t = Fe[e];
205
- kt.has(t) || (kt.add(t), t());
202
+ for (Ve(null), Be.length = 0, ze = 0; Rt.length; ) Rt.pop()();
203
+ for (let e = 0; e < De.length; e += 1) {
204
+ const t = De[e];
205
+ Nt.has(t) || (Nt.add(t), t());
206
206
  }
207
- Fe.length = 0;
207
+ De.length = 0;
208
208
  } while (Be.length);
209
- for (; si.length; )
210
- si.pop()();
211
- Rt = !1, kt.clear(), qe(n);
209
+ for (; ui.length; )
210
+ ui.pop()();
211
+ It = !1, Nt.clear(), Ve(i);
212
212
  }
213
- function Dn(n) {
214
- if (n.fragment !== null) {
215
- n.update(), ye(n.before_update);
216
- const e = n.dirty;
217
- n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Tt);
213
+ function jn(i) {
214
+ if (i.fragment !== null) {
215
+ i.update(), pe(i.before_update);
216
+ const e = i.dirty;
217
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(Ot);
218
218
  }
219
219
  }
220
- function Un(n) {
220
+ function qn(i) {
221
221
  const e = [], t = [];
222
- Fe.forEach((i) => n.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), Fe = e;
222
+ De.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), De = e;
223
223
  }
224
224
  const st = /* @__PURE__ */ new Set();
225
- let Ce;
225
+ let Pe;
226
226
  function lt() {
227
- Ce = {
227
+ Pe = {
228
228
  r: 0,
229
229
  c: [],
230
- p: Ce
230
+ p: Pe
231
231
  // parent group
232
232
  };
233
233
  }
234
234
  function ut() {
235
- Ce.r || ye(Ce.c), Ce = Ce.p;
235
+ Pe.r || pe(Pe.c), Pe = Pe.p;
236
236
  }
237
- function G(n, e) {
238
- n && n.i && (st.delete(n), n.i(e));
237
+ function G(i, e) {
238
+ i && i.i && (st.delete(i), i.i(e));
239
239
  }
240
- function Y(n, e, t, i) {
241
- if (n && n.o) {
242
- if (st.has(n)) return;
243
- st.add(n), Ce.c.push(() => {
244
- st.delete(n), i && (t && n.d(1), i());
245
- }), n.o(e);
246
- } else i && i();
240
+ function Y(i, e, t, n) {
241
+ if (i && i.o) {
242
+ if (st.has(i)) return;
243
+ st.add(i), Pe.c.push(() => {
244
+ st.delete(i), n && (t && i.d(1), n());
245
+ }), i.o(e);
246
+ } else n && n();
247
247
  }
248
- function li(n) {
249
- return (n == null ? void 0 : n.length) !== void 0 ? n : Array.from(n);
248
+ function ai(i) {
249
+ return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
250
250
  }
251
- function Gn(n, e) {
252
- Y(n, 1, 1, () => {
253
- e.delete(n.key);
251
+ function Qn(i, e) {
252
+ Y(i, 1, 1, () => {
253
+ e.delete(i.key);
254
254
  });
255
255
  }
256
- function jn(n, e, t, i, r, o, l, s, c, u, d, a) {
257
- let f = n.length, h = o.length, m = f;
256
+ function Vn(i, e, t, n, r, o, l, s, c, u, d, a) {
257
+ let f = i.length, h = o.length, g = f;
258
258
  const y = {};
259
- for (; m--; ) y[n[m].key] = m;
259
+ for (; g--; ) y[i[g].key] = g;
260
260
  const b = [], w = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), S = [];
261
- for (m = h; m--; ) {
262
- const v = a(r, o, m), _ = t(v);
261
+ for (g = h; g--; ) {
262
+ const v = a(r, o, g), _ = t(v);
263
263
  let k = l.get(_);
264
- k ? S.push(() => k.p(v, e)) : (k = u(_, v), k.c()), w.set(_, b[m] = k), _ in y && L.set(_, Math.abs(m - y[_]));
264
+ k ? S.push(() => k.p(v, e)) : (k = u(_, v), k.c()), w.set(_, b[g] = k), _ in y && L.set(_, Math.abs(g - y[_]));
265
265
  }
266
266
  const E = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
267
267
  function C(v) {
268
268
  G(v, 1), v.m(s, d), l.set(v.key, v), d = v.first, h--;
269
269
  }
270
270
  for (; f && h; ) {
271
- const v = b[h - 1], _ = n[f - 1], k = v.key, I = _.key;
271
+ const v = b[h - 1], _ = i[f - 1], k = v.key, I = _.key;
272
272
  v === _ ? (d = v.first, f--, h--) : w.has(I) ? !l.has(k) || E.has(k) ? C(v) : M.has(I) ? f-- : L.get(k) > L.get(I) ? (M.add(k), C(v)) : (E.add(I), f--) : (c(_, l), f--);
273
273
  }
274
274
  for (; f--; ) {
275
- const v = n[f];
275
+ const v = i[f];
276
276
  w.has(v.key) || c(v, l);
277
277
  }
278
278
  for (; h; ) C(b[h - 1]);
279
- return ye(S), b;
279
+ return pe(S), b;
280
280
  }
281
- function Le(n) {
282
- n && n.c();
281
+ function xe(i) {
282
+ i && i.c();
283
283
  }
284
- function ge(n, e, t) {
285
- const { fragment: i, after_update: r } = n.$$;
286
- i && i.m(e, t), Tt(() => {
287
- const o = n.$$.on_mount.map(Ai).filter(zi);
288
- n.$$.on_destroy ? n.$$.on_destroy.push(...o) : ye(o), n.$$.on_mount = [];
289
- }), r.forEach(Tt);
284
+ function ge(i, e, t) {
285
+ const { fragment: n, after_update: r } = i.$$;
286
+ n && n.m(e, t), Ot(() => {
287
+ const o = i.$$.on_mount.map(Fi).filter(Bi);
288
+ i.$$.on_destroy ? i.$$.on_destroy.push(...o) : pe(o), i.$$.on_mount = [];
289
+ }), r.forEach(Ot);
290
290
  }
291
- function me(n, e) {
292
- const t = n.$$;
293
- t.fragment !== null && (Un(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
291
+ function ye(i, e) {
292
+ const t = i.$$;
293
+ t.fragment !== null && (qn(t.after_update), pe(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
294
294
  }
295
- function qn(n, e) {
296
- n.$$.dirty[0] === -1 && (Be.push(n), Fn(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
295
+ function Zn(i, e) {
296
+ i.$$.dirty[0] === -1 && (Be.push(i), Gn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
297
297
  }
298
- function Re(n, e, t, i, r, o, l = null, s = [-1]) {
299
- const c = Ve;
300
- qe(n);
301
- const u = n.$$ = {
298
+ function Ie(i, e, t, n, r, o, l = null, s = [-1]) {
299
+ const c = He;
300
+ Ve(i);
301
+ const u = i.$$ = {
302
302
  fragment: null,
303
303
  ctx: [],
304
304
  // state
305
305
  props: o,
306
306
  update: D,
307
307
  not_equal: r,
308
- bound: ii(),
308
+ bound: ri(),
309
309
  // lifecycle
310
310
  on_mount: [],
311
311
  on_destroy: [],
@@ -314,27 +314,27 @@ function Re(n, e, t, i, r, o, l = null, s = [-1]) {
314
314
  after_update: [],
315
315
  context: new Map(e.context || (c ? c.$$.context : [])),
316
316
  // everything else
317
- callbacks: ii(),
317
+ callbacks: ri(),
318
318
  dirty: s,
319
319
  skip_bound: !1,
320
320
  root: e.target || c.$$.root
321
321
  };
322
322
  l && l(u.root);
323
323
  let d = !1;
324
- if (u.ctx = t ? t(n, e.props || {}, (a, f, ...h) => {
325
- const m = h.length ? h[0] : f;
326
- return u.ctx && r(u.ctx[a], u.ctx[a] = m) && (!u.skip_bound && u.bound[a] && u.bound[a](m), d && qn(n, a)), f;
327
- }) : [], u.update(), d = !0, ye(u.before_update), u.fragment = i ? i(u.ctx) : !1, e.target) {
324
+ if (u.ctx = t ? t(i, e.props || {}, (a, f, ...h) => {
325
+ const g = h.length ? h[0] : f;
326
+ return u.ctx && r(u.ctx[a], u.ctx[a] = g) && (!u.skip_bound && u.bound[a] && u.bound[a](g), d && Zn(i, a)), f;
327
+ }) : [], u.update(), d = !0, pe(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
328
328
  if (e.hydrate) {
329
- const a = On(e.target);
330
- u.fragment && u.fragment.l(a), a.forEach(B);
329
+ const a = zn(e.target);
330
+ u.fragment && u.fragment.l(a), a.forEach(F);
331
331
  } else
332
332
  u.fragment && u.fragment.c();
333
- e.intro && G(n.$$.fragment), ge(n, e.target, e.anchor), Di();
333
+ e.intro && G(i.$$.fragment), ge(i, e.target, e.anchor), Gi();
334
334
  }
335
- qe(c);
335
+ Ve(c);
336
336
  }
337
- class Te {
337
+ class Oe {
338
338
  constructor() {
339
339
  /**
340
340
  * ### PRIVATE API
@@ -343,7 +343,7 @@ class Te {
343
343
  *
344
344
  * @type {any}
345
345
  */
346
- ne(this, "$$");
346
+ oe(this, "$$");
347
347
  /**
348
348
  * ### PRIVATE API
349
349
  *
@@ -351,11 +351,11 @@ class Te {
351
351
  *
352
352
  * @type {any}
353
353
  */
354
- ne(this, "$$set");
354
+ oe(this, "$$set");
355
355
  }
356
356
  /** @returns {void} */
357
357
  $destroy() {
358
- me(this, 1), this.$destroy = D;
358
+ ye(this, 1), this.$destroy = D;
359
359
  }
360
360
  /**
361
361
  * @template {Extract<keyof Events, string>} K
@@ -364,12 +364,12 @@ class Te {
364
364
  * @returns {() => void}
365
365
  */
366
366
  $on(e, t) {
367
- if (!zi(t))
367
+ if (!Bi(t))
368
368
  return D;
369
- const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
370
- return i.push(t), () => {
371
- const r = i.indexOf(t);
372
- r !== -1 && i.splice(r, 1);
369
+ const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
370
+ return n.push(t), () => {
371
+ const r = n.indexOf(t);
372
+ r !== -1 && n.splice(r, 1);
373
373
  };
374
374
  }
375
375
  /**
@@ -377,291 +377,291 @@ class Te {
377
377
  * @returns {void}
378
378
  */
379
379
  $set(e) {
380
- this.$$set && !kn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
380
+ this.$$set && !Pn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
381
381
  }
382
382
  }
383
- const Qn = "4";
384
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qn);
385
- function Vn(n) {
383
+ const Hn = "4";
384
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
385
+ function Yn(i) {
386
386
  let e, t;
387
387
  return {
388
388
  c() {
389
- e = de("svg"), t = de("path"), p(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"), p(e, "viewBox", "0 0 14 14"), p(e, "width", "13"), p(e, "height", "13"), p(e, "class", "svelte-en2qvf");
389
+ e = he("svg"), t = he("path"), p(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"), p(e, "viewBox", "0 0 14 14"), p(e, "width", "13"), p(e, "height", "13"), p(e, "class", "svelte-en2qvf");
390
390
  },
391
- m(i, r) {
392
- U(i, e, r), T(e, t);
391
+ m(n, r) {
392
+ U(n, e, r), R(e, t);
393
393
  },
394
394
  p: D,
395
395
  i: D,
396
396
  o: D,
397
- d(i) {
398
- i && B(e);
397
+ d(n) {
398
+ n && F(e);
399
399
  }
400
400
  };
401
401
  }
402
- class Ui extends Te {
402
+ class ji extends Oe {
403
403
  constructor(e) {
404
- super(), Re(this, e, null, Vn, Pe, {});
404
+ super(), Ie(this, e, null, Yn, Re, {});
405
405
  }
406
406
  }
407
- function Zn(n) {
407
+ function Xn(i) {
408
408
  let e, t;
409
409
  return {
410
410
  c() {
411
- e = de("svg"), t = de("path"), p(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"), p(e, "viewBox", "0 0 30 30"), p(e, "fill", "none"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "class", "svelte-d2loi5");
411
+ e = he("svg"), t = he("path"), p(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"), p(e, "viewBox", "0 0 30 30"), p(e, "fill", "none"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "class", "svelte-d2loi5");
412
412
  },
413
- m(i, r) {
414
- U(i, e, r), T(e, t);
413
+ m(n, r) {
414
+ U(n, e, r), R(e, t);
415
415
  },
416
416
  p: D,
417
417
  i: D,
418
418
  o: D,
419
- d(i) {
420
- i && B(e);
419
+ d(n) {
420
+ n && F(e);
421
421
  }
422
422
  };
423
423
  }
424
- class Gi extends Te {
424
+ class qi extends Oe {
425
425
  constructor(e) {
426
- super(), Re(this, e, null, Zn, Pe, {});
426
+ super(), Ie(this, e, null, Xn, Re, {});
427
427
  }
428
428
  }
429
- function Hn(n) {
429
+ function Kn(i) {
430
430
  let e, t;
431
431
  return {
432
432
  c() {
433
433
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
434
- n[3] + "area.svg") || p(e, "src", t), p(
434
+ i[3] + "area.svg") || p(e, "src", t), p(
435
435
  e,
436
436
  "alt",
437
437
  /*placeType*/
438
- n[6]
438
+ i[6]
439
439
  ), p(e, "class", "svelte-ltkwvy");
440
440
  },
441
- m(i, r) {
442
- U(i, e, r);
441
+ m(n, r) {
442
+ U(n, e, r);
443
443
  },
444
- p(i, r) {
444
+ p(n, r) {
445
445
  r & /*iconsBaseUrl*/
446
446
  8 && !K(e.src, t = /*iconsBaseUrl*/
447
- i[3] + "area.svg") && p(e, "src", t), r & /*placeType*/
447
+ n[3] + "area.svg") && p(e, "src", t), r & /*placeType*/
448
448
  64 && p(
449
449
  e,
450
450
  "alt",
451
451
  /*placeType*/
452
- i[6]
452
+ n[6]
453
453
  );
454
454
  },
455
- d(i) {
456
- i && B(e);
455
+ d(n) {
456
+ n && F(e);
457
457
  }
458
458
  };
459
459
  }
460
- function Yn(n) {
460
+ function Jn(i) {
461
461
  let e, t;
462
462
  return {
463
463
  c() {
464
464
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
465
- n[3] + "reverse.svg") || p(e, "src", t), p(
465
+ i[3] + "reverse.svg") || p(e, "src", t), p(
466
466
  e,
467
467
  "alt",
468
468
  /*placeType*/
469
- n[6]
469
+ i[6]
470
470
  ), p(e, "class", "svelte-ltkwvy");
471
471
  },
472
- m(i, r) {
473
- U(i, e, r);
472
+ m(n, r) {
473
+ U(n, e, r);
474
474
  },
475
- p(i, r) {
475
+ p(n, r) {
476
476
  r & /*iconsBaseUrl*/
477
477
  8 && !K(e.src, t = /*iconsBaseUrl*/
478
- i[3] + "reverse.svg") && p(e, "src", t), r & /*placeType*/
478
+ n[3] + "reverse.svg") && p(e, "src", t), r & /*placeType*/
479
479
  64 && p(
480
480
  e,
481
481
  "alt",
482
482
  /*placeType*/
483
- i[6]
483
+ n[6]
484
484
  );
485
485
  },
486
- d(i) {
487
- i && B(e);
486
+ d(n) {
487
+ n && F(e);
488
488
  }
489
489
  };
490
490
  }
491
- function Xn(n) {
491
+ function $n(i) {
492
492
  let e, t;
493
493
  return {
494
494
  c() {
495
495
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
496
- n[3] + "poi.svg") || p(e, "src", t), p(
496
+ i[3] + "poi.svg") || p(e, "src", t), p(
497
497
  e,
498
498
  "alt",
499
499
  /*placeType*/
500
- n[6]
500
+ i[6]
501
501
  ), p(e, "class", "svelte-ltkwvy");
502
502
  },
503
- m(i, r) {
504
- U(i, e, r);
503
+ m(n, r) {
504
+ U(n, e, r);
505
505
  },
506
- p(i, r) {
506
+ p(n, r) {
507
507
  r & /*iconsBaseUrl*/
508
508
  8 && !K(e.src, t = /*iconsBaseUrl*/
509
- i[3] + "poi.svg") && p(e, "src", t), r & /*placeType*/
509
+ n[3] + "poi.svg") && p(e, "src", t), r & /*placeType*/
510
510
  64 && p(
511
511
  e,
512
512
  "alt",
513
513
  /*placeType*/
514
- i[6]
514
+ n[6]
515
515
  );
516
516
  },
517
- d(i) {
518
- i && B(e);
517
+ d(n) {
518
+ n && F(e);
519
519
  }
520
520
  };
521
521
  }
522
- function Kn(n) {
522
+ function er(i) {
523
523
  let e, t;
524
524
  return {
525
525
  c() {
526
526
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
527
- n[3] + "postal_code.svg") || p(e, "src", t), p(
527
+ i[3] + "postal_code.svg") || p(e, "src", t), p(
528
528
  e,
529
529
  "alt",
530
530
  /*placeType*/
531
- n[6]
531
+ i[6]
532
532
  ), p(e, "class", "svelte-ltkwvy");
533
533
  },
534
- m(i, r) {
535
- U(i, e, r);
534
+ m(n, r) {
535
+ U(n, e, r);
536
536
  },
537
- p(i, r) {
537
+ p(n, r) {
538
538
  r & /*iconsBaseUrl*/
539
539
  8 && !K(e.src, t = /*iconsBaseUrl*/
540
- i[3] + "postal_code.svg") && p(e, "src", t), r & /*placeType*/
540
+ n[3] + "postal_code.svg") && p(e, "src", t), r & /*placeType*/
541
541
  64 && p(
542
542
  e,
543
543
  "alt",
544
544
  /*placeType*/
545
- i[6]
545
+ n[6]
546
546
  );
547
547
  },
548
- d(i) {
549
- i && B(e);
548
+ d(n) {
549
+ n && F(e);
550
550
  }
551
551
  };
552
552
  }
553
- function Jn(n) {
553
+ function tr(i) {
554
554
  let e, t;
555
555
  return {
556
556
  c() {
557
557
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
558
- n[3] + "street.svg") || p(e, "src", t), p(
558
+ i[3] + "street.svg") || p(e, "src", t), p(
559
559
  e,
560
560
  "alt",
561
561
  /*placeType*/
562
- n[6]
562
+ i[6]
563
563
  ), p(e, "class", "svelte-ltkwvy");
564
564
  },
565
- m(i, r) {
566
- U(i, e, r);
565
+ m(n, r) {
566
+ U(n, e, r);
567
567
  },
568
- p(i, r) {
568
+ p(n, r) {
569
569
  r & /*iconsBaseUrl*/
570
570
  8 && !K(e.src, t = /*iconsBaseUrl*/
571
- i[3] + "street.svg") && p(e, "src", t), r & /*placeType*/
571
+ n[3] + "street.svg") && p(e, "src", t), r & /*placeType*/
572
572
  64 && p(
573
573
  e,
574
574
  "alt",
575
575
  /*placeType*/
576
- i[6]
576
+ n[6]
577
577
  );
578
578
  },
579
- d(i) {
580
- i && B(e);
579
+ d(n) {
580
+ n && F(e);
581
581
  }
582
582
  };
583
583
  }
584
- function $n(n) {
584
+ function ir(i) {
585
585
  let e, t;
586
586
  return {
587
587
  c() {
588
588
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
589
- n[3] + "road.svg") || p(e, "src", t), p(
589
+ i[3] + "road.svg") || p(e, "src", t), p(
590
590
  e,
591
591
  "alt",
592
592
  /*placeType*/
593
- n[6]
593
+ i[6]
594
594
  ), p(e, "class", "svelte-ltkwvy");
595
595
  },
596
- m(i, r) {
597
- U(i, e, r);
596
+ m(n, r) {
597
+ U(n, e, r);
598
598
  },
599
- p(i, r) {
599
+ p(n, r) {
600
600
  r & /*iconsBaseUrl*/
601
601
  8 && !K(e.src, t = /*iconsBaseUrl*/
602
- i[3] + "road.svg") && p(e, "src", t), r & /*placeType*/
602
+ n[3] + "road.svg") && p(e, "src", t), r & /*placeType*/
603
603
  64 && p(
604
604
  e,
605
605
  "alt",
606
606
  /*placeType*/
607
- i[6]
607
+ n[6]
608
608
  );
609
609
  },
610
- d(i) {
611
- i && B(e);
610
+ d(n) {
611
+ n && F(e);
612
612
  }
613
613
  };
614
614
  }
615
- function er(n) {
615
+ function nr(i) {
616
616
  let e, t;
617
617
  return {
618
618
  c() {
619
619
  e = W("img"), K(e.src, t = /*iconsBaseUrl*/
620
- n[3] + "housenumber.svg") || p(e, "src", t), p(
620
+ i[3] + "housenumber.svg") || p(e, "src", t), p(
621
621
  e,
622
622
  "alt",
623
623
  /*placeType*/
624
- n[6]
624
+ i[6]
625
625
  ), p(e, "class", "svelte-ltkwvy");
626
626
  },
627
- m(i, r) {
628
- U(i, e, r);
627
+ m(n, r) {
628
+ U(n, e, r);
629
629
  },
630
- p(i, r) {
630
+ p(n, r) {
631
631
  r & /*iconsBaseUrl*/
632
632
  8 && !K(e.src, t = /*iconsBaseUrl*/
633
- i[3] + "housenumber.svg") && p(e, "src", t), r & /*placeType*/
633
+ n[3] + "housenumber.svg") && p(e, "src", t), r & /*placeType*/
634
634
  64 && p(
635
635
  e,
636
636
  "alt",
637
637
  /*placeType*/
638
- i[6]
638
+ n[6]
639
639
  );
640
640
  },
641
- d(i) {
642
- i && B(e);
641
+ d(n) {
642
+ n && F(e);
643
643
  }
644
644
  };
645
645
  }
646
- function tr(n) {
647
- let e, t, i, r;
646
+ function rr(i) {
647
+ let e, t, n, r;
648
648
  return {
649
649
  c() {
650
650
  e = W("img"), K(e.src, t = /*imageUrl*/
651
- n[5]) || p(e, "src", t), p(
651
+ i[5]) || p(e, "src", t), p(
652
652
  e,
653
653
  "alt",
654
654
  /*category*/
655
- n[4]
655
+ i[4]
656
656
  ), p(e, "class", "svelte-ltkwvy");
657
657
  },
658
658
  m(o, l) {
659
- U(o, e, l), i || (r = ee(
659
+ U(o, e, l), n || (r = ee(
660
660
  e,
661
661
  "error",
662
662
  /*error_handler*/
663
- n[14]
664
- ), i = !0);
663
+ i[14]
664
+ ), n = !0);
665
665
  },
666
666
  p(o, l) {
667
667
  l & /*imageUrl*/
@@ -675,109 +675,109 @@ function tr(n) {
675
675
  );
676
676
  },
677
677
  d(o) {
678
- o && B(e), i = !1, r();
678
+ o && F(e), n = !1, r();
679
679
  }
680
680
  };
681
681
  }
682
- function ui(n) {
682
+ function ci(i) {
683
683
  let e, t;
684
684
  return {
685
685
  c() {
686
- e = W("span"), t = Ee(
686
+ e = W("span"), t = Se(
687
687
  /*placeType*/
688
- n[6]
688
+ i[6]
689
689
  ), p(e, "class", "secondary svelte-ltkwvy");
690
690
  },
691
- m(i, r) {
692
- U(i, e, r), T(e, t);
691
+ m(n, r) {
692
+ U(n, e, r), R(e, t);
693
693
  },
694
- p(i, r) {
694
+ p(n, r) {
695
695
  r & /*placeType*/
696
- 64 && Qe(
696
+ 64 && Ze(
697
697
  t,
698
698
  /*placeType*/
699
- i[6]
699
+ n[6]
700
700
  );
701
701
  },
702
- d(i) {
703
- i && B(e);
702
+ d(n) {
703
+ n && F(e);
704
704
  }
705
705
  };
706
706
  }
707
- function ir(n) {
708
- let e, t, i, r, o, l, s, c, u, d = (
707
+ function or(i) {
708
+ let e, t, n, r, o, l, s, c, u, d = (
709
709
  /*isReverse*/
710
- (n[7] ? (
710
+ (i[7] ? (
711
711
  /*feature*/
712
- n[0].place_name
712
+ i[0].place_name
713
713
  ) : (
714
714
  /*feature*/
715
- n[0].place_name.replace(/,.*/, "")
715
+ i[0].place_name.replace(/,.*/, "")
716
716
  )) + ""
717
717
  ), a, f, h = (
718
718
  /*showPlaceType*/
719
- n[2] === "always" || /*showPlaceType*/
720
- n[2] !== "never" && !/*feature*/
721
- n[0].address && !/*feature*/
722
- n[0].id.startsWith("road.") && !/*feature*/
723
- n[0].id.startsWith("address.") && !/*feature*/
724
- n[0].id.startsWith("postal_code.") && (!/*feature*/
725
- n[0].id.startsWith("poi.") || !/*imageUrl*/
726
- n[5]) && !/*isReverse*/
727
- n[7]
728
- ), m, y, b = (
719
+ i[2] === "always" || /*showPlaceType*/
720
+ i[2] !== "never" && !/*feature*/
721
+ i[0].address && !/*feature*/
722
+ i[0].id.startsWith("road.") && !/*feature*/
723
+ i[0].id.startsWith("address.") && !/*feature*/
724
+ i[0].id.startsWith("postal_code.") && (!/*feature*/
725
+ i[0].id.startsWith("poi.") || !/*imageUrl*/
726
+ i[5]) && !/*isReverse*/
727
+ i[7]
728
+ ), g, y, b = (
729
729
  /*isReverse*/
730
- (n[7] ? "" : (
730
+ (i[7] ? "" : (
731
731
  /*feature*/
732
- n[0].place_name.replace(/[^,]*,?\s*/, "")
732
+ i[0].place_name.replace(/[^,]*,?\s*/, "")
733
733
  )) + ""
734
734
  ), w, L, S;
735
735
  function E(_, k) {
736
736
  return k & /*feature*/
737
737
  1 && (t = null), k & /*feature*/
738
- 1 && (i = null), k & /*feature*/
738
+ 1 && (n = null), k & /*feature*/
739
739
  1 && (r = null), k & /*feature*/
740
740
  1 && (o = null), /*imageUrl*/
741
- _[5] ? tr : (
741
+ _[5] ? rr : (
742
742
  /*feature*/
743
- _[0].address ? er : (t == null && (t = !!/*feature*/
744
- _[0].id.startsWith("road.")), t ? $n : (i == null && (i = !!/*feature*/
745
- _[0].id.startsWith("address.")), i ? Jn : (r == null && (r = !!/*feature*/
746
- _[0].id.startsWith("postal_code.")), r ? Kn : (o == null && (o = !!/*feature*/
747
- _[0].id.startsWith("poi.")), o ? Xn : (
743
+ _[0].address ? nr : (t == null && (t = !!/*feature*/
744
+ _[0].id.startsWith("road.")), t ? ir : (n == null && (n = !!/*feature*/
745
+ _[0].id.startsWith("address.")), n ? tr : (r == null && (r = !!/*feature*/
746
+ _[0].id.startsWith("postal_code.")), r ? er : (o == null && (o = !!/*feature*/
747
+ _[0].id.startsWith("poi.")), o ? $n : (
748
748
  /*isReverse*/
749
- _[7] ? Yn : Hn
749
+ _[7] ? Jn : Kn
750
750
  )))))
751
751
  );
752
752
  }
753
- let M = E(n, -1), C = M(n), v = h && ui(n);
753
+ let M = E(i, -1), C = M(i), v = h && ci(i);
754
754
  return {
755
755
  c() {
756
- e = W("li"), C.c(), l = ie(), s = W("span"), c = W("span"), u = W("span"), a = Ee(d), f = ie(), v && v.c(), m = ie(), y = W("span"), w = Ee(b), p(u, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(y, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
756
+ e = W("li"), C.c(), l = ie(), s = W("span"), c = W("span"), u = W("span"), a = Se(d), f = ie(), v && v.c(), g = ie(), y = W("span"), w = Se(b), p(u, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(y, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
757
757
  e,
758
758
  "data-selected",
759
759
  /*selected*/
760
- n[1]
761
- ), p(e, "class", "svelte-ltkwvy"), be(
760
+ i[1]
761
+ ), p(e, "class", "svelte-ltkwvy"), _e(
762
762
  e,
763
763
  "selected",
764
764
  /*selected*/
765
- n[1]
765
+ i[1]
766
766
  );
767
767
  },
768
768
  m(_, k) {
769
- U(_, e, k), C.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), v && v.m(c, null), T(s, m), T(s, y), T(y, w), L || (S = [
769
+ U(_, e, k), C.m(e, null), R(e, l), R(e, s), R(s, c), R(c, u), R(u, a), R(c, f), v && v.m(c, null), R(s, g), R(s, y), R(y, w), L || (S = [
770
770
  ee(
771
771
  e,
772
772
  "mouseenter",
773
773
  /*mouseenter_handler*/
774
- n[12]
774
+ i[12]
775
775
  ),
776
776
  ee(
777
777
  e,
778
778
  "focus",
779
779
  /*focus_handler*/
780
- n[13]
780
+ i[13]
781
781
  )
782
782
  ], L = !0);
783
783
  },
@@ -790,7 +790,7 @@ function ir(n) {
790
790
  ) : (
791
791
  /*feature*/
792
792
  _[0].place_name.replace(/,.*/, "")
793
- )) + "") && Qe(a, d), k & /*showPlaceType, feature, imageUrl*/
793
+ )) + "") && Ze(a, d), k & /*showPlaceType, feature, imageUrl*/
794
794
  37 && (h = /*showPlaceType*/
795
795
  _[2] === "always" || /*showPlaceType*/
796
796
  _[2] !== "never" && !/*feature*/
@@ -800,19 +800,19 @@ function ir(n) {
800
800
  _[0].id.startsWith("postal_code.") && (!/*feature*/
801
801
  _[0].id.startsWith("poi.") || !/*imageUrl*/
802
802
  _[5]) && !/*isReverse*/
803
- _[7]), h ? v ? v.p(_, k) : (v = ui(_), v.c(), v.m(c, null)) : v && (v.d(1), v = null), k & /*feature*/
803
+ _[7]), h ? v ? v.p(_, k) : (v = ci(_), v.c(), v.m(c, null)) : v && (v.d(1), v = null), k & /*feature*/
804
804
  1 && b !== (b = /*isReverse*/
805
805
  (_[7] ? "" : (
806
806
  /*feature*/
807
807
  _[0].place_name.replace(/[^,]*,?\s*/, "")
808
- )) + "") && Qe(w, b), k & /*selected*/
808
+ )) + "") && Ze(w, b), k & /*selected*/
809
809
  2 && p(
810
810
  e,
811
811
  "data-selected",
812
812
  /*selected*/
813
813
  _[1]
814
814
  ), k & /*selected*/
815
- 2 && be(
815
+ 2 && _e(
816
816
  e,
817
817
  "selected",
818
818
  /*selected*/
@@ -822,37 +822,37 @@ function ir(n) {
822
822
  i: D,
823
823
  o: D,
824
824
  d(_) {
825
- _ && B(e), C.d(), v && v.d(), L = !1, ye(S);
825
+ _ && F(e), C.d(), v && v.d(), L = !1, pe(S);
826
826
  }
827
827
  };
828
828
  }
829
- function nr(n, e, t) {
829
+ function sr(i, e, t) {
830
830
  var S;
831
- let i, r, { feature: o } = e, { selected: l = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: u } = e;
831
+ let n, r, { feature: o } = e, { selected: l = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: u } = e;
832
832
  const d = (S = o.properties) == null ? void 0 : S.categories;
833
- let a, f, h = 0, m = o.place_type[0] === "reverse";
833
+ let a, f, h = 0, g = o.place_type[0] === "reverse";
834
834
  function y() {
835
835
  f && c.add(f), t(10, h++, h);
836
836
  }
837
837
  function b(E) {
838
- oi.call(this, n, E);
838
+ li.call(this, i, E);
839
839
  }
840
840
  function w(E) {
841
- oi.call(this, n, E);
841
+ li.call(this, i, E);
842
842
  }
843
843
  const L = () => y();
844
- return n.$$set = (E) => {
844
+ return i.$$set = (E) => {
845
845
  "feature" in E && t(0, o = E.feature), "selected" in E && t(1, l = E.selected), "showPlaceType" in E && t(2, s = E.showPlaceType), "missingIconsCache" in E && t(9, c = E.missingIconsCache), "iconsBaseUrl" in E && t(3, u = E.iconsBaseUrl);
846
- }, n.$$.update = () => {
846
+ }, i.$$.update = () => {
847
847
  var E, M, C, v;
848
- if (n.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
848
+ if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
849
849
  3640)
850
850
  do
851
- t(11, i--, i), t(4, a = d == null ? void 0 : d[i]), t(5, f = a ? u + a.replace(/ /g, "_") + ".svg" : void 0);
852
- while (i > -1 && (!f || c.has(f)));
853
- n.$$.dirty & /*feature*/
851
+ t(11, n--, n), t(4, a = d == null ? void 0 : d[n]), t(5, f = a ? u + a.replace(/ /g, "_") + ".svg" : void 0);
852
+ while (n > -1 && (!f || c.has(f)));
853
+ i.$$.dirty & /*feature*/
854
854
  1 && t(6, r = ((M = (E = o.properties) == null ? void 0 : E.categories) == null ? void 0 : M.join(", ")) ?? ((v = (C = o.properties) == null ? void 0 : C.place_type_name) == null ? void 0 : v[0]) ?? o.place_type[0]);
855
- }, t(11, i = (d == null ? void 0 : d.length) ?? 0), [
855
+ }, t(11, n = (d == null ? void 0 : d.length) ?? 0), [
856
856
  o,
857
857
  l,
858
858
  s,
@@ -860,19 +860,19 @@ function nr(n, e, t) {
860
860
  a,
861
861
  f,
862
862
  r,
863
- m,
863
+ g,
864
864
  y,
865
865
  c,
866
866
  h,
867
- i,
867
+ n,
868
868
  b,
869
869
  w,
870
870
  L
871
871
  ];
872
872
  }
873
- class rr extends Te {
873
+ class lr extends Oe {
874
874
  constructor(e) {
875
- super(), Re(this, e, nr, ir, Pe, {
875
+ super(), Ie(this, e, sr, or, Re, {
876
876
  feature: 0,
877
877
  selected: 1,
878
878
  showPlaceType: 2,
@@ -881,92 +881,92 @@ class rr extends Te {
881
881
  });
882
882
  }
883
883
  }
884
- function or(n) {
884
+ function ur(i) {
885
885
  let e;
886
886
  return {
887
887
  c() {
888
888
  e = W("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>', p(e, "class", "svelte-7cmwmc");
889
889
  },
890
- m(t, i) {
891
- U(t, e, i);
890
+ m(t, n) {
891
+ U(t, e, n);
892
892
  },
893
893
  p: D,
894
894
  i: D,
895
895
  o: D,
896
896
  d(t) {
897
- t && B(e);
897
+ t && F(e);
898
898
  }
899
899
  };
900
900
  }
901
- class sr extends Te {
901
+ class ar extends Oe {
902
902
  constructor(e) {
903
- super(), Re(this, e, null, or, Pe, {});
903
+ super(), Ie(this, e, null, ur, Re, {});
904
904
  }
905
905
  }
906
- function lr(n) {
906
+ function cr(i) {
907
907
  let e, t;
908
908
  return {
909
909
  c() {
910
- e = de("svg"), t = de("path"), p(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"), p(e, "viewBox", "0 0 60.006 21.412"), p(e, "width", "14"), p(e, "height", "20"), p(e, "class", "svelte-en2qvf");
910
+ e = he("svg"), t = he("path"), p(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"), p(e, "viewBox", "0 0 60.006 21.412"), p(e, "width", "14"), p(e, "height", "20"), p(e, "class", "svelte-en2qvf");
911
911
  },
912
- m(i, r) {
913
- U(i, e, r), T(e, t);
912
+ m(n, r) {
913
+ U(n, e, r), R(e, t);
914
914
  },
915
915
  p: D,
916
916
  i: D,
917
917
  o: D,
918
- d(i) {
919
- i && B(e);
918
+ d(n) {
919
+ n && F(e);
920
920
  }
921
921
  };
922
922
  }
923
- class ur extends Te {
923
+ class fr extends Oe {
924
924
  constructor(e) {
925
- super(), Re(this, e, null, lr, Pe, {});
925
+ super(), Ie(this, e, null, cr, Re, {});
926
926
  }
927
927
  }
928
- function ar(n) {
929
- let e, t, i;
928
+ function dr(i) {
929
+ let e, t, n;
930
930
  return {
931
931
  c() {
932
- e = de("svg"), t = de("circle"), i = de("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(i, "d", "M12.063 12.063 7.635 7.635"), p(i, "class", "svelte-1aq105l"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "width", "13"), p(e, "height", "13"), p(e, "viewBox", "0 0 13 13"), p(e, "class", "svelte-1aq105l");
932
+ e = he("svg"), t = he("circle"), n = he("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(n, "d", "M12.063 12.063 7.635 7.635"), p(n, "class", "svelte-1aq105l"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "width", "13"), p(e, "height", "13"), p(e, "viewBox", "0 0 13 13"), p(e, "class", "svelte-1aq105l");
933
933
  },
934
934
  m(r, o) {
935
- U(r, e, o), T(e, t), T(e, i);
935
+ U(r, e, o), R(e, t), R(e, n);
936
936
  },
937
937
  p: D,
938
938
  i: D,
939
939
  o: D,
940
940
  d(r) {
941
- r && B(e);
941
+ r && F(e);
942
942
  }
943
943
  };
944
944
  }
945
- class cr extends Te {
945
+ class hr extends Oe {
946
946
  constructor(e) {
947
- super(), Re(this, e, null, ar, Pe, {});
947
+ super(), Ie(this, e, null, dr, Re, {});
948
948
  }
949
949
  }
950
- function fr(n, e, t) {
951
- const i = e[1], r = e[0], o = i - r;
952
- return n === i && t ? n : ((n - r) % o + o) % o + r;
950
+ function mr(i, e, t) {
951
+ const n = e[1], r = e[0], o = n - r;
952
+ return i === n && t ? i : ((i - r) % o + o) % o + r;
953
953
  }
954
- function ct(n) {
955
- const e = [...n];
954
+ function ct(i) {
955
+ const e = [...i];
956
956
  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;
957
957
  }
958
- let Ue;
959
- async function dr(n, e, t) {
960
- const i = n == null ? void 0 : n.getCenterAndZoom();
958
+ let je;
959
+ async function gr(i, e, t) {
960
+ const n = i == null ? void 0 : i.getCenterAndZoom();
961
961
  for (const r of e ?? [])
962
- if (!(i && (r.minZoom != null && r.minZoom > i[0] || r.maxZoom != null && r.maxZoom < i[0]))) {
962
+ if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
963
963
  if (r.type === "fixed")
964
964
  return r.coordinates.join(",");
965
965
  e: if (r.type === "client-geolocation") {
966
- if (Ue && r.cachedLocationExpiry && Ue.time + r.cachedLocationExpiry > Date.now()) {
967
- if (!Ue.coords)
966
+ if (je && r.cachedLocationExpiry && je.time + r.cachedLocationExpiry > Date.now()) {
967
+ if (!je.coords)
968
968
  break e;
969
- return Ue.coords;
969
+ return je.coords;
970
970
  }
971
971
  let o;
972
972
  try {
@@ -987,7 +987,7 @@ async function dr(n, e, t) {
987
987
  }), o;
988
988
  } catch {
989
989
  } finally {
990
- r.cachedLocationExpiry && (Ue = {
990
+ r.cachedLocationExpiry && (je = {
991
991
  time: Date.now(),
992
992
  coords: o
993
993
  });
@@ -997,76 +997,76 @@ async function dr(n, e, t) {
997
997
  }
998
998
  if (r.type === "server-geolocation")
999
999
  return "ip";
1000
- if (i && r.type === "map-center")
1001
- return i[1].toFixed(6) + "," + i[2].toFixed(6);
1000
+ if (n && r.type === "map-center")
1001
+ return n[1].toFixed(6) + "," + n[2].toFixed(6);
1002
1002
  }
1003
1003
  }
1004
- const hr = /^(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, ai = /^([+-]?[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,})$/, ci = /^(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, fi = /^(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, di = /^(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, hi = /^(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;
1005
- function gr(n) {
1006
- if (!["DMS", "DM", "DD"].includes(n))
1004
+ const yr = /^(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, fi = /^([+-]?[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,})$/, di = /^(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, hi = /^(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, mi = /^(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, gi = /^(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;
1005
+ function pr(i) {
1006
+ if (!["DMS", "DM", "DD"].includes(i))
1007
1007
  throw new Error("invalid format specified");
1008
1008
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
1009
- const e = this.decimalCoordinates.split(",").map((h) => Number(h.trim())), t = Number(e[0]), i = Number(e[1]), r = Math.abs(t), o = Math.abs(i), l = t > 0 ? "N" : "S", s = i > 0 ? "E" : "W";
1009
+ const e = this.decimalCoordinates.split(",").map((h) => Number(h.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), o = Math.abs(n), l = t > 0 ? "N" : "S", s = n > 0 ? "E" : "W";
1010
1010
  let c;
1011
- n == "DD" && (c = `${r}° ${l}, ${o}° ${s}`);
1011
+ i == "DD" && (c = `${r}° ${l}, ${o}° ${s}`);
1012
1012
  const u = Math.floor(r), d = Math.floor(o), a = (r - u) * 60, f = (o - d) * 60;
1013
- if (n == "DM") {
1014
- let h = gi(a, 3).toFixed(3).padStart(6, "0"), m = gi(f, 3).toFixed(3).padStart(6, "0");
1015
- h.endsWith(".000") && m.endsWith(".000") && (h = h.replace(/\.000$/, ""), m = m.replace(/\.000$/, "")), c = `${u}° ${h}' ${l}, ${d}° ${m}' ${s}`;
1013
+ if (i == "DM") {
1014
+ let h = yi(a, 3).toFixed(3).padStart(6, "0"), g = yi(f, 3).toFixed(3).padStart(6, "0");
1015
+ h.endsWith(".000") && g.endsWith(".000") && (h = h.replace(/\.000$/, ""), g = g.replace(/\.000$/, "")), c = `${u}° ${h}' ${l}, ${d}° ${g}' ${s}`;
1016
1016
  }
1017
- if (n == "DMS") {
1018
- const h = Math.floor(a), m = Math.floor(f);
1019
- let y = ((a - h) * 60).toFixed(1).padStart(4, "0"), b = ((f - m) * 60).toFixed(1).padStart(4, "0");
1020
- const w = h.toString().padStart(2, "0"), L = m.toString().padStart(2, "0");
1017
+ if (i == "DMS") {
1018
+ const h = Math.floor(a), g = Math.floor(f);
1019
+ let y = ((a - h) * 60).toFixed(1).padStart(4, "0"), b = ((f - g) * 60).toFixed(1).padStart(4, "0");
1020
+ const w = h.toString().padStart(2, "0"), L = g.toString().padStart(2, "0");
1021
1021
  y.endsWith(".0") && b.endsWith(".0") && (y = y.replace(/\.0$/, ""), b = b.replace(/\.0$/, "")), c = `${u}° ${w}' ${y}" ${l}, ${d}° ${L}' ${b}" ${s}`;
1022
1022
  }
1023
1023
  return c;
1024
1024
  } else
1025
1025
  throw new Error("no decimal coordinates to convert");
1026
1026
  }
1027
- function gi(n, e) {
1027
+ function yi(i, e) {
1028
1028
  const t = Math.pow(10, e);
1029
- return Math.round((n + Number.EPSILON) * t) / t;
1029
+ return Math.round((i + Number.EPSILON) * t) / t;
1030
1030
  }
1031
- function Ft(n, e) {
1032
- e || (e = 5), n = n.replace(/\s+/g, " ").trim();
1033
- let t = null, i = null, r = "", o = "", l = null, s = [], c = !1;
1034
- if (hr.test(n))
1031
+ function Ut(i, e) {
1032
+ e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1033
+ let t = null, n = null, r = "", o = "", l = null, s = [], c = !1;
1034
+ if (yr.test(i))
1035
1035
  throw new Error("invalid coordinate value");
1036
- if (ai.test(n))
1037
- if (s = ai.exec(n), c = Ge(s), c)
1038
- t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), i = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (i *= -1), l = "DM";
1036
+ if (fi.test(i))
1037
+ if (s = fi.exec(i), c = qe(s), c)
1038
+ t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), l = "DM";
1039
1039
  else
1040
1040
  throw new Error("invalid coordinate format");
1041
- else if (ci.test(n))
1042
- if (s = ci.exec(n), c = Ge(s), c) {
1043
- if (t = s[2], i = s[6], t.includes(",") && (t = t.replace(",", ".")), i.includes(",") && (i = i.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
1041
+ else if (di.test(i))
1042
+ if (s = di.exec(i), c = qe(s), c) {
1043
+ if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
1044
1044
  throw new Error("integer only coordinate provided");
1045
- if (Number(Math.round(i)) == Number(i))
1045
+ if (Number(Math.round(n)) == Number(n))
1046
1046
  throw new Error("integer only coordinate provided");
1047
1047
  s[1] ? (r = s[1], o = s[5]) : s[4] && (r = s[4], o = s[8]);
1048
1048
  } else
1049
1049
  throw new Error("invalid decimal coordinate format");
1050
- else if (fi.test(n))
1051
- if (s = fi.exec(n), c = Ge(s), c)
1052
- t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[9])), s[11] && (i += s[11] / 60), s[13] && (i += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
1050
+ else if (hi.test(i))
1051
+ if (s = hi.exec(i), c = qe(s), c)
1052
+ t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
1053
1053
  else
1054
1054
  throw new Error("invalid DMS coordinates format");
1055
- else if (di.test(n))
1056
- if (s = di.exec(n), c = Ge(s), c)
1057
- t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[10])), s[12] && (i += s[12] / 60), s[14] && (i += s[14] / 3600), parseInt(s[10]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1055
+ else if (mi.test(i))
1056
+ if (s = mi.exec(i), c = qe(s), c)
1057
+ t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1058
1058
  else
1059
1059
  throw new Error("invalid DMS coordinates format");
1060
- else if (hi.test(n)) {
1061
- if (s = hi.exec(n), c = Ge(s), s.filter((u) => u).length <= 5)
1060
+ else if (gi.test(i)) {
1061
+ if (s = gi.exec(i), c = qe(s), s.filter((u) => u).length <= 5)
1062
1062
  throw new Error("invalid coordinates format");
1063
1063
  if (c)
1064
- t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[10])), s[12] && (i += s[12].replace(",", ".") / 60), s[14] && (i += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1064
+ t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1065
1065
  else
1066
1066
  throw new Error("invalid coordinates format");
1067
1067
  }
1068
1068
  if (c) {
1069
- if (Math.abs(i) >= 180)
1069
+ if (Math.abs(n) >= 180)
1070
1070
  throw new Error("invalid longitude value");
1071
1071
  if (Math.abs(t) >= 90)
1072
1072
  throw new Error("invalid latitude value");
@@ -1074,25 +1074,25 @@ function Ft(n, e) {
1074
1074
  throw new Error("invalid coordinates value");
1075
1075
  if (r && r == o)
1076
1076
  throw new Error("invalid coordinates format");
1077
- t.toString().includes(",") && (t = t.replace(",", ".")), i.toString().includes(",") && (i = i.replace(",", "."));
1077
+ t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
1078
1078
  let u = /S|SOUTH/i;
1079
- u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(o) && i > 0 && (i = -1 * i);
1079
+ u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(o) && n > 0 && (n = -1 * n);
1080
1080
  const d = s[0].trim();
1081
1081
  let a, f;
1082
- const h = /[,/;\u0020]/g, m = d.match(h);
1083
- if (m == null) {
1084
- const w = Math.floor(n.length / 2);
1082
+ const h = /[,/;\u0020]/g, g = d.match(h);
1083
+ if (g == null) {
1084
+ const w = Math.floor(i.length / 2);
1085
1085
  a = d.substring(0, w).trim(), f = d.substring(w).trim();
1086
1086
  } else {
1087
1087
  let w;
1088
- m.length % 2 == 1 ? w = Math.floor(m.length / 2) : w = m.length / 2 - 1;
1088
+ g.length % 2 == 1 ? w = Math.floor(g.length / 2) : w = g.length / 2 - 1;
1089
1089
  let L = 0;
1090
1090
  if (w == 0)
1091
- L = d.indexOf(m[0]), a = d.substring(0, L).trim(), f = d.substring(L + 1).trim();
1091
+ L = d.indexOf(g[0]), a = d.substring(0, L).trim(), f = d.substring(L + 1).trim();
1092
1092
  else {
1093
1093
  let S = 0, E = 0;
1094
1094
  for (; S <= w; )
1095
- L = d.indexOf(m[S], E), E = L + 1, S++;
1095
+ L = d.indexOf(g[S], E), E = L + 1, S++;
1096
1096
  a = d.substring(0, L).trim(), f = d.substring(L + 1).trim();
1097
1097
  }
1098
1098
  }
@@ -1104,29 +1104,29 @@ function Ft(n, e) {
1104
1104
  throw new Error("invalid coordinates format");
1105
1105
  if (/^\d+$/.test(a) || /^\d+$/.test(f))
1106
1106
  throw new Error("degree only coordinate/s provided");
1107
- return t = Number(Number(t).toFixed(e)), i = Number(Number(i).toFixed(e)), Object.freeze({
1107
+ return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
1108
1108
  verbatimCoordinates: d,
1109
1109
  verbatimLatitude: a,
1110
1110
  verbatimLongitude: f,
1111
1111
  decimalLatitude: t,
1112
- decimalLongitude: i,
1113
- decimalCoordinates: `${t},${i}`,
1112
+ decimalLongitude: n,
1113
+ decimalCoordinates: `${t},${n}`,
1114
1114
  originalFormat: l,
1115
- closeEnough: mr,
1116
- toCoordinateFormat: gr
1115
+ closeEnough: vr,
1116
+ toCoordinateFormat: pr
1117
1117
  });
1118
1118
  } else
1119
1119
  throw new Error("coordinates pattern match failed");
1120
1120
  }
1121
- function Ge(n) {
1122
- if (!isNaN(n[0]))
1121
+ function qe(i) {
1122
+ if (!isNaN(i[0]))
1123
1123
  return !1;
1124
- const e = [...n];
1124
+ const e = [...i];
1125
1125
  if (e.shift(), e.length % 2 > 0)
1126
1126
  return !1;
1127
- const t = /^[-+]?\d+([\.,]\d+)?$/, i = /[eastsouthnorthwest]+/i, r = e.length / 2;
1127
+ const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
1128
1128
  for (let o = 0; o < r; o++) {
1129
- const l = e[o], s = e[o + r], c = t.test(l) && t.test(s), u = i.test(l) && i.test(s), d = l == s;
1129
+ const l = e[o], s = e[o + r], c = t.test(l) && t.test(s), u = n.test(l) && n.test(s), d = l == s;
1130
1130
  if (!(l == null && s == null)) {
1131
1131
  if (l == null || s == null)
1132
1132
  return !1;
@@ -1137,28 +1137,28 @@ function Ge(n) {
1137
1137
  }
1138
1138
  return !0;
1139
1139
  }
1140
- function mi(n, e) {
1141
- const t = Math.abs(n - e);
1140
+ function pi(i, e) {
1141
+ const t = Math.abs(i - e);
1142
1142
  return Number(t.toFixed(6)) <= 1e-5;
1143
1143
  }
1144
- function mr(n) {
1145
- if (!n)
1144
+ function vr(i) {
1145
+ if (!i)
1146
1146
  throw new Error("coords must be provided");
1147
- if (n.includes(",")) {
1148
- const e = n.split(",");
1147
+ if (i.includes(",")) {
1148
+ const e = i.split(",");
1149
1149
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1150
1150
  throw new Error("coords are not valid decimals");
1151
- return mi(this.decimalLatitude, Number(e[0])) && mi(this.decimalLongitude, e[1]);
1151
+ return pi(this.decimalLatitude, Number(e[0])) && pi(this.decimalLongitude, e[1]);
1152
1152
  } else
1153
1153
  throw new Error("coords being tested must be separated by a comma");
1154
1154
  }
1155
- const yr = Object.freeze({
1155
+ const br = Object.freeze({
1156
1156
  DMS: "DMS",
1157
1157
  DM: "DM",
1158
1158
  DD: "DD"
1159
1159
  });
1160
- Ft.to = yr;
1161
- const pr = [
1160
+ Ut.to = br;
1161
+ const wr = [
1162
1162
  {
1163
1163
  verbatimCoordinates: "40.123, -74.123",
1164
1164
  verbatimLatitude: "40.123",
@@ -1299,10 +1299,10 @@ const pr = [
1299
1299
  verbatimLatitude: "40 7 22.8",
1300
1300
  verbatimLongitude: "-74 7 22.8"
1301
1301
  }
1302
- ], vr = {
1302
+ ], _r = {
1303
1303
  decimalLatitude: 40.123,
1304
1304
  decimalLongitude: -74.123
1305
- }, br = [
1305
+ }, Er = [
1306
1306
  {
1307
1307
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1308
1308
  verbatimLatitude: `50°4'17.698"south`,
@@ -1387,7 +1387,7 @@ const pr = [
1387
1387
  decimalLatitude: -18.4,
1388
1388
  decimalLongitude: 22.75
1389
1389
  }
1390
- ], wr = [
1390
+ ], Lr = [
1391
1391
  {
1392
1392
  verbatimCoordinates: "10.432342S 10.6345345E",
1393
1393
  verbatimLatitude: "10.432342S",
@@ -1522,72 +1522,72 @@ const pr = [
1522
1522
  decimalLongitude: 18.33453
1523
1523
  }
1524
1524
  ];
1525
- function _r() {
1526
- const n = [];
1527
- return pr.forEach((e) => {
1528
- e.decimalLatitude ? n.push(e) : n.push({ ...e, ...vr });
1529
- }), [...n, ...br, ...wr];
1530
- }
1531
- const Er = _r();
1532
- Ft.formats = Er.map((n) => n.verbatimCoordinates);
1533
- const Lr = Ft;
1534
- function yi(n, e, t) {
1535
- const i = n.slice();
1536
- return i[84] = e[t], i[86] = t, i;
1537
- }
1538
- function pi(n) {
1525
+ function Sr() {
1526
+ const i = [];
1527
+ return wr.forEach((e) => {
1528
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ..._r });
1529
+ }), [...i, ...Er, ...Lr];
1530
+ }
1531
+ const xr = Sr();
1532
+ Ut.formats = xr.map((i) => i.verbatimCoordinates);
1533
+ const Mr = Ut;
1534
+ function vi(i, e, t) {
1535
+ const n = i.slice();
1536
+ return n[87] = e[t], n[89] = t, n;
1537
+ }
1538
+ function bi(i) {
1539
1539
  let e, t;
1540
- return e = new sr({}), {
1540
+ return e = new ar({}), {
1541
1541
  c() {
1542
- Le(e.$$.fragment);
1542
+ xe(e.$$.fragment);
1543
1543
  },
1544
- m(i, r) {
1545
- ge(e, i, r), t = !0;
1544
+ m(n, r) {
1545
+ ge(e, n, r), t = !0;
1546
1546
  },
1547
- i(i) {
1548
- t || (G(e.$$.fragment, i), t = !0);
1547
+ i(n) {
1548
+ t || (G(e.$$.fragment, n), t = !0);
1549
1549
  },
1550
- o(i) {
1551
- Y(e.$$.fragment, i), t = !1;
1550
+ o(n) {
1551
+ Y(e.$$.fragment, n), t = !1;
1552
1552
  },
1553
- d(i) {
1554
- me(e, i);
1553
+ d(n) {
1554
+ ye(e, n);
1555
1555
  }
1556
1556
  };
1557
1557
  }
1558
- function vi(n) {
1559
- let e, t, i, r, o;
1560
- return t = new ur({}), {
1558
+ function wi(i) {
1559
+ let e, t, n, r, o;
1560
+ return t = new fr({}), {
1561
1561
  c() {
1562
- e = W("button"), Le(t.$$.fragment), p(e, "type", "button"), p(
1562
+ e = W("button"), xe(t.$$.fragment), p(e, "type", "button"), p(
1563
1563
  e,
1564
1564
  "title",
1565
1565
  /*reverseButtonTitle*/
1566
- n[9]
1567
- ), p(e, "class", "svelte-bz0zu3"), be(
1566
+ i[9]
1567
+ ), p(e, "class", "svelte-bz0zu3"), _e(
1568
1568
  e,
1569
1569
  "active",
1570
1570
  /*reverseActive*/
1571
- n[0]
1571
+ i[0]
1572
1572
  );
1573
1573
  },
1574
1574
  m(l, s) {
1575
- U(l, e, s), ge(t, e, null), i = !0, r || (o = ee(
1575
+ U(l, e, s), ge(t, e, null), n = !0, r || (o = ee(
1576
1576
  e,
1577
1577
  "click",
1578
1578
  /*click_handler_2*/
1579
- n[69]
1579
+ i[71]
1580
1580
  ), r = !0);
1581
1581
  },
1582
1582
  p(l, s) {
1583
- (!i || s[0] & /*reverseButtonTitle*/
1583
+ (!n || s[0] & /*reverseButtonTitle*/
1584
1584
  512) && p(
1585
1585
  e,
1586
1586
  "title",
1587
1587
  /*reverseButtonTitle*/
1588
1588
  l[9]
1589
- ), (!i || s[0] & /*reverseActive*/
1590
- 1) && be(
1589
+ ), (!n || s[0] & /*reverseActive*/
1590
+ 1) && _e(
1591
1591
  e,
1592
1592
  "active",
1593
1593
  /*reverseActive*/
@@ -1595,30 +1595,30 @@ function vi(n) {
1595
1595
  );
1596
1596
  },
1597
1597
  i(l) {
1598
- i || (G(t.$$.fragment, l), i = !0);
1598
+ n || (G(t.$$.fragment, l), n = !0);
1599
1599
  },
1600
1600
  o(l) {
1601
- Y(t.$$.fragment, l), i = !1;
1601
+ Y(t.$$.fragment, l), n = !1;
1602
1602
  },
1603
1603
  d(l) {
1604
- l && B(e), me(t), r = !1, o();
1604
+ l && F(e), ye(t), r = !1, o();
1605
1605
  }
1606
1606
  };
1607
1607
  }
1608
- function Sr(n) {
1609
- let e, t = [], i = /* @__PURE__ */ new Map(), r, o, l, s = li(
1608
+ function kr(i) {
1609
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s = ai(
1610
1610
  /*listFeatures*/
1611
- n[14]
1611
+ i[14]
1612
1612
  );
1613
1613
  const c = (u) => (
1614
1614
  /*feature*/
1615
- u[84].id + /*feature*/
1616
- (u[84].address ? "," + /*feature*/
1617
- u[84].address : "")
1615
+ u[87].id + /*feature*/
1616
+ (u[87].address ? "," + /*feature*/
1617
+ u[87].address : "")
1618
1618
  );
1619
1619
  for (let u = 0; u < s.length; u += 1) {
1620
- let d = yi(n, s, u), a = c(d);
1621
- i.set(a, t[u] = bi(a, d));
1620
+ let d = vi(i, s, u), a = c(d);
1621
+ n.set(a, t[u] = _i(a, d));
1622
1622
  }
1623
1623
  return {
1624
1624
  c() {
@@ -1636,22 +1636,22 @@ function Sr(n) {
1636
1636
  e,
1637
1637
  "mouseleave",
1638
1638
  /*mouseleave_handler*/
1639
- n[73]
1639
+ i[75]
1640
1640
  ),
1641
1641
  ee(
1642
1642
  e,
1643
1643
  "blur",
1644
1644
  /*blur_handler_1*/
1645
- n[74]
1645
+ i[76]
1646
1646
  )
1647
1647
  ], o = !0);
1648
1648
  },
1649
1649
  p(u, d) {
1650
1650
  d[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1651
- 17880064 && (s = li(
1651
+ 17880064 && (s = ai(
1652
1652
  /*listFeatures*/
1653
1653
  u[14]
1654
- ), lt(), t = jn(t, d, c, 1, u, s, i, e, Gn, bi, null, yi), ut());
1654
+ ), lt(), t = Vn(t, d, c, 1, u, s, n, e, Qn, _i, null, vi), ut());
1655
1655
  },
1656
1656
  i(u) {
1657
1657
  if (!r) {
@@ -1666,28 +1666,28 @@ function Sr(n) {
1666
1666
  r = !1;
1667
1667
  },
1668
1668
  d(u) {
1669
- u && B(e);
1669
+ u && F(e);
1670
1670
  for (let d = 0; d < t.length; d += 1)
1671
1671
  t[d].d();
1672
- o = !1, ye(l);
1672
+ o = !1, pe(l);
1673
1673
  }
1674
1674
  };
1675
1675
  }
1676
- function xr(n) {
1677
- let e, t, i, r, o, l;
1678
- return t = new Gi({}), {
1676
+ function Cr(i) {
1677
+ let e, t, n, r, o, l;
1678
+ return t = new qi({}), {
1679
1679
  c() {
1680
- e = W("div"), Le(t.$$.fragment), i = ie(), r = W("div"), o = Ee(
1680
+ e = W("div"), xe(t.$$.fragment), n = ie(), r = W("div"), o = Se(
1681
1681
  /*noResultsMessage*/
1682
- n[7]
1682
+ i[7]
1683
1683
  ), p(r, "class", "svelte-bz0zu3"), p(e, "class", "no-results svelte-bz0zu3");
1684
1684
  },
1685
1685
  m(s, c) {
1686
- U(s, e, c), ge(t, e, null), T(e, i), T(e, r), T(r, o), l = !0;
1686
+ U(s, e, c), ge(t, e, null), R(e, n), R(e, r), R(r, o), l = !0;
1687
1687
  },
1688
1688
  p(s, c) {
1689
1689
  (!l || c[0] & /*noResultsMessage*/
1690
- 128) && Qe(
1690
+ 128) && Ze(
1691
1691
  o,
1692
1692
  /*noResultsMessage*/
1693
1693
  s[7]
@@ -1700,47 +1700,47 @@ function xr(n) {
1700
1700
  Y(t.$$.fragment, s), l = !1;
1701
1701
  },
1702
1702
  d(s) {
1703
- s && B(e), me(t);
1703
+ s && F(e), ye(t);
1704
1704
  }
1705
1705
  };
1706
1706
  }
1707
- function Mr(n) {
1707
+ function Nr(i) {
1708
1708
  let e = "", t;
1709
1709
  return {
1710
1710
  c() {
1711
- t = Ee(e);
1711
+ t = Se(e);
1712
1712
  },
1713
- m(i, r) {
1714
- U(i, t, r);
1713
+ m(n, r) {
1714
+ U(n, t, r);
1715
1715
  },
1716
1716
  p: D,
1717
1717
  i: D,
1718
1718
  o: D,
1719
- d(i) {
1720
- i && B(t);
1719
+ d(n) {
1720
+ n && F(t);
1721
1721
  }
1722
1722
  };
1723
1723
  }
1724
- function kr(n) {
1725
- let e, t, i, r, o, l, s, c, u, d, a;
1726
- return t = new Gi({}), c = new Ui({}), {
1724
+ function Pr(i) {
1725
+ let e, t, n, r, o, l, s, c, u, d, a;
1726
+ return t = new qi({}), c = new ji({}), {
1727
1727
  c() {
1728
- e = W("div"), Le(t.$$.fragment), i = ie(), r = W("div"), o = Ee(
1728
+ e = W("div"), xe(t.$$.fragment), n = ie(), r = W("div"), o = Se(
1729
1729
  /*errorMessage*/
1730
- n[6]
1731
- ), l = ie(), s = W("button"), Le(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1730
+ i[6]
1731
+ ), l = ie(), s = W("button"), xe(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1732
1732
  },
1733
1733
  m(f, h) {
1734
- U(f, e, h), ge(t, e, null), T(e, i), T(e, r), T(r, o), T(e, l), T(e, s), ge(c, s, null), u = !0, d || (a = ee(
1734
+ U(f, e, h), ge(t, e, null), R(e, n), R(e, r), R(r, o), R(e, l), R(e, s), ge(c, s, null), u = !0, d || (a = ee(
1735
1735
  s,
1736
1736
  "click",
1737
1737
  /*click_handler_3*/
1738
- n[70]
1738
+ i[72]
1739
1739
  ), d = !0);
1740
1740
  },
1741
1741
  p(f, h) {
1742
1742
  (!u || h[0] & /*errorMessage*/
1743
- 64) && Qe(
1743
+ 64) && Ze(
1744
1744
  o,
1745
1745
  /*errorMessage*/
1746
1746
  f[6]
@@ -1753,35 +1753,35 @@ function kr(n) {
1753
1753
  Y(t.$$.fragment, f), Y(c.$$.fragment, f), u = !1;
1754
1754
  },
1755
1755
  d(f) {
1756
- f && B(e), me(t), me(c), d = !1, a();
1756
+ f && F(e), ye(t), ye(c), d = !1, a();
1757
1757
  }
1758
1758
  };
1759
1759
  }
1760
- function bi(n, e) {
1761
- let t, i, r;
1760
+ function _i(i, e) {
1761
+ let t, n, r;
1762
1762
  function o() {
1763
1763
  return (
1764
1764
  /*mouseenter_handler*/
1765
- e[71](
1765
+ e[73](
1766
1766
  /*i*/
1767
- e[86]
1767
+ e[89]
1768
1768
  )
1769
1769
  );
1770
1770
  }
1771
1771
  function l() {
1772
1772
  return (
1773
1773
  /*focus_handler_1*/
1774
- e[72](
1774
+ e[74](
1775
1775
  /*feature*/
1776
- e[84]
1776
+ e[87]
1777
1777
  )
1778
1778
  );
1779
1779
  }
1780
- return i = new rr({
1780
+ return n = new lr({
1781
1781
  props: {
1782
1782
  feature: (
1783
1783
  /*feature*/
1784
- e[84]
1784
+ e[87]
1785
1785
  ),
1786
1786
  showPlaceType: (
1787
1787
  /*showPlaceType*/
@@ -1790,7 +1790,7 @@ function bi(n, e) {
1790
1790
  selected: (
1791
1791
  /*selectedItemIndex*/
1792
1792
  e[15] === /*i*/
1793
- e[86]
1793
+ e[89]
1794
1794
  ),
1795
1795
  missingIconsCache: (
1796
1796
  /*missingIconsCache*/
@@ -1801,161 +1801,161 @@ function bi(n, e) {
1801
1801
  e[12]
1802
1802
  )
1803
1803
  }
1804
- }), i.$on("mouseenter", o), i.$on("focus", l), {
1805
- key: n,
1804
+ }), n.$on("mouseenter", o), n.$on("focus", l), {
1805
+ key: i,
1806
1806
  first: null,
1807
1807
  c() {
1808
- t = Tn(), Le(i.$$.fragment), this.first = t;
1808
+ t = Wn(), xe(n.$$.fragment), this.first = t;
1809
1809
  },
1810
1810
  m(s, c) {
1811
- U(s, t, c), ge(i, s, c), r = !0;
1811
+ U(s, t, c), ge(n, s, c), r = !0;
1812
1812
  },
1813
1813
  p(s, c) {
1814
1814
  e = s;
1815
1815
  const u = {};
1816
1816
  c[0] & /*listFeatures*/
1817
1817
  16384 && (u.feature = /*feature*/
1818
- e[84]), c[0] & /*showPlaceType*/
1818
+ e[87]), c[0] & /*showPlaceType*/
1819
1819
  1024 && (u.showPlaceType = /*showPlaceType*/
1820
1820
  e[10]), c[0] & /*selectedItemIndex, listFeatures*/
1821
1821
  49152 && (u.selected = /*selectedItemIndex*/
1822
1822
  e[15] === /*i*/
1823
- e[86]), c[0] & /*iconsBaseUrl*/
1823
+ e[89]), c[0] & /*iconsBaseUrl*/
1824
1824
  4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
1825
- e[12]), i.$set(u);
1825
+ e[12]), n.$set(u);
1826
1826
  },
1827
1827
  i(s) {
1828
- r || (G(i.$$.fragment, s), r = !0);
1828
+ r || (G(n.$$.fragment, s), r = !0);
1829
1829
  },
1830
1830
  o(s) {
1831
- Y(i.$$.fragment, s), r = !1;
1831
+ Y(n.$$.fragment, s), r = !1;
1832
1832
  },
1833
1833
  d(s) {
1834
- s && B(t), me(i, s);
1834
+ s && F(t), ye(n, s);
1835
1835
  }
1836
1836
  };
1837
1837
  }
1838
- function Cr(n) {
1839
- let e, t, i, r, o, l, s, c, u, d, a, f, h, m, y, b, w, L, S, E, M, C = !1;
1840
- o = new cr({}), a = new Ui({});
1838
+ function Tr(i) {
1839
+ let e, t, n, r, o, l, s, c, u, d, a, f, h, g, y, b, w, L, S, E, M, C = !1;
1840
+ o = new hr({}), a = new ji({});
1841
1841
  let v = (
1842
1842
  /*abortController*/
1843
- n[19] && pi()
1843
+ i[19] && bi()
1844
1844
  ), _ = (
1845
1845
  /*enableReverse*/
1846
- n[5] === "button" && vi(n)
1846
+ i[5] === "button" && wi(i)
1847
1847
  );
1848
1848
  const k = (
1849
1849
  /*#slots*/
1850
- n[61].default
1851
- ), I = Cn(
1850
+ i[63].default
1851
+ ), I = Tn(
1852
1852
  k,
1853
- n,
1853
+ i,
1854
1854
  /*$$scope*/
1855
- n[60],
1855
+ i[62],
1856
1856
  null
1857
- ), H = [kr, Mr, xr, Sr], O = [];
1857
+ ), Z = [Pr, Nr, Cr, kr], O = [];
1858
1858
  function J(x, A) {
1859
- var oe, ce;
1859
+ var le, fe;
1860
1860
  return (
1861
1861
  /*error*/
1862
1862
  x[18] ? 0 : (
1863
1863
  /*focusedDelayed*/
1864
1864
  x[16] ? (
1865
1865
  /*listFeatures*/
1866
- ((oe = x[14]) == null ? void 0 : oe.length) === 0 ? 2 : (
1866
+ ((le = x[14]) == null ? void 0 : le.length) === 0 ? 2 : (
1867
1867
  /*focusedDelayed*/
1868
1868
  x[16] && /*listFeatures*/
1869
- ((ce = x[14]) != null && ce.length) ? 3 : -1
1869
+ ((fe = x[14]) != null && fe.length) ? 3 : -1
1870
1870
  )
1871
1871
  ) : 1
1872
1872
  )
1873
1873
  );
1874
1874
  }
1875
- return ~(b = J(n)) && (w = O[b] = H[b](n)), {
1875
+ return ~(b = J(i)) && (w = O[b] = Z[b](i)), {
1876
1876
  c() {
1877
- e = ie(), t = W("form"), i = W("div"), r = W("button"), Le(o.$$.fragment), l = ie(), s = W("input"), c = ie(), u = W("div"), d = W("button"), Le(a.$$.fragment), f = ie(), v && v.c(), h = ie(), _ && _.c(), m = ie(), I && I.c(), y = ie(), w && w.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1877
+ e = ie(), t = W("form"), n = W("div"), r = W("button"), xe(o.$$.fragment), l = ie(), s = W("input"), c = ie(), u = W("div"), d = W("button"), xe(a.$$.fragment), f = ie(), v && v.c(), h = ie(), _ && _.c(), g = ie(), I && I.c(), y = ie(), w && w.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1878
1878
  s,
1879
1879
  "placeholder",
1880
1880
  /*placeholder*/
1881
- n[8]
1881
+ i[8]
1882
1882
  ), p(
1883
1883
  s,
1884
1884
  "aria-label",
1885
1885
  /*placeholder*/
1886
- n[8]
1886
+ i[8]
1887
1887
  ), p(s, "class", "svelte-bz0zu3"), p(d, "type", "button"), p(
1888
1888
  d,
1889
1889
  "title",
1890
1890
  /*clearButtonTitle*/
1891
- n[3]
1892
- ), p(d, "class", "svelte-bz0zu3"), p(u, "class", "clear-button-container svelte-bz0zu3"), be(
1891
+ i[3]
1892
+ ), p(d, "class", "svelte-bz0zu3"), p(u, "class", "clear-button-container svelte-bz0zu3"), _e(
1893
1893
  u,
1894
1894
  "displayable",
1895
1895
  /*searchValue*/
1896
- n[1] !== ""
1897
- ), p(i, "class", "input-group svelte-bz0zu3"), p(t, "tabindex", "0"), p(t, "class", L = ni(
1896
+ i[1] !== ""
1897
+ ), p(n, "class", "input-group svelte-bz0zu3"), p(t, "tabindex", "0"), p(t, "class", L = oi(
1898
1898
  /*className*/
1899
- n[2]
1900
- ) + " svelte-bz0zu3"), be(
1899
+ i[2]
1900
+ ) + " svelte-bz0zu3"), _e(
1901
1901
  t,
1902
1902
  "can-collapse",
1903
1903
  /*collapsed*/
1904
- n[4] && /*searchValue*/
1905
- n[1] === ""
1904
+ i[4] && /*searchValue*/
1905
+ i[1] === ""
1906
1906
  );
1907
1907
  },
1908
1908
  m(x, A) {
1909
- U(x, e, A), U(x, t, A), T(t, i), T(i, r), ge(o, r, null), T(i, l), T(i, s), n[63](s), ri(
1909
+ U(x, e, A), U(x, t, A), R(t, n), R(n, r), ge(o, r, null), R(n, l), R(n, s), i[65](s), si(
1910
1910
  s,
1911
1911
  /*searchValue*/
1912
- n[1]
1913
- ), T(i, c), T(i, u), T(u, d), ge(a, d, null), T(u, f), v && v.m(u, null), T(i, h), _ && _.m(i, null), T(i, m), I && I.m(i, null), T(t, y), ~b && O[b].m(t, null), S = !0, E || (M = [
1912
+ i[1]
1913
+ ), R(n, c), R(n, u), R(u, d), ge(a, d, null), R(u, f), v && v.m(u, null), R(n, h), _ && _.m(n, null), R(n, g), I && I.m(n, null), R(t, y), ~b && O[b].m(t, null), S = !0, E || (M = [
1914
1914
  ee(
1915
1915
  r,
1916
1916
  "click",
1917
1917
  /*click_handler*/
1918
- n[62]
1918
+ i[64]
1919
1919
  ),
1920
1920
  ee(
1921
1921
  s,
1922
1922
  "input",
1923
1923
  /*input_1_input_handler*/
1924
- n[64]
1924
+ i[66]
1925
1925
  ),
1926
1926
  ee(
1927
1927
  s,
1928
1928
  "focus",
1929
1929
  /*focus_handler*/
1930
- n[65]
1930
+ i[67]
1931
1931
  ),
1932
1932
  ee(
1933
1933
  s,
1934
1934
  "blur",
1935
1935
  /*blur_handler*/
1936
- n[66]
1936
+ i[68]
1937
1937
  ),
1938
1938
  ee(
1939
1939
  s,
1940
1940
  "keydown",
1941
1941
  /*handleKeyDown*/
1942
- n[22]
1942
+ i[22]
1943
1943
  ),
1944
1944
  ee(
1945
1945
  s,
1946
1946
  "input",
1947
1947
  /*input_handler*/
1948
- n[67]
1948
+ i[69]
1949
1949
  ),
1950
1950
  ee(
1951
1951
  d,
1952
1952
  "click",
1953
1953
  /*click_handler_1*/
1954
- n[68]
1954
+ i[70]
1955
1955
  ),
1956
- ee(t, "submit", In(
1957
- /*handleOnSubmit*/
1958
- n[21]
1956
+ ee(t, "submit", An(
1957
+ /*handleSubmit*/
1958
+ i[21]
1959
1959
  ))
1960
1960
  ], E = !0);
1961
1961
  },
@@ -1974,7 +1974,7 @@ function Cr(n) {
1974
1974
  x[8]
1975
1975
  ), A[0] & /*searchValue*/
1976
1976
  2 && s.value !== /*searchValue*/
1977
- x[1] && ri(
1977
+ x[1] && si(
1978
1978
  s,
1979
1979
  /*searchValue*/
1980
1980
  x[1]
@@ -1986,46 +1986,46 @@ function Cr(n) {
1986
1986
  x[3]
1987
1987
  ), /*abortController*/
1988
1988
  x[19] ? v ? A[0] & /*abortController*/
1989
- 524288 && G(v, 1) : (v = pi(), v.c(), G(v, 1), v.m(u, null)) : v && (lt(), Y(v, 1, 1, () => {
1989
+ 524288 && G(v, 1) : (v = bi(), v.c(), G(v, 1), v.m(u, null)) : v && (lt(), Y(v, 1, 1, () => {
1990
1990
  v = null;
1991
1991
  }), ut()), (!S || A[0] & /*searchValue*/
1992
- 2) && be(
1992
+ 2) && _e(
1993
1993
  u,
1994
1994
  "displayable",
1995
1995
  /*searchValue*/
1996
1996
  x[1] !== ""
1997
1997
  ), /*enableReverse*/
1998
1998
  x[5] === "button" ? _ ? (_.p(x, A), A[0] & /*enableReverse*/
1999
- 32 && G(_, 1)) : (_ = vi(x), _.c(), G(_, 1), _.m(i, m)) : _ && (lt(), Y(_, 1, 1, () => {
1999
+ 32 && G(_, 1)) : (_ = wi(x), _.c(), G(_, 1), _.m(n, g)) : _ && (lt(), Y(_, 1, 1, () => {
2000
2000
  _ = null;
2001
- }), ut()), I && I.p && (!S || A[1] & /*$$scope*/
2002
- 536870912) && Pn(
2001
+ }), ut()), I && I.p && (!S || A[2] & /*$$scope*/
2002
+ 1) && In(
2003
2003
  I,
2004
2004
  k,
2005
2005
  x,
2006
2006
  /*$$scope*/
2007
- x[60],
2008
- S ? Nn(
2007
+ x[62],
2008
+ S ? Rn(
2009
2009
  k,
2010
2010
  /*$$scope*/
2011
- x[60],
2011
+ x[62],
2012
2012
  A,
2013
2013
  null
2014
- ) : Rn(
2014
+ ) : On(
2015
2015
  /*$$scope*/
2016
- x[60]
2016
+ x[62]
2017
2017
  ),
2018
2018
  null
2019
2019
  );
2020
- let oe = b;
2021
- b = J(x), b === oe ? ~b && O[b].p(x, A) : (w && (lt(), Y(O[oe], 1, 1, () => {
2022
- O[oe] = null;
2023
- }), ut()), ~b ? (w = O[b], w ? w.p(x, A) : (w = O[b] = H[b](x), w.c()), G(w, 1), w.m(t, null)) : w = null), (!S || A[0] & /*className*/
2024
- 4 && L !== (L = ni(
2020
+ let le = b;
2021
+ b = J(x), b === le ? ~b && O[b].p(x, A) : (w && (lt(), Y(O[le], 1, 1, () => {
2022
+ O[le] = null;
2023
+ }), ut()), ~b ? (w = O[b], w ? w.p(x, A) : (w = O[b] = Z[b](x), w.c()), G(w, 1), w.m(t, null)) : w = null), (!S || A[0] & /*className*/
2024
+ 4 && L !== (L = oi(
2025
2025
  /*className*/
2026
2026
  x[2]
2027
2027
  ) + " svelte-bz0zu3")) && p(t, "class", L), (!S || A[0] & /*className, collapsed, searchValue*/
2028
- 22) && be(
2028
+ 22) && _e(
2029
2029
  t,
2030
2030
  "can-collapse",
2031
2031
  /*collapsed*/
@@ -2040,12 +2040,12 @@ function Cr(n) {
2040
2040
  Y(C), Y(o.$$.fragment, x), Y(a.$$.fragment, x), Y(v), Y(_), Y(I, x), Y(w), S = !1;
2041
2041
  },
2042
2042
  d(x) {
2043
- x && (B(e), B(t)), me(o), n[63](null), me(a), v && v.d(), _ && _.d(), I && I.d(x), ~b && O[b].d(), E = !1, ye(M);
2043
+ x && (F(e), F(t)), ye(o), i[65](null), ye(a), v && v.d(), _ && _.d(), I && I.d(x), ~b && O[b].d(), E = !1, pe(M);
2044
2044
  }
2045
2045
  };
2046
2046
  }
2047
- function Nr(n, e, t) {
2048
- let i, r, { $$slots: o = {}, $$scope: l } = e;
2047
+ function Rr(i, e, t) {
2048
+ let n, r, { $$slots: o = {}, $$scope: l } = e;
2049
2049
  const s = {
2050
2050
  continental_marine: 4,
2051
2051
  country: 4,
@@ -2070,69 +2070,76 @@ function Nr(n, e, t) {
2070
2070
  "poi.restaurant": 18,
2071
2071
  "poi.aerodrome": 13
2072
2072
  };
2073
- let { class: c = void 0 } = e, { apiKey: u } = e, { bbox: d = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: f = !1 } = e, { collapsed: h = !1 } = e, { country: m = void 0 } = e, { debounceSearch: y = 200 } = e, { enableReverse: b = "never" } = e, { errorMessage: w = "Something went wrong…" } = e, { filter: L = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: M = void 0 } = e, { limit: C = void 0 } = e, { mapController: v = void 0 } = e, { minLength: _ = 2 } = e, { noResultsMessage: k = "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: I = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: O = b === "always" } = e, { reverseButtonTitle: J = "toggle reverse geocoding" } = e, { searchValue: x = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: oe = "if-needed" } = e, { showResultsWhileTyping: ce = !0 } = e, { selectFirst: Ie = !0 } = e, { flyToSelected: gt = !1 } = e, { markerOnSelected: Xe = !0 } = e, { types: Me = void 0 } = e, { exhaustiveReverseGeocoding: mt = !1 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Je = s } = e, { apiUrl: yt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: pt = {} } = e, { iconsBaseUrl: jt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.7/icons/" } = e, { adjustUrlQuery: vt = () => {
2073
+ let { class: c = void 0 } = e, { apiKey: u } = e, { bbox: d = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: f = !1 } = e, { collapsed: h = !1 } = e, { country: g = void 0 } = e, { debounceSearch: y = 200 } = e, { enableReverse: b = "never" } = e, { errorMessage: w = "Something went wrong…" } = e, { filter: L = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: M = void 0 } = e, { limit: C = void 0 } = e, { mapController: v = void 0 } = e, { minLength: _ = 2 } = e, { noResultsMessage: k = "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: I = "Search" } = e, { proximity: Z = [{ type: "server-geolocation" }] } = e, { reverseActive: O = b === "always" } = e, { reverseButtonTitle: J = "toggle reverse geocoding" } = e, { searchValue: x = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: le = "if-needed" } = e, { showResultsWhileTyping: fe = !0 } = e, { autocompleteTimeout: mt = void 0 } = e, { selectFirst: We = !0 } = e, { flyToSelected: gt = !1 } = e, { markerOnSelected: Ke = !0 } = e, { types: Ce = void 0 } = e, { exhaustiveReverseGeocoding: yt = !1 } = e, { excludeTypes: Je = !1 } = e, { zoom: $e = s } = e, { apiUrl: pt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: vt = {} } = e, { iconsBaseUrl: Qt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.9/icons/" } = e, { adjustUrlQuery: bt = () => {
2074
2074
  } } = e;
2075
- function Zi() {
2076
- le.focus();
2075
+ function Yi() {
2076
+ ae.focus();
2077
2077
  }
2078
- function Hi() {
2079
- le.blur();
2078
+ function Xi() {
2079
+ ae.blur();
2080
2080
  }
2081
- function qt(g, F = !0, V = !1) {
2082
- t(1, x = g), F ? (t(15, z = -1), Vt()) : (Et(!V, V), setTimeout(() => {
2083
- le.focus(), le.select();
2081
+ function Vt(m, B = !0, q = !1) {
2082
+ t(1, x = m), B ? (t(15, z = -1), Ht()) : (Et(!q, q), setTimeout(() => {
2083
+ ae.focus(), ae.select();
2084
2084
  }));
2085
2085
  }
2086
- function Yi() {
2087
- t(14, R = void 0), t(56, N = void 0), t(15, z = -1);
2086
+ function Ki() {
2087
+ t(14, T = void 0), t(57, N = void 0), t(15, z = -1);
2088
2088
  }
2089
- function Xi() {
2090
- t(55, j = []), t(56, N = void 0);
2089
+ function Ji() {
2090
+ t(56, j = []), t(57, N = void 0);
2091
2091
  }
2092
- let Oe = !1, R, j, N, Qt = "", le, z = -1, ue, $e = [], ke, We, et, bt;
2093
- const Ki = /* @__PURE__ */ new Set(), pe = zn();
2094
- An(() => {
2095
- v && (v.setEventHandler(void 0), v.indicateReverse(!1), v.setSelectedMarker(-1), v.setMarkers(void 0, void 0, !1));
2092
+ let Ae = !1, T, j, N, Zt = "", ae, z = -1, ce, et = [], Ne, ve, ne, tt, wt;
2093
+ const $i = /* @__PURE__ */ new Set(), be = Dn();
2094
+ function en() {
2095
+ return !!ne;
2096
+ }
2097
+ Bn(() => {
2098
+ v && (v.setEventHandler(void 0), v.indicateReverse(!1), v.setSelectedMarker(-1), v.setFeatures(void 0, void 0, !1));
2096
2099
  });
2097
- function Vt(g) {
2098
- if (We && (clearTimeout(We), We = void 0), z > -1 && R)
2099
- t(56, N = R[z]), t(1, x = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ue = void 0), t(55, j = void 0), t(15, z = -1);
2100
+ function Ht(m) {
2101
+ if (ve && (window.clearTimeout(ve), ve = void 0), ne) {
2102
+ window.clearTimeout(ne), t(58, ne = void 0), Ue(x, { appendSpace: !0 });
2103
+ return;
2104
+ }
2105
+ if (z > -1 && T)
2106
+ t(57, N = T[z]), t(1, x = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ce = void 0), t(56, j = void 0), t(15, z = -1);
2100
2107
  else if (x) {
2101
- const F = g || !wt(x);
2102
- _t(x, { exact: !0 }).then(() => {
2103
- t(55, j = R), t(56, N = void 0), F && Ji();
2104
- }).catch((V) => t(18, ue = V));
2108
+ const B = m || !_t(x);
2109
+ Ue(x, { exact: !0 }).then(() => {
2110
+ t(56, j = T), t(57, N = void 0), B && tn();
2111
+ }).catch((q) => t(18, ce = q));
2105
2112
  }
2106
2113
  }
2107
- function wt(g) {
2114
+ function _t(m) {
2108
2115
  try {
2109
- return Lr(g, 6);
2116
+ return Mr(m, 6);
2110
2117
  } catch {
2111
2118
  return !1;
2112
2119
  }
2113
2120
  }
2114
- async function _t(g, { byId: F = !1, exact: V = !1 } = {}) {
2115
- t(18, ue = void 0), ke == null || ke.abort();
2121
+ async function Ue(m, { byId: B = !1, exact: q = !1, appendSpace: re = !1 } = {}) {
2122
+ t(18, ce = void 0), Ne == null || Ne.abort();
2116
2123
  const te = new AbortController();
2117
- t(19, ke = te);
2124
+ t(19, Ne = te);
2118
2125
  try {
2119
- const P = wt(g), q = new URLSearchParams();
2120
- if (M !== void 0 && q.set("language", Array.isArray(M) ? M.join(",") : M ?? ""), Me && q.set("types", Me.join(",")), Ke && q.set("excludeTypes", String(Ke)), d && q.set("bbox", d.map((tt) => tt.toFixed(6)).join(",")), m && q.set("country", Array.isArray(m) ? m.join(",") : m), !F && !P) {
2121
- const tt = await dr(v, H, te);
2122
- tt && q.set("proximity", tt), (V || !ce) && q.set("autocomplete", "false"), q.set("fuzzyMatch", String(E));
2126
+ const P = _t(m), H = new URLSearchParams();
2127
+ if (M !== void 0 && H.set("language", Array.isArray(M) ? M.join(",") : M ?? ""), Ce && H.set("types", Ce.join(",")), Je && H.set("excludeTypes", String(Je)), d && H.set("bbox", d.map((nt) => nt.toFixed(6)).join(",")), g && H.set("country", Array.isArray(g) ? g.join(",") : g), !B && !P) {
2128
+ const nt = await gr(v, Z, te);
2129
+ nt && H.set("proximity", nt), (q || !fe) && H.set("autocomplete", "false"), H.set("fuzzyMatch", String(E));
2123
2130
  }
2124
- C !== void 0 && (mt || !P || (Me == null ? void 0 : Me.length) === 1) && q.set("limit", String(C)), q.set("key", u), vt(q);
2125
- const ae = yt + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : g) + ".json?" + q.toString();
2126
- if (ae === Qt) {
2127
- F ? (t(14, R = void 0), t(56, N = $e[0])) : t(14, R = $e);
2131
+ C !== void 0 && (yt || !P || (Ce == null ? void 0 : Ce.length) === 1) && H.set("limit", String(C)), H.set("key", u), bt(H);
2132
+ const it = pt + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : m + (re ? " " : "")) + ".json?" + H.toString();
2133
+ if (it === Zt) {
2134
+ B ? (t(14, T = void 0), t(57, N = et[0])) : t(14, T = et);
2128
2135
  return;
2129
2136
  }
2130
- Qt = ae;
2131
- const St = await fetch(ae, { signal: te.signal, ...pt });
2137
+ Zt = it;
2138
+ const St = await fetch(it, { signal: te.signal, ...vt });
2132
2139
  if (!St.ok)
2133
2140
  throw new Error(await St.text());
2134
2141
  const xt = await St.json();
2135
- pe("response", { url: ae, featureCollection: xt }), F ? (t(14, R = void 0), t(56, N = xt.features[0]), $e = [N]) : (t(14, R = xt.features.filter(L)), P && R.unshift({
2142
+ be("response", { url: it, featureCollection: xt }), B ? (t(14, T = void 0), t(57, N = xt.features[0]), et = [N]) : (t(14, T = xt.features.filter(L)), P && T.unshift({
2136
2143
  type: "Feature",
2137
2144
  properties: {},
2138
2145
  id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
@@ -2150,143 +2157,148 @@ function Nr(n, e, t) {
2150
2157
  type: "Point",
2151
2158
  coordinates: [P.decimalLongitude, P.decimalLatitude]
2152
2159
  }
2153
- }), $e = R, P && le.focus());
2160
+ }), et = T, P && ae.focus());
2154
2161
  } catch (P) {
2155
2162
  if (P && typeof P == "object" && "name" in P && P.name === "AbortError")
2156
2163
  return;
2157
2164
  throw P;
2158
2165
  } finally {
2159
- te === ke && t(19, ke = void 0);
2166
+ te === Ne && t(19, Ne = void 0);
2160
2167
  }
2161
2168
  }
2162
- function Ji() {
2163
- var te;
2169
+ function tn() {
2170
+ var re;
2164
2171
  if (!(j != null && j.length) || !S)
2165
2172
  return;
2166
- const g = [180, 90, -180, -90], F = !j.some((P) => !P.matching_text);
2167
- let V;
2168
- for (const P of j) {
2169
- const q = De(P);
2170
- if (V = V === void 0 ? q : q === void 0 ? V : Math.max(V, q), F || !P.matching_text)
2171
- for (const ae of [0, 1, 2, 3])
2172
- g[ae] = Math[ae < 2 ? "min" : "max"](g[ae], ((te = P.bbox) == null ? void 0 : te[ae]) ?? P.center[ae % 2]);
2173
+ const m = [180, 90, -180, -90], B = !j.some((te) => !te.matching_text);
2174
+ let q;
2175
+ for (const te of j) {
2176
+ const P = Ge(te);
2177
+ if (q = q === void 0 ? P : P === void 0 ? q : Math.max(q, P), B || !te.matching_text)
2178
+ for (const H of [0, 1, 2, 3])
2179
+ m[H] = Math[H < 2 ? "min" : "max"](m[H], ((re = te.bbox) == null ? void 0 : re[H]) ?? te.center[H % 2]);
2173
2180
  }
2174
- v && j.length > 0 && (N && g[0] === g[2] && g[1] === g[3] ? v.flyTo(N.center, De(N)) : v.fitBounds(ct(g), 50, V));
2181
+ v && j.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? v.flyTo(N.center, Ge(N)) : v.fitBounds(ct(m), 50, q));
2175
2182
  }
2176
- function De(g) {
2177
- var V;
2178
- if (!g.bbox || g.bbox[0] !== g.bbox[2] && g.bbox[1] !== g.bbox[3])
2183
+ function Ge(m) {
2184
+ var q;
2185
+ if (!m.bbox || m.bbox[0] !== m.bbox[2] && m.bbox[1] !== m.bbox[3])
2179
2186
  return;
2180
- const F = g.id.replace(/\..*/, "");
2181
- return (Array.isArray((V = g.properties) == null ? void 0 : V.categories) ? g.properties.categories.reduce(
2182
- (te, P) => {
2183
- const q = Je[F + "." + P];
2184
- return te === void 0 ? q : q === void 0 ? te : Math.max(te, q);
2187
+ const B = m.id.replace(/\..*/, "");
2188
+ return (Array.isArray((q = m.properties) == null ? void 0 : q.categories) ? m.properties.categories.reduce(
2189
+ (re, te) => {
2190
+ const P = $e[B + "." + te];
2191
+ return re === void 0 ? P : P === void 0 ? re : Math.max(re, P);
2185
2192
  },
2186
2193
  void 0
2187
- ) : void 0) ?? Je[F];
2194
+ ) : void 0) ?? $e[B];
2188
2195
  }
2189
- function $i(g) {
2190
- t(0, O = b === "always"), t(14, R = void 0), t(56, N = void 0), t(15, z = -1), qt(g[1].toFixed(6) + ", " + fr(g[0], [-180, 180], !0).toFixed(6), !1, !0);
2196
+ function nn(m) {
2197
+ t(0, O = b === "always"), t(14, T = void 0), t(57, N = void 0), t(15, z = -1), Vt(m[1].toFixed(6) + ", " + mr(m[0], [-180, 180], !0).toFixed(6), !1, !0);
2191
2198
  }
2192
- function en(g) {
2193
- if (!R)
2199
+ function rn(m) {
2200
+ if (!T)
2194
2201
  return;
2195
- let F = g.key === "ArrowDown" ? 1 : g.key === "ArrowUp" ? -1 : 0;
2196
- F && (z === (Ie ? 0 : -1) && F === -1 && t(15, z = R.length), t(15, z += F), z >= R.length && t(15, z = -1), z < 0 && Ie && t(15, z = 0), g.preventDefault());
2202
+ let B = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
2203
+ B && (z === (We ? 0 : -1) && B === -1 && t(15, z = T.length), t(15, z += B), z >= T.length && t(15, z = -1), z < 0 && We && t(15, z = 0), m.preventDefault());
2197
2204
  }
2198
- function Et(g = !0, F = !1) {
2199
- if (t(18, ue = void 0), ce || F) {
2200
- if (We && clearTimeout(We), x.length < _)
2201
- return;
2202
- const V = x;
2203
- We = window.setTimeout(
2204
- () => {
2205
- _t(V).catch((te) => t(18, ue = te));
2206
- },
2207
- g ? y : 0
2208
- );
2209
- } else
2210
- t(14, R = void 0), t(18, ue = void 0);
2205
+ function Et(m = !0, B = !1) {
2206
+ if (t(18, ce = void 0), ve && (window.clearTimeout(ve), ve = void 0), ne && (window.clearTimeout(ne), t(58, ne = void 0)), !fe && !B || x.length < _) {
2207
+ t(14, T = void 0);
2208
+ return;
2209
+ }
2210
+ const q = x;
2211
+ ve = window.setTimeout(
2212
+ () => {
2213
+ ve = void 0, Ue(q).catch((re) => t(18, ce = re));
2214
+ },
2215
+ m ? y : 0
2216
+ ), x.endsWith(" ") || t(58, ne = window.setTimeout(
2217
+ () => {
2218
+ t(58, ne = void 0), Ue(q, { appendSpace: !0 }).catch((re) => t(18, ce = re));
2219
+ },
2220
+ mt
2221
+ ));
2211
2222
  }
2212
- function Lt(g) {
2213
- t(56, N = g), t(1, x = g.place_name), t(15, z = -1);
2223
+ function Lt(m) {
2224
+ t(57, N = m), t(1, x = m.place_name), t(15, z = -1);
2214
2225
  }
2215
- const tn = () => le.focus();
2216
- function nn(g) {
2217
- Pt[g ? "unshift" : "push"](() => {
2218
- le = g, t(17, le);
2226
+ const on = () => ae.focus();
2227
+ function sn(m) {
2228
+ Rt[m ? "unshift" : "push"](() => {
2229
+ ae = m, t(17, ae);
2219
2230
  });
2220
2231
  }
2221
- function rn() {
2222
- x = this.value, t(1, x), t(13, Oe), t(28, f);
2232
+ function ln() {
2233
+ x = this.value, t(1, x), t(13, Ae), t(28, f);
2223
2234
  }
2224
- const on = () => t(13, Oe = !0), sn = () => t(13, Oe = !1), ln = () => Et(), un = () => {
2225
- t(1, x = ""), le.focus();
2226
- }, an = () => t(0, O = !O), cn = () => t(18, ue = void 0), fn = (g) => t(15, z = g), dn = (g) => Lt(g), hn = () => {
2227
- Ie || t(15, z = -1);
2228
- }, gn = () => {
2235
+ const un = () => t(13, Ae = !0), an = () => t(13, Ae = !1), cn = () => Et(), fn = () => {
2236
+ t(1, x = ""), ae.focus();
2237
+ }, dn = () => t(0, O = !O), hn = () => t(18, ce = void 0), mn = (m) => t(15, z = m), gn = (m) => Lt(m), yn = () => {
2238
+ We || t(15, z = -1);
2239
+ }, pn = () => {
2229
2240
  };
2230
- return n.$$set = (g) => {
2231
- "class" in g && t(2, c = g.class), "apiKey" in g && t(26, u = g.apiKey), "bbox" in g && t(27, d = g.bbox), "clearButtonTitle" in g && t(3, a = g.clearButtonTitle), "clearOnBlur" in g && t(28, f = g.clearOnBlur), "collapsed" in g && t(4, h = g.collapsed), "country" in g && t(29, m = g.country), "debounceSearch" in g && t(30, y = g.debounceSearch), "enableReverse" in g && t(5, b = g.enableReverse), "errorMessage" in g && t(6, w = g.errorMessage), "filter" in g && t(31, L = g.filter), "flyTo" in g && t(32, S = g.flyTo), "fuzzyMatch" in g && t(33, E = g.fuzzyMatch), "language" in g && t(34, M = g.language), "limit" in g && t(35, C = g.limit), "mapController" in g && t(36, v = g.mapController), "minLength" in g && t(37, _ = g.minLength), "noResultsMessage" in g && t(7, k = g.noResultsMessage), "placeholder" in g && t(8, I = g.placeholder), "proximity" in g && t(38, H = g.proximity), "reverseActive" in g && t(0, O = g.reverseActive), "reverseButtonTitle" in g && t(9, J = g.reverseButtonTitle), "searchValue" in g && t(1, x = g.searchValue), "pickedResultStyle" in g && t(39, A = g.pickedResultStyle), "showPlaceType" in g && t(10, oe = g.showPlaceType), "showResultsWhileTyping" in g && t(40, ce = g.showResultsWhileTyping), "selectFirst" in g && t(11, Ie = g.selectFirst), "flyToSelected" in g && t(41, gt = g.flyToSelected), "markerOnSelected" in g && t(42, Xe = g.markerOnSelected), "types" in g && t(43, Me = g.types), "exhaustiveReverseGeocoding" in g && t(44, mt = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Ke = g.excludeTypes), "zoom" in g && t(46, Je = g.zoom), "apiUrl" in g && t(47, yt = g.apiUrl), "fetchParameters" in g && t(48, pt = g.fetchParameters), "iconsBaseUrl" in g && t(12, jt = g.iconsBaseUrl), "adjustUrlQuery" in g && t(49, vt = g.adjustUrlQuery), "$$scope" in g && t(60, l = g.$$scope);
2232
- }, n.$$.update = () => {
2233
- if (n.$$.dirty[0] & /*enableReverse*/
2234
- 32 && t(0, O = b === "always"), n.$$.dirty[0] & /*focused, clearOnBlur*/
2241
+ return i.$$set = (m) => {
2242
+ "class" in m && t(2, c = m.class), "apiKey" in m && t(26, u = m.apiKey), "bbox" in m && t(27, d = m.bbox), "clearButtonTitle" in m && t(3, a = m.clearButtonTitle), "clearOnBlur" in m && t(28, f = m.clearOnBlur), "collapsed" in m && t(4, h = m.collapsed), "country" in m && t(29, g = m.country), "debounceSearch" in m && t(30, y = m.debounceSearch), "enableReverse" in m && t(5, b = m.enableReverse), "errorMessage" in m && t(6, w = m.errorMessage), "filter" in m && t(31, L = m.filter), "flyTo" in m && t(32, S = m.flyTo), "fuzzyMatch" in m && t(33, E = m.fuzzyMatch), "language" in m && t(34, M = m.language), "limit" in m && t(35, C = m.limit), "mapController" in m && t(36, v = m.mapController), "minLength" in m && t(37, _ = m.minLength), "noResultsMessage" in m && t(7, k = m.noResultsMessage), "placeholder" in m && t(8, I = m.placeholder), "proximity" in m && t(38, Z = m.proximity), "reverseActive" in m && t(0, O = m.reverseActive), "reverseButtonTitle" in m && t(9, J = m.reverseButtonTitle), "searchValue" in m && t(1, x = m.searchValue), "pickedResultStyle" in m && t(39, A = m.pickedResultStyle), "showPlaceType" in m && t(10, le = m.showPlaceType), "showResultsWhileTyping" in m && t(40, fe = m.showResultsWhileTyping), "autocompleteTimeout" in m && t(41, mt = m.autocompleteTimeout), "selectFirst" in m && t(11, We = m.selectFirst), "flyToSelected" in m && t(42, gt = m.flyToSelected), "markerOnSelected" in m && t(43, Ke = m.markerOnSelected), "types" in m && t(44, Ce = m.types), "exhaustiveReverseGeocoding" in m && t(45, yt = m.exhaustiveReverseGeocoding), "excludeTypes" in m && t(46, Je = m.excludeTypes), "zoom" in m && t(47, $e = m.zoom), "apiUrl" in m && t(48, pt = m.apiUrl), "fetchParameters" in m && t(49, vt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Qt = m.iconsBaseUrl), "adjustUrlQuery" in m && t(50, bt = m.adjustUrlQuery), "$$scope" in m && t(62, l = m.$$scope);
2243
+ }, i.$$.update = () => {
2244
+ if (i.$$.dirty[0] & /*enableReverse*/
2245
+ 32 && t(0, O = b === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2235
2246
  268443648 && setTimeout(() => {
2236
- t(16, et = Oe), f && !Oe && t(1, x = "");
2237
- }), n.$$.dirty[0] & /*searchValue, listFeatures*/
2238
- 16386 | n.$$.dirty[1] & /*minLength*/
2239
- 64 && x.length < _ && (t(56, N = void 0), t(14, R = void 0), t(18, ue = void 0), t(55, j = R)), n.$$.dirty[1] & /*pickedResultStyle, picked*/
2240
- 33554688 && A !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && _t(N.id, { byId: !0 }).catch((g) => t(18, ue = g)), n.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2241
- 100663330 && (v && N && N.id !== bt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? v.flyTo(N.center, De(N)) : v.fitBounds(ct(N.bbox), 50, De(N)), t(14, R = void 0), t(55, j = void 0), t(15, z = -1)), t(57, bt = N == null ? void 0 : N.id)), n.$$.dirty[0] & /*selectFirst, listFeatures*/
2242
- 18432 && Ie && R != null && R.length && t(15, z = 0), n.$$.dirty[0] & /*searchValue*/
2243
- 2 && t(15, z = -1), n.$$.dirty[0] & /*listFeatures*/
2244
- 16384 | n.$$.dirty[1] & /*markedFeatures*/
2245
- 16777216 && j !== R && t(55, j = void 0), n.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2246
- 81921 | n.$$.dirty[1] & /*mapController, markedFeatures*/
2247
- 16777248 && v && v.setEventHandler((g) => {
2248
- switch (g.type) {
2247
+ t(16, tt = Ae), f && !Ae && t(1, x = "");
2248
+ }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2249
+ 16386 | i.$$.dirty[1] & /*minLength*/
2250
+ 64 && x.length < _ && (t(57, N = void 0), t(14, T = void 0), t(18, ce = void 0), t(56, j = T)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2251
+ 67109120 && A !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && Ue(N.id, { byId: !0 }).catch((m) => t(18, ce = m)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2252
+ 335544354 && (v && N && N.id !== wt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? v.flyTo(N.center, Ge(N)) : v.fitBounds(ct(N.bbox), 50, Ge(N)), t(14, T = void 0), t(56, j = void 0), t(15, z = -1)), t(59, wt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2253
+ 18432 && We && T != null && T.length && (en() || t(15, z = 0)), i.$$.dirty[0] & /*searchValue*/
2254
+ 2 && t(15, z = -1), i.$$.dirty[0] & /*listFeatures*/
2255
+ 16384 | i.$$.dirty[1] & /*markedFeatures*/
2256
+ 33554432 && j !== T && t(56, j = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2257
+ 81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2258
+ 33554464 && v && v.setEventHandler((m) => {
2259
+ switch (m.type) {
2249
2260
  case "mapClick":
2250
- O && $i(g.coordinates);
2261
+ O && nn(m.coordinates);
2251
2262
  break;
2252
2263
  case "markerClick":
2253
2264
  {
2254
- const F = R == null ? void 0 : R.find((V) => V.id === g.id);
2255
- F && Lt(F);
2265
+ const B = T == null ? void 0 : T.find((q) => q.id === m.id);
2266
+ B && Lt(B);
2256
2267
  }
2257
2268
  break;
2258
2269
  case "markerMouseEnter":
2259
- j && t(15, z = et ? (R == null ? void 0 : R.findIndex((F) => F.id === g.id)) ?? -1 : -1);
2270
+ j && t(15, z = tt ? (T == null ? void 0 : T.findIndex((B) => B.id === m.id)) ?? -1 : -1);
2260
2271
  break;
2261
2272
  case "markerMouseLeave":
2262
2273
  j && t(15, z = -1);
2263
2274
  break;
2264
2275
  }
2265
- }), n.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2266
- 49152 && t(58, r = R == null ? void 0 : R[z]), n.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2267
- 134218786 && v && r && S && gt && v.flyTo(r.center, De(r)), n.$$.dirty[1] & /*pickedResultStyle*/
2268
- 256 && t(59, i = A === "full-geometry-including-polygon-center-marker"), n.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2269
- 268437536 && (Xe || v == null || v.setMarkers(void 0, void 0, i)), n.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2270
- 419432480 && v && Xe && !j && (v.setMarkers(r ? [r] : void 0, void 0, i), v.setSelectedMarker(r ? 0 : -1)), n.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2271
- 318767136 && v && v.setMarkers(j, N, i), n.$$.dirty[0] & /*selectedItemIndex*/
2272
- 32768 | n.$$.dirty[1] & /*markedFeatures, mapController*/
2273
- 16777248 && j && v && v.setSelectedMarker(z), n.$$.dirty[0] & /*searchValue*/
2274
- 2 | n.$$.dirty[1] & /*mapController*/
2276
+ }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2277
+ 49152 && t(60, r = T == null ? void 0 : T[z]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2278
+ 536872994 && v && r && S && gt && v.flyTo(r.center, Ge(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2279
+ 256 && t(61, n = A === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2280
+ 1073745952 && (Ke || v == null || v.setFeatures(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2281
+ 1644171296 && v && Ke && !j && (v.setFeatures(r ? [r] : void 0, void 0, n), v.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2282
+ 1174405152 && v && v.setFeatures(j, N, n), i.$$.dirty[0] & /*selectedItemIndex*/
2283
+ 32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2284
+ 33554464 && j && v && v.setSelectedMarker(z), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
2285
+ 671088640 && r && (window.clearTimeout(ne), t(58, ne = void 0)), i.$$.dirty[0] & /*searchValue*/
2286
+ 2 | i.$$.dirty[1] & /*mapController*/
2275
2287
  32 && v) {
2276
- const g = wt(x);
2277
- v.setReverseMarker(g ? [g.decimalLongitude, g.decimalLatitude] : void 0);
2288
+ const m = _t(x);
2289
+ v.setReverseMarker(m ? [m.decimalLongitude, m.decimalLatitude] : void 0);
2278
2290
  }
2279
- n.$$.dirty[1] & /*selected*/
2280
- 134217728 && pe("select", { feature: r }), n.$$.dirty[1] & /*picked*/
2281
- 33554432 && pe("pick", { feature: N }), n.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2282
- 81920 && pe("optionsvisibilitychange", {
2283
- optionsVisible: et && !!R
2284
- }), n.$$.dirty[0] & /*listFeatures*/
2285
- 16384 && pe("featureslisted", { features: R }), n.$$.dirty[1] & /*markedFeatures*/
2286
- 16777216 && pe("featuresmarked", { features: j }), n.$$.dirty[0] & /*reverseActive*/
2287
- 1 && pe("reversetoggle", { reverse: O }), n.$$.dirty[0] & /*searchValue*/
2288
- 2 && pe("querychange", { query: x }), n.$$.dirty[0] & /*reverseActive*/
2289
- 1 | n.$$.dirty[1] & /*mapController*/
2291
+ i.$$.dirty[1] & /*selected*/
2292
+ 536870912 && be("select", { feature: r }), i.$$.dirty[1] & /*picked*/
2293
+ 67108864 && be("pick", { feature: N }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2294
+ 81920 && be("optionsvisibilitychange", {
2295
+ optionsVisible: tt && !!T
2296
+ }), i.$$.dirty[0] & /*listFeatures*/
2297
+ 16384 && be("featureslisted", { features: T }), i.$$.dirty[1] & /*markedFeatures*/
2298
+ 33554432 && be("featuresmarked", { features: j }), i.$$.dirty[0] & /*reverseActive*/
2299
+ 1 && be("reversetoggle", { reverse: O }), i.$$.dirty[0] & /*searchValue*/
2300
+ 2 && be("querychange", { query: x }), i.$$.dirty[0] & /*reverseActive*/
2301
+ 1 | i.$$.dirty[1] & /*mapController*/
2290
2302
  32 && v && v.indicateReverse(O);
2291
2303
  }, [
2292
2304
  O,
@@ -2299,26 +2311,26 @@ function Nr(n, e, t) {
2299
2311
  k,
2300
2312
  I,
2301
2313
  J,
2302
- oe,
2303
- Ie,
2304
- jt,
2305
- Oe,
2306
- R,
2307
- z,
2308
- et,
2309
2314
  le,
2310
- ue,
2311
- ke,
2312
- Ki,
2313
- Vt,
2314
- en,
2315
+ We,
2316
+ Qt,
2317
+ Ae,
2318
+ T,
2319
+ z,
2320
+ tt,
2321
+ ae,
2322
+ ce,
2323
+ Ne,
2324
+ $i,
2325
+ Ht,
2326
+ rn,
2315
2327
  Et,
2316
2328
  Lt,
2317
2329
  s,
2318
2330
  u,
2319
2331
  d,
2320
2332
  f,
2321
- m,
2333
+ g,
2322
2334
  y,
2323
2335
  L,
2324
2336
  S,
@@ -2327,33 +2339,32 @@ function Nr(n, e, t) {
2327
2339
  C,
2328
2340
  v,
2329
2341
  _,
2330
- H,
2342
+ Z,
2331
2343
  A,
2332
- ce,
2333
- gt,
2334
- Xe,
2335
- Me,
2344
+ fe,
2336
2345
  mt,
2346
+ gt,
2337
2347
  Ke,
2338
- Je,
2348
+ Ce,
2339
2349
  yt,
2350
+ Je,
2351
+ $e,
2340
2352
  pt,
2341
2353
  vt,
2342
- Zi,
2343
- Hi,
2344
- qt,
2354
+ bt,
2345
2355
  Yi,
2346
2356
  Xi,
2357
+ Vt,
2358
+ Ki,
2359
+ Ji,
2347
2360
  j,
2348
2361
  N,
2349
- bt,
2362
+ ne,
2363
+ wt,
2350
2364
  r,
2351
- i,
2365
+ n,
2352
2366
  l,
2353
2367
  o,
2354
- tn,
2355
- nn,
2356
- rn,
2357
2368
  on,
2358
2369
  sn,
2359
2370
  ln,
@@ -2363,17 +2374,20 @@ function Nr(n, e, t) {
2363
2374
  fn,
2364
2375
  dn,
2365
2376
  hn,
2366
- gn
2377
+ mn,
2378
+ gn,
2379
+ yn,
2380
+ pn
2367
2381
  ];
2368
2382
  }
2369
- let Pr = class extends Te {
2383
+ let Ir = class extends Oe {
2370
2384
  constructor(e) {
2371
- super(), Re(
2385
+ super(), Ie(
2372
2386
  this,
2373
2387
  e,
2374
- Nr,
2375
- Cr,
2376
- Pe,
2388
+ Rr,
2389
+ Tr,
2390
+ Re,
2377
2391
  {
2378
2392
  ZOOM_DEFAULTS: 25,
2379
2393
  class: 2,
@@ -2402,22 +2416,23 @@ let Pr = class extends Te {
2402
2416
  pickedResultStyle: 39,
2403
2417
  showPlaceType: 10,
2404
2418
  showResultsWhileTyping: 40,
2419
+ autocompleteTimeout: 41,
2405
2420
  selectFirst: 11,
2406
- flyToSelected: 41,
2407
- markerOnSelected: 42,
2408
- types: 43,
2409
- exhaustiveReverseGeocoding: 44,
2410
- excludeTypes: 45,
2411
- zoom: 46,
2412
- apiUrl: 47,
2413
- fetchParameters: 48,
2421
+ flyToSelected: 42,
2422
+ markerOnSelected: 43,
2423
+ types: 44,
2424
+ exhaustiveReverseGeocoding: 45,
2425
+ excludeTypes: 46,
2426
+ zoom: 47,
2427
+ apiUrl: 48,
2428
+ fetchParameters: 49,
2414
2429
  iconsBaseUrl: 12,
2415
- adjustUrlQuery: 49,
2416
- focus: 50,
2417
- blur: 51,
2418
- setQuery: 52,
2419
- clearList: 53,
2420
- clearMap: 54
2430
+ adjustUrlQuery: 50,
2431
+ focus: 51,
2432
+ blur: 52,
2433
+ setQuery: 53,
2434
+ clearList: 54,
2435
+ clearMap: 55
2421
2436
  },
2422
2437
  null,
2423
2438
  [-1, -1, -1]
@@ -2427,27 +2442,27 @@ let Pr = class extends Te {
2427
2442
  return this.$$.ctx[25];
2428
2443
  }
2429
2444
  get focus() {
2430
- return this.$$.ctx[50];
2445
+ return this.$$.ctx[51];
2431
2446
  }
2432
2447
  get blur() {
2433
- return this.$$.ctx[51];
2448
+ return this.$$.ctx[52];
2434
2449
  }
2435
2450
  get setQuery() {
2436
- return this.$$.ctx[52];
2451
+ return this.$$.ctx[53];
2437
2452
  }
2438
2453
  get clearList() {
2439
- return this.$$.ctx[53];
2454
+ return this.$$.ctx[54];
2440
2455
  }
2441
2456
  get clearMap() {
2442
- return this.$$.ctx[54];
2457
+ return this.$$.ctx[55];
2443
2458
  }
2444
2459
  };
2445
- function ft(n, e, t = {}) {
2446
- const i = { type: "Feature" };
2447
- return (t.id === 0 || t.id) && (i.id = t.id), t.bbox && (i.bbox = t.bbox), i.properties = e || {}, i.geometry = n, i;
2460
+ function ft(i, e, t = {}) {
2461
+ const n = { type: "Feature" };
2462
+ return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
2448
2463
  }
2449
- function Dt(n, e, t = {}) {
2450
- for (const r of n) {
2464
+ function Gt(i, e, t = {}) {
2465
+ for (const r of i) {
2451
2466
  if (r.length < 4)
2452
2467
  throw new Error(
2453
2468
  "Each LinearRing of a Polygon must have 4 or more Positions."
@@ -2460,23 +2475,23 @@ function Dt(n, e, t = {}) {
2460
2475
  }
2461
2476
  return ft({
2462
2477
  type: "Polygon",
2463
- coordinates: n
2478
+ coordinates: i
2464
2479
  }, e, t);
2465
2480
  }
2466
- function It(n, e = {}) {
2481
+ function Wt(i, e = {}) {
2467
2482
  const t = { type: "FeatureCollection" };
2468
- return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = n, t;
2483
+ return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
2469
2484
  }
2470
- function ji(n, e, t = {}) {
2485
+ function Qi(i, e, t = {}) {
2471
2486
  return ft({
2472
2487
  type: "MultiPolygon",
2473
- coordinates: n
2488
+ coordinates: i
2474
2489
  }, e, t);
2475
2490
  }
2476
- function qi(n, e, t) {
2477
- if (n !== null)
2478
- for (var i, r, o, l, s, c, u, d = 0, a = 0, f, h = n.type, m = h === "FeatureCollection", y = h === "Feature", b = m ? n.features.length : 1, w = 0; w < b; w++) {
2479
- u = m ? n.features[w].geometry : y ? n.geometry : n, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2491
+ function Vi(i, e, t) {
2492
+ if (i !== null)
2493
+ for (var n, r, o, l, s, c, u, d = 0, a = 0, f, h = i.type, g = h === "FeatureCollection", y = h === "Feature", b = g ? i.features.length : 1, w = 0; w < b; w++) {
2494
+ u = g ? i.features[w].geometry : y ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2480
2495
  for (var L = 0; L < s; L++) {
2481
2496
  var S = 0, E = 0;
2482
2497
  if (l = f ? u.geometries[L] : u, l !== null) {
@@ -2498,9 +2513,9 @@ function qi(n, e, t) {
2498
2513
  break;
2499
2514
  case "LineString":
2500
2515
  case "MultiPoint":
2501
- for (i = 0; i < c.length; i++) {
2516
+ for (n = 0; n < c.length; n++) {
2502
2517
  if (e(
2503
- c[i],
2518
+ c[n],
2504
2519
  a,
2505
2520
  w,
2506
2521
  S,
@@ -2513,10 +2528,10 @@ function qi(n, e, t) {
2513
2528
  break;
2514
2529
  case "Polygon":
2515
2530
  case "MultiLineString":
2516
- for (i = 0; i < c.length; i++) {
2517
- for (r = 0; r < c[i].length - d; r++) {
2531
+ for (n = 0; n < c.length; n++) {
2532
+ for (r = 0; r < c[n].length - d; r++) {
2518
2533
  if (e(
2519
- c[i][r],
2534
+ c[n][r],
2520
2535
  a,
2521
2536
  w,
2522
2537
  S,
@@ -2530,11 +2545,11 @@ function qi(n, e, t) {
2530
2545
  M === "Polygon" && S++;
2531
2546
  break;
2532
2547
  case "MultiPolygon":
2533
- for (i = 0; i < c.length; i++) {
2534
- for (E = 0, r = 0; r < c[i].length; r++) {
2535
- for (o = 0; o < c[i][r].length - d; o++) {
2548
+ for (n = 0; n < c.length; n++) {
2549
+ for (E = 0, r = 0; r < c[n].length; r++) {
2550
+ for (o = 0; o < c[n][r].length - d; o++) {
2536
2551
  if (e(
2537
- c[i][r][o],
2552
+ c[n][r][o],
2538
2553
  a,
2539
2554
  w,
2540
2555
  S,
@@ -2549,8 +2564,8 @@ function qi(n, e, t) {
2549
2564
  }
2550
2565
  break;
2551
2566
  case "GeometryCollection":
2552
- for (i = 0; i < l.geometries.length; i++)
2553
- if (qi(l.geometries[i], e) === !1)
2567
+ for (n = 0; n < l.geometries.length; n++)
2568
+ if (Vi(l.geometries[n], e) === !1)
2554
2569
  return !1;
2555
2570
  break;
2556
2571
  default:
@@ -2560,10 +2575,10 @@ function qi(n, e, t) {
2560
2575
  }
2561
2576
  }
2562
2577
  }
2563
- function Ut(n, e) {
2564
- var t, i, r, o, l, s, c, u, d, a, f = 0, h = n.type === "FeatureCollection", m = n.type === "Feature", y = h ? n.features.length : 1;
2578
+ function jt(i, e) {
2579
+ var t, n, r, o, l, s, c, u, d, a, f = 0, h = i.type === "FeatureCollection", g = i.type === "Feature", y = h ? i.features.length : 1;
2565
2580
  for (t = 0; t < y; t++) {
2566
- for (s = h ? n.features[t].geometry : m ? n.geometry : n, u = h ? n.features[t].properties : m ? n.properties : {}, d = h ? n.features[t].bbox : m ? n.bbox : void 0, a = h ? n.features[t].id : m ? n.id : void 0, c = s ? s.type === "GeometryCollection" : !1, l = c ? s.geometries.length : 1, r = 0; r < l; r++) {
2581
+ for (s = h ? i.features[t].geometry : g ? i.geometry : i, u = h ? i.features[t].properties : g ? i.properties : {}, d = h ? i.features[t].bbox : g ? i.bbox : void 0, a = h ? i.features[t].id : g ? i.id : void 0, c = s ? s.type === "GeometryCollection" : !1, l = c ? s.geometries.length : 1, r = 0; r < l; r++) {
2567
2582
  if (o = c ? s.geometries[r] : s, o === null) {
2568
2583
  if (e(
2569
2584
  null,
@@ -2593,9 +2608,9 @@ function Ut(n, e) {
2593
2608
  break;
2594
2609
  }
2595
2610
  case "GeometryCollection": {
2596
- for (i = 0; i < o.geometries.length; i++)
2611
+ for (n = 0; n < o.geometries.length; n++)
2597
2612
  if (e(
2598
- o.geometries[i],
2613
+ o.geometries[n],
2599
2614
  f,
2600
2615
  u,
2601
2616
  d,
@@ -2611,8 +2626,8 @@ function Ut(n, e) {
2611
2626
  f++;
2612
2627
  }
2613
2628
  }
2614
- function Rr(n, e) {
2615
- Ut(n, function(t, i, r, o, l) {
2629
+ function Or(i, e) {
2630
+ jt(i, function(t, n, r, o, l) {
2616
2631
  var s = t === null ? null : t.type;
2617
2632
  switch (s) {
2618
2633
  case null:
@@ -2621,7 +2636,7 @@ function Rr(n, e) {
2621
2636
  case "Polygon":
2622
2637
  return e(
2623
2638
  ft(t, r, { bbox: o, id: l }),
2624
- i,
2639
+ n,
2625
2640
  0
2626
2641
  ) === !1 ? !1 : void 0;
2627
2642
  }
@@ -2642,20 +2657,20 @@ function Rr(n, e) {
2642
2657
  type: c,
2643
2658
  coordinates: d
2644
2659
  };
2645
- if (e(ft(a, r), i, u) === !1)
2660
+ if (e(ft(a, r), n, u) === !1)
2646
2661
  return !1;
2647
2662
  }
2648
2663
  });
2649
2664
  }
2650
- function Tr(n, e = {}) {
2651
- if (n.bbox != null && e.recompute !== !0)
2652
- return n.bbox;
2665
+ function Wr(i, e = {}) {
2666
+ if (i.bbox != null && e.recompute !== !0)
2667
+ return i.bbox;
2653
2668
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2654
- return qi(n, (i) => {
2655
- t[0] > i[0] && (t[0] = i[0]), t[1] > i[1] && (t[1] = i[1]), t[2] < i[0] && (t[2] = i[0]), t[3] < i[1] && (t[3] = i[1]);
2669
+ return Vi(i, (n) => {
2670
+ 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]);
2656
2671
  }), t;
2657
2672
  }
2658
- var wi = Tr;
2673
+ var Ei = Wr;
2659
2674
  /**
2660
2675
  * splaytree v3.1.2
2661
2676
  * Fast Splay tree for Node and browser
@@ -2678,11 +2693,11 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2678
2693
  See the Apache Version 2.0 License for specific language governing permissions
2679
2694
  and limitations under the License.
2680
2695
  ***************************************************************************** */
2681
- function Ir(n, e) {
2696
+ function Ar(i, e) {
2682
2697
  var t = { label: 0, sent: function() {
2683
2698
  if (o[0] & 1) throw o[1];
2684
2699
  return o[1];
2685
- }, trys: [], ops: [] }, i, r, o, l;
2700
+ }, trys: [], ops: [] }, n, r, o, l;
2686
2701
  return l = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
2687
2702
  return this;
2688
2703
  }), l;
@@ -2692,9 +2707,9 @@ function Ir(n, e) {
2692
2707
  };
2693
2708
  }
2694
2709
  function c(u) {
2695
- if (i) throw new TypeError("Generator is already executing.");
2710
+ if (n) throw new TypeError("Generator is already executing.");
2696
2711
  for (; t; ) try {
2697
- if (i = 1, r && (o = u[0] & 2 ? r.return : u[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, u[1])).done) return o;
2712
+ if (n = 1, r && (o = u[0] & 2 ? r.return : u[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, u[1])).done) return o;
2698
2713
  switch (r = 0, o && (u = [u[0] & 2, o.value]), u[0]) {
2699
2714
  case 0:
2700
2715
  case 1:
@@ -2728,35 +2743,35 @@ function Ir(n, e) {
2728
2743
  o[2] && t.ops.pop(), t.trys.pop();
2729
2744
  continue;
2730
2745
  }
2731
- u = e.call(n, t);
2746
+ u = e.call(i, t);
2732
2747
  } catch (d) {
2733
2748
  u = [6, d], r = 0;
2734
2749
  } finally {
2735
- i = o = 0;
2750
+ n = o = 0;
2736
2751
  }
2737
2752
  if (u[0] & 5) throw u[1];
2738
2753
  return { value: u[0] ? u[1] : void 0, done: !0 };
2739
2754
  }
2740
2755
  }
2741
- var Se = (
2756
+ var Me = (
2742
2757
  /** @class */
2743
2758
  /* @__PURE__ */ function() {
2744
- function n(e, t) {
2759
+ function i(e, t) {
2745
2760
  this.next = null, this.key = e, this.data = t, this.left = null, this.right = null;
2746
2761
  }
2747
- return n;
2762
+ return i;
2748
2763
  }()
2749
2764
  );
2750
- function Or(n, e) {
2751
- return n > e ? 1 : n < e ? -1 : 0;
2765
+ function zr(i, e) {
2766
+ return i > e ? 1 : i < e ? -1 : 0;
2752
2767
  }
2753
- function ve(n, e, t) {
2754
- for (var i = new Se(null, null), r = i, o = i; ; ) {
2755
- var l = t(n, e.key);
2768
+ function we(i, e, t) {
2769
+ for (var n = new Me(null, null), r = n, o = n; ; ) {
2770
+ var l = t(i, e.key);
2756
2771
  if (l < 0) {
2757
2772
  if (e.left === null)
2758
2773
  break;
2759
- if (t(n, e.left.key) < 0) {
2774
+ if (t(i, e.left.key) < 0) {
2760
2775
  var s = e.left;
2761
2776
  if (e.left = s.right, s.right = e, e = s, e.left === null)
2762
2777
  break;
@@ -2765,7 +2780,7 @@ function ve(n, e, t) {
2765
2780
  } else if (l > 0) {
2766
2781
  if (e.right === null)
2767
2782
  break;
2768
- if (t(n, e.right.key) > 0) {
2783
+ if (t(i, e.right.key) > 0) {
2769
2784
  var s = e.right;
2770
2785
  if (e.right = s.left, s.left = e, e = s, e.right === null)
2771
2786
  break;
@@ -2774,128 +2789,128 @@ function ve(n, e, t) {
2774
2789
  } else
2775
2790
  break;
2776
2791
  }
2777
- return r.right = e.left, o.left = e.right, e.left = i.right, e.right = i.left, e;
2792
+ return r.right = e.left, o.left = e.right, e.left = n.right, e.right = n.left, e;
2778
2793
  }
2779
- function Ct(n, e, t, i) {
2780
- var r = new Se(n, e);
2794
+ function Pt(i, e, t, n) {
2795
+ var r = new Me(i, e);
2781
2796
  if (t === null)
2782
2797
  return r.left = r.right = null, r;
2783
- t = ve(n, t, i);
2784
- var o = i(n, t.key);
2798
+ t = we(i, t, n);
2799
+ var o = n(i, t.key);
2785
2800
  return o < 0 ? (r.left = t.left, r.right = t, t.left = null) : o >= 0 && (r.right = t.right, r.left = t, t.right = null), r;
2786
2801
  }
2787
- function _i(n, e, t) {
2788
- var i = null, r = null;
2802
+ function Li(i, e, t) {
2803
+ var n = null, r = null;
2789
2804
  if (e) {
2790
- e = ve(n, e, t);
2791
- var o = t(e.key, n);
2792
- o === 0 ? (i = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, i = e) : (i = e.left, e.left = null, r = e);
2805
+ e = we(i, e, t);
2806
+ var o = t(e.key, i);
2807
+ o === 0 ? (n = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, n = e) : (n = e.left, e.left = null, r = e);
2793
2808
  }
2794
- return { left: i, right: r };
2809
+ return { left: n, right: r };
2795
2810
  }
2796
- function Wr(n, e, t) {
2797
- return e === null ? n : (n === null || (e = ve(n.key, e, t), e.left = n), e);
2811
+ function Fr(i, e, t) {
2812
+ return e === null ? i : (i === null || (e = we(i.key, e, t), e.left = i), e);
2798
2813
  }
2799
- function Ot(n, e, t, i, r) {
2800
- if (n) {
2801
- i("" + e + (t ? "└── " : "├── ") + r(n) + `
2814
+ function At(i, e, t, n, r) {
2815
+ if (i) {
2816
+ n("" + e + (t ? "└── " : "├── ") + r(i) + `
2802
2817
  `);
2803
2818
  var o = e + (t ? " " : "│ ");
2804
- n.left && Ot(n.left, o, !1, i, r), n.right && Ot(n.right, o, !0, i, r);
2819
+ i.left && At(i.left, o, !1, n, r), i.right && At(i.right, o, !0, n, r);
2805
2820
  }
2806
2821
  }
2807
- var Gt = (
2822
+ var qt = (
2808
2823
  /** @class */
2809
2824
  function() {
2810
- function n(e) {
2811
- e === void 0 && (e = Or), this._root = null, this._size = 0, this._comparator = e;
2825
+ function i(e) {
2826
+ e === void 0 && (e = zr), this._root = null, this._size = 0, this._comparator = e;
2812
2827
  }
2813
- return n.prototype.insert = function(e, t) {
2814
- return this._size++, this._root = Ct(e, t, this._root, this._comparator);
2815
- }, n.prototype.add = function(e, t) {
2816
- var i = new Se(e, t);
2817
- this._root === null && (i.left = i.right = null, this._size++, this._root = i);
2818
- var r = this._comparator, o = ve(e, this._root, r), l = r(e, o.key);
2819
- return l === 0 ? this._root = o : (l < 0 ? (i.left = o.left, i.right = o, o.left = null) : l > 0 && (i.right = o.right, i.left = o, o.right = null), this._size++, this._root = i), this._root;
2820
- }, n.prototype.remove = function(e) {
2828
+ return i.prototype.insert = function(e, t) {
2829
+ return this._size++, this._root = Pt(e, t, this._root, this._comparator);
2830
+ }, i.prototype.add = function(e, t) {
2831
+ var n = new Me(e, t);
2832
+ this._root === null && (n.left = n.right = null, this._size++, this._root = n);
2833
+ var r = this._comparator, o = we(e, this._root, r), l = r(e, o.key);
2834
+ return l === 0 ? this._root = o : (l < 0 ? (n.left = o.left, n.right = o, o.left = null) : l > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
2835
+ }, i.prototype.remove = function(e) {
2821
2836
  this._root = this._remove(e, this._root, this._comparator);
2822
- }, n.prototype._remove = function(e, t, i) {
2837
+ }, i.prototype._remove = function(e, t, n) {
2823
2838
  var r;
2824
2839
  if (t === null)
2825
2840
  return null;
2826
- t = ve(e, t, i);
2827
- var o = i(e, t.key);
2828
- return o === 0 ? (t.left === null ? r = t.right : (r = ve(e, t.left, i), r.right = t.right), this._size--, r) : t;
2829
- }, n.prototype.pop = function() {
2841
+ t = we(e, t, n);
2842
+ var o = n(e, t.key);
2843
+ return o === 0 ? (t.left === null ? r = t.right : (r = we(e, t.left, n), r.right = t.right), this._size--, r) : t;
2844
+ }, i.prototype.pop = function() {
2830
2845
  var e = this._root;
2831
2846
  if (e) {
2832
2847
  for (; e.left; )
2833
2848
  e = e.left;
2834
- return this._root = ve(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
2849
+ return this._root = we(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
2835
2850
  }
2836
2851
  return null;
2837
- }, n.prototype.findStatic = function(e) {
2838
- for (var t = this._root, i = this._comparator; t; ) {
2839
- var r = i(e, t.key);
2852
+ }, i.prototype.findStatic = function(e) {
2853
+ for (var t = this._root, n = this._comparator; t; ) {
2854
+ var r = n(e, t.key);
2840
2855
  if (r === 0)
2841
2856
  return t;
2842
2857
  r < 0 ? t = t.left : t = t.right;
2843
2858
  }
2844
2859
  return null;
2845
- }, n.prototype.find = function(e) {
2846
- return this._root && (this._root = ve(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2847
- }, n.prototype.contains = function(e) {
2848
- for (var t = this._root, i = this._comparator; t; ) {
2849
- var r = i(e, t.key);
2860
+ }, i.prototype.find = function(e) {
2861
+ return this._root && (this._root = we(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2862
+ }, i.prototype.contains = function(e) {
2863
+ for (var t = this._root, n = this._comparator; t; ) {
2864
+ var r = n(e, t.key);
2850
2865
  if (r === 0)
2851
2866
  return !0;
2852
2867
  r < 0 ? t = t.left : t = t.right;
2853
2868
  }
2854
2869
  return !1;
2855
- }, n.prototype.forEach = function(e, t) {
2856
- for (var i = this._root, r = [], o = !1; !o; )
2857
- i !== null ? (r.push(i), i = i.left) : r.length !== 0 ? (i = r.pop(), e.call(t, i), i = i.right) : o = !0;
2870
+ }, i.prototype.forEach = function(e, t) {
2871
+ for (var n = this._root, r = [], o = !1; !o; )
2872
+ n !== null ? (r.push(n), n = n.left) : r.length !== 0 ? (n = r.pop(), e.call(t, n), n = n.right) : o = !0;
2858
2873
  return this;
2859
- }, n.prototype.range = function(e, t, i, r) {
2874
+ }, i.prototype.range = function(e, t, n, r) {
2860
2875
  for (var o = [], l = this._comparator, s = this._root, c; o.length !== 0 || s; )
2861
2876
  if (s)
2862
2877
  o.push(s), s = s.left;
2863
2878
  else {
2864
2879
  if (s = o.pop(), c = l(s.key, t), c > 0)
2865
2880
  break;
2866
- if (l(s.key, e) >= 0 && i.call(r, s))
2881
+ if (l(s.key, e) >= 0 && n.call(r, s))
2867
2882
  return this;
2868
2883
  s = s.right;
2869
2884
  }
2870
2885
  return this;
2871
- }, n.prototype.keys = function() {
2886
+ }, i.prototype.keys = function() {
2872
2887
  var e = [];
2873
2888
  return this.forEach(function(t) {
2874
- var i = t.key;
2875
- return e.push(i);
2889
+ var n = t.key;
2890
+ return e.push(n);
2876
2891
  }), e;
2877
- }, n.prototype.values = function() {
2892
+ }, i.prototype.values = function() {
2878
2893
  var e = [];
2879
2894
  return this.forEach(function(t) {
2880
- var i = t.data;
2881
- return e.push(i);
2895
+ var n = t.data;
2896
+ return e.push(n);
2882
2897
  }), e;
2883
- }, n.prototype.min = function() {
2898
+ }, i.prototype.min = function() {
2884
2899
  return this._root ? this.minNode(this._root).key : null;
2885
- }, n.prototype.max = function() {
2900
+ }, i.prototype.max = function() {
2886
2901
  return this._root ? this.maxNode(this._root).key : null;
2887
- }, n.prototype.minNode = function(e) {
2902
+ }, i.prototype.minNode = function(e) {
2888
2903
  if (e === void 0 && (e = this._root), e)
2889
2904
  for (; e.left; )
2890
2905
  e = e.left;
2891
2906
  return e;
2892
- }, n.prototype.maxNode = function(e) {
2907
+ }, i.prototype.maxNode = function(e) {
2893
2908
  if (e === void 0 && (e = this._root), e)
2894
2909
  for (; e.right; )
2895
2910
  e = e.right;
2896
2911
  return e;
2897
- }, n.prototype.at = function(e) {
2898
- for (var t = this._root, i = !1, r = 0, o = []; !i; )
2912
+ }, i.prototype.at = function(e) {
2913
+ for (var t = this._root, n = !1, r = 0, o = []; !n; )
2899
2914
  if (t)
2900
2915
  o.push(t), t = t.left;
2901
2916
  else if (o.length > 0) {
@@ -2903,91 +2918,91 @@ var Gt = (
2903
2918
  return t;
2904
2919
  r++, t = t.right;
2905
2920
  } else
2906
- i = !0;
2921
+ n = !0;
2907
2922
  return null;
2908
- }, n.prototype.next = function(e) {
2909
- var t = this._root, i = null;
2923
+ }, i.prototype.next = function(e) {
2924
+ var t = this._root, n = null;
2910
2925
  if (e.right) {
2911
- for (i = e.right; i.left; )
2912
- i = i.left;
2913
- return i;
2926
+ for (n = e.right; n.left; )
2927
+ n = n.left;
2928
+ return n;
2914
2929
  }
2915
2930
  for (var r = this._comparator; t; ) {
2916
2931
  var o = r(e.key, t.key);
2917
2932
  if (o === 0)
2918
2933
  break;
2919
- o < 0 ? (i = t, t = t.left) : t = t.right;
2934
+ o < 0 ? (n = t, t = t.left) : t = t.right;
2920
2935
  }
2921
- return i;
2922
- }, n.prototype.prev = function(e) {
2923
- var t = this._root, i = null;
2936
+ return n;
2937
+ }, i.prototype.prev = function(e) {
2938
+ var t = this._root, n = null;
2924
2939
  if (e.left !== null) {
2925
- for (i = e.left; i.right; )
2926
- i = i.right;
2927
- return i;
2940
+ for (n = e.left; n.right; )
2941
+ n = n.right;
2942
+ return n;
2928
2943
  }
2929
2944
  for (var r = this._comparator; t; ) {
2930
2945
  var o = r(e.key, t.key);
2931
2946
  if (o === 0)
2932
2947
  break;
2933
- o < 0 ? t = t.left : (i = t, t = t.right);
2948
+ o < 0 ? t = t.left : (n = t, t = t.right);
2934
2949
  }
2935
- return i;
2936
- }, n.prototype.clear = function() {
2950
+ return n;
2951
+ }, i.prototype.clear = function() {
2937
2952
  return this._root = null, this._size = 0, this;
2938
- }, n.prototype.toList = function() {
2939
- return zr(this._root);
2940
- }, n.prototype.load = function(e, t, i) {
2941
- t === void 0 && (t = []), i === void 0 && (i = !1);
2953
+ }, i.prototype.toList = function() {
2954
+ return Dr(this._root);
2955
+ }, i.prototype.load = function(e, t, n) {
2956
+ t === void 0 && (t = []), n === void 0 && (n = !1);
2942
2957
  var r = e.length, o = this._comparator;
2943
- if (i && zt(e, t, 0, r - 1, o), this._root === null)
2944
- this._root = Wt(e, t, 0, r), this._size = r;
2958
+ if (n && Bt(e, t, 0, r - 1, o), this._root === null)
2959
+ this._root = zt(e, t, 0, r), this._size = r;
2945
2960
  else {
2946
- var l = Br(this.toList(), Ar(e, t), o);
2947
- r = this._size + r, this._root = At({ head: l }, 0, r);
2961
+ var l = Ur(this.toList(), Br(e, t), o);
2962
+ r = this._size + r, this._root = Ft({ head: l }, 0, r);
2948
2963
  }
2949
2964
  return this;
2950
- }, n.prototype.isEmpty = function() {
2965
+ }, i.prototype.isEmpty = function() {
2951
2966
  return this._root === null;
2952
- }, Object.defineProperty(n.prototype, "size", {
2967
+ }, Object.defineProperty(i.prototype, "size", {
2953
2968
  get: function() {
2954
2969
  return this._size;
2955
2970
  },
2956
2971
  enumerable: !0,
2957
2972
  configurable: !0
2958
- }), Object.defineProperty(n.prototype, "root", {
2973
+ }), Object.defineProperty(i.prototype, "root", {
2959
2974
  get: function() {
2960
2975
  return this._root;
2961
2976
  },
2962
2977
  enumerable: !0,
2963
2978
  configurable: !0
2964
- }), n.prototype.toString = function(e) {
2965
- e === void 0 && (e = function(i) {
2966
- return String(i.key);
2979
+ }), i.prototype.toString = function(e) {
2980
+ e === void 0 && (e = function(n) {
2981
+ return String(n.key);
2967
2982
  });
2968
2983
  var t = [];
2969
- return Ot(this._root, "", !0, function(i) {
2970
- return t.push(i);
2984
+ return At(this._root, "", !0, function(n) {
2985
+ return t.push(n);
2971
2986
  }, e), t.join("");
2972
- }, n.prototype.update = function(e, t, i) {
2973
- var r = this._comparator, o = _i(e, this._root, r), l = o.left, s = o.right;
2974
- r(e, t) < 0 ? s = Ct(t, i, s, r) : l = Ct(t, i, l, r), this._root = Wr(l, s, r);
2975
- }, n.prototype.split = function(e) {
2976
- return _i(e, this._root, this._comparator);
2977
- }, n.prototype[Symbol.iterator] = function() {
2978
- var e, t, i;
2979
- return Ir(this, function(r) {
2987
+ }, i.prototype.update = function(e, t, n) {
2988
+ var r = this._comparator, o = Li(e, this._root, r), l = o.left, s = o.right;
2989
+ r(e, t) < 0 ? s = Pt(t, n, s, r) : l = Pt(t, n, l, r), this._root = Fr(l, s, r);
2990
+ }, i.prototype.split = function(e) {
2991
+ return Li(e, this._root, this._comparator);
2992
+ }, i.prototype[Symbol.iterator] = function() {
2993
+ var e, t, n;
2994
+ return Ar(this, function(r) {
2980
2995
  switch (r.label) {
2981
2996
  case 0:
2982
- e = this._root, t = [], i = !1, r.label = 1;
2997
+ e = this._root, t = [], n = !1, r.label = 1;
2983
2998
  case 1:
2984
- return i ? [3, 6] : e === null ? [3, 2] : (t.push(e), e = e.left, [3, 5]);
2999
+ return n ? [3, 6] : e === null ? [3, 2] : (t.push(e), e = e.left, [3, 5]);
2985
3000
  case 2:
2986
3001
  return t.length === 0 ? [3, 4] : (e = t.pop(), [4, e]);
2987
3002
  case 3:
2988
3003
  return r.sent(), e = e.right, [3, 5];
2989
3004
  case 4:
2990
- i = !0, r.label = 5;
3005
+ n = !0, r.label = 5;
2991
3006
  case 5:
2992
3007
  return [3, 1];
2993
3008
  case 6:
@@ -2997,126 +3012,126 @@ var Gt = (
2997
3012
  ];
2998
3013
  }
2999
3014
  });
3000
- }, n;
3015
+ }, i;
3001
3016
  }()
3002
3017
  );
3003
- function Wt(n, e, t, i) {
3004
- var r = i - t;
3018
+ function zt(i, e, t, n) {
3019
+ var r = n - t;
3005
3020
  if (r > 0) {
3006
- var o = t + Math.floor(r / 2), l = n[o], s = e[o], c = new Se(l, s);
3007
- return c.left = Wt(n, e, t, o), c.right = Wt(n, e, o + 1, i), c;
3021
+ var o = t + Math.floor(r / 2), l = i[o], s = e[o], c = new Me(l, s);
3022
+ return c.left = zt(i, e, t, o), c.right = zt(i, e, o + 1, n), c;
3008
3023
  }
3009
3024
  return null;
3010
3025
  }
3011
- function Ar(n, e) {
3012
- for (var t = new Se(null, null), i = t, r = 0; r < n.length; r++)
3013
- i = i.next = new Se(n[r], e[r]);
3014
- return i.next = null, t.next;
3026
+ function Br(i, e) {
3027
+ for (var t = new Me(null, null), n = t, r = 0; r < i.length; r++)
3028
+ n = n.next = new Me(i[r], e[r]);
3029
+ return n.next = null, t.next;
3015
3030
  }
3016
- function zr(n) {
3017
- for (var e = n, t = [], i = !1, r = new Se(null, null), o = r; !i; )
3018
- e ? (t.push(e), e = e.left) : t.length > 0 ? (e = o = o.next = t.pop(), e = e.right) : i = !0;
3031
+ function Dr(i) {
3032
+ for (var e = i, t = [], n = !1, r = new Me(null, null), o = r; !n; )
3033
+ e ? (t.push(e), e = e.left) : t.length > 0 ? (e = o = o.next = t.pop(), e = e.right) : n = !0;
3019
3034
  return o.next = null, r.next;
3020
3035
  }
3021
- function At(n, e, t) {
3022
- var i = t - e;
3023
- if (i > 0) {
3024
- var r = e + Math.floor(i / 2), o = At(n, e, r), l = n.head;
3025
- return l.left = o, n.head = n.head.next, l.right = At(n, r + 1, t), l;
3036
+ function Ft(i, e, t) {
3037
+ var n = t - e;
3038
+ if (n > 0) {
3039
+ var r = e + Math.floor(n / 2), o = Ft(i, e, r), l = i.head;
3040
+ return l.left = o, i.head = i.head.next, l.right = Ft(i, r + 1, t), l;
3026
3041
  }
3027
3042
  return null;
3028
3043
  }
3029
- function Br(n, e, t) {
3030
- for (var i = new Se(null, null), r = i, o = n, l = e; o !== null && l !== null; )
3044
+ function Ur(i, e, t) {
3045
+ for (var n = new Me(null, null), r = n, o = i, l = e; o !== null && l !== null; )
3031
3046
  t(o.key, l.key) < 0 ? (r.next = o, o = o.next) : (r.next = l, l = l.next), r = r.next;
3032
- return o !== null ? r.next = o : l !== null && (r.next = l), i.next;
3047
+ return o !== null ? r.next = o : l !== null && (r.next = l), n.next;
3033
3048
  }
3034
- function zt(n, e, t, i, r) {
3035
- if (!(t >= i)) {
3036
- for (var o = n[t + i >> 1], l = t - 1, s = i + 1; ; ) {
3049
+ function Bt(i, e, t, n, r) {
3050
+ if (!(t >= n)) {
3051
+ for (var o = i[t + n >> 1], l = t - 1, s = n + 1; ; ) {
3037
3052
  do
3038
3053
  l++;
3039
- while (r(n[l], o) < 0);
3054
+ while (r(i[l], o) < 0);
3040
3055
  do
3041
3056
  s--;
3042
- while (r(n[s], o) > 0);
3057
+ while (r(i[s], o) > 0);
3043
3058
  if (l >= s)
3044
3059
  break;
3045
- var c = n[l];
3046
- n[l] = n[s], n[s] = c, c = e[l], e[l] = e[s], e[s] = c;
3060
+ var c = i[l];
3061
+ i[l] = i[s], i[s] = c, c = e[l], e[l] = e[s], e[s] = c;
3047
3062
  }
3048
- zt(n, e, t, s, r), zt(n, e, s + 1, i, r);
3063
+ Bt(i, e, t, s, r), Bt(i, e, s + 1, n, r);
3049
3064
  }
3050
3065
  }
3051
- const he = 11102230246251565e-32, X = 134217729, Fr = (3 + 8 * he) * he;
3052
- function Nt(n, e, t, i, r) {
3053
- let o, l, s, c, u = e[0], d = i[0], a = 0, f = 0;
3054
- d > u == d > -u ? (o = u, u = e[++a]) : (o = d, d = i[++f]);
3066
+ const me = 11102230246251565e-32, X = 134217729, Gr = (3 + 8 * me) * me;
3067
+ function Tt(i, e, t, n, r) {
3068
+ let o, l, s, c, u = e[0], d = n[0], a = 0, f = 0;
3069
+ d > u == d > -u ? (o = u, u = e[++a]) : (o = d, d = n[++f]);
3055
3070
  let h = 0;
3056
- if (a < n && f < t)
3057
- for (d > u == d > -u ? (l = u + o, s = o - (l - u), u = e[++a]) : (l = d + o, s = o - (l - d), d = i[++f]), o = l, s !== 0 && (r[h++] = s); a < n && f < t; )
3058
- d > u == d > -u ? (l = o + u, c = l - o, s = o - (l - c) + (u - c), u = e[++a]) : (l = o + d, c = l - o, s = o - (l - c) + (d - c), d = i[++f]), o = l, s !== 0 && (r[h++] = s);
3059
- for (; a < n; )
3071
+ if (a < i && f < t)
3072
+ for (d > u == d > -u ? (l = u + o, s = o - (l - u), u = e[++a]) : (l = d + o, s = o - (l - d), d = n[++f]), o = l, s !== 0 && (r[h++] = s); a < i && f < t; )
3073
+ d > u == d > -u ? (l = o + u, c = l - o, s = o - (l - c) + (u - c), u = e[++a]) : (l = o + d, c = l - o, s = o - (l - c) + (d - c), d = n[++f]), o = l, s !== 0 && (r[h++] = s);
3074
+ for (; a < i; )
3060
3075
  l = o + u, c = l - o, s = o - (l - c) + (u - c), u = e[++a], o = l, s !== 0 && (r[h++] = s);
3061
3076
  for (; f < t; )
3062
- l = o + d, c = l - o, s = o - (l - c) + (d - c), d = i[++f], o = l, s !== 0 && (r[h++] = s);
3077
+ l = o + d, c = l - o, s = o - (l - c) + (d - c), d = n[++f], o = l, s !== 0 && (r[h++] = s);
3063
3078
  return (o !== 0 || h === 0) && (r[h++] = o), h;
3064
3079
  }
3065
- function Dr(n, e) {
3080
+ function jr(i, e) {
3066
3081
  let t = e[0];
3067
- for (let i = 1; i < n; i++) t += e[i];
3082
+ for (let n = 1; n < i; n++) t += e[n];
3068
3083
  return t;
3069
3084
  }
3070
- function Ye(n) {
3071
- return new Float64Array(n);
3072
- }
3073
- const Ur = (3 + 16 * he) * he, Gr = (2 + 12 * he) * he, jr = (9 + 64 * he) * he * he, ze = Ye(4), Ei = Ye(8), Li = Ye(12), Si = Ye(16), $ = Ye(4);
3074
- function qr(n, e, t, i, r, o, l) {
3075
- let s, c, u, d, a, f, h, m, y, b, w, L, S, E, M, C, v, _;
3076
- const k = n - r, I = t - r, H = e - o, O = i - o;
3077
- E = k * O, f = X * k, h = f - (f - k), m = k - h, f = X * O, y = f - (f - O), b = O - y, M = m * b - (E - h * y - m * y - h * b), C = H * I, f = X * H, h = f - (f - H), m = H - h, f = X * I, y = f - (f - I), b = I - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, ze[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, ze[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, ze[2] = L - (_ - a) + (w - a), ze[3] = _;
3078
- let J = Dr(4, ze), x = Gr * l;
3079
- if (J >= x || -J >= x || (a = n - k, s = n - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - H, c = e - (H + a) + (a - o), a = i - O, d = i - (O + a) + (a - o), s === 0 && c === 0 && u === 0 && d === 0) || (x = jr * l + Fr * Math.abs(J), J += k * d + O * s - (H * u + I * c), J >= x || -J >= x)) return J;
3080
- E = s * O, f = X * s, h = f - (f - s), m = s - h, f = X * O, y = f - (f - O), b = O - y, M = m * b - (E - h * y - m * y - h * b), C = c * I, f = X * c, h = f - (f - c), m = c - h, f = X * I, y = f - (f - I), b = I - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3081
- const A = Nt(4, ze, 4, $, Ei);
3082
- E = k * d, f = X * k, h = f - (f - k), m = k - h, f = X * d, y = f - (f - d), b = d - y, M = m * b - (E - h * y - m * y - h * b), C = H * u, f = X * H, h = f - (f - H), m = H - h, f = X * u, y = f - (f - u), b = u - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3083
- const oe = Nt(A, Ei, 4, $, Li);
3084
- E = s * d, f = X * s, h = f - (f - s), m = s - h, f = X * d, y = f - (f - d), b = d - y, M = m * b - (E - h * y - m * y - h * b), C = c * u, f = X * c, h = f - (f - c), m = c - h, f = X * u, y = f - (f - u), b = u - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3085
- const ce = Nt(oe, Li, 4, $, Si);
3086
- return Si[ce - 1];
3087
- }
3088
- function Qr(n, e, t, i, r, o) {
3089
- const l = (e - o) * (t - r), s = (n - r) * (i - o), c = l - s, u = Math.abs(l + s);
3090
- return Math.abs(c) >= Ur * u ? c : -qr(n, e, t, i, r, o, u);
3091
- }
3092
- const je = (n, e) => n.ll.x <= e.x && e.x <= n.ur.x && n.ll.y <= e.y && e.y <= n.ur.y, Bt = (n, e) => {
3093
- if (e.ur.x < n.ll.x || n.ur.x < e.ll.x || e.ur.y < n.ll.y || n.ur.y < e.ll.y) return null;
3094
- const t = n.ll.x < e.ll.x ? e.ll.x : n.ll.x, i = n.ur.x < e.ur.x ? n.ur.x : e.ur.x, r = n.ll.y < e.ll.y ? e.ll.y : n.ll.y, o = n.ur.y < e.ur.y ? n.ur.y : e.ur.y;
3085
+ function Xe(i) {
3086
+ return new Float64Array(i);
3087
+ }
3088
+ const qr = (3 + 16 * me) * me, Qr = (2 + 12 * me) * me, Vr = (9 + 64 * me) * me * me, Fe = Xe(4), Si = Xe(8), xi = Xe(12), Mi = Xe(16), $ = Xe(4);
3089
+ function Zr(i, e, t, n, r, o, l) {
3090
+ let s, c, u, d, a, f, h, g, y, b, w, L, S, E, M, C, v, _;
3091
+ const k = i - r, I = t - r, Z = e - o, O = n - o;
3092
+ E = k * O, f = X * k, h = f - (f - k), g = k - h, f = X * O, y = f - (f - O), b = O - y, M = g * b - (E - h * y - g * y - h * b), C = Z * I, f = X * Z, h = f - (f - Z), g = Z - h, f = X * I, y = f - (f - I), b = I - y, v = g * b - (C - h * y - g * y - h * b), w = M - v, a = M - w, Fe[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, Fe[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, Fe[2] = L - (_ - a) + (w - a), Fe[3] = _;
3093
+ let J = jr(4, Fe), x = Qr * l;
3094
+ if (J >= x || -J >= x || (a = i - k, s = i - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - Z, c = e - (Z + a) + (a - o), a = n - O, d = n - (O + a) + (a - o), s === 0 && c === 0 && u === 0 && d === 0) || (x = Vr * l + Gr * Math.abs(J), J += k * d + O * s - (Z * u + I * c), J >= x || -J >= x)) return J;
3095
+ E = s * O, f = X * s, h = f - (f - s), g = s - h, f = X * O, y = f - (f - O), b = O - y, M = g * b - (E - h * y - g * y - h * b), C = c * I, f = X * c, h = f - (f - c), g = c - h, f = X * I, y = f - (f - I), b = I - y, v = g * b - (C - h * y - g * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3096
+ const A = Tt(4, Fe, 4, $, Si);
3097
+ E = k * d, f = X * k, h = f - (f - k), g = k - h, f = X * d, y = f - (f - d), b = d - y, M = g * b - (E - h * y - g * y - h * b), C = Z * u, f = X * Z, h = f - (f - Z), g = Z - h, f = X * u, y = f - (f - u), b = u - y, v = g * b - (C - h * y - g * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3098
+ const le = Tt(A, Si, 4, $, xi);
3099
+ E = s * d, f = X * s, h = f - (f - s), g = s - h, f = X * d, y = f - (f - d), b = d - y, M = g * b - (E - h * y - g * y - h * b), C = c * u, f = X * c, h = f - (f - c), g = c - h, f = X * u, y = f - (f - u), b = u - y, v = g * b - (C - h * y - g * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3100
+ const fe = Tt(le, xi, 4, $, Mi);
3101
+ return Mi[fe - 1];
3102
+ }
3103
+ function Hr(i, e, t, n, r, o) {
3104
+ const l = (e - o) * (t - r), s = (i - r) * (n - o), c = l - s, u = Math.abs(l + s);
3105
+ return Math.abs(c) >= qr * u ? c : -Zr(i, e, t, n, r, o, u);
3106
+ }
3107
+ const Qe = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Dt = (i, e) => {
3108
+ if (e.ur.x < i.ll.x || i.ur.x < e.ll.x || e.ur.y < i.ll.y || i.ur.y < e.ll.y) return null;
3109
+ const t = i.ll.x < e.ll.x ? e.ll.x : i.ll.x, n = i.ur.x < e.ur.x ? i.ur.x : e.ur.x, r = i.ll.y < e.ll.y ? e.ll.y : i.ll.y, o = i.ur.y < e.ur.y ? i.ur.y : e.ur.y;
3095
3110
  return {
3096
3111
  ll: {
3097
3112
  x: t,
3098
3113
  y: r
3099
3114
  },
3100
3115
  ur: {
3101
- x: i,
3116
+ x: n,
3102
3117
  y: o
3103
3118
  }
3104
3119
  };
3105
3120
  };
3106
- let we = Number.EPSILON;
3107
- we === void 0 && (we = Math.pow(2, -52));
3108
- const Vr = we * we, xi = (n, e) => {
3109
- if (-we < n && n < we && -we < e && e < we)
3121
+ let Ee = Number.EPSILON;
3122
+ Ee === void 0 && (Ee = Math.pow(2, -52));
3123
+ const Yr = Ee * Ee, ki = (i, e) => {
3124
+ if (-Ee < i && i < Ee && -Ee < e && e < Ee)
3110
3125
  return 0;
3111
- const t = n - e;
3112
- return t * t < Vr * n * e ? 0 : n < e ? -1 : 1;
3126
+ const t = i - e;
3127
+ return t * t < Yr * i * e ? 0 : i < e ? -1 : 1;
3113
3128
  };
3114
- class Zr {
3129
+ class Xr {
3115
3130
  constructor() {
3116
3131
  this.reset();
3117
3132
  }
3118
3133
  reset() {
3119
- this.xRounder = new Mi(), this.yRounder = new Mi();
3134
+ this.xRounder = new Ci(), this.yRounder = new Ci();
3120
3135
  }
3121
3136
  round(e, t) {
3122
3137
  return {
@@ -3125,9 +3140,9 @@ class Zr {
3125
3140
  };
3126
3141
  }
3127
3142
  }
3128
- class Mi {
3143
+ class Ci {
3129
3144
  constructor() {
3130
- this.tree = new Gt(), this.round(0);
3145
+ this.tree = new qt(), this.round(0);
3131
3146
  }
3132
3147
  // Note: this can rounds input values backwards or forwards.
3133
3148
  // You might ask, why not restrict this to just rounding
@@ -3137,61 +3152,61 @@ class Mi {
3137
3152
  // to endpoints (to establish independence from the segment
3138
3153
  // angle for t-intersections).
3139
3154
  round(e) {
3140
- const t = this.tree.add(e), i = this.tree.prev(t);
3141
- if (i !== null && xi(t.key, i.key) === 0)
3142
- return this.tree.remove(e), i.key;
3155
+ const t = this.tree.add(e), n = this.tree.prev(t);
3156
+ if (n !== null && ki(t.key, n.key) === 0)
3157
+ return this.tree.remove(e), n.key;
3143
3158
  const r = this.tree.next(t);
3144
- return r !== null && xi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3159
+ return r !== null && ki(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3145
3160
  }
3146
3161
  }
3147
- const Ze = new Zr(), at = (n, e) => n.x * e.y - n.y * e.x, Qi = (n, e) => n.x * e.x + n.y * e.y, ki = (n, e, t) => {
3148
- const i = Qr(n.x, n.y, e.x, e.y, t.x, t.y);
3149
- return i > 0 ? -1 : i < 0 ? 1 : 0;
3150
- }, dt = (n) => Math.sqrt(Qi(n, n)), Hr = (n, e, t) => {
3151
- const i = {
3152
- x: e.x - n.x,
3153
- y: e.y - n.y
3162
+ const Ye = new Xr(), at = (i, e) => i.x * e.y - i.y * e.x, Zi = (i, e) => i.x * e.x + i.y * e.y, Ni = (i, e, t) => {
3163
+ const n = Hr(i.x, i.y, e.x, e.y, t.x, t.y);
3164
+ return n > 0 ? -1 : n < 0 ? 1 : 0;
3165
+ }, dt = (i) => Math.sqrt(Zi(i, i)), Kr = (i, e, t) => {
3166
+ const n = {
3167
+ x: e.x - i.x,
3168
+ y: e.y - i.y
3154
3169
  }, r = {
3155
- x: t.x - n.x,
3156
- y: t.y - n.y
3170
+ x: t.x - i.x,
3171
+ y: t.y - i.y
3157
3172
  };
3158
- return at(r, i) / dt(r) / dt(i);
3159
- }, Yr = (n, e, t) => {
3160
- const i = {
3161
- x: e.x - n.x,
3162
- y: e.y - n.y
3173
+ return at(r, n) / dt(r) / dt(n);
3174
+ }, Jr = (i, e, t) => {
3175
+ const n = {
3176
+ x: e.x - i.x,
3177
+ y: e.y - i.y
3163
3178
  }, r = {
3164
- x: t.x - n.x,
3165
- y: t.y - n.y
3179
+ x: t.x - i.x,
3180
+ y: t.y - i.y
3166
3181
  };
3167
- return Qi(r, i) / dt(r) / dt(i);
3168
- }, Ci = (n, e, t) => e.y === 0 ? null : {
3169
- x: n.x + e.x / e.y * (t - n.y),
3182
+ return Zi(r, n) / dt(r) / dt(n);
3183
+ }, Pi = (i, e, t) => e.y === 0 ? null : {
3184
+ x: i.x + e.x / e.y * (t - i.y),
3170
3185
  y: t
3171
- }, Ni = (n, e, t) => e.x === 0 ? null : {
3186
+ }, Ti = (i, e, t) => e.x === 0 ? null : {
3172
3187
  x: t,
3173
- y: n.y + e.y / e.x * (t - n.x)
3174
- }, Xr = (n, e, t, i) => {
3175
- if (e.x === 0) return Ni(t, i, n.x);
3176
- if (i.x === 0) return Ni(n, e, t.x);
3177
- if (e.y === 0) return Ci(t, i, n.y);
3178
- if (i.y === 0) return Ci(n, e, t.y);
3179
- const r = at(e, i);
3188
+ y: i.y + e.y / e.x * (t - i.x)
3189
+ }, $r = (i, e, t, n) => {
3190
+ if (e.x === 0) return Ti(t, n, i.x);
3191
+ if (n.x === 0) return Ti(i, e, t.x);
3192
+ if (e.y === 0) return Pi(t, n, i.y);
3193
+ if (n.y === 0) return Pi(i, e, t.y);
3194
+ const r = at(e, n);
3180
3195
  if (r == 0) return null;
3181
3196
  const o = {
3182
- x: t.x - n.x,
3183
- y: t.y - n.y
3184
- }, l = at(o, e) / r, s = at(o, i) / r, c = n.x + s * e.x, u = t.x + l * i.x, d = n.y + s * e.y, a = t.y + l * i.y, f = (c + u) / 2, h = (d + a) / 2;
3197
+ x: t.x - i.x,
3198
+ y: t.y - i.y
3199
+ }, l = at(o, e) / r, s = at(o, n) / r, c = i.x + s * e.x, u = t.x + l * n.x, d = i.y + s * e.y, a = t.y + l * n.y, f = (c + u) / 2, h = (d + a) / 2;
3185
3200
  return {
3186
3201
  x: f,
3187
3202
  y: h
3188
3203
  };
3189
3204
  };
3190
- class re {
3205
+ class se {
3191
3206
  // for ordering sweep events in the sweep event queue
3192
3207
  static compare(e, t) {
3193
- const i = re.comparePoints(e.point, t.point);
3194
- return i !== 0 ? i : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : _e.compare(e.segment, t.segment));
3208
+ const n = se.comparePoints(e.point, t.point);
3209
+ return n !== 0 ? n : (e.point !== t.point && e.link(t), e.isLeft !== t.isLeft ? e.isLeft ? 1 : -1 : Le.compare(e.segment, t.segment));
3195
3210
  }
3196
3211
  // for ordering points in sweep line order
3197
3212
  static comparePoints(e, t) {
@@ -3205,8 +3220,8 @@ class re {
3205
3220
  if (e.point === this.point)
3206
3221
  throw new Error("Tried to link already linked events");
3207
3222
  const t = e.point.events;
3208
- for (let i = 0, r = t.length; i < r; i++) {
3209
- const o = t[i];
3223
+ for (let n = 0, r = t.length; n < r; n++) {
3224
+ const o = t[n];
3210
3225
  this.point.events.push(o), o.point = this.point;
3211
3226
  }
3212
3227
  this.checkForConsuming();
@@ -3216,17 +3231,17 @@ class re {
3216
3231
  checkForConsuming() {
3217
3232
  const e = this.point.events.length;
3218
3233
  for (let t = 0; t < e; t++) {
3219
- const i = this.point.events[t];
3220
- if (i.segment.consumedBy === void 0)
3234
+ const n = this.point.events[t];
3235
+ if (n.segment.consumedBy === void 0)
3221
3236
  for (let r = t + 1; r < e; r++) {
3222
3237
  const o = this.point.events[r];
3223
- o.consumedBy === void 0 && i.otherSE.point.events === o.otherSE.point.events && i.segment.consume(o.segment);
3238
+ o.consumedBy === void 0 && n.otherSE.point.events === o.otherSE.point.events && n.segment.consume(o.segment);
3224
3239
  }
3225
3240
  }
3226
3241
  }
3227
3242
  getAvailableLinkedEvents() {
3228
3243
  const e = [];
3229
- for (let t = 0, i = this.point.events.length; t < i; t++) {
3244
+ for (let t = 0, n = this.point.events.length; t < n; t++) {
3230
3245
  const r = this.point.events[t];
3231
3246
  r !== this && !r.segment.ringOut && r.segment.isInResult() && e.push(r);
3232
3247
  }
@@ -3243,15 +3258,15 @@ class re {
3243
3258
  * re-computing already-computed values.
3244
3259
  */
3245
3260
  getLeftmostComparator(e) {
3246
- const t = /* @__PURE__ */ new Map(), i = (r) => {
3261
+ const t = /* @__PURE__ */ new Map(), n = (r) => {
3247
3262
  const o = r.otherSE;
3248
3263
  t.set(r, {
3249
- sine: Hr(this.point, e.point, o.point),
3250
- cosine: Yr(this.point, e.point, o.point)
3264
+ sine: Kr(this.point, e.point, o.point),
3265
+ cosine: Jr(this.point, e.point, o.point)
3251
3266
  });
3252
3267
  };
3253
3268
  return (r, o) => {
3254
- t.has(r) || i(r), t.has(o) || i(o);
3269
+ t.has(r) || n(r), t.has(o) || n(o);
3255
3270
  const {
3256
3271
  sine: l,
3257
3272
  cosine: s
@@ -3263,8 +3278,8 @@ class re {
3263
3278
  };
3264
3279
  }
3265
3280
  }
3266
- let Kr = 0;
3267
- class _e {
3281
+ let eo = 0;
3282
+ class Le {
3268
3283
  /* This compare() function is for ordering segments in the sweep
3269
3284
  * line tree, and does so according to the following criteria:
3270
3285
  *
@@ -3279,11 +3294,11 @@ class _e {
3279
3294
  * is directly on the right-more of the two left inputs.
3280
3295
  */
3281
3296
  static compare(e, t) {
3282
- const i = e.leftSE.point.x, r = t.leftSE.point.x, o = e.rightSE.point.x, l = t.rightSE.point.x;
3283
- if (l < i) return 1;
3297
+ const n = e.leftSE.point.x, r = t.leftSE.point.x, o = e.rightSE.point.x, l = t.rightSE.point.x;
3298
+ if (l < n) return 1;
3284
3299
  if (o < r) return -1;
3285
3300
  const s = e.leftSE.point.y, c = t.leftSE.point.y, u = e.rightSE.point.y, d = t.rightSE.point.y;
3286
- if (i < r) {
3301
+ if (n < r) {
3287
3302
  if (c < s && c < u) return 1;
3288
3303
  if (c > s && c > u) return -1;
3289
3304
  const a = e.comparePoint(t.leftSE.point);
@@ -3292,7 +3307,7 @@ class _e {
3292
3307
  const f = t.comparePoint(e.rightSE.point);
3293
3308
  return f !== 0 ? f : -1;
3294
3309
  }
3295
- if (i > r) {
3310
+ if (n > r) {
3296
3311
  if (s < c && s < d) return -1;
3297
3312
  if (s > c && s > d) return 1;
3298
3313
  const a = t.comparePoint(e.leftSE.point);
@@ -3312,27 +3327,27 @@ class _e {
3312
3327
  if (a > 0) return -1;
3313
3328
  }
3314
3329
  if (o !== l) {
3315
- const a = u - s, f = o - i, h = d - c, m = l - r;
3316
- if (a > f && h < m) return 1;
3317
- if (a < f && h > m) return -1;
3330
+ const a = u - s, f = o - n, h = d - c, g = l - r;
3331
+ if (a > f && h < g) return 1;
3332
+ if (a < f && h > g) return -1;
3318
3333
  }
3319
3334
  return o > l ? 1 : o < l || u < d ? -1 : u > d ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
3320
3335
  }
3321
3336
  /* Warning: a reference to ringWindings input will be stored,
3322
3337
  * and possibly will be later modified */
3323
- constructor(e, t, i, r) {
3324
- this.id = ++Kr, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = i, this.windings = r;
3338
+ constructor(e, t, n, r) {
3339
+ this.id = ++eo, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3325
3340
  }
3326
- static fromRing(e, t, i) {
3341
+ static fromRing(e, t, n) {
3327
3342
  let r, o, l;
3328
- const s = re.comparePoints(e, t);
3343
+ const s = se.comparePoints(e, t);
3329
3344
  if (s < 0)
3330
3345
  r = e, o = t, l = 1;
3331
3346
  else if (s > 0)
3332
3347
  r = t, o = e, l = -1;
3333
3348
  else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);
3334
- const c = new re(r, !0), u = new re(o, !1);
3335
- return new _e(c, u, [i], [l]);
3349
+ const c = new se(r, !0), u = new se(o, !1);
3350
+ return new Le(c, u, [n], [l]);
3336
3351
  }
3337
3352
  /* When a segment is split, the rightSE is replaced with a new sweep event */
3338
3353
  replaceRightSE(e) {
@@ -3376,8 +3391,8 @@ class _e {
3376
3391
  */
3377
3392
  comparePoint(e) {
3378
3393
  if (this.isAnEndpoint(e)) return 0;
3379
- const t = this.leftSE.point, i = this.rightSE.point, r = this.vector();
3380
- if (t.x === i.x)
3394
+ const t = this.leftSE.point, n = this.rightSE.point, r = this.vector();
3395
+ if (t.x === n.x)
3381
3396
  return e.x === t.x ? 0 : e.x < t.x ? 1 : -1;
3382
3397
  const o = (e.y - t.y) / r.y, l = t.x + o * r.x;
3383
3398
  if (e.x === l) return 0;
@@ -3400,9 +3415,9 @@ class _e {
3400
3415
  * Else, return null.
3401
3416
  */
3402
3417
  getIntersection(e) {
3403
- const t = this.bbox(), i = e.bbox(), r = Bt(t, i);
3418
+ const t = this.bbox(), n = e.bbox(), r = Dt(t, n);
3404
3419
  if (r === null) return null;
3405
- const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = je(t, s) && this.comparePoint(s) === 0, d = je(i, o) && e.comparePoint(o) === 0, a = je(t, c) && this.comparePoint(c) === 0, f = je(i, l) && e.comparePoint(l) === 0;
3420
+ const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = Qe(t, s) && this.comparePoint(s) === 0, d = Qe(n, o) && e.comparePoint(o) === 0, a = Qe(t, c) && this.comparePoint(c) === 0, f = Qe(n, l) && e.comparePoint(l) === 0;
3406
3421
  if (d && u)
3407
3422
  return f && !a ? l : !f && a ? c : null;
3408
3423
  if (d)
@@ -3412,8 +3427,8 @@ class _e {
3412
3427
  if (f && a) return null;
3413
3428
  if (f) return l;
3414
3429
  if (a) return c;
3415
- const h = Xr(o, this.vector(), s, e.vector());
3416
- return h === null || !je(r, h) ? null : Ze.round(h.x, h.y);
3430
+ const h = $r(o, this.vector(), s, e.vector());
3431
+ return h === null || !Qe(r, h) ? null : Ye.round(h.x, h.y);
3417
3432
  }
3418
3433
  /**
3419
3434
  * Split the given segment into multiple segments on the given points.
@@ -3428,39 +3443,39 @@ class _e {
3428
3443
  * Warning: input array of points is modified
3429
3444
  */
3430
3445
  split(e) {
3431
- const t = [], i = e.events !== void 0, r = new re(e, !0), o = new re(e, !1), l = this.rightSE;
3446
+ const t = [], n = e.events !== void 0, r = new se(e, !0), o = new se(e, !1), l = this.rightSE;
3432
3447
  this.replaceRightSE(o), t.push(o), t.push(r);
3433
- const s = new _e(r, l, this.rings.slice(), this.windings.slice());
3434
- return re.comparePoints(s.leftSE.point, s.rightSE.point) > 0 && s.swapEvents(), re.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), i && (r.checkForConsuming(), o.checkForConsuming()), t;
3448
+ const s = new Le(r, l, this.rings.slice(), this.windings.slice());
3449
+ return se.comparePoints(s.leftSE.point, s.rightSE.point) > 0 && s.swapEvents(), se.comparePoints(this.leftSE.point, this.rightSE.point) > 0 && this.swapEvents(), n && (r.checkForConsuming(), o.checkForConsuming()), t;
3435
3450
  }
3436
3451
  /* Swap which event is left and right */
3437
3452
  swapEvents() {
3438
3453
  const e = this.rightSE;
3439
3454
  this.rightSE = this.leftSE, this.leftSE = e, this.leftSE.isLeft = !0, this.rightSE.isLeft = !1;
3440
- for (let t = 0, i = this.windings.length; t < i; t++)
3455
+ for (let t = 0, n = this.windings.length; t < n; t++)
3441
3456
  this.windings[t] *= -1;
3442
3457
  }
3443
3458
  /* Consume another segment. We take their rings under our wing
3444
3459
  * and mark them as consumed. Use for perfectly overlapping segments */
3445
3460
  consume(e) {
3446
- let t = this, i = e;
3461
+ let t = this, n = e;
3447
3462
  for (; t.consumedBy; ) t = t.consumedBy;
3448
- for (; i.consumedBy; ) i = i.consumedBy;
3449
- const r = _e.compare(t, i);
3463
+ for (; n.consumedBy; ) n = n.consumedBy;
3464
+ const r = Le.compare(t, n);
3450
3465
  if (r !== 0) {
3451
3466
  if (r > 0) {
3452
3467
  const o = t;
3453
- t = i, i = o;
3468
+ t = n, n = o;
3454
3469
  }
3455
- if (t.prev === i) {
3470
+ if (t.prev === n) {
3456
3471
  const o = t;
3457
- t = i, i = o;
3472
+ t = n, n = o;
3458
3473
  }
3459
- for (let o = 0, l = i.rings.length; o < l; o++) {
3460
- const s = i.rings[o], c = i.windings[o], u = t.rings.indexOf(s);
3474
+ for (let o = 0, l = n.rings.length; o < l; o++) {
3475
+ const s = n.rings[o], c = n.windings[o], u = t.rings.indexOf(s);
3461
3476
  u === -1 ? (t.rings.push(s), t.windings.push(c)) : t.windings[u] += c;
3462
3477
  }
3463
- i.rings = null, i.windings = null, i.consumedBy = t, i.leftSE.consumedBy = t.leftSE, i.rightSE.consumedBy = t.rightSE;
3478
+ n.rings = null, n.windings = null, n.consumedBy = t, n.leftSE.consumedBy = t.leftSE, n.rightSE.consumedBy = t.rightSE;
3464
3479
  }
3465
3480
  }
3466
3481
  /* The first segment previous segment chain that is in the result */
@@ -3488,14 +3503,14 @@ class _e {
3488
3503
  windings: e.windings.slice(0),
3489
3504
  multiPolys: []
3490
3505
  };
3491
- const t = this._afterState.rings, i = this._afterState.windings, r = this._afterState.multiPolys;
3506
+ const t = this._afterState.rings, n = this._afterState.windings, r = this._afterState.multiPolys;
3492
3507
  for (let s = 0, c = this.rings.length; s < c; s++) {
3493
3508
  const u = this.rings[s], d = this.windings[s], a = t.indexOf(u);
3494
- a === -1 ? (t.push(u), i.push(d)) : i[a] += d;
3509
+ a === -1 ? (t.push(u), n.push(d)) : n[a] += d;
3495
3510
  }
3496
3511
  const o = [], l = [];
3497
3512
  for (let s = 0, c = t.length; s < c; s++) {
3498
- if (i[s] === 0) continue;
3513
+ if (n[s] === 0) continue;
3499
3514
  const u = t[s], d = u.poly;
3500
3515
  if (l.indexOf(d) === -1)
3501
3516
  if (u.isExterior) o.push(d);
@@ -3516,40 +3531,40 @@ class _e {
3516
3531
  if (this.consumedBy) return !1;
3517
3532
  if (this._isInResult !== void 0) return this._isInResult;
3518
3533
  const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
3519
- switch (se.type) {
3534
+ switch (ue.type) {
3520
3535
  case "union": {
3521
- const i = e.length === 0, r = t.length === 0;
3522
- this._isInResult = i !== r;
3536
+ const n = e.length === 0, r = t.length === 0;
3537
+ this._isInResult = n !== r;
3523
3538
  break;
3524
3539
  }
3525
3540
  case "intersection": {
3526
- let i, r;
3527
- e.length < t.length ? (i = e.length, r = t.length) : (i = t.length, r = e.length), this._isInResult = r === se.numMultiPolys && i < r;
3541
+ let n, r;
3542
+ e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === ue.numMultiPolys && n < r;
3528
3543
  break;
3529
3544
  }
3530
3545
  case "xor": {
3531
- const i = Math.abs(e.length - t.length);
3532
- this._isInResult = i % 2 === 1;
3546
+ const n = Math.abs(e.length - t.length);
3547
+ this._isInResult = n % 2 === 1;
3533
3548
  break;
3534
3549
  }
3535
3550
  case "difference": {
3536
- const i = (r) => r.length === 1 && r[0].isSubject;
3537
- this._isInResult = i(e) !== i(t);
3551
+ const n = (r) => r.length === 1 && r[0].isSubject;
3552
+ this._isInResult = n(e) !== n(t);
3538
3553
  break;
3539
3554
  }
3540
3555
  default:
3541
- throw new Error(`Unrecognized operation type found ${se.type}`);
3556
+ throw new Error(`Unrecognized operation type found ${ue.type}`);
3542
3557
  }
3543
3558
  return this._isInResult;
3544
3559
  }
3545
3560
  }
3546
- class Pi {
3547
- constructor(e, t, i) {
3561
+ class Ri {
3562
+ constructor(e, t, n) {
3548
3563
  if (!Array.isArray(e) || e.length === 0)
3549
3564
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3550
- if (this.poly = t, this.isExterior = i, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3565
+ if (this.poly = t, this.isExterior = n, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3551
3566
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3552
- const r = Ze.round(e[0][0], e[0][1]);
3567
+ const r = Ye.round(e[0][0], e[0][1]);
3553
3568
  this.bbox = {
3554
3569
  ll: {
3555
3570
  x: r.x,
@@ -3564,25 +3579,25 @@ class Pi {
3564
3579
  for (let l = 1, s = e.length; l < s; l++) {
3565
3580
  if (typeof e[l][0] != "number" || typeof e[l][1] != "number")
3566
3581
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3567
- let c = Ze.round(e[l][0], e[l][1]);
3568
- c.x === o.x && c.y === o.y || (this.segments.push(_e.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
3582
+ let c = Ye.round(e[l][0], e[l][1]);
3583
+ c.x === o.x && c.y === o.y || (this.segments.push(Le.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
3569
3584
  }
3570
- (r.x !== o.x || r.y !== o.y) && this.segments.push(_e.fromRing(o, r, this));
3585
+ (r.x !== o.x || r.y !== o.y) && this.segments.push(Le.fromRing(o, r, this));
3571
3586
  }
3572
3587
  getSweepEvents() {
3573
3588
  const e = [];
3574
- for (let t = 0, i = this.segments.length; t < i; t++) {
3589
+ for (let t = 0, n = this.segments.length; t < n; t++) {
3575
3590
  const r = this.segments[t];
3576
3591
  e.push(r.leftSE), e.push(r.rightSE);
3577
3592
  }
3578
3593
  return e;
3579
3594
  }
3580
3595
  }
3581
- class Jr {
3596
+ class to {
3582
3597
  constructor(e, t) {
3583
3598
  if (!Array.isArray(e))
3584
3599
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3585
- this.exteriorRing = new Pi(e[0], this, !0), this.bbox = {
3600
+ this.exteriorRing = new Ri(e[0], this, !0), this.bbox = {
3586
3601
  ll: {
3587
3602
  x: this.exteriorRing.bbox.ll.x,
3588
3603
  y: this.exteriorRing.bbox.ll.y
@@ -3592,15 +3607,15 @@ class Jr {
3592
3607
  y: this.exteriorRing.bbox.ur.y
3593
3608
  }
3594
3609
  }, this.interiorRings = [];
3595
- for (let i = 1, r = e.length; i < r; i++) {
3596
- const o = new Pi(e[i], this, !1);
3610
+ for (let n = 1, r = e.length; n < r; n++) {
3611
+ const o = new Ri(e[n], this, !1);
3597
3612
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
3598
3613
  }
3599
3614
  this.multiPoly = t;
3600
3615
  }
3601
3616
  getSweepEvents() {
3602
3617
  const e = this.exteriorRing.getSweepEvents();
3603
- for (let t = 0, i = this.interiorRings.length; t < i; t++) {
3618
+ for (let t = 0, n = this.interiorRings.length; t < n; t++) {
3604
3619
  const r = this.interiorRings[t].getSweepEvents();
3605
3620
  for (let o = 0, l = r.length; o < l; o++)
3606
3621
  e.push(r[o]);
@@ -3608,7 +3623,7 @@ class Jr {
3608
3623
  return e;
3609
3624
  }
3610
3625
  }
3611
- class Ri {
3626
+ class Ii {
3612
3627
  constructor(e, t) {
3613
3628
  if (!Array.isArray(e))
3614
3629
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -3626,15 +3641,15 @@ class Ri {
3626
3641
  y: Number.NEGATIVE_INFINITY
3627
3642
  }
3628
3643
  };
3629
- for (let i = 0, r = e.length; i < r; i++) {
3630
- const o = new Jr(e[i], this);
3644
+ for (let n = 0, r = e.length; n < r; n++) {
3645
+ const o = new to(e[n], this);
3631
3646
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.polys.push(o);
3632
3647
  }
3633
3648
  this.isSubject = t;
3634
3649
  }
3635
3650
  getSweepEvents() {
3636
3651
  const e = [];
3637
- for (let t = 0, i = this.polys.length; t < i; t++) {
3652
+ for (let t = 0, n = this.polys.length; t < n; t++) {
3638
3653
  const r = this.polys[t].getSweepEvents();
3639
3654
  for (let o = 0, l = r.length; o < l; o++)
3640
3655
  e.push(r[o]);
@@ -3647,8 +3662,8 @@ class ht {
3647
3662
  * of closed rings from all the segments marked to be part of the result */
3648
3663
  static factory(e) {
3649
3664
  const t = [];
3650
- for (let i = 0, r = e.length; i < r; i++) {
3651
- const o = e[i];
3665
+ for (let n = 0, r = e.length; n < r; n++) {
3666
+ const o = e[n];
3652
3667
  if (!o.isInResult() || o.ringOut) continue;
3653
3668
  let l = null, s = o.leftSE, c = o.rightSE;
3654
3669
  const u = [s], d = s.point, a = [];
@@ -3678,8 +3693,8 @@ class ht {
3678
3693
  index: u.length,
3679
3694
  point: s.point
3680
3695
  });
3681
- const m = s.getLeftmostComparator(l);
3682
- c = f.sort(m)[0].otherSE;
3696
+ const g = s.getLeftmostComparator(l);
3697
+ c = f.sort(g)[0].otherSE;
3683
3698
  break;
3684
3699
  }
3685
3700
  t.push(new ht(u));
@@ -3688,7 +3703,7 @@ class ht {
3688
3703
  }
3689
3704
  constructor(e) {
3690
3705
  this.events = e;
3691
- for (let t = 0, i = e.length; t < i; t++)
3706
+ for (let t = 0, n = e.length; t < n; t++)
3692
3707
  e[t].segment.ringOut = this;
3693
3708
  this.poly = null;
3694
3709
  }
@@ -3697,11 +3712,11 @@ class ht {
3697
3712
  const t = [e];
3698
3713
  for (let u = 1, d = this.events.length - 1; u < d; u++) {
3699
3714
  const a = this.events[u].point, f = this.events[u + 1].point;
3700
- ki(a, e, f) !== 0 && (t.push(a), e = a);
3715
+ Ni(a, e, f) !== 0 && (t.push(a), e = a);
3701
3716
  }
3702
3717
  if (t.length === 1) return null;
3703
- const i = t[0], r = t[1];
3704
- ki(i, e, r) === 0 && t.shift(), t.push(t[0]);
3718
+ const n = t[0], r = t[1];
3719
+ Ni(n, e, r) === 0 && t.shift(), t.push(t[0]);
3705
3720
  const o = this.isExteriorRing() ? 1 : -1, l = this.isExteriorRing() ? 0 : t.length - 1, s = this.isExteriorRing() ? t.length : -1, c = [];
3706
3721
  for (let u = l; u != s; u += o) c.push([t[u].x, t[u].y]);
3707
3722
  return c;
@@ -3721,19 +3736,19 @@ class ht {
3721
3736
  let e = this.events[0];
3722
3737
  for (let r = 1, o = this.events.length; r < o; r++) {
3723
3738
  const l = this.events[r];
3724
- re.compare(e, l) > 0 && (e = l);
3739
+ se.compare(e, l) > 0 && (e = l);
3725
3740
  }
3726
- let t = e.segment.prevInResult(), i = t ? t.prevInResult() : null;
3741
+ let t = e.segment.prevInResult(), n = t ? t.prevInResult() : null;
3727
3742
  for (; ; ) {
3728
3743
  if (!t) return null;
3729
- if (!i) return t.ringOut;
3730
- if (i.ringOut !== t.ringOut)
3731
- return i.ringOut.enclosingRing() !== t.ringOut ? t.ringOut : t.ringOut.enclosingRing();
3732
- t = i.prevInResult(), i = t ? t.prevInResult() : null;
3744
+ if (!n) return t.ringOut;
3745
+ if (n.ringOut !== t.ringOut)
3746
+ return n.ringOut.enclosingRing() !== t.ringOut ? t.ringOut : t.ringOut.enclosingRing();
3747
+ t = n.prevInResult(), n = t ? t.prevInResult() : null;
3733
3748
  }
3734
3749
  }
3735
3750
  }
3736
- class Ti {
3751
+ class Oi {
3737
3752
  constructor(e) {
3738
3753
  this.exteriorRing = e, e.poly = this, this.interiorRings = [];
3739
3754
  }
@@ -3743,20 +3758,20 @@ class Ti {
3743
3758
  getGeom() {
3744
3759
  const e = [this.exteriorRing.getGeom()];
3745
3760
  if (e[0] === null) return null;
3746
- for (let t = 0, i = this.interiorRings.length; t < i; t++) {
3761
+ for (let t = 0, n = this.interiorRings.length; t < n; t++) {
3747
3762
  const r = this.interiorRings[t].getGeom();
3748
3763
  r !== null && e.push(r);
3749
3764
  }
3750
3765
  return e;
3751
3766
  }
3752
3767
  }
3753
- class $r {
3768
+ class io {
3754
3769
  constructor(e) {
3755
3770
  this.rings = e, this.polys = this._composePolys(e);
3756
3771
  }
3757
3772
  getGeom() {
3758
3773
  const e = [];
3759
- for (let t = 0, i = this.polys.length; t < i; t++) {
3774
+ for (let t = 0, n = this.polys.length; t < n; t++) {
3760
3775
  const r = this.polys[t].getGeom();
3761
3776
  r !== null && e.push(r);
3762
3777
  }
@@ -3764,27 +3779,27 @@ class $r {
3764
3779
  }
3765
3780
  _composePolys(e) {
3766
3781
  const t = [];
3767
- for (let i = 0, r = e.length; i < r; i++) {
3768
- const o = e[i];
3782
+ for (let n = 0, r = e.length; n < r; n++) {
3783
+ const o = e[n];
3769
3784
  if (!o.poly)
3770
- if (o.isExteriorRing()) t.push(new Ti(o));
3785
+ if (o.isExteriorRing()) t.push(new Oi(o));
3771
3786
  else {
3772
3787
  const l = o.enclosingRing();
3773
- l.poly || t.push(new Ti(l)), l.poly.addInterior(o);
3788
+ l.poly || t.push(new Oi(l)), l.poly.addInterior(o);
3774
3789
  }
3775
3790
  }
3776
3791
  return t;
3777
3792
  }
3778
3793
  }
3779
- class eo {
3794
+ class no {
3780
3795
  constructor(e) {
3781
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _e.compare;
3782
- this.queue = e, this.tree = new Gt(t), this.segments = [];
3796
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Le.compare;
3797
+ this.queue = e, this.tree = new qt(t), this.segments = [];
3783
3798
  }
3784
3799
  process(e) {
3785
- const t = e.segment, i = [];
3800
+ const t = e.segment, n = [];
3786
3801
  if (e.consumedBy)
3787
- return e.isLeft ? this.queue.remove(e.otherSE) : this.tree.remove(t), i;
3802
+ return e.isLeft ? this.queue.remove(e.otherSE) : this.tree.remove(t), n;
3788
3803
  const r = e.isLeft ? this.tree.add(t) : this.tree.find(t);
3789
3804
  if (!r) throw new Error(`Unable to find segment #${t.id} [${t.leftSE.point.x}, ${t.leftSE.point.y}] -> [${t.rightSE.point.x}, ${t.rightSE.point.y}] in SweepLine tree.`);
3790
3805
  let o = r, l = r, s, c;
@@ -3798,8 +3813,8 @@ class eo {
3798
3813
  const a = s.getIntersection(t);
3799
3814
  if (a !== null && (t.isAnEndpoint(a) || (u = a), !s.isAnEndpoint(a))) {
3800
3815
  const f = this._splitSafely(s, a);
3801
- for (let h = 0, m = f.length; h < m; h++)
3802
- i.push(f[h]);
3816
+ for (let h = 0, g = f.length; h < g; h++)
3817
+ n.push(f[h]);
3803
3818
  }
3804
3819
  }
3805
3820
  let d = null;
@@ -3807,18 +3822,18 @@ class eo {
3807
3822
  const a = c.getIntersection(t);
3808
3823
  if (a !== null && (t.isAnEndpoint(a) || (d = a), !c.isAnEndpoint(a))) {
3809
3824
  const f = this._splitSafely(c, a);
3810
- for (let h = 0, m = f.length; h < m; h++)
3811
- i.push(f[h]);
3825
+ for (let h = 0, g = f.length; h < g; h++)
3826
+ n.push(f[h]);
3812
3827
  }
3813
3828
  }
3814
3829
  if (u !== null || d !== null) {
3815
3830
  let a = null;
3816
- u === null ? a = d : d === null ? a = u : a = re.comparePoints(u, d) <= 0 ? u : d, this.queue.remove(t.rightSE), i.push(t.rightSE);
3831
+ u === null ? a = d : d === null ? a = u : a = se.comparePoints(u, d) <= 0 ? u : d, this.queue.remove(t.rightSE), n.push(t.rightSE);
3817
3832
  const f = t.split(a);
3818
- for (let h = 0, m = f.length; h < m; h++)
3819
- i.push(f[h]);
3833
+ for (let h = 0, g = f.length; h < g; h++)
3834
+ n.push(f[h]);
3820
3835
  }
3821
- i.length > 0 ? (this.tree.remove(t), i.push(e)) : (this.segments.push(t), t.prev = s);
3836
+ n.length > 0 ? (this.tree.remove(t), n.push(e)) : (this.segments.push(t), t.prev = s);
3822
3837
  } else {
3823
3838
  if (s && c) {
3824
3839
  const u = s.getIntersection(c);
@@ -3826,56 +3841,56 @@ class eo {
3826
3841
  if (!s.isAnEndpoint(u)) {
3827
3842
  const d = this._splitSafely(s, u);
3828
3843
  for (let a = 0, f = d.length; a < f; a++)
3829
- i.push(d[a]);
3844
+ n.push(d[a]);
3830
3845
  }
3831
3846
  if (!c.isAnEndpoint(u)) {
3832
3847
  const d = this._splitSafely(c, u);
3833
3848
  for (let a = 0, f = d.length; a < f; a++)
3834
- i.push(d[a]);
3849
+ n.push(d[a]);
3835
3850
  }
3836
3851
  }
3837
3852
  }
3838
3853
  this.tree.remove(t);
3839
3854
  }
3840
- return i;
3855
+ return n;
3841
3856
  }
3842
3857
  /* Safely split a segment that is currently in the datastructures
3843
3858
  * IE - a segment other than the one that is currently being processed. */
3844
3859
  _splitSafely(e, t) {
3845
3860
  this.tree.remove(e);
3846
- const i = e.rightSE;
3847
- this.queue.remove(i);
3861
+ const n = e.rightSE;
3862
+ this.queue.remove(n);
3848
3863
  const r = e.split(t);
3849
- return r.push(i), e.consumedBy === void 0 && this.tree.add(e), r;
3864
+ return r.push(n), e.consumedBy === void 0 && this.tree.add(e), r;
3850
3865
  }
3851
3866
  }
3852
- const Ii = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, to = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3853
- class io {
3854
- run(e, t, i) {
3855
- se.type = e, Ze.reset();
3856
- const r = [new Ri(t, !0)];
3857
- for (let a = 0, f = i.length; a < f; a++)
3858
- r.push(new Ri(i[a], !1));
3859
- if (se.numMultiPolys = r.length, se.type === "difference") {
3867
+ const Wi = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, ro = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3868
+ class oo {
3869
+ run(e, t, n) {
3870
+ ue.type = e, Ye.reset();
3871
+ const r = [new Ii(t, !0)];
3872
+ for (let a = 0, f = n.length; a < f; a++)
3873
+ r.push(new Ii(n[a], !1));
3874
+ if (ue.numMultiPolys = r.length, ue.type === "difference") {
3860
3875
  const a = r[0];
3861
3876
  let f = 1;
3862
3877
  for (; f < r.length; )
3863
- Bt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3878
+ Dt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3864
3879
  }
3865
- if (se.type === "intersection")
3880
+ if (ue.type === "intersection")
3866
3881
  for (let a = 0, f = r.length; a < f; a++) {
3867
3882
  const h = r[a];
3868
- for (let m = a + 1, y = r.length; m < y; m++)
3869
- if (Bt(h.bbox, r[m].bbox) === null) return [];
3883
+ for (let g = a + 1, y = r.length; g < y; g++)
3884
+ if (Dt(h.bbox, r[g].bbox) === null) return [];
3870
3885
  }
3871
- const o = new Gt(re.compare);
3886
+ const o = new qt(se.compare);
3872
3887
  for (let a = 0, f = r.length; a < f; a++) {
3873
3888
  const h = r[a].getSweepEvents();
3874
- for (let m = 0, y = h.length; m < y; m++)
3875
- if (o.insert(h[m]), o.size > Ii)
3889
+ for (let g = 0, y = h.length; g < y; g++)
3890
+ if (o.insert(h[g]), o.size > Wi)
3876
3891
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3877
3892
  }
3878
- const l = new eo(o);
3893
+ const l = new no(o);
3879
3894
  let s = o.size, c = o.pop();
3880
3895
  for (; c; ) {
3881
3896
  const a = c.key;
@@ -3883,78 +3898,78 @@ class io {
3883
3898
  const h = a.segment;
3884
3899
  throw new Error(`Unable to pop() ${a.isLeft ? "left" : "right"} SweepEvent [${a.point.x}, ${a.point.y}] from segment #${h.id} [${h.leftSE.point.x}, ${h.leftSE.point.y}] -> [${h.rightSE.point.x}, ${h.rightSE.point.y}] from queue.`);
3885
3900
  }
3886
- if (o.size > Ii)
3901
+ if (o.size > Wi)
3887
3902
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
3888
- if (l.segments.length > to)
3903
+ if (l.segments.length > ro)
3889
3904
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
3890
3905
  const f = l.process(a);
3891
- for (let h = 0, m = f.length; h < m; h++) {
3906
+ for (let h = 0, g = f.length; h < g; h++) {
3892
3907
  const y = f[h];
3893
3908
  y.consumedBy === void 0 && o.insert(y);
3894
3909
  }
3895
3910
  s = o.size, c = o.pop();
3896
3911
  }
3897
- Ze.reset();
3912
+ Ye.reset();
3898
3913
  const u = ht.factory(l.segments);
3899
- return new $r(u).getGeom();
3900
- }
3901
- }
3902
- const se = new io(), no = function(n) {
3903
- for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3904
- t[i - 1] = arguments[i];
3905
- return se.run("union", n, t);
3906
- }, ro = function(n) {
3907
- for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3908
- t[i - 1] = arguments[i];
3909
- return se.run("intersection", n, t);
3910
- }, oo = function(n) {
3911
- for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3912
- t[i - 1] = arguments[i];
3913
- return se.run("xor", n, t);
3914
- }, so = function(n) {
3915
- for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3916
- t[i - 1] = arguments[i];
3917
- return se.run("difference", n, t);
3914
+ return new io(u).getGeom();
3915
+ }
3916
+ }
3917
+ const ue = new oo(), so = function(i) {
3918
+ for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
3919
+ t[n - 1] = arguments[n];
3920
+ return ue.run("union", i, t);
3921
+ }, lo = function(i) {
3922
+ for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
3923
+ t[n - 1] = arguments[n];
3924
+ return ue.run("intersection", i, t);
3925
+ }, uo = function(i) {
3926
+ for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
3927
+ t[n - 1] = arguments[n];
3928
+ return ue.run("xor", i, t);
3929
+ }, ao = function(i) {
3930
+ for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
3931
+ t[n - 1] = arguments[n];
3932
+ return ue.run("difference", i, t);
3918
3933
  };
3919
- var Vi = {
3920
- union: no,
3921
- intersection: ro,
3922
- xor: oo,
3923
- difference: so
3934
+ var Hi = {
3935
+ union: so,
3936
+ intersection: lo,
3937
+ xor: uo,
3938
+ difference: ao
3924
3939
  };
3925
- function lo(n) {
3940
+ function co(i) {
3926
3941
  const e = [];
3927
- if (Ut(n, (r) => {
3942
+ if (jt(i, (r) => {
3928
3943
  e.push(r.coordinates);
3929
3944
  }), e.length < 2)
3930
3945
  throw new Error("Must have at least two features");
3931
- const t = n.features[0].properties || {}, i = Vi.difference(e[0], ...e.slice(1));
3932
- return i.length === 0 ? null : i.length === 1 ? Dt(i[0], t) : ji(i, t);
3946
+ const t = i.features[0].properties || {}, n = Hi.difference(e[0], ...e.slice(1));
3947
+ return n.length === 0 ? null : n.length === 1 ? Gt(n[0], t) : Qi(n, t);
3933
3948
  }
3934
- var uo = lo;
3935
- function ao(n) {
3936
- if (!n)
3949
+ var fo = co;
3950
+ function ho(i) {
3951
+ if (!i)
3937
3952
  throw new Error("geojson is required");
3938
3953
  var e = [];
3939
- return Rr(n, function(t) {
3954
+ return Or(i, function(t) {
3940
3955
  e.push(t);
3941
- }), It(e);
3956
+ }), Wt(e);
3942
3957
  }
3943
- var co = ao;
3944
- function fo(n, e = {}) {
3958
+ var mo = ho;
3959
+ function go(i, e = {}) {
3945
3960
  const t = [];
3946
- if (Ut(n, (r) => {
3961
+ if (jt(i, (r) => {
3947
3962
  t.push(r.coordinates);
3948
3963
  }), t.length < 2)
3949
3964
  throw new Error("Must have at least 2 geometries");
3950
- const i = Vi.union(t[0], ...t.slice(1));
3951
- return i.length === 0 ? null : i.length === 1 ? Dt(i[0], e.properties) : ji(i, e.properties);
3952
- }
3953
- var ho = fo;
3954
- function Oi(n, e) {
3955
- const t = uo(
3956
- It([
3957
- Dt([
3965
+ const n = Hi.union(t[0], ...t.slice(1));
3966
+ return n.length === 0 ? null : n.length === 1 ? Gt(n[0], e.properties) : Qi(n, e.properties);
3967
+ }
3968
+ var yo = go;
3969
+ function Ai(i, e) {
3970
+ const t = fo(
3971
+ Wt([
3972
+ Gt([
3958
3973
  [
3959
3974
  [180, 90],
3960
3975
  [-180, 90],
@@ -3963,16 +3978,16 @@ function Oi(n, e) {
3963
3978
  [180, 90]
3964
3979
  ]
3965
3980
  ]),
3966
- n
3981
+ i
3967
3982
  ])
3968
3983
  );
3969
3984
  if (!t)
3970
3985
  return;
3971
3986
  t.properties = { isMask: !0 };
3972
- const i = ct(wi(n)), r = (i[2] - i[0]) / 360 / 1e3, o = i[0] < -180, l = i[2] > 180, s = co(n);
3987
+ const n = ct(Ei(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, l = n[2] > 180, s = mo(i);
3973
3988
  if (s.features.length > 1 && (o || l))
3974
3989
  for (const c of s.features) {
3975
- const u = ct(wi(c));
3990
+ const u = ct(Ei(c));
3976
3991
  if (l && u[0] < -180 + r)
3977
3992
  for (const d of c.geometry.coordinates)
3978
3993
  for (const a of d)
@@ -3983,36 +3998,36 @@ function Oi(n, e) {
3983
3998
  a[0] -= 360 - r;
3984
3999
  }
3985
4000
  e(
3986
- It([
3987
- s.features.length < 2 ? n : ho(s) ?? n,
4001
+ Wt([
4002
+ s.features.length < 2 ? i : yo(s) ?? i,
3988
4003
  t
3989
4004
  ])
3990
4005
  );
3991
4006
  }
3992
- const Wi = "EPSG:4326";
3993
- function go(n) {
4007
+ const zi = "EPSG:4326";
4008
+ function po(i) {
3994
4009
  var o;
3995
- const e = n.getProperties(), { isMask: t } = e, i = (o = n.getGeometry()) == null ? void 0 : o.getType(), r = t ? 0 : i === "LineString" || i === "MultiLineString" ? 3 : 2;
3996
- return new Sn({
3997
- stroke: t ? void 0 : new ti({
4010
+ const e = i.getProperties(), { isMask: t } = e, n = (o = i.getGeometry()) == null ? void 0 : o.getType(), r = t ? 0 : n === "LineString" || n === "MultiLineString" ? 3 : 2;
4011
+ return new kn({
4012
+ stroke: t ? void 0 : new ni({
3998
4013
  color: "#3170fe",
3999
4014
  lineDash: [r, r],
4000
4015
  width: r,
4001
4016
  lineCap: "butt"
4002
4017
  }),
4003
- fill: t ? new ei({
4018
+ fill: t ? new ii({
4004
4019
  color: "#00000020"
4005
4020
  }) : void 0,
4006
- image: new Ln({
4021
+ image: new Mn({
4007
4022
  src: `/icons/marker_${e.isReverse ? "reverse" : e.isSelected ? "selected" : "unselected"}.svg`,
4008
4023
  anchor: [0.5, 1]
4009
4024
  }),
4010
4025
  zIndex: e.isSelected ? 2 : e.isReverse ? 0 : 1,
4011
- text: e.isSelected && e.tooltip ? new xn({
4012
- backgroundFill: new ei({ color: "white" }),
4026
+ text: e.isSelected && e.tooltip ? new Cn({
4027
+ backgroundFill: new ii({ color: "white" }),
4013
4028
  text: e.tooltip,
4014
4029
  offsetY: -40,
4015
- backgroundStroke: new ti({
4030
+ backgroundStroke: new ni({
4016
4031
  color: "white",
4017
4032
  lineJoin: "round",
4018
4033
  width: 3
@@ -4021,79 +4036,79 @@ function go(n) {
4021
4036
  }) : void 0
4022
4037
  });
4023
4038
  }
4024
- function mo(n, e = {}, t = {}, i = go) {
4039
+ function vo(i, e = {}, t = {}, n = po) {
4025
4040
  let r = -1, o, l, s, c = !1;
4026
- const u = new bn({
4041
+ const u = new En({
4027
4042
  updateWhileAnimating: !0
4028
4043
  });
4029
- n.addLayer(u);
4030
- const d = new En({});
4031
- u.setSource(d), u.setStyle(i), n.on("click", (m) => {
4032
- n.forEachFeatureAtPixel(m.pixel, (y) => {
4044
+ i.addLayer(u);
4045
+ const d = new xn({});
4046
+ u.setSource(d), u.setStyle(n), i.on("click", (g) => {
4047
+ i.forEachFeatureAtPixel(g.pixel, (y) => {
4033
4048
  const b = y.getId();
4034
4049
  if (b)
4035
- return m.stopPropagation(), l == null || l({ type: "markerClick", id: b }), y;
4050
+ return g.stopPropagation(), l == null || l({ type: "markerClick", id: b }), y;
4036
4051
  });
4037
- }), n.on("pointermove", (m) => {
4038
- const y = n.forEachFeatureAtPixel(m.pixel, (b) => b.getId());
4052
+ }), i.on("pointermove", (g) => {
4053
+ const y = i.forEachFeatureAtPixel(g.pixel, (b) => b.getId());
4039
4054
  o !== y && (o && (l == null || l({
4040
4055
  type: "markerMouseLeave",
4041
4056
  id: o
4042
4057
  })), y && (l == null || l({
4043
4058
  type: "markerMouseEnter",
4044
4059
  id: y
4045
- })), n.getTargetElement().style.cursor = y ? "pointer" : c ? "crosshair" : "", o = y);
4060
+ })), i.getTargetElement().style.cursor = y ? "pointer" : c ? "crosshair" : "", o = y);
4046
4061
  });
4047
4062
  function a() {
4048
- return wn() ?? n.getView().getProjection();
4063
+ return Sn() ?? i.getView().getProjection();
4049
4064
  }
4050
- function f(m) {
4051
- return m.transform(Wi, a());
4065
+ function f(g) {
4066
+ return g.transform(zi, a());
4052
4067
  }
4053
- const h = (m) => {
4068
+ const h = (g) => {
4054
4069
  l == null || l({
4055
4070
  type: "mapClick",
4056
- coordinates: $t(m.coordinate, a())
4071
+ coordinates: ti(g.coordinate, a())
4057
4072
  });
4058
4073
  };
4059
4074
  return {
4060
- setEventHandler(m) {
4061
- m ? (l = m, n.on("click", h)) : (l = void 0, n.un("click", h));
4075
+ setEventHandler(g) {
4076
+ g ? (l = g, i.on("click", h)) : (l = void 0, i.un("click", h));
4062
4077
  },
4063
- flyTo(m, y) {
4064
- n.getView().animate({
4065
- center: rt(m, a()),
4078
+ flyTo(g, y) {
4079
+ i.getView().animate({
4080
+ center: rt(g, a()),
4066
4081
  ...y ? { zoom: y } : {},
4067
4082
  duration: 2e3,
4068
4083
  ...e
4069
4084
  });
4070
4085
  },
4071
- fitBounds(m, y, b) {
4072
- n.getView().fit(_n(m, Wi, a()), {
4086
+ fitBounds(g, y, b) {
4087
+ i.getView().fit(Ln(g, zi, a()), {
4073
4088
  padding: [y, y, y, y],
4074
4089
  ...b ? { maxZoom: b } : {},
4075
4090
  duration: 2e3,
4076
4091
  ...t
4077
4092
  });
4078
4093
  },
4079
- indicateReverse(m) {
4080
- c = m, n.getTargetElement().style.cursor = m ? "crosshair" : "";
4094
+ indicateReverse(g) {
4095
+ c = g, i.getTargetElement().style.cursor = g ? "crosshair" : "";
4081
4096
  },
4082
- setReverseMarker(m) {
4083
- s ? m ? s.getGeometry().setCoordinates(
4084
- rt(m, a())
4085
- ) : (d.removeFeature(s), s.dispose(), s = void 0) : m && (s = new fe(
4086
- new Mt(rt(m, a()))
4097
+ setReverseMarker(g) {
4098
+ s ? g ? s.getGeometry().setCoordinates(
4099
+ rt(g, a())
4100
+ ) : (d.removeFeature(s), s.dispose(), s = void 0) : g && (s = new de(
4101
+ new Ct(rt(g, a()))
4087
4102
  ), s.setProperties({ isReverse: !0 }), d.addFeature(s));
4088
4103
  },
4089
- setMarkers(m, y, b) {
4104
+ setFeatures(g, y, b) {
4090
4105
  function w(L) {
4091
4106
  var S;
4092
4107
  if (L)
4093
4108
  for (const E of L.features) {
4094
- const M = E.geometry.type === "Polygon" ? new Yt(E.geometry.coordinates) : E.geometry.type === "MultiPolygon" ? new Xt(E.geometry.coordinates) : null;
4109
+ const M = E.geometry.type === "Polygon" ? new Kt(E.geometry.coordinates) : E.geometry.type === "MultiPolygon" ? new Jt(E.geometry.coordinates) : null;
4095
4110
  M && d.addFeature(
4096
- new fe({
4111
+ new de({
4097
4112
  isMask: !!((S = E.properties) != null && S.isMask),
4098
4113
  geometry: f(M)
4099
4114
  })
@@ -4104,40 +4119,40 @@ function mo(n, e = {}, t = {}, i = go) {
4104
4119
  let L = !1;
4105
4120
  if (y.geometry.type === "GeometryCollection") {
4106
4121
  const S = y.geometry.geometries.map(
4107
- (E) => E.type === "Polygon" ? new Yt(E.coordinates) : E.type === "MultiPolygon" ? new Xt(E.coordinates) : null
4122
+ (E) => E.type === "Polygon" ? new Kt(E.coordinates) : E.type === "MultiPolygon" ? new Jt(E.coordinates) : null
4108
4123
  ).filter((E) => !!E);
4109
4124
  if (S.length > 0)
4110
4125
  d.addFeature(
4111
- new fe(f(new vn(S)))
4126
+ new de(f(new _n(S)))
4112
4127
  ), L = !0;
4113
4128
  else
4114
4129
  for (const E of y.geometry.geometries)
4115
4130
  E.type === "LineString" ? (d.addFeature(
4116
- new fe(
4117
- f(new Kt(E.coordinates))
4131
+ new de(
4132
+ f(new $t(E.coordinates))
4118
4133
  )
4119
4134
  ), L = !0) : E.type === "MultiLineString" && d.addFeature(
4120
- new fe(
4121
- f(new Jt(E.coordinates))
4135
+ new de(
4136
+ f(new ei(E.coordinates))
4122
4137
  )
4123
4138
  ), L = !0;
4124
4139
  }
4125
4140
  if (!L) {
4126
4141
  if (y.geometry.type === "Polygon")
4127
- Oi(y, w);
4142
+ Ai(y, w);
4128
4143
  else if (y.geometry.type === "MultiPolygon")
4129
- Oi(y, w);
4144
+ Ai(y, w);
4130
4145
  else if (y.geometry.type === "LineString") {
4131
4146
  d.addFeature(
4132
- new fe(
4133
- f(new Kt(y.geometry.coordinates))
4147
+ new de(
4148
+ f(new $t(y.geometry.coordinates))
4134
4149
  )
4135
4150
  );
4136
4151
  return;
4137
4152
  } else if (y.geometry.type === "MultiLineString") {
4138
4153
  d.addFeature(
4139
- new fe(
4140
- f(new Jt(y.geometry.coordinates))
4154
+ new de(
4155
+ f(new ei(y.geometry.coordinates))
4141
4156
  )
4142
4157
  );
4143
4158
  return;
@@ -4145,13 +4160,13 @@ function mo(n, e = {}, t = {}, i = go) {
4145
4160
  }
4146
4161
  if (!b && y.geometry.type !== "Point")
4147
4162
  return;
4148
- d.addFeature(new fe(f(new Mt(y.center))));
4163
+ d.addFeature(new de(f(new Ct(y.center))));
4149
4164
  }
4150
- for (const L of m ?? []) {
4165
+ for (const L of g ?? []) {
4151
4166
  if (L === y)
4152
4167
  continue;
4153
- const S = new fe(
4154
- new Mt(rt(L.center, a()))
4168
+ const S = new de(
4169
+ new Ct(rt(L.center, a()))
4155
4170
  );
4156
4171
  S.setId(L.id), S.setProperties({
4157
4172
  fuzzy: !!L.matching_text,
@@ -4159,183 +4174,182 @@ function mo(n, e = {}, t = {}, i = go) {
4159
4174
  }), d.addFeature(S);
4160
4175
  }
4161
4176
  },
4162
- setSelectedMarker(m) {
4177
+ setSelectedMarker(g) {
4163
4178
  var w, L, S;
4164
4179
  const y = d.getFeatures(), b = (w = y[0]) != null && w.getProperties().isReverse ? 1 : 0;
4165
4180
  r > -1 && ((L = y[r + b]) == null || L.setProperties({
4166
4181
  isSelected: !1
4167
- })), m > -1 && ((S = y[m + b]) == null || S.setProperties({
4182
+ })), g > -1 && ((S = y[g + b]) == null || S.setProperties({
4168
4183
  isSelected: !0
4169
- })), r = m;
4184
+ })), r = g;
4170
4185
  },
4171
4186
  getCenterAndZoom() {
4172
- const m = n.getView(), y = m.getCenter(), b = m.getZoom();
4187
+ const g = i.getView(), y = g.getCenter(), b = g.getZoom();
4173
4188
  if (!(!y || b === void 0))
4174
- return [b, ...$t(y, a())];
4189
+ return [b, ...ti(y, a())];
4175
4190
  }
4176
4191
  };
4177
4192
  }
4178
- var Z, Ne, He;
4179
- class Bo extends pn {
4193
+ var V, Te;
4194
+ class Uo extends wn {
4180
4195
  constructor(t) {
4181
- const i = document.createElement("div");
4182
- i.className = "ol-search";
4196
+ const n = document.createElement("div");
4197
+ n.className = "ol-search";
4183
4198
  super({
4184
- element: i,
4199
+ element: n,
4185
4200
  target: t.target
4186
4201
  });
4187
- it(this, Z);
4188
- it(this, Ne);
4189
- it(this, He);
4202
+ Mt(this, V);
4203
+ Mt(this, Te);
4190
4204
  const { flyTo: r, fullGeometryStyle: o, ...l } = t;
4191
- nt(this, Z, new Pr({
4192
- target: i,
4205
+ kt(this, V, new Ir({
4206
+ target: n,
4193
4207
  props: {
4194
4208
  flyTo: r === void 0 ? !0 : !!r,
4195
4209
  ...l
4196
4210
  }
4197
- })), Q(this, Z).$on("select", (s) => {
4198
- this.dispatchEvent(new yo(s.detail.feature));
4199
- }), Q(this, Z).$on("pick", (s) => {
4200
- this.dispatchEvent(new wo(s.detail.feature));
4201
- }), Q(this, Z).$on("featureslisted", (s) => {
4202
- this.dispatchEvent(new po(s.detail.features));
4203
- }), Q(this, Z).$on("featuresmarked", (s) => {
4204
- this.dispatchEvent(new vo(s.detail.features));
4205
- }), Q(this, Z).$on("response", (s) => {
4211
+ })), Q(this, V).$on("select", (s) => {
4212
+ this.dispatchEvent(new bo(s.detail.feature));
4213
+ }), Q(this, V).$on("pick", (s) => {
4214
+ this.dispatchEvent(new Lo(s.detail.feature));
4215
+ }), Q(this, V).$on("featureslisted", (s) => {
4216
+ this.dispatchEvent(new wo(s.detail.features));
4217
+ }), Q(this, V).$on("featuresmarked", (s) => {
4218
+ this.dispatchEvent(new _o(s.detail.features));
4219
+ }), Q(this, V).$on("response", (s) => {
4206
4220
  this.dispatchEvent(
4207
- new Eo(s.detail.url, s.detail.featureCollection)
4221
+ new xo(s.detail.url, s.detail.featureCollection)
4208
4222
  );
4209
- }), Q(this, Z).$on("optionsvisibilitychange", (s) => {
4223
+ }), Q(this, V).$on("optionsvisibilitychange", (s) => {
4210
4224
  this.dispatchEvent(
4211
- new bo(s.detail.optionsVisible)
4225
+ new Eo(s.detail.optionsVisible)
4212
4226
  );
4213
- }), Q(this, Z).$on("reversetoggle", (s) => {
4214
- this.dispatchEvent(new Lo(s.detail.reverse));
4215
- }), Q(this, Z).$on("querychange", (s) => {
4216
- this.dispatchEvent(new _o(s.detail.query));
4217
- }), nt(this, Ne, t);
4227
+ }), Q(this, V).$on("reversetoggle", (s) => {
4228
+ this.dispatchEvent(new Mo(s.detail.reverse));
4229
+ }), Q(this, V).$on("querychange", (s) => {
4230
+ this.dispatchEvent(new So(s.detail.query));
4231
+ }), kt(this, Te, t);
4218
4232
  }
4219
4233
  setMap(t) {
4220
- var i;
4234
+ var n;
4221
4235
  if (super.setMap(t), t) {
4222
4236
  const {
4223
4237
  // marker,
4224
4238
  // showResultMarkers,
4225
4239
  flyTo: r,
4226
4240
  fullGeometryStyle: o
4227
- } = Q(this, Ne);
4228
- nt(this, He, mo(
4241
+ } = Q(this, Te), l = vo(
4229
4242
  t,
4230
4243
  typeof r == "boolean" ? void 0 : r,
4231
4244
  typeof r == "boolean" ? void 0 : r,
4232
4245
  // marker,
4233
4246
  // showResultMarkers,
4234
4247
  o
4235
- )), (i = Q(this, Z)) == null || i.$set({ mapController: Q(this, He) });
4248
+ );
4249
+ (n = Q(this, V)) == null || n.$set({ mapController: l });
4236
4250
  }
4237
4251
  }
4238
4252
  setOptions(t) {
4239
4253
  var l;
4240
- Object.assign(Q(this, Ne), t);
4241
- const { flyTo: i, fullGeometryStyle: r, ...o } = Q(this, Ne);
4242
- (l = Q(this, Z)) == null || l.$set({
4254
+ Object.assign(Q(this, Te), t);
4255
+ const { flyTo: n, fullGeometryStyle: r, ...o } = Q(this, Te);
4256
+ (l = Q(this, V)) == null || l.$set({
4243
4257
  ...o,
4244
- flyTo: i === void 0 ? !0 : !!i
4258
+ flyTo: n === void 0 ? !0 : !!n
4245
4259
  });
4246
4260
  }
4247
- setQuery(t, i = !0) {
4261
+ setQuery(t, n = !0) {
4248
4262
  var r;
4249
- (r = Q(this, Z)) == null || r.setQuery(t, i);
4263
+ (r = Q(this, V)) == null || r.setQuery(t, n);
4250
4264
  }
4251
4265
  clearMap() {
4252
4266
  var t;
4253
- (t = Q(this, Z)) == null || t.clearMap();
4267
+ (t = Q(this, V)) == null || t.clearMap();
4254
4268
  }
4255
4269
  clearList() {
4256
4270
  var t;
4257
- (t = Q(this, Z)) == null || t.clearList();
4271
+ (t = Q(this, V)) == null || t.clearList();
4258
4272
  }
4259
4273
  focus() {
4260
4274
  var t;
4261
- (t = Q(this, Z)) == null || t.focus();
4275
+ (t = Q(this, V)) == null || t.focus();
4262
4276
  }
4263
4277
  blur() {
4264
4278
  var t;
4265
- (t = Q(this, Z)) == null || t.blur();
4279
+ (t = Q(this, V)) == null || t.blur();
4266
4280
  }
4267
4281
  // onRemove() {
4268
4282
  // this.#gc?.$destroy();
4269
4283
  // }
4270
4284
  }
4271
- Z = new WeakMap(), Ne = new WeakMap(), He = new WeakMap();
4272
- class yo extends xe {
4285
+ V = new WeakMap(), Te = new WeakMap();
4286
+ class bo extends ke {
4273
4287
  constructor(t) {
4274
4288
  super("select");
4275
- ne(this, "feature");
4289
+ oe(this, "feature");
4276
4290
  this.feature = t;
4277
4291
  }
4278
4292
  }
4279
- class po extends xe {
4293
+ class wo extends ke {
4280
4294
  constructor(t) {
4281
4295
  super("featureslisted");
4282
- ne(this, "features");
4296
+ oe(this, "features");
4283
4297
  this.features = t;
4284
4298
  }
4285
4299
  }
4286
- class vo extends xe {
4300
+ class _o extends ke {
4287
4301
  constructor(t) {
4288
4302
  super("featuresmarked");
4289
- ne(this, "features");
4303
+ oe(this, "features");
4290
4304
  this.features = t;
4291
4305
  }
4292
4306
  }
4293
- class bo extends xe {
4307
+ class Eo extends ke {
4294
4308
  constructor(t) {
4295
4309
  super("optionsvisibilitychange");
4296
- ne(this, "optionsVisible");
4310
+ oe(this, "optionsVisible");
4297
4311
  this.optionsVisible = t;
4298
4312
  }
4299
4313
  }
4300
- class wo extends xe {
4314
+ class Lo extends ke {
4301
4315
  constructor(t) {
4302
4316
  super("pick");
4303
- ne(this, "feature");
4317
+ oe(this, "feature");
4304
4318
  this.feature = t;
4305
4319
  }
4306
4320
  }
4307
- class _o extends xe {
4321
+ class So extends ke {
4308
4322
  constructor(t) {
4309
4323
  super("querychange");
4310
- ne(this, "query");
4324
+ oe(this, "query");
4311
4325
  this.query = t;
4312
4326
  }
4313
4327
  }
4314
- class Eo extends xe {
4315
- constructor(t, i) {
4328
+ class xo extends ke {
4329
+ constructor(t, n) {
4316
4330
  super("response");
4317
- ne(this, "url");
4318
- ne(this, "featureCollection");
4319
- this.url = t, this.featureCollection = i;
4331
+ oe(this, "url");
4332
+ oe(this, "featureCollection");
4333
+ this.url = t, this.featureCollection = n;
4320
4334
  }
4321
4335
  }
4322
- class Lo extends xe {
4336
+ class Mo extends ke {
4323
4337
  constructor(t) {
4324
4338
  super("reversetoggle");
4325
- ne(this, "reverse");
4339
+ oe(this, "reverse");
4326
4340
  this.reverse = t;
4327
4341
  }
4328
4342
  }
4329
4343
  export {
4330
- po as FeaturesListedEvent,
4331
- vo as FeaturesMarkedEvent,
4332
- Bo as GeocodingControl,
4333
- bo as OptionsVisibilityChangeEvent,
4334
- wo as PickEvent,
4335
- _o as QueryChangeEvent,
4336
- Eo as ResponseEvent,
4337
- Lo as ReverseToggleEvent,
4338
- yo as SelectEvent,
4339
- mo as createOpenLayersMapController
4344
+ wo as FeaturesListedEvent,
4345
+ _o as FeaturesMarkedEvent,
4346
+ Uo as GeocodingControl,
4347
+ Eo as OptionsVisibilityChangeEvent,
4348
+ Lo as PickEvent,
4349
+ So as QueryChangeEvent,
4350
+ xo as ResponseEvent,
4351
+ Mo as ReverseToggleEvent,
4352
+ bo as SelectEvent,
4353
+ vo as createOpenLayersMapController
4340
4354
  };
4341
4355
  //# sourceMappingURL=openlayers.js.map