gearboxdownloadmodal 1.0.36 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1299 -1098
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +18 -18
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import re, { useState as me, useEffect as je, forwardRef as va, useReducer as ga, useRef as _e, isValidElement as lt, cloneElement as Or, useLayoutEffect as ya } from "react";
|
|
2
2
|
import ba from "react-dom";
|
|
3
3
|
function Za(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -39,16 +39,16 @@ function Ia() {
|
|
|
39
39
|
if (hn)
|
|
40
40
|
return ht;
|
|
41
41
|
hn = 1;
|
|
42
|
-
var e =
|
|
42
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, A = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
43
|
function o(i, c, u) {
|
|
44
|
-
var l, m = {},
|
|
45
|
-
u !== void 0 && (
|
|
44
|
+
var l, m = {}, v = null, f = null;
|
|
45
|
+
u !== void 0 && (v = "" + u), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (f = c.ref);
|
|
46
46
|
for (l in c)
|
|
47
47
|
n.call(c, l) && !a.hasOwnProperty(l) && (m[l] = c[l]);
|
|
48
48
|
if (i && i.defaultProps)
|
|
49
49
|
for (l in c = i.defaultProps, c)
|
|
50
50
|
m[l] === void 0 && (m[l] = c[l]);
|
|
51
|
-
return { $$typeof: t, type: i, key:
|
|
51
|
+
return { $$typeof: t, type: i, key: v, ref: f, props: m, _owner: A.current };
|
|
52
52
|
}
|
|
53
53
|
return ht.Fragment = r, ht.jsx = o, ht.jsxs = o, ht;
|
|
54
54
|
}
|
|
@@ -65,54 +65,54 @@ var vt = {};
|
|
|
65
65
|
var vn;
|
|
66
66
|
function Ka() {
|
|
67
67
|
return vn || (vn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
-
var e =
|
|
68
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), p = Symbol.iterator, g = "@@iterator";
|
|
69
69
|
function C(s) {
|
|
70
70
|
if (s === null || typeof s != "object")
|
|
71
71
|
return null;
|
|
72
|
-
var Z = p && s[p] || s[
|
|
72
|
+
var Z = p && s[p] || s[g];
|
|
73
73
|
return typeof Z == "function" ? Z : null;
|
|
74
74
|
}
|
|
75
75
|
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
-
function
|
|
76
|
+
function E(s) {
|
|
77
77
|
{
|
|
78
|
-
for (var Z = arguments.length,
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
for (var Z = arguments.length, M = new Array(Z > 1 ? Z - 1 : 0), R = 1; R < Z; R++)
|
|
79
|
+
M[R - 1] = arguments[R];
|
|
80
|
+
j("error", s, M);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function j(s, Z, M) {
|
|
84
84
|
{
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
var oe =
|
|
85
|
+
var R = I.ReactDebugCurrentFrame, te = R.getStackAddendum();
|
|
86
|
+
te !== "" && (Z += "%s", M = M.concat([te]));
|
|
87
|
+
var oe = M.map(function(U) {
|
|
88
88
|
return String(U);
|
|
89
89
|
});
|
|
90
90
|
oe.unshift("Warning: " + Z), Function.prototype.apply.call(console[s], console, oe);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
|
|
93
|
+
var W = !1, q = !1, ie = !1, le = !1, x = !1, Q;
|
|
94
|
+
Q = Symbol.for("react.module.reference");
|
|
95
95
|
function ae(s) {
|
|
96
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a ||
|
|
96
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || x || s === A || s === u || s === l || le || s === f || W || q || ie || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === m || s.$$typeof === o || s.$$typeof === i || s.$$typeof === c || // 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.
|
|
100
|
-
s.$$typeof ===
|
|
100
|
+
s.$$typeof === Q || s.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var
|
|
104
|
-
if (
|
|
105
|
-
return
|
|
106
|
-
var
|
|
107
|
-
return
|
|
102
|
+
function P(s, Z, M) {
|
|
103
|
+
var R = s.displayName;
|
|
104
|
+
if (R)
|
|
105
|
+
return R;
|
|
106
|
+
var te = Z.displayName || Z.name || "";
|
|
107
|
+
return te !== "" ? M + "(" + te + ")" : M;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function H(s) {
|
|
110
110
|
return s.displayName || "Context";
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function N(s) {
|
|
113
113
|
if (s == null)
|
|
114
114
|
return null;
|
|
115
|
-
if (typeof s.tag == "number" &&
|
|
115
|
+
if (typeof s.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
116
116
|
return s.displayName || s.name || null;
|
|
117
117
|
if (typeof s == "string")
|
|
118
118
|
return s;
|
|
@@ -134,19 +134,19 @@ function Ka() {
|
|
|
134
134
|
switch (s.$$typeof) {
|
|
135
135
|
case i:
|
|
136
136
|
var Z = s;
|
|
137
|
-
return
|
|
137
|
+
return H(Z) + ".Consumer";
|
|
138
138
|
case o:
|
|
139
|
-
var
|
|
140
|
-
return
|
|
139
|
+
var M = s;
|
|
140
|
+
return H(M._context) + ".Provider";
|
|
141
141
|
case c:
|
|
142
|
-
return
|
|
142
|
+
return P(s, s.render, "ForwardRef");
|
|
143
143
|
case m:
|
|
144
|
-
var
|
|
145
|
-
return
|
|
146
|
-
case
|
|
147
|
-
var
|
|
144
|
+
var R = s.displayName || null;
|
|
145
|
+
return R !== null ? R : N(s.type) || "Memo";
|
|
146
|
+
case v: {
|
|
147
|
+
var te = s, oe = te._payload, U = te._init;
|
|
148
148
|
try {
|
|
149
|
-
return
|
|
149
|
+
return N(U(oe));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,18 +154,18 @@ function Ka() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var
|
|
158
|
-
function
|
|
157
|
+
var O = Object.assign, L = 0, k, d, w, _, b, K, J;
|
|
158
|
+
function Y() {
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
function
|
|
160
|
+
Y.__reactDisabledLog = !0;
|
|
161
|
+
function z() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
164
|
-
|
|
163
|
+
if (L === 0) {
|
|
164
|
+
k = console.log, d = console.info, w = console.warn, _ = console.error, b = console.group, K = console.groupCollapsed, J = console.groupEnd;
|
|
165
165
|
var s = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
|
-
value:
|
|
168
|
+
value: Y,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
@@ -178,77 +178,77 @@ function Ka() {
|
|
|
178
178
|
groupEnd: s
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
L++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function X() {
|
|
185
185
|
{
|
|
186
|
-
if (
|
|
186
|
+
if (L--, L === 0) {
|
|
187
187
|
var s = {
|
|
188
188
|
configurable: !0,
|
|
189
189
|
enumerable: !0,
|
|
190
190
|
writable: !0
|
|
191
191
|
};
|
|
192
192
|
Object.defineProperties(console, {
|
|
193
|
-
log:
|
|
194
|
-
value:
|
|
193
|
+
log: O({}, s, {
|
|
194
|
+
value: k
|
|
195
195
|
}),
|
|
196
|
-
info:
|
|
196
|
+
info: O({}, s, {
|
|
197
197
|
value: d
|
|
198
198
|
}),
|
|
199
|
-
warn:
|
|
200
|
-
value:
|
|
199
|
+
warn: O({}, s, {
|
|
200
|
+
value: w
|
|
201
201
|
}),
|
|
202
|
-
error:
|
|
203
|
-
value:
|
|
202
|
+
error: O({}, s, {
|
|
203
|
+
value: _
|
|
204
204
|
}),
|
|
205
|
-
group:
|
|
205
|
+
group: O({}, s, {
|
|
206
206
|
value: b
|
|
207
207
|
}),
|
|
208
|
-
groupCollapsed:
|
|
208
|
+
groupCollapsed: O({}, s, {
|
|
209
209
|
value: K
|
|
210
210
|
}),
|
|
211
|
-
groupEnd:
|
|
212
|
-
value:
|
|
211
|
+
groupEnd: O({}, s, {
|
|
212
|
+
value: J
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
L < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var D = I.ReactCurrentDispatcher, G;
|
|
220
|
+
function V(s, Z, M) {
|
|
221
221
|
{
|
|
222
|
-
if (
|
|
222
|
+
if (G === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var
|
|
227
|
-
|
|
225
|
+
} catch (te) {
|
|
226
|
+
var R = te.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
+
G = R && R[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
|
-
` +
|
|
230
|
+
` + G + s;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var $ = !1, B;
|
|
234
234
|
{
|
|
235
235
|
var he = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
-
|
|
236
|
+
B = new he();
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
if (!s ||
|
|
238
|
+
function S(s, Z) {
|
|
239
|
+
if (!s || $)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
244
|
-
return
|
|
242
|
+
var M = B.get(s);
|
|
243
|
+
if (M !== void 0)
|
|
244
|
+
return M;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
var
|
|
246
|
+
var R;
|
|
247
|
+
$ = !0;
|
|
248
|
+
var te = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var oe;
|
|
251
|
-
oe =
|
|
251
|
+
oe = D.current, D.current = null, z();
|
|
252
252
|
try {
|
|
253
253
|
if (Z) {
|
|
254
254
|
var U = function() {
|
|
@@ -261,111 +261,111 @@ function Ka() {
|
|
|
261
261
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
262
262
|
try {
|
|
263
263
|
Reflect.construct(U, []);
|
|
264
|
-
} catch (
|
|
265
|
-
|
|
264
|
+
} catch (Ne) {
|
|
265
|
+
R = Ne;
|
|
266
266
|
}
|
|
267
267
|
Reflect.construct(s, [], U);
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
270
|
U.call();
|
|
271
|
-
} catch (
|
|
272
|
-
|
|
271
|
+
} catch (Ne) {
|
|
272
|
+
R = Ne;
|
|
273
273
|
}
|
|
274
274
|
s.call(U.prototype);
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
try {
|
|
278
278
|
throw Error();
|
|
279
|
-
} catch (
|
|
280
|
-
|
|
279
|
+
} catch (Ne) {
|
|
280
|
+
R = Ne;
|
|
281
281
|
}
|
|
282
282
|
s();
|
|
283
283
|
}
|
|
284
|
-
} catch (
|
|
285
|
-
if (
|
|
286
|
-
for (var F =
|
|
287
|
-
`), ge =
|
|
288
|
-
`), ce = F.length - 1,
|
|
289
|
-
|
|
290
|
-
for (; ce >= 1 &&
|
|
291
|
-
if (F[ce] !== ge[
|
|
292
|
-
if (ce !== 1 ||
|
|
284
|
+
} catch (Ne) {
|
|
285
|
+
if (Ne && R && typeof Ne.stack == "string") {
|
|
286
|
+
for (var F = Ne.stack.split(`
|
|
287
|
+
`), ge = R.stack.split(`
|
|
288
|
+
`), ce = F.length - 1, de = ge.length - 1; ce >= 1 && de >= 0 && F[ce] !== ge[de]; )
|
|
289
|
+
de--;
|
|
290
|
+
for (; ce >= 1 && de >= 0; ce--, de--)
|
|
291
|
+
if (F[ce] !== ge[de]) {
|
|
292
|
+
if (ce !== 1 || de !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (ce--,
|
|
294
|
+
if (ce--, de--, de < 0 || F[ce] !== ge[de]) {
|
|
295
295
|
var Ie = `
|
|
296
296
|
` + F[ce].replace(" at new ", " at ");
|
|
297
|
-
return s.displayName && Ie.includes("<anonymous>") && (Ie = Ie.replace("<anonymous>", s.displayName)), typeof s == "function" &&
|
|
297
|
+
return s.displayName && Ie.includes("<anonymous>") && (Ie = Ie.replace("<anonymous>", s.displayName)), typeof s == "function" && B.set(s, Ie), Ie;
|
|
298
298
|
}
|
|
299
|
-
while (ce >= 1 &&
|
|
299
|
+
while (ce >= 1 && de >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
$ = !1, D.current = oe, X(), Error.prepareStackTrace = te;
|
|
305
305
|
}
|
|
306
|
-
var it = s ? s.displayName || s.name : "", qn = it ?
|
|
307
|
-
return typeof s == "function" &&
|
|
306
|
+
var it = s ? s.displayName || s.name : "", qn = it ? V(it) : "";
|
|
307
|
+
return typeof s == "function" && B.set(s, qn), qn;
|
|
308
308
|
}
|
|
309
|
-
function Ce(s, Z,
|
|
310
|
-
return
|
|
309
|
+
function Ce(s, Z, M) {
|
|
310
|
+
return S(s, !1);
|
|
311
311
|
}
|
|
312
312
|
function at(s) {
|
|
313
313
|
var Z = s.prototype;
|
|
314
314
|
return !!(Z && Z.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function Ve(s, Z,
|
|
316
|
+
function Ve(s, Z, M) {
|
|
317
317
|
if (s == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof s == "function")
|
|
320
|
-
return
|
|
320
|
+
return S(s, at(s));
|
|
321
321
|
if (typeof s == "string")
|
|
322
|
-
return
|
|
322
|
+
return V(s);
|
|
323
323
|
switch (s) {
|
|
324
324
|
case u:
|
|
325
|
-
return
|
|
325
|
+
return V("Suspense");
|
|
326
326
|
case l:
|
|
327
|
-
return
|
|
327
|
+
return V("SuspenseList");
|
|
328
328
|
}
|
|
329
329
|
if (typeof s == "object")
|
|
330
330
|
switch (s.$$typeof) {
|
|
331
331
|
case c:
|
|
332
332
|
return Ce(s.render);
|
|
333
333
|
case m:
|
|
334
|
-
return Ve(s.type, Z,
|
|
335
|
-
case
|
|
336
|
-
var
|
|
334
|
+
return Ve(s.type, Z, M);
|
|
335
|
+
case v: {
|
|
336
|
+
var R = s, te = R._payload, oe = R._init;
|
|
337
337
|
try {
|
|
338
|
-
return Ve(oe(
|
|
338
|
+
return Ve(oe(te), Z, M);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
345
|
+
var Lt = Object.prototype.hasOwnProperty, nn = {}, An = I.ReactDebugCurrentFrame;
|
|
346
|
+
function Et(s) {
|
|
347
347
|
if (s) {
|
|
348
|
-
var Z = s._owner,
|
|
349
|
-
An.setExtraStackFrame(
|
|
348
|
+
var Z = s._owner, M = Ve(s.type, s._source, Z ? Z.type : null);
|
|
349
|
+
An.setExtraStackFrame(M);
|
|
350
350
|
} else
|
|
351
351
|
An.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function _A(s, Z,
|
|
353
|
+
function _A(s, Z, M, R, te) {
|
|
354
354
|
{
|
|
355
|
-
var oe = Function.call.bind(
|
|
355
|
+
var oe = Function.call.bind(Lt);
|
|
356
356
|
for (var U in s)
|
|
357
357
|
if (oe(s, U)) {
|
|
358
358
|
var F = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof s[U] != "function") {
|
|
361
|
-
var ge = Error((
|
|
361
|
+
var ge = Error((R || "React class") + ": " + M + " type `" + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[U] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
362
|
throw ge.name = "Invariant Violation", ge;
|
|
363
363
|
}
|
|
364
|
-
F = s[U](Z, U,
|
|
364
|
+
F = s[U](Z, U, R, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (ce) {
|
|
366
366
|
F = ce;
|
|
367
367
|
}
|
|
368
|
-
F && !(F instanceof Error) && (
|
|
368
|
+
F && !(F instanceof Error) && (Et(te), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", M, U, typeof F), Et(null)), F instanceof Error && !(F.message in nn) && (nn[F.message] = !0, Et(te), E("Failed %s type: %s", M, F.message), Et(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -375,8 +375,8 @@ function Ka() {
|
|
|
375
375
|
}
|
|
376
376
|
function ea(s) {
|
|
377
377
|
{
|
|
378
|
-
var Z = typeof Symbol == "function" && Symbol.toStringTag,
|
|
379
|
-
return
|
|
378
|
+
var Z = typeof Symbol == "function" && Symbol.toStringTag, M = Z && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
379
|
+
return M;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
function ta(s) {
|
|
@@ -391,7 +391,7 @@ function Ka() {
|
|
|
391
391
|
}
|
|
392
392
|
function on(s) {
|
|
393
393
|
if (ta(s))
|
|
394
|
-
return
|
|
394
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ea(s)), an(s);
|
|
395
395
|
}
|
|
396
396
|
var qt = I.ReactCurrentOwner, ra = {
|
|
397
397
|
key: !0,
|
|
@@ -401,7 +401,7 @@ function Ka() {
|
|
|
401
401
|
}, sn, un, cr;
|
|
402
402
|
cr = {};
|
|
403
403
|
function na(s) {
|
|
404
|
-
if (
|
|
404
|
+
if (Lt.call(s, "ref")) {
|
|
405
405
|
var Z = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
406
406
|
if (Z && Z.isReactWarning)
|
|
407
407
|
return !1;
|
|
@@ -409,7 +409,7 @@ function Ka() {
|
|
|
409
409
|
return s.ref !== void 0;
|
|
410
410
|
}
|
|
411
411
|
function Aa(s) {
|
|
412
|
-
if (
|
|
412
|
+
if (Lt.call(s, "key")) {
|
|
413
413
|
var Z = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
414
414
|
if (Z && Z.isReactWarning)
|
|
415
415
|
return !1;
|
|
@@ -418,40 +418,40 @@ function Ka() {
|
|
|
418
418
|
}
|
|
419
419
|
function aa(s, Z) {
|
|
420
420
|
if (typeof s.ref == "string" && qt.current && Z && qt.current.stateNode !== Z) {
|
|
421
|
-
var
|
|
422
|
-
cr[
|
|
421
|
+
var M = N(qt.current.type);
|
|
422
|
+
cr[M] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(qt.current.type), s.ref), cr[M] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function oa(s, Z) {
|
|
426
426
|
{
|
|
427
|
-
var
|
|
428
|
-
sn || (sn = !0,
|
|
427
|
+
var M = function() {
|
|
428
|
+
sn || (sn = !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)", Z));
|
|
429
429
|
};
|
|
430
|
-
|
|
431
|
-
get:
|
|
430
|
+
M.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
431
|
+
get: M,
|
|
432
432
|
configurable: !0
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function ia(s, Z) {
|
|
437
437
|
{
|
|
438
|
-
var
|
|
439
|
-
un || (un = !0,
|
|
438
|
+
var M = function() {
|
|
439
|
+
un || (un = !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)", Z));
|
|
440
440
|
};
|
|
441
|
-
|
|
442
|
-
get:
|
|
441
|
+
M.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
442
|
+
get: M,
|
|
443
443
|
configurable: !0
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var sa = function(s, Z,
|
|
447
|
+
var sa = function(s, Z, M, R, te, oe, U) {
|
|
448
448
|
var F = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: t,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
452
|
type: s,
|
|
453
453
|
key: Z,
|
|
454
|
-
ref:
|
|
454
|
+
ref: M,
|
|
455
455
|
props: U,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: oe
|
|
@@ -465,37 +465,37 @@ function Ka() {
|
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
|
-
value:
|
|
468
|
+
value: R
|
|
469
469
|
}), Object.defineProperty(F, "_source", {
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
|
-
value:
|
|
473
|
+
value: te
|
|
474
474
|
}), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
|
|
475
475
|
};
|
|
476
|
-
function ua(s, Z,
|
|
476
|
+
function ua(s, Z, M, R, te) {
|
|
477
477
|
{
|
|
478
478
|
var oe, U = {}, F = null, ge = null;
|
|
479
|
-
|
|
479
|
+
M !== void 0 && (on(M), F = "" + M), Aa(Z) && (on(Z.key), F = "" + Z.key), na(Z) && (ge = Z.ref, aa(Z, te));
|
|
480
480
|
for (oe in Z)
|
|
481
|
-
|
|
481
|
+
Lt.call(Z, oe) && !ra.hasOwnProperty(oe) && (U[oe] = Z[oe]);
|
|
482
482
|
if (s && s.defaultProps) {
|
|
483
483
|
var ce = s.defaultProps;
|
|
484
484
|
for (oe in ce)
|
|
485
485
|
U[oe] === void 0 && (U[oe] = ce[oe]);
|
|
486
486
|
}
|
|
487
487
|
if (F || ge) {
|
|
488
|
-
var
|
|
489
|
-
F && oa(U,
|
|
488
|
+
var de = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
489
|
+
F && oa(U, de), ge && ia(U, de);
|
|
490
490
|
}
|
|
491
|
-
return sa(s, F, ge,
|
|
491
|
+
return sa(s, F, ge, te, R, qt.current, U);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var mr = I.ReactCurrentOwner, ln = I.ReactDebugCurrentFrame;
|
|
495
495
|
function ot(s) {
|
|
496
496
|
if (s) {
|
|
497
|
-
var Z = s._owner,
|
|
498
|
-
ln.setExtraStackFrame(
|
|
497
|
+
var Z = s._owner, M = Ve(s.type, s._source, Z ? Z.type : null);
|
|
498
|
+
ln.setExtraStackFrame(M);
|
|
499
499
|
} else
|
|
500
500
|
ln.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
@@ -507,7 +507,7 @@ function Ka() {
|
|
|
507
507
|
function cn() {
|
|
508
508
|
{
|
|
509
509
|
if (mr.current) {
|
|
510
|
-
var s =
|
|
510
|
+
var s = N(mr.current.type);
|
|
511
511
|
if (s)
|
|
512
512
|
return `
|
|
513
513
|
|
|
@@ -519,10 +519,10 @@ Check the render method of \`` + s + "`.";
|
|
|
519
519
|
function la(s) {
|
|
520
520
|
{
|
|
521
521
|
if (s !== void 0) {
|
|
522
|
-
var Z = s.fileName.replace(/^.*[\\\/]/, ""),
|
|
522
|
+
var Z = s.fileName.replace(/^.*[\\\/]/, ""), M = s.lineNumber;
|
|
523
523
|
return `
|
|
524
524
|
|
|
525
|
-
Check your code at ` + Z + ":" +
|
|
525
|
+
Check your code at ` + Z + ":" + M + ".";
|
|
526
526
|
}
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
@@ -532,10 +532,10 @@ Check your code at ` + Z + ":" + O + ".";
|
|
|
532
532
|
{
|
|
533
533
|
var Z = cn();
|
|
534
534
|
if (!Z) {
|
|
535
|
-
var
|
|
536
|
-
|
|
535
|
+
var M = typeof s == "string" ? s : s.displayName || s.name;
|
|
536
|
+
M && (Z = `
|
|
537
537
|
|
|
538
|
-
Check the top-level render call using <` +
|
|
538
|
+
Check the top-level render call using <` + M + ">.");
|
|
539
539
|
}
|
|
540
540
|
return Z;
|
|
541
541
|
}
|
|
@@ -545,12 +545,12 @@ Check the top-level render call using <` + O + ">.");
|
|
|
545
545
|
if (!s._store || s._store.validated || s.key != null)
|
|
546
546
|
return;
|
|
547
547
|
s._store.validated = !0;
|
|
548
|
-
var
|
|
549
|
-
if (mn[
|
|
548
|
+
var M = ca(Z);
|
|
549
|
+
if (mn[M])
|
|
550
550
|
return;
|
|
551
|
-
mn[
|
|
552
|
-
var
|
|
553
|
-
s && s._owner && s._owner !== mr.current && (
|
|
551
|
+
mn[M] = !0;
|
|
552
|
+
var R = "";
|
|
553
|
+
s && s._owner && s._owner !== mr.current && (R = " It was passed a child from " + N(s._owner.type) + "."), ot(s), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, R), ot(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
function pn(s, Z) {
|
|
@@ -558,16 +558,16 @@ Check the top-level render call using <` + O + ">.");
|
|
|
558
558
|
if (typeof s != "object")
|
|
559
559
|
return;
|
|
560
560
|
if (lr(s))
|
|
561
|
-
for (var
|
|
562
|
-
var
|
|
563
|
-
pr(
|
|
561
|
+
for (var M = 0; M < s.length; M++) {
|
|
562
|
+
var R = s[M];
|
|
563
|
+
pr(R) && dn(R, Z);
|
|
564
564
|
}
|
|
565
565
|
else if (pr(s))
|
|
566
566
|
s._store && (s._store.validated = !0);
|
|
567
567
|
else if (s) {
|
|
568
|
-
var
|
|
569
|
-
if (typeof
|
|
570
|
-
for (var oe =
|
|
568
|
+
var te = C(s);
|
|
569
|
+
if (typeof te == "function" && te !== s.entries)
|
|
570
|
+
for (var oe = te.call(s), U; !(U = oe.next()).done; )
|
|
571
571
|
pr(U.value) && dn(U.value, Z);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -577,73 +577,73 @@ Check the top-level render call using <` + O + ">.");
|
|
|
577
577
|
var Z = s.type;
|
|
578
578
|
if (Z == null || typeof Z == "string")
|
|
579
579
|
return;
|
|
580
|
-
var
|
|
580
|
+
var M;
|
|
581
581
|
if (typeof Z == "function")
|
|
582
|
-
|
|
582
|
+
M = Z.propTypes;
|
|
583
583
|
else if (typeof Z == "object" && (Z.$$typeof === c || // Note: Memo only checks outer props here.
|
|
584
584
|
// Inner props are checked in the reconciler.
|
|
585
585
|
Z.$$typeof === m))
|
|
586
|
-
|
|
586
|
+
M = Z.propTypes;
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
|
-
if (
|
|
590
|
-
var
|
|
591
|
-
_A(
|
|
589
|
+
if (M) {
|
|
590
|
+
var R = N(Z);
|
|
591
|
+
_A(M, s.props, "prop", R, s);
|
|
592
592
|
} else if (Z.PropTypes !== void 0 && !dr) {
|
|
593
593
|
dr = !0;
|
|
594
|
-
var
|
|
595
|
-
|
|
594
|
+
var te = N(Z);
|
|
595
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
|
|
596
596
|
}
|
|
597
|
-
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved &&
|
|
597
|
+
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function da(s) {
|
|
601
601
|
{
|
|
602
|
-
for (var Z = Object.keys(s.props),
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
ot(s),
|
|
602
|
+
for (var Z = Object.keys(s.props), M = 0; M < Z.length; M++) {
|
|
603
|
+
var R = Z[M];
|
|
604
|
+
if (R !== "children" && R !== "key") {
|
|
605
|
+
ot(s), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), ot(null);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
s.ref !== null && (ot(s),
|
|
609
|
+
s.ref !== null && (ot(s), E("Invalid attribute `ref` supplied to `React.Fragment`."), ot(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function fn(s, Z,
|
|
612
|
+
function fn(s, Z, M, R, te, oe) {
|
|
613
613
|
{
|
|
614
614
|
var U = ae(s);
|
|
615
615
|
if (!U) {
|
|
616
616
|
var F = "";
|
|
617
617
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (F += " 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
|
-
var ge = la(
|
|
618
|
+
var ge = la(te);
|
|
619
619
|
ge ? F += ge : F += cn();
|
|
620
620
|
var ce;
|
|
621
|
-
s === null ? ce = "null" : lr(s) ? ce = "array" : s !== void 0 && s.$$typeof === t ? (ce = "<" + (
|
|
621
|
+
s === null ? ce = "null" : lr(s) ? ce = "array" : s !== void 0 && s.$$typeof === t ? (ce = "<" + (N(s.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof s, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, F);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
625
|
-
return
|
|
623
|
+
var de = ua(s, Z, M, te, oe);
|
|
624
|
+
if (de == null)
|
|
625
|
+
return de;
|
|
626
626
|
if (U) {
|
|
627
627
|
var Ie = Z.children;
|
|
628
628
|
if (Ie !== void 0)
|
|
629
|
-
if (
|
|
629
|
+
if (R)
|
|
630
630
|
if (lr(Ie)) {
|
|
631
631
|
for (var it = 0; it < Ie.length; it++)
|
|
632
632
|
pn(Ie[it], s);
|
|
633
633
|
Object.freeze && Object.freeze(Ie);
|
|
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
|
pn(Ie, s);
|
|
638
638
|
}
|
|
639
|
-
return s === n ? da(
|
|
639
|
+
return s === n ? da(de) : ma(de), de;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function pa(s, Z,
|
|
643
|
-
return fn(s, Z,
|
|
642
|
+
function pa(s, Z, M) {
|
|
643
|
+
return fn(s, Z, M, !0);
|
|
644
644
|
}
|
|
645
|
-
function fa(s, Z,
|
|
646
|
-
return fn(s, Z,
|
|
645
|
+
function fa(s, Z, M) {
|
|
646
|
+
return fn(s, Z, M, !1);
|
|
647
647
|
}
|
|
648
648
|
var qa = fa, ha = pa;
|
|
649
649
|
vt.Fragment = n, vt.jsx = qa, vt.jsxs = ha;
|
|
@@ -652,8 +652,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
652
652
|
process.env.NODE_ENV === "production" ? Mr.exports = Ia() : Mr.exports = Ka();
|
|
653
653
|
var y = Mr.exports;
|
|
654
654
|
const wa = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlLXdpZHRoPSIxLjgiCiAgICAgIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgLz4KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZS13aWR0aD0iMS44IgogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+CiAgICA8cGF0aAogICAgICBkPSJNMTYuNTY4NCAyOEM5Ljk0MDM2IDI4IDQuNTY4MzYgMjIuNjI4IDQuNTY4MzYgMTZDNC41NjgzNiA5LjM3MiA5Ljk0MDM2IDQgMTYuNTY4NCA0QzIzLjE5NjQgNCAyOC41Njg0IDkuMzcyIDI4LjU2ODQgMTZDMjguNTY4NCAyMi42MjggMjMuMTk2NCAyOCAxNi41Njg0IDI4WiIKICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=", Wa = ({ children: e }) => {
|
|
655
|
-
const [t, r] =
|
|
656
|
-
return
|
|
655
|
+
const [t, r] = me(window.innerWidth);
|
|
656
|
+
return je(() => {
|
|
657
657
|
const n = () => {
|
|
658
658
|
r(window.innerWidth);
|
|
659
659
|
};
|
|
@@ -699,7 +699,7 @@ $n.prototype = {
|
|
|
699
699
|
e.put(this.data.charCodeAt(t), 8);
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
|
-
var
|
|
702
|
+
var La = $n, eA = {
|
|
703
703
|
L: 1,
|
|
704
704
|
M: 0,
|
|
705
705
|
Q: 3,
|
|
@@ -937,7 +937,7 @@ ze.getRsBlockTable = function(e, t) {
|
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
|
-
var
|
|
940
|
+
var Ea = ze;
|
|
941
941
|
function tA() {
|
|
942
942
|
this.buffer = new Array(), this.length = 0;
|
|
943
943
|
}
|
|
@@ -1013,7 +1013,7 @@ Nt.prototype = {
|
|
|
1013
1013
|
return new Nt(r, 0).mod(e);
|
|
1014
1014
|
}
|
|
1015
1015
|
};
|
|
1016
|
-
var nA = Nt, Ke = _n, gn = nA, xa = rA,
|
|
1016
|
+
var nA = Nt, Ke = _n, gn = nA, xa = rA, Te = {
|
|
1017
1017
|
PATTERN000: 0,
|
|
1018
1018
|
PATTERN001: 1,
|
|
1019
1019
|
PATTERN010: 2,
|
|
@@ -1088,21 +1088,21 @@ var nA = Nt, Ke = _n, gn = nA, xa = rA, Re = {
|
|
|
1088
1088
|
},
|
|
1089
1089
|
getMask: function(e, t, r) {
|
|
1090
1090
|
switch (e) {
|
|
1091
|
-
case
|
|
1091
|
+
case Te.PATTERN000:
|
|
1092
1092
|
return (t + r) % 2 == 0;
|
|
1093
|
-
case
|
|
1093
|
+
case Te.PATTERN001:
|
|
1094
1094
|
return t % 2 == 0;
|
|
1095
|
-
case
|
|
1095
|
+
case Te.PATTERN010:
|
|
1096
1096
|
return r % 3 == 0;
|
|
1097
|
-
case
|
|
1097
|
+
case Te.PATTERN011:
|
|
1098
1098
|
return (t + r) % 3 == 0;
|
|
1099
|
-
case
|
|
1099
|
+
case Te.PATTERN100:
|
|
1100
1100
|
return (Math.floor(t / 2) + Math.floor(r / 3)) % 2 == 0;
|
|
1101
|
-
case
|
|
1101
|
+
case Te.PATTERN101:
|
|
1102
1102
|
return t * r % 2 + t * r % 3 == 0;
|
|
1103
|
-
case
|
|
1103
|
+
case Te.PATTERN110:
|
|
1104
1104
|
return (t * r % 2 + t * r % 3) % 2 == 0;
|
|
1105
|
-
case
|
|
1105
|
+
case Te.PATTERN111:
|
|
1106
1106
|
return (t * r % 3 + (t + r) % 2) % 2 == 0;
|
|
1107
1107
|
default:
|
|
1108
1108
|
throw new Error("bad maskPattern:" + e);
|
|
@@ -1182,7 +1182,7 @@ var nA = Nt, Ke = _n, gn = nA, xa = rA, Re = {
|
|
|
1182
1182
|
var m = Math.abs(100 * l / t / t - 50) / 5;
|
|
1183
1183
|
return r += m * 10, r;
|
|
1184
1184
|
}
|
|
1185
|
-
}, za = fe, ka =
|
|
1185
|
+
}, za = fe, ka = La, AA = Ea, aA = Ya, Pe = za, ja = nA;
|
|
1186
1186
|
function ke(e, t) {
|
|
1187
1187
|
this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
1188
1188
|
}
|
|
@@ -1207,7 +1207,7 @@ Ze.make = function() {
|
|
|
1207
1207
|
n += t[A].dataCount;
|
|
1208
1208
|
for (var A = 0; A < this.dataList.length; A++) {
|
|
1209
1209
|
var a = this.dataList[A];
|
|
1210
|
-
r.put(a.mode, 4), r.put(a.getLength(),
|
|
1210
|
+
r.put(a.mode, 4), r.put(a.getLength(), Pe.getLengthInBits(a.mode, e)), a.write(r);
|
|
1211
1211
|
}
|
|
1212
1212
|
if (r.getLengthInBits() <= n * 8)
|
|
1213
1213
|
break;
|
|
@@ -1234,7 +1234,7 @@ Ze.setupPositionProbePattern = function(e, t) {
|
|
|
1234
1234
|
Ze.getBestMaskPattern = function() {
|
|
1235
1235
|
for (var e = 0, t = 0, r = 0; r < 8; r++) {
|
|
1236
1236
|
this.makeImpl(!0, r);
|
|
1237
|
-
var n =
|
|
1237
|
+
var n = Pe.getLostPoint(this);
|
|
1238
1238
|
(r == 0 || e > n) && (e = n, t = r);
|
|
1239
1239
|
}
|
|
1240
1240
|
return t;
|
|
@@ -1256,7 +1256,7 @@ Ze.setupTimingPattern = function() {
|
|
|
1256
1256
|
this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
|
|
1257
1257
|
};
|
|
1258
1258
|
Ze.setupPositionAdjustPattern = function() {
|
|
1259
|
-
for (var e =
|
|
1259
|
+
for (var e = Pe.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
|
|
1260
1260
|
for (var r = 0; r < e.length; r++) {
|
|
1261
1261
|
var n = e[t], A = e[r];
|
|
1262
1262
|
if (this.modules[n][A] == null)
|
|
@@ -1266,7 +1266,7 @@ Ze.setupPositionAdjustPattern = function() {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
};
|
|
1268
1268
|
Ze.setupTypeNumber = function(e) {
|
|
1269
|
-
for (var t =
|
|
1269
|
+
for (var t = Pe.getBCHTypeNumber(this.typeNumber), r = 0; r < 18; r++) {
|
|
1270
1270
|
var n = !e && (t >> r & 1) == 1;
|
|
1271
1271
|
this.modules[Math.floor(r / 3)][r % 3 + this.moduleCount - 8 - 3] = n;
|
|
1272
1272
|
}
|
|
@@ -1276,7 +1276,7 @@ Ze.setupTypeNumber = function(e) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
};
|
|
1278
1278
|
Ze.setupTypeInfo = function(e, t) {
|
|
1279
|
-
for (var r = this.errorCorrectLevel << 3 | t, n =
|
|
1279
|
+
for (var r = this.errorCorrectLevel << 3 | t, n = Pe.getBCHTypeInfo(r), A = 0; A < 15; A++) {
|
|
1280
1280
|
var a = !e && (n >> A & 1) == 1;
|
|
1281
1281
|
A < 6 ? this.modules[A][8] = a : A < 8 ? this.modules[A + 1][8] = a : this.modules[this.moduleCount - 15 + A][8] = a;
|
|
1282
1282
|
}
|
|
@@ -1293,7 +1293,7 @@ Ze.mapData = function(e, t) {
|
|
|
1293
1293
|
if (this.modules[n][o - i] == null) {
|
|
1294
1294
|
var c = !1;
|
|
1295
1295
|
a < e.length && (c = (e[a] >>> A & 1) == 1);
|
|
1296
|
-
var u =
|
|
1296
|
+
var u = Pe.getMask(t, n, o - i);
|
|
1297
1297
|
u && (c = !c), this.modules[n][o - i] = c, A--, A == -1 && (a++, A = 7);
|
|
1298
1298
|
}
|
|
1299
1299
|
if (n += r, n < 0 || this.moduleCount <= n) {
|
|
@@ -1307,7 +1307,7 @@ ke.PAD1 = 17;
|
|
|
1307
1307
|
ke.createData = function(e, t, r) {
|
|
1308
1308
|
for (var n = AA.getRSBlocks(e, t), A = new aA(), a = 0; a < r.length; a++) {
|
|
1309
1309
|
var o = r[a];
|
|
1310
|
-
A.put(o.mode, 4), A.put(o.getLength(),
|
|
1310
|
+
A.put(o.mode, 4), A.put(o.getLength(), Pe.getLengthInBits(o.mode, e)), o.write(A);
|
|
1311
1311
|
}
|
|
1312
1312
|
for (var i = 0, a = 0; a < n.length; a++)
|
|
1313
1313
|
i += n[a].dataCount;
|
|
@@ -1326,16 +1326,16 @@ ke.createBytes = function(e, t) {
|
|
|
1326
1326
|
for (var l = 0; l < a[i].length; l++)
|
|
1327
1327
|
a[i][l] = 255 & e.buffer[l + r];
|
|
1328
1328
|
r += c;
|
|
1329
|
-
var m =
|
|
1329
|
+
var m = Pe.getErrorCorrectPolynomial(u), v = new ja(a[i], m.getLength() - 1), f = v.mod(m);
|
|
1330
1330
|
o[i] = new Array(m.getLength() - 1);
|
|
1331
1331
|
for (var l = 0; l < o[i].length; l++) {
|
|
1332
1332
|
var p = l + f.getLength() - o[i].length;
|
|
1333
1333
|
o[i][l] = p >= 0 ? f.get(p) : 0;
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
|
-
for (var
|
|
1337
|
-
|
|
1338
|
-
for (var C = new Array(
|
|
1336
|
+
for (var g = 0, l = 0; l < t.length; l++)
|
|
1337
|
+
g += t[l].totalCount;
|
|
1338
|
+
for (var C = new Array(g), I = 0, l = 0; l < n; l++)
|
|
1339
1339
|
for (var i = 0; i < t.length; i++)
|
|
1340
1340
|
l < a[i].length && (C[I++] = a[i][l]);
|
|
1341
1341
|
for (var l = 0; l < A; l++)
|
|
@@ -1357,8 +1357,8 @@ function Na() {
|
|
|
1357
1357
|
if (yn)
|
|
1358
1358
|
return ne;
|
|
1359
1359
|
yn = 1;
|
|
1360
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113,
|
|
1361
|
-
function
|
|
1360
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1361
|
+
function j(q) {
|
|
1362
1362
|
if (typeof q == "object" && q !== null) {
|
|
1363
1363
|
var ie = q.$$typeof;
|
|
1364
1364
|
switch (ie) {
|
|
@@ -1388,36 +1388,36 @@ function Na() {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return
|
|
1391
|
+
function W(q) {
|
|
1392
|
+
return j(q) === u;
|
|
1393
1393
|
}
|
|
1394
1394
|
return ne.AsyncMode = c, ne.ConcurrentMode = u, ne.ContextConsumer = i, ne.ContextProvider = o, ne.Element = t, ne.ForwardRef = l, ne.Fragment = n, ne.Lazy = p, ne.Memo = f, ne.Portal = r, ne.Profiler = a, ne.StrictMode = A, ne.Suspense = m, ne.isAsyncMode = function(q) {
|
|
1395
|
-
return
|
|
1396
|
-
}, ne.isConcurrentMode =
|
|
1397
|
-
return
|
|
1395
|
+
return W(q) || j(q) === c;
|
|
1396
|
+
}, ne.isConcurrentMode = W, ne.isContextConsumer = function(q) {
|
|
1397
|
+
return j(q) === i;
|
|
1398
1398
|
}, ne.isContextProvider = function(q) {
|
|
1399
|
-
return
|
|
1399
|
+
return j(q) === o;
|
|
1400
1400
|
}, ne.isElement = function(q) {
|
|
1401
1401
|
return typeof q == "object" && q !== null && q.$$typeof === t;
|
|
1402
1402
|
}, ne.isForwardRef = function(q) {
|
|
1403
|
-
return
|
|
1403
|
+
return j(q) === l;
|
|
1404
1404
|
}, ne.isFragment = function(q) {
|
|
1405
|
-
return
|
|
1405
|
+
return j(q) === n;
|
|
1406
1406
|
}, ne.isLazy = function(q) {
|
|
1407
|
-
return
|
|
1407
|
+
return j(q) === p;
|
|
1408
1408
|
}, ne.isMemo = function(q) {
|
|
1409
|
-
return
|
|
1409
|
+
return j(q) === f;
|
|
1410
1410
|
}, ne.isPortal = function(q) {
|
|
1411
|
-
return
|
|
1411
|
+
return j(q) === r;
|
|
1412
1412
|
}, ne.isProfiler = function(q) {
|
|
1413
|
-
return
|
|
1413
|
+
return j(q) === a;
|
|
1414
1414
|
}, ne.isStrictMode = function(q) {
|
|
1415
|
-
return
|
|
1415
|
+
return j(q) === A;
|
|
1416
1416
|
}, ne.isSuspense = function(q) {
|
|
1417
|
-
return
|
|
1417
|
+
return j(q) === m;
|
|
1418
1418
|
}, ne.isValidElementType = function(q) {
|
|
1419
|
-
return typeof q == "string" || typeof q == "function" || q === n || q === u || q === a || q === A || q === m || q ===
|
|
1420
|
-
}, ne.typeOf =
|
|
1419
|
+
return typeof q == "string" || typeof q == "function" || q === n || q === u || q === a || q === A || q === m || q === v || typeof q == "object" && q !== null && (q.$$typeof === p || q.$$typeof === f || q.$$typeof === o || q.$$typeof === i || q.$$typeof === l || q.$$typeof === C || q.$$typeof === I || q.$$typeof === E || q.$$typeof === g);
|
|
1420
|
+
}, ne.typeOf = j, ne;
|
|
1421
1421
|
}
|
|
1422
1422
|
var Ae = {};
|
|
1423
1423
|
/** @license React v16.13.1
|
|
@@ -1431,17 +1431,17 @@ var Ae = {};
|
|
|
1431
1431
|
var bn;
|
|
1432
1432
|
function Da() {
|
|
1433
1433
|
return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1434
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113,
|
|
1435
|
-
function
|
|
1436
|
-
return typeof
|
|
1437
|
-
|
|
1438
|
-
}
|
|
1439
|
-
function
|
|
1440
|
-
if (typeof
|
|
1441
|
-
var Ce =
|
|
1434
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1435
|
+
function j(S) {
|
|
1436
|
+
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1437
|
+
S === n || S === u || S === a || S === A || S === m || S === v || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === f || S.$$typeof === o || S.$$typeof === i || S.$$typeof === l || S.$$typeof === C || S.$$typeof === I || S.$$typeof === E || S.$$typeof === g);
|
|
1438
|
+
}
|
|
1439
|
+
function W(S) {
|
|
1440
|
+
if (typeof S == "object" && S !== null) {
|
|
1441
|
+
var Ce = S.$$typeof;
|
|
1442
1442
|
switch (Ce) {
|
|
1443
1443
|
case t:
|
|
1444
|
-
var at =
|
|
1444
|
+
var at = S.type;
|
|
1445
1445
|
switch (at) {
|
|
1446
1446
|
case c:
|
|
1447
1447
|
case u:
|
|
@@ -1468,47 +1468,47 @@ function Da() {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
var q = c, ie = u, le = i,
|
|
1472
|
-
function
|
|
1473
|
-
return
|
|
1471
|
+
var q = c, ie = u, le = i, x = o, Q = t, ae = l, P = n, H = p, N = f, O = r, L = a, k = A, d = m, w = !1;
|
|
1472
|
+
function _(S) {
|
|
1473
|
+
return w || (w = !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.")), b(S) || W(S) === c;
|
|
1474
1474
|
}
|
|
1475
|
-
function b(
|
|
1476
|
-
return
|
|
1475
|
+
function b(S) {
|
|
1476
|
+
return W(S) === u;
|
|
1477
1477
|
}
|
|
1478
|
-
function K(
|
|
1479
|
-
return
|
|
1478
|
+
function K(S) {
|
|
1479
|
+
return W(S) === i;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1482
|
-
return
|
|
1481
|
+
function J(S) {
|
|
1482
|
+
return W(S) === o;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1485
|
-
return typeof
|
|
1484
|
+
function Y(S) {
|
|
1485
|
+
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return
|
|
1487
|
+
function z(S) {
|
|
1488
|
+
return W(S) === l;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1491
|
-
return
|
|
1490
|
+
function X(S) {
|
|
1491
|
+
return W(S) === n;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return
|
|
1493
|
+
function D(S) {
|
|
1494
|
+
return W(S) === p;
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1497
|
-
return
|
|
1496
|
+
function G(S) {
|
|
1497
|
+
return W(S) === f;
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1500
|
-
return
|
|
1499
|
+
function V(S) {
|
|
1500
|
+
return W(S) === r;
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1503
|
-
return
|
|
1502
|
+
function $(S) {
|
|
1503
|
+
return W(S) === a;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1506
|
-
return
|
|
1505
|
+
function B(S) {
|
|
1506
|
+
return W(S) === A;
|
|
1507
1507
|
}
|
|
1508
|
-
function he(
|
|
1509
|
-
return
|
|
1508
|
+
function he(S) {
|
|
1509
|
+
return W(S) === m;
|
|
1510
1510
|
}
|
|
1511
|
-
Ae.AsyncMode = q, Ae.ConcurrentMode = ie, Ae.ContextConsumer = le, Ae.ContextProvider =
|
|
1511
|
+
Ae.AsyncMode = q, Ae.ConcurrentMode = ie, Ae.ContextConsumer = le, Ae.ContextProvider = x, Ae.Element = Q, Ae.ForwardRef = ae, Ae.Fragment = P, Ae.Lazy = H, Ae.Memo = N, Ae.Portal = O, Ae.Profiler = L, Ae.StrictMode = k, Ae.Suspense = d, Ae.isAsyncMode = _, Ae.isConcurrentMode = b, Ae.isContextConsumer = K, Ae.isContextProvider = J, Ae.isElement = Y, Ae.isForwardRef = z, Ae.isFragment = X, Ae.isLazy = D, Ae.isMemo = G, Ae.isPortal = V, Ae.isProfiler = $, Ae.isStrictMode = B, Ae.isSuspense = he, Ae.isValidElementType = j, Ae.typeOf = W;
|
|
1512
1512
|
}()), Ae;
|
|
1513
1513
|
}
|
|
1514
1514
|
var Zn;
|
|
@@ -1560,8 +1560,8 @@ function Ga() {
|
|
|
1560
1560
|
t.call(i, m) && (c[m] = i[m]);
|
|
1561
1561
|
if (e) {
|
|
1562
1562
|
u = e(i);
|
|
1563
|
-
for (var
|
|
1564
|
-
r.call(i, u[
|
|
1563
|
+
for (var v = 0; v < u.length; v++)
|
|
1564
|
+
r.call(i, u[v]) && (c[u[v]] = i[u[v]]);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
return c;
|
|
@@ -1604,10 +1604,10 @@ function Ra() {
|
|
|
1604
1604
|
var m;
|
|
1605
1605
|
try {
|
|
1606
1606
|
if (typeof a[l] != "function") {
|
|
1607
|
-
var
|
|
1607
|
+
var v = Error(
|
|
1608
1608
|
(c || "React class") + ": " + i + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1609
1609
|
);
|
|
1610
|
-
throw
|
|
1610
|
+
throw v.name = "Invariant Violation", v;
|
|
1611
1611
|
}
|
|
1612
1612
|
m = a[l](o, l, c, i, null, t);
|
|
1613
1613
|
} catch (p) {
|
|
@@ -1654,7 +1654,7 @@ function Ta() {
|
|
|
1654
1654
|
if (typeof K == "function")
|
|
1655
1655
|
return K;
|
|
1656
1656
|
}
|
|
1657
|
-
var
|
|
1657
|
+
var v = "<<anonymous>>", f = {
|
|
1658
1658
|
array: I("array"),
|
|
1659
1659
|
bigint: I("bigint"),
|
|
1660
1660
|
bool: I("boolean"),
|
|
@@ -1663,55 +1663,55 @@ function Ta() {
|
|
|
1663
1663
|
object: I("object"),
|
|
1664
1664
|
string: I("string"),
|
|
1665
1665
|
symbol: I("symbol"),
|
|
1666
|
-
any:
|
|
1667
|
-
arrayOf:
|
|
1668
|
-
element:
|
|
1666
|
+
any: E(),
|
|
1667
|
+
arrayOf: j,
|
|
1668
|
+
element: W(),
|
|
1669
1669
|
elementType: q(),
|
|
1670
1670
|
instanceOf: ie,
|
|
1671
1671
|
node: ae(),
|
|
1672
|
-
objectOf:
|
|
1672
|
+
objectOf: x,
|
|
1673
1673
|
oneOf: le,
|
|
1674
|
-
oneOfType:
|
|
1675
|
-
shape:
|
|
1676
|
-
exact:
|
|
1674
|
+
oneOfType: Q,
|
|
1675
|
+
shape: H,
|
|
1676
|
+
exact: N
|
|
1677
1677
|
};
|
|
1678
1678
|
function p(b, K) {
|
|
1679
1679
|
return b === K ? b !== 0 || 1 / b === 1 / K : b !== b && K !== K;
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function g(b, K) {
|
|
1682
1682
|
this.message = b, this.data = K && typeof K == "object" ? K : {}, this.stack = "";
|
|
1683
1683
|
}
|
|
1684
|
-
|
|
1684
|
+
g.prototype = Error.prototype;
|
|
1685
1685
|
function C(b) {
|
|
1686
1686
|
if (process.env.NODE_ENV !== "production")
|
|
1687
|
-
var K = {},
|
|
1688
|
-
function
|
|
1689
|
-
if (
|
|
1687
|
+
var K = {}, J = 0;
|
|
1688
|
+
function Y(X, D, G, V, $, B, he) {
|
|
1689
|
+
if (V = V || v, B = B || G, he !== r) {
|
|
1690
1690
|
if (c) {
|
|
1691
|
-
var
|
|
1691
|
+
var S = new Error(
|
|
1692
1692
|
"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"
|
|
1693
1693
|
);
|
|
1694
|
-
throw
|
|
1694
|
+
throw S.name = "Invariant Violation", S;
|
|
1695
1695
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1696
|
-
var Ce =
|
|
1696
|
+
var Ce = V + ":" + G;
|
|
1697
1697
|
!K[Ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1698
|
-
|
|
1699
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1700
|
-
), K[Ce] = !0,
|
|
1698
|
+
J < 3 && (a(
|
|
1699
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + V + "`. 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."
|
|
1700
|
+
), K[Ce] = !0, J++);
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
return
|
|
1703
|
+
return D[G] == null ? X ? D[G] === null ? new g("The " + $ + " `" + B + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new g("The " + $ + " `" + B + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : b(D, G, V, $, B);
|
|
1704
1704
|
}
|
|
1705
|
-
var
|
|
1706
|
-
return
|
|
1705
|
+
var z = Y.bind(null, !1);
|
|
1706
|
+
return z.isRequired = Y.bind(null, !0), z;
|
|
1707
1707
|
}
|
|
1708
1708
|
function I(b) {
|
|
1709
|
-
function K(
|
|
1710
|
-
var
|
|
1711
|
-
if (
|
|
1712
|
-
var
|
|
1713
|
-
return new
|
|
1714
|
-
"Invalid " +
|
|
1709
|
+
function K(J, Y, z, X, D, G) {
|
|
1710
|
+
var V = J[Y], $ = k(V);
|
|
1711
|
+
if ($ !== b) {
|
|
1712
|
+
var B = d(V);
|
|
1713
|
+
return new g(
|
|
1714
|
+
"Invalid " + X + " `" + D + "` of type " + ("`" + B + "` supplied to `" + z + "`, expected ") + ("`" + b + "`."),
|
|
1715
1715
|
{ expectedType: b }
|
|
1716
1716
|
);
|
|
1717
1717
|
}
|
|
@@ -1719,54 +1719,54 @@ function Ta() {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return C(K);
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function E() {
|
|
1723
1723
|
return C(o);
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1726
|
-
function K(
|
|
1725
|
+
function j(b) {
|
|
1726
|
+
function K(J, Y, z, X, D) {
|
|
1727
1727
|
if (typeof b != "function")
|
|
1728
|
-
return new
|
|
1729
|
-
var
|
|
1730
|
-
if (!Array.isArray(
|
|
1731
|
-
var
|
|
1732
|
-
return new
|
|
1728
|
+
return new g("Property `" + D + "` of component `" + z + "` has invalid PropType notation inside arrayOf.");
|
|
1729
|
+
var G = J[Y];
|
|
1730
|
+
if (!Array.isArray(G)) {
|
|
1731
|
+
var V = k(G);
|
|
1732
|
+
return new g("Invalid " + X + " `" + D + "` of type " + ("`" + V + "` supplied to `" + z + "`, expected an array."));
|
|
1733
1733
|
}
|
|
1734
|
-
for (var
|
|
1735
|
-
var
|
|
1736
|
-
if (
|
|
1737
|
-
return
|
|
1734
|
+
for (var $ = 0; $ < G.length; $++) {
|
|
1735
|
+
var B = b(G, $, z, X, D + "[" + $ + "]", r);
|
|
1736
|
+
if (B instanceof Error)
|
|
1737
|
+
return B;
|
|
1738
1738
|
}
|
|
1739
1739
|
return null;
|
|
1740
1740
|
}
|
|
1741
1741
|
return C(K);
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1744
|
-
function b(K,
|
|
1745
|
-
var
|
|
1746
|
-
if (!i(
|
|
1747
|
-
var
|
|
1748
|
-
return new
|
|
1743
|
+
function W() {
|
|
1744
|
+
function b(K, J, Y, z, X) {
|
|
1745
|
+
var D = K[J];
|
|
1746
|
+
if (!i(D)) {
|
|
1747
|
+
var G = k(D);
|
|
1748
|
+
return new g("Invalid " + z + " `" + X + "` of type " + ("`" + G + "` supplied to `" + Y + "`, expected a single ReactElement."));
|
|
1749
1749
|
}
|
|
1750
1750
|
return null;
|
|
1751
1751
|
}
|
|
1752
1752
|
return C(b);
|
|
1753
1753
|
}
|
|
1754
1754
|
function q() {
|
|
1755
|
-
function b(K,
|
|
1756
|
-
var
|
|
1757
|
-
if (!e.isValidElementType(
|
|
1758
|
-
var
|
|
1759
|
-
return new
|
|
1755
|
+
function b(K, J, Y, z, X) {
|
|
1756
|
+
var D = K[J];
|
|
1757
|
+
if (!e.isValidElementType(D)) {
|
|
1758
|
+
var G = k(D);
|
|
1759
|
+
return new g("Invalid " + z + " `" + X + "` of type " + ("`" + G + "` supplied to `" + Y + "`, expected a single ReactElement type."));
|
|
1760
1760
|
}
|
|
1761
1761
|
return null;
|
|
1762
1762
|
}
|
|
1763
1763
|
return C(b);
|
|
1764
1764
|
}
|
|
1765
1765
|
function ie(b) {
|
|
1766
|
-
function K(
|
|
1767
|
-
if (!(
|
|
1768
|
-
var
|
|
1769
|
-
return new
|
|
1766
|
+
function K(J, Y, z, X, D) {
|
|
1767
|
+
if (!(J[Y] instanceof b)) {
|
|
1768
|
+
var G = b.name || v, V = _(J[Y]);
|
|
1769
|
+
return new g("Invalid " + X + " `" + D + "` of type " + ("`" + V + "` supplied to `" + z + "`, expected ") + ("instance of `" + G + "`."));
|
|
1770
1770
|
}
|
|
1771
1771
|
return null;
|
|
1772
1772
|
}
|
|
@@ -1777,78 +1777,78 @@ function Ta() {
|
|
|
1777
1777
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1778
1778
|
"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])."
|
|
1779
1779
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1780
|
-
function K(
|
|
1781
|
-
for (var
|
|
1782
|
-
if (p(
|
|
1780
|
+
function K(J, Y, z, X, D) {
|
|
1781
|
+
for (var G = J[Y], V = 0; V < b.length; V++)
|
|
1782
|
+
if (p(G, b[V]))
|
|
1783
1783
|
return null;
|
|
1784
|
-
var
|
|
1785
|
-
var Ce = d(
|
|
1786
|
-
return Ce === "symbol" ? String(
|
|
1784
|
+
var $ = JSON.stringify(b, function(he, S) {
|
|
1785
|
+
var Ce = d(S);
|
|
1786
|
+
return Ce === "symbol" ? String(S) : S;
|
|
1787
1787
|
});
|
|
1788
|
-
return new
|
|
1788
|
+
return new g("Invalid " + X + " `" + D + "` of value `" + String(G) + "` " + ("supplied to `" + z + "`, expected one of " + $ + "."));
|
|
1789
1789
|
}
|
|
1790
1790
|
return C(K);
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
function K(
|
|
1792
|
+
function x(b) {
|
|
1793
|
+
function K(J, Y, z, X, D) {
|
|
1794
1794
|
if (typeof b != "function")
|
|
1795
|
-
return new
|
|
1796
|
-
var
|
|
1797
|
-
if (
|
|
1798
|
-
return new
|
|
1799
|
-
for (var
|
|
1800
|
-
if (n(
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1803
|
-
return
|
|
1795
|
+
return new g("Property `" + D + "` of component `" + z + "` has invalid PropType notation inside objectOf.");
|
|
1796
|
+
var G = J[Y], V = k(G);
|
|
1797
|
+
if (V !== "object")
|
|
1798
|
+
return new g("Invalid " + X + " `" + D + "` of type " + ("`" + V + "` supplied to `" + z + "`, expected an object."));
|
|
1799
|
+
for (var $ in G)
|
|
1800
|
+
if (n(G, $)) {
|
|
1801
|
+
var B = b(G, $, z, X, D + "." + $, r);
|
|
1802
|
+
if (B instanceof Error)
|
|
1803
|
+
return B;
|
|
1804
1804
|
}
|
|
1805
1805
|
return null;
|
|
1806
1806
|
}
|
|
1807
1807
|
return C(K);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Q(b) {
|
|
1810
1810
|
if (!Array.isArray(b))
|
|
1811
1811
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
1812
1812
|
for (var K = 0; K < b.length; K++) {
|
|
1813
|
-
var
|
|
1814
|
-
if (typeof
|
|
1813
|
+
var J = b[K];
|
|
1814
|
+
if (typeof J != "function")
|
|
1815
1815
|
return a(
|
|
1816
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1816
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + w(J) + " at index " + K + "."
|
|
1817
1817
|
), o;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1820
|
-
for (var
|
|
1821
|
-
var he = b[
|
|
1822
|
-
if (
|
|
1819
|
+
function Y(z, X, D, G, V) {
|
|
1820
|
+
for (var $ = [], B = 0; B < b.length; B++) {
|
|
1821
|
+
var he = b[B], S = he(z, X, D, G, V, r);
|
|
1822
|
+
if (S == null)
|
|
1823
1823
|
return null;
|
|
1824
|
-
|
|
1824
|
+
S.data && n(S.data, "expectedType") && $.push(S.data.expectedType);
|
|
1825
1825
|
}
|
|
1826
|
-
var Ce =
|
|
1827
|
-
return new
|
|
1826
|
+
var Ce = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
1827
|
+
return new g("Invalid " + G + " `" + V + "` supplied to " + ("`" + D + "`" + Ce + "."));
|
|
1828
1828
|
}
|
|
1829
|
-
return C(
|
|
1829
|
+
return C(Y);
|
|
1830
1830
|
}
|
|
1831
1831
|
function ae() {
|
|
1832
|
-
function b(K,
|
|
1833
|
-
return
|
|
1832
|
+
function b(K, J, Y, z, X) {
|
|
1833
|
+
return O(K[J]) ? null : new g("Invalid " + z + " `" + X + "` supplied to " + ("`" + Y + "`, expected a ReactNode."));
|
|
1834
1834
|
}
|
|
1835
1835
|
return C(b);
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return new
|
|
1839
|
-
(b || "React class") + ": " + K + " type `" +
|
|
1837
|
+
function P(b, K, J, Y, z) {
|
|
1838
|
+
return new g(
|
|
1839
|
+
(b || "React class") + ": " + K + " type `" + J + "." + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
|
|
1840
1840
|
);
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1843
|
-
function K(
|
|
1844
|
-
var
|
|
1845
|
-
if (
|
|
1846
|
-
return new
|
|
1847
|
-
for (var
|
|
1848
|
-
var
|
|
1849
|
-
if (typeof
|
|
1850
|
-
return
|
|
1851
|
-
var he =
|
|
1842
|
+
function H(b) {
|
|
1843
|
+
function K(J, Y, z, X, D) {
|
|
1844
|
+
var G = J[Y], V = k(G);
|
|
1845
|
+
if (V !== "object")
|
|
1846
|
+
return new g("Invalid " + X + " `" + D + "` of type `" + V + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
1847
|
+
for (var $ in b) {
|
|
1848
|
+
var B = b[$];
|
|
1849
|
+
if (typeof B != "function")
|
|
1850
|
+
return P(z, X, D, $, d(B));
|
|
1851
|
+
var he = B(G, $, z, X, D + "." + $, r);
|
|
1852
1852
|
if (he)
|
|
1853
1853
|
return he;
|
|
1854
1854
|
}
|
|
@@ -1856,30 +1856,30 @@ function Ta() {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return C(K);
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1860
|
-
function K(
|
|
1861
|
-
var
|
|
1862
|
-
if (
|
|
1863
|
-
return new
|
|
1864
|
-
var
|
|
1865
|
-
for (var
|
|
1866
|
-
var he = b[
|
|
1867
|
-
if (n(b,
|
|
1868
|
-
return
|
|
1859
|
+
function N(b) {
|
|
1860
|
+
function K(J, Y, z, X, D) {
|
|
1861
|
+
var G = J[Y], V = k(G);
|
|
1862
|
+
if (V !== "object")
|
|
1863
|
+
return new g("Invalid " + X + " `" + D + "` of type `" + V + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
1864
|
+
var $ = t({}, J[Y], b);
|
|
1865
|
+
for (var B in $) {
|
|
1866
|
+
var he = b[B];
|
|
1867
|
+
if (n(b, B) && typeof he != "function")
|
|
1868
|
+
return P(z, X, D, B, d(he));
|
|
1869
1869
|
if (!he)
|
|
1870
|
-
return new
|
|
1871
|
-
"Invalid " +
|
|
1870
|
+
return new g(
|
|
1871
|
+
"Invalid " + X + " `" + D + "` key `" + B + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(J[Y], null, " ") + `
|
|
1872
1872
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
1873
1873
|
);
|
|
1874
|
-
var
|
|
1875
|
-
if (
|
|
1876
|
-
return
|
|
1874
|
+
var S = he(G, B, z, X, D + "." + B, r);
|
|
1875
|
+
if (S)
|
|
1876
|
+
return S;
|
|
1877
1877
|
}
|
|
1878
1878
|
return null;
|
|
1879
1879
|
}
|
|
1880
1880
|
return C(K);
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function O(b) {
|
|
1883
1883
|
switch (typeof b) {
|
|
1884
1884
|
case "number":
|
|
1885
1885
|
case "string":
|
|
@@ -1889,20 +1889,20 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
1889
1889
|
return !b;
|
|
1890
1890
|
case "object":
|
|
1891
1891
|
if (Array.isArray(b))
|
|
1892
|
-
return b.every(
|
|
1892
|
+
return b.every(O);
|
|
1893
1893
|
if (b === null || i(b))
|
|
1894
1894
|
return !0;
|
|
1895
1895
|
var K = m(b);
|
|
1896
1896
|
if (K) {
|
|
1897
|
-
var
|
|
1897
|
+
var J = K.call(b), Y;
|
|
1898
1898
|
if (K !== b.entries) {
|
|
1899
|
-
for (; !(
|
|
1900
|
-
if (!
|
|
1899
|
+
for (; !(Y = J.next()).done; )
|
|
1900
|
+
if (!O(Y.value))
|
|
1901
1901
|
return !1;
|
|
1902
1902
|
} else
|
|
1903
|
-
for (; !(
|
|
1904
|
-
var
|
|
1905
|
-
if (
|
|
1903
|
+
for (; !(Y = J.next()).done; ) {
|
|
1904
|
+
var z = Y.value;
|
|
1905
|
+
if (z && !O(z[1]))
|
|
1906
1906
|
return !1;
|
|
1907
1907
|
}
|
|
1908
1908
|
} else
|
|
@@ -1912,17 +1912,17 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
1912
1912
|
return !1;
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function L(b, K) {
|
|
1916
1916
|
return b === "symbol" ? !0 : K ? K["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && K instanceof Symbol : !1;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function k(b) {
|
|
1919
1919
|
var K = typeof b;
|
|
1920
|
-
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" :
|
|
1920
|
+
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : L(K, b) ? "symbol" : K;
|
|
1921
1921
|
}
|
|
1922
1922
|
function d(b) {
|
|
1923
1923
|
if (typeof b > "u" || b === null)
|
|
1924
1924
|
return "" + b;
|
|
1925
|
-
var K =
|
|
1925
|
+
var K = k(b);
|
|
1926
1926
|
if (K === "object") {
|
|
1927
1927
|
if (b instanceof Date)
|
|
1928
1928
|
return "date";
|
|
@@ -1931,7 +1931,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return K;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function w(b) {
|
|
1935
1935
|
var K = d(b);
|
|
1936
1936
|
switch (K) {
|
|
1937
1937
|
case "array":
|
|
@@ -1945,8 +1945,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
1945
1945
|
return K;
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1949
|
-
return !b.constructor || !b.constructor.name ?
|
|
1948
|
+
function _(b) {
|
|
1949
|
+
return !b.constructor || !b.constructor.name ? v : b.constructor.name;
|
|
1950
1950
|
}
|
|
1951
1951
|
return f.checkPropTypes = A, f.resetWarningCache = A.resetWarningCache, f.PropTypes = f, f;
|
|
1952
1952
|
}, gr;
|
|
@@ -1964,10 +1964,10 @@ function Ha() {
|
|
|
1964
1964
|
return r.resetWarningCache = t, yr = function() {
|
|
1965
1965
|
function n(o, i, c, u, l, m) {
|
|
1966
1966
|
if (m !== e) {
|
|
1967
|
-
var
|
|
1967
|
+
var v = new Error(
|
|
1968
1968
|
"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"
|
|
1969
1969
|
);
|
|
1970
|
-
throw
|
|
1970
|
+
throw v.name = "Invariant Violation", v;
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
n.isRequired = n;
|
|
@@ -2016,7 +2016,7 @@ var Pa = Object.assign || function(e) {
|
|
|
2016
2016
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2017
2017
|
}
|
|
2018
2018
|
return e;
|
|
2019
|
-
}, Va = er, we = uA(Va), sA =
|
|
2019
|
+
}, Va = er, we = uA(Va), sA = re, zt = uA(sA);
|
|
2020
2020
|
function uA(e) {
|
|
2021
2021
|
return e && e.__esModule ? e : { default: e };
|
|
2022
2022
|
}
|
|
@@ -2067,7 +2067,7 @@ var _a = Object.assign || function(e) {
|
|
|
2067
2067
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2068
2068
|
}
|
|
2069
2069
|
return e;
|
|
2070
|
-
}, $a = Ja, eo = wt($a), to = eA, ro = wt(to), no = er,
|
|
2070
|
+
}, $a = Ja, eo = wt($a), to = eA, ro = wt(to), no = er, De = wt(no), lA = re, Ao = wt(lA), ao = Xr, oo = wt(ao);
|
|
2071
2071
|
function wt(e) {
|
|
2072
2072
|
return e && e.__esModule ? e : { default: e };
|
|
2073
2073
|
}
|
|
@@ -2078,11 +2078,11 @@ function io(e, t) {
|
|
|
2078
2078
|
return r;
|
|
2079
2079
|
}
|
|
2080
2080
|
var so = {
|
|
2081
|
-
bgColor:
|
|
2082
|
-
fgColor:
|
|
2083
|
-
level:
|
|
2084
|
-
size:
|
|
2085
|
-
value:
|
|
2081
|
+
bgColor: De.default.oneOfType([De.default.object, De.default.string]),
|
|
2082
|
+
fgColor: De.default.oneOfType([De.default.object, De.default.string]),
|
|
2083
|
+
level: De.default.string,
|
|
2084
|
+
size: De.default.number,
|
|
2085
|
+
value: De.default.string.isRequired
|
|
2086
2086
|
}, uo = {
|
|
2087
2087
|
bgColor: "#FFFFFF",
|
|
2088
2088
|
fgColor: "#000000",
|
|
@@ -2095,14 +2095,14 @@ var so = {
|
|
|
2095
2095
|
return Ao.default.createElement(oo.default, _a({}, i, {
|
|
2096
2096
|
bgColor: r,
|
|
2097
2097
|
bgD: u.map(function(l, m) {
|
|
2098
|
-
return l.map(function(
|
|
2099
|
-
return
|
|
2098
|
+
return l.map(function(v, f) {
|
|
2099
|
+
return v ? "" : "M " + f + " " + m + " l 1 0 0 1 -1 0 Z";
|
|
2100
2100
|
}).join(" ");
|
|
2101
2101
|
}).join(" "),
|
|
2102
2102
|
fgColor: n,
|
|
2103
2103
|
fgD: u.map(function(l, m) {
|
|
2104
|
-
return l.map(function(
|
|
2105
|
-
return
|
|
2104
|
+
return l.map(function(v, f) {
|
|
2105
|
+
return v ? "M " + f + " " + m + " l 1 0 0 1 -1 0 Z" : "";
|
|
2106
2106
|
}).join(" ");
|
|
2107
2107
|
}).join(" "),
|
|
2108
2108
|
ref: t,
|
|
@@ -2162,11 +2162,11 @@ function mA(e, t) {
|
|
|
2162
2162
|
const { toString: co } = Object.prototype, { getPrototypeOf: Qr } = Object, rr = ((e) => (t) => {
|
|
2163
2163
|
const r = co.call(t);
|
|
2164
2164
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
2165
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
2165
|
+
})(/* @__PURE__ */ Object.create(null)), Je = (e) => (e = e.toLowerCase(), (t) => rr(t) === e), nr = (e) => (t) => typeof t === e, { isArray: mt } = Array, Ct = nr("undefined");
|
|
2166
2166
|
function mo(e) {
|
|
2167
2167
|
return e !== null && !Ct(e) && e.constructor !== null && !Ct(e.constructor) && Oe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2168
2168
|
}
|
|
2169
|
-
const dA =
|
|
2169
|
+
const dA = Je("ArrayBuffer");
|
|
2170
2170
|
function po(e) {
|
|
2171
2171
|
let t;
|
|
2172
2172
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dA(e.buffer), t;
|
|
@@ -2176,11 +2176,11 @@ const fo = nr("string"), Oe = nr("function"), pA = nr("number"), Ar = (e) => e !
|
|
|
2176
2176
|
return !1;
|
|
2177
2177
|
const t = Qr(e);
|
|
2178
2178
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2179
|
-
}, ho =
|
|
2179
|
+
}, ho = Je("Date"), vo = Je("File"), go = Je("Blob"), yo = Je("FileList"), bo = (e) => Ar(e) && Oe(e.pipe), Zo = (e) => {
|
|
2180
2180
|
let t;
|
|
2181
2181
|
return e && (typeof FormData == "function" && e instanceof FormData || Oe(e.append) && ((t = rr(e)) === "formdata" || // detect form-data instance
|
|
2182
2182
|
t === "object" && Oe(e.toString) && e.toString() === "[object FormData]"));
|
|
2183
|
-
}, Co =
|
|
2183
|
+
}, Co = Je("URLSearchParams"), Io = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2184
2184
|
function Ot(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
2185
2185
|
if (e === null || typeof e > "u")
|
|
2186
2186
|
return;
|
|
@@ -2205,10 +2205,10 @@ function fA(e, t) {
|
|
|
2205
2205
|
return null;
|
|
2206
2206
|
}
|
|
2207
2207
|
const qA = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), hA = (e) => !Ct(e) && e !== qA;
|
|
2208
|
-
function
|
|
2208
|
+
function Lr() {
|
|
2209
2209
|
const { caseless: e } = hA(this) && this || {}, t = {}, r = (n, A) => {
|
|
2210
2210
|
const a = e && fA(t, A) || A;
|
|
2211
|
-
Dt(t[a]) && Dt(n) ? t[a] =
|
|
2211
|
+
Dt(t[a]) && Dt(n) ? t[a] = Lr(t[a], n) : Dt(n) ? t[a] = Lr({}, n) : mt(n) ? t[a] = n.slice() : t[a] = n;
|
|
2212
2212
|
};
|
|
2213
2213
|
for (let n = 0, A = arguments.length; n < A; n++)
|
|
2214
2214
|
arguments[n] && Ot(arguments[n], r);
|
|
@@ -2247,7 +2247,7 @@ const Ko = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (A, a) => {
|
|
|
2247
2247
|
for (; t-- > 0; )
|
|
2248
2248
|
r[t] = e[t];
|
|
2249
2249
|
return r;
|
|
2250
|
-
},
|
|
2250
|
+
}, Lo = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Qr(Uint8Array)), Eo = (e, t) => {
|
|
2251
2251
|
const n = (e && e[Symbol.iterator]).call(e);
|
|
2252
2252
|
let A;
|
|
2253
2253
|
for (; (A = n.next()) && !A.done; ) {
|
|
@@ -2260,12 +2260,12 @@ const Ko = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (A, a) => {
|
|
|
2260
2260
|
for (; (r = e.exec(t)) !== null; )
|
|
2261
2261
|
n.push(r);
|
|
2262
2262
|
return n;
|
|
2263
|
-
}, xo =
|
|
2263
|
+
}, xo = Je("HTMLFormElement"), zo = (e) => e.toLowerCase().replace(
|
|
2264
2264
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
2265
2265
|
function(r, n, A) {
|
|
2266
2266
|
return n.toUpperCase() + A;
|
|
2267
2267
|
}
|
|
2268
|
-
), Mn = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ko =
|
|
2268
|
+
), Mn = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ko = Je("RegExp"), vA = (e, t) => {
|
|
2269
2269
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
2270
2270
|
Ot(r, (A, a) => {
|
|
2271
2271
|
let o;
|
|
@@ -2325,7 +2325,7 @@ const To = (e) => {
|
|
|
2325
2325
|
return n;
|
|
2326
2326
|
};
|
|
2327
2327
|
return r(e, 0);
|
|
2328
|
-
}, Ho =
|
|
2328
|
+
}, Ho = Je("AsyncFunction"), Xo = (e) => e && (Ar(e) || Oe(e)) && Oe(e.then) && Oe(e.catch), h = {
|
|
2329
2329
|
isArray: mt,
|
|
2330
2330
|
isArrayBuffer: dA,
|
|
2331
2331
|
isBuffer: mo,
|
|
@@ -2344,20 +2344,20 @@ const To = (e) => {
|
|
|
2344
2344
|
isFunction: Oe,
|
|
2345
2345
|
isStream: bo,
|
|
2346
2346
|
isURLSearchParams: Co,
|
|
2347
|
-
isTypedArray:
|
|
2347
|
+
isTypedArray: Lo,
|
|
2348
2348
|
isFileList: yo,
|
|
2349
2349
|
forEach: Ot,
|
|
2350
|
-
merge:
|
|
2350
|
+
merge: Lr,
|
|
2351
2351
|
extend: Ko,
|
|
2352
2352
|
trim: Io,
|
|
2353
2353
|
stripBOM: wo,
|
|
2354
2354
|
inherits: Wo,
|
|
2355
2355
|
toFlatObject: Oo,
|
|
2356
2356
|
kindOf: rr,
|
|
2357
|
-
kindOfTest:
|
|
2357
|
+
kindOfTest: Je,
|
|
2358
2358
|
endsWith: Mo,
|
|
2359
2359
|
toArray: So,
|
|
2360
|
-
forEachEntry:
|
|
2360
|
+
forEachEntry: Eo,
|
|
2361
2361
|
matchAll: Yo,
|
|
2362
2362
|
isHTMLForm: xo,
|
|
2363
2363
|
hasOwnProperty: Mn,
|
|
@@ -2379,10 +2379,10 @@ const To = (e) => {
|
|
|
2379
2379
|
isAsyncFn: Ho,
|
|
2380
2380
|
isThenable: Xo
|
|
2381
2381
|
};
|
|
2382
|
-
function
|
|
2382
|
+
function ee(e, t, r, n, A) {
|
|
2383
2383
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), A && (this.response = A);
|
|
2384
2384
|
}
|
|
2385
|
-
h.inherits(
|
|
2385
|
+
h.inherits(ee, Error, {
|
|
2386
2386
|
toJSON: function() {
|
|
2387
2387
|
return {
|
|
2388
2388
|
// Standard
|
|
@@ -2403,7 +2403,7 @@ h.inherits($, Error, {
|
|
|
2403
2403
|
};
|
|
2404
2404
|
}
|
|
2405
2405
|
});
|
|
2406
|
-
const yA =
|
|
2406
|
+
const yA = ee.prototype, bA = {};
|
|
2407
2407
|
[
|
|
2408
2408
|
"ERR_BAD_OPTION_VALUE",
|
|
2409
2409
|
"ERR_BAD_OPTION",
|
|
@@ -2421,28 +2421,28 @@ const yA = $.prototype, bA = {};
|
|
|
2421
2421
|
].forEach((e) => {
|
|
2422
2422
|
bA[e] = { value: e };
|
|
2423
2423
|
});
|
|
2424
|
-
Object.defineProperties(
|
|
2424
|
+
Object.defineProperties(ee, bA);
|
|
2425
2425
|
Object.defineProperty(yA, "isAxiosError", { value: !0 });
|
|
2426
|
-
|
|
2426
|
+
ee.from = (e, t, r, n, A, a) => {
|
|
2427
2427
|
const o = Object.create(yA);
|
|
2428
2428
|
return h.toFlatObject(e, o, function(c) {
|
|
2429
2429
|
return c !== Error.prototype;
|
|
2430
|
-
}, (i) => i !== "isAxiosError"),
|
|
2430
|
+
}, (i) => i !== "isAxiosError"), ee.call(o, e.message, t, r, n, A), o.cause = e, o.name = e.name, a && Object.assign(o, a), o;
|
|
2431
2431
|
};
|
|
2432
2432
|
const Qo = null;
|
|
2433
|
-
function
|
|
2433
|
+
function Er(e) {
|
|
2434
2434
|
return h.isPlainObject(e) || h.isArray(e);
|
|
2435
2435
|
}
|
|
2436
2436
|
function ZA(e) {
|
|
2437
2437
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function Ln(e, t, r) {
|
|
2440
2440
|
return e ? e.concat(t).map(function(A, a) {
|
|
2441
2441
|
return A = ZA(A), !r && a ? "[" + A + "]" : A;
|
|
2442
2442
|
}).join(r ? "." : "") : t;
|
|
2443
2443
|
}
|
|
2444
2444
|
function Po(e) {
|
|
2445
|
-
return h.isArray(e) && !e.some(
|
|
2445
|
+
return h.isArray(e) && !e.some(Er);
|
|
2446
2446
|
}
|
|
2447
2447
|
const Vo = h.toFlatObject(h, {}, null, function(t) {
|
|
2448
2448
|
return /^is[A-Z]/.test(t);
|
|
@@ -2454,8 +2454,8 @@ function ar(e, t, r) {
|
|
|
2454
2454
|
metaTokens: !0,
|
|
2455
2455
|
dots: !1,
|
|
2456
2456
|
indexes: !1
|
|
2457
|
-
}, !1, function(
|
|
2458
|
-
return !h.isUndefined(C[
|
|
2457
|
+
}, !1, function(g, C) {
|
|
2458
|
+
return !h.isUndefined(C[g]);
|
|
2459
2459
|
});
|
|
2460
2460
|
const n = r.metaTokens, A = r.visitor || l, a = r.dots, o = r.indexes, c = (r.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
|
|
2461
2461
|
if (!h.isFunction(A))
|
|
@@ -2466,42 +2466,42 @@ function ar(e, t, r) {
|
|
|
2466
2466
|
if (h.isDate(p))
|
|
2467
2467
|
return p.toISOString();
|
|
2468
2468
|
if (!c && h.isBlob(p))
|
|
2469
|
-
throw new
|
|
2469
|
+
throw new ee("Blob is not supported. Use a Buffer instead.");
|
|
2470
2470
|
return h.isArrayBuffer(p) || h.isTypedArray(p) ? c && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
2471
2471
|
}
|
|
2472
|
-
function l(p,
|
|
2472
|
+
function l(p, g, C) {
|
|
2473
2473
|
let I = p;
|
|
2474
2474
|
if (p && !C && typeof p == "object") {
|
|
2475
|
-
if (h.endsWith(
|
|
2476
|
-
|
|
2477
|
-
else if (h.isArray(p) && Po(p) || (h.isFileList(p) || h.endsWith(
|
|
2478
|
-
return
|
|
2479
|
-
!(h.isUndefined(
|
|
2475
|
+
if (h.endsWith(g, "{}"))
|
|
2476
|
+
g = n ? g : g.slice(0, -2), p = JSON.stringify(p);
|
|
2477
|
+
else if (h.isArray(p) && Po(p) || (h.isFileList(p) || h.endsWith(g, "[]")) && (I = h.toArray(p)))
|
|
2478
|
+
return g = ZA(g), I.forEach(function(j, W) {
|
|
2479
|
+
!(h.isUndefined(j) || j === null) && t.append(
|
|
2480
2480
|
// eslint-disable-next-line no-nested-ternary
|
|
2481
|
-
o === !0 ?
|
|
2482
|
-
u(
|
|
2481
|
+
o === !0 ? Ln([g], W, a) : o === null ? g : g + "[]",
|
|
2482
|
+
u(j)
|
|
2483
2483
|
);
|
|
2484
2484
|
}), !1;
|
|
2485
2485
|
}
|
|
2486
|
-
return
|
|
2486
|
+
return Er(p) ? !0 : (t.append(Ln(C, g, a), u(p)), !1);
|
|
2487
2487
|
}
|
|
2488
|
-
const m = [],
|
|
2488
|
+
const m = [], v = Object.assign(Vo, {
|
|
2489
2489
|
defaultVisitor: l,
|
|
2490
2490
|
convertValue: u,
|
|
2491
|
-
isVisitable:
|
|
2491
|
+
isVisitable: Er
|
|
2492
2492
|
});
|
|
2493
|
-
function f(p,
|
|
2493
|
+
function f(p, g) {
|
|
2494
2494
|
if (!h.isUndefined(p)) {
|
|
2495
2495
|
if (m.indexOf(p) !== -1)
|
|
2496
|
-
throw Error("Circular reference detected in " +
|
|
2497
|
-
m.push(p), h.forEach(p, function(I,
|
|
2496
|
+
throw Error("Circular reference detected in " + g.join("."));
|
|
2497
|
+
m.push(p), h.forEach(p, function(I, E) {
|
|
2498
2498
|
(!(h.isUndefined(I) || I === null) && A.call(
|
|
2499
2499
|
t,
|
|
2500
2500
|
I,
|
|
2501
|
-
h.isString(
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
)) === !0 && f(I,
|
|
2501
|
+
h.isString(E) ? E.trim() : E,
|
|
2502
|
+
g,
|
|
2503
|
+
v
|
|
2504
|
+
)) === !0 && f(I, g ? g.concat(E) : [E]);
|
|
2505
2505
|
}), m.pop();
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
@@ -2509,7 +2509,7 @@ function ar(e, t, r) {
|
|
|
2509
2509
|
throw new TypeError("data must be an object");
|
|
2510
2510
|
return f(e), t;
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function En(e) {
|
|
2513
2513
|
const t = {
|
|
2514
2514
|
"!": "%21",
|
|
2515
2515
|
"'": "%27",
|
|
@@ -2532,8 +2532,8 @@ CA.append = function(t, r) {
|
|
|
2532
2532
|
};
|
|
2533
2533
|
CA.toString = function(t) {
|
|
2534
2534
|
const r = t ? function(n) {
|
|
2535
|
-
return t.call(this, n,
|
|
2536
|
-
} :
|
|
2535
|
+
return t.call(this, n, En);
|
|
2536
|
+
} : En;
|
|
2537
2537
|
return this._pairs.map(function(A) {
|
|
2538
2538
|
return r(A[0]) + "=" + r(A[1]);
|
|
2539
2539
|
}, "").join("&");
|
|
@@ -2614,7 +2614,7 @@ const Yn = Fo, KA = {
|
|
|
2614
2614
|
let e;
|
|
2615
2615
|
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
2616
2616
|
})(), ti = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2617
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
2617
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Le = {
|
|
2618
2618
|
isBrowser: !0,
|
|
2619
2619
|
classes: {
|
|
2620
2620
|
URLSearchParams: Uo,
|
|
@@ -2626,9 +2626,9 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2626
2626
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2627
2627
|
};
|
|
2628
2628
|
function ri(e, t) {
|
|
2629
|
-
return ar(e, new
|
|
2629
|
+
return ar(e, new Le.classes.URLSearchParams(), Object.assign({
|
|
2630
2630
|
visitor: function(r, n, A, a) {
|
|
2631
|
-
return
|
|
2631
|
+
return Le.isNode && h.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
2632
2632
|
}
|
|
2633
2633
|
}, t));
|
|
2634
2634
|
}
|
|
@@ -2670,7 +2670,7 @@ function ai(e, t, r) {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
const Vr = {
|
|
2672
2672
|
transitional: KA,
|
|
2673
|
-
adapter:
|
|
2673
|
+
adapter: Le.isNode ? "http" : "xhr",
|
|
2674
2674
|
transformRequest: [function(t, r) {
|
|
2675
2675
|
const n = r.getContentType() || "", A = n.indexOf("application/json") > -1, a = h.isObject(t);
|
|
2676
2676
|
if (a && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
|
@@ -2704,7 +2704,7 @@ const Vr = {
|
|
|
2704
2704
|
return JSON.parse(t);
|
|
2705
2705
|
} catch (i) {
|
|
2706
2706
|
if (o)
|
|
2707
|
-
throw i.name === "SyntaxError" ?
|
|
2707
|
+
throw i.name === "SyntaxError" ? ee.from(i, ee.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
2710
|
return t;
|
|
@@ -2719,8 +2719,8 @@ const Vr = {
|
|
|
2719
2719
|
maxContentLength: -1,
|
|
2720
2720
|
maxBodyLength: -1,
|
|
2721
2721
|
env: {
|
|
2722
|
-
FormData:
|
|
2723
|
-
Blob:
|
|
2722
|
+
FormData: Le.classes.FormData,
|
|
2723
|
+
Blob: Le.classes.Blob
|
|
2724
2724
|
},
|
|
2725
2725
|
validateStatus: function(t) {
|
|
2726
2726
|
return t >= 200 && t < 300;
|
|
@@ -2931,22 +2931,22 @@ function WA(e) {
|
|
|
2931
2931
|
return !!(e && e.__CANCEL__);
|
|
2932
2932
|
}
|
|
2933
2933
|
function Mt(e, t, r) {
|
|
2934
|
-
|
|
2934
|
+
ee.call(this, e ?? "canceled", ee.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
2935
2935
|
}
|
|
2936
|
-
h.inherits(Mt,
|
|
2936
|
+
h.inherits(Mt, ee, {
|
|
2937
2937
|
__CANCEL__: !0
|
|
2938
2938
|
});
|
|
2939
2939
|
function mi(e, t, r) {
|
|
2940
2940
|
const n = r.config.validateStatus;
|
|
2941
|
-
!r.status || !n || n(r.status) ? e(r) : t(new
|
|
2941
|
+
!r.status || !n || n(r.status) ? e(r) : t(new ee(
|
|
2942
2942
|
"Request failed with status code " + r.status,
|
|
2943
|
-
[
|
|
2943
|
+
[ee.ERR_BAD_REQUEST, ee.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
2944
2944
|
r.config,
|
|
2945
2945
|
r.request,
|
|
2946
2946
|
r
|
|
2947
2947
|
));
|
|
2948
2948
|
}
|
|
2949
|
-
const di =
|
|
2949
|
+
const di = Le.isStandardBrowserEnv ? (
|
|
2950
2950
|
// Standard browser envs support document.cookie
|
|
2951
2951
|
function() {
|
|
2952
2952
|
return {
|
|
@@ -2986,7 +2986,7 @@ function fi(e, t) {
|
|
|
2986
2986
|
function OA(e, t) {
|
|
2987
2987
|
return e && !pi(t) ? fi(e, t) : t;
|
|
2988
2988
|
}
|
|
2989
|
-
const qi =
|
|
2989
|
+
const qi = Le.isStandardBrowserEnv ? (
|
|
2990
2990
|
// Standard browser envs have full support of the APIs needed to test
|
|
2991
2991
|
// whether the request URL is of the same origin as current location.
|
|
2992
2992
|
function() {
|
|
@@ -3029,13 +3029,13 @@ function vi(e, t) {
|
|
|
3029
3029
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
3030
3030
|
const u = Date.now(), l = n[a];
|
|
3031
3031
|
o || (o = u), r[A] = c, n[A] = u;
|
|
3032
|
-
let m = a,
|
|
3032
|
+
let m = a, v = 0;
|
|
3033
3033
|
for (; m !== A; )
|
|
3034
|
-
|
|
3034
|
+
v += r[m++], m = m % e;
|
|
3035
3035
|
if (A = (A + 1) % e, A === a && (a = (a + 1) % e), u - o < t)
|
|
3036
3036
|
return;
|
|
3037
3037
|
const f = l && u - l;
|
|
3038
|
-
return f ? Math.round(
|
|
3038
|
+
return f ? Math.round(v * 1e3 / f) : void 0;
|
|
3039
3039
|
};
|
|
3040
3040
|
}
|
|
3041
3041
|
function zn(e, t) {
|
|
@@ -3064,7 +3064,7 @@ const gi = typeof XMLHttpRequest < "u", yi = gi && function(e) {
|
|
|
3064
3064
|
function c() {
|
|
3065
3065
|
e.cancelToken && e.cancelToken.unsubscribe(i), e.signal && e.signal.removeEventListener("abort", i);
|
|
3066
3066
|
}
|
|
3067
|
-
h.isFormData(A) && (
|
|
3067
|
+
h.isFormData(A) && (Le.isStandardBrowserEnv || Le.isStandardBrowserWebWorkerEnv ? a.setContentType(!1) : a.setContentType("multipart/form-data;", !1));
|
|
3068
3068
|
let u = new XMLHttpRequest();
|
|
3069
3069
|
if (e.auth) {
|
|
3070
3070
|
const f = e.auth.username || "", p = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
@@ -3077,7 +3077,7 @@ const gi = typeof XMLHttpRequest < "u", yi = gi && function(e) {
|
|
|
3077
3077
|
return;
|
|
3078
3078
|
const f = Ge.from(
|
|
3079
3079
|
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
3080
|
-
),
|
|
3080
|
+
), g = {
|
|
3081
3081
|
data: !o || o === "text" || o === "json" ? u.responseText : u.response,
|
|
3082
3082
|
status: u.status,
|
|
3083
3083
|
statusText: u.statusText,
|
|
@@ -3089,35 +3089,35 @@ const gi = typeof XMLHttpRequest < "u", yi = gi && function(e) {
|
|
|
3089
3089
|
r(I), c();
|
|
3090
3090
|
}, function(I) {
|
|
3091
3091
|
n(I), c();
|
|
3092
|
-
},
|
|
3092
|
+
}, g), u = null;
|
|
3093
3093
|
}
|
|
3094
3094
|
if ("onloadend" in u ? u.onloadend = m : u.onreadystatechange = function() {
|
|
3095
3095
|
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(m);
|
|
3096
3096
|
}, u.onabort = function() {
|
|
3097
|
-
u && (n(new
|
|
3097
|
+
u && (n(new ee("Request aborted", ee.ECONNABORTED, e, u)), u = null);
|
|
3098
3098
|
}, u.onerror = function() {
|
|
3099
|
-
n(new
|
|
3099
|
+
n(new ee("Network Error", ee.ERR_NETWORK, e, u)), u = null;
|
|
3100
3100
|
}, u.ontimeout = function() {
|
|
3101
3101
|
let p = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3102
|
-
const
|
|
3103
|
-
e.timeoutErrorMessage && (p = e.timeoutErrorMessage), n(new
|
|
3102
|
+
const g = e.transitional || KA;
|
|
3103
|
+
e.timeoutErrorMessage && (p = e.timeoutErrorMessage), n(new ee(
|
|
3104
3104
|
p,
|
|
3105
|
-
|
|
3105
|
+
g.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
|
|
3106
3106
|
e,
|
|
3107
3107
|
u
|
|
3108
3108
|
)), u = null;
|
|
3109
|
-
},
|
|
3109
|
+
}, Le.isStandardBrowserEnv) {
|
|
3110
3110
|
const f = (e.withCredentials || qi(l)) && e.xsrfCookieName && di.read(e.xsrfCookieName);
|
|
3111
3111
|
f && a.set(e.xsrfHeaderName, f);
|
|
3112
3112
|
}
|
|
3113
|
-
A === void 0 && a.setContentType(null), "setRequestHeader" in u && h.forEach(a.toJSON(), function(p,
|
|
3114
|
-
u.setRequestHeader(
|
|
3113
|
+
A === void 0 && a.setContentType(null), "setRequestHeader" in u && h.forEach(a.toJSON(), function(p, g) {
|
|
3114
|
+
u.setRequestHeader(g, p);
|
|
3115
3115
|
}), h.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), o && o !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", zn(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", zn(e.onUploadProgress)), (e.cancelToken || e.signal) && (i = (f) => {
|
|
3116
3116
|
u && (n(!f || f.type ? new Mt(null, e, u) : f), u.abort(), u = null);
|
|
3117
3117
|
}, e.cancelToken && e.cancelToken.subscribe(i), e.signal && (e.signal.aborted ? i() : e.signal.addEventListener("abort", i)));
|
|
3118
|
-
const
|
|
3119
|
-
if (
|
|
3120
|
-
n(new
|
|
3118
|
+
const v = hi(l);
|
|
3119
|
+
if (v && Le.protocols.indexOf(v) === -1) {
|
|
3120
|
+
n(new ee("Unsupported protocol " + v + ":", ee.ERR_BAD_REQUEST, e));
|
|
3121
3121
|
return;
|
|
3122
3122
|
}
|
|
3123
3123
|
u.send(A || null);
|
|
@@ -3143,7 +3143,7 @@ const MA = {
|
|
|
3143
3143
|
for (let A = 0; A < t && (r = e[A], !(n = h.isString(r) ? Rt[r.toLowerCase()] : r)); A++)
|
|
3144
3144
|
;
|
|
3145
3145
|
if (!n)
|
|
3146
|
-
throw n === !1 ? new
|
|
3146
|
+
throw n === !1 ? new ee(
|
|
3147
3147
|
`Adapter ${r} is not supported by the environment`,
|
|
3148
3148
|
"ERR_NOT_SUPPORT"
|
|
3149
3149
|
) : new Error(
|
|
@@ -3239,8 +3239,8 @@ function ct(e, t) {
|
|
|
3239
3239
|
headers: (u, l) => A(jn(u), jn(l), !0)
|
|
3240
3240
|
};
|
|
3241
3241
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
3242
|
-
const m = c[l] || A,
|
|
3243
|
-
h.isUndefined(
|
|
3242
|
+
const m = c[l] || A, v = m(e[l], t[l], l);
|
|
3243
|
+
h.isUndefined(v) && m !== i || (r[l] = v);
|
|
3244
3244
|
}), r;
|
|
3245
3245
|
}
|
|
3246
3246
|
const SA = "1.5.0", Fr = {};
|
|
@@ -3256,9 +3256,9 @@ Fr.transitional = function(t, r, n) {
|
|
|
3256
3256
|
}
|
|
3257
3257
|
return (a, o, i) => {
|
|
3258
3258
|
if (t === !1)
|
|
3259
|
-
throw new
|
|
3259
|
+
throw new ee(
|
|
3260
3260
|
A(o, " has been removed" + (r ? " in " + r : "")),
|
|
3261
|
-
|
|
3261
|
+
ee.ERR_DEPRECATED
|
|
3262
3262
|
);
|
|
3263
3263
|
return r && !Jn[o] && (Jn[o] = !0, console.warn(
|
|
3264
3264
|
A(
|
|
@@ -3270,7 +3270,7 @@ Fr.transitional = function(t, r, n) {
|
|
|
3270
3270
|
};
|
|
3271
3271
|
function bi(e, t, r) {
|
|
3272
3272
|
if (typeof e != "object")
|
|
3273
|
-
throw new
|
|
3273
|
+
throw new ee("options must be an object", ee.ERR_BAD_OPTION_VALUE);
|
|
3274
3274
|
const n = Object.keys(e);
|
|
3275
3275
|
let A = n.length;
|
|
3276
3276
|
for (; A-- > 0; ) {
|
|
@@ -3278,17 +3278,17 @@ function bi(e, t, r) {
|
|
|
3278
3278
|
if (o) {
|
|
3279
3279
|
const i = e[a], c = i === void 0 || o(i, a, e);
|
|
3280
3280
|
if (c !== !0)
|
|
3281
|
-
throw new
|
|
3281
|
+
throw new ee("option " + a + " must be " + c, ee.ERR_BAD_OPTION_VALUE);
|
|
3282
3282
|
continue;
|
|
3283
3283
|
}
|
|
3284
3284
|
if (r !== !0)
|
|
3285
|
-
throw new
|
|
3285
|
+
throw new ee("Unknown option " + a, ee.ERR_BAD_OPTION);
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
3288
|
const Yr = {
|
|
3289
3289
|
assertOptions: bi,
|
|
3290
3290
|
validators: Fr
|
|
3291
|
-
},
|
|
3291
|
+
}, He = Yr.validators;
|
|
3292
3292
|
class Qt {
|
|
3293
3293
|
constructor(t) {
|
|
3294
3294
|
this.defaults = t, this.interceptors = {
|
|
@@ -3308,14 +3308,14 @@ class Qt {
|
|
|
3308
3308
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ct(this.defaults, r);
|
|
3309
3309
|
const { transitional: n, paramsSerializer: A, headers: a } = r;
|
|
3310
3310
|
n !== void 0 && Yr.assertOptions(n, {
|
|
3311
|
-
silentJSONParsing:
|
|
3312
|
-
forcedJSONParsing:
|
|
3313
|
-
clarifyTimeoutError:
|
|
3311
|
+
silentJSONParsing: He.transitional(He.boolean),
|
|
3312
|
+
forcedJSONParsing: He.transitional(He.boolean),
|
|
3313
|
+
clarifyTimeoutError: He.transitional(He.boolean)
|
|
3314
3314
|
}, !1), A != null && (h.isFunction(A) ? r.paramsSerializer = {
|
|
3315
3315
|
serialize: A
|
|
3316
3316
|
} : Yr.assertOptions(A, {
|
|
3317
|
-
encode:
|
|
3318
|
-
serialize:
|
|
3317
|
+
encode: He.function,
|
|
3318
|
+
serialize: He.function
|
|
3319
3319
|
}, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
3320
3320
|
let o = a && h.merge(
|
|
3321
3321
|
a.common,
|
|
@@ -3329,28 +3329,28 @@ class Qt {
|
|
|
3329
3329
|
), r.headers = Ge.concat(o, a);
|
|
3330
3330
|
const i = [];
|
|
3331
3331
|
let c = !0;
|
|
3332
|
-
this.interceptors.request.forEach(function(
|
|
3333
|
-
typeof
|
|
3332
|
+
this.interceptors.request.forEach(function(g) {
|
|
3333
|
+
typeof g.runWhen == "function" && g.runWhen(r) === !1 || (c = c && g.synchronous, i.unshift(g.fulfilled, g.rejected));
|
|
3334
3334
|
});
|
|
3335
3335
|
const u = [];
|
|
3336
|
-
this.interceptors.response.forEach(function(
|
|
3337
|
-
u.push(
|
|
3336
|
+
this.interceptors.response.forEach(function(g) {
|
|
3337
|
+
u.push(g.fulfilled, g.rejected);
|
|
3338
3338
|
});
|
|
3339
|
-
let l, m = 0,
|
|
3339
|
+
let l, m = 0, v;
|
|
3340
3340
|
if (!c) {
|
|
3341
3341
|
const p = [kn.bind(this), void 0];
|
|
3342
|
-
for (p.unshift.apply(p, i), p.push.apply(p, u),
|
|
3342
|
+
for (p.unshift.apply(p, i), p.push.apply(p, u), v = p.length, l = Promise.resolve(r); m < v; )
|
|
3343
3343
|
l = l.then(p[m++], p[m++]);
|
|
3344
3344
|
return l;
|
|
3345
3345
|
}
|
|
3346
|
-
|
|
3346
|
+
v = i.length;
|
|
3347
3347
|
let f = r;
|
|
3348
|
-
for (m = 0; m <
|
|
3349
|
-
const p = i[m++],
|
|
3348
|
+
for (m = 0; m < v; ) {
|
|
3349
|
+
const p = i[m++], g = i[m++];
|
|
3350
3350
|
try {
|
|
3351
3351
|
f = p(f);
|
|
3352
3352
|
} catch (C) {
|
|
3353
|
-
|
|
3353
|
+
g.call(this, C);
|
|
3354
3354
|
break;
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
@@ -3359,7 +3359,7 @@ class Qt {
|
|
|
3359
3359
|
} catch (p) {
|
|
3360
3360
|
return Promise.reject(p);
|
|
3361
3361
|
}
|
|
3362
|
-
for (m = 0,
|
|
3362
|
+
for (m = 0, v = u.length; m < v; )
|
|
3363
3363
|
l = l.then(u[m++], u[m++]);
|
|
3364
3364
|
return l;
|
|
3365
3365
|
}
|
|
@@ -3540,20 +3540,20 @@ Object.entries(xr).forEach(([e, t]) => {
|
|
|
3540
3540
|
xr[t] = e;
|
|
3541
3541
|
});
|
|
3542
3542
|
const Ki = xr;
|
|
3543
|
-
function
|
|
3543
|
+
function LA(e) {
|
|
3544
3544
|
const t = new Tt(e), r = mA(Tt.prototype.request, t);
|
|
3545
3545
|
return h.extend(r, Tt.prototype, t, { allOwnKeys: !0 }), h.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(A) {
|
|
3546
|
-
return
|
|
3546
|
+
return LA(ct(e, A));
|
|
3547
3547
|
}, r;
|
|
3548
3548
|
}
|
|
3549
|
-
const pe =
|
|
3549
|
+
const pe = LA(Br);
|
|
3550
3550
|
pe.Axios = Tt;
|
|
3551
3551
|
pe.CanceledError = Mt;
|
|
3552
3552
|
pe.CancelToken = Zi;
|
|
3553
3553
|
pe.isCancel = WA;
|
|
3554
3554
|
pe.VERSION = SA;
|
|
3555
3555
|
pe.toFormData = ar;
|
|
3556
|
-
pe.AxiosError =
|
|
3556
|
+
pe.AxiosError = ee;
|
|
3557
3557
|
pe.Cancel = pe.CanceledError;
|
|
3558
3558
|
pe.all = function(t) {
|
|
3559
3559
|
return Promise.all(t);
|
|
@@ -3568,7 +3568,7 @@ pe.HttpStatusCode = Ki;
|
|
|
3568
3568
|
pe.default = pe;
|
|
3569
3569
|
const wi = pe;
|
|
3570
3570
|
/*! typescript-cookie v1.0.6 | MIT */
|
|
3571
|
-
const
|
|
3571
|
+
const EA = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), YA = (e) => encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), _r = decodeURIComponent, $r = (e) => (e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
|
|
3572
3572
|
function Wi(e) {
|
|
3573
3573
|
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, r]) => r != null && r !== !1).map(([t, r]) => r === !0 ? `; ${t}` : `; ${t}=${r.split(";")[0]}`).join("");
|
|
3574
3574
|
}
|
|
@@ -3587,12 +3587,12 @@ function xA(e, t, r) {
|
|
|
3587
3587
|
const Nn = Object.freeze({
|
|
3588
3588
|
decodeName: _r,
|
|
3589
3589
|
decodeValue: $r,
|
|
3590
|
-
encodeName:
|
|
3590
|
+
encodeName: EA,
|
|
3591
3591
|
encodeValue: YA
|
|
3592
3592
|
}), en = Object.freeze({
|
|
3593
3593
|
path: "/"
|
|
3594
3594
|
});
|
|
3595
|
-
function zA(e, t, r = en, { encodeValue: n = YA, encodeName: A =
|
|
3595
|
+
function zA(e, t, r = en, { encodeValue: n = YA, encodeName: A = EA } = {}) {
|
|
3596
3596
|
return document.cookie = `${A(e)}=${n(t, e)}${Wi(r)}`;
|
|
3597
3597
|
}
|
|
3598
3598
|
function kA(e, { decodeValue: t = $r, decodeName: r = _r } = {}) {
|
|
@@ -3637,13 +3637,13 @@ function zr(e, t) {
|
|
|
3637
3637
|
zr({ read: Nn.decodeValue, write: Nn.encodeValue }, en);
|
|
3638
3638
|
let jA;
|
|
3639
3639
|
typeof window < "u" && (jA = kA("token"));
|
|
3640
|
-
const
|
|
3640
|
+
const Re = wi.create({
|
|
3641
3641
|
headers: {
|
|
3642
3642
|
Authorization: jA
|
|
3643
3643
|
}
|
|
3644
3644
|
});
|
|
3645
3645
|
async function Pt(e, t, r, n, A, a, o, i) {
|
|
3646
|
-
return (await
|
|
3646
|
+
return (await Re.post(e + "/createPlayableVersionLink", {
|
|
3647
3647
|
_id: t,
|
|
3648
3648
|
nano: r,
|
|
3649
3649
|
network: n,
|
|
@@ -3666,7 +3666,7 @@ function JA(e) {
|
|
|
3666
3666
|
e[t] && (n && (n += " "), n += t);
|
|
3667
3667
|
return n;
|
|
3668
3668
|
}
|
|
3669
|
-
function
|
|
3669
|
+
function Xe() {
|
|
3670
3670
|
for (var e, t, r = 0, n = ""; r < arguments.length; )
|
|
3671
3671
|
(e = arguments[r++]) && (t = JA(e)) && (n && (n += " "), n += t);
|
|
3672
3672
|
return n;
|
|
@@ -3684,19 +3684,19 @@ function Si(e, t, r) {
|
|
|
3684
3684
|
function ir(e) {
|
|
3685
3685
|
let { enter: t, exit: r, appendPosition: n = !1, collapse: A = !0, collapseDuration: a = 300 } = e;
|
|
3686
3686
|
return function(o) {
|
|
3687
|
-
let { children: i, position: c, preventExitTransition: u, done: l, nodeRef: m, isIn:
|
|
3688
|
-
const f = n ? `${t}--${c}` : t, p = n ? `${r}--${c}` : r,
|
|
3687
|
+
let { children: i, position: c, preventExitTransition: u, done: l, nodeRef: m, isIn: v } = o;
|
|
3688
|
+
const f = n ? `${t}--${c}` : t, p = n ? `${r}--${c}` : r, g = _e(0);
|
|
3689
3689
|
return ya(() => {
|
|
3690
|
-
const C = m.current, I = f.split(" "),
|
|
3691
|
-
|
|
3690
|
+
const C = m.current, I = f.split(" "), E = (j) => {
|
|
3691
|
+
j.target === m.current && (C.dispatchEvent(new Event("d")), C.removeEventListener("animationend", E), C.removeEventListener("animationcancel", E), g.current === 0 && j.type !== "animationcancel" && C.classList.remove(...I));
|
|
3692
3692
|
};
|
|
3693
|
-
C.classList.add(...I), C.addEventListener("animationend",
|
|
3694
|
-
}, []),
|
|
3693
|
+
C.classList.add(...I), C.addEventListener("animationend", E), C.addEventListener("animationcancel", E);
|
|
3694
|
+
}, []), je(() => {
|
|
3695
3695
|
const C = m.current, I = () => {
|
|
3696
3696
|
C.removeEventListener("animationend", I), A ? Si(C, l, a) : l();
|
|
3697
3697
|
};
|
|
3698
|
-
|
|
3699
|
-
}, [
|
|
3698
|
+
v || (u ? I() : (g.current = 1, C.className += ` ${p}`, C.addEventListener("animationend", I)));
|
|
3699
|
+
}, [v]), re.createElement(re.Fragment, null, i);
|
|
3700
3700
|
};
|
|
3701
3701
|
}
|
|
3702
3702
|
function Dn(e, t) {
|
|
@@ -3722,84 +3722,84 @@ const We = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3722
3722
|
});
|
|
3723
3723
|
} }, kt = (e) => {
|
|
3724
3724
|
let { theme: t, type: r, ...n } = e;
|
|
3725
|
-
return
|
|
3725
|
+
return re.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${r})`, ...n });
|
|
3726
3726
|
}, wr = { info: function(e) {
|
|
3727
|
-
return
|
|
3727
|
+
return re.createElement(kt, { ...e }, re.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
3728
3728
|
}, warning: function(e) {
|
|
3729
|
-
return
|
|
3729
|
+
return re.createElement(kt, { ...e }, re.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
3730
3730
|
}, success: function(e) {
|
|
3731
|
-
return
|
|
3731
|
+
return re.createElement(kt, { ...e }, re.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
3732
3732
|
}, error: function(e) {
|
|
3733
|
-
return
|
|
3733
|
+
return re.createElement(kt, { ...e }, re.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
3734
3734
|
}, spinner: function() {
|
|
3735
|
-
return
|
|
3735
|
+
return re.createElement("div", { className: "Toastify__spinner" });
|
|
3736
3736
|
} };
|
|
3737
|
-
function
|
|
3738
|
-
const [, t] = ga((f) => f + 1, 0), [r, n] =
|
|
3737
|
+
function Li(e) {
|
|
3738
|
+
const [, t] = ga((f) => f + 1, 0), [r, n] = me([]), A = _e(null), a = _e(/* @__PURE__ */ new Map()).current, o = (f) => r.indexOf(f) !== -1, i = _e({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: o, getToast: (f) => a.get(f) }).current;
|
|
3739
3739
|
function c(f) {
|
|
3740
3740
|
let { containerId: p } = f;
|
|
3741
|
-
const { limit:
|
|
3742
|
-
!
|
|
3741
|
+
const { limit: g } = i.props;
|
|
3742
|
+
!g || p && i.containerId !== p || (i.count -= i.queue.length, i.queue = []);
|
|
3743
3743
|
}
|
|
3744
3744
|
function u(f) {
|
|
3745
|
-
n((p) => f == null ? [] : p.filter((
|
|
3745
|
+
n((p) => f == null ? [] : p.filter((g) => g !== f));
|
|
3746
3746
|
}
|
|
3747
3747
|
function l() {
|
|
3748
|
-
const { toastContent: f, toastProps: p, staleId:
|
|
3749
|
-
|
|
3748
|
+
const { toastContent: f, toastProps: p, staleId: g } = i.queue.shift();
|
|
3749
|
+
v(f, p, g);
|
|
3750
3750
|
}
|
|
3751
3751
|
function m(f, p) {
|
|
3752
|
-
let { delay:
|
|
3753
|
-
if (!Kr(f) || function(
|
|
3754
|
-
return !A.current || i.props.enableMultiContainer &&
|
|
3752
|
+
let { delay: g, staleId: C, ...I } = p;
|
|
3753
|
+
if (!Kr(f) || function(H) {
|
|
3754
|
+
return !A.current || i.props.enableMultiContainer && H.containerId !== i.props.containerId || a.has(H.toastId) && H.updateId == null;
|
|
3755
3755
|
}(I))
|
|
3756
3756
|
return;
|
|
3757
|
-
const { toastId:
|
|
3757
|
+
const { toastId: E, updateId: j, data: W } = I, { props: q } = i, ie = () => u(E), le = j == null;
|
|
3758
3758
|
le && i.count++;
|
|
3759
|
-
const
|
|
3760
|
-
let [
|
|
3761
|
-
return
|
|
3762
|
-
})), toastId:
|
|
3763
|
-
const
|
|
3764
|
-
a.delete(
|
|
3765
|
-
const
|
|
3766
|
-
if (i.count =
|
|
3767
|
-
const
|
|
3768
|
-
if (
|
|
3759
|
+
const x = { ...q, style: q.toastStyle, key: i.toastKey++, ...Object.fromEntries(Object.entries(I).filter((H) => {
|
|
3760
|
+
let [N, O] = H;
|
|
3761
|
+
return O != null;
|
|
3762
|
+
})), toastId: E, updateId: j, data: W, closeToast: ie, isIn: !1, className: Ht(I.className || q.toastClassName), bodyClassName: Ht(I.bodyClassName || q.bodyClassName), progressClassName: Ht(I.progressClassName || q.progressClassName), autoClose: !I.isLoading && (Q = I.autoClose, ae = q.autoClose, Q === !1 || bt(Q) && Q > 0 ? Q : ae), deleteToast() {
|
|
3763
|
+
const H = Dn(a.get(E), "removed");
|
|
3764
|
+
a.delete(E), We.emit(4, H);
|
|
3765
|
+
const N = i.queue.length;
|
|
3766
|
+
if (i.count = E == null ? i.count - i.displayedToast : i.count - 1, i.count < 0 && (i.count = 0), N > 0) {
|
|
3767
|
+
const O = E == null ? i.props.limit : 1;
|
|
3768
|
+
if (N === 1 || O === 1)
|
|
3769
3769
|
i.displayedToast++, l();
|
|
3770
3770
|
else {
|
|
3771
|
-
const
|
|
3772
|
-
i.displayedToast =
|
|
3773
|
-
for (let
|
|
3771
|
+
const L = O > N ? N : O;
|
|
3772
|
+
i.displayedToast = L;
|
|
3773
|
+
for (let k = 0; k < L; k++)
|
|
3774
3774
|
l();
|
|
3775
3775
|
}
|
|
3776
3776
|
} else
|
|
3777
3777
|
t();
|
|
3778
3778
|
} };
|
|
3779
|
-
var
|
|
3780
|
-
|
|
3781
|
-
let { theme:
|
|
3782
|
-
const
|
|
3783
|
-
return
|
|
3784
|
-
}(
|
|
3785
|
-
let
|
|
3786
|
-
lt(f) && !rt(f.type) ?
|
|
3787
|
-
|
|
3788
|
-
},
|
|
3789
|
-
}
|
|
3790
|
-
function
|
|
3779
|
+
var Q, ae;
|
|
3780
|
+
x.iconOut = function(H) {
|
|
3781
|
+
let { theme: N, type: O, isLoading: L, icon: k } = H, d = null;
|
|
3782
|
+
const w = { theme: N, type: O };
|
|
3783
|
+
return k === !1 || (ye(k) ? d = k(w) : lt(k) ? d = Or(k, w) : rt(k) || bt(k) ? d = k : L ? d = wr.spinner() : ((_) => _ in wr)(O) && (d = wr[O](w))), d;
|
|
3784
|
+
}(x), ye(I.onOpen) && (x.onOpen = I.onOpen), ye(I.onClose) && (x.onClose = I.onClose), x.closeButton = q.closeButton, I.closeButton === !1 || Kr(I.closeButton) ? x.closeButton = I.closeButton : I.closeButton === !0 && (x.closeButton = !Kr(q.closeButton) || q.closeButton);
|
|
3785
|
+
let P = f;
|
|
3786
|
+
lt(f) && !rt(f.type) ? P = Or(f, { closeToast: ie, toastProps: x, data: W }) : ye(f) && (P = f({ closeToast: ie, toastProps: x, data: W })), q.limit && q.limit > 0 && i.count > q.limit && le ? i.queue.push({ toastContent: P, toastProps: x, staleId: C }) : bt(g) ? setTimeout(() => {
|
|
3787
|
+
v(P, x, C);
|
|
3788
|
+
}, g) : v(P, x, C);
|
|
3789
|
+
}
|
|
3790
|
+
function v(f, p, g) {
|
|
3791
3791
|
const { toastId: C } = p;
|
|
3792
|
-
|
|
3792
|
+
g && a.delete(g);
|
|
3793
3793
|
const I = { content: f, props: p };
|
|
3794
|
-
a.set(C, I), n((
|
|
3794
|
+
a.set(C, I), n((E) => [...E, C].filter((j) => j !== g)), We.emit(4, Dn(I, I.props.updateId == null ? "added" : "updated"));
|
|
3795
3795
|
}
|
|
3796
|
-
return
|
|
3796
|
+
return je(() => (i.containerId = e.containerId, We.cancelEmit(3).on(0, m).on(1, (f) => A.current && u(f)).on(5, c).emit(2, i), () => {
|
|
3797
3797
|
a.clear(), We.emit(3, i);
|
|
3798
|
-
}), []),
|
|
3798
|
+
}), []), je(() => {
|
|
3799
3799
|
i.props = e, i.isToastActive = o, i.displayedToast = r.length;
|
|
3800
3800
|
}), { getToastToRender: function(f) {
|
|
3801
|
-
const p = /* @__PURE__ */ new Map(),
|
|
3802
|
-
return e.newestOnTop &&
|
|
3801
|
+
const p = /* @__PURE__ */ new Map(), g = Array.from(a.values());
|
|
3802
|
+
return e.newestOnTop && g.reverse(), g.forEach((C) => {
|
|
3803
3803
|
const { position: I } = C.props;
|
|
3804
3804
|
p.has(I) || p.set(I, []), p.get(I).push(C);
|
|
3805
3805
|
}), Array.from(p, (C) => f(C[0], C[1]));
|
|
@@ -3811,72 +3811,72 @@ function Gn(e) {
|
|
|
3811
3811
|
function Rn(e) {
|
|
3812
3812
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3815
|
-
const [t, r] =
|
|
3816
|
-
function f(
|
|
3814
|
+
function Ei(e) {
|
|
3815
|
+
const [t, r] = me(!1), [n, A] = me(!1), a = _e(null), o = _e({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, i = _e(e), { autoClose: c, pauseOnHover: u, closeToast: l, onClick: m, closeOnClick: v } = e;
|
|
3816
|
+
function f(W) {
|
|
3817
3817
|
if (e.draggable) {
|
|
3818
|
-
|
|
3818
|
+
W.nativeEvent.type === "touchstart" && W.nativeEvent.preventDefault(), o.didMove = !1, document.addEventListener("mousemove", I), document.addEventListener("mouseup", E), document.addEventListener("touchmove", I), document.addEventListener("touchend", E);
|
|
3819
3819
|
const q = a.current;
|
|
3820
|
-
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect = q.getBoundingClientRect(), q.style.transition = "", o.x = Gn(
|
|
3820
|
+
o.canCloseOnClick = !0, o.canDrag = !0, o.boundingRect = q.getBoundingClientRect(), q.style.transition = "", o.x = Gn(W.nativeEvent), o.y = Rn(W.nativeEvent), e.draggableDirection === "x" ? (o.start = o.x, o.removalDistance = q.offsetWidth * (e.draggablePercent / 100)) : (o.start = o.y, o.removalDistance = q.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
|
|
3821
3821
|
}
|
|
3822
3822
|
}
|
|
3823
|
-
function p(
|
|
3823
|
+
function p(W) {
|
|
3824
3824
|
if (o.boundingRect) {
|
|
3825
|
-
const { top: q, bottom: ie, left: le, right:
|
|
3826
|
-
|
|
3825
|
+
const { top: q, bottom: ie, left: le, right: x } = o.boundingRect;
|
|
3826
|
+
W.nativeEvent.type !== "touchend" && e.pauseOnHover && o.x >= le && o.x <= x && o.y >= q && o.y <= ie ? C() : g();
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3829
|
+
function g() {
|
|
3830
3830
|
r(!0);
|
|
3831
3831
|
}
|
|
3832
3832
|
function C() {
|
|
3833
3833
|
r(!1);
|
|
3834
3834
|
}
|
|
3835
|
-
function I(
|
|
3835
|
+
function I(W) {
|
|
3836
3836
|
const q = a.current;
|
|
3837
|
-
o.canDrag && q && (o.didMove = !0, t && C(), o.x = Gn(
|
|
3837
|
+
o.canDrag && q && (o.didMove = !0, t && C(), o.x = Gn(W), o.y = Rn(W), o.delta = e.draggableDirection === "x" ? o.x - o.start : o.y - o.start, o.start !== o.x && (o.canCloseOnClick = !1), q.style.transform = `translate${e.draggableDirection}(${o.delta}px)`, q.style.opacity = "" + (1 - Math.abs(o.delta / o.removalDistance)));
|
|
3838
3838
|
}
|
|
3839
|
-
function
|
|
3840
|
-
document.removeEventListener("mousemove", I), document.removeEventListener("mouseup",
|
|
3841
|
-
const
|
|
3842
|
-
if (o.canDrag && o.didMove &&
|
|
3839
|
+
function E() {
|
|
3840
|
+
document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", E), document.removeEventListener("touchmove", I), document.removeEventListener("touchend", E);
|
|
3841
|
+
const W = a.current;
|
|
3842
|
+
if (o.canDrag && o.didMove && W) {
|
|
3843
3843
|
if (o.canDrag = !1, Math.abs(o.delta) > o.removalDistance)
|
|
3844
3844
|
return A(!0), void e.closeToast();
|
|
3845
|
-
|
|
3845
|
+
W.style.transition = "transform 0.2s, opacity 0.2s", W.style.transform = `translate${e.draggableDirection}(0)`, W.style.opacity = "1";
|
|
3846
3846
|
}
|
|
3847
3847
|
}
|
|
3848
|
-
|
|
3848
|
+
je(() => {
|
|
3849
3849
|
i.current = e;
|
|
3850
|
-
}),
|
|
3851
|
-
const
|
|
3852
|
-
ye(
|
|
3853
|
-
}), []),
|
|
3854
|
-
e.pauseOnFocusLoss && (window.removeEventListener("focus",
|
|
3850
|
+
}), je(() => (a.current && a.current.addEventListener("d", g, { once: !0 }), ye(e.onOpen) && e.onOpen(lt(e.children) && e.children.props), () => {
|
|
3851
|
+
const W = i.current;
|
|
3852
|
+
ye(W.onClose) && W.onClose(lt(W.children) && W.children.props);
|
|
3853
|
+
}), []), je(() => (e.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener("focus", g), window.addEventListener("blur", C)), () => {
|
|
3854
|
+
e.pauseOnFocusLoss && (window.removeEventListener("focus", g), window.removeEventListener("blur", C));
|
|
3855
3855
|
}), [e.pauseOnFocusLoss]);
|
|
3856
|
-
const
|
|
3857
|
-
return c && u && (
|
|
3858
|
-
m && m(
|
|
3859
|
-
}), { playToast:
|
|
3856
|
+
const j = { onMouseDown: f, onTouchStart: f, onMouseUp: p, onTouchEnd: p };
|
|
3857
|
+
return c && u && (j.onMouseEnter = C, j.onMouseLeave = g), v && (j.onClick = (W) => {
|
|
3858
|
+
m && m(W), o.canCloseOnClick && l();
|
|
3859
|
+
}), { playToast: g, pauseToast: C, isRunning: t, preventExitTransition: n, toastRef: a, eventHandlers: j };
|
|
3860
3860
|
}
|
|
3861
3861
|
function NA(e) {
|
|
3862
3862
|
let { closeToast: t, theme: r, ariaLabel: n = "close" } = e;
|
|
3863
|
-
return
|
|
3863
|
+
return re.createElement("button", { className: `Toastify__close-button Toastify__close-button--${r}`, type: "button", onClick: (A) => {
|
|
3864
3864
|
A.stopPropagation(), t(A);
|
|
3865
|
-
}, "aria-label": n },
|
|
3865
|
+
}, "aria-label": n }, re.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, re.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" })));
|
|
3866
3866
|
}
|
|
3867
3867
|
function Yi(e) {
|
|
3868
|
-
let { delay: t, isRunning: r, closeToast: n, type: A = "default", hide: a, className: o, style: i, controlledProgress: c, progress: u, rtl: l, isIn: m, theme:
|
|
3868
|
+
let { delay: t, isRunning: r, closeToast: n, type: A = "default", hide: a, className: o, style: i, controlledProgress: c, progress: u, rtl: l, isIn: m, theme: v } = e;
|
|
3869
3869
|
const f = a || c && u === 0, p = { ...i, animationDuration: `${t}ms`, animationPlayState: r ? "running" : "paused", opacity: f ? 0 : 1 };
|
|
3870
3870
|
c && (p.transform = `scaleX(${u})`);
|
|
3871
|
-
const
|
|
3872
|
-
return
|
|
3871
|
+
const g = Xe("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${v}`, `Toastify__progress-bar--${A}`, { "Toastify__progress-bar--rtl": l }), C = ye(o) ? o({ rtl: l, type: A, defaultClassName: g }) : Xe(g, o);
|
|
3872
|
+
return re.createElement("div", { role: "progressbar", "aria-hidden": f ? "true" : "false", "aria-label": "notification timer", className: C, style: p, [c && u >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && u < 1 ? null : () => {
|
|
3873
3873
|
m && n();
|
|
3874
3874
|
} });
|
|
3875
3875
|
}
|
|
3876
3876
|
const xi = (e) => {
|
|
3877
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: A } =
|
|
3878
|
-
let
|
|
3879
|
-
return a === !1 || (
|
|
3877
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: A } = Ei(e), { closeButton: a, children: o, autoClose: i, onClick: c, type: u, hideProgressBar: l, closeToast: m, transition: v, position: f, className: p, style: g, bodyClassName: C, bodyStyle: I, progressClassName: E, progressStyle: j, updateId: W, role: q, progress: ie, rtl: le, toastId: x, deleteToast: Q, isIn: ae, isLoading: P, iconOut: H, closeOnClick: N, theme: O } = e, L = Xe("Toastify__toast", `Toastify__toast-theme--${O}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": le }, { "Toastify__toast--close-on-click": N }), k = ye(p) ? p({ rtl: le, position: f, type: u, defaultClassName: L }) : Xe(L, p), d = !!ie || !i, w = { closeToast: m, type: u, theme: O };
|
|
3878
|
+
let _ = null;
|
|
3879
|
+
return a === !1 || (_ = ye(a) ? a(w) : lt(a) ? Or(a, w) : NA(w)), re.createElement(v, { isIn: ae, done: Q, position: f, preventExitTransition: r, nodeRef: n }, re.createElement("div", { id: x, onClick: c, className: k, ...A, style: g, ref: n }, re.createElement("div", { ...ae && { role: q }, className: ye(C) ? C({ type: u }) : Xe("Toastify__toast-body", C), style: I }, H != null && re.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !P }) }, H), re.createElement("div", null, o)), _, re.createElement(Yi, { ...W && !d ? { key: `pb-${W}` } : {}, rtl: le, theme: O, delay: i, isRunning: t, isIn: ae, closeToast: m, hide: l, type: u, style: j, className: E, controlledProgress: d, progress: ie || 0 })));
|
|
3880
3880
|
}, sr = function(e, t) {
|
|
3881
3881
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3882
3882
|
}, zi = ir(sr("bounce", !0));
|
|
@@ -3884,18 +3884,18 @@ ir(sr("slide", !0));
|
|
|
3884
3884
|
ir(sr("zoom"));
|
|
3885
3885
|
ir(sr("flip"));
|
|
3886
3886
|
const kr = va((e, t) => {
|
|
3887
|
-
const { getToastToRender: r, containerRef: n, isToastActive: A } =
|
|
3887
|
+
const { getToastToRender: r, containerRef: n, isToastActive: A } = Li(e), { className: a, style: o, rtl: i, containerId: c } = e;
|
|
3888
3888
|
function u(l) {
|
|
3889
|
-
const m =
|
|
3890
|
-
return ye(a) ? a({ position: l, rtl: i, defaultClassName: m }) :
|
|
3889
|
+
const m = Xe("Toastify__toast-container", `Toastify__toast-container--${l}`, { "Toastify__toast-container--rtl": i });
|
|
3890
|
+
return ye(a) ? a({ position: l, rtl: i, defaultClassName: m }) : Xe(m, Ht(a));
|
|
3891
3891
|
}
|
|
3892
|
-
return
|
|
3892
|
+
return je(() => {
|
|
3893
3893
|
t && (t.current = n.current);
|
|
3894
|
-
}, []),
|
|
3895
|
-
const
|
|
3896
|
-
return
|
|
3897
|
-
let { content:
|
|
3898
|
-
return
|
|
3894
|
+
}, []), re.createElement("div", { ref: n, className: "Toastify", id: c }, r((l, m) => {
|
|
3895
|
+
const v = m.length ? { ...o } : { ...o, pointerEvents: "none" };
|
|
3896
|
+
return re.createElement("div", { className: u(l), style: v, key: `container-${l}` }, m.map((f, p) => {
|
|
3897
|
+
let { content: g, props: C } = f;
|
|
3898
|
+
return re.createElement(xi, { ...C, isIn: A(C.toastId), style: { ...C.style, "--nth": p + 1, "--len": m.length }, key: `toast-${C.key}` }, g);
|
|
3899
3899
|
}));
|
|
3900
3900
|
}));
|
|
3901
3901
|
});
|
|
@@ -3922,11 +3922,11 @@ function ue(e, t) {
|
|
|
3922
3922
|
ue.loading = (e, t) => Zt(e, Vt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), ue.promise = function(e, t, r) {
|
|
3923
3923
|
let n, { pending: A, error: a, success: o } = t;
|
|
3924
3924
|
A && (n = rt(A) ? ue.loading(A, r) : ue.loading(A.render, { ...r, ...A }));
|
|
3925
|
-
const i = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (l, m,
|
|
3925
|
+
const i = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (l, m, v) => {
|
|
3926
3926
|
if (m == null)
|
|
3927
3927
|
return void ue.dismiss(n);
|
|
3928
|
-
const f = { type: l, ...i, ...r, data:
|
|
3929
|
-
return n ? ue.update(n, { ...f, ...p }) : ue(p.render, { ...f, ...p }),
|
|
3928
|
+
const f = { type: l, ...i, ...r, data: v }, p = rt(m) ? { render: m } : m;
|
|
3929
|
+
return n ? ue.update(n, { ...f, ...p }) : ue(p.render, { ...f, ...p }), v;
|
|
3930
3930
|
}, u = ye(e) ? e() : e;
|
|
3931
3931
|
return u.then((l) => c("success", o, l)).catch((l) => c("error", a, l)), u;
|
|
3932
3932
|
}, ue.success = jt("success"), ue.info = jt("info"), ue.error = jt("error"), ue.warning = jt("warning"), ue.warn = ue.warning, ue.dark = (e, t) => Zt(e, Vt("default", { theme: "dark", ...t })), ue.dismiss = (e) => {
|
|
@@ -4083,27 +4083,159 @@ const Di = ({ typeOfProduct: e }) => /* @__PURE__ */ y.jsxs("div", { className:
|
|
|
4083
4083
|
),
|
|
4084
4084
|
/* @__PURE__ */ y.jsx("span", { className: "whitespace-pre", children: " From List" })
|
|
4085
4085
|
] }), Gi = ({ typeOfProduct: e, fileSize: t, urls: r }) => /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
4086
|
-
t && /* @__PURE__ */ y.jsxs(
|
|
4087
|
-
"
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4086
|
+
t && /* @__PURE__ */ y.jsxs(
|
|
4087
|
+
"span",
|
|
4088
|
+
{
|
|
4089
|
+
style: {
|
|
4090
|
+
marginTop: "1rem",
|
|
4091
|
+
// mt-4
|
|
4092
|
+
fontSize: "16px",
|
|
4093
|
+
// text-md
|
|
4094
|
+
fontWeight: "bold"
|
|
4095
|
+
// font-bold
|
|
4096
|
+
},
|
|
4097
|
+
children: [
|
|
4098
|
+
"File size: ",
|
|
4099
|
+
parseFloat(t).toFixed(2),
|
|
4100
|
+
" mb"
|
|
4101
|
+
]
|
|
4102
|
+
}
|
|
4103
|
+
),
|
|
4104
|
+
/* @__PURE__ */ y.jsxs(
|
|
4105
|
+
"div",
|
|
4106
|
+
{
|
|
4107
|
+
style: {
|
|
4108
|
+
marginTop: "0.5rem",
|
|
4109
|
+
display: "flex",
|
|
4110
|
+
width: "100%",
|
|
4111
|
+
flexDirection: "column"
|
|
4112
|
+
},
|
|
4113
|
+
children: [
|
|
4114
|
+
/* @__PURE__ */ y.jsxs(
|
|
4115
|
+
"div",
|
|
4116
|
+
{
|
|
4117
|
+
style: {
|
|
4118
|
+
display: "flex",
|
|
4119
|
+
height: "2rem",
|
|
4120
|
+
// h-8
|
|
4121
|
+
width: "100%",
|
|
4122
|
+
// w-full
|
|
4123
|
+
alignItems: "center",
|
|
4124
|
+
// items-center
|
|
4125
|
+
fontSize: "12px",
|
|
4126
|
+
// text-[12px]
|
|
4127
|
+
fontWeight: "200"
|
|
4128
|
+
// font-thin
|
|
4129
|
+
},
|
|
4130
|
+
children: [
|
|
4131
|
+
/* @__PURE__ */ y.jsx(
|
|
4132
|
+
"span",
|
|
4133
|
+
{
|
|
4134
|
+
style: {
|
|
4135
|
+
width: "5rem",
|
|
4136
|
+
// w-20
|
|
4137
|
+
fontWeight: "bold"
|
|
4138
|
+
// font-bold
|
|
4139
|
+
},
|
|
4140
|
+
children: "App Store:"
|
|
4141
|
+
}
|
|
4142
|
+
),
|
|
4143
|
+
/* @__PURE__ */ y.jsx(
|
|
4144
|
+
"div",
|
|
4145
|
+
{
|
|
4146
|
+
style: {
|
|
4147
|
+
marginLeft: "1.25rem",
|
|
4148
|
+
// ml-5
|
|
4149
|
+
display: "flex",
|
|
4150
|
+
// flex
|
|
4151
|
+
height: "100%",
|
|
4152
|
+
// h-full
|
|
4153
|
+
width: "70%",
|
|
4154
|
+
// w-1/2
|
|
4155
|
+
alignItems: "center",
|
|
4156
|
+
// items-center
|
|
4157
|
+
borderRadius: "0.375rem",
|
|
4158
|
+
// rounded-md
|
|
4159
|
+
border: "1px solid lightgray",
|
|
4160
|
+
// border border-dark-20
|
|
4161
|
+
paddingLeft: "0.5rem",
|
|
4162
|
+
// pl-2
|
|
4163
|
+
color: "#000000"
|
|
4164
|
+
// placeholder:text-black
|
|
4165
|
+
},
|
|
4166
|
+
children: r.iosUrl
|
|
4167
|
+
}
|
|
4168
|
+
)
|
|
4169
|
+
]
|
|
4170
|
+
}
|
|
4171
|
+
),
|
|
4172
|
+
/* @__PURE__ */ y.jsxs(
|
|
4173
|
+
"div",
|
|
4174
|
+
{
|
|
4175
|
+
style: {
|
|
4176
|
+
marginTop: "0.5rem",
|
|
4177
|
+
// mt-2
|
|
4178
|
+
display: "flex",
|
|
4179
|
+
// flex
|
|
4180
|
+
height: "2rem",
|
|
4181
|
+
// h-8
|
|
4182
|
+
width: "100%",
|
|
4183
|
+
// w-full
|
|
4184
|
+
alignItems: "center",
|
|
4185
|
+
// items-center
|
|
4186
|
+
fontSize: "12px",
|
|
4187
|
+
// text-[12px]
|
|
4188
|
+
fontWeight: "100"
|
|
4189
|
+
// font-thin
|
|
4190
|
+
},
|
|
4191
|
+
children: [
|
|
4192
|
+
/* @__PURE__ */ y.jsxs(
|
|
4193
|
+
"span",
|
|
4194
|
+
{
|
|
4195
|
+
style: {
|
|
4196
|
+
width: "5rem",
|
|
4197
|
+
// w-20
|
|
4198
|
+
fontWeight: "bold"
|
|
4199
|
+
// font-bold
|
|
4200
|
+
},
|
|
4201
|
+
children: [
|
|
4202
|
+
"Google Play:",
|
|
4203
|
+
" "
|
|
4204
|
+
]
|
|
4205
|
+
}
|
|
4206
|
+
),
|
|
4207
|
+
/* @__PURE__ */ y.jsx(
|
|
4208
|
+
"div",
|
|
4209
|
+
{
|
|
4210
|
+
style: {
|
|
4211
|
+
marginLeft: "1.25rem",
|
|
4212
|
+
// ml-5
|
|
4213
|
+
display: "flex",
|
|
4214
|
+
// flex
|
|
4215
|
+
height: "100%",
|
|
4216
|
+
// h-full
|
|
4217
|
+
width: "70%",
|
|
4218
|
+
// w-1/2
|
|
4219
|
+
alignItems: "center",
|
|
4220
|
+
// items-center
|
|
4221
|
+
borderRadius: "0.375rem",
|
|
4222
|
+
// rounded-md
|
|
4223
|
+
border: "1px solid lightgray",
|
|
4224
|
+
// border border-dark-20
|
|
4225
|
+
paddingLeft: "0.5rem",
|
|
4226
|
+
// pl-2
|
|
4227
|
+
color: "#000000"
|
|
4228
|
+
// placeholder:text-black
|
|
4229
|
+
},
|
|
4230
|
+
children: r.googleUrl
|
|
4231
|
+
}
|
|
4232
|
+
)
|
|
4233
|
+
]
|
|
4234
|
+
}
|
|
4235
|
+
)
|
|
4236
|
+
]
|
|
4237
|
+
}
|
|
4238
|
+
)
|
|
4107
4239
|
] }), Ri = ({ typeOfProduct: e, title: t }) => /* @__PURE__ */ y.jsx("div", { className: "text-2xl font-bold", children: /* @__PURE__ */ y.jsx(
|
|
4108
4240
|
"span",
|
|
4109
4241
|
{
|
|
@@ -4192,59 +4324,97 @@ const Di = ({ typeOfProduct: e }) => /* @__PURE__ */ y.jsxs("div", { className:
|
|
|
4192
4324
|
disabled: n,
|
|
4193
4325
|
children: e
|
|
4194
4326
|
}
|
|
4195
|
-
), Hi = ({ checked: e, typeOfProduct: t, id: r }) =>
|
|
4196
|
-
|
|
4197
|
-
{
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
"
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4327
|
+
), Hi = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4328
|
+
const [n, A] = me(e);
|
|
4329
|
+
je(() => {
|
|
4330
|
+
A(e);
|
|
4331
|
+
}, [e]);
|
|
4332
|
+
const a = () => {
|
|
4333
|
+
A(!n);
|
|
4334
|
+
};
|
|
4335
|
+
return /* @__PURE__ */ y.jsx(
|
|
4336
|
+
"div",
|
|
4337
|
+
{
|
|
4338
|
+
style: {
|
|
4339
|
+
display: "inline-flex",
|
|
4340
|
+
alignItems: "center"
|
|
4341
|
+
},
|
|
4342
|
+
children: /* @__PURE__ */ y.jsxs(
|
|
4343
|
+
"label",
|
|
4344
|
+
{
|
|
4345
|
+
onClick: a,
|
|
4346
|
+
style: {
|
|
4347
|
+
position: "relative",
|
|
4348
|
+
display: "flex",
|
|
4349
|
+
cursor: "pointer",
|
|
4350
|
+
alignItems: "center"
|
|
4351
|
+
},
|
|
4352
|
+
htmlFor: r,
|
|
4353
|
+
children: [
|
|
4354
|
+
/* @__PURE__ */ y.jsx(
|
|
4355
|
+
"input",
|
|
4356
|
+
{
|
|
4357
|
+
type: "checkbox",
|
|
4358
|
+
style: {
|
|
4359
|
+
position: "relative",
|
|
4360
|
+
height: "20px",
|
|
4361
|
+
width: "20px",
|
|
4362
|
+
cursor: "pointer",
|
|
4363
|
+
appearance: "none",
|
|
4364
|
+
borderRadius: "0.25rem",
|
|
4365
|
+
transition: "all ease-in-out",
|
|
4366
|
+
border: "1px solid lightgray",
|
|
4367
|
+
opacity: 1
|
|
4368
|
+
// Set opacity to 1 to make it visible
|
|
4369
|
+
},
|
|
4370
|
+
id: r,
|
|
4371
|
+
checked: n,
|
|
4372
|
+
onChange: a
|
|
4373
|
+
}
|
|
4374
|
+
),
|
|
4375
|
+
/* @__PURE__ */ y.jsxs(
|
|
4376
|
+
"div",
|
|
4377
|
+
{
|
|
4378
|
+
style: {
|
|
4379
|
+
pointerEvents: "none",
|
|
4380
|
+
position: "absolute",
|
|
4381
|
+
top: "50%",
|
|
4382
|
+
left: "50%",
|
|
4383
|
+
transform: "translate(-50%, -50%)",
|
|
4384
|
+
color: "white",
|
|
4385
|
+
opacity: n ? 1 : 0,
|
|
4386
|
+
transition: "opacity ease-in-out"
|
|
4387
|
+
},
|
|
4388
|
+
children: [
|
|
4389
|
+
/* @__PURE__ */ y.jsx(
|
|
4390
|
+
"svg",
|
|
4391
|
+
{
|
|
4392
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4393
|
+
className: "h-3.5 w-3.5",
|
|
4394
|
+
viewBox: "0 0 20 20",
|
|
4395
|
+
fill: "#F9830B",
|
|
4396
|
+
stroke: "#F9830B",
|
|
4397
|
+
"stroke-width": "1",
|
|
4398
|
+
children: /* @__PURE__ */ y.jsx(
|
|
4399
|
+
"path",
|
|
4400
|
+
{
|
|
4401
|
+
"fill-rule": "evenodd",
|
|
4402
|
+
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
4403
|
+
"clip-rule": "evenodd"
|
|
4404
|
+
}
|
|
4405
|
+
)
|
|
4406
|
+
}
|
|
4407
|
+
),
|
|
4408
|
+
" "
|
|
4409
|
+
]
|
|
4410
|
+
}
|
|
4411
|
+
)
|
|
4412
|
+
]
|
|
4413
|
+
}
|
|
4414
|
+
)
|
|
4415
|
+
}
|
|
4416
|
+
);
|
|
4417
|
+
};
|
|
4248
4418
|
const RA = ({ typeOfProduct: e }) => /* @__PURE__ */ y.jsx("div", { className: "bg-transparent flex items-center flex-col", children: /* @__PURE__ */ y.jsxs("div", { className: "loader-dots block relative w-16 h-4 mt-2", children: [
|
|
4249
4419
|
/* @__PURE__ */ y.jsx(
|
|
4250
4420
|
"div",
|
|
@@ -4320,7 +4490,7 @@ const RA = ({ typeOfProduct: e }) => /* @__PURE__ */ y.jsx("div", { className: "
|
|
|
4320
4490
|
}
|
|
4321
4491
|
);
|
|
4322
4492
|
async function jr(e, t) {
|
|
4323
|
-
return e.network == "fb" && (e.zip = 1), (await
|
|
4493
|
+
return e.network == "fb" && (e.zip = 1), (await Re.post(t + "/createFlexVersionLink", e || {})).data;
|
|
4324
4494
|
}
|
|
4325
4495
|
const Hn = [
|
|
4326
4496
|
"adcolony",
|
|
@@ -4346,48 +4516,48 @@ const Hn = [
|
|
|
4346
4516
|
versionId: u,
|
|
4347
4517
|
api: l,
|
|
4348
4518
|
handleDownloadError: m,
|
|
4349
|
-
fetchFileUrl:
|
|
4519
|
+
fetchFileUrl: v
|
|
4350
4520
|
}) => {
|
|
4351
|
-
const [f, p] =
|
|
4521
|
+
const [f, p] = me(!1), [g, C] = me(Bt(5)), I = () => {
|
|
4352
4522
|
r(e);
|
|
4353
|
-
},
|
|
4523
|
+
}, E = async (W, q, ie, le, x, Q) => {
|
|
4354
4524
|
try {
|
|
4355
4525
|
if (p(!0), c === "Flex") {
|
|
4356
|
-
console.log(ie), console.log(
|
|
4526
|
+
console.log(ie), console.log(x);
|
|
4357
4527
|
const ae = await jr(
|
|
4358
4528
|
{
|
|
4359
|
-
_id:
|
|
4529
|
+
_id: W,
|
|
4360
4530
|
network: q
|
|
4361
4531
|
},
|
|
4362
4532
|
l
|
|
4363
4533
|
);
|
|
4364
|
-
let { url:
|
|
4365
|
-
if (!
|
|
4534
|
+
let { url: P } = ae;
|
|
4535
|
+
if (!P) {
|
|
4366
4536
|
p(!1), m(ae.message);
|
|
4367
4537
|
return;
|
|
4368
4538
|
}
|
|
4369
|
-
let
|
|
4370
|
-
(
|
|
4539
|
+
let H, N = await fetch(v + "/" + P).then(
|
|
4540
|
+
(O) => O.text()
|
|
4371
4541
|
);
|
|
4372
|
-
return
|
|
4542
|
+
return H = document.createElement("a"), H.setAttribute(
|
|
4373
4543
|
"href",
|
|
4374
|
-
"data:html/plain;charset=utf-8," + encodeURIComponent(
|
|
4375
|
-
),
|
|
4544
|
+
"data:html/plain;charset=utf-8," + encodeURIComponent(N)
|
|
4545
|
+
), H.setAttribute(
|
|
4376
4546
|
"download",
|
|
4377
|
-
|
|
4378
|
-
),
|
|
4547
|
+
P.split("/").reduce((O, L) => L, "")
|
|
4548
|
+
), H.style.display = "none", document.body.appendChild(H), H.click(), p(!1), P;
|
|
4379
4549
|
} else {
|
|
4380
4550
|
const ae = Hn.includes(q) ? 1 : 0;
|
|
4381
4551
|
Pt(
|
|
4382
4552
|
l,
|
|
4383
|
-
|
|
4384
|
-
|
|
4553
|
+
W,
|
|
4554
|
+
g,
|
|
4385
4555
|
q,
|
|
4386
|
-
|
|
4556
|
+
Q,
|
|
4387
4557
|
ae,
|
|
4388
4558
|
{}
|
|
4389
|
-
).then(async (
|
|
4390
|
-
let { url:
|
|
4559
|
+
).then(async (P) => {
|
|
4560
|
+
let { url: H } = P, N;
|
|
4391
4561
|
if ([
|
|
4392
4562
|
"google",
|
|
4393
4563
|
"toutiao",
|
|
@@ -4405,29 +4575,29 @@ const Hn = [
|
|
|
4405
4575
|
"voodoo_notion",
|
|
4406
4576
|
"snapchat",
|
|
4407
4577
|
"inmobi"
|
|
4408
|
-
].includes(q) || (q === "fb" || q === "luna") &&
|
|
4409
|
-
|
|
4578
|
+
].includes(q) || (q === "fb" || q === "luna") && Q)
|
|
4579
|
+
N = document.createElement("iframe"), N.setAttribute("src", "/files/" + H), N.style.display = "none", document.body.appendChild(N), N.click();
|
|
4410
4580
|
else if (le) {
|
|
4411
|
-
let
|
|
4412
|
-
(
|
|
4581
|
+
let O = await fetch(v + "/" + H).then(
|
|
4582
|
+
(L) => L.text()
|
|
4413
4583
|
);
|
|
4414
|
-
|
|
4584
|
+
N = document.createElement("a"), N.setAttribute(
|
|
4415
4585
|
"href",
|
|
4416
|
-
"data:html/plain;charset=utf-8," + encodeURIComponent(
|
|
4417
|
-
),
|
|
4586
|
+
"data:html/plain;charset=utf-8," + encodeURIComponent(O)
|
|
4587
|
+
), N.setAttribute(
|
|
4418
4588
|
"download",
|
|
4419
|
-
|
|
4420
|
-
),
|
|
4589
|
+
H.split("/").reduce((L, k) => k, "")
|
|
4590
|
+
), N.style.display = "none", document.body.appendChild(N), N.click();
|
|
4421
4591
|
}
|
|
4422
|
-
return p(!1), ut("Download successfully"),
|
|
4423
|
-
}).catch((
|
|
4424
|
-
m(
|
|
4592
|
+
return p(!1), ut("Download successfully"), H;
|
|
4593
|
+
}).catch((P) => {
|
|
4594
|
+
m(P.message);
|
|
4425
4595
|
});
|
|
4426
4596
|
}
|
|
4427
4597
|
} catch (ae) {
|
|
4428
4598
|
m(ae.message);
|
|
4429
4599
|
}
|
|
4430
|
-
},
|
|
4600
|
+
}, j = async () => {
|
|
4431
4601
|
if (c === "Playable") {
|
|
4432
4602
|
const q = await Pt(
|
|
4433
4603
|
l,
|
|
@@ -4438,13 +4608,13 @@ const Hn = [
|
|
|
4438
4608
|
1,
|
|
4439
4609
|
`var type = ${A}`
|
|
4440
4610
|
);
|
|
4441
|
-
return navigator.clipboard.writeText(`${
|
|
4611
|
+
return navigator.clipboard.writeText(`${v}/${q == null ? void 0 : q.url}`), ut("Link Coppied"), q == null ? void 0 : q.url;
|
|
4442
4612
|
}
|
|
4443
|
-
const
|
|
4613
|
+
const W = await jr(
|
|
4444
4614
|
{ _id: u, network: A },
|
|
4445
4615
|
l
|
|
4446
4616
|
);
|
|
4447
|
-
return navigator.clipboard.writeText(`${
|
|
4617
|
+
return navigator.clipboard.writeText(`${v}/${W == null ? void 0 : W.url}`), ut("Link Coppied"), W == null ? void 0 : W.url;
|
|
4448
4618
|
};
|
|
4449
4619
|
return /* @__PURE__ */ y.jsx(y.Fragment, { children: /* @__PURE__ */ y.jsxs(
|
|
4450
4620
|
"div",
|
|
@@ -4496,7 +4666,7 @@ const Hn = [
|
|
|
4496
4666
|
}
|
|
4497
4667
|
}
|
|
4498
4668
|
),
|
|
4499
|
-
/* @__PURE__ */ y.jsx("div", { children: a && a.map((
|
|
4669
|
+
/* @__PURE__ */ y.jsx("div", { children: a && a.map((W) => W.network).includes(A) ? o ? /* @__PURE__ */ y.jsx(
|
|
4500
4670
|
"div",
|
|
4501
4671
|
{
|
|
4502
4672
|
style: {
|
|
@@ -4512,7 +4682,7 @@ const Hn = [
|
|
|
4512
4682
|
},
|
|
4513
4683
|
children: /* @__PURE__ */ y.jsx(RA, { typeOfProduct: c })
|
|
4514
4684
|
}
|
|
4515
|
-
) : a.map((
|
|
4685
|
+
) : a.map((W) => /* @__PURE__ */ y.jsx(
|
|
4516
4686
|
"div",
|
|
4517
4687
|
{
|
|
4518
4688
|
style: {
|
|
@@ -4527,9 +4697,9 @@ const Hn = [
|
|
|
4527
4697
|
justifyContent: "center",
|
|
4528
4698
|
alignItems: "center"
|
|
4529
4699
|
},
|
|
4530
|
-
children:
|
|
4700
|
+
children: W.network === A ? W.size.toString().slice(0, 5) + "Mb" : ""
|
|
4531
4701
|
},
|
|
4532
|
-
|
|
4702
|
+
W.network
|
|
4533
4703
|
)) : null })
|
|
4534
4704
|
]
|
|
4535
4705
|
}
|
|
@@ -4586,7 +4756,7 @@ const Hn = [
|
|
|
4586
4756
|
className: "w-2/3",
|
|
4587
4757
|
downloading: f,
|
|
4588
4758
|
onClickDonwload: async () => {
|
|
4589
|
-
A !== "instantGame" && await
|
|
4759
|
+
A !== "instantGame" && await E(u, A, void 0, !0, null, !0);
|
|
4590
4760
|
},
|
|
4591
4761
|
children: [
|
|
4592
4762
|
!f && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
@@ -4611,7 +4781,7 @@ const Hn = [
|
|
|
4611
4781
|
]
|
|
4612
4782
|
}
|
|
4613
4783
|
),
|
|
4614
|
-
/* @__PURE__ */ y.jsx(Tn, { className: "w-1/3", onClickDonwload:
|
|
4784
|
+
/* @__PURE__ */ y.jsx(Tn, { className: "w-1/3", onClickDonwload: j, children: /* @__PURE__ */ y.jsx(cA, { className: "h-6 w-6 stroke-dark-full" }) })
|
|
4615
4785
|
]
|
|
4616
4786
|
}
|
|
4617
4787
|
)
|
|
@@ -4891,13 +5061,13 @@ const Hn = [
|
|
|
4891
5061
|
] })
|
|
4892
5062
|
] }) });
|
|
4893
5063
|
async function _i(e, t, r) {
|
|
4894
|
-
return (await
|
|
5064
|
+
return (await Re.post(r + "/getPlayableVersionSize", {
|
|
4895
5065
|
_id: e,
|
|
4896
5066
|
networks: t
|
|
4897
5067
|
})).data;
|
|
4898
5068
|
}
|
|
4899
5069
|
async function $i(e, t, r) {
|
|
4900
|
-
return (await
|
|
5070
|
+
return (await Re.post(r + "/createPlayableVersionLinkMulti", {
|
|
4901
5071
|
_id: e,
|
|
4902
5072
|
networks: t
|
|
4903
5073
|
})).data;
|
|
@@ -4915,33 +5085,33 @@ const es = ({
|
|
|
4915
5085
|
handleDownloadError: u,
|
|
4916
5086
|
fetchFileUrl: l
|
|
4917
5087
|
}) => {
|
|
4918
|
-
const [m,
|
|
5088
|
+
const [m, v] = me([]), [f, p] = me([]), [g, C] = me(!1), [I, E] = me(""), [j, W] = me(!1), q = async (x) => {
|
|
4919
5089
|
C(!0);
|
|
4920
|
-
const
|
|
5090
|
+
const Q = await _i(
|
|
4921
5091
|
n,
|
|
4922
|
-
|
|
5092
|
+
x,
|
|
4923
5093
|
a
|
|
4924
5094
|
);
|
|
4925
|
-
p(
|
|
4926
|
-
}, ie = async (
|
|
4927
|
-
const
|
|
4928
|
-
if (m.includes(
|
|
4929
|
-
const
|
|
4930
|
-
|
|
5095
|
+
p(Q.details), E(Q.size), C(!1);
|
|
5096
|
+
}, ie = async (x) => {
|
|
5097
|
+
const Q = [...m];
|
|
5098
|
+
if (m.includes(x)) {
|
|
5099
|
+
const P = Q.findIndex((H) => H === x);
|
|
5100
|
+
Q.splice(P, 1), v(Q);
|
|
4931
5101
|
} else
|
|
4932
|
-
A === "Playable" ? (
|
|
4933
|
-
let ae = Xt.filter((
|
|
5102
|
+
A === "Playable" ? (Q.push(x), v([...m, x])) : (Q.splice(0), Q.push(x), v([x]));
|
|
5103
|
+
let ae = Xt.filter((P) => [...Q].includes(P.id)).map((P) => P.name);
|
|
4934
5104
|
await q(ae);
|
|
4935
5105
|
}, le = async () => {
|
|
4936
5106
|
try {
|
|
4937
|
-
const
|
|
4938
|
-
|
|
4939
|
-
const
|
|
4940
|
-
let
|
|
4941
|
-
const
|
|
4942
|
-
|
|
4943
|
-
} catch (
|
|
4944
|
-
u(
|
|
5107
|
+
const x = Xt.filter((N) => [...m].includes(N.id)).map((N) => N.name);
|
|
5108
|
+
W(!0);
|
|
5109
|
+
const Q = await $i(n, x, a), { url: ae } = Q;
|
|
5110
|
+
let P;
|
|
5111
|
+
const H = l + "/" + ae;
|
|
5112
|
+
P = document.createElement("iframe"), P.setAttribute("src", H), P.style.display = "none", document.body.appendChild(P), P.click(), W(!1), ut("Multi downloaded completed successfully");
|
|
5113
|
+
} catch (x) {
|
|
5114
|
+
u(x.message), console.error(x.message);
|
|
4945
5115
|
}
|
|
4946
5116
|
};
|
|
4947
5117
|
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
@@ -4966,21 +5136,21 @@ const es = ({
|
|
|
4966
5136
|
overflow: "auto",
|
|
4967
5137
|
padding: "0.75rem"
|
|
4968
5138
|
},
|
|
4969
|
-
children: r && Xt.filter((
|
|
4970
|
-
var
|
|
4971
|
-
return i && ((
|
|
5139
|
+
children: r && Xt.filter((x) => {
|
|
5140
|
+
var Q;
|
|
5141
|
+
return i && ((Q = i == null ? void 0 : i.networks) == null ? void 0 : Q.length) > 0 ? i == null ? void 0 : i.networks.includes(x.name) : e == null ? void 0 : e.networks.includes(x.name);
|
|
4972
5142
|
}).filter(
|
|
4973
|
-
(
|
|
4974
|
-
).map((
|
|
5143
|
+
(x) => x.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
5144
|
+
).map((x) => /* @__PURE__ */ y.jsx(
|
|
4975
5145
|
Vi,
|
|
4976
5146
|
{
|
|
4977
|
-
id:
|
|
4978
|
-
name:
|
|
4979
|
-
imageUrl:
|
|
4980
|
-
selected: m.includes(
|
|
5147
|
+
id: x.id,
|
|
5148
|
+
name: x.name,
|
|
5149
|
+
imageUrl: x.imageSrc,
|
|
5150
|
+
selected: m.includes(x.id),
|
|
4981
5151
|
handleCardClick: ie,
|
|
4982
5152
|
networkVersionSize: f,
|
|
4983
|
-
fileSizeLoading:
|
|
5153
|
+
fileSizeLoading: g,
|
|
4984
5154
|
showCheckBox: !0,
|
|
4985
5155
|
typeOfProduct: A,
|
|
4986
5156
|
versionId: n,
|
|
@@ -4988,7 +5158,7 @@ const es = ({
|
|
|
4988
5158
|
handleDownloadError: u,
|
|
4989
5159
|
fetchFileUrl: l
|
|
4990
5160
|
},
|
|
4991
|
-
|
|
5161
|
+
x.id
|
|
4992
5162
|
))
|
|
4993
5163
|
}
|
|
4994
5164
|
),
|
|
@@ -5007,20 +5177,26 @@ const es = ({
|
|
|
5007
5177
|
] });
|
|
5008
5178
|
};
|
|
5009
5179
|
async function ts(e, t) {
|
|
5010
|
-
return (await
|
|
5180
|
+
return (await Re.post(t + "/findPlayable", { _id: e })).data;
|
|
5011
5181
|
}
|
|
5012
5182
|
async function rs(e, t) {
|
|
5013
|
-
return (await
|
|
5183
|
+
return (await Re.post(t + "/getFlexDownloadCount", e)).data;
|
|
5014
5184
|
}
|
|
5015
5185
|
async function ns(e, t) {
|
|
5016
|
-
return (await
|
|
5186
|
+
return (await Re.post(t + "/getFileSize", e)).data;
|
|
5017
5187
|
}
|
|
5018
5188
|
async function As(e, t) {
|
|
5019
|
-
|
|
5189
|
+
try {
|
|
5190
|
+
return (await Re.post(t + "/findGame", { _id: e })).data;
|
|
5191
|
+
} catch {
|
|
5192
|
+
}
|
|
5193
|
+
}
|
|
5194
|
+
async function as(e, t) {
|
|
5195
|
+
return (await Re.post(t + "/listInstantGameBuilds", {
|
|
5020
5196
|
_id: e
|
|
5021
5197
|
})).data;
|
|
5022
5198
|
}
|
|
5023
|
-
const
|
|
5199
|
+
const os = [
|
|
5024
5200
|
"adcolony",
|
|
5025
5201
|
"ironsource",
|
|
5026
5202
|
"applovin",
|
|
@@ -5031,7 +5207,7 @@ const as = [
|
|
|
5031
5207
|
"vungle",
|
|
5032
5208
|
"moloco",
|
|
5033
5209
|
"inmobi"
|
|
5034
|
-
],
|
|
5210
|
+
], is = ({
|
|
5035
5211
|
playableId: e,
|
|
5036
5212
|
versionId: t,
|
|
5037
5213
|
gameId: r,
|
|
@@ -5043,15 +5219,16 @@ const as = [
|
|
|
5043
5219
|
handleDownloadError: c,
|
|
5044
5220
|
fetchFileUrl: u
|
|
5045
5221
|
}) => {
|
|
5046
|
-
const [l, m] =
|
|
5047
|
-
|
|
5048
|
-
const
|
|
5049
|
-
|
|
5050
|
-
},
|
|
5222
|
+
const [l, m] = me(null), [v, f] = me(null), [p, g] = me(null), [C, I] = me(null), [E, j] = me(!1), [W, q] = me({}), [ie, le] = me(null), [x, Q] = me(null), [ae, P] = me(null), H = async () => {
|
|
5223
|
+
j(!0);
|
|
5224
|
+
const w = await ts(e, a);
|
|
5225
|
+
w != null && w.networks || (w.networks = os), m(w), j(!1);
|
|
5226
|
+
}, N = async (w) => {
|
|
5227
|
+
var _, b, K, J;
|
|
5051
5228
|
try {
|
|
5052
|
-
let
|
|
5053
|
-
if (n === "Playable")
|
|
5054
|
-
|
|
5229
|
+
let Y;
|
|
5230
|
+
if (n === "Playable") {
|
|
5231
|
+
Y = await Pt(
|
|
5055
5232
|
a,
|
|
5056
5233
|
t,
|
|
5057
5234
|
Bt(5),
|
|
@@ -5060,49 +5237,71 @@ const as = [
|
|
|
5060
5237
|
0,
|
|
5061
5238
|
{}
|
|
5062
5239
|
);
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
{
|
|
5066
|
-
_id: t
|
|
5067
|
-
},
|
|
5068
|
-
a
|
|
5240
|
+
let z = await fetch(u + "/" + Y.url).then(
|
|
5241
|
+
(G) => G.text()
|
|
5069
5242
|
);
|
|
5243
|
+
const X = ((_ = z.match(
|
|
5244
|
+
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
5245
|
+
)) == null ? void 0 : _.at(1)) || "";
|
|
5246
|
+
console.log("isOSLink", X), Q(X);
|
|
5247
|
+
const D = ((b = z.match(
|
|
5248
|
+
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
5249
|
+
)) == null ? void 0 : b.at(1)) || "";
|
|
5250
|
+
P(D);
|
|
5251
|
+
} else if (n === "Flex") {
|
|
5252
|
+
if (w)
|
|
5253
|
+
Q(w.iosUrl), P(w.googleUrl);
|
|
5254
|
+
else {
|
|
5255
|
+
console.log(t), Y = await jr(
|
|
5256
|
+
{
|
|
5257
|
+
_id: t
|
|
5258
|
+
},
|
|
5259
|
+
a
|
|
5260
|
+
);
|
|
5261
|
+
let z = await fetch(u + "/" + Y.url).then(
|
|
5262
|
+
(G) => G.text()
|
|
5263
|
+
);
|
|
5264
|
+
const X = ((K = z.match(
|
|
5265
|
+
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
5266
|
+
)) == null ? void 0 : K.at(1)) || "";
|
|
5267
|
+
console.log("isOSLink", X), Q(X);
|
|
5268
|
+
const D = ((J = z.match(
|
|
5269
|
+
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
5270
|
+
)) == null ? void 0 : J.at(1)) || "";
|
|
5271
|
+
P(D);
|
|
5272
|
+
}
|
|
5070
5273
|
return;
|
|
5071
5274
|
}
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
Q(b[1]);
|
|
5079
|
-
} catch (d) {
|
|
5080
|
-
c(d.message);
|
|
5081
|
-
}
|
|
5082
|
-
}, W = async () => {
|
|
5083
|
-
z(!0);
|
|
5084
|
-
const d = await rs(
|
|
5275
|
+
} catch (Y) {
|
|
5276
|
+
c(Y.message);
|
|
5277
|
+
}
|
|
5278
|
+
}, O = async () => {
|
|
5279
|
+
j(!0);
|
|
5280
|
+
const w = await rs(
|
|
5085
5281
|
{ _id: t },
|
|
5086
5282
|
a
|
|
5087
5283
|
);
|
|
5088
|
-
|
|
5089
|
-
},
|
|
5090
|
-
const
|
|
5091
|
-
I(
|
|
5092
|
-
},
|
|
5093
|
-
const
|
|
5094
|
-
le(
|
|
5284
|
+
g(w), j(!1);
|
|
5285
|
+
}, L = async () => {
|
|
5286
|
+
const w = await ns({ _id: t }, a);
|
|
5287
|
+
I(w.size);
|
|
5288
|
+
}, k = async () => await As(r, a), d = async () => {
|
|
5289
|
+
const w = await as(t, a);
|
|
5290
|
+
le(w);
|
|
5095
5291
|
};
|
|
5096
|
-
return
|
|
5097
|
-
if (A || (m(null), f(null),
|
|
5098
|
-
|
|
5099
|
-
else if (A && n === "Flex" && (
|
|
5100
|
-
|
|
5292
|
+
return je(() => {
|
|
5293
|
+
if (A || (m(null), f(null), g(null), I(null)), A && n === "Playable")
|
|
5294
|
+
H(), N(null);
|
|
5295
|
+
else if (A && n === "Flex" && (O(), L(), k().then((w) => {
|
|
5296
|
+
A && N(w);
|
|
5297
|
+
}), o.role !== "customer")) {
|
|
5298
|
+
const w = Xt.map((_) => _.name);
|
|
5101
5299
|
q({
|
|
5102
|
-
networks:
|
|
5300
|
+
networks: w
|
|
5103
5301
|
});
|
|
5104
5302
|
}
|
|
5105
|
-
|
|
5303
|
+
A && d();
|
|
5304
|
+
}, [r, e, t, A]), /* @__PURE__ */ y.jsxs(
|
|
5106
5305
|
"div",
|
|
5107
5306
|
{
|
|
5108
5307
|
style: {
|
|
@@ -5122,10 +5321,10 @@ const as = [
|
|
|
5122
5321
|
title: i,
|
|
5123
5322
|
typeOfProduct: n,
|
|
5124
5323
|
fileSize: C,
|
|
5125
|
-
urls: { iosUrl:
|
|
5324
|
+
urls: { iosUrl: x, googleUrl: ae }
|
|
5126
5325
|
}
|
|
5127
5326
|
),
|
|
5128
|
-
|
|
5327
|
+
E && /* @__PURE__ */ y.jsx(
|
|
5129
5328
|
"div",
|
|
5130
5329
|
{
|
|
5131
5330
|
style: {
|
|
@@ -5139,12 +5338,12 @@ const as = [
|
|
|
5139
5338
|
children: /* @__PURE__ */ y.jsx(RA, { typeOfProduct: n })
|
|
5140
5339
|
}
|
|
5141
5340
|
),
|
|
5142
|
-
(l || p) && !
|
|
5341
|
+
(l || p) && !E && /* @__PURE__ */ y.jsx(
|
|
5143
5342
|
es,
|
|
5144
5343
|
{
|
|
5145
5344
|
playable: l,
|
|
5146
5345
|
downloadFlex: p,
|
|
5147
|
-
flexSubs:
|
|
5346
|
+
flexSubs: W,
|
|
5148
5347
|
visible: A,
|
|
5149
5348
|
versionId: t,
|
|
5150
5349
|
typeOfProduct: n,
|
|
@@ -5176,44 +5375,44 @@ var Jr = { exports: {} }, nt = {}, Nr = { exports: {} }, Ye = {}, Dr = { exports
|
|
|
5176
5375
|
* http://api.jqueryui.com/category/ui-core/
|
|
5177
5376
|
*/
|
|
5178
5377
|
var r = "none", n = "contents", A = /input|select|textarea|button|object|iframe/;
|
|
5179
|
-
function a(m,
|
|
5180
|
-
return
|
|
5378
|
+
function a(m, v) {
|
|
5379
|
+
return v.getPropertyValue("overflow") !== "visible" || // if 'overflow: visible' set, check if there is actually any overflow
|
|
5181
5380
|
m.scrollWidth <= 0 && m.scrollHeight <= 0;
|
|
5182
5381
|
}
|
|
5183
5382
|
function o(m) {
|
|
5184
|
-
var
|
|
5185
|
-
if (
|
|
5383
|
+
var v = m.offsetWidth <= 0 && m.offsetHeight <= 0;
|
|
5384
|
+
if (v && !m.innerHTML)
|
|
5186
5385
|
return !0;
|
|
5187
5386
|
try {
|
|
5188
5387
|
var f = window.getComputedStyle(m), p = f.getPropertyValue("display");
|
|
5189
|
-
return
|
|
5388
|
+
return v ? p !== n && a(m, f) : p === r;
|
|
5190
5389
|
} catch {
|
|
5191
5390
|
return console.warn("Failed to inspect element style"), !1;
|
|
5192
5391
|
}
|
|
5193
5392
|
}
|
|
5194
5393
|
function i(m) {
|
|
5195
|
-
for (var
|
|
5196
|
-
if (f &&
|
|
5394
|
+
for (var v = m, f = m.getRootNode && m.getRootNode(); v && v !== document.body; ) {
|
|
5395
|
+
if (f && v === f && (v = f.host.parentNode), o(v))
|
|
5197
5396
|
return !1;
|
|
5198
|
-
|
|
5397
|
+
v = v.parentNode;
|
|
5199
5398
|
}
|
|
5200
5399
|
return !0;
|
|
5201
5400
|
}
|
|
5202
|
-
function c(m,
|
|
5203
|
-
var f = m.nodeName.toLowerCase(), p = A.test(f) && !m.disabled || f === "a" && m.href ||
|
|
5401
|
+
function c(m, v) {
|
|
5402
|
+
var f = m.nodeName.toLowerCase(), p = A.test(f) && !m.disabled || f === "a" && m.href || v;
|
|
5204
5403
|
return p && i(m);
|
|
5205
5404
|
}
|
|
5206
5405
|
function u(m) {
|
|
5207
|
-
var
|
|
5208
|
-
|
|
5209
|
-
var f = isNaN(
|
|
5210
|
-
return (f ||
|
|
5406
|
+
var v = m.getAttribute("tabindex");
|
|
5407
|
+
v === null && (v = void 0);
|
|
5408
|
+
var f = isNaN(v);
|
|
5409
|
+
return (f || v >= 0) && c(m, !f);
|
|
5211
5410
|
}
|
|
5212
5411
|
function l(m) {
|
|
5213
|
-
var
|
|
5412
|
+
var v = [].slice.call(m.querySelectorAll("*"), 0).reduce(function(f, p) {
|
|
5214
5413
|
return f.concat(p.shadowRoot ? l(p.shadowRoot) : [p]);
|
|
5215
5414
|
}, []);
|
|
5216
|
-
return
|
|
5415
|
+
return v.filter(u);
|
|
5217
5416
|
}
|
|
5218
5417
|
e.exports = t.default;
|
|
5219
5418
|
})(Dr, Dr.exports);
|
|
@@ -5221,24 +5420,24 @@ var TA = Dr.exports;
|
|
|
5221
5420
|
Object.defineProperty(Ye, "__esModule", {
|
|
5222
5421
|
value: !0
|
|
5223
5422
|
});
|
|
5224
|
-
Ye.resetState =
|
|
5225
|
-
Ye.log =
|
|
5423
|
+
Ye.resetState = cs;
|
|
5424
|
+
Ye.log = ms;
|
|
5226
5425
|
Ye.handleBlur = It;
|
|
5227
5426
|
Ye.handleFocus = Kt;
|
|
5228
|
-
Ye.markForFocusLater =
|
|
5229
|
-
Ye.returnFocus =
|
|
5230
|
-
Ye.popWithoutFocus =
|
|
5231
|
-
Ye.setupScopedFocus =
|
|
5232
|
-
Ye.teardownScopedFocus =
|
|
5233
|
-
var
|
|
5234
|
-
function
|
|
5427
|
+
Ye.markForFocusLater = ds;
|
|
5428
|
+
Ye.returnFocus = ps;
|
|
5429
|
+
Ye.popWithoutFocus = fs;
|
|
5430
|
+
Ye.setupScopedFocus = qs;
|
|
5431
|
+
Ye.teardownScopedFocus = hs;
|
|
5432
|
+
var ss = TA, us = ls(ss);
|
|
5433
|
+
function ls(e) {
|
|
5235
5434
|
return e && e.__esModule ? e : { default: e };
|
|
5236
5435
|
}
|
|
5237
5436
|
var At = [], st = null, Gr = !1;
|
|
5238
|
-
function
|
|
5437
|
+
function cs() {
|
|
5239
5438
|
At = [];
|
|
5240
5439
|
}
|
|
5241
|
-
function
|
|
5440
|
+
function ms() {
|
|
5242
5441
|
process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), At.forEach(function(e) {
|
|
5243
5442
|
var t = e || {};
|
|
5244
5443
|
console.log(t.nodeName, t.className, t.id);
|
|
@@ -5253,16 +5452,16 @@ function Kt() {
|
|
|
5253
5452
|
return;
|
|
5254
5453
|
setTimeout(function() {
|
|
5255
5454
|
if (!st.contains(document.activeElement)) {
|
|
5256
|
-
var e = (0,
|
|
5455
|
+
var e = (0, us.default)(st)[0] || st;
|
|
5257
5456
|
e.focus();
|
|
5258
5457
|
}
|
|
5259
5458
|
}, 0);
|
|
5260
5459
|
}
|
|
5261
5460
|
}
|
|
5262
|
-
function
|
|
5461
|
+
function ds() {
|
|
5263
5462
|
At.push(document.activeElement);
|
|
5264
5463
|
}
|
|
5265
|
-
function
|
|
5464
|
+
function ps() {
|
|
5266
5465
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = null;
|
|
5267
5466
|
try {
|
|
5268
5467
|
At.length !== 0 && (t = At.pop(), t.focus({ preventScroll: e }));
|
|
@@ -5271,13 +5470,13 @@ function ds() {
|
|
|
5271
5470
|
console.warn(["You tried to return focus to", t, "but it is not in the DOM anymore"].join(" "));
|
|
5272
5471
|
}
|
|
5273
5472
|
}
|
|
5274
|
-
function
|
|
5473
|
+
function fs() {
|
|
5275
5474
|
At.length > 0 && At.pop();
|
|
5276
5475
|
}
|
|
5277
|
-
function
|
|
5476
|
+
function qs(e) {
|
|
5278
5477
|
st = e, window.addEventListener ? (window.addEventListener("blur", It, !1), document.addEventListener("focus", Kt, !0)) : (window.attachEvent("onBlur", It), document.attachEvent("onFocus", Kt));
|
|
5279
5478
|
}
|
|
5280
|
-
function
|
|
5479
|
+
function hs() {
|
|
5281
5480
|
st = null, window.addEventListener ? (window.removeEventListener("blur", It), document.removeEventListener("focus", Kt)) : (window.detachEvent("onBlur", It), document.detachEvent("onFocus", Kt));
|
|
5282
5481
|
}
|
|
5283
5482
|
var Rr = { exports: {} };
|
|
@@ -5299,21 +5498,21 @@ var Rr = { exports: {} };
|
|
|
5299
5498
|
c.preventDefault();
|
|
5300
5499
|
return;
|
|
5301
5500
|
}
|
|
5302
|
-
var l = void 0, m = c.shiftKey,
|
|
5501
|
+
var l = void 0, m = c.shiftKey, v = u[0], f = u[u.length - 1], p = a();
|
|
5303
5502
|
if (i === p) {
|
|
5304
5503
|
if (!m)
|
|
5305
5504
|
return;
|
|
5306
5505
|
l = f;
|
|
5307
5506
|
}
|
|
5308
|
-
if (f === p && !m && (l =
|
|
5507
|
+
if (f === p && !m && (l = v), v === p && m && (l = f), l) {
|
|
5309
5508
|
c.preventDefault(), l.focus();
|
|
5310
5509
|
return;
|
|
5311
5510
|
}
|
|
5312
|
-
var
|
|
5511
|
+
var g = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), C = g != null && g[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
5313
5512
|
if (C) {
|
|
5314
5513
|
var I = u.indexOf(p);
|
|
5315
5514
|
if (I > -1 && (I += m ? -1 : 1), l = u[I], typeof l > "u") {
|
|
5316
|
-
c.preventDefault(), l = m ? f :
|
|
5515
|
+
c.preventDefault(), l = m ? f : v, l.focus();
|
|
5317
5516
|
return;
|
|
5318
5517
|
}
|
|
5319
5518
|
c.preventDefault(), l.focus();
|
|
@@ -5321,10 +5520,10 @@ var Rr = { exports: {} };
|
|
|
5321
5520
|
}
|
|
5322
5521
|
e.exports = t.default;
|
|
5323
5522
|
})(Rr, Rr.exports);
|
|
5324
|
-
var
|
|
5523
|
+
var vs = Rr.exports, xe = {}, gs = process.env.NODE_ENV !== "production", HA = function() {
|
|
5325
5524
|
};
|
|
5326
|
-
if (
|
|
5327
|
-
var
|
|
5525
|
+
if (gs) {
|
|
5526
|
+
var ys = function(t, r) {
|
|
5328
5527
|
var n = arguments.length;
|
|
5329
5528
|
r = new Array(n > 1 ? n - 1 : 0);
|
|
5330
5529
|
for (var A = 1; A < n; A++)
|
|
@@ -5347,10 +5546,10 @@ if (vs) {
|
|
|
5347
5546
|
throw new Error(
|
|
5348
5547
|
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
5349
5548
|
);
|
|
5350
|
-
e ||
|
|
5549
|
+
e || ys.apply(null, [t].concat(r));
|
|
5351
5550
|
};
|
|
5352
5551
|
}
|
|
5353
|
-
var
|
|
5552
|
+
var bs = HA, Ee = {}, XA = { exports: {} };
|
|
5354
5553
|
/*!
|
|
5355
5554
|
Copyright (c) 2015 Jed Watson.
|
|
5356
5555
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
@@ -5367,37 +5566,37 @@ var ys = HA, Le = {}, XA = { exports: {} };
|
|
|
5367
5566
|
e.exports ? e.exports = r : window.ExecutionEnvironment = r;
|
|
5368
5567
|
})();
|
|
5369
5568
|
})(XA);
|
|
5370
|
-
var
|
|
5371
|
-
Object.defineProperty(
|
|
5569
|
+
var Zs = XA.exports;
|
|
5570
|
+
Object.defineProperty(Ee, "__esModule", {
|
|
5372
5571
|
value: !0
|
|
5373
5572
|
});
|
|
5374
|
-
|
|
5375
|
-
var
|
|
5376
|
-
function
|
|
5573
|
+
Ee.canUseDOM = Ee.SafeNodeList = Ee.SafeHTMLCollection = void 0;
|
|
5574
|
+
var Cs = Zs, Is = Ks(Cs);
|
|
5575
|
+
function Ks(e) {
|
|
5377
5576
|
return e && e.__esModule ? e : { default: e };
|
|
5378
5577
|
}
|
|
5379
|
-
var ur =
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5578
|
+
var ur = Is.default, ws = ur.canUseDOM ? window.HTMLElement : {};
|
|
5579
|
+
Ee.SafeHTMLCollection = ur.canUseDOM ? window.HTMLCollection : {};
|
|
5580
|
+
Ee.SafeNodeList = ur.canUseDOM ? window.NodeList : {};
|
|
5581
|
+
Ee.canUseDOM = ur.canUseDOM;
|
|
5582
|
+
Ee.default = ws;
|
|
5384
5583
|
Object.defineProperty(xe, "__esModule", {
|
|
5385
5584
|
value: !0
|
|
5386
5585
|
});
|
|
5387
|
-
xe.resetState =
|
|
5586
|
+
xe.resetState = Ls;
|
|
5388
5587
|
xe.log = Es;
|
|
5389
5588
|
xe.assertNodeList = QA;
|
|
5390
|
-
xe.setElement =
|
|
5589
|
+
xe.setElement = Ys;
|
|
5391
5590
|
xe.validateElement = tn;
|
|
5392
|
-
xe.hide =
|
|
5393
|
-
xe.show =
|
|
5394
|
-
xe.documentNotReadyOrSSRTesting =
|
|
5395
|
-
var
|
|
5396
|
-
function
|
|
5591
|
+
xe.hide = xs;
|
|
5592
|
+
xe.show = zs;
|
|
5593
|
+
xe.documentNotReadyOrSSRTesting = ks;
|
|
5594
|
+
var Ws = bs, Os = Ss(Ws), Ms = Ee;
|
|
5595
|
+
function Ss(e) {
|
|
5397
5596
|
return e && e.__esModule ? e : { default: e };
|
|
5398
5597
|
}
|
|
5399
5598
|
var be = null;
|
|
5400
|
-
function
|
|
5599
|
+
function Ls() {
|
|
5401
5600
|
be && (be.removeAttribute ? be.removeAttribute("aria-hidden") : be.length != null ? be.forEach(function(e) {
|
|
5402
5601
|
return e.removeAttribute("aria-hidden");
|
|
5403
5602
|
}) : document.querySelectorAll(be).forEach(function(e) {
|
|
@@ -5414,9 +5613,9 @@ function QA(e, t) {
|
|
|
5414
5613
|
if (!e || !e.length)
|
|
5415
5614
|
throw new Error("react-modal: No elements were found for selector " + t + ".");
|
|
5416
5615
|
}
|
|
5417
|
-
function
|
|
5616
|
+
function Ys(e) {
|
|
5418
5617
|
var t = e;
|
|
5419
|
-
if (typeof t == "string" &&
|
|
5618
|
+
if (typeof t == "string" && Ms.canUseDOM) {
|
|
5420
5619
|
var r = document.querySelectorAll(t);
|
|
5421
5620
|
QA(r, t), t = r;
|
|
5422
5621
|
}
|
|
@@ -5424,9 +5623,9 @@ function Ls(e) {
|
|
|
5424
5623
|
}
|
|
5425
5624
|
function tn(e) {
|
|
5426
5625
|
var t = e || be;
|
|
5427
|
-
return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0,
|
|
5626
|
+
return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, Os.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(" ")), []);
|
|
5428
5627
|
}
|
|
5429
|
-
function
|
|
5628
|
+
function xs(e) {
|
|
5430
5629
|
var t = !0, r = !1, n = void 0;
|
|
5431
5630
|
try {
|
|
5432
5631
|
for (var A = tn(e)[Symbol.iterator](), a; !(t = (a = A.next()).done); t = !0) {
|
|
@@ -5444,7 +5643,7 @@ function Ys(e) {
|
|
|
5444
5643
|
}
|
|
5445
5644
|
}
|
|
5446
5645
|
}
|
|
5447
|
-
function
|
|
5646
|
+
function zs(e) {
|
|
5448
5647
|
var t = !0, r = !1, n = void 0;
|
|
5449
5648
|
try {
|
|
5450
5649
|
for (var A = tn(e)[Symbol.iterator](), a; !(t = (a = A.next()).done); t = !0) {
|
|
@@ -5462,20 +5661,20 @@ function xs(e) {
|
|
|
5462
5661
|
}
|
|
5463
5662
|
}
|
|
5464
5663
|
}
|
|
5465
|
-
function
|
|
5664
|
+
function ks() {
|
|
5466
5665
|
be = null;
|
|
5467
5666
|
}
|
|
5468
5667
|
var dt = {};
|
|
5469
5668
|
Object.defineProperty(dt, "__esModule", {
|
|
5470
5669
|
value: !0
|
|
5471
5670
|
});
|
|
5472
|
-
dt.resetState =
|
|
5473
|
-
dt.log =
|
|
5671
|
+
dt.resetState = js;
|
|
5672
|
+
dt.log = Js;
|
|
5474
5673
|
var $e = {}, et = {};
|
|
5475
5674
|
function Xn(e, t) {
|
|
5476
5675
|
e.classList.remove(t);
|
|
5477
5676
|
}
|
|
5478
|
-
function
|
|
5677
|
+
function js() {
|
|
5479
5678
|
var e = document.getElementsByTagName("html")[0];
|
|
5480
5679
|
for (var t in $e)
|
|
5481
5680
|
Xn(e, $e[t]);
|
|
@@ -5484,7 +5683,7 @@ function ks() {
|
|
|
5484
5683
|
Xn(r, et[n]);
|
|
5485
5684
|
$e = {}, et = {};
|
|
5486
5685
|
}
|
|
5487
|
-
function
|
|
5686
|
+
function Js() {
|
|
5488
5687
|
if (process.env.NODE_ENV !== "production") {
|
|
5489
5688
|
var e = document.getElementsByTagName("html")[0].className, t = `Show tracked classes:
|
|
5490
5689
|
|
|
@@ -5505,38 +5704,38 @@ doc.body (` + e + `):
|
|
|
5505
5704
|
`, console.log(t);
|
|
5506
5705
|
}
|
|
5507
5706
|
}
|
|
5508
|
-
var
|
|
5707
|
+
var Ns = function(t, r) {
|
|
5509
5708
|
return t[r] || (t[r] = 0), t[r] += 1, r;
|
|
5510
|
-
},
|
|
5709
|
+
}, Ds = function(t, r) {
|
|
5511
5710
|
return t[r] && (t[r] -= 1), r;
|
|
5512
|
-
},
|
|
5711
|
+
}, Gs = function(t, r, n) {
|
|
5513
5712
|
n.forEach(function(A) {
|
|
5514
|
-
|
|
5713
|
+
Ns(r, A), t.add(A);
|
|
5515
5714
|
});
|
|
5516
|
-
},
|
|
5715
|
+
}, Rs = function(t, r, n) {
|
|
5517
5716
|
n.forEach(function(A) {
|
|
5518
|
-
|
|
5717
|
+
Ds(r, A), r[A] === 0 && t.remove(A);
|
|
5519
5718
|
});
|
|
5520
5719
|
};
|
|
5521
5720
|
dt.add = function(t, r) {
|
|
5522
|
-
return
|
|
5721
|
+
return Gs(t.classList, t.nodeName.toLowerCase() == "html" ? $e : et, r.split(" "));
|
|
5523
5722
|
};
|
|
5524
5723
|
dt.remove = function(t, r) {
|
|
5525
|
-
return
|
|
5724
|
+
return Rs(t.classList, t.nodeName.toLowerCase() == "html" ? $e : et, r.split(" "));
|
|
5526
5725
|
};
|
|
5527
5726
|
var pt = {};
|
|
5528
5727
|
Object.defineProperty(pt, "__esModule", {
|
|
5529
5728
|
value: !0
|
|
5530
5729
|
});
|
|
5531
|
-
pt.log =
|
|
5532
|
-
pt.resetState =
|
|
5533
|
-
function
|
|
5730
|
+
pt.log = Hs;
|
|
5731
|
+
pt.resetState = Xs;
|
|
5732
|
+
function Ts(e, t) {
|
|
5534
5733
|
if (!(e instanceof t))
|
|
5535
5734
|
throw new TypeError("Cannot call a class as a function");
|
|
5536
5735
|
}
|
|
5537
5736
|
var PA = function e() {
|
|
5538
5737
|
var t = this;
|
|
5539
|
-
|
|
5738
|
+
Ts(this, e), this.register = function(r) {
|
|
5540
5739
|
if (t.openInstances.indexOf(r) !== -1) {
|
|
5541
5740
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
|
|
5542
5741
|
return;
|
|
@@ -5561,12 +5760,12 @@ var PA = function e() {
|
|
|
5561
5760
|
});
|
|
5562
5761
|
}, this.openInstances = [], this.subscribers = [];
|
|
5563
5762
|
}, Ft = new PA();
|
|
5564
|
-
function
|
|
5763
|
+
function Hs() {
|
|
5565
5764
|
console.log("portalOpenInstances ----------"), console.log(Ft.openInstances.length), Ft.openInstances.forEach(function(e) {
|
|
5566
5765
|
return console.log(e);
|
|
5567
5766
|
}), console.log("end portalOpenInstances ----------");
|
|
5568
5767
|
}
|
|
5569
|
-
function
|
|
5768
|
+
function Xs() {
|
|
5570
5769
|
Ft = new PA();
|
|
5571
5770
|
}
|
|
5572
5771
|
pt.default = Ft;
|
|
@@ -5574,21 +5773,21 @@ var rn = {};
|
|
|
5574
5773
|
Object.defineProperty(rn, "__esModule", {
|
|
5575
5774
|
value: !0
|
|
5576
5775
|
});
|
|
5577
|
-
rn.resetState =
|
|
5578
|
-
rn.log =
|
|
5579
|
-
var
|
|
5580
|
-
function
|
|
5776
|
+
rn.resetState = Bs;
|
|
5777
|
+
rn.log = Fs;
|
|
5778
|
+
var Qs = pt, Ps = Vs(Qs);
|
|
5779
|
+
function Vs(e) {
|
|
5581
5780
|
return e && e.__esModule ? e : { default: e };
|
|
5582
5781
|
}
|
|
5583
5782
|
var ve = void 0, Me = void 0, tt = [];
|
|
5584
|
-
function
|
|
5783
|
+
function Bs() {
|
|
5585
5784
|
for (var e = [ve, Me], t = 0; t < e.length; t++) {
|
|
5586
5785
|
var r = e[t];
|
|
5587
5786
|
r && r.parentNode && r.parentNode.removeChild(r);
|
|
5588
5787
|
}
|
|
5589
5788
|
ve = Me = null, tt = [];
|
|
5590
5789
|
}
|
|
5591
|
-
function
|
|
5790
|
+
function Fs() {
|
|
5592
5791
|
console.log("bodyTrap ----------"), console.log(tt.length);
|
|
5593
5792
|
for (var e = [ve, Me], t = 0; t < e.length; t++) {
|
|
5594
5793
|
var r = e[t], n = r || {};
|
|
@@ -5603,81 +5802,81 @@ function Qn() {
|
|
|
5603
5802
|
}
|
|
5604
5803
|
tt[tt.length - 1].focusContent();
|
|
5605
5804
|
}
|
|
5606
|
-
function
|
|
5805
|
+
function Us(e, t) {
|
|
5607
5806
|
!ve && !Me && (ve = document.createElement("div"), ve.setAttribute("data-react-modal-body-trap", ""), ve.style.position = "absolute", ve.style.opacity = "0", ve.setAttribute("tabindex", "0"), ve.addEventListener("focus", Qn), Me = ve.cloneNode(), Me.addEventListener("focus", Qn)), tt = t, tt.length > 0 ? (document.body.firstChild !== ve && document.body.insertBefore(ve, document.body.firstChild), document.body.lastChild !== Me && document.body.appendChild(Me)) : (ve.parentElement && ve.parentElement.removeChild(ve), Me.parentElement && Me.parentElement.removeChild(Me));
|
|
5608
5807
|
}
|
|
5609
|
-
|
|
5808
|
+
Ps.default.subscribe(Us);
|
|
5610
5809
|
(function(e, t) {
|
|
5611
5810
|
Object.defineProperty(t, "__esModule", {
|
|
5612
5811
|
value: !0
|
|
5613
5812
|
});
|
|
5614
|
-
var r = Object.assign || function(
|
|
5615
|
-
for (var
|
|
5616
|
-
var
|
|
5617
|
-
for (var d in
|
|
5618
|
-
Object.prototype.hasOwnProperty.call(
|
|
5619
|
-
}
|
|
5620
|
-
return
|
|
5621
|
-
}, n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
5622
|
-
return typeof
|
|
5623
|
-
} : function(
|
|
5624
|
-
return
|
|
5813
|
+
var r = Object.assign || function(O) {
|
|
5814
|
+
for (var L = 1; L < arguments.length; L++) {
|
|
5815
|
+
var k = arguments[L];
|
|
5816
|
+
for (var d in k)
|
|
5817
|
+
Object.prototype.hasOwnProperty.call(k, d) && (O[d] = k[d]);
|
|
5818
|
+
}
|
|
5819
|
+
return O;
|
|
5820
|
+
}, n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(O) {
|
|
5821
|
+
return typeof O;
|
|
5822
|
+
} : function(O) {
|
|
5823
|
+
return O && typeof Symbol == "function" && O.constructor === Symbol && O !== Symbol.prototype ? "symbol" : typeof O;
|
|
5625
5824
|
}, A = function() {
|
|
5626
|
-
function
|
|
5627
|
-
for (var d = 0; d <
|
|
5628
|
-
var
|
|
5629
|
-
|
|
5825
|
+
function O(L, k) {
|
|
5826
|
+
for (var d = 0; d < k.length; d++) {
|
|
5827
|
+
var w = k[d];
|
|
5828
|
+
w.enumerable = w.enumerable || !1, w.configurable = !0, "value" in w && (w.writable = !0), Object.defineProperty(L, w.key, w);
|
|
5630
5829
|
}
|
|
5631
5830
|
}
|
|
5632
|
-
return function(
|
|
5633
|
-
return
|
|
5831
|
+
return function(L, k, d) {
|
|
5832
|
+
return k && O(L.prototype, k), d && O(L, d), L;
|
|
5634
5833
|
};
|
|
5635
|
-
}(), a =
|
|
5636
|
-
function
|
|
5637
|
-
if (
|
|
5638
|
-
return
|
|
5639
|
-
var
|
|
5640
|
-
if (
|
|
5641
|
-
for (var
|
|
5642
|
-
Object.prototype.hasOwnProperty.call(
|
|
5643
|
-
return
|
|
5644
|
-
}
|
|
5645
|
-
function q(
|
|
5646
|
-
return
|
|
5647
|
-
}
|
|
5648
|
-
function ie(
|
|
5649
|
-
if (!(
|
|
5834
|
+
}(), a = re, o = er, i = q(o), c = Ye, u = W(c), l = vs, m = q(l), v = xe, f = W(v), p = dt, g = W(p), C = Ee, I = q(C), E = pt, j = q(E);
|
|
5835
|
+
function W(O) {
|
|
5836
|
+
if (O && O.__esModule)
|
|
5837
|
+
return O;
|
|
5838
|
+
var L = {};
|
|
5839
|
+
if (O != null)
|
|
5840
|
+
for (var k in O)
|
|
5841
|
+
Object.prototype.hasOwnProperty.call(O, k) && (L[k] = O[k]);
|
|
5842
|
+
return L.default = O, L;
|
|
5843
|
+
}
|
|
5844
|
+
function q(O) {
|
|
5845
|
+
return O && O.__esModule ? O : { default: O };
|
|
5846
|
+
}
|
|
5847
|
+
function ie(O, L) {
|
|
5848
|
+
if (!(O instanceof L))
|
|
5650
5849
|
throw new TypeError("Cannot call a class as a function");
|
|
5651
5850
|
}
|
|
5652
|
-
function le(
|
|
5653
|
-
if (!
|
|
5851
|
+
function le(O, L) {
|
|
5852
|
+
if (!O)
|
|
5654
5853
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5655
|
-
return
|
|
5854
|
+
return L && (typeof L == "object" || typeof L == "function") ? L : O;
|
|
5656
5855
|
}
|
|
5657
|
-
function
|
|
5658
|
-
if (typeof
|
|
5659
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
5660
|
-
|
|
5856
|
+
function x(O, L) {
|
|
5857
|
+
if (typeof L != "function" && L !== null)
|
|
5858
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
5859
|
+
O.prototype = Object.create(L && L.prototype, { constructor: { value: O, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(O, L) : O.__proto__ = L);
|
|
5661
5860
|
}
|
|
5662
|
-
var
|
|
5861
|
+
var Q = {
|
|
5663
5862
|
overlay: "ReactModal__Overlay",
|
|
5664
5863
|
content: "ReactModal__Content"
|
|
5665
|
-
}, ae = function(
|
|
5666
|
-
return
|
|
5667
|
-
},
|
|
5668
|
-
return
|
|
5669
|
-
},
|
|
5670
|
-
|
|
5671
|
-
function
|
|
5672
|
-
ie(this,
|
|
5673
|
-
var d = le(this, (
|
|
5674
|
-
return d.setOverlayRef = function(
|
|
5675
|
-
d.overlay =
|
|
5676
|
-
}, d.setContentRef = function(
|
|
5677
|
-
d.content =
|
|
5864
|
+
}, ae = function(L) {
|
|
5865
|
+
return L.code === "Tab" || L.keyCode === 9;
|
|
5866
|
+
}, P = function(L) {
|
|
5867
|
+
return L.code === "Escape" || L.keyCode === 27;
|
|
5868
|
+
}, H = 0, N = function(O) {
|
|
5869
|
+
x(L, O);
|
|
5870
|
+
function L(k) {
|
|
5871
|
+
ie(this, L);
|
|
5872
|
+
var d = le(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, k));
|
|
5873
|
+
return d.setOverlayRef = function(w) {
|
|
5874
|
+
d.overlay = w, d.props.overlayRef && d.props.overlayRef(w);
|
|
5875
|
+
}, d.setContentRef = function(w) {
|
|
5876
|
+
d.content = w, d.props.contentRef && d.props.contentRef(w);
|
|
5678
5877
|
}, d.afterClose = function() {
|
|
5679
|
-
var
|
|
5680
|
-
|
|
5878
|
+
var w = d.props, _ = w.appElement, b = w.ariaHideApp, K = w.htmlOpenClassName, J = w.bodyOpenClassName, Y = w.parentSelector, z = Y && Y().ownerDocument || document;
|
|
5879
|
+
J && g.remove(z.body, J), K && g.remove(z.getElementsByTagName("html")[0], K), b && H > 0 && (H -= 1, H === 0 && f.show(_)), d.props.shouldFocusAfterRender && (d.props.shouldReturnFocusAfterClose ? (u.returnFocus(d.props.preventScroll), u.teardownScopedFocus()) : u.popWithoutFocus()), d.props.onAfterClose && d.props.onAfterClose(), j.default.deregister(d);
|
|
5681
5880
|
}, d.open = function() {
|
|
5682
5881
|
d.beforeOpen(), d.state.afterOpen && d.state.beforeClose ? (clearTimeout(d.closeTimer), d.setState({ beforeClose: !1 })) : (d.props.shouldFocusAfterRender && (u.setupScopedFocus(d.node), u.markForFocusLater()), d.setState({ isOpen: !0 }, function() {
|
|
5683
5882
|
d.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -5692,8 +5891,8 @@ Qs.default.subscribe(Fs);
|
|
|
5692
5891
|
}, d.focusContent = function() {
|
|
5693
5892
|
return d.content && !d.contentHasFocus() && d.content.focus({ preventScroll: !0 });
|
|
5694
5893
|
}, d.closeWithTimeout = function() {
|
|
5695
|
-
var
|
|
5696
|
-
d.setState({ beforeClose: !0, closesAt:
|
|
5894
|
+
var w = Date.now() + d.props.closeTimeoutMS;
|
|
5895
|
+
d.setState({ beforeClose: !0, closesAt: w }, function() {
|
|
5697
5896
|
d.closeTimer = setTimeout(d.closeWithoutTimeout, d.state.closesAt - Date.now());
|
|
5698
5897
|
});
|
|
5699
5898
|
}, d.closeWithoutTimeout = function() {
|
|
@@ -5703,51 +5902,51 @@ Qs.default.subscribe(Fs);
|
|
|
5703
5902
|
afterOpen: !1,
|
|
5704
5903
|
closesAt: null
|
|
5705
5904
|
}, d.afterClose);
|
|
5706
|
-
}, d.handleKeyDown = function(
|
|
5707
|
-
ae(
|
|
5708
|
-
}, d.handleOverlayOnClick = function(
|
|
5709
|
-
d.shouldClose === null && (d.shouldClose = !0), d.shouldClose && d.props.shouldCloseOnOverlayClick && (d.ownerHandlesClose() ? d.requestClose(
|
|
5905
|
+
}, d.handleKeyDown = function(w) {
|
|
5906
|
+
ae(w) && (0, m.default)(d.content, w), d.props.shouldCloseOnEsc && P(w) && (w.stopPropagation(), d.requestClose(w));
|
|
5907
|
+
}, d.handleOverlayOnClick = function(w) {
|
|
5908
|
+
d.shouldClose === null && (d.shouldClose = !0), d.shouldClose && d.props.shouldCloseOnOverlayClick && (d.ownerHandlesClose() ? d.requestClose(w) : d.focusContent()), d.shouldClose = null;
|
|
5710
5909
|
}, d.handleContentOnMouseUp = function() {
|
|
5711
5910
|
d.shouldClose = !1;
|
|
5712
|
-
}, d.handleOverlayOnMouseDown = function(
|
|
5713
|
-
!d.props.shouldCloseOnOverlayClick &&
|
|
5911
|
+
}, d.handleOverlayOnMouseDown = function(w) {
|
|
5912
|
+
!d.props.shouldCloseOnOverlayClick && w.target == d.overlay && w.preventDefault();
|
|
5714
5913
|
}, d.handleContentOnClick = function() {
|
|
5715
5914
|
d.shouldClose = !1;
|
|
5716
5915
|
}, d.handleContentOnMouseDown = function() {
|
|
5717
5916
|
d.shouldClose = !1;
|
|
5718
|
-
}, d.requestClose = function(
|
|
5719
|
-
return d.ownerHandlesClose() && d.props.onRequestClose(
|
|
5917
|
+
}, d.requestClose = function(w) {
|
|
5918
|
+
return d.ownerHandlesClose() && d.props.onRequestClose(w);
|
|
5720
5919
|
}, d.ownerHandlesClose = function() {
|
|
5721
5920
|
return d.props.onRequestClose;
|
|
5722
5921
|
}, d.shouldBeClosed = function() {
|
|
5723
5922
|
return !d.state.isOpen && !d.state.beforeClose;
|
|
5724
5923
|
}, d.contentHasFocus = function() {
|
|
5725
5924
|
return document.activeElement === d.content || d.content.contains(document.activeElement);
|
|
5726
|
-
}, d.buildClassName = function(
|
|
5727
|
-
var b = (typeof
|
|
5728
|
-
base:
|
|
5729
|
-
afterOpen:
|
|
5730
|
-
beforeClose:
|
|
5925
|
+
}, d.buildClassName = function(w, _) {
|
|
5926
|
+
var b = (typeof _ > "u" ? "undefined" : n(_)) === "object" ? _ : {
|
|
5927
|
+
base: Q[w],
|
|
5928
|
+
afterOpen: Q[w] + "--after-open",
|
|
5929
|
+
beforeClose: Q[w] + "--before-close"
|
|
5731
5930
|
}, K = b.base;
|
|
5732
|
-
return d.state.afterOpen && (K = K + " " + b.afterOpen), d.state.beforeClose && (K = K + " " + b.beforeClose), typeof
|
|
5733
|
-
}, d.attributesFromObject = function(
|
|
5734
|
-
return Object.keys(
|
|
5735
|
-
return b[
|
|
5931
|
+
return d.state.afterOpen && (K = K + " " + b.afterOpen), d.state.beforeClose && (K = K + " " + b.beforeClose), typeof _ == "string" && _ ? K + " " + _ : K;
|
|
5932
|
+
}, d.attributesFromObject = function(w, _) {
|
|
5933
|
+
return Object.keys(_).reduce(function(b, K) {
|
|
5934
|
+
return b[w + "-" + K] = _[K], b;
|
|
5736
5935
|
}, {});
|
|
5737
5936
|
}, d.state = {
|
|
5738
5937
|
afterOpen: !1,
|
|
5739
5938
|
beforeClose: !1
|
|
5740
5939
|
}, d.shouldClose = null, d.moveFromContentToOverlay = null, d;
|
|
5741
5940
|
}
|
|
5742
|
-
return A(
|
|
5941
|
+
return A(L, [{
|
|
5743
5942
|
key: "componentDidMount",
|
|
5744
5943
|
value: function() {
|
|
5745
5944
|
this.props.isOpen && this.open();
|
|
5746
5945
|
}
|
|
5747
5946
|
}, {
|
|
5748
5947
|
key: "componentDidUpdate",
|
|
5749
|
-
value: function(d,
|
|
5750
|
-
process.env.NODE_ENV !== "production" && (d.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), d.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !d.isOpen ? this.open() : !this.props.isOpen && d.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
5948
|
+
value: function(d, w) {
|
|
5949
|
+
process.env.NODE_ENV !== "production" && (d.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), d.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !d.isOpen ? this.open() : !this.props.isOpen && d.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !w.isOpen && this.focusContent();
|
|
5751
5950
|
}
|
|
5752
5951
|
}, {
|
|
5753
5952
|
key: "componentWillUnmount",
|
|
@@ -5757,27 +5956,27 @@ Qs.default.subscribe(Fs);
|
|
|
5757
5956
|
}, {
|
|
5758
5957
|
key: "beforeOpen",
|
|
5759
5958
|
value: function() {
|
|
5760
|
-
var d = this.props,
|
|
5761
|
-
K &&
|
|
5959
|
+
var d = this.props, w = d.appElement, _ = d.ariaHideApp, b = d.htmlOpenClassName, K = d.bodyOpenClassName, J = d.parentSelector, Y = J && J().ownerDocument || document;
|
|
5960
|
+
K && g.add(Y.body, K), b && g.add(Y.getElementsByTagName("html")[0], b), _ && (H += 1, f.hide(w)), j.default.register(this);
|
|
5762
5961
|
}
|
|
5763
5962
|
// Don't steal focus from inner elements
|
|
5764
5963
|
}, {
|
|
5765
5964
|
key: "render",
|
|
5766
5965
|
value: function() {
|
|
5767
|
-
var d = this.props,
|
|
5966
|
+
var d = this.props, w = d.id, _ = d.className, b = d.overlayClassName, K = d.defaultStyles, J = d.children, Y = _ ? {} : K.content, z = b ? {} : K.overlay;
|
|
5768
5967
|
if (this.shouldBeClosed())
|
|
5769
5968
|
return null;
|
|
5770
|
-
var
|
|
5969
|
+
var X = {
|
|
5771
5970
|
ref: this.setOverlayRef,
|
|
5772
5971
|
className: this.buildClassName("overlay", b),
|
|
5773
|
-
style: r({},
|
|
5972
|
+
style: r({}, z, this.props.style.overlay),
|
|
5774
5973
|
onClick: this.handleOverlayOnClick,
|
|
5775
5974
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
5776
|
-
},
|
|
5777
|
-
id:
|
|
5975
|
+
}, D = r({
|
|
5976
|
+
id: w,
|
|
5778
5977
|
ref: this.setContentRef,
|
|
5779
|
-
style: r({},
|
|
5780
|
-
className: this.buildClassName("content",
|
|
5978
|
+
style: r({}, Y, this.props.style.content),
|
|
5979
|
+
className: this.buildClassName("content", _),
|
|
5781
5980
|
tabIndex: "-1",
|
|
5782
5981
|
onKeyDown: this.handleKeyDown,
|
|
5783
5982
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -5787,18 +5986,18 @@ Qs.default.subscribe(Fs);
|
|
|
5787
5986
|
"aria-label": this.props.contentLabel
|
|
5788
5987
|
}, this.attributesFromObject("aria", r({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
5789
5988
|
"data-testid": this.props.testId
|
|
5790
|
-
}),
|
|
5791
|
-
return this.props.overlayElement(
|
|
5989
|
+
}), G = this.props.contentElement(D, J);
|
|
5990
|
+
return this.props.overlayElement(X, G);
|
|
5792
5991
|
}
|
|
5793
|
-
}]),
|
|
5992
|
+
}]), L;
|
|
5794
5993
|
}(a.Component);
|
|
5795
|
-
|
|
5994
|
+
N.defaultProps = {
|
|
5796
5995
|
style: {
|
|
5797
5996
|
overlay: {},
|
|
5798
5997
|
content: {}
|
|
5799
5998
|
},
|
|
5800
5999
|
defaultStyles: {}
|
|
5801
|
-
},
|
|
6000
|
+
}, N.propTypes = {
|
|
5802
6001
|
isOpen: i.default.bool.isRequired,
|
|
5803
6002
|
defaultStyles: i.default.shape({
|
|
5804
6003
|
content: i.default.object,
|
|
@@ -5835,9 +6034,9 @@ Qs.default.subscribe(Fs);
|
|
|
5835
6034
|
overlayElement: i.default.func,
|
|
5836
6035
|
contentElement: i.default.func,
|
|
5837
6036
|
testId: i.default.string
|
|
5838
|
-
}, t.default =
|
|
6037
|
+
}, t.default = N, e.exports = t.default;
|
|
5839
6038
|
})(Nr, Nr.exports);
|
|
5840
|
-
var
|
|
6039
|
+
var _s = Nr.exports;
|
|
5841
6040
|
function VA() {
|
|
5842
6041
|
var e = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
5843
6042
|
e != null && this.setState(e);
|
|
@@ -5863,7 +6062,7 @@ function FA(e, t) {
|
|
|
5863
6062
|
VA.__suppressDeprecationWarning = !0;
|
|
5864
6063
|
BA.__suppressDeprecationWarning = !0;
|
|
5865
6064
|
FA.__suppressDeprecationWarning = !0;
|
|
5866
|
-
function
|
|
6065
|
+
function $s(e) {
|
|
5867
6066
|
var t = e.prototype;
|
|
5868
6067
|
if (!t || !t.isReactComponent)
|
|
5869
6068
|
throw new Error("Can only polyfill class components");
|
|
@@ -5892,16 +6091,16 @@ https://fb.me/react-async-component-lifecycle-hooks`
|
|
|
5892
6091
|
t.componentWillUpdate = FA;
|
|
5893
6092
|
var i = t.componentDidUpdate;
|
|
5894
6093
|
t.componentDidUpdate = function(u, l, m) {
|
|
5895
|
-
var
|
|
5896
|
-
i.call(this, u, l,
|
|
6094
|
+
var v = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : m;
|
|
6095
|
+
i.call(this, u, l, v);
|
|
5897
6096
|
};
|
|
5898
6097
|
}
|
|
5899
6098
|
return e;
|
|
5900
6099
|
}
|
|
5901
|
-
const
|
|
6100
|
+
const eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5902
6101
|
__proto__: null,
|
|
5903
|
-
polyfill:
|
|
5904
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6102
|
+
polyfill: $s
|
|
6103
|
+
}, Symbol.toStringTag, { value: "Module" })), tu = /* @__PURE__ */ Ca(eu);
|
|
5905
6104
|
Object.defineProperty(nt, "__esModule", {
|
|
5906
6105
|
value: !0
|
|
5907
6106
|
});
|
|
@@ -5913,7 +6112,7 @@ var Pn = Object.assign || function(e) {
|
|
|
5913
6112
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
5914
6113
|
}
|
|
5915
6114
|
return e;
|
|
5916
|
-
},
|
|
6115
|
+
}, ru = function() {
|
|
5917
6116
|
function e(t, r) {
|
|
5918
6117
|
for (var n = 0; n < r.length; n++) {
|
|
5919
6118
|
var A = r[n];
|
|
@@ -5923,8 +6122,8 @@ var Pn = Object.assign || function(e) {
|
|
|
5923
6122
|
return function(t, r, n) {
|
|
5924
6123
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
5925
6124
|
};
|
|
5926
|
-
}(), UA =
|
|
5927
|
-
function
|
|
6125
|
+
}(), UA = re, Ut = St(UA), nu = ba, _t = St(nu), Au = er, T = St(Au), au = _s, Vn = St(au), ou = xe, iu = uu(ou), Qe = Ee, Bn = St(Qe), su = tu;
|
|
6126
|
+
function uu(e) {
|
|
5928
6127
|
if (e && e.__esModule)
|
|
5929
6128
|
return e;
|
|
5930
6129
|
var t = {};
|
|
@@ -5936,7 +6135,7 @@ function su(e) {
|
|
|
5936
6135
|
function St(e) {
|
|
5937
6136
|
return e && e.__esModule ? e : { default: e };
|
|
5938
6137
|
}
|
|
5939
|
-
function
|
|
6138
|
+
function lu(e, t) {
|
|
5940
6139
|
if (!(e instanceof t))
|
|
5941
6140
|
throw new TypeError("Cannot call a class as a function");
|
|
5942
6141
|
}
|
|
@@ -5945,12 +6144,12 @@ function Fn(e, t) {
|
|
|
5945
6144
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5946
6145
|
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
5947
6146
|
}
|
|
5948
|
-
function
|
|
6147
|
+
function cu(e, t) {
|
|
5949
6148
|
if (typeof t != "function" && t !== null)
|
|
5950
6149
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
5951
6150
|
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);
|
|
5952
6151
|
}
|
|
5953
|
-
var
|
|
6152
|
+
var mu = nt.portalClassName = "ReactModalPortal", du = nt.bodyOpenClassName = "ReactModal__Body--open", Ue = Qe.canUseDOM && _t.default.createPortal !== void 0, Tr = function(t) {
|
|
5954
6153
|
return document.createElement(t);
|
|
5955
6154
|
}, Un = function() {
|
|
5956
6155
|
return Ue ? _t.default.createPortal : _t.default.unstable_renderSubtreeIntoContainer;
|
|
@@ -5959,10 +6158,10 @@ function Jt(e) {
|
|
|
5959
6158
|
return e();
|
|
5960
6159
|
}
|
|
5961
6160
|
var ft = function(e) {
|
|
5962
|
-
|
|
6161
|
+
cu(t, e);
|
|
5963
6162
|
function t() {
|
|
5964
6163
|
var r, n, A, a;
|
|
5965
|
-
|
|
6164
|
+
lu(this, t);
|
|
5966
6165
|
for (var o = arguments.length, i = Array(o), c = 0; c < o; c++)
|
|
5967
6166
|
i[c] = arguments[c];
|
|
5968
6167
|
return a = (n = (A = Fn(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(i))), A), A.removePortal = function() {
|
|
@@ -5976,10 +6175,10 @@ var ft = function(e) {
|
|
|
5976
6175
|
A.portalRef(m);
|
|
5977
6176
|
}, n), Fn(A, a);
|
|
5978
6177
|
}
|
|
5979
|
-
return
|
|
6178
|
+
return ru(t, [{
|
|
5980
6179
|
key: "componentDidMount",
|
|
5981
6180
|
value: function() {
|
|
5982
|
-
if (
|
|
6181
|
+
if (Qe.canUseDOM) {
|
|
5983
6182
|
Ue || (this.node = Tr("div")), this.node.className = this.props.portalClassName;
|
|
5984
6183
|
var n = Jt(this.props.parentSelector);
|
|
5985
6184
|
n.appendChild(this.node), !Ue && this.renderPortal(this.props);
|
|
@@ -5994,7 +6193,7 @@ var ft = function(e) {
|
|
|
5994
6193
|
}, {
|
|
5995
6194
|
key: "componentDidUpdate",
|
|
5996
6195
|
value: function(n, A, a) {
|
|
5997
|
-
if (
|
|
6196
|
+
if (Qe.canUseDOM) {
|
|
5998
6197
|
var o = this.props, i = o.isOpen, c = o.portalClassName;
|
|
5999
6198
|
n.portalClassName !== c && (this.node.className = c);
|
|
6000
6199
|
var u = a.prevParent, l = a.nextParent;
|
|
@@ -6004,7 +6203,7 @@ var ft = function(e) {
|
|
|
6004
6203
|
}, {
|
|
6005
6204
|
key: "componentWillUnmount",
|
|
6006
6205
|
value: function() {
|
|
6007
|
-
if (!(!
|
|
6206
|
+
if (!(!Qe.canUseDOM || !this.node || !this.portal)) {
|
|
6008
6207
|
var n = this.portal.state, A = Date.now(), a = n.isOpen && this.props.closeTimeoutMS && (n.closesAt || A + this.props.closeTimeoutMS);
|
|
6009
6208
|
a ? (n.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, a - A)) : this.removePortal();
|
|
6010
6209
|
}
|
|
@@ -6012,7 +6211,7 @@ var ft = function(e) {
|
|
|
6012
6211
|
}, {
|
|
6013
6212
|
key: "render",
|
|
6014
6213
|
value: function() {
|
|
6015
|
-
if (!
|
|
6214
|
+
if (!Qe.canUseDOM || !Ue)
|
|
6016
6215
|
return null;
|
|
6017
6216
|
!this.node && Ue && (this.node = Tr("div"));
|
|
6018
6217
|
var n = Un();
|
|
@@ -6024,56 +6223,56 @@ var ft = function(e) {
|
|
|
6024
6223
|
}], [{
|
|
6025
6224
|
key: "setAppElement",
|
|
6026
6225
|
value: function(n) {
|
|
6027
|
-
|
|
6226
|
+
iu.setElement(n);
|
|
6028
6227
|
}
|
|
6029
6228
|
/* eslint-disable react/no-unused-prop-types */
|
|
6030
6229
|
/* eslint-enable react/no-unused-prop-types */
|
|
6031
6230
|
}]), t;
|
|
6032
6231
|
}(UA.Component);
|
|
6033
6232
|
ft.propTypes = {
|
|
6034
|
-
isOpen:
|
|
6035
|
-
style:
|
|
6036
|
-
content:
|
|
6037
|
-
overlay:
|
|
6233
|
+
isOpen: T.default.bool.isRequired,
|
|
6234
|
+
style: T.default.shape({
|
|
6235
|
+
content: T.default.object,
|
|
6236
|
+
overlay: T.default.object
|
|
6038
6237
|
}),
|
|
6039
|
-
portalClassName:
|
|
6040
|
-
bodyOpenClassName:
|
|
6041
|
-
htmlOpenClassName:
|
|
6042
|
-
className:
|
|
6043
|
-
base:
|
|
6044
|
-
afterOpen:
|
|
6045
|
-
beforeClose:
|
|
6238
|
+
portalClassName: T.default.string,
|
|
6239
|
+
bodyOpenClassName: T.default.string,
|
|
6240
|
+
htmlOpenClassName: T.default.string,
|
|
6241
|
+
className: T.default.oneOfType([T.default.string, T.default.shape({
|
|
6242
|
+
base: T.default.string.isRequired,
|
|
6243
|
+
afterOpen: T.default.string.isRequired,
|
|
6244
|
+
beforeClose: T.default.string.isRequired
|
|
6046
6245
|
})]),
|
|
6047
|
-
overlayClassName:
|
|
6048
|
-
base:
|
|
6049
|
-
afterOpen:
|
|
6050
|
-
beforeClose:
|
|
6246
|
+
overlayClassName: T.default.oneOfType([T.default.string, T.default.shape({
|
|
6247
|
+
base: T.default.string.isRequired,
|
|
6248
|
+
afterOpen: T.default.string.isRequired,
|
|
6249
|
+
beforeClose: T.default.string.isRequired
|
|
6051
6250
|
})]),
|
|
6052
|
-
appElement:
|
|
6053
|
-
onAfterOpen:
|
|
6054
|
-
onRequestClose:
|
|
6055
|
-
closeTimeoutMS:
|
|
6056
|
-
ariaHideApp:
|
|
6057
|
-
shouldFocusAfterRender:
|
|
6058
|
-
shouldCloseOnOverlayClick:
|
|
6059
|
-
shouldReturnFocusAfterClose:
|
|
6060
|
-
preventScroll:
|
|
6061
|
-
parentSelector:
|
|
6062
|
-
aria:
|
|
6063
|
-
data:
|
|
6064
|
-
role:
|
|
6065
|
-
contentLabel:
|
|
6066
|
-
shouldCloseOnEsc:
|
|
6067
|
-
overlayRef:
|
|
6068
|
-
contentRef:
|
|
6069
|
-
id:
|
|
6070
|
-
overlayElement:
|
|
6071
|
-
contentElement:
|
|
6251
|
+
appElement: T.default.oneOfType([T.default.instanceOf(Bn.default), T.default.instanceOf(Qe.SafeHTMLCollection), T.default.instanceOf(Qe.SafeNodeList), T.default.arrayOf(T.default.instanceOf(Bn.default))]),
|
|
6252
|
+
onAfterOpen: T.default.func,
|
|
6253
|
+
onRequestClose: T.default.func,
|
|
6254
|
+
closeTimeoutMS: T.default.number,
|
|
6255
|
+
ariaHideApp: T.default.bool,
|
|
6256
|
+
shouldFocusAfterRender: T.default.bool,
|
|
6257
|
+
shouldCloseOnOverlayClick: T.default.bool,
|
|
6258
|
+
shouldReturnFocusAfterClose: T.default.bool,
|
|
6259
|
+
preventScroll: T.default.bool,
|
|
6260
|
+
parentSelector: T.default.func,
|
|
6261
|
+
aria: T.default.object,
|
|
6262
|
+
data: T.default.object,
|
|
6263
|
+
role: T.default.string,
|
|
6264
|
+
contentLabel: T.default.string,
|
|
6265
|
+
shouldCloseOnEsc: T.default.bool,
|
|
6266
|
+
overlayRef: T.default.func,
|
|
6267
|
+
contentRef: T.default.func,
|
|
6268
|
+
id: T.default.string,
|
|
6269
|
+
overlayElement: T.default.func,
|
|
6270
|
+
contentElement: T.default.func
|
|
6072
6271
|
};
|
|
6073
6272
|
ft.defaultProps = {
|
|
6074
6273
|
isOpen: !1,
|
|
6075
|
-
portalClassName:
|
|
6076
|
-
bodyOpenClassName:
|
|
6274
|
+
portalClassName: mu,
|
|
6275
|
+
bodyOpenClassName: du,
|
|
6077
6276
|
role: "dialog",
|
|
6078
6277
|
ariaHideApp: !0,
|
|
6079
6278
|
closeTimeoutMS: 0,
|
|
@@ -6124,7 +6323,7 @@ ft.defaultStyles = {
|
|
|
6124
6323
|
padding: "20px"
|
|
6125
6324
|
}
|
|
6126
6325
|
};
|
|
6127
|
-
(0,
|
|
6326
|
+
(0, su.polyfill)(ft);
|
|
6128
6327
|
process.env.NODE_ENV !== "production" && (ft.setCreateHTMLElement = function(e) {
|
|
6129
6328
|
return Tr = e;
|
|
6130
6329
|
});
|
|
@@ -6139,22 +6338,23 @@ nt.default = ft;
|
|
|
6139
6338
|
}
|
|
6140
6339
|
t.default = n.default, e.exports = t.default;
|
|
6141
6340
|
})(Jr, Jr.exports);
|
|
6142
|
-
var
|
|
6143
|
-
const
|
|
6341
|
+
var pu = Jr.exports;
|
|
6342
|
+
const fu = /* @__PURE__ */ Za(pu), vu = ({
|
|
6144
6343
|
visible: e,
|
|
6145
6344
|
closeModal: t,
|
|
6146
6345
|
versionId: r,
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6346
|
+
gameId: n,
|
|
6347
|
+
versionName: A,
|
|
6348
|
+
playableId: a,
|
|
6349
|
+
typeOfProduct: o,
|
|
6350
|
+
api: i,
|
|
6351
|
+
user: c,
|
|
6352
|
+
title: u,
|
|
6353
|
+
iframeUrl: l,
|
|
6354
|
+
handleDownloadError: m,
|
|
6355
|
+
fetchFileUrl: v
|
|
6156
6356
|
}) => /* @__PURE__ */ y.jsxs(
|
|
6157
|
-
|
|
6357
|
+
fu,
|
|
6158
6358
|
{
|
|
6159
6359
|
isOpen: e,
|
|
6160
6360
|
ariaHideApp: !1,
|
|
@@ -6215,26 +6415,27 @@ const pu = /* @__PURE__ */ Za(du), hu = ({
|
|
|
6215
6415
|
/* @__PURE__ */ y.jsx(
|
|
6216
6416
|
Ni,
|
|
6217
6417
|
{
|
|
6218
|
-
versionName:
|
|
6418
|
+
versionName: A,
|
|
6219
6419
|
versionId: r,
|
|
6220
|
-
typeOfProduct:
|
|
6221
|
-
iframeUrl:
|
|
6222
|
-
api:
|
|
6223
|
-
fetchFileUrl:
|
|
6420
|
+
typeOfProduct: o,
|
|
6421
|
+
iframeUrl: l,
|
|
6422
|
+
api: i,
|
|
6423
|
+
fetchFileUrl: v
|
|
6224
6424
|
}
|
|
6225
6425
|
),
|
|
6226
6426
|
/* @__PURE__ */ y.jsx(
|
|
6227
|
-
|
|
6427
|
+
is,
|
|
6228
6428
|
{
|
|
6229
6429
|
visible: e,
|
|
6230
6430
|
versionId: r,
|
|
6231
|
-
playableId:
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6431
|
+
playableId: a,
|
|
6432
|
+
gameId: n,
|
|
6433
|
+
typeOfProduct: o,
|
|
6434
|
+
api: i,
|
|
6435
|
+
user: c,
|
|
6436
|
+
title: u,
|
|
6437
|
+
handleDownloadError: m,
|
|
6438
|
+
fetchFileUrl: v
|
|
6238
6439
|
}
|
|
6239
6440
|
)
|
|
6240
6441
|
] }),
|
|
@@ -6243,6 +6444,6 @@ const pu = /* @__PURE__ */ Za(du), hu = ({
|
|
|
6243
6444
|
}
|
|
6244
6445
|
);
|
|
6245
6446
|
export {
|
|
6246
|
-
|
|
6447
|
+
vu as DownloadModal
|
|
6247
6448
|
};
|
|
6248
6449
|
//# sourceMappingURL=index.es.js.map
|