@carto/ps-react-maps 3.10.1 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +446 -446
- package/dist/index.js.map +1 -1
- package/dist/types/models/types.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Dt = (r, e, t) => e in r ? At(r, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ee = (r, e, t) => Dt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as N, jsxs as ft } from "react/jsx-runtime";
|
|
5
5
|
import { c as D } from "react/compiler-runtime";
|
|
6
|
-
import { useEffect as z, useImperativeHandle as Ne, useMemo as oe, useCallback as Q, useState as se, createContext as He, useContext as Ge, useRef as
|
|
6
|
+
import { useEffect as z, useImperativeHandle as Ne, useMemo as oe, useCallback as Q, useState as se, createContext as He, useContext as Ge, useRef as _e } from "react";
|
|
7
7
|
import { MapProvider as Rt, Map as $t, useMap as xt } from "react-map-gl/maplibre";
|
|
8
8
|
import Ut from "@deck.gl/react";
|
|
9
9
|
import { useMap as pt, APIProvider as Bt, Map as jt } from "@vis.gl/react-google-maps";
|
|
@@ -79,7 +79,7 @@ function vs(r) {
|
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
81
|
const e = D(42);
|
|
82
|
-
let t, s, n, o, i, a, l, c,
|
|
82
|
+
let t, s, n, o, i, a, l, c, y, p, g, f;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
@@ -87,13 +87,13 @@ function Ss(r) {
|
|
|
87
87
|
id: o,
|
|
88
88
|
layers: a,
|
|
89
89
|
mapStyle: l,
|
|
90
|
-
parameters:
|
|
90
|
+
parameters: g,
|
|
91
91
|
getCursor: s,
|
|
92
92
|
getTooltip: n,
|
|
93
93
|
onLoad: c,
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onViewStateChange: y,
|
|
95
95
|
...f
|
|
96
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] =
|
|
96
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = y, e[10] = p, e[11] = g, e[12] = f) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], y = e[9], p = e[10], g = e[11], f = e[12]);
|
|
97
97
|
let m, b;
|
|
98
98
|
e[13] !== c ? (m = () => {
|
|
99
99
|
c({
|
|
@@ -104,21 +104,21 @@ function Ss(r) {
|
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
106
|
}, b = [c], e[13] = c, e[14] = m, e[15] = b) : (m = e[14], b = e[15]), z(m, b);
|
|
107
|
-
let
|
|
108
|
-
e[16] !== a ? (u = a.filter(
|
|
109
|
-
const
|
|
107
|
+
let M, u;
|
|
108
|
+
e[16] !== a ? (u = a.filter(Ms).map(Ts), e[16] = a, e[17] = u) : u = e[17], M = u;
|
|
109
|
+
const h = M, S = i;
|
|
110
110
|
let T;
|
|
111
111
|
e[18] !== c ? (T = () => c({
|
|
112
112
|
type: "deckgl",
|
|
113
113
|
value: !0
|
|
114
114
|
}), e[18] = c, e[19] = T) : T = e[19];
|
|
115
115
|
let w;
|
|
116
|
-
e[20] !==
|
|
116
|
+
e[20] !== g ? (w = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
120
|
-
let
|
|
121
|
-
e[22] !== p ? (
|
|
118
|
+
...g
|
|
119
|
+
}, e[20] = g, e[21] = w) : w = e[21];
|
|
120
|
+
let E;
|
|
121
|
+
e[22] !== p ? (E = /* @__PURE__ */ N(Es, { overlayRef: p }), e[22] = p, e[23] = E) : E = e[23];
|
|
122
122
|
let F;
|
|
123
123
|
e[24] !== c ? (F = () => c({
|
|
124
124
|
type: "load",
|
|
@@ -127,10 +127,10 @@ function Ss(r) {
|
|
|
127
127
|
let x;
|
|
128
128
|
e[26] !== l || e[27] !== F ? (x = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: F, onRender: ws }), e[26] = l, e[27] = F, e[28] = x) : x = e[28];
|
|
129
129
|
let A;
|
|
130
|
-
return e[29] !==
|
|
131
|
-
|
|
130
|
+
return e[29] !== h || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== y || e[35] !== f || e[36] !== x || e[37] !== S || e[38] !== T || e[39] !== w || e[40] !== E ? (A = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(Ut, { controller: t, id: o, ref: S, layers: h, getCursor: s, getTooltip: n, onLoad: T, onViewStateChange: y, parameters: w, ...f, children: [
|
|
131
|
+
E,
|
|
132
132
|
x
|
|
133
|
-
] }) }) }), e[29] =
|
|
133
|
+
] }) }) }), e[29] = h, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = y, e[35] = f, e[36] = x, e[37] = S, e[38] = T, e[39] = w, e[40] = E, e[41] = A) : A = e[41], A;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -143,10 +143,10 @@ function Ts(r) {
|
|
|
143
143
|
} = r;
|
|
144
144
|
return new e(t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ms(r) {
|
|
147
147
|
return !!(r != null && r.type);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Es(r) {
|
|
150
150
|
const e = D(3), {
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = r, {
|
|
@@ -155,7 +155,7 @@ function _s(r) {
|
|
|
155
155
|
let n, o;
|
|
156
156
|
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const _s = (r) => {
|
|
159
159
|
const e = D(9);
|
|
160
160
|
let t, s;
|
|
161
161
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new qt({
|
|
@@ -168,10 +168,10 @@ const Ms = (r) => {
|
|
|
168
168
|
e[3] !== o ? (l = () => (n.setMap(o), () => {
|
|
169
169
|
n.finalize();
|
|
170
170
|
}), c = [n, o], e[3] = o, e[4] = l, e[5] = c) : (l = e[4], c = e[5]), z(l, c);
|
|
171
|
-
let
|
|
172
|
-
return e[6] !== r ? (
|
|
171
|
+
let y, p;
|
|
172
|
+
return e[6] !== r ? (y = () => {
|
|
173
173
|
n.setProps(r);
|
|
174
|
-
}, p = [n, r], e[6] = r, e[7] =
|
|
174
|
+
}, p = [n, r], e[6] = r, e[7] = y, e[8] = p) : (y = e[7], p = e[8]), z(y, p), null;
|
|
175
175
|
};
|
|
176
176
|
function Ps({
|
|
177
177
|
id: r,
|
|
@@ -188,10 +188,10 @@ function Ps({
|
|
|
188
188
|
overlayRef: a,
|
|
189
189
|
parameters: l,
|
|
190
190
|
onLoad: c,
|
|
191
|
-
onViewStateChange:
|
|
191
|
+
onViewStateChange: y,
|
|
192
192
|
...p
|
|
193
193
|
}) {
|
|
194
|
-
var b,
|
|
194
|
+
var b, M, u, h, S;
|
|
195
195
|
z(() => {
|
|
196
196
|
c({
|
|
197
197
|
type: "load",
|
|
@@ -201,26 +201,26 @@ function Ps({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [c]);
|
|
204
|
-
const
|
|
204
|
+
const g = oe(() => s.filter((T) => !!(T != null && T.type)).map(({
|
|
205
205
|
type: T,
|
|
206
206
|
props: w
|
|
207
207
|
}) => new T(w)), [s]), f = Q(({
|
|
208
208
|
detail: {
|
|
209
209
|
center: T,
|
|
210
210
|
zoom: w,
|
|
211
|
-
heading:
|
|
211
|
+
heading: E,
|
|
212
212
|
tilt: F
|
|
213
213
|
}
|
|
214
214
|
}) => ({
|
|
215
215
|
latitude: T.lat,
|
|
216
216
|
longitude: T.lng,
|
|
217
217
|
zoom: w - 1,
|
|
218
|
-
bearing:
|
|
218
|
+
bearing: E,
|
|
219
219
|
pitch: F
|
|
220
220
|
}), []), m = Q((T) => {
|
|
221
|
-
const w = e == null ? void 0 : e.current,
|
|
221
|
+
const w = e == null ? void 0 : e.current, E = w == null ? void 0 : w._deck, F = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
|
-
...
|
|
223
|
+
...E == null ? void 0 : E.viewState,
|
|
224
224
|
...T
|
|
225
225
|
}, x = {
|
|
226
226
|
latitude: F.latitude,
|
|
@@ -229,27 +229,27 @@ function Ps({
|
|
|
229
229
|
pitch: F.pitch,
|
|
230
230
|
bearing: F.bearing,
|
|
231
231
|
// @ts-expect-error - `width` and `height` is not in the types
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
232
|
+
width: E == null ? void 0 : E.width,
|
|
233
|
+
height: E == null ? void 0 : E.height
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
y == null || y({
|
|
236
236
|
viewState: x,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
}, [e,
|
|
241
|
+
}, [e, y]);
|
|
242
242
|
return /* @__PURE__ */ N(Bt, { apiKey: n, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
243
243
|
lat: ((b = p.initialViewState) == null ? void 0 : b.latitude) ?? 0,
|
|
244
|
-
lng: ((
|
|
245
|
-
}, zoom: (((u = p.initialViewState) == null ? void 0 : u.zoom) ?? 0) + 1, tilt: (
|
|
244
|
+
lng: ((M = p.initialViewState) == null ? void 0 : M.longitude) ?? 0
|
|
245
|
+
}, zoom: (((u = p.initialViewState) == null ? void 0 : u.zoom) ?? 0) + 1, tilt: (h = p.initialViewState) == null ? void 0 : h.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
246
246
|
c({
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
249
|
}), m(p.initialViewState);
|
|
250
250
|
}, onBoundsChanged: (T) => m(f(T)), onZoomChanged: (T) => m(f(T)), children: [
|
|
251
251
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
252
|
-
/* @__PURE__ */ N(
|
|
252
|
+
/* @__PURE__ */ N(_s, { id: r, instanceRef: e, layers: g, onLoad: () => {
|
|
253
253
|
c({
|
|
254
254
|
type: "deckgl",
|
|
255
255
|
value: !0
|
|
@@ -271,34 +271,34 @@ function Ls(r) {
|
|
|
271
271
|
}
|
|
272
272
|
function Os(r) {
|
|
273
273
|
const e = D(46);
|
|
274
|
-
let t, s, n, o, i, a, l, c,
|
|
274
|
+
let t, s, n, o, i, a, l, c, y, p, g, f;
|
|
275
275
|
e[0] !== r ? ({
|
|
276
276
|
instanceRef: s,
|
|
277
277
|
overlayRef: o,
|
|
278
278
|
basemap: a,
|
|
279
279
|
controller: l,
|
|
280
280
|
id: c,
|
|
281
|
-
layers:
|
|
281
|
+
layers: y,
|
|
282
282
|
gmapsProps: t,
|
|
283
283
|
getCursor: p,
|
|
284
|
-
getTooltip:
|
|
284
|
+
getTooltip: g,
|
|
285
285
|
onLoad: n,
|
|
286
286
|
onViewStateChange: f,
|
|
287
287
|
...i
|
|
288
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] =
|
|
289
|
-
const m = a === void 0 ? J.positron : a, b = l === void 0 ? !0 : l,
|
|
288
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = y, e[10] = p, e[11] = g, e[12] = f) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], y = e[9], p = e[10], g = e[11], f = e[12]);
|
|
289
|
+
const m = a === void 0 ? J.positron : a, b = l === void 0 ? !0 : l, M = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let u;
|
|
291
|
-
e[13] !==
|
|
292
|
-
const
|
|
293
|
-
let
|
|
294
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
295
|
-
const [F, x] = se(
|
|
291
|
+
e[13] !== y ? (u = y === void 0 ? [] : y, e[13] = y, e[14] = u) : u = e[14];
|
|
292
|
+
const h = u, S = p === void 0 ? bs : p, T = g === void 0 ? vs : g, w = f === void 0 ? ks : f;
|
|
293
|
+
let E;
|
|
294
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (E = [!1, !1], e[15] = E) : E = e[15];
|
|
295
|
+
const [F, x] = se(E);
|
|
296
296
|
let A;
|
|
297
297
|
e[16] !== F ? (A = F.every(Fs), e[16] = F, e[17] = A) : A = e[17];
|
|
298
298
|
const j = A, {
|
|
299
299
|
url: B,
|
|
300
300
|
type: U
|
|
301
|
-
} = ye[m],
|
|
301
|
+
} = ye[m], _ = U === te.googleMaps;
|
|
302
302
|
let k;
|
|
303
303
|
e[18] === Symbol.for("react.memo_cache_sentinel") ? (k = (L) => {
|
|
304
304
|
const O = L.type === "deckgl" ? 0 : 1;
|
|
@@ -308,12 +308,12 @@ function Os(r) {
|
|
|
308
308
|
let v, P;
|
|
309
309
|
if (e[19] !== j || e[20] !== n ? (v = () => {
|
|
310
310
|
n == null || n(j);
|
|
311
|
-
}, P = [j, n], e[19] = j, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P),
|
|
311
|
+
}, P = [j, n], e[19] = j, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), _) {
|
|
312
312
|
let L;
|
|
313
|
-
return e[23] !== m || e[24] !== b || e[25] !== S || e[26] !== T || e[27] !== t || e[28] !==
|
|
313
|
+
return e[23] !== m || e[24] !== b || e[25] !== S || e[26] !== T || e[27] !== t || e[28] !== M || e[29] !== s || e[30] !== h || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: b, id: M, basemap: m, layers: h, gmapsProps: t, getCursor: S, getTooltip: T, onLoad: d, onViewStateChange: w, ...i }), e[23] = m, e[24] = b, e[25] = S, e[26] = T, e[27] = t, e[28] = M, e[29] = s, e[30] = h, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
314
|
}
|
|
315
315
|
let C;
|
|
316
|
-
return e[35] !== b || e[36] !== S || e[37] !== T || e[38] !==
|
|
316
|
+
return e[35] !== b || e[36] !== S || e[37] !== T || e[38] !== M || e[39] !== s || e[40] !== h || e[41] !== B || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: b, id: M, layers: h, mapStyle: B, getCursor: S, getTooltip: T, onLoad: d, onViewStateChange: w, ...i }), e[35] = b, e[36] = S, e[37] = T, e[38] = M, e[39] = s, e[40] = h, e[41] = B, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -347,12 +347,12 @@ const Cs = {
|
|
|
347
347
|
return (t, s) => ({
|
|
348
348
|
maps: e,
|
|
349
349
|
setBasemap: (n, o) => t((i) => {
|
|
350
|
-
var
|
|
350
|
+
var y;
|
|
351
351
|
const {
|
|
352
352
|
type: a
|
|
353
353
|
} = ye[i.maps[n].basemap], {
|
|
354
354
|
type: l
|
|
355
|
-
} = ye[o], c = a === l && !!((
|
|
355
|
+
} = ye[o], c = a === l && !!((y = i.maps[n]) != null && y.isLoaded);
|
|
356
356
|
return {
|
|
357
357
|
maps: {
|
|
358
358
|
...i.maps,
|
|
@@ -399,18 +399,18 @@ const Cs = {
|
|
|
399
399
|
return (c = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : c[o];
|
|
400
400
|
},
|
|
401
401
|
getBounds: (n, o, i) => {
|
|
402
|
-
var
|
|
403
|
-
const a = s(), l = (
|
|
402
|
+
var y;
|
|
403
|
+
const a = s(), l = (y = a.getViewport) == null ? void 0 : y.call(a, n);
|
|
404
404
|
return l ? {
|
|
405
405
|
...l == null ? void 0 : l.fitBounds(o, i == null ? void 0 : i.boundsOptions),
|
|
406
406
|
...i == null ? void 0 : i.viewStateOptions
|
|
407
407
|
} : void 0;
|
|
408
408
|
},
|
|
409
409
|
addLayers: (n, o) => t((i) => {
|
|
410
|
-
var
|
|
410
|
+
var y;
|
|
411
411
|
const a = {
|
|
412
412
|
...i.maps
|
|
413
|
-
}, l = ((
|
|
413
|
+
}, l = ((y = a[n]) == null ? void 0 : y.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
414
414
|
return a[n] = {
|
|
415
415
|
...a[n],
|
|
416
416
|
layers: [...c]
|
|
@@ -425,7 +425,7 @@ const Cs = {
|
|
|
425
425
|
}, l = ((c = a[n]) == null ? void 0 : c.layers) ?? [];
|
|
426
426
|
return a[n] = {
|
|
427
427
|
...a[n],
|
|
428
|
-
layers: l.filter((
|
|
428
|
+
layers: l.filter((y) => !o.includes(y))
|
|
429
429
|
}, {
|
|
430
430
|
maps: a
|
|
431
431
|
};
|
|
@@ -588,12 +588,12 @@ function zr(r) {
|
|
|
588
588
|
mapId: s
|
|
589
589
|
} = r;
|
|
590
590
|
let n;
|
|
591
|
-
e[0] !== s ? (n = (
|
|
591
|
+
e[0] !== s ? (n = (y) => y.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
592
592
|
const {
|
|
593
593
|
basemap: o
|
|
594
594
|
} = $(n), i = $(js);
|
|
595
595
|
let a;
|
|
596
|
-
e[2] !== s || e[3] !== i ? (a = (
|
|
596
|
+
e[2] !== s || e[3] !== i ? (a = (y) => i(s, y), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
597
597
|
const l = a;
|
|
598
598
|
let c;
|
|
599
599
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
@@ -701,7 +701,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
701
701
|
const o = n[e] ?? {
|
|
702
702
|
type: null,
|
|
703
703
|
props: {}
|
|
704
|
-
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((
|
|
704
|
+
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((y, p) => (y.some((g) => g.equals(p)) || y.push(p), y), []), a = o.legend || t.legend ? {
|
|
705
705
|
...o.legend,
|
|
706
706
|
...t.legend
|
|
707
707
|
} : void 0;
|
|
@@ -732,7 +732,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
732
732
|
};
|
|
733
733
|
})
|
|
734
734
|
}));
|
|
735
|
-
var
|
|
735
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
736
736
|
function wt(r) {
|
|
737
737
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
738
738
|
}
|
|
@@ -740,15 +740,15 @@ var Be, et;
|
|
|
740
740
|
function Ns() {
|
|
741
741
|
if (et) return Be;
|
|
742
742
|
et = 1;
|
|
743
|
-
var r = function(
|
|
744
|
-
return e(
|
|
743
|
+
var r = function(h) {
|
|
744
|
+
return e(h) && !t(h);
|
|
745
745
|
};
|
|
746
746
|
function e(u) {
|
|
747
747
|
return !!u && typeof u == "object";
|
|
748
748
|
}
|
|
749
749
|
function t(u) {
|
|
750
|
-
var
|
|
751
|
-
return
|
|
750
|
+
var h = Object.prototype.toString.call(u);
|
|
751
|
+
return h === "[object RegExp]" || h === "[object Date]" || o(u);
|
|
752
752
|
}
|
|
753
753
|
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
754
754
|
function o(u) {
|
|
@@ -757,60 +757,60 @@ function Ns() {
|
|
|
757
757
|
function i(u) {
|
|
758
758
|
return Array.isArray(u) ? [] : {};
|
|
759
759
|
}
|
|
760
|
-
function a(u,
|
|
761
|
-
return
|
|
760
|
+
function a(u, h) {
|
|
761
|
+
return h.clone !== !1 && h.isMergeableObject(u) ? b(i(u), u, h) : u;
|
|
762
762
|
}
|
|
763
|
-
function l(u,
|
|
764
|
-
return u.concat(
|
|
763
|
+
function l(u, h, S) {
|
|
764
|
+
return u.concat(h).map(function(T) {
|
|
765
765
|
return a(T, S);
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
|
-
function c(u,
|
|
769
|
-
if (!
|
|
768
|
+
function c(u, h) {
|
|
769
|
+
if (!h.customMerge)
|
|
770
770
|
return b;
|
|
771
|
-
var S =
|
|
771
|
+
var S = h.customMerge(u);
|
|
772
772
|
return typeof S == "function" ? S : b;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(
|
|
776
|
-
return Object.propertyIsEnumerable.call(u,
|
|
774
|
+
function y(u) {
|
|
775
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(h) {
|
|
776
|
+
return Object.propertyIsEnumerable.call(u, h);
|
|
777
777
|
}) : [];
|
|
778
778
|
}
|
|
779
779
|
function p(u) {
|
|
780
|
-
return Object.keys(u).concat(
|
|
780
|
+
return Object.keys(u).concat(y(u));
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function g(u, h) {
|
|
783
783
|
try {
|
|
784
|
-
return
|
|
784
|
+
return h in u;
|
|
785
785
|
} catch {
|
|
786
786
|
return !1;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
function f(u,
|
|
790
|
-
return
|
|
789
|
+
function f(u, h) {
|
|
790
|
+
return g(u, h) && !(Object.hasOwnProperty.call(u, h) && Object.propertyIsEnumerable.call(u, h));
|
|
791
791
|
}
|
|
792
|
-
function m(u,
|
|
792
|
+
function m(u, h, S) {
|
|
793
793
|
var T = {};
|
|
794
794
|
return S.isMergeableObject(u) && p(u).forEach(function(w) {
|
|
795
795
|
T[w] = a(u[w], S);
|
|
796
|
-
}), p(
|
|
797
|
-
f(u, w) || (
|
|
796
|
+
}), p(h).forEach(function(w) {
|
|
797
|
+
f(u, w) || (g(u, w) && S.isMergeableObject(h[w]) ? T[w] = c(w, S)(u[w], h[w], S) : T[w] = a(h[w], S));
|
|
798
798
|
}), T;
|
|
799
799
|
}
|
|
800
|
-
function b(u,
|
|
800
|
+
function b(u, h, S) {
|
|
801
801
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
802
|
-
var T = Array.isArray(
|
|
803
|
-
return
|
|
802
|
+
var T = Array.isArray(h), w = Array.isArray(u), E = T === w;
|
|
803
|
+
return E ? T ? S.arrayMerge(u, h, S) : m(u, h, S) : a(h, S);
|
|
804
804
|
}
|
|
805
|
-
b.all = function(
|
|
806
|
-
if (!Array.isArray(
|
|
805
|
+
b.all = function(h, S) {
|
|
806
|
+
if (!Array.isArray(h))
|
|
807
807
|
throw new Error("first argument should be an array");
|
|
808
|
-
return
|
|
808
|
+
return h.reduce(function(T, w) {
|
|
809
809
|
return b(T, w, S);
|
|
810
810
|
}, {});
|
|
811
811
|
};
|
|
812
|
-
var
|
|
813
|
-
return Be =
|
|
812
|
+
var M = b;
|
|
813
|
+
return Be = M, Be;
|
|
814
814
|
}
|
|
815
815
|
var Hs = Ns();
|
|
816
816
|
const ue = /* @__PURE__ */ wt(Hs), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
@@ -898,14 +898,14 @@ const Qs = (r) => ze()((e) => ({
|
|
|
898
898
|
modeInstance: a = new Ue.polygon.mode(),
|
|
899
899
|
modes: l = Ue,
|
|
900
900
|
modeSelected: c = Ue.polygon.value,
|
|
901
|
-
values:
|
|
901
|
+
values: y = {}
|
|
902
902
|
} = n;
|
|
903
903
|
return s[i] = {
|
|
904
904
|
enabled: o,
|
|
905
905
|
modeInstance: a,
|
|
906
906
|
modes: l,
|
|
907
907
|
modeSelected: c,
|
|
908
|
-
values:
|
|
908
|
+
values: y
|
|
909
909
|
}, s;
|
|
910
910
|
}, {}),
|
|
911
911
|
setEnabled: (s, n) => {
|
|
@@ -983,7 +983,7 @@ const Qs = (r) => ze()((e) => ({
|
|
|
983
983
|
}
|
|
984
984
|
}));
|
|
985
985
|
}
|
|
986
|
-
})),
|
|
986
|
+
})), Mt = He({});
|
|
987
987
|
function Ws(r) {
|
|
988
988
|
const e = D(5), {
|
|
989
989
|
children: t,
|
|
@@ -993,10 +993,10 @@ function Ws(r) {
|
|
|
993
993
|
e[0] !== s ? (n = () => Qs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
994
994
|
const [o] = se(n);
|
|
995
995
|
let i;
|
|
996
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(
|
|
996
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Mt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
997
997
|
}
|
|
998
998
|
function G(r) {
|
|
999
|
-
const e = Ge(
|
|
999
|
+
const e = Ge(Mt);
|
|
1000
1000
|
if (!Object.keys(e).length)
|
|
1001
1001
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
1002
1002
|
return Qe(e, r);
|
|
@@ -1017,31 +1017,31 @@ function Ks({
|
|
|
1017
1017
|
}), l = G((f) => f.setModeSelected), c = G((f) => {
|
|
1018
1018
|
var m;
|
|
1019
1019
|
return (m = f.data[r]) == null ? void 0 : m.modes;
|
|
1020
|
-
}),
|
|
1020
|
+
}), y = G((f) => f.setModeInstance);
|
|
1021
1021
|
z(() => {
|
|
1022
1022
|
const f = c[a];
|
|
1023
1023
|
if (f && t) {
|
|
1024
1024
|
const m = f.mode;
|
|
1025
|
-
|
|
1025
|
+
y(r, new m());
|
|
1026
1026
|
}
|
|
1027
|
-
}, [t, r, a, c,
|
|
1027
|
+
}, [t, r, a, c, y]);
|
|
1028
1028
|
const [
|
|
1029
1029
|
p
|
|
1030
1030
|
// , draw
|
|
1031
1031
|
] = oe(() => {
|
|
1032
|
-
const f = (
|
|
1032
|
+
const f = (M) => {
|
|
1033
1033
|
var u;
|
|
1034
1034
|
return {
|
|
1035
|
-
id:
|
|
1036
|
-
visible:
|
|
1037
|
-
label: (u =
|
|
1035
|
+
id: M.id,
|
|
1036
|
+
visible: M.properties.visible,
|
|
1037
|
+
label: (u = M.properties) == null ? void 0 : u.label
|
|
1038
1038
|
};
|
|
1039
1039
|
};
|
|
1040
1040
|
return [
|
|
1041
|
-
Object.values(n).filter((
|
|
1041
|
+
Object.values(n).filter((M) => M.type === "mask").map(f)
|
|
1042
1042
|
// , draw
|
|
1043
1043
|
];
|
|
1044
|
-
}, [n]),
|
|
1044
|
+
}, [n]), g = Q((f) => {
|
|
1045
1045
|
s(r, !!f), l(r, f);
|
|
1046
1046
|
}, [r, s, l]);
|
|
1047
1047
|
return e({
|
|
@@ -1056,10 +1056,10 @@ function Ks({
|
|
|
1056
1056
|
setValue: Q((f) => o(r, f), [r, o]),
|
|
1057
1057
|
setEnabled: Q((f) => s(r, f), [r, s]),
|
|
1058
1058
|
setVisibility: Q((f, m) => i(r, f, m), [r, i]),
|
|
1059
|
-
setModeSelected:
|
|
1059
|
+
setModeSelected: g
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Et({
|
|
1063
1063
|
values: r
|
|
1064
1064
|
}) {
|
|
1065
1065
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
@@ -1085,9 +1085,9 @@ function Oe({
|
|
|
1085
1085
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1086
1086
|
let l, c;
|
|
1087
1087
|
if (a) {
|
|
1088
|
-
const
|
|
1089
|
-
let p =
|
|
1090
|
-
l =
|
|
1088
|
+
const y = r < (s ?? nt);
|
|
1089
|
+
let p = y ? V.meter : V.kilometer;
|
|
1090
|
+
l = y ? me.meter : me.kilometer, i && (l = y ? me.feet : me.mile, p = y ? V.feet : V.mile), c = st(r, p);
|
|
1091
1091
|
} else
|
|
1092
1092
|
l = me[e], c = st(r, e);
|
|
1093
1093
|
return `${bt(c, t, {
|
|
@@ -1110,7 +1110,7 @@ function Qr(r, {
|
|
|
1110
1110
|
doubleClickZoom: e
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function _t(r, e, t) {
|
|
1114
1114
|
if (r > 0) {
|
|
1115
1115
|
const {
|
|
1116
1116
|
formatTooltip: s,
|
|
@@ -1171,7 +1171,7 @@ class Ys extends Zt {
|
|
|
1171
1171
|
const n = this.getTentativeGuide(s);
|
|
1172
1172
|
if (n && n.geometry.type === "Polygon") {
|
|
1173
1173
|
const o = rs(n);
|
|
1174
|
-
this.area = Ye(n), this.tooltips =
|
|
1174
|
+
this.area = Ye(n), this.tooltips = _t(this.area, o.geometry.coordinates, s.modeConfig);
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
resetClickSequence() {
|
|
@@ -1266,7 +1266,7 @@ class Xs extends yt {
|
|
|
1266
1266
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, s);
|
|
1267
1267
|
}
|
|
1268
1268
|
handlePointerMove(t, s) {
|
|
1269
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips =
|
|
1269
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips = _t(this.areaCircle, this.position, s.modeConfig));
|
|
1270
1270
|
}
|
|
1271
1271
|
checkAndFinishPolygon(t) {
|
|
1272
1272
|
const s = this.getClickSequence(), n = this.getTentativeGuide(t);
|
|
@@ -1527,10 +1527,10 @@ function Lt(r) {
|
|
|
1527
1527
|
return (b = m.maps[t]) == null ? void 0 : b.isLoaded;
|
|
1528
1528
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1529
1529
|
const a = $(i), l = $(on), c = pe(rn), {
|
|
1530
|
-
type:
|
|
1531
|
-
} = ye[o], p =
|
|
1532
|
-
let
|
|
1533
|
-
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (
|
|
1530
|
+
type: y
|
|
1531
|
+
} = ye[o], p = y === te.googleMaps;
|
|
1532
|
+
let g, f;
|
|
1533
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (g = () => {
|
|
1534
1534
|
let m = null;
|
|
1535
1535
|
if (p && a) {
|
|
1536
1536
|
const b = l(t);
|
|
@@ -1541,7 +1541,7 @@ function Lt(r) {
|
|
|
1541
1541
|
eventManager: m
|
|
1542
1542
|
}
|
|
1543
1543
|
});
|
|
1544
|
-
}, f = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] =
|
|
1544
|
+
}, f = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = g, e[11] = f) : (g = e[10], f = e[11]), z(g, f);
|
|
1545
1545
|
}
|
|
1546
1546
|
function rn(r) {
|
|
1547
1547
|
return r.setLayer;
|
|
@@ -1563,64 +1563,64 @@ function ln({
|
|
|
1563
1563
|
layerProps: n = {},
|
|
1564
1564
|
defaultType: o = "mask"
|
|
1565
1565
|
}) {
|
|
1566
|
-
const i = G((
|
|
1566
|
+
const i = G((_) => {
|
|
1567
1567
|
var k;
|
|
1568
|
-
return (k =
|
|
1569
|
-
}), a = G((
|
|
1568
|
+
return (k = _.data[e]) == null ? void 0 : k.enabled;
|
|
1569
|
+
}), a = G((_) => _.setEnabled), l = G((_) => {
|
|
1570
1570
|
var k;
|
|
1571
|
-
return (k =
|
|
1572
|
-
}), c = G((
|
|
1571
|
+
return (k = _.data[e]) == null ? void 0 : k.values;
|
|
1572
|
+
}), c = G((_) => _.setValue), y = G((_) => {
|
|
1573
1573
|
var k;
|
|
1574
|
-
return (k =
|
|
1575
|
-
}), p = G((
|
|
1574
|
+
return (k = _.data[e]) == null ? void 0 : k.modeInstance;
|
|
1575
|
+
}), p = G((_) => {
|
|
1576
1576
|
var k;
|
|
1577
|
-
return (k =
|
|
1578
|
-
}),
|
|
1577
|
+
return (k = _.data[e]) == null ? void 0 : k.modeSelected;
|
|
1578
|
+
}), g = pe((_) => _.setLayer), f = $((_) => _.addLayers), m = $((_) => _.removeLayers), b = $(ht((_) => {
|
|
1579
1579
|
var k;
|
|
1580
|
-
return (k =
|
|
1581
|
-
})),
|
|
1580
|
+
return (k = _.maps[e]) == null ? void 0 : k.layers.filter((d) => !an.includes(d));
|
|
1581
|
+
})), M = $((_) => _.getDeckInstance), u = _e({});
|
|
1582
1582
|
Lt({
|
|
1583
1583
|
mapId: e,
|
|
1584
1584
|
layerId: ce
|
|
1585
1585
|
});
|
|
1586
|
-
const
|
|
1586
|
+
const h = oe(() => Et({
|
|
1587
1587
|
values: l
|
|
1588
1588
|
}), [l]), S = oe(() => ({
|
|
1589
1589
|
type: "FeatureCollection",
|
|
1590
|
-
features:
|
|
1590
|
+
features: h.map((_) => ({
|
|
1591
1591
|
type: "Feature",
|
|
1592
|
-
geometry:
|
|
1593
|
-
properties:
|
|
1594
|
-
id:
|
|
1592
|
+
geometry: _.geometry,
|
|
1593
|
+
properties: _.properties,
|
|
1594
|
+
id: _.id
|
|
1595
1595
|
}))
|
|
1596
|
-
}), [
|
|
1597
|
-
const
|
|
1596
|
+
}), [h]), T = oe(() => h.filter((_) => _.properties.visible).map((_) => _.id), [h]), [w, E] = se(S), [F, x] = se([]), A = Q(() => {
|
|
1597
|
+
const _ = {
|
|
1598
1598
|
...S,
|
|
1599
1599
|
features: S.features.filter((k) => {
|
|
1600
1600
|
var d;
|
|
1601
1601
|
return (d = k.properties) == null ? void 0 : d.visible;
|
|
1602
1602
|
})
|
|
1603
1603
|
};
|
|
1604
|
-
_
|
|
1604
|
+
E(_);
|
|
1605
1605
|
}, [S]);
|
|
1606
1606
|
z(() => {
|
|
1607
1607
|
A();
|
|
1608
1608
|
}, [A]);
|
|
1609
|
-
const j =
|
|
1609
|
+
const j = _e(h.length);
|
|
1610
1610
|
z(() => (f(e, [ce]), () => {
|
|
1611
1611
|
m(e, [ce]);
|
|
1612
1612
|
}), [f, e, m]);
|
|
1613
1613
|
const B = Q(() => {
|
|
1614
1614
|
A(), x([]), a(e, !1);
|
|
1615
1615
|
}, [e, A, a]), U = Q(({
|
|
1616
|
-
editType:
|
|
1616
|
+
editType: _,
|
|
1617
1617
|
updatedData: k
|
|
1618
1618
|
}) => {
|
|
1619
|
-
if (
|
|
1619
|
+
if (_ === Y.cancel) {
|
|
1620
1620
|
B();
|
|
1621
1621
|
return;
|
|
1622
1622
|
}
|
|
1623
|
-
|
|
1623
|
+
E(k), _ !== Y.updateTentativeFeature && _ === Y.addFeature && (p !== "edit" && (j.current = j.current + 1), k.features.forEach((d, v) => {
|
|
1624
1624
|
var C;
|
|
1625
1625
|
(C = d.properties).label ?? (C.label = `${s == null ? void 0 : s.mask} ${j.current}`), d.properties.index = v, d.properties.visible = d.properties.visible ?? !0;
|
|
1626
1626
|
const P = d.id ?? crypto.randomUUID();
|
|
@@ -1633,7 +1633,7 @@ function ln({
|
|
|
1633
1633
|
}), B());
|
|
1634
1634
|
}, [o, B, s == null ? void 0 : s.mask, e, p, c]);
|
|
1635
1635
|
return z(() => {
|
|
1636
|
-
const
|
|
1636
|
+
const _ = i, {
|
|
1637
1637
|
border: k,
|
|
1638
1638
|
point: d,
|
|
1639
1639
|
fill: v
|
|
@@ -1643,7 +1643,7 @@ function ln({
|
|
|
1643
1643
|
} = t.colors.finished, L = Gs({
|
|
1644
1644
|
layerProps: {
|
|
1645
1645
|
...n.mask,
|
|
1646
|
-
pickable:
|
|
1646
|
+
pickable: _,
|
|
1647
1647
|
data: w,
|
|
1648
1648
|
selectedFeatureIndexes: F,
|
|
1649
1649
|
updateTriggers: {
|
|
@@ -1661,11 +1661,11 @@ function ln({
|
|
|
1661
1661
|
outline: k
|
|
1662
1662
|
},
|
|
1663
1663
|
onEdit: U,
|
|
1664
|
-
mode:
|
|
1664
|
+
mode: _ ? y : new Jt()
|
|
1665
1665
|
});
|
|
1666
|
-
|
|
1667
|
-
}, [w, i, n.mask, T,
|
|
1668
|
-
const
|
|
1666
|
+
g(ce, L);
|
|
1667
|
+
}, [w, i, n.mask, T, y, U, F, g, t.colors.editing, t.colors.finished]), z(() => {
|
|
1668
|
+
const _ = {
|
|
1669
1669
|
...Te,
|
|
1670
1670
|
data: S,
|
|
1671
1671
|
getFilterValue: (k) => Number(T.includes(k.id)),
|
|
@@ -1673,19 +1673,19 @@ function ln({
|
|
|
1673
1673
|
getFilterValue: T
|
|
1674
1674
|
}
|
|
1675
1675
|
};
|
|
1676
|
-
return
|
|
1676
|
+
return g(Te.id, {
|
|
1677
1677
|
type: ns,
|
|
1678
|
-
props:
|
|
1678
|
+
props: _
|
|
1679
1679
|
}), f(e, [Te.id]), () => {
|
|
1680
1680
|
m(e, [Te.id]);
|
|
1681
1681
|
};
|
|
1682
|
-
}, [f, e, S, T, m,
|
|
1683
|
-
b == null || b.forEach((
|
|
1682
|
+
}, [f, e, S, T, m, g]), z(() => {
|
|
1683
|
+
b == null || b.forEach((_) => {
|
|
1684
1684
|
var v;
|
|
1685
|
-
const k = (v =
|
|
1686
|
-
i && (u.current[
|
|
1687
|
-
const d = !i && (u.current[
|
|
1688
|
-
|
|
1685
|
+
const k = (v = M(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === _);
|
|
1686
|
+
i && (u.current[_] = k == null ? void 0 : k.props.pickable);
|
|
1687
|
+
const d = !i && (u.current[_] ?? (k == null ? void 0 : k.props.pickable));
|
|
1688
|
+
g(_, {
|
|
1689
1689
|
props: {
|
|
1690
1690
|
pickable: d,
|
|
1691
1691
|
extensions: [new ts()],
|
|
@@ -1693,7 +1693,7 @@ function ln({
|
|
|
1693
1693
|
}
|
|
1694
1694
|
});
|
|
1695
1695
|
});
|
|
1696
|
-
}, [i,
|
|
1696
|
+
}, [i, M, e, b, T.length, g]), r;
|
|
1697
1697
|
}
|
|
1698
1698
|
ln.Controls = Ks;
|
|
1699
1699
|
function cn({
|
|
@@ -1729,7 +1729,7 @@ function un({
|
|
|
1729
1729
|
pickable: s,
|
|
1730
1730
|
modeConfig: {
|
|
1731
1731
|
// We force distance due to conversion is addressed at feature getText level
|
|
1732
|
-
formatTooltip: (
|
|
1732
|
+
formatTooltip: (g) => g,
|
|
1733
1733
|
turfOptions: {
|
|
1734
1734
|
units: en.meters
|
|
1735
1735
|
}
|
|
@@ -1746,10 +1746,10 @@ function un({
|
|
|
1746
1746
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1747
1747
|
smoothing: 0.2
|
|
1748
1748
|
},
|
|
1749
|
-
getText: (
|
|
1749
|
+
getText: (g) => {
|
|
1750
1750
|
var f;
|
|
1751
1751
|
return (f = r == null ? void 0 : r.getTooltipText) == null ? void 0 : f.call(r, {
|
|
1752
|
-
meters:
|
|
1752
|
+
meters: g.text,
|
|
1753
1753
|
locale: t,
|
|
1754
1754
|
unit: n,
|
|
1755
1755
|
options: l
|
|
@@ -1760,7 +1760,7 @@ function un({
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
|
-
}),
|
|
1763
|
+
}), y = ue(Js, {
|
|
1764
1764
|
_subLayerProps: {
|
|
1765
1765
|
guides: {
|
|
1766
1766
|
getLineColor: i,
|
|
@@ -1770,7 +1770,7 @@ function un({
|
|
|
1770
1770
|
getEditHandlePointColor: a,
|
|
1771
1771
|
getEditHandlePointOutlineColor: i
|
|
1772
1772
|
});
|
|
1773
|
-
return ue(
|
|
1773
|
+
return ue(y, c);
|
|
1774
1774
|
}
|
|
1775
1775
|
const dn = (r) => ze()((e) => ({
|
|
1776
1776
|
measurements: r.reduce((s, n) => {
|
|
@@ -1780,9 +1780,9 @@ const dn = (r) => ze()((e) => ({
|
|
|
1780
1780
|
modes: a = sn,
|
|
1781
1781
|
units: l = nn,
|
|
1782
1782
|
distance: c = 0,
|
|
1783
|
-
finished:
|
|
1783
|
+
finished: y = !1,
|
|
1784
1784
|
locale: p = "en",
|
|
1785
|
-
positions:
|
|
1785
|
+
positions: g = [],
|
|
1786
1786
|
clearLayerOnStart: f = !1,
|
|
1787
1787
|
unit: m = Ie["m-km"],
|
|
1788
1788
|
enabled: b = !1
|
|
@@ -1792,9 +1792,9 @@ const dn = (r) => ze()((e) => ({
|
|
|
1792
1792
|
units: l,
|
|
1793
1793
|
modeSelected: i,
|
|
1794
1794
|
distance: c,
|
|
1795
|
-
finished:
|
|
1795
|
+
finished: y,
|
|
1796
1796
|
locale: p,
|
|
1797
|
-
positions:
|
|
1797
|
+
positions: g,
|
|
1798
1798
|
unit: m,
|
|
1799
1799
|
clearLayerOnStart: f,
|
|
1800
1800
|
enabled: b
|
|
@@ -1920,35 +1920,35 @@ function Ft(r) {
|
|
|
1920
1920
|
let a;
|
|
1921
1921
|
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1922
1922
|
const l = I(a), c = I(Sn);
|
|
1923
|
-
let h;
|
|
1924
|
-
e[6] !== c || e[7] !== t ? (h = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1925
|
-
const p = h;
|
|
1926
1923
|
let y;
|
|
1927
|
-
e[
|
|
1928
|
-
const
|
|
1924
|
+
e[6] !== c || e[7] !== t ? (y = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = y) : y = e[8];
|
|
1925
|
+
const p = y;
|
|
1926
|
+
let g;
|
|
1927
|
+
e[9] !== t ? (g = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
|
|
1928
|
+
const f = I(g);
|
|
1929
1929
|
let m;
|
|
1930
1930
|
e[11] !== t ? (m = (R) => R.measurements[t].enabled, e[11] = t, e[12] = m) : m = e[12];
|
|
1931
|
-
const b = I(m),
|
|
1931
|
+
const b = I(m), M = I(vn);
|
|
1932
1932
|
let u;
|
|
1933
|
-
e[13] !==
|
|
1934
|
-
const
|
|
1933
|
+
e[13] !== M || e[14] !== t ? (u = (R) => M(t, R), e[13] = M, e[14] = t, e[15] = u) : u = e[15];
|
|
1934
|
+
const h = u;
|
|
1935
1935
|
let S;
|
|
1936
1936
|
e[16] !== t ? (S = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
1937
1937
|
const T = I(S), w = I(bn);
|
|
1938
|
-
let
|
|
1939
|
-
e[18] !== w || e[19] !== t || e[20] !==
|
|
1940
|
-
|
|
1941
|
-
}, e[18] = w, e[19] = t, e[20] =
|
|
1942
|
-
const F =
|
|
1938
|
+
let E;
|
|
1939
|
+
e[18] !== w || e[19] !== t || e[20] !== h ? (E = (R) => {
|
|
1940
|
+
h(!!R), w(t, R);
|
|
1941
|
+
}, e[18] = w, e[19] = t, e[20] = h, e[21] = E) : E = e[21];
|
|
1942
|
+
const F = E;
|
|
1943
1943
|
let x;
|
|
1944
1944
|
e[22] !== t ? (x = (R) => R.measurements[t].finished, e[22] = t, e[23] = x) : x = e[23];
|
|
1945
1945
|
const A = I(x), j = I(gn);
|
|
1946
1946
|
let B;
|
|
1947
1947
|
e[24] !== j || e[25] !== t ? (B = (R) => j(t, R), e[24] = j, e[25] = t, e[26] = B) : B = e[26];
|
|
1948
1948
|
const U = B;
|
|
1949
|
-
let
|
|
1950
|
-
e[27] !== t ? (
|
|
1951
|
-
const k = I(
|
|
1949
|
+
let _;
|
|
1950
|
+
e[27] !== t ? (_ = (R) => R.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
|
|
1951
|
+
const k = I(_), d = I(hn);
|
|
1952
1952
|
let v;
|
|
1953
1953
|
e[29] !== d || e[30] !== t ? (v = (R) => d(t, R), e[29] = d, e[30] = t, e[31] = v) : v = e[31];
|
|
1954
1954
|
const P = v;
|
|
@@ -1976,12 +1976,12 @@ function Ft(r) {
|
|
|
1976
1976
|
}, e[47] = L, e[48] = fe, e[49] = ve) : ve = e[49];
|
|
1977
1977
|
const Ae = ve;
|
|
1978
1978
|
let Se;
|
|
1979
|
-
e[50] !==
|
|
1980
|
-
|
|
1981
|
-
}, e[50] =
|
|
1979
|
+
e[50] !== h ? (Se = (R) => {
|
|
1980
|
+
h(R);
|
|
1981
|
+
}, e[50] = h, e[51] = Se) : Se = e[51];
|
|
1982
1982
|
const De = Se;
|
|
1983
1983
|
let we;
|
|
1984
|
-
return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== b || e[56] !== A || e[57] !== k || e[58] !== L || e[59] !== T || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !==
|
|
1984
|
+
return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== b || e[56] !== A || e[57] !== k || e[58] !== L || e[59] !== T || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== h || e[64] !== U || e[65] !== P || e[66] !== W || e[67] !== F || e[68] !== fe || e[69] !== Ce || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
|
|
1985
1985
|
modes: n,
|
|
1986
1986
|
units: i,
|
|
1987
1987
|
distance: l,
|
|
@@ -1999,11 +1999,11 @@ function Ft(r) {
|
|
|
1999
1999
|
setLocale: P,
|
|
2000
2000
|
setPositions: fe,
|
|
2001
2001
|
setUnit: Ce,
|
|
2002
|
-
setEnabled:
|
|
2002
|
+
setEnabled: h,
|
|
2003
2003
|
toggleLayer: De,
|
|
2004
2004
|
clearLayer: Ae,
|
|
2005
2005
|
setModeInstance: W
|
|
2006
|
-
}, e[52] = Ae, e[53] = f, e[54] = l, e[55] = b, e[56] = A, e[57] = k, e[58] = L, e[59] = T, e[60] = n, e[61] = q, e[62] = p, e[63] =
|
|
2006
|
+
}, e[52] = Ae, e[53] = f, e[54] = l, e[55] = b, e[56] = A, e[57] = k, e[58] = L, e[59] = T, e[60] = n, e[61] = q, e[62] = p, e[63] = h, e[64] = U, e[65] = P, e[66] = W, e[67] = F, e[68] = fe, e[69] = Ce, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
|
|
2007
2007
|
}
|
|
2008
2008
|
function pn(r) {
|
|
2009
2009
|
return r.setUnit;
|
|
@@ -2044,43 +2044,43 @@ function wn(r) {
|
|
|
2044
2044
|
units: a,
|
|
2045
2045
|
distance: l,
|
|
2046
2046
|
setDistance: c,
|
|
2047
|
-
clearLayerOnStart:
|
|
2047
|
+
clearLayerOnStart: y,
|
|
2048
2048
|
modeSelected: p,
|
|
2049
|
-
setModeSelected:
|
|
2049
|
+
setModeSelected: g,
|
|
2050
2050
|
enabled: f,
|
|
2051
2051
|
setEnabled: m,
|
|
2052
2052
|
finished: b,
|
|
2053
|
-
setFinished:
|
|
2053
|
+
setFinished: M,
|
|
2054
2054
|
locale: u,
|
|
2055
|
-
setLocale:
|
|
2055
|
+
setLocale: h,
|
|
2056
2056
|
modeInstance: S,
|
|
2057
2057
|
setModeInstance: T,
|
|
2058
2058
|
positions: w,
|
|
2059
|
-
setPositions:
|
|
2059
|
+
setPositions: E,
|
|
2060
2060
|
unit: F,
|
|
2061
2061
|
setUnit: x,
|
|
2062
2062
|
clearLayer: A,
|
|
2063
2063
|
toggleLayer: j
|
|
2064
2064
|
} = Ft(o);
|
|
2065
2065
|
let B;
|
|
2066
|
-
e[2] !== p || e[3] !== i || e[4] !== T || e[5] !==
|
|
2066
|
+
e[2] !== p || e[3] !== i || e[4] !== T || e[5] !== E ? (B = () => {
|
|
2067
2067
|
if (p && i[p]) {
|
|
2068
2068
|
const P = i[p].mode;
|
|
2069
2069
|
T(new P());
|
|
2070
2070
|
}
|
|
2071
2071
|
return () => {
|
|
2072
|
-
|
|
2072
|
+
E([]);
|
|
2073
2073
|
};
|
|
2074
|
-
}, e[2] = p, e[3] = i, e[4] = T, e[5] =
|
|
2074
|
+
}, e[2] = p, e[3] = i, e[4] = T, e[5] = E, e[6] = B) : B = e[6];
|
|
2075
2075
|
let U;
|
|
2076
|
-
e[7] !== p || e[8] !== i || e[9] !== m || e[10] !== T || e[11] !==
|
|
2077
|
-
let
|
|
2078
|
-
e[13] !== j || e[14] !== A || e[15] !==
|
|
2079
|
-
P && (
|
|
2080
|
-
}, e[13] = j, e[14] = A, e[15] =
|
|
2081
|
-
const k =
|
|
2076
|
+
e[7] !== p || e[8] !== i || e[9] !== m || e[10] !== T || e[11] !== E ? (U = [i, p, E, T, m], e[7] = p, e[8] = i, e[9] = m, e[10] = T, e[11] = E, e[12] = U) : U = e[12], z(B, U);
|
|
2077
|
+
let _;
|
|
2078
|
+
e[13] !== j || e[14] !== A || e[15] !== y || e[16] !== b ? (_ = (P) => {
|
|
2079
|
+
P && (y || !b) && A(), j(P);
|
|
2080
|
+
}, e[13] = j, e[14] = A, e[15] = y, e[16] = b, e[17] = _) : _ = e[17];
|
|
2081
|
+
const k = _, d = !!y;
|
|
2082
2082
|
let v;
|
|
2083
|
-
return e[18] !== n || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== b || e[23] !== u || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== m || e[31] !==
|
|
2083
|
+
return e[18] !== n || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== b || e[23] !== u || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== m || e[31] !== M || e[32] !== h || e[33] !== g || e[34] !== E || e[35] !== x || e[36] !== d || e[37] !== s || e[38] !== k || e[39] !== F || e[40] !== a ? (v = n({
|
|
2084
2084
|
mapId: t,
|
|
2085
2085
|
distance: l,
|
|
2086
2086
|
enabled: f,
|
|
@@ -2099,19 +2099,19 @@ function wn(r) {
|
|
|
2099
2099
|
options: s
|
|
2100
2100
|
}),
|
|
2101
2101
|
modeInstance: S,
|
|
2102
|
-
setModeSelected:
|
|
2102
|
+
setModeSelected: g,
|
|
2103
2103
|
setDistance: c,
|
|
2104
|
-
setFinished:
|
|
2105
|
-
setLocale:
|
|
2106
|
-
setPositions:
|
|
2104
|
+
setFinished: M,
|
|
2105
|
+
setLocale: h,
|
|
2106
|
+
setPositions: E,
|
|
2107
2107
|
setUnit: x,
|
|
2108
2108
|
setEnabled: m,
|
|
2109
2109
|
toggleLayer: k,
|
|
2110
2110
|
clearLayer: A
|
|
2111
|
-
}), e[18] = n, e[19] = A, e[20] = l, e[21] = f, e[22] = b, e[23] = u, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = m, e[31] =
|
|
2111
|
+
}), e[18] = n, e[19] = A, e[20] = l, e[21] = f, e[22] = b, e[23] = u, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = m, e[31] = M, e[32] = h, e[33] = g, e[34] = E, e[35] = x, e[36] = d, e[37] = s, e[38] = k, e[39] = F, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2112
2112
|
}
|
|
2113
2113
|
const Tn = [re];
|
|
2114
|
-
function
|
|
2114
|
+
function Mn({
|
|
2115
2115
|
children: r,
|
|
2116
2116
|
mapId: e,
|
|
2117
2117
|
defaultProps: {
|
|
@@ -2128,66 +2128,66 @@ function En({
|
|
|
2128
2128
|
enabled: a,
|
|
2129
2129
|
finished: l,
|
|
2130
2130
|
setFinished: c,
|
|
2131
|
-
locale:
|
|
2131
|
+
locale: y,
|
|
2132
2132
|
setPositions: p,
|
|
2133
|
-
unit:
|
|
2133
|
+
unit: g,
|
|
2134
2134
|
modeInstance: f
|
|
2135
2135
|
} = Ft({
|
|
2136
2136
|
mapId: e
|
|
2137
|
-
}), m = pe((w) => w.setLayer), b = $((w) => w.addLayers),
|
|
2138
|
-
var
|
|
2139
|
-
return (
|
|
2140
|
-
})),
|
|
2137
|
+
}), m = pe((w) => w.setLayer), b = $((w) => w.addLayers), M = $((w) => w.removeLayers), u = $(ht((w) => {
|
|
2138
|
+
var E;
|
|
2139
|
+
return (E = w.maps[e]) == null ? void 0 : E.layers.filter((F) => !Tn.includes(F));
|
|
2140
|
+
})), h = $((w) => w.getDeckInstance), S = _e({});
|
|
2141
2141
|
Lt({
|
|
2142
2142
|
mapId: e,
|
|
2143
2143
|
layerId: re
|
|
2144
2144
|
}), z(() => (a && b(e, [re]), () => {
|
|
2145
|
-
|
|
2146
|
-
}), [b, i, e,
|
|
2145
|
+
M(e, [re]);
|
|
2146
|
+
}), [b, i, e, M, a]), z(() => {
|
|
2147
2147
|
u == null || u.forEach((w) => {
|
|
2148
2148
|
var x;
|
|
2149
|
-
const
|
|
2150
|
-
a && (S.current[w] =
|
|
2151
|
-
const F = !a && (S.current[w] ?? (
|
|
2149
|
+
const E = (x = h(e)) == null ? void 0 : x.props.layers.find((A) => A.props.id === w);
|
|
2150
|
+
a && (S.current[w] = E == null ? void 0 : E.props.pickable);
|
|
2151
|
+
const F = !a && (S.current[w] ?? (E == null ? void 0 : E.props.pickable));
|
|
2152
2152
|
m(w, {
|
|
2153
2153
|
props: {
|
|
2154
2154
|
pickable: F
|
|
2155
2155
|
}
|
|
2156
2156
|
});
|
|
2157
2157
|
});
|
|
2158
|
-
}, [a,
|
|
2158
|
+
}, [a, h, e, u, m]);
|
|
2159
2159
|
const T = Q(({
|
|
2160
2160
|
editType: w,
|
|
2161
|
-
editContext:
|
|
2161
|
+
editContext: E
|
|
2162
2162
|
}) => {
|
|
2163
2163
|
if (w === Y.cancel) {
|
|
2164
2164
|
f.resetClickSequence();
|
|
2165
2165
|
return;
|
|
2166
2166
|
}
|
|
2167
|
-
w === Y.addPosition && o(
|
|
2168
|
-
const F =
|
|
2167
|
+
w === Y.addPosition && o(E.distance), c(!!E.finished);
|
|
2168
|
+
const F = E.positions;
|
|
2169
2169
|
F != null && F.length && p(F);
|
|
2170
2170
|
}, [f, o, c, p]);
|
|
2171
2171
|
return z(() => {
|
|
2172
|
-
const w = l ? t.colors.finished : t.colors.editing,
|
|
2172
|
+
const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, F = cn({
|
|
2173
2173
|
layerProps: {
|
|
2174
2174
|
...s,
|
|
2175
2175
|
pickable: s.pickable ?? !l
|
|
2176
2176
|
},
|
|
2177
2177
|
enabled: a,
|
|
2178
2178
|
guideColor: w,
|
|
2179
|
-
pointColor:
|
|
2180
|
-
locale:
|
|
2179
|
+
pointColor: E,
|
|
2180
|
+
locale: y,
|
|
2181
2181
|
onEdit: T,
|
|
2182
|
-
unit:
|
|
2182
|
+
unit: g,
|
|
2183
2183
|
mode: f,
|
|
2184
2184
|
textOptions: n
|
|
2185
2185
|
});
|
|
2186
2186
|
m(re, F);
|
|
2187
|
-
}, [l, f, s,
|
|
2187
|
+
}, [l, f, s, y, T, m, t.colors.editing, t.colors.finished, t.colors.point, n, g, a]), r;
|
|
2188
2188
|
}
|
|
2189
|
-
|
|
2190
|
-
function
|
|
2189
|
+
Mn.Controls = wn;
|
|
2190
|
+
function En(r) {
|
|
2191
2191
|
const e = D(7), {
|
|
2192
2192
|
mapId: t
|
|
2193
2193
|
} = r;
|
|
@@ -2199,12 +2199,12 @@ function _n(r) {
|
|
|
2199
2199
|
let i, a;
|
|
2200
2200
|
if (e[2] !== o || e[3] !== n) {
|
|
2201
2201
|
let c;
|
|
2202
|
-
e[5] !== o ? (c = (
|
|
2202
|
+
e[5] !== o ? (c = (y) => o[y], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(_n), e[2] = o, e[3] = n, e[4] = a;
|
|
2203
2203
|
} else
|
|
2204
2204
|
a = e[4];
|
|
2205
2205
|
return i = a, i;
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function _n(r) {
|
|
2208
2208
|
return !!r;
|
|
2209
2209
|
}
|
|
2210
2210
|
function Pn(r) {
|
|
@@ -2231,44 +2231,44 @@ function Wr(r) {
|
|
|
2231
2231
|
let l;
|
|
2232
2232
|
e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2233
2233
|
const c = $(l);
|
|
2234
|
-
let
|
|
2235
|
-
e[9] !== t ? (
|
|
2236
|
-
const p = $(
|
|
2234
|
+
let y;
|
|
2235
|
+
e[9] !== t ? (y = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = y) : y = e[10];
|
|
2236
|
+
const p = $(y), g = _e(null);
|
|
2237
2237
|
let f;
|
|
2238
2238
|
e[11] !== t ? (f = (L) => L.viewStates[t], e[11] = t, e[12] = f) : f = e[12];
|
|
2239
|
-
const m = $(f), b = $(Dn),
|
|
2239
|
+
const m = $(f), b = $(Dn), M = $(An), u = $(Cn), h = $(kn), S = $(Fn);
|
|
2240
2240
|
let T;
|
|
2241
2241
|
e[13] !== t ? (T = {
|
|
2242
2242
|
mapId: t
|
|
2243
2243
|
}, e[13] = t, e[14] = T) : T = e[14];
|
|
2244
|
-
const w =
|
|
2245
|
-
let
|
|
2246
|
-
e[15] !== w ? (F = kt(w), e[15] = w, e[16] = F) : F = e[16],
|
|
2247
|
-
const x =
|
|
2244
|
+
const w = En(T);
|
|
2245
|
+
let E, F;
|
|
2246
|
+
e[15] !== w ? (F = kt(w), e[15] = w, e[16] = F) : F = e[16], E = F;
|
|
2247
|
+
const x = E;
|
|
2248
2248
|
let A;
|
|
2249
|
-
e[17] !== t || e[18] !== n || e[19] !==
|
|
2250
|
-
const O =
|
|
2251
|
-
if (
|
|
2249
|
+
e[17] !== t || e[18] !== n || e[19] !== M || e[20] !== S ? (A = (L) => {
|
|
2250
|
+
const O = M;
|
|
2251
|
+
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2252
2252
|
S(t);
|
|
2253
2253
|
}, Ln), n) {
|
|
2254
2254
|
n(L, O);
|
|
2255
2255
|
return;
|
|
2256
2256
|
}
|
|
2257
2257
|
O(t, L.viewState);
|
|
2258
|
-
}, e[17] = t, e[18] = n, e[19] =
|
|
2258
|
+
}, e[17] = t, e[18] = n, e[19] = M, e[20] = S, e[21] = A) : A = e[21];
|
|
2259
2259
|
const j = A;
|
|
2260
2260
|
let B;
|
|
2261
2261
|
e[22] !== t || e[23] !== s || e[24] !== u || e[25] !== S ? (B = (L) => {
|
|
2262
2262
|
u(t, L), s == null || s(L), S(t);
|
|
2263
2263
|
}, e[22] = t, e[23] = s, e[24] = u, e[25] = S, e[26] = B) : B = e[26];
|
|
2264
2264
|
const U = B;
|
|
2265
|
-
let
|
|
2266
|
-
e[27] !== b || e[28] !== t || e[29] !== o || e[30] !==
|
|
2265
|
+
let _;
|
|
2266
|
+
e[27] !== b || e[28] !== t || e[29] !== o || e[30] !== h ? (_ = (L) => {
|
|
2267
2267
|
var W, K;
|
|
2268
2268
|
const O = (W = b(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(On));
|
|
2269
|
-
|
|
2270
|
-
}, e[27] = b, e[28] = t, e[29] = o, e[30] =
|
|
2271
|
-
const k =
|
|
2269
|
+
h(t, H), (K = o.onAfterRender) == null || K.call(o, L);
|
|
2270
|
+
}, e[27] = b, e[28] = t, e[29] = o, e[30] = h, e[31] = _) : _ = e[31];
|
|
2271
|
+
const k = _, d = o.onDragEnd;
|
|
2272
2272
|
let v;
|
|
2273
2273
|
e[32] !== d || e[33] !== t || e[34] !== S ? (v = (...L) => {
|
|
2274
2274
|
const O = L;
|
|
@@ -2296,10 +2296,10 @@ function An(r) {
|
|
|
2296
2296
|
function Dn(r) {
|
|
2297
2297
|
return r.getDeckInstance;
|
|
2298
2298
|
}
|
|
2299
|
-
var
|
|
2299
|
+
var Ee = { exports: {} }, lt;
|
|
2300
2300
|
function Rn() {
|
|
2301
2301
|
return lt || (lt = 1, function(r, e) {
|
|
2302
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2302
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Me < "u" && Me, s = function() {
|
|
2303
2303
|
function o() {
|
|
2304
2304
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2305
2305
|
}
|
|
@@ -2308,7 +2308,7 @@ function Rn() {
|
|
|
2308
2308
|
(function(o) {
|
|
2309
2309
|
(function(i) {
|
|
2310
2310
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2311
|
-
typeof
|
|
2311
|
+
typeof Me < "u" && Me || {}, l = {
|
|
2312
2312
|
searchParams: "URLSearchParams" in a,
|
|
2313
2313
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2314
2314
|
blob: "FileReader" in a && "Blob" in a && function() {
|
|
@@ -2325,7 +2325,7 @@ function Rn() {
|
|
|
2325
2325
|
return d && DataView.prototype.isPrototypeOf(d);
|
|
2326
2326
|
}
|
|
2327
2327
|
if (l.arrayBuffer)
|
|
2328
|
-
var
|
|
2328
|
+
var y = [
|
|
2329
2329
|
"[object Int8Array]",
|
|
2330
2330
|
"[object Uint8Array]",
|
|
2331
2331
|
"[object Uint8ClampedArray]",
|
|
@@ -2336,9 +2336,9 @@ function Rn() {
|
|
|
2336
2336
|
"[object Float32Array]",
|
|
2337
2337
|
"[object Float64Array]"
|
|
2338
2338
|
], p = ArrayBuffer.isView || function(d) {
|
|
2339
|
-
return d &&
|
|
2339
|
+
return d && y.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2340
2340
|
};
|
|
2341
|
-
function
|
|
2341
|
+
function g(d) {
|
|
2342
2342
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
2343
2343
|
throw new TypeError('Invalid character in header field name: "' + d + '"');
|
|
2344
2344
|
return d.toLowerCase();
|
|
@@ -2369,17 +2369,17 @@ function Rn() {
|
|
|
2369
2369
|
}, this);
|
|
2370
2370
|
}
|
|
2371
2371
|
b.prototype.append = function(d, v) {
|
|
2372
|
-
d =
|
|
2372
|
+
d = g(d), v = f(v);
|
|
2373
2373
|
var P = this.map[d];
|
|
2374
2374
|
this.map[d] = P ? P + ", " + v : v;
|
|
2375
2375
|
}, b.prototype.delete = function(d) {
|
|
2376
|
-
delete this.map[
|
|
2376
|
+
delete this.map[g(d)];
|
|
2377
2377
|
}, b.prototype.get = function(d) {
|
|
2378
|
-
return d =
|
|
2378
|
+
return d = g(d), this.has(d) ? this.map[d] : null;
|
|
2379
2379
|
}, b.prototype.has = function(d) {
|
|
2380
|
-
return this.map.hasOwnProperty(
|
|
2380
|
+
return this.map.hasOwnProperty(g(d));
|
|
2381
2381
|
}, b.prototype.set = function(d, v) {
|
|
2382
|
-
this.map[
|
|
2382
|
+
this.map[g(d)] = f(v);
|
|
2383
2383
|
}, b.prototype.forEach = function(d, v) {
|
|
2384
2384
|
for (var P in this.map)
|
|
2385
2385
|
this.map.hasOwnProperty(P) && d.call(v, this.map[P], P, this);
|
|
@@ -2399,7 +2399,7 @@ function Rn() {
|
|
|
2399
2399
|
d.push([P, v]);
|
|
2400
2400
|
}), m(d);
|
|
2401
2401
|
}, l.iterable && (b.prototype[Symbol.iterator] = b.prototype.entries);
|
|
2402
|
-
function
|
|
2402
|
+
function M(d) {
|
|
2403
2403
|
if (!d._noBody) {
|
|
2404
2404
|
if (d.bodyUsed)
|
|
2405
2405
|
return Promise.reject(new TypeError("Already read"));
|
|
@@ -2415,7 +2415,7 @@ function Rn() {
|
|
|
2415
2415
|
};
|
|
2416
2416
|
});
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function h(d) {
|
|
2419
2419
|
var v = new FileReader(), P = u(v);
|
|
2420
2420
|
return v.readAsArrayBuffer(d), P;
|
|
2421
2421
|
}
|
|
@@ -2434,11 +2434,11 @@ function Rn() {
|
|
|
2434
2434
|
var v = new Uint8Array(d.byteLength);
|
|
2435
2435
|
return v.set(new Uint8Array(d)), v.buffer;
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function E() {
|
|
2438
2438
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2439
2439
|
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : l.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : l.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : l.arrayBuffer && l.blob && c(d) ? (this._bodyArrayBuffer = w(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || p(d)) ? this._bodyArrayBuffer = w(d) : this._bodyText = d = Object.prototype.toString.call(d) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof d == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2440
2440
|
}, l.blob && (this.blob = function() {
|
|
2441
|
-
var d =
|
|
2441
|
+
var d = M(this);
|
|
2442
2442
|
if (d)
|
|
2443
2443
|
return d;
|
|
2444
2444
|
if (this._bodyBlob)
|
|
@@ -2450,7 +2450,7 @@ function Rn() {
|
|
|
2450
2450
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2451
2451
|
}), this.arrayBuffer = function() {
|
|
2452
2452
|
if (this._bodyArrayBuffer) {
|
|
2453
|
-
var d =
|
|
2453
|
+
var d = M(this);
|
|
2454
2454
|
return d || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
2455
2455
|
this._bodyArrayBuffer.buffer.slice(
|
|
2456
2456
|
this._bodyArrayBuffer.byteOffset,
|
|
@@ -2459,11 +2459,11 @@ function Rn() {
|
|
|
2459
2459
|
) : Promise.resolve(this._bodyArrayBuffer));
|
|
2460
2460
|
} else {
|
|
2461
2461
|
if (l.blob)
|
|
2462
|
-
return this.blob().then(
|
|
2462
|
+
return this.blob().then(h);
|
|
2463
2463
|
throw new Error("could not read as ArrayBuffer");
|
|
2464
2464
|
}
|
|
2465
2465
|
}, this.text = function() {
|
|
2466
|
-
var d =
|
|
2466
|
+
var d = M(this);
|
|
2467
2467
|
if (d)
|
|
2468
2468
|
return d;
|
|
2469
2469
|
if (this._bodyBlob)
|
|
@@ -2541,7 +2541,7 @@ function Rn() {
|
|
|
2541
2541
|
}
|
|
2542
2542
|
}), v;
|
|
2543
2543
|
}
|
|
2544
|
-
|
|
2544
|
+
E.call(A.prototype);
|
|
2545
2545
|
function U(d, v) {
|
|
2546
2546
|
if (!(this instanceof U))
|
|
2547
2547
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
@@ -2549,7 +2549,7 @@ function Rn() {
|
|
|
2549
2549
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2550
2550
|
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new b(v.headers), this.url = v.url || "", this._initBody(d);
|
|
2551
2551
|
}
|
|
2552
|
-
|
|
2552
|
+
E.call(U.prototype), U.prototype.clone = function() {
|
|
2553
2553
|
return new U(this._bodyInit, {
|
|
2554
2554
|
status: this.status,
|
|
2555
2555
|
statusText: this.statusText,
|
|
@@ -2560,9 +2560,9 @@ function Rn() {
|
|
|
2560
2560
|
var d = new U(null, { status: 200, statusText: "" });
|
|
2561
2561
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2562
2562
|
};
|
|
2563
|
-
var
|
|
2563
|
+
var _ = [301, 302, 303, 307, 308];
|
|
2564
2564
|
U.redirect = function(d, v) {
|
|
2565
|
-
if (
|
|
2565
|
+
if (_.indexOf(v) === -1)
|
|
2566
2566
|
throw new RangeError("Invalid status code");
|
|
2567
2567
|
return new U(null, { status: v, headers: { location: d } });
|
|
2568
2568
|
}, i.DOMException = a.DOMException;
|
|
@@ -2617,7 +2617,7 @@ function Rn() {
|
|
|
2617
2617
|
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof b || a.Headers && v.headers instanceof a.Headers)) {
|
|
2618
2618
|
var K = [];
|
|
2619
2619
|
Object.getOwnPropertyNames(v.headers).forEach(function(q) {
|
|
2620
|
-
K.push(
|
|
2620
|
+
K.push(g(q)), O.setRequestHeader(q, f(v.headers[q]));
|
|
2621
2621
|
}), L.headers.forEach(function(q, X) {
|
|
2622
2622
|
K.indexOf(X) === -1 && O.setRequestHeader(X, q);
|
|
2623
2623
|
});
|
|
@@ -2635,7 +2635,7 @@ function Rn() {
|
|
|
2635
2635
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2636
2636
|
var n = t.fetch ? t : s;
|
|
2637
2637
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2638
|
-
}(
|
|
2638
|
+
}(Ee, Ee.exports)), Ee.exports;
|
|
2639
2639
|
}
|
|
2640
2640
|
var $n = Rn();
|
|
2641
2641
|
const xn = /* @__PURE__ */ wt($n), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", Un = "ps", de = {
|
|
@@ -2667,8 +2667,8 @@ function Vn() {
|
|
|
2667
2667
|
return !!u && typeof u == "object";
|
|
2668
2668
|
}
|
|
2669
2669
|
function t(u) {
|
|
2670
|
-
var
|
|
2671
|
-
return
|
|
2670
|
+
var h = Object.prototype.toString.call(u);
|
|
2671
|
+
return h === "[object RegExp]" || h === "[object Date]" || o(u);
|
|
2672
2672
|
}
|
|
2673
2673
|
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
2674
2674
|
function o(u) {
|
|
@@ -2677,58 +2677,58 @@ function Vn() {
|
|
|
2677
2677
|
function i(u) {
|
|
2678
2678
|
return Array.isArray(u) ? [] : {};
|
|
2679
2679
|
}
|
|
2680
|
-
function a(u,
|
|
2681
|
-
return
|
|
2680
|
+
function a(u, h) {
|
|
2681
|
+
return h.clone !== !1 && h.isMergeableObject(u) ? b(i(u), u, h) : u;
|
|
2682
2682
|
}
|
|
2683
|
-
function l(u,
|
|
2684
|
-
return u.concat(
|
|
2683
|
+
function l(u, h, S) {
|
|
2684
|
+
return u.concat(h).map(function(T) {
|
|
2685
2685
|
return a(T, S);
|
|
2686
2686
|
});
|
|
2687
2687
|
}
|
|
2688
|
-
function c(u,
|
|
2689
|
-
if (!
|
|
2690
|
-
var S =
|
|
2688
|
+
function c(u, h) {
|
|
2689
|
+
if (!h.customMerge) return b;
|
|
2690
|
+
var S = h.customMerge(u);
|
|
2691
2691
|
return typeof S == "function" ? S : b;
|
|
2692
2692
|
}
|
|
2693
|
-
function
|
|
2694
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(
|
|
2695
|
-
return Object.propertyIsEnumerable.call(u,
|
|
2693
|
+
function y(u) {
|
|
2694
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(h) {
|
|
2695
|
+
return Object.propertyIsEnumerable.call(u, h);
|
|
2696
2696
|
}) : [];
|
|
2697
2697
|
}
|
|
2698
2698
|
function p(u) {
|
|
2699
|
-
return Object.keys(u).concat(
|
|
2699
|
+
return Object.keys(u).concat(y(u));
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function g(u, h) {
|
|
2702
2702
|
try {
|
|
2703
|
-
return
|
|
2703
|
+
return h in u;
|
|
2704
2704
|
} catch {
|
|
2705
2705
|
return !1;
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
|
-
function f(u,
|
|
2709
|
-
return
|
|
2708
|
+
function f(u, h) {
|
|
2709
|
+
return g(u, h) && !(Object.hasOwnProperty.call(u, h) && Object.propertyIsEnumerable.call(u, h));
|
|
2710
2710
|
}
|
|
2711
|
-
function m(u,
|
|
2711
|
+
function m(u, h, S) {
|
|
2712
2712
|
var T = {};
|
|
2713
2713
|
return S.isMergeableObject(u) && p(u).forEach(function(w) {
|
|
2714
2714
|
T[w] = a(u[w], S);
|
|
2715
|
-
}), p(
|
|
2716
|
-
f(u, w) || (
|
|
2715
|
+
}), p(h).forEach(function(w) {
|
|
2716
|
+
f(u, w) || (g(u, w) && S.isMergeableObject(h[w]) ? T[w] = c(w, S)(u[w], h[w], S) : T[w] = a(h[w], S));
|
|
2717
2717
|
}), T;
|
|
2718
2718
|
}
|
|
2719
|
-
function b(u,
|
|
2719
|
+
function b(u, h, S) {
|
|
2720
2720
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2721
|
-
var T = Array.isArray(
|
|
2722
|
-
return
|
|
2721
|
+
var T = Array.isArray(h), w = Array.isArray(u), E = T === w;
|
|
2722
|
+
return E ? T ? S.arrayMerge(u, h, S) : m(u, h, S) : a(h, S);
|
|
2723
2723
|
}
|
|
2724
|
-
b.all = function(u,
|
|
2724
|
+
b.all = function(u, h) {
|
|
2725
2725
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2726
2726
|
return u.reduce(function(S, T) {
|
|
2727
|
-
return b(S, T,
|
|
2727
|
+
return b(S, T, h);
|
|
2728
2728
|
}, {});
|
|
2729
2729
|
};
|
|
2730
|
-
var
|
|
2731
|
-
return qe =
|
|
2730
|
+
var M = b;
|
|
2731
|
+
return qe = M, qe;
|
|
2732
2732
|
}
|
|
2733
2733
|
var In = Vn();
|
|
2734
2734
|
const Ze = /* @__PURE__ */ qn(In);
|
|
@@ -2792,16 +2792,16 @@ async function Ct({
|
|
|
2792
2792
|
let c = jn({
|
|
2793
2793
|
url: i,
|
|
2794
2794
|
params: o
|
|
2795
|
-
}),
|
|
2796
|
-
n === de.get && c.length > a && (
|
|
2797
|
-
const
|
|
2798
|
-
body:
|
|
2795
|
+
}), y = e, p = n;
|
|
2796
|
+
n === de.get && c.length > a && (y = o, p = de.post, c = i);
|
|
2797
|
+
const g = Hn({
|
|
2798
|
+
body: y,
|
|
2799
2799
|
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2800
2800
|
method: p,
|
|
2801
2801
|
...l
|
|
2802
2802
|
});
|
|
2803
|
-
r && (
|
|
2804
|
-
const f = await xn(c,
|
|
2803
|
+
r && (g.signal = r);
|
|
2804
|
+
const f = await xn(c, g);
|
|
2805
2805
|
if (!f.ok) {
|
|
2806
2806
|
const m = await f.text();
|
|
2807
2807
|
return Promise.reject(new Error(m));
|
|
@@ -2823,18 +2823,18 @@ const Pe = mt()(hs((r, e) => ({
|
|
|
2823
2823
|
const a = o[t], {
|
|
2824
2824
|
apiBaseUrl: l = We,
|
|
2825
2825
|
clientId: c = Un,
|
|
2826
|
-
apiVersion:
|
|
2826
|
+
apiVersion: y = Ke,
|
|
2827
2827
|
...p
|
|
2828
|
-
} = s,
|
|
2828
|
+
} = s, g = {
|
|
2829
2829
|
...a,
|
|
2830
2830
|
...p,
|
|
2831
2831
|
apiBaseUrl: l,
|
|
2832
|
-
apiVersion:
|
|
2832
|
+
apiVersion: y,
|
|
2833
2833
|
clientId: c
|
|
2834
2834
|
}, f = Wn({
|
|
2835
|
-
source:
|
|
2835
|
+
source: g
|
|
2836
2836
|
});
|
|
2837
|
-
return
|
|
2837
|
+
return g.widgets = f, o[t] = g, {
|
|
2838
2838
|
sources: o
|
|
2839
2839
|
};
|
|
2840
2840
|
}, void 0, "setSource"),
|
|
@@ -3028,28 +3028,28 @@ function Zn(r) {
|
|
|
3028
3028
|
enabled: l,
|
|
3029
3029
|
...c
|
|
3030
3030
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3031
|
-
const
|
|
3031
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3032
3032
|
let f;
|
|
3033
3033
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3034
3034
|
let m;
|
|
3035
|
-
e[10] !== p || e[11] !==
|
|
3035
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3036
3036
|
const {
|
|
3037
|
-
signal:
|
|
3037
|
+
signal: h
|
|
3038
3038
|
} = u;
|
|
3039
|
-
return
|
|
3039
|
+
return g.getCategories({
|
|
3040
3040
|
...n,
|
|
3041
3041
|
filters: p,
|
|
3042
|
-
signal:
|
|
3042
|
+
signal: h
|
|
3043
3043
|
});
|
|
3044
|
-
}, e[10] = p, e[11] =
|
|
3045
|
-
const b = !!
|
|
3046
|
-
let
|
|
3047
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3044
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3045
|
+
const b = !!g && y;
|
|
3046
|
+
let M;
|
|
3047
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3048
3048
|
queryKey: f,
|
|
3049
3049
|
queryFn: m,
|
|
3050
3050
|
enabled: b,
|
|
3051
3051
|
...c
|
|
3052
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3052
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3053
3053
|
}
|
|
3054
3054
|
function Yr(r) {
|
|
3055
3055
|
const e = D(6);
|
|
@@ -3077,28 +3077,28 @@ function Yn(r) {
|
|
|
3077
3077
|
enabled: l,
|
|
3078
3078
|
...c
|
|
3079
3079
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3080
|
-
const
|
|
3080
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3081
3081
|
let f;
|
|
3082
3082
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3083
3083
|
let m;
|
|
3084
|
-
e[10] !== p || e[11] !==
|
|
3084
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3085
3085
|
const {
|
|
3086
|
-
signal:
|
|
3086
|
+
signal: h
|
|
3087
3087
|
} = u;
|
|
3088
|
-
return
|
|
3088
|
+
return g.getFeatures({
|
|
3089
3089
|
...n,
|
|
3090
3090
|
filters: p,
|
|
3091
|
-
signal:
|
|
3091
|
+
signal: h
|
|
3092
3092
|
});
|
|
3093
|
-
}, e[10] = p, e[11] =
|
|
3094
|
-
const b = !!
|
|
3095
|
-
let
|
|
3096
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3093
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3094
|
+
const b = !!g && y;
|
|
3095
|
+
let M;
|
|
3096
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3097
3097
|
queryKey: f,
|
|
3098
3098
|
queryFn: m,
|
|
3099
3099
|
enabled: b,
|
|
3100
3100
|
...c
|
|
3101
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3101
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3102
3102
|
}
|
|
3103
3103
|
function Xr(r) {
|
|
3104
3104
|
const e = D(6);
|
|
@@ -3126,28 +3126,28 @@ function Xn(r) {
|
|
|
3126
3126
|
enabled: l,
|
|
3127
3127
|
...c
|
|
3128
3128
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3129
|
-
const
|
|
3129
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3130
3130
|
let f;
|
|
3131
3131
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3132
3132
|
let m;
|
|
3133
|
-
e[10] !== p || e[11] !==
|
|
3133
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3134
3134
|
const {
|
|
3135
|
-
signal:
|
|
3135
|
+
signal: h
|
|
3136
3136
|
} = u;
|
|
3137
|
-
return
|
|
3137
|
+
return g.getFormula({
|
|
3138
3138
|
...n,
|
|
3139
3139
|
filters: p,
|
|
3140
|
-
signal:
|
|
3140
|
+
signal: h
|
|
3141
3141
|
});
|
|
3142
|
-
}, e[10] = p, e[11] =
|
|
3143
|
-
const b = !!
|
|
3144
|
-
let
|
|
3145
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3142
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3143
|
+
const b = !!g && y;
|
|
3144
|
+
let M;
|
|
3145
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3146
3146
|
queryKey: f,
|
|
3147
3147
|
queryFn: m,
|
|
3148
3148
|
enabled: b,
|
|
3149
3149
|
...c
|
|
3150
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3150
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3151
3151
|
}
|
|
3152
3152
|
function Jr(r) {
|
|
3153
3153
|
const e = D(6);
|
|
@@ -3175,28 +3175,28 @@ function Jn(r) {
|
|
|
3175
3175
|
enabled: l,
|
|
3176
3176
|
...c
|
|
3177
3177
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3178
|
-
const
|
|
3178
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3179
3179
|
let f;
|
|
3180
3180
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3181
3181
|
let m;
|
|
3182
|
-
e[10] !== p || e[11] !==
|
|
3182
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3183
3183
|
const {
|
|
3184
|
-
signal:
|
|
3184
|
+
signal: h
|
|
3185
3185
|
} = u;
|
|
3186
|
-
return
|
|
3186
|
+
return g.getHistogram({
|
|
3187
3187
|
...n,
|
|
3188
3188
|
filters: p,
|
|
3189
|
-
signal:
|
|
3189
|
+
signal: h
|
|
3190
3190
|
});
|
|
3191
|
-
}, e[10] = p, e[11] =
|
|
3192
|
-
const b = !!
|
|
3193
|
-
let
|
|
3194
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3191
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3192
|
+
const b = !!g && y;
|
|
3193
|
+
let M;
|
|
3194
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3195
3195
|
queryKey: f,
|
|
3196
3196
|
queryFn: m,
|
|
3197
3197
|
enabled: b,
|
|
3198
3198
|
...c
|
|
3199
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3199
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3200
3200
|
}
|
|
3201
3201
|
function eo(r) {
|
|
3202
3202
|
const e = D(6);
|
|
@@ -3224,28 +3224,28 @@ function er(r) {
|
|
|
3224
3224
|
enabled: l,
|
|
3225
3225
|
...c
|
|
3226
3226
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3227
|
-
const
|
|
3227
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3228
3228
|
let f;
|
|
3229
3229
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3230
3230
|
let m;
|
|
3231
|
-
e[10] !== p || e[11] !==
|
|
3231
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3232
3232
|
const {
|
|
3233
|
-
signal:
|
|
3233
|
+
signal: h
|
|
3234
3234
|
} = u;
|
|
3235
|
-
return
|
|
3235
|
+
return g.getRange({
|
|
3236
3236
|
...n,
|
|
3237
3237
|
filters: p,
|
|
3238
|
-
signal:
|
|
3238
|
+
signal: h
|
|
3239
3239
|
});
|
|
3240
|
-
}, e[10] = p, e[11] =
|
|
3241
|
-
const b = !!
|
|
3242
|
-
let
|
|
3243
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3240
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3241
|
+
const b = !!g && y;
|
|
3242
|
+
let M;
|
|
3243
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3244
3244
|
queryKey: f,
|
|
3245
3245
|
queryFn: m,
|
|
3246
3246
|
enabled: b,
|
|
3247
3247
|
...c
|
|
3248
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3248
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3249
3249
|
}
|
|
3250
3250
|
function to(r) {
|
|
3251
3251
|
const e = D(6);
|
|
@@ -3273,28 +3273,28 @@ function tr(r) {
|
|
|
3273
3273
|
enabled: l,
|
|
3274
3274
|
...c
|
|
3275
3275
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3276
|
-
const
|
|
3276
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3277
3277
|
let f;
|
|
3278
3278
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3279
3279
|
let m;
|
|
3280
|
-
e[10] !== p || e[11] !==
|
|
3280
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3281
3281
|
const {
|
|
3282
|
-
signal:
|
|
3282
|
+
signal: h
|
|
3283
3283
|
} = u;
|
|
3284
|
-
return
|
|
3284
|
+
return g.getScatter({
|
|
3285
3285
|
...n,
|
|
3286
3286
|
filters: p,
|
|
3287
|
-
signal:
|
|
3287
|
+
signal: h
|
|
3288
3288
|
});
|
|
3289
|
-
}, e[10] = p, e[11] =
|
|
3290
|
-
const b = !!
|
|
3291
|
-
let
|
|
3292
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3289
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3290
|
+
const b = !!g && y;
|
|
3291
|
+
let M;
|
|
3292
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3293
3293
|
queryKey: f,
|
|
3294
3294
|
queryFn: m,
|
|
3295
3295
|
enabled: b,
|
|
3296
3296
|
...c
|
|
3297
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3297
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3298
3298
|
}
|
|
3299
3299
|
function so(r) {
|
|
3300
3300
|
const e = D(6);
|
|
@@ -3322,28 +3322,28 @@ function sr(r) {
|
|
|
3322
3322
|
enabled: l,
|
|
3323
3323
|
...c
|
|
3324
3324
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3325
|
-
const
|
|
3325
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3326
3326
|
let f;
|
|
3327
3327
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3328
3328
|
let m;
|
|
3329
|
-
e[10] !== p || e[11] !==
|
|
3329
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3330
3330
|
const {
|
|
3331
|
-
signal:
|
|
3331
|
+
signal: h
|
|
3332
3332
|
} = u;
|
|
3333
|
-
return
|
|
3333
|
+
return g.getTable({
|
|
3334
3334
|
...n,
|
|
3335
3335
|
filters: p,
|
|
3336
|
-
signal:
|
|
3336
|
+
signal: h
|
|
3337
3337
|
});
|
|
3338
|
-
}, e[10] = p, e[11] =
|
|
3339
|
-
const b = !!
|
|
3340
|
-
let
|
|
3341
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3338
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3339
|
+
const b = !!g && y;
|
|
3340
|
+
let M;
|
|
3341
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3342
3342
|
queryKey: f,
|
|
3343
3343
|
queryFn: m,
|
|
3344
3344
|
enabled: b,
|
|
3345
3345
|
...c
|
|
3346
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3346
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3347
3347
|
}
|
|
3348
3348
|
function no(r) {
|
|
3349
3349
|
const e = D(6);
|
|
@@ -3371,28 +3371,28 @@ function nr(r) {
|
|
|
3371
3371
|
enabled: l,
|
|
3372
3372
|
...c
|
|
3373
3373
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3374
|
-
const
|
|
3374
|
+
const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
|
|
3375
3375
|
let f;
|
|
3376
3376
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
|
|
3377
3377
|
let m;
|
|
3378
|
-
e[10] !== p || e[11] !==
|
|
3378
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
|
|
3379
3379
|
const {
|
|
3380
|
-
signal:
|
|
3380
|
+
signal: h
|
|
3381
3381
|
} = u;
|
|
3382
|
-
return
|
|
3382
|
+
return g.getTimeSeries({
|
|
3383
3383
|
...n,
|
|
3384
3384
|
filters: p,
|
|
3385
|
-
signal:
|
|
3385
|
+
signal: h
|
|
3386
3386
|
});
|
|
3387
|
-
}, e[10] = p, e[11] =
|
|
3388
|
-
const b = !!
|
|
3389
|
-
let
|
|
3390
|
-
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (
|
|
3387
|
+
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3388
|
+
const b = !!g && y;
|
|
3389
|
+
let M;
|
|
3390
|
+
return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (M = {
|
|
3391
3391
|
queryKey: f,
|
|
3392
3392
|
queryFn: m,
|
|
3393
3393
|
enabled: b,
|
|
3394
3394
|
...c
|
|
3395
|
-
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] =
|
|
3395
|
+
}, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = M) : M = e[18], ne(M);
|
|
3396
3396
|
}
|
|
3397
3397
|
function ro(r) {
|
|
3398
3398
|
const e = D(6);
|
|
@@ -3419,41 +3419,41 @@ function io(r) {
|
|
|
3419
3419
|
let l;
|
|
3420
3420
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3421
3421
|
const c = l;
|
|
3422
|
-
let h;
|
|
3423
|
-
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
|
|
3424
|
-
let p;
|
|
3425
|
-
e[7] !== a || e[8] !== h ? (p = /* @__PURE__ */ N(Ws, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = p) : p = e[9];
|
|
3426
3422
|
let y;
|
|
3427
|
-
|
|
3423
|
+
e[4] !== t || e[5] !== c ? (y = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = y) : y = e[6];
|
|
3424
|
+
let p;
|
|
3425
|
+
e[7] !== a || e[8] !== y ? (p = /* @__PURE__ */ N(Ws, { values: a, children: y }), e[7] = a, e[8] = y, e[9] = p) : p = e[9];
|
|
3426
|
+
let g;
|
|
3427
|
+
return e[10] !== s || e[11] !== p ? (g = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = g) : g = e[12], g;
|
|
3428
3428
|
}
|
|
3429
3429
|
function ao(r, e) {
|
|
3430
3430
|
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = oe(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = oe(() => n.map(e), [e, n]), i = Q(({
|
|
3431
3431
|
id: c,
|
|
3432
|
-
visible:
|
|
3432
|
+
visible: y,
|
|
3433
3433
|
...p
|
|
3434
3434
|
}) => {
|
|
3435
3435
|
s(c, {
|
|
3436
3436
|
props: {
|
|
3437
|
-
visible:
|
|
3437
|
+
visible: y
|
|
3438
3438
|
},
|
|
3439
3439
|
legend: p
|
|
3440
3440
|
});
|
|
3441
3441
|
}, [s]), a = Q(({
|
|
3442
3442
|
id: c,
|
|
3443
|
-
collapsed:
|
|
3443
|
+
collapsed: y
|
|
3444
3444
|
}) => {
|
|
3445
3445
|
s(c, {
|
|
3446
3446
|
legend: {
|
|
3447
|
-
collapsed:
|
|
3447
|
+
collapsed: y
|
|
3448
3448
|
}
|
|
3449
3449
|
});
|
|
3450
3450
|
}, [s]), l = Q(({
|
|
3451
3451
|
id: c,
|
|
3452
|
-
opacity:
|
|
3452
|
+
opacity: y
|
|
3453
3453
|
}) => {
|
|
3454
3454
|
s(c, {
|
|
3455
3455
|
props: {
|
|
3456
|
-
opacity:
|
|
3456
|
+
opacity: y
|
|
3457
3457
|
}
|
|
3458
3458
|
});
|
|
3459
3459
|
}, [s]);
|
|
@@ -3468,30 +3468,30 @@ function lo({
|
|
|
3468
3468
|
mapId: r
|
|
3469
3469
|
}) {
|
|
3470
3470
|
const [e, t] = se(void 0), [s, n] = se(!1), [o, i] = se(void 0), a = $((u) => {
|
|
3471
|
-
var
|
|
3472
|
-
return (
|
|
3473
|
-
}), l = $((u) => u.getDeckInstance), c = $((u) => u.getOverlayInstance),
|
|
3474
|
-
var
|
|
3475
|
-
return (
|
|
3476
|
-
}) &&
|
|
3471
|
+
var h;
|
|
3472
|
+
return (h = u.maps[r]) == null ? void 0 : h.basemap;
|
|
3473
|
+
}), l = $((u) => u.getDeckInstance), c = $((u) => u.getOverlayInstance), y = $((u) => u.areLayersLoaded[r]), g = $((u) => {
|
|
3474
|
+
var h;
|
|
3475
|
+
return (h = u.maps[r]) == null ? void 0 : h.isLoaded;
|
|
3476
|
+
}) && y, {
|
|
3477
3477
|
type: f
|
|
3478
3478
|
} = ye[a], m = f === te.googleMaps, b = Q(async () => {
|
|
3479
|
-
const u = l(r),
|
|
3479
|
+
const u = l(r), h = c(r);
|
|
3480
3480
|
try {
|
|
3481
3481
|
const S = document.createElement("canvas");
|
|
3482
3482
|
S.width = u.width ?? 0, S.height = u.height ?? 0;
|
|
3483
3483
|
const T = S.getContext("2d");
|
|
3484
3484
|
if (m) {
|
|
3485
|
-
const
|
|
3486
|
-
if (
|
|
3485
|
+
const E = h;
|
|
3486
|
+
if (E.getRenderingType() !== "RASTER")
|
|
3487
3487
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3488
|
-
const F = await gs(
|
|
3488
|
+
const F = await gs(E.getDiv(), {
|
|
3489
3489
|
useCORS: !0
|
|
3490
3490
|
});
|
|
3491
3491
|
T == null || T.drawImage(F, 0, 0, u.width, u.height);
|
|
3492
3492
|
} else {
|
|
3493
|
-
const
|
|
3494
|
-
|
|
3493
|
+
const E = h;
|
|
3494
|
+
E.redraw(), T == null || T.drawImage(E.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3495
3495
|
}
|
|
3496
3496
|
u == null || u.redraw("screenshot"), T == null || T.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3497
3497
|
const w = S.toDataURL();
|
|
@@ -3504,8 +3504,8 @@ function lo({
|
|
|
3504
3504
|
}, [l, m, r, c]);
|
|
3505
3505
|
return {
|
|
3506
3506
|
takeScreenshot: Q(() => {
|
|
3507
|
-
i(void 0), n(!0),
|
|
3508
|
-
}, [b,
|
|
3507
|
+
i(void 0), n(!0), g && b();
|
|
3508
|
+
}, [b, g]),
|
|
3509
3509
|
isLoading: s,
|
|
3510
3510
|
screenshot: e,
|
|
3511
3511
|
error: o
|
|
@@ -3530,13 +3530,13 @@ function co(r) {
|
|
|
3530
3530
|
mapId: t
|
|
3531
3531
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3532
3532
|
const l = lr(a), c = i ?? l ?? n;
|
|
3533
|
-
let
|
|
3534
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (
|
|
3533
|
+
let y;
|
|
3534
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (y = {
|
|
3535
3535
|
spatialFilter: c,
|
|
3536
3536
|
staticSpatialFilter: l,
|
|
3537
3537
|
lassoToolsSpatialFilter: i,
|
|
3538
3538
|
viewportSpatialFilter: n
|
|
3539
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] =
|
|
3539
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = y) : y = e[10], y;
|
|
3540
3540
|
}
|
|
3541
3541
|
function rr(r) {
|
|
3542
3542
|
const e = D(4), {
|
|
@@ -3570,7 +3570,7 @@ function or(r) {
|
|
|
3570
3570
|
e: {
|
|
3571
3571
|
let i;
|
|
3572
3572
|
if (e[2] !== n) {
|
|
3573
|
-
const a =
|
|
3573
|
+
const a = Et({
|
|
3574
3574
|
values: n
|
|
3575
3575
|
}).filter(ar);
|
|
3576
3576
|
if (!(a != null && a.length)) {
|
|
@@ -3649,11 +3649,11 @@ function uo({
|
|
|
3649
3649
|
getTitle: l = dr,
|
|
3650
3650
|
getValue: c = pr
|
|
3651
3651
|
}) {
|
|
3652
|
-
const
|
|
3653
|
-
const b = e[m],
|
|
3654
|
-
return f + a(
|
|
3652
|
+
const y = o ? l(o) : "", g = t.reduce((f, m) => {
|
|
3653
|
+
const b = e[m], M = r[m], u = c(M, s, b), h = n ? i(m) : "";
|
|
3654
|
+
return f + a(h, u);
|
|
3655
3655
|
}, "");
|
|
3656
|
-
return
|
|
3656
|
+
return y + g;
|
|
3657
3657
|
}
|
|
3658
3658
|
function dr(r) {
|
|
3659
3659
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3705,16 +3705,16 @@ function po(r) {
|
|
|
3705
3705
|
} = $(n);
|
|
3706
3706
|
let l;
|
|
3707
3707
|
e[2] !== s ? (l = (w) => w.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3708
|
-
const c = $(l),
|
|
3708
|
+
const c = $(l), y = $(br), p = $(gr), g = $(hr), f = !c;
|
|
3709
3709
|
let m;
|
|
3710
|
-
e[4] !== s || e[5] !==
|
|
3710
|
+
e[4] !== s || e[5] !== y ? (m = (w) => y(s, w), e[4] = s, e[5] = y, e[6] = m) : m = e[6];
|
|
3711
3711
|
const b = m;
|
|
3712
|
-
let
|
|
3713
|
-
e[7] !== p || e[8] !== s ? (
|
|
3714
|
-
const u =
|
|
3715
|
-
let
|
|
3716
|
-
e[10] !== s || e[11] !==
|
|
3717
|
-
const S =
|
|
3712
|
+
let M;
|
|
3713
|
+
e[7] !== p || e[8] !== s ? (M = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = M) : M = e[9];
|
|
3714
|
+
const u = M;
|
|
3715
|
+
let h;
|
|
3716
|
+
e[10] !== s || e[11] !== g ? (h = () => g(s), e[10] = s, e[11] = g, e[12] = h) : h = e[12];
|
|
3717
|
+
const S = h;
|
|
3718
3718
|
let T;
|
|
3719
3719
|
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== f || e[17] !== b || e[18] !== u || e[19] !== S || e[20] !== o ? (T = t({
|
|
3720
3720
|
zoom: o,
|
|
@@ -3749,11 +3749,11 @@ async function vr({
|
|
|
3749
3749
|
params: l,
|
|
3750
3750
|
apiVersion: c = Ke
|
|
3751
3751
|
}) {
|
|
3752
|
-
const
|
|
3752
|
+
const y = `${r}/${c}/stats/${e}/${n}`;
|
|
3753
3753
|
return Ct({
|
|
3754
3754
|
accessToken: t,
|
|
3755
3755
|
signal: o,
|
|
3756
|
-
url:
|
|
3756
|
+
url: y,
|
|
3757
3757
|
method: de.get,
|
|
3758
3758
|
params: {
|
|
3759
3759
|
q: s,
|
|
@@ -3799,14 +3799,14 @@ function mo(r) {
|
|
|
3799
3799
|
} = r;
|
|
3800
3800
|
let l;
|
|
3801
3801
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3802
|
-
let c,
|
|
3802
|
+
let c, y;
|
|
3803
3803
|
e[2] !== l ? ({
|
|
3804
3804
|
enabled: c,
|
|
3805
|
-
...
|
|
3806
|
-
} = l, e[2] = l, e[3] = c, e[4] =
|
|
3805
|
+
...y
|
|
3806
|
+
} = l, e[2] = l, e[3] = c, e[4] = y) : (c = e[3], y = e[4]);
|
|
3807
3807
|
const p = c === void 0 ? !0 : c;
|
|
3808
|
-
let
|
|
3809
|
-
e[5] !== s || e[6] !== t ? (
|
|
3808
|
+
let g;
|
|
3809
|
+
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
3810
3810
|
let f;
|
|
3811
3811
|
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => wr({
|
|
3812
3812
|
source: t,
|
|
@@ -3816,8 +3816,8 @@ function mo(r) {
|
|
|
3816
3816
|
fetcherOptions: i
|
|
3817
3817
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
|
|
3818
3818
|
let m;
|
|
3819
|
-
return e[14] !== p || e[15] !== t || e[16] !==
|
|
3820
|
-
queryKey:
|
|
3819
|
+
return e[14] !== p || e[15] !== t || e[16] !== g || e[17] !== f || e[18] !== y ? (m = {
|
|
3820
|
+
queryKey: g,
|
|
3821
3821
|
queryFn: f,
|
|
3822
3822
|
select(b) {
|
|
3823
3823
|
return {
|
|
@@ -3826,8 +3826,8 @@ function mo(r) {
|
|
|
3826
3826
|
};
|
|
3827
3827
|
},
|
|
3828
3828
|
enabled: !!t && p,
|
|
3829
|
-
...
|
|
3830
|
-
}, e[14] = p, e[15] = t, e[16] =
|
|
3829
|
+
...y
|
|
3830
|
+
}, e[14] = p, e[15] = t, e[16] = g, e[17] = f, e[18] = y, e[19] = m) : m = e[19], ne(m);
|
|
3831
3831
|
}
|
|
3832
3832
|
function wr({
|
|
3833
3833
|
source: r,
|
|
@@ -3884,7 +3884,7 @@ async function Tr({
|
|
|
3884
3884
|
});
|
|
3885
3885
|
if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
|
|
3886
3886
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3887
|
-
const i = n.tilestats.layers[0].attributes.find((
|
|
3887
|
+
const i = n.tilestats.layers[0].attributes.find((y) => y.attribute === s);
|
|
3888
3888
|
if (!i)
|
|
3889
3889
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3890
3890
|
return i;
|
|
@@ -3930,7 +3930,7 @@ export {
|
|
|
3930
3930
|
Bs as MapProvider,
|
|
3931
3931
|
io as MapsProvider,
|
|
3932
3932
|
te as MapsTypes,
|
|
3933
|
-
|
|
3933
|
+
Mn as MeasurementTools,
|
|
3934
3934
|
fn as MeasurementToolsProvider,
|
|
3935
3935
|
to as RangeModel,
|
|
3936
3936
|
so as ScatterModel,
|
|
@@ -3963,7 +3963,7 @@ export {
|
|
|
3963
3963
|
or as useLassoToolsSpatialFilter,
|
|
3964
3964
|
G as useLassoToolsState,
|
|
3965
3965
|
pe as useLayerStore,
|
|
3966
|
-
|
|
3966
|
+
En as useLayers,
|
|
3967
3967
|
ao as useLegend,
|
|
3968
3968
|
lo as useMapScreenshot,
|
|
3969
3969
|
$ as useMapStore,
|