@carto/ps-react-maps 4.2.5 → 4.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as G, jsxs as mt } from "react/jsx-runtime";
2
2
  import { c as B } from "react/compiler-runtime";
3
- import { useImperativeHandle as Ie, useEffect as J, useState as ue, createContext as Ne, useContext as He, useMemo as ge, useCallback as se, useRef as ke } from "react";
3
+ import { useImperativeHandle as Ie, useEffect as J, useState as ue, createContext as Ne, useContext as He, useMemo as ge, useCallback as re, useRef as ke } from "react";
4
4
  import { MapProvider as Ut, Map as Vt, useMap as qt } from "react-map-gl/maplibre";
5
5
  import Bt from "@deck.gl/react";
6
6
  import { useMap as yt, Map as jt, APIProvider as It } from "@vis.gl/react-google-maps";
@@ -8,8 +8,8 @@ import { GoogleMapsOverlay as Nt } from "@deck.gl/google-maps";
8
8
  import { createStore as Ze, useStore as ze, create as ht } from "zustand";
9
9
  import { FlyToInterpolator as Ht, WebMercatorViewport as gt } from "@deck.gl/core";
10
10
  import { CompositeMode as Zt, TranslateMode as zt, ModifyMode as Gt, DrawPolygonByDraggingMode as Wt, DrawCircleFromCenterMode as bt, DrawRectangleMode as Kt, DrawPolygonMode as Yt, EditableGeoJsonLayer as Jt, MeasureAreaMode as Qt, getPickedEditHandle as Xt, MeasureDistanceMode as en, ViewMode as tn } from "@deck.gl-community/editable-layers";
11
- import { DataFilterExtension as nn, MaskExtension as sn } from "@deck.gl/extensions";
12
- import { Pan as Je, InputDirection as rn, EventManager as on, Tap as Qe, Pinch as an } from "mjolnir.js";
11
+ import { DataFilterExtension as nn, MaskExtension as rn } from "@deck.gl/extensions";
12
+ import { Pan as Je, InputDirection as sn, EventManager as on, Tap as Qe, Pinch as an } from "mjolnir.js";
13
13
  import { GeoJsonLayer as ln } from "@deck.gl/layers";
14
14
  import { useShallow as St } from "zustand/shallow";
15
15
  import { area as Xe, centroid as cn, lineIntersect as un, multiPolygon as vt } from "@turf/turf";
@@ -21,7 +21,7 @@ import { useQuery as _t } from "@tanstack/react-query";
21
21
  import { removeFilter as mn, addFilter as Ge, WidgetRasterSource as yn, WidgetTilesetSource as hn, TileFormat as gn, WidgetTableSource as bn, WidgetQuerySource as Sn, createViewportSpatialFilter as vn, vectorTilesetSource as wn } from "@carto/api-client";
22
22
  import { devtools as Mn } from "zustand/middleware";
23
23
  import _n from "html2canvas";
