@tmf_ciclica/ciclicastorybook 1.1.7 → 1.1.9
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.js +28 -28
- package/dist/index.es.js +1243 -1232
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as J from "react";
|
|
2
|
-
import jt, { useState as We, useMemo as Ue, useEffect as
|
|
2
|
+
import jt, { useState as We, useMemo as Ue, useEffect as se, useLayoutEffect as Co, useContext as dt, useRef as De, useImperativeHandle as Lt, memo as Ge, forwardRef as yn, cloneElement as Qi } from "react";
|
|
3
3
|
import { useTranslation as $e, Trans as So } from "react-i18next";
|
|
4
4
|
import { motion as wo } from "framer-motion";
|
|
5
5
|
import { create as ca } from "zustand";
|
|
@@ -51,11 +51,11 @@ function xa() {
|
|
|
51
51
|
Vo = 1;
|
|
52
52
|
var e = jt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
53
53
|
function s(l, c, u) {
|
|
54
|
-
var p,
|
|
54
|
+
var p, d = {}, h = null, v = null;
|
|
55
55
|
u !== void 0 && (h = "" + u), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
56
|
-
for (p in c) r.call(c, p) && !i.hasOwnProperty(p) && (
|
|
57
|
-
if (l && l.defaultProps) for (p in c = l.defaultProps, c)
|
|
58
|
-
return { $$typeof: t, type: l, key: h, ref: v, props:
|
|
56
|
+
for (p in c) r.call(c, p) && !i.hasOwnProperty(p) && (d[p] = c[p]);
|
|
57
|
+
if (l && l.defaultProps) for (p in c = l.defaultProps, c) d[p] === void 0 && (d[p] = c[p]);
|
|
58
|
+
return { $$typeof: t, type: l, key: h, ref: v, props: d, _owner: o.current };
|
|
59
59
|
}
|
|
60
60
|
return kn.Fragment = n, kn.jsx = s, kn.jsxs = s, kn;
|
|
61
61
|
}
|
|
@@ -72,54 +72,54 @@ var On = {};
|
|
|
72
72
|
var qo;
|
|
73
73
|
function Ca() {
|
|
74
74
|
return qo || (qo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
75
|
-
var e = jt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"),
|
|
75
|
+
var e = jt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, f = "@@iterator";
|
|
76
76
|
function x(g) {
|
|
77
77
|
if (g === null || typeof g != "object")
|
|
78
78
|
return null;
|
|
79
|
-
var
|
|
80
|
-
return typeof
|
|
79
|
+
var E = b && g[b] || g[f];
|
|
80
|
+
return typeof E == "function" ? E : null;
|
|
81
81
|
}
|
|
82
82
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
83
|
-
function
|
|
83
|
+
function R(g) {
|
|
84
84
|
{
|
|
85
|
-
for (var
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
for (var E = arguments.length, M = new Array(E > 1 ? E - 1 : 0), te = 1; te < E; te++)
|
|
86
|
+
M[te - 1] = arguments[te];
|
|
87
|
+
w("error", g, M);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function w(g, E, M) {
|
|
91
91
|
{
|
|
92
|
-
var
|
|
93
|
-
G !== "" && (
|
|
94
|
-
var
|
|
92
|
+
var te = C.ReactDebugCurrentFrame, G = te.getStackAddendum();
|
|
93
|
+
G !== "" && (E += "%s", M = M.concat([G]));
|
|
94
|
+
var oe = M.map(function(ue) {
|
|
95
95
|
return String(ue);
|
|
96
96
|
});
|
|
97
|
-
|
|
97
|
+
oe.unshift("Warning: " + E), Function.prototype.apply.call(console[g], console, oe);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
var
|
|
100
|
+
var k = !1, _ = !1, D = !1, y = !1, T = !1, S;
|
|
101
101
|
S = Symbol.for("react.module.reference");
|
|
102
102
|
function $(g) {
|
|
103
|
-
return !!(typeof g == "string" || typeof g == "function" || g === r || g === i ||
|
|
103
|
+
return !!(typeof g == "string" || typeof g == "function" || g === r || g === i || T || g === o || g === u || g === p || y || g === v || k || _ || D || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === d || g.$$typeof === s || g.$$typeof === l || g.$$typeof === c || // This needs to include all possible module reference object
|
|
104
104
|
// types supported by any Flight configuration anywhere since
|
|
105
105
|
// we don't know which Flight build this will end up being used
|
|
106
106
|
// with.
|
|
107
107
|
g.$$typeof === S || g.getModuleId !== void 0));
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
var
|
|
111
|
-
if (
|
|
112
|
-
return
|
|
113
|
-
var G =
|
|
114
|
-
return G !== "" ?
|
|
109
|
+
function N(g, E, M) {
|
|
110
|
+
var te = g.displayName;
|
|
111
|
+
if (te)
|
|
112
|
+
return te;
|
|
113
|
+
var G = E.displayName || E.name || "";
|
|
114
|
+
return G !== "" ? M + "(" + G + ")" : M;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function X(g) {
|
|
117
117
|
return g.displayName || "Context";
|
|
118
118
|
}
|
|
119
119
|
function B(g) {
|
|
120
120
|
if (g == null)
|
|
121
121
|
return null;
|
|
122
|
-
if (typeof g.tag == "number" &&
|
|
122
|
+
if (typeof g.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
123
123
|
return g.displayName || g.name || null;
|
|
124
124
|
if (typeof g == "string")
|
|
125
125
|
return g;
|
|
@@ -140,20 +140,20 @@ function Ca() {
|
|
|
140
140
|
if (typeof g == "object")
|
|
141
141
|
switch (g.$$typeof) {
|
|
142
142
|
case l:
|
|
143
|
-
var
|
|
144
|
-
return
|
|
143
|
+
var E = g;
|
|
144
|
+
return X(E) + ".Consumer";
|
|
145
145
|
case s:
|
|
146
|
-
var
|
|
147
|
-
return
|
|
146
|
+
var M = g;
|
|
147
|
+
return X(M._context) + ".Provider";
|
|
148
148
|
case c:
|
|
149
|
-
return
|
|
150
|
-
case
|
|
151
|
-
var
|
|
152
|
-
return
|
|
149
|
+
return N(g, g.render, "ForwardRef");
|
|
150
|
+
case d:
|
|
151
|
+
var te = g.displayName || null;
|
|
152
|
+
return te !== null ? te : B(g.type) || "Memo";
|
|
153
153
|
case h: {
|
|
154
|
-
var G = g,
|
|
154
|
+
var G = g, oe = G._payload, ue = G._init;
|
|
155
155
|
try {
|
|
156
|
-
return B(ue(
|
|
156
|
+
return B(ue(oe));
|
|
157
157
|
} catch {
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
@@ -161,18 +161,18 @@ function Ca() {
|
|
|
161
161
|
}
|
|
162
162
|
return null;
|
|
163
163
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
164
|
+
var Y = Object.assign, V = 0, ie, re, Ee, je, O, A, Q;
|
|
165
|
+
function q() {
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
q.__reactDisabledLog = !0;
|
|
168
168
|
function F() {
|
|
169
169
|
{
|
|
170
|
-
if (
|
|
171
|
-
|
|
170
|
+
if (V === 0) {
|
|
171
|
+
ie = console.log, re = console.info, Ee = console.warn, je = console.error, O = console.group, A = console.groupCollapsed, Q = console.groupEnd;
|
|
172
172
|
var g = {
|
|
173
173
|
configurable: !0,
|
|
174
174
|
enumerable: !0,
|
|
175
|
-
value:
|
|
175
|
+
value: q,
|
|
176
176
|
writable: !0
|
|
177
177
|
};
|
|
178
178
|
Object.defineProperties(console, {
|
|
@@ -185,79 +185,79 @@ function Ca() {
|
|
|
185
185
|
groupEnd: g
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
V++;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function ee() {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (V--, V === 0) {
|
|
194
194
|
var g = {
|
|
195
195
|
configurable: !0,
|
|
196
196
|
enumerable: !0,
|
|
197
197
|
writable: !0
|
|
198
198
|
};
|
|
199
199
|
Object.defineProperties(console, {
|
|
200
|
-
log:
|
|
201
|
-
value:
|
|
200
|
+
log: Y({}, g, {
|
|
201
|
+
value: ie
|
|
202
202
|
}),
|
|
203
|
-
info:
|
|
204
|
-
value:
|
|
203
|
+
info: Y({}, g, {
|
|
204
|
+
value: re
|
|
205
205
|
}),
|
|
206
|
-
warn:
|
|
206
|
+
warn: Y({}, g, {
|
|
207
207
|
value: Ee
|
|
208
208
|
}),
|
|
209
|
-
error:
|
|
209
|
+
error: Y({}, g, {
|
|
210
210
|
value: je
|
|
211
211
|
}),
|
|
212
|
-
group:
|
|
212
|
+
group: Y({}, g, {
|
|
213
213
|
value: O
|
|
214
214
|
}),
|
|
215
|
-
groupCollapsed:
|
|
215
|
+
groupCollapsed: Y({}, g, {
|
|
216
216
|
value: A
|
|
217
217
|
}),
|
|
218
|
-
groupEnd:
|
|
219
|
-
value:
|
|
218
|
+
groupEnd: Y({}, g, {
|
|
219
|
+
value: Q
|
|
220
220
|
})
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
V < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
function U(g,
|
|
226
|
+
var K = C.ReactCurrentDispatcher, H;
|
|
227
|
+
function U(g, E, M) {
|
|
228
228
|
{
|
|
229
|
-
if (
|
|
229
|
+
if (H === void 0)
|
|
230
230
|
try {
|
|
231
231
|
throw Error();
|
|
232
232
|
} catch (G) {
|
|
233
|
-
var
|
|
234
|
-
|
|
233
|
+
var te = G.stack.trim().match(/\n( *(at )?)/);
|
|
234
|
+
H = te && te[1] || "";
|
|
235
235
|
}
|
|
236
236
|
return `
|
|
237
|
-
` +
|
|
237
|
+
` + H + g;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
var Z = !1,
|
|
240
|
+
var Z = !1, ne;
|
|
241
241
|
{
|
|
242
242
|
var be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
243
|
-
|
|
243
|
+
ne = new be();
|
|
244
244
|
}
|
|
245
|
-
function j(g,
|
|
245
|
+
function j(g, E) {
|
|
246
246
|
if (!g || Z)
|
|
247
247
|
return "";
|
|
248
248
|
{
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
251
|
-
return
|
|
249
|
+
var M = ne.get(g);
|
|
250
|
+
if (M !== void 0)
|
|
251
|
+
return M;
|
|
252
252
|
}
|
|
253
|
-
var
|
|
253
|
+
var te;
|
|
254
254
|
Z = !0;
|
|
255
255
|
var G = Error.prepareStackTrace;
|
|
256
256
|
Error.prepareStackTrace = void 0;
|
|
257
|
-
var
|
|
258
|
-
|
|
257
|
+
var oe;
|
|
258
|
+
oe = K.current, K.current = null, F();
|
|
259
259
|
try {
|
|
260
|
-
if (
|
|
260
|
+
if (E) {
|
|
261
261
|
var ue = function() {
|
|
262
262
|
throw Error();
|
|
263
263
|
};
|
|
@@ -269,14 +269,14 @@ function Ca() {
|
|
|
269
269
|
try {
|
|
270
270
|
Reflect.construct(ue, []);
|
|
271
271
|
} catch (Xe) {
|
|
272
|
-
|
|
272
|
+
te = Xe;
|
|
273
273
|
}
|
|
274
274
|
Reflect.construct(g, [], ue);
|
|
275
275
|
} else {
|
|
276
276
|
try {
|
|
277
277
|
ue.call();
|
|
278
278
|
} catch (Xe) {
|
|
279
|
-
|
|
279
|
+
te = Xe;
|
|
280
280
|
}
|
|
281
281
|
g.call(ue.prototype);
|
|
282
282
|
}
|
|
@@ -284,47 +284,47 @@ function Ca() {
|
|
|
284
284
|
try {
|
|
285
285
|
throw Error();
|
|
286
286
|
} catch (Xe) {
|
|
287
|
-
|
|
287
|
+
te = Xe;
|
|
288
288
|
}
|
|
289
289
|
g();
|
|
290
290
|
}
|
|
291
291
|
} catch (Xe) {
|
|
292
|
-
if (Xe &&
|
|
293
|
-
for (var
|
|
294
|
-
`), we =
|
|
295
|
-
`), Ae =
|
|
292
|
+
if (Xe && te && typeof Xe.stack == "string") {
|
|
293
|
+
for (var ce = Xe.stack.split(`
|
|
294
|
+
`), we = te.stack.split(`
|
|
295
|
+
`), Ae = ce.length - 1, Ne = we.length - 1; Ae >= 1 && Ne >= 0 && ce[Ae] !== we[Ne]; )
|
|
296
296
|
Ne--;
|
|
297
297
|
for (; Ae >= 1 && Ne >= 0; Ae--, Ne--)
|
|
298
|
-
if (
|
|
298
|
+
if (ce[Ae] !== we[Ne]) {
|
|
299
299
|
if (Ae !== 1 || Ne !== 1)
|
|
300
300
|
do
|
|
301
|
-
if (Ae--, Ne--, Ne < 0 ||
|
|
301
|
+
if (Ae--, Ne--, Ne < 0 || ce[Ae] !== we[Ne]) {
|
|
302
302
|
var lt = `
|
|
303
|
-
` +
|
|
304
|
-
return g.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", g.displayName)), typeof g == "function" &&
|
|
303
|
+
` + ce[Ae].replace(" at new ", " at ");
|
|
304
|
+
return g.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", g.displayName)), typeof g == "function" && ne.set(g, lt), lt;
|
|
305
305
|
}
|
|
306
306
|
while (Ae >= 1 && Ne >= 0);
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
} finally {
|
|
311
|
-
Z = !1,
|
|
311
|
+
Z = !1, K.current = oe, ee(), Error.prepareStackTrace = G;
|
|
312
312
|
}
|
|
313
313
|
var Qt = g ? g.displayName || g.name : "", Dt = Qt ? U(Qt) : "";
|
|
314
|
-
return typeof g == "function" &&
|
|
314
|
+
return typeof g == "function" && ne.set(g, Dt), Dt;
|
|
315
315
|
}
|
|
316
|
-
function _e(g,
|
|
316
|
+
function _e(g, E, M) {
|
|
317
317
|
return j(g, !1);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
var
|
|
321
|
-
return !!(
|
|
319
|
+
function ae(g) {
|
|
320
|
+
var E = g.prototype;
|
|
321
|
+
return !!(E && E.isReactComponent);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function le(g, E, M) {
|
|
324
324
|
if (g == null)
|
|
325
325
|
return "";
|
|
326
326
|
if (typeof g == "function")
|
|
327
|
-
return j(g,
|
|
327
|
+
return j(g, ae(g));
|
|
328
328
|
if (typeof g == "string")
|
|
329
329
|
return U(g);
|
|
330
330
|
switch (g) {
|
|
@@ -337,12 +337,12 @@ function Ca() {
|
|
|
337
337
|
switch (g.$$typeof) {
|
|
338
338
|
case c:
|
|
339
339
|
return _e(g.render);
|
|
340
|
-
case
|
|
341
|
-
return
|
|
340
|
+
case d:
|
|
341
|
+
return le(g.type, E, M);
|
|
342
342
|
case h: {
|
|
343
|
-
var
|
|
343
|
+
var te = g, G = te._payload, oe = te._init;
|
|
344
344
|
try {
|
|
345
|
-
return
|
|
345
|
+
return le(oe(G), E, M);
|
|
346
346
|
} catch {
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,27 +352,27 @@ function Ca() {
|
|
|
352
352
|
var Oe = Object.prototype.hasOwnProperty, He = {}, Ke = C.ReactDebugCurrentFrame;
|
|
353
353
|
function gt(g) {
|
|
354
354
|
if (g) {
|
|
355
|
-
var
|
|
356
|
-
Ke.setExtraStackFrame(
|
|
355
|
+
var E = g._owner, M = le(g.type, g._source, E ? E.type : null);
|
|
356
|
+
Ke.setExtraStackFrame(M);
|
|
357
357
|
} else
|
|
358
358
|
Ke.setExtraStackFrame(null);
|
|
359
359
|
}
|
|
360
|
-
function Fe(g,
|
|
360
|
+
function Fe(g, E, M, te, G) {
|
|
361
361
|
{
|
|
362
|
-
var
|
|
362
|
+
var oe = Function.call.bind(Oe);
|
|
363
363
|
for (var ue in g)
|
|
364
|
-
if (
|
|
365
|
-
var
|
|
364
|
+
if (oe(g, ue)) {
|
|
365
|
+
var ce = void 0;
|
|
366
366
|
try {
|
|
367
367
|
if (typeof g[ue] != "function") {
|
|
368
|
-
var we = Error((
|
|
368
|
+
var we = Error((te || "React class") + ": " + M + " type `" + ue + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[ue] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
369
369
|
throw we.name = "Invariant Violation", we;
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
ce = g[ue](E, ue, te, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
372
372
|
} catch (Ae) {
|
|
373
|
-
|
|
373
|
+
ce = Ae;
|
|
374
374
|
}
|
|
375
|
-
|
|
375
|
+
ce && !(ce instanceof Error) && (gt(G), R("%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).", te || "React class", M, ue, typeof ce), gt(null)), ce instanceof Error && !(ce.message in He) && (He[ce.message] = !0, gt(G), R("Failed %s type: %s", M, ce.message), gt(null));
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -382,8 +382,8 @@ function Ca() {
|
|
|
382
382
|
}
|
|
383
383
|
function xn(g) {
|
|
384
384
|
{
|
|
385
|
-
var
|
|
386
|
-
return
|
|
385
|
+
var E = typeof Symbol == "function" && Symbol.toStringTag, M = E && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
386
|
+
return M;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
function Cn(g) {
|
|
@@ -398,107 +398,107 @@ function Ca() {
|
|
|
398
398
|
}
|
|
399
399
|
function Kt(g) {
|
|
400
400
|
if (Cn(g))
|
|
401
|
-
return
|
|
401
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xn(g)), Sn(g);
|
|
402
402
|
}
|
|
403
403
|
var kt = C.ReactCurrentOwner, P = {
|
|
404
404
|
key: !0,
|
|
405
405
|
ref: !0,
|
|
406
406
|
__self: !0,
|
|
407
407
|
__source: !0
|
|
408
|
-
}, I,
|
|
408
|
+
}, I, W;
|
|
409
409
|
function de(g) {
|
|
410
410
|
if (Oe.call(g, "ref")) {
|
|
411
|
-
var
|
|
412
|
-
if (
|
|
411
|
+
var E = Object.getOwnPropertyDescriptor(g, "ref").get;
|
|
412
|
+
if (E && E.isReactWarning)
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
415
|
return g.ref !== void 0;
|
|
416
416
|
}
|
|
417
417
|
function pe(g) {
|
|
418
418
|
if (Oe.call(g, "key")) {
|
|
419
|
-
var
|
|
420
|
-
if (
|
|
419
|
+
var E = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
420
|
+
if (E && E.isReactWarning)
|
|
421
421
|
return !1;
|
|
422
422
|
}
|
|
423
423
|
return g.key !== void 0;
|
|
424
424
|
}
|
|
425
|
-
function fe(g,
|
|
425
|
+
function fe(g, E) {
|
|
426
426
|
typeof g.ref == "string" && kt.current;
|
|
427
427
|
}
|
|
428
|
-
function tt(g,
|
|
428
|
+
function tt(g, E) {
|
|
429
429
|
{
|
|
430
|
-
var
|
|
431
|
-
I || (I = !0,
|
|
430
|
+
var M = function() {
|
|
431
|
+
I || (I = !0, R("%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)", E));
|
|
432
432
|
};
|
|
433
|
-
|
|
434
|
-
get:
|
|
433
|
+
M.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
434
|
+
get: M,
|
|
435
435
|
configurable: !0
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function at(g,
|
|
439
|
+
function at(g, E) {
|
|
440
440
|
{
|
|
441
|
-
var
|
|
442
|
-
|
|
441
|
+
var M = function() {
|
|
442
|
+
W || (W = !0, R("%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)", E));
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
get:
|
|
444
|
+
M.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
445
|
+
get: M,
|
|
446
446
|
configurable: !0
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var he = function(g,
|
|
451
|
-
var
|
|
450
|
+
var he = function(g, E, M, te, G, oe, ue) {
|
|
451
|
+
var ce = {
|
|
452
452
|
// This tag allows us to uniquely identify this as a React Element
|
|
453
453
|
$$typeof: t,
|
|
454
454
|
// Built-in properties that belong on the element
|
|
455
455
|
type: g,
|
|
456
|
-
key:
|
|
457
|
-
ref:
|
|
456
|
+
key: E,
|
|
457
|
+
ref: M,
|
|
458
458
|
props: ue,
|
|
459
459
|
// Record the component responsible for creating this element.
|
|
460
|
-
_owner:
|
|
460
|
+
_owner: oe
|
|
461
461
|
};
|
|
462
|
-
return
|
|
462
|
+
return ce._store = {}, Object.defineProperty(ce._store, "validated", {
|
|
463
463
|
configurable: !1,
|
|
464
464
|
enumerable: !1,
|
|
465
465
|
writable: !0,
|
|
466
466
|
value: !1
|
|
467
|
-
}), Object.defineProperty(
|
|
467
|
+
}), Object.defineProperty(ce, "_self", {
|
|
468
468
|
configurable: !1,
|
|
469
469
|
enumerable: !1,
|
|
470
470
|
writable: !1,
|
|
471
|
-
value:
|
|
472
|
-
}), Object.defineProperty(
|
|
471
|
+
value: te
|
|
472
|
+
}), Object.defineProperty(ce, "_source", {
|
|
473
473
|
configurable: !1,
|
|
474
474
|
enumerable: !1,
|
|
475
475
|
writable: !1,
|
|
476
476
|
value: G
|
|
477
|
-
}), Object.freeze && (Object.freeze(
|
|
477
|
+
}), Object.freeze && (Object.freeze(ce.props), Object.freeze(ce)), ce;
|
|
478
478
|
};
|
|
479
|
-
function Je(g,
|
|
479
|
+
function Je(g, E, M, te, G) {
|
|
480
480
|
{
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
for (
|
|
484
|
-
Oe.call(
|
|
481
|
+
var oe, ue = {}, ce = null, we = null;
|
|
482
|
+
M !== void 0 && (Kt(M), ce = "" + M), pe(E) && (Kt(E.key), ce = "" + E.key), de(E) && (we = E.ref, fe(E, G));
|
|
483
|
+
for (oe in E)
|
|
484
|
+
Oe.call(E, oe) && !P.hasOwnProperty(oe) && (ue[oe] = E[oe]);
|
|
485
485
|
if (g && g.defaultProps) {
|
|
486
486
|
var Ae = g.defaultProps;
|
|
487
|
-
for (
|
|
488
|
-
ue[
|
|
487
|
+
for (oe in Ae)
|
|
488
|
+
ue[oe] === void 0 && (ue[oe] = Ae[oe]);
|
|
489
489
|
}
|
|
490
|
-
if (
|
|
490
|
+
if (ce || we) {
|
|
491
491
|
var Ne = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
|
|
492
|
-
|
|
492
|
+
ce && tt(ue, Ne), we && at(ue, Ne);
|
|
493
493
|
}
|
|
494
|
-
return he(g,
|
|
494
|
+
return he(g, ce, we, G, te, kt.current, ue);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
var yt = C.ReactCurrentOwner, wn = C.ReactDebugCurrentFrame;
|
|
498
498
|
function Ct(g) {
|
|
499
499
|
if (g) {
|
|
500
|
-
var
|
|
501
|
-
wn.setExtraStackFrame(
|
|
500
|
+
var E = g._owner, M = le(g.type, g._source, E ? E.type : null);
|
|
501
|
+
wn.setExtraStackFrame(M);
|
|
502
502
|
} else
|
|
503
503
|
wn.setExtraStackFrame(null);
|
|
504
504
|
}
|
|
@@ -525,120 +525,120 @@ Check the render method of \`` + g + "`.";
|
|
|
525
525
|
var Gt = {};
|
|
526
526
|
function Nr(g) {
|
|
527
527
|
{
|
|
528
|
-
var
|
|
529
|
-
if (!
|
|
530
|
-
var
|
|
531
|
-
|
|
528
|
+
var E = Zt();
|
|
529
|
+
if (!E) {
|
|
530
|
+
var M = typeof g == "string" ? g : g.displayName || g.name;
|
|
531
|
+
M && (E = `
|
|
532
532
|
|
|
533
|
-
Check the top-level render call using <` +
|
|
533
|
+
Check the top-level render call using <` + M + ">.");
|
|
534
534
|
}
|
|
535
|
-
return
|
|
535
|
+
return E;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function Jt(g,
|
|
538
|
+
function Jt(g, E) {
|
|
539
539
|
{
|
|
540
540
|
if (!g._store || g._store.validated || g.key != null)
|
|
541
541
|
return;
|
|
542
542
|
g._store.validated = !0;
|
|
543
|
-
var
|
|
544
|
-
if (Gt[
|
|
543
|
+
var M = Nr(E);
|
|
544
|
+
if (Gt[M])
|
|
545
545
|
return;
|
|
546
|
-
Gt[
|
|
547
|
-
var
|
|
548
|
-
g && g._owner && g._owner !== yt.current && (
|
|
546
|
+
Gt[M] = !0;
|
|
547
|
+
var te = "";
|
|
548
|
+
g && g._owner && g._owner !== yt.current && (te = " It was passed a child from " + B(g._owner.type) + "."), Ct(g), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, te), Ct(null);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function Xt(g,
|
|
551
|
+
function Xt(g, E) {
|
|
552
552
|
{
|
|
553
553
|
if (typeof g != "object")
|
|
554
554
|
return;
|
|
555
555
|
if (Nt(g))
|
|
556
|
-
for (var
|
|
557
|
-
var
|
|
558
|
-
It(
|
|
556
|
+
for (var M = 0; M < g.length; M++) {
|
|
557
|
+
var te = g[M];
|
|
558
|
+
It(te) && Jt(te, E);
|
|
559
559
|
}
|
|
560
560
|
else if (It(g))
|
|
561
561
|
g._store && (g._store.validated = !0);
|
|
562
562
|
else if (g) {
|
|
563
563
|
var G = x(g);
|
|
564
564
|
if (typeof G == "function" && G !== g.entries)
|
|
565
|
-
for (var
|
|
566
|
-
It(ue.value) && Jt(ue.value,
|
|
565
|
+
for (var oe = G.call(g), ue; !(ue = oe.next()).done; )
|
|
566
|
+
It(ue.value) && Jt(ue.value, E);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
function Tn(g) {
|
|
571
571
|
{
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
572
|
+
var E = g.type;
|
|
573
|
+
if (E == null || typeof E == "string")
|
|
574
574
|
return;
|
|
575
|
-
var
|
|
576
|
-
if (typeof
|
|
577
|
-
|
|
578
|
-
else if (typeof
|
|
575
|
+
var M;
|
|
576
|
+
if (typeof E == "function")
|
|
577
|
+
M = E.propTypes;
|
|
578
|
+
else if (typeof E == "object" && (E.$$typeof === c || // Note: Memo only checks outer props here.
|
|
579
579
|
// Inner props are checked in the reconciler.
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
E.$$typeof === d))
|
|
581
|
+
M = E.propTypes;
|
|
582
582
|
else
|
|
583
583
|
return;
|
|
584
|
-
if (
|
|
585
|
-
var
|
|
586
|
-
Fe(
|
|
587
|
-
} else if (
|
|
584
|
+
if (M) {
|
|
585
|
+
var te = B(E);
|
|
586
|
+
Fe(M, g.props, "prop", te, g);
|
|
587
|
+
} else if (E.PropTypes !== void 0 && !Yt) {
|
|
588
588
|
Yt = !0;
|
|
589
|
-
var G = B(
|
|
590
|
-
|
|
589
|
+
var G = B(E);
|
|
590
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
591
591
|
}
|
|
592
|
-
typeof
|
|
592
|
+
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
function Ir(g) {
|
|
596
596
|
{
|
|
597
|
-
for (var
|
|
598
|
-
var
|
|
599
|
-
if (
|
|
600
|
-
Ct(g),
|
|
597
|
+
for (var E = Object.keys(g.props), M = 0; M < E.length; M++) {
|
|
598
|
+
var te = E[M];
|
|
599
|
+
if (te !== "children" && te !== "key") {
|
|
600
|
+
Ct(g), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), Ct(null);
|
|
601
601
|
break;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
g.ref !== null && (Ct(g),
|
|
604
|
+
g.ref !== null && (Ct(g), R("Invalid attribute `ref` supplied to `React.Fragment`."), Ct(null));
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
var Zn = {};
|
|
608
|
-
function Gn(g,
|
|
608
|
+
function Gn(g, E, M, te, G, oe) {
|
|
609
609
|
{
|
|
610
610
|
var ue = $(g);
|
|
611
611
|
if (!ue) {
|
|
612
|
-
var
|
|
613
|
-
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (
|
|
612
|
+
var ce = "";
|
|
613
|
+
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (ce += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
614
614
|
var we = Yn();
|
|
615
|
-
we ?
|
|
615
|
+
we ? ce += we : ce += Zt();
|
|
616
616
|
var Ae;
|
|
617
|
-
g === null ? Ae = "null" : Nt(g) ? Ae = "array" : g !== void 0 && g.$$typeof === t ? (Ae = "<" + (B(g.type) || "Unknown") + " />",
|
|
617
|
+
g === null ? Ae = "null" : Nt(g) ? Ae = "array" : g !== void 0 && g.$$typeof === t ? (Ae = "<" + (B(g.type) || "Unknown") + " />", ce = " Did you accidentally export a JSX literal instead of a component?") : Ae = typeof g, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ae, ce);
|
|
618
618
|
}
|
|
619
|
-
var Ne = Je(g,
|
|
619
|
+
var Ne = Je(g, E, M, G, oe);
|
|
620
620
|
if (Ne == null)
|
|
621
621
|
return Ne;
|
|
622
622
|
if (ue) {
|
|
623
|
-
var lt =
|
|
623
|
+
var lt = E.children;
|
|
624
624
|
if (lt !== void 0)
|
|
625
|
-
if (
|
|
625
|
+
if (te)
|
|
626
626
|
if (Nt(lt)) {
|
|
627
627
|
for (var Qt = 0; Qt < lt.length; Qt++)
|
|
628
628
|
Xt(lt[Qt], g);
|
|
629
629
|
Object.freeze && Object.freeze(lt);
|
|
630
630
|
} else
|
|
631
|
-
|
|
631
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
632
632
|
else
|
|
633
633
|
Xt(lt, g);
|
|
634
634
|
}
|
|
635
|
-
if (Oe.call(
|
|
636
|
-
var Dt = B(g), Xe = Object.keys(
|
|
635
|
+
if (Oe.call(E, "key")) {
|
|
636
|
+
var Dt = B(g), Xe = Object.keys(E).filter(function(la) {
|
|
637
637
|
return la !== "key";
|
|
638
638
|
}), Br = Xe.length > 0 ? "{key: someKey, " + Xe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
639
639
|
if (!Zn[Dt + Br]) {
|
|
640
640
|
var aa = Xe.length > 0 ? "{" + Xe.join(": ..., ") + ": ...}" : "{}";
|
|
641
|
-
|
|
641
|
+
R(`A props object containing a "key" prop is being spread into JSX:
|
|
642
642
|
let props = %s;
|
|
643
643
|
<%s {...props} />
|
|
644
644
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -649,11 +649,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
649
649
|
return g === r ? Ir(Ne) : Tn(Ne), Ne;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function Dr(g,
|
|
653
|
-
return Gn(g,
|
|
652
|
+
function Dr(g, E, M) {
|
|
653
|
+
return Gn(g, E, M, !0);
|
|
654
654
|
}
|
|
655
|
-
function Fr(g,
|
|
656
|
-
return Gn(g,
|
|
655
|
+
function Fr(g, E, M) {
|
|
656
|
+
return Gn(g, E, M, !1);
|
|
657
657
|
}
|
|
658
658
|
var zr = Fr, En = Dr;
|
|
659
659
|
On.Fragment = r, On.jsx = zr, On.jsxs = En;
|
|
@@ -691,8 +691,8 @@ var Ko;
|
|
|
691
691
|
function Fa() {
|
|
692
692
|
if (Ko) return ye;
|
|
693
693
|
Ko = 1;
|
|
694
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112,
|
|
695
|
-
function
|
|
694
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
|
|
695
|
+
function w(_) {
|
|
696
696
|
if (typeof _ == "object" && _ !== null) {
|
|
697
697
|
var D = _.$$typeof;
|
|
698
698
|
switch (D) {
|
|
@@ -703,7 +703,7 @@ function Fa() {
|
|
|
703
703
|
case r:
|
|
704
704
|
case i:
|
|
705
705
|
case o:
|
|
706
|
-
case
|
|
706
|
+
case d:
|
|
707
707
|
return _;
|
|
708
708
|
default:
|
|
709
709
|
switch (_ = _ && _.$$typeof, _) {
|
|
@@ -722,36 +722,36 @@ function Fa() {
|
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function k(_) {
|
|
726
|
+
return w(_) === u;
|
|
727
727
|
}
|
|
728
|
-
return ye.AsyncMode = c, ye.ConcurrentMode = u, ye.ContextConsumer = l, ye.ContextProvider = s, ye.Element = t, ye.ForwardRef = p, ye.Fragment = r, ye.Lazy = b, ye.Memo = v, ye.Portal = n, ye.Profiler = i, ye.StrictMode = o, ye.Suspense =
|
|
729
|
-
return
|
|
730
|
-
}, ye.isConcurrentMode =
|
|
731
|
-
return
|
|
728
|
+
return ye.AsyncMode = c, ye.ConcurrentMode = u, ye.ContextConsumer = l, ye.ContextProvider = s, ye.Element = t, ye.ForwardRef = p, ye.Fragment = r, ye.Lazy = b, ye.Memo = v, ye.Portal = n, ye.Profiler = i, ye.StrictMode = o, ye.Suspense = d, ye.isAsyncMode = function(_) {
|
|
729
|
+
return k(_) || w(_) === c;
|
|
730
|
+
}, ye.isConcurrentMode = k, ye.isContextConsumer = function(_) {
|
|
731
|
+
return w(_) === l;
|
|
732
732
|
}, ye.isContextProvider = function(_) {
|
|
733
|
-
return
|
|
733
|
+
return w(_) === s;
|
|
734
734
|
}, ye.isElement = function(_) {
|
|
735
735
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
736
736
|
}, ye.isForwardRef = function(_) {
|
|
737
|
-
return
|
|
737
|
+
return w(_) === p;
|
|
738
738
|
}, ye.isFragment = function(_) {
|
|
739
|
-
return
|
|
739
|
+
return w(_) === r;
|
|
740
740
|
}, ye.isLazy = function(_) {
|
|
741
|
-
return
|
|
741
|
+
return w(_) === b;
|
|
742
742
|
}, ye.isMemo = function(_) {
|
|
743
|
-
return
|
|
743
|
+
return w(_) === v;
|
|
744
744
|
}, ye.isPortal = function(_) {
|
|
745
|
-
return
|
|
745
|
+
return w(_) === n;
|
|
746
746
|
}, ye.isProfiler = function(_) {
|
|
747
|
-
return
|
|
747
|
+
return w(_) === i;
|
|
748
748
|
}, ye.isStrictMode = function(_) {
|
|
749
|
-
return
|
|
749
|
+
return w(_) === o;
|
|
750
750
|
}, ye.isSuspense = function(_) {
|
|
751
|
-
return
|
|
751
|
+
return w(_) === d;
|
|
752
752
|
}, ye.isValidElementType = function(_) {
|
|
753
|
-
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === i || _ === o || _ ===
|
|
754
|
-
}, ye.typeOf =
|
|
753
|
+
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === i || _ === o || _ === d || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === b || _.$$typeof === v || _.$$typeof === s || _.$$typeof === l || _.$$typeof === p || _.$$typeof === x || _.$$typeof === C || _.$$typeof === R || _.$$typeof === f);
|
|
754
|
+
}, ye.typeOf = w, ye;
|
|
755
755
|
}
|
|
756
756
|
var ve = {};
|
|
757
757
|
/** @license React v16.13.1
|
|
@@ -765,34 +765,34 @@ var ve = {};
|
|
|
765
765
|
var Yo;
|
|
766
766
|
function za() {
|
|
767
767
|
return Yo || (Yo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
768
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112,
|
|
769
|
-
function
|
|
768
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
|
|
769
|
+
function w(j) {
|
|
770
770
|
return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
771
|
-
j === r || j === u || j === i || j === o || j ===
|
|
771
|
+
j === r || j === u || j === i || j === o || j === d || j === h || typeof j == "object" && j !== null && (j.$$typeof === b || j.$$typeof === v || j.$$typeof === s || j.$$typeof === l || j.$$typeof === p || j.$$typeof === x || j.$$typeof === C || j.$$typeof === R || j.$$typeof === f);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function k(j) {
|
|
774
774
|
if (typeof j == "object" && j !== null) {
|
|
775
775
|
var _e = j.$$typeof;
|
|
776
776
|
switch (_e) {
|
|
777
777
|
case t:
|
|
778
|
-
var
|
|
779
|
-
switch (
|
|
778
|
+
var ae = j.type;
|
|
779
|
+
switch (ae) {
|
|
780
780
|
case c:
|
|
781
781
|
case u:
|
|
782
782
|
case r:
|
|
783
783
|
case i:
|
|
784
784
|
case o:
|
|
785
|
-
case
|
|
786
|
-
return
|
|
785
|
+
case d:
|
|
786
|
+
return ae;
|
|
787
787
|
default:
|
|
788
|
-
var
|
|
789
|
-
switch (
|
|
788
|
+
var le = ae && ae.$$typeof;
|
|
789
|
+
switch (le) {
|
|
790
790
|
case l:
|
|
791
791
|
case p:
|
|
792
792
|
case b:
|
|
793
793
|
case v:
|
|
794
794
|
case s:
|
|
795
|
-
return
|
|
795
|
+
return le;
|
|
796
796
|
default:
|
|
797
797
|
return _e;
|
|
798
798
|
}
|
|
@@ -802,47 +802,47 @@ function za() {
|
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
var _ = c, D = u, y = l,
|
|
805
|
+
var _ = c, D = u, y = l, T = s, S = t, $ = p, N = r, X = b, B = v, Y = n, V = i, ie = o, re = d, Ee = !1;
|
|
806
806
|
function je(j) {
|
|
807
|
-
return Ee || (Ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(j) ||
|
|
807
|
+
return Ee || (Ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(j) || k(j) === c;
|
|
808
808
|
}
|
|
809
809
|
function O(j) {
|
|
810
|
-
return
|
|
810
|
+
return k(j) === u;
|
|
811
811
|
}
|
|
812
812
|
function A(j) {
|
|
813
|
-
return
|
|
813
|
+
return k(j) === l;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
815
|
+
function Q(j) {
|
|
816
|
+
return k(j) === s;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function q(j) {
|
|
819
819
|
return typeof j == "object" && j !== null && j.$$typeof === t;
|
|
820
820
|
}
|
|
821
821
|
function F(j) {
|
|
822
|
-
return
|
|
822
|
+
return k(j) === p;
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return
|
|
826
|
-
}
|
|
827
|
-
function Y(j) {
|
|
828
|
-
return E(j) === b;
|
|
824
|
+
function ee(j) {
|
|
825
|
+
return k(j) === r;
|
|
829
826
|
}
|
|
830
827
|
function K(j) {
|
|
831
|
-
return
|
|
828
|
+
return k(j) === b;
|
|
829
|
+
}
|
|
830
|
+
function H(j) {
|
|
831
|
+
return k(j) === v;
|
|
832
832
|
}
|
|
833
833
|
function U(j) {
|
|
834
|
-
return
|
|
834
|
+
return k(j) === n;
|
|
835
835
|
}
|
|
836
836
|
function Z(j) {
|
|
837
|
-
return
|
|
837
|
+
return k(j) === i;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function ne(j) {
|
|
840
|
+
return k(j) === o;
|
|
841
841
|
}
|
|
842
842
|
function be(j) {
|
|
843
|
-
return
|
|
843
|
+
return k(j) === d;
|
|
844
844
|
}
|
|
845
|
-
ve.AsyncMode = _, ve.ConcurrentMode = D, ve.ContextConsumer = y, ve.ContextProvider =
|
|
845
|
+
ve.AsyncMode = _, ve.ConcurrentMode = D, ve.ContextConsumer = y, ve.ContextProvider = T, ve.Element = S, ve.ForwardRef = $, ve.Fragment = N, ve.Lazy = X, ve.Memo = B, ve.Portal = Y, ve.Profiler = V, ve.StrictMode = ie, ve.Suspense = re, ve.isAsyncMode = je, ve.isConcurrentMode = O, ve.isContextConsumer = A, ve.isContextProvider = Q, ve.isElement = q, ve.isForwardRef = F, ve.isFragment = ee, ve.isLazy = K, ve.isMemo = H, ve.isPortal = U, ve.isProfiler = Z, ve.isStrictMode = ne, ve.isSuspense = be, ve.isValidElementType = w, ve.typeOf = k;
|
|
846
846
|
}()), ve;
|
|
847
847
|
}
|
|
848
848
|
var Zo;
|
|
@@ -889,8 +889,8 @@ function Ba() {
|
|
|
889
889
|
return Ur = o() ? Object.assign : function(i, s) {
|
|
890
890
|
for (var l, c = r(i), u, p = 1; p < arguments.length; p++) {
|
|
891
891
|
l = Object(arguments[p]);
|
|
892
|
-
for (var
|
|
893
|
-
t.call(l,
|
|
892
|
+
for (var d in l)
|
|
893
|
+
t.call(l, d) && (c[d] = l[d]);
|
|
894
894
|
if (e) {
|
|
895
895
|
u = e(l);
|
|
896
896
|
for (var h = 0; h < u.length; h++)
|
|
@@ -932,7 +932,7 @@ function Ua() {
|
|
|
932
932
|
if (process.env.NODE_ENV !== "production") {
|
|
933
933
|
for (var p in i)
|
|
934
934
|
if (r(i, p)) {
|
|
935
|
-
var
|
|
935
|
+
var d;
|
|
936
936
|
try {
|
|
937
937
|
if (typeof i[p] != "function") {
|
|
938
938
|
var h = Error(
|
|
@@ -940,17 +940,17 @@ function Ua() {
|
|
|
940
940
|
);
|
|
941
941
|
throw h.name = "Invariant Violation", h;
|
|
942
942
|
}
|
|
943
|
-
|
|
943
|
+
d = i[p](s, p, c, l, null, t);
|
|
944
944
|
} catch (b) {
|
|
945
|
-
|
|
945
|
+
d = b;
|
|
946
946
|
}
|
|
947
|
-
if (
|
|
948
|
-
(c || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
949
|
-
),
|
|
950
|
-
n[
|
|
947
|
+
if (d && !(d instanceof Error) && e(
|
|
948
|
+
(c || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
949
|
+
), d instanceof Error && !(d.message in n)) {
|
|
950
|
+
n[d.message] = !0;
|
|
951
951
|
var v = u ? u() : "";
|
|
952
952
|
e(
|
|
953
|
-
"Failed " + l + " type: " +
|
|
953
|
+
"Failed " + l + " type: " + d.message + (v ?? "")
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
@@ -979,7 +979,7 @@ function Va() {
|
|
|
979
979
|
}
|
|
980
980
|
return Hr = function(l, c) {
|
|
981
981
|
var u = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
982
|
-
function
|
|
982
|
+
function d(O) {
|
|
983
983
|
var A = O && (u && O[u] || O[p]);
|
|
984
984
|
if (typeof A == "function")
|
|
985
985
|
return A;
|
|
@@ -993,55 +993,55 @@ function Va() {
|
|
|
993
993
|
object: C("object"),
|
|
994
994
|
string: C("string"),
|
|
995
995
|
symbol: C("symbol"),
|
|
996
|
-
any:
|
|
997
|
-
arrayOf:
|
|
998
|
-
element:
|
|
996
|
+
any: R(),
|
|
997
|
+
arrayOf: w,
|
|
998
|
+
element: k(),
|
|
999
999
|
elementType: _(),
|
|
1000
1000
|
instanceOf: D,
|
|
1001
1001
|
node: $(),
|
|
1002
|
-
objectOf:
|
|
1002
|
+
objectOf: T,
|
|
1003
1003
|
oneOf: y,
|
|
1004
1004
|
oneOfType: S,
|
|
1005
|
-
shape:
|
|
1005
|
+
shape: X,
|
|
1006
1006
|
exact: B
|
|
1007
1007
|
};
|
|
1008
1008
|
function b(O, A) {
|
|
1009
1009
|
return O === A ? O !== 0 || 1 / O === 1 / A : O !== O && A !== A;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function f(O, A) {
|
|
1012
1012
|
this.message = O, this.data = A && typeof A == "object" ? A : {}, this.stack = "";
|
|
1013
1013
|
}
|
|
1014
|
-
|
|
1014
|
+
f.prototype = Error.prototype;
|
|
1015
1015
|
function x(O) {
|
|
1016
1016
|
if (process.env.NODE_ENV !== "production")
|
|
1017
|
-
var A = {},
|
|
1018
|
-
function
|
|
1019
|
-
if (U = U || h,
|
|
1017
|
+
var A = {}, Q = 0;
|
|
1018
|
+
function q(ee, K, H, U, Z, ne, be) {
|
|
1019
|
+
if (U = U || h, ne = ne || H, be !== n) {
|
|
1020
1020
|
if (c) {
|
|
1021
1021
|
var j = new Error(
|
|
1022
1022
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1023
1023
|
);
|
|
1024
1024
|
throw j.name = "Invariant Violation", j;
|
|
1025
1025
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1026
|
-
var _e = U + ":" +
|
|
1026
|
+
var _e = U + ":" + H;
|
|
1027
1027
|
!A[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1028
|
-
|
|
1029
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1030
|
-
), A[_e] = !0,
|
|
1028
|
+
Q < 3 && (i(
|
|
1029
|
+
"You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1030
|
+
), A[_e] = !0, Q++);
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
return
|
|
1033
|
+
return K[H] == null ? ee ? K[H] === null ? new f("The " + Z + " `" + ne + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new f("The " + Z + " `" + ne + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : O(K, H, U, Z, ne);
|
|
1034
1034
|
}
|
|
1035
|
-
var F =
|
|
1036
|
-
return F.isRequired =
|
|
1035
|
+
var F = q.bind(null, !1);
|
|
1036
|
+
return F.isRequired = q.bind(null, !0), F;
|
|
1037
1037
|
}
|
|
1038
1038
|
function C(O) {
|
|
1039
|
-
function A(
|
|
1040
|
-
var U =
|
|
1039
|
+
function A(Q, q, F, ee, K, H) {
|
|
1040
|
+
var U = Q[q], Z = ie(U);
|
|
1041
1041
|
if (Z !== O) {
|
|
1042
|
-
var
|
|
1043
|
-
return new
|
|
1044
|
-
"Invalid " +
|
|
1042
|
+
var ne = re(U);
|
|
1043
|
+
return new f(
|
|
1044
|
+
"Invalid " + ee + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + F + "`, expected ") + ("`" + O + "`."),
|
|
1045
1045
|
{ expectedType: O }
|
|
1046
1046
|
);
|
|
1047
1047
|
}
|
|
@@ -1049,54 +1049,54 @@ function Va() {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
return x(A);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function R() {
|
|
1053
1053
|
return x(s);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
function A(
|
|
1055
|
+
function w(O) {
|
|
1056
|
+
function A(Q, q, F, ee, K) {
|
|
1057
1057
|
if (typeof O != "function")
|
|
1058
|
-
return new
|
|
1059
|
-
var
|
|
1060
|
-
if (!Array.isArray(
|
|
1061
|
-
var U =
|
|
1062
|
-
return new
|
|
1058
|
+
return new f("Property `" + K + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
|
|
1059
|
+
var H = Q[q];
|
|
1060
|
+
if (!Array.isArray(H)) {
|
|
1061
|
+
var U = ie(H);
|
|
1062
|
+
return new f("Invalid " + ee + " `" + K + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected an array."));
|
|
1063
1063
|
}
|
|
1064
|
-
for (var Z = 0; Z <
|
|
1065
|
-
var
|
|
1066
|
-
if (
|
|
1067
|
-
return
|
|
1064
|
+
for (var Z = 0; Z < H.length; Z++) {
|
|
1065
|
+
var ne = O(H, Z, F, ee, K + "[" + Z + "]", n);
|
|
1066
|
+
if (ne instanceof Error)
|
|
1067
|
+
return ne;
|
|
1068
1068
|
}
|
|
1069
1069
|
return null;
|
|
1070
1070
|
}
|
|
1071
1071
|
return x(A);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
function O(A,
|
|
1075
|
-
var
|
|
1076
|
-
if (!l(
|
|
1077
|
-
var
|
|
1078
|
-
return new
|
|
1073
|
+
function k() {
|
|
1074
|
+
function O(A, Q, q, F, ee) {
|
|
1075
|
+
var K = A[Q];
|
|
1076
|
+
if (!l(K)) {
|
|
1077
|
+
var H = ie(K);
|
|
1078
|
+
return new f("Invalid " + F + " `" + ee + "` of type " + ("`" + H + "` supplied to `" + q + "`, expected a single ReactElement."));
|
|
1079
1079
|
}
|
|
1080
1080
|
return null;
|
|
1081
1081
|
}
|
|
1082
1082
|
return x(O);
|
|
1083
1083
|
}
|
|
1084
1084
|
function _() {
|
|
1085
|
-
function O(A,
|
|
1086
|
-
var
|
|
1087
|
-
if (!e.isValidElementType(
|
|
1088
|
-
var
|
|
1089
|
-
return new
|
|
1085
|
+
function O(A, Q, q, F, ee) {
|
|
1086
|
+
var K = A[Q];
|
|
1087
|
+
if (!e.isValidElementType(K)) {
|
|
1088
|
+
var H = ie(K);
|
|
1089
|
+
return new f("Invalid " + F + " `" + ee + "` of type " + ("`" + H + "` supplied to `" + q + "`, expected a single ReactElement type."));
|
|
1090
1090
|
}
|
|
1091
1091
|
return null;
|
|
1092
1092
|
}
|
|
1093
1093
|
return x(O);
|
|
1094
1094
|
}
|
|
1095
1095
|
function D(O) {
|
|
1096
|
-
function A(
|
|
1097
|
-
if (!(
|
|
1098
|
-
var
|
|
1099
|
-
return new
|
|
1096
|
+
function A(Q, q, F, ee, K) {
|
|
1097
|
+
if (!(Q[q] instanceof O)) {
|
|
1098
|
+
var H = O.name || h, U = je(Q[q]);
|
|
1099
|
+
return new f("Invalid " + ee + " `" + K + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected ") + ("instance of `" + H + "`."));
|
|
1100
1100
|
}
|
|
1101
1101
|
return null;
|
|
1102
1102
|
}
|
|
@@ -1107,30 +1107,30 @@ function Va() {
|
|
|
1107
1107
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1108
1108
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1109
1109
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
1110
|
-
function A(
|
|
1111
|
-
for (var
|
|
1112
|
-
if (b(
|
|
1110
|
+
function A(Q, q, F, ee, K) {
|
|
1111
|
+
for (var H = Q[q], U = 0; U < O.length; U++)
|
|
1112
|
+
if (b(H, O[U]))
|
|
1113
1113
|
return null;
|
|
1114
1114
|
var Z = JSON.stringify(O, function(be, j) {
|
|
1115
|
-
var _e =
|
|
1115
|
+
var _e = re(j);
|
|
1116
1116
|
return _e === "symbol" ? String(j) : j;
|
|
1117
1117
|
});
|
|
1118
|
-
return new
|
|
1118
|
+
return new f("Invalid " + ee + " `" + K + "` of value `" + String(H) + "` " + ("supplied to `" + F + "`, expected one of " + Z + "."));
|
|
1119
1119
|
}
|
|
1120
1120
|
return x(A);
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
function A(
|
|
1122
|
+
function T(O) {
|
|
1123
|
+
function A(Q, q, F, ee, K) {
|
|
1124
1124
|
if (typeof O != "function")
|
|
1125
|
-
return new
|
|
1126
|
-
var
|
|
1125
|
+
return new f("Property `" + K + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
|
|
1126
|
+
var H = Q[q], U = ie(H);
|
|
1127
1127
|
if (U !== "object")
|
|
1128
|
-
return new
|
|
1129
|
-
for (var Z in
|
|
1130
|
-
if (r(
|
|
1131
|
-
var
|
|
1132
|
-
if (
|
|
1133
|
-
return
|
|
1128
|
+
return new f("Invalid " + ee + " `" + K + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected an object."));
|
|
1129
|
+
for (var Z in H)
|
|
1130
|
+
if (r(H, Z)) {
|
|
1131
|
+
var ne = O(H, Z, F, ee, K + "." + Z, n);
|
|
1132
|
+
if (ne instanceof Error)
|
|
1133
|
+
return ne;
|
|
1134
1134
|
}
|
|
1135
1135
|
return null;
|
|
1136
1136
|
}
|
|
@@ -1140,45 +1140,45 @@ function Va() {
|
|
|
1140
1140
|
if (!Array.isArray(O))
|
|
1141
1141
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
1142
1142
|
for (var A = 0; A < O.length; A++) {
|
|
1143
|
-
var
|
|
1144
|
-
if (typeof
|
|
1143
|
+
var Q = O[A];
|
|
1144
|
+
if (typeof Q != "function")
|
|
1145
1145
|
return i(
|
|
1146
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ee(
|
|
1146
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ee(Q) + " at index " + A + "."
|
|
1147
1147
|
), s;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
for (var Z = [],
|
|
1151
|
-
var be = O[
|
|
1149
|
+
function q(F, ee, K, H, U) {
|
|
1150
|
+
for (var Z = [], ne = 0; ne < O.length; ne++) {
|
|
1151
|
+
var be = O[ne], j = be(F, ee, K, H, U, n);
|
|
1152
1152
|
if (j == null)
|
|
1153
1153
|
return null;
|
|
1154
1154
|
j.data && r(j.data, "expectedType") && Z.push(j.data.expectedType);
|
|
1155
1155
|
}
|
|
1156
1156
|
var _e = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
1157
|
-
return new
|
|
1157
|
+
return new f("Invalid " + H + " `" + U + "` supplied to " + ("`" + K + "`" + _e + "."));
|
|
1158
1158
|
}
|
|
1159
|
-
return x(
|
|
1159
|
+
return x(q);
|
|
1160
1160
|
}
|
|
1161
1161
|
function $() {
|
|
1162
|
-
function O(A,
|
|
1163
|
-
return
|
|
1162
|
+
function O(A, Q, q, F, ee) {
|
|
1163
|
+
return Y(A[Q]) ? null : new f("Invalid " + F + " `" + ee + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
|
1164
1164
|
}
|
|
1165
1165
|
return x(O);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return new
|
|
1169
|
-
(O || "React class") + ": " + A + " type `" +
|
|
1167
|
+
function N(O, A, Q, q, F) {
|
|
1168
|
+
return new f(
|
|
1169
|
+
(O || "React class") + ": " + A + " type `" + Q + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + F + "`."
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
function A(
|
|
1174
|
-
var
|
|
1172
|
+
function X(O) {
|
|
1173
|
+
function A(Q, q, F, ee, K) {
|
|
1174
|
+
var H = Q[q], U = ie(H);
|
|
1175
1175
|
if (U !== "object")
|
|
1176
|
-
return new
|
|
1176
|
+
return new f("Invalid " + ee + " `" + K + "` of type `" + U + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
1177
1177
|
for (var Z in O) {
|
|
1178
|
-
var
|
|
1179
|
-
if (typeof
|
|
1180
|
-
return
|
|
1181
|
-
var be =
|
|
1178
|
+
var ne = O[Z];
|
|
1179
|
+
if (typeof ne != "function")
|
|
1180
|
+
return N(F, ee, K, Z, re(ne));
|
|
1181
|
+
var be = ne(H, Z, F, ee, K + "." + Z, n);
|
|
1182
1182
|
if (be)
|
|
1183
1183
|
return be;
|
|
1184
1184
|
}
|
|
@@ -1187,21 +1187,21 @@ function Va() {
|
|
|
1187
1187
|
return x(A);
|
|
1188
1188
|
}
|
|
1189
1189
|
function B(O) {
|
|
1190
|
-
function A(
|
|
1191
|
-
var
|
|
1190
|
+
function A(Q, q, F, ee, K) {
|
|
1191
|
+
var H = Q[q], U = ie(H);
|
|
1192
1192
|
if (U !== "object")
|
|
1193
|
-
return new
|
|
1194
|
-
var Z = t({},
|
|
1195
|
-
for (var
|
|
1196
|
-
var be = O[
|
|
1197
|
-
if (r(O,
|
|
1198
|
-
return
|
|
1193
|
+
return new f("Invalid " + ee + " `" + K + "` of type `" + U + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
1194
|
+
var Z = t({}, Q[q], O);
|
|
1195
|
+
for (var ne in Z) {
|
|
1196
|
+
var be = O[ne];
|
|
1197
|
+
if (r(O, ne) && typeof be != "function")
|
|
1198
|
+
return N(F, ee, K, ne, re(be));
|
|
1199
1199
|
if (!be)
|
|
1200
|
-
return new
|
|
1201
|
-
"Invalid " +
|
|
1200
|
+
return new f(
|
|
1201
|
+
"Invalid " + ee + " `" + K + "` key `" + ne + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(Q[q], null, " ") + `
|
|
1202
1202
|
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
1203
1203
|
);
|
|
1204
|
-
var j = be(
|
|
1204
|
+
var j = be(H, ne, F, ee, K + "." + ne, n);
|
|
1205
1205
|
if (j)
|
|
1206
1206
|
return j;
|
|
1207
1207
|
}
|
|
@@ -1209,7 +1209,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return x(A);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Y(O) {
|
|
1213
1213
|
switch (typeof O) {
|
|
1214
1214
|
case "number":
|
|
1215
1215
|
case "string":
|
|
@@ -1219,20 +1219,20 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1219
1219
|
return !O;
|
|
1220
1220
|
case "object":
|
|
1221
1221
|
if (Array.isArray(O))
|
|
1222
|
-
return O.every(
|
|
1222
|
+
return O.every(Y);
|
|
1223
1223
|
if (O === null || l(O))
|
|
1224
1224
|
return !0;
|
|
1225
|
-
var A =
|
|
1225
|
+
var A = d(O);
|
|
1226
1226
|
if (A) {
|
|
1227
|
-
var
|
|
1227
|
+
var Q = A.call(O), q;
|
|
1228
1228
|
if (A !== O.entries) {
|
|
1229
|
-
for (; !(
|
|
1230
|
-
if (!
|
|
1229
|
+
for (; !(q = Q.next()).done; )
|
|
1230
|
+
if (!Y(q.value))
|
|
1231
1231
|
return !1;
|
|
1232
1232
|
} else
|
|
1233
|
-
for (; !(
|
|
1234
|
-
var F =
|
|
1235
|
-
if (F && !
|
|
1233
|
+
for (; !(q = Q.next()).done; ) {
|
|
1234
|
+
var F = q.value;
|
|
1235
|
+
if (F && !Y(F[1]))
|
|
1236
1236
|
return !1;
|
|
1237
1237
|
}
|
|
1238
1238
|
} else
|
|
@@ -1242,17 +1242,17 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1242
1242
|
return !1;
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function V(O, A) {
|
|
1246
1246
|
return O === "symbol" ? !0 : A ? A["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && A instanceof Symbol : !1;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function ie(O) {
|
|
1249
1249
|
var A = typeof O;
|
|
1250
|
-
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" :
|
|
1250
|
+
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : V(A, O) ? "symbol" : A;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function re(O) {
|
|
1253
1253
|
if (typeof O > "u" || O === null)
|
|
1254
1254
|
return "" + O;
|
|
1255
|
-
var A =
|
|
1255
|
+
var A = ie(O);
|
|
1256
1256
|
if (A === "object") {
|
|
1257
1257
|
if (O instanceof Date)
|
|
1258
1258
|
return "date";
|
|
@@ -1262,7 +1262,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1262
1262
|
return A;
|
|
1263
1263
|
}
|
|
1264
1264
|
function Ee(O) {
|
|
1265
|
-
var A =
|
|
1265
|
+
var A = re(O);
|
|
1266
1266
|
switch (A) {
|
|
1267
1267
|
case "array":
|
|
1268
1268
|
case "object":
|
|
@@ -1291,8 +1291,8 @@ function qa() {
|
|
|
1291
1291
|
function n() {
|
|
1292
1292
|
}
|
|
1293
1293
|
return n.resetWarningCache = t, Kr = function() {
|
|
1294
|
-
function r(s, l, c, u, p,
|
|
1295
|
-
if (
|
|
1294
|
+
function r(s, l, c, u, p, d) {
|
|
1295
|
+
if (d !== e) {
|
|
1296
1296
|
var h = new Error(
|
|
1297
1297
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1298
1298
|
);
|
|
@@ -1352,7 +1352,7 @@ const a = /* @__PURE__ */ ns(Ha), is = ({
|
|
|
1352
1352
|
fontColor: c,
|
|
1353
1353
|
moreInfo: u
|
|
1354
1354
|
}) => {
|
|
1355
|
-
const { name: p, date:
|
|
1355
|
+
const { name: p, date: d, id: h } = e;
|
|
1356
1356
|
return /* @__PURE__ */ m.jsxs(
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
@@ -1369,7 +1369,7 @@ const a = /* @__PURE__ */ ns(Ha), is = ({
|
|
|
1369
1369
|
),
|
|
1370
1370
|
/* @__PURE__ */ m.jsx("span", { style: { color: s ? l : c }, children: p })
|
|
1371
1371
|
] }),
|
|
1372
|
-
/* @__PURE__ */ m.jsx("div", { className: Rn.ambitDate, children: new Date(
|
|
1372
|
+
/* @__PURE__ */ m.jsx("div", { className: Rn.ambitDate, children: new Date(d).toLocaleDateString() })
|
|
1373
1373
|
] }),
|
|
1374
1374
|
/* @__PURE__ */ m.jsxs("div", { className: Rn.ambitButtons, children: [
|
|
1375
1375
|
i && /* @__PURE__ */ m.jsx("img", { src: Ho }),
|
|
@@ -1426,11 +1426,11 @@ const Ka = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%20
|
|
|
1426
1426
|
]
|
|
1427
1427
|
}
|
|
1428
1428
|
),
|
|
1429
|
-
e && e.length > 0 && e.map((
|
|
1429
|
+
e && e.length > 0 && e.map((d) => /* @__PURE__ */ m.jsx(
|
|
1430
1430
|
is,
|
|
1431
1431
|
{
|
|
1432
|
-
isActive: t ==
|
|
1433
|
-
ambit:
|
|
1432
|
+
isActive: t == d.id,
|
|
1433
|
+
ambit: d,
|
|
1434
1434
|
fontColor: n,
|
|
1435
1435
|
activeColor: r,
|
|
1436
1436
|
onClickCopy: s,
|
|
@@ -1438,7 +1438,7 @@ const Ka = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%20
|
|
|
1438
1438
|
onClickFilters: c,
|
|
1439
1439
|
onClickAmbit: u
|
|
1440
1440
|
},
|
|
1441
|
-
`ambitKey${
|
|
1441
|
+
`ambitKey${d.id}`
|
|
1442
1442
|
))
|
|
1443
1443
|
] });
|
|
1444
1444
|
};
|
|
@@ -1497,12 +1497,12 @@ const sl = ({
|
|
|
1497
1497
|
const {
|
|
1498
1498
|
icon: u,
|
|
1499
1499
|
activeIcon: p,
|
|
1500
|
-
isActive:
|
|
1500
|
+
isActive: d,
|
|
1501
1501
|
name: h,
|
|
1502
1502
|
onClick: v
|
|
1503
1503
|
} = l, b = /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
1504
1504
|
n && r === "left" && /* @__PURE__ */ m.jsx("span", { className: Ft.buttonName, children: s(h) }),
|
|
1505
|
-
/* @__PURE__ */ m.jsx("img", { src:
|
|
1505
|
+
/* @__PURE__ */ m.jsx("img", { src: d ? p : u, alt: s(h) }),
|
|
1506
1506
|
n && r === "right" && /* @__PURE__ */ m.jsx("span", { className: Ft.buttonName, children: s(h) })
|
|
1507
1507
|
] });
|
|
1508
1508
|
return /* @__PURE__ */ m.jsxs("div", { className: "tooltip-parent", children: [
|
|
@@ -1511,7 +1511,7 @@ const sl = ({
|
|
|
1511
1511
|
{
|
|
1512
1512
|
onClick: v,
|
|
1513
1513
|
className: `${Ft.button}
|
|
1514
|
-
${
|
|
1514
|
+
${d && Ft.active}`,
|
|
1515
1515
|
children: b
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
@@ -1615,7 +1615,7 @@ const Am = () => /* @__PURE__ */ m.jsx("div", { children: "EditAmbit" }), ul = "
|
|
|
1615
1615
|
const { t: s } = $e(), { tematicalFiltersSelected: l } = qe((u) => u), c = (u) => {
|
|
1616
1616
|
qe.setState((p) => ({
|
|
1617
1617
|
tematicalFiltersSelected: p.tematicalFiltersSelected.filter(
|
|
1618
|
-
(
|
|
1618
|
+
(d) => d.code !== u
|
|
1619
1619
|
)
|
|
1620
1620
|
}));
|
|
1621
1621
|
};
|
|
@@ -1627,7 +1627,7 @@ const Am = () => /* @__PURE__ */ m.jsx("div", { children: "EditAmbit" }), ul = "
|
|
|
1627
1627
|
title: e ? s(e) : "Applied Filters",
|
|
1628
1628
|
activeColor: i,
|
|
1629
1629
|
children: /* @__PURE__ */ m.jsx("div", { className: ri.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, p) => /* @__PURE__ */ m.jsxs("div", { className: ri.AppliedFilterContent, style: { color: r, background: o }, children: [
|
|
1630
|
-
u.
|
|
1630
|
+
s(u.name),
|
|
1631
1631
|
/* @__PURE__ */ m.jsx("img", { src: Ka, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
|
|
1632
1632
|
] }, p)) })
|
|
1633
1633
|
}
|
|
@@ -1768,8 +1768,8 @@ let po = function(e) {
|
|
|
1768
1768
|
o.setState({ pending: !0 });
|
|
1769
1769
|
const c = o.getTouchPosition(l);
|
|
1770
1770
|
if (o.isScrolling === void 0) {
|
|
1771
|
-
const
|
|
1772
|
-
o.isScrolling = Math.abs(h) > Math.abs(
|
|
1771
|
+
const d = c[0] - o.startPosition[0], h = c[1] - o.startPosition[1];
|
|
1772
|
+
o.isScrolling = Math.abs(h) > Math.abs(d);
|
|
1773
1773
|
}
|
|
1774
1774
|
if (o.isScrolling) return void o.setState({ index: -1 });
|
|
1775
1775
|
const u = o.getDiffPosition(c[0]), p = o.getValueFromPosition(u);
|
|
@@ -1837,11 +1837,11 @@ let po = function(e) {
|
|
|
1837
1837
|
}, o.renderThumb = (l, c) => {
|
|
1838
1838
|
const u = o.props.thumbClassName + " " + o.props.thumbClassName + "-" + c + " " + (o.state.index === c ? o.props.thumbActiveClassName : ""), p = { ref: (h) => {
|
|
1839
1839
|
o["thumb" + c] = h;
|
|
1840
|
-
}, key: o.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: o.createOnMouseDown(c), onTouchStart: o.createOnTouchStart(c), onFocus: o.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": o.props.orientation, "aria-valuenow": o.state.value[c], "aria-valuemin": o.props.min, "aria-valuemax": o.props.max, "aria-label": Array.isArray(o.props.ariaLabel) ? o.props.ariaLabel[c] : o.props.ariaLabel, "aria-labelledby": Array.isArray(o.props.ariaLabelledby) ? o.props.ariaLabelledby[c] : o.props.ariaLabelledby, "aria-disabled": o.props.disabled },
|
|
1841
|
-
return o.props.ariaValuetext && (p["aria-valuetext"] = typeof o.props.ariaValuetext == "string" ? o.props.ariaValuetext : o.props.ariaValuetext(
|
|
1840
|
+
}, key: o.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: o.createOnMouseDown(c), onTouchStart: o.createOnTouchStart(c), onFocus: o.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": o.props.orientation, "aria-valuenow": o.state.value[c], "aria-valuemin": o.props.min, "aria-valuemax": o.props.max, "aria-label": Array.isArray(o.props.ariaLabel) ? o.props.ariaLabel[c] : o.props.ariaLabel, "aria-labelledby": Array.isArray(o.props.ariaLabelledby) ? o.props.ariaLabelledby[c] : o.props.ariaLabelledby, "aria-disabled": o.props.disabled }, d = { index: c, value: er(o.state.value), valueNow: o.state.value[c] };
|
|
1841
|
+
return o.props.ariaValuetext && (p["aria-valuetext"] = typeof o.props.ariaValuetext == "string" ? o.props.ariaValuetext : o.props.ariaValuetext(d)), o.props.renderThumb(p, d);
|
|
1842
1842
|
}, o.renderTrack = (l, c, u) => {
|
|
1843
|
-
const p = { key: o.props.trackClassName + "-" + l, className: o.props.trackClassName + " " + o.props.trackClassName + "-" + l, style: o.buildTrackStyle(c, o.state.upperBound - u) },
|
|
1844
|
-
return o.props.renderTrack(p,
|
|
1843
|
+
const p = { key: o.props.trackClassName + "-" + l, className: o.props.trackClassName + " " + o.props.trackClassName + "-" + l, style: o.buildTrackStyle(c, o.state.upperBound - u) }, d = { index: l, value: er(o.state.value) };
|
|
1844
|
+
return o.props.renderTrack(p, d);
|
|
1845
1845
|
};
|
|
1846
1846
|
let i = Gr(r.value);
|
|
1847
1847
|
i.length || (i = Gr(r.defaultValue)), o.pendingResizeTimeouts = [];
|
|
@@ -1896,8 +1896,8 @@ let po = function(e) {
|
|
|
1896
1896
|
}, n.resize = function() {
|
|
1897
1897
|
const { slider: r, thumb0: o } = this;
|
|
1898
1898
|
if (!r || !o) return;
|
|
1899
|
-
const i = this.sizeKey(), s = r.getBoundingClientRect(), l = r[i], c = s[this.posMaxKey()], u = s[this.posMinKey()], p = o.getBoundingClientRect()[i.replace("client", "").toLowerCase()],
|
|
1900
|
-
this.state.upperBound ===
|
|
1899
|
+
const i = this.sizeKey(), s = r.getBoundingClientRect(), l = r[i], c = s[this.posMaxKey()], u = s[this.posMinKey()], p = o.getBoundingClientRect()[i.replace("client", "").toLowerCase()], d = l - p, h = Math.abs(c - u);
|
|
1900
|
+
this.state.upperBound === d && this.state.sliderLength === h && this.state.thumbSize === p || this.setState({ upperBound: d, sliderLength: h, thumbSize: p });
|
|
1901
1901
|
}, n.calcOffset = function(r) {
|
|
1902
1902
|
const o = this.props.max - this.props.min;
|
|
1903
1903
|
return o === 0 ? 0 : (r - this.props.min) / o * this.state.upperBound;
|
|
@@ -1936,28 +1936,28 @@ let po = function(e) {
|
|
|
1936
1936
|
const o = this.state.value.slice(), { index: i } = this.state, { length: s } = o, l = o[i];
|
|
1937
1937
|
if (r === l) return;
|
|
1938
1938
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
1939
|
-
const { pearling: c, max: u, min: p, minDistance:
|
|
1939
|
+
const { pearling: c, max: u, min: p, minDistance: d } = this.props;
|
|
1940
1940
|
if (!c) {
|
|
1941
1941
|
if (i > 0) {
|
|
1942
1942
|
const h = o[i - 1];
|
|
1943
|
-
r < h +
|
|
1943
|
+
r < h + d && (r = h + d);
|
|
1944
1944
|
}
|
|
1945
1945
|
if (i < s - 1) {
|
|
1946
1946
|
const h = o[i + 1];
|
|
1947
|
-
r > h -
|
|
1947
|
+
r > h - d && (r = h - d);
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
o[i] = r, c && s > 1 && (r > l ? (this.pushSucceeding(o,
|
|
1950
|
+
o[i] = r, c && s > 1 && (r > l ? (this.pushSucceeding(o, d, i), function(h, v, b, f) {
|
|
1951
1951
|
for (let x = 0; x < h; x += 1) {
|
|
1952
|
-
const C =
|
|
1952
|
+
const C = f - x * b;
|
|
1953
1953
|
v[h - 1 - x] > C && (v[h - 1 - x] = C);
|
|
1954
1954
|
}
|
|
1955
|
-
}(s, o,
|
|
1955
|
+
}(s, o, d, u)) : r < l && (this.pushPreceding(o, d, i), function(h, v, b, f) {
|
|
1956
1956
|
for (let x = 0; x < h; x += 1) {
|
|
1957
|
-
const C =
|
|
1957
|
+
const C = f + x * b;
|
|
1958
1958
|
v[x] < C && (v[x] = C);
|
|
1959
1959
|
}
|
|
1960
|
-
}(s, o,
|
|
1960
|
+
}(s, o, d, p))), this.setState({ value: o }, this.fireChangeEvent.bind(this, "onChange"));
|
|
1961
1961
|
}, n.pushSucceeding = function(r, o, i) {
|
|
1962
1962
|
let s, l;
|
|
1963
1963
|
for (s = i, l = r[s] + o; r[s + 1] !== null && l > r[s + 1]; s += 1, l = r[s] + o) r[s + 1] = fo(l, this.props);
|
|
@@ -2082,114 +2082,117 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2082
2082
|
checkboxContainer: wl,
|
|
2083
2083
|
absoluteSliderContainer: Tl
|
|
2084
2084
|
}, Eo = ({
|
|
2085
|
-
indicator: e
|
|
2085
|
+
indicator: e,
|
|
2086
2086
|
//onChangeBothType
|
|
2087
|
+
activeColor: t
|
|
2087
2088
|
}) => {
|
|
2088
|
-
const [
|
|
2089
|
-
type:
|
|
2090
|
-
name:
|
|
2091
|
-
values:
|
|
2092
|
-
minValue:
|
|
2093
|
-
maxValue:
|
|
2094
|
-
unit:
|
|
2095
|
-
} = e || {},
|
|
2096
|
-
() =>
|
|
2097
|
-
[
|
|
2098
|
-
),
|
|
2099
|
-
() =>
|
|
2100
|
-
[
|
|
2089
|
+
const [n, r] = We(), {
|
|
2090
|
+
type: o,
|
|
2091
|
+
name: i,
|
|
2092
|
+
values: s,
|
|
2093
|
+
minValue: l,
|
|
2094
|
+
maxValue: c,
|
|
2095
|
+
unit: u
|
|
2096
|
+
} = e || {}, p = Ue(
|
|
2097
|
+
() => o == "cat" || n == "cat",
|
|
2098
|
+
[n, o]
|
|
2099
|
+
), d = Ue(
|
|
2100
|
+
() => o == "abs" || n == "abs",
|
|
2101
|
+
[n, o]
|
|
2101
2102
|
), {
|
|
2102
|
-
tematicalFiltersSelected:
|
|
2103
|
-
selectedIndicator:
|
|
2104
|
-
fontColor:
|
|
2105
|
-
inputsColor:
|
|
2106
|
-
} = qe((
|
|
2107
|
-
if (
|
|
2108
|
-
const { min:
|
|
2109
|
-
let
|
|
2110
|
-
|
|
2111
|
-
let
|
|
2112
|
-
(
|
|
2103
|
+
tematicalFiltersSelected: h,
|
|
2104
|
+
selectedIndicator: v,
|
|
2105
|
+
fontColor: b,
|
|
2106
|
+
inputsColor: f
|
|
2107
|
+
} = qe((R) => R), x = (R) => {
|
|
2108
|
+
if (R) {
|
|
2109
|
+
const { min: w, max: k, valueClicked: _, allValues: D } = R || {}, { code: y, type: T } = e || {}, S = d ? "abs" : p ? "cat" : "both";
|
|
2110
|
+
let $ = y[0];
|
|
2111
|
+
T == "both" && ($ = S == "cat" ? y[1] : y[0]), S == "cat" ? qe.setState((N) => {
|
|
2112
|
+
let X = N.tematicalFiltersSelected.find(
|
|
2113
|
+
(B) => B.code === $
|
|
2113
2114
|
);
|
|
2114
|
-
if (
|
|
2115
|
-
let
|
|
2116
|
-
if (
|
|
2117
|
-
if (
|
|
2118
|
-
(
|
|
2119
|
-
),
|
|
2115
|
+
if (X) {
|
|
2116
|
+
let B = [X.values];
|
|
2117
|
+
if (X.values.includes(_)) {
|
|
2118
|
+
if (B = X.values.filter(
|
|
2119
|
+
(Y) => Y !== _
|
|
2120
|
+
), B.length < 1)
|
|
2120
2121
|
return {
|
|
2121
|
-
tematicalFiltersSelected:
|
|
2122
|
-
(
|
|
2122
|
+
tematicalFiltersSelected: N.tematicalFiltersSelected.filter(
|
|
2123
|
+
(Y) => Y.code !== $
|
|
2123
2124
|
)
|
|
2124
2125
|
};
|
|
2125
2126
|
} else
|
|
2126
|
-
|
|
2127
|
+
B = [...X.values, _];
|
|
2127
2128
|
return {
|
|
2128
|
-
tematicalFiltersSelected:
|
|
2129
|
-
(
|
|
2129
|
+
tematicalFiltersSelected: N.tematicalFiltersSelected.map(
|
|
2130
|
+
(Y) => Y.code === $ ? { ...Y, values: B } : Y
|
|
2130
2131
|
)
|
|
2131
2132
|
};
|
|
2132
2133
|
} else {
|
|
2133
|
-
console.log("entra aqui: ",
|
|
2134
|
-
let
|
|
2134
|
+
console.log("entra aqui: ", D, " ", _);
|
|
2135
|
+
let B = D.map((Y, V) => V);
|
|
2135
2136
|
return {
|
|
2136
2137
|
tematicalFiltersSelected: [
|
|
2137
|
-
...
|
|
2138
|
+
...h,
|
|
2138
2139
|
{
|
|
2139
2140
|
type: "cat",
|
|
2140
|
-
code:
|
|
2141
|
-
values:
|
|
2141
|
+
code: $,
|
|
2142
|
+
values: B.filter((Y) => Y !== _),
|
|
2143
|
+
name: e.name
|
|
2142
2144
|
}
|
|
2143
2145
|
]
|
|
2144
2146
|
};
|
|
2145
2147
|
}
|
|
2146
|
-
}) :
|
|
2147
|
-
let
|
|
2148
|
-
(
|
|
2148
|
+
}) : S == "abs" && qe.setState((N) => {
|
|
2149
|
+
let X = N.tematicalFiltersSelected.find(
|
|
2150
|
+
(B) => B.code === $
|
|
2149
2151
|
);
|
|
2150
|
-
if (
|
|
2151
|
-
let
|
|
2152
|
-
return
|
|
2153
|
-
tematicalFiltersSelected:
|
|
2154
|
-
(
|
|
2152
|
+
if (X) {
|
|
2153
|
+
let B = { ...X };
|
|
2154
|
+
return B.min = w, B.max = k, {
|
|
2155
|
+
tematicalFiltersSelected: N.tematicalFiltersSelected.map(
|
|
2156
|
+
(Y) => Y.code === $ ? B : Y
|
|
2155
2157
|
)
|
|
2156
2158
|
};
|
|
2157
2159
|
} else
|
|
2158
2160
|
return {
|
|
2159
2161
|
tematicalFiltersSelected: [
|
|
2160
|
-
...
|
|
2161
|
-
{ type: "abs", code:
|
|
2162
|
+
...h,
|
|
2163
|
+
{ type: "abs", code: $, min: w, max: k }
|
|
2162
2164
|
]
|
|
2163
2165
|
};
|
|
2164
2166
|
});
|
|
2165
2167
|
}
|
|
2166
|
-
},
|
|
2167
|
-
const
|
|
2168
|
-
if ((
|
|
2169
|
-
for (const
|
|
2170
|
-
|
|
2171
|
-
return
|
|
2172
|
-
}, [
|
|
2168
|
+
}, C = Ue(() => {
|
|
2169
|
+
const R = {};
|
|
2170
|
+
if ((h == null ? void 0 : h.length) > 0)
|
|
2171
|
+
for (const w of h)
|
|
2172
|
+
w.type === "cat" ? R[w.code] = new Set(w.values) : R[w.code] = [w.min, w.max];
|
|
2173
|
+
return R;
|
|
2174
|
+
}, [h]);
|
|
2173
2175
|
return /* @__PURE__ */ m.jsx("div", { className: nr.tematicalFiltersInputContainer, children: /* @__PURE__ */ m.jsxs(
|
|
2174
2176
|
Vt,
|
|
2175
2177
|
{
|
|
2176
2178
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
2177
|
-
title:
|
|
2178
|
-
isOpen:
|
|
2179
|
+
title: i,
|
|
2180
|
+
isOpen: v == `id${i}`,
|
|
2179
2181
|
onClick: () => qe.setState(() => ({
|
|
2180
|
-
selectedIndicator:
|
|
2182
|
+
selectedIndicator: v == `id${i}` ? "" : `id${i}`
|
|
2181
2183
|
})),
|
|
2182
2184
|
showBottomBar: !1,
|
|
2183
2185
|
height: 38,
|
|
2184
2186
|
titleMarginChildren: 14,
|
|
2185
2187
|
className: "tematicalFiltersInputContainer",
|
|
2186
|
-
color:
|
|
2188
|
+
color: b,
|
|
2189
|
+
activeColor: t,
|
|
2187
2190
|
children: [
|
|
2188
|
-
|
|
2191
|
+
o == "both" && /* @__PURE__ */ m.jsxs(
|
|
2189
2192
|
"div",
|
|
2190
2193
|
{
|
|
2191
2194
|
className: nr.inputTypeContainer,
|
|
2192
|
-
style: { color:
|
|
2195
|
+
style: { color: b },
|
|
2193
2196
|
children: [
|
|
2194
2197
|
/* @__PURE__ */ m.jsxs("label", { children: [
|
|
2195
2198
|
/* @__PURE__ */ m.jsx(
|
|
@@ -2199,12 +2202,12 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2199
2202
|
name: "tipo",
|
|
2200
2203
|
value: "abs",
|
|
2201
2204
|
onChange: () => {
|
|
2202
|
-
|
|
2205
|
+
r("abs");
|
|
2203
2206
|
},
|
|
2204
2207
|
style: {
|
|
2205
2208
|
marginRight: 4,
|
|
2206
|
-
backgroundColor:
|
|
2207
|
-
border: `1.5px solid ${
|
|
2209
|
+
backgroundColor: n == "abs" ? f : "white",
|
|
2210
|
+
border: `1.5px solid ${n == "abs" ? f : b}`
|
|
2208
2211
|
}
|
|
2209
2212
|
}
|
|
2210
2213
|
),
|
|
@@ -2218,12 +2221,12 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2218
2221
|
name: "tipo",
|
|
2219
2222
|
value: "cat",
|
|
2220
2223
|
onChange: () => {
|
|
2221
|
-
|
|
2224
|
+
r("cat");
|
|
2222
2225
|
},
|
|
2223
2226
|
style: {
|
|
2224
2227
|
marginRight: 4,
|
|
2225
|
-
backgroundColor:
|
|
2226
|
-
border: `1.5px solid ${
|
|
2228
|
+
backgroundColor: n == "cat" ? f : "white",
|
|
2229
|
+
border: `1.5px solid ${n == "cat" ? f : b}`
|
|
2227
2230
|
}
|
|
2228
2231
|
}
|
|
2229
2232
|
),
|
|
@@ -2232,26 +2235,26 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2232
2235
|
]
|
|
2233
2236
|
}
|
|
2234
2237
|
),
|
|
2235
|
-
|
|
2236
|
-
var
|
|
2238
|
+
p && /* @__PURE__ */ m.jsx("div", { className: nr.checkboxContainer, children: s.map((R, w) => {
|
|
2239
|
+
var k;
|
|
2237
2240
|
return /* @__PURE__ */ m.jsx(
|
|
2238
2241
|
cs,
|
|
2239
2242
|
{
|
|
2240
|
-
onClick: () =>
|
|
2241
|
-
indicator:
|
|
2242
|
-
value: ((
|
|
2243
|
+
onClick: () => x({ valueClicked: w, allValues: s }),
|
|
2244
|
+
indicator: R,
|
|
2245
|
+
value: ((k = C[e.code[o == "both" ? 1 : 0]]) == null ? void 0 : k.has(w)) || !C[e.code[o == "both" ? 1 : 0]]
|
|
2243
2246
|
},
|
|
2244
|
-
`checkbox-${
|
|
2247
|
+
`checkbox-${w}`
|
|
2245
2248
|
);
|
|
2246
2249
|
}) }),
|
|
2247
|
-
|
|
2250
|
+
d && /* @__PURE__ */ m.jsx("div", { className: nr.absoluteSliderContainer, children: /* @__PURE__ */ m.jsx(
|
|
2248
2251
|
us,
|
|
2249
2252
|
{
|
|
2250
|
-
onChange:
|
|
2251
|
-
min:
|
|
2252
|
-
max:
|
|
2253
|
-
unit:
|
|
2254
|
-
value:
|
|
2253
|
+
onChange: x,
|
|
2254
|
+
min: l,
|
|
2255
|
+
max: c,
|
|
2256
|
+
unit: u,
|
|
2257
|
+
value: C[e.code[0]]
|
|
2255
2258
|
}
|
|
2256
2259
|
) })
|
|
2257
2260
|
]
|
|
@@ -2269,23 +2272,25 @@ Eo.propTypes = {
|
|
|
2269
2272
|
title: a.string
|
|
2270
2273
|
})
|
|
2271
2274
|
)
|
|
2272
|
-
})
|
|
2275
|
+
}),
|
|
2276
|
+
activeColor: a.string
|
|
2273
2277
|
//onChangeBothType: PropTypes.func,
|
|
2274
2278
|
};
|
|
2275
2279
|
const fs = ({
|
|
2276
2280
|
subcategory: e,
|
|
2277
|
-
fontColor: t
|
|
2281
|
+
fontColor: t,
|
|
2282
|
+
activeColor: n
|
|
2278
2283
|
//onChangeBothType,
|
|
2279
2284
|
}) => {
|
|
2280
|
-
const { activeSubcategory:
|
|
2285
|
+
const { activeSubcategory: r } = qe((s) => s), { name: o, indicators: i } = e || {};
|
|
2281
2286
|
return /* @__PURE__ */ m.jsx(
|
|
2282
2287
|
Vt,
|
|
2283
2288
|
{
|
|
2284
|
-
title:
|
|
2285
|
-
isOpen:
|
|
2289
|
+
title: o,
|
|
2290
|
+
isOpen: r == `id${o}`,
|
|
2286
2291
|
onClick: () => {
|
|
2287
|
-
qe.setState((
|
|
2288
|
-
activeSubcategory:
|
|
2292
|
+
qe.setState((s) => ({
|
|
2293
|
+
activeSubcategory: s.activeSubcategory === `id${o}` ? "" : `id${o}`
|
|
2289
2294
|
}));
|
|
2290
2295
|
},
|
|
2291
2296
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
@@ -2293,13 +2298,14 @@ const fs = ({
|
|
|
2293
2298
|
titleMarginChildren: 20,
|
|
2294
2299
|
height: 49,
|
|
2295
2300
|
color: t,
|
|
2296
|
-
|
|
2301
|
+
activeColor: n,
|
|
2302
|
+
children: i == null ? void 0 : i.map((s, l) => /* @__PURE__ */ m.jsx(
|
|
2297
2303
|
Eo,
|
|
2298
2304
|
{
|
|
2299
|
-
indicator:
|
|
2305
|
+
indicator: s,
|
|
2300
2306
|
fontColor: t
|
|
2301
2307
|
},
|
|
2302
|
-
`indicatorSub-${
|
|
2308
|
+
`indicatorSub-${l}`
|
|
2303
2309
|
))
|
|
2304
2310
|
}
|
|
2305
2311
|
);
|
|
@@ -2313,41 +2319,44 @@ fs.propTypes = {
|
|
|
2313
2319
|
value: a.string
|
|
2314
2320
|
})
|
|
2315
2321
|
)
|
|
2316
|
-
})
|
|
2322
|
+
}),
|
|
2323
|
+
activeColor: a.string
|
|
2317
2324
|
//onChangeBothType: PropTypes.func,
|
|
2318
2325
|
};
|
|
2319
2326
|
const ds = ({
|
|
2320
|
-
category: e
|
|
2327
|
+
category: e,
|
|
2321
2328
|
// onChangeBothType,
|
|
2329
|
+
activeColor: t
|
|
2322
2330
|
}) => {
|
|
2323
|
-
const { name:
|
|
2331
|
+
const { name: n, subcategories: r, indicators: o } = e || {}, { activeCategory: i, fontColor: s } = qe((l) => l);
|
|
2324
2332
|
return e && /* @__PURE__ */ m.jsx(
|
|
2325
2333
|
Vt,
|
|
2326
2334
|
{
|
|
2327
2335
|
onClick: () => {
|
|
2328
|
-
qe.setState((
|
|
2329
|
-
activeCategory:
|
|
2336
|
+
qe.setState((l) => ({
|
|
2337
|
+
activeCategory: i === `id${n}` ? "" : `id${n}`
|
|
2330
2338
|
}));
|
|
2331
2339
|
},
|
|
2332
|
-
title:
|
|
2333
|
-
isOpen:
|
|
2340
|
+
title: n,
|
|
2341
|
+
isOpen: i === `id${n}`,
|
|
2334
2342
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
2335
2343
|
showBottomBar: !1,
|
|
2336
|
-
color:
|
|
2337
|
-
|
|
2344
|
+
color: s,
|
|
2345
|
+
activeColor: t,
|
|
2346
|
+
children: r ? r.map((l, c) => /* @__PURE__ */ m.jsx(
|
|
2338
2347
|
fs,
|
|
2339
2348
|
{
|
|
2340
|
-
subcategory:
|
|
2341
|
-
fontColor:
|
|
2349
|
+
subcategory: l,
|
|
2350
|
+
fontColor: s
|
|
2342
2351
|
},
|
|
2343
|
-
`subcategory-${
|
|
2344
|
-
)) :
|
|
2352
|
+
`subcategory-${c}`
|
|
2353
|
+
)) : o && o.map((l, c) => /* @__PURE__ */ m.jsx(
|
|
2345
2354
|
Eo,
|
|
2346
2355
|
{
|
|
2347
|
-
indicator:
|
|
2348
|
-
fontColor:
|
|
2356
|
+
indicator: l,
|
|
2357
|
+
fontColor: s
|
|
2349
2358
|
},
|
|
2350
|
-
`indicator-${
|
|
2359
|
+
`indicator-${c}`
|
|
2351
2360
|
))
|
|
2352
2361
|
}
|
|
2353
2362
|
);
|
|
@@ -2357,7 +2366,8 @@ ds.propTypes = {
|
|
|
2357
2366
|
name: a.string.isRequired,
|
|
2358
2367
|
subcategories: a.array,
|
|
2359
2368
|
indicators: a.array
|
|
2360
|
-
})
|
|
2369
|
+
}),
|
|
2370
|
+
activeColor: a.string
|
|
2361
2371
|
//onChangeBothType: PropTypes.func,
|
|
2362
2372
|
};
|
|
2363
2373
|
const ps = ({
|
|
@@ -2369,11 +2379,11 @@ const ps = ({
|
|
|
2369
2379
|
inputsColor: o = "#605B56"
|
|
2370
2380
|
}) => {
|
|
2371
2381
|
const { tematicalFiltersSelected: i } = qe((l) => l), { t: s } = $e();
|
|
2372
|
-
return
|
|
2382
|
+
return se(() => {
|
|
2373
2383
|
console.log("filtersSelected changed: ", i);
|
|
2374
|
-
}, [i]),
|
|
2384
|
+
}, [i]), se(() => {
|
|
2375
2385
|
r && qe.setState(() => ({ fontColor: r }));
|
|
2376
|
-
}, [r]),
|
|
2386
|
+
}, [r]), se(() => {
|
|
2377
2387
|
o && qe.setState(() => ({ inputsColor: o }));
|
|
2378
2388
|
}, [o]), /* @__PURE__ */ m.jsx(
|
|
2379
2389
|
Vt,
|
|
@@ -2418,11 +2428,11 @@ const El = "_FiltersAmbitContainer_6o4gt_2", kl = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
2418
2428
|
onChangeAppliedFilters: l
|
|
2419
2429
|
}) => {
|
|
2420
2430
|
const { t: c } = $e(), { tematicalFiltersSelected: u } = qe((p) => p);
|
|
2421
|
-
return
|
|
2431
|
+
return se(() => {
|
|
2422
2432
|
n && n.length > 0 && qe.setState((p) => ({
|
|
2423
2433
|
tematicalFiltersSelected: n
|
|
2424
2434
|
}));
|
|
2425
|
-
}, [n]),
|
|
2435
|
+
}, [n]), se(() => {
|
|
2426
2436
|
console.log("filtersSelected changed: ", u), l(u);
|
|
2427
2437
|
}, [u]), /* @__PURE__ */ m.jsxs("div", { className: $n.FiltersAmbitContainer, children: [
|
|
2428
2438
|
/* @__PURE__ */ m.jsxs("div", { className: $n.FiltersAmbitHeader, children: [
|
|
@@ -2442,14 +2452,15 @@ const El = "_FiltersAmbitContainer_6o4gt_2", kl = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
2442
2452
|
activeColor: o
|
|
2443
2453
|
}
|
|
2444
2454
|
),
|
|
2445
|
-
/* @__PURE__ */ m.jsx(ls, {}),
|
|
2455
|
+
/* @__PURE__ */ m.jsx(ls, { activeColor: o }),
|
|
2446
2456
|
/* @__PURE__ */ m.jsx(
|
|
2447
2457
|
ps,
|
|
2448
2458
|
{
|
|
2449
2459
|
indicators: r,
|
|
2450
2460
|
inputsColor: o,
|
|
2451
2461
|
textColor: i,
|
|
2452
|
-
title: "tematical_filters"
|
|
2462
|
+
title: "tematical_filters",
|
|
2463
|
+
activeColor: o
|
|
2453
2464
|
}
|
|
2454
2465
|
)
|
|
2455
2466
|
] });
|
|
@@ -2478,9 +2489,9 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2478
2489
|
numberOfDivisions: c = 7,
|
|
2479
2490
|
maxValue: u = null
|
|
2480
2491
|
}) => {
|
|
2481
|
-
const { t: p } = $e(), { xScale:
|
|
2492
|
+
const { t: p } = $e(), { xScale: d, ticks: h, height: v } = Ue(() => {
|
|
2482
2493
|
if (e && e.length > 0) {
|
|
2483
|
-
const b = (e == null ? void 0 : e.length) * (n + r) + i * 2,
|
|
2494
|
+
const b = (e == null ? void 0 : e.length) * (n + r) + i * 2, f = Bo.max(e, (R) => R.value) || 1, x = Bo.scaleLinear().domain([0, u || f]).range([0, t - l]), C = Array.from({ length: c + 1 }, (R, w) => u ? u / c * w : f / c * w);
|
|
2484
2495
|
return {
|
|
2485
2496
|
xScale: x,
|
|
2486
2497
|
ticks: C,
|
|
@@ -2502,8 +2513,8 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2502
2513
|
u
|
|
2503
2514
|
]);
|
|
2504
2515
|
return /* @__PURE__ */ m.jsx("div", { className: Ll.barChartContainer, children: /* @__PURE__ */ m.jsx("svg", { width: t + s * 2, height: v, children: /* @__PURE__ */ m.jsxs("g", { transform: `translate(0,${r})`, children: [
|
|
2505
|
-
/* @__PURE__ */ m.jsx("g", { transform: `translate(${l + s}, 0)`, children: h.map((b,
|
|
2506
|
-
const x =
|
|
2516
|
+
/* @__PURE__ */ m.jsx("g", { transform: `translate(${l + s}, 0)`, children: h.map((b, f) => {
|
|
2517
|
+
const x = d(b);
|
|
2507
2518
|
return /* @__PURE__ */ m.jsxs("g", { transform: `translate(${x}, 0)`, children: [
|
|
2508
2519
|
/* @__PURE__ */ m.jsx(
|
|
2509
2520
|
"line",
|
|
@@ -2523,10 +2534,10 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2523
2534
|
children: parseInt(b)
|
|
2524
2535
|
}
|
|
2525
2536
|
)
|
|
2526
|
-
] },
|
|
2537
|
+
] }, f);
|
|
2527
2538
|
}) }),
|
|
2528
|
-
e && e.length > 0 && (e == null ? void 0 : e.map((b,
|
|
2529
|
-
const x =
|
|
2539
|
+
e && e.length > 0 && (e == null ? void 0 : e.map((b, f) => {
|
|
2540
|
+
const x = d(b.value), C = f * (n + r);
|
|
2530
2541
|
return /* @__PURE__ */ m.jsxs(
|
|
2531
2542
|
"g",
|
|
2532
2543
|
{
|
|
@@ -2553,7 +2564,7 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2553
2564
|
)
|
|
2554
2565
|
]
|
|
2555
2566
|
},
|
|
2556
|
-
|
|
2567
|
+
f
|
|
2557
2568
|
);
|
|
2558
2569
|
}))
|
|
2559
2570
|
] }) }) });
|
|
@@ -2657,8 +2668,8 @@ const Il = "_indicatorsCategory_1cu33_2", Dl = "_title_1cu33_5", Fl = "_list_1cu
|
|
|
2657
2668
|
multiple: l = !1,
|
|
2658
2669
|
onChangeType: c
|
|
2659
2670
|
}) => {
|
|
2660
|
-
const { t: u } = $e(), { name: p, type:
|
|
2661
|
-
|
|
2671
|
+
const { t: u } = $e(), { name: p, type: d } = e, [h, v] = We(!1);
|
|
2672
|
+
se(() => {
|
|
2662
2673
|
o && v(
|
|
2663
2674
|
l ? o.some(
|
|
2664
2675
|
(x) => x.name == String(p)
|
|
@@ -2724,7 +2735,7 @@ const Il = "_indicatorsCategory_1cu33_2", Dl = "_title_1cu33_5", Fl = "_list_1cu
|
|
|
2724
2735
|
]
|
|
2725
2736
|
}
|
|
2726
2737
|
)
|
|
2727
|
-
] }) }) }),
|
|
2738
|
+
] }) }) }), f = () => /* @__PURE__ */ m.jsx("div", { className: ze.switchExternalContainer, children: /* @__PURE__ */ m.jsx("div", { className: ze.switchType, children: /* @__PURE__ */ m.jsx("div", { className: ze.switchTypeOptions, children: t.map((x, C) => /* @__PURE__ */ m.jsxs(
|
|
2728
2739
|
"div",
|
|
2729
2740
|
{
|
|
2730
2741
|
className: ze.optionContainer,
|
|
@@ -2771,8 +2782,8 @@ const Il = "_indicatorsCategory_1cu33_2", Dl = "_title_1cu33_5", Fl = "_list_1cu
|
|
|
2771
2782
|
]
|
|
2772
2783
|
}
|
|
2773
2784
|
),
|
|
2774
|
-
(o == null ? void 0 : o.name) === p &&
|
|
2775
|
-
(o == null ? void 0 : o.name) === p &&
|
|
2785
|
+
(o == null ? void 0 : o.name) === p && d === "both" && /* @__PURE__ */ m.jsx("div", { children: b() }),
|
|
2786
|
+
(o == null ? void 0 : o.name) === p && d === "twoUnits" && /* @__PURE__ */ m.jsx("div", { children: f() })
|
|
2776
2787
|
]
|
|
2777
2788
|
}
|
|
2778
2789
|
);
|
|
@@ -2804,10 +2815,10 @@ const Gl = "_indicatorsSubCategory_1dzsi_2", Jl = "_list_1dzsi_8", ii = {
|
|
|
2804
2815
|
onClickIndicator: c,
|
|
2805
2816
|
multiple: u,
|
|
2806
2817
|
activeIndicatorType: p,
|
|
2807
|
-
onChangeType:
|
|
2818
|
+
onChangeType: d
|
|
2808
2819
|
}) => {
|
|
2809
2820
|
const { t: h } = $e(), [v, b] = We(!1);
|
|
2810
|
-
return
|
|
2821
|
+
return se(() => {
|
|
2811
2822
|
b(o == s);
|
|
2812
2823
|
}, [o, s]), /* @__PURE__ */ m.jsxs(
|
|
2813
2824
|
wo.div,
|
|
@@ -2827,17 +2838,17 @@ const Gl = "_indicatorsSubCategory_1dzsi_2", Jl = "_list_1dzsi_8", ii = {
|
|
|
2827
2838
|
}
|
|
2828
2839
|
)
|
|
2829
2840
|
] }) }),
|
|
2830
|
-
t && /* @__PURE__ */ m.jsx("div", { className: ii.list, children: t == null ? void 0 : t.map((
|
|
2841
|
+
t && /* @__PURE__ */ m.jsx("div", { className: ii.list, children: t == null ? void 0 : t.map((f, x) => /* @__PURE__ */ m.jsx(
|
|
2831
2842
|
ko,
|
|
2832
2843
|
{
|
|
2833
|
-
indicator:
|
|
2844
|
+
indicator: f,
|
|
2834
2845
|
defaultColor: n,
|
|
2835
2846
|
activeColor: r,
|
|
2836
2847
|
activeIndicator: l,
|
|
2837
2848
|
onClickIndicator: c,
|
|
2838
2849
|
multiple: u,
|
|
2839
2850
|
activeIndicatorType: p,
|
|
2840
|
-
onChangeType:
|
|
2851
|
+
onChangeType: d
|
|
2841
2852
|
},
|
|
2842
2853
|
"indicator" + x
|
|
2843
2854
|
)) })
|
|
@@ -2869,13 +2880,13 @@ const gs = ({
|
|
|
2869
2880
|
activeIndicator: c,
|
|
2870
2881
|
onClickIndicator: u,
|
|
2871
2882
|
multiple: p,
|
|
2872
|
-
activeIndicatorType:
|
|
2883
|
+
activeIndicatorType: d,
|
|
2873
2884
|
onChangeType: h
|
|
2874
2885
|
}) => {
|
|
2875
2886
|
var x;
|
|
2876
|
-
const { t: v } = $e(), [b,
|
|
2877
|
-
return
|
|
2878
|
-
|
|
2887
|
+
const { t: v } = $e(), [b, f] = We(!1);
|
|
2888
|
+
return se(() => {
|
|
2889
|
+
f(i === t);
|
|
2879
2890
|
}, [i, t]), /* @__PURE__ */ m.jsxs(
|
|
2880
2891
|
wo.div,
|
|
2881
2892
|
{
|
|
@@ -2900,10 +2911,10 @@ const gs = ({
|
|
|
2900
2911
|
)
|
|
2901
2912
|
] }),
|
|
2902
2913
|
e.subcategories ? e.subcategories.map(
|
|
2903
|
-
({ name: C, subcategory:
|
|
2914
|
+
({ name: C, subcategory: R, indicators: w }, k) => /* @__PURE__ */ m.jsx(
|
|
2904
2915
|
ms,
|
|
2905
2916
|
{
|
|
2906
|
-
id:
|
|
2917
|
+
id: R,
|
|
2907
2918
|
activeSubCategory: s,
|
|
2908
2919
|
subcName: C,
|
|
2909
2920
|
onClickSubCategory: l,
|
|
@@ -2912,13 +2923,13 @@ const gs = ({
|
|
|
2912
2923
|
multiple: p,
|
|
2913
2924
|
activeColor: n,
|
|
2914
2925
|
defaultColor: r,
|
|
2915
|
-
indicators:
|
|
2916
|
-
activeIndicatorType:
|
|
2926
|
+
indicators: w,
|
|
2927
|
+
activeIndicatorType: d,
|
|
2917
2928
|
onChangeType: h
|
|
2918
2929
|
},
|
|
2919
|
-
`subcKey ${
|
|
2930
|
+
`subcKey ${k}`
|
|
2920
2931
|
)
|
|
2921
|
-
) : /* @__PURE__ */ m.jsx("div", { className: Jr.list, children: (x = e.indicators) == null ? void 0 : x.map((C,
|
|
2932
|
+
) : /* @__PURE__ */ m.jsx("div", { className: Jr.list, children: (x = e.indicators) == null ? void 0 : x.map((C, R) => /* @__PURE__ */ m.jsx(
|
|
2922
2933
|
ko,
|
|
2923
2934
|
{
|
|
2924
2935
|
indicator: C,
|
|
@@ -2928,10 +2939,10 @@ const gs = ({
|
|
|
2928
2939
|
activeIndicator: c,
|
|
2929
2940
|
onClickIndicator: u,
|
|
2930
2941
|
multiple: p,
|
|
2931
|
-
activeIndicatorType:
|
|
2942
|
+
activeIndicatorType: d,
|
|
2932
2943
|
onChangeType: h
|
|
2933
2944
|
},
|
|
2934
|
-
`indicator${
|
|
2945
|
+
`indicator${R}`
|
|
2935
2946
|
)) })
|
|
2936
2947
|
]
|
|
2937
2948
|
}
|
|
@@ -2968,62 +2979,62 @@ const Xl = "_indicatorsList_fklyu_2", Ql = "_title_fklyu_6", si = {
|
|
|
2968
2979
|
changeIndType: s,
|
|
2969
2980
|
activeIndicatorType: l
|
|
2970
2981
|
}) => {
|
|
2971
|
-
const { t: c } = $e(), [u, p] = We(), [
|
|
2972
|
-
p(u ==
|
|
2973
|
-
}, x = (
|
|
2974
|
-
h(
|
|
2975
|
-
}, C = ({ indicator:
|
|
2976
|
-
console.log("onClickIndicator: ",
|
|
2977
|
-
},
|
|
2982
|
+
const { t: c } = $e(), [u, p] = We(), [d, h] = We(), [v, b] = We(), f = (k) => {
|
|
2983
|
+
p(u == k ? null : k);
|
|
2984
|
+
}, x = (k) => {
|
|
2985
|
+
h(d == k ? null : k);
|
|
2986
|
+
}, C = ({ indicator: k }) => {
|
|
2987
|
+
console.log("onClickIndicator: ", k), R(k);
|
|
2988
|
+
}, R = (k) => {
|
|
2978
2989
|
if (!o)
|
|
2979
2990
|
b(
|
|
2980
|
-
(v == null ? void 0 : v.name) ==
|
|
2991
|
+
(v == null ? void 0 : v.name) == k.name ? null : k
|
|
2981
2992
|
);
|
|
2982
2993
|
else {
|
|
2983
2994
|
let _ = v && v.length > 0 ? [...v] : [];
|
|
2984
2995
|
b(
|
|
2985
2996
|
_ != null && _.some(
|
|
2986
|
-
(D) => D.name ==
|
|
2997
|
+
(D) => D.name == k.name
|
|
2987
2998
|
) ? _.filter(
|
|
2988
|
-
(D) => D.name != String(
|
|
2989
|
-
) : [..._,
|
|
2990
|
-
),
|
|
2999
|
+
(D) => D.name != String(k.name)
|
|
3000
|
+
) : [..._, k]
|
|
3001
|
+
), k.type == "both" && s("cat");
|
|
2991
3002
|
}
|
|
2992
3003
|
};
|
|
2993
|
-
|
|
3004
|
+
se(() => {
|
|
2994
3005
|
console.log("activeindicator changed to: ", v), r && typeof r == "function" && v && r({ activeIndicator: v });
|
|
2995
3006
|
}, [v]), Co(() => {
|
|
2996
3007
|
if (i && !v)
|
|
2997
3008
|
if (o && i && Array.isArray(i)) {
|
|
2998
|
-
let
|
|
2999
|
-
b([...
|
|
3009
|
+
let k = v && v.length > 0 ? [...v] : [];
|
|
3010
|
+
b([...k, ...i]), w(i[0].name);
|
|
3000
3011
|
} else
|
|
3001
|
-
|
|
3012
|
+
R(i), w(i.name);
|
|
3002
3013
|
}, []);
|
|
3003
|
-
const
|
|
3014
|
+
const w = (k) => {
|
|
3004
3015
|
const _ = e.find((D) => {
|
|
3005
3016
|
if (D.subcategories) {
|
|
3006
3017
|
let y = D.subcategories.find(
|
|
3007
|
-
(
|
|
3018
|
+
(T) => T.indicators.find((S) => S.name == k)
|
|
3008
3019
|
);
|
|
3009
3020
|
if (y)
|
|
3010
3021
|
return h(y.subcategory), y;
|
|
3011
3022
|
} else
|
|
3012
|
-
return D.indicators.some((y) => y.name ==
|
|
3023
|
+
return D.indicators.some((y) => y.name == k);
|
|
3013
3024
|
});
|
|
3014
3025
|
_ && p(_.category);
|
|
3015
3026
|
};
|
|
3016
3027
|
return /* @__PURE__ */ m.jsxs("div", { className: si.indicatorsList, children: [
|
|
3017
3028
|
/* @__PURE__ */ m.jsx("h2", { className: si.title, style: { color: n }, children: c("indicators.indicators") }),
|
|
3018
|
-
e.map((
|
|
3029
|
+
e.map((k, _) => /* @__PURE__ */ m.jsx(
|
|
3019
3030
|
gs,
|
|
3020
3031
|
{
|
|
3021
|
-
id:
|
|
3022
|
-
cat:
|
|
3023
|
-
onClickCategory:
|
|
3032
|
+
id: k.category,
|
|
3033
|
+
cat: k,
|
|
3034
|
+
onClickCategory: f,
|
|
3024
3035
|
activeCategory: u,
|
|
3025
3036
|
onClickSubCategory: x,
|
|
3026
|
-
activeSubCategory:
|
|
3037
|
+
activeSubCategory: d,
|
|
3027
3038
|
onClickIndicator: C,
|
|
3028
3039
|
activeIndicator: v,
|
|
3029
3040
|
activeColor: t,
|
|
@@ -3144,11 +3155,11 @@ const ac = "_legendContainer_atg3j_3", lc = "_closeButton_atg3j_18", cc = "_titl
|
|
|
3144
3155
|
children: [
|
|
3145
3156
|
/* @__PURE__ */ m.jsx("button", { className: Ye.closeButton, onClick: c }),
|
|
3146
3157
|
t && /* @__PURE__ */ m.jsx("div", { className: Ye.titleContainer, children: /* @__PURE__ */ m.jsx("h2", { children: t }) }),
|
|
3147
|
-
n && n.length > 0 && /* @__PURE__ */ m.jsx("div", { className: Ye.infoContainer, children: /* @__PURE__ */ m.jsx("ul", { children: n.map(({ title: p, value:
|
|
3158
|
+
n && n.length > 0 && /* @__PURE__ */ m.jsx("div", { className: Ye.infoContainer, children: /* @__PURE__ */ m.jsx("ul", { children: n.map(({ title: p, value: d }) => /* @__PURE__ */ m.jsxs("li", { children: [
|
|
3148
3159
|
/* @__PURE__ */ m.jsx("h3", { className: Ye.title, children: `${p}:` }),
|
|
3149
3160
|
/* @__PURE__ */ m.jsxs("span", { className: Ye.value, children: [
|
|
3150
3161
|
" ",
|
|
3151
|
-
|
|
3162
|
+
d
|
|
3152
3163
|
] })
|
|
3153
3164
|
] }, t)) }) }),
|
|
3154
3165
|
/* @__PURE__ */ m.jsx("h3", { className: Ye.titleLegendList, children: o ? /* @__PURE__ */ m.jsx(So, { i18nKey: o, components: { sup: /* @__PURE__ */ m.jsx("sup", {}) } }) : u("mainUse") }),
|
|
@@ -3175,12 +3186,12 @@ const ac = "_legendContainer_atg3j_3", lc = "_closeButton_atg3j_18", cc = "_titl
|
|
|
3175
3186
|
] })
|
|
3176
3187
|
] })
|
|
3177
3188
|
] }) : r && r.length > 0 && /* @__PURE__ */ m.jsx("div", { className: Ye.gridContainer, children: r.map(
|
|
3178
|
-
({ title: p, color:
|
|
3189
|
+
({ title: p, color: d }) => /* @__PURE__ */ m.jsxs("div", { className: Ye.elementLegendContainer, children: [
|
|
3179
3190
|
/* @__PURE__ */ m.jsx(
|
|
3180
3191
|
"div",
|
|
3181
3192
|
{
|
|
3182
3193
|
className: Ye.colorDot,
|
|
3183
|
-
style: { backgroundColor:
|
|
3194
|
+
style: { backgroundColor: d }
|
|
3184
3195
|
}
|
|
3185
3196
|
),
|
|
3186
3197
|
/* @__PURE__ */ m.jsxs("div", { className: Ye.titleLegendElement, children: [
|
|
@@ -3713,7 +3724,7 @@ function Pc(e) {
|
|
|
3713
3724
|
}
|
|
3714
3725
|
return Array.from(t);
|
|
3715
3726
|
}
|
|
3716
|
-
const Lc = typeof document < "u" ? Co :
|
|
3727
|
+
const Lc = typeof document < "u" ? Co : se, Ac = [
|
|
3717
3728
|
"baseApiUrl",
|
|
3718
3729
|
"maxParallelImageRequests",
|
|
3719
3730
|
"workerClass",
|
|
@@ -3731,9 +3742,9 @@ function Mc(e, t) {
|
|
|
3731
3742
|
const vn = J.createContext(null);
|
|
3732
3743
|
function Nc(e, t) {
|
|
3733
3744
|
const n = dt(Sc), [r, o] = We(null), i = De(), { current: s } = De({ mapLib: null, map: null });
|
|
3734
|
-
|
|
3745
|
+
se(() => {
|
|
3735
3746
|
const u = e.mapLib;
|
|
3736
|
-
let p = !0,
|
|
3747
|
+
let p = !0, d;
|
|
3737
3748
|
return Promise.resolve(u || import("mapbox-gl")).then((h) => {
|
|
3738
3749
|
if (!p)
|
|
3739
3750
|
return;
|
|
@@ -3742,7 +3753,7 @@ function Nc(e, t) {
|
|
|
3742
3753
|
const v = "Map" in h ? h : h.default;
|
|
3743
3754
|
if (!v.Map)
|
|
3744
3755
|
throw new Error("Invalid mapLib");
|
|
3745
|
-
Mc(v, e), e.reuseMaps && (
|
|
3756
|
+
Mc(v, e), e.reuseMaps && (d = hn.reuse(e, i.current)), d || (d = new hn(v.Map, e, i.current)), s.map = jc(d), s.mapLib = v, o(d), n == null || n.onMapMount(s.map, e.id);
|
|
3746
3757
|
}).catch((h) => {
|
|
3747
3758
|
const { onError: v } = e;
|
|
3748
3759
|
v ? v({
|
|
@@ -3751,7 +3762,7 @@ function Nc(e, t) {
|
|
|
3751
3762
|
error: h
|
|
3752
3763
|
}) : console.error(h);
|
|
3753
3764
|
}), () => {
|
|
3754
|
-
p = !1,
|
|
3765
|
+
p = !1, d && (n == null || n.onMapUnmount(e.id), e.reuseMaps ? d.recycle() : d.destroy());
|
|
3755
3766
|
};
|
|
3756
3767
|
}, []), Lc(() => {
|
|
3757
3768
|
r && r.setProps(e);
|
|
@@ -3796,44 +3807,44 @@ function mi(e) {
|
|
|
3796
3807
|
Ge(yn((e, t) => {
|
|
3797
3808
|
const { map: n, mapLib: r } = dt(vn), o = De({ props: e }), i = Ue(() => {
|
|
3798
3809
|
let C = !1;
|
|
3799
|
-
J.Children.forEach(e.children, (
|
|
3800
|
-
|
|
3810
|
+
J.Children.forEach(e.children, (k) => {
|
|
3811
|
+
k && (C = !0);
|
|
3801
3812
|
});
|
|
3802
|
-
const
|
|
3813
|
+
const R = {
|
|
3803
3814
|
...e,
|
|
3804
3815
|
element: C ? document.createElement("div") : null
|
|
3805
|
-
},
|
|
3806
|
-
return
|
|
3816
|
+
}, w = new r.Marker(R);
|
|
3817
|
+
return w.setLngLat([e.longitude, e.latitude]), w.getElement().addEventListener("click", (k) => {
|
|
3807
3818
|
var _, D;
|
|
3808
3819
|
(D = (_ = o.current.props).onClick) == null || D.call(_, {
|
|
3809
3820
|
type: "click",
|
|
3810
|
-
target:
|
|
3811
|
-
originalEvent:
|
|
3821
|
+
target: w,
|
|
3822
|
+
originalEvent: k
|
|
3812
3823
|
});
|
|
3813
|
-
}),
|
|
3824
|
+
}), w.on("dragstart", (k) => {
|
|
3814
3825
|
var D, y;
|
|
3815
|
-
const _ =
|
|
3826
|
+
const _ = k;
|
|
3816
3827
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragStart) == null || y.call(D, _);
|
|
3817
|
-
}),
|
|
3828
|
+
}), w.on("drag", (k) => {
|
|
3818
3829
|
var D, y;
|
|
3819
|
-
const _ =
|
|
3830
|
+
const _ = k;
|
|
3820
3831
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDrag) == null || y.call(D, _);
|
|
3821
|
-
}),
|
|
3832
|
+
}), w.on("dragend", (k) => {
|
|
3822
3833
|
var D, y;
|
|
3823
|
-
const _ =
|
|
3834
|
+
const _ = k;
|
|
3824
3835
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragEnd) == null || y.call(D, _);
|
|
3825
|
-
}),
|
|
3836
|
+
}), w;
|
|
3826
3837
|
}, []);
|
|
3827
|
-
|
|
3838
|
+
se(() => (i.addTo(n.getMap()), () => {
|
|
3828
3839
|
i.remove();
|
|
3829
3840
|
}), []);
|
|
3830
|
-
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup:
|
|
3831
|
-
|
|
3841
|
+
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup: d = null, rotation: h = 0, rotationAlignment: v = "auto", pitchAlignment: b = "auto" } = e;
|
|
3842
|
+
se(() => {
|
|
3832
3843
|
qt(i.getElement(), u);
|
|
3833
3844
|
}, [u]), Lt(t, () => i, []);
|
|
3834
|
-
const
|
|
3835
|
-
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !wc(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !==
|
|
3836
|
-
const x = ys(
|
|
3845
|
+
const f = o.current.props;
|
|
3846
|
+
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !wc(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !== d && i.setPopup(d);
|
|
3847
|
+
const x = ys(f.className, e.className);
|
|
3837
3848
|
if (x)
|
|
3838
3849
|
for (const C of x)
|
|
3839
3850
|
i.toggleClassName(C);
|
|
@@ -3843,11 +3854,11 @@ const Fc = Ge(yn((e, t) => {
|
|
|
3843
3854
|
const { map: n, mapLib: r } = dt(vn), o = Ue(() => document.createElement("div"), []), i = De({ props: e }), s = Ue(() => {
|
|
3844
3855
|
const l = { ...e }, c = new r.Popup(l);
|
|
3845
3856
|
return c.setLngLat([e.longitude, e.latitude]), c.once("open", (u) => {
|
|
3846
|
-
var p,
|
|
3847
|
-
(
|
|
3857
|
+
var p, d;
|
|
3858
|
+
(d = (p = i.current.props).onOpen) == null || d.call(p, u);
|
|
3848
3859
|
}), c;
|
|
3849
3860
|
}, []);
|
|
3850
|
-
if (
|
|
3861
|
+
if (se(() => {
|
|
3851
3862
|
const l = (c) => {
|
|
3852
3863
|
var u, p;
|
|
3853
3864
|
(p = (u = i.current.props).onClose) == null || p.call(u, c);
|
|
@@ -3855,7 +3866,7 @@ const Fc = Ge(yn((e, t) => {
|
|
|
3855
3866
|
return s.on("close", l), s.setDOMContent(o).addTo(n.getMap()), () => {
|
|
3856
3867
|
s.off("close", l), s.isOpen() && s.remove();
|
|
3857
3868
|
};
|
|
3858
|
-
}, []),
|
|
3869
|
+
}, []), se(() => {
|
|
3859
3870
|
qt(s.getElement(), e.style);
|
|
3860
3871
|
}, [e.style]), Lt(t, () => s, []), s.isOpen()) {
|
|
3861
3872
|
const l = i.current.props;
|
|
@@ -3870,7 +3881,7 @@ const Fc = Ge(yn((e, t) => {
|
|
|
3870
3881
|
}));
|
|
3871
3882
|
function Un(e, t, n, r) {
|
|
3872
3883
|
const o = dt(vn), i = Ue(() => e(o), []);
|
|
3873
|
-
return
|
|
3884
|
+
return se(() => {
|
|
3874
3885
|
const s = t, l = typeof t == "function" ? t : null, { map: c } = o;
|
|
3875
3886
|
return c.hasControl(i) || c.addControl(i, s == null ? void 0 : s.position), () => {
|
|
3876
3887
|
l && l(o), c.hasControl(i) && c.removeControl(i);
|
|
@@ -3881,7 +3892,7 @@ function zc(e) {
|
|
|
3881
3892
|
const t = Un(({ mapLib: n }) => new n.AttributionControl(e), {
|
|
3882
3893
|
position: e.position
|
|
3883
3894
|
});
|
|
3884
|
-
return
|
|
3895
|
+
return se(() => {
|
|
3885
3896
|
qt(t._container, e.style);
|
|
3886
3897
|
}, [e.style]), null;
|
|
3887
3898
|
}
|
|
@@ -3890,7 +3901,7 @@ function Bc(e) {
|
|
|
3890
3901
|
const t = Un(({ mapLib: n }) => new n.FullscreenControl({
|
|
3891
3902
|
container: e.containerId && document.getElementById(e.containerId)
|
|
3892
3903
|
}), { position: e.position });
|
|
3893
|
-
return
|
|
3904
|
+
return se(() => {
|
|
3894
3905
|
qt(t._controlContainer, e.style);
|
|
3895
3906
|
}, [e.style]), null;
|
|
3896
3907
|
}
|
|
@@ -3917,7 +3928,7 @@ function Uc(e, t) {
|
|
|
3917
3928
|
(u = (c = n.current.props).onTrackUserLocationEnd) == null || u.call(c, l);
|
|
3918
3929
|
}), i;
|
|
3919
3930
|
}, { position: e.position });
|
|
3920
|
-
return n.current.props = e, Lt(t, () => r, []),
|
|
3931
|
+
return n.current.props = e, Lt(t, () => r, []), se(() => {
|
|
3921
3932
|
qt(r._container, e.style);
|
|
3922
3933
|
}, [e.style]), null;
|
|
3923
3934
|
}
|
|
@@ -3926,7 +3937,7 @@ function Vc(e) {
|
|
|
3926
3937
|
const t = Un(({ mapLib: n }) => new n.NavigationControl(e), {
|
|
3927
3938
|
position: e.position
|
|
3928
3939
|
});
|
|
3929
|
-
return
|
|
3940
|
+
return se(() => {
|
|
3930
3941
|
qt(t._container, e.style);
|
|
3931
3942
|
}, [e.style]), null;
|
|
3932
3943
|
}
|
|
@@ -3937,7 +3948,7 @@ function Wc(e) {
|
|
|
3937
3948
|
}), n = De(e), r = n.current;
|
|
3938
3949
|
n.current = e;
|
|
3939
3950
|
const { style: o } = e;
|
|
3940
|
-
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit),
|
|
3951
|
+
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit), se(() => {
|
|
3941
3952
|
qt(t._container, o);
|
|
3942
3953
|
}, [o]), null;
|
|
3943
3954
|
}
|
|
@@ -3969,7 +3980,7 @@ function Yc(e, t, n) {
|
|
|
3969
3980
|
}
|
|
3970
3981
|
function Zc(e) {
|
|
3971
3982
|
const t = dt(vn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-source-${Hc++}`, []);
|
|
3972
|
-
|
|
3983
|
+
se(() => {
|
|
3973
3984
|
if (t) {
|
|
3974
3985
|
const s = () => setTimeout(() => r((l) => l + 1), 0);
|
|
3975
3986
|
return t.on("styledata", s), s(), () => {
|
|
@@ -3995,17 +4006,17 @@ function Gc(e, t, n, r) {
|
|
|
3995
4006
|
const { layout: o = {}, paint: i = {}, filter: s, minzoom: l, maxzoom: c, beforeId: u } = n;
|
|
3996
4007
|
if (u !== r.beforeId && e.moveLayer(t, u), o !== r.layout) {
|
|
3997
4008
|
const p = r.layout || {};
|
|
3998
|
-
for (const
|
|
3999
|
-
rt(o[
|
|
4000
|
-
for (const
|
|
4001
|
-
o.hasOwnProperty(
|
|
4009
|
+
for (const d in o)
|
|
4010
|
+
rt(o[d], p[d]) || e.setLayoutProperty(t, d, o[d]);
|
|
4011
|
+
for (const d in p)
|
|
4012
|
+
o.hasOwnProperty(d) || e.setLayoutProperty(t, d, void 0);
|
|
4002
4013
|
}
|
|
4003
4014
|
if (i !== r.paint) {
|
|
4004
4015
|
const p = r.paint || {};
|
|
4005
|
-
for (const
|
|
4006
|
-
rt(i[
|
|
4007
|
-
for (const
|
|
4008
|
-
i.hasOwnProperty(
|
|
4016
|
+
for (const d in i)
|
|
4017
|
+
rt(i[d], p[d]) || e.setPaintProperty(t, d, i[d]);
|
|
4018
|
+
for (const d in p)
|
|
4019
|
+
i.hasOwnProperty(d) || e.setPaintProperty(t, d, void 0);
|
|
4009
4020
|
}
|
|
4010
4021
|
rt(s, r.filter) || e.setFilter(t, s), (l !== r.minzoom || c !== r.maxzoom) && e.setLayerZoomRange(t, l, c);
|
|
4011
4022
|
}
|
|
@@ -4018,7 +4029,7 @@ function Jc(e, t, n) {
|
|
|
4018
4029
|
let Xc = 0;
|
|
4019
4030
|
function Qc(e) {
|
|
4020
4031
|
const t = dt(vn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-layer-${Xc++}`, []);
|
|
4021
|
-
if (
|
|
4032
|
+
if (se(() => {
|
|
4022
4033
|
if (t) {
|
|
4023
4034
|
const s = () => r((l) => l + 1);
|
|
4024
4035
|
return t.on("styledata", s), s(), () => {
|
|
@@ -4052,19 +4063,19 @@ const nu = ({
|
|
|
4052
4063
|
sources: u = [],
|
|
4053
4064
|
layers: p = []
|
|
4054
4065
|
}) => {
|
|
4055
|
-
const
|
|
4056
|
-
return
|
|
4057
|
-
if (
|
|
4058
|
-
const
|
|
4059
|
-
|
|
4060
|
-
C.type == "symbol" && C.id != "professionals" && (b ?
|
|
4066
|
+
const d = De(), [h, v] = We(null), b = co((f) => f.mapState.showTexts);
|
|
4067
|
+
return se(() => {
|
|
4068
|
+
if (d.current) {
|
|
4069
|
+
const f = d.current.getMap();
|
|
4070
|
+
f.getStyle().layers.map((C) => {
|
|
4071
|
+
C.type == "symbol" && C.id != "professionals" && (b ? f.setLayoutProperty(C.id, "visibility", "visible") : f.setLayoutProperty(C.id, "visibility", "none"));
|
|
4061
4072
|
});
|
|
4062
4073
|
}
|
|
4063
4074
|
}, [b]), /* @__PURE__ */ m.jsx("div", { className: `${tu.mapContainer}`, style: i, children: /* @__PURE__ */ m.jsxs(
|
|
4064
4075
|
Ic,
|
|
4065
4076
|
{
|
|
4066
4077
|
initialViewState: e,
|
|
4067
|
-
ref:
|
|
4078
|
+
ref: d,
|
|
4068
4079
|
hash: !1,
|
|
4069
4080
|
maxZoom: t,
|
|
4070
4081
|
minZoom: n,
|
|
@@ -4072,18 +4083,18 @@ const nu = ({
|
|
|
4072
4083
|
onClick: s,
|
|
4073
4084
|
interactiveLayerIds: l,
|
|
4074
4085
|
children: [
|
|
4075
|
-
u.length && u.map((
|
|
4086
|
+
u.length && u.map((f, x) => /* @__PURE__ */ m.jsx(
|
|
4076
4087
|
Zc,
|
|
4077
4088
|
{
|
|
4078
|
-
...
|
|
4079
|
-
children: p.length && p.map((C,
|
|
4080
|
-
if (C.sourceId ==
|
|
4089
|
+
...f,
|
|
4090
|
+
children: p.length && p.map((C, R) => {
|
|
4091
|
+
if (C.sourceId == f.id) return /* @__PURE__ */ m.jsx(
|
|
4081
4092
|
Qc,
|
|
4082
4093
|
{
|
|
4083
4094
|
...C.layer,
|
|
4084
4095
|
beforeId: o
|
|
4085
4096
|
},
|
|
4086
|
-
|
|
4097
|
+
R
|
|
4087
4098
|
);
|
|
4088
4099
|
})
|
|
4089
4100
|
},
|
|
@@ -4244,8 +4255,8 @@ var An = function(e, t, n) {
|
|
|
4244
4255
|
var c = 15 - t;
|
|
4245
4256
|
for (o = 0; o < r; ++o)
|
|
4246
4257
|
if (e[o])
|
|
4247
|
-
for (var u = o << 4 | e[o], p = t - e[o],
|
|
4248
|
-
l[ho[
|
|
4258
|
+
for (var u = o << 4 | e[o], p = t - e[o], d = s[e[o] - 1]++ << p, h = d | (1 << p) - 1; d <= h; ++d)
|
|
4259
|
+
l[ho[d] >> c] = u;
|
|
4249
4260
|
} else
|
|
4250
4261
|
for (l = new fn(r), o = 0; o < r; ++o)
|
|
4251
4262
|
e[o] && (l[o] = ho[s[e[o] - 1]++] >> 15 - e[o]);
|
|
@@ -4309,91 +4320,91 @@ var lu = /* @__PURE__ */ An(Vn, 9, 1), cu = /* @__PURE__ */ An(Ss, 5, 1), Qr = f
|
|
|
4309
4320
|
var _e = new ot(Math.max(j * 2, be));
|
|
4310
4321
|
_e.set(n), n = _e;
|
|
4311
4322
|
}
|
|
4312
|
-
}, p = t.f || 0,
|
|
4323
|
+
}, p = t.f || 0, d = t.p || 0, h = t.b || 0, v = t.l, b = t.d, f = t.m, x = t.n, C = o * 8;
|
|
4313
4324
|
do {
|
|
4314
4325
|
if (!v) {
|
|
4315
|
-
p = ht(e,
|
|
4316
|
-
var
|
|
4317
|
-
if (
|
|
4318
|
-
if (
|
|
4319
|
-
v = lu, b = cu,
|
|
4320
|
-
else if (
|
|
4321
|
-
var D = ht(e,
|
|
4322
|
-
|
|
4323
|
-
for (var S = new ot(
|
|
4324
|
-
$[ou[
|
|
4325
|
-
|
|
4326
|
-
for (var
|
|
4327
|
-
var
|
|
4328
|
-
|
|
4329
|
-
var
|
|
4330
|
-
if (
|
|
4331
|
-
S[
|
|
4326
|
+
p = ht(e, d, 1);
|
|
4327
|
+
var R = ht(e, d + 1, 3);
|
|
4328
|
+
if (d += 3, R)
|
|
4329
|
+
if (R == 1)
|
|
4330
|
+
v = lu, b = cu, f = 9, x = 5;
|
|
4331
|
+
else if (R == 2) {
|
|
4332
|
+
var D = ht(e, d, 31) + 257, y = ht(e, d + 10, 15) + 4, T = D + ht(e, d + 5, 31) + 1;
|
|
4333
|
+
d += 14;
|
|
4334
|
+
for (var S = new ot(T), $ = new ot(19), N = 0; N < y; ++N)
|
|
4335
|
+
$[ou[N]] = ht(e, d + N * 3, 7);
|
|
4336
|
+
d += y * 3;
|
|
4337
|
+
for (var X = Qr($), B = (1 << X) - 1, Y = An($, X, 1), N = 0; N < T; ) {
|
|
4338
|
+
var V = Y[ht(e, d, B)];
|
|
4339
|
+
d += V & 15;
|
|
4340
|
+
var w = V >> 4;
|
|
4341
|
+
if (w < 16)
|
|
4342
|
+
S[N++] = w;
|
|
4332
4343
|
else {
|
|
4333
|
-
var
|
|
4334
|
-
for (
|
|
4335
|
-
S[
|
|
4344
|
+
var ie = 0, re = 0;
|
|
4345
|
+
for (w == 16 ? (re = 3 + ht(e, d, 3), d += 2, ie = S[N - 1]) : w == 17 ? (re = 3 + ht(e, d, 7), d += 3) : w == 18 && (re = 11 + ht(e, d, 127), d += 7); re--; )
|
|
4346
|
+
S[N++] = ie;
|
|
4336
4347
|
}
|
|
4337
4348
|
}
|
|
4338
4349
|
var Ee = S.subarray(0, D), je = S.subarray(D);
|
|
4339
|
-
|
|
4350
|
+
f = Qr(Ee), x = Qr(je), v = An(Ee, f, 1), b = An(je, x, 1);
|
|
4340
4351
|
} else
|
|
4341
4352
|
nt(1);
|
|
4342
4353
|
else {
|
|
4343
|
-
var
|
|
4354
|
+
var w = uu(d) + 4, k = e[w - 4] | e[w - 3] << 8, _ = w + k;
|
|
4344
4355
|
if (_ > o) {
|
|
4345
4356
|
c && nt(0);
|
|
4346
4357
|
break;
|
|
4347
4358
|
}
|
|
4348
|
-
l && u(h +
|
|
4359
|
+
l && u(h + k), n.set(e.subarray(w, _), h), t.b = h += k, t.p = d = _ * 8, t.f = p;
|
|
4349
4360
|
continue;
|
|
4350
4361
|
}
|
|
4351
|
-
if (
|
|
4362
|
+
if (d > C) {
|
|
4352
4363
|
c && nt(0);
|
|
4353
4364
|
break;
|
|
4354
4365
|
}
|
|
4355
4366
|
}
|
|
4356
4367
|
l && u(h + 131072);
|
|
4357
|
-
for (var O = (1 <<
|
|
4358
|
-
var
|
|
4359
|
-
if (
|
|
4368
|
+
for (var O = (1 << f) - 1, A = (1 << x) - 1, Q = d; ; Q = d) {
|
|
4369
|
+
var ie = v[eo(e, d) & O], q = ie >> 4;
|
|
4370
|
+
if (d += ie & 15, d > C) {
|
|
4360
4371
|
c && nt(0);
|
|
4361
4372
|
break;
|
|
4362
4373
|
}
|
|
4363
|
-
if (
|
|
4364
|
-
n[h++] =
|
|
4365
|
-
else if (
|
|
4366
|
-
|
|
4374
|
+
if (ie || nt(2), q < 256)
|
|
4375
|
+
n[h++] = q;
|
|
4376
|
+
else if (q == 256) {
|
|
4377
|
+
Q = d, v = null;
|
|
4367
4378
|
break;
|
|
4368
4379
|
} else {
|
|
4369
|
-
var F =
|
|
4370
|
-
if (
|
|
4371
|
-
var
|
|
4372
|
-
F = ht(e,
|
|
4380
|
+
var F = q - 254;
|
|
4381
|
+
if (q > 264) {
|
|
4382
|
+
var N = q - 257, ee = vs[N];
|
|
4383
|
+
F = ht(e, d, (1 << ee) - 1) + Cs[N], d += ee;
|
|
4373
4384
|
}
|
|
4374
|
-
var
|
|
4375
|
-
|
|
4376
|
-
var je = au[
|
|
4377
|
-
if (
|
|
4378
|
-
var
|
|
4379
|
-
je += eo(e,
|
|
4385
|
+
var K = b[eo(e, d) & A], H = K >> 4;
|
|
4386
|
+
K || nt(3), d += K & 15;
|
|
4387
|
+
var je = au[H];
|
|
4388
|
+
if (H > 3) {
|
|
4389
|
+
var ee = bs[H];
|
|
4390
|
+
je += eo(e, d) & (1 << ee) - 1, d += ee;
|
|
4380
4391
|
}
|
|
4381
|
-
if (
|
|
4392
|
+
if (d > C) {
|
|
4382
4393
|
c && nt(0);
|
|
4383
4394
|
break;
|
|
4384
4395
|
}
|
|
4385
4396
|
l && u(h + 131072);
|
|
4386
4397
|
var U = h + F;
|
|
4387
4398
|
if (h < je) {
|
|
4388
|
-
var Z = i - je,
|
|
4389
|
-
for (Z + h < 0 && nt(3); h <
|
|
4399
|
+
var Z = i - je, ne = Math.min(je, U);
|
|
4400
|
+
for (Z + h < 0 && nt(3); h < ne; ++h)
|
|
4390
4401
|
n[h] = r[Z + h];
|
|
4391
4402
|
}
|
|
4392
4403
|
for (; h < U; ++h)
|
|
4393
4404
|
n[h] = n[h - je];
|
|
4394
4405
|
}
|
|
4395
4406
|
}
|
|
4396
|
-
t.l = v, t.p =
|
|
4407
|
+
t.l = v, t.p = Q, t.b = h, t.f = p, v && (p = 1, t.m = f, t.d = b, t.n = x);
|
|
4397
4408
|
} while (!p);
|
|
4398
4409
|
return h != n.length && s ? fu(n, 0, h) : n.subarray(0, h);
|
|
4399
4410
|
}, pu = /* @__PURE__ */ new ot(0), hu = function(e) {
|
|
@@ -4452,7 +4463,7 @@ Se((e, t) => {
|
|
|
4452
4463
|
p.tileType === 1 ? console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details.") : p.tileType === 2 ? r = "image/png" : p.tileType === 3 ? r = "image/jpeg" : p.tileType === 4 ? r = "image/webp" : p.tileType === 5 && (r = "image/avif");
|
|
4453
4464
|
}), n = !0), e.getZxy(i.z, i.x, i.y, u).then((p) => {
|
|
4454
4465
|
if (p) {
|
|
4455
|
-
let
|
|
4466
|
+
let d = new Blob([p.data], { type: r }), h = window.URL.createObjectURL(d);
|
|
4456
4467
|
l.src = h, l.cancel = void 0, s(void 0, l);
|
|
4457
4468
|
}
|
|
4458
4469
|
}).catch((p) => {
|
|
@@ -4474,16 +4485,16 @@ var wu = Se((e) => (t, n) => {
|
|
|
4474
4485
|
if (n.type === "json") {
|
|
4475
4486
|
let v = n.url.substr(10), b = this.tiles.get(v);
|
|
4476
4487
|
if (b || (b = new gi(v), this.tiles.set(v, b)), this.metadata) return { data: yield b.getTileJson(n.url) };
|
|
4477
|
-
let
|
|
4478
|
-
return (
|
|
4488
|
+
let f = yield b.getHeader();
|
|
4489
|
+
return (f.minLon >= f.maxLon || f.minLat >= f.maxLat) && console.error(`Bounds of PMTiles archive ${f.minLon},${f.minLat},${f.maxLon},${f.maxLat} are not valid.`), { data: { tiles: [`${n.url}/{z}/{x}/{y}`], minzoom: f.minZoom, maxzoom: f.maxZoom, bounds: [f.minLon, f.minLat, f.maxLon, f.maxLat] } };
|
|
4479
4490
|
}
|
|
4480
4491
|
let o = new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/), i = n.url.match(o);
|
|
4481
4492
|
if (!i) throw new Error("Invalid PMTiles protocol URL");
|
|
4482
4493
|
let s = i[1], l = this.tiles.get(s);
|
|
4483
4494
|
l || (l = new gi(s), this.tiles.set(s, l));
|
|
4484
|
-
let c = i[2], u = i[3], p = i[4],
|
|
4495
|
+
let c = i[2], u = i[3], p = i[4], d = yield l.getHeader(), h = yield l == null ? void 0 : l.getZxy(+c, +u, +p, r.signal);
|
|
4485
4496
|
if (h) return { data: new Uint8Array(h.data), cacheControl: h.cacheControl, expires: h.expires };
|
|
4486
|
-
if (
|
|
4497
|
+
if (d.tileType === 1) {
|
|
4487
4498
|
if (this.errorOnMissingTile) throw new Error("Tile not found.");
|
|
4488
4499
|
return { data: new Uint8Array() };
|
|
4489
4500
|
}
|
|
@@ -4625,8 +4636,8 @@ var js = class {
|
|
|
4625
4636
|
let p = u.headers.get("Etag");
|
|
4626
4637
|
if (p != null && p.startsWith("W/") && (p = null), u.status === 416 || o && p && p !== o) throw this.mustReload = !0, new mo(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);
|
|
4627
4638
|
if (u.status >= 300) throw new Error(`Bad response code: ${u.status}`);
|
|
4628
|
-
let
|
|
4629
|
-
if (u.status === 200 && (!
|
|
4639
|
+
let d = u.headers.get("Content-Length");
|
|
4640
|
+
if (u.status === 200 && (!d || +d > n)) throw i && i.abort(), new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");
|
|
4630
4641
|
return { data: yield u.arrayBuffer(), etag: p || void 0, cacheControl: u.headers.get("Cache-Control") || void 0, expires: u.headers.get("Expires") || void 0 };
|
|
4631
4642
|
});
|
|
4632
4643
|
}
|
|
@@ -4787,13 +4798,13 @@ var Au = As, Ms = class {
|
|
|
4787
4798
|
if (t < s.minZoom || t > s.maxZoom) return;
|
|
4788
4799
|
let l = s.rootDirectoryOffset, c = s.rootDirectoryLength;
|
|
4789
4800
|
for (let u = 0; u <= 3; u++) {
|
|
4790
|
-
let p = yield this.cache.getDirectory(this.source, l, c, s),
|
|
4791
|
-
if (
|
|
4792
|
-
if (
|
|
4793
|
-
let h = yield this.source.getBytes(s.tileDataOffset +
|
|
4801
|
+
let p = yield this.cache.getDirectory(this.source, l, c, s), d = $s(p, i);
|
|
4802
|
+
if (d) {
|
|
4803
|
+
if (d.runLength > 0) {
|
|
4804
|
+
let h = yield this.source.getBytes(s.tileDataOffset + d.offset, d.length, o, s.etag);
|
|
4794
4805
|
return { data: yield this.decompress(h.data, s.tileCompression), cacheControl: h.cacheControl, expires: h.expires };
|
|
4795
4806
|
}
|
|
4796
|
-
l = s.leafDirectoryOffset +
|
|
4807
|
+
l = s.leafDirectoryOffset + d.offset, c = d.length;
|
|
4797
4808
|
} else return;
|
|
4798
4809
|
}
|
|
4799
4810
|
throw new Error("Maximum directory depth exceeded");
|
|
@@ -5193,7 +5204,7 @@ function Uu(e) {
|
|
|
5193
5204
|
}
|
|
5194
5205
|
return Array.from(t);
|
|
5195
5206
|
}
|
|
5196
|
-
const Vu = typeof document < "u" ? Co :
|
|
5207
|
+
const Vu = typeof document < "u" ? Co : se;
|
|
5197
5208
|
function qu(e, t) {
|
|
5198
5209
|
const { RTLTextPlugin: n, maxParallelImageRequests: r, workerCount: o, workerUrl: i } = t;
|
|
5199
5210
|
if (n && e.getRTLTextPluginStatus && e.getRTLTextPluginStatus() === "unavailable") {
|
|
@@ -5207,9 +5218,9 @@ function qu(e, t) {
|
|
|
5207
5218
|
const bn = J.createContext(null);
|
|
5208
5219
|
function Wu(e, t) {
|
|
5209
5220
|
const n = dt(Mu), [r, o] = We(null), i = De(), { current: s } = De({ mapLib: null, map: null });
|
|
5210
|
-
|
|
5221
|
+
se(() => {
|
|
5211
5222
|
const u = e.mapLib;
|
|
5212
|
-
let p = !0,
|
|
5223
|
+
let p = !0, d;
|
|
5213
5224
|
return Promise.resolve(u || import("maplibre-gl")).then((h) => {
|
|
5214
5225
|
if (!p)
|
|
5215
5226
|
return;
|
|
@@ -5218,7 +5229,7 @@ function Wu(e, t) {
|
|
|
5218
5229
|
const v = "Map" in h ? h : h.default;
|
|
5219
5230
|
if (!v.Map)
|
|
5220
5231
|
throw new Error("Invalid mapLib");
|
|
5221
|
-
qu(v, e), e.reuseMaps && (
|
|
5232
|
+
qu(v, e), e.reuseMaps && (d = mn.reuse(e, i.current)), d || (d = new mn(v.Map, e, i.current)), s.map = Bu(d), s.mapLib = v, o(d), n == null || n.onMapMount(s.map, e.id);
|
|
5222
5233
|
}).catch((h) => {
|
|
5223
5234
|
const { onError: v } = e;
|
|
5224
5235
|
v ? v({
|
|
@@ -5228,7 +5239,7 @@ function Wu(e, t) {
|
|
|
5228
5239
|
error: h
|
|
5229
5240
|
}) : console.error(h);
|
|
5230
5241
|
}), () => {
|
|
5231
|
-
p = !1,
|
|
5242
|
+
p = !1, d && (n == null || n.onMapUnmount(e.id), e.reuseMaps ? d.recycle() : d.destroy());
|
|
5232
5243
|
};
|
|
5233
5244
|
}, []), Vu(() => {
|
|
5234
5245
|
r && r.setProps(e);
|
|
@@ -5273,44 +5284,44 @@ function wi(e) {
|
|
|
5273
5284
|
Ge(yn((e, t) => {
|
|
5274
5285
|
const { map: n, mapLib: r } = dt(bn), o = De({ props: e }), i = Ue(() => {
|
|
5275
5286
|
let C = !1;
|
|
5276
|
-
J.Children.forEach(e.children, (
|
|
5277
|
-
|
|
5287
|
+
J.Children.forEach(e.children, (k) => {
|
|
5288
|
+
k && (C = !0);
|
|
5278
5289
|
});
|
|
5279
|
-
const
|
|
5290
|
+
const R = {
|
|
5280
5291
|
...e,
|
|
5281
5292
|
element: C ? document.createElement("div") : void 0
|
|
5282
|
-
},
|
|
5283
|
-
return
|
|
5293
|
+
}, w = new r.Marker(R);
|
|
5294
|
+
return w.setLngLat([e.longitude, e.latitude]), w.getElement().addEventListener("click", (k) => {
|
|
5284
5295
|
var _, D;
|
|
5285
5296
|
(D = (_ = o.current.props).onClick) == null || D.call(_, {
|
|
5286
5297
|
type: "click",
|
|
5287
|
-
target:
|
|
5288
|
-
originalEvent:
|
|
5298
|
+
target: w,
|
|
5299
|
+
originalEvent: k
|
|
5289
5300
|
});
|
|
5290
|
-
}),
|
|
5301
|
+
}), w.on("dragstart", (k) => {
|
|
5291
5302
|
var D, y;
|
|
5292
|
-
const _ =
|
|
5303
|
+
const _ = k;
|
|
5293
5304
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragStart) == null || y.call(D, _);
|
|
5294
|
-
}),
|
|
5305
|
+
}), w.on("drag", (k) => {
|
|
5295
5306
|
var D, y;
|
|
5296
|
-
const _ =
|
|
5307
|
+
const _ = k;
|
|
5297
5308
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDrag) == null || y.call(D, _);
|
|
5298
|
-
}),
|
|
5309
|
+
}), w.on("dragend", (k) => {
|
|
5299
5310
|
var D, y;
|
|
5300
|
-
const _ =
|
|
5311
|
+
const _ = k;
|
|
5301
5312
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragEnd) == null || y.call(D, _);
|
|
5302
|
-
}),
|
|
5313
|
+
}), w;
|
|
5303
5314
|
}, []);
|
|
5304
|
-
|
|
5315
|
+
se(() => (i.addTo(n.getMap()), () => {
|
|
5305
5316
|
i.remove();
|
|
5306
5317
|
}), []);
|
|
5307
|
-
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup:
|
|
5308
|
-
|
|
5318
|
+
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup: d = null, rotation: h = 0, rotationAlignment: v = "auto", pitchAlignment: b = "auto" } = e;
|
|
5319
|
+
se(() => {
|
|
5309
5320
|
wt(i.getElement(), u);
|
|
5310
5321
|
}, [u]), Lt(t, () => i, []);
|
|
5311
|
-
const
|
|
5312
|
-
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !Nu(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !==
|
|
5313
|
-
const x = Ns(
|
|
5322
|
+
const f = o.current.props;
|
|
5323
|
+
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !Nu(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !== d && i.setPopup(d);
|
|
5324
|
+
const x = Ns(f.className, e.className);
|
|
5314
5325
|
if (x)
|
|
5315
5326
|
for (const C of x)
|
|
5316
5327
|
i.toggleClassName(C);
|
|
@@ -5320,11 +5331,11 @@ const Yu = Ge(yn((e, t) => {
|
|
|
5320
5331
|
const { map: n, mapLib: r } = dt(bn), o = Ue(() => document.createElement("div"), []), i = De({ props: e }), s = Ue(() => {
|
|
5321
5332
|
const l = { ...e }, c = new r.Popup(l);
|
|
5322
5333
|
return c.setLngLat([e.longitude, e.latitude]), c.once("open", (u) => {
|
|
5323
|
-
var p,
|
|
5324
|
-
(
|
|
5334
|
+
var p, d;
|
|
5335
|
+
(d = (p = i.current.props).onOpen) == null || d.call(p, u);
|
|
5325
5336
|
}), c;
|
|
5326
5337
|
}, []);
|
|
5327
|
-
if (
|
|
5338
|
+
if (se(() => {
|
|
5328
5339
|
const l = (c) => {
|
|
5329
5340
|
var u, p;
|
|
5330
5341
|
(p = (u = i.current.props).onClose) == null || p.call(u, c);
|
|
@@ -5332,7 +5343,7 @@ const Yu = Ge(yn((e, t) => {
|
|
|
5332
5343
|
return s.on("close", l), s.setDOMContent(o).addTo(n.getMap()), () => {
|
|
5333
5344
|
s.off("close", l), s.isOpen() && s.remove();
|
|
5334
5345
|
};
|
|
5335
|
-
}, []),
|
|
5346
|
+
}, []), se(() => {
|
|
5336
5347
|
wt(s.getElement(), e.style);
|
|
5337
5348
|
}, [e.style]), Lt(t, () => s, []), s.isOpen()) {
|
|
5338
5349
|
const l = i.current.props;
|
|
@@ -5347,7 +5358,7 @@ const Yu = Ge(yn((e, t) => {
|
|
|
5347
5358
|
}));
|
|
5348
5359
|
function Wt(e, t, n, r) {
|
|
5349
5360
|
const o = dt(bn), i = Ue(() => e(o), []);
|
|
5350
|
-
return
|
|
5361
|
+
return se(() => {
|
|
5351
5362
|
const s = t, l = typeof t == "function" ? t : null, { map: c } = o;
|
|
5352
5363
|
return c.hasControl(i) || c.addControl(i, s == null ? void 0 : s.position), () => {
|
|
5353
5364
|
l && l(o), c.hasControl(i) && c.removeControl(i);
|
|
@@ -5358,7 +5369,7 @@ function Zu(e) {
|
|
|
5358
5369
|
const t = Wt(({ mapLib: n }) => new n.AttributionControl(e), {
|
|
5359
5370
|
position: e.position
|
|
5360
5371
|
});
|
|
5361
|
-
return
|
|
5372
|
+
return se(() => {
|
|
5362
5373
|
wt(t._container, e.style);
|
|
5363
5374
|
}, [e.style]), null;
|
|
5364
5375
|
}
|
|
@@ -5367,7 +5378,7 @@ function Gu(e) {
|
|
|
5367
5378
|
const t = Wt(({ mapLib: n }) => new n.FullscreenControl({
|
|
5368
5379
|
container: e.containerId && document.getElementById(e.containerId)
|
|
5369
5380
|
}), { position: e.position });
|
|
5370
|
-
return
|
|
5381
|
+
return se(() => {
|
|
5371
5382
|
wt(t._controlContainer, e.style);
|
|
5372
5383
|
}, [e.style]), null;
|
|
5373
5384
|
}
|
|
@@ -5394,7 +5405,7 @@ function Ju(e, t) {
|
|
|
5394
5405
|
(u = (c = n.current.props).onTrackUserLocationEnd) == null || u.call(c, l);
|
|
5395
5406
|
}), i;
|
|
5396
5407
|
}, { position: e.position });
|
|
5397
|
-
return n.current.props = e, Lt(t, () => r, []),
|
|
5408
|
+
return n.current.props = e, Lt(t, () => r, []), se(() => {
|
|
5398
5409
|
wt(r._container, e.style);
|
|
5399
5410
|
}, [e.style]), null;
|
|
5400
5411
|
}
|
|
@@ -5403,7 +5414,7 @@ function Xu(e) {
|
|
|
5403
5414
|
const t = Wt(({ mapLib: n }) => new n.NavigationControl(e), {
|
|
5404
5415
|
position: e.position
|
|
5405
5416
|
});
|
|
5406
|
-
return
|
|
5417
|
+
return se(() => {
|
|
5407
5418
|
wt(t._container, e.style);
|
|
5408
5419
|
}, [e.style]), null;
|
|
5409
5420
|
}
|
|
@@ -5414,7 +5425,7 @@ function ef(e) {
|
|
|
5414
5425
|
}), n = De(e), r = n.current;
|
|
5415
5426
|
n.current = e;
|
|
5416
5427
|
const { style: o } = e;
|
|
5417
|
-
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit),
|
|
5428
|
+
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit), se(() => {
|
|
5418
5429
|
wt(t._container, o);
|
|
5419
5430
|
}, [o]), null;
|
|
5420
5431
|
}
|
|
@@ -5423,14 +5434,14 @@ function tf(e) {
|
|
|
5423
5434
|
const t = Wt(({ mapLib: n }) => new n.TerrainControl(e), {
|
|
5424
5435
|
position: e.position
|
|
5425
5436
|
});
|
|
5426
|
-
return
|
|
5437
|
+
return se(() => {
|
|
5427
5438
|
wt(t._container, e.style);
|
|
5428
5439
|
}, [e.style]), null;
|
|
5429
5440
|
}
|
|
5430
5441
|
Ge(tf);
|
|
5431
5442
|
function nf(e) {
|
|
5432
5443
|
const t = Wt(({ mapLib: n }) => new n.LogoControl(e), { position: e.position });
|
|
5433
|
-
return
|
|
5444
|
+
return se(() => {
|
|
5434
5445
|
wt(t._container, e.style);
|
|
5435
5446
|
}, [e.style]), null;
|
|
5436
5447
|
}
|
|
@@ -5480,7 +5491,7 @@ function sf(e, t, n) {
|
|
|
5480
5491
|
}
|
|
5481
5492
|
function af(e) {
|
|
5482
5493
|
const t = dt(bn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-source-${rf++}`, []);
|
|
5483
|
-
|
|
5494
|
+
se(() => {
|
|
5484
5495
|
if (t) {
|
|
5485
5496
|
const s = () => setTimeout(() => r((l) => l + 1), 0);
|
|
5486
5497
|
return t.on("styledata", s), s(), () => {
|
|
@@ -5506,17 +5517,17 @@ function lf(e, t, n, r) {
|
|
|
5506
5517
|
const { layout: o = {}, paint: i = {}, filter: s, minzoom: l, maxzoom: c, beforeId: u } = n;
|
|
5507
5518
|
if (u !== r.beforeId && e.moveLayer(t, u), o !== r.layout) {
|
|
5508
5519
|
const p = r.layout || {};
|
|
5509
|
-
for (const
|
|
5510
|
-
Qe(o[
|
|
5511
|
-
for (const
|
|
5512
|
-
o.hasOwnProperty(
|
|
5520
|
+
for (const d in o)
|
|
5521
|
+
Qe(o[d], p[d]) || e.setLayoutProperty(t, d, o[d]);
|
|
5522
|
+
for (const d in p)
|
|
5523
|
+
o.hasOwnProperty(d) || e.setLayoutProperty(t, d, void 0);
|
|
5513
5524
|
}
|
|
5514
5525
|
if (i !== r.paint) {
|
|
5515
5526
|
const p = r.paint || {};
|
|
5516
|
-
for (const
|
|
5517
|
-
Qe(i[
|
|
5518
|
-
for (const
|
|
5519
|
-
i.hasOwnProperty(
|
|
5527
|
+
for (const d in i)
|
|
5528
|
+
Qe(i[d], p[d]) || e.setPaintProperty(t, d, i[d]);
|
|
5529
|
+
for (const d in p)
|
|
5530
|
+
i.hasOwnProperty(d) || e.setPaintProperty(t, d, void 0);
|
|
5520
5531
|
}
|
|
5521
5532
|
Qe(s, r.filter) || e.setFilter(t, s), (l !== r.minzoom || c !== r.maxzoom) && e.setLayerZoomRange(t, l, c);
|
|
5522
5533
|
}
|
|
@@ -5529,7 +5540,7 @@ function cf(e, t, n) {
|
|
|
5529
5540
|
let uf = 0;
|
|
5530
5541
|
function ff(e) {
|
|
5531
5542
|
const t = dt(bn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-layer-${uf++}`, []);
|
|
5532
|
-
if (
|
|
5543
|
+
if (se(() => {
|
|
5533
5544
|
if (t) {
|
|
5534
5545
|
const s = () => r((l) => l + 1);
|
|
5535
5546
|
return t.on("styledata", s), s(), () => {
|
|
@@ -5574,22 +5585,22 @@ const df = "_mapContainer_ivruh_3", pf = {
|
|
|
5574
5585
|
sources: c = [],
|
|
5575
5586
|
layers: u = [],
|
|
5576
5587
|
filters: p,
|
|
5577
|
-
popUpParams:
|
|
5588
|
+
popUpParams: d,
|
|
5578
5589
|
onClosePopUp: h,
|
|
5579
5590
|
showTexts: v
|
|
5580
5591
|
}) => {
|
|
5581
5592
|
console.log(p);
|
|
5582
5593
|
const b = De();
|
|
5583
|
-
return
|
|
5594
|
+
return se(() => {
|
|
5584
5595
|
if (b.current) {
|
|
5585
|
-
const
|
|
5586
|
-
|
|
5587
|
-
C.type == "symbol" && C.id != "professionals" && (v ?
|
|
5596
|
+
const f = b.current.getMap();
|
|
5597
|
+
f.getStyle().layers.map((C) => {
|
|
5598
|
+
C.type == "symbol" && C.id != "professionals" && (v ? f.setLayoutProperty(C.id, "visibility", "visible") : f.setLayoutProperty(C.id, "visibility", "none"));
|
|
5588
5599
|
});
|
|
5589
5600
|
}
|
|
5590
|
-
}, [v]),
|
|
5591
|
-
let
|
|
5592
|
-
return Uo.addProtocol("pmtiles",
|
|
5601
|
+
}, [v]), se(() => {
|
|
5602
|
+
let f = new Tu();
|
|
5603
|
+
return Uo.addProtocol("pmtiles", f.tile), () => {
|
|
5593
5604
|
Uo.removeProtocol("pmtiles");
|
|
5594
5605
|
};
|
|
5595
5606
|
}, []), /* @__PURE__ */ m.jsx("div", { className: `${pf.mapContainer}`, style: i && i, children: /* @__PURE__ */ m.jsxs(
|
|
@@ -5604,32 +5615,32 @@ const df = "_mapContainer_ivruh_3", pf = {
|
|
|
5604
5615
|
onClick: s,
|
|
5605
5616
|
interactiveLayerIds: l,
|
|
5606
5617
|
children: [
|
|
5607
|
-
c.length && c.map((
|
|
5618
|
+
c.length && c.map((f, x) => /* @__PURE__ */ m.jsx(
|
|
5608
5619
|
af,
|
|
5609
5620
|
{
|
|
5610
|
-
...
|
|
5611
|
-
children: u.length && u.map((C,
|
|
5612
|
-
if (C.sourceId ==
|
|
5621
|
+
...f,
|
|
5622
|
+
children: u.length && u.map((C, R) => {
|
|
5623
|
+
if (C.sourceId == f.id) return /* @__PURE__ */ m.jsx(
|
|
5613
5624
|
ff,
|
|
5614
5625
|
{
|
|
5615
5626
|
...C.layer,
|
|
5616
5627
|
beforeId: o,
|
|
5617
5628
|
filter: p && p
|
|
5618
5629
|
},
|
|
5619
|
-
|
|
5630
|
+
R
|
|
5620
5631
|
);
|
|
5621
5632
|
})
|
|
5622
5633
|
},
|
|
5623
5634
|
x
|
|
5624
5635
|
)),
|
|
5625
5636
|
/* @__PURE__ */ m.jsx(Qu, { position: "bottom-right", visualizePitch: !0 }),
|
|
5626
|
-
|
|
5637
|
+
d && /* @__PURE__ */ m.jsx(
|
|
5627
5638
|
Yu,
|
|
5628
5639
|
{
|
|
5629
|
-
longitude:
|
|
5630
|
-
latitude:
|
|
5640
|
+
longitude: d.lng,
|
|
5641
|
+
latitude: d.lat,
|
|
5631
5642
|
onClose: h,
|
|
5632
|
-
children: /* @__PURE__ */ m.jsx(gf, { props:
|
|
5643
|
+
children: /* @__PURE__ */ m.jsx(gf, { props: d.props })
|
|
5633
5644
|
}
|
|
5634
5645
|
)
|
|
5635
5646
|
]
|
|
@@ -5820,153 +5831,153 @@ function Lf() {
|
|
|
5820
5831
|
var e = Ds();
|
|
5821
5832
|
Object.defineProperty(Re, "__esModule", {
|
|
5822
5833
|
value: !0
|
|
5823
|
-
}), Re.alpha = b, Re.blend = D, Re.colorChannel = void 0, Re.darken = x, Re.decomposeColor = s, Re.emphasize =
|
|
5834
|
+
}), Re.alpha = b, Re.blend = D, Re.colorChannel = void 0, Re.darken = x, Re.decomposeColor = s, Re.emphasize = k, Re.getContrastRatio = v, Re.getLuminance = h, Re.hexToRgb = o, Re.hslToRgb = d, Re.lighten = R, Re.private_safeAlpha = f, Re.private_safeColorChannel = void 0, Re.private_safeDarken = C, Re.private_safeEmphasize = _, Re.private_safeLighten = w, Re.recomposeColor = u, Re.rgbToHex = p;
|
|
5824
5835
|
var t = e($f), n = e(Pf);
|
|
5825
|
-
function r(y,
|
|
5826
|
-
return process.env.NODE_ENV !== "production" && (y <
|
|
5836
|
+
function r(y, T = 0, S = 1) {
|
|
5837
|
+
return process.env.NODE_ENV !== "production" && (y < T || y > S) && console.error(`MUI: The value provided ${y} is out of range [${T}, ${S}].`), (0, n.default)(y, T, S);
|
|
5827
5838
|
}
|
|
5828
5839
|
function o(y) {
|
|
5829
5840
|
y = y.slice(1);
|
|
5830
|
-
const
|
|
5831
|
-
let S = y.match(
|
|
5832
|
-
return S && S[0].length === 1 && (S = S.map(($) => $ + $)), S ? `rgb${S.length === 4 ? "a" : ""}(${S.map(($,
|
|
5841
|
+
const T = new RegExp(`.{1,${y.length >= 6 ? 2 : 1}}`, "g");
|
|
5842
|
+
let S = y.match(T);
|
|
5843
|
+
return S && S[0].length === 1 && (S = S.map(($) => $ + $)), S ? `rgb${S.length === 4 ? "a" : ""}(${S.map(($, N) => N < 3 ? parseInt($, 16) : Math.round(parseInt($, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
5833
5844
|
}
|
|
5834
5845
|
function i(y) {
|
|
5835
|
-
const
|
|
5836
|
-
return
|
|
5846
|
+
const T = y.toString(16);
|
|
5847
|
+
return T.length === 1 ? `0${T}` : T;
|
|
5837
5848
|
}
|
|
5838
5849
|
function s(y) {
|
|
5839
5850
|
if (y.type)
|
|
5840
5851
|
return y;
|
|
5841
5852
|
if (y.charAt(0) === "#")
|
|
5842
5853
|
return s(o(y));
|
|
5843
|
-
const
|
|
5854
|
+
const T = y.indexOf("("), S = y.substring(0, T);
|
|
5844
5855
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(S) === -1)
|
|
5845
5856
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${y}\` color.
|
|
5846
5857
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, t.default)(9, y));
|
|
5847
|
-
let $ = y.substring(
|
|
5858
|
+
let $ = y.substring(T + 1, y.length - 1), N;
|
|
5848
5859
|
if (S === "color") {
|
|
5849
|
-
if ($ = $.split(" "),
|
|
5850
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${
|
|
5851
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, t.default)(10,
|
|
5860
|
+
if ($ = $.split(" "), N = $.shift(), $.length === 4 && $[3].charAt(0) === "/" && ($[3] = $[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(N) === -1)
|
|
5861
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${N}\` color space.
|
|
5862
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, t.default)(10, N));
|
|
5852
5863
|
} else
|
|
5853
5864
|
$ = $.split(",");
|
|
5854
|
-
return $ = $.map((
|
|
5865
|
+
return $ = $.map((X) => parseFloat(X)), {
|
|
5855
5866
|
type: S,
|
|
5856
5867
|
values: $,
|
|
5857
|
-
colorSpace:
|
|
5868
|
+
colorSpace: N
|
|
5858
5869
|
};
|
|
5859
5870
|
}
|
|
5860
5871
|
const l = (y) => {
|
|
5861
|
-
const
|
|
5862
|
-
return
|
|
5872
|
+
const T = s(y);
|
|
5873
|
+
return T.values.slice(0, 3).map((S, $) => T.type.indexOf("hsl") !== -1 && $ !== 0 ? `${S}%` : S).join(" ");
|
|
5863
5874
|
};
|
|
5864
5875
|
Re.colorChannel = l;
|
|
5865
|
-
const c = (y,
|
|
5876
|
+
const c = (y, T) => {
|
|
5866
5877
|
try {
|
|
5867
5878
|
return l(y);
|
|
5868
5879
|
} catch {
|
|
5869
|
-
return
|
|
5880
|
+
return T && process.env.NODE_ENV !== "production" && console.warn(T), y;
|
|
5870
5881
|
}
|
|
5871
5882
|
};
|
|
5872
5883
|
Re.private_safeColorChannel = c;
|
|
5873
5884
|
function u(y) {
|
|
5874
5885
|
const {
|
|
5875
|
-
type:
|
|
5886
|
+
type: T,
|
|
5876
5887
|
colorSpace: S
|
|
5877
5888
|
} = y;
|
|
5878
5889
|
let {
|
|
5879
5890
|
values: $
|
|
5880
5891
|
} = y;
|
|
5881
|
-
return
|
|
5892
|
+
return T.indexOf("rgb") !== -1 ? $ = $.map((N, X) => X < 3 ? parseInt(N, 10) : N) : T.indexOf("hsl") !== -1 && ($[1] = `${$[1]}%`, $[2] = `${$[2]}%`), T.indexOf("color") !== -1 ? $ = `${S} ${$.join(" ")}` : $ = `${$.join(", ")}`, `${T}(${$})`;
|
|
5882
5893
|
}
|
|
5883
5894
|
function p(y) {
|
|
5884
5895
|
if (y.indexOf("#") === 0)
|
|
5885
5896
|
return y;
|
|
5886
5897
|
const {
|
|
5887
|
-
values:
|
|
5898
|
+
values: T
|
|
5888
5899
|
} = s(y);
|
|
5889
|
-
return `#${
|
|
5900
|
+
return `#${T.map((S, $) => i($ === 3 ? Math.round(255 * S) : S)).join("")}`;
|
|
5890
5901
|
}
|
|
5891
|
-
function
|
|
5902
|
+
function d(y) {
|
|
5892
5903
|
y = s(y);
|
|
5893
5904
|
const {
|
|
5894
|
-
values:
|
|
5895
|
-
} = y, S =
|
|
5896
|
-
let
|
|
5897
|
-
const
|
|
5898
|
-
return y.type === "hsla" && (
|
|
5899
|
-
type:
|
|
5900
|
-
values:
|
|
5905
|
+
values: T
|
|
5906
|
+
} = y, S = T[0], $ = T[1] / 100, N = T[2] / 100, X = $ * Math.min(N, 1 - N), B = (ie, re = (ie + S / 30) % 12) => N - X * Math.max(Math.min(re - 3, 9 - re, 1), -1);
|
|
5907
|
+
let Y = "rgb";
|
|
5908
|
+
const V = [Math.round(B(0) * 255), Math.round(B(8) * 255), Math.round(B(4) * 255)];
|
|
5909
|
+
return y.type === "hsla" && (Y += "a", V.push(T[3])), u({
|
|
5910
|
+
type: Y,
|
|
5911
|
+
values: V
|
|
5901
5912
|
});
|
|
5902
5913
|
}
|
|
5903
5914
|
function h(y) {
|
|
5904
5915
|
y = s(y);
|
|
5905
|
-
let
|
|
5906
|
-
return
|
|
5916
|
+
let T = y.type === "hsl" || y.type === "hsla" ? s(d(y)).values : y.values;
|
|
5917
|
+
return T = T.map((S) => (y.type !== "color" && (S /= 255), S <= 0.03928 ? S / 12.92 : ((S + 0.055) / 1.055) ** 2.4)), Number((0.2126 * T[0] + 0.7152 * T[1] + 0.0722 * T[2]).toFixed(3));
|
|
5907
5918
|
}
|
|
5908
|
-
function v(y,
|
|
5909
|
-
const S = h(y), $ = h(
|
|
5919
|
+
function v(y, T) {
|
|
5920
|
+
const S = h(y), $ = h(T);
|
|
5910
5921
|
return (Math.max(S, $) + 0.05) / (Math.min(S, $) + 0.05);
|
|
5911
5922
|
}
|
|
5912
|
-
function b(y,
|
|
5913
|
-
return y = s(y),
|
|
5923
|
+
function b(y, T) {
|
|
5924
|
+
return y = s(y), T = r(T), (y.type === "rgb" || y.type === "hsl") && (y.type += "a"), y.type === "color" ? y.values[3] = `/${T}` : y.values[3] = T, u(y);
|
|
5914
5925
|
}
|
|
5915
|
-
function
|
|
5926
|
+
function f(y, T, S) {
|
|
5916
5927
|
try {
|
|
5917
|
-
return b(y,
|
|
5928
|
+
return b(y, T);
|
|
5918
5929
|
} catch {
|
|
5919
5930
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5920
5931
|
}
|
|
5921
5932
|
}
|
|
5922
|
-
function x(y,
|
|
5923
|
-
if (y = s(y),
|
|
5924
|
-
y.values[2] *= 1 -
|
|
5933
|
+
function x(y, T) {
|
|
5934
|
+
if (y = s(y), T = r(T), y.type.indexOf("hsl") !== -1)
|
|
5935
|
+
y.values[2] *= 1 - T;
|
|
5925
5936
|
else if (y.type.indexOf("rgb") !== -1 || y.type.indexOf("color") !== -1)
|
|
5926
5937
|
for (let S = 0; S < 3; S += 1)
|
|
5927
|
-
y.values[S] *= 1 -
|
|
5938
|
+
y.values[S] *= 1 - T;
|
|
5928
5939
|
return u(y);
|
|
5929
5940
|
}
|
|
5930
|
-
function C(y,
|
|
5941
|
+
function C(y, T, S) {
|
|
5931
5942
|
try {
|
|
5932
|
-
return x(y,
|
|
5943
|
+
return x(y, T);
|
|
5933
5944
|
} catch {
|
|
5934
5945
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5935
5946
|
}
|
|
5936
5947
|
}
|
|
5937
|
-
function
|
|
5938
|
-
if (y = s(y),
|
|
5939
|
-
y.values[2] += (100 - y.values[2]) *
|
|
5948
|
+
function R(y, T) {
|
|
5949
|
+
if (y = s(y), T = r(T), y.type.indexOf("hsl") !== -1)
|
|
5950
|
+
y.values[2] += (100 - y.values[2]) * T;
|
|
5940
5951
|
else if (y.type.indexOf("rgb") !== -1)
|
|
5941
5952
|
for (let S = 0; S < 3; S += 1)
|
|
5942
|
-
y.values[S] += (255 - y.values[S]) *
|
|
5953
|
+
y.values[S] += (255 - y.values[S]) * T;
|
|
5943
5954
|
else if (y.type.indexOf("color") !== -1)
|
|
5944
5955
|
for (let S = 0; S < 3; S += 1)
|
|
5945
|
-
y.values[S] += (1 - y.values[S]) *
|
|
5956
|
+
y.values[S] += (1 - y.values[S]) * T;
|
|
5946
5957
|
return u(y);
|
|
5947
5958
|
}
|
|
5948
|
-
function
|
|
5959
|
+
function w(y, T, S) {
|
|
5949
5960
|
try {
|
|
5950
|
-
return
|
|
5961
|
+
return R(y, T);
|
|
5951
5962
|
} catch {
|
|
5952
5963
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5953
5964
|
}
|
|
5954
5965
|
}
|
|
5955
|
-
function
|
|
5956
|
-
return h(y) > 0.5 ? x(y,
|
|
5966
|
+
function k(y, T = 0.15) {
|
|
5967
|
+
return h(y) > 0.5 ? x(y, T) : R(y, T);
|
|
5957
5968
|
}
|
|
5958
|
-
function _(y,
|
|
5969
|
+
function _(y, T, S) {
|
|
5959
5970
|
try {
|
|
5960
|
-
return
|
|
5971
|
+
return k(y, T);
|
|
5961
5972
|
} catch {
|
|
5962
5973
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5963
5974
|
}
|
|
5964
5975
|
}
|
|
5965
|
-
function D(y,
|
|
5966
|
-
const
|
|
5976
|
+
function D(y, T, S, $ = 1) {
|
|
5977
|
+
const N = (V, ie) => Math.round((V ** (1 / $) * (1 - S) + ie ** (1 / $) * S) ** $), X = s(y), B = s(T), Y = [N(X.values[0], B.values[0]), N(X.values[1], B.values[1]), N(X.values[2], B.values[2])];
|
|
5967
5978
|
return u({
|
|
5968
5979
|
type: "rgb",
|
|
5969
|
-
values:
|
|
5980
|
+
values: Y
|
|
5970
5981
|
});
|
|
5971
5982
|
}
|
|
5972
5983
|
return Re;
|
|
@@ -6021,14 +6032,14 @@ function Df(e) {
|
|
|
6021
6032
|
className: i
|
|
6022
6033
|
} = e;
|
|
6023
6034
|
if (!t) {
|
|
6024
|
-
const v = Pt(n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = z({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style),
|
|
6025
|
-
return v.length > 0 && (
|
|
6026
|
-
props:
|
|
6035
|
+
const v = Pt(n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = z({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), f = z({}, n, o, r);
|
|
6036
|
+
return v.length > 0 && (f.className = v), Object.keys(b).length > 0 && (f.style = b), {
|
|
6037
|
+
props: f,
|
|
6027
6038
|
internalRef: void 0
|
|
6028
6039
|
};
|
|
6029
6040
|
}
|
|
6030
|
-
const s = fr(z({}, o, r)), l = Ri(r), c = Ri(o), u = t(s), p = Pt(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className),
|
|
6031
|
-
return p.length > 0 && (h.className = p), Object.keys(
|
|
6041
|
+
const s = fr(z({}, o, r)), l = Ri(r), c = Ri(o), u = t(s), p = Pt(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), d = z({}, u == null ? void 0 : u.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), h = z({}, u, n, c, l);
|
|
6042
|
+
return p.length > 0 && (h.className = p), Object.keys(d).length > 0 && (h.style = d), {
|
|
6032
6043
|
props: h,
|
|
6033
6044
|
internalRef: u.ref
|
|
6034
6045
|
};
|
|
@@ -6096,29 +6107,29 @@ var $i;
|
|
|
6096
6107
|
function Uf() {
|
|
6097
6108
|
if ($i) return xe;
|
|
6098
6109
|
$i = 1;
|
|
6099
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
6100
|
-
function b(
|
|
6101
|
-
if (typeof
|
|
6102
|
-
var x =
|
|
6110
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), h = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
6111
|
+
function b(f) {
|
|
6112
|
+
if (typeof f == "object" && f !== null) {
|
|
6113
|
+
var x = f.$$typeof;
|
|
6103
6114
|
switch (x) {
|
|
6104
6115
|
case e:
|
|
6105
|
-
switch (
|
|
6116
|
+
switch (f = f.type, f) {
|
|
6106
6117
|
case n:
|
|
6107
6118
|
case o:
|
|
6108
6119
|
case r:
|
|
6109
6120
|
case c:
|
|
6110
6121
|
case u:
|
|
6111
6122
|
case h:
|
|
6112
|
-
return
|
|
6123
|
+
return f;
|
|
6113
6124
|
default:
|
|
6114
|
-
switch (
|
|
6125
|
+
switch (f = f && f.$$typeof, f) {
|
|
6115
6126
|
case s:
|
|
6116
6127
|
case l:
|
|
6117
|
-
case
|
|
6128
|
+
case d:
|
|
6118
6129
|
case p:
|
|
6119
|
-
return
|
|
6130
|
+
return f;
|
|
6120
6131
|
case i:
|
|
6121
|
-
return
|
|
6132
|
+
return f;
|
|
6122
6133
|
default:
|
|
6123
6134
|
return x;
|
|
6124
6135
|
}
|
|
@@ -6128,32 +6139,32 @@ function Uf() {
|
|
|
6128
6139
|
}
|
|
6129
6140
|
}
|
|
6130
6141
|
}
|
|
6131
|
-
return xe.ContextConsumer = i, xe.ContextProvider = s, xe.Element = e, xe.ForwardRef = l, xe.Fragment = n, xe.Lazy =
|
|
6132
|
-
return b(
|
|
6133
|
-
}, xe.isContextProvider = function(
|
|
6134
|
-
return b(
|
|
6135
|
-
}, xe.isElement = function(
|
|
6136
|
-
return typeof
|
|
6137
|
-
}, xe.isForwardRef = function(
|
|
6138
|
-
return b(
|
|
6139
|
-
}, xe.isFragment = function(
|
|
6140
|
-
return b(
|
|
6141
|
-
}, xe.isLazy = function(
|
|
6142
|
-
return b(
|
|
6143
|
-
}, xe.isMemo = function(
|
|
6144
|
-
return b(
|
|
6145
|
-
}, xe.isPortal = function(
|
|
6146
|
-
return b(
|
|
6147
|
-
}, xe.isProfiler = function(
|
|
6148
|
-
return b(
|
|
6149
|
-
}, xe.isStrictMode = function(
|
|
6150
|
-
return b(
|
|
6151
|
-
}, xe.isSuspense = function(
|
|
6152
|
-
return b(
|
|
6153
|
-
}, xe.isSuspenseList = function(
|
|
6154
|
-
return b(
|
|
6155
|
-
}, xe.isValidElementType = function(
|
|
6156
|
-
return typeof
|
|
6142
|
+
return xe.ContextConsumer = i, xe.ContextProvider = s, xe.Element = e, xe.ForwardRef = l, xe.Fragment = n, xe.Lazy = d, xe.Memo = p, xe.Portal = t, xe.Profiler = o, xe.StrictMode = r, xe.Suspense = c, xe.SuspenseList = u, xe.isContextConsumer = function(f) {
|
|
6143
|
+
return b(f) === i;
|
|
6144
|
+
}, xe.isContextProvider = function(f) {
|
|
6145
|
+
return b(f) === s;
|
|
6146
|
+
}, xe.isElement = function(f) {
|
|
6147
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
6148
|
+
}, xe.isForwardRef = function(f) {
|
|
6149
|
+
return b(f) === l;
|
|
6150
|
+
}, xe.isFragment = function(f) {
|
|
6151
|
+
return b(f) === n;
|
|
6152
|
+
}, xe.isLazy = function(f) {
|
|
6153
|
+
return b(f) === d;
|
|
6154
|
+
}, xe.isMemo = function(f) {
|
|
6155
|
+
return b(f) === p;
|
|
6156
|
+
}, xe.isPortal = function(f) {
|
|
6157
|
+
return b(f) === t;
|
|
6158
|
+
}, xe.isProfiler = function(f) {
|
|
6159
|
+
return b(f) === o;
|
|
6160
|
+
}, xe.isStrictMode = function(f) {
|
|
6161
|
+
return b(f) === r;
|
|
6162
|
+
}, xe.isSuspense = function(f) {
|
|
6163
|
+
return b(f) === c;
|
|
6164
|
+
}, xe.isSuspenseList = function(f) {
|
|
6165
|
+
return b(f) === u;
|
|
6166
|
+
}, xe.isValidElementType = function(f) {
|
|
6167
|
+
return typeof f == "string" || typeof f == "function" || f === n || f === o || f === r || f === c || f === u || typeof f == "object" && f !== null && (f.$$typeof === d || f.$$typeof === p || f.$$typeof === s || f.$$typeof === i || f.$$typeof === l || f.$$typeof === v || f.getModuleId !== void 0);
|
|
6157
6168
|
}, xe.typeOf = b, xe;
|
|
6158
6169
|
}
|
|
6159
6170
|
var Ce = {};
|
|
@@ -6169,28 +6180,28 @@ var Ce = {};
|
|
|
6169
6180
|
var ji;
|
|
6170
6181
|
function Vf() {
|
|
6171
6182
|
return ji || (ji = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6172
|
-
function e(
|
|
6173
|
-
if (typeof
|
|
6174
|
-
var x =
|
|
6183
|
+
function e(f) {
|
|
6184
|
+
if (typeof f == "object" && f !== null) {
|
|
6185
|
+
var x = f.$$typeof;
|
|
6175
6186
|
switch (x) {
|
|
6176
6187
|
case t:
|
|
6177
|
-
switch (
|
|
6188
|
+
switch (f = f.type, f) {
|
|
6178
6189
|
case r:
|
|
6179
6190
|
case i:
|
|
6180
6191
|
case o:
|
|
6181
6192
|
case u:
|
|
6182
6193
|
case p:
|
|
6183
6194
|
case v:
|
|
6184
|
-
return
|
|
6195
|
+
return f;
|
|
6185
6196
|
default:
|
|
6186
|
-
switch (
|
|
6197
|
+
switch (f = f && f.$$typeof, f) {
|
|
6187
6198
|
case l:
|
|
6188
6199
|
case c:
|
|
6189
6200
|
case h:
|
|
6190
|
-
case
|
|
6191
|
-
return
|
|
6201
|
+
case d:
|
|
6202
|
+
return f;
|
|
6192
6203
|
case s:
|
|
6193
|
-
return
|
|
6204
|
+
return f;
|
|
6194
6205
|
default:
|
|
6195
6206
|
return x;
|
|
6196
6207
|
}
|
|
@@ -6200,33 +6211,33 @@ function Vf() {
|
|
|
6200
6211
|
}
|
|
6201
6212
|
}
|
|
6202
6213
|
}
|
|
6203
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"),
|
|
6204
|
-
Ce.ContextConsumer = s, Ce.ContextProvider = l, Ce.Element = t, Ce.ForwardRef = c, Ce.Fragment = r, Ce.Lazy = h, Ce.Memo =
|
|
6205
|
-
return e(
|
|
6206
|
-
}, Ce.isContextProvider = function(
|
|
6207
|
-
return e(
|
|
6208
|
-
}, Ce.isElement = function(
|
|
6209
|
-
return typeof
|
|
6210
|
-
}, Ce.isForwardRef = function(
|
|
6211
|
-
return e(
|
|
6212
|
-
}, Ce.isFragment = function(
|
|
6213
|
-
return e(
|
|
6214
|
-
}, Ce.isLazy = function(
|
|
6215
|
-
return e(
|
|
6216
|
-
}, Ce.isMemo = function(
|
|
6217
|
-
return e(
|
|
6218
|
-
}, Ce.isPortal = function(
|
|
6219
|
-
return e(
|
|
6220
|
-
}, Ce.isProfiler = function(
|
|
6221
|
-
return e(
|
|
6222
|
-
}, Ce.isStrictMode = function(
|
|
6223
|
-
return e(
|
|
6224
|
-
}, Ce.isSuspense = function(
|
|
6225
|
-
return e(
|
|
6226
|
-
}, Ce.isSuspenseList = function(
|
|
6227
|
-
return e(
|
|
6228
|
-
}, Ce.isValidElementType = function(
|
|
6229
|
-
return typeof
|
|
6214
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
|
|
6215
|
+
Ce.ContextConsumer = s, Ce.ContextProvider = l, Ce.Element = t, Ce.ForwardRef = c, Ce.Fragment = r, Ce.Lazy = h, Ce.Memo = d, Ce.Portal = n, Ce.Profiler = i, Ce.StrictMode = o, Ce.Suspense = u, Ce.SuspenseList = p, Ce.isContextConsumer = function(f) {
|
|
6216
|
+
return e(f) === s;
|
|
6217
|
+
}, Ce.isContextProvider = function(f) {
|
|
6218
|
+
return e(f) === l;
|
|
6219
|
+
}, Ce.isElement = function(f) {
|
|
6220
|
+
return typeof f == "object" && f !== null && f.$$typeof === t;
|
|
6221
|
+
}, Ce.isForwardRef = function(f) {
|
|
6222
|
+
return e(f) === c;
|
|
6223
|
+
}, Ce.isFragment = function(f) {
|
|
6224
|
+
return e(f) === r;
|
|
6225
|
+
}, Ce.isLazy = function(f) {
|
|
6226
|
+
return e(f) === h;
|
|
6227
|
+
}, Ce.isMemo = function(f) {
|
|
6228
|
+
return e(f) === d;
|
|
6229
|
+
}, Ce.isPortal = function(f) {
|
|
6230
|
+
return e(f) === n;
|
|
6231
|
+
}, Ce.isProfiler = function(f) {
|
|
6232
|
+
return e(f) === i;
|
|
6233
|
+
}, Ce.isStrictMode = function(f) {
|
|
6234
|
+
return e(f) === o;
|
|
6235
|
+
}, Ce.isSuspense = function(f) {
|
|
6236
|
+
return e(f) === u;
|
|
6237
|
+
}, Ce.isSuspenseList = function(f) {
|
|
6238
|
+
return e(f) === p;
|
|
6239
|
+
}, Ce.isValidElementType = function(f) {
|
|
6240
|
+
return typeof f == "string" || typeof f == "function" || f === r || f === i || f === o || f === u || f === p || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === d || f.$$typeof === l || f.$$typeof === s || f.$$typeof === c || f.$$typeof === b || f.getModuleId !== void 0);
|
|
6230
6241
|
}, Ce.typeOf = e;
|
|
6231
6242
|
}()), Ce;
|
|
6232
6243
|
}
|
|
@@ -6583,19 +6594,19 @@ function gd(e) {
|
|
|
6583
6594
|
min: c = 0,
|
|
6584
6595
|
name: u,
|
|
6585
6596
|
onChange: p,
|
|
6586
|
-
onChangeCommitted:
|
|
6597
|
+
onChangeCommitted: d,
|
|
6587
6598
|
orientation: h = "horizontal",
|
|
6588
6599
|
rootRef: v,
|
|
6589
6600
|
scale: b = md,
|
|
6590
|
-
step:
|
|
6601
|
+
step: f = 1,
|
|
6591
6602
|
shiftStep: x = 10,
|
|
6592
6603
|
tabIndex: C,
|
|
6593
|
-
value:
|
|
6594
|
-
} = e,
|
|
6595
|
-
controlled:
|
|
6604
|
+
value: R
|
|
6605
|
+
} = e, w = J.useRef(void 0), [k, _] = J.useState(-1), [D, y] = J.useState(-1), [T, S] = J.useState(!1), $ = J.useRef(0), [N, X] = Zf({
|
|
6606
|
+
controlled: R,
|
|
6596
6607
|
default: n ?? c,
|
|
6597
6608
|
name: "Slider"
|
|
6598
|
-
}), B = p && ((P, I,
|
|
6609
|
+
}), B = p && ((P, I, W) => {
|
|
6599
6610
|
const de = P.nativeEvent || P, pe = new de.constructor(de.type, de);
|
|
6600
6611
|
Object.defineProperty(pe, "target", {
|
|
6601
6612
|
writable: !0,
|
|
@@ -6603,95 +6614,95 @@ function gd(e) {
|
|
|
6603
6614
|
value: I,
|
|
6604
6615
|
name: u
|
|
6605
6616
|
}
|
|
6606
|
-
}), p(pe, I,
|
|
6607
|
-
}),
|
|
6608
|
-
let
|
|
6609
|
-
|
|
6610
|
-
const
|
|
6611
|
-
value: c +
|
|
6612
|
-
})) : s || [],
|
|
6617
|
+
}), p(pe, I, W);
|
|
6618
|
+
}), Y = Array.isArray(N);
|
|
6619
|
+
let V = Y ? N.slice().sort(Vs) : [N];
|
|
6620
|
+
V = V.map((P) => P == null ? c : un(P, c, l));
|
|
6621
|
+
const ie = s === !0 && f !== null ? [...Array(Math.floor((l - c) / f) + 1)].map((P, I) => ({
|
|
6622
|
+
value: c + f * I
|
|
6623
|
+
})) : s || [], re = ie.map((P) => P.value), {
|
|
6613
6624
|
isFocusVisibleRef: Ee,
|
|
6614
6625
|
onBlur: je,
|
|
6615
6626
|
onFocus: O,
|
|
6616
6627
|
ref: A
|
|
6617
|
-
} = rd(), [
|
|
6618
|
-
var
|
|
6628
|
+
} = rd(), [Q, q] = J.useState(-1), F = J.useRef(null), ee = go(A, F), K = go(v, ee), H = (P) => (I) => {
|
|
6629
|
+
var W;
|
|
6619
6630
|
const de = Number(I.currentTarget.getAttribute("data-index"));
|
|
6620
|
-
O(I), Ee.current === !0 &&
|
|
6631
|
+
O(I), Ee.current === !0 && q(de), y(de), P == null || (W = P.onFocus) == null || W.call(P, I);
|
|
6621
6632
|
}, U = (P) => (I) => {
|
|
6622
|
-
var
|
|
6623
|
-
je(I), Ee.current === !1 &&
|
|
6633
|
+
var W;
|
|
6634
|
+
je(I), Ee.current === !1 && q(-1), y(-1), P == null || (W = P.onBlur) == null || W.call(P, I);
|
|
6624
6635
|
}, Z = (P, I) => {
|
|
6625
|
-
const
|
|
6636
|
+
const W = Number(P.currentTarget.getAttribute("data-index")), de = V[W], pe = re.indexOf(de);
|
|
6626
6637
|
let fe = I;
|
|
6627
|
-
if (
|
|
6628
|
-
const tt =
|
|
6629
|
-
fe > tt ? fe = tt : fe <
|
|
6638
|
+
if (ie && f == null) {
|
|
6639
|
+
const tt = re[re.length - 1];
|
|
6640
|
+
fe > tt ? fe = tt : fe < re[0] ? fe = re[0] : fe = fe < de ? re[pe - 1] : re[pe + 1];
|
|
6630
6641
|
}
|
|
6631
|
-
if (fe = un(fe, c, l),
|
|
6632
|
-
o && (fe = un(fe,
|
|
6642
|
+
if (fe = un(fe, c, l), Y) {
|
|
6643
|
+
o && (fe = un(fe, V[W - 1] || -1 / 0, V[W + 1] || 1 / 0));
|
|
6633
6644
|
const tt = fe;
|
|
6634
6645
|
fe = Ii({
|
|
6635
|
-
values:
|
|
6646
|
+
values: V,
|
|
6636
6647
|
newValue: fe,
|
|
6637
|
-
index:
|
|
6648
|
+
index: W
|
|
6638
6649
|
});
|
|
6639
|
-
let at =
|
|
6650
|
+
let at = W;
|
|
6640
6651
|
o || (at = fe.indexOf(tt)), ir({
|
|
6641
6652
|
sliderRef: F,
|
|
6642
6653
|
activeIndex: at
|
|
6643
6654
|
});
|
|
6644
6655
|
}
|
|
6645
|
-
|
|
6646
|
-
},
|
|
6647
|
-
var
|
|
6648
|
-
if (
|
|
6649
|
-
const de = Number(I.currentTarget.getAttribute("data-index")), pe =
|
|
6656
|
+
X(fe), q(W), B && !sr(fe, N) && B(P, fe, W), d && d(P, fe);
|
|
6657
|
+
}, ne = (P) => (I) => {
|
|
6658
|
+
var W;
|
|
6659
|
+
if (f !== null) {
|
|
6660
|
+
const de = Number(I.currentTarget.getAttribute("data-index")), pe = V[de];
|
|
6650
6661
|
let fe = null;
|
|
6651
6662
|
(I.key === "ArrowLeft" || I.key === "ArrowDown") && I.shiftKey || I.key === "PageDown" ? fe = Math.max(pe - x, c) : ((I.key === "ArrowRight" || I.key === "ArrowUp") && I.shiftKey || I.key === "PageUp") && (fe = Math.min(pe + x, l)), fe !== null && (Z(I, fe), I.preventDefault());
|
|
6652
6663
|
}
|
|
6653
|
-
P == null || (
|
|
6664
|
+
P == null || (W = P.onKeyDown) == null || W.call(P, I);
|
|
6654
6665
|
};
|
|
6655
6666
|
Us(() => {
|
|
6656
6667
|
if (r && F.current.contains(document.activeElement)) {
|
|
6657
6668
|
var P;
|
|
6658
6669
|
(P = document.activeElement) == null || P.blur();
|
|
6659
6670
|
}
|
|
6660
|
-
}, [r]), r &&
|
|
6671
|
+
}, [r]), r && k !== -1 && _(-1), r && Q !== -1 && q(-1);
|
|
6661
6672
|
const be = (P) => (I) => {
|
|
6662
|
-
var
|
|
6663
|
-
(
|
|
6673
|
+
var W;
|
|
6674
|
+
(W = P.onChange) == null || W.call(P, I), Z(I, I.target.valueAsNumber);
|
|
6664
6675
|
}, j = J.useRef(void 0);
|
|
6665
6676
|
let _e = h;
|
|
6666
6677
|
i && h === "horizontal" && (_e += "-reverse");
|
|
6667
|
-
const
|
|
6678
|
+
const ae = ({
|
|
6668
6679
|
finger: P,
|
|
6669
6680
|
move: I = !1
|
|
6670
6681
|
}) => {
|
|
6671
6682
|
const {
|
|
6672
|
-
current:
|
|
6683
|
+
current: W
|
|
6673
6684
|
} = F, {
|
|
6674
6685
|
width: de,
|
|
6675
6686
|
height: pe,
|
|
6676
6687
|
bottom: fe,
|
|
6677
6688
|
left: tt
|
|
6678
|
-
} =
|
|
6689
|
+
} = W.getBoundingClientRect();
|
|
6679
6690
|
let at;
|
|
6680
6691
|
_e.indexOf("vertical") === 0 ? at = (fe - P.y) / pe : at = (P.x - tt) / de, _e.indexOf("-reverse") !== -1 && (at = 1 - at);
|
|
6681
6692
|
let he;
|
|
6682
|
-
if (he = fd(at, c, l),
|
|
6683
|
-
he = pd(he,
|
|
6693
|
+
if (he = fd(at, c, l), f)
|
|
6694
|
+
he = pd(he, f, c);
|
|
6684
6695
|
else {
|
|
6685
|
-
const yt = Ni(
|
|
6686
|
-
he =
|
|
6696
|
+
const yt = Ni(re, he);
|
|
6697
|
+
he = re[yt];
|
|
6687
6698
|
}
|
|
6688
6699
|
he = un(he, c, l);
|
|
6689
6700
|
let Je = 0;
|
|
6690
|
-
if (
|
|
6691
|
-
I ? Je = j.current : Je = Ni(
|
|
6701
|
+
if (Y) {
|
|
6702
|
+
I ? Je = j.current : Je = Ni(V, he), o && (he = un(he, V[Je - 1] || -1 / 0, V[Je + 1] || 1 / 0));
|
|
6692
6703
|
const yt = he;
|
|
6693
6704
|
he = Ii({
|
|
6694
|
-
values:
|
|
6705
|
+
values: V,
|
|
6695
6706
|
newValue: he,
|
|
6696
6707
|
index: Je
|
|
6697
6708
|
}), o && I || (Je = he.indexOf(yt), j.current = Je);
|
|
@@ -6700,8 +6711,8 @@ function gd(e) {
|
|
|
6700
6711
|
newValue: he,
|
|
6701
6712
|
activeIndex: Je
|
|
6702
6713
|
};
|
|
6703
|
-
},
|
|
6704
|
-
const I = or(P,
|
|
6714
|
+
}, le = ro((P) => {
|
|
6715
|
+
const I = or(P, w);
|
|
6705
6716
|
if (!I)
|
|
6706
6717
|
return;
|
|
6707
6718
|
if ($.current += 1, P.type === "mousemove" && P.buttons === 0) {
|
|
@@ -6709,9 +6720,9 @@ function gd(e) {
|
|
|
6709
6720
|
return;
|
|
6710
6721
|
}
|
|
6711
6722
|
const {
|
|
6712
|
-
newValue:
|
|
6723
|
+
newValue: W,
|
|
6713
6724
|
activeIndex: de
|
|
6714
|
-
} =
|
|
6725
|
+
} = ae({
|
|
6715
6726
|
finger: I,
|
|
6716
6727
|
move: !0
|
|
6717
6728
|
});
|
|
@@ -6719,49 +6730,49 @@ function gd(e) {
|
|
|
6719
6730
|
sliderRef: F,
|
|
6720
6731
|
activeIndex: de,
|
|
6721
6732
|
setActive: _
|
|
6722
|
-
}), W
|
|
6733
|
+
}), X(W), !T && $.current > ud && S(!0), B && !sr(W, N) && B(P, W, de);
|
|
6723
6734
|
}), Oe = ro((P) => {
|
|
6724
|
-
const I = or(P,
|
|
6735
|
+
const I = or(P, w);
|
|
6725
6736
|
if (S(!1), !I)
|
|
6726
6737
|
return;
|
|
6727
6738
|
const {
|
|
6728
|
-
newValue:
|
|
6729
|
-
} =
|
|
6739
|
+
newValue: W
|
|
6740
|
+
} = ae({
|
|
6730
6741
|
finger: I,
|
|
6731
6742
|
move: !0
|
|
6732
6743
|
});
|
|
6733
|
-
_(-1), P.type === "touchend" && y(-1),
|
|
6744
|
+
_(-1), P.type === "touchend" && y(-1), d && d(P, W), w.current = void 0, Ke();
|
|
6734
6745
|
}), He = ro((P) => {
|
|
6735
6746
|
if (r)
|
|
6736
6747
|
return;
|
|
6737
6748
|
Di() || P.preventDefault();
|
|
6738
6749
|
const I = P.changedTouches[0];
|
|
6739
|
-
I != null && (
|
|
6740
|
-
const
|
|
6741
|
-
if (
|
|
6750
|
+
I != null && (w.current = I.identifier);
|
|
6751
|
+
const W = or(P, w);
|
|
6752
|
+
if (W !== !1) {
|
|
6742
6753
|
const {
|
|
6743
6754
|
newValue: pe,
|
|
6744
6755
|
activeIndex: fe
|
|
6745
|
-
} =
|
|
6746
|
-
finger:
|
|
6756
|
+
} = ae({
|
|
6757
|
+
finger: W
|
|
6747
6758
|
});
|
|
6748
6759
|
ir({
|
|
6749
6760
|
sliderRef: F,
|
|
6750
6761
|
activeIndex: fe,
|
|
6751
6762
|
setActive: _
|
|
6752
|
-
}),
|
|
6763
|
+
}), X(pe), B && !sr(pe, N) && B(P, pe, fe);
|
|
6753
6764
|
}
|
|
6754
6765
|
$.current = 0;
|
|
6755
6766
|
const de = dr(F.current);
|
|
6756
|
-
de.addEventListener("touchmove",
|
|
6767
|
+
de.addEventListener("touchmove", le, {
|
|
6757
6768
|
passive: !0
|
|
6758
6769
|
}), de.addEventListener("touchend", Oe, {
|
|
6759
6770
|
passive: !0
|
|
6760
6771
|
});
|
|
6761
6772
|
}), Ke = J.useCallback(() => {
|
|
6762
6773
|
const P = dr(F.current);
|
|
6763
|
-
P.removeEventListener("mousemove",
|
|
6764
|
-
}, [Oe,
|
|
6774
|
+
P.removeEventListener("mousemove", le), P.removeEventListener("mouseup", Oe), P.removeEventListener("touchmove", le), P.removeEventListener("touchend", Oe);
|
|
6775
|
+
}, [Oe, le]);
|
|
6765
6776
|
J.useEffect(() => {
|
|
6766
6777
|
const {
|
|
6767
6778
|
current: P
|
|
@@ -6775,59 +6786,59 @@ function gd(e) {
|
|
|
6775
6786
|
r && Ke();
|
|
6776
6787
|
}, [r, Ke]);
|
|
6777
6788
|
const gt = (P) => (I) => {
|
|
6778
|
-
var
|
|
6779
|
-
if ((
|
|
6789
|
+
var W;
|
|
6790
|
+
if ((W = P.onMouseDown) == null || W.call(P, I), r || I.defaultPrevented || I.button !== 0)
|
|
6780
6791
|
return;
|
|
6781
6792
|
I.preventDefault();
|
|
6782
|
-
const de = or(I,
|
|
6793
|
+
const de = or(I, w);
|
|
6783
6794
|
if (de !== !1) {
|
|
6784
6795
|
const {
|
|
6785
6796
|
newValue: fe,
|
|
6786
6797
|
activeIndex: tt
|
|
6787
|
-
} =
|
|
6798
|
+
} = ae({
|
|
6788
6799
|
finger: de
|
|
6789
6800
|
});
|
|
6790
6801
|
ir({
|
|
6791
6802
|
sliderRef: F,
|
|
6792
6803
|
activeIndex: tt,
|
|
6793
6804
|
setActive: _
|
|
6794
|
-
}),
|
|
6805
|
+
}), X(fe), B && !sr(fe, N) && B(I, fe, tt);
|
|
6795
6806
|
}
|
|
6796
6807
|
$.current = 0;
|
|
6797
6808
|
const pe = dr(F.current);
|
|
6798
|
-
pe.addEventListener("mousemove",
|
|
6809
|
+
pe.addEventListener("mousemove", le, {
|
|
6799
6810
|
passive: !0
|
|
6800
6811
|
}), pe.addEventListener("mouseup", Oe);
|
|
6801
|
-
}, Fe = vr(
|
|
6802
|
-
const I = fr(P),
|
|
6812
|
+
}, Fe = vr(Y ? V[0] : c, c, l), Et = vr(V[V.length - 1], c, l) - Fe, Nt = (P = {}) => {
|
|
6813
|
+
const I = fr(P), W = {
|
|
6803
6814
|
onMouseDown: gt(I || {})
|
|
6804
|
-
}, de = z({}, I,
|
|
6815
|
+
}, de = z({}, I, W);
|
|
6805
6816
|
return z({}, P, {
|
|
6806
|
-
ref:
|
|
6817
|
+
ref: K
|
|
6807
6818
|
}, de);
|
|
6808
6819
|
}, xn = (P) => (I) => {
|
|
6809
|
-
var
|
|
6810
|
-
(
|
|
6820
|
+
var W;
|
|
6821
|
+
(W = P.onMouseOver) == null || W.call(P, I);
|
|
6811
6822
|
const de = Number(I.currentTarget.getAttribute("data-index"));
|
|
6812
6823
|
y(de);
|
|
6813
6824
|
}, Cn = (P) => (I) => {
|
|
6814
|
-
var
|
|
6815
|
-
(
|
|
6825
|
+
var W;
|
|
6826
|
+
(W = P.onMouseLeave) == null || W.call(P, I), y(-1);
|
|
6816
6827
|
};
|
|
6817
6828
|
return {
|
|
6818
|
-
active:
|
|
6829
|
+
active: k,
|
|
6819
6830
|
axis: _e,
|
|
6820
6831
|
axisProps: hd,
|
|
6821
|
-
dragging:
|
|
6822
|
-
focusedThumbIndex:
|
|
6832
|
+
dragging: T,
|
|
6833
|
+
focusedThumbIndex: Q,
|
|
6823
6834
|
getHiddenInputProps: (P = {}) => {
|
|
6824
6835
|
var I;
|
|
6825
|
-
const
|
|
6826
|
-
onChange: be(
|
|
6827
|
-
onFocus:
|
|
6828
|
-
onBlur: U(
|
|
6829
|
-
onKeyDown:
|
|
6830
|
-
}, pe = z({},
|
|
6836
|
+
const W = fr(P), de = {
|
|
6837
|
+
onChange: be(W || {}),
|
|
6838
|
+
onFocus: H(W || {}),
|
|
6839
|
+
onBlur: U(W || {}),
|
|
6840
|
+
onKeyDown: ne(W || {})
|
|
6841
|
+
}, pe = z({}, W, de);
|
|
6831
6842
|
return z({
|
|
6832
6843
|
tabIndex: C,
|
|
6833
6844
|
"aria-labelledby": t,
|
|
@@ -6851,22 +6862,22 @@ function gd(e) {
|
|
|
6851
6862
|
},
|
|
6852
6863
|
getRootProps: Nt,
|
|
6853
6864
|
getThumbProps: (P = {}) => {
|
|
6854
|
-
const I = fr(P),
|
|
6865
|
+
const I = fr(P), W = {
|
|
6855
6866
|
onMouseOver: xn(I || {}),
|
|
6856
6867
|
onMouseLeave: Cn(I || {})
|
|
6857
6868
|
};
|
|
6858
|
-
return z({}, P, I,
|
|
6869
|
+
return z({}, P, I, W);
|
|
6859
6870
|
},
|
|
6860
|
-
marks:
|
|
6871
|
+
marks: ie,
|
|
6861
6872
|
open: D,
|
|
6862
|
-
range:
|
|
6863
|
-
rootRef:
|
|
6873
|
+
range: Y,
|
|
6874
|
+
rootRef: K,
|
|
6864
6875
|
trackLeap: Et,
|
|
6865
6876
|
trackOffset: Fe,
|
|
6866
|
-
values:
|
|
6877
|
+
values: V,
|
|
6867
6878
|
getThumbStyle: (P) => ({
|
|
6868
6879
|
// So the non active thumb doesn't show its label on hover.
|
|
6869
|
-
pointerEvents:
|
|
6880
|
+
pointerEvents: k !== -1 && k !== P ? "none" : void 0
|
|
6870
6881
|
})
|
|
6871
6882
|
};
|
|
6872
6883
|
}
|
|
@@ -6911,7 +6922,7 @@ function qs(e) {
|
|
|
6911
6922
|
function p(h) {
|
|
6912
6923
|
return s.indexOf(h) + 1 < s.length ? u(h, s[s.indexOf(h) + 1]) : l(h);
|
|
6913
6924
|
}
|
|
6914
|
-
function
|
|
6925
|
+
function d(h) {
|
|
6915
6926
|
const v = s.indexOf(h);
|
|
6916
6927
|
return v === 0 ? l(s[1]) : v === s.length - 1 ? c(s[v]) : u(h, s[s.indexOf(h) + 1]).replace("@media", "@media not all and");
|
|
6917
6928
|
}
|
|
@@ -6922,7 +6933,7 @@ function qs(e) {
|
|
|
6922
6933
|
down: c,
|
|
6923
6934
|
between: u,
|
|
6924
6935
|
only: p,
|
|
6925
|
-
not:
|
|
6936
|
+
not: d,
|
|
6926
6937
|
unit: n
|
|
6927
6938
|
}, o);
|
|
6928
6939
|
}
|
|
@@ -7010,9 +7021,9 @@ function Me(e) {
|
|
|
7010
7021
|
if (s[t] == null)
|
|
7011
7022
|
return null;
|
|
7012
7023
|
const l = s[t], c = s.theme, u = wr(c, r) || {};
|
|
7013
|
-
return St(s, l, (
|
|
7014
|
-
let h = br(u, o,
|
|
7015
|
-
return
|
|
7024
|
+
return St(s, l, (d) => {
|
|
7025
|
+
let h = br(u, o, d);
|
|
7026
|
+
return d === h && typeof d == "string" && (h = br(u, o, `${t}${d === "default" ? "" : mt(d)}`, d)), n === !1 ? h : {
|
|
7016
7027
|
[n]: h
|
|
7017
7028
|
};
|
|
7018
7029
|
});
|
|
@@ -7566,7 +7577,7 @@ function Ks() {
|
|
|
7566
7577
|
cssProperty: c = n,
|
|
7567
7578
|
themeKey: u,
|
|
7568
7579
|
transform: p,
|
|
7569
|
-
style:
|
|
7580
|
+
style: d
|
|
7570
7581
|
} = l;
|
|
7571
7582
|
if (r == null)
|
|
7572
7583
|
return null;
|
|
@@ -7575,10 +7586,10 @@ function Ks() {
|
|
|
7575
7586
|
[n]: r
|
|
7576
7587
|
};
|
|
7577
7588
|
const h = wr(o, u) || {};
|
|
7578
|
-
return
|
|
7579
|
-
let
|
|
7580
|
-
return b ===
|
|
7581
|
-
[c]:
|
|
7589
|
+
return d ? d(s) : St(s, r, (b) => {
|
|
7590
|
+
let f = br(h, p, b);
|
|
7591
|
+
return b === f && typeof b == "string" && (f = br(h, p, `${n}${b === "default" ? "" : mt(b)}`, b)), c === !1 ? f : {
|
|
7592
|
+
[c]: f
|
|
7582
7593
|
};
|
|
7583
7594
|
});
|
|
7584
7595
|
}
|
|
@@ -7599,7 +7610,7 @@ function Ks() {
|
|
|
7599
7610
|
return c;
|
|
7600
7611
|
if (!u)
|
|
7601
7612
|
return null;
|
|
7602
|
-
const p = _d(i.breakpoints),
|
|
7613
|
+
const p = _d(i.breakpoints), d = Object.keys(p);
|
|
7603
7614
|
let h = p;
|
|
7604
7615
|
return Object.keys(u).forEach((v) => {
|
|
7605
7616
|
const b = ap(u[v], i);
|
|
@@ -7608,19 +7619,19 @@ function Ks() {
|
|
|
7608
7619
|
if (s[v])
|
|
7609
7620
|
h = In(h, e(v, b, i, s));
|
|
7610
7621
|
else {
|
|
7611
|
-
const
|
|
7622
|
+
const f = St({
|
|
7612
7623
|
theme: i
|
|
7613
7624
|
}, b, (x) => ({
|
|
7614
7625
|
[v]: x
|
|
7615
7626
|
}));
|
|
7616
|
-
sp(
|
|
7627
|
+
sp(f, b) ? h[v] = t({
|
|
7617
7628
|
sx: b,
|
|
7618
7629
|
theme: i
|
|
7619
|
-
}) : h = In(h,
|
|
7630
|
+
}) : h = In(h, f);
|
|
7620
7631
|
}
|
|
7621
7632
|
else
|
|
7622
7633
|
h = In(h, e(v, b, i, s));
|
|
7623
|
-
}), xd(
|
|
7634
|
+
}), xd(d, h);
|
|
7624
7635
|
}
|
|
7625
7636
|
return Array.isArray(o) ? o.map(l) : l(o);
|
|
7626
7637
|
}
|
|
@@ -7653,9 +7664,9 @@ function Zs(e = {}, ...t) {
|
|
|
7653
7664
|
spacing: c,
|
|
7654
7665
|
shape: z({}, bd, i)
|
|
7655
7666
|
}, s);
|
|
7656
|
-
return u.applyStyles = Ys, u = t.reduce((p,
|
|
7667
|
+
return u.applyStyles = Ys, u = t.reduce((p, d) => _t(p, d), u), u.unstable_sxConfig = z({}, Hn, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(d) {
|
|
7657
7668
|
return Pr({
|
|
7658
|
-
sx:
|
|
7669
|
+
sx: d,
|
|
7659
7670
|
theme: this
|
|
7660
7671
|
});
|
|
7661
7672
|
}, u;
|
|
@@ -7859,19 +7870,19 @@ function Ep(e) {
|
|
|
7859
7870
|
return ta(mr("", null, null, null, [""], e = ea(e), 0, [0], e));
|
|
7860
7871
|
}
|
|
7861
7872
|
function mr(e, t, n, r, o, i, s, l, c) {
|
|
7862
|
-
for (var u = 0, p = 0,
|
|
7863
|
-
switch (b =
|
|
7873
|
+
for (var u = 0, p = 0, d = s, h = 0, v = 0, b = 0, f = 1, x = 1, C = 1, R = 0, w = "", k = o, _ = i, D = r, y = w; x; )
|
|
7874
|
+
switch (b = R, R = st()) {
|
|
7864
7875
|
// (
|
|
7865
7876
|
case 40:
|
|
7866
|
-
if (b != 108 && Ve(y,
|
|
7867
|
-
bo(y += ge(hr(
|
|
7877
|
+
if (b != 108 && Ve(y, d - 1) == 58) {
|
|
7878
|
+
bo(y += ge(hr(R), "&", "&\f"), "&\f") != -1 && (C = -1);
|
|
7868
7879
|
break;
|
|
7869
7880
|
}
|
|
7870
7881
|
// " ' [
|
|
7871
7882
|
case 34:
|
|
7872
7883
|
case 39:
|
|
7873
7884
|
case 91:
|
|
7874
|
-
y += hr(
|
|
7885
|
+
y += hr(R);
|
|
7875
7886
|
break;
|
|
7876
7887
|
// \t \n \r \s
|
|
7877
7888
|
case 9:
|
|
@@ -7896,29 +7907,29 @@ function mr(e, t, n, r, o, i, s, l, c) {
|
|
|
7896
7907
|
}
|
|
7897
7908
|
break;
|
|
7898
7909
|
// {
|
|
7899
|
-
case 123 *
|
|
7910
|
+
case 123 * f:
|
|
7900
7911
|
l[u++] = vt(y) * C;
|
|
7901
7912
|
// } ; \0
|
|
7902
|
-
case 125 *
|
|
7913
|
+
case 125 * f:
|
|
7903
7914
|
case 59:
|
|
7904
7915
|
case 0:
|
|
7905
|
-
switch (
|
|
7916
|
+
switch (R) {
|
|
7906
7917
|
// \0 }
|
|
7907
7918
|
case 0:
|
|
7908
7919
|
case 125:
|
|
7909
7920
|
x = 0;
|
|
7910
7921
|
// ;
|
|
7911
7922
|
case 59 + p:
|
|
7912
|
-
C == -1 && (y = ge(y, /\f/g, "")), v > 0 && vt(y) -
|
|
7923
|
+
C == -1 && (y = ge(y, /\f/g, "")), v > 0 && vt(y) - d && lr(v > 32 ? Ui(y + ";", r, n, d - 1) : Ui(ge(y, " ", "") + ";", r, n, d - 2), c);
|
|
7913
7924
|
break;
|
|
7914
7925
|
// @ ;
|
|
7915
7926
|
case 59:
|
|
7916
7927
|
y += ";";
|
|
7917
7928
|
// { rule/at-rule
|
|
7918
7929
|
default:
|
|
7919
|
-
if (lr(D = Bi(y, t, n, u, p, o, l,
|
|
7930
|
+
if (lr(D = Bi(y, t, n, u, p, o, l, w, k = [], _ = [], d), i), R === 123)
|
|
7920
7931
|
if (p === 0)
|
|
7921
|
-
mr(y, t, D, D,
|
|
7932
|
+
mr(y, t, D, D, k, i, d, l, _);
|
|
7922
7933
|
else
|
|
7923
7934
|
switch (h === 99 && Ve(y, 3) === 110 ? 100 : h) {
|
|
7924
7935
|
// d l m s
|
|
@@ -7926,25 +7937,25 @@ function mr(e, t, n, r, o, i, s, l, c) {
|
|
|
7926
7937
|
case 108:
|
|
7927
7938
|
case 109:
|
|
7928
7939
|
case 115:
|
|
7929
|
-
mr(e, D, D, r && lr(Bi(e, D, D, 0, 0, o, l,
|
|
7940
|
+
mr(e, D, D, r && lr(Bi(e, D, D, 0, 0, o, l, w, o, k = [], d), _), o, _, d, l, r ? k : _);
|
|
7930
7941
|
break;
|
|
7931
7942
|
default:
|
|
7932
7943
|
mr(y, D, D, D, [""], _, 0, l, _);
|
|
7933
7944
|
}
|
|
7934
7945
|
}
|
|
7935
|
-
u = p = v = 0,
|
|
7946
|
+
u = p = v = 0, f = C = 1, w = y = "", d = s;
|
|
7936
7947
|
break;
|
|
7937
7948
|
// :
|
|
7938
7949
|
case 58:
|
|
7939
|
-
|
|
7950
|
+
d = 1 + vt(y), v = b;
|
|
7940
7951
|
default:
|
|
7941
|
-
if (
|
|
7942
|
-
if (
|
|
7943
|
-
--
|
|
7944
|
-
else if (
|
|
7952
|
+
if (f < 1) {
|
|
7953
|
+
if (R == 123)
|
|
7954
|
+
--f;
|
|
7955
|
+
else if (R == 125 && f++ == 0 && xp() == 125)
|
|
7945
7956
|
continue;
|
|
7946
7957
|
}
|
|
7947
|
-
switch (y += Lr(
|
|
7958
|
+
switch (y += Lr(R), R * f) {
|
|
7948
7959
|
// &
|
|
7949
7960
|
case 38:
|
|
7950
7961
|
C = p > 0 ? 1 : (y += "\f", -1);
|
|
@@ -7955,19 +7966,19 @@ function mr(e, t, n, r, o, i, s, l, c) {
|
|
|
7955
7966
|
break;
|
|
7956
7967
|
// @
|
|
7957
7968
|
case 64:
|
|
7958
|
-
xt() === 45 && (y += hr(st())), h = xt(), p =
|
|
7969
|
+
xt() === 45 && (y += hr(st())), h = xt(), p = d = vt(w = y += Tp(pr())), R++;
|
|
7959
7970
|
break;
|
|
7960
7971
|
// -
|
|
7961
7972
|
case 45:
|
|
7962
|
-
b === 45 && vt(y) == 2 && (
|
|
7973
|
+
b === 45 && vt(y) == 2 && (f = 0);
|
|
7963
7974
|
}
|
|
7964
7975
|
}
|
|
7965
7976
|
return i;
|
|
7966
7977
|
}
|
|
7967
7978
|
function Bi(e, t, n, r, o, i, s, l, c, u, p) {
|
|
7968
|
-
for (var
|
|
7969
|
-
for (var C = 0,
|
|
7970
|
-
(
|
|
7979
|
+
for (var d = o - 1, h = o === 0 ? i : [""], v = Fo(h), b = 0, f = 0, x = 0; b < r; ++b)
|
|
7980
|
+
for (var C = 0, R = Fn(e, d + 1, d = mp(f = s[b])), w = e; C < v; ++C)
|
|
7981
|
+
(w = Xs(f > 0 ? h[C] + " " + R : ge(R, /&\f/g, h[C]))) && (c[x++] = w);
|
|
7971
7982
|
return Mr(e, t, n, o === 0 ? Io : l, c, u, p);
|
|
7972
7983
|
}
|
|
7973
7984
|
function kp(e, t, n) {
|
|
@@ -8235,9 +8246,9 @@ var Np = function(t, n, r, o) {
|
|
|
8235
8246
|
var n = t.key;
|
|
8236
8247
|
if (n === "css") {
|
|
8237
8248
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
8238
|
-
Array.prototype.forEach.call(r, function(
|
|
8239
|
-
var x =
|
|
8240
|
-
x.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
8249
|
+
Array.prototype.forEach.call(r, function(f) {
|
|
8250
|
+
var x = f.getAttribute("data-emotion");
|
|
8251
|
+
x.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
|
|
8241
8252
|
});
|
|
8242
8253
|
}
|
|
8243
8254
|
var o = t.stylisPlugins || Ip, i = {}, s, l = [];
|
|
@@ -8245,21 +8256,21 @@ var Np = function(t, n, r, o) {
|
|
|
8245
8256
|
// this means we will ignore elements which don't have a space in them which
|
|
8246
8257
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
8247
8258
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
8248
|
-
function(
|
|
8249
|
-
for (var x =
|
|
8259
|
+
function(f) {
|
|
8260
|
+
for (var x = f.getAttribute("data-emotion").split(" "), C = 1; C < x.length; C++)
|
|
8250
8261
|
i[x[C]] = !0;
|
|
8251
|
-
l.push(
|
|
8262
|
+
l.push(f);
|
|
8252
8263
|
}
|
|
8253
8264
|
);
|
|
8254
8265
|
var c, u = [Ap, Mp];
|
|
8255
8266
|
{
|
|
8256
|
-
var p,
|
|
8257
|
-
p.insert(
|
|
8258
|
-
})], h = Rp(u.concat(o,
|
|
8267
|
+
var p, d = [Op, $p(function(f) {
|
|
8268
|
+
p.insert(f);
|
|
8269
|
+
})], h = Rp(u.concat(o, d)), v = function(x) {
|
|
8259
8270
|
return pn(Ep(x), h);
|
|
8260
8271
|
};
|
|
8261
|
-
c = function(x, C,
|
|
8262
|
-
p =
|
|
8272
|
+
c = function(x, C, R, w) {
|
|
8273
|
+
p = R, v(x ? x + "{" + C.styles + "}" : C.styles), w && (b.inserted[C.name] = !0);
|
|
8263
8274
|
};
|
|
8264
8275
|
}
|
|
8265
8276
|
var b = {
|
|
@@ -8643,28 +8654,28 @@ function nh(e) {
|
|
|
8643
8654
|
contrastThreshold: n = 3,
|
|
8644
8655
|
tonalOffset: r = 0.2
|
|
8645
8656
|
} = e, o = Tt(e, Zp), i = e.primary || Gp(t), s = e.secondary || Jp(t), l = e.error || Xp(t), c = e.info || Qp(t), u = e.success || eh(t), p = e.warning || th(t);
|
|
8646
|
-
function f
|
|
8647
|
-
const x = bt.getContrastRatio(
|
|
8657
|
+
function d(f) {
|
|
8658
|
+
const x = bt.getContrastRatio(f, io.text.primary) >= n ? io.text.primary : qi.text.primary;
|
|
8648
8659
|
if (process.env.NODE_ENV !== "production") {
|
|
8649
|
-
const C = bt.getContrastRatio(
|
|
8650
|
-
C < 3 && console.error([`MUI: The contrast ratio of ${C}:1 for ${x} on ${
|
|
8660
|
+
const C = bt.getContrastRatio(f, x);
|
|
8661
|
+
C < 3 && console.error([`MUI: The contrast ratio of ${C}:1 for ${x} on ${f}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
8651
8662
|
`));
|
|
8652
8663
|
}
|
|
8653
8664
|
return x;
|
|
8654
8665
|
}
|
|
8655
8666
|
const h = ({
|
|
8656
|
-
color:
|
|
8667
|
+
color: f,
|
|
8657
8668
|
name: x,
|
|
8658
8669
|
mainShade: C = 500,
|
|
8659
|
-
lightShade:
|
|
8660
|
-
darkShade:
|
|
8670
|
+
lightShade: R = 300,
|
|
8671
|
+
darkShade: w = 700
|
|
8661
8672
|
}) => {
|
|
8662
|
-
if (
|
|
8673
|
+
if (f = z({}, f), !f.main && f[C] && (f.main = f[C]), !f.hasOwnProperty("main"))
|
|
8663
8674
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
8664
8675
|
The color object needs to have a \`main\` property or a \`${C}\` property.` : Dn(11, x ? ` (${x})` : "", C));
|
|
8665
|
-
if (typeof
|
|
8676
|
+
if (typeof f.main != "string")
|
|
8666
8677
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
8667
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
8678
|
+
\`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
|
|
8668
8679
|
|
|
8669
8680
|
Did you intend to use one of the following approaches?
|
|
8670
8681
|
|
|
@@ -8676,8 +8687,8 @@ const theme1 = createTheme({ palette: {
|
|
|
8676
8687
|
|
|
8677
8688
|
const theme2 = createTheme({ palette: {
|
|
8678
8689
|
primary: { main: green[500] },
|
|
8679
|
-
} });` : Dn(12, x ? ` (${x})` : "", JSON.stringify(
|
|
8680
|
-
return Wi(
|
|
8690
|
+
} });` : Dn(12, x ? ` (${x})` : "", JSON.stringify(f.main)));
|
|
8691
|
+
return Wi(f, "light", R, r), Wi(f, "dark", w, r), f.contrastText || (f.contrastText = d(f.main)), f;
|
|
8681
8692
|
}, v = {
|
|
8682
8693
|
dark: io,
|
|
8683
8694
|
light: qi
|
|
@@ -8727,7 +8738,7 @@ const theme2 = createTheme({ palette: {
|
|
|
8727
8738
|
// the background and the text.
|
|
8728
8739
|
contrastThreshold: n,
|
|
8729
8740
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
8730
|
-
getContrastText:
|
|
8741
|
+
getContrastText: d,
|
|
8731
8742
|
// Generate a rich color object.
|
|
8732
8743
|
augmentColor: h,
|
|
8733
8744
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -8758,31 +8769,31 @@ function ih(e, t) {
|
|
|
8758
8769
|
htmlFontSize: u = 16,
|
|
8759
8770
|
// Apply the CSS properties to all the variants.
|
|
8760
8771
|
allVariants: p,
|
|
8761
|
-
pxToRem:
|
|
8772
|
+
pxToRem: d
|
|
8762
8773
|
} = n, h = Tt(n, rh);
|
|
8763
8774
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
8764
|
-
const v = o / 14, b =
|
|
8775
|
+
const v = o / 14, b = d || ((C) => `${C / u * v}rem`), f = (C, R, w, k, _) => z({
|
|
8765
8776
|
fontFamily: r,
|
|
8766
8777
|
fontWeight: C,
|
|
8767
|
-
fontSize: b(
|
|
8778
|
+
fontSize: b(R),
|
|
8768
8779
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
8769
|
-
lineHeight:
|
|
8780
|
+
lineHeight: w
|
|
8770
8781
|
}, r === Ki ? {
|
|
8771
|
-
letterSpacing: `${oh(
|
|
8782
|
+
letterSpacing: `${oh(k / R)}em`
|
|
8772
8783
|
} : {}, _, p), x = {
|
|
8773
|
-
h1:
|
|
8774
|
-
h2:
|
|
8775
|
-
h3:
|
|
8776
|
-
h4:
|
|
8777
|
-
h5:
|
|
8778
|
-
h6:
|
|
8779
|
-
subtitle1:
|
|
8780
|
-
subtitle2:
|
|
8781
|
-
body1:
|
|
8782
|
-
body2:
|
|
8783
|
-
button:
|
|
8784
|
-
caption:
|
|
8785
|
-
overline:
|
|
8784
|
+
h1: f(i, 96, 1.167, -1.5),
|
|
8785
|
+
h2: f(i, 60, 1.2, -0.5),
|
|
8786
|
+
h3: f(s, 48, 1.167, 0),
|
|
8787
|
+
h4: f(s, 34, 1.235, 0.25),
|
|
8788
|
+
h5: f(s, 24, 1.334, 0),
|
|
8789
|
+
h6: f(l, 20, 1.6, 0.15),
|
|
8790
|
+
subtitle1: f(s, 16, 1.75, 0.15),
|
|
8791
|
+
subtitle2: f(l, 14, 1.57, 0.1),
|
|
8792
|
+
body1: f(s, 16, 1.5, 0.15),
|
|
8793
|
+
body2: f(s, 14, 1.43, 0.15),
|
|
8794
|
+
button: f(l, 14, 1.75, 0.4, Hi),
|
|
8795
|
+
caption: f(s, 12, 1.66, 0.4),
|
|
8796
|
+
overline: f(s, 12, 2.66, 1, Hi),
|
|
8786
8797
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
8787
8798
|
inherit: {
|
|
8788
8799
|
fontFamily: "inherit",
|
|
@@ -8853,8 +8864,8 @@ function hh(e) {
|
|
|
8853
8864
|
delay: c = 0
|
|
8854
8865
|
} = i, u = Tt(i, uh);
|
|
8855
8866
|
if (process.env.NODE_ENV !== "production") {
|
|
8856
|
-
const p = (h) => typeof h == "string",
|
|
8857
|
-
!p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !
|
|
8867
|
+
const p = (h) => typeof h == "string", d = (h) => !isNaN(parseFloat(h));
|
|
8868
|
+
!p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !d(s) && !p(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), p(l) || console.error('MUI: Argument "easing" must be a string.'), !d(c) && !p(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
8858
8869
|
`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
|
|
8859
8870
|
}
|
|
8860
8871
|
return (Array.isArray(o) ? o : [o]).map((p) => `${p} ${typeof s == "string" ? s : Yi(s)} ${l} ${typeof c == "string" ? c : Yi(c)}`).join(",");
|
|
@@ -8895,17 +8906,17 @@ function yh(e = {}, ...t) {
|
|
|
8895
8906
|
transitions: hh(o),
|
|
8896
8907
|
zIndex: z({}, mh)
|
|
8897
8908
|
});
|
|
8898
|
-
if (u = _t(u, s), u = t.reduce((p,
|
|
8899
|
-
const p = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"],
|
|
8909
|
+
if (u = _t(u, s), u = t.reduce((p, d) => _t(p, d), u), process.env.NODE_ENV !== "production") {
|
|
8910
|
+
const p = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], d = (h, v) => {
|
|
8900
8911
|
let b;
|
|
8901
8912
|
for (b in h) {
|
|
8902
|
-
const
|
|
8903
|
-
if (p.indexOf(b) !== -1 && Object.keys(
|
|
8913
|
+
const f = h[b];
|
|
8914
|
+
if (p.indexOf(b) !== -1 && Object.keys(f).length > 0) {
|
|
8904
8915
|
if (process.env.NODE_ENV !== "production") {
|
|
8905
8916
|
const x = Ao("", b);
|
|
8906
8917
|
console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${b}\` internal state.`, "You can not override it like this: ", JSON.stringify(h, null, 2), "", `Instead, you need to use the '&.${x}' syntax:`, JSON.stringify({
|
|
8907
8918
|
root: {
|
|
8908
|
-
[`&.${x}`]:
|
|
8919
|
+
[`&.${x}`]: f
|
|
8909
8920
|
}
|
|
8910
8921
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
8911
8922
|
`));
|
|
@@ -8916,12 +8927,12 @@ function yh(e = {}, ...t) {
|
|
|
8916
8927
|
};
|
|
8917
8928
|
Object.keys(u.components).forEach((h) => {
|
|
8918
8929
|
const v = u.components[h].styleOverrides;
|
|
8919
|
-
v && h.indexOf("Mui") === 0 &&
|
|
8930
|
+
v && h.indexOf("Mui") === 0 && d(v, h);
|
|
8920
8931
|
});
|
|
8921
8932
|
}
|
|
8922
|
-
return u.unstable_sxConfig = z({}, Hn, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(
|
|
8933
|
+
return u.unstable_sxConfig = z({}, Hn, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(d) {
|
|
8923
8934
|
return Pr({
|
|
8924
|
-
sx:
|
|
8935
|
+
sx: d,
|
|
8925
8936
|
theme: this
|
|
8926
8937
|
});
|
|
8927
8938
|
}, u;
|
|
@@ -8967,30 +8978,30 @@ function Oh() {
|
|
|
8967
8978
|
value: !0
|
|
8968
8979
|
}), Ut.default = D, Ut.shouldForwardProp = x, Ut.systemDefaultTheme = void 0;
|
|
8969
8980
|
var t = e(_h()), n = e(xh()), r = v(Ch), o = Sh, i = e(wh), s = e(Th), l = e(Eh), c = e(kh);
|
|
8970
|
-
const u = ["ownerState"], p = ["variants"],
|
|
8981
|
+
const u = ["ownerState"], p = ["variants"], d = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
8971
8982
|
function h(y) {
|
|
8972
8983
|
if (typeof WeakMap != "function") return null;
|
|
8973
|
-
var
|
|
8984
|
+
var T = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
|
|
8974
8985
|
return (h = function($) {
|
|
8975
|
-
return $ ? S :
|
|
8986
|
+
return $ ? S : T;
|
|
8976
8987
|
})(y);
|
|
8977
8988
|
}
|
|
8978
|
-
function v(y,
|
|
8989
|
+
function v(y, T) {
|
|
8979
8990
|
if (y && y.__esModule) return y;
|
|
8980
8991
|
if (y === null || typeof y != "object" && typeof y != "function") return { default: y };
|
|
8981
|
-
var S = h(
|
|
8992
|
+
var S = h(T);
|
|
8982
8993
|
if (S && S.has(y)) return S.get(y);
|
|
8983
|
-
var $ = { __proto__: null },
|
|
8984
|
-
for (var
|
|
8985
|
-
var B =
|
|
8986
|
-
B && (B.get || B.set) ? Object.defineProperty($,
|
|
8994
|
+
var $ = { __proto__: null }, N = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
8995
|
+
for (var X in y) if (X !== "default" && Object.prototype.hasOwnProperty.call(y, X)) {
|
|
8996
|
+
var B = N ? Object.getOwnPropertyDescriptor(y, X) : null;
|
|
8997
|
+
B && (B.get || B.set) ? Object.defineProperty($, X, B) : $[X] = y[X];
|
|
8987
8998
|
}
|
|
8988
8999
|
return $.default = y, S && S.set(y, $), $;
|
|
8989
9000
|
}
|
|
8990
9001
|
function b(y) {
|
|
8991
9002
|
return Object.keys(y).length === 0;
|
|
8992
9003
|
}
|
|
8993
|
-
function
|
|
9004
|
+
function f(y) {
|
|
8994
9005
|
return typeof y == "string" && // 96 is one less than the char code
|
|
8995
9006
|
// for "a" so this is checking that
|
|
8996
9007
|
// it's a lowercase character
|
|
@@ -8999,127 +9010,127 @@ function Oh() {
|
|
|
8999
9010
|
function x(y) {
|
|
9000
9011
|
return y !== "ownerState" && y !== "theme" && y !== "sx" && y !== "as";
|
|
9001
9012
|
}
|
|
9002
|
-
const C = Ut.systemDefaultTheme = (0, l.default)(),
|
|
9003
|
-
function
|
|
9013
|
+
const C = Ut.systemDefaultTheme = (0, l.default)(), R = (y) => y && y.charAt(0).toLowerCase() + y.slice(1);
|
|
9014
|
+
function w({
|
|
9004
9015
|
defaultTheme: y,
|
|
9005
|
-
theme:
|
|
9016
|
+
theme: T,
|
|
9006
9017
|
themeId: S
|
|
9007
9018
|
}) {
|
|
9008
|
-
return b(
|
|
9019
|
+
return b(T) ? y : T[S] || T;
|
|
9009
9020
|
}
|
|
9010
|
-
function
|
|
9011
|
-
return y ? (
|
|
9021
|
+
function k(y) {
|
|
9022
|
+
return y ? (T, S) => S[y] : null;
|
|
9012
9023
|
}
|
|
9013
|
-
function _(y,
|
|
9024
|
+
function _(y, T) {
|
|
9014
9025
|
let {
|
|
9015
9026
|
ownerState: S
|
|
9016
|
-
} =
|
|
9017
|
-
const
|
|
9027
|
+
} = T, $ = (0, n.default)(T, u);
|
|
9028
|
+
const N = typeof y == "function" ? y((0, t.default)({
|
|
9018
9029
|
ownerState: S
|
|
9019
9030
|
}, $)) : y;
|
|
9020
|
-
if (Array.isArray(
|
|
9021
|
-
return
|
|
9031
|
+
if (Array.isArray(N))
|
|
9032
|
+
return N.flatMap((X) => _(X, (0, t.default)({
|
|
9022
9033
|
ownerState: S
|
|
9023
9034
|
}, $)));
|
|
9024
|
-
if (
|
|
9035
|
+
if (N && typeof N == "object" && Array.isArray(N.variants)) {
|
|
9025
9036
|
const {
|
|
9026
|
-
variants:
|
|
9027
|
-
} =
|
|
9028
|
-
let
|
|
9029
|
-
return
|
|
9030
|
-
let
|
|
9031
|
-
typeof
|
|
9037
|
+
variants: X = []
|
|
9038
|
+
} = N;
|
|
9039
|
+
let Y = (0, n.default)(N, p);
|
|
9040
|
+
return X.forEach((V) => {
|
|
9041
|
+
let ie = !0;
|
|
9042
|
+
typeof V.props == "function" ? ie = V.props((0, t.default)({
|
|
9032
9043
|
ownerState: S
|
|
9033
|
-
}, $, S)) : Object.keys(
|
|
9034
|
-
(S == null ? void 0 : S[
|
|
9035
|
-
}),
|
|
9044
|
+
}, $, S)) : Object.keys(V.props).forEach((re) => {
|
|
9045
|
+
(S == null ? void 0 : S[re]) !== V.props[re] && $[re] !== V.props[re] && (ie = !1);
|
|
9046
|
+
}), ie && (Array.isArray(Y) || (Y = [Y]), Y.push(typeof V.style == "function" ? V.style((0, t.default)({
|
|
9036
9047
|
ownerState: S
|
|
9037
|
-
}, $, S)) :
|
|
9038
|
-
}),
|
|
9048
|
+
}, $, S)) : V.style));
|
|
9049
|
+
}), Y;
|
|
9039
9050
|
}
|
|
9040
|
-
return
|
|
9051
|
+
return N;
|
|
9041
9052
|
}
|
|
9042
9053
|
function D(y = {}) {
|
|
9043
9054
|
const {
|
|
9044
|
-
themeId:
|
|
9055
|
+
themeId: T,
|
|
9045
9056
|
defaultTheme: S = C,
|
|
9046
9057
|
rootShouldForwardProp: $ = x,
|
|
9047
|
-
slotShouldForwardProp:
|
|
9048
|
-
} = y,
|
|
9049
|
-
theme:
|
|
9058
|
+
slotShouldForwardProp: N = x
|
|
9059
|
+
} = y, X = (B) => (0, c.default)((0, t.default)({}, B, {
|
|
9060
|
+
theme: w((0, t.default)({}, B, {
|
|
9050
9061
|
defaultTheme: S,
|
|
9051
|
-
themeId:
|
|
9062
|
+
themeId: T
|
|
9052
9063
|
}))
|
|
9053
9064
|
}));
|
|
9054
|
-
return
|
|
9065
|
+
return X.__mui_systemSx = !0, (B, Y = {}) => {
|
|
9055
9066
|
(0, r.internal_processStyles)(B, (U) => U.filter((Z) => !(Z != null && Z.__mui_systemSx)));
|
|
9056
9067
|
const {
|
|
9057
|
-
name:
|
|
9058
|
-
slot:
|
|
9059
|
-
skipVariantsResolver:
|
|
9068
|
+
name: V,
|
|
9069
|
+
slot: ie,
|
|
9070
|
+
skipVariantsResolver: re,
|
|
9060
9071
|
skipSx: Ee,
|
|
9061
9072
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
9062
9073
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
9063
|
-
overridesResolver: je =
|
|
9064
|
-
} =
|
|
9074
|
+
overridesResolver: je = k(R(ie))
|
|
9075
|
+
} = Y, O = (0, n.default)(Y, d), A = re !== void 0 ? re : (
|
|
9065
9076
|
// TODO v6: remove `Root` in the next major release
|
|
9066
9077
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
9067
|
-
|
|
9068
|
-
),
|
|
9069
|
-
let
|
|
9070
|
-
process.env.NODE_ENV !== "production" &&
|
|
9078
|
+
ie && ie !== "Root" && ie !== "root" || !1
|
|
9079
|
+
), Q = Ee || !1;
|
|
9080
|
+
let q;
|
|
9081
|
+
process.env.NODE_ENV !== "production" && V && (q = `${V}-${R(ie || "Root")}`);
|
|
9071
9082
|
let F = x;
|
|
9072
|
-
|
|
9073
|
-
const
|
|
9083
|
+
ie === "Root" || ie === "root" ? F = $ : ie ? F = N : f(B) && (F = void 0);
|
|
9084
|
+
const ee = (0, r.default)(B, (0, t.default)({
|
|
9074
9085
|
shouldForwardProp: F,
|
|
9075
|
-
label:
|
|
9076
|
-
}, O)),
|
|
9077
|
-
theme:
|
|
9086
|
+
label: q
|
|
9087
|
+
}, O)), K = (U) => typeof U == "function" && U.__emotion_real !== U || (0, o.isPlainObject)(U) ? (Z) => _(U, (0, t.default)({}, Z, {
|
|
9088
|
+
theme: w({
|
|
9078
9089
|
theme: Z.theme,
|
|
9079
9090
|
defaultTheme: S,
|
|
9080
|
-
themeId:
|
|
9091
|
+
themeId: T
|
|
9081
9092
|
})
|
|
9082
|
-
})) : U,
|
|
9083
|
-
let
|
|
9084
|
-
const be = Z ? Z.map(
|
|
9085
|
-
|
|
9086
|
-
const
|
|
9093
|
+
})) : U, H = (U, ...Z) => {
|
|
9094
|
+
let ne = K(U);
|
|
9095
|
+
const be = Z ? Z.map(K) : [];
|
|
9096
|
+
V && je && be.push((ae) => {
|
|
9097
|
+
const le = w((0, t.default)({}, ae, {
|
|
9087
9098
|
defaultTheme: S,
|
|
9088
|
-
themeId:
|
|
9099
|
+
themeId: T
|
|
9089
9100
|
}));
|
|
9090
|
-
if (!
|
|
9101
|
+
if (!le.components || !le.components[V] || !le.components[V].styleOverrides)
|
|
9091
9102
|
return null;
|
|
9092
|
-
const Oe =
|
|
9103
|
+
const Oe = le.components[V].styleOverrides, He = {};
|
|
9093
9104
|
return Object.entries(Oe).forEach(([Ke, gt]) => {
|
|
9094
|
-
He[Ke] = _(gt, (0, t.default)({},
|
|
9095
|
-
theme:
|
|
9105
|
+
He[Ke] = _(gt, (0, t.default)({}, ae, {
|
|
9106
|
+
theme: le
|
|
9096
9107
|
}));
|
|
9097
|
-
}), je(
|
|
9098
|
-
}),
|
|
9099
|
-
var
|
|
9100
|
-
const Oe =
|
|
9108
|
+
}), je(ae, He);
|
|
9109
|
+
}), V && !A && be.push((ae) => {
|
|
9110
|
+
var le;
|
|
9111
|
+
const Oe = w((0, t.default)({}, ae, {
|
|
9101
9112
|
defaultTheme: S,
|
|
9102
|
-
themeId:
|
|
9103
|
-
})), He = Oe == null || (
|
|
9113
|
+
themeId: T
|
|
9114
|
+
})), He = Oe == null || (le = Oe.components) == null || (le = le[V]) == null ? void 0 : le.variants;
|
|
9104
9115
|
return _({
|
|
9105
9116
|
variants: He
|
|
9106
|
-
}, (0, t.default)({},
|
|
9117
|
+
}, (0, t.default)({}, ae, {
|
|
9107
9118
|
theme: Oe
|
|
9108
9119
|
}));
|
|
9109
|
-
}),
|
|
9120
|
+
}), Q || be.push(X);
|
|
9110
9121
|
const j = be.length - Z.length;
|
|
9111
9122
|
if (Array.isArray(U) && j > 0) {
|
|
9112
|
-
const
|
|
9113
|
-
|
|
9123
|
+
const ae = new Array(j).fill("");
|
|
9124
|
+
ne = [...U, ...ae], ne.raw = [...U.raw, ...ae];
|
|
9114
9125
|
}
|
|
9115
|
-
const _e =
|
|
9126
|
+
const _e = ee(ne, ...be);
|
|
9116
9127
|
if (process.env.NODE_ENV !== "production") {
|
|
9117
|
-
let
|
|
9118
|
-
|
|
9128
|
+
let ae;
|
|
9129
|
+
V && (ae = `${V}${(0, i.default)(ie || "")}`), ae === void 0 && (ae = `Styled(${(0, s.default)(B)})`), _e.displayName = ae;
|
|
9119
9130
|
}
|
|
9120
9131
|
return B.muiName && (_e.muiName = B.muiName), _e;
|
|
9121
9132
|
};
|
|
9122
|
-
return
|
|
9133
|
+
return ee.withConfig && (H.withConfig = ee.withConfig), H;
|
|
9123
9134
|
};
|
|
9124
9135
|
}
|
|
9125
9136
|
return Ut;
|
|
@@ -9721,51 +9732,51 @@ const zh = Ht("span", {
|
|
|
9721
9732
|
}, Yh = ({
|
|
9722
9733
|
children: e
|
|
9723
9734
|
}) => e, sa = /* @__PURE__ */ J.forwardRef(function(t, n) {
|
|
9724
|
-
var r, o, i, s, l, c, u, p,
|
|
9725
|
-
const
|
|
9735
|
+
var r, o, i, s, l, c, u, p, d, h, v, b, f, x, C, R, w, k, _, D, y, T, S, $;
|
|
9736
|
+
const N = Mh({
|
|
9726
9737
|
props: t,
|
|
9727
9738
|
name: "MuiSlider"
|
|
9728
|
-
}),
|
|
9739
|
+
}), X = Mf(), {
|
|
9729
9740
|
"aria-label": B,
|
|
9730
|
-
"aria-valuetext":
|
|
9731
|
-
"aria-labelledby":
|
|
9741
|
+
"aria-valuetext": Y,
|
|
9742
|
+
"aria-labelledby": V,
|
|
9732
9743
|
// eslint-disable-next-line react/prop-types
|
|
9733
|
-
component:
|
|
9734
|
-
components:
|
|
9744
|
+
component: ie = "span",
|
|
9745
|
+
components: re = {},
|
|
9735
9746
|
componentsProps: Ee = {},
|
|
9736
9747
|
color: je = "primary",
|
|
9737
9748
|
classes: O,
|
|
9738
9749
|
className: A,
|
|
9739
|
-
disableSwap:
|
|
9740
|
-
disabled:
|
|
9750
|
+
disableSwap: Q = !1,
|
|
9751
|
+
disabled: q = !1,
|
|
9741
9752
|
getAriaLabel: F,
|
|
9742
|
-
getAriaValueText:
|
|
9743
|
-
marks:
|
|
9744
|
-
max:
|
|
9753
|
+
getAriaValueText: ee,
|
|
9754
|
+
marks: K = !1,
|
|
9755
|
+
max: H = 100,
|
|
9745
9756
|
min: U = 0,
|
|
9746
9757
|
orientation: Z = "horizontal",
|
|
9747
|
-
shiftStep:
|
|
9758
|
+
shiftStep: ne = 10,
|
|
9748
9759
|
size: be = "medium",
|
|
9749
9760
|
step: j = 1,
|
|
9750
9761
|
scale: _e = Xi,
|
|
9751
|
-
slotProps:
|
|
9752
|
-
slots:
|
|
9762
|
+
slotProps: ae,
|
|
9763
|
+
slots: le,
|
|
9753
9764
|
track: Oe = "normal",
|
|
9754
9765
|
valueLabelDisplay: He = "off",
|
|
9755
9766
|
valueLabelFormat: Ke = Xi
|
|
9756
|
-
} =
|
|
9757
|
-
isRtl:
|
|
9758
|
-
max:
|
|
9767
|
+
} = N, gt = Tt(N, Fh), Fe = z({}, N, {
|
|
9768
|
+
isRtl: X,
|
|
9769
|
+
max: H,
|
|
9759
9770
|
min: U,
|
|
9760
9771
|
classes: O,
|
|
9761
|
-
disabled:
|
|
9762
|
-
disableSwap:
|
|
9772
|
+
disabled: q,
|
|
9773
|
+
disableSwap: Q,
|
|
9763
9774
|
orientation: Z,
|
|
9764
|
-
marks:
|
|
9775
|
+
marks: K,
|
|
9765
9776
|
color: je,
|
|
9766
9777
|
size: be,
|
|
9767
9778
|
step: j,
|
|
9768
|
-
shiftStep:
|
|
9779
|
+
shiftStep: ne,
|
|
9769
9780
|
scale: _e,
|
|
9770
9781
|
track: Oe,
|
|
9771
9782
|
valueLabelDisplay: He,
|
|
@@ -9780,7 +9791,7 @@ const zh = Ht("span", {
|
|
|
9780
9791
|
axis: kt,
|
|
9781
9792
|
focusedThumbIndex: P,
|
|
9782
9793
|
range: I,
|
|
9783
|
-
dragging:
|
|
9794
|
+
dragging: W,
|
|
9784
9795
|
marks: de,
|
|
9785
9796
|
values: pe,
|
|
9786
9797
|
trackOffset: fe,
|
|
@@ -9789,14 +9800,14 @@ const zh = Ht("span", {
|
|
|
9789
9800
|
} = gd(z({}, Fe, {
|
|
9790
9801
|
rootRef: n
|
|
9791
9802
|
}));
|
|
9792
|
-
Fe.marked = de.length > 0 && de.some((G) => G.label), Fe.dragging =
|
|
9793
|
-
const he = Kh(Fe), Je = (r = (o =
|
|
9803
|
+
Fe.marked = de.length > 0 && de.some((G) => G.label), Fe.dragging = W, Fe.focusedThumbIndex = P;
|
|
9804
|
+
const he = Kh(Fe), Je = (r = (o = le == null ? void 0 : le.root) != null ? o : re.Root) != null ? r : zh, yt = (i = (s = le == null ? void 0 : le.rail) != null ? s : re.Rail) != null ? i : Bh, wn = (l = (c = le == null ? void 0 : le.track) != null ? c : re.Track) != null ? l : Uh, Ct = (u = (p = le == null ? void 0 : le.thumb) != null ? p : re.Thumb) != null ? u : Vh, Yt = (d = (h = le == null ? void 0 : le.valueLabel) != null ? h : re.ValueLabel) != null ? d : qh, It = (v = (b = le == null ? void 0 : le.mark) != null ? b : re.Mark) != null ? v : Wh, Zt = (f = (x = le == null ? void 0 : le.markLabel) != null ? x : re.MarkLabel) != null ? f : Hh, Yn = (C = (R = le == null ? void 0 : le.input) != null ? R : re.Input) != null ? C : "input", Gt = (w = ae == null ? void 0 : ae.root) != null ? w : Ee.root, Nr = (k = ae == null ? void 0 : ae.rail) != null ? k : Ee.rail, Jt = (_ = ae == null ? void 0 : ae.track) != null ? _ : Ee.track, Xt = (D = ae == null ? void 0 : ae.thumb) != null ? D : Ee.thumb, Tn = (y = ae == null ? void 0 : ae.valueLabel) != null ? y : Ee.valueLabel, Ir = (T = ae == null ? void 0 : ae.mark) != null ? T : Ee.mark, Zn = (S = ae == null ? void 0 : ae.markLabel) != null ? S : Ee.markLabel, Gn = ($ = ae == null ? void 0 : ae.input) != null ? $ : Ee.input, Dr = Rt({
|
|
9794
9805
|
elementType: Je,
|
|
9795
9806
|
getSlotProps: Nt,
|
|
9796
9807
|
externalSlotProps: Gt,
|
|
9797
9808
|
externalForwardedProps: gt,
|
|
9798
9809
|
additionalProps: z({}, Nh(Je) && {
|
|
9799
|
-
as:
|
|
9810
|
+
as: ie
|
|
9800
9811
|
}),
|
|
9801
9812
|
ownerState: z({}, Fe, Gt == null ? void 0 : Gt.ownerState),
|
|
9802
9813
|
className: [he.root, A]
|
|
@@ -9824,72 +9835,72 @@ const zh = Ht("span", {
|
|
|
9824
9835
|
externalSlotProps: Tn,
|
|
9825
9836
|
ownerState: z({}, Fe, Tn == null ? void 0 : Tn.ownerState),
|
|
9826
9837
|
className: he.valueLabel
|
|
9827
|
-
}),
|
|
9838
|
+
}), E = Rt({
|
|
9828
9839
|
elementType: It,
|
|
9829
9840
|
externalSlotProps: Ir,
|
|
9830
9841
|
ownerState: Fe,
|
|
9831
9842
|
className: he.mark
|
|
9832
|
-
}),
|
|
9843
|
+
}), M = Rt({
|
|
9833
9844
|
elementType: Zt,
|
|
9834
9845
|
externalSlotProps: Zn,
|
|
9835
9846
|
ownerState: Fe,
|
|
9836
9847
|
className: he.markLabel
|
|
9837
|
-
}),
|
|
9848
|
+
}), te = Rt({
|
|
9838
9849
|
elementType: Yn,
|
|
9839
9850
|
getSlotProps: xn,
|
|
9840
9851
|
externalSlotProps: Gn,
|
|
9841
9852
|
ownerState: Fe
|
|
9842
9853
|
});
|
|
9843
9854
|
return /* @__PURE__ */ m.jsxs(Je, z({}, Dr, {
|
|
9844
|
-
children: [/* @__PURE__ */ m.jsx(yt, z({}, Fr)), /* @__PURE__ */ m.jsx(wn, z({}, zr)), de.filter((G) => G.value >= U && G.value <=
|
|
9845
|
-
const ue = vr(G.value, U,
|
|
9855
|
+
children: [/* @__PURE__ */ m.jsx(yt, z({}, Fr)), /* @__PURE__ */ m.jsx(wn, z({}, zr)), de.filter((G) => G.value >= U && G.value <= H).map((G, oe) => {
|
|
9856
|
+
const ue = vr(G.value, U, H), ce = Et[kt].offset(ue);
|
|
9846
9857
|
let we;
|
|
9847
9858
|
return Oe === !1 ? we = pe.indexOf(G.value) !== -1 : we = Oe === "normal" && (I ? G.value >= pe[0] && G.value <= pe[pe.length - 1] : G.value <= pe[0]) || Oe === "inverted" && (I ? G.value <= pe[0] || G.value >= pe[pe.length - 1] : G.value >= pe[0]), /* @__PURE__ */ m.jsxs(J.Fragment, {
|
|
9848
9859
|
children: [/* @__PURE__ */ m.jsx(It, z({
|
|
9849
|
-
"data-index":
|
|
9850
|
-
},
|
|
9860
|
+
"data-index": oe
|
|
9861
|
+
}, E, !Nn(It) && {
|
|
9851
9862
|
markActive: we
|
|
9852
9863
|
}, {
|
|
9853
|
-
style: z({},
|
|
9854
|
-
className: Pt(
|
|
9864
|
+
style: z({}, ce, E.style),
|
|
9865
|
+
className: Pt(E.className, we && he.markActive)
|
|
9855
9866
|
})), G.label != null ? /* @__PURE__ */ m.jsx(Zt, z({
|
|
9856
9867
|
"aria-hidden": !0,
|
|
9857
|
-
"data-index":
|
|
9858
|
-
},
|
|
9868
|
+
"data-index": oe
|
|
9869
|
+
}, M, !Nn(Zt) && {
|
|
9859
9870
|
markLabelActive: we
|
|
9860
9871
|
}, {
|
|
9861
|
-
style: z({},
|
|
9862
|
-
className: Pt(he.markLabel,
|
|
9872
|
+
style: z({}, ce, M.style),
|
|
9873
|
+
className: Pt(he.markLabel, M.className, we && he.markLabelActive),
|
|
9863
9874
|
children: G.label
|
|
9864
9875
|
})) : null]
|
|
9865
|
-
},
|
|
9866
|
-
}), pe.map((G,
|
|
9867
|
-
const ue = vr(G, U,
|
|
9876
|
+
}, oe);
|
|
9877
|
+
}), pe.map((G, oe) => {
|
|
9878
|
+
const ue = vr(G, U, H), ce = Et[kt].offset(ue), we = He === "off" ? Yh : Yt;
|
|
9868
9879
|
return (
|
|
9869
9880
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
9870
9881
|
/* @__PURE__ */ m.jsx(we, z({}, !Nn(we) && {
|
|
9871
9882
|
valueLabelFormat: Ke,
|
|
9872
9883
|
valueLabelDisplay: He,
|
|
9873
|
-
value: typeof Ke == "function" ? Ke(_e(G),
|
|
9874
|
-
index:
|
|
9875
|
-
open: Sn ===
|
|
9876
|
-
disabled:
|
|
9884
|
+
value: typeof Ke == "function" ? Ke(_e(G), oe) : Ke,
|
|
9885
|
+
index: oe,
|
|
9886
|
+
open: Sn === oe || Kt === oe || He === "on",
|
|
9887
|
+
disabled: q
|
|
9877
9888
|
}, g, {
|
|
9878
9889
|
children: /* @__PURE__ */ m.jsx(Ct, z({
|
|
9879
|
-
"data-index":
|
|
9890
|
+
"data-index": oe
|
|
9880
9891
|
}, En, {
|
|
9881
|
-
className: Pt(he.thumb, En.className, Kt ===
|
|
9882
|
-
style: z({},
|
|
9892
|
+
className: Pt(he.thumb, En.className, Kt === oe && he.active, P === oe && he.focusVisible),
|
|
9893
|
+
style: z({}, ce, at(oe), En.style),
|
|
9883
9894
|
children: /* @__PURE__ */ m.jsx(Yn, z({
|
|
9884
|
-
"data-index":
|
|
9885
|
-
"aria-label": F ? F(
|
|
9895
|
+
"data-index": oe,
|
|
9896
|
+
"aria-label": F ? F(oe) : B,
|
|
9886
9897
|
"aria-valuenow": _e(G),
|
|
9887
|
-
"aria-labelledby":
|
|
9888
|
-
"aria-valuetext":
|
|
9889
|
-
value: pe[
|
|
9890
|
-
},
|
|
9898
|
+
"aria-labelledby": V,
|
|
9899
|
+
"aria-valuetext": ee ? ee(_e(G), oe) : Y,
|
|
9900
|
+
value: pe[oe]
|
|
9901
|
+
}, te))
|
|
9891
9902
|
}))
|
|
9892
|
-
}),
|
|
9903
|
+
}), oe)
|
|
9893
9904
|
);
|
|
9894
9905
|
})]
|
|
9895
9906
|
}));
|
|
@@ -10166,30 +10177,30 @@ const Zh = "_slider_a19yo_2", Gh = "_playButton_a19yo_17", Jh = "_hover_a19yo_20
|
|
|
10166
10177
|
sliderOpen: Xh,
|
|
10167
10178
|
sliderResults: Qh
|
|
10168
10179
|
}, em = ({ onResults: e = !1, defaultYear: t = 2025, firstYear: n = 2025, lastYear: r = 2050, zIndex: o = 10, rightBarOpen: i = !1 }) => {
|
|
10169
|
-
const [s, l] = We(t), c = es(), u = (C,
|
|
10170
|
-
l(
|
|
10171
|
-
}, [p,
|
|
10172
|
-
|
|
10180
|
+
const [s, l] = We(t), c = es(), u = (C, R) => {
|
|
10181
|
+
l(R), c(to(R - 2e3));
|
|
10182
|
+
}, [p, d] = We(!1), h = () => {
|
|
10183
|
+
d(!0);
|
|
10173
10184
|
}, v = () => {
|
|
10174
|
-
|
|
10185
|
+
d(!1);
|
|
10175
10186
|
};
|
|
10176
|
-
((C,
|
|
10177
|
-
const
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
}, [C]),
|
|
10181
|
-
function
|
|
10182
|
-
|
|
10187
|
+
((C, R) => {
|
|
10188
|
+
const w = De();
|
|
10189
|
+
se(() => {
|
|
10190
|
+
w.current = C;
|
|
10191
|
+
}, [C]), se(() => {
|
|
10192
|
+
function k() {
|
|
10193
|
+
w.current();
|
|
10183
10194
|
}
|
|
10184
10195
|
{
|
|
10185
|
-
let _ = setInterval(
|
|
10196
|
+
let _ = setInterval(k, R);
|
|
10186
10197
|
return () => clearInterval(_);
|
|
10187
10198
|
}
|
|
10188
|
-
}, [
|
|
10199
|
+
}, [R]);
|
|
10189
10200
|
})(() => {
|
|
10190
10201
|
p && (s != 2050 ? (l(s + 1), c(to(s - 2e3 + 1))) : (l(2025), c(to(25))));
|
|
10191
10202
|
}, 1e3);
|
|
10192
|
-
const
|
|
10203
|
+
const f = fa({
|
|
10193
10204
|
palette: {
|
|
10194
10205
|
primary: {
|
|
10195
10206
|
main: "#605b56"
|
|
@@ -10217,7 +10228,7 @@ const Zh = "_slider_a19yo_2", Gh = "_playButton_a19yo_17", Jh = "_hover_a19yo_20
|
|
|
10217
10228
|
{ label: "", value: 2041 },
|
|
10218
10229
|
{ label: "", value: 2050 }
|
|
10219
10230
|
];
|
|
10220
|
-
return /* @__PURE__ */ m.jsx(va, { theme:
|
|
10231
|
+
return /* @__PURE__ */ m.jsx(va, { theme: f, children: /* @__PURE__ */ m.jsxs(
|
|
10221
10232
|
da,
|
|
10222
10233
|
{
|
|
10223
10234
|
sx: { width: 400 },
|