@carto/ps-react-maps 4.0.0 → 4.0.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 +727 -723
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useImperativeHandle as Ne, useEffect as
|
|
1
|
+
import { jsx as Z, jsxs as mt } from "react/jsx-runtime";
|
|
2
|
+
import { c as O } from "react/compiler-runtime";
|
|
3
|
+
import { useImperativeHandle as Ne, useEffect as W, useState as ae, createContext as He, useContext as ze, useMemo as ye, useCallback as ee, useRef as ge } from "react";
|
|
4
4
|
import { MapProvider as xt, Map as Ut, useMap as Vt } from "react-map-gl/maplibre";
|
|
5
5
|
import Bt from "@deck.gl/react";
|
|
6
6
|
import { useMap as yt, Map as jt, APIProvider as It } from "@vis.gl/react-google-maps";
|
|
@@ -36,7 +36,7 @@ const De = {
|
|
|
36
36
|
}, ie = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
39
|
+
}, Se = {
|
|
40
40
|
[re.positron]: {
|
|
41
41
|
url: $e[re.positron],
|
|
42
42
|
type: ie.maplibre
|
|
@@ -76,8 +76,8 @@ function Es(r) {
|
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
78
|
function Ts(r) {
|
|
79
|
-
const e =
|
|
80
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
79
|
+
const e = O(39);
|
|
80
|
+
let t, s, n, o, i, a, l, c, h, y, v, p;
|
|
81
81
|
e[0] !== r ? ({
|
|
82
82
|
instanceRef: i,
|
|
83
83
|
overlayRef: y,
|
|
@@ -85,13 +85,13 @@ function Ts(r) {
|
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
87
87
|
mapStyle: l,
|
|
88
|
-
parameters:
|
|
88
|
+
parameters: v,
|
|
89
89
|
getCursor: s,
|
|
90
90
|
getTooltip: n,
|
|
91
91
|
onLoad: c,
|
|
92
92
|
onViewStateChange: h,
|
|
93
93
|
...p
|
|
94
|
-
} = 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] = h, e[10] = y, e[11] =
|
|
94
|
+
} = 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] = h, e[10] = y, e[11] = v, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], v = e[11], p = e[12]);
|
|
95
95
|
let b;
|
|
96
96
|
e[13] !== a ? (b = a.filter(ks).map(Ps), e[13] = a, e[14] = b) : b = e[14];
|
|
97
97
|
const m = b, w = i;
|
|
@@ -101,24 +101,24 @@ function Ts(r) {
|
|
|
101
101
|
value: !0
|
|
102
102
|
}), e[15] = c, e[16] = u) : u = e[16];
|
|
103
103
|
let f;
|
|
104
|
-
e[17] !==
|
|
104
|
+
e[17] !== v ? (f = {
|
|
105
105
|
depthTest: !1,
|
|
106
|
-
...
|
|
107
|
-
}, e[17] =
|
|
108
|
-
let
|
|
109
|
-
e[19] !== y ? (
|
|
110
|
-
let
|
|
111
|
-
e[21] !== c ? (
|
|
106
|
+
...v
|
|
107
|
+
}, e[17] = v, e[18] = f) : f = e[18];
|
|
108
|
+
let S;
|
|
109
|
+
e[19] !== y ? (S = /* @__PURE__ */ Z(Cs, { overlayRef: y }), e[19] = y, e[20] = S) : S = e[20];
|
|
110
|
+
let M;
|
|
111
|
+
e[21] !== c ? (M = () => c({
|
|
112
112
|
type: "load",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[21] = c, e[22] =
|
|
115
|
-
let
|
|
116
|
-
e[23] !== l || e[24] !==
|
|
114
|
+
}), e[21] = c, e[22] = M) : M = e[22];
|
|
115
|
+
let _;
|
|
116
|
+
e[23] !== l || e[24] !== M ? (_ = /* @__PURE__ */ Z(Ut, { reuseMaps: !1, mapStyle: l, onLoad: M, onRender: Ls }), e[23] = l, e[24] = M, e[25] = _) : _ = e[25];
|
|
117
117
|
let P;
|
|
118
|
-
return e[26] !== m || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== h || e[32] !== p || e[33] !== w || e[34] !== u || e[35] !== f || e[36] !==
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
] }) }) }), e[26] = m, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = h, e[32] = p, e[33] = w, e[34] = u, e[35] = f, e[36] =
|
|
118
|
+
return e[26] !== m || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== h || e[32] !== p || e[33] !== w || e[34] !== u || e[35] !== f || e[36] !== S || e[37] !== _ ? (P = /* @__PURE__ */ Z(xt, { children: /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: w, layers: m, getCursor: s, getTooltip: n, onLoad: u, onViewStateChange: h, parameters: f, ...p, children: [
|
|
119
|
+
S,
|
|
120
|
+
_
|
|
121
|
+
] }) }) }), e[26] = m, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = h, e[32] = p, e[33] = w, e[34] = u, e[35] = f, e[36] = S, e[37] = _, e[38] = P) : P = e[38], P;
|
|
122
122
|
}
|
|
123
123
|
function Ls() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
@@ -134,7 +134,7 @@ function ks(r) {
|
|
|
134
134
|
return !!r?.type;
|
|
135
135
|
}
|
|
136
136
|
function Cs(r) {
|
|
137
|
-
const e =
|
|
137
|
+
const e = O(3), {
|
|
138
138
|
overlayRef: t
|
|
139
139
|
} = r, {
|
|
140
140
|
default: s
|
|
@@ -143,7 +143,7 @@ function Cs(r) {
|
|
|
143
143
|
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;
|
|
144
144
|
}
|
|
145
145
|
const Os = (r) => {
|
|
146
|
-
const e =
|
|
146
|
+
const e = O(9);
|
|
147
147
|
let t;
|
|
148
148
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
|
|
149
149
|
interleaved: !0
|
|
@@ -154,32 +154,32 @@ const Os = (r) => {
|
|
|
154
154
|
let a, l;
|
|
155
155
|
e[3] !== n ? (a = () => (s.setMap(n), () => {
|
|
156
156
|
s.finalize();
|
|
157
|
-
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]),
|
|
157
|
+
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), W(a, l);
|
|
158
158
|
let c, h;
|
|
159
159
|
return e[6] !== r ? (c = () => {
|
|
160
160
|
s.setProps(r);
|
|
161
|
-
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]),
|
|
161
|
+
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]), W(c, h), null;
|
|
162
162
|
};
|
|
163
163
|
function Fs(r) {
|
|
164
|
-
const e =
|
|
165
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
164
|
+
const e = O(73);
|
|
165
|
+
let t, s, n, o, i, a, l, c, h, y, v;
|
|
166
166
|
e[0] !== r ? ({
|
|
167
167
|
id: n,
|
|
168
168
|
instanceRef: o,
|
|
169
169
|
basemap: t,
|
|
170
170
|
layers: i,
|
|
171
|
-
gmapsProps:
|
|
171
|
+
gmapsProps: v,
|
|
172
172
|
overlayRef: c,
|
|
173
173
|
parameters: h,
|
|
174
174
|
controller: s,
|
|
175
175
|
onLoad: a,
|
|
176
176
|
onViewStateChange: l,
|
|
177
177
|
...y
|
|
178
|
-
} = 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] = h, e[10] = y, e[11] =
|
|
178
|
+
} = 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] = h, e[10] = y, e[11] = v) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], v = e[11]);
|
|
179
179
|
let p;
|
|
180
|
-
e[12] !==
|
|
180
|
+
e[12] !== v ? (p = v === void 0 ? {
|
|
181
181
|
apiKey: ""
|
|
182
|
-
} :
|
|
182
|
+
} : v, e[12] = v, e[13] = p) : p = e[13];
|
|
183
183
|
let b, m, w;
|
|
184
184
|
e[14] !== p ? ({
|
|
185
185
|
apiKey: w,
|
|
@@ -197,7 +197,7 @@ function Fs(r) {
|
|
|
197
197
|
}, e[18] = s, e[19] = oe) : oe = e[19], u = oe;
|
|
198
198
|
break e;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const G = s, se = G?.dragPan ?? !0, J = G?.doubleClickZoom ?? !0, Y = G?.scrollZoom ?? !0;
|
|
201
201
|
let ne;
|
|
202
202
|
e[20] !== se || e[21] !== J || e[22] !== Y ? (ne = {
|
|
203
203
|
dragPan: se,
|
|
@@ -206,14 +206,14 @@ function Fs(r) {
|
|
|
206
206
|
}, e[20] = se, e[21] = J, e[22] = Y, e[23] = ne) : ne = e[23], u = ne;
|
|
207
207
|
}
|
|
208
208
|
const f = u;
|
|
209
|
-
let
|
|
210
|
-
e[24] !== i ? (
|
|
211
|
-
const
|
|
209
|
+
let S;
|
|
210
|
+
e[24] !== i ? (S = i.filter(Ds).map(Rs), e[24] = i, e[25] = S) : S = e[25];
|
|
211
|
+
const M = S, _ = As;
|
|
212
212
|
let P;
|
|
213
|
-
e[26] !== o || e[27] !== l ? (P = (
|
|
213
|
+
e[26] !== o || e[27] !== l ? (P = (G) => {
|
|
214
214
|
const J = o?.current?._deck, Y = {
|
|
215
215
|
...J?.viewState,
|
|
216
|
-
...
|
|
216
|
+
...G
|
|
217
217
|
}, ne = {
|
|
218
218
|
latitude: Y.latitude,
|
|
219
219
|
longitude: Y.longitude,
|
|
@@ -230,46 +230,46 @@ function Fs(r) {
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
}, e[26] = o, e[27] = l, e[28] = P) : P = e[28];
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
e[29] !==
|
|
236
|
-
lat:
|
|
237
|
-
lng:
|
|
238
|
-
}, e[29] =
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
e[32] !==
|
|
233
|
+
const R = P, V = y.initialViewState?.latitude ?? 0, D = y.initialViewState?.longitude ?? 0;
|
|
234
|
+
let B;
|
|
235
|
+
e[29] !== V || e[30] !== D ? (B = {
|
|
236
|
+
lat: V,
|
|
237
|
+
lng: D
|
|
238
|
+
}, e[29] = V, e[30] = D, e[31] = B) : B = e[31];
|
|
239
|
+
const x = (y.initialViewState?.zoom ?? 0) + 1, F = y.initialViewState?.pitch, j = y.initialViewState?.bearing;
|
|
240
|
+
let E;
|
|
241
|
+
e[32] !== R || e[33] !== a || e[34] !== y.initialViewState ? (E = () => {
|
|
242
242
|
a({
|
|
243
243
|
type: "load",
|
|
244
244
|
value: !0
|
|
245
|
-
}),
|
|
246
|
-
}, e[32] =
|
|
247
|
-
let d,
|
|
248
|
-
e[36] !==
|
|
245
|
+
}), R(y.initialViewState);
|
|
246
|
+
}, e[32] = R, e[33] = a, e[34] = y.initialViewState, e[35] = E) : E = e[35];
|
|
247
|
+
let d, g;
|
|
248
|
+
e[36] !== R ? (d = (G) => R(_(G)), g = (G) => R(_(G)), e[36] = R, e[37] = d, e[38] = g) : (d = e[37], g = e[38]);
|
|
249
249
|
const L = typeof f.scrollZoom == "boolean" ? f.scrollZoom : !!f.scrollZoom, C = f.dragPan ? "greedy" : "none", k = !f.doubleClickZoom;
|
|
250
|
-
let
|
|
251
|
-
e[39] !== n || e[40] !== c ? (
|
|
252
|
-
let
|
|
253
|
-
e[42] !== a ? (
|
|
250
|
+
let T;
|
|
251
|
+
e[39] !== n || e[40] !== c ? (T = /* @__PURE__ */ Z($s, { id: n, overlayRef: c }), e[39] = n, e[40] = c, e[41] = T) : T = e[41];
|
|
252
|
+
let U;
|
|
253
|
+
e[42] !== a ? (U = () => {
|
|
254
254
|
a({
|
|
255
255
|
type: "deckgl",
|
|
256
256
|
value: !0
|
|
257
257
|
});
|
|
258
|
-
}, e[42] = a, e[43] =
|
|
259
|
-
let
|
|
260
|
-
e[44] !== h ? (
|
|
258
|
+
}, e[42] = a, e[43] = U) : U = e[43];
|
|
259
|
+
let N;
|
|
260
|
+
e[44] !== h ? (N = {
|
|
261
261
|
depthTest: !1,
|
|
262
262
|
...h
|
|
263
|
-
}, e[44] = h, e[45] =
|
|
264
|
-
let
|
|
265
|
-
e[46] !==
|
|
266
|
-
let
|
|
267
|
-
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !==
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] =
|
|
263
|
+
}, e[44] = h, e[45] = N) : N = e[45];
|
|
264
|
+
let I;
|
|
265
|
+
e[46] !== M || e[47] !== n || e[48] !== o || e[49] !== y || e[50] !== U || e[51] !== N ? (I = /* @__PURE__ */ Z(Os, { id: n, instanceRef: o, layers: M, onLoad: U, parameters: N, ...y }), e[46] = M, e[47] = n, e[48] = o, e[49] = y, e[50] = U, e[51] = N, e[52] = I) : I = e[52];
|
|
266
|
+
let $;
|
|
267
|
+
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !== F || e[57] !== j || e[58] !== E || e[59] !== d || e[60] !== g || e[61] !== L || e[62] !== C || e[63] !== k || e[64] !== T || e[65] !== I || e[66] !== B || e[67] !== x ? ($ = /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: n, mapTypeId: t, disableDefaultUI: !0, ...m, center: B, zoom: x, tilt: F, heading: j, onTilesLoaded: E, onBoundsChanged: d, onZoomChanged: g, scrollwheel: L, gestureHandling: C, disableDoubleClickZoom: k, children: [
|
|
268
|
+
T,
|
|
269
|
+
I
|
|
270
|
+
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] = F, e[57] = j, e[58] = E, e[59] = d, e[60] = g, e[61] = L, e[62] = C, e[63] = k, e[64] = T, e[65] = I, e[66] = B, e[67] = x, e[68] = $) : $ = e[68];
|
|
271
271
|
let z;
|
|
272
|
-
return e[69] !== b || e[70] !== w || e[71] !==
|
|
272
|
+
return e[69] !== b || e[70] !== w || e[71] !== $ ? (z = /* @__PURE__ */ Z(It, { apiKey: w, ...b, children: $ }), e[69] = b, e[70] = w, e[71] = $, e[72] = z) : z = e[72], z;
|
|
273
273
|
}
|
|
274
274
|
function As(r) {
|
|
275
275
|
const {
|
|
@@ -299,7 +299,7 @@ function Ds(r) {
|
|
|
299
299
|
return !!r?.type;
|
|
300
300
|
}
|
|
301
301
|
function $s(r) {
|
|
302
|
-
const e =
|
|
302
|
+
const e = O(3), {
|
|
303
303
|
id: t,
|
|
304
304
|
overlayRef: s
|
|
305
305
|
} = r, n = yt(t);
|
|
@@ -307,8 +307,8 @@ function $s(r) {
|
|
|
307
307
|
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
|
|
308
308
|
}
|
|
309
309
|
function qs(r) {
|
|
310
|
-
const e =
|
|
311
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
310
|
+
const e = O(46);
|
|
311
|
+
let t, s, n, o, i, a, l, c, h, y, v, p;
|
|
312
312
|
e[0] !== r ? ({
|
|
313
313
|
instanceRef: s,
|
|
314
314
|
overlayRef: o,
|
|
@@ -318,47 +318,47 @@ function qs(r) {
|
|
|
318
318
|
layers: h,
|
|
319
319
|
gmapsProps: t,
|
|
320
320
|
getCursor: y,
|
|
321
|
-
getTooltip:
|
|
321
|
+
getTooltip: v,
|
|
322
322
|
onLoad: n,
|
|
323
323
|
onViewStateChange: p,
|
|
324
324
|
...i
|
|
325
|
-
} = 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] = h, e[10] = y, e[11] =
|
|
325
|
+
} = 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] = h, e[10] = y, e[11] = v, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], v = e[11], p = e[12]);
|
|
326
326
|
const b = a === void 0 ? re.positron : a, m = l === void 0 ? !0 : l, w = c === void 0 ? "deck-gl-map" : c;
|
|
327
327
|
let u;
|
|
328
328
|
e[13] !== h ? (u = h === void 0 ? [] : h, e[13] = h, e[14] = u) : u = e[14];
|
|
329
|
-
const f = u,
|
|
329
|
+
const f = u, S = y === void 0 ? Ms : y, M = v === void 0 ? Es : v, _ = p === void 0 ? Us : p;
|
|
330
330
|
let P;
|
|
331
331
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
332
|
-
const [
|
|
333
|
-
url:
|
|
334
|
-
type:
|
|
335
|
-
} =
|
|
336
|
-
let
|
|
337
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
}, e[16] =
|
|
341
|
-
const
|
|
342
|
-
let
|
|
343
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
344
|
-
|
|
332
|
+
const [R, V] = ae(P), {
|
|
333
|
+
url: D,
|
|
334
|
+
type: B
|
|
335
|
+
} = Se[b], x = B === ie.googleMaps;
|
|
336
|
+
let F;
|
|
337
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (F = (k) => {
|
|
338
|
+
const T = k.type === "deckgl" ? 0 : 1;
|
|
339
|
+
V((U) => U.map((N, I) => I === T ? k.value : N));
|
|
340
|
+
}, e[16] = F) : F = e[16];
|
|
341
|
+
const j = F;
|
|
342
|
+
let E, d;
|
|
343
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (E = () => () => {
|
|
344
|
+
j({
|
|
345
345
|
type: "load",
|
|
346
346
|
value: !1
|
|
347
|
-
}),
|
|
347
|
+
}), j({
|
|
348
348
|
type: "deckgl",
|
|
349
349
|
value: !1
|
|
350
350
|
});
|
|
351
|
-
}, d = [
|
|
352
|
-
let
|
|
353
|
-
if (e[19] !==
|
|
354
|
-
const k =
|
|
351
|
+
}, d = [j], e[17] = E, e[18] = d) : (E = e[17], d = e[18]), W(E, d);
|
|
352
|
+
let g, L;
|
|
353
|
+
if (e[19] !== R || e[20] !== n ? (g = () => {
|
|
354
|
+
const k = R.every(xs);
|
|
355
355
|
n?.(k);
|
|
356
|
-
}, L = [
|
|
356
|
+
}, L = [R, n], e[19] = R, e[20] = n, e[21] = g, e[22] = L) : (g = e[21], L = e[22]), W(g, L), x) {
|
|
357
357
|
let k;
|
|
358
|
-
return e[23] !== b || e[24] !== m || e[25] !==
|
|
358
|
+
return e[23] !== b || e[24] !== m || e[25] !== S || e[26] !== M || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== f || e[31] !== _ || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */ Z(Fs, { instanceRef: s, overlayRef: o, controller: m, id: w, basemap: b, layers: f, gmapsProps: t, getCursor: S, getTooltip: M, onLoad: j, onViewStateChange: _, ...i }), e[23] = b, e[24] = m, e[25] = S, e[26] = M, e[27] = t, e[28] = w, e[29] = s, e[30] = f, e[31] = _, e[32] = o, e[33] = i, e[34] = k) : k = e[34], k;
|
|
359
359
|
}
|
|
360
360
|
let C;
|
|
361
|
-
return e[35] !== m || e[36] !==
|
|
361
|
+
return e[35] !== m || e[36] !== S || e[37] !== M || e[38] !== w || e[39] !== s || e[40] !== f || e[41] !== D || e[42] !== _ || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ Z(Ts, { instanceRef: s, overlayRef: o, controller: m, id: w, layers: f, mapStyle: D, getCursor: S, getTooltip: M, onLoad: j, onViewStateChange: _, ...i }), e[35] = m, e[36] = S, e[37] = M, e[38] = w, e[39] = s, e[40] = f, e[41] = D, e[42] = _, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
362
362
|
}
|
|
363
363
|
function xs(r) {
|
|
364
364
|
return r;
|
|
@@ -372,7 +372,7 @@ const Vs = {
|
|
|
372
372
|
curve: 2
|
|
373
373
|
})
|
|
374
374
|
};
|
|
375
|
-
var
|
|
375
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
376
376
|
function Et(r) {
|
|
377
377
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
378
378
|
}
|
|
@@ -400,16 +400,16 @@ function Bs() {
|
|
|
400
400
|
function a(u, f) {
|
|
401
401
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
402
402
|
}
|
|
403
|
-
function l(u, f,
|
|
404
|
-
return u.concat(f).map(function(
|
|
405
|
-
return a(
|
|
403
|
+
function l(u, f, S) {
|
|
404
|
+
return u.concat(f).map(function(M) {
|
|
405
|
+
return a(M, S);
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
function c(u, f) {
|
|
409
409
|
if (!f.customMerge)
|
|
410
410
|
return m;
|
|
411
|
-
var
|
|
412
|
-
return typeof
|
|
411
|
+
var S = f.customMerge(u);
|
|
412
|
+
return typeof S == "function" ? S : m;
|
|
413
413
|
}
|
|
414
414
|
function h(u) {
|
|
415
415
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -419,7 +419,7 @@ function Bs() {
|
|
|
419
419
|
function y(u) {
|
|
420
420
|
return Object.keys(u).concat(h(u));
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function v(u, f) {
|
|
423
423
|
try {
|
|
424
424
|
return f in u;
|
|
425
425
|
} catch {
|
|
@@ -427,26 +427,26 @@ function Bs() {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function p(u, f) {
|
|
430
|
-
return
|
|
430
|
+
return v(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
431
431
|
}
|
|
432
|
-
function b(u, f,
|
|
433
|
-
var
|
|
434
|
-
return
|
|
435
|
-
_
|
|
436
|
-
}), y(f).forEach(function(
|
|
437
|
-
p(u,
|
|
438
|
-
}),
|
|
432
|
+
function b(u, f, S) {
|
|
433
|
+
var M = {};
|
|
434
|
+
return S.isMergeableObject(u) && y(u).forEach(function(_) {
|
|
435
|
+
M[_] = a(u[_], S);
|
|
436
|
+
}), y(f).forEach(function(_) {
|
|
437
|
+
p(u, _) || (v(u, _) && S.isMergeableObject(f[_]) ? M[_] = c(_, S)(u[_], f[_], S) : M[_] = a(f[_], S));
|
|
438
|
+
}), M;
|
|
439
439
|
}
|
|
440
|
-
function m(u, f,
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
return P ?
|
|
440
|
+
function m(u, f, S) {
|
|
441
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
442
|
+
var M = Array.isArray(f), _ = Array.isArray(u), P = M === _;
|
|
443
|
+
return P ? M ? S.arrayMerge(u, f, S) : b(u, f, S) : a(f, S);
|
|
444
444
|
}
|
|
445
|
-
m.all = function(f,
|
|
445
|
+
m.all = function(f, S) {
|
|
446
446
|
if (!Array.isArray(f))
|
|
447
447
|
throw new Error("first argument should be an array");
|
|
448
|
-
return f.reduce(function(
|
|
449
|
-
return m(
|
|
448
|
+
return f.reduce(function(M, _) {
|
|
449
|
+
return m(M, _, S);
|
|
450
450
|
}, {});
|
|
451
451
|
};
|
|
452
452
|
var w = m;
|
|
@@ -477,9 +477,9 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
477
477
|
setBasemap: (n, o) => t((i) => {
|
|
478
478
|
const {
|
|
479
479
|
type: a
|
|
480
|
-
} =
|
|
480
|
+
} = Se[i.maps[n].basemap], {
|
|
481
481
|
type: l
|
|
482
|
-
} =
|
|
482
|
+
} = Se[o], c = a === l && !!i.maps[n]?.isLoaded;
|
|
483
483
|
return {
|
|
484
484
|
maps: {
|
|
485
485
|
...i.maps,
|
|
@@ -701,7 +701,7 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
701
701
|
...zs(...e)
|
|
702
702
|
})), Tt = He({});
|
|
703
703
|
function Zs(r) {
|
|
704
|
-
const e =
|
|
704
|
+
const e = O(5), {
|
|
705
705
|
children: t,
|
|
706
706
|
values: s
|
|
707
707
|
} = r;
|
|
@@ -709,16 +709,16 @@ function Zs(r) {
|
|
|
709
709
|
e[0] !== s ? (n = Ks(s), e[0] = s, e[1] = n) : n = e[1];
|
|
710
710
|
const [o] = ae(n);
|
|
711
711
|
let i;
|
|
712
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
712
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function q(r) {
|
|
715
715
|
const e = ze(Tt);
|
|
716
716
|
if (!Object.keys(e).length)
|
|
717
717
|
throw new Error("Missing MapProvider in the tree");
|
|
718
718
|
return Ke(e, r);
|
|
719
719
|
}
|
|
720
720
|
function yo(r) {
|
|
721
|
-
const e =
|
|
721
|
+
const e = O(9), {
|
|
722
722
|
children: t,
|
|
723
723
|
mapId: s
|
|
724
724
|
} = r;
|
|
@@ -726,7 +726,7 @@ function yo(r) {
|
|
|
726
726
|
e[0] !== s ? (n = (h) => h.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
727
727
|
const {
|
|
728
728
|
basemap: o
|
|
729
|
-
} =
|
|
729
|
+
} = q(n), i = q(Qs);
|
|
730
730
|
let a;
|
|
731
731
|
e[2] !== s || e[3] !== i ? (a = (h) => i(s, h), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
732
732
|
const l = a;
|
|
@@ -794,7 +794,7 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
794
794
|
}
|
|
795
795
|
}, Js = [new ss({
|
|
796
796
|
filterSize: 1
|
|
797
|
-
})],
|
|
797
|
+
})], Te = {
|
|
798
798
|
id: Ce,
|
|
799
799
|
operation: "mask",
|
|
800
800
|
pickable: !1,
|
|
@@ -822,7 +822,7 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
822
822
|
value: "edit",
|
|
823
823
|
mode: Ws
|
|
824
824
|
}
|
|
825
|
-
},
|
|
825
|
+
}, be = ht((r) => ({
|
|
826
826
|
layers: {},
|
|
827
827
|
setLayer: (e, t) => r((s) => {
|
|
828
828
|
const n = {
|
|
@@ -879,20 +879,20 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
879
879
|
}, ["pinch"], ["multipan"]]
|
|
880
880
|
};
|
|
881
881
|
function Pt(r) {
|
|
882
|
-
const e =
|
|
882
|
+
const e = O(12), {
|
|
883
883
|
mapId: t,
|
|
884
884
|
layerId: s
|
|
885
885
|
} = r;
|
|
886
886
|
let n;
|
|
887
887
|
e[0] !== t ? (n = (b) => b.maps[t]?.basemap, e[0] = t, e[1] = n) : n = e[1];
|
|
888
|
-
const o =
|
|
888
|
+
const o = q(n);
|
|
889
889
|
let i;
|
|
890
890
|
e[2] !== t ? (i = (b) => b.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
891
|
-
const a =
|
|
891
|
+
const a = q(i), l = q(tn), c = be(en), {
|
|
892
892
|
type: h
|
|
893
|
-
} =
|
|
894
|
-
let
|
|
895
|
-
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (
|
|
893
|
+
} = Se[o], y = h === ie.googleMaps;
|
|
894
|
+
let v, p;
|
|
895
|
+
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (v = () => {
|
|
896
896
|
let b = null;
|
|
897
897
|
if (y && a) {
|
|
898
898
|
const m = l(t);
|
|
@@ -905,7 +905,7 @@ function Pt(r) {
|
|
|
905
905
|
eventManager: b
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
|
-
}, p = [l, y, a, s, t, c], e[4] = l, e[5] = y, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] =
|
|
908
|
+
}, p = [l, y, a, s, t, c], e[4] = l, e[5] = y, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = v, e[11] = p) : (v = e[10], p = e[11]), W(v, p);
|
|
909
909
|
}
|
|
910
910
|
function Xs(r) {
|
|
911
911
|
const [e, t, s, n] = Lt[r], o = {
|
|
@@ -1095,7 +1095,7 @@ const rn = (r) => Ge()((e) => ({
|
|
|
1095
1095
|
}
|
|
1096
1096
|
})), Ct = He({});
|
|
1097
1097
|
function on(r) {
|
|
1098
|
-
const e =
|
|
1098
|
+
const e = O(5), {
|
|
1099
1099
|
children: t,
|
|
1100
1100
|
values: s
|
|
1101
1101
|
} = r;
|
|
@@ -1103,9 +1103,9 @@ function on(r) {
|
|
|
1103
1103
|
e[0] !== s ? (n = () => rn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1104
1104
|
const [o] = ae(n);
|
|
1105
1105
|
let i;
|
|
1106
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1106
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Ct.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Q(r) {
|
|
1109
1109
|
const e = ze(Ct);
|
|
1110
1110
|
if (!Object.keys(e).length)
|
|
1111
1111
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
@@ -1115,8 +1115,8 @@ function an({
|
|
|
1115
1115
|
mapId: r,
|
|
1116
1116
|
children: e
|
|
1117
1117
|
}) {
|
|
1118
|
-
const t =
|
|
1119
|
-
|
|
1118
|
+
const t = Q((p) => p.data[r]?.enabled), s = Q((p) => p.setEnabled), n = Q((p) => p.data[r]?.values), o = Q((p) => p.setValue), i = Q((p) => p.setVisibility), a = Q((p) => p.data[r]?.modeSelected), l = Q((p) => p.setModeSelected), c = Q((p) => p.data[r]?.modes), h = Q((p) => p.setModeInstance);
|
|
1119
|
+
W(() => {
|
|
1120
1120
|
const p = c[a];
|
|
1121
1121
|
if (p && t) {
|
|
1122
1122
|
const b = p.mode;
|
|
@@ -1129,14 +1129,15 @@ function an({
|
|
|
1129
1129
|
] = ye(() => {
|
|
1130
1130
|
const p = (w) => ({
|
|
1131
1131
|
id: w.id,
|
|
1132
|
+
...w.properties,
|
|
1132
1133
|
visible: w.properties.visible,
|
|
1133
|
-
label: w.properties
|
|
1134
|
+
label: w.properties.label
|
|
1134
1135
|
});
|
|
1135
1136
|
return [
|
|
1136
1137
|
Object.values(n).filter((w) => w.type === "mask").map(p)
|
|
1137
1138
|
// , draw
|
|
1138
1139
|
];
|
|
1139
|
-
}, [n]),
|
|
1140
|
+
}, [n]), v = ee((p) => {
|
|
1140
1141
|
s(r, !!p), l(r, p);
|
|
1141
1142
|
}, [r, s, l]);
|
|
1142
1143
|
return e({
|
|
@@ -1151,7 +1152,7 @@ function an({
|
|
|
1151
1152
|
setValue: ee((p, b) => o(r, p, b), [r, o]),
|
|
1152
1153
|
setEnabled: ee((p) => s(r, p), [r, s]),
|
|
1153
1154
|
setVisibility: ee((p, b) => i(r, p, b), [r, i]),
|
|
1154
|
-
setModeSelected:
|
|
1155
|
+
setModeSelected: v
|
|
1155
1156
|
});
|
|
1156
1157
|
}
|
|
1157
1158
|
function Ot({
|
|
@@ -1173,12 +1174,12 @@ function un(r) {
|
|
|
1173
1174
|
function nt(r, e, t) {
|
|
1174
1175
|
switch (t) {
|
|
1175
1176
|
case "length": {
|
|
1176
|
-
const s = it[
|
|
1177
|
+
const s = it[H.meter], n = it[e];
|
|
1177
1178
|
return ln(r).from(s).to(n);
|
|
1178
1179
|
}
|
|
1179
1180
|
case "area": {
|
|
1180
1181
|
un(e);
|
|
1181
|
-
const s = at[Pe[
|
|
1182
|
+
const s = at[Pe[H.meter]], n = at[Pe[e]];
|
|
1182
1183
|
return cn(r).from(s).to(n);
|
|
1183
1184
|
}
|
|
1184
1185
|
default:
|
|
@@ -1203,11 +1204,11 @@ function Oe({
|
|
|
1203
1204
|
let h, y;
|
|
1204
1205
|
if (c) {
|
|
1205
1206
|
const p = r < (s ?? rt);
|
|
1206
|
-
let b = p ?
|
|
1207
|
-
h = p ?
|
|
1207
|
+
let b = p ? H.meter : H.kilometer;
|
|
1208
|
+
h = p ? ve.meter : ve.kilometer, l && (h = p ? ve.feet : ve.mile, b = p ? H.feet : H.mile), y = nt(r, b, i);
|
|
1208
1209
|
} else
|
|
1209
|
-
h =
|
|
1210
|
-
let
|
|
1210
|
+
h = ve[e], y = nt(r, e, i);
|
|
1211
|
+
let v = `${wt(y, t, {
|
|
1211
1212
|
style: "unit",
|
|
1212
1213
|
unit: h,
|
|
1213
1214
|
unitDisplay: "short",
|
|
@@ -1216,7 +1217,7 @@ function Oe({
|
|
|
1216
1217
|
maximumFractionDigits: 2,
|
|
1217
1218
|
...o
|
|
1218
1219
|
})}`;
|
|
1219
|
-
return i === "area" && (
|
|
1220
|
+
return i === "area" && (v += "2"), n ? n(v) : v;
|
|
1220
1221
|
}
|
|
1221
1222
|
function ho(r, {
|
|
1222
1223
|
hasDoubleClickZoom: e
|
|
@@ -1539,7 +1540,7 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1539
1540
|
point: Ve.point
|
|
1540
1541
|
}
|
|
1541
1542
|
}
|
|
1542
|
-
},
|
|
1543
|
+
}, H = {
|
|
1543
1544
|
kilometer: "kilometer",
|
|
1544
1545
|
meter: "meter",
|
|
1545
1546
|
centimeter: "centimeter",
|
|
@@ -1555,37 +1556,37 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1555
1556
|
}, Ie = {
|
|
1556
1557
|
"m-km": "m-km",
|
|
1557
1558
|
"ft-mi": "ft-mi",
|
|
1558
|
-
...
|
|
1559
|
+
...H
|
|
1559
1560
|
}, mn = {
|
|
1560
1561
|
meters: "meters",
|
|
1561
1562
|
kilometer: "kilometers",
|
|
1562
1563
|
mile: "miles"
|
|
1563
1564
|
}, it = {
|
|
1564
|
-
[
|
|
1565
|
-
[
|
|
1566
|
-
[
|
|
1567
|
-
[
|
|
1568
|
-
[
|
|
1569
|
-
[
|
|
1570
|
-
[
|
|
1565
|
+
[H.kilometer]: "km",
|
|
1566
|
+
[H.meter]: "m",
|
|
1567
|
+
[H.centimeter]: "cm",
|
|
1568
|
+
[H.milimeter]: "mm",
|
|
1569
|
+
[H.mile]: "mi",
|
|
1570
|
+
[H.yard]: "yd",
|
|
1571
|
+
[H.feet]: "ft"
|
|
1571
1572
|
}, at = {
|
|
1572
1573
|
[ue.squareMeter]: "m2",
|
|
1573
1574
|
[ue.squareKilometer]: "km2",
|
|
1574
1575
|
[ue.squareMile]: "mi2",
|
|
1575
1576
|
[ue.squareFeet]: "ft2"
|
|
1576
1577
|
}, Pe = {
|
|
1577
|
-
[
|
|
1578
|
-
[
|
|
1579
|
-
[
|
|
1580
|
-
[
|
|
1581
|
-
},
|
|
1582
|
-
[
|
|
1583
|
-
[
|
|
1584
|
-
[
|
|
1585
|
-
[
|
|
1586
|
-
[
|
|
1587
|
-
[
|
|
1588
|
-
[
|
|
1578
|
+
[H.meter]: ue.squareMeter,
|
|
1579
|
+
[H.kilometer]: ue.squareKilometer,
|
|
1580
|
+
[H.mile]: ue.squareMile,
|
|
1581
|
+
[H.feet]: ue.squareFeet
|
|
1582
|
+
}, ve = {
|
|
1583
|
+
[H.kilometer]: "kilometer",
|
|
1584
|
+
[H.meter]: "meter",
|
|
1585
|
+
[H.centimeter]: "centimeter",
|
|
1586
|
+
[H.milimeter]: "millimeter",
|
|
1587
|
+
[H.mile]: "mile",
|
|
1588
|
+
[H.yard]: "yard",
|
|
1589
|
+
[H.feet]: "foot"
|
|
1589
1590
|
}, X = {
|
|
1590
1591
|
"m-km": {
|
|
1591
1592
|
value: "m-km",
|
|
@@ -1654,117 +1655,118 @@ function vn({
|
|
|
1654
1655
|
layerProps: n = {},
|
|
1655
1656
|
defaultType: o = "mask"
|
|
1656
1657
|
}) {
|
|
1657
|
-
const i =
|
|
1658
|
+
const i = Q((E) => E.data[e]?.enabled), a = ge(i), l = Q((E) => E.setEnabled), c = Q((E) => E.data[e]?.values), h = Q((E) => E.setValue), y = Q((E) => E.data[e]?.modeInstance), v = Q((E) => E.data[e]?.modeSelected), p = be((E) => E.setLayer), b = q((E) => E.addLayers), m = q((E) => E.removeLayers), w = q(vt((E) => E.maps[e]?.layers.filter((d) => !bn.includes(d)))), u = q((E) => E.getDeckInstance), f = ge({});
|
|
1658
1659
|
Pt({
|
|
1659
1660
|
mapId: e,
|
|
1660
1661
|
layerId: me
|
|
1661
1662
|
});
|
|
1662
|
-
const
|
|
1663
|
-
values:
|
|
1664
|
-
}), [
|
|
1663
|
+
const S = ye(() => Ot({
|
|
1664
|
+
values: c
|
|
1665
|
+
}), [c]), M = ye(() => ({
|
|
1665
1666
|
type: "FeatureCollection",
|
|
1666
|
-
features:
|
|
1667
|
+
features: S.map((E) => ({
|
|
1667
1668
|
type: "Feature",
|
|
1668
|
-
geometry:
|
|
1669
|
-
properties:
|
|
1670
|
-
id:
|
|
1669
|
+
geometry: E.geometry,
|
|
1670
|
+
properties: E.properties,
|
|
1671
|
+
id: E.id
|
|
1671
1672
|
}))
|
|
1672
|
-
}), [
|
|
1673
|
-
const
|
|
1674
|
-
...
|
|
1675
|
-
features:
|
|
1673
|
+
}), [S]), _ = ye(() => S.filter((E) => E.properties.visible).map((E) => E.id), [S]), [P, R] = ae(M), [V, D] = ae([]), B = ee(() => {
|
|
1674
|
+
const E = {
|
|
1675
|
+
...M,
|
|
1676
|
+
features: M.features.filter((d) => d.properties?.visible)
|
|
1676
1677
|
};
|
|
1677
|
-
|
|
1678
|
-
}, [
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
}, [
|
|
1682
|
-
const
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
}), [
|
|
1686
|
-
const
|
|
1687
|
-
|
|
1688
|
-
}, [e,
|
|
1689
|
-
editType:
|
|
1690
|
-
updatedData:
|
|
1678
|
+
R(E);
|
|
1679
|
+
}, [M]);
|
|
1680
|
+
W(() => {
|
|
1681
|
+
B();
|
|
1682
|
+
}, [B]);
|
|
1683
|
+
const x = ge(S.length);
|
|
1684
|
+
W(() => (b(e, [me]), () => {
|
|
1685
|
+
m(e, [me]);
|
|
1686
|
+
}), [b, e, m]);
|
|
1687
|
+
const F = ee(() => {
|
|
1688
|
+
B(), D([]), l(e, !1);
|
|
1689
|
+
}, [e, B, l]), j = ee(({
|
|
1690
|
+
editType: E,
|
|
1691
|
+
updatedData: d
|
|
1691
1692
|
}) => {
|
|
1692
|
-
if (
|
|
1693
|
-
|
|
1693
|
+
if (E === te.cancel) {
|
|
1694
|
+
F();
|
|
1694
1695
|
return;
|
|
1695
1696
|
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
const
|
|
1699
|
-
|
|
1700
|
-
geometry:
|
|
1701
|
-
properties:
|
|
1697
|
+
R(d), E !== te.updateTentativeFeature && E === te.addFeature && (v !== "edit" && (x.current = x.current + 1), d.features.forEach((g, L) => {
|
|
1698
|
+
g.properties.label ??= `${s?.mask} ${x.current}`, g.properties.index = L, g.properties.visible = g.properties.visible ?? !0;
|
|
1699
|
+
const C = g.id ?? crypto.randomUUID();
|
|
1700
|
+
h(e, C, {
|
|
1701
|
+
geometry: g.geometry,
|
|
1702
|
+
properties: g.properties,
|
|
1702
1703
|
// visible: true,
|
|
1703
1704
|
type: o
|
|
1704
1705
|
});
|
|
1705
|
-
}),
|
|
1706
|
-
}, [o,
|
|
1707
|
-
return
|
|
1708
|
-
const
|
|
1709
|
-
border:
|
|
1710
|
-
point:
|
|
1711
|
-
fill:
|
|
1706
|
+
}), F());
|
|
1707
|
+
}, [o, F, s?.mask, e, v, h]);
|
|
1708
|
+
return W(() => {
|
|
1709
|
+
const E = i, {
|
|
1710
|
+
border: d,
|
|
1711
|
+
point: g,
|
|
1712
|
+
fill: L
|
|
1712
1713
|
} = t.colors.editing, {
|
|
1713
|
-
border:
|
|
1714
|
-
fill:
|
|
1715
|
-
} = t.colors.finished,
|
|
1714
|
+
border: C,
|
|
1715
|
+
fill: k
|
|
1716
|
+
} = t.colors.finished, T = sn({
|
|
1716
1717
|
layerProps: {
|
|
1717
1718
|
...n.mask,
|
|
1718
|
-
pickable:
|
|
1719
|
-
data:
|
|
1720
|
-
selectedFeatureIndexes:
|
|
1719
|
+
pickable: E,
|
|
1720
|
+
data: P,
|
|
1721
|
+
selectedFeatureIndexes: V,
|
|
1721
1722
|
updateTriggers: {
|
|
1722
1723
|
getFilterValue: _
|
|
1723
1724
|
},
|
|
1724
|
-
onClick: (
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1725
|
+
onClick: (U) => {
|
|
1726
|
+
const N = U;
|
|
1727
|
+
N.isGuide || D([N.index]);
|
|
1727
1728
|
}
|
|
1728
1729
|
},
|
|
1729
|
-
getLineColor: (
|
|
1730
|
-
getFillColor: (
|
|
1730
|
+
getLineColor: (U) => V[0] === U.properties.index ? d : C,
|
|
1731
|
+
getFillColor: (U) => V[0] === U.properties.index ? L : k,
|
|
1731
1732
|
pointColor: {
|
|
1732
|
-
fill:
|
|
1733
|
-
outline:
|
|
1733
|
+
fill: g,
|
|
1734
|
+
outline: d
|
|
1734
1735
|
},
|
|
1735
|
-
onEdit:
|
|
1736
|
-
mode:
|
|
1736
|
+
onEdit: j,
|
|
1737
|
+
mode: E ? y : new ts()
|
|
1737
1738
|
});
|
|
1738
|
-
|
|
1739
|
-
}, [
|
|
1740
|
-
const
|
|
1741
|
-
...
|
|
1742
|
-
data:
|
|
1743
|
-
getFilterValue: (
|
|
1739
|
+
p(me, T);
|
|
1740
|
+
}, [P, i, n.mask, _, y, j, V, p, t.colors.editing, t.colors.finished]), W(() => {
|
|
1741
|
+
const E = {
|
|
1742
|
+
...Te,
|
|
1743
|
+
data: M,
|
|
1744
|
+
getFilterValue: (d) => Number(_.includes(d.id)),
|
|
1744
1745
|
updateTriggers: {
|
|
1745
1746
|
getFilterValue: _
|
|
1746
1747
|
}
|
|
1747
1748
|
};
|
|
1748
|
-
return
|
|
1749
|
+
return p(Te.id, {
|
|
1749
1750
|
type: as,
|
|
1750
|
-
props:
|
|
1751
|
-
}),
|
|
1752
|
-
|
|
1751
|
+
props: E
|
|
1752
|
+
}), b(e, [Te.id]), () => {
|
|
1753
|
+
m(e, [Te.id]);
|
|
1753
1754
|
};
|
|
1754
|
-
}, [
|
|
1755
|
-
|
|
1756
|
-
const
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
g(
|
|
1755
|
+
}, [b, e, M, _, m, p]), W(() => {
|
|
1756
|
+
i === a.current && !a.current || w?.forEach((E) => {
|
|
1757
|
+
const d = u(e)?.props.layers.find((L) => L.props.id === E);
|
|
1758
|
+
if (!d) return;
|
|
1759
|
+
i && (f.current[E] = d?.props.pickable);
|
|
1760
|
+
const g = !i && (f.current[E] ?? d?.props.pickable);
|
|
1761
|
+
p(E, {
|
|
1760
1762
|
props: {
|
|
1761
|
-
pickable:
|
|
1763
|
+
pickable: g,
|
|
1762
1764
|
extensions: [new ns()],
|
|
1763
1765
|
maskId: !i && _.length ? Ce : void 0
|
|
1764
1766
|
}
|
|
1765
|
-
});
|
|
1767
|
+
}), a.current = i;
|
|
1766
1768
|
});
|
|
1767
|
-
}, [i,
|
|
1769
|
+
}, [i, u, e, w, _.length, p]), r;
|
|
1768
1770
|
}
|
|
1769
1771
|
vn.Controls = an;
|
|
1770
1772
|
function Sn({
|
|
@@ -1800,7 +1802,7 @@ function wn({
|
|
|
1800
1802
|
pickable: s,
|
|
1801
1803
|
modeConfig: {
|
|
1802
1804
|
// We force distance due to conversion is addressed at feature getText level
|
|
1803
|
-
formatTooltip: (
|
|
1805
|
+
formatTooltip: (v) => v,
|
|
1804
1806
|
turfOptions: {
|
|
1805
1807
|
units: mn.meters
|
|
1806
1808
|
}
|
|
@@ -1817,8 +1819,8 @@ function wn({
|
|
|
1817
1819
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1818
1820
|
smoothing: 0.2
|
|
1819
1821
|
},
|
|
1820
|
-
getText: (
|
|
1821
|
-
meters:
|
|
1822
|
+
getText: (v) => r?.getTooltipText?.({
|
|
1823
|
+
meters: v.text,
|
|
1822
1824
|
locale: t,
|
|
1823
1825
|
unit: n,
|
|
1824
1826
|
options: l
|
|
@@ -1850,7 +1852,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1850
1852
|
distance: c = 0,
|
|
1851
1853
|
finished: h = !1,
|
|
1852
1854
|
locale: y = "en",
|
|
1853
|
-
positions:
|
|
1855
|
+
positions: v = [],
|
|
1854
1856
|
clearLayerOnStart: p = !1,
|
|
1855
1857
|
unit: b = Ie["m-km"],
|
|
1856
1858
|
enabled: m = !1
|
|
@@ -1862,7 +1864,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1862
1864
|
distance: c,
|
|
1863
1865
|
finished: h,
|
|
1864
1866
|
locale: y,
|
|
1865
|
-
positions:
|
|
1867
|
+
positions: v,
|
|
1866
1868
|
unit: b,
|
|
1867
1869
|
clearLayerOnStart: p,
|
|
1868
1870
|
enabled: m
|
|
@@ -1959,7 +1961,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1959
1961
|
}
|
|
1960
1962
|
})), Rt = He({});
|
|
1961
1963
|
function Mn(r) {
|
|
1962
|
-
const e =
|
|
1964
|
+
const e = O(5), {
|
|
1963
1965
|
children: t,
|
|
1964
1966
|
values: s
|
|
1965
1967
|
} = r;
|
|
@@ -1967,111 +1969,111 @@ function Mn(r) {
|
|
|
1967
1969
|
e[0] !== s ? (n = _n(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1968
1970
|
const [o] = ae(n);
|
|
1969
1971
|
let i;
|
|
1970
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1972
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1971
1973
|
}
|
|
1972
|
-
function
|
|
1974
|
+
function K(r) {
|
|
1973
1975
|
const e = ze(Rt);
|
|
1974
1976
|
if (!Object.keys(e).length)
|
|
1975
1977
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1976
1978
|
return Ke(e, r);
|
|
1977
1979
|
}
|
|
1978
1980
|
function Dt(r) {
|
|
1979
|
-
const e =
|
|
1981
|
+
const e = O(74), {
|
|
1980
1982
|
mapId: t
|
|
1981
1983
|
} = r;
|
|
1982
1984
|
let s;
|
|
1983
|
-
e[0] !== t ? (s = (
|
|
1984
|
-
const n =
|
|
1985
|
+
e[0] !== t ? (s = (A) => A.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1986
|
+
const n = K(s);
|
|
1985
1987
|
let o;
|
|
1986
|
-
e[2] !== t ? (o = (
|
|
1987
|
-
const i =
|
|
1988
|
+
e[2] !== t ? (o = (A) => A.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1989
|
+
const i = K(o);
|
|
1988
1990
|
let a;
|
|
1989
|
-
e[4] !== t ? (a = (
|
|
1990
|
-
const l =
|
|
1991
|
+
e[4] !== t ? (a = (A) => A.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1992
|
+
const l = K(a), c = K(Fn);
|
|
1991
1993
|
let h;
|
|
1992
|
-
e[6] !== c || e[7] !== t ? (h = (
|
|
1994
|
+
e[6] !== c || e[7] !== t ? (h = (A) => c(t, A), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1993
1995
|
const y = h;
|
|
1994
|
-
let
|
|
1995
|
-
e[9] !== t ? (
|
|
1996
|
-
const p =
|
|
1996
|
+
let v;
|
|
1997
|
+
e[9] !== t ? (v = (A) => A.measurements[t].clearLayerOnStart, e[9] = t, e[10] = v) : v = e[10];
|
|
1998
|
+
const p = K(v);
|
|
1997
1999
|
let b;
|
|
1998
|
-
e[11] !== t ? (b = (
|
|
1999
|
-
const m =
|
|
2000
|
+
e[11] !== t ? (b = (A) => A.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
2001
|
+
const m = K(b), w = K(On);
|
|
2000
2002
|
let u;
|
|
2001
|
-
e[13] !== w || e[14] !== t ? (u = (
|
|
2003
|
+
e[13] !== w || e[14] !== t ? (u = (A) => w(t, A), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
2002
2004
|
const f = u;
|
|
2003
|
-
let
|
|
2004
|
-
e[16] !== t ? (
|
|
2005
|
-
const
|
|
2005
|
+
let S;
|
|
2006
|
+
e[16] !== t ? (S = (A) => A.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
2007
|
+
const M = K(S), _ = K(Cn);
|
|
2006
2008
|
let P;
|
|
2007
|
-
e[18] !==
|
|
2008
|
-
f(
|
|
2009
|
-
}, e[18] =
|
|
2010
|
-
const
|
|
2011
|
-
let
|
|
2012
|
-
e[22] !== t ? (
|
|
2013
|
-
const
|
|
2009
|
+
e[18] !== _ || e[19] !== t || e[20] !== f ? (P = (A) => {
|
|
2010
|
+
f(!!A), _(t, A);
|
|
2011
|
+
}, e[18] = _, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
2012
|
+
const R = P;
|
|
2013
|
+
let V;
|
|
2014
|
+
e[22] !== t ? (V = (A) => A.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
|
|
2015
|
+
const D = K(V), B = K(kn);
|
|
2016
|
+
let x;
|
|
2017
|
+
e[24] !== B || e[25] !== t ? (x = (A) => B(t, A), e[24] = B, e[25] = t, e[26] = x) : x = e[26];
|
|
2018
|
+
const F = x;
|
|
2014
2019
|
let j;
|
|
2015
|
-
e[
|
|
2016
|
-
const
|
|
2017
|
-
let
|
|
2018
|
-
e[
|
|
2019
|
-
const
|
|
2020
|
-
let S;
|
|
2021
|
-
e[29] !== d || e[30] !== t ? (S = ($) => d(t, $), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
2022
|
-
const L = S;
|
|
2020
|
+
e[27] !== t ? (j = (A) => A.measurements[t].locale, e[27] = t, e[28] = j) : j = e[28];
|
|
2021
|
+
const E = K(j), d = K(Pn);
|
|
2022
|
+
let g;
|
|
2023
|
+
e[29] !== d || e[30] !== t ? (g = (A) => d(t, A), e[29] = d, e[30] = t, e[31] = g) : g = e[31];
|
|
2024
|
+
const L = g;
|
|
2023
2025
|
let C;
|
|
2024
|
-
e[32] !== t ? (C = (
|
|
2025
|
-
const k =
|
|
2026
|
-
let
|
|
2027
|
-
e[34] !==
|
|
2028
|
-
const
|
|
2029
|
-
let
|
|
2030
|
-
e[37] !== t ? (
|
|
2031
|
-
const
|
|
2032
|
-
let
|
|
2033
|
-
e[39] !== z || e[40] !== t ? (
|
|
2034
|
-
const se =
|
|
2026
|
+
e[32] !== t ? (C = (A) => A.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
2027
|
+
const k = K(C), T = K(Ln);
|
|
2028
|
+
let U;
|
|
2029
|
+
e[34] !== T || e[35] !== t ? (U = (A) => T(t, A), e[34] = T, e[35] = t, e[36] = U) : U = e[36];
|
|
2030
|
+
const N = U;
|
|
2031
|
+
let I;
|
|
2032
|
+
e[37] !== t ? (I = (A) => A.measurements[t].positions, e[37] = t, e[38] = I) : I = e[38];
|
|
2033
|
+
const $ = K(I), z = K(Tn);
|
|
2034
|
+
let G;
|
|
2035
|
+
e[39] !== z || e[40] !== t ? (G = (A) => z(t, A), e[39] = z, e[40] = t, e[41] = G) : G = e[41];
|
|
2036
|
+
const se = G;
|
|
2035
2037
|
let J;
|
|
2036
|
-
e[42] !== t ? (J = (
|
|
2037
|
-
const Y =
|
|
2038
|
+
e[42] !== t ? (J = (A) => A.measurements[t].unit, e[42] = t, e[43] = J) : J = e[43];
|
|
2039
|
+
const Y = K(J), ne = K(En);
|
|
2038
2040
|
let oe;
|
|
2039
|
-
e[44] !== ne || e[45] !== t ? (oe = (
|
|
2041
|
+
e[44] !== ne || e[45] !== t ? (oe = (A) => ne(t, A), e[44] = ne, e[45] = t, e[46] = oe) : oe = e[46];
|
|
2040
2042
|
const Fe = oe;
|
|
2041
|
-
let Se;
|
|
2042
|
-
e[47] !== k || e[48] !== se ? (Se = () => {
|
|
2043
|
-
k?.resetClickSequence(), se([]);
|
|
2044
|
-
}, e[47] = k, e[48] = se, e[49] = Se) : Se = e[49];
|
|
2045
|
-
const Ae = Se;
|
|
2046
2043
|
let we;
|
|
2047
|
-
e[
|
|
2048
|
-
|
|
2049
|
-
}, e[
|
|
2050
|
-
const
|
|
2044
|
+
e[47] !== k || e[48] !== se ? (we = () => {
|
|
2045
|
+
k?.resetClickSequence(), se([]);
|
|
2046
|
+
}, e[47] = k, e[48] = se, e[49] = we) : we = e[49];
|
|
2047
|
+
const Ae = we;
|
|
2051
2048
|
let _e;
|
|
2052
|
-
|
|
2049
|
+
e[50] !== f ? (_e = (A) => {
|
|
2050
|
+
f(A);
|
|
2051
|
+
}, e[50] = f, e[51] = _e) : _e = e[51];
|
|
2052
|
+
const Re = _e;
|
|
2053
|
+
let Me;
|
|
2054
|
+
return e[52] !== Ae || e[53] !== p || e[54] !== l || e[55] !== m || e[56] !== D || e[57] !== E || e[58] !== k || e[59] !== M || e[60] !== n || e[61] !== $ || e[62] !== y || e[63] !== f || e[64] !== F || e[65] !== L || e[66] !== N || e[67] !== R || e[68] !== se || e[69] !== Fe || e[70] !== Re || e[71] !== Y || e[72] !== i ? (Me = {
|
|
2053
2055
|
modes: n,
|
|
2054
2056
|
units: i,
|
|
2055
2057
|
distance: l,
|
|
2056
2058
|
clearLayerOnStart: p,
|
|
2057
|
-
modeSelected:
|
|
2059
|
+
modeSelected: M,
|
|
2058
2060
|
enabled: m,
|
|
2059
|
-
finished:
|
|
2060
|
-
locale:
|
|
2061
|
+
finished: D,
|
|
2062
|
+
locale: E,
|
|
2061
2063
|
modeInstance: k,
|
|
2062
|
-
positions:
|
|
2064
|
+
positions: $,
|
|
2063
2065
|
unit: Y,
|
|
2064
2066
|
setDistance: y,
|
|
2065
|
-
setModeSelected:
|
|
2066
|
-
setFinished:
|
|
2067
|
+
setModeSelected: R,
|
|
2068
|
+
setFinished: F,
|
|
2067
2069
|
setLocale: L,
|
|
2068
2070
|
setPositions: se,
|
|
2069
2071
|
setUnit: Fe,
|
|
2070
2072
|
setEnabled: f,
|
|
2071
2073
|
toggleLayer: Re,
|
|
2072
2074
|
clearLayer: Ae,
|
|
2073
|
-
setModeInstance:
|
|
2074
|
-
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] =
|
|
2075
|
+
setModeInstance: N
|
|
2076
|
+
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] = D, e[57] = E, e[58] = k, e[59] = M, e[60] = n, e[61] = $, e[62] = y, e[63] = f, e[64] = F, e[65] = L, e[66] = N, e[67] = R, e[68] = se, e[69] = Fe, e[70] = Re, e[71] = Y, e[72] = i, e[73] = Me) : Me = e[73], Me;
|
|
2075
2077
|
}
|
|
2076
2078
|
function En(r) {
|
|
2077
2079
|
return r.setUnit;
|
|
@@ -2098,7 +2100,7 @@ function Fn(r) {
|
|
|
2098
2100
|
return r.setDistance;
|
|
2099
2101
|
}
|
|
2100
2102
|
function An(r) {
|
|
2101
|
-
const e =
|
|
2103
|
+
const e = O(42), {
|
|
2102
2104
|
mapId: t,
|
|
2103
2105
|
textOptions: s,
|
|
2104
2106
|
children: n
|
|
@@ -2114,73 +2116,73 @@ function An(r) {
|
|
|
2114
2116
|
setDistance: c,
|
|
2115
2117
|
clearLayerOnStart: h,
|
|
2116
2118
|
modeSelected: y,
|
|
2117
|
-
setModeSelected:
|
|
2119
|
+
setModeSelected: v,
|
|
2118
2120
|
enabled: p,
|
|
2119
2121
|
setEnabled: b,
|
|
2120
2122
|
finished: m,
|
|
2121
2123
|
setFinished: w,
|
|
2122
2124
|
locale: u,
|
|
2123
2125
|
setLocale: f,
|
|
2124
|
-
modeInstance:
|
|
2125
|
-
setModeInstance:
|
|
2126
|
-
positions:
|
|
2126
|
+
modeInstance: S,
|
|
2127
|
+
setModeInstance: M,
|
|
2128
|
+
positions: _,
|
|
2127
2129
|
setPositions: P,
|
|
2128
|
-
unit:
|
|
2129
|
-
setUnit:
|
|
2130
|
-
clearLayer:
|
|
2131
|
-
toggleLayer:
|
|
2130
|
+
unit: R,
|
|
2131
|
+
setUnit: V,
|
|
2132
|
+
clearLayer: D,
|
|
2133
|
+
toggleLayer: B
|
|
2132
2134
|
} = Dt(o);
|
|
2133
|
-
let
|
|
2134
|
-
e[2] !== y || e[3] !== i || e[4] !==
|
|
2135
|
+
let x;
|
|
2136
|
+
e[2] !== y || e[3] !== i || e[4] !== M || e[5] !== P ? (x = () => {
|
|
2135
2137
|
if (y && i[y]) {
|
|
2136
2138
|
const L = i[y].mode;
|
|
2137
|
-
|
|
2139
|
+
M(new L());
|
|
2138
2140
|
}
|
|
2139
2141
|
return () => {
|
|
2140
2142
|
P([]);
|
|
2141
2143
|
};
|
|
2142
|
-
}, e[2] = y, e[3] = i, e[4] =
|
|
2143
|
-
let
|
|
2144
|
-
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !==
|
|
2145
|
-
let
|
|
2146
|
-
e[13] !==
|
|
2147
|
-
L && (h || !m) &&
|
|
2148
|
-
}, e[13] =
|
|
2149
|
-
const
|
|
2150
|
-
let
|
|
2151
|
-
return e[18] !== n || e[19] !==
|
|
2144
|
+
}, e[2] = y, e[3] = i, e[4] = M, e[5] = P, e[6] = x) : x = e[6];
|
|
2145
|
+
let F;
|
|
2146
|
+
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !== M || e[11] !== P ? (F = [i, y, P, M, b], e[7] = y, e[8] = i, e[9] = b, e[10] = M, e[11] = P, e[12] = F) : F = e[12], W(x, F);
|
|
2147
|
+
let j;
|
|
2148
|
+
e[13] !== B || e[14] !== D || e[15] !== h || e[16] !== m ? (j = (L) => {
|
|
2149
|
+
L && (h || !m) && D(), B(L);
|
|
2150
|
+
}, e[13] = B, e[14] = D, e[15] = h, e[16] = m, e[17] = j) : j = e[17];
|
|
2151
|
+
const E = j, d = !!h;
|
|
2152
|
+
let g;
|
|
2153
|
+
return e[18] !== n || e[19] !== D || e[20] !== l || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== S || e[26] !== y || e[27] !== i || e[28] !== _ || e[29] !== c || e[30] !== b || e[31] !== w || e[32] !== f || e[33] !== v || e[34] !== P || e[35] !== V || e[36] !== d || e[37] !== s || e[38] !== E || e[39] !== R || e[40] !== a ? (g = n({
|
|
2152
2154
|
mapId: t,
|
|
2153
2155
|
distance: l,
|
|
2154
2156
|
enabled: p,
|
|
2155
2157
|
finished: m,
|
|
2156
2158
|
locale: u,
|
|
2157
|
-
positions:
|
|
2158
|
-
unit:
|
|
2159
|
+
positions: _,
|
|
2160
|
+
unit: R,
|
|
2159
2161
|
clearLayerOnStart: d,
|
|
2160
2162
|
modeSelected: y,
|
|
2161
2163
|
modes: i,
|
|
2162
2164
|
units: a,
|
|
2163
2165
|
value: Oe({
|
|
2164
2166
|
meters: l,
|
|
2165
|
-
unit:
|
|
2167
|
+
unit: R,
|
|
2166
2168
|
locale: u,
|
|
2167
2169
|
options: s
|
|
2168
2170
|
}),
|
|
2169
|
-
modeInstance:
|
|
2170
|
-
setModeSelected:
|
|
2171
|
+
modeInstance: S,
|
|
2172
|
+
setModeSelected: v,
|
|
2171
2173
|
setDistance: c,
|
|
2172
2174
|
setFinished: w,
|
|
2173
2175
|
setLocale: f,
|
|
2174
2176
|
setPositions: P,
|
|
2175
|
-
setUnit:
|
|
2177
|
+
setUnit: V,
|
|
2176
2178
|
setEnabled: b,
|
|
2177
|
-
toggleLayer:
|
|
2178
|
-
clearLayer:
|
|
2179
|
-
}), e[18] = n, e[19] =
|
|
2179
|
+
toggleLayer: E,
|
|
2180
|
+
clearLayer: D
|
|
2181
|
+
}), e[18] = n, e[19] = D, e[20] = l, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = S, e[26] = y, e[27] = i, e[28] = _, e[29] = c, e[30] = b, e[31] = w, e[32] = f, e[33] = v, e[34] = P, e[35] = V, e[36] = d, e[37] = s, e[38] = E, e[39] = R, e[40] = a, e[41] = g) : g = e[41], g;
|
|
2180
2182
|
}
|
|
2181
2183
|
const Rn = [ce];
|
|
2182
2184
|
function Dn(r) {
|
|
2183
|
-
const e =
|
|
2185
|
+
const e = O(50), {
|
|
2184
2186
|
children: t,
|
|
2185
2187
|
mapId: s,
|
|
2186
2188
|
defaultProps: n,
|
|
@@ -2200,83 +2202,85 @@ function Dn(r) {
|
|
|
2200
2202
|
}, e[2] = s, e[3] = h) : h = e[3];
|
|
2201
2203
|
const {
|
|
2202
2204
|
setDistance: y,
|
|
2203
|
-
clearLayerOnStart:
|
|
2205
|
+
clearLayerOnStart: v,
|
|
2204
2206
|
enabled: p,
|
|
2205
2207
|
finished: b,
|
|
2206
2208
|
setFinished: m,
|
|
2207
2209
|
locale: w,
|
|
2208
2210
|
setPositions: u,
|
|
2209
2211
|
unit: f,
|
|
2210
|
-
modeInstance:
|
|
2211
|
-
} = Dt(h),
|
|
2212
|
-
let
|
|
2213
|
-
e[4] !== s ? (
|
|
2214
|
-
const
|
|
2215
|
-
let
|
|
2216
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2217
|
-
const
|
|
2218
|
-
let
|
|
2219
|
-
e[7] !== s ? (
|
|
2212
|
+
modeInstance: S
|
|
2213
|
+
} = Dt(h), M = ge(p), _ = be(Bn), P = q(Vn), R = q(Un), V = q(xn);
|
|
2214
|
+
let D;
|
|
2215
|
+
e[4] !== s ? (D = (I) => I.maps[s]?.layers.filter(qn), e[4] = s, e[5] = D) : D = e[5];
|
|
2216
|
+
const B = q(vt(D)), x = q($n);
|
|
2217
|
+
let F;
|
|
2218
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (F = {}, e[6] = F) : F = e[6];
|
|
2219
|
+
const j = ge(F);
|
|
2220
|
+
let E;
|
|
2221
|
+
e[7] !== s ? (E = {
|
|
2220
2222
|
mapId: s,
|
|
2221
2223
|
layerId: ce
|
|
2222
|
-
}, e[7] = s, e[8] =
|
|
2223
|
-
let
|
|
2224
|
-
e[9] !==
|
|
2225
|
-
const
|
|
2226
|
-
return p && (
|
|
2224
|
+
}, e[7] = s, e[8] = E) : E = e[8], Pt(E);
|
|
2225
|
+
let d;
|
|
2226
|
+
e[9] !== R || e[10] !== p || e[11] !== x || e[12] !== s || e[13] !== V || e[14] !== P ? (d = () => {
|
|
2227
|
+
const I = x(s)?.props.controller;
|
|
2228
|
+
return p && (R(s, [ce]), P(s, {
|
|
2227
2229
|
doubleClickZoom: !1
|
|
2228
2230
|
})), () => {
|
|
2229
|
-
|
|
2231
|
+
V(s, [ce]), P(s, I);
|
|
2230
2232
|
};
|
|
2231
|
-
}, e[9] =
|
|
2232
|
-
let
|
|
2233
|
-
e[16] !==
|
|
2234
|
-
let
|
|
2235
|
-
e[24] !== p || e[25] !==
|
|
2236
|
-
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2233
|
+
}, e[9] = R, e[10] = p, e[11] = x, e[12] = s, e[13] = V, e[14] = P, e[15] = d) : d = e[15];
|
|
2234
|
+
let g;
|
|
2235
|
+
e[16] !== R || e[17] !== v || e[18] !== p || e[19] !== x || e[20] !== s || e[21] !== V || e[22] !== P ? (g = [R, v, s, V, p, x, P], e[16] = R, e[17] = v, e[18] = p, e[19] = x, e[20] = s, e[21] = V, e[22] = P, e[23] = g) : g = e[23], W(d, g);
|
|
2236
|
+
let L, C;
|
|
2237
|
+
e[24] !== p || e[25] !== x || e[26] !== s || e[27] !== B || e[28] !== _ ? (L = () => {
|
|
2238
|
+
p === M.current && !M.current || B?.forEach((I) => {
|
|
2239
|
+
const $ = x(s)?.props.layers.find((G) => G.props.id === I);
|
|
2240
|
+
if (!$)
|
|
2241
|
+
return;
|
|
2242
|
+
p && (j.current[I] = $?.props.pickable);
|
|
2243
|
+
const z = !p && (j.current[I] ?? $?.props.pickable);
|
|
2244
|
+
_(I, {
|
|
2241
2245
|
props: {
|
|
2242
|
-
pickable:
|
|
2246
|
+
pickable: z
|
|
2243
2247
|
}
|
|
2244
|
-
});
|
|
2248
|
+
}), M.current = p;
|
|
2245
2249
|
});
|
|
2246
|
-
},
|
|
2247
|
-
let
|
|
2248
|
-
e[31] !==
|
|
2250
|
+
}, C = [p, x, s, B, _], e[24] = p, e[25] = x, e[26] = s, e[27] = B, e[28] = _, e[29] = L, e[30] = C) : (L = e[29], C = e[30]), W(L, C);
|
|
2251
|
+
let k;
|
|
2252
|
+
e[31] !== S || e[32] !== y || e[33] !== m || e[34] !== u ? (k = (I) => {
|
|
2249
2253
|
const {
|
|
2250
|
-
editType:
|
|
2251
|
-
editContext:
|
|
2252
|
-
} =
|
|
2253
|
-
if (
|
|
2254
|
-
|
|
2254
|
+
editType: $,
|
|
2255
|
+
editContext: z
|
|
2256
|
+
} = I;
|
|
2257
|
+
if ($ === te.cancel) {
|
|
2258
|
+
S.resetClickSequence();
|
|
2255
2259
|
return;
|
|
2256
2260
|
}
|
|
2257
|
-
|
|
2258
|
-
const
|
|
2259
|
-
|
|
2260
|
-
}, e[31] =
|
|
2261
|
-
const
|
|
2262
|
-
let
|
|
2263
|
-
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !==
|
|
2264
|
-
const
|
|
2261
|
+
$ === te.addPosition && y(z.distance), m(!!z.finished);
|
|
2262
|
+
const G = z.positions;
|
|
2263
|
+
G?.length && u(G);
|
|
2264
|
+
}, e[31] = S, e[32] = y, e[33] = m, e[34] = u, e[35] = k) : k = e[35];
|
|
2265
|
+
const T = k;
|
|
2266
|
+
let U, N;
|
|
2267
|
+
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !== S || e[41] !== T || e[42] !== _ || e[43] !== c.colors.editing || e[44] !== c.colors.finished || e[45] !== c.colors.point || e[46] !== i || e[47] !== f ? (U = () => {
|
|
2268
|
+
const I = b ? c.colors.finished : c.colors.editing, $ = b ? c.colors.finished : c.colors.point, z = Sn({
|
|
2265
2269
|
layerProps: {
|
|
2266
2270
|
...o,
|
|
2267
2271
|
pickable: o?.pickable ?? !b
|
|
2268
2272
|
},
|
|
2269
2273
|
enabled: p,
|
|
2270
|
-
guideColor:
|
|
2271
|
-
pointColor:
|
|
2274
|
+
guideColor: I,
|
|
2275
|
+
pointColor: $,
|
|
2272
2276
|
locale: w,
|
|
2273
|
-
onEdit:
|
|
2277
|
+
onEdit: T,
|
|
2274
2278
|
unit: f,
|
|
2275
|
-
mode:
|
|
2279
|
+
mode: S,
|
|
2276
2280
|
textOptions: i
|
|
2277
2281
|
});
|
|
2278
|
-
_(ce,
|
|
2279
|
-
},
|
|
2282
|
+
_(ce, z);
|
|
2283
|
+
}, N = [b, S, o, w, T, _, c.colors.editing, c.colors.finished, c.colors.point, i, f, p], e[36] = p, e[37] = b, e[38] = o, e[39] = w, e[40] = S, e[41] = T, e[42] = _, e[43] = c.colors.editing, e[44] = c.colors.finished, e[45] = c.colors.point, e[46] = i, e[47] = f, e[48] = U, e[49] = N) : (U = e[48], N = e[49]), W(U, N), t;
|
|
2280
2284
|
}
|
|
2281
2285
|
function $n(r) {
|
|
2282
2286
|
return r.getDeckInstance;
|
|
@@ -2298,14 +2302,14 @@ function Bn(r) {
|
|
|
2298
2302
|
}
|
|
2299
2303
|
Dn.Controls = An;
|
|
2300
2304
|
function jn(r) {
|
|
2301
|
-
const e =
|
|
2305
|
+
const e = O(7), {
|
|
2302
2306
|
mapId: t
|
|
2303
2307
|
} = r;
|
|
2304
2308
|
let s;
|
|
2305
2309
|
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2306
2310
|
const {
|
|
2307
2311
|
layers: n
|
|
2308
|
-
} =
|
|
2312
|
+
} = q(s), o = be(Nn);
|
|
2309
2313
|
let i;
|
|
2310
2314
|
if (e[2] !== o || e[3] !== n) {
|
|
2311
2315
|
let l;
|
|
@@ -2327,7 +2331,7 @@ function $t(r) {
|
|
|
2327
2331
|
}
|
|
2328
2332
|
const Hn = 200;
|
|
2329
2333
|
function go(r) {
|
|
2330
|
-
const e =
|
|
2334
|
+
const e = O(51);
|
|
2331
2335
|
let t, s, n, o;
|
|
2332
2336
|
e[0] !== r ? ({
|
|
2333
2337
|
id: t,
|
|
@@ -2336,59 +2340,59 @@ function go(r) {
|
|
|
2336
2340
|
...o
|
|
2337
2341
|
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
|
|
2338
2342
|
let i;
|
|
2339
|
-
e[5] !== t ? (i = (
|
|
2340
|
-
const a =
|
|
2343
|
+
e[5] !== t ? (i = (T) => T.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2344
|
+
const a = q(i);
|
|
2341
2345
|
let l;
|
|
2342
|
-
e[7] !== t ? (l = (
|
|
2343
|
-
const c =
|
|
2346
|
+
e[7] !== t ? (l = (T) => T.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2347
|
+
const c = q(l);
|
|
2344
2348
|
let h;
|
|
2345
|
-
e[9] !== t ? (h = (
|
|
2346
|
-
const y =
|
|
2349
|
+
e[9] !== t ? (h = (T) => T.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
|
|
2350
|
+
const y = q(h), v = ge(null);
|
|
2347
2351
|
let p;
|
|
2348
|
-
e[11] !== t ? (p = (
|
|
2349
|
-
const b =
|
|
2352
|
+
e[11] !== t ? (p = (T) => T.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2353
|
+
const b = q(p);
|
|
2350
2354
|
let m;
|
|
2351
|
-
e[13] !== t ? (m = (
|
|
2352
|
-
const w =
|
|
2355
|
+
e[13] !== t ? (m = (T) => T.maps[t].controller, e[13] = t, e[14] = m) : m = e[14];
|
|
2356
|
+
const w = q(m), u = q(Wn), f = q(Qn), S = q(Zn), M = q(Kn), _ = q(Gn);
|
|
2353
2357
|
let P;
|
|
2354
2358
|
e[15] !== t ? (P = {
|
|
2355
2359
|
mapId: t
|
|
2356
2360
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2357
|
-
const
|
|
2358
|
-
let
|
|
2359
|
-
e[17] !==
|
|
2360
|
-
const
|
|
2361
|
-
let
|
|
2362
|
-
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !==
|
|
2363
|
-
const
|
|
2364
|
-
if (
|
|
2365
|
-
|
|
2361
|
+
const R = jn(P);
|
|
2362
|
+
let V;
|
|
2363
|
+
e[17] !== R ? (V = $t(R), e[17] = R, e[18] = V) : V = e[18];
|
|
2364
|
+
const D = V;
|
|
2365
|
+
let B;
|
|
2366
|
+
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== _ ? (B = (T) => {
|
|
2367
|
+
const U = f;
|
|
2368
|
+
if (v.current && clearInterval(v.current), v.current = setTimeout(() => {
|
|
2369
|
+
_(t);
|
|
2366
2370
|
}, Hn), n) {
|
|
2367
|
-
n(
|
|
2371
|
+
n(T, U);
|
|
2368
2372
|
return;
|
|
2369
2373
|
}
|
|
2370
|
-
|
|
2371
|
-
}, e[19] = t, e[20] = n, e[21] = f, e[22] =
|
|
2372
|
-
const
|
|
2373
|
-
let
|
|
2374
|
-
e[24] !== t || e[25] !== s || e[26] !==
|
|
2375
|
-
|
|
2376
|
-
}, e[24] = t, e[25] = s, e[26] =
|
|
2377
|
-
const
|
|
2378
|
-
let
|
|
2379
|
-
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !==
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
}, e[29] = u, e[30] = t, e[31] = o, e[32] =
|
|
2383
|
-
const d =
|
|
2374
|
+
U(t, T.viewState);
|
|
2375
|
+
}, e[19] = t, e[20] = n, e[21] = f, e[22] = _, e[23] = B) : B = e[23];
|
|
2376
|
+
const x = B;
|
|
2377
|
+
let F;
|
|
2378
|
+
e[24] !== t || e[25] !== s || e[26] !== S || e[27] !== _ ? (F = (T) => {
|
|
2379
|
+
S(t, T), s?.(T), _(t);
|
|
2380
|
+
}, e[24] = t, e[25] = s, e[26] = S, e[27] = _, e[28] = F) : F = e[28];
|
|
2381
|
+
const j = F;
|
|
2382
|
+
let E;
|
|
2383
|
+
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== M ? (E = (T) => {
|
|
2384
|
+
const N = !!u(t)?.props.layers?.every(zn);
|
|
2385
|
+
M(t, N), o.onAfterRender?.(T);
|
|
2386
|
+
}, e[29] = u, e[30] = t, e[31] = o, e[32] = M, e[33] = E) : E = e[33];
|
|
2387
|
+
const d = E, g = o.onDragEnd;
|
|
2384
2388
|
let L;
|
|
2385
|
-
e[34] !==
|
|
2386
|
-
const
|
|
2387
|
-
|
|
2388
|
-
}, e[34] =
|
|
2389
|
+
e[34] !== g || e[35] !== t || e[36] !== _ ? (L = (...T) => {
|
|
2390
|
+
const U = T;
|
|
2391
|
+
_(t), g && g(...U);
|
|
2392
|
+
}, e[34] = g, e[35] = t, e[36] = _, e[37] = L) : L = e[37];
|
|
2389
2393
|
const C = L;
|
|
2390
2394
|
let k;
|
|
2391
|
-
return e[38] !== a || e[39] !==
|
|
2395
|
+
return e[38] !== a || e[39] !== D || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== j || e[44] !== x || e[45] !== t || e[46] !== c || e[47] !== y || e[48] !== o || e[49] !== b ? (k = /* @__PURE__ */ Z(qs, { ...o, controller: w, id: t, layers: D, instanceRef: c, overlayRef: y, basemap: a, initialViewState: b, onLoad: j, onViewStateChange: x, onAfterRender: d, onDragEnd: C }), e[38] = a, e[39] = D, e[40] = w, e[41] = d, e[42] = C, e[43] = j, e[44] = x, e[45] = t, e[46] = c, e[47] = y, e[48] = o, e[49] = b, e[50] = k) : k = e[50], k;
|
|
2392
2396
|
}
|
|
2393
2397
|
function zn(r) {
|
|
2394
2398
|
return r?.isLoaded;
|
|
@@ -2408,10 +2412,10 @@ function Qn(r) {
|
|
|
2408
2412
|
function Wn(r) {
|
|
2409
2413
|
return r.getDeckInstance;
|
|
2410
2414
|
}
|
|
2411
|
-
var
|
|
2415
|
+
var Le = { exports: {} }, ut;
|
|
2412
2416
|
function Yn() {
|
|
2413
2417
|
return ut || (ut = 1, (function(r, e) {
|
|
2414
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2418
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, s = (function() {
|
|
2415
2419
|
function o() {
|
|
2416
2420
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2417
2421
|
}
|
|
@@ -2420,7 +2424,7 @@ function Yn() {
|
|
|
2420
2424
|
(function(o) {
|
|
2421
2425
|
(function(i) {
|
|
2422
2426
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2423
|
-
typeof
|
|
2427
|
+
typeof Ee < "u" && Ee || {}, l = {
|
|
2424
2428
|
searchParams: "URLSearchParams" in a,
|
|
2425
2429
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2426
2430
|
blob: "FileReader" in a && "Blob" in a && (function() {
|
|
@@ -2450,7 +2454,7 @@ function Yn() {
|
|
|
2450
2454
|
], y = ArrayBuffer.isView || function(d) {
|
|
2451
2455
|
return d && h.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2452
2456
|
};
|
|
2453
|
-
function
|
|
2457
|
+
function v(d) {
|
|
2454
2458
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
2455
2459
|
throw new TypeError('Invalid character in header field name: "' + d + '"');
|
|
2456
2460
|
return d.toLowerCase();
|
|
@@ -2459,56 +2463,56 @@ function Yn() {
|
|
|
2459
2463
|
return typeof d != "string" && (d = String(d)), d;
|
|
2460
2464
|
}
|
|
2461
2465
|
function b(d) {
|
|
2462
|
-
var
|
|
2466
|
+
var g = {
|
|
2463
2467
|
next: function() {
|
|
2464
2468
|
var L = d.shift();
|
|
2465
2469
|
return { done: L === void 0, value: L };
|
|
2466
2470
|
}
|
|
2467
2471
|
};
|
|
2468
|
-
return l.iterable && (
|
|
2469
|
-
return
|
|
2470
|
-
}),
|
|
2472
|
+
return l.iterable && (g[Symbol.iterator] = function() {
|
|
2473
|
+
return g;
|
|
2474
|
+
}), g;
|
|
2471
2475
|
}
|
|
2472
2476
|
function m(d) {
|
|
2473
|
-
this.map = {}, d instanceof m ? d.forEach(function(
|
|
2474
|
-
this.append(L,
|
|
2475
|
-
}, this) : Array.isArray(d) ? d.forEach(function(
|
|
2476
|
-
if (
|
|
2477
|
-
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" +
|
|
2478
|
-
this.append(
|
|
2479
|
-
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(
|
|
2480
|
-
this.append(
|
|
2477
|
+
this.map = {}, d instanceof m ? d.forEach(function(g, L) {
|
|
2478
|
+
this.append(L, g);
|
|
2479
|
+
}, this) : Array.isArray(d) ? d.forEach(function(g) {
|
|
2480
|
+
if (g.length != 2)
|
|
2481
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + g.length);
|
|
2482
|
+
this.append(g[0], g[1]);
|
|
2483
|
+
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(g) {
|
|
2484
|
+
this.append(g, d[g]);
|
|
2481
2485
|
}, this);
|
|
2482
2486
|
}
|
|
2483
|
-
m.prototype.append = function(d,
|
|
2484
|
-
d =
|
|
2487
|
+
m.prototype.append = function(d, g) {
|
|
2488
|
+
d = v(d), g = p(g);
|
|
2485
2489
|
var L = this.map[d];
|
|
2486
|
-
this.map[d] = L ? L + ", " +
|
|
2490
|
+
this.map[d] = L ? L + ", " + g : g;
|
|
2487
2491
|
}, m.prototype.delete = function(d) {
|
|
2488
|
-
delete this.map[
|
|
2492
|
+
delete this.map[v(d)];
|
|
2489
2493
|
}, m.prototype.get = function(d) {
|
|
2490
|
-
return d =
|
|
2494
|
+
return d = v(d), this.has(d) ? this.map[d] : null;
|
|
2491
2495
|
}, m.prototype.has = function(d) {
|
|
2492
|
-
return this.map.hasOwnProperty(
|
|
2493
|
-
}, m.prototype.set = function(d,
|
|
2494
|
-
this.map[
|
|
2495
|
-
}, m.prototype.forEach = function(d,
|
|
2496
|
+
return this.map.hasOwnProperty(v(d));
|
|
2497
|
+
}, m.prototype.set = function(d, g) {
|
|
2498
|
+
this.map[v(d)] = p(g);
|
|
2499
|
+
}, m.prototype.forEach = function(d, g) {
|
|
2496
2500
|
for (var L in this.map)
|
|
2497
|
-
this.map.hasOwnProperty(L) && d.call(
|
|
2501
|
+
this.map.hasOwnProperty(L) && d.call(g, this.map[L], L, this);
|
|
2498
2502
|
}, m.prototype.keys = function() {
|
|
2499
2503
|
var d = [];
|
|
2500
|
-
return this.forEach(function(
|
|
2504
|
+
return this.forEach(function(g, L) {
|
|
2501
2505
|
d.push(L);
|
|
2502
2506
|
}), b(d);
|
|
2503
2507
|
}, m.prototype.values = function() {
|
|
2504
2508
|
var d = [];
|
|
2505
|
-
return this.forEach(function(
|
|
2506
|
-
d.push(
|
|
2509
|
+
return this.forEach(function(g) {
|
|
2510
|
+
d.push(g);
|
|
2507
2511
|
}), b(d);
|
|
2508
2512
|
}, m.prototype.entries = function() {
|
|
2509
2513
|
var d = [];
|
|
2510
|
-
return this.forEach(function(
|
|
2511
|
-
d.push([L,
|
|
2514
|
+
return this.forEach(function(g, L) {
|
|
2515
|
+
d.push([L, g]);
|
|
2512
2516
|
}), b(d);
|
|
2513
2517
|
}, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
|
|
2514
2518
|
function w(d) {
|
|
@@ -2519,36 +2523,36 @@ function Yn() {
|
|
|
2519
2523
|
}
|
|
2520
2524
|
}
|
|
2521
2525
|
function u(d) {
|
|
2522
|
-
return new Promise(function(
|
|
2526
|
+
return new Promise(function(g, L) {
|
|
2523
2527
|
d.onload = function() {
|
|
2524
|
-
|
|
2528
|
+
g(d.result);
|
|
2525
2529
|
}, d.onerror = function() {
|
|
2526
2530
|
L(d.error);
|
|
2527
2531
|
};
|
|
2528
2532
|
});
|
|
2529
2533
|
}
|
|
2530
2534
|
function f(d) {
|
|
2531
|
-
var
|
|
2532
|
-
return
|
|
2535
|
+
var g = new FileReader(), L = u(g);
|
|
2536
|
+
return g.readAsArrayBuffer(d), L;
|
|
2533
2537
|
}
|
|
2534
|
-
function
|
|
2535
|
-
var
|
|
2536
|
-
return
|
|
2538
|
+
function S(d) {
|
|
2539
|
+
var g = new FileReader(), L = u(g), C = /charset=([A-Za-z0-9_-]+)/.exec(d.type), k = C ? C[1] : "utf-8";
|
|
2540
|
+
return g.readAsText(d, k), L;
|
|
2537
2541
|
}
|
|
2538
|
-
function
|
|
2539
|
-
for (var
|
|
2540
|
-
L[C] = String.fromCharCode(
|
|
2542
|
+
function M(d) {
|
|
2543
|
+
for (var g = new Uint8Array(d), L = new Array(g.length), C = 0; C < g.length; C++)
|
|
2544
|
+
L[C] = String.fromCharCode(g[C]);
|
|
2541
2545
|
return L.join("");
|
|
2542
2546
|
}
|
|
2543
|
-
function
|
|
2547
|
+
function _(d) {
|
|
2544
2548
|
if (d.slice)
|
|
2545
2549
|
return d.slice(0);
|
|
2546
|
-
var
|
|
2547
|
-
return
|
|
2550
|
+
var g = new Uint8Array(d.byteLength);
|
|
2551
|
+
return g.set(new Uint8Array(d)), g.buffer;
|
|
2548
2552
|
}
|
|
2549
2553
|
function P() {
|
|
2550
2554
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2551
|
-
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 =
|
|
2555
|
+
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 = _(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || y(d)) ? this._bodyArrayBuffer = _(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"));
|
|
2552
2556
|
}, l.blob && (this.blob = function() {
|
|
2553
2557
|
var d = w(this);
|
|
2554
2558
|
if (d)
|
|
@@ -2579,42 +2583,42 @@ function Yn() {
|
|
|
2579
2583
|
if (d)
|
|
2580
2584
|
return d;
|
|
2581
2585
|
if (this._bodyBlob)
|
|
2582
|
-
return
|
|
2586
|
+
return S(this._bodyBlob);
|
|
2583
2587
|
if (this._bodyArrayBuffer)
|
|
2584
|
-
return Promise.resolve(
|
|
2588
|
+
return Promise.resolve(M(this._bodyArrayBuffer));
|
|
2585
2589
|
if (this._bodyFormData)
|
|
2586
2590
|
throw new Error("could not read FormData body as text");
|
|
2587
2591
|
return Promise.resolve(this._bodyText);
|
|
2588
2592
|
}, l.formData && (this.formData = function() {
|
|
2589
|
-
return this.text().then(
|
|
2593
|
+
return this.text().then(B);
|
|
2590
2594
|
}), this.json = function() {
|
|
2591
2595
|
return this.text().then(JSON.parse);
|
|
2592
2596
|
}, this;
|
|
2593
2597
|
}
|
|
2594
|
-
var
|
|
2595
|
-
function
|
|
2596
|
-
var
|
|
2597
|
-
return
|
|
2598
|
+
var R = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2599
|
+
function V(d) {
|
|
2600
|
+
var g = d.toUpperCase();
|
|
2601
|
+
return R.indexOf(g) > -1 ? g : d;
|
|
2598
2602
|
}
|
|
2599
|
-
function
|
|
2600
|
-
if (!(this instanceof
|
|
2603
|
+
function D(d, g) {
|
|
2604
|
+
if (!(this instanceof D))
|
|
2601
2605
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2602
|
-
|
|
2603
|
-
var L =
|
|
2604
|
-
if (d instanceof
|
|
2606
|
+
g = g || {};
|
|
2607
|
+
var L = g.body;
|
|
2608
|
+
if (d instanceof D) {
|
|
2605
2609
|
if (d.bodyUsed)
|
|
2606
2610
|
throw new TypeError("Already read");
|
|
2607
|
-
this.url = d.url, this.credentials = d.credentials,
|
|
2611
|
+
this.url = d.url, this.credentials = d.credentials, g.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !L && d._bodyInit != null && (L = d._bodyInit, d.bodyUsed = !0);
|
|
2608
2612
|
} else
|
|
2609
2613
|
this.url = String(d);
|
|
2610
|
-
if (this.credentials =
|
|
2614
|
+
if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new m(g.headers)), this.method = V(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal || (function() {
|
|
2611
2615
|
if ("AbortController" in a) {
|
|
2612
|
-
var
|
|
2613
|
-
return
|
|
2616
|
+
var T = new AbortController();
|
|
2617
|
+
return T.signal;
|
|
2614
2618
|
}
|
|
2615
2619
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && L)
|
|
2616
2620
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2617
|
-
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (
|
|
2621
|
+
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (g.cache === "no-store" || g.cache === "no-cache")) {
|
|
2618
2622
|
var C = /([?&])_=[^&]*/;
|
|
2619
2623
|
if (C.test(this.url))
|
|
2620
2624
|
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2624,130 +2628,130 @@ function Yn() {
|
|
|
2624
2628
|
}
|
|
2625
2629
|
}
|
|
2626
2630
|
}
|
|
2627
|
-
|
|
2628
|
-
return new
|
|
2631
|
+
D.prototype.clone = function() {
|
|
2632
|
+
return new D(this, { body: this._bodyInit });
|
|
2629
2633
|
};
|
|
2630
|
-
function
|
|
2631
|
-
var
|
|
2634
|
+
function B(d) {
|
|
2635
|
+
var g = new FormData();
|
|
2632
2636
|
return d.trim().split("&").forEach(function(L) {
|
|
2633
2637
|
if (L) {
|
|
2634
|
-
var C = L.split("="), k = C.shift().replace(/\+/g, " "),
|
|
2635
|
-
|
|
2638
|
+
var C = L.split("="), k = C.shift().replace(/\+/g, " "), T = C.join("=").replace(/\+/g, " ");
|
|
2639
|
+
g.append(decodeURIComponent(k), decodeURIComponent(T));
|
|
2636
2640
|
}
|
|
2637
|
-
}),
|
|
2641
|
+
}), g;
|
|
2638
2642
|
}
|
|
2639
|
-
function
|
|
2640
|
-
var
|
|
2643
|
+
function x(d) {
|
|
2644
|
+
var g = new m(), L = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2641
2645
|
return L.split("\r").map(function(C) {
|
|
2642
2646
|
return C.indexOf(`
|
|
2643
2647
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
2644
2648
|
}).forEach(function(C) {
|
|
2645
|
-
var k = C.split(":"),
|
|
2646
|
-
if (
|
|
2647
|
-
var
|
|
2649
|
+
var k = C.split(":"), T = k.shift().trim();
|
|
2650
|
+
if (T) {
|
|
2651
|
+
var U = k.join(":").trim();
|
|
2648
2652
|
try {
|
|
2649
|
-
|
|
2650
|
-
} catch (
|
|
2651
|
-
console.warn("Response " +
|
|
2653
|
+
g.append(T, U);
|
|
2654
|
+
} catch (N) {
|
|
2655
|
+
console.warn("Response " + N.message);
|
|
2652
2656
|
}
|
|
2653
2657
|
}
|
|
2654
|
-
}),
|
|
2658
|
+
}), g;
|
|
2655
2659
|
}
|
|
2656
|
-
P.call(
|
|
2657
|
-
function
|
|
2658
|
-
if (!(this instanceof
|
|
2660
|
+
P.call(D.prototype);
|
|
2661
|
+
function F(d, g) {
|
|
2662
|
+
if (!(this instanceof F))
|
|
2659
2663
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2660
|
-
if (
|
|
2664
|
+
if (g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.status < 200 || this.status > 599)
|
|
2661
2665
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2662
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText =
|
|
2666
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = g.statusText === void 0 ? "" : "" + g.statusText, this.headers = new m(g.headers), this.url = g.url || "", this._initBody(d);
|
|
2663
2667
|
}
|
|
2664
|
-
P.call(
|
|
2665
|
-
return new
|
|
2668
|
+
P.call(F.prototype), F.prototype.clone = function() {
|
|
2669
|
+
return new F(this._bodyInit, {
|
|
2666
2670
|
status: this.status,
|
|
2667
2671
|
statusText: this.statusText,
|
|
2668
2672
|
headers: new m(this.headers),
|
|
2669
2673
|
url: this.url
|
|
2670
2674
|
});
|
|
2671
|
-
},
|
|
2672
|
-
var d = new
|
|
2675
|
+
}, F.error = function() {
|
|
2676
|
+
var d = new F(null, { status: 200, statusText: "" });
|
|
2673
2677
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2674
2678
|
};
|
|
2675
|
-
var
|
|
2676
|
-
|
|
2677
|
-
if (
|
|
2679
|
+
var j = [301, 302, 303, 307, 308];
|
|
2680
|
+
F.redirect = function(d, g) {
|
|
2681
|
+
if (j.indexOf(g) === -1)
|
|
2678
2682
|
throw new RangeError("Invalid status code");
|
|
2679
|
-
return new
|
|
2683
|
+
return new F(null, { status: g, headers: { location: d } });
|
|
2680
2684
|
}, i.DOMException = a.DOMException;
|
|
2681
2685
|
try {
|
|
2682
2686
|
new i.DOMException();
|
|
2683
2687
|
} catch {
|
|
2684
|
-
i.DOMException = function(
|
|
2685
|
-
this.message =
|
|
2686
|
-
var C = Error(
|
|
2688
|
+
i.DOMException = function(g, L) {
|
|
2689
|
+
this.message = g, this.name = L;
|
|
2690
|
+
var C = Error(g);
|
|
2687
2691
|
this.stack = C.stack;
|
|
2688
2692
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2689
2693
|
}
|
|
2690
|
-
function
|
|
2694
|
+
function E(d, g) {
|
|
2691
2695
|
return new Promise(function(L, C) {
|
|
2692
|
-
var k = new
|
|
2696
|
+
var k = new D(d, g);
|
|
2693
2697
|
if (k.signal && k.signal.aborted)
|
|
2694
2698
|
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2695
|
-
var
|
|
2696
|
-
function
|
|
2697
|
-
|
|
2699
|
+
var T = new XMLHttpRequest();
|
|
2700
|
+
function U() {
|
|
2701
|
+
T.abort();
|
|
2698
2702
|
}
|
|
2699
|
-
|
|
2700
|
-
var
|
|
2701
|
-
statusText:
|
|
2702
|
-
headers:
|
|
2703
|
+
T.onload = function() {
|
|
2704
|
+
var $ = {
|
|
2705
|
+
statusText: T.statusText,
|
|
2706
|
+
headers: x(T.getAllResponseHeaders() || "")
|
|
2703
2707
|
};
|
|
2704
|
-
k.url.indexOf("file://") === 0 && (
|
|
2705
|
-
var z = "response" in
|
|
2708
|
+
k.url.indexOf("file://") === 0 && (T.status < 200 || T.status > 599) ? $.status = 200 : $.status = T.status, $.url = "responseURL" in T ? T.responseURL : $.headers.get("X-Request-URL");
|
|
2709
|
+
var z = "response" in T ? T.response : T.responseText;
|
|
2706
2710
|
setTimeout(function() {
|
|
2707
|
-
L(new
|
|
2711
|
+
L(new F(z, $));
|
|
2708
2712
|
}, 0);
|
|
2709
|
-
},
|
|
2713
|
+
}, T.onerror = function() {
|
|
2710
2714
|
setTimeout(function() {
|
|
2711
2715
|
C(new TypeError("Network request failed"));
|
|
2712
2716
|
}, 0);
|
|
2713
|
-
},
|
|
2717
|
+
}, T.ontimeout = function() {
|
|
2714
2718
|
setTimeout(function() {
|
|
2715
2719
|
C(new TypeError("Network request timed out"));
|
|
2716
2720
|
}, 0);
|
|
2717
|
-
},
|
|
2721
|
+
}, T.onabort = function() {
|
|
2718
2722
|
setTimeout(function() {
|
|
2719
2723
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2720
2724
|
}, 0);
|
|
2721
2725
|
};
|
|
2722
|
-
function
|
|
2726
|
+
function N($) {
|
|
2723
2727
|
try {
|
|
2724
|
-
return
|
|
2728
|
+
return $ === "" && a.location.href ? a.location.href : $;
|
|
2725
2729
|
} catch {
|
|
2726
|
-
return
|
|
2730
|
+
return $;
|
|
2727
2731
|
}
|
|
2728
2732
|
}
|
|
2729
|
-
if (
|
|
2730
|
-
var
|
|
2731
|
-
Object.getOwnPropertyNames(
|
|
2732
|
-
|
|
2733
|
-
}), k.headers.forEach(function(
|
|
2734
|
-
|
|
2733
|
+
if (T.open(k.method, N(k.url), !0), k.credentials === "include" ? T.withCredentials = !0 : k.credentials === "omit" && (T.withCredentials = !1), "responseType" in T && (l.blob ? T.responseType = "blob" : l.arrayBuffer && (T.responseType = "arraybuffer")), g && typeof g.headers == "object" && !(g.headers instanceof m || a.Headers && g.headers instanceof a.Headers)) {
|
|
2734
|
+
var I = [];
|
|
2735
|
+
Object.getOwnPropertyNames(g.headers).forEach(function($) {
|
|
2736
|
+
I.push(v($)), T.setRequestHeader($, p(g.headers[$]));
|
|
2737
|
+
}), k.headers.forEach(function($, z) {
|
|
2738
|
+
I.indexOf(z) === -1 && T.setRequestHeader(z, $);
|
|
2735
2739
|
});
|
|
2736
2740
|
} else
|
|
2737
|
-
k.headers.forEach(function(
|
|
2738
|
-
|
|
2741
|
+
k.headers.forEach(function($, z) {
|
|
2742
|
+
T.setRequestHeader(z, $);
|
|
2739
2743
|
});
|
|
2740
|
-
k.signal && (k.signal.addEventListener("abort",
|
|
2741
|
-
|
|
2742
|
-
}),
|
|
2744
|
+
k.signal && (k.signal.addEventListener("abort", U), T.onreadystatechange = function() {
|
|
2745
|
+
T.readyState === 4 && k.signal.removeEventListener("abort", U);
|
|
2746
|
+
}), T.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2743
2747
|
});
|
|
2744
2748
|
}
|
|
2745
|
-
return
|
|
2749
|
+
return E.polyfill = !0, a.fetch || (a.fetch = E, a.Headers = m, a.Request = D, a.Response = F), i.Headers = m, i.Request = D, i.Response = F, i.fetch = E, i;
|
|
2746
2750
|
})({});
|
|
2747
2751
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2748
2752
|
var n = t.fetch ? t : s;
|
|
2749
2753
|
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;
|
|
2750
|
-
})(
|
|
2754
|
+
})(Le, Le.exports)), Le.exports;
|
|
2751
2755
|
}
|
|
2752
2756
|
var Jn = Yn();
|
|
2753
2757
|
const Xn = /* @__PURE__ */ Et(Jn), Ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", er = "ps", he = {
|
|
@@ -2792,15 +2796,15 @@ function rr() {
|
|
|
2792
2796
|
function a(u, f) {
|
|
2793
2797
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
2794
2798
|
}
|
|
2795
|
-
function l(u, f,
|
|
2796
|
-
return u.concat(f).map(function(
|
|
2797
|
-
return a(
|
|
2799
|
+
function l(u, f, S) {
|
|
2800
|
+
return u.concat(f).map(function(M) {
|
|
2801
|
+
return a(M, S);
|
|
2798
2802
|
});
|
|
2799
2803
|
}
|
|
2800
2804
|
function c(u, f) {
|
|
2801
2805
|
if (!f.customMerge) return m;
|
|
2802
|
-
var
|
|
2803
|
-
return typeof
|
|
2806
|
+
var S = f.customMerge(u);
|
|
2807
|
+
return typeof S == "function" ? S : m;
|
|
2804
2808
|
}
|
|
2805
2809
|
function h(u) {
|
|
2806
2810
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -2810,7 +2814,7 @@ function rr() {
|
|
|
2810
2814
|
function y(u) {
|
|
2811
2815
|
return Object.keys(u).concat(h(u));
|
|
2812
2816
|
}
|
|
2813
|
-
function
|
|
2817
|
+
function v(u, f) {
|
|
2814
2818
|
try {
|
|
2815
2819
|
return f in u;
|
|
2816
2820
|
} catch {
|
|
@@ -2818,25 +2822,25 @@ function rr() {
|
|
|
2818
2822
|
}
|
|
2819
2823
|
}
|
|
2820
2824
|
function p(u, f) {
|
|
2821
|
-
return
|
|
2825
|
+
return v(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
2822
2826
|
}
|
|
2823
|
-
function b(u, f,
|
|
2824
|
-
var
|
|
2825
|
-
return
|
|
2826
|
-
_
|
|
2827
|
-
}), y(f).forEach(function(
|
|
2828
|
-
p(u,
|
|
2829
|
-
}),
|
|
2827
|
+
function b(u, f, S) {
|
|
2828
|
+
var M = {};
|
|
2829
|
+
return S.isMergeableObject(u) && y(u).forEach(function(_) {
|
|
2830
|
+
M[_] = a(u[_], S);
|
|
2831
|
+
}), y(f).forEach(function(_) {
|
|
2832
|
+
p(u, _) || (v(u, _) && S.isMergeableObject(f[_]) ? M[_] = c(_, S)(u[_], f[_], S) : M[_] = a(f[_], S));
|
|
2833
|
+
}), M;
|
|
2830
2834
|
}
|
|
2831
|
-
function m(u, f,
|
|
2832
|
-
|
|
2833
|
-
var
|
|
2834
|
-
return P ?
|
|
2835
|
+
function m(u, f, S) {
|
|
2836
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2837
|
+
var M = Array.isArray(f), _ = Array.isArray(u), P = M === _;
|
|
2838
|
+
return P ? M ? S.arrayMerge(u, f, S) : b(u, f, S) : a(f, S);
|
|
2835
2839
|
}
|
|
2836
2840
|
m.all = function(u, f) {
|
|
2837
2841
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2838
|
-
return u.reduce(function(
|
|
2839
|
-
return m(
|
|
2842
|
+
return u.reduce(function(S, M) {
|
|
2843
|
+
return m(S, M, f);
|
|
2840
2844
|
}, {});
|
|
2841
2845
|
};
|
|
2842
2846
|
var w = m;
|
|
@@ -2906,14 +2910,14 @@ async function qt({
|
|
|
2906
2910
|
params: o
|
|
2907
2911
|
}), h = e, y = n;
|
|
2908
2912
|
n === he.get && c.length > a && (h = o, y = he.post, c = i);
|
|
2909
|
-
const
|
|
2913
|
+
const v = ar({
|
|
2910
2914
|
body: h,
|
|
2911
2915
|
accessToken: t ?? s?.accessToken,
|
|
2912
2916
|
method: y,
|
|
2913
2917
|
...l
|
|
2914
2918
|
});
|
|
2915
|
-
r && (
|
|
2916
|
-
const p = await Xn(c,
|
|
2919
|
+
r && (v.signal = r);
|
|
2920
|
+
const p = await Xn(c, v);
|
|
2917
2921
|
if (!p.ok) {
|
|
2918
2922
|
const b = await p.text();
|
|
2919
2923
|
throw new Error(b);
|
|
@@ -2998,17 +3002,17 @@ const ke = ht()(ws((r, e) => ({
|
|
|
2998
3002
|
}
|
|
2999
3003
|
})));
|
|
3000
3004
|
function cr(r) {
|
|
3001
|
-
const e =
|
|
3005
|
+
const e = O(2);
|
|
3002
3006
|
let t;
|
|
3003
3007
|
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3004
3008
|
}
|
|
3005
3009
|
function ur(r) {
|
|
3006
|
-
const e =
|
|
3010
|
+
const e = O(2);
|
|
3007
3011
|
let t;
|
|
3008
3012
|
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3009
3013
|
}
|
|
3010
3014
|
function bo(r) {
|
|
3011
|
-
const e =
|
|
3015
|
+
const e = O(9);
|
|
3012
3016
|
let t;
|
|
3013
3017
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
3014
3018
|
const s = ke(t);
|
|
@@ -3099,7 +3103,7 @@ function fr({
|
|
|
3099
3103
|
return o?.();
|
|
3100
3104
|
}
|
|
3101
3105
|
function pr(r, e) {
|
|
3102
|
-
const t =
|
|
3106
|
+
const t = O(3), s = ur(r);
|
|
3103
3107
|
let n;
|
|
3104
3108
|
e: {
|
|
3105
3109
|
if (!e?.length) {
|
|
@@ -3134,7 +3138,7 @@ function gr(r) {
|
|
|
3134
3138
|
return JSON.stringify(e);
|
|
3135
3139
|
}
|
|
3136
3140
|
function fe(r) {
|
|
3137
|
-
const e =
|
|
3141
|
+
const e = O(12), {
|
|
3138
3142
|
accessToken: t,
|
|
3139
3143
|
sourceId: s,
|
|
3140
3144
|
widgetProps: n,
|
|
@@ -3146,8 +3150,8 @@ function fe(r) {
|
|
|
3146
3150
|
const h = a?.props.headers;
|
|
3147
3151
|
let y;
|
|
3148
3152
|
e[6] !== h ? (y = gr(h), e[6] = h, e[7] = y) : y = e[7];
|
|
3149
|
-
const
|
|
3150
|
-
|
|
3153
|
+
const v = y;
|
|
3154
|
+
v && l.push(v), l.push(t), e[0] = t, e[1] = i, e[2] = s, e[3] = a, e[4] = n, e[5] = l;
|
|
3151
3155
|
} else
|
|
3152
3156
|
l = e[5];
|
|
3153
3157
|
let c;
|
|
@@ -3158,7 +3162,7 @@ function fe(r) {
|
|
|
3158
3162
|
}, e[8] = i, e[9] = l, e[10] = a, e[11] = c) : c = e[11], c;
|
|
3159
3163
|
}
|
|
3160
3164
|
function br(r) {
|
|
3161
|
-
const e =
|
|
3165
|
+
const e = O(21), {
|
|
3162
3166
|
accessToken: t,
|
|
3163
3167
|
sourceId: s,
|
|
3164
3168
|
widgetProps: n,
|
|
@@ -3181,23 +3185,23 @@ function br(r) {
|
|
|
3181
3185
|
widgetProps: n
|
|
3182
3186
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3183
3187
|
const {
|
|
3184
|
-
mergedFilters:
|
|
3188
|
+
mergedFilters: v,
|
|
3185
3189
|
queryKey: p,
|
|
3186
3190
|
widgetModel: b
|
|
3187
3191
|
} = fe(y);
|
|
3188
3192
|
let m;
|
|
3189
3193
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3190
3194
|
let w;
|
|
3191
|
-
e[12] !==
|
|
3195
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3192
3196
|
const {
|
|
3193
|
-
signal:
|
|
3194
|
-
} =
|
|
3197
|
+
signal: M
|
|
3198
|
+
} = S;
|
|
3195
3199
|
return b.getCategories({
|
|
3196
3200
|
...n,
|
|
3197
|
-
filters:
|
|
3198
|
-
signal:
|
|
3201
|
+
filters: v,
|
|
3202
|
+
signal: M
|
|
3199
3203
|
});
|
|
3200
|
-
}, e[12] =
|
|
3204
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3201
3205
|
const u = !!b && h;
|
|
3202
3206
|
let f;
|
|
3203
3207
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3208,7 +3212,7 @@ function br(r) {
|
|
|
3208
3212
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3209
3213
|
}
|
|
3210
3214
|
function So(r) {
|
|
3211
|
-
const e =
|
|
3215
|
+
const e = O(6);
|
|
3212
3216
|
let t, s;
|
|
3213
3217
|
e[0] !== r ? ({
|
|
3214
3218
|
children: t,
|
|
@@ -3219,7 +3223,7 @@ function So(r) {
|
|
|
3219
3223
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3220
3224
|
}
|
|
3221
3225
|
function vr(r) {
|
|
3222
|
-
const e =
|
|
3226
|
+
const e = O(21), {
|
|
3223
3227
|
accessToken: t,
|
|
3224
3228
|
sourceId: s,
|
|
3225
3229
|
widgetProps: n,
|
|
@@ -3242,23 +3246,23 @@ function vr(r) {
|
|
|
3242
3246
|
widgetProps: n
|
|
3243
3247
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3244
3248
|
const {
|
|
3245
|
-
mergedFilters:
|
|
3249
|
+
mergedFilters: v,
|
|
3246
3250
|
queryKey: p,
|
|
3247
3251
|
widgetModel: b
|
|
3248
3252
|
} = fe(y);
|
|
3249
3253
|
let m;
|
|
3250
3254
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3251
3255
|
let w;
|
|
3252
|
-
e[12] !==
|
|
3256
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3253
3257
|
const {
|
|
3254
|
-
signal:
|
|
3255
|
-
} =
|
|
3258
|
+
signal: M
|
|
3259
|
+
} = S;
|
|
3256
3260
|
return b.getFeatures({
|
|
3257
3261
|
...n,
|
|
3258
|
-
filters:
|
|
3259
|
-
signal:
|
|
3262
|
+
filters: v,
|
|
3263
|
+
signal: M
|
|
3260
3264
|
});
|
|
3261
|
-
}, e[12] =
|
|
3265
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3262
3266
|
const u = !!b && h;
|
|
3263
3267
|
let f;
|
|
3264
3268
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3269,7 +3273,7 @@ function vr(r) {
|
|
|
3269
3273
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3270
3274
|
}
|
|
3271
3275
|
function wo(r) {
|
|
3272
|
-
const e =
|
|
3276
|
+
const e = O(6);
|
|
3273
3277
|
let t, s;
|
|
3274
3278
|
e[0] !== r ? ({
|
|
3275
3279
|
children: t,
|
|
@@ -3280,7 +3284,7 @@ function wo(r) {
|
|
|
3280
3284
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3281
3285
|
}
|
|
3282
3286
|
function Sr(r) {
|
|
3283
|
-
const e =
|
|
3287
|
+
const e = O(21), {
|
|
3284
3288
|
accessToken: t,
|
|
3285
3289
|
sourceId: s,
|
|
3286
3290
|
widgetProps: n,
|
|
@@ -3303,23 +3307,23 @@ function Sr(r) {
|
|
|
3303
3307
|
widgetProps: n
|
|
3304
3308
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3305
3309
|
const {
|
|
3306
|
-
mergedFilters:
|
|
3310
|
+
mergedFilters: v,
|
|
3307
3311
|
queryKey: p,
|
|
3308
3312
|
widgetModel: b
|
|
3309
3313
|
} = fe(y);
|
|
3310
3314
|
let m;
|
|
3311
3315
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3312
3316
|
let w;
|
|
3313
|
-
e[12] !==
|
|
3317
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3314
3318
|
const {
|
|
3315
|
-
signal:
|
|
3316
|
-
} =
|
|
3319
|
+
signal: M
|
|
3320
|
+
} = S;
|
|
3317
3321
|
return b.getFormula({
|
|
3318
3322
|
...n,
|
|
3319
|
-
filters:
|
|
3320
|
-
signal:
|
|
3323
|
+
filters: v,
|
|
3324
|
+
signal: M
|
|
3321
3325
|
});
|
|
3322
|
-
}, e[12] =
|
|
3326
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3323
3327
|
const u = !!b && h;
|
|
3324
3328
|
let f;
|
|
3325
3329
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3330,7 +3334,7 @@ function Sr(r) {
|
|
|
3330
3334
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3331
3335
|
}
|
|
3332
3336
|
function _o(r) {
|
|
3333
|
-
const e =
|
|
3337
|
+
const e = O(6);
|
|
3334
3338
|
let t, s;
|
|
3335
3339
|
e[0] !== r ? ({
|
|
3336
3340
|
children: t,
|
|
@@ -3341,7 +3345,7 @@ function _o(r) {
|
|
|
3341
3345
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3342
3346
|
}
|
|
3343
3347
|
function wr(r) {
|
|
3344
|
-
const e =
|
|
3348
|
+
const e = O(21), {
|
|
3345
3349
|
accessToken: t,
|
|
3346
3350
|
sourceId: s,
|
|
3347
3351
|
widgetProps: n,
|
|
@@ -3364,23 +3368,23 @@ function wr(r) {
|
|
|
3364
3368
|
widgetProps: n
|
|
3365
3369
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3366
3370
|
const {
|
|
3367
|
-
mergedFilters:
|
|
3371
|
+
mergedFilters: v,
|
|
3368
3372
|
queryKey: p,
|
|
3369
3373
|
widgetModel: b
|
|
3370
3374
|
} = fe(y);
|
|
3371
3375
|
let m;
|
|
3372
3376
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3373
3377
|
let w;
|
|
3374
|
-
e[12] !==
|
|
3378
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3375
3379
|
const {
|
|
3376
|
-
signal:
|
|
3377
|
-
} =
|
|
3380
|
+
signal: M
|
|
3381
|
+
} = S;
|
|
3378
3382
|
return b.getHistogram({
|
|
3379
3383
|
...n,
|
|
3380
|
-
filters:
|
|
3381
|
-
signal:
|
|
3384
|
+
filters: v,
|
|
3385
|
+
signal: M
|
|
3382
3386
|
});
|
|
3383
|
-
}, e[12] =
|
|
3387
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3384
3388
|
const u = !!b && h;
|
|
3385
3389
|
let f;
|
|
3386
3390
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3391,7 +3395,7 @@ function wr(r) {
|
|
|
3391
3395
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3392
3396
|
}
|
|
3393
3397
|
function Mo(r) {
|
|
3394
|
-
const e =
|
|
3398
|
+
const e = O(6);
|
|
3395
3399
|
let t, s;
|
|
3396
3400
|
e[0] !== r ? ({
|
|
3397
3401
|
children: t,
|
|
@@ -3402,7 +3406,7 @@ function Mo(r) {
|
|
|
3402
3406
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3403
3407
|
}
|
|
3404
3408
|
function _r(r) {
|
|
3405
|
-
const e =
|
|
3409
|
+
const e = O(21), {
|
|
3406
3410
|
accessToken: t,
|
|
3407
3411
|
sourceId: s,
|
|
3408
3412
|
widgetProps: n,
|
|
@@ -3425,23 +3429,23 @@ function _r(r) {
|
|
|
3425
3429
|
widgetProps: n
|
|
3426
3430
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3427
3431
|
const {
|
|
3428
|
-
mergedFilters:
|
|
3432
|
+
mergedFilters: v,
|
|
3429
3433
|
queryKey: p,
|
|
3430
3434
|
widgetModel: b
|
|
3431
3435
|
} = fe(y);
|
|
3432
3436
|
let m;
|
|
3433
3437
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3434
3438
|
let w;
|
|
3435
|
-
e[12] !==
|
|
3439
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3436
3440
|
const {
|
|
3437
|
-
signal:
|
|
3438
|
-
} =
|
|
3441
|
+
signal: M
|
|
3442
|
+
} = S;
|
|
3439
3443
|
return b.getRange({
|
|
3440
3444
|
...n,
|
|
3441
|
-
filters:
|
|
3442
|
-
signal:
|
|
3445
|
+
filters: v,
|
|
3446
|
+
signal: M
|
|
3443
3447
|
});
|
|
3444
|
-
}, e[12] =
|
|
3448
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3445
3449
|
const u = !!b && h;
|
|
3446
3450
|
let f;
|
|
3447
3451
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3452,7 +3456,7 @@ function _r(r) {
|
|
|
3452
3456
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3453
3457
|
}
|
|
3454
3458
|
function Eo(r) {
|
|
3455
|
-
const e =
|
|
3459
|
+
const e = O(6);
|
|
3456
3460
|
let t, s;
|
|
3457
3461
|
e[0] !== r ? ({
|
|
3458
3462
|
children: t,
|
|
@@ -3463,7 +3467,7 @@ function Eo(r) {
|
|
|
3463
3467
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3464
3468
|
}
|
|
3465
3469
|
function Mr(r) {
|
|
3466
|
-
const e =
|
|
3470
|
+
const e = O(21), {
|
|
3467
3471
|
accessToken: t,
|
|
3468
3472
|
sourceId: s,
|
|
3469
3473
|
widgetProps: n,
|
|
@@ -3486,23 +3490,23 @@ function Mr(r) {
|
|
|
3486
3490
|
widgetProps: n
|
|
3487
3491
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3488
3492
|
const {
|
|
3489
|
-
mergedFilters:
|
|
3493
|
+
mergedFilters: v,
|
|
3490
3494
|
queryKey: p,
|
|
3491
3495
|
widgetModel: b
|
|
3492
3496
|
} = fe(y);
|
|
3493
3497
|
let m;
|
|
3494
3498
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3495
3499
|
let w;
|
|
3496
|
-
e[12] !==
|
|
3500
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3497
3501
|
const {
|
|
3498
|
-
signal:
|
|
3499
|
-
} =
|
|
3502
|
+
signal: M
|
|
3503
|
+
} = S;
|
|
3500
3504
|
return b.getScatter({
|
|
3501
3505
|
...n,
|
|
3502
|
-
filters:
|
|
3503
|
-
signal:
|
|
3506
|
+
filters: v,
|
|
3507
|
+
signal: M
|
|
3504
3508
|
});
|
|
3505
|
-
}, e[12] =
|
|
3509
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3506
3510
|
const u = !!b && h;
|
|
3507
3511
|
let f;
|
|
3508
3512
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3513,7 +3517,7 @@ function Mr(r) {
|
|
|
3513
3517
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3514
3518
|
}
|
|
3515
3519
|
function To(r) {
|
|
3516
|
-
const e =
|
|
3520
|
+
const e = O(6);
|
|
3517
3521
|
let t, s;
|
|
3518
3522
|
e[0] !== r ? ({
|
|
3519
3523
|
children: t,
|
|
@@ -3524,7 +3528,7 @@ function To(r) {
|
|
|
3524
3528
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3525
3529
|
}
|
|
3526
3530
|
function Er(r) {
|
|
3527
|
-
const e =
|
|
3531
|
+
const e = O(21), {
|
|
3528
3532
|
accessToken: t,
|
|
3529
3533
|
sourceId: s,
|
|
3530
3534
|
widgetProps: n,
|
|
@@ -3547,23 +3551,23 @@ function Er(r) {
|
|
|
3547
3551
|
widgetProps: n
|
|
3548
3552
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3549
3553
|
const {
|
|
3550
|
-
mergedFilters:
|
|
3554
|
+
mergedFilters: v,
|
|
3551
3555
|
queryKey: p,
|
|
3552
3556
|
widgetModel: b
|
|
3553
3557
|
} = fe(y);
|
|
3554
3558
|
let m;
|
|
3555
3559
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3556
3560
|
let w;
|
|
3557
|
-
e[12] !==
|
|
3561
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3558
3562
|
const {
|
|
3559
|
-
signal:
|
|
3560
|
-
} =
|
|
3563
|
+
signal: M
|
|
3564
|
+
} = S;
|
|
3561
3565
|
return b.getTable({
|
|
3562
3566
|
...n,
|
|
3563
|
-
filters:
|
|
3564
|
-
signal:
|
|
3567
|
+
filters: v,
|
|
3568
|
+
signal: M
|
|
3565
3569
|
});
|
|
3566
|
-
}, e[12] =
|
|
3570
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3567
3571
|
const u = !!b && h;
|
|
3568
3572
|
let f;
|
|
3569
3573
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3574,7 +3578,7 @@ function Er(r) {
|
|
|
3574
3578
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3575
3579
|
}
|
|
3576
3580
|
function Lo(r) {
|
|
3577
|
-
const e =
|
|
3581
|
+
const e = O(6);
|
|
3578
3582
|
let t, s;
|
|
3579
3583
|
e[0] !== r ? ({
|
|
3580
3584
|
children: t,
|
|
@@ -3585,7 +3589,7 @@ function Lo(r) {
|
|
|
3585
3589
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3586
3590
|
}
|
|
3587
3591
|
function Tr(r) {
|
|
3588
|
-
const e =
|
|
3592
|
+
const e = O(21), {
|
|
3589
3593
|
accessToken: t,
|
|
3590
3594
|
sourceId: s,
|
|
3591
3595
|
widgetProps: n,
|
|
@@ -3608,23 +3612,23 @@ function Tr(r) {
|
|
|
3608
3612
|
widgetProps: n
|
|
3609
3613
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3610
3614
|
const {
|
|
3611
|
-
mergedFilters:
|
|
3615
|
+
mergedFilters: v,
|
|
3612
3616
|
queryKey: p,
|
|
3613
3617
|
widgetModel: b
|
|
3614
3618
|
} = fe(y);
|
|
3615
3619
|
let m;
|
|
3616
3620
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3617
3621
|
let w;
|
|
3618
|
-
e[12] !==
|
|
3622
|
+
e[12] !== v || e[13] !== b || e[14] !== n ? (w = (S) => {
|
|
3619
3623
|
const {
|
|
3620
|
-
signal:
|
|
3621
|
-
} =
|
|
3624
|
+
signal: M
|
|
3625
|
+
} = S;
|
|
3622
3626
|
return b.getTimeSeries({
|
|
3623
3627
|
...n,
|
|
3624
|
-
filters:
|
|
3625
|
-
signal:
|
|
3628
|
+
filters: v,
|
|
3629
|
+
signal: M
|
|
3626
3630
|
});
|
|
3627
|
-
}, e[12] =
|
|
3631
|
+
}, e[12] = v, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3628
3632
|
const u = !!b && h;
|
|
3629
3633
|
let f;
|
|
3630
3634
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3635,7 +3639,7 @@ function Tr(r) {
|
|
|
3635
3639
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3636
3640
|
}
|
|
3637
3641
|
function Po(r) {
|
|
3638
|
-
const e =
|
|
3642
|
+
const e = O(6);
|
|
3639
3643
|
let t, s;
|
|
3640
3644
|
e[0] !== r ? ({
|
|
3641
3645
|
children: t,
|
|
@@ -3647,7 +3651,7 @@ function Po(r) {
|
|
|
3647
3651
|
}
|
|
3648
3652
|
const ko = "ps";
|
|
3649
3653
|
function Co(r) {
|
|
3650
|
-
const e =
|
|
3654
|
+
const e = O(13), {
|
|
3651
3655
|
children: t,
|
|
3652
3656
|
maps: s,
|
|
3653
3657
|
lassoTools: n,
|
|
@@ -3660,14 +3664,14 @@ function Co(r) {
|
|
|
3660
3664
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3661
3665
|
const c = l;
|
|
3662
3666
|
let h;
|
|
3663
|
-
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */
|
|
3667
|
+
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ Z(Mn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
|
|
3664
3668
|
let y;
|
|
3665
|
-
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */
|
|
3666
|
-
let
|
|
3667
|
-
return e[10] !== s || e[11] !== y ? (
|
|
3669
|
+
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */ Z(on, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = y) : y = e[9];
|
|
3670
|
+
let v;
|
|
3671
|
+
return e[10] !== s || e[11] !== y ? (v = /* @__PURE__ */ Z(Zs, { values: s, children: y }), e[10] = s, e[11] = y, e[12] = v) : v = e[12], v;
|
|
3668
3672
|
}
|
|
3669
3673
|
function Oo(r, e) {
|
|
3670
|
-
const t =
|
|
3674
|
+
const t = be((c) => c.layers), s = be((c) => c.setLayer), n = ye(() => $t(r.map((c) => t[c]).filter((c) => !!c?.legend)).toReversed(), [t, r]), o = ye(() => n.map(e), [e, n]), i = ee(({
|
|
3671
3675
|
id: c,
|
|
3672
3676
|
visible: h,
|
|
3673
3677
|
...y
|
|
@@ -3707,46 +3711,46 @@ function Oo(r, e) {
|
|
|
3707
3711
|
function Fo({
|
|
3708
3712
|
mapId: r
|
|
3709
3713
|
}) {
|
|
3710
|
-
const [e, t] = ae(void 0), [s, n] = ae(!1), [o, i] = ae(void 0), a =
|
|
3714
|
+
const [e, t] = ae(void 0), [s, n] = ae(!1), [o, i] = ae(void 0), a = q((u) => u.maps[r]?.basemap), l = q((u) => u.getDeckInstance), c = q((u) => u.getOverlayInstance), h = q((u) => u.areLayersLoaded[r]), v = q((u) => u.maps[r]?.isLoaded) && h, {
|
|
3711
3715
|
type: p
|
|
3712
|
-
} =
|
|
3716
|
+
} = Se[a], b = p === ie.googleMaps, m = ee(async () => {
|
|
3713
3717
|
const u = l(r), f = c(r);
|
|
3714
3718
|
try {
|
|
3715
|
-
const
|
|
3716
|
-
|
|
3717
|
-
const
|
|
3719
|
+
const S = document.createElement("canvas");
|
|
3720
|
+
S.width = u.width ?? 0, S.height = u.height ?? 0;
|
|
3721
|
+
const M = S.getContext("2d");
|
|
3718
3722
|
if (b) {
|
|
3719
3723
|
const P = f;
|
|
3720
3724
|
if (P.getRenderingType() !== "RASTER")
|
|
3721
3725
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3722
|
-
const
|
|
3726
|
+
const R = await _s(P.getDiv(), {
|
|
3723
3727
|
useCORS: !0
|
|
3724
3728
|
});
|
|
3725
|
-
|
|
3729
|
+
M?.drawImage(R, 0, 0, u.width, u.height);
|
|
3726
3730
|
} else {
|
|
3727
3731
|
const P = f;
|
|
3728
|
-
P.redraw(),
|
|
3732
|
+
P.redraw(), M?.drawImage(P.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3729
3733
|
}
|
|
3730
|
-
u?.redraw("screenshot"),
|
|
3731
|
-
const
|
|
3732
|
-
t(
|
|
3733
|
-
} catch (
|
|
3734
|
-
i(
|
|
3734
|
+
u?.redraw("screenshot"), M?.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3735
|
+
const _ = S.toDataURL();
|
|
3736
|
+
t(_);
|
|
3737
|
+
} catch (S) {
|
|
3738
|
+
i(S), console.error(S);
|
|
3735
3739
|
} finally {
|
|
3736
3740
|
n(!1);
|
|
3737
3741
|
}
|
|
3738
3742
|
}, [l, b, r, c]);
|
|
3739
3743
|
return {
|
|
3740
3744
|
takeScreenshot: ee(() => {
|
|
3741
|
-
i(void 0), n(!0),
|
|
3742
|
-
}, [m,
|
|
3745
|
+
i(void 0), n(!0), v && m();
|
|
3746
|
+
}, [m, v]),
|
|
3743
3747
|
isLoading: s,
|
|
3744
3748
|
screenshot: e,
|
|
3745
3749
|
error: o
|
|
3746
3750
|
};
|
|
3747
3751
|
}
|
|
3748
3752
|
function Ao(r) {
|
|
3749
|
-
const e =
|
|
3753
|
+
const e = O(11), {
|
|
3750
3754
|
mapId: t
|
|
3751
3755
|
} = r;
|
|
3752
3756
|
let s;
|
|
@@ -3773,12 +3777,12 @@ function Ao(r) {
|
|
|
3773
3777
|
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = h) : h = e[10], h;
|
|
3774
3778
|
}
|
|
3775
3779
|
function Lr(r) {
|
|
3776
|
-
const e =
|
|
3780
|
+
const e = O(4), {
|
|
3777
3781
|
mapId: t
|
|
3778
3782
|
} = r;
|
|
3779
3783
|
let s;
|
|
3780
3784
|
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3781
|
-
const n =
|
|
3785
|
+
const n = q(s);
|
|
3782
3786
|
let o;
|
|
3783
3787
|
e: {
|
|
3784
3788
|
if (!n) {
|
|
@@ -3791,12 +3795,12 @@ function Lr(r) {
|
|
|
3791
3795
|
return o;
|
|
3792
3796
|
}
|
|
3793
3797
|
function Pr(r) {
|
|
3794
|
-
const e =
|
|
3798
|
+
const e = O(5), {
|
|
3795
3799
|
mapId: t
|
|
3796
3800
|
} = r;
|
|
3797
3801
|
let s;
|
|
3798
3802
|
e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
|
|
3799
|
-
const n =
|
|
3803
|
+
const n = Q(s);
|
|
3800
3804
|
let o;
|
|
3801
3805
|
e: {
|
|
3802
3806
|
let i;
|
|
@@ -3822,12 +3826,12 @@ function Cr(r) {
|
|
|
3822
3826
|
return r.properties.visible;
|
|
3823
3827
|
}
|
|
3824
3828
|
function Or(r) {
|
|
3825
|
-
const e =
|
|
3829
|
+
const e = O(4), {
|
|
3826
3830
|
mapId: t
|
|
3827
3831
|
} = r;
|
|
3828
3832
|
let s;
|
|
3829
3833
|
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3830
|
-
const n =
|
|
3834
|
+
const n = q(s);
|
|
3831
3835
|
let o;
|
|
3832
3836
|
e: {
|
|
3833
3837
|
if (!n || !Object.keys(n).length) {
|
|
@@ -3880,11 +3884,11 @@ function Ro({
|
|
|
3880
3884
|
getTitle: l = Rr,
|
|
3881
3885
|
getValue: c = $r
|
|
3882
3886
|
}) {
|
|
3883
|
-
const h = o ? l(o) : "",
|
|
3887
|
+
const h = o ? l(o) : "", v = t.reduce((p, b) => {
|
|
3884
3888
|
const m = e[b], w = r[b], u = c(w, s, m), f = n ? i(b) : "";
|
|
3885
3889
|
return p + a(f, u);
|
|
3886
3890
|
}, "");
|
|
3887
|
-
return h +
|
|
3891
|
+
return h + v;
|
|
3888
3892
|
}
|
|
3889
3893
|
function Rr(r) {
|
|
3890
3894
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3922,39 +3926,39 @@ function Do(r) {
|
|
|
3922
3926
|
};
|
|
3923
3927
|
}
|
|
3924
3928
|
function $o(r) {
|
|
3925
|
-
const e =
|
|
3929
|
+
const e = O(22), {
|
|
3926
3930
|
children: t,
|
|
3927
3931
|
mapId: s
|
|
3928
3932
|
} = r;
|
|
3929
3933
|
let n;
|
|
3930
|
-
e[0] !== s ? (n = (
|
|
3934
|
+
e[0] !== s ? (n = (_) => _.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3931
3935
|
const {
|
|
3932
3936
|
zoom: o,
|
|
3933
3937
|
maxZoom: i,
|
|
3934
3938
|
minZoom: a
|
|
3935
|
-
} =
|
|
3939
|
+
} = q(n);
|
|
3936
3940
|
let l;
|
|
3937
|
-
e[2] !== s ? (l = (
|
|
3938
|
-
const c =
|
|
3941
|
+
e[2] !== s ? (l = (_) => _.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3942
|
+
const c = q(l), h = q(Br), y = q(Vr), v = q(Ur), p = !c;
|
|
3939
3943
|
let b;
|
|
3940
|
-
e[4] !== s || e[5] !== h ? (b = (
|
|
3944
|
+
e[4] !== s || e[5] !== h ? (b = (_) => h(s, _), e[4] = s, e[5] = h, e[6] = b) : b = e[6];
|
|
3941
3945
|
const m = b;
|
|
3942
3946
|
let w;
|
|
3943
|
-
e[7] !== y || e[8] !== s ? (w = (
|
|
3947
|
+
e[7] !== y || e[8] !== s ? (w = (_) => y(s, _), e[7] = y, e[8] = s, e[9] = w) : w = e[9];
|
|
3944
3948
|
const u = w;
|
|
3945
3949
|
let f;
|
|
3946
|
-
e[10] !== s || e[11] !==
|
|
3947
|
-
const
|
|
3948
|
-
let
|
|
3949
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !==
|
|
3950
|
+
e[10] !== s || e[11] !== v ? (f = () => v(s), e[10] = s, e[11] = v, e[12] = f) : f = e[12];
|
|
3951
|
+
const S = f;
|
|
3952
|
+
let M;
|
|
3953
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !== S || e[20] !== o ? (M = t({
|
|
3950
3954
|
zoom: o,
|
|
3951
3955
|
maxZoom: i,
|
|
3952
3956
|
minZoom: a,
|
|
3953
3957
|
isLoading: p,
|
|
3954
3958
|
setZoom: m,
|
|
3955
3959
|
flyTo: u,
|
|
3956
|
-
resetViewState:
|
|
3957
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] =
|
|
3960
|
+
resetViewState: S
|
|
3961
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] = S, e[20] = o, e[21] = M) : M = e[21], M;
|
|
3958
3962
|
}
|
|
3959
3963
|
function Ur(r) {
|
|
3960
3964
|
return r.resetViewState;
|
|
@@ -4019,7 +4023,7 @@ async function Ir({
|
|
|
4019
4023
|
});
|
|
4020
4024
|
}
|
|
4021
4025
|
function qo(r) {
|
|
4022
|
-
const e =
|
|
4026
|
+
const e = O(20), {
|
|
4023
4027
|
source: t,
|
|
4024
4028
|
attribute: s,
|
|
4025
4029
|
accessToken: n,
|
|
@@ -4035,8 +4039,8 @@ function qo(r) {
|
|
|
4035
4039
|
...h
|
|
4036
4040
|
} = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
|
|
4037
4041
|
const y = c === void 0 ? !0 : c;
|
|
4038
|
-
let
|
|
4039
|
-
e[5] !== s || e[6] !== t ? (
|
|
4042
|
+
let v;
|
|
4043
|
+
e[5] !== s || e[6] !== t ? (v = [t, s], e[5] = s, e[6] = t, e[7] = v) : v = e[7];
|
|
4040
4044
|
let p;
|
|
4041
4045
|
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Nr({
|
|
4042
4046
|
source: t,
|
|
@@ -4046,8 +4050,8 @@ function qo(r) {
|
|
|
4046
4050
|
fetcherOptions: i
|
|
4047
4051
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
4048
4052
|
let b;
|
|
4049
|
-
return e[14] !== y || e[15] !== t || e[16] !==
|
|
4050
|
-
queryKey:
|
|
4053
|
+
return e[14] !== y || e[15] !== t || e[16] !== v || e[17] !== p || e[18] !== h ? (b = {
|
|
4054
|
+
queryKey: v,
|
|
4051
4055
|
queryFn: p,
|
|
4052
4056
|
select(m) {
|
|
4053
4057
|
return {
|
|
@@ -4057,7 +4061,7 @@ function qo(r) {
|
|
|
4057
4061
|
},
|
|
4058
4062
|
enabled: !!t && y,
|
|
4059
4063
|
...h
|
|
4060
|
-
}, e[14] = y, e[15] = t, e[16] =
|
|
4064
|
+
}, e[14] = y, e[15] = t, e[16] = v, e[17] = p, e[18] = h, e[19] = b) : b = e[19], le(b);
|
|
4061
4065
|
}
|
|
4062
4066
|
function Nr({
|
|
4063
4067
|
source: r,
|
|
@@ -4133,7 +4137,7 @@ export {
|
|
|
4133
4137
|
Ys as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4134
4138
|
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4135
4139
|
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4136
|
-
|
|
4140
|
+
Te as DEFAULT_MASK_LAYER_PROPS,
|
|
4137
4141
|
hn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4138
4142
|
gn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4139
4143
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
@@ -4143,10 +4147,10 @@ export {
|
|
|
4143
4147
|
_o as FormulaModel,
|
|
4144
4148
|
De as GmapsBasemap,
|
|
4145
4149
|
Mo as HistogramModel,
|
|
4146
|
-
|
|
4150
|
+
ve as INTL_UNITS,
|
|
4147
4151
|
vn as LassoTools,
|
|
4148
4152
|
on as LassoToolsProvider,
|
|
4149
|
-
|
|
4153
|
+
Se as MAPS_BASEMAP,
|
|
4150
4154
|
me as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4151
4155
|
Ce as MAP_MASK_LAYER_ID,
|
|
4152
4156
|
ce as MAP_MEASURE_LAYER_ID,
|
|
@@ -4190,13 +4194,13 @@ export {
|
|
|
4190
4194
|
Sr as useFormula,
|
|
4191
4195
|
wr as useHistogram,
|
|
4192
4196
|
Pr as useLassoToolsSpatialFilter,
|
|
4193
|
-
|
|
4194
|
-
|
|
4197
|
+
Q as useLassoToolsState,
|
|
4198
|
+
be as useLayerStore,
|
|
4195
4199
|
jn as useLayers,
|
|
4196
4200
|
Oo as useLegend,
|
|
4197
4201
|
Fo as useMapScreenshot,
|
|
4198
|
-
|
|
4199
|
-
|
|
4202
|
+
q as useMapStore,
|
|
4203
|
+
K as useMeasurementToolsState,
|
|
4200
4204
|
_r as useRange,
|
|
4201
4205
|
Mr as useScatter,
|
|
4202
4206
|
cr as useSource,
|