@carto/ps-react-maps 3.10.5 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Dt = Object.defineProperty;
|
|
2
2
|
var Rt = (r, e, t) => e in r ? Dt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var ee = (r, e, t) => Rt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { c as
|
|
6
|
-
import { useImperativeHandle as Ne, useEffect as
|
|
4
|
+
import { jsx as Z, jsxs as ft } from "react/jsx-runtime";
|
|
5
|
+
import { c as D } from "react/compiler-runtime";
|
|
6
|
+
import { useImperativeHandle as Ne, useEffect as W, useMemo as se, useCallback as K, useState as ne, createContext as He, useContext as Ge, useRef as Ee } from "react";
|
|
7
7
|
import { MapProvider as $t, Map as xt, useMap as Ut } from "react-map-gl/maplibre";
|
|
8
8
|
import Bt from "@deck.gl/react";
|
|
9
9
|
import { useMap as pt, APIProvider as qt, Map as jt } from "@vis.gl/react-google-maps";
|
|
10
10
|
import { GoogleMapsOverlay as Vt } from "@deck.gl/google-maps";
|
|
11
|
-
import { createStore as ze, useStore as
|
|
11
|
+
import { createStore as ze, useStore as Ze, create as mt } from "zustand";
|
|
12
12
|
import { FlyToInterpolator as It, WebMercatorViewport as yt } from "@deck.gl/core";
|
|
13
|
-
import { CompositeMode as Nt, TranslateMode as Ht, ModifyMode as Gt, DrawPolygonByDraggingMode as zt, DrawCircleFromCenterMode as ht, DrawRectangleMode as
|
|
13
|
+
import { CompositeMode as Nt, TranslateMode as Ht, ModifyMode as Gt, DrawPolygonByDraggingMode as zt, DrawCircleFromCenterMode as ht, DrawRectangleMode as Zt, DrawPolygonMode as Qt, EditableGeoJsonLayer as Wt, MeasureAreaMode as Kt, getPickedEditHandle as Yt, MeasureDistanceMode as Xt, ViewMode as Jt } from "@deck.gl-community/editable-layers";
|
|
14
14
|
import { DataFilterExtension as es, MaskExtension as ts } from "@deck.gl/extensions";
|
|
15
15
|
import { EventManager as ss } from "mjolnir.js";
|
|
16
16
|
import { GeoJsonLayer as ns } from "@deck.gl/layers";
|
|
@@ -21,7 +21,7 @@ import as from "convert-units";
|
|
|
21
21
|
import ls from "convert-units/definitions/length";
|
|
22
22
|
import { removeFilter as Xe, addFilter as St, WidgetRasterSource as cs, WidgetTilesetSource as us, TileFormat as ds, WidgetTableSource as fs, WidgetQuerySource as ps, createViewportSpatialFilter as ms, vectorTilesetSource as ys } from "@carto/api-client";
|
|
23
23
|
import { devtools as hs } from "zustand/middleware";
|
|
24
|
-
import { useQuery as
|
|
24
|
+
import { useQuery as re } from "@tanstack/react-query";
|
|
25
25
|
import gs from "html2canvas";
|
|
26
26
|
const Re = {
|
|
27
27
|
roadmap: "roadmap",
|
|
@@ -38,7 +38,7 @@ const Re = {
|
|
|
38
38
|
}, te = {
|
|
39
39
|
maplibre: "maplibre",
|
|
40
40
|
googleMaps: "google-maps"
|
|
41
|
-
},
|
|
41
|
+
}, he = {
|
|
42
42
|
[J.positron]: {
|
|
43
43
|
url: $e[J.positron],
|
|
44
44
|
type: te.maplibre
|
|
@@ -78,66 +78,66 @@ function vs(r) {
|
|
|
78
78
|
} : null;
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
|
-
const e =
|
|
82
|
-
let t, s, n, o, i, a,
|
|
81
|
+
const e = D(39);
|
|
82
|
+
let t, s, n, o, i, a, c, l, y, p, g, u;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
86
86
|
controller: t,
|
|
87
87
|
id: o,
|
|
88
88
|
layers: a,
|
|
89
|
-
mapStyle:
|
|
89
|
+
mapStyle: c,
|
|
90
90
|
parameters: g,
|
|
91
91
|
getCursor: s,
|
|
92
92
|
getTooltip: n,
|
|
93
|
-
onLoad:
|
|
94
|
-
onViewStateChange:
|
|
95
|
-
...
|
|
96
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] =
|
|
93
|
+
onLoad: l,
|
|
94
|
+
onViewStateChange: y,
|
|
95
|
+
...u
|
|
96
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = c, e[8] = l, e[9] = y, e[10] = p, e[11] = g, e[12] = u) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], c = e[7], l = e[8], y = e[9], p = e[10], g = e[11], u = e[12]);
|
|
97
97
|
let m, b;
|
|
98
|
-
e[13] !== a ? (b = a.filter(
|
|
99
|
-
const
|
|
100
|
-
let
|
|
101
|
-
e[15] !==
|
|
98
|
+
e[13] !== a ? (b = a.filter(Ms).map(Ts), e[13] = a, e[14] = b) : b = e[14], m = b;
|
|
99
|
+
const w = m, f = i;
|
|
100
|
+
let h;
|
|
101
|
+
e[15] !== l ? (h = () => l({
|
|
102
102
|
type: "deckgl",
|
|
103
103
|
value: !0
|
|
104
|
-
}), e[15] =
|
|
104
|
+
}), e[15] = l, e[16] = h) : h = e[16];
|
|
105
105
|
let S;
|
|
106
106
|
e[17] !== g ? (S = {
|
|
107
107
|
depthTest: !1,
|
|
108
108
|
...g
|
|
109
109
|
}, e[17] = g, e[18] = S) : S = e[18];
|
|
110
110
|
let M;
|
|
111
|
-
e[19] !== p ? (M = /* @__PURE__ */
|
|
112
|
-
let
|
|
113
|
-
e[21] !==
|
|
111
|
+
e[19] !== p ? (M = /* @__PURE__ */ Z(_s, { overlayRef: p }), e[19] = p, e[20] = M) : M = e[20];
|
|
112
|
+
let T;
|
|
113
|
+
e[21] !== l ? (T = () => l({
|
|
114
114
|
type: "load",
|
|
115
115
|
value: !0
|
|
116
|
-
}), e[21] =
|
|
116
|
+
}), e[21] = l, e[22] = T) : T = e[22];
|
|
117
117
|
let E;
|
|
118
|
-
e[23] !==
|
|
119
|
-
let
|
|
120
|
-
return e[26] !==
|
|
118
|
+
e[23] !== c || e[24] !== T ? (E = /* @__PURE__ */ Z(xt, { reuseMaps: !1, mapStyle: c, onLoad: T, onRender: ws }), e[23] = c, e[24] = T, e[25] = E) : E = e[25];
|
|
119
|
+
let A;
|
|
120
|
+
return e[26] !== w || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== y || e[32] !== u || e[33] !== f || e[34] !== h || e[35] !== S || e[36] !== M || e[37] !== E ? (A = /* @__PURE__ */ Z($t, { children: /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(Bt, { controller: t, id: o, ref: f, layers: w, getCursor: s, getTooltip: n, onLoad: h, onViewStateChange: y, parameters: S, ...u, children: [
|
|
121
121
|
M,
|
|
122
122
|
E
|
|
123
|
-
] }) }) }), e[26] =
|
|
123
|
+
] }) }) }), e[26] = w, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = y, e[32] = u, e[33] = f, e[34] = h, e[35] = S, e[36] = M, e[37] = E, e[38] = A) : A = e[38], A;
|
|
124
124
|
}
|
|
125
125
|
function ws() {
|
|
126
126
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
127
127
|
r == null || r.classList.remove("maplibregl-compact-show");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ts(r) {
|
|
130
130
|
const {
|
|
131
131
|
type: e,
|
|
132
132
|
props: t
|
|
133
133
|
} = r;
|
|
134
134
|
return new e(t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Ms(r) {
|
|
137
137
|
return !!(r != null && r.type);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
const e =
|
|
139
|
+
function _s(r) {
|
|
140
|
+
const e = D(3), {
|
|
141
141
|
overlayRef: t
|
|
142
142
|
} = r, {
|
|
143
143
|
default: s
|
|
@@ -145,8 +145,8 @@ function Es(r) {
|
|
|
145
145
|
let n, o;
|
|
146
146
|
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
const e =
|
|
148
|
+
const Es = (r) => {
|
|
149
|
+
const e = D(9);
|
|
150
150
|
let t, s;
|
|
151
151
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new Vt({
|
|
152
152
|
interleaved: !0
|
|
@@ -154,16 +154,16 @@ const _s = (r) => {
|
|
|
154
154
|
const n = t, o = pt();
|
|
155
155
|
let i, a;
|
|
156
156
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => n, a = [n], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
|
|
157
|
-
let
|
|
158
|
-
e[3] !== o ? (
|
|
157
|
+
let c, l;
|
|
158
|
+
e[3] !== o ? (c = () => (n.setMap(o), () => {
|
|
159
159
|
n.finalize();
|
|
160
|
-
}),
|
|
161
|
-
let
|
|
162
|
-
return e[6] !== r ? (
|
|
160
|
+
}), l = [n, o], e[3] = o, e[4] = c, e[5] = l) : (c = e[4], l = e[5]), W(c, l);
|
|
161
|
+
let y, p;
|
|
162
|
+
return e[6] !== r ? (y = () => {
|
|
163
163
|
n.setProps(r);
|
|
164
|
-
}, p = [n, r], e[6] = r, e[7] =
|
|
164
|
+
}, p = [n, r], e[6] = r, e[7] = y, e[8] = p) : (y = e[7], p = e[8]), W(y, p), null;
|
|
165
165
|
};
|
|
166
|
-
function
|
|
166
|
+
function Ps({
|
|
167
167
|
id: r,
|
|
168
168
|
instanceRef: e,
|
|
169
169
|
basemap: t,
|
|
@@ -176,148 +176,233 @@ function Ls({
|
|
|
176
176
|
apiKey: ""
|
|
177
177
|
},
|
|
178
178
|
overlayRef: a,
|
|
179
|
-
parameters:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
parameters: c,
|
|
180
|
+
controller: l,
|
|
181
|
+
onLoad: y,
|
|
182
|
+
onViewStateChange: p,
|
|
183
|
+
...g
|
|
183
184
|
}) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
var f, h, S, M, T;
|
|
186
|
+
const u = se(() => typeof l == "boolean" ? {
|
|
187
|
+
dragPan: l,
|
|
188
|
+
doubleClickZoom: l,
|
|
189
|
+
scrollZoom: l
|
|
190
|
+
} : l ?? {}, [l]), m = se(() => s.filter((E) => !!(E != null && E.type)).map(({
|
|
191
|
+
type: E,
|
|
192
|
+
props: A
|
|
193
|
+
}) => new E(A)), [s]), b = K(({
|
|
189
194
|
detail: {
|
|
190
|
-
center:
|
|
191
|
-
zoom:
|
|
192
|
-
heading:
|
|
193
|
-
tilt:
|
|
195
|
+
center: E,
|
|
196
|
+
zoom: A,
|
|
197
|
+
heading: U,
|
|
198
|
+
tilt: F
|
|
194
199
|
}
|
|
195
200
|
}) => ({
|
|
196
|
-
latitude:
|
|
197
|
-
longitude:
|
|
198
|
-
zoom:
|
|
199
|
-
bearing:
|
|
200
|
-
pitch:
|
|
201
|
-
}), []),
|
|
202
|
-
const
|
|
201
|
+
latitude: E.lat,
|
|
202
|
+
longitude: E.lng,
|
|
203
|
+
zoom: A - 1,
|
|
204
|
+
bearing: U,
|
|
205
|
+
pitch: F
|
|
206
|
+
}), []), w = K((E) => {
|
|
207
|
+
const A = e == null ? void 0 : e.current, U = A == null ? void 0 : A._deck, F = {
|
|
203
208
|
// @ts-expect-error accessing protected props
|
|
204
|
-
...
|
|
205
|
-
...
|
|
206
|
-
},
|
|
207
|
-
latitude:
|
|
208
|
-
longitude:
|
|
209
|
-
zoom:
|
|
210
|
-
pitch:
|
|
211
|
-
bearing:
|
|
209
|
+
...U == null ? void 0 : U.viewState,
|
|
210
|
+
...E
|
|
211
|
+
}, q = {
|
|
212
|
+
latitude: F.latitude,
|
|
213
|
+
longitude: F.longitude,
|
|
214
|
+
zoom: F.zoom,
|
|
215
|
+
pitch: F.pitch,
|
|
216
|
+
bearing: F.bearing,
|
|
212
217
|
// @ts-expect-error - `width` and `height` is not in the types
|
|
213
|
-
width:
|
|
214
|
-
height:
|
|
218
|
+
width: U == null ? void 0 : U.width,
|
|
219
|
+
height: U == null ? void 0 : U.height
|
|
215
220
|
};
|
|
216
|
-
|
|
217
|
-
viewState:
|
|
221
|
+
p == null || p({
|
|
222
|
+
viewState: q,
|
|
218
223
|
interactionState: {
|
|
219
224
|
isZooming: !0
|
|
220
225
|
}
|
|
221
226
|
});
|
|
222
|
-
}, [e,
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
lat: ((
|
|
225
|
-
lng: ((
|
|
226
|
-
}, zoom: (((
|
|
227
|
-
|
|
227
|
+
}, [e, p]);
|
|
228
|
+
return /* @__PURE__ */ Z(qt, { apiKey: n, ...o, children: /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, ...i, center: {
|
|
229
|
+
lat: ((f = g.initialViewState) == null ? void 0 : f.latitude) ?? 0,
|
|
230
|
+
lng: ((h = g.initialViewState) == null ? void 0 : h.longitude) ?? 0
|
|
231
|
+
}, zoom: (((S = g.initialViewState) == null ? void 0 : S.zoom) ?? 0) + 1, tilt: (M = g.initialViewState) == null ? void 0 : M.pitch, heading: (T = g.initialViewState) == null ? void 0 : T.bearing, onTilesLoaded: () => {
|
|
232
|
+
y({
|
|
228
233
|
type: "load",
|
|
229
234
|
value: !0
|
|
230
|
-
}),
|
|
231
|
-
}, onBoundsChanged: (
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
|
|
235
|
+
}), w(g.initialViewState);
|
|
236
|
+
}, onBoundsChanged: (E) => w(b(E)), onZoomChanged: (E) => w(b(E)), scrollwheel: typeof u.scrollZoom == "boolean" ? u.scrollZoom : !!u.scrollZoom, gestureHandling: u.dragPan ? "greedy" : "none", disableDoubleClickZoom: !u.doubleClickZoom, children: [
|
|
237
|
+
/* @__PURE__ */ Z(Ls, { id: r, overlayRef: a }),
|
|
238
|
+
/* @__PURE__ */ Z(Es, { id: r, instanceRef: e, layers: m, onLoad: () => {
|
|
239
|
+
y({
|
|
235
240
|
type: "deckgl",
|
|
236
241
|
value: !0
|
|
237
242
|
});
|
|
238
243
|
}, parameters: {
|
|
239
244
|
// @ts-expect-error - `depthTest` is not in the types
|
|
240
245
|
depthTest: !1,
|
|
241
|
-
...
|
|
242
|
-
}, ...
|
|
246
|
+
...c
|
|
247
|
+
}, ...g })
|
|
243
248
|
] }) }) });
|
|
244
249
|
}
|
|
245
|
-
function
|
|
246
|
-
const e =
|
|
250
|
+
function Ls(r) {
|
|
251
|
+
const e = D(3), {
|
|
247
252
|
id: t,
|
|
248
253
|
overlayRef: s
|
|
249
254
|
} = r, n = pt(t);
|
|
250
255
|
let o, i;
|
|
251
256
|
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
|
|
252
257
|
}
|
|
253
|
-
function
|
|
254
|
-
const e =
|
|
255
|
-
let t, s, n, o, i, a,
|
|
258
|
+
function Cs(r) {
|
|
259
|
+
const e = D(46);
|
|
260
|
+
let t, s, n, o, i, a, c, l, y, p, g, u;
|
|
256
261
|
e[0] !== r ? ({
|
|
257
262
|
instanceRef: s,
|
|
258
263
|
overlayRef: o,
|
|
259
264
|
basemap: a,
|
|
260
|
-
controller:
|
|
261
|
-
id:
|
|
262
|
-
layers:
|
|
265
|
+
controller: c,
|
|
266
|
+
id: l,
|
|
267
|
+
layers: y,
|
|
263
268
|
gmapsProps: t,
|
|
264
269
|
getCursor: p,
|
|
265
270
|
getTooltip: g,
|
|
266
271
|
onLoad: n,
|
|
267
|
-
onViewStateChange:
|
|
272
|
+
onViewStateChange: u,
|
|
268
273
|
...i
|
|
269
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] =
|
|
270
|
-
const m = a === void 0 ? J.positron : a, b =
|
|
271
|
-
let
|
|
272
|
-
e[13] !==
|
|
273
|
-
const
|
|
274
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = c, e[8] = l, e[9] = y, e[10] = p, e[11] = g, e[12] = u) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], c = e[7], l = e[8], y = e[9], p = e[10], g = e[11], u = e[12]);
|
|
275
|
+
const m = a === void 0 ? J.positron : a, b = c === void 0 ? !0 : c, w = l === void 0 ? "deck-gl-map" : l;
|
|
276
|
+
let f;
|
|
277
|
+
e[13] !== y ? (f = y === void 0 ? [] : y, e[13] = y, e[14] = f) : f = e[14];
|
|
278
|
+
const h = f, S = p === void 0 ? bs : p, M = g === void 0 ? vs : g, T = u === void 0 ? ks : u;
|
|
274
279
|
let E;
|
|
275
280
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (E = [!1, !1], e[15] = E) : E = e[15];
|
|
276
|
-
const [
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
e[
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
let v, L;
|
|
290
|
-
e[19] === Symbol.for("react.memo_cache_sentinel") ? (v = () => () => {
|
|
291
|
-
d({
|
|
281
|
+
const [A, U] = ne(E), {
|
|
282
|
+
url: F,
|
|
283
|
+
type: q
|
|
284
|
+
} = he[m], N = q === te.googleMaps;
|
|
285
|
+
let B;
|
|
286
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (B = (O) => {
|
|
287
|
+
const C = O.type === "deckgl" ? 0 : 1;
|
|
288
|
+
U(($) => $.map((V, I) => I === C ? O.value : V));
|
|
289
|
+
}, e[16] = B) : B = e[16];
|
|
290
|
+
const _ = B;
|
|
291
|
+
let L, d;
|
|
292
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (L = () => () => {
|
|
293
|
+
_({
|
|
292
294
|
type: "load",
|
|
293
295
|
value: !1
|
|
294
|
-
}),
|
|
296
|
+
}), _({
|
|
295
297
|
type: "deckgl",
|
|
296
298
|
value: !1
|
|
297
299
|
});
|
|
298
|
-
},
|
|
299
|
-
let
|
|
300
|
-
if (e[
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
|
|
300
|
+
}, d = [_], e[17] = L, e[18] = d) : (L = e[17], d = e[18]), W(L, d);
|
|
301
|
+
let v, P;
|
|
302
|
+
if (e[19] !== A || e[20] !== n ? (v = () => {
|
|
303
|
+
const O = A.every(Os);
|
|
304
|
+
n == null || n(O);
|
|
305
|
+
}, P = [A, n], e[19] = A, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), W(v, P), N) {
|
|
306
|
+
let O;
|
|
307
|
+
return e[23] !== m || e[24] !== b || e[25] !== S || e[26] !== M || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== h || e[31] !== T || e[32] !== o || e[33] !== i ? (O = /* @__PURE__ */ Z(Ps, { instanceRef: s, overlayRef: o, controller: b, id: w, basemap: m, layers: h, gmapsProps: t, getCursor: S, getTooltip: M, onLoad: _, onViewStateChange: T, ...i }), e[23] = m, e[24] = b, e[25] = S, e[26] = M, e[27] = t, e[28] = w, e[29] = s, e[30] = h, e[31] = T, e[32] = o, e[33] = i, e[34] = O) : O = e[34], O;
|
|
308
|
+
}
|
|
309
|
+
let k;
|
|
310
|
+
return e[35] !== b || e[36] !== S || e[37] !== M || e[38] !== w || e[39] !== s || e[40] !== h || e[41] !== F || e[42] !== T || e[43] !== o || e[44] !== i ? (k = /* @__PURE__ */ Z(Ss, { instanceRef: s, overlayRef: o, controller: b, id: w, layers: h, mapStyle: F, getCursor: S, getTooltip: M, onLoad: _, onViewStateChange: T, ...i }), e[35] = b, e[36] = S, e[37] = M, e[38] = w, e[39] = s, e[40] = h, e[41] = F, e[42] = T, e[43] = o, e[44] = i, e[45] = k) : k = e[45], k;
|
|
311
|
+
}
|
|
312
|
+
function Os(r) {
|
|
310
313
|
return r;
|
|
311
314
|
}
|
|
312
|
-
function
|
|
315
|
+
function ks() {
|
|
313
316
|
return null;
|
|
314
317
|
}
|
|
315
|
-
const
|
|
318
|
+
const Fs = {
|
|
316
319
|
transitionDuration: "auto",
|
|
317
320
|
transitionInterpolator: new It({
|
|
318
321
|
curve: 2
|
|
319
322
|
})
|
|
320
|
-
}
|
|
323
|
+
};
|
|
324
|
+
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
325
|
+
function wt(r) {
|
|
326
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
327
|
+
}
|
|
328
|
+
var xe, Je;
|
|
329
|
+
function As() {
|
|
330
|
+
if (Je) return xe;
|
|
331
|
+
Je = 1;
|
|
332
|
+
var r = function(h) {
|
|
333
|
+
return e(h) && !t(h);
|
|
334
|
+
};
|
|
335
|
+
function e(f) {
|
|
336
|
+
return !!f && typeof f == "object";
|
|
337
|
+
}
|
|
338
|
+
function t(f) {
|
|
339
|
+
var h = Object.prototype.toString.call(f);
|
|
340
|
+
return h === "[object RegExp]" || h === "[object Date]" || o(f);
|
|
341
|
+
}
|
|
342
|
+
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
343
|
+
function o(f) {
|
|
344
|
+
return f.$$typeof === n;
|
|
345
|
+
}
|
|
346
|
+
function i(f) {
|
|
347
|
+
return Array.isArray(f) ? [] : {};
|
|
348
|
+
}
|
|
349
|
+
function a(f, h) {
|
|
350
|
+
return h.clone !== !1 && h.isMergeableObject(f) ? b(i(f), f, h) : f;
|
|
351
|
+
}
|
|
352
|
+
function c(f, h, S) {
|
|
353
|
+
return f.concat(h).map(function(M) {
|
|
354
|
+
return a(M, S);
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
function l(f, h) {
|
|
358
|
+
if (!h.customMerge)
|
|
359
|
+
return b;
|
|
360
|
+
var S = h.customMerge(f);
|
|
361
|
+
return typeof S == "function" ? S : b;
|
|
362
|
+
}
|
|
363
|
+
function y(f) {
|
|
364
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(h) {
|
|
365
|
+
return Object.propertyIsEnumerable.call(f, h);
|
|
366
|
+
}) : [];
|
|
367
|
+
}
|
|
368
|
+
function p(f) {
|
|
369
|
+
return Object.keys(f).concat(y(f));
|
|
370
|
+
}
|
|
371
|
+
function g(f, h) {
|
|
372
|
+
try {
|
|
373
|
+
return h in f;
|
|
374
|
+
} catch {
|
|
375
|
+
return !1;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
function u(f, h) {
|
|
379
|
+
return g(f, h) && !(Object.hasOwnProperty.call(f, h) && Object.propertyIsEnumerable.call(f, h));
|
|
380
|
+
}
|
|
381
|
+
function m(f, h, S) {
|
|
382
|
+
var M = {};
|
|
383
|
+
return S.isMergeableObject(f) && p(f).forEach(function(T) {
|
|
384
|
+
M[T] = a(f[T], S);
|
|
385
|
+
}), p(h).forEach(function(T) {
|
|
386
|
+
u(f, T) || (g(f, T) && S.isMergeableObject(h[T]) ? M[T] = l(T, S)(f[T], h[T], S) : M[T] = a(h[T], S));
|
|
387
|
+
}), M;
|
|
388
|
+
}
|
|
389
|
+
function b(f, h, S) {
|
|
390
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || c, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
391
|
+
var M = Array.isArray(h), T = Array.isArray(f), E = M === T;
|
|
392
|
+
return E ? M ? S.arrayMerge(f, h, S) : m(f, h, S) : a(h, S);
|
|
393
|
+
}
|
|
394
|
+
b.all = function(h, S) {
|
|
395
|
+
if (!Array.isArray(h))
|
|
396
|
+
throw new Error("first argument should be an array");
|
|
397
|
+
return h.reduce(function(M, T) {
|
|
398
|
+
return b(M, T, S);
|
|
399
|
+
}, {});
|
|
400
|
+
};
|
|
401
|
+
var w = b;
|
|
402
|
+
return xe = w, xe;
|
|
403
|
+
}
|
|
404
|
+
var Ds = As();
|
|
405
|
+
const ie = /* @__PURE__ */ wt(Ds), Rs = (r) => {
|
|
321
406
|
const e = r.reduce((t, s) => {
|
|
322
407
|
const {
|
|
323
408
|
id: n,
|
|
@@ -332,24 +417,25 @@ const ks = {
|
|
|
332
417
|
overlayRef: {
|
|
333
418
|
current: null
|
|
334
419
|
},
|
|
335
|
-
layers: s.layers ?? []
|
|
420
|
+
layers: s.layers ?? [],
|
|
421
|
+
controller: s.controller ?? !0
|
|
336
422
|
}, t;
|
|
337
423
|
}, {});
|
|
338
424
|
return (t, s) => ({
|
|
339
425
|
maps: e,
|
|
340
426
|
setBasemap: (n, o) => t((i) => {
|
|
341
|
-
var
|
|
427
|
+
var y;
|
|
342
428
|
const {
|
|
343
429
|
type: a
|
|
344
|
-
} =
|
|
345
|
-
type:
|
|
346
|
-
} =
|
|
430
|
+
} = he[i.maps[n].basemap], {
|
|
431
|
+
type: c
|
|
432
|
+
} = he[o], l = a === c && !!((y = i.maps[n]) != null && y.isLoaded);
|
|
347
433
|
return {
|
|
348
434
|
maps: {
|
|
349
435
|
...i.maps,
|
|
350
436
|
[n]: {
|
|
351
437
|
...i.maps[n],
|
|
352
|
-
isLoaded:
|
|
438
|
+
isLoaded: l,
|
|
353
439
|
basemap: o
|
|
354
440
|
}
|
|
355
441
|
}
|
|
@@ -369,8 +455,8 @@ const ks = {
|
|
|
369
455
|
return (a = (i = s().maps[n]) == null ? void 0 : i.overlayRef) == null ? void 0 : a.current;
|
|
370
456
|
},
|
|
371
457
|
getDeckInstance: (n) => {
|
|
372
|
-
var a,
|
|
373
|
-
const i = (
|
|
458
|
+
var a, c;
|
|
459
|
+
const i = (c = (a = s().maps[n]) == null ? void 0 : a.instanceRef) == null ? void 0 : c.current;
|
|
374
460
|
return (
|
|
375
461
|
// @ts-expect-error accessing protected props
|
|
376
462
|
(i == null ? void 0 : i.deck) ?? i._deck
|
|
@@ -385,46 +471,59 @@ const ks = {
|
|
|
385
471
|
return a == null ? void 0 : a.getViewports(o);
|
|
386
472
|
},
|
|
387
473
|
getViewport: (n, o = 0, i) => {
|
|
388
|
-
var
|
|
389
|
-
const
|
|
390
|
-
return (
|
|
474
|
+
var l;
|
|
475
|
+
const c = s().getDeckInstance(n);
|
|
476
|
+
return (l = c == null ? void 0 : c.getViewports(i)) == null ? void 0 : l[o];
|
|
391
477
|
},
|
|
392
478
|
getBounds: (n, o, i) => {
|
|
393
479
|
var p, g;
|
|
394
480
|
const a = s();
|
|
395
481
|
if (!((g = (p = a.maps) == null ? void 0 : p[n]) != null && g.isLoaded)) return;
|
|
396
|
-
const
|
|
397
|
-
return
|
|
398
|
-
...new yt(
|
|
482
|
+
const c = a.getViewState(n);
|
|
483
|
+
return c ? {
|
|
484
|
+
...new yt(c).fitBounds(o, i == null ? void 0 : i.boundsOptions),
|
|
399
485
|
...i == null ? void 0 : i.viewStateOptions
|
|
400
486
|
} : void 0;
|
|
401
487
|
},
|
|
402
488
|
addLayers: (n, o) => t((i) => {
|
|
403
|
-
var
|
|
489
|
+
var y;
|
|
404
490
|
const a = {
|
|
405
491
|
...i.maps
|
|
406
|
-
},
|
|
492
|
+
}, c = ((y = a[n]) == null ? void 0 : y.layers) ?? [], l = /* @__PURE__ */ new Set([...c, ...o]);
|
|
407
493
|
return a[n] = {
|
|
408
494
|
...a[n],
|
|
409
|
-
layers: [...
|
|
495
|
+
layers: [...l]
|
|
410
496
|
}, {
|
|
411
497
|
maps: a
|
|
412
498
|
};
|
|
413
499
|
}),
|
|
414
500
|
removeLayers: (n, o) => t((i) => {
|
|
415
|
-
var
|
|
501
|
+
var l;
|
|
416
502
|
const a = {
|
|
417
503
|
...i.maps
|
|
418
|
-
},
|
|
504
|
+
}, c = ((l = a[n]) == null ? void 0 : l.layers) ?? [];
|
|
419
505
|
return a[n] = {
|
|
420
506
|
...a[n],
|
|
421
|
-
layers:
|
|
507
|
+
layers: c.filter((y) => !o.includes(y))
|
|
422
508
|
}, {
|
|
423
509
|
maps: a
|
|
424
510
|
};
|
|
511
|
+
}),
|
|
512
|
+
setController: (n, o) => t((i) => {
|
|
513
|
+
var y;
|
|
514
|
+
const a = ((y = i.maps[n]) == null ? void 0 : y.controller) ?? {}, l = !o || typeof o == "boolean" ? o : ie(typeof a == "boolean" ? {} : a, o);
|
|
515
|
+
return {
|
|
516
|
+
maps: {
|
|
517
|
+
...i.maps,
|
|
518
|
+
[n]: {
|
|
519
|
+
...i.maps[n],
|
|
520
|
+
controller: l
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
};
|
|
425
524
|
})
|
|
426
525
|
});
|
|
427
|
-
},
|
|
526
|
+
}, $s = (r) => {
|
|
428
527
|
const e = r.reduce((t, s) => {
|
|
429
528
|
const {
|
|
430
529
|
id: n
|
|
@@ -440,7 +539,7 @@ const ks = {
|
|
|
440
539
|
}
|
|
441
540
|
}))
|
|
442
541
|
});
|
|
443
|
-
},
|
|
542
|
+
}, xs = (r) => {
|
|
444
543
|
const e = r.reduce((t, s) => {
|
|
445
544
|
const n = s.initialViewState ?? s.viewState;
|
|
446
545
|
return t.initialViewStates[s.id] = n, t.viewStates[s.id] = n, t.viewports[s.id] = null, t;
|
|
@@ -457,9 +556,9 @@ const ks = {
|
|
|
457
556
|
const o = s();
|
|
458
557
|
if (!((a = o.maps[n]) != null && a.isLoaded)) return;
|
|
459
558
|
const i = new yt(o.viewStates[n]);
|
|
460
|
-
t((
|
|
559
|
+
t((c) => ({
|
|
461
560
|
viewports: {
|
|
462
|
-
...
|
|
561
|
+
...c.viewports,
|
|
463
562
|
[n]: i
|
|
464
563
|
}
|
|
465
564
|
}));
|
|
@@ -508,14 +607,14 @@ const ks = {
|
|
|
508
607
|
}
|
|
509
608
|
}))
|
|
510
609
|
});
|
|
511
|
-
},
|
|
610
|
+
}, Us = (r, e) => ({
|
|
512
611
|
fitBounds: (t, s, n) => {
|
|
513
612
|
const o = e(), i = o.getBounds(t, s, n);
|
|
514
613
|
i && (o.setViewState(t, i), o.updateViewPort(t));
|
|
515
614
|
},
|
|
516
615
|
flyTo: (t, s, n = {}) => {
|
|
517
616
|
const o = e(), i = {
|
|
518
|
-
...
|
|
617
|
+
...Fs,
|
|
519
618
|
...n == null ? void 0 : n.viewStateOptions
|
|
520
619
|
}, a = {
|
|
521
620
|
...s,
|
|
@@ -535,7 +634,7 @@ const ks = {
|
|
|
535
634
|
const s = e(), n = s.initialViewStates;
|
|
536
635
|
n[t] && s.flyTo(t, n[t]);
|
|
537
636
|
}
|
|
538
|
-
}),
|
|
637
|
+
}), Bs = (r) => {
|
|
539
638
|
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
540
639
|
return (t) => ({
|
|
541
640
|
spatialFilter: e,
|
|
@@ -551,50 +650,50 @@ const ks = {
|
|
|
551
650
|
});
|
|
552
651
|
}
|
|
553
652
|
});
|
|
554
|
-
},
|
|
555
|
-
...As(r)(...e),
|
|
556
|
-
...Ds(r)(...e),
|
|
653
|
+
}, qs = (r) => ze()((...e) => ({
|
|
557
654
|
...Rs(r)(...e),
|
|
655
|
+
...$s(r)(...e),
|
|
558
656
|
...xs(r)(...e),
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
657
|
+
...Bs(r)(...e),
|
|
658
|
+
...Us(...e)
|
|
659
|
+
})), Tt = He({});
|
|
660
|
+
function js(r) {
|
|
661
|
+
const e = D(5), {
|
|
563
662
|
children: t,
|
|
564
663
|
values: s
|
|
565
664
|
} = r;
|
|
566
665
|
let n;
|
|
567
|
-
e[0] !== s ? (n =
|
|
568
|
-
const [o] =
|
|
666
|
+
e[0] !== s ? (n = qs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
667
|
+
const [o] = ne(n);
|
|
569
668
|
let i;
|
|
570
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
669
|
+
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;
|
|
571
670
|
}
|
|
572
|
-
function
|
|
573
|
-
const e = Ge(
|
|
671
|
+
function x(r) {
|
|
672
|
+
const e = Ge(Tt);
|
|
574
673
|
if (!Object.keys(e).length)
|
|
575
674
|
throw new Error("Missing MapProvider in the tree");
|
|
576
|
-
return
|
|
675
|
+
return Ze(e, r);
|
|
577
676
|
}
|
|
578
|
-
function
|
|
579
|
-
const e =
|
|
677
|
+
function Jr(r) {
|
|
678
|
+
const e = D(9), {
|
|
580
679
|
children: t,
|
|
581
680
|
mapId: s
|
|
582
681
|
} = r;
|
|
583
682
|
let n;
|
|
584
|
-
e[0] !== s ? (n = (
|
|
683
|
+
e[0] !== s ? (n = (y) => y.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
585
684
|
const {
|
|
586
685
|
basemap: o
|
|
587
|
-
} =
|
|
686
|
+
} = x(n), i = x(Vs);
|
|
588
687
|
let a;
|
|
589
|
-
e[2] !== s || e[3] !== i ? (a = (
|
|
590
|
-
const
|
|
591
|
-
let
|
|
592
|
-
return e[5] !== o || e[6] !== t || e[7] !==
|
|
688
|
+
e[2] !== s || e[3] !== i ? (a = (y) => i(s, y), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
689
|
+
const c = a;
|
|
690
|
+
let l;
|
|
691
|
+
return e[5] !== o || e[6] !== t || e[7] !== c ? (l = t({
|
|
593
692
|
basemap: o,
|
|
594
|
-
setBasemap:
|
|
595
|
-
}), e[5] = o, e[6] = t, e[7] =
|
|
693
|
+
setBasemap: c
|
|
694
|
+
}), e[5] = o, e[6] = t, e[7] = c, e[8] = l) : l = e[8], l;
|
|
596
695
|
}
|
|
597
|
-
function
|
|
696
|
+
function Vs(r) {
|
|
598
697
|
return r.setBasemap;
|
|
599
698
|
}
|
|
600
699
|
const X = {
|
|
@@ -605,7 +704,7 @@ const X = {
|
|
|
605
704
|
finish: "finish",
|
|
606
705
|
addPosition: "addPosition"
|
|
607
706
|
};
|
|
608
|
-
class
|
|
707
|
+
class Is extends Nt {
|
|
609
708
|
constructor() {
|
|
610
709
|
super([new Ht(), new Gt()]);
|
|
611
710
|
}
|
|
@@ -617,8 +716,8 @@ class js extends Nt {
|
|
|
617
716
|
}));
|
|
618
717
|
}
|
|
619
718
|
}
|
|
620
|
-
const
|
|
621
|
-
id:
|
|
719
|
+
const ue = "lassoLayer", Le = "maskLayer", Ns = {
|
|
720
|
+
id: ue,
|
|
622
721
|
billboard: !1,
|
|
623
722
|
editHandlePointRadiusUnits: "pixels",
|
|
624
723
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -630,7 +729,7 @@ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
|
|
|
630
729
|
lineWidthUnits: "pixels",
|
|
631
730
|
getLineWidth: 2,
|
|
632
731
|
lineWidthMinPixels: 2
|
|
633
|
-
},
|
|
732
|
+
}, et = {
|
|
634
733
|
editing: {
|
|
635
734
|
border: [3, 111, 226, 255],
|
|
636
735
|
fill: [3, 111, 226, 20.4],
|
|
@@ -640,33 +739,33 @@ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
|
|
|
640
739
|
border: [71, 219, 153, 255],
|
|
641
740
|
fill: [71, 219, 153, 0]
|
|
642
741
|
}
|
|
643
|
-
},
|
|
742
|
+
}, Ue = {
|
|
644
743
|
styles: {
|
|
645
744
|
colors: {
|
|
646
|
-
editing:
|
|
647
|
-
finished:
|
|
745
|
+
editing: et.editing,
|
|
746
|
+
finished: et.finished
|
|
648
747
|
}
|
|
649
748
|
},
|
|
650
749
|
labels: {
|
|
651
750
|
mask: "Mask"
|
|
652
751
|
}
|
|
653
|
-
},
|
|
752
|
+
}, Hs = [new es({
|
|
654
753
|
filterSize: 1
|
|
655
754
|
})], Me = {
|
|
656
|
-
id:
|
|
755
|
+
id: Le,
|
|
657
756
|
operation: "mask",
|
|
658
757
|
pickable: !1,
|
|
659
758
|
visible: !0,
|
|
660
|
-
extensions:
|
|
759
|
+
extensions: Hs,
|
|
661
760
|
filterRange: [1, 1]
|
|
662
|
-
},
|
|
761
|
+
}, Be = {
|
|
663
762
|
polygon: {
|
|
664
763
|
value: "polygon",
|
|
665
|
-
mode:
|
|
764
|
+
mode: Qt
|
|
666
765
|
},
|
|
667
766
|
rectangle: {
|
|
668
767
|
value: "rectangle",
|
|
669
|
-
mode:
|
|
768
|
+
mode: Zt
|
|
670
769
|
},
|
|
671
770
|
circle: {
|
|
672
771
|
value: "circle",
|
|
@@ -678,12 +777,12 @@ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
|
|
|
678
777
|
},
|
|
679
778
|
edit: {
|
|
680
779
|
value: "edit",
|
|
681
|
-
mode:
|
|
780
|
+
mode: Is
|
|
682
781
|
}
|
|
683
|
-
},
|
|
782
|
+
}, me = mt((r) => ({
|
|
684
783
|
layers: {},
|
|
685
784
|
setLayer: (e, t) => r((s) => {
|
|
686
|
-
var
|
|
785
|
+
var c, l;
|
|
687
786
|
const n = {
|
|
688
787
|
...s.layers
|
|
689
788
|
};
|
|
@@ -694,7 +793,7 @@ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
|
|
|
694
793
|
const o = n[e] ?? {
|
|
695
794
|
type: null,
|
|
696
795
|
props: {}
|
|
697
|
-
}, i = [...o.props.extensions ?? [], ...((
|
|
796
|
+
}, i = [...o.props.extensions ?? [], ...((c = t.props) == null ? void 0 : c.extensions) ?? []].reduce((y, p) => (y.some((g) => g.equals(p)) || y.push(p), y), []), a = o.legend || t.legend ? {
|
|
698
797
|
...o.legend,
|
|
699
798
|
...t.legend
|
|
700
799
|
} : void 0;
|
|
@@ -707,7 +806,7 @@ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
|
|
|
707
806
|
...t.props,
|
|
708
807
|
updateTriggers: {
|
|
709
808
|
...o.props.updateTriggers ?? {},
|
|
710
|
-
...((
|
|
809
|
+
...((l = t.props) == null ? void 0 : l.updateTriggers) ?? {}
|
|
711
810
|
},
|
|
712
811
|
extensions: i
|
|
713
812
|
},
|
|
@@ -724,90 +823,8 @@ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
|
|
|
724
823
|
layers: s
|
|
725
824
|
};
|
|
726
825
|
})
|
|
727
|
-
}));
|
|
728
|
-
|
|
729
|
-
function Mt(r) {
|
|
730
|
-
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
731
|
-
}
|
|
732
|
-
var Be, et;
|
|
733
|
-
function Ns() {
|
|
734
|
-
if (et) return Be;
|
|
735
|
-
et = 1;
|
|
736
|
-
var r = function(y) {
|
|
737
|
-
return e(y) && !t(y);
|
|
738
|
-
};
|
|
739
|
-
function e(u) {
|
|
740
|
-
return !!u && typeof u == "object";
|
|
741
|
-
}
|
|
742
|
-
function t(u) {
|
|
743
|
-
var y = Object.prototype.toString.call(u);
|
|
744
|
-
return y === "[object RegExp]" || y === "[object Date]" || o(u);
|
|
745
|
-
}
|
|
746
|
-
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
747
|
-
function o(u) {
|
|
748
|
-
return u.$$typeof === n;
|
|
749
|
-
}
|
|
750
|
-
function i(u) {
|
|
751
|
-
return Array.isArray(u) ? [] : {};
|
|
752
|
-
}
|
|
753
|
-
function a(u, y) {
|
|
754
|
-
return y.clone !== !1 && y.isMergeableObject(u) ? b(i(u), u, y) : u;
|
|
755
|
-
}
|
|
756
|
-
function l(u, y, S) {
|
|
757
|
-
return u.concat(y).map(function(M) {
|
|
758
|
-
return a(M, S);
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
function c(u, y) {
|
|
762
|
-
if (!y.customMerge)
|
|
763
|
-
return b;
|
|
764
|
-
var S = y.customMerge(u);
|
|
765
|
-
return typeof S == "function" ? S : b;
|
|
766
|
-
}
|
|
767
|
-
function h(u) {
|
|
768
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(y) {
|
|
769
|
-
return Object.propertyIsEnumerable.call(u, y);
|
|
770
|
-
}) : [];
|
|
771
|
-
}
|
|
772
|
-
function p(u) {
|
|
773
|
-
return Object.keys(u).concat(h(u));
|
|
774
|
-
}
|
|
775
|
-
function g(u, y) {
|
|
776
|
-
try {
|
|
777
|
-
return y in u;
|
|
778
|
-
} catch {
|
|
779
|
-
return !1;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
function f(u, y) {
|
|
783
|
-
return g(u, y) && !(Object.hasOwnProperty.call(u, y) && Object.propertyIsEnumerable.call(u, y));
|
|
784
|
-
}
|
|
785
|
-
function m(u, y, S) {
|
|
786
|
-
var M = {};
|
|
787
|
-
return S.isMergeableObject(u) && p(u).forEach(function(w) {
|
|
788
|
-
M[w] = a(u[w], S);
|
|
789
|
-
}), p(y).forEach(function(w) {
|
|
790
|
-
f(u, w) || (g(u, w) && S.isMergeableObject(y[w]) ? M[w] = c(w, S)(u[w], y[w], S) : M[w] = a(y[w], S));
|
|
791
|
-
}), M;
|
|
792
|
-
}
|
|
793
|
-
function b(u, y, S) {
|
|
794
|
-
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
795
|
-
var M = Array.isArray(y), w = Array.isArray(u), E = M === w;
|
|
796
|
-
return E ? M ? S.arrayMerge(u, y, S) : m(u, y, S) : a(y, S);
|
|
797
|
-
}
|
|
798
|
-
b.all = function(y, S) {
|
|
799
|
-
if (!Array.isArray(y))
|
|
800
|
-
throw new Error("first argument should be an array");
|
|
801
|
-
return y.reduce(function(M, w) {
|
|
802
|
-
return b(M, w, S);
|
|
803
|
-
}, {});
|
|
804
|
-
};
|
|
805
|
-
var T = b;
|
|
806
|
-
return Be = T, Be;
|
|
807
|
-
}
|
|
808
|
-
var Hs = Ns();
|
|
809
|
-
const ue = /* @__PURE__ */ Mt(Hs), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
810
|
-
class Tt extends Kt {
|
|
826
|
+
})), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
827
|
+
class Mt extends Wt {
|
|
811
828
|
updateState({
|
|
812
829
|
props: e,
|
|
813
830
|
oldProps: t,
|
|
@@ -849,7 +866,7 @@ function Gs({
|
|
|
849
866
|
}) {
|
|
850
867
|
const t = zs(e);
|
|
851
868
|
return {
|
|
852
|
-
type:
|
|
869
|
+
type: Mt,
|
|
853
870
|
props: {
|
|
854
871
|
...t,
|
|
855
872
|
mode: r
|
|
@@ -863,7 +880,7 @@ function zs({
|
|
|
863
880
|
getFillColor: s,
|
|
864
881
|
pointColor: n
|
|
865
882
|
}) {
|
|
866
|
-
const o =
|
|
883
|
+
const o = ie(r, {
|
|
867
884
|
modeConfig: {
|
|
868
885
|
// // We force distance due to conversion is addressed at feature getText level
|
|
869
886
|
// formatTooltip: (_distance: number) => {
|
|
@@ -872,33 +889,33 @@ function zs({
|
|
|
872
889
|
preventOverlappingLines: !0
|
|
873
890
|
},
|
|
874
891
|
onEdit: e
|
|
875
|
-
}), i =
|
|
892
|
+
}), i = ie(Ns, {
|
|
876
893
|
getTentativeLineColor: t,
|
|
877
894
|
getTentativeFillColor: s,
|
|
878
895
|
getLineColor: t,
|
|
879
896
|
getFillColor: s,
|
|
880
897
|
getEditHandlePointColor: n.fill,
|
|
881
898
|
getEditHandlePointOutlineColor: n.outline,
|
|
882
|
-
dataComparator: (
|
|
899
|
+
dataComparator: (c, l) => c.features[0] === l.features[0]
|
|
883
900
|
});
|
|
884
|
-
return
|
|
901
|
+
return ie(i, o);
|
|
885
902
|
}
|
|
886
|
-
const
|
|
903
|
+
const Zs = (r) => ze()((e) => ({
|
|
887
904
|
data: r.reduce((s, n) => {
|
|
888
905
|
const {
|
|
889
906
|
enabled: o = !1,
|
|
890
907
|
mapId: i,
|
|
891
|
-
modeInstance: a = new
|
|
892
|
-
modes:
|
|
893
|
-
modeSelected:
|
|
894
|
-
values:
|
|
908
|
+
modeInstance: a = new Be.polygon.mode(),
|
|
909
|
+
modes: c = Be,
|
|
910
|
+
modeSelected: l = Be.polygon.value,
|
|
911
|
+
values: y = {}
|
|
895
912
|
} = n;
|
|
896
913
|
return s[i] = {
|
|
897
914
|
enabled: o,
|
|
898
915
|
modeInstance: a,
|
|
899
|
-
modes:
|
|
900
|
-
modeSelected:
|
|
901
|
-
values:
|
|
916
|
+
modes: c,
|
|
917
|
+
modeSelected: l,
|
|
918
|
+
values: y
|
|
902
919
|
}, s;
|
|
903
920
|
}, {}),
|
|
904
921
|
setEnabled: (s, n) => {
|
|
@@ -917,11 +934,11 @@ const Qs = (r) => ze()((e) => ({
|
|
|
917
934
|
e((i) => {
|
|
918
935
|
const a = {
|
|
919
936
|
...i.data[s].values
|
|
920
|
-
},
|
|
937
|
+
}, c = a[n] ?? {
|
|
921
938
|
type: "mask"
|
|
922
939
|
};
|
|
923
940
|
return a[n] = {
|
|
924
|
-
...
|
|
941
|
+
...c,
|
|
925
942
|
...o,
|
|
926
943
|
id: n
|
|
927
944
|
}, o || delete a[n], {
|
|
@@ -939,15 +956,15 @@ const Qs = (r) => ze()((e) => ({
|
|
|
939
956
|
e((i) => {
|
|
940
957
|
const a = {
|
|
941
958
|
...i.data[s].values
|
|
942
|
-
},
|
|
943
|
-
return
|
|
959
|
+
}, c = a[n] ?? {};
|
|
960
|
+
return c.properties.visible = o, {
|
|
944
961
|
data: {
|
|
945
962
|
...i.data,
|
|
946
963
|
[s]: {
|
|
947
964
|
...i.data[s],
|
|
948
965
|
values: {
|
|
949
966
|
...a,
|
|
950
|
-
[n]:
|
|
967
|
+
[n]: c
|
|
951
968
|
}
|
|
952
969
|
}
|
|
953
970
|
}
|
|
@@ -976,95 +993,95 @@ const Qs = (r) => ze()((e) => ({
|
|
|
976
993
|
}
|
|
977
994
|
}));
|
|
978
995
|
}
|
|
979
|
-
})),
|
|
980
|
-
function
|
|
981
|
-
const e =
|
|
996
|
+
})), _t = He({});
|
|
997
|
+
function Qs(r) {
|
|
998
|
+
const e = D(5), {
|
|
982
999
|
children: t,
|
|
983
1000
|
values: s
|
|
984
1001
|
} = r;
|
|
985
1002
|
let n;
|
|
986
|
-
e[0] !== s ? (n = () =>
|
|
987
|
-
const [o] =
|
|
1003
|
+
e[0] !== s ? (n = () => Zs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1004
|
+
const [o] = ne(n);
|
|
988
1005
|
let i;
|
|
989
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1006
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(_t.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
990
1007
|
}
|
|
991
|
-
function
|
|
992
|
-
const e = Ge(
|
|
1008
|
+
function Q(r) {
|
|
1009
|
+
const e = Ge(_t);
|
|
993
1010
|
if (!Object.keys(e).length)
|
|
994
1011
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
995
|
-
return
|
|
1012
|
+
return Ze(e, r);
|
|
996
1013
|
}
|
|
997
|
-
function
|
|
1014
|
+
function Ws({
|
|
998
1015
|
mapId: r,
|
|
999
1016
|
children: e
|
|
1000
1017
|
}) {
|
|
1001
|
-
const t =
|
|
1018
|
+
const t = Q((u) => {
|
|
1002
1019
|
var m;
|
|
1003
|
-
return (m =
|
|
1004
|
-
}), s =
|
|
1020
|
+
return (m = u.data[r]) == null ? void 0 : m.enabled;
|
|
1021
|
+
}), s = Q((u) => u.setEnabled), n = Q((u) => {
|
|
1005
1022
|
var m;
|
|
1006
|
-
return (m =
|
|
1007
|
-
}), o =
|
|
1023
|
+
return (m = u.data[r]) == null ? void 0 : m.values;
|
|
1024
|
+
}), o = Q((u) => u.setValue), i = Q((u) => u.setVisibility), a = Q((u) => {
|
|
1008
1025
|
var m;
|
|
1009
|
-
return (m =
|
|
1010
|
-
}),
|
|
1026
|
+
return (m = u.data[r]) == null ? void 0 : m.modeSelected;
|
|
1027
|
+
}), c = Q((u) => u.setModeSelected), l = Q((u) => {
|
|
1011
1028
|
var m;
|
|
1012
|
-
return (m =
|
|
1013
|
-
}),
|
|
1014
|
-
|
|
1015
|
-
const
|
|
1016
|
-
if (
|
|
1017
|
-
const m =
|
|
1018
|
-
|
|
1029
|
+
return (m = u.data[r]) == null ? void 0 : m.modes;
|
|
1030
|
+
}), y = Q((u) => u.setModeInstance);
|
|
1031
|
+
W(() => {
|
|
1032
|
+
const u = l[a];
|
|
1033
|
+
if (u && t) {
|
|
1034
|
+
const m = u.mode;
|
|
1035
|
+
y(r, new m());
|
|
1019
1036
|
}
|
|
1020
|
-
}, [t, r, a,
|
|
1037
|
+
}, [t, r, a, l, y]);
|
|
1021
1038
|
const [
|
|
1022
1039
|
p
|
|
1023
1040
|
// , draw
|
|
1024
|
-
] =
|
|
1025
|
-
const
|
|
1026
|
-
var
|
|
1041
|
+
] = se(() => {
|
|
1042
|
+
const u = (w) => {
|
|
1043
|
+
var f;
|
|
1027
1044
|
return {
|
|
1028
|
-
id:
|
|
1029
|
-
visible:
|
|
1030
|
-
label: (
|
|
1045
|
+
id: w.id,
|
|
1046
|
+
visible: w.properties.visible,
|
|
1047
|
+
label: (f = w.properties) == null ? void 0 : f.label
|
|
1031
1048
|
};
|
|
1032
1049
|
};
|
|
1033
1050
|
return [
|
|
1034
|
-
Object.values(n).filter((
|
|
1051
|
+
Object.values(n).filter((w) => w.type === "mask").map(u)
|
|
1035
1052
|
// , draw
|
|
1036
1053
|
];
|
|
1037
|
-
}, [n]), g =
|
|
1038
|
-
s(r, !!
|
|
1039
|
-
}, [r, s,
|
|
1054
|
+
}, [n]), g = K((u) => {
|
|
1055
|
+
s(r, !!u), c(r, u);
|
|
1056
|
+
}, [r, s, c]);
|
|
1040
1057
|
return e({
|
|
1041
1058
|
mapId: r,
|
|
1042
1059
|
enabled: t,
|
|
1043
|
-
modes:
|
|
1060
|
+
modes: l,
|
|
1044
1061
|
modeSelected: a,
|
|
1045
1062
|
values: {
|
|
1046
1063
|
mask: p
|
|
1047
1064
|
// draw,
|
|
1048
1065
|
},
|
|
1049
|
-
setValue:
|
|
1050
|
-
setEnabled:
|
|
1051
|
-
setVisibility:
|
|
1066
|
+
setValue: K((u) => o(r, u), [r, o]),
|
|
1067
|
+
setEnabled: K((u) => s(r, u), [r, s]),
|
|
1068
|
+
setVisibility: K((u, m) => i(r, u, m), [r, i]),
|
|
1052
1069
|
setModeSelected: g
|
|
1053
1070
|
});
|
|
1054
1071
|
}
|
|
1055
|
-
function
|
|
1072
|
+
function Et({
|
|
1056
1073
|
values: r
|
|
1057
1074
|
}) {
|
|
1058
1075
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
1059
1076
|
}
|
|
1060
|
-
const
|
|
1077
|
+
const Ks = as({
|
|
1061
1078
|
length: ls
|
|
1062
1079
|
});
|
|
1063
1080
|
function st(r, e) {
|
|
1064
|
-
return
|
|
1081
|
+
return Ks(r).from(ot[G.meter]).to(ot[e]);
|
|
1065
1082
|
}
|
|
1066
1083
|
const nt = 1e4;
|
|
1067
|
-
function
|
|
1084
|
+
function Ce({
|
|
1068
1085
|
meters: r,
|
|
1069
1086
|
unit: e,
|
|
1070
1087
|
locale: t,
|
|
@@ -1076,16 +1093,16 @@ function Oe({
|
|
|
1076
1093
|
}
|
|
1077
1094
|
}) {
|
|
1078
1095
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1079
|
-
let
|
|
1096
|
+
let c, l;
|
|
1080
1097
|
if (a) {
|
|
1081
|
-
const
|
|
1082
|
-
let p =
|
|
1083
|
-
|
|
1098
|
+
const y = r < (s ?? nt);
|
|
1099
|
+
let p = y ? G.meter : G.kilometer;
|
|
1100
|
+
c = y ? ye.meter : ye.kilometer, i && (c = y ? ye.feet : ye.mile, p = y ? G.feet : G.mile), l = st(r, p);
|
|
1084
1101
|
} else
|
|
1085
|
-
|
|
1086
|
-
return `${vt(
|
|
1102
|
+
c = ye[e], l = st(r, e);
|
|
1103
|
+
return `${vt(l, t, {
|
|
1087
1104
|
style: "unit",
|
|
1088
|
-
unit:
|
|
1105
|
+
unit: c,
|
|
1089
1106
|
unitDisplay: "short",
|
|
1090
1107
|
notation: "standard",
|
|
1091
1108
|
minimumFractionDigits: 2,
|
|
@@ -1093,7 +1110,7 @@ function Oe({
|
|
|
1093
1110
|
...n
|
|
1094
1111
|
})}`;
|
|
1095
1112
|
}
|
|
1096
|
-
function
|
|
1113
|
+
function eo(r, {
|
|
1097
1114
|
hasDoubleClickZoom: e
|
|
1098
1115
|
}) {
|
|
1099
1116
|
return typeof r == "boolean" ? {
|
|
@@ -1103,7 +1120,7 @@ function Wr(r, {
|
|
|
1103
1120
|
doubleClickZoom: e
|
|
1104
1121
|
};
|
|
1105
1122
|
}
|
|
1106
|
-
function
|
|
1123
|
+
function Pt(r, e, t) {
|
|
1107
1124
|
if (r > 0) {
|
|
1108
1125
|
const {
|
|
1109
1126
|
formatTooltip: s,
|
|
@@ -1125,7 +1142,7 @@ function Lt(r, e, t) {
|
|
|
1125
1142
|
}
|
|
1126
1143
|
return [];
|
|
1127
1144
|
}
|
|
1128
|
-
class Ys extends
|
|
1145
|
+
class Ys extends Kt {
|
|
1129
1146
|
constructor() {
|
|
1130
1147
|
super(...arguments);
|
|
1131
1148
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1164,7 +1181,7 @@ class Ys extends Zt {
|
|
|
1164
1181
|
const n = this.getTentativeGuide(s);
|
|
1165
1182
|
if (n && n.geometry.type === "Polygon") {
|
|
1166
1183
|
const o = rs(n);
|
|
1167
|
-
this.area = Ye(n), this.tooltips =
|
|
1184
|
+
this.area = Ye(n), this.tooltips = Pt(this.area, o.geometry.coordinates, s.modeConfig);
|
|
1168
1185
|
}
|
|
1169
1186
|
}
|
|
1170
1187
|
resetClickSequence() {
|
|
@@ -1236,7 +1253,7 @@ class Ys extends Zt {
|
|
|
1236
1253
|
unit: n,
|
|
1237
1254
|
options: o
|
|
1238
1255
|
}) {
|
|
1239
|
-
return
|
|
1256
|
+
return Ce({
|
|
1240
1257
|
meters: t,
|
|
1241
1258
|
locale: s,
|
|
1242
1259
|
unit: n,
|
|
@@ -1259,7 +1276,7 @@ class Xs extends ht {
|
|
|
1259
1276
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, s);
|
|
1260
1277
|
}
|
|
1261
1278
|
handlePointerMove(t, s) {
|
|
1262
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips =
|
|
1279
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips = Pt(this.areaCircle, this.position, s.modeConfig));
|
|
1263
1280
|
}
|
|
1264
1281
|
checkAndFinishPolygon(t) {
|
|
1265
1282
|
const s = this.getClickSequence(), n = this.getTentativeGuide(t);
|
|
@@ -1312,7 +1329,7 @@ class Xs extends ht {
|
|
|
1312
1329
|
unit: n,
|
|
1313
1330
|
options: o
|
|
1314
1331
|
}) {
|
|
1315
|
-
return
|
|
1332
|
+
return Ce({
|
|
1316
1333
|
meters: t,
|
|
1317
1334
|
locale: s,
|
|
1318
1335
|
unit: n,
|
|
@@ -1320,7 +1337,7 @@ class Xs extends ht {
|
|
|
1320
1337
|
}) + "2";
|
|
1321
1338
|
}
|
|
1322
1339
|
}
|
|
1323
|
-
class
|
|
1340
|
+
class Lt extends Xt {
|
|
1324
1341
|
handleClick(e, t) {
|
|
1325
1342
|
super.handleClick(e, t), t.onEdit({
|
|
1326
1343
|
// data is the same
|
|
@@ -1371,7 +1388,7 @@ class Pt extends Xt {
|
|
|
1371
1388
|
unit: s,
|
|
1372
1389
|
options: n
|
|
1373
1390
|
}) {
|
|
1374
|
-
return
|
|
1391
|
+
return Ce({
|
|
1375
1392
|
meters: e,
|
|
1376
1393
|
locale: t,
|
|
1377
1394
|
unit: s,
|
|
@@ -1379,8 +1396,8 @@ class Pt extends Xt {
|
|
|
1379
1396
|
});
|
|
1380
1397
|
}
|
|
1381
1398
|
}
|
|
1382
|
-
const
|
|
1383
|
-
id:
|
|
1399
|
+
const oe = "mapMeasureLayer", Js = {
|
|
1400
|
+
id: oe,
|
|
1384
1401
|
pickable: !1,
|
|
1385
1402
|
billboard: !1,
|
|
1386
1403
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1416,7 +1433,7 @@ const re = "mapMeasureLayer", Js = {
|
|
|
1416
1433
|
point: qe.point
|
|
1417
1434
|
}
|
|
1418
1435
|
}
|
|
1419
|
-
},
|
|
1436
|
+
}, G = {
|
|
1420
1437
|
kilometer: "kilometer",
|
|
1421
1438
|
meter: "meter",
|
|
1422
1439
|
centimeter: "centimeter",
|
|
@@ -1427,27 +1444,27 @@ const re = "mapMeasureLayer", Js = {
|
|
|
1427
1444
|
}, Ie = {
|
|
1428
1445
|
"m-km": "m-km",
|
|
1429
1446
|
"ft-mi": "ft-mi",
|
|
1430
|
-
...
|
|
1447
|
+
...G
|
|
1431
1448
|
}, en = {
|
|
1432
1449
|
meters: "meters",
|
|
1433
1450
|
kilometer: "kilometers",
|
|
1434
1451
|
mile: "miles"
|
|
1435
1452
|
}, ot = {
|
|
1436
|
-
[
|
|
1437
|
-
[
|
|
1438
|
-
[
|
|
1439
|
-
[
|
|
1440
|
-
[
|
|
1441
|
-
[
|
|
1442
|
-
[
|
|
1443
|
-
},
|
|
1444
|
-
[
|
|
1445
|
-
[
|
|
1446
|
-
[
|
|
1447
|
-
[
|
|
1448
|
-
[
|
|
1449
|
-
[
|
|
1450
|
-
[
|
|
1453
|
+
[G.kilometer]: "km",
|
|
1454
|
+
[G.meter]: "m",
|
|
1455
|
+
[G.centimeter]: "cm",
|
|
1456
|
+
[G.milimeter]: "mm",
|
|
1457
|
+
[G.mile]: "mi",
|
|
1458
|
+
[G.yard]: "yd",
|
|
1459
|
+
[G.feet]: "ft"
|
|
1460
|
+
}, ye = {
|
|
1461
|
+
[G.kilometer]: "kilometer",
|
|
1462
|
+
[G.meter]: "meter",
|
|
1463
|
+
[G.centimeter]: "centimeter",
|
|
1464
|
+
[G.milimeter]: "millimeter",
|
|
1465
|
+
[G.mile]: "mile",
|
|
1466
|
+
[G.yard]: "yard",
|
|
1467
|
+
[G.feet]: "foot"
|
|
1451
1468
|
}, Y = {
|
|
1452
1469
|
"m-km": {
|
|
1453
1470
|
value: "m-km",
|
|
@@ -1488,7 +1505,7 @@ const re = "mapMeasureLayer", Js = {
|
|
|
1488
1505
|
}, it = [Y["m-km"], Y.kilometer, Y.meter, Y["ft-mi"], Y.mile, Y.feet], tn = [Y["m-km"], Y.kilometer, Y.meter, Y["ft-mi"], Y.mile, Y.feet], sn = {
|
|
1489
1506
|
distance: {
|
|
1490
1507
|
value: "distance",
|
|
1491
|
-
mode:
|
|
1508
|
+
mode: Lt
|
|
1492
1509
|
},
|
|
1493
1510
|
buffer: {
|
|
1494
1511
|
value: "buffer",
|
|
@@ -1503,8 +1520,8 @@ const re = "mapMeasureLayer", Js = {
|
|
|
1503
1520
|
buffer: it,
|
|
1504
1521
|
area: tn
|
|
1505
1522
|
};
|
|
1506
|
-
function
|
|
1507
|
-
const e =
|
|
1523
|
+
function Ct(r) {
|
|
1524
|
+
const e = D(12), {
|
|
1508
1525
|
mapId: t,
|
|
1509
1526
|
layerId: s
|
|
1510
1527
|
} = r;
|
|
@@ -1513,28 +1530,28 @@ function Ot(r) {
|
|
|
1513
1530
|
var b;
|
|
1514
1531
|
return (b = m.maps[t]) == null ? void 0 : b.basemap;
|
|
1515
1532
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
1516
|
-
const o =
|
|
1533
|
+
const o = x(n);
|
|
1517
1534
|
let i;
|
|
1518
1535
|
e[2] !== t ? (i = (m) => {
|
|
1519
1536
|
var b;
|
|
1520
1537
|
return (b = m.maps[t]) == null ? void 0 : b.isLoaded;
|
|
1521
1538
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1522
|
-
const a =
|
|
1523
|
-
type:
|
|
1524
|
-
} =
|
|
1525
|
-
let g,
|
|
1526
|
-
e[4] !==
|
|
1539
|
+
const a = x(i), c = x(on), l = me(rn), {
|
|
1540
|
+
type: y
|
|
1541
|
+
} = he[o], p = y === te.googleMaps;
|
|
1542
|
+
let g, u;
|
|
1543
|
+
e[4] !== c || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== l ? (g = () => {
|
|
1527
1544
|
let m = null;
|
|
1528
1545
|
if (p && a) {
|
|
1529
|
-
const b =
|
|
1546
|
+
const b = c(t);
|
|
1530
1547
|
m = new ss(b.getDiv(), {});
|
|
1531
1548
|
}
|
|
1532
|
-
|
|
1549
|
+
l(s, {
|
|
1533
1550
|
props: {
|
|
1534
1551
|
eventManager: m
|
|
1535
1552
|
}
|
|
1536
1553
|
});
|
|
1537
|
-
},
|
|
1554
|
+
}, u = [c, p, a, s, t, l], e[4] = c, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = l, e[10] = g, e[11] = u) : (g = e[10], u = e[11]), W(g, u);
|
|
1538
1555
|
}
|
|
1539
1556
|
function rn(r) {
|
|
1540
1557
|
return r.setLayer;
|
|
@@ -1542,126 +1559,126 @@ function rn(r) {
|
|
|
1542
1559
|
function on(r) {
|
|
1543
1560
|
return r.getOverlayInstance;
|
|
1544
1561
|
}
|
|
1545
|
-
const an = [
|
|
1562
|
+
const an = [ue, Le, oe];
|
|
1546
1563
|
function ln({
|
|
1547
1564
|
children: r,
|
|
1548
1565
|
mapId: e,
|
|
1549
1566
|
defaultProps: {
|
|
1550
|
-
styles: t =
|
|
1567
|
+
styles: t = Ue.styles,
|
|
1551
1568
|
labels: s
|
|
1552
1569
|
} = {
|
|
1553
|
-
styles:
|
|
1554
|
-
labels:
|
|
1570
|
+
styles: Ue.styles,
|
|
1571
|
+
labels: Ue.labels
|
|
1555
1572
|
},
|
|
1556
1573
|
layerProps: n = {},
|
|
1557
1574
|
defaultType: o = "mask"
|
|
1558
1575
|
}) {
|
|
1559
|
-
const i =
|
|
1560
|
-
var
|
|
1561
|
-
return (
|
|
1562
|
-
}), a =
|
|
1563
|
-
var
|
|
1564
|
-
return (
|
|
1565
|
-
}),
|
|
1566
|
-
var
|
|
1567
|
-
return (
|
|
1568
|
-
}), p =
|
|
1569
|
-
var
|
|
1570
|
-
return (
|
|
1571
|
-
}), g =
|
|
1572
|
-
var
|
|
1573
|
-
return (
|
|
1574
|
-
})),
|
|
1575
|
-
|
|
1576
|
+
const i = Q((_) => {
|
|
1577
|
+
var L;
|
|
1578
|
+
return (L = _.data[e]) == null ? void 0 : L.enabled;
|
|
1579
|
+
}), a = Q((_) => _.setEnabled), c = Q((_) => {
|
|
1580
|
+
var L;
|
|
1581
|
+
return (L = _.data[e]) == null ? void 0 : L.values;
|
|
1582
|
+
}), l = Q((_) => _.setValue), y = Q((_) => {
|
|
1583
|
+
var L;
|
|
1584
|
+
return (L = _.data[e]) == null ? void 0 : L.modeInstance;
|
|
1585
|
+
}), p = Q((_) => {
|
|
1586
|
+
var L;
|
|
1587
|
+
return (L = _.data[e]) == null ? void 0 : L.modeSelected;
|
|
1588
|
+
}), g = me((_) => _.setLayer), u = x((_) => _.addLayers), m = x((_) => _.removeLayers), b = x(gt((_) => {
|
|
1589
|
+
var L;
|
|
1590
|
+
return (L = _.maps[e]) == null ? void 0 : L.layers.filter((d) => !an.includes(d));
|
|
1591
|
+
})), w = x((_) => _.getDeckInstance), f = Ee({});
|
|
1592
|
+
Ct({
|
|
1576
1593
|
mapId: e,
|
|
1577
|
-
layerId:
|
|
1594
|
+
layerId: ue
|
|
1578
1595
|
});
|
|
1579
|
-
const
|
|
1580
|
-
values:
|
|
1581
|
-
}), [
|
|
1596
|
+
const h = se(() => Et({
|
|
1597
|
+
values: c
|
|
1598
|
+
}), [c]), S = se(() => ({
|
|
1582
1599
|
type: "FeatureCollection",
|
|
1583
|
-
features:
|
|
1600
|
+
features: h.map((_) => ({
|
|
1584
1601
|
type: "Feature",
|
|
1585
1602
|
geometry: _.geometry,
|
|
1586
1603
|
properties: _.properties,
|
|
1587
1604
|
id: _.id
|
|
1588
1605
|
}))
|
|
1589
|
-
}), [
|
|
1606
|
+
}), [h]), M = se(() => h.filter((_) => _.properties.visible).map((_) => _.id), [h]), [T, E] = ne(S), [A, U] = ne([]), F = K(() => {
|
|
1590
1607
|
const _ = {
|
|
1591
1608
|
...S,
|
|
1592
|
-
features: S.features.filter((
|
|
1609
|
+
features: S.features.filter((L) => {
|
|
1593
1610
|
var d;
|
|
1594
|
-
return (d =
|
|
1611
|
+
return (d = L.properties) == null ? void 0 : d.visible;
|
|
1595
1612
|
})
|
|
1596
1613
|
};
|
|
1597
1614
|
E(_);
|
|
1598
1615
|
}, [S]);
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
}, [
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
m(e, [
|
|
1605
|
-
}), [
|
|
1606
|
-
const
|
|
1607
|
-
|
|
1608
|
-
}, [e,
|
|
1616
|
+
W(() => {
|
|
1617
|
+
F();
|
|
1618
|
+
}, [F]);
|
|
1619
|
+
const q = Ee(h.length);
|
|
1620
|
+
W(() => (u(e, [ue]), () => {
|
|
1621
|
+
m(e, [ue]);
|
|
1622
|
+
}), [u, e, m]);
|
|
1623
|
+
const N = K(() => {
|
|
1624
|
+
F(), U([]), a(e, !1);
|
|
1625
|
+
}, [e, F, a]), B = K(({
|
|
1609
1626
|
editType: _,
|
|
1610
|
-
updatedData:
|
|
1627
|
+
updatedData: L
|
|
1611
1628
|
}) => {
|
|
1612
1629
|
if (_ === X.cancel) {
|
|
1613
|
-
|
|
1630
|
+
N();
|
|
1614
1631
|
return;
|
|
1615
1632
|
}
|
|
1616
|
-
E(
|
|
1633
|
+
E(L), _ !== X.updateTentativeFeature && _ === X.addFeature && (p !== "edit" && (q.current = q.current + 1), L.features.forEach((d, v) => {
|
|
1617
1634
|
var k;
|
|
1618
|
-
(k = d.properties).label ?? (k.label = `${s == null ? void 0 : s.mask} ${
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1635
|
+
(k = d.properties).label ?? (k.label = `${s == null ? void 0 : s.mask} ${q.current}`), d.properties.index = v, d.properties.visible = d.properties.visible ?? !0;
|
|
1636
|
+
const P = d.id ?? crypto.randomUUID();
|
|
1637
|
+
l(e, P, {
|
|
1621
1638
|
geometry: d.geometry,
|
|
1622
1639
|
properties: d.properties,
|
|
1623
1640
|
// visible: true,
|
|
1624
1641
|
type: o
|
|
1625
1642
|
});
|
|
1626
|
-
}),
|
|
1627
|
-
}, [o,
|
|
1628
|
-
return
|
|
1643
|
+
}), N());
|
|
1644
|
+
}, [o, N, s == null ? void 0 : s.mask, e, p, l]);
|
|
1645
|
+
return W(() => {
|
|
1629
1646
|
const _ = i, {
|
|
1630
|
-
border:
|
|
1647
|
+
border: L,
|
|
1631
1648
|
point: d,
|
|
1632
1649
|
fill: v
|
|
1633
1650
|
} = t.colors.editing, {
|
|
1634
|
-
border:
|
|
1651
|
+
border: P,
|
|
1635
1652
|
fill: k
|
|
1636
1653
|
} = t.colors.finished, O = Gs({
|
|
1637
1654
|
layerProps: {
|
|
1638
1655
|
...n.mask,
|
|
1639
1656
|
pickable: _,
|
|
1640
|
-
data:
|
|
1641
|
-
selectedFeatureIndexes:
|
|
1657
|
+
data: T,
|
|
1658
|
+
selectedFeatureIndexes: A,
|
|
1642
1659
|
updateTriggers: {
|
|
1643
1660
|
getFilterValue: M
|
|
1644
1661
|
},
|
|
1645
|
-
onClick: (
|
|
1646
|
-
const
|
|
1647
|
-
|
|
1662
|
+
onClick: (C) => {
|
|
1663
|
+
const $ = C;
|
|
1664
|
+
$.isGuide || U([$.index]);
|
|
1648
1665
|
}
|
|
1649
1666
|
},
|
|
1650
|
-
getLineColor: (
|
|
1651
|
-
getFillColor: (
|
|
1667
|
+
getLineColor: (C) => A[0] === C.properties.index ? L : P,
|
|
1668
|
+
getFillColor: (C) => A[0] === C.properties.index ? v : k,
|
|
1652
1669
|
pointColor: {
|
|
1653
1670
|
fill: d,
|
|
1654
|
-
outline:
|
|
1671
|
+
outline: L
|
|
1655
1672
|
},
|
|
1656
|
-
onEdit:
|
|
1657
|
-
mode: _ ?
|
|
1673
|
+
onEdit: B,
|
|
1674
|
+
mode: _ ? y : new Jt()
|
|
1658
1675
|
});
|
|
1659
|
-
g(
|
|
1660
|
-
}, [
|
|
1676
|
+
g(ue, O);
|
|
1677
|
+
}, [T, i, n.mask, M, y, B, A, g, t.colors.editing, t.colors.finished]), W(() => {
|
|
1661
1678
|
const _ = {
|
|
1662
1679
|
...Me,
|
|
1663
1680
|
data: S,
|
|
1664
|
-
getFilterValue: (
|
|
1681
|
+
getFilterValue: (L) => Number(M.includes(L.id)),
|
|
1665
1682
|
updateTriggers: {
|
|
1666
1683
|
getFilterValue: M
|
|
1667
1684
|
}
|
|
@@ -1669,26 +1686,26 @@ function ln({
|
|
|
1669
1686
|
return g(Me.id, {
|
|
1670
1687
|
type: ns,
|
|
1671
1688
|
props: _
|
|
1672
|
-
}),
|
|
1689
|
+
}), u(e, [Me.id]), () => {
|
|
1673
1690
|
m(e, [Me.id]);
|
|
1674
1691
|
};
|
|
1675
|
-
}, [
|
|
1692
|
+
}, [u, e, S, M, m, g]), W(() => {
|
|
1676
1693
|
b == null || b.forEach((_) => {
|
|
1677
1694
|
var v;
|
|
1678
|
-
const
|
|
1679
|
-
i && (
|
|
1680
|
-
const d = !i && (
|
|
1695
|
+
const L = (v = w(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === _);
|
|
1696
|
+
i && (f.current[_] = L == null ? void 0 : L.props.pickable);
|
|
1697
|
+
const d = !i && (f.current[_] ?? (L == null ? void 0 : L.props.pickable));
|
|
1681
1698
|
g(_, {
|
|
1682
1699
|
props: {
|
|
1683
1700
|
pickable: d,
|
|
1684
1701
|
extensions: [new ts()],
|
|
1685
|
-
maskId: !i && M.length ?
|
|
1702
|
+
maskId: !i && M.length ? Le : void 0
|
|
1686
1703
|
}
|
|
1687
1704
|
});
|
|
1688
1705
|
});
|
|
1689
|
-
}, [i,
|
|
1706
|
+
}, [i, w, e, b, M.length, g]), r;
|
|
1690
1707
|
}
|
|
1691
|
-
ln.Controls =
|
|
1708
|
+
ln.Controls = Ws;
|
|
1692
1709
|
function cn({
|
|
1693
1710
|
mode: r,
|
|
1694
1711
|
...e
|
|
@@ -1698,7 +1715,7 @@ function cn({
|
|
|
1698
1715
|
...e
|
|
1699
1716
|
});
|
|
1700
1717
|
return {
|
|
1701
|
-
type:
|
|
1718
|
+
type: Mt,
|
|
1702
1719
|
props: {
|
|
1703
1720
|
...t,
|
|
1704
1721
|
mode: r,
|
|
@@ -1715,9 +1732,9 @@ function un({
|
|
|
1715
1732
|
onEdit: o,
|
|
1716
1733
|
guideColor: i,
|
|
1717
1734
|
pointColor: a,
|
|
1718
|
-
textOptions:
|
|
1735
|
+
textOptions: c
|
|
1719
1736
|
}) {
|
|
1720
|
-
const
|
|
1737
|
+
const l = ie(e, {
|
|
1721
1738
|
visible: s,
|
|
1722
1739
|
pickable: s,
|
|
1723
1740
|
modeConfig: {
|
|
@@ -1740,20 +1757,20 @@ function un({
|
|
|
1740
1757
|
smoothing: 0.2
|
|
1741
1758
|
},
|
|
1742
1759
|
getText: (g) => {
|
|
1743
|
-
var
|
|
1744
|
-
return (
|
|
1760
|
+
var u;
|
|
1761
|
+
return (u = r == null ? void 0 : r.getTooltipText) == null ? void 0 : u.call(r, {
|
|
1745
1762
|
meters: g.text,
|
|
1746
1763
|
locale: t,
|
|
1747
1764
|
unit: n,
|
|
1748
|
-
options:
|
|
1765
|
+
options: c
|
|
1749
1766
|
});
|
|
1750
1767
|
},
|
|
1751
1768
|
updateTriggers: {
|
|
1752
|
-
getText: [n, t,
|
|
1769
|
+
getText: [n, t, c]
|
|
1753
1770
|
}
|
|
1754
1771
|
}
|
|
1755
1772
|
}
|
|
1756
|
-
}),
|
|
1773
|
+
}), y = ie(Js, {
|
|
1757
1774
|
_subLayerProps: {
|
|
1758
1775
|
guides: {
|
|
1759
1776
|
getLineColor: i,
|
|
@@ -1763,7 +1780,7 @@ function un({
|
|
|
1763
1780
|
getEditHandlePointColor: a,
|
|
1764
1781
|
getEditHandlePointOutlineColor: i
|
|
1765
1782
|
});
|
|
1766
|
-
return
|
|
1783
|
+
return ie(y, l);
|
|
1767
1784
|
}
|
|
1768
1785
|
const dn = (r) => ze()((e) => ({
|
|
1769
1786
|
measurements: r.reduce((s, n) => {
|
|
@@ -1771,29 +1788,29 @@ const dn = (r) => ze()((e) => ({
|
|
|
1771
1788
|
mapId: o,
|
|
1772
1789
|
modeSelected: i,
|
|
1773
1790
|
modes: a = sn,
|
|
1774
|
-
units:
|
|
1775
|
-
distance:
|
|
1776
|
-
finished:
|
|
1791
|
+
units: c = nn,
|
|
1792
|
+
distance: l = 0,
|
|
1793
|
+
finished: y = !1,
|
|
1777
1794
|
locale: p = "en",
|
|
1778
1795
|
positions: g = [],
|
|
1779
|
-
clearLayerOnStart:
|
|
1796
|
+
clearLayerOnStart: u = !1,
|
|
1780
1797
|
unit: m = Ie["m-km"],
|
|
1781
1798
|
enabled: b = !1
|
|
1782
1799
|
} = n;
|
|
1783
1800
|
return s[o] = {
|
|
1784
1801
|
modes: a,
|
|
1785
|
-
units:
|
|
1802
|
+
units: c,
|
|
1786
1803
|
modeSelected: i,
|
|
1787
|
-
distance:
|
|
1788
|
-
finished:
|
|
1804
|
+
distance: l,
|
|
1805
|
+
finished: y,
|
|
1789
1806
|
locale: p,
|
|
1790
1807
|
positions: g,
|
|
1791
1808
|
unit: m,
|
|
1792
|
-
clearLayerOnStart:
|
|
1809
|
+
clearLayerOnStart: u,
|
|
1793
1810
|
enabled: b
|
|
1794
1811
|
}, s;
|
|
1795
1812
|
}, {}),
|
|
1796
|
-
mode:
|
|
1813
|
+
mode: Lt,
|
|
1797
1814
|
setModeInstance: (s, n) => {
|
|
1798
1815
|
e((o) => ({
|
|
1799
1816
|
measurements: {
|
|
@@ -1882,121 +1899,121 @@ const dn = (r) => ze()((e) => ({
|
|
|
1882
1899
|
}
|
|
1883
1900
|
}));
|
|
1884
1901
|
}
|
|
1885
|
-
})),
|
|
1902
|
+
})), Ot = He({});
|
|
1886
1903
|
function fn(r) {
|
|
1887
|
-
const e =
|
|
1904
|
+
const e = D(5), {
|
|
1888
1905
|
children: t,
|
|
1889
1906
|
values: s
|
|
1890
1907
|
} = r;
|
|
1891
1908
|
let n;
|
|
1892
1909
|
e[0] !== s ? (n = dn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1893
|
-
const [o] =
|
|
1910
|
+
const [o] = ne(n);
|
|
1894
1911
|
let i;
|
|
1895
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1912
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1896
1913
|
}
|
|
1897
|
-
function
|
|
1898
|
-
const e = Ge(
|
|
1914
|
+
function z(r) {
|
|
1915
|
+
const e = Ge(Ot);
|
|
1899
1916
|
if (!Object.keys(e).length)
|
|
1900
1917
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1901
|
-
return
|
|
1918
|
+
return Ze(e, r);
|
|
1902
1919
|
}
|
|
1903
|
-
function
|
|
1904
|
-
const e =
|
|
1920
|
+
function kt(r) {
|
|
1921
|
+
const e = D(74), {
|
|
1905
1922
|
mapId: t
|
|
1906
1923
|
} = r;
|
|
1907
1924
|
let s;
|
|
1908
|
-
e[0] !== t ? (s = (
|
|
1909
|
-
const n =
|
|
1925
|
+
e[0] !== t ? (s = (R) => R.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1926
|
+
const n = z(s);
|
|
1910
1927
|
let o;
|
|
1911
|
-
e[2] !== t ? (o = (
|
|
1912
|
-
const i =
|
|
1928
|
+
e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1929
|
+
const i = z(o);
|
|
1913
1930
|
let a;
|
|
1914
|
-
e[4] !== t ? (a = (
|
|
1915
|
-
const
|
|
1916
|
-
let
|
|
1917
|
-
e[6] !==
|
|
1918
|
-
const p =
|
|
1931
|
+
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1932
|
+
const c = z(a), l = z(Sn);
|
|
1933
|
+
let y;
|
|
1934
|
+
e[6] !== l || e[7] !== t ? (y = (R) => l(t, R), e[6] = l, e[7] = t, e[8] = y) : y = e[8];
|
|
1935
|
+
const p = y;
|
|
1919
1936
|
let g;
|
|
1920
|
-
e[9] !== t ? (g = (
|
|
1921
|
-
const
|
|
1937
|
+
e[9] !== t ? (g = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
|
|
1938
|
+
const u = z(g);
|
|
1922
1939
|
let m;
|
|
1923
|
-
e[11] !== t ? (m = (
|
|
1924
|
-
const b =
|
|
1925
|
-
let
|
|
1926
|
-
e[13] !==
|
|
1927
|
-
const
|
|
1940
|
+
e[11] !== t ? (m = (R) => R.measurements[t].enabled, e[11] = t, e[12] = m) : m = e[12];
|
|
1941
|
+
const b = z(m), w = z(vn);
|
|
1942
|
+
let f;
|
|
1943
|
+
e[13] !== w || e[14] !== t ? (f = (R) => w(t, R), e[13] = w, e[14] = t, e[15] = f) : f = e[15];
|
|
1944
|
+
const h = f;
|
|
1928
1945
|
let S;
|
|
1929
|
-
e[16] !== t ? (S = (
|
|
1930
|
-
const M =
|
|
1946
|
+
e[16] !== t ? (S = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
1947
|
+
const M = z(S), T = z(bn);
|
|
1931
1948
|
let E;
|
|
1932
|
-
e[18] !==
|
|
1933
|
-
|
|
1934
|
-
}, e[18] =
|
|
1935
|
-
const
|
|
1949
|
+
e[18] !== T || e[19] !== t || e[20] !== h ? (E = (R) => {
|
|
1950
|
+
h(!!R), T(t, R);
|
|
1951
|
+
}, e[18] = T, e[19] = t, e[20] = h, e[21] = E) : E = e[21];
|
|
1952
|
+
const A = E;
|
|
1936
1953
|
let U;
|
|
1937
|
-
e[22] !== t ? (U = (
|
|
1938
|
-
const
|
|
1939
|
-
let
|
|
1940
|
-
e[24] !==
|
|
1941
|
-
const
|
|
1954
|
+
e[22] !== t ? (U = (R) => R.measurements[t].finished, e[22] = t, e[23] = U) : U = e[23];
|
|
1955
|
+
const F = z(U), q = z(gn);
|
|
1956
|
+
let N;
|
|
1957
|
+
e[24] !== q || e[25] !== t ? (N = (R) => q(t, R), e[24] = q, e[25] = t, e[26] = N) : N = e[26];
|
|
1958
|
+
const B = N;
|
|
1942
1959
|
let _;
|
|
1943
|
-
e[27] !== t ? (_ = (
|
|
1944
|
-
const
|
|
1960
|
+
e[27] !== t ? (_ = (R) => R.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
|
|
1961
|
+
const L = z(_), d = z(hn);
|
|
1945
1962
|
let v;
|
|
1946
|
-
e[29] !== d || e[30] !== t ? (v = (
|
|
1947
|
-
const
|
|
1963
|
+
e[29] !== d || e[30] !== t ? (v = (R) => d(t, R), e[29] = d, e[30] = t, e[31] = v) : v = e[31];
|
|
1964
|
+
const P = v;
|
|
1948
1965
|
let k;
|
|
1949
|
-
e[32] !== t ? (k = (
|
|
1950
|
-
const O =
|
|
1951
|
-
let
|
|
1952
|
-
e[34] !==
|
|
1953
|
-
const
|
|
1954
|
-
let
|
|
1955
|
-
e[37] !== t ? (
|
|
1956
|
-
const
|
|
1957
|
-
let
|
|
1958
|
-
e[39] !==
|
|
1959
|
-
const
|
|
1966
|
+
e[32] !== t ? (k = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = k) : k = e[33];
|
|
1967
|
+
const O = z(k), C = z(yn);
|
|
1968
|
+
let $;
|
|
1969
|
+
e[34] !== C || e[35] !== t ? ($ = (R) => C(t, R), e[34] = C, e[35] = t, e[36] = $) : $ = e[36];
|
|
1970
|
+
const V = $;
|
|
1971
|
+
let I;
|
|
1972
|
+
e[37] !== t ? (I = (R) => R.measurements[t].positions, e[37] = t, e[38] = I) : I = e[38];
|
|
1973
|
+
const j = z(I), H = z(mn);
|
|
1974
|
+
let fe;
|
|
1975
|
+
e[39] !== H || e[40] !== t ? (fe = (R) => H(t, R), e[39] = H, e[40] = t, e[41] = fe) : fe = e[41];
|
|
1976
|
+
const pe = fe;
|
|
1960
1977
|
let ge;
|
|
1961
|
-
e[42] !== t ? (ge = (
|
|
1962
|
-
const
|
|
1978
|
+
e[42] !== t ? (ge = (R) => R.measurements[t].unit, e[42] = t, e[43] = ge) : ge = e[43];
|
|
1979
|
+
const Oe = z(ge), ke = z(pn);
|
|
1963
1980
|
let be;
|
|
1964
|
-
e[44] !==
|
|
1965
|
-
const
|
|
1981
|
+
e[44] !== ke || e[45] !== t ? (be = (R) => ke(t, R), e[44] = ke, e[45] = t, e[46] = be) : be = e[46];
|
|
1982
|
+
const Fe = be;
|
|
1966
1983
|
let ve;
|
|
1967
|
-
e[47] !== O || e[48] !==
|
|
1968
|
-
O == null || O.resetClickSequence(),
|
|
1969
|
-
}, e[47] = O, e[48] =
|
|
1984
|
+
e[47] !== O || e[48] !== pe ? (ve = () => {
|
|
1985
|
+
O == null || O.resetClickSequence(), pe([]);
|
|
1986
|
+
}, e[47] = O, e[48] = pe, e[49] = ve) : ve = e[49];
|
|
1970
1987
|
const Ae = ve;
|
|
1971
1988
|
let Se;
|
|
1972
|
-
e[50] !==
|
|
1973
|
-
|
|
1974
|
-
}, e[50] =
|
|
1989
|
+
e[50] !== h ? (Se = (R) => {
|
|
1990
|
+
h(R);
|
|
1991
|
+
}, e[50] = h, e[51] = Se) : Se = e[51];
|
|
1975
1992
|
const De = Se;
|
|
1976
1993
|
let we;
|
|
1977
|
-
return e[52] !== Ae || e[53] !==
|
|
1994
|
+
return e[52] !== Ae || e[53] !== u || e[54] !== c || e[55] !== b || e[56] !== F || e[57] !== L || e[58] !== O || e[59] !== M || e[60] !== n || e[61] !== j || e[62] !== p || e[63] !== h || e[64] !== B || e[65] !== P || e[66] !== V || e[67] !== A || e[68] !== pe || e[69] !== Fe || e[70] !== De || e[71] !== Oe || e[72] !== i ? (we = {
|
|
1978
1995
|
modes: n,
|
|
1979
1996
|
units: i,
|
|
1980
|
-
distance:
|
|
1981
|
-
clearLayerOnStart:
|
|
1997
|
+
distance: c,
|
|
1998
|
+
clearLayerOnStart: u,
|
|
1982
1999
|
modeSelected: M,
|
|
1983
2000
|
enabled: b,
|
|
1984
|
-
finished:
|
|
1985
|
-
locale:
|
|
2001
|
+
finished: F,
|
|
2002
|
+
locale: L,
|
|
1986
2003
|
modeInstance: O,
|
|
1987
|
-
positions:
|
|
1988
|
-
unit:
|
|
2004
|
+
positions: j,
|
|
2005
|
+
unit: Oe,
|
|
1989
2006
|
setDistance: p,
|
|
1990
|
-
setModeSelected:
|
|
1991
|
-
setFinished:
|
|
1992
|
-
setLocale:
|
|
1993
|
-
setPositions:
|
|
1994
|
-
setUnit:
|
|
1995
|
-
setEnabled:
|
|
2007
|
+
setModeSelected: A,
|
|
2008
|
+
setFinished: B,
|
|
2009
|
+
setLocale: P,
|
|
2010
|
+
setPositions: pe,
|
|
2011
|
+
setUnit: Fe,
|
|
2012
|
+
setEnabled: h,
|
|
1996
2013
|
toggleLayer: De,
|
|
1997
2014
|
clearLayer: Ae,
|
|
1998
|
-
setModeInstance:
|
|
1999
|
-
}, e[52] = Ae, e[53] =
|
|
2015
|
+
setModeInstance: V
|
|
2016
|
+
}, e[52] = Ae, e[53] = u, e[54] = c, e[55] = b, e[56] = F, e[57] = L, e[58] = O, e[59] = M, e[60] = n, e[61] = j, e[62] = p, e[63] = h, e[64] = B, e[65] = P, e[66] = V, e[67] = A, e[68] = pe, e[69] = Fe, e[70] = De, e[71] = Oe, e[72] = i, e[73] = we) : we = e[73], we;
|
|
2000
2017
|
}
|
|
2001
2018
|
function pn(r) {
|
|
2002
2019
|
return r.setUnit;
|
|
@@ -2023,7 +2040,7 @@ function Sn(r) {
|
|
|
2023
2040
|
return r.setDistance;
|
|
2024
2041
|
}
|
|
2025
2042
|
function wn(r) {
|
|
2026
|
-
const e =
|
|
2043
|
+
const e = D(42), {
|
|
2027
2044
|
mapId: t,
|
|
2028
2045
|
textOptions: s,
|
|
2029
2046
|
children: n
|
|
@@ -2035,182 +2052,229 @@ function wn(r) {
|
|
|
2035
2052
|
const {
|
|
2036
2053
|
modes: i,
|
|
2037
2054
|
units: a,
|
|
2038
|
-
distance:
|
|
2039
|
-
setDistance:
|
|
2040
|
-
clearLayerOnStart:
|
|
2055
|
+
distance: c,
|
|
2056
|
+
setDistance: l,
|
|
2057
|
+
clearLayerOnStart: y,
|
|
2041
2058
|
modeSelected: p,
|
|
2042
2059
|
setModeSelected: g,
|
|
2043
|
-
enabled:
|
|
2060
|
+
enabled: u,
|
|
2044
2061
|
setEnabled: m,
|
|
2045
2062
|
finished: b,
|
|
2046
|
-
setFinished:
|
|
2047
|
-
locale:
|
|
2048
|
-
setLocale:
|
|
2063
|
+
setFinished: w,
|
|
2064
|
+
locale: f,
|
|
2065
|
+
setLocale: h,
|
|
2049
2066
|
modeInstance: S,
|
|
2050
2067
|
setModeInstance: M,
|
|
2051
|
-
positions:
|
|
2068
|
+
positions: T,
|
|
2052
2069
|
setPositions: E,
|
|
2053
|
-
unit:
|
|
2070
|
+
unit: A,
|
|
2054
2071
|
setUnit: U,
|
|
2055
|
-
clearLayer:
|
|
2056
|
-
toggleLayer:
|
|
2057
|
-
} =
|
|
2058
|
-
let
|
|
2059
|
-
e[2] !== p || e[3] !== i || e[4] !== M || e[5] !== E ? (
|
|
2072
|
+
clearLayer: F,
|
|
2073
|
+
toggleLayer: q
|
|
2074
|
+
} = kt(o);
|
|
2075
|
+
let N;
|
|
2076
|
+
e[2] !== p || e[3] !== i || e[4] !== M || e[5] !== E ? (N = () => {
|
|
2060
2077
|
if (p && i[p]) {
|
|
2061
|
-
const
|
|
2062
|
-
M(new
|
|
2078
|
+
const P = i[p].mode;
|
|
2079
|
+
M(new P());
|
|
2063
2080
|
}
|
|
2064
2081
|
return () => {
|
|
2065
2082
|
E([]);
|
|
2066
2083
|
};
|
|
2067
|
-
}, e[2] = p, e[3] = i, e[4] = M, e[5] = E, e[6] =
|
|
2068
|
-
let
|
|
2069
|
-
e[7] !== p || e[8] !== i || e[9] !== m || e[10] !== M || e[11] !== E ? (
|
|
2084
|
+
}, e[2] = p, e[3] = i, e[4] = M, e[5] = E, e[6] = N) : N = e[6];
|
|
2085
|
+
let B;
|
|
2086
|
+
e[7] !== p || e[8] !== i || e[9] !== m || e[10] !== M || e[11] !== E ? (B = [i, p, E, M, m], e[7] = p, e[8] = i, e[9] = m, e[10] = M, e[11] = E, e[12] = B) : B = e[12], W(N, B);
|
|
2070
2087
|
let _;
|
|
2071
|
-
e[13] !==
|
|
2072
|
-
|
|
2073
|
-
}, e[13] =
|
|
2074
|
-
const
|
|
2088
|
+
e[13] !== q || e[14] !== F || e[15] !== y || e[16] !== b ? (_ = (P) => {
|
|
2089
|
+
P && (y || !b) && F(), q(P);
|
|
2090
|
+
}, e[13] = q, e[14] = F, e[15] = y, e[16] = b, e[17] = _) : _ = e[17];
|
|
2091
|
+
const L = _, d = !!y;
|
|
2075
2092
|
let v;
|
|
2076
|
-
return e[18] !== n || e[19] !==
|
|
2093
|
+
return e[18] !== n || e[19] !== F || e[20] !== c || e[21] !== u || e[22] !== b || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== T || e[29] !== l || e[30] !== m || e[31] !== w || e[32] !== h || e[33] !== g || e[34] !== E || e[35] !== U || e[36] !== d || e[37] !== s || e[38] !== L || e[39] !== A || e[40] !== a ? (v = n({
|
|
2077
2094
|
mapId: t,
|
|
2078
|
-
distance:
|
|
2079
|
-
enabled:
|
|
2095
|
+
distance: c,
|
|
2096
|
+
enabled: u,
|
|
2080
2097
|
finished: b,
|
|
2081
|
-
locale:
|
|
2082
|
-
positions:
|
|
2083
|
-
unit:
|
|
2098
|
+
locale: f,
|
|
2099
|
+
positions: T,
|
|
2100
|
+
unit: A,
|
|
2084
2101
|
clearLayerOnStart: d,
|
|
2085
2102
|
modeSelected: p,
|
|
2086
2103
|
modes: i,
|
|
2087
2104
|
units: a,
|
|
2088
|
-
value:
|
|
2089
|
-
meters:
|
|
2090
|
-
unit:
|
|
2091
|
-
locale:
|
|
2105
|
+
value: Ce({
|
|
2106
|
+
meters: c,
|
|
2107
|
+
unit: A,
|
|
2108
|
+
locale: f,
|
|
2092
2109
|
options: s
|
|
2093
2110
|
}),
|
|
2094
2111
|
modeInstance: S,
|
|
2095
2112
|
setModeSelected: g,
|
|
2096
|
-
setDistance:
|
|
2097
|
-
setFinished:
|
|
2098
|
-
setLocale:
|
|
2113
|
+
setDistance: l,
|
|
2114
|
+
setFinished: w,
|
|
2115
|
+
setLocale: h,
|
|
2099
2116
|
setPositions: E,
|
|
2100
2117
|
setUnit: U,
|
|
2101
2118
|
setEnabled: m,
|
|
2102
|
-
toggleLayer:
|
|
2103
|
-
clearLayer:
|
|
2104
|
-
}), e[18] = n, e[19] =
|
|
2119
|
+
toggleLayer: L,
|
|
2120
|
+
clearLayer: F
|
|
2121
|
+
}), e[18] = n, e[19] = F, e[20] = c, e[21] = u, e[22] = b, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = T, e[29] = l, e[30] = m, e[31] = w, e[32] = h, e[33] = g, e[34] = E, e[35] = U, e[36] = d, e[37] = s, e[38] = L, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2105
2122
|
}
|
|
2106
|
-
const
|
|
2107
|
-
function
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2123
|
+
const Tn = [oe];
|
|
2124
|
+
function Mn(r) {
|
|
2125
|
+
const e = D(50), {
|
|
2126
|
+
children: t,
|
|
2127
|
+
mapId: s,
|
|
2128
|
+
defaultProps: n,
|
|
2129
|
+
layerProps: o,
|
|
2130
|
+
textOptions: i
|
|
2131
|
+
} = r;
|
|
2132
|
+
let a;
|
|
2133
|
+
e[0] !== n ? (a = n === void 0 ? {
|
|
2113
2134
|
styles: rt.styles
|
|
2114
|
-
},
|
|
2115
|
-
layerProps: s = {},
|
|
2116
|
-
textOptions: n
|
|
2117
|
-
}) {
|
|
2135
|
+
} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
2118
2136
|
const {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2137
|
+
styles: c
|
|
2138
|
+
} = a, l = c === void 0 ? rt.styles : c;
|
|
2139
|
+
let y;
|
|
2140
|
+
e[2] !== s ? (y = {
|
|
2141
|
+
mapId: s
|
|
2142
|
+
}, e[2] = s, e[3] = y) : y = e[3];
|
|
2143
|
+
const {
|
|
2144
|
+
setDistance: p,
|
|
2145
|
+
clearLayerOnStart: g,
|
|
2146
|
+
enabled: u,
|
|
2147
|
+
finished: m,
|
|
2148
|
+
setFinished: b,
|
|
2149
|
+
locale: w,
|
|
2150
|
+
setPositions: f,
|
|
2151
|
+
unit: h,
|
|
2152
|
+
modeInstance: S
|
|
2153
|
+
} = kt(y), M = me(On), T = x(Cn), E = x(Ln), A = x(Pn);
|
|
2154
|
+
let U;
|
|
2155
|
+
e[4] !== s ? (U = (V) => {
|
|
2156
|
+
var I;
|
|
2157
|
+
return (I = V.maps[s]) == null ? void 0 : I.layers.filter(En);
|
|
2158
|
+
}, e[4] = s, e[5] = U) : U = e[5];
|
|
2159
|
+
const F = x(gt(U)), q = x(_n);
|
|
2160
|
+
let N;
|
|
2161
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (N = {}, e[6] = N) : N = e[6];
|
|
2162
|
+
const B = Ee(N);
|
|
2163
|
+
let _;
|
|
2164
|
+
e[7] !== s ? (_ = {
|
|
2165
|
+
mapId: s,
|
|
2166
|
+
layerId: oe
|
|
2167
|
+
}, e[7] = s, e[8] = _) : _ = e[8], Ct(_);
|
|
2168
|
+
let L;
|
|
2169
|
+
e[9] !== E || e[10] !== u || e[11] !== q || e[12] !== s || e[13] !== A || e[14] !== T ? (L = () => {
|
|
2170
|
+
var I;
|
|
2171
|
+
const V = (I = q(s)) == null ? void 0 : I.props.controller;
|
|
2172
|
+
return u && (E(s, [oe]), T(s, {
|
|
2173
|
+
doubleClickZoom: !1
|
|
2174
|
+
})), () => {
|
|
2175
|
+
A(s, [oe]), T(s, V);
|
|
2176
|
+
};
|
|
2177
|
+
}, e[9] = E, e[10] = u, e[11] = q, e[12] = s, e[13] = A, e[14] = T, e[15] = L) : L = e[15];
|
|
2178
|
+
let d;
|
|
2179
|
+
e[16] !== E || e[17] !== g || e[18] !== u || e[19] !== q || e[20] !== s || e[21] !== A || e[22] !== T ? (d = [E, g, s, A, u, q, T], e[16] = E, e[17] = g, e[18] = u, e[19] = q, e[20] = s, e[21] = A, e[22] = T, e[23] = d) : d = e[23], W(L, d);
|
|
2180
|
+
let v, P;
|
|
2181
|
+
e[24] !== u || e[25] !== q || e[26] !== s || e[27] !== F || e[28] !== M ? (v = () => {
|
|
2182
|
+
F == null || F.forEach((V) => {
|
|
2183
|
+
var H;
|
|
2184
|
+
const I = (H = q(s)) == null ? void 0 : H.props.layers.find((fe) => fe.props.id === V);
|
|
2185
|
+
u && (B.current[V] = I == null ? void 0 : I.props.pickable);
|
|
2186
|
+
const j = !u && (B.current[V] ?? (I == null ? void 0 : I.props.pickable));
|
|
2187
|
+
M(V, {
|
|
2146
2188
|
props: {
|
|
2147
|
-
pickable:
|
|
2189
|
+
pickable: j
|
|
2148
2190
|
}
|
|
2149
2191
|
});
|
|
2150
2192
|
});
|
|
2151
|
-
}, [
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2193
|
+
}, P = [u, q, s, F, M], e[24] = u, e[25] = q, e[26] = s, e[27] = F, e[28] = M, e[29] = v, e[30] = P) : (v = e[29], P = e[30]), W(v, P);
|
|
2194
|
+
let k;
|
|
2195
|
+
e[31] !== S || e[32] !== p || e[33] !== b || e[34] !== f ? (k = (V) => {
|
|
2196
|
+
const {
|
|
2197
|
+
editType: I,
|
|
2198
|
+
editContext: j
|
|
2199
|
+
} = V;
|
|
2200
|
+
if (I === X.cancel) {
|
|
2201
|
+
S.resetClickSequence();
|
|
2158
2202
|
return;
|
|
2159
2203
|
}
|
|
2160
|
-
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
}, [
|
|
2164
|
-
|
|
2165
|
-
|
|
2204
|
+
I === X.addPosition && p(j.distance), b(!!j.finished);
|
|
2205
|
+
const H = j.positions;
|
|
2206
|
+
H != null && H.length && f(H);
|
|
2207
|
+
}, e[31] = S, e[32] = p, e[33] = b, e[34] = f, e[35] = k) : k = e[35];
|
|
2208
|
+
const O = k;
|
|
2209
|
+
let C, $;
|
|
2210
|
+
return e[36] !== u || e[37] !== m || e[38] !== o || e[39] !== w || e[40] !== S || e[41] !== O || e[42] !== M || e[43] !== l.colors.editing || e[44] !== l.colors.finished || e[45] !== l.colors.point || e[46] !== i || e[47] !== h ? (C = () => {
|
|
2211
|
+
const V = m ? l.colors.finished : l.colors.editing, I = m ? l.colors.finished : l.colors.point, j = cn({
|
|
2166
2212
|
layerProps: {
|
|
2167
|
-
...
|
|
2168
|
-
pickable:
|
|
2213
|
+
...o,
|
|
2214
|
+
pickable: (o == null ? void 0 : o.pickable) ?? !m
|
|
2169
2215
|
},
|
|
2170
|
-
enabled:
|
|
2171
|
-
guideColor:
|
|
2172
|
-
pointColor:
|
|
2173
|
-
locale:
|
|
2174
|
-
onEdit:
|
|
2175
|
-
unit:
|
|
2176
|
-
mode:
|
|
2177
|
-
textOptions:
|
|
2216
|
+
enabled: u,
|
|
2217
|
+
guideColor: V,
|
|
2218
|
+
pointColor: I,
|
|
2219
|
+
locale: w,
|
|
2220
|
+
onEdit: O,
|
|
2221
|
+
unit: h,
|
|
2222
|
+
mode: S,
|
|
2223
|
+
textOptions: i
|
|
2178
2224
|
});
|
|
2179
|
-
|
|
2180
|
-
}, [l,
|
|
2225
|
+
M(oe, j);
|
|
2226
|
+
}, $ = [m, S, o, w, O, M, l.colors.editing, l.colors.finished, l.colors.point, i, h, u], e[36] = u, e[37] = m, e[38] = o, e[39] = w, e[40] = S, e[41] = O, e[42] = M, e[43] = l.colors.editing, e[44] = l.colors.finished, e[45] = l.colors.point, e[46] = i, e[47] = h, e[48] = C, e[49] = $) : (C = e[48], $ = e[49]), W(C, $), t;
|
|
2227
|
+
}
|
|
2228
|
+
function _n(r) {
|
|
2229
|
+
return r.getDeckInstance;
|
|
2181
2230
|
}
|
|
2182
|
-
Tn.Controls = wn;
|
|
2183
2231
|
function En(r) {
|
|
2184
|
-
|
|
2232
|
+
return !Tn.includes(r);
|
|
2233
|
+
}
|
|
2234
|
+
function Pn(r) {
|
|
2235
|
+
return r.removeLayers;
|
|
2236
|
+
}
|
|
2237
|
+
function Ln(r) {
|
|
2238
|
+
return r.addLayers;
|
|
2239
|
+
}
|
|
2240
|
+
function Cn(r) {
|
|
2241
|
+
return r.setController;
|
|
2242
|
+
}
|
|
2243
|
+
function On(r) {
|
|
2244
|
+
return r.setLayer;
|
|
2245
|
+
}
|
|
2246
|
+
Mn.Controls = wn;
|
|
2247
|
+
function kn(r) {
|
|
2248
|
+
const e = D(7), {
|
|
2185
2249
|
mapId: t
|
|
2186
2250
|
} = r;
|
|
2187
2251
|
let s;
|
|
2188
|
-
e[0] !== t ? (s = (
|
|
2252
|
+
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2189
2253
|
const {
|
|
2190
2254
|
layers: n
|
|
2191
|
-
} =
|
|
2255
|
+
} = x(s), o = me(An);
|
|
2192
2256
|
let i, a;
|
|
2193
2257
|
if (e[2] !== o || e[3] !== n) {
|
|
2194
|
-
let
|
|
2195
|
-
e[5] !== o ? (
|
|
2258
|
+
let l;
|
|
2259
|
+
e[5] !== o ? (l = (y) => o[y], e[5] = o, e[6] = l) : l = e[6], a = n.map(l).filter(Fn), e[2] = o, e[3] = n, e[4] = a;
|
|
2196
2260
|
} else
|
|
2197
2261
|
a = e[4];
|
|
2198
2262
|
return i = a, i;
|
|
2199
2263
|
}
|
|
2200
|
-
function
|
|
2264
|
+
function Fn(r) {
|
|
2201
2265
|
return !!r;
|
|
2202
2266
|
}
|
|
2203
|
-
function
|
|
2267
|
+
function An(r) {
|
|
2204
2268
|
return r.layers;
|
|
2205
2269
|
}
|
|
2206
|
-
const at = [
|
|
2207
|
-
function
|
|
2270
|
+
const at = [Le, ue, oe];
|
|
2271
|
+
function Ft(r) {
|
|
2208
2272
|
const e = r.filter((s) => !at.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = at.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
|
|
2209
2273
|
return [...e, ...t];
|
|
2210
2274
|
}
|
|
2211
|
-
const
|
|
2212
|
-
function
|
|
2213
|
-
const e =
|
|
2275
|
+
const Dn = 200;
|
|
2276
|
+
function to(r) {
|
|
2277
|
+
const e = D(51);
|
|
2214
2278
|
let t, s, n, o;
|
|
2215
2279
|
e[0] !== r ? ({
|
|
2216
2280
|
id: t,
|
|
@@ -2219,78 +2283,81 @@ function Kr(r) {
|
|
|
2219
2283
|
...o
|
|
2220
2284
|
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
|
|
2221
2285
|
let i;
|
|
2222
|
-
e[5] !== t ? (i = (
|
|
2223
|
-
const a =
|
|
2224
|
-
let
|
|
2225
|
-
e[7] !== t ? (
|
|
2226
|
-
const
|
|
2227
|
-
let
|
|
2228
|
-
e[9] !== t ? (
|
|
2229
|
-
const p =
|
|
2230
|
-
let
|
|
2231
|
-
e[11] !== t ? (
|
|
2232
|
-
const m =
|
|
2233
|
-
let
|
|
2234
|
-
e[13] !== t ? (
|
|
2286
|
+
e[5] !== t ? (i = ($) => $.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2287
|
+
const a = x(i);
|
|
2288
|
+
let c;
|
|
2289
|
+
e[7] !== t ? (c = ($) => $.maps[t].instanceRef, e[7] = t, e[8] = c) : c = e[8];
|
|
2290
|
+
const l = x(c);
|
|
2291
|
+
let y;
|
|
2292
|
+
e[9] !== t ? (y = ($) => $.maps[t].overlayRef, e[9] = t, e[10] = y) : y = e[10];
|
|
2293
|
+
const p = x(y), g = Ee(null);
|
|
2294
|
+
let u;
|
|
2295
|
+
e[11] !== t ? (u = ($) => $.viewStates[t], e[11] = t, e[12] = u) : u = e[12];
|
|
2296
|
+
const m = x(u);
|
|
2297
|
+
let b;
|
|
2298
|
+
e[13] !== t ? (b = ($) => $.maps[t].controller, e[13] = t, e[14] = b) : b = e[14];
|
|
2299
|
+
const w = x(b), f = x(qn), h = x(Bn), S = x(Un), M = x(xn), T = x($n);
|
|
2300
|
+
let E;
|
|
2301
|
+
e[15] !== t ? (E = {
|
|
2235
2302
|
mapId: t
|
|
2236
|
-
}, e[
|
|
2237
|
-
const
|
|
2238
|
-
let
|
|
2239
|
-
e[
|
|
2240
|
-
const
|
|
2241
|
-
let
|
|
2242
|
-
e[
|
|
2243
|
-
const
|
|
2303
|
+
}, e[15] = t, e[16] = E) : E = e[16];
|
|
2304
|
+
const A = kn(E);
|
|
2305
|
+
let U, F;
|
|
2306
|
+
e[17] !== A ? (F = Ft(A), e[17] = A, e[18] = F) : F = e[18], U = F;
|
|
2307
|
+
const q = U;
|
|
2308
|
+
let N;
|
|
2309
|
+
e[19] !== t || e[20] !== n || e[21] !== h || e[22] !== T ? (N = ($) => {
|
|
2310
|
+
const V = h;
|
|
2244
2311
|
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2245
|
-
|
|
2246
|
-
},
|
|
2247
|
-
n(
|
|
2312
|
+
T(t);
|
|
2313
|
+
}, Dn), n) {
|
|
2314
|
+
n($, V);
|
|
2248
2315
|
return;
|
|
2249
2316
|
}
|
|
2250
|
-
|
|
2251
|
-
}, e[
|
|
2252
|
-
const
|
|
2253
|
-
let B;
|
|
2254
|
-
e[22] !== t || e[23] !== s || e[24] !== u || e[25] !== S ? (B = (O) => {
|
|
2255
|
-
u(t, O), s == null || s(O), S(t);
|
|
2256
|
-
}, e[22] = t, e[23] = s, e[24] = u, e[25] = S, e[26] = B) : B = e[26];
|
|
2257
|
-
const x = B;
|
|
2317
|
+
V(t, $.viewState);
|
|
2318
|
+
}, e[19] = t, e[20] = n, e[21] = h, e[22] = T, e[23] = N) : N = e[23];
|
|
2319
|
+
const B = N;
|
|
2258
2320
|
let _;
|
|
2259
|
-
e[
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
const L = v;
|
|
2321
|
+
e[24] !== t || e[25] !== s || e[26] !== S || e[27] !== T ? (_ = ($) => {
|
|
2322
|
+
S(t, $), s == null || s($), T(t);
|
|
2323
|
+
}, e[24] = t, e[25] = s, e[26] = S, e[27] = T, e[28] = _) : _ = e[28];
|
|
2324
|
+
const L = _;
|
|
2325
|
+
let d;
|
|
2326
|
+
e[29] !== f || e[30] !== t || e[31] !== o || e[32] !== M ? (d = ($) => {
|
|
2327
|
+
var j, H;
|
|
2328
|
+
const V = (j = f(t)) == null ? void 0 : j.props.layers, I = !!(V != null && V.every(Rn));
|
|
2329
|
+
M(t, I), (H = o.onAfterRender) == null || H.call(o, $);
|
|
2330
|
+
}, e[29] = f, e[30] = t, e[31] = o, e[32] = M, e[33] = d) : d = e[33];
|
|
2331
|
+
const v = d, P = o.onDragEnd;
|
|
2271
2332
|
let k;
|
|
2272
|
-
|
|
2333
|
+
e[34] !== P || e[35] !== t || e[36] !== T ? (k = (...$) => {
|
|
2334
|
+
const V = $;
|
|
2335
|
+
T(t), P && P(...V);
|
|
2336
|
+
}, e[34] = P, e[35] = t, e[36] = T, e[37] = k) : k = e[37];
|
|
2337
|
+
const O = k;
|
|
2338
|
+
let C;
|
|
2339
|
+
return e[38] !== a || e[39] !== q || e[40] !== w || e[41] !== v || e[42] !== O || e[43] !== L || e[44] !== B || e[45] !== t || e[46] !== l || e[47] !== p || e[48] !== o || e[49] !== m ? (C = /* @__PURE__ */ Z(Cs, { ...o, controller: w, id: t, layers: q, instanceRef: l, overlayRef: p, basemap: a, initialViewState: m, onLoad: L, onViewStateChange: B, onAfterRender: v, onDragEnd: O }), e[38] = a, e[39] = q, e[40] = w, e[41] = v, e[42] = O, e[43] = L, e[44] = B, e[45] = t, e[46] = l, e[47] = p, e[48] = o, e[49] = m, e[50] = C) : C = e[50], C;
|
|
2273
2340
|
}
|
|
2274
|
-
function
|
|
2341
|
+
function Rn(r) {
|
|
2275
2342
|
return r == null ? void 0 : r.isLoaded;
|
|
2276
2343
|
}
|
|
2277
|
-
function
|
|
2344
|
+
function $n(r) {
|
|
2278
2345
|
return r.updateViewPort;
|
|
2279
2346
|
}
|
|
2280
|
-
function
|
|
2347
|
+
function xn(r) {
|
|
2281
2348
|
return r.setLayersLoad;
|
|
2282
2349
|
}
|
|
2283
|
-
function
|
|
2350
|
+
function Un(r) {
|
|
2284
2351
|
return r.setLoad;
|
|
2285
2352
|
}
|
|
2286
|
-
function
|
|
2353
|
+
function Bn(r) {
|
|
2287
2354
|
return r.setViewState;
|
|
2288
2355
|
}
|
|
2289
|
-
function
|
|
2356
|
+
function qn(r) {
|
|
2290
2357
|
return r.getDeckInstance;
|
|
2291
2358
|
}
|
|
2292
|
-
var
|
|
2293
|
-
function
|
|
2359
|
+
var _e = { exports: {} }, lt;
|
|
2360
|
+
function jn() {
|
|
2294
2361
|
return lt || (lt = 1, function(r, e) {
|
|
2295
2362
|
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Te < "u" && Te, s = function() {
|
|
2296
2363
|
function o() {
|
|
@@ -2301,7 +2368,7 @@ function Rn() {
|
|
|
2301
2368
|
(function(o) {
|
|
2302
2369
|
(function(i) {
|
|
2303
2370
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2304
|
-
typeof Te < "u" && Te || {},
|
|
2371
|
+
typeof Te < "u" && Te || {}, c = {
|
|
2305
2372
|
searchParams: "URLSearchParams" in a,
|
|
2306
2373
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2307
2374
|
blob: "FileReader" in a && "Blob" in a && function() {
|
|
@@ -2314,11 +2381,11 @@ function Rn() {
|
|
|
2314
2381
|
formData: "FormData" in a,
|
|
2315
2382
|
arrayBuffer: "ArrayBuffer" in a
|
|
2316
2383
|
};
|
|
2317
|
-
function
|
|
2384
|
+
function l(d) {
|
|
2318
2385
|
return d && DataView.prototype.isPrototypeOf(d);
|
|
2319
2386
|
}
|
|
2320
|
-
if (
|
|
2321
|
-
var
|
|
2387
|
+
if (c.arrayBuffer)
|
|
2388
|
+
var y = [
|
|
2322
2389
|
"[object Int8Array]",
|
|
2323
2390
|
"[object Uint8Array]",
|
|
2324
2391
|
"[object Uint8ClampedArray]",
|
|
@@ -2329,30 +2396,30 @@ function Rn() {
|
|
|
2329
2396
|
"[object Float32Array]",
|
|
2330
2397
|
"[object Float64Array]"
|
|
2331
2398
|
], p = ArrayBuffer.isView || function(d) {
|
|
2332
|
-
return d &&
|
|
2399
|
+
return d && y.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2333
2400
|
};
|
|
2334
2401
|
function g(d) {
|
|
2335
2402
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
2336
2403
|
throw new TypeError('Invalid character in header field name: "' + d + '"');
|
|
2337
2404
|
return d.toLowerCase();
|
|
2338
2405
|
}
|
|
2339
|
-
function
|
|
2406
|
+
function u(d) {
|
|
2340
2407
|
return typeof d != "string" && (d = String(d)), d;
|
|
2341
2408
|
}
|
|
2342
2409
|
function m(d) {
|
|
2343
2410
|
var v = {
|
|
2344
2411
|
next: function() {
|
|
2345
|
-
var
|
|
2346
|
-
return { done:
|
|
2412
|
+
var P = d.shift();
|
|
2413
|
+
return { done: P === void 0, value: P };
|
|
2347
2414
|
}
|
|
2348
2415
|
};
|
|
2349
|
-
return
|
|
2416
|
+
return c.iterable && (v[Symbol.iterator] = function() {
|
|
2350
2417
|
return v;
|
|
2351
2418
|
}), v;
|
|
2352
2419
|
}
|
|
2353
2420
|
function b(d) {
|
|
2354
|
-
this.map = {}, d instanceof b ? d.forEach(function(v,
|
|
2355
|
-
this.append(
|
|
2421
|
+
this.map = {}, d instanceof b ? d.forEach(function(v, P) {
|
|
2422
|
+
this.append(P, v);
|
|
2356
2423
|
}, this) : Array.isArray(d) ? d.forEach(function(v) {
|
|
2357
2424
|
if (v.length != 2)
|
|
2358
2425
|
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + v.length);
|
|
@@ -2362,9 +2429,9 @@ function Rn() {
|
|
|
2362
2429
|
}, this);
|
|
2363
2430
|
}
|
|
2364
2431
|
b.prototype.append = function(d, v) {
|
|
2365
|
-
d = g(d), v =
|
|
2366
|
-
var
|
|
2367
|
-
this.map[d] =
|
|
2432
|
+
d = g(d), v = u(v);
|
|
2433
|
+
var P = this.map[d];
|
|
2434
|
+
this.map[d] = P ? P + ", " + v : v;
|
|
2368
2435
|
}, b.prototype.delete = function(d) {
|
|
2369
2436
|
delete this.map[g(d)];
|
|
2370
2437
|
}, b.prototype.get = function(d) {
|
|
@@ -2372,14 +2439,14 @@ function Rn() {
|
|
|
2372
2439
|
}, b.prototype.has = function(d) {
|
|
2373
2440
|
return this.map.hasOwnProperty(g(d));
|
|
2374
2441
|
}, b.prototype.set = function(d, v) {
|
|
2375
|
-
this.map[g(d)] =
|
|
2442
|
+
this.map[g(d)] = u(v);
|
|
2376
2443
|
}, b.prototype.forEach = function(d, v) {
|
|
2377
|
-
for (var
|
|
2378
|
-
this.map.hasOwnProperty(
|
|
2444
|
+
for (var P in this.map)
|
|
2445
|
+
this.map.hasOwnProperty(P) && d.call(v, this.map[P], P, this);
|
|
2379
2446
|
}, b.prototype.keys = function() {
|
|
2380
2447
|
var d = [];
|
|
2381
|
-
return this.forEach(function(v,
|
|
2382
|
-
d.push(
|
|
2448
|
+
return this.forEach(function(v, P) {
|
|
2449
|
+
d.push(P);
|
|
2383
2450
|
}), m(d);
|
|
2384
2451
|
}, b.prototype.values = function() {
|
|
2385
2452
|
var d = [];
|
|
@@ -2388,40 +2455,40 @@ function Rn() {
|
|
|
2388
2455
|
}), m(d);
|
|
2389
2456
|
}, b.prototype.entries = function() {
|
|
2390
2457
|
var d = [];
|
|
2391
|
-
return this.forEach(function(v,
|
|
2392
|
-
d.push([
|
|
2458
|
+
return this.forEach(function(v, P) {
|
|
2459
|
+
d.push([P, v]);
|
|
2393
2460
|
}), m(d);
|
|
2394
|
-
},
|
|
2395
|
-
function
|
|
2461
|
+
}, c.iterable && (b.prototype[Symbol.iterator] = b.prototype.entries);
|
|
2462
|
+
function w(d) {
|
|
2396
2463
|
if (!d._noBody) {
|
|
2397
2464
|
if (d.bodyUsed)
|
|
2398
2465
|
return Promise.reject(new TypeError("Already read"));
|
|
2399
2466
|
d.bodyUsed = !0;
|
|
2400
2467
|
}
|
|
2401
2468
|
}
|
|
2402
|
-
function
|
|
2403
|
-
return new Promise(function(v,
|
|
2469
|
+
function f(d) {
|
|
2470
|
+
return new Promise(function(v, P) {
|
|
2404
2471
|
d.onload = function() {
|
|
2405
2472
|
v(d.result);
|
|
2406
2473
|
}, d.onerror = function() {
|
|
2407
|
-
|
|
2474
|
+
P(d.error);
|
|
2408
2475
|
};
|
|
2409
2476
|
});
|
|
2410
2477
|
}
|
|
2411
|
-
function
|
|
2412
|
-
var v = new FileReader(),
|
|
2413
|
-
return v.readAsArrayBuffer(d),
|
|
2478
|
+
function h(d) {
|
|
2479
|
+
var v = new FileReader(), P = f(v);
|
|
2480
|
+
return v.readAsArrayBuffer(d), P;
|
|
2414
2481
|
}
|
|
2415
2482
|
function S(d) {
|
|
2416
|
-
var v = new FileReader(),
|
|
2417
|
-
return v.readAsText(d, O),
|
|
2483
|
+
var v = new FileReader(), P = f(v), k = /charset=([A-Za-z0-9_-]+)/.exec(d.type), O = k ? k[1] : "utf-8";
|
|
2484
|
+
return v.readAsText(d, O), P;
|
|
2418
2485
|
}
|
|
2419
2486
|
function M(d) {
|
|
2420
|
-
for (var v = new Uint8Array(d),
|
|
2421
|
-
|
|
2422
|
-
return
|
|
2487
|
+
for (var v = new Uint8Array(d), P = new Array(v.length), k = 0; k < v.length; k++)
|
|
2488
|
+
P[k] = String.fromCharCode(v[k]);
|
|
2489
|
+
return P.join("");
|
|
2423
2490
|
}
|
|
2424
|
-
function
|
|
2491
|
+
function T(d) {
|
|
2425
2492
|
if (d.slice)
|
|
2426
2493
|
return d.slice(0);
|
|
2427
2494
|
var v = new Uint8Array(d.byteLength);
|
|
@@ -2429,9 +2496,9 @@ function Rn() {
|
|
|
2429
2496
|
}
|
|
2430
2497
|
function E() {
|
|
2431
2498
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2432
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d :
|
|
2433
|
-
},
|
|
2434
|
-
var d =
|
|
2499
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : c.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : c.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : c.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : c.arrayBuffer && c.blob && l(d) ? (this._bodyArrayBuffer = T(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || p(d)) ? this._bodyArrayBuffer = T(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) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2500
|
+
}, c.blob && (this.blob = function() {
|
|
2501
|
+
var d = w(this);
|
|
2435
2502
|
if (d)
|
|
2436
2503
|
return d;
|
|
2437
2504
|
if (this._bodyBlob)
|
|
@@ -2443,7 +2510,7 @@ function Rn() {
|
|
|
2443
2510
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2444
2511
|
}), this.arrayBuffer = function() {
|
|
2445
2512
|
if (this._bodyArrayBuffer) {
|
|
2446
|
-
var d =
|
|
2513
|
+
var d = w(this);
|
|
2447
2514
|
return d || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
2448
2515
|
this._bodyArrayBuffer.buffer.slice(
|
|
2449
2516
|
this._bodyArrayBuffer.byteOffset,
|
|
@@ -2451,12 +2518,12 @@ function Rn() {
|
|
|
2451
2518
|
)
|
|
2452
2519
|
) : Promise.resolve(this._bodyArrayBuffer));
|
|
2453
2520
|
} else {
|
|
2454
|
-
if (
|
|
2455
|
-
return this.blob().then(
|
|
2521
|
+
if (c.blob)
|
|
2522
|
+
return this.blob().then(h);
|
|
2456
2523
|
throw new Error("could not read as ArrayBuffer");
|
|
2457
2524
|
}
|
|
2458
2525
|
}, this.text = function() {
|
|
2459
|
-
var d =
|
|
2526
|
+
var d = w(this);
|
|
2460
2527
|
if (d)
|
|
2461
2528
|
return d;
|
|
2462
2529
|
if (this._bodyBlob)
|
|
@@ -2466,36 +2533,36 @@ function Rn() {
|
|
|
2466
2533
|
if (this._bodyFormData)
|
|
2467
2534
|
throw new Error("could not read FormData body as text");
|
|
2468
2535
|
return Promise.resolve(this._bodyText);
|
|
2469
|
-
},
|
|
2470
|
-
return this.text().then(
|
|
2536
|
+
}, c.formData && (this.formData = function() {
|
|
2537
|
+
return this.text().then(q);
|
|
2471
2538
|
}), this.json = function() {
|
|
2472
2539
|
return this.text().then(JSON.parse);
|
|
2473
2540
|
}, this;
|
|
2474
2541
|
}
|
|
2475
|
-
var
|
|
2542
|
+
var A = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2476
2543
|
function U(d) {
|
|
2477
2544
|
var v = d.toUpperCase();
|
|
2478
|
-
return
|
|
2545
|
+
return A.indexOf(v) > -1 ? v : d;
|
|
2479
2546
|
}
|
|
2480
|
-
function
|
|
2481
|
-
if (!(this instanceof
|
|
2547
|
+
function F(d, v) {
|
|
2548
|
+
if (!(this instanceof F))
|
|
2482
2549
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2483
2550
|
v = v || {};
|
|
2484
|
-
var
|
|
2485
|
-
if (d instanceof
|
|
2551
|
+
var P = v.body;
|
|
2552
|
+
if (d instanceof F) {
|
|
2486
2553
|
if (d.bodyUsed)
|
|
2487
2554
|
throw new TypeError("Already read");
|
|
2488
|
-
this.url = d.url, this.credentials = d.credentials, v.headers || (this.headers = new b(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !
|
|
2555
|
+
this.url = d.url, this.credentials = d.credentials, v.headers || (this.headers = new b(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !P && d._bodyInit != null && (P = d._bodyInit, d.bodyUsed = !0);
|
|
2489
2556
|
} else
|
|
2490
2557
|
this.url = String(d);
|
|
2491
2558
|
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new b(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2492
2559
|
if ("AbortController" in a) {
|
|
2493
|
-
var
|
|
2494
|
-
return
|
|
2560
|
+
var C = new AbortController();
|
|
2561
|
+
return C.signal;
|
|
2495
2562
|
}
|
|
2496
|
-
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") &&
|
|
2563
|
+
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && P)
|
|
2497
2564
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2498
|
-
if (this._initBody(
|
|
2565
|
+
if (this._initBody(P), (this.method === "GET" || this.method === "HEAD") && (v.cache === "no-store" || v.cache === "no-cache")) {
|
|
2499
2566
|
var k = /([?&])_=[^&]*/;
|
|
2500
2567
|
if (k.test(this.url))
|
|
2501
2568
|
this.url = this.url.replace(k, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2505,228 +2572,228 @@ function Rn() {
|
|
|
2505
2572
|
}
|
|
2506
2573
|
}
|
|
2507
2574
|
}
|
|
2508
|
-
|
|
2509
|
-
return new
|
|
2575
|
+
F.prototype.clone = function() {
|
|
2576
|
+
return new F(this, { body: this._bodyInit });
|
|
2510
2577
|
};
|
|
2511
|
-
function
|
|
2578
|
+
function q(d) {
|
|
2512
2579
|
var v = new FormData();
|
|
2513
|
-
return d.trim().split("&").forEach(function(
|
|
2514
|
-
if (
|
|
2515
|
-
var k =
|
|
2516
|
-
v.append(decodeURIComponent(O), decodeURIComponent(
|
|
2580
|
+
return d.trim().split("&").forEach(function(P) {
|
|
2581
|
+
if (P) {
|
|
2582
|
+
var k = P.split("="), O = k.shift().replace(/\+/g, " "), C = k.join("=").replace(/\+/g, " ");
|
|
2583
|
+
v.append(decodeURIComponent(O), decodeURIComponent(C));
|
|
2517
2584
|
}
|
|
2518
2585
|
}), v;
|
|
2519
2586
|
}
|
|
2520
|
-
function
|
|
2521
|
-
var v = new b(),
|
|
2522
|
-
return
|
|
2587
|
+
function N(d) {
|
|
2588
|
+
var v = new b(), P = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2589
|
+
return P.split("\r").map(function(k) {
|
|
2523
2590
|
return k.indexOf(`
|
|
2524
2591
|
`) === 0 ? k.substr(1, k.length) : k;
|
|
2525
2592
|
}).forEach(function(k) {
|
|
2526
|
-
var O = k.split(":"),
|
|
2527
|
-
if (
|
|
2528
|
-
var
|
|
2593
|
+
var O = k.split(":"), C = O.shift().trim();
|
|
2594
|
+
if (C) {
|
|
2595
|
+
var $ = O.join(":").trim();
|
|
2529
2596
|
try {
|
|
2530
|
-
v.append(
|
|
2531
|
-
} catch (
|
|
2532
|
-
console.warn("Response " +
|
|
2597
|
+
v.append(C, $);
|
|
2598
|
+
} catch (V) {
|
|
2599
|
+
console.warn("Response " + V.message);
|
|
2533
2600
|
}
|
|
2534
2601
|
}
|
|
2535
2602
|
}), v;
|
|
2536
2603
|
}
|
|
2537
|
-
E.call(
|
|
2538
|
-
function
|
|
2539
|
-
if (!(this instanceof
|
|
2604
|
+
E.call(F.prototype);
|
|
2605
|
+
function B(d, v) {
|
|
2606
|
+
if (!(this instanceof B))
|
|
2540
2607
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2541
2608
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2542
2609
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2543
2610
|
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new b(v.headers), this.url = v.url || "", this._initBody(d);
|
|
2544
2611
|
}
|
|
2545
|
-
E.call(
|
|
2546
|
-
return new
|
|
2612
|
+
E.call(B.prototype), B.prototype.clone = function() {
|
|
2613
|
+
return new B(this._bodyInit, {
|
|
2547
2614
|
status: this.status,
|
|
2548
2615
|
statusText: this.statusText,
|
|
2549
2616
|
headers: new b(this.headers),
|
|
2550
2617
|
url: this.url
|
|
2551
2618
|
});
|
|
2552
|
-
},
|
|
2553
|
-
var d = new
|
|
2619
|
+
}, B.error = function() {
|
|
2620
|
+
var d = new B(null, { status: 200, statusText: "" });
|
|
2554
2621
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2555
2622
|
};
|
|
2556
2623
|
var _ = [301, 302, 303, 307, 308];
|
|
2557
|
-
|
|
2624
|
+
B.redirect = function(d, v) {
|
|
2558
2625
|
if (_.indexOf(v) === -1)
|
|
2559
2626
|
throw new RangeError("Invalid status code");
|
|
2560
|
-
return new
|
|
2627
|
+
return new B(null, { status: v, headers: { location: d } });
|
|
2561
2628
|
}, i.DOMException = a.DOMException;
|
|
2562
2629
|
try {
|
|
2563
2630
|
new i.DOMException();
|
|
2564
2631
|
} catch {
|
|
2565
|
-
i.DOMException = function(v,
|
|
2566
|
-
this.message = v, this.name =
|
|
2632
|
+
i.DOMException = function(v, P) {
|
|
2633
|
+
this.message = v, this.name = P;
|
|
2567
2634
|
var k = Error(v);
|
|
2568
2635
|
this.stack = k.stack;
|
|
2569
2636
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2570
2637
|
}
|
|
2571
|
-
function
|
|
2572
|
-
return new Promise(function(
|
|
2573
|
-
var O = new
|
|
2638
|
+
function L(d, v) {
|
|
2639
|
+
return new Promise(function(P, k) {
|
|
2640
|
+
var O = new F(d, v);
|
|
2574
2641
|
if (O.signal && O.signal.aborted)
|
|
2575
2642
|
return k(new i.DOMException("Aborted", "AbortError"));
|
|
2576
|
-
var
|
|
2577
|
-
function
|
|
2578
|
-
|
|
2643
|
+
var C = new XMLHttpRequest();
|
|
2644
|
+
function $() {
|
|
2645
|
+
C.abort();
|
|
2579
2646
|
}
|
|
2580
|
-
|
|
2581
|
-
var
|
|
2582
|
-
statusText:
|
|
2583
|
-
headers:
|
|
2647
|
+
C.onload = function() {
|
|
2648
|
+
var j = {
|
|
2649
|
+
statusText: C.statusText,
|
|
2650
|
+
headers: N(C.getAllResponseHeaders() || "")
|
|
2584
2651
|
};
|
|
2585
|
-
O.url.indexOf("file://") === 0 && (
|
|
2586
|
-
var
|
|
2652
|
+
O.url.indexOf("file://") === 0 && (C.status < 200 || C.status > 599) ? j.status = 200 : j.status = C.status, j.url = "responseURL" in C ? C.responseURL : j.headers.get("X-Request-URL");
|
|
2653
|
+
var H = "response" in C ? C.response : C.responseText;
|
|
2587
2654
|
setTimeout(function() {
|
|
2588
|
-
|
|
2655
|
+
P(new B(H, j));
|
|
2589
2656
|
}, 0);
|
|
2590
|
-
},
|
|
2657
|
+
}, C.onerror = function() {
|
|
2591
2658
|
setTimeout(function() {
|
|
2592
2659
|
k(new TypeError("Network request failed"));
|
|
2593
2660
|
}, 0);
|
|
2594
|
-
},
|
|
2661
|
+
}, C.ontimeout = function() {
|
|
2595
2662
|
setTimeout(function() {
|
|
2596
2663
|
k(new TypeError("Network request timed out"));
|
|
2597
2664
|
}, 0);
|
|
2598
|
-
},
|
|
2665
|
+
}, C.onabort = function() {
|
|
2599
2666
|
setTimeout(function() {
|
|
2600
2667
|
k(new i.DOMException("Aborted", "AbortError"));
|
|
2601
2668
|
}, 0);
|
|
2602
2669
|
};
|
|
2603
|
-
function
|
|
2670
|
+
function V(j) {
|
|
2604
2671
|
try {
|
|
2605
|
-
return
|
|
2672
|
+
return j === "" && a.location.href ? a.location.href : j;
|
|
2606
2673
|
} catch {
|
|
2607
|
-
return
|
|
2674
|
+
return j;
|
|
2608
2675
|
}
|
|
2609
2676
|
}
|
|
2610
|
-
if (
|
|
2611
|
-
var
|
|
2612
|
-
Object.getOwnPropertyNames(v.headers).forEach(function(
|
|
2613
|
-
|
|
2614
|
-
}), O.headers.forEach(function(
|
|
2615
|
-
|
|
2677
|
+
if (C.open(O.method, V(O.url), !0), O.credentials === "include" ? C.withCredentials = !0 : O.credentials === "omit" && (C.withCredentials = !1), "responseType" in C && (c.blob ? C.responseType = "blob" : c.arrayBuffer && (C.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof b || a.Headers && v.headers instanceof a.Headers)) {
|
|
2678
|
+
var I = [];
|
|
2679
|
+
Object.getOwnPropertyNames(v.headers).forEach(function(j) {
|
|
2680
|
+
I.push(g(j)), C.setRequestHeader(j, u(v.headers[j]));
|
|
2681
|
+
}), O.headers.forEach(function(j, H) {
|
|
2682
|
+
I.indexOf(H) === -1 && C.setRequestHeader(H, j);
|
|
2616
2683
|
});
|
|
2617
2684
|
} else
|
|
2618
|
-
O.headers.forEach(function(
|
|
2619
|
-
|
|
2685
|
+
O.headers.forEach(function(j, H) {
|
|
2686
|
+
C.setRequestHeader(H, j);
|
|
2620
2687
|
});
|
|
2621
|
-
O.signal && (O.signal.addEventListener("abort",
|
|
2622
|
-
|
|
2623
|
-
}),
|
|
2688
|
+
O.signal && (O.signal.addEventListener("abort", $), C.onreadystatechange = function() {
|
|
2689
|
+
C.readyState === 4 && O.signal.removeEventListener("abort", $);
|
|
2690
|
+
}), C.send(typeof O._bodyInit > "u" ? null : O._bodyInit);
|
|
2624
2691
|
});
|
|
2625
2692
|
}
|
|
2626
|
-
return
|
|
2693
|
+
return L.polyfill = !0, a.fetch || (a.fetch = L, a.Headers = b, a.Request = F, a.Response = B), i.Headers = b, i.Request = F, i.Response = B, i.fetch = L, i;
|
|
2627
2694
|
})({});
|
|
2628
2695
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2629
2696
|
var n = t.fetch ? t : s;
|
|
2630
2697
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2631
|
-
}(
|
|
2698
|
+
}(_e, _e.exports)), _e.exports;
|
|
2632
2699
|
}
|
|
2633
|
-
var
|
|
2634
|
-
const
|
|
2700
|
+
var Vn = jn();
|
|
2701
|
+
const In = /* @__PURE__ */ wt(Vn), Qe = "https://gcp-us-east1.api.carto.com", We = "v3", Nn = "ps", de = {
|
|
2635
2702
|
get: "GET",
|
|
2636
2703
|
post: "POST"
|
|
2637
2704
|
};
|
|
2638
|
-
function
|
|
2705
|
+
function Hn(r, e) {
|
|
2639
2706
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2640
2707
|
}
|
|
2641
|
-
function
|
|
2708
|
+
function Gn({
|
|
2642
2709
|
params: r,
|
|
2643
2710
|
url: e
|
|
2644
2711
|
}) {
|
|
2645
2712
|
if (!r) return e;
|
|
2646
|
-
const t = Object.entries(r).map(([s, n]) =>
|
|
2713
|
+
const t = Object.entries(r).map(([s, n]) => Hn(s, n));
|
|
2647
2714
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2648
2715
|
}
|
|
2649
|
-
function
|
|
2716
|
+
function zn(r) {
|
|
2650
2717
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2651
2718
|
}
|
|
2652
2719
|
var je, ct;
|
|
2653
|
-
function
|
|
2720
|
+
function Zn() {
|
|
2654
2721
|
if (ct) return je;
|
|
2655
2722
|
ct = 1;
|
|
2656
|
-
var r = function(
|
|
2657
|
-
return e(
|
|
2723
|
+
var r = function(f) {
|
|
2724
|
+
return e(f) && !t(f);
|
|
2658
2725
|
};
|
|
2659
|
-
function e(
|
|
2660
|
-
return !!
|
|
2726
|
+
function e(f) {
|
|
2727
|
+
return !!f && typeof f == "object";
|
|
2661
2728
|
}
|
|
2662
|
-
function t(
|
|
2663
|
-
var
|
|
2664
|
-
return
|
|
2729
|
+
function t(f) {
|
|
2730
|
+
var h = Object.prototype.toString.call(f);
|
|
2731
|
+
return h === "[object RegExp]" || h === "[object Date]" || o(f);
|
|
2665
2732
|
}
|
|
2666
2733
|
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
2667
|
-
function o(
|
|
2668
|
-
return
|
|
2734
|
+
function o(f) {
|
|
2735
|
+
return f.$$typeof === n;
|
|
2669
2736
|
}
|
|
2670
|
-
function i(
|
|
2671
|
-
return Array.isArray(
|
|
2737
|
+
function i(f) {
|
|
2738
|
+
return Array.isArray(f) ? [] : {};
|
|
2672
2739
|
}
|
|
2673
|
-
function a(
|
|
2674
|
-
return
|
|
2740
|
+
function a(f, h) {
|
|
2741
|
+
return h.clone !== !1 && h.isMergeableObject(f) ? b(i(f), f, h) : f;
|
|
2675
2742
|
}
|
|
2676
|
-
function
|
|
2677
|
-
return
|
|
2743
|
+
function c(f, h, S) {
|
|
2744
|
+
return f.concat(h).map(function(M) {
|
|
2678
2745
|
return a(M, S);
|
|
2679
2746
|
});
|
|
2680
2747
|
}
|
|
2681
|
-
function
|
|
2682
|
-
if (!
|
|
2683
|
-
var S =
|
|
2748
|
+
function l(f, h) {
|
|
2749
|
+
if (!h.customMerge) return b;
|
|
2750
|
+
var S = h.customMerge(f);
|
|
2684
2751
|
return typeof S == "function" ? S : b;
|
|
2685
2752
|
}
|
|
2686
|
-
function
|
|
2687
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
2688
|
-
return Object.propertyIsEnumerable.call(
|
|
2753
|
+
function y(f) {
|
|
2754
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(h) {
|
|
2755
|
+
return Object.propertyIsEnumerable.call(f, h);
|
|
2689
2756
|
}) : [];
|
|
2690
2757
|
}
|
|
2691
|
-
function p(
|
|
2692
|
-
return Object.keys(
|
|
2758
|
+
function p(f) {
|
|
2759
|
+
return Object.keys(f).concat(y(f));
|
|
2693
2760
|
}
|
|
2694
|
-
function g(
|
|
2761
|
+
function g(f, h) {
|
|
2695
2762
|
try {
|
|
2696
|
-
return
|
|
2763
|
+
return h in f;
|
|
2697
2764
|
} catch {
|
|
2698
2765
|
return !1;
|
|
2699
2766
|
}
|
|
2700
2767
|
}
|
|
2701
|
-
function f
|
|
2702
|
-
return g(
|
|
2768
|
+
function u(f, h) {
|
|
2769
|
+
return g(f, h) && !(Object.hasOwnProperty.call(f, h) && Object.propertyIsEnumerable.call(f, h));
|
|
2703
2770
|
}
|
|
2704
|
-
function m(
|
|
2771
|
+
function m(f, h, S) {
|
|
2705
2772
|
var M = {};
|
|
2706
|
-
return S.isMergeableObject(
|
|
2707
|
-
M[
|
|
2708
|
-
}), p(
|
|
2709
|
-
f
|
|
2773
|
+
return S.isMergeableObject(f) && p(f).forEach(function(T) {
|
|
2774
|
+
M[T] = a(f[T], S);
|
|
2775
|
+
}), p(h).forEach(function(T) {
|
|
2776
|
+
u(f, T) || (g(f, T) && S.isMergeableObject(h[T]) ? M[T] = l(T, S)(f[T], h[T], S) : M[T] = a(h[T], S));
|
|
2710
2777
|
}), M;
|
|
2711
2778
|
}
|
|
2712
|
-
function b(
|
|
2713
|
-
S = S || {}, S.arrayMerge = S.arrayMerge ||
|
|
2714
|
-
var M = Array.isArray(
|
|
2715
|
-
return E ? M ? S.arrayMerge(
|
|
2779
|
+
function b(f, h, S) {
|
|
2780
|
+
S = S || {}, S.arrayMerge = S.arrayMerge || c, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2781
|
+
var M = Array.isArray(h), T = Array.isArray(f), E = M === T;
|
|
2782
|
+
return E ? M ? S.arrayMerge(f, h, S) : m(f, h, S) : a(h, S);
|
|
2716
2783
|
}
|
|
2717
|
-
b.all = function(
|
|
2718
|
-
if (!Array.isArray(
|
|
2719
|
-
return
|
|
2720
|
-
return b(S, M,
|
|
2784
|
+
b.all = function(f, h) {
|
|
2785
|
+
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2786
|
+
return f.reduce(function(S, M) {
|
|
2787
|
+
return b(S, M, h);
|
|
2721
2788
|
}, {});
|
|
2722
2789
|
};
|
|
2723
|
-
var
|
|
2724
|
-
return je =
|
|
2790
|
+
var w = b;
|
|
2791
|
+
return je = w, je;
|
|
2725
2792
|
}
|
|
2726
|
-
var
|
|
2727
|
-
const
|
|
2793
|
+
var Qn = Zn();
|
|
2794
|
+
const Ke = /* @__PURE__ */ zn(Qn);
|
|
2728
2795
|
function ut(r) {
|
|
2729
|
-
return
|
|
2796
|
+
return Ke({
|
|
2730
2797
|
method: de.get,
|
|
2731
2798
|
headers: {
|
|
2732
2799
|
Accept: "application/json"
|
|
@@ -2734,7 +2801,7 @@ function ut(r) {
|
|
|
2734
2801
|
}, r);
|
|
2735
2802
|
}
|
|
2736
2803
|
function Ve(r, e) {
|
|
2737
|
-
return
|
|
2804
|
+
return Ke({
|
|
2738
2805
|
method: de.post,
|
|
2739
2806
|
headers: {
|
|
2740
2807
|
Accept: "application/json",
|
|
@@ -2743,21 +2810,21 @@ function Ve(r, e) {
|
|
|
2743
2810
|
body: JSON.stringify(e)
|
|
2744
2811
|
}, r);
|
|
2745
2812
|
}
|
|
2746
|
-
const
|
|
2813
|
+
const Wn = {
|
|
2747
2814
|
GET: ut,
|
|
2748
2815
|
POST: Ve,
|
|
2749
2816
|
PUT: Ve,
|
|
2750
2817
|
PATCH: Ve,
|
|
2751
2818
|
DELETE: ut
|
|
2752
2819
|
};
|
|
2753
|
-
function
|
|
2820
|
+
function Kn({
|
|
2754
2821
|
body: r,
|
|
2755
2822
|
accessToken: e,
|
|
2756
2823
|
method: t,
|
|
2757
2824
|
...s
|
|
2758
2825
|
}) {
|
|
2759
2826
|
let n = e;
|
|
2760
|
-
return n && !n.includes("Bearer") && (n = "Bearer " + n),
|
|
2827
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), Wn[t](Ke({
|
|
2761
2828
|
method: t,
|
|
2762
2829
|
headers: {
|
|
2763
2830
|
...!!n && {
|
|
@@ -2766,7 +2833,7 @@ function Hn({
|
|
|
2766
2833
|
}
|
|
2767
2834
|
}, s), r);
|
|
2768
2835
|
}
|
|
2769
|
-
const
|
|
2836
|
+
const Yn = 6144;
|
|
2770
2837
|
async function At({
|
|
2771
2838
|
signal: r,
|
|
2772
2839
|
body: e,
|
|
@@ -2778,30 +2845,30 @@ async function At({
|
|
|
2778
2845
|
requestOptions: {
|
|
2779
2846
|
getMaxUrlLength: a
|
|
2780
2847
|
} = {
|
|
2781
|
-
getMaxUrlLength:
|
|
2848
|
+
getMaxUrlLength: Yn
|
|
2782
2849
|
},
|
|
2783
|
-
...
|
|
2850
|
+
...c
|
|
2784
2851
|
}) {
|
|
2785
|
-
let
|
|
2852
|
+
let l = Gn({
|
|
2786
2853
|
url: i,
|
|
2787
2854
|
params: o
|
|
2788
|
-
}),
|
|
2789
|
-
n === de.get &&
|
|
2790
|
-
const g =
|
|
2791
|
-
body:
|
|
2855
|
+
}), y = e, p = n;
|
|
2856
|
+
n === de.get && l.length > a && (y = o, p = de.post, l = i);
|
|
2857
|
+
const g = Kn({
|
|
2858
|
+
body: y,
|
|
2792
2859
|
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2793
2860
|
method: p,
|
|
2794
|
-
...
|
|
2861
|
+
...c
|
|
2795
2862
|
});
|
|
2796
2863
|
r && (g.signal = r);
|
|
2797
|
-
const
|
|
2798
|
-
if (!
|
|
2799
|
-
const m = await
|
|
2864
|
+
const u = await In(l, g);
|
|
2865
|
+
if (!u.ok) {
|
|
2866
|
+
const m = await u.text();
|
|
2800
2867
|
return Promise.reject(new Error(m));
|
|
2801
2868
|
}
|
|
2802
|
-
return
|
|
2869
|
+
return u.status === 204 ? Promise.resolve() : await u.json();
|
|
2803
2870
|
}
|
|
2804
|
-
const
|
|
2871
|
+
const Pe = mt()(hs((r, e) => ({
|
|
2805
2872
|
sources: {},
|
|
2806
2873
|
filters: {},
|
|
2807
2874
|
setSource: (t, s) => r((n) => {
|
|
@@ -2814,20 +2881,20 @@ const Le = mt()(hs((r, e) => ({
|
|
|
2814
2881
|
sources: o
|
|
2815
2882
|
};
|
|
2816
2883
|
const a = o[t], {
|
|
2817
|
-
apiBaseUrl:
|
|
2818
|
-
clientId:
|
|
2819
|
-
apiVersion:
|
|
2884
|
+
apiBaseUrl: c = Qe,
|
|
2885
|
+
clientId: l = Nn,
|
|
2886
|
+
apiVersion: y = We,
|
|
2820
2887
|
...p
|
|
2821
2888
|
} = s, g = {
|
|
2822
2889
|
...a,
|
|
2823
2890
|
...p,
|
|
2824
|
-
apiBaseUrl:
|
|
2825
|
-
apiVersion:
|
|
2826
|
-
clientId:
|
|
2827
|
-
},
|
|
2891
|
+
apiBaseUrl: c,
|
|
2892
|
+
apiVersion: y,
|
|
2893
|
+
clientId: l
|
|
2894
|
+
}, u = tr({
|
|
2828
2895
|
source: g
|
|
2829
2896
|
});
|
|
2830
|
-
return g.widgets =
|
|
2897
|
+
return g.widgets = u, o[t] = g, {
|
|
2831
2898
|
sources: o
|
|
2832
2899
|
};
|
|
2833
2900
|
}, void 0, "setSource"),
|
|
@@ -2843,9 +2910,9 @@ const Le = mt()(hs((r, e) => ({
|
|
|
2843
2910
|
setFilters: (t, s) => r((n) => {
|
|
2844
2911
|
let o = {};
|
|
2845
2912
|
const i = n.filters[t] ?? {};
|
|
2846
|
-
return s.length !== 0 && (o = s.reduce((a,
|
|
2847
|
-
var
|
|
2848
|
-
return !("values" in
|
|
2913
|
+
return s.length !== 0 && (o = s.reduce((a, c) => {
|
|
2914
|
+
var l;
|
|
2915
|
+
return !("values" in c) || !((l = c.values) != null && l.length) ? Xe(a, c) : St(a, c);
|
|
2849
2916
|
}, i)), {
|
|
2850
2917
|
filters: {
|
|
2851
2918
|
...n.filters,
|
|
@@ -2891,24 +2958,24 @@ const Le = mt()(hs((r, e) => ({
|
|
|
2891
2958
|
}, s);
|
|
2892
2959
|
}
|
|
2893
2960
|
})));
|
|
2894
|
-
function
|
|
2895
|
-
const e =
|
|
2961
|
+
function Xn(r) {
|
|
2962
|
+
const e = D(2);
|
|
2896
2963
|
let t;
|
|
2897
|
-
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2964
|
+
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2898
2965
|
}
|
|
2899
|
-
function
|
|
2900
|
-
const e =
|
|
2966
|
+
function Jn(r) {
|
|
2967
|
+
const e = D(2);
|
|
2901
2968
|
let t;
|
|
2902
|
-
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2969
|
+
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2903
2970
|
}
|
|
2904
|
-
function
|
|
2905
|
-
const e =
|
|
2971
|
+
function so(r) {
|
|
2972
|
+
const e = D(9);
|
|
2906
2973
|
let t;
|
|
2907
2974
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2908
|
-
const s =
|
|
2975
|
+
const s = Pe(t);
|
|
2909
2976
|
let n;
|
|
2910
2977
|
e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
|
|
2911
|
-
const o =
|
|
2978
|
+
const o = Pe(n);
|
|
2912
2979
|
let i;
|
|
2913
2980
|
e: {
|
|
2914
2981
|
if (!s) {
|
|
@@ -2917,35 +2984,35 @@ function Zr(r) {
|
|
|
2917
2984
|
}
|
|
2918
2985
|
let a;
|
|
2919
2986
|
e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
|
|
2920
|
-
let
|
|
2921
|
-
e[6] !== s || e[7] !== a ? (
|
|
2987
|
+
let c;
|
|
2988
|
+
e[6] !== s || e[7] !== a ? (c = {
|
|
2922
2989
|
...s,
|
|
2923
2990
|
filters: a
|
|
2924
|
-
}, e[6] = s, e[7] = a, e[8] =
|
|
2991
|
+
}, e[6] = s, e[7] = a, e[8] = c) : c = e[8], i = c;
|
|
2925
2992
|
}
|
|
2926
2993
|
return i;
|
|
2927
2994
|
}
|
|
2928
|
-
function
|
|
2995
|
+
function no(r, {
|
|
2929
2996
|
column: e,
|
|
2930
2997
|
type: t
|
|
2931
2998
|
}) {
|
|
2932
2999
|
var s, n;
|
|
2933
3000
|
return ((n = (s = r == null ? void 0 : r[e]) == null ? void 0 : s[t]) == null ? void 0 : n.values) ?? [];
|
|
2934
3001
|
}
|
|
2935
|
-
function
|
|
3002
|
+
function er(r) {
|
|
2936
3003
|
const [, e] = r.type.split("+", 2);
|
|
2937
3004
|
return {
|
|
2938
3005
|
spatialDataType: r.spatialDataType ?? e ?? "geo",
|
|
2939
3006
|
spatialDataColumn: r.spatialDataColumn ?? e ?? "geom"
|
|
2940
3007
|
};
|
|
2941
3008
|
}
|
|
2942
|
-
function
|
|
3009
|
+
function tr({
|
|
2943
3010
|
source: r
|
|
2944
3011
|
}) {
|
|
2945
3012
|
const {
|
|
2946
3013
|
spatialDataType: e,
|
|
2947
3014
|
spatialDataColumn: t
|
|
2948
|
-
} =
|
|
3015
|
+
} = er(r), s = {
|
|
2949
3016
|
query: () => {
|
|
2950
3017
|
const i = r;
|
|
2951
3018
|
return new ps({
|
|
@@ -2991,15 +3058,15 @@ function Kn({
|
|
|
2991
3058
|
}, n = r.type.split("+")[0], o = s[n];
|
|
2992
3059
|
return o == null ? void 0 : o();
|
|
2993
3060
|
}
|
|
2994
|
-
function
|
|
2995
|
-
const t =
|
|
2996
|
-
return
|
|
3061
|
+
function ae(r, e) {
|
|
3062
|
+
const t = Xn(e);
|
|
3063
|
+
return se(() => {
|
|
2997
3064
|
const s = t == null ? void 0 : t.widgets;
|
|
2998
3065
|
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
2999
3066
|
}, [r, t]);
|
|
3000
3067
|
}
|
|
3001
|
-
function
|
|
3002
|
-
const t =
|
|
3068
|
+
function le(r, e) {
|
|
3069
|
+
const t = D(5), s = Jn(r);
|
|
3003
3070
|
let n;
|
|
3004
3071
|
e: {
|
|
3005
3072
|
if (!(e != null && e.length)) {
|
|
@@ -3008,20 +3075,20 @@ function ae(r, e) {
|
|
|
3008
3075
|
}
|
|
3009
3076
|
let o;
|
|
3010
3077
|
if (t[0] !== e || t[1] !== s) {
|
|
3011
|
-
const i = e.reduce(
|
|
3078
|
+
const i = e.reduce(sr, {});
|
|
3012
3079
|
let a;
|
|
3013
|
-
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o =
|
|
3080
|
+
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o = ie(a, i), t[0] = e, t[1] = s, t[2] = o;
|
|
3014
3081
|
} else
|
|
3015
3082
|
o = t[2];
|
|
3016
3083
|
n = o;
|
|
3017
3084
|
}
|
|
3018
3085
|
return n;
|
|
3019
3086
|
}
|
|
3020
|
-
function
|
|
3087
|
+
function sr(r, e) {
|
|
3021
3088
|
return St(r, e);
|
|
3022
3089
|
}
|
|
3023
|
-
function
|
|
3024
|
-
const e =
|
|
3090
|
+
function nr(r) {
|
|
3091
|
+
const e = D(19), {
|
|
3025
3092
|
accessToken: t,
|
|
3026
3093
|
sourceId: s,
|
|
3027
3094
|
widgetProps: n,
|
|
@@ -3030,47 +3097,47 @@ function Yn(r) {
|
|
|
3030
3097
|
} = r;
|
|
3031
3098
|
let a;
|
|
3032
3099
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3033
|
-
let
|
|
3100
|
+
let c, l;
|
|
3034
3101
|
e[2] !== a ? ({
|
|
3035
|
-
enabled:
|
|
3036
|
-
...
|
|
3037
|
-
} = a, e[2] = a, e[3] =
|
|
3038
|
-
const
|
|
3039
|
-
let
|
|
3040
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3102
|
+
enabled: c,
|
|
3103
|
+
...l
|
|
3104
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3105
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3106
|
+
let u;
|
|
3107
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3041
3108
|
let m;
|
|
3042
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3109
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3043
3110
|
const {
|
|
3044
|
-
signal:
|
|
3045
|
-
} =
|
|
3111
|
+
signal: h
|
|
3112
|
+
} = f;
|
|
3046
3113
|
return g.getCategories({
|
|
3047
3114
|
...n,
|
|
3048
3115
|
filters: p,
|
|
3049
|
-
signal:
|
|
3116
|
+
signal: h
|
|
3050
3117
|
});
|
|
3051
3118
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3052
|
-
const b = !!g &&
|
|
3053
|
-
let
|
|
3054
|
-
return e[14] !==
|
|
3055
|
-
queryKey:
|
|
3119
|
+
const b = !!g && y;
|
|
3120
|
+
let w;
|
|
3121
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3122
|
+
queryKey: u,
|
|
3056
3123
|
queryFn: m,
|
|
3057
3124
|
enabled: b,
|
|
3058
|
-
...
|
|
3059
|
-
}, e[14] =
|
|
3125
|
+
...l
|
|
3126
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3060
3127
|
}
|
|
3061
|
-
function
|
|
3062
|
-
const e =
|
|
3128
|
+
function ro(r) {
|
|
3129
|
+
const e = D(6);
|
|
3063
3130
|
let t, s;
|
|
3064
3131
|
e[0] !== r ? ({
|
|
3065
3132
|
children: t,
|
|
3066
3133
|
...s
|
|
3067
3134
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3068
|
-
const n =
|
|
3135
|
+
const n = nr(s);
|
|
3069
3136
|
let o;
|
|
3070
3137
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3071
3138
|
}
|
|
3072
|
-
function
|
|
3073
|
-
const e =
|
|
3139
|
+
function rr(r) {
|
|
3140
|
+
const e = D(19), {
|
|
3074
3141
|
accessToken: t,
|
|
3075
3142
|
sourceId: s,
|
|
3076
3143
|
widgetProps: n,
|
|
@@ -3079,47 +3146,47 @@ function Xn(r) {
|
|
|
3079
3146
|
} = r;
|
|
3080
3147
|
let a;
|
|
3081
3148
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3082
|
-
let
|
|
3149
|
+
let c, l;
|
|
3083
3150
|
e[2] !== a ? ({
|
|
3084
|
-
enabled:
|
|
3085
|
-
...
|
|
3086
|
-
} = a, e[2] = a, e[3] =
|
|
3087
|
-
const
|
|
3088
|
-
let
|
|
3089
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3151
|
+
enabled: c,
|
|
3152
|
+
...l
|
|
3153
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3154
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3155
|
+
let u;
|
|
3156
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3090
3157
|
let m;
|
|
3091
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3158
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3092
3159
|
const {
|
|
3093
|
-
signal:
|
|
3094
|
-
} =
|
|
3160
|
+
signal: h
|
|
3161
|
+
} = f;
|
|
3095
3162
|
return g.getFeatures({
|
|
3096
3163
|
...n,
|
|
3097
3164
|
filters: p,
|
|
3098
|
-
signal:
|
|
3165
|
+
signal: h
|
|
3099
3166
|
});
|
|
3100
3167
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3101
|
-
const b = !!g &&
|
|
3102
|
-
let
|
|
3103
|
-
return e[14] !==
|
|
3104
|
-
queryKey:
|
|
3168
|
+
const b = !!g && y;
|
|
3169
|
+
let w;
|
|
3170
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3171
|
+
queryKey: u,
|
|
3105
3172
|
queryFn: m,
|
|
3106
3173
|
enabled: b,
|
|
3107
|
-
...
|
|
3108
|
-
}, e[14] =
|
|
3174
|
+
...l
|
|
3175
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3109
3176
|
}
|
|
3110
|
-
function
|
|
3111
|
-
const e =
|
|
3177
|
+
function oo(r) {
|
|
3178
|
+
const e = D(6);
|
|
3112
3179
|
let t, s;
|
|
3113
3180
|
e[0] !== r ? ({
|
|
3114
3181
|
children: t,
|
|
3115
3182
|
...s
|
|
3116
3183
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3117
|
-
const n =
|
|
3184
|
+
const n = rr(s);
|
|
3118
3185
|
let o;
|
|
3119
3186
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3120
3187
|
}
|
|
3121
|
-
function
|
|
3122
|
-
const e =
|
|
3188
|
+
function or(r) {
|
|
3189
|
+
const e = D(19), {
|
|
3123
3190
|
accessToken: t,
|
|
3124
3191
|
sourceId: s,
|
|
3125
3192
|
widgetProps: n,
|
|
@@ -3128,47 +3195,47 @@ function Jn(r) {
|
|
|
3128
3195
|
} = r;
|
|
3129
3196
|
let a;
|
|
3130
3197
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3131
|
-
let
|
|
3198
|
+
let c, l;
|
|
3132
3199
|
e[2] !== a ? ({
|
|
3133
|
-
enabled:
|
|
3134
|
-
...
|
|
3135
|
-
} = a, e[2] = a, e[3] =
|
|
3136
|
-
const
|
|
3137
|
-
let
|
|
3138
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3200
|
+
enabled: c,
|
|
3201
|
+
...l
|
|
3202
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3203
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3204
|
+
let u;
|
|
3205
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3139
3206
|
let m;
|
|
3140
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3207
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3141
3208
|
const {
|
|
3142
|
-
signal:
|
|
3143
|
-
} =
|
|
3209
|
+
signal: h
|
|
3210
|
+
} = f;
|
|
3144
3211
|
return g.getFormula({
|
|
3145
3212
|
...n,
|
|
3146
3213
|
filters: p,
|
|
3147
|
-
signal:
|
|
3214
|
+
signal: h
|
|
3148
3215
|
});
|
|
3149
3216
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3150
|
-
const b = !!g &&
|
|
3151
|
-
let
|
|
3152
|
-
return e[14] !==
|
|
3153
|
-
queryKey:
|
|
3217
|
+
const b = !!g && y;
|
|
3218
|
+
let w;
|
|
3219
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3220
|
+
queryKey: u,
|
|
3154
3221
|
queryFn: m,
|
|
3155
3222
|
enabled: b,
|
|
3156
|
-
...
|
|
3157
|
-
}, e[14] =
|
|
3223
|
+
...l
|
|
3224
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3158
3225
|
}
|
|
3159
|
-
function
|
|
3160
|
-
const e =
|
|
3226
|
+
function io(r) {
|
|
3227
|
+
const e = D(6);
|
|
3161
3228
|
let t, s;
|
|
3162
3229
|
e[0] !== r ? ({
|
|
3163
3230
|
children: t,
|
|
3164
3231
|
...s
|
|
3165
3232
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3166
|
-
const n =
|
|
3233
|
+
const n = or(s);
|
|
3167
3234
|
let o;
|
|
3168
3235
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3169
3236
|
}
|
|
3170
|
-
function
|
|
3171
|
-
const e =
|
|
3237
|
+
function ir(r) {
|
|
3238
|
+
const e = D(19), {
|
|
3172
3239
|
accessToken: t,
|
|
3173
3240
|
sourceId: s,
|
|
3174
3241
|
widgetProps: n,
|
|
@@ -3177,47 +3244,47 @@ function er(r) {
|
|
|
3177
3244
|
} = r;
|
|
3178
3245
|
let a;
|
|
3179
3246
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3180
|
-
let
|
|
3247
|
+
let c, l;
|
|
3181
3248
|
e[2] !== a ? ({
|
|
3182
|
-
enabled:
|
|
3183
|
-
...
|
|
3184
|
-
} = a, e[2] = a, e[3] =
|
|
3185
|
-
const
|
|
3186
|
-
let
|
|
3187
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3249
|
+
enabled: c,
|
|
3250
|
+
...l
|
|
3251
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3252
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3253
|
+
let u;
|
|
3254
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3188
3255
|
let m;
|
|
3189
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3256
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3190
3257
|
const {
|
|
3191
|
-
signal:
|
|
3192
|
-
} =
|
|
3258
|
+
signal: h
|
|
3259
|
+
} = f;
|
|
3193
3260
|
return g.getHistogram({
|
|
3194
3261
|
...n,
|
|
3195
3262
|
filters: p,
|
|
3196
|
-
signal:
|
|
3263
|
+
signal: h
|
|
3197
3264
|
});
|
|
3198
3265
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3199
|
-
const b = !!g &&
|
|
3200
|
-
let
|
|
3201
|
-
return e[14] !==
|
|
3202
|
-
queryKey:
|
|
3266
|
+
const b = !!g && y;
|
|
3267
|
+
let w;
|
|
3268
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3269
|
+
queryKey: u,
|
|
3203
3270
|
queryFn: m,
|
|
3204
3271
|
enabled: b,
|
|
3205
|
-
...
|
|
3206
|
-
}, e[14] =
|
|
3272
|
+
...l
|
|
3273
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3207
3274
|
}
|
|
3208
|
-
function
|
|
3209
|
-
const e =
|
|
3275
|
+
function ao(r) {
|
|
3276
|
+
const e = D(6);
|
|
3210
3277
|
let t, s;
|
|
3211
3278
|
e[0] !== r ? ({
|
|
3212
3279
|
children: t,
|
|
3213
3280
|
...s
|
|
3214
3281
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3215
|
-
const n =
|
|
3282
|
+
const n = ir(s);
|
|
3216
3283
|
let o;
|
|
3217
3284
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3218
3285
|
}
|
|
3219
|
-
function
|
|
3220
|
-
const e =
|
|
3286
|
+
function ar(r) {
|
|
3287
|
+
const e = D(19), {
|
|
3221
3288
|
accessToken: t,
|
|
3222
3289
|
sourceId: s,
|
|
3223
3290
|
widgetProps: n,
|
|
@@ -3226,47 +3293,47 @@ function tr(r) {
|
|
|
3226
3293
|
} = r;
|
|
3227
3294
|
let a;
|
|
3228
3295
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3229
|
-
let
|
|
3296
|
+
let c, l;
|
|
3230
3297
|
e[2] !== a ? ({
|
|
3231
|
-
enabled:
|
|
3232
|
-
...
|
|
3233
|
-
} = a, e[2] = a, e[3] =
|
|
3234
|
-
const
|
|
3235
|
-
let
|
|
3236
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3298
|
+
enabled: c,
|
|
3299
|
+
...l
|
|
3300
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3301
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3302
|
+
let u;
|
|
3303
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3237
3304
|
let m;
|
|
3238
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3305
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3239
3306
|
const {
|
|
3240
|
-
signal:
|
|
3241
|
-
} =
|
|
3307
|
+
signal: h
|
|
3308
|
+
} = f;
|
|
3242
3309
|
return g.getRange({
|
|
3243
3310
|
...n,
|
|
3244
3311
|
filters: p,
|
|
3245
|
-
signal:
|
|
3312
|
+
signal: h
|
|
3246
3313
|
});
|
|
3247
3314
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3248
|
-
const b = !!g &&
|
|
3249
|
-
let
|
|
3250
|
-
return e[14] !==
|
|
3251
|
-
queryKey:
|
|
3315
|
+
const b = !!g && y;
|
|
3316
|
+
let w;
|
|
3317
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3318
|
+
queryKey: u,
|
|
3252
3319
|
queryFn: m,
|
|
3253
3320
|
enabled: b,
|
|
3254
|
-
...
|
|
3255
|
-
}, e[14] =
|
|
3321
|
+
...l
|
|
3322
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3256
3323
|
}
|
|
3257
|
-
function
|
|
3258
|
-
const e =
|
|
3324
|
+
function lo(r) {
|
|
3325
|
+
const e = D(6);
|
|
3259
3326
|
let t, s;
|
|
3260
3327
|
e[0] !== r ? ({
|
|
3261
3328
|
children: t,
|
|
3262
3329
|
...s
|
|
3263
3330
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3264
|
-
const n =
|
|
3331
|
+
const n = ar(s);
|
|
3265
3332
|
let o;
|
|
3266
3333
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3267
3334
|
}
|
|
3268
|
-
function
|
|
3269
|
-
const e =
|
|
3335
|
+
function lr(r) {
|
|
3336
|
+
const e = D(19), {
|
|
3270
3337
|
accessToken: t,
|
|
3271
3338
|
sourceId: s,
|
|
3272
3339
|
widgetProps: n,
|
|
@@ -3275,47 +3342,47 @@ function sr(r) {
|
|
|
3275
3342
|
} = r;
|
|
3276
3343
|
let a;
|
|
3277
3344
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3278
|
-
let
|
|
3345
|
+
let c, l;
|
|
3279
3346
|
e[2] !== a ? ({
|
|
3280
|
-
enabled:
|
|
3281
|
-
...
|
|
3282
|
-
} = a, e[2] = a, e[3] =
|
|
3283
|
-
const
|
|
3284
|
-
let
|
|
3285
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3347
|
+
enabled: c,
|
|
3348
|
+
...l
|
|
3349
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3350
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3351
|
+
let u;
|
|
3352
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3286
3353
|
let m;
|
|
3287
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3354
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3288
3355
|
const {
|
|
3289
|
-
signal:
|
|
3290
|
-
} =
|
|
3356
|
+
signal: h
|
|
3357
|
+
} = f;
|
|
3291
3358
|
return g.getScatter({
|
|
3292
3359
|
...n,
|
|
3293
3360
|
filters: p,
|
|
3294
|
-
signal:
|
|
3361
|
+
signal: h
|
|
3295
3362
|
});
|
|
3296
3363
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3297
|
-
const b = !!g &&
|
|
3298
|
-
let
|
|
3299
|
-
return e[14] !==
|
|
3300
|
-
queryKey:
|
|
3364
|
+
const b = !!g && y;
|
|
3365
|
+
let w;
|
|
3366
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3367
|
+
queryKey: u,
|
|
3301
3368
|
queryFn: m,
|
|
3302
3369
|
enabled: b,
|
|
3303
|
-
...
|
|
3304
|
-
}, e[14] =
|
|
3370
|
+
...l
|
|
3371
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3305
3372
|
}
|
|
3306
|
-
function
|
|
3307
|
-
const e =
|
|
3373
|
+
function co(r) {
|
|
3374
|
+
const e = D(6);
|
|
3308
3375
|
let t, s;
|
|
3309
3376
|
e[0] !== r ? ({
|
|
3310
3377
|
children: t,
|
|
3311
3378
|
...s
|
|
3312
3379
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3313
|
-
const n =
|
|
3380
|
+
const n = lr(s);
|
|
3314
3381
|
let o;
|
|
3315
3382
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3316
3383
|
}
|
|
3317
|
-
function
|
|
3318
|
-
const e =
|
|
3384
|
+
function cr(r) {
|
|
3385
|
+
const e = D(19), {
|
|
3319
3386
|
accessToken: t,
|
|
3320
3387
|
sourceId: s,
|
|
3321
3388
|
widgetProps: n,
|
|
@@ -3324,47 +3391,47 @@ function nr(r) {
|
|
|
3324
3391
|
} = r;
|
|
3325
3392
|
let a;
|
|
3326
3393
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3327
|
-
let
|
|
3394
|
+
let c, l;
|
|
3328
3395
|
e[2] !== a ? ({
|
|
3329
|
-
enabled:
|
|
3330
|
-
...
|
|
3331
|
-
} = a, e[2] = a, e[3] =
|
|
3332
|
-
const
|
|
3333
|
-
let
|
|
3334
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3396
|
+
enabled: c,
|
|
3397
|
+
...l
|
|
3398
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3399
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3400
|
+
let u;
|
|
3401
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3335
3402
|
let m;
|
|
3336
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3403
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3337
3404
|
const {
|
|
3338
|
-
signal:
|
|
3339
|
-
} =
|
|
3405
|
+
signal: h
|
|
3406
|
+
} = f;
|
|
3340
3407
|
return g.getTable({
|
|
3341
3408
|
...n,
|
|
3342
3409
|
filters: p,
|
|
3343
|
-
signal:
|
|
3410
|
+
signal: h
|
|
3344
3411
|
});
|
|
3345
3412
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3346
|
-
const b = !!g &&
|
|
3347
|
-
let
|
|
3348
|
-
return e[14] !==
|
|
3349
|
-
queryKey:
|
|
3413
|
+
const b = !!g && y;
|
|
3414
|
+
let w;
|
|
3415
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3416
|
+
queryKey: u,
|
|
3350
3417
|
queryFn: m,
|
|
3351
3418
|
enabled: b,
|
|
3352
|
-
...
|
|
3353
|
-
}, e[14] =
|
|
3419
|
+
...l
|
|
3420
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3354
3421
|
}
|
|
3355
|
-
function
|
|
3356
|
-
const e =
|
|
3422
|
+
function uo(r) {
|
|
3423
|
+
const e = D(6);
|
|
3357
3424
|
let t, s;
|
|
3358
3425
|
e[0] !== r ? ({
|
|
3359
3426
|
children: t,
|
|
3360
3427
|
...s
|
|
3361
3428
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3362
|
-
const n =
|
|
3429
|
+
const n = cr(s);
|
|
3363
3430
|
let o;
|
|
3364
3431
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3365
3432
|
}
|
|
3366
|
-
function
|
|
3367
|
-
const e =
|
|
3433
|
+
function ur(r) {
|
|
3434
|
+
const e = D(19), {
|
|
3368
3435
|
accessToken: t,
|
|
3369
3436
|
sourceId: s,
|
|
3370
3437
|
widgetProps: n,
|
|
@@ -3373,48 +3440,48 @@ function rr(r) {
|
|
|
3373
3440
|
} = r;
|
|
3374
3441
|
let a;
|
|
3375
3442
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3376
|
-
let
|
|
3443
|
+
let c, l;
|
|
3377
3444
|
e[2] !== a ? ({
|
|
3378
|
-
enabled:
|
|
3379
|
-
...
|
|
3380
|
-
} = a, e[2] = a, e[3] =
|
|
3381
|
-
const
|
|
3382
|
-
let
|
|
3383
|
-
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (
|
|
3445
|
+
enabled: c,
|
|
3446
|
+
...l
|
|
3447
|
+
} = a, e[2] = a, e[3] = c, e[4] = l) : (c = e[3], l = e[4]);
|
|
3448
|
+
const y = c === void 0 ? !0 : c, p = le(s, o), g = ae(t, s);
|
|
3449
|
+
let u;
|
|
3450
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (u = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = u) : u = e[9];
|
|
3384
3451
|
let m;
|
|
3385
|
-
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (
|
|
3452
|
+
e[10] !== p || e[11] !== g || e[12] !== n ? (m = (f) => {
|
|
3386
3453
|
const {
|
|
3387
|
-
signal:
|
|
3388
|
-
} =
|
|
3454
|
+
signal: h
|
|
3455
|
+
} = f;
|
|
3389
3456
|
return g.getTimeSeries({
|
|
3390
3457
|
...n,
|
|
3391
3458
|
filters: p,
|
|
3392
|
-
signal:
|
|
3459
|
+
signal: h
|
|
3393
3460
|
});
|
|
3394
3461
|
}, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
|
|
3395
|
-
const b = !!g &&
|
|
3396
|
-
let
|
|
3397
|
-
return e[14] !==
|
|
3398
|
-
queryKey:
|
|
3462
|
+
const b = !!g && y;
|
|
3463
|
+
let w;
|
|
3464
|
+
return e[14] !== u || e[15] !== m || e[16] !== b || e[17] !== l ? (w = {
|
|
3465
|
+
queryKey: u,
|
|
3399
3466
|
queryFn: m,
|
|
3400
3467
|
enabled: b,
|
|
3401
|
-
...
|
|
3402
|
-
}, e[14] =
|
|
3468
|
+
...l
|
|
3469
|
+
}, e[14] = u, e[15] = m, e[16] = b, e[17] = l, e[18] = w) : w = e[18], re(w);
|
|
3403
3470
|
}
|
|
3404
|
-
function
|
|
3405
|
-
const e =
|
|
3471
|
+
function fo(r) {
|
|
3472
|
+
const e = D(6);
|
|
3406
3473
|
let t, s;
|
|
3407
3474
|
e[0] !== r ? ({
|
|
3408
3475
|
children: t,
|
|
3409
3476
|
...s
|
|
3410
3477
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3411
|
-
const n =
|
|
3478
|
+
const n = ur(s);
|
|
3412
3479
|
let o;
|
|
3413
3480
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3414
3481
|
}
|
|
3415
|
-
const
|
|
3416
|
-
function
|
|
3417
|
-
const e =
|
|
3482
|
+
const po = "ps";
|
|
3483
|
+
function mo(r) {
|
|
3484
|
+
const e = D(13), {
|
|
3418
3485
|
children: t,
|
|
3419
3486
|
maps: s,
|
|
3420
3487
|
lassoTools: n,
|
|
@@ -3423,94 +3490,94 @@ function ao(r) {
|
|
|
3423
3490
|
let i;
|
|
3424
3491
|
e[0] !== n ? (i = n === void 0 ? [] : n, e[0] = n, e[1] = i) : i = e[1];
|
|
3425
3492
|
const a = i;
|
|
3426
|
-
let
|
|
3427
|
-
e[2] !== o ? (
|
|
3428
|
-
const
|
|
3429
|
-
let
|
|
3430
|
-
e[4] !== t || e[5] !==
|
|
3493
|
+
let c;
|
|
3494
|
+
e[2] !== o ? (c = o === void 0 ? [] : o, e[2] = o, e[3] = c) : c = e[3];
|
|
3495
|
+
const l = c;
|
|
3496
|
+
let y;
|
|
3497
|
+
e[4] !== t || e[5] !== l ? (y = /* @__PURE__ */ Z(fn, { values: l, children: t }), e[4] = t, e[5] = l, e[6] = y) : y = e[6];
|
|
3431
3498
|
let p;
|
|
3432
|
-
e[7] !== a || e[8] !==
|
|
3499
|
+
e[7] !== a || e[8] !== y ? (p = /* @__PURE__ */ Z(Qs, { values: a, children: y }), e[7] = a, e[8] = y, e[9] = p) : p = e[9];
|
|
3433
3500
|
let g;
|
|
3434
|
-
return e[10] !== s || e[11] !== p ? (g = /* @__PURE__ */
|
|
3501
|
+
return e[10] !== s || e[11] !== p ? (g = /* @__PURE__ */ Z(js, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = g) : g = e[12], g;
|
|
3435
3502
|
}
|
|
3436
|
-
function
|
|
3437
|
-
const t =
|
|
3438
|
-
id:
|
|
3439
|
-
visible:
|
|
3503
|
+
function yo(r, e) {
|
|
3504
|
+
const t = me((l) => l.layers), s = me((l) => l.setLayer), n = se(() => Ft(r.map((l) => t[l]).filter((l) => !!(l != null && l.legend))).toReversed(), [t, r]), o = se(() => n.map(e), [e, n]), i = K(({
|
|
3505
|
+
id: l,
|
|
3506
|
+
visible: y,
|
|
3440
3507
|
...p
|
|
3441
3508
|
}) => {
|
|
3442
|
-
s(
|
|
3509
|
+
s(l, {
|
|
3443
3510
|
props: {
|
|
3444
|
-
visible:
|
|
3511
|
+
visible: y
|
|
3445
3512
|
},
|
|
3446
3513
|
legend: p
|
|
3447
3514
|
});
|
|
3448
|
-
}, [s]), a =
|
|
3449
|
-
id:
|
|
3450
|
-
collapsed:
|
|
3515
|
+
}, [s]), a = K(({
|
|
3516
|
+
id: l,
|
|
3517
|
+
collapsed: y
|
|
3451
3518
|
}) => {
|
|
3452
|
-
s(
|
|
3519
|
+
s(l, {
|
|
3453
3520
|
legend: {
|
|
3454
|
-
collapsed:
|
|
3521
|
+
collapsed: y
|
|
3455
3522
|
}
|
|
3456
3523
|
});
|
|
3457
|
-
}, [s]),
|
|
3458
|
-
id:
|
|
3459
|
-
opacity:
|
|
3524
|
+
}, [s]), c = K(({
|
|
3525
|
+
id: l,
|
|
3526
|
+
opacity: y
|
|
3460
3527
|
}) => {
|
|
3461
|
-
s(
|
|
3528
|
+
s(l, {
|
|
3462
3529
|
props: {
|
|
3463
|
-
opacity:
|
|
3530
|
+
opacity: y
|
|
3464
3531
|
}
|
|
3465
3532
|
});
|
|
3466
3533
|
}, [s]);
|
|
3467
3534
|
return {
|
|
3468
3535
|
legend: o,
|
|
3469
3536
|
onChangeVisibility: i,
|
|
3470
|
-
onChangeOpacity:
|
|
3537
|
+
onChangeOpacity: c,
|
|
3471
3538
|
onChangeRowCollapse: a
|
|
3472
3539
|
};
|
|
3473
3540
|
}
|
|
3474
|
-
function
|
|
3541
|
+
function ho({
|
|
3475
3542
|
mapId: r
|
|
3476
3543
|
}) {
|
|
3477
|
-
const [e, t] =
|
|
3478
|
-
var
|
|
3479
|
-
return (
|
|
3480
|
-
}),
|
|
3481
|
-
var
|
|
3482
|
-
return (
|
|
3483
|
-
}) &&
|
|
3484
|
-
type:
|
|
3485
|
-
} =
|
|
3486
|
-
const
|
|
3544
|
+
const [e, t] = ne(void 0), [s, n] = ne(!1), [o, i] = ne(void 0), a = x((f) => {
|
|
3545
|
+
var h;
|
|
3546
|
+
return (h = f.maps[r]) == null ? void 0 : h.basemap;
|
|
3547
|
+
}), c = x((f) => f.getDeckInstance), l = x((f) => f.getOverlayInstance), y = x((f) => f.areLayersLoaded[r]), g = x((f) => {
|
|
3548
|
+
var h;
|
|
3549
|
+
return (h = f.maps[r]) == null ? void 0 : h.isLoaded;
|
|
3550
|
+
}) && y, {
|
|
3551
|
+
type: u
|
|
3552
|
+
} = he[a], m = u === te.googleMaps, b = K(async () => {
|
|
3553
|
+
const f = c(r), h = l(r);
|
|
3487
3554
|
try {
|
|
3488
3555
|
const S = document.createElement("canvas");
|
|
3489
|
-
S.width =
|
|
3556
|
+
S.width = f.width ?? 0, S.height = f.height ?? 0;
|
|
3490
3557
|
const M = S.getContext("2d");
|
|
3491
3558
|
if (m) {
|
|
3492
|
-
const E =
|
|
3559
|
+
const E = h;
|
|
3493
3560
|
if (E.getRenderingType() !== "RASTER")
|
|
3494
3561
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3495
|
-
const
|
|
3562
|
+
const A = await gs(E.getDiv(), {
|
|
3496
3563
|
useCORS: !0
|
|
3497
3564
|
});
|
|
3498
|
-
M == null || M.drawImage(
|
|
3565
|
+
M == null || M.drawImage(A, 0, 0, f.width, f.height);
|
|
3499
3566
|
} else {
|
|
3500
|
-
const E =
|
|
3501
|
-
E.redraw(), M == null || M.drawImage(E.getMap().getCanvas(), 0, 0,
|
|
3567
|
+
const E = h;
|
|
3568
|
+
E.redraw(), M == null || M.drawImage(E.getMap().getCanvas(), 0, 0, f.width, f.height);
|
|
3502
3569
|
}
|
|
3503
|
-
|
|
3504
|
-
const
|
|
3505
|
-
t(
|
|
3570
|
+
f == null || f.redraw("screenshot"), M == null || M.drawImage(f.getCanvas(), 0, 0, f.width, f.height);
|
|
3571
|
+
const T = S.toDataURL();
|
|
3572
|
+
t(T);
|
|
3506
3573
|
} catch (S) {
|
|
3507
3574
|
i(S), console.error(S);
|
|
3508
3575
|
} finally {
|
|
3509
3576
|
n(!1);
|
|
3510
3577
|
}
|
|
3511
|
-
}, [
|
|
3578
|
+
}, [c, m, r, l]);
|
|
3512
3579
|
return {
|
|
3513
|
-
takeScreenshot:
|
|
3580
|
+
takeScreenshot: K(() => {
|
|
3514
3581
|
i(void 0), n(!0), g && b();
|
|
3515
3582
|
}, [b, g]),
|
|
3516
3583
|
isLoading: s,
|
|
@@ -3518,40 +3585,40 @@ function co({
|
|
|
3518
3585
|
error: o
|
|
3519
3586
|
};
|
|
3520
3587
|
}
|
|
3521
|
-
function
|
|
3522
|
-
const e =
|
|
3588
|
+
function go(r) {
|
|
3589
|
+
const e = D(11), {
|
|
3523
3590
|
mapId: t
|
|
3524
3591
|
} = r;
|
|
3525
3592
|
let s;
|
|
3526
3593
|
e[0] !== t ? (s = {
|
|
3527
3594
|
mapId: t
|
|
3528
3595
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3529
|
-
const n =
|
|
3596
|
+
const n = dr(s);
|
|
3530
3597
|
let o;
|
|
3531
3598
|
e[2] !== t ? (o = {
|
|
3532
3599
|
mapId: t
|
|
3533
3600
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3534
|
-
const i =
|
|
3601
|
+
const i = fr(o);
|
|
3535
3602
|
let a;
|
|
3536
3603
|
e[4] !== t ? (a = {
|
|
3537
3604
|
mapId: t
|
|
3538
3605
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3539
|
-
const
|
|
3540
|
-
let
|
|
3541
|
-
return e[6] !== i || e[7] !==
|
|
3542
|
-
spatialFilter:
|
|
3543
|
-
staticSpatialFilter:
|
|
3606
|
+
const c = yr(a), l = i ?? c ?? n;
|
|
3607
|
+
let y;
|
|
3608
|
+
return e[6] !== i || e[7] !== c || e[8] !== l || e[9] !== n ? (y = {
|
|
3609
|
+
spatialFilter: l,
|
|
3610
|
+
staticSpatialFilter: c,
|
|
3544
3611
|
lassoToolsSpatialFilter: i,
|
|
3545
3612
|
viewportSpatialFilter: n
|
|
3546
|
-
}, e[6] = i, e[7] =
|
|
3613
|
+
}, e[6] = i, e[7] = c, e[8] = l, e[9] = n, e[10] = y) : y = e[10], y;
|
|
3547
3614
|
}
|
|
3548
|
-
function
|
|
3549
|
-
const e =
|
|
3615
|
+
function dr(r) {
|
|
3616
|
+
const e = D(4), {
|
|
3550
3617
|
mapId: t
|
|
3551
3618
|
} = r;
|
|
3552
3619
|
let s;
|
|
3553
3620
|
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3554
|
-
const n =
|
|
3621
|
+
const n = x(s);
|
|
3555
3622
|
let o;
|
|
3556
3623
|
e: {
|
|
3557
3624
|
if (!n) {
|
|
@@ -3563,8 +3630,8 @@ function or(r) {
|
|
|
3563
3630
|
}
|
|
3564
3631
|
return o;
|
|
3565
3632
|
}
|
|
3566
|
-
function
|
|
3567
|
-
const e =
|
|
3633
|
+
function fr(r) {
|
|
3634
|
+
const e = D(5), {
|
|
3568
3635
|
mapId: t
|
|
3569
3636
|
} = r;
|
|
3570
3637
|
let s;
|
|
@@ -3572,38 +3639,38 @@ function ir(r) {
|
|
|
3572
3639
|
var a;
|
|
3573
3640
|
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
3574
3641
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3575
|
-
const n =
|
|
3642
|
+
const n = Q(s);
|
|
3576
3643
|
let o;
|
|
3577
3644
|
e: {
|
|
3578
3645
|
let i;
|
|
3579
3646
|
if (e[2] !== n) {
|
|
3580
|
-
const a =
|
|
3647
|
+
const a = Et({
|
|
3581
3648
|
values: n
|
|
3582
|
-
}).filter(
|
|
3649
|
+
}).filter(mr);
|
|
3583
3650
|
if (!(a != null && a.length)) {
|
|
3584
3651
|
o = void 0;
|
|
3585
3652
|
break e;
|
|
3586
3653
|
}
|
|
3587
|
-
i = bt(a.map(
|
|
3654
|
+
i = bt(a.map(pr)), e[2] = n, e[3] = i, e[4] = o;
|
|
3588
3655
|
} else
|
|
3589
3656
|
i = e[3], o = e[4];
|
|
3590
3657
|
o = i.geometry;
|
|
3591
3658
|
}
|
|
3592
3659
|
return o;
|
|
3593
3660
|
}
|
|
3594
|
-
function
|
|
3661
|
+
function pr(r) {
|
|
3595
3662
|
return r.geometry.coordinates;
|
|
3596
3663
|
}
|
|
3597
|
-
function
|
|
3664
|
+
function mr(r) {
|
|
3598
3665
|
return r.properties.visible;
|
|
3599
3666
|
}
|
|
3600
|
-
function
|
|
3601
|
-
const e =
|
|
3667
|
+
function yr(r) {
|
|
3668
|
+
const e = D(4), {
|
|
3602
3669
|
mapId: t
|
|
3603
3670
|
} = r;
|
|
3604
3671
|
let s;
|
|
3605
3672
|
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3606
|
-
const n =
|
|
3673
|
+
const n = x(s);
|
|
3607
3674
|
let o;
|
|
3608
3675
|
e: {
|
|
3609
3676
|
if (!n || !Object.keys(n).length) {
|
|
@@ -3612,7 +3679,7 @@ function cr(r) {
|
|
|
3612
3679
|
}
|
|
3613
3680
|
let i;
|
|
3614
3681
|
if (e[2] !== n) {
|
|
3615
|
-
const a = Object.values(n).filter(
|
|
3682
|
+
const a = Object.values(n).filter(gr).flatMap(hr);
|
|
3616
3683
|
i = bt(a), e[2] = n, e[3] = i;
|
|
3617
3684
|
} else
|
|
3618
3685
|
i = e[3];
|
|
@@ -3620,69 +3687,69 @@ function cr(r) {
|
|
|
3620
3687
|
}
|
|
3621
3688
|
return o;
|
|
3622
3689
|
}
|
|
3623
|
-
function
|
|
3690
|
+
function hr(r) {
|
|
3624
3691
|
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3625
3692
|
}
|
|
3626
|
-
function
|
|
3693
|
+
function gr(r) {
|
|
3627
3694
|
return r != null;
|
|
3628
3695
|
}
|
|
3629
|
-
const
|
|
3696
|
+
const ce = {
|
|
3630
3697
|
currency: "CURRENCY",
|
|
3631
3698
|
default: "DEFAULT",
|
|
3632
3699
|
number: "NUMBER"
|
|
3633
3700
|
}, dt = {
|
|
3634
|
-
[
|
|
3635
|
-
type:
|
|
3701
|
+
[ce.currency]: {
|
|
3702
|
+
type: ce.currency,
|
|
3636
3703
|
format: (r, e) => is(r, e)
|
|
3637
3704
|
},
|
|
3638
|
-
[
|
|
3639
|
-
type:
|
|
3705
|
+
[ce.number]: {
|
|
3706
|
+
type: ce.number,
|
|
3640
3707
|
format: (r, e) => vt(r, e)
|
|
3641
3708
|
},
|
|
3642
|
-
[
|
|
3643
|
-
type:
|
|
3709
|
+
[ce.default]: {
|
|
3710
|
+
type: ce.default,
|
|
3644
3711
|
format: (r) => r.toLocaleString()
|
|
3645
3712
|
}
|
|
3646
3713
|
};
|
|
3647
|
-
function
|
|
3714
|
+
function bo({
|
|
3648
3715
|
properties: r,
|
|
3649
3716
|
formatters: e = {},
|
|
3650
3717
|
includeColumns: t = Object.keys(r),
|
|
3651
3718
|
locale: s = "en-US",
|
|
3652
3719
|
showColumnName: n = !0,
|
|
3653
3720
|
title: o,
|
|
3654
|
-
getColumnName: i =
|
|
3655
|
-
getFieldHtml: a =
|
|
3656
|
-
getTitle:
|
|
3657
|
-
getValue:
|
|
3721
|
+
getColumnName: i = Tr,
|
|
3722
|
+
getFieldHtml: a = vr,
|
|
3723
|
+
getTitle: c = br,
|
|
3724
|
+
getValue: l = Sr
|
|
3658
3725
|
}) {
|
|
3659
|
-
const
|
|
3660
|
-
const b = e[m],
|
|
3661
|
-
return
|
|
3726
|
+
const y = o ? c(o) : "", g = t.reduce((u, m) => {
|
|
3727
|
+
const b = e[m], w = r[m], f = l(w, s, b), h = n ? i(m) : "";
|
|
3728
|
+
return u + a(h, f);
|
|
3662
3729
|
}, "");
|
|
3663
|
-
return
|
|
3730
|
+
return y + g;
|
|
3664
3731
|
}
|
|
3665
|
-
function
|
|
3732
|
+
function br(r) {
|
|
3666
3733
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
3667
3734
|
}
|
|
3668
|
-
function
|
|
3735
|
+
function vr(r, e) {
|
|
3669
3736
|
return `${r}${e}</br>`;
|
|
3670
3737
|
}
|
|
3671
|
-
function
|
|
3738
|
+
function Sr(r, e, t) {
|
|
3672
3739
|
try {
|
|
3673
|
-
return
|
|
3740
|
+
return wr(t)(r, e);
|
|
3674
3741
|
} catch {
|
|
3675
3742
|
return r;
|
|
3676
3743
|
}
|
|
3677
3744
|
}
|
|
3678
|
-
function
|
|
3679
|
-
return typeof r == "function" ? r : ((r && dt[r]) ?? dt[
|
|
3745
|
+
function wr(r) {
|
|
3746
|
+
return typeof r == "function" ? r : ((r && dt[r]) ?? dt[ce.default]).format;
|
|
3680
3747
|
}
|
|
3681
|
-
function
|
|
3748
|
+
function Tr(r) {
|
|
3682
3749
|
return `<strong>${r}</strong>: `;
|
|
3683
3750
|
}
|
|
3684
|
-
function
|
|
3685
|
-
var e, t, s, n, o, i, a,
|
|
3751
|
+
function vo(r) {
|
|
3752
|
+
var e, t, s, n, o, i, a, c;
|
|
3686
3753
|
return {
|
|
3687
3754
|
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
3688
3755
|
collapsible: (t = r.legend) == null ? void 0 : t.collapsible,
|
|
@@ -3693,57 +3760,57 @@ function po(r) {
|
|
|
3693
3760
|
minZoom: (i = r.legend) == null ? void 0 : i.minZoom,
|
|
3694
3761
|
opacity: r.props.opacity ?? 1,
|
|
3695
3762
|
showOpacityControl: (a = r.legend) == null ? void 0 : a.opacityControl,
|
|
3696
|
-
switchable: (
|
|
3763
|
+
switchable: (c = r.legend) == null ? void 0 : c.switchable,
|
|
3697
3764
|
title: r.name,
|
|
3698
3765
|
visible: r.props.visible ?? !0
|
|
3699
3766
|
};
|
|
3700
3767
|
}
|
|
3701
|
-
function
|
|
3702
|
-
const e =
|
|
3768
|
+
function So(r) {
|
|
3769
|
+
const e = D(22), {
|
|
3703
3770
|
children: t,
|
|
3704
3771
|
mapId: s
|
|
3705
3772
|
} = r;
|
|
3706
3773
|
let n;
|
|
3707
|
-
e[0] !== s ? (n = (
|
|
3774
|
+
e[0] !== s ? (n = (T) => T.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3708
3775
|
const {
|
|
3709
3776
|
zoom: o,
|
|
3710
3777
|
maxZoom: i,
|
|
3711
3778
|
minZoom: a
|
|
3712
|
-
} =
|
|
3713
|
-
let
|
|
3714
|
-
e[2] !== s ? (
|
|
3715
|
-
const
|
|
3779
|
+
} = x(n);
|
|
3780
|
+
let c;
|
|
3781
|
+
e[2] !== s ? (c = (T) => T.areLayersLoaded[s], e[2] = s, e[3] = c) : c = e[3];
|
|
3782
|
+
const l = x(c), y = x(Er), p = x(_r), g = x(Mr), u = !l;
|
|
3716
3783
|
let m;
|
|
3717
|
-
e[4] !== s || e[5] !==
|
|
3784
|
+
e[4] !== s || e[5] !== y ? (m = (T) => y(s, T), e[4] = s, e[5] = y, e[6] = m) : m = e[6];
|
|
3718
3785
|
const b = m;
|
|
3719
|
-
let
|
|
3720
|
-
e[7] !== p || e[8] !== s ? (
|
|
3721
|
-
const
|
|
3722
|
-
let
|
|
3723
|
-
e[10] !== s || e[11] !== g ? (
|
|
3724
|
-
const S =
|
|
3786
|
+
let w;
|
|
3787
|
+
e[7] !== p || e[8] !== s ? (w = (T) => p(s, T), e[7] = p, e[8] = s, e[9] = w) : w = e[9];
|
|
3788
|
+
const f = w;
|
|
3789
|
+
let h;
|
|
3790
|
+
e[10] !== s || e[11] !== g ? (h = () => g(s), e[10] = s, e[11] = g, e[12] = h) : h = e[12];
|
|
3791
|
+
const S = h;
|
|
3725
3792
|
let M;
|
|
3726
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !==
|
|
3793
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== u || e[17] !== b || e[18] !== f || e[19] !== S || e[20] !== o ? (M = t({
|
|
3727
3794
|
zoom: o,
|
|
3728
3795
|
maxZoom: i,
|
|
3729
3796
|
minZoom: a,
|
|
3730
|
-
isLoading:
|
|
3797
|
+
isLoading: u,
|
|
3731
3798
|
setZoom: b,
|
|
3732
|
-
flyTo:
|
|
3799
|
+
flyTo: f,
|
|
3733
3800
|
resetViewState: S
|
|
3734
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] =
|
|
3801
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = u, e[17] = b, e[18] = f, e[19] = S, e[20] = o, e[21] = M) : M = e[21], M;
|
|
3735
3802
|
}
|
|
3736
|
-
function
|
|
3803
|
+
function Mr(r) {
|
|
3737
3804
|
return r.resetViewState;
|
|
3738
3805
|
}
|
|
3739
|
-
function
|
|
3806
|
+
function _r(r) {
|
|
3740
3807
|
return r.flyTo;
|
|
3741
3808
|
}
|
|
3742
|
-
function
|
|
3809
|
+
function Er(r) {
|
|
3743
3810
|
return r.setZoom;
|
|
3744
3811
|
}
|
|
3745
|
-
async function
|
|
3746
|
-
baseUrl: r =
|
|
3812
|
+
async function Pr({
|
|
3813
|
+
baseUrl: r = Qe,
|
|
3747
3814
|
connection: e,
|
|
3748
3815
|
accessToken: t,
|
|
3749
3816
|
query: s,
|
|
@@ -3753,25 +3820,25 @@ async function Sr({
|
|
|
3753
3820
|
...i
|
|
3754
3821
|
} = {},
|
|
3755
3822
|
queryParameters: a,
|
|
3756
|
-
params:
|
|
3757
|
-
apiVersion:
|
|
3823
|
+
params: c,
|
|
3824
|
+
apiVersion: l = We
|
|
3758
3825
|
}) {
|
|
3759
|
-
const
|
|
3826
|
+
const y = `${r}/${l}/stats/${e}/${n}`;
|
|
3760
3827
|
return At({
|
|
3761
3828
|
accessToken: t,
|
|
3762
3829
|
signal: o,
|
|
3763
|
-
url:
|
|
3830
|
+
url: y,
|
|
3764
3831
|
method: de.get,
|
|
3765
3832
|
params: {
|
|
3766
3833
|
q: s,
|
|
3767
3834
|
...a,
|
|
3768
|
-
...
|
|
3835
|
+
...c
|
|
3769
3836
|
},
|
|
3770
3837
|
...i
|
|
3771
3838
|
});
|
|
3772
3839
|
}
|
|
3773
|
-
async function
|
|
3774
|
-
baseUrl: r =
|
|
3840
|
+
async function Lr({
|
|
3841
|
+
baseUrl: r = Qe,
|
|
3775
3842
|
connection: e,
|
|
3776
3843
|
accessToken: t,
|
|
3777
3844
|
table: s,
|
|
@@ -3781,13 +3848,13 @@ async function wr({
|
|
|
3781
3848
|
signal: i,
|
|
3782
3849
|
...a
|
|
3783
3850
|
} = {},
|
|
3784
|
-
apiVersion:
|
|
3851
|
+
apiVersion: c = We
|
|
3785
3852
|
}) {
|
|
3786
|
-
const
|
|
3853
|
+
const l = `${r}/${c}/stats/${e}/${s}/${n}`;
|
|
3787
3854
|
return At({
|
|
3788
3855
|
accessToken: t,
|
|
3789
3856
|
signal: i,
|
|
3790
|
-
url:
|
|
3857
|
+
url: l,
|
|
3791
3858
|
method: de.get,
|
|
3792
3859
|
params: {
|
|
3793
3860
|
...o
|
|
@@ -3795,8 +3862,8 @@ async function wr({
|
|
|
3795
3862
|
...a
|
|
3796
3863
|
});
|
|
3797
3864
|
}
|
|
3798
|
-
function
|
|
3799
|
-
const e =
|
|
3865
|
+
function wo(r) {
|
|
3866
|
+
const e = D(20), {
|
|
3800
3867
|
source: t,
|
|
3801
3868
|
attribute: s,
|
|
3802
3869
|
accessToken: n,
|
|
@@ -3804,28 +3871,28 @@ function yo(r) {
|
|
|
3804
3871
|
fetcherOptions: i,
|
|
3805
3872
|
useQueryProps: a
|
|
3806
3873
|
} = r;
|
|
3807
|
-
let
|
|
3808
|
-
e[0] !== a ? (
|
|
3809
|
-
let
|
|
3810
|
-
e[2] !==
|
|
3811
|
-
enabled:
|
|
3812
|
-
...
|
|
3813
|
-
} =
|
|
3814
|
-
const p =
|
|
3874
|
+
let c;
|
|
3875
|
+
e[0] !== a ? (c = a === void 0 ? {} : a, e[0] = a, e[1] = c) : c = e[1];
|
|
3876
|
+
let l, y;
|
|
3877
|
+
e[2] !== c ? ({
|
|
3878
|
+
enabled: l,
|
|
3879
|
+
...y
|
|
3880
|
+
} = c, e[2] = c, e[3] = l, e[4] = y) : (l = e[3], y = e[4]);
|
|
3881
|
+
const p = l === void 0 ? !0 : l;
|
|
3815
3882
|
let g;
|
|
3816
3883
|
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
3817
|
-
let
|
|
3818
|
-
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (
|
|
3884
|
+
let u;
|
|
3885
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (u = () => Cr({
|
|
3819
3886
|
source: t,
|
|
3820
3887
|
params: o,
|
|
3821
3888
|
attribute: s,
|
|
3822
3889
|
accessToken: n,
|
|
3823
3890
|
fetcherOptions: i
|
|
3824
|
-
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] =
|
|
3891
|
+
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = u) : u = e[13];
|
|
3825
3892
|
let m;
|
|
3826
|
-
return e[14] !== p || e[15] !== t || e[16] !== g || e[17] !==
|
|
3893
|
+
return e[14] !== p || e[15] !== t || e[16] !== g || e[17] !== u || e[18] !== y ? (m = {
|
|
3827
3894
|
queryKey: g,
|
|
3828
|
-
queryFn:
|
|
3895
|
+
queryFn: u,
|
|
3829
3896
|
select(b) {
|
|
3830
3897
|
return {
|
|
3831
3898
|
...b,
|
|
@@ -3833,10 +3900,10 @@ function yo(r) {
|
|
|
3833
3900
|
};
|
|
3834
3901
|
},
|
|
3835
3902
|
enabled: !!t && p,
|
|
3836
|
-
...
|
|
3837
|
-
}, e[14] = p, e[15] = t, e[16] = g, e[17] =
|
|
3903
|
+
...y
|
|
3904
|
+
}, e[14] = p, e[15] = t, e[16] = g, e[17] = u, e[18] = y, e[19] = m) : m = e[19], re(m);
|
|
3838
3905
|
}
|
|
3839
|
-
function
|
|
3906
|
+
function Cr({
|
|
3840
3907
|
source: r,
|
|
3841
3908
|
params: e,
|
|
3842
3909
|
attribute: t,
|
|
@@ -3844,7 +3911,7 @@ function Mr({
|
|
|
3844
3911
|
fetcherOptions: n
|
|
3845
3912
|
}) {
|
|
3846
3913
|
if (r.type.startsWith("query"))
|
|
3847
|
-
return
|
|
3914
|
+
return Pr({
|
|
3848
3915
|
connection: r.connectionName,
|
|
3849
3916
|
baseUrl: r.apiBaseUrl,
|
|
3850
3917
|
apiVersion: r.apiVersion,
|
|
@@ -3856,7 +3923,7 @@ function Mr({
|
|
|
3856
3923
|
fetcherOptions: n
|
|
3857
3924
|
});
|
|
3858
3925
|
if (r.type.startsWith("table"))
|
|
3859
|
-
return
|
|
3926
|
+
return Lr({
|
|
3860
3927
|
connection: r.connectionName,
|
|
3861
3928
|
baseUrl: r.apiBaseUrl,
|
|
3862
3929
|
apiVersion: r.apiVersion,
|
|
@@ -3867,7 +3934,7 @@ function Mr({
|
|
|
3867
3934
|
fetcherOptions: n
|
|
3868
3935
|
});
|
|
3869
3936
|
if (r.type.startsWith("tileset"))
|
|
3870
|
-
return
|
|
3937
|
+
return Or({
|
|
3871
3938
|
source: r,
|
|
3872
3939
|
accessToken: s,
|
|
3873
3940
|
target: r.data,
|
|
@@ -3875,13 +3942,13 @@ function Mr({
|
|
|
3875
3942
|
});
|
|
3876
3943
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3877
3944
|
}
|
|
3878
|
-
async function
|
|
3945
|
+
async function Or({
|
|
3879
3946
|
source: r,
|
|
3880
3947
|
accessToken: e,
|
|
3881
3948
|
target: t,
|
|
3882
3949
|
attribute: s
|
|
3883
3950
|
}) {
|
|
3884
|
-
var a,
|
|
3951
|
+
var a, c, l;
|
|
3885
3952
|
const n = await ys({
|
|
3886
3953
|
connectionName: r.connectionName,
|
|
3887
3954
|
apiBaseUrl: r.apiBaseUrl,
|
|
@@ -3889,102 +3956,102 @@ async function Tr({
|
|
|
3889
3956
|
clientId: r.clientId,
|
|
3890
3957
|
tableName: t
|
|
3891
3958
|
});
|
|
3892
|
-
if (!((
|
|
3959
|
+
if (!((l = (c = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : c[0]) != null && l.attributes))
|
|
3893
3960
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3894
|
-
const i = n.tilestats.layers[0].attributes.find((
|
|
3961
|
+
const i = n.tilestats.layers[0].attributes.find((y) => y.attribute === s);
|
|
3895
3962
|
if (!i)
|
|
3896
3963
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3897
3964
|
return i;
|
|
3898
3965
|
}
|
|
3899
3966
|
export {
|
|
3900
|
-
|
|
3967
|
+
Jr as BasemapsControls,
|
|
3901
3968
|
ot as CONVERSIONS_UNITS,
|
|
3902
3969
|
$e as CartoBasemapURL,
|
|
3903
3970
|
J as CartoBasemaps,
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3971
|
+
ro as CategoriesModel,
|
|
3972
|
+
Is as CustomCompositeEditMode,
|
|
3973
|
+
Mt as CustomEditableGeojsonLayer,
|
|
3907
3974
|
Ys as CustomMeasureAreaMode,
|
|
3908
3975
|
Xs as CustomMeasureBufferMode,
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3976
|
+
Lt as CustomMeasureDistanceMode,
|
|
3977
|
+
et as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3978
|
+
Ns as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3979
|
+
Be as DEFAULT_LASSO_TOOLS_MODES,
|
|
3980
|
+
Ue as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3914
3981
|
Me as DEFAULT_MASK_LAYER_PROPS,
|
|
3915
3982
|
sn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3916
3983
|
nn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3917
3984
|
qe as DEFAULT_MEASURE_COLORS,
|
|
3918
|
-
|
|
3985
|
+
Cs as DeckGLComponent,
|
|
3919
3986
|
X as EditableEditType,
|
|
3920
|
-
|
|
3921
|
-
|
|
3987
|
+
oo as FeaturesModel,
|
|
3988
|
+
io as FormulaModel,
|
|
3922
3989
|
Re as GmapsBasemap,
|
|
3923
|
-
|
|
3924
|
-
|
|
3990
|
+
ao as HistogramModel,
|
|
3991
|
+
ye as INTL_UNITS,
|
|
3925
3992
|
ln as LassoTools,
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3993
|
+
Qs as LassoToolsProvider,
|
|
3994
|
+
he as MAPS_BASEMAP,
|
|
3995
|
+
ue as MAP_LASSO_TOOLS_LAYER_ID,
|
|
3996
|
+
Le as MAP_MASK_LAYER_ID,
|
|
3997
|
+
oe as MAP_MEASURE_LAYER_ID,
|
|
3931
3998
|
tn as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3932
3999
|
it as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3933
4000
|
Y as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3934
|
-
|
|
4001
|
+
to as MapComponent,
|
|
3935
4002
|
Ie as MapMeasurementUnitAuto,
|
|
3936
4003
|
en as MapMeasurementUnitTurf,
|
|
3937
|
-
|
|
3938
|
-
|
|
4004
|
+
js as MapProvider,
|
|
4005
|
+
mo as MapsProvider,
|
|
3939
4006
|
te as MapsTypes,
|
|
3940
|
-
|
|
4007
|
+
Mn as MeasurementTools,
|
|
3941
4008
|
fn as MeasurementToolsProvider,
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
4009
|
+
lo as RangeModel,
|
|
4010
|
+
co as ScatterModel,
|
|
4011
|
+
uo as TableModel,
|
|
4012
|
+
fo as TimeSeriesModel,
|
|
4013
|
+
So as ZoomControls,
|
|
4014
|
+
po as clientID,
|
|
3948
4015
|
st as convertMetersTo,
|
|
3949
|
-
|
|
3950
|
-
|
|
4016
|
+
Zs as createLassoToolsStore,
|
|
4017
|
+
qs as createMapStore,
|
|
3951
4018
|
dn as createMeasurementToolsStore,
|
|
3952
|
-
|
|
4019
|
+
ce as formatterTypes,
|
|
3953
4020
|
bs as getCursorDefault,
|
|
3954
|
-
|
|
3955
|
-
|
|
4021
|
+
eo as getDeckController,
|
|
4022
|
+
no as getFilterValues,
|
|
3956
4023
|
Gs as getLassoToolsLayer,
|
|
3957
4024
|
cn as getMeasurementToolsLayer,
|
|
3958
|
-
|
|
4025
|
+
Ce as getTextLayerFormattedDistance,
|
|
3959
4026
|
vs as getTooltipDefault,
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
4027
|
+
vo as mappingLegendMeridian,
|
|
4028
|
+
bo as objectToHtml,
|
|
4029
|
+
Ft as sortLayers,
|
|
4030
|
+
Fs as transitionFlyConfig,
|
|
4031
|
+
nr as useCategories,
|
|
4032
|
+
Ct as useEventManager,
|
|
4033
|
+
rr as useFeatures,
|
|
4034
|
+
Jn as useFilters,
|
|
4035
|
+
or as useFormula,
|
|
4036
|
+
ir as useHistogram,
|
|
4037
|
+
fr as useLassoToolsSpatialFilter,
|
|
4038
|
+
Q as useLassoToolsState,
|
|
4039
|
+
me as useLayerStore,
|
|
4040
|
+
kn as useLayers,
|
|
4041
|
+
yo as useLegend,
|
|
4042
|
+
ho as useMapScreenshot,
|
|
4043
|
+
x as useMapStore,
|
|
4044
|
+
z as useMeasurementToolsState,
|
|
4045
|
+
ar as useRange,
|
|
4046
|
+
lr as useScatter,
|
|
4047
|
+
Xn as useSource,
|
|
4048
|
+
Pe as useSourceStore,
|
|
4049
|
+
so as useSourceWithFilters,
|
|
4050
|
+
go as useSpatialFilter,
|
|
4051
|
+
wo as useStats,
|
|
4052
|
+
cr as useTable,
|
|
4053
|
+
ur as useTimeSeries,
|
|
4054
|
+
dr as useViewportSpatialFilter,
|
|
4055
|
+
ae as useWidgetModel
|
|
3989
4056
|
};
|
|
3990
4057
|
//# sourceMappingURL=index.js.map
|