@carto/ps-react-maps 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as G, jsxs as yt } from "react/jsx-runtime";
|
|
2
2
|
import { c as j } from "react/compiler-runtime";
|
|
3
|
-
import { useImperativeHandle as Ie, useEffect as
|
|
3
|
+
import { useImperativeHandle as Ie, useEffect as Q, useState as ue, createContext as He, useContext as Ne, useMemo as ge, useCallback as se, useRef as ke } from "react";
|
|
4
4
|
import { MapProvider as Vt, Map as qt, useMap as jt } from "react-map-gl/maplibre";
|
|
5
5
|
import Bt from "@deck.gl/react";
|
|
6
6
|
import { useMap as ht, Map as It, APIProvider as Ht } from "@vis.gl/react-google-maps";
|
|
@@ -77,10 +77,10 @@ function On(n) {
|
|
|
77
77
|
}
|
|
78
78
|
function An(n) {
|
|
79
79
|
const e = j(39);
|
|
80
|
-
let t, r, s, o, i, a, l, d,
|
|
80
|
+
let t, r, s, o, i, a, l, d, f, y, b, p;
|
|
81
81
|
e[0] !== n ? ({
|
|
82
82
|
instanceRef: i,
|
|
83
|
-
overlayRef:
|
|
83
|
+
overlayRef: y,
|
|
84
84
|
controller: t,
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
@@ -89,9 +89,9 @@ function An(n) {
|
|
|
89
89
|
getCursor: r,
|
|
90
90
|
getTooltip: s,
|
|
91
91
|
onLoad: d,
|
|
92
|
-
onViewStateChange:
|
|
93
|
-
...
|
|
94
|
-
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] =
|
|
92
|
+
onViewStateChange: f,
|
|
93
|
+
...p
|
|
94
|
+
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = f, e[10] = y, e[11] = b, e[12] = p) : (t = e[1], r = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], f = e[9], y = e[10], b = e[11], p = e[12]);
|
|
95
95
|
let M;
|
|
96
96
|
e[13] !== a ? (M = a.filter(Rn).map(Dn), e[13] = a, e[14] = M) : M = e[14];
|
|
97
97
|
const S = M, L = i;
|
|
@@ -106,7 +106,7 @@ function An(n) {
|
|
|
106
106
|
...b
|
|
107
107
|
}, e[17] = b, e[18] = m) : m = e[18];
|
|
108
108
|
let g;
|
|
109
|
-
e[19] !==
|
|
109
|
+
e[19] !== y ? (g = /* @__PURE__ */ G(xn, { overlayRef: y }), e[19] = y, e[20] = g) : g = e[20];
|
|
110
110
|
let w;
|
|
111
111
|
e[21] !== d ? (w = () => d({
|
|
112
112
|
type: "load",
|
|
@@ -115,10 +115,10 @@ function An(n) {
|
|
|
115
115
|
let v;
|
|
116
116
|
e[23] !== l || e[24] !== w ? (v = /* @__PURE__ */ G(qt, { reuseMaps: !1, mapStyle: l, onLoad: w, onRender: Fn }), e[23] = l, e[24] = w, e[25] = v) : v = e[25];
|
|
117
117
|
let k;
|
|
118
|
-
return e[26] !== S || e[27] !== t || e[28] !== r || e[29] !== s || e[30] !== o || e[31] !==
|
|
118
|
+
return e[26] !== S || e[27] !== t || e[28] !== r || e[29] !== s || e[30] !== o || e[31] !== f || e[32] !== p || e[33] !== L || e[34] !== u || e[35] !== m || e[36] !== g || e[37] !== v ? (k = /* @__PURE__ */ G(Vt, { children: /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ yt(Bt, { controller: t, id: o, ref: L, layers: S, getCursor: r, getTooltip: s, onLoad: u, onViewStateChange: f, parameters: m, ...p, children: [
|
|
119
119
|
g,
|
|
120
120
|
v
|
|
121
|
-
] }) }) }), e[26] = S, e[27] = t, e[28] = r, e[29] = s, e[30] = o, e[31] =
|
|
121
|
+
] }) }) }), e[26] = S, e[27] = t, e[28] = r, e[29] = s, e[30] = o, e[31] = f, e[32] = p, e[33] = L, e[34] = u, e[35] = m, e[36] = g, e[37] = v, e[38] = k) : k = e[38], k;
|
|
122
122
|
}
|
|
123
123
|
function Fn() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
@@ -154,15 +154,15 @@ const $n = (n) => {
|
|
|
154
154
|
let a, l;
|
|
155
155
|
e[3] !== s ? (a = () => (r.setMap(s), () => {
|
|
156
156
|
r.finalize();
|
|
157
|
-
}), l = [r, s], e[3] = s, e[4] = a, e[5] = l) : (a = e[4], l = e[5]),
|
|
158
|
-
let d,
|
|
157
|
+
}), l = [r, s], e[3] = s, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), Q(a, l);
|
|
158
|
+
let d, f;
|
|
159
159
|
return e[6] !== n ? (d = () => {
|
|
160
160
|
r.setProps(n);
|
|
161
|
-
},
|
|
161
|
+
}, f = [r, n], e[6] = n, e[7] = d, e[8] = f) : (d = e[7], f = e[8]), Q(d, f), null;
|
|
162
162
|
};
|
|
163
163
|
function Un(n) {
|
|
164
164
|
const e = j(77);
|
|
165
|
-
let t, r, s, o, i, a, l, d,
|
|
165
|
+
let t, r, s, o, i, a, l, d, f, y, b;
|
|
166
166
|
e[0] !== n ? ({
|
|
167
167
|
id: s,
|
|
168
168
|
instanceRef: o,
|
|
@@ -170,22 +170,22 @@ function Un(n) {
|
|
|
170
170
|
layers: i,
|
|
171
171
|
gmapsProps: b,
|
|
172
172
|
overlayRef: d,
|
|
173
|
-
parameters:
|
|
173
|
+
parameters: f,
|
|
174
174
|
controller: r,
|
|
175
175
|
onLoad: a,
|
|
176
176
|
onViewStateChange: l,
|
|
177
|
-
...
|
|
178
|
-
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] =
|
|
179
|
-
let
|
|
180
|
-
e[12] !== b ? (
|
|
177
|
+
...y
|
|
178
|
+
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = f, e[10] = y, e[11] = b) : (t = e[1], r = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], f = e[9], y = e[10], b = e[11]);
|
|
179
|
+
let p;
|
|
180
|
+
e[12] !== b ? (p = b === void 0 ? {
|
|
181
181
|
apiKey: ""
|
|
182
|
-
} : b, e[12] = b, e[13] =
|
|
182
|
+
} : b, e[12] = b, e[13] = p) : p = e[13];
|
|
183
183
|
let M, S, L;
|
|
184
|
-
e[14] !==
|
|
184
|
+
e[14] !== p ? ({
|
|
185
185
|
apiKey: L,
|
|
186
186
|
APIProviderProps: M,
|
|
187
187
|
...S
|
|
188
|
-
} =
|
|
188
|
+
} = p, e[14] = p, e[15] = M, e[16] = S, e[17] = L) : (M = e[15], S = e[16], L = e[17]);
|
|
189
189
|
let u;
|
|
190
190
|
e: {
|
|
191
191
|
if (typeof r == "boolean") {
|
|
@@ -197,105 +197,105 @@ function Un(n) {
|
|
|
197
197
|
}, e[18] = r, e[19] = ie) : ie = e[19], u = ie;
|
|
198
198
|
break e;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
e[20] !==
|
|
203
|
-
dragPan:
|
|
204
|
-
doubleClickZoom:
|
|
205
|
-
scrollZoom:
|
|
206
|
-
}, e[20] =
|
|
200
|
+
const ee = r, ne = ee?.dragPan ?? !0, J = ee?.doubleClickZoom ?? !0, K = ee?.scrollZoom ?? !0;
|
|
201
|
+
let te;
|
|
202
|
+
e[20] !== ne || e[21] !== J || e[22] !== K ? (te = {
|
|
203
|
+
dragPan: ne,
|
|
204
|
+
doubleClickZoom: J,
|
|
205
|
+
scrollZoom: K
|
|
206
|
+
}, e[20] = ne, e[21] = J, e[22] = K, e[23] = te) : te = e[23], u = te;
|
|
207
207
|
}
|
|
208
208
|
const m = u;
|
|
209
209
|
let g;
|
|
210
210
|
e[24] !== i ? (g = i.filter(qn).map(Vn), e[24] = i, e[25] = g) : g = e[25];
|
|
211
211
|
const w = g;
|
|
212
212
|
let v;
|
|
213
|
-
e[26] !==
|
|
213
|
+
e[26] !== y.initialViewState?.maxZoom || e[27] !== y.initialViewState?.minZoom ? (v = (ee) => {
|
|
214
214
|
const {
|
|
215
|
-
detail:
|
|
216
|
-
} =
|
|
217
|
-
center:
|
|
218
|
-
zoom:
|
|
219
|
-
heading:
|
|
215
|
+
detail: ne
|
|
216
|
+
} = ee, {
|
|
217
|
+
center: J,
|
|
218
|
+
zoom: K,
|
|
219
|
+
heading: te,
|
|
220
220
|
tilt: ie
|
|
221
|
-
} =
|
|
221
|
+
} = ne;
|
|
222
222
|
return {
|
|
223
|
-
maxZoom:
|
|
224
|
-
minZoom:
|
|
225
|
-
latitude:
|
|
226
|
-
longitude:
|
|
227
|
-
zoom:
|
|
228
|
-
bearing:
|
|
223
|
+
maxZoom: y.initialViewState?.maxZoom,
|
|
224
|
+
minZoom: y.initialViewState?.minZoom,
|
|
225
|
+
latitude: J.lat,
|
|
226
|
+
longitude: J.lng,
|
|
227
|
+
zoom: K - 1,
|
|
228
|
+
bearing: te,
|
|
229
229
|
pitch: ie
|
|
230
230
|
};
|
|
231
|
-
}, e[26] =
|
|
231
|
+
}, e[26] = y.initialViewState?.maxZoom, e[27] = y.initialViewState?.minZoom, e[28] = v) : v = e[28], y.initialViewState?.maxZoom, y.initialViewState?.minZoom;
|
|
232
232
|
const k = v;
|
|
233
|
-
let
|
|
234
|
-
e[29] !== o || e[30] !== l ? (
|
|
235
|
-
const
|
|
236
|
-
...
|
|
237
|
-
...
|
|
238
|
-
},
|
|
239
|
-
...
|
|
240
|
-
latitude:
|
|
241
|
-
longitude:
|
|
242
|
-
zoom:
|
|
243
|
-
pitch:
|
|
244
|
-
bearing:
|
|
245
|
-
width:
|
|
246
|
-
height:
|
|
233
|
+
let D;
|
|
234
|
+
e[29] !== o || e[30] !== l ? (D = (ee) => {
|
|
235
|
+
const J = o?.current?._deck, K = {
|
|
236
|
+
...J?.viewState,
|
|
237
|
+
...ee
|
|
238
|
+
}, te = {
|
|
239
|
+
...K,
|
|
240
|
+
latitude: K.latitude,
|
|
241
|
+
longitude: K.longitude,
|
|
242
|
+
zoom: K.zoom,
|
|
243
|
+
pitch: K.pitch,
|
|
244
|
+
bearing: K.bearing,
|
|
245
|
+
width: J?.width,
|
|
246
|
+
height: J?.height
|
|
247
247
|
};
|
|
248
248
|
l?.({
|
|
249
|
-
viewState:
|
|
249
|
+
viewState: te,
|
|
250
250
|
interactionState: {
|
|
251
251
|
isZooming: !0
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
}, e[29] = o, e[30] = l, e[31] =
|
|
255
|
-
const
|
|
254
|
+
}, e[29] = o, e[30] = l, e[31] = D) : D = e[31];
|
|
255
|
+
const U = D;
|
|
256
256
|
let A;
|
|
257
|
-
e[32] !==
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
}, e[32] =
|
|
261
|
-
const
|
|
257
|
+
e[32] !== U || e[33] !== k ? (A = (ee) => {
|
|
258
|
+
const ne = k(ee);
|
|
259
|
+
U(ne);
|
|
260
|
+
}, e[32] = U, e[33] = k, e[34] = A) : A = e[34];
|
|
261
|
+
const V = A, q = y.initialViewState?.latitude ?? 0, F = y.initialViewState?.longitude ?? 0;
|
|
262
262
|
let _;
|
|
263
|
-
e[35] !== q || e[36] !==
|
|
263
|
+
e[35] !== q || e[36] !== F ? (_ = {
|
|
264
264
|
lat: q,
|
|
265
|
-
lng:
|
|
266
|
-
}, e[35] = q, e[36] =
|
|
267
|
-
const O = (
|
|
265
|
+
lng: F
|
|
266
|
+
}, e[35] = q, e[36] = F, e[37] = _) : _ = e[37];
|
|
267
|
+
const O = (y.initialViewState?.zoom ?? 0) + 1, c = (y.initialViewState?.maxZoom ?? 23) + 1, h = (y.initialViewState?.minZoom ?? 0) + 1, T = y.initialViewState?.pitch, P = y.initialViewState?.bearing;
|
|
268
268
|
let C;
|
|
269
|
-
e[38] !==
|
|
269
|
+
e[38] !== U || e[39] !== a || e[40] !== y.initialViewState ? (C = () => {
|
|
270
270
|
a({
|
|
271
271
|
type: "load",
|
|
272
272
|
value: !0
|
|
273
|
-
}),
|
|
274
|
-
}, e[38] =
|
|
275
|
-
const E = typeof m.scrollZoom == "boolean" ? m.scrollZoom : !!m.scrollZoom, B = m.dragPan ? "greedy" : "none",
|
|
276
|
-
let
|
|
277
|
-
e[42] !== s || e[43] !== d ? (
|
|
278
|
-
let
|
|
279
|
-
e[45] !== a ? (
|
|
273
|
+
}), U(y.initialViewState);
|
|
274
|
+
}, e[38] = U, e[39] = a, e[40] = y.initialViewState, e[41] = C) : C = e[41];
|
|
275
|
+
const E = typeof m.scrollZoom == "boolean" ? m.scrollZoom : !!m.scrollZoom, B = m.dragPan ? "greedy" : "none", Z = !m.doubleClickZoom;
|
|
276
|
+
let I;
|
|
277
|
+
e[42] !== s || e[43] !== d ? (I = /* @__PURE__ */ G(jn, { id: s, overlayRef: d }), e[42] = s, e[43] = d, e[44] = I) : I = e[44];
|
|
278
|
+
let $;
|
|
279
|
+
e[45] !== a ? ($ = () => {
|
|
280
280
|
a({
|
|
281
281
|
type: "deckgl",
|
|
282
282
|
value: !0
|
|
283
283
|
});
|
|
284
|
-
}, e[45] = a, e[46] =
|
|
285
|
-
let
|
|
286
|
-
e[47] !==
|
|
284
|
+
}, e[45] = a, e[46] = $) : $ = e[46];
|
|
285
|
+
let H;
|
|
286
|
+
e[47] !== f ? (H = {
|
|
287
287
|
depthTest: !1,
|
|
288
|
-
...
|
|
289
|
-
}, e[47] =
|
|
290
|
-
let
|
|
291
|
-
e[49] !== w || e[50] !== s || e[51] !== o || e[52] !==
|
|
292
|
-
let
|
|
293
|
-
e[56] !== S || e[57] !== t || e[58] !==
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
] }) }), e[56] = S, e[57] = t, e[58] =
|
|
288
|
+
...f
|
|
289
|
+
}, e[47] = f, e[48] = H) : H = e[48];
|
|
290
|
+
let W;
|
|
291
|
+
e[49] !== w || e[50] !== s || e[51] !== o || e[52] !== y || e[53] !== $ || e[54] !== H ? (W = /* @__PURE__ */ G($n, { id: s, instanceRef: o, layers: w, onLoad: $, parameters: H, ...y }), e[49] = w, e[50] = s, e[51] = o, e[52] = y, e[53] = $, e[54] = H, e[55] = W) : W = e[55];
|
|
292
|
+
let X;
|
|
293
|
+
e[56] !== S || e[57] !== t || e[58] !== V || e[59] !== s || e[60] !== _ || e[61] !== O || e[62] !== c || e[63] !== h || e[64] !== T || e[65] !== P || e[66] !== C || e[67] !== E || e[68] !== B || e[69] !== Z || e[70] !== I || e[71] !== W ? (X = /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ yt(It, { id: s, mapTypeId: t, disableDefaultUI: !0, ...S, center: _, zoom: O, maxZoom: c, minZoom: h, tilt: T, heading: P, onTilesLoaded: C, onBoundsChanged: V, onZoomChanged: V, scrollwheel: E, gestureHandling: B, disableDoubleClickZoom: Z, children: [
|
|
294
|
+
I,
|
|
295
|
+
W
|
|
296
|
+
] }) }), e[56] = S, e[57] = t, e[58] = V, e[59] = s, e[60] = _, e[61] = O, e[62] = c, e[63] = h, e[64] = T, e[65] = P, e[66] = C, e[67] = E, e[68] = B, e[69] = Z, e[70] = I, e[71] = W, e[72] = X) : X = e[72];
|
|
297
297
|
let le;
|
|
298
|
-
return e[73] !== M || e[74] !== L || e[75] !==
|
|
298
|
+
return e[73] !== M || e[74] !== L || e[75] !== X ? (le = /* @__PURE__ */ G(Ht, { apiKey: L, ...M, children: X }), e[73] = M, e[74] = L, e[75] = X, e[76] = le) : le = e[76], le;
|
|
299
299
|
}
|
|
300
300
|
function Vn(n) {
|
|
301
301
|
const {
|
|
@@ -317,37 +317,37 @@ function jn(n) {
|
|
|
317
317
|
}
|
|
318
318
|
function Bn(n) {
|
|
319
319
|
const e = j(46);
|
|
320
|
-
let t, r, s, o, i, a, l, d,
|
|
320
|
+
let t, r, s, o, i, a, l, d, f, y, b, p;
|
|
321
321
|
e[0] !== n ? ({
|
|
322
322
|
instanceRef: r,
|
|
323
323
|
overlayRef: o,
|
|
324
324
|
basemap: a,
|
|
325
325
|
controller: l,
|
|
326
326
|
id: d,
|
|
327
|
-
layers:
|
|
327
|
+
layers: f,
|
|
328
328
|
gmapsProps: t,
|
|
329
|
-
getCursor:
|
|
329
|
+
getCursor: y,
|
|
330
330
|
getTooltip: b,
|
|
331
331
|
onLoad: s,
|
|
332
|
-
onViewStateChange:
|
|
332
|
+
onViewStateChange: p,
|
|
333
333
|
...i
|
|
334
|
-
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] =
|
|
334
|
+
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = f, e[10] = y, e[11] = b, e[12] = p) : (t = e[1], r = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], f = e[9], y = e[10], b = e[11], p = e[12]);
|
|
335
335
|
const M = a === void 0 ? ae.positron : a, S = l === void 0 ? !0 : l, L = d === void 0 ? "deck-gl-map" : d;
|
|
336
336
|
let u;
|
|
337
|
-
e[13] !==
|
|
338
|
-
const m = u, g =
|
|
337
|
+
e[13] !== f ? (u = f === void 0 ? [] : f, e[13] = f, e[14] = u) : u = e[14];
|
|
338
|
+
const m = u, g = y === void 0 ? Pn : y, w = b === void 0 ? On : b, v = p === void 0 ? Hn : p;
|
|
339
339
|
let k;
|
|
340
340
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (k = [!1, !1], e[15] = k) : k = e[15];
|
|
341
|
-
const [
|
|
341
|
+
const [D, U] = ue(k), {
|
|
342
342
|
url: A,
|
|
343
|
-
type:
|
|
344
|
-
} = we[M], q =
|
|
345
|
-
let
|
|
346
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
343
|
+
type: V
|
|
344
|
+
} = we[M], q = V === ce.googleMaps;
|
|
345
|
+
let F;
|
|
346
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (F = (C) => {
|
|
347
347
|
const E = C.type === "deckgl" ? 0 : 1;
|
|
348
|
-
|
|
349
|
-
}, e[16] =
|
|
350
|
-
const _ =
|
|
348
|
+
U((B) => B.map((Z, I) => I === E ? C.value : Z));
|
|
349
|
+
}, e[16] = F) : F = e[16];
|
|
350
|
+
const _ = F;
|
|
351
351
|
let O, c;
|
|
352
352
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (O = () => () => {
|
|
353
353
|
_({
|
|
@@ -357,12 +357,12 @@ function Bn(n) {
|
|
|
357
357
|
type: "deckgl",
|
|
358
358
|
value: !1
|
|
359
359
|
});
|
|
360
|
-
}, c = [_], e[17] = O, e[18] = c) : (O = e[17], c = e[18]),
|
|
361
|
-
let
|
|
362
|
-
if (e[19] !==
|
|
363
|
-
const C =
|
|
360
|
+
}, c = [_], e[17] = O, e[18] = c) : (O = e[17], c = e[18]), Q(O, c);
|
|
361
|
+
let h, T;
|
|
362
|
+
if (e[19] !== D || e[20] !== s ? (h = () => {
|
|
363
|
+
const C = D.every(In);
|
|
364
364
|
s?.(C);
|
|
365
|
-
}, T = [
|
|
365
|
+
}, T = [D, s], e[19] = D, e[20] = s, e[21] = h, e[22] = T) : (h = e[21], T = e[22]), Q(h, T), q) {
|
|
366
366
|
let C;
|
|
367
367
|
return e[23] !== M || e[24] !== S || e[25] !== g || e[26] !== w || e[27] !== t || e[28] !== L || e[29] !== r || e[30] !== m || e[31] !== v || e[32] !== o || e[33] !== i ? (C = /* @__PURE__ */ G(Un, { instanceRef: r, overlayRef: o, controller: S, id: L, basemap: M, layers: m, gmapsProps: t, getCursor: g, getTooltip: w, onLoad: _, onViewStateChange: v, ...i }), e[23] = M, e[24] = S, e[25] = g, e[26] = w, e[27] = t, e[28] = L, e[29] = r, e[30] = m, e[31] = v, e[32] = o, e[33] = i, e[34] = C) : C = e[34], C;
|
|
368
368
|
}
|
|
@@ -420,13 +420,13 @@ function Zn() {
|
|
|
420
420
|
var g = m.customMerge(u);
|
|
421
421
|
return typeof g == "function" ? g : S;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function f(u) {
|
|
424
424
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(m) {
|
|
425
425
|
return Object.propertyIsEnumerable.call(u, m);
|
|
426
426
|
}) : [];
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
return Object.keys(u).concat(
|
|
428
|
+
function y(u) {
|
|
429
|
+
return Object.keys(u).concat(f(u));
|
|
430
430
|
}
|
|
431
431
|
function b(u, m) {
|
|
432
432
|
try {
|
|
@@ -435,15 +435,15 @@ function Zn() {
|
|
|
435
435
|
return !1;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function p(u, m) {
|
|
439
439
|
return b(u, m) && !(Object.hasOwnProperty.call(u, m) && Object.propertyIsEnumerable.call(u, m));
|
|
440
440
|
}
|
|
441
441
|
function M(u, m, g) {
|
|
442
442
|
var w = {};
|
|
443
|
-
return g.isMergeableObject(u) &&
|
|
443
|
+
return g.isMergeableObject(u) && y(u).forEach(function(v) {
|
|
444
444
|
w[v] = a(u[v], g);
|
|
445
|
-
}),
|
|
446
|
-
|
|
445
|
+
}), y(m).forEach(function(v) {
|
|
446
|
+
p(u, v) || (b(u, v) && g.isMergeableObject(m[v]) ? w[v] = d(v, g)(u[v], m[v], g) : w[v] = a(m[v], g));
|
|
447
447
|
}), w;
|
|
448
448
|
}
|
|
449
449
|
function S(u, m, g) {
|
|
@@ -540,11 +540,11 @@ const me = /* @__PURE__ */ Tt(zn), Gn = (n) => {
|
|
|
540
540
|
if (!a.maps?.[s]?.isLoaded) return;
|
|
541
541
|
const l = a.getViewState(s);
|
|
542
542
|
if (!l) return;
|
|
543
|
-
const
|
|
543
|
+
const f = new bt(l).fitBounds(o, i?.boundsOptions);
|
|
544
544
|
return {
|
|
545
|
-
latitude:
|
|
546
|
-
longitude:
|
|
547
|
-
zoom:
|
|
545
|
+
latitude: f.latitude,
|
|
546
|
+
longitude: f.longitude,
|
|
547
|
+
zoom: f.zoom,
|
|
548
548
|
...i?.viewStateOptions
|
|
549
549
|
};
|
|
550
550
|
},
|
|
@@ -570,6 +570,7 @@ const me = /* @__PURE__ */ Tt(zn), Gn = (n) => {
|
|
|
570
570
|
maps: a
|
|
571
571
|
};
|
|
572
572
|
}),
|
|
573
|
+
getController: (s) => r().maps[s]?.controller ?? {},
|
|
573
574
|
setController: (s, o) => t((i) => {
|
|
574
575
|
const a = i.maps[s]?.controller ?? {}, d = !o || typeof o == "boolean" ? o : me(typeof a == "boolean" ? {} : a, o);
|
|
575
576
|
return {
|
|
@@ -723,21 +724,21 @@ const me = /* @__PURE__ */ Tt(zn), Gn = (n) => {
|
|
|
723
724
|
setLayerHover: (t, r, s) => {
|
|
724
725
|
const o = e(), i = o.getDeckInstance(t), a = o.getViewport(t), l = i?.widgetManager;
|
|
725
726
|
if (!l || !a) return;
|
|
726
|
-
const [d,
|
|
727
|
-
if (d == null ||
|
|
728
|
-
const
|
|
727
|
+
const [d, f] = a.project(s);
|
|
728
|
+
if (d == null || f == null || isNaN(d) || isNaN(f)) return;
|
|
729
|
+
const y = i.pickObject({
|
|
729
730
|
x: d,
|
|
730
|
-
y:
|
|
731
|
+
y: f,
|
|
731
732
|
radius: 5,
|
|
732
733
|
layerIds: [r]
|
|
733
734
|
});
|
|
734
|
-
if (!
|
|
735
|
+
if (!y) return;
|
|
735
736
|
const b = {
|
|
736
|
-
...
|
|
737
|
+
...y,
|
|
737
738
|
x: d,
|
|
738
|
-
y:
|
|
739
|
-
},
|
|
740
|
-
|
|
739
|
+
y: f
|
|
740
|
+
}, p = new MouseEvent("mouseenter");
|
|
741
|
+
y.layer?.onHover?.(b, p), l.onHover?.(b, p);
|
|
741
742
|
},
|
|
742
743
|
clearLayersHover: (t) => {
|
|
743
744
|
const o = e().getDeckInstance(t)?.widgetManager;
|
|
@@ -770,18 +771,18 @@ function x(n) {
|
|
|
770
771
|
throw new Error("Missing MapProvider in the tree");
|
|
771
772
|
return ze(e, n);
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
+
function bo(n) {
|
|
774
775
|
const e = j(9), {
|
|
775
776
|
children: t,
|
|
776
777
|
mapId: r
|
|
777
778
|
} = n;
|
|
778
779
|
let s;
|
|
779
|
-
e[0] !== r ? (s = (
|
|
780
|
+
e[0] !== r ? (s = (f) => f.maps[r], e[0] = r, e[1] = s) : s = e[1];
|
|
780
781
|
const {
|
|
781
782
|
basemap: o
|
|
782
783
|
} = x(s), i = x(tr);
|
|
783
784
|
let a;
|
|
784
|
-
e[2] !== r || e[3] !== i ? (a = (
|
|
785
|
+
e[2] !== r || e[3] !== i ? (a = (f) => i(r, f), e[2] = r, e[3] = i, e[4] = a) : a = e[4];
|
|
785
786
|
const l = a;
|
|
786
787
|
let d;
|
|
787
788
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (d = t({
|
|
@@ -792,7 +793,7 @@ function go(n) {
|
|
|
792
793
|
function tr(n) {
|
|
793
794
|
return n.setBasemap;
|
|
794
795
|
}
|
|
795
|
-
const
|
|
796
|
+
const oe = {
|
|
796
797
|
addFeature: "addFeature",
|
|
797
798
|
addTentativePosition: "addTentativePosition",
|
|
798
799
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -807,7 +808,7 @@ class nr extends zt {
|
|
|
807
808
|
handleKeyUp(e, t) {
|
|
808
809
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
809
810
|
updatedData: t.data,
|
|
810
|
-
editType:
|
|
811
|
+
editType: oe.addFeature,
|
|
811
812
|
editContext: {}
|
|
812
813
|
}));
|
|
813
814
|
}
|
|
@@ -875,45 +876,47 @@ const he = "lassoLayer", Oe = "maskLayer", rr = {
|
|
|
875
876
|
value: "edit",
|
|
876
877
|
mode: nr
|
|
877
878
|
}
|
|
878
|
-
}, Se = gt((n) => ({
|
|
879
|
+
}, Se = gt((n, e) => ({
|
|
879
880
|
layers: {},
|
|
880
|
-
setLayer: (
|
|
881
|
-
const
|
|
882
|
-
...
|
|
883
|
-
},
|
|
881
|
+
setLayer: (t, r) => n((s) => {
|
|
882
|
+
const o = {
|
|
883
|
+
...s.layers
|
|
884
|
+
}, i = o[t] ?? {
|
|
884
885
|
type: null,
|
|
885
886
|
props: {}
|
|
886
|
-
},
|
|
887
|
-
...
|
|
888
|
-
...
|
|
887
|
+
}, a = [...i.props.extensions ?? [], ...r.props?.extensions ?? []].reduce((d, f) => (d.some((y) => y.equals(f)) || d.push(f), d), []), l = i.legend || r.legend ? {
|
|
888
|
+
...i.legend,
|
|
889
|
+
...r.legend
|
|
889
890
|
} : void 0;
|
|
890
|
-
return
|
|
891
|
-
...
|
|
892
|
-
...
|
|
891
|
+
return o[t] = {
|
|
892
|
+
...i,
|
|
893
|
+
...r,
|
|
893
894
|
props: {
|
|
894
|
-
id:
|
|
895
|
-
...
|
|
896
|
-
...
|
|
895
|
+
id: t,
|
|
896
|
+
...i.props,
|
|
897
|
+
...r.props,
|
|
897
898
|
updateTriggers: {
|
|
898
|
-
...
|
|
899
|
-
...
|
|
899
|
+
...i.props.updateTriggers ?? {},
|
|
900
|
+
...r.props?.updateTriggers ?? {}
|
|
900
901
|
},
|
|
901
|
-
extensions:
|
|
902
|
+
extensions: a
|
|
902
903
|
},
|
|
903
|
-
legend:
|
|
904
|
+
legend: l
|
|
904
905
|
}, {
|
|
905
|
-
layers:
|
|
906
|
+
layers: o
|
|
906
907
|
};
|
|
907
908
|
}),
|
|
908
|
-
removeLayer: (
|
|
909
|
-
const
|
|
910
|
-
...
|
|
909
|
+
removeLayer: (t) => n((r) => {
|
|
910
|
+
const s = {
|
|
911
|
+
...r.layers
|
|
911
912
|
};
|
|
912
|
-
return delete
|
|
913
|
-
layers:
|
|
913
|
+
return delete s[t], {
|
|
914
|
+
layers: s
|
|
914
915
|
};
|
|
915
|
-
})
|
|
916
|
-
|
|
916
|
+
}),
|
|
917
|
+
getLayers: () => e().layers,
|
|
918
|
+
getLayer: (t) => e().layers[t]
|
|
919
|
+
})), rt = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], kt = {
|
|
917
920
|
multipan: [Qe, {
|
|
918
921
|
threshold: 10,
|
|
919
922
|
direction: on.Vertical,
|
|
@@ -941,22 +944,22 @@ function Ct(n) {
|
|
|
941
944
|
const o = x(s);
|
|
942
945
|
let i;
|
|
943
946
|
e[2] !== t ? (i = (S) => S.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
944
|
-
const a = x(i), l = x(lr), d = x(ar),
|
|
945
|
-
type:
|
|
946
|
-
} = we[o], b =
|
|
947
|
-
let
|
|
948
|
-
e[4] !== l || e[5] !== d || e[6] !== b || e[7] !== a || e[8] !== r || e[9] !== t || e[10] !==
|
|
947
|
+
const a = x(i), l = x(lr), d = x(ar), f = Se(ir), {
|
|
948
|
+
type: y
|
|
949
|
+
} = we[o], b = y === ce.googleMaps;
|
|
950
|
+
let p, M;
|
|
951
|
+
e[4] !== l || e[5] !== d || e[6] !== b || e[7] !== a || e[8] !== r || e[9] !== t || e[10] !== f ? (p = () => {
|
|
949
952
|
if (!a)
|
|
950
953
|
return;
|
|
951
954
|
let S, L;
|
|
952
955
|
b ? L = d(t)?.getDiv() ?? null : L = l(t)?.getCanvas() ?? null, L && (S = new an(L, {
|
|
953
956
|
recognizers: Object.keys(kt).map(or)
|
|
954
|
-
}),
|
|
957
|
+
}), f(r, {
|
|
955
958
|
props: {
|
|
956
959
|
eventManager: S
|
|
957
960
|
}
|
|
958
961
|
}));
|
|
959
|
-
}, M = [d, b, a, l, r, t,
|
|
962
|
+
}, M = [d, b, a, l, r, t, f], e[4] = l, e[5] = d, e[6] = b, e[7] = a, e[8] = r, e[9] = t, e[10] = f, e[11] = p, e[12] = M) : (p = e[11], M = e[12]), Q(p, M);
|
|
960
963
|
}
|
|
961
964
|
function or(n) {
|
|
962
965
|
const [e, t, r, s] = kt[n], o = {
|
|
@@ -1059,14 +1062,14 @@ const dr = (n) => Ze()((e) => ({
|
|
|
1059
1062
|
modeInstance: a = new Ue.polygon.mode(),
|
|
1060
1063
|
modes: l = Ue,
|
|
1061
1064
|
modeSelected: d = Ue.polygon.value,
|
|
1062
|
-
values:
|
|
1065
|
+
values: f = {}
|
|
1063
1066
|
} = s;
|
|
1064
1067
|
return r[i] = {
|
|
1065
1068
|
enabled: o,
|
|
1066
1069
|
modeInstance: a,
|
|
1067
1070
|
modes: l,
|
|
1068
1071
|
modeSelected: d,
|
|
1069
|
-
values:
|
|
1072
|
+
values: f
|
|
1070
1073
|
}, r;
|
|
1071
1074
|
}, {}),
|
|
1072
1075
|
setEnabled: (r, s) => {
|
|
@@ -1156,7 +1159,7 @@ function fr(n) {
|
|
|
1156
1159
|
let i;
|
|
1157
1160
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1158
1161
|
}
|
|
1159
|
-
function
|
|
1162
|
+
function Y(n) {
|
|
1160
1163
|
const e = Ne(Ot);
|
|
1161
1164
|
if (!Object.keys(e).length)
|
|
1162
1165
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
@@ -1166,30 +1169,30 @@ function pr({
|
|
|
1166
1169
|
mapId: n,
|
|
1167
1170
|
children: e
|
|
1168
1171
|
}) {
|
|
1169
|
-
const t =
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1172
|
-
if (
|
|
1173
|
-
const M =
|
|
1174
|
-
|
|
1172
|
+
const t = Y((p) => p.data[n]?.enabled), r = Y((p) => p.setEnabled), s = Y((p) => p.data[n]?.values), o = Y((p) => p.setValue), i = Y((p) => p.setVisibility), a = Y((p) => p.data[n]?.modeSelected), l = Y((p) => p.setModeSelected), d = Y((p) => p.data[n]?.modes), f = Y((p) => p.setModeInstance);
|
|
1173
|
+
Q(() => {
|
|
1174
|
+
const p = d[a];
|
|
1175
|
+
if (p && t) {
|
|
1176
|
+
const M = p.mode;
|
|
1177
|
+
f(n, new M());
|
|
1175
1178
|
}
|
|
1176
|
-
}, [t, n, a, d,
|
|
1179
|
+
}, [t, n, a, d, f]);
|
|
1177
1180
|
const [
|
|
1178
|
-
|
|
1181
|
+
y
|
|
1179
1182
|
// , draw
|
|
1180
1183
|
] = ge(() => {
|
|
1181
|
-
const
|
|
1184
|
+
const p = (L) => ({
|
|
1182
1185
|
id: L.id,
|
|
1183
1186
|
...L.properties,
|
|
1184
1187
|
visible: L.properties.visible,
|
|
1185
1188
|
label: L.properties.label
|
|
1186
1189
|
});
|
|
1187
1190
|
return [
|
|
1188
|
-
Object.values(s).filter((L) => L.type === "mask").map(
|
|
1191
|
+
Object.values(s).filter((L) => L.type === "mask").map(p)
|
|
1189
1192
|
// , draw
|
|
1190
1193
|
];
|
|
1191
|
-
}, [s]), b =
|
|
1192
|
-
r(n, !!
|
|
1194
|
+
}, [s]), b = se((p) => {
|
|
1195
|
+
r(n, !!p), l(n, p);
|
|
1193
1196
|
}, [n, r, l]);
|
|
1194
1197
|
return e({
|
|
1195
1198
|
mapId: n,
|
|
@@ -1197,12 +1200,12 @@ function pr({
|
|
|
1197
1200
|
modes: d,
|
|
1198
1201
|
modeSelected: a,
|
|
1199
1202
|
values: {
|
|
1200
|
-
mask:
|
|
1203
|
+
mask: y
|
|
1201
1204
|
// draw,
|
|
1202
1205
|
},
|
|
1203
|
-
setValue:
|
|
1204
|
-
setEnabled:
|
|
1205
|
-
setVisibility:
|
|
1206
|
+
setValue: se((p, M) => o(n, p, M), [n, o]),
|
|
1207
|
+
setEnabled: se((p) => r(n, p), [n, r]),
|
|
1208
|
+
setVisibility: se((p, M) => i(n, p, M), [n, i]),
|
|
1206
1209
|
setModeSelected: b
|
|
1207
1210
|
});
|
|
1208
1211
|
}
|
|
@@ -1252,16 +1255,16 @@ function Ae({
|
|
|
1252
1255
|
dimension: i = "length"
|
|
1253
1256
|
}) {
|
|
1254
1257
|
const a = e === Be["m-km"], l = e === Be["ft-mi"], d = a || l;
|
|
1255
|
-
let
|
|
1258
|
+
let f, y;
|
|
1256
1259
|
if (d) {
|
|
1257
|
-
const
|
|
1258
|
-
let M =
|
|
1259
|
-
|
|
1260
|
+
const p = n < (r ?? ot);
|
|
1261
|
+
let M = p ? N.meter : N.kilometer;
|
|
1262
|
+
f = p ? ve.meter : ve.kilometer, l && (f = p ? ve.feet : ve.mile, M = p ? N.feet : N.mile), y = st(n, M, i);
|
|
1260
1263
|
} else
|
|
1261
|
-
|
|
1262
|
-
let b = `${Mt(
|
|
1264
|
+
f = ve[e], y = st(n, e, i);
|
|
1265
|
+
let b = `${Mt(y, t, {
|
|
1263
1266
|
style: "unit",
|
|
1264
|
-
unit:
|
|
1267
|
+
unit: f,
|
|
1265
1268
|
unitDisplay: "short",
|
|
1266
1269
|
notation: "standard",
|
|
1267
1270
|
minimumFractionDigits: 2,
|
|
@@ -1270,7 +1273,7 @@ function Ae({
|
|
|
1270
1273
|
})}`;
|
|
1271
1274
|
return i === "area" && (b += "2"), s ? s(b) : b;
|
|
1272
1275
|
}
|
|
1273
|
-
function
|
|
1276
|
+
function So(n, {
|
|
1274
1277
|
hasDoubleClickZoom: e
|
|
1275
1278
|
}) {
|
|
1276
1279
|
return typeof n == "boolean" ? {
|
|
@@ -1389,7 +1392,7 @@ class gr extends Xt {
|
|
|
1389
1392
|
const s = this.getAddFeatureOrBooleanPolygonAction(r, e);
|
|
1390
1393
|
this._isMeasuringSessionFinished = !0, s && (this.resultPolygon = s.updatedData, e.onEdit({
|
|
1391
1394
|
...s,
|
|
1392
|
-
editType:
|
|
1395
|
+
editType: oe.addPosition,
|
|
1393
1396
|
editContext: {
|
|
1394
1397
|
...s.editContext,
|
|
1395
1398
|
distance: this.area,
|
|
@@ -1457,7 +1460,7 @@ class br extends St {
|
|
|
1457
1460
|
const r = this.getAddFeatureOrBooleanPolygonAction(t, e);
|
|
1458
1461
|
this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"), r && (this.resultPolygon = r.updatedData, e.onEdit({
|
|
1459
1462
|
...r,
|
|
1460
|
-
editType:
|
|
1463
|
+
editType: oe.addPosition,
|
|
1461
1464
|
editContext: {
|
|
1462
1465
|
...r.editContext,
|
|
1463
1466
|
distance: this._currentArea,
|
|
@@ -1500,7 +1503,7 @@ class Dt extends tn {
|
|
|
1500
1503
|
super.handleClick(e, t), t.onEdit({
|
|
1501
1504
|
// data is the same
|
|
1502
1505
|
updatedData: t.data,
|
|
1503
|
-
editType:
|
|
1506
|
+
editType: oe.addPosition,
|
|
1504
1507
|
editContext: {
|
|
1505
1508
|
distance: this._currentDistance,
|
|
1506
1509
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1514,7 +1517,7 @@ class Dt extends tn {
|
|
|
1514
1517
|
const {
|
|
1515
1518
|
key: r
|
|
1516
1519
|
} = e, s = this.getClickSequence().length;
|
|
1517
|
-
let o =
|
|
1520
|
+
let o = oe.finish;
|
|
1518
1521
|
switch (r) {
|
|
1519
1522
|
case "Escape":
|
|
1520
1523
|
t.onEdit({
|
|
@@ -1522,12 +1525,12 @@ class Dt extends tn {
|
|
|
1522
1525
|
type: "FeatureCollection",
|
|
1523
1526
|
features: []
|
|
1524
1527
|
},
|
|
1525
|
-
editType:
|
|
1528
|
+
editType: oe.cancel,
|
|
1526
1529
|
editContext: {}
|
|
1527
1530
|
});
|
|
1528
1531
|
break;
|
|
1529
1532
|
case "Enter":
|
|
1530
|
-
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o =
|
|
1533
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o = oe.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1531
1534
|
updatedData: t.data,
|
|
1532
1535
|
editType: o,
|
|
1533
1536
|
editContext: {
|
|
@@ -1638,7 +1641,7 @@ const fe = "mapMeasureLayer", Sr = {
|
|
|
1638
1641
|
[N.mile]: "mile",
|
|
1639
1642
|
[N.yard]: "yard",
|
|
1640
1643
|
[N.feet]: "foot"
|
|
1641
|
-
},
|
|
1644
|
+
}, re = {
|
|
1642
1645
|
"m-km": {
|
|
1643
1646
|
value: "m-km",
|
|
1644
1647
|
system: "metric"
|
|
@@ -1675,7 +1678,7 @@ const fe = "mapMeasureLayer", Sr = {
|
|
|
1675
1678
|
value: "feet",
|
|
1676
1679
|
system: "imperial"
|
|
1677
1680
|
}
|
|
1678
|
-
}, ct = [
|
|
1681
|
+
}, ct = [re["m-km"], re.kilometer, re.meter, re["ft-mi"], re.mile, re.feet], wr = [re["m-km"], re.kilometer, re.meter, re["ft-mi"], re.mile, re.feet], Mr = {
|
|
1679
1682
|
distance: {
|
|
1680
1683
|
value: "distance",
|
|
1681
1684
|
mode: Dt
|
|
@@ -1706,7 +1709,7 @@ function Tr({
|
|
|
1706
1709
|
layerProps: s = {},
|
|
1707
1710
|
defaultType: o = "mask"
|
|
1708
1711
|
}) {
|
|
1709
|
-
const i =
|
|
1712
|
+
const i = Y((_) => _.data[e]?.enabled), a = Y((_) => _.setEnabled), l = Y((_) => _.data[e]?.values), d = Y((_) => _.setValue), f = Y((_) => _.data[e]?.modeInstance), y = Y((_) => _.data[e]?.modeSelected), b = Se((_) => _.setLayer), p = x((_) => _.addLayers), M = x((_) => _.removeLayers), S = x(vt((_) => _.maps[e]?.layers.filter((O) => !Er.includes(O)))), L = x((_) => _.getDeckInstance), u = ke({});
|
|
1710
1713
|
Ct({
|
|
1711
1714
|
mapId: e,
|
|
1712
1715
|
layerId: he
|
|
@@ -1721,32 +1724,32 @@ function Tr({
|
|
|
1721
1724
|
properties: _.properties,
|
|
1722
1725
|
id: _.id
|
|
1723
1726
|
}))
|
|
1724
|
-
}), [m]), w = ge(() => m.filter((_) => _.properties.visible).map((_) => _.id), [m]), [v, k] = ue(g), [
|
|
1727
|
+
}), [m]), w = ge(() => m.filter((_) => _.properties.visible).map((_) => _.id), [m]), [v, k] = ue(g), [D, U] = ue([]), A = se(() => {
|
|
1725
1728
|
const _ = {
|
|
1726
1729
|
...g,
|
|
1727
1730
|
features: g.features.filter((O) => O.properties?.visible)
|
|
1728
1731
|
};
|
|
1729
1732
|
k(_);
|
|
1730
1733
|
}, [g]);
|
|
1731
|
-
|
|
1734
|
+
Q(() => {
|
|
1732
1735
|
A();
|
|
1733
1736
|
}, [A]);
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1737
|
+
const V = ke(m.length);
|
|
1738
|
+
Q(() => (p(e, [he]), () => {
|
|
1736
1739
|
M(e, [he]);
|
|
1737
|
-
}), [
|
|
1738
|
-
const q =
|
|
1739
|
-
A(),
|
|
1740
|
-
}, [e, A, a]),
|
|
1740
|
+
}), [p, e, M]);
|
|
1741
|
+
const q = se(() => {
|
|
1742
|
+
A(), U([]), a(e, !1);
|
|
1743
|
+
}, [e, A, a]), F = se(({
|
|
1741
1744
|
editType: _,
|
|
1742
1745
|
updatedData: O
|
|
1743
1746
|
}) => {
|
|
1744
|
-
if (_ ===
|
|
1747
|
+
if (_ === oe.cancel) {
|
|
1745
1748
|
q();
|
|
1746
1749
|
return;
|
|
1747
1750
|
}
|
|
1748
|
-
k(O), _ !==
|
|
1749
|
-
c.properties.label ??= `${r?.mask} ${
|
|
1751
|
+
k(O), _ !== oe.updateTentativeFeature && _ === oe.addFeature && (y !== "edit" && (V.current = V.current + 1), O.features.forEach((c, h) => {
|
|
1752
|
+
c.properties.label ??= `${r?.mask} ${V.current}`, c.properties.index = h, c.properties.visible = c.properties.visible ?? !0;
|
|
1750
1753
|
const T = c.id ?? crypto.randomUUID();
|
|
1751
1754
|
d(e, T, {
|
|
1752
1755
|
geometry: c.geometry,
|
|
@@ -1755,12 +1758,12 @@ function Tr({
|
|
|
1755
1758
|
type: o
|
|
1756
1759
|
});
|
|
1757
1760
|
}), q());
|
|
1758
|
-
}, [o, q, r?.mask, e,
|
|
1759
|
-
return
|
|
1761
|
+
}, [o, q, r?.mask, e, y, d]);
|
|
1762
|
+
return Q(() => {
|
|
1760
1763
|
const _ = i, {
|
|
1761
1764
|
border: O,
|
|
1762
1765
|
point: c,
|
|
1763
|
-
fill:
|
|
1766
|
+
fill: h
|
|
1764
1767
|
} = t.colors.editing, {
|
|
1765
1768
|
border: T,
|
|
1766
1769
|
fill: P
|
|
@@ -1769,26 +1772,26 @@ function Tr({
|
|
|
1769
1772
|
...s.mask,
|
|
1770
1773
|
pickable: _,
|
|
1771
1774
|
data: v,
|
|
1772
|
-
selectedFeatureIndexes:
|
|
1775
|
+
selectedFeatureIndexes: D,
|
|
1773
1776
|
updateTriggers: {
|
|
1774
1777
|
getFilterValue: w
|
|
1775
1778
|
},
|
|
1776
1779
|
onClick: (E) => {
|
|
1777
1780
|
const B = E;
|
|
1778
|
-
B.isGuide ||
|
|
1781
|
+
B.isGuide || U([B.index]);
|
|
1779
1782
|
}
|
|
1780
1783
|
},
|
|
1781
|
-
getLineColor: (E) =>
|
|
1782
|
-
getFillColor: (E) =>
|
|
1784
|
+
getLineColor: (E) => D[0] === E.properties.index ? O : T,
|
|
1785
|
+
getFillColor: (E) => D[0] === E.properties.index ? h : P,
|
|
1783
1786
|
pointColor: {
|
|
1784
1787
|
fill: c,
|
|
1785
1788
|
outline: O
|
|
1786
1789
|
},
|
|
1787
|
-
onEdit:
|
|
1788
|
-
mode: _ ?
|
|
1790
|
+
onEdit: F,
|
|
1791
|
+
mode: _ ? f : new nn()
|
|
1789
1792
|
});
|
|
1790
1793
|
b(he, C);
|
|
1791
|
-
}, [v, i, s.mask, w,
|
|
1794
|
+
}, [v, i, s.mask, w, f, F, D, b, t.colors.editing, t.colors.finished]), Q(() => {
|
|
1792
1795
|
const _ = {
|
|
1793
1796
|
...Te,
|
|
1794
1797
|
data: g,
|
|
@@ -1800,12 +1803,12 @@ function Tr({
|
|
|
1800
1803
|
return b(Te.id, {
|
|
1801
1804
|
type: cn,
|
|
1802
1805
|
props: _
|
|
1803
|
-
}),
|
|
1806
|
+
}), p(e, [Te.id]), () => {
|
|
1804
1807
|
M(e, [Te.id]);
|
|
1805
1808
|
};
|
|
1806
|
-
}, [
|
|
1809
|
+
}, [p, e, g, w, M, b]), Q(() => {
|
|
1807
1810
|
S?.forEach((_) => {
|
|
1808
|
-
const O = L(e)?.props.layers.find((
|
|
1811
|
+
const O = L(e)?.props.layers.find((h) => h.props.id === _);
|
|
1809
1812
|
if (!O) return;
|
|
1810
1813
|
i && (u.current[_] = O?.props.pickable);
|
|
1811
1814
|
const c = !i && (u.current[_] ?? O?.props.pickable);
|
|
@@ -1881,7 +1884,7 @@ function kr({
|
|
|
1881
1884
|
}
|
|
1882
1885
|
}
|
|
1883
1886
|
}
|
|
1884
|
-
}),
|
|
1887
|
+
}), f = me(Sr, {
|
|
1885
1888
|
_subLayerProps: {
|
|
1886
1889
|
guides: {
|
|
1887
1890
|
getLineColor: i,
|
|
@@ -1891,7 +1894,7 @@ function kr({
|
|
|
1891
1894
|
getEditHandlePointColor: a,
|
|
1892
1895
|
getEditHandlePointOutlineColor: i
|
|
1893
1896
|
});
|
|
1894
|
-
return me(
|
|
1897
|
+
return me(f, d);
|
|
1895
1898
|
}
|
|
1896
1899
|
const Cr = (n) => Ze()((e) => ({
|
|
1897
1900
|
measurements: n.reduce((r, s) => {
|
|
@@ -1901,10 +1904,10 @@ const Cr = (n) => Ze()((e) => ({
|
|
|
1901
1904
|
modes: a = Mr,
|
|
1902
1905
|
units: l = _r,
|
|
1903
1906
|
distance: d = 0,
|
|
1904
|
-
finished:
|
|
1905
|
-
locale:
|
|
1907
|
+
finished: f = !1,
|
|
1908
|
+
locale: y = "en",
|
|
1906
1909
|
positions: b = [],
|
|
1907
|
-
clearLayerOnStart:
|
|
1910
|
+
clearLayerOnStart: p = !1,
|
|
1908
1911
|
unit: M = Be["m-km"],
|
|
1909
1912
|
enabled: S = !1
|
|
1910
1913
|
} = s;
|
|
@@ -1913,11 +1916,11 @@ const Cr = (n) => Ze()((e) => ({
|
|
|
1913
1916
|
units: l,
|
|
1914
1917
|
modeSelected: i,
|
|
1915
1918
|
distance: d,
|
|
1916
|
-
finished:
|
|
1917
|
-
locale:
|
|
1919
|
+
finished: f,
|
|
1920
|
+
locale: y,
|
|
1918
1921
|
positions: b,
|
|
1919
1922
|
unit: M,
|
|
1920
|
-
clearLayerOnStart:
|
|
1923
|
+
clearLayerOnStart: p,
|
|
1921
1924
|
enabled: S
|
|
1922
1925
|
}, r;
|
|
1923
1926
|
}, {}),
|
|
@@ -2041,12 +2044,12 @@ function xt(n) {
|
|
|
2041
2044
|
let a;
|
|
2042
2045
|
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
2043
2046
|
const l = z(a), d = z(Ur);
|
|
2044
|
-
let
|
|
2045
|
-
e[6] !== d || e[7] !== t ? (
|
|
2046
|
-
const
|
|
2047
|
+
let f;
|
|
2048
|
+
e[6] !== d || e[7] !== t ? (f = (R) => d(t, R), e[6] = d, e[7] = t, e[8] = f) : f = e[8];
|
|
2049
|
+
const y = f;
|
|
2047
2050
|
let b;
|
|
2048
2051
|
e[9] !== t ? (b = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = b) : b = e[10];
|
|
2049
|
-
const
|
|
2052
|
+
const p = z(b);
|
|
2050
2053
|
let M;
|
|
2051
2054
|
e[11] !== t ? (M = (R) => R.measurements[t].enabled, e[11] = t, e[12] = M) : M = e[12];
|
|
2052
2055
|
const S = z(M), L = z($r);
|
|
@@ -2060,71 +2063,71 @@ function xt(n) {
|
|
|
2060
2063
|
e[18] !== v || e[19] !== t || e[20] !== m ? (k = (R) => {
|
|
2061
2064
|
m(!!R), v(t, R);
|
|
2062
2065
|
}, e[18] = v, e[19] = t, e[20] = m, e[21] = k) : k = e[21];
|
|
2063
|
-
const
|
|
2064
|
-
let
|
|
2065
|
-
e[22] !== t ? (
|
|
2066
|
-
const A = z(
|
|
2066
|
+
const D = k;
|
|
2067
|
+
let U;
|
|
2068
|
+
e[22] !== t ? (U = (R) => R.measurements[t].finished, e[22] = t, e[23] = U) : U = e[23];
|
|
2069
|
+
const A = z(U), V = z(Rr);
|
|
2067
2070
|
let q;
|
|
2068
|
-
e[24] !==
|
|
2069
|
-
const
|
|
2071
|
+
e[24] !== V || e[25] !== t ? (q = (R) => V(t, R), e[24] = V, e[25] = t, e[26] = q) : q = e[26];
|
|
2072
|
+
const F = q;
|
|
2070
2073
|
let _;
|
|
2071
2074
|
e[27] !== t ? (_ = (R) => R.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
|
|
2072
2075
|
const O = z(_), c = z(Dr);
|
|
2073
|
-
let
|
|
2074
|
-
e[29] !== c || e[30] !== t ? (
|
|
2075
|
-
const T =
|
|
2076
|
+
let h;
|
|
2077
|
+
e[29] !== c || e[30] !== t ? (h = (R) => c(t, R), e[29] = c, e[30] = t, e[31] = h) : h = e[31];
|
|
2078
|
+
const T = h;
|
|
2076
2079
|
let P;
|
|
2077
2080
|
e[32] !== t ? (P = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = P) : P = e[33];
|
|
2078
2081
|
const C = z(P), E = z(Fr);
|
|
2079
2082
|
let B;
|
|
2080
2083
|
e[34] !== E || e[35] !== t ? (B = (R) => E(t, R), e[34] = E, e[35] = t, e[36] = B) : B = e[36];
|
|
2081
|
-
const
|
|
2082
|
-
let
|
|
2083
|
-
e[37] !== t ? (
|
|
2084
|
-
const
|
|
2085
|
-
let
|
|
2086
|
-
e[39] !==
|
|
2087
|
-
const
|
|
2084
|
+
const Z = B;
|
|
2085
|
+
let I;
|
|
2086
|
+
e[37] !== t ? (I = (R) => R.measurements[t].positions, e[37] = t, e[38] = I) : I = e[38];
|
|
2087
|
+
const $ = z(I), H = z(Ar);
|
|
2088
|
+
let W;
|
|
2089
|
+
e[39] !== H || e[40] !== t ? (W = (R) => H(t, R), e[39] = H, e[40] = t, e[41] = W) : W = e[41];
|
|
2090
|
+
const X = W;
|
|
2088
2091
|
let le;
|
|
2089
2092
|
e[42] !== t ? (le = (R) => R.measurements[t].unit, e[42] = t, e[43] = le) : le = e[43];
|
|
2090
|
-
const
|
|
2091
|
-
let
|
|
2092
|
-
e[44] !==
|
|
2093
|
-
const
|
|
2094
|
-
let
|
|
2095
|
-
e[47] !== C || e[48] !==
|
|
2096
|
-
C?.resetClickSequence(),
|
|
2097
|
-
}, e[47] = C, e[48] =
|
|
2098
|
-
const ie =
|
|
2093
|
+
const ee = z(le), ne = z(Or);
|
|
2094
|
+
let J;
|
|
2095
|
+
e[44] !== ne || e[45] !== t ? (J = (R) => ne(t, R), e[44] = ne, e[45] = t, e[46] = J) : J = e[46];
|
|
2096
|
+
const K = J;
|
|
2097
|
+
let te;
|
|
2098
|
+
e[47] !== C || e[48] !== X ? (te = () => {
|
|
2099
|
+
C?.resetClickSequence(), X([]);
|
|
2100
|
+
}, e[47] = C, e[48] = X, e[49] = te) : te = e[49];
|
|
2101
|
+
const ie = te;
|
|
2099
2102
|
let Me;
|
|
2100
2103
|
e[50] !== m ? (Me = (R) => {
|
|
2101
2104
|
m(R);
|
|
2102
2105
|
}, e[50] = m, e[51] = Me) : Me = e[51];
|
|
2103
2106
|
const Fe = Me;
|
|
2104
2107
|
let _e;
|
|
2105
|
-
return e[52] !== ie || e[53] !==
|
|
2108
|
+
return e[52] !== ie || e[53] !== p || e[54] !== l || e[55] !== S || e[56] !== A || e[57] !== O || e[58] !== C || e[59] !== w || e[60] !== s || e[61] !== $ || e[62] !== y || e[63] !== m || e[64] !== F || e[65] !== T || e[66] !== Z || e[67] !== D || e[68] !== X || e[69] !== K || e[70] !== Fe || e[71] !== ee || e[72] !== i ? (_e = {
|
|
2106
2109
|
modes: s,
|
|
2107
2110
|
units: i,
|
|
2108
2111
|
distance: l,
|
|
2109
|
-
clearLayerOnStart:
|
|
2112
|
+
clearLayerOnStart: p,
|
|
2110
2113
|
modeSelected: w,
|
|
2111
2114
|
enabled: S,
|
|
2112
2115
|
finished: A,
|
|
2113
2116
|
locale: O,
|
|
2114
2117
|
modeInstance: C,
|
|
2115
|
-
positions:
|
|
2116
|
-
unit:
|
|
2117
|
-
setDistance:
|
|
2118
|
-
setModeSelected:
|
|
2119
|
-
setFinished:
|
|
2118
|
+
positions: $,
|
|
2119
|
+
unit: ee,
|
|
2120
|
+
setDistance: y,
|
|
2121
|
+
setModeSelected: D,
|
|
2122
|
+
setFinished: F,
|
|
2120
2123
|
setLocale: T,
|
|
2121
|
-
setPositions:
|
|
2122
|
-
setUnit:
|
|
2124
|
+
setPositions: X,
|
|
2125
|
+
setUnit: K,
|
|
2123
2126
|
setEnabled: m,
|
|
2124
2127
|
toggleLayer: Fe,
|
|
2125
2128
|
clearLayer: ie,
|
|
2126
|
-
setModeInstance:
|
|
2127
|
-
}, e[52] = ie, e[53] =
|
|
2129
|
+
setModeInstance: Z
|
|
2130
|
+
}, e[52] = ie, e[53] = p, e[54] = l, e[55] = S, e[56] = A, e[57] = O, e[58] = C, e[59] = w, e[60] = s, e[61] = $, e[62] = y, e[63] = m, e[64] = F, e[65] = T, e[66] = Z, e[67] = D, e[68] = X, e[69] = K, e[70] = Fe, e[71] = ee, e[72] = i, e[73] = _e) : _e = e[73], _e;
|
|
2128
2131
|
}
|
|
2129
2132
|
function Or(n) {
|
|
2130
2133
|
return n.setUnit;
|
|
@@ -2165,10 +2168,10 @@ function Vr(n) {
|
|
|
2165
2168
|
units: a,
|
|
2166
2169
|
distance: l,
|
|
2167
2170
|
setDistance: d,
|
|
2168
|
-
clearLayerOnStart:
|
|
2169
|
-
modeSelected:
|
|
2171
|
+
clearLayerOnStart: f,
|
|
2172
|
+
modeSelected: y,
|
|
2170
2173
|
setModeSelected: b,
|
|
2171
|
-
enabled:
|
|
2174
|
+
enabled: p,
|
|
2172
2175
|
setEnabled: M,
|
|
2173
2176
|
finished: S,
|
|
2174
2177
|
setFinished: L,
|
|
@@ -2178,44 +2181,44 @@ function Vr(n) {
|
|
|
2178
2181
|
setModeInstance: w,
|
|
2179
2182
|
positions: v,
|
|
2180
2183
|
setPositions: k,
|
|
2181
|
-
unit:
|
|
2182
|
-
setUnit:
|
|
2184
|
+
unit: D,
|
|
2185
|
+
setUnit: U,
|
|
2183
2186
|
clearLayer: A,
|
|
2184
|
-
toggleLayer:
|
|
2187
|
+
toggleLayer: V
|
|
2185
2188
|
} = xt(o);
|
|
2186
2189
|
let q;
|
|
2187
|
-
e[2] !==
|
|
2188
|
-
if (
|
|
2189
|
-
const T = i[
|
|
2190
|
+
e[2] !== y || e[3] !== i || e[4] !== w || e[5] !== k ? (q = () => {
|
|
2191
|
+
if (y && i[y]) {
|
|
2192
|
+
const T = i[y].mode;
|
|
2190
2193
|
w(new T());
|
|
2191
2194
|
}
|
|
2192
2195
|
return () => {
|
|
2193
2196
|
k([]);
|
|
2194
2197
|
};
|
|
2195
|
-
}, e[2] =
|
|
2196
|
-
let
|
|
2197
|
-
e[7] !==
|
|
2198
|
+
}, e[2] = y, e[3] = i, e[4] = w, e[5] = k, e[6] = q) : q = e[6];
|
|
2199
|
+
let F;
|
|
2200
|
+
e[7] !== y || e[8] !== i || e[9] !== M || e[10] !== w || e[11] !== k ? (F = [i, y, k, w, M], e[7] = y, e[8] = i, e[9] = M, e[10] = w, e[11] = k, e[12] = F) : F = e[12], Q(q, F);
|
|
2198
2201
|
let _;
|
|
2199
|
-
e[13] !==
|
|
2200
|
-
T && (
|
|
2201
|
-
}, e[13] =
|
|
2202
|
-
const O = _, c = !!
|
|
2203
|
-
let
|
|
2204
|
-
return e[18] !== s || e[19] !== A || e[20] !== l || e[21] !==
|
|
2202
|
+
e[13] !== V || e[14] !== A || e[15] !== f || e[16] !== S ? (_ = (T) => {
|
|
2203
|
+
T && (f || !S) && A(), V(T);
|
|
2204
|
+
}, e[13] = V, e[14] = A, e[15] = f, e[16] = S, e[17] = _) : _ = e[17];
|
|
2205
|
+
const O = _, c = !!f;
|
|
2206
|
+
let h;
|
|
2207
|
+
return e[18] !== s || e[19] !== A || e[20] !== l || e[21] !== p || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !== g || e[26] !== y || e[27] !== i || e[28] !== v || e[29] !== d || e[30] !== M || e[31] !== L || e[32] !== m || e[33] !== b || e[34] !== k || e[35] !== U || e[36] !== c || e[37] !== r || e[38] !== O || e[39] !== D || e[40] !== a ? (h = s({
|
|
2205
2208
|
mapId: t,
|
|
2206
2209
|
distance: l,
|
|
2207
|
-
enabled:
|
|
2210
|
+
enabled: p,
|
|
2208
2211
|
finished: S,
|
|
2209
2212
|
locale: u,
|
|
2210
2213
|
positions: v,
|
|
2211
|
-
unit:
|
|
2214
|
+
unit: D,
|
|
2212
2215
|
clearLayerOnStart: c,
|
|
2213
|
-
modeSelected:
|
|
2216
|
+
modeSelected: y,
|
|
2214
2217
|
modes: i,
|
|
2215
2218
|
units: a,
|
|
2216
2219
|
value: Ae({
|
|
2217
2220
|
meters: l,
|
|
2218
|
-
unit:
|
|
2221
|
+
unit: D,
|
|
2219
2222
|
locale: u,
|
|
2220
2223
|
options: r
|
|
2221
2224
|
}),
|
|
@@ -2225,11 +2228,11 @@ function Vr(n) {
|
|
|
2225
2228
|
setFinished: L,
|
|
2226
2229
|
setLocale: m,
|
|
2227
2230
|
setPositions: k,
|
|
2228
|
-
setUnit:
|
|
2231
|
+
setUnit: U,
|
|
2229
2232
|
setEnabled: M,
|
|
2230
2233
|
toggleLayer: O,
|
|
2231
2234
|
clearLayer: A
|
|
2232
|
-
}), e[18] = s, e[19] = A, e[20] = l, e[21] =
|
|
2235
|
+
}), e[18] = s, e[19] = A, e[20] = l, e[21] = p, e[22] = S, e[23] = u, e[24] = t, e[25] = g, e[26] = y, e[27] = i, e[28] = v, e[29] = d, e[30] = M, e[31] = L, e[32] = m, e[33] = b, e[34] = k, e[35] = U, e[36] = c, e[37] = r, e[38] = O, e[39] = D, e[40] = a, e[41] = h) : h = e[41], h;
|
|
2233
2236
|
}
|
|
2234
2237
|
const qr = [fe];
|
|
2235
2238
|
function jr(n) {
|
|
@@ -2247,91 +2250,91 @@ function jr(n) {
|
|
|
2247
2250
|
const {
|
|
2248
2251
|
styles: l
|
|
2249
2252
|
} = a, d = l === void 0 ? it.styles : l;
|
|
2250
|
-
let
|
|
2251
|
-
e[2] !== r ? (
|
|
2253
|
+
let f;
|
|
2254
|
+
e[2] !== r ? (f = {
|
|
2252
2255
|
mapId: r
|
|
2253
|
-
}, e[2] = r, e[3] =
|
|
2256
|
+
}, e[2] = r, e[3] = f) : f = e[3];
|
|
2254
2257
|
const {
|
|
2255
|
-
setDistance:
|
|
2258
|
+
setDistance: y,
|
|
2256
2259
|
clearLayerOnStart: b,
|
|
2257
|
-
enabled:
|
|
2260
|
+
enabled: p,
|
|
2258
2261
|
finished: M,
|
|
2259
2262
|
setFinished: S,
|
|
2260
2263
|
locale: L,
|
|
2261
2264
|
setPositions: u,
|
|
2262
2265
|
unit: m,
|
|
2263
2266
|
modeInstance: g
|
|
2264
|
-
} = xt(
|
|
2265
|
-
let
|
|
2266
|
-
e[4] !== r ? (
|
|
2267
|
-
const
|
|
2268
|
-
let
|
|
2269
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2270
|
-
const
|
|
2271
|
-
let
|
|
2272
|
-
e[7] !== r ? (
|
|
2267
|
+
} = xt(f), w = Se(Gr), v = x(zr), k = x(Zr), D = x(Nr), U = x(Hr);
|
|
2268
|
+
let A;
|
|
2269
|
+
e[4] !== r ? (A = (I) => I.maps[r]?.layers.filter(Ir), e[4] = r, e[5] = A) : A = e[5];
|
|
2270
|
+
const V = x(vt(A)), q = x(Br);
|
|
2271
|
+
let F;
|
|
2272
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (F = {}, e[6] = F) : F = e[6];
|
|
2273
|
+
const _ = ke(F);
|
|
2274
|
+
let O;
|
|
2275
|
+
e[7] !== r ? (O = {
|
|
2273
2276
|
mapId: r,
|
|
2274
2277
|
layerId: fe
|
|
2275
|
-
}, e[7] = r, e[8] =
|
|
2276
|
-
let
|
|
2277
|
-
e[9] !==
|
|
2278
|
-
const I =
|
|
2279
|
-
return
|
|
2278
|
+
}, e[7] = r, e[8] = O) : O = e[8], Ct(O);
|
|
2279
|
+
let c;
|
|
2280
|
+
e[9] !== D || e[10] !== p || e[11] !== v || e[12] !== r || e[13] !== U || e[14] !== k ? (c = () => {
|
|
2281
|
+
const I = v(r);
|
|
2282
|
+
return p && (D(r, [fe]), k(r, {
|
|
2280
2283
|
doubleClickZoom: !1
|
|
2281
2284
|
})), () => {
|
|
2282
|
-
|
|
2285
|
+
U(r, [fe]), k(r, I);
|
|
2283
2286
|
};
|
|
2284
|
-
}, e[9] =
|
|
2285
|
-
let
|
|
2286
|
-
e[16] !==
|
|
2287
|
-
let
|
|
2288
|
-
e[24] !==
|
|
2289
|
-
|
|
2290
|
-
const
|
|
2291
|
-
if (
|
|
2287
|
+
}, e[9] = D, e[10] = p, e[11] = v, e[12] = r, e[13] = U, e[14] = k, e[15] = c) : c = e[15];
|
|
2288
|
+
let h;
|
|
2289
|
+
e[16] !== D || e[17] !== b || e[18] !== p || e[19] !== v || e[20] !== r || e[21] !== U || e[22] !== k ? (h = [D, b, r, U, p, v, k], e[16] = D, e[17] = b, e[18] = p, e[19] = v, e[20] = r, e[21] = U, e[22] = k, e[23] = h) : h = e[23], Q(c, h);
|
|
2290
|
+
let T, P;
|
|
2291
|
+
e[24] !== p || e[25] !== q || e[26] !== r || e[27] !== V || e[28] !== w ? (T = () => {
|
|
2292
|
+
V?.forEach((I) => {
|
|
2293
|
+
const $ = q(r)?.props.layers.find((W) => W.props.id === I);
|
|
2294
|
+
if (!$)
|
|
2292
2295
|
return;
|
|
2293
|
-
|
|
2294
|
-
const
|
|
2296
|
+
p && (_.current[I] = $?.props.pickable);
|
|
2297
|
+
const H = !p && (_.current[I] ?? $?.props.pickable);
|
|
2295
2298
|
w(I, {
|
|
2296
2299
|
props: {
|
|
2297
|
-
pickable:
|
|
2300
|
+
pickable: H
|
|
2298
2301
|
}
|
|
2299
2302
|
});
|
|
2300
2303
|
});
|
|
2301
|
-
},
|
|
2302
|
-
let
|
|
2303
|
-
e[31] !== g || e[32] !==
|
|
2304
|
+
}, P = [p, q, r, V, w], e[24] = p, e[25] = q, e[26] = r, e[27] = V, e[28] = w, e[29] = T, e[30] = P) : (T = e[29], P = e[30]), Q(T, P);
|
|
2305
|
+
let C;
|
|
2306
|
+
e[31] !== g || e[32] !== y || e[33] !== S || e[34] !== u ? (C = (I) => {
|
|
2304
2307
|
const {
|
|
2305
|
-
editType:
|
|
2306
|
-
editContext:
|
|
2308
|
+
editType: $,
|
|
2309
|
+
editContext: H
|
|
2307
2310
|
} = I;
|
|
2308
|
-
if (
|
|
2311
|
+
if ($ === oe.cancel) {
|
|
2309
2312
|
g.resetClickSequence();
|
|
2310
2313
|
return;
|
|
2311
2314
|
}
|
|
2312
|
-
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2315
|
-
}, e[31] = g, e[32] =
|
|
2316
|
-
const
|
|
2317
|
-
let
|
|
2318
|
-
return e[36] !==
|
|
2319
|
-
const I = M ? d.colors.finished : d.colors.editing,
|
|
2315
|
+
$ === oe.addPosition && y(H.distance), S(!!H.finished);
|
|
2316
|
+
const W = H.positions;
|
|
2317
|
+
W?.length && u(W);
|
|
2318
|
+
}, e[31] = g, e[32] = y, e[33] = S, e[34] = u, e[35] = C) : C = e[35];
|
|
2319
|
+
const E = C;
|
|
2320
|
+
let B, Z;
|
|
2321
|
+
return e[36] !== p || e[37] !== M || e[38] !== o || e[39] !== L || e[40] !== g || e[41] !== E || e[42] !== w || e[43] !== d.colors.editing || e[44] !== d.colors.finished || e[45] !== d.colors.point || e[46] !== i || e[47] !== m ? (B = () => {
|
|
2322
|
+
const I = M ? d.colors.finished : d.colors.editing, $ = M ? d.colors.finished : d.colors.point, H = Lr({
|
|
2320
2323
|
layerProps: {
|
|
2321
2324
|
...o,
|
|
2322
2325
|
pickable: o?.pickable ?? !M
|
|
2323
2326
|
},
|
|
2324
|
-
enabled:
|
|
2327
|
+
enabled: p,
|
|
2325
2328
|
guideColor: I,
|
|
2326
|
-
pointColor:
|
|
2329
|
+
pointColor: $,
|
|
2327
2330
|
locale: L,
|
|
2328
|
-
onEdit:
|
|
2331
|
+
onEdit: E,
|
|
2329
2332
|
unit: m,
|
|
2330
2333
|
mode: g,
|
|
2331
2334
|
textOptions: i
|
|
2332
2335
|
});
|
|
2333
|
-
w(fe,
|
|
2334
|
-
},
|
|
2336
|
+
w(fe, H);
|
|
2337
|
+
}, Z = [M, g, o, L, E, w, d.colors.editing, d.colors.finished, d.colors.point, i, m, p], e[36] = p, e[37] = M, e[38] = o, e[39] = L, e[40] = g, e[41] = E, e[42] = w, e[43] = d.colors.editing, e[44] = d.colors.finished, e[45] = d.colors.point, e[46] = i, e[47] = m, e[48] = B, e[49] = Z) : (B = e[48], Z = e[49]), Q(B, Z), t;
|
|
2335
2338
|
}
|
|
2336
2339
|
function Br(n) {
|
|
2337
2340
|
return n.getDeckInstance;
|
|
@@ -2349,10 +2352,13 @@ function Zr(n) {
|
|
|
2349
2352
|
return n.setController;
|
|
2350
2353
|
}
|
|
2351
2354
|
function zr(n) {
|
|
2355
|
+
return n.getController;
|
|
2356
|
+
}
|
|
2357
|
+
function Gr(n) {
|
|
2352
2358
|
return n.setLayer;
|
|
2353
2359
|
}
|
|
2354
2360
|
jr.Controls = Vr;
|
|
2355
|
-
function
|
|
2361
|
+
function Wr(n) {
|
|
2356
2362
|
const e = j(7), {
|
|
2357
2363
|
mapId: t
|
|
2358
2364
|
} = n;
|
|
@@ -2360,19 +2366,19 @@ function Gr(n) {
|
|
|
2360
2366
|
e[0] !== t ? (r = (l) => l.maps[t], e[0] = t, e[1] = r) : r = e[1];
|
|
2361
2367
|
const {
|
|
2362
2368
|
layers: s
|
|
2363
|
-
} = x(r), o = Se(
|
|
2369
|
+
} = x(r), o = Se(Yr);
|
|
2364
2370
|
let i;
|
|
2365
2371
|
if (e[2] !== o || e[3] !== s) {
|
|
2366
2372
|
let l;
|
|
2367
|
-
e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = s.map(l).filter(
|
|
2373
|
+
e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = s.map(l).filter(Kr), e[2] = o, e[3] = s, e[4] = i;
|
|
2368
2374
|
} else
|
|
2369
2375
|
i = e[4];
|
|
2370
2376
|
return i;
|
|
2371
2377
|
}
|
|
2372
|
-
function
|
|
2378
|
+
function Kr(n) {
|
|
2373
2379
|
return !!n;
|
|
2374
2380
|
}
|
|
2375
|
-
function
|
|
2381
|
+
function Yr(n) {
|
|
2376
2382
|
return n.layers;
|
|
2377
2383
|
}
|
|
2378
2384
|
const ut = [Oe, he, fe];
|
|
@@ -2380,8 +2386,8 @@ function $t(n) {
|
|
|
2380
2386
|
const e = n.filter((r) => !ut.includes(r.props.id)).sort((r, s) => (r.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = ut.map((r) => n.find((s) => s.props.id === r)).filter((r) => !!r);
|
|
2381
2387
|
return [...e, ...t];
|
|
2382
2388
|
}
|
|
2383
|
-
const
|
|
2384
|
-
function
|
|
2389
|
+
const Jr = 200;
|
|
2390
|
+
function vo(n) {
|
|
2385
2391
|
const e = j(51);
|
|
2386
2392
|
let t, r, s, o;
|
|
2387
2393
|
e[0] !== n ? ({
|
|
@@ -2396,75 +2402,75 @@ function So(n) {
|
|
|
2396
2402
|
let l;
|
|
2397
2403
|
e[7] !== t ? (l = (E) => E.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2398
2404
|
const d = x(l);
|
|
2399
|
-
let p;
|
|
2400
|
-
e[9] !== t ? (p = (E) => E.maps[t].overlayRef, e[9] = t, e[10] = p) : p = e[10];
|
|
2401
|
-
const h = x(p), b = ke(null);
|
|
2402
2405
|
let f;
|
|
2403
|
-
e[
|
|
2404
|
-
const
|
|
2406
|
+
e[9] !== t ? (f = (E) => E.maps[t].overlayRef, e[9] = t, e[10] = f) : f = e[10];
|
|
2407
|
+
const y = x(f), b = ke(null);
|
|
2408
|
+
let p;
|
|
2409
|
+
e[11] !== t ? (p = (E) => E.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2410
|
+
const M = x(p);
|
|
2405
2411
|
let S;
|
|
2406
2412
|
e[13] !== t ? (S = (E) => E.maps[t].controller, e[13] = t, e[14] = S) : S = e[14];
|
|
2407
|
-
const L = x(S), u = x(
|
|
2413
|
+
const L = x(S), u = x(rs), m = x(ns), g = x(ts), w = x(es), v = x(Xr);
|
|
2408
2414
|
let k;
|
|
2409
2415
|
e[15] !== t ? (k = {
|
|
2410
2416
|
mapId: t
|
|
2411
2417
|
}, e[15] = t, e[16] = k) : k = e[16];
|
|
2412
|
-
const
|
|
2418
|
+
const D = Wr(k);
|
|
2419
|
+
let U;
|
|
2420
|
+
e[17] !== D ? (U = $t(D), e[17] = D, e[18] = U) : U = e[18];
|
|
2421
|
+
const A = U;
|
|
2413
2422
|
let V;
|
|
2414
|
-
e[
|
|
2415
|
-
const A = V;
|
|
2416
|
-
let $;
|
|
2417
|
-
e[19] !== t || e[20] !== s || e[21] !== m || e[22] !== v ? ($ = (E) => {
|
|
2423
|
+
e[19] !== t || e[20] !== s || e[21] !== m || e[22] !== v ? (V = (E) => {
|
|
2418
2424
|
const B = m;
|
|
2419
2425
|
if (b.current && clearInterval(b.current), b.current = setTimeout(() => {
|
|
2420
2426
|
v(t);
|
|
2421
|
-
},
|
|
2427
|
+
}, Jr), s) {
|
|
2422
2428
|
s(E, B);
|
|
2423
2429
|
return;
|
|
2424
2430
|
}
|
|
2425
2431
|
B(t, E.viewState);
|
|
2426
|
-
}, e[19] = t, e[20] = s, e[21] = m, e[22] = v, e[23] =
|
|
2427
|
-
const q =
|
|
2428
|
-
let
|
|
2429
|
-
e[24] !== t || e[25] !== r || e[26] !== g || e[27] !== v ? (
|
|
2432
|
+
}, e[19] = t, e[20] = s, e[21] = m, e[22] = v, e[23] = V) : V = e[23];
|
|
2433
|
+
const q = V;
|
|
2434
|
+
let F;
|
|
2435
|
+
e[24] !== t || e[25] !== r || e[26] !== g || e[27] !== v ? (F = (E) => {
|
|
2430
2436
|
g(t, E), r?.(E), v(t);
|
|
2431
|
-
}, e[24] = t, e[25] = r, e[26] = g, e[27] = v, e[28] =
|
|
2432
|
-
const _ =
|
|
2437
|
+
}, e[24] = t, e[25] = r, e[26] = g, e[27] = v, e[28] = F) : F = e[28];
|
|
2438
|
+
const _ = F;
|
|
2433
2439
|
let O;
|
|
2434
2440
|
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== w ? (O = (E) => {
|
|
2435
|
-
const
|
|
2436
|
-
w(t,
|
|
2441
|
+
const Z = !!u(t)?.props.layers?.every(Qr);
|
|
2442
|
+
w(t, Z), o.onAfterRender?.(E);
|
|
2437
2443
|
}, e[29] = u, e[30] = t, e[31] = o, e[32] = w, e[33] = O) : O = e[33];
|
|
2438
|
-
const c = O,
|
|
2444
|
+
const c = O, h = o.onDragEnd;
|
|
2439
2445
|
let T;
|
|
2440
|
-
e[34] !==
|
|
2446
|
+
e[34] !== h || e[35] !== t || e[36] !== v ? (T = (...E) => {
|
|
2441
2447
|
const B = E;
|
|
2442
|
-
v(t),
|
|
2443
|
-
}, e[34] =
|
|
2448
|
+
v(t), h && h(...B);
|
|
2449
|
+
}, e[34] = h, e[35] = t, e[36] = v, e[37] = T) : T = e[37];
|
|
2444
2450
|
const P = T;
|
|
2445
2451
|
let C;
|
|
2446
|
-
return e[38] !== a || e[39] !== A || e[40] !== L || e[41] !== c || e[42] !== P || e[43] !== _ || e[44] !== q || e[45] !== t || e[46] !== d || e[47] !==
|
|
2452
|
+
return e[38] !== a || e[39] !== A || e[40] !== L || e[41] !== c || e[42] !== P || e[43] !== _ || e[44] !== q || e[45] !== t || e[46] !== d || e[47] !== y || e[48] !== o || e[49] !== M ? (C = /* @__PURE__ */ G(Bn, { ...o, controller: L, id: t, layers: A, instanceRef: d, overlayRef: y, basemap: a, initialViewState: M, onLoad: _, onViewStateChange: q, onAfterRender: c, onDragEnd: P }), e[38] = a, e[39] = A, e[40] = L, e[41] = c, e[42] = P, e[43] = _, e[44] = q, e[45] = t, e[46] = d, e[47] = y, e[48] = o, e[49] = M, e[50] = C) : C = e[50], C;
|
|
2447
2453
|
}
|
|
2448
|
-
function
|
|
2454
|
+
function Qr(n) {
|
|
2449
2455
|
return n?.isLoaded;
|
|
2450
2456
|
}
|
|
2451
|
-
function
|
|
2457
|
+
function Xr(n) {
|
|
2452
2458
|
return n.updateViewPort;
|
|
2453
2459
|
}
|
|
2454
|
-
function
|
|
2460
|
+
function es(n) {
|
|
2455
2461
|
return n.setLayersLoad;
|
|
2456
2462
|
}
|
|
2457
|
-
function
|
|
2463
|
+
function ts(n) {
|
|
2458
2464
|
return n.setLoad;
|
|
2459
2465
|
}
|
|
2460
|
-
function
|
|
2466
|
+
function ns(n) {
|
|
2461
2467
|
return n.setViewState;
|
|
2462
2468
|
}
|
|
2463
|
-
function
|
|
2469
|
+
function rs(n) {
|
|
2464
2470
|
return n.getDeckInstance;
|
|
2465
2471
|
}
|
|
2466
2472
|
var Le = { exports: {} }, dt;
|
|
2467
|
-
function
|
|
2473
|
+
function ss() {
|
|
2468
2474
|
return dt || (dt = 1, (function(n, e) {
|
|
2469
2475
|
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, r = (function() {
|
|
2470
2476
|
function o() {
|
|
@@ -2492,7 +2498,7 @@ function rs() {
|
|
|
2492
2498
|
return c && DataView.prototype.isPrototypeOf(c);
|
|
2493
2499
|
}
|
|
2494
2500
|
if (l.arrayBuffer)
|
|
2495
|
-
var
|
|
2501
|
+
var f = [
|
|
2496
2502
|
"[object Int8Array]",
|
|
2497
2503
|
"[object Uint8Array]",
|
|
2498
2504
|
"[object Uint8ClampedArray]",
|
|
@@ -2502,68 +2508,68 @@ function rs() {
|
|
|
2502
2508
|
"[object Uint32Array]",
|
|
2503
2509
|
"[object Float32Array]",
|
|
2504
2510
|
"[object Float64Array]"
|
|
2505
|
-
],
|
|
2506
|
-
return c &&
|
|
2511
|
+
], y = ArrayBuffer.isView || function(c) {
|
|
2512
|
+
return c && f.indexOf(Object.prototype.toString.call(c)) > -1;
|
|
2507
2513
|
};
|
|
2508
2514
|
function b(c) {
|
|
2509
2515
|
if (typeof c != "string" && (c = String(c)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(c) || c === "")
|
|
2510
2516
|
throw new TypeError('Invalid character in header field name: "' + c + '"');
|
|
2511
2517
|
return c.toLowerCase();
|
|
2512
2518
|
}
|
|
2513
|
-
function
|
|
2519
|
+
function p(c) {
|
|
2514
2520
|
return typeof c != "string" && (c = String(c)), c;
|
|
2515
2521
|
}
|
|
2516
2522
|
function M(c) {
|
|
2517
|
-
var
|
|
2523
|
+
var h = {
|
|
2518
2524
|
next: function() {
|
|
2519
2525
|
var T = c.shift();
|
|
2520
2526
|
return { done: T === void 0, value: T };
|
|
2521
2527
|
}
|
|
2522
2528
|
};
|
|
2523
|
-
return l.iterable && (
|
|
2524
|
-
return
|
|
2525
|
-
}),
|
|
2529
|
+
return l.iterable && (h[Symbol.iterator] = function() {
|
|
2530
|
+
return h;
|
|
2531
|
+
}), h;
|
|
2526
2532
|
}
|
|
2527
2533
|
function S(c) {
|
|
2528
|
-
this.map = {}, c instanceof S ? c.forEach(function(
|
|
2529
|
-
this.append(T,
|
|
2530
|
-
}, this) : Array.isArray(c) ? c.forEach(function(
|
|
2531
|
-
if (
|
|
2532
|
-
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" +
|
|
2533
|
-
this.append(
|
|
2534
|
-
}, this) : c && Object.getOwnPropertyNames(c).forEach(function(
|
|
2535
|
-
this.append(
|
|
2534
|
+
this.map = {}, c instanceof S ? c.forEach(function(h, T) {
|
|
2535
|
+
this.append(T, h);
|
|
2536
|
+
}, this) : Array.isArray(c) ? c.forEach(function(h) {
|
|
2537
|
+
if (h.length != 2)
|
|
2538
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + h.length);
|
|
2539
|
+
this.append(h[0], h[1]);
|
|
2540
|
+
}, this) : c && Object.getOwnPropertyNames(c).forEach(function(h) {
|
|
2541
|
+
this.append(h, c[h]);
|
|
2536
2542
|
}, this);
|
|
2537
2543
|
}
|
|
2538
|
-
S.prototype.append = function(c,
|
|
2539
|
-
c = b(c),
|
|
2544
|
+
S.prototype.append = function(c, h) {
|
|
2545
|
+
c = b(c), h = p(h);
|
|
2540
2546
|
var T = this.map[c];
|
|
2541
|
-
this.map[c] = T ? T + ", " +
|
|
2547
|
+
this.map[c] = T ? T + ", " + h : h;
|
|
2542
2548
|
}, S.prototype.delete = function(c) {
|
|
2543
2549
|
delete this.map[b(c)];
|
|
2544
2550
|
}, S.prototype.get = function(c) {
|
|
2545
2551
|
return c = b(c), this.has(c) ? this.map[c] : null;
|
|
2546
2552
|
}, S.prototype.has = function(c) {
|
|
2547
2553
|
return this.map.hasOwnProperty(b(c));
|
|
2548
|
-
}, S.prototype.set = function(c,
|
|
2549
|
-
this.map[b(c)] =
|
|
2550
|
-
}, S.prototype.forEach = function(c,
|
|
2554
|
+
}, S.prototype.set = function(c, h) {
|
|
2555
|
+
this.map[b(c)] = p(h);
|
|
2556
|
+
}, S.prototype.forEach = function(c, h) {
|
|
2551
2557
|
for (var T in this.map)
|
|
2552
|
-
this.map.hasOwnProperty(T) && c.call(
|
|
2558
|
+
this.map.hasOwnProperty(T) && c.call(h, this.map[T], T, this);
|
|
2553
2559
|
}, S.prototype.keys = function() {
|
|
2554
2560
|
var c = [];
|
|
2555
|
-
return this.forEach(function(
|
|
2561
|
+
return this.forEach(function(h, T) {
|
|
2556
2562
|
c.push(T);
|
|
2557
2563
|
}), M(c);
|
|
2558
2564
|
}, S.prototype.values = function() {
|
|
2559
2565
|
var c = [];
|
|
2560
|
-
return this.forEach(function(
|
|
2561
|
-
c.push(
|
|
2566
|
+
return this.forEach(function(h) {
|
|
2567
|
+
c.push(h);
|
|
2562
2568
|
}), M(c);
|
|
2563
2569
|
}, S.prototype.entries = function() {
|
|
2564
2570
|
var c = [];
|
|
2565
|
-
return this.forEach(function(
|
|
2566
|
-
c.push([T,
|
|
2571
|
+
return this.forEach(function(h, T) {
|
|
2572
|
+
c.push([T, h]);
|
|
2567
2573
|
}), M(c);
|
|
2568
2574
|
}, l.iterable && (S.prototype[Symbol.iterator] = S.prototype.entries);
|
|
2569
2575
|
function L(c) {
|
|
@@ -2574,36 +2580,36 @@ function rs() {
|
|
|
2574
2580
|
}
|
|
2575
2581
|
}
|
|
2576
2582
|
function u(c) {
|
|
2577
|
-
return new Promise(function(
|
|
2583
|
+
return new Promise(function(h, T) {
|
|
2578
2584
|
c.onload = function() {
|
|
2579
|
-
|
|
2585
|
+
h(c.result);
|
|
2580
2586
|
}, c.onerror = function() {
|
|
2581
2587
|
T(c.error);
|
|
2582
2588
|
};
|
|
2583
2589
|
});
|
|
2584
2590
|
}
|
|
2585
2591
|
function m(c) {
|
|
2586
|
-
var
|
|
2587
|
-
return
|
|
2592
|
+
var h = new FileReader(), T = u(h);
|
|
2593
|
+
return h.readAsArrayBuffer(c), T;
|
|
2588
2594
|
}
|
|
2589
2595
|
function g(c) {
|
|
2590
|
-
var
|
|
2591
|
-
return
|
|
2596
|
+
var h = new FileReader(), T = u(h), P = /charset=([A-Za-z0-9_-]+)/.exec(c.type), C = P ? P[1] : "utf-8";
|
|
2597
|
+
return h.readAsText(c, C), T;
|
|
2592
2598
|
}
|
|
2593
2599
|
function w(c) {
|
|
2594
|
-
for (var
|
|
2595
|
-
T[P] = String.fromCharCode(
|
|
2600
|
+
for (var h = new Uint8Array(c), T = new Array(h.length), P = 0; P < h.length; P++)
|
|
2601
|
+
T[P] = String.fromCharCode(h[P]);
|
|
2596
2602
|
return T.join("");
|
|
2597
2603
|
}
|
|
2598
2604
|
function v(c) {
|
|
2599
2605
|
if (c.slice)
|
|
2600
2606
|
return c.slice(0);
|
|
2601
|
-
var
|
|
2602
|
-
return
|
|
2607
|
+
var h = new Uint8Array(c.byteLength);
|
|
2608
|
+
return h.set(new Uint8Array(c)), h.buffer;
|
|
2603
2609
|
}
|
|
2604
2610
|
function k() {
|
|
2605
2611
|
return this.bodyUsed = !1, this._initBody = function(c) {
|
|
2606
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = c, c ? typeof c == "string" ? this._bodyText = c : l.blob && Blob.prototype.isPrototypeOf(c) ? this._bodyBlob = c : l.formData && FormData.prototype.isPrototypeOf(c) ? this._bodyFormData = c : l.searchParams && URLSearchParams.prototype.isPrototypeOf(c) ? this._bodyText = c.toString() : l.arrayBuffer && l.blob && d(c) ? (this._bodyArrayBuffer = v(c.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(c) ||
|
|
2612
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = c, c ? typeof c == "string" ? this._bodyText = c : l.blob && Blob.prototype.isPrototypeOf(c) ? this._bodyBlob = c : l.formData && FormData.prototype.isPrototypeOf(c) ? this._bodyFormData = c : l.searchParams && URLSearchParams.prototype.isPrototypeOf(c) ? this._bodyText = c.toString() : l.arrayBuffer && l.blob && d(c) ? (this._bodyArrayBuffer = v(c.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(c) || y(c)) ? this._bodyArrayBuffer = v(c) : this._bodyText = c = Object.prototype.toString.call(c) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof c == "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(c) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2607
2613
|
}, l.blob && (this.blob = function() {
|
|
2608
2614
|
var c = L(this);
|
|
2609
2615
|
if (c)
|
|
@@ -2641,35 +2647,35 @@ function rs() {
|
|
|
2641
2647
|
throw new Error("could not read FormData body as text");
|
|
2642
2648
|
return Promise.resolve(this._bodyText);
|
|
2643
2649
|
}, l.formData && (this.formData = function() {
|
|
2644
|
-
return this.text().then(
|
|
2650
|
+
return this.text().then(V);
|
|
2645
2651
|
}), this.json = function() {
|
|
2646
2652
|
return this.text().then(JSON.parse);
|
|
2647
2653
|
}, this;
|
|
2648
2654
|
}
|
|
2649
|
-
var
|
|
2650
|
-
function
|
|
2651
|
-
var
|
|
2652
|
-
return
|
|
2655
|
+
var D = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2656
|
+
function U(c) {
|
|
2657
|
+
var h = c.toUpperCase();
|
|
2658
|
+
return D.indexOf(h) > -1 ? h : c;
|
|
2653
2659
|
}
|
|
2654
|
-
function A(c,
|
|
2660
|
+
function A(c, h) {
|
|
2655
2661
|
if (!(this instanceof A))
|
|
2656
2662
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2657
|
-
|
|
2658
|
-
var T =
|
|
2663
|
+
h = h || {};
|
|
2664
|
+
var T = h.body;
|
|
2659
2665
|
if (c instanceof A) {
|
|
2660
2666
|
if (c.bodyUsed)
|
|
2661
2667
|
throw new TypeError("Already read");
|
|
2662
|
-
this.url = c.url, this.credentials = c.credentials,
|
|
2668
|
+
this.url = c.url, this.credentials = c.credentials, h.headers || (this.headers = new S(c.headers)), this.method = c.method, this.mode = c.mode, this.signal = c.signal, !T && c._bodyInit != null && (T = c._bodyInit, c.bodyUsed = !0);
|
|
2663
2669
|
} else
|
|
2664
2670
|
this.url = String(c);
|
|
2665
|
-
if (this.credentials =
|
|
2671
|
+
if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new S(h.headers)), this.method = U(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal || (function() {
|
|
2666
2672
|
if ("AbortController" in a) {
|
|
2667
2673
|
var E = new AbortController();
|
|
2668
2674
|
return E.signal;
|
|
2669
2675
|
}
|
|
2670
2676
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && T)
|
|
2671
2677
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2672
|
-
if (this._initBody(T), (this.method === "GET" || this.method === "HEAD") && (
|
|
2678
|
+
if (this._initBody(T), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) {
|
|
2673
2679
|
var P = /([?&])_=[^&]*/;
|
|
2674
2680
|
if (P.test(this.url))
|
|
2675
2681
|
this.url = this.url.replace(P, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2682,17 +2688,17 @@ function rs() {
|
|
|
2682
2688
|
A.prototype.clone = function() {
|
|
2683
2689
|
return new A(this, { body: this._bodyInit });
|
|
2684
2690
|
};
|
|
2685
|
-
function
|
|
2686
|
-
var
|
|
2691
|
+
function V(c) {
|
|
2692
|
+
var h = new FormData();
|
|
2687
2693
|
return c.trim().split("&").forEach(function(T) {
|
|
2688
2694
|
if (T) {
|
|
2689
2695
|
var P = T.split("="), C = P.shift().replace(/\+/g, " "), E = P.join("=").replace(/\+/g, " ");
|
|
2690
|
-
|
|
2696
|
+
h.append(decodeURIComponent(C), decodeURIComponent(E));
|
|
2691
2697
|
}
|
|
2692
|
-
}),
|
|
2698
|
+
}), h;
|
|
2693
2699
|
}
|
|
2694
2700
|
function q(c) {
|
|
2695
|
-
var
|
|
2701
|
+
var h = new S(), T = c.replace(/\r?\n[\t ]+/g, " ");
|
|
2696
2702
|
return T.split("\r").map(function(P) {
|
|
2697
2703
|
return P.indexOf(`
|
|
2698
2704
|
`) === 0 ? P.substr(1, P.length) : P;
|
|
@@ -2701,50 +2707,50 @@ function rs() {
|
|
|
2701
2707
|
if (E) {
|
|
2702
2708
|
var B = C.join(":").trim();
|
|
2703
2709
|
try {
|
|
2704
|
-
|
|
2705
|
-
} catch (
|
|
2706
|
-
console.warn("Response " +
|
|
2710
|
+
h.append(E, B);
|
|
2711
|
+
} catch (Z) {
|
|
2712
|
+
console.warn("Response " + Z.message);
|
|
2707
2713
|
}
|
|
2708
2714
|
}
|
|
2709
|
-
}),
|
|
2715
|
+
}), h;
|
|
2710
2716
|
}
|
|
2711
2717
|
k.call(A.prototype);
|
|
2712
|
-
function
|
|
2713
|
-
if (!(this instanceof
|
|
2718
|
+
function F(c, h) {
|
|
2719
|
+
if (!(this instanceof F))
|
|
2714
2720
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2715
|
-
if (
|
|
2721
|
+
if (h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.status < 200 || this.status > 599)
|
|
2716
2722
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2717
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText =
|
|
2723
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = h.statusText === void 0 ? "" : "" + h.statusText, this.headers = new S(h.headers), this.url = h.url || "", this._initBody(c);
|
|
2718
2724
|
}
|
|
2719
|
-
k.call(
|
|
2720
|
-
return new
|
|
2725
|
+
k.call(F.prototype), F.prototype.clone = function() {
|
|
2726
|
+
return new F(this._bodyInit, {
|
|
2721
2727
|
status: this.status,
|
|
2722
2728
|
statusText: this.statusText,
|
|
2723
2729
|
headers: new S(this.headers),
|
|
2724
2730
|
url: this.url
|
|
2725
2731
|
});
|
|
2726
|
-
},
|
|
2727
|
-
var c = new
|
|
2732
|
+
}, F.error = function() {
|
|
2733
|
+
var c = new F(null, { status: 200, statusText: "" });
|
|
2728
2734
|
return c.ok = !1, c.status = 0, c.type = "error", c;
|
|
2729
2735
|
};
|
|
2730
2736
|
var _ = [301, 302, 303, 307, 308];
|
|
2731
|
-
|
|
2732
|
-
if (_.indexOf(
|
|
2737
|
+
F.redirect = function(c, h) {
|
|
2738
|
+
if (_.indexOf(h) === -1)
|
|
2733
2739
|
throw new RangeError("Invalid status code");
|
|
2734
|
-
return new
|
|
2740
|
+
return new F(null, { status: h, headers: { location: c } });
|
|
2735
2741
|
}, i.DOMException = a.DOMException;
|
|
2736
2742
|
try {
|
|
2737
2743
|
new i.DOMException();
|
|
2738
2744
|
} catch {
|
|
2739
|
-
i.DOMException = function(
|
|
2740
|
-
this.message =
|
|
2741
|
-
var P = Error(
|
|
2745
|
+
i.DOMException = function(h, T) {
|
|
2746
|
+
this.message = h, this.name = T;
|
|
2747
|
+
var P = Error(h);
|
|
2742
2748
|
this.stack = P.stack;
|
|
2743
2749
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2744
2750
|
}
|
|
2745
|
-
function O(c,
|
|
2751
|
+
function O(c, h) {
|
|
2746
2752
|
return new Promise(function(T, P) {
|
|
2747
|
-
var C = new A(c,
|
|
2753
|
+
var C = new A(c, h);
|
|
2748
2754
|
if (C.signal && C.signal.aborted)
|
|
2749
2755
|
return P(new i.DOMException("Aborted", "AbortError"));
|
|
2750
2756
|
var E = new XMLHttpRequest();
|
|
@@ -2752,14 +2758,14 @@ function rs() {
|
|
|
2752
2758
|
E.abort();
|
|
2753
2759
|
}
|
|
2754
2760
|
E.onload = function() {
|
|
2755
|
-
var
|
|
2761
|
+
var $ = {
|
|
2756
2762
|
statusText: E.statusText,
|
|
2757
2763
|
headers: q(E.getAllResponseHeaders() || "")
|
|
2758
2764
|
};
|
|
2759
|
-
C.url.indexOf("file://") === 0 && (E.status < 200 || E.status > 599) ?
|
|
2760
|
-
var
|
|
2765
|
+
C.url.indexOf("file://") === 0 && (E.status < 200 || E.status > 599) ? $.status = 200 : $.status = E.status, $.url = "responseURL" in E ? E.responseURL : $.headers.get("X-Request-URL");
|
|
2766
|
+
var H = "response" in E ? E.response : E.responseText;
|
|
2761
2767
|
setTimeout(function() {
|
|
2762
|
-
T(new
|
|
2768
|
+
T(new F(H, $));
|
|
2763
2769
|
}, 0);
|
|
2764
2770
|
}, E.onerror = function() {
|
|
2765
2771
|
setTimeout(function() {
|
|
@@ -2774,57 +2780,57 @@ function rs() {
|
|
|
2774
2780
|
P(new i.DOMException("Aborted", "AbortError"));
|
|
2775
2781
|
}, 0);
|
|
2776
2782
|
};
|
|
2777
|
-
function
|
|
2783
|
+
function Z($) {
|
|
2778
2784
|
try {
|
|
2779
|
-
return
|
|
2785
|
+
return $ === "" && a.location.href ? a.location.href : $;
|
|
2780
2786
|
} catch {
|
|
2781
|
-
return
|
|
2787
|
+
return $;
|
|
2782
2788
|
}
|
|
2783
2789
|
}
|
|
2784
|
-
if (E.open(C.method,
|
|
2785
|
-
var
|
|
2786
|
-
Object.getOwnPropertyNames(
|
|
2787
|
-
|
|
2788
|
-
}), C.headers.forEach(function(
|
|
2789
|
-
|
|
2790
|
+
if (E.open(C.method, Z(C.url), !0), C.credentials === "include" ? E.withCredentials = !0 : C.credentials === "omit" && (E.withCredentials = !1), "responseType" in E && (l.blob ? E.responseType = "blob" : l.arrayBuffer && (E.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof S || a.Headers && h.headers instanceof a.Headers)) {
|
|
2791
|
+
var I = [];
|
|
2792
|
+
Object.getOwnPropertyNames(h.headers).forEach(function($) {
|
|
2793
|
+
I.push(b($)), E.setRequestHeader($, p(h.headers[$]));
|
|
2794
|
+
}), C.headers.forEach(function($, H) {
|
|
2795
|
+
I.indexOf(H) === -1 && E.setRequestHeader(H, $);
|
|
2790
2796
|
});
|
|
2791
2797
|
} else
|
|
2792
|
-
C.headers.forEach(function(
|
|
2793
|
-
E.setRequestHeader(
|
|
2798
|
+
C.headers.forEach(function($, H) {
|
|
2799
|
+
E.setRequestHeader(H, $);
|
|
2794
2800
|
});
|
|
2795
2801
|
C.signal && (C.signal.addEventListener("abort", B), E.onreadystatechange = function() {
|
|
2796
2802
|
E.readyState === 4 && C.signal.removeEventListener("abort", B);
|
|
2797
2803
|
}), E.send(typeof C._bodyInit > "u" ? null : C._bodyInit);
|
|
2798
2804
|
});
|
|
2799
2805
|
}
|
|
2800
|
-
return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = S, a.Request = A, a.Response =
|
|
2806
|
+
return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = S, a.Request = A, a.Response = F), i.Headers = S, i.Request = A, i.Response = F, i.fetch = O, i;
|
|
2801
2807
|
})({});
|
|
2802
2808
|
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
2803
2809
|
var s = t.fetch ? t : r;
|
|
2804
2810
|
e = s.fetch, e.default = s.fetch, e.fetch = s.fetch, e.Headers = s.Headers, e.Request = s.Request, e.Response = s.Response, n.exports = e;
|
|
2805
2811
|
})(Le, Le.exports)), Le.exports;
|
|
2806
2812
|
}
|
|
2807
|
-
var
|
|
2808
|
-
const
|
|
2813
|
+
var os = ss();
|
|
2814
|
+
const is = /* @__PURE__ */ Tt(os), Ke = "https://gcp-us-east1.api.carto.com", Ye = "v3", as = "ps", be = {
|
|
2809
2815
|
get: "GET",
|
|
2810
2816
|
post: "POST"
|
|
2811
2817
|
};
|
|
2812
|
-
function
|
|
2818
|
+
function ls(n, e) {
|
|
2813
2819
|
return Array.isArray(e) ? `${n}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${n}=${encodeURIComponent(JSON.stringify(e))}` : `${n}=${encodeURIComponent(e)}`;
|
|
2814
2820
|
}
|
|
2815
|
-
function
|
|
2821
|
+
function cs({
|
|
2816
2822
|
params: n,
|
|
2817
2823
|
url: e
|
|
2818
2824
|
}) {
|
|
2819
2825
|
if (!n) return e;
|
|
2820
|
-
const t = Object.entries(n).map(([r, s]) =>
|
|
2826
|
+
const t = Object.entries(n).map(([r, s]) => ls(r, s));
|
|
2821
2827
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2822
2828
|
}
|
|
2823
|
-
function
|
|
2829
|
+
function us(n) {
|
|
2824
2830
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
2825
2831
|
}
|
|
2826
2832
|
var qe, ft;
|
|
2827
|
-
function
|
|
2833
|
+
function ds() {
|
|
2828
2834
|
if (ft) return qe;
|
|
2829
2835
|
ft = 1;
|
|
2830
2836
|
var n = function(u) {
|
|
@@ -2857,13 +2863,13 @@ function us() {
|
|
|
2857
2863
|
var g = m.customMerge(u);
|
|
2858
2864
|
return typeof g == "function" ? g : S;
|
|
2859
2865
|
}
|
|
2860
|
-
function
|
|
2866
|
+
function f(u) {
|
|
2861
2867
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(m) {
|
|
2862
2868
|
return Object.propertyIsEnumerable.call(u, m);
|
|
2863
2869
|
}) : [];
|
|
2864
2870
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return Object.keys(u).concat(
|
|
2871
|
+
function y(u) {
|
|
2872
|
+
return Object.keys(u).concat(f(u));
|
|
2867
2873
|
}
|
|
2868
2874
|
function b(u, m) {
|
|
2869
2875
|
try {
|
|
@@ -2872,15 +2878,15 @@ function us() {
|
|
|
2872
2878
|
return !1;
|
|
2873
2879
|
}
|
|
2874
2880
|
}
|
|
2875
|
-
function
|
|
2881
|
+
function p(u, m) {
|
|
2876
2882
|
return b(u, m) && !(Object.hasOwnProperty.call(u, m) && Object.propertyIsEnumerable.call(u, m));
|
|
2877
2883
|
}
|
|
2878
2884
|
function M(u, m, g) {
|
|
2879
2885
|
var w = {};
|
|
2880
|
-
return g.isMergeableObject(u) &&
|
|
2886
|
+
return g.isMergeableObject(u) && y(u).forEach(function(v) {
|
|
2881
2887
|
w[v] = a(u[v], g);
|
|
2882
|
-
}),
|
|
2883
|
-
|
|
2888
|
+
}), y(m).forEach(function(v) {
|
|
2889
|
+
p(u, v) || (b(u, v) && g.isMergeableObject(m[v]) ? w[v] = d(v, g)(u[v], m[v], g) : w[v] = a(m[v], g));
|
|
2884
2890
|
}), w;
|
|
2885
2891
|
}
|
|
2886
2892
|
function S(u, m, g) {
|
|
@@ -2897,8 +2903,8 @@ function us() {
|
|
|
2897
2903
|
var L = S;
|
|
2898
2904
|
return qe = L, qe;
|
|
2899
2905
|
}
|
|
2900
|
-
var
|
|
2901
|
-
const Je = /* @__PURE__ */
|
|
2906
|
+
var fs = ds();
|
|
2907
|
+
const Je = /* @__PURE__ */ us(fs);
|
|
2902
2908
|
function pt(n) {
|
|
2903
2909
|
return Je({
|
|
2904
2910
|
method: be.get,
|
|
@@ -2917,21 +2923,21 @@ function je(n, e) {
|
|
|
2917
2923
|
body: JSON.stringify(e)
|
|
2918
2924
|
}, n);
|
|
2919
2925
|
}
|
|
2920
|
-
const
|
|
2926
|
+
const ps = {
|
|
2921
2927
|
GET: pt,
|
|
2922
2928
|
POST: je,
|
|
2923
2929
|
PUT: je,
|
|
2924
2930
|
PATCH: je,
|
|
2925
2931
|
DELETE: pt
|
|
2926
2932
|
};
|
|
2927
|
-
function
|
|
2933
|
+
function ms({
|
|
2928
2934
|
body: n,
|
|
2929
2935
|
accessToken: e,
|
|
2930
2936
|
method: t,
|
|
2931
2937
|
...r
|
|
2932
2938
|
}) {
|
|
2933
2939
|
let s = e;
|
|
2934
|
-
return s && !s.includes("Bearer") && (s = "Bearer " + s),
|
|
2940
|
+
return s && !s.includes("Bearer") && (s = "Bearer " + s), ps[t](Je({
|
|
2935
2941
|
method: t,
|
|
2936
2942
|
headers: {
|
|
2937
2943
|
...!!s && {
|
|
@@ -2940,7 +2946,7 @@ function ps({
|
|
|
2940
2946
|
}
|
|
2941
2947
|
}, r), n);
|
|
2942
2948
|
}
|
|
2943
|
-
const
|
|
2949
|
+
const ys = 6144;
|
|
2944
2950
|
async function Ut({
|
|
2945
2951
|
signal: n,
|
|
2946
2952
|
body: e,
|
|
@@ -2952,28 +2958,28 @@ async function Ut({
|
|
|
2952
2958
|
requestOptions: {
|
|
2953
2959
|
getMaxUrlLength: a
|
|
2954
2960
|
} = {
|
|
2955
|
-
getMaxUrlLength:
|
|
2961
|
+
getMaxUrlLength: ys
|
|
2956
2962
|
},
|
|
2957
2963
|
...l
|
|
2958
2964
|
}) {
|
|
2959
|
-
let d =
|
|
2965
|
+
let d = cs({
|
|
2960
2966
|
url: i,
|
|
2961
2967
|
params: o
|
|
2962
|
-
}),
|
|
2963
|
-
s === be.get && d.length > a && (
|
|
2964
|
-
const b =
|
|
2965
|
-
body:
|
|
2968
|
+
}), f = e, y = s;
|
|
2969
|
+
s === be.get && d.length > a && (f = o, y = be.post, d = i);
|
|
2970
|
+
const b = ms({
|
|
2971
|
+
body: f,
|
|
2966
2972
|
accessToken: t ?? r?.accessToken,
|
|
2967
|
-
method:
|
|
2973
|
+
method: y,
|
|
2968
2974
|
...l
|
|
2969
2975
|
});
|
|
2970
2976
|
n && (b.signal = n);
|
|
2971
|
-
const
|
|
2972
|
-
if (!
|
|
2973
|
-
const M = await
|
|
2977
|
+
const p = await is(d, b);
|
|
2978
|
+
if (!p.ok) {
|
|
2979
|
+
const M = await p.text();
|
|
2974
2980
|
throw new Error(M);
|
|
2975
2981
|
}
|
|
2976
|
-
return
|
|
2982
|
+
return p.status === 204 ? Promise.resolve() : await p.json();
|
|
2977
2983
|
}
|
|
2978
2984
|
const Pe = gt()(kn((n, e) => ({
|
|
2979
2985
|
sources: {},
|
|
@@ -2985,12 +2991,12 @@ const Pe = gt()(kn((n, e) => ({
|
|
|
2985
2991
|
i && (i.destroy(), delete o[t].widgets);
|
|
2986
2992
|
const a = o[t], l = {
|
|
2987
2993
|
apiBaseUrl: Ke,
|
|
2988
|
-
clientId:
|
|
2994
|
+
clientId: as,
|
|
2989
2995
|
apiVersion: Ye,
|
|
2990
2996
|
...a,
|
|
2991
2997
|
...r
|
|
2992
2998
|
};
|
|
2993
|
-
return l.widgets =
|
|
2999
|
+
return l.widgets = Ss({
|
|
2994
3000
|
source: l
|
|
2995
3001
|
}), o[t] = l, {
|
|
2996
3002
|
sources: o
|
|
@@ -3052,17 +3058,17 @@ const Pe = gt()(kn((n, e) => ({
|
|
|
3052
3058
|
}, r);
|
|
3053
3059
|
}
|
|
3054
3060
|
})));
|
|
3055
|
-
function
|
|
3061
|
+
function hs(n) {
|
|
3056
3062
|
const e = j(2);
|
|
3057
3063
|
let t;
|
|
3058
3064
|
return e[0] !== n ? (t = (r) => r.sources[n], e[0] = n, e[1] = t) : t = e[1], Pe(t);
|
|
3059
3065
|
}
|
|
3060
|
-
function
|
|
3066
|
+
function gs(n) {
|
|
3061
3067
|
const e = j(2);
|
|
3062
3068
|
let t;
|
|
3063
3069
|
return e[0] !== n ? (t = (r) => r.filters[n], e[0] = n, e[1] = t) : t = e[1], Pe(t);
|
|
3064
3070
|
}
|
|
3065
|
-
function
|
|
3071
|
+
function wo(n) {
|
|
3066
3072
|
const e = j(9);
|
|
3067
3073
|
let t;
|
|
3068
3074
|
e[0] !== n ? (t = (a) => a.sources[n], e[0] = n, e[1] = t) : t = e[1];
|
|
@@ -3086,26 +3092,26 @@ function vo(n) {
|
|
|
3086
3092
|
}
|
|
3087
3093
|
return i;
|
|
3088
3094
|
}
|
|
3089
|
-
function
|
|
3095
|
+
function Mo(n, {
|
|
3090
3096
|
column: e,
|
|
3091
3097
|
type: t
|
|
3092
3098
|
}) {
|
|
3093
3099
|
return n?.[e]?.[t]?.values ?? [];
|
|
3094
3100
|
}
|
|
3095
|
-
function
|
|
3101
|
+
function bs(n) {
|
|
3096
3102
|
const [, e] = n.type.split("+", 2);
|
|
3097
3103
|
return {
|
|
3098
3104
|
spatialDataType: n.spatialDataType ?? e ?? "geo",
|
|
3099
3105
|
spatialDataColumn: n.spatialDataColumn ?? e ?? "geom"
|
|
3100
3106
|
};
|
|
3101
3107
|
}
|
|
3102
|
-
function
|
|
3108
|
+
function Ss({
|
|
3103
3109
|
source: n
|
|
3104
3110
|
}) {
|
|
3105
3111
|
const {
|
|
3106
3112
|
spatialDataType: e,
|
|
3107
3113
|
spatialDataColumn: t
|
|
3108
|
-
} =
|
|
3114
|
+
} = bs(n), r = {
|
|
3109
3115
|
query: () => {
|
|
3110
3116
|
const i = n;
|
|
3111
3117
|
return new En({
|
|
@@ -3153,8 +3159,8 @@ function bs({
|
|
|
3153
3159
|
}, s = n.type.split("+")[0], o = r[s];
|
|
3154
3160
|
return o?.();
|
|
3155
3161
|
}
|
|
3156
|
-
function
|
|
3157
|
-
const t = j(5), r =
|
|
3162
|
+
function vs(n, e) {
|
|
3163
|
+
const t = j(5), r = gs(n);
|
|
3158
3164
|
let s;
|
|
3159
3165
|
e: {
|
|
3160
3166
|
if (!e?.length) {
|
|
@@ -3163,12 +3169,12 @@ function Ss(n, e) {
|
|
|
3163
3169
|
}
|
|
3164
3170
|
if (!r) {
|
|
3165
3171
|
let i;
|
|
3166
|
-
t[0] !== e ? (i = e.reduce(
|
|
3172
|
+
t[0] !== e ? (i = e.reduce(Ms, {}), t[0] = e, t[1] = i) : i = t[1], s = i;
|
|
3167
3173
|
break e;
|
|
3168
3174
|
}
|
|
3169
3175
|
let o;
|
|
3170
3176
|
if (t[2] !== e || t[3] !== r) {
|
|
3171
|
-
const i = e.reduce(
|
|
3177
|
+
const i = e.reduce(ws, {});
|
|
3172
3178
|
o = me(r, i), t[2] = e, t[3] = r, t[4] = o;
|
|
3173
3179
|
} else
|
|
3174
3180
|
o = t[4];
|
|
@@ -3176,54 +3182,54 @@ function Ss(n, e) {
|
|
|
3176
3182
|
}
|
|
3177
3183
|
return s;
|
|
3178
3184
|
}
|
|
3179
|
-
function vs(n, e) {
|
|
3180
|
-
return We(n, e);
|
|
3181
|
-
}
|
|
3182
3185
|
function ws(n, e) {
|
|
3183
3186
|
return We(n, e);
|
|
3184
3187
|
}
|
|
3185
3188
|
function Ms(n, e) {
|
|
3186
|
-
|
|
3189
|
+
return We(n, e);
|
|
3190
|
+
}
|
|
3191
|
+
function _s(n, e) {
|
|
3192
|
+
const t = hs(e);
|
|
3187
3193
|
return ge(() => {
|
|
3188
3194
|
const r = t?.widgets;
|
|
3189
3195
|
return !r || !n ? null : (r.props.accessToken = n, r);
|
|
3190
3196
|
}, [n, t]);
|
|
3191
3197
|
}
|
|
3192
|
-
const
|
|
3193
|
-
function
|
|
3198
|
+
const Es = ["authorization", "cache-control"];
|
|
3199
|
+
function Ts(n) {
|
|
3194
3200
|
if (!n || typeof n != "object")
|
|
3195
3201
|
return "";
|
|
3196
3202
|
const e = {};
|
|
3197
3203
|
for (const [t, r] of Object.entries(n)) {
|
|
3198
3204
|
const s = t.toLowerCase();
|
|
3199
|
-
|
|
3205
|
+
Es.includes(s) && (e[s] = r);
|
|
3200
3206
|
}
|
|
3201
3207
|
return Object.keys(e).length > 0 ? JSON.stringify(e) : "";
|
|
3202
3208
|
}
|
|
3203
|
-
function
|
|
3209
|
+
function Ls(n) {
|
|
3204
3210
|
const e = j(12), {
|
|
3205
3211
|
accessToken: t,
|
|
3206
3212
|
sourceId: r,
|
|
3207
3213
|
widgetProps: s,
|
|
3208
3214
|
additionalFilter: o
|
|
3209
|
-
} = n, i =
|
|
3215
|
+
} = n, i = vs(r, o), a = _s(t, r);
|
|
3210
3216
|
let l;
|
|
3211
3217
|
if (e[0] !== t || e[1] !== i || e[2] !== r || e[3] !== a || e[4] !== s) {
|
|
3212
3218
|
l = [r, s], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
|
|
3213
|
-
const
|
|
3219
|
+
const y = a?.props.headers;
|
|
3214
3220
|
let b;
|
|
3215
|
-
e[6] !==
|
|
3216
|
-
const
|
|
3217
|
-
|
|
3221
|
+
e[6] !== y ? (b = Ts(y), e[6] = y, e[7] = b) : b = e[7];
|
|
3222
|
+
const p = b;
|
|
3223
|
+
p && l.push(p), l.push(t), e[0] = t, e[1] = i, e[2] = r, e[3] = a, e[4] = s, e[5] = l;
|
|
3218
3224
|
} else
|
|
3219
3225
|
l = e[5];
|
|
3220
3226
|
const d = l;
|
|
3221
|
-
let
|
|
3222
|
-
return e[8] !== i || e[9] !== d || e[10] !== a ? (
|
|
3227
|
+
let f;
|
|
3228
|
+
return e[8] !== i || e[9] !== d || e[10] !== a ? (f = {
|
|
3223
3229
|
mergedFilters: i,
|
|
3224
3230
|
widgetModel: a,
|
|
3225
3231
|
queryKey: d
|
|
3226
|
-
}, e[8] = i, e[9] = d, e[10] = a, e[11] =
|
|
3232
|
+
}, e[8] = i, e[9] = d, e[10] = a, e[11] = f) : f = e[11], f;
|
|
3227
3233
|
}
|
|
3228
3234
|
function de({
|
|
3229
3235
|
queryKeyPrefix: n,
|
|
@@ -3235,15 +3241,15 @@ function de({
|
|
|
3235
3241
|
sourceId: a,
|
|
3236
3242
|
widgetProps: l,
|
|
3237
3243
|
additionalFilter: d,
|
|
3238
|
-
useQueryProps:
|
|
3244
|
+
useQueryProps: f
|
|
3239
3245
|
} = s;
|
|
3240
|
-
let
|
|
3241
|
-
o[0] !==
|
|
3242
|
-
let b,
|
|
3243
|
-
o[2] !==
|
|
3246
|
+
let y;
|
|
3247
|
+
o[0] !== f ? (y = f === void 0 ? {} : f, o[0] = f, o[1] = y) : y = o[1];
|
|
3248
|
+
let b, p;
|
|
3249
|
+
o[2] !== y ? ({
|
|
3244
3250
|
enabled: b,
|
|
3245
|
-
...
|
|
3246
|
-
} =
|
|
3251
|
+
...p
|
|
3252
|
+
} = y, o[2] = y, o[3] = b, o[4] = p) : (b = o[3], p = o[4]);
|
|
3247
3253
|
const M = b === void 0 ? !0 : b;
|
|
3248
3254
|
let S;
|
|
3249
3255
|
o[5] !== i || o[6] !== d || o[7] !== a || o[8] !== l ? (S = {
|
|
@@ -3256,30 +3262,30 @@ function de({
|
|
|
3256
3262
|
mergedFilters: L,
|
|
3257
3263
|
queryKey: u,
|
|
3258
3264
|
widgetModel: m
|
|
3259
|
-
} =
|
|
3265
|
+
} = Ls(S);
|
|
3260
3266
|
let g;
|
|
3261
3267
|
o[10] !== u ? (g = [...n, ...u], o[10] = u, o[11] = g) : g = o[11];
|
|
3262
3268
|
let w;
|
|
3263
|
-
o[12] !== L || o[13] !== m || o[14] !== l ? (w = (
|
|
3269
|
+
o[12] !== L || o[13] !== m || o[14] !== l ? (w = (D) => {
|
|
3264
3270
|
const {
|
|
3265
|
-
signal:
|
|
3266
|
-
} =
|
|
3271
|
+
signal: U
|
|
3272
|
+
} = D;
|
|
3267
3273
|
if (!m)
|
|
3268
3274
|
throw new Error("widgetModel is not available");
|
|
3269
3275
|
return e(m)({
|
|
3270
3276
|
...l,
|
|
3271
3277
|
filters: L,
|
|
3272
|
-
signal:
|
|
3278
|
+
signal: U
|
|
3273
3279
|
});
|
|
3274
3280
|
}, o[12] = L, o[13] = m, o[14] = l, o[15] = w) : w = o[15];
|
|
3275
3281
|
const v = !!m && M;
|
|
3276
3282
|
let k;
|
|
3277
|
-
return o[16] !== g || o[17] !== w || o[18] !== v || o[19] !==
|
|
3283
|
+
return o[16] !== g || o[17] !== w || o[18] !== v || o[19] !== p ? (k = {
|
|
3278
3284
|
queryKey: g,
|
|
3279
3285
|
queryFn: w,
|
|
3280
3286
|
enabled: v,
|
|
3281
|
-
...
|
|
3282
|
-
}, o[16] = g, o[17] = w, o[18] = v, o[19] =
|
|
3287
|
+
...p
|
|
3288
|
+
}, o[16] = g, o[17] = w, o[18] = v, o[19] = p, o[20] = k) : k = o[20], Et(k);
|
|
3283
3289
|
};
|
|
3284
3290
|
return {
|
|
3285
3291
|
useModelHook: t,
|
|
@@ -3297,13 +3303,13 @@ function de({
|
|
|
3297
3303
|
};
|
|
3298
3304
|
}
|
|
3299
3305
|
const {
|
|
3300
|
-
useModelHook:
|
|
3301
|
-
ModelComponent:
|
|
3306
|
+
useModelHook: _o,
|
|
3307
|
+
ModelComponent: Eo
|
|
3302
3308
|
} = de({
|
|
3303
3309
|
queryKeyPrefix: ["aggregations"],
|
|
3304
3310
|
getWidgetMethod: (n) => (e) => {
|
|
3305
3311
|
let t = e.aggregations.filter((s) => s.operation !== "custom");
|
|
3306
|
-
e.aggregations.some((s) => s.operation === "custom") && (t =
|
|
3312
|
+
e.aggregations.some((s) => s.operation === "custom") && (t = ks(e.aggregations).join(","));
|
|
3307
3313
|
const r = {
|
|
3308
3314
|
...e,
|
|
3309
3315
|
aggregations: t
|
|
@@ -3311,7 +3317,7 @@ const {
|
|
|
3311
3317
|
return n.getAggregations(r);
|
|
3312
3318
|
}
|
|
3313
3319
|
});
|
|
3314
|
-
function
|
|
3320
|
+
function ks(n) {
|
|
3315
3321
|
return n.map((e) => {
|
|
3316
3322
|
if (e.operation === "custom")
|
|
3317
3323
|
return `${e.aggregationExp} AS ${e.alias}`;
|
|
@@ -3337,55 +3343,55 @@ function Ls(n) {
|
|
|
3337
3343
|
});
|
|
3338
3344
|
}
|
|
3339
3345
|
const {
|
|
3340
|
-
useModelHook:
|
|
3341
|
-
ModelComponent:
|
|
3346
|
+
useModelHook: To,
|
|
3347
|
+
ModelComponent: Lo
|
|
3342
3348
|
} = de({
|
|
3343
3349
|
queryKeyPrefix: ["categories"],
|
|
3344
3350
|
getWidgetMethod: (n) => n.getCategories.bind(n)
|
|
3345
3351
|
}), {
|
|
3346
|
-
useModelHook:
|
|
3347
|
-
ModelComponent:
|
|
3352
|
+
useModelHook: ko,
|
|
3353
|
+
ModelComponent: Co
|
|
3348
3354
|
} = de({
|
|
3349
3355
|
queryKeyPrefix: ["features"],
|
|
3350
3356
|
getWidgetMethod: (n) => n.getFeatures.bind(n)
|
|
3351
3357
|
}), {
|
|
3352
|
-
useModelHook:
|
|
3353
|
-
ModelComponent:
|
|
3358
|
+
useModelHook: Po,
|
|
3359
|
+
ModelComponent: Oo
|
|
3354
3360
|
} = de({
|
|
3355
3361
|
queryKeyPrefix: ["formula"],
|
|
3356
3362
|
getWidgetMethod: (n) => n.getFormula.bind(n)
|
|
3357
3363
|
}), {
|
|
3358
|
-
useModelHook:
|
|
3359
|
-
ModelComponent:
|
|
3364
|
+
useModelHook: Ao,
|
|
3365
|
+
ModelComponent: Fo
|
|
3360
3366
|
} = de({
|
|
3361
3367
|
queryKeyPrefix: ["histogram"],
|
|
3362
3368
|
getWidgetMethod: (n) => n.getHistogram.bind(n)
|
|
3363
3369
|
}), {
|
|
3364
|
-
useModelHook:
|
|
3365
|
-
ModelComponent:
|
|
3370
|
+
useModelHook: Do,
|
|
3371
|
+
ModelComponent: Ro
|
|
3366
3372
|
} = de({
|
|
3367
3373
|
queryKeyPrefix: ["range"],
|
|
3368
3374
|
getWidgetMethod: (n) => n.getRange.bind(n)
|
|
3369
3375
|
}), {
|
|
3370
|
-
useModelHook:
|
|
3371
|
-
ModelComponent:
|
|
3376
|
+
useModelHook: xo,
|
|
3377
|
+
ModelComponent: $o
|
|
3372
3378
|
} = de({
|
|
3373
3379
|
queryKeyPrefix: ["scatter"],
|
|
3374
3380
|
getWidgetMethod: (n) => n.getScatter.bind(n)
|
|
3375
3381
|
}), {
|
|
3376
|
-
useModelHook:
|
|
3377
|
-
ModelComponent:
|
|
3382
|
+
useModelHook: Uo,
|
|
3383
|
+
ModelComponent: Vo
|
|
3378
3384
|
} = de({
|
|
3379
3385
|
queryKeyPrefix: ["table"],
|
|
3380
3386
|
getWidgetMethod: (n) => n.getTable.bind(n)
|
|
3381
3387
|
}), {
|
|
3382
|
-
useModelHook:
|
|
3383
|
-
ModelComponent:
|
|
3388
|
+
useModelHook: qo,
|
|
3389
|
+
ModelComponent: jo
|
|
3384
3390
|
} = de({
|
|
3385
3391
|
queryKeyPrefix: ["timeSeries"],
|
|
3386
3392
|
getWidgetMethod: (n) => n.getTimeSeries.bind(n)
|
|
3387
|
-
}),
|
|
3388
|
-
function
|
|
3393
|
+
}), Bo = "ps";
|
|
3394
|
+
function Io(n) {
|
|
3389
3395
|
const e = j(13), {
|
|
3390
3396
|
children: t,
|
|
3391
3397
|
maps: r,
|
|
@@ -3398,41 +3404,41 @@ function Bo(n) {
|
|
|
3398
3404
|
let l;
|
|
3399
3405
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3400
3406
|
const d = l;
|
|
3401
|
-
let
|
|
3402
|
-
e[4] !== t || e[5] !== d ? (
|
|
3403
|
-
let
|
|
3404
|
-
e[7] !== a || e[8] !==
|
|
3407
|
+
let f;
|
|
3408
|
+
e[4] !== t || e[5] !== d ? (f = /* @__PURE__ */ G(Pr, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = f) : f = e[6];
|
|
3409
|
+
let y;
|
|
3410
|
+
e[7] !== a || e[8] !== f ? (y = /* @__PURE__ */ G(fr, { values: a, children: f }), e[7] = a, e[8] = f, e[9] = y) : y = e[9];
|
|
3405
3411
|
let b;
|
|
3406
|
-
return e[10] !== r || e[11] !==
|
|
3412
|
+
return e[10] !== r || e[11] !== y ? (b = /* @__PURE__ */ G(er, { values: r, children: y }), e[10] = r, e[11] = y, e[12] = b) : b = e[12], b;
|
|
3407
3413
|
}
|
|
3408
|
-
function
|
|
3409
|
-
const t = Se((d) => d.layers), r = Se((d) => d.setLayer), s = ge(() => $t(n.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, n]), o = ge(() => s.map(e), [e, s]), i =
|
|
3414
|
+
function Ho(n, e) {
|
|
3415
|
+
const t = Se((d) => d.layers), r = Se((d) => d.setLayer), s = ge(() => $t(n.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, n]), o = ge(() => s.map(e), [e, s]), i = se(({
|
|
3410
3416
|
id: d,
|
|
3411
|
-
visible:
|
|
3412
|
-
...
|
|
3417
|
+
visible: f,
|
|
3418
|
+
...y
|
|
3413
3419
|
}) => {
|
|
3414
3420
|
r(d, {
|
|
3415
3421
|
props: {
|
|
3416
|
-
visible:
|
|
3422
|
+
visible: f
|
|
3417
3423
|
},
|
|
3418
|
-
legend:
|
|
3424
|
+
legend: y
|
|
3419
3425
|
});
|
|
3420
|
-
}, [r]), a =
|
|
3426
|
+
}, [r]), a = se(({
|
|
3421
3427
|
id: d,
|
|
3422
|
-
collapsed:
|
|
3428
|
+
collapsed: f
|
|
3423
3429
|
}) => {
|
|
3424
3430
|
r(d, {
|
|
3425
3431
|
legend: {
|
|
3426
|
-
collapsed:
|
|
3432
|
+
collapsed: f
|
|
3427
3433
|
}
|
|
3428
3434
|
});
|
|
3429
|
-
}, [r]), l =
|
|
3435
|
+
}, [r]), l = se(({
|
|
3430
3436
|
id: d,
|
|
3431
|
-
opacity:
|
|
3437
|
+
opacity: f
|
|
3432
3438
|
}) => {
|
|
3433
3439
|
r(d, {
|
|
3434
3440
|
props: {
|
|
3435
|
-
opacity:
|
|
3441
|
+
opacity: f
|
|
3436
3442
|
}
|
|
3437
3443
|
});
|
|
3438
3444
|
}, [r]);
|
|
@@ -3443,12 +3449,12 @@ function Io(n, e) {
|
|
|
3443
3449
|
onChangeRowCollapse: a
|
|
3444
3450
|
};
|
|
3445
3451
|
}
|
|
3446
|
-
function
|
|
3452
|
+
function No({
|
|
3447
3453
|
mapId: n
|
|
3448
3454
|
}) {
|
|
3449
|
-
const [e, t] = ue(void 0), [r, s] = ue(!1), [o, i] = ue(void 0), a = x((u) => u.maps[n]?.basemap), l = x((u) => u.getDeckInstance), d = x((u) => u.getOverlayInstance),
|
|
3450
|
-
type:
|
|
3451
|
-
} = we[a], M =
|
|
3455
|
+
const [e, t] = ue(void 0), [r, s] = ue(!1), [o, i] = ue(void 0), a = x((u) => u.maps[n]?.basemap), l = x((u) => u.getDeckInstance), d = x((u) => u.getOverlayInstance), f = x((u) => u.areLayersLoaded[n]), b = x((u) => u.maps[n]?.isLoaded) && f, {
|
|
3456
|
+
type: p
|
|
3457
|
+
} = we[a], M = p === ce.googleMaps, S = se(async () => {
|
|
3452
3458
|
const u = l(n), m = d(n);
|
|
3453
3459
|
try {
|
|
3454
3460
|
const g = document.createElement("canvas");
|
|
@@ -3458,10 +3464,10 @@ function Ho({
|
|
|
3458
3464
|
const k = m;
|
|
3459
3465
|
if (k.getRenderingType() !== "RASTER")
|
|
3460
3466
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3461
|
-
const
|
|
3467
|
+
const D = await Cn(k.getDiv(), {
|
|
3462
3468
|
useCORS: !0
|
|
3463
3469
|
});
|
|
3464
|
-
w?.drawImage(
|
|
3470
|
+
w?.drawImage(D, 0, 0, u.width, u.height);
|
|
3465
3471
|
} else {
|
|
3466
3472
|
const k = m;
|
|
3467
3473
|
k.redraw(), w?.drawImage(k.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
@@ -3476,7 +3482,7 @@ function Ho({
|
|
|
3476
3482
|
}
|
|
3477
3483
|
}, [l, M, n, d]);
|
|
3478
3484
|
return {
|
|
3479
|
-
takeScreenshot:
|
|
3485
|
+
takeScreenshot: se(() => {
|
|
3480
3486
|
i(void 0), s(!0), b && S();
|
|
3481
3487
|
}, [S, b]),
|
|
3482
3488
|
isLoading: r,
|
|
@@ -3484,7 +3490,7 @@ function Ho({
|
|
|
3484
3490
|
error: o
|
|
3485
3491
|
};
|
|
3486
3492
|
}
|
|
3487
|
-
function
|
|
3493
|
+
function Zo(n) {
|
|
3488
3494
|
const e = j(11), {
|
|
3489
3495
|
mapId: t
|
|
3490
3496
|
} = n;
|
|
@@ -3492,26 +3498,26 @@ function No(n) {
|
|
|
3492
3498
|
e[0] !== t ? (r = {
|
|
3493
3499
|
mapId: t
|
|
3494
3500
|
}, e[0] = t, e[1] = r) : r = e[1];
|
|
3495
|
-
const s =
|
|
3501
|
+
const s = Cs(r);
|
|
3496
3502
|
let o;
|
|
3497
3503
|
e[2] !== t ? (o = {
|
|
3498
3504
|
mapId: t
|
|
3499
3505
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3500
|
-
const i =
|
|
3506
|
+
const i = Ps(o);
|
|
3501
3507
|
let a;
|
|
3502
3508
|
e[4] !== t ? (a = {
|
|
3503
3509
|
mapId: t
|
|
3504
3510
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3505
|
-
const l =
|
|
3506
|
-
let
|
|
3507
|
-
return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== s ? (
|
|
3511
|
+
const l = Fs(a), d = i ?? l ?? s;
|
|
3512
|
+
let f;
|
|
3513
|
+
return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== s ? (f = {
|
|
3508
3514
|
spatialFilter: d,
|
|
3509
3515
|
staticSpatialFilter: l,
|
|
3510
3516
|
lassoToolsSpatialFilter: i,
|
|
3511
3517
|
viewportSpatialFilter: s
|
|
3512
|
-
}, e[6] = i, e[7] = l, e[8] = d, e[9] = s, e[10] =
|
|
3518
|
+
}, e[6] = i, e[7] = l, e[8] = d, e[9] = s, e[10] = f) : f = e[10], f;
|
|
3513
3519
|
}
|
|
3514
|
-
function
|
|
3520
|
+
function Cs(n) {
|
|
3515
3521
|
const e = j(4), {
|
|
3516
3522
|
mapId: t
|
|
3517
3523
|
} = n;
|
|
@@ -3529,38 +3535,38 @@ function ks(n) {
|
|
|
3529
3535
|
}
|
|
3530
3536
|
return o;
|
|
3531
3537
|
}
|
|
3532
|
-
function
|
|
3538
|
+
function Ps(n) {
|
|
3533
3539
|
const e = j(5), {
|
|
3534
3540
|
mapId: t
|
|
3535
3541
|
} = n;
|
|
3536
3542
|
let r;
|
|
3537
3543
|
e[0] !== t ? (r = (i) => i.data[t]?.values, e[0] = t, e[1] = r) : r = e[1];
|
|
3538
|
-
const s =
|
|
3544
|
+
const s = Y(r);
|
|
3539
3545
|
let o;
|
|
3540
3546
|
e: {
|
|
3541
3547
|
let i;
|
|
3542
3548
|
if (e[2] !== s) {
|
|
3543
3549
|
const a = At({
|
|
3544
3550
|
values: s
|
|
3545
|
-
}).filter(
|
|
3551
|
+
}).filter(As);
|
|
3546
3552
|
if (!a?.length) {
|
|
3547
3553
|
o = void 0;
|
|
3548
3554
|
break e;
|
|
3549
3555
|
}
|
|
3550
|
-
i = Ge(a.map(
|
|
3556
|
+
i = Ge(a.map(Os)), e[2] = s, e[3] = i, e[4] = o;
|
|
3551
3557
|
} else
|
|
3552
3558
|
i = e[3], o = e[4];
|
|
3553
3559
|
o = i.geometry;
|
|
3554
3560
|
}
|
|
3555
3561
|
return o;
|
|
3556
3562
|
}
|
|
3557
|
-
function
|
|
3563
|
+
function Os(n) {
|
|
3558
3564
|
return n.geometry.coordinates;
|
|
3559
3565
|
}
|
|
3560
|
-
function
|
|
3566
|
+
function As(n) {
|
|
3561
3567
|
return n.properties.visible;
|
|
3562
3568
|
}
|
|
3563
|
-
function
|
|
3569
|
+
function Fs(n) {
|
|
3564
3570
|
const e = j(4), {
|
|
3565
3571
|
mapId: t
|
|
3566
3572
|
} = n;
|
|
@@ -3575,7 +3581,7 @@ function As(n) {
|
|
|
3575
3581
|
}
|
|
3576
3582
|
let i;
|
|
3577
3583
|
if (e[2] !== s) {
|
|
3578
|
-
const a = Object.values(s).filter(
|
|
3584
|
+
const a = Object.values(s).filter(Rs).flatMap(Ds);
|
|
3579
3585
|
i = Ge(a), e[2] = s, e[3] = i;
|
|
3580
3586
|
} else
|
|
3581
3587
|
i = e[3];
|
|
@@ -3583,10 +3589,10 @@ function As(n) {
|
|
|
3583
3589
|
}
|
|
3584
3590
|
return o;
|
|
3585
3591
|
}
|
|
3586
|
-
function
|
|
3592
|
+
function Ds(n) {
|
|
3587
3593
|
return n.type === "Polygon" ? [n.coordinates] : n.coordinates;
|
|
3588
3594
|
}
|
|
3589
|
-
function
|
|
3595
|
+
function Rs(n) {
|
|
3590
3596
|
return n != null;
|
|
3591
3597
|
}
|
|
3592
3598
|
const ye = {
|
|
@@ -3607,44 +3613,44 @@ const ye = {
|
|
|
3607
3613
|
format: (n) => n.toLocaleString()
|
|
3608
3614
|
}
|
|
3609
3615
|
};
|
|
3610
|
-
function
|
|
3616
|
+
function zo({
|
|
3611
3617
|
properties: n,
|
|
3612
3618
|
formatters: e = {},
|
|
3613
3619
|
includeColumns: t = Object.keys(n),
|
|
3614
3620
|
locale: r = "en-US",
|
|
3615
3621
|
showColumnName: s = !0,
|
|
3616
3622
|
title: o,
|
|
3617
|
-
getColumnName: i =
|
|
3618
|
-
getFieldHtml: a =
|
|
3619
|
-
getTitle: l =
|
|
3620
|
-
getValue: d =
|
|
3623
|
+
getColumnName: i = qs,
|
|
3624
|
+
getFieldHtml: a = $s,
|
|
3625
|
+
getTitle: l = xs,
|
|
3626
|
+
getValue: d = Us
|
|
3621
3627
|
}) {
|
|
3622
|
-
const
|
|
3628
|
+
const f = o ? l(o) : "", b = t.reduce((p, M) => {
|
|
3623
3629
|
const S = e[M], L = n[M], u = d(L, r, S), m = s ? i(M) : "";
|
|
3624
|
-
return
|
|
3630
|
+
return p + a(m, u);
|
|
3625
3631
|
}, "");
|
|
3626
|
-
return
|
|
3632
|
+
return f + b;
|
|
3627
3633
|
}
|
|
3628
|
-
function
|
|
3634
|
+
function xs(n) {
|
|
3629
3635
|
return `<h3 style="margin: 0"><strong>${n}</strong></h3></br>`;
|
|
3630
3636
|
}
|
|
3631
|
-
function
|
|
3637
|
+
function $s(n, e) {
|
|
3632
3638
|
return `${n}${e}</br>`;
|
|
3633
3639
|
}
|
|
3634
|
-
function
|
|
3640
|
+
function Us(n, e, t) {
|
|
3635
3641
|
try {
|
|
3636
|
-
return
|
|
3642
|
+
return Vs(t)(n, e);
|
|
3637
3643
|
} catch {
|
|
3638
3644
|
return n;
|
|
3639
3645
|
}
|
|
3640
3646
|
}
|
|
3641
|
-
function
|
|
3647
|
+
function Vs(n) {
|
|
3642
3648
|
return typeof n == "function" ? n : ((n && mt[n]) ?? mt[ye.default]).format;
|
|
3643
3649
|
}
|
|
3644
|
-
function
|
|
3650
|
+
function qs(n) {
|
|
3645
3651
|
return `<strong>${n}</strong>: `;
|
|
3646
3652
|
}
|
|
3647
|
-
function
|
|
3653
|
+
function Go(n) {
|
|
3648
3654
|
return {
|
|
3649
3655
|
collapsed: n.legend?.collapsed,
|
|
3650
3656
|
collapsible: n.legend?.collapsible,
|
|
@@ -3660,7 +3666,7 @@ function zo(n) {
|
|
|
3660
3666
|
visible: n.props.visible ?? !0
|
|
3661
3667
|
};
|
|
3662
3668
|
}
|
|
3663
|
-
const
|
|
3669
|
+
const js = {
|
|
3664
3670
|
Point: (n) => yn(n.coordinates),
|
|
3665
3671
|
LineString: (n) => mn(n.coordinates),
|
|
3666
3672
|
Polygon: (n) => pn(n.coordinates),
|
|
@@ -3668,12 +3674,12 @@ const qs = {
|
|
|
3668
3674
|
MultiLineString: (n) => dn(n.coordinates),
|
|
3669
3675
|
MultiPolygon: (n) => Ge(n.coordinates)
|
|
3670
3676
|
};
|
|
3671
|
-
function
|
|
3672
|
-
const e =
|
|
3677
|
+
function Wo(n) {
|
|
3678
|
+
const e = js[n.type], t = e?.(n);
|
|
3673
3679
|
if (t)
|
|
3674
3680
|
return wt(t).geometry.coordinates;
|
|
3675
3681
|
}
|
|
3676
|
-
function
|
|
3682
|
+
function Ko(n) {
|
|
3677
3683
|
const e = j(22), {
|
|
3678
3684
|
children: t,
|
|
3679
3685
|
mapId: r
|
|
@@ -3687,37 +3693,37 @@ function Wo(n) {
|
|
|
3687
3693
|
} = x(s);
|
|
3688
3694
|
let l;
|
|
3689
3695
|
e[2] !== r ? (l = (v) => v.areLayersLoaded[r], e[2] = r, e[3] = l) : l = e[3];
|
|
3690
|
-
const d = x(l),
|
|
3696
|
+
const d = x(l), f = x(Hs), y = x(Is), b = x(Bs), p = !d;
|
|
3691
3697
|
let M;
|
|
3692
|
-
e[4] !== r || e[5] !==
|
|
3698
|
+
e[4] !== r || e[5] !== f ? (M = (v) => f(r, v), e[4] = r, e[5] = f, e[6] = M) : M = e[6];
|
|
3693
3699
|
const S = M;
|
|
3694
3700
|
let L;
|
|
3695
|
-
e[7] !==
|
|
3701
|
+
e[7] !== y || e[8] !== r ? (L = (v) => y(r, v), e[7] = y, e[8] = r, e[9] = L) : L = e[9];
|
|
3696
3702
|
const u = L;
|
|
3697
3703
|
let m;
|
|
3698
3704
|
e[10] !== r || e[11] !== b ? (m = () => b(r), e[10] = r, e[11] = b, e[12] = m) : m = e[12];
|
|
3699
3705
|
const g = m;
|
|
3700
3706
|
let w;
|
|
3701
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !==
|
|
3707
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== S || e[18] !== u || e[19] !== g || e[20] !== o ? (w = t({
|
|
3702
3708
|
zoom: o,
|
|
3703
3709
|
maxZoom: i,
|
|
3704
3710
|
minZoom: a,
|
|
3705
|
-
isLoading:
|
|
3711
|
+
isLoading: p,
|
|
3706
3712
|
setZoom: S,
|
|
3707
3713
|
flyTo: u,
|
|
3708
3714
|
resetViewState: g
|
|
3709
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] =
|
|
3715
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = S, e[18] = u, e[19] = g, e[20] = o, e[21] = w) : w = e[21], w;
|
|
3710
3716
|
}
|
|
3711
|
-
function
|
|
3717
|
+
function Bs(n) {
|
|
3712
3718
|
return n.resetViewState;
|
|
3713
3719
|
}
|
|
3714
|
-
function
|
|
3720
|
+
function Is(n) {
|
|
3715
3721
|
return n.flyTo;
|
|
3716
3722
|
}
|
|
3717
|
-
function
|
|
3723
|
+
function Hs(n) {
|
|
3718
3724
|
return n.setZoom;
|
|
3719
3725
|
}
|
|
3720
|
-
async function
|
|
3726
|
+
async function Ns({
|
|
3721
3727
|
baseUrl: n = Ke,
|
|
3722
3728
|
connection: e,
|
|
3723
3729
|
accessToken: t,
|
|
@@ -3731,11 +3737,11 @@ async function Hs({
|
|
|
3731
3737
|
params: l,
|
|
3732
3738
|
apiVersion: d = Ye
|
|
3733
3739
|
}) {
|
|
3734
|
-
const
|
|
3740
|
+
const f = `${n}/${d}/stats/${e}/${s}`;
|
|
3735
3741
|
return Ut({
|
|
3736
3742
|
accessToken: t,
|
|
3737
3743
|
signal: o,
|
|
3738
|
-
url:
|
|
3744
|
+
url: f,
|
|
3739
3745
|
method: be.get,
|
|
3740
3746
|
params: {
|
|
3741
3747
|
q: r,
|
|
@@ -3745,7 +3751,7 @@ async function Hs({
|
|
|
3745
3751
|
...i
|
|
3746
3752
|
});
|
|
3747
3753
|
}
|
|
3748
|
-
async function
|
|
3754
|
+
async function Zs({
|
|
3749
3755
|
baseUrl: n = Ke,
|
|
3750
3756
|
connection: e,
|
|
3751
3757
|
accessToken: t,
|
|
@@ -3770,7 +3776,7 @@ async function Ns({
|
|
|
3770
3776
|
...a
|
|
3771
3777
|
});
|
|
3772
3778
|
}
|
|
3773
|
-
function
|
|
3779
|
+
function Yo(n) {
|
|
3774
3780
|
const e = j(20), {
|
|
3775
3781
|
source: t,
|
|
3776
3782
|
attribute: r,
|
|
@@ -3781,37 +3787,37 @@ function Ko(n) {
|
|
|
3781
3787
|
} = n;
|
|
3782
3788
|
let l;
|
|
3783
3789
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3784
|
-
let d,
|
|
3790
|
+
let d, f;
|
|
3785
3791
|
e[2] !== l ? ({
|
|
3786
3792
|
enabled: d,
|
|
3787
|
-
...
|
|
3788
|
-
} = l, e[2] = l, e[3] = d, e[4] =
|
|
3789
|
-
const
|
|
3793
|
+
...f
|
|
3794
|
+
} = l, e[2] = l, e[3] = d, e[4] = f) : (d = e[3], f = e[4]);
|
|
3795
|
+
const y = d === void 0 ? !0 : d;
|
|
3790
3796
|
let b;
|
|
3791
3797
|
e[5] !== r || e[6] !== t ? (b = [t, r], e[5] = r, e[6] = t, e[7] = b) : b = e[7];
|
|
3792
|
-
let
|
|
3793
|
-
e[8] !== s || e[9] !== r || e[10] !== i || e[11] !== o || e[12] !== t ? (
|
|
3798
|
+
let p;
|
|
3799
|
+
e[8] !== s || e[9] !== r || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => zs({
|
|
3794
3800
|
source: t,
|
|
3795
3801
|
params: o,
|
|
3796
3802
|
attribute: r,
|
|
3797
3803
|
accessToken: s,
|
|
3798
3804
|
fetcherOptions: i
|
|
3799
|
-
}), e[8] = s, e[9] = r, e[10] = i, e[11] = o, e[12] = t, e[13] =
|
|
3805
|
+
}), e[8] = s, e[9] = r, e[10] = i, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
3800
3806
|
let M;
|
|
3801
|
-
return e[14] !==
|
|
3807
|
+
return e[14] !== y || e[15] !== t || e[16] !== b || e[17] !== p || e[18] !== f ? (M = {
|
|
3802
3808
|
queryKey: b,
|
|
3803
|
-
queryFn:
|
|
3809
|
+
queryFn: p,
|
|
3804
3810
|
select(S) {
|
|
3805
3811
|
return {
|
|
3806
3812
|
...S,
|
|
3807
3813
|
type: S.type.toLowerCase()
|
|
3808
3814
|
};
|
|
3809
3815
|
},
|
|
3810
|
-
enabled: !!t &&
|
|
3811
|
-
...
|
|
3812
|
-
}, e[14] =
|
|
3816
|
+
enabled: !!t && y,
|
|
3817
|
+
...f
|
|
3818
|
+
}, e[14] = y, e[15] = t, e[16] = b, e[17] = p, e[18] = f, e[19] = M) : M = e[19], Et(M);
|
|
3813
3819
|
}
|
|
3814
|
-
function
|
|
3820
|
+
function zs({
|
|
3815
3821
|
source: n,
|
|
3816
3822
|
params: e,
|
|
3817
3823
|
attribute: t,
|
|
@@ -3819,7 +3825,7 @@ function Zs({
|
|
|
3819
3825
|
fetcherOptions: s
|
|
3820
3826
|
}) {
|
|
3821
3827
|
if (n.type.startsWith("query"))
|
|
3822
|
-
return
|
|
3828
|
+
return Ns({
|
|
3823
3829
|
connection: n.connectionName,
|
|
3824
3830
|
baseUrl: n.apiBaseUrl,
|
|
3825
3831
|
apiVersion: n.apiVersion,
|
|
@@ -3831,7 +3837,7 @@ function Zs({
|
|
|
3831
3837
|
fetcherOptions: s
|
|
3832
3838
|
});
|
|
3833
3839
|
if (n.type.startsWith("table"))
|
|
3834
|
-
return
|
|
3840
|
+
return Zs({
|
|
3835
3841
|
connection: n.connectionName,
|
|
3836
3842
|
baseUrl: n.apiBaseUrl,
|
|
3837
3843
|
apiVersion: n.apiVersion,
|
|
@@ -3842,7 +3848,7 @@ function Zs({
|
|
|
3842
3848
|
fetcherOptions: s
|
|
3843
3849
|
});
|
|
3844
3850
|
if (n.type.startsWith("tileset"))
|
|
3845
|
-
return
|
|
3851
|
+
return Gs({
|
|
3846
3852
|
source: n,
|
|
3847
3853
|
accessToken: r,
|
|
3848
3854
|
target: n.data,
|
|
@@ -3850,7 +3856,7 @@ function Zs({
|
|
|
3850
3856
|
});
|
|
3851
3857
|
throw new Error(`Unsupported source type: ${n.type}`);
|
|
3852
3858
|
}
|
|
3853
|
-
async function
|
|
3859
|
+
async function Gs({
|
|
3854
3860
|
source: n,
|
|
3855
3861
|
accessToken: e,
|
|
3856
3862
|
target: t,
|
|
@@ -3871,12 +3877,12 @@ async function zs({
|
|
|
3871
3877
|
return i;
|
|
3872
3878
|
}
|
|
3873
3879
|
export {
|
|
3874
|
-
|
|
3875
|
-
|
|
3880
|
+
Eo as AggregationsModel,
|
|
3881
|
+
bo as BasemapsControls,
|
|
3876
3882
|
at as CONVERSIONS_UNITS,
|
|
3877
3883
|
Re as CartoBasemapURL,
|
|
3878
3884
|
ae as CartoBasemaps,
|
|
3879
|
-
|
|
3885
|
+
Lo as CategoriesModel,
|
|
3880
3886
|
nr as CustomCompositeEditMode,
|
|
3881
3887
|
Pt as CustomEditableGeojsonLayer,
|
|
3882
3888
|
gr as CustomMeasureAreaMode,
|
|
@@ -3891,11 +3897,11 @@ export {
|
|
|
3891
3897
|
_r as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3892
3898
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
3893
3899
|
Bn as DeckGLComponent,
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3900
|
+
oe as EditableEditType,
|
|
3901
|
+
Co as FeaturesModel,
|
|
3902
|
+
Oo as FormulaModel,
|
|
3897
3903
|
De as GmapsBasemap,
|
|
3898
|
-
|
|
3904
|
+
Fo as HistogramModel,
|
|
3899
3905
|
ve as INTL_UNITS,
|
|
3900
3906
|
Tr as LassoTools,
|
|
3901
3907
|
fr as LassoToolsProvider,
|
|
@@ -3905,63 +3911,63 @@ export {
|
|
|
3905
3911
|
fe as MAP_MEASURE_LAYER_ID,
|
|
3906
3912
|
wr as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3907
3913
|
ct as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3908
|
-
|
|
3909
|
-
|
|
3914
|
+
re as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3915
|
+
vo as MapComponent,
|
|
3910
3916
|
Be as MapMeasurementUnitAuto,
|
|
3911
3917
|
vr as MapMeasurementUnitTurf,
|
|
3912
3918
|
er as MapProvider,
|
|
3913
|
-
|
|
3919
|
+
Io as MapsProvider,
|
|
3914
3920
|
ce as MapsTypes,
|
|
3915
3921
|
jr as MeasurementTools,
|
|
3916
3922
|
Pr as MeasurementToolsProvider,
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
+
Ro as RangeModel,
|
|
3924
|
+
$o as ScatterModel,
|
|
3925
|
+
Vo as TableModel,
|
|
3926
|
+
jo as TimeSeriesModel,
|
|
3927
|
+
Ko as ZoomControls,
|
|
3928
|
+
Bo as clientID,
|
|
3923
3929
|
st as convertMetersTo,
|
|
3924
3930
|
dr as createLassoToolsStore,
|
|
3925
3931
|
Xn as createMapStore,
|
|
3926
3932
|
Cr as createMeasurementToolsStore,
|
|
3927
3933
|
ye as formatterTypes,
|
|
3928
|
-
|
|
3934
|
+
Wo as getCentroid,
|
|
3929
3935
|
Pn as getCursorDefault,
|
|
3930
|
-
|
|
3931
|
-
|
|
3936
|
+
So as getDeckController,
|
|
3937
|
+
Mo as getFilterValues,
|
|
3932
3938
|
cr as getLassoToolsLayer,
|
|
3933
3939
|
Lr as getMeasurementToolsLayer,
|
|
3934
3940
|
Ae as getTextLayerFormattedDistance,
|
|
3935
3941
|
On as getTooltipDefault,
|
|
3936
|
-
|
|
3937
|
-
|
|
3942
|
+
Go as mappingLegendMeridian,
|
|
3943
|
+
zo as objectToHtml,
|
|
3938
3944
|
$t as sortLayers,
|
|
3939
3945
|
Nn as transitionFlyConfig,
|
|
3940
|
-
|
|
3941
|
-
|
|
3946
|
+
_o as useAggregations,
|
|
3947
|
+
To as useCategories,
|
|
3942
3948
|
Ct as useEventManager,
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
+
ko as useFeatures,
|
|
3950
|
+
gs as useFilters,
|
|
3951
|
+
Po as useFormula,
|
|
3952
|
+
Ao as useHistogram,
|
|
3953
|
+
Ps as useLassoToolsSpatialFilter,
|
|
3954
|
+
Y as useLassoToolsState,
|
|
3949
3955
|
Se as useLayerStore,
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3956
|
+
Wr as useLayers,
|
|
3957
|
+
Ho as useLegend,
|
|
3958
|
+
No as useMapScreenshot,
|
|
3953
3959
|
x as useMapStore,
|
|
3954
3960
|
z as useMeasurementToolsState,
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3961
|
+
Do as useRange,
|
|
3962
|
+
xo as useScatter,
|
|
3963
|
+
hs as useSource,
|
|
3958
3964
|
Pe as useSourceStore,
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3965
|
+
wo as useSourceWithFilters,
|
|
3966
|
+
Zo as useSpatialFilter,
|
|
3967
|
+
Yo as useStats,
|
|
3968
|
+
Uo as useTable,
|
|
3969
|
+
qo as useTimeSeries,
|
|
3970
|
+
Cs as useViewportSpatialFilter,
|
|
3971
|
+
_s as useWidgetModel
|
|
3966
3972
|
};
|
|
3967
3973
|
//# sourceMappingURL=index.js.map
|