@carto/ps-react-ui 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,11 @@
1
- import Fe, { useState as pr, useMemo as hr, useRef as z, useEffect as je, useCallback as Oe } from "react";
2
- import { Box as D, Typography as ne, List as gr, ListItemButton as yr, ListItemText as mr, Button as br, styled as De, Tabs as Er } from "@mui/material";
3
- var te = { exports: {} }, L = {};
1
+ import qe, { useState as Ge, useMemo as me, useRef as Y, useCallback as pe, useEffect as B } from "react";
2
+ import { Box as $, Typography as ge, List as xr, ListItemButton as _r, ListItemText as Rr, Button as Tr, styled as Ze, Tabs as Cr } from "@mui/material";
3
+ import jr from "@deck.gl/react";
4
+ import { Map as Sr } from "react-map-gl";
5
+ import wr from "maplibre-gl";
6
+ import { useJsApiLoader as Or } from "@react-google-maps/api";
7
+ import { GoogleMapsOverlay as Pr } from "@deck.gl/google-maps";
8
+ var ve = { exports: {} }, q = {};
4
9
  /**
5
10
  * @license React
6
11
  * react-jsx-runtime.production.min.js
@@ -10,25 +15,25 @@ var te = { exports: {} }, L = {};
10
15
  * This source code is licensed under the MIT license found in the
11
16
  * LICENSE file in the root directory of this source tree.
12
17
  */
