frappe-react-sdk 1.3.7 → 1.3.8
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/frappe-react-sdk.es.js +338 -335
- package/dist/frappe-react-sdk.umd.js +13 -13
- package/dist/lib/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -275,22 +275,22 @@ var ri = function() {
|
|
|
275
275
|
}, n.prototype.getDocList = function(e, t) {
|
|
276
276
|
var r;
|
|
277
277
|
return Fe(this, void 0, void 0, function() {
|
|
278
|
-
var s, i, o, u, l, a, h, f, p,
|
|
279
|
-
return Ue(this, function(
|
|
280
|
-
return s = {}, t && (i = t.fields, o = t.filters, u = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, p = t.asDict,
|
|
278
|
+
var s, i, o, u, l, a, h, f, p, m, g;
|
|
279
|
+
return Ue(this, function(b) {
|
|
280
|
+
return s = {}, t && (i = t.fields, o = t.filters, u = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, p = t.asDict, m = p === void 0 ? !0 : p, g = l ? "".concat(String(l == null ? void 0 : l.field), " ").concat((r = l == null ? void 0 : l.order) !== null && r !== void 0 ? r : "asc") : "", s = {
|
|
281
281
|
fields: i ? JSON.stringify(i) : void 0,
|
|
282
282
|
filters: o ? JSON.stringify(o) : void 0,
|
|
283
283
|
or_filters: u ? JSON.stringify(u) : void 0,
|
|
284
|
-
order_by:
|
|
284
|
+
order_by: g,
|
|
285
285
|
group_by: f,
|
|
286
286
|
limit: a,
|
|
287
287
|
limit_start: h,
|
|
288
|
-
as_dict:
|
|
289
|
-
}), [2, this.axios.get("/api/resource/".concat(e), { params: s }).then(function(
|
|
290
|
-
return
|
|
291
|
-
}).catch(function(
|
|
292
|
-
var
|
|
293
|
-
throw z(z({},
|
|
288
|
+
as_dict: m
|
|
289
|
+
}), [2, this.axios.get("/api/resource/".concat(e), { params: s }).then(function(E) {
|
|
290
|
+
return E.data.data;
|
|
291
|
+
}).catch(function(E) {
|
|
292
|
+
var _, S;
|
|
293
|
+
throw z(z({}, E.response.data), { httpStatus: E.response.status, httpStatusText: E.response.statusText, message: "There was an error while fetching the documents.", exception: (S = (_ = E.response.data.exception) !== null && _ !== void 0 ? _ : E.response.data.exc_type) !== null && S !== void 0 ? S : "" });
|
|
294
294
|
})];
|
|
295
295
|
});
|
|
296
296
|
});
|
|
@@ -468,17 +468,20 @@ var oi = function() {
|
|
|
468
468
|
function n(e, t, r, s, i) {
|
|
469
469
|
this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
|
|
470
470
|
}
|
|
471
|
-
return n.prototype.uploadFile = function(e, t, r) {
|
|
472
|
-
return si(this, void 0, void 0, function() {
|
|
473
|
-
var
|
|
474
|
-
return ii(this, function(
|
|
475
|
-
return
|
|
476
|
-
|
|
477
|
-
|
|
471
|
+
return n.prototype.uploadFile = function(e, t, r, s) {
|
|
472
|
+
return s === void 0 && (s = "upload_file"), si(this, void 0, void 0, function() {
|
|
473
|
+
var i, o, u, l, a, h, f, p;
|
|
474
|
+
return ii(this, function(m) {
|
|
475
|
+
return i = new FormData(), e && i.append("file", e, e.name), o = t.isPrivate, u = t.folder, l = t.file_url, a = t.doctype, h = t.docname, f = t.fieldname, p = t.otherData, o && i.append("is_private", "1"), u && i.append("folder", u), l && i.append("file_url", l), a && h && (i.append("doctype", a), i.append("docname", h), f && i.append("fieldname", f)), p && Object.keys(p).forEach(function(g) {
|
|
476
|
+
var b = p[g];
|
|
477
|
+
i.append(g, b);
|
|
478
|
+
}), [2, this.axios.post("/api/method/".concat(s), i, {
|
|
479
|
+
onUploadProgress: function(g) {
|
|
480
|
+
r && r(g.loaded, g.total);
|
|
478
481
|
}
|
|
479
|
-
}).catch(function(
|
|
480
|
-
var
|
|
481
|
-
throw Ft(Ft({},
|
|
482
|
+
}).catch(function(g) {
|
|
483
|
+
var b, E;
|
|
484
|
+
throw Ft(Ft({}, g.response.data), { httpStatus: g.response.status, httpStatusText: g.response.statusText, message: (b = g.response.data.message) !== null && b !== void 0 ? b : "There was an error while uploading the file.", exception: (E = g.response.data.exception) !== null && E !== void 0 ? E : "" });
|
|
482
485
|
})];
|
|
483
486
|
});
|
|
484
487
|
});
|
|
@@ -836,59 +839,59 @@ function vr() {
|
|
|
836
839
|
pr = 1;
|
|
837
840
|
var n = ae, e = Oi(), t = xi(), r = ts, s = Di(), i = ki(), o = Li(), u = ss(), l = rs, a = qt();
|
|
838
841
|
return sn = function(f) {
|
|
839
|
-
return new Promise(function(
|
|
840
|
-
var
|
|
842
|
+
return new Promise(function(m, g) {
|
|
843
|
+
var b = f.data, E = f.headers, _ = f.responseType, S;
|
|
841
844
|
function k() {
|
|
842
|
-
f.cancelToken && f.cancelToken.unsubscribe(
|
|
845
|
+
f.cancelToken && f.cancelToken.unsubscribe(S), f.signal && f.signal.removeEventListener("abort", S);
|
|
843
846
|
}
|
|
844
|
-
n.isFormData(
|
|
845
|
-
var
|
|
847
|
+
n.isFormData(b) && delete E["Content-Type"];
|
|
848
|
+
var y = new XMLHttpRequest();
|
|
846
849
|
if (f.auth) {
|
|
847
|
-
var M = f.auth.username || "",
|
|
848
|
-
|
|
850
|
+
var M = f.auth.username || "", T = f.auth.password ? unescape(encodeURIComponent(f.auth.password)) : "";
|
|
851
|
+
E.Authorization = "Basic " + btoa(M + ":" + T);
|
|
849
852
|
}
|
|
850
853
|
var V = s(f.baseURL, f.url);
|
|
851
|
-
|
|
854
|
+
y.open(f.method.toUpperCase(), r(V, f.params, f.paramsSerializer), !0), y.timeout = f.timeout;
|
|
852
855
|
function D() {
|
|
853
|
-
if (!!
|
|
854
|
-
var L = "getAllResponseHeaders" in
|
|
856
|
+
if (!!y) {
|
|
857
|
+
var L = "getAllResponseHeaders" in y ? i(y.getAllResponseHeaders()) : null, Q = !_ || _ === "text" || _ === "json" ? y.responseText : y.response, ne = {
|
|
855
858
|
data: Q,
|
|
856
|
-
status:
|
|
857
|
-
statusText:
|
|
859
|
+
status: y.status,
|
|
860
|
+
statusText: y.statusText,
|
|
858
861
|
headers: L,
|
|
859
862
|
config: f,
|
|
860
|
-
request:
|
|
863
|
+
request: y
|
|
861
864
|
};
|
|
862
865
|
e(function(F) {
|
|
863
|
-
|
|
866
|
+
m(F), k();
|
|
864
867
|
}, function(F) {
|
|
865
|
-
|
|
866
|
-
}, ne),
|
|
868
|
+
g(F), k();
|
|
869
|
+
}, ne), y = null;
|
|
867
870
|
}
|
|
868
871
|
}
|
|
869
|
-
if ("onloadend" in
|
|
870
|
-
!
|
|
871
|
-
},
|
|
872
|
-
!
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
},
|
|
872
|
+
if ("onloadend" in y ? y.onloadend = D : y.onreadystatechange = function() {
|
|
873
|
+
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(D);
|
|
874
|
+
}, y.onabort = function() {
|
|
875
|
+
!y || (g(u("Request aborted", f, "ECONNABORTED", y)), y = null);
|
|
876
|
+
}, y.onerror = function() {
|
|
877
|
+
g(u("Network Error", f, null, y)), y = null;
|
|
878
|
+
}, y.ontimeout = function() {
|
|
876
879
|
var Q = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", ne = f.transitional || l;
|
|
877
|
-
f.timeoutErrorMessage && (Q = f.timeoutErrorMessage),
|
|
880
|
+
f.timeoutErrorMessage && (Q = f.timeoutErrorMessage), g(u(
|
|
878
881
|
Q,
|
|
879
882
|
f,
|
|
880
883
|
ne.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
881
|
-
|
|
882
|
-
)),
|
|
884
|
+
y
|
|
885
|
+
)), y = null;
|
|
883
886
|
}, n.isStandardBrowserEnv()) {
|
|
884
887
|
var j = (f.withCredentials || o(V)) && f.xsrfCookieName ? t.read(f.xsrfCookieName) : void 0;
|
|
885
|
-
j && (
|
|
888
|
+
j && (E[f.xsrfHeaderName] = j);
|
|
886
889
|
}
|
|
887
|
-
"setRequestHeader" in
|
|
888
|
-
typeof
|
|
889
|
-
}), n.isUndefined(f.withCredentials) || (
|
|
890
|
-
!
|
|
891
|
-
}, f.cancelToken && f.cancelToken.subscribe(
|
|
890
|
+
"setRequestHeader" in y && n.forEach(E, function(Q, ne) {
|
|
891
|
+
typeof b > "u" && ne.toLowerCase() === "content-type" ? delete E[ne] : y.setRequestHeader(ne, Q);
|
|
892
|
+
}), n.isUndefined(f.withCredentials) || (y.withCredentials = !!f.withCredentials), _ && _ !== "json" && (y.responseType = f.responseType), typeof f.onDownloadProgress == "function" && y.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (S = function(L) {
|
|
893
|
+
!y || (g(!L || L && L.type ? new a("canceled") : L), y.abort(), y = null);
|
|
894
|
+
}, f.cancelToken && f.cancelToken.subscribe(S), f.signal && (f.signal.aborted ? S() : f.signal.addEventListener("abort", S))), b || (b = null), y.send(b);
|
|
892
895
|
});
|
|
893
896
|
}, sn;
|
|
894
897
|
}
|
|
@@ -1056,8 +1059,8 @@ var Wi = function(e) {
|
|
|
1056
1059
|
validateStatus: l
|
|
1057
1060
|
};
|
|
1058
1061
|
return ue.forEach(Object.keys(e).concat(Object.keys(t)), function(f) {
|
|
1059
|
-
var p = a[f] || i,
|
|
1060
|
-
ue.isUndefined(
|
|
1062
|
+
var p = a[f] || i, m = p(f);
|
|
1063
|
+
ue.isUndefined(m) && p !== l || (r[f] = m);
|
|
1061
1064
|
}), r;
|
|
1062
1065
|
}, cn, br;
|
|
1063
1066
|
function as() {
|
|
@@ -1121,12 +1124,12 @@ pt.prototype.request = function(e, t) {
|
|
|
1121
1124
|
clarifyTimeoutError: ze.transitional(ze.boolean)
|
|
1122
1125
|
}, !1);
|
|
1123
1126
|
var s = [], i = !0;
|
|
1124
|
-
this.interceptors.request.forEach(function(
|
|
1125
|
-
typeof
|
|
1127
|
+
this.interceptors.request.forEach(function(m) {
|
|
1128
|
+
typeof m.runWhen == "function" && m.runWhen(t) === !1 || (i = i && m.synchronous, s.unshift(m.fulfilled, m.rejected));
|
|
1126
1129
|
});
|
|
1127
1130
|
var o = [];
|
|
1128
|
-
this.interceptors.response.forEach(function(
|
|
1129
|
-
o.push(
|
|
1131
|
+
this.interceptors.response.forEach(function(m) {
|
|
1132
|
+
o.push(m.fulfilled, m.rejected);
|
|
1130
1133
|
});
|
|
1131
1134
|
var u;
|
|
1132
1135
|
if (!i) {
|
|
@@ -1511,21 +1514,21 @@ function ao() {
|
|
|
1511
1514
|
}
|
|
1512
1515
|
var t = typeof Object.is == "function" ? Object.is : e, r = n.useState, s = n.useEffect, i = n.useLayoutEffect, o = n.useDebugValue;
|
|
1513
1516
|
function u(f, p) {
|
|
1514
|
-
var
|
|
1517
|
+
var m = p(), g = r({ inst: { value: m, getSnapshot: p } }), b = g[0].inst, E = g[1];
|
|
1515
1518
|
return i(function() {
|
|
1516
|
-
|
|
1517
|
-
}, [f,
|
|
1518
|
-
return l(
|
|
1519
|
-
l(
|
|
1519
|
+
b.value = m, b.getSnapshot = p, l(b) && E({ inst: b });
|
|
1520
|
+
}, [f, m, p]), s(function() {
|
|
1521
|
+
return l(b) && E({ inst: b }), f(function() {
|
|
1522
|
+
l(b) && E({ inst: b });
|
|
1520
1523
|
});
|
|
1521
|
-
}, [f]), o(
|
|
1524
|
+
}, [f]), o(m), m;
|
|
1522
1525
|
}
|
|
1523
1526
|
function l(f) {
|
|
1524
1527
|
var p = f.getSnapshot;
|
|
1525
1528
|
f = f.value;
|
|
1526
1529
|
try {
|
|
1527
|
-
var
|
|
1528
|
-
return !t(f,
|
|
1530
|
+
var m = p();
|
|
1531
|
+
return !t(f, m);
|
|
1529
1532
|
} catch {
|
|
1530
1533
|
return !0;
|
|
1531
1534
|
}
|
|
@@ -1553,68 +1556,68 @@ function uo() {
|
|
|
1553
1556
|
var n = qe, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1554
1557
|
function t(k) {
|
|
1555
1558
|
{
|
|
1556
|
-
for (var
|
|
1557
|
-
M[
|
|
1559
|
+
for (var y = arguments.length, M = new Array(y > 1 ? y - 1 : 0), T = 1; T < y; T++)
|
|
1560
|
+
M[T - 1] = arguments[T];
|
|
1558
1561
|
r("error", k, M);
|
|
1559
1562
|
}
|
|
1560
1563
|
}
|
|
1561
|
-
function r(k,
|
|
1564
|
+
function r(k, y, M) {
|
|
1562
1565
|
{
|
|
1563
|
-
var
|
|
1564
|
-
V !== "" && (
|
|
1566
|
+
var T = e.ReactDebugCurrentFrame, V = T.getStackAddendum();
|
|
1567
|
+
V !== "" && (y += "%s", M = M.concat([V]));
|
|
1565
1568
|
var D = M.map(function(j) {
|
|
1566
1569
|
return String(j);
|
|
1567
1570
|
});
|
|
1568
|
-
D.unshift("Warning: " +
|
|
1571
|
+
D.unshift("Warning: " + y), Function.prototype.apply.call(console[k], console, D);
|
|
1569
1572
|
}
|
|
1570
1573
|
}
|
|
1571
|
-
function s(k,
|
|
1572
|
-
return k ===
|
|
1574
|
+
function s(k, y) {
|
|
1575
|
+
return k === y && (k !== 0 || 1 / k === 1 / y) || k !== k && y !== y;
|
|
1573
1576
|
}
|
|
1574
1577
|
var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, u = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, h = !1, f = !1;
|
|
1575
|
-
function p(k,
|
|
1578
|
+
function p(k, y, M) {
|
|
1576
1579
|
h || n.startTransition !== void 0 && (h = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
1577
|
-
var
|
|
1580
|
+
var T = y();
|
|
1578
1581
|
if (!f) {
|
|
1579
|
-
var V =
|
|
1580
|
-
i(
|
|
1582
|
+
var V = y();
|
|
1583
|
+
i(T, V) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
|
|
1581
1584
|
}
|
|
1582
1585
|
var D = o({
|
|
1583
1586
|
inst: {
|
|
1584
|
-
value:
|
|
1585
|
-
getSnapshot:
|
|
1587
|
+
value: T,
|
|
1588
|
+
getSnapshot: y
|
|
1586
1589
|
}
|
|
1587
1590
|
}), j = D[0].inst, L = D[1];
|
|
1588
1591
|
return l(function() {
|
|
1589
|
-
j.value =
|
|
1592
|
+
j.value = T, j.getSnapshot = y, m(j) && L({
|
|
1590
1593
|
inst: j
|
|
1591
1594
|
});
|
|
1592
|
-
}, [k,
|
|
1593
|
-
|
|
1595
|
+
}, [k, T, y]), u(function() {
|
|
1596
|
+
m(j) && L({
|
|
1594
1597
|
inst: j
|
|
1595
1598
|
});
|
|
1596
1599
|
var Q = function() {
|
|
1597
|
-
|
|
1600
|
+
m(j) && L({
|
|
1598
1601
|
inst: j
|
|
1599
1602
|
});
|
|
1600
1603
|
};
|
|
1601
1604
|
return k(Q);
|
|
1602
|
-
}, [k]), a(
|
|
1605
|
+
}, [k]), a(T), T;
|
|
1603
1606
|
}
|
|
1604
|
-
function
|
|
1605
|
-
var
|
|
1607
|
+
function m(k) {
|
|
1608
|
+
var y = k.getSnapshot, M = k.value;
|
|
1606
1609
|
try {
|
|
1607
|
-
var
|
|
1608
|
-
return !i(M,
|
|
1610
|
+
var T = y();
|
|
1611
|
+
return !i(M, T);
|
|
1609
1612
|
} catch {
|
|
1610
1613
|
return !0;
|
|
1611
1614
|
}
|
|
1612
1615
|
}
|
|
1613
|
-
function
|
|
1614
|
-
return
|
|
1616
|
+
function g(k, y, M) {
|
|
1617
|
+
return y();
|
|
1615
1618
|
}
|
|
1616
|
-
var
|
|
1617
|
-
pn.useSyncExternalStore =
|
|
1619
|
+
var b = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", E = !b, _ = E ? g : p, S = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : _;
|
|
1620
|
+
pn.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1618
1621
|
}()), pn;
|
|
1619
1622
|
}
|
|
1620
1623
|
(function(n) {
|
|
@@ -1723,68 +1726,68 @@ async function gs(...n) {
|
|
|
1723
1726
|
let o = i.populateCache;
|
|
1724
1727
|
const u = i.rollbackOnError;
|
|
1725
1728
|
let l = i.optimisticData;
|
|
1726
|
-
const a = i.revalidate !== !1, h = (
|
|
1729
|
+
const a = i.revalidate !== !1, h = (m) => typeof u == "function" ? u(m) : u !== !1, f = i.throwOnError;
|
|
1727
1730
|
if (Oe(t)) {
|
|
1728
|
-
const
|
|
1729
|
-
for (const
|
|
1730
|
-
!/^\$(inf|sub)\$/.test(
|
|
1731
|
-
return Promise.all(
|
|
1731
|
+
const m = t, g = [], b = e.keys();
|
|
1732
|
+
for (const E of b)
|
|
1733
|
+
!/^\$(inf|sub)\$/.test(E) && m(e.get(E)._k) && g.push(E);
|
|
1734
|
+
return Promise.all(g.map(p));
|
|
1732
1735
|
}
|
|
1733
1736
|
return p(t);
|
|
1734
|
-
async function p(
|
|
1735
|
-
const [
|
|
1736
|
-
if (!
|
|
1737
|
+
async function p(m) {
|
|
1738
|
+
const [g] = $n(m);
|
|
1739
|
+
if (!g)
|
|
1737
1740
|
return;
|
|
1738
|
-
const [
|
|
1739
|
-
const F = g
|
|
1740
|
-
return a && (delete k[
|
|
1741
|
+
const [b, E] = ps(e, g), [_, S, k, y] = Te.get(e), M = () => {
|
|
1742
|
+
const F = _[g];
|
|
1743
|
+
return a && (delete k[g], delete y[g], F && F[0]) ? F[0](ms).then(() => b().data) : b().data;
|
|
1741
1744
|
};
|
|
1742
1745
|
if (n.length < 3)
|
|
1743
1746
|
return M();
|
|
1744
|
-
let
|
|
1747
|
+
let T = r, V;
|
|
1745
1748
|
const D = Cn();
|
|
1746
|
-
|
|
1749
|
+
S[g] = [
|
|
1747
1750
|
D,
|
|
1748
1751
|
0
|
|
1749
1752
|
];
|
|
1750
|
-
const j = !C(l), L =
|
|
1751
|
-
if (j && (l = Oe(l) ? l(G, Q) : l,
|
|
1753
|
+
const j = !C(l), L = b(), Q = L.data, ne = L._c, G = C(ne) ? Q : ne;
|
|
1754
|
+
if (j && (l = Oe(l) ? l(G, Q) : l, E({
|
|
1752
1755
|
data: l,
|
|
1753
1756
|
_c: G
|
|
1754
|
-
})), Oe(
|
|
1757
|
+
})), Oe(T))
|
|
1755
1758
|
try {
|
|
1756
|
-
|
|
1759
|
+
T = T(G);
|
|
1757
1760
|
} catch (F) {
|
|
1758
1761
|
V = F;
|
|
1759
1762
|
}
|
|
1760
|
-
if (
|
|
1761
|
-
if (
|
|
1763
|
+
if (T && co(T))
|
|
1764
|
+
if (T = await T.catch((F) => {
|
|
1762
1765
|
V = F;
|
|
1763
|
-
}), D !==
|
|
1766
|
+
}), D !== S[g][0]) {
|
|
1764
1767
|
if (V)
|
|
1765
1768
|
throw V;
|
|
1766
|
-
return
|
|
1769
|
+
return T;
|
|
1767
1770
|
} else
|
|
1768
|
-
V && j && h(V) && (o = !0,
|
|
1771
|
+
V && j && h(V) && (o = !0, E({
|
|
1769
1772
|
data: G,
|
|
1770
1773
|
_c: oe
|
|
1771
1774
|
}));
|
|
1772
1775
|
if (o && !V)
|
|
1773
1776
|
if (Oe(o)) {
|
|
1774
|
-
const F = o(
|
|
1775
|
-
|
|
1777
|
+
const F = o(T, G);
|
|
1778
|
+
E({
|
|
1776
1779
|
data: F,
|
|
1777
1780
|
error: oe,
|
|
1778
1781
|
_c: oe
|
|
1779
1782
|
});
|
|
1780
1783
|
} else
|
|
1781
|
-
|
|
1782
|
-
data:
|
|
1784
|
+
E({
|
|
1785
|
+
data: T,
|
|
1783
1786
|
error: oe,
|
|
1784
1787
|
_c: oe
|
|
1785
1788
|
});
|
|
1786
|
-
if (
|
|
1787
|
-
|
|
1789
|
+
if (S[g][1] = Cn(), Promise.resolve(M()).then(() => {
|
|
1790
|
+
E({
|
|
1788
1791
|
_c: oe
|
|
1789
1792
|
});
|
|
1790
1793
|
}), V) {
|
|
@@ -1792,7 +1795,7 @@ async function gs(...n) {
|
|
|
1792
1795
|
throw V;
|
|
1793
1796
|
return;
|
|
1794
1797
|
}
|
|
1795
|
-
return
|
|
1798
|
+
return T;
|
|
1796
1799
|
}
|
|
1797
1800
|
}
|
|
1798
1801
|
const Pr = (n, e) => {
|
|
@@ -1807,10 +1810,10 @@ const Pr = (n, e) => {
|
|
|
1807
1810
|
return o[h] = p, p.push(f), () => p.splice(p.indexOf(f), 1);
|
|
1808
1811
|
}, l = (h, f, p) => {
|
|
1809
1812
|
n.set(h, f);
|
|
1810
|
-
const
|
|
1811
|
-
if (
|
|
1812
|
-
for (const
|
|
1813
|
-
|
|
1813
|
+
const m = o[h];
|
|
1814
|
+
if (m)
|
|
1815
|
+
for (const g of m)
|
|
1816
|
+
g(f, p);
|
|
1814
1817
|
}, a = () => {
|
|
1815
1818
|
if (!Te.has(n) && (Te.set(n, [
|
|
1816
1819
|
r,
|
|
@@ -1914,7 +1917,7 @@ const Br = qe.use || ((n) => {
|
|
|
1914
1917
|
}), _n = {
|
|
1915
1918
|
dedupe: !0
|
|
1916
1919
|
}, qo = (n, e, t) => {
|
|
1917
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: u, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: p } = t, [
|
|
1920
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: u, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: p } = t, [m, g, b, E] = Te.get(r), [_, S] = $n(n), k = Be(!1), y = Be(!1), M = Be(_), T = Be(e), V = Be(t), D = () => V.current, j = () => D().isVisible() && D().isOnline(), [L, Q, ne, G] = ps(r, _), F = Be({}).current, Le = C(o) ? t.fallback[_] : o, Qe = (N, U) => {
|
|
1918
1921
|
for (const X in F) {
|
|
1919
1922
|
const I = X;
|
|
1920
1923
|
if (I === "data") {
|
|
@@ -1925,7 +1928,7 @@ const Br = qe.use || ((n) => {
|
|
|
1925
1928
|
}
|
|
1926
1929
|
return !0;
|
|
1927
1930
|
}, Ze = Kr(() => {
|
|
1928
|
-
const N = (() => !
|
|
1931
|
+
const N = (() => !_ || !e ? !1 : C(u) ? D().isPaused() || i ? !1 : C(l) ? !0 : l : u)(), U = (J) => {
|
|
1929
1932
|
const de = De(J);
|
|
1930
1933
|
return delete de._k, N ? {
|
|
1931
1934
|
isValidating: !0,
|
|
@@ -1943,52 +1946,52 @@ const Br = qe.use || ((n) => {
|
|
|
1943
1946
|
];
|
|
1944
1947
|
}, [
|
|
1945
1948
|
r,
|
|
1946
|
-
|
|
1949
|
+
_
|
|
1947
1950
|
]), be = ds.exports.useSyncExternalStore($(
|
|
1948
|
-
(N) => ne(
|
|
1951
|
+
(N) => ne(_, (U, X) => {
|
|
1949
1952
|
Qe(X, U) || N();
|
|
1950
1953
|
}),
|
|
1951
1954
|
[
|
|
1952
1955
|
r,
|
|
1953
|
-
|
|
1956
|
+
_
|
|
1954
1957
|
]
|
|
1955
|
-
), Ze[0], Ze[1]), et = !k.current, yt =
|
|
1958
|
+
), Ze[0], Ze[1]), et = !k.current, yt = m[_] && m[_].length > 0, we = be.data, Ee = C(we) ? Le : we, Ne = be.error, mt = Be(Ee), Ie = p ? C(we) ? mt.current : we : Ee, Ve = (() => yt && !C(Ne) ? !1 : et && !C(u) ? u : D().isPaused() ? !1 : i ? C(Ee) ? !1 : l : C(Ee) || l)(), je = !!(_ && e && et && Ve), $e = C(be.isValidating) ? je : be.isValidating, tt = C(be.isLoading) ? je : be.isLoading, ve = $(
|
|
1956
1959
|
async (N) => {
|
|
1957
|
-
const U =
|
|
1958
|
-
if (!
|
|
1960
|
+
const U = T.current;
|
|
1961
|
+
if (!_ || !U || y.current || D().isPaused())
|
|
1959
1962
|
return !1;
|
|
1960
1963
|
let X, I, re = !0;
|
|
1961
|
-
const Re = N || {}, H = !
|
|
1964
|
+
const Re = N || {}, H = !b[_] || !Re.dedupe, J = () => Lr ? !y.current && _ === M.current && k.current : _ === M.current, de = {
|
|
1962
1965
|
isValidating: !1,
|
|
1963
1966
|
isLoading: !1
|
|
1964
1967
|
}, _t = () => {
|
|
1965
1968
|
Q(de);
|
|
1966
1969
|
}, Me = () => {
|
|
1967
|
-
const ie =
|
|
1968
|
-
ie && ie[1] === I && delete
|
|
1970
|
+
const ie = b[_];
|
|
1971
|
+
ie && ie[1] === I && delete b[_];
|
|
1969
1972
|
}, bt = {
|
|
1970
1973
|
isValidating: !0
|
|
1971
1974
|
};
|
|
1972
1975
|
C(L().data) && (bt.isLoading = !0);
|
|
1973
1976
|
try {
|
|
1974
1977
|
if (H && (Q(bt), t.loadingTimeout && C(L().data) && setTimeout(() => {
|
|
1975
|
-
re && J() && D().onLoadingSlow(
|
|
1976
|
-
}, t.loadingTimeout),
|
|
1977
|
-
U(
|
|
1978
|
+
re && J() && D().onLoadingSlow(_, t);
|
|
1979
|
+
}, t.loadingTimeout), b[_] = [
|
|
1980
|
+
U(S),
|
|
1978
1981
|
Cn()
|
|
1979
|
-
]), [X, I] =
|
|
1980
|
-
return H && J() && D().onDiscarded(
|
|
1982
|
+
]), [X, I] = b[_], X = await X, H && setTimeout(Me, t.dedupingInterval), !b[_] || b[_][1] !== I)
|
|
1983
|
+
return H && J() && D().onDiscarded(_), !1;
|
|
1981
1984
|
de.error = oe;
|
|
1982
|
-
const ie =
|
|
1985
|
+
const ie = g[_];
|
|
1983
1986
|
if (!C(ie) && (I <= ie[0] || I <= ie[1] || ie[1] === 0))
|
|
1984
|
-
return _t(), H && J() && D().onDiscarded(
|
|
1987
|
+
return _t(), H && J() && D().onDiscarded(_), !1;
|
|
1985
1988
|
const ce = L().data;
|
|
1986
|
-
de.data = s(ce, X) ? ce : X, H && J() && D().onSuccess(X,
|
|
1989
|
+
de.data = s(ce, X) ? ce : X, H && J() && D().onSuccess(X, _, t);
|
|
1987
1990
|
} catch (ie) {
|
|
1988
1991
|
Me();
|
|
1989
1992
|
const ce = D(), { shouldRetryOnError: We } = ce;
|
|
1990
|
-
ce.isPaused() || (de.error = ie, H && J() && (ce.onError(ie,
|
|
1991
|
-
const nt =
|
|
1993
|
+
ce.isPaused() || (de.error = ie, H && J() && (ce.onError(ie, _, ce), (We === !0 || Oe(We) && We(ie)) && j() && ce.onErrorRetry(ie, _, ce, (Pe) => {
|
|
1994
|
+
const nt = m[_];
|
|
1992
1995
|
nt && nt[0] && nt[0](st.ERROR_REVALIDATE_EVENT, Pe);
|
|
1993
1996
|
}, {
|
|
1994
1997
|
retryCount: (Re.retryCount || 0) + 1,
|
|
@@ -1998,7 +2001,7 @@ const Br = qe.use || ((n) => {
|
|
|
1998
2001
|
return re = !1, _t(), !0;
|
|
1999
2002
|
},
|
|
2000
2003
|
[
|
|
2001
|
-
|
|
2004
|
+
_,
|
|
2002
2005
|
r
|
|
2003
2006
|
]
|
|
2004
2007
|
), gt = $(
|
|
@@ -2006,13 +2009,13 @@ const Br = qe.use || ((n) => {
|
|
|
2006
2009
|
[]
|
|
2007
2010
|
);
|
|
2008
2011
|
if (mn(() => {
|
|
2009
|
-
|
|
2012
|
+
T.current = e, V.current = t, C(we) || (mt.current = we);
|
|
2010
2013
|
}), mn(() => {
|
|
2011
|
-
if (!
|
|
2014
|
+
if (!_)
|
|
2012
2015
|
return;
|
|
2013
2016
|
const N = ve.bind(oe, _n);
|
|
2014
2017
|
let U = 0;
|
|
2015
|
-
const I = Uo(
|
|
2018
|
+
const I = Uo(_, m, (re, Re = {}) => {
|
|
2016
2019
|
if (re == st.FOCUS_EVENT) {
|
|
2017
2020
|
const H = Date.now();
|
|
2018
2021
|
D().revalidateOnFocus && H > U && j() && (U = H + D().focusThrottleInterval, N());
|
|
@@ -2025,13 +2028,13 @@ const Br = qe.use || ((n) => {
|
|
|
2025
2028
|
return ve(Re);
|
|
2026
2029
|
}
|
|
2027
2030
|
});
|
|
2028
|
-
return
|
|
2029
|
-
_k:
|
|
2031
|
+
return y.current = !1, M.current = _, k.current = !0, Q({
|
|
2032
|
+
_k: S
|
|
2030
2033
|
}), Ve && (C(Ee) || lt ? N() : _o(N)), () => {
|
|
2031
|
-
|
|
2034
|
+
y.current = !0, I();
|
|
2032
2035
|
};
|
|
2033
2036
|
}, [
|
|
2034
|
-
|
|
2037
|
+
_
|
|
2035
2038
|
]), mn(() => {
|
|
2036
2039
|
let N;
|
|
2037
2040
|
function U() {
|
|
@@ -2048,12 +2051,12 @@ const Br = qe.use || ((n) => {
|
|
|
2048
2051
|
a,
|
|
2049
2052
|
h,
|
|
2050
2053
|
f,
|
|
2051
|
-
|
|
2052
|
-
]), ti(Ie), i && C(Ee) &&
|
|
2054
|
+
_
|
|
2055
|
+
]), ti(Ie), i && C(Ee) && _) {
|
|
2053
2056
|
if (!Lr && lt)
|
|
2054
2057
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
2055
|
-
|
|
2056
|
-
const N =
|
|
2058
|
+
T.current = e, V.current = t, y.current = !1;
|
|
2059
|
+
const N = E[_];
|
|
2057
2060
|
if (!C(N)) {
|
|
2058
2061
|
const U = gt(N);
|
|
2059
2062
|
Br(U);
|
|
@@ -2989,17 +2992,17 @@ const Ea = [
|
|
|
2989
2992
|
"newListener",
|
|
2990
2993
|
"removeListener"
|
|
2991
2994
|
], Ra = 5;
|
|
2992
|
-
var
|
|
2995
|
+
var O;
|
|
2993
2996
|
(function(n) {
|
|
2994
2997
|
n[n.CONNECT = 0] = "CONNECT", n[n.DISCONNECT = 1] = "DISCONNECT", n[n.EVENT = 2] = "EVENT", n[n.ACK = 3] = "ACK", n[n.CONNECT_ERROR = 4] = "CONNECT_ERROR", n[n.BINARY_EVENT = 5] = "BINARY_EVENT", n[n.BINARY_ACK = 6] = "BINARY_ACK";
|
|
2995
|
-
})(
|
|
2998
|
+
})(O || (O = {}));
|
|
2996
2999
|
class Sa {
|
|
2997
3000
|
constructor(e) {
|
|
2998
3001
|
this.replacer = e;
|
|
2999
3002
|
}
|
|
3000
3003
|
encode(e) {
|
|
3001
|
-
return (e.type ===
|
|
3002
|
-
type: e.type ===
|
|
3004
|
+
return (e.type === O.EVENT || e.type === O.ACK) && Pt(e) ? this.encodeAsBinary({
|
|
3005
|
+
type: e.type === O.EVENT ? O.BINARY_EVENT : O.BINARY_ACK,
|
|
3003
3006
|
nsp: e.nsp,
|
|
3004
3007
|
data: e.data,
|
|
3005
3008
|
id: e.id
|
|
@@ -3007,7 +3010,7 @@ class Sa {
|
|
|
3007
3010
|
}
|
|
3008
3011
|
encodeAsString(e) {
|
|
3009
3012
|
let t = "" + e.type;
|
|
3010
|
-
return (e.type ===
|
|
3013
|
+
return (e.type === O.BINARY_EVENT || e.type === O.BINARY_ACK) && (t += e.attachments + "-"), e.nsp && e.nsp !== "/" && (t += e.nsp + ","), e.id != null && (t += e.id), e.data != null && (t += JSON.stringify(e.data, this.replacer)), t;
|
|
3011
3014
|
}
|
|
3012
3015
|
encodeAsBinary(e) {
|
|
3013
3016
|
const t = ba(e), r = this.encodeAsString(t.packet), s = t.buffers;
|
|
@@ -3027,8 +3030,8 @@ class zn extends K {
|
|
|
3027
3030
|
if (this.reconstructor)
|
|
3028
3031
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
3029
3032
|
t = this.decodeString(e);
|
|
3030
|
-
const r = t.type ===
|
|
3031
|
-
r || t.type ===
|
|
3033
|
+
const r = t.type === O.BINARY_EVENT;
|
|
3034
|
+
r || t.type === O.BINARY_ACK ? (t.type = r ? O.EVENT : O.ACK, this.reconstructor = new Ta(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
|
|
3032
3035
|
} else if (Yn(e) || e.base64)
|
|
3033
3036
|
if (this.reconstructor)
|
|
3034
3037
|
t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
|
|
@@ -3042,9 +3045,9 @@ class zn extends K {
|
|
|
3042
3045
|
const r = {
|
|
3043
3046
|
type: Number(e.charAt(0))
|
|
3044
3047
|
};
|
|
3045
|
-
if (
|
|
3048
|
+
if (O[r.type] === void 0)
|
|
3046
3049
|
throw new Error("unknown packet type " + r.type);
|
|
3047
|
-
if (r.type ===
|
|
3050
|
+
if (r.type === O.BINARY_EVENT || r.type === O.BINARY_ACK) {
|
|
3048
3051
|
const i = t + 1;
|
|
3049
3052
|
for (; e.charAt(++t) !== "-" && t != e.length; )
|
|
3050
3053
|
;
|
|
@@ -3092,17 +3095,17 @@ class zn extends K {
|
|
|
3092
3095
|
}
|
|
3093
3096
|
static isPayloadValid(e, t) {
|
|
3094
3097
|
switch (e) {
|
|
3095
|
-
case
|
|
3098
|
+
case O.CONNECT:
|
|
3096
3099
|
return Hr(t);
|
|
3097
|
-
case
|
|
3100
|
+
case O.DISCONNECT:
|
|
3098
3101
|
return t === void 0;
|
|
3099
|
-
case
|
|
3102
|
+
case O.CONNECT_ERROR:
|
|
3100
3103
|
return typeof t == "string" || Hr(t);
|
|
3101
|
-
case
|
|
3102
|
-
case
|
|
3104
|
+
case O.EVENT:
|
|
3105
|
+
case O.BINARY_EVENT:
|
|
3103
3106
|
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && Ea.indexOf(t[0]) === -1);
|
|
3104
|
-
case
|
|
3105
|
-
case
|
|
3107
|
+
case O.ACK:
|
|
3108
|
+
case O.BINARY_ACK:
|
|
3106
3109
|
return Array.isArray(t);
|
|
3107
3110
|
}
|
|
3108
3111
|
}
|
|
@@ -3129,7 +3132,7 @@ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3129
3132
|
__proto__: null,
|
|
3130
3133
|
protocol: Ra,
|
|
3131
3134
|
get PacketType() {
|
|
3132
|
-
return
|
|
3135
|
+
return O;
|
|
3133
3136
|
},
|
|
3134
3137
|
Encoder: Sa,
|
|
3135
3138
|
Decoder: zn
|
|
@@ -3183,7 +3186,7 @@ class Ns extends K {
|
|
|
3183
3186
|
if (t.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
|
|
3184
3187
|
return this._addToQueue(t), this;
|
|
3185
3188
|
const r = {
|
|
3186
|
-
type:
|
|
3189
|
+
type: O.EVENT,
|
|
3187
3190
|
data: t
|
|
3188
3191
|
};
|
|
3189
3192
|
if (r.options = {}, r.options.compress = this.flags.compress !== !1, typeof t[t.length - 1] == "function") {
|
|
@@ -3244,7 +3247,7 @@ class Ns extends K {
|
|
|
3244
3247
|
}
|
|
3245
3248
|
_sendConnectPacket(e) {
|
|
3246
3249
|
this.packet({
|
|
3247
|
-
type:
|
|
3250
|
+
type: O.CONNECT,
|
|
3248
3251
|
data: this._pid ? Object.assign({ pid: this._pid, offset: this._lastOffset }, e) : e
|
|
3249
3252
|
});
|
|
3250
3253
|
}
|
|
@@ -3257,21 +3260,21 @@ class Ns extends K {
|
|
|
3257
3260
|
onpacket(e) {
|
|
3258
3261
|
if (e.nsp === this.nsp)
|
|
3259
3262
|
switch (e.type) {
|
|
3260
|
-
case
|
|
3263
|
+
case O.CONNECT:
|
|
3261
3264
|
e.data && e.data.sid ? this.onconnect(e.data.sid, e.data.pid) : this.emitReserved("connect_error", new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));
|
|
3262
3265
|
break;
|
|
3263
|
-
case
|
|
3264
|
-
case
|
|
3266
|
+
case O.EVENT:
|
|
3267
|
+
case O.BINARY_EVENT:
|
|
3265
3268
|
this.onevent(e);
|
|
3266
3269
|
break;
|
|
3267
|
-
case
|
|
3268
|
-
case
|
|
3270
|
+
case O.ACK:
|
|
3271
|
+
case O.BINARY_ACK:
|
|
3269
3272
|
this.onack(e);
|
|
3270
3273
|
break;
|
|
3271
|
-
case
|
|
3274
|
+
case O.DISCONNECT:
|
|
3272
3275
|
this.ondisconnect();
|
|
3273
3276
|
break;
|
|
3274
|
-
case
|
|
3277
|
+
case O.CONNECT_ERROR:
|
|
3275
3278
|
this.destroy();
|
|
3276
3279
|
const r = new Error(e.data.message);
|
|
3277
3280
|
r.data = e.data.data, this.emitReserved("connect_error", r);
|
|
@@ -3295,7 +3298,7 @@ class Ns extends K {
|
|
|
3295
3298
|
let r = !1;
|
|
3296
3299
|
return function(...s) {
|
|
3297
3300
|
r || (r = !0, t.packet({
|
|
3298
|
-
type:
|
|
3301
|
+
type: O.ACK,
|
|
3299
3302
|
id: e,
|
|
3300
3303
|
data: s
|
|
3301
3304
|
}));
|
|
@@ -3320,7 +3323,7 @@ class Ns extends K {
|
|
|
3320
3323
|
this.subs && (this.subs.forEach((e) => e()), this.subs = void 0), this.io._destroy(this);
|
|
3321
3324
|
}
|
|
3322
3325
|
disconnect() {
|
|
3323
|
-
return this.connected && this.packet({ type:
|
|
3326
|
+
return this.connected && this.packet({ type: O.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
|
|
3324
3327
|
}
|
|
3325
3328
|
close() {
|
|
3326
3329
|
return this.disconnect();
|
|
@@ -3595,14 +3598,14 @@ function Aa() {
|
|
|
3595
3598
|
Jr = 1;
|
|
3596
3599
|
var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3597
3600
|
function o(u, l, a) {
|
|
3598
|
-
var h, f = {}, p = null,
|
|
3599
|
-
a !== void 0 && (p = "" + a), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (
|
|
3601
|
+
var h, f = {}, p = null, m = null;
|
|
3602
|
+
a !== void 0 && (p = "" + a), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (m = l.ref);
|
|
3600
3603
|
for (h in l)
|
|
3601
3604
|
r.call(l, h) && !i.hasOwnProperty(h) && (f[h] = l[h]);
|
|
3602
3605
|
if (u && u.defaultProps)
|
|
3603
3606
|
for (h in l = u.defaultProps, l)
|
|
3604
3607
|
f[h] === void 0 && (f[h] = l[h]);
|
|
3605
|
-
return { $$typeof: e, type: u, key: p, ref:
|
|
3608
|
+
return { $$typeof: e, type: u, key: p, ref: m, props: f, _owner: s.current };
|
|
3606
3609
|
}
|
|
3607
3610
|
return ot.Fragment = t, ot.jsx = o, ot.jsxs = o, ot;
|
|
3608
3611
|
}
|
|
@@ -3619,42 +3622,42 @@ var at = {};
|
|
|
3619
3622
|
var Yr;
|
|
3620
3623
|
function Da() {
|
|
3621
3624
|
return Yr || (Yr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3622
|
-
var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"),
|
|
3623
|
-
function
|
|
3625
|
+
var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
|
|
3626
|
+
function E(c) {
|
|
3624
3627
|
if (c === null || typeof c != "object")
|
|
3625
3628
|
return null;
|
|
3626
|
-
var d =
|
|
3629
|
+
var d = g && c[g] || c[b];
|
|
3627
3630
|
return typeof d == "function" ? d : null;
|
|
3628
3631
|
}
|
|
3629
|
-
var
|
|
3630
|
-
function
|
|
3632
|
+
var _ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3633
|
+
function S(c) {
|
|
3631
3634
|
{
|
|
3632
|
-
for (var d = arguments.length,
|
|
3633
|
-
|
|
3634
|
-
k("error", c,
|
|
3635
|
+
for (var d = arguments.length, v = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
|
|
3636
|
+
v[w - 1] = arguments[w];
|
|
3637
|
+
k("error", c, v);
|
|
3635
3638
|
}
|
|
3636
3639
|
}
|
|
3637
|
-
function k(c, d,
|
|
3640
|
+
function k(c, d, v) {
|
|
3638
3641
|
{
|
|
3639
|
-
var
|
|
3640
|
-
A !== "" && (d += "%s",
|
|
3641
|
-
var q =
|
|
3642
|
+
var w = _.ReactDebugCurrentFrame, A = w.getStackAddendum();
|
|
3643
|
+
A !== "" && (d += "%s", v = v.concat([A]));
|
|
3644
|
+
var q = v.map(function(x) {
|
|
3642
3645
|
return String(x);
|
|
3643
3646
|
});
|
|
3644
3647
|
q.unshift("Warning: " + d), Function.prototype.apply.call(console[c], console, q);
|
|
3645
3648
|
}
|
|
3646
3649
|
}
|
|
3647
|
-
var
|
|
3650
|
+
var y = !1, M = !1, T = !1, V = !1, D = !1, j;
|
|
3648
3651
|
j = Symbol.for("react.module.reference");
|
|
3649
3652
|
function L(c) {
|
|
3650
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || D || c === s || c === a || c === h || V || c ===
|
|
3653
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || D || c === s || c === a || c === h || V || c === m || y || M || T || typeof c == "object" && c !== null && (c.$$typeof === p || c.$$typeof === f || c.$$typeof === o || c.$$typeof === u || c.$$typeof === l || c.$$typeof === j || c.getModuleId !== void 0));
|
|
3651
3654
|
}
|
|
3652
|
-
function Q(c, d,
|
|
3653
|
-
var
|
|
3654
|
-
if (
|
|
3655
|
-
return
|
|
3655
|
+
function Q(c, d, v) {
|
|
3656
|
+
var w = c.displayName;
|
|
3657
|
+
if (w)
|
|
3658
|
+
return w;
|
|
3656
3659
|
var A = d.displayName || d.name || "";
|
|
3657
|
-
return A !== "" ?
|
|
3660
|
+
return A !== "" ? v + "(" + A + ")" : v;
|
|
3658
3661
|
}
|
|
3659
3662
|
function ne(c) {
|
|
3660
3663
|
return c.displayName || "Context";
|
|
@@ -3662,7 +3665,7 @@ function Da() {
|
|
|
3662
3665
|
function G(c) {
|
|
3663
3666
|
if (c == null)
|
|
3664
3667
|
return null;
|
|
3665
|
-
if (typeof c.tag == "number" &&
|
|
3668
|
+
if (typeof c.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
3666
3669
|
return c.displayName || c.name || null;
|
|
3667
3670
|
if (typeof c == "string")
|
|
3668
3671
|
return c;
|
|
@@ -3686,13 +3689,13 @@ function Da() {
|
|
|
3686
3689
|
var d = c;
|
|
3687
3690
|
return ne(d) + ".Consumer";
|
|
3688
3691
|
case o:
|
|
3689
|
-
var
|
|
3690
|
-
return ne(
|
|
3692
|
+
var v = c;
|
|
3693
|
+
return ne(v._context) + ".Provider";
|
|
3691
3694
|
case l:
|
|
3692
3695
|
return Q(c, c.render, "ForwardRef");
|
|
3693
3696
|
case f:
|
|
3694
|
-
var
|
|
3695
|
-
return
|
|
3697
|
+
var w = c.displayName || null;
|
|
3698
|
+
return w !== null ? w : G(c.type) || "Memo";
|
|
3696
3699
|
case p: {
|
|
3697
3700
|
var A = c, q = A._payload, x = A._init;
|
|
3698
3701
|
try {
|
|
@@ -3763,18 +3766,18 @@ function Da() {
|
|
|
3763
3766
|
})
|
|
3764
3767
|
});
|
|
3765
3768
|
}
|
|
3766
|
-
Le < 0 &&
|
|
3769
|
+
Le < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3767
3770
|
}
|
|
3768
3771
|
}
|
|
3769
|
-
var Ve =
|
|
3770
|
-
function $e(c, d,
|
|
3772
|
+
var Ve = _.ReactCurrentDispatcher, je;
|
|
3773
|
+
function $e(c, d, v) {
|
|
3771
3774
|
{
|
|
3772
3775
|
if (je === void 0)
|
|
3773
3776
|
try {
|
|
3774
3777
|
throw Error();
|
|
3775
3778
|
} catch (A) {
|
|
3776
|
-
var
|
|
3777
|
-
je =
|
|
3779
|
+
var w = A.stack.trim().match(/\n( *(at )?)/);
|
|
3780
|
+
je = w && w[1] || "";
|
|
3778
3781
|
}
|
|
3779
3782
|
return `
|
|
3780
3783
|
` + je + c;
|
|
@@ -3789,11 +3792,11 @@ function Da() {
|
|
|
3789
3792
|
if (!c || tt)
|
|
3790
3793
|
return "";
|
|
3791
3794
|
{
|
|
3792
|
-
var
|
|
3793
|
-
if (
|
|
3794
|
-
return
|
|
3795
|
+
var v = ve.get(c);
|
|
3796
|
+
if (v !== void 0)
|
|
3797
|
+
return v;
|
|
3795
3798
|
}
|
|
3796
|
-
var
|
|
3799
|
+
var w;
|
|
3797
3800
|
tt = !0;
|
|
3798
3801
|
var A = Error.prepareStackTrace;
|
|
3799
3802
|
Error.prepareStackTrace = void 0;
|
|
@@ -3812,14 +3815,14 @@ function Da() {
|
|
|
3812
3815
|
try {
|
|
3813
3816
|
Reflect.construct(x, []);
|
|
3814
3817
|
} catch (Se) {
|
|
3815
|
-
|
|
3818
|
+
w = Se;
|
|
3816
3819
|
}
|
|
3817
3820
|
Reflect.construct(c, [], x);
|
|
3818
3821
|
} else {
|
|
3819
3822
|
try {
|
|
3820
3823
|
x.call();
|
|
3821
3824
|
} catch (Se) {
|
|
3822
|
-
|
|
3825
|
+
w = Se;
|
|
3823
3826
|
}
|
|
3824
3827
|
c.call(x.prototype);
|
|
3825
3828
|
}
|
|
@@ -3827,23 +3830,23 @@ function Da() {
|
|
|
3827
3830
|
try {
|
|
3828
3831
|
throw Error();
|
|
3829
3832
|
} catch (Se) {
|
|
3830
|
-
|
|
3833
|
+
w = Se;
|
|
3831
3834
|
}
|
|
3832
3835
|
c();
|
|
3833
3836
|
}
|
|
3834
3837
|
} catch (Se) {
|
|
3835
|
-
if (Se &&
|
|
3836
|
-
for (var
|
|
3837
|
-
`), se =
|
|
3838
|
-
`), W =
|
|
3838
|
+
if (Se && w && typeof Se.stack == "string") {
|
|
3839
|
+
for (var R = Se.stack.split(`
|
|
3840
|
+
`), se = w.stack.split(`
|
|
3841
|
+
`), W = R.length - 1, Y = se.length - 1; W >= 1 && Y >= 0 && R[W] !== se[Y]; )
|
|
3839
3842
|
Y--;
|
|
3840
3843
|
for (; W >= 1 && Y >= 0; W--, Y--)
|
|
3841
|
-
if (
|
|
3844
|
+
if (R[W] !== se[Y]) {
|
|
3842
3845
|
if (W !== 1 || Y !== 1)
|
|
3843
3846
|
do
|
|
3844
|
-
if (W--, Y--, Y < 0 ||
|
|
3847
|
+
if (W--, Y--, Y < 0 || R[W] !== se[Y]) {
|
|
3845
3848
|
var le = `
|
|
3846
|
-
` +
|
|
3849
|
+
` + R[W].replace(" at new ", " at ");
|
|
3847
3850
|
return c.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", c.displayName)), typeof c == "function" && ve.set(c, le), le;
|
|
3848
3851
|
}
|
|
3849
3852
|
while (W >= 1 && Y >= 0);
|
|
@@ -3856,14 +3859,14 @@ function Da() {
|
|
|
3856
3859
|
var Je = c ? c.displayName || c.name : "", rr = Je ? $e(Je) : "";
|
|
3857
3860
|
return typeof c == "function" && ve.set(c, rr), rr;
|
|
3858
3861
|
}
|
|
3859
|
-
function U(c, d,
|
|
3862
|
+
function U(c, d, v) {
|
|
3860
3863
|
return N(c, !1);
|
|
3861
3864
|
}
|
|
3862
3865
|
function X(c) {
|
|
3863
3866
|
var d = c.prototype;
|
|
3864
3867
|
return !!(d && d.isReactComponent);
|
|
3865
3868
|
}
|
|
3866
|
-
function I(c, d,
|
|
3869
|
+
function I(c, d, v) {
|
|
3867
3870
|
if (c == null)
|
|
3868
3871
|
return "";
|
|
3869
3872
|
if (typeof c == "function")
|
|
@@ -3881,41 +3884,41 @@ function Da() {
|
|
|
3881
3884
|
case l:
|
|
3882
3885
|
return U(c.render);
|
|
3883
3886
|
case f:
|
|
3884
|
-
return I(c.type, d,
|
|
3887
|
+
return I(c.type, d, v);
|
|
3885
3888
|
case p: {
|
|
3886
|
-
var
|
|
3889
|
+
var w = c, A = w._payload, q = w._init;
|
|
3887
3890
|
try {
|
|
3888
|
-
return I(q(A), d,
|
|
3891
|
+
return I(q(A), d, v);
|
|
3889
3892
|
} catch {
|
|
3890
3893
|
}
|
|
3891
3894
|
}
|
|
3892
3895
|
}
|
|
3893
3896
|
return "";
|
|
3894
3897
|
}
|
|
3895
|
-
var re = Object.prototype.hasOwnProperty, Re = {}, H =
|
|
3898
|
+
var re = Object.prototype.hasOwnProperty, Re = {}, H = _.ReactDebugCurrentFrame;
|
|
3896
3899
|
function J(c) {
|
|
3897
3900
|
if (c) {
|
|
3898
|
-
var d = c._owner,
|
|
3899
|
-
H.setExtraStackFrame(
|
|
3901
|
+
var d = c._owner, v = I(c.type, c._source, d ? d.type : null);
|
|
3902
|
+
H.setExtraStackFrame(v);
|
|
3900
3903
|
} else
|
|
3901
3904
|
H.setExtraStackFrame(null);
|
|
3902
3905
|
}
|
|
3903
|
-
function de(c, d,
|
|
3906
|
+
function de(c, d, v, w, A) {
|
|
3904
3907
|
{
|
|
3905
3908
|
var q = Function.call.bind(re);
|
|
3906
3909
|
for (var x in c)
|
|
3907
3910
|
if (q(c, x)) {
|
|
3908
|
-
var
|
|
3911
|
+
var R = void 0;
|
|
3909
3912
|
try {
|
|
3910
3913
|
if (typeof c[x] != "function") {
|
|
3911
|
-
var se = Error((
|
|
3914
|
+
var se = Error((w || "React class") + ": " + v + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
3912
3915
|
throw se.name = "Invariant Violation", se;
|
|
3913
3916
|
}
|
|
3914
|
-
|
|
3917
|
+
R = c[x](d, x, w, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3915
3918
|
} catch (W) {
|
|
3916
|
-
|
|
3919
|
+
R = W;
|
|
3917
3920
|
}
|
|
3918
|
-
|
|
3921
|
+
R && !(R instanceof Error) && (J(A), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", v, x, typeof R), J(null)), R instanceof Error && !(R.message in Re) && (Re[R.message] = !0, J(A), S("Failed %s type: %s", v, R.message), J(null));
|
|
3919
3922
|
}
|
|
3920
3923
|
}
|
|
3921
3924
|
}
|
|
@@ -3925,8 +3928,8 @@ function Da() {
|
|
|
3925
3928
|
}
|
|
3926
3929
|
function bt(c) {
|
|
3927
3930
|
{
|
|
3928
|
-
var d = typeof Symbol == "function" && Symbol.toStringTag,
|
|
3929
|
-
return
|
|
3931
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, v = d && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
3932
|
+
return v;
|
|
3930
3933
|
}
|
|
3931
3934
|
}
|
|
3932
3935
|
function ie(c) {
|
|
@@ -3941,9 +3944,9 @@ function Da() {
|
|
|
3941
3944
|
}
|
|
3942
3945
|
function We(c) {
|
|
3943
3946
|
if (ie(c))
|
|
3944
|
-
return
|
|
3947
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(c)), ce(c);
|
|
3945
3948
|
}
|
|
3946
|
-
var Pe =
|
|
3949
|
+
var Pe = _.ReactCurrentOwner, nt = {
|
|
3947
3950
|
key: !0,
|
|
3948
3951
|
ref: !0,
|
|
3949
3952
|
__self: !0,
|
|
@@ -3968,62 +3971,62 @@ function Da() {
|
|
|
3968
3971
|
}
|
|
3969
3972
|
function Is(c, d) {
|
|
3970
3973
|
if (typeof c.ref == "string" && Pe.current && d && Pe.current.stateNode !== d) {
|
|
3971
|
-
var
|
|
3972
|
-
Wt[
|
|
3974
|
+
var v = G(Pe.current.type);
|
|
3975
|
+
Wt[v] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Pe.current.type), c.ref), Wt[v] = !0);
|
|
3973
3976
|
}
|
|
3974
3977
|
}
|
|
3975
3978
|
function Vs(c, d) {
|
|
3976
3979
|
{
|
|
3977
|
-
var
|
|
3978
|
-
Kn || (Kn = !0,
|
|
3980
|
+
var v = function() {
|
|
3981
|
+
Kn || (Kn = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
3979
3982
|
};
|
|
3980
|
-
|
|
3981
|
-
get:
|
|
3983
|
+
v.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
3984
|
+
get: v,
|
|
3982
3985
|
configurable: !0
|
|
3983
3986
|
});
|
|
3984
3987
|
}
|
|
3985
3988
|
}
|
|
3986
3989
|
function js(c, d) {
|
|
3987
3990
|
{
|
|
3988
|
-
var
|
|
3989
|
-
Gn || (Gn = !0,
|
|
3991
|
+
var v = function() {
|
|
3992
|
+
Gn || (Gn = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
3990
3993
|
};
|
|
3991
|
-
|
|
3992
|
-
get:
|
|
3994
|
+
v.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
3995
|
+
get: v,
|
|
3993
3996
|
configurable: !0
|
|
3994
3997
|
});
|
|
3995
3998
|
}
|
|
3996
3999
|
}
|
|
3997
|
-
var $s = function(c, d,
|
|
3998
|
-
var
|
|
4000
|
+
var $s = function(c, d, v, w, A, q, x) {
|
|
4001
|
+
var R = {
|
|
3999
4002
|
$$typeof: e,
|
|
4000
4003
|
type: c,
|
|
4001
4004
|
key: d,
|
|
4002
|
-
ref:
|
|
4005
|
+
ref: v,
|
|
4003
4006
|
props: x,
|
|
4004
4007
|
_owner: q
|
|
4005
4008
|
};
|
|
4006
|
-
return
|
|
4009
|
+
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
4007
4010
|
configurable: !1,
|
|
4008
4011
|
enumerable: !1,
|
|
4009
4012
|
writable: !0,
|
|
4010
4013
|
value: !1
|
|
4011
|
-
}), Object.defineProperty(
|
|
4014
|
+
}), Object.defineProperty(R, "_self", {
|
|
4012
4015
|
configurable: !1,
|
|
4013
4016
|
enumerable: !1,
|
|
4014
4017
|
writable: !1,
|
|
4015
|
-
value:
|
|
4016
|
-
}), Object.defineProperty(
|
|
4018
|
+
value: w
|
|
4019
|
+
}), Object.defineProperty(R, "_source", {
|
|
4017
4020
|
configurable: !1,
|
|
4018
4021
|
enumerable: !1,
|
|
4019
4022
|
writable: !1,
|
|
4020
4023
|
value: A
|
|
4021
|
-
}), Object.freeze && (Object.freeze(
|
|
4024
|
+
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
4022
4025
|
};
|
|
4023
|
-
function Ms(c, d,
|
|
4026
|
+
function Ms(c, d, v, w, A) {
|
|
4024
4027
|
{
|
|
4025
|
-
var q, x = {},
|
|
4026
|
-
|
|
4028
|
+
var q, x = {}, R = null, se = null;
|
|
4029
|
+
v !== void 0 && (We(v), R = "" + v), qs(d) && (We(d.key), R = "" + d.key), Us(d) && (se = d.ref, Is(d, A));
|
|
4027
4030
|
for (q in d)
|
|
4028
4031
|
re.call(d, q) && !nt.hasOwnProperty(q) && (x[q] = d[q]);
|
|
4029
4032
|
if (c && c.defaultProps) {
|
|
@@ -4031,18 +4034,18 @@ function Da() {
|
|
|
4031
4034
|
for (q in W)
|
|
4032
4035
|
x[q] === void 0 && (x[q] = W[q]);
|
|
4033
4036
|
}
|
|
4034
|
-
if (
|
|
4037
|
+
if (R || se) {
|
|
4035
4038
|
var Y = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
4036
|
-
|
|
4039
|
+
R && Vs(x, Y), se && js(x, Y);
|
|
4037
4040
|
}
|
|
4038
|
-
return $s(c,
|
|
4041
|
+
return $s(c, R, se, A, w, Pe.current, x);
|
|
4039
4042
|
}
|
|
4040
4043
|
}
|
|
4041
|
-
var Ht =
|
|
4044
|
+
var Ht = _.ReactCurrentOwner, Xn = _.ReactDebugCurrentFrame;
|
|
4042
4045
|
function He(c) {
|
|
4043
4046
|
if (c) {
|
|
4044
|
-
var d = c._owner,
|
|
4045
|
-
Xn.setExtraStackFrame(
|
|
4047
|
+
var d = c._owner, v = I(c.type, c._source, d ? d.type : null);
|
|
4048
|
+
Xn.setExtraStackFrame(v);
|
|
4046
4049
|
} else
|
|
4047
4050
|
Xn.setExtraStackFrame(null);
|
|
4048
4051
|
}
|
|
@@ -4066,10 +4069,10 @@ Check the render method of \`` + c + "`.";
|
|
|
4066
4069
|
function Ws(c) {
|
|
4067
4070
|
{
|
|
4068
4071
|
if (c !== void 0) {
|
|
4069
|
-
var d = c.fileName.replace(/^.*[\\\/]/, ""),
|
|
4072
|
+
var d = c.fileName.replace(/^.*[\\\/]/, ""), v = c.lineNumber;
|
|
4070
4073
|
return `
|
|
4071
4074
|
|
|
4072
|
-
Check your code at ` + d + ":" +
|
|
4075
|
+
Check your code at ` + d + ":" + v + ".";
|
|
4073
4076
|
}
|
|
4074
4077
|
return "";
|
|
4075
4078
|
}
|
|
@@ -4079,10 +4082,10 @@ Check your code at ` + d + ":" + y + ".";
|
|
|
4079
4082
|
{
|
|
4080
4083
|
var d = Qn();
|
|
4081
4084
|
if (!d) {
|
|
4082
|
-
var
|
|
4083
|
-
|
|
4085
|
+
var v = typeof c == "string" ? c : c.displayName || c.name;
|
|
4086
|
+
v && (d = `
|
|
4084
4087
|
|
|
4085
|
-
Check the top-level render call using <` +
|
|
4088
|
+
Check the top-level render call using <` + v + ">.");
|
|
4086
4089
|
}
|
|
4087
4090
|
return d;
|
|
4088
4091
|
}
|
|
@@ -4092,12 +4095,12 @@ Check the top-level render call using <` + y + ">.");
|
|
|
4092
4095
|
if (!c._store || c._store.validated || c.key != null)
|
|
4093
4096
|
return;
|
|
4094
4097
|
c._store.validated = !0;
|
|
4095
|
-
var
|
|
4096
|
-
if (Zn[
|
|
4098
|
+
var v = Hs(d);
|
|
4099
|
+
if (Zn[v])
|
|
4097
4100
|
return;
|
|
4098
|
-
Zn[
|
|
4099
|
-
var
|
|
4100
|
-
c && c._owner && c._owner !== Ht.current && (
|
|
4101
|
+
Zn[v] = !0;
|
|
4102
|
+
var w = "";
|
|
4103
|
+
c && c._owner && c._owner !== Ht.current && (w = " It was passed a child from " + G(c._owner.type) + "."), He(c), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, w), He(null);
|
|
4101
4104
|
}
|
|
4102
4105
|
}
|
|
4103
4106
|
function tr(c, d) {
|
|
@@ -4105,14 +4108,14 @@ Check the top-level render call using <` + y + ">.");
|
|
|
4105
4108
|
if (typeof c != "object")
|
|
4106
4109
|
return;
|
|
4107
4110
|
if (Me(c))
|
|
4108
|
-
for (var
|
|
4109
|
-
var
|
|
4110
|
-
Yt(
|
|
4111
|
+
for (var v = 0; v < c.length; v++) {
|
|
4112
|
+
var w = c[v];
|
|
4113
|
+
Yt(w) && er(w, d);
|
|
4111
4114
|
}
|
|
4112
4115
|
else if (Yt(c))
|
|
4113
4116
|
c._store && (c._store.validated = !0);
|
|
4114
4117
|
else if (c) {
|
|
4115
|
-
var A =
|
|
4118
|
+
var A = E(c);
|
|
4116
4119
|
if (typeof A == "function" && A !== c.entries)
|
|
4117
4120
|
for (var q = A.call(c), x; !(x = q.next()).done; )
|
|
4118
4121
|
Yt(x.value) && er(x.value, d);
|
|
@@ -4124,71 +4127,71 @@ Check the top-level render call using <` + y + ">.");
|
|
|
4124
4127
|
var d = c.type;
|
|
4125
4128
|
if (d == null || typeof d == "string")
|
|
4126
4129
|
return;
|
|
4127
|
-
var
|
|
4130
|
+
var v;
|
|
4128
4131
|
if (typeof d == "function")
|
|
4129
|
-
|
|
4132
|
+
v = d.propTypes;
|
|
4130
4133
|
else if (typeof d == "object" && (d.$$typeof === l || d.$$typeof === f))
|
|
4131
|
-
|
|
4134
|
+
v = d.propTypes;
|
|
4132
4135
|
else
|
|
4133
4136
|
return;
|
|
4134
|
-
if (
|
|
4135
|
-
var
|
|
4136
|
-
de(
|
|
4137
|
+
if (v) {
|
|
4138
|
+
var w = G(d);
|
|
4139
|
+
de(v, c.props, "prop", w, c);
|
|
4137
4140
|
} else if (d.PropTypes !== void 0 && !Jt) {
|
|
4138
4141
|
Jt = !0;
|
|
4139
4142
|
var A = G(d);
|
|
4140
|
-
|
|
4143
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
4141
4144
|
}
|
|
4142
|
-
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved &&
|
|
4145
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
4143
4146
|
}
|
|
4144
4147
|
}
|
|
4145
4148
|
function Ys(c) {
|
|
4146
4149
|
{
|
|
4147
|
-
for (var d = Object.keys(c.props),
|
|
4148
|
-
var
|
|
4149
|
-
if (
|
|
4150
|
-
He(c),
|
|
4150
|
+
for (var d = Object.keys(c.props), v = 0; v < d.length; v++) {
|
|
4151
|
+
var w = d[v];
|
|
4152
|
+
if (w !== "children" && w !== "key") {
|
|
4153
|
+
He(c), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), He(null);
|
|
4151
4154
|
break;
|
|
4152
4155
|
}
|
|
4153
4156
|
}
|
|
4154
|
-
c.ref !== null && (He(c),
|
|
4157
|
+
c.ref !== null && (He(c), S("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
|
|
4155
4158
|
}
|
|
4156
4159
|
}
|
|
4157
|
-
function nr(c, d,
|
|
4160
|
+
function nr(c, d, v, w, A, q) {
|
|
4158
4161
|
{
|
|
4159
4162
|
var x = L(c);
|
|
4160
4163
|
if (!x) {
|
|
4161
|
-
var
|
|
4162
|
-
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (
|
|
4164
|
+
var R = "";
|
|
4165
|
+
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
4163
4166
|
var se = Ws(A);
|
|
4164
|
-
se ?
|
|
4167
|
+
se ? R += se : R += Qn();
|
|
4165
4168
|
var W;
|
|
4166
|
-
c === null ? W = "null" : Me(c) ? W = "array" : c !== void 0 && c.$$typeof === e ? (W = "<" + (G(c.type) || "Unknown") + " />",
|
|
4169
|
+
c === null ? W = "null" : Me(c) ? W = "array" : c !== void 0 && c.$$typeof === e ? (W = "<" + (G(c.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : W = typeof c, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, R);
|
|
4167
4170
|
}
|
|
4168
|
-
var Y = Ms(c, d,
|
|
4171
|
+
var Y = Ms(c, d, v, A, q);
|
|
4169
4172
|
if (Y == null)
|
|
4170
4173
|
return Y;
|
|
4171
4174
|
if (x) {
|
|
4172
4175
|
var le = d.children;
|
|
4173
4176
|
if (le !== void 0)
|
|
4174
|
-
if (
|
|
4177
|
+
if (w)
|
|
4175
4178
|
if (Me(le)) {
|
|
4176
4179
|
for (var Je = 0; Je < le.length; Je++)
|
|
4177
4180
|
tr(le[Je], c);
|
|
4178
4181
|
Object.freeze && Object.freeze(le);
|
|
4179
4182
|
} else
|
|
4180
|
-
|
|
4183
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
4181
4184
|
else
|
|
4182
4185
|
tr(le, c);
|
|
4183
4186
|
}
|
|
4184
4187
|
return c === r ? Ys(Y) : Js(Y), Y;
|
|
4185
4188
|
}
|
|
4186
4189
|
}
|
|
4187
|
-
function zs(c, d,
|
|
4188
|
-
return nr(c, d,
|
|
4190
|
+
function zs(c, d, v) {
|
|
4191
|
+
return nr(c, d, v, !0);
|
|
4189
4192
|
}
|
|
4190
|
-
function Ks(c, d,
|
|
4191
|
-
return nr(c, d,
|
|
4193
|
+
function Ks(c, d, v) {
|
|
4194
|
+
return nr(c, d, v, !1);
|
|
4192
4195
|
}
|
|
4193
4196
|
var Gs = Ks, Xs = zs;
|
|
4194
4197
|
at.Fragment = r, at.jsx = Gs, at.jsxs = Xs;
|
|
@@ -4230,10 +4233,10 @@ const ka = Ps.exports.jsx, te = zr(null), Ua = ({
|
|
|
4230
4233
|
auth: t,
|
|
4231
4234
|
tokenParams: r
|
|
4232
4235
|
} = ee(te), [s, i] = P(), o = $(() => {
|
|
4233
|
-
const
|
|
4234
|
-
if (
|
|
4235
|
-
const
|
|
4236
|
-
i(
|
|
4236
|
+
const g = document.cookie.split(";").find((b) => b.trim().startsWith("user_id="));
|
|
4237
|
+
if (g) {
|
|
4238
|
+
const b = g.split("=")[1];
|
|
4239
|
+
i(b && b !== "Guest" ? b : null);
|
|
4237
4240
|
} else
|
|
4238
4241
|
i(null);
|
|
4239
4242
|
}, []);
|
|
@@ -4253,19 +4256,19 @@ const ka = Ps.exports.jsx, te = zr(null), Ua = ({
|
|
|
4253
4256
|
shouldRetryOnError: !1,
|
|
4254
4257
|
revalidateOnFocus: !1,
|
|
4255
4258
|
...n
|
|
4256
|
-
}), p = $(async (
|
|
4257
|
-
username:
|
|
4258
|
-
password:
|
|
4259
|
-
}).then((
|
|
4259
|
+
}), p = $(async (g, b) => t.loginWithUsernamePassword({
|
|
4260
|
+
username: g,
|
|
4261
|
+
password: b
|
|
4262
|
+
}).then((E) => {
|
|
4260
4263
|
o();
|
|
4261
|
-
}), []),
|
|
4264
|
+
}), []), m = $(async () => t.logout().then(() => f(null)).then(() => i(null)), []);
|
|
4262
4265
|
return {
|
|
4263
4266
|
isLoading: s === void 0 || a,
|
|
4264
4267
|
currentUser: u,
|
|
4265
4268
|
isValidating: h,
|
|
4266
4269
|
error: l,
|
|
4267
4270
|
login: p,
|
|
4268
|
-
logout:
|
|
4271
|
+
logout: m,
|
|
4269
4272
|
updateCurrentUser: f,
|
|
4270
4273
|
getUserCookie: o
|
|
4271
4274
|
};
|
|
@@ -4382,8 +4385,8 @@ const Wa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4382
4385
|
r(null), i(!1), u(null), a(!1);
|
|
4383
4386
|
}, []);
|
|
4384
4387
|
return {
|
|
4385
|
-
call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.post(n, p).then((
|
|
4386
|
-
throw i(!1), a(!1), u(
|
|
4388
|
+
call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.post(n, p).then((m) => (r(m), i(!1), a(!0), m)).catch((m) => {
|
|
4389
|
+
throw i(!1), a(!1), u(m), m;
|
|
4387
4390
|
})), []),
|
|
4388
4391
|
result: t,
|
|
4389
4392
|
loading: s,
|
|
@@ -4398,8 +4401,8 @@ const Wa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4398
4401
|
r(null), i(!1), u(null), a(!1);
|
|
4399
4402
|
}, []);
|
|
4400
4403
|
return {
|
|
4401
|
-
call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.put(n, p).then((
|
|
4402
|
-
throw i(!1), a(!1), u(
|
|
4404
|
+
call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.put(n, p).then((m) => (r(m), i(!1), a(!0), m)).catch((m) => {
|
|
4405
|
+
throw i(!1), a(!1), u(m), m;
|
|
4403
4406
|
})), []),
|
|
4404
4407
|
result: t,
|
|
4405
4408
|
loading: s,
|
|
@@ -4414,8 +4417,8 @@ const Wa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4414
4417
|
r(null), i(!1), u(null), a(!1);
|
|
4415
4418
|
}, []);
|
|
4416
4419
|
return {
|
|
4417
|
-
call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.delete(n, p).then((
|
|
4418
|
-
throw i(!1), a(!1), u(
|
|
4420
|
+
call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.delete(n, p).then((m) => (r(m), i(!1), a(!0), m)).catch((m) => {
|
|
4421
|
+
throw i(!1), a(!1), u(m), m;
|
|
4419
4422
|
})), []),
|
|
4420
4423
|
result: t,
|
|
4421
4424
|
loading: s,
|
|
@@ -4426,8 +4429,8 @@ const Wa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4426
4429
|
}, za = () => {
|
|
4427
4430
|
const {
|
|
4428
4431
|
file: n
|
|
4429
|
-
} = ee(te), [e, t] = P(0), [r, s] = P(!1), [i, o] = P(null), [u, l] = P(!1), a = $(async (f, p) => (h(), s(!0), n.uploadFile(f, p, (
|
|
4430
|
-
throw console.error(
|
|
4432
|
+
} = ee(te), [e, t] = P(0), [r, s] = P(!1), [i, o] = P(null), [u, l] = P(!1), a = $(async (f, p, m) => (h(), s(!0), n.uploadFile(f, p, (g, b) => t(Math.round(g / b * 100)), m).then((g) => (l(!0), t(100), s(!1), g.data.message)).catch((g) => {
|
|
4433
|
+
throw console.error(g), o(g), s(!1), g;
|
|
4431
4434
|
})), []), h = $(() => {
|
|
4432
4435
|
t(0), s(!1), o(null), l(!1);
|
|
4433
4436
|
}, []);
|