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