13
- var Pe;
14
- function Rr() {
15
- if (Pe)
16
- return L;
17
- Pe = 1;
18
- var n = Fe, o = Symbol.for("react.element"), f = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, x = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function C(b, d, m) {
20
- var g, S = {}, h = null, _ = null;
21
- m !== void 0 && (h = "" + m), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (_ = d.ref);
22
- for (g in d)
23
- u.call(d, g) && !T.hasOwnProperty(g) && (S[g] = d[g]);
24
- if (b && b.defaultProps)
25
- for (g in d = b.defaultProps, d)
26
- S[g] === void 0 && (S[g] = d[g]);
27
- return { $$typeof: o, type: b, key: h, ref: _, props: S, _owner: x.current };
18
+ var Ye;
19
+ function kr() {
20
+ if (Ye)
21
+ return q;
22
+ Ye = 1;
23
+ var t = qe, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
24
+ function S(x, p, g) {
25
+ var h, w = {}, m = null, R = null;
26
+ g !== void 0 && (m = "" + g), p.key !== void 0 && (m = "" + p.key), p.ref !== void 0 && (R = p.ref);
27
+ for (h in p)
28
+ i.call(p, h) && !v.hasOwnProperty(h) && (w[h] = p[h]);
29
+ if (x && x.defaultProps)
30
+ for (h in p = x.defaultProps, p)
31
+ w[h] === void 0 && (w[h] = p[h]);
32
+ return { $$typeof: a, type: x, key: m, ref: R, props: w, _owner: y.current };
28
33
  }
29
- return L.Fragment = f, L.jsx = C, L.jsxs = C, L;
34
+ return q.Fragment = l, q.jsx = S, q.jsxs = S, q;
30
35
  }
31
- var Y = {};
36
+ var G = {};
32
37
  /**
33
38
  * @license React
34
39
  * react-jsx-runtime.development.js
@@ -38,91 +43,91 @@ var Y = {};
38
43
  * This source code is licensed under the MIT license found in the
39
44
  * LICENSE file in the root directory of this source tree.
40
45
  */
41
- var ke;
42
- function _r() {
43
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
44
- var n = Fe, o = Symbol.for("react.element"), f = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), b = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), O = Symbol.iterator, w = "@@iterator";
45
- function J(e) {
46
+ var Be;
47
+ function Dr() {
48
+ return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
49
+ var t = qe, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), x = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), O = Symbol.iterator, j = "@@iterator";
50
+ function b(e) {
46
51
  if (e === null || typeof e != "object")
47
52
  return null;
48
- var r = O && e[O] || e[w];
53
+ var r = O && e[O] || e[j];
49
54
  return typeof r == "function" ? r : null;
50
55
  }
51
- var A = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function E(e) {
56
+ var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
+ function T(e) {
53
58
  {
54
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
55
- t[a - 1] = arguments[a];
56
- Ie("error", e, t);
59
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
60
+ n[o - 1] = arguments[o];
61
+ L("error", e, n);
57
62
  }
58
63
  }
59
- function Ie(e, r, t) {
64
+ function L(e, r, n) {
60
65
  {
61
- var a = A.ReactDebugCurrentFrame, l = a.getStackAddendum();
62
- l !== "" && (r += "%s", t = t.concat([l]));
63
- var c = t.map(function(s) {
64
- return String(s);
66
+ var o = D.ReactDebugCurrentFrame, c = o.getStackAddendum();
67
+ c !== "" && (r += "%s", n = n.concat([c]));
68
+ var f = n.map(function(u) {
69
+ return String(u);
65
70
  });
66
- c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
71
+ f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
67
72
  }
68
73
  }
69
- var $e = !1, We = !1, Me = !1, Le = !1, Ye = !1, ae;
70
- ae = Symbol.for("react.module.reference");
71
- function Ve(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === u || e === T || Ye || e === x || e === m || e === g || Le || e === _ || $e || We || Me || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === S || e.$$typeof === C || e.$$typeof === b || e.$$typeof === d || // This needs to include all possible module reference object
74
+ var te = !1, ne = !1, Z = !1, J = !1, N = !1, z;
75
+ z = Symbol.for("react.module.reference");
76
+ function ae(e) {
77
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === v || N || e === y || e === g || e === h || J || e === R || te || ne || Z || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === w || e.$$typeof === S || e.$$typeof === x || e.$$typeof === p || // This needs to include all possible module reference object
73
78
  // types supported by any Flight configuration anywhere since
74
79
  // we don't know which Flight build this will end up being used
75
80
  // with.
76
- e.$$typeof === ae || e.getModuleId !== void 0));
81
+ e.$$typeof === z || e.getModuleId !== void 0));
77
82
  }
78
- function Ne(e, r, t) {
79
- var a = e.displayName;
80
- if (a)
81
- return a;
82
- var l = r.displayName || r.name || "";
83
- return l !== "" ? t + "(" + l + ")" : t;
83
+ function K(e, r, n) {
84
+ var o = e.displayName;
85
+ if (o)
86
+ return o;
87
+ var c = r.displayName || r.name || "";
88
+ return c !== "" ? n + "(" + c + ")" : n;
84
89
  }
85
- function oe(e) {
90
+ function I(e) {
86
91
  return e.displayName || "Context";
87
92
  }
88
- function P(e) {
93
+ function C(e) {
89
94
  if (e == null)
90
95
  return null;
91
- if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
96
+ if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
97
  return e.displayName || e.name || null;
93
98
  if (typeof e == "string")
94
99
  return e;
95
100
  switch (e) {
96
- case u:
101
+ case i:
97
102
  return "Fragment";
98
- case f:
103
+ case l:
99
104
  return "Portal";
100
- case T:
105
+ case v:
101
106
  return "Profiler";
102
- case x:
107
+ case y:
103
108
  return "StrictMode";
104
- case m:
105
- return "Suspense";
106
109
  case g:
110
+ return "Suspense";
111
+ case h:
107
112
  return "SuspenseList";
108
113
  }
109
114
  if (typeof e == "object")
110
115
  switch (e.$$typeof) {
111
- case b:
116
+ case x:
112
117
  var r = e;
113
- return oe(r) + ".Consumer";
114
- case C:
115
- var t = e;
116
- return oe(t._context) + ".Provider";
117
- case d:
118
- return Ne(e, e.render, "ForwardRef");
118
+ return I(r) + ".Consumer";
119
119
  case S:
120
- var a = e.displayName || null;
121
- return a !== null ? a : P(e.type) || "Memo";
122
- case h: {
123
- var l = e, c = l._payload, s = l._init;
120
+ var n = e;
121
+ return I(n._context) + ".Provider";
122
+ case p:
123
+ return K(e, e.render, "ForwardRef");
124
+ case w:
125
+ var o = e.displayName || null;
126
+ return o !== null ? o : C(e.type) || "Memo";
127
+ case m: {
128
+ var c = e, f = c._payload, u = c._init;
124
129
  try {
125
- return P(s(c));
130
+ return C(u(f));
126
131
  } catch {
127
132
  return null;
128
133
  }
@@ -130,18 +135,18 @@ function _r() {
130
135
  }
131
136
  return null;
132
137
  }
133
- var F = Object.assign, W = 0, ie, se, ue, le, ce, fe, de;
134
- function ve() {
138
+ var F = Object.assign, k = 0, be, Ee, xe, _e, Re, Te, Ce;
139
+ function je() {
135
140
  }
136
- ve.__reactDisabledLog = !0;
137
- function Be() {
141
+ je.__reactDisabledLog = !0;
142
+ function Ke() {
138
143
  {
139
- if (W === 0) {
140
- ie = console.log, se = console.info, ue = console.warn, le = console.error, ce = console.group, fe = console.groupCollapsed, de = console.groupEnd;
144
+ if (k === 0) {
145
+ be = console.log, Ee = console.info, xe = console.warn, _e = console.error, Re = console.group, Te = console.groupCollapsed, Ce = console.groupEnd;
141
146
  var e = {
142
147
  configurable: !0,
143
148
  enumerable: !0,
144
- value: ve,
149
+ value: je,
145
150
  writable: !0
146
151
  };
147
152
  Object.defineProperties(console, {
@@ -154,12 +159,12 @@ function _r() {
154
159
  groupEnd: e
155
160
  });
156
161
  }
157
- W++;
162
+ k++;
158
163
  }
159
164
  }
160
- function Ue() {
165
+ function He() {
161
166
  {
162
- if (W--, W === 0) {
167
+ if (k--, k === 0) {
163
168
  var e = {
164
169
  configurable: !0,
165
170
  enumerable: !0,
@@ -167,323 +172,323 @@ function _r() {
167
172
  };
168
173
  Object.defineProperties(console, {
169
174
  log: F({}, e, {
170
- value: ie
175
+ value: be
171
176
  }),
172
177
  info: F({}, e, {
173
- value: se
178
+ value: Ee
174
179
  }),
175
180
  warn: F({}, e, {
176
- value: ue
181
+ value: xe
177
182
  }),
178
183
  error: F({}, e, {
179
- value: le
184
+ value: _e
180
185
  }),
181
186
  group: F({}, e, {
182
- value: ce
187
+ value: Re
183
188
  }),
184
189
  groupCollapsed: F({}, e, {
185
- value: fe
190
+ value: Te
186
191
  }),
187
192
  groupEnd: F({}, e, {
188
- value: de
193
+ value: Ce
189
194
  })
190
195
  });
191
196
  }
192
- W < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ k < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
198
  }
194
199
  }
195
- var G = A.ReactCurrentDispatcher, K;
196
- function V(e, r, t) {
200
+ var oe = D.ReactCurrentDispatcher, ie;
201
+ function H(e, r, n) {
197
202
  {
198
- if (K === void 0)
203
+ if (ie === void 0)
199
204
  try {
200
205
  throw Error();
201
- } catch (l) {
202
- var a = l.stack.trim().match(/\n( *(at )?)/);
203
- K = a && a[1] || "";
206
+ } catch (c) {
207
+ var o = c.stack.trim().match(/\n( *(at )?)/);
208
+ ie = o && o[1] || "";
204
209
  }
205
210
  return `
206
- ` + K + e;
211
+ ` + ie + e;
207
212
  }
208
213
  }
209
- var X = !1, N;
214
+ var se = !1, X;
210
215
  {
211
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
212
- N = new qe();
216
+ var Xe = typeof WeakMap == "function" ? WeakMap : Map;
217
+ X = new Xe();
213
218
  }
214
- function pe(e, r) {
215
- if (!e || X)
219
+ function Se(e, r) {
220
+ if (!e || se)
216
221
  return "";
217
222
  {
218
- var t = N.get(e);
219
- if (t !== void 0)
220
- return t;
223
+ var n = X.get(e);
224
+ if (n !== void 0)
225
+ return n;
221
226
  }
222
- var a;
223
- X = !0;
224
- var l = Error.prepareStackTrace;
227
+ var o;
228
+ se = !0;
229
+ var c = Error.prepareStackTrace;
225
230
  Error.prepareStackTrace = void 0;
226
- var c;
227
- c = G.current, G.current = null, Be();
231
+ var f;
232
+ f = oe.current, oe.current = null, Ke();
228
233
  try {
229
234
  if (r) {
230
- var s = function() {
235
+ var u = function() {
231
236
  throw Error();
232
237
  };
233
- if (Object.defineProperty(s.prototype, "props", {
238
+ if (Object.defineProperty(u.prototype, "props", {
234
239
  set: function() {
235
240
  throw Error();
236
241
  }
237
242
  }), typeof Reflect == "object" && Reflect.construct) {
238
243
  try {
239
- Reflect.construct(s, []);
240
- } catch (k) {
241
- a = k;
244
+ Reflect.construct(u, []);
245
+ } catch (M) {
246
+ o = M;
242
247
  }
243
- Reflect.construct(e, [], s);
248
+ Reflect.construct(e, [], u);
244
249
  } else {
245
250
  try {
246
- s.call();
247
- } catch (k) {
248
- a = k;
251
+ u.call();
252
+ } catch (M) {
253
+ o = M;
249
254
  }
250
- e.call(s.prototype);
255
+ e.call(u.prototype);
251
256
  }
252
257
  } else {
253
258
  try {
254
259
  throw Error();
255
- } catch (k) {
256
- a = k;
260
+ } catch (M) {
261
+ o = M;
257
262
  }
258
263
  e();
259
264
  }
260
- } catch (k) {
261
- if (k && a && typeof k.stack == "string") {
262
- for (var i = k.stack.split(`
263
- `), R = a.stack.split(`
264
- `), v = i.length - 1, p = R.length - 1; v >= 1 && p >= 0 && i[v] !== R[p]; )
265
- p--;
266
- for (; v >= 1 && p >= 0; v--, p--)
267
- if (i[v] !== R[p]) {
268
- if (v !== 1 || p !== 1)
265
+ } catch (M) {
266
+ if (M && o && typeof M.stack == "string") {
267
+ for (var s = M.stack.split(`
268
+ `), P = o.stack.split(`
269
+ `), E = s.length - 1, _ = P.length - 1; E >= 1 && _ >= 0 && s[E] !== P[_]; )
270
+ _--;
271
+ for (; E >= 1 && _ >= 0; E--, _--)
272
+ if (s[E] !== P[_]) {
273
+ if (E !== 1 || _ !== 1)
269
274
  do
270
- if (v--, p--, p < 0 || i[v] !== R[p]) {
271
- var j = `
272
- ` + i[v].replace(" at new ", " at ");
273
- return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, j), j;
275
+ if (E--, _--, _ < 0 || s[E] !== P[_]) {
276
+ var A = `
277
+ ` + s[E].replace(" at new ", " at ");
278
+ return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, A), A;
274
279
  }
275
- while (v >= 1 && p >= 0);
280
+ while (E >= 1 && _ >= 0);
276
281
  break;
277
282
  }
278
283
  }
279
284
  } finally {
280
- X = !1, G.current = c, Ue(), Error.prepareStackTrace = l;
285
+ se = !1, oe.current = f, He(), Error.prepareStackTrace = c;
281
286
  }
282
- var $ = e ? e.displayName || e.name : "", we = $ ? V($) : "";
283
- return typeof e == "function" && N.set(e, we), we;
287
+ var W = e ? e.displayName || e.name : "", We = W ? H(W) : "";
288
+ return typeof e == "function" && X.set(e, We), We;
284
289
  }
285
- function ze(e, r, t) {
286
- return pe(e, !1);
290
+ function Qe(e, r, n) {
291
+ return Se(e, !1);
287
292
  }
288
- function Je(e) {
293
+ function er(e) {
289
294
  var r = e.prototype;
290
295
  return !!(r && r.isReactComponent);
291
296
  }
292
- function B(e, r, t) {
297
+ function Q(e, r, n) {
293
298
  if (e == null)
294
299
  return "";
295
300
  if (typeof e == "function")
296
- return pe(e, Je(e));
301
+ return Se(e, er(e));
297
302
  if (typeof e == "string")
298
- return V(e);
303
+ return H(e);
299
304
  switch (e) {
300
- case m:
301
- return V("Suspense");
302
305
  case g:
303
- return V("SuspenseList");
306
+ return H("Suspense");
307
+ case h:
308
+ return H("SuspenseList");
304
309
  }
305
310
  if (typeof e == "object")
306
311
  switch (e.$$typeof) {
307
- case d:
308
- return ze(e.render);
309
- case S:
310
- return B(e.type, r, t);
311
- case h: {
312
- var a = e, l = a._payload, c = a._init;
312
+ case p:
313
+ return Qe(e.render);
314
+ case w:
315
+ return Q(e.type, r, n);
316
+ case m: {
317
+ var o = e, c = o._payload, f = o._init;
313
318
  try {
314
- return B(c(l), r, t);
319
+ return Q(f(c), r, n);
315
320
  } catch {
316
321
  }
317
322
  }
318
323
  }
319
324
  return "";
320
325
  }
321
- var U = Object.prototype.hasOwnProperty, he = {}, ge = A.ReactDebugCurrentFrame;
322
- function q(e) {
326
+ var ee = Object.prototype.hasOwnProperty, we = {}, Oe = D.ReactDebugCurrentFrame;
327
+ function re(e) {
323
328
  if (e) {
324
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
325
- ge.setExtraStackFrame(t);
329
+ var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
330
+ Oe.setExtraStackFrame(n);
326
331
  } else
327
- ge.setExtraStackFrame(null);
332
+ Oe.setExtraStackFrame(null);
328
333
  }
329
- function Ge(e, r, t, a, l) {
334
+ function rr(e, r, n, o, c) {
330
335
  {
331
- var c = Function.call.bind(U);
332
- for (var s in e)
333
- if (c(e, s)) {
334
- var i = void 0;
336
+ var f = Function.call.bind(ee);
337
+ for (var u in e)
338
+ if (f(e, u)) {
339
+ var s = void 0;
335
340
  try {
336
- if (typeof e[s] != "function") {
337
- var R = Error((a || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw R.name = "Invariant Violation", R;
341
+ if (typeof e[u] != "function") {
342
+ var P = Error((o || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
+ throw P.name = "Invariant Violation", P;
339
344
  }
340
- i = e[s](r, s, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (v) {
342
- i = v;
345
+ s = e[u](r, u, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
+ } catch (E) {
347
+ s = E;
343
348
  }
344
- i && !(i instanceof Error) && (q(l), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, s, typeof i), q(null)), i instanceof Error && !(i.message in he) && (he[i.message] = !0, q(l), E("Failed %s type: %s", t, i.message), q(null));
349
+ s && !(s instanceof Error) && (re(c), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, u, typeof s), re(null)), s instanceof Error && !(s.message in we) && (we[s.message] = !0, re(c), T("Failed %s type: %s", n, s.message), re(null));
345
350
  }
346
351
  }
347
352
  }
348
- var Ke = Array.isArray;
349
- function H(e) {
350
- return Ke(e);
353
+ var tr = Array.isArray;
354
+ function ue(e) {
355
+ return tr(e);
351
356
  }
352
- function Xe(e) {
357
+ function nr(e) {
353
358
  {
354
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
- return t;
359
+ var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
360
+ return n;
356
361
  }
357
362
  }
358
- function He(e) {
363
+ function ar(e) {
359
364
  try {
360
- return ye(e), !1;
365
+ return Pe(e), !1;
361
366
  } catch {
362
367
  return !0;
363
368
  }
364
369
  }
365
- function ye(e) {
370
+ function Pe(e) {
366
371
  return "" + e;
367
372
  }
368
- function me(e) {
369
- if (He(e))
370
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ye(e);
373
+ function ke(e) {
374
+ if (ar(e))
375
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), Pe(e);
371
376
  }
372
- var M = A.ReactCurrentOwner, Ze = {
377
+ var U = D.ReactCurrentOwner, or = {
373
378
  key: !0,
374
379
  ref: !0,
375
380
  __self: !0,
376
381
  __source: !0
377
- }, be, Ee, Z;
378
- Z = {};
379
- function Qe(e) {
380
- if (U.call(e, "ref")) {
382
+ }, De, Ie, le;
383
+ le = {};
384
+ function ir(e) {
385
+ if (ee.call(e, "ref")) {
381
386
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
382
387
  if (r && r.isReactWarning)
383
388
  return !1;
384
389
  }
385
390
  return e.ref !== void 0;
386
391
  }
387
- function er(e) {
388
- if (U.call(e, "key")) {
392
+ function sr(e) {
393
+ if (ee.call(e, "key")) {
389
394
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
390
395
  if (r && r.isReactWarning)
391
396
  return !1;
392
397
  }
393
398
  return e.key !== void 0;
394
399
  }
395
- function rr(e, r) {
396
- if (typeof e.ref == "string" && M.current && r && M.current.stateNode !== r) {
397
- var t = P(M.current.type);
398
- Z[t] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(M.current.type), e.ref), Z[t] = !0);
400
+ function ur(e, r) {
401
+ if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
402
+ var n = C(U.current.type);
403
+ le[n] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(U.current.type), e.ref), le[n] = !0);
399
404
  }
400
405
  }
401
- function tr(e, r) {
406
+ function lr(e, r) {
402
407
  {
403
- var t = function() {
404
- be || (be = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
408
+ var n = function() {
409
+ De || (De = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
405
410
  };
406
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
407
- get: t,
411
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
412
+ get: n,
408
413
  configurable: !0
409
414
  });
410
415
  }
411
416
  }
412
- function nr(e, r) {
417
+ function cr(e, r) {
413
418
  {
414
- var t = function() {
415
- Ee || (Ee = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
419
+ var n = function() {
420
+ Ie || (Ie = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
416
421
  };
417
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
- get: t,
422
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
423
+ get: n,
419
424
  configurable: !0
420
425
  });
421
426
  }
422
427
  }
423
- var ar = function(e, r, t, a, l, c, s) {
424
- var i = {
428
+ var fr = function(e, r, n, o, c, f, u) {
429
+ var s = {
425
430
  // This tag allows us to uniquely identify this as a React Element
426
- $$typeof: o,
431
+ $$typeof: a,
427
432
  // Built-in properties that belong on the element
428
433
  type: e,
429
434
  key: r,
430
- ref: t,
431
- props: s,
435
+ ref: n,
436
+ props: u,
432
437
  // Record the component responsible for creating this element.
433
- _owner: c
438
+ _owner: f
434
439
  };
435
- return i._store = {}, Object.defineProperty(i._store, "validated", {
440
+ return s._store = {}, Object.defineProperty(s._store, "validated", {
436
441
  configurable: !1,
437
442
  enumerable: !1,
438
443
  writable: !0,
439
444
  value: !1
440
- }), Object.defineProperty(i, "_self", {
445
+ }), Object.defineProperty(s, "_self", {
441
446
  configurable: !1,
442
447
  enumerable: !1,
443
448
  writable: !1,
444
- value: a
445
- }), Object.defineProperty(i, "_source", {
449
+ value: o
450
+ }), Object.defineProperty(s, "_source", {
446
451
  configurable: !1,
447
452
  enumerable: !1,
448
453
  writable: !1,
449
- value: l
450
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
454
+ value: c
455
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
451
456
  };
452
- function or(e, r, t, a, l) {
457
+ function dr(e, r, n, o, c) {
453
458
  {
454
- var c, s = {}, i = null, R = null;
455
- t !== void 0 && (me(t), i = "" + t), er(r) && (me(r.key), i = "" + r.key), Qe(r) && (R = r.ref, rr(r, l));
456
- for (c in r)
457
- U.call(r, c) && !Ze.hasOwnProperty(c) && (s[c] = r[c]);
459
+ var f, u = {}, s = null, P = null;
460
+ n !== void 0 && (ke(n), s = "" + n), sr(r) && (ke(r.key), s = "" + r.key), ir(r) && (P = r.ref, ur(r, c));
461
+ for (f in r)
462
+ ee.call(r, f) && !or.hasOwnProperty(f) && (u[f] = r[f]);
458
463
  if (e && e.defaultProps) {
459
- var v = e.defaultProps;
460
- for (c in v)
461
- s[c] === void 0 && (s[c] = v[c]);
464
+ var E = e.defaultProps;
465
+ for (f in E)
466
+ u[f] === void 0 && (u[f] = E[f]);
462
467
  }
463
- if (i || R) {
464
- var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- i && tr(s, p), R && nr(s, p);
468
+ if (s || P) {
469
+ var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
470
+ s && lr(u, _), P && cr(u, _);
466
471
  }
467
- return ar(e, i, R, l, a, M.current, s);
472
+ return fr(e, s, P, c, o, U.current, u);
468
473
  }
469
474
  }
470
- var Q = A.ReactCurrentOwner, Re = A.ReactDebugCurrentFrame;
471
- function I(e) {
475
+ var ce = D.ReactCurrentOwner, Ae = D.ReactDebugCurrentFrame;
476
+ function V(e) {
472
477
  if (e) {
473
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
474
- Re.setExtraStackFrame(t);
478
+ var r = e._owner, n = Q(e.type, e._source, r ? r.type : null);
479
+ Ae.setExtraStackFrame(n);
475
480
  } else
476
- Re.setExtraStackFrame(null);
481
+ Ae.setExtraStackFrame(null);
477
482
  }
478
- var ee;
479
- ee = !1;
480
- function re(e) {
481
- return typeof e == "object" && e !== null && e.$$typeof === o;
483
+ var fe;
484
+ fe = !1;
485
+ function de(e) {
486
+ return typeof e == "object" && e !== null && e.$$typeof === a;
482
487
  }
483
- function _e() {
488
+ function Fe() {
484
489
  {
485
- if (Q.current) {
486
- var e = P(Q.current.type);
490
+ if (ce.current) {
491
+ var e = C(ce.current.type);
487
492
  if (e)
488
493
  return `
489
494
 
@@ -492,247 +497,431 @@ Check the render method of \`` + e + "`.";
492
497
  return "";
493
498
  }
494
499
  }
495
- function ir(e) {
500
+ function pr(e) {
496
501
  {
497
502
  if (e !== void 0) {
498
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
503
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
499
504
  return `
500
505
 
501
- Check your code at ` + r + ":" + t + ".";
506
+ Check your code at ` + r + ":" + n + ".";
502
507
  }
503
508
  return "";
504
509
  }
505
510
  }
506
- var xe = {};
507
- function sr(e) {
511
+ var Me = {};
512
+ function vr(e) {
508
513
  {
509
- var r = _e();
514
+ var r = Fe();
510
515
  if (!r) {
511
- var t = typeof e == "string" ? e : e.displayName || e.name;
512
- t && (r = `
516
+ var n = typeof e == "string" ? e : e.displayName || e.name;
517
+ n && (r = `
513
518
 
514
- Check the top-level render call using <` + t + ">.");
519
+ Check the top-level render call using <` + n + ">.");
515
520
  }
516
521
  return r;
517
522
  }
518
523
  }
519
- function Te(e, r) {
524
+ function Le(e, r) {
520
525
  {
521
526
  if (!e._store || e._store.validated || e.key != null)
522
527
  return;
523
528
  e._store.validated = !0;
524
- var t = sr(r);
525
- if (xe[t])
529
+ var n = vr(r);
530
+ if (Me[n])
526
531
  return;
527
- xe[t] = !0;
528
- var a = "";
529
- e && e._owner && e._owner !== Q.current && (a = " It was passed a child from " + P(e._owner.type) + "."), I(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), I(null);
532
+ Me[n] = !0;
533
+ var o = "";
534
+ e && e._owner && e._owner !== ce.current && (o = " It was passed a child from " + C(e._owner.type) + "."), V(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), V(null);
530
535
  }
531
536
  }
532
- function Ce(e, r) {
537
+ function $e(e, r) {
533
538
  {
534
539
  if (typeof e != "object")
535
540
  return;
536
- if (H(e))
537
- for (var t = 0; t < e.length; t++) {
538
- var a = e[t];
539
- re(a) && Te(a, r);
541
+ if (ue(e))
542
+ for (var n = 0; n < e.length; n++) {
543
+ var o = e[n];
544
+ de(o) && Le(o, r);
540
545
  }
541
- else if (re(e))
546
+ else if (de(e))
542
547
  e._store && (e._store.validated = !0);
543
548
  else if (e) {
544
- var l = J(e);
545
- if (typeof l == "function" && l !== e.entries)
546
- for (var c = l.call(e), s; !(s = c.next()).done; )
547
- re(s.value) && Te(s.value, r);
549
+ var c = b(e);
550
+ if (typeof c == "function" && c !== e.entries)
551
+ for (var f = c.call(e), u; !(u = f.next()).done; )
552
+ de(u.value) && Le(u.value, r);
548
553
  }
549
554
  }
550
555
  }
551
- function ur(e) {
556
+ function mr(e) {
552
557
  {
553
558
  var r = e.type;
554
559
  if (r == null || typeof r == "string")
555
560
  return;
556
- var t;
561
+ var n;
557
562
  if (typeof r == "function")
558
- t = r.propTypes;
559
- else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
563
+ n = r.propTypes;
564
+ else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
560
565
  // Inner props are checked in the reconciler.
561
- r.$$typeof === S))
562
- t = r.propTypes;
566
+ r.$$typeof === w))
567
+ n = r.propTypes;
563
568
  else
564
569
  return;
565
- if (t) {
566
- var a = P(r);
567
- Ge(t, e.props, "prop", a, e);
568
- } else if (r.PropTypes !== void 0 && !ee) {
569
- ee = !0;
570
- var l = P(r);
571
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
570
+ if (n) {
571
+ var o = C(r);
572
+ rr(n, e.props, "prop", o, e);
573
+ } else if (r.PropTypes !== void 0 && !fe) {
574
+ fe = !0;
575
+ var c = C(r);
576
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
572
577
  }
573
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
579
  }
575
580
  }
576
- function lr(e) {
581
+ function gr(e) {
577
582
  {
578
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
579
- var a = r[t];
580
- if (a !== "children" && a !== "key") {
581
- I(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), I(null);
583
+ for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
584
+ var o = r[n];
585
+ if (o !== "children" && o !== "key") {
586
+ V(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), V(null);
582
587
  break;
583
588
  }
584
589
  }
585
- e.ref !== null && (I(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
590
+ e.ref !== null && (V(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
586
591
  }
587
592
  }
588
- function Se(e, r, t, a, l, c) {
593
+ function Ve(e, r, n, o, c, f) {
589
594
  {
590
- var s = Ve(e);
591
- if (!s) {
592
- var i = "";
593
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
- var R = ir(l);
595
- R ? i += R : i += _e();
596
- var v;
597
- e === null ? v = "null" : H(e) ? v = "array" : e !== void 0 && e.$$typeof === o ? (v = "<" + (P(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, i);
595
+ var u = ae(e);
596
+ if (!u) {
597
+ var s = "";
598
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
+ var P = pr(c);
600
+ P ? s += P : s += Fe();
601
+ var E;
602
+ e === null ? E = "null" : ue(e) ? E = "array" : e !== void 0 && e.$$typeof === a ? (E = "<" + (C(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, s);
598
603
  }
599
- var p = or(e, r, t, l, c);
600
- if (p == null)
601
- return p;
602
- if (s) {
603
- var j = r.children;
604
- if (j !== void 0)
605
- if (a)
606
- if (H(j)) {
607
- for (var $ = 0; $ < j.length; $++)
608
- Ce(j[$], e);
609
- Object.freeze && Object.freeze(j);
604
+ var _ = dr(e, r, n, c, f);
605
+ if (_ == null)
606
+ return _;
607
+ if (u) {
608
+ var A = r.children;
609
+ if (A !== void 0)
610
+ if (o)
611
+ if (ue(A)) {
612
+ for (var W = 0; W < A.length; W++)
613
+ $e(A[W], e);
614
+ Object.freeze && Object.freeze(A);
610
615
  } else
611
- E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
617
  else
613
- Ce(j, e);
618
+ $e(A, e);
614
619
  }
615
- return e === u ? lr(p) : ur(p), p;
620
+ return e === i ? gr(_) : mr(_), _;
616
621
  }
617
622
  }
618
- function cr(e, r, t) {
619
- return Se(e, r, t, !0);
623
+ function hr(e, r, n) {
624
+ return Ve(e, r, n, !0);
620
625
  }
621
- function fr(e, r, t) {
622
- return Se(e, r, t, !1);
626
+ function yr(e, r, n) {
627
+ return Ve(e, r, n, !1);
623
628
  }
624
- var dr = fr, vr = cr;
625
- Y.Fragment = u, Y.jsx = dr, Y.jsxs = vr;
626
- }()), Y;
629
+ var br = yr, Er = hr;
630
+ G.Fragment = i, G.jsx = br, G.jsxs = Er;
631
+ }()), G;
627
632
  }
628
- process.env.NODE_ENV === "production" ? te.exports = Rr() : te.exports = _r();
629
- var y = te.exports;
630
- const xr = {
633
+ process.env.NODE_ENV === "production" ? ve.exports = kr() : ve.exports = Dr();
634
+ var d = ve.exports;
635
+ const Ir = {
631
636
  box: {
632
- marginLeft: ({ spacing: n }) => n(1)
637
+ marginLeft: ({ spacing: t }) => t(1)
633
638
  }
634
639
  };
635
- function Dr({
636
- items: n,
637
- itemsToShow: o = 10,
638
- label: f,
639
- ListProps: u,
640
- texts: { showMore: x = "View all", showLess: T = "Collapse list" } = {},
641
- unit: C,
642
- formatter: b,
643
- onRowClick: d
640
+ function et({
641
+ items: t,
642
+ itemsToShow: a = 10,
643
+ label: l,
644
+ ListProps: i,
645
+ texts: { showMore: y = "View all", showLess: v = "Collapse list" } = {},
646
+ unit: S,
647
+ formatter: x,
648
+ onRowClick: p
644
649
  }) {
645
- const [m, g] = pr(!0), S = () => {
646
- g(!m);
647
- }, h = (w) => b ? b(w) : w, _ = hr(() => {
648
- const w = m ? o : n.length;
649
- return n.slice(0, w);
650
- }, [n, o, m]), O = n.length > o;
651
- return /* @__PURE__ */ y.jsxs(D, { width: "100%", height: "auto", children: [
652
- f && /* @__PURE__ */ y.jsx(ne, { variant: "caption", color: "textSecondary", gutterBottom: !0, children: f }),
653
- /* @__PURE__ */ y.jsx(gr, { ...u, component: "ul", children: _.map((w) => /* @__PURE__ */ y.jsxs(
654
- yr,
650
+ const [g, h] = Ge(!0), w = () => {
651
+ h(!g);
652
+ }, m = (j) => x ? x(j) : j, R = me(() => {
653
+ const j = g ? a : t.length;
654
+ return t.slice(0, j);
655
+ }, [t, a, g]), O = t.length > a;
656
+ return /* @__PURE__ */ d.jsxs($, { width: "100%", height: "auto", children: [
657
+ l && /* @__PURE__ */ d.jsx(ge, { variant: "caption", color: "textSecondary", gutterBottom: !0, children: l }),
658
+ /* @__PURE__ */ d.jsx(xr, { ...i, component: "ul", children: R.map((j) => /* @__PURE__ */ d.jsxs(
659
+ _r,
655
660
  {
656
661
  divider: !0,
657
- onClick: (J) => d?.(J, w),
662
+ onClick: (b) => p?.(b, j),
658
663
  children: [
659
- /* @__PURE__ */ y.jsx(mr, { primary: w.name }),
660
- /* @__PURE__ */ y.jsx(Tr, { value: h(w.value), unit: C })
664
+ /* @__PURE__ */ d.jsx(Rr, { primary: j.name }),
665
+ /* @__PURE__ */ d.jsx(Ar, { value: m(j.value), unit: S })
661
666
  ]
662
667
  },
663
- w.id
668
+ j.id
664
669
  )) }),
665
- O && /* @__PURE__ */ y.jsx(
666
- br,
670
+ O && /* @__PURE__ */ d.jsx(
671
+ Tr,
667
672
  {
668
673
  variant: "text",
669
674
  color: "primary",
670
675
  size: "small",
671
- onClick: S,
672
- children: m ? x : T
676
+ onClick: w,
677
+ children: g ? y : v
673
678
  }
674
679
  )
675
680
  ] });
676
681
  }
677
- function Tr({
678
- value: n,
679
- unit: o
682
+ function Ar({
683
+ value: t,
684
+ unit: a
680
685
  }) {
681
- return /* @__PURE__ */ y.jsx(D, { sx: xr.box, children: /* @__PURE__ */ y.jsxs(ne, { variant: "body2", align: "right", noWrap: !0, children: [
682
- o,
686
+ return /* @__PURE__ */ d.jsx($, { sx: Ir.box, children: /* @__PURE__ */ d.jsxs(ge, { variant: "body2", align: "right", noWrap: !0, children: [
687
+ a,
683
688
  " ",
684
- n
689
+ t
685
690
  ] }) });
686
691
  }
687
- const Cr = {
692
+ var he = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Terrain = "terrain", t))(he || {}), ye = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(ye || {});
693
+ const Fr = {
694
+ positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
695
+ voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
696
+ [
697
+ "dark-matter"
698
+ /* DarkMatter */
699
+ ]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
700
+ };
701
+ function Mr({
702
+ basemap: t,
703
+ instanceRef: a,
704
+ layers: l,
705
+ overlayRef: i,
706
+ viewState: y,
707
+ height: v = "100%",
708
+ id: S = "deck-gl-map",
709
+ style: x = {},
710
+ width: p = "100%",
711
+ getCursor: g,
712
+ getTooltip: h,
713
+ onClick: w,
714
+ onDrag: m,
715
+ onDragEnd: R,
716
+ onDragStart: O,
717
+ onHover: j,
718
+ onResize: b,
719
+ onViewStateChange: D
720
+ }) {
721
+ if (!Object.values(ye).includes(
722
+ t
723
+ ))
724
+ return /* @__PURE__ */ d.jsx("div", { children: "Invalid basemap" });
725
+ const L = Fr[t];
726
+ return /* @__PURE__ */ d.jsx(
727
+ jr,
728
+ {
729
+ ref: i,
730
+ viewState: { ...y },
731
+ controller: !0,
732
+ layers: l,
733
+ onViewStateChange: D,
734
+ onResize: b,
735
+ onHover: j,
736
+ onDrag: m,
737
+ onClick: w,
738
+ onDragStart: O,
739
+ onDragEnd: R,
740
+ getCursor: g,
741
+ id: S,
742
+ height: v,
743
+ width: p,
744
+ style: x,
745
+ getTooltip: h,
746
+ children: /* @__PURE__ */ d.jsx(
747
+ Sr,
748
+ {
749
+ ref: a,
750
+ reuseMaps: !0,
751
+ mapStyle: L,
752
+ mapLib: wr
753
+ }
754
+ )
755
+ }
756
+ );
757
+ }
758
+ function Lr(t) {
759
+ let a = null;
760
+ return Object.values(he).includes(
761
+ t?.basemap
762
+ ) || (a = "Invalid basemap"), t?.apiKey || (a = "Google Maps API key is required"), a ? /* @__PURE__ */ d.jsx("div", { children: a }) : /* @__PURE__ */ d.jsx($r, { ...t });
763
+ }
764
+ function $r({
765
+ apiKey: t,
766
+ basemap: a,
767
+ instanceRef: l,
768
+ layers: i,
769
+ overlayRef: y,
770
+ viewState: v,
771
+ height: S = "100%",
772
+ id: x = "google-map-script",
773
+ language: p = "en",
774
+ mapOptions: g,
775
+ style: h = {},
776
+ version: w,
777
+ width: m = "100%",
778
+ getTooltip: R,
779
+ onResize: O,
780
+ onViewStateChange: j
781
+ }) {
782
+ const b = l, D = Y(null), T = Y(), [L, te] = Ge(v), ne = {
783
+ position: "absolute",
784
+ zIndex: 0,
785
+ left: 0,
786
+ top: 0,
787
+ width: m,
788
+ height: S,
789
+ ...h
790
+ }, Z = v.maxZoom ?? 24, J = v.minZoom ?? 0, N = me(
791
+ () => ({
792
+ mapTypeControl: !1,
793
+ fullscreenControl: !1,
794
+ zoomControl: !1,
795
+ streetViewControl: !1,
796
+ mapTypeId: a,
797
+ maxZoom: Z,
798
+ minZoom: J,
799
+ ...g
800
+ }),
801
+ [a, Z, J, g]
802
+ ), { isLoaded: z } = Or({
803
+ id: x,
804
+ googleMapsApiKey: t,
805
+ language: p,
806
+ version: w
807
+ }), ae = () => {
808
+ const I = Ue(b?.current), C = {
809
+ zoom: Ne(b?.current),
810
+ longitude: I.lng,
811
+ latitude: I.lat
812
+ };
813
+ Wr(T.current, C) && (T.current = C, typeof j == "function" && j({ viewState: C }));
814
+ }, K = pe(() => {
815
+ if (!D.current)
816
+ return;
817
+ const I = ze(v), C = {
818
+ lat: v.latitude,
819
+ lng: v.longitude
820
+ }, F = { zoom: I, center: C, ...N }, k = new google.maps.Map(D.current, F);
821
+ y?.current && (y.current = new Pr({
822
+ layers: i,
823
+ getTooltip: R
824
+ })), k.addListener("bounds_changed", ae), k.addListener("resize", () => {
825
+ typeof O == "function" && O({
826
+ height: k.getDiv().offsetHeight,
827
+ width: k.getDiv().offsetWidth
828
+ });
829
+ }), b?.current && (b.current = k);
830
+ }, []);
831
+ return B(() => {
832
+ if (z)
833
+ return K(), () => {
834
+ b?.current && google.maps.event.clearInstanceListeners(b.current), y?.current && y.current.finalize();
835
+ };
836
+ }, [z, K, b, y]), B(() => {
837
+ b?.current.setOptions(N);
838
+ }, [N, i, R, a, b]), B(() => {
839
+ const I = setTimeout(() => {
840
+ te(v);
841
+ }, 300);
842
+ return () => {
843
+ clearTimeout(I);
844
+ };
845
+ }, [v]), B(() => {
846
+ if (b?.current) {
847
+ const I = ze(L), C = {
848
+ lat: L.latitude,
849
+ lng: L.longitude
850
+ }, F = Ne(b?.current), k = Ue(b?.current);
851
+ I !== F && b?.current.setZoom(I), (k.lng !== C.lng || k.lat !== C.lat) && b?.current.setCenter(C);
852
+ }
853
+ }, [L, b]), /* @__PURE__ */ d.jsx("div", { ref: D, style: ne });
854
+ }
855
+ const Vr = ["longitude", "latitude", "zoom"];
856
+ function Wr(t, a) {
857
+ return t ? Vr.some((l) => t[l] !== a[l]) : !0;
858
+ }
859
+ function Ne(t) {
860
+ return t?.getZoom() - 1;
861
+ }
862
+ function ze(t) {
863
+ return t.zoom + 1;
864
+ }
865
+ function Ue(t) {
866
+ const a = t?.getCenter();
867
+ return {
868
+ lat: a?.lat(),
869
+ lng: a?.lng()
870
+ };
871
+ }
872
+ function rt(t) {
873
+ const a = me(() => Object.values(ye).includes(t?.basemap) ? Mr : Object.values(he).includes(t?.basemap) ? Lr : null, [t?.basemap]);
874
+ return a ? /* @__PURE__ */ d.jsx(a, { ...t }) : /* @__PURE__ */ d.jsx("div", { children: "MapComponent: Invalid basemap" });
875
+ }
876
+ const Yr = {
688
877
  contentBox: {
689
878
  paddingBottom: 2,
690
879
  paddingX: 2
691
880
  }
692
- }, Sr = De(D, {
693
- shouldForwardProp: (n) => n !== "scrollMarginTop"
694
- })(({ scrollMarginTop: n }) => ({
881
+ }, Br = Ze($, {
882
+ shouldForwardProp: (t) => t !== "scrollMarginTop"
883
+ })(({ scrollMarginTop: t }) => ({
695
884
  height: "auto",
696
- scrollMarginTop: n,
885
+ scrollMarginTop: t,
697
886
  width: "100%"
698
- })), wr = De(D, {
699
- shouldForwardProp: (n) => n !== "scrollMarginTop"
700
- })(({ scrollMarginTop: n, theme: { spacing: o, palette: f } }) => ({
887
+ })), Nr = Ze($, {
888
+ shouldForwardProp: (t) => t !== "scrollMarginTop"
889
+ })(({ scrollMarginTop: t, theme: { spacing: a, palette: l } }) => ({
701
890
  alignItems: "center",
702
- backgroundColor: f.grey[100],
891
+ backgroundColor: l.grey[100],
703
892
  display: "flex",
704
- height: o(3),
893
+ height: a(3),
705
894
  justifyContent: "center",
706
895
  position: "sticky",
707
- top: n,
896
+ top: t,
708
897
  width: "100%",
709
898
  zIndex: 1
710
899
  }));
711
- function Ar({
712
- title: n,
713
- id: o,
714
- anchor: f = !1,
715
- scrollMarginTop: u = 0,
716
- children: x,
717
- BoxProps: T
900
+ function tt({
901
+ title: t,
902
+ id: a,
903
+ anchor: l = !1,
904
+ scrollMarginTop: i = 0,
905
+ children: y,
906
+ BoxProps: v
718
907
  }) {
719
- return /* @__PURE__ */ y.jsxs(
720
- Sr,
908
+ return /* @__PURE__ */ d.jsxs(
909
+ Br,
721
910
  {
722
- scrollMarginTop: u,
723
- id: o,
724
- "data-anchor": f,
725
- ...T,
911
+ scrollMarginTop: i,
912
+ id: a,
913
+ "data-anchor": l,
914
+ ...v,
726
915
  children: [
727
- /* @__PURE__ */ y.jsx(wr, { scrollMarginTop: u, children: /* @__PURE__ */ y.jsx(ne, { variant: "caption", children: n }) }),
728
- /* @__PURE__ */ y.jsx(D, { sx: Cr.contentBox, children: /* @__PURE__ */ y.jsx(y.Fragment, { children: x }) })
916
+ /* @__PURE__ */ d.jsx(Nr, { scrollMarginTop: i, children: /* @__PURE__ */ d.jsx(ge, { variant: "caption", children: t }) }),
917
+ /* @__PURE__ */ d.jsx($, { sx: Yr.contentBox, children: /* @__PURE__ */ d.jsx(d.Fragment, { children: y }) })
729
918
  ]
730
919
  }
731
920
  );
732
921
  }
733
- const jr = {
922
+ const zr = {
734
923
  tabsWrapper: {
735
- backgroundColor: ({ palette: n }) => n.background.paper,
924
+ backgroundColor: ({ palette: t }) => t.background.paper,
736
925
  left: 0,
737
926
  position: "sticky",
738
927
  top: 0,
@@ -742,137 +931,143 @@ const jr = {
742
931
  marginRight: 0
743
932
  },
744
933
  "& .MuiTab-textColorPrimary": {
745
- color: ({ palette: n }) => n.text.primary,
934
+ color: ({ palette: t }) => t.text.primary,
746
935
  "&.Mui-selected": {
747
- color: ({ palette: n }) => n.primary.main
936
+ color: ({ palette: t }) => t.primary.main
748
937
  }
749
938
  },
750
939
  "& .MuiTabs-indicator.colorPrimary": {
751
- backgroundColor: ({ palette: n }) => n.primary.main
940
+ backgroundColor: ({ palette: t }) => t.primary.main
752
941
  }
753
942
  }
754
943
  };
755
- function Ir({
756
- children: n,
757
- anchor: o,
758
- TabsProps: f,
759
- variant: u = "standard",
760
- onChange: x
944
+ function nt({
945
+ children: t,
946
+ anchor: a,
947
+ TabsProps: l,
948
+ variant: i = "standard",
949
+ onChange: y
761
950
  }) {
762
- const T = (C, b) => {
763
- C.preventDefault(), x?.(b);
951
+ const v = (S, x) => {
952
+ S.preventDefault(), y?.(x);
764
953
  };
765
- return /* @__PURE__ */ y.jsx(D, { sx: jr.tabsWrapper, children: /* @__PURE__ */ y.jsx(
766
- Er,
954
+ return /* @__PURE__ */ d.jsx($, { sx: zr.tabsWrapper, children: /* @__PURE__ */ d.jsx(
955
+ Cr,
767
956
  {
768
957
  indicatorColor: "primary",
769
958
  textColor: "primary",
770
959
  "aria-label": "Explore sections",
771
- ...f,
772
- value: o,
773
- variant: u,
774
- onChange: T,
775
- children: n
960
+ ...l,
961
+ value: a,
962
+ variant: i,
963
+ onChange: v,
964
+ children: t
776
965
  }
777
966
  ) });
778
967
  }
779
- function Ae(n) {
780
- var o, f, u = "";
781
- if (typeof n == "string" || typeof n == "number")
782
- u += n;
783
- else if (typeof n == "object")
784
- if (Array.isArray(n))
785
- for (o = 0; o < n.length; o++)
786
- n[o] && (f = Ae(n[o])) && (u && (u += " "), u += f);
968
+ function Je(t) {
969
+ var a, l, i = "";
970
+ if (typeof t == "string" || typeof t == "number")
971
+ i += t;
972
+ else if (typeof t == "object")
973
+ if (Array.isArray(t))
974
+ for (a = 0; a < t.length; a++)
975
+ t[a] && (l = Je(t[a])) && (i && (i += " "), i += l);
787
976
  else
788
- for (o in n)
789
- n[o] && (u && (u += " "), u += o);
790
- return u;
977
+ for (a in t)
978
+ t[a] && (i && (i += " "), i += a);
979
+ return i;
791
980
  }
792
- function Or() {
793
- for (var n, o, f = 0, u = ""; f < arguments.length; )
794
- (n = arguments[f++]) && (o = Ae(n)) && (u && (u += " "), u += o);
795
- return u;
981
+ function Ur() {
982
+ for (var t, a, l = 0, i = ""; l < arguments.length; )
983
+ (t = arguments[l++]) && (a = Je(t)) && (i && (i += " "), i += a);
984
+ return i;
796
985
  }
797
- const Pr = {
986
+ const qr = {
798
987
  box: {
799
- borderRadius: ({ spacing: n }) => `0 0 ${n(0.5)} ${n(0.5)}`,
988
+ borderRadius: ({ spacing: t }) => `0 0 ${t(0.5)} ${t(0.5)}`,
800
989
  flex: 1,
801
990
  height: "100%",
802
991
  margin: "0 auto",
803
- maxWidth: ({ breakpoints: n }) => n.values.lg,
992
+ maxWidth: ({ breakpoints: t }) => t.values.lg,
804
993
  overflow: "auto",
805
994
  position: "relative",
806
995
  width: "100%"
807
996
  }
808
997
  };
809
- function $r({
810
- children: n,
811
- currentAnchor: o,
812
- BoxProps: f,
813
- className: u,
814
- timeout: x = 50,
815
- onChange: T
998
+ function at({
999
+ children: t,
1000
+ currentAnchor: a,
1001
+ BoxProps: l,
1002
+ className: i,
1003
+ timeout: y = 50,
1004
+ onChange: v
816
1005
  }) {
817
- const C = z(null), b = z([]), d = z(0), m = z(o);
818
- je(() => {
819
- const h = Array.from(
820
- C.current?.querySelectorAll('[data-anchor="true"]') || []
1006
+ const S = Y(null), x = Y([]), p = Y(0), g = Y(a);
1007
+ B(() => {
1008
+ const m = Array.from(
1009
+ S.current?.querySelectorAll('[data-anchor="true"]') || []
821
1010
  );
822
- if (b.current = [...h].reverse(), !b.current.length)
1011
+ if (x.current = [...m].reverse(), !x.current.length)
823
1012
  throw new Error(
824
1013
  'initialization of ScrollToAnchor: Missing sections with data-anchor="true" attribute.'
825
1014
  );
826
- }, []), je(() => {
827
- const h = (_) => {
828
- const O = C.current?.querySelector(`#${_}`);
1015
+ }, []), B(() => {
1016
+ const m = (R) => {
1017
+ const O = S.current?.querySelector(`#${R}`);
829
1018
  if (!O) {
830
1019
  console.warn(
831
- `Warning: navigation of ScrollToAnchor: the section you want to navigate to does not exist. To create it add the #${_} id property to an element.`
1020
+ `Warning: navigation of ScrollToAnchor: the section you want to navigate to does not exist. To create it add the #${R} id property to an element.`
832
1021
  );
833
1022
  return;
834
1023
  }
835
1024
  if (O) {
836
1025
  O.scrollIntoView({ behavior: "smooth" });
837
- const w = setInterval(() => {
838
- O.offsetTop === d.current && (m.current = _, clearInterval(w));
839
- }, x);
1026
+ const j = setInterval(() => {
1027
+ O.offsetTop === p.current && (g.current = R, clearInterval(j));
1028
+ }, y);
840
1029
  }
841
1030
  };
842
- o !== m.current && h(o);
843
- }, [o, x]);
844
- const g = Oe(() => {
845
- const _ = b.current.find((O) => d.current >= O.offsetTop)?.id || "";
846
- m.current !== _ && (m.current = _, T(_));
847
- }, [T]), S = Oe(
848
- (h) => {
849
- h.stopPropagation(), d.current = h.currentTarget.scrollTop, o === m.current && requestAnimationFrame(() => g());
1031
+ a !== g.current && m(a);
1032
+ }, [a, y]);
1033
+ const h = pe(() => {
1034
+ const R = x.current.find((O) => p.current >= O.offsetTop)?.id || "";
1035
+ g.current !== R && (g.current = R, v(R));
1036
+ }, [v]), w = pe(
1037
+ (m) => {
1038
+ m.stopPropagation(), p.current = m.currentTarget.scrollTop, a === g.current && requestAnimationFrame(() => h());
850
1039
  },
851
- [o, g]
1040
+ [a, h]
852
1041
  );
853
- return /* @__PURE__ */ y.jsx(
854
- D,
1042
+ return /* @__PURE__ */ d.jsx(
1043
+ $,
855
1044
  {
856
- ref: C,
857
- sx: Pr.box,
858
- ...f,
859
- className: Or(u),
1045
+ ref: S,
1046
+ sx: qr.box,
1047
+ ...l,
1048
+ className: Ur(i),
860
1049
  "data-scroller": !0,
861
- onScroll: (h) => S(h),
862
- children: n
1050
+ onScroll: (m) => w(m),
1051
+ children: t
863
1052
  }
864
1053
  );
865
1054
  }
866
- function Wr(n) {
867
- return n.map((o) => {
868
- const f = o, u = String(o);
869
- return { value: f, label: u };
1055
+ function ot(t) {
1056
+ return t.map((a) => {
1057
+ const l = a, i = String(a);
1058
+ return { value: l, label: i };
870
1059
  });
871
1060
  }
872
1061
  export {
873
- Dr as ListData,
874
- $r as ScrollToAnchor,
875
- Ar as SectionContainer,
876
- Ir as TabsToAnchor,
877
- Wr as createSelectOptionsFromArray
1062
+ Fr as CartoBasemapURL,
1063
+ ye as CartoBasemapsNames,
1064
+ Mr as DeckGLMapsComponent,
1065
+ he as GMapsBasemap,
1066
+ Lr as GoogleMapsComponent,
1067
+ et as ListData,
1068
+ rt as MapComponent,
1069
+ at as ScrollToAnchor,
1070
+ tt as SectionContainer,
1071
+ nt as TabsToAnchor,
1072
+ ot as createSelectOptionsFromArray
878
1073
  };