gearboxdownloadmodal 3.0.1 → 3.0.3
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 +143 -141
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -370,7 +370,7 @@ function Ka() {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
var $A = Array.isArray;
|
|
373
|
-
function
|
|
373
|
+
function lr(s) {
|
|
374
374
|
return $A(s);
|
|
375
375
|
}
|
|
376
376
|
function ea(s) {
|
|
@@ -398,8 +398,8 @@ function Ka() {
|
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
400
400
|
__source: !0
|
|
401
|
-
}, sn, un,
|
|
402
|
-
|
|
401
|
+
}, sn, un, cr;
|
|
402
|
+
cr = {};
|
|
403
403
|
function na(s) {
|
|
404
404
|
if (Lt.call(s, "ref")) {
|
|
405
405
|
var Z = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
@@ -419,7 +419,7 @@ function Ka() {
|
|
|
419
419
|
function aa(s, Z) {
|
|
420
420
|
if (typeof s.ref == "string" && qt.current && Z && qt.current.stateNode !== Z) {
|
|
421
421
|
var O = R(qt.current.type);
|
|
422
|
-
|
|
422
|
+
cr[O] || (Y('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', R(qt.current.type), s.ref), cr[O] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function oa(s, Z) {
|
|
@@ -491,7 +491,7 @@ function Ka() {
|
|
|
491
491
|
return sa(s, U, ge, re, N, qt.current, F);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var
|
|
494
|
+
var mr = K.ReactCurrentOwner, ln = K.ReactDebugCurrentFrame;
|
|
495
495
|
function ot(s) {
|
|
496
496
|
if (s) {
|
|
497
497
|
var Z = s._owner, O = Ve(s.type, s._source, Z ? Z.type : null);
|
|
@@ -499,15 +499,15 @@ function Ka() {
|
|
|
499
499
|
} else
|
|
500
500
|
ln.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
|
|
504
|
-
function
|
|
502
|
+
var dr;
|
|
503
|
+
dr = !1;
|
|
504
|
+
function pr(s) {
|
|
505
505
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
506
506
|
}
|
|
507
507
|
function cn() {
|
|
508
508
|
{
|
|
509
|
-
if (
|
|
510
|
-
var s = R(
|
|
509
|
+
if (mr.current) {
|
|
510
|
+
var s = R(mr.current.type);
|
|
511
511
|
if (s)
|
|
512
512
|
return `
|
|
513
513
|
|
|
@@ -550,25 +550,25 @@ Check the top-level render call using <` + O + ">.");
|
|
|
550
550
|
return;
|
|
551
551
|
mn[O] = !0;
|
|
552
552
|
var N = "";
|
|
553
|
-
s && s._owner && s._owner !==
|
|
553
|
+
s && s._owner && s._owner !== mr.current && (N = " It was passed a child from " + R(s._owner.type) + "."), ot(s), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, N), ot(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
function pn(s, Z) {
|
|
557
557
|
{
|
|
558
558
|
if (typeof s != "object")
|
|
559
559
|
return;
|
|
560
|
-
if (
|
|
560
|
+
if (lr(s))
|
|
561
561
|
for (var O = 0; O < s.length; O++) {
|
|
562
562
|
var N = s[O];
|
|
563
|
-
|
|
563
|
+
pr(N) && dn(N, Z);
|
|
564
564
|
}
|
|
565
|
-
else if (
|
|
565
|
+
else if (pr(s))
|
|
566
566
|
s._store && (s._store.validated = !0);
|
|
567
567
|
else if (s) {
|
|
568
568
|
var re = I(s);
|
|
569
569
|
if (typeof re == "function" && re !== s.entries)
|
|
570
570
|
for (var ie = re.call(s), F; !(F = ie.next()).done; )
|
|
571
|
-
|
|
571
|
+
pr(F.value) && dn(F.value, Z);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
@@ -589,8 +589,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
589
589
|
if (O) {
|
|
590
590
|
var N = R(Z);
|
|
591
591
|
_A(O, s.props, "prop", N, s);
|
|
592
|
-
} else if (Z.PropTypes !== void 0 && !
|
|
593
|
-
|
|
592
|
+
} else if (Z.PropTypes !== void 0 && !dr) {
|
|
593
|
+
dr = !0;
|
|
594
594
|
var re = R(Z);
|
|
595
595
|
Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", re || "Unknown");
|
|
596
596
|
}
|
|
@@ -618,7 +618,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
618
618
|
var ge = la(re);
|
|
619
619
|
ge ? U += ge : U += cn();
|
|
620
620
|
var ce;
|
|
621
|
-
s === null ? ce = "null" :
|
|
621
|
+
s === null ? ce = "null" : lr(s) ? ce = "array" : s !== void 0 && s.$$typeof === t ? (ce = "<" + (R(s.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof s, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, U);
|
|
622
622
|
}
|
|
623
623
|
var de = ua(s, Z, O, re, ie);
|
|
624
624
|
if (de == null)
|
|
@@ -627,7 +627,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
627
627
|
var Ie = Z.children;
|
|
628
628
|
if (Ie !== void 0)
|
|
629
629
|
if (N)
|
|
630
|
-
if (
|
|
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);
|
|
@@ -668,7 +668,7 @@ const wa = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZX
|
|
|
668
668
|
display: "flex",
|
|
669
669
|
maxHeight: t > 1200 ? "750px" : "650px",
|
|
670
670
|
height: 750,
|
|
671
|
-
width: t > 1200 ? "1062px" : "
|
|
671
|
+
width: t > 1200 ? "1062px" : "900px"
|
|
672
672
|
},
|
|
673
673
|
children: e
|
|
674
674
|
}
|
|
@@ -687,13 +687,12 @@ const wa = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZX
|
|
|
687
687
|
"iframe",
|
|
688
688
|
{
|
|
689
689
|
title: "preview",
|
|
690
|
-
sandbox: "allow-same-origin",
|
|
691
690
|
src: e,
|
|
692
691
|
className: "h-full w-full rounded-xl border-none"
|
|
693
692
|
}
|
|
694
693
|
) });
|
|
695
694
|
}, Ma = ({ name: e }) => /* @__PURE__ */ y.jsx("div", { className: "mr-2 flex h-10 w-full items-center justify-center rounded-lg border border-dark-20", children: e });
|
|
696
|
-
var
|
|
695
|
+
var $t = {}, _n = {
|
|
697
696
|
MODE_NUMBER: 1,
|
|
698
697
|
MODE_ALPHA_NUM: 2,
|
|
699
698
|
MODE_8BIT_BYTE: 4,
|
|
@@ -1532,10 +1531,10 @@ object-assign
|
|
|
1532
1531
|
(c) Sindre Sorhus
|
|
1533
1532
|
@license MIT
|
|
1534
1533
|
*/
|
|
1535
|
-
var
|
|
1534
|
+
var fr, Cn;
|
|
1536
1535
|
function Ga() {
|
|
1537
1536
|
if (Cn)
|
|
1538
|
-
return
|
|
1537
|
+
return fr;
|
|
1539
1538
|
Cn = 1;
|
|
1540
1539
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
1541
1540
|
function n(a) {
|
|
@@ -1565,7 +1564,7 @@ function Ga() {
|
|
|
1565
1564
|
return !1;
|
|
1566
1565
|
}
|
|
1567
1566
|
}
|
|
1568
|
-
return
|
|
1567
|
+
return fr = A() ? Object.assign : function(a, o) {
|
|
1569
1568
|
for (var i, c = n(a), u, l = 1; l < arguments.length; l++) {
|
|
1570
1569
|
i = Object(arguments[l]);
|
|
1571
1570
|
for (var m in i)
|
|
@@ -1577,24 +1576,24 @@ function Ga() {
|
|
|
1577
1576
|
}
|
|
1578
1577
|
}
|
|
1579
1578
|
return c;
|
|
1580
|
-
},
|
|
1579
|
+
}, fr;
|
|
1581
1580
|
}
|
|
1582
|
-
var
|
|
1581
|
+
var qr, In;
|
|
1583
1582
|
function Hr() {
|
|
1584
1583
|
if (In)
|
|
1585
|
-
return
|
|
1584
|
+
return qr;
|
|
1586
1585
|
In = 1;
|
|
1587
1586
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1588
|
-
return
|
|
1587
|
+
return qr = e, qr;
|
|
1589
1588
|
}
|
|
1590
|
-
var
|
|
1589
|
+
var hr, Kn;
|
|
1591
1590
|
function iA() {
|
|
1592
|
-
return Kn || (Kn = 1,
|
|
1591
|
+
return Kn || (Kn = 1, hr = Function.call.bind(Object.prototype.hasOwnProperty)), hr;
|
|
1593
1592
|
}
|
|
1594
|
-
var
|
|
1593
|
+
var vr, wn;
|
|
1595
1594
|
function Ra() {
|
|
1596
1595
|
if (wn)
|
|
1597
|
-
return
|
|
1596
|
+
return vr;
|
|
1598
1597
|
wn = 1;
|
|
1599
1598
|
var e = function() {
|
|
1600
1599
|
};
|
|
@@ -1639,12 +1638,12 @@ function Ra() {
|
|
|
1639
1638
|
}
|
|
1640
1639
|
return A.resetWarningCache = function() {
|
|
1641
1640
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
1642
|
-
},
|
|
1641
|
+
}, vr = A, vr;
|
|
1643
1642
|
}
|
|
1644
|
-
var
|
|
1643
|
+
var gr, Wn;
|
|
1645
1644
|
function Ta() {
|
|
1646
1645
|
if (Wn)
|
|
1647
|
-
return
|
|
1646
|
+
return gr;
|
|
1648
1647
|
Wn = 1;
|
|
1649
1648
|
var e = oA(), t = Ga(), r = Hr(), n = iA(), A = Ra(), a = function() {
|
|
1650
1649
|
};
|
|
@@ -1659,7 +1658,7 @@ function Ta() {
|
|
|
1659
1658
|
function o() {
|
|
1660
1659
|
return null;
|
|
1661
1660
|
}
|
|
1662
|
-
return
|
|
1661
|
+
return gr = function(i, c) {
|
|
1663
1662
|
var u = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
1664
1663
|
function m(b) {
|
|
1665
1664
|
var C = b && (u && b[u] || b[l]);
|
|
@@ -1961,19 +1960,19 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
1961
1960
|
return !b.constructor || !b.constructor.name ? g : b.constructor.name;
|
|
1962
1961
|
}
|
|
1963
1962
|
return f.checkPropTypes = A, f.resetWarningCache = A.resetWarningCache, f.PropTypes = f, f;
|
|
1964
|
-
},
|
|
1963
|
+
}, gr;
|
|
1965
1964
|
}
|
|
1966
|
-
var
|
|
1965
|
+
var yr, On;
|
|
1967
1966
|
function Ha() {
|
|
1968
1967
|
if (On)
|
|
1969
|
-
return
|
|
1968
|
+
return yr;
|
|
1970
1969
|
On = 1;
|
|
1971
1970
|
var e = Hr();
|
|
1972
1971
|
function t() {
|
|
1973
1972
|
}
|
|
1974
1973
|
function r() {
|
|
1975
1974
|
}
|
|
1976
|
-
return r.resetWarningCache = t,
|
|
1975
|
+
return r.resetWarningCache = t, yr = function() {
|
|
1977
1976
|
function n(o, i, c, u, l, m) {
|
|
1978
1977
|
if (m !== e) {
|
|
1979
1978
|
var g = new Error(
|
|
@@ -2010,14 +2009,14 @@ function Ha() {
|
|
|
2010
2009
|
resetWarningCache: t
|
|
2011
2010
|
};
|
|
2012
2011
|
return a.PropTypes = a, a;
|
|
2013
|
-
},
|
|
2012
|
+
}, yr;
|
|
2014
2013
|
}
|
|
2015
2014
|
if (process.env.NODE_ENV !== "production") {
|
|
2016
2015
|
var Xa = oA(), Qa = !0;
|
|
2017
2016
|
Sr.exports = Ta()(Xa.isElement, Qa);
|
|
2018
2017
|
} else
|
|
2019
2018
|
Sr.exports = Ha()();
|
|
2020
|
-
var
|
|
2019
|
+
var er = Sr.exports, Xr = {};
|
|
2021
2020
|
Object.defineProperty(Xr, "__esModule", {
|
|
2022
2021
|
value: !0
|
|
2023
2022
|
});
|
|
@@ -2028,7 +2027,7 @@ var Pa = Object.assign || function(e) {
|
|
|
2028
2027
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2029
2028
|
}
|
|
2030
2029
|
return e;
|
|
2031
|
-
}, Va =
|
|
2030
|
+
}, Va = er, we = uA(Va), sA = ne, zt = uA(sA);
|
|
2032
2031
|
function uA(e) {
|
|
2033
2032
|
return e && e.__esModule ? e : { default: e };
|
|
2034
2033
|
}
|
|
@@ -2050,7 +2049,7 @@ var Ua = {
|
|
|
2050
2049
|
}, Fa = {
|
|
2051
2050
|
title: void 0,
|
|
2052
2051
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2053
|
-
},
|
|
2052
|
+
}, tr = (0, sA.forwardRef)(function(e, t) {
|
|
2054
2053
|
var r = e.bgColor, n = e.bgD, A = e.fgD, a = e.fgColor, o = e.size, i = e.title, c = e.viewBoxSize, u = Ba(e, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize"]);
|
|
2055
2054
|
return zt.default.createElement(
|
|
2056
2055
|
"svg",
|
|
@@ -2064,14 +2063,14 @@ var Ua = {
|
|
|
2064
2063
|
zt.default.createElement("path", { d: A, fill: a })
|
|
2065
2064
|
);
|
|
2066
2065
|
});
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
Xr.default =
|
|
2071
|
-
Object.defineProperty(
|
|
2066
|
+
tr.displayName = "QRCodeSvg";
|
|
2067
|
+
tr.propTypes = Ua;
|
|
2068
|
+
tr.defaultProps = Fa;
|
|
2069
|
+
Xr.default = tr;
|
|
2070
|
+
Object.defineProperty($t, "__esModule", {
|
|
2072
2071
|
value: !0
|
|
2073
2072
|
});
|
|
2074
|
-
|
|
2073
|
+
$t.QRCode = void 0;
|
|
2075
2074
|
var _a = Object.assign || function(e) {
|
|
2076
2075
|
for (var t = 1; t < arguments.length; t++) {
|
|
2077
2076
|
var r = arguments[t];
|
|
@@ -2079,7 +2078,7 @@ var _a = Object.assign || function(e) {
|
|
|
2079
2078
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2080
2079
|
}
|
|
2081
2080
|
return e;
|
|
2082
|
-
}, $a = Ja, eo = wt($a), to = eA, ro = wt(to), no =
|
|
2081
|
+
}, $a = Ja, eo = wt($a), to = eA, ro = wt(to), no = er, De = wt(no), lA = ne, Ao = wt(lA), ao = Xr, oo = wt(ao);
|
|
2083
2082
|
function wt(e) {
|
|
2084
2083
|
return e && e.__esModule ? e : { default: e };
|
|
2085
2084
|
}
|
|
@@ -2122,11 +2121,11 @@ var so = {
|
|
|
2122
2121
|
viewBoxSize: u.length
|
|
2123
2122
|
}));
|
|
2124
2123
|
});
|
|
2125
|
-
|
|
2124
|
+
$t.QRCode = Wt;
|
|
2126
2125
|
Wt.displayName = "QRCode";
|
|
2127
2126
|
Wt.propTypes = so;
|
|
2128
2127
|
Wt.defaultProps = uo;
|
|
2129
|
-
var lo =
|
|
2128
|
+
var lo = $t.default = Wt;
|
|
2130
2129
|
const cA = ({
|
|
2131
2130
|
title: e,
|
|
2132
2131
|
titleId: t,
|
|
@@ -2171,10 +2170,10 @@ function mA(e, t) {
|
|
|
2171
2170
|
return e.apply(t, arguments);
|
|
2172
2171
|
};
|
|
2173
2172
|
}
|
|
2174
|
-
const { toString: co } = Object.prototype, { getPrototypeOf: Qr } = Object,
|
|
2173
|
+
const { toString: co } = Object.prototype, { getPrototypeOf: Qr } = Object, rr = ((e) => (t) => {
|
|
2175
2174
|
const r = co.call(t);
|
|
2176
2175
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
2177
|
-
})(/* @__PURE__ */ Object.create(null)), Je = (e) => (e = e.toLowerCase(), (t) =>
|
|
2176
|
+
})(/* @__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");
|
|
2178
2177
|
function mo(e) {
|
|
2179
2178
|
return e !== null && !Ct(e) && e.constructor !== null && !Ct(e.constructor) && Oe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2180
2179
|
}
|
|
@@ -2183,14 +2182,14 @@ function po(e) {
|
|
|
2183
2182
|
let t;
|
|
2184
2183
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dA(e.buffer), t;
|
|
2185
2184
|
}
|
|
2186
|
-
const fo =
|
|
2187
|
-
if (
|
|
2185
|
+
const fo = nr("string"), Oe = nr("function"), pA = nr("number"), Ar = (e) => e !== null && typeof e == "object", qo = (e) => e === !0 || e === !1, Dt = (e) => {
|
|
2186
|
+
if (rr(e) !== "object")
|
|
2188
2187
|
return !1;
|
|
2189
2188
|
const t = Qr(e);
|
|
2190
2189
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
2191
|
-
}, ho = Je("Date"), vo = Je("File"), go = Je("Blob"), yo = Je("FileList"), bo = (e) =>
|
|
2190
|
+
}, ho = Je("Date"), vo = Je("File"), go = Je("Blob"), yo = Je("FileList"), bo = (e) => Ar(e) && Oe(e.pipe), Zo = (e) => {
|
|
2192
2191
|
let t;
|
|
2193
|
-
return e && (typeof FormData == "function" && e instanceof FormData || Oe(e.append) && ((t =
|
|
2192
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Oe(e.append) && ((t = rr(e)) === "formdata" || // detect form-data instance
|
|
2194
2193
|
t === "object" && Oe(e.toString) && e.toString() === "[object FormData]"));
|
|
2195
2194
|
}, Co = Je("URLSearchParams"), Io = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2196
2195
|
function Ot(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
@@ -2306,10 +2305,10 @@ const Ko = (e, t, r, { allOwnKeys: n } = {}) => (Ot(t, (A, a) => {
|
|
|
2306
2305
|
};
|
|
2307
2306
|
return mt(e) ? n(e) : n(String(e).split(t)), r;
|
|
2308
2307
|
}, No = () => {
|
|
2309
|
-
}, Do = (e, t) => (e = +e, Number.isFinite(e) ? e : t),
|
|
2308
|
+
}, Do = (e, t) => (e = +e, Number.isFinite(e) ? e : t), br = "abcdefghijklmnopqrstuvwxyz", Sn = "0123456789", gA = {
|
|
2310
2309
|
DIGIT: Sn,
|
|
2311
|
-
ALPHA:
|
|
2312
|
-
ALPHA_DIGIT:
|
|
2310
|
+
ALPHA: br,
|
|
2311
|
+
ALPHA_DIGIT: br + br.toUpperCase() + Sn
|
|
2313
2312
|
}, Go = (e = 16, t = gA.ALPHA_DIGIT) => {
|
|
2314
2313
|
let r = "";
|
|
2315
2314
|
const { length: n } = t;
|
|
@@ -2322,7 +2321,7 @@ function Ro(e) {
|
|
|
2322
2321
|
}
|
|
2323
2322
|
const To = (e) => {
|
|
2324
2323
|
const t = new Array(10), r = (n, A) => {
|
|
2325
|
-
if (
|
|
2324
|
+
if (Ar(n)) {
|
|
2326
2325
|
if (t.indexOf(n) >= 0)
|
|
2327
2326
|
return;
|
|
2328
2327
|
if (!("toJSON" in n)) {
|
|
@@ -2337,7 +2336,7 @@ const To = (e) => {
|
|
|
2337
2336
|
return n;
|
|
2338
2337
|
};
|
|
2339
2338
|
return r(e, 0);
|
|
2340
|
-
}, Ho = Je("AsyncFunction"), Xo = (e) => e && (
|
|
2339
|
+
}, Ho = Je("AsyncFunction"), Xo = (e) => e && (Ar(e) || Oe(e)) && Oe(e.then) && Oe(e.catch), h = {
|
|
2341
2340
|
isArray: mt,
|
|
2342
2341
|
isArrayBuffer: dA,
|
|
2343
2342
|
isBuffer: mo,
|
|
@@ -2346,7 +2345,7 @@ const To = (e) => {
|
|
|
2346
2345
|
isString: fo,
|
|
2347
2346
|
isNumber: pA,
|
|
2348
2347
|
isBoolean: qo,
|
|
2349
|
-
isObject:
|
|
2348
|
+
isObject: Ar,
|
|
2350
2349
|
isPlainObject: Dt,
|
|
2351
2350
|
isUndefined: Ct,
|
|
2352
2351
|
isDate: ho,
|
|
@@ -2365,7 +2364,7 @@ const To = (e) => {
|
|
|
2365
2364
|
stripBOM: wo,
|
|
2366
2365
|
inherits: Wo,
|
|
2367
2366
|
toFlatObject: Oo,
|
|
2368
|
-
kindOf:
|
|
2367
|
+
kindOf: rr,
|
|
2369
2368
|
kindOfTest: Je,
|
|
2370
2369
|
endsWith: Mo,
|
|
2371
2370
|
toArray: So,
|
|
@@ -2459,7 +2458,7 @@ function Po(e) {
|
|
|
2459
2458
|
const Vo = h.toFlatObject(h, {}, null, function(t) {
|
|
2460
2459
|
return /^is[A-Z]/.test(t);
|
|
2461
2460
|
});
|
|
2462
|
-
function
|
|
2461
|
+
function ar(e, t, r) {
|
|
2463
2462
|
if (!h.isObject(e))
|
|
2464
2463
|
throw new TypeError("target must be an object");
|
|
2465
2464
|
t = t || new FormData(), r = h.toFlatObject(r, {
|
|
@@ -2536,7 +2535,7 @@ function En(e) {
|
|
|
2536
2535
|
});
|
|
2537
2536
|
}
|
|
2538
2537
|
function Pr(e, t) {
|
|
2539
|
-
this._pairs = [], e &&
|
|
2538
|
+
this._pairs = [], e && ar(e, this, t);
|
|
2540
2539
|
}
|
|
2541
2540
|
const CA = Pr.prototype;
|
|
2542
2541
|
CA.append = function(t, r) {
|
|
@@ -2638,7 +2637,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
2638
2637
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2639
2638
|
};
|
|
2640
2639
|
function ri(e, t) {
|
|
2641
|
-
return
|
|
2640
|
+
return ar(e, new Le.classes.URLSearchParams(), Object.assign({
|
|
2642
2641
|
visitor: function(r, n, A, a) {
|
|
2643
2642
|
return Le.isNode && h.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
2644
2643
|
}
|
|
@@ -2699,7 +2698,7 @@ const Vr = {
|
|
|
2699
2698
|
return ri(t, this.formSerializer).toString();
|
|
2700
2699
|
if ((i = h.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
2701
2700
|
const c = this.env && this.env.FormData;
|
|
2702
|
-
return
|
|
2701
|
+
return ar(
|
|
2703
2702
|
i ? { "files[]": t } : t,
|
|
2704
2703
|
c && new c(),
|
|
2705
2704
|
this.formSerializer
|
|
@@ -2787,7 +2786,7 @@ function si(e) {
|
|
|
2787
2786
|
return t;
|
|
2788
2787
|
}
|
|
2789
2788
|
const ui = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2790
|
-
function
|
|
2789
|
+
function Zr(e, t, r, n, A) {
|
|
2791
2790
|
if (h.isFunction(n))
|
|
2792
2791
|
return n.call(this, t, r);
|
|
2793
2792
|
if (A && (t = r), !!h.isString(t)) {
|
|
@@ -2811,7 +2810,7 @@ function ci(e, t) {
|
|
|
2811
2810
|
});
|
|
2812
2811
|
});
|
|
2813
2812
|
}
|
|
2814
|
-
class
|
|
2813
|
+
class or {
|
|
2815
2814
|
constructor(t) {
|
|
2816
2815
|
t && this.set(t);
|
|
2817
2816
|
}
|
|
@@ -2847,7 +2846,7 @@ class ar {
|
|
|
2847
2846
|
has(t, r) {
|
|
2848
2847
|
if (t = gt(t), t) {
|
|
2849
2848
|
const n = h.findKey(this, t);
|
|
2850
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
2849
|
+
return !!(n && this[n] !== void 0 && (!r || Zr(this, this[n], n, r)));
|
|
2851
2850
|
}
|
|
2852
2851
|
return !1;
|
|
2853
2852
|
}
|
|
@@ -2857,7 +2856,7 @@ class ar {
|
|
|
2857
2856
|
function a(o) {
|
|
2858
2857
|
if (o = gt(o), o) {
|
|
2859
2858
|
const i = h.findKey(n, o);
|
|
2860
|
-
i && (!r ||
|
|
2859
|
+
i && (!r || Zr(n, n[i], i, r)) && (delete n[i], A = !0);
|
|
2861
2860
|
}
|
|
2862
2861
|
}
|
|
2863
2862
|
return h.isArray(t) ? t.forEach(a) : a(t), A;
|
|
@@ -2867,7 +2866,7 @@ class ar {
|
|
|
2867
2866
|
let n = r.length, A = !1;
|
|
2868
2867
|
for (; n--; ) {
|
|
2869
2868
|
const a = r[n];
|
|
2870
|
-
(!t ||
|
|
2869
|
+
(!t || Zr(this, this[a], a, t, !0)) && (delete this[a], A = !0);
|
|
2871
2870
|
}
|
|
2872
2871
|
return A;
|
|
2873
2872
|
}
|
|
@@ -2920,8 +2919,8 @@ class ar {
|
|
|
2920
2919
|
return h.isArray(t) ? t.forEach(a) : a(t), this;
|
|
2921
2920
|
}
|
|
2922
2921
|
}
|
|
2923
|
-
|
|
2924
|
-
h.reduceDescriptors(
|
|
2922
|
+
or.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2923
|
+
h.reduceDescriptors(or.prototype, ({ value: e }, t) => {
|
|
2925
2924
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
2926
2925
|
return {
|
|
2927
2926
|
get: () => e,
|
|
@@ -2930,9 +2929,9 @@ h.reduceDescriptors(ar.prototype, ({ value: e }, t) => {
|
|
|
2930
2929
|
}
|
|
2931
2930
|
};
|
|
2932
2931
|
});
|
|
2933
|
-
h.freezeMethods(
|
|
2934
|
-
const Ge =
|
|
2935
|
-
function
|
|
2932
|
+
h.freezeMethods(or);
|
|
2933
|
+
const Ge = or;
|
|
2934
|
+
function Cr(e, t) {
|
|
2936
2935
|
const r = this || Br, n = t || r, A = Ge.from(n.headers);
|
|
2937
2936
|
let a = n.data;
|
|
2938
2937
|
return h.forEach(e, function(i) {
|
|
@@ -3167,22 +3166,22 @@ const MA = {
|
|
|
3167
3166
|
},
|
|
3168
3167
|
adapters: Rt
|
|
3169
3168
|
};
|
|
3170
|
-
function
|
|
3169
|
+
function Ir(e) {
|
|
3171
3170
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
3172
3171
|
throw new Mt(null, e);
|
|
3173
3172
|
}
|
|
3174
3173
|
function kn(e) {
|
|
3175
|
-
return
|
|
3174
|
+
return Ir(e), e.headers = Ge.from(e.headers), e.data = Cr.call(
|
|
3176
3175
|
e,
|
|
3177
3176
|
e.transformRequest
|
|
3178
3177
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), MA.getAdapter(e.adapter || Br.adapter)(e).then(function(n) {
|
|
3179
|
-
return
|
|
3178
|
+
return Ir(e), n.data = Cr.call(
|
|
3180
3179
|
e,
|
|
3181
3180
|
e.transformResponse,
|
|
3182
3181
|
n
|
|
3183
3182
|
), n.headers = Ge.from(n.headers), n;
|
|
3184
3183
|
}, function(n) {
|
|
3185
|
-
return WA(n) || (
|
|
3184
|
+
return WA(n) || (Ir(e), n && n.response && (n.response.data = Cr.call(
|
|
3186
3185
|
e,
|
|
3187
3186
|
e.transformResponse,
|
|
3188
3187
|
n.response
|
|
@@ -3301,7 +3300,7 @@ const Yr = {
|
|
|
3301
3300
|
assertOptions: bi,
|
|
3302
3301
|
validators: Ur
|
|
3303
3302
|
}, He = Yr.validators;
|
|
3304
|
-
class
|
|
3303
|
+
class Qt {
|
|
3305
3304
|
constructor(t) {
|
|
3306
3305
|
this.defaults = t, this.interceptors = {
|
|
3307
3306
|
request: new Yn(),
|
|
@@ -3382,7 +3381,7 @@ class Xt {
|
|
|
3382
3381
|
}
|
|
3383
3382
|
}
|
|
3384
3383
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
3385
|
-
|
|
3384
|
+
Qt.prototype[t] = function(r, n) {
|
|
3386
3385
|
return this.request(ct(n || {}, {
|
|
3387
3386
|
method: t,
|
|
3388
3387
|
url: r,
|
|
@@ -3403,9 +3402,9 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
3403
3402
|
}));
|
|
3404
3403
|
};
|
|
3405
3404
|
}
|
|
3406
|
-
|
|
3405
|
+
Qt.prototype[t] = r(), Qt.prototype[t + "Form"] = r(!0);
|
|
3407
3406
|
});
|
|
3408
|
-
const Tt =
|
|
3407
|
+
const Tt = Qt;
|
|
3409
3408
|
class Fr {
|
|
3410
3409
|
constructor(t) {
|
|
3411
3410
|
if (typeof t != "function")
|
|
@@ -3564,7 +3563,7 @@ pe.CanceledError = Mt;
|
|
|
3564
3563
|
pe.CancelToken = Zi;
|
|
3565
3564
|
pe.isCancel = WA;
|
|
3566
3565
|
pe.VERSION = SA;
|
|
3567
|
-
pe.toFormData =
|
|
3566
|
+
pe.toFormData = ar;
|
|
3568
3567
|
pe.AxiosError = $;
|
|
3569
3568
|
pe.Cancel = pe.CanceledError;
|
|
3570
3569
|
pe.all = function(t) {
|
|
@@ -3654,7 +3653,7 @@ const Re = wi.create({
|
|
|
3654
3653
|
Authorization: jA
|
|
3655
3654
|
}
|
|
3656
3655
|
});
|
|
3657
|
-
async function
|
|
3656
|
+
async function Pt(e, t, r, n, A, a, o, i) {
|
|
3658
3657
|
return (await Re.post(e + "/createPlayableVersionLink", {
|
|
3659
3658
|
_id: t,
|
|
3660
3659
|
nano: r,
|
|
@@ -3683,7 +3682,7 @@ function Xe() {
|
|
|
3683
3682
|
(e = arguments[r++]) && (t = JA(e)) && (n && (n += " "), n += t);
|
|
3684
3683
|
return n;
|
|
3685
3684
|
}
|
|
3686
|
-
const bt = (e) => typeof e == "number" && !isNaN(e), rt = (e) => typeof e == "string", ye = (e) => typeof e == "function", Ht = (e) => rt(e) || ye(e) ? e : null,
|
|
3685
|
+
const bt = (e) => typeof e == "number" && !isNaN(e), rt = (e) => typeof e == "string", ye = (e) => typeof e == "function", Ht = (e) => rt(e) || ye(e) ? e : null, Kr = (e) => lt(e) || rt(e) || ye(e) || bt(e);
|
|
3687
3686
|
function Si(e, t, r) {
|
|
3688
3687
|
r === void 0 && (r = 300);
|
|
3689
3688
|
const { scrollHeight: n, style: A } = e;
|
|
@@ -3693,7 +3692,7 @@ function Si(e, t, r) {
|
|
|
3693
3692
|
});
|
|
3694
3693
|
});
|
|
3695
3694
|
}
|
|
3696
|
-
function
|
|
3695
|
+
function ir(e) {
|
|
3697
3696
|
let { enter: t, exit: r, appendPosition: n = !1, collapse: A = !0, collapseDuration: a = 300 } = e;
|
|
3698
3697
|
return function(o) {
|
|
3699
3698
|
let { children: i, position: c, preventExitTransition: u, done: l, nodeRef: m, isIn: g } = o;
|
|
@@ -3735,7 +3734,7 @@ const We = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3735
3734
|
} }, kt = (e) => {
|
|
3736
3735
|
let { theme: t, type: r, ...n } = e;
|
|
3737
3736
|
return ne.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${r})`, ...n });
|
|
3738
|
-
},
|
|
3737
|
+
}, wr = { info: function(e) {
|
|
3739
3738
|
return ne.createElement(kt, { ...e }, ne.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" }));
|
|
3740
3739
|
}, warning: function(e) {
|
|
3741
3740
|
return ne.createElement(kt, { ...e }, ne.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" }));
|
|
@@ -3762,7 +3761,7 @@ function Li(e) {
|
|
|
3762
3761
|
}
|
|
3763
3762
|
function m(f, p) {
|
|
3764
3763
|
let { delay: v, staleId: I, ...K } = p;
|
|
3765
|
-
if (!
|
|
3764
|
+
if (!Kr(f) || function(H) {
|
|
3766
3765
|
return !A.current || i.props.enableMultiContainer && H.containerId !== i.props.containerId || a.has(H.toastId) && H.updateId == null;
|
|
3767
3766
|
}(K))
|
|
3768
3767
|
return;
|
|
@@ -3792,8 +3791,8 @@ function Li(e) {
|
|
|
3792
3791
|
G.iconOut = function(H) {
|
|
3793
3792
|
let { theme: R, type: w, isLoading: L, icon: S } = H, d = null;
|
|
3794
3793
|
const E = { theme: R, type: w };
|
|
3795
|
-
return S === !1 || (ye(S) ? d = S(E) : lt(S) ? d = Or(S, E) : rt(S) || bt(S) ? d = S : L ? d =
|
|
3796
|
-
}(G), ye(K.onOpen) && (G.onOpen = K.onOpen), ye(K.onClose) && (G.onClose = K.onClose), G.closeButton = q.closeButton, K.closeButton === !1 ||
|
|
3794
|
+
return S === !1 || (ye(S) ? d = S(E) : lt(S) ? d = Or(S, E) : rt(S) || bt(S) ? d = S : L ? d = wr.spinner() : ((te) => te in wr)(w) && (d = wr[w](E))), d;
|
|
3795
|
+
}(G), ye(K.onOpen) && (G.onOpen = K.onOpen), ye(K.onClose) && (G.onClose = K.onClose), G.closeButton = q.closeButton, K.closeButton === !1 || Kr(K.closeButton) ? G.closeButton = K.closeButton : K.closeButton === !0 && (G.closeButton = !Kr(q.closeButton) || q.closeButton);
|
|
3797
3796
|
let ee = f;
|
|
3798
3797
|
lt(f) && !rt(f.type) ? ee = Or(f, { closeToast: se, toastProps: G, data: W }) : ye(f) && (ee = f({ closeToast: se, toastProps: G, data: W })), q.limit && q.limit > 0 && i.count > q.limit && J ? i.queue.push({ toastContent: ee, toastProps: G, staleId: I }) : bt(v) ? setTimeout(() => {
|
|
3799
3798
|
g(ee, G, I);
|
|
@@ -3889,12 +3888,12 @@ const xi = (e) => {
|
|
|
3889
3888
|
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: g, position: f, className: p, style: v, bodyClassName: I, bodyStyle: K, progressClassName: Y, progressStyle: z, updateId: W, role: q, progress: se, rtl: J, toastId: G, deleteToast: oe, isIn: B, isLoading: ee, iconOut: H, closeOnClick: R, theme: w } = e, L = Xe("Toastify__toast", `Toastify__toast-theme--${w}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": J }, { "Toastify__toast--close-on-click": R }), S = ye(p) ? p({ rtl: J, position: f, type: u, defaultClassName: L }) : Xe(L, p), d = !!se || !i, E = { closeToast: m, type: u, theme: w };
|
|
3890
3889
|
let te = null;
|
|
3891
3890
|
return a === !1 || (te = ye(a) ? a(E) : lt(a) ? Or(a, E) : NA(E)), ne.createElement(g, { isIn: B, done: oe, position: f, preventExitTransition: r, nodeRef: n }, ne.createElement("div", { id: G, onClick: c, className: S, ...A, style: v, ref: n }, ne.createElement("div", { ...B && { role: q }, className: ye(I) ? I({ type: u }) : Xe("Toastify__toast-body", I), style: K }, H != null && ne.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ee }) }, H), ne.createElement("div", null, o)), te, ne.createElement(Yi, { ...W && !d ? { key: `pb-${W}` } : {}, rtl: J, theme: w, delay: i, isRunning: t, isIn: B, closeToast: m, hide: l, type: u, style: z, className: Y, controlledProgress: d, progress: se || 0 })));
|
|
3892
|
-
},
|
|
3891
|
+
}, sr = function(e, t) {
|
|
3893
3892
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3894
|
-
}, zi =
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3893
|
+
}, zi = ir(sr("bounce", !0));
|
|
3894
|
+
ir(sr("slide", !0));
|
|
3895
|
+
ir(sr("zoom"));
|
|
3896
|
+
ir(sr("flip"));
|
|
3898
3897
|
const kr = va((e, t) => {
|
|
3899
3898
|
const { getToastToRender: r, containerRef: n, isToastActive: A } = Li(e), { className: a, style: o, rtl: i, containerId: c } = e;
|
|
3900
3899
|
function u(l) {
|
|
@@ -3912,7 +3911,7 @@ const kr = va((e, t) => {
|
|
|
3912
3911
|
}));
|
|
3913
3912
|
});
|
|
3914
3913
|
kr.displayName = "ToastContainer", kr.defaultProps = { position: "top-right", transition: zi, autoClose: 5e3, closeButton: NA, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
3915
|
-
let
|
|
3914
|
+
let Wr, Ue = /* @__PURE__ */ new Map(), yt = [], ki = 1;
|
|
3916
3915
|
function DA() {
|
|
3917
3916
|
return "" + ki++;
|
|
3918
3917
|
}
|
|
@@ -3922,16 +3921,16 @@ function ji(e) {
|
|
|
3922
3921
|
function Zt(e, t) {
|
|
3923
3922
|
return Ue.size > 0 ? We.emit(0, e, t) : yt.push({ content: e, options: t }), t.toastId;
|
|
3924
3923
|
}
|
|
3925
|
-
function
|
|
3924
|
+
function Vt(e, t) {
|
|
3926
3925
|
return { ...t, type: t && t.type || e, toastId: ji(t) };
|
|
3927
3926
|
}
|
|
3928
3927
|
function jt(e) {
|
|
3929
|
-
return (t, r) => Zt(t,
|
|
3928
|
+
return (t, r) => Zt(t, Vt(e, r));
|
|
3930
3929
|
}
|
|
3931
3930
|
function le(e, t) {
|
|
3932
|
-
return Zt(e,
|
|
3931
|
+
return Zt(e, Vt("default", t));
|
|
3933
3932
|
}
|
|
3934
|
-
le.loading = (e, t) => Zt(e,
|
|
3933
|
+
le.loading = (e, t) => Zt(e, Vt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), le.promise = function(e, t, r) {
|
|
3935
3934
|
let n, { pending: A, error: a, success: o } = t;
|
|
3936
3935
|
A && (n = rt(A) ? le.loading(A, r) : le.loading(A.render, { ...r, ...A }));
|
|
3937
3936
|
const i = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (l, m, g) => {
|
|
@@ -3941,7 +3940,7 @@ le.loading = (e, t) => Zt(e, Pt("default", { isLoading: !0, autoClose: !1, close
|
|
|
3941
3940
|
return n ? le.update(n, { ...f, ...p }) : le(p.render, { ...f, ...p }), g;
|
|
3942
3941
|
}, u = ye(e) ? e() : e;
|
|
3943
3942
|
return u.then((l) => c("success", o, l)).catch((l) => c("error", a, l)), u;
|
|
3944
|
-
}, le.success = jt("success"), le.info = jt("info"), le.error = jt("error"), le.warning = jt("warning"), le.warn = le.warning, le.dark = (e, t) => Zt(e,
|
|
3943
|
+
}, le.success = jt("success"), le.info = jt("info"), le.error = jt("error"), le.warning = jt("warning"), le.warn = le.warning, le.dark = (e, t) => Zt(e, Vt("default", { theme: "dark", ...t })), le.dismiss = (e) => {
|
|
3945
3944
|
Ue.size > 0 ? We.emit(1, e) : yt = yt.filter((t) => e != null && t.options.toastId !== e);
|
|
3946
3945
|
}, le.clearWaitingQueue = function(e) {
|
|
3947
3946
|
return e === void 0 && (e = {}), We.emit(5, e);
|
|
@@ -3954,7 +3953,7 @@ le.loading = (e, t) => Zt(e, Pt("default", { isLoading: !0, autoClose: !1, close
|
|
|
3954
3953
|
t === void 0 && (t = {}), setTimeout(() => {
|
|
3955
3954
|
const r = function(n, A) {
|
|
3956
3955
|
let { containerId: a } = A;
|
|
3957
|
-
const o = Ue.get(a ||
|
|
3956
|
+
const o = Ue.get(a || Wr);
|
|
3958
3957
|
return o && o.getToast(n);
|
|
3959
3958
|
}(e, t);
|
|
3960
3959
|
if (r) {
|
|
@@ -3969,7 +3968,7 @@ le.loading = (e, t) => Zt(e, Pt("default", { isLoading: !0, autoClose: !1, close
|
|
|
3969
3968
|
}, le.onChange = (e) => (We.on(4, e), () => {
|
|
3970
3969
|
We.off(4, e);
|
|
3971
3970
|
}), le.POSITION = { TOP_LEFT: "top-left", TOP_RIGHT: "top-right", TOP_CENTER: "top-center", BOTTOM_LEFT: "bottom-left", BOTTOM_RIGHT: "bottom-right", BOTTOM_CENTER: "bottom-center" }, le.TYPE = { INFO: "info", SUCCESS: "success", WARNING: "warning", ERROR: "error", DEFAULT: "default" }, We.on(2, (e) => {
|
|
3972
|
-
|
|
3971
|
+
Wr = e.containerId || e, Ue.set(Wr, e), yt.forEach((t) => {
|
|
3973
3972
|
We.emit(0, t.content, t.options);
|
|
3974
3973
|
}), yt = [];
|
|
3975
3974
|
}).on(3, (e) => {
|
|
@@ -3987,7 +3986,7 @@ function ut(e) {
|
|
|
3987
3986
|
theme: "light"
|
|
3988
3987
|
});
|
|
3989
3988
|
}
|
|
3990
|
-
let
|
|
3989
|
+
let Bt = (e = 21) => {
|
|
3991
3990
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e));
|
|
3992
3991
|
for (; e--; ) {
|
|
3993
3992
|
let n = r[e] & 63;
|
|
@@ -4007,10 +4006,10 @@ const Ji = ({
|
|
|
4007
4006
|
`https://flex.playablefactory.app/preview?versionId=${e}`
|
|
4008
4007
|
), ut("Link copied");
|
|
4009
4008
|
else {
|
|
4010
|
-
const a = await
|
|
4009
|
+
const a = await Pt(
|
|
4011
4010
|
r,
|
|
4012
4011
|
e,
|
|
4013
|
-
|
|
4012
|
+
Bt(5),
|
|
4014
4013
|
"default",
|
|
4015
4014
|
!1,
|
|
4016
4015
|
0,
|
|
@@ -4651,7 +4650,7 @@ const Hn = [
|
|
|
4651
4650
|
handleDownloadError: m,
|
|
4652
4651
|
fetchFileUrl: g
|
|
4653
4652
|
}) => {
|
|
4654
|
-
const [f, p] = me(!1), [v, I] = me(
|
|
4653
|
+
const [f, p] = me(!1), [v, I] = me(Bt(5)), K = () => {
|
|
4655
4654
|
r(e);
|
|
4656
4655
|
}, Y = async (W, q, se, J, G, oe) => {
|
|
4657
4656
|
try {
|
|
@@ -4680,7 +4679,7 @@ const Hn = [
|
|
|
4680
4679
|
), H.style.display = "none", document.body.appendChild(H), H.click(), p(!1), ee;
|
|
4681
4680
|
} else {
|
|
4682
4681
|
const B = Hn.includes(q) ? 1 : 0;
|
|
4683
|
-
|
|
4682
|
+
Pt(
|
|
4684
4683
|
l,
|
|
4685
4684
|
W,
|
|
4686
4685
|
v,
|
|
@@ -4731,10 +4730,10 @@ const Hn = [
|
|
|
4731
4730
|
}
|
|
4732
4731
|
}, z = async () => {
|
|
4733
4732
|
if (c === "Playable") {
|
|
4734
|
-
const q = await
|
|
4733
|
+
const q = await Pt(
|
|
4735
4734
|
l,
|
|
4736
4735
|
u,
|
|
4737
|
-
|
|
4736
|
+
Bt(5),
|
|
4738
4737
|
A,
|
|
4739
4738
|
!1,
|
|
4740
4739
|
1,
|
|
@@ -4920,7 +4919,7 @@ const Hn = [
|
|
|
4920
4919
|
]
|
|
4921
4920
|
}
|
|
4922
4921
|
) });
|
|
4923
|
-
},
|
|
4922
|
+
}, Xt = [
|
|
4924
4923
|
{
|
|
4925
4924
|
id: "1",
|
|
4926
4925
|
name: "unity",
|
|
@@ -5231,11 +5230,11 @@ const es = ({
|
|
|
5231
5230
|
G.splice(B, 1), m(G);
|
|
5232
5231
|
} else
|
|
5233
5232
|
A === "Playable" ? (G.push(J), m([...l, J])) : (G.splice(0), G.push(J), m([J]));
|
|
5234
|
-
let oe =
|
|
5233
|
+
let oe = Xt.filter((B) => [...G].includes(B.id)).map((B) => B.name);
|
|
5235
5234
|
await W(oe);
|
|
5236
5235
|
}, se = async () => {
|
|
5237
5236
|
try {
|
|
5238
|
-
const J =
|
|
5237
|
+
const J = Xt.filter((H) => [...l].includes(H.id)).map((H) => H.name);
|
|
5239
5238
|
z(!0);
|
|
5240
5239
|
const G = await $i(n, J, a), { url: oe } = G;
|
|
5241
5240
|
let B;
|
|
@@ -5267,7 +5266,7 @@ const es = ({
|
|
|
5267
5266
|
overflow: "auto",
|
|
5268
5267
|
padding: "1.75rem"
|
|
5269
5268
|
},
|
|
5270
|
-
children: r &&
|
|
5269
|
+
children: r && Xt.filter((J) => {
|
|
5271
5270
|
var G;
|
|
5272
5271
|
return t && ((G = t == null ? void 0 : t.networks) == null ? void 0 : G.length) > 0 ? t == null ? void 0 : t.networks.includes(J.name) : e == null ? void 0 : e.networks.includes(J.name);
|
|
5273
5272
|
}).filter(
|
|
@@ -5361,10 +5360,10 @@ const os = [
|
|
|
5361
5360
|
try {
|
|
5362
5361
|
let C;
|
|
5363
5362
|
if (n === "Playable") {
|
|
5364
|
-
C = await
|
|
5363
|
+
C = await Pt(
|
|
5365
5364
|
a,
|
|
5366
5365
|
t,
|
|
5367
|
-
|
|
5366
|
+
Bt(5),
|
|
5368
5367
|
"default",
|
|
5369
5368
|
!1,
|
|
5370
5369
|
0,
|
|
@@ -5414,7 +5413,10 @@ const os = [
|
|
|
5414
5413
|
{ _id: t },
|
|
5415
5414
|
a
|
|
5416
5415
|
);
|
|
5417
|
-
v(
|
|
5416
|
+
o.role === "admin" ? v({
|
|
5417
|
+
...S,
|
|
5418
|
+
networks: Xt.map((d) => d.name)
|
|
5419
|
+
}) : v(S), z(!1);
|
|
5418
5420
|
}, R = async () => {
|
|
5419
5421
|
const S = await ns({ _id: t }, a);
|
|
5420
5422
|
K(S.size);
|
|
@@ -5699,10 +5701,10 @@ var Cs = Zs, Is = Ks(Cs);
|
|
|
5699
5701
|
function Ks(e) {
|
|
5700
5702
|
return e && e.__esModule ? e : { default: e };
|
|
5701
5703
|
}
|
|
5702
|
-
var
|
|
5703
|
-
Ee.SafeHTMLCollection =
|
|
5704
|
-
Ee.SafeNodeList =
|
|
5705
|
-
Ee.canUseDOM =
|
|
5704
|
+
var ur = Is.default, ws = ur.canUseDOM ? window.HTMLElement : {};
|
|
5705
|
+
Ee.SafeHTMLCollection = ur.canUseDOM ? window.HTMLCollection : {};
|
|
5706
|
+
Ee.SafeNodeList = ur.canUseDOM ? window.NodeList : {};
|
|
5707
|
+
Ee.canUseDOM = ur.canUseDOM;
|
|
5706
5708
|
Ee.default = ws;
|
|
5707
5709
|
Object.defineProperty(xe, "__esModule", {
|
|
5708
5710
|
value: !0
|
|
@@ -5883,16 +5885,16 @@ var PA = function e() {
|
|
|
5883
5885
|
);
|
|
5884
5886
|
});
|
|
5885
5887
|
}, this.openInstances = [], this.subscribers = [];
|
|
5886
|
-
},
|
|
5888
|
+
}, Ut = new PA();
|
|
5887
5889
|
function Hs() {
|
|
5888
|
-
console.log("portalOpenInstances ----------"), console.log(
|
|
5890
|
+
console.log("portalOpenInstances ----------"), console.log(Ut.openInstances.length), Ut.openInstances.forEach(function(e) {
|
|
5889
5891
|
return console.log(e);
|
|
5890
5892
|
}), console.log("end portalOpenInstances ----------");
|
|
5891
5893
|
}
|
|
5892
5894
|
function Xs() {
|
|
5893
|
-
|
|
5895
|
+
Ut = new PA();
|
|
5894
5896
|
}
|
|
5895
|
-
pt.default =
|
|
5897
|
+
pt.default = Ut;
|
|
5896
5898
|
var rn = {};
|
|
5897
5899
|
Object.defineProperty(rn, "__esModule", {
|
|
5898
5900
|
value: !0
|
|
@@ -5955,7 +5957,7 @@ Ps.default.subscribe(Fs);
|
|
|
5955
5957
|
return function(L, S, d) {
|
|
5956
5958
|
return S && w(L.prototype, S), d && w(L, d), L;
|
|
5957
5959
|
};
|
|
5958
|
-
}(), a = ne, o =
|
|
5960
|
+
}(), a = ne, o = er, i = q(o), c = Ye, u = W(c), l = vs, m = q(l), g = xe, f = W(g), p = dt, v = W(p), I = Ee, K = q(I), Y = pt, z = q(Y);
|
|
5959
5961
|
function W(w) {
|
|
5960
5962
|
if (w && w.__esModule)
|
|
5961
5963
|
return w;
|
|
@@ -6246,7 +6248,7 @@ var Pn = Object.assign || function(e) {
|
|
|
6246
6248
|
return function(t, r, n) {
|
|
6247
6249
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
6248
6250
|
};
|
|
6249
|
-
}(), FA = ne,
|
|
6251
|
+
}(), FA = ne, Ft = St(FA), nu = ba, _t = St(nu), Au = er, D = St(Au), au = _s, Vn = St(au), ou = xe, iu = uu(ou), Qe = Ee, Bn = St(Qe), su = tu;
|
|
6250
6252
|
function uu(e) {
|
|
6251
6253
|
if (e && e.__esModule)
|
|
6252
6254
|
return e;
|
|
@@ -6273,10 +6275,10 @@ function cu(e, t) {
|
|
|
6273
6275
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
6274
6276
|
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);
|
|
6275
6277
|
}
|
|
6276
|
-
var mu = nt.portalClassName = "ReactModalPortal", du = nt.bodyOpenClassName = "ReactModal__Body--open", Fe = Qe.canUseDOM &&
|
|
6278
|
+
var mu = nt.portalClassName = "ReactModalPortal", du = nt.bodyOpenClassName = "ReactModal__Body--open", Fe = Qe.canUseDOM && _t.default.createPortal !== void 0, Tr = function(t) {
|
|
6277
6279
|
return document.createElement(t);
|
|
6278
6280
|
}, Fn = function() {
|
|
6279
|
-
return Fe ?
|
|
6281
|
+
return Fe ? _t.default.createPortal : _t.default.unstable_renderSubtreeIntoContainer;
|
|
6280
6282
|
};
|
|
6281
6283
|
function Jt(e) {
|
|
6282
6284
|
return e();
|
|
@@ -6289,13 +6291,13 @@ var ft = function(e) {
|
|
|
6289
6291
|
for (var o = arguments.length, i = Array(o), c = 0; c < o; c++)
|
|
6290
6292
|
i[c] = arguments[c];
|
|
6291
6293
|
return a = (n = (A = Un(this, (r = t.__proto__ || Object.getPrototypeOf(t)).call.apply(r, [this].concat(i))), A), A.removePortal = function() {
|
|
6292
|
-
!Fe &&
|
|
6294
|
+
!Fe && _t.default.unmountComponentAtNode(A.node);
|
|
6293
6295
|
var u = Jt(A.props.parentSelector);
|
|
6294
6296
|
u && u.contains(A.node) ? u.removeChild(A.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
|
|
6295
6297
|
}, A.portalRef = function(u) {
|
|
6296
6298
|
A.portal = u;
|
|
6297
6299
|
}, A.renderPortal = function(u) {
|
|
6298
|
-
var l = Fn(), m = l(A,
|
|
6300
|
+
var l = Fn(), m = l(A, Ft.default.createElement(Vn.default, Pn({ defaultStyles: t.defaultStyles }, u)), A.node);
|
|
6299
6301
|
A.portalRef(m);
|
|
6300
6302
|
}, n), Un(A, a);
|
|
6301
6303
|
}
|
|
@@ -6339,7 +6341,7 @@ var ft = function(e) {
|
|
|
6339
6341
|
return null;
|
|
6340
6342
|
!this.node && Fe && (this.node = Tr("div"));
|
|
6341
6343
|
var n = Fn();
|
|
6342
|
-
return n(
|
|
6344
|
+
return n(Ft.default.createElement(Vn.default, Pn({
|
|
6343
6345
|
ref: this.portalRef,
|
|
6344
6346
|
defaultStyles: t.defaultStyles
|
|
6345
6347
|
}, this.props)), this.node);
|
|
@@ -6409,14 +6411,14 @@ ft.defaultProps = {
|
|
|
6409
6411
|
return document.body;
|
|
6410
6412
|
},
|
|
6411
6413
|
overlayElement: function(t, r) {
|
|
6412
|
-
return
|
|
6414
|
+
return Ft.default.createElement(
|
|
6413
6415
|
"div",
|
|
6414
6416
|
t,
|
|
6415
6417
|
r
|
|
6416
6418
|
);
|
|
6417
6419
|
},
|
|
6418
6420
|
contentElement: function(t, r) {
|
|
6419
|
-
return
|
|
6421
|
+
return Ft.default.createElement(
|
|
6420
6422
|
"div",
|
|
6421
6423
|
t,
|
|
6422
6424
|
r
|