@carto/ps-react-maps 1.2.0 → 1.3.1-alpha.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,12 +1,12 @@
1
- import Fe, { createContext as ne, useContext as ae, useReducer as gr, useRef as je, useCallback as M } from "react";
2
- var Rr = /* @__PURE__ */ ((n) => (n.Roadmap = "roadmap", n.Satellite = "satellite", n.Terrain = "terrain", n))(Rr || {}), br = /* @__PURE__ */ ((n) => (n.DarkMatter = "dark-matter", n.Positron = "positron", n.Voyager = "voyager", n))(br || {});
3
- const Or = {
1
+ import Ie, { createContext as se, useContext as ue, useReducer as Sr, useRef as Fe, useCallback as I } from "react";
2
+ var oe = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(oe || {}), wr = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(wr || {});
3
+ const Nr = {
4
4
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
5
5
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
6
6
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
7
- }, Z = () => {
7
+ }, V = () => {
8
8
  throw new Error("You forgot to wrap your component in <MapProvider>.");
9
- }, Y = {
9
+ }, B = {
10
10
  state: {
11
11
  maps: {}
12
12
  // sync: false,
@@ -16,110 +16,132 @@ const Or = {
16
16
  },
17
17
  actions: {
18
18
  // toggleSync: stub,
19
- setViewState: Z,
20
- setBasemap: Z,
21
- setResize: Z,
22
- setZoom: Z
19
+ setViewState: V,
20
+ setBasemap: V,
21
+ setResize: V,
22
+ setZoom: V,
23
+ setLoaded: V
23
24
  }
24
- }, Ie = ne(
25
- Y.state
26
- ), Ae = ne(Y.references), Ve = ne(
27
- Y.actions
25
+ }, Ne = se(
26
+ B.state
27
+ ), Ue = se(B.references), Ve = se(
28
+ B.actions
28
29
  );
29
- var k = /* @__PURE__ */ ((n) => (n.SetViewState = "SetViewState", n.SetBasemap = "SetBasemap", n.SetResize = "SetResize", n.SetZoom = "SetZoom", n))(k || {});
30
- function hr(n, { type: m, payload: g }) {
30
+ var k = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(k || {});
31
+ function Tr(t, { type: s, payload: d }) {
31
32
  return {
32
33
  SetViewState: () => {
33
- const { id: u, viewState: R } = g, l = { ...n.maps };
34
- return l[u] = {
35
- ...n.maps[u],
36
- viewState: R
34
+ const { id: o, viewState: g } = d, l = { ...t.maps };
35
+ return l[o] = {
36
+ ...t.maps[o],
37
+ viewState: g
37
38
  }, {
38
- ...n,
39
+ ...t,
39
40
  maps: l
40
41
  };
41
42
  },
42
43
  SetResize: () => {
43
- const { id: u, width: R, height: l } = g, S = { ...n.maps };
44
- return S[u] = {
45
- ...n.maps[u],
44
+ const { id: o, width: g, height: l } = d, b = { ...t.maps };
45
+ return b[o] = {
46
+ ...t.maps[o],
46
47
  viewState: {
47
- ...n.maps[u].viewState,
48
- width: R,
48
+ ...t.maps[o].viewState,
49
+ width: g,
49
50
  height: l
50
51
  }
51
52
  }, {
52
- ...n,
53
- maps: S
53
+ ...t,
54
+ maps: b
54
55
  };
55
56
  },
56
57
  SetBasemap: () => {
57
- const { id: u, basemap: R } = g, l = { ...n.maps };
58
- return l[u] = {
59
- ...n.maps[u],
60
- basemap: R
58
+ const { id: o, basemap: g } = d, l = { ...t.maps }, { basemap: b } = l[o], u = Object.values(oe).includes(
59
+ b
60
+ ), R = Object.values(oe).includes(
61
+ g
62
+ ), y = u === R;
63
+ return l[o] = {
64
+ ...t.maps[o],
65
+ basemap: g,
66
+ isLoaded: y
61
67
  }, {
62
- ...n,
68
+ ...t,
63
69
  maps: l
64
70
  };
65
71
  },
66
72
  SetZoom: () => {
67
- const { id: u, zoom: R } = g, l = { ...n.maps };
68
- return l[u] = {
69
- ...n.maps[u],
73
+ const { id: o, zoom: g } = d, l = { ...t.maps };
74
+ return l[o] = {
75
+ ...t.maps[o],
70
76
  viewState: {
71
- ...n.maps[u].viewState,
72
- zoom: R
77
+ ...t.maps[o].viewState,
78
+ zoom: g
73
79
  }
74
80
  }, {
75
- ...n,
81
+ ...t,
82
+ maps: l
83
+ };
84
+ },
85
+ SetLoaded: () => {
86
+ const { id: o, value: g } = d, l = { ...t.maps };
87
+ return l[o] = {
88
+ ...t.maps[o],
89
+ isLoaded: g
90
+ }, {
91
+ ...t,
76
92
  maps: l
77
93
  };
78
94
  }
79
- }[m]?.() ?? n;
80
- }
81
- function Er() {
82
- return ae(Ie);
83
- }
84
- function _r() {
85
- return ae(Ae);
86
- }
87
- function Sr() {
88
- return ae(Ve);
95
+ }[s]?.() ?? t;
89
96
  }
90
- function Pr(n) {
91
- const {
92
- maps: { [n]: m }
93
- } = Er();
94
- return m;
97
+ function Cr(t) {
98
+ return ue(Ne).maps[t];
95
99
  }
96
- function xr(n) {
97
- const {
98
- current: {
99
- [n]: { instanceRef: m, overlayRef: g }
100
- }
101
- } = _r(), _ = () => {
102
- const l = m?.current;
103
- return l?.deck || l?._deck;
104
- };
100
+ function Ye(t) {
101
+ const s = ue(Ue), { instanceRef: d, overlayRef: _ } = s.current[t], o = () => {
102
+ const R = d?.current;
103
+ return R?.deck || R?._deck;
104
+ }, g = () => _?.current, l = () => o()._getViewState(), b = (R) => o()?.getViewports(R);
105
105
  return {
106
- instanceRef: m,
107
- overlayRef: g,
108
- getDeckInstance: _,
109
- getOverlayInstance: () => g?.current,
110
- getViewState: () => _()._getViewState()
106
+ instanceRef: d,
107
+ overlayRef: _,
108
+ getDeckInstance: o,
109
+ getOverlayInstance: g,
110
+ getViewState: l,
111
+ getViewport: (R = 0, y) => b(y)?.[R],
112
+ getViewports: b
111
113
  };
112
114
  }
113
- function jr(n) {
114
- const { setBasemap: m, setResize: g, setViewState: _, setZoom: u } = Sr();
115
+ function Or(t) {
116
+ const { setBasemap: s, setResize: d, setViewState: _, setZoom: o, setLoaded: g } = ue(Ve), { getViewport: l } = Ye(t);
115
117
  return {
116
- setBasemap: m.bind(null, n),
117
- setResize: g.bind(null, n),
118
- setViewState: _.bind(null, n),
119
- setZoom: u.bind(null, n)
118
+ setBasemap: (u) => s(u, t),
119
+ setResize: (u) => d(u, t),
120
+ setViewState: (u) => _(u, t),
121
+ setZoom: (u) => o(u, t),
122
+ setLoaded: (u) => g(u, t),
123
+ fitBounds: (u, {
124
+ boundsOptions: R,
125
+ viewStateOptions: y
126
+ } = {}) => {
127
+ const w = l(), { latitude: C, longitude: v, zoom: p } = w.fitBounds(
128
+ u,
129
+ R
130
+ );
131
+ _({ ...y, latitude: C, longitude: v, zoom: p }, t);
132
+ }
120
133
  };
121
134
  }
122
- var te = { exports: {} }, $ = {};
135
+ function Ur(t) {
136
+ return Cr(t);
137
+ }
138
+ function Vr(t) {
139
+ return Ye(t);
140
+ }
141
+ function Yr(t) {
142
+ return Or(t);
143
+ }
144
+ var ie = { exports: {} }, Y = {};
123
145
  /**
124
146
  * @license React
125
147
  * react-jsx-runtime.development.js
@@ -129,91 +151,91 @@ var te = { exports: {} }, $ = {};
129
151
  * This source code is licensed under the MIT license found in the
130
152
  * LICENSE file in the root directory of this source tree.
131
153
  */
132
- var ke;
133
- function wr() {
134
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
135
- var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), S = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), x = Symbol.iterator, oe = "@@iterator";
136
- function Me(e) {
154
+ var Ae;
155
+ function xr() {
156
+ return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
157
+ var t = Ie, s = Symbol.for("react.element"), d = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), b = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p = Symbol.iterator, j = "@@iterator";
158
+ function W(e) {
137
159
  if (e === null || typeof e != "object")
138
160
  return null;
139
- var r = x && e[x] || e[oe];
161
+ var r = p && e[p] || e[j];
140
162
  return typeof r == "function" ? r : null;
141
163
  }
142
- var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
143
- function h(e) {
164
+ var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
165
+ function S(e) {
144
166
  {
145
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
146
- t[a - 1] = arguments[a];
147
- $e("error", e, t);
167
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
168
+ n[a - 1] = arguments[a];
169
+ We("error", e, n);
148
170
  }
149
171
  }
150
- function $e(e, r, t) {
172
+ function We(e, r, n) {
151
173
  {
152
- var a = D.ReactDebugCurrentFrame, s = a.getStackAddendum();
153
- s !== "" && (r += "%s", t = t.concat([s]));
154
- var c = t.map(function(i) {
155
- return String(i);
174
+ var a = D.ReactDebugCurrentFrame, f = a.getStackAddendum();
175
+ f !== "" && (r += "%s", n = n.concat([f]));
176
+ var m = n.map(function(c) {
177
+ return String(c);
156
178
  });
157
- c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
179
+ m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
158
180
  }
159
181
  }
160
- var We = !1, Ye = !1, Le = !1, Be = !1, Ne = !1, ie;
161
- ie = Symbol.for("react.module.reference");
162
- function Ue(e) {
163
- return !!(typeof e == "string" || typeof e == "function" || e === _ || e === R || Ne || e === u || e === P || e === b || Be || e === d || We || Ye || Le || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === T || e.$$typeof === l || e.$$typeof === S || e.$$typeof === y || // This needs to include all possible module reference object
182
+ var ze = !1, Ze = !1, qe = !1, He = !1, Je = !1, ce;
183
+ ce = Symbol.for("react.module.reference");
184
+ function Ge(e) {
185
+ return !!(typeof e == "string" || typeof e == "function" || e === _ || e === g || Je || e === o || e === R || e === y || He || e === v || ze || Ze || qe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === w || e.$$typeof === l || e.$$typeof === b || e.$$typeof === u || // This needs to include all possible module reference object
164
186
  // types supported by any Flight configuration anywhere since
165
187
  // we don't know which Flight build this will end up being used
166
188
  // with.
167
- e.$$typeof === ie || e.getModuleId !== void 0));
189
+ e.$$typeof === ce || e.getModuleId !== void 0));
168
190
  }
169
- function ze(e, r, t) {
191
+ function Ke(e, r, n) {
170
192
  var a = e.displayName;
171
193
  if (a)
172
194
  return a;
173
- var s = r.displayName || r.name || "";
174
- return s !== "" ? t + "(" + s + ")" : t;
195
+ var f = r.displayName || r.name || "";
196
+ return f !== "" ? n + "(" + f + ")" : n;
175
197
  }
176
- function se(e) {
198
+ function le(e) {
177
199
  return e.displayName || "Context";
178
200
  }
179
- function C(e) {
201
+ function x(e) {
180
202
  if (e == null)
181
203
  return null;
182
- if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
204
+ if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
183
205
  return e.displayName || e.name || null;
184
206
  if (typeof e == "string")
185
207
  return e;
186
208
  switch (e) {
187
209
  case _:
188
210
  return "Fragment";
189
- case g:
211
+ case d:
190
212
  return "Portal";
191
- case R:
213
+ case g:
192
214
  return "Profiler";
193
- case u:
215
+ case o:
194
216
  return "StrictMode";
195
- case P:
217
+ case R:
196
218
  return "Suspense";
197
- case b:
219
+ case y:
198
220
  return "SuspenseList";
199
221
  }
200
222
  if (typeof e == "object")
201
223
  switch (e.$$typeof) {
202
- case S:
224
+ case b:
203
225
  var r = e;
204
- return se(r) + ".Consumer";
226
+ return le(r) + ".Consumer";
205
227
  case l:
206
- var t = e;
207
- return se(t._context) + ".Provider";
208
- case y:
209
- return ze(e, e.render, "ForwardRef");
210
- case T:
228
+ var n = e;
229
+ return le(n._context) + ".Provider";
230
+ case u:
231
+ return Ke(e, e.render, "ForwardRef");
232
+ case w:
211
233
  var a = e.displayName || null;
212
- return a !== null ? a : C(e.type) || "Memo";
213
- case f: {
214
- var s = e, c = s._payload, i = s._init;
234
+ return a !== null ? a : x(e.type) || "Memo";
235
+ case C: {
236
+ var f = e, m = f._payload, c = f._init;
215
237
  try {
216
- return C(i(c));
238
+ return x(c(m));
217
239
  } catch {
218
240
  return null;
219
241
  }
@@ -221,18 +243,18 @@ function wr() {
221
243
  }
222
244
  return null;
223
245
  }
224
- var j = Object.assign, A = 0, ue, ce, le, fe, de, ve, pe;
225
- function me() {
246
+ var A = Object.assign, N = 0, fe, de, ve, pe, me, ge, ye;
247
+ function Re() {
226
248
  }
227
- me.__reactDisabledLog = !0;
228
- function Ze() {
249
+ Re.__reactDisabledLog = !0;
250
+ function Xe() {
229
251
  {
230
- if (A === 0) {
231
- ue = console.log, ce = console.info, le = console.warn, fe = console.error, de = console.group, ve = console.groupCollapsed, pe = console.groupEnd;
252
+ if (N === 0) {
253
+ fe = console.log, de = console.info, ve = console.warn, pe = console.error, me = console.group, ge = console.groupCollapsed, ye = console.groupEnd;
232
254
  var e = {
233
255
  configurable: !0,
234
256
  enumerable: !0,
235
- value: me,
257
+ value: Re,
236
258
  writable: !0
237
259
  };
238
260
  Object.defineProperties(console, {
@@ -245,336 +267,336 @@ function wr() {
245
267
  groupEnd: e
246
268
  });
247
269
  }
248
- A++;
270
+ N++;
249
271
  }
250
272
  }
251
- function qe() {
273
+ function Qe() {
252
274
  {
253
- if (A--, A === 0) {
275
+ if (N--, N === 0) {
254
276
  var e = {
255
277
  configurable: !0,
256
278
  enumerable: !0,
257
279
  writable: !0
258
280
  };
259
281
  Object.defineProperties(console, {
260
- log: j({}, e, {
261
- value: ue
262
- }),
263
- info: j({}, e, {
264
- value: ce
265
- }),
266
- warn: j({}, e, {
267
- value: le
268
- }),
269
- error: j({}, e, {
282
+ log: A({}, e, {
270
283
  value: fe
271
284
  }),
272
- group: j({}, e, {
285
+ info: A({}, e, {
273
286
  value: de
274
287
  }),
275
- groupCollapsed: j({}, e, {
288
+ warn: A({}, e, {
276
289
  value: ve
277
290
  }),
278
- groupEnd: j({}, e, {
291
+ error: A({}, e, {
279
292
  value: pe
293
+ }),
294
+ group: A({}, e, {
295
+ value: me
296
+ }),
297
+ groupCollapsed: A({}, e, {
298
+ value: ge
299
+ }),
300
+ groupEnd: A({}, e, {
301
+ value: ye
280
302
  })
281
303
  });
282
304
  }
283
- A < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
305
+ N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
284
306
  }
285
307
  }
286
- var q = D.ReactCurrentDispatcher, J;
287
- function L(e, r, t) {
308
+ var G = D.ReactCurrentDispatcher, K;
309
+ function z(e, r, n) {
288
310
  {
289
- if (J === void 0)
311
+ if (K === void 0)
290
312
  try {
291
313
  throw Error();
292
- } catch (s) {
293
- var a = s.stack.trim().match(/\n( *(at )?)/);
294
- J = a && a[1] || "";
314
+ } catch (f) {
315
+ var a = f.stack.trim().match(/\n( *(at )?)/);
316
+ K = a && a[1] || "";
295
317
  }
296
318
  return `
297
- ` + J + e;
319
+ ` + K + e;
298
320
  }
299
321
  }
300
- var G = !1, B;
322
+ var X = !1, Z;
301
323
  {
302
- var Je = typeof WeakMap == "function" ? WeakMap : Map;
303
- B = new Je();
324
+ var er = typeof WeakMap == "function" ? WeakMap : Map;
325
+ Z = new er();
304
326
  }
305
- function ye(e, r) {
306
- if (!e || G)
327
+ function Ee(e, r) {
328
+ if (!e || X)
307
329
  return "";
308
330
  {
309
- var t = B.get(e);
310
- if (t !== void 0)
311
- return t;
331
+ var n = Z.get(e);
332
+ if (n !== void 0)
333
+ return n;
312
334
  }
313
335
  var a;
314
- G = !0;
315
- var s = Error.prepareStackTrace;
336
+ X = !0;
337
+ var f = Error.prepareStackTrace;
316
338
  Error.prepareStackTrace = void 0;
317
- var c;
318
- c = q.current, q.current = null, Ze();
339
+ var m;
340
+ m = G.current, G.current = null, Xe();
319
341
  try {
320
342
  if (r) {
321
- var i = function() {
343
+ var c = function() {
322
344
  throw Error();
323
345
  };
324
- if (Object.defineProperty(i.prototype, "props", {
346
+ if (Object.defineProperty(c.prototype, "props", {
325
347
  set: function() {
326
348
  throw Error();
327
349
  }
328
350
  }), typeof Reflect == "object" && Reflect.construct) {
329
351
  try {
330
- Reflect.construct(i, []);
331
- } catch (O) {
332
- a = O;
352
+ Reflect.construct(c, []);
353
+ } catch (P) {
354
+ a = P;
333
355
  }
334
- Reflect.construct(e, [], i);
356
+ Reflect.construct(e, [], c);
335
357
  } else {
336
358
  try {
337
- i.call();
338
- } catch (O) {
339
- a = O;
359
+ c.call();
360
+ } catch (P) {
361
+ a = P;
340
362
  }
341
- e.call(i.prototype);
363
+ e.call(c.prototype);
342
364
  }
343
365
  } else {
344
366
  try {
345
367
  throw Error();
346
- } catch (O) {
347
- a = O;
368
+ } catch (P) {
369
+ a = P;
348
370
  }
349
371
  e();
350
372
  }
351
- } catch (O) {
352
- if (O && a && typeof O.stack == "string") {
353
- for (var o = O.stack.split(`
354
- `), E = a.stack.split(`
355
- `), v = o.length - 1, p = E.length - 1; v >= 1 && p >= 0 && o[v] !== E[p]; )
356
- p--;
357
- for (; v >= 1 && p >= 0; v--, p--)
358
- if (o[v] !== E[p]) {
359
- if (v !== 1 || p !== 1)
373
+ } catch (P) {
374
+ if (P && a && typeof P.stack == "string") {
375
+ for (var i = P.stack.split(`
376
+ `), T = a.stack.split(`
377
+ `), E = i.length - 1, h = T.length - 1; E >= 1 && h >= 0 && i[E] !== T[h]; )
378
+ h--;
379
+ for (; E >= 1 && h >= 0; E--, h--)
380
+ if (i[E] !== T[h]) {
381
+ if (E !== 1 || h !== 1)
360
382
  do
361
- if (v--, p--, p < 0 || o[v] !== E[p]) {
362
- var w = `
363
- ` + o[v].replace(" at new ", " at ");
364
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, w), w;
383
+ if (E--, h--, h < 0 || i[E] !== T[h]) {
384
+ var O = `
385
+ ` + i[E].replace(" at new ", " at ");
386
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, O), O;
365
387
  }
366
- while (v >= 1 && p >= 0);
388
+ while (E >= 1 && h >= 0);
367
389
  break;
368
390
  }
369
391
  }
370
392
  } finally {
371
- G = !1, q.current = c, qe(), Error.prepareStackTrace = s;
393
+ X = !1, G.current = m, Qe(), Error.prepareStackTrace = f;
372
394
  }
373
- var I = e ? e.displayName || e.name : "", xe = I ? L(I) : "";
374
- return typeof e == "function" && B.set(e, xe), xe;
395
+ var M = e ? e.displayName || e.name : "", ke = M ? z(M) : "";
396
+ return typeof e == "function" && Z.set(e, ke), ke;
375
397
  }
376
- function Ge(e, r, t) {
377
- return ye(e, !1);
398
+ function rr(e, r, n) {
399
+ return Ee(e, !1);
378
400
  }
379
- function Ke(e) {
401
+ function tr(e) {
380
402
  var r = e.prototype;
381
403
  return !!(r && r.isReactComponent);
382
404
  }
383
- function N(e, r, t) {
405
+ function q(e, r, n) {
384
406
  if (e == null)
385
407
  return "";
386
408
  if (typeof e == "function")
387
- return ye(e, Ke(e));
409
+ return Ee(e, tr(e));
388
410
  if (typeof e == "string")
389
- return L(e);
411
+ return z(e);
390
412
  switch (e) {
391
- case P:
392
- return L("Suspense");
393
- case b:
394
- return L("SuspenseList");
413
+ case R:
414
+ return z("Suspense");
415
+ case y:
416
+ return z("SuspenseList");
395
417
  }
396
418
  if (typeof e == "object")
397
419
  switch (e.$$typeof) {
398
- case y:
399
- return Ge(e.render);
400
- case T:
401
- return N(e.type, r, t);
402
- case f: {
403
- var a = e, s = a._payload, c = a._init;
420
+ case u:
421
+ return rr(e.render);
422
+ case w:
423
+ return q(e.type, r, n);
424
+ case C: {
425
+ var a = e, f = a._payload, m = a._init;
404
426
  try {
405
- return N(c(s), r, t);
427
+ return q(m(f), r, n);
406
428
  } catch {
407
429
  }
408
430
  }
409
431
  }
410
432
  return "";
411
433
  }
412
- var U = Object.prototype.hasOwnProperty, ge = {}, Re = D.ReactDebugCurrentFrame;
413
- function z(e) {
434
+ var H = Object.prototype.hasOwnProperty, be = {}, he = D.ReactDebugCurrentFrame;
435
+ function J(e) {
414
436
  if (e) {
415
- var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
416
- Re.setExtraStackFrame(t);
437
+ var r = e._owner, n = q(e.type, e._source, r ? r.type : null);
438
+ he.setExtraStackFrame(n);
417
439
  } else
418
- Re.setExtraStackFrame(null);
440
+ he.setExtraStackFrame(null);
419
441
  }
420
- function He(e, r, t, a, s) {
442
+ function nr(e, r, n, a, f) {
421
443
  {
422
- var c = Function.call.bind(U);
423
- for (var i in e)
424
- if (c(e, i)) {
425
- var o = void 0;
444
+ var m = Function.call.bind(H);
445
+ for (var c in e)
446
+ if (m(e, c)) {
447
+ var i = void 0;
426
448
  try {
427
- if (typeof e[i] != "function") {
428
- var E = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
429
- throw E.name = "Invariant Violation", E;
449
+ if (typeof e[c] != "function") {
450
+ var T = Error((a || "React class") + ": " + n + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
451
+ throw T.name = "Invariant Violation", T;
430
452
  }
431
- o = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
432
- } catch (v) {
433
- o = v;
453
+ i = e[c](r, c, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
454
+ } catch (E) {
455
+ i = E;
434
456
  }
435
- o && !(o instanceof Error) && (z(s), h("%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, i, typeof o), z(null)), o instanceof Error && !(o.message in ge) && (ge[o.message] = !0, z(s), h("Failed %s type: %s", t, o.message), z(null));
457
+ i && !(i instanceof Error) && (J(f), S("%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", n, c, typeof i), J(null)), i instanceof Error && !(i.message in be) && (be[i.message] = !0, J(f), S("Failed %s type: %s", n, i.message), J(null));
436
458
  }
437
459
  }
438
460
  }
439
- var Xe = Array.isArray;
440
- function K(e) {
441
- return Xe(e);
461
+ var ar = Array.isArray;
462
+ function Q(e) {
463
+ return ar(e);
442
464
  }
443
- function Qe(e) {
465
+ function or(e) {
444
466
  {
445
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
446
- return t;
467
+ var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
468
+ return n;
447
469
  }
448
470
  }
449
- function er(e) {
471
+ function ir(e) {
450
472
  try {
451
- return be(e), !1;
473
+ return _e(e), !1;
452
474
  } catch {
453
475
  return !0;
454
476
  }
455
477
  }
456
- function be(e) {
478
+ function _e(e) {
457
479
  return "" + e;
458
480
  }
459
- function he(e) {
460
- if (er(e))
461
- return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), be(e);
481
+ function Se(e) {
482
+ if (ir(e))
483
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), _e(e);
462
484
  }
463
- var V = D.ReactCurrentOwner, rr = {
485
+ var U = D.ReactCurrentOwner, sr = {
464
486
  key: !0,
465
487
  ref: !0,
466
488
  __self: !0,
467
489
  __source: !0
468
- }, Ee, _e, H;
469
- H = {};
470
- function tr(e) {
471
- if (U.call(e, "ref")) {
490
+ }, we, Te, ee;
491
+ ee = {};
492
+ function ur(e) {
493
+ if (H.call(e, "ref")) {
472
494
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
473
495
  if (r && r.isReactWarning)
474
496
  return !1;
475
497
  }
476
498
  return e.ref !== void 0;
477
499
  }
478
- function nr(e) {
479
- if (U.call(e, "key")) {
500
+ function cr(e) {
501
+ if (H.call(e, "key")) {
480
502
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
481
503
  if (r && r.isReactWarning)
482
504
  return !1;
483
505
  }
484
506
  return e.key !== void 0;
485
507
  }
486
- function ar(e, r) {
487
- if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
488
- var t = C(V.current.type);
489
- H[t] || (h('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(V.current.type), e.ref), H[t] = !0);
508
+ function lr(e, r) {
509
+ if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
510
+ var n = x(U.current.type);
511
+ ee[n] || (S('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', x(U.current.type), e.ref), ee[n] = !0);
490
512
  }
491
513
  }
492
- function or(e, r) {
514
+ function fr(e, r) {
493
515
  {
494
- var t = function() {
495
- Ee || (Ee = !0, h("%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));
516
+ var n = function() {
517
+ we || (we = !0, S("%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));
496
518
  };
497
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
498
- get: t,
519
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
520
+ get: n,
499
521
  configurable: !0
500
522
  });
501
523
  }
502
524
  }
503
- function ir(e, r) {
525
+ function dr(e, r) {
504
526
  {
505
- var t = function() {
506
- _e || (_e = !0, h("%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));
527
+ var n = function() {
528
+ Te || (Te = !0, S("%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));
507
529
  };
508
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
509
- get: t,
530
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
531
+ get: n,
510
532
  configurable: !0
511
533
  });
512
534
  }
513
535
  }
514
- var sr = function(e, r, t, a, s, c, i) {
515
- var o = {
536
+ var vr = function(e, r, n, a, f, m, c) {
537
+ var i = {
516
538
  // This tag allows us to uniquely identify this as a React Element
517
- $$typeof: m,
539
+ $$typeof: s,
518
540
  // Built-in properties that belong on the element
519
541
  type: e,
520
542
  key: r,
521
- ref: t,
522
- props: i,
543
+ ref: n,
544
+ props: c,
523
545
  // Record the component responsible for creating this element.
524
- _owner: c
546
+ _owner: m
525
547
  };
526
- return o._store = {}, Object.defineProperty(o._store, "validated", {
548
+ return i._store = {}, Object.defineProperty(i._store, "validated", {
527
549
  configurable: !1,
528
550
  enumerable: !1,
529
551
  writable: !0,
530
552
  value: !1
531
- }), Object.defineProperty(o, "_self", {
553
+ }), Object.defineProperty(i, "_self", {
532
554
  configurable: !1,
533
555
  enumerable: !1,
534
556
  writable: !1,
535
557
  value: a
536
- }), Object.defineProperty(o, "_source", {
558
+ }), Object.defineProperty(i, "_source", {
537
559
  configurable: !1,
538
560
  enumerable: !1,
539
561
  writable: !1,
540
- value: s
541
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
562
+ value: f
563
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
542
564
  };
543
- function ur(e, r, t, a, s) {
565
+ function pr(e, r, n, a, f) {
544
566
  {
545
- var c, i = {}, o = null, E = null;
546
- t !== void 0 && (he(t), o = "" + t), nr(r) && (he(r.key), o = "" + r.key), tr(r) && (E = r.ref, ar(r, s));
547
- for (c in r)
548
- U.call(r, c) && !rr.hasOwnProperty(c) && (i[c] = r[c]);
567
+ var m, c = {}, i = null, T = null;
568
+ n !== void 0 && (Se(n), i = "" + n), cr(r) && (Se(r.key), i = "" + r.key), ur(r) && (T = r.ref, lr(r, f));
569
+ for (m in r)
570
+ H.call(r, m) && !sr.hasOwnProperty(m) && (c[m] = r[m]);
549
571
  if (e && e.defaultProps) {
550
- var v = e.defaultProps;
551
- for (c in v)
552
- i[c] === void 0 && (i[c] = v[c]);
572
+ var E = e.defaultProps;
573
+ for (m in E)
574
+ c[m] === void 0 && (c[m] = E[m]);
553
575
  }
554
- if (o || E) {
555
- var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
556
- o && or(i, p), E && ir(i, p);
576
+ if (i || T) {
577
+ var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
578
+ i && fr(c, h), T && dr(c, h);
557
579
  }
558
- return sr(e, o, E, s, a, V.current, i);
580
+ return vr(e, i, T, f, a, U.current, c);
559
581
  }
560
582
  }
561
- var X = D.ReactCurrentOwner, Se = D.ReactDebugCurrentFrame;
562
- function F(e) {
583
+ var re = D.ReactCurrentOwner, Ce = D.ReactDebugCurrentFrame;
584
+ function L(e) {
563
585
  if (e) {
564
- var r = e._owner, t = N(e.type, e._source, r ? r.type : null);
565
- Se.setExtraStackFrame(t);
586
+ var r = e._owner, n = q(e.type, e._source, r ? r.type : null);
587
+ Ce.setExtraStackFrame(n);
566
588
  } else
567
- Se.setExtraStackFrame(null);
589
+ Ce.setExtraStackFrame(null);
568
590
  }
569
- var Q;
570
- Q = !1;
571
- function ee(e) {
572
- return typeof e == "object" && e !== null && e.$$typeof === m;
591
+ var te;
592
+ te = !1;
593
+ function ne(e) {
594
+ return typeof e == "object" && e !== null && e.$$typeof === s;
573
595
  }
574
- function we() {
596
+ function Oe() {
575
597
  {
576
- if (X.current) {
577
- var e = C(X.current.type);
598
+ if (re.current) {
599
+ var e = x(re.current.type);
578
600
  if (e)
579
601
  return `
580
602
 
@@ -583,140 +605,140 @@ Check the render method of \`` + e + "`.";
583
605
  return "";
584
606
  }
585
607
  }
586
- function cr(e) {
608
+ function mr(e) {
587
609
  {
588
610
  if (e !== void 0) {
589
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
611
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
590
612
  return `
591
613
 
592
- Check your code at ` + r + ":" + t + ".";
614
+ Check your code at ` + r + ":" + n + ".";
593
615
  }
594
616
  return "";
595
617
  }
596
618
  }
597
- var Te = {};
598
- function lr(e) {
619
+ var xe = {};
620
+ function gr(e) {
599
621
  {
600
- var r = we();
622
+ var r = Oe();
601
623
  if (!r) {
602
- var t = typeof e == "string" ? e : e.displayName || e.name;
603
- t && (r = `
624
+ var n = typeof e == "string" ? e : e.displayName || e.name;
625
+ n && (r = `
604
626
 
605
- Check the top-level render call using <` + t + ">.");
627
+ Check the top-level render call using <` + n + ">.");
606
628
  }
607
629
  return r;
608
630
  }
609
631
  }
610
- function Ce(e, r) {
632
+ function Pe(e, r) {
611
633
  {
612
634
  if (!e._store || e._store.validated || e.key != null)
613
635
  return;
614
636
  e._store.validated = !0;
615
- var t = lr(r);
616
- if (Te[t])
637
+ var n = gr(r);
638
+ if (xe[n])
617
639
  return;
618
- Te[t] = !0;
640
+ xe[n] = !0;
619
641
  var a = "";
620
- e && e._owner && e._owner !== X.current && (a = " It was passed a child from " + C(e._owner.type) + "."), F(e), h('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), F(null);
642
+ e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + x(e._owner.type) + "."), L(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), L(null);
621
643
  }
622
644
  }
623
- function Oe(e, r) {
645
+ function je(e, r) {
624
646
  {
625
647
  if (typeof e != "object")
626
648
  return;
627
- if (K(e))
628
- for (var t = 0; t < e.length; t++) {
629
- var a = e[t];
630
- ee(a) && Ce(a, r);
649
+ if (Q(e))
650
+ for (var n = 0; n < e.length; n++) {
651
+ var a = e[n];
652
+ ne(a) && Pe(a, r);
631
653
  }
632
- else if (ee(e))
654
+ else if (ne(e))
633
655
  e._store && (e._store.validated = !0);
634
656
  else if (e) {
635
- var s = Me(e);
636
- if (typeof s == "function" && s !== e.entries)
637
- for (var c = s.call(e), i; !(i = c.next()).done; )
638
- ee(i.value) && Ce(i.value, r);
657
+ var f = W(e);
658
+ if (typeof f == "function" && f !== e.entries)
659
+ for (var m = f.call(e), c; !(c = m.next()).done; )
660
+ ne(c.value) && Pe(c.value, r);
639
661
  }
640
662
  }
641
663
  }
642
- function fr(e) {
664
+ function yr(e) {
643
665
  {
644
666
  var r = e.type;
645
667
  if (r == null || typeof r == "string")
646
668
  return;
647
- var t;
669
+ var n;
648
670
  if (typeof r == "function")
649
- t = r.propTypes;
650
- else if (typeof r == "object" && (r.$$typeof === y || // Note: Memo only checks outer props here.
671
+ n = r.propTypes;
672
+ else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
651
673
  // Inner props are checked in the reconciler.
652
- r.$$typeof === T))
653
- t = r.propTypes;
674
+ r.$$typeof === w))
675
+ n = r.propTypes;
654
676
  else
655
677
  return;
656
- if (t) {
657
- var a = C(r);
658
- He(t, e.props, "prop", a, e);
659
- } else if (r.PropTypes !== void 0 && !Q) {
660
- Q = !0;
661
- var s = C(r);
662
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
678
+ if (n) {
679
+ var a = x(r);
680
+ nr(n, e.props, "prop", a, e);
681
+ } else if (r.PropTypes !== void 0 && !te) {
682
+ te = !0;
683
+ var f = x(r);
684
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
663
685
  }
664
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
686
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
665
687
  }
666
688
  }
667
- function dr(e) {
689
+ function Rr(e) {
668
690
  {
669
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
670
- var a = r[t];
691
+ for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
692
+ var a = r[n];
671
693
  if (a !== "children" && a !== "key") {
672
- F(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
694
+ L(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
673
695
  break;
674
696
  }
675
697
  }
676
- e.ref !== null && (F(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
698
+ e.ref !== null && (L(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
677
699
  }
678
700
  }
679
- function Pe(e, r, t, a, s, c) {
701
+ function De(e, r, n, a, f, m) {
680
702
  {
681
- var i = Ue(e);
682
- if (!i) {
683
- var o = "";
684
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
685
- var E = cr(s);
686
- E ? o += E : o += we();
687
- var v;
688
- e === null ? v = "null" : K(e) ? v = "array" : e !== void 0 && e.$$typeof === m ? (v = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, o);
703
+ var c = Ge(e);
704
+ if (!c) {
705
+ var i = "";
706
+ (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.");
707
+ var T = mr(f);
708
+ T ? i += T : i += Oe();
709
+ var E;
710
+ e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (x(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, i);
689
711
  }
690
- var p = ur(e, r, t, s, c);
691
- if (p == null)
692
- return p;
693
- if (i) {
694
- var w = r.children;
695
- if (w !== void 0)
712
+ var h = pr(e, r, n, f, m);
713
+ if (h == null)
714
+ return h;
715
+ if (c) {
716
+ var O = r.children;
717
+ if (O !== void 0)
696
718
  if (a)
697
- if (K(w)) {
698
- for (var I = 0; I < w.length; I++)
699
- Oe(w[I], e);
700
- Object.freeze && Object.freeze(w);
719
+ if (Q(O)) {
720
+ for (var M = 0; M < O.length; M++)
721
+ je(O[M], e);
722
+ Object.freeze && Object.freeze(O);
701
723
  } else
702
- h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
724
+ S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
703
725
  else
704
- Oe(w, e);
726
+ je(O, e);
705
727
  }
706
- return e === _ ? dr(p) : fr(p), p;
728
+ return e === _ ? Rr(h) : yr(h), h;
707
729
  }
708
730
  }
709
- function vr(e, r, t) {
710
- return Pe(e, r, t, !0);
731
+ function Er(e, r, n) {
732
+ return De(e, r, n, !0);
711
733
  }
712
- function pr(e, r, t) {
713
- return Pe(e, r, t, !1);
734
+ function br(e, r, n) {
735
+ return De(e, r, n, !1);
714
736
  }
715
- var mr = pr, yr = vr;
716
- $.Fragment = _, $.jsx = mr, $.jsxs = yr;
717
- }()), $;
737
+ var hr = br, _r = Er;
738
+ Y.Fragment = _, Y.jsx = hr, Y.jsxs = _r;
739
+ }()), Y;
718
740
  }
719
- var W = {};
741
+ var $ = {};
720
742
  /**
721
743
  * @license React
722
744
  * react-jsx-runtime.production.min.js
@@ -726,116 +748,217 @@ var W = {};
726
748
  * This source code is licensed under the MIT license found in the
727
749
  * LICENSE file in the root directory of this source tree.
728
750
  */
729
- var De;
730
- function Tr() {
731
- if (De)
732
- return W;
733
- De = 1;
734
- var n = Fe, m = Symbol.for("react.element"), g = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
735
- function l(S, y, P) {
736
- var b, T = {}, f = null, d = null;
737
- P !== void 0 && (f = "" + P), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (d = y.ref);
738
- for (b in y)
739
- _.call(y, b) && !R.hasOwnProperty(b) && (T[b] = y[b]);
740
- if (S && S.defaultProps)
741
- for (b in y = S.defaultProps, y)
742
- T[b] === void 0 && (T[b] = y[b]);
743
- return { $$typeof: m, type: S, key: f, ref: d, props: T, _owner: u.current };
751
+ var Le;
752
+ function Pr() {
753
+ if (Le)
754
+ return $;
755
+ Le = 1;
756
+ var t = Ie, s = Symbol.for("react.element"), d = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
757
+ function l(b, u, R) {
758
+ var y, w = {}, C = null, v = null;
759
+ R !== void 0 && (C = "" + R), u.key !== void 0 && (C = "" + u.key), u.ref !== void 0 && (v = u.ref);
760
+ for (y in u)
761
+ _.call(u, y) && !g.hasOwnProperty(y) && (w[y] = u[y]);
762
+ if (b && b.defaultProps)
763
+ for (y in u = b.defaultProps, u)
764
+ w[y] === void 0 && (w[y] = u[y]);
765
+ return { $$typeof: s, type: b, key: C, ref: v, props: w, _owner: o.current };
744
766
  }
745
- return W.Fragment = g, W.jsx = l, W.jsxs = l, W;
767
+ return $.Fragment = d, $.jsx = l, $.jsxs = l, $;
746
768
  }
747
- process.env.NODE_ENV === "production" ? te.exports = Tr() : te.exports = wr();
748
- var re = te.exports;
749
- function kr({
750
- children: n,
751
- maps: m,
752
- externalSync: g
769
+ process.env.NODE_ENV === "production" ? ie.exports = Pr() : ie.exports = xr();
770
+ var ae = ie.exports;
771
+ function $r({
772
+ children: t,
773
+ maps: s,
774
+ externalSync: d
753
775
  }) {
754
- const [_, u] = gr(hr, {
755
- ...Y.state,
756
- maps: m.reduce((f, d) => (f[d.id] = d, f), Y.state.maps)
757
- }), R = je(
758
- m.reduce((f, d) => (f[d.id] = {
776
+ const [_, o] = Sr(Tr, {
777
+ ...B.state,
778
+ maps: s.reduce((v, p) => (v[p.id] = {
779
+ ...p,
780
+ isLoaded: !1
781
+ }, v), B.state.maps)
782
+ }), g = Fe(
783
+ s.reduce((v, p) => (v[p.id] = {
759
784
  instanceRef: {
760
785
  current: null
761
786
  },
762
787
  overlayRef: {
763
788
  current: null
764
789
  }
765
- }, f), {})
766
- ), l = M(
767
- (f, d, x) => {
768
- m[0].id === f && g?.({
769
- type: d,
770
- payload: x
790
+ }, v), {})
791
+ ), l = I(
792
+ (v, p, j) => {
793
+ s[0].id === v && d?.({
794
+ type: p,
795
+ payload: j
771
796
  });
772
797
  },
773
- [g, m]
774
- ), S = M(
775
- (f, d) => {
776
- u({
798
+ [d, s]
799
+ ), b = I(
800
+ (v, p) => {
801
+ o({
777
802
  type: k.SetViewState,
778
803
  payload: {
779
- id: f,
780
- viewState: d
804
+ id: p,
805
+ viewState: v
781
806
  }
782
- }), l(f, k.SetViewState, d);
807
+ }), l(p, k.SetViewState, v);
783
808
  },
784
- [u, l]
785
- ), y = M(
786
- (f, { height: d, width: x }) => {
787
- u({
809
+ [o, l]
810
+ ), u = I(
811
+ ({ height: v, width: p }, j) => {
812
+ o({
788
813
  type: k.SetResize,
789
814
  payload: {
790
- id: f,
791
- height: d,
792
- width: x
815
+ id: j,
816
+ height: v,
817
+ width: p
793
818
  }
794
- }), l(f, k.SetResize, { height: d, width: x });
819
+ }), l(j, k.SetResize, { height: v, width: p });
795
820
  },
796
- [u, l]
797
- ), P = M(
798
- (f, d) => {
799
- u({
821
+ [o, l]
822
+ ), R = I(
823
+ (v, p) => {
824
+ o({
800
825
  type: k.SetBasemap,
801
826
  payload: {
802
- id: f,
803
- basemap: d
827
+ id: p,
828
+ basemap: v
804
829
  }
805
830
  });
806
831
  },
807
- [u]
808
- ), b = M(
809
- (f, d) => {
810
- u({
832
+ [o]
833
+ ), y = I(
834
+ (v, p) => {
835
+ o({
811
836
  type: k.SetZoom,
812
837
  payload: {
813
- id: f,
814
- zoom: d
838
+ id: p,
839
+ zoom: v
815
840
  }
816
841
  });
817
842
  },
818
- [u]
819
- ), T = je({
820
- setViewState: S,
821
- setBasemap: P,
822
- setResize: y,
823
- setZoom: b
843
+ [o]
844
+ ), w = I(
845
+ (v, p) => {
846
+ o({
847
+ type: k.SetLoaded,
848
+ payload: {
849
+ id: p,
850
+ value: v
851
+ }
852
+ });
853
+ },
854
+ [o]
855
+ ), C = Fe({
856
+ setViewState: b,
857
+ setBasemap: R,
858
+ setResize: u,
859
+ setZoom: y,
860
+ setLoaded: w
824
861
  });
825
- return /* @__PURE__ */ re.jsx(Ve.Provider, { value: T.current, children: /* @__PURE__ */ re.jsx(Ae.Provider, { value: R, children: /* @__PURE__ */ re.jsx(Ie.Provider, { value: _, children: n }) }) });
862
+ return /* @__PURE__ */ ae.jsx(Ve.Provider, { value: C.current, children: /* @__PURE__ */ ae.jsx(Ue.Provider, { value: g, children: /* @__PURE__ */ ae.jsx(Ne.Provider, { value: _, children: t }) }) });
863
+ }
864
+ const $e = {
865
+ NUMBER: {
866
+ style: "decimal",
867
+ maximumFractionDigits: 1,
868
+ minimumFractionDigits: 0,
869
+ notation: "compact",
870
+ compactDisplay: "short"
871
+ },
872
+ CURRENCY: {
873
+ style: "currency",
874
+ currency: "USD",
875
+ maximumFractionDigits: 2,
876
+ minimumFractionDigits: 2,
877
+ notation: "compact",
878
+ compactDisplay: "short"
879
+ },
880
+ DATE: {
881
+ year: "numeric",
882
+ month: "2-digit",
883
+ day: "2-digit"
884
+ }
885
+ };
886
+ function Be(t, s, d) {
887
+ return Intl.NumberFormat(s, d).format(t);
888
+ }
889
+ function jr(t, s, d = {}) {
890
+ return Be(t, s, { ...$e.NUMBER, ...d });
891
+ }
892
+ function Dr(t, s, d = {}) {
893
+ return Be(t, s, { ...$e.CURRENCY, ...d });
894
+ }
895
+ var F = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(F || {});
896
+ const Me = {
897
+ [F.CURRENCY]: {
898
+ type: F.CURRENCY,
899
+ format: (t, s) => Dr(t, s)
900
+ },
901
+ [F.NUMBER]: {
902
+ type: F.NUMBER,
903
+ format: (t, s) => jr(t, s)
904
+ },
905
+ [F.DEFAULT]: {
906
+ type: F.DEFAULT,
907
+ format: (t) => t.toLocaleString()
908
+ }
909
+ };
910
+ function Br({
911
+ properties: t,
912
+ formatters: s = {},
913
+ includeColumns: d = Object.keys(t),
914
+ locale: _ = "en-US",
915
+ showColumnName: o = !0,
916
+ title: g,
917
+ getColumnName: l = Mr,
918
+ getFieldHtml: b = Fr,
919
+ getTitle: u = kr,
920
+ getValue: R = Ar
921
+ }) {
922
+ const y = g ? u(g) : "", C = d.reduce((v, p) => {
923
+ const j = s[p], W = t[p], D = R(W, _, j), S = o ? l(p) : "";
924
+ return v + b(S, D);
925
+ }, "");
926
+ return y + C;
927
+ }
928
+ function kr(t) {
929
+ return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
930
+ }
931
+ function Fr(t, s) {
932
+ return `${t}${s}</br>`;
933
+ }
934
+ function Ar(t, s, d) {
935
+ try {
936
+ return Lr(d)(t, s);
937
+ } catch {
938
+ return t;
939
+ }
940
+ }
941
+ function Lr(t) {
942
+ return typeof t == "function" ? t : (t && Me[t] || Me[F.DEFAULT]).format;
943
+ }
944
+ function Mr(t) {
945
+ return `<strong>${t}</strong>: `;
826
946
  }
827
947
  export {
828
- Or as CartoBasemapURL,
829
- br as CartoBasemapsNames,
830
- Rr as GMapsBasemap,
831
- Y as INITIAL_STATE,
948
+ Nr as CartoBasemapURL,
949
+ wr as CartoBasemapsNames,
950
+ F as FormatterTypes,
951
+ oe as GMapsBasemap,
952
+ B as INITIAL_STATE,
832
953
  Ve as MapActionsContext,
833
- Ie as MapContext,
834
- kr as MapProvider,
835
- hr as reducer,
836
- Er as useMap,
837
- Sr as useMapActions,
838
- jr as useMapActionsByID,
839
- Pr as useMapByID,
840
- xr as useMapReferencesByID
954
+ Ne as MapContext,
955
+ $r as MapProvider,
956
+ Br as objectToHtml,
957
+ Tr as reducer,
958
+ Cr as useMap,
959
+ Or as useMapActions,
960
+ Yr as useMapActionsByID,
961
+ Ur as useMapByID,
962
+ Ye as useMapRefences,
963
+ Vr as useMapReferencesByID
841
964
  };