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