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