@carto/ps-react-maps 3.5.0-canary.3 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -80,7 +80,7 @@ function vs(r) {
80
80
  }
81
81
  function Ss(r) {
82
82
  const e = R(42);
83
- let t, n, s, o, i, a, l, y, c, p, h, d;
83
+ let t, n, s, o, i, a, l, m, c, p, h, d;
84
84
  e[0] !== r ? ({
85
85
  instanceRef: i,
86
86
  overlayRef: p,
@@ -91,28 +91,28 @@ function Ss(r) {
91
91
  parameters: h,
92
92
  getCursor: n,
93
93
  getTooltip: s,
94
- onLoad: y,
94
+ onLoad: m,
95
95
  onViewStateChange: c,
96
96
  ...d
97
- } = 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] = y, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], y = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
98
- let b, m;
99
- e[13] !== y ? (b = () => {
100
- y({
97
+ } = 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] = m, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
98
+ let b, y;
99
+ e[13] !== m ? (b = () => {
100
+ m({
101
101
  type: "load",
102
102
  value: !1
103
- }), y({
103
+ }), m({
104
104
  type: "deckgl",
105
105
  value: !1
106
106
  });
107
- }, m = [y], e[13] = y, e[14] = b, e[15] = m) : (b = e[14], m = e[15]), z(b, m);
107
+ }, y = [m], e[13] = m, e[14] = b, e[15] = y) : (b = e[14], y = e[15]), z(b, y);
108
108
  let T, f;
109
109
  e[16] !== a ? (f = a.filter(Ts).map(_s), e[16] = a, e[17] = f) : f = e[17], T = f;
110
110
  const g = T, S = i;
111
111
  let _;
112
- e[18] !== y ? (_ = () => y({
112
+ e[18] !== m ? (_ = () => m({
113
113
  type: "deckgl",
114
114
  value: !0
115
- }), e[18] = y, e[19] = _) : _ = e[19];
115
+ }), e[18] = m, e[19] = _) : _ = e[19];
116
116
  let w;
117
117
  e[20] !== h ? (w = {
118
118
  depthTest: !1,
@@ -121,10 +121,10 @@ function Ss(r) {
121
121
  let E;
122
122
  e[22] !== p ? (E = /* @__PURE__ */ N(Es, { overlayRef: p }), e[22] = p, e[23] = E) : E = e[23];
123
123
  let A;
124
- e[24] !== y ? (A = () => y({
124
+ e[24] !== m ? (A = () => m({
125
125
  type: "load",
126
126
  value: !0
127
- }), e[24] = y, e[25] = A) : A = e[25];
127
+ }), e[24] = m, e[25] = A) : A = e[25];
128
128
  let U;
129
129
  e[26] !== l || e[27] !== A ? (U = /* @__PURE__ */ N(Dt, { reuseMaps: !0, mapStyle: l, onLoad: A, onRender: ws }), e[26] = l, e[27] = A, e[28] = U) : U = e[28];
130
130
  let F;
@@ -165,10 +165,10 @@ const Ms = (r) => {
165
165
  const s = t, o = pt();
166
166
  let i, a;
167
167
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
168
- let l, y;
168
+ let l, m;
169
169
  e[3] !== o ? (l = () => (s.setMap(o), () => {
170
170
  s.finalize();
171
- }), y = [s, o], e[3] = o, e[4] = l, e[5] = y) : (l = e[4], y = e[5]), z(l, y);
171
+ }), m = [s, o], e[3] = o, e[4] = l, e[5] = m) : (l = e[4], m = e[5]), z(l, m);
172
172
  let c, p;
173
173
  return e[6] !== r ? (c = () => {
174
174
  s.setProps(r);
@@ -188,20 +188,20 @@ function Ps({
188
188
  },
189
189
  overlayRef: a,
190
190
  parameters: l,
191
- onLoad: y,
191
+ onLoad: m,
192
192
  onViewStateChange: c,
193
193
  ...p
194
194
  }) {
195
- var m, T, f, g, S;
195
+ var y, T, f, g, S;
196
196
  z(() => {
197
- y({
197
+ m({
198
198
  type: "load",
199
199
  value: !1
200
- }), y({
200
+ }), m({
201
201
  type: "deckgl",
202
202
  value: !1
203
203
  });
204
- }, [y]);
204
+ }, [m]);
205
205
  const h = re(() => n.filter((_) => !!(_ != null && _.type)).map(({
206
206
  type: _,
207
207
  props: w
@@ -241,17 +241,17 @@ function Ps({
241
241
  });
242
242
  }, [e, c]);
243
243
  return /* @__PURE__ */ N(xt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft($t, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
244
- lat: ((m = p.initialViewState) == null ? void 0 : m.latitude) ?? 0,
244
+ lat: ((y = p.initialViewState) == null ? void 0 : y.latitude) ?? 0,
245
245
  lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
246
246
  }, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (g = p.initialViewState) == null ? void 0 : g.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
247
- y({
247
+ m({
248
248
  type: "load",
249
249
  value: !0
250
250
  }), b(p.initialViewState);
251
251
  }, onBoundsChanged: (_) => b(d(_)), onZoomChanged: (_) => b(d(_)), children: [
252
252
  /* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
253
253
  /* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: h, onLoad: () => {
254
- y({
254
+ m({
255
255
  type: "deckgl",
256
256
  value: !0
257
257
  });
@@ -272,13 +272,13 @@ function Ls(r) {
272
272
  }
273
273
  function Os(r) {
274
274
  const e = R(46);
275
- let t, n, s, o, i, a, l, y, c, p, h, d;
275
+ let t, n, s, o, i, a, l, m, c, p, h, d;
276
276
  e[0] !== r ? ({
277
277
  instanceRef: n,
278
278
  overlayRef: o,
279
279
  basemap: a,
280
280
  controller: l,
281
- id: y,
281
+ id: m,
282
282
  layers: c,
283
283
  gmapsProps: t,
284
284
  getCursor: p,
@@ -286,8 +286,8 @@ function Os(r) {
286
286
  onLoad: s,
287
287
  onViewStateChange: d,
288
288
  ...i
289
- } = 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] = y, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], y = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
290
- const b = a === void 0 ? J.positron : a, m = l === void 0 ? !0 : l, T = y === void 0 ? "deck-gl-map" : y;
289
+ } = 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] = m, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
290
+ const b = a === void 0 ? J.positron : a, y = l === void 0 ? !0 : l, T = m === void 0 ? "deck-gl-map" : m;
291
291
  let f;
292
292
  e[13] !== c ? (f = c === void 0 ? [] : c, e[13] = c, e[14] = f) : f = e[14];
293
293
  const g = f, S = p === void 0 ? bs : p, _ = h === void 0 ? vs : h, w = d === void 0 ? As : d;
@@ -311,10 +311,10 @@ function Os(r) {
311
311
  s == null || s(j);
312
312
  }, P = [j, s], e[19] = j, e[20] = s, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
313
313
  let L;
314
- return e[23] !== b || e[24] !== m || e[25] !== S || e[26] !== _ || e[27] !== t || e[28] !== T || e[29] !== n || e[30] !== g || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: n, overlayRef: o, controller: m, id: T, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[23] = b, e[24] = m, e[25] = S, e[26] = _, e[27] = t, e[28] = T, e[29] = n, e[30] = g, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
314
+ return e[23] !== b || e[24] !== y || e[25] !== S || e[26] !== _ || e[27] !== t || e[28] !== T || e[29] !== n || e[30] !== g || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: n, overlayRef: o, controller: y, id: T, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[23] = b, e[24] = y, e[25] = S, e[26] = _, e[27] = t, e[28] = T, e[29] = n, e[30] = g, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
315
315
  }
316
316
  let C;
317
- return e[35] !== m || e[36] !== S || e[37] !== _ || e[38] !== T || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: n, overlayRef: o, controller: m, id: T, layers: g, mapStyle: q, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[35] = m, e[36] = S, e[37] = _, e[38] = T, e[39] = n, e[40] = g, e[41] = q, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
317
+ return e[35] !== y || e[36] !== S || e[37] !== _ || e[38] !== T || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: n, overlayRef: o, controller: y, id: T, layers: g, mapStyle: q, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[35] = y, e[36] = S, e[37] = _, e[38] = T, e[39] = n, e[40] = g, e[41] = q, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
318
318
  }
319
319
  function ks(r) {
320
320
  return r;
@@ -408,7 +408,7 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
408
408
  }, pe = yt((r) => ({
409
409
  layers: {},
410
410
  setLayer: (e, t) => r((n) => {
411
- var a, l;
411
+ var l, m;
412
412
  const s = {
413
413
  ...n.layers
414
414
  };
@@ -419,7 +419,10 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
419
419
  const o = s[e] ?? {
420
420
  type: null,
421
421
  props: {}
422
- }, i = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((y, c) => (y.some((p) => p.equals(c)) || y.push(c), y), []);
422
+ }, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((c, p) => (c.some((h) => h.equals(p)) || c.push(p), c), []), a = o.legend || t.legend ? {
423
+ ...o.legend,
424
+ ...t.legend
425
+ } : void 0;
423
426
  return s[e] = {
424
427
  ...o,
425
428
  ...t,
@@ -429,14 +432,11 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
429
432
  ...t.props,
430
433
  updateTriggers: {
431
434
  ...o.props.updateTriggers ?? {},
432
- ...((l = t.props) == null ? void 0 : l.updateTriggers) ?? {}
435
+ ...((m = t.props) == null ? void 0 : m.updateTriggers) ?? {}
433
436
  },
434
437
  extensions: i
435
438
  },
436
- legend: {
437
- ...o.legend,
438
- ...t.legend
439
- }
439
+ legend: a
440
440
  }, {
441
441
  layers: s
442
442
  };
@@ -445,7 +445,9 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
445
445
  const n = {
446
446
  ...t.layers
447
447
  };
448
- return delete n[e], n;
448
+ return delete n[e], {
449
+ layers: n
450
+ };
449
451
  })
450
452
  })), Rs = {
451
453
  transitionDuration: "auto",
@@ -478,13 +480,13 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
478
480
  type: a
479
481
  } = ye[i.maps[s].basemap], {
480
482
  type: l
481
- } = ye[o], y = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
483
+ } = ye[o], m = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
482
484
  return {
483
485
  maps: {
484
486
  ...i.maps,
485
487
  [s]: {
486
488
  ...i.maps[s],
487
- isLoaded: y,
489
+ isLoaded: m,
488
490
  basemap: o
489
491
  }
490
492
  }
@@ -520,27 +522,27 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
520
522
  return a == null ? void 0 : a.getViewports(o);
521
523
  },
522
524
  getViewport: (s, o = 0, i) => {
523
- var y;
525
+ var m;
524
526
  const l = n().getDeckInstance(s);
525
- return (y = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : y[o];
527
+ return (m = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : m[o];
526
528
  },
527
529
  addLayers: (s, o) => t((i) => {
528
530
  var c;
529
531
  const a = {
530
532
  ...i.maps
531
- }, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], y = /* @__PURE__ */ new Set([...l, ...o]);
533
+ }, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], m = /* @__PURE__ */ new Set([...l, ...o]);
532
534
  return a[s] = {
533
535
  ...a[s],
534
- layers: [...y]
536
+ layers: [...m]
535
537
  }, {
536
538
  maps: a
537
539
  };
538
540
  }),
539
541
  removeLayers: (s, o) => t((i) => {
540
- var y;
542
+ var m;
541
543
  const a = {
542
544
  ...i.maps
543
- }, l = ((y = a[s]) == null ? void 0 : y.layers) ?? [];
545
+ }, l = ((m = a[s]) == null ? void 0 : m.layers) ?? [];
544
546
  return a[s] = {
545
547
  ...a[s],
546
548
  layers: l.filter((c) => !o.includes(c))
@@ -693,18 +695,18 @@ function Vs() {
693
695
  return Array.isArray(f) ? [] : {};
694
696
  }
695
697
  function a(f, g) {
696
- return g.clone !== !1 && g.isMergeableObject(f) ? m(i(f), f, g) : f;
698
+ return g.clone !== !1 && g.isMergeableObject(f) ? y(i(f), f, g) : f;
697
699
  }
698
700
  function l(f, g, S) {
699
701
  return f.concat(g).map(function(_) {
700
702
  return a(_, S);
701
703
  });
702
704
  }
703
- function y(f, g) {
705
+ function m(f, g) {
704
706
  if (!g.customMerge)
705
- return m;
707
+ return y;
706
708
  var S = g.customMerge(f);
707
- return typeof S == "function" ? S : m;
709
+ return typeof S == "function" ? S : y;
708
710
  }
709
711
  function c(f) {
710
712
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
@@ -729,22 +731,22 @@ function Vs() {
729
731
  return S.isMergeableObject(f) && p(f).forEach(function(w) {
730
732
  _[w] = a(f[w], S);
731
733
  }), p(g).forEach(function(w) {
732
- d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = y(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
734
+ d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = m(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
733
735
  }), _;
734
736
  }
735
- function m(f, g, S) {
737
+ function y(f, g, S) {
736
738
  S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
737
739
  var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
738
740
  return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
739
741
  }
740
- m.all = function(g, S) {
742
+ y.all = function(g, S) {
741
743
  if (!Array.isArray(g))
742
744
  throw new Error("first argument should be an array");
743
745
  return g.reduce(function(_, w) {
744
- return m(_, w, S);
746
+ return y(_, w, S);
745
747
  }, {});
746
748
  };
747
- var T = m;
749
+ var T = y;
748
750
  return qe = T, qe;
749
751
  }
750
752
  var Is = Vs();
@@ -821,7 +823,7 @@ function Hs({
821
823
  getFillColor: n,
822
824
  getEditHandlePointColor: s.fill,
823
825
  getEditHandlePointOutlineColor: s.outline,
824
- dataComparator: (l, y) => l.features[0] === y.features[0]
826
+ dataComparator: (l, m) => l.features[0] === m.features[0]
825
827
  });
826
828
  return fe(i, o);
827
829
  }
@@ -832,14 +834,14 @@ const Gs = (r) => ze()((e) => ({
832
834
  mapId: i,
833
835
  modeInstance: a = new $e.polygon.mode(),
834
836
  modes: l = $e,
835
- modeSelected: y = $e.polygon.value,
837
+ modeSelected: m = $e.polygon.value,
836
838
  values: c = {}
837
839
  } = s;
838
840
  return n[i] = {
839
841
  enabled: o,
840
842
  modeInstance: a,
841
843
  modes: l,
842
- modeSelected: y,
844
+ modeSelected: m,
843
845
  values: c
844
846
  }, n;
845
847
  }, {}),
@@ -949,17 +951,17 @@ function Qs({
949
951
  }), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
950
952
  var b;
951
953
  return (b = d.data[r]) == null ? void 0 : b.modeSelected;
952
- }), l = G((d) => d.setModeSelected), y = G((d) => {
954
+ }), l = G((d) => d.setModeSelected), m = G((d) => {
953
955
  var b;
954
956
  return (b = d.data[r]) == null ? void 0 : b.modes;
955
957
  }), c = G((d) => d.setModeInstance);
956
958
  z(() => {
957
- const d = y[a];
959
+ const d = m[a];
958
960
  if (d && t) {
959
961
  const b = d.mode;
960
962
  c(r, new b());
961
963
  }
962
- }, [t, r, a, y, c]);
964
+ }, [t, r, a, m, c]);
963
965
  const [
964
966
  p
965
967
  // , draw
@@ -982,7 +984,7 @@ function Qs({
982
984
  return e({
983
985
  mapId: r,
984
986
  enabled: t,
985
- modes: y,
987
+ modes: m,
986
988
  modeSelected: a,
987
989
  values: {
988
990
  mask: p
@@ -1018,14 +1020,14 @@ function Oe({
1018
1020
  }
1019
1021
  }) {
1020
1022
  const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
1021
- let l, y;
1023
+ let l, m;
1022
1024
  if (a) {
1023
1025
  const c = r < (n ?? nt);
1024
1026
  let p = c ? V.meter : V.kilometer;
1025
- l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile), y = st(r, p);
1027
+ l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile), m = st(r, p);
1026
1028
  } else
1027
- l = me[e], y = st(r, e);
1028
- return `${gt(y, t, {
1029
+ l = me[e], m = st(r, e);
1030
+ return `${gt(m, t, {
1029
1031
  style: "unit",
1030
1032
  unit: l,
1031
1033
  unitDisplay: "short",
@@ -1452,31 +1454,31 @@ function Mt(r) {
1452
1454
  } = r;
1453
1455
  let s;
1454
1456
  e[0] !== t ? (s = (b) => {
1455
- var m;
1456
- return (m = b.maps[t]) == null ? void 0 : m.basemap;
1457
+ var y;
1458
+ return (y = b.maps[t]) == null ? void 0 : y.basemap;
1457
1459
  }, e[0] = t, e[1] = s) : s = e[1];
1458
1460
  const o = x(s);
1459
1461
  let i;
1460
1462
  e[2] !== t ? (i = (b) => {
1461
- var m;
1462
- return (m = b.maps[t]) == null ? void 0 : m.isLoaded;
1463
+ var y;
1464
+ return (y = b.maps[t]) == null ? void 0 : y.isLoaded;
1463
1465
  }, e[2] = t, e[3] = i) : i = e[3];
1464
- const a = x(i), l = x(nn), y = pe(sn), {
1466
+ const a = x(i), l = x(nn), m = pe(sn), {
1465
1467
  type: c
1466
1468
  } = ye[o], p = c === te.googleMaps;
1467
1469
  let h, d;
1468
- e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== y ? (h = () => {
1470
+ e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== m ? (h = () => {
1469
1471
  let b = null;
1470
1472
  if (p && a) {
1471
- const m = l(t);
1472
- b = new es(m.getDiv(), {});
1473
+ const y = l(t);
1474
+ b = new es(y.getDiv(), {});
1473
1475
  }
1474
- y(n, {
1476
+ m(n, {
1475
1477
  props: {
1476
1478
  eventManager: b
1477
1479
  }
1478
1480
  });
1479
- }, d = [l, p, a, n, t, y], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = y, e[10] = h, e[11] = d) : (h = e[10], d = e[11]), z(h, d);
1481
+ }, d = [l, p, a, n, t, m], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = m, e[10] = h, e[11] = d) : (h = e[10], d = e[11]), z(h, d);
1480
1482
  }
1481
1483
  function sn(r) {
1482
1484
  return r.setLayer;
@@ -1504,13 +1506,13 @@ function on({
1504
1506
  }), a = G((M) => M.setEnabled), l = G((M) => {
1505
1507
  var k;
1506
1508
  return (k = M.data[e]) == null ? void 0 : k.values;
1507
- }), y = G((M) => M.setValue), c = G((M) => {
1509
+ }), m = G((M) => M.setValue), c = G((M) => {
1508
1510
  var k;
1509
1511
  return (k = M.data[e]) == null ? void 0 : k.modeInstance;
1510
1512
  }), p = G((M) => {
1511
1513
  var k;
1512
1514
  return (k = M.data[e]) == null ? void 0 : k.modeSelected;
1513
- }), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers), m = x(ht((M) => {
1515
+ }), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers), y = x(ht((M) => {
1514
1516
  var k;
1515
1517
  return (k = M.maps[e]) == null ? void 0 : k.layers.filter((u) => !rn.includes(u));
1516
1518
  })), T = x((M) => M.getDeckInstance), f = Me({});
@@ -1559,14 +1561,14 @@ function on({
1559
1561
  var C;
1560
1562
  (C = u.properties).label ?? (C.label = `${n == null ? void 0 : n.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
1561
1563
  const P = u.id ?? crypto.randomUUID();
1562
- y(e, P, {
1564
+ m(e, P, {
1563
1565
  geometry: u.geometry,
1564
1566
  properties: u.properties,
1565
1567
  // visible: true,
1566
1568
  type: o
1567
1569
  });
1568
1570
  }), q());
1569
- }, [o, q, n == null ? void 0 : n.mask, e, p, y]);
1571
+ }, [o, q, n == null ? void 0 : n.mask, e, p, m]);
1570
1572
  return z(() => {
1571
1573
  const M = i, {
1572
1574
  border: k,
@@ -1615,7 +1617,7 @@ function on({
1615
1617
  b(e, [_e.id]);
1616
1618
  };
1617
1619
  }, [d, e, S, _, b, h]), z(() => {
1618
- m == null || m.forEach((M) => {
1620
+ y == null || y.forEach((M) => {
1619
1621
  var v;
1620
1622
  const k = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
1621
1623
  i && (f.current[M] = k == null ? void 0 : k.props.pickable);
@@ -1628,7 +1630,7 @@ function on({
1628
1630
  }
1629
1631
  });
1630
1632
  });
1631
- }, [i, T, e, m, _.length, h]), r;
1633
+ }, [i, T, e, y, _.length, h]), r;
1632
1634
  }
1633
1635
  on.Controls = Qs;
1634
1636
  function an({
@@ -1659,7 +1661,7 @@ function ln({
1659
1661
  pointColor: a,
1660
1662
  textOptions: l
1661
1663
  }) {
1662
- const y = fe(e, {
1664
+ const m = fe(e, {
1663
1665
  visible: n,
1664
1666
  pickable: n,
1665
1667
  modeConfig: {
@@ -1705,7 +1707,7 @@ function ln({
1705
1707
  getEditHandlePointColor: a,
1706
1708
  getEditHandlePointOutlineColor: i
1707
1709
  });
1708
- return fe(c, y);
1710
+ return fe(c, m);
1709
1711
  }
1710
1712
  const cn = (r) => ze()((e) => ({
1711
1713
  measurements: r.reduce((n, s) => {
@@ -1714,25 +1716,25 @@ const cn = (r) => ze()((e) => ({
1714
1716
  modeSelected: i,
1715
1717
  modes: a = en,
1716
1718
  units: l = tn,
1717
- distance: y = 0,
1719
+ distance: m = 0,
1718
1720
  finished: c = !1,
1719
1721
  locale: p = "en",
1720
1722
  positions: h = [],
1721
1723
  clearLayerOnStart: d = !1,
1722
1724
  unit: b = Ie["m-km"],
1723
- enabled: m = !1
1725
+ enabled: y = !1
1724
1726
  } = s;
1725
1727
  return n[o] = {
1726
1728
  modes: a,
1727
1729
  units: l,
1728
1730
  modeSelected: i,
1729
- distance: y,
1731
+ distance: m,
1730
1732
  finished: c,
1731
1733
  locale: p,
1732
1734
  positions: h,
1733
1735
  unit: b,
1734
1736
  clearLayerOnStart: d,
1735
- enabled: m
1737
+ enabled: y
1736
1738
  }, n;
1737
1739
  }, {}),
1738
1740
  mode: Et,
@@ -1854,16 +1856,16 @@ function Lt(r) {
1854
1856
  const i = I(o);
1855
1857
  let a;
1856
1858
  e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
1857
- const l = I(a), y = I(bn);
1859
+ const l = I(a), m = I(bn);
1858
1860
  let c;
1859
- e[6] !== y || e[7] !== t ? (c = (D) => y(t, D), e[6] = y, e[7] = t, e[8] = c) : c = e[8];
1861
+ e[6] !== m || e[7] !== t ? (c = (D) => m(t, D), e[6] = m, e[7] = t, e[8] = c) : c = e[8];
1860
1862
  const p = c;
1861
1863
  let h;
1862
1864
  e[9] !== t ? (h = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = h) : h = e[10];
1863
1865
  const d = I(h);
1864
1866
  let b;
1865
1867
  e[11] !== t ? (b = (D) => D.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
1866
- const m = I(b), T = I(gn);
1868
+ const y = I(b), T = I(gn);
1867
1869
  let f;
1868
1870
  e[13] !== T || e[14] !== t ? (f = (D) => T(t, D), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
1869
1871
  const g = f;
@@ -1916,13 +1918,13 @@ function Lt(r) {
1916
1918
  }, e[50] = g, e[51] = Se) : Se = e[51];
1917
1919
  const De = Se;
1918
1920
  let we;
1919
- return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !== m || e[56] !== F || e[57] !== k || e[58] !== L || e[59] !== _ || e[60] !== s || e[61] !== B || e[62] !== p || e[63] !== g || e[64] !== $ || e[65] !== P || e[66] !== W || e[67] !== A || e[68] !== de || e[69] !== Ce || e[70] !== De || e[71] !== ke || e[72] !== i ? (we = {
1921
+ return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !== y || e[56] !== F || e[57] !== k || e[58] !== L || e[59] !== _ || e[60] !== s || e[61] !== B || e[62] !== p || e[63] !== g || e[64] !== $ || e[65] !== P || e[66] !== W || e[67] !== A || e[68] !== de || e[69] !== Ce || e[70] !== De || e[71] !== ke || e[72] !== i ? (we = {
1920
1922
  modes: s,
1921
1923
  units: i,
1922
1924
  distance: l,
1923
1925
  clearLayerOnStart: d,
1924
1926
  modeSelected: _,
1925
- enabled: m,
1927
+ enabled: y,
1926
1928
  finished: F,
1927
1929
  locale: k,
1928
1930
  modeInstance: L,
@@ -1938,7 +1940,7 @@ function Lt(r) {
1938
1940
  toggleLayer: De,
1939
1941
  clearLayer: Fe,
1940
1942
  setModeInstance: W
1941
- }, e[52] = Fe, e[53] = d, e[54] = l, e[55] = m, e[56] = F, e[57] = k, e[58] = L, e[59] = _, e[60] = s, e[61] = B, e[62] = p, e[63] = g, e[64] = $, e[65] = P, e[66] = W, e[67] = A, e[68] = de, e[69] = Ce, e[70] = De, e[71] = ke, e[72] = i, e[73] = we) : we = e[73], we;
1943
+ }, e[52] = Fe, e[53] = d, e[54] = l, e[55] = y, e[56] = F, e[57] = k, e[58] = L, e[59] = _, e[60] = s, e[61] = B, e[62] = p, e[63] = g, e[64] = $, e[65] = P, e[66] = W, e[67] = A, e[68] = de, e[69] = Ce, e[70] = De, e[71] = ke, e[72] = i, e[73] = we) : we = e[73], we;
1942
1944
  }
1943
1945
  function dn(r) {
1944
1946
  return r.setUnit;
@@ -1978,13 +1980,13 @@ function vn(r) {
1978
1980
  modes: i,
1979
1981
  units: a,
1980
1982
  distance: l,
1981
- setDistance: y,
1983
+ setDistance: m,
1982
1984
  clearLayerOnStart: c,
1983
1985
  modeSelected: p,
1984
1986
  setModeSelected: h,
1985
1987
  enabled: d,
1986
1988
  setEnabled: b,
1987
- finished: m,
1989
+ finished: y,
1988
1990
  setFinished: T,
1989
1991
  locale: f,
1990
1992
  setLocale: g,
@@ -2010,16 +2012,16 @@ function vn(r) {
2010
2012
  let $;
2011
2013
  e[7] !== p || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== E ? ($ = [i, p, E, _, b], e[7] = p, e[8] = i, e[9] = b, e[10] = _, e[11] = E, e[12] = $) : $ = e[12], z(q, $);
2012
2014
  let M;
2013
- e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== m ? (M = (P) => {
2014
- P && (c || !m) && F(), j(P);
2015
- }, e[13] = j, e[14] = F, e[15] = c, e[16] = m, e[17] = M) : M = e[17];
2015
+ e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== y ? (M = (P) => {
2016
+ P && (c || !y) && F(), j(P);
2017
+ }, e[13] = j, e[14] = F, e[15] = c, e[16] = y, e[17] = M) : M = e[17];
2016
2018
  const k = M, u = !!c;
2017
2019
  let v;
2018
- return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !== m || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== y || e[30] !== b || e[31] !== T || e[32] !== g || e[33] !== h || e[34] !== E || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
2020
+ return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !== y || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== m || e[30] !== b || e[31] !== T || e[32] !== g || e[33] !== h || e[34] !== E || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
2019
2021
  mapId: t,
2020
2022
  distance: l,
2021
2023
  enabled: d,
2022
- finished: m,
2024
+ finished: y,
2023
2025
  locale: f,
2024
2026
  positions: w,
2025
2027
  unit: A,
@@ -2035,7 +2037,7 @@ function vn(r) {
2035
2037
  }),
2036
2038
  modeInstance: S,
2037
2039
  setModeSelected: h,
2038
- setDistance: y,
2040
+ setDistance: m,
2039
2041
  setFinished: T,
2040
2042
  setLocale: g,
2041
2043
  setPositions: E,
@@ -2043,7 +2045,7 @@ function vn(r) {
2043
2045
  setEnabled: b,
2044
2046
  toggleLayer: k,
2045
2047
  clearLayer: F
2046
- }), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] = m, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = y, e[30] = b, e[31] = T, e[32] = g, e[33] = h, e[34] = E, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
2048
+ }), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] = y, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = m, e[30] = b, e[31] = T, e[32] = g, e[33] = h, e[34] = E, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
2047
2049
  }
2048
2050
  const Sn = [ne];
2049
2051
  function wn({
@@ -2062,23 +2064,23 @@ function wn({
2062
2064
  clearLayerOnStart: i,
2063
2065
  enabled: a,
2064
2066
  finished: l,
2065
- setFinished: y,
2067
+ setFinished: m,
2066
2068
  locale: c,
2067
2069
  setPositions: p,
2068
2070
  unit: h,
2069
2071
  modeInstance: d
2070
2072
  } = Lt({
2071
2073
  mapId: e
2072
- }), b = pe((w) => w.setLayer), m = x((w) => w.addLayers), T = x((w) => w.removeLayers), f = x(ht((w) => {
2074
+ }), b = pe((w) => w.setLayer), y = x((w) => w.addLayers), T = x((w) => w.removeLayers), f = x(ht((w) => {
2073
2075
  var E;
2074
2076
  return (E = w.maps[e]) == null ? void 0 : E.layers.filter((A) => !Sn.includes(A));
2075
2077
  })), g = x((w) => w.getDeckInstance), S = Me({});
2076
2078
  Mt({
2077
2079
  mapId: e,
2078
2080
  layerId: ne
2079
- }), z(() => (a && m(e, [ne]), () => {
2081
+ }), z(() => (a && y(e, [ne]), () => {
2080
2082
  T(e, [ne]);
2081
- }), [m, i, e, T, a]), z(() => {
2083
+ }), [y, i, e, T, a]), z(() => {
2082
2084
  f == null || f.forEach((w) => {
2083
2085
  var U;
2084
2086
  const E = (U = g(e)) == null ? void 0 : U.props.layers.find((F) => F.props.id === w);
@@ -2099,10 +2101,10 @@ function wn({
2099
2101
  d.resetClickSequence();
2100
2102
  return;
2101
2103
  }
2102
- w === Y.addPosition && o(E.distance), y(!!E.finished);
2104
+ w === Y.addPosition && o(E.distance), m(!!E.finished);
2103
2105
  const A = E.positions;
2104
2106
  A != null && A.length && p(A);
2105
- }, [d, o, y, p]);
2107
+ }, [d, o, m, p]);
2106
2108
  return z(() => {
2107
2109
  const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, A = an({
2108
2110
  layerProps: {
@@ -2127,14 +2129,14 @@ function _n(r) {
2127
2129
  mapId: t
2128
2130
  } = r;
2129
2131
  let n;
2130
- e[0] !== t ? (n = (y) => y.maps[t], e[0] = t, e[1] = n) : n = e[1];
2132
+ e[0] !== t ? (n = (m) => m.maps[t], e[0] = t, e[1] = n) : n = e[1];
2131
2133
  const {
2132
2134
  layers: s
2133
2135
  } = x(n), o = pe(En);
2134
2136
  let i, a;
2135
2137
  if (e[2] !== o || e[3] !== s) {
2136
- let y;
2137
- e[5] !== o ? (y = (c) => o[c], e[5] = o, e[6] = y) : y = e[6], a = s.map(y).filter(Tn), e[2] = o, e[3] = s, e[4] = a;
2138
+ let m;
2139
+ e[5] !== o ? (m = (c) => o[c], e[5] = o, e[6] = m) : m = e[6], a = s.map(m).filter(Tn), e[2] = o, e[3] = s, e[4] = a;
2138
2140
  } else
2139
2141
  a = e[4];
2140
2142
  return i = a, i;
@@ -2165,13 +2167,13 @@ function Br(r) {
2165
2167
  const a = x(i);
2166
2168
  let l;
2167
2169
  e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
2168
- const y = x(l);
2170
+ const m = x(l);
2169
2171
  let c;
2170
2172
  e[9] !== t ? (c = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = c) : c = e[10];
2171
2173
  const p = x(c), h = Me(null);
2172
2174
  let d;
2173
2175
  e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
2174
- const b = x(d), m = x(Cn), T = x(An), f = x(kn), g = x(On), S = x(Ln);
2176
+ const b = x(d), y = x(Cn), T = x(An), f = x(kn), g = x(On), S = x(Ln);
2175
2177
  let _;
2176
2178
  e[13] !== t ? (_ = {
2177
2179
  mapId: t
@@ -2198,11 +2200,11 @@ function Br(r) {
2198
2200
  }, e[22] = t, e[23] = n, e[24] = f, e[25] = S, e[26] = q) : q = e[26];
2199
2201
  const $ = q;
2200
2202
  let M;
2201
- e[27] !== m || e[28] !== t || e[29] !== o || e[30] !== g ? (M = (L) => {
2203
+ e[27] !== y || e[28] !== t || e[29] !== o || e[30] !== g ? (M = (L) => {
2202
2204
  var W, Z;
2203
- const O = (W = m(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Pn));
2205
+ const O = (W = y(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Pn));
2204
2206
  g(t, H), (Z = o.onAfterRender) == null || Z.call(o, L);
2205
- }, e[27] = m, e[28] = t, e[29] = o, e[30] = g, e[31] = M) : M = e[31];
2207
+ }, e[27] = y, e[28] = t, e[29] = o, e[30] = g, e[31] = M) : M = e[31];
2206
2208
  const k = M, u = o.onDragEnd;
2207
2209
  let v;
2208
2210
  e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
@@ -2211,7 +2213,7 @@ function Br(r) {
2211
2213
  }, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
2212
2214
  const P = v;
2213
2215
  let C;
2214
- return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== y || e[44] !== p || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: y, overlayRef: p, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = k, e[39] = P, e[40] = $, e[41] = j, e[42] = t, e[43] = y, e[44] = p, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
2216
+ return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== m || e[44] !== p || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: m, overlayRef: p, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = k, e[39] = P, e[40] = $, e[41] = j, e[42] = t, e[43] = m, e[44] = p, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
2215
2217
  }
2216
2218
  function Pn(r) {
2217
2219
  return r == null ? void 0 : r.isLoaded;
@@ -2256,7 +2258,7 @@ function Fn() {
2256
2258
  formData: "FormData" in a,
2257
2259
  arrayBuffer: "ArrayBuffer" in a
2258
2260
  };
2259
- function y(u) {
2261
+ function m(u) {
2260
2262
  return u && DataView.prototype.isPrototypeOf(u);
2261
2263
  }
2262
2264
  if (l.arrayBuffer)
@@ -2292,8 +2294,8 @@ function Fn() {
2292
2294
  return v;
2293
2295
  }), v;
2294
2296
  }
2295
- function m(u) {
2296
- this.map = {}, u instanceof m ? u.forEach(function(v, P) {
2297
+ function y(u) {
2298
+ this.map = {}, u instanceof y ? u.forEach(function(v, P) {
2297
2299
  this.append(P, v);
2298
2300
  }, this) : Array.isArray(u) ? u.forEach(function(v) {
2299
2301
  if (v.length != 2)
@@ -2303,37 +2305,37 @@ function Fn() {
2303
2305
  this.append(v, u[v]);
2304
2306
  }, this);
2305
2307
  }
2306
- m.prototype.append = function(u, v) {
2308
+ y.prototype.append = function(u, v) {
2307
2309
  u = h(u), v = d(v);
2308
2310
  var P = this.map[u];
2309
2311
  this.map[u] = P ? P + ", " + v : v;
2310
- }, m.prototype.delete = function(u) {
2312
+ }, y.prototype.delete = function(u) {
2311
2313
  delete this.map[h(u)];
2312
- }, m.prototype.get = function(u) {
2314
+ }, y.prototype.get = function(u) {
2313
2315
  return u = h(u), this.has(u) ? this.map[u] : null;
2314
- }, m.prototype.has = function(u) {
2316
+ }, y.prototype.has = function(u) {
2315
2317
  return this.map.hasOwnProperty(h(u));
2316
- }, m.prototype.set = function(u, v) {
2318
+ }, y.prototype.set = function(u, v) {
2317
2319
  this.map[h(u)] = d(v);
2318
- }, m.prototype.forEach = function(u, v) {
2320
+ }, y.prototype.forEach = function(u, v) {
2319
2321
  for (var P in this.map)
2320
2322
  this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
2321
- }, m.prototype.keys = function() {
2323
+ }, y.prototype.keys = function() {
2322
2324
  var u = [];
2323
2325
  return this.forEach(function(v, P) {
2324
2326
  u.push(P);
2325
2327
  }), b(u);
2326
- }, m.prototype.values = function() {
2328
+ }, y.prototype.values = function() {
2327
2329
  var u = [];
2328
2330
  return this.forEach(function(v) {
2329
2331
  u.push(v);
2330
2332
  }), b(u);
2331
- }, m.prototype.entries = function() {
2333
+ }, y.prototype.entries = function() {
2332
2334
  var u = [];
2333
2335
  return this.forEach(function(v, P) {
2334
2336
  u.push([P, v]);
2335
2337
  }), b(u);
2336
- }, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
2338
+ }, l.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
2337
2339
  function T(u) {
2338
2340
  if (!u._noBody) {
2339
2341
  if (u.bodyUsed)
@@ -2371,7 +2373,7 @@ function Fn() {
2371
2373
  }
2372
2374
  function E() {
2373
2375
  return this.bodyUsed = !1, this._initBody = function(u) {
2374
- this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && y(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2376
+ this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && m(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2375
2377
  }, l.blob && (this.blob = function() {
2376
2378
  var u = T(this);
2377
2379
  if (u)
@@ -2427,10 +2429,10 @@ function Fn() {
2427
2429
  if (u instanceof F) {
2428
2430
  if (u.bodyUsed)
2429
2431
  throw new TypeError("Already read");
2430
- this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new m(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
2432
+ this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new y(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
2431
2433
  } else
2432
2434
  this.url = String(u);
2433
- if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new m(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
2435
+ if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new y(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
2434
2436
  if ("AbortController" in a) {
2435
2437
  var O = new AbortController();
2436
2438
  return O.signal;
@@ -2460,7 +2462,7 @@ function Fn() {
2460
2462
  }), v;
2461
2463
  }
2462
2464
  function q(u) {
2463
- var v = new m(), P = u.replace(/\r?\n[\t ]+/g, " ");
2465
+ var v = new y(), P = u.replace(/\r?\n[\t ]+/g, " ");
2464
2466
  return P.split("\r").map(function(C) {
2465
2467
  return C.indexOf(`
2466
2468
  `) === 0 ? C.substr(1, C.length) : C;
@@ -2482,13 +2484,13 @@ function Fn() {
2482
2484
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2483
2485
  if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
2484
2486
  throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
2485
- this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new m(v.headers), this.url = v.url || "", this._initBody(u);
2487
+ this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new y(v.headers), this.url = v.url || "", this._initBody(u);
2486
2488
  }
2487
2489
  E.call($.prototype), $.prototype.clone = function() {
2488
2490
  return new $(this._bodyInit, {
2489
2491
  status: this.status,
2490
2492
  statusText: this.statusText,
2491
- headers: new m(this.headers),
2493
+ headers: new y(this.headers),
2492
2494
  url: this.url
2493
2495
  });
2494
2496
  }, $.error = function() {
@@ -2549,7 +2551,7 @@ function Fn() {
2549
2551
  return B;
2550
2552
  }
2551
2553
  }
2552
- if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof m || a.Headers && v.headers instanceof a.Headers)) {
2554
+ if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof y || a.Headers && v.headers instanceof a.Headers)) {
2553
2555
  var Z = [];
2554
2556
  Object.getOwnPropertyNames(v.headers).forEach(function(B) {
2555
2557
  Z.push(h(B)), O.setRequestHeader(B, d(v.headers[B]));
@@ -2565,7 +2567,7 @@ function Fn() {
2565
2567
  }), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
2566
2568
  });
2567
2569
  }
2568
- return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = m, a.Request = F, a.Response = $), i.Headers = m, i.Request = F, i.Response = $, i.fetch = k, i;
2570
+ return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = y, a.Request = F, a.Response = $), i.Headers = y, i.Request = F, i.Response = $, i.fetch = k, i;
2569
2571
  })({});
2570
2572
  })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
2571
2573
  var s = t.fetch ? t : n;
@@ -2615,17 +2617,17 @@ function jn() {
2615
2617
  return Array.isArray(f) ? [] : {};
2616
2618
  }
2617
2619
  function a(f, g) {
2618
- return g.clone !== !1 && g.isMergeableObject(f) ? m(i(f), f, g) : f;
2620
+ return g.clone !== !1 && g.isMergeableObject(f) ? y(i(f), f, g) : f;
2619
2621
  }
2620
2622
  function l(f, g, S) {
2621
2623
  return f.concat(g).map(function(_) {
2622
2624
  return a(_, S);
2623
2625
  });
2624
2626
  }
2625
- function y(f, g) {
2626
- if (!g.customMerge) return m;
2627
+ function m(f, g) {
2628
+ if (!g.customMerge) return y;
2627
2629
  var S = g.customMerge(f);
2628
- return typeof S == "function" ? S : m;
2630
+ return typeof S == "function" ? S : y;
2629
2631
  }
2630
2632
  function c(f) {
2631
2633
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
@@ -2650,21 +2652,21 @@ function jn() {
2650
2652
  return S.isMergeableObject(f) && p(f).forEach(function(w) {
2651
2653
  _[w] = a(f[w], S);
2652
2654
  }), p(g).forEach(function(w) {
2653
- d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = y(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
2655
+ d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = m(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
2654
2656
  }), _;
2655
2657
  }
2656
- function m(f, g, S) {
2658
+ function y(f, g, S) {
2657
2659
  S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
2658
2660
  var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
2659
2661
  return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
2660
2662
  }
2661
- m.all = function(f, g) {
2663
+ y.all = function(f, g) {
2662
2664
  if (!Array.isArray(f)) throw new Error("first argument should be an array");
2663
2665
  return f.reduce(function(S, _) {
2664
- return m(S, _, g);
2666
+ return y(S, _, g);
2665
2667
  }, {});
2666
2668
  };
2667
- var T = m;
2669
+ var T = y;
2668
2670
  return Be = T, Be;
2669
2671
  }
2670
2672
  var Bn = jn();
@@ -2726,11 +2728,11 @@ async function kt({
2726
2728
  },
2727
2729
  ...l
2728
2730
  }) {
2729
- let y = $n({
2731
+ let m = $n({
2730
2732
  url: i,
2731
2733
  params: o
2732
2734
  }), c = e, p = s;
2733
- s === ue.get && y.length > a && (c = o, p = ue.post, y = i);
2735
+ s === ue.get && m.length > a && (c = o, p = ue.post, m = i);
2734
2736
  const h = In({
2735
2737
  body: c,
2736
2738
  accessToken: t ?? (n == null ? void 0 : n.accessToken),
@@ -2738,7 +2740,7 @@ async function kt({
2738
2740
  ...l
2739
2741
  });
2740
2742
  r && (h.signal = r);
2741
- const d = await Rn(y, h);
2743
+ const d = await Rn(m, h);
2742
2744
  if (!d.ok) {
2743
2745
  const b = await d.text();
2744
2746
  return Promise.reject(new Error(b));
@@ -2760,13 +2762,13 @@ const Pe = yt()(ys((r) => ({
2760
2762
  const i = s[e], {
2761
2763
  apiBaseUrl: a = We,
2762
2764
  clientId: l = Un,
2763
- apiVersion: y = Ze,
2765
+ apiVersion: m = Ze,
2764
2766
  ...c
2765
2767
  } = t, p = {
2766
2768
  ...i,
2767
2769
  ...c,
2768
2770
  apiBaseUrl: a,
2769
- apiVersion: y,
2771
+ apiVersion: m,
2770
2772
  clientId: l
2771
2773
  }, h = Gn({
2772
2774
  source: p
@@ -2926,7 +2928,7 @@ function zn(r) {
2926
2928
  enabled: a,
2927
2929
  ...l
2928
2930
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
2929
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2931
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2930
2932
  let h;
2931
2933
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["categories", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
2932
2934
  let d;
@@ -2940,14 +2942,14 @@ function zn(r) {
2940
2942
  signal: f
2941
2943
  });
2942
2944
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
2943
- const b = !!p && y;
2944
- let m;
2945
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
2945
+ const b = !!p && m;
2946
+ let y;
2947
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
2946
2948
  queryKey: h,
2947
2949
  queryFn: d,
2948
2950
  enabled: b,
2949
2951
  ...l
2950
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
2952
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
2951
2953
  }
2952
2954
  function Nr(r) {
2953
2955
  const e = R(6);
@@ -2974,7 +2976,7 @@ function Qn(r) {
2974
2976
  enabled: a,
2975
2977
  ...l
2976
2978
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
2977
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2979
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
2978
2980
  let h;
2979
2981
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["features", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
2980
2982
  let d;
@@ -2988,14 +2990,14 @@ function Qn(r) {
2988
2990
  signal: f
2989
2991
  });
2990
2992
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
2991
- const b = !!p && y;
2992
- let m;
2993
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
2993
+ const b = !!p && m;
2994
+ let y;
2995
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
2994
2996
  queryKey: h,
2995
2997
  queryFn: d,
2996
2998
  enabled: b,
2997
2999
  ...l
2998
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3000
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
2999
3001
  }
3000
3002
  function Hr(r) {
3001
3003
  const e = R(6);
@@ -3022,7 +3024,7 @@ function Wn(r) {
3022
3024
  enabled: a,
3023
3025
  ...l
3024
3026
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3025
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3027
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3026
3028
  let h;
3027
3029
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["formula", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3028
3030
  let d;
@@ -3036,14 +3038,14 @@ function Wn(r) {
3036
3038
  signal: f
3037
3039
  });
3038
3040
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3039
- const b = !!p && y;
3040
- let m;
3041
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3041
+ const b = !!p && m;
3042
+ let y;
3043
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3042
3044
  queryKey: h,
3043
3045
  queryFn: d,
3044
3046
  enabled: b,
3045
3047
  ...l
3046
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3048
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3047
3049
  }
3048
3050
  function Gr(r) {
3049
3051
  const e = R(6);
@@ -3070,7 +3072,7 @@ function Zn(r) {
3070
3072
  enabled: a,
3071
3073
  ...l
3072
3074
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3073
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3075
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3074
3076
  let h;
3075
3077
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["histogram", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3076
3078
  let d;
@@ -3084,14 +3086,14 @@ function Zn(r) {
3084
3086
  signal: f
3085
3087
  });
3086
3088
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3087
- const b = !!p && y;
3088
- let m;
3089
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3089
+ const b = !!p && m;
3090
+ let y;
3091
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3090
3092
  queryKey: h,
3091
3093
  queryFn: d,
3092
3094
  enabled: b,
3093
3095
  ...l
3094
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3096
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3095
3097
  }
3096
3098
  function zr(r) {
3097
3099
  const e = R(6);
@@ -3118,7 +3120,7 @@ function Kn(r) {
3118
3120
  enabled: a,
3119
3121
  ...l
3120
3122
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3121
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3123
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3122
3124
  let h;
3123
3125
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["range", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3124
3126
  let d;
@@ -3132,14 +3134,14 @@ function Kn(r) {
3132
3134
  signal: f
3133
3135
  });
3134
3136
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3135
- const b = !!p && y;
3136
- let m;
3137
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3137
+ const b = !!p && m;
3138
+ let y;
3139
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3138
3140
  queryKey: h,
3139
3141
  queryFn: d,
3140
3142
  enabled: b,
3141
3143
  ...l
3142
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3144
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3143
3145
  }
3144
3146
  function Qr(r) {
3145
3147
  const e = R(6);
@@ -3166,7 +3168,7 @@ function Yn(r) {
3166
3168
  enabled: a,
3167
3169
  ...l
3168
3170
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3169
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3171
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3170
3172
  let h;
3171
3173
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["scatter", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3172
3174
  let d;
@@ -3180,14 +3182,14 @@ function Yn(r) {
3180
3182
  signal: f
3181
3183
  });
3182
3184
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3183
- const b = !!p && y;
3184
- let m;
3185
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3185
+ const b = !!p && m;
3186
+ let y;
3187
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3186
3188
  queryKey: h,
3187
3189
  queryFn: d,
3188
3190
  enabled: b,
3189
3191
  ...l
3190
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3192
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3191
3193
  }
3192
3194
  function Wr(r) {
3193
3195
  const e = R(6);
@@ -3214,7 +3216,7 @@ function Xn(r) {
3214
3216
  enabled: a,
3215
3217
  ...l
3216
3218
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3217
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3219
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3218
3220
  let h;
3219
3221
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["table", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3220
3222
  let d;
@@ -3228,14 +3230,14 @@ function Xn(r) {
3228
3230
  signal: f
3229
3231
  });
3230
3232
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3231
- const b = !!p && y;
3232
- let m;
3233
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3233
+ const b = !!p && m;
3234
+ let y;
3235
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3234
3236
  queryKey: h,
3235
3237
  queryFn: d,
3236
3238
  enabled: b,
3237
3239
  ...l
3238
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3240
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3239
3241
  }
3240
3242
  function Zr(r) {
3241
3243
  const e = R(6);
@@ -3262,7 +3264,7 @@ function Jn(r) {
3262
3264
  enabled: a,
3263
3265
  ...l
3264
3266
  } = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
3265
- const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3267
+ const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
3266
3268
  let h;
3267
3269
  e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["time-series", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
3268
3270
  let d;
@@ -3276,14 +3278,14 @@ function Jn(r) {
3276
3278
  signal: f
3277
3279
  });
3278
3280
  }, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
3279
- const b = !!p && y;
3280
- let m;
3281
- return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
3281
+ const b = !!p && m;
3282
+ let y;
3283
+ return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
3282
3284
  queryKey: h,
3283
3285
  queryFn: d,
3284
3286
  enabled: b,
3285
3287
  ...l
3286
- }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
3288
+ }, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
3287
3289
  }
3288
3290
  function Kr(r) {
3289
3291
  const e = R(6);
@@ -3309,40 +3311,40 @@ function Xr(r) {
3309
3311
  const a = i;
3310
3312
  let l;
3311
3313
  e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
3312
- const y = l;
3314
+ const m = l;
3313
3315
  let c;
3314
- e[4] !== t || e[5] !== y ? (c = /* @__PURE__ */ N(un, { values: y, children: t }), e[4] = t, e[5] = y, e[6] = c) : c = e[6];
3316
+ e[4] !== t || e[5] !== m ? (c = /* @__PURE__ */ N(un, { values: m, children: t }), e[4] = t, e[5] = m, e[6] = c) : c = e[6];
3315
3317
  let p;
3316
3318
  e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ N(zs, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
3317
3319
  let h;
3318
3320
  return e[10] !== n || e[11] !== p ? (h = /* @__PURE__ */ N(Bs, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = h) : h = e[12], h;
3319
3321
  }
3320
3322
  function Jr(r, e) {
3321
- const t = pe((y) => y.layers), n = pe((y) => y.setLayer), s = re(() => Ot(r.map((y) => t[y]).filter((y) => !!y)), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
3322
- id: y,
3323
+ const t = pe((m) => m.layers), n = pe((m) => m.setLayer), s = re(() => Ot(r.map((m) => t[m]).filter((m) => !!(m != null && m.legend))), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
3324
+ id: m,
3323
3325
  visible: c,
3324
3326
  ...p
3325
3327
  }) => {
3326
- n(y, {
3328
+ n(m, {
3327
3329
  props: {
3328
3330
  visible: c
3329
3331
  },
3330
3332
  legend: p
3331
3333
  });
3332
3334
  }, [n]), a = Q(({
3333
- id: y,
3335
+ id: m,
3334
3336
  collapsed: c
3335
3337
  }) => {
3336
- n(y, {
3338
+ n(m, {
3337
3339
  legend: {
3338
3340
  collapsed: c
3339
3341
  }
3340
3342
  });
3341
3343
  }, [n]), l = Q(({
3342
- id: y,
3344
+ id: m,
3343
3345
  opacity: c
3344
3346
  }) => {
3345
- n(y, {
3347
+ n(m, {
3346
3348
  props: {
3347
3349
  opacity: c
3348
3350
  }
@@ -3358,19 +3360,19 @@ function Jr(r, e) {
3358
3360
  function eo({
3359
3361
  mapId: r
3360
3362
  }) {
3361
- const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((m) => {
3363
+ const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((y) => {
3362
3364
  var T;
3363
- return (T = m.maps[r]) == null ? void 0 : T.basemap;
3364
- }), i = x((m) => m.getDeckInstance), a = x((m) => m.getOverlayInstance), l = x((m) => m.areLayersLoaded[r]), c = x((m) => {
3365
+ return (T = y.maps[r]) == null ? void 0 : T.basemap;
3366
+ }), i = x((y) => y.getDeckInstance), a = x((y) => y.getOverlayInstance), l = x((y) => y.areLayersLoaded[r]), c = x((y) => {
3365
3367
  var T;
3366
- return (T = m.maps[r]) == null ? void 0 : T.isLoaded;
3368
+ return (T = y.maps[r]) == null ? void 0 : T.isLoaded;
3367
3369
  }) && l, {
3368
3370
  type: p
3369
3371
  } = ye[o], h = p === te.googleMaps, d = Q(async () => {
3370
- const m = i(r), T = a(r);
3372
+ const y = i(r), T = a(r);
3371
3373
  try {
3372
3374
  const f = document.createElement("canvas");
3373
- f.width = m.width ?? 0, f.height = m.height ?? 0;
3375
+ f.width = y.width ?? 0, f.height = y.height ?? 0;
3374
3376
  const g = f.getContext("2d");
3375
3377
  if (h) {
3376
3378
  const _ = T;
@@ -3379,12 +3381,12 @@ function eo({
3379
3381
  const w = await hs(_.getDiv(), {
3380
3382
  useCORS: !0
3381
3383
  });
3382
- g == null || g.drawImage(w, 0, 0, m.width, m.height);
3384
+ g == null || g.drawImage(w, 0, 0, y.width, y.height);
3383
3385
  } else {
3384
3386
  const _ = T;
3385
- _.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0, m.width, m.height);
3387
+ _.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0, y.width, y.height);
3386
3388
  }
3387
- m == null || m.redraw("screenshot"), g == null || g.drawImage(m.getCanvas(), 0, 0, m.width, m.height);
3389
+ y == null || y.redraw("screenshot"), g == null || g.drawImage(y.getCanvas(), 0, 0, y.width, y.height);
3388
3390
  const S = f.toDataURL();
3389
3391
  t(S);
3390
3392
  } catch (f) {
@@ -3502,10 +3504,10 @@ function so({
3502
3504
  getColumnName: i = lr,
3503
3505
  getFieldHtml: a = or,
3504
3506
  getTitle: l = rr,
3505
- getValue: y = ir
3507
+ getValue: m = ir
3506
3508
  }) {
3507
3509
  const c = o ? l(o) : "", h = t.reduce((d, b) => {
3508
- const m = e[b], T = r[b], f = y(T, n, m), g = s ? i(b) : "";
3510
+ const y = e[b], T = r[b], f = m(T, n, y), g = s ? i(b) : "";
3509
3511
  return d + a(g, f);
3510
3512
  }, "");
3511
3513
  return c + h;
@@ -3560,13 +3562,13 @@ function ro(r) {
3560
3562
  } = x(s);
3561
3563
  let l;
3562
3564
  e[2] !== n ? (l = (g) => g.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
3563
- const y = x(l), c = x(ur), p = x(cr), h = !y;
3565
+ const m = x(l), c = x(ur), p = x(cr), h = !m;
3564
3566
  let d;
3565
3567
  e[4] !== n || e[5] !== c ? (d = (g) => c(n, g), e[4] = n, e[5] = c, e[6] = d) : d = e[6];
3566
3568
  const b = d;
3567
- let m;
3568
- e[7] !== p || e[8] !== n ? (m = (g) => p(n, g), e[7] = p, e[8] = n, e[9] = m) : m = e[9];
3569
- const T = m;
3569
+ let y;
3570
+ e[7] !== p || e[8] !== n ? (y = (g) => p(n, g), e[7] = p, e[8] = n, e[9] = y) : y = e[9];
3571
+ const T = y;
3570
3572
  let f;
3571
3573
  return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== h || e[14] !== b || e[15] !== T || e[16] !== o ? (f = t({
3572
3574
  zoom: o,
@@ -3595,9 +3597,9 @@ async function dr({
3595
3597
  } = {},
3596
3598
  queryParameters: a,
3597
3599
  params: l,
3598
- apiVersion: y = Ze
3600
+ apiVersion: m = Ze
3599
3601
  }) {
3600
- const c = `${r}/${y}/stats/${e}/${s}`;
3602
+ const c = `${r}/${m}/stats/${e}/${s}`;
3601
3603
  return kt({
3602
3604
  accessToken: t,
3603
3605
  signal: o,
@@ -3624,11 +3626,11 @@ async function fr({
3624
3626
  } = {},
3625
3627
  apiVersion: l = Ze
3626
3628
  }) {
3627
- const y = `${r}/${l}/stats/${e}/${n}/${s}`;
3629
+ const m = `${r}/${l}/stats/${e}/${n}/${s}`;
3628
3630
  return kt({
3629
3631
  accessToken: t,
3630
3632
  signal: i,
3631
- url: y,
3633
+ url: m,
3632
3634
  method: ue.get,
3633
3635
  params: {
3634
3636
  ...o
@@ -3647,12 +3649,12 @@ function oo(r) {
3647
3649
  } = r;
3648
3650
  let l;
3649
3651
  e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
3650
- let y, c;
3652
+ let m, c;
3651
3653
  e[2] !== l ? ({
3652
- enabled: y,
3654
+ enabled: m,
3653
3655
  ...c
3654
- } = l, e[2] = l, e[3] = y, e[4] = c) : (y = e[3], c = e[4]);
3655
- const p = y === void 0 ? !0 : y;
3656
+ } = l, e[2] = l, e[3] = m, e[4] = c) : (m = e[3], c = e[4]);
3657
+ const p = m === void 0 ? !0 : m;
3656
3658
  let h;
3657
3659
  e[5] !== n || e[6] !== t ? (h = [t, n], e[5] = n, e[6] = t, e[7] = h) : h = e[7];
3658
3660
  let d;
@@ -3667,10 +3669,10 @@ function oo(r) {
3667
3669
  return e[14] !== p || e[15] !== t || e[16] !== h || e[17] !== d || e[18] !== c ? (b = {
3668
3670
  queryKey: h,
3669
3671
  queryFn: d,
3670
- select(m) {
3672
+ select(y) {
3671
3673
  return {
3672
- ...m,
3673
- type: m.type.toLowerCase()
3674
+ ...y,
3675
+ type: y.type.toLowerCase()
3674
3676
  };
3675
3677
  },
3676
3678
  enabled: !!t && p,
@@ -3722,7 +3724,7 @@ async function mr({
3722
3724
  target: t,
3723
3725
  attribute: n
3724
3726
  }) {
3725
- var a, l, y;
3727
+ var a, l, m;
3726
3728
  const s = await ms({
3727
3729
  connectionName: r.connectionName,
3728
3730
  apiBaseUrl: r.apiBaseUrl,
@@ -3730,7 +3732,7 @@ async function mr({
3730
3732
  clientId: r.clientId,
3731
3733
  tableName: t
3732
3734
  });
3733
- if (!((y = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && y.attributes))
3735
+ if (!((m = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && m.attributes))
3734
3736
  throw new Error(`${n} not found in tileset attributes`);
3735
3737
  const i = s.tilestats.layers[0].attributes.find((c) => c.attribute === n);
3736
3738
  if (!i)