24
- const De = {
24
+ const Re = {
25
25
  roadmap: "roadmap",
26
26
  satellite: "satellite",
27
27
  hybrid: "hybrid"
@@ -29,7 +29,7 @@ const De = {
29
29
  darkMatter: "darkMatter",
30
30
  positron: "positron",
31
31
  voyager: "voyager"
32
- }, Re = {
32
+ }, De = {
33
33
  [ae.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
34
34
  [ae.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
35
35
  [ae.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
@@ -38,47 +38,47 @@ const De = {
38
38
  googleMaps: "google-maps"
39
39
  }, we = {
40
40
  [ae.positron]: {
41
- url: Re[ae.positron],
41
+ url: De[ae.positron],
42
42
  type: ce.maplibre
43
43
  },
44
44
  [ae.voyager]: {
45
- url: Re[ae.voyager],
45
+ url: De[ae.voyager],
46
46
  type: ce.maplibre
47
47
  },
48
48
  [ae.darkMatter]: {
49
- url: Re[ae.darkMatter],
49
+ url: De[ae.darkMatter],
50
50
  type: ce.maplibre,
51
51
  dark: !0
52
52
  },
53
- [De.roadmap]: {
53
+ [Re.roadmap]: {
54
54
  type: ce.googleMaps
55
55
  },
56
- [De.satellite]: {
56
+ [Re.satellite]: {
57
57
  type: ce.googleMaps
58
58
  },
59
- [De.hybrid]: {
59
+ [Re.hybrid]: {
60
60
  type: ce.googleMaps
61
61
  }
62
62
  };
63
63
  function En({
64
- isDragging: s,
64
+ isDragging: r,
65
65
  isHovering: e
66
66
  }) {
67
- return s ? "grabbing" : e ? "pointer" : "grab";
67
+ return r ? "grabbing" : e ? "pointer" : "grab";
68
68
  }
69
- function Tn(s) {
70
- return s.html ? {
71
- html: `<div class='map-tooltip__content'>${s.html}</div>`,
69
+ function Tn(r) {
70
+ return r.html ? {
71
+ html: `<div class='map-tooltip__content'>${r.html}</div>`,
72
72
  style: {
73
73
  padding: "0",
74
74
  background: "none"
75
75
  }
76
76
  } : null;
77
77
  }
78
- function Ln(s) {
78
+ function Ln(r) {
79
79
  const e = B(39);
80
- let t, n, r, o, i, a, l, d, m, g, b, f;
81
- e[0] !== s ? ({
80
+ let t, n, s, o, i, a, l, d, m, g, b, f;
81
+ e[0] !== r ? ({
82
82
  instanceRef: i,
83
83
  overlayRef: g,
84
84
  controller: t,
@@ -87,11 +87,11 @@ function Ln(s) {
87
87
  mapStyle: l,
88
88
  parameters: b,
89
89
  getCursor: n,
90
- getTooltip: r,
90
+ getTooltip: s,
91
91
  onLoad: d,
92
92
  onViewStateChange: m,
93
93
  ...f
94
- } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
94
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
95
95
  let M;
96
96
  e[13] !== a ? (M = a.filter(On).map(Cn), e[13] = a, e[14] = M) : M = e[14];
97
97
  const S = M, L = i;
@@ -115,56 +115,56 @@ function Ln(s) {
115
115
  let v;
116
116
  e[23] !== l || e[24] !== w ? (v = /* @__PURE__ */ G(Vt, { reuseMaps: !1, mapStyle: l, onLoad: w, onRender: kn }), e[23] = l, e[24] = w, e[25] = v) : v = e[25];
117
117
  let k;
118
- return e[26] !== S || e[27] !== t || e[28] !== n || e[29] !== r || e[30] !== o || e[31] !== m || e[32] !== f || e[33] !== L || e[34] !== u || e[35] !== p || e[36] !== h || e[37] !== v ? (k = /* @__PURE__ */ G(Ut, { children: /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: L, layers: S, getCursor: n, getTooltip: r, onLoad: u, onViewStateChange: m, parameters: p, ...f, children: [
118
+ return e[26] !== S || e[27] !== t || e[28] !== n || e[29] !== s || e[30] !== o || e[31] !== m || e[32] !== f || e[33] !== L || e[34] !== u || e[35] !== p || e[36] !== h || e[37] !== v ? (k = /* @__PURE__ */ G(Ut, { children: /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: L, layers: S, getCursor: n, getTooltip: s, onLoad: u, onViewStateChange: m, parameters: p, ...f, children: [
119
119
  h,
120
120
  v
121
- ] }) }) }), e[26] = S, e[27] = t, e[28] = n, e[29] = r, e[30] = o, e[31] = m, e[32] = f, e[33] = L, e[34] = u, e[35] = p, e[36] = h, e[37] = v, e[38] = k) : k = e[38], k;
121
+ ] }) }) }), e[26] = S, e[27] = t, e[28] = n, e[29] = s, e[30] = o, e[31] = m, e[32] = f, e[33] = L, e[34] = u, e[35] = p, e[36] = h, e[37] = v, e[38] = k) : k = e[38], k;
122
122
  }
123
123
  function kn() {
124
124
  document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
125
125
  }
126
- function Cn(s) {
126
+ function Cn(r) {
127
127
  const {
128
128
  type: e,
129
129
  props: t
130
- } = s;
130
+ } = r;
131
131
  return new e(t);
132
132
  }
133
- function On(s) {
134
- return !!s?.type;
133
+ function On(r) {
134
+ return !!r?.type;
135
135
  }
136
- function Pn(s) {
136
+ function Pn(r) {
137
137
  const e = B(3), {
138
138
  overlayRef: t
139
- } = s, {
139
+ } = r, {
140
140
  default: n
141
141
  } = qt();
142
- let r, o;
143
- return e[0] !== n ? (r = () => n, o = [n], e[0] = n, e[1] = r, e[2] = o) : (r = e[1], o = e[2]), Ie(t, r, o), null;
142
+ let s, o;
143
+ return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), Ie(t, s, o), null;
144
144
  }
145
- const An = (s) => {
145
+ const An = (r) => {
146
146
  const e = B(9);
147
147
  let t;
148
148
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
149
149
  interleaved: !0
150
150
  }), e[0] = t) : t = e[0];
151
- const n = t, r = yt();
151
+ const n = t, s = yt();
152
152
  let o, i;
153
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => n, i = [n], e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(s.instanceRef, o, i);
153
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => n, i = [n], e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(r.instanceRef, o, i);
154
154
  let a, l;
155
- e[3] !== r ? (a = () => (n.setMap(r), () => {
155
+ e[3] !== s ? (a = () => (n.setMap(s), () => {
156
156
  n.finalize();
157
- }), l = [n, r], e[3] = r, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), J(a, l);
157
+ }), l = [n, s], e[3] = s, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), J(a, l);
158
158
  let d, m;
159
- return e[6] !== s ? (d = () => {
160
- n.setProps(s);
161
- }, m = [n, s], e[6] = s, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), J(d, m), null;
159
+ return e[6] !== r ? (d = () => {
160
+ n.setProps(r);
161
+ }, m = [n, r], e[6] = r, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), J(d, m), null;
162
162
  };
163
- function Fn(s) {
163
+ function Fn(r) {
164
164
  const e = B(77);
165
- let t, n, r, o, i, a, l, d, m, g, b;
166
- e[0] !== s ? ({
167
- id: r,
165
+ let t, n, s, o, i, a, l, d, m, g, b;
166
+ e[0] !== r ? ({
167
+ id: s,
168
168
  instanceRef: o,
169
169
  basemap: t,
170
170
  layers: i,
@@ -175,7 +175,7 @@ function Fn(s) {
175
175
  onLoad: a,
176
176
  onViewStateChange: l,
177
177
  ...g
178
- } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b) : (t = e[1], n = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11]);
178
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11]);
179
179
  let f;
180
180
  e[12] !== b ? (f = b === void 0 ? {
181
181
  apiKey: ""
@@ -207,7 +207,7 @@ function Fn(s) {
207
207
  }
208
208
  const p = u;
209
209
  let h;
210
- e[24] !== i ? (h = i.filter(Rn).map(Dn), e[24] = i, e[25] = h) : h = e[25];
210
+ e[24] !== i ? (h = i.filter(Dn).map(Rn), e[24] = i, e[25] = h) : h = e[25];
211
211
  const w = h;
212
212
  let v;
213
213
  e[26] !== g.initialViewState?.maxZoom || e[27] !== g.initialViewState?.minZoom ? (v = (X) => {
@@ -258,12 +258,12 @@ function Fn(s) {
258
258
  const te = k(X);
259
259
  V(te);
260
260
  }, e[32] = V, e[33] = k, e[34] = A) : A = e[34];
261
- const $ = A, q = g.initialViewState?.latitude ?? 0, D = g.initialViewState?.longitude ?? 0;
261
+ const $ = A, q = g.initialViewState?.latitude ?? 0, R = g.initialViewState?.longitude ?? 0;
262
262
  let _;
263
- e[35] !== q || e[36] !== D ? (_ = {
263
+ e[35] !== q || e[36] !== R ? (_ = {
264
264
  lat: q,
265
- lng: D
266
- }, e[35] = q, e[36] = D, e[37] = _) : _ = e[37];
265
+ lng: R
266
+ }, e[35] = q, e[36] = R, e[37] = _) : _ = e[37];
267
267
  const P = (g.initialViewState?.zoom ?? 0) + 1, c = (g.initialViewState?.maxZoom ?? 23) + 1, y = (g.initialViewState?.minZoom ?? 0) + 1, T = g.initialViewState?.pitch, O = g.initialViewState?.bearing;
268
268
  let C;
269
269
  e[38] !== V || e[39] !== a || e[40] !== g.initialViewState ? (C = () => {
@@ -274,7 +274,7 @@ function Fn(s) {
274
274
  }, e[38] = V, e[39] = a, e[40] = g.initialViewState, e[41] = C) : C = e[41];
275
275
  const E = typeof p.scrollZoom == "boolean" ? p.scrollZoom : !!p.scrollZoom, j = p.dragPan ? "greedy" : "none", I = !p.doubleClickZoom;
276
276
  let N;
277
- e[42] !== r || e[43] !== d ? (N = /* @__PURE__ */ G(xn, { id: r, overlayRef: d }), e[42] = r, e[43] = d, e[44] = N) : N = e[44];
277
+ e[42] !== s || e[43] !== d ? (N = /* @__PURE__ */ G(xn, { id: s, overlayRef: d }), e[42] = s, e[43] = d, e[44] = N) : N = e[44];
278
278
  let U;
279
279
  e[45] !== a ? (U = () => {
280
280
  a({
@@ -288,37 +288,37 @@ function Fn(s) {
288
288
  ...m
289
289
  }, e[47] = m, e[48] = Z) : Z = e[48];
290
290
  let oe;
291
- e[49] !== w || e[50] !== r || e[51] !== o || e[52] !== g || e[53] !== U || e[54] !== Z ? (oe = /* @__PURE__ */ G(An, { id: r, instanceRef: o, layers: w, onLoad: U, parameters: Z, ...g }), e[49] = w, e[50] = r, e[51] = o, e[52] = g, e[53] = U, e[54] = Z, e[55] = oe) : oe = e[55];
291
+ e[49] !== w || e[50] !== s || e[51] !== o || e[52] !== g || e[53] !== U || e[54] !== Z ? (oe = /* @__PURE__ */ G(An, { id: s, instanceRef: o, layers: w, onLoad: U, parameters: Z, ...g }), e[49] = w, e[50] = s, e[51] = o, e[52] = g, e[53] = U, e[54] = Z, e[55] = oe) : oe = e[55];
292
292
  let Q;
293
- e[56] !== S || e[57] !== t || e[58] !== $ || e[59] !== r || e[60] !== _ || e[61] !== P || e[62] !== c || e[63] !== y || e[64] !== T || e[65] !== O || e[66] !== C || e[67] !== E || e[68] !== j || e[69] !== I || e[70] !== N || e[71] !== oe ? (Q = /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, ...S, center: _, zoom: P, maxZoom: c, minZoom: y, tilt: T, heading: O, onTilesLoaded: C, onBoundsChanged: $, onZoomChanged: $, scrollwheel: E, gestureHandling: j, disableDoubleClickZoom: I, children: [
293
+ e[56] !== S || e[57] !== t || e[58] !== $ || e[59] !== s || e[60] !== _ || e[61] !== P || e[62] !== c || e[63] !== y || e[64] !== T || e[65] !== O || e[66] !== C || e[67] !== E || e[68] !== j || e[69] !== I || e[70] !== N || e[71] !== oe ? (Q = /* @__PURE__ */ G("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: s, mapTypeId: t, disableDefaultUI: !0, ...S, center: _, zoom: P, maxZoom: c, minZoom: y, tilt: T, heading: O, onTilesLoaded: C, onBoundsChanged: $, onZoomChanged: $, scrollwheel: E, gestureHandling: j, disableDoubleClickZoom: I, children: [
294
294
  N,
295
295
  oe
296
- ] }) }), e[56] = S, e[57] = t, e[58] = $, e[59] = r, e[60] = _, e[61] = P, e[62] = c, e[63] = y, e[64] = T, e[65] = O, e[66] = C, e[67] = E, e[68] = j, e[69] = I, e[70] = N, e[71] = oe, e[72] = Q) : Q = e[72];
296
+ ] }) }), e[56] = S, e[57] = t, e[58] = $, e[59] = s, e[60] = _, e[61] = P, e[62] = c, e[63] = y, e[64] = T, e[65] = O, e[66] = C, e[67] = E, e[68] = j, e[69] = I, e[70] = N, e[71] = oe, e[72] = Q) : Q = e[72];
297
297
  let le;
298
298
  return e[73] !== M || e[74] !== L || e[75] !== Q ? (le = /* @__PURE__ */ G(It, { apiKey: L, ...M, children: Q }), e[73] = M, e[74] = L, e[75] = Q, e[76] = le) : le = e[76], le;
299
299
  }
300
- function Dn(s) {
300
+ function Rn(r) {
301
301
  const {
302
302
  type: e,
303
303
  props: t
304
- } = s;
304
+ } = r;
305
305
  return new e(t);
306
306
  }
307
- function Rn(s) {
308
- return !!s?.type;
307
+ function Dn(r) {
308
+ return !!r?.type;
309
309
  }
310
- function xn(s) {
310
+ function xn(r) {
311
311
  const e = B(3), {
312
312
  id: t,
313
313
  overlayRef: n
314
- } = s, r = yt(t);
314
+ } = r, s = yt(t);
315
315
  let o, i;
316
- return e[0] !== r ? (o = () => r, i = [r], e[0] = r, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(n, o, i), null;
316
+ return e[0] !== s ? (o = () => s, i = [s], e[0] = s, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(n, o, i), null;
317
317
  }
318
- function $n(s) {
318
+ function $n(r) {
319
319
  const e = B(46);
320
- let t, n, r, o, i, a, l, d, m, g, b, f;
321
- e[0] !== s ? ({
320
+ let t, n, s, o, i, a, l, d, m, g, b, f;
321
+ e[0] !== r ? ({
322
322
  instanceRef: n,
323
323
  overlayRef: o,
324
324
  basemap: a,
@@ -328,10 +328,10 @@ function $n(s) {
328
328
  gmapsProps: t,
329
329
  getCursor: g,
330
330
  getTooltip: b,
331
- onLoad: r,
331
+ onLoad: s,
332
332
  onViewStateChange: f,
333
333
  ...i
334
- } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
334
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
335
335
  const M = a === void 0 ? ae.positron : a, S = l === void 0 ? !0 : l, L = d === void 0 ? "deck-gl-map" : d;
336
336
  let u;
337
337
  e[13] !== m ? (u = m === void 0 ? [] : m, e[13] = m, e[14] = u) : u = e[14];
@@ -342,12 +342,12 @@ function $n(s) {
342
342
  url: A,
343
343
  type: $
344
344
  } = we[M], q = $ === ce.googleMaps;
345
- let D;
346
- e[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (C) => {
345
+ let R;
346
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (R = (C) => {
347
347
  const E = C.type === "deckgl" ? 0 : 1;
348
348
  V((j) => j.map((I, N) => N === E ? C.value : I));
349
- }, e[16] = D) : D = e[16];
350
- const _ = D;
349
+ }, e[16] = R) : R = e[16];
350
+ const _ = R;
351
351
  let P, c;
352
352
  e[17] === Symbol.for("react.memo_cache_sentinel") ? (P = () => () => {
353
353
  _({
@@ -359,18 +359,18 @@ function $n(s) {
359
359
  });
360
360
  }, c = [_], e[17] = P, e[18] = c) : (P = e[17], c = e[18]), J(P, c);
361
361
  let y, T;
362
- if (e[19] !== F || e[20] !== r ? (y = () => {
362
+ if (e[19] !== F || e[20] !== s ? (y = () => {
363
363
  const C = F.every(Un);
364
- r?.(C);
365
- }, T = [F, r], e[19] = F, e[20] = r, e[21] = y, e[22] = T) : (y = e[21], T = e[22]), J(y, T), q) {
364
+ s?.(C);
365
+ }, T = [F, s], e[19] = F, e[20] = s, e[21] = y, e[22] = T) : (y = e[21], T = e[22]), J(y, T), q) {
366
366
  let C;
367
367
  return e[23] !== M || e[24] !== S || e[25] !== h || e[26] !== w || e[27] !== t || e[28] !== L || e[29] !== n || e[30] !== p || e[31] !== v || e[32] !== o || e[33] !== i ? (C = /* @__PURE__ */ G(Fn, { instanceRef: n, overlayRef: o, controller: S, id: L, basemap: M, layers: p, gmapsProps: t, getCursor: h, getTooltip: w, onLoad: _, onViewStateChange: v, ...i }), e[23] = M, e[24] = S, e[25] = h, e[26] = w, e[27] = t, e[28] = L, e[29] = n, e[30] = p, e[31] = v, e[32] = o, e[33] = i, e[34] = C) : C = e[34], C;
368
368
  }
369
369
  let O;
370
370
  return e[35] !== S || e[36] !== h || e[37] !== w || e[38] !== L || e[39] !== n || e[40] !== p || e[41] !== A || e[42] !== v || e[43] !== o || e[44] !== i ? (O = /* @__PURE__ */ G(Ln, { instanceRef: n, overlayRef: o, controller: S, id: L, layers: p, mapStyle: A, getCursor: h, getTooltip: w, onLoad: _, onViewStateChange: v, ...i }), e[35] = S, e[36] = h, e[37] = w, e[38] = L, e[39] = n, e[40] = p, e[41] = A, e[42] = v, e[43] = o, e[44] = i, e[45] = O) : O = e[45], O;
371
371
  }
372
- function Un(s) {
373
- return s;
372
+ function Un(r) {
373
+ return r;
374
374
  }
375
375
  function Vn() {
376
376
  return null;
@@ -382,14 +382,14 @@ const qn = {
382
382
  })
383
383
  };
384
384
  var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
385
- function Et(s) {
386
- return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
385
+ function Et(r) {
386
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
387
387
  }
388
388
  var xe, et;
389
389
  function Bn() {
390
390
  if (et) return xe;
391
391
  et = 1;
392
- var s = function(p) {
392
+ var r = function(p) {
393
393
  return e(p) && !t(p);
394
394
  };
395
395
  function e(u) {
@@ -399,9 +399,9 @@ function Bn() {
399
399
  var p = Object.prototype.toString.call(u);
400
400
  return p === "[object RegExp]" || p === "[object Date]" || o(u);
401
401
  }
402
- var n = typeof Symbol == "function" && Symbol.for, r = n ? Symbol.for("react.element") : 60103;
402
+ var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
403
403
  function o(u) {
404
- return u.$$typeof === r;
404
+ return u.$$typeof === s;
405
405
  }
406
406
  function i(u) {
407
407
  return Array.isArray(u) ? [] : {};
@@ -447,7 +447,7 @@ function Bn() {
447
447
  }), w;
448
448
  }
449
449
  function S(u, p, h) {
450
- h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || s, h.cloneUnlessOtherwiseSpecified = a;
450
+ h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || r, h.cloneUnlessOtherwiseSpecified = a;
451
451
  var w = Array.isArray(p), v = Array.isArray(u), k = w === v;
452
452
  return k ? w ? h.arrayMerge(u, p, h) : M(u, p, h) : a(p, h);
453
453
  }
@@ -462,13 +462,13 @@ function Bn() {
462
462
  return xe = L, xe;
463
463
  }
464
464
  var jn = Bn();
465
- const me = /* @__PURE__ */ Et(jn), In = (s) => {
466
- const e = s.reduce((t, n) => {
465
+ const me = /* @__PURE__ */ Et(jn), In = (r) => {
466
+ const e = r.reduce((t, n) => {
467
467
  const {
468
- id: r,
468
+ id: s,
469
469
  basemap: o
470
470
  } = n;
471
- return t[r] = {
471
+ return t[s] = {
472
472
  isLoaded: !1,
473
473
  basemap: o,
474
474
  instanceRef: {
@@ -483,115 +483,126 @@ const me = /* @__PURE__ */ Et(jn), In = (s) => {
483
483
  }, {});
484
484
  return ((t, n) => ({
485
485
  maps: e,
486
- setBasemap: (r, o) => t((i) => {
486
+ setBasemap: (s, o) => t((i) => {
487
487
  const {
488
488
  type: a
489
- } = we[i.maps[r].basemap], {
489
+ } = we[i.maps[s].basemap], {
490
490
  type: l
491
- } = we[o], d = a === l && !!i.maps[r]?.isLoaded;
491
+ } = we[o], d = a === l && !!i.maps[s]?.isLoaded;
492
492
  return {
493
493
  maps: {
494
494
  ...i.maps,
495
- [r]: {
496
- ...i.maps[r],
495
+ [s]: {
496
+ ...i.maps[s],
497
497
  isLoaded: d,
498
498
  basemap: o
499
499
  }
500
500
  }
501
501
  };
502
502
  }),
503
- setLoad: (r, o) => t((i) => ({
503
+ setLoad: (s, o) => t((i) => ({
504
504
  maps: {
505
505
  ...i.maps,
506
- [r]: {
507
- ...i.maps[r],
506
+ [s]: {
507
+ ...i.maps[s],
508
508
  isLoaded: o
509
509
  }
510
510
  }
511
511
  })),
512
- getOverlayInstance: (r) => n().maps[r]?.overlayRef?.current,
513
- getDeckInstance: (r) => {
514
- const i = n().maps[r]?.instanceRef?.current;
512
+ getOverlayInstance: (s) => n().maps[s]?.overlayRef?.current,
513
+ getDeckInstance: (s) => {
514
+ const i = n().maps[s]?.instanceRef?.current;
515
515
  return (
516
516
  // @ts-expect-error accessing protected props
517
517
  i?.deck ?? i?._deck
518
518
  );
519
519
  },
520
- getViewState: (r) => n().getDeckInstance(r)?.viewState,
521
- getViewports: (r, o) => n().getDeckInstance(r)?.getViewports(o),
522
- getViewport: (r, o = 0, i) => n().getDeckInstance(r)?.getViewports(i)?.[o],
523
- getBounds: (r, o, i) => {
520
+ getViewState: (s) => {
521
+ const i = n().getDeckInstance(s);
522
+ if (!i?.viewState) return;
523
+ const {
524
+ width: a = 0,
525
+ height: l = 0
526
+ } = i;
527
+ return {
528
+ // @ts-expect-error - viewState is not in the types
529
+ ...i.viewState,
530
+ // @ts-expect-error - viewState is not in the types
531
+ width: i.viewState.width ?? a,
532
+ // @ts-expect-error - viewState is not in the types
533
+ height: i.viewState.height ?? l
534
+ };
535
+ },
536
+ getViewports: (s, o) => n().getDeckInstance(s)?.getViewports(o),
537
+ getViewport: (s, o = 0, i) => n().getDeckInstance(s)?.getViewports(i)?.[o],
538
+ getBounds: (s, o, i) => {
524
539
  const a = n();
525
- if (!a.maps?.[r]?.isLoaded) return;
526
- const l = a.getViewState(r), d = a.getDeckInstance(r);
527
- if (!l || !d?.height || !d?.width) return;
528
- const m = l?.height ?? d?.height, g = l?.width ?? d?.width, f = new gt({
529
- ...l,
530
- height: m,
531
- width: g
532
- }).fitBounds(o, i?.boundsOptions);
540
+ if (!a.maps?.[s]?.isLoaded) return;
541
+ const l = a.getViewState(s);
542
+ if (!l) return;
543
+ const m = new gt(l).fitBounds(o, i?.boundsOptions);
533
544
  return {
534
- latitude: f.latitude,
535
- longitude: f.longitude,
536
- zoom: f.zoom,
545
+ latitude: m.latitude,
546
+ longitude: m.longitude,
547
+ zoom: m.zoom,
537
548
  ...i?.viewStateOptions
538
549
  };
539
550
  },
540
- addLayers: (r, o) => t((i) => {
551
+ addLayers: (s, o) => t((i) => {
541
552
  const a = {
542
553
  ...i.maps
543
- }, l = a[r]?.layers ?? [], d = /* @__PURE__ */ new Set([...l, ...o]);
544
- return a[r] = {
545
- ...a[r],
554
+ }, l = a[s]?.layers ?? [], d = /* @__PURE__ */ new Set([...l, ...o]);
555
+ return a[s] = {
556
+ ...a[s],
546
557
  layers: [...d]
547
558
  }, {
548
559
  maps: a
549
560
  };
550
561
  }),
551
- removeLayers: (r, o) => t((i) => {
562
+ removeLayers: (s, o) => t((i) => {
552
563
  const a = {
553
564
  ...i.maps
554
- }, l = a[r]?.layers ?? [];
555
- return a[r] = {
556
- ...a[r],
565
+ }, l = a[s]?.layers ?? [];
566
+ return a[s] = {
567
+ ...a[s],
557
568
  layers: l.filter((d) => !o.includes(d))
558
569
  }, {
559
570
  maps: a
560
571
  };
561
572
  }),
562
- setController: (r, o) => t((i) => {
563
- const a = i.maps[r]?.controller ?? {}, d = !o || typeof o == "boolean" ? o : me(typeof a == "boolean" ? {} : a, o);
573
+ setController: (s, o) => t((i) => {
574
+ const a = i.maps[s]?.controller ?? {}, d = !o || typeof o == "boolean" ? o : me(typeof a == "boolean" ? {} : a, o);
564
575
  return {
565
576
  maps: {
566
577
  ...i.maps,
567
- [r]: {
568
- ...i.maps[r],
578
+ [s]: {
579
+ ...i.maps[s],
569
580
  controller: d
570
581
  }
571
582
  }
572
583
  };
573
584
  })
574
585
  }));
575
- }, Nn = (s) => {
576
- const e = s.reduce((t, n) => {
586
+ }, Nn = (r) => {
587
+ const e = r.reduce((t, n) => {
577
588
  const {
578
- id: r
589
+ id: s
579
590
  } = n;
580
- return t[r] = !1, t;
591
+ return t[s] = !1, t;
581
592
  }, {});
582
593
  return ((t) => ({
583
594
  areLayersLoaded: e,
584
- setLayersLoad: (n, r) => t((o) => ({
595
+ setLayersLoad: (n, s) => t((o) => ({
585
596
  areLayersLoaded: {
586
597
  ...o.areLayersLoaded,
587
- [n]: r
598
+ [n]: s
588
599
  }
589
600
  }))
590
601
  }));
591
- }, Hn = (s) => {
592
- const e = s.reduce((t, n) => {
593
- const r = n.initialViewState ?? n.viewState;
594
- return t.initialViewStates[n.id] = r, t.viewStates[n.id] = r, t.viewports[n.id] = null, t;
602
+ }, Hn = (r) => {
603
+ const e = r.reduce((t, n) => {
604
+ const s = n.initialViewState ?? n.viewState;
605
+ return t.initialViewStates[n.id] = s, t.viewStates[n.id] = s, t.viewports[n.id] = null, t;
595
606
  }, {
596
607
  viewStates: {},
597
608
  viewports: {},
@@ -600,70 +611,72 @@ const me = /* @__PURE__ */ Et(jn), In = (s) => {
600
611
  return ((t, n) => ({
601
612
  viewports: e.viewports,
602
613
  initialViewStates: e.initialViewStates,
603
- updateViewPort: (r) => {
614
+ updateViewPort: (s) => {
604
615
  const o = n();
605
- if (!o.maps[r]?.isLoaded) return;
606
- const i = new gt(o.viewStates[r]);
607
- t((a) => ({
616
+ if (!o.maps[s]?.isLoaded) return;
617
+ const i = o.getViewState(s);
618
+ if (!i) return;
619
+ const a = new gt(i);
620
+ t((l) => ({
608
621
  viewports: {
609
- ...a.viewports,
610
- [r]: i
622
+ ...l.viewports,
623
+ [s]: a
611
624
  }
612
625
  }));
613
626
  },
614
627
  viewStates: e.viewStates,
615
- setViewState: (r, o) => t((i) => ({
628
+ setViewState: (s, o) => t((i) => ({
616
629
  viewStates: {
617
630
  ...i.viewStates,
618
- [r]: {
619
- ...i.viewStates[r],
631
+ [s]: {
632
+ ...i.viewStates[s],
620
633
  ...o
621
634
  }
622
635
  }
623
636
  })),
624
- setInitialViewState: (r, o) => t((i) => ({
637
+ setInitialViewState: (s, o) => t((i) => ({
625
638
  initialViewStates: {
626
639
  ...i.initialViewStates,
627
- [r]: o
640
+ [s]: o
628
641
  }
629
642
  })),
630
- setZoom: (r, o) => t((i) => ({
643
+ setZoom: (s, o) => t((i) => ({
631
644
  viewStates: {
632
645
  ...i.viewStates,
633
- [r]: {
634
- ...i.viewStates[r],
646
+ [s]: {
647
+ ...i.viewStates[s],
635
648
  zoom: o
636
649
  }
637
650
  }
638
651
  })),
639
- setMinZoom: (r, o) => t((i) => ({
652
+ setMinZoom: (s, o) => t((i) => ({
640
653
  viewStates: {
641
654
  ...i.viewStates,
642
- [r]: {
643
- ...i.viewStates[r],
655
+ [s]: {
656
+ ...i.viewStates[s],
644
657
  minZoom: o
645
658
  }
646
659
  }
647
660
  })),
648
- setMaxZoom: (r, o) => t((i) => ({
661
+ setMaxZoom: (s, o) => t((i) => ({
649
662
  viewStates: {
650
663
  ...i.viewStates,
651
- [r]: {
652
- ...i.viewStates[r],
664
+ [s]: {
665
+ ...i.viewStates[s],
653
666
  maxZoom: o
654
667
  }
655
668
  }
656
669
  }))
657
670
  }));
658
- }, Zn = ((s, e) => ({
659
- fitBounds: (t, n, r) => {
660
- const o = e(), i = o.getBounds(t, n, r);
671
+ }, Zn = ((r, e) => ({
672
+ fitBounds: (t, n, s) => {
673
+ const o = e(), i = o.getBounds(t, n, s);
661
674
  i && (o.setViewState(t, i), o.updateViewPort(t));
662
675
  },
663
- flyTo: (t, n, r = {}) => {
676
+ flyTo: (t, n, s = {}) => {
664
677
  const o = e(), i = {
665
678
  ...qn,
666
- ...r?.viewStateOptions
679
+ ...s?.viewStateOptions
667
680
  }, a = {
668
681
  ...n,
669
682
  ...i
@@ -671,75 +684,75 @@ const me = /* @__PURE__ */ Et(jn), In = (s) => {
671
684
  o.setViewState(t, a), o.updateViewPort(t);
672
685
  },
673
686
  loadInitialViewState: (t, n) => {
674
- const r = e();
675
- r.setInitialViewState(t, n), r.flyTo(t, n, {
687
+ const s = e();
688
+ s.setInitialViewState(t, n), s.flyTo(t, n, {
676
689
  viewStateOptions: {
677
690
  transitionDuration: 0
678
691
  }
679
692
  });
680
693
  },
681
694
  resetViewState: (t) => {
682
- const n = e(), r = n.initialViewStates;
683
- r[t] && n.flyTo(t, r[t]);
695
+ const n = e(), s = n.initialViewStates;
696
+ s[t] && n.flyTo(t, s[t]);
684
697
  }
685
- })), zn = (s) => {
686
- const e = s.reduce((t, n) => (t[n.id] = n.spatialFilter ?? {}, t), {});
698
+ })), zn = (r) => {
699
+ const e = r.reduce((t, n) => (t[n.id] = n.spatialFilter ?? {}, t), {});
687
700
  return ((t) => ({
688
701
  spatialFilter: e,
689
- setSpatialFilter: (n, r, o) => {
702
+ setSpatialFilter: (n, s, o) => {
690
703
  t((i) => {
691
704
  const a = structuredClone(i.spatialFilter);
692
705
  return a[n] = {
693
706
  ...a[n],
694
- [r]: o
707
+ [s]: o
695
708
  }, {
696
709
  spatialFilter: a
697
710
  };
698
711
  });
699
712
  },
700
- removeSpatialFilter: (n, r) => {
713
+ removeSpatialFilter: (n, s) => {
701
714
  t((o) => {
702
715
  const i = structuredClone(o.spatialFilter);
703
- return i[n] && delete i[n][r], {
716
+ return i[n] && delete i[n][s], {
704
717
  spatialFilter: i
705
718
  };
706
719
  });
707
720
  }
708
721
  }));
709
- }, Gn = (s) => Ze()((...e) => ({
710
- ...In(s)(...e),
711
- ...Nn(s)(...e),
712
- ...Hn(s)(...e),
713
- ...zn(s)(...e),
722
+ }, Gn = (r) => Ze()((...e) => ({
723
+ ...In(r)(...e),
724
+ ...Nn(r)(...e),
725
+ ...Hn(r)(...e),
726
+ ...zn(r)(...e),
714
727
  ...Zn(...e)
715
728
  })), Tt = Ne({});
716
- function Wn(s) {
729
+ function Wn(r) {
717
730
  const e = B(5), {
718
731
  children: t,
719
732
  values: n
720
- } = s;
721
- let r;
722
- e[0] !== n ? (r = Gn(n), e[0] = n, e[1] = r) : r = e[1];
723
- const [o] = ue(r);
733
+ } = r;
734
+ let s;
735
+ e[0] !== n ? (s = Gn(n), e[0] = n, e[1] = s) : s = e[1];
736
+ const [o] = ue(s);
724
737
  let i;
725
738
  return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
726
739
  }
727
- function x(s) {
740
+ function x(r) {
728
741
  const e = He(Tt);
729
742
  if (!Object.keys(e).length)
730
743
  throw new Error("Missing MapProvider in the tree");
731
- return ze(e, s);
744
+ return ze(e, r);
732
745
  }
733
- function co(s) {
746
+ function co(r) {
734
747
  const e = B(9), {
735
748
  children: t,
736
749
  mapId: n
737
- } = s;
738
- let r;
739
- e[0] !== n ? (r = (m) => m.maps[n], e[0] = n, e[1] = r) : r = e[1];
750
+ } = r;
751
+ let s;
752
+ e[0] !== n ? (s = (m) => m.maps[n], e[0] = n, e[1] = s) : s = e[1];
740
753
  const {
741
754
  basemap: o
742
- } = x(r), i = x(Kn);
755
+ } = x(s), i = x(Kn);
743
756
  let a;
744
757
  e[2] !== n || e[3] !== i ? (a = (m) => i(n, m), e[2] = n, e[3] = i, e[4] = a) : a = e[4];
745
758
  const l = a;
@@ -749,10 +762,10 @@ function co(s) {
749
762
  setBasemap: l
750
763
  }), e[5] = o, e[6] = t, e[7] = l, e[8] = d) : d = e[8], d;
751
764
  }
752
- function Kn(s) {
753
- return s.setBasemap;
765
+ function Kn(r) {
766
+ return r.setBasemap;
754
767
  }
755
- const re = {
768
+ const se = {
756
769
  addFeature: "addFeature",
757
770
  addTentativePosition: "addTentativePosition",
758
771
  updateTentativeFeature: "updateTentativeFeature",
@@ -767,7 +780,7 @@ class Yn extends Zt {
767
780
  handleKeyUp(e, t) {
768
781
  super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
769
782
  updatedData: t.data,
770
- editType: re.addFeature,
783
+ editType: se.addFeature,
771
784
  editContext: {}
772
785
  }));
773
786
  }
@@ -835,19 +848,19 @@ const he = "lassoLayer", Pe = "maskLayer", Jn = {
835
848
  value: "edit",
836
849
  mode: Yn
837
850
  }
838
- }, Se = ht((s) => ({
851
+ }, Se = ht((r) => ({
839
852
  layers: {},
840
- setLayer: (e, t) => s((n) => {
841
- const r = {
853
+ setLayer: (e, t) => r((n) => {
854
+ const s = {
842
855
  ...n.layers
843
- }, o = r[e] ?? {
856
+ }, o = s[e] ?? {
844
857
  type: null,
845
858
  props: {}
846
859
  }, i = [...o.props.extensions ?? [], ...t.props?.extensions ?? []].reduce((l, d) => (l.some((m) => m.equals(d)) || l.push(d), l), []), a = o.legend || t.legend ? {
847
860
  ...o.legend,
848
861
  ...t.legend
849
862
  } : void 0;
850
- return r[e] = {
863
+ return s[e] = {
851
864
  ...o,
852
865
  ...t,
853
866
  props: {
@@ -862,10 +875,10 @@ const he = "lassoLayer", Pe = "maskLayer", Jn = {
862
875
  },
863
876
  legend: a
864
877
  }, {
865
- layers: r
878
+ layers: s
866
879
  };
867
880
  }),
868
- removeLayer: (e) => s((t) => {
881
+ removeLayer: (e) => r((t) => {
869
882
  const n = {
870
883
  ...t.layers
871
884
  };
@@ -876,7 +889,7 @@ const he = "lassoLayer", Pe = "maskLayer", Jn = {
876
889
  })), nt = ["click", "dblclick", "keyup", "panstart", "panmove", "panend", "pointermove"], Lt = {
877
890
  multipan: [Je, {
878
891
  threshold: 10,
879
- direction: rn.Vertical,
892
+ direction: sn.Vertical,
880
893
  pointers: 2
881
894
  }],
882
895
  pinch: [an, {}, null, ["multipan"]],
@@ -891,17 +904,17 @@ const he = "lassoLayer", Pe = "maskLayer", Jn = {
891
904
  threshold: 1
892
905
  }, ["pinch"], ["multipan"]]
893
906
  };
894
- function kt(s) {
907
+ function kt(r) {
895
908
  const e = B(13), {
896
909
  mapId: t,
897
910
  layerId: n
898
- } = s;
899
- let r;
900
- e[0] !== t ? (r = (S) => S.maps[t]?.basemap, e[0] = t, e[1] = r) : r = e[1];
901
- const o = x(r);
911
+ } = r;
912
+ let s;
913
+ e[0] !== t ? (s = (S) => S.maps[t]?.basemap, e[0] = t, e[1] = s) : s = e[1];
914
+ const o = x(s);
902
915
  let i;
903
916
  e[2] !== t ? (i = (S) => S.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
904
- const a = x(i), l = x(ns), d = x(ts), m = Se(es), {
917
+ const a = x(i), l = x(nr), d = x(tr), m = Se(er), {
905
918
  type: g
906
919
  } = we[o], b = g === ce.googleMaps;
907
920
  let f, M;
@@ -918,38 +931,38 @@ function kt(s) {
918
931
  }));
919
932
  }, M = [d, b, a, l, n, t, m], e[4] = l, e[5] = d, e[6] = b, e[7] = a, e[8] = n, e[9] = t, e[10] = m, e[11] = f, e[12] = M) : (f = e[11], M = e[12]), J(f, M);
920
933
  }
921
- function Xn(s) {
922
- const [e, t, n, r] = Lt[s], o = {
934
+ function Xn(r) {
935
+ const [e, t, n, s] = Lt[r], o = {
923
936
  ...t,
924
- event: s
937
+ event: r
925
938
  };
926
939
  return {
927
940
  recognizer: new e(o),
928
941
  recognizeWith: n,
929
- requestFailure: r
942
+ requestFailure: s
930
943
  };
931
944
  }
932
- function es(s) {
933
- return s.setLayer;
945
+ function er(r) {
946
+ return r.setLayer;
934
947
  }
935
- function ts(s) {
936
- return s.getOverlayInstance;
948
+ function tr(r) {
949
+ return r.getOverlayInstance;
937
950
  }
938
- function ns(s) {
939
- return s.getDeckInstance;
951
+ function nr(r) {
952
+ return r.getDeckInstance;
940
953
  }
941
954
  class Ct extends Jt {
942
955
  updateState({
943
956
  props: e,
944
957
  oldProps: t,
945
958
  context: n,
946
- changeFlags: r
959
+ changeFlags: s
947
960
  }) {
948
961
  e.eventManager !== t.eventManager && (this._removeEventHandlers(e.eventManager), this._removeEventHandlers(t.eventManager), this._addEventHandlers()), super.updateState({
949
962
  props: e,
950
963
  oldProps: t,
951
964
  context: n,
952
- changeFlags: r
965
+ changeFlags: s
953
966
  });
954
967
  }
955
968
  _addEventHandlers() {
@@ -963,35 +976,35 @@ class Ct extends Jt {
963
976
  const t = e ?? this._getEventManager(), {
964
977
  eventHandler: n
965
978
  } = this.state._editableLayerState;
966
- for (const r of nt)
967
- t.off(r, n);
979
+ for (const s of nt)
980
+ t.off(s, n);
968
981
  }
969
982
  _getEventManager() {
970
983
  return this.props.eventManager ?? // @ts-expect-error accessing protected props
971
984
  this.context.deck.eventManager;
972
985
  }
973
986
  }
974
- function ss({
975
- mode: s,
987
+ function rr({
988
+ mode: r,
976
989
  ...e
977
990
  }) {
978
- const t = rs(e);
991
+ const t = sr(e);
979
992
  return {
980
993
  type: Ct,
981
994
  props: {
982
995
  ...t,
983
- mode: s
996
+ mode: r
984
997
  }
985
998
  };
986
999
  }
987
- function rs({
988
- layerProps: s,
1000
+ function sr({
1001
+ layerProps: r,
989
1002
  onEdit: e,
990
1003
  getLineColor: t,
991
1004
  getFillColor: n,
992
- pointColor: r
1005
+ pointColor: s
993
1006
  }) {
994
- const o = me(s, {
1007
+ const o = me(r, {
995
1008
  modeConfig: {
996
1009
  // // We force distance due to conversion is addressed at feature getText level
997
1010
  // formatTooltip: (_distance: number) => {
@@ -1005,14 +1018,14 @@ function rs({
1005
1018
  getTentativeFillColor: n,
1006
1019
  getLineColor: t,
1007
1020
  getFillColor: n,
1008
- getEditHandlePointColor: r.fill,
1009
- getEditHandlePointOutlineColor: r.outline,
1021
+ getEditHandlePointColor: s.fill,
1022
+ getEditHandlePointOutlineColor: s.outline,
1010
1023
  dataComparator: (l, d) => l.features[0] === d.features[0]
1011
1024
  });
1012
1025
  return me(i, o);
1013
1026
  }
1014
- const os = (s) => Ze()((e) => ({
1015
- data: s.reduce((n, r) => {
1027
+ const or = (r) => Ze()((e) => ({
1028
+ data: r.reduce((n, s) => {
1016
1029
  const {
1017
1030
  enabled: o = !1,
1018
1031
  mapId: i,
@@ -1020,7 +1033,7 @@ const os = (s) => Ze()((e) => ({
1020
1033
  modes: l = Ue,
1021
1034
  modeSelected: d = Ue.polygon.value,
1022
1035
  values: m = {}
1023
- } = r;
1036
+ } = s;
1024
1037
  return n[i] = {
1025
1038
  enabled: o,
1026
1039
  modeInstance: a,
@@ -1029,30 +1042,30 @@ const os = (s) => Ze()((e) => ({
1029
1042
  values: m
1030
1043
  }, n;
1031
1044
  }, {}),
1032
- setEnabled: (n, r) => {
1045
+ setEnabled: (n, s) => {
1033
1046
  e((o) => ({
1034
1047
  data: {
1035
1048
  ...o.data,
1036
1049
  [n]: {
1037
1050
  ...o.data[n],
1038
- enabled: r,
1039
- visible: r
1051
+ enabled: s,
1052
+ visible: s
1040
1053
  }
1041
1054
  }
1042
1055
  }));
1043
1056
  },
1044
- setValue: (n, r, o) => {
1057
+ setValue: (n, s, o) => {
1045
1058
  e((i) => {
1046
1059
  const a = {
1047
1060
  ...i.data[n].values
1048
- }, l = a[r] ?? {
1061
+ }, l = a[s] ?? {
1049
1062
  type: "mask"
1050
1063
  };
1051
- return a[r] = {
1064
+ return a[s] = {
1052
1065
  ...l,
1053
1066
  ...o,
1054
- id: r
1055
- }, o || delete a[r], {
1067
+ id: s
1068
+ }, o || delete a[s], {
1056
1069
  data: {
1057
1070
  ...i.data,
1058
1071
  [n]: {
@@ -1063,11 +1076,11 @@ const os = (s) => Ze()((e) => ({
1063
1076
  };
1064
1077
  });
1065
1078
  },
1066
- setVisibility: (n, r, o) => {
1079
+ setVisibility: (n, s, o) => {
1067
1080
  e((i) => {
1068
1081
  const a = {
1069
1082
  ...i.data[n].values
1070
- }, l = a[r] ?? {};
1083
+ }, l = a[s] ?? {};
1071
1084
  return l.properties.visible = o, {
1072
1085
  data: {
1073
1086
  ...i.data,
@@ -1075,65 +1088,65 @@ const os = (s) => Ze()((e) => ({
1075
1088
  ...i.data[n],
1076
1089
  values: {
1077
1090
  ...a,
1078
- [r]: l
1091
+ [s]: l
1079
1092
  }
1080
1093
  }
1081
1094
  }
1082
1095
  };
1083
1096
  });
1084
1097
  },
1085
- setModeSelected: (n, r) => {
1098
+ setModeSelected: (n, s) => {
1086
1099
  e((o) => ({
1087
1100
  data: {
1088
1101
  ...o.data,
1089
1102
  [n]: {
1090
1103
  ...o.data[n],
1091
- modeSelected: r
1104
+ modeSelected: s
1092
1105
  }
1093
1106
  }
1094
1107
  }));
1095
1108
  },
1096
- setModeInstance: (n, r) => {
1109
+ setModeInstance: (n, s) => {
1097
1110
  e((o) => ({
1098
1111
  data: {
1099
1112
  ...o.data,
1100
1113
  [n]: {
1101
1114
  ...o.data[n],
1102
- modeInstance: r
1115
+ modeInstance: s
1103
1116
  }
1104
1117
  }
1105
1118
  }));
1106
1119
  }
1107
1120
  })), Ot = Ne({});
1108
- function is(s) {
1121
+ function ir(r) {
1109
1122
  const e = B(5), {
1110
1123
  children: t,
1111
1124
  values: n
1112
- } = s;
1113
- let r;
1114
- e[0] !== n ? (r = () => os(n), e[0] = n, e[1] = r) : r = e[1];
1115
- const [o] = ue(r);
1125
+ } = r;
1126
+ let s;
1127
+ e[0] !== n ? (s = () => or(n), e[0] = n, e[1] = s) : s = e[1];
1128
+ const [o] = ue(s);
1116
1129
  let i;
1117
1130
  return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1118
1131
  }
1119
- function K(s) {
1132
+ function K(r) {
1120
1133
  const e = He(Ot);
1121
1134
  if (!Object.keys(e).length)
1122
1135
  throw new Error("Missing LassoToolsProvider in the tree");
1123
- return ze(e, s);
1136
+ return ze(e, r);
1124
1137
  }
1125
- function as({
1126
- mapId: s,
1138
+ function ar({
1139
+ mapId: r,
1127
1140
  children: e
1128
1141
  }) {
1129
- const t = K((f) => f.data[s]?.enabled), n = K((f) => f.setEnabled), r = K((f) => f.data[s]?.values), o = K((f) => f.setValue), i = K((f) => f.setVisibility), a = K((f) => f.data[s]?.modeSelected), l = K((f) => f.setModeSelected), d = K((f) => f.data[s]?.modes), m = K((f) => f.setModeInstance);
1142
+ const t = K((f) => f.data[r]?.enabled), n = K((f) => f.setEnabled), s = K((f) => f.data[r]?.values), o = K((f) => f.setValue), i = K((f) => f.setVisibility), a = K((f) => f.data[r]?.modeSelected), l = K((f) => f.setModeSelected), d = K((f) => f.data[r]?.modes), m = K((f) => f.setModeInstance);
1130
1143
  J(() => {
1131
1144
  const f = d[a];
1132
1145
  if (f && t) {
1133
1146
  const M = f.mode;
1134
- m(s, new M());
1147
+ m(r, new M());
1135
1148
  }
1136
- }, [t, s, a, d, m]);
1149
+ }, [t, r, a, d, m]);
1137
1150
  const [
1138
1151
  g
1139
1152
  // , draw
@@ -1145,14 +1158,14 @@ function as({
1145
1158
  label: L.properties.label
1146
1159
  });
1147
1160
  return [
1148
- Object.values(r).filter((L) => L.type === "mask").map(f)
1161
+ Object.values(s).filter((L) => L.type === "mask").map(f)
1149
1162
  // , draw
1150
1163
  ];
1151
- }, [r]), b = se((f) => {
1152
- n(s, !!f), l(s, f);
1153
- }, [s, n, l]);
1164
+ }, [s]), b = re((f) => {
1165
+ n(r, !!f), l(r, f);
1166
+ }, [r, n, l]);
1154
1167
  return e({
1155
- mapId: s,
1168
+ mapId: r,
1156
1169
  enabled: t,
1157
1170
  modes: d,
1158
1171
  modeSelected: a,
@@ -1160,65 +1173,65 @@ function as({
1160
1173
  mask: g
1161
1174
  // draw,
1162
1175
  },
1163
- setValue: se((f, M) => o(s, f, M), [s, o]),
1164
- setEnabled: se((f) => n(s, f), [s, n]),
1165
- setVisibility: se((f, M) => i(s, f, M), [s, i]),
1176
+ setValue: re((f, M) => o(r, f, M), [r, o]),
1177
+ setEnabled: re((f) => n(r, f), [r, n]),
1178
+ setVisibility: re((f, M) => i(r, f, M), [r, i]),
1166
1179
  setModeSelected: b
1167
1180
  });
1168
1181
  }
1169
1182
  function Pt({
1170
- values: s
1183
+ values: r
1171
1184
  }) {
1172
- return Object.values(s ?? {}).filter((e) => e.type === "mask");
1185
+ return Object.values(r ?? {}).filter((e) => e.type === "mask");
1173
1186
  }
1174
- const ls = Mt({
1187
+ const lr = Mt({
1175
1188
  length: fn
1176
- }), cs = Mt({
1189
+ }), cr = Mt({
1177
1190
  area: pn
1178
1191
  });
1179
- function us(s) {
1180
- if (!(s in Ce)) {
1192
+ function ur(r) {
1193
+ if (!(r in Ce)) {
1181
1194
  const e = Object.keys(Ce);
1182
- throw new Error(`Unit "${s}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
1195
+ throw new Error(`Unit "${r}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
1183
1196
  }
1184
1197
  }
1185
- function st(s, e, t) {
1198
+ function rt(r, e, t) {
1186
1199
  switch (t) {
1187
1200
  case "length": {
1188
- const n = it[H.meter], r = it[e];
1189
- return ls(s).from(n).to(r);
1201
+ const n = it[H.meter], s = it[e];
1202
+ return lr(r).from(n).to(s);
1190
1203
  }
1191
1204
  case "area": {
1192
- us(e);
1193
- const n = at[Ce[H.meter]], r = at[Ce[e]];
1194
- return cs(s).from(n).to(r);
1205
+ ur(e);
1206
+ const n = at[Ce[H.meter]], s = at[Ce[e]];
1207
+ return cr(r).from(n).to(s);
1195
1208
  }
1196
1209
  default:
1197
1210
  throw new Error(`Invalid dimension: ${t}, valid dimensions are: length, area`);
1198
1211
  }
1199
1212
  }
1200
- const rt = 1e4;
1213
+ const st = 1e4;
1201
1214
  function Ae({
1202
- meters: s,
1215
+ meters: r,
1203
1216
  unit: e,
1204
1217
  locale: t,
1205
1218
  options: {
1206
1219
  autoSplitNumber: n,
1207
- customFormatter: r,
1220
+ customFormatter: s,
1208
1221
  ...o
1209
1222
  } = {
1210
- autoSplitNumber: rt
1223
+ autoSplitNumber: st
1211
1224
  },
1212
1225
  dimension: i = "length"
1213
1226
  }) {
1214
1227
  const a = e === je["m-km"], l = e === je["ft-mi"], d = a || l;
1215
1228
  let m, g;
1216
1229
  if (d) {
1217
- const f = s < (n ?? rt);
1230
+ const f = r < (n ?? st);
1218
1231
  let M = f ? H.meter : H.kilometer;
1219
- m = f ? ve.meter : ve.kilometer, l && (m = f ? ve.feet : ve.mile, M = f ? H.feet : H.mile), g = st(s, M, i);
1232
+ m = f ? ve.meter : ve.kilometer, l && (m = f ? ve.feet : ve.mile, M = f ? H.feet : H.mile), g = rt(r, M, i);
1220
1233
  } else
1221
- m = ve[e], g = st(s, e, i);
1234
+ m = ve[e], g = rt(r, e, i);
1222
1235
  let b = `${wt(g, t, {
1223
1236
  style: "unit",
1224
1237
  unit: m,
@@ -1228,41 +1241,41 @@ function Ae({
1228
1241
  maximumFractionDigits: 2,
1229
1242
  ...o
1230
1243
  })}`;
1231
- return i === "area" && (b += "2"), r ? r(b) : b;
1244
+ return i === "area" && (b += "2"), s ? s(b) : b;
1232
1245
  }
1233
- function uo(s, {
1246
+ function uo(r, {
1234
1247
  hasDoubleClickZoom: e
1235
1248
  }) {
1236
- return typeof s == "boolean" ? {
1249
+ return typeof r == "boolean" ? {
1237
1250
  doubleClickZoom: e
1238
1251
  } : {
1239
- ...s,
1252
+ ...r,
1240
1253
  doubleClickZoom: e
1241
1254
  };
1242
1255
  }
1243
- function At(s, e, t) {
1244
- if (s > 0) {
1256
+ function At(r, e, t) {
1257
+ if (r > 0) {
1245
1258
  const {
1246
1259
  formatTooltip: n,
1247
- turfOptions: r
1260
+ turfOptions: s
1248
1261
  } = t ?? {
1249
1262
  turfOptions: {
1250
1263
  units: "kilometers"
1251
1264
  }
1252
- }, o = r?.units;
1265
+ }, o = s?.units;
1253
1266
  let i;
1254
- n ? i = n(s) : i = `${parseFloat(s.toString()).toFixed(2)} ${o}`;
1267
+ n ? i = n(r) : i = `${parseFloat(r.toString()).toFixed(2)} ${o}`;
1255
1268
  const {
1256
1269
  measurementCallback: a
1257
1270
  } = t;
1258
- return a && a(s), [{
1271
+ return a && a(r), [{
1259
1272
  position: e,
1260
1273
  text: i
1261
1274
  }];
1262
1275
  }
1263
1276
  return [];
1264
1277
  }
1265
- class ds extends Qt {
1278
+ class dr extends Qt {
1266
1279
  _isMeasuringSessionFinished = !1;
1267
1280
  area = 0;
1268
1281
  tooltips = [];
@@ -1274,14 +1287,14 @@ class ds extends Qt {
1274
1287
  this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
1275
1288
  const {
1276
1289
  picks: n
1277
- } = e, r = Xt(n), o = this.getClickSequence();
1290
+ } = e, s = Xt(n), o = this.getClickSequence();
1278
1291
  let i = !1;
1279
- !r && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
1292
+ !s && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
1280
1293
  const a = this.getClickSequence(), l = [...a, a[0]];
1281
1294
  this.area = Xe({
1282
1295
  type: "Polygon",
1283
1296
  coordinates: [l]
1284
- }), this.isFinalizedEdition(o, r) ? this.finalizeEdition(t) : i && t.onEdit({
1297
+ }), this.isFinalizedEdition(o, s) ? this.finalizeEdition(t) : i && t.onEdit({
1285
1298
  // data is the same
1286
1299
  updatedData: t.data,
1287
1300
  editType: "addTentativePosition",
@@ -1326,14 +1339,14 @@ class ds extends Qt {
1326
1339
  const n = this.getClickSequence();
1327
1340
  if (n.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
1328
1341
  e.modeConfig?.preventOverlappingLines) {
1329
- const r = {
1342
+ const s = {
1330
1343
  type: "LineString",
1331
1344
  coordinates: [...n, n[0]]
1332
1345
  }, o = {
1333
1346
  type: "LineString",
1334
1347
  coordinates: [...n.slice(0, n.length - 1)]
1335
1348
  };
1336
- un(r, o).features.length > 0 && (t = !0);
1349
+ un(s, o).features.length > 0 && (t = !0);
1337
1350
  }
1338
1351
  return t;
1339
1352
  }
@@ -1346,12 +1359,12 @@ class ds extends Qt {
1346
1359
  type: "FeatureCollection",
1347
1360
  features: []
1348
1361
  };
1349
- const r = this.getAddFeatureOrBooleanPolygonAction(n, e);
1350
- this._isMeasuringSessionFinished = !0, r && (this.resultPolygon = r.updatedData, e.onEdit({
1351
- ...r,
1352
- editType: re.addPosition,
1362
+ const s = this.getAddFeatureOrBooleanPolygonAction(n, e);
1363
+ this._isMeasuringSessionFinished = !0, s && (this.resultPolygon = s.updatedData, e.onEdit({
1364
+ ...s,
1365
+ editType: se.addPosition,
1353
1366
  editContext: {
1354
- ...r.editContext,
1367
+ ...s.editContext,
1355
1368
  distance: this.area,
1356
1369
  positions: this.getClickSequence(),
1357
1370
  finished: this._isMeasuringSessionFinished
@@ -1370,18 +1383,18 @@ class ds extends Qt {
1370
1383
  meters: e,
1371
1384
  locale: t,
1372
1385
  unit: n,
1373
- options: r
1386
+ options: s
1374
1387
  }) {
1375
1388
  return Ae({
1376
1389
  meters: e,
1377
1390
  locale: t,
1378
1391
  unit: n,
1379
- options: r,
1392
+ options: s,
1380
1393
  dimension: "area"
1381
1394
  });
1382
1395
  }
1383
1396
  }
1384
- class fs extends bt {
1397
+ class fr extends bt {
1385
1398
  _isMeasuringSessionFinished = !1;
1386
1399
  _currentArea = 0;
1387
1400
  resultPolygon = {
@@ -1417,7 +1430,7 @@ class fs extends bt {
1417
1430
  const n = this.getAddFeatureOrBooleanPolygonAction(t, e);
1418
1431
  this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"), n && (this.resultPolygon = n.updatedData, e.onEdit({
1419
1432
  ...n,
1420
- editType: re.addPosition,
1433
+ editType: se.addPosition,
1421
1434
  editContext: {
1422
1435
  ...n.editContext,
1423
1436
  distance: this._currentArea,
@@ -1444,13 +1457,13 @@ class fs extends bt {
1444
1457
  meters: e,
1445
1458
  locale: t,
1446
1459
  unit: n,
1447
- options: r
1460
+ options: s
1448
1461
  }) {
1449
1462
  return Ae({
1450
1463
  meters: e,
1451
1464
  locale: t,
1452
1465
  unit: n,
1453
- options: r,
1466
+ options: s,
1454
1467
  dimension: "area"
1455
1468
  });
1456
1469
  }
@@ -1460,7 +1473,7 @@ class Ft extends en {
1460
1473
  super.handleClick(e, t), t.onEdit({
1461
1474
  // data is the same
1462
1475
  updatedData: t.data,
1463
- editType: re.addPosition,
1476
+ editType: se.addPosition,
1464
1477
  editContext: {
1465
1478
  distance: this._currentDistance,
1466
1479
  finished: this._isMeasuringSessionFinished,
@@ -1473,8 +1486,8 @@ class Ft extends en {
1473
1486
  e.stopPropagation();
1474
1487
  const {
1475
1488
  key: n
1476
- } = e, r = this.getClickSequence().length;
1477
- let o = re.finish;
1489
+ } = e, s = this.getClickSequence().length;
1490
+ let o = se.finish;
1478
1491
  switch (n) {
1479
1492
  case "Escape":
1480
1493
  t.onEdit({
@@ -1482,12 +1495,12 @@ class Ft extends en {
1482
1495
  type: "FeatureCollection",
1483
1496
  features: []
1484
1497
  },
1485
- editType: re.cancel,
1498
+ editType: se.cancel,
1486
1499
  editContext: {}
1487
1500
  });
1488
1501
  break;
1489
1502
  case "Enter":
1490
- this._isMeasuringSessionFinished = !0, r === 1 && (this.resetClickSequence(), o = re.cancel), t.onUpdateCursor("cell"), t.onEdit({
1503
+ this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o = se.cancel), t.onUpdateCursor("cell"), t.onEdit({
1491
1504
  updatedData: t.data,
1492
1505
  editType: o,
1493
1506
  editContext: {
@@ -1504,17 +1517,17 @@ class Ft extends en {
1504
1517
  meters: e,
1505
1518
  locale: t,
1506
1519
  unit: n,
1507
- options: r
1520
+ options: s
1508
1521
  }) {
1509
1522
  return Ae({
1510
1523
  meters: e,
1511
1524
  locale: t,
1512
1525
  unit: n,
1513
- options: r
1526
+ options: s
1514
1527
  });
1515
1528
  }
1516
1529
  }
1517
- const fe = "mapMeasureLayer", ps = {
1530
+ const fe = "mapMeasureLayer", pr = {
1518
1531
  id: fe,
1519
1532
  pickable: !1,
1520
1533
  billboard: !1,
@@ -1568,7 +1581,7 @@ const fe = "mapMeasureLayer", ps = {
1568
1581
  "m-km": "m-km",
1569
1582
  "ft-mi": "ft-mi",
1570
1583
  ...H
1571
- }, ms = {
1584
+ }, mr = {
1572
1585
  meters: "meters",
1573
1586
  kilometer: "kilometers",
1574
1587
  mile: "miles"
@@ -1635,26 +1648,26 @@ const fe = "mapMeasureLayer", ps = {
1635
1648
  value: "feet",
1636
1649
  system: "imperial"
1637
1650
  }
1638
- }, lt = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet], ys = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet], hs = {
1651
+ }, lt = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet], yr = [ne["m-km"], ne.kilometer, ne.meter, ne["ft-mi"], ne.mile, ne.feet], hr = {
1639
1652
  distance: {
1640
1653
  value: "distance",
1641
1654
  mode: Ft
1642
1655
  },
1643
1656
  buffer: {
1644
1657
  value: "buffer",
1645
- mode: fs
1658
+ mode: fr
1646
1659
  },
1647
1660
  area: {
1648
1661
  value: "area",
1649
- mode: ds
1662
+ mode: dr
1650
1663
  }
1651
- }, gs = {
1664
+ }, gr = {
1652
1665
  distance: lt,
1653
1666
  buffer: lt,
1654
- area: ys
1655
- }, bs = [he, Pe, fe];
1656
- function Ss({
1657
- children: s,
1667
+ area: yr
1668
+ }, br = [he, Pe, fe];
1669
+ function Sr({
1670
+ children: r,
1658
1671
  mapId: e,
1659
1672
  defaultProps: {
1660
1673
  styles: t = $e.styles,
@@ -1663,10 +1676,10 @@ function Ss({
1663
1676
  styles: $e.styles,
1664
1677
  labels: $e.labels
1665
1678
  },
1666
- layerProps: r = {},
1679
+ layerProps: s = {},
1667
1680
  defaultType: o = "mask"
1668
1681
  }) {
1669
- const i = K((_) => _.data[e]?.enabled), a = K((_) => _.setEnabled), l = K((_) => _.data[e]?.values), d = K((_) => _.setValue), m = K((_) => _.data[e]?.modeInstance), g = K((_) => _.data[e]?.modeSelected), b = Se((_) => _.setLayer), f = x((_) => _.addLayers), M = x((_) => _.removeLayers), S = x(St((_) => _.maps[e]?.layers.filter((P) => !bs.includes(P)))), L = x((_) => _.getDeckInstance), u = ke({});
1682
+ const i = K((_) => _.data[e]?.enabled), a = K((_) => _.setEnabled), l = K((_) => _.data[e]?.values), d = K((_) => _.setValue), m = K((_) => _.data[e]?.modeInstance), g = K((_) => _.data[e]?.modeSelected), b = Se((_) => _.setLayer), f = x((_) => _.addLayers), M = x((_) => _.removeLayers), S = x(St((_) => _.maps[e]?.layers.filter((P) => !br.includes(P)))), L = x((_) => _.getDeckInstance), u = ke({});
1670
1683
  kt({
1671
1684
  mapId: e,
1672
1685
  layerId: he
@@ -1681,7 +1694,7 @@ function Ss({
1681
1694
  properties: _.properties,
1682
1695
  id: _.id
1683
1696
  }))
1684
- }), [p]), w = ge(() => p.filter((_) => _.properties.visible).map((_) => _.id), [p]), [v, k] = ue(h), [F, V] = ue([]), A = se(() => {
1697
+ }), [p]), w = ge(() => p.filter((_) => _.properties.visible).map((_) => _.id), [p]), [v, k] = ue(h), [F, V] = ue([]), A = re(() => {
1685
1698
  const _ = {
1686
1699
  ...h,
1687
1700
  features: h.features.filter((P) => P.properties?.visible)
@@ -1695,17 +1708,17 @@ function Ss({
1695
1708
  J(() => (f(e, [he]), () => {
1696
1709
  M(e, [he]);
1697
1710
  }), [f, e, M]);
1698
- const q = se(() => {
1711
+ const q = re(() => {
1699
1712
  A(), V([]), a(e, !1);
1700
- }, [e, A, a]), D = se(({
1713
+ }, [e, A, a]), R = re(({
1701
1714
  editType: _,
1702
1715
  updatedData: P
1703
1716
  }) => {
1704
- if (_ === re.cancel) {
1717
+ if (_ === se.cancel) {
1705
1718
  q();
1706
1719
  return;
1707
1720
  }
1708
- k(P), _ !== re.updateTentativeFeature && _ === re.addFeature && (g !== "edit" && ($.current = $.current + 1), P.features.forEach((c, y) => {
1721
+ k(P), _ !== se.updateTentativeFeature && _ === se.addFeature && (g !== "edit" && ($.current = $.current + 1), P.features.forEach((c, y) => {
1709
1722
  c.properties.label ??= `${n?.mask} ${$.current}`, c.properties.index = y, c.properties.visible = c.properties.visible ?? !0;
1710
1723
  const T = c.id ?? crypto.randomUUID();
1711
1724
  d(e, T, {
@@ -1724,9 +1737,9 @@ function Ss({
1724
1737
  } = t.colors.editing, {
1725
1738
  border: T,
1726
1739
  fill: O
1727
- } = t.colors.finished, C = ss({
1740
+ } = t.colors.finished, C = rr({
1728
1741
  layerProps: {
1729
- ...r.mask,
1742
+ ...s.mask,
1730
1743
  pickable: _,
1731
1744
  data: v,
1732
1745
  selectedFeatureIndexes: F,
@@ -1744,11 +1757,11 @@ function Ss({
1744
1757
  fill: c,
1745
1758
  outline: P
1746
1759
  },
1747
- onEdit: D,
1760
+ onEdit: R,
1748
1761
  mode: _ ? m : new tn()
1749
1762
  });
1750
1763
  b(he, C);
1751
- }, [v, i, r.mask, w, m, D, F, b, t.colors.editing, t.colors.finished]), J(() => {
1764
+ }, [v, i, s.mask, w, m, R, F, b, t.colors.editing, t.colors.finished]), J(() => {
1752
1765
  const _ = {
1753
1766
  ...Te,
1754
1767
  data: h,
@@ -1772,37 +1785,37 @@ function Ss({
1772
1785
  b(_, {
1773
1786
  props: {
1774
1787
  pickable: c,
1775
- extensions: [new sn()],
1788
+ extensions: [new rn()],
1776
1789
  maskId: !i && w.length ? Pe : void 0
1777
1790
  }
1778
1791
  });
1779
1792
  });
1780
- }, [i, L, e, S, w.length, b]), s;
1793
+ }, [i, L, e, S, w.length, b]), r;
1781
1794
  }
1782
- Ss.Controls = as;
1783
- function vs({
1784
- mode: s,
1795
+ Sr.Controls = ar;
1796
+ function vr({
1797
+ mode: r,
1785
1798
  ...e
1786
1799
  }) {
1787
- const t = ws({
1788
- mode: s,
1800
+ const t = wr({
1801
+ mode: r,
1789
1802
  ...e
1790
1803
  });
1791
1804
  return {
1792
1805
  type: Ct,
1793
1806
  props: {
1794
1807
  ...t,
1795
- mode: s,
1808
+ mode: r,
1796
1809
  data: []
1797
1810
  }
1798
1811
  };
1799
1812
  }
1800
- function ws({
1801
- mode: s,
1813
+ function wr({
1814
+ mode: r,
1802
1815
  layerProps: e,
1803
1816
  locale: t,
1804
1817
  enabled: n,
1805
- unit: r,
1818
+ unit: s,
1806
1819
  onEdit: o,
1807
1820
  guideColor: i,
1808
1821
  pointColor: a,
@@ -1815,7 +1828,7 @@ function ws({
1815
1828
  // We force distance due to conversion is addressed at feature getText level
1816
1829
  formatTooltip: (b) => b,
1817
1830
  turfOptions: {
1818
- units: ms.meters
1831
+ units: mr.meters
1819
1832
  }
1820
1833
  },
1821
1834
  ...n && {
@@ -1830,18 +1843,18 @@ function ws({
1830
1843
  // needed for the outlineWidth and outlineColor attributes to be effective
1831
1844
  smoothing: 0.2
1832
1845
  },
1833
- getText: (b) => s?.getTooltipText?.({
1846
+ getText: (b) => r?.getTooltipText?.({
1834
1847
  meters: b.text,
1835
1848
  locale: t,
1836
- unit: r,
1849
+ unit: s,
1837
1850
  options: l
1838
1851
  }),
1839
1852
  updateTriggers: {
1840
- getText: [r, t, l]
1853
+ getText: [s, t, l]
1841
1854
  }
1842
1855
  }
1843
1856
  }
1844
- }), m = me(ps, {
1857
+ }), m = me(pr, {
1845
1858
  _subLayerProps: {
1846
1859
  guides: {
1847
1860
  getLineColor: i,
@@ -1853,13 +1866,13 @@ function ws({
1853
1866
  });
1854
1867
  return me(m, d);
1855
1868
  }
1856
- const Ms = (s) => Ze()((e) => ({
1857
- measurements: s.reduce((n, r) => {
1869
+ const Mr = (r) => Ze()((e) => ({
1870
+ measurements: r.reduce((n, s) => {
1858
1871
  const {
1859
1872
  mapId: o,
1860
1873
  modeSelected: i,
1861
- modes: a = hs,
1862
- units: l = gs,
1874
+ modes: a = hr,
1875
+ units: l = gr,
1863
1876
  distance: d = 0,
1864
1877
  finished: m = !1,
1865
1878
  locale: g = "en",
@@ -1867,7 +1880,7 @@ const Ms = (s) => Ze()((e) => ({
1867
1880
  clearLayerOnStart: f = !1,
1868
1881
  unit: M = je["m-km"],
1869
1882
  enabled: S = !1
1870
- } = r;
1883
+ } = s;
1871
1884
  return n[o] = {
1872
1885
  modes: a,
1873
1886
  units: l,
@@ -1882,174 +1895,174 @@ const Ms = (s) => Ze()((e) => ({
1882
1895
  }, n;
1883
1896
  }, {}),
1884
1897
  mode: Ft,
1885
- setModeInstance: (n, r) => {
1898
+ setModeInstance: (n, s) => {
1886
1899
  e((o) => ({
1887
1900
  measurements: {
1888
1901
  ...o.measurements,
1889
1902
  [n]: {
1890
1903
  ...o.measurements[n],
1891
- modeInstance: r
1904
+ modeInstance: s
1892
1905
  }
1893
1906
  }
1894
1907
  }));
1895
1908
  },
1896
- setModeSelected: (n, r) => {
1909
+ setModeSelected: (n, s) => {
1897
1910
  e((o) => ({
1898
1911
  measurements: {
1899
1912
  ...o.measurements,
1900
1913
  [n]: {
1901
1914
  ...o.measurements[n],
1902
- modeSelected: r
1915
+ modeSelected: s
1903
1916
  }
1904
1917
  }
1905
1918
  }));
1906
1919
  },
1907
- setFinished: (n, r) => {
1920
+ setFinished: (n, s) => {
1908
1921
  e((o) => ({
1909
1922
  measurements: {
1910
1923
  ...o.measurements,
1911
1924
  [n]: {
1912
1925
  ...o.measurements[n],
1913
- finished: r
1926
+ finished: s
1914
1927
  }
1915
1928
  }
1916
1929
  }));
1917
1930
  },
1918
- setDistance: (n, r) => {
1931
+ setDistance: (n, s) => {
1919
1932
  e((o) => ({
1920
1933
  measurements: {
1921
1934
  ...o.measurements,
1922
1935
  [n]: {
1923
1936
  ...o.measurements[n],
1924
- distance: r
1937
+ distance: s
1925
1938
  }
1926
1939
  }
1927
1940
  }));
1928
1941
  },
1929
- setUnit: (n, r) => {
1942
+ setUnit: (n, s) => {
1930
1943
  e((o) => ({
1931
1944
  measurements: {
1932
1945
  ...o.measurements,
1933
1946
  [n]: {
1934
1947
  ...o.measurements[n],
1935
- unit: r
1948
+ unit: s
1936
1949
  }
1937
1950
  }
1938
1951
  }));
1939
1952
  },
1940
- setLocale: (n, r) => {
1953
+ setLocale: (n, s) => {
1941
1954
  e((o) => ({
1942
1955
  measurements: {
1943
1956
  ...o.measurements,
1944
1957
  [n]: {
1945
1958
  ...o.measurements[n],
1946
- locale: r
1959
+ locale: s
1947
1960
  }
1948
1961
  }
1949
1962
  }));
1950
1963
  },
1951
- setPositions: (n, r) => {
1964
+ setPositions: (n, s) => {
1952
1965
  e((o) => ({
1953
1966
  measurements: {
1954
1967
  ...o.measurements,
1955
1968
  [n]: {
1956
1969
  ...o.measurements[n],
1957
- positions: [...r]
1970
+ positions: [...s]
1958
1971
  }
1959
1972
  }
1960
1973
  }));
1961
1974
  },
1962
- setEnabled: (n, r) => {
1975
+ setEnabled: (n, s) => {
1963
1976
  e((o) => ({
1964
1977
  measurements: {
1965
1978
  ...o.measurements,
1966
1979
  [n]: {
1967
1980
  ...o.measurements[n],
1968
- enabled: r
1981
+ enabled: s
1969
1982
  }
1970
1983
  }
1971
1984
  }));
1972
1985
  }
1973
- })), Dt = Ne({});
1974
- function _s(s) {
1986
+ })), Rt = Ne({});
1987
+ function _r(r) {
1975
1988
  const e = B(5), {
1976
1989
  children: t,
1977
1990
  values: n
1978
- } = s;
1979
- let r;
1980
- e[0] !== n ? (r = Ms(n), e[0] = n, e[1] = r) : r = e[1];
1981
- const [o] = ue(r);
1991
+ } = r;
1992
+ let s;
1993
+ e[0] !== n ? (s = Mr(n), e[0] = n, e[1] = s) : s = e[1];
1994
+ const [o] = ue(s);
1982
1995
  let i;
1983
- return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Dt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1996
+ return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ G(Rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1984
1997
  }
1985
- function z(s) {
1986
- const e = He(Dt);
1998
+ function z(r) {
1999
+ const e = He(Rt);
1987
2000
  if (!Object.keys(e).length)
1988
2001
  throw new Error("Missing MeasurementToolsProvider in the tree");
1989
- return ze(e, s);
2002
+ return ze(e, r);
1990
2003
  }
1991
- function Rt(s) {
2004
+ function Dt(r) {
1992
2005
  const e = B(74), {
1993
2006
  mapId: t
1994
- } = s;
2007
+ } = r;
1995
2008
  let n;
1996
- e[0] !== t ? (n = (R) => R.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
1997
- const r = z(n);
2009
+ e[0] !== t ? (n = (D) => D.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
2010
+ const s = z(n);
1998
2011
  let o;
1999
- e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
2012
+ e[2] !== t ? (o = (D) => D.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
2000
2013
  const i = z(o);
2001
2014
  let a;
2002
- e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
2003
- const l = z(a), d = z(As);
2015
+ e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
2016
+ const l = z(a), d = z(Ar);
2004
2017
  let m;
2005
- e[6] !== d || e[7] !== t ? (m = (R) => d(t, R), e[6] = d, e[7] = t, e[8] = m) : m = e[8];
2018
+ e[6] !== d || e[7] !== t ? (m = (D) => d(t, D), e[6] = d, e[7] = t, e[8] = m) : m = e[8];
2006
2019
  const g = m;
2007
2020
  let b;
2008
- e[9] !== t ? (b = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = b) : b = e[10];
2021
+ e[9] !== t ? (b = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = b) : b = e[10];
2009
2022
  const f = z(b);
2010
2023
  let M;
2011
- e[11] !== t ? (M = (R) => R.measurements[t].enabled, e[11] = t, e[12] = M) : M = e[12];
2012
- const S = z(M), L = z(Ps);
2024
+ e[11] !== t ? (M = (D) => D.measurements[t].enabled, e[11] = t, e[12] = M) : M = e[12];
2025
+ const S = z(M), L = z(Pr);
2013
2026
  let u;
2014
- e[13] !== L || e[14] !== t ? (u = (R) => L(t, R), e[13] = L, e[14] = t, e[15] = u) : u = e[15];
2027
+ e[13] !== L || e[14] !== t ? (u = (D) => L(t, D), e[13] = L, e[14] = t, e[15] = u) : u = e[15];
2015
2028
  const p = u;
2016
2029
  let h;
2017
- e[16] !== t ? (h = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = h) : h = e[17];
2018
- const w = z(h), v = z(Os);
2030
+ e[16] !== t ? (h = (D) => D.measurements[t].modeSelected, e[16] = t, e[17] = h) : h = e[17];
2031
+ const w = z(h), v = z(Or);
2019
2032
  let k;
2020
- e[18] !== v || e[19] !== t || e[20] !== p ? (k = (R) => {
2021
- p(!!R), v(t, R);
2033
+ e[18] !== v || e[19] !== t || e[20] !== p ? (k = (D) => {
2034
+ p(!!D), v(t, D);
2022
2035
  }, e[18] = v, e[19] = t, e[20] = p, e[21] = k) : k = e[21];
2023
2036
  const F = k;
2024
2037
  let V;
2025
- e[22] !== t ? (V = (R) => R.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
2026
- const A = z(V), $ = z(Cs);
2038
+ e[22] !== t ? (V = (D) => D.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
2039
+ const A = z(V), $ = z(Cr);
2027
2040
  let q;
2028
- e[24] !== $ || e[25] !== t ? (q = (R) => $(t, R), e[24] = $, e[25] = t, e[26] = q) : q = e[26];
2029
- const D = q;
2041
+ e[24] !== $ || e[25] !== t ? (q = (D) => $(t, D), e[24] = $, e[25] = t, e[26] = q) : q = e[26];
2042
+ const R = q;
2030
2043
  let _;
2031
- e[27] !== t ? (_ = (R) => R.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
2032
- const P = z(_), c = z(ks);
2044
+ e[27] !== t ? (_ = (D) => D.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
2045
+ const P = z(_), c = z(kr);
2033
2046
  let y;
2034
- e[29] !== c || e[30] !== t ? (y = (R) => c(t, R), e[29] = c, e[30] = t, e[31] = y) : y = e[31];
2047
+ e[29] !== c || e[30] !== t ? (y = (D) => c(t, D), e[29] = c, e[30] = t, e[31] = y) : y = e[31];
2035
2048
  const T = y;
2036
2049
  let O;
2037
- e[32] !== t ? (O = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = O) : O = e[33];
2038
- const C = z(O), E = z(Ls);
2050
+ e[32] !== t ? (O = (D) => D.measurements[t].modeInstance, e[32] = t, e[33] = O) : O = e[33];
2051
+ const C = z(O), E = z(Lr);
2039
2052
  let j;
2040
- e[34] !== E || e[35] !== t ? (j = (R) => E(t, R), e[34] = E, e[35] = t, e[36] = j) : j = e[36];
2053
+ e[34] !== E || e[35] !== t ? (j = (D) => E(t, D), e[34] = E, e[35] = t, e[36] = j) : j = e[36];
2041
2054
  const I = j;
2042
2055
  let N;
2043
- e[37] !== t ? (N = (R) => R.measurements[t].positions, e[37] = t, e[38] = N) : N = e[38];
2044
- const U = z(N), Z = z(Ts);
2056
+ e[37] !== t ? (N = (D) => D.measurements[t].positions, e[37] = t, e[38] = N) : N = e[38];
2057
+ const U = z(N), Z = z(Tr);
2045
2058
  let oe;
2046
- e[39] !== Z || e[40] !== t ? (oe = (R) => Z(t, R), e[39] = Z, e[40] = t, e[41] = oe) : oe = e[41];
2059
+ e[39] !== Z || e[40] !== t ? (oe = (D) => Z(t, D), e[39] = Z, e[40] = t, e[41] = oe) : oe = e[41];
2047
2060
  const Q = oe;
2048
2061
  let le;
2049
- e[42] !== t ? (le = (R) => R.measurements[t].unit, e[42] = t, e[43] = le) : le = e[43];
2050
- const X = z(le), te = z(Es);
2062
+ e[42] !== t ? (le = (D) => D.measurements[t].unit, e[42] = t, e[43] = le) : le = e[43];
2063
+ const X = z(le), te = z(Er);
2051
2064
  let Y;
2052
- e[44] !== te || e[45] !== t ? (Y = (R) => te(t, R), e[44] = te, e[45] = t, e[46] = Y) : Y = e[46];
2065
+ e[44] !== te || e[45] !== t ? (Y = (D) => te(t, D), e[44] = te, e[45] = t, e[46] = Y) : Y = e[46];
2053
2066
  const W = Y;
2054
2067
  let ee;
2055
2068
  e[47] !== C || e[48] !== Q ? (ee = () => {
@@ -2057,13 +2070,13 @@ function Rt(s) {
2057
2070
  }, e[47] = C, e[48] = Q, e[49] = ee) : ee = e[49];
2058
2071
  const ie = ee;
2059
2072
  let Me;
2060
- e[50] !== p ? (Me = (R) => {
2061
- p(R);
2073
+ e[50] !== p ? (Me = (D) => {
2074
+ p(D);
2062
2075
  }, e[50] = p, e[51] = Me) : Me = e[51];
2063
2076
  const Fe = Me;
2064
2077
  let _e;
2065
- return e[52] !== ie || e[53] !== f || e[54] !== l || e[55] !== S || e[56] !== A || e[57] !== P || e[58] !== C || e[59] !== w || e[60] !== r || e[61] !== U || e[62] !== g || e[63] !== p || e[64] !== D || e[65] !== T || e[66] !== I || e[67] !== F || e[68] !== Q || e[69] !== W || e[70] !== Fe || e[71] !== X || e[72] !== i ? (_e = {
2066
- modes: r,
2078
+ return e[52] !== ie || e[53] !== f || e[54] !== l || e[55] !== S || e[56] !== A || e[57] !== P || e[58] !== C || e[59] !== w || e[60] !== s || e[61] !== U || e[62] !== g || e[63] !== p || e[64] !== R || e[65] !== T || e[66] !== I || e[67] !== F || e[68] !== Q || e[69] !== W || e[70] !== Fe || e[71] !== X || e[72] !== i ? (_e = {
2079
+ modes: s,
2067
2080
  units: i,
2068
2081
  distance: l,
2069
2082
  clearLayerOnStart: f,
@@ -2076,7 +2089,7 @@ function Rt(s) {
2076
2089
  unit: X,
2077
2090
  setDistance: g,
2078
2091
  setModeSelected: F,
2079
- setFinished: D,
2092
+ setFinished: R,
2080
2093
  setLocale: T,
2081
2094
  setPositions: Q,
2082
2095
  setUnit: W,
@@ -2084,38 +2097,38 @@ function Rt(s) {
2084
2097
  toggleLayer: Fe,
2085
2098
  clearLayer: ie,
2086
2099
  setModeInstance: I
2087
- }, e[52] = ie, e[53] = f, e[54] = l, e[55] = S, e[56] = A, e[57] = P, e[58] = C, e[59] = w, e[60] = r, e[61] = U, e[62] = g, e[63] = p, e[64] = D, e[65] = T, e[66] = I, e[67] = F, e[68] = Q, e[69] = W, e[70] = Fe, e[71] = X, e[72] = i, e[73] = _e) : _e = e[73], _e;
2100
+ }, e[52] = ie, e[53] = f, e[54] = l, e[55] = S, e[56] = A, e[57] = P, e[58] = C, e[59] = w, e[60] = s, e[61] = U, e[62] = g, e[63] = p, e[64] = R, e[65] = T, e[66] = I, e[67] = F, e[68] = Q, e[69] = W, e[70] = Fe, e[71] = X, e[72] = i, e[73] = _e) : _e = e[73], _e;
2088
2101
  }
2089
- function Es(s) {
2090
- return s.setUnit;
2102
+ function Er(r) {
2103
+ return r.setUnit;
2091
2104
  }
2092
- function Ts(s) {
2093
- return s.setPositions;
2105
+ function Tr(r) {
2106
+ return r.setPositions;
2094
2107
  }
2095
- function Ls(s) {
2096
- return s.setModeInstance;
2108
+ function Lr(r) {
2109
+ return r.setModeInstance;
2097
2110
  }
2098
- function ks(s) {
2099
- return s.setLocale;
2111
+ function kr(r) {
2112
+ return r.setLocale;
2100
2113
  }
2101
- function Cs(s) {
2102
- return s.setFinished;
2114
+ function Cr(r) {
2115
+ return r.setFinished;
2103
2116
  }
2104
- function Os(s) {
2105
- return s.setModeSelected;
2117
+ function Or(r) {
2118
+ return r.setModeSelected;
2106
2119
  }
2107
- function Ps(s) {
2108
- return s.setEnabled;
2120
+ function Pr(r) {
2121
+ return r.setEnabled;
2109
2122
  }
2110
- function As(s) {
2111
- return s.setDistance;
2123
+ function Ar(r) {
2124
+ return r.setDistance;
2112
2125
  }
2113
- function Fs(s) {
2126
+ function Fr(r) {
2114
2127
  const e = B(42), {
2115
2128
  mapId: t,
2116
2129
  textOptions: n,
2117
- children: r
2118
- } = s;
2130
+ children: s
2131
+ } = r;
2119
2132
  let o;
2120
2133
  e[0] !== t ? (o = {
2121
2134
  mapId: t
@@ -2142,7 +2155,7 @@ function Fs(s) {
2142
2155
  setUnit: V,
2143
2156
  clearLayer: A,
2144
2157
  toggleLayer: $
2145
- } = Rt(o);
2158
+ } = Dt(o);
2146
2159
  let q;
2147
2160
  e[2] !== g || e[3] !== i || e[4] !== w || e[5] !== k ? (q = () => {
2148
2161
  if (g && i[g]) {
@@ -2153,15 +2166,15 @@ function Fs(s) {
2153
2166
  k([]);
2154
2167
  };
2155
2168
  }, e[2] = g, e[3] = i, e[4] = w, e[5] = k, e[6] = q) : q = e[6];
2156
- let D;
2157
- e[7] !== g || e[8] !== i || e[9] !== M || e[10] !== w || e[11] !== k ? (D = [i, g, k, w, M], e[7] = g, e[8] = i, e[9] = M, e[10] = w, e[11] = k, e[12] = D) : D = e[12], J(q, D);
2169
+ let R;
2170
+ e[7] !== g || e[8] !== i || e[9] !== M || e[10] !== w || e[11] !== k ? (R = [i, g, k, w, M], e[7] = g, e[8] = i, e[9] = M, e[10] = w, e[11] = k, e[12] = R) : R = e[12], J(q, R);
2158
2171
  let _;
2159
2172
  e[13] !== $ || e[14] !== A || e[15] !== m || e[16] !== S ? (_ = (T) => {
2160
2173
  T && (m || !S) && A(), $(T);
2161
2174
  }, e[13] = $, e[14] = A, e[15] = m, e[16] = S, e[17] = _) : _ = e[17];
2162
2175
  const P = _, c = !!m;
2163
2176
  let y;
2164
- return e[18] !== r || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !== h || e[26] !== g || e[27] !== i || e[28] !== v || e[29] !== d || e[30] !== M || e[31] !== L || e[32] !== p || e[33] !== b || e[34] !== k || e[35] !== V || e[36] !== c || e[37] !== n || e[38] !== P || e[39] !== F || e[40] !== a ? (y = r({
2177
+ return e[18] !== s || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !== h || e[26] !== g || e[27] !== i || e[28] !== v || e[29] !== d || e[30] !== M || e[31] !== L || e[32] !== p || e[33] !== b || e[34] !== k || e[35] !== V || e[36] !== c || e[37] !== n || e[38] !== P || e[39] !== F || e[40] !== a ? (y = s({
2165
2178
  mapId: t,
2166
2179
  distance: l,
2167
2180
  enabled: f,
@@ -2189,21 +2202,21 @@ function Fs(s) {
2189
2202
  setEnabled: M,
2190
2203
  toggleLayer: P,
2191
2204
  clearLayer: A
2192
- }), e[18] = r, e[19] = A, e[20] = l, e[21] = f, e[22] = S, e[23] = u, e[24] = t, e[25] = h, e[26] = g, e[27] = i, e[28] = v, e[29] = d, e[30] = M, e[31] = L, e[32] = p, e[33] = b, e[34] = k, e[35] = V, e[36] = c, e[37] = n, e[38] = P, e[39] = F, e[40] = a, e[41] = y) : y = e[41], y;
2205
+ }), e[18] = s, e[19] = A, e[20] = l, e[21] = f, e[22] = S, e[23] = u, e[24] = t, e[25] = h, e[26] = g, e[27] = i, e[28] = v, e[29] = d, e[30] = M, e[31] = L, e[32] = p, e[33] = b, e[34] = k, e[35] = V, e[36] = c, e[37] = n, e[38] = P, e[39] = F, e[40] = a, e[41] = y) : y = e[41], y;
2193
2206
  }
2194
- const Ds = [fe];
2195
- function Rs(s) {
2207
+ const Rr = [fe];
2208
+ function Dr(r) {
2196
2209
  const e = B(50), {
2197
2210
  children: t,
2198
2211
  mapId: n,
2199
- defaultProps: r,
2212
+ defaultProps: s,
2200
2213
  layerProps: o,
2201
2214
  textOptions: i
2202
- } = s;
2215
+ } = r;
2203
2216
  let a;
2204
- e[0] !== r ? (a = r === void 0 ? {
2217
+ e[0] !== s ? (a = s === void 0 ? {
2205
2218
  styles: ot.styles
2206
- } : r, e[0] = r, e[1] = a) : a = e[1];
2219
+ } : s, e[0] = s, e[1] = a) : a = e[1];
2207
2220
  const {
2208
2221
  styles: l
2209
2222
  } = a, d = l === void 0 ? ot.styles : l;
@@ -2221,13 +2234,13 @@ function Rs(s) {
2221
2234
  setPositions: u,
2222
2235
  unit: p,
2223
2236
  modeInstance: h
2224
- } = Rt(m), w = Se(Bs), v = x(qs), k = x(Vs), F = x(Us);
2237
+ } = Dt(m), w = Se(Br), v = x(qr), k = x(Vr), F = x(Ur);
2225
2238
  let V;
2226
- e[4] !== n ? (V = (I) => I.maps[n]?.layers.filter($s), e[4] = n, e[5] = V) : V = e[5];
2227
- const A = x(St(V)), $ = x(xs);
2239
+ e[4] !== n ? (V = (I) => I.maps[n]?.layers.filter($r), e[4] = n, e[5] = V) : V = e[5];
2240
+ const A = x(St(V)), $ = x(xr);
2228
2241
  let q;
2229
2242
  e[6] === Symbol.for("react.memo_cache_sentinel") ? (q = {}, e[6] = q) : q = e[6];
2230
- const D = ke(q);
2243
+ const R = ke(q);
2231
2244
  let _;
2232
2245
  e[7] !== n ? (_ = {
2233
2246
  mapId: n,
@@ -2250,8 +2263,8 @@ function Rs(s) {
2250
2263
  const N = $(n)?.props.layers.find((Z) => Z.props.id === I);
2251
2264
  if (!N)
2252
2265
  return;
2253
- f && (D.current[I] = N?.props.pickable);
2254
- const U = !f && (D.current[I] ?? N?.props.pickable);
2266
+ f && (R.current[I] = N?.props.pickable);
2267
+ const U = !f && (R.current[I] ?? N?.props.pickable);
2255
2268
  w(I, {
2256
2269
  props: {
2257
2270
  pickable: U
@@ -2265,18 +2278,18 @@ function Rs(s) {
2265
2278
  editType: N,
2266
2279
  editContext: U
2267
2280
  } = I;
2268
- if (N === re.cancel) {
2281
+ if (N === se.cancel) {
2269
2282
  h.resetClickSequence();
2270
2283
  return;
2271
2284
  }
2272
- N === re.addPosition && g(U.distance), S(!!U.finished);
2285
+ N === se.addPosition && g(U.distance), S(!!U.finished);
2273
2286
  const Z = U.positions;
2274
2287
  Z?.length && u(Z);
2275
2288
  }, e[31] = h, e[32] = g, e[33] = S, e[34] = u, e[35] = O) : O = e[35];
2276
2289
  const C = O;
2277
2290
  let E, j;
2278
2291
  return e[36] !== f || e[37] !== M || e[38] !== o || e[39] !== L || e[40] !== h || e[41] !== C || e[42] !== w || e[43] !== d.colors.editing || e[44] !== d.colors.finished || e[45] !== d.colors.point || e[46] !== i || e[47] !== p ? (E = () => {
2279
- const I = M ? d.colors.finished : d.colors.editing, N = M ? d.colors.finished : d.colors.point, U = vs({
2292
+ const I = M ? d.colors.finished : d.colors.editing, N = M ? d.colors.finished : d.colors.point, U = vr({
2280
2293
  layerProps: {
2281
2294
  ...o,
2282
2295
  pickable: o?.pickable ?? !M
@@ -2293,63 +2306,63 @@ function Rs(s) {
2293
2306
  w(fe, U);
2294
2307
  }, j = [M, h, o, L, C, w, d.colors.editing, d.colors.finished, d.colors.point, i, p, f], e[36] = f, e[37] = M, e[38] = o, e[39] = L, e[40] = h, e[41] = C, e[42] = w, e[43] = d.colors.editing, e[44] = d.colors.finished, e[45] = d.colors.point, e[46] = i, e[47] = p, e[48] = E, e[49] = j) : (E = e[48], j = e[49]), J(E, j), t;
2295
2308
  }
2296
- function xs(s) {
2297
- return s.getDeckInstance;
2309
+ function xr(r) {
2310
+ return r.getDeckInstance;
2298
2311
  }
2299
- function $s(s) {
2300
- return !Ds.includes(s);
2312
+ function $r(r) {
2313
+ return !Rr.includes(r);
2301
2314
  }
2302
- function Us(s) {
2303
- return s.removeLayers;
2315
+ function Ur(r) {
2316
+ return r.removeLayers;
2304
2317
  }
2305
- function Vs(s) {
2306
- return s.addLayers;
2318
+ function Vr(r) {
2319
+ return r.addLayers;
2307
2320
  }
2308
- function qs(s) {
2309
- return s.setController;
2321
+ function qr(r) {
2322
+ return r.setController;
2310
2323
  }
2311
- function Bs(s) {
2312
- return s.setLayer;
2324
+ function Br(r) {
2325
+ return r.setLayer;
2313
2326
  }
2314
- Rs.Controls = Fs;
2315
- function js(s) {
2327
+ Dr.Controls = Fr;
2328
+ function jr(r) {
2316
2329
  const e = B(7), {
2317
2330
  mapId: t
2318
- } = s;
2331
+ } = r;
2319
2332
  let n;
2320
2333
  e[0] !== t ? (n = (l) => l.maps[t], e[0] = t, e[1] = n) : n = e[1];
2321
2334
  const {
2322
- layers: r
2323
- } = x(n), o = Se(Ns);
2335
+ layers: s
2336
+ } = x(n), o = Se(Nr);
2324
2337
  let i;
2325
- if (e[2] !== o || e[3] !== r) {
2338
+ if (e[2] !== o || e[3] !== s) {
2326
2339
  let l;
2327
- e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = r.map(l).filter(Is), e[2] = o, e[3] = r, e[4] = i;
2340
+ e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = s.map(l).filter(Ir), e[2] = o, e[3] = s, e[4] = i;
2328
2341
  } else
2329
2342
  i = e[4];
2330
2343
  return i;
2331
2344
  }
2332
- function Is(s) {
2333
- return !!s;
2345
+ function Ir(r) {
2346
+ return !!r;
2334
2347
  }
2335
- function Ns(s) {
2336
- return s.layers;
2348
+ function Nr(r) {
2349
+ return r.layers;
2337
2350
  }
2338
2351
  const ct = [Pe, he, fe];
2339
- function xt(s) {
2340
- const e = s.filter((n) => !ct.includes(n.props.id)).sort((n, r) => (n.order ?? 1 / 0) - (r.order ?? 1 / 0)), t = ct.map((n) => s.find((r) => r.props.id === n)).filter((n) => !!n);
2352
+ function xt(r) {
2353
+ const e = r.filter((n) => !ct.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = ct.map((n) => r.find((s) => s.props.id === n)).filter((n) => !!n);
2341
2354
  return [...e, ...t];
2342
2355
  }
2343
- const Hs = 200;
2344
- function fo(s) {
2356
+ const Hr = 200;
2357
+ function fo(r) {
2345
2358
  const e = B(51);
2346
- let t, n, r, o;
2347
- e[0] !== s ? ({
2359
+ let t, n, s, o;
2360
+ e[0] !== r ? ({
2348
2361
  id: t,
2349
2362
  onLoad: n,
2350
- onViewStateChange: r,
2363
+ onViewStateChange: s,
2351
2364
  ...o
2352
- } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = o) : (t = e[1], n = e[2], r = e[3], o = e[4]);
2365
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
2353
2366
  let i;
2354
2367
  e[5] !== t ? (i = (E) => E.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
2355
2368
  const a = x(i);
@@ -2364,35 +2377,35 @@ function fo(s) {
2364
2377
  const M = x(f);
2365
2378
  let S;
2366
2379
  e[13] !== t ? (S = (E) => E.maps[t].controller, e[13] = t, e[14] = S) : S = e[14];
2367
- const L = x(S), u = x(Ys), p = x(Ks), h = x(Ws), w = x(Gs), v = x(zs);
2380
+ const L = x(S), u = x(Yr), p = x(Kr), h = x(Wr), w = x(Gr), v = x(zr);
2368
2381
  let k;
2369
2382
  e[15] !== t ? (k = {
2370
2383
  mapId: t
2371
2384
  }, e[15] = t, e[16] = k) : k = e[16];
2372
- const F = js(k);
2385
+ const F = jr(k);
2373
2386
  let V;
2374
2387
  e[17] !== F ? (V = xt(F), e[17] = F, e[18] = V) : V = e[18];
2375
2388
  const A = V;
2376
2389
  let $;
2377
- e[19] !== t || e[20] !== r || e[21] !== p || e[22] !== v ? ($ = (E) => {
2390
+ e[19] !== t || e[20] !== s || e[21] !== p || e[22] !== v ? ($ = (E) => {
2378
2391
  const j = p;
2379
2392
  if (b.current && clearInterval(b.current), b.current = setTimeout(() => {
2380
2393
  v(t);
2381
- }, Hs), r) {
2382
- r(E, j);
2394
+ }, Hr), s) {
2395
+ s(E, j);
2383
2396
  return;
2384
2397
  }
2385
2398
  j(t, E.viewState);
2386
- }, e[19] = t, e[20] = r, e[21] = p, e[22] = v, e[23] = $) : $ = e[23];
2399
+ }, e[19] = t, e[20] = s, e[21] = p, e[22] = v, e[23] = $) : $ = e[23];
2387
2400
  const q = $;
2388
- let D;
2389
- e[24] !== t || e[25] !== n || e[26] !== h || e[27] !== v ? (D = (E) => {
2401
+ let R;
2402
+ e[24] !== t || e[25] !== n || e[26] !== h || e[27] !== v ? (R = (E) => {
2390
2403
  h(t, E), n?.(E), v(t);
2391
- }, e[24] = t, e[25] = n, e[26] = h, e[27] = v, e[28] = D) : D = e[28];
2392
- const _ = D;
2404
+ }, e[24] = t, e[25] = n, e[26] = h, e[27] = v, e[28] = R) : R = e[28];
2405
+ const _ = R;
2393
2406
  let P;
2394
2407
  e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== w ? (P = (E) => {
2395
- const I = !!u(t)?.props.layers?.every(Zs);
2408
+ const I = !!u(t)?.props.layers?.every(Zr);
2396
2409
  w(t, I), o.onAfterRender?.(E);
2397
2410
  }, e[29] = u, e[30] = t, e[31] = o, e[32] = w, e[33] = P) : P = e[33];
2398
2411
  const c = P, y = o.onDragEnd;
@@ -2405,27 +2418,27 @@ function fo(s) {
2405
2418
  let C;
2406
2419
  return e[38] !== a || e[39] !== A || e[40] !== L || e[41] !== c || e[42] !== O || e[43] !== _ || e[44] !== q || e[45] !== t || e[46] !== d || e[47] !== g || e[48] !== o || e[49] !== M ? (C = /* @__PURE__ */ G($n, { ...o, controller: L, id: t, layers: A, instanceRef: d, overlayRef: g, basemap: a, initialViewState: M, onLoad: _, onViewStateChange: q, onAfterRender: c, onDragEnd: O }), e[38] = a, e[39] = A, e[40] = L, e[41] = c, e[42] = O, e[43] = _, e[44] = q, e[45] = t, e[46] = d, e[47] = g, e[48] = o, e[49] = M, e[50] = C) : C = e[50], C;
2407
2420
  }
2408
- function Zs(s) {
2409
- return s?.isLoaded;
2421
+ function Zr(r) {
2422
+ return r?.isLoaded;
2410
2423
  }
2411
- function zs(s) {
2412
- return s.updateViewPort;
2424
+ function zr(r) {
2425
+ return r.updateViewPort;
2413
2426
  }
2414
- function Gs(s) {
2415
- return s.setLayersLoad;
2427
+ function Gr(r) {
2428
+ return r.setLayersLoad;
2416
2429
  }
2417
- function Ws(s) {
2418
- return s.setLoad;
2430
+ function Wr(r) {
2431
+ return r.setLoad;
2419
2432
  }
2420
- function Ks(s) {
2421
- return s.setViewState;
2433
+ function Kr(r) {
2434
+ return r.setViewState;
2422
2435
  }
2423
- function Ys(s) {
2424
- return s.getDeckInstance;
2436
+ function Yr(r) {
2437
+ return r.getDeckInstance;
2425
2438
  }
2426
2439
  var Le = { exports: {} }, ut;
2427
- function Js() {
2428
- return ut || (ut = 1, (function(s, e) {
2440
+ function Jr() {
2441
+ return ut || (ut = 1, (function(r, e) {
2429
2442
  var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, n = (function() {
2430
2443
  function o() {
2431
2444
  this.fetch = !1, this.DOMException = t.DOMException;
@@ -2669,29 +2682,29 @@ function Js() {
2669
2682
  }), y;
2670
2683
  }
2671
2684
  k.call(A.prototype);
2672
- function D(c, y) {
2673
- if (!(this instanceof D))
2685
+ function R(c, y) {
2686
+ if (!(this instanceof R))
2674
2687
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2675
2688
  if (y || (y = {}), this.type = "default", this.status = y.status === void 0 ? 200 : y.status, this.status < 200 || this.status > 599)
2676
2689
  throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
2677
2690
  this.ok = this.status >= 200 && this.status < 300, this.statusText = y.statusText === void 0 ? "" : "" + y.statusText, this.headers = new S(y.headers), this.url = y.url || "", this._initBody(c);
2678
2691
  }
2679
- k.call(D.prototype), D.prototype.clone = function() {
2680
- return new D(this._bodyInit, {
2692
+ k.call(R.prototype), R.prototype.clone = function() {
2693
+ return new R(this._bodyInit, {
2681
2694
  status: this.status,
2682
2695
  statusText: this.statusText,
2683
2696
  headers: new S(this.headers),
2684
2697
  url: this.url
2685
2698
  });
2686
- }, D.error = function() {
2687
- var c = new D(null, { status: 200, statusText: "" });
2699
+ }, R.error = function() {
2700
+ var c = new R(null, { status: 200, statusText: "" });
2688
2701
  return c.ok = !1, c.status = 0, c.type = "error", c;
2689
2702
  };
2690
2703
  var _ = [301, 302, 303, 307, 308];
2691
- D.redirect = function(c, y) {
2704
+ R.redirect = function(c, y) {
2692
2705
  if (_.indexOf(y) === -1)
2693
2706
  throw new RangeError("Invalid status code");
2694
- return new D(null, { status: y, headers: { location: c } });
2707
+ return new R(null, { status: y, headers: { location: c } });
2695
2708
  }, i.DOMException = a.DOMException;
2696
2709
  try {
2697
2710
  new i.DOMException();
@@ -2719,7 +2732,7 @@ function Js() {
2719
2732
  C.url.indexOf("file://") === 0 && (E.status < 200 || E.status > 599) ? U.status = 200 : U.status = E.status, U.url = "responseURL" in E ? E.responseURL : U.headers.get("X-Request-URL");
2720
2733
  var Z = "response" in E ? E.response : E.responseText;
2721
2734
  setTimeout(function() {
2722
- T(new D(Z, U));
2735
+ T(new R(Z, U));
2723
2736
  }, 0);
2724
2737
  }, E.onerror = function() {
2725
2738
  setTimeout(function() {
@@ -2757,37 +2770,37 @@ function Js() {
2757
2770
  }), E.send(typeof C._bodyInit > "u" ? null : C._bodyInit);
2758
2771
  });
2759
2772
  }
2760
- return P.polyfill = !0, a.fetch || (a.fetch = P, a.Headers = S, a.Request = A, a.Response = D), i.Headers = S, i.Request = A, i.Response = D, i.fetch = P, i;
2773
+ return P.polyfill = !0, a.fetch || (a.fetch = P, a.Headers = S, a.Request = A, a.Response = R), i.Headers = S, i.Request = A, i.Response = R, i.fetch = P, i;
2761
2774
  })({});
2762
2775
  })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
2763
- var r = t.fetch ? t : n;
2764
- e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, s.exports = e;
2776
+ var s = t.fetch ? t : n;
2777
+ e = s.fetch, e.default = s.fetch, e.fetch = s.fetch, e.Headers = s.Headers, e.Request = s.Request, e.Response = s.Response, r.exports = e;
2765
2778
  })(Le, Le.exports)), Le.exports;
2766
2779
  }
2767
- var Qs = Js();
2768
- const Xs = /* @__PURE__ */ Et(Qs), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", er = "ps", be = {
2780
+ var Qr = Jr();
2781
+ const Xr = /* @__PURE__ */ Et(Qr), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", es = "ps", be = {
2769
2782
  get: "GET",
2770
2783
  post: "POST"
2771
2784
  };
2772
- function tr(s, e) {
2773
- return Array.isArray(e) ? `${s}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${s}=${encodeURIComponent(JSON.stringify(e))}` : `${s}=${encodeURIComponent(e)}`;
2785
+ function ts(r, e) {
2786
+ return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
2774
2787
  }
2775
- function nr({
2776
- params: s,
2788
+ function ns({
2789
+ params: r,
2777
2790
  url: e
2778
2791
  }) {
2779
- if (!s) return e;
2780
- const t = Object.entries(s).map(([n, r]) => tr(n, r));
2792
+ if (!r) return e;
2793
+ const t = Object.entries(r).map(([n, s]) => ts(n, s));
2781
2794
  return `${e}?${t.filter(Boolean).join("&")}`;
2782
2795
  }
2783
- function sr(s) {
2784
- return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
2796
+ function rs(r) {
2797
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
2785
2798
  }
2786
2799
  var qe, dt;
2787
- function rr() {
2800
+ function ss() {
2788
2801
  if (dt) return qe;
2789
2802
  dt = 1;
2790
- var s = function(u) {
2803
+ var r = function(u) {
2791
2804
  return e(u) && !t(u);
2792
2805
  };
2793
2806
  function e(u) {
@@ -2797,9 +2810,9 @@ function rr() {
2797
2810
  var p = Object.prototype.toString.call(u);
2798
2811
  return p === "[object RegExp]" || p === "[object Date]" || o(u);
2799
2812
  }
2800
- var n = typeof Symbol == "function" && Symbol.for, r = n ? Symbol.for("react.element") : 60103;
2813
+ var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
2801
2814
  function o(u) {
2802
- return u.$$typeof === r;
2815
+ return u.$$typeof === s;
2803
2816
  }
2804
2817
  function i(u) {
2805
2818
  return Array.isArray(u) ? [] : {};
@@ -2844,7 +2857,7 @@ function rr() {
2844
2857
  }), w;
2845
2858
  }
2846
2859
  function S(u, p, h) {
2847
- h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || s, h.cloneUnlessOtherwiseSpecified = a;
2860
+ h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || r, h.cloneUnlessOtherwiseSpecified = a;
2848
2861
  var w = Array.isArray(p), v = Array.isArray(u), k = w === v;
2849
2862
  return k ? w ? h.arrayMerge(u, p, h) : M(u, p, h) : a(p, h);
2850
2863
  }
@@ -2857,17 +2870,17 @@ function rr() {
2857
2870
  var L = S;
2858
2871
  return qe = L, qe;
2859
2872
  }
2860
- var or = rr();
2861
- const Ye = /* @__PURE__ */ sr(or);
2862
- function ft(s) {
2873
+ var os = ss();
2874
+ const Ye = /* @__PURE__ */ rs(os);
2875
+ function ft(r) {
2863
2876
  return Ye({
2864
2877
  method: be.get,
2865
2878
  headers: {
2866
2879
  Accept: "application/json"
2867
2880
  }
2868
- }, s);
2881
+ }, r);
2869
2882
  }
2870
- function Be(s, e) {
2883
+ function Be(r, e) {
2871
2884
  return Ye({
2872
2885
  method: be.post,
2873
2886
  headers: {
@@ -2875,100 +2888,100 @@ function Be(s, e) {
2875
2888
  "Content-Type": "application/json"
2876
2889
  },
2877
2890
  body: JSON.stringify(e)
2878
- }, s);
2891
+ }, r);
2879
2892
  }
2880
- const ir = {
2893
+ const is = {
2881
2894
  GET: ft,
2882
2895
  POST: Be,
2883
2896
  PUT: Be,
2884
2897
  PATCH: Be,
2885
2898
  DELETE: ft
2886
2899
  };
2887
- function ar({
2888
- body: s,
2900
+ function as({
2901
+ body: r,
2889
2902
  accessToken: e,
2890
2903
  method: t,
2891
2904
  ...n
2892
2905
  }) {
2893
- let r = e;
2894
- return r && !r.includes("Bearer") && (r = "Bearer " + r), ir[t](Ye({
2906
+ let s = e;
2907
+ return s && !s.includes("Bearer") && (s = "Bearer " + s), is[t](Ye({
2895
2908
  method: t,
2896
2909
  headers: {
2897
- ...!!r && {
2898
- authorization: r
2910
+ ...!!s && {
2911
+ authorization: s
2899
2912
  }
2900
2913
  }
2901
- }, n), s);
2914
+ }, n), r);
2902
2915
  }
2903
- const lr = 6144;
2916
+ const ls = 6144;
2904
2917
  async function $t({
2905
- signal: s,
2918
+ signal: r,
2906
2919
  body: e,
2907
2920
  accessToken: t,
2908
2921
  credentials: n,
2909
- method: r = be.get,
2922
+ method: s = be.get,
2910
2923
  params: o,
2911
2924
  url: i,
2912
2925
  requestOptions: {
2913
2926
  getMaxUrlLength: a
2914
2927
  } = {
2915
- getMaxUrlLength: lr
2928
+ getMaxUrlLength: ls
2916
2929
  },
2917
2930
  ...l
2918
2931
  }) {
2919
- let d = nr({
2932
+ let d = ns({
2920
2933
  url: i,
2921
2934
  params: o
2922
- }), m = e, g = r;
2923
- r === be.get && d.length > a && (m = o, g = be.post, d = i);
2924
- const b = ar({
2935
+ }), m = e, g = s;
2936
+ s === be.get && d.length > a && (m = o, g = be.post, d = i);
2937
+ const b = as({
2925
2938
  body: m,
2926
2939
  accessToken: t ?? n?.accessToken,
2927
2940
  method: g,
2928
2941
  ...l
2929
2942
  });
2930
- s && (b.signal = s);
2931
- const f = await Xs(d, b);
2943
+ r && (b.signal = r);
2944
+ const f = await Xr(d, b);
2932
2945
  if (!f.ok) {
2933
2946
  const M = await f.text();
2934
2947
  throw new Error(M);
2935
2948
  }
2936
2949
  return f.status === 204 ? Promise.resolve() : await f.json();
2937
2950
  }
2938
- const Oe = ht()(Mn((s, e) => ({
2951
+ const Oe = ht()(Mn((r, e) => ({
2939
2952
  sources: {},
2940
2953
  filters: {},
2941
- setSource: (t, n) => s((r) => {
2954
+ setSource: (t, n) => r((s) => {
2942
2955
  const o = {
2943
- ...r.sources
2956
+ ...s.sources
2944
2957
  }, i = o[t]?.widgets;
2945
2958
  i && (i.destroy(), delete o[t].widgets);
2946
2959
  const a = o[t], l = {
2947
2960
  apiBaseUrl: We,
2948
- clientId: er,
2961
+ clientId: es,
2949
2962
  apiVersion: Ke,
2950
2963
  ...a,
2951
2964
  ...n
2952
2965
  };
2953
- return l.widgets = fr({
2966
+ return l.widgets = fs({
2954
2967
  source: l
2955
2968
  }), o[t] = l, {
2956
2969
  sources: o
2957
2970
  };
2958
2971
  }, void 0, "setSource"),
2959
- removeSource: (t) => s((n) => {
2960
- const r = {
2972
+ removeSource: (t) => r((n) => {
2973
+ const s = {
2961
2974
  ...n.sources
2962
- }, o = r[t]?.widgets;
2963
- return o && (o.destroy(), delete r[t].widgets), delete r[t], {
2964
- sources: r
2975
+ }, o = s[t]?.widgets;
2976
+ return o && (o.destroy(), delete s[t].widgets), delete s[t], {
2977
+ sources: s
2965
2978
  };
2966
2979
  }, void 0, "removeSource"),
2967
- setFilters: (t, n) => s((r) => {
2968
- const o = r.filters[t] ?? {}, i = n.reduce((a, l) => Ge(a, l), o);
2980
+ setFilters: (t, n) => r((s) => {
2981
+ const o = s.filters[t] ?? {}, i = n.reduce((a, l) => Ge(a, l), o);
2969
2982
  return {
2970
2983
  filters: {
2971
- ...r.filters,
2984
+ ...s.filters,
2972
2985
  [t]: {
2973
2986
  ...i
2974
2987
  }
@@ -2976,14 +2989,14 @@ const Oe = ht()(Mn((s, e) => ({
2976
2989
  }
2977
2990
  };
2978
2991
  }, void 0, "setFilters"),
2979
- removeFilters: (t, n, r) => s((o) => {
2992
+ removeFilters: (t, n, s) => r((o) => {
2980
2993
  const i = o.filters[t] ?? {};
2981
2994
  if (!i)
2982
2995
  return o;
2983
2996
  let a = {};
2984
2997
  return n && (a = mn(i, {
2985
2998
  column: n,
2986
- owner: r
2999
+ owner: s
2987
3000
  })), {
2988
3001
  filters: {
2989
3002
  ...o.filters,
@@ -2996,12 +3009,12 @@ const Oe = ht()(Mn((s, e) => ({
2996
3009
  }, void 0, "removeFilters"),
2997
3010
  invalidateSourcesCache: (t, {
2998
3011
  timeout: n = 500,
2999
- maxAge: r = 10
3012
+ maxAge: s = 10
3000
3013
  } = {}) => {
3001
3014
  t.forEach((o) => {
3002
3015
  e().setSource(o, {
3003
3016
  headers: {
3004
- "Cache-Control": `no-cache, max-age=${r}`
3017
+ "Cache-Control": `no-cache, max-age=${s}`
3005
3018
  }
3006
3019
  });
3007
3020
  }), setTimeout(() => {
@@ -3012,24 +3025,24 @@ const Oe = ht()(Mn((s, e) => ({
3012
3025
  }, n);
3013
3026
  }
3014
3027
  })));
3015
- function cr(s) {
3028
+ function cs(r) {
3016
3029
  const e = B(2);
3017
3030
  let t;
3018
- return e[0] !== s ? (t = (n) => n.sources[s], e[0] = s, e[1] = t) : t = e[1], Oe(t);
3031
+ return e[0] !== r ? (t = (n) => n.sources[r], e[0] = r, e[1] = t) : t = e[1], Oe(t);
3019
3032
  }
3020
- function ur(s) {
3033
+ function us(r) {
3021
3034
  const e = B(2);
3022
3035
  let t;
3023
- return e[0] !== s ? (t = (n) => n.filters[s], e[0] = s, e[1] = t) : t = e[1], Oe(t);
3036
+ return e[0] !== r ? (t = (n) => n.filters[r], e[0] = r, e[1] = t) : t = e[1], Oe(t);
3024
3037
  }
3025
- function po(s) {
3038
+ function po(r) {
3026
3039
  const e = B(9);
3027
3040
  let t;
3028
- e[0] !== s ? (t = (a) => a.sources[s], e[0] = s, e[1] = t) : t = e[1];
3041
+ e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
3029
3042
  const n = Oe(t);
3030
- let r;
3031
- e[2] !== s ? (r = (a) => a.filters[s], e[2] = s, e[3] = r) : r = e[3];
3032
- const o = Oe(r);
3043
+ let s;
3044
+ e[2] !== r ? (s = (a) => a.filters[r], e[2] = r, e[3] = s) : s = e[3];
3045
+ const o = Oe(s);
3033
3046
  let i;
3034
3047
  e: {
3035
3048
  if (!n) {
@@ -3046,28 +3059,28 @@ function po(s) {
3046
3059
  }
3047
3060
  return i;
3048
3061
  }
3049
- function mo(s, {
3062
+ function mo(r, {
3050
3063
  column: e,
3051
3064
  type: t
3052
3065
  }) {
3053
- return s?.[e]?.[t]?.values ?? [];
3066
+ return r?.[e]?.[t]?.values ?? [];
3054
3067
  }
3055
- function dr(s) {
3056
- const [, e] = s.type.split("+", 2);
3068
+ function ds(r) {
3069
+ const [, e] = r.type.split("+", 2);
3057
3070
  return {
3058
- spatialDataType: s.spatialDataType ?? e ?? "geo",
3059
- spatialDataColumn: s.spatialDataColumn ?? e ?? "geom"
3071
+ spatialDataType: r.spatialDataType ?? e ?? "geo",
3072
+ spatialDataColumn: r.spatialDataColumn ?? e ?? "geom"
3060
3073
  };
3061
3074
  }
3062
- function fr({
3063
- source: s
3075
+ function fs({
3076
+ source: r
3064
3077
  }) {
3065
3078
  const {
3066
3079
  spatialDataType: e,
3067
3080
  spatialDataColumn: t
3068
- } = dr(s), n = {
3081
+ } = ds(r), n = {
3069
3082
  query: () => {
3070
- const i = s;
3083
+ const i = r;
3071
3084
  return new Sn({
3072
3085
  ...i,
3073
3086
  accessToken: "",
@@ -3077,7 +3090,7 @@ function fr({
3077
3090
  });
3078
3091
  },
3079
3092
  table: () => {
3080
- const i = s;
3093
+ const i = r;
3081
3094
  return new bn({
3082
3095
  ...i,
3083
3096
  accessToken: "",
@@ -3087,7 +3100,7 @@ function fr({
3087
3100
  });
3088
3101
  },
3089
3102
  tileset: () => {
3090
- const i = s;
3103
+ const i = r;
3091
3104
  return i.spatialDataBounds ? new hn({
3092
3105
  ...i,
3093
3106
  accessToken: "",
@@ -3099,7 +3112,7 @@ function fr({
3099
3112
  }) : null;
3100
3113
  },
3101
3114
  raster: () => {
3102
- const i = s;
3115
+ const i = r;
3103
3116
  return !i.rasterMetadata || !i.spatialDataBounds ? null : new yn({
3104
3117
  ...i,
3105
3118
  accessToken: "",
@@ -3110,71 +3123,71 @@ function fr({
3110
3123
  spatialDataBounds: i.spatialDataBounds
3111
3124
  });
3112
3125
  }
3113
- }, r = s.type.split("+")[0], o = n[r];
3126
+ }, s = r.type.split("+")[0], o = n[s];
3114
3127
  return o?.();
3115
3128
  }
3116
- function pr(s, e) {
3117
- const t = B(5), n = ur(s);
3118
- let r;
3129
+ function ps(r, e) {
3130
+ const t = B(5), n = us(r);
3131
+ let s;
3119
3132
  e: {
3120
3133
  if (!e?.length) {
3121
- r = n;
3134
+ s = n;
3122
3135
  break e;
3123
3136
  }
3124
3137
  if (!n) {
3125
3138
  let i;
3126
- t[0] !== e ? (i = e.reduce(yr, {}), t[0] = e, t[1] = i) : i = t[1], r = i;
3139
+ t[0] !== e ? (i = e.reduce(ys, {}), t[0] = e, t[1] = i) : i = t[1], s = i;
3127
3140
  break e;
3128
3141
  }
3129
3142
  let o;
3130
3143
  if (t[2] !== e || t[3] !== n) {
3131
- const i = e.reduce(mr, {});
3144
+ const i = e.reduce(ms, {});
3132
3145
  o = me(n, i), t[2] = e, t[3] = n, t[4] = o;
3133
3146
  } else
3134
3147
  o = t[4];
3135
- r = o;
3148
+ s = o;
3136
3149
  }
3137
- return r;
3150
+ return s;
3138
3151
  }
3139
- function mr(s, e) {
3140
- return Ge(s, e);
3152
+ function ms(r, e) {
3153
+ return Ge(r, e);
3141
3154
  }
3142
- function yr(s, e) {
3143
- return Ge(s, e);
3155
+ function ys(r, e) {
3156
+ return Ge(r, e);
3144
3157
  }
3145
- function hr(s, e) {
3146
- const t = cr(e);
3158
+ function hs(r, e) {
3159
+ const t = cs(e);
3147
3160
  return ge(() => {
3148
3161
  const n = t?.widgets;
3149
- return !n || !s ? null : (n.props.accessToken = s, n);
3150
- }, [s, t]);
3162
+ return !n || !r ? null : (n.props.accessToken = r, n);
3163
+ }, [r, t]);
3151
3164
  }
3152
- const gr = ["authorization", "cache-control"];
3153
- function br(s) {
3154
- if (!s || typeof s != "object")
3165
+ const gs = ["authorization", "cache-control"];
3166
+ function bs(r) {
3167
+ if (!r || typeof r != "object")
3155
3168
  return "";
3156
3169
  const e = {};
3157
- for (const [t, n] of Object.entries(s)) {
3158
- const r = t.toLowerCase();
3159
- gr.includes(r) && (e[r] = n);
3170
+ for (const [t, n] of Object.entries(r)) {
3171
+ const s = t.toLowerCase();
3172
+ gs.includes(s) && (e[s] = n);
3160
3173
  }
3161
3174
  return Object.keys(e).length > 0 ? JSON.stringify(e) : "";
3162
3175
  }
3163
- function Sr(s) {
3176
+ function Ss(r) {
3164
3177
  const e = B(12), {
3165
3178
  accessToken: t,
3166
3179
  sourceId: n,
3167
- widgetProps: r,
3180
+ widgetProps: s,
3168
3181
  additionalFilter: o
3169
- } = s, i = pr(n, o), a = hr(t, n);
3182
+ } = r, i = ps(n, o), a = hs(t, n);
3170
3183
  let l;
3171
- if (e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== r) {
3172
- l = [n, r], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
3184
+ if (e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== s) {
3185
+ l = [n, s], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
3173
3186
  const g = a?.props.headers;
3174
3187
  let b;
3175
- e[6] !== g ? (b = br(g), e[6] = g, e[7] = b) : b = e[7];
3188
+ e[6] !== g ? (b = bs(g), e[6] = g, e[7] = b) : b = e[7];
3176
3189
  const f = b;
3177
- f && l.push(f), l.push(t), e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = r, e[5] = l;
3190
+ f && l.push(f), l.push(t), e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = s, e[5] = l;
3178
3191
  } else
3179
3192
  l = e[5];
3180
3193
  const d = l;
@@ -3186,17 +3199,17 @@ function Sr(s) {
3186
3199
  }, e[8] = i, e[9] = d, e[10] = a, e[11] = m) : m = e[11], m;
3187
3200
  }
3188
3201
  function de({
3189
- queryKeyPrefix: s,
3202
+ queryKeyPrefix: r,
3190
3203
  getWidgetMethod: e
3191
3204
  }) {
3192
- const t = (r) => {
3205
+ const t = (s) => {
3193
3206
  const o = B(21), {
3194
3207
  accessToken: i,
3195
3208
  sourceId: a,
3196
3209
  widgetProps: l,
3197
3210
  additionalFilter: d,
3198
3211
  useQueryProps: m
3199
- } = r;
3212
+ } = s;
3200
3213
  let g;
3201
3214
  o[0] !== m ? (g = m === void 0 ? {} : m, o[0] = m, o[1] = g) : g = o[1];
3202
3215
  let b, f;
@@ -3216,9 +3229,9 @@ function de({
3216
3229
  mergedFilters: L,
3217
3230
  queryKey: u,
3218
3231
  widgetModel: p
3219
- } = Sr(S);
3232
+ } = Ss(S);
3220
3233
  let h;
3221
- o[10] !== u ? (h = [...s, ...u], o[10] = u, o[11] = h) : h = o[11];
3234
+ o[10] !== u ? (h = [...r, ...u], o[10] = u, o[11] = h) : h = o[11];
3222
3235
  let w;
3223
3236
  o[12] !== L || o[13] !== p || o[14] !== l ? (w = (F) => {
3224
3237
  const {
@@ -3243,13 +3256,13 @@ function de({
3243
3256
  };
3244
3257
  return {
3245
3258
  useModelHook: t,
3246
- ModelComponent: (r) => {
3259
+ ModelComponent: (s) => {
3247
3260
  const o = B(6);
3248
3261
  let i, a;
3249
- o[0] !== r ? ({
3262
+ o[0] !== s ? ({
3250
3263
  children: i,
3251
3264
  ...a
3252
- } = r, o[0] = r, o[1] = i, o[2] = a) : (i = o[1], a = o[2]);
3265
+ } = s, o[0] = s, o[1] = i, o[2] = a) : (i = o[1], a = o[2]);
3253
3266
  const l = t(a);
3254
3267
  let d;
3255
3268
  return o[3] !== i || o[4] !== l ? (d = i(l), o[3] = i, o[4] = l, o[5] = d) : d = o[5], d;
@@ -3261,36 +3274,36 @@ const {
3261
3274
  ModelComponent: ho
3262
3275
  } = de({
3263
3276
  queryKeyPrefix: ["aggregations"],
3264
- getWidgetMethod: (s) => (e) => {
3265
- let t = e.aggregations.filter((r) => r.operation !== "custom");
3266
- e.aggregations.some((r) => r.operation === "custom") && (t = vr(e.aggregations).join(","));
3277
+ getWidgetMethod: (r) => (e) => {
3278
+ let t = e.aggregations.filter((s) => s.operation !== "custom");
3279
+ e.aggregations.some((s) => s.operation === "custom") && (t = vs(e.aggregations).join(","));
3267
3280
  const n = {
3268
3281
  ...e,
3269
3282
  aggregations: t
3270
3283
  };
3271
- return s.getAggregations(n);
3284
+ return r.getAggregations(n);
3272
3285
  }
3273
3286
  });
3274
- function vr(s) {
3275
- return s.map((e) => {
3287
+ function vs(r) {
3288
+ return r.map((e) => {
3276
3289
  if (e.operation === "custom")
3277
3290
  return `${e.aggregationExp} AS ${e.alias}`;
3278
3291
  const {
3279
3292
  column: t,
3280
3293
  operation: n,
3281
- alias: r
3294
+ alias: s
3282
3295
  } = e;
3283
3296
  switch (n) {
3284
3297
  case "count":
3285
- return `COUNT(${t}) AS ${r}`;
3298
+ return `COUNT(${t}) AS ${s}`;
3286
3299
  case "sum":
3287
- return `SUM(${t}) AS ${r}`;
3300
+ return `SUM(${t}) AS ${s}`;
3288
3301
  case "avg":
3289
- return `AVG(${t}) AS ${r}`;
3302
+ return `AVG(${t}) AS ${s}`;
3290
3303
  case "min":
3291
- return `MIN(${t}) AS ${r}`;
3304
+ return `MIN(${t}) AS ${s}`;
3292
3305
  case "max":
3293
- return `MAX(${t}) AS ${r}`;
3306
+ return `MAX(${t}) AS ${s}`;
3294
3307
  default:
3295
3308
  throw new Error(`Unsupported aggregation operation: ${String(n)}`);
3296
3309
  }
@@ -3301,72 +3314,72 @@ const {
3301
3314
  ModelComponent: bo
3302
3315
  } = de({
3303
3316
  queryKeyPrefix: ["categories"],
3304
- getWidgetMethod: (s) => s.getCategories.bind(s)
3317
+ getWidgetMethod: (r) => r.getCategories.bind(r)
3305
3318
  }), {
3306
3319
  useModelHook: So,
3307
3320
  ModelComponent: vo
3308
3321
  } = de({
3309
3322
  queryKeyPrefix: ["features"],
3310
- getWidgetMethod: (s) => s.getFeatures.bind(s)
3323
+ getWidgetMethod: (r) => r.getFeatures.bind(r)
3311
3324
  }), {
3312
3325
  useModelHook: wo,
3313
3326
  ModelComponent: Mo
3314
3327
  } = de({
3315
3328
  queryKeyPrefix: ["formula"],
3316
- getWidgetMethod: (s) => s.getFormula.bind(s)
3329
+ getWidgetMethod: (r) => r.getFormula.bind(r)
3317
3330
  }), {
3318
3331
  useModelHook: _o,
3319
3332
  ModelComponent: Eo
3320
3333
  } = de({
3321
3334
  queryKeyPrefix: ["histogram"],
3322
- getWidgetMethod: (s) => s.getHistogram.bind(s)
3335
+ getWidgetMethod: (r) => r.getHistogram.bind(r)
3323
3336
  }), {
3324
3337
  useModelHook: To,
3325
3338
  ModelComponent: Lo
3326
3339
  } = de({
3327
3340
  queryKeyPrefix: ["range"],
3328
- getWidgetMethod: (s) => s.getRange.bind(s)
3341
+ getWidgetMethod: (r) => r.getRange.bind(r)
3329
3342
  }), {
3330
3343
  useModelHook: ko,
3331
3344
  ModelComponent: Co
3332
3345
  } = de({
3333
3346
  queryKeyPrefix: ["scatter"],
3334
- getWidgetMethod: (s) => s.getScatter.bind(s)
3347
+ getWidgetMethod: (r) => r.getScatter.bind(r)
3335
3348
  }), {
3336
3349
  useModelHook: Oo,
3337
3350
  ModelComponent: Po
3338
3351
  } = de({
3339
3352
  queryKeyPrefix: ["table"],
3340
- getWidgetMethod: (s) => s.getTable.bind(s)
3353
+ getWidgetMethod: (r) => r.getTable.bind(r)
3341
3354
  }), {
3342
3355
  useModelHook: Ao,
3343
3356
  ModelComponent: Fo
3344
3357
  } = de({
3345
3358
  queryKeyPrefix: ["timeSeries"],
3346
- getWidgetMethod: (s) => s.getTimeSeries.bind(s)
3347
- }), Do = "ps";
3348
- function Ro(s) {
3359
+ getWidgetMethod: (r) => r.getTimeSeries.bind(r)
3360
+ }), Ro = "ps";
3361
+ function Do(r) {
3349
3362
  const e = B(13), {
3350
3363
  children: t,
3351
3364
  maps: n,
3352
- lassoTools: r,
3365
+ lassoTools: s,
3353
3366
  measureTools: o
3354
- } = s;
3367
+ } = r;
3355
3368
  let i;
3356
- e[0] !== r ? (i = r === void 0 ? [] : r, e[0] = r, e[1] = i) : i = e[1];
3369
+ e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
3357
3370
  const a = i;
3358
3371
  let l;
3359
3372
  e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
3360
3373
  const d = l;
3361
3374
  let m;
3362
- e[4] !== t || e[5] !== d ? (m = /* @__PURE__ */ G(_s, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = m) : m = e[6];
3375
+ e[4] !== t || e[5] !== d ? (m = /* @__PURE__ */ G(_r, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = m) : m = e[6];
3363
3376
  let g;
3364
- e[7] !== a || e[8] !== m ? (g = /* @__PURE__ */ G(is, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = g) : g = e[9];
3377
+ e[7] !== a || e[8] !== m ? (g = /* @__PURE__ */ G(ir, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = g) : g = e[9];
3365
3378
  let b;
3366
3379
  return e[10] !== n || e[11] !== g ? (b = /* @__PURE__ */ G(Wn, { values: n, children: g }), e[10] = n, e[11] = g, e[12] = b) : b = e[12], b;
3367
3380
  }
3368
- function xo(s, e) {
3369
- const t = Se((d) => d.layers), n = Se((d) => d.setLayer), r = ge(() => xt(s.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, s]), o = ge(() => r.map(e), [e, r]), i = se(({
3381
+ function xo(r, e) {
3382
+ const t = Se((d) => d.layers), n = Se((d) => d.setLayer), s = ge(() => xt(r.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, r]), o = ge(() => s.map(e), [e, s]), i = re(({
3370
3383
  id: d,
3371
3384
  visible: m,
3372
3385
  ...g
@@ -3377,7 +3390,7 @@ function xo(s, e) {
3377
3390
  },
3378
3391
  legend: g
3379
3392
  });
3380
- }, [n]), a = se(({
3393
+ }, [n]), a = re(({
3381
3394
  id: d,
3382
3395
  collapsed: m
3383
3396
  }) => {
@@ -3386,7 +3399,7 @@ function xo(s, e) {
3386
3399
  collapsed: m
3387
3400
  }
3388
3401
  });
3389
- }, [n]), l = se(({
3402
+ }, [n]), l = re(({
3390
3403
  id: d,
3391
3404
  opacity: m
3392
3405
  }) => {
@@ -3404,12 +3417,12 @@ function xo(s, e) {
3404
3417
  };
3405
3418
  }
3406
3419
  function $o({
3407
- mapId: s
3420
+ mapId: r
3408
3421
  }) {
3409
- const [e, t] = ue(void 0), [n, r] = ue(!1), [o, i] = ue(void 0), a = x((u) => u.maps[s]?.basemap), l = x((u) => u.getDeckInstance), d = x((u) => u.getOverlayInstance), m = x((u) => u.areLayersLoaded[s]), b = x((u) => u.maps[s]?.isLoaded) && m, {
3422
+ const [e, t] = ue(void 0), [n, s] = ue(!1), [o, i] = ue(void 0), a = x((u) => u.maps[r]?.basemap), l = x((u) => u.getDeckInstance), d = x((u) => u.getOverlayInstance), m = x((u) => u.areLayersLoaded[r]), b = x((u) => u.maps[r]?.isLoaded) && m, {
3410
3423
  type: f
3411
- } = we[a], M = f === ce.googleMaps, S = se(async () => {
3412
- const u = l(s), p = d(s);
3424
+ } = we[a], M = f === ce.googleMaps, S = re(async () => {
3425
+ const u = l(r), p = d(r);
3413
3426
  try {
3414
3427
  const h = document.createElement("canvas");
3415
3428
  h.width = u.width ?? 0, h.height = u.height ?? 0;
@@ -3432,122 +3445,122 @@ function $o({
3432
3445
  } catch (h) {
3433
3446
  i(h), console.error(h);
3434
3447
  } finally {
3435
- r(!1);
3448
+ s(!1);
3436
3449
  }
3437
- }, [l, M, s, d]);
3450
+ }, [l, M, r, d]);
3438
3451
  return {
3439
- takeScreenshot: se(() => {
3440
- i(void 0), r(!0), b && S();
3452
+ takeScreenshot: re(() => {
3453
+ i(void 0), s(!0), b && S();
3441
3454
  }, [S, b]),
3442
3455
  isLoading: n,
3443
3456
  screenshot: e,
3444
3457
  error: o
3445
3458
  };
3446
3459
  }
3447
- function Uo(s) {
3460
+ function Uo(r) {
3448
3461
  const e = B(11), {
3449
3462
  mapId: t
3450
- } = s;
3463
+ } = r;
3451
3464
  let n;
3452
3465
  e[0] !== t ? (n = {
3453
3466
  mapId: t
3454
3467
  }, e[0] = t, e[1] = n) : n = e[1];
3455
- const r = wr(n);
3468
+ const s = ws(n);
3456
3469
  let o;
3457
3470
  e[2] !== t ? (o = {
3458
3471
  mapId: t
3459
3472
  }, e[2] = t, e[3] = o) : o = e[3];
3460
- const i = Mr(o);
3473
+ const i = Ms(o);
3461
3474
  let a;
3462
3475
  e[4] !== t ? (a = {
3463
3476
  mapId: t
3464
3477
  }, e[4] = t, e[5] = a) : a = e[5];
3465
- const l = Tr(a), d = i ?? l ?? r;
3478
+ const l = Ts(a), d = i ?? l ?? s;
3466
3479
  let m;
3467
- return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== r ? (m = {
3480
+ return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== s ? (m = {
3468
3481
  spatialFilter: d,
3469
3482
  staticSpatialFilter: l,
3470
3483
  lassoToolsSpatialFilter: i,
3471
- viewportSpatialFilter: r
3472
- }, e[6] = i, e[7] = l, e[8] = d, e[9] = r, e[10] = m) : m = e[10], m;
3484
+ viewportSpatialFilter: s
3485
+ }, e[6] = i, e[7] = l, e[8] = d, e[9] = s, e[10] = m) : m = e[10], m;
3473
3486
  }
3474
- function wr(s) {
3487
+ function ws(r) {
3475
3488
  const e = B(4), {
3476
3489
  mapId: t
3477
- } = s;
3490
+ } = r;
3478
3491
  let n;
3479
3492
  e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
3480
- const r = x(n);
3493
+ const s = x(n);
3481
3494
  let o;
3482
3495
  e: {
3483
- if (!r) {
3496
+ if (!s) {
3484
3497
  o = void 0;
3485
3498
  break e;
3486
3499
  }
3487
3500
  let i;
3488
- e[2] !== r ? (i = vn(r.getBounds()), e[2] = r, e[3] = i) : i = e[3], o = i;
3501
+ e[2] !== s ? (i = vn(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], o = i;
3489
3502
  }
3490
3503
  return o;
3491
3504
  }
3492
- function Mr(s) {
3505
+ function Ms(r) {
3493
3506
  const e = B(5), {
3494
3507
  mapId: t
3495
- } = s;
3508
+ } = r;
3496
3509
  let n;
3497
3510
  e[0] !== t ? (n = (i) => i.data[t]?.values, e[0] = t, e[1] = n) : n = e[1];
3498
- const r = K(n);
3511
+ const s = K(n);
3499
3512
  let o;
3500
3513
  e: {
3501
3514
  let i;
3502
- if (e[2] !== r) {
3515
+ if (e[2] !== s) {
3503
3516
  const a = Pt({
3504
- values: r
3505
- }).filter(Er);
3517
+ values: s
3518
+ }).filter(Es);
3506
3519
  if (!a?.length) {
3507
3520
  o = void 0;
3508
3521
  break e;
3509
3522
  }
3510
- i = vt(a.map(_r)), e[2] = r, e[3] = i, e[4] = o;
3523
+ i = vt(a.map(_s)), e[2] = s, e[3] = i, e[4] = o;
3511
3524
  } else
3512
3525
  i = e[3], o = e[4];
3513
3526
  o = i.geometry;
3514
3527
  }
3515
3528
  return o;
3516
3529
  }
3517
- function _r(s) {
3518
- return s.geometry.coordinates;
3530
+ function _s(r) {
3531
+ return r.geometry.coordinates;
3519
3532
  }
3520
- function Er(s) {
3521
- return s.properties.visible;
3533
+ function Es(r) {
3534
+ return r.properties.visible;
3522
3535
  }
3523
- function Tr(s) {
3536
+ function Ts(r) {
3524
3537
  const e = B(4), {
3525
3538
  mapId: t
3526
- } = s;
3539
+ } = r;
3527
3540
  let n;
3528
3541
  e[0] !== t ? (n = (i) => i.spatialFilter[t], e[0] = t, e[1] = n) : n = e[1];
3529
- const r = x(n);
3542
+ const s = x(n);
3530
3543
  let o;
3531
3544
  e: {
3532
- if (!r || !Object.keys(r).length) {
3545
+ if (!s || !Object.keys(s).length) {
3533
3546
  o = void 0;
3534
3547
  break e;
3535
3548
  }
3536
3549
  let i;
3537
- if (e[2] !== r) {
3538
- const a = Object.values(r).filter(kr).flatMap(Lr);
3539
- i = vt(a), e[2] = r, e[3] = i;
3550
+ if (e[2] !== s) {
3551
+ const a = Object.values(s).filter(ks).flatMap(Ls);
3552
+ i = vt(a), e[2] = s, e[3] = i;
3540
3553
  } else
3541
3554
  i = e[3];
3542
3555
  o = i.geometry;
3543
3556
  }
3544
3557
  return o;
3545
3558
  }
3546
- function Lr(s) {
3547
- return s.type === "Polygon" ? [s.coordinates] : s.coordinates;
3559
+ function Ls(r) {
3560
+ return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
3548
3561
  }
3549
- function kr(s) {
3550
- return s != null;
3562
+ function ks(r) {
3563
+ return r != null;
3551
3564
  }
3552
3565
  const ye = {
3553
3566
  currency: "CURRENCY",
@@ -3556,85 +3569,85 @@ const ye = {
3556
3569
  }, pt = {
3557
3570
  [ye.currency]: {
3558
3571
  type: ye.currency,
3559
- format: (s, e) => dn(s, e)
3572
+ format: (r, e) => dn(r, e)
3560
3573
  },
3561
3574
  [ye.number]: {
3562
3575
  type: ye.number,
3563
- format: (s, e) => wt(s, e)
3576
+ format: (r, e) => wt(r, e)
3564
3577
  },
3565
3578
  [ye.default]: {
3566
3579
  type: ye.default,
3567
- format: (s) => s.toLocaleString()
3580
+ format: (r) => r.toLocaleString()
3568
3581
  }
3569
3582
  };
3570
3583
  function Vo({
3571
- properties: s,
3584
+ properties: r,
3572
3585
  formatters: e = {},
3573
- includeColumns: t = Object.keys(s),
3586
+ includeColumns: t = Object.keys(r),
3574
3587
  locale: n = "en-US",
3575
- showColumnName: r = !0,
3588
+ showColumnName: s = !0,
3576
3589
  title: o,
3577
- getColumnName: i = Fr,
3578
- getFieldHtml: a = Or,
3579
- getTitle: l = Cr,
3580
- getValue: d = Pr
3590
+ getColumnName: i = Fs,
3591
+ getFieldHtml: a = Os,
3592
+ getTitle: l = Cs,
3593
+ getValue: d = Ps
3581
3594
  }) {
3582
3595
  const m = o ? l(o) : "", b = t.reduce((f, M) => {
3583
- const S = e[M], L = s[M], u = d(L, n, S), p = r ? i(M) : "";
3596
+ const S = e[M], L = r[M], u = d(L, n, S), p = s ? i(M) : "";
3584
3597
  return f + a(p, u);
3585
3598
  }, "");
3586
3599
  return m + b;
3587
3600
  }
3588
- function Cr(s) {
3589
- return `<h3 style="margin: 0"><strong>${s}</strong></h3></br>`;
3601
+ function Cs(r) {
3602
+ return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
3590
3603
  }
3591
- function Or(s, e) {
3592
- return `${s}${e}</br>`;
3604
+ function Os(r, e) {
3605
+ return `${r}${e}</br>`;
3593
3606
  }
3594
- function Pr(s, e, t) {
3607
+ function Ps(r, e, t) {
3595
3608
  try {
3596
- return Ar(t)(s, e);
3609
+ return As(t)(r, e);
3597
3610
  } catch {
3598
- return s;
3611
+ return r;
3599
3612
  }
3600
3613
  }
3601
- function Ar(s) {
3602
- return typeof s == "function" ? s : ((s && pt[s]) ?? pt[ye.default]).format;
3614
+ function As(r) {
3615
+ return typeof r == "function" ? r : ((r && pt[r]) ?? pt[ye.default]).format;
3603
3616
  }
3604
- function Fr(s) {
3605
- return `<strong>${s}</strong>: `;
3617
+ function Fs(r) {
3618
+ return `<strong>${r}</strong>: `;
3606
3619
  }
3607
- function qo(s) {
3620
+ function qo(r) {
3608
3621
  return {
3609
- collapsed: s.legend?.collapsed,
3610
- collapsible: s.legend?.collapsible,
3611
- helperText: s.legend?.helperText,
3612
- id: s.props.id,
3613
- legend: s.legend?.variables,
3614
- maxZoom: s.legend?.maxZoom,
3615
- minZoom: s.legend?.minZoom,
3616
- opacity: s.props.opacity ?? 1,
3617
- showOpacityControl: s.legend?.opacityControl,
3618
- switchable: s.legend?.switchable,
3619
- title: s.name,
3620
- visible: s.props.visible ?? !0
3622
+ collapsed: r.legend?.collapsed,
3623
+ collapsible: r.legend?.collapsible,
3624
+ helperText: r.legend?.helperText,
3625
+ id: r.props.id,
3626
+ legend: r.legend?.variables,
3627
+ maxZoom: r.legend?.maxZoom,
3628
+ minZoom: r.legend?.minZoom,
3629
+ opacity: r.props.opacity ?? 1,
3630
+ showOpacityControl: r.legend?.opacityControl,
3631
+ switchable: r.legend?.switchable,
3632
+ title: r.name,
3633
+ visible: r.props.visible ?? !0
3621
3634
  };
3622
3635
  }
3623
- function Bo(s) {
3636
+ function Bo(r) {
3624
3637
  const e = B(22), {
3625
3638
  children: t,
3626
3639
  mapId: n
3627
- } = s;
3628
- let r;
3629
- e[0] !== n ? (r = (v) => v.viewStates[n], e[0] = n, e[1] = r) : r = e[1];
3640
+ } = r;
3641
+ let s;
3642
+ e[0] !== n ? (s = (v) => v.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
3630
3643
  const {
3631
3644
  zoom: o,
3632
3645
  maxZoom: i,
3633
3646
  minZoom: a
3634
- } = x(r);
3647
+ } = x(s);
3635
3648
  let l;
3636
3649
  e[2] !== n ? (l = (v) => v.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
3637
- const d = x(l), m = x(xr), g = x(Rr), b = x(Dr), f = !d;
3650
+ const d = x(l), m = x(xs), g = x(Ds), b = x(Rs), f = !d;
3638
3651
  let M;
3639
3652
  e[4] !== n || e[5] !== m ? (M = (v) => m(n, v), e[4] = n, e[5] = m, e[6] = M) : M = e[6];
3640
3653
  const S = M;
@@ -3655,21 +3668,21 @@ function Bo(s) {
3655
3668
  resetViewState: h
3656
3669
  }), e[13] = t, e[14] = i, e[15] = a, e[16] = f, e[17] = S, e[18] = u, e[19] = h, e[20] = o, e[21] = w) : w = e[21], w;
3657
3670
  }
3658
- function Dr(s) {
3659
- return s.resetViewState;
3671
+ function Rs(r) {
3672
+ return r.resetViewState;
3660
3673
  }
3661
- function Rr(s) {
3662
- return s.flyTo;
3674
+ function Ds(r) {
3675
+ return r.flyTo;
3663
3676
  }
3664
- function xr(s) {
3665
- return s.setZoom;
3677
+ function xs(r) {
3678
+ return r.setZoom;
3666
3679
  }
3667
- async function $r({
3668
- baseUrl: s = We,
3680
+ async function $s({
3681
+ baseUrl: r = We,
3669
3682
  connection: e,
3670
3683
  accessToken: t,
3671
3684
  query: n,
3672
- attribute: r,
3685
+ attribute: s,
3673
3686
  fetcherOptions: {
3674
3687
  signal: o,
3675
3688
  ...i
@@ -3678,7 +3691,7 @@ async function $r({
3678
3691
  params: l,
3679
3692
  apiVersion: d = Ke
3680
3693
  }) {
3681
- const m = `${s}/${d}/stats/${e}/${r}`;
3694
+ const m = `${r}/${d}/stats/${e}/${s}`;
3682
3695
  return $t({
3683
3696
  accessToken: t,
3684
3697
  signal: o,
@@ -3692,12 +3705,12 @@ async function $r({
3692
3705
  ...i
3693
3706
  });
3694
3707
  }
3695
- async function Ur({
3696
- baseUrl: s = We,
3708
+ async function Us({
3709
+ baseUrl: r = We,
3697
3710
  connection: e,
3698
3711
  accessToken: t,
3699
3712
  table: n,
3700
- attribute: r,
3713
+ attribute: s,
3701
3714
  params: o,
3702
3715
  fetcherOptions: {
3703
3716
  signal: i,
@@ -3705,7 +3718,7 @@ async function Ur({
3705
3718
  } = {},
3706
3719
  apiVersion: l = Ke
3707
3720
  }) {
3708
- const d = `${s}/${l}/stats/${e}/${n}/${r}`;
3721
+ const d = `${r}/${l}/stats/${e}/${n}/${s}`;
3709
3722
  return $t({
3710
3723
  accessToken: t,
3711
3724
  signal: i,
@@ -3717,15 +3730,15 @@ async function Ur({
3717
3730
  ...a
3718
3731
  });
3719
3732
  }
3720
- function jo(s) {
3733
+ function jo(r) {
3721
3734
  const e = B(20), {
3722
3735
  source: t,
3723
3736
  attribute: n,
3724
- accessToken: r,
3737
+ accessToken: s,
3725
3738
  params: o,
3726
3739
  fetcherOptions: i,
3727
3740
  useQueryProps: a
3728
- } = s;
3741
+ } = r;
3729
3742
  let l;
3730
3743
  e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
3731
3744
  let d, m;
@@ -3737,13 +3750,13 @@ function jo(s) {
3737
3750
  let b;
3738
3751
  e[5] !== n || e[6] !== t ? (b = [t, n], e[5] = n, e[6] = t, e[7] = b) : b = e[7];
3739
3752
  let f;
3740
- e[8] !== r || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => Vr({
3753
+ e[8] !== s || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => Vs({
3741
3754
  source: t,
3742
3755
  params: o,
3743
3756
  attribute: n,
3744
- accessToken: r,
3757
+ accessToken: s,
3745
3758
  fetcherOptions: i
3746
- }), e[8] = r, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
3759
+ }), e[8] = s, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
3747
3760
  let M;
3748
3761
  return e[14] !== g || e[15] !== t || e[16] !== b || e[17] !== f || e[18] !== m ? (M = {
3749
3762
  queryKey: b,
@@ -3758,61 +3771,61 @@ function jo(s) {
3758
3771
  ...m
3759
3772
  }, e[14] = g, e[15] = t, e[16] = b, e[17] = f, e[18] = m, e[19] = M) : M = e[19], _t(M);
3760
3773
  }
3761
- function Vr({
3762
- source: s,
3774
+ function Vs({
3775
+ source: r,
3763
3776
  params: e,
3764
3777
  attribute: t,
3765
3778
  accessToken: n,
3766
- fetcherOptions: r
3779
+ fetcherOptions: s
3767
3780
  }) {
3768
- if (s.type.startsWith("query"))
3769
- return $r({
3770
- connection: s.connectionName,
3771
- baseUrl: s.apiBaseUrl,
3772
- apiVersion: s.apiVersion,
3781
+ if (r.type.startsWith("query"))
3782
+ return $s({
3783
+ connection: r.connectionName,
3784
+ baseUrl: r.apiBaseUrl,
3785
+ apiVersion: r.apiVersion,
3773
3786
  accessToken: n,
3774
3787
  params: e,
3775
- query: s.data,
3776
- queryParameters: s.queryParameters,
3788
+ query: r.data,
3789
+ queryParameters: r.queryParameters,
3777
3790
  attribute: t,
3778
- fetcherOptions: r
3791
+ fetcherOptions: s
3779
3792
  });
3780
- if (s.type.startsWith("table"))
3781
- return Ur({
3782
- connection: s.connectionName,
3783
- baseUrl: s.apiBaseUrl,
3784
- apiVersion: s.apiVersion,
3793
+ if (r.type.startsWith("table"))
3794
+ return Us({
3795
+ connection: r.connectionName,
3796
+ baseUrl: r.apiBaseUrl,
3797
+ apiVersion: r.apiVersion,
3785
3798
  params: e,
3786
3799
  accessToken: n,
3787
- table: s.data,
3800
+ table: r.data,
3788
3801
  attribute: t,
3789
- fetcherOptions: r
3802
+ fetcherOptions: s
3790
3803
  });
3791
- if (s.type.startsWith("tileset"))
3792
- return qr({
3793
- source: s,
3804
+ if (r.type.startsWith("tileset"))
3805
+ return qs({
3806
+ source: r,
3794
3807
  accessToken: n,
3795
- target: s.data,
3808
+ target: r.data,
3796
3809
  attribute: t
3797
3810
  });
3798
- throw new Error(`Unsupported source type: ${s.type}`);
3811
+ throw new Error(`Unsupported source type: ${r.type}`);
3799
3812
  }
3800
- async function qr({
3801
- source: s,
3813
+ async function qs({
3814
+ source: r,
3802
3815
  accessToken: e,
3803
3816
  target: t,
3804
3817
  attribute: n
3805
3818
  }) {
3806
- const r = await wn({
3807
- connectionName: s.connectionName,
3808
- apiBaseUrl: s.apiBaseUrl,
3819
+ const s = await wn({
3820
+ connectionName: r.connectionName,
3821
+ apiBaseUrl: r.apiBaseUrl,
3809
3822
  accessToken: e,
3810
- clientId: s.clientId,
3823
+ clientId: r.clientId,
3811
3824
  tableName: t
3812
3825
  });
3813
- if (!r?.tilestats?.layers?.[0]?.attributes)
3826
+ if (!s?.tilestats?.layers?.[0]?.attributes)
3814
3827
  throw new Error(`${n} not found in tileset attributes`);
3815
- const i = r.tilestats.layers[0].attributes.find((a) => a.attribute === n);
3828
+ const i = s.tilestats.layers[0].attributes.find((a) => a.attribute === n);
3816
3829
  if (!i)
3817
3830
  throw new Error(`${n} not found in tileset attributes`);
3818
3831
  return i;
@@ -3821,62 +3834,62 @@ export {
3821
3834
  ho as AggregationsModel,
3822
3835
  co as BasemapsControls,
3823
3836
  it as CONVERSIONS_UNITS,
3824
- Re as CartoBasemapURL,
3837
+ De as CartoBasemapURL,
3825
3838
  ae as CartoBasemaps,
3826
3839
  bo as CategoriesModel,
3827
3840
  Yn as CustomCompositeEditMode,
3828
3841
  Ct as CustomEditableGeojsonLayer,
3829
- ds as CustomMeasureAreaMode,
3830
- fs as CustomMeasureBufferMode,
3842
+ dr as CustomMeasureAreaMode,
3843
+ fr as CustomMeasureBufferMode,
3831
3844
  Ft as CustomMeasureDistanceMode,
3832
3845
  tt as DEFAULT_LASSO_TOOLS_COLORS,
3833
3846
  Jn as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
3834
3847
  Ue as DEFAULT_LASSO_TOOLS_MODES,
3835
3848
  $e as DEFAULT_LASSO_TOOLS_PROPS,
3836
3849
  Te as DEFAULT_MASK_LAYER_PROPS,
3837
- hs as DEFAULT_MEASUREMENT_TOOLS_MODES,
3838
- gs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
3850
+ hr as DEFAULT_MEASUREMENT_TOOLS_MODES,
3851
+ gr as DEFAULT_MEASUREMENT_TOOLS_UNITS,
3839
3852
  Ve as DEFAULT_MEASURE_COLORS,
3840
3853
  $n as DeckGLComponent,
3841
- re as EditableEditType,
3854
+ se as EditableEditType,
3842
3855
  vo as FeaturesModel,
3843
3856
  Mo as FormulaModel,
3844
- De as GmapsBasemap,
3857
+ Re as GmapsBasemap,
3845
3858
  Eo as HistogramModel,
3846
3859
  ve as INTL_UNITS,
3847
- Ss as LassoTools,
3848
- is as LassoToolsProvider,
3860
+ Sr as LassoTools,
3861
+ ir as LassoToolsProvider,
3849
3862
  we as MAPS_BASEMAP,
3850
3863
  he as MAP_LASSO_TOOLS_LAYER_ID,
3851
3864
  Pe as MAP_MASK_LAYER_ID,
3852
3865
  fe as MAP_MEASURE_LAYER_ID,
3853
- ys as MEASUREMENT_TOOLS_UNITS_AREA,
3866
+ yr as MEASUREMENT_TOOLS_UNITS_AREA,
3854
3867
  lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
3855
3868
  ne as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
3856
3869
  fo as MapComponent,
3857
3870
  je as MapMeasurementUnitAuto,
3858
- ms as MapMeasurementUnitTurf,
3871
+ mr as MapMeasurementUnitTurf,
3859
3872
  Wn as MapProvider,
3860
- Ro as MapsProvider,
3873
+ Do as MapsProvider,
3861
3874
  ce as MapsTypes,
3862
- Rs as MeasurementTools,
3863
- _s as MeasurementToolsProvider,
3875
+ Dr as MeasurementTools,
3876
+ _r as MeasurementToolsProvider,
3864
3877
  Lo as RangeModel,
3865
3878
  Co as ScatterModel,
3866
3879
  Po as TableModel,
3867
3880
  Fo as TimeSeriesModel,
3868
3881
  Bo as ZoomControls,
3869
- Do as clientID,
3870
- st as convertMetersTo,
3871
- os as createLassoToolsStore,
3882
+ Ro as clientID,
3883
+ rt as convertMetersTo,
3884
+ or as createLassoToolsStore,
3872
3885
  Gn as createMapStore,
3873
- Ms as createMeasurementToolsStore,
3886
+ Mr as createMeasurementToolsStore,
3874
3887
  ye as formatterTypes,
3875
3888
  En as getCursorDefault,
3876
3889
  uo as getDeckController,
3877
3890
  mo as getFilterValues,
3878
- ss as getLassoToolsLayer,
3879
- vs as getMeasurementToolsLayer,
3891
+ rr as getLassoToolsLayer,
3892
+ vr as getMeasurementToolsLayer,
3880
3893
  Ae as getTextLayerFormattedDistance,
3881
3894
  Tn as getTooltipDefault,
3882
3895
  qo as mappingLegendMeridian,
@@ -3887,27 +3900,27 @@ export {
3887
3900
  go as useCategories,
3888
3901
  kt as useEventManager,
3889
3902
  So as useFeatures,
3890
- ur as useFilters,
3903
+ us as useFilters,
3891
3904
  wo as useFormula,
3892
3905
  _o as useHistogram,
3893
- Mr as useLassoToolsSpatialFilter,
3906
+ Ms as useLassoToolsSpatialFilter,
3894
3907
  K as useLassoToolsState,
3895
3908
  Se as useLayerStore,
3896
- js as useLayers,
3909
+ jr as useLayers,
3897
3910
  xo as useLegend,
3898
3911
  $o as useMapScreenshot,
3899
3912
  x as useMapStore,
3900
3913
  z as useMeasurementToolsState,
3901
3914
  To as useRange,
3902
3915
  ko as useScatter,
3903
- cr as useSource,
3916
+ cs as useSource,
3904
3917
  Oe as useSourceStore,
3905
3918
  po as useSourceWithFilters,
3906
3919
  Uo as useSpatialFilter,
3907
3920
  jo as useStats,
3908
3921
  Oo as useTable,
3909
3922
  Ao as useTimeSeries,
3910
- wr as useViewportSpatialFilter,
3911
- hr as useWidgetModel
3923
+ ws as useViewportSpatialFilter,
3924
+ hs as useWidgetModel
3912
3925
  };
3913
3926
  //# sourceMappingURL=index.js.map