@carto/ps-react-maps 3.1.0-canary.0 → 3.1.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1404 -1135
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/editable/custom-editable-geojson-layer.d.ts +12 -0
- package/dist/types/editable/lasso-tools/layer.d.ts +4 -1
- package/dist/types/editable/measurement-tools/layer.d.ts +4 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/maps/deck-overlay.d.ts +9 -0
- package/dist/types/maps/deckgl.d.ts +2 -0
- package/dist/types/maps/google-maps.d.ts +7 -0
- package/dist/types/maps/map-libre.d.ts +8 -0
- package/dist/types/{map.d.ts → maps/map.d.ts} +1 -1
- package/dist/types/models/use-widget-model.d.ts +1 -1
- package/dist/types/providers/map/types.d.ts +5 -3
- package/dist/types/providers/sources/types.d.ts +2 -2
- package/dist/types/types.d.ts +2 -1
- package/dist/types/use-event-manager.d.ts +5 -0
- package/package.json +4 -2
- package/dist/types/deckgl.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,72 +1,74 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
1
|
+
var pt = Object.defineProperty;
|
|
2
|
+
var gt = (i, e, t) => e in i ? pt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var W = (i, e, t) => gt(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as N, jsxs as Xe } from "react/jsx-runtime";
|
|
5
|
+
import { c as F } from "react/compiler-runtime";
|
|
6
|
+
import { useEffect as B, useImperativeHandle as xe, useMemo as J, useCallback as G, useState as ee, createContext as Ue, useContext as qe, useRef as ve } from "react";
|
|
7
|
+
import { MapProvider as yt, Map as ht, useMap as St } from "react-map-gl/maplibre";
|
|
8
|
+
import vt from "@deck.gl/react";
|
|
9
|
+
import { useMap as Je, APIProvider as bt, Map as Mt } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { GoogleMapsOverlay as _t } from "@deck.gl/google-maps";
|
|
11
|
+
import { CompositeMode as Lt, TranslateMode as Tt, ModifyMode as Et, DrawPolygonByDraggingMode as kt, DrawCircleFromCenterMode as et, DrawRectangleMode as Pt, DrawPolygonMode as Ct, EditableGeoJsonLayer as wt, MeasureAreaMode as Ft, getPickedEditHandle as Ot, MeasureDistanceMode as Dt, ViewMode as At } from "@deck.gl-community/editable-layers";
|
|
12
|
+
import { DataFilterExtension as Rt, MaskExtension as $t } from "@deck.gl/extensions";
|
|
13
|
+
import { create as tt, createStore as Ve, useStore as je } from "zustand";
|
|
14
|
+
import { FlyToInterpolator as xt, WebMercatorViewport as Ut } from "@deck.gl/core";
|
|
15
|
+
import { EventManager as qt } from "mjolnir.js";
|
|
16
|
+
import { GeoJsonLayer as Vt } from "@deck.gl/layers";
|
|
17
|
+
import { useShallow as st } from "zustand/shallow";
|
|
18
|
+
import { area as Ne, centroid as jt, lineIntersect as Nt } from "@turf/turf";
|
|
19
|
+
import { formatNumber as nt, formatCurrency as It } from "@carto/ps-utils";
|
|
20
|
+
import Ht from "convert-units";
|
|
21
|
+
import Bt from "convert-units/definitions/length";
|
|
22
|
+
import { removeFilter as Gt, addFilter as zt, WidgetRasterSource as Qt, WidgetTilesetSource as Zt, TileFormat as Kt, WidgetTableSource as Wt, WidgetQuerySource as Yt, createViewportSpatialFilter as Xt } from "@carto/api-client";
|
|
23
|
+
import { useQuery as te } from "@tanstack/react-query";
|
|
24
|
+
import Jt from "html2canvas";
|
|
25
|
+
import { multiPolygon as es } from "@turf/helpers";
|
|
24
26
|
const we = {
|
|
25
27
|
roadmap: "roadmap",
|
|
26
28
|
satellite: "satellite",
|
|
27
29
|
hybrid: "hybrid"
|
|
28
|
-
},
|
|
30
|
+
}, K = {
|
|
29
31
|
darkMatter: "darkMatter",
|
|
30
32
|
positron: "positron",
|
|
31
33
|
voyager: "voyager"
|
|
32
|
-
},
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
},
|
|
34
|
+
}, Fe = {
|
|
35
|
+
[K.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
36
|
+
[K.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
37
|
+
[K.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
38
|
+
}, Y = {
|
|
37
39
|
maplibre: "maplibre",
|
|
38
40
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
40
|
-
[
|
|
41
|
-
url:
|
|
42
|
-
type:
|
|
41
|
+
}, ue = {
|
|
42
|
+
[K.positron]: {
|
|
43
|
+
url: Fe[K.positron],
|
|
44
|
+
type: Y.maplibre
|
|
43
45
|
},
|
|
44
|
-
[
|
|
45
|
-
url:
|
|
46
|
-
type:
|
|
46
|
+
[K.voyager]: {
|
|
47
|
+
url: Fe[K.voyager],
|
|
48
|
+
type: Y.maplibre
|
|
47
49
|
},
|
|
48
|
-
[
|
|
49
|
-
url:
|
|
50
|
-
type:
|
|
50
|
+
[K.darkMatter]: {
|
|
51
|
+
url: Fe[K.darkMatter],
|
|
52
|
+
type: Y.maplibre,
|
|
51
53
|
dark: !0
|
|
52
54
|
},
|
|
53
55
|
[we.roadmap]: {
|
|
54
|
-
type:
|
|
56
|
+
type: Y.googleMaps
|
|
55
57
|
},
|
|
56
58
|
[we.satellite]: {
|
|
57
|
-
type:
|
|
59
|
+
type: Y.googleMaps
|
|
58
60
|
},
|
|
59
61
|
[we.hybrid]: {
|
|
60
|
-
type:
|
|
62
|
+
type: Y.googleMaps
|
|
61
63
|
}
|
|
62
64
|
};
|
|
63
|
-
function
|
|
65
|
+
function ts({
|
|
64
66
|
isDragging: i,
|
|
65
67
|
isHovering: e
|
|
66
68
|
}) {
|
|
67
69
|
return i ? "grabbing" : e ? "pointer" : "grab";
|
|
68
70
|
}
|
|
69
|
-
function
|
|
71
|
+
function ss(i) {
|
|
70
72
|
return i.html ? {
|
|
71
73
|
html: `<div class='map-tooltip__content'>${i.html}</div>`,
|
|
72
74
|
style: {
|
|
@@ -75,135 +77,250 @@ function os(i) {
|
|
|
75
77
|
}
|
|
76
78
|
} : null;
|
|
77
79
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
let t, n, s, o, r, a, l, m, c, p, d, u, g, f;
|
|
80
|
+
function ns(i) {
|
|
81
|
+
const e = F(42);
|
|
82
|
+
let t, n, s, o, r, a, c, d, l, p, f, u;
|
|
82
83
|
e[0] !== i ? ({
|
|
83
|
-
instanceRef:
|
|
84
|
-
overlayRef:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
parameters:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
let L,
|
|
107
|
-
e[
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
let C;
|
|
117
|
-
e[24] !== b ? (C = b.every(cs), e[24] = b, e[25] = C) : C = e[25];
|
|
118
|
-
const A = C;
|
|
119
|
-
let x;
|
|
120
|
-
e[26] !== s ? (x = (he) => {
|
|
121
|
-
s == null || s(he);
|
|
122
|
-
}, e[26] = s, e[27] = x) : x = e[27];
|
|
123
|
-
const B = x, {
|
|
124
|
-
url: N,
|
|
125
|
-
type: G
|
|
126
|
-
} = nt[M], I = G === ue.googleMaps;
|
|
127
|
-
let be, te;
|
|
128
|
-
e[28] !== S ? (te = S.filter(ls).map(as), e[28] = S, e[29] = te) : te = e[29], be = te;
|
|
129
|
-
const ge = be;
|
|
130
|
-
let oe;
|
|
131
|
-
e[30] !== I || e[31] !== U ? (oe = (he) => {
|
|
132
|
-
const Fe = I ? {
|
|
133
|
-
...he,
|
|
134
|
-
viewState: Pt(he)
|
|
135
|
-
} : he;
|
|
136
|
-
U(Fe);
|
|
137
|
-
}, e[30] = I, e[31] = U, e[32] = oe) : oe = e[32];
|
|
138
|
-
const ie = oe;
|
|
139
|
-
let Z;
|
|
140
|
-
e[33] === Symbol.for("react.memo_cache_sentinel") ? (Z = (he) => {
|
|
141
|
-
const Fe = he.type === "deckgl" ? 0 : 1;
|
|
142
|
-
P((ft) => ft.map((mt, pt) => pt === Fe ? !0 : mt));
|
|
143
|
-
}, e[33] = Z) : Z = e[33];
|
|
144
|
-
const re = Z;
|
|
145
|
-
let ae, le;
|
|
146
|
-
e[34] !== A || e[35] !== n ? (ae = () => {
|
|
147
|
-
n == null || n(A);
|
|
148
|
-
}, le = [A, n], e[34] = A, e[35] = n, e[36] = ae, e[37] = le) : (ae = e[36], le = e[37]), Y(ae, le);
|
|
149
|
-
let se;
|
|
150
|
-
e[38] === Symbol.for("react.memo_cache_sentinel") ? (se = () => re({
|
|
151
|
-
type: "deckgl"
|
|
152
|
-
}), e[38] = se) : se = e[38];
|
|
153
|
-
let X;
|
|
154
|
-
e[39] !== r ? (X = {
|
|
84
|
+
instanceRef: r,
|
|
85
|
+
overlayRef: p,
|
|
86
|
+
controller: t,
|
|
87
|
+
id: o,
|
|
88
|
+
layers: a,
|
|
89
|
+
mapStyle: c,
|
|
90
|
+
parameters: f,
|
|
91
|
+
getCursor: n,
|
|
92
|
+
getTooltip: s,
|
|
93
|
+
onLoad: d,
|
|
94
|
+
onViewStateChange: l,
|
|
95
|
+
...u
|
|
96
|
+
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = r, e[6] = a, e[7] = c, e[8] = d, e[9] = l, e[10] = p, e[11] = f, e[12] = u) : (t = e[1], n = e[2], s = e[3], o = e[4], r = e[5], a = e[6], c = e[7], d = e[8], l = e[9], p = e[10], f = e[11], u = e[12]);
|
|
97
|
+
let g, m;
|
|
98
|
+
e[13] !== d ? (g = () => {
|
|
99
|
+
d({
|
|
100
|
+
type: "load",
|
|
101
|
+
value: !1
|
|
102
|
+
}), d({
|
|
103
|
+
type: "deckgl",
|
|
104
|
+
value: !1
|
|
105
|
+
});
|
|
106
|
+
}, m = [d], e[13] = d, e[14] = g, e[15] = m) : (g = e[14], m = e[15]), B(g, m);
|
|
107
|
+
let L, y;
|
|
108
|
+
e[16] !== a ? (y = a.filter(rs).map(is), e[16] = a, e[17] = y) : y = e[17], L = y;
|
|
109
|
+
const h = L, b = r;
|
|
110
|
+
let S;
|
|
111
|
+
e[18] !== d ? (S = () => d({
|
|
112
|
+
type: "deckgl",
|
|
113
|
+
value: !0
|
|
114
|
+
}), e[18] = d, e[19] = S) : S = e[19];
|
|
115
|
+
let M;
|
|
116
|
+
e[20] !== f ? (M = {
|
|
155
117
|
depthTest: !1,
|
|
156
|
-
...
|
|
157
|
-
}, e[
|
|
158
|
-
let
|
|
159
|
-
e[
|
|
160
|
-
let
|
|
161
|
-
e[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
let ce;
|
|
175
|
-
return e[62] !== L || e[63] !== w || e[64] !== W ? (ce = /* @__PURE__ */ H(_t, { apiKey: w, ...L, children: W }), e[62] = L, e[63] = w, e[64] = W, e[65] = ce) : ce = e[65], ce;
|
|
176
|
-
}
|
|
177
|
-
function rs() {
|
|
118
|
+
...f
|
|
119
|
+
}, e[20] = f, e[21] = M) : M = e[21];
|
|
120
|
+
let v;
|
|
121
|
+
e[22] !== p ? (v = /* @__PURE__ */ N(as, { overlayRef: p }), e[22] = p, e[23] = v) : v = e[23];
|
|
122
|
+
let T;
|
|
123
|
+
e[24] !== d ? (T = () => d({
|
|
124
|
+
type: "load",
|
|
125
|
+
value: !0
|
|
126
|
+
}), e[24] = d, e[25] = T) : T = e[25];
|
|
127
|
+
let P;
|
|
128
|
+
e[26] !== c || e[27] !== T ? (P = /* @__PURE__ */ N(ht, { reuseMaps: !0, mapStyle: c, onLoad: T, onRender: os }), e[26] = c, e[27] = T, e[28] = P) : P = e[28];
|
|
129
|
+
let O;
|
|
130
|
+
return e[29] !== h || e[30] !== t || e[31] !== n || e[32] !== s || e[33] !== o || e[34] !== l || e[35] !== u || e[36] !== P || e[37] !== b || e[38] !== S || e[39] !== M || e[40] !== v ? (O = /* @__PURE__ */ N(yt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ Xe(vt, { controller: t, id: o, ref: b, layers: h, getCursor: n, getTooltip: s, onLoad: S, onViewStateChange: l, parameters: M, ...u, children: [
|
|
131
|
+
v,
|
|
132
|
+
P
|
|
133
|
+
] }) }) }), e[29] = h, e[30] = t, e[31] = n, e[32] = s, e[33] = o, e[34] = l, e[35] = u, e[36] = P, e[37] = b, e[38] = S, e[39] = M, e[40] = v, e[41] = O) : O = e[41], O;
|
|
134
|
+
}
|
|
135
|
+
function os() {
|
|
178
136
|
const i = document.querySelector(".maplibregl-compact-show");
|
|
179
137
|
i == null || i.classList.remove("maplibregl-compact-show");
|
|
180
138
|
}
|
|
181
|
-
function
|
|
139
|
+
function is(i) {
|
|
182
140
|
const {
|
|
183
141
|
type: e,
|
|
184
142
|
props: t
|
|
185
143
|
} = i;
|
|
186
144
|
return new e(t);
|
|
187
145
|
}
|
|
188
|
-
function
|
|
146
|
+
function rs(i) {
|
|
189
147
|
return !!(i != null && i.type);
|
|
190
148
|
}
|
|
191
|
-
function
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
function us() {
|
|
195
|
-
return null;
|
|
196
|
-
}
|
|
197
|
-
function ds(i) {
|
|
198
|
-
const e = k(4), {
|
|
149
|
+
function as(i) {
|
|
150
|
+
const e = F(3), {
|
|
199
151
|
overlayRef: t
|
|
200
152
|
} = i, {
|
|
201
153
|
default: n
|
|
202
|
-
} =
|
|
203
|
-
let
|
|
204
|
-
return e[0] !==
|
|
154
|
+
} = St();
|
|
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]), xe(t, s, o), null;
|
|
157
|
+
}
|
|
158
|
+
const ls = (i) => {
|
|
159
|
+
const e = F(9);
|
|
160
|
+
let t, n;
|
|
161
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new _t({
|
|
162
|
+
interleaved: !0
|
|
163
|
+
}), e[0] = n) : n = e[0], t = n;
|
|
164
|
+
const s = t, o = Je();
|
|
165
|
+
let r, a;
|
|
166
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (r = () => s, a = [s], e[1] = r, e[2] = a) : (r = e[1], a = e[2]), xe(i.instanceRef, r, a);
|
|
167
|
+
let c, d;
|
|
168
|
+
e[3] !== o ? (c = () => (s.setMap(o), () => {
|
|
169
|
+
s.finalize();
|
|
170
|
+
}), d = [s, o], e[3] = o, e[4] = c, e[5] = d) : (c = e[4], d = e[5]), B(c, d);
|
|
171
|
+
let l, p;
|
|
172
|
+
return e[6] !== i ? (l = () => {
|
|
173
|
+
s.setProps(i);
|
|
174
|
+
}, p = [s, i], e[6] = i, e[7] = l, e[8] = p) : (l = e[7], p = e[8]), B(l, p), null;
|
|
175
|
+
};
|
|
176
|
+
function cs({
|
|
177
|
+
id: i,
|
|
178
|
+
instanceRef: e,
|
|
179
|
+
basemap: t,
|
|
180
|
+
layers: n,
|
|
181
|
+
gmapsProps: {
|
|
182
|
+
apiKey: s,
|
|
183
|
+
APIProviderProps: o,
|
|
184
|
+
...r
|
|
185
|
+
} = {
|
|
186
|
+
apiKey: ""
|
|
187
|
+
},
|
|
188
|
+
overlayRef: a,
|
|
189
|
+
parameters: c,
|
|
190
|
+
onLoad: d,
|
|
191
|
+
onViewStateChange: l,
|
|
192
|
+
...p
|
|
193
|
+
}) {
|
|
194
|
+
var m, L, y, h, b;
|
|
195
|
+
B(() => {
|
|
196
|
+
d({
|
|
197
|
+
type: "load",
|
|
198
|
+
value: !1
|
|
199
|
+
}), d({
|
|
200
|
+
type: "deckgl",
|
|
201
|
+
value: !1
|
|
202
|
+
});
|
|
203
|
+
}, [d]);
|
|
204
|
+
const f = J(() => n.filter((S) => !!(S != null && S.type)).map(({
|
|
205
|
+
type: S,
|
|
206
|
+
props: M
|
|
207
|
+
}) => new S(M)), [n]), u = G(({
|
|
208
|
+
detail: {
|
|
209
|
+
center: S,
|
|
210
|
+
zoom: M,
|
|
211
|
+
heading: v,
|
|
212
|
+
tilt: T
|
|
213
|
+
}
|
|
214
|
+
}) => ({
|
|
215
|
+
latitude: S.lat,
|
|
216
|
+
longitude: S.lng,
|
|
217
|
+
zoom: M - 1,
|
|
218
|
+
bearing: v,
|
|
219
|
+
pitch: T
|
|
220
|
+
}), []), g = G((S) => {
|
|
221
|
+
const M = e == null ? void 0 : e.current, v = M == null ? void 0 : M._deck, T = {
|
|
222
|
+
// @ts-expect-error accessing protected props
|
|
223
|
+
...v == null ? void 0 : v.viewState,
|
|
224
|
+
...S
|
|
225
|
+
}, P = {
|
|
226
|
+
latitude: T.latitude,
|
|
227
|
+
longitude: T.longitude,
|
|
228
|
+
zoom: T.zoom,
|
|
229
|
+
pitch: T.pitch,
|
|
230
|
+
bearing: T.bearing,
|
|
231
|
+
// @ts-expect-error - `width` and `height` is not in the types
|
|
232
|
+
width: v == null ? void 0 : v.width,
|
|
233
|
+
height: v == null ? void 0 : v.height
|
|
234
|
+
};
|
|
235
|
+
l == null || l({
|
|
236
|
+
viewState: P,
|
|
237
|
+
interactionState: {
|
|
238
|
+
isZooming: !0
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}, [e, l]);
|
|
242
|
+
return /* @__PURE__ */ N(bt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ Xe(Mt, { mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...r, center: {
|
|
243
|
+
lat: ((m = p.initialViewState) == null ? void 0 : m.latitude) ?? 0,
|
|
244
|
+
lng: ((L = p.initialViewState) == null ? void 0 : L.longitude) ?? 0
|
|
245
|
+
}, zoom: (((y = p.initialViewState) == null ? void 0 : y.zoom) ?? 0) + 1, tilt: (h = p.initialViewState) == null ? void 0 : h.pitch, heading: (b = p.initialViewState) == null ? void 0 : b.bearing, onTilesLoaded: () => {
|
|
246
|
+
d({
|
|
247
|
+
type: "load",
|
|
248
|
+
value: !0
|
|
249
|
+
}), g(p.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (S) => g(u(S)), onZoomChanged: (S) => g(u(S)), children: [
|
|
251
|
+
/* @__PURE__ */ N(us, { overlayRef: a }),
|
|
252
|
+
/* @__PURE__ */ N(ls, { id: i, instanceRef: e, layers: f, onLoad: () => {
|
|
253
|
+
d({
|
|
254
|
+
type: "deckgl",
|
|
255
|
+
value: !0
|
|
256
|
+
});
|
|
257
|
+
}, parameters: {
|
|
258
|
+
// @ts-expect-error - `depthTest` is not in the types
|
|
259
|
+
depthTest: !1,
|
|
260
|
+
...c
|
|
261
|
+
}, ...p })
|
|
262
|
+
] }) }) });
|
|
263
|
+
}
|
|
264
|
+
function us(i) {
|
|
265
|
+
const e = F(3), {
|
|
266
|
+
overlayRef: t
|
|
267
|
+
} = i, n = Je();
|
|
268
|
+
let s, o;
|
|
269
|
+
return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), xe(t, s, o), null;
|
|
205
270
|
}
|
|
206
|
-
|
|
271
|
+
function ds(i) {
|
|
272
|
+
const e = F(46);
|
|
273
|
+
let t, n, s, o, r, a, c, d, l, p, f, u;
|
|
274
|
+
e[0] !== i ? ({
|
|
275
|
+
instanceRef: n,
|
|
276
|
+
overlayRef: o,
|
|
277
|
+
basemap: a,
|
|
278
|
+
controller: c,
|
|
279
|
+
id: d,
|
|
280
|
+
layers: l,
|
|
281
|
+
gmapsProps: t,
|
|
282
|
+
getCursor: p,
|
|
283
|
+
getTooltip: f,
|
|
284
|
+
onLoad: s,
|
|
285
|
+
onViewStateChange: u,
|
|
286
|
+
...r
|
|
287
|
+
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = r, e[6] = a, e[7] = c, e[8] = d, e[9] = l, e[10] = p, e[11] = f, e[12] = u) : (t = e[1], n = e[2], s = e[3], o = e[4], r = e[5], a = e[6], c = e[7], d = e[8], l = e[9], p = e[10], f = e[11], u = e[12]);
|
|
288
|
+
const g = a === void 0 ? K.positron : a, m = c === void 0 ? !0 : c, L = d === void 0 ? "deck-gl-map" : d;
|
|
289
|
+
let y;
|
|
290
|
+
e[13] !== l ? (y = l === void 0 ? [] : l, e[13] = l, e[14] = y) : y = e[14];
|
|
291
|
+
const h = y, b = p === void 0 ? ts : p, S = f === void 0 ? ss : f, M = u === void 0 ? ms : u;
|
|
292
|
+
let v;
|
|
293
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (v = [!1, !1], e[15] = v) : v = e[15];
|
|
294
|
+
const [T, P] = ee(v);
|
|
295
|
+
let O;
|
|
296
|
+
e[16] !== T ? (O = T.every(fs), e[16] = T, e[17] = O) : O = e[17];
|
|
297
|
+
const R = O, {
|
|
298
|
+
url: x,
|
|
299
|
+
type: j
|
|
300
|
+
} = ue[g], q = j === Y.googleMaps;
|
|
301
|
+
let _;
|
|
302
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (_ = ($) => {
|
|
303
|
+
const Z = $.type === "deckgl" ? 0 : 1;
|
|
304
|
+
P((H) => H.map((X, ie) => ie === Z ? $.value : X));
|
|
305
|
+
}, e[18] = _) : _ = e[18];
|
|
306
|
+
const E = _;
|
|
307
|
+
let C, w;
|
|
308
|
+
if (e[19] !== R || e[20] !== s ? (C = () => {
|
|
309
|
+
s == null || s(R);
|
|
310
|
+
}, w = [R, s], e[19] = R, e[20] = s, e[21] = C, e[22] = w) : (C = e[21], w = e[22]), B(C, w), q) {
|
|
311
|
+
let $;
|
|
312
|
+
return e[23] !== g || e[24] !== m || e[25] !== b || e[26] !== S || e[27] !== t || e[28] !== L || e[29] !== n || e[30] !== h || e[31] !== M || e[32] !== o || e[33] !== r ? ($ = /* @__PURE__ */ N(cs, { instanceRef: n, overlayRef: o, controller: m, id: L, basemap: g, layers: h, gmapsProps: t, getCursor: b, getTooltip: S, onLoad: E, onViewStateChange: M, ...r }), e[23] = g, e[24] = m, e[25] = b, e[26] = S, e[27] = t, e[28] = L, e[29] = n, e[30] = h, e[31] = M, e[32] = o, e[33] = r, e[34] = $) : $ = e[34], $;
|
|
313
|
+
}
|
|
314
|
+
let A;
|
|
315
|
+
return e[35] !== m || e[36] !== b || e[37] !== S || e[38] !== L || e[39] !== n || e[40] !== h || e[41] !== x || e[42] !== M || e[43] !== o || e[44] !== r ? (A = /* @__PURE__ */ N(ns, { instanceRef: n, overlayRef: o, controller: m, id: L, layers: h, mapStyle: x, getCursor: b, getTooltip: S, onLoad: E, onViewStateChange: M, ...r }), e[35] = m, e[36] = b, e[37] = S, e[38] = L, e[39] = n, e[40] = h, e[41] = x, e[42] = M, e[43] = o, e[44] = r, e[45] = A) : A = e[45], A;
|
|
316
|
+
}
|
|
317
|
+
function fs(i) {
|
|
318
|
+
return i;
|
|
319
|
+
}
|
|
320
|
+
function ms() {
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
const Q = {
|
|
207
324
|
addFeature: "addFeature",
|
|
208
325
|
addTentativePosition: "addTentativePosition",
|
|
209
326
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -211,20 +328,20 @@ const K = {
|
|
|
211
328
|
finish: "finish",
|
|
212
329
|
addPosition: "addPosition"
|
|
213
330
|
};
|
|
214
|
-
class
|
|
331
|
+
class ps extends Lt {
|
|
215
332
|
constructor() {
|
|
216
|
-
super([new
|
|
333
|
+
super([new Tt(), new Et()]);
|
|
217
334
|
}
|
|
218
335
|
handleKeyUp(e, t) {
|
|
219
336
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
220
337
|
updatedData: t.data,
|
|
221
|
-
editType:
|
|
338
|
+
editType: Q.addFeature,
|
|
222
339
|
editContext: {}
|
|
223
340
|
}));
|
|
224
341
|
}
|
|
225
342
|
}
|
|
226
|
-
const
|
|
227
|
-
id:
|
|
343
|
+
const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
344
|
+
id: ae,
|
|
228
345
|
billboard: !1,
|
|
229
346
|
editHandlePointRadiusUnits: "pixels",
|
|
230
347
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -236,7 +353,7 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
236
353
|
lineWidthUnits: "pixels",
|
|
237
354
|
getLineWidth: 2,
|
|
238
355
|
lineWidthMinPixels: 2
|
|
239
|
-
},
|
|
356
|
+
}, Ie = {
|
|
240
357
|
editing: {
|
|
241
358
|
border: [3, 111, 226, 255],
|
|
242
359
|
fill: [3, 111, 226, 20.4],
|
|
@@ -246,47 +363,47 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
246
363
|
border: [71, 219, 153, 255],
|
|
247
364
|
fill: [71, 219, 153, 0]
|
|
248
365
|
}
|
|
249
|
-
},
|
|
366
|
+
}, Oe = {
|
|
250
367
|
styles: {
|
|
251
368
|
colors: {
|
|
252
|
-
editing:
|
|
253
|
-
finished:
|
|
369
|
+
editing: Ie.editing,
|
|
370
|
+
finished: Ie.finished
|
|
254
371
|
}
|
|
255
372
|
},
|
|
256
373
|
labels: {
|
|
257
374
|
mask: "Mask"
|
|
258
375
|
}
|
|
259
|
-
},
|
|
376
|
+
}, ys = [new Rt({
|
|
260
377
|
filterSize: 1
|
|
261
|
-
})],
|
|
262
|
-
id:
|
|
378
|
+
})], Se = {
|
|
379
|
+
id: be,
|
|
263
380
|
operation: "mask",
|
|
264
381
|
pickable: !1,
|
|
265
382
|
visible: !0,
|
|
266
|
-
extensions:
|
|
383
|
+
extensions: ys,
|
|
267
384
|
filterRange: [1, 1]
|
|
268
|
-
},
|
|
385
|
+
}, De = {
|
|
269
386
|
polygon: {
|
|
270
387
|
value: "polygon",
|
|
271
|
-
mode:
|
|
388
|
+
mode: Ct
|
|
272
389
|
},
|
|
273
390
|
rectangle: {
|
|
274
391
|
value: "rectangle",
|
|
275
|
-
mode:
|
|
392
|
+
mode: Pt
|
|
276
393
|
},
|
|
277
394
|
circle: {
|
|
278
395
|
value: "circle",
|
|
279
|
-
mode:
|
|
396
|
+
mode: et
|
|
280
397
|
},
|
|
281
398
|
lasso: {
|
|
282
399
|
value: "lasso",
|
|
283
|
-
mode:
|
|
400
|
+
mode: kt
|
|
284
401
|
},
|
|
285
402
|
edit: {
|
|
286
403
|
value: "edit",
|
|
287
|
-
mode:
|
|
404
|
+
mode: ps
|
|
288
405
|
}
|
|
289
|
-
},
|
|
406
|
+
}, de = tt((i) => ({
|
|
290
407
|
layers: {},
|
|
291
408
|
setLayer: (e, t) => i((n) => {
|
|
292
409
|
var a;
|
|
@@ -300,7 +417,7 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
300
417
|
const o = s[e] ?? {
|
|
301
418
|
type: null,
|
|
302
419
|
props: {}
|
|
303
|
-
}, r = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((
|
|
420
|
+
}, r = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((c, d) => (c.some((l) => l.equals(d)) || c.push(d), c), []);
|
|
304
421
|
return s[e] = {
|
|
305
422
|
...o,
|
|
306
423
|
...t,
|
|
@@ -318,12 +435,12 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
318
435
|
layers: s
|
|
319
436
|
};
|
|
320
437
|
})
|
|
321
|
-
})),
|
|
438
|
+
})), hs = {
|
|
322
439
|
transitionDuration: "auto",
|
|
323
|
-
transitionInterpolator: new
|
|
440
|
+
transitionInterpolator: new xt({
|
|
324
441
|
curve: 2
|
|
325
442
|
})
|
|
326
|
-
},
|
|
443
|
+
}, Ss = (i) => {
|
|
327
444
|
const e = i.reduce((t, n) => {
|
|
328
445
|
const {
|
|
329
446
|
id: s,
|
|
@@ -331,7 +448,6 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
331
448
|
} = n;
|
|
332
449
|
return t[s] = {
|
|
333
450
|
isLoaded: !1,
|
|
334
|
-
areLayersLoaded: !1,
|
|
335
451
|
basemap: o,
|
|
336
452
|
instanceRef: {
|
|
337
453
|
current: {}
|
|
@@ -344,15 +460,24 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
344
460
|
}, {});
|
|
345
461
|
return (t, n) => ({
|
|
346
462
|
maps: e,
|
|
347
|
-
setBasemap: (s, o) => t((r) =>
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
463
|
+
setBasemap: (s, o) => t((r) => {
|
|
464
|
+
var l;
|
|
465
|
+
const {
|
|
466
|
+
type: a
|
|
467
|
+
} = ue[r.maps[s].basemap], {
|
|
468
|
+
type: c
|
|
469
|
+
} = ue[o], d = a === c && !!((l = r.maps[s]) != null && l.isLoaded);
|
|
470
|
+
return {
|
|
471
|
+
maps: {
|
|
472
|
+
...r.maps,
|
|
473
|
+
[s]: {
|
|
474
|
+
...r.maps[s],
|
|
475
|
+
isLoaded: d,
|
|
476
|
+
basemap: o
|
|
477
|
+
}
|
|
353
478
|
}
|
|
354
|
-
}
|
|
355
|
-
})
|
|
479
|
+
};
|
|
480
|
+
}),
|
|
356
481
|
setLoad: (s, o) => t((r) => ({
|
|
357
482
|
maps: {
|
|
358
483
|
...r.maps,
|
|
@@ -362,22 +487,17 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
362
487
|
}
|
|
363
488
|
}
|
|
364
489
|
})),
|
|
365
|
-
setLayersLoad: (s, o) => t((r) => ({
|
|
366
|
-
maps: {
|
|
367
|
-
...r.maps,
|
|
368
|
-
[s]: {
|
|
369
|
-
...r.maps[s],
|
|
370
|
-
areLayersLoaded: o
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
})),
|
|
374
490
|
getOverlayInstance: (s) => {
|
|
375
491
|
var r, a;
|
|
376
492
|
return (a = (r = n().maps[s]) == null ? void 0 : r.overlayRef) == null ? void 0 : a.current;
|
|
377
493
|
},
|
|
378
494
|
getDeckInstance: (s) => {
|
|
379
|
-
var
|
|
380
|
-
|
|
495
|
+
var a, c;
|
|
496
|
+
const r = (c = (a = n().maps[s]) == null ? void 0 : a.instanceRef) == null ? void 0 : c.current;
|
|
497
|
+
return (
|
|
498
|
+
// @ts-expect-error accessing protected props
|
|
499
|
+
(r == null ? void 0 : r.deck) ?? r._deck
|
|
500
|
+
);
|
|
381
501
|
},
|
|
382
502
|
getViewState: (s) => {
|
|
383
503
|
const r = n().getDeckInstance(s);
|
|
@@ -388,36 +508,52 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
388
508
|
return a == null ? void 0 : a.getViewports(o);
|
|
389
509
|
},
|
|
390
510
|
getViewport: (s, o = 0, r) => {
|
|
391
|
-
var
|
|
392
|
-
const
|
|
393
|
-
return (
|
|
511
|
+
var d;
|
|
512
|
+
const c = n().getDeckInstance(s);
|
|
513
|
+
return (d = c == null ? void 0 : c.getViewports(r)) == null ? void 0 : d[o];
|
|
394
514
|
},
|
|
395
515
|
addLayers: (s, o) => t((r) => {
|
|
396
|
-
var
|
|
516
|
+
var l;
|
|
397
517
|
const a = {
|
|
398
518
|
...r.maps
|
|
399
|
-
},
|
|
519
|
+
}, c = ((l = a[s]) == null ? void 0 : l.layers) ?? [], d = /* @__PURE__ */ new Set([...c, ...o]);
|
|
400
520
|
return a[s] = {
|
|
401
521
|
...a[s],
|
|
402
|
-
layers: [...
|
|
522
|
+
layers: [...d]
|
|
403
523
|
}, {
|
|
404
524
|
maps: a
|
|
405
525
|
};
|
|
406
526
|
}),
|
|
407
527
|
removeLayers: (s, o) => t((r) => {
|
|
408
|
-
var
|
|
528
|
+
var d;
|
|
409
529
|
const a = {
|
|
410
530
|
...r.maps
|
|
411
|
-
},
|
|
531
|
+
}, c = ((d = a[s]) == null ? void 0 : d.layers) ?? [];
|
|
412
532
|
return a[s] = {
|
|
413
533
|
...a[s],
|
|
414
|
-
layers:
|
|
534
|
+
layers: c.filter((l) => !o.includes(l))
|
|
415
535
|
}, {
|
|
416
536
|
maps: a
|
|
417
537
|
};
|
|
418
538
|
})
|
|
419
539
|
});
|
|
420
|
-
},
|
|
540
|
+
}, vs = (i) => {
|
|
541
|
+
const e = i.reduce((t, n) => {
|
|
542
|
+
const {
|
|
543
|
+
id: s
|
|
544
|
+
} = n;
|
|
545
|
+
return t[s] = !1, t;
|
|
546
|
+
}, {});
|
|
547
|
+
return (t) => ({
|
|
548
|
+
areLayersLoaded: e,
|
|
549
|
+
setLayersLoad: (n, s) => t((o) => ({
|
|
550
|
+
areLayersLoaded: {
|
|
551
|
+
...o.areLayersLoaded,
|
|
552
|
+
[n]: s
|
|
553
|
+
}
|
|
554
|
+
}))
|
|
555
|
+
});
|
|
556
|
+
}, bs = (i) => {
|
|
421
557
|
const e = i.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
422
558
|
viewStates: {},
|
|
423
559
|
viewports: {}
|
|
@@ -428,10 +564,10 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
428
564
|
var a;
|
|
429
565
|
const o = n();
|
|
430
566
|
if (!((a = o.maps[s]) != null && a.isLoaded)) return;
|
|
431
|
-
const r = new
|
|
432
|
-
t((
|
|
567
|
+
const r = new Ut(o.viewStates[s]);
|
|
568
|
+
t((c) => ({
|
|
433
569
|
viewports: {
|
|
434
|
-
...
|
|
570
|
+
...c.viewports,
|
|
435
571
|
[s]: r
|
|
436
572
|
}
|
|
437
573
|
}));
|
|
@@ -474,46 +610,47 @@ const Te = "lassoLayer", ke = "maskLayer", ms = {
|
|
|
474
610
|
}
|
|
475
611
|
}))
|
|
476
612
|
});
|
|
477
|
-
},
|
|
613
|
+
}, Ms = (i, e) => ({
|
|
478
614
|
fitBounds: (t, n, s) => {
|
|
479
615
|
const o = e(), r = o.getViewport(t);
|
|
480
616
|
if (!r) return;
|
|
481
|
-
const
|
|
617
|
+
const c = {
|
|
482
618
|
...r == null ? void 0 : r.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
483
619
|
...s == null ? void 0 : s.viewStateOptions
|
|
484
620
|
};
|
|
485
|
-
o.setViewState(t,
|
|
621
|
+
o.setViewState(t, c);
|
|
486
622
|
},
|
|
487
623
|
flyTo: (t, n, s = {}) => {
|
|
488
624
|
const o = e();
|
|
489
625
|
if (!o.getViewport(t)) return;
|
|
490
626
|
const a = {
|
|
491
|
-
...
|
|
627
|
+
...hs,
|
|
492
628
|
...s == null ? void 0 : s.viewStateOptions
|
|
493
|
-
},
|
|
629
|
+
}, c = {
|
|
494
630
|
...n,
|
|
495
631
|
...a
|
|
496
632
|
};
|
|
497
|
-
o.setViewState(t,
|
|
633
|
+
o.setViewState(t, c);
|
|
498
634
|
}
|
|
499
|
-
}),
|
|
500
|
-
...
|
|
501
|
-
...
|
|
502
|
-
...
|
|
635
|
+
}), _s = (i) => Ve()((...e) => ({
|
|
636
|
+
...Ss(i)(...e),
|
|
637
|
+
...vs(i)(...e),
|
|
638
|
+
...bs(i)(...e),
|
|
639
|
+
...Ms(...e)
|
|
503
640
|
})), ot = Ue({});
|
|
504
|
-
function
|
|
505
|
-
const e =
|
|
641
|
+
function Ls(i) {
|
|
642
|
+
const e = F(5), {
|
|
506
643
|
children: t,
|
|
507
644
|
values: n
|
|
508
645
|
} = i;
|
|
509
646
|
let s;
|
|
510
|
-
e[0] !== n ? (s =
|
|
511
|
-
const [o] =
|
|
647
|
+
e[0] !== n ? (s = _s(n), e[0] = n, e[1] = s) : s = e[1];
|
|
648
|
+
const [o] = ee(s);
|
|
512
649
|
let r;
|
|
513
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */
|
|
650
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ N(ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
514
651
|
}
|
|
515
|
-
function
|
|
516
|
-
const e =
|
|
652
|
+
function D(i) {
|
|
653
|
+
const e = qe(ot);
|
|
517
654
|
if (!Object.keys(e).length)
|
|
518
655
|
throw new Error("Missing MapProvider in the tree");
|
|
519
656
|
return je(e, i);
|
|
@@ -521,105 +658,143 @@ function F(i) {
|
|
|
521
658
|
function Ts(i) {
|
|
522
659
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
523
660
|
}
|
|
524
|
-
var
|
|
525
|
-
function
|
|
526
|
-
if (He) return
|
|
661
|
+
var Ae, He;
|
|
662
|
+
function Es() {
|
|
663
|
+
if (He) return Ae;
|
|
527
664
|
He = 1;
|
|
528
|
-
var i = function(
|
|
529
|
-
return e(
|
|
665
|
+
var i = function(h) {
|
|
666
|
+
return e(h) && !t(h);
|
|
530
667
|
};
|
|
531
|
-
function e(
|
|
532
|
-
return !!
|
|
668
|
+
function e(y) {
|
|
669
|
+
return !!y && typeof y == "object";
|
|
533
670
|
}
|
|
534
|
-
function t(
|
|
535
|
-
var
|
|
536
|
-
return
|
|
671
|
+
function t(y) {
|
|
672
|
+
var h = Object.prototype.toString.call(y);
|
|
673
|
+
return h === "[object RegExp]" || h === "[object Date]" || o(y);
|
|
537
674
|
}
|
|
538
675
|
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
539
|
-
function o(
|
|
540
|
-
return
|
|
676
|
+
function o(y) {
|
|
677
|
+
return y.$$typeof === s;
|
|
541
678
|
}
|
|
542
|
-
function r(
|
|
543
|
-
return Array.isArray(
|
|
679
|
+
function r(y) {
|
|
680
|
+
return Array.isArray(y) ? [] : {};
|
|
544
681
|
}
|
|
545
|
-
function a(
|
|
546
|
-
return
|
|
682
|
+
function a(y, h) {
|
|
683
|
+
return h.clone !== !1 && h.isMergeableObject(y) ? m(r(y), y, h) : y;
|
|
547
684
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
550
|
-
return a(S,
|
|
685
|
+
function c(y, h, b) {
|
|
686
|
+
return y.concat(h).map(function(S) {
|
|
687
|
+
return a(S, b);
|
|
551
688
|
});
|
|
552
689
|
}
|
|
553
|
-
function
|
|
554
|
-
if (!
|
|
555
|
-
return
|
|
556
|
-
var
|
|
557
|
-
return typeof
|
|
690
|
+
function d(y, h) {
|
|
691
|
+
if (!h.customMerge)
|
|
692
|
+
return m;
|
|
693
|
+
var b = h.customMerge(y);
|
|
694
|
+
return typeof b == "function" ? b : m;
|
|
558
695
|
}
|
|
559
|
-
function
|
|
560
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
561
|
-
return Object.propertyIsEnumerable.call(
|
|
696
|
+
function l(y) {
|
|
697
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(y).filter(function(h) {
|
|
698
|
+
return Object.propertyIsEnumerable.call(y, h);
|
|
562
699
|
}) : [];
|
|
563
700
|
}
|
|
564
|
-
function p(
|
|
565
|
-
return Object.keys(
|
|
701
|
+
function p(y) {
|
|
702
|
+
return Object.keys(y).concat(l(y));
|
|
566
703
|
}
|
|
567
|
-
function
|
|
704
|
+
function f(y, h) {
|
|
568
705
|
try {
|
|
569
|
-
return
|
|
706
|
+
return h in y;
|
|
570
707
|
} catch {
|
|
571
708
|
return !1;
|
|
572
709
|
}
|
|
573
710
|
}
|
|
574
|
-
function u(
|
|
575
|
-
return
|
|
711
|
+
function u(y, h) {
|
|
712
|
+
return f(y, h) && !(Object.hasOwnProperty.call(y, h) && Object.propertyIsEnumerable.call(y, h));
|
|
576
713
|
}
|
|
577
|
-
function g(
|
|
714
|
+
function g(y, h, b) {
|
|
578
715
|
var S = {};
|
|
579
|
-
return
|
|
580
|
-
S[
|
|
581
|
-
}), p(
|
|
582
|
-
u(
|
|
716
|
+
return b.isMergeableObject(y) && p(y).forEach(function(M) {
|
|
717
|
+
S[M] = a(y[M], b);
|
|
718
|
+
}), p(h).forEach(function(M) {
|
|
719
|
+
u(y, M) || (f(y, M) && b.isMergeableObject(h[M]) ? S[M] = d(M, b)(y[M], h[M], b) : S[M] = a(h[M], b));
|
|
583
720
|
}), S;
|
|
584
721
|
}
|
|
585
|
-
function
|
|
586
|
-
|
|
587
|
-
var S = Array.isArray(
|
|
588
|
-
return
|
|
722
|
+
function m(y, h, b) {
|
|
723
|
+
b = b || {}, b.arrayMerge = b.arrayMerge || c, b.isMergeableObject = b.isMergeableObject || i, b.cloneUnlessOtherwiseSpecified = a;
|
|
724
|
+
var S = Array.isArray(h), M = Array.isArray(y), v = S === M;
|
|
725
|
+
return v ? S ? b.arrayMerge(y, h, b) : g(y, h, b) : a(h, b);
|
|
589
726
|
}
|
|
590
|
-
|
|
591
|
-
if (!Array.isArray(
|
|
727
|
+
m.all = function(h, b) {
|
|
728
|
+
if (!Array.isArray(h))
|
|
592
729
|
throw new Error("first argument should be an array");
|
|
593
|
-
return
|
|
594
|
-
return
|
|
730
|
+
return h.reduce(function(S, M) {
|
|
731
|
+
return m(S, M, b);
|
|
595
732
|
}, {});
|
|
596
733
|
};
|
|
597
|
-
var
|
|
598
|
-
return
|
|
734
|
+
var L = m;
|
|
735
|
+
return Ae = L, Ae;
|
|
736
|
+
}
|
|
737
|
+
var ks = Es();
|
|
738
|
+
const le = /* @__PURE__ */ Ts(ks), Be = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
739
|
+
class it extends wt {
|
|
740
|
+
updateState({
|
|
741
|
+
props: e,
|
|
742
|
+
oldProps: t,
|
|
743
|
+
context: n,
|
|
744
|
+
changeFlags: s
|
|
745
|
+
}) {
|
|
746
|
+
e.eventManager !== t.eventManager && (this._removeEventHandlers(e.eventManager), this._removeEventHandlers(t.eventManager), this._addEventHandlers()), super.updateState({
|
|
747
|
+
props: e,
|
|
748
|
+
oldProps: t,
|
|
749
|
+
context: n,
|
|
750
|
+
changeFlags: s
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
_addEventHandlers() {
|
|
754
|
+
const e = this._getEventManager(), {
|
|
755
|
+
eventHandler: t
|
|
756
|
+
} = this.state._editableLayerState;
|
|
757
|
+
for (const n of Be)
|
|
758
|
+
e.on(n, t, {
|
|
759
|
+
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
760
|
+
priority: 100
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
_removeEventHandlers(e) {
|
|
764
|
+
const t = e ?? this._getEventManager(), {
|
|
765
|
+
eventHandler: n
|
|
766
|
+
} = this.state._editableLayerState;
|
|
767
|
+
for (const s of Be)
|
|
768
|
+
t.off(s, n);
|
|
769
|
+
}
|
|
770
|
+
_getEventManager() {
|
|
771
|
+
return this.props.eventManager ?? // @ts-expect-error accessing protected props
|
|
772
|
+
this.context.deck.eventManager;
|
|
773
|
+
}
|
|
599
774
|
}
|
|
600
|
-
|
|
601
|
-
const Me = /* @__PURE__ */ Ts(Ls);
|
|
602
|
-
function _s({
|
|
775
|
+
function Ps({
|
|
603
776
|
mode: i,
|
|
604
|
-
|
|
777
|
+
eventManager: e,
|
|
778
|
+
...t
|
|
605
779
|
}) {
|
|
606
|
-
const
|
|
780
|
+
const n = Cs(t);
|
|
607
781
|
return {
|
|
608
|
-
type:
|
|
782
|
+
type: it,
|
|
609
783
|
props: {
|
|
610
|
-
...
|
|
784
|
+
...n,
|
|
785
|
+
eventManager: e,
|
|
611
786
|
mode: i
|
|
612
787
|
}
|
|
613
788
|
};
|
|
614
789
|
}
|
|
615
|
-
function
|
|
790
|
+
function Cs({
|
|
616
791
|
layerProps: i,
|
|
617
792
|
onEdit: e,
|
|
618
793
|
getLineColor: t,
|
|
619
794
|
getFillColor: n,
|
|
620
795
|
pointColor: s
|
|
621
796
|
}) {
|
|
622
|
-
const o =
|
|
797
|
+
const o = le(i, {
|
|
623
798
|
modeConfig: {
|
|
624
799
|
// // We force distance due to conversion is addressed at feature getText level
|
|
625
800
|
// formatTooltip: (_distance: number) => {
|
|
@@ -628,33 +803,33 @@ function Ps({
|
|
|
628
803
|
preventOverlappingLines: !0
|
|
629
804
|
},
|
|
630
805
|
onEdit: e
|
|
631
|
-
}), r =
|
|
806
|
+
}), r = le(gs, {
|
|
632
807
|
getTentativeLineColor: t,
|
|
633
808
|
getTentativeFillColor: n,
|
|
634
809
|
getLineColor: t,
|
|
635
810
|
getFillColor: n,
|
|
636
811
|
getEditHandlePointColor: s.fill,
|
|
637
812
|
getEditHandlePointOutlineColor: s.outline,
|
|
638
|
-
dataComparator: (
|
|
813
|
+
dataComparator: (c, d) => c.features[0] === d.features[0]
|
|
639
814
|
});
|
|
640
|
-
return
|
|
815
|
+
return le(r, o);
|
|
641
816
|
}
|
|
642
|
-
const
|
|
817
|
+
const ws = (i) => Ve()((e) => ({
|
|
643
818
|
data: i.reduce((n, s) => {
|
|
644
819
|
const {
|
|
645
820
|
enabled: o = !1,
|
|
646
821
|
mapId: r,
|
|
647
|
-
modeInstance: a = new
|
|
648
|
-
modes:
|
|
649
|
-
modeSelected:
|
|
650
|
-
values:
|
|
822
|
+
modeInstance: a = new De.polygon.mode(),
|
|
823
|
+
modes: c = De,
|
|
824
|
+
modeSelected: d = De.polygon.value,
|
|
825
|
+
values: l = {}
|
|
651
826
|
} = s;
|
|
652
827
|
return n[r] = {
|
|
653
828
|
enabled: o,
|
|
654
829
|
modeInstance: a,
|
|
655
|
-
modes:
|
|
656
|
-
modeSelected:
|
|
657
|
-
values:
|
|
830
|
+
modes: c,
|
|
831
|
+
modeSelected: d,
|
|
832
|
+
values: l
|
|
658
833
|
}, n;
|
|
659
834
|
}, {}),
|
|
660
835
|
setEnabled: (n, s) => {
|
|
@@ -673,11 +848,11 @@ const Es = (i) => Ve()((e) => ({
|
|
|
673
848
|
e((r) => {
|
|
674
849
|
const a = {
|
|
675
850
|
...r.data[n].values
|
|
676
|
-
},
|
|
851
|
+
}, c = a[s] ?? {
|
|
677
852
|
type: "mask"
|
|
678
853
|
};
|
|
679
854
|
return a[s] = {
|
|
680
|
-
...
|
|
855
|
+
...c,
|
|
681
856
|
...o,
|
|
682
857
|
id: s
|
|
683
858
|
}, o || delete a[s], {
|
|
@@ -695,15 +870,15 @@ const Es = (i) => Ve()((e) => ({
|
|
|
695
870
|
e((r) => {
|
|
696
871
|
const a = {
|
|
697
872
|
...r.data[n].values
|
|
698
|
-
},
|
|
699
|
-
return
|
|
873
|
+
}, c = a[s] ?? {};
|
|
874
|
+
return c.properties.visible = o, {
|
|
700
875
|
data: {
|
|
701
876
|
...r.data,
|
|
702
877
|
[n]: {
|
|
703
878
|
...r.data[n],
|
|
704
879
|
values: {
|
|
705
880
|
...a,
|
|
706
|
-
[s]:
|
|
881
|
+
[s]: c
|
|
707
882
|
}
|
|
708
883
|
}
|
|
709
884
|
}
|
|
@@ -732,95 +907,95 @@ const Es = (i) => Ve()((e) => ({
|
|
|
732
907
|
}
|
|
733
908
|
}));
|
|
734
909
|
}
|
|
735
|
-
})),
|
|
736
|
-
function
|
|
737
|
-
const e =
|
|
910
|
+
})), rt = Ue({});
|
|
911
|
+
function Fs(i) {
|
|
912
|
+
const e = F(5), {
|
|
738
913
|
children: t,
|
|
739
914
|
values: n
|
|
740
915
|
} = i;
|
|
741
916
|
let s;
|
|
742
|
-
e[0] !== n ? (s = () =>
|
|
743
|
-
const [o] =
|
|
917
|
+
e[0] !== n ? (s = () => ws(n), e[0] = n, e[1] = s) : s = e[1];
|
|
918
|
+
const [o] = ee(s);
|
|
744
919
|
let r;
|
|
745
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */
|
|
920
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ N(rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
746
921
|
}
|
|
747
|
-
function
|
|
748
|
-
const e =
|
|
922
|
+
function I(i) {
|
|
923
|
+
const e = qe(rt);
|
|
749
924
|
if (!Object.keys(e).length)
|
|
750
925
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
751
926
|
return je(e, i);
|
|
752
927
|
}
|
|
753
|
-
function
|
|
928
|
+
function Os({
|
|
754
929
|
mapId: i,
|
|
755
930
|
children: e
|
|
756
931
|
}) {
|
|
757
|
-
const t =
|
|
932
|
+
const t = I((u) => {
|
|
758
933
|
var g;
|
|
759
934
|
return (g = u.data[i]) == null ? void 0 : g.enabled;
|
|
760
|
-
}), n =
|
|
935
|
+
}), n = I((u) => u.setEnabled), s = I((u) => {
|
|
761
936
|
var g;
|
|
762
937
|
return (g = u.data[i]) == null ? void 0 : g.values;
|
|
763
|
-
}), o =
|
|
938
|
+
}), o = I((u) => u.setValue), r = I((u) => u.setVisibility), a = I((u) => {
|
|
764
939
|
var g;
|
|
765
940
|
return (g = u.data[i]) == null ? void 0 : g.modeSelected;
|
|
766
|
-
}),
|
|
941
|
+
}), c = I((u) => u.setModeSelected), d = I((u) => {
|
|
767
942
|
var g;
|
|
768
943
|
return (g = u.data[i]) == null ? void 0 : g.modes;
|
|
769
|
-
}),
|
|
770
|
-
|
|
771
|
-
const u =
|
|
944
|
+
}), l = I((u) => u.setModeInstance);
|
|
945
|
+
B(() => {
|
|
946
|
+
const u = d[a];
|
|
772
947
|
if (u && t) {
|
|
773
948
|
const g = u.mode;
|
|
774
|
-
|
|
949
|
+
l(i, new g());
|
|
775
950
|
}
|
|
776
|
-
}, [t, i, a,
|
|
951
|
+
}, [t, i, a, d, l]);
|
|
777
952
|
const [
|
|
778
953
|
p
|
|
779
954
|
// , draw
|
|
780
|
-
] =
|
|
781
|
-
const u = (
|
|
782
|
-
var
|
|
955
|
+
] = J(() => {
|
|
956
|
+
const u = (L) => {
|
|
957
|
+
var y;
|
|
783
958
|
return {
|
|
784
|
-
id:
|
|
785
|
-
visible:
|
|
786
|
-
label: (
|
|
959
|
+
id: L.id,
|
|
960
|
+
visible: L.properties.visible,
|
|
961
|
+
label: (y = L.properties) == null ? void 0 : y.label
|
|
787
962
|
};
|
|
788
963
|
};
|
|
789
964
|
return [
|
|
790
|
-
Object.values(s).filter((
|
|
965
|
+
Object.values(s).filter((L) => L.type === "mask").map(u)
|
|
791
966
|
// , draw
|
|
792
967
|
];
|
|
793
|
-
}, [s]),
|
|
794
|
-
n(i, !!u),
|
|
795
|
-
}, [i, n,
|
|
968
|
+
}, [s]), f = G((u) => {
|
|
969
|
+
n(i, !!u), c(i, u);
|
|
970
|
+
}, [i, n, c]);
|
|
796
971
|
return e({
|
|
797
972
|
mapId: i,
|
|
798
973
|
enabled: t,
|
|
799
|
-
modes:
|
|
974
|
+
modes: d,
|
|
800
975
|
modeSelected: a,
|
|
801
976
|
values: {
|
|
802
977
|
mask: p
|
|
803
978
|
// draw,
|
|
804
979
|
},
|
|
805
|
-
setValue:
|
|
806
|
-
setEnabled:
|
|
807
|
-
setVisibility:
|
|
808
|
-
setModeSelected:
|
|
980
|
+
setValue: G((u) => o(i, u), [i, o]),
|
|
981
|
+
setEnabled: G((u) => n(i, u), [i, n]),
|
|
982
|
+
setVisibility: G((u, g) => r(i, u, g), [i, r]),
|
|
983
|
+
setModeSelected: f
|
|
809
984
|
});
|
|
810
985
|
}
|
|
811
|
-
function
|
|
986
|
+
function at({
|
|
812
987
|
values: i
|
|
813
988
|
}) {
|
|
814
989
|
return Object.values(i ?? {}).filter((e) => e.type === "mask");
|
|
815
990
|
}
|
|
816
|
-
const
|
|
817
|
-
length:
|
|
991
|
+
const Ds = Ht({
|
|
992
|
+
length: Bt
|
|
818
993
|
});
|
|
819
|
-
function
|
|
820
|
-
return
|
|
994
|
+
function Ge(i, e) {
|
|
995
|
+
return Ds(i).from(Ze[U.meter]).to(Ze[e]);
|
|
821
996
|
}
|
|
822
|
-
const
|
|
823
|
-
function
|
|
997
|
+
const ze = 1e4;
|
|
998
|
+
function Me({
|
|
824
999
|
meters: i,
|
|
825
1000
|
unit: e,
|
|
826
1001
|
locale: t,
|
|
@@ -828,20 +1003,20 @@ function Ce({
|
|
|
828
1003
|
autoSplitNumber: n,
|
|
829
1004
|
...s
|
|
830
1005
|
} = {
|
|
831
|
-
autoSplitNumber:
|
|
1006
|
+
autoSplitNumber: ze
|
|
832
1007
|
}
|
|
833
1008
|
}) {
|
|
834
|
-
const o = e ===
|
|
835
|
-
let
|
|
1009
|
+
const o = e === $e["m-km"], r = e === $e["ft-mi"], a = o || r;
|
|
1010
|
+
let c, d;
|
|
836
1011
|
if (a) {
|
|
837
|
-
const
|
|
838
|
-
let p =
|
|
839
|
-
|
|
1012
|
+
const l = i < (n ?? ze);
|
|
1013
|
+
let p = l ? U.meter : U.kilometer;
|
|
1014
|
+
c = l ? ce.meter : ce.kilometer, r && (c = l ? ce.feet : ce.mile, p = l ? U.feet : U.mile), d = Ge(i, p);
|
|
840
1015
|
} else
|
|
841
|
-
|
|
842
|
-
return `${
|
|
1016
|
+
c = ce[e], d = Ge(i, e);
|
|
1017
|
+
return `${nt(d, t, {
|
|
843
1018
|
style: "unit",
|
|
844
|
-
unit:
|
|
1019
|
+
unit: c,
|
|
845
1020
|
unitDisplay: "short",
|
|
846
1021
|
notation: "standard",
|
|
847
1022
|
minimumFractionDigits: 2,
|
|
@@ -849,7 +1024,7 @@ function Ce({
|
|
|
849
1024
|
...s
|
|
850
1025
|
})}`;
|
|
851
1026
|
}
|
|
852
|
-
function
|
|
1027
|
+
function lo(i, {
|
|
853
1028
|
hasDoubleClickZoom: e
|
|
854
1029
|
}) {
|
|
855
1030
|
return typeof i == "boolean" ? {
|
|
@@ -859,7 +1034,7 @@ function Wn(i, {
|
|
|
859
1034
|
doubleClickZoom: e
|
|
860
1035
|
};
|
|
861
1036
|
}
|
|
862
|
-
function
|
|
1037
|
+
function lt(i, e, t) {
|
|
863
1038
|
if (i > 0) {
|
|
864
1039
|
const {
|
|
865
1040
|
formatTooltip: n,
|
|
@@ -881,13 +1056,13 @@ function at(i, e, t) {
|
|
|
881
1056
|
}
|
|
882
1057
|
return [];
|
|
883
1058
|
}
|
|
884
|
-
class
|
|
1059
|
+
class As extends Ft {
|
|
885
1060
|
constructor() {
|
|
886
1061
|
super(...arguments);
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
1062
|
+
W(this, "_isMeasuringSessionFinished", !1);
|
|
1063
|
+
W(this, "area", 0);
|
|
1064
|
+
W(this, "tooltips", []);
|
|
1065
|
+
W(this, "resultPolygon", {
|
|
891
1066
|
type: "FeatureCollection",
|
|
892
1067
|
features: []
|
|
893
1068
|
});
|
|
@@ -896,9 +1071,9 @@ class ws extends Rt {
|
|
|
896
1071
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
897
1072
|
const {
|
|
898
1073
|
picks: s
|
|
899
|
-
} = t, o =
|
|
1074
|
+
} = t, o = Ot(s), r = this.getClickSequence();
|
|
900
1075
|
let a = !1;
|
|
901
|
-
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area =
|
|
1076
|
+
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = Ne({
|
|
902
1077
|
type: "Polygon",
|
|
903
1078
|
coordinates: [this.getClickSequence()]
|
|
904
1079
|
}), this.isFinalizedEdition(r, o) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
@@ -919,8 +1094,8 @@ class ws extends Rt {
|
|
|
919
1094
|
super.handlePointerMove(t, n);
|
|
920
1095
|
const s = this.getTentativeGuide(n);
|
|
921
1096
|
if (s && s.geometry.type === "Polygon") {
|
|
922
|
-
const o =
|
|
923
|
-
this.area =
|
|
1097
|
+
const o = jt(s);
|
|
1098
|
+
this.area = Ne(s), this.tooltips = lt(this.area, o.geometry.coordinates, n.modeConfig);
|
|
924
1099
|
}
|
|
925
1100
|
}
|
|
926
1101
|
resetClickSequence() {
|
|
@@ -953,7 +1128,7 @@ class ws extends Rt {
|
|
|
953
1128
|
type: "LineString",
|
|
954
1129
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
955
1130
|
};
|
|
956
|
-
|
|
1131
|
+
Nt(r, a).features.length > 0 && (n = !0);
|
|
957
1132
|
}
|
|
958
1133
|
return n;
|
|
959
1134
|
}
|
|
@@ -969,7 +1144,7 @@ class ws extends Rt {
|
|
|
969
1144
|
const o = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
970
1145
|
this._isMeasuringSessionFinished = !0, o && (this.resultPolygon = o.updatedData, t.onEdit({
|
|
971
1146
|
...o,
|
|
972
|
-
editType:
|
|
1147
|
+
editType: Q.addPosition,
|
|
973
1148
|
editContext: {
|
|
974
1149
|
...o.editContext,
|
|
975
1150
|
distance: this.area,
|
|
@@ -992,7 +1167,7 @@ class ws extends Rt {
|
|
|
992
1167
|
unit: s,
|
|
993
1168
|
options: o
|
|
994
1169
|
}) {
|
|
995
|
-
return
|
|
1170
|
+
return Me({
|
|
996
1171
|
meters: t,
|
|
997
1172
|
locale: n,
|
|
998
1173
|
unit: s,
|
|
@@ -1000,22 +1175,22 @@ class ws extends Rt {
|
|
|
1000
1175
|
}) + "2";
|
|
1001
1176
|
}
|
|
1002
1177
|
}
|
|
1003
|
-
class
|
|
1178
|
+
class Rs extends et {
|
|
1004
1179
|
constructor() {
|
|
1005
1180
|
super(...arguments);
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1181
|
+
W(this, "_isMeasuringSessionFinished", !1);
|
|
1182
|
+
W(this, "_currentArea", 0);
|
|
1183
|
+
W(this, "resultPolygon", {
|
|
1009
1184
|
type: "FeatureCollection",
|
|
1010
1185
|
features: []
|
|
1011
1186
|
});
|
|
1012
|
-
|
|
1187
|
+
W(this, "tooltips", []);
|
|
1013
1188
|
}
|
|
1014
1189
|
handleClick(t, n) {
|
|
1015
1190
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
1016
1191
|
}
|
|
1017
1192
|
handlePointerMove(t, n) {
|
|
1018
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips =
|
|
1193
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips = lt(this.areaCircle, this.position, n.modeConfig));
|
|
1019
1194
|
}
|
|
1020
1195
|
checkAndFinishPolygon(t) {
|
|
1021
1196
|
const n = this.getClickSequence(), s = this.getTentativeGuide(t);
|
|
@@ -1039,7 +1214,7 @@ class Os extends Xe {
|
|
|
1039
1214
|
const s = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1040
1215
|
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, t.onEdit({
|
|
1041
1216
|
...s,
|
|
1042
|
-
editType:
|
|
1217
|
+
editType: Q.addPosition,
|
|
1043
1218
|
editContext: {
|
|
1044
1219
|
...s.editContext,
|
|
1045
1220
|
distance: this._currentArea,
|
|
@@ -1068,7 +1243,7 @@ class Os extends Xe {
|
|
|
1068
1243
|
unit: s,
|
|
1069
1244
|
options: o
|
|
1070
1245
|
}) {
|
|
1071
|
-
return
|
|
1246
|
+
return Me({
|
|
1072
1247
|
meters: t,
|
|
1073
1248
|
locale: n,
|
|
1074
1249
|
unit: s,
|
|
@@ -1076,12 +1251,12 @@ class Os extends Xe {
|
|
|
1076
1251
|
}) + "2";
|
|
1077
1252
|
}
|
|
1078
1253
|
}
|
|
1079
|
-
class
|
|
1254
|
+
class ct extends Dt {
|
|
1080
1255
|
handleClick(e, t) {
|
|
1081
1256
|
super.handleClick(e, t), t.onEdit({
|
|
1082
1257
|
// data is the same
|
|
1083
1258
|
updatedData: t.data,
|
|
1084
|
-
editType:
|
|
1259
|
+
editType: Q.addPosition,
|
|
1085
1260
|
editContext: {
|
|
1086
1261
|
distance: this._currentDistance,
|
|
1087
1262
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1095,7 +1270,7 @@ class lt extends xt {
|
|
|
1095
1270
|
const {
|
|
1096
1271
|
key: n
|
|
1097
1272
|
} = e, s = this.getClickSequence().length;
|
|
1098
|
-
let o =
|
|
1273
|
+
let o = Q.finish;
|
|
1099
1274
|
switch (n) {
|
|
1100
1275
|
case "Escape":
|
|
1101
1276
|
t.onEdit({
|
|
@@ -1103,12 +1278,12 @@ class lt extends xt {
|
|
|
1103
1278
|
type: "FeatureCollection",
|
|
1104
1279
|
features: []
|
|
1105
1280
|
},
|
|
1106
|
-
editType:
|
|
1281
|
+
editType: Q.cancel,
|
|
1107
1282
|
editContext: {}
|
|
1108
1283
|
});
|
|
1109
1284
|
break;
|
|
1110
1285
|
case "Enter":
|
|
1111
|
-
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o =
|
|
1286
|
+
this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o = Q.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1112
1287
|
updatedData: t.data,
|
|
1113
1288
|
editType: o,
|
|
1114
1289
|
editContext: {
|
|
@@ -1127,7 +1302,7 @@ class lt extends xt {
|
|
|
1127
1302
|
unit: n,
|
|
1128
1303
|
options: s
|
|
1129
1304
|
}) {
|
|
1130
|
-
return
|
|
1305
|
+
return Me({
|
|
1131
1306
|
meters: e,
|
|
1132
1307
|
locale: t,
|
|
1133
1308
|
unit: n,
|
|
@@ -1135,8 +1310,8 @@ class lt extends xt {
|
|
|
1135
1310
|
});
|
|
1136
1311
|
}
|
|
1137
1312
|
}
|
|
1138
|
-
const
|
|
1139
|
-
id:
|
|
1313
|
+
const oe = "mapMeasureLayer", $s = {
|
|
1314
|
+
id: oe,
|
|
1140
1315
|
pickable: !1,
|
|
1141
1316
|
billboard: !1,
|
|
1142
1317
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1160,19 +1335,19 @@ const ve = "mapMeasureLayer", As = {
|
|
|
1160
1335
|
getLineWidth: 2
|
|
1161
1336
|
}
|
|
1162
1337
|
}
|
|
1163
|
-
},
|
|
1338
|
+
}, Re = {
|
|
1164
1339
|
editing: [23, 102, 214, 255],
|
|
1165
1340
|
finished: [71, 219, 153, 255],
|
|
1166
1341
|
point: [255, 255, 255, 255]
|
|
1167
|
-
},
|
|
1342
|
+
}, Qe = {
|
|
1168
1343
|
styles: {
|
|
1169
1344
|
colors: {
|
|
1170
|
-
editing:
|
|
1171
|
-
finished:
|
|
1172
|
-
point:
|
|
1345
|
+
editing: Re.editing,
|
|
1346
|
+
finished: Re.finished,
|
|
1347
|
+
point: Re.point
|
|
1173
1348
|
}
|
|
1174
1349
|
}
|
|
1175
|
-
},
|
|
1350
|
+
}, U = {
|
|
1176
1351
|
kilometer: "kilometer",
|
|
1177
1352
|
meter: "meter",
|
|
1178
1353
|
centimeter: "centimeter",
|
|
@@ -1180,31 +1355,31 @@ const ve = "mapMeasureLayer", As = {
|
|
|
1180
1355
|
mile: "mile",
|
|
1181
1356
|
yard: "yard",
|
|
1182
1357
|
feet: "feet"
|
|
1183
|
-
},
|
|
1358
|
+
}, $e = {
|
|
1184
1359
|
"m-km": "m-km",
|
|
1185
1360
|
"ft-mi": "ft-mi",
|
|
1186
|
-
...
|
|
1187
|
-
},
|
|
1361
|
+
...U
|
|
1362
|
+
}, xs = {
|
|
1188
1363
|
meters: "meters",
|
|
1189
1364
|
kilometer: "kilometers",
|
|
1190
1365
|
mile: "miles"
|
|
1191
1366
|
}, Ze = {
|
|
1192
|
-
[
|
|
1193
|
-
[
|
|
1194
|
-
[
|
|
1195
|
-
[
|
|
1196
|
-
[
|
|
1197
|
-
[
|
|
1198
|
-
[
|
|
1199
|
-
},
|
|
1200
|
-
[
|
|
1201
|
-
[
|
|
1202
|
-
[
|
|
1203
|
-
[
|
|
1204
|
-
[
|
|
1205
|
-
[
|
|
1206
|
-
[
|
|
1207
|
-
},
|
|
1367
|
+
[U.kilometer]: "km",
|
|
1368
|
+
[U.meter]: "m",
|
|
1369
|
+
[U.centimeter]: "cm",
|
|
1370
|
+
[U.milimeter]: "mm",
|
|
1371
|
+
[U.mile]: "mi",
|
|
1372
|
+
[U.yard]: "yd",
|
|
1373
|
+
[U.feet]: "ft"
|
|
1374
|
+
}, ce = {
|
|
1375
|
+
[U.kilometer]: "kilometer",
|
|
1376
|
+
[U.meter]: "meter",
|
|
1377
|
+
[U.centimeter]: "centimeter",
|
|
1378
|
+
[U.milimeter]: "millimeter",
|
|
1379
|
+
[U.mile]: "mile",
|
|
1380
|
+
[U.yard]: "yard",
|
|
1381
|
+
[U.feet]: "foot"
|
|
1382
|
+
}, z = {
|
|
1208
1383
|
"m-km": {
|
|
1209
1384
|
value: "m-km",
|
|
1210
1385
|
system: "metric"
|
|
@@ -1241,183 +1416,226 @@ const ve = "mapMeasureLayer", As = {
|
|
|
1241
1416
|
value: "feet",
|
|
1242
1417
|
system: "imperial"
|
|
1243
1418
|
}
|
|
1244
|
-
},
|
|
1419
|
+
}, Ke = [z["m-km"], z.kilometer, z.meter, z["ft-mi"], z.mile, z.feet], Us = [z["m-km"], z.kilometer, z.meter, z["ft-mi"], z.mile, z.feet], qs = {
|
|
1245
1420
|
distance: {
|
|
1246
1421
|
value: "distance",
|
|
1247
|
-
mode:
|
|
1422
|
+
mode: ct
|
|
1248
1423
|
},
|
|
1249
1424
|
buffer: {
|
|
1250
1425
|
value: "buffer",
|
|
1251
|
-
mode:
|
|
1426
|
+
mode: Rs
|
|
1252
1427
|
},
|
|
1253
1428
|
area: {
|
|
1254
1429
|
value: "area",
|
|
1255
|
-
mode:
|
|
1256
|
-
}
|
|
1257
|
-
},
|
|
1258
|
-
distance:
|
|
1259
|
-
buffer:
|
|
1260
|
-
area:
|
|
1261
|
-
}
|
|
1262
|
-
function
|
|
1430
|
+
mode: As
|
|
1431
|
+
}
|
|
1432
|
+
}, Vs = {
|
|
1433
|
+
distance: Ke,
|
|
1434
|
+
buffer: Ke,
|
|
1435
|
+
area: Us
|
|
1436
|
+
};
|
|
1437
|
+
function ut(i) {
|
|
1438
|
+
const e = F(7), {
|
|
1439
|
+
mapId: t
|
|
1440
|
+
} = i;
|
|
1441
|
+
let n;
|
|
1442
|
+
e[0] !== t ? (n = (f) => {
|
|
1443
|
+
var u;
|
|
1444
|
+
return (u = f.maps[t]) == null ? void 0 : u.basemap;
|
|
1445
|
+
}, e[0] = t, e[1] = n) : n = e[1];
|
|
1446
|
+
const s = D(n);
|
|
1447
|
+
let o;
|
|
1448
|
+
e[2] !== t ? (o = (f) => {
|
|
1449
|
+
var u;
|
|
1450
|
+
return (u = f.maps[t]) == null ? void 0 : u.isLoaded;
|
|
1451
|
+
}, e[2] = t, e[3] = o) : o = e[3];
|
|
1452
|
+
const r = D(o), a = D(js), {
|
|
1453
|
+
type: c
|
|
1454
|
+
} = ue[s], d = c === Y.googleMaps;
|
|
1455
|
+
let l;
|
|
1456
|
+
e: {
|
|
1457
|
+
if (!d || !r) {
|
|
1458
|
+
l = null;
|
|
1459
|
+
break e;
|
|
1460
|
+
}
|
|
1461
|
+
let f;
|
|
1462
|
+
if (e[4] !== a || e[5] !== t) {
|
|
1463
|
+
const g = a(t);
|
|
1464
|
+
f = new qt(g.getDiv(), {}), e[4] = a, e[5] = t, e[6] = f;
|
|
1465
|
+
} else
|
|
1466
|
+
f = e[6];
|
|
1467
|
+
l = f;
|
|
1468
|
+
}
|
|
1469
|
+
return l;
|
|
1470
|
+
}
|
|
1471
|
+
function js(i) {
|
|
1472
|
+
return i.getOverlayInstance;
|
|
1473
|
+
}
|
|
1474
|
+
const Ns = [ae, be, oe];
|
|
1475
|
+
function Is({
|
|
1263
1476
|
children: i,
|
|
1264
1477
|
mapId: e,
|
|
1265
1478
|
defaultProps: {
|
|
1266
|
-
styles: t =
|
|
1479
|
+
styles: t = Oe.styles,
|
|
1267
1480
|
labels: n
|
|
1268
1481
|
} = {
|
|
1269
|
-
styles:
|
|
1270
|
-
labels:
|
|
1482
|
+
styles: Oe.styles,
|
|
1483
|
+
labels: Oe.labels
|
|
1271
1484
|
},
|
|
1272
1485
|
layerProps: s = {},
|
|
1273
1486
|
defaultType: o = "mask"
|
|
1274
1487
|
}) {
|
|
1275
|
-
const r =
|
|
1276
|
-
var
|
|
1277
|
-
return (
|
|
1278
|
-
}), a =
|
|
1279
|
-
var
|
|
1280
|
-
return (
|
|
1281
|
-
}),
|
|
1282
|
-
var
|
|
1283
|
-
return (
|
|
1284
|
-
}), p =
|
|
1285
|
-
var
|
|
1286
|
-
return (
|
|
1287
|
-
}),
|
|
1288
|
-
var
|
|
1289
|
-
return (
|
|
1290
|
-
})),
|
|
1291
|
-
|
|
1292
|
-
}),
|
|
1488
|
+
const r = I((_) => {
|
|
1489
|
+
var E;
|
|
1490
|
+
return (E = _.data[e]) == null ? void 0 : E.enabled;
|
|
1491
|
+
}), a = I((_) => _.setEnabled), c = I((_) => {
|
|
1492
|
+
var E;
|
|
1493
|
+
return (E = _.data[e]) == null ? void 0 : E.values;
|
|
1494
|
+
}), d = I((_) => _.setValue), l = I((_) => {
|
|
1495
|
+
var E;
|
|
1496
|
+
return (E = _.data[e]) == null ? void 0 : E.modeInstance;
|
|
1497
|
+
}), p = I((_) => {
|
|
1498
|
+
var E;
|
|
1499
|
+
return (E = _.data[e]) == null ? void 0 : E.modeSelected;
|
|
1500
|
+
}), f = de((_) => _.setLayer), u = D((_) => _.addLayers), g = D((_) => _.removeLayers), m = D(st((_) => {
|
|
1501
|
+
var E;
|
|
1502
|
+
return (E = _.maps[e]) == null ? void 0 : E.layers.filter((C) => !Ns.includes(C));
|
|
1503
|
+
})), L = D((_) => _.getDeckInstance), y = ve({}), h = ut({
|
|
1504
|
+
mapId: e
|
|
1505
|
+
}), b = J(() => at({
|
|
1506
|
+
values: c
|
|
1507
|
+
}), [c]), S = J(() => ({
|
|
1293
1508
|
type: "FeatureCollection",
|
|
1294
|
-
features:
|
|
1509
|
+
features: b.map((_) => ({
|
|
1295
1510
|
type: "Feature",
|
|
1296
|
-
geometry:
|
|
1297
|
-
properties:
|
|
1298
|
-
id:
|
|
1511
|
+
geometry: _.geometry,
|
|
1512
|
+
properties: _.properties,
|
|
1513
|
+
id: _.id
|
|
1299
1514
|
}))
|
|
1300
|
-
}), [
|
|
1301
|
-
const
|
|
1302
|
-
...
|
|
1303
|
-
features:
|
|
1515
|
+
}), [b]), M = J(() => b.filter((_) => _.properties.visible).map((_) => _.id), [b]), [v, T] = ee(S), [P, O] = ee([]), R = G(() => {
|
|
1516
|
+
const _ = {
|
|
1517
|
+
...S,
|
|
1518
|
+
features: S.features.filter((E) => {
|
|
1304
1519
|
var C;
|
|
1305
|
-
return (C =
|
|
1520
|
+
return (C = E.properties) == null ? void 0 : C.visible;
|
|
1306
1521
|
})
|
|
1307
1522
|
};
|
|
1308
|
-
|
|
1309
|
-
}, [
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
}, [
|
|
1313
|
-
const
|
|
1314
|
-
|
|
1315
|
-
g(e, [
|
|
1523
|
+
T(_);
|
|
1524
|
+
}, [S]);
|
|
1525
|
+
B(() => {
|
|
1526
|
+
R();
|
|
1527
|
+
}, [R]);
|
|
1528
|
+
const x = ve(b.length);
|
|
1529
|
+
B(() => (u(e, [ae]), () => {
|
|
1530
|
+
g(e, [ae]);
|
|
1316
1531
|
}), [u, e, g]);
|
|
1317
|
-
const
|
|
1318
|
-
|
|
1319
|
-
}, [e,
|
|
1320
|
-
editType:
|
|
1321
|
-
updatedData:
|
|
1532
|
+
const j = G(() => {
|
|
1533
|
+
R(), O([]), a(e, !1);
|
|
1534
|
+
}, [e, R, a]), q = G(({
|
|
1535
|
+
editType: _,
|
|
1536
|
+
updatedData: E
|
|
1322
1537
|
}) => {
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
1538
|
+
if (_ === Q.cancel) {
|
|
1539
|
+
j();
|
|
1325
1540
|
return;
|
|
1326
1541
|
}
|
|
1327
|
-
|
|
1328
|
-
var
|
|
1329
|
-
(
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1542
|
+
T(E), _ !== Q.updateTentativeFeature && _ === Q.addFeature && (p !== "edit" && (x.current = x.current + 1), E.features.forEach((C, w) => {
|
|
1543
|
+
var $;
|
|
1544
|
+
($ = C.properties).label ?? ($.label = `${n == null ? void 0 : n.mask} ${x.current}`), C.properties.index = w, C.properties.visible = C.properties.visible ?? !0;
|
|
1545
|
+
const A = C.id ?? crypto.randomUUID();
|
|
1546
|
+
d(e, A, {
|
|
1332
1547
|
geometry: C.geometry,
|
|
1333
1548
|
properties: C.properties,
|
|
1334
1549
|
// visible: true,
|
|
1335
1550
|
type: o
|
|
1336
1551
|
});
|
|
1337
|
-
}),
|
|
1338
|
-
}, [o,
|
|
1339
|
-
return
|
|
1340
|
-
const
|
|
1341
|
-
border:
|
|
1552
|
+
}), j());
|
|
1553
|
+
}, [o, j, n == null ? void 0 : n.mask, e, p, d]);
|
|
1554
|
+
return B(() => {
|
|
1555
|
+
const _ = r, {
|
|
1556
|
+
border: E,
|
|
1342
1557
|
point: C,
|
|
1343
|
-
fill:
|
|
1558
|
+
fill: w
|
|
1344
1559
|
} = t.colors.editing, {
|
|
1345
|
-
border:
|
|
1346
|
-
fill:
|
|
1347
|
-
} = t.colors.finished,
|
|
1560
|
+
border: A,
|
|
1561
|
+
fill: $
|
|
1562
|
+
} = t.colors.finished, Z = Ps({
|
|
1348
1563
|
layerProps: {
|
|
1349
1564
|
...s.mask,
|
|
1350
|
-
pickable:
|
|
1565
|
+
pickable: _,
|
|
1351
1566
|
data: v,
|
|
1352
|
-
selectedFeatureIndexes:
|
|
1567
|
+
selectedFeatureIndexes: P,
|
|
1353
1568
|
updateTriggers: {
|
|
1354
|
-
getFilterValue:
|
|
1569
|
+
getFilterValue: M
|
|
1355
1570
|
},
|
|
1356
|
-
onClick: (
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1571
|
+
onClick: (H) => {
|
|
1572
|
+
const X = H;
|
|
1573
|
+
X.isGuide || O([X.index]);
|
|
1359
1574
|
}
|
|
1360
1575
|
},
|
|
1361
|
-
getLineColor: (
|
|
1362
|
-
getFillColor: (
|
|
1576
|
+
getLineColor: (H) => P[0] === H.properties.index ? E : A,
|
|
1577
|
+
getFillColor: (H) => P[0] === H.properties.index ? w : $,
|
|
1363
1578
|
pointColor: {
|
|
1364
1579
|
fill: C,
|
|
1365
|
-
outline:
|
|
1580
|
+
outline: E
|
|
1366
1581
|
},
|
|
1367
|
-
|
|
1368
|
-
|
|
1582
|
+
eventManager: h,
|
|
1583
|
+
onEdit: q,
|
|
1584
|
+
mode: _ ? l : new At()
|
|
1369
1585
|
});
|
|
1370
|
-
|
|
1371
|
-
}, [v, r, s.mask,
|
|
1372
|
-
const
|
|
1373
|
-
...
|
|
1374
|
-
data:
|
|
1375
|
-
getFilterValue: (
|
|
1586
|
+
f(ae, Z);
|
|
1587
|
+
}, [v, r, s.mask, M, l, q, P, f, t.colors.editing, t.colors.finished, h]), B(() => {
|
|
1588
|
+
const _ = {
|
|
1589
|
+
...Se,
|
|
1590
|
+
data: S,
|
|
1591
|
+
getFilterValue: (E) => Number(M.includes(E.id)),
|
|
1376
1592
|
updateTriggers: {
|
|
1377
|
-
getFilterValue:
|
|
1593
|
+
getFilterValue: M
|
|
1378
1594
|
}
|
|
1379
1595
|
};
|
|
1380
|
-
return
|
|
1381
|
-
type:
|
|
1382
|
-
props:
|
|
1383
|
-
}), u(e, [
|
|
1384
|
-
g(e, [
|
|
1596
|
+
return f(Se.id, {
|
|
1597
|
+
type: Vt,
|
|
1598
|
+
props: _
|
|
1599
|
+
}), u(e, [Se.id]), () => {
|
|
1600
|
+
g(e, [Se.id]);
|
|
1385
1601
|
};
|
|
1386
|
-
}, [u, e,
|
|
1387
|
-
|
|
1388
|
-
var
|
|
1389
|
-
const
|
|
1390
|
-
r && (
|
|
1391
|
-
const C = !r && (
|
|
1392
|
-
|
|
1602
|
+
}, [u, e, S, M, g, f]), B(() => {
|
|
1603
|
+
m == null || m.forEach((_) => {
|
|
1604
|
+
var w;
|
|
1605
|
+
const E = (w = L(e)) == null ? void 0 : w.props.layers.find((A) => A.props.id === _);
|
|
1606
|
+
r && (y.current[_] = E == null ? void 0 : E.props.pickable);
|
|
1607
|
+
const C = !r && (y.current[_] ?? (E == null ? void 0 : E.props.pickable));
|
|
1608
|
+
f(_, {
|
|
1393
1609
|
props: {
|
|
1394
1610
|
pickable: C,
|
|
1395
1611
|
extensions: [new $t()],
|
|
1396
|
-
maskId: !r &&
|
|
1612
|
+
maskId: !r && M.length ? be : void 0
|
|
1397
1613
|
}
|
|
1398
1614
|
});
|
|
1399
1615
|
});
|
|
1400
|
-
}, [r,
|
|
1616
|
+
}, [r, L, e, m, M.length, f]), i;
|
|
1401
1617
|
}
|
|
1402
|
-
|
|
1403
|
-
function
|
|
1618
|
+
Is.Controls = Os;
|
|
1619
|
+
function Hs({
|
|
1404
1620
|
mode: i,
|
|
1405
|
-
|
|
1621
|
+
eventManager: e,
|
|
1622
|
+
...t
|
|
1406
1623
|
}) {
|
|
1407
|
-
const
|
|
1624
|
+
const n = Bs({
|
|
1408
1625
|
mode: i,
|
|
1409
|
-
...
|
|
1626
|
+
...t
|
|
1410
1627
|
});
|
|
1411
1628
|
return {
|
|
1412
|
-
type:
|
|
1629
|
+
type: it,
|
|
1413
1630
|
props: {
|
|
1414
|
-
...
|
|
1631
|
+
...n,
|
|
1632
|
+
eventManager: e,
|
|
1415
1633
|
mode: i,
|
|
1416
1634
|
data: []
|
|
1417
1635
|
}
|
|
1418
1636
|
};
|
|
1419
1637
|
}
|
|
1420
|
-
function
|
|
1638
|
+
function Bs({
|
|
1421
1639
|
mode: i,
|
|
1422
1640
|
layerProps: e,
|
|
1423
1641
|
locale: t,
|
|
@@ -1426,16 +1644,16 @@ function js({
|
|
|
1426
1644
|
onEdit: o,
|
|
1427
1645
|
guideColor: r,
|
|
1428
1646
|
pointColor: a,
|
|
1429
|
-
textOptions:
|
|
1647
|
+
textOptions: c
|
|
1430
1648
|
}) {
|
|
1431
|
-
const
|
|
1649
|
+
const d = le(e, {
|
|
1432
1650
|
visible: n,
|
|
1433
1651
|
pickable: n,
|
|
1434
1652
|
modeConfig: {
|
|
1435
1653
|
// We force distance due to conversion is addressed at feature getText level
|
|
1436
|
-
formatTooltip: (
|
|
1654
|
+
formatTooltip: (f) => f,
|
|
1437
1655
|
turfOptions: {
|
|
1438
|
-
units:
|
|
1656
|
+
units: xs.meters
|
|
1439
1657
|
}
|
|
1440
1658
|
},
|
|
1441
1659
|
...n && {
|
|
@@ -1450,21 +1668,21 @@ function js({
|
|
|
1450
1668
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1451
1669
|
smoothing: 0.2
|
|
1452
1670
|
},
|
|
1453
|
-
getText: (
|
|
1671
|
+
getText: (f) => {
|
|
1454
1672
|
var u;
|
|
1455
1673
|
return (u = i == null ? void 0 : i.getTooltipText) == null ? void 0 : u.call(i, {
|
|
1456
|
-
meters:
|
|
1674
|
+
meters: f.text,
|
|
1457
1675
|
locale: t,
|
|
1458
1676
|
unit: s,
|
|
1459
|
-
options:
|
|
1677
|
+
options: c
|
|
1460
1678
|
});
|
|
1461
1679
|
},
|
|
1462
1680
|
updateTriggers: {
|
|
1463
|
-
getText: [s, t,
|
|
1681
|
+
getText: [s, t, c]
|
|
1464
1682
|
}
|
|
1465
1683
|
}
|
|
1466
1684
|
}
|
|
1467
|
-
}),
|
|
1685
|
+
}), l = le($s, {
|
|
1468
1686
|
_subLayerProps: {
|
|
1469
1687
|
guides: {
|
|
1470
1688
|
getLineColor: r,
|
|
@@ -1474,37 +1692,37 @@ function js({
|
|
|
1474
1692
|
getEditHandlePointColor: a,
|
|
1475
1693
|
getEditHandlePointOutlineColor: r
|
|
1476
1694
|
});
|
|
1477
|
-
return
|
|
1695
|
+
return le(l, d);
|
|
1478
1696
|
}
|
|
1479
|
-
const
|
|
1697
|
+
const Gs = (i) => Ve()((e) => ({
|
|
1480
1698
|
measurements: i.reduce((n, s) => {
|
|
1481
1699
|
const {
|
|
1482
1700
|
mapId: o,
|
|
1483
1701
|
modeSelected: r,
|
|
1484
|
-
modes: a =
|
|
1485
|
-
units:
|
|
1486
|
-
distance:
|
|
1487
|
-
finished:
|
|
1702
|
+
modes: a = qs,
|
|
1703
|
+
units: c = Vs,
|
|
1704
|
+
distance: d = 0,
|
|
1705
|
+
finished: l = !1,
|
|
1488
1706
|
locale: p = "en",
|
|
1489
|
-
positions:
|
|
1707
|
+
positions: f = [],
|
|
1490
1708
|
clearLayerOnStart: u = !1,
|
|
1491
|
-
unit: g =
|
|
1492
|
-
enabled:
|
|
1709
|
+
unit: g = $e["m-km"],
|
|
1710
|
+
enabled: m = !1
|
|
1493
1711
|
} = s;
|
|
1494
1712
|
return n[o] = {
|
|
1495
1713
|
modes: a,
|
|
1496
|
-
units:
|
|
1714
|
+
units: c,
|
|
1497
1715
|
modeSelected: r,
|
|
1498
|
-
distance:
|
|
1499
|
-
finished:
|
|
1716
|
+
distance: d,
|
|
1717
|
+
finished: l,
|
|
1500
1718
|
locale: p,
|
|
1501
|
-
positions:
|
|
1719
|
+
positions: f,
|
|
1502
1720
|
unit: g,
|
|
1503
1721
|
clearLayerOnStart: u,
|
|
1504
|
-
enabled:
|
|
1722
|
+
enabled: m
|
|
1505
1723
|
}, n;
|
|
1506
1724
|
}, {}),
|
|
1507
|
-
mode:
|
|
1725
|
+
mode: ct,
|
|
1508
1726
|
setModeInstance: (n, s) => {
|
|
1509
1727
|
e((o) => ({
|
|
1510
1728
|
measurements: {
|
|
@@ -1593,148 +1811,148 @@ const Ns = (i) => Ve()((e) => ({
|
|
|
1593
1811
|
}
|
|
1594
1812
|
}));
|
|
1595
1813
|
}
|
|
1596
|
-
})),
|
|
1597
|
-
function
|
|
1598
|
-
const e =
|
|
1814
|
+
})), dt = Ue({});
|
|
1815
|
+
function zs(i) {
|
|
1816
|
+
const e = F(5), {
|
|
1599
1817
|
children: t,
|
|
1600
1818
|
values: n
|
|
1601
1819
|
} = i;
|
|
1602
1820
|
let s;
|
|
1603
|
-
e[0] !== n ? (s =
|
|
1604
|
-
const [o] =
|
|
1821
|
+
e[0] !== n ? (s = Gs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1822
|
+
const [o] = ee(s);
|
|
1605
1823
|
let r;
|
|
1606
|
-
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */
|
|
1824
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ N(dt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
1607
1825
|
}
|
|
1608
|
-
function
|
|
1609
|
-
const e =
|
|
1826
|
+
function V(i) {
|
|
1827
|
+
const e = qe(dt);
|
|
1610
1828
|
if (!Object.keys(e).length)
|
|
1611
1829
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1612
1830
|
return je(e, i);
|
|
1613
1831
|
}
|
|
1614
|
-
function
|
|
1615
|
-
const e =
|
|
1832
|
+
function ft(i) {
|
|
1833
|
+
const e = F(74), {
|
|
1616
1834
|
mapId: t
|
|
1617
1835
|
} = i;
|
|
1618
1836
|
let n;
|
|
1619
|
-
e[0] !== t ? (n = (
|
|
1620
|
-
const s =
|
|
1837
|
+
e[0] !== t ? (n = (k) => k.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1838
|
+
const s = V(n);
|
|
1621
1839
|
let o;
|
|
1622
|
-
e[2] !== t ? (o = (
|
|
1623
|
-
const r =
|
|
1840
|
+
e[2] !== t ? (o = (k) => k.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1841
|
+
const r = V(o);
|
|
1624
1842
|
let a;
|
|
1625
|
-
e[4] !== t ? (a = (
|
|
1626
|
-
const
|
|
1627
|
-
let
|
|
1628
|
-
e[6] !==
|
|
1629
|
-
const p =
|
|
1630
|
-
let
|
|
1631
|
-
e[9] !== t ? (
|
|
1632
|
-
const u =
|
|
1843
|
+
e[4] !== t ? (a = (k) => k.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1844
|
+
const c = V(a), d = V(en);
|
|
1845
|
+
let l;
|
|
1846
|
+
e[6] !== d || e[7] !== t ? (l = (k) => d(t, k), e[6] = d, e[7] = t, e[8] = l) : l = e[8];
|
|
1847
|
+
const p = l;
|
|
1848
|
+
let f;
|
|
1849
|
+
e[9] !== t ? (f = (k) => k.measurements[t].clearLayerOnStart, e[9] = t, e[10] = f) : f = e[10];
|
|
1850
|
+
const u = V(f);
|
|
1633
1851
|
let g;
|
|
1634
|
-
e[11] !== t ? (g = (
|
|
1635
|
-
const
|
|
1636
|
-
let
|
|
1637
|
-
e[13] !==
|
|
1638
|
-
const
|
|
1639
|
-
let T;
|
|
1640
|
-
e[16] !== t ? (T = (_) => _.measurements[t].modeSelected, e[16] = t, e[17] = T) : T = e[17];
|
|
1641
|
-
const S = q(T), v = q(Zs);
|
|
1642
|
-
let L;
|
|
1643
|
-
e[18] !== v || e[19] !== t || e[20] !== y ? (L = (_) => {
|
|
1644
|
-
y(!!_), v(t, _);
|
|
1645
|
-
}, e[18] = v, e[19] = t, e[20] = y, e[21] = L) : L = e[21];
|
|
1646
|
-
const E = L;
|
|
1647
|
-
let w;
|
|
1648
|
-
e[22] !== t ? (w = (_) => _.measurements[t].finished, e[22] = t, e[23] = w) : w = e[23];
|
|
1649
|
-
const O = q(w), D = q(Gs);
|
|
1650
|
-
let U;
|
|
1651
|
-
e[24] !== D || e[25] !== t ? (U = (_) => D(t, _), e[24] = D, e[25] = t, e[26] = U) : U = e[26];
|
|
1652
|
-
const V = U;
|
|
1852
|
+
e[11] !== t ? (g = (k) => k.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1853
|
+
const m = V(g), L = V(Js);
|
|
1854
|
+
let y;
|
|
1855
|
+
e[13] !== L || e[14] !== t ? (y = (k) => L(t, k), e[13] = L, e[14] = t, e[15] = y) : y = e[15];
|
|
1856
|
+
const h = y;
|
|
1653
1857
|
let b;
|
|
1654
|
-
e[
|
|
1655
|
-
const
|
|
1858
|
+
e[16] !== t ? (b = (k) => k.measurements[t].modeSelected, e[16] = t, e[17] = b) : b = e[17];
|
|
1859
|
+
const S = V(b), M = V(Xs);
|
|
1860
|
+
let v;
|
|
1861
|
+
e[18] !== M || e[19] !== t || e[20] !== h ? (v = (k) => {
|
|
1862
|
+
h(!!k), M(t, k);
|
|
1863
|
+
}, e[18] = M, e[19] = t, e[20] = h, e[21] = v) : v = e[21];
|
|
1864
|
+
const T = v;
|
|
1865
|
+
let P;
|
|
1866
|
+
e[22] !== t ? (P = (k) => k.measurements[t].finished, e[22] = t, e[23] = P) : P = e[23];
|
|
1867
|
+
const O = V(P), R = V(Ys);
|
|
1868
|
+
let x;
|
|
1869
|
+
e[24] !== R || e[25] !== t ? (x = (k) => R(t, k), e[24] = R, e[25] = t, e[26] = x) : x = e[26];
|
|
1870
|
+
const j = x;
|
|
1871
|
+
let q;
|
|
1872
|
+
e[27] !== t ? (q = (k) => k.measurements[t].locale, e[27] = t, e[28] = q) : q = e[28];
|
|
1873
|
+
const _ = V(q), E = V(Ws);
|
|
1874
|
+
let C;
|
|
1875
|
+
e[29] !== E || e[30] !== t ? (C = (k) => E(t, k), e[29] = E, e[30] = t, e[31] = C) : C = e[31];
|
|
1876
|
+
const w = C;
|
|
1656
1877
|
let A;
|
|
1657
|
-
e[
|
|
1658
|
-
const
|
|
1659
|
-
let
|
|
1660
|
-
e[
|
|
1661
|
-
const
|
|
1662
|
-
let I;
|
|
1663
|
-
e[34] !== G || e[35] !== t ? (I = (_) => G(t, _), e[34] = G, e[35] = t, e[36] = I) : I = e[36];
|
|
1664
|
-
const be = I;
|
|
1665
|
-
let te;
|
|
1666
|
-
e[37] !== t ? (te = (_) => _.measurements[t].positions, e[37] = t, e[38] = te) : te = e[38];
|
|
1667
|
-
const ge = q(te), oe = q(Hs);
|
|
1878
|
+
e[32] !== t ? (A = (k) => k.measurements[t].modeInstance, e[32] = t, e[33] = A) : A = e[33];
|
|
1879
|
+
const $ = V(A), Z = V(Ks);
|
|
1880
|
+
let H;
|
|
1881
|
+
e[34] !== Z || e[35] !== t ? (H = (k) => Z(t, k), e[34] = Z, e[35] = t, e[36] = H) : H = e[36];
|
|
1882
|
+
const X = H;
|
|
1668
1883
|
let ie;
|
|
1669
|
-
e[
|
|
1670
|
-
const
|
|
1671
|
-
let
|
|
1672
|
-
e[
|
|
1673
|
-
const
|
|
1674
|
-
let
|
|
1675
|
-
e[
|
|
1676
|
-
const
|
|
1677
|
-
let
|
|
1678
|
-
e[
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
e[
|
|
1684
|
-
|
|
1685
|
-
}, e[50] = y, e[51] = W) : W = e[51];
|
|
1686
|
-
const ce = W;
|
|
1884
|
+
e[37] !== t ? (ie = (k) => k.measurements[t].positions, e[37] = t, e[38] = ie) : ie = e[38];
|
|
1885
|
+
const _e = V(ie), Le = V(Zs);
|
|
1886
|
+
let fe;
|
|
1887
|
+
e[39] !== Le || e[40] !== t ? (fe = (k) => Le(t, k), e[39] = Le, e[40] = t, e[41] = fe) : fe = e[41];
|
|
1888
|
+
const re = fe;
|
|
1889
|
+
let me;
|
|
1890
|
+
e[42] !== t ? (me = (k) => k.measurements[t].unit, e[42] = t, e[43] = me) : me = e[43];
|
|
1891
|
+
const Te = V(me), Ee = V(Qs);
|
|
1892
|
+
let pe;
|
|
1893
|
+
e[44] !== Ee || e[45] !== t ? (pe = (k) => Ee(t, k), e[44] = Ee, e[45] = t, e[46] = pe) : pe = e[46];
|
|
1894
|
+
const ke = pe;
|
|
1895
|
+
let ge;
|
|
1896
|
+
e[47] !== $ || e[48] !== re ? (ge = () => {
|
|
1897
|
+
$ == null || $.resetClickSequence(), re([]);
|
|
1898
|
+
}, e[47] = $, e[48] = re, e[49] = ge) : ge = e[49];
|
|
1899
|
+
const Pe = ge;
|
|
1687
1900
|
let ye;
|
|
1688
|
-
|
|
1901
|
+
e[50] !== h ? (ye = (k) => {
|
|
1902
|
+
h(k);
|
|
1903
|
+
}, e[50] = h, e[51] = ye) : ye = e[51];
|
|
1904
|
+
const Ce = ye;
|
|
1905
|
+
let he;
|
|
1906
|
+
return e[52] !== Pe || e[53] !== u || e[54] !== c || e[55] !== m || e[56] !== O || e[57] !== _ || e[58] !== $ || e[59] !== S || e[60] !== s || e[61] !== _e || e[62] !== p || e[63] !== h || e[64] !== j || e[65] !== w || e[66] !== X || e[67] !== T || e[68] !== re || e[69] !== ke || e[70] !== Ce || e[71] !== Te || e[72] !== r ? (he = {
|
|
1689
1907
|
modes: s,
|
|
1690
1908
|
units: r,
|
|
1691
|
-
distance:
|
|
1909
|
+
distance: c,
|
|
1692
1910
|
clearLayerOnStart: u,
|
|
1693
1911
|
modeSelected: S,
|
|
1694
|
-
enabled:
|
|
1912
|
+
enabled: m,
|
|
1695
1913
|
finished: O,
|
|
1696
|
-
locale:
|
|
1697
|
-
modeInstance:
|
|
1698
|
-
positions:
|
|
1699
|
-
unit:
|
|
1914
|
+
locale: _,
|
|
1915
|
+
modeInstance: $,
|
|
1916
|
+
positions: _e,
|
|
1917
|
+
unit: Te,
|
|
1700
1918
|
setDistance: p,
|
|
1701
|
-
setModeSelected:
|
|
1702
|
-
setFinished:
|
|
1703
|
-
setLocale:
|
|
1704
|
-
setPositions:
|
|
1705
|
-
setUnit:
|
|
1706
|
-
setEnabled:
|
|
1707
|
-
toggleLayer:
|
|
1708
|
-
clearLayer:
|
|
1709
|
-
setModeInstance:
|
|
1710
|
-
}, e[52] =
|
|
1711
|
-
}
|
|
1712
|
-
function
|
|
1919
|
+
setModeSelected: T,
|
|
1920
|
+
setFinished: j,
|
|
1921
|
+
setLocale: w,
|
|
1922
|
+
setPositions: re,
|
|
1923
|
+
setUnit: ke,
|
|
1924
|
+
setEnabled: h,
|
|
1925
|
+
toggleLayer: Ce,
|
|
1926
|
+
clearLayer: Pe,
|
|
1927
|
+
setModeInstance: X
|
|
1928
|
+
}, e[52] = Pe, e[53] = u, e[54] = c, e[55] = m, e[56] = O, e[57] = _, e[58] = $, e[59] = S, e[60] = s, e[61] = _e, e[62] = p, e[63] = h, e[64] = j, e[65] = w, e[66] = X, e[67] = T, e[68] = re, e[69] = ke, e[70] = Ce, e[71] = Te, e[72] = r, e[73] = he) : he = e[73], he;
|
|
1929
|
+
}
|
|
1930
|
+
function Qs(i) {
|
|
1713
1931
|
return i.setUnit;
|
|
1714
1932
|
}
|
|
1715
|
-
function
|
|
1933
|
+
function Zs(i) {
|
|
1716
1934
|
return i.setPositions;
|
|
1717
1935
|
}
|
|
1718
|
-
function
|
|
1936
|
+
function Ks(i) {
|
|
1719
1937
|
return i.setModeInstance;
|
|
1720
1938
|
}
|
|
1721
|
-
function
|
|
1939
|
+
function Ws(i) {
|
|
1722
1940
|
return i.setLocale;
|
|
1723
1941
|
}
|
|
1724
|
-
function
|
|
1942
|
+
function Ys(i) {
|
|
1725
1943
|
return i.setFinished;
|
|
1726
1944
|
}
|
|
1727
|
-
function
|
|
1945
|
+
function Xs(i) {
|
|
1728
1946
|
return i.setModeSelected;
|
|
1729
1947
|
}
|
|
1730
|
-
function
|
|
1948
|
+
function Js(i) {
|
|
1731
1949
|
return i.setEnabled;
|
|
1732
1950
|
}
|
|
1733
|
-
function
|
|
1951
|
+
function en(i) {
|
|
1734
1952
|
return i.setDistance;
|
|
1735
1953
|
}
|
|
1736
|
-
function
|
|
1737
|
-
const e =
|
|
1954
|
+
function tn(i) {
|
|
1955
|
+
const e = F(42), {
|
|
1738
1956
|
mapId: t,
|
|
1739
1957
|
textOptions: n,
|
|
1740
1958
|
children: s
|
|
@@ -1746,82 +1964,82 @@ function Ys(i) {
|
|
|
1746
1964
|
const {
|
|
1747
1965
|
modes: r,
|
|
1748
1966
|
units: a,
|
|
1749
|
-
distance:
|
|
1750
|
-
setDistance:
|
|
1751
|
-
clearLayerOnStart:
|
|
1967
|
+
distance: c,
|
|
1968
|
+
setDistance: d,
|
|
1969
|
+
clearLayerOnStart: l,
|
|
1752
1970
|
modeSelected: p,
|
|
1753
|
-
setModeSelected:
|
|
1971
|
+
setModeSelected: f,
|
|
1754
1972
|
enabled: u,
|
|
1755
1973
|
setEnabled: g,
|
|
1756
|
-
finished:
|
|
1757
|
-
setFinished:
|
|
1758
|
-
locale:
|
|
1759
|
-
setLocale:
|
|
1760
|
-
modeInstance:
|
|
1974
|
+
finished: m,
|
|
1975
|
+
setFinished: L,
|
|
1976
|
+
locale: y,
|
|
1977
|
+
setLocale: h,
|
|
1978
|
+
modeInstance: b,
|
|
1761
1979
|
setModeInstance: S,
|
|
1762
|
-
positions:
|
|
1763
|
-
setPositions:
|
|
1764
|
-
unit:
|
|
1765
|
-
setUnit:
|
|
1980
|
+
positions: M,
|
|
1981
|
+
setPositions: v,
|
|
1982
|
+
unit: T,
|
|
1983
|
+
setUnit: P,
|
|
1766
1984
|
clearLayer: O,
|
|
1767
|
-
toggleLayer:
|
|
1768
|
-
} =
|
|
1769
|
-
let
|
|
1770
|
-
e[2] !== p || e[3] !== r || e[4] !== S || e[5] !==
|
|
1985
|
+
toggleLayer: R
|
|
1986
|
+
} = ft(o);
|
|
1987
|
+
let x;
|
|
1988
|
+
e[2] !== p || e[3] !== r || e[4] !== S || e[5] !== v ? (x = () => {
|
|
1771
1989
|
if (p && r[p]) {
|
|
1772
|
-
const
|
|
1773
|
-
S(new
|
|
1990
|
+
const w = r[p].mode;
|
|
1991
|
+
S(new w());
|
|
1774
1992
|
}
|
|
1775
1993
|
return () => {
|
|
1776
|
-
|
|
1994
|
+
v([]);
|
|
1777
1995
|
};
|
|
1778
|
-
}, e[2] = p, e[3] = r, e[4] = S, e[5] =
|
|
1779
|
-
let
|
|
1780
|
-
e[7] !== p || e[8] !== r || e[9] !== g || e[10] !== S || e[11] !==
|
|
1781
|
-
let
|
|
1782
|
-
e[13] !==
|
|
1783
|
-
|
|
1784
|
-
}, e[13] =
|
|
1785
|
-
const
|
|
1786
|
-
let
|
|
1787
|
-
return e[18] !== s || e[19] !== O || e[20] !==
|
|
1996
|
+
}, e[2] = p, e[3] = r, e[4] = S, e[5] = v, e[6] = x) : x = e[6];
|
|
1997
|
+
let j;
|
|
1998
|
+
e[7] !== p || e[8] !== r || e[9] !== g || e[10] !== S || e[11] !== v ? (j = [r, p, v, S, g], e[7] = p, e[8] = r, e[9] = g, e[10] = S, e[11] = v, e[12] = j) : j = e[12], B(x, j);
|
|
1999
|
+
let q;
|
|
2000
|
+
e[13] !== R || e[14] !== O || e[15] !== l || e[16] !== m ? (q = (w) => {
|
|
2001
|
+
w && (l || !m) && O(), R(w);
|
|
2002
|
+
}, e[13] = R, e[14] = O, e[15] = l, e[16] = m, e[17] = q) : q = e[17];
|
|
2003
|
+
const _ = q, E = !!l;
|
|
2004
|
+
let C;
|
|
2005
|
+
return e[18] !== s || e[19] !== O || e[20] !== c || e[21] !== u || e[22] !== m || e[23] !== y || e[24] !== t || e[25] !== b || e[26] !== p || e[27] !== r || e[28] !== M || e[29] !== d || e[30] !== g || e[31] !== L || e[32] !== h || e[33] !== f || e[34] !== v || e[35] !== P || e[36] !== E || e[37] !== n || e[38] !== _ || e[39] !== T || e[40] !== a ? (C = s({
|
|
1788
2006
|
mapId: t,
|
|
1789
|
-
distance:
|
|
2007
|
+
distance: c,
|
|
1790
2008
|
enabled: u,
|
|
1791
|
-
finished:
|
|
1792
|
-
locale:
|
|
1793
|
-
positions:
|
|
1794
|
-
unit:
|
|
1795
|
-
clearLayerOnStart:
|
|
2009
|
+
finished: m,
|
|
2010
|
+
locale: y,
|
|
2011
|
+
positions: M,
|
|
2012
|
+
unit: T,
|
|
2013
|
+
clearLayerOnStart: E,
|
|
1796
2014
|
modeSelected: p,
|
|
1797
2015
|
modes: r,
|
|
1798
2016
|
units: a,
|
|
1799
|
-
value:
|
|
1800
|
-
meters:
|
|
1801
|
-
unit:
|
|
1802
|
-
locale:
|
|
2017
|
+
value: Me({
|
|
2018
|
+
meters: c,
|
|
2019
|
+
unit: T,
|
|
2020
|
+
locale: y,
|
|
1803
2021
|
options: n
|
|
1804
2022
|
}),
|
|
1805
|
-
modeInstance:
|
|
1806
|
-
setModeSelected:
|
|
1807
|
-
setDistance:
|
|
1808
|
-
setFinished:
|
|
1809
|
-
setLocale:
|
|
1810
|
-
setPositions:
|
|
1811
|
-
setUnit:
|
|
2023
|
+
modeInstance: b,
|
|
2024
|
+
setModeSelected: f,
|
|
2025
|
+
setDistance: d,
|
|
2026
|
+
setFinished: L,
|
|
2027
|
+
setLocale: h,
|
|
2028
|
+
setPositions: v,
|
|
2029
|
+
setUnit: P,
|
|
1812
2030
|
setEnabled: g,
|
|
1813
|
-
toggleLayer:
|
|
2031
|
+
toggleLayer: _,
|
|
1814
2032
|
clearLayer: O
|
|
1815
|
-
}), e[18] = s, e[19] = O, e[20] =
|
|
2033
|
+
}), e[18] = s, e[19] = O, e[20] = c, e[21] = u, e[22] = m, e[23] = y, e[24] = t, e[25] = b, e[26] = p, e[27] = r, e[28] = M, e[29] = d, e[30] = g, e[31] = L, e[32] = h, e[33] = f, e[34] = v, e[35] = P, e[36] = E, e[37] = n, e[38] = _, e[39] = T, e[40] = a, e[41] = C) : C = e[41], C;
|
|
1816
2034
|
}
|
|
1817
|
-
const
|
|
1818
|
-
function
|
|
2035
|
+
const sn = [oe];
|
|
2036
|
+
function nn({
|
|
1819
2037
|
children: i,
|
|
1820
2038
|
mapId: e,
|
|
1821
2039
|
defaultProps: {
|
|
1822
|
-
styles: t =
|
|
2040
|
+
styles: t = Qe.styles
|
|
1823
2041
|
} = {
|
|
1824
|
-
styles:
|
|
2042
|
+
styles: Qe.styles
|
|
1825
2043
|
},
|
|
1826
2044
|
layerProps: n = {},
|
|
1827
2045
|
textOptions: s
|
|
@@ -1830,126 +2048,175 @@ function Js({
|
|
|
1830
2048
|
setDistance: o,
|
|
1831
2049
|
clearLayerOnStart: r,
|
|
1832
2050
|
enabled: a,
|
|
1833
|
-
finished:
|
|
1834
|
-
setFinished:
|
|
1835
|
-
locale:
|
|
2051
|
+
finished: c,
|
|
2052
|
+
setFinished: d,
|
|
2053
|
+
locale: l,
|
|
1836
2054
|
setPositions: p,
|
|
1837
|
-
unit:
|
|
2055
|
+
unit: f,
|
|
1838
2056
|
modeInstance: u
|
|
1839
|
-
} =
|
|
2057
|
+
} = ft({
|
|
1840
2058
|
mapId: e
|
|
1841
|
-
}), g =
|
|
1842
|
-
var
|
|
1843
|
-
return (
|
|
1844
|
-
})),
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
const
|
|
2059
|
+
}), g = de((v) => v.setLayer), m = D((v) => v.addLayers), L = D((v) => v.removeLayers), y = D(st((v) => {
|
|
2060
|
+
var T;
|
|
2061
|
+
return (T = v.maps[e]) == null ? void 0 : T.layers.filter((P) => !sn.includes(P));
|
|
2062
|
+
})), h = D((v) => v.getDeckInstance), b = ve({}), S = ut({
|
|
2063
|
+
mapId: e
|
|
2064
|
+
});
|
|
2065
|
+
B(() => (a && m(e, [oe]), () => {
|
|
2066
|
+
L(e, [oe]);
|
|
2067
|
+
}), [m, r, e, L, a]), B(() => {
|
|
2068
|
+
y == null || y.forEach((v) => {
|
|
2069
|
+
var O;
|
|
2070
|
+
const T = (O = h(e)) == null ? void 0 : O.props.layers.find((R) => R.props.id === v);
|
|
2071
|
+
a && (b.current[v] = T == null ? void 0 : T.props.pickable);
|
|
2072
|
+
const P = !a && (b.current[v] ?? (T == null ? void 0 : T.props.pickable));
|
|
1853
2073
|
g(v, {
|
|
1854
2074
|
props: {
|
|
1855
|
-
pickable:
|
|
2075
|
+
pickable: P
|
|
1856
2076
|
}
|
|
1857
2077
|
});
|
|
1858
2078
|
});
|
|
1859
|
-
}, [a,
|
|
1860
|
-
const
|
|
2079
|
+
}, [a, h, e, y, g]);
|
|
2080
|
+
const M = G(({
|
|
1861
2081
|
editType: v,
|
|
1862
|
-
editContext:
|
|
2082
|
+
editContext: T
|
|
1863
2083
|
}) => {
|
|
1864
|
-
if (v ===
|
|
2084
|
+
if (v === Q.cancel) {
|
|
1865
2085
|
u.resetClickSequence();
|
|
1866
2086
|
return;
|
|
1867
2087
|
}
|
|
1868
|
-
v ===
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1871
|
-
}, [u, o,
|
|
1872
|
-
return
|
|
1873
|
-
const v =
|
|
2088
|
+
v === Q.addPosition && o(T.distance), d(!!T.finished);
|
|
2089
|
+
const P = T.positions;
|
|
2090
|
+
P != null && P.length && p(P);
|
|
2091
|
+
}, [u, o, d, p]);
|
|
2092
|
+
return B(() => {
|
|
2093
|
+
const v = c ? t.colors.finished : t.colors.editing, T = c ? t.colors.finished : t.colors.point, P = Hs({
|
|
1874
2094
|
layerProps: {
|
|
1875
2095
|
...n,
|
|
1876
|
-
pickable: n.pickable ?? !
|
|
2096
|
+
pickable: n.pickable ?? !c
|
|
1877
2097
|
},
|
|
1878
2098
|
enabled: a,
|
|
1879
2099
|
guideColor: v,
|
|
1880
|
-
pointColor:
|
|
1881
|
-
locale:
|
|
1882
|
-
onEdit:
|
|
1883
|
-
unit:
|
|
2100
|
+
pointColor: T,
|
|
2101
|
+
locale: l,
|
|
2102
|
+
onEdit: M,
|
|
2103
|
+
unit: f,
|
|
1884
2104
|
mode: u,
|
|
1885
|
-
textOptions: s
|
|
2105
|
+
textOptions: s,
|
|
2106
|
+
eventManager: S
|
|
1886
2107
|
});
|
|
1887
|
-
g(
|
|
1888
|
-
}, [
|
|
2108
|
+
g(oe, P);
|
|
2109
|
+
}, [c, u, n, l, M, g, t.colors.editing, t.colors.finished, t.colors.point, s, f, a, S]), i;
|
|
1889
2110
|
}
|
|
1890
|
-
|
|
1891
|
-
function
|
|
1892
|
-
const e =
|
|
2111
|
+
nn.Controls = tn;
|
|
2112
|
+
function on(i) {
|
|
2113
|
+
const e = F(7), {
|
|
1893
2114
|
mapId: t
|
|
1894
2115
|
} = i;
|
|
1895
2116
|
let n;
|
|
1896
|
-
e[0] !== t ? (n = (
|
|
2117
|
+
e[0] !== t ? (n = (d) => d.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
1897
2118
|
const {
|
|
1898
2119
|
layers: s
|
|
1899
|
-
} =
|
|
2120
|
+
} = D(n), o = de(an);
|
|
1900
2121
|
let r, a;
|
|
1901
2122
|
if (e[2] !== o || e[3] !== s) {
|
|
1902
|
-
let
|
|
1903
|
-
e[5] !== o ? (
|
|
2123
|
+
let d;
|
|
2124
|
+
e[5] !== o ? (d = (l) => o[l], e[5] = o, e[6] = d) : d = e[6], a = s.map(d).filter(rn), e[2] = o, e[3] = s, e[4] = a;
|
|
1904
2125
|
} else
|
|
1905
2126
|
a = e[4];
|
|
1906
2127
|
return r = a, r;
|
|
1907
2128
|
}
|
|
1908
|
-
function
|
|
2129
|
+
function rn(i) {
|
|
1909
2130
|
return !!i;
|
|
1910
2131
|
}
|
|
1911
|
-
function
|
|
2132
|
+
function an(i) {
|
|
1912
2133
|
return i.layers;
|
|
1913
2134
|
}
|
|
1914
|
-
const We = [
|
|
1915
|
-
function
|
|
2135
|
+
const We = [be, ae, oe];
|
|
2136
|
+
function mt(i) {
|
|
1916
2137
|
const e = i.filter((n) => !We.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = We.map((n) => i.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
1917
2138
|
return [...e, ...t];
|
|
1918
2139
|
}
|
|
1919
|
-
const
|
|
1920
|
-
function
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
2140
|
+
const ln = 200;
|
|
2141
|
+
function co(i) {
|
|
2142
|
+
const e = F(44);
|
|
2143
|
+
let t, n, s, o;
|
|
2144
|
+
e[0] !== i ? ({
|
|
2145
|
+
id: t,
|
|
2146
|
+
onLoad: n,
|
|
2147
|
+
onViewStateChange: s,
|
|
2148
|
+
...o
|
|
2149
|
+
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
|
|
2150
|
+
let r;
|
|
2151
|
+
e[5] !== t ? (r = (w) => w.maps[t], e[5] = t, e[6] = r) : r = e[6];
|
|
1926
2152
|
const {
|
|
1927
|
-
basemap:
|
|
1928
|
-
instanceRef:
|
|
1929
|
-
overlayRef:
|
|
1930
|
-
} =
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2153
|
+
basemap: a,
|
|
2154
|
+
instanceRef: c,
|
|
2155
|
+
overlayRef: d
|
|
2156
|
+
} = D(r), l = ve(null);
|
|
2157
|
+
let p;
|
|
2158
|
+
e[7] !== t ? (p = (w) => w.viewStates[t], e[7] = t, e[8] = p) : p = e[8];
|
|
2159
|
+
const f = D(p), u = D(pn), g = D(mn), m = D(fn), L = D(dn), y = D(un);
|
|
2160
|
+
let h;
|
|
2161
|
+
e[9] !== t ? (h = {
|
|
2162
|
+
mapId: t
|
|
2163
|
+
}, e[9] = t, e[10] = h) : h = e[10];
|
|
2164
|
+
const b = on(h);
|
|
2165
|
+
let S, M;
|
|
2166
|
+
e[11] !== b ? (M = mt(b), e[11] = b, e[12] = M) : M = e[12], S = M;
|
|
2167
|
+
const v = S;
|
|
2168
|
+
let T;
|
|
2169
|
+
e[13] !== t || e[14] !== s || e[15] !== g || e[16] !== y ? (T = (w) => {
|
|
2170
|
+
const A = g;
|
|
2171
|
+
if (w.interactionState.isZooming && (l.current && clearInterval(l.current), l.current = setTimeout(() => {
|
|
2172
|
+
y(t);
|
|
2173
|
+
}, ln)), s) {
|
|
2174
|
+
s(w, A);
|
|
1938
2175
|
return;
|
|
1939
2176
|
}
|
|
1940
|
-
|
|
1941
|
-
}, [
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
2177
|
+
A(t, w.viewState);
|
|
2178
|
+
}, e[13] = t, e[14] = s, e[15] = g, e[16] = y, e[17] = T) : T = e[17];
|
|
2179
|
+
const P = T;
|
|
2180
|
+
let O;
|
|
2181
|
+
e[18] !== t || e[19] !== n || e[20] !== m || e[21] !== y ? (O = (w) => {
|
|
2182
|
+
m(t, w), n == null || n(w), y(t);
|
|
2183
|
+
}, e[18] = t, e[19] = n, e[20] = m, e[21] = y, e[22] = O) : O = e[22];
|
|
2184
|
+
const R = O;
|
|
2185
|
+
let x;
|
|
2186
|
+
e[23] !== u || e[24] !== t || e[25] !== o || e[26] !== L ? (x = (w) => {
|
|
2187
|
+
var Z, H;
|
|
2188
|
+
const A = (Z = u(t)) == null ? void 0 : Z.props.layers, $ = !!(A != null && A.every(cn));
|
|
2189
|
+
L(t, $), (H = o.onAfterRender) == null || H.call(o, w);
|
|
2190
|
+
}, e[23] = u, e[24] = t, e[25] = o, e[26] = L, e[27] = x) : x = e[27];
|
|
2191
|
+
const j = x, q = o.onDragEnd;
|
|
2192
|
+
let _;
|
|
2193
|
+
e[28] !== q || e[29] !== t || e[30] !== y ? (_ = (...w) => {
|
|
2194
|
+
const A = w;
|
|
2195
|
+
y(t), q && q(...A);
|
|
2196
|
+
}, e[28] = q, e[29] = t, e[30] = y, e[31] = _) : _ = e[31];
|
|
2197
|
+
const E = _;
|
|
2198
|
+
let C;
|
|
2199
|
+
return e[32] !== a || e[33] !== v || e[34] !== j || e[35] !== E || e[36] !== R || e[37] !== P || e[38] !== t || e[39] !== c || e[40] !== d || e[41] !== o || e[42] !== f ? (C = /* @__PURE__ */ N(ds, { ...o, id: t, layers: v, instanceRef: c, overlayRef: d, basemap: a, initialViewState: f, onLoad: R, onViewStateChange: P, onAfterRender: j, onDragEnd: E }), e[32] = a, e[33] = v, e[34] = j, e[35] = E, e[36] = R, e[37] = P, e[38] = t, e[39] = c, e[40] = d, e[41] = o, e[42] = f, e[43] = C) : C = e[43], C;
|
|
2200
|
+
}
|
|
2201
|
+
function cn(i) {
|
|
2202
|
+
return i == null ? void 0 : i.isLoaded;
|
|
2203
|
+
}
|
|
2204
|
+
function un(i) {
|
|
2205
|
+
return i.updateViewPort;
|
|
2206
|
+
}
|
|
2207
|
+
function dn(i) {
|
|
2208
|
+
return i.setLayersLoad;
|
|
2209
|
+
}
|
|
2210
|
+
function fn(i) {
|
|
2211
|
+
return i.setLoad;
|
|
2212
|
+
}
|
|
2213
|
+
function mn(i) {
|
|
2214
|
+
return i.setViewState;
|
|
2215
|
+
}
|
|
2216
|
+
function pn(i) {
|
|
2217
|
+
return i.getDeckInstance;
|
|
2218
|
+
}
|
|
2219
|
+
const gn = "https://gcp-us-east1.api.carto.com", yn = "ps", hn = tt((i) => ({
|
|
1953
2220
|
sources: {},
|
|
1954
2221
|
setSource: (e, t) => i((n) => {
|
|
1955
2222
|
const s = {
|
|
@@ -1961,11 +2228,11 @@ const on = "https://gcp-us-east1.api.carto.com", rn = "ps", an = et((i) => ({
|
|
|
1961
2228
|
};
|
|
1962
2229
|
const o = {
|
|
1963
2230
|
...s[e] ?? {
|
|
1964
|
-
apiBaseUrl:
|
|
1965
|
-
clientId:
|
|
2231
|
+
apiBaseUrl: gn,
|
|
2232
|
+
clientId: yn
|
|
1966
2233
|
},
|
|
1967
2234
|
...t
|
|
1968
|
-
}, r =
|
|
2235
|
+
}, r = vn({
|
|
1969
2236
|
source: o
|
|
1970
2237
|
});
|
|
1971
2238
|
return o.widgets = r, s[e] = o, {
|
|
@@ -1975,7 +2242,10 @@ const on = "https://gcp-us-east1.api.carto.com", rn = "ps", an = et((i) => ({
|
|
|
1975
2242
|
setFilters: (e, t) => i((n) => {
|
|
1976
2243
|
let s = {};
|
|
1977
2244
|
const o = n.sources[e] ?? {};
|
|
1978
|
-
return t.length !== 0 && (s = t.reduce((r, a) =>
|
|
2245
|
+
return t.length !== 0 && (s = t.reduce((r, a) => {
|
|
2246
|
+
var c;
|
|
2247
|
+
return !("values" in a) || !((c = a.values) != null && c.length) ? (r = Gt(r, a), r) : (r = zt(r, a), r);
|
|
2248
|
+
}, (o == null ? void 0 : o.filters) ?? {})), {
|
|
1979
2249
|
sources: {
|
|
1980
2250
|
...n.sources,
|
|
1981
2251
|
[e]: {
|
|
@@ -1986,18 +2256,18 @@ const on = "https://gcp-us-east1.api.carto.com", rn = "ps", an = et((i) => ({
|
|
|
1986
2256
|
};
|
|
1987
2257
|
})
|
|
1988
2258
|
}));
|
|
1989
|
-
function
|
|
1990
|
-
const e =
|
|
2259
|
+
function Sn(i) {
|
|
2260
|
+
const e = F(2);
|
|
1991
2261
|
let t;
|
|
1992
|
-
return e[0] !== i ? (t = (n) => n.sources[i], e[0] = i, e[1] = t) : t = e[1],
|
|
2262
|
+
return e[0] !== i ? (t = (n) => n.sources[i], e[0] = i, e[1] = t) : t = e[1], hn(t);
|
|
1993
2263
|
}
|
|
1994
|
-
function
|
|
2264
|
+
function vn({
|
|
1995
2265
|
source: i
|
|
1996
2266
|
}) {
|
|
1997
2267
|
const e = {
|
|
1998
2268
|
query: () => {
|
|
1999
2269
|
const s = i;
|
|
2000
|
-
return new
|
|
2270
|
+
return new Yt({
|
|
2001
2271
|
...s,
|
|
2002
2272
|
accessToken: "",
|
|
2003
2273
|
sqlQuery: s.data,
|
|
@@ -2006,7 +2276,7 @@ function cn({
|
|
|
2006
2276
|
},
|
|
2007
2277
|
table: () => {
|
|
2008
2278
|
const s = i;
|
|
2009
|
-
return new
|
|
2279
|
+
return new Wt({
|
|
2010
2280
|
...s,
|
|
2011
2281
|
accessToken: "",
|
|
2012
2282
|
tableName: s.data,
|
|
@@ -2015,17 +2285,17 @@ function cn({
|
|
|
2015
2285
|
},
|
|
2016
2286
|
tileset: () => {
|
|
2017
2287
|
const s = i;
|
|
2018
|
-
return new
|
|
2288
|
+
return new Zt({
|
|
2019
2289
|
...s,
|
|
2020
2290
|
accessToken: "",
|
|
2021
2291
|
tableName: s.data,
|
|
2022
|
-
tileFormat: s.tileFormat ??
|
|
2292
|
+
tileFormat: s.tileFormat ?? Kt.BINARY,
|
|
2023
2293
|
spatialDataType: s.spatialDataType ?? "geo"
|
|
2024
2294
|
});
|
|
2025
2295
|
},
|
|
2026
2296
|
raster: () => {
|
|
2027
2297
|
const s = i;
|
|
2028
|
-
return s.rasterMetadata ? new
|
|
2298
|
+
return s.rasterMetadata ? new Qt({
|
|
2029
2299
|
...s,
|
|
2030
2300
|
accessToken: "",
|
|
2031
2301
|
tableName: s.data,
|
|
@@ -2036,15 +2306,15 @@ function cn({
|
|
|
2036
2306
|
}, t = i.type.split("+")[0], n = e[t];
|
|
2037
2307
|
return n == null ? void 0 : n();
|
|
2038
2308
|
}
|
|
2039
|
-
function
|
|
2040
|
-
const t =
|
|
2041
|
-
return
|
|
2309
|
+
function se(i, e) {
|
|
2310
|
+
const t = Sn(e);
|
|
2311
|
+
return J(() => {
|
|
2042
2312
|
const n = t == null ? void 0 : t.widgets;
|
|
2043
2313
|
return !n || !i ? null : (n.props.accessToken = i, n);
|
|
2044
2314
|
}, [i, t]);
|
|
2045
2315
|
}
|
|
2046
|
-
function
|
|
2047
|
-
const e =
|
|
2316
|
+
function bn(i) {
|
|
2317
|
+
const e = F(18), {
|
|
2048
2318
|
accessToken: t,
|
|
2049
2319
|
sourceId: n,
|
|
2050
2320
|
widgetProps: s,
|
|
@@ -2052,38 +2322,38 @@ function un(i) {
|
|
|
2052
2322
|
} = i;
|
|
2053
2323
|
let r;
|
|
2054
2324
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2055
|
-
let a,
|
|
2325
|
+
let a, c;
|
|
2056
2326
|
e[2] !== r ? ({
|
|
2057
2327
|
enabled: a,
|
|
2058
|
-
...
|
|
2059
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2060
|
-
const
|
|
2061
|
-
let d;
|
|
2062
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["categories", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2063
|
-
let u;
|
|
2064
|
-
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];
|
|
2065
|
-
const g = !!c && m;
|
|
2328
|
+
...c
|
|
2329
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2330
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2066
2331
|
let f;
|
|
2067
|
-
|
|
2068
|
-
|
|
2332
|
+
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];
|
|
2333
|
+
let u;
|
|
2334
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getCategories(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2335
|
+
const g = !!l && d;
|
|
2336
|
+
let m;
|
|
2337
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2338
|
+
queryKey: f,
|
|
2069
2339
|
queryFn: u,
|
|
2070
2340
|
enabled: g,
|
|
2071
|
-
...
|
|
2072
|
-
}, e[13] =
|
|
2341
|
+
...c
|
|
2342
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2073
2343
|
}
|
|
2074
|
-
function
|
|
2075
|
-
const e =
|
|
2344
|
+
function uo(i) {
|
|
2345
|
+
const e = F(6);
|
|
2076
2346
|
let t, n;
|
|
2077
2347
|
e[0] !== i ? ({
|
|
2078
2348
|
children: t,
|
|
2079
2349
|
...n
|
|
2080
2350
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2081
|
-
const s =
|
|
2351
|
+
const s = bn(n);
|
|
2082
2352
|
let o;
|
|
2083
2353
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2084
2354
|
}
|
|
2085
|
-
function
|
|
2086
|
-
const e =
|
|
2355
|
+
function Mn(i) {
|
|
2356
|
+
const e = F(18), {
|
|
2087
2357
|
accessToken: t,
|
|
2088
2358
|
sourceId: n,
|
|
2089
2359
|
widgetProps: s,
|
|
@@ -2091,38 +2361,38 @@ function dn(i) {
|
|
|
2091
2361
|
} = i;
|
|
2092
2362
|
let r;
|
|
2093
2363
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2094
|
-
let a,
|
|
2364
|
+
let a, c;
|
|
2095
2365
|
e[2] !== r ? ({
|
|
2096
2366
|
enabled: a,
|
|
2097
|
-
...
|
|
2098
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2099
|
-
const
|
|
2100
|
-
let d;
|
|
2101
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["features", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2102
|
-
let u;
|
|
2103
|
-
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];
|
|
2104
|
-
const g = !!c && m;
|
|
2367
|
+
...c
|
|
2368
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2369
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2105
2370
|
let f;
|
|
2106
|
-
|
|
2107
|
-
|
|
2371
|
+
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];
|
|
2372
|
+
let u;
|
|
2373
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getFeatures(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2374
|
+
const g = !!l && d;
|
|
2375
|
+
let m;
|
|
2376
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2377
|
+
queryKey: f,
|
|
2108
2378
|
queryFn: u,
|
|
2109
2379
|
enabled: g,
|
|
2110
|
-
...
|
|
2111
|
-
}, e[13] =
|
|
2380
|
+
...c
|
|
2381
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2112
2382
|
}
|
|
2113
|
-
function
|
|
2114
|
-
const e =
|
|
2383
|
+
function fo(i) {
|
|
2384
|
+
const e = F(6);
|
|
2115
2385
|
let t, n;
|
|
2116
2386
|
e[0] !== i ? ({
|
|
2117
2387
|
children: t,
|
|
2118
2388
|
...n
|
|
2119
2389
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2120
|
-
const s =
|
|
2390
|
+
const s = Mn(n);
|
|
2121
2391
|
let o;
|
|
2122
2392
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2123
2393
|
}
|
|
2124
|
-
function
|
|
2125
|
-
const e =
|
|
2394
|
+
function _n(i) {
|
|
2395
|
+
const e = F(18), {
|
|
2126
2396
|
accessToken: t,
|
|
2127
2397
|
sourceId: n,
|
|
2128
2398
|
widgetProps: s,
|
|
@@ -2130,38 +2400,38 @@ function fn(i) {
|
|
|
2130
2400
|
} = i;
|
|
2131
2401
|
let r;
|
|
2132
2402
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2133
|
-
let a,
|
|
2403
|
+
let a, c;
|
|
2134
2404
|
e[2] !== r ? ({
|
|
2135
2405
|
enabled: a,
|
|
2136
|
-
...
|
|
2137
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2138
|
-
const
|
|
2139
|
-
let d;
|
|
2140
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["formula", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2141
|
-
let u;
|
|
2142
|
-
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];
|
|
2143
|
-
const g = !!c && m;
|
|
2406
|
+
...c
|
|
2407
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2408
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2144
2409
|
let f;
|
|
2145
|
-
|
|
2146
|
-
|
|
2410
|
+
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];
|
|
2411
|
+
let u;
|
|
2412
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getFormula(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2413
|
+
const g = !!l && d;
|
|
2414
|
+
let m;
|
|
2415
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2416
|
+
queryKey: f,
|
|
2147
2417
|
queryFn: u,
|
|
2148
2418
|
enabled: g,
|
|
2149
|
-
...
|
|
2150
|
-
}, e[13] =
|
|
2419
|
+
...c
|
|
2420
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2151
2421
|
}
|
|
2152
|
-
function
|
|
2153
|
-
const e =
|
|
2422
|
+
function mo(i) {
|
|
2423
|
+
const e = F(6);
|
|
2154
2424
|
let t, n;
|
|
2155
2425
|
e[0] !== i ? ({
|
|
2156
2426
|
children: t,
|
|
2157
2427
|
...n
|
|
2158
2428
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2159
|
-
const s =
|
|
2429
|
+
const s = _n(n);
|
|
2160
2430
|
let o;
|
|
2161
2431
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2162
2432
|
}
|
|
2163
|
-
function
|
|
2164
|
-
const e =
|
|
2433
|
+
function Ln(i) {
|
|
2434
|
+
const e = F(18), {
|
|
2165
2435
|
accessToken: t,
|
|
2166
2436
|
sourceId: n,
|
|
2167
2437
|
widgetProps: s,
|
|
@@ -2169,38 +2439,38 @@ function mn(i) {
|
|
|
2169
2439
|
} = i;
|
|
2170
2440
|
let r;
|
|
2171
2441
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2172
|
-
let a,
|
|
2442
|
+
let a, c;
|
|
2173
2443
|
e[2] !== r ? ({
|
|
2174
2444
|
enabled: a,
|
|
2175
|
-
...
|
|
2176
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2177
|
-
const
|
|
2178
|
-
let d;
|
|
2179
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["histogram", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2180
|
-
let u;
|
|
2181
|
-
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];
|
|
2182
|
-
const g = !!c && m;
|
|
2445
|
+
...c
|
|
2446
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2447
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2183
2448
|
let f;
|
|
2184
|
-
|
|
2185
|
-
|
|
2449
|
+
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];
|
|
2450
|
+
let u;
|
|
2451
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getHistogram(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2452
|
+
const g = !!l && d;
|
|
2453
|
+
let m;
|
|
2454
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2455
|
+
queryKey: f,
|
|
2186
2456
|
queryFn: u,
|
|
2187
2457
|
enabled: g,
|
|
2188
|
-
...
|
|
2189
|
-
}, e[13] =
|
|
2458
|
+
...c
|
|
2459
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2190
2460
|
}
|
|
2191
|
-
function
|
|
2192
|
-
const e =
|
|
2461
|
+
function po(i) {
|
|
2462
|
+
const e = F(6);
|
|
2193
2463
|
let t, n;
|
|
2194
2464
|
e[0] !== i ? ({
|
|
2195
2465
|
children: t,
|
|
2196
2466
|
...n
|
|
2197
2467
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2198
|
-
const s =
|
|
2468
|
+
const s = Ln(n);
|
|
2199
2469
|
let o;
|
|
2200
2470
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2201
2471
|
}
|
|
2202
|
-
function
|
|
2203
|
-
const e =
|
|
2472
|
+
function Tn(i) {
|
|
2473
|
+
const e = F(18), {
|
|
2204
2474
|
accessToken: t,
|
|
2205
2475
|
sourceId: n,
|
|
2206
2476
|
widgetProps: s,
|
|
@@ -2208,38 +2478,38 @@ function pn(i) {
|
|
|
2208
2478
|
} = i;
|
|
2209
2479
|
let r;
|
|
2210
2480
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2211
|
-
let a,
|
|
2481
|
+
let a, c;
|
|
2212
2482
|
e[2] !== r ? ({
|
|
2213
2483
|
enabled: a,
|
|
2214
|
-
...
|
|
2215
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2216
|
-
const
|
|
2217
|
-
let d;
|
|
2218
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["range", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2219
|
-
let u;
|
|
2220
|
-
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];
|
|
2221
|
-
const g = !!c && m;
|
|
2484
|
+
...c
|
|
2485
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2486
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2222
2487
|
let f;
|
|
2223
|
-
|
|
2224
|
-
|
|
2488
|
+
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];
|
|
2489
|
+
let u;
|
|
2490
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getRange(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2491
|
+
const g = !!l && d;
|
|
2492
|
+
let m;
|
|
2493
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2494
|
+
queryKey: f,
|
|
2225
2495
|
queryFn: u,
|
|
2226
2496
|
enabled: g,
|
|
2227
|
-
...
|
|
2228
|
-
}, e[13] =
|
|
2497
|
+
...c
|
|
2498
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2229
2499
|
}
|
|
2230
|
-
function
|
|
2231
|
-
const e =
|
|
2500
|
+
function go(i) {
|
|
2501
|
+
const e = F(6);
|
|
2232
2502
|
let t, n;
|
|
2233
2503
|
e[0] !== i ? ({
|
|
2234
2504
|
children: t,
|
|
2235
2505
|
...n
|
|
2236
2506
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2237
|
-
const s =
|
|
2507
|
+
const s = Tn(n);
|
|
2238
2508
|
let o;
|
|
2239
2509
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2240
2510
|
}
|
|
2241
|
-
function
|
|
2242
|
-
const e =
|
|
2511
|
+
function En(i) {
|
|
2512
|
+
const e = F(18), {
|
|
2243
2513
|
accessToken: t,
|
|
2244
2514
|
sourceId: n,
|
|
2245
2515
|
widgetProps: s,
|
|
@@ -2247,38 +2517,38 @@ function gn(i) {
|
|
|
2247
2517
|
} = i;
|
|
2248
2518
|
let r;
|
|
2249
2519
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2250
|
-
let a,
|
|
2520
|
+
let a, c;
|
|
2251
2521
|
e[2] !== r ? ({
|
|
2252
2522
|
enabled: a,
|
|
2253
|
-
...
|
|
2254
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2255
|
-
const
|
|
2256
|
-
let d;
|
|
2257
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["scatter", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2258
|
-
let u;
|
|
2259
|
-
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];
|
|
2260
|
-
const g = !!c && m;
|
|
2523
|
+
...c
|
|
2524
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2525
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2261
2526
|
let f;
|
|
2262
|
-
|
|
2263
|
-
|
|
2527
|
+
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];
|
|
2528
|
+
let u;
|
|
2529
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getScatter(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2530
|
+
const g = !!l && d;
|
|
2531
|
+
let m;
|
|
2532
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2533
|
+
queryKey: f,
|
|
2264
2534
|
queryFn: u,
|
|
2265
2535
|
enabled: g,
|
|
2266
|
-
...
|
|
2267
|
-
}, e[13] =
|
|
2536
|
+
...c
|
|
2537
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2268
2538
|
}
|
|
2269
|
-
function
|
|
2270
|
-
const e =
|
|
2539
|
+
function yo(i) {
|
|
2540
|
+
const e = F(6);
|
|
2271
2541
|
let t, n;
|
|
2272
2542
|
e[0] !== i ? ({
|
|
2273
2543
|
children: t,
|
|
2274
2544
|
...n
|
|
2275
2545
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2276
|
-
const s =
|
|
2546
|
+
const s = En(n);
|
|
2277
2547
|
let o;
|
|
2278
2548
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2279
2549
|
}
|
|
2280
|
-
function
|
|
2281
|
-
const e =
|
|
2550
|
+
function kn(i) {
|
|
2551
|
+
const e = F(18), {
|
|
2282
2552
|
accessToken: t,
|
|
2283
2553
|
sourceId: n,
|
|
2284
2554
|
widgetProps: s,
|
|
@@ -2286,38 +2556,38 @@ function yn(i) {
|
|
|
2286
2556
|
} = i;
|
|
2287
2557
|
let r;
|
|
2288
2558
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2289
|
-
let a,
|
|
2559
|
+
let a, c;
|
|
2290
2560
|
e[2] !== r ? ({
|
|
2291
2561
|
enabled: a,
|
|
2292
|
-
...
|
|
2293
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2294
|
-
const
|
|
2295
|
-
let d;
|
|
2296
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["table", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2297
|
-
let u;
|
|
2298
|
-
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];
|
|
2299
|
-
const g = !!c && m;
|
|
2562
|
+
...c
|
|
2563
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2564
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2300
2565
|
let f;
|
|
2301
|
-
|
|
2302
|
-
|
|
2566
|
+
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];
|
|
2567
|
+
let u;
|
|
2568
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getTable(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2569
|
+
const g = !!l && d;
|
|
2570
|
+
let m;
|
|
2571
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2572
|
+
queryKey: f,
|
|
2303
2573
|
queryFn: u,
|
|
2304
2574
|
enabled: g,
|
|
2305
|
-
...
|
|
2306
|
-
}, e[13] =
|
|
2575
|
+
...c
|
|
2576
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2307
2577
|
}
|
|
2308
|
-
function
|
|
2309
|
-
const e =
|
|
2578
|
+
function ho(i) {
|
|
2579
|
+
const e = F(6);
|
|
2310
2580
|
let t, n;
|
|
2311
2581
|
e[0] !== i ? ({
|
|
2312
2582
|
children: t,
|
|
2313
2583
|
...n
|
|
2314
2584
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2315
|
-
const s =
|
|
2585
|
+
const s = kn(n);
|
|
2316
2586
|
let o;
|
|
2317
2587
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2318
2588
|
}
|
|
2319
|
-
function
|
|
2320
|
-
const e =
|
|
2589
|
+
function Pn(i) {
|
|
2590
|
+
const e = F(18), {
|
|
2321
2591
|
accessToken: t,
|
|
2322
2592
|
sourceId: n,
|
|
2323
2593
|
widgetProps: s,
|
|
@@ -2325,38 +2595,38 @@ function hn(i) {
|
|
|
2325
2595
|
} = i;
|
|
2326
2596
|
let r;
|
|
2327
2597
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2328
|
-
let a,
|
|
2598
|
+
let a, c;
|
|
2329
2599
|
e[2] !== r ? ({
|
|
2330
2600
|
enabled: a,
|
|
2331
|
-
...
|
|
2332
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
2333
|
-
const
|
|
2334
|
-
let d;
|
|
2335
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (d = ["time-series", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = d) : d = e[9];
|
|
2336
|
-
let u;
|
|
2337
|
-
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];
|
|
2338
|
-
const g = !!c && m;
|
|
2601
|
+
...c
|
|
2602
|
+
} = r, e[2] = r, e[3] = a, e[4] = c) : (a = e[3], c = e[4]);
|
|
2603
|
+
const d = a === void 0 ? !0 : a, l = se(t, n), p = l == null ? void 0 : l.props.filters;
|
|
2339
2604
|
let f;
|
|
2340
|
-
|
|
2341
|
-
|
|
2605
|
+
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];
|
|
2606
|
+
let u;
|
|
2607
|
+
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getTimeSeries(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2608
|
+
const g = !!l && d;
|
|
2609
|
+
let m;
|
|
2610
|
+
return e[13] !== f || e[14] !== u || e[15] !== g || e[16] !== c ? (m = {
|
|
2611
|
+
queryKey: f,
|
|
2342
2612
|
queryFn: u,
|
|
2343
2613
|
enabled: g,
|
|
2344
|
-
...
|
|
2345
|
-
}, e[13] =
|
|
2614
|
+
...c
|
|
2615
|
+
}, e[13] = f, e[14] = u, e[15] = g, e[16] = c, e[17] = m) : m = e[17], te(m);
|
|
2346
2616
|
}
|
|
2347
|
-
function
|
|
2348
|
-
const e =
|
|
2617
|
+
function So(i) {
|
|
2618
|
+
const e = F(6);
|
|
2349
2619
|
let t, n;
|
|
2350
2620
|
e[0] !== i ? ({
|
|
2351
2621
|
children: t,
|
|
2352
2622
|
...n
|
|
2353
2623
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2354
|
-
const s =
|
|
2624
|
+
const s = Pn(n);
|
|
2355
2625
|
let o;
|
|
2356
2626
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2357
2627
|
}
|
|
2358
|
-
function
|
|
2359
|
-
const e =
|
|
2628
|
+
function vo(i) {
|
|
2629
|
+
const e = F(13), {
|
|
2360
2630
|
children: t,
|
|
2361
2631
|
maps: n,
|
|
2362
2632
|
lassoTools: s,
|
|
@@ -2365,131 +2635,128 @@ function ro(i) {
|
|
|
2365
2635
|
let r;
|
|
2366
2636
|
e[0] !== s ? (r = s === void 0 ? [] : s, e[0] = s, e[1] = r) : r = e[1];
|
|
2367
2637
|
const a = r;
|
|
2368
|
-
let l;
|
|
2369
|
-
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
2370
|
-
const m = l;
|
|
2371
2638
|
let c;
|
|
2372
|
-
e[
|
|
2639
|
+
e[2] !== o ? (c = o === void 0 ? [] : o, e[2] = o, e[3] = c) : c = e[3];
|
|
2640
|
+
const d = c;
|
|
2641
|
+
let l;
|
|
2642
|
+
e[4] !== t || e[5] !== d ? (l = /* @__PURE__ */ N(zs, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = l) : l = e[6];
|
|
2373
2643
|
let p;
|
|
2374
|
-
e[7] !== a || e[8] !==
|
|
2375
|
-
let
|
|
2376
|
-
return e[10] !== n || e[11] !== p ? (
|
|
2377
|
-
}
|
|
2378
|
-
function
|
|
2379
|
-
const t =
|
|
2380
|
-
id:
|
|
2381
|
-
visible:
|
|
2644
|
+
e[7] !== a || e[8] !== l ? (p = /* @__PURE__ */ N(Fs, { values: a, children: l }), e[7] = a, e[8] = l, e[9] = p) : p = e[9];
|
|
2645
|
+
let f;
|
|
2646
|
+
return e[10] !== n || e[11] !== p ? (f = /* @__PURE__ */ N(Ls, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = f) : f = e[12], f;
|
|
2647
|
+
}
|
|
2648
|
+
function bo(i, e) {
|
|
2649
|
+
const t = de((d) => d.layers), n = de((d) => d.setLayer), s = J(() => mt(i.map((d) => t[d]).filter((d) => !!d)), [t, i]), o = J(() => s.map(e), [e, s]), r = G(({
|
|
2650
|
+
id: d,
|
|
2651
|
+
visible: l,
|
|
2382
2652
|
...p
|
|
2383
2653
|
}) => {
|
|
2384
|
-
n(
|
|
2654
|
+
n(d, {
|
|
2385
2655
|
props: {
|
|
2386
|
-
visible:
|
|
2656
|
+
visible: l
|
|
2387
2657
|
},
|
|
2388
2658
|
legend: p
|
|
2389
2659
|
});
|
|
2390
|
-
}, [n]), a =
|
|
2391
|
-
id:
|
|
2392
|
-
collapsed:
|
|
2660
|
+
}, [n]), a = G(({
|
|
2661
|
+
id: d,
|
|
2662
|
+
collapsed: l
|
|
2393
2663
|
}) => {
|
|
2394
|
-
n(
|
|
2664
|
+
n(d, {
|
|
2395
2665
|
legend: {
|
|
2396
|
-
collapsed:
|
|
2666
|
+
collapsed: l
|
|
2397
2667
|
}
|
|
2398
2668
|
});
|
|
2399
|
-
}, [n]),
|
|
2400
|
-
id:
|
|
2401
|
-
opacity:
|
|
2669
|
+
}, [n]), c = G(({
|
|
2670
|
+
id: d,
|
|
2671
|
+
opacity: l
|
|
2402
2672
|
}) => {
|
|
2403
|
-
n(
|
|
2673
|
+
n(d, {
|
|
2404
2674
|
props: {
|
|
2405
|
-
opacity:
|
|
2675
|
+
opacity: l
|
|
2406
2676
|
}
|
|
2407
2677
|
});
|
|
2408
2678
|
}, [n]);
|
|
2409
2679
|
return {
|
|
2410
2680
|
legend: o,
|
|
2411
2681
|
onChangeVisibility: r,
|
|
2412
|
-
onChangeOpacity:
|
|
2682
|
+
onChangeOpacity: c,
|
|
2413
2683
|
onChangRowCollapsed: a
|
|
2414
2684
|
};
|
|
2415
2685
|
}
|
|
2416
|
-
function
|
|
2686
|
+
function Mo({
|
|
2417
2687
|
mapId: i
|
|
2418
2688
|
}) {
|
|
2419
|
-
const [e, t] =
|
|
2420
|
-
var
|
|
2421
|
-
return (
|
|
2422
|
-
}), r =
|
|
2423
|
-
var
|
|
2424
|
-
return (
|
|
2425
|
-
})
|
|
2426
|
-
var M;
|
|
2427
|
-
return (M = f.maps[i]) == null ? void 0 : M.isLoaded;
|
|
2428
|
-
}) && l, {
|
|
2689
|
+
const [e, t] = ee(void 0), [n, s] = ee(!1), o = D((m) => {
|
|
2690
|
+
var L;
|
|
2691
|
+
return (L = m.maps[i]) == null ? void 0 : L.basemap;
|
|
2692
|
+
}), r = D((m) => m.getDeckInstance), a = D((m) => m.getOverlayInstance), c = D((m) => m.areLayersLoaded[i]), l = D((m) => {
|
|
2693
|
+
var L;
|
|
2694
|
+
return (L = m.maps[i]) == null ? void 0 : L.isLoaded;
|
|
2695
|
+
}) && c, {
|
|
2429
2696
|
type: p
|
|
2430
|
-
} =
|
|
2431
|
-
const
|
|
2697
|
+
} = ue[o], f = p === Y.googleMaps, u = G(async () => {
|
|
2698
|
+
const m = r(i), L = a(i);
|
|
2432
2699
|
try {
|
|
2433
|
-
const
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
if (
|
|
2437
|
-
const S =
|
|
2700
|
+
const y = document.createElement("canvas");
|
|
2701
|
+
y.width = m.width ?? 0, y.height = m.height ?? 0;
|
|
2702
|
+
const h = y.getContext("2d");
|
|
2703
|
+
if (f) {
|
|
2704
|
+
const S = L;
|
|
2438
2705
|
if (S.getRenderingType() !== "RASTER")
|
|
2439
2706
|
throw new Error("Only raster type is supported for Google Maps");
|
|
2440
|
-
const
|
|
2707
|
+
const M = await Jt(S.getDiv(), {
|
|
2441
2708
|
useCORS: !0
|
|
2442
2709
|
});
|
|
2443
|
-
|
|
2710
|
+
h == null || h.drawImage(M, 0, 0, m.width, m.height);
|
|
2444
2711
|
} else {
|
|
2445
|
-
const S =
|
|
2446
|
-
S.redraw(),
|
|
2712
|
+
const S = L;
|
|
2713
|
+
S.redraw(), h == null || h.drawImage(S.getMap().getCanvas(), 0, 0, m.width, m.height);
|
|
2447
2714
|
}
|
|
2448
|
-
|
|
2449
|
-
const
|
|
2450
|
-
t(
|
|
2451
|
-
} catch (
|
|
2452
|
-
console.error(
|
|
2715
|
+
m == null || m.redraw("screenshot"), h == null || h.drawImage(m.getCanvas(), 0, 0, m.width, m.height);
|
|
2716
|
+
const b = y.toDataURL();
|
|
2717
|
+
t(b);
|
|
2718
|
+
} catch (y) {
|
|
2719
|
+
console.error(y);
|
|
2453
2720
|
} finally {
|
|
2454
2721
|
s(!1);
|
|
2455
2722
|
}
|
|
2456
|
-
}, [r,
|
|
2723
|
+
}, [r, f, i, a]);
|
|
2457
2724
|
return {
|
|
2458
|
-
takeScreenshot:
|
|
2459
|
-
s(!0),
|
|
2460
|
-
}, [u,
|
|
2725
|
+
takeScreenshot: G(() => {
|
|
2726
|
+
s(!0), l && u();
|
|
2727
|
+
}, [u, l]),
|
|
2461
2728
|
isLoading: n,
|
|
2462
2729
|
screenshot: e
|
|
2463
2730
|
};
|
|
2464
2731
|
}
|
|
2465
|
-
function
|
|
2466
|
-
const e =
|
|
2732
|
+
function _o(i) {
|
|
2733
|
+
const e = F(8), {
|
|
2467
2734
|
mapId: t
|
|
2468
2735
|
} = i;
|
|
2469
2736
|
let n;
|
|
2470
2737
|
e[0] !== t ? (n = {
|
|
2471
2738
|
mapId: t
|
|
2472
2739
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2473
|
-
const s =
|
|
2740
|
+
const s = Cn(n);
|
|
2474
2741
|
let o;
|
|
2475
2742
|
e[2] !== t ? (o = {
|
|
2476
2743
|
mapId: t
|
|
2477
2744
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
2478
|
-
const r =
|
|
2479
|
-
let
|
|
2480
|
-
return e[4] !== r || e[5] !== a || e[6] !== s ? (
|
|
2745
|
+
const r = wn(o), a = r ?? s;
|
|
2746
|
+
let c;
|
|
2747
|
+
return e[4] !== r || e[5] !== a || e[6] !== s ? (c = {
|
|
2481
2748
|
spatialFilter: a,
|
|
2482
2749
|
lassoToolsSpatialFilter: r,
|
|
2483
2750
|
viewportSpatialFilter: s
|
|
2484
|
-
}, e[4] = r, e[5] = a, e[6] = s, e[7] =
|
|
2751
|
+
}, e[4] = r, e[5] = a, e[6] = s, e[7] = c) : c = e[7], c;
|
|
2485
2752
|
}
|
|
2486
|
-
function
|
|
2487
|
-
const e =
|
|
2753
|
+
function Cn(i) {
|
|
2754
|
+
const e = F(4), {
|
|
2488
2755
|
mapId: t
|
|
2489
2756
|
} = i;
|
|
2490
2757
|
let n;
|
|
2491
2758
|
e[0] !== t ? (n = (r) => r.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2492
|
-
const s =
|
|
2759
|
+
const s = D(n);
|
|
2493
2760
|
let o;
|
|
2494
2761
|
e: {
|
|
2495
2762
|
if (!s) {
|
|
@@ -2497,12 +2764,12 @@ function Sn(i) {
|
|
|
2497
2764
|
break e;
|
|
2498
2765
|
}
|
|
2499
2766
|
let r;
|
|
2500
|
-
e[2] !== s ? (r =
|
|
2767
|
+
e[2] !== s ? (r = Xt(s.getBounds()), e[2] = s, e[3] = r) : r = e[3], o = r;
|
|
2501
2768
|
}
|
|
2502
2769
|
return o;
|
|
2503
2770
|
}
|
|
2504
|
-
function
|
|
2505
|
-
const e =
|
|
2771
|
+
function wn(i) {
|
|
2772
|
+
const e = F(5), {
|
|
2506
2773
|
mapId: t
|
|
2507
2774
|
} = i;
|
|
2508
2775
|
let n;
|
|
@@ -2510,88 +2777,88 @@ function vn(i) {
|
|
|
2510
2777
|
var a;
|
|
2511
2778
|
return (a = r.data[t]) == null ? void 0 : a.values;
|
|
2512
2779
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2513
|
-
const s =
|
|
2780
|
+
const s = I(n);
|
|
2514
2781
|
let o;
|
|
2515
2782
|
e: {
|
|
2516
2783
|
let r;
|
|
2517
2784
|
if (e[2] !== s) {
|
|
2518
|
-
const a =
|
|
2785
|
+
const a = at({
|
|
2519
2786
|
values: s
|
|
2520
|
-
}).filter(
|
|
2787
|
+
}).filter(On);
|
|
2521
2788
|
if (!(a != null && a.length)) {
|
|
2522
2789
|
o = void 0;
|
|
2523
2790
|
break e;
|
|
2524
2791
|
}
|
|
2525
|
-
r =
|
|
2792
|
+
r = es(a.map(Fn)), e[2] = s, e[3] = r, e[4] = o;
|
|
2526
2793
|
} else
|
|
2527
2794
|
r = e[3], o = e[4];
|
|
2528
2795
|
o = r.geometry;
|
|
2529
2796
|
}
|
|
2530
2797
|
return o;
|
|
2531
2798
|
}
|
|
2532
|
-
function
|
|
2799
|
+
function Fn(i) {
|
|
2533
2800
|
return i.geometry.coordinates;
|
|
2534
2801
|
}
|
|
2535
|
-
function
|
|
2802
|
+
function On(i) {
|
|
2536
2803
|
return i.properties.visible;
|
|
2537
2804
|
}
|
|
2538
|
-
const
|
|
2805
|
+
const ne = {
|
|
2539
2806
|
currency: "CURRENCY",
|
|
2540
2807
|
default: "DEFAULT",
|
|
2541
2808
|
number: "NUMBER"
|
|
2542
2809
|
}, Ye = {
|
|
2543
|
-
[
|
|
2544
|
-
type:
|
|
2545
|
-
format: (i, e) =>
|
|
2810
|
+
[ne.currency]: {
|
|
2811
|
+
type: ne.currency,
|
|
2812
|
+
format: (i, e) => It(i, e)
|
|
2546
2813
|
},
|
|
2547
|
-
[
|
|
2548
|
-
type:
|
|
2549
|
-
format: (i, e) =>
|
|
2814
|
+
[ne.number]: {
|
|
2815
|
+
type: ne.number,
|
|
2816
|
+
format: (i, e) => nt(i, e)
|
|
2550
2817
|
},
|
|
2551
|
-
[
|
|
2552
|
-
type:
|
|
2818
|
+
[ne.default]: {
|
|
2819
|
+
type: ne.default,
|
|
2553
2820
|
format: (i) => i.toLocaleString()
|
|
2554
2821
|
}
|
|
2555
2822
|
};
|
|
2556
|
-
function
|
|
2823
|
+
function Lo({
|
|
2557
2824
|
properties: i,
|
|
2558
2825
|
formatters: e = {},
|
|
2559
2826
|
includeColumns: t = Object.keys(i),
|
|
2560
2827
|
locale: n = "en-US",
|
|
2561
2828
|
showColumnName: s = !0,
|
|
2562
2829
|
title: o,
|
|
2563
|
-
getColumnName: r =
|
|
2564
|
-
getFieldHtml: a =
|
|
2565
|
-
getTitle:
|
|
2566
|
-
getValue:
|
|
2830
|
+
getColumnName: r = xn,
|
|
2831
|
+
getFieldHtml: a = An,
|
|
2832
|
+
getTitle: c = Dn,
|
|
2833
|
+
getValue: d = Rn
|
|
2567
2834
|
}) {
|
|
2568
|
-
const
|
|
2569
|
-
const
|
|
2570
|
-
return u + a(
|
|
2835
|
+
const l = o ? c(o) : "", f = t.reduce((u, g) => {
|
|
2836
|
+
const m = e[g], L = i[g], y = d(L, n, m), h = s ? r(g) : "";
|
|
2837
|
+
return u + a(h, y);
|
|
2571
2838
|
}, "");
|
|
2572
|
-
return
|
|
2839
|
+
return l + f;
|
|
2573
2840
|
}
|
|
2574
|
-
function
|
|
2841
|
+
function Dn(i) {
|
|
2575
2842
|
return `<h3 style="margin: 0"><strong>${i}</strong></h3></br>`;
|
|
2576
2843
|
}
|
|
2577
|
-
function
|
|
2844
|
+
function An(i, e) {
|
|
2578
2845
|
return `${i}${e}</br>`;
|
|
2579
2846
|
}
|
|
2580
|
-
function
|
|
2847
|
+
function Rn(i, e, t) {
|
|
2581
2848
|
try {
|
|
2582
|
-
return
|
|
2849
|
+
return $n(t)(i, e);
|
|
2583
2850
|
} catch {
|
|
2584
2851
|
return i;
|
|
2585
2852
|
}
|
|
2586
2853
|
}
|
|
2587
|
-
function
|
|
2588
|
-
return typeof i == "function" ? i : ((i && Ye[i]) ?? Ye[
|
|
2854
|
+
function $n(i) {
|
|
2855
|
+
return typeof i == "function" ? i : ((i && Ye[i]) ?? Ye[ne.default]).format;
|
|
2589
2856
|
}
|
|
2590
|
-
function
|
|
2857
|
+
function xn(i) {
|
|
2591
2858
|
return `<strong>${i}</strong>: `;
|
|
2592
2859
|
}
|
|
2593
|
-
function
|
|
2594
|
-
var e, t, n, s, o, r, a,
|
|
2860
|
+
function To(i) {
|
|
2861
|
+
var e, t, n, s, o, r, a, c;
|
|
2595
2862
|
return {
|
|
2596
2863
|
collapsed: (e = i.legend) == null ? void 0 : e.collapsed,
|
|
2597
2864
|
collapsible: (t = i.legend) == null ? void 0 : t.collapsible,
|
|
@@ -2602,130 +2869,132 @@ function fo(i) {
|
|
|
2602
2869
|
minZoom: (r = i.legend) == null ? void 0 : r.minZoom,
|
|
2603
2870
|
opacity: i.props.opacity ?? 1,
|
|
2604
2871
|
showOpacityControl: (a = i.legend) == null ? void 0 : a.opacityControl,
|
|
2605
|
-
switchable: (
|
|
2872
|
+
switchable: (c = i.legend) == null ? void 0 : c.switchable,
|
|
2606
2873
|
title: i.name,
|
|
2607
2874
|
visible: i.props.visible ?? !0
|
|
2608
2875
|
};
|
|
2609
2876
|
}
|
|
2610
|
-
function
|
|
2611
|
-
const e =
|
|
2877
|
+
function Eo(i) {
|
|
2878
|
+
const e = F(18), {
|
|
2612
2879
|
children: t,
|
|
2613
2880
|
mapId: n
|
|
2614
2881
|
} = i;
|
|
2615
2882
|
let s;
|
|
2616
|
-
e[0] !== n ? (s = (
|
|
2883
|
+
e[0] !== n ? (s = (h) => h.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
|
|
2617
2884
|
const {
|
|
2618
2885
|
zoom: o,
|
|
2619
2886
|
maxZoom: r,
|
|
2620
2887
|
minZoom: a
|
|
2621
|
-
} =
|
|
2622
|
-
let
|
|
2623
|
-
e[2] !== n ? (
|
|
2624
|
-
const
|
|
2888
|
+
} = D(s);
|
|
2889
|
+
let c;
|
|
2890
|
+
e[2] !== n ? (c = (h) => h.areLayersLoaded[n], e[2] = n, e[3] = c) : c = e[3];
|
|
2891
|
+
const d = D(c), l = D(qn), p = D(Un), f = !d;
|
|
2625
2892
|
let u;
|
|
2626
|
-
e[4] !== n || e[5] !==
|
|
2893
|
+
e[4] !== n || e[5] !== l ? (u = (h) => l(n, h), e[4] = n, e[5] = l, e[6] = u) : u = e[6];
|
|
2627
2894
|
const g = u;
|
|
2628
|
-
let
|
|
2629
|
-
e[7] !== p || e[8] !== n ? (
|
|
2630
|
-
const
|
|
2631
|
-
let
|
|
2632
|
-
return e[10] !== t || e[11] !== r || e[12] !== a || e[13] !==
|
|
2895
|
+
let m;
|
|
2896
|
+
e[7] !== p || e[8] !== n ? (m = (h) => p(n, h), e[7] = p, e[8] = n, e[9] = m) : m = e[9];
|
|
2897
|
+
const L = m;
|
|
2898
|
+
let y;
|
|
2899
|
+
return e[10] !== t || e[11] !== r || e[12] !== a || e[13] !== f || e[14] !== g || e[15] !== L || e[16] !== o ? (y = t({
|
|
2633
2900
|
zoom: o,
|
|
2634
2901
|
maxZoom: r,
|
|
2635
2902
|
minZoom: a,
|
|
2636
|
-
isLoading:
|
|
2903
|
+
isLoading: f,
|
|
2637
2904
|
setZoom: g,
|
|
2638
|
-
flyTo:
|
|
2639
|
-
}), e[10] = t, e[11] = r, e[12] = a, e[13] =
|
|
2905
|
+
flyTo: L
|
|
2906
|
+
}), e[10] = t, e[11] = r, e[12] = a, e[13] = f, e[14] = g, e[15] = L, e[16] = o, e[17] = y) : y = e[17], y;
|
|
2640
2907
|
}
|
|
2641
|
-
function
|
|
2908
|
+
function Un(i) {
|
|
2642
2909
|
return i.flyTo;
|
|
2643
2910
|
}
|
|
2644
|
-
function
|
|
2911
|
+
function qn(i) {
|
|
2645
2912
|
return i.setZoom;
|
|
2646
2913
|
}
|
|
2647
2914
|
export {
|
|
2648
|
-
|
|
2915
|
+
gn as ApiBaseUrl,
|
|
2649
2916
|
Ze as CONVERSIONS_UNITS,
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
qs as
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2917
|
+
Fe as CartoBasemapURL,
|
|
2918
|
+
K as CartoBasemaps,
|
|
2919
|
+
uo as CategoriesModel,
|
|
2920
|
+
ps as CustomCompositeEditMode,
|
|
2921
|
+
it as CustomEditableGeojsonLayer,
|
|
2922
|
+
As as CustomMeasureAreaMode,
|
|
2923
|
+
Rs as CustomMeasureBufferMode,
|
|
2924
|
+
ct as CustomMeasureDistanceMode,
|
|
2925
|
+
Ie as DEFAULT_LASSO_TOOLS_COLORS,
|
|
2926
|
+
gs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
2927
|
+
De as DEFAULT_LASSO_TOOLS_MODES,
|
|
2928
|
+
Oe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
2929
|
+
Se as DEFAULT_MASK_LAYER_PROPS,
|
|
2930
|
+
qs as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
2931
|
+
Vs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
2932
|
+
Re as DEFAULT_MEASURE_COLORS,
|
|
2933
|
+
ds as DeckGLComponent,
|
|
2934
|
+
Q as EditableEditType,
|
|
2935
|
+
fo as FeaturesModel,
|
|
2936
|
+
mo as FormulaModel,
|
|
2669
2937
|
we as GmapsBasemap,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2938
|
+
po as HistogramModel,
|
|
2939
|
+
ce as INTL_UNITS,
|
|
2940
|
+
Is as LassoTools,
|
|
2941
|
+
Fs as LassoToolsProvider,
|
|
2942
|
+
ue as MAPS_BASEMAP,
|
|
2943
|
+
ae as MAP_LASSO_TOOLS_LAYER_ID,
|
|
2944
|
+
be as MAP_MASK_LAYER_ID,
|
|
2945
|
+
oe as MAP_MEASURE_LAYER_ID,
|
|
2946
|
+
Us as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
2947
|
+
Ke as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
2948
|
+
z as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
2949
|
+
co as MapComponent,
|
|
2950
|
+
$e as MapMeasurementUnitAuto,
|
|
2951
|
+
xs as MapMeasurementUnitTurf,
|
|
2952
|
+
Ls as MapProvider,
|
|
2953
|
+
vo as MapsProvider,
|
|
2954
|
+
Y as MapsTypes,
|
|
2955
|
+
nn as MeasurementTools,
|
|
2956
|
+
zs as MeasurementToolsProvider,
|
|
2957
|
+
go as RangeModel,
|
|
2958
|
+
yo as ScatterModel,
|
|
2959
|
+
ho as TableModel,
|
|
2960
|
+
So as TimeSeriesModel,
|
|
2961
|
+
Eo as ZoomControls,
|
|
2962
|
+
yn as clientID,
|
|
2963
|
+
Ge as convertMetersTo,
|
|
2964
|
+
ws as createLassoToolsStore,
|
|
2965
|
+
_s as createMapStore,
|
|
2966
|
+
Gs as createMeasurementToolsStore,
|
|
2967
|
+
ne as formatterTypes,
|
|
2968
|
+
ts as getCursorDefault,
|
|
2969
|
+
lo as getDeckController,
|
|
2970
|
+
Ps as getLassoToolsLayer,
|
|
2971
|
+
Hs as getMeasurementToolsLayer,
|
|
2972
|
+
Me as getTextLayerFormattedDistance,
|
|
2973
|
+
ss as getTooltipDefault,
|
|
2974
|
+
To as mappingLegendMeridian,
|
|
2975
|
+
Lo as objectToHtml,
|
|
2976
|
+
mt as sortLayers,
|
|
2977
|
+
hs as transitionFlyConfig,
|
|
2978
|
+
bn as useCategories,
|
|
2979
|
+
ut as useEventManager,
|
|
2980
|
+
Mn as useFeatures,
|
|
2981
|
+
_n as useFormula,
|
|
2982
|
+
Ln as useHistogram,
|
|
2983
|
+
wn as useLassoToolsSpatialFilter,
|
|
2984
|
+
I as useLassoToolsState,
|
|
2985
|
+
de as useLayerStore,
|
|
2986
|
+
on as useLayers,
|
|
2987
|
+
bo as useLegend,
|
|
2988
|
+
Mo as useMapScreenshot,
|
|
2989
|
+
D as useMapStore,
|
|
2990
|
+
V as useMeasurementToolsState,
|
|
2991
|
+
Tn as useRange,
|
|
2992
|
+
En as useScatter,
|
|
2993
|
+
hn as useSourceStore,
|
|
2994
|
+
_o as useSpatialFilter,
|
|
2995
|
+
kn as useTable,
|
|
2996
|
+
Pn as useTimeSeries,
|
|
2997
|
+
Cn as useViewportSpatialFilter,
|
|
2998
|
+
se as useWidgetModel
|
|
2730
2999
|
};
|
|
2731
3000
|
//# sourceMappingURL=index.js.map
|