gearboxdownloadmodal 6.0.43 → 6.0.45
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.es.js +779 -773
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +18 -18
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Modal.d.ts +2 -2
- package/dist/src/utils/generateVersion.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import se, { useState as X, useEffect as ve, forwardRef as ji, useReducer as zi, useRef as ot, isValidElement as ht, cloneElement as
|
|
1
|
+
import se, { useState as X, useEffect as ve, forwardRef as ji, useReducer as zi, useRef as ot, isValidElement as ht, cloneElement as Jn, useLayoutEffect as Yi } from "react";
|
|
2
2
|
import Ji from "react-dom";
|
|
3
3
|
function Ni(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -24,7 +24,7 @@ function Di(e) {
|
|
|
24
24
|
});
|
|
25
25
|
}), n;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var Nn = { exports: {} }, It = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.production.min.js
|
|
@@ -34,21 +34,21 @@ var Jn = { exports: {} }, It = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var
|
|
37
|
+
var Mr;
|
|
38
38
|
function Ri() {
|
|
39
|
-
if (
|
|
39
|
+
if (Mr)
|
|
40
40
|
return It;
|
|
41
|
-
|
|
41
|
+
Mr = 1;
|
|
42
42
|
var e = se, 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 };
|
|
43
43
|
function a(A, m, c) {
|
|
44
|
-
var l, d = {},
|
|
45
|
-
c !== void 0 && (
|
|
44
|
+
var l, d = {}, b = null, g = null;
|
|
45
|
+
c !== void 0 && (b = "" + c), m.key !== void 0 && (b = "" + m.key), m.ref !== void 0 && (g = m.ref);
|
|
46
46
|
for (l in m)
|
|
47
47
|
r.call(m, l) && !i.hasOwnProperty(l) && (d[l] = m[l]);
|
|
48
48
|
if (A && A.defaultProps)
|
|
49
49
|
for (l in m = A.defaultProps, m)
|
|
50
50
|
d[l] === void 0 && (d[l] = m[l]);
|
|
51
|
-
return { $$typeof: t, type: A, key:
|
|
51
|
+
return { $$typeof: t, type: A, key: b, ref: g, props: d, _owner: o.current };
|
|
52
52
|
}
|
|
53
53
|
return It.Fragment = n, It.jsx = a, It.jsxs = a, It;
|
|
54
54
|
}
|
|
@@ -62,10 +62,10 @@ var xt = {};
|
|
|
62
62
|
* This source code is licensed under the MIT license found in the
|
|
63
63
|
* LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
var
|
|
65
|
+
var Sr;
|
|
66
66
|
function Gi() {
|
|
67
|
-
return
|
|
68
|
-
var e = se, 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"), a = Symbol.for("react.provider"), A = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"),
|
|
67
|
+
return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
+
var e = se, 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"), a = Symbol.for("react.provider"), A = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = Symbol.iterator, f = "@@iterator";
|
|
69
69
|
function v(u) {
|
|
70
70
|
if (u === null || typeof u != "object")
|
|
71
71
|
return null;
|
|
@@ -77,10 +77,10 @@ function Gi() {
|
|
|
77
77
|
{
|
|
78
78
|
for (var x = arguments.length, S = new Array(x > 1 ? x - 1 : 0), H = 1; H < x; H++)
|
|
79
79
|
S[H - 1] = arguments[H];
|
|
80
|
-
|
|
80
|
+
z("error", u, S);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function z(u, x, S) {
|
|
84
84
|
{
|
|
85
85
|
var H = K.ReactDebugCurrentFrame, Ae = H.getStackAddendum();
|
|
86
86
|
Ae !== "" && (x += "%s", S = S.concat([Ae]));
|
|
@@ -90,10 +90,10 @@ function Gi() {
|
|
|
90
90
|
me.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, me);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var L = !1,
|
|
93
|
+
var L = !1, C = !1, P = !1, re = !1, U = !1, de;
|
|
94
94
|
de = Symbol.for("react.module.reference");
|
|
95
|
-
function
|
|
96
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i ||
|
|
95
|
+
function ee(u) {
|
|
96
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || U || u === o || u === c || u === l || re || u === g || L || C || P || typeof u == "object" && u !== null && (u.$$typeof === b || u.$$typeof === d || u.$$typeof === a || u.$$typeof === A || u.$$typeof === m || // This needs to include all possible module reference object
|
|
97
97
|
// types supported by any Flight configuration anywhere since
|
|
98
98
|
// we don't know which Flight build this will end up being used
|
|
99
99
|
// with.
|
|
@@ -106,7 +106,7 @@ function Gi() {
|
|
|
106
106
|
var Ae = x.displayName || x.name || "";
|
|
107
107
|
return Ae !== "" ? S + "(" + Ae + ")" : S;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function V(u) {
|
|
110
110
|
return u.displayName || "Context";
|
|
111
111
|
}
|
|
112
112
|
function _(u) {
|
|
@@ -134,16 +134,16 @@ function Gi() {
|
|
|
134
134
|
switch (u.$$typeof) {
|
|
135
135
|
case A:
|
|
136
136
|
var x = u;
|
|
137
|
-
return
|
|
137
|
+
return V(x) + ".Consumer";
|
|
138
138
|
case a:
|
|
139
139
|
var S = u;
|
|
140
|
-
return
|
|
140
|
+
return V(S._context) + ".Provider";
|
|
141
141
|
case m:
|
|
142
142
|
return ce(u, u.render, "ForwardRef");
|
|
143
143
|
case d:
|
|
144
144
|
var H = u.displayName || null;
|
|
145
145
|
return H !== null ? H : _(u.type) || "Memo";
|
|
146
|
-
case
|
|
146
|
+
case b: {
|
|
147
147
|
var Ae = u, me = Ae._payload, oe = Ae._init;
|
|
148
148
|
try {
|
|
149
149
|
return _(oe(me));
|
|
@@ -154,14 +154,14 @@ function Gi() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var M = Object.assign, W = 0, J, p, O,
|
|
157
|
+
var M = Object.assign, W = 0, J, p, O, F, y, I, N;
|
|
158
158
|
function k() {
|
|
159
159
|
}
|
|
160
160
|
k.__reactDisabledLog = !0;
|
|
161
|
-
function
|
|
161
|
+
function Y() {
|
|
162
162
|
{
|
|
163
163
|
if (W === 0) {
|
|
164
|
-
J = console.log, p = console.info, O = console.warn,
|
|
164
|
+
J = console.log, p = console.info, O = console.warn, F = console.error, y = console.group, I = console.groupCollapsed, N = console.groupEnd;
|
|
165
165
|
var u = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -200,10 +200,10 @@ function Gi() {
|
|
|
200
200
|
value: O
|
|
201
201
|
}),
|
|
202
202
|
error: M({}, u, {
|
|
203
|
-
value:
|
|
203
|
+
value: F
|
|
204
204
|
}),
|
|
205
205
|
group: M({}, u, {
|
|
206
|
-
value:
|
|
206
|
+
value: y
|
|
207
207
|
}),
|
|
208
208
|
groupCollapsed: M({}, u, {
|
|
209
209
|
value: I
|
|
@@ -216,39 +216,39 @@ function Gi() {
|
|
|
216
216
|
W < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var R = K.ReactCurrentDispatcher, D;
|
|
220
220
|
function T(u, x, S) {
|
|
221
221
|
{
|
|
222
|
-
if (
|
|
222
|
+
if (D === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
225
|
} catch (Ae) {
|
|
226
226
|
var H = Ae.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
-
|
|
227
|
+
D = H && H[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
|
-
` +
|
|
230
|
+
` + D + u;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var B = !1, q;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var j = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
q = new j();
|
|
237
237
|
}
|
|
238
238
|
function w(u, x) {
|
|
239
|
-
if (!u ||
|
|
239
|
+
if (!u || B)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var S =
|
|
242
|
+
var S = q.get(u);
|
|
243
243
|
if (S !== void 0)
|
|
244
244
|
return S;
|
|
245
245
|
}
|
|
246
246
|
var H;
|
|
247
|
-
|
|
247
|
+
B = !0;
|
|
248
248
|
var Ae = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var me;
|
|
251
|
-
me =
|
|
251
|
+
me = R.current, R.current = null, Y();
|
|
252
252
|
try {
|
|
253
253
|
if (x) {
|
|
254
254
|
var oe = function() {
|
|
@@ -294,17 +294,17 @@ function Gi() {
|
|
|
294
294
|
if (he--, ge--, ge < 0 || te[he] !== xe[ge]) {
|
|
295
295
|
var Le = `
|
|
296
296
|
` + te[he].replace(" at new ", " at ");
|
|
297
|
-
return u.displayName && Le.includes("<anonymous>") && (Le = Le.replace("<anonymous>", u.displayName)), typeof u == "function" &&
|
|
297
|
+
return u.displayName && Le.includes("<anonymous>") && (Le = Le.replace("<anonymous>", u.displayName)), typeof u == "function" && q.set(u, Le), Le;
|
|
298
298
|
}
|
|
299
299
|
while (he >= 1 && ge >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
B = !1, R.current = me, G(), Error.prepareStackTrace = Ae;
|
|
305
305
|
}
|
|
306
|
-
var pt = u ? u.displayName || u.name : "",
|
|
307
|
-
return typeof u == "function" &&
|
|
306
|
+
var pt = u ? u.displayName || u.name : "", Wr = pt ? T(pt) : "";
|
|
307
|
+
return typeof u == "function" && q.set(u, Wr), Wr;
|
|
308
308
|
}
|
|
309
309
|
function $(u, x, S) {
|
|
310
310
|
return w(u, !1);
|
|
@@ -313,7 +313,7 @@ function Gi() {
|
|
|
313
313
|
var x = u.prototype;
|
|
314
314
|
return !!(x && x.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function ne(u, x, S) {
|
|
317
317
|
if (u == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof u == "function")
|
|
@@ -331,11 +331,11 @@ function Gi() {
|
|
|
331
331
|
case m:
|
|
332
332
|
return $(u.render);
|
|
333
333
|
case d:
|
|
334
|
-
return
|
|
335
|
-
case
|
|
334
|
+
return ne(u.type, x, S);
|
|
335
|
+
case b: {
|
|
336
336
|
var H = u, Ae = H._payload, me = H._init;
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return ne(me(Ae), x, S);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -345,7 +345,7 @@ function Gi() {
|
|
|
345
345
|
var fe = Object.prototype.hasOwnProperty, ct = {}, mt = K.ReactDebugCurrentFrame;
|
|
346
346
|
function Se(u) {
|
|
347
347
|
if (u) {
|
|
348
|
-
var x = u._owner, S =
|
|
348
|
+
var x = u._owner, S = ne(u.type, u._source, x ? x.type : null);
|
|
349
349
|
mt.setExtraStackFrame(S);
|
|
350
350
|
} else
|
|
351
351
|
mt.setExtraStackFrame(null);
|
|
@@ -381,24 +381,24 @@ function Gi() {
|
|
|
381
381
|
}
|
|
382
382
|
function qi(u) {
|
|
383
383
|
try {
|
|
384
|
-
return
|
|
384
|
+
return qr(u), !1;
|
|
385
385
|
} catch {
|
|
386
386
|
return !0;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function qr(u) {
|
|
390
390
|
return "" + u;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function yr(u) {
|
|
393
393
|
if (qi(u))
|
|
394
|
-
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gi(u)),
|
|
394
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gi(u)), qr(u);
|
|
395
395
|
}
|
|
396
396
|
var Zt = K.ReactCurrentOwner, yi = {
|
|
397
397
|
key: !0,
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
400
400
|
__source: !0
|
|
401
|
-
},
|
|
401
|
+
}, vr, br, qn;
|
|
402
402
|
qn = {};
|
|
403
403
|
function vi(u) {
|
|
404
404
|
if (fe.call(u, "ref")) {
|
|
@@ -425,7 +425,7 @@ function Gi() {
|
|
|
425
425
|
function Zi(u, x) {
|
|
426
426
|
{
|
|
427
427
|
var S = function() {
|
|
428
|
-
|
|
428
|
+
vr || (vr = !0, E("%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)", x));
|
|
429
429
|
};
|
|
430
430
|
S.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
431
431
|
get: S,
|
|
@@ -436,7 +436,7 @@ function Gi() {
|
|
|
436
436
|
function Ii(u, x) {
|
|
437
437
|
{
|
|
438
438
|
var S = function() {
|
|
439
|
-
|
|
439
|
+
br || (br = !0, E("%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)", x));
|
|
440
440
|
};
|
|
441
441
|
S.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
442
442
|
get: S,
|
|
@@ -476,7 +476,7 @@ function Gi() {
|
|
|
476
476
|
function wi(u, x, S, H, Ae) {
|
|
477
477
|
{
|
|
478
478
|
var me, oe = {}, te = null, xe = null;
|
|
479
|
-
S !== void 0 && (
|
|
479
|
+
S !== void 0 && (yr(S), te = "" + S), bi(x) && (yr(x.key), te = "" + x.key), vi(x) && (xe = x.ref, Ci(x, Ae));
|
|
480
480
|
for (me in x)
|
|
481
481
|
fe.call(x, me) && !yi.hasOwnProperty(me) && (oe[me] = x[me]);
|
|
482
482
|
if (u && u.defaultProps) {
|
|
@@ -491,20 +491,20 @@ function Gi() {
|
|
|
491
491
|
return xi(u, te, xe, Ae, H, Zt.current, oe);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var yn = K.ReactCurrentOwner,
|
|
494
|
+
var yn = K.ReactCurrentOwner, Cr = K.ReactDebugCurrentFrame;
|
|
495
495
|
function dt(u) {
|
|
496
496
|
if (u) {
|
|
497
|
-
var x = u._owner, S =
|
|
498
|
-
|
|
497
|
+
var x = u._owner, S = ne(u.type, u._source, x ? x.type : null);
|
|
498
|
+
Cr.setExtraStackFrame(S);
|
|
499
499
|
} else
|
|
500
|
-
|
|
500
|
+
Cr.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
502
502
|
var vn;
|
|
503
503
|
vn = !1;
|
|
504
504
|
function bn(u) {
|
|
505
505
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Zr() {
|
|
508
508
|
{
|
|
509
509
|
if (yn.current) {
|
|
510
510
|
var u = _(yn.current.type);
|
|
@@ -527,10 +527,10 @@ Check your code at ` + x + ":" + S + ".";
|
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
var
|
|
530
|
+
var Ir = {};
|
|
531
531
|
function Wi(u) {
|
|
532
532
|
{
|
|
533
|
-
var x =
|
|
533
|
+
var x = Zr();
|
|
534
534
|
if (!x) {
|
|
535
535
|
var S = typeof u == "string" ? u : u.displayName || u.name;
|
|
536
536
|
S && (x = `
|
|
@@ -540,27 +540,27 @@ Check the top-level render call using <` + S + ">.");
|
|
|
540
540
|
return x;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function xr(u, x) {
|
|
544
544
|
{
|
|
545
545
|
if (!u._store || u._store.validated || u.key != null)
|
|
546
546
|
return;
|
|
547
547
|
u._store.validated = !0;
|
|
548
548
|
var S = Wi(x);
|
|
549
|
-
if (
|
|
549
|
+
if (Ir[S])
|
|
550
550
|
return;
|
|
551
|
-
|
|
551
|
+
Ir[S] = !0;
|
|
552
552
|
var H = "";
|
|
553
553
|
u && u._owner && u._owner !== yn.current && (H = " It was passed a child from " + _(u._owner.type) + "."), dt(u), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, H), dt(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function wr(u, x) {
|
|
557
557
|
{
|
|
558
558
|
if (typeof u != "object")
|
|
559
559
|
return;
|
|
560
560
|
if (gn(u))
|
|
561
561
|
for (var S = 0; S < u.length; S++) {
|
|
562
562
|
var H = u[S];
|
|
563
|
-
bn(H) &&
|
|
563
|
+
bn(H) && xr(H, x);
|
|
564
564
|
}
|
|
565
565
|
else if (bn(u))
|
|
566
566
|
u._store && (u._store.validated = !0);
|
|
@@ -568,7 +568,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
568
568
|
var Ae = v(u);
|
|
569
569
|
if (typeof Ae == "function" && Ae !== u.entries)
|
|
570
570
|
for (var me = Ae.call(u), oe; !(oe = me.next()).done; )
|
|
571
|
-
bn(oe.value) &&
|
|
571
|
+
bn(oe.value) && xr(oe.value, x);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
@@ -609,14 +609,14 @@ Check the top-level render call using <` + S + ">.");
|
|
|
609
609
|
u.ref !== null && (dt(u), E("Invalid attribute `ref` supplied to `React.Fragment`."), dt(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Kr(u, x, S, H, Ae, me) {
|
|
613
613
|
{
|
|
614
|
-
var oe =
|
|
614
|
+
var oe = ee(u);
|
|
615
615
|
if (!oe) {
|
|
616
616
|
var te = "";
|
|
617
617
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (te += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
618
|
var xe = Ki(Ae);
|
|
619
|
-
xe ? te += xe : te +=
|
|
619
|
+
xe ? te += xe : te += Zr();
|
|
620
620
|
var he;
|
|
621
621
|
u === null ? he = "null" : gn(u) ? he = "array" : u !== void 0 && u.$$typeof === t ? (he = "<" + (_(u.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : he = typeof u, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, te);
|
|
622
622
|
}
|
|
@@ -629,28 +629,28 @@ Check the top-level render call using <` + S + ">.");
|
|
|
629
629
|
if (H)
|
|
630
630
|
if (gn(Le)) {
|
|
631
631
|
for (var pt = 0; pt < Le.length; pt++)
|
|
632
|
-
|
|
632
|
+
wr(Le[pt], u);
|
|
633
633
|
Object.freeze && Object.freeze(Le);
|
|
634
634
|
} else
|
|
635
635
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
636
636
|
else
|
|
637
|
-
|
|
637
|
+
wr(Le, u);
|
|
638
638
|
}
|
|
639
639
|
return u === r ? Si(ge) : Mi(ge), ge;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
function Li(u, x, S) {
|
|
643
|
-
return
|
|
643
|
+
return Kr(u, x, S, !0);
|
|
644
644
|
}
|
|
645
645
|
function Oi(u, x, S) {
|
|
646
|
-
return
|
|
646
|
+
return Kr(u, x, S, !1);
|
|
647
647
|
}
|
|
648
648
|
var Ei = Oi, ki = Li;
|
|
649
649
|
xt.Fragment = r, xt.jsx = Ei, xt.jsxs = ki;
|
|
650
650
|
}()), xt;
|
|
651
651
|
}
|
|
652
|
-
process.env.NODE_ENV === "production" ?
|
|
653
|
-
var s =
|
|
652
|
+
process.env.NODE_ENV === "production" ? Nn.exports = Ri() : Nn.exports = Gi();
|
|
653
|
+
var s = Nn.exports;
|
|
654
654
|
const mo = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4OThfMzEyMjcpIj4NCiAgICA8cGF0aCBkPSJNMjAuMzQxNiAxMi4yMjY2TDEyLjc5NDkgMTkuNzczMiIgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44Ig0KICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPg0KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZVdpZHRoPSIxLjgiDQogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogICAgPHBhdGgNCiAgICAgIGQ9Ik0xNi41Njg0IDI4QzkuOTQwMzYgMjggNC41NjgzNiAyMi42MjggNC41NjgzNiAxNkM0LjU2ODM2IDkuMzcyIDkuOTQwMzYgNCAxNi41Njg0IDRDMjMuMTk2NCA0IDI4LjU2ODQgOS4zNzIgMjguNTY4NCAxNkMyOC41Njg0IDIyLjYyOCAyMy4xOTY0IDI4IDE2LjU2ODQgMjhaIg0KICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogIDwvZz4NCiAgPGRlZnM+DQogICAgPGNsaXBQYXRoIGlkPSJjbGlwMF8xODk4XzMxMjI3Ij4NCiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4NCiAgICA8L2NsaXBQYXRoPg0KICA8L2RlZnM+DQo8L3N2Zz4=", Ti = ({ children: e }) => {
|
|
655
655
|
const [t, n] = X(window.innerWidth);
|
|
656
656
|
return ve(() => {
|
|
@@ -1045,7 +1045,7 @@ Vt.prototype = {
|
|
|
1045
1045
|
return new Vt(n, 0).mod(e);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
|
-
var yo = Vt, Oe = po,
|
|
1048
|
+
var yo = Vt, Oe = po, Lr = yo, Ui = qo, Ue = {
|
|
1049
1049
|
PATTERN000: 0,
|
|
1050
1050
|
PATTERN001: 1,
|
|
1051
1051
|
PATTERN010: 2,
|
|
@@ -1141,8 +1141,8 @@ var yo = Vt, Oe = po, Sr = yo, Ui = qo, Ue = {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
},
|
|
1143
1143
|
getErrorCorrectPolynomial: function(e) {
|
|
1144
|
-
for (var t = new
|
|
1145
|
-
t = t.multiply(new
|
|
1144
|
+
for (var t = new Lr([1], 0), n = 0; n < e; n++)
|
|
1145
|
+
t = t.multiply(new Lr([1, Ui.gexp(n)], 0));
|
|
1146
1146
|
return t;
|
|
1147
1147
|
},
|
|
1148
1148
|
getLengthInBits: function(e, t) {
|
|
@@ -1358,7 +1358,7 @@ Te.createBytes = function(e, t) {
|
|
|
1358
1358
|
for (var l = 0; l < i[A].length; l++)
|
|
1359
1359
|
i[A][l] = 255 & e.buffer[l + n];
|
|
1360
1360
|
n += m;
|
|
1361
|
-
var d = et.getErrorCorrectPolynomial(c),
|
|
1361
|
+
var d = et.getErrorCorrectPolynomial(c), b = new $i(i[A], d.getLength() - 1), g = b.mod(d);
|
|
1362
1362
|
a[A] = new Array(d.getLength() - 1);
|
|
1363
1363
|
for (var l = 0; l < a[A].length; l++) {
|
|
1364
1364
|
var h = l + g.getLength() - a[A].length;
|
|
@@ -1375,7 +1375,7 @@ Te.createBytes = function(e, t) {
|
|
|
1375
1375
|
l < a[A].length && (v[K++] = a[A][l]);
|
|
1376
1376
|
return v;
|
|
1377
1377
|
};
|
|
1378
|
-
var ea = Te,
|
|
1378
|
+
var ea = Te, Dn = { exports: {} }, Gt = { exports: {} }, le = {};
|
|
1379
1379
|
/** @license React v16.13.1
|
|
1380
1380
|
* react-is.production.min.js
|
|
1381
1381
|
*
|
|
@@ -1384,33 +1384,33 @@ var ea = Te, Nn = { exports: {} }, Gt = { exports: {} }, le = {};
|
|
|
1384
1384
|
* This source code is licensed under the MIT license found in the
|
|
1385
1385
|
* LICENSE file in the root directory of this source tree.
|
|
1386
1386
|
*/
|
|
1387
|
-
var
|
|
1387
|
+
var Or;
|
|
1388
1388
|
function ta() {
|
|
1389
|
-
if (
|
|
1389
|
+
if (Or)
|
|
1390
1390
|
return le;
|
|
1391
|
-
|
|
1392
|
-
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, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113,
|
|
1393
|
-
function
|
|
1394
|
-
if (typeof
|
|
1395
|
-
var P =
|
|
1391
|
+
Or = 1;
|
|
1392
|
+
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, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1393
|
+
function z(C) {
|
|
1394
|
+
if (typeof C == "object" && C !== null) {
|
|
1395
|
+
var P = C.$$typeof;
|
|
1396
1396
|
switch (P) {
|
|
1397
1397
|
case t:
|
|
1398
|
-
switch (
|
|
1398
|
+
switch (C = C.type, C) {
|
|
1399
1399
|
case m:
|
|
1400
1400
|
case c:
|
|
1401
1401
|
case r:
|
|
1402
1402
|
case i:
|
|
1403
1403
|
case o:
|
|
1404
1404
|
case d:
|
|
1405
|
-
return
|
|
1405
|
+
return C;
|
|
1406
1406
|
default:
|
|
1407
|
-
switch (
|
|
1407
|
+
switch (C = C && C.$$typeof, C) {
|
|
1408
1408
|
case A:
|
|
1409
1409
|
case l:
|
|
1410
1410
|
case h:
|
|
1411
1411
|
case g:
|
|
1412
1412
|
case a:
|
|
1413
|
-
return
|
|
1413
|
+
return C;
|
|
1414
1414
|
default:
|
|
1415
1415
|
return P;
|
|
1416
1416
|
}
|
|
@@ -1420,36 +1420,36 @@ function ta() {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
function L(
|
|
1424
|
-
return
|
|
1425
|
-
}
|
|
1426
|
-
return le.AsyncMode = m, le.ConcurrentMode = c, le.ContextConsumer = A, le.ContextProvider = a, le.Element = t, le.ForwardRef = l, le.Fragment = r, le.Lazy = h, le.Memo = g, le.Portal = n, le.Profiler = i, le.StrictMode = o, le.Suspense = d, le.isAsyncMode = function(
|
|
1427
|
-
return L(
|
|
1428
|
-
}, le.isConcurrentMode = L, le.isContextConsumer = function(
|
|
1429
|
-
return
|
|
1430
|
-
}, le.isContextProvider = function(
|
|
1431
|
-
return
|
|
1432
|
-
}, le.isElement = function(
|
|
1433
|
-
return typeof
|
|
1434
|
-
}, le.isForwardRef = function(
|
|
1435
|
-
return
|
|
1436
|
-
}, le.isFragment = function(
|
|
1437
|
-
return
|
|
1438
|
-
}, le.isLazy = function(
|
|
1439
|
-
return
|
|
1440
|
-
}, le.isMemo = function(
|
|
1441
|
-
return
|
|
1442
|
-
}, le.isPortal = function(
|
|
1443
|
-
return
|
|
1444
|
-
}, le.isProfiler = function(
|
|
1445
|
-
return
|
|
1446
|
-
}, le.isStrictMode = function(
|
|
1447
|
-
return
|
|
1448
|
-
}, le.isSuspense = function(
|
|
1449
|
-
return
|
|
1450
|
-
}, le.isValidElementType = function(
|
|
1451
|
-
return typeof
|
|
1452
|
-
}, le.typeOf =
|
|
1423
|
+
function L(C) {
|
|
1424
|
+
return z(C) === c;
|
|
1425
|
+
}
|
|
1426
|
+
return le.AsyncMode = m, le.ConcurrentMode = c, le.ContextConsumer = A, le.ContextProvider = a, le.Element = t, le.ForwardRef = l, le.Fragment = r, le.Lazy = h, le.Memo = g, le.Portal = n, le.Profiler = i, le.StrictMode = o, le.Suspense = d, le.isAsyncMode = function(C) {
|
|
1427
|
+
return L(C) || z(C) === m;
|
|
1428
|
+
}, le.isConcurrentMode = L, le.isContextConsumer = function(C) {
|
|
1429
|
+
return z(C) === A;
|
|
1430
|
+
}, le.isContextProvider = function(C) {
|
|
1431
|
+
return z(C) === a;
|
|
1432
|
+
}, le.isElement = function(C) {
|
|
1433
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
1434
|
+
}, le.isForwardRef = function(C) {
|
|
1435
|
+
return z(C) === l;
|
|
1436
|
+
}, le.isFragment = function(C) {
|
|
1437
|
+
return z(C) === r;
|
|
1438
|
+
}, le.isLazy = function(C) {
|
|
1439
|
+
return z(C) === h;
|
|
1440
|
+
}, le.isMemo = function(C) {
|
|
1441
|
+
return z(C) === g;
|
|
1442
|
+
}, le.isPortal = function(C) {
|
|
1443
|
+
return z(C) === n;
|
|
1444
|
+
}, le.isProfiler = function(C) {
|
|
1445
|
+
return z(C) === i;
|
|
1446
|
+
}, le.isStrictMode = function(C) {
|
|
1447
|
+
return z(C) === o;
|
|
1448
|
+
}, le.isSuspense = function(C) {
|
|
1449
|
+
return z(C) === d;
|
|
1450
|
+
}, le.isValidElementType = function(C) {
|
|
1451
|
+
return typeof C == "string" || typeof C == "function" || C === r || C === c || C === i || C === o || C === d || C === b || typeof C == "object" && C !== null && (C.$$typeof === h || C.$$typeof === g || C.$$typeof === a || C.$$typeof === A || C.$$typeof === l || C.$$typeof === v || C.$$typeof === K || C.$$typeof === E || C.$$typeof === f);
|
|
1452
|
+
}, le.typeOf = z, le;
|
|
1453
1453
|
}
|
|
1454
1454
|
var ue = {};
|
|
1455
1455
|
/** @license React v16.13.1
|
|
@@ -1460,13 +1460,13 @@ var ue = {};
|
|
|
1460
1460
|
* This source code is licensed under the MIT license found in the
|
|
1461
1461
|
* LICENSE file in the root directory of this source tree.
|
|
1462
1462
|
*/
|
|
1463
|
-
var
|
|
1463
|
+
var Er;
|
|
1464
1464
|
function na() {
|
|
1465
|
-
return
|
|
1466
|
-
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, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113,
|
|
1467
|
-
function
|
|
1465
|
+
return Er || (Er = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1466
|
+
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, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1467
|
+
function z(w) {
|
|
1468
1468
|
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1469
|
-
w === r || w === c || w === i || w === o || w === d || w ===
|
|
1469
|
+
w === r || w === c || w === i || w === o || w === d || w === b || typeof w == "object" && w !== null && (w.$$typeof === h || w.$$typeof === g || w.$$typeof === a || w.$$typeof === A || w.$$typeof === l || w.$$typeof === v || w.$$typeof === K || w.$$typeof === E || w.$$typeof === f);
|
|
1470
1470
|
}
|
|
1471
1471
|
function L(w) {
|
|
1472
1472
|
if (typeof w == "object" && w !== null) {
|
|
@@ -1483,14 +1483,14 @@ function na() {
|
|
|
1483
1483
|
case d:
|
|
1484
1484
|
return ae;
|
|
1485
1485
|
default:
|
|
1486
|
-
var
|
|
1487
|
-
switch (
|
|
1486
|
+
var ne = ae && ae.$$typeof;
|
|
1487
|
+
switch (ne) {
|
|
1488
1488
|
case A:
|
|
1489
1489
|
case l:
|
|
1490
1490
|
case h:
|
|
1491
1491
|
case g:
|
|
1492
1492
|
case a:
|
|
1493
|
-
return
|
|
1493
|
+
return ne;
|
|
1494
1494
|
default:
|
|
1495
1495
|
return $;
|
|
1496
1496
|
}
|
|
@@ -1500,11 +1500,11 @@ function na() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var
|
|
1504
|
-
function
|
|
1505
|
-
return O || (O = !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.")),
|
|
1503
|
+
var C = m, P = c, re = A, U = a, de = t, ee = l, ce = r, V = h, _ = g, M = n, W = i, J = o, p = d, O = !1;
|
|
1504
|
+
function F(w) {
|
|
1505
|
+
return O || (O = !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.")), y(w) || L(w) === m;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function y(w) {
|
|
1508
1508
|
return L(w) === c;
|
|
1509
1509
|
}
|
|
1510
1510
|
function I(w) {
|
|
@@ -1516,47 +1516,47 @@ function na() {
|
|
|
1516
1516
|
function k(w) {
|
|
1517
1517
|
return typeof w == "object" && w !== null && w.$$typeof === t;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Y(w) {
|
|
1520
1520
|
return L(w) === l;
|
|
1521
1521
|
}
|
|
1522
1522
|
function G(w) {
|
|
1523
1523
|
return L(w) === r;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function R(w) {
|
|
1526
1526
|
return L(w) === h;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function D(w) {
|
|
1529
1529
|
return L(w) === g;
|
|
1530
1530
|
}
|
|
1531
1531
|
function T(w) {
|
|
1532
1532
|
return L(w) === n;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function B(w) {
|
|
1535
1535
|
return L(w) === i;
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function q(w) {
|
|
1538
1538
|
return L(w) === o;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function j(w) {
|
|
1541
1541
|
return L(w) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
ue.AsyncMode =
|
|
1543
|
+
ue.AsyncMode = C, ue.ConcurrentMode = P, ue.ContextConsumer = re, ue.ContextProvider = U, ue.Element = de, ue.ForwardRef = ee, ue.Fragment = ce, ue.Lazy = V, ue.Memo = _, ue.Portal = M, ue.Profiler = W, ue.StrictMode = J, ue.Suspense = p, ue.isAsyncMode = F, ue.isConcurrentMode = y, ue.isContextConsumer = I, ue.isContextProvider = N, ue.isElement = k, ue.isForwardRef = Y, ue.isFragment = G, ue.isLazy = R, ue.isMemo = D, ue.isPortal = T, ue.isProfiler = B, ue.isStrictMode = q, ue.isSuspense = j, ue.isValidElementType = z, ue.typeOf = L;
|
|
1544
1544
|
}()), ue;
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1546
|
+
var kr;
|
|
1547
1547
|
function Co() {
|
|
1548
|
-
return
|
|
1548
|
+
return kr || (kr = 1, process.env.NODE_ENV === "production" ? Gt.exports = ta() : Gt.exports = na()), Gt.exports;
|
|
1549
1549
|
}
|
|
1550
1550
|
/*
|
|
1551
1551
|
object-assign
|
|
1552
1552
|
(c) Sindre Sorhus
|
|
1553
1553
|
@license MIT
|
|
1554
1554
|
*/
|
|
1555
|
-
var Cn,
|
|
1555
|
+
var Cn, jr;
|
|
1556
1556
|
function ra() {
|
|
1557
|
-
if (
|
|
1557
|
+
if (jr)
|
|
1558
1558
|
return Cn;
|
|
1559
|
-
|
|
1559
|
+
jr = 1;
|
|
1560
1560
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
1561
1561
|
function r(i) {
|
|
1562
1562
|
if (i == null)
|
|
@@ -1592,34 +1592,34 @@ function ra() {
|
|
|
1592
1592
|
t.call(A, d) && (m[d] = A[d]);
|
|
1593
1593
|
if (e) {
|
|
1594
1594
|
c = e(A);
|
|
1595
|
-
for (var
|
|
1596
|
-
n.call(A, c[
|
|
1595
|
+
for (var b = 0; b < c.length; b++)
|
|
1596
|
+
n.call(A, c[b]) && (m[c[b]] = A[c[b]]);
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
return m;
|
|
1600
1600
|
}, Cn;
|
|
1601
1601
|
}
|
|
1602
|
-
var Zn,
|
|
1603
|
-
function
|
|
1604
|
-
if (
|
|
1602
|
+
var Zn, zr;
|
|
1603
|
+
function rr() {
|
|
1604
|
+
if (zr)
|
|
1605
1605
|
return Zn;
|
|
1606
|
-
|
|
1606
|
+
zr = 1;
|
|
1607
1607
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1608
1608
|
return Zn = e, Zn;
|
|
1609
1609
|
}
|
|
1610
|
-
var In,
|
|
1610
|
+
var In, Yr;
|
|
1611
1611
|
function Zo() {
|
|
1612
|
-
return
|
|
1612
|
+
return Yr || (Yr = 1, In = Function.call.bind(Object.prototype.hasOwnProperty)), In;
|
|
1613
1613
|
}
|
|
1614
|
-
var xn,
|
|
1614
|
+
var xn, Jr;
|
|
1615
1615
|
function oa() {
|
|
1616
|
-
if (
|
|
1616
|
+
if (Jr)
|
|
1617
1617
|
return xn;
|
|
1618
|
-
|
|
1618
|
+
Jr = 1;
|
|
1619
1619
|
var e = function() {
|
|
1620
1620
|
};
|
|
1621
1621
|
if (process.env.NODE_ENV !== "production") {
|
|
1622
|
-
var t =
|
|
1622
|
+
var t = rr(), n = {}, r = Zo();
|
|
1623
1623
|
e = function(i) {
|
|
1624
1624
|
var a = "Warning: " + i;
|
|
1625
1625
|
typeof console < "u" && console.error(a);
|
|
@@ -1636,10 +1636,10 @@ function oa() {
|
|
|
1636
1636
|
var d;
|
|
1637
1637
|
try {
|
|
1638
1638
|
if (typeof i[l] != "function") {
|
|
1639
|
-
var
|
|
1639
|
+
var b = Error(
|
|
1640
1640
|
(m || "React class") + ": " + A + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1641
1641
|
);
|
|
1642
|
-
throw
|
|
1642
|
+
throw b.name = "Invariant Violation", b;
|
|
1643
1643
|
}
|
|
1644
1644
|
d = i[l](a, l, m, A, null, t);
|
|
1645
1645
|
} catch (h) {
|
|
@@ -1661,12 +1661,12 @@ function oa() {
|
|
|
1661
1661
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
1662
1662
|
}, xn = o, xn;
|
|
1663
1663
|
}
|
|
1664
|
-
var wn,
|
|
1664
|
+
var wn, Nr;
|
|
1665
1665
|
function ia() {
|
|
1666
|
-
if (
|
|
1666
|
+
if (Nr)
|
|
1667
1667
|
return wn;
|
|
1668
|
-
|
|
1669
|
-
var e = Co(), t = ra(), n =
|
|
1668
|
+
Nr = 1;
|
|
1669
|
+
var e = Co(), t = ra(), n = rr(), r = Zo(), o = oa(), i = function() {
|
|
1670
1670
|
};
|
|
1671
1671
|
process.env.NODE_ENV !== "production" && (i = function(A) {
|
|
1672
1672
|
var m = "Warning: " + A;
|
|
@@ -1681,12 +1681,12 @@ function ia() {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
return wn = function(A, m) {
|
|
1683
1683
|
var c = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
1684
|
-
function d(
|
|
1685
|
-
var I =
|
|
1684
|
+
function d(y) {
|
|
1685
|
+
var I = y && (c && y[c] || y[l]);
|
|
1686
1686
|
if (typeof I == "function")
|
|
1687
1687
|
return I;
|
|
1688
1688
|
}
|
|
1689
|
-
var
|
|
1689
|
+
var b = "<<anonymous>>", g = {
|
|
1690
1690
|
array: K("array"),
|
|
1691
1691
|
bigint: K("bigint"),
|
|
1692
1692
|
bool: K("boolean"),
|
|
@@ -1696,55 +1696,55 @@ function ia() {
|
|
|
1696
1696
|
string: K("string"),
|
|
1697
1697
|
symbol: K("symbol"),
|
|
1698
1698
|
any: E(),
|
|
1699
|
-
arrayOf:
|
|
1699
|
+
arrayOf: z,
|
|
1700
1700
|
element: L(),
|
|
1701
|
-
elementType:
|
|
1701
|
+
elementType: C(),
|
|
1702
1702
|
instanceOf: P,
|
|
1703
|
-
node:
|
|
1704
|
-
objectOf:
|
|
1703
|
+
node: ee(),
|
|
1704
|
+
objectOf: U,
|
|
1705
1705
|
oneOf: re,
|
|
1706
1706
|
oneOfType: de,
|
|
1707
|
-
shape:
|
|
1707
|
+
shape: V,
|
|
1708
1708
|
exact: _
|
|
1709
1709
|
};
|
|
1710
|
-
function h(
|
|
1711
|
-
return
|
|
1710
|
+
function h(y, I) {
|
|
1711
|
+
return y === I ? y !== 0 || 1 / y === 1 / I : y !== y && I !== I;
|
|
1712
1712
|
}
|
|
1713
|
-
function f(
|
|
1714
|
-
this.message =
|
|
1713
|
+
function f(y, I) {
|
|
1714
|
+
this.message = y, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
|
|
1715
1715
|
}
|
|
1716
1716
|
f.prototype = Error.prototype;
|
|
1717
|
-
function v(
|
|
1717
|
+
function v(y) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
1719
|
var I = {}, N = 0;
|
|
1720
|
-
function k(G,
|
|
1721
|
-
if (T = T ||
|
|
1720
|
+
function k(G, R, D, T, B, q, j) {
|
|
1721
|
+
if (T = T || b, q = q || D, j !== n) {
|
|
1722
1722
|
if (m) {
|
|
1723
1723
|
var w = new Error(
|
|
1724
1724
|
"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"
|
|
1725
1725
|
);
|
|
1726
1726
|
throw w.name = "Invariant Violation", w;
|
|
1727
1727
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1728
|
-
var $ = T + ":" +
|
|
1728
|
+
var $ = T + ":" + D;
|
|
1729
1729
|
!I[$] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1730
1730
|
N < 3 && (i(
|
|
1731
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1731
|
+
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + T + "`. 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."
|
|
1732
1732
|
), I[$] = !0, N++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return D
|
|
1735
|
+
return R[D] == null ? G ? R[D] === null ? new f("The " + B + " `" + q + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new f("The " + B + " `" + q + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : y(R, D, T, B, q);
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
return
|
|
1739
|
-
}
|
|
1740
|
-
function K(
|
|
1741
|
-
function I(N, k,
|
|
1742
|
-
var T = N[k],
|
|
1743
|
-
if (
|
|
1744
|
-
var
|
|
1737
|
+
var Y = k.bind(null, !1);
|
|
1738
|
+
return Y.isRequired = k.bind(null, !0), Y;
|
|
1739
|
+
}
|
|
1740
|
+
function K(y) {
|
|
1741
|
+
function I(N, k, Y, G, R, D) {
|
|
1742
|
+
var T = N[k], B = J(T);
|
|
1743
|
+
if (B !== y) {
|
|
1744
|
+
var q = p(T);
|
|
1745
1745
|
return new f(
|
|
1746
|
-
"Invalid " + G + " `" +
|
|
1747
|
-
{ expectedType:
|
|
1746
|
+
"Invalid " + G + " `" + R + "` of type " + ("`" + q + "` supplied to `" + Y + "`, expected ") + ("`" + y + "`."),
|
|
1747
|
+
{ expectedType: y }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
1750
1750
|
return null;
|
|
@@ -1754,156 +1754,156 @@ function ia() {
|
|
|
1754
1754
|
function E() {
|
|
1755
1755
|
return v(a);
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
function I(N, k,
|
|
1759
|
-
if (typeof
|
|
1760
|
-
return new f("Property `" +
|
|
1761
|
-
var
|
|
1762
|
-
if (!Array.isArray(
|
|
1763
|
-
var T = J(
|
|
1764
|
-
return new f("Invalid " + G + " `" +
|
|
1757
|
+
function z(y) {
|
|
1758
|
+
function I(N, k, Y, G, R) {
|
|
1759
|
+
if (typeof y != "function")
|
|
1760
|
+
return new f("Property `" + R + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
1761
|
+
var D = N[k];
|
|
1762
|
+
if (!Array.isArray(D)) {
|
|
1763
|
+
var T = J(D);
|
|
1764
|
+
return new f("Invalid " + G + " `" + R + "` of type " + ("`" + T + "` supplied to `" + Y + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
|
-
for (var
|
|
1767
|
-
var
|
|
1768
|
-
if (
|
|
1769
|
-
return
|
|
1766
|
+
for (var B = 0; B < D.length; B++) {
|
|
1767
|
+
var q = y(D, B, Y, G, R + "[" + B + "]", n);
|
|
1768
|
+
if (q instanceof Error)
|
|
1769
|
+
return q;
|
|
1770
1770
|
}
|
|
1771
1771
|
return null;
|
|
1772
1772
|
}
|
|
1773
1773
|
return v(I);
|
|
1774
1774
|
}
|
|
1775
1775
|
function L() {
|
|
1776
|
-
function
|
|
1777
|
-
var
|
|
1778
|
-
if (!A(
|
|
1779
|
-
var
|
|
1780
|
-
return new f("Invalid " +
|
|
1776
|
+
function y(I, N, k, Y, G) {
|
|
1777
|
+
var R = I[N];
|
|
1778
|
+
if (!A(R)) {
|
|
1779
|
+
var D = J(R);
|
|
1780
|
+
return new f("Invalid " + Y + " `" + G + "` of type " + ("`" + D + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
|
-
return v(
|
|
1785
|
-
}
|
|
1786
|
-
function
|
|
1787
|
-
function
|
|
1788
|
-
var
|
|
1789
|
-
if (!e.isValidElementType(
|
|
1790
|
-
var
|
|
1791
|
-
return new f("Invalid " +
|
|
1784
|
+
return v(y);
|
|
1785
|
+
}
|
|
1786
|
+
function C() {
|
|
1787
|
+
function y(I, N, k, Y, G) {
|
|
1788
|
+
var R = I[N];
|
|
1789
|
+
if (!e.isValidElementType(R)) {
|
|
1790
|
+
var D = J(R);
|
|
1791
|
+
return new f("Invalid " + Y + " `" + G + "` of type " + ("`" + D + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
|
-
return v(
|
|
1795
|
+
return v(y);
|
|
1796
1796
|
}
|
|
1797
|
-
function P(
|
|
1798
|
-
function I(N, k,
|
|
1799
|
-
if (!(N[k] instanceof
|
|
1800
|
-
var
|
|
1801
|
-
return new f("Invalid " + G + " `" +
|
|
1797
|
+
function P(y) {
|
|
1798
|
+
function I(N, k, Y, G, R) {
|
|
1799
|
+
if (!(N[k] instanceof y)) {
|
|
1800
|
+
var D = y.name || b, T = F(N[k]);
|
|
1801
|
+
return new f("Invalid " + G + " `" + R + "` of type " + ("`" + T + "` supplied to `" + Y + "`, expected ") + ("instance of `" + D + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
1805
1805
|
return v(I);
|
|
1806
1806
|
}
|
|
1807
|
-
function re(
|
|
1808
|
-
if (!Array.isArray(
|
|
1807
|
+
function re(y) {
|
|
1808
|
+
if (!Array.isArray(y))
|
|
1809
1809
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1810
1810
|
"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])."
|
|
1811
1811
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1812
|
-
function I(N, k,
|
|
1813
|
-
for (var
|
|
1814
|
-
if (h(
|
|
1812
|
+
function I(N, k, Y, G, R) {
|
|
1813
|
+
for (var D = N[k], T = 0; T < y.length; T++)
|
|
1814
|
+
if (h(D, y[T]))
|
|
1815
1815
|
return null;
|
|
1816
|
-
var
|
|
1816
|
+
var B = JSON.stringify(y, function(j, w) {
|
|
1817
1817
|
var $ = p(w);
|
|
1818
1818
|
return $ === "symbol" ? String(w) : w;
|
|
1819
1819
|
});
|
|
1820
|
-
return new f("Invalid " + G + " `" +
|
|
1820
|
+
return new f("Invalid " + G + " `" + R + "` of value `" + String(D) + "` " + ("supplied to `" + Y + "`, expected one of " + B + "."));
|
|
1821
1821
|
}
|
|
1822
1822
|
return v(I);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
function I(N, k,
|
|
1826
|
-
if (typeof
|
|
1827
|
-
return new f("Property `" +
|
|
1828
|
-
var
|
|
1824
|
+
function U(y) {
|
|
1825
|
+
function I(N, k, Y, G, R) {
|
|
1826
|
+
if (typeof y != "function")
|
|
1827
|
+
return new f("Property `" + R + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var D = N[k], T = J(D);
|
|
1829
1829
|
if (T !== "object")
|
|
1830
|
-
return new f("Invalid " + G + " `" +
|
|
1831
|
-
for (var
|
|
1832
|
-
if (r(
|
|
1833
|
-
var
|
|
1834
|
-
if (
|
|
1835
|
-
return
|
|
1830
|
+
return new f("Invalid " + G + " `" + R + "` of type " + ("`" + T + "` supplied to `" + Y + "`, expected an object."));
|
|
1831
|
+
for (var B in D)
|
|
1832
|
+
if (r(D, B)) {
|
|
1833
|
+
var q = y(D, B, Y, G, R + "." + B, n);
|
|
1834
|
+
if (q instanceof Error)
|
|
1835
|
+
return q;
|
|
1836
1836
|
}
|
|
1837
1837
|
return null;
|
|
1838
1838
|
}
|
|
1839
1839
|
return v(I);
|
|
1840
1840
|
}
|
|
1841
|
-
function de(
|
|
1842
|
-
if (!Array.isArray(
|
|
1841
|
+
function de(y) {
|
|
1842
|
+
if (!Array.isArray(y))
|
|
1843
1843
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1844
|
-
for (var I = 0; I <
|
|
1845
|
-
var N =
|
|
1844
|
+
for (var I = 0; I < y.length; I++) {
|
|
1845
|
+
var N = y[I];
|
|
1846
1846
|
if (typeof N != "function")
|
|
1847
1847
|
return i(
|
|
1848
1848
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + O(N) + " at index " + I + "."
|
|
1849
1849
|
), a;
|
|
1850
1850
|
}
|
|
1851
|
-
function k(
|
|
1852
|
-
for (var
|
|
1853
|
-
var
|
|
1851
|
+
function k(Y, G, R, D, T) {
|
|
1852
|
+
for (var B = [], q = 0; q < y.length; q++) {
|
|
1853
|
+
var j = y[q], w = j(Y, G, R, D, T, n);
|
|
1854
1854
|
if (w == null)
|
|
1855
1855
|
return null;
|
|
1856
|
-
w.data && r(w.data, "expectedType") &&
|
|
1856
|
+
w.data && r(w.data, "expectedType") && B.push(w.data.expectedType);
|
|
1857
1857
|
}
|
|
1858
|
-
var $ =
|
|
1859
|
-
return new f("Invalid " +
|
|
1858
|
+
var $ = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
|
|
1859
|
+
return new f("Invalid " + D + " `" + T + "` supplied to " + ("`" + R + "`" + $ + "."));
|
|
1860
1860
|
}
|
|
1861
1861
|
return v(k);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
function
|
|
1865
|
-
return M(I[N]) ? null : new f("Invalid " +
|
|
1863
|
+
function ee() {
|
|
1864
|
+
function y(I, N, k, Y, G) {
|
|
1865
|
+
return M(I[N]) ? null : new f("Invalid " + Y + " `" + G + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
|
-
return v(
|
|
1867
|
+
return v(y);
|
|
1868
1868
|
}
|
|
1869
|
-
function ce(
|
|
1869
|
+
function ce(y, I, N, k, Y) {
|
|
1870
1870
|
return new f(
|
|
1871
|
-
(
|
|
1871
|
+
(y || "React class") + ": " + I + " type `" + N + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1875
|
-
function I(N, k,
|
|
1876
|
-
var
|
|
1874
|
+
function V(y) {
|
|
1875
|
+
function I(N, k, Y, G, R) {
|
|
1876
|
+
var D = N[k], T = J(D);
|
|
1877
1877
|
if (T !== "object")
|
|
1878
|
-
return new f("Invalid " + G + " `" +
|
|
1879
|
-
for (var
|
|
1880
|
-
var
|
|
1881
|
-
if (typeof
|
|
1882
|
-
return ce(
|
|
1883
|
-
var
|
|
1884
|
-
if (
|
|
1885
|
-
return
|
|
1878
|
+
return new f("Invalid " + G + " `" + R + "` of type `" + T + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
1879
|
+
for (var B in y) {
|
|
1880
|
+
var q = y[B];
|
|
1881
|
+
if (typeof q != "function")
|
|
1882
|
+
return ce(Y, G, R, B, p(q));
|
|
1883
|
+
var j = q(D, B, Y, G, R + "." + B, n);
|
|
1884
|
+
if (j)
|
|
1885
|
+
return j;
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
}
|
|
1889
1889
|
return v(I);
|
|
1890
1890
|
}
|
|
1891
|
-
function _(
|
|
1892
|
-
function I(N, k,
|
|
1893
|
-
var
|
|
1891
|
+
function _(y) {
|
|
1892
|
+
function I(N, k, Y, G, R) {
|
|
1893
|
+
var D = N[k], T = J(D);
|
|
1894
1894
|
if (T !== "object")
|
|
1895
|
-
return new f("Invalid " + G + " `" +
|
|
1896
|
-
var
|
|
1897
|
-
for (var
|
|
1898
|
-
var
|
|
1899
|
-
if (r(
|
|
1900
|
-
return ce(
|
|
1901
|
-
if (!
|
|
1895
|
+
return new f("Invalid " + G + " `" + R + "` of type `" + T + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
1896
|
+
var B = t({}, N[k], y);
|
|
1897
|
+
for (var q in B) {
|
|
1898
|
+
var j = y[q];
|
|
1899
|
+
if (r(y, q) && typeof j != "function")
|
|
1900
|
+
return ce(Y, G, R, q, p(j));
|
|
1901
|
+
if (!j)
|
|
1902
1902
|
return new f(
|
|
1903
|
-
"Invalid " + G + " `" +
|
|
1904
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1903
|
+
"Invalid " + G + " `" + R + "` key `" + q + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(N[k], null, " ") + `
|
|
1904
|
+
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var w =
|
|
1906
|
+
var w = j(D, q, Y, G, R + "." + q, n);
|
|
1907
1907
|
if (w)
|
|
1908
1908
|
return w;
|
|
1909
1909
|
}
|
|
@@ -1911,30 +1911,30 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1911
1911
|
}
|
|
1912
1912
|
return v(I);
|
|
1913
1913
|
}
|
|
1914
|
-
function M(
|
|
1915
|
-
switch (typeof
|
|
1914
|
+
function M(y) {
|
|
1915
|
+
switch (typeof y) {
|
|
1916
1916
|
case "number":
|
|
1917
1917
|
case "string":
|
|
1918
1918
|
case "undefined":
|
|
1919
1919
|
return !0;
|
|
1920
1920
|
case "boolean":
|
|
1921
|
-
return !
|
|
1921
|
+
return !y;
|
|
1922
1922
|
case "object":
|
|
1923
|
-
if (Array.isArray(
|
|
1924
|
-
return
|
|
1925
|
-
if (
|
|
1923
|
+
if (Array.isArray(y))
|
|
1924
|
+
return y.every(M);
|
|
1925
|
+
if (y === null || A(y))
|
|
1926
1926
|
return !0;
|
|
1927
|
-
var I = d(
|
|
1927
|
+
var I = d(y);
|
|
1928
1928
|
if (I) {
|
|
1929
|
-
var N = I.call(
|
|
1930
|
-
if (I !==
|
|
1929
|
+
var N = I.call(y), k;
|
|
1930
|
+
if (I !== y.entries) {
|
|
1931
1931
|
for (; !(k = N.next()).done; )
|
|
1932
1932
|
if (!M(k.value))
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
} else
|
|
1935
1935
|
for (; !(k = N.next()).done; ) {
|
|
1936
|
-
var
|
|
1937
|
-
if (
|
|
1936
|
+
var Y = k.value;
|
|
1937
|
+
if (Y && !M(Y[1]))
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
}
|
|
1940
1940
|
} else
|
|
@@ -1944,27 +1944,27 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1944
1944
|
return !1;
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
|
-
function W(
|
|
1948
|
-
return
|
|
1947
|
+
function W(y, I) {
|
|
1948
|
+
return y === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
|
|
1949
1949
|
}
|
|
1950
|
-
function J(
|
|
1951
|
-
var I = typeof
|
|
1952
|
-
return Array.isArray(
|
|
1950
|
+
function J(y) {
|
|
1951
|
+
var I = typeof y;
|
|
1952
|
+
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : W(I, y) ? "symbol" : I;
|
|
1953
1953
|
}
|
|
1954
|
-
function p(
|
|
1955
|
-
if (typeof
|
|
1956
|
-
return "" +
|
|
1957
|
-
var I = J(
|
|
1954
|
+
function p(y) {
|
|
1955
|
+
if (typeof y > "u" || y === null)
|
|
1956
|
+
return "" + y;
|
|
1957
|
+
var I = J(y);
|
|
1958
1958
|
if (I === "object") {
|
|
1959
|
-
if (
|
|
1959
|
+
if (y instanceof Date)
|
|
1960
1960
|
return "date";
|
|
1961
|
-
if (
|
|
1961
|
+
if (y instanceof RegExp)
|
|
1962
1962
|
return "regexp";
|
|
1963
1963
|
}
|
|
1964
1964
|
return I;
|
|
1965
1965
|
}
|
|
1966
|
-
function O(
|
|
1967
|
-
var I = p(
|
|
1966
|
+
function O(y) {
|
|
1967
|
+
var I = p(y);
|
|
1968
1968
|
switch (I) {
|
|
1969
1969
|
case "array":
|
|
1970
1970
|
case "object":
|
|
@@ -1977,18 +1977,18 @@ Valid keys: ` + JSON.stringify(Object.keys(q), null, " ")
|
|
|
1977
1977
|
return I;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1981
|
-
return !
|
|
1980
|
+
function F(y) {
|
|
1981
|
+
return !y.constructor || !y.constructor.name ? b : y.constructor.name;
|
|
1982
1982
|
}
|
|
1983
1983
|
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
1984
1984
|
}, wn;
|
|
1985
1985
|
}
|
|
1986
|
-
var Kn,
|
|
1986
|
+
var Kn, Dr;
|
|
1987
1987
|
function aa() {
|
|
1988
|
-
if (
|
|
1988
|
+
if (Dr)
|
|
1989
1989
|
return Kn;
|
|
1990
|
-
|
|
1991
|
-
var e =
|
|
1990
|
+
Dr = 1;
|
|
1991
|
+
var e = rr();
|
|
1992
1992
|
function t() {
|
|
1993
1993
|
}
|
|
1994
1994
|
function n() {
|
|
@@ -1996,10 +1996,10 @@ function aa() {
|
|
|
1996
1996
|
return n.resetWarningCache = t, Kn = function() {
|
|
1997
1997
|
function r(a, A, m, c, l, d) {
|
|
1998
1998
|
if (d !== e) {
|
|
1999
|
-
var
|
|
1999
|
+
var b = new Error(
|
|
2000
2000
|
"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"
|
|
2001
2001
|
);
|
|
2002
|
-
throw
|
|
2002
|
+
throw b.name = "Invariant Violation", b;
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
r.isRequired = r;
|
|
@@ -2034,11 +2034,11 @@ function aa() {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
if (process.env.NODE_ENV !== "production") {
|
|
2036
2036
|
var Aa = Co(), sa = !0;
|
|
2037
|
-
|
|
2037
|
+
Dn.exports = ia()(Aa.isElement, sa);
|
|
2038
2038
|
} else
|
|
2039
|
-
|
|
2040
|
-
var An =
|
|
2041
|
-
Object.defineProperty(
|
|
2039
|
+
Dn.exports = aa()();
|
|
2040
|
+
var An = Dn.exports, or = {};
|
|
2041
|
+
Object.defineProperty(or, "__esModule", {
|
|
2042
2042
|
value: !0
|
|
2043
2043
|
});
|
|
2044
2044
|
var la = Object.assign || function(e) {
|
|
@@ -2087,7 +2087,7 @@ var ma = {
|
|
|
2087
2087
|
sn.displayName = "QRCodeSvg";
|
|
2088
2088
|
sn.propTypes = ma;
|
|
2089
2089
|
sn.defaultProps = da;
|
|
2090
|
-
|
|
2090
|
+
or.default = sn;
|
|
2091
2091
|
Object.defineProperty(an, "__esModule", {
|
|
2092
2092
|
value: !0
|
|
2093
2093
|
});
|
|
@@ -2099,7 +2099,7 @@ var pa = Object.assign || function(e) {
|
|
|
2099
2099
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2100
2100
|
}
|
|
2101
2101
|
return e;
|
|
2102
|
-
}, fa = ea, ha = jt(fa), ga = ho, qa = jt(ga), ya = An, Pe = jt(ya), wo = se, va = jt(wo), ba =
|
|
2102
|
+
}, fa = ea, ha = jt(fa), ga = ho, qa = jt(ga), ya = An, Pe = jt(ya), wo = se, va = jt(wo), ba = or, Ca = jt(ba);
|
|
2103
2103
|
function jt(e) {
|
|
2104
2104
|
return e && e.__esModule ? e : { default: e };
|
|
2105
2105
|
}
|
|
@@ -2127,14 +2127,14 @@ var Ia = {
|
|
|
2127
2127
|
return va.default.createElement(Ca.default, pa({}, A, {
|
|
2128
2128
|
bgColor: n,
|
|
2129
2129
|
bgD: c.map(function(l, d) {
|
|
2130
|
-
return l.map(function(
|
|
2131
|
-
return
|
|
2130
|
+
return l.map(function(b, g) {
|
|
2131
|
+
return b ? "" : "M " + g + " " + d + " l 1 0 0 1 -1 0 Z";
|
|
2132
2132
|
}).join(" ");
|
|
2133
2133
|
}).join(" "),
|
|
2134
2134
|
fgColor: r,
|
|
2135
2135
|
fgD: c.map(function(l, d) {
|
|
2136
|
-
return l.map(function(
|
|
2137
|
-
return
|
|
2136
|
+
return l.map(function(b, g) {
|
|
2137
|
+
return b ? "M " + g + " " + d + " l 1 0 0 1 -1 0 Z" : "";
|
|
2138
2138
|
}).join(" ");
|
|
2139
2139
|
}).join(" "),
|
|
2140
2140
|
ref: t,
|
|
@@ -2191,7 +2191,7 @@ function Wo(e, t) {
|
|
|
2191
2191
|
return e.apply(t, arguments);
|
|
2192
2192
|
};
|
|
2193
2193
|
}
|
|
2194
|
-
const { toString: Ka } = Object.prototype, { getPrototypeOf:
|
|
2194
|
+
const { toString: Ka } = Object.prototype, { getPrototypeOf: ir } = Object, ln = ((e) => (t) => {
|
|
2195
2195
|
const n = Ka.call(t);
|
|
2196
2196
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
2197
2197
|
})(/* @__PURE__ */ Object.create(null)), Xe = (e) => (e = e.toLowerCase(), (t) => ln(t) === e), un = (e) => (t) => typeof t === e, { isArray: qt } = Array, Lt = un("undefined");
|
|
@@ -2206,7 +2206,7 @@ function Ma(e) {
|
|
|
2206
2206
|
const Sa = un("string"), je = un("function"), So = un("number"), cn = (e) => e !== null && typeof e == "object", La = (e) => e === !0 || e === !1, Bt = (e) => {
|
|
2207
2207
|
if (ln(e) !== "object")
|
|
2208
2208
|
return !1;
|
|
2209
|
-
const t =
|
|
2209
|
+
const t = ir(e);
|
|
2210
2210
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2211
2211
|
}, Oa = Xe("Date"), Ea = Xe("File"), ka = Xe("Blob"), ja = Xe("FileList"), za = (e) => cn(e) && je(e.pipe), Ya = (e) => {
|
|
2212
2212
|
let t;
|
|
@@ -2237,10 +2237,10 @@ function Lo(e, t) {
|
|
|
2237
2237
|
return null;
|
|
2238
2238
|
}
|
|
2239
2239
|
const Oo = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Eo = (e) => !Lt(e) && e !== Oo;
|
|
2240
|
-
function
|
|
2240
|
+
function Rn() {
|
|
2241
2241
|
const { caseless: e } = Eo(this) && this || {}, t = {}, n = (r, o) => {
|
|
2242
2242
|
const i = e && Lo(t, o) || o;
|
|
2243
|
-
Bt(t[i]) && Bt(r) ? t[i] =
|
|
2243
|
+
Bt(t[i]) && Bt(r) ? t[i] = Rn(t[i], r) : Bt(r) ? t[i] = Rn({}, r) : qt(r) ? t[i] = r.slice() : t[i] = r;
|
|
2244
2244
|
};
|
|
2245
2245
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
2246
2246
|
arguments[r] && Yt(arguments[r], n);
|
|
@@ -2260,7 +2260,7 @@ const Da = (e, t, n, { allOwnKeys: r } = {}) => (Yt(t, (o, i) => {
|
|
|
2260
2260
|
do {
|
|
2261
2261
|
for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
|
|
2262
2262
|
a = o[i], (!r || r(a, e, t)) && !A[a] && (t[a] = e[a], A[a] = !0);
|
|
2263
|
-
e = n !== !1 &&
|
|
2263
|
+
e = n !== !1 && ir(e);
|
|
2264
2264
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
2265
2265
|
return t;
|
|
2266
2266
|
}, Ha = (e, t, n) => {
|
|
@@ -2279,7 +2279,7 @@ const Da = (e, t, n, { allOwnKeys: r } = {}) => (Yt(t, (o, i) => {
|
|
|
2279
2279
|
for (; t-- > 0; )
|
|
2280
2280
|
n[t] = e[t];
|
|
2281
2281
|
return n;
|
|
2282
|
-
}, Qa = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
2282
|
+
}, Qa = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ir(Uint8Array)), Pa = (e, t) => {
|
|
2283
2283
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
2284
2284
|
let o;
|
|
2285
2285
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -2297,7 +2297,7 @@ const Da = (e, t, n, { allOwnKeys: r } = {}) => (Yt(t, (o, i) => {
|
|
|
2297
2297
|
function(n, r, o) {
|
|
2298
2298
|
return r.toUpperCase() + o;
|
|
2299
2299
|
}
|
|
2300
|
-
),
|
|
2300
|
+
), Rr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Fa = Xe("RegExp"), ko = (e, t) => {
|
|
2301
2301
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
2302
2302
|
Yt(n, (o, i) => {
|
|
2303
2303
|
let a;
|
|
@@ -2326,10 +2326,10 @@ const Da = (e, t, n, { allOwnKeys: r } = {}) => (Yt(t, (o, i) => {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
return qt(e) ? r(e) : r(String(e).split(t)), n;
|
|
2328
2328
|
}, eA = () => {
|
|
2329
|
-
}, tA = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Wn = "abcdefghijklmnopqrstuvwxyz",
|
|
2330
|
-
DIGIT:
|
|
2329
|
+
}, tA = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Wn = "abcdefghijklmnopqrstuvwxyz", Gr = "0123456789", jo = {
|
|
2330
|
+
DIGIT: Gr,
|
|
2331
2331
|
ALPHA: Wn,
|
|
2332
|
-
ALPHA_DIGIT: Wn + Wn.toUpperCase() +
|
|
2332
|
+
ALPHA_DIGIT: Wn + Wn.toUpperCase() + Gr
|
|
2333
2333
|
}, nA = (e = 16, t = jo.ALPHA_DIGIT) => {
|
|
2334
2334
|
let n = "";
|
|
2335
2335
|
const { length: r } = t;
|
|
@@ -2379,7 +2379,7 @@ const oA = (e) => {
|
|
|
2379
2379
|
isTypedArray: Qa,
|
|
2380
2380
|
isFileList: ja,
|
|
2381
2381
|
forEach: Yt,
|
|
2382
|
-
merge:
|
|
2382
|
+
merge: Rn,
|
|
2383
2383
|
extend: Da,
|
|
2384
2384
|
trim: Na,
|
|
2385
2385
|
stripBOM: Ra,
|
|
@@ -2392,8 +2392,8 @@ const oA = (e) => {
|
|
|
2392
2392
|
forEachEntry: Pa,
|
|
2393
2393
|
matchAll: Va,
|
|
2394
2394
|
isHTMLForm: Ba,
|
|
2395
|
-
hasOwnProperty:
|
|
2396
|
-
hasOwnProp:
|
|
2395
|
+
hasOwnProperty: Rr,
|
|
2396
|
+
hasOwnProp: Rr,
|
|
2397
2397
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
2398
2398
|
reduceDescriptors: ko,
|
|
2399
2399
|
freezeMethods: _a,
|
|
@@ -2462,19 +2462,19 @@ ie.from = (e, t, n, r, o, i) => {
|
|
|
2462
2462
|
}, (A) => A !== "isAxiosError"), ie.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
|
|
2463
2463
|
};
|
|
2464
2464
|
const AA = null;
|
|
2465
|
-
function
|
|
2465
|
+
function Gn(e) {
|
|
2466
2466
|
return Z.isPlainObject(e) || Z.isArray(e);
|
|
2467
2467
|
}
|
|
2468
2468
|
function Jo(e) {
|
|
2469
2469
|
return Z.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function Tr(e, t, n) {
|
|
2472
2472
|
return e ? e.concat(t).map(function(o, i) {
|
|
2473
2473
|
return o = Jo(o), !n && i ? "[" + o + "]" : o;
|
|
2474
2474
|
}).join(n ? "." : "") : t;
|
|
2475
2475
|
}
|
|
2476
2476
|
function sA(e) {
|
|
2477
|
-
return Z.isArray(e) && !e.some(
|
|
2477
|
+
return Z.isArray(e) && !e.some(Gn);
|
|
2478
2478
|
}
|
|
2479
2479
|
const lA = Z.toFlatObject(Z, {}, null, function(t) {
|
|
2480
2480
|
return /^is[A-Z]/.test(t);
|
|
@@ -2507,20 +2507,20 @@ function mn(e, t, n) {
|
|
|
2507
2507
|
if (Z.endsWith(f, "{}"))
|
|
2508
2508
|
f = r ? f : f.slice(0, -2), h = JSON.stringify(h);
|
|
2509
2509
|
else if (Z.isArray(h) && sA(h) || (Z.isFileList(h) || Z.endsWith(f, "[]")) && (K = Z.toArray(h)))
|
|
2510
|
-
return f = Jo(f), K.forEach(function(
|
|
2511
|
-
!(Z.isUndefined(
|
|
2510
|
+
return f = Jo(f), K.forEach(function(z, L) {
|
|
2511
|
+
!(Z.isUndefined(z) || z === null) && t.append(
|
|
2512
2512
|
// eslint-disable-next-line no-nested-ternary
|
|
2513
|
-
a === !0 ?
|
|
2514
|
-
c(
|
|
2513
|
+
a === !0 ? Tr([f], L, i) : a === null ? f : f + "[]",
|
|
2514
|
+
c(z)
|
|
2515
2515
|
);
|
|
2516
2516
|
}), !1;
|
|
2517
2517
|
}
|
|
2518
|
-
return
|
|
2518
|
+
return Gn(h) ? !0 : (t.append(Tr(v, f, i), c(h)), !1);
|
|
2519
2519
|
}
|
|
2520
|
-
const d = [],
|
|
2520
|
+
const d = [], b = Object.assign(lA, {
|
|
2521
2521
|
defaultVisitor: l,
|
|
2522
2522
|
convertValue: c,
|
|
2523
|
-
isVisitable:
|
|
2523
|
+
isVisitable: Gn
|
|
2524
2524
|
});
|
|
2525
2525
|
function g(h, f) {
|
|
2526
2526
|
if (!Z.isUndefined(h)) {
|
|
@@ -2532,7 +2532,7 @@ function mn(e, t, n) {
|
|
|
2532
2532
|
K,
|
|
2533
2533
|
Z.isString(E) ? E.trim() : E,
|
|
2534
2534
|
f,
|
|
2535
|
-
|
|
2535
|
+
b
|
|
2536
2536
|
)) === !0 && g(K, f ? f.concat(E) : [E]);
|
|
2537
2537
|
}), d.pop();
|
|
2538
2538
|
}
|
|
@@ -2541,7 +2541,7 @@ function mn(e, t, n) {
|
|
|
2541
2541
|
throw new TypeError("data must be an object");
|
|
2542
2542
|
return g(e), t;
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2544
|
+
function Hr(e) {
|
|
2545
2545
|
const t = {
|
|
2546
2546
|
"!": "%21",
|
|
2547
2547
|
"'": "%27",
|
|
@@ -2555,17 +2555,17 @@ function Tr(e) {
|
|
|
2555
2555
|
return t[r];
|
|
2556
2556
|
});
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2558
|
+
function ar(e, t) {
|
|
2559
2559
|
this._pairs = [], e && mn(e, this, t);
|
|
2560
2560
|
}
|
|
2561
|
-
const No =
|
|
2561
|
+
const No = ar.prototype;
|
|
2562
2562
|
No.append = function(t, n) {
|
|
2563
2563
|
this._pairs.push([t, n]);
|
|
2564
2564
|
};
|
|
2565
2565
|
No.toString = function(t) {
|
|
2566
2566
|
const n = t ? function(r) {
|
|
2567
|
-
return t.call(this, r,
|
|
2568
|
-
} :
|
|
2567
|
+
return t.call(this, r, Hr);
|
|
2568
|
+
} : Hr;
|
|
2569
2569
|
return this._pairs.map(function(o) {
|
|
2570
2570
|
return n(o[0]) + "=" + n(o[1]);
|
|
2571
2571
|
}, "").join("&");
|
|
@@ -2578,7 +2578,7 @@ function Do(e, t, n) {
|
|
|
2578
2578
|
return e;
|
|
2579
2579
|
const r = n && n.encode || uA, o = n && n.serialize;
|
|
2580
2580
|
let i;
|
|
2581
|
-
if (o ? i = o(t, n) : i = Z.isURLSearchParams(t) ? t.toString() : new
|
|
2581
|
+
if (o ? i = o(t, n) : i = Z.isURLSearchParams(t) ? t.toString() : new ar(t, n).toString(r), i) {
|
|
2582
2582
|
const a = e.indexOf("#");
|
|
2583
2583
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
2584
2584
|
}
|
|
@@ -2638,11 +2638,11 @@ class cA {
|
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
const
|
|
2641
|
+
const Xr = cA, Ro = {
|
|
2642
2642
|
silentJSONParsing: !0,
|
|
2643
2643
|
forcedJSONParsing: !0,
|
|
2644
2644
|
clarifyTimeoutError: !1
|
|
2645
|
-
}, mA = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
2645
|
+
}, mA = typeof URLSearchParams < "u" ? URLSearchParams : ar, dA = typeof FormData < "u" ? FormData : null, pA = typeof Blob < "u" ? Blob : null, fA = (() => {
|
|
2646
2646
|
let e;
|
|
2647
2647
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
2648
2648
|
})(), hA = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -2700,7 +2700,7 @@ function vA(e, t, n) {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
return (n || JSON.stringify)(e);
|
|
2702
2702
|
}
|
|
2703
|
-
const
|
|
2703
|
+
const Ar = {
|
|
2704
2704
|
transitional: Ro,
|
|
2705
2705
|
adapter: ["xhr", "http"],
|
|
2706
2706
|
transformRequest: [function(t, n) {
|
|
@@ -2729,7 +2729,7 @@ const ar = {
|
|
|
2729
2729
|
return i || o ? (n.setContentType("application/json", !1), vA(t)) : t;
|
|
2730
2730
|
}],
|
|
2731
2731
|
transformResponse: [function(t) {
|
|
2732
|
-
const n = this.transitional ||
|
|
2732
|
+
const n = this.transitional || Ar.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
2733
2733
|
if (t && Z.isString(t) && (r && !this.responseType || o)) {
|
|
2734
2734
|
const a = !(n && n.silentJSONParsing) && o;
|
|
2735
2735
|
try {
|
|
@@ -2765,9 +2765,9 @@ const ar = {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
};
|
|
2767
2767
|
Z.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2768
|
-
|
|
2768
|
+
Ar.headers[e] = {};
|
|
2769
2769
|
});
|
|
2770
|
-
const
|
|
2770
|
+
const sr = Ar, bA = Z.toObjectSet([
|
|
2771
2771
|
"age",
|
|
2772
2772
|
"authorization",
|
|
2773
2773
|
"content-length",
|
|
@@ -2792,7 +2792,7 @@ const Ar = ar, bA = Z.toObjectSet([
|
|
|
2792
2792
|
`).forEach(function(a) {
|
|
2793
2793
|
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && bA[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
2794
2794
|
}), t;
|
|
2795
|
-
},
|
|
2795
|
+
}, Qr = Symbol("internals");
|
|
2796
2796
|
function wt(e) {
|
|
2797
2797
|
return e && String(e).trim().toLowerCase();
|
|
2798
2798
|
}
|
|
@@ -2930,7 +2930,7 @@ class dn {
|
|
|
2930
2930
|
return n.forEach((o) => r.set(o)), r;
|
|
2931
2931
|
}
|
|
2932
2932
|
static accessor(t) {
|
|
2933
|
-
const r = (this[
|
|
2933
|
+
const r = (this[Qr] = this[Qr] = {
|
|
2934
2934
|
accessors: {}
|
|
2935
2935
|
}).accessors, o = this.prototype;
|
|
2936
2936
|
function i(a) {
|
|
@@ -2953,7 +2953,7 @@ Z.reduceDescriptors(dn.prototype, ({ value: e }, t) => {
|
|
|
2953
2953
|
Z.freezeMethods(dn);
|
|
2954
2954
|
const Be = dn;
|
|
2955
2955
|
function Sn(e, t) {
|
|
2956
|
-
const n = this ||
|
|
2956
|
+
const n = this || sr, r = t || n, o = Be.from(r.headers);
|
|
2957
2957
|
let i = r.data;
|
|
2958
2958
|
return Z.forEach(e, function(A) {
|
|
2959
2959
|
i = A.call(n, i, o.normalize(), t ? t.status : void 0);
|
|
@@ -3061,16 +3061,16 @@ function EA(e, t) {
|
|
|
3061
3061
|
return t = t !== void 0 ? t : 1e3, function(m) {
|
|
3062
3062
|
const c = Date.now(), l = r[i];
|
|
3063
3063
|
a || (a = c), n[o] = m, r[o] = c;
|
|
3064
|
-
let d = i,
|
|
3064
|
+
let d = i, b = 0;
|
|
3065
3065
|
for (; d !== o; )
|
|
3066
|
-
|
|
3066
|
+
b += n[d++], d = d % e;
|
|
3067
3067
|
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), c - a < t)
|
|
3068
3068
|
return;
|
|
3069
3069
|
const g = l && c - l;
|
|
3070
|
-
return g ? Math.round(
|
|
3070
|
+
return g ? Math.round(b * 1e3 / g) : void 0;
|
|
3071
3071
|
};
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function Pr(e, t) {
|
|
3074
3074
|
let n = 0;
|
|
3075
3075
|
const r = EA(50, 250);
|
|
3076
3076
|
return (o) => {
|
|
@@ -3105,7 +3105,7 @@ const kA = typeof XMLHttpRequest < "u", jA = kA && function(e) {
|
|
|
3105
3105
|
}
|
|
3106
3106
|
const d = Ho(e.baseURL, e.url);
|
|
3107
3107
|
l.open(e.method.toUpperCase(), Do(d, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
3108
|
-
function
|
|
3108
|
+
function b() {
|
|
3109
3109
|
if (!l)
|
|
3110
3110
|
return;
|
|
3111
3111
|
const h = Be.from(
|
|
@@ -3124,8 +3124,8 @@ const kA = typeof XMLHttpRequest < "u", jA = kA && function(e) {
|
|
|
3124
3124
|
r(E), m();
|
|
3125
3125
|
}, v), l = null;
|
|
3126
3126
|
}
|
|
3127
|
-
if ("onloadend" in l ? l.onloadend =
|
|
3128
|
-
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
3127
|
+
if ("onloadend" in l ? l.onloadend = b : l.onreadystatechange = function() {
|
|
3128
|
+
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
3129
3129
|
}, l.onabort = function() {
|
|
3130
3130
|
l && (r(new ie("Request aborted", ie.ECONNABORTED, e, l)), l = null);
|
|
3131
3131
|
}, l.onerror = function() {
|
|
@@ -3145,7 +3145,7 @@ const kA = typeof XMLHttpRequest < "u", jA = kA && function(e) {
|
|
|
3145
3145
|
}
|
|
3146
3146
|
o === void 0 && i.setContentType(null), "setRequestHeader" in l && Z.forEach(i.toJSON(), function(f, v) {
|
|
3147
3147
|
l.setRequestHeader(v, f);
|
|
3148
|
-
}), Z.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress",
|
|
3148
|
+
}), Z.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", Pr(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Pr(e.onUploadProgress)), (e.cancelToken || e.signal) && (A = (h) => {
|
|
3149
3149
|
l && (r(!h || h.type ? new Jt(null, e, l) : h), l.abort(), l = null);
|
|
3150
3150
|
}, e.cancelToken && e.cancelToken.subscribe(A), e.signal && (e.signal.aborted ? A() : e.signal.addEventListener("abort", A)));
|
|
3151
3151
|
const g = OA(d);
|
|
@@ -3155,11 +3155,11 @@ const kA = typeof XMLHttpRequest < "u", jA = kA && function(e) {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
l.send(o || null);
|
|
3157
3157
|
});
|
|
3158
|
-
},
|
|
3158
|
+
}, Tn = {
|
|
3159
3159
|
http: AA,
|
|
3160
3160
|
xhr: jA
|
|
3161
3161
|
};
|
|
3162
|
-
Z.forEach(
|
|
3162
|
+
Z.forEach(Tn, (e, t) => {
|
|
3163
3163
|
if (e) {
|
|
3164
3164
|
try {
|
|
3165
3165
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -3168,7 +3168,7 @@ Z.forEach(Gn, (e, t) => {
|
|
|
3168
3168
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3169
3169
|
}
|
|
3170
3170
|
});
|
|
3171
|
-
const
|
|
3171
|
+
const Vr = (e) => `- ${e}`, zA = (e) => Z.isFunction(e) || e === null || e === !1, Xo = {
|
|
3172
3172
|
getAdapter: (e) => {
|
|
3173
3173
|
e = Z.isArray(e) ? e : [e];
|
|
3174
3174
|
const { length: t } = e;
|
|
@@ -3177,7 +3177,7 @@ const Pr = (e) => `- ${e}`, zA = (e) => Z.isFunction(e) || e === null || e === !
|
|
|
3177
3177
|
for (let i = 0; i < t; i++) {
|
|
3178
3178
|
n = e[i];
|
|
3179
3179
|
let a;
|
|
3180
|
-
if (r = n, !zA(n) && (r =
|
|
3180
|
+
if (r = n, !zA(n) && (r = Tn[(a = String(n)).toLowerCase()], r === void 0))
|
|
3181
3181
|
throw new ie(`Unknown adapter '${a}'`);
|
|
3182
3182
|
if (r)
|
|
3183
3183
|
break;
|
|
@@ -3188,8 +3188,8 @@ const Pr = (e) => `- ${e}`, zA = (e) => Z.isFunction(e) || e === null || e === !
|
|
|
3188
3188
|
([A, m]) => `adapter ${A} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
3189
3189
|
);
|
|
3190
3190
|
let a = t ? i.length > 1 ? `since :
|
|
3191
|
-
` + i.map(
|
|
3192
|
-
`) : " " +
|
|
3191
|
+
` + i.map(Vr).join(`
|
|
3192
|
+
`) : " " + Vr(i[0]) : "as no adapter specified";
|
|
3193
3193
|
throw new ie(
|
|
3194
3194
|
"There is no suitable adapter to dispatch the request " + a,
|
|
3195
3195
|
"ERR_NOT_SUPPORT"
|
|
@@ -3197,17 +3197,17 @@ const Pr = (e) => `- ${e}`, zA = (e) => Z.isFunction(e) || e === null || e === !
|
|
|
3197
3197
|
}
|
|
3198
3198
|
return r;
|
|
3199
3199
|
},
|
|
3200
|
-
adapters:
|
|
3200
|
+
adapters: Tn
|
|
3201
3201
|
};
|
|
3202
3202
|
function Ln(e) {
|
|
3203
3203
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
3204
3204
|
throw new Jt(null, e);
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function Br(e) {
|
|
3207
3207
|
return Ln(e), e.headers = Be.from(e.headers), e.data = Sn.call(
|
|
3208
3208
|
e,
|
|
3209
3209
|
e.transformRequest
|
|
3210
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xo.getAdapter(e.adapter ||
|
|
3210
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xo.getAdapter(e.adapter || sr.adapter)(e).then(function(r) {
|
|
3211
3211
|
return Ln(e), r.data = Sn.call(
|
|
3212
3212
|
e,
|
|
3213
3213
|
e.transformResponse,
|
|
@@ -3221,7 +3221,7 @@ function Vr(e) {
|
|
|
3221
3221
|
), r.response.headers = Be.from(r.response.headers))), Promise.reject(r);
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
|
-
const
|
|
3224
|
+
const Ur = (e) => e instanceof Be ? e.toJSON() : e;
|
|
3225
3225
|
function gt(e, t) {
|
|
3226
3226
|
t = t || {};
|
|
3227
3227
|
const n = {};
|
|
@@ -3280,21 +3280,21 @@ function gt(e, t) {
|
|
|
3280
3280
|
socketPath: a,
|
|
3281
3281
|
responseEncoding: a,
|
|
3282
3282
|
validateStatus: A,
|
|
3283
|
-
headers: (c, l) => o(
|
|
3283
|
+
headers: (c, l) => o(Ur(c), Ur(l), !0)
|
|
3284
3284
|
};
|
|
3285
3285
|
return Z.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
3286
|
-
const d = m[l] || o,
|
|
3287
|
-
Z.isUndefined(
|
|
3286
|
+
const d = m[l] || o, b = d(e[l], t[l], l);
|
|
3287
|
+
Z.isUndefined(b) && d !== A || (n[l] = b);
|
|
3288
3288
|
}), n;
|
|
3289
3289
|
}
|
|
3290
|
-
const Qo = "1.6.0",
|
|
3290
|
+
const Qo = "1.6.0", lr = {};
|
|
3291
3291
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
3292
|
-
|
|
3292
|
+
lr[e] = function(r) {
|
|
3293
3293
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
3294
3294
|
};
|
|
3295
3295
|
});
|
|
3296
|
-
const
|
|
3297
|
-
|
|
3296
|
+
const Fr = {};
|
|
3297
|
+
lr.transitional = function(t, n, r) {
|
|
3298
3298
|
function o(i, a) {
|
|
3299
3299
|
return "[Axios v" + Qo + "] Transitional option '" + i + "'" + a + (r ? ". " + r : "");
|
|
3300
3300
|
}
|
|
@@ -3304,7 +3304,7 @@ sr.transitional = function(t, n, r) {
|
|
|
3304
3304
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
3305
3305
|
ie.ERR_DEPRECATED
|
|
3306
3306
|
);
|
|
3307
|
-
return n && !
|
|
3307
|
+
return n && !Fr[a] && (Fr[a] = !0, console.warn(
|
|
3308
3308
|
o(
|
|
3309
3309
|
a,
|
|
3310
3310
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -3329,15 +3329,15 @@ function YA(e, t, n) {
|
|
|
3329
3329
|
throw new ie("Unknown option " + i, ie.ERR_BAD_OPTION);
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
|
-
const
|
|
3332
|
+
const Hn = {
|
|
3333
3333
|
assertOptions: YA,
|
|
3334
|
-
validators:
|
|
3335
|
-
}, Fe =
|
|
3334
|
+
validators: lr
|
|
3335
|
+
}, Fe = Hn.validators;
|
|
3336
3336
|
class en {
|
|
3337
3337
|
constructor(t) {
|
|
3338
3338
|
this.defaults = t, this.interceptors = {
|
|
3339
|
-
request: new
|
|
3340
|
-
response: new
|
|
3339
|
+
request: new Xr(),
|
|
3340
|
+
response: new Xr()
|
|
3341
3341
|
};
|
|
3342
3342
|
}
|
|
3343
3343
|
/**
|
|
@@ -3351,13 +3351,13 @@ class en {
|
|
|
3351
3351
|
request(t, n) {
|
|
3352
3352
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = gt(this.defaults, n);
|
|
3353
3353
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
3354
|
-
r !== void 0 &&
|
|
3354
|
+
r !== void 0 && Hn.assertOptions(r, {
|
|
3355
3355
|
silentJSONParsing: Fe.transitional(Fe.boolean),
|
|
3356
3356
|
forcedJSONParsing: Fe.transitional(Fe.boolean),
|
|
3357
3357
|
clarifyTimeoutError: Fe.transitional(Fe.boolean)
|
|
3358
3358
|
}, !1), o != null && (Z.isFunction(o) ? n.paramsSerializer = {
|
|
3359
3359
|
serialize: o
|
|
3360
|
-
} :
|
|
3360
|
+
} : Hn.assertOptions(o, {
|
|
3361
3361
|
encode: Fe.function,
|
|
3362
3362
|
serialize: Fe.function
|
|
3363
3363
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -3380,16 +3380,16 @@ class en {
|
|
|
3380
3380
|
this.interceptors.response.forEach(function(f) {
|
|
3381
3381
|
c.push(f.fulfilled, f.rejected);
|
|
3382
3382
|
});
|
|
3383
|
-
let l, d = 0,
|
|
3383
|
+
let l, d = 0, b;
|
|
3384
3384
|
if (!m) {
|
|
3385
|
-
const h = [
|
|
3386
|
-
for (h.unshift.apply(h, A), h.push.apply(h, c),
|
|
3385
|
+
const h = [Br.bind(this), void 0];
|
|
3386
|
+
for (h.unshift.apply(h, A), h.push.apply(h, c), b = h.length, l = Promise.resolve(n); d < b; )
|
|
3387
3387
|
l = l.then(h[d++], h[d++]);
|
|
3388
3388
|
return l;
|
|
3389
3389
|
}
|
|
3390
|
-
|
|
3390
|
+
b = A.length;
|
|
3391
3391
|
let g = n;
|
|
3392
|
-
for (d = 0; d <
|
|
3392
|
+
for (d = 0; d < b; ) {
|
|
3393
3393
|
const h = A[d++], f = A[d++];
|
|
3394
3394
|
try {
|
|
3395
3395
|
g = h(g);
|
|
@@ -3399,11 +3399,11 @@ class en {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
3401
3401
|
try {
|
|
3402
|
-
l =
|
|
3402
|
+
l = Br.call(this, g);
|
|
3403
3403
|
} catch (h) {
|
|
3404
3404
|
return Promise.reject(h);
|
|
3405
3405
|
}
|
|
3406
|
-
for (d = 0,
|
|
3406
|
+
for (d = 0, b = c.length; d < b; )
|
|
3407
3407
|
l = l.then(c[d++], c[d++]);
|
|
3408
3408
|
return l;
|
|
3409
3409
|
}
|
|
@@ -3438,7 +3438,7 @@ Z.forEach(["post", "put", "patch"], function(t) {
|
|
|
3438
3438
|
en.prototype[t] = n(), en.prototype[t + "Form"] = n(!0);
|
|
3439
3439
|
});
|
|
3440
3440
|
const Ft = en;
|
|
3441
|
-
class
|
|
3441
|
+
class ur {
|
|
3442
3442
|
constructor(t) {
|
|
3443
3443
|
if (typeof t != "function")
|
|
3444
3444
|
throw new TypeError("executor must be a function.");
|
|
@@ -3499,14 +3499,14 @@ class lr {
|
|
|
3499
3499
|
static source() {
|
|
3500
3500
|
let t;
|
|
3501
3501
|
return {
|
|
3502
|
-
token: new
|
|
3502
|
+
token: new ur(function(o) {
|
|
3503
3503
|
t = o;
|
|
3504
3504
|
}),
|
|
3505
3505
|
cancel: t
|
|
3506
3506
|
};
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
|
-
const JA =
|
|
3509
|
+
const JA = ur;
|
|
3510
3510
|
function NA(e) {
|
|
3511
3511
|
return function(n) {
|
|
3512
3512
|
return e.apply(null, n);
|
|
@@ -3515,7 +3515,7 @@ function NA(e) {
|
|
|
3515
3515
|
function DA(e) {
|
|
3516
3516
|
return Z.isObject(e) && e.isAxiosError === !0;
|
|
3517
3517
|
}
|
|
3518
|
-
const
|
|
3518
|
+
const Xn = {
|
|
3519
3519
|
Continue: 100,
|
|
3520
3520
|
SwitchingProtocols: 101,
|
|
3521
3521
|
Processing: 102,
|
|
@@ -3580,17 +3580,17 @@ const Hn = {
|
|
|
3580
3580
|
NotExtended: 510,
|
|
3581
3581
|
NetworkAuthenticationRequired: 511
|
|
3582
3582
|
};
|
|
3583
|
-
Object.entries(
|
|
3584
|
-
|
|
3583
|
+
Object.entries(Xn).forEach(([e, t]) => {
|
|
3584
|
+
Xn[t] = e;
|
|
3585
3585
|
});
|
|
3586
|
-
const RA =
|
|
3586
|
+
const RA = Xn;
|
|
3587
3587
|
function Po(e) {
|
|
3588
3588
|
const t = new Ft(e), n = Wo(Ft.prototype.request, t);
|
|
3589
3589
|
return Z.extend(n, Ft.prototype, t, { allOwnKeys: !0 }), Z.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
3590
3590
|
return Po(gt(e, o));
|
|
3591
3591
|
}, n;
|
|
3592
3592
|
}
|
|
3593
|
-
const qe = Po(
|
|
3593
|
+
const qe = Po(sr);
|
|
3594
3594
|
qe.Axios = Ft;
|
|
3595
3595
|
qe.CanceledError = Jt;
|
|
3596
3596
|
qe.CancelToken = JA;
|
|
@@ -3612,7 +3612,7 @@ qe.HttpStatusCode = RA;
|
|
|
3612
3612
|
qe.default = qe;
|
|
3613
3613
|
const GA = qe;
|
|
3614
3614
|
/*! typescript-cookie v1.0.6 | MIT */
|
|
3615
|
-
const Vo = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Bo = (e) => encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent),
|
|
3615
|
+
const Vo = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Bo = (e) => encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), cr = decodeURIComponent, mr = (e) => (e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
|
|
3616
3616
|
function TA(e) {
|
|
3617
3617
|
return e = Object.assign({}, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires != null && (e.expires = e.expires.toUTCString()), Object.entries(e).filter(([t, n]) => n != null && n !== !1).map(([t, n]) => n === !0 ? `; ${t}` : `; ${t}=${n.split(";")[0]}`).join("");
|
|
3618
3618
|
}
|
|
@@ -3628,29 +3628,29 @@ function Uo(e, t, n) {
|
|
|
3628
3628
|
}
|
|
3629
3629
|
return e != null ? o[e] : o;
|
|
3630
3630
|
}
|
|
3631
|
-
const
|
|
3632
|
-
decodeName:
|
|
3633
|
-
decodeValue:
|
|
3631
|
+
const _r = Object.freeze({
|
|
3632
|
+
decodeName: cr,
|
|
3633
|
+
decodeValue: mr,
|
|
3634
3634
|
encodeName: Vo,
|
|
3635
3635
|
encodeValue: Bo
|
|
3636
|
-
}),
|
|
3636
|
+
}), dr = Object.freeze({
|
|
3637
3637
|
path: "/"
|
|
3638
3638
|
});
|
|
3639
|
-
function Fo(e, t, n =
|
|
3639
|
+
function Fo(e, t, n = dr, { encodeValue: r = Bo, encodeName: o = Vo } = {}) {
|
|
3640
3640
|
return document.cookie = `${o(e)}=${r(t, e)}${TA(n)}`;
|
|
3641
3641
|
}
|
|
3642
|
-
function _o(e, { decodeValue: t =
|
|
3642
|
+
function _o(e, { decodeValue: t = mr, decodeName: n = cr } = {}) {
|
|
3643
3643
|
return Uo(e, t, n);
|
|
3644
3644
|
}
|
|
3645
|
-
function HA({ decodeValue: e =
|
|
3645
|
+
function HA({ decodeValue: e = mr, decodeName: t = cr } = {}) {
|
|
3646
3646
|
return Uo(void 0, e, t);
|
|
3647
3647
|
}
|
|
3648
|
-
function XA(e, t =
|
|
3648
|
+
function XA(e, t = dr) {
|
|
3649
3649
|
Fo(e, "", Object.assign({}, t, {
|
|
3650
3650
|
expires: -1
|
|
3651
3651
|
}));
|
|
3652
3652
|
}
|
|
3653
|
-
function
|
|
3653
|
+
function Qn(e, t) {
|
|
3654
3654
|
const n = {
|
|
3655
3655
|
set: function(o, i, a) {
|
|
3656
3656
|
return Fo(o, i, Object.assign({}, this.attributes, a), {
|
|
@@ -3667,10 +3667,10 @@ function Xn(e, t) {
|
|
|
3667
3667
|
XA(o, Object.assign({}, this.attributes, i));
|
|
3668
3668
|
},
|
|
3669
3669
|
withAttributes: function(o) {
|
|
3670
|
-
return
|
|
3670
|
+
return Qn(this.converter, Object.assign({}, this.attributes, o));
|
|
3671
3671
|
},
|
|
3672
3672
|
withConverter: function(o) {
|
|
3673
|
-
return
|
|
3673
|
+
return Qn(Object.assign({}, this.converter, o), this.attributes);
|
|
3674
3674
|
}
|
|
3675
3675
|
}, r = {
|
|
3676
3676
|
attributes: { value: Object.freeze(t) },
|
|
@@ -3678,7 +3678,7 @@ function Xn(e, t) {
|
|
|
3678
3678
|
};
|
|
3679
3679
|
return Object.create(n, r);
|
|
3680
3680
|
}
|
|
3681
|
-
|
|
3681
|
+
Qn({ read: _r.decodeValue, write: _r.encodeValue }, dr);
|
|
3682
3682
|
let $o;
|
|
3683
3683
|
typeof window < "u" && ($o = _o("token"));
|
|
3684
3684
|
const ye = GA.create({
|
|
@@ -3746,7 +3746,7 @@ async function es(e, t) {
|
|
|
3746
3746
|
async function ts(e, t) {
|
|
3747
3747
|
return (await ye.post(t + "/updateFlexUrl", e || {})).data;
|
|
3748
3748
|
}
|
|
3749
|
-
async function
|
|
3749
|
+
async function $r(e, t, n) {
|
|
3750
3750
|
return (await ye.post(n + "/updatePlayableVersion", {
|
|
3751
3751
|
...t,
|
|
3752
3752
|
_id: e
|
|
@@ -3792,22 +3792,22 @@ function ns(e, t, n) {
|
|
|
3792
3792
|
function pn(e) {
|
|
3793
3793
|
let { enter: t, exit: n, appendPosition: r = !1, collapse: o = !0, collapseDuration: i = 300 } = e;
|
|
3794
3794
|
return function(a) {
|
|
3795
|
-
let { children: A, position: m, preventExitTransition: c, done: l, nodeRef: d, isIn:
|
|
3795
|
+
let { children: A, position: m, preventExitTransition: c, done: l, nodeRef: d, isIn: b } = a;
|
|
3796
3796
|
const g = r ? `${t}--${m}` : t, h = r ? `${n}--${m}` : n, f = ot(0);
|
|
3797
3797
|
return Yi(() => {
|
|
3798
|
-
const v = d.current, K = g.split(" "), E = (
|
|
3799
|
-
|
|
3798
|
+
const v = d.current, K = g.split(" "), E = (z) => {
|
|
3799
|
+
z.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", E), v.removeEventListener("animationcancel", E), f.current === 0 && z.type !== "animationcancel" && v.classList.remove(...K));
|
|
3800
3800
|
};
|
|
3801
3801
|
v.classList.add(...K), v.addEventListener("animationend", E), v.addEventListener("animationcancel", E);
|
|
3802
3802
|
}, []), ve(() => {
|
|
3803
3803
|
const v = d.current, K = () => {
|
|
3804
3804
|
v.removeEventListener("animationend", K), o ? ns(v, l, i) : l();
|
|
3805
3805
|
};
|
|
3806
|
-
|
|
3807
|
-
}, [
|
|
3806
|
+
b || (c ? K() : (f.current = 1, v.className += ` ${h}`, v.addEventListener("animationend", K)));
|
|
3807
|
+
}, [b]), se.createElement(se.Fragment, null, A);
|
|
3808
3808
|
};
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function eo(e, t) {
|
|
3811
3811
|
return e != null ? { content: e.content, containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, status: t } : {};
|
|
3812
3812
|
}
|
|
3813
3813
|
const ke = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map(), on(e, t) {
|
|
@@ -3854,22 +3854,22 @@ function rs(e) {
|
|
|
3854
3854
|
}
|
|
3855
3855
|
function l() {
|
|
3856
3856
|
const { toastContent: g, toastProps: h, staleId: f } = A.queue.shift();
|
|
3857
|
-
|
|
3857
|
+
b(g, h, f);
|
|
3858
3858
|
}
|
|
3859
3859
|
function d(g, h) {
|
|
3860
3860
|
let { delay: f, staleId: v, ...K } = h;
|
|
3861
|
-
if (!On(g) || function(
|
|
3862
|
-
return !o.current || A.props.enableMultiContainer &&
|
|
3861
|
+
if (!On(g) || function(V) {
|
|
3862
|
+
return !o.current || A.props.enableMultiContainer && V.containerId !== A.props.containerId || i.has(V.toastId) && V.updateId == null;
|
|
3863
3863
|
}(K))
|
|
3864
3864
|
return;
|
|
3865
|
-
const { toastId: E, updateId:
|
|
3865
|
+
const { toastId: E, updateId: z, data: L } = K, { props: C } = A, P = () => c(E), re = z == null;
|
|
3866
3866
|
re && A.count++;
|
|
3867
|
-
const
|
|
3868
|
-
let [_, M] =
|
|
3867
|
+
const U = { ...C, style: C.toastStyle, key: A.toastKey++, ...Object.fromEntries(Object.entries(K).filter((V) => {
|
|
3868
|
+
let [_, M] = V;
|
|
3869
3869
|
return M != null;
|
|
3870
|
-
})), toastId: E, updateId:
|
|
3871
|
-
const
|
|
3872
|
-
i.delete(E), ke.emit(4,
|
|
3870
|
+
})), toastId: E, updateId: z, data: L, closeToast: P, isIn: !1, className: _t(K.className || C.toastClassName), bodyClassName: _t(K.bodyClassName || C.bodyClassName), progressClassName: _t(K.progressClassName || C.progressClassName), autoClose: !K.isLoading && (de = K.autoClose, ee = C.autoClose, de === !1 || Wt(de) && de > 0 ? de : ee), deleteToast() {
|
|
3871
|
+
const V = eo(i.get(E), "removed");
|
|
3872
|
+
i.delete(E), ke.emit(4, V);
|
|
3873
3873
|
const _ = A.queue.length;
|
|
3874
3874
|
if (A.count = E == null ? A.count - A.displayedToast : A.count - 1, A.count < 0 && (A.count = 0), _ > 0) {
|
|
3875
3875
|
const M = E == null ? A.props.limit : 1;
|
|
@@ -3884,22 +3884,22 @@ function rs(e) {
|
|
|
3884
3884
|
} else
|
|
3885
3885
|
t();
|
|
3886
3886
|
} };
|
|
3887
|
-
var de,
|
|
3888
|
-
|
|
3889
|
-
let { theme: _, type: M, isLoading: W, icon: J } =
|
|
3887
|
+
var de, ee;
|
|
3888
|
+
U.iconOut = function(V) {
|
|
3889
|
+
let { theme: _, type: M, isLoading: W, icon: J } = V, p = null;
|
|
3890
3890
|
const O = { theme: _, type: M };
|
|
3891
|
-
return J === !1 || (we(J) ? p = J(O) : ht(J) ? p =
|
|
3892
|
-
}(
|
|
3891
|
+
return J === !1 || (we(J) ? p = J(O) : ht(J) ? p = Jn(J, O) : st(J) || Wt(J) ? p = J : W ? p = En.spinner() : ((F) => F in En)(M) && (p = En[M](O))), p;
|
|
3892
|
+
}(U), we(K.onOpen) && (U.onOpen = K.onOpen), we(K.onClose) && (U.onClose = K.onClose), U.closeButton = C.closeButton, K.closeButton === !1 || On(K.closeButton) ? U.closeButton = K.closeButton : K.closeButton === !0 && (U.closeButton = !On(C.closeButton) || C.closeButton);
|
|
3893
3893
|
let ce = g;
|
|
3894
|
-
ht(g) && !st(g.type) ? ce =
|
|
3895
|
-
|
|
3896
|
-
}, f) :
|
|
3894
|
+
ht(g) && !st(g.type) ? ce = Jn(g, { closeToast: P, toastProps: U, data: L }) : we(g) && (ce = g({ closeToast: P, toastProps: U, data: L })), C.limit && C.limit > 0 && A.count > C.limit && re ? A.queue.push({ toastContent: ce, toastProps: U, staleId: v }) : Wt(f) ? setTimeout(() => {
|
|
3895
|
+
b(ce, U, v);
|
|
3896
|
+
}, f) : b(ce, U, v);
|
|
3897
3897
|
}
|
|
3898
|
-
function
|
|
3898
|
+
function b(g, h, f) {
|
|
3899
3899
|
const { toastId: v } = h;
|
|
3900
3900
|
f && i.delete(f);
|
|
3901
3901
|
const K = { content: g, props: h };
|
|
3902
|
-
i.set(v, K), r((E) => [...E, v].filter((
|
|
3902
|
+
i.set(v, K), r((E) => [...E, v].filter((z) => z !== f)), ke.emit(4, eo(K, K.props.updateId == null ? "added" : "updated"));
|
|
3903
3903
|
}
|
|
3904
3904
|
return ve(() => (A.containerId = e.containerId, ke.cancelEmit(3).on(0, d).on(1, (g) => o.current && c(g)).on(5, m).emit(2, A), () => {
|
|
3905
3905
|
i.clear(), ke.emit(3, A);
|
|
@@ -3913,25 +3913,25 @@ function rs(e) {
|
|
|
3913
3913
|
}), Array.from(h, (v) => g(v[0], v[1]));
|
|
3914
3914
|
}, containerRef: o, isToastActive: a };
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3916
|
+
function to(e) {
|
|
3917
3917
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientX : e.clientX;
|
|
3918
3918
|
}
|
|
3919
|
-
function
|
|
3919
|
+
function no(e) {
|
|
3920
3920
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3921
3921
|
}
|
|
3922
3922
|
function os(e) {
|
|
3923
|
-
const [t, n] = X(!1), [r, o] = X(!1), i = ot(null), a = ot({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = ot(e), { autoClose: m, pauseOnHover: c, closeToast: l, onClick: d, closeOnClick:
|
|
3923
|
+
const [t, n] = X(!1), [r, o] = X(!1), i = ot(null), a = ot({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = ot(e), { autoClose: m, pauseOnHover: c, closeToast: l, onClick: d, closeOnClick: b } = e;
|
|
3924
3924
|
function g(L) {
|
|
3925
3925
|
if (e.draggable) {
|
|
3926
3926
|
L.nativeEvent.type === "touchstart" && L.nativeEvent.preventDefault(), a.didMove = !1, document.addEventListener("mousemove", K), document.addEventListener("mouseup", E), document.addEventListener("touchmove", K), document.addEventListener("touchend", E);
|
|
3927
|
-
const
|
|
3928
|
-
a.canCloseOnClick = !0, a.canDrag = !0, a.boundingRect =
|
|
3927
|
+
const C = i.current;
|
|
3928
|
+
a.canCloseOnClick = !0, a.canDrag = !0, a.boundingRect = C.getBoundingClientRect(), C.style.transition = "", a.x = to(L.nativeEvent), a.y = no(L.nativeEvent), e.draggableDirection === "x" ? (a.start = a.x, a.removalDistance = C.offsetWidth * (e.draggablePercent / 100)) : (a.start = a.y, a.removalDistance = C.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
|
|
3929
3929
|
}
|
|
3930
3930
|
}
|
|
3931
3931
|
function h(L) {
|
|
3932
3932
|
if (a.boundingRect) {
|
|
3933
|
-
const { top:
|
|
3934
|
-
L.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= re && a.x <=
|
|
3933
|
+
const { top: C, bottom: P, left: re, right: U } = a.boundingRect;
|
|
3934
|
+
L.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= re && a.x <= U && a.y >= C && a.y <= P ? v() : f();
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
3937
|
function f() {
|
|
@@ -3941,8 +3941,8 @@ function os(e) {
|
|
|
3941
3941
|
n(!1);
|
|
3942
3942
|
}
|
|
3943
3943
|
function K(L) {
|
|
3944
|
-
const
|
|
3945
|
-
a.canDrag &&
|
|
3944
|
+
const C = i.current;
|
|
3945
|
+
a.canDrag && C && (a.didMove = !0, t && v(), a.x = to(L), a.y = no(L), a.delta = e.draggableDirection === "x" ? a.x - a.start : a.y - a.start, a.start !== a.x && (a.canCloseOnClick = !1), C.style.transform = `translate${e.draggableDirection}(${a.delta}px)`, C.style.opacity = "" + (1 - Math.abs(a.delta / a.removalDistance)));
|
|
3946
3946
|
}
|
|
3947
3947
|
function E() {
|
|
3948
3948
|
document.removeEventListener("mousemove", K), document.removeEventListener("mouseup", E), document.removeEventListener("touchmove", K), document.removeEventListener("touchend", E);
|
|
@@ -3961,10 +3961,10 @@ function os(e) {
|
|
|
3961
3961
|
}), []), ve(() => (e.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", f), window.addEventListener("blur", v)), () => {
|
|
3962
3962
|
e.pauseOnFocusLoss && (window.removeEventListener("focus", f), window.removeEventListener("blur", v));
|
|
3963
3963
|
}), [e.pauseOnFocusLoss]);
|
|
3964
|
-
const
|
|
3965
|
-
return m && c && (
|
|
3964
|
+
const z = { onMouseDown: g, onTouchStart: g, onMouseUp: h, onTouchEnd: h };
|
|
3965
|
+
return m && c && (z.onMouseEnter = v, z.onMouseLeave = f), b && (z.onClick = (L) => {
|
|
3966
3966
|
d && d(L), a.canCloseOnClick && l();
|
|
3967
|
-
}), { playToast: f, pauseToast: v, isRunning: t, preventExitTransition: r, toastRef: i, eventHandlers:
|
|
3967
|
+
}), { playToast: f, pauseToast: v, isRunning: t, preventExitTransition: r, toastRef: i, eventHandlers: z };
|
|
3968
3968
|
}
|
|
3969
3969
|
function ti(e) {
|
|
3970
3970
|
let { closeToast: t, theme: n, ariaLabel: r = "close" } = e;
|
|
@@ -3973,25 +3973,25 @@ function ti(e) {
|
|
|
3973
3973
|
}, "aria-label": r }, se.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, se.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
3974
3974
|
}
|
|
3975
3975
|
function is(e) {
|
|
3976
|
-
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress: m, progress: c, rtl: l, isIn: d, theme:
|
|
3976
|
+
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress: m, progress: c, rtl: l, isIn: d, theme: b } = e;
|
|
3977
3977
|
const g = i || m && c === 0, h = { ...A, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused", opacity: g ? 0 : 1 };
|
|
3978
3978
|
m && (h.transform = `scaleX(${c})`);
|
|
3979
|
-
const f = _e("Toastify__progress-bar", m ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${
|
|
3979
|
+
const f = _e("Toastify__progress-bar", m ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${b}`, `Toastify__progress-bar--${o}`, { "Toastify__progress-bar--rtl": l }), v = we(a) ? a({ rtl: l, type: o, defaultClassName: f }) : _e(f, a);
|
|
3980
3980
|
return se.createElement("div", { role: "progressbar", "aria-hidden": g ? "true" : "false", "aria-label": "notification timer", className: v, style: h, [m && c >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: m && c < 1 ? null : () => {
|
|
3981
3981
|
d && r();
|
|
3982
3982
|
} });
|
|
3983
3983
|
}
|
|
3984
3984
|
const as = (e) => {
|
|
3985
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = os(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: c, hideProgressBar: l, closeToast: d, transition:
|
|
3986
|
-
let
|
|
3987
|
-
return i === !1 || (
|
|
3985
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = os(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: c, hideProgressBar: l, closeToast: d, transition: b, position: g, className: h, style: f, bodyClassName: v, bodyStyle: K, progressClassName: E, progressStyle: z, updateId: L, role: C, progress: P, rtl: re, toastId: U, deleteToast: de, isIn: ee, isLoading: ce, iconOut: V, closeOnClick: _, theme: M } = e, W = _e("Toastify__toast", `Toastify__toast-theme--${M}`, `Toastify__toast--${c}`, { "Toastify__toast--rtl": re }, { "Toastify__toast--close-on-click": _ }), J = we(h) ? h({ rtl: re, position: g, type: c, defaultClassName: W }) : _e(W, h), p = !!P || !A, O = { closeToast: d, type: c, theme: M };
|
|
3986
|
+
let F = null;
|
|
3987
|
+
return i === !1 || (F = we(i) ? i(O) : ht(i) ? Jn(i, O) : ti(O)), se.createElement(b, { isIn: ee, done: de, position: g, preventExitTransition: n, nodeRef: r }, se.createElement("div", { id: U, onClick: m, className: J, ...o, style: f, ref: r }, se.createElement("div", { ...ee && { role: C }, className: we(v) ? v({ type: c }) : _e("Toastify__toast-body", v), style: K }, V != null && se.createElement("div", { className: _e("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ce }) }, V), se.createElement("div", null, a)), F, se.createElement(is, { ...L && !p ? { key: `pb-${L}` } : {}, rtl: re, theme: M, delay: A, isRunning: t, isIn: ee, closeToast: d, hide: l, type: c, style: z, className: E, controlledProgress: p, progress: P || 0 })));
|
|
3988
3988
|
}, fn = function(e, t) {
|
|
3989
3989
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3990
3990
|
}, As = pn(fn("bounce", !0));
|
|
3991
3991
|
pn(fn("slide", !0));
|
|
3992
3992
|
pn(fn("zoom"));
|
|
3993
3993
|
pn(fn("flip"));
|
|
3994
|
-
const
|
|
3994
|
+
const Pn = ji((e, t) => {
|
|
3995
3995
|
const { getToastToRender: n, containerRef: r, isToastActive: o } = rs(e), { className: i, style: a, rtl: A, containerId: m } = e;
|
|
3996
3996
|
function c(l) {
|
|
3997
3997
|
const d = _e("Toastify__toast-container", `Toastify__toast-container--${l}`, { "Toastify__toast-container--rtl": A });
|
|
@@ -4000,14 +4000,14 @@ const Qn = ji((e, t) => {
|
|
|
4000
4000
|
return ve(() => {
|
|
4001
4001
|
t && (t.current = r.current);
|
|
4002
4002
|
}, []), se.createElement("div", { ref: r, className: "Toastify", id: m }, n((l, d) => {
|
|
4003
|
-
const
|
|
4004
|
-
return se.createElement("div", { className: c(l), style:
|
|
4003
|
+
const b = d.length ? { ...a } : { ...a, pointerEvents: "none" };
|
|
4004
|
+
return se.createElement("div", { className: c(l), style: b, key: `container-${l}` }, d.map((g, h) => {
|
|
4005
4005
|
let { content: f, props: v } = g;
|
|
4006
4006
|
return se.createElement(as, { ...v, isIn: o(v.toastId), style: { ...v.style, "--nth": h + 1, "--len": d.length }, key: `toast-${v.key}` }, f);
|
|
4007
4007
|
}));
|
|
4008
4008
|
}));
|
|
4009
4009
|
});
|
|
4010
|
-
|
|
4010
|
+
Pn.displayName = "ToastContainer", Pn.defaultProps = { position: "top-right", transition: As, autoClose: 5e3, closeButton: ti, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
4011
4011
|
let kn, nt = /* @__PURE__ */ new Map(), Kt = [], ss = 1;
|
|
4012
4012
|
function ni() {
|
|
4013
4013
|
return "" + ss++;
|
|
@@ -4030,11 +4030,11 @@ function pe(e, t) {
|
|
|
4030
4030
|
pe.loading = (e, t) => Mt(e, tn("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), pe.promise = function(e, t, n) {
|
|
4031
4031
|
let r, { pending: o, error: i, success: a } = t;
|
|
4032
4032
|
o && (r = st(o) ? pe.loading(o, n) : pe.loading(o.render, { ...n, ...o }));
|
|
4033
|
-
const A = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, m = (l, d,
|
|
4033
|
+
const A = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, m = (l, d, b) => {
|
|
4034
4034
|
if (d == null)
|
|
4035
4035
|
return void pe.dismiss(r);
|
|
4036
|
-
const g = { type: l, ...A, ...n, data:
|
|
4037
|
-
return r ? pe.update(r, { ...g, ...h }) : pe(h.render, { ...g, ...h }),
|
|
4036
|
+
const g = { type: l, ...A, ...n, data: b }, h = st(d) ? { render: d } : d;
|
|
4037
|
+
return r ? pe.update(r, { ...g, ...h }) : pe(h.render, { ...g, ...h }), b;
|
|
4038
4038
|
}, c = we(e) ? e() : e;
|
|
4039
4039
|
return c.then((l) => m("success", a, l)).catch((l) => m("error", i, l)), c;
|
|
4040
4040
|
}, pe.success = Xt("success"), pe.info = Xt("info"), pe.error = Xt("error"), pe.warning = Xt("warning"), pe.warn = pe.warning, pe.dark = (e, t) => Mt(e, tn("default", { theme: "dark", ...t })), pe.dismiss = (e) => {
|
|
@@ -4083,9 +4083,9 @@ function yt(e) {
|
|
|
4083
4083
|
theme: "light"
|
|
4084
4084
|
});
|
|
4085
4085
|
}
|
|
4086
|
-
let
|
|
4087
|
-
const
|
|
4088
|
-
Je === "Playable" ? t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && await
|
|
4086
|
+
let pr = "", Je = "Playable", We = null, ri = null, oi;
|
|
4087
|
+
const fr = async (e, t, n) => {
|
|
4088
|
+
Je === "Playable" ? t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && await $r(
|
|
4089
4089
|
e,
|
|
4090
4090
|
{ iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
|
|
4091
4091
|
We
|
|
@@ -4096,13 +4096,13 @@ const pr = async (e, t, n) => {
|
|
|
4096
4096
|
androidLink: t == null ? void 0 : t.googleUrl
|
|
4097
4097
|
},
|
|
4098
4098
|
We
|
|
4099
|
-
) : Je === "Ready" && t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && ((n == null ? void 0 : n.urlType) === "single" && (t.googleUrl = t.iosUrl), await
|
|
4099
|
+
) : Je === "Ready" && t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && ((n == null ? void 0 : n.urlType) === "single" && (t.googleUrl = t.iosUrl), await $r(
|
|
4100
4100
|
e,
|
|
4101
4101
|
{ iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
|
|
4102
4102
|
We
|
|
4103
4103
|
));
|
|
4104
4104
|
}, $t = async (e) => {
|
|
4105
|
-
let t =
|
|
4105
|
+
let t = pr + "/" + e, n = e;
|
|
4106
4106
|
fetch(t).then((r) => r.blob()).then((r) => {
|
|
4107
4107
|
const o = window.URL.createObjectURL(r), i = document.createElement("a");
|
|
4108
4108
|
i.href = o, i.download = n.split("/").reduce((a, A) => A, ""), document.body.appendChild(i), i.click(), window.URL.revokeObjectURL(o), yt("Download successfully");
|
|
@@ -4110,7 +4110,7 @@ const pr = async (e, t, n) => {
|
|
|
4110
4110
|
console.error("File error:", r);
|
|
4111
4111
|
});
|
|
4112
4112
|
}, us = (e, t) => {
|
|
4113
|
-
let n =
|
|
4113
|
+
let n = pr + "/" + e;
|
|
4114
4114
|
Nt(n) ? yt("Link Copied") : t(n);
|
|
4115
4115
|
};
|
|
4116
4116
|
async function Ot(e, t, n, r = "download", o = !1, i = null) {
|
|
@@ -4119,7 +4119,7 @@ async function Ot(e, t, n, r = "download", o = !1, i = null) {
|
|
|
4119
4119
|
r === "download" ? await $t(c) : r === "copy" && us(c, ri);
|
|
4120
4120
|
};
|
|
4121
4121
|
try {
|
|
4122
|
-
await
|
|
4122
|
+
await fr(e, n, i);
|
|
4123
4123
|
} catch (c) {
|
|
4124
4124
|
console.log("updateUrls error", c);
|
|
4125
4125
|
}
|
|
@@ -4173,7 +4173,7 @@ async function Ot(e, t, n, r = "download", o = !1, i = null) {
|
|
|
4173
4173
|
}
|
|
4174
4174
|
async function cs(e, t, n, r = null) {
|
|
4175
4175
|
return new Promise(async (o, i) => {
|
|
4176
|
-
await
|
|
4176
|
+
await fr(e, t, r), Je === "Flex" ? QA(e, n, We).then(async (a) => {
|
|
4177
4177
|
if (a.message) {
|
|
4178
4178
|
i(a);
|
|
4179
4179
|
return;
|
|
@@ -4201,18 +4201,22 @@ async function cs(e, t, n, r = null) {
|
|
|
4201
4201
|
});
|
|
4202
4202
|
}
|
|
4203
4203
|
function ms(e, t, n, r, o) {
|
|
4204
|
-
Je = e, We = t, ri = n,
|
|
4204
|
+
Je = e, We = t, ri = n, pr = r, oi = o;
|
|
4205
4205
|
}
|
|
4206
4206
|
async function ds(e) {
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4207
|
+
try {
|
|
4208
|
+
return await es(
|
|
4209
|
+
{
|
|
4210
|
+
versionId: e,
|
|
4211
|
+
checkExistance: !0
|
|
4212
|
+
},
|
|
4213
|
+
We
|
|
4214
|
+
);
|
|
4215
|
+
} catch {
|
|
4216
|
+
return null;
|
|
4217
|
+
}
|
|
4214
4218
|
}
|
|
4215
|
-
async function
|
|
4219
|
+
async function Vn(e, t) {
|
|
4216
4220
|
return (await ye.post(t + "/findPlayable", { _id: e })).data;
|
|
4217
4221
|
}
|
|
4218
4222
|
const ps = ({
|
|
@@ -4227,7 +4231,7 @@ const ps = ({
|
|
|
4227
4231
|
androidLink: m,
|
|
4228
4232
|
urlType: c
|
|
4229
4233
|
}) => {
|
|
4230
|
-
const [l, d] = X(!1),
|
|
4234
|
+
const [l, d] = X(!1), b = async () => {
|
|
4231
4235
|
d(!0), Ot(
|
|
4232
4236
|
e,
|
|
4233
4237
|
"default",
|
|
@@ -4239,15 +4243,15 @@ const ps = ({
|
|
|
4239
4243
|
!1,
|
|
4240
4244
|
{ urlType: c }
|
|
4241
4245
|
).then(async (g) => {
|
|
4242
|
-
var K, E,
|
|
4246
|
+
var K, E, z, L;
|
|
4243
4247
|
let h = "";
|
|
4244
4248
|
if (t && (n === "Playable" || n === "Ready")) {
|
|
4245
|
-
const
|
|
4246
|
-
console.log(
|
|
4247
|
-
const P = (E = (K =
|
|
4249
|
+
const C = await Vn(t, r);
|
|
4250
|
+
console.log(C);
|
|
4251
|
+
const P = (E = (K = C == null ? void 0 : C.data) == null ? void 0 : K.globalProps) == null ? void 0 : E.defaultLandscape, re = (L = (z = C == null ? void 0 : C.data) == null ? void 0 : z.globalProps) == null ? void 0 : L.defaultPhoneIndex;
|
|
4248
4252
|
console.log(P, re), P && (h += "&landscape=true"), re !== void 0 && (h += `&phoneIndex=${re}`);
|
|
4249
4253
|
}
|
|
4250
|
-
|
|
4254
|
+
Vn(t, r), d(!1);
|
|
4251
4255
|
let f;
|
|
4252
4256
|
n === "Flex" ? f = `${o}/preview?versionId=${e}` : n === "Import" ? f = `${o}/preview?versionId=${e}_` : n === "Ready" ? f = `${o}/preview?versionId=${e}_&ready=true` : f = `${o}/preview?versionId=${e}_`, f += h, Nt(f) ? yt("Link copied") : i(f), d(!1);
|
|
4253
4257
|
}).catch((g) => {
|
|
@@ -4335,7 +4339,7 @@ const ps = ({
|
|
|
4335
4339
|
cursor: "pointer"
|
|
4336
4340
|
},
|
|
4337
4341
|
onClick: () => {
|
|
4338
|
-
l ||
|
|
4342
|
+
l || b();
|
|
4339
4343
|
},
|
|
4340
4344
|
children: [
|
|
4341
4345
|
/* @__PURE__ */ s.jsx(
|
|
@@ -4403,7 +4407,7 @@ const ps = ({
|
|
|
4403
4407
|
androidLink: l,
|
|
4404
4408
|
urlType: d
|
|
4405
4409
|
}) => {
|
|
4406
|
-
const [
|
|
4410
|
+
const [b, g] = X(window.innerWidth);
|
|
4407
4411
|
console.log("iosLink", c), ve(() => {
|
|
4408
4412
|
console.log("re add event listener");
|
|
4409
4413
|
function f(v) {
|
|
@@ -4430,7 +4434,7 @@ const ps = ({
|
|
|
4430
4434
|
flexDirection: "column",
|
|
4431
4435
|
justifyContent: "space-between",
|
|
4432
4436
|
padding: "5px",
|
|
4433
|
-
height:
|
|
4437
|
+
height: b > 1440 ? "680px" : "620px",
|
|
4434
4438
|
borderRadius: "0px 0px 0px 16px",
|
|
4435
4439
|
marginTop: "20px"
|
|
4436
4440
|
},
|
|
@@ -4655,7 +4659,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
4655
4659
|
}
|
|
4656
4660
|
)
|
|
4657
4661
|
] })
|
|
4658
|
-
] }),
|
|
4662
|
+
] }), ro = ({
|
|
4659
4663
|
typeOfProduct: e,
|
|
4660
4664
|
urls: t,
|
|
4661
4665
|
handleIosChange: n,
|
|
@@ -4894,7 +4898,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
4894
4898
|
isTest: c,
|
|
4895
4899
|
setIsTest: l,
|
|
4896
4900
|
urlType: d,
|
|
4897
|
-
setUrlType:
|
|
4901
|
+
setUrlType: b
|
|
4898
4902
|
}) => {
|
|
4899
4903
|
const g = () => /* @__PURE__ */ s.jsxs(
|
|
4900
4904
|
"div",
|
|
@@ -5013,7 +5017,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5013
5017
|
},
|
|
5014
5018
|
onClick: () => {
|
|
5015
5019
|
document.getElementById("tab-switch-background").style.left = "0%", document.getElementById("single-tab").style.color = "#a3a3a3", document.getElementById("game-tab").style.color = "#000", document.getElementById("single-tab").style.fontWeight = "normal", document.getElementById("game-tab").style.fontWeight = "bold", setTimeout(() => {
|
|
5016
|
-
|
|
5020
|
+
b("game");
|
|
5017
5021
|
}, 200);
|
|
5018
5022
|
},
|
|
5019
5023
|
children: /* @__PURE__ */ s.jsx(
|
|
@@ -5046,7 +5050,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5046
5050
|
},
|
|
5047
5051
|
onClick: () => {
|
|
5048
5052
|
document.getElementById("tab-switch-background").style.left = "50%", document.getElementById("single-tab").style.color = "#000", document.getElementById("game-tab").style.color = "#a3a3a3", document.getElementById("single-tab").style.fontWeight = "bold", document.getElementById("game-tab").style.fontWeight = "normal", setTimeout(() => {
|
|
5049
|
-
|
|
5053
|
+
b("single");
|
|
5050
5054
|
}, 200);
|
|
5051
5055
|
},
|
|
5052
5056
|
children: /* @__PURE__ */ s.jsx(
|
|
@@ -5081,7 +5085,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5081
5085
|
e === "Ready" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5082
5086
|
/* @__PURE__ */ s.jsx(h, {}),
|
|
5083
5087
|
d === "game" && /* @__PURE__ */ s.jsx(
|
|
5084
|
-
|
|
5088
|
+
ro,
|
|
5085
5089
|
{
|
|
5086
5090
|
typeOfProduct: e,
|
|
5087
5091
|
urls: n,
|
|
@@ -5101,7 +5105,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5101
5105
|
}
|
|
5102
5106
|
)
|
|
5103
5107
|
] }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
5104
|
-
|
|
5108
|
+
ro,
|
|
5105
5109
|
{
|
|
5106
5110
|
typeOfProduct: e,
|
|
5107
5111
|
urls: n,
|
|
@@ -5155,7 +5159,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5155
5159
|
user: c,
|
|
5156
5160
|
isTest: l,
|
|
5157
5161
|
setIsTest: d,
|
|
5158
|
-
urlType:
|
|
5162
|
+
urlType: b,
|
|
5159
5163
|
setUrlType: g,
|
|
5160
5164
|
allNetworksSelected: h,
|
|
5161
5165
|
setAllNetworksSelected: f
|
|
@@ -5193,7 +5197,7 @@ const qs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
|
|
|
5193
5197
|
user: c,
|
|
5194
5198
|
isTest: l,
|
|
5195
5199
|
setIsTest: d,
|
|
5196
|
-
urlType:
|
|
5200
|
+
urlType: b,
|
|
5197
5201
|
setUrlType: g
|
|
5198
5202
|
}
|
|
5199
5203
|
),
|
|
@@ -5491,7 +5495,7 @@ const Is = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
|
|
|
5491
5495
|
]
|
|
5492
5496
|
}
|
|
5493
5497
|
);
|
|
5494
|
-
},
|
|
5498
|
+
}, Bn = ({
|
|
5495
5499
|
onClose: e,
|
|
5496
5500
|
handleCopyLink: t,
|
|
5497
5501
|
download: n,
|
|
@@ -5835,22 +5839,22 @@ const Ws = ({
|
|
|
5835
5839
|
versionId: c,
|
|
5836
5840
|
api: l,
|
|
5837
5841
|
handleDownloadError: d,
|
|
5838
|
-
fetchFileUrl:
|
|
5842
|
+
fetchFileUrl: b,
|
|
5839
5843
|
urls: g,
|
|
5840
5844
|
game: h,
|
|
5841
5845
|
setIsConfirmActive: f,
|
|
5842
5846
|
creditDownload: v,
|
|
5843
5847
|
getDownloadCount: K,
|
|
5844
5848
|
disabled: E,
|
|
5845
|
-
user:
|
|
5849
|
+
user: z,
|
|
5846
5850
|
setSafariCopyLink: L,
|
|
5847
|
-
isTest:
|
|
5851
|
+
isTest: C,
|
|
5848
5852
|
urlType: P,
|
|
5849
5853
|
setCdnModal: re,
|
|
5850
|
-
generateCDN:
|
|
5854
|
+
generateCDN: U,
|
|
5851
5855
|
cdnUrl: de
|
|
5852
5856
|
}) => {
|
|
5853
|
-
const [
|
|
5857
|
+
const [ee, ce] = X(!1), [V, _] = X(""), [M, W] = X(!1), [J, p] = X(!1), [O, F] = X(!1), [y, I] = X("download"), [N, k] = X(!1), [Y, G] = X(!1), [R, D] = X(!1);
|
|
5854
5858
|
let T = {
|
|
5855
5859
|
aarki: "html,copy",
|
|
5856
5860
|
adcolony: "copy,html",
|
|
@@ -5895,39 +5899,39 @@ const Ws = ({
|
|
|
5895
5899
|
jammp: "copy,html",
|
|
5896
5900
|
mraid: "copy,html"
|
|
5897
5901
|
};
|
|
5898
|
-
const
|
|
5902
|
+
const B = () => {
|
|
5899
5903
|
n(e);
|
|
5900
|
-
},
|
|
5904
|
+
}, q = async (ae, ne) => {
|
|
5901
5905
|
const fe = {
|
|
5902
5906
|
molocoGenerateHtml: !1,
|
|
5903
5907
|
urlType: P
|
|
5904
5908
|
};
|
|
5905
|
-
if ($ && (
|
|
5906
|
-
re(!0), await
|
|
5909
|
+
if ($ && (ne === "copy" ? (G(!0), ne = "download", fe.molocoGenerateHtml = !0) : k(!0)), console.log("getVersion", ae, ne, fe), ae === "cdn") {
|
|
5910
|
+
re(!0), await U(!0);
|
|
5907
5911
|
return;
|
|
5908
5912
|
}
|
|
5909
5913
|
return ce(!0), new Promise((ct, mt) => {
|
|
5910
|
-
Ot(c, ae, g,
|
|
5914
|
+
Ot(c, ae, g, ne, C, fe).then((Se) => {
|
|
5911
5915
|
ce(!1), ct(Se), G(!1), k(!1);
|
|
5912
5916
|
}).catch((Se) => {
|
|
5913
5917
|
ce(!1), d(Se.message, Se), mt(Se), G(!1), k(!1);
|
|
5914
5918
|
});
|
|
5915
5919
|
});
|
|
5916
|
-
},
|
|
5920
|
+
}, j = async (ae = !1) => {
|
|
5917
5921
|
ae ? G(!0) : k(!0);
|
|
5918
|
-
const
|
|
5922
|
+
const ne = {
|
|
5919
5923
|
molocoGenerateHtml: !1
|
|
5920
5924
|
};
|
|
5921
|
-
ae && (
|
|
5922
|
-
ae ? G(!1) : k(!1),
|
|
5925
|
+
ae && (ne.molocoGenerateHtml = !0), Ot(c, o, g, "download", C, ne).then((fe) => {
|
|
5926
|
+
ae ? G(!1) : k(!1), F(!1);
|
|
5923
5927
|
}).catch((fe) => {
|
|
5924
5928
|
d(fe.message, fe);
|
|
5925
5929
|
});
|
|
5926
5930
|
}, w = async () => {
|
|
5927
|
-
|
|
5931
|
+
D(!0);
|
|
5928
5932
|
const ae = await Ks(l, c, o, m);
|
|
5929
|
-
let
|
|
5930
|
-
Nt(
|
|
5933
|
+
let ne = `${b}/${ae == null ? void 0 : ae.url}`;
|
|
5934
|
+
Nt(ne) ? (yt("Link Copied"), D(!1)) : L(ne);
|
|
5931
5935
|
}, $ = o === "moloco" || o === "molocoV2";
|
|
5932
5936
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5933
5937
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -5949,7 +5953,7 @@ const Ws = ({
|
|
|
5949
5953
|
cursor: "pointer"
|
|
5950
5954
|
},
|
|
5951
5955
|
className: "border-hover-" + m,
|
|
5952
|
-
onClick:
|
|
5956
|
+
onClick: B,
|
|
5953
5957
|
children: [
|
|
5954
5958
|
/* @__PURE__ */ s.jsxs(
|
|
5955
5959
|
"div",
|
|
@@ -6028,7 +6032,7 @@ const Ws = ({
|
|
|
6028
6032
|
/* @__PURE__ */ s.jsx(
|
|
6029
6033
|
"img",
|
|
6030
6034
|
{
|
|
6031
|
-
onClick:
|
|
6035
|
+
onClick: B,
|
|
6032
6036
|
style: {
|
|
6033
6037
|
width: "30rem",
|
|
6034
6038
|
// Equivalent to 120/4 = 30rem
|
|
@@ -6055,15 +6059,15 @@ const Ws = ({
|
|
|
6055
6059
|
jn,
|
|
6056
6060
|
{
|
|
6057
6061
|
className: `${$ ? "w-1/2" : "w-2/3"} border-hover-` + m,
|
|
6058
|
-
downloading:
|
|
6062
|
+
downloading: ee,
|
|
6059
6063
|
onClickDonwload: async (ae) => {
|
|
6060
|
-
if (ae.stopPropagation(), $ &&
|
|
6061
|
-
|
|
6064
|
+
if (ae.stopPropagation(), $ && z.customer === "playableFactoryInternal") {
|
|
6065
|
+
F(!0);
|
|
6062
6066
|
return;
|
|
6063
6067
|
} else {
|
|
6064
6068
|
_("download");
|
|
6065
|
-
const
|
|
6066
|
-
o === "cdn" && v && v.willSpendCredit && !de || o !== "cdn" && v && v.willSpendCredit ? (f(!0), I("download"), W(!0)) : ["Playable", "Flex"].includes(m) && (!
|
|
6069
|
+
const ne = g.iosUrl, fe = g.googleUrl;
|
|
6070
|
+
o === "cdn" && v && v.willSpendCredit && !de || o !== "cdn" && v && v.willSpendCredit ? (f(!0), I("download"), W(!0)) : ["Playable", "Flex"].includes(m) && (!ne || !fe) || m === "Ready" && P === "single" && !ne || m === "Ready" && P === "multi" && (!ne || !fe) ? (f(!0), p(!0)) : (p(!1), W(!1), await q(o, "download"));
|
|
6067
6071
|
}
|
|
6068
6072
|
},
|
|
6069
6073
|
children: $ ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -6083,11 +6087,11 @@ const Ws = ({
|
|
|
6083
6087
|
}
|
|
6084
6088
|
}
|
|
6085
6089
|
),
|
|
6086
|
-
|
|
6090
|
+
z.customer !== "playableFactoryInternal" ? "TXT" : "Download"
|
|
6087
6091
|
] }),
|
|
6088
6092
|
N && /* @__PURE__ */ s.jsx(St, {})
|
|
6089
6093
|
] }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6090
|
-
!
|
|
6094
|
+
!ee && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6091
6095
|
/* @__PURE__ */ s.jsx(
|
|
6092
6096
|
zn,
|
|
6093
6097
|
{
|
|
@@ -6105,7 +6109,7 @@ const Ws = ({
|
|
|
6105
6109
|
),
|
|
6106
6110
|
o === "cdn" ? "Generate Link" : "Download"
|
|
6107
6111
|
] }),
|
|
6108
|
-
|
|
6112
|
+
ee && /* @__PURE__ */ s.jsx(St, {})
|
|
6109
6113
|
] })
|
|
6110
6114
|
}
|
|
6111
6115
|
),
|
|
@@ -6115,25 +6119,25 @@ const Ws = ({
|
|
|
6115
6119
|
className: "w-1/3 border-hover-" + m,
|
|
6116
6120
|
onClickDonwload: async (ae) => {
|
|
6117
6121
|
ae.stopPropagation(), _("copyLink");
|
|
6118
|
-
const
|
|
6119
|
-
v && (v != null && v.willSpendCredit) ? (I("copy"), f(!0), W(!0)) : m !== "Import" && (!
|
|
6122
|
+
const ne = g.iosUrl, fe = g.googleUrl;
|
|
6123
|
+
v && (v != null && v.willSpendCredit) ? (I("copy"), f(!0), W(!0)) : m !== "Import" && (!ne || !fe) ? (f(!0), p(!0)) : (W(!1), p(!1), await q(o, "copy"));
|
|
6120
6124
|
},
|
|
6121
6125
|
disabled: E,
|
|
6122
6126
|
children: /* @__PURE__ */ s.jsx(Ko, { className: "h-6 w-6 stroke-dark-full" })
|
|
6123
6127
|
}
|
|
6124
6128
|
),
|
|
6125
|
-
$ &&
|
|
6129
|
+
$ && z.customer !== "playableFactoryInternal" && /* @__PURE__ */ s.jsxs(
|
|
6126
6130
|
jn,
|
|
6127
6131
|
{
|
|
6128
6132
|
className: "w-1/2 border-hover-" + m,
|
|
6129
6133
|
onClickDonwload: async (ae) => {
|
|
6130
6134
|
ae.stopPropagation(), _("copyLink");
|
|
6131
|
-
const
|
|
6132
|
-
v && (v != null && v.willSpendCredit) ? (I("download"), f(!0), W(!0)) : m !== "Import" && (!
|
|
6135
|
+
const ne = g.iosUrl, fe = g.googleUrl;
|
|
6136
|
+
v && (v != null && v.willSpendCredit) ? (I("download"), f(!0), W(!0)) : m !== "Import" && (!ne || !fe) ? (f(!0), p(!0)) : (W(!1), p(!1), await j(!0));
|
|
6133
6137
|
},
|
|
6134
6138
|
disabled: E,
|
|
6135
6139
|
children: [
|
|
6136
|
-
!
|
|
6140
|
+
!Y && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6137
6141
|
/* @__PURE__ */ s.jsx(
|
|
6138
6142
|
zn,
|
|
6139
6143
|
{
|
|
@@ -6151,7 +6155,7 @@ const Ws = ({
|
|
|
6151
6155
|
),
|
|
6152
6156
|
"HTML"
|
|
6153
6157
|
] }),
|
|
6154
|
-
|
|
6158
|
+
Y && /* @__PURE__ */ s.jsx(St, {})
|
|
6155
6159
|
]
|
|
6156
6160
|
}
|
|
6157
6161
|
)
|
|
@@ -6174,14 +6178,14 @@ const Ws = ({
|
|
|
6174
6178
|
}
|
|
6175
6179
|
),
|
|
6176
6180
|
M && /* @__PURE__ */ s.jsx(
|
|
6177
|
-
|
|
6181
|
+
Bn,
|
|
6178
6182
|
{
|
|
6179
|
-
creditConfirmType:
|
|
6183
|
+
creditConfirmType: y,
|
|
6180
6184
|
handleCopyLink: async () => {
|
|
6181
|
-
p(!1), f(!1), await
|
|
6185
|
+
p(!1), f(!1), await q(o, "copy");
|
|
6182
6186
|
},
|
|
6183
6187
|
download: async () => {
|
|
6184
|
-
p(!1), f(!1), await
|
|
6188
|
+
p(!1), f(!1), await q(o, "download");
|
|
6185
6189
|
},
|
|
6186
6190
|
onClose: () => {
|
|
6187
6191
|
W(!1), f(!1);
|
|
@@ -6197,28 +6201,28 @@ const Ws = ({
|
|
|
6197
6201
|
},
|
|
6198
6202
|
iosLink: g.iosUrl,
|
|
6199
6203
|
googleLink: g.googleUrl,
|
|
6200
|
-
buttonType:
|
|
6204
|
+
buttonType: V,
|
|
6201
6205
|
handleCopyLink: async () => {
|
|
6202
|
-
p(!1), f(!1), await
|
|
6206
|
+
p(!1), f(!1), await q(o, "copy");
|
|
6203
6207
|
},
|
|
6204
6208
|
download: async () => {
|
|
6205
|
-
p(!1), f(!1), await
|
|
6209
|
+
p(!1), f(!1), await q(o, "download");
|
|
6206
6210
|
},
|
|
6207
6211
|
typeOfProduct: m,
|
|
6208
6212
|
urlType: P
|
|
6209
6213
|
}
|
|
6210
6214
|
),
|
|
6211
|
-
O &&
|
|
6215
|
+
O && z.customer === "playableFactoryInternal" && /* @__PURE__ */ s.jsx(
|
|
6212
6216
|
ws,
|
|
6213
6217
|
{
|
|
6214
6218
|
onClose: () => {
|
|
6215
|
-
|
|
6219
|
+
F(!1);
|
|
6216
6220
|
},
|
|
6217
|
-
handleDownload:
|
|
6221
|
+
handleDownload: j,
|
|
6218
6222
|
handleDownloadMolocoTest: w,
|
|
6219
6223
|
downloadingMoloco: N,
|
|
6220
|
-
donwloadintMolocoTest:
|
|
6221
|
-
downloadingMolocoHtml:
|
|
6224
|
+
donwloadintMolocoTest: R,
|
|
6225
|
+
downloadingMolocoHtml: Y
|
|
6222
6226
|
}
|
|
6223
6227
|
)
|
|
6224
6228
|
] });
|
|
@@ -6729,47 +6733,47 @@ const Ws = ({
|
|
|
6729
6733
|
urls: c,
|
|
6730
6734
|
game: l,
|
|
6731
6735
|
getDownloadCount: d,
|
|
6732
|
-
disabled:
|
|
6736
|
+
disabled: b,
|
|
6733
6737
|
setSafariCopyLink: g,
|
|
6734
6738
|
isTest: h,
|
|
6735
6739
|
urlType: f,
|
|
6736
6740
|
allNetworksSelected: v,
|
|
6737
6741
|
setAllNetworksSelected: K,
|
|
6738
6742
|
cdnModal: E,
|
|
6739
|
-
setCdnModal:
|
|
6743
|
+
setCdnModal: z,
|
|
6740
6744
|
cdnUrl: L,
|
|
6741
|
-
setCdnUrl:
|
|
6745
|
+
setCdnUrl: C
|
|
6742
6746
|
}) => {
|
|
6743
|
-
const [P, re] = X([]), [
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
}).catch((
|
|
6747
|
-
A(
|
|
6747
|
+
const [P, re] = X([]), [U, de] = X([]), [ee, ce] = X(!1), [V, _] = X(""), [M, W] = X(!1), [J, p] = X(!1), [O, F] = X("download"), [y, I] = X(!1), [N, k] = X(!1), [Y, G] = X(!1), R = async (q = !1) => {
|
|
6748
|
+
q && L || Y || (G(!0), Ot(r, "cdn", c, null, !1, {}).then((j) => {
|
|
6749
|
+
C(j.url), G(!1);
|
|
6750
|
+
}).catch((j) => {
|
|
6751
|
+
A(j.message, j), G(!1);
|
|
6748
6752
|
}));
|
|
6749
|
-
},
|
|
6750
|
-
const
|
|
6751
|
-
if (P.includes(
|
|
6752
|
-
const w =
|
|
6753
|
-
|
|
6753
|
+
}, D = async (q) => {
|
|
6754
|
+
const j = [...P];
|
|
6755
|
+
if (P.includes(q)) {
|
|
6756
|
+
const w = j.findIndex(($) => $ === q);
|
|
6757
|
+
j.splice(w, 1), re(j);
|
|
6754
6758
|
} else
|
|
6755
|
-
|
|
6756
|
-
Qt.filter((w) => [...
|
|
6757
|
-
}, T = async () => new Promise(async (
|
|
6759
|
+
j.push(q), re([...P, q]);
|
|
6760
|
+
Qt.filter((w) => [...j].includes(w.id)).map((w) => w.name);
|
|
6761
|
+
}, T = async () => new Promise(async (q, j) => {
|
|
6758
6762
|
const w = Qt.filter(($) => [...P].includes($.id)).map(($) => $.name);
|
|
6759
6763
|
W(!0), cs(r, c, w, { urlType: f }).then(($) => {
|
|
6760
|
-
W(!1),
|
|
6764
|
+
W(!1), q($);
|
|
6761
6765
|
}).catch(($) => {
|
|
6762
|
-
console.log("get multi download err"), W(!1), A($.message, $),
|
|
6766
|
+
console.log("get multi download err"), W(!1), A($.message, $), j($);
|
|
6763
6767
|
});
|
|
6764
|
-
}),
|
|
6765
|
-
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (p(!0),
|
|
6768
|
+
}), B = async () => {
|
|
6769
|
+
c.iosUrl, c.googleUrl, t && t.willSpendCredit ? (p(!0), F("download"), I(!0)) : (I(!1), await T());
|
|
6766
6770
|
};
|
|
6767
6771
|
return ve(() => {
|
|
6768
|
-
const
|
|
6772
|
+
const q = Qt.filter((j) => {
|
|
6769
6773
|
var w;
|
|
6770
|
-
return t && ((w = t == null ? void 0 : t.networks) == null ? void 0 : w.length) > 0 ? t == null ? void 0 : t.networks.includes(
|
|
6771
|
-
}).filter((
|
|
6772
|
-
re(v ?
|
|
6774
|
+
return t && ((w = t == null ? void 0 : t.networks) == null ? void 0 : w.length) > 0 ? t == null ? void 0 : t.networks.includes(j.name) : o === "Import" ? e == null ? void 0 : e.networks.filter(($) => $.status === "paid").some(($) => $.name === j.name) : (e == null ? void 0 : e.networks.includes(j.name)) || (l == null ? void 0 : l.networks.includes(j.name));
|
|
6775
|
+
}).filter((j) => j.name === "voodoo" ? a.customer === "customer:20" : !0).map((j) => j.id);
|
|
6776
|
+
re(v ? q : []), console.log(q);
|
|
6773
6777
|
}, [v]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
6774
6778
|
/* @__PURE__ */ s.jsx(
|
|
6775
6779
|
"div",
|
|
@@ -6791,27 +6795,27 @@ const Ws = ({
|
|
|
6791
6795
|
overflowY: "auto",
|
|
6792
6796
|
padding: "0.75rem"
|
|
6793
6797
|
},
|
|
6794
|
-
children: n && Qt.filter((
|
|
6795
|
-
var
|
|
6796
|
-
return t && ((
|
|
6798
|
+
children: n && Qt.filter((q) => {
|
|
6799
|
+
var j;
|
|
6800
|
+
return t && ((j = t == null ? void 0 : t.networks) == null ? void 0 : j.length) > 0 ? t == null ? void 0 : t.networks.includes(q.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((w) => w.status === "paid").some((w) => w.name === q.name) : (e == null ? void 0 : e.networks.includes(q.name)) || (l == null ? void 0 : l.networks.includes(q.name));
|
|
6797
6801
|
}).filter(
|
|
6798
|
-
(
|
|
6799
|
-
).map((
|
|
6800
|
-
let
|
|
6801
|
-
if (
|
|
6802
|
+
(q) => q.name === "voodoo" ? a.customer === "customer:20" : !0
|
|
6803
|
+
).map((q) => {
|
|
6804
|
+
let j = q.imageSrc;
|
|
6805
|
+
if (q.name === "web") {
|
|
6802
6806
|
let w = "web_" + o.toLowerCase() + ".png";
|
|
6803
|
-
|
|
6807
|
+
j = j.replace("web.png", w);
|
|
6804
6808
|
}
|
|
6805
6809
|
return /* @__PURE__ */ s.jsx(
|
|
6806
6810
|
Ws,
|
|
6807
6811
|
{
|
|
6808
|
-
id:
|
|
6809
|
-
name:
|
|
6810
|
-
imageUrl:
|
|
6811
|
-
selected: P.includes(
|
|
6812
|
-
handleCardClick:
|
|
6813
|
-
networkVersionSize:
|
|
6814
|
-
fileSizeLoading:
|
|
6812
|
+
id: q.id,
|
|
6813
|
+
name: q.name,
|
|
6814
|
+
imageUrl: j,
|
|
6815
|
+
selected: P.includes(q.id),
|
|
6816
|
+
handleCardClick: D,
|
|
6817
|
+
networkVersionSize: U,
|
|
6818
|
+
fileSizeLoading: ee,
|
|
6815
6819
|
showCheckBox: !0,
|
|
6816
6820
|
typeOfProduct: o,
|
|
6817
6821
|
versionId: r,
|
|
@@ -6823,16 +6827,16 @@ const Ws = ({
|
|
|
6823
6827
|
creditDownload: t,
|
|
6824
6828
|
setIsConfirmActive: p,
|
|
6825
6829
|
getDownloadCount: d,
|
|
6826
|
-
disabled:
|
|
6830
|
+
disabled: b,
|
|
6827
6831
|
user: a,
|
|
6828
6832
|
setSafariCopyLink: g,
|
|
6829
6833
|
isTest: h,
|
|
6830
6834
|
urlType: f,
|
|
6831
|
-
setCdnModal:
|
|
6832
|
-
generateCDN:
|
|
6835
|
+
setCdnModal: z,
|
|
6836
|
+
generateCDN: R,
|
|
6833
6837
|
cdnUrl: L
|
|
6834
6838
|
},
|
|
6835
|
-
|
|
6839
|
+
q.id
|
|
6836
6840
|
);
|
|
6837
6841
|
})
|
|
6838
6842
|
}
|
|
@@ -6855,8 +6859,8 @@ const Ws = ({
|
|
|
6855
6859
|
children: /* @__PURE__ */ s.jsx(
|
|
6856
6860
|
Ss,
|
|
6857
6861
|
{
|
|
6858
|
-
onClickMultiDownload:
|
|
6859
|
-
networksVersionTotalSize:
|
|
6862
|
+
onClickMultiDownload: B,
|
|
6863
|
+
networksVersionTotalSize: V,
|
|
6860
6864
|
typeOfProduct: o,
|
|
6861
6865
|
multiDownloading: M
|
|
6862
6866
|
}
|
|
@@ -6867,27 +6871,27 @@ const Ws = ({
|
|
|
6867
6871
|
Os,
|
|
6868
6872
|
{
|
|
6869
6873
|
onClose: () => {
|
|
6870
|
-
|
|
6874
|
+
z(!1), d();
|
|
6871
6875
|
},
|
|
6872
6876
|
versionId: r,
|
|
6873
6877
|
urls: c,
|
|
6874
6878
|
handleDownloadError: A,
|
|
6875
6879
|
cdnUrl: L,
|
|
6876
|
-
setCdnUrl:
|
|
6880
|
+
setCdnUrl: C,
|
|
6877
6881
|
generateCDN: async () => {
|
|
6878
|
-
if (!
|
|
6882
|
+
if (!Y) {
|
|
6879
6883
|
if (a.customer === "playableFactoryInternal") {
|
|
6880
|
-
|
|
6884
|
+
R();
|
|
6881
6885
|
return;
|
|
6882
6886
|
}
|
|
6883
6887
|
k(!0);
|
|
6884
6888
|
}
|
|
6885
6889
|
},
|
|
6886
|
-
cdnUploading:
|
|
6890
|
+
cdnUploading: Y
|
|
6887
6891
|
}
|
|
6888
6892
|
),
|
|
6889
6893
|
N && /* @__PURE__ */ s.jsx(
|
|
6890
|
-
|
|
6894
|
+
Bn,
|
|
6891
6895
|
{
|
|
6892
6896
|
width: "100%",
|
|
6893
6897
|
height: "100%",
|
|
@@ -6895,7 +6899,7 @@ const Ws = ({
|
|
|
6895
6899
|
handleCopyLink: async () => {
|
|
6896
6900
|
},
|
|
6897
6901
|
download: async () => {
|
|
6898
|
-
I(!1), k(!1),
|
|
6902
|
+
I(!1), k(!1), R();
|
|
6899
6903
|
},
|
|
6900
6904
|
onClose: () => {
|
|
6901
6905
|
I(!1), k(!1), G(!1);
|
|
@@ -6903,8 +6907,8 @@ const Ws = ({
|
|
|
6903
6907
|
getDownloadCount: d
|
|
6904
6908
|
}
|
|
6905
6909
|
),
|
|
6906
|
-
|
|
6907
|
-
|
|
6910
|
+
y && /* @__PURE__ */ s.jsx(
|
|
6911
|
+
Bn,
|
|
6908
6912
|
{
|
|
6909
6913
|
creditConfirmType: O,
|
|
6910
6914
|
handleCopyLink: async () => {
|
|
@@ -6954,7 +6958,7 @@ const Ds = [
|
|
|
6954
6958
|
"vungle",
|
|
6955
6959
|
"moloco",
|
|
6956
6960
|
"inmobi"
|
|
6957
|
-
],
|
|
6961
|
+
], Yn = [
|
|
6958
6962
|
"web",
|
|
6959
6963
|
"adcolony",
|
|
6960
6964
|
"applovin",
|
|
@@ -6988,7 +6992,7 @@ const Rs = ({
|
|
|
6988
6992
|
fetchFileUrl: c,
|
|
6989
6993
|
fileSize: l,
|
|
6990
6994
|
setFileSize: d,
|
|
6991
|
-
setSafariCopyLink:
|
|
6995
|
+
setSafariCopyLink: b,
|
|
6992
6996
|
iosLink: g,
|
|
6993
6997
|
androidLink: h,
|
|
6994
6998
|
setIosLink: f,
|
|
@@ -6996,51 +7000,50 @@ const Rs = ({
|
|
|
6996
7000
|
urlType: K,
|
|
6997
7001
|
setUrlType: E
|
|
6998
7002
|
}) => {
|
|
6999
|
-
const [
|
|
7003
|
+
const [z, L] = X(null), [C, P] = X(null), [re, U] = X(null), [de, ee] = X(!1), [ce, V] = X(!0), [_, M] = X(window.innerWidth), [W, J] = X(!1), [p, O] = X(!1), [F, y] = X("");
|
|
7000
7004
|
ve(() => {
|
|
7001
|
-
|
|
7002
|
-
|
|
7005
|
+
F || ds(t).then((q) => {
|
|
7006
|
+
q != null && q.exist && y(q.uploadPath);
|
|
7003
7007
|
});
|
|
7004
|
-
}, [
|
|
7008
|
+
}, [F]), console.log("download modal version: 6.0.45");
|
|
7005
7009
|
const [I, N] = X(!1);
|
|
7006
7010
|
ve(() => {
|
|
7007
7011
|
}, [I]), ve(() => {
|
|
7008
|
-
const
|
|
7012
|
+
const q = () => {
|
|
7009
7013
|
M(window.innerWidth);
|
|
7010
7014
|
};
|
|
7011
|
-
return window.addEventListener("resize",
|
|
7012
|
-
window.removeEventListener("resize",
|
|
7015
|
+
return window.addEventListener("resize", q), () => {
|
|
7016
|
+
window.removeEventListener("resize", q);
|
|
7013
7017
|
};
|
|
7014
7018
|
}, []);
|
|
7015
7019
|
const k = async () => {
|
|
7016
|
-
|
|
7017
|
-
const
|
|
7018
|
-
return
|
|
7019
|
-
},
|
|
7020
|
+
ee(!0);
|
|
7021
|
+
const q = await Vn(e, i);
|
|
7022
|
+
return q != null && q.networks || (q.networks = Ds), L(q), q;
|
|
7023
|
+
}, Y = (q, j) => {
|
|
7020
7024
|
clearTimeout(oo), oo = setTimeout(() => {
|
|
7021
|
-
|
|
7025
|
+
fr(t, { iosUrl: q, googleUrl: j }, { urlType: K });
|
|
7022
7026
|
}, 1e3);
|
|
7023
|
-
}, G = (
|
|
7024
|
-
f(
|
|
7025
|
-
},
|
|
7026
|
-
v(
|
|
7027
|
-
},
|
|
7027
|
+
}, G = (q) => {
|
|
7028
|
+
f(q), Y(q, h);
|
|
7029
|
+
}, R = (q) => {
|
|
7030
|
+
v(q), Y(g, q);
|
|
7031
|
+
}, D = async (q, j) => {
|
|
7028
7032
|
var w, $;
|
|
7029
|
-
console.log("getIosAndAndroidLink");
|
|
7030
7033
|
try {
|
|
7031
7034
|
let ae;
|
|
7032
7035
|
if (r === "Playable" || r === "Ready") {
|
|
7033
|
-
const
|
|
7034
|
-
if (
|
|
7035
|
-
|
|
7036
|
+
const ne = await zs(t, i);
|
|
7037
|
+
if (ne) {
|
|
7038
|
+
f(ne.iosLink), v(ne.androidLink), ee(!1);
|
|
7036
7039
|
return;
|
|
7037
7040
|
}
|
|
7038
|
-
if (
|
|
7039
|
-
f(
|
|
7041
|
+
if (q && (q.iosUrl || q.googleUrl)) {
|
|
7042
|
+
f(q.iosUrl), v(q.googleUrl), ee(!1);
|
|
7040
7043
|
return;
|
|
7041
7044
|
}
|
|
7042
|
-
if (
|
|
7043
|
-
let fe = await fetch(c + "/" +
|
|
7045
|
+
if (j && j.html) {
|
|
7046
|
+
let fe = await fetch(c + "/" + j.html).then(
|
|
7044
7047
|
(Se) => Se.text()
|
|
7045
7048
|
);
|
|
7046
7049
|
const ct = ((w = fe.match(
|
|
@@ -7050,45 +7053,48 @@ const Rs = ({
|
|
|
7050
7053
|
const mt = (($ = fe.match(
|
|
7051
7054
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
7052
7055
|
)) == null ? void 0 : $.at(1)) || "";
|
|
7053
|
-
v(mt),
|
|
7056
|
+
v(mt), ee(!1);
|
|
7054
7057
|
} else
|
|
7055
|
-
v(""), f(""),
|
|
7058
|
+
v(""), f(""), ee(!1);
|
|
7056
7059
|
} else if (r === "Flex") {
|
|
7057
|
-
const
|
|
7058
|
-
if (
|
|
7059
|
-
v(
|
|
7060
|
+
const ne = await Ys(t, i);
|
|
7061
|
+
if (ne.googleUrl || ne.iosUrl) {
|
|
7062
|
+
v(ne.googleUrl), f(ne.iosUrl), ee(!1);
|
|
7060
7063
|
return;
|
|
7061
7064
|
}
|
|
7062
|
-
|
|
7063
|
-
}
|
|
7065
|
+
q && (q.iosUrl || q.googleUrl) ? (f(q.iosUrl), v(q.googleUrl), ee(!1)) : (v(""), f(""), ee(!1));
|
|
7066
|
+
} else
|
|
7067
|
+
r === "Fusion" && (q && (q.iosUrl || q.googleUrl) ? (f(q.iosUrl), v(q.googleUrl), ee(!1)) : (v(""), f(""), ee(!1)));
|
|
7064
7068
|
} catch (ae) {
|
|
7065
7069
|
m(ae.response.data.error.msg);
|
|
7066
7070
|
}
|
|
7067
7071
|
}, T = async () => {
|
|
7068
|
-
|
|
7069
|
-
let
|
|
7070
|
-
r === "Flex" ?
|
|
7071
|
-
...
|
|
7072
|
-
networks:
|
|
7073
|
-
}) : r === "Ready" && !
|
|
7074
|
-
...
|
|
7075
|
-
networks:
|
|
7076
|
-
}) :
|
|
7077
|
-
},
|
|
7072
|
+
ee(!0);
|
|
7073
|
+
let q;
|
|
7074
|
+
r === "Flex" ? q = await ks({ _id: t }, i) : r === "Ready" && (q = await Ns({ _id: t }, i)), q && (["admin", "pm", "tester", "sales"].includes(a.role) ? U({
|
|
7075
|
+
...q,
|
|
7076
|
+
networks: Yn
|
|
7077
|
+
}) : r === "Ready" && !q.canDownload ? U({
|
|
7078
|
+
...q,
|
|
7079
|
+
networks: Yn
|
|
7080
|
+
}) : U(q)), ee(!1);
|
|
7081
|
+
}, B = async () => await js(n, i);
|
|
7078
7082
|
return ve(() => {
|
|
7079
|
-
o || (L(null), P(null),
|
|
7080
|
-
|
|
7081
|
-
}),
|
|
7082
|
-
k().then((
|
|
7083
|
-
|
|
7083
|
+
o || (L(null), P(null), U(null), d(null)), o && (r === "Playable" ? (k().then((q) => {
|
|
7084
|
+
D(null, q);
|
|
7085
|
+
}), V(!1)) : r === "Ready" ? T().then((q) => {
|
|
7086
|
+
k().then((j) => {
|
|
7087
|
+
D(null, j), V(!1);
|
|
7084
7088
|
});
|
|
7085
|
-
}) : r === "Flex" ? T().then((
|
|
7086
|
-
|
|
7087
|
-
o && (
|
|
7089
|
+
}) : r === "Flex" ? T().then((q) => {
|
|
7090
|
+
V(!1), B().then((j) => {
|
|
7091
|
+
o && (D(j, null), V(!1), P(j));
|
|
7088
7092
|
});
|
|
7089
|
-
}) : r === "Import"
|
|
7090
|
-
|
|
7091
|
-
}))
|
|
7093
|
+
}) : r === "Import" ? Js(t, i).then((q) => {
|
|
7094
|
+
L(q), f(q.iosUrl || ""), v(q.googleUrl || ""), ee(!1), V(!1);
|
|
7095
|
+
}) : r === "Fusion" && (V(!1), B().then((q) => {
|
|
7096
|
+
o && (D(q, null), V(!1), q.networks = Yn, P(q));
|
|
7097
|
+
})));
|
|
7092
7098
|
}, [n, e, t, o]), /* @__PURE__ */ s.jsxs(
|
|
7093
7099
|
"div",
|
|
7094
7100
|
{
|
|
@@ -7111,7 +7117,7 @@ const Rs = ({
|
|
|
7111
7117
|
fileSize: l,
|
|
7112
7118
|
urls: { iosUrl: g, googleUrl: h },
|
|
7113
7119
|
handleIosChange: G,
|
|
7114
|
-
handleGoogleChange:
|
|
7120
|
+
handleGoogleChange: R,
|
|
7115
7121
|
disabled: ce,
|
|
7116
7122
|
api: i,
|
|
7117
7123
|
creditDownload: re,
|
|
@@ -7136,10 +7142,10 @@ const Rs = ({
|
|
|
7136
7142
|
},
|
|
7137
7143
|
children: /* @__PURE__ */ s.jsx(St, { isNetworksLoading: !0 })
|
|
7138
7144
|
}
|
|
7139
|
-
) : (
|
|
7145
|
+
) : (z || re || r === "Fusion") && (r === "Flex" ? C : !0) && !de && g !== "Loading..." && h !== "Loading..." && /* @__PURE__ */ s.jsx(
|
|
7140
7146
|
Es,
|
|
7141
7147
|
{
|
|
7142
|
-
playable:
|
|
7148
|
+
playable: z,
|
|
7143
7149
|
creditDownload: re,
|
|
7144
7150
|
visible: o,
|
|
7145
7151
|
versionId: t,
|
|
@@ -7149,25 +7155,25 @@ const Rs = ({
|
|
|
7149
7155
|
handleDownloadError: m,
|
|
7150
7156
|
fetchFileUrl: c,
|
|
7151
7157
|
urls: { iosUrl: g, googleUrl: h },
|
|
7152
|
-
game:
|
|
7158
|
+
game: C,
|
|
7153
7159
|
getDownloadCount: T,
|
|
7154
7160
|
disabled: ce,
|
|
7155
|
-
setSafariCopyLink:
|
|
7161
|
+
setSafariCopyLink: b,
|
|
7156
7162
|
isTest: W,
|
|
7157
7163
|
urlType: K,
|
|
7158
7164
|
allNetworksSelected: I,
|
|
7159
7165
|
setAllNetworksSelected: N,
|
|
7160
7166
|
cdnModal: p,
|
|
7161
7167
|
setCdnModal: O,
|
|
7162
|
-
cdnUrl:
|
|
7163
|
-
setCdnUrl:
|
|
7168
|
+
cdnUrl: F,
|
|
7169
|
+
setCdnUrl: y
|
|
7164
7170
|
}
|
|
7165
7171
|
)
|
|
7166
7172
|
]
|
|
7167
7173
|
}
|
|
7168
7174
|
);
|
|
7169
7175
|
};
|
|
7170
|
-
var
|
|
7176
|
+
var Un = { exports: {} }, lt = {}, Fn = { exports: {} }, De = {}, _n = { exports: {} };
|
|
7171
7177
|
(function(e, t) {
|
|
7172
7178
|
Object.defineProperty(t, "__esModule", {
|
|
7173
7179
|
value: !0
|
|
@@ -7184,48 +7190,48 @@ var Bn = { exports: {} }, lt = {}, Un = { exports: {} }, De = {}, Fn = { exports
|
|
|
7184
7190
|
* http://api.jqueryui.com/category/ui-core/
|
|
7185
7191
|
*/
|
|
7186
7192
|
var n = "none", r = "contents", o = /input|select|textarea|button|object|iframe/;
|
|
7187
|
-
function i(d,
|
|
7188
|
-
return
|
|
7193
|
+
function i(d, b) {
|
|
7194
|
+
return b.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
7189
7195
|
d.scrollWidth <= 0 && d.scrollHeight <= 0;
|
|
7190
7196
|
}
|
|
7191
7197
|
function a(d) {
|
|
7192
|
-
var
|
|
7193
|
-
if (
|
|
7198
|
+
var b = d.offsetWidth <= 0 && d.offsetHeight <= 0;
|
|
7199
|
+
if (b && !d.innerHTML)
|
|
7194
7200
|
return !0;
|
|
7195
7201
|
try {
|
|
7196
7202
|
var g = window.getComputedStyle(d), h = g.getPropertyValue("display");
|
|
7197
|
-
return
|
|
7203
|
+
return b ? h !== r && i(d, g) : h === n;
|
|
7198
7204
|
} catch {
|
|
7199
7205
|
return console.warn("Failed to inspect element style"), !1;
|
|
7200
7206
|
}
|
|
7201
7207
|
}
|
|
7202
7208
|
function A(d) {
|
|
7203
|
-
for (var
|
|
7204
|
-
if (g &&
|
|
7209
|
+
for (var b = d, g = d.getRootNode && d.getRootNode(); b && b !== document.body; ) {
|
|
7210
|
+
if (g && b === g && (b = g.host.parentNode), a(b))
|
|
7205
7211
|
return !1;
|
|
7206
|
-
|
|
7212
|
+
b = b.parentNode;
|
|
7207
7213
|
}
|
|
7208
7214
|
return !0;
|
|
7209
7215
|
}
|
|
7210
|
-
function m(d,
|
|
7211
|
-
var g = d.nodeName.toLowerCase(), h = o.test(g) && !d.disabled || g === "a" && d.href ||
|
|
7216
|
+
function m(d, b) {
|
|
7217
|
+
var g = d.nodeName.toLowerCase(), h = o.test(g) && !d.disabled || g === "a" && d.href || b;
|
|
7212
7218
|
return h && A(d);
|
|
7213
7219
|
}
|
|
7214
7220
|
function c(d) {
|
|
7215
|
-
var
|
|
7216
|
-
|
|
7217
|
-
var g = isNaN(
|
|
7218
|
-
return (g ||
|
|
7221
|
+
var b = d.getAttribute("tabindex");
|
|
7222
|
+
b === null && (b = void 0);
|
|
7223
|
+
var g = isNaN(b);
|
|
7224
|
+
return (g || b >= 0) && m(d, !g);
|
|
7219
7225
|
}
|
|
7220
7226
|
function l(d) {
|
|
7221
|
-
var
|
|
7227
|
+
var b = [].slice.call(d.querySelectorAll("*"), 0).reduce(function(g, h) {
|
|
7222
7228
|
return g.concat(h.shadowRoot ? l(h.shadowRoot) : [h]);
|
|
7223
7229
|
}, []);
|
|
7224
|
-
return
|
|
7230
|
+
return b.filter(c);
|
|
7225
7231
|
}
|
|
7226
7232
|
e.exports = t.default;
|
|
7227
|
-
})(
|
|
7228
|
-
var ai =
|
|
7233
|
+
})(_n, _n.exports);
|
|
7234
|
+
var ai = _n.exports;
|
|
7229
7235
|
Object.defineProperty(De, "__esModule", {
|
|
7230
7236
|
value: !0
|
|
7231
7237
|
});
|
|
@@ -7242,7 +7248,7 @@ var Gs = ai, Ts = Hs(Gs);
|
|
|
7242
7248
|
function Hs(e) {
|
|
7243
7249
|
return e && e.__esModule ? e : { default: e };
|
|
7244
7250
|
}
|
|
7245
|
-
var ut = [], ft = null,
|
|
7251
|
+
var ut = [], ft = null, $n = !1;
|
|
7246
7252
|
function Xs() {
|
|
7247
7253
|
ut = [];
|
|
7248
7254
|
}
|
|
@@ -7253,11 +7259,11 @@ function Qs() {
|
|
|
7253
7259
|
}), console.log("end focusManager ----------"));
|
|
7254
7260
|
}
|
|
7255
7261
|
function Et() {
|
|
7256
|
-
|
|
7262
|
+
$n = !0;
|
|
7257
7263
|
}
|
|
7258
7264
|
function kt() {
|
|
7259
|
-
if (
|
|
7260
|
-
if (
|
|
7265
|
+
if ($n) {
|
|
7266
|
+
if ($n = !1, !ft)
|
|
7261
7267
|
return;
|
|
7262
7268
|
setTimeout(function() {
|
|
7263
7269
|
if (!ft.contains(document.activeElement)) {
|
|
@@ -7288,7 +7294,7 @@ function Us(e) {
|
|
|
7288
7294
|
function Fs() {
|
|
7289
7295
|
ft = null, window.addEventListener ? (window.removeEventListener("blur", Et), document.removeEventListener("focus", kt)) : (window.detachEvent("onBlur", Et), document.detachEvent("onFocus", kt));
|
|
7290
7296
|
}
|
|
7291
|
-
var
|
|
7297
|
+
var er = { exports: {} };
|
|
7292
7298
|
(function(e, t) {
|
|
7293
7299
|
Object.defineProperty(t, "__esModule", {
|
|
7294
7300
|
value: !0
|
|
@@ -7307,13 +7313,13 @@ var $n = { exports: {} };
|
|
|
7307
7313
|
m.preventDefault();
|
|
7308
7314
|
return;
|
|
7309
7315
|
}
|
|
7310
|
-
var l = void 0, d = m.shiftKey,
|
|
7316
|
+
var l = void 0, d = m.shiftKey, b = c[0], g = c[c.length - 1], h = i();
|
|
7311
7317
|
if (A === h) {
|
|
7312
7318
|
if (!d)
|
|
7313
7319
|
return;
|
|
7314
7320
|
l = g;
|
|
7315
7321
|
}
|
|
7316
|
-
if (g === h && !d && (l =
|
|
7322
|
+
if (g === h && !d && (l = b), b === h && d && (l = g), l) {
|
|
7317
7323
|
m.preventDefault(), l.focus();
|
|
7318
7324
|
return;
|
|
7319
7325
|
}
|
|
@@ -7321,15 +7327,15 @@ var $n = { exports: {} };
|
|
|
7321
7327
|
if (v) {
|
|
7322
7328
|
var K = c.indexOf(h);
|
|
7323
7329
|
if (K > -1 && (K += d ? -1 : 1), l = c[K], typeof l > "u") {
|
|
7324
|
-
m.preventDefault(), l = d ? g :
|
|
7330
|
+
m.preventDefault(), l = d ? g : b, l.focus();
|
|
7325
7331
|
return;
|
|
7326
7332
|
}
|
|
7327
7333
|
m.preventDefault(), l.focus();
|
|
7328
7334
|
}
|
|
7329
7335
|
}
|
|
7330
7336
|
e.exports = t.default;
|
|
7331
|
-
})(
|
|
7332
|
-
var _s =
|
|
7337
|
+
})(er, er.exports);
|
|
7338
|
+
var _s = er.exports, Re = {}, $s = process.env.NODE_ENV !== "production", Ai = function() {
|
|
7333
7339
|
};
|
|
7334
7340
|
if ($s) {
|
|
7335
7341
|
var el = function(t, n) {
|
|
@@ -7396,7 +7402,7 @@ Re.resetState = cl;
|
|
|
7396
7402
|
Re.log = ml;
|
|
7397
7403
|
Re.assertNodeList = li;
|
|
7398
7404
|
Re.setElement = dl;
|
|
7399
|
-
Re.validateElement =
|
|
7405
|
+
Re.validateElement = hr;
|
|
7400
7406
|
Re.hide = pl;
|
|
7401
7407
|
Re.show = fl;
|
|
7402
7408
|
Re.documentNotReadyOrSSRTesting = hl;
|
|
@@ -7430,14 +7436,14 @@ function dl(e) {
|
|
|
7430
7436
|
}
|
|
7431
7437
|
return Ke = t || Ke, Ke;
|
|
7432
7438
|
}
|
|
7433
|
-
function
|
|
7439
|
+
function hr(e) {
|
|
7434
7440
|
var t = e || Ke;
|
|
7435
7441
|
return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, sl.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
|
|
7436
7442
|
}
|
|
7437
7443
|
function pl(e) {
|
|
7438
7444
|
var t = !0, n = !1, r = void 0;
|
|
7439
7445
|
try {
|
|
7440
|
-
for (var o =
|
|
7446
|
+
for (var o = hr(e)[Symbol.iterator](), i; !(t = (i = o.next()).done); t = !0) {
|
|
7441
7447
|
var a = i.value;
|
|
7442
7448
|
a.setAttribute("aria-hidden", "true");
|
|
7443
7449
|
}
|
|
@@ -7455,7 +7461,7 @@ function pl(e) {
|
|
|
7455
7461
|
function fl(e) {
|
|
7456
7462
|
var t = !0, n = !1, r = void 0;
|
|
7457
7463
|
try {
|
|
7458
|
-
for (var o =
|
|
7464
|
+
for (var o = hr(e)[Symbol.iterator](), i; !(t = (i = o.next()).done); t = !0) {
|
|
7459
7465
|
var a = i.value;
|
|
7460
7466
|
a.removeAttribute("aria-hidden");
|
|
7461
7467
|
}
|
|
@@ -7578,12 +7584,12 @@ function xl() {
|
|
|
7578
7584
|
nn = new ui();
|
|
7579
7585
|
}
|
|
7580
7586
|
bt.default = nn;
|
|
7581
|
-
var
|
|
7582
|
-
Object.defineProperty(
|
|
7587
|
+
var gr = {};
|
|
7588
|
+
Object.defineProperty(gr, "__esModule", {
|
|
7583
7589
|
value: !0
|
|
7584
7590
|
});
|
|
7585
|
-
|
|
7586
|
-
|
|
7591
|
+
gr.resetState = Ml;
|
|
7592
|
+
gr.log = Sl;
|
|
7587
7593
|
var wl = bt, Kl = Wl(wl);
|
|
7588
7594
|
function Wl(e) {
|
|
7589
7595
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7640,7 +7646,7 @@ Kl.default.subscribe(Ll);
|
|
|
7640
7646
|
return function(W, J, p) {
|
|
7641
7647
|
return J && M(W.prototype, J), p && M(W, p), W;
|
|
7642
7648
|
};
|
|
7643
|
-
}(), i = se, a = An, A =
|
|
7649
|
+
}(), i = se, a = An, A = C(a), m = De, c = L(m), l = _s, d = C(l), b = Re, g = L(b), h = vt, f = L(h), v = Ne, K = C(v), E = bt, z = C(E);
|
|
7644
7650
|
function L(M) {
|
|
7645
7651
|
if (M && M.__esModule)
|
|
7646
7652
|
return M;
|
|
@@ -7650,7 +7656,7 @@ Kl.default.subscribe(Ll);
|
|
|
7650
7656
|
Object.prototype.hasOwnProperty.call(M, J) && (W[J] = M[J]);
|
|
7651
7657
|
return W.default = M, W;
|
|
7652
7658
|
}
|
|
7653
|
-
function
|
|
7659
|
+
function C(M) {
|
|
7654
7660
|
return M && M.__esModule ? M : { default: M };
|
|
7655
7661
|
}
|
|
7656
7662
|
function P(M, W) {
|
|
@@ -7662,7 +7668,7 @@ Kl.default.subscribe(Ll);
|
|
|
7662
7668
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7663
7669
|
return W && (typeof W == "object" || typeof W == "function") ? W : M;
|
|
7664
7670
|
}
|
|
7665
|
-
function
|
|
7671
|
+
function U(M, W) {
|
|
7666
7672
|
if (typeof W != "function" && W !== null)
|
|
7667
7673
|
throw new TypeError("Super expression must either be null or a function, not " + typeof W);
|
|
7668
7674
|
M.prototype = Object.create(W && W.prototype, { constructor: { value: M, enumerable: !1, writable: !0, configurable: !0 } }), W && (Object.setPrototypeOf ? Object.setPrototypeOf(M, W) : M.__proto__ = W);
|
|
@@ -7670,12 +7676,12 @@ Kl.default.subscribe(Ll);
|
|
|
7670
7676
|
var de = {
|
|
7671
7677
|
overlay: "ReactModal__Overlay",
|
|
7672
7678
|
content: "ReactModal__Content"
|
|
7673
|
-
},
|
|
7679
|
+
}, ee = function(W) {
|
|
7674
7680
|
return W.code === "Tab" || W.keyCode === 9;
|
|
7675
7681
|
}, ce = function(W) {
|
|
7676
7682
|
return W.code === "Escape" || W.keyCode === 27;
|
|
7677
|
-
},
|
|
7678
|
-
|
|
7683
|
+
}, V = 0, _ = function(M) {
|
|
7684
|
+
U(W, M);
|
|
7679
7685
|
function W(J) {
|
|
7680
7686
|
P(this, W);
|
|
7681
7687
|
var p = re(this, (W.__proto__ || Object.getPrototypeOf(W)).call(this, J));
|
|
@@ -7684,8 +7690,8 @@ Kl.default.subscribe(Ll);
|
|
|
7684
7690
|
}, p.setContentRef = function(O) {
|
|
7685
7691
|
p.content = O, p.props.contentRef && p.props.contentRef(O);
|
|
7686
7692
|
}, p.afterClose = function() {
|
|
7687
|
-
var O = p.props,
|
|
7688
|
-
N && f.remove(
|
|
7693
|
+
var O = p.props, F = O.appElement, y = O.ariaHideApp, I = O.htmlOpenClassName, N = O.bodyOpenClassName, k = O.parentSelector, Y = k && k().ownerDocument || document;
|
|
7694
|
+
N && f.remove(Y.body, N), I && f.remove(Y.getElementsByTagName("html")[0], I), y && V > 0 && (V -= 1, V === 0 && g.show(F)), p.props.shouldFocusAfterRender && (p.props.shouldReturnFocusAfterClose ? (c.returnFocus(p.props.preventScroll), c.teardownScopedFocus()) : c.popWithoutFocus()), p.props.onAfterClose && p.props.onAfterClose(), z.default.deregister(p);
|
|
7689
7695
|
}, p.open = function() {
|
|
7690
7696
|
p.beforeOpen(), p.state.afterOpen && p.state.beforeClose ? (clearTimeout(p.closeTimer), p.setState({ beforeClose: !1 })) : (p.props.shouldFocusAfterRender && (c.setupScopedFocus(p.node), c.markForFocusLater()), p.setState({ isOpen: !0 }, function() {
|
|
7691
7697
|
p.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -7712,7 +7718,7 @@ Kl.default.subscribe(Ll);
|
|
|
7712
7718
|
closesAt: null
|
|
7713
7719
|
}, p.afterClose);
|
|
7714
7720
|
}, p.handleKeyDown = function(O) {
|
|
7715
|
-
|
|
7721
|
+
ee(O) && (0, d.default)(p.content, O), p.props.shouldCloseOnEsc && ce(O) && (O.stopPropagation(), p.requestClose(O));
|
|
7716
7722
|
}, p.handleOverlayOnClick = function(O) {
|
|
7717
7723
|
p.shouldClose === null && (p.shouldClose = !0), p.shouldClose && p.props.shouldCloseOnOverlayClick && (p.ownerHandlesClose() ? p.requestClose(O) : p.focusContent()), p.shouldClose = null;
|
|
7718
7724
|
}, p.handleContentOnMouseUp = function() {
|
|
@@ -7731,16 +7737,16 @@ Kl.default.subscribe(Ll);
|
|
|
7731
7737
|
return !p.state.isOpen && !p.state.beforeClose;
|
|
7732
7738
|
}, p.contentHasFocus = function() {
|
|
7733
7739
|
return document.activeElement === p.content || p.content.contains(document.activeElement);
|
|
7734
|
-
}, p.buildClassName = function(O,
|
|
7735
|
-
var
|
|
7740
|
+
}, p.buildClassName = function(O, F) {
|
|
7741
|
+
var y = (typeof F > "u" ? "undefined" : r(F)) === "object" ? F : {
|
|
7736
7742
|
base: de[O],
|
|
7737
7743
|
afterOpen: de[O] + "--after-open",
|
|
7738
7744
|
beforeClose: de[O] + "--before-close"
|
|
7739
|
-
}, I =
|
|
7740
|
-
return p.state.afterOpen && (I = I + " " +
|
|
7741
|
-
}, p.attributesFromObject = function(O,
|
|
7742
|
-
return Object.keys(
|
|
7743
|
-
return
|
|
7745
|
+
}, I = y.base;
|
|
7746
|
+
return p.state.afterOpen && (I = I + " " + y.afterOpen), p.state.beforeClose && (I = I + " " + y.beforeClose), typeof F == "string" && F ? I + " " + F : I;
|
|
7747
|
+
}, p.attributesFromObject = function(O, F) {
|
|
7748
|
+
return Object.keys(F).reduce(function(y, I) {
|
|
7749
|
+
return y[O + "-" + I] = F[I], y;
|
|
7744
7750
|
}, {});
|
|
7745
7751
|
}, p.state = {
|
|
7746
7752
|
afterOpen: !1,
|
|
@@ -7765,27 +7771,27 @@ Kl.default.subscribe(Ll);
|
|
|
7765
7771
|
}, {
|
|
7766
7772
|
key: "beforeOpen",
|
|
7767
7773
|
value: function() {
|
|
7768
|
-
var p = this.props, O = p.appElement,
|
|
7769
|
-
I && f.add(k.body, I),
|
|
7774
|
+
var p = this.props, O = p.appElement, F = p.ariaHideApp, y = p.htmlOpenClassName, I = p.bodyOpenClassName, N = p.parentSelector, k = N && N().ownerDocument || document;
|
|
7775
|
+
I && f.add(k.body, I), y && f.add(k.getElementsByTagName("html")[0], y), F && (V += 1, g.hide(O)), z.default.register(this);
|
|
7770
7776
|
}
|
|
7771
7777
|
// Don't steal focus from inner elements
|
|
7772
7778
|
}, {
|
|
7773
7779
|
key: "render",
|
|
7774
7780
|
value: function() {
|
|
7775
|
-
var p = this.props, O = p.id,
|
|
7781
|
+
var p = this.props, O = p.id, F = p.className, y = p.overlayClassName, I = p.defaultStyles, N = p.children, k = F ? {} : I.content, Y = y ? {} : I.overlay;
|
|
7776
7782
|
if (this.shouldBeClosed())
|
|
7777
7783
|
return null;
|
|
7778
7784
|
var G = {
|
|
7779
7785
|
ref: this.setOverlayRef,
|
|
7780
|
-
className: this.buildClassName("overlay",
|
|
7781
|
-
style: n({},
|
|
7786
|
+
className: this.buildClassName("overlay", y),
|
|
7787
|
+
style: n({}, Y, this.props.style.overlay),
|
|
7782
7788
|
onClick: this.handleOverlayOnClick,
|
|
7783
7789
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
7784
|
-
},
|
|
7790
|
+
}, R = n({
|
|
7785
7791
|
id: O,
|
|
7786
7792
|
ref: this.setContentRef,
|
|
7787
7793
|
style: n({}, k, this.props.style.content),
|
|
7788
|
-
className: this.buildClassName("content",
|
|
7794
|
+
className: this.buildClassName("content", F),
|
|
7789
7795
|
tabIndex: "-1",
|
|
7790
7796
|
onKeyDown: this.handleKeyDown,
|
|
7791
7797
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -7795,8 +7801,8 @@ Kl.default.subscribe(Ll);
|
|
|
7795
7801
|
"aria-label": this.props.contentLabel
|
|
7796
7802
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
7797
7803
|
"data-testid": this.props.testId
|
|
7798
|
-
}),
|
|
7799
|
-
return this.props.overlayElement(G,
|
|
7804
|
+
}), D = this.props.contentElement(R, N);
|
|
7805
|
+
return this.props.overlayElement(G, D);
|
|
7800
7806
|
}
|
|
7801
7807
|
}]), W;
|
|
7802
7808
|
}(i.Component);
|
|
@@ -7844,8 +7850,8 @@ Kl.default.subscribe(Ll);
|
|
|
7844
7850
|
contentElement: A.default.func,
|
|
7845
7851
|
testId: A.default.string
|
|
7846
7852
|
}, t.default = _, e.exports = t.default;
|
|
7847
|
-
})(
|
|
7848
|
-
var Ol =
|
|
7853
|
+
})(Fn, Fn.exports);
|
|
7854
|
+
var Ol = Fn.exports;
|
|
7849
7855
|
function ci() {
|
|
7850
7856
|
var e = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
7851
7857
|
e != null && this.setState(e);
|
|
@@ -7900,8 +7906,8 @@ https://fb.me/react-async-component-lifecycle-hooks`
|
|
|
7900
7906
|
t.componentWillUpdate = di;
|
|
7901
7907
|
var A = t.componentDidUpdate;
|
|
7902
7908
|
t.componentDidUpdate = function(c, l, d) {
|
|
7903
|
-
var
|
|
7904
|
-
A.call(this, c, l,
|
|
7909
|
+
var b = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
7910
|
+
A.call(this, c, l, b);
|
|
7905
7911
|
};
|
|
7906
7912
|
}
|
|
7907
7913
|
return e;
|
|
@@ -7958,7 +7964,7 @@ function Xl(e, t) {
|
|
|
7958
7964
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
7959
7965
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
7960
7966
|
}
|
|
7961
|
-
var Ql = lt.portalClassName = "ReactModalPortal", Pl = lt.bodyOpenClassName = "ReactModal__Body--open", rt = $e.canUseDOM && on.default.createPortal !== void 0,
|
|
7967
|
+
var Ql = lt.portalClassName = "ReactModalPortal", Pl = lt.bodyOpenClassName = "ReactModal__Body--open", rt = $e.canUseDOM && on.default.createPortal !== void 0, tr = function(t) {
|
|
7962
7968
|
return document.createElement(t);
|
|
7963
7969
|
}, co = function() {
|
|
7964
7970
|
return rt ? on.default.createPortal : on.default.unstable_renderSubtreeIntoContainer;
|
|
@@ -7988,7 +7994,7 @@ var Ct = function(e) {
|
|
|
7988
7994
|
key: "componentDidMount",
|
|
7989
7995
|
value: function() {
|
|
7990
7996
|
if ($e.canUseDOM) {
|
|
7991
|
-
rt || (this.node =
|
|
7997
|
+
rt || (this.node = tr("div")), this.node.className = this.props.portalClassName;
|
|
7992
7998
|
var r = Pt(this.props.parentSelector);
|
|
7993
7999
|
r.appendChild(this.node), !rt && this.renderPortal(this.props);
|
|
7994
8000
|
}
|
|
@@ -8022,7 +8028,7 @@ var Ct = function(e) {
|
|
|
8022
8028
|
value: function() {
|
|
8023
8029
|
if (!$e.canUseDOM || !rt)
|
|
8024
8030
|
return null;
|
|
8025
|
-
!this.node && rt && (this.node =
|
|
8031
|
+
!this.node && rt && (this.node = tr("div"));
|
|
8026
8032
|
var r = co();
|
|
8027
8033
|
return r(rn.default.createElement(so.default, Ao({
|
|
8028
8034
|
ref: this.portalRef,
|
|
@@ -8134,7 +8140,7 @@ Ct.defaultStyles = {
|
|
|
8134
8140
|
};
|
|
8135
8141
|
(0, Gl.polyfill)(Ct);
|
|
8136
8142
|
process.env.NODE_ENV !== "production" && (Ct.setCreateHTMLElement = function(e) {
|
|
8137
|
-
return
|
|
8143
|
+
return tr = e;
|
|
8138
8144
|
});
|
|
8139
8145
|
lt.default = Ct;
|
|
8140
8146
|
(function(e, t) {
|
|
@@ -8146,9 +8152,9 @@ lt.default = Ct;
|
|
|
8146
8152
|
return i && i.__esModule ? i : { default: i };
|
|
8147
8153
|
}
|
|
8148
8154
|
t.default = r.default, e.exports = t.default;
|
|
8149
|
-
})(
|
|
8150
|
-
var Vl =
|
|
8151
|
-
const
|
|
8155
|
+
})(Un, Un.exports);
|
|
8156
|
+
var Vl = Un.exports;
|
|
8157
|
+
const nr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /* @__PURE__ */ s.jsxs(
|
|
8152
8158
|
"svg",
|
|
8153
8159
|
{
|
|
8154
8160
|
width: e,
|
|
@@ -8196,7 +8202,7 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8196
8202
|
t(), e(!1), n(!0);
|
|
8197
8203
|
};
|
|
8198
8204
|
return /* @__PURE__ */ s.jsxs(
|
|
8199
|
-
|
|
8205
|
+
nr,
|
|
8200
8206
|
{
|
|
8201
8207
|
isOpen: !0,
|
|
8202
8208
|
ariaHideApp: !1,
|
|
@@ -8403,33 +8409,33 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8403
8409
|
title: c,
|
|
8404
8410
|
iframeUrl: l,
|
|
8405
8411
|
handleDownloadError: d,
|
|
8406
|
-
fetchFileUrl:
|
|
8412
|
+
fetchFileUrl: b,
|
|
8407
8413
|
copyLinkUrl: g,
|
|
8408
8414
|
fusionData: h
|
|
8409
8415
|
}) => {
|
|
8410
|
-
const [f, v] = X(window.innerWidth), [K, E] = X(!1), [
|
|
8411
|
-
ms(a, A,
|
|
8412
|
-
const
|
|
8413
|
-
Ot(n, "preview", null, null, !1).then((
|
|
8414
|
-
E(!0), L(
|
|
8416
|
+
const [f, v] = X(window.innerWidth), [K, E] = X(!1), [z, L] = X(l), [C, P] = X(!1), [re, U] = X(!0), [de, ee] = X(null), [ce, V] = X(""), [_, M] = X("Loading..."), [W, J] = X("Loading..."), [p, O] = X("game");
|
|
8417
|
+
ms(a, A, V, b, h);
|
|
8418
|
+
const F = async () => {
|
|
8419
|
+
Ot(n, "preview", null, null, !1).then((y) => {
|
|
8420
|
+
E(!0), L(b + "/" + y.url), (a === "Flex" || a === "Ready" || a === "Playable") && (y.size >= 5 ? P(!0) : P(!1), ee(y.size)), U(!1);
|
|
8415
8421
|
});
|
|
8416
8422
|
};
|
|
8417
8423
|
return ve(() => {
|
|
8418
|
-
e ? K || (
|
|
8424
|
+
e ? K || (F(), E(!0)) : (E(!1), L(""));
|
|
8419
8425
|
}, [e]), ve(() => {
|
|
8420
|
-
const
|
|
8426
|
+
const y = () => {
|
|
8421
8427
|
v(window.innerWidth);
|
|
8422
8428
|
};
|
|
8423
|
-
return window.addEventListener("resize",
|
|
8424
|
-
window.removeEventListener("resize",
|
|
8429
|
+
return window.addEventListener("resize", y), () => {
|
|
8430
|
+
window.removeEventListener("resize", y);
|
|
8425
8431
|
};
|
|
8426
8432
|
}, []), re && e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
8427
|
-
|
|
8433
|
+
nr,
|
|
8428
8434
|
{
|
|
8429
8435
|
isOpen: e,
|
|
8430
8436
|
ariaHideApp: !1,
|
|
8431
8437
|
onRequestClose: () => {
|
|
8432
|
-
t(), a === "Flex" &&
|
|
8438
|
+
t(), a === "Flex" && U(!0);
|
|
8433
8439
|
},
|
|
8434
8440
|
style: {
|
|
8435
8441
|
content: {
|
|
@@ -8481,29 +8487,29 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8481
8487
|
) }) : re && a === "Flex" ? null : /* @__PURE__ */ s.jsxs(
|
|
8482
8488
|
"div",
|
|
8483
8489
|
{
|
|
8484
|
-
onMouseDown: (
|
|
8485
|
-
|
|
8490
|
+
onMouseDown: (y) => {
|
|
8491
|
+
y.stopPropagation();
|
|
8486
8492
|
},
|
|
8487
|
-
onMouseUp: (
|
|
8488
|
-
|
|
8493
|
+
onMouseUp: (y) => {
|
|
8494
|
+
y.stopPropagation();
|
|
8489
8495
|
},
|
|
8490
8496
|
children: [
|
|
8491
|
-
|
|
8497
|
+
C && e && /* @__PURE__ */ s.jsx(
|
|
8492
8498
|
Ul,
|
|
8493
8499
|
{
|
|
8494
8500
|
setIsExceedingFileSizeAccepted: P,
|
|
8495
8501
|
closeModal: t,
|
|
8496
|
-
setLoading:
|
|
8502
|
+
setLoading: U,
|
|
8497
8503
|
typeOfProduct: a
|
|
8498
8504
|
}
|
|
8499
8505
|
),
|
|
8500
|
-
!
|
|
8501
|
-
|
|
8506
|
+
!C && /* @__PURE__ */ s.jsxs(
|
|
8507
|
+
nr,
|
|
8502
8508
|
{
|
|
8503
8509
|
isOpen: e,
|
|
8504
8510
|
ariaHideApp: !1,
|
|
8505
8511
|
onRequestClose: () => {
|
|
8506
|
-
t(), a === "Flex" &&
|
|
8512
|
+
t(), a === "Flex" && U(!0);
|
|
8507
8513
|
},
|
|
8508
8514
|
style: {
|
|
8509
8515
|
content: {
|
|
@@ -8548,7 +8554,7 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8548
8554
|
"button",
|
|
8549
8555
|
{
|
|
8550
8556
|
onClick: () => {
|
|
8551
|
-
t(), a === "Flex" &&
|
|
8557
|
+
t(), a === "Flex" && U(!0);
|
|
8552
8558
|
},
|
|
8553
8559
|
style: {
|
|
8554
8560
|
color: "#718096",
|
|
@@ -8569,11 +8575,11 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8569
8575
|
versionId: n,
|
|
8570
8576
|
playableId: i || "",
|
|
8571
8577
|
typeOfProduct: a,
|
|
8572
|
-
iframeUrl:
|
|
8578
|
+
iframeUrl: z,
|
|
8573
8579
|
api: A,
|
|
8574
|
-
fetchFileUrl:
|
|
8580
|
+
fetchFileUrl: b,
|
|
8575
8581
|
copyLinkUrl: g,
|
|
8576
|
-
setSafariCopyLink:
|
|
8582
|
+
setSafariCopyLink: V,
|
|
8577
8583
|
iosLink: _,
|
|
8578
8584
|
androidLink: W,
|
|
8579
8585
|
urlType: p
|
|
@@ -8616,10 +8622,10 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8616
8622
|
user: m,
|
|
8617
8623
|
title: c,
|
|
8618
8624
|
handleDownloadError: d,
|
|
8619
|
-
fetchFileUrl:
|
|
8625
|
+
fetchFileUrl: b,
|
|
8620
8626
|
fileSize: de,
|
|
8621
|
-
setFileSize:
|
|
8622
|
-
setSafariCopyLink:
|
|
8627
|
+
setFileSize: ee,
|
|
8628
|
+
setSafariCopyLink: V,
|
|
8623
8629
|
iosLink: _,
|
|
8624
8630
|
androidLink: W,
|
|
8625
8631
|
setIosLink: M,
|
|
@@ -8629,12 +8635,12 @@ const tr = /* @__PURE__ */ Ni(Vl), Bl = ({ width: e, height: t, fill: n }) => /*
|
|
|
8629
8635
|
}
|
|
8630
8636
|
)
|
|
8631
8637
|
] }),
|
|
8632
|
-
/* @__PURE__ */ s.jsx(
|
|
8638
|
+
/* @__PURE__ */ s.jsx(Pn, {}),
|
|
8633
8639
|
ce && /* @__PURE__ */ s.jsx(
|
|
8634
8640
|
Fl,
|
|
8635
8641
|
{
|
|
8636
8642
|
onClose: () => {
|
|
8637
|
-
Nt(ce),
|
|
8643
|
+
Nt(ce), V("");
|
|
8638
8644
|
},
|
|
8639
8645
|
url: ce
|
|
8640
8646
|
}
|