@carto/ps-react-maps 4.0.0 → 4.0.1
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 +1434 -1431
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useImperativeHandle as Ne, useEffect as
|
|
1
|
+
import { jsx as Z, jsxs as mt } from "react/jsx-runtime";
|
|
2
|
+
import { c as O } from "react/compiler-runtime";
|
|
3
|
+
import { useImperativeHandle as Ne, useEffect as W, useState as ae, createContext as He, useContext as ze, useMemo as ye, useCallback as ee, useRef as ge } from "react";
|
|
4
4
|
import { MapProvider as xt, Map as Ut, useMap as Vt } from "react-map-gl/maplibre";
|
|
5
5
|
import Bt from "@deck.gl/react";
|
|
6
6
|
import { useMap as yt, Map as jt, APIProvider as It } from "@vis.gl/react-google-maps";
|
|
7
7
|
import { GoogleMapsOverlay as Nt } from "@deck.gl/google-maps";
|
|
8
8
|
import { createStore as Ge, useStore as Ke, create as ht } from "zustand";
|
|
9
9
|
import { FlyToInterpolator as Ht, WebMercatorViewport as gt } from "@deck.gl/core";
|
|
10
|
-
import { CompositeMode as zt, TranslateMode as Gt, ModifyMode as Kt, DrawPolygonByDraggingMode as Zt, DrawCircleFromCenterMode as bt, DrawRectangleMode as Qt, DrawPolygonMode as Wt, EditableGeoJsonLayer as Yt, MeasureAreaMode as Jt, getPickedEditHandle as Xt, MeasureDistanceMode as
|
|
11
|
-
import { DataFilterExtension as
|
|
12
|
-
import { Pan as Ye, InputDirection as
|
|
13
|
-
import { GeoJsonLayer as
|
|
10
|
+
import { CompositeMode as zt, TranslateMode as Gt, ModifyMode as Kt, DrawPolygonByDraggingMode as Zt, DrawCircleFromCenterMode as bt, DrawRectangleMode as Qt, DrawPolygonMode as Wt, EditableGeoJsonLayer as Yt, MeasureAreaMode as Jt, getPickedEditHandle as Xt, MeasureDistanceMode as en, ViewMode as tn } from "@deck.gl-community/editable-layers";
|
|
11
|
+
import { DataFilterExtension as nn, MaskExtension as sn } from "@deck.gl/extensions";
|
|
12
|
+
import { Pan as Ye, InputDirection as rn, EventManager as on, Tap as Je, Pinch as an } from "mjolnir.js";
|
|
13
|
+
import { GeoJsonLayer as ln } from "@deck.gl/layers";
|
|
14
14
|
import { useShallow as vt } from "zustand/shallow";
|
|
15
|
-
import { area as Xe, centroid as
|
|
16
|
-
import { formatNumber as wt, formatCurrency as
|
|
15
|
+
import { area as Xe, centroid as cn, lineIntersect as un, multiPolygon as St } from "@turf/turf";
|
|
16
|
+
import { formatNumber as wt, formatCurrency as dn } from "@carto/ps-utils";
|
|
17
17
|
import _t from "convert-units";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
18
|
+
import fn from "convert-units/definitions/length";
|
|
19
|
+
import pn from "convert-units/definitions/area";
|
|
20
20
|
import { useQuery as le } from "@tanstack/react-query";
|
|
21
|
-
import { removeFilter as
|
|
22
|
-
import { devtools as
|
|
23
|
-
import
|
|
21
|
+
import { removeFilter as mn, addFilter as Mt, WidgetRasterSource as yn, WidgetTilesetSource as hn, TileFormat as gn, WidgetTableSource as bn, WidgetQuerySource as vn, createViewportSpatialFilter as Sn, vectorTilesetSource as wn } from "@carto/api-client";
|
|
22
|
+
import { devtools as _n } from "zustand/middleware";
|
|
23
|
+
import Mn from "html2canvas";
|
|
24
24
|
const De = {
|
|
25
25
|
roadmap: "roadmap",
|
|
26
26
|
satellite: "satellite",
|
|
@@ -36,7 +36,7 @@ const De = {
|
|
|
36
36
|
}, ie = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
39
|
+
}, Se = {
|
|
40
40
|
[re.positron]: {
|
|
41
41
|
url: $e[re.positron],
|
|
42
42
|
type: ie.maplibre
|
|
@@ -60,13 +60,13 @@ const De = {
|
|
|
60
60
|
type: ie.googleMaps
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
function
|
|
63
|
+
function En({
|
|
64
64
|
isDragging: r,
|
|
65
65
|
isHovering: e
|
|
66
66
|
}) {
|
|
67
67
|
return r ? "grabbing" : e ? "pointer" : "grab";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Tn(r) {
|
|
70
70
|
return r.html ? {
|
|
71
71
|
html: `<div class='map-tooltip__content'>${r.html}</div>`,
|
|
72
72
|
style: {
|
|
@@ -75,9 +75,9 @@ function Es(r) {
|
|
|
75
75
|
}
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
const e =
|
|
80
|
-
let t,
|
|
78
|
+
function Ln(r) {
|
|
79
|
+
const e = O(39);
|
|
80
|
+
let t, n, s, o, i, a, l, c, h, y, v, p;
|
|
81
81
|
e[0] !== r ? ({
|
|
82
82
|
instanceRef: i,
|
|
83
83
|
overlayRef: y,
|
|
@@ -85,15 +85,15 @@ function Ts(r) {
|
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
87
87
|
mapStyle: l,
|
|
88
|
-
parameters:
|
|
89
|
-
getCursor:
|
|
90
|
-
getTooltip:
|
|
88
|
+
parameters: v,
|
|
89
|
+
getCursor: n,
|
|
90
|
+
getTooltip: s,
|
|
91
91
|
onLoad: c,
|
|
92
92
|
onViewStateChange: h,
|
|
93
93
|
...p
|
|
94
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
94
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = v, e[12] = p) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], v = e[11], p = e[12]);
|
|
95
95
|
let b;
|
|
96
|
-
e[13] !== a ? (b = a.filter(
|
|
96
|
+
e[13] !== a ? (b = a.filter(Cn).map(kn), e[13] = a, e[14] = b) : b = e[14];
|
|
97
97
|
const m = b, w = i;
|
|
98
98
|
let u;
|
|
99
99
|
e[15] !== c ? (u = () => c({
|
|
@@ -101,85 +101,85 @@ function Ts(r) {
|
|
|
101
101
|
value: !0
|
|
102
102
|
}), e[15] = c, e[16] = u) : u = e[16];
|
|
103
103
|
let f;
|
|
104
|
-
e[17] !==
|
|
104
|
+
e[17] !== v ? (f = {
|
|
105
105
|
depthTest: !1,
|
|
106
|
-
...
|
|
107
|
-
}, e[17] =
|
|
108
|
-
let
|
|
109
|
-
e[19] !== y ? (
|
|
110
|
-
let
|
|
111
|
-
e[21] !== c ? (
|
|
106
|
+
...v
|
|
107
|
+
}, e[17] = v, e[18] = f) : f = e[18];
|
|
108
|
+
let S;
|
|
109
|
+
e[19] !== y ? (S = /* @__PURE__ */ Z(On, { overlayRef: y }), e[19] = y, e[20] = S) : S = e[20];
|
|
110
|
+
let M;
|
|
111
|
+
e[21] !== c ? (M = () => c({
|
|
112
112
|
type: "load",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[21] = c, e[22] =
|
|
115
|
-
let
|
|
116
|
-
e[23] !== l || e[24] !==
|
|
114
|
+
}), e[21] = c, e[22] = M) : M = e[22];
|
|
115
|
+
let _;
|
|
116
|
+
e[23] !== l || e[24] !== M ? (_ = /* @__PURE__ */ Z(Ut, { reuseMaps: !1, mapStyle: l, onLoad: M, onRender: Pn }), e[23] = l, e[24] = M, e[25] = _) : _ = e[25];
|
|
117
117
|
let P;
|
|
118
|
-
return e[26] !== m || e[27] !== t || e[28] !==
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
] }) }) }), e[26] = m, e[27] = t, e[28] =
|
|
118
|
+
return e[26] !== m || e[27] !== t || e[28] !== n || e[29] !== s || e[30] !== o || e[31] !== h || e[32] !== p || e[33] !== w || e[34] !== u || e[35] !== f || e[36] !== S || e[37] !== _ ? (P = /* @__PURE__ */ Z(xt, { children: /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: w, layers: m, getCursor: n, getTooltip: s, onLoad: u, onViewStateChange: h, parameters: f, ...p, children: [
|
|
119
|
+
S,
|
|
120
|
+
_
|
|
121
|
+
] }) }) }), e[26] = m, e[27] = t, e[28] = n, e[29] = s, e[30] = o, e[31] = h, e[32] = p, e[33] = w, e[34] = u, e[35] = f, e[36] = S, e[37] = _, e[38] = P) : P = e[38], P;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Pn() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function kn(r) {
|
|
127
127
|
const {
|
|
128
128
|
type: e,
|
|
129
129
|
props: t
|
|
130
130
|
} = r;
|
|
131
131
|
return new e(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Cn(r) {
|
|
134
134
|
return !!r?.type;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const e =
|
|
136
|
+
function On(r) {
|
|
137
|
+
const e = O(3), {
|
|
138
138
|
overlayRef: t
|
|
139
139
|
} = r, {
|
|
140
|
-
default:
|
|
140
|
+
default: n
|
|
141
141
|
} = Vt();
|
|
142
|
-
let
|
|
143
|
-
return e[0] !==
|
|
142
|
+
let s, o;
|
|
143
|
+
return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), Ne(t, s, o), null;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
146
|
-
const e =
|
|
145
|
+
const Fn = (r) => {
|
|
146
|
+
const e = O(9);
|
|
147
147
|
let t;
|
|
148
148
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
|
|
149
149
|
interleaved: !0
|
|
150
150
|
}), e[0] = t) : t = e[0];
|
|
151
|
-
const
|
|
151
|
+
const n = t, s = yt();
|
|
152
152
|
let o, i;
|
|
153
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () =>
|
|
153
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => n, i = [n], e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(r.instanceRef, o, i);
|
|
154
154
|
let a, l;
|
|
155
|
-
e[3] !==
|
|
156
|
-
|
|
157
|
-
}), l = [
|
|
155
|
+
e[3] !== s ? (a = () => (n.setMap(s), () => {
|
|
156
|
+
n.finalize();
|
|
157
|
+
}), l = [n, s], e[3] = s, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), W(a, l);
|
|
158
158
|
let c, h;
|
|
159
159
|
return e[6] !== r ? (c = () => {
|
|
160
|
-
|
|
161
|
-
}, h = [
|
|
160
|
+
n.setProps(r);
|
|
161
|
+
}, h = [n, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]), W(c, h), null;
|
|
162
162
|
};
|
|
163
|
-
function
|
|
164
|
-
const e =
|
|
165
|
-
let t,
|
|
163
|
+
function An(r) {
|
|
164
|
+
const e = O(73);
|
|
165
|
+
let t, n, s, o, i, a, l, c, h, y, v;
|
|
166
166
|
e[0] !== r ? ({
|
|
167
|
-
id:
|
|
167
|
+
id: s,
|
|
168
168
|
instanceRef: o,
|
|
169
169
|
basemap: t,
|
|
170
170
|
layers: i,
|
|
171
|
-
gmapsProps:
|
|
171
|
+
gmapsProps: v,
|
|
172
172
|
overlayRef: c,
|
|
173
173
|
parameters: h,
|
|
174
|
-
controller:
|
|
174
|
+
controller: n,
|
|
175
175
|
onLoad: a,
|
|
176
176
|
onViewStateChange: l,
|
|
177
177
|
...y
|
|
178
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
178
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = v) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], v = e[11]);
|
|
179
179
|
let p;
|
|
180
|
-
e[12] !==
|
|
180
|
+
e[12] !== v ? (p = v === void 0 ? {
|
|
181
181
|
apiKey: ""
|
|
182
|
-
} :
|
|
182
|
+
} : v, e[12] = v, e[13] = p) : p = e[13];
|
|
183
183
|
let b, m, w;
|
|
184
184
|
e[14] !== p ? ({
|
|
185
185
|
apiKey: w,
|
|
@@ -188,33 +188,33 @@ function Fs(r) {
|
|
|
188
188
|
} = p, e[14] = p, e[15] = b, e[16] = m, e[17] = w) : (b = e[15], m = e[16], w = e[17]);
|
|
189
189
|
let u;
|
|
190
190
|
e: {
|
|
191
|
-
if (typeof
|
|
191
|
+
if (typeof n == "boolean") {
|
|
192
192
|
let oe;
|
|
193
|
-
e[18] !==
|
|
194
|
-
dragPan:
|
|
195
|
-
doubleClickZoom:
|
|
196
|
-
scrollZoom:
|
|
197
|
-
}, e[18] =
|
|
193
|
+
e[18] !== n ? (oe = {
|
|
194
|
+
dragPan: n,
|
|
195
|
+
doubleClickZoom: n,
|
|
196
|
+
scrollZoom: n
|
|
197
|
+
}, e[18] = n, e[19] = oe) : oe = e[19], u = oe;
|
|
198
198
|
break e;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
e[20] !==
|
|
203
|
-
dragPan:
|
|
200
|
+
const G = n, ne = G?.dragPan ?? !0, J = G?.doubleClickZoom ?? !0, Y = G?.scrollZoom ?? !0;
|
|
201
|
+
let se;
|
|
202
|
+
e[20] !== ne || e[21] !== J || e[22] !== Y ? (se = {
|
|
203
|
+
dragPan: ne,
|
|
204
204
|
doubleClickZoom: J,
|
|
205
205
|
scrollZoom: Y
|
|
206
|
-
}, e[20] =
|
|
206
|
+
}, e[20] = ne, e[21] = J, e[22] = Y, e[23] = se) : se = e[23], u = se;
|
|
207
207
|
}
|
|
208
208
|
const f = u;
|
|
209
|
-
let
|
|
210
|
-
e[24] !== i ? (
|
|
211
|
-
const
|
|
209
|
+
let S;
|
|
210
|
+
e[24] !== i ? (S = i.filter($n).map(Dn), e[24] = i, e[25] = S) : S = e[25];
|
|
211
|
+
const M = S, _ = Rn;
|
|
212
212
|
let P;
|
|
213
|
-
e[26] !== o || e[27] !== l ? (P = (
|
|
213
|
+
e[26] !== o || e[27] !== l ? (P = (G) => {
|
|
214
214
|
const J = o?.current?._deck, Y = {
|
|
215
215
|
...J?.viewState,
|
|
216
|
-
...
|
|
217
|
-
},
|
|
216
|
+
...G
|
|
217
|
+
}, se = {
|
|
218
218
|
latitude: Y.latitude,
|
|
219
219
|
longitude: Y.longitude,
|
|
220
220
|
zoom: Y.zoom,
|
|
@@ -224,93 +224,93 @@ function Fs(r) {
|
|
|
224
224
|
height: J?.height
|
|
225
225
|
};
|
|
226
226
|
l?.({
|
|
227
|
-
viewState:
|
|
227
|
+
viewState: se,
|
|
228
228
|
interactionState: {
|
|
229
229
|
isZooming: !0
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
}, e[26] = o, e[27] = l, e[28] = P) : P = e[28];
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
e[29] !==
|
|
236
|
-
lat:
|
|
237
|
-
lng:
|
|
238
|
-
}, e[29] =
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
e[32] !==
|
|
233
|
+
const R = P, V = y.initialViewState?.latitude ?? 0, D = y.initialViewState?.longitude ?? 0;
|
|
234
|
+
let B;
|
|
235
|
+
e[29] !== V || e[30] !== D ? (B = {
|
|
236
|
+
lat: V,
|
|
237
|
+
lng: D
|
|
238
|
+
}, e[29] = V, e[30] = D, e[31] = B) : B = e[31];
|
|
239
|
+
const x = (y.initialViewState?.zoom ?? 0) + 1, F = y.initialViewState?.pitch, j = y.initialViewState?.bearing;
|
|
240
|
+
let E;
|
|
241
|
+
e[32] !== R || e[33] !== a || e[34] !== y.initialViewState ? (E = () => {
|
|
242
242
|
a({
|
|
243
243
|
type: "load",
|
|
244
244
|
value: !0
|
|
245
|
-
}),
|
|
246
|
-
}, e[32] =
|
|
247
|
-
let d,
|
|
248
|
-
e[36] !==
|
|
245
|
+
}), R(y.initialViewState);
|
|
246
|
+
}, e[32] = R, e[33] = a, e[34] = y.initialViewState, e[35] = E) : E = e[35];
|
|
247
|
+
let d, g;
|
|
248
|
+
e[36] !== R ? (d = (G) => R(_(G)), g = (G) => R(_(G)), e[36] = R, e[37] = d, e[38] = g) : (d = e[37], g = e[38]);
|
|
249
249
|
const L = typeof f.scrollZoom == "boolean" ? f.scrollZoom : !!f.scrollZoom, C = f.dragPan ? "greedy" : "none", k = !f.doubleClickZoom;
|
|
250
|
-
let
|
|
251
|
-
e[39] !==
|
|
252
|
-
let
|
|
253
|
-
e[42] !== a ? (
|
|
250
|
+
let T;
|
|
251
|
+
e[39] !== s || e[40] !== c ? (T = /* @__PURE__ */ Z(qn, { id: s, overlayRef: c }), e[39] = s, e[40] = c, e[41] = T) : T = e[41];
|
|
252
|
+
let U;
|
|
253
|
+
e[42] !== a ? (U = () => {
|
|
254
254
|
a({
|
|
255
255
|
type: "deckgl",
|
|
256
256
|
value: !0
|
|
257
257
|
});
|
|
258
|
-
}, e[42] = a, e[43] =
|
|
259
|
-
let
|
|
260
|
-
e[44] !== h ? (
|
|
258
|
+
}, e[42] = a, e[43] = U) : U = e[43];
|
|
259
|
+
let N;
|
|
260
|
+
e[44] !== h ? (N = {
|
|
261
261
|
depthTest: !1,
|
|
262
262
|
...h
|
|
263
|
-
}, e[44] = h, e[45] =
|
|
264
|
-
let
|
|
265
|
-
e[46] !==
|
|
266
|
-
let
|
|
267
|
-
e[53] !== m || e[54] !== t || e[55] !==
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
] }) }), e[53] = m, e[54] = t, e[55] =
|
|
263
|
+
}, e[44] = h, e[45] = N) : N = e[45];
|
|
264
|
+
let I;
|
|
265
|
+
e[46] !== M || e[47] !== s || e[48] !== o || e[49] !== y || e[50] !== U || e[51] !== N ? (I = /* @__PURE__ */ Z(Fn, { id: s, instanceRef: o, layers: M, onLoad: U, parameters: N, ...y }), e[46] = M, e[47] = s, e[48] = o, e[49] = y, e[50] = U, e[51] = N, e[52] = I) : I = e[52];
|
|
266
|
+
let $;
|
|
267
|
+
e[53] !== m || e[54] !== t || e[55] !== s || e[56] !== F || e[57] !== j || e[58] !== E || e[59] !== d || e[60] !== g || e[61] !== L || e[62] !== C || e[63] !== k || e[64] !== T || e[65] !== I || e[66] !== B || e[67] !== x ? ($ = /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: s, mapTypeId: t, disableDefaultUI: !0, ...m, center: B, zoom: x, tilt: F, heading: j, onTilesLoaded: E, onBoundsChanged: d, onZoomChanged: g, scrollwheel: L, gestureHandling: C, disableDoubleClickZoom: k, children: [
|
|
268
|
+
T,
|
|
269
|
+
I
|
|
270
|
+
] }) }), e[53] = m, e[54] = t, e[55] = s, e[56] = F, e[57] = j, e[58] = E, e[59] = d, e[60] = g, e[61] = L, e[62] = C, e[63] = k, e[64] = T, e[65] = I, e[66] = B, e[67] = x, e[68] = $) : $ = e[68];
|
|
271
271
|
let z;
|
|
272
|
-
return e[69] !== b || e[70] !== w || e[71] !==
|
|
272
|
+
return e[69] !== b || e[70] !== w || e[71] !== $ ? (z = /* @__PURE__ */ Z(It, { apiKey: w, ...b, children: $ }), e[69] = b, e[70] = w, e[71] = $, e[72] = z) : z = e[72], z;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Rn(r) {
|
|
275
275
|
const {
|
|
276
276
|
detail: e
|
|
277
277
|
} = r, {
|
|
278
278
|
center: t,
|
|
279
|
-
zoom:
|
|
280
|
-
heading:
|
|
279
|
+
zoom: n,
|
|
280
|
+
heading: s,
|
|
281
281
|
tilt: o
|
|
282
282
|
} = e;
|
|
283
283
|
return {
|
|
284
284
|
latitude: t.lat,
|
|
285
285
|
longitude: t.lng,
|
|
286
|
-
zoom:
|
|
287
|
-
bearing:
|
|
286
|
+
zoom: n - 1,
|
|
287
|
+
bearing: s,
|
|
288
288
|
pitch: o
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Dn(r) {
|
|
292
292
|
const {
|
|
293
293
|
type: e,
|
|
294
294
|
props: t
|
|
295
295
|
} = r;
|
|
296
296
|
return new e(t);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function $n(r) {
|
|
299
299
|
return !!r?.type;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
const e =
|
|
301
|
+
function qn(r) {
|
|
302
|
+
const e = O(3), {
|
|
303
303
|
id: t,
|
|
304
|
-
overlayRef:
|
|
305
|
-
} = r,
|
|
304
|
+
overlayRef: n
|
|
305
|
+
} = r, s = yt(t);
|
|
306
306
|
let o, i;
|
|
307
|
-
return e[0] !==
|
|
307
|
+
return e[0] !== s ? (o = () => s, i = [s], e[0] = s, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(n, o, i), null;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
const e =
|
|
311
|
-
let t,
|
|
309
|
+
function xn(r) {
|
|
310
|
+
const e = O(46);
|
|
311
|
+
let t, n, s, o, i, a, l, c, h, y, v, p;
|
|
312
312
|
e[0] !== r ? ({
|
|
313
|
-
instanceRef:
|
|
313
|
+
instanceRef: n,
|
|
314
314
|
overlayRef: o,
|
|
315
315
|
basemap: a,
|
|
316
316
|
controller: l,
|
|
@@ -318,66 +318,66 @@ function qs(r) {
|
|
|
318
318
|
layers: h,
|
|
319
319
|
gmapsProps: t,
|
|
320
320
|
getCursor: y,
|
|
321
|
-
getTooltip:
|
|
322
|
-
onLoad:
|
|
321
|
+
getTooltip: v,
|
|
322
|
+
onLoad: s,
|
|
323
323
|
onViewStateChange: p,
|
|
324
324
|
...i
|
|
325
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
325
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = v, e[12] = p) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], v = e[11], p = e[12]);
|
|
326
326
|
const b = a === void 0 ? re.positron : a, m = l === void 0 ? !0 : l, w = c === void 0 ? "deck-gl-map" : c;
|
|
327
327
|
let u;
|
|
328
328
|
e[13] !== h ? (u = h === void 0 ? [] : h, e[13] = h, e[14] = u) : u = e[14];
|
|
329
|
-
const f = u,
|
|
329
|
+
const f = u, S = y === void 0 ? En : y, M = v === void 0 ? Tn : v, _ = p === void 0 ? Vn : p;
|
|
330
330
|
let P;
|
|
331
331
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
332
|
-
const [
|
|
333
|
-
url:
|
|
334
|
-
type:
|
|
335
|
-
} =
|
|
336
|
-
let
|
|
337
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
}, e[16] =
|
|
341
|
-
const
|
|
342
|
-
let
|
|
343
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
344
|
-
|
|
332
|
+
const [R, V] = ae(P), {
|
|
333
|
+
url: D,
|
|
334
|
+
type: B
|
|
335
|
+
} = Se[b], x = B === ie.googleMaps;
|
|
336
|
+
let F;
|
|
337
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (F = (k) => {
|
|
338
|
+
const T = k.type === "deckgl" ? 0 : 1;
|
|
339
|
+
V((U) => U.map((N, I) => I === T ? k.value : N));
|
|
340
|
+
}, e[16] = F) : F = e[16];
|
|
341
|
+
const j = F;
|
|
342
|
+
let E, d;
|
|
343
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (E = () => () => {
|
|
344
|
+
j({
|
|
345
345
|
type: "load",
|
|
346
346
|
value: !1
|
|
347
|
-
}),
|
|
347
|
+
}), j({
|
|
348
348
|
type: "deckgl",
|
|
349
349
|
value: !1
|
|
350
350
|
});
|
|
351
|
-
}, d = [
|
|
352
|
-
let
|
|
353
|
-
if (e[19] !==
|
|
354
|
-
const k =
|
|
355
|
-
|
|
356
|
-
}, L = [
|
|
351
|
+
}, d = [j], e[17] = E, e[18] = d) : (E = e[17], d = e[18]), W(E, d);
|
|
352
|
+
let g, L;
|
|
353
|
+
if (e[19] !== R || e[20] !== s ? (g = () => {
|
|
354
|
+
const k = R.every(Un);
|
|
355
|
+
s?.(k);
|
|
356
|
+
}, L = [R, s], e[19] = R, e[20] = s, e[21] = g, e[22] = L) : (g = e[21], L = e[22]), W(g, L), x) {
|
|
357
357
|
let k;
|
|
358
|
-
return e[23] !== b || e[24] !== m || e[25] !==
|
|
358
|
+
return e[23] !== b || e[24] !== m || e[25] !== S || e[26] !== M || e[27] !== t || e[28] !== w || e[29] !== n || e[30] !== f || e[31] !== _ || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */ Z(An, { instanceRef: n, overlayRef: o, controller: m, id: w, basemap: b, layers: f, gmapsProps: t, getCursor: S, getTooltip: M, onLoad: j, onViewStateChange: _, ...i }), e[23] = b, e[24] = m, e[25] = S, e[26] = M, e[27] = t, e[28] = w, e[29] = n, e[30] = f, e[31] = _, e[32] = o, e[33] = i, e[34] = k) : k = e[34], k;
|
|
359
359
|
}
|
|
360
360
|
let C;
|
|
361
|
-
return e[35] !== m || e[36] !==
|
|
361
|
+
return e[35] !== m || e[36] !== S || e[37] !== M || e[38] !== w || e[39] !== n || e[40] !== f || e[41] !== D || e[42] !== _ || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ Z(Ln, { instanceRef: n, overlayRef: o, controller: m, id: w, layers: f, mapStyle: D, getCursor: S, getTooltip: M, onLoad: j, onViewStateChange: _, ...i }), e[35] = m, e[36] = S, e[37] = M, e[38] = w, e[39] = n, e[40] = f, e[41] = D, e[42] = _, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Un(r) {
|
|
364
364
|
return r;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Vn() {
|
|
367
367
|
return null;
|
|
368
368
|
}
|
|
369
|
-
const
|
|
369
|
+
const Bn = {
|
|
370
370
|
transitionDuration: "auto",
|
|
371
371
|
transitionInterpolator: new Ht({
|
|
372
372
|
curve: 2
|
|
373
373
|
})
|
|
374
374
|
};
|
|
375
|
-
var
|
|
375
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
376
376
|
function Et(r) {
|
|
377
377
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
378
378
|
}
|
|
379
379
|
var qe, et;
|
|
380
|
-
function
|
|
380
|
+
function jn() {
|
|
381
381
|
if (et) return qe;
|
|
382
382
|
et = 1;
|
|
383
383
|
var r = function(f) {
|
|
@@ -390,9 +390,9 @@ function Bs() {
|
|
|
390
390
|
var f = Object.prototype.toString.call(u);
|
|
391
391
|
return f === "[object RegExp]" || f === "[object Date]" || o(u);
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
394
394
|
function o(u) {
|
|
395
|
-
return u.$$typeof ===
|
|
395
|
+
return u.$$typeof === s;
|
|
396
396
|
}
|
|
397
397
|
function i(u) {
|
|
398
398
|
return Array.isArray(u) ? [] : {};
|
|
@@ -400,16 +400,16 @@ function Bs() {
|
|
|
400
400
|
function a(u, f) {
|
|
401
401
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
402
402
|
}
|
|
403
|
-
function l(u, f,
|
|
404
|
-
return u.concat(f).map(function(
|
|
405
|
-
return a(
|
|
403
|
+
function l(u, f, S) {
|
|
404
|
+
return u.concat(f).map(function(M) {
|
|
405
|
+
return a(M, S);
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
function c(u, f) {
|
|
409
409
|
if (!f.customMerge)
|
|
410
410
|
return m;
|
|
411
|
-
var
|
|
412
|
-
return typeof
|
|
411
|
+
var S = f.customMerge(u);
|
|
412
|
+
return typeof S == "function" ? S : m;
|
|
413
413
|
}
|
|
414
414
|
function h(u) {
|
|
415
415
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -419,7 +419,7 @@ function Bs() {
|
|
|
419
419
|
function y(u) {
|
|
420
420
|
return Object.keys(u).concat(h(u));
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function v(u, f) {
|
|
423
423
|
try {
|
|
424
424
|
return f in u;
|
|
425
425
|
} catch {
|
|
@@ -427,39 +427,39 @@ function Bs() {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function p(u, f) {
|
|
430
|
-
return
|
|
430
|
+
return v(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
431
431
|
}
|
|
432
|
-
function b(u, f,
|
|
433
|
-
var
|
|
434
|
-
return
|
|
435
|
-
_
|
|
436
|
-
}), y(f).forEach(function(
|
|
437
|
-
p(u,
|
|
438
|
-
}),
|
|
432
|
+
function b(u, f, S) {
|
|
433
|
+
var M = {};
|
|
434
|
+
return S.isMergeableObject(u) && y(u).forEach(function(_) {
|
|
435
|
+
M[_] = a(u[_], S);
|
|
436
|
+
}), y(f).forEach(function(_) {
|
|
437
|
+
p(u, _) || (v(u, _) && S.isMergeableObject(f[_]) ? M[_] = c(_, S)(u[_], f[_], S) : M[_] = a(f[_], S));
|
|
438
|
+
}), M;
|
|
439
439
|
}
|
|
440
|
-
function m(u, f,
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
return P ?
|
|
440
|
+
function m(u, f, S) {
|
|
441
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
442
|
+
var M = Array.isArray(f), _ = Array.isArray(u), P = M === _;
|
|
443
|
+
return P ? M ? S.arrayMerge(u, f, S) : b(u, f, S) : a(f, S);
|
|
444
444
|
}
|
|
445
|
-
m.all = function(f,
|
|
445
|
+
m.all = function(f, S) {
|
|
446
446
|
if (!Array.isArray(f))
|
|
447
447
|
throw new Error("first argument should be an array");
|
|
448
|
-
return f.reduce(function(
|
|
449
|
-
return m(
|
|
448
|
+
return f.reduce(function(M, _) {
|
|
449
|
+
return m(M, _, S);
|
|
450
450
|
}, {});
|
|
451
451
|
};
|
|
452
452
|
var w = m;
|
|
453
453
|
return qe = w, qe;
|
|
454
454
|
}
|
|
455
|
-
var
|
|
456
|
-
const de = /* @__PURE__ */ Et(
|
|
457
|
-
const e = r.reduce((t,
|
|
455
|
+
var In = jn();
|
|
456
|
+
const de = /* @__PURE__ */ Et(In), Nn = (r) => {
|
|
457
|
+
const e = r.reduce((t, n) => {
|
|
458
458
|
const {
|
|
459
|
-
id:
|
|
459
|
+
id: s,
|
|
460
460
|
basemap: o
|
|
461
|
-
} =
|
|
462
|
-
return t[
|
|
461
|
+
} = n;
|
|
462
|
+
return t[s] = {
|
|
463
463
|
isLoaded: !1,
|
|
464
464
|
basemap: o,
|
|
465
465
|
instanceRef: {
|
|
@@ -468,53 +468,53 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
468
468
|
overlayRef: {
|
|
469
469
|
current: null
|
|
470
470
|
},
|
|
471
|
-
layers:
|
|
472
|
-
controller:
|
|
471
|
+
layers: n.layers ?? [],
|
|
472
|
+
controller: n.controller ?? !0
|
|
473
473
|
}, t;
|
|
474
474
|
}, {});
|
|
475
|
-
return ((t,
|
|
475
|
+
return ((t, n) => ({
|
|
476
476
|
maps: e,
|
|
477
|
-
setBasemap: (
|
|
477
|
+
setBasemap: (s, o) => t((i) => {
|
|
478
478
|
const {
|
|
479
479
|
type: a
|
|
480
|
-
} =
|
|
480
|
+
} = Se[i.maps[s].basemap], {
|
|
481
481
|
type: l
|
|
482
|
-
} =
|
|
482
|
+
} = Se[o], c = a === l && !!i.maps[s]?.isLoaded;
|
|
483
483
|
return {
|
|
484
484
|
maps: {
|
|
485
485
|
...i.maps,
|
|
486
|
-
[
|
|
487
|
-
...i.maps[
|
|
486
|
+
[s]: {
|
|
487
|
+
...i.maps[s],
|
|
488
488
|
isLoaded: c,
|
|
489
489
|
basemap: o
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
493
|
}),
|
|
494
|
-
setLoad: (
|
|
494
|
+
setLoad: (s, o) => t((i) => ({
|
|
495
495
|
maps: {
|
|
496
496
|
...i.maps,
|
|
497
|
-
[
|
|
498
|
-
...i.maps[
|
|
497
|
+
[s]: {
|
|
498
|
+
...i.maps[s],
|
|
499
499
|
isLoaded: o
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
})),
|
|
503
|
-
getOverlayInstance: (
|
|
504
|
-
getDeckInstance: (
|
|
505
|
-
const i =
|
|
503
|
+
getOverlayInstance: (s) => n().maps[s]?.overlayRef?.current,
|
|
504
|
+
getDeckInstance: (s) => {
|
|
505
|
+
const i = n().maps[s]?.instanceRef?.current;
|
|
506
506
|
return (
|
|
507
507
|
// @ts-expect-error accessing protected props
|
|
508
508
|
i?.deck ?? i._deck
|
|
509
509
|
);
|
|
510
510
|
},
|
|
511
|
-
getViewState: (
|
|
512
|
-
getViewports: (
|
|
513
|
-
getViewport: (
|
|
514
|
-
getBounds: (
|
|
515
|
-
const a =
|
|
516
|
-
if (!a.maps?.[
|
|
517
|
-
const l = a.getViewState(
|
|
511
|
+
getViewState: (s) => n().getDeckInstance(s)?.viewState,
|
|
512
|
+
getViewports: (s, o) => n().getDeckInstance(s)?.getViewports(o),
|
|
513
|
+
getViewport: (s, o = 0, i) => n().getDeckInstance(s)?.getViewports(i)?.[o],
|
|
514
|
+
getBounds: (s, o, i) => {
|
|
515
|
+
const a = n();
|
|
516
|
+
if (!a.maps?.[s]?.isLoaded) return;
|
|
517
|
+
const l = a.getViewState(s);
|
|
518
518
|
if (!l) return;
|
|
519
519
|
const h = new gt(l).fitBounds(o, i?.boundsOptions);
|
|
520
520
|
return {
|
|
@@ -524,211 +524,211 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
524
524
|
...i?.viewStateOptions
|
|
525
525
|
};
|
|
526
526
|
},
|
|
527
|
-
addLayers: (
|
|
527
|
+
addLayers: (s, o) => t((i) => {
|
|
528
528
|
const a = {
|
|
529
529
|
...i.maps
|
|
530
|
-
}, l = a[
|
|
531
|
-
return a[
|
|
532
|
-
...a[
|
|
530
|
+
}, l = a[s]?.layers ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
531
|
+
return a[s] = {
|
|
532
|
+
...a[s],
|
|
533
533
|
layers: [...c]
|
|
534
534
|
}, {
|
|
535
535
|
maps: a
|
|
536
536
|
};
|
|
537
537
|
}),
|
|
538
|
-
removeLayers: (
|
|
538
|
+
removeLayers: (s, o) => t((i) => {
|
|
539
539
|
const a = {
|
|
540
540
|
...i.maps
|
|
541
|
-
}, l = a[
|
|
542
|
-
return a[
|
|
543
|
-
...a[
|
|
541
|
+
}, l = a[s]?.layers ?? [];
|
|
542
|
+
return a[s] = {
|
|
543
|
+
...a[s],
|
|
544
544
|
layers: l.filter((c) => !o.includes(c))
|
|
545
545
|
}, {
|
|
546
546
|
maps: a
|
|
547
547
|
};
|
|
548
548
|
}),
|
|
549
|
-
setController: (
|
|
550
|
-
const a = i.maps[
|
|
549
|
+
setController: (s, o) => t((i) => {
|
|
550
|
+
const a = i.maps[s]?.controller ?? {}, c = !o || typeof o == "boolean" ? o : de(typeof a == "boolean" ? {} : a, o);
|
|
551
551
|
return {
|
|
552
552
|
maps: {
|
|
553
553
|
...i.maps,
|
|
554
|
-
[
|
|
555
|
-
...i.maps[
|
|
554
|
+
[s]: {
|
|
555
|
+
...i.maps[s],
|
|
556
556
|
controller: c
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
})
|
|
561
561
|
}));
|
|
562
|
-
},
|
|
563
|
-
const e = r.reduce((t,
|
|
562
|
+
}, Hn = (r) => {
|
|
563
|
+
const e = r.reduce((t, n) => {
|
|
564
564
|
const {
|
|
565
|
-
id:
|
|
566
|
-
} =
|
|
567
|
-
return t[
|
|
565
|
+
id: s
|
|
566
|
+
} = n;
|
|
567
|
+
return t[s] = !1, t;
|
|
568
568
|
}, {});
|
|
569
569
|
return ((t) => ({
|
|
570
570
|
areLayersLoaded: e,
|
|
571
|
-
setLayersLoad: (
|
|
571
|
+
setLayersLoad: (n, s) => t((o) => ({
|
|
572
572
|
areLayersLoaded: {
|
|
573
573
|
...o.areLayersLoaded,
|
|
574
|
-
[
|
|
574
|
+
[n]: s
|
|
575
575
|
}
|
|
576
576
|
}))
|
|
577
577
|
}));
|
|
578
|
-
},
|
|
579
|
-
const e = r.reduce((t,
|
|
580
|
-
const
|
|
581
|
-
return t.initialViewStates[
|
|
578
|
+
}, zn = (r) => {
|
|
579
|
+
const e = r.reduce((t, n) => {
|
|
580
|
+
const s = n.initialViewState ?? n.viewState;
|
|
581
|
+
return t.initialViewStates[n.id] = s, t.viewStates[n.id] = s, t.viewports[n.id] = null, t;
|
|
582
582
|
}, {
|
|
583
583
|
viewStates: {},
|
|
584
584
|
viewports: {},
|
|
585
585
|
initialViewStates: {}
|
|
586
586
|
});
|
|
587
|
-
return ((t,
|
|
587
|
+
return ((t, n) => ({
|
|
588
588
|
viewports: e.viewports,
|
|
589
589
|
initialViewStates: e.initialViewStates,
|
|
590
|
-
updateViewPort: (
|
|
591
|
-
const o =
|
|
592
|
-
if (!o.maps[
|
|
593
|
-
const i = new gt(o.viewStates[
|
|
590
|
+
updateViewPort: (s) => {
|
|
591
|
+
const o = n();
|
|
592
|
+
if (!o.maps[s]?.isLoaded) return;
|
|
593
|
+
const i = new gt(o.viewStates[s]);
|
|
594
594
|
t((a) => ({
|
|
595
595
|
viewports: {
|
|
596
596
|
...a.viewports,
|
|
597
|
-
[
|
|
597
|
+
[s]: i
|
|
598
598
|
}
|
|
599
599
|
}));
|
|
600
600
|
},
|
|
601
601
|
viewStates: e.viewStates,
|
|
602
|
-
setViewState: (
|
|
602
|
+
setViewState: (s, o) => t((i) => ({
|
|
603
603
|
viewStates: {
|
|
604
604
|
...i.viewStates,
|
|
605
|
-
[
|
|
606
|
-
...i.viewStates[
|
|
605
|
+
[s]: {
|
|
606
|
+
...i.viewStates[s],
|
|
607
607
|
...o
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
})),
|
|
611
|
-
setInitialViewState: (
|
|
611
|
+
setInitialViewState: (s, o) => t((i) => ({
|
|
612
612
|
initialViewStates: {
|
|
613
613
|
...i.initialViewStates,
|
|
614
|
-
[
|
|
614
|
+
[s]: o
|
|
615
615
|
}
|
|
616
616
|
})),
|
|
617
|
-
setZoom: (
|
|
617
|
+
setZoom: (s, o) => t((i) => ({
|
|
618
618
|
viewStates: {
|
|
619
619
|
...i.viewStates,
|
|
620
|
-
[
|
|
621
|
-
...i.viewStates[
|
|
620
|
+
[s]: {
|
|
621
|
+
...i.viewStates[s],
|
|
622
622
|
zoom: o
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
})),
|
|
626
|
-
setMinZoom: (
|
|
626
|
+
setMinZoom: (s, o) => t((i) => ({
|
|
627
627
|
viewStates: {
|
|
628
628
|
...i.viewStates,
|
|
629
|
-
[
|
|
630
|
-
...i.viewStates[
|
|
629
|
+
[s]: {
|
|
630
|
+
...i.viewStates[s],
|
|
631
631
|
minZoom: o
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
})),
|
|
635
|
-
setMaxZoom: (
|
|
635
|
+
setMaxZoom: (s, o) => t((i) => ({
|
|
636
636
|
viewStates: {
|
|
637
637
|
...i.viewStates,
|
|
638
|
-
[
|
|
639
|
-
...i.viewStates[
|
|
638
|
+
[s]: {
|
|
639
|
+
...i.viewStates[s],
|
|
640
640
|
maxZoom: o
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}))
|
|
644
644
|
}));
|
|
645
|
-
},
|
|
646
|
-
fitBounds: (t,
|
|
647
|
-
const o = e(), i = o.getBounds(t,
|
|
645
|
+
}, Gn = ((r, e) => ({
|
|
646
|
+
fitBounds: (t, n, s) => {
|
|
647
|
+
const o = e(), i = o.getBounds(t, n, s);
|
|
648
648
|
i && (o.setViewState(t, i), o.updateViewPort(t));
|
|
649
649
|
},
|
|
650
|
-
flyTo: (t,
|
|
650
|
+
flyTo: (t, n, s = {}) => {
|
|
651
651
|
const o = e(), i = {
|
|
652
|
-
...
|
|
653
|
-
...
|
|
652
|
+
...Bn,
|
|
653
|
+
...s?.viewStateOptions
|
|
654
654
|
}, a = {
|
|
655
|
-
...
|
|
655
|
+
...n,
|
|
656
656
|
...i
|
|
657
657
|
};
|
|
658
658
|
o.setViewState(t, a), o.updateViewPort(t);
|
|
659
659
|
},
|
|
660
|
-
loadInitialViewState: (t,
|
|
661
|
-
const
|
|
662
|
-
|
|
660
|
+
loadInitialViewState: (t, n) => {
|
|
661
|
+
const s = e();
|
|
662
|
+
s.setInitialViewState(t, n), s.flyTo(t, n, {
|
|
663
663
|
viewStateOptions: {
|
|
664
664
|
transitionDuration: 0
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
667
|
},
|
|
668
668
|
resetViewState: (t) => {
|
|
669
|
-
const
|
|
670
|
-
|
|
669
|
+
const n = e(), s = n.initialViewStates;
|
|
670
|
+
s[t] && n.flyTo(t, s[t]);
|
|
671
671
|
}
|
|
672
|
-
})),
|
|
673
|
-
const e = r.reduce((t,
|
|
672
|
+
})), Kn = (r) => {
|
|
673
|
+
const e = r.reduce((t, n) => (t[n.id] = n.spatialFilter ?? {}, t), {});
|
|
674
674
|
return ((t) => ({
|
|
675
675
|
spatialFilter: e,
|
|
676
|
-
setSpatialFilter: (
|
|
676
|
+
setSpatialFilter: (n, s, o) => {
|
|
677
677
|
t((i) => {
|
|
678
678
|
const a = structuredClone(i.spatialFilter);
|
|
679
|
-
return a[
|
|
680
|
-
...a[
|
|
681
|
-
[
|
|
679
|
+
return a[n] = {
|
|
680
|
+
...a[n],
|
|
681
|
+
[s]: o
|
|
682
682
|
}, {
|
|
683
683
|
spatialFilter: a
|
|
684
684
|
};
|
|
685
685
|
});
|
|
686
686
|
},
|
|
687
|
-
removeSpatialFilter: (
|
|
687
|
+
removeSpatialFilter: (n, s) => {
|
|
688
688
|
t((o) => {
|
|
689
689
|
const i = structuredClone(o.spatialFilter);
|
|
690
|
-
return i[
|
|
690
|
+
return i[n] && delete i[n][s], {
|
|
691
691
|
spatialFilter: i
|
|
692
692
|
};
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
}));
|
|
696
|
-
},
|
|
697
|
-
...
|
|
698
|
-
...
|
|
699
|
-
...
|
|
700
|
-
...
|
|
701
|
-
...
|
|
696
|
+
}, Zn = (r) => Ge()((...e) => ({
|
|
697
|
+
...Nn(r)(...e),
|
|
698
|
+
...Hn(r)(...e),
|
|
699
|
+
...zn(r)(...e),
|
|
700
|
+
...Kn(r)(...e),
|
|
701
|
+
...Gn(...e)
|
|
702
702
|
})), Tt = He({});
|
|
703
|
-
function
|
|
704
|
-
const e =
|
|
703
|
+
function Qn(r) {
|
|
704
|
+
const e = O(5), {
|
|
705
705
|
children: t,
|
|
706
|
-
values:
|
|
706
|
+
values: n
|
|
707
707
|
} = r;
|
|
708
|
-
let
|
|
709
|
-
e[0] !==
|
|
710
|
-
const [o] = ae(
|
|
708
|
+
let s;
|
|
709
|
+
e[0] !== n ? (s = Zn(n), e[0] = n, e[1] = s) : s = e[1];
|
|
710
|
+
const [o] = ae(s);
|
|
711
711
|
let i;
|
|
712
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
712
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function q(r) {
|
|
715
715
|
const e = ze(Tt);
|
|
716
716
|
if (!Object.keys(e).length)
|
|
717
717
|
throw new Error("Missing MapProvider in the tree");
|
|
718
718
|
return Ke(e, r);
|
|
719
719
|
}
|
|
720
720
|
function yo(r) {
|
|
721
|
-
const e =
|
|
721
|
+
const e = O(9), {
|
|
722
722
|
children: t,
|
|
723
|
-
mapId:
|
|
723
|
+
mapId: n
|
|
724
724
|
} = r;
|
|
725
|
-
let
|
|
726
|
-
e[0] !==
|
|
725
|
+
let s;
|
|
726
|
+
e[0] !== n ? (s = (h) => h.maps[n], e[0] = n, e[1] = s) : s = e[1];
|
|
727
727
|
const {
|
|
728
728
|
basemap: o
|
|
729
|
-
} =
|
|
729
|
+
} = q(s), i = q(Wn);
|
|
730
730
|
let a;
|
|
731
|
-
e[2] !==
|
|
731
|
+
e[2] !== n || e[3] !== i ? (a = (h) => i(n, h), e[2] = n, e[3] = i, e[4] = a) : a = e[4];
|
|
732
732
|
const l = a;
|
|
733
733
|
let c;
|
|
734
734
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
@@ -736,7 +736,7 @@ function yo(r) {
|
|
|
736
736
|
setBasemap: l
|
|
737
737
|
}), e[5] = o, e[6] = t, e[7] = l, e[8] = c) : c = e[8], c;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Wn(r) {
|
|
740
740
|
return r.setBasemap;
|
|
741
741
|
}
|
|
742
742
|
const te = {
|
|
@@ -747,7 +747,7 @@ const te = {
|
|
|
747
747
|
finish: "finish",
|
|
748
748
|
addPosition: "addPosition"
|
|
749
749
|
};
|
|
750
|
-
class
|
|
750
|
+
class Yn extends zt {
|
|
751
751
|
constructor() {
|
|
752
752
|
super([new Gt(), new Kt()]);
|
|
753
753
|
}
|
|
@@ -759,7 +759,7 @@ class Ws extends zt {
|
|
|
759
759
|
}));
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
const me = "lassoLayer", Ce = "maskLayer",
|
|
762
|
+
const me = "lassoLayer", Ce = "maskLayer", Jn = {
|
|
763
763
|
id: me,
|
|
764
764
|
billboard: !1,
|
|
765
765
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -792,14 +792,14 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
792
792
|
labels: {
|
|
793
793
|
mask: "Mask"
|
|
794
794
|
}
|
|
795
|
-
},
|
|
795
|
+
}, Xn = [new nn({
|
|
796
796
|
filterSize: 1
|
|
797
|
-
})],
|
|
797
|
+
})], Te = {
|
|
798
798
|
id: Ce,
|
|
799
799
|
operation: "mask",
|
|
800
800
|
pickable: !1,
|
|
801
801
|
visible: !0,
|
|
802
|
-
extensions:
|
|
802
|
+
extensions: Xn,
|
|
803
803
|
filterRange: [1, 1]
|
|
804
804
|
}, Ue = {
|
|
805
805
|
polygon: {
|
|
@@ -820,21 +820,21 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
820
820
|
},
|
|
821
821
|
edit: {
|
|
822
822
|
value: "edit",
|
|
823
|
-
mode:
|
|
823
|
+
mode: Yn
|
|
824
824
|
}
|
|
825
|
-
},
|
|
825
|
+
}, be = ht((r) => ({
|
|
826
826
|
layers: {},
|
|
827
|
-
setLayer: (e, t) => r((
|
|
828
|
-
const
|
|
829
|
-
...
|
|
830
|
-
}, o =
|
|
827
|
+
setLayer: (e, t) => r((n) => {
|
|
828
|
+
const s = {
|
|
829
|
+
...n.layers
|
|
830
|
+
}, o = s[e] ?? {
|
|
831
831
|
type: null,
|
|
832
832
|
props: {}
|
|
833
833
|
}, i = [...o.props.extensions ?? [], ...t.props?.extensions ?? []].reduce((l, c) => (l.some((h) => h.equals(c)) || l.push(c), l), []), a = o.legend || t.legend ? {
|
|
834
834
|
...o.legend,
|
|
835
835
|
...t.legend
|
|
836
836
|
} : void 0;
|
|
837
|
-
return
|
|
837
|
+
return s[e] = {
|
|
838
838
|
...o,
|
|
839
839
|
...t,
|
|
840
840
|
props: {
|
|
@@ -849,24 +849,24 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
849
849
|
},
|
|
850
850
|
legend: a
|
|
851
851
|
}, {
|
|
852
|
-
layers:
|
|
852
|
+
layers: s
|
|
853
853
|
};
|
|
854
854
|
}),
|
|
855
855
|
removeLayer: (e) => r((t) => {
|
|
856
|
-
const
|
|
856
|
+
const n = {
|
|
857
857
|
...t.layers
|
|
858
858
|
};
|
|
859
|
-
return delete
|
|
860
|
-
layers:
|
|
859
|
+
return delete n[e], {
|
|
860
|
+
layers: n
|
|
861
861
|
};
|
|
862
862
|
})
|
|
863
|
-
})),
|
|
863
|
+
})), nt = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], Lt = {
|
|
864
864
|
multipan: [Ye, {
|
|
865
865
|
threshold: 10,
|
|
866
|
-
direction:
|
|
866
|
+
direction: rn.Vertical,
|
|
867
867
|
pointers: 2
|
|
868
868
|
}],
|
|
869
|
-
pinch: [
|
|
869
|
+
pinch: [an, {}, null, ["multipan"]],
|
|
870
870
|
click: [Je, {
|
|
871
871
|
event: "click"
|
|
872
872
|
}, null, ["dblclick"]],
|
|
@@ -879,92 +879,92 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
879
879
|
}, ["pinch"], ["multipan"]]
|
|
880
880
|
};
|
|
881
881
|
function Pt(r) {
|
|
882
|
-
const e =
|
|
882
|
+
const e = O(12), {
|
|
883
883
|
mapId: t,
|
|
884
|
-
layerId:
|
|
884
|
+
layerId: n
|
|
885
885
|
} = r;
|
|
886
|
-
let
|
|
887
|
-
e[0] !== t ? (
|
|
888
|
-
const o =
|
|
886
|
+
let s;
|
|
887
|
+
e[0] !== t ? (s = (b) => b.maps[t]?.basemap, e[0] = t, e[1] = s) : s = e[1];
|
|
888
|
+
const o = q(s);
|
|
889
889
|
let i;
|
|
890
890
|
e[2] !== t ? (i = (b) => b.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
891
|
-
const a =
|
|
891
|
+
const a = q(i), l = q(ns), c = be(ts), {
|
|
892
892
|
type: h
|
|
893
|
-
} =
|
|
894
|
-
let
|
|
895
|
-
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !==
|
|
893
|
+
} = Se[o], y = h === ie.googleMaps;
|
|
894
|
+
let v, p;
|
|
895
|
+
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== c ? (v = () => {
|
|
896
896
|
let b = null;
|
|
897
897
|
if (y && a) {
|
|
898
898
|
const m = l(t);
|
|
899
|
-
b = new
|
|
900
|
-
recognizers: Object.keys(Lt).map(
|
|
899
|
+
b = new on(m.getDiv(), {
|
|
900
|
+
recognizers: Object.keys(Lt).map(es)
|
|
901
901
|
});
|
|
902
902
|
}
|
|
903
|
-
c(
|
|
903
|
+
c(n, {
|
|
904
904
|
props: {
|
|
905
905
|
eventManager: b
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
|
-
}, p = [l, y, a,
|
|
908
|
+
}, p = [l, y, a, n, t, c], e[4] = l, e[5] = y, e[6] = a, e[7] = n, e[8] = t, e[9] = c, e[10] = v, e[11] = p) : (v = e[10], p = e[11]), W(v, p);
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
const [e, t,
|
|
910
|
+
function es(r) {
|
|
911
|
+
const [e, t, n, s] = Lt[r], o = {
|
|
912
912
|
...t,
|
|
913
913
|
event: r
|
|
914
914
|
};
|
|
915
915
|
return {
|
|
916
916
|
recognizer: new e(o),
|
|
917
|
-
recognizeWith:
|
|
918
|
-
requestFailure:
|
|
917
|
+
recognizeWith: n,
|
|
918
|
+
requestFailure: s
|
|
919
919
|
};
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function ts(r) {
|
|
922
922
|
return r.setLayer;
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function ns(r) {
|
|
925
925
|
return r.getOverlayInstance;
|
|
926
926
|
}
|
|
927
927
|
class kt extends Yt {
|
|
928
928
|
updateState({
|
|
929
929
|
props: e,
|
|
930
930
|
oldProps: t,
|
|
931
|
-
context:
|
|
932
|
-
changeFlags:
|
|
931
|
+
context: n,
|
|
932
|
+
changeFlags: s
|
|
933
933
|
}) {
|
|
934
934
|
e.eventManager !== t.eventManager && (this._removeEventHandlers(e.eventManager), this._removeEventHandlers(t.eventManager), this._addEventHandlers()), super.updateState({
|
|
935
935
|
props: e,
|
|
936
936
|
oldProps: t,
|
|
937
|
-
context:
|
|
938
|
-
changeFlags:
|
|
937
|
+
context: n,
|
|
938
|
+
changeFlags: s
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
941
|
_addEventHandlers() {
|
|
942
942
|
const e = this._getEventManager(), {
|
|
943
943
|
eventHandler: t
|
|
944
944
|
} = this.state._editableLayerState;
|
|
945
|
-
for (const
|
|
946
|
-
e.on(
|
|
945
|
+
for (const n of nt)
|
|
946
|
+
e.on(n, t, {
|
|
947
947
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
948
948
|
priority: 100
|
|
949
949
|
});
|
|
950
950
|
}
|
|
951
951
|
_removeEventHandlers(e) {
|
|
952
952
|
const t = e ?? this._getEventManager(), {
|
|
953
|
-
eventHandler:
|
|
953
|
+
eventHandler: n
|
|
954
954
|
} = this.state._editableLayerState;
|
|
955
|
-
for (const
|
|
956
|
-
t.off(
|
|
955
|
+
for (const s of nt)
|
|
956
|
+
t.off(s, n);
|
|
957
957
|
}
|
|
958
958
|
_getEventManager() {
|
|
959
959
|
return this.props.eventManager ?? // @ts-expect-error accessing protected props
|
|
960
960
|
this.context.deck.eventManager;
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function ss({
|
|
964
964
|
mode: r,
|
|
965
965
|
...e
|
|
966
966
|
}) {
|
|
967
|
-
const t =
|
|
967
|
+
const t = rs(e);
|
|
968
968
|
return {
|
|
969
969
|
type: kt,
|
|
970
970
|
props: {
|
|
@@ -973,12 +973,12 @@ function sn({
|
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function rs({
|
|
977
977
|
layerProps: r,
|
|
978
978
|
onEdit: e,
|
|
979
979
|
getLineColor: t,
|
|
980
|
-
getFillColor:
|
|
981
|
-
pointColor:
|
|
980
|
+
getFillColor: n,
|
|
981
|
+
pointColor: s
|
|
982
982
|
}) {
|
|
983
983
|
const o = de(r, {
|
|
984
984
|
modeConfig: {
|
|
@@ -989,19 +989,19 @@ function nn({
|
|
|
989
989
|
preventOverlappingLines: !0
|
|
990
990
|
},
|
|
991
991
|
onEdit: e
|
|
992
|
-
}), i = de(
|
|
992
|
+
}), i = de(Jn, {
|
|
993
993
|
getTentativeLineColor: t,
|
|
994
|
-
getTentativeFillColor:
|
|
994
|
+
getTentativeFillColor: n,
|
|
995
995
|
getLineColor: t,
|
|
996
|
-
getFillColor:
|
|
997
|
-
getEditHandlePointColor:
|
|
998
|
-
getEditHandlePointOutlineColor:
|
|
996
|
+
getFillColor: n,
|
|
997
|
+
getEditHandlePointColor: s.fill,
|
|
998
|
+
getEditHandlePointOutlineColor: s.outline,
|
|
999
999
|
dataComparator: (l, c) => l.features[0] === c.features[0]
|
|
1000
1000
|
});
|
|
1001
1001
|
return de(i, o);
|
|
1002
1002
|
}
|
|
1003
|
-
const
|
|
1004
|
-
data: r.reduce((
|
|
1003
|
+
const os = (r) => Ge()((e) => ({
|
|
1004
|
+
data: r.reduce((n, s) => {
|
|
1005
1005
|
const {
|
|
1006
1006
|
enabled: o = !1,
|
|
1007
1007
|
mapId: i,
|
|
@@ -1009,114 +1009,114 @@ const rn = (r) => Ge()((e) => ({
|
|
|
1009
1009
|
modes: l = Ue,
|
|
1010
1010
|
modeSelected: c = Ue.polygon.value,
|
|
1011
1011
|
values: h = {}
|
|
1012
|
-
} =
|
|
1013
|
-
return
|
|
1012
|
+
} = s;
|
|
1013
|
+
return n[i] = {
|
|
1014
1014
|
enabled: o,
|
|
1015
1015
|
modeInstance: a,
|
|
1016
1016
|
modes: l,
|
|
1017
1017
|
modeSelected: c,
|
|
1018
1018
|
values: h
|
|
1019
|
-
},
|
|
1019
|
+
}, n;
|
|
1020
1020
|
}, {}),
|
|
1021
|
-
setEnabled: (
|
|
1021
|
+
setEnabled: (n, s) => {
|
|
1022
1022
|
e((o) => ({
|
|
1023
1023
|
data: {
|
|
1024
1024
|
...o.data,
|
|
1025
|
-
[
|
|
1026
|
-
...o.data[
|
|
1027
|
-
enabled:
|
|
1028
|
-
visible:
|
|
1025
|
+
[n]: {
|
|
1026
|
+
...o.data[n],
|
|
1027
|
+
enabled: s,
|
|
1028
|
+
visible: s
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
}));
|
|
1032
1032
|
},
|
|
1033
|
-
setValue: (
|
|
1033
|
+
setValue: (n, s, o) => {
|
|
1034
1034
|
e((i) => {
|
|
1035
1035
|
const a = {
|
|
1036
|
-
...i.data[
|
|
1037
|
-
}, l = a[
|
|
1036
|
+
...i.data[n].values
|
|
1037
|
+
}, l = a[s] ?? {
|
|
1038
1038
|
type: "mask"
|
|
1039
1039
|
};
|
|
1040
|
-
return a[
|
|
1040
|
+
return a[s] = {
|
|
1041
1041
|
...l,
|
|
1042
1042
|
...o,
|
|
1043
|
-
id:
|
|
1044
|
-
}, o || delete a[
|
|
1043
|
+
id: s
|
|
1044
|
+
}, o || delete a[s], {
|
|
1045
1045
|
data: {
|
|
1046
1046
|
...i.data,
|
|
1047
|
-
[
|
|
1048
|
-
...i.data[
|
|
1047
|
+
[n]: {
|
|
1048
|
+
...i.data[n],
|
|
1049
1049
|
values: a
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
1053
|
});
|
|
1054
1054
|
},
|
|
1055
|
-
setVisibility: (
|
|
1055
|
+
setVisibility: (n, s, o) => {
|
|
1056
1056
|
e((i) => {
|
|
1057
1057
|
const a = {
|
|
1058
|
-
...i.data[
|
|
1059
|
-
}, l = a[
|
|
1058
|
+
...i.data[n].values
|
|
1059
|
+
}, l = a[s] ?? {};
|
|
1060
1060
|
return l.properties.visible = o, {
|
|
1061
1061
|
data: {
|
|
1062
1062
|
...i.data,
|
|
1063
|
-
[
|
|
1064
|
-
...i.data[
|
|
1063
|
+
[n]: {
|
|
1064
|
+
...i.data[n],
|
|
1065
1065
|
values: {
|
|
1066
1066
|
...a,
|
|
1067
|
-
[
|
|
1067
|
+
[s]: l
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
1072
|
});
|
|
1073
1073
|
},
|
|
1074
|
-
setModeSelected: (
|
|
1074
|
+
setModeSelected: (n, s) => {
|
|
1075
1075
|
e((o) => ({
|
|
1076
1076
|
data: {
|
|
1077
1077
|
...o.data,
|
|
1078
|
-
[
|
|
1079
|
-
...o.data[
|
|
1080
|
-
modeSelected:
|
|
1078
|
+
[n]: {
|
|
1079
|
+
...o.data[n],
|
|
1080
|
+
modeSelected: s
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
}));
|
|
1084
1084
|
},
|
|
1085
|
-
setModeInstance: (
|
|
1085
|
+
setModeInstance: (n, s) => {
|
|
1086
1086
|
e((o) => ({
|
|
1087
1087
|
data: {
|
|
1088
1088
|
...o.data,
|
|
1089
|
-
[
|
|
1090
|
-
...o.data[
|
|
1091
|
-
modeInstance:
|
|
1089
|
+
[n]: {
|
|
1090
|
+
...o.data[n],
|
|
1091
|
+
modeInstance: s
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
}));
|
|
1095
1095
|
}
|
|
1096
1096
|
})), Ct = He({});
|
|
1097
|
-
function
|
|
1098
|
-
const e =
|
|
1097
|
+
function is(r) {
|
|
1098
|
+
const e = O(5), {
|
|
1099
1099
|
children: t,
|
|
1100
|
-
values:
|
|
1100
|
+
values: n
|
|
1101
1101
|
} = r;
|
|
1102
|
-
let
|
|
1103
|
-
e[0] !==
|
|
1104
|
-
const [o] = ae(
|
|
1102
|
+
let s;
|
|
1103
|
+
e[0] !== n ? (s = () => os(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1104
|
+
const [o] = ae(s);
|
|
1105
1105
|
let i;
|
|
1106
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1106
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Ct.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Q(r) {
|
|
1109
1109
|
const e = ze(Ct);
|
|
1110
1110
|
if (!Object.keys(e).length)
|
|
1111
1111
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
1112
1112
|
return Ke(e, r);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function as({
|
|
1115
1115
|
mapId: r,
|
|
1116
1116
|
children: e
|
|
1117
1117
|
}) {
|
|
1118
|
-
const t =
|
|
1119
|
-
|
|
1118
|
+
const t = Q((p) => p.data[r]?.enabled), n = Q((p) => p.setEnabled), s = Q((p) => p.data[r]?.values), o = Q((p) => p.setValue), i = Q((p) => p.setVisibility), a = Q((p) => p.data[r]?.modeSelected), l = Q((p) => p.setModeSelected), c = Q((p) => p.data[r]?.modes), h = Q((p) => p.setModeInstance);
|
|
1119
|
+
W(() => {
|
|
1120
1120
|
const p = c[a];
|
|
1121
1121
|
if (p && t) {
|
|
1122
1122
|
const b = p.mode;
|
|
@@ -1133,12 +1133,12 @@ function an({
|
|
|
1133
1133
|
label: w.properties?.label
|
|
1134
1134
|
});
|
|
1135
1135
|
return [
|
|
1136
|
-
Object.values(
|
|
1136
|
+
Object.values(s).filter((w) => w.type === "mask").map(p)
|
|
1137
1137
|
// , draw
|
|
1138
1138
|
];
|
|
1139
|
-
}, [
|
|
1140
|
-
|
|
1141
|
-
}, [r,
|
|
1139
|
+
}, [s]), v = ee((p) => {
|
|
1140
|
+
n(r, !!p), l(r, p);
|
|
1141
|
+
}, [r, n, l]);
|
|
1142
1142
|
return e({
|
|
1143
1143
|
mapId: r,
|
|
1144
1144
|
enabled: t,
|
|
@@ -1149,9 +1149,9 @@ function an({
|
|
|
1149
1149
|
// draw,
|
|
1150
1150
|
},
|
|
1151
1151
|
setValue: ee((p, b) => o(r, p, b), [r, o]),
|
|
1152
|
-
setEnabled: ee((p) =>
|
|
1152
|
+
setEnabled: ee((p) => n(r, p), [r, n]),
|
|
1153
1153
|
setVisibility: ee((p, b) => i(r, p, b), [r, i]),
|
|
1154
|
-
setModeSelected:
|
|
1154
|
+
setModeSelected: v
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
1157
|
function Ot({
|
|
@@ -1159,27 +1159,27 @@ function Ot({
|
|
|
1159
1159
|
}) {
|
|
1160
1160
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
1161
1161
|
}
|
|
1162
|
-
const
|
|
1163
|
-
length:
|
|
1164
|
-
}),
|
|
1165
|
-
area:
|
|
1162
|
+
const ls = _t({
|
|
1163
|
+
length: fn
|
|
1164
|
+
}), cs = _t({
|
|
1165
|
+
area: pn
|
|
1166
1166
|
});
|
|
1167
|
-
function
|
|
1167
|
+
function us(r) {
|
|
1168
1168
|
if (!(r in Pe)) {
|
|
1169
1169
|
const e = Object.keys(Pe);
|
|
1170
1170
|
throw new Error(`Unit "${r}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function st(r, e, t) {
|
|
1174
1174
|
switch (t) {
|
|
1175
1175
|
case "length": {
|
|
1176
|
-
const
|
|
1177
|
-
return
|
|
1176
|
+
const n = it[H.meter], s = it[e];
|
|
1177
|
+
return ls(r).from(n).to(s);
|
|
1178
1178
|
}
|
|
1179
1179
|
case "area": {
|
|
1180
|
-
|
|
1181
|
-
const
|
|
1182
|
-
return
|
|
1180
|
+
us(e);
|
|
1181
|
+
const n = at[Pe[H.meter]], s = at[Pe[e]];
|
|
1182
|
+
return cs(r).from(n).to(s);
|
|
1183
1183
|
}
|
|
1184
1184
|
default:
|
|
1185
1185
|
throw new Error(`Invalid dimension: ${t}, valid dimensions are: length, area`);
|
|
@@ -1191,8 +1191,8 @@ function Oe({
|
|
|
1191
1191
|
unit: e,
|
|
1192
1192
|
locale: t,
|
|
1193
1193
|
options: {
|
|
1194
|
-
autoSplitNumber:
|
|
1195
|
-
customFormatter:
|
|
1194
|
+
autoSplitNumber: n,
|
|
1195
|
+
customFormatter: s,
|
|
1196
1196
|
...o
|
|
1197
1197
|
} = {
|
|
1198
1198
|
autoSplitNumber: rt
|
|
@@ -1202,12 +1202,12 @@ function Oe({
|
|
|
1202
1202
|
const a = e === Ie["m-km"], l = e === Ie["ft-mi"], c = a || l;
|
|
1203
1203
|
let h, y;
|
|
1204
1204
|
if (c) {
|
|
1205
|
-
const p = r < (
|
|
1206
|
-
let b = p ?
|
|
1207
|
-
h = p ?
|
|
1205
|
+
const p = r < (n ?? rt);
|
|
1206
|
+
let b = p ? H.meter : H.kilometer;
|
|
1207
|
+
h = p ? ve.meter : ve.kilometer, l && (h = p ? ve.feet : ve.mile, b = p ? H.feet : H.mile), y = st(r, b, i);
|
|
1208
1208
|
} else
|
|
1209
|
-
h =
|
|
1210
|
-
let
|
|
1209
|
+
h = ve[e], y = st(r, e, i);
|
|
1210
|
+
let v = `${wt(y, t, {
|
|
1211
1211
|
style: "unit",
|
|
1212
1212
|
unit: h,
|
|
1213
1213
|
unitDisplay: "short",
|
|
@@ -1216,7 +1216,7 @@ function Oe({
|
|
|
1216
1216
|
maximumFractionDigits: 2,
|
|
1217
1217
|
...o
|
|
1218
1218
|
})}`;
|
|
1219
|
-
return i === "area" && (
|
|
1219
|
+
return i === "area" && (v += "2"), s ? s(v) : v;
|
|
1220
1220
|
}
|
|
1221
1221
|
function ho(r, {
|
|
1222
1222
|
hasDoubleClickZoom: e
|
|
@@ -1231,15 +1231,15 @@ function ho(r, {
|
|
|
1231
1231
|
function Ft(r, e, t) {
|
|
1232
1232
|
if (r > 0) {
|
|
1233
1233
|
const {
|
|
1234
|
-
formatTooltip:
|
|
1235
|
-
turfOptions:
|
|
1234
|
+
formatTooltip: n,
|
|
1235
|
+
turfOptions: s
|
|
1236
1236
|
} = t ?? {
|
|
1237
1237
|
turfOptions: {
|
|
1238
1238
|
units: "kilometers"
|
|
1239
1239
|
}
|
|
1240
|
-
}, o =
|
|
1240
|
+
}, o = s?.units;
|
|
1241
1241
|
let i;
|
|
1242
|
-
|
|
1242
|
+
n ? i = n(r) : i = `${parseFloat(r.toString()).toFixed(2)} ${o}`;
|
|
1243
1243
|
const {
|
|
1244
1244
|
measurementCallback: a
|
|
1245
1245
|
} = t;
|
|
@@ -1250,7 +1250,7 @@ function Ft(r, e, t) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
return [];
|
|
1252
1252
|
}
|
|
1253
|
-
class
|
|
1253
|
+
class ds extends Jt {
|
|
1254
1254
|
_isMeasuringSessionFinished = !1;
|
|
1255
1255
|
area = 0;
|
|
1256
1256
|
tooltips = [];
|
|
@@ -1261,15 +1261,15 @@ class dn extends Jt {
|
|
|
1261
1261
|
handleClick(e, t) {
|
|
1262
1262
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1263
1263
|
const {
|
|
1264
|
-
picks:
|
|
1265
|
-
} = e,
|
|
1264
|
+
picks: n
|
|
1265
|
+
} = e, s = Xt(n), o = this.getClickSequence();
|
|
1266
1266
|
let i = !1;
|
|
1267
|
-
!
|
|
1267
|
+
!s && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
|
|
1268
1268
|
const a = this.getClickSequence(), l = [...a, a[0]];
|
|
1269
1269
|
this.area = Xe({
|
|
1270
1270
|
type: "Polygon",
|
|
1271
1271
|
coordinates: [l]
|
|
1272
|
-
}), this.isFinalizedEdition(o,
|
|
1272
|
+
}), this.isFinalizedEdition(o, s) ? this.finalizeEdition(t) : i && t.onEdit({
|
|
1273
1273
|
// data is the same
|
|
1274
1274
|
updatedData: t.data,
|
|
1275
1275
|
editType: "addTentativePosition",
|
|
@@ -1282,15 +1282,15 @@ class dn extends Jt {
|
|
|
1282
1282
|
e.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(t) : this.resetEdition(t) : e.key === "Escape" && this.resetEdition(t);
|
|
1283
1283
|
}
|
|
1284
1284
|
updateTooltip(e, t) {
|
|
1285
|
-
const
|
|
1286
|
-
this.area = Xe(e), this.tooltips = Ft(this.area,
|
|
1285
|
+
const n = cn(e);
|
|
1286
|
+
this.area = Xe(e), this.tooltips = Ft(this.area, n.geometry.coordinates, t.modeConfig);
|
|
1287
1287
|
}
|
|
1288
1288
|
handlePointerMove(e, t) {
|
|
1289
1289
|
if (this._isMeasuringSessionFinished)
|
|
1290
1290
|
return;
|
|
1291
1291
|
super.handlePointerMove(e, t);
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1292
|
+
const n = this.getTentativeGuide(t);
|
|
1293
|
+
n && n.geometry.type === "Polygon" && this.updateTooltip(n, t);
|
|
1294
1294
|
}
|
|
1295
1295
|
resetClickSequence() {
|
|
1296
1296
|
super.resetClickSequence(), this.tooltips = [], this._isMeasuringSessionFinished = !1, this.area = 0;
|
|
@@ -1303,30 +1303,30 @@ class dn extends Jt {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
isFinalizedEdition(e, t) {
|
|
1305
1305
|
const {
|
|
1306
|
-
positionIndexes:
|
|
1306
|
+
positionIndexes: n
|
|
1307
1307
|
} = t?.properties ?? {
|
|
1308
1308
|
positionIndexes: []
|
|
1309
1309
|
};
|
|
1310
|
-
return e.length > 2 && t !== void 0 && (
|
|
1310
|
+
return e.length > 2 && t !== void 0 && (n[0] === 0 || n[0] === e.length - 1);
|
|
1311
1311
|
}
|
|
1312
1312
|
allowOverlapping(e) {
|
|
1313
1313
|
let t = !1;
|
|
1314
|
-
const
|
|
1315
|
-
if (
|
|
1314
|
+
const n = this.getClickSequence();
|
|
1315
|
+
if (n.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1316
1316
|
e.modeConfig?.preventOverlappingLines) {
|
|
1317
|
-
const
|
|
1317
|
+
const s = {
|
|
1318
1318
|
type: "LineString",
|
|
1319
|
-
coordinates: [...
|
|
1319
|
+
coordinates: [...n, n[0]]
|
|
1320
1320
|
}, o = {
|
|
1321
1321
|
type: "LineString",
|
|
1322
|
-
coordinates: [...
|
|
1322
|
+
coordinates: [...n.slice(0, n.length - 1)]
|
|
1323
1323
|
};
|
|
1324
|
-
|
|
1324
|
+
un(s, o).features.length > 0 && (t = !0);
|
|
1325
1325
|
}
|
|
1326
1326
|
return t;
|
|
1327
1327
|
}
|
|
1328
1328
|
finalizeEdition(e) {
|
|
1329
|
-
const t = this.getClickSequence(),
|
|
1329
|
+
const t = this.getClickSequence(), n = {
|
|
1330
1330
|
type: "Polygon",
|
|
1331
1331
|
coordinates: [[...t, t[0]]]
|
|
1332
1332
|
};
|
|
@@ -1334,17 +1334,17 @@ class dn extends Jt {
|
|
|
1334
1334
|
type: "FeatureCollection",
|
|
1335
1335
|
features: []
|
|
1336
1336
|
};
|
|
1337
|
-
const
|
|
1338
|
-
this._isMeasuringSessionFinished = !0,
|
|
1339
|
-
...
|
|
1337
|
+
const s = this.getAddFeatureOrBooleanPolygonAction(n, e);
|
|
1338
|
+
this._isMeasuringSessionFinished = !0, s && (this.resultPolygon = s.updatedData, e.onEdit({
|
|
1339
|
+
...s,
|
|
1340
1340
|
editType: te.addPosition,
|
|
1341
1341
|
editContext: {
|
|
1342
|
-
...
|
|
1342
|
+
...s.editContext,
|
|
1343
1343
|
distance: this.area,
|
|
1344
1344
|
positions: this.getClickSequence(),
|
|
1345
1345
|
finished: this._isMeasuringSessionFinished
|
|
1346
1346
|
}
|
|
1347
|
-
})), this.updateTooltip(
|
|
1347
|
+
})), this.updateTooltip(n, e);
|
|
1348
1348
|
}
|
|
1349
1349
|
resetEdition(e) {
|
|
1350
1350
|
this.resetClickSequence(), e.onEdit({
|
|
@@ -1357,19 +1357,19 @@ class dn extends Jt {
|
|
|
1357
1357
|
getTooltipText({
|
|
1358
1358
|
meters: e,
|
|
1359
1359
|
locale: t,
|
|
1360
|
-
unit:
|
|
1361
|
-
options:
|
|
1360
|
+
unit: n,
|
|
1361
|
+
options: s
|
|
1362
1362
|
}) {
|
|
1363
1363
|
return Oe({
|
|
1364
1364
|
meters: e,
|
|
1365
1365
|
locale: t,
|
|
1366
|
-
unit:
|
|
1367
|
-
options:
|
|
1366
|
+
unit: n,
|
|
1367
|
+
options: s,
|
|
1368
1368
|
dimension: "area"
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
class
|
|
1372
|
+
class fs extends bt {
|
|
1373
1373
|
_isMeasuringSessionFinished = !1;
|
|
1374
1374
|
_currentArea = 0;
|
|
1375
1375
|
resultPolygon = {
|
|
@@ -1384,8 +1384,8 @@ class fn extends bt {
|
|
|
1384
1384
|
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips = Ft(this.areaCircle, this.position, t.modeConfig));
|
|
1385
1385
|
}
|
|
1386
1386
|
checkAndFinishPolygon(e) {
|
|
1387
|
-
const t = this.getClickSequence(),
|
|
1388
|
-
this.isFinalizedEdition(t,
|
|
1387
|
+
const t = this.getClickSequence(), n = this.getTentativeGuide(e);
|
|
1388
|
+
this.isFinalizedEdition(t, n) && this.finalizeEdition(e);
|
|
1389
1389
|
}
|
|
1390
1390
|
handleKeyUp(e, t) {
|
|
1391
1391
|
e.key === "Enter" ? this.finalizeEdition(t) : e.key === "Escape" && this.resetEdition(t);
|
|
@@ -1402,12 +1402,12 @@ class fn extends bt {
|
|
|
1402
1402
|
type: "FeatureCollection",
|
|
1403
1403
|
features: []
|
|
1404
1404
|
};
|
|
1405
|
-
const
|
|
1406
|
-
this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"),
|
|
1407
|
-
...
|
|
1405
|
+
const n = this.getAddFeatureOrBooleanPolygonAction(t, e);
|
|
1406
|
+
this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"), n && (this.resultPolygon = n.updatedData, e.onEdit({
|
|
1407
|
+
...n,
|
|
1408
1408
|
editType: te.addPosition,
|
|
1409
1409
|
editContext: {
|
|
1410
|
-
...
|
|
1410
|
+
...n.editContext,
|
|
1411
1411
|
distance: this._currentArea,
|
|
1412
1412
|
positions: this.getClickSequence(),
|
|
1413
1413
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1431,19 +1431,19 @@ class fn extends bt {
|
|
|
1431
1431
|
getTooltipText({
|
|
1432
1432
|
meters: e,
|
|
1433
1433
|
locale: t,
|
|
1434
|
-
unit:
|
|
1435
|
-
options:
|
|
1434
|
+
unit: n,
|
|
1435
|
+
options: s
|
|
1436
1436
|
}) {
|
|
1437
1437
|
return Oe({
|
|
1438
1438
|
meters: e,
|
|
1439
1439
|
locale: t,
|
|
1440
|
-
unit:
|
|
1441
|
-
options:
|
|
1440
|
+
unit: n,
|
|
1441
|
+
options: s,
|
|
1442
1442
|
dimension: "area"
|
|
1443
1443
|
});
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
class At extends
|
|
1446
|
+
class At extends en {
|
|
1447
1447
|
handleClick(e, t) {
|
|
1448
1448
|
super.handleClick(e, t), t.onEdit({
|
|
1449
1449
|
// data is the same
|
|
@@ -1460,10 +1460,10 @@ class At extends es {
|
|
|
1460
1460
|
if (this._isMeasuringSessionFinished) return;
|
|
1461
1461
|
e.stopPropagation();
|
|
1462
1462
|
const {
|
|
1463
|
-
key:
|
|
1464
|
-
} = e,
|
|
1463
|
+
key: n
|
|
1464
|
+
} = e, s = this.getClickSequence().length;
|
|
1465
1465
|
let o = te.finish;
|
|
1466
|
-
switch (
|
|
1466
|
+
switch (n) {
|
|
1467
1467
|
case "Escape":
|
|
1468
1468
|
t.onEdit({
|
|
1469
1469
|
updatedData: {
|
|
@@ -1475,7 +1475,7 @@ class At extends es {
|
|
|
1475
1475
|
});
|
|
1476
1476
|
break;
|
|
1477
1477
|
case "Enter":
|
|
1478
|
-
this._isMeasuringSessionFinished = !0,
|
|
1478
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o = te.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1479
1479
|
updatedData: t.data,
|
|
1480
1480
|
editType: o,
|
|
1481
1481
|
editContext: {
|
|
@@ -1491,18 +1491,18 @@ class At extends es {
|
|
|
1491
1491
|
getTooltipText({
|
|
1492
1492
|
meters: e,
|
|
1493
1493
|
locale: t,
|
|
1494
|
-
unit:
|
|
1495
|
-
options:
|
|
1494
|
+
unit: n,
|
|
1495
|
+
options: s
|
|
1496
1496
|
}) {
|
|
1497
1497
|
return Oe({
|
|
1498
1498
|
meters: e,
|
|
1499
1499
|
locale: t,
|
|
1500
|
-
unit:
|
|
1501
|
-
options:
|
|
1500
|
+
unit: n,
|
|
1501
|
+
options: s
|
|
1502
1502
|
});
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
|
-
const ce = "mapMeasureLayer",
|
|
1505
|
+
const ce = "mapMeasureLayer", ps = {
|
|
1506
1506
|
id: ce,
|
|
1507
1507
|
pickable: !1,
|
|
1508
1508
|
billboard: !1,
|
|
@@ -1539,7 +1539,7 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1539
1539
|
point: Ve.point
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
},
|
|
1542
|
+
}, H = {
|
|
1543
1543
|
kilometer: "kilometer",
|
|
1544
1544
|
meter: "meter",
|
|
1545
1545
|
centimeter: "centimeter",
|
|
@@ -1555,37 +1555,37 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1555
1555
|
}, Ie = {
|
|
1556
1556
|
"m-km": "m-km",
|
|
1557
1557
|
"ft-mi": "ft-mi",
|
|
1558
|
-
...
|
|
1559
|
-
},
|
|
1558
|
+
...H
|
|
1559
|
+
}, ms = {
|
|
1560
1560
|
meters: "meters",
|
|
1561
1561
|
kilometer: "kilometers",
|
|
1562
1562
|
mile: "miles"
|
|
1563
1563
|
}, it = {
|
|
1564
|
-
[
|
|
1565
|
-
[
|
|
1566
|
-
[
|
|
1567
|
-
[
|
|
1568
|
-
[
|
|
1569
|
-
[
|
|
1570
|
-
[
|
|
1564
|
+
[H.kilometer]: "km",
|
|
1565
|
+
[H.meter]: "m",
|
|
1566
|
+
[H.centimeter]: "cm",
|
|
1567
|
+
[H.milimeter]: "mm",
|
|
1568
|
+
[H.mile]: "mi",
|
|
1569
|
+
[H.yard]: "yd",
|
|
1570
|
+
[H.feet]: "ft"
|
|
1571
1571
|
}, at = {
|
|
1572
1572
|
[ue.squareMeter]: "m2",
|
|
1573
1573
|
[ue.squareKilometer]: "km2",
|
|
1574
1574
|
[ue.squareMile]: "mi2",
|
|
1575
1575
|
[ue.squareFeet]: "ft2"
|
|
1576
1576
|
}, Pe = {
|
|
1577
|
-
[
|
|
1578
|
-
[
|
|
1579
|
-
[
|
|
1580
|
-
[
|
|
1581
|
-
},
|
|
1582
|
-
[
|
|
1583
|
-
[
|
|
1584
|
-
[
|
|
1585
|
-
[
|
|
1586
|
-
[
|
|
1587
|
-
[
|
|
1588
|
-
[
|
|
1577
|
+
[H.meter]: ue.squareMeter,
|
|
1578
|
+
[H.kilometer]: ue.squareKilometer,
|
|
1579
|
+
[H.mile]: ue.squareMile,
|
|
1580
|
+
[H.feet]: ue.squareFeet
|
|
1581
|
+
}, ve = {
|
|
1582
|
+
[H.kilometer]: "kilometer",
|
|
1583
|
+
[H.meter]: "meter",
|
|
1584
|
+
[H.centimeter]: "centimeter",
|
|
1585
|
+
[H.milimeter]: "millimeter",
|
|
1586
|
+
[H.mile]: "mile",
|
|
1587
|
+
[H.yard]: "yard",
|
|
1588
|
+
[H.feet]: "foot"
|
|
1589
1589
|
}, X = {
|
|
1590
1590
|
"m-km": {
|
|
1591
1591
|
value: "m-km",
|
|
@@ -1623,155 +1623,156 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1623
1623
|
value: "feet",
|
|
1624
1624
|
system: "imperial"
|
|
1625
1625
|
}
|
|
1626
|
-
}, lt = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet],
|
|
1626
|
+
}, lt = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], ys = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], hs = {
|
|
1627
1627
|
distance: {
|
|
1628
1628
|
value: "distance",
|
|
1629
1629
|
mode: At
|
|
1630
1630
|
},
|
|
1631
1631
|
buffer: {
|
|
1632
1632
|
value: "buffer",
|
|
1633
|
-
mode:
|
|
1633
|
+
mode: fs
|
|
1634
1634
|
},
|
|
1635
1635
|
area: {
|
|
1636
1636
|
value: "area",
|
|
1637
|
-
mode:
|
|
1637
|
+
mode: ds
|
|
1638
1638
|
}
|
|
1639
|
-
},
|
|
1639
|
+
}, gs = {
|
|
1640
1640
|
distance: lt,
|
|
1641
1641
|
buffer: lt,
|
|
1642
|
-
area:
|
|
1643
|
-
},
|
|
1644
|
-
function
|
|
1642
|
+
area: ys
|
|
1643
|
+
}, bs = [me, Ce, ce];
|
|
1644
|
+
function vs({
|
|
1645
1645
|
children: r,
|
|
1646
1646
|
mapId: e,
|
|
1647
1647
|
defaultProps: {
|
|
1648
1648
|
styles: t = xe.styles,
|
|
1649
|
-
labels:
|
|
1649
|
+
labels: n
|
|
1650
1650
|
} = {
|
|
1651
1651
|
styles: xe.styles,
|
|
1652
1652
|
labels: xe.labels
|
|
1653
1653
|
},
|
|
1654
|
-
layerProps:
|
|
1654
|
+
layerProps: s = {},
|
|
1655
1655
|
defaultType: o = "mask"
|
|
1656
1656
|
}) {
|
|
1657
|
-
const i =
|
|
1657
|
+
const i = Q((E) => E.data[e]?.enabled), a = ge(i), l = Q((E) => E.setEnabled), c = Q((E) => E.data[e]?.values), h = Q((E) => E.setValue), y = Q((E) => E.data[e]?.modeInstance), v = Q((E) => E.data[e]?.modeSelected), p = be((E) => E.setLayer), b = q((E) => E.addLayers), m = q((E) => E.removeLayers), w = q(vt((E) => E.maps[e]?.layers.filter((d) => !bs.includes(d)))), u = q((E) => E.getDeckInstance), f = ge({});
|
|
1658
1658
|
Pt({
|
|
1659
1659
|
mapId: e,
|
|
1660
1660
|
layerId: me
|
|
1661
1661
|
});
|
|
1662
|
-
const
|
|
1663
|
-
values:
|
|
1664
|
-
}), [
|
|
1662
|
+
const S = ye(() => Ot({
|
|
1663
|
+
values: c
|
|
1664
|
+
}), [c]), M = ye(() => ({
|
|
1665
1665
|
type: "FeatureCollection",
|
|
1666
|
-
features:
|
|
1666
|
+
features: S.map((E) => ({
|
|
1667
1667
|
type: "Feature",
|
|
1668
|
-
geometry:
|
|
1669
|
-
properties:
|
|
1670
|
-
id:
|
|
1668
|
+
geometry: E.geometry,
|
|
1669
|
+
properties: E.properties,
|
|
1670
|
+
id: E.id
|
|
1671
1671
|
}))
|
|
1672
|
-
}), [
|
|
1673
|
-
const
|
|
1674
|
-
...
|
|
1675
|
-
features:
|
|
1672
|
+
}), [S]), _ = ye(() => S.filter((E) => E.properties.visible).map((E) => E.id), [S]), [P, R] = ae(M), [V, D] = ae([]), B = ee(() => {
|
|
1673
|
+
const E = {
|
|
1674
|
+
...M,
|
|
1675
|
+
features: M.features.filter((d) => d.properties?.visible)
|
|
1676
1676
|
};
|
|
1677
|
-
|
|
1678
|
-
}, [
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
}, [
|
|
1682
|
-
const
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
}), [
|
|
1686
|
-
const
|
|
1687
|
-
|
|
1688
|
-
}, [e,
|
|
1689
|
-
editType:
|
|
1690
|
-
updatedData:
|
|
1677
|
+
R(E);
|
|
1678
|
+
}, [M]);
|
|
1679
|
+
W(() => {
|
|
1680
|
+
B();
|
|
1681
|
+
}, [B]);
|
|
1682
|
+
const x = ge(S.length);
|
|
1683
|
+
W(() => (b(e, [me]), () => {
|
|
1684
|
+
m(e, [me]);
|
|
1685
|
+
}), [b, e, m]);
|
|
1686
|
+
const F = ee(() => {
|
|
1687
|
+
B(), D([]), l(e, !1);
|
|
1688
|
+
}, [e, B, l]), j = ee(({
|
|
1689
|
+
editType: E,
|
|
1690
|
+
updatedData: d
|
|
1691
1691
|
}) => {
|
|
1692
|
-
if (
|
|
1693
|
-
|
|
1692
|
+
if (E === te.cancel) {
|
|
1693
|
+
F();
|
|
1694
1694
|
return;
|
|
1695
1695
|
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
const
|
|
1699
|
-
|
|
1700
|
-
geometry:
|
|
1701
|
-
properties:
|
|
1696
|
+
R(d), E !== te.updateTentativeFeature && E === te.addFeature && (v !== "edit" && (x.current = x.current + 1), d.features.forEach((g, L) => {
|
|
1697
|
+
g.properties.label ??= `${n?.mask} ${x.current}`, g.properties.index = L, g.properties.visible = g.properties.visible ?? !0;
|
|
1698
|
+
const C = g.id ?? crypto.randomUUID();
|
|
1699
|
+
h(e, C, {
|
|
1700
|
+
geometry: g.geometry,
|
|
1701
|
+
properties: g.properties,
|
|
1702
1702
|
// visible: true,
|
|
1703
1703
|
type: o
|
|
1704
1704
|
});
|
|
1705
|
-
}),
|
|
1706
|
-
}, [o,
|
|
1707
|
-
return
|
|
1708
|
-
const
|
|
1709
|
-
border:
|
|
1710
|
-
point:
|
|
1711
|
-
fill:
|
|
1705
|
+
}), F());
|
|
1706
|
+
}, [o, F, n?.mask, e, v, h]);
|
|
1707
|
+
return W(() => {
|
|
1708
|
+
const E = i, {
|
|
1709
|
+
border: d,
|
|
1710
|
+
point: g,
|
|
1711
|
+
fill: L
|
|
1712
1712
|
} = t.colors.editing, {
|
|
1713
|
-
border:
|
|
1714
|
-
fill:
|
|
1715
|
-
} = t.colors.finished,
|
|
1713
|
+
border: C,
|
|
1714
|
+
fill: k
|
|
1715
|
+
} = t.colors.finished, T = ss({
|
|
1716
1716
|
layerProps: {
|
|
1717
|
-
...
|
|
1718
|
-
pickable:
|
|
1719
|
-
data:
|
|
1720
|
-
selectedFeatureIndexes:
|
|
1717
|
+
...s.mask,
|
|
1718
|
+
pickable: E,
|
|
1719
|
+
data: P,
|
|
1720
|
+
selectedFeatureIndexes: V,
|
|
1721
1721
|
updateTriggers: {
|
|
1722
1722
|
getFilterValue: _
|
|
1723
1723
|
},
|
|
1724
|
-
onClick: (
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1724
|
+
onClick: (U) => {
|
|
1725
|
+
const N = U;
|
|
1726
|
+
N.isGuide || D([N.index]);
|
|
1727
1727
|
}
|
|
1728
1728
|
},
|
|
1729
|
-
getLineColor: (
|
|
1730
|
-
getFillColor: (
|
|
1729
|
+
getLineColor: (U) => V[0] === U.properties.index ? d : C,
|
|
1730
|
+
getFillColor: (U) => V[0] === U.properties.index ? L : k,
|
|
1731
1731
|
pointColor: {
|
|
1732
|
-
fill:
|
|
1733
|
-
outline:
|
|
1732
|
+
fill: g,
|
|
1733
|
+
outline: d
|
|
1734
1734
|
},
|
|
1735
|
-
onEdit:
|
|
1736
|
-
mode:
|
|
1735
|
+
onEdit: j,
|
|
1736
|
+
mode: E ? y : new tn()
|
|
1737
1737
|
});
|
|
1738
|
-
|
|
1739
|
-
}, [
|
|
1740
|
-
const
|
|
1741
|
-
...
|
|
1742
|
-
data:
|
|
1743
|
-
getFilterValue: (
|
|
1738
|
+
p(me, T);
|
|
1739
|
+
}, [P, i, s.mask, _, y, j, V, p, t.colors.editing, t.colors.finished]), W(() => {
|
|
1740
|
+
const E = {
|
|
1741
|
+
...Te,
|
|
1742
|
+
data: M,
|
|
1743
|
+
getFilterValue: (d) => Number(_.includes(d.id)),
|
|
1744
1744
|
updateTriggers: {
|
|
1745
1745
|
getFilterValue: _
|
|
1746
1746
|
}
|
|
1747
1747
|
};
|
|
1748
|
-
return
|
|
1749
|
-
type:
|
|
1750
|
-
props:
|
|
1751
|
-
}),
|
|
1752
|
-
|
|
1748
|
+
return p(Te.id, {
|
|
1749
|
+
type: ln,
|
|
1750
|
+
props: E
|
|
1751
|
+
}), b(e, [Te.id]), () => {
|
|
1752
|
+
m(e, [Te.id]);
|
|
1753
1753
|
};
|
|
1754
|
-
}, [
|
|
1755
|
-
|
|
1756
|
-
const
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
g(
|
|
1754
|
+
}, [b, e, M, _, m, p]), W(() => {
|
|
1755
|
+
i === a.current && !a.current || w?.forEach((E) => {
|
|
1756
|
+
const d = u(e)?.props.layers.find((L) => L.props.id === E);
|
|
1757
|
+
if (!d) return;
|
|
1758
|
+
i && (f.current[E] = d?.props.pickable);
|
|
1759
|
+
const g = !i && (f.current[E] ?? d?.props.pickable);
|
|
1760
|
+
p(E, {
|
|
1760
1761
|
props: {
|
|
1761
|
-
pickable:
|
|
1762
|
-
extensions: [new
|
|
1762
|
+
pickable: g,
|
|
1763
|
+
extensions: [new sn()],
|
|
1763
1764
|
maskId: !i && _.length ? Ce : void 0
|
|
1764
1765
|
}
|
|
1765
|
-
});
|
|
1766
|
+
}), a.current = i;
|
|
1766
1767
|
});
|
|
1767
|
-
}, [i,
|
|
1768
|
+
}, [i, u, e, w, _.length, p]), r;
|
|
1768
1769
|
}
|
|
1769
|
-
|
|
1770
|
-
function
|
|
1770
|
+
vs.Controls = as;
|
|
1771
|
+
function Ss({
|
|
1771
1772
|
mode: r,
|
|
1772
1773
|
...e
|
|
1773
1774
|
}) {
|
|
1774
|
-
const t =
|
|
1775
|
+
const t = ws({
|
|
1775
1776
|
mode: r,
|
|
1776
1777
|
...e
|
|
1777
1778
|
});
|
|
@@ -1784,28 +1785,28 @@ function Sn({
|
|
|
1784
1785
|
}
|
|
1785
1786
|
};
|
|
1786
1787
|
}
|
|
1787
|
-
function
|
|
1788
|
+
function ws({
|
|
1788
1789
|
mode: r,
|
|
1789
1790
|
layerProps: e,
|
|
1790
1791
|
locale: t,
|
|
1791
|
-
enabled:
|
|
1792
|
-
unit:
|
|
1792
|
+
enabled: n,
|
|
1793
|
+
unit: s,
|
|
1793
1794
|
onEdit: o,
|
|
1794
1795
|
guideColor: i,
|
|
1795
1796
|
pointColor: a,
|
|
1796
1797
|
textOptions: l
|
|
1797
1798
|
}) {
|
|
1798
1799
|
const c = de(e, {
|
|
1799
|
-
visible:
|
|
1800
|
-
pickable:
|
|
1800
|
+
visible: n,
|
|
1801
|
+
pickable: n,
|
|
1801
1802
|
modeConfig: {
|
|
1802
1803
|
// We force distance due to conversion is addressed at feature getText level
|
|
1803
|
-
formatTooltip: (
|
|
1804
|
+
formatTooltip: (v) => v,
|
|
1804
1805
|
turfOptions: {
|
|
1805
|
-
units:
|
|
1806
|
+
units: ms.meters
|
|
1806
1807
|
}
|
|
1807
1808
|
},
|
|
1808
|
-
...
|
|
1809
|
+
...n && {
|
|
1809
1810
|
onEdit: o
|
|
1810
1811
|
},
|
|
1811
1812
|
_subLayerProps: {
|
|
@@ -1817,18 +1818,18 @@ function wn({
|
|
|
1817
1818
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1818
1819
|
smoothing: 0.2
|
|
1819
1820
|
},
|
|
1820
|
-
getText: (
|
|
1821
|
-
meters:
|
|
1821
|
+
getText: (v) => r?.getTooltipText?.({
|
|
1822
|
+
meters: v.text,
|
|
1822
1823
|
locale: t,
|
|
1823
|
-
unit:
|
|
1824
|
+
unit: s,
|
|
1824
1825
|
options: l
|
|
1825
1826
|
}),
|
|
1826
1827
|
updateTriggers: {
|
|
1827
|
-
getText: [
|
|
1828
|
+
getText: [s, t, l]
|
|
1828
1829
|
}
|
|
1829
1830
|
}
|
|
1830
1831
|
}
|
|
1831
|
-
}), h = de(
|
|
1832
|
+
}), h = de(ps, {
|
|
1832
1833
|
_subLayerProps: {
|
|
1833
1834
|
guides: {
|
|
1834
1835
|
getLineColor: i,
|
|
@@ -1840,268 +1841,268 @@ function wn({
|
|
|
1840
1841
|
});
|
|
1841
1842
|
return de(h, c);
|
|
1842
1843
|
}
|
|
1843
|
-
const
|
|
1844
|
-
measurements: r.reduce((
|
|
1844
|
+
const _s = (r) => Ge()((e) => ({
|
|
1845
|
+
measurements: r.reduce((n, s) => {
|
|
1845
1846
|
const {
|
|
1846
1847
|
mapId: o,
|
|
1847
1848
|
modeSelected: i,
|
|
1848
|
-
modes: a =
|
|
1849
|
-
units: l =
|
|
1849
|
+
modes: a = hs,
|
|
1850
|
+
units: l = gs,
|
|
1850
1851
|
distance: c = 0,
|
|
1851
1852
|
finished: h = !1,
|
|
1852
1853
|
locale: y = "en",
|
|
1853
|
-
positions:
|
|
1854
|
+
positions: v = [],
|
|
1854
1855
|
clearLayerOnStart: p = !1,
|
|
1855
1856
|
unit: b = Ie["m-km"],
|
|
1856
1857
|
enabled: m = !1
|
|
1857
|
-
} =
|
|
1858
|
-
return
|
|
1858
|
+
} = s;
|
|
1859
|
+
return n[o] = {
|
|
1859
1860
|
modes: a,
|
|
1860
1861
|
units: l,
|
|
1861
1862
|
modeSelected: i,
|
|
1862
1863
|
distance: c,
|
|
1863
1864
|
finished: h,
|
|
1864
1865
|
locale: y,
|
|
1865
|
-
positions:
|
|
1866
|
+
positions: v,
|
|
1866
1867
|
unit: b,
|
|
1867
1868
|
clearLayerOnStart: p,
|
|
1868
1869
|
enabled: m
|
|
1869
|
-
},
|
|
1870
|
+
}, n;
|
|
1870
1871
|
}, {}),
|
|
1871
1872
|
mode: At,
|
|
1872
|
-
setModeInstance: (
|
|
1873
|
+
setModeInstance: (n, s) => {
|
|
1873
1874
|
e((o) => ({
|
|
1874
1875
|
measurements: {
|
|
1875
1876
|
...o.measurements,
|
|
1876
|
-
[
|
|
1877
|
-
...o.measurements[
|
|
1878
|
-
modeInstance:
|
|
1877
|
+
[n]: {
|
|
1878
|
+
...o.measurements[n],
|
|
1879
|
+
modeInstance: s
|
|
1879
1880
|
}
|
|
1880
1881
|
}
|
|
1881
1882
|
}));
|
|
1882
1883
|
},
|
|
1883
|
-
setModeSelected: (
|
|
1884
|
+
setModeSelected: (n, s) => {
|
|
1884
1885
|
e((o) => ({
|
|
1885
1886
|
measurements: {
|
|
1886
1887
|
...o.measurements,
|
|
1887
|
-
[
|
|
1888
|
-
...o.measurements[
|
|
1889
|
-
modeSelected:
|
|
1888
|
+
[n]: {
|
|
1889
|
+
...o.measurements[n],
|
|
1890
|
+
modeSelected: s
|
|
1890
1891
|
}
|
|
1891
1892
|
}
|
|
1892
1893
|
}));
|
|
1893
1894
|
},
|
|
1894
|
-
setFinished: (
|
|
1895
|
+
setFinished: (n, s) => {
|
|
1895
1896
|
e((o) => ({
|
|
1896
1897
|
measurements: {
|
|
1897
1898
|
...o.measurements,
|
|
1898
|
-
[
|
|
1899
|
-
...o.measurements[
|
|
1900
|
-
finished:
|
|
1899
|
+
[n]: {
|
|
1900
|
+
...o.measurements[n],
|
|
1901
|
+
finished: s
|
|
1901
1902
|
}
|
|
1902
1903
|
}
|
|
1903
1904
|
}));
|
|
1904
1905
|
},
|
|
1905
|
-
setDistance: (
|
|
1906
|
+
setDistance: (n, s) => {
|
|
1906
1907
|
e((o) => ({
|
|
1907
1908
|
measurements: {
|
|
1908
1909
|
...o.measurements,
|
|
1909
|
-
[
|
|
1910
|
-
...o.measurements[
|
|
1911
|
-
distance:
|
|
1910
|
+
[n]: {
|
|
1911
|
+
...o.measurements[n],
|
|
1912
|
+
distance: s
|
|
1912
1913
|
}
|
|
1913
1914
|
}
|
|
1914
1915
|
}));
|
|
1915
1916
|
},
|
|
1916
|
-
setUnit: (
|
|
1917
|
+
setUnit: (n, s) => {
|
|
1917
1918
|
e((o) => ({
|
|
1918
1919
|
measurements: {
|
|
1919
1920
|
...o.measurements,
|
|
1920
|
-
[
|
|
1921
|
-
...o.measurements[
|
|
1922
|
-
unit:
|
|
1921
|
+
[n]: {
|
|
1922
|
+
...o.measurements[n],
|
|
1923
|
+
unit: s
|
|
1923
1924
|
}
|
|
1924
1925
|
}
|
|
1925
1926
|
}));
|
|
1926
1927
|
},
|
|
1927
|
-
setLocale: (
|
|
1928
|
+
setLocale: (n, s) => {
|
|
1928
1929
|
e((o) => ({
|
|
1929
1930
|
measurements: {
|
|
1930
1931
|
...o.measurements,
|
|
1931
|
-
[
|
|
1932
|
-
...o.measurements[
|
|
1933
|
-
locale:
|
|
1932
|
+
[n]: {
|
|
1933
|
+
...o.measurements[n],
|
|
1934
|
+
locale: s
|
|
1934
1935
|
}
|
|
1935
1936
|
}
|
|
1936
1937
|
}));
|
|
1937
1938
|
},
|
|
1938
|
-
setPositions: (
|
|
1939
|
+
setPositions: (n, s) => {
|
|
1939
1940
|
e((o) => ({
|
|
1940
1941
|
measurements: {
|
|
1941
1942
|
...o.measurements,
|
|
1942
|
-
[
|
|
1943
|
-
...o.measurements[
|
|
1944
|
-
positions: [...
|
|
1943
|
+
[n]: {
|
|
1944
|
+
...o.measurements[n],
|
|
1945
|
+
positions: [...s]
|
|
1945
1946
|
}
|
|
1946
1947
|
}
|
|
1947
1948
|
}));
|
|
1948
1949
|
},
|
|
1949
|
-
setEnabled: (
|
|
1950
|
+
setEnabled: (n, s) => {
|
|
1950
1951
|
e((o) => ({
|
|
1951
1952
|
measurements: {
|
|
1952
1953
|
...o.measurements,
|
|
1953
|
-
[
|
|
1954
|
-
...o.measurements[
|
|
1955
|
-
enabled:
|
|
1954
|
+
[n]: {
|
|
1955
|
+
...o.measurements[n],
|
|
1956
|
+
enabled: s
|
|
1956
1957
|
}
|
|
1957
1958
|
}
|
|
1958
1959
|
}));
|
|
1959
1960
|
}
|
|
1960
1961
|
})), Rt = He({});
|
|
1961
|
-
function
|
|
1962
|
-
const e =
|
|
1962
|
+
function Ms(r) {
|
|
1963
|
+
const e = O(5), {
|
|
1963
1964
|
children: t,
|
|
1964
|
-
values:
|
|
1965
|
+
values: n
|
|
1965
1966
|
} = r;
|
|
1966
|
-
let
|
|
1967
|
-
e[0] !==
|
|
1968
|
-
const [o] = ae(
|
|
1967
|
+
let s;
|
|
1968
|
+
e[0] !== n ? (s = _s(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1969
|
+
const [o] = ae(s);
|
|
1969
1970
|
let i;
|
|
1970
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1971
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1971
1972
|
}
|
|
1972
|
-
function
|
|
1973
|
+
function K(r) {
|
|
1973
1974
|
const e = ze(Rt);
|
|
1974
1975
|
if (!Object.keys(e).length)
|
|
1975
1976
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1976
1977
|
return Ke(e, r);
|
|
1977
1978
|
}
|
|
1978
1979
|
function Dt(r) {
|
|
1979
|
-
const e =
|
|
1980
|
+
const e = O(74), {
|
|
1980
1981
|
mapId: t
|
|
1981
1982
|
} = r;
|
|
1982
|
-
let
|
|
1983
|
-
e[0] !== t ? (
|
|
1984
|
-
const
|
|
1983
|
+
let n;
|
|
1984
|
+
e[0] !== t ? (n = (A) => A.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1985
|
+
const s = K(n);
|
|
1985
1986
|
let o;
|
|
1986
|
-
e[2] !== t ? (o = (
|
|
1987
|
-
const i =
|
|
1987
|
+
e[2] !== t ? (o = (A) => A.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1988
|
+
const i = K(o);
|
|
1988
1989
|
let a;
|
|
1989
|
-
e[4] !== t ? (a = (
|
|
1990
|
-
const l =
|
|
1990
|
+
e[4] !== t ? (a = (A) => A.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1991
|
+
const l = K(a), c = K(Fs);
|
|
1991
1992
|
let h;
|
|
1992
|
-
e[6] !== c || e[7] !== t ? (h = (
|
|
1993
|
+
e[6] !== c || e[7] !== t ? (h = (A) => c(t, A), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1993
1994
|
const y = h;
|
|
1994
|
-
let
|
|
1995
|
-
e[9] !== t ? (
|
|
1996
|
-
const p =
|
|
1995
|
+
let v;
|
|
1996
|
+
e[9] !== t ? (v = (A) => A.measurements[t].clearLayerOnStart, e[9] = t, e[10] = v) : v = e[10];
|
|
1997
|
+
const p = K(v);
|
|
1997
1998
|
let b;
|
|
1998
|
-
e[11] !== t ? (b = (
|
|
1999
|
-
const m =
|
|
1999
|
+
e[11] !== t ? (b = (A) => A.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
2000
|
+
const m = K(b), w = K(Os);
|
|
2000
2001
|
let u;
|
|
2001
|
-
e[13] !== w || e[14] !== t ? (u = (
|
|
2002
|
+
e[13] !== w || e[14] !== t ? (u = (A) => w(t, A), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
2002
2003
|
const f = u;
|
|
2003
|
-
let
|
|
2004
|
-
e[16] !== t ? (
|
|
2005
|
-
const
|
|
2004
|
+
let S;
|
|
2005
|
+
e[16] !== t ? (S = (A) => A.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
2006
|
+
const M = K(S), _ = K(Cs);
|
|
2006
2007
|
let P;
|
|
2007
|
-
e[18] !==
|
|
2008
|
-
f(
|
|
2009
|
-
}, e[18] =
|
|
2010
|
-
const
|
|
2011
|
-
let
|
|
2012
|
-
e[22] !== t ? (
|
|
2013
|
-
const
|
|
2008
|
+
e[18] !== _ || e[19] !== t || e[20] !== f ? (P = (A) => {
|
|
2009
|
+
f(!!A), _(t, A);
|
|
2010
|
+
}, e[18] = _, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
2011
|
+
const R = P;
|
|
2012
|
+
let V;
|
|
2013
|
+
e[22] !== t ? (V = (A) => A.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
|
|
2014
|
+
const D = K(V), B = K(ks);
|
|
2015
|
+
let x;
|
|
2016
|
+
e[24] !== B || e[25] !== t ? (x = (A) => B(t, A), e[24] = B, e[25] = t, e[26] = x) : x = e[26];
|
|
2017
|
+
const F = x;
|
|
2014
2018
|
let j;
|
|
2015
|
-
e[
|
|
2016
|
-
const
|
|
2017
|
-
let
|
|
2018
|
-
e[
|
|
2019
|
-
const
|
|
2020
|
-
let S;
|
|
2021
|
-
e[29] !== d || e[30] !== t ? (S = ($) => d(t, $), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
2022
|
-
const L = S;
|
|
2019
|
+
e[27] !== t ? (j = (A) => A.measurements[t].locale, e[27] = t, e[28] = j) : j = e[28];
|
|
2020
|
+
const E = K(j), d = K(Ps);
|
|
2021
|
+
let g;
|
|
2022
|
+
e[29] !== d || e[30] !== t ? (g = (A) => d(t, A), e[29] = d, e[30] = t, e[31] = g) : g = e[31];
|
|
2023
|
+
const L = g;
|
|
2023
2024
|
let C;
|
|
2024
|
-
e[32] !== t ? (C = (
|
|
2025
|
-
const k =
|
|
2026
|
-
let
|
|
2027
|
-
e[34] !==
|
|
2028
|
-
const
|
|
2029
|
-
let
|
|
2030
|
-
e[37] !== t ? (
|
|
2031
|
-
const
|
|
2032
|
-
let
|
|
2033
|
-
e[39] !== z || e[40] !== t ? (
|
|
2034
|
-
const
|
|
2025
|
+
e[32] !== t ? (C = (A) => A.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
2026
|
+
const k = K(C), T = K(Ls);
|
|
2027
|
+
let U;
|
|
2028
|
+
e[34] !== T || e[35] !== t ? (U = (A) => T(t, A), e[34] = T, e[35] = t, e[36] = U) : U = e[36];
|
|
2029
|
+
const N = U;
|
|
2030
|
+
let I;
|
|
2031
|
+
e[37] !== t ? (I = (A) => A.measurements[t].positions, e[37] = t, e[38] = I) : I = e[38];
|
|
2032
|
+
const $ = K(I), z = K(Ts);
|
|
2033
|
+
let G;
|
|
2034
|
+
e[39] !== z || e[40] !== t ? (G = (A) => z(t, A), e[39] = z, e[40] = t, e[41] = G) : G = e[41];
|
|
2035
|
+
const ne = G;
|
|
2035
2036
|
let J;
|
|
2036
|
-
e[42] !== t ? (J = (
|
|
2037
|
-
const Y =
|
|
2037
|
+
e[42] !== t ? (J = (A) => A.measurements[t].unit, e[42] = t, e[43] = J) : J = e[43];
|
|
2038
|
+
const Y = K(J), se = K(Es);
|
|
2038
2039
|
let oe;
|
|
2039
|
-
e[44] !==
|
|
2040
|
+
e[44] !== se || e[45] !== t ? (oe = (A) => se(t, A), e[44] = se, e[45] = t, e[46] = oe) : oe = e[46];
|
|
2040
2041
|
const Fe = oe;
|
|
2041
|
-
let Se;
|
|
2042
|
-
e[47] !== k || e[48] !== se ? (Se = () => {
|
|
2043
|
-
k?.resetClickSequence(), se([]);
|
|
2044
|
-
}, e[47] = k, e[48] = se, e[49] = Se) : Se = e[49];
|
|
2045
|
-
const Ae = Se;
|
|
2046
2042
|
let we;
|
|
2047
|
-
e[
|
|
2048
|
-
|
|
2049
|
-
}, e[
|
|
2050
|
-
const
|
|
2043
|
+
e[47] !== k || e[48] !== ne ? (we = () => {
|
|
2044
|
+
k?.resetClickSequence(), ne([]);
|
|
2045
|
+
}, e[47] = k, e[48] = ne, e[49] = we) : we = e[49];
|
|
2046
|
+
const Ae = we;
|
|
2051
2047
|
let _e;
|
|
2052
|
-
|
|
2053
|
-
|
|
2048
|
+
e[50] !== f ? (_e = (A) => {
|
|
2049
|
+
f(A);
|
|
2050
|
+
}, e[50] = f, e[51] = _e) : _e = e[51];
|
|
2051
|
+
const Re = _e;
|
|
2052
|
+
let Me;
|
|
2053
|
+
return e[52] !== Ae || e[53] !== p || e[54] !== l || e[55] !== m || e[56] !== D || e[57] !== E || e[58] !== k || e[59] !== M || e[60] !== s || e[61] !== $ || e[62] !== y || e[63] !== f || e[64] !== F || e[65] !== L || e[66] !== N || e[67] !== R || e[68] !== ne || e[69] !== Fe || e[70] !== Re || e[71] !== Y || e[72] !== i ? (Me = {
|
|
2054
|
+
modes: s,
|
|
2054
2055
|
units: i,
|
|
2055
2056
|
distance: l,
|
|
2056
2057
|
clearLayerOnStart: p,
|
|
2057
|
-
modeSelected:
|
|
2058
|
+
modeSelected: M,
|
|
2058
2059
|
enabled: m,
|
|
2059
|
-
finished:
|
|
2060
|
-
locale:
|
|
2060
|
+
finished: D,
|
|
2061
|
+
locale: E,
|
|
2061
2062
|
modeInstance: k,
|
|
2062
|
-
positions:
|
|
2063
|
+
positions: $,
|
|
2063
2064
|
unit: Y,
|
|
2064
2065
|
setDistance: y,
|
|
2065
|
-
setModeSelected:
|
|
2066
|
-
setFinished:
|
|
2066
|
+
setModeSelected: R,
|
|
2067
|
+
setFinished: F,
|
|
2067
2068
|
setLocale: L,
|
|
2068
|
-
setPositions:
|
|
2069
|
+
setPositions: ne,
|
|
2069
2070
|
setUnit: Fe,
|
|
2070
2071
|
setEnabled: f,
|
|
2071
2072
|
toggleLayer: Re,
|
|
2072
2073
|
clearLayer: Ae,
|
|
2073
|
-
setModeInstance:
|
|
2074
|
-
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] =
|
|
2074
|
+
setModeInstance: N
|
|
2075
|
+
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] = D, e[57] = E, e[58] = k, e[59] = M, e[60] = s, e[61] = $, e[62] = y, e[63] = f, e[64] = F, e[65] = L, e[66] = N, e[67] = R, e[68] = ne, e[69] = Fe, e[70] = Re, e[71] = Y, e[72] = i, e[73] = Me) : Me = e[73], Me;
|
|
2075
2076
|
}
|
|
2076
|
-
function
|
|
2077
|
+
function Es(r) {
|
|
2077
2078
|
return r.setUnit;
|
|
2078
2079
|
}
|
|
2079
|
-
function
|
|
2080
|
+
function Ts(r) {
|
|
2080
2081
|
return r.setPositions;
|
|
2081
2082
|
}
|
|
2082
|
-
function
|
|
2083
|
+
function Ls(r) {
|
|
2083
2084
|
return r.setModeInstance;
|
|
2084
2085
|
}
|
|
2085
|
-
function
|
|
2086
|
+
function Ps(r) {
|
|
2086
2087
|
return r.setLocale;
|
|
2087
2088
|
}
|
|
2088
|
-
function
|
|
2089
|
+
function ks(r) {
|
|
2089
2090
|
return r.setFinished;
|
|
2090
2091
|
}
|
|
2091
|
-
function
|
|
2092
|
+
function Cs(r) {
|
|
2092
2093
|
return r.setModeSelected;
|
|
2093
2094
|
}
|
|
2094
|
-
function
|
|
2095
|
+
function Os(r) {
|
|
2095
2096
|
return r.setEnabled;
|
|
2096
2097
|
}
|
|
2097
|
-
function
|
|
2098
|
+
function Fs(r) {
|
|
2098
2099
|
return r.setDistance;
|
|
2099
2100
|
}
|
|
2100
|
-
function
|
|
2101
|
-
const e =
|
|
2101
|
+
function As(r) {
|
|
2102
|
+
const e = O(42), {
|
|
2102
2103
|
mapId: t,
|
|
2103
|
-
textOptions:
|
|
2104
|
-
children:
|
|
2104
|
+
textOptions: n,
|
|
2105
|
+
children: s
|
|
2105
2106
|
} = r;
|
|
2106
2107
|
let o;
|
|
2107
2108
|
e[0] !== t ? (o = {
|
|
@@ -2114,304 +2115,306 @@ function An(r) {
|
|
|
2114
2115
|
setDistance: c,
|
|
2115
2116
|
clearLayerOnStart: h,
|
|
2116
2117
|
modeSelected: y,
|
|
2117
|
-
setModeSelected:
|
|
2118
|
+
setModeSelected: v,
|
|
2118
2119
|
enabled: p,
|
|
2119
2120
|
setEnabled: b,
|
|
2120
2121
|
finished: m,
|
|
2121
2122
|
setFinished: w,
|
|
2122
2123
|
locale: u,
|
|
2123
2124
|
setLocale: f,
|
|
2124
|
-
modeInstance:
|
|
2125
|
-
setModeInstance:
|
|
2126
|
-
positions:
|
|
2125
|
+
modeInstance: S,
|
|
2126
|
+
setModeInstance: M,
|
|
2127
|
+
positions: _,
|
|
2127
2128
|
setPositions: P,
|
|
2128
|
-
unit:
|
|
2129
|
-
setUnit:
|
|
2130
|
-
clearLayer:
|
|
2131
|
-
toggleLayer:
|
|
2129
|
+
unit: R,
|
|
2130
|
+
setUnit: V,
|
|
2131
|
+
clearLayer: D,
|
|
2132
|
+
toggleLayer: B
|
|
2132
2133
|
} = Dt(o);
|
|
2133
|
-
let
|
|
2134
|
-
e[2] !== y || e[3] !== i || e[4] !==
|
|
2134
|
+
let x;
|
|
2135
|
+
e[2] !== y || e[3] !== i || e[4] !== M || e[5] !== P ? (x = () => {
|
|
2135
2136
|
if (y && i[y]) {
|
|
2136
2137
|
const L = i[y].mode;
|
|
2137
|
-
|
|
2138
|
+
M(new L());
|
|
2138
2139
|
}
|
|
2139
2140
|
return () => {
|
|
2140
2141
|
P([]);
|
|
2141
2142
|
};
|
|
2142
|
-
}, e[2] = y, e[3] = i, e[4] =
|
|
2143
|
-
let
|
|
2144
|
-
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !==
|
|
2145
|
-
let
|
|
2146
|
-
e[13] !==
|
|
2147
|
-
L && (h || !m) &&
|
|
2148
|
-
}, e[13] =
|
|
2149
|
-
const
|
|
2150
|
-
let
|
|
2151
|
-
return e[18] !==
|
|
2143
|
+
}, e[2] = y, e[3] = i, e[4] = M, e[5] = P, e[6] = x) : x = e[6];
|
|
2144
|
+
let F;
|
|
2145
|
+
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !== M || e[11] !== P ? (F = [i, y, P, M, b], e[7] = y, e[8] = i, e[9] = b, e[10] = M, e[11] = P, e[12] = F) : F = e[12], W(x, F);
|
|
2146
|
+
let j;
|
|
2147
|
+
e[13] !== B || e[14] !== D || e[15] !== h || e[16] !== m ? (j = (L) => {
|
|
2148
|
+
L && (h || !m) && D(), B(L);
|
|
2149
|
+
}, e[13] = B, e[14] = D, e[15] = h, e[16] = m, e[17] = j) : j = e[17];
|
|
2150
|
+
const E = j, d = !!h;
|
|
2151
|
+
let g;
|
|
2152
|
+
return e[18] !== s || e[19] !== D || e[20] !== l || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== S || e[26] !== y || e[27] !== i || e[28] !== _ || e[29] !== c || e[30] !== b || e[31] !== w || e[32] !== f || e[33] !== v || e[34] !== P || e[35] !== V || e[36] !== d || e[37] !== n || e[38] !== E || e[39] !== R || e[40] !== a ? (g = s({
|
|
2152
2153
|
mapId: t,
|
|
2153
2154
|
distance: l,
|
|
2154
2155
|
enabled: p,
|
|
2155
2156
|
finished: m,
|
|
2156
2157
|
locale: u,
|
|
2157
|
-
positions:
|
|
2158
|
-
unit:
|
|
2158
|
+
positions: _,
|
|
2159
|
+
unit: R,
|
|
2159
2160
|
clearLayerOnStart: d,
|
|
2160
2161
|
modeSelected: y,
|
|
2161
2162
|
modes: i,
|
|
2162
2163
|
units: a,
|
|
2163
2164
|
value: Oe({
|
|
2164
2165
|
meters: l,
|
|
2165
|
-
unit:
|
|
2166
|
+
unit: R,
|
|
2166
2167
|
locale: u,
|
|
2167
|
-
options:
|
|
2168
|
+
options: n
|
|
2168
2169
|
}),
|
|
2169
|
-
modeInstance:
|
|
2170
|
-
setModeSelected:
|
|
2170
|
+
modeInstance: S,
|
|
2171
|
+
setModeSelected: v,
|
|
2171
2172
|
setDistance: c,
|
|
2172
2173
|
setFinished: w,
|
|
2173
2174
|
setLocale: f,
|
|
2174
2175
|
setPositions: P,
|
|
2175
|
-
setUnit:
|
|
2176
|
+
setUnit: V,
|
|
2176
2177
|
setEnabled: b,
|
|
2177
|
-
toggleLayer:
|
|
2178
|
-
clearLayer:
|
|
2179
|
-
}), e[18] =
|
|
2178
|
+
toggleLayer: E,
|
|
2179
|
+
clearLayer: D
|
|
2180
|
+
}), e[18] = s, e[19] = D, e[20] = l, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = S, e[26] = y, e[27] = i, e[28] = _, e[29] = c, e[30] = b, e[31] = w, e[32] = f, e[33] = v, e[34] = P, e[35] = V, e[36] = d, e[37] = n, e[38] = E, e[39] = R, e[40] = a, e[41] = g) : g = e[41], g;
|
|
2180
2181
|
}
|
|
2181
|
-
const
|
|
2182
|
-
function
|
|
2183
|
-
const e =
|
|
2182
|
+
const Rs = [ce];
|
|
2183
|
+
function Ds(r) {
|
|
2184
|
+
const e = O(50), {
|
|
2184
2185
|
children: t,
|
|
2185
|
-
mapId:
|
|
2186
|
-
defaultProps:
|
|
2186
|
+
mapId: n,
|
|
2187
|
+
defaultProps: s,
|
|
2187
2188
|
layerProps: o,
|
|
2188
2189
|
textOptions: i
|
|
2189
2190
|
} = r;
|
|
2190
2191
|
let a;
|
|
2191
|
-
e[0] !==
|
|
2192
|
+
e[0] !== s ? (a = s === void 0 ? {
|
|
2192
2193
|
styles: ot.styles
|
|
2193
|
-
} :
|
|
2194
|
+
} : s, e[0] = s, e[1] = a) : a = e[1];
|
|
2194
2195
|
const {
|
|
2195
2196
|
styles: l
|
|
2196
2197
|
} = a, c = l === void 0 ? ot.styles : l;
|
|
2197
2198
|
let h;
|
|
2198
|
-
e[2] !==
|
|
2199
|
-
mapId:
|
|
2200
|
-
}, e[2] =
|
|
2199
|
+
e[2] !== n ? (h = {
|
|
2200
|
+
mapId: n
|
|
2201
|
+
}, e[2] = n, e[3] = h) : h = e[3];
|
|
2201
2202
|
const {
|
|
2202
2203
|
setDistance: y,
|
|
2203
|
-
clearLayerOnStart:
|
|
2204
|
+
clearLayerOnStart: v,
|
|
2204
2205
|
enabled: p,
|
|
2205
2206
|
finished: b,
|
|
2206
2207
|
setFinished: m,
|
|
2207
2208
|
locale: w,
|
|
2208
2209
|
setPositions: u,
|
|
2209
2210
|
unit: f,
|
|
2210
|
-
modeInstance:
|
|
2211
|
-
} = Dt(h),
|
|
2212
|
-
let
|
|
2213
|
-
e[4] !==
|
|
2214
|
-
const
|
|
2215
|
-
let
|
|
2216
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2217
|
-
const
|
|
2218
|
-
let
|
|
2219
|
-
e[7] !==
|
|
2220
|
-
mapId:
|
|
2211
|
+
modeInstance: S
|
|
2212
|
+
} = Dt(h), M = ge(p), _ = be(Bs), P = q(Vs), R = q(Us), V = q(xs);
|
|
2213
|
+
let D;
|
|
2214
|
+
e[4] !== n ? (D = (I) => I.maps[n]?.layers.filter(qs), e[4] = n, e[5] = D) : D = e[5];
|
|
2215
|
+
const B = q(vt(D)), x = q($s);
|
|
2216
|
+
let F;
|
|
2217
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (F = {}, e[6] = F) : F = e[6];
|
|
2218
|
+
const j = ge(F);
|
|
2219
|
+
let E;
|
|
2220
|
+
e[7] !== n ? (E = {
|
|
2221
|
+
mapId: n,
|
|
2221
2222
|
layerId: ce
|
|
2222
|
-
}, e[7] =
|
|
2223
|
-
let
|
|
2224
|
-
e[9] !==
|
|
2225
|
-
const
|
|
2226
|
-
return p && (
|
|
2223
|
+
}, e[7] = n, e[8] = E) : E = e[8], Pt(E);
|
|
2224
|
+
let d;
|
|
2225
|
+
e[9] !== R || e[10] !== p || e[11] !== x || e[12] !== n || e[13] !== V || e[14] !== P ? (d = () => {
|
|
2226
|
+
const I = x(n)?.props.controller;
|
|
2227
|
+
return p && (R(n, [ce]), P(n, {
|
|
2227
2228
|
doubleClickZoom: !1
|
|
2228
2229
|
})), () => {
|
|
2229
|
-
|
|
2230
|
+
V(n, [ce]), P(n, I);
|
|
2230
2231
|
};
|
|
2231
|
-
}, e[9] =
|
|
2232
|
-
let
|
|
2233
|
-
e[16] !==
|
|
2234
|
-
let
|
|
2235
|
-
e[24] !== p || e[25] !==
|
|
2236
|
-
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2232
|
+
}, e[9] = R, e[10] = p, e[11] = x, e[12] = n, e[13] = V, e[14] = P, e[15] = d) : d = e[15];
|
|
2233
|
+
let g;
|
|
2234
|
+
e[16] !== R || e[17] !== v || e[18] !== p || e[19] !== x || e[20] !== n || e[21] !== V || e[22] !== P ? (g = [R, v, n, V, p, x, P], e[16] = R, e[17] = v, e[18] = p, e[19] = x, e[20] = n, e[21] = V, e[22] = P, e[23] = g) : g = e[23], W(d, g);
|
|
2235
|
+
let L, C;
|
|
2236
|
+
e[24] !== p || e[25] !== x || e[26] !== n || e[27] !== B || e[28] !== _ ? (L = () => {
|
|
2237
|
+
p === M.current && !M.current || B?.forEach((I) => {
|
|
2238
|
+
const $ = x(n)?.props.layers.find((G) => G.props.id === I);
|
|
2239
|
+
if (!$)
|
|
2240
|
+
return;
|
|
2241
|
+
p && (j.current[I] = $?.props.pickable);
|
|
2242
|
+
const z = !p && (j.current[I] ?? $?.props.pickable);
|
|
2243
|
+
_(I, {
|
|
2241
2244
|
props: {
|
|
2242
|
-
pickable:
|
|
2245
|
+
pickable: z
|
|
2243
2246
|
}
|
|
2244
|
-
});
|
|
2247
|
+
}), M.current = p;
|
|
2245
2248
|
});
|
|
2246
|
-
},
|
|
2247
|
-
let
|
|
2248
|
-
e[31] !==
|
|
2249
|
+
}, C = [p, x, n, B, _], e[24] = p, e[25] = x, e[26] = n, e[27] = B, e[28] = _, e[29] = L, e[30] = C) : (L = e[29], C = e[30]), W(L, C);
|
|
2250
|
+
let k;
|
|
2251
|
+
e[31] !== S || e[32] !== y || e[33] !== m || e[34] !== u ? (k = (I) => {
|
|
2249
2252
|
const {
|
|
2250
|
-
editType:
|
|
2251
|
-
editContext:
|
|
2252
|
-
} =
|
|
2253
|
-
if (
|
|
2254
|
-
|
|
2253
|
+
editType: $,
|
|
2254
|
+
editContext: z
|
|
2255
|
+
} = I;
|
|
2256
|
+
if ($ === te.cancel) {
|
|
2257
|
+
S.resetClickSequence();
|
|
2255
2258
|
return;
|
|
2256
2259
|
}
|
|
2257
|
-
|
|
2258
|
-
const
|
|
2259
|
-
|
|
2260
|
-
}, e[31] =
|
|
2261
|
-
const
|
|
2262
|
-
let
|
|
2263
|
-
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !==
|
|
2264
|
-
const
|
|
2260
|
+
$ === te.addPosition && y(z.distance), m(!!z.finished);
|
|
2261
|
+
const G = z.positions;
|
|
2262
|
+
G?.length && u(G);
|
|
2263
|
+
}, e[31] = S, e[32] = y, e[33] = m, e[34] = u, e[35] = k) : k = e[35];
|
|
2264
|
+
const T = k;
|
|
2265
|
+
let U, N;
|
|
2266
|
+
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !== S || e[41] !== T || e[42] !== _ || e[43] !== c.colors.editing || e[44] !== c.colors.finished || e[45] !== c.colors.point || e[46] !== i || e[47] !== f ? (U = () => {
|
|
2267
|
+
const I = b ? c.colors.finished : c.colors.editing, $ = b ? c.colors.finished : c.colors.point, z = Ss({
|
|
2265
2268
|
layerProps: {
|
|
2266
2269
|
...o,
|
|
2267
2270
|
pickable: o?.pickable ?? !b
|
|
2268
2271
|
},
|
|
2269
2272
|
enabled: p,
|
|
2270
|
-
guideColor:
|
|
2271
|
-
pointColor:
|
|
2273
|
+
guideColor: I,
|
|
2274
|
+
pointColor: $,
|
|
2272
2275
|
locale: w,
|
|
2273
|
-
onEdit:
|
|
2276
|
+
onEdit: T,
|
|
2274
2277
|
unit: f,
|
|
2275
|
-
mode:
|
|
2278
|
+
mode: S,
|
|
2276
2279
|
textOptions: i
|
|
2277
2280
|
});
|
|
2278
|
-
_(ce,
|
|
2279
|
-
},
|
|
2281
|
+
_(ce, z);
|
|
2282
|
+
}, N = [b, S, o, w, T, _, c.colors.editing, c.colors.finished, c.colors.point, i, f, p], e[36] = p, e[37] = b, e[38] = o, e[39] = w, e[40] = S, e[41] = T, e[42] = _, e[43] = c.colors.editing, e[44] = c.colors.finished, e[45] = c.colors.point, e[46] = i, e[47] = f, e[48] = U, e[49] = N) : (U = e[48], N = e[49]), W(U, N), t;
|
|
2280
2283
|
}
|
|
2281
|
-
function $
|
|
2284
|
+
function $s(r) {
|
|
2282
2285
|
return r.getDeckInstance;
|
|
2283
2286
|
}
|
|
2284
|
-
function
|
|
2285
|
-
return !
|
|
2287
|
+
function qs(r) {
|
|
2288
|
+
return !Rs.includes(r);
|
|
2286
2289
|
}
|
|
2287
|
-
function
|
|
2290
|
+
function xs(r) {
|
|
2288
2291
|
return r.removeLayers;
|
|
2289
2292
|
}
|
|
2290
|
-
function
|
|
2293
|
+
function Us(r) {
|
|
2291
2294
|
return r.addLayers;
|
|
2292
2295
|
}
|
|
2293
|
-
function
|
|
2296
|
+
function Vs(r) {
|
|
2294
2297
|
return r.setController;
|
|
2295
2298
|
}
|
|
2296
|
-
function
|
|
2299
|
+
function Bs(r) {
|
|
2297
2300
|
return r.setLayer;
|
|
2298
2301
|
}
|
|
2299
|
-
|
|
2300
|
-
function
|
|
2301
|
-
const e =
|
|
2302
|
+
Ds.Controls = As;
|
|
2303
|
+
function js(r) {
|
|
2304
|
+
const e = O(7), {
|
|
2302
2305
|
mapId: t
|
|
2303
2306
|
} = r;
|
|
2304
|
-
let
|
|
2305
|
-
e[0] !== t ? (
|
|
2307
|
+
let n;
|
|
2308
|
+
e[0] !== t ? (n = (l) => l.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2306
2309
|
const {
|
|
2307
|
-
layers:
|
|
2308
|
-
} =
|
|
2310
|
+
layers: s
|
|
2311
|
+
} = q(n), o = be(Ns);
|
|
2309
2312
|
let i;
|
|
2310
|
-
if (e[2] !== o || e[3] !==
|
|
2313
|
+
if (e[2] !== o || e[3] !== s) {
|
|
2311
2314
|
let l;
|
|
2312
|
-
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i =
|
|
2315
|
+
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i = s.map(l).filter(Is), e[2] = o, e[3] = s, e[4] = i;
|
|
2313
2316
|
} else
|
|
2314
2317
|
i = e[4];
|
|
2315
2318
|
return i;
|
|
2316
2319
|
}
|
|
2317
|
-
function
|
|
2320
|
+
function Is(r) {
|
|
2318
2321
|
return !!r;
|
|
2319
2322
|
}
|
|
2320
|
-
function
|
|
2323
|
+
function Ns(r) {
|
|
2321
2324
|
return r.layers;
|
|
2322
2325
|
}
|
|
2323
2326
|
const ct = [Ce, me, ce];
|
|
2324
2327
|
function $t(r) {
|
|
2325
|
-
const e = r.filter((
|
|
2328
|
+
const e = r.filter((n) => !ct.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = ct.map((n) => r.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
2326
2329
|
return [...e, ...t];
|
|
2327
2330
|
}
|
|
2328
|
-
const
|
|
2331
|
+
const Hs = 200;
|
|
2329
2332
|
function go(r) {
|
|
2330
|
-
const e =
|
|
2331
|
-
let t,
|
|
2333
|
+
const e = O(51);
|
|
2334
|
+
let t, n, s, o;
|
|
2332
2335
|
e[0] !== r ? ({
|
|
2333
2336
|
id: t,
|
|
2334
|
-
onLoad:
|
|
2335
|
-
onViewStateChange:
|
|
2337
|
+
onLoad: n,
|
|
2338
|
+
onViewStateChange: s,
|
|
2336
2339
|
...o
|
|
2337
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
2340
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
|
|
2338
2341
|
let i;
|
|
2339
|
-
e[5] !== t ? (i = (
|
|
2340
|
-
const a =
|
|
2342
|
+
e[5] !== t ? (i = (T) => T.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2343
|
+
const a = q(i);
|
|
2341
2344
|
let l;
|
|
2342
|
-
e[7] !== t ? (l = (
|
|
2343
|
-
const c =
|
|
2345
|
+
e[7] !== t ? (l = (T) => T.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2346
|
+
const c = q(l);
|
|
2344
2347
|
let h;
|
|
2345
|
-
e[9] !== t ? (h = (
|
|
2346
|
-
const y =
|
|
2348
|
+
e[9] !== t ? (h = (T) => T.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
|
|
2349
|
+
const y = q(h), v = ge(null);
|
|
2347
2350
|
let p;
|
|
2348
|
-
e[11] !== t ? (p = (
|
|
2349
|
-
const b =
|
|
2351
|
+
e[11] !== t ? (p = (T) => T.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2352
|
+
const b = q(p);
|
|
2350
2353
|
let m;
|
|
2351
|
-
e[13] !== t ? (m = (
|
|
2352
|
-
const w =
|
|
2354
|
+
e[13] !== t ? (m = (T) => T.maps[t].controller, e[13] = t, e[14] = m) : m = e[14];
|
|
2355
|
+
const w = q(m), u = q(Ws), f = q(Qs), S = q(Zs), M = q(Ks), _ = q(Gs);
|
|
2353
2356
|
let P;
|
|
2354
2357
|
e[15] !== t ? (P = {
|
|
2355
2358
|
mapId: t
|
|
2356
2359
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2357
|
-
const
|
|
2358
|
-
let
|
|
2359
|
-
e[17] !==
|
|
2360
|
-
const
|
|
2361
|
-
let
|
|
2362
|
-
e[19] !== t || e[20] !==
|
|
2363
|
-
const
|
|
2364
|
-
if (
|
|
2365
|
-
|
|
2366
|
-
},
|
|
2367
|
-
|
|
2360
|
+
const R = js(P);
|
|
2361
|
+
let V;
|
|
2362
|
+
e[17] !== R ? (V = $t(R), e[17] = R, e[18] = V) : V = e[18];
|
|
2363
|
+
const D = V;
|
|
2364
|
+
let B;
|
|
2365
|
+
e[19] !== t || e[20] !== s || e[21] !== f || e[22] !== _ ? (B = (T) => {
|
|
2366
|
+
const U = f;
|
|
2367
|
+
if (v.current && clearInterval(v.current), v.current = setTimeout(() => {
|
|
2368
|
+
_(t);
|
|
2369
|
+
}, Hs), s) {
|
|
2370
|
+
s(T, U);
|
|
2368
2371
|
return;
|
|
2369
2372
|
}
|
|
2370
|
-
|
|
2371
|
-
}, e[19] = t, e[20] =
|
|
2372
|
-
const
|
|
2373
|
-
let
|
|
2374
|
-
e[24] !== t || e[25] !==
|
|
2375
|
-
|
|
2376
|
-
}, e[24] = t, e[25] =
|
|
2377
|
-
const
|
|
2378
|
-
let
|
|
2379
|
-
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !==
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
}, e[29] = u, e[30] = t, e[31] = o, e[32] =
|
|
2383
|
-
const d =
|
|
2373
|
+
U(t, T.viewState);
|
|
2374
|
+
}, e[19] = t, e[20] = s, e[21] = f, e[22] = _, e[23] = B) : B = e[23];
|
|
2375
|
+
const x = B;
|
|
2376
|
+
let F;
|
|
2377
|
+
e[24] !== t || e[25] !== n || e[26] !== S || e[27] !== _ ? (F = (T) => {
|
|
2378
|
+
S(t, T), n?.(T), _(t);
|
|
2379
|
+
}, e[24] = t, e[25] = n, e[26] = S, e[27] = _, e[28] = F) : F = e[28];
|
|
2380
|
+
const j = F;
|
|
2381
|
+
let E;
|
|
2382
|
+
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== M ? (E = (T) => {
|
|
2383
|
+
const N = !!u(t)?.props.layers?.every(zs);
|
|
2384
|
+
M(t, N), o.onAfterRender?.(T);
|
|
2385
|
+
}, e[29] = u, e[30] = t, e[31] = o, e[32] = M, e[33] = E) : E = e[33];
|
|
2386
|
+
const d = E, g = o.onDragEnd;
|
|
2384
2387
|
let L;
|
|
2385
|
-
e[34] !==
|
|
2386
|
-
const
|
|
2387
|
-
|
|
2388
|
-
}, e[34] =
|
|
2388
|
+
e[34] !== g || e[35] !== t || e[36] !== _ ? (L = (...T) => {
|
|
2389
|
+
const U = T;
|
|
2390
|
+
_(t), g && g(...U);
|
|
2391
|
+
}, e[34] = g, e[35] = t, e[36] = _, e[37] = L) : L = e[37];
|
|
2389
2392
|
const C = L;
|
|
2390
2393
|
let k;
|
|
2391
|
-
return e[38] !== a || e[39] !==
|
|
2394
|
+
return e[38] !== a || e[39] !== D || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== j || e[44] !== x || e[45] !== t || e[46] !== c || e[47] !== y || e[48] !== o || e[49] !== b ? (k = /* @__PURE__ */ Z(xn, { ...o, controller: w, id: t, layers: D, instanceRef: c, overlayRef: y, basemap: a, initialViewState: b, onLoad: j, onViewStateChange: x, onAfterRender: d, onDragEnd: C }), e[38] = a, e[39] = D, e[40] = w, e[41] = d, e[42] = C, e[43] = j, e[44] = x, e[45] = t, e[46] = c, e[47] = y, e[48] = o, e[49] = b, e[50] = k) : k = e[50], k;
|
|
2392
2395
|
}
|
|
2393
|
-
function
|
|
2396
|
+
function zs(r) {
|
|
2394
2397
|
return r?.isLoaded;
|
|
2395
2398
|
}
|
|
2396
|
-
function
|
|
2399
|
+
function Gs(r) {
|
|
2397
2400
|
return r.updateViewPort;
|
|
2398
2401
|
}
|
|
2399
|
-
function
|
|
2402
|
+
function Ks(r) {
|
|
2400
2403
|
return r.setLayersLoad;
|
|
2401
2404
|
}
|
|
2402
|
-
function
|
|
2405
|
+
function Zs(r) {
|
|
2403
2406
|
return r.setLoad;
|
|
2404
2407
|
}
|
|
2405
|
-
function
|
|
2408
|
+
function Qs(r) {
|
|
2406
2409
|
return r.setViewState;
|
|
2407
2410
|
}
|
|
2408
|
-
function
|
|
2411
|
+
function Ws(r) {
|
|
2409
2412
|
return r.getDeckInstance;
|
|
2410
2413
|
}
|
|
2411
|
-
var
|
|
2412
|
-
function
|
|
2414
|
+
var Le = { exports: {} }, ut;
|
|
2415
|
+
function Ys() {
|
|
2413
2416
|
return ut || (ut = 1, (function(r, e) {
|
|
2414
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2417
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, n = (function() {
|
|
2415
2418
|
function o() {
|
|
2416
2419
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2417
2420
|
}
|
|
@@ -2420,7 +2423,7 @@ function Yn() {
|
|
|
2420
2423
|
(function(o) {
|
|
2421
2424
|
(function(i) {
|
|
2422
2425
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2423
|
-
typeof
|
|
2426
|
+
typeof Ee < "u" && Ee || {}, l = {
|
|
2424
2427
|
searchParams: "URLSearchParams" in a,
|
|
2425
2428
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2426
2429
|
blob: "FileReader" in a && "Blob" in a && (function() {
|
|
@@ -2450,7 +2453,7 @@ function Yn() {
|
|
|
2450
2453
|
], y = ArrayBuffer.isView || function(d) {
|
|
2451
2454
|
return d && h.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2452
2455
|
};
|
|
2453
|
-
function
|
|
2456
|
+
function v(d) {
|
|
2454
2457
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
2455
2458
|
throw new TypeError('Invalid character in header field name: "' + d + '"');
|
|
2456
2459
|
return d.toLowerCase();
|
|
@@ -2459,56 +2462,56 @@ function Yn() {
|
|
|
2459
2462
|
return typeof d != "string" && (d = String(d)), d;
|
|
2460
2463
|
}
|
|
2461
2464
|
function b(d) {
|
|
2462
|
-
var
|
|
2465
|
+
var g = {
|
|
2463
2466
|
next: function() {
|
|
2464
2467
|
var L = d.shift();
|
|
2465
2468
|
return { done: L === void 0, value: L };
|
|
2466
2469
|
}
|
|
2467
2470
|
};
|
|
2468
|
-
return l.iterable && (
|
|
2469
|
-
return
|
|
2470
|
-
}),
|
|
2471
|
+
return l.iterable && (g[Symbol.iterator] = function() {
|
|
2472
|
+
return g;
|
|
2473
|
+
}), g;
|
|
2471
2474
|
}
|
|
2472
2475
|
function m(d) {
|
|
2473
|
-
this.map = {}, d instanceof m ? d.forEach(function(
|
|
2474
|
-
this.append(L,
|
|
2475
|
-
}, this) : Array.isArray(d) ? d.forEach(function(
|
|
2476
|
-
if (
|
|
2477
|
-
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" +
|
|
2478
|
-
this.append(
|
|
2479
|
-
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(
|
|
2480
|
-
this.append(
|
|
2476
|
+
this.map = {}, d instanceof m ? d.forEach(function(g, L) {
|
|
2477
|
+
this.append(L, g);
|
|
2478
|
+
}, this) : Array.isArray(d) ? d.forEach(function(g) {
|
|
2479
|
+
if (g.length != 2)
|
|
2480
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + g.length);
|
|
2481
|
+
this.append(g[0], g[1]);
|
|
2482
|
+
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(g) {
|
|
2483
|
+
this.append(g, d[g]);
|
|
2481
2484
|
}, this);
|
|
2482
2485
|
}
|
|
2483
|
-
m.prototype.append = function(d,
|
|
2484
|
-
d =
|
|
2486
|
+
m.prototype.append = function(d, g) {
|
|
2487
|
+
d = v(d), g = p(g);
|
|
2485
2488
|
var L = this.map[d];
|
|
2486
|
-
this.map[d] = L ? L + ", " +
|
|
2489
|
+
this.map[d] = L ? L + ", " + g : g;
|
|
2487
2490
|
}, m.prototype.delete = function(d) {
|
|
2488
|
-
delete this.map[
|
|
2491
|
+
delete this.map[v(d)];
|
|
2489
2492
|
}, m.prototype.get = function(d) {
|
|
2490
|
-
return d =
|
|
2493
|
+
return d = v(d), this.has(d) ? this.map[d] : null;
|
|
2491
2494
|
}, m.prototype.has = function(d) {
|
|
2492
|
-
return this.map.hasOwnProperty(
|
|
2493
|
-
}, m.prototype.set = function(d,
|
|
2494
|
-
this.map[
|
|
2495
|
-
}, m.prototype.forEach = function(d,
|
|
2495
|
+
return this.map.hasOwnProperty(v(d));
|
|
2496
|
+
}, m.prototype.set = function(d, g) {
|
|
2497
|
+
this.map[v(d)] = p(g);
|
|
2498
|
+
}, m.prototype.forEach = function(d, g) {
|
|
2496
2499
|
for (var L in this.map)
|
|
2497
|
-
this.map.hasOwnProperty(L) && d.call(
|
|
2500
|
+
this.map.hasOwnProperty(L) && d.call(g, this.map[L], L, this);
|
|
2498
2501
|
}, m.prototype.keys = function() {
|
|
2499
2502
|
var d = [];
|
|
2500
|
-
return this.forEach(function(
|
|
2503
|
+
return this.forEach(function(g, L) {
|
|
2501
2504
|
d.push(L);
|
|
2502
2505
|
}), b(d);
|
|
2503
2506
|
}, m.prototype.values = function() {
|
|
2504
2507
|
var d = [];
|
|
2505
|
-
return this.forEach(function(
|
|
2506
|
-
d.push(
|
|
2508
|
+
return this.forEach(function(g) {
|
|
2509
|
+
d.push(g);
|
|
2507
2510
|
}), b(d);
|
|
2508
2511
|
}, m.prototype.entries = function() {
|
|
2509
2512
|
var d = [];
|
|
2510
|
-
return this.forEach(function(
|
|
2511
|
-
d.push([L,
|
|
2513
|
+
return this.forEach(function(g, L) {
|
|
2514
|
+
d.push([L, g]);
|
|
2512
2515
|
}), b(d);
|
|
2513
2516
|
}, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
|
|
2514
2517
|
function w(d) {
|
|
@@ -2519,36 +2522,36 @@ function Yn() {
|
|
|
2519
2522
|
}
|
|
2520
2523
|
}
|
|
2521
2524
|
function u(d) {
|
|
2522
|
-
return new Promise(function(
|
|
2525
|
+
return new Promise(function(g, L) {
|
|
2523
2526
|
d.onload = function() {
|
|
2524
|
-
|
|
2527
|
+
g(d.result);
|
|
2525
2528
|
}, d.onerror = function() {
|
|
2526
2529
|
L(d.error);
|
|
2527
2530
|
};
|
|
2528
2531
|
});
|
|
2529
2532
|
}
|
|
2530
2533
|
function f(d) {
|
|
2531
|
-
var
|
|
2532
|
-
return
|
|
2534
|
+
var g = new FileReader(), L = u(g);
|
|
2535
|
+
return g.readAsArrayBuffer(d), L;
|
|
2533
2536
|
}
|
|
2534
|
-
function
|
|
2535
|
-
var
|
|
2536
|
-
return
|
|
2537
|
+
function S(d) {
|
|
2538
|
+
var g = new FileReader(), L = u(g), C = /charset=([A-Za-z0-9_-]+)/.exec(d.type), k = C ? C[1] : "utf-8";
|
|
2539
|
+
return g.readAsText(d, k), L;
|
|
2537
2540
|
}
|
|
2538
|
-
function
|
|
2539
|
-
for (var
|
|
2540
|
-
L[C] = String.fromCharCode(
|
|
2541
|
+
function M(d) {
|
|
2542
|
+
for (var g = new Uint8Array(d), L = new Array(g.length), C = 0; C < g.length; C++)
|
|
2543
|
+
L[C] = String.fromCharCode(g[C]);
|
|
2541
2544
|
return L.join("");
|
|
2542
2545
|
}
|
|
2543
|
-
function
|
|
2546
|
+
function _(d) {
|
|
2544
2547
|
if (d.slice)
|
|
2545
2548
|
return d.slice(0);
|
|
2546
|
-
var
|
|
2547
|
-
return
|
|
2549
|
+
var g = new Uint8Array(d.byteLength);
|
|
2550
|
+
return g.set(new Uint8Array(d)), g.buffer;
|
|
2548
2551
|
}
|
|
2549
2552
|
function P() {
|
|
2550
2553
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2551
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : l.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : l.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : l.arrayBuffer && l.blob && c(d) ? (this._bodyArrayBuffer =
|
|
2554
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : l.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : l.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : l.arrayBuffer && l.blob && c(d) ? (this._bodyArrayBuffer = _(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || y(d)) ? this._bodyArrayBuffer = _(d) : this._bodyText = d = Object.prototype.toString.call(d) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof d == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2552
2555
|
}, l.blob && (this.blob = function() {
|
|
2553
2556
|
var d = w(this);
|
|
2554
2557
|
if (d)
|
|
@@ -2579,42 +2582,42 @@ function Yn() {
|
|
|
2579
2582
|
if (d)
|
|
2580
2583
|
return d;
|
|
2581
2584
|
if (this._bodyBlob)
|
|
2582
|
-
return
|
|
2585
|
+
return S(this._bodyBlob);
|
|
2583
2586
|
if (this._bodyArrayBuffer)
|
|
2584
|
-
return Promise.resolve(
|
|
2587
|
+
return Promise.resolve(M(this._bodyArrayBuffer));
|
|
2585
2588
|
if (this._bodyFormData)
|
|
2586
2589
|
throw new Error("could not read FormData body as text");
|
|
2587
2590
|
return Promise.resolve(this._bodyText);
|
|
2588
2591
|
}, l.formData && (this.formData = function() {
|
|
2589
|
-
return this.text().then(
|
|
2592
|
+
return this.text().then(B);
|
|
2590
2593
|
}), this.json = function() {
|
|
2591
2594
|
return this.text().then(JSON.parse);
|
|
2592
2595
|
}, this;
|
|
2593
2596
|
}
|
|
2594
|
-
var
|
|
2595
|
-
function
|
|
2596
|
-
var
|
|
2597
|
-
return
|
|
2597
|
+
var R = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2598
|
+
function V(d) {
|
|
2599
|
+
var g = d.toUpperCase();
|
|
2600
|
+
return R.indexOf(g) > -1 ? g : d;
|
|
2598
2601
|
}
|
|
2599
|
-
function
|
|
2600
|
-
if (!(this instanceof
|
|
2602
|
+
function D(d, g) {
|
|
2603
|
+
if (!(this instanceof D))
|
|
2601
2604
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2602
|
-
|
|
2603
|
-
var L =
|
|
2604
|
-
if (d instanceof
|
|
2605
|
+
g = g || {};
|
|
2606
|
+
var L = g.body;
|
|
2607
|
+
if (d instanceof D) {
|
|
2605
2608
|
if (d.bodyUsed)
|
|
2606
2609
|
throw new TypeError("Already read");
|
|
2607
|
-
this.url = d.url, this.credentials = d.credentials,
|
|
2610
|
+
this.url = d.url, this.credentials = d.credentials, g.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !L && d._bodyInit != null && (L = d._bodyInit, d.bodyUsed = !0);
|
|
2608
2611
|
} else
|
|
2609
2612
|
this.url = String(d);
|
|
2610
|
-
if (this.credentials =
|
|
2613
|
+
if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new m(g.headers)), this.method = V(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal || (function() {
|
|
2611
2614
|
if ("AbortController" in a) {
|
|
2612
|
-
var
|
|
2613
|
-
return
|
|
2615
|
+
var T = new AbortController();
|
|
2616
|
+
return T.signal;
|
|
2614
2617
|
}
|
|
2615
2618
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && L)
|
|
2616
2619
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2617
|
-
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (
|
|
2620
|
+
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (g.cache === "no-store" || g.cache === "no-cache")) {
|
|
2618
2621
|
var C = /([?&])_=[^&]*/;
|
|
2619
2622
|
if (C.test(this.url))
|
|
2620
2623
|
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2624,148 +2627,148 @@ function Yn() {
|
|
|
2624
2627
|
}
|
|
2625
2628
|
}
|
|
2626
2629
|
}
|
|
2627
|
-
|
|
2628
|
-
return new
|
|
2630
|
+
D.prototype.clone = function() {
|
|
2631
|
+
return new D(this, { body: this._bodyInit });
|
|
2629
2632
|
};
|
|
2630
|
-
function
|
|
2631
|
-
var
|
|
2633
|
+
function B(d) {
|
|
2634
|
+
var g = new FormData();
|
|
2632
2635
|
return d.trim().split("&").forEach(function(L) {
|
|
2633
2636
|
if (L) {
|
|
2634
|
-
var C = L.split("="), k = C.shift().replace(/\+/g, " "),
|
|
2635
|
-
|
|
2637
|
+
var C = L.split("="), k = C.shift().replace(/\+/g, " "), T = C.join("=").replace(/\+/g, " ");
|
|
2638
|
+
g.append(decodeURIComponent(k), decodeURIComponent(T));
|
|
2636
2639
|
}
|
|
2637
|
-
}),
|
|
2640
|
+
}), g;
|
|
2638
2641
|
}
|
|
2639
|
-
function
|
|
2640
|
-
var
|
|
2642
|
+
function x(d) {
|
|
2643
|
+
var g = new m(), L = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2641
2644
|
return L.split("\r").map(function(C) {
|
|
2642
2645
|
return C.indexOf(`
|
|
2643
2646
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
2644
2647
|
}).forEach(function(C) {
|
|
2645
|
-
var k = C.split(":"),
|
|
2646
|
-
if (
|
|
2647
|
-
var
|
|
2648
|
+
var k = C.split(":"), T = k.shift().trim();
|
|
2649
|
+
if (T) {
|
|
2650
|
+
var U = k.join(":").trim();
|
|
2648
2651
|
try {
|
|
2649
|
-
|
|
2650
|
-
} catch (
|
|
2651
|
-
console.warn("Response " +
|
|
2652
|
+
g.append(T, U);
|
|
2653
|
+
} catch (N) {
|
|
2654
|
+
console.warn("Response " + N.message);
|
|
2652
2655
|
}
|
|
2653
2656
|
}
|
|
2654
|
-
}),
|
|
2657
|
+
}), g;
|
|
2655
2658
|
}
|
|
2656
|
-
P.call(
|
|
2657
|
-
function
|
|
2658
|
-
if (!(this instanceof
|
|
2659
|
+
P.call(D.prototype);
|
|
2660
|
+
function F(d, g) {
|
|
2661
|
+
if (!(this instanceof F))
|
|
2659
2662
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2660
|
-
if (
|
|
2663
|
+
if (g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.status < 200 || this.status > 599)
|
|
2661
2664
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2662
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText =
|
|
2665
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = g.statusText === void 0 ? "" : "" + g.statusText, this.headers = new m(g.headers), this.url = g.url || "", this._initBody(d);
|
|
2663
2666
|
}
|
|
2664
|
-
P.call(
|
|
2665
|
-
return new
|
|
2667
|
+
P.call(F.prototype), F.prototype.clone = function() {
|
|
2668
|
+
return new F(this._bodyInit, {
|
|
2666
2669
|
status: this.status,
|
|
2667
2670
|
statusText: this.statusText,
|
|
2668
2671
|
headers: new m(this.headers),
|
|
2669
2672
|
url: this.url
|
|
2670
2673
|
});
|
|
2671
|
-
},
|
|
2672
|
-
var d = new
|
|
2674
|
+
}, F.error = function() {
|
|
2675
|
+
var d = new F(null, { status: 200, statusText: "" });
|
|
2673
2676
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2674
2677
|
};
|
|
2675
|
-
var
|
|
2676
|
-
|
|
2677
|
-
if (
|
|
2678
|
+
var j = [301, 302, 303, 307, 308];
|
|
2679
|
+
F.redirect = function(d, g) {
|
|
2680
|
+
if (j.indexOf(g) === -1)
|
|
2678
2681
|
throw new RangeError("Invalid status code");
|
|
2679
|
-
return new
|
|
2682
|
+
return new F(null, { status: g, headers: { location: d } });
|
|
2680
2683
|
}, i.DOMException = a.DOMException;
|
|
2681
2684
|
try {
|
|
2682
2685
|
new i.DOMException();
|
|
2683
2686
|
} catch {
|
|
2684
|
-
i.DOMException = function(
|
|
2685
|
-
this.message =
|
|
2686
|
-
var C = Error(
|
|
2687
|
+
i.DOMException = function(g, L) {
|
|
2688
|
+
this.message = g, this.name = L;
|
|
2689
|
+
var C = Error(g);
|
|
2687
2690
|
this.stack = C.stack;
|
|
2688
2691
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2689
2692
|
}
|
|
2690
|
-
function
|
|
2693
|
+
function E(d, g) {
|
|
2691
2694
|
return new Promise(function(L, C) {
|
|
2692
|
-
var k = new
|
|
2695
|
+
var k = new D(d, g);
|
|
2693
2696
|
if (k.signal && k.signal.aborted)
|
|
2694
2697
|
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2695
|
-
var
|
|
2696
|
-
function
|
|
2697
|
-
|
|
2698
|
+
var T = new XMLHttpRequest();
|
|
2699
|
+
function U() {
|
|
2700
|
+
T.abort();
|
|
2698
2701
|
}
|
|
2699
|
-
|
|
2700
|
-
var
|
|
2701
|
-
statusText:
|
|
2702
|
-
headers:
|
|
2702
|
+
T.onload = function() {
|
|
2703
|
+
var $ = {
|
|
2704
|
+
statusText: T.statusText,
|
|
2705
|
+
headers: x(T.getAllResponseHeaders() || "")
|
|
2703
2706
|
};
|
|
2704
|
-
k.url.indexOf("file://") === 0 && (
|
|
2705
|
-
var z = "response" in
|
|
2707
|
+
k.url.indexOf("file://") === 0 && (T.status < 200 || T.status > 599) ? $.status = 200 : $.status = T.status, $.url = "responseURL" in T ? T.responseURL : $.headers.get("X-Request-URL");
|
|
2708
|
+
var z = "response" in T ? T.response : T.responseText;
|
|
2706
2709
|
setTimeout(function() {
|
|
2707
|
-
L(new
|
|
2710
|
+
L(new F(z, $));
|
|
2708
2711
|
}, 0);
|
|
2709
|
-
},
|
|
2712
|
+
}, T.onerror = function() {
|
|
2710
2713
|
setTimeout(function() {
|
|
2711
2714
|
C(new TypeError("Network request failed"));
|
|
2712
2715
|
}, 0);
|
|
2713
|
-
},
|
|
2716
|
+
}, T.ontimeout = function() {
|
|
2714
2717
|
setTimeout(function() {
|
|
2715
2718
|
C(new TypeError("Network request timed out"));
|
|
2716
2719
|
}, 0);
|
|
2717
|
-
},
|
|
2720
|
+
}, T.onabort = function() {
|
|
2718
2721
|
setTimeout(function() {
|
|
2719
2722
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2720
2723
|
}, 0);
|
|
2721
2724
|
};
|
|
2722
|
-
function
|
|
2725
|
+
function N($) {
|
|
2723
2726
|
try {
|
|
2724
|
-
return
|
|
2727
|
+
return $ === "" && a.location.href ? a.location.href : $;
|
|
2725
2728
|
} catch {
|
|
2726
|
-
return
|
|
2729
|
+
return $;
|
|
2727
2730
|
}
|
|
2728
2731
|
}
|
|
2729
|
-
if (
|
|
2730
|
-
var
|
|
2731
|
-
Object.getOwnPropertyNames(
|
|
2732
|
-
|
|
2733
|
-
}), k.headers.forEach(function(
|
|
2734
|
-
|
|
2732
|
+
if (T.open(k.method, N(k.url), !0), k.credentials === "include" ? T.withCredentials = !0 : k.credentials === "omit" && (T.withCredentials = !1), "responseType" in T && (l.blob ? T.responseType = "blob" : l.arrayBuffer && (T.responseType = "arraybuffer")), g && typeof g.headers == "object" && !(g.headers instanceof m || a.Headers && g.headers instanceof a.Headers)) {
|
|
2733
|
+
var I = [];
|
|
2734
|
+
Object.getOwnPropertyNames(g.headers).forEach(function($) {
|
|
2735
|
+
I.push(v($)), T.setRequestHeader($, p(g.headers[$]));
|
|
2736
|
+
}), k.headers.forEach(function($, z) {
|
|
2737
|
+
I.indexOf(z) === -1 && T.setRequestHeader(z, $);
|
|
2735
2738
|
});
|
|
2736
2739
|
} else
|
|
2737
|
-
k.headers.forEach(function(
|
|
2738
|
-
|
|
2740
|
+
k.headers.forEach(function($, z) {
|
|
2741
|
+
T.setRequestHeader(z, $);
|
|
2739
2742
|
});
|
|
2740
|
-
k.signal && (k.signal.addEventListener("abort",
|
|
2741
|
-
|
|
2742
|
-
}),
|
|
2743
|
+
k.signal && (k.signal.addEventListener("abort", U), T.onreadystatechange = function() {
|
|
2744
|
+
T.readyState === 4 && k.signal.removeEventListener("abort", U);
|
|
2745
|
+
}), T.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2743
2746
|
});
|
|
2744
2747
|
}
|
|
2745
|
-
return
|
|
2748
|
+
return E.polyfill = !0, a.fetch || (a.fetch = E, a.Headers = m, a.Request = D, a.Response = F), i.Headers = m, i.Request = D, i.Response = F, i.fetch = E, i;
|
|
2746
2749
|
})({});
|
|
2747
|
-
})(
|
|
2748
|
-
var
|
|
2749
|
-
e =
|
|
2750
|
-
})(
|
|
2750
|
+
})(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
|
|
2751
|
+
var s = t.fetch ? t : n;
|
|
2752
|
+
e = s.fetch, e.default = s.fetch, e.fetch = s.fetch, e.Headers = s.Headers, e.Request = s.Request, e.Response = s.Response, r.exports = e;
|
|
2753
|
+
})(Le, Le.exports)), Le.exports;
|
|
2751
2754
|
}
|
|
2752
|
-
var
|
|
2753
|
-
const
|
|
2755
|
+
var Js = Ys();
|
|
2756
|
+
const Xs = /* @__PURE__ */ Et(Js), Ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", er = "ps", he = {
|
|
2754
2757
|
get: "GET",
|
|
2755
2758
|
post: "POST"
|
|
2756
2759
|
};
|
|
2757
2760
|
function tr(r, e) {
|
|
2758
2761
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2759
2762
|
}
|
|
2760
|
-
function
|
|
2763
|
+
function nr({
|
|
2761
2764
|
params: r,
|
|
2762
2765
|
url: e
|
|
2763
2766
|
}) {
|
|
2764
2767
|
if (!r) return e;
|
|
2765
|
-
const t = Object.entries(r).map(([
|
|
2768
|
+
const t = Object.entries(r).map(([n, s]) => tr(n, s));
|
|
2766
2769
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2767
2770
|
}
|
|
2768
|
-
function
|
|
2771
|
+
function sr(r) {
|
|
2769
2772
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2770
2773
|
}
|
|
2771
2774
|
var Be, dt;
|
|
@@ -2782,9 +2785,9 @@ function rr() {
|
|
|
2782
2785
|
var f = Object.prototype.toString.call(u);
|
|
2783
2786
|
return f === "[object RegExp]" || f === "[object Date]" || o(u);
|
|
2784
2787
|
}
|
|
2785
|
-
var
|
|
2788
|
+
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
2786
2789
|
function o(u) {
|
|
2787
|
-
return u.$$typeof ===
|
|
2790
|
+
return u.$$typeof === s;
|
|
2788
2791
|
}
|
|
2789
2792
|
function i(u) {
|
|
2790
2793
|
return Array.isArray(u) ? [] : {};
|
|
@@ -2792,15 +2795,15 @@ function rr() {
|
|
|
2792
2795
|
function a(u, f) {
|
|
2793
2796
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
2794
2797
|
}
|
|
2795
|
-
function l(u, f,
|
|
2796
|
-
return u.concat(f).map(function(
|
|
2797
|
-
return a(
|
|
2798
|
+
function l(u, f, S) {
|
|
2799
|
+
return u.concat(f).map(function(M) {
|
|
2800
|
+
return a(M, S);
|
|
2798
2801
|
});
|
|
2799
2802
|
}
|
|
2800
2803
|
function c(u, f) {
|
|
2801
2804
|
if (!f.customMerge) return m;
|
|
2802
|
-
var
|
|
2803
|
-
return typeof
|
|
2805
|
+
var S = f.customMerge(u);
|
|
2806
|
+
return typeof S == "function" ? S : m;
|
|
2804
2807
|
}
|
|
2805
2808
|
function h(u) {
|
|
2806
2809
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -2810,7 +2813,7 @@ function rr() {
|
|
|
2810
2813
|
function y(u) {
|
|
2811
2814
|
return Object.keys(u).concat(h(u));
|
|
2812
2815
|
}
|
|
2813
|
-
function
|
|
2816
|
+
function v(u, f) {
|
|
2814
2817
|
try {
|
|
2815
2818
|
return f in u;
|
|
2816
2819
|
} catch {
|
|
@@ -2818,32 +2821,32 @@ function rr() {
|
|
|
2818
2821
|
}
|
|
2819
2822
|
}
|
|
2820
2823
|
function p(u, f) {
|
|
2821
|
-
return
|
|
2824
|
+
return v(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
2822
2825
|
}
|
|
2823
|
-
function b(u, f,
|
|
2824
|
-
var
|
|
2825
|
-
return
|
|
2826
|
-
_
|
|
2827
|
-
}), y(f).forEach(function(
|
|
2828
|
-
p(u,
|
|
2829
|
-
}),
|
|
2826
|
+
function b(u, f, S) {
|
|
2827
|
+
var M = {};
|
|
2828
|
+
return S.isMergeableObject(u) && y(u).forEach(function(_) {
|
|
2829
|
+
M[_] = a(u[_], S);
|
|
2830
|
+
}), y(f).forEach(function(_) {
|
|
2831
|
+
p(u, _) || (v(u, _) && S.isMergeableObject(f[_]) ? M[_] = c(_, S)(u[_], f[_], S) : M[_] = a(f[_], S));
|
|
2832
|
+
}), M;
|
|
2830
2833
|
}
|
|
2831
|
-
function m(u, f,
|
|
2832
|
-
|
|
2833
|
-
var
|
|
2834
|
-
return P ?
|
|
2834
|
+
function m(u, f, S) {
|
|
2835
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2836
|
+
var M = Array.isArray(f), _ = Array.isArray(u), P = M === _;
|
|
2837
|
+
return P ? M ? S.arrayMerge(u, f, S) : b(u, f, S) : a(f, S);
|
|
2835
2838
|
}
|
|
2836
2839
|
m.all = function(u, f) {
|
|
2837
2840
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2838
|
-
return u.reduce(function(
|
|
2839
|
-
return m(
|
|
2841
|
+
return u.reduce(function(S, M) {
|
|
2842
|
+
return m(S, M, f);
|
|
2840
2843
|
}, {});
|
|
2841
2844
|
};
|
|
2842
2845
|
var w = m;
|
|
2843
2846
|
return Be = w, Be;
|
|
2844
2847
|
}
|
|
2845
2848
|
var or = rr();
|
|
2846
|
-
const We = /* @__PURE__ */
|
|
2849
|
+
const We = /* @__PURE__ */ sr(or);
|
|
2847
2850
|
function ft(r) {
|
|
2848
2851
|
return We({
|
|
2849
2852
|
method: he.get,
|
|
@@ -2873,25 +2876,25 @@ function ar({
|
|
|
2873
2876
|
body: r,
|
|
2874
2877
|
accessToken: e,
|
|
2875
2878
|
method: t,
|
|
2876
|
-
...
|
|
2879
|
+
...n
|
|
2877
2880
|
}) {
|
|
2878
|
-
let
|
|
2879
|
-
return
|
|
2881
|
+
let s = e;
|
|
2882
|
+
return s && !s.includes("Bearer") && (s = "Bearer " + s), ir[t](We({
|
|
2880
2883
|
method: t,
|
|
2881
2884
|
headers: {
|
|
2882
|
-
...!!
|
|
2883
|
-
authorization:
|
|
2885
|
+
...!!s && {
|
|
2886
|
+
authorization: s
|
|
2884
2887
|
}
|
|
2885
2888
|
}
|
|
2886
|
-
},
|
|
2889
|
+
}, n), r);
|
|
2887
2890
|
}
|
|
2888
2891
|
const lr = 6144;
|
|
2889
2892
|
async function qt({
|
|
2890
2893
|
signal: r,
|
|
2891
2894
|
body: e,
|
|
2892
2895
|
accessToken: t,
|
|
2893
|
-
credentials:
|
|
2894
|
-
method:
|
|
2896
|
+
credentials: n,
|
|
2897
|
+
method: s = he.get,
|
|
2895
2898
|
params: o,
|
|
2896
2899
|
url: i,
|
|
2897
2900
|
requestOptions: {
|
|
@@ -2901,31 +2904,31 @@ async function qt({
|
|
|
2901
2904
|
},
|
|
2902
2905
|
...l
|
|
2903
2906
|
}) {
|
|
2904
|
-
let c =
|
|
2907
|
+
let c = nr({
|
|
2905
2908
|
url: i,
|
|
2906
2909
|
params: o
|
|
2907
|
-
}), h = e, y =
|
|
2908
|
-
|
|
2909
|
-
const
|
|
2910
|
+
}), h = e, y = s;
|
|
2911
|
+
s === he.get && c.length > a && (h = o, y = he.post, c = i);
|
|
2912
|
+
const v = ar({
|
|
2910
2913
|
body: h,
|
|
2911
|
-
accessToken: t ??
|
|
2914
|
+
accessToken: t ?? n?.accessToken,
|
|
2912
2915
|
method: y,
|
|
2913
2916
|
...l
|
|
2914
2917
|
});
|
|
2915
|
-
r && (
|
|
2916
|
-
const p = await
|
|
2918
|
+
r && (v.signal = r);
|
|
2919
|
+
const p = await Xs(c, v);
|
|
2917
2920
|
if (!p.ok) {
|
|
2918
2921
|
const b = await p.text();
|
|
2919
2922
|
throw new Error(b);
|
|
2920
2923
|
}
|
|
2921
2924
|
return p.status === 204 ? Promise.resolve() : await p.json();
|
|
2922
2925
|
}
|
|
2923
|
-
const ke = ht()(
|
|
2926
|
+
const ke = ht()(_n((r, e) => ({
|
|
2924
2927
|
sources: {},
|
|
2925
2928
|
filters: {},
|
|
2926
|
-
setSource: (t,
|
|
2929
|
+
setSource: (t, n) => r((s) => {
|
|
2927
2930
|
const o = {
|
|
2928
|
-
...
|
|
2931
|
+
...s.sources
|
|
2929
2932
|
}, i = o[t]?.widgets;
|
|
2930
2933
|
i && (i.destroy(), delete o[t].widgets);
|
|
2931
2934
|
const a = o[t], l = {
|
|
@@ -2933,7 +2936,7 @@ const ke = ht()(ws((r, e) => ({
|
|
|
2933
2936
|
clientId: er,
|
|
2934
2937
|
apiVersion: Qe,
|
|
2935
2938
|
...a,
|
|
2936
|
-
...
|
|
2939
|
+
...n
|
|
2937
2940
|
};
|
|
2938
2941
|
return l.widgets = fr({
|
|
2939
2942
|
source: l
|
|
@@ -2941,19 +2944,19 @@ const ke = ht()(ws((r, e) => ({
|
|
|
2941
2944
|
sources: o
|
|
2942
2945
|
};
|
|
2943
2946
|
}, void 0, "setSource"),
|
|
2944
|
-
removeSource: (t) => r((
|
|
2945
|
-
const
|
|
2946
|
-
...
|
|
2947
|
-
}, o =
|
|
2948
|
-
return o && (o.destroy(), delete
|
|
2949
|
-
sources:
|
|
2947
|
+
removeSource: (t) => r((n) => {
|
|
2948
|
+
const s = {
|
|
2949
|
+
...n.sources
|
|
2950
|
+
}, o = s[t]?.widgets;
|
|
2951
|
+
return o && (o.destroy(), delete s[t].widgets), delete s[t], {
|
|
2952
|
+
sources: s
|
|
2950
2953
|
};
|
|
2951
2954
|
}, void 0, "removeSource"),
|
|
2952
|
-
setFilters: (t,
|
|
2953
|
-
const o =
|
|
2955
|
+
setFilters: (t, n) => r((s) => {
|
|
2956
|
+
const o = s.filters[t] ?? {}, i = n.reduce((a, l) => Mt(a, l), o);
|
|
2954
2957
|
return {
|
|
2955
2958
|
filters: {
|
|
2956
|
-
...
|
|
2959
|
+
...s.filters,
|
|
2957
2960
|
[t]: {
|
|
2958
2961
|
...i
|
|
2959
2962
|
}
|
|
@@ -2961,14 +2964,14 @@ const ke = ht()(ws((r, e) => ({
|
|
|
2961
2964
|
}
|
|
2962
2965
|
};
|
|
2963
2966
|
}, void 0, "setFilters"),
|
|
2964
|
-
removeFilters: (t,
|
|
2967
|
+
removeFilters: (t, n, s) => r((o) => {
|
|
2965
2968
|
const i = o.filters[t] ?? {};
|
|
2966
2969
|
if (!i)
|
|
2967
2970
|
return o;
|
|
2968
2971
|
let a = {};
|
|
2969
|
-
return
|
|
2970
|
-
column:
|
|
2971
|
-
owner:
|
|
2972
|
+
return n && (a = mn(i, {
|
|
2973
|
+
column: n,
|
|
2974
|
+
owner: s
|
|
2972
2975
|
})), {
|
|
2973
2976
|
filters: {
|
|
2974
2977
|
...o.filters,
|
|
@@ -2980,13 +2983,13 @@ const ke = ht()(ws((r, e) => ({
|
|
|
2980
2983
|
};
|
|
2981
2984
|
}, void 0, "removeFilters"),
|
|
2982
2985
|
invalidateSourcesCache: (t, {
|
|
2983
|
-
timeout:
|
|
2984
|
-
maxAge:
|
|
2986
|
+
timeout: n = 500,
|
|
2987
|
+
maxAge: s = 10
|
|
2985
2988
|
} = {}) => {
|
|
2986
2989
|
t.forEach((o) => {
|
|
2987
2990
|
e().setSource(o, {
|
|
2988
2991
|
headers: {
|
|
2989
|
-
"Cache-Control": `no-cache, max-age=${
|
|
2992
|
+
"Cache-Control": `no-cache, max-age=${s}`
|
|
2990
2993
|
}
|
|
2991
2994
|
});
|
|
2992
2995
|
}), setTimeout(() => {
|
|
@@ -2994,40 +2997,40 @@ const ke = ht()(ws((r, e) => ({
|
|
|
2994
2997
|
const i = e().sources[o];
|
|
2995
2998
|
i && (delete i.headers, e().setSource(o, i));
|
|
2996
2999
|
});
|
|
2997
|
-
},
|
|
3000
|
+
}, n);
|
|
2998
3001
|
}
|
|
2999
3002
|
})));
|
|
3000
3003
|
function cr(r) {
|
|
3001
|
-
const e =
|
|
3004
|
+
const e = O(2);
|
|
3002
3005
|
let t;
|
|
3003
|
-
return e[0] !== r ? (t = (
|
|
3006
|
+
return e[0] !== r ? (t = (n) => n.sources[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3004
3007
|
}
|
|
3005
3008
|
function ur(r) {
|
|
3006
|
-
const e =
|
|
3009
|
+
const e = O(2);
|
|
3007
3010
|
let t;
|
|
3008
|
-
return e[0] !== r ? (t = (
|
|
3011
|
+
return e[0] !== r ? (t = (n) => n.filters[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3009
3012
|
}
|
|
3010
3013
|
function bo(r) {
|
|
3011
|
-
const e =
|
|
3014
|
+
const e = O(9);
|
|
3012
3015
|
let t;
|
|
3013
3016
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
3014
|
-
const
|
|
3015
|
-
let
|
|
3016
|
-
e[2] !== r ? (
|
|
3017
|
-
const o = ke(
|
|
3017
|
+
const n = ke(t);
|
|
3018
|
+
let s;
|
|
3019
|
+
e[2] !== r ? (s = (a) => a.filters[r], e[2] = r, e[3] = s) : s = e[3];
|
|
3020
|
+
const o = ke(s);
|
|
3018
3021
|
let i;
|
|
3019
3022
|
e: {
|
|
3020
|
-
if (!
|
|
3023
|
+
if (!n) {
|
|
3021
3024
|
i = void 0;
|
|
3022
3025
|
break e;
|
|
3023
3026
|
}
|
|
3024
3027
|
let a;
|
|
3025
3028
|
e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
|
|
3026
3029
|
let l;
|
|
3027
|
-
e[6] !==
|
|
3028
|
-
...
|
|
3030
|
+
e[6] !== n || e[7] !== a ? (l = {
|
|
3031
|
+
...n,
|
|
3029
3032
|
filters: a
|
|
3030
|
-
}, e[6] =
|
|
3033
|
+
}, e[6] = n, e[7] = a, e[8] = l) : l = e[8], i = l;
|
|
3031
3034
|
}
|
|
3032
3035
|
return i;
|
|
3033
3036
|
}
|
|
@@ -3050,10 +3053,10 @@ function fr({
|
|
|
3050
3053
|
const {
|
|
3051
3054
|
spatialDataType: e,
|
|
3052
3055
|
spatialDataColumn: t
|
|
3053
|
-
} = dr(r),
|
|
3056
|
+
} = dr(r), n = {
|
|
3054
3057
|
query: () => {
|
|
3055
3058
|
const i = r;
|
|
3056
|
-
return new
|
|
3059
|
+
return new vn({
|
|
3057
3060
|
...i,
|
|
3058
3061
|
accessToken: "",
|
|
3059
3062
|
sqlQuery: i.data,
|
|
@@ -3063,7 +3066,7 @@ function fr({
|
|
|
3063
3066
|
},
|
|
3064
3067
|
table: () => {
|
|
3065
3068
|
const i = r;
|
|
3066
|
-
return new
|
|
3069
|
+
return new bn({
|
|
3067
3070
|
...i,
|
|
3068
3071
|
accessToken: "",
|
|
3069
3072
|
tableName: i.data,
|
|
@@ -3073,11 +3076,11 @@ function fr({
|
|
|
3073
3076
|
},
|
|
3074
3077
|
tileset: () => {
|
|
3075
3078
|
const i = r;
|
|
3076
|
-
return i.spatialDataBounds ? new
|
|
3079
|
+
return i.spatialDataBounds ? new hn({
|
|
3077
3080
|
...i,
|
|
3078
3081
|
accessToken: "",
|
|
3079
3082
|
tableName: i.data,
|
|
3080
|
-
tileFormat: i.tileFormat ??
|
|
3083
|
+
tileFormat: i.tileFormat ?? gn.BINARY,
|
|
3081
3084
|
spatialDataType: e,
|
|
3082
3085
|
spatialDataColumn: t,
|
|
3083
3086
|
spatialDataBounds: i.spatialDataBounds
|
|
@@ -3085,7 +3088,7 @@ function fr({
|
|
|
3085
3088
|
},
|
|
3086
3089
|
raster: () => {
|
|
3087
3090
|
const i = r;
|
|
3088
|
-
return !i.rasterMetadata || !i.spatialDataBounds ? null : new
|
|
3091
|
+
return !i.rasterMetadata || !i.spatialDataBounds ? null : new yn({
|
|
3089
3092
|
...i,
|
|
3090
3093
|
accessToken: "",
|
|
3091
3094
|
tableName: i.data,
|
|
@@ -3095,26 +3098,26 @@ function fr({
|
|
|
3095
3098
|
spatialDataBounds: i.spatialDataBounds
|
|
3096
3099
|
});
|
|
3097
3100
|
}
|
|
3098
|
-
},
|
|
3101
|
+
}, s = r.type.split("+")[0], o = n[s];
|
|
3099
3102
|
return o?.();
|
|
3100
3103
|
}
|
|
3101
3104
|
function pr(r, e) {
|
|
3102
|
-
const t =
|
|
3103
|
-
let
|
|
3105
|
+
const t = O(3), n = ur(r);
|
|
3106
|
+
let s;
|
|
3104
3107
|
e: {
|
|
3105
3108
|
if (!e?.length) {
|
|
3106
|
-
|
|
3109
|
+
s = n;
|
|
3107
3110
|
break e;
|
|
3108
3111
|
}
|
|
3109
3112
|
let o;
|
|
3110
|
-
if (t[0] !== e || t[1] !==
|
|
3113
|
+
if (t[0] !== e || t[1] !== n) {
|
|
3111
3114
|
const i = e.reduce(mr, {});
|
|
3112
|
-
o = de(
|
|
3115
|
+
o = de(n ?? {}, i), t[0] = e, t[1] = n, t[2] = o;
|
|
3113
3116
|
} else
|
|
3114
3117
|
o = t[2];
|
|
3115
|
-
|
|
3118
|
+
s = o;
|
|
3116
3119
|
}
|
|
3117
|
-
return
|
|
3120
|
+
return s;
|
|
3118
3121
|
}
|
|
3119
3122
|
function mr(r, e) {
|
|
3120
3123
|
return Mt(r, e);
|
|
@@ -3122,8 +3125,8 @@ function mr(r, e) {
|
|
|
3122
3125
|
function yr(r, e) {
|
|
3123
3126
|
const t = cr(e);
|
|
3124
3127
|
return ye(() => {
|
|
3125
|
-
const
|
|
3126
|
-
return !
|
|
3128
|
+
const n = t?.widgets;
|
|
3129
|
+
return !n || !r ? null : (n.props.accessToken = r, n);
|
|
3127
3130
|
}, [r, t]);
|
|
3128
3131
|
}
|
|
3129
3132
|
const hr = ["authorization", "cache-control"];
|
|
@@ -3134,20 +3137,20 @@ function gr(r) {
|
|
|
3134
3137
|
return JSON.stringify(e);
|
|
3135
3138
|
}
|
|
3136
3139
|
function fe(r) {
|
|
3137
|
-
const e =
|
|
3140
|
+
const e = O(12), {
|
|
3138
3141
|
accessToken: t,
|
|
3139
|
-
sourceId:
|
|
3140
|
-
widgetProps:
|
|
3142
|
+
sourceId: n,
|
|
3143
|
+
widgetProps: s,
|
|
3141
3144
|
additionalFilter: o
|
|
3142
|
-
} = r, i = pr(
|
|
3145
|
+
} = r, i = pr(n, o), a = yr(t, n);
|
|
3143
3146
|
let l;
|
|
3144
|
-
if (e[0] !== t || e[1] !== i || e[2] !==
|
|
3145
|
-
l = [
|
|
3147
|
+
if (e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== s) {
|
|
3148
|
+
l = [n, s], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
|
|
3146
3149
|
const h = a?.props.headers;
|
|
3147
3150
|
let y;
|
|
3148
3151
|
e[6] !== h ? (y = gr(h), e[6] = h, e[7] = y) : y = e[7];
|
|
3149
|
-
const
|
|
3150
|
-
|
|
3152
|
+
const v = y;
|
|
3153
|
+
v && l.push(v), l.push(t), e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = s, e[5] = l;
|
|
3151
3154
|
} else
|
|
3152
3155
|
l = e[5];
|
|
3153
3156
|
let c;
|
|
@@ -3158,10 +3161,10 @@ function fe(r) {
|
|
|
3158
3161
|
}, e[8] = i, e[9] = l, e[10] = a, e[11] = c) : c = e[11], c;
|
|
3159
3162
|
}
|
|
3160
3163
|
function br(r) {
|
|
3161
|
-
const e =
|
|
3164
|
+
const e = O(21), {
|
|
3162
3165
|
accessToken: t,
|
|
3163
|
-
sourceId:
|
|
3164
|
-
widgetProps:
|
|
3166
|
+
sourceId: n,
|
|
3167
|
+
widgetProps: s,
|
|
3165
3168
|
additionalFilter: o,
|
|
3166
3169
|
useQueryProps: i
|
|
3167
3170
|
} = r;
|
|
@@ -3174,30 +3177,30 @@ function br(r) {
|
|
|
3174
3177
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3175
3178
|
const h = l === void 0 ? !0 : l;
|
|
3176
3179
|
let y;
|
|
3177
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3180
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3178
3181
|
accessToken: t,
|
|
3179
3182
|
additionalFilter: o,
|
|
3180
|
-
sourceId:
|
|
3181
|
-
widgetProps:
|
|
3182
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3183
|
+
sourceId: n,
|
|
3184
|
+
widgetProps: s
|
|
3185
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3183
3186
|
const {
|
|
3184
|
-
mergedFilters:
|
|
3187
|
+
mergedFilters: v,
|
|
3185
3188
|
queryKey: p,
|
|
3186
3189
|
widgetModel: b
|
|
3187
3190
|
} = fe(y);
|
|
3188
3191
|
let m;
|
|
3189
3192
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3190
3193
|
let w;
|
|
3191
|
-
e[12] !==
|
|
3194
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3192
3195
|
const {
|
|
3193
|
-
signal:
|
|
3194
|
-
} =
|
|
3196
|
+
signal: M
|
|
3197
|
+
} = S;
|
|
3195
3198
|
return b.getCategories({
|
|
3196
|
-
...
|
|
3197
|
-
filters:
|
|
3198
|
-
signal:
|
|
3199
|
+
...s,
|
|
3200
|
+
filters: v,
|
|
3201
|
+
signal: M
|
|
3199
3202
|
});
|
|
3200
|
-
}, e[12] =
|
|
3203
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3201
3204
|
const u = !!b && h;
|
|
3202
3205
|
let f;
|
|
3203
3206
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3208,21 +3211,21 @@ function br(r) {
|
|
|
3208
3211
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3209
3212
|
}
|
|
3210
3213
|
function So(r) {
|
|
3211
|
-
const e =
|
|
3212
|
-
let t,
|
|
3214
|
+
const e = O(6);
|
|
3215
|
+
let t, n;
|
|
3213
3216
|
e[0] !== r ? ({
|
|
3214
3217
|
children: t,
|
|
3215
|
-
...
|
|
3216
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3217
|
-
const
|
|
3218
|
+
...n
|
|
3219
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3220
|
+
const s = br(n);
|
|
3218
3221
|
let o;
|
|
3219
|
-
return e[3] !== t || e[4] !==
|
|
3222
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3220
3223
|
}
|
|
3221
3224
|
function vr(r) {
|
|
3222
|
-
const e =
|
|
3225
|
+
const e = O(21), {
|
|
3223
3226
|
accessToken: t,
|
|
3224
|
-
sourceId:
|
|
3225
|
-
widgetProps:
|
|
3227
|
+
sourceId: n,
|
|
3228
|
+
widgetProps: s,
|
|
3226
3229
|
additionalFilter: o,
|
|
3227
3230
|
useQueryProps: i
|
|
3228
3231
|
} = r;
|
|
@@ -3235,30 +3238,30 @@ function vr(r) {
|
|
|
3235
3238
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3236
3239
|
const h = l === void 0 ? !0 : l;
|
|
3237
3240
|
let y;
|
|
3238
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3241
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3239
3242
|
accessToken: t,
|
|
3240
3243
|
additionalFilter: o,
|
|
3241
|
-
sourceId:
|
|
3242
|
-
widgetProps:
|
|
3243
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3244
|
+
sourceId: n,
|
|
3245
|
+
widgetProps: s
|
|
3246
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3244
3247
|
const {
|
|
3245
|
-
mergedFilters:
|
|
3248
|
+
mergedFilters: v,
|
|
3246
3249
|
queryKey: p,
|
|
3247
3250
|
widgetModel: b
|
|
3248
3251
|
} = fe(y);
|
|
3249
3252
|
let m;
|
|
3250
3253
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3251
3254
|
let w;
|
|
3252
|
-
e[12] !==
|
|
3255
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3253
3256
|
const {
|
|
3254
|
-
signal:
|
|
3255
|
-
} =
|
|
3257
|
+
signal: M
|
|
3258
|
+
} = S;
|
|
3256
3259
|
return b.getFeatures({
|
|
3257
|
-
...
|
|
3258
|
-
filters:
|
|
3259
|
-
signal:
|
|
3260
|
+
...s,
|
|
3261
|
+
filters: v,
|
|
3262
|
+
signal: M
|
|
3260
3263
|
});
|
|
3261
|
-
}, e[12] =
|
|
3264
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3262
3265
|
const u = !!b && h;
|
|
3263
3266
|
let f;
|
|
3264
3267
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3269,21 +3272,21 @@ function vr(r) {
|
|
|
3269
3272
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3270
3273
|
}
|
|
3271
3274
|
function wo(r) {
|
|
3272
|
-
const e =
|
|
3273
|
-
let t,
|
|
3275
|
+
const e = O(6);
|
|
3276
|
+
let t, n;
|
|
3274
3277
|
e[0] !== r ? ({
|
|
3275
3278
|
children: t,
|
|
3276
|
-
...
|
|
3277
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3278
|
-
const
|
|
3279
|
+
...n
|
|
3280
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3281
|
+
const s = vr(n);
|
|
3279
3282
|
let o;
|
|
3280
|
-
return e[3] !== t || e[4] !==
|
|
3283
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3281
3284
|
}
|
|
3282
3285
|
function Sr(r) {
|
|
3283
|
-
const e =
|
|
3286
|
+
const e = O(21), {
|
|
3284
3287
|
accessToken: t,
|
|
3285
|
-
sourceId:
|
|
3286
|
-
widgetProps:
|
|
3288
|
+
sourceId: n,
|
|
3289
|
+
widgetProps: s,
|
|
3287
3290
|
additionalFilter: o,
|
|
3288
3291
|
useQueryProps: i
|
|
3289
3292
|
} = r;
|
|
@@ -3296,30 +3299,30 @@ function Sr(r) {
|
|
|
3296
3299
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3297
3300
|
const h = l === void 0 ? !0 : l;
|
|
3298
3301
|
let y;
|
|
3299
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3302
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3300
3303
|
accessToken: t,
|
|
3301
3304
|
additionalFilter: o,
|
|
3302
|
-
sourceId:
|
|
3303
|
-
widgetProps:
|
|
3304
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3305
|
+
sourceId: n,
|
|
3306
|
+
widgetProps: s
|
|
3307
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3305
3308
|
const {
|
|
3306
|
-
mergedFilters:
|
|
3309
|
+
mergedFilters: v,
|
|
3307
3310
|
queryKey: p,
|
|
3308
3311
|
widgetModel: b
|
|
3309
3312
|
} = fe(y);
|
|
3310
3313
|
let m;
|
|
3311
3314
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3312
3315
|
let w;
|
|
3313
|
-
e[12] !==
|
|
3316
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3314
3317
|
const {
|
|
3315
|
-
signal:
|
|
3316
|
-
} =
|
|
3318
|
+
signal: M
|
|
3319
|
+
} = S;
|
|
3317
3320
|
return b.getFormula({
|
|
3318
|
-
...
|
|
3319
|
-
filters:
|
|
3320
|
-
signal:
|
|
3321
|
+
...s,
|
|
3322
|
+
filters: v,
|
|
3323
|
+
signal: M
|
|
3321
3324
|
});
|
|
3322
|
-
}, e[12] =
|
|
3325
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3323
3326
|
const u = !!b && h;
|
|
3324
3327
|
let f;
|
|
3325
3328
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3330,21 +3333,21 @@ function Sr(r) {
|
|
|
3330
3333
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3331
3334
|
}
|
|
3332
3335
|
function _o(r) {
|
|
3333
|
-
const e =
|
|
3334
|
-
let t,
|
|
3336
|
+
const e = O(6);
|
|
3337
|
+
let t, n;
|
|
3335
3338
|
e[0] !== r ? ({
|
|
3336
3339
|
children: t,
|
|
3337
|
-
...
|
|
3338
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3339
|
-
const
|
|
3340
|
+
...n
|
|
3341
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3342
|
+
const s = Sr(n);
|
|
3340
3343
|
let o;
|
|
3341
|
-
return e[3] !== t || e[4] !==
|
|
3344
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3342
3345
|
}
|
|
3343
3346
|
function wr(r) {
|
|
3344
|
-
const e =
|
|
3347
|
+
const e = O(21), {
|
|
3345
3348
|
accessToken: t,
|
|
3346
|
-
sourceId:
|
|
3347
|
-
widgetProps:
|
|
3349
|
+
sourceId: n,
|
|
3350
|
+
widgetProps: s,
|
|
3348
3351
|
additionalFilter: o,
|
|
3349
3352
|
useQueryProps: i
|
|
3350
3353
|
} = r;
|
|
@@ -3357,30 +3360,30 @@ function wr(r) {
|
|
|
3357
3360
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3358
3361
|
const h = l === void 0 ? !0 : l;
|
|
3359
3362
|
let y;
|
|
3360
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3363
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3361
3364
|
accessToken: t,
|
|
3362
3365
|
additionalFilter: o,
|
|
3363
|
-
sourceId:
|
|
3364
|
-
widgetProps:
|
|
3365
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3366
|
+
sourceId: n,
|
|
3367
|
+
widgetProps: s
|
|
3368
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3366
3369
|
const {
|
|
3367
|
-
mergedFilters:
|
|
3370
|
+
mergedFilters: v,
|
|
3368
3371
|
queryKey: p,
|
|
3369
3372
|
widgetModel: b
|
|
3370
3373
|
} = fe(y);
|
|
3371
3374
|
let m;
|
|
3372
3375
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3373
3376
|
let w;
|
|
3374
|
-
e[12] !==
|
|
3377
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3375
3378
|
const {
|
|
3376
|
-
signal:
|
|
3377
|
-
} =
|
|
3379
|
+
signal: M
|
|
3380
|
+
} = S;
|
|
3378
3381
|
return b.getHistogram({
|
|
3379
|
-
...
|
|
3380
|
-
filters:
|
|
3381
|
-
signal:
|
|
3382
|
+
...s,
|
|
3383
|
+
filters: v,
|
|
3384
|
+
signal: M
|
|
3382
3385
|
});
|
|
3383
|
-
}, e[12] =
|
|
3386
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3384
3387
|
const u = !!b && h;
|
|
3385
3388
|
let f;
|
|
3386
3389
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3391,21 +3394,21 @@ function wr(r) {
|
|
|
3391
3394
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3392
3395
|
}
|
|
3393
3396
|
function Mo(r) {
|
|
3394
|
-
const e =
|
|
3395
|
-
let t,
|
|
3397
|
+
const e = O(6);
|
|
3398
|
+
let t, n;
|
|
3396
3399
|
e[0] !== r ? ({
|
|
3397
3400
|
children: t,
|
|
3398
|
-
...
|
|
3399
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3400
|
-
const
|
|
3401
|
+
...n
|
|
3402
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3403
|
+
const s = wr(n);
|
|
3401
3404
|
let o;
|
|
3402
|
-
return e[3] !== t || e[4] !==
|
|
3405
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3403
3406
|
}
|
|
3404
3407
|
function _r(r) {
|
|
3405
|
-
const e =
|
|
3408
|
+
const e = O(21), {
|
|
3406
3409
|
accessToken: t,
|
|
3407
|
-
sourceId:
|
|
3408
|
-
widgetProps:
|
|
3410
|
+
sourceId: n,
|
|
3411
|
+
widgetProps: s,
|
|
3409
3412
|
additionalFilter: o,
|
|
3410
3413
|
useQueryProps: i
|
|
3411
3414
|
} = r;
|
|
@@ -3418,30 +3421,30 @@ function _r(r) {
|
|
|
3418
3421
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3419
3422
|
const h = l === void 0 ? !0 : l;
|
|
3420
3423
|
let y;
|
|
3421
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3424
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3422
3425
|
accessToken: t,
|
|
3423
3426
|
additionalFilter: o,
|
|
3424
|
-
sourceId:
|
|
3425
|
-
widgetProps:
|
|
3426
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3427
|
+
sourceId: n,
|
|
3428
|
+
widgetProps: s
|
|
3429
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3427
3430
|
const {
|
|
3428
|
-
mergedFilters:
|
|
3431
|
+
mergedFilters: v,
|
|
3429
3432
|
queryKey: p,
|
|
3430
3433
|
widgetModel: b
|
|
3431
3434
|
} = fe(y);
|
|
3432
3435
|
let m;
|
|
3433
3436
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3434
3437
|
let w;
|
|
3435
|
-
e[12] !==
|
|
3438
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3436
3439
|
const {
|
|
3437
|
-
signal:
|
|
3438
|
-
} =
|
|
3440
|
+
signal: M
|
|
3441
|
+
} = S;
|
|
3439
3442
|
return b.getRange({
|
|
3440
|
-
...
|
|
3441
|
-
filters:
|
|
3442
|
-
signal:
|
|
3443
|
+
...s,
|
|
3444
|
+
filters: v,
|
|
3445
|
+
signal: M
|
|
3443
3446
|
});
|
|
3444
|
-
}, e[12] =
|
|
3447
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3445
3448
|
const u = !!b && h;
|
|
3446
3449
|
let f;
|
|
3447
3450
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3452,21 +3455,21 @@ function _r(r) {
|
|
|
3452
3455
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3453
3456
|
}
|
|
3454
3457
|
function Eo(r) {
|
|
3455
|
-
const e =
|
|
3456
|
-
let t,
|
|
3458
|
+
const e = O(6);
|
|
3459
|
+
let t, n;
|
|
3457
3460
|
e[0] !== r ? ({
|
|
3458
3461
|
children: t,
|
|
3459
|
-
...
|
|
3460
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3461
|
-
const
|
|
3462
|
+
...n
|
|
3463
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3464
|
+
const s = _r(n);
|
|
3462
3465
|
let o;
|
|
3463
|
-
return e[3] !== t || e[4] !==
|
|
3466
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3464
3467
|
}
|
|
3465
3468
|
function Mr(r) {
|
|
3466
|
-
const e =
|
|
3469
|
+
const e = O(21), {
|
|
3467
3470
|
accessToken: t,
|
|
3468
|
-
sourceId:
|
|
3469
|
-
widgetProps:
|
|
3471
|
+
sourceId: n,
|
|
3472
|
+
widgetProps: s,
|
|
3470
3473
|
additionalFilter: o,
|
|
3471
3474
|
useQueryProps: i
|
|
3472
3475
|
} = r;
|
|
@@ -3479,30 +3482,30 @@ function Mr(r) {
|
|
|
3479
3482
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3480
3483
|
const h = l === void 0 ? !0 : l;
|
|
3481
3484
|
let y;
|
|
3482
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3485
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3483
3486
|
accessToken: t,
|
|
3484
3487
|
additionalFilter: o,
|
|
3485
|
-
sourceId:
|
|
3486
|
-
widgetProps:
|
|
3487
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3488
|
+
sourceId: n,
|
|
3489
|
+
widgetProps: s
|
|
3490
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3488
3491
|
const {
|
|
3489
|
-
mergedFilters:
|
|
3492
|
+
mergedFilters: v,
|
|
3490
3493
|
queryKey: p,
|
|
3491
3494
|
widgetModel: b
|
|
3492
3495
|
} = fe(y);
|
|
3493
3496
|
let m;
|
|
3494
3497
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3495
3498
|
let w;
|
|
3496
|
-
e[12] !==
|
|
3499
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3497
3500
|
const {
|
|
3498
|
-
signal:
|
|
3499
|
-
} =
|
|
3501
|
+
signal: M
|
|
3502
|
+
} = S;
|
|
3500
3503
|
return b.getScatter({
|
|
3501
|
-
...
|
|
3502
|
-
filters:
|
|
3503
|
-
signal:
|
|
3504
|
+
...s,
|
|
3505
|
+
filters: v,
|
|
3506
|
+
signal: M
|
|
3504
3507
|
});
|
|
3505
|
-
}, e[12] =
|
|
3508
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3506
3509
|
const u = !!b && h;
|
|
3507
3510
|
let f;
|
|
3508
3511
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3513,21 +3516,21 @@ function Mr(r) {
|
|
|
3513
3516
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3514
3517
|
}
|
|
3515
3518
|
function To(r) {
|
|
3516
|
-
const e =
|
|
3517
|
-
let t,
|
|
3519
|
+
const e = O(6);
|
|
3520
|
+
let t, n;
|
|
3518
3521
|
e[0] !== r ? ({
|
|
3519
3522
|
children: t,
|
|
3520
|
-
...
|
|
3521
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3522
|
-
const
|
|
3523
|
+
...n
|
|
3524
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3525
|
+
const s = Mr(n);
|
|
3523
3526
|
let o;
|
|
3524
|
-
return e[3] !== t || e[4] !==
|
|
3527
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3525
3528
|
}
|
|
3526
3529
|
function Er(r) {
|
|
3527
|
-
const e =
|
|
3530
|
+
const e = O(21), {
|
|
3528
3531
|
accessToken: t,
|
|
3529
|
-
sourceId:
|
|
3530
|
-
widgetProps:
|
|
3532
|
+
sourceId: n,
|
|
3533
|
+
widgetProps: s,
|
|
3531
3534
|
additionalFilter: o,
|
|
3532
3535
|
useQueryProps: i
|
|
3533
3536
|
} = r;
|
|
@@ -3540,30 +3543,30 @@ function Er(r) {
|
|
|
3540
3543
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3541
3544
|
const h = l === void 0 ? !0 : l;
|
|
3542
3545
|
let y;
|
|
3543
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3546
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3544
3547
|
accessToken: t,
|
|
3545
3548
|
additionalFilter: o,
|
|
3546
|
-
sourceId:
|
|
3547
|
-
widgetProps:
|
|
3548
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3549
|
+
sourceId: n,
|
|
3550
|
+
widgetProps: s
|
|
3551
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3549
3552
|
const {
|
|
3550
|
-
mergedFilters:
|
|
3553
|
+
mergedFilters: v,
|
|
3551
3554
|
queryKey: p,
|
|
3552
3555
|
widgetModel: b
|
|
3553
3556
|
} = fe(y);
|
|
3554
3557
|
let m;
|
|
3555
3558
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3556
3559
|
let w;
|
|
3557
|
-
e[12] !==
|
|
3560
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3558
3561
|
const {
|
|
3559
|
-
signal:
|
|
3560
|
-
} =
|
|
3562
|
+
signal: M
|
|
3563
|
+
} = S;
|
|
3561
3564
|
return b.getTable({
|
|
3562
|
-
...
|
|
3563
|
-
filters:
|
|
3564
|
-
signal:
|
|
3565
|
+
...s,
|
|
3566
|
+
filters: v,
|
|
3567
|
+
signal: M
|
|
3565
3568
|
});
|
|
3566
|
-
}, e[12] =
|
|
3569
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3567
3570
|
const u = !!b && h;
|
|
3568
3571
|
let f;
|
|
3569
3572
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3574,21 +3577,21 @@ function Er(r) {
|
|
|
3574
3577
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3575
3578
|
}
|
|
3576
3579
|
function Lo(r) {
|
|
3577
|
-
const e =
|
|
3578
|
-
let t,
|
|
3580
|
+
const e = O(6);
|
|
3581
|
+
let t, n;
|
|
3579
3582
|
e[0] !== r ? ({
|
|
3580
3583
|
children: t,
|
|
3581
|
-
...
|
|
3582
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3583
|
-
const
|
|
3584
|
+
...n
|
|
3585
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3586
|
+
const s = Er(n);
|
|
3584
3587
|
let o;
|
|
3585
|
-
return e[3] !== t || e[4] !==
|
|
3588
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3586
3589
|
}
|
|
3587
3590
|
function Tr(r) {
|
|
3588
|
-
const e =
|
|
3591
|
+
const e = O(21), {
|
|
3589
3592
|
accessToken: t,
|
|
3590
|
-
sourceId:
|
|
3591
|
-
widgetProps:
|
|
3593
|
+
sourceId: n,
|
|
3594
|
+
widgetProps: s,
|
|
3592
3595
|
additionalFilter: o,
|
|
3593
3596
|
useQueryProps: i
|
|
3594
3597
|
} = r;
|
|
@@ -3601,30 +3604,30 @@ function Tr(r) {
|
|
|
3601
3604
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3602
3605
|
const h = l === void 0 ? !0 : l;
|
|
3603
3606
|
let y;
|
|
3604
|
-
e[5] !== t || e[6] !== o || e[7] !==
|
|
3607
|
+
e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== s ? (y = {
|
|
3605
3608
|
accessToken: t,
|
|
3606
3609
|
additionalFilter: o,
|
|
3607
|
-
sourceId:
|
|
3608
|
-
widgetProps:
|
|
3609
|
-
}, e[5] = t, e[6] = o, e[7] =
|
|
3610
|
+
sourceId: n,
|
|
3611
|
+
widgetProps: s
|
|
3612
|
+
}, e[5] = t, e[6] = o, e[7] = n, e[8] = s, e[9] = y) : y = e[9];
|
|
3610
3613
|
const {
|
|
3611
|
-
mergedFilters:
|
|
3614
|
+
mergedFilters: v,
|
|
3612
3615
|
queryKey: p,
|
|
3613
3616
|
widgetModel: b
|
|
3614
3617
|
} = fe(y);
|
|
3615
3618
|
let m;
|
|
3616
3619
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3617
3620
|
let w;
|
|
3618
|
-
e[12] !==
|
|
3621
|
+
e[12] !== v || e[13] !== b || e[14] !== s ? (w = (S) => {
|
|
3619
3622
|
const {
|
|
3620
|
-
signal:
|
|
3621
|
-
} =
|
|
3623
|
+
signal: M
|
|
3624
|
+
} = S;
|
|
3622
3625
|
return b.getTimeSeries({
|
|
3623
|
-
...
|
|
3624
|
-
filters:
|
|
3625
|
-
signal:
|
|
3626
|
+
...s,
|
|
3627
|
+
filters: v,
|
|
3628
|
+
signal: M
|
|
3626
3629
|
});
|
|
3627
|
-
}, e[12] =
|
|
3630
|
+
}, e[12] = v, e[13] = b, e[14] = s, e[15] = w) : w = e[15];
|
|
3628
3631
|
const u = !!b && h;
|
|
3629
3632
|
let f;
|
|
3630
3633
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3635,68 +3638,68 @@ function Tr(r) {
|
|
|
3635
3638
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3636
3639
|
}
|
|
3637
3640
|
function Po(r) {
|
|
3638
|
-
const e =
|
|
3639
|
-
let t,
|
|
3641
|
+
const e = O(6);
|
|
3642
|
+
let t, n;
|
|
3640
3643
|
e[0] !== r ? ({
|
|
3641
3644
|
children: t,
|
|
3642
|
-
...
|
|
3643
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3644
|
-
const
|
|
3645
|
+
...n
|
|
3646
|
+
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3647
|
+
const s = Tr(n);
|
|
3645
3648
|
let o;
|
|
3646
|
-
return e[3] !== t || e[4] !==
|
|
3649
|
+
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3647
3650
|
}
|
|
3648
3651
|
const ko = "ps";
|
|
3649
3652
|
function Co(r) {
|
|
3650
|
-
const e =
|
|
3653
|
+
const e = O(13), {
|
|
3651
3654
|
children: t,
|
|
3652
|
-
maps:
|
|
3653
|
-
lassoTools:
|
|
3655
|
+
maps: n,
|
|
3656
|
+
lassoTools: s,
|
|
3654
3657
|
measureTools: o
|
|
3655
3658
|
} = r;
|
|
3656
3659
|
let i;
|
|
3657
|
-
e[0] !==
|
|
3660
|
+
e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
|
|
3658
3661
|
const a = i;
|
|
3659
3662
|
let l;
|
|
3660
3663
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3661
3664
|
const c = l;
|
|
3662
3665
|
let h;
|
|
3663
|
-
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */
|
|
3666
|
+
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ Z(Ms, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
|
|
3664
3667
|
let y;
|
|
3665
|
-
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */
|
|
3666
|
-
let
|
|
3667
|
-
return e[10] !==
|
|
3668
|
+
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */ Z(is, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = y) : y = e[9];
|
|
3669
|
+
let v;
|
|
3670
|
+
return e[10] !== n || e[11] !== y ? (v = /* @__PURE__ */ Z(Qn, { values: n, children: y }), e[10] = n, e[11] = y, e[12] = v) : v = e[12], v;
|
|
3668
3671
|
}
|
|
3669
3672
|
function Oo(r, e) {
|
|
3670
|
-
const t =
|
|
3673
|
+
const t = be((c) => c.layers), n = be((c) => c.setLayer), s = ye(() => $t(r.map((c) => t[c]).filter((c) => !!c?.legend)).toReversed(), [t, r]), o = ye(() => s.map(e), [e, s]), i = ee(({
|
|
3671
3674
|
id: c,
|
|
3672
3675
|
visible: h,
|
|
3673
3676
|
...y
|
|
3674
3677
|
}) => {
|
|
3675
|
-
|
|
3678
|
+
n(c, {
|
|
3676
3679
|
props: {
|
|
3677
3680
|
visible: h
|
|
3678
3681
|
},
|
|
3679
3682
|
legend: y
|
|
3680
3683
|
});
|
|
3681
|
-
}, [
|
|
3684
|
+
}, [n]), a = ee(({
|
|
3682
3685
|
id: c,
|
|
3683
3686
|
collapsed: h
|
|
3684
3687
|
}) => {
|
|
3685
|
-
|
|
3688
|
+
n(c, {
|
|
3686
3689
|
legend: {
|
|
3687
3690
|
collapsed: h
|
|
3688
3691
|
}
|
|
3689
3692
|
});
|
|
3690
|
-
}, [
|
|
3693
|
+
}, [n]), l = ee(({
|
|
3691
3694
|
id: c,
|
|
3692
3695
|
opacity: h
|
|
3693
3696
|
}) => {
|
|
3694
|
-
|
|
3697
|
+
n(c, {
|
|
3695
3698
|
props: {
|
|
3696
3699
|
opacity: h
|
|
3697
3700
|
}
|
|
3698
3701
|
});
|
|
3699
|
-
}, [
|
|
3702
|
+
}, [n]);
|
|
3700
3703
|
return {
|
|
3701
3704
|
legend: o,
|
|
3702
3705
|
onChangeVisibility: i,
|
|
@@ -3707,53 +3710,53 @@ function Oo(r, e) {
|
|
|
3707
3710
|
function Fo({
|
|
3708
3711
|
mapId: r
|
|
3709
3712
|
}) {
|
|
3710
|
-
const [e, t] = ae(void 0), [
|
|
3713
|
+
const [e, t] = ae(void 0), [n, s] = ae(!1), [o, i] = ae(void 0), a = q((u) => u.maps[r]?.basemap), l = q((u) => u.getDeckInstance), c = q((u) => u.getOverlayInstance), h = q((u) => u.areLayersLoaded[r]), v = q((u) => u.maps[r]?.isLoaded) && h, {
|
|
3711
3714
|
type: p
|
|
3712
|
-
} =
|
|
3715
|
+
} = Se[a], b = p === ie.googleMaps, m = ee(async () => {
|
|
3713
3716
|
const u = l(r), f = c(r);
|
|
3714
3717
|
try {
|
|
3715
|
-
const
|
|
3716
|
-
|
|
3717
|
-
const
|
|
3718
|
+
const S = document.createElement("canvas");
|
|
3719
|
+
S.width = u.width ?? 0, S.height = u.height ?? 0;
|
|
3720
|
+
const M = S.getContext("2d");
|
|
3718
3721
|
if (b) {
|
|
3719
3722
|
const P = f;
|
|
3720
3723
|
if (P.getRenderingType() !== "RASTER")
|
|
3721
3724
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3722
|
-
const
|
|
3725
|
+
const R = await Mn(P.getDiv(), {
|
|
3723
3726
|
useCORS: !0
|
|
3724
3727
|
});
|
|
3725
|
-
|
|
3728
|
+
M?.drawImage(R, 0, 0, u.width, u.height);
|
|
3726
3729
|
} else {
|
|
3727
3730
|
const P = f;
|
|
3728
|
-
P.redraw(),
|
|
3731
|
+
P.redraw(), M?.drawImage(P.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3729
3732
|
}
|
|
3730
|
-
u?.redraw("screenshot"),
|
|
3731
|
-
const
|
|
3732
|
-
t(
|
|
3733
|
-
} catch (
|
|
3734
|
-
i(
|
|
3733
|
+
u?.redraw("screenshot"), M?.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3734
|
+
const _ = S.toDataURL();
|
|
3735
|
+
t(_);
|
|
3736
|
+
} catch (S) {
|
|
3737
|
+
i(S), console.error(S);
|
|
3735
3738
|
} finally {
|
|
3736
|
-
|
|
3739
|
+
s(!1);
|
|
3737
3740
|
}
|
|
3738
3741
|
}, [l, b, r, c]);
|
|
3739
3742
|
return {
|
|
3740
3743
|
takeScreenshot: ee(() => {
|
|
3741
|
-
i(void 0),
|
|
3742
|
-
}, [m,
|
|
3743
|
-
isLoading:
|
|
3744
|
+
i(void 0), s(!0), v && m();
|
|
3745
|
+
}, [m, v]),
|
|
3746
|
+
isLoading: n,
|
|
3744
3747
|
screenshot: e,
|
|
3745
3748
|
error: o
|
|
3746
3749
|
};
|
|
3747
3750
|
}
|
|
3748
3751
|
function Ao(r) {
|
|
3749
|
-
const e =
|
|
3752
|
+
const e = O(11), {
|
|
3750
3753
|
mapId: t
|
|
3751
3754
|
} = r;
|
|
3752
|
-
let
|
|
3753
|
-
e[0] !== t ? (
|
|
3755
|
+
let n;
|
|
3756
|
+
e[0] !== t ? (n = {
|
|
3754
3757
|
mapId: t
|
|
3755
|
-
}, e[0] = t, e[1] =
|
|
3756
|
-
const
|
|
3758
|
+
}, e[0] = t, e[1] = n) : n = e[1];
|
|
3759
|
+
const s = Lr(n);
|
|
3757
3760
|
let o;
|
|
3758
3761
|
e[2] !== t ? (o = {
|
|
3759
3762
|
mapId: t
|
|
@@ -3763,52 +3766,52 @@ function Ao(r) {
|
|
|
3763
3766
|
e[4] !== t ? (a = {
|
|
3764
3767
|
mapId: t
|
|
3765
3768
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3766
|
-
const l = Or(a), c = i ?? l ??
|
|
3769
|
+
const l = Or(a), c = i ?? l ?? s;
|
|
3767
3770
|
let h;
|
|
3768
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !==
|
|
3771
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== s ? (h = {
|
|
3769
3772
|
spatialFilter: c,
|
|
3770
3773
|
staticSpatialFilter: l,
|
|
3771
3774
|
lassoToolsSpatialFilter: i,
|
|
3772
|
-
viewportSpatialFilter:
|
|
3773
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] =
|
|
3775
|
+
viewportSpatialFilter: s
|
|
3776
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = s, e[10] = h) : h = e[10], h;
|
|
3774
3777
|
}
|
|
3775
3778
|
function Lr(r) {
|
|
3776
|
-
const e =
|
|
3779
|
+
const e = O(4), {
|
|
3777
3780
|
mapId: t
|
|
3778
3781
|
} = r;
|
|
3779
|
-
let
|
|
3780
|
-
e[0] !== t ? (
|
|
3781
|
-
const
|
|
3782
|
+
let n;
|
|
3783
|
+
e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
3784
|
+
const s = q(n);
|
|
3782
3785
|
let o;
|
|
3783
3786
|
e: {
|
|
3784
|
-
if (!
|
|
3787
|
+
if (!s) {
|
|
3785
3788
|
o = void 0;
|
|
3786
3789
|
break e;
|
|
3787
3790
|
}
|
|
3788
3791
|
let i;
|
|
3789
|
-
e[2] !==
|
|
3792
|
+
e[2] !== s ? (i = Sn(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], o = i;
|
|
3790
3793
|
}
|
|
3791
3794
|
return o;
|
|
3792
3795
|
}
|
|
3793
3796
|
function Pr(r) {
|
|
3794
|
-
const e =
|
|
3797
|
+
const e = O(5), {
|
|
3795
3798
|
mapId: t
|
|
3796
3799
|
} = r;
|
|
3797
|
-
let
|
|
3798
|
-
e[0] !== t ? (
|
|
3799
|
-
const
|
|
3800
|
+
let n;
|
|
3801
|
+
e[0] !== t ? (n = (i) => i.data[t]?.values, e[0] = t, e[1] = n) : n = e[1];
|
|
3802
|
+
const s = Q(n);
|
|
3800
3803
|
let o;
|
|
3801
3804
|
e: {
|
|
3802
3805
|
let i;
|
|
3803
|
-
if (e[2] !==
|
|
3806
|
+
if (e[2] !== s) {
|
|
3804
3807
|
const a = Ot({
|
|
3805
|
-
values:
|
|
3808
|
+
values: s
|
|
3806
3809
|
}).filter(Cr);
|
|
3807
3810
|
if (!a?.length) {
|
|
3808
3811
|
o = void 0;
|
|
3809
3812
|
break e;
|
|
3810
3813
|
}
|
|
3811
|
-
i = St(a.map(kr)), e[2] =
|
|
3814
|
+
i = St(a.map(kr)), e[2] = s, e[3] = i, e[4] = o;
|
|
3812
3815
|
} else
|
|
3813
3816
|
i = e[3], o = e[4];
|
|
3814
3817
|
o = i.geometry;
|
|
@@ -3822,22 +3825,22 @@ function Cr(r) {
|
|
|
3822
3825
|
return r.properties.visible;
|
|
3823
3826
|
}
|
|
3824
3827
|
function Or(r) {
|
|
3825
|
-
const e =
|
|
3828
|
+
const e = O(4), {
|
|
3826
3829
|
mapId: t
|
|
3827
3830
|
} = r;
|
|
3828
|
-
let
|
|
3829
|
-
e[0] !== t ? (
|
|
3830
|
-
const
|
|
3831
|
+
let n;
|
|
3832
|
+
e[0] !== t ? (n = (i) => i.spatialFilter[t], e[0] = t, e[1] = n) : n = e[1];
|
|
3833
|
+
const s = q(n);
|
|
3831
3834
|
let o;
|
|
3832
3835
|
e: {
|
|
3833
|
-
if (!
|
|
3836
|
+
if (!s || !Object.keys(s).length) {
|
|
3834
3837
|
o = void 0;
|
|
3835
3838
|
break e;
|
|
3836
3839
|
}
|
|
3837
3840
|
let i;
|
|
3838
|
-
if (e[2] !==
|
|
3839
|
-
const a = Object.values(
|
|
3840
|
-
i = St(a), e[2] =
|
|
3841
|
+
if (e[2] !== s) {
|
|
3842
|
+
const a = Object.values(s).filter(Ar).flatMap(Fr);
|
|
3843
|
+
i = St(a), e[2] = s, e[3] = i;
|
|
3841
3844
|
} else
|
|
3842
3845
|
i = e[3];
|
|
3843
3846
|
o = i.geometry;
|
|
@@ -3857,7 +3860,7 @@ const pe = {
|
|
|
3857
3860
|
}, pt = {
|
|
3858
3861
|
[pe.currency]: {
|
|
3859
3862
|
type: pe.currency,
|
|
3860
|
-
format: (r, e) =>
|
|
3863
|
+
format: (r, e) => dn(r, e)
|
|
3861
3864
|
},
|
|
3862
3865
|
[pe.number]: {
|
|
3863
3866
|
type: pe.number,
|
|
@@ -3872,19 +3875,19 @@ function Ro({
|
|
|
3872
3875
|
properties: r,
|
|
3873
3876
|
formatters: e = {},
|
|
3874
3877
|
includeColumns: t = Object.keys(r),
|
|
3875
|
-
locale:
|
|
3876
|
-
showColumnName:
|
|
3878
|
+
locale: n = "en-US",
|
|
3879
|
+
showColumnName: s = !0,
|
|
3877
3880
|
title: o,
|
|
3878
3881
|
getColumnName: i = xr,
|
|
3879
3882
|
getFieldHtml: a = Dr,
|
|
3880
3883
|
getTitle: l = Rr,
|
|
3881
3884
|
getValue: c = $r
|
|
3882
3885
|
}) {
|
|
3883
|
-
const h = o ? l(o) : "",
|
|
3884
|
-
const m = e[b], w = r[b], u = c(w,
|
|
3886
|
+
const h = o ? l(o) : "", v = t.reduce((p, b) => {
|
|
3887
|
+
const m = e[b], w = r[b], u = c(w, n, m), f = s ? i(b) : "";
|
|
3885
3888
|
return p + a(f, u);
|
|
3886
3889
|
}, "");
|
|
3887
|
-
return h +
|
|
3890
|
+
return h + v;
|
|
3888
3891
|
}
|
|
3889
3892
|
function Rr(r) {
|
|
3890
3893
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3922,39 +3925,39 @@ function Do(r) {
|
|
|
3922
3925
|
};
|
|
3923
3926
|
}
|
|
3924
3927
|
function $o(r) {
|
|
3925
|
-
const e =
|
|
3928
|
+
const e = O(22), {
|
|
3926
3929
|
children: t,
|
|
3927
|
-
mapId:
|
|
3930
|
+
mapId: n
|
|
3928
3931
|
} = r;
|
|
3929
|
-
let
|
|
3930
|
-
e[0] !==
|
|
3932
|
+
let s;
|
|
3933
|
+
e[0] !== n ? (s = (_) => _.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
|
|
3931
3934
|
const {
|
|
3932
3935
|
zoom: o,
|
|
3933
3936
|
maxZoom: i,
|
|
3934
3937
|
minZoom: a
|
|
3935
|
-
} =
|
|
3938
|
+
} = q(s);
|
|
3936
3939
|
let l;
|
|
3937
|
-
e[2] !==
|
|
3938
|
-
const c =
|
|
3940
|
+
e[2] !== n ? (l = (_) => _.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
|
|
3941
|
+
const c = q(l), h = q(Br), y = q(Vr), v = q(Ur), p = !c;
|
|
3939
3942
|
let b;
|
|
3940
|
-
e[4] !==
|
|
3943
|
+
e[4] !== n || e[5] !== h ? (b = (_) => h(n, _), e[4] = n, e[5] = h, e[6] = b) : b = e[6];
|
|
3941
3944
|
const m = b;
|
|
3942
3945
|
let w;
|
|
3943
|
-
e[7] !== y || e[8] !==
|
|
3946
|
+
e[7] !== y || e[8] !== n ? (w = (_) => y(n, _), e[7] = y, e[8] = n, e[9] = w) : w = e[9];
|
|
3944
3947
|
const u = w;
|
|
3945
3948
|
let f;
|
|
3946
|
-
e[10] !==
|
|
3947
|
-
const
|
|
3948
|
-
let
|
|
3949
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !==
|
|
3949
|
+
e[10] !== n || e[11] !== v ? (f = () => v(n), e[10] = n, e[11] = v, e[12] = f) : f = e[12];
|
|
3950
|
+
const S = f;
|
|
3951
|
+
let M;
|
|
3952
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !== S || e[20] !== o ? (M = t({
|
|
3950
3953
|
zoom: o,
|
|
3951
3954
|
maxZoom: i,
|
|
3952
3955
|
minZoom: a,
|
|
3953
3956
|
isLoading: p,
|
|
3954
3957
|
setZoom: m,
|
|
3955
3958
|
flyTo: u,
|
|
3956
|
-
resetViewState:
|
|
3957
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] =
|
|
3959
|
+
resetViewState: S
|
|
3960
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] = S, e[20] = o, e[21] = M) : M = e[21], M;
|
|
3958
3961
|
}
|
|
3959
3962
|
function Ur(r) {
|
|
3960
3963
|
return r.resetViewState;
|
|
@@ -3969,8 +3972,8 @@ async function jr({
|
|
|
3969
3972
|
baseUrl: r = Ze,
|
|
3970
3973
|
connection: e,
|
|
3971
3974
|
accessToken: t,
|
|
3972
|
-
query:
|
|
3973
|
-
attribute:
|
|
3975
|
+
query: n,
|
|
3976
|
+
attribute: s,
|
|
3974
3977
|
fetcherOptions: {
|
|
3975
3978
|
signal: o,
|
|
3976
3979
|
...i
|
|
@@ -3979,14 +3982,14 @@ async function jr({
|
|
|
3979
3982
|
params: l,
|
|
3980
3983
|
apiVersion: c = Qe
|
|
3981
3984
|
}) {
|
|
3982
|
-
const h = `${r}/${c}/stats/${e}/${
|
|
3985
|
+
const h = `${r}/${c}/stats/${e}/${s}`;
|
|
3983
3986
|
return qt({
|
|
3984
3987
|
accessToken: t,
|
|
3985
3988
|
signal: o,
|
|
3986
3989
|
url: h,
|
|
3987
3990
|
method: he.get,
|
|
3988
3991
|
params: {
|
|
3989
|
-
q:
|
|
3992
|
+
q: n,
|
|
3990
3993
|
...a,
|
|
3991
3994
|
...l
|
|
3992
3995
|
},
|
|
@@ -3997,8 +4000,8 @@ async function Ir({
|
|
|
3997
4000
|
baseUrl: r = Ze,
|
|
3998
4001
|
connection: e,
|
|
3999
4002
|
accessToken: t,
|
|
4000
|
-
table:
|
|
4001
|
-
attribute:
|
|
4003
|
+
table: n,
|
|
4004
|
+
attribute: s,
|
|
4002
4005
|
params: o,
|
|
4003
4006
|
fetcherOptions: {
|
|
4004
4007
|
signal: i,
|
|
@@ -4006,7 +4009,7 @@ async function Ir({
|
|
|
4006
4009
|
} = {},
|
|
4007
4010
|
apiVersion: l = Qe
|
|
4008
4011
|
}) {
|
|
4009
|
-
const c = `${r}/${l}/stats/${e}/${
|
|
4012
|
+
const c = `${r}/${l}/stats/${e}/${n}/${s}`;
|
|
4010
4013
|
return qt({
|
|
4011
4014
|
accessToken: t,
|
|
4012
4015
|
signal: i,
|
|
@@ -4019,10 +4022,10 @@ async function Ir({
|
|
|
4019
4022
|
});
|
|
4020
4023
|
}
|
|
4021
4024
|
function qo(r) {
|
|
4022
|
-
const e =
|
|
4025
|
+
const e = O(20), {
|
|
4023
4026
|
source: t,
|
|
4024
|
-
attribute:
|
|
4025
|
-
accessToken:
|
|
4027
|
+
attribute: n,
|
|
4028
|
+
accessToken: s,
|
|
4026
4029
|
params: o,
|
|
4027
4030
|
fetcherOptions: i,
|
|
4028
4031
|
useQueryProps: a
|
|
@@ -4035,19 +4038,19 @@ function qo(r) {
|
|
|
4035
4038
|
...h
|
|
4036
4039
|
} = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
|
|
4037
4040
|
const y = c === void 0 ? !0 : c;
|
|
4038
|
-
let
|
|
4039
|
-
e[5] !==
|
|
4041
|
+
let v;
|
|
4042
|
+
e[5] !== n || e[6] !== t ? (v = [t, n], e[5] = n, e[6] = t, e[7] = v) : v = e[7];
|
|
4040
4043
|
let p;
|
|
4041
|
-
e[8] !==
|
|
4044
|
+
e[8] !== s || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Nr({
|
|
4042
4045
|
source: t,
|
|
4043
4046
|
params: o,
|
|
4044
|
-
attribute:
|
|
4045
|
-
accessToken:
|
|
4047
|
+
attribute: n,
|
|
4048
|
+
accessToken: s,
|
|
4046
4049
|
fetcherOptions: i
|
|
4047
|
-
}), e[8] =
|
|
4050
|
+
}), e[8] = s, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
4048
4051
|
let b;
|
|
4049
|
-
return e[14] !== y || e[15] !== t || e[16] !==
|
|
4050
|
-
queryKey:
|
|
4052
|
+
return e[14] !== y || e[15] !== t || e[16] !== v || e[17] !== p || e[18] !== h ? (b = {
|
|
4053
|
+
queryKey: v,
|
|
4051
4054
|
queryFn: p,
|
|
4052
4055
|
select(m) {
|
|
4053
4056
|
return {
|
|
@@ -4057,26 +4060,26 @@ function qo(r) {
|
|
|
4057
4060
|
},
|
|
4058
4061
|
enabled: !!t && y,
|
|
4059
4062
|
...h
|
|
4060
|
-
}, e[14] = y, e[15] = t, e[16] =
|
|
4063
|
+
}, e[14] = y, e[15] = t, e[16] = v, e[17] = p, e[18] = h, e[19] = b) : b = e[19], le(b);
|
|
4061
4064
|
}
|
|
4062
4065
|
function Nr({
|
|
4063
4066
|
source: r,
|
|
4064
4067
|
params: e,
|
|
4065
4068
|
attribute: t,
|
|
4066
|
-
accessToken:
|
|
4067
|
-
fetcherOptions:
|
|
4069
|
+
accessToken: n,
|
|
4070
|
+
fetcherOptions: s
|
|
4068
4071
|
}) {
|
|
4069
4072
|
if (r.type.startsWith("query"))
|
|
4070
4073
|
return jr({
|
|
4071
4074
|
connection: r.connectionName,
|
|
4072
4075
|
baseUrl: r.apiBaseUrl,
|
|
4073
4076
|
apiVersion: r.apiVersion,
|
|
4074
|
-
accessToken:
|
|
4077
|
+
accessToken: n,
|
|
4075
4078
|
params: e,
|
|
4076
4079
|
query: r.data,
|
|
4077
4080
|
queryParameters: r.queryParameters,
|
|
4078
4081
|
attribute: t,
|
|
4079
|
-
fetcherOptions:
|
|
4082
|
+
fetcherOptions: s
|
|
4080
4083
|
});
|
|
4081
4084
|
if (r.type.startsWith("table"))
|
|
4082
4085
|
return Ir({
|
|
@@ -4084,15 +4087,15 @@ function Nr({
|
|
|
4084
4087
|
baseUrl: r.apiBaseUrl,
|
|
4085
4088
|
apiVersion: r.apiVersion,
|
|
4086
4089
|
params: e,
|
|
4087
|
-
accessToken:
|
|
4090
|
+
accessToken: n,
|
|
4088
4091
|
table: r.data,
|
|
4089
4092
|
attribute: t,
|
|
4090
|
-
fetcherOptions:
|
|
4093
|
+
fetcherOptions: s
|
|
4091
4094
|
});
|
|
4092
4095
|
if (r.type.startsWith("tileset"))
|
|
4093
4096
|
return Hr({
|
|
4094
4097
|
source: r,
|
|
4095
|
-
accessToken:
|
|
4098
|
+
accessToken: n,
|
|
4096
4099
|
target: r.data,
|
|
4097
4100
|
attribute: t
|
|
4098
4101
|
});
|
|
@@ -4102,20 +4105,20 @@ async function Hr({
|
|
|
4102
4105
|
source: r,
|
|
4103
4106
|
accessToken: e,
|
|
4104
4107
|
target: t,
|
|
4105
|
-
attribute:
|
|
4108
|
+
attribute: n
|
|
4106
4109
|
}) {
|
|
4107
|
-
const
|
|
4110
|
+
const s = await wn({
|
|
4108
4111
|
connectionName: r.connectionName,
|
|
4109
4112
|
apiBaseUrl: r.apiBaseUrl,
|
|
4110
4113
|
accessToken: e,
|
|
4111
4114
|
clientId: r.clientId,
|
|
4112
4115
|
tableName: t
|
|
4113
4116
|
});
|
|
4114
|
-
if (!
|
|
4115
|
-
throw new Error(`${
|
|
4116
|
-
const i =
|
|
4117
|
+
if (!s?.tilestats?.layers?.[0]?.attributes)
|
|
4118
|
+
throw new Error(`${n} not found in tileset attributes`);
|
|
4119
|
+
const i = s.tilestats.layers[0].attributes.find((a) => a.attribute === n);
|
|
4117
4120
|
if (!i)
|
|
4118
|
-
throw new Error(`${
|
|
4121
|
+
throw new Error(`${n} not found in tileset attributes`);
|
|
4119
4122
|
return i;
|
|
4120
4123
|
}
|
|
4121
4124
|
export {
|
|
@@ -4124,65 +4127,65 @@ export {
|
|
|
4124
4127
|
$e as CartoBasemapURL,
|
|
4125
4128
|
re as CartoBasemaps,
|
|
4126
4129
|
So as CategoriesModel,
|
|
4127
|
-
|
|
4130
|
+
Yn as CustomCompositeEditMode,
|
|
4128
4131
|
kt as CustomEditableGeojsonLayer,
|
|
4129
|
-
|
|
4130
|
-
|
|
4132
|
+
ds as CustomMeasureAreaMode,
|
|
4133
|
+
fs as CustomMeasureBufferMode,
|
|
4131
4134
|
At as CustomMeasureDistanceMode,
|
|
4132
4135
|
tt as DEFAULT_LASSO_TOOLS_COLORS,
|
|
4133
|
-
|
|
4136
|
+
Jn as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4134
4137
|
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4135
4138
|
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
+
Te as DEFAULT_MASK_LAYER_PROPS,
|
|
4140
|
+
hs as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4141
|
+
gs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4139
4142
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
4140
|
-
|
|
4143
|
+
xn as DeckGLComponent,
|
|
4141
4144
|
te as EditableEditType,
|
|
4142
4145
|
wo as FeaturesModel,
|
|
4143
4146
|
_o as FormulaModel,
|
|
4144
4147
|
De as GmapsBasemap,
|
|
4145
4148
|
Mo as HistogramModel,
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4149
|
+
ve as INTL_UNITS,
|
|
4150
|
+
vs as LassoTools,
|
|
4151
|
+
is as LassoToolsProvider,
|
|
4152
|
+
Se as MAPS_BASEMAP,
|
|
4150
4153
|
me as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4151
4154
|
Ce as MAP_MASK_LAYER_ID,
|
|
4152
4155
|
ce as MAP_MEASURE_LAYER_ID,
|
|
4153
|
-
|
|
4156
|
+
ys as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
4154
4157
|
lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
4155
4158
|
X as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
4156
4159
|
go as MapComponent,
|
|
4157
4160
|
Ie as MapMeasurementUnitAuto,
|
|
4158
|
-
|
|
4159
|
-
|
|
4161
|
+
ms as MapMeasurementUnitTurf,
|
|
4162
|
+
Qn as MapProvider,
|
|
4160
4163
|
Co as MapsProvider,
|
|
4161
4164
|
ie as MapsTypes,
|
|
4162
|
-
|
|
4163
|
-
|
|
4165
|
+
Ds as MeasurementTools,
|
|
4166
|
+
Ms as MeasurementToolsProvider,
|
|
4164
4167
|
Eo as RangeModel,
|
|
4165
4168
|
To as ScatterModel,
|
|
4166
4169
|
Lo as TableModel,
|
|
4167
4170
|
Po as TimeSeriesModel,
|
|
4168
4171
|
$o as ZoomControls,
|
|
4169
4172
|
ko as clientID,
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4173
|
+
st as convertMetersTo,
|
|
4174
|
+
os as createLassoToolsStore,
|
|
4175
|
+
Zn as createMapStore,
|
|
4176
|
+
_s as createMeasurementToolsStore,
|
|
4174
4177
|
pe as formatterTypes,
|
|
4175
|
-
|
|
4178
|
+
En as getCursorDefault,
|
|
4176
4179
|
ho as getDeckController,
|
|
4177
4180
|
vo as getFilterValues,
|
|
4178
|
-
|
|
4179
|
-
|
|
4181
|
+
ss as getLassoToolsLayer,
|
|
4182
|
+
Ss as getMeasurementToolsLayer,
|
|
4180
4183
|
Oe as getTextLayerFormattedDistance,
|
|
4181
|
-
|
|
4184
|
+
Tn as getTooltipDefault,
|
|
4182
4185
|
Do as mappingLegendMeridian,
|
|
4183
4186
|
Ro as objectToHtml,
|
|
4184
4187
|
$t as sortLayers,
|
|
4185
|
-
|
|
4188
|
+
Bn as transitionFlyConfig,
|
|
4186
4189
|
br as useCategories,
|
|
4187
4190
|
Pt as useEventManager,
|
|
4188
4191
|
vr as useFeatures,
|
|
@@ -4190,13 +4193,13 @@ export {
|
|
|
4190
4193
|
Sr as useFormula,
|
|
4191
4194
|
wr as useHistogram,
|
|
4192
4195
|
Pr as useLassoToolsSpatialFilter,
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
+
Q as useLassoToolsState,
|
|
4197
|
+
be as useLayerStore,
|
|
4198
|
+
js as useLayers,
|
|
4196
4199
|
Oo as useLegend,
|
|
4197
4200
|
Fo as useMapScreenshot,
|
|
4198
|
-
|
|
4199
|
-
|
|
4201
|
+
q as useMapStore,
|
|
4202
|
+
K as useMeasurementToolsState,
|
|
4200
4203
|
_r as useRange,
|
|
4201
4204
|
Mr as useScatter,
|
|
4202
4205
|
cr as useSource,
|