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