zyjj-web-sdk 1.1.28 → 1.1.30
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/lib/index.js +588 -576
- package/lib/index.umd.cjs +12 -12
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var Go = Object.defineProperty;
|
|
2
2
|
var Yo = (e, t, r) => t in e ? Go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var At = (e, t, r) => Yo(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { Message as
|
|
4
|
+
import { Message as Oe, Typography as jn, Space as Ke, Input as Ae, Button as ve, Modal as Hr, Form as se, Select as Gr, Table as Jo } from "@arco-design/web-react";
|
|
5
5
|
import Ko from "cos-js-sdk-v5";
|
|
6
6
|
import Xo from "ali-oss";
|
|
7
|
-
import
|
|
7
|
+
import je, { useState as de, useRef as Zo, useEffect as Xe, createContext as Qo, useContext as Pn } from "react";
|
|
8
8
|
import es from "mqtt";
|
|
9
9
|
function Nn(e, t) {
|
|
10
10
|
return function() {
|
|
11
11
|
return e.apply(t, arguments);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
const { toString: ts } = Object.prototype, { getPrototypeOf:
|
|
14
|
+
const { toString: ts } = Object.prototype, { getPrototypeOf: Er } = Object, St = /* @__PURE__ */ ((e) => (t) => {
|
|
15
15
|
const r = ts.call(t);
|
|
16
16
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
17
|
-
})(/* @__PURE__ */ Object.create(null)), _e = (e) => (e = e.toLowerCase(), (t) => St(t) === e),
|
|
17
|
+
})(/* @__PURE__ */ Object.create(null)), _e = (e) => (e = e.toLowerCase(), (t) => St(t) === e), _t = (e) => (t) => typeof t === e, { isArray: Ve } = Array, Ze = _t("undefined");
|
|
18
18
|
function rs(e) {
|
|
19
|
-
return e !== null && !Ze(e) && e.constructor !== null && !Ze(e.constructor) &&
|
|
19
|
+
return e !== null && !Ze(e) && e.constructor !== null && !Ze(e.constructor) && he(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
20
20
|
}
|
|
21
21
|
const kn = _e("ArrayBuffer");
|
|
22
22
|
function ns(e) {
|
|
23
23
|
let t;
|
|
24
24
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && kn(e.buffer), t;
|
|
25
25
|
}
|
|
26
|
-
const os =
|
|
26
|
+
const os = _t("string"), he = _t("function"), In = _t("number"), Et = (e) => e !== null && typeof e == "object", ss = (e) => e === !0 || e === !1, pt = (e) => {
|
|
27
27
|
if (St(e) !== "object")
|
|
28
28
|
return !1;
|
|
29
|
-
const t =
|
|
29
|
+
const t = Er(e);
|
|
30
30
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
31
|
-
}, is = _e("Date"), as = _e("File"), cs = _e("Blob"), us = _e("FileList"), ls = (e) =>
|
|
31
|
+
}, is = _e("Date"), as = _e("File"), cs = _e("Blob"), us = _e("FileList"), ls = (e) => Et(e) && he(e.pipe), fs = (e) => {
|
|
32
32
|
let t;
|
|
33
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
34
|
-
t === "object" &&
|
|
33
|
+
return e && (typeof FormData == "function" && e instanceof FormData || he(e.append) && ((t = St(e)) === "formdata" || // detect form-data instance
|
|
34
|
+
t === "object" && he(e.toString) && e.toString() === "[object FormData]"));
|
|
35
35
|
}, ds = _e("URLSearchParams"), hs = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
36
|
function nt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
37
37
|
if (e === null || typeof e > "u")
|
|
@@ -67,7 +67,7 @@ function Wt() {
|
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
69
|
const ps = (e, t, r, { allOwnKeys: n } = {}) => (nt(t, (o, s) => {
|
|
70
|
-
r &&
|
|
70
|
+
r && he(o) ? e[s] = Nn(o, r) : e[s] = o;
|
|
71
71
|
}, { allOwnKeys: n }), e), ms = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ys = (e, t, r, n) => {
|
|
72
72
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
73
73
|
value: t.prototype
|
|
@@ -79,7 +79,7 @@ const ps = (e, t, r, { allOwnKeys: n } = {}) => (nt(t, (o, s) => {
|
|
|
79
79
|
do {
|
|
80
80
|
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
81
81
|
i = o[s], (!n || n(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
82
|
-
e = r !== !1 &&
|
|
82
|
+
e = r !== !1 && Er(e);
|
|
83
83
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
84
84
|
return t;
|
|
85
85
|
}, bs = (e, t, r) => {
|
|
@@ -95,14 +95,14 @@ const ps = (e, t, r, { allOwnKeys: n } = {}) => (nt(t, (o, s) => {
|
|
|
95
95
|
for (; t-- > 0; )
|
|
96
96
|
r[t] = e[t];
|
|
97
97
|
return r;
|
|
98
|
-
}, Ss = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
98
|
+
}, Ss = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Er(Uint8Array)), _s = (e, t) => {
|
|
99
99
|
const n = (e && e[Symbol.iterator]).call(e);
|
|
100
100
|
let o;
|
|
101
101
|
for (; (o = n.next()) && !o.done; ) {
|
|
102
102
|
const s = o.value;
|
|
103
103
|
t.call(e, s[0], s[1]);
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, Es = (e, t) => {
|
|
106
106
|
let r;
|
|
107
107
|
const n = [];
|
|
108
108
|
for (; (r = e.exec(t)) !== null; )
|
|
@@ -121,10 +121,10 @@ const ps = (e, t, r, { allOwnKeys: n } = {}) => (nt(t, (o, s) => {
|
|
|
121
121
|
}), Object.defineProperties(e, n);
|
|
122
122
|
}, Rs = (e) => {
|
|
123
123
|
Mn(e, (t, r) => {
|
|
124
|
-
if (
|
|
124
|
+
if (he(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
125
125
|
return !1;
|
|
126
126
|
const n = e[r];
|
|
127
|
-
if (
|
|
127
|
+
if (he(n)) {
|
|
128
128
|
if (t.enumerable = !1, "writable" in t) {
|
|
129
129
|
t.writable = !1;
|
|
130
130
|
return;
|
|
@@ -142,11 +142,11 @@ const ps = (e, t, r, { allOwnKeys: n } = {}) => (nt(t, (o, s) => {
|
|
|
142
142
|
};
|
|
143
143
|
return Ve(e) ? n(e) : n(String(e).split(t)), r;
|
|
144
144
|
}, xs = () => {
|
|
145
|
-
},
|
|
145
|
+
}, js = (e, t) => (e = +e, Number.isFinite(e) ? e : t), $t = "abcdefghijklmnopqrstuvwxyz", Jr = "0123456789", Un = {
|
|
146
146
|
DIGIT: Jr,
|
|
147
147
|
ALPHA: $t,
|
|
148
148
|
ALPHA_DIGIT: $t + $t.toUpperCase() + Jr
|
|
149
|
-
},
|
|
149
|
+
}, Ps = (e = 16, t = Un.ALPHA_DIGIT) => {
|
|
150
150
|
let r = "";
|
|
151
151
|
const { length: n } = t;
|
|
152
152
|
for (; e--; )
|
|
@@ -154,11 +154,11 @@ const ps = (e, t, r, { allOwnKeys: n } = {}) => (nt(t, (o, s) => {
|
|
|
154
154
|
return r;
|
|
155
155
|
};
|
|
156
156
|
function Ns(e) {
|
|
157
|
-
return !!(e &&
|
|
157
|
+
return !!(e && he(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
158
158
|
}
|
|
159
159
|
const ks = (e) => {
|
|
160
160
|
const t = new Array(10), r = (n, o) => {
|
|
161
|
-
if (
|
|
161
|
+
if (Et(n)) {
|
|
162
162
|
if (t.indexOf(n) >= 0)
|
|
163
163
|
return;
|
|
164
164
|
if (!("toJSON" in n)) {
|
|
@@ -173,7 +173,7 @@ const ks = (e) => {
|
|
|
173
173
|
return n;
|
|
174
174
|
};
|
|
175
175
|
return r(e, 0);
|
|
176
|
-
}, Is = _e("AsyncFunction"), As = (e) => e && (
|
|
176
|
+
}, Is = _e("AsyncFunction"), As = (e) => e && (Et(e) || he(e)) && he(e.then) && he(e.catch), h = {
|
|
177
177
|
isArray: Ve,
|
|
178
178
|
isArrayBuffer: kn,
|
|
179
179
|
isBuffer: rs,
|
|
@@ -182,14 +182,14 @@ const ks = (e) => {
|
|
|
182
182
|
isString: os,
|
|
183
183
|
isNumber: In,
|
|
184
184
|
isBoolean: ss,
|
|
185
|
-
isObject:
|
|
185
|
+
isObject: Et,
|
|
186
186
|
isPlainObject: pt,
|
|
187
187
|
isUndefined: Ze,
|
|
188
188
|
isDate: is,
|
|
189
189
|
isFile: as,
|
|
190
190
|
isBlob: cs,
|
|
191
191
|
isRegExp: Cs,
|
|
192
|
-
isFunction:
|
|
192
|
+
isFunction: he,
|
|
193
193
|
isStream: ls,
|
|
194
194
|
isURLSearchParams: ds,
|
|
195
195
|
isTypedArray: Ss,
|
|
@@ -205,8 +205,8 @@ const ks = (e) => {
|
|
|
205
205
|
kindOfTest: _e,
|
|
206
206
|
endsWith: bs,
|
|
207
207
|
toArray: ws,
|
|
208
|
-
forEachEntry:
|
|
209
|
-
matchAll:
|
|
208
|
+
forEachEntry: _s,
|
|
209
|
+
matchAll: Es,
|
|
210
210
|
isHTMLForm: vs,
|
|
211
211
|
hasOwnProperty: Yr,
|
|
212
212
|
hasOwnProp: Yr,
|
|
@@ -216,12 +216,12 @@ const ks = (e) => {
|
|
|
216
216
|
toObjectSet: Ds,
|
|
217
217
|
toCamelCase: Os,
|
|
218
218
|
noop: xs,
|
|
219
|
-
toFiniteNumber:
|
|
219
|
+
toFiniteNumber: js,
|
|
220
220
|
findKey: An,
|
|
221
221
|
global: $n,
|
|
222
222
|
isContextDefined: Fn,
|
|
223
223
|
ALPHABET: Un,
|
|
224
|
-
generateString:
|
|
224
|
+
generateString: Ps,
|
|
225
225
|
isSpecCompliantForm: Ns,
|
|
226
226
|
toJSONObject: ks,
|
|
227
227
|
isAsyncFn: Is,
|
|
@@ -305,10 +305,10 @@ function vt(e, t, r) {
|
|
|
305
305
|
}, !1, function(b, N) {
|
|
306
306
|
return !h.isUndefined(N[b]);
|
|
307
307
|
});
|
|
308
|
-
const n = r.metaTokens, o = r.visitor ||
|
|
308
|
+
const n = r.metaTokens, o = r.visitor || f, s = r.dots, i = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
|
|
309
309
|
if (!h.isFunction(o))
|
|
310
310
|
throw new TypeError("visitor must be a function");
|
|
311
|
-
function
|
|
311
|
+
function d(m) {
|
|
312
312
|
if (m === null) return "";
|
|
313
313
|
if (h.isDate(m))
|
|
314
314
|
return m.toISOString();
|
|
@@ -316,45 +316,45 @@ function vt(e, t, r) {
|
|
|
316
316
|
throw new F("Blob is not supported. Use a Buffer instead.");
|
|
317
317
|
return h.isArrayBuffer(m) || h.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function f(m, b, N) {
|
|
320
320
|
let M = m;
|
|
321
321
|
if (m && !N && typeof m == "object") {
|
|
322
322
|
if (h.endsWith(b, "{}"))
|
|
323
323
|
b = n ? b : b.slice(0, -2), m = JSON.stringify(m);
|
|
324
324
|
else if (h.isArray(m) && Fs(m) || (h.isFileList(m) || h.endsWith(b, "[]")) && (M = h.toArray(m)))
|
|
325
|
-
return b = qn(b), M.forEach(function(
|
|
326
|
-
!(h.isUndefined(
|
|
325
|
+
return b = qn(b), M.forEach(function(j, A) {
|
|
326
|
+
!(h.isUndefined(j) || j === null) && t.append(
|
|
327
327
|
// eslint-disable-next-line no-nested-ternary
|
|
328
328
|
i === !0 ? Kr([b], A, s) : i === null ? b : b + "[]",
|
|
329
|
-
|
|
329
|
+
d(j)
|
|
330
330
|
);
|
|
331
331
|
}), !1;
|
|
332
332
|
}
|
|
333
|
-
return Tt(m) ? !0 : (t.append(Kr(N, b, s),
|
|
333
|
+
return Tt(m) ? !0 : (t.append(Kr(N, b, s), d(m)), !1);
|
|
334
334
|
}
|
|
335
|
-
const
|
|
336
|
-
defaultVisitor:
|
|
337
|
-
convertValue:
|
|
335
|
+
const l = [], _ = Object.assign(Ms, {
|
|
336
|
+
defaultVisitor: f,
|
|
337
|
+
convertValue: d,
|
|
338
338
|
isVisitable: Tt
|
|
339
339
|
});
|
|
340
|
-
function
|
|
340
|
+
function v(m, b) {
|
|
341
341
|
if (!h.isUndefined(m)) {
|
|
342
|
-
if (
|
|
342
|
+
if (l.indexOf(m) !== -1)
|
|
343
343
|
throw Error("Circular reference detected in " + b.join("."));
|
|
344
|
-
|
|
344
|
+
l.push(m), h.forEach(m, function(M, P) {
|
|
345
345
|
(!(h.isUndefined(M) || M === null) && o.call(
|
|
346
346
|
t,
|
|
347
347
|
M,
|
|
348
|
-
h.isString(
|
|
348
|
+
h.isString(P) ? P.trim() : P,
|
|
349
349
|
b,
|
|
350
|
-
|
|
351
|
-
)) === !0 &&
|
|
352
|
-
}),
|
|
350
|
+
_
|
|
351
|
+
)) === !0 && v(M, b ? b.concat(P) : [P]);
|
|
352
|
+
}), l.pop();
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
if (!h.isObject(e))
|
|
356
356
|
throw new TypeError("data must be an object");
|
|
357
|
-
return
|
|
357
|
+
return v(e), t;
|
|
358
358
|
}
|
|
359
359
|
function Xr(e) {
|
|
360
360
|
const t = {
|
|
@@ -471,14 +471,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ts
|
|
|
471
471
|
hasBrowserEnv: Tn,
|
|
472
472
|
hasStandardBrowserEnv: Vs,
|
|
473
473
|
hasStandardBrowserWebWorkerEnv: Ws
|
|
474
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
474
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = {
|
|
475
475
|
...Ts,
|
|
476
476
|
...Ls
|
|
477
477
|
};
|
|
478
478
|
function Hs(e, t) {
|
|
479
|
-
return vt(e, new
|
|
479
|
+
return vt(e, new Se.classes.URLSearchParams(), Object.assign({
|
|
480
480
|
visitor: function(r, n, o, s) {
|
|
481
|
-
return
|
|
481
|
+
return Se.isNode && h.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
482
482
|
}
|
|
483
483
|
}, t));
|
|
484
484
|
}
|
|
@@ -570,8 +570,8 @@ const ot = {
|
|
|
570
570
|
maxContentLength: -1,
|
|
571
571
|
maxBodyLength: -1,
|
|
572
572
|
env: {
|
|
573
|
-
FormData:
|
|
574
|
-
Blob:
|
|
573
|
+
FormData: Se.classes.FormData,
|
|
574
|
+
Blob: Se.classes.Blob
|
|
575
575
|
},
|
|
576
576
|
validateStatus: function(t) {
|
|
577
577
|
return t >= 200 && t < 300;
|
|
@@ -650,20 +650,20 @@ function ti(e, t) {
|
|
|
650
650
|
});
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
class
|
|
653
|
+
class pe {
|
|
654
654
|
constructor(t) {
|
|
655
655
|
t && this.set(t);
|
|
656
656
|
}
|
|
657
657
|
set(t, r, n) {
|
|
658
658
|
const o = this;
|
|
659
|
-
function s(c, u,
|
|
660
|
-
const
|
|
661
|
-
if (!
|
|
659
|
+
function s(c, u, d) {
|
|
660
|
+
const f = He(u);
|
|
661
|
+
if (!f)
|
|
662
662
|
throw new Error("header name must be a non-empty string");
|
|
663
|
-
const
|
|
664
|
-
(!
|
|
663
|
+
const l = h.findKey(o, f);
|
|
664
|
+
(!l || o[l] === void 0 || d === !0 || d === void 0 && o[l] !== !1) && (o[l || u] = mt(c));
|
|
665
665
|
}
|
|
666
|
-
const i = (c, u) => h.forEach(c, (
|
|
666
|
+
const i = (c, u) => h.forEach(c, (d, f) => s(d, f, u));
|
|
667
667
|
return h.isPlainObject(t) || t instanceof this.constructor ? i(t, r) : h.isString(t) && (t = t.trim()) && !Qs(t) ? i(Xs(t), r) : t != null && s(r, t, n), this;
|
|
668
668
|
}
|
|
669
669
|
get(t, r) {
|
|
@@ -759,8 +759,8 @@ class he {
|
|
|
759
759
|
return h.isArray(t) ? t.forEach(s) : s(t), this;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
|
|
763
|
-
h.reduceDescriptors(
|
|
762
|
+
pe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
763
|
+
h.reduceDescriptors(pe.prototype, ({ value: e }, t) => {
|
|
764
764
|
let r = t[0].toUpperCase() + t.slice(1);
|
|
765
765
|
return {
|
|
766
766
|
get: () => e,
|
|
@@ -769,9 +769,9 @@ h.reduceDescriptors(he.prototype, ({ value: e }, t) => {
|
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
771
|
});
|
|
772
|
-
h.freezeMethods(
|
|
772
|
+
h.freezeMethods(pe);
|
|
773
773
|
function Mt(e, t) {
|
|
774
|
-
const r = this || ot, n = t || r, o =
|
|
774
|
+
const r = this || ot, n = t || r, o = pe.from(n.headers);
|
|
775
775
|
let s = n.data;
|
|
776
776
|
return h.forEach(e, function(c) {
|
|
777
777
|
s = c.call(r, s, o.normalize(), t ? t.status : void 0);
|
|
@@ -796,7 +796,7 @@ function ri(e, t, r) {
|
|
|
796
796
|
r
|
|
797
797
|
));
|
|
798
798
|
}
|
|
799
|
-
const ni =
|
|
799
|
+
const ni = Se.hasStandardBrowserEnv ? (
|
|
800
800
|
// Standard browser envs support document.cookie
|
|
801
801
|
{
|
|
802
802
|
write(e, t, r, n, o, s) {
|
|
@@ -832,7 +832,7 @@ function si(e, t) {
|
|
|
832
832
|
function Yn(e, t) {
|
|
833
833
|
return e && !oi(t) ? si(e, t) : t;
|
|
834
834
|
}
|
|
835
|
-
const ii =
|
|
835
|
+
const ii = Se.hasStandardBrowserEnv ? (
|
|
836
836
|
// Standard browser envs have full support of the APIs needed to test
|
|
837
837
|
// whether the request URL is of the same origin as current location.
|
|
838
838
|
function() {
|
|
@@ -873,108 +873,108 @@ function ci(e, t) {
|
|
|
873
873
|
const r = new Array(e), n = new Array(e);
|
|
874
874
|
let o = 0, s = 0, i;
|
|
875
875
|
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
876
|
-
const
|
|
877
|
-
i || (i =
|
|
878
|
-
let
|
|
879
|
-
for (;
|
|
880
|
-
|
|
881
|
-
if (o = (o + 1) % e, o === s && (s = (s + 1) % e),
|
|
876
|
+
const d = Date.now(), f = n[s];
|
|
877
|
+
i || (i = d), r[o] = u, n[o] = d;
|
|
878
|
+
let l = s, _ = 0;
|
|
879
|
+
for (; l !== o; )
|
|
880
|
+
_ += r[l++], l = l % e;
|
|
881
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), d - i < t)
|
|
882
882
|
return;
|
|
883
|
-
const
|
|
884
|
-
return
|
|
883
|
+
const v = f && d - f;
|
|
884
|
+
return v ? Math.round(_ * 1e3 / v) : void 0;
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
887
|
function en(e, t) {
|
|
888
888
|
let r = 0;
|
|
889
889
|
const n = ci(50, 250);
|
|
890
890
|
return (o) => {
|
|
891
|
-
const s = o.loaded, i = o.lengthComputable ? o.total : void 0, c = s - r, u = n(c),
|
|
891
|
+
const s = o.loaded, i = o.lengthComputable ? o.total : void 0, c = s - r, u = n(c), d = s <= i;
|
|
892
892
|
r = s;
|
|
893
|
-
const
|
|
893
|
+
const f = {
|
|
894
894
|
loaded: s,
|
|
895
895
|
total: i,
|
|
896
896
|
progress: i ? s / i : void 0,
|
|
897
897
|
bytes: c,
|
|
898
898
|
rate: u || void 0,
|
|
899
|
-
estimated: u && i &&
|
|
899
|
+
estimated: u && i && d ? (i - s) / u : void 0,
|
|
900
900
|
event: o
|
|
901
901
|
};
|
|
902
|
-
|
|
902
|
+
f[t ? "download" : "upload"] = !0, e(f);
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
905
|
const ui = typeof XMLHttpRequest < "u", li = ui && function(e) {
|
|
906
906
|
return new Promise(function(r, n) {
|
|
907
907
|
let o = e.data;
|
|
908
|
-
const s =
|
|
908
|
+
const s = pe.from(e.headers).normalize();
|
|
909
909
|
let { responseType: i, withXSRFToken: c } = e, u;
|
|
910
|
-
function
|
|
910
|
+
function d() {
|
|
911
911
|
e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
|
|
912
912
|
}
|
|
913
|
-
let
|
|
913
|
+
let f;
|
|
914
914
|
if (h.isFormData(o)) {
|
|
915
|
-
if (
|
|
915
|
+
if (Se.hasStandardBrowserEnv || Se.hasStandardBrowserWebWorkerEnv)
|
|
916
916
|
s.setContentType(!1);
|
|
917
|
-
else if ((
|
|
918
|
-
const [b, ...N] =
|
|
917
|
+
else if ((f = s.getContentType()) !== !1) {
|
|
918
|
+
const [b, ...N] = f ? f.split(";").map((M) => M.trim()).filter(Boolean) : [];
|
|
919
919
|
s.setContentType([b || "multipart/form-data", ...N].join("; "));
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
let
|
|
922
|
+
let l = new XMLHttpRequest();
|
|
923
923
|
if (e.auth) {
|
|
924
924
|
const b = e.auth.username || "", N = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
925
925
|
s.set("Authorization", "Basic " + btoa(b + ":" + N));
|
|
926
926
|
}
|
|
927
|
-
const
|
|
928
|
-
|
|
929
|
-
function
|
|
930
|
-
if (!
|
|
927
|
+
const _ = Yn(e.baseURL, e.url);
|
|
928
|
+
l.open(e.method.toUpperCase(), Vn(_, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
929
|
+
function v() {
|
|
930
|
+
if (!l)
|
|
931
931
|
return;
|
|
932
|
-
const b =
|
|
933
|
-
"getAllResponseHeaders" in
|
|
932
|
+
const b = pe.from(
|
|
933
|
+
"getAllResponseHeaders" in l && l.getAllResponseHeaders()
|
|
934
934
|
), M = {
|
|
935
|
-
data: !i || i === "text" || i === "json" ?
|
|
936
|
-
status:
|
|
937
|
-
statusText:
|
|
935
|
+
data: !i || i === "text" || i === "json" ? l.responseText : l.response,
|
|
936
|
+
status: l.status,
|
|
937
|
+
statusText: l.statusText,
|
|
938
938
|
headers: b,
|
|
939
939
|
config: e,
|
|
940
|
-
request:
|
|
940
|
+
request: l
|
|
941
941
|
};
|
|
942
|
-
ri(function(
|
|
943
|
-
r(
|
|
944
|
-
}, function(
|
|
945
|
-
n(
|
|
946
|
-
}, M),
|
|
942
|
+
ri(function(j) {
|
|
943
|
+
r(j), d();
|
|
944
|
+
}, function(j) {
|
|
945
|
+
n(j), d();
|
|
946
|
+
}, M), l = null;
|
|
947
947
|
}
|
|
948
|
-
if ("onloadend" in
|
|
949
|
-
!
|
|
950
|
-
},
|
|
951
|
-
|
|
952
|
-
},
|
|
953
|
-
n(new F("Network Error", F.ERR_NETWORK, e,
|
|
954
|
-
},
|
|
948
|
+
if ("onloadend" in l ? l.onloadend = v : l.onreadystatechange = function() {
|
|
949
|
+
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(v);
|
|
950
|
+
}, l.onabort = function() {
|
|
951
|
+
l && (n(new F("Request aborted", F.ECONNABORTED, e, l)), l = null);
|
|
952
|
+
}, l.onerror = function() {
|
|
953
|
+
n(new F("Network Error", F.ERR_NETWORK, e, l)), l = null;
|
|
954
|
+
}, l.ontimeout = function() {
|
|
955
955
|
let N = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
956
956
|
const M = e.transitional || Wn;
|
|
957
957
|
e.timeoutErrorMessage && (N = e.timeoutErrorMessage), n(new F(
|
|
958
958
|
N,
|
|
959
959
|
M.clarifyTimeoutError ? F.ETIMEDOUT : F.ECONNABORTED,
|
|
960
960
|
e,
|
|
961
|
-
|
|
962
|
-
)),
|
|
963
|
-
},
|
|
961
|
+
l
|
|
962
|
+
)), l = null;
|
|
963
|
+
}, Se.hasStandardBrowserEnv && (c && h.isFunction(c) && (c = c(e)), c || c !== !1 && ii(_))) {
|
|
964
964
|
const b = e.xsrfHeaderName && e.xsrfCookieName && ni.read(e.xsrfCookieName);
|
|
965
965
|
b && s.set(e.xsrfHeaderName, b);
|
|
966
966
|
}
|
|
967
|
-
o === void 0 && s.setContentType(null), "setRequestHeader" in
|
|
968
|
-
|
|
969
|
-
}), h.isUndefined(e.withCredentials) || (
|
|
970
|
-
|
|
967
|
+
o === void 0 && s.setContentType(null), "setRequestHeader" in l && h.forEach(s.toJSON(), function(N, M) {
|
|
968
|
+
l.setRequestHeader(M, N);
|
|
969
|
+
}), h.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), i && i !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", en(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", en(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (b) => {
|
|
970
|
+
l && (n(!b || b.type ? new st(null, e, l) : b), l.abort(), l = null);
|
|
971
971
|
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
972
|
-
const m = ai(
|
|
973
|
-
if (m &&
|
|
972
|
+
const m = ai(_);
|
|
973
|
+
if (m && Se.protocols.indexOf(m) === -1) {
|
|
974
974
|
n(new F("Unsupported protocol " + m + ":", F.ERR_BAD_REQUEST, e));
|
|
975
975
|
return;
|
|
976
976
|
}
|
|
977
|
-
|
|
977
|
+
l.send(o || null);
|
|
978
978
|
});
|
|
979
979
|
}, Ht = {
|
|
980
980
|
http: $s,
|
|
@@ -1025,7 +1025,7 @@ function Ut(e) {
|
|
|
1025
1025
|
throw new st(null, e);
|
|
1026
1026
|
}
|
|
1027
1027
|
function rn(e) {
|
|
1028
|
-
return Ut(e), e.headers =
|
|
1028
|
+
return Ut(e), e.headers = pe.from(e.headers), e.data = Mt.call(
|
|
1029
1029
|
e,
|
|
1030
1030
|
e.transformRequest
|
|
1031
1031
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Jn.getAdapter(e.adapter || ot.adapter)(e).then(function(n) {
|
|
@@ -1033,43 +1033,43 @@ function rn(e) {
|
|
|
1033
1033
|
e,
|
|
1034
1034
|
e.transformResponse,
|
|
1035
1035
|
n
|
|
1036
|
-
), n.headers =
|
|
1036
|
+
), n.headers = pe.from(n.headers), n;
|
|
1037
1037
|
}, function(n) {
|
|
1038
1038
|
return Gn(n) || (Ut(e), n && n.response && (n.response.data = Mt.call(
|
|
1039
1039
|
e,
|
|
1040
1040
|
e.transformResponse,
|
|
1041
1041
|
n.response
|
|
1042
|
-
), n.response.headers =
|
|
1042
|
+
), n.response.headers = pe.from(n.response.headers))), Promise.reject(n);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
const nn = (e) => e instanceof
|
|
1045
|
+
const nn = (e) => e instanceof pe ? { ...e } : e;
|
|
1046
1046
|
function qe(e, t) {
|
|
1047
1047
|
t = t || {};
|
|
1048
1048
|
const r = {};
|
|
1049
|
-
function n(
|
|
1050
|
-
return h.isPlainObject(
|
|
1049
|
+
function n(d, f, l) {
|
|
1050
|
+
return h.isPlainObject(d) && h.isPlainObject(f) ? h.merge.call({ caseless: l }, d, f) : h.isPlainObject(f) ? h.merge({}, f) : h.isArray(f) ? f.slice() : f;
|
|
1051
1051
|
}
|
|
1052
|
-
function o(
|
|
1053
|
-
if (h.isUndefined(
|
|
1054
|
-
if (!h.isUndefined(
|
|
1055
|
-
return n(void 0,
|
|
1056
|
-
} else return n(
|
|
1052
|
+
function o(d, f, l) {
|
|
1053
|
+
if (h.isUndefined(f)) {
|
|
1054
|
+
if (!h.isUndefined(d))
|
|
1055
|
+
return n(void 0, d, l);
|
|
1056
|
+
} else return n(d, f, l);
|
|
1057
1057
|
}
|
|
1058
|
-
function s(
|
|
1059
|
-
if (!h.isUndefined(
|
|
1060
|
-
return n(void 0,
|
|
1058
|
+
function s(d, f) {
|
|
1059
|
+
if (!h.isUndefined(f))
|
|
1060
|
+
return n(void 0, f);
|
|
1061
1061
|
}
|
|
1062
|
-
function i(
|
|
1063
|
-
if (h.isUndefined(
|
|
1064
|
-
if (!h.isUndefined(
|
|
1065
|
-
return n(void 0,
|
|
1066
|
-
} else return n(void 0,
|
|
1062
|
+
function i(d, f) {
|
|
1063
|
+
if (h.isUndefined(f)) {
|
|
1064
|
+
if (!h.isUndefined(d))
|
|
1065
|
+
return n(void 0, d);
|
|
1066
|
+
} else return n(void 0, f);
|
|
1067
1067
|
}
|
|
1068
|
-
function c(
|
|
1069
|
-
if (
|
|
1070
|
-
return n(
|
|
1071
|
-
if (
|
|
1072
|
-
return n(void 0,
|
|
1068
|
+
function c(d, f, l) {
|
|
1069
|
+
if (l in t)
|
|
1070
|
+
return n(d, f);
|
|
1071
|
+
if (l in e)
|
|
1072
|
+
return n(void 0, d);
|
|
1073
1073
|
}
|
|
1074
1074
|
const u = {
|
|
1075
1075
|
url: s,
|
|
@@ -1100,11 +1100,11 @@ function qe(e, t) {
|
|
|
1100
1100
|
socketPath: i,
|
|
1101
1101
|
responseEncoding: i,
|
|
1102
1102
|
validateStatus: c,
|
|
1103
|
-
headers: (
|
|
1103
|
+
headers: (d, f) => o(nn(d), nn(f), !0)
|
|
1104
1104
|
};
|
|
1105
|
-
return h.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
1106
|
-
const
|
|
1107
|
-
h.isUndefined(
|
|
1105
|
+
return h.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
|
|
1106
|
+
const l = u[f] || o, _ = l(e[f], t[f], f);
|
|
1107
|
+
h.isUndefined(_) && l !== c || (r[f] = _);
|
|
1108
1108
|
}), r;
|
|
1109
1109
|
}
|
|
1110
1110
|
const Kn = "1.6.8", Or = {};
|
|
@@ -1204,42 +1204,42 @@ class $e {
|
|
|
1204
1204
|
(m) => {
|
|
1205
1205
|
delete s[m];
|
|
1206
1206
|
}
|
|
1207
|
-
), r.headers =
|
|
1207
|
+
), r.headers = pe.concat(i, s);
|
|
1208
1208
|
const c = [];
|
|
1209
1209
|
let u = !0;
|
|
1210
1210
|
this.interceptors.request.forEach(function(b) {
|
|
1211
1211
|
typeof b.runWhen == "function" && b.runWhen(r) === !1 || (u = u && b.synchronous, c.unshift(b.fulfilled, b.rejected));
|
|
1212
1212
|
});
|
|
1213
|
-
const
|
|
1213
|
+
const d = [];
|
|
1214
1214
|
this.interceptors.response.forEach(function(b) {
|
|
1215
|
-
|
|
1215
|
+
d.push(b.fulfilled, b.rejected);
|
|
1216
1216
|
});
|
|
1217
|
-
let
|
|
1217
|
+
let f, l = 0, _;
|
|
1218
1218
|
if (!u) {
|
|
1219
1219
|
const m = [rn.bind(this), void 0];
|
|
1220
|
-
for (m.unshift.apply(m, c), m.push.apply(m,
|
|
1221
|
-
|
|
1222
|
-
return
|
|
1220
|
+
for (m.unshift.apply(m, c), m.push.apply(m, d), _ = m.length, f = Promise.resolve(r); l < _; )
|
|
1221
|
+
f = f.then(m[l++], m[l++]);
|
|
1222
|
+
return f;
|
|
1223
1223
|
}
|
|
1224
|
-
|
|
1225
|
-
let
|
|
1226
|
-
for (
|
|
1227
|
-
const m = c[
|
|
1224
|
+
_ = c.length;
|
|
1225
|
+
let v = r;
|
|
1226
|
+
for (l = 0; l < _; ) {
|
|
1227
|
+
const m = c[l++], b = c[l++];
|
|
1228
1228
|
try {
|
|
1229
|
-
|
|
1229
|
+
v = m(v);
|
|
1230
1230
|
} catch (N) {
|
|
1231
1231
|
b.call(this, N);
|
|
1232
1232
|
break;
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
try {
|
|
1236
|
-
|
|
1236
|
+
f = rn.call(this, v);
|
|
1237
1237
|
} catch (m) {
|
|
1238
1238
|
return Promise.reject(m);
|
|
1239
1239
|
}
|
|
1240
|
-
for (
|
|
1241
|
-
|
|
1242
|
-
return
|
|
1240
|
+
for (l = 0, _ = d.length; l < _; )
|
|
1241
|
+
f = f.then(d[l++], d[l++]);
|
|
1242
|
+
return f;
|
|
1243
1243
|
}
|
|
1244
1244
|
getUri(t) {
|
|
1245
1245
|
t = qe(this.defaults, t);
|
|
@@ -1435,7 +1435,7 @@ H.all = function(t) {
|
|
|
1435
1435
|
H.spread = hi;
|
|
1436
1436
|
H.isAxiosError = pi;
|
|
1437
1437
|
H.mergeConfig = qe;
|
|
1438
|
-
H.AxiosHeaders =
|
|
1438
|
+
H.AxiosHeaders = pe;
|
|
1439
1439
|
H.formToJSON = (e) => Hn(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
1440
1440
|
H.getAdapter = Jn.getAdapter;
|
|
1441
1441
|
H.HttpStatusCode = Yt;
|
|
@@ -1449,10 +1449,10 @@ async function G(e, t, r, n = !0) {
|
|
|
1449
1449
|
headers: { Authorization: Ge() }
|
|
1450
1450
|
}) : r === "post" ? o = H.post(e, t, { headers: { Authorization: Ge() } }) : r === "put" ? o = H.put(e, t, { headers: { Authorization: Ge() } }) : r === "delete" ? o = H.delete(e, { params: t, headers: { Authorization: Ge() } }) : r === "patch" && (o = H.patch(e, t, { headers: { Authorization: Ge() } })), new Promise((s, i) => {
|
|
1451
1451
|
o.then((c) => {
|
|
1452
|
-
c.data.code !== 0 ? (n &&
|
|
1452
|
+
c.data.code !== 0 ? (n && Oe.error(c.data.msg), i(c.data.msg)) : s(c.data.data);
|
|
1453
1453
|
}).catch((c) => {
|
|
1454
1454
|
var u;
|
|
1455
|
-
((u = c.response) == null ? void 0 : u.status) == 401 ? n &&
|
|
1455
|
+
((u = c.response) == null ? void 0 : u.status) == 401 ? n && Oe.error("你的账户已过期,请重新登录") : n && Oe.error("请求失败"), console.log("请求失败", c), i("请求失败");
|
|
1456
1456
|
});
|
|
1457
1457
|
});
|
|
1458
1458
|
}
|
|
@@ -1503,7 +1503,7 @@ var Qt;
|
|
|
1503
1503
|
(function(e) {
|
|
1504
1504
|
e[e.ChoosePic = -3] = "ChoosePic", e[e.CostPoint = -4] = "CostPoint", e[e.AddAction = -5] = "AddAction", e[e.CloseWindow = -6] = "CloseWindow", e[e.SendRequest = -7] = "SendRequest", e[e.UploadFileByPath = -8] = "UploadFileByPath", e[e.GetInitData = -9] = "GetInitData";
|
|
1505
1505
|
})(Qt || (Qt = {}));
|
|
1506
|
-
const Si = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B",
|
|
1506
|
+
const Si = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B", _i = (e, t, r) => {
|
|
1507
1507
|
let n = e.path, o = Qe.LocalPath;
|
|
1508
1508
|
const s = window.URL.createObjectURL(e);
|
|
1509
1509
|
return (t || !n) && (n = s, o = Qe.ObjectUrl), {
|
|
@@ -1516,7 +1516,7 @@ const Si = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1516
1516
|
object_url: s,
|
|
1517
1517
|
uid: wi()
|
|
1518
1518
|
};
|
|
1519
|
-
},
|
|
1519
|
+
}, Ei = (e) => new Date(e * 1e3).toISOString().substring(11, 19), vi = async () => {
|
|
1520
1520
|
const e = await ro(), t = e.token;
|
|
1521
1521
|
return {
|
|
1522
1522
|
cos: new Ko({
|
|
@@ -1580,7 +1580,7 @@ const Si = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1580
1580
|
var n;
|
|
1581
1581
|
const r = document.createElement("a");
|
|
1582
1582
|
r.style.display = "none", r.href = e, t ? r.download = t : r.download = ((n = e.split("?").shift()) == null ? void 0 : n.split("/").pop()) || e, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(e);
|
|
1583
|
-
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1",
|
|
1583
|
+
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", ji = process.env.NODE_ENV == "production" ? "https://knowledge.zyjj.cc/api/v1" : "http://127.0.0.1:3001/api/v1", Pi = (e) => G(`${Y}/common/user/login`, e, "post"), Ni = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), ki = (e) => G(`${Y}/common/user/register`, e, "post"), Ii = (e) => G(`${Y}/common/user/reset/password`, e, "post"), eo = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), to = () => G(`${Y}/user/user/info`, {}, "get", !1), Ai = (e) => G(`${Y}/user/user/info`, e, "put"), $i = (e) => G(`${Y}/user/point/deducting`, e, "post"), Fi = (e) => G(`${Y}/common/tool/list?${Zn(e)}`, {}, "get"), Mi = () => G(`${Y}/common/tool/all`, {}, "get"), Ui = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), Bi = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), zi = () => G(`${Y}/common/tool/tags`, {}, "get"), ro = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), qi = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), Li = (e) => G(`${Y}/user/task`, e, "post"), Vi = (e) => G(`${Y}/user/task/${e}`, {}, "get"), no = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), Wi = () => G(`${Y}/common/material/tags`, {}, "get"), Ti = (e) => G(`${Y}/user/material/${e}`, {}, "get"), Hi = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), Ac = (e) => G(`${Y}${e.url}`, e.data || {}, e.method), $c = (e) => G(`${ji}${e.url}`, e.data || {}, e.method);
|
|
1584
1584
|
var er;
|
|
1585
1585
|
(function(e) {
|
|
1586
1586
|
e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow", e[e.Custom = 3] = "Custom";
|
|
@@ -1627,13 +1627,13 @@ var an;
|
|
|
1627
1627
|
function Ji() {
|
|
1628
1628
|
if (an) return Ye;
|
|
1629
1629
|
an = 1;
|
|
1630
|
-
var e =
|
|
1631
|
-
function i(c, u,
|
|
1632
|
-
var
|
|
1633
|
-
|
|
1634
|
-
for (
|
|
1635
|
-
if (c && c.defaultProps) for (
|
|
1636
|
-
return { $$typeof: t, type: c, key:
|
|
1630
|
+
var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1631
|
+
function i(c, u, d) {
|
|
1632
|
+
var f, l = {}, _ = null, v = null;
|
|
1633
|
+
d !== void 0 && (_ = "" + d), u.key !== void 0 && (_ = "" + u.key), u.ref !== void 0 && (v = u.ref);
|
|
1634
|
+
for (f in u) n.call(u, f) && !s.hasOwnProperty(f) && (l[f] = u[f]);
|
|
1635
|
+
if (c && c.defaultProps) for (f in u = c.defaultProps, u) l[f] === void 0 && (l[f] = u[f]);
|
|
1636
|
+
return { $$typeof: t, type: c, key: _, ref: v, props: l, _owner: o.current };
|
|
1637
1637
|
}
|
|
1638
1638
|
return Ye.Fragment = r, Ye.jsx = i, Ye.jsxs = i, Ye;
|
|
1639
1639
|
}
|
|
@@ -1650,7 +1650,7 @@ var Je = {};
|
|
|
1650
1650
|
var cn;
|
|
1651
1651
|
function Ki() {
|
|
1652
1652
|
return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1653
|
-
var e =
|
|
1653
|
+
var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
|
|
1654
1654
|
function N(a) {
|
|
1655
1655
|
if (a === null || typeof a != "object")
|
|
1656
1656
|
return null;
|
|
@@ -1658,14 +1658,14 @@ function Ki() {
|
|
|
1658
1658
|
return typeof p == "function" ? p : null;
|
|
1659
1659
|
}
|
|
1660
1660
|
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1661
|
-
function
|
|
1661
|
+
function P(a) {
|
|
1662
1662
|
{
|
|
1663
1663
|
for (var p = arguments.length, g = new Array(p > 1 ? p - 1 : 0), R = 1; R < p; R++)
|
|
1664
1664
|
g[R - 1] = arguments[R];
|
|
1665
|
-
|
|
1665
|
+
j("error", a, g);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function j(a, p, g) {
|
|
1669
1669
|
{
|
|
1670
1670
|
var R = M.ReactDebugCurrentFrame, z = R.getStackAddendum();
|
|
1671
1671
|
z !== "" && (p += "%s", g = g.concat([z]));
|
|
@@ -1678,7 +1678,7 @@ function Ki() {
|
|
|
1678
1678
|
var A = !1, L = !1, B = !1, Z = !1, I = !1, ee;
|
|
1679
1679
|
ee = Symbol.for("react.module.reference");
|
|
1680
1680
|
function W(a) {
|
|
1681
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || I || a === o || a ===
|
|
1681
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || I || a === o || a === d || a === f || Z || a === v || A || L || B || typeof a == "object" && a !== null && (a.$$typeof === _ || a.$$typeof === l || a.$$typeof === i || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
|
|
1682
1682
|
// types supported by any Flight configuration anywhere since
|
|
1683
1683
|
// we don't know which Flight build this will end up being used
|
|
1684
1684
|
// with.
|
|
@@ -1697,7 +1697,7 @@ function Ki() {
|
|
|
1697
1697
|
function le(a) {
|
|
1698
1698
|
if (a == null)
|
|
1699
1699
|
return null;
|
|
1700
|
-
if (typeof a.tag == "number" &&
|
|
1700
|
+
if (typeof a.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
1701
1701
|
return a.displayName || a.name || null;
|
|
1702
1702
|
if (typeof a == "string")
|
|
1703
1703
|
return a;
|
|
@@ -1710,9 +1710,9 @@ function Ki() {
|
|
|
1710
1710
|
return "Profiler";
|
|
1711
1711
|
case o:
|
|
1712
1712
|
return "StrictMode";
|
|
1713
|
-
case l:
|
|
1714
|
-
return "Suspense";
|
|
1715
1713
|
case d:
|
|
1714
|
+
return "Suspense";
|
|
1715
|
+
case f:
|
|
1716
1716
|
return "SuspenseList";
|
|
1717
1717
|
}
|
|
1718
1718
|
if (typeof a == "object")
|
|
@@ -1725,10 +1725,10 @@ function Ki() {
|
|
|
1725
1725
|
return Ne(g._context) + ".Provider";
|
|
1726
1726
|
case u:
|
|
1727
1727
|
return U(a, a.render, "ForwardRef");
|
|
1728
|
-
case
|
|
1728
|
+
case l:
|
|
1729
1729
|
var R = a.displayName || null;
|
|
1730
1730
|
return R !== null ? R : le(a.type) || "Memo";
|
|
1731
|
-
case
|
|
1731
|
+
case _: {
|
|
1732
1732
|
var z = a, V = z._payload, $ = z._init;
|
|
1733
1733
|
try {
|
|
1734
1734
|
return le($(V));
|
|
@@ -1739,14 +1739,14 @@ function Ki() {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
return null;
|
|
1741
1741
|
}
|
|
1742
|
-
var
|
|
1742
|
+
var C = Object.assign, w = 0, y, O, S, D, x, q, T;
|
|
1743
1743
|
function J() {
|
|
1744
1744
|
}
|
|
1745
1745
|
J.__reactDisabledLog = !0;
|
|
1746
1746
|
function re() {
|
|
1747
1747
|
{
|
|
1748
1748
|
if (w === 0) {
|
|
1749
|
-
y = console.log,
|
|
1749
|
+
y = console.log, O = console.info, S = console.warn, D = console.error, x = console.group, q = console.groupCollapsed, T = console.groupEnd;
|
|
1750
1750
|
var a = {
|
|
1751
1751
|
configurable: !0,
|
|
1752
1752
|
enumerable: !0,
|
|
@@ -1775,53 +1775,53 @@ function Ki() {
|
|
|
1775
1775
|
writable: !0
|
|
1776
1776
|
};
|
|
1777
1777
|
Object.defineProperties(console, {
|
|
1778
|
-
log:
|
|
1778
|
+
log: C({}, a, {
|
|
1779
1779
|
value: y
|
|
1780
1780
|
}),
|
|
1781
|
-
info:
|
|
1782
|
-
value:
|
|
1781
|
+
info: C({}, a, {
|
|
1782
|
+
value: O
|
|
1783
1783
|
}),
|
|
1784
|
-
warn:
|
|
1784
|
+
warn: C({}, a, {
|
|
1785
1785
|
value: S
|
|
1786
1786
|
}),
|
|
1787
|
-
error:
|
|
1787
|
+
error: C({}, a, {
|
|
1788
1788
|
value: D
|
|
1789
1789
|
}),
|
|
1790
|
-
group:
|
|
1790
|
+
group: C({}, a, {
|
|
1791
1791
|
value: x
|
|
1792
1792
|
}),
|
|
1793
|
-
groupCollapsed:
|
|
1793
|
+
groupCollapsed: C({}, a, {
|
|
1794
1794
|
value: q
|
|
1795
1795
|
}),
|
|
1796
|
-
groupEnd:
|
|
1796
|
+
groupEnd: C({}, a, {
|
|
1797
1797
|
value: T
|
|
1798
1798
|
})
|
|
1799
1799
|
});
|
|
1800
1800
|
}
|
|
1801
|
-
w < 0 &&
|
|
1801
|
+
w < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
-
var
|
|
1805
|
-
function
|
|
1804
|
+
var ge = M.ReactCurrentDispatcher, me;
|
|
1805
|
+
function be(a, p, g) {
|
|
1806
1806
|
{
|
|
1807
|
-
if (
|
|
1807
|
+
if (me === void 0)
|
|
1808
1808
|
try {
|
|
1809
1809
|
throw Error();
|
|
1810
1810
|
} catch (z) {
|
|
1811
1811
|
var R = z.stack.trim().match(/\n( *(at )?)/);
|
|
1812
|
-
|
|
1812
|
+
me = R && R[1] || "";
|
|
1813
1813
|
}
|
|
1814
1814
|
return `
|
|
1815
|
-
` +
|
|
1815
|
+
` + me + a;
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
var
|
|
1818
|
+
var ye = !1, te;
|
|
1819
1819
|
{
|
|
1820
|
-
var
|
|
1821
|
-
te = new
|
|
1820
|
+
var we = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1821
|
+
te = new we();
|
|
1822
1822
|
}
|
|
1823
1823
|
function De(a, p) {
|
|
1824
|
-
if (!a ||
|
|
1824
|
+
if (!a || ye)
|
|
1825
1825
|
return "";
|
|
1826
1826
|
{
|
|
1827
1827
|
var g = te.get(a);
|
|
@@ -1829,11 +1829,11 @@ function Ki() {
|
|
|
1829
1829
|
return g;
|
|
1830
1830
|
}
|
|
1831
1831
|
var R;
|
|
1832
|
-
|
|
1832
|
+
ye = !0;
|
|
1833
1833
|
var z = Error.prepareStackTrace;
|
|
1834
1834
|
Error.prepareStackTrace = void 0;
|
|
1835
1835
|
var V;
|
|
1836
|
-
V =
|
|
1836
|
+
V = ge.current, ge.current = null, re();
|
|
1837
1837
|
try {
|
|
1838
1838
|
if (p) {
|
|
1839
1839
|
var $ = function() {
|
|
@@ -1846,29 +1846,29 @@ function Ki() {
|
|
|
1846
1846
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1847
1847
|
try {
|
|
1848
1848
|
Reflect.construct($, []);
|
|
1849
|
-
} catch (
|
|
1850
|
-
R =
|
|
1849
|
+
} catch (Ee) {
|
|
1850
|
+
R = Ee;
|
|
1851
1851
|
}
|
|
1852
1852
|
Reflect.construct(a, [], $);
|
|
1853
1853
|
} else {
|
|
1854
1854
|
try {
|
|
1855
1855
|
$.call();
|
|
1856
|
-
} catch (
|
|
1857
|
-
R =
|
|
1856
|
+
} catch (Ee) {
|
|
1857
|
+
R = Ee;
|
|
1858
1858
|
}
|
|
1859
1859
|
a.call($.prototype);
|
|
1860
1860
|
}
|
|
1861
1861
|
} else {
|
|
1862
1862
|
try {
|
|
1863
1863
|
throw Error();
|
|
1864
|
-
} catch (
|
|
1865
|
-
R =
|
|
1864
|
+
} catch (Ee) {
|
|
1865
|
+
R = Ee;
|
|
1866
1866
|
}
|
|
1867
1867
|
a();
|
|
1868
1868
|
}
|
|
1869
|
-
} catch (
|
|
1870
|
-
if (
|
|
1871
|
-
for (var k =
|
|
1869
|
+
} catch (Ee) {
|
|
1870
|
+
if (Ee && R && typeof Ee.stack == "string") {
|
|
1871
|
+
for (var k = Ee.stack.split(`
|
|
1872
1872
|
`), oe = R.stack.split(`
|
|
1873
1873
|
`), K = k.length - 1, Q = oe.length - 1; K >= 1 && Q >= 0 && k[K] !== oe[Q]; )
|
|
1874
1874
|
Q--;
|
|
@@ -1886,9 +1886,9 @@ function Ki() {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
1888
|
} finally {
|
|
1889
|
-
|
|
1889
|
+
ye = !1, ge.current = V, ie(), Error.prepareStackTrace = z;
|
|
1890
1890
|
}
|
|
1891
|
-
var ze = a ? a.displayName || a.name : "", Tr = ze ?
|
|
1891
|
+
var ze = a ? a.displayName || a.name : "", Tr = ze ? be(ze) : "";
|
|
1892
1892
|
return typeof a == "function" && te.set(a, Tr), Tr;
|
|
1893
1893
|
}
|
|
1894
1894
|
function Ue(a, p, g) {
|
|
@@ -1904,20 +1904,20 @@ function Ki() {
|
|
|
1904
1904
|
if (typeof a == "function")
|
|
1905
1905
|
return De(a, Ro(a));
|
|
1906
1906
|
if (typeof a == "string")
|
|
1907
|
-
return
|
|
1907
|
+
return be(a);
|
|
1908
1908
|
switch (a) {
|
|
1909
|
-
case l:
|
|
1910
|
-
return ge("Suspense");
|
|
1911
1909
|
case d:
|
|
1912
|
-
return
|
|
1910
|
+
return be("Suspense");
|
|
1911
|
+
case f:
|
|
1912
|
+
return be("SuspenseList");
|
|
1913
1913
|
}
|
|
1914
1914
|
if (typeof a == "object")
|
|
1915
1915
|
switch (a.$$typeof) {
|
|
1916
1916
|
case u:
|
|
1917
1917
|
return Ue(a.render);
|
|
1918
|
-
case
|
|
1918
|
+
case l:
|
|
1919
1919
|
return at(a.type, p, g);
|
|
1920
|
-
case
|
|
1920
|
+
case _: {
|
|
1921
1921
|
var R = a, z = R._payload, V = R._init;
|
|
1922
1922
|
try {
|
|
1923
1923
|
return at(V(z), p, g);
|
|
@@ -1950,21 +1950,21 @@ function Ki() {
|
|
|
1950
1950
|
} catch (K) {
|
|
1951
1951
|
k = K;
|
|
1952
1952
|
}
|
|
1953
|
-
k && !(k instanceof Error) && (ut(z),
|
|
1953
|
+
k && !(k instanceof Error) && (ut(z), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", g, $, typeof k), ut(null)), k instanceof Error && !(k.message in Ir) && (Ir[k.message] = !0, ut(z), P("Failed %s type: %s", g, k.message), ut(null));
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
var xo = Array.isArray;
|
|
1958
|
-
function
|
|
1958
|
+
function jt(a) {
|
|
1959
1959
|
return xo(a);
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function jo(a) {
|
|
1962
1962
|
{
|
|
1963
1963
|
var p = typeof Symbol == "function" && Symbol.toStringTag, g = p && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
1964
1964
|
return g;
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function Po(a) {
|
|
1968
1968
|
try {
|
|
1969
1969
|
return $r(a), !1;
|
|
1970
1970
|
} catch {
|
|
@@ -1975,16 +1975,16 @@ function Ki() {
|
|
|
1975
1975
|
return "" + a;
|
|
1976
1976
|
}
|
|
1977
1977
|
function Fr(a) {
|
|
1978
|
-
if (
|
|
1979
|
-
return
|
|
1978
|
+
if (Po(a))
|
|
1979
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jo(a)), $r(a);
|
|
1980
1980
|
}
|
|
1981
1981
|
var Te = M.ReactCurrentOwner, No = {
|
|
1982
1982
|
key: !0,
|
|
1983
1983
|
ref: !0,
|
|
1984
1984
|
__self: !0,
|
|
1985
1985
|
__source: !0
|
|
1986
|
-
}, Mr, Ur,
|
|
1987
|
-
|
|
1986
|
+
}, Mr, Ur, Pt;
|
|
1987
|
+
Pt = {};
|
|
1988
1988
|
function ko(a) {
|
|
1989
1989
|
if (ct.call(a, "ref")) {
|
|
1990
1990
|
var p = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
@@ -2004,13 +2004,13 @@ function Ki() {
|
|
|
2004
2004
|
function Ao(a, p) {
|
|
2005
2005
|
if (typeof a.ref == "string" && Te.current && p && Te.current.stateNode !== p) {
|
|
2006
2006
|
var g = le(Te.current.type);
|
|
2007
|
-
|
|
2007
|
+
Pt[g] || (P('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', le(Te.current.type), a.ref), Pt[g] = !0);
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
2010
|
function $o(a, p) {
|
|
2011
2011
|
{
|
|
2012
2012
|
var g = function() {
|
|
2013
|
-
Mr || (Mr = !0,
|
|
2013
|
+
Mr || (Mr = !0, P("%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)", p));
|
|
2014
2014
|
};
|
|
2015
2015
|
g.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
2016
2016
|
get: g,
|
|
@@ -2021,7 +2021,7 @@ function Ki() {
|
|
|
2021
2021
|
function Fo(a, p) {
|
|
2022
2022
|
{
|
|
2023
2023
|
var g = function() {
|
|
2024
|
-
Ur || (Ur = !0,
|
|
2024
|
+
Ur || (Ur = !0, P("%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)", p));
|
|
2025
2025
|
};
|
|
2026
2026
|
g.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
2027
2027
|
get: g,
|
|
@@ -2127,14 +2127,14 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2127
2127
|
return;
|
|
2128
2128
|
qr[g] = !0;
|
|
2129
2129
|
var R = "";
|
|
2130
|
-
a && a._owner && a._owner !== Nt.current && (R = " It was passed a child from " + le(a._owner.type) + "."), Be(a),
|
|
2130
|
+
a && a._owner && a._owner !== Nt.current && (R = " It was passed a child from " + le(a._owner.type) + "."), Be(a), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, R), Be(null);
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
2133
|
function Vr(a, p) {
|
|
2134
2134
|
{
|
|
2135
2135
|
if (typeof a != "object")
|
|
2136
2136
|
return;
|
|
2137
|
-
if (
|
|
2137
|
+
if (jt(a))
|
|
2138
2138
|
for (var g = 0; g < a.length; g++) {
|
|
2139
2139
|
var R = a[g];
|
|
2140
2140
|
It(R) && Lr(R, p);
|
|
@@ -2159,7 +2159,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2159
2159
|
g = p.propTypes;
|
|
2160
2160
|
else if (typeof p == "object" && (p.$$typeof === u || // Note: Memo only checks outer props here.
|
|
2161
2161
|
// Inner props are checked in the reconciler.
|
|
2162
|
-
p.$$typeof ===
|
|
2162
|
+
p.$$typeof === l))
|
|
2163
2163
|
g = p.propTypes;
|
|
2164
2164
|
else
|
|
2165
2165
|
return;
|
|
@@ -2169,9 +2169,9 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2169
2169
|
} else if (p.PropTypes !== void 0 && !kt) {
|
|
2170
2170
|
kt = !0;
|
|
2171
2171
|
var z = le(p);
|
|
2172
|
-
|
|
2172
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
2173
2173
|
}
|
|
2174
|
-
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved &&
|
|
2174
|
+
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
2177
|
function Lo(a) {
|
|
@@ -2179,11 +2179,11 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2179
2179
|
for (var p = Object.keys(a.props), g = 0; g < p.length; g++) {
|
|
2180
2180
|
var R = p[g];
|
|
2181
2181
|
if (R !== "children" && R !== "key") {
|
|
2182
|
-
Be(a),
|
|
2182
|
+
Be(a), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), Be(null);
|
|
2183
2183
|
break;
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
|
-
a.ref !== null && (Be(a),
|
|
2186
|
+
a.ref !== null && (Be(a), P("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
function Wr(a, p, g, R, z, V) {
|
|
@@ -2195,7 +2195,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2195
2195
|
var oe = Bo();
|
|
2196
2196
|
oe ? k += oe : k += zr();
|
|
2197
2197
|
var K;
|
|
2198
|
-
a === null ? K = "null" :
|
|
2198
|
+
a === null ? K = "null" : jt(a) ? K = "array" : a !== void 0 && a.$$typeof === t ? (K = "<" + (le(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : K = typeof a, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, k);
|
|
2199
2199
|
}
|
|
2200
2200
|
var Q = Uo(a, p, g, z, V);
|
|
2201
2201
|
if (Q == null)
|
|
@@ -2204,12 +2204,12 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2204
2204
|
var fe = p.children;
|
|
2205
2205
|
if (fe !== void 0)
|
|
2206
2206
|
if (R)
|
|
2207
|
-
if (
|
|
2207
|
+
if (jt(fe)) {
|
|
2208
2208
|
for (var ze = 0; ze < fe.length; ze++)
|
|
2209
2209
|
Vr(fe[ze], a);
|
|
2210
2210
|
Object.freeze && Object.freeze(fe);
|
|
2211
2211
|
} else
|
|
2212
|
-
|
|
2212
|
+
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2213
2213
|
else
|
|
2214
2214
|
Vr(fe, a);
|
|
2215
2215
|
}
|
|
@@ -2227,63 +2227,63 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2227
2227
|
}()), Je;
|
|
2228
2228
|
}
|
|
2229
2229
|
process.env.NODE_ENV === "production" ? ir.exports = Ji() : ir.exports = Ki();
|
|
2230
|
-
var
|
|
2230
|
+
var E = ir.exports, oo = { exports: {} };
|
|
2231
2231
|
(function(e, t) {
|
|
2232
2232
|
(function(r, n) {
|
|
2233
2233
|
e.exports = n();
|
|
2234
2234
|
})(Gi, function() {
|
|
2235
|
-
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour",
|
|
2236
|
-
var w = ["th", "st", "nd", "rd"], y =
|
|
2237
|
-
return "[" +
|
|
2238
|
-
} },
|
|
2239
|
-
var
|
|
2240
|
-
return !
|
|
2241
|
-
}, A = { s:
|
|
2242
|
-
var w = -
|
|
2243
|
-
return (w <= 0 ? "+" : "-") +
|
|
2244
|
-
}, m: function
|
|
2245
|
-
if (w.date() < y.date()) return -
|
|
2246
|
-
var
|
|
2247
|
-
return +(-(
|
|
2248
|
-
}, a: function(
|
|
2249
|
-
return
|
|
2250
|
-
}, p: function(
|
|
2251
|
-
return { M:
|
|
2252
|
-
}, u: function(
|
|
2253
|
-
return
|
|
2235
|
+
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", d = "day", f = "week", l = "month", _ = "quarter", v = "year", m = "date", b = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
|
|
2236
|
+
var w = ["th", "st", "nd", "rd"], y = C % 100;
|
|
2237
|
+
return "[" + C + (w[(y - 20) % 10] || w[y] || w[0]) + "]";
|
|
2238
|
+
} }, j = function(C, w, y) {
|
|
2239
|
+
var O = String(C);
|
|
2240
|
+
return !O || O.length >= w ? C : "" + Array(w + 1 - O.length).join(y) + C;
|
|
2241
|
+
}, A = { s: j, z: function(C) {
|
|
2242
|
+
var w = -C.utcOffset(), y = Math.abs(w), O = Math.floor(y / 60), S = y % 60;
|
|
2243
|
+
return (w <= 0 ? "+" : "-") + j(O, 2, "0") + ":" + j(S, 2, "0");
|
|
2244
|
+
}, m: function C(w, y) {
|
|
2245
|
+
if (w.date() < y.date()) return -C(y, w);
|
|
2246
|
+
var O = 12 * (y.year() - w.year()) + (y.month() - w.month()), S = w.clone().add(O, l), D = y - S < 0, x = w.clone().add(O + (D ? -1 : 1), l);
|
|
2247
|
+
return +(-(O + (y - S) / (D ? S - x : x - S)) || 0);
|
|
2248
|
+
}, a: function(C) {
|
|
2249
|
+
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
2250
|
+
}, p: function(C) {
|
|
2251
|
+
return { M: l, y: v, w: f, d, D: m, h: u, m: c, s: i, ms: s, Q: _ }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
2252
|
+
}, u: function(C) {
|
|
2253
|
+
return C === void 0;
|
|
2254
2254
|
} }, L = "en", B = {};
|
|
2255
|
-
B[L] =
|
|
2256
|
-
var Z = "$isDayjsObject", I = function(
|
|
2257
|
-
return
|
|
2258
|
-
}, ee = function
|
|
2255
|
+
B[L] = P;
|
|
2256
|
+
var Z = "$isDayjsObject", I = function(C) {
|
|
2257
|
+
return C instanceof Ne || !(!C || !C[Z]);
|
|
2258
|
+
}, ee = function C(w, y, O) {
|
|
2259
2259
|
var S;
|
|
2260
2260
|
if (!w) return L;
|
|
2261
2261
|
if (typeof w == "string") {
|
|
2262
2262
|
var D = w.toLowerCase();
|
|
2263
2263
|
B[D] && (S = D), y && (B[D] = y, S = D);
|
|
2264
2264
|
var x = w.split("-");
|
|
2265
|
-
if (!S && x.length > 1) return
|
|
2265
|
+
if (!S && x.length > 1) return C(x[0]);
|
|
2266
2266
|
} else {
|
|
2267
2267
|
var q = w.name;
|
|
2268
2268
|
B[q] = w, S = q;
|
|
2269
2269
|
}
|
|
2270
|
-
return !
|
|
2271
|
-
}, W = function(
|
|
2272
|
-
if (I(
|
|
2270
|
+
return !O && S && (L = S), S || !O && L;
|
|
2271
|
+
}, W = function(C, w) {
|
|
2272
|
+
if (I(C)) return C.clone();
|
|
2273
2273
|
var y = typeof w == "object" ? w : {};
|
|
2274
|
-
return y.date =
|
|
2274
|
+
return y.date = C, y.args = arguments, new Ne(y);
|
|
2275
2275
|
}, U = A;
|
|
2276
|
-
U.l = ee, U.i = I, U.w = function(
|
|
2277
|
-
return W(
|
|
2276
|
+
U.l = ee, U.i = I, U.w = function(C, w) {
|
|
2277
|
+
return W(C, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
|
2278
2278
|
};
|
|
2279
2279
|
var Ne = function() {
|
|
2280
|
-
function
|
|
2280
|
+
function C(y) {
|
|
2281
2281
|
this.$L = ee(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[Z] = !0;
|
|
2282
2282
|
}
|
|
2283
|
-
var w =
|
|
2283
|
+
var w = C.prototype;
|
|
2284
2284
|
return w.parse = function(y) {
|
|
2285
|
-
this.$d = function(
|
|
2286
|
-
var S =
|
|
2285
|
+
this.$d = function(O) {
|
|
2286
|
+
var S = O.date, D = O.utc;
|
|
2287
2287
|
if (S === null) return /* @__PURE__ */ new Date(NaN);
|
|
2288
2288
|
if (U.u(S)) return /* @__PURE__ */ new Date();
|
|
2289
2289
|
if (S instanceof Date) return new Date(S);
|
|
@@ -2303,134 +2303,134 @@ var _ = ir.exports, oo = { exports: {} };
|
|
|
2303
2303
|
return U;
|
|
2304
2304
|
}, w.isValid = function() {
|
|
2305
2305
|
return this.$d.toString() !== b;
|
|
2306
|
-
}, w.isSame = function(y,
|
|
2306
|
+
}, w.isSame = function(y, O) {
|
|
2307
2307
|
var S = W(y);
|
|
2308
|
-
return this.startOf(
|
|
2309
|
-
}, w.isAfter = function(y,
|
|
2310
|
-
return W(y) < this.startOf(
|
|
2311
|
-
}, w.isBefore = function(y,
|
|
2312
|
-
return this.endOf(
|
|
2313
|
-
}, w.$g = function(y,
|
|
2314
|
-
return U.u(y) ? this[
|
|
2308
|
+
return this.startOf(O) <= S && S <= this.endOf(O);
|
|
2309
|
+
}, w.isAfter = function(y, O) {
|
|
2310
|
+
return W(y) < this.startOf(O);
|
|
2311
|
+
}, w.isBefore = function(y, O) {
|
|
2312
|
+
return this.endOf(O) < W(y);
|
|
2313
|
+
}, w.$g = function(y, O, S) {
|
|
2314
|
+
return U.u(y) ? this[O] : this.set(S, y);
|
|
2315
2315
|
}, w.unix = function() {
|
|
2316
2316
|
return Math.floor(this.valueOf() / 1e3);
|
|
2317
2317
|
}, w.valueOf = function() {
|
|
2318
2318
|
return this.$d.getTime();
|
|
2319
|
-
}, w.startOf = function(y,
|
|
2320
|
-
var S = this, D = !!U.u(
|
|
2321
|
-
var
|
|
2322
|
-
return D ?
|
|
2323
|
-
}, T = function(
|
|
2324
|
-
return U.w(S.toDate()[
|
|
2325
|
-
}, J = this.$W, re = this.$M, ie = this.$D,
|
|
2319
|
+
}, w.startOf = function(y, O) {
|
|
2320
|
+
var S = this, D = !!U.u(O) || O, x = U.p(y), q = function(ye, te) {
|
|
2321
|
+
var we = U.w(S.$u ? Date.UTC(S.$y, te, ye) : new Date(S.$y, te, ye), S);
|
|
2322
|
+
return D ? we : we.endOf(d);
|
|
2323
|
+
}, T = function(ye, te) {
|
|
2324
|
+
return U.w(S.toDate()[ye].apply(S.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), S);
|
|
2325
|
+
}, J = this.$W, re = this.$M, ie = this.$D, ge = "set" + (this.$u ? "UTC" : "");
|
|
2326
2326
|
switch (x) {
|
|
2327
|
-
case
|
|
2327
|
+
case v:
|
|
2328
2328
|
return D ? q(1, 0) : q(31, 11);
|
|
2329
|
-
case
|
|
2329
|
+
case l:
|
|
2330
2330
|
return D ? q(1, re) : q(0, re + 1);
|
|
2331
|
+
case f:
|
|
2332
|
+
var me = this.$locale().weekStart || 0, be = (J < me ? J + 7 : J) - me;
|
|
2333
|
+
return q(D ? ie - be : ie + (6 - be), re);
|
|
2331
2334
|
case d:
|
|
2332
|
-
var pe = this.$locale().weekStart || 0, ge = (J < pe ? J + 7 : J) - pe;
|
|
2333
|
-
return q(D ? ie - ge : ie + (6 - ge), re);
|
|
2334
|
-
case l:
|
|
2335
2335
|
case m:
|
|
2336
|
-
return T(
|
|
2336
|
+
return T(ge + "Hours", 0);
|
|
2337
2337
|
case u:
|
|
2338
|
-
return T(
|
|
2338
|
+
return T(ge + "Minutes", 1);
|
|
2339
2339
|
case c:
|
|
2340
|
-
return T(
|
|
2340
|
+
return T(ge + "Seconds", 2);
|
|
2341
2341
|
case i:
|
|
2342
|
-
return T(
|
|
2342
|
+
return T(ge + "Milliseconds", 3);
|
|
2343
2343
|
default:
|
|
2344
2344
|
return this.clone();
|
|
2345
2345
|
}
|
|
2346
2346
|
}, w.endOf = function(y) {
|
|
2347
2347
|
return this.startOf(y, !1);
|
|
2348
|
-
}, w.$set = function(y,
|
|
2349
|
-
var S, D = U.p(y), x = "set" + (this.$u ? "UTC" : ""), q = (S = {}, S[
|
|
2350
|
-
if (D ===
|
|
2348
|
+
}, w.$set = function(y, O) {
|
|
2349
|
+
var S, D = U.p(y), x = "set" + (this.$u ? "UTC" : ""), q = (S = {}, S[d] = x + "Date", S[m] = x + "Date", S[l] = x + "Month", S[v] = x + "FullYear", S[u] = x + "Hours", S[c] = x + "Minutes", S[i] = x + "Seconds", S[s] = x + "Milliseconds", S)[D], T = D === d ? this.$D + (O - this.$W) : O;
|
|
2350
|
+
if (D === l || D === v) {
|
|
2351
2351
|
var J = this.clone().set(m, 1);
|
|
2352
2352
|
J.$d[q](T), J.init(), this.$d = J.set(m, Math.min(this.$D, J.daysInMonth())).$d;
|
|
2353
2353
|
} else q && this.$d[q](T);
|
|
2354
2354
|
return this.init(), this;
|
|
2355
|
-
}, w.set = function(y,
|
|
2356
|
-
return this.clone().$set(y,
|
|
2355
|
+
}, w.set = function(y, O) {
|
|
2356
|
+
return this.clone().$set(y, O);
|
|
2357
2357
|
}, w.get = function(y) {
|
|
2358
2358
|
return this[U.p(y)]();
|
|
2359
|
-
}, w.add = function(y,
|
|
2359
|
+
}, w.add = function(y, O) {
|
|
2360
2360
|
var S, D = this;
|
|
2361
2361
|
y = Number(y);
|
|
2362
|
-
var x = U.p(
|
|
2362
|
+
var x = U.p(O), q = function(re) {
|
|
2363
2363
|
var ie = W(D);
|
|
2364
2364
|
return U.w(ie.date(ie.date() + Math.round(re * y)), D);
|
|
2365
2365
|
};
|
|
2366
|
-
if (x ===
|
|
2367
|
-
if (x ===
|
|
2368
|
-
if (x ===
|
|
2369
|
-
if (x ===
|
|
2366
|
+
if (x === l) return this.set(l, this.$M + y);
|
|
2367
|
+
if (x === v) return this.set(v, this.$y + y);
|
|
2368
|
+
if (x === d) return q(1);
|
|
2369
|
+
if (x === f) return q(7);
|
|
2370
2370
|
var T = (S = {}, S[c] = n, S[u] = o, S[i] = r, S)[x] || 1, J = this.$d.getTime() + y * T;
|
|
2371
2371
|
return U.w(J, this);
|
|
2372
|
-
}, w.subtract = function(y,
|
|
2373
|
-
return this.add(-1 * y,
|
|
2372
|
+
}, w.subtract = function(y, O) {
|
|
2373
|
+
return this.add(-1 * y, O);
|
|
2374
2374
|
}, w.format = function(y) {
|
|
2375
|
-
var
|
|
2375
|
+
var O = this, S = this.$locale();
|
|
2376
2376
|
if (!this.isValid()) return S.invalidDate || b;
|
|
2377
|
-
var D = y || "YYYY-MM-DDTHH:mm:ssZ", x = U.z(this), q = this.$H, T = this.$m, J = this.$M, re = S.weekdays, ie = S.months,
|
|
2378
|
-
return te && (te[
|
|
2379
|
-
},
|
|
2377
|
+
var D = y || "YYYY-MM-DDTHH:mm:ssZ", x = U.z(this), q = this.$H, T = this.$m, J = this.$M, re = S.weekdays, ie = S.months, ge = S.meridiem, me = function(te, we, De, Ue) {
|
|
2378
|
+
return te && (te[we] || te(O, D)) || De[we].slice(0, Ue);
|
|
2379
|
+
}, be = function(te) {
|
|
2380
2380
|
return U.s(q % 12 || 12, te, "0");
|
|
2381
|
-
},
|
|
2381
|
+
}, ye = ge || function(te, we, De) {
|
|
2382
2382
|
var Ue = te < 12 ? "AM" : "PM";
|
|
2383
2383
|
return De ? Ue.toLowerCase() : Ue;
|
|
2384
2384
|
};
|
|
2385
|
-
return D.replace(M, function(te,
|
|
2386
|
-
return
|
|
2385
|
+
return D.replace(M, function(te, we) {
|
|
2386
|
+
return we || function(De) {
|
|
2387
2387
|
switch (De) {
|
|
2388
2388
|
case "YY":
|
|
2389
|
-
return String(
|
|
2389
|
+
return String(O.$y).slice(-2);
|
|
2390
2390
|
case "YYYY":
|
|
2391
|
-
return U.s(
|
|
2391
|
+
return U.s(O.$y, 4, "0");
|
|
2392
2392
|
case "M":
|
|
2393
2393
|
return J + 1;
|
|
2394
2394
|
case "MM":
|
|
2395
2395
|
return U.s(J + 1, 2, "0");
|
|
2396
2396
|
case "MMM":
|
|
2397
|
-
return
|
|
2397
|
+
return me(S.monthsShort, J, ie, 3);
|
|
2398
2398
|
case "MMMM":
|
|
2399
|
-
return
|
|
2399
|
+
return me(ie, J);
|
|
2400
2400
|
case "D":
|
|
2401
|
-
return
|
|
2401
|
+
return O.$D;
|
|
2402
2402
|
case "DD":
|
|
2403
|
-
return U.s(
|
|
2403
|
+
return U.s(O.$D, 2, "0");
|
|
2404
2404
|
case "d":
|
|
2405
|
-
return String(
|
|
2405
|
+
return String(O.$W);
|
|
2406
2406
|
case "dd":
|
|
2407
|
-
return
|
|
2407
|
+
return me(S.weekdaysMin, O.$W, re, 2);
|
|
2408
2408
|
case "ddd":
|
|
2409
|
-
return
|
|
2409
|
+
return me(S.weekdaysShort, O.$W, re, 3);
|
|
2410
2410
|
case "dddd":
|
|
2411
|
-
return re[
|
|
2411
|
+
return re[O.$W];
|
|
2412
2412
|
case "H":
|
|
2413
2413
|
return String(q);
|
|
2414
2414
|
case "HH":
|
|
2415
2415
|
return U.s(q, 2, "0");
|
|
2416
2416
|
case "h":
|
|
2417
|
-
return
|
|
2417
|
+
return be(1);
|
|
2418
2418
|
case "hh":
|
|
2419
|
-
return
|
|
2419
|
+
return be(2);
|
|
2420
2420
|
case "a":
|
|
2421
|
-
return
|
|
2421
|
+
return ye(q, T, !0);
|
|
2422
2422
|
case "A":
|
|
2423
|
-
return
|
|
2423
|
+
return ye(q, T, !1);
|
|
2424
2424
|
case "m":
|
|
2425
2425
|
return String(T);
|
|
2426
2426
|
case "mm":
|
|
2427
2427
|
return U.s(T, 2, "0");
|
|
2428
2428
|
case "s":
|
|
2429
|
-
return String(
|
|
2429
|
+
return String(O.$s);
|
|
2430
2430
|
case "ss":
|
|
2431
|
-
return U.s(
|
|
2431
|
+
return U.s(O.$s, 2, "0");
|
|
2432
2432
|
case "SSS":
|
|
2433
|
-
return U.s(
|
|
2433
|
+
return U.s(O.$ms, 3, "0");
|
|
2434
2434
|
case "Z":
|
|
2435
2435
|
return x;
|
|
2436
2436
|
}
|
|
@@ -2439,24 +2439,24 @@ var _ = ir.exports, oo = { exports: {} };
|
|
|
2439
2439
|
});
|
|
2440
2440
|
}, w.utcOffset = function() {
|
|
2441
2441
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2442
|
-
}, w.diff = function(y,
|
|
2443
|
-
var D, x = this, q = U.p(
|
|
2442
|
+
}, w.diff = function(y, O, S) {
|
|
2443
|
+
var D, x = this, q = U.p(O), T = W(y), J = (T.utcOffset() - this.utcOffset()) * n, re = this - T, ie = function() {
|
|
2444
2444
|
return U.m(x, T);
|
|
2445
2445
|
};
|
|
2446
2446
|
switch (q) {
|
|
2447
|
-
case
|
|
2447
|
+
case v:
|
|
2448
2448
|
D = ie() / 12;
|
|
2449
2449
|
break;
|
|
2450
|
-
case
|
|
2450
|
+
case l:
|
|
2451
2451
|
D = ie();
|
|
2452
2452
|
break;
|
|
2453
|
-
case
|
|
2453
|
+
case _:
|
|
2454
2454
|
D = ie() / 3;
|
|
2455
2455
|
break;
|
|
2456
|
-
case
|
|
2456
|
+
case f:
|
|
2457
2457
|
D = (re - J) / 6048e5;
|
|
2458
2458
|
break;
|
|
2459
|
-
case
|
|
2459
|
+
case d:
|
|
2460
2460
|
D = (re - J) / 864e5;
|
|
2461
2461
|
break;
|
|
2462
2462
|
case u:
|
|
@@ -2473,12 +2473,12 @@ var _ = ir.exports, oo = { exports: {} };
|
|
|
2473
2473
|
}
|
|
2474
2474
|
return S ? D : U.a(D);
|
|
2475
2475
|
}, w.daysInMonth = function() {
|
|
2476
|
-
return this.endOf(
|
|
2476
|
+
return this.endOf(l).$D;
|
|
2477
2477
|
}, w.$locale = function() {
|
|
2478
2478
|
return B[this.$L];
|
|
2479
|
-
}, w.locale = function(y,
|
|
2479
|
+
}, w.locale = function(y, O) {
|
|
2480
2480
|
if (!y) return this.$L;
|
|
2481
|
-
var S = this.clone(), D = ee(y,
|
|
2481
|
+
var S = this.clone(), D = ee(y, O, !0);
|
|
2482
2482
|
return D && (S.$L = D), S;
|
|
2483
2483
|
}, w.clone = function() {
|
|
2484
2484
|
return U.w(this.$d, this);
|
|
@@ -2490,21 +2490,21 @@ var _ = ir.exports, oo = { exports: {} };
|
|
|
2490
2490
|
return this.$d.toISOString();
|
|
2491
2491
|
}, w.toString = function() {
|
|
2492
2492
|
return this.$d.toUTCString();
|
|
2493
|
-
},
|
|
2493
|
+
}, C;
|
|
2494
2494
|
}(), le = Ne.prototype;
|
|
2495
|
-
return W.prototype = le, [["$ms", s], ["$s", i], ["$m", c], ["$H", u], ["$W",
|
|
2496
|
-
le[
|
|
2497
|
-
return this.$g(w,
|
|
2495
|
+
return W.prototype = le, [["$ms", s], ["$s", i], ["$m", c], ["$H", u], ["$W", d], ["$M", l], ["$y", v], ["$D", m]].forEach(function(C) {
|
|
2496
|
+
le[C[1]] = function(w) {
|
|
2497
|
+
return this.$g(w, C[0], C[1]);
|
|
2498
2498
|
};
|
|
2499
|
-
}), W.extend = function(
|
|
2500
|
-
return
|
|
2501
|
-
}, W.locale = ee, W.isDayjs = I, W.unix = function(
|
|
2502
|
-
return W(1e3 *
|
|
2499
|
+
}), W.extend = function(C, w) {
|
|
2500
|
+
return C.$i || (C(w, Ne, W), C.$i = !0), W;
|
|
2501
|
+
}, W.locale = ee, W.isDayjs = I, W.unix = function(C) {
|
|
2502
|
+
return W(1e3 * C);
|
|
2503
2503
|
}, W.en = B[L], W.Ls = B, W.p = {}, W;
|
|
2504
2504
|
});
|
|
2505
2505
|
})(oo);
|
|
2506
2506
|
var Xi = oo.exports;
|
|
2507
|
-
const Zi = /* @__PURE__ */ Yi(Xi), Qi = (e) => Zi(e).format("YYYY-MM-DD HH:mm:ss"), ea = (e) =>
|
|
2507
|
+
const Zi = /* @__PURE__ */ Yi(Xi), Qi = (e) => Zi(e).format("YYYY-MM-DD HH:mm:ss"), ea = (e) => E.jsx(jn.Paragraph, { copyable: !0, children: e }), ta = (e) => E.jsx(jn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
|
|
2508
2508
|
function ra(e) {
|
|
2509
2509
|
if (typeof e != "object" || e === null)
|
|
2510
2510
|
return !1;
|
|
@@ -2557,7 +2557,7 @@ function ae(e, ...t) {
|
|
|
2557
2557
|
);
|
|
2558
2558
|
}
|
|
2559
2559
|
var Le = Object.getPrototypeOf;
|
|
2560
|
-
function
|
|
2560
|
+
function Pe(e) {
|
|
2561
2561
|
return !!e && !!e[ce];
|
|
2562
2562
|
}
|
|
2563
2563
|
function Re(e) {
|
|
@@ -2634,7 +2634,7 @@ function cr(e, t) {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
}
|
|
2636
2636
|
function Rr(e, t = !1) {
|
|
2637
|
-
return Dt(e) ||
|
|
2637
|
+
return Dt(e) || Pe(e) || !Re(e) || (Ot(e) > 1 && (e.set = e.add = e.clear = e.delete = aa), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => Rr(n, !0))), e;
|
|
2638
2638
|
}
|
|
2639
2639
|
function aa() {
|
|
2640
2640
|
ae(2);
|
|
@@ -2718,10 +2718,10 @@ function gt(e, t, r) {
|
|
|
2718
2718
|
return n.copy_;
|
|
2719
2719
|
}
|
|
2720
2720
|
function hn(e, t, r, n, o, s, i) {
|
|
2721
|
-
if (process.env.NODE_ENV !== "production" && o === r && ae(5),
|
|
2721
|
+
if (process.env.NODE_ENV !== "production" && o === r && ae(5), Pe(o)) {
|
|
2722
2722
|
const c = s && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
2723
2723
|
!ar(t.assigned_, n) ? s.concat(n) : void 0, u = gt(e, o, c);
|
|
2724
|
-
if (ao(r, n, u),
|
|
2724
|
+
if (ao(r, n, u), Pe(u))
|
|
2725
2725
|
e.canAutoFreeze_ = !1;
|
|
2726
2726
|
else
|
|
2727
2727
|
return;
|
|
@@ -2871,8 +2871,8 @@ var ha = class {
|
|
|
2871
2871
|
const s = r;
|
|
2872
2872
|
r = t;
|
|
2873
2873
|
const i = this;
|
|
2874
|
-
return function(u = s, ...
|
|
2875
|
-
return i.produce(u, (
|
|
2874
|
+
return function(u = s, ...d) {
|
|
2875
|
+
return i.produce(u, (f) => r.call(this, f, ...d));
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
2878
|
typeof r != "function" && ae(6), n !== void 0 && typeof n != "function" && ae(7);
|
|
@@ -2904,7 +2904,7 @@ var ha = class {
|
|
|
2904
2904
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
2905
2905
|
}
|
|
2906
2906
|
createDraft(e) {
|
|
2907
|
-
Re(e) || ae(8),
|
|
2907
|
+
Re(e) || ae(8), Pe(e) && (e = lo(e));
|
|
2908
2908
|
const t = fn(this), r = dr(e, void 0);
|
|
2909
2909
|
return r[ce].isManual_ = !0, lr(t), r;
|
|
2910
2910
|
}
|
|
@@ -2941,7 +2941,7 @@ var ha = class {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
r > -1 && (t = t.slice(r + 1));
|
|
2943
2943
|
const n = Me("Patches").applyPatches_;
|
|
2944
|
-
return
|
|
2944
|
+
return Pe(e) ? n(e, t) : this.produce(
|
|
2945
2945
|
e,
|
|
2946
2946
|
(o) => n(o, t)
|
|
2947
2947
|
);
|
|
@@ -2952,7 +2952,7 @@ function dr(e, t) {
|
|
|
2952
2952
|
return (t ? t.scope_ : co()).drafts_.push(r), r;
|
|
2953
2953
|
}
|
|
2954
2954
|
function lo(e) {
|
|
2955
|
-
return
|
|
2955
|
+
return Pe(e) || ae(10, e), fo(e);
|
|
2956
2956
|
}
|
|
2957
2957
|
function fo(e) {
|
|
2958
2958
|
if (!Re(e) || Dt(e))
|
|
@@ -3005,11 +3005,11 @@ Ensure transformation logic is in the result function, and extraction logic is i
|
|
|
3005
3005
|
}, ma = (e, t, r) => {
|
|
3006
3006
|
const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: s, inputSelectorResultsCopy: i } = e, c = n(() => ({}), ...o);
|
|
3007
3007
|
if (!(c.apply(null, s) === c.apply(null, i))) {
|
|
3008
|
-
let
|
|
3008
|
+
let d;
|
|
3009
3009
|
try {
|
|
3010
3010
|
throw new Error();
|
|
3011
|
-
} catch (
|
|
3012
|
-
({ stack:
|
|
3011
|
+
} catch (f) {
|
|
3012
|
+
({ stack: d } = f);
|
|
3013
3013
|
}
|
|
3014
3014
|
console.warn(
|
|
3015
3015
|
`An input selector returned a different result when passed same arguments.
|
|
@@ -3020,7 +3020,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
3020
3020
|
arguments: r,
|
|
3021
3021
|
firstInputs: s,
|
|
3022
3022
|
secondInputs: i,
|
|
3023
|
-
stack:
|
|
3023
|
+
stack: d
|
|
3024
3024
|
}
|
|
3025
3025
|
);
|
|
3026
3026
|
}
|
|
@@ -3058,7 +3058,7 @@ function mn(e, t) {
|
|
|
3058
3058
|
r.push(e[o].apply(null, t));
|
|
3059
3059
|
return r;
|
|
3060
3060
|
}
|
|
3061
|
-
var
|
|
3061
|
+
var _a = (e, t) => {
|
|
3062
3062
|
const { identityFunctionCheck: r, inputStabilityCheck: n } = {
|
|
3063
3063
|
...ya,
|
|
3064
3064
|
...t
|
|
@@ -3073,14 +3073,14 @@ var Ea = (e, t) => {
|
|
|
3073
3073
|
run: ma
|
|
3074
3074
|
}
|
|
3075
3075
|
};
|
|
3076
|
-
},
|
|
3076
|
+
}, Ea = class {
|
|
3077
3077
|
constructor(e) {
|
|
3078
3078
|
this.value = e;
|
|
3079
3079
|
}
|
|
3080
3080
|
deref() {
|
|
3081
3081
|
return this.value;
|
|
3082
3082
|
}
|
|
3083
|
-
}, va = typeof WeakRef < "u" ? WeakRef :
|
|
3083
|
+
}, va = typeof WeakRef < "u" ? WeakRef : Ea, Oa = 0, yn = 1;
|
|
3084
3084
|
function ft() {
|
|
3085
3085
|
return {
|
|
3086
3086
|
s: Oa,
|
|
@@ -3094,11 +3094,11 @@ function xr(e, t = {}) {
|
|
|
3094
3094
|
const { resultEqualityCheck: n } = t;
|
|
3095
3095
|
let o, s = 0;
|
|
3096
3096
|
function i() {
|
|
3097
|
-
var
|
|
3097
|
+
var l;
|
|
3098
3098
|
let c = r;
|
|
3099
3099
|
const { length: u } = arguments;
|
|
3100
|
-
for (let
|
|
3101
|
-
const m = arguments[
|
|
3100
|
+
for (let _ = 0, v = u; _ < v; _++) {
|
|
3101
|
+
const m = arguments[_];
|
|
3102
3102
|
if (typeof m == "function" || typeof m == "object" && m !== null) {
|
|
3103
3103
|
let b = c.o;
|
|
3104
3104
|
b === null && (c.o = b = /* @__PURE__ */ new WeakMap());
|
|
@@ -3111,13 +3111,13 @@ function xr(e, t = {}) {
|
|
|
3111
3111
|
N === void 0 ? (c = ft(), b.set(m, c)) : c = N;
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
|
-
const
|
|
3115
|
-
let
|
|
3116
|
-
if (c.s === yn ?
|
|
3117
|
-
const
|
|
3118
|
-
|
|
3114
|
+
const d = c;
|
|
3115
|
+
let f;
|
|
3116
|
+
if (c.s === yn ? f = c.v : (f = e.apply(null, arguments), s++), d.s = yn, n) {
|
|
3117
|
+
const _ = ((l = o == null ? void 0 : o.deref) == null ? void 0 : l.call(o)) ?? o;
|
|
3118
|
+
_ != null && n(_, f) && (f = _, s !== 0 && s--), o = typeof f == "object" && f !== null || typeof f == "function" ? new va(f) : f;
|
|
3119
3119
|
}
|
|
3120
|
-
return
|
|
3120
|
+
return d.v = f, f;
|
|
3121
3121
|
}
|
|
3122
3122
|
return i.clearCache = () => {
|
|
3123
3123
|
r = ft(), i.resetResultsCount();
|
|
@@ -3130,47 +3130,47 @@ function po(e, ...t) {
|
|
|
3130
3130
|
memoize: e,
|
|
3131
3131
|
memoizeOptions: t
|
|
3132
3132
|
} : e, n = (...o) => {
|
|
3133
|
-
let s = 0, i = 0, c, u = {},
|
|
3134
|
-
typeof
|
|
3135
|
-
|
|
3136
|
-
`createSelector expects an output function after the inputs, but received: [${typeof
|
|
3133
|
+
let s = 0, i = 0, c, u = {}, d = o.pop();
|
|
3134
|
+
typeof d == "object" && (u = d, d = o.pop()), ga(
|
|
3135
|
+
d,
|
|
3136
|
+
`createSelector expects an output function after the inputs, but received: [${typeof d}]`
|
|
3137
3137
|
);
|
|
3138
|
-
const
|
|
3138
|
+
const f = {
|
|
3139
3139
|
...r,
|
|
3140
3140
|
...u
|
|
3141
3141
|
}, {
|
|
3142
|
-
memoize:
|
|
3143
|
-
memoizeOptions:
|
|
3144
|
-
argsMemoize:
|
|
3142
|
+
memoize: l,
|
|
3143
|
+
memoizeOptions: _ = [],
|
|
3144
|
+
argsMemoize: v = xr,
|
|
3145
3145
|
argsMemoizeOptions: m = [],
|
|
3146
3146
|
devModeChecks: b = {}
|
|
3147
|
-
} =
|
|
3148
|
-
return s++,
|
|
3147
|
+
} = f, N = pn(_), M = pn(m), P = Sa(o), j = l(function() {
|
|
3148
|
+
return s++, d.apply(
|
|
3149
3149
|
null,
|
|
3150
3150
|
arguments
|
|
3151
3151
|
);
|
|
3152
3152
|
}, ...N);
|
|
3153
3153
|
let A = !0;
|
|
3154
|
-
const L =
|
|
3154
|
+
const L = v(function() {
|
|
3155
3155
|
i++;
|
|
3156
3156
|
const Z = mn(
|
|
3157
|
-
|
|
3157
|
+
P,
|
|
3158
3158
|
arguments
|
|
3159
3159
|
);
|
|
3160
|
-
if (c =
|
|
3161
|
-
const { identityFunctionCheck: I, inputStabilityCheck: ee } =
|
|
3160
|
+
if (c = j.apply(null, Z), process.env.NODE_ENV !== "production") {
|
|
3161
|
+
const { identityFunctionCheck: I, inputStabilityCheck: ee } = _a(A, b);
|
|
3162
3162
|
if (I.shouldRun && I.run(
|
|
3163
|
-
|
|
3163
|
+
d,
|
|
3164
3164
|
Z,
|
|
3165
3165
|
c
|
|
3166
3166
|
), ee.shouldRun) {
|
|
3167
3167
|
const W = mn(
|
|
3168
|
-
|
|
3168
|
+
P,
|
|
3169
3169
|
arguments
|
|
3170
3170
|
);
|
|
3171
3171
|
ee.run(
|
|
3172
3172
|
{ inputSelectorResults: Z, inputSelectorResultsCopy: W },
|
|
3173
|
-
{ memoize:
|
|
3173
|
+
{ memoize: l, memoizeOptions: N },
|
|
3174
3174
|
arguments
|
|
3175
3175
|
);
|
|
3176
3176
|
}
|
|
@@ -3179,9 +3179,9 @@ function po(e, ...t) {
|
|
|
3179
3179
|
return c;
|
|
3180
3180
|
}, ...M);
|
|
3181
3181
|
return Object.assign(L, {
|
|
3182
|
-
resultFunc:
|
|
3183
|
-
memoizedResultFunc:
|
|
3184
|
-
dependencies:
|
|
3182
|
+
resultFunc: d,
|
|
3183
|
+
memoizedResultFunc: j,
|
|
3184
|
+
dependencies: P,
|
|
3185
3185
|
dependencyRecomputations: () => i,
|
|
3186
3186
|
resetDependencyRecomputations: () => {
|
|
3187
3187
|
i = 0;
|
|
@@ -3191,8 +3191,8 @@ function po(e, ...t) {
|
|
|
3191
3191
|
resetRecomputations: () => {
|
|
3192
3192
|
s = 0;
|
|
3193
3193
|
},
|
|
3194
|
-
memoize:
|
|
3195
|
-
argsMemoize:
|
|
3194
|
+
memoize: l,
|
|
3195
|
+
argsMemoize: v
|
|
3196
3196
|
});
|
|
3197
3197
|
};
|
|
3198
3198
|
return Object.assign(n, {
|
|
@@ -3216,7 +3216,7 @@ var Ca = /* @__PURE__ */ po(xr), Ra = Object.assign(
|
|
|
3216
3216
|
{ withTypes: () => Ra }
|
|
3217
3217
|
), Da = (...e) => {
|
|
3218
3218
|
const t = po(...e), r = Object.assign((...n) => {
|
|
3219
|
-
const o = t(...n), s = (i, ...c) => o(
|
|
3219
|
+
const o = t(...n), s = (i, ...c) => o(Pe(i) ? lo(i) : i, ...c);
|
|
3220
3220
|
return Object.assign(s, o), s;
|
|
3221
3221
|
}, {
|
|
3222
3222
|
withTypes: () => r
|
|
@@ -3298,44 +3298,44 @@ function mo(e) {
|
|
|
3298
3298
|
};
|
|
3299
3299
|
return e(o), [t, r, n];
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function ja(e) {
|
|
3302
3302
|
return typeof e == "function";
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function Pa(e, t) {
|
|
3305
3305
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
3306
3306
|
throw new Error(process.env.NODE_ENV === "production" ? X(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
3307
3307
|
let [r, n, o] = mo(t), s;
|
|
3308
|
-
if (
|
|
3308
|
+
if (ja(e))
|
|
3309
3309
|
s = () => gn(e());
|
|
3310
3310
|
else {
|
|
3311
3311
|
const c = gn(e);
|
|
3312
3312
|
s = () => c;
|
|
3313
3313
|
}
|
|
3314
3314
|
function i(c = s(), u) {
|
|
3315
|
-
let
|
|
3316
|
-
matcher:
|
|
3317
|
-
}) =>
|
|
3318
|
-
reducer:
|
|
3319
|
-
}) =>
|
|
3320
|
-
return
|
|
3321
|
-
if (
|
|
3322
|
-
if (
|
|
3323
|
-
const
|
|
3324
|
-
return
|
|
3315
|
+
let d = [r[u.type], ...n.filter(({
|
|
3316
|
+
matcher: f
|
|
3317
|
+
}) => f(u)).map(({
|
|
3318
|
+
reducer: f
|
|
3319
|
+
}) => f)];
|
|
3320
|
+
return d.filter((f) => !!f).length === 0 && (d = [o]), d.reduce((f, l) => {
|
|
3321
|
+
if (l)
|
|
3322
|
+
if (Pe(f)) {
|
|
3323
|
+
const v = l(f, u);
|
|
3324
|
+
return v === void 0 ? f : v;
|
|
3325
3325
|
} else {
|
|
3326
|
-
if (Re(
|
|
3327
|
-
return ho(
|
|
3326
|
+
if (Re(f))
|
|
3327
|
+
return ho(f, (_) => l(_, u));
|
|
3328
3328
|
{
|
|
3329
|
-
const
|
|
3330
|
-
if (
|
|
3331
|
-
if (
|
|
3332
|
-
return
|
|
3329
|
+
const _ = l(f, u);
|
|
3330
|
+
if (_ === void 0) {
|
|
3331
|
+
if (f === null)
|
|
3332
|
+
return f;
|
|
3333
3333
|
throw new Error(process.env.NODE_ENV === "production" ? X(9) : "A case reducer on a non-draftable value must not return undefined");
|
|
3334
3334
|
}
|
|
3335
|
-
return
|
|
3335
|
+
return _;
|
|
3336
3336
|
}
|
|
3337
3337
|
}
|
|
3338
|
-
return
|
|
3338
|
+
return f;
|
|
3339
3339
|
}, c);
|
|
3340
3340
|
}
|
|
3341
3341
|
return i.getInitialState = s, i;
|
|
@@ -3377,53 +3377,53 @@ var Aa = ["name", "message", "stack", "code"], qt = class {
|
|
|
3377
3377
|
return {
|
|
3378
3378
|
message: String(e)
|
|
3379
3379
|
};
|
|
3380
|
-
},
|
|
3380
|
+
}, jr = /* @__PURE__ */ (() => {
|
|
3381
3381
|
function e(t, r, n) {
|
|
3382
|
-
const o = Ce(t + "/fulfilled", (u,
|
|
3382
|
+
const o = Ce(t + "/fulfilled", (u, d, f, l) => ({
|
|
3383
3383
|
payload: u,
|
|
3384
3384
|
meta: {
|
|
3385
|
-
...
|
|
3386
|
-
arg:
|
|
3387
|
-
requestId:
|
|
3385
|
+
...l || {},
|
|
3386
|
+
arg: f,
|
|
3387
|
+
requestId: d,
|
|
3388
3388
|
requestStatus: "fulfilled"
|
|
3389
3389
|
}
|
|
3390
|
-
})), s = Ce(t + "/pending", (u,
|
|
3390
|
+
})), s = Ce(t + "/pending", (u, d, f) => ({
|
|
3391
3391
|
payload: void 0,
|
|
3392
3392
|
meta: {
|
|
3393
|
-
...
|
|
3394
|
-
arg:
|
|
3393
|
+
...f || {},
|
|
3394
|
+
arg: d,
|
|
3395
3395
|
requestId: u,
|
|
3396
3396
|
requestStatus: "pending"
|
|
3397
3397
|
}
|
|
3398
|
-
})), i = Ce(t + "/rejected", (u,
|
|
3399
|
-
payload:
|
|
3398
|
+
})), i = Ce(t + "/rejected", (u, d, f, l, _) => ({
|
|
3399
|
+
payload: l,
|
|
3400
3400
|
error: (n && n.serializeError || $a)(u || "Rejected"),
|
|
3401
3401
|
meta: {
|
|
3402
|
-
...
|
|
3403
|
-
arg:
|
|
3404
|
-
requestId:
|
|
3405
|
-
rejectedWithValue: !!
|
|
3402
|
+
..._ || {},
|
|
3403
|
+
arg: f,
|
|
3404
|
+
requestId: d,
|
|
3405
|
+
rejectedWithValue: !!l,
|
|
3406
3406
|
requestStatus: "rejected",
|
|
3407
3407
|
aborted: (u == null ? void 0 : u.name) === "AbortError",
|
|
3408
3408
|
condition: (u == null ? void 0 : u.name) === "ConditionError"
|
|
3409
3409
|
}
|
|
3410
3410
|
}));
|
|
3411
3411
|
function c(u) {
|
|
3412
|
-
return (
|
|
3413
|
-
const
|
|
3412
|
+
return (d, f, l) => {
|
|
3413
|
+
const _ = n != null && n.idGenerator ? n.idGenerator(u) : yo(), v = new AbortController();
|
|
3414
3414
|
let m, b;
|
|
3415
|
-
function N(
|
|
3416
|
-
b =
|
|
3415
|
+
function N(P) {
|
|
3416
|
+
b = P, v.abort();
|
|
3417
3417
|
}
|
|
3418
3418
|
const M = async function() {
|
|
3419
3419
|
var A, L;
|
|
3420
|
-
let
|
|
3420
|
+
let P;
|
|
3421
3421
|
try {
|
|
3422
3422
|
let B = (A = n == null ? void 0 : n.condition) == null ? void 0 : A.call(n, u, {
|
|
3423
|
-
getState:
|
|
3424
|
-
extra:
|
|
3423
|
+
getState: f,
|
|
3424
|
+
extra: l
|
|
3425
3425
|
});
|
|
3426
|
-
if (Ma(B) && (B = await B), B === !1 ||
|
|
3426
|
+
if (Ma(B) && (B = await B), B === !1 || v.signal.aborted)
|
|
3427
3427
|
throw {
|
|
3428
3428
|
name: "ConditionError",
|
|
3429
3429
|
message: "Aborted due to condition callback returning false."
|
|
@@ -3434,38 +3434,38 @@ var Aa = ["name", "message", "stack", "code"], qt = class {
|
|
|
3434
3434
|
name: "AbortError",
|
|
3435
3435
|
message: b || "Aborted"
|
|
3436
3436
|
});
|
|
3437
|
-
},
|
|
3437
|
+
}, v.signal.addEventListener("abort", m);
|
|
3438
3438
|
});
|
|
3439
|
-
|
|
3440
|
-
requestId:
|
|
3439
|
+
d(s(_, u, (L = n == null ? void 0 : n.getPendingMeta) == null ? void 0 : L.call(n, {
|
|
3440
|
+
requestId: _,
|
|
3441
3441
|
arg: u
|
|
3442
3442
|
}, {
|
|
3443
|
-
getState:
|
|
3444
|
-
extra:
|
|
3445
|
-
}))),
|
|
3446
|
-
dispatch:
|
|
3447
|
-
getState:
|
|
3448
|
-
extra:
|
|
3449
|
-
requestId:
|
|
3450
|
-
signal:
|
|
3443
|
+
getState: f,
|
|
3444
|
+
extra: l
|
|
3445
|
+
}))), P = await Promise.race([Z, Promise.resolve(r(u, {
|
|
3446
|
+
dispatch: d,
|
|
3447
|
+
getState: f,
|
|
3448
|
+
extra: l,
|
|
3449
|
+
requestId: _,
|
|
3450
|
+
signal: v.signal,
|
|
3451
3451
|
abort: N,
|
|
3452
3452
|
rejectWithValue: (I, ee) => new qt(I, ee),
|
|
3453
3453
|
fulfillWithValue: (I, ee) => new wn(I, ee)
|
|
3454
3454
|
})).then((I) => {
|
|
3455
3455
|
if (I instanceof qt)
|
|
3456
3456
|
throw I;
|
|
3457
|
-
return I instanceof wn ? o(I.payload,
|
|
3457
|
+
return I instanceof wn ? o(I.payload, _, u, I.meta) : o(I, _, u);
|
|
3458
3458
|
})]);
|
|
3459
3459
|
} catch (B) {
|
|
3460
|
-
|
|
3460
|
+
P = B instanceof qt ? i(null, _, u, B.payload, B.meta) : i(B, _, u);
|
|
3461
3461
|
} finally {
|
|
3462
|
-
m &&
|
|
3462
|
+
m && v.signal.removeEventListener("abort", m);
|
|
3463
3463
|
}
|
|
3464
|
-
return n && !n.dispatchConditionRejection && i.match(
|
|
3464
|
+
return n && !n.dispatchConditionRejection && i.match(P) && P.meta.condition || d(P), P;
|
|
3465
3465
|
}();
|
|
3466
3466
|
return Object.assign(M, {
|
|
3467
3467
|
abort: N,
|
|
3468
|
-
requestId:
|
|
3468
|
+
requestId: _,
|
|
3469
3469
|
arg: u,
|
|
3470
3470
|
unwrap() {
|
|
3471
3471
|
return M.then(Fa);
|
|
@@ -3510,69 +3510,69 @@ function za({
|
|
|
3510
3510
|
if (!s)
|
|
3511
3511
|
throw new Error(process.env.NODE_ENV === "production" ? X(11) : "`name` is a required option for createSlice");
|
|
3512
3512
|
typeof process < "u" && process.env.NODE_ENV === "development" && o.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
3513
|
-
const c = (typeof o.reducers == "function" ? o.reducers(La()) : o.reducers) || {}, u = Object.keys(c),
|
|
3513
|
+
const c = (typeof o.reducers == "function" ? o.reducers(La()) : o.reducers) || {}, u = Object.keys(c), d = {
|
|
3514
3514
|
sliceCaseReducersByName: {},
|
|
3515
3515
|
sliceCaseReducersByType: {},
|
|
3516
3516
|
actionCreators: {},
|
|
3517
3517
|
sliceMatchers: []
|
|
3518
|
-
},
|
|
3519
|
-
addCase(
|
|
3520
|
-
const L = typeof
|
|
3518
|
+
}, f = {
|
|
3519
|
+
addCase(j, A) {
|
|
3520
|
+
const L = typeof j == "string" ? j : j.type;
|
|
3521
3521
|
if (!L)
|
|
3522
3522
|
throw new Error(process.env.NODE_ENV === "production" ? X(12) : "`context.addCase` cannot be called with an empty action type");
|
|
3523
|
-
if (L in
|
|
3523
|
+
if (L in d.sliceCaseReducersByType)
|
|
3524
3524
|
throw new Error(process.env.NODE_ENV === "production" ? X(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + L);
|
|
3525
|
-
return
|
|
3525
|
+
return d.sliceCaseReducersByType[L] = A, f;
|
|
3526
3526
|
},
|
|
3527
|
-
addMatcher(
|
|
3528
|
-
return
|
|
3529
|
-
matcher:
|
|
3527
|
+
addMatcher(j, A) {
|
|
3528
|
+
return d.sliceMatchers.push({
|
|
3529
|
+
matcher: j,
|
|
3530
3530
|
reducer: A
|
|
3531
|
-
}),
|
|
3531
|
+
}), f;
|
|
3532
3532
|
},
|
|
3533
|
-
exposeAction(
|
|
3534
|
-
return
|
|
3533
|
+
exposeAction(j, A) {
|
|
3534
|
+
return d.actionCreators[j] = A, f;
|
|
3535
3535
|
},
|
|
3536
|
-
exposeCaseReducer(
|
|
3537
|
-
return
|
|
3536
|
+
exposeCaseReducer(j, A) {
|
|
3537
|
+
return d.sliceCaseReducersByName[j] = A, f;
|
|
3538
3538
|
}
|
|
3539
3539
|
};
|
|
3540
|
-
u.forEach((
|
|
3541
|
-
const A = c[
|
|
3542
|
-
reducerName:
|
|
3543
|
-
type: Ba(s,
|
|
3540
|
+
u.forEach((j) => {
|
|
3541
|
+
const A = c[j], L = {
|
|
3542
|
+
reducerName: j,
|
|
3543
|
+
type: Ba(s, j),
|
|
3544
3544
|
createNotation: typeof o.reducers == "function"
|
|
3545
3545
|
};
|
|
3546
|
-
Wa(A) ? Ha(L, A,
|
|
3546
|
+
Wa(A) ? Ha(L, A, f, t) : Va(L, A, f);
|
|
3547
3547
|
});
|
|
3548
|
-
function
|
|
3548
|
+
function l() {
|
|
3549
3549
|
if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
|
|
3550
3550
|
throw new Error(process.env.NODE_ENV === "production" ? X(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
3551
|
-
const [
|
|
3552
|
-
...
|
|
3553
|
-
...
|
|
3551
|
+
const [j = {}, A = [], L = void 0] = typeof o.extraReducers == "function" ? mo(o.extraReducers) : [o.extraReducers], B = {
|
|
3552
|
+
...j,
|
|
3553
|
+
...d.sliceCaseReducersByType
|
|
3554
3554
|
};
|
|
3555
|
-
return
|
|
3555
|
+
return Pa(o.initialState, (Z) => {
|
|
3556
3556
|
for (let I in B)
|
|
3557
3557
|
Z.addCase(I, B[I]);
|
|
3558
|
-
for (let I of
|
|
3558
|
+
for (let I of d.sliceMatchers)
|
|
3559
3559
|
Z.addMatcher(I.matcher, I.reducer);
|
|
3560
3560
|
for (let I of A)
|
|
3561
3561
|
Z.addMatcher(I.matcher, I.reducer);
|
|
3562
3562
|
L && Z.addDefaultCase(L);
|
|
3563
3563
|
});
|
|
3564
3564
|
}
|
|
3565
|
-
const
|
|
3565
|
+
const _ = (j) => j, v = /* @__PURE__ */ new Map();
|
|
3566
3566
|
let m;
|
|
3567
|
-
function b(
|
|
3568
|
-
return m || (m =
|
|
3567
|
+
function b(j, A) {
|
|
3568
|
+
return m || (m = l()), m(j, A);
|
|
3569
3569
|
}
|
|
3570
3570
|
function N() {
|
|
3571
|
-
return m || (m =
|
|
3571
|
+
return m || (m = l()), m.getInitialState();
|
|
3572
3572
|
}
|
|
3573
|
-
function M(
|
|
3573
|
+
function M(j, A = !1) {
|
|
3574
3574
|
function L(Z) {
|
|
3575
|
-
let I = Z[
|
|
3575
|
+
let I = Z[j];
|
|
3576
3576
|
if (typeof I > "u") {
|
|
3577
3577
|
if (A)
|
|
3578
3578
|
I = N();
|
|
@@ -3581,8 +3581,8 @@ function za({
|
|
|
3581
3581
|
}
|
|
3582
3582
|
return I;
|
|
3583
3583
|
}
|
|
3584
|
-
function B(Z =
|
|
3585
|
-
const I = bn(
|
|
3584
|
+
function B(Z = _) {
|
|
3585
|
+
const I = bn(v, A, {
|
|
3586
3586
|
insert: () => /* @__PURE__ */ new WeakMap()
|
|
3587
3587
|
});
|
|
3588
3588
|
return bn(I, Z, {
|
|
@@ -3595,7 +3595,7 @@ function za({
|
|
|
3595
3595
|
});
|
|
3596
3596
|
}
|
|
3597
3597
|
return {
|
|
3598
|
-
reducerPath:
|
|
3598
|
+
reducerPath: j,
|
|
3599
3599
|
getSelectors: B,
|
|
3600
3600
|
get selectors() {
|
|
3601
3601
|
return B(L);
|
|
@@ -3603,28 +3603,28 @@ function za({
|
|
|
3603
3603
|
selectSlice: L
|
|
3604
3604
|
};
|
|
3605
3605
|
}
|
|
3606
|
-
const
|
|
3606
|
+
const P = {
|
|
3607
3607
|
name: s,
|
|
3608
3608
|
reducer: b,
|
|
3609
|
-
actions:
|
|
3610
|
-
caseReducers:
|
|
3609
|
+
actions: d.actionCreators,
|
|
3610
|
+
caseReducers: d.sliceCaseReducersByName,
|
|
3611
3611
|
getInitialState: N,
|
|
3612
3612
|
...M(i),
|
|
3613
|
-
injectInto(
|
|
3613
|
+
injectInto(j, {
|
|
3614
3614
|
reducerPath: A,
|
|
3615
3615
|
...L
|
|
3616
3616
|
} = {}) {
|
|
3617
3617
|
const B = A ?? i;
|
|
3618
|
-
return
|
|
3618
|
+
return j.inject({
|
|
3619
3619
|
reducerPath: B,
|
|
3620
3620
|
reducer: b
|
|
3621
3621
|
}, L), {
|
|
3622
|
-
...
|
|
3622
|
+
...P,
|
|
3623
3623
|
...M(B, !0)
|
|
3624
3624
|
};
|
|
3625
3625
|
}
|
|
3626
3626
|
};
|
|
3627
|
-
return
|
|
3627
|
+
return P;
|
|
3628
3628
|
};
|
|
3629
3629
|
}
|
|
3630
3630
|
function qa(e, t, r, n) {
|
|
@@ -3703,14 +3703,14 @@ function Ha({
|
|
|
3703
3703
|
fulfilled: i,
|
|
3704
3704
|
pending: c,
|
|
3705
3705
|
rejected: u,
|
|
3706
|
-
settled:
|
|
3707
|
-
options:
|
|
3708
|
-
} = r,
|
|
3709
|
-
n.exposeAction(t,
|
|
3706
|
+
settled: d,
|
|
3707
|
+
options: f
|
|
3708
|
+
} = r, l = o(e, s, f);
|
|
3709
|
+
n.exposeAction(t, l), i && n.addCase(l.fulfilled, i), c && n.addCase(l.pending, c), u && n.addCase(l.rejected, u), d && n.addMatcher(l.settled, d), n.exposeCaseReducer(t, {
|
|
3710
3710
|
fulfilled: i || dt,
|
|
3711
3711
|
pending: c || dt,
|
|
3712
3712
|
rejected: u || dt,
|
|
3713
|
-
settled:
|
|
3713
|
+
settled: d || dt
|
|
3714
3714
|
});
|
|
3715
3715
|
}
|
|
3716
3716
|
function dt() {
|
|
@@ -3718,7 +3718,7 @@ function dt() {
|
|
|
3718
3718
|
var Ga = (e, t) => {
|
|
3719
3719
|
if (typeof e != "function")
|
|
3720
3720
|
throw new Error(process.env.NODE_ENV === "production" ? X(32) : `${t} is not a function`);
|
|
3721
|
-
},
|
|
3721
|
+
}, Pr = "listenerMiddleware", Ya = (e) => {
|
|
3722
3722
|
let {
|
|
3723
3723
|
type: t,
|
|
3724
3724
|
actionCreator: r,
|
|
@@ -3756,11 +3756,11 @@ var Ga = (e, t) => {
|
|
|
3756
3756
|
};
|
|
3757
3757
|
}, {
|
|
3758
3758
|
withTypes: () => Ja
|
|
3759
|
-
}), Ka = Object.assign(Ce(`${
|
|
3759
|
+
}), Ka = Object.assign(Ce(`${Pr}/add`), {
|
|
3760
3760
|
withTypes: () => Ka
|
|
3761
3761
|
});
|
|
3762
|
-
Ce(`${
|
|
3763
|
-
var Xa = Object.assign(Ce(`${
|
|
3762
|
+
Ce(`${Pr}/removeAll`);
|
|
3763
|
+
var Xa = Object.assign(Ce(`${Pr}/remove`), {
|
|
3764
3764
|
withTypes: () => Xa
|
|
3765
3765
|
});
|
|
3766
3766
|
function X(e) {
|
|
@@ -3768,7 +3768,7 @@ function X(e) {
|
|
|
3768
3768
|
}
|
|
3769
3769
|
const Za = {
|
|
3770
3770
|
showLogin: !1
|
|
3771
|
-
}, hr =
|
|
3771
|
+
}, hr = jr("user/getUserInfo", async () => {
|
|
3772
3772
|
if (localStorage.getItem("token"))
|
|
3773
3773
|
return await to();
|
|
3774
3774
|
}), bo = go({
|
|
@@ -3794,7 +3794,7 @@ const Za = {
|
|
|
3794
3794
|
});
|
|
3795
3795
|
}
|
|
3796
3796
|
}), Qa = bo.actions, ec = bo.reducer, pr = (e, t) => t.some((r) => e instanceof r);
|
|
3797
|
-
let Sn,
|
|
3797
|
+
let Sn, _n;
|
|
3798
3798
|
function tc() {
|
|
3799
3799
|
return Sn || (Sn = [
|
|
3800
3800
|
IDBDatabase,
|
|
@@ -3805,7 +3805,7 @@ function tc() {
|
|
|
3805
3805
|
]);
|
|
3806
3806
|
}
|
|
3807
3807
|
function rc() {
|
|
3808
|
-
return
|
|
3808
|
+
return _n || (_n = [
|
|
3809
3809
|
IDBCursor.prototype.advance,
|
|
3810
3810
|
IDBCursor.prototype.continue,
|
|
3811
3811
|
IDBCursor.prototype.continuePrimaryKey
|
|
@@ -3889,12 +3889,12 @@ function ac(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
|
|
|
3889
3889
|
u.newVersion,
|
|
3890
3890
|
u
|
|
3891
3891
|
)), c.then((u) => {
|
|
3892
|
-
s && u.addEventListener("close", () => s()), o && u.addEventListener("versionchange", (
|
|
3892
|
+
s && u.addEventListener("close", () => s()), o && u.addEventListener("versionchange", (d) => o(d.oldVersion, d.newVersion, d));
|
|
3893
3893
|
}).catch(() => {
|
|
3894
3894
|
}), c;
|
|
3895
3895
|
}
|
|
3896
3896
|
const cc = ["get", "getKey", "getAll", "getAllKeys", "count"], uc = ["put", "add", "delete", "clear"], Vt = /* @__PURE__ */ new Map();
|
|
3897
|
-
function
|
|
3897
|
+
function En(e, t) {
|
|
3898
3898
|
if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
|
|
3899
3899
|
return;
|
|
3900
3900
|
if (Vt.get(t))
|
|
@@ -3907,9 +3907,9 @@ function _n(e, t) {
|
|
|
3907
3907
|
return;
|
|
3908
3908
|
const s = async function(i, ...c) {
|
|
3909
3909
|
const u = this.transaction(i, o ? "readwrite" : "readonly");
|
|
3910
|
-
let
|
|
3911
|
-
return n && (
|
|
3912
|
-
|
|
3910
|
+
let d = u.store;
|
|
3911
|
+
return n && (d = d.index(c.shift())), (await Promise.all([
|
|
3912
|
+
d[r](...c),
|
|
3913
3913
|
o && u.done
|
|
3914
3914
|
]))[0];
|
|
3915
3915
|
};
|
|
@@ -3917,8 +3917,8 @@ function _n(e, t) {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
wo((e) => ({
|
|
3919
3919
|
...e,
|
|
3920
|
-
get: (t, r, n) =>
|
|
3921
|
-
has: (t, r) => !!
|
|
3920
|
+
get: (t, r, n) => En(t, r) || e.get(t, r, n),
|
|
3921
|
+
has: (t, r) => !!En(t, r) || e.has(t, r)
|
|
3922
3922
|
}));
|
|
3923
3923
|
const lc = ["continue", "continuePrimaryKey", "advance"], vn = {}, br = /* @__PURE__ */ new WeakMap(), So = /* @__PURE__ */ new WeakMap(), fc = {
|
|
3924
3924
|
get(e, t) {
|
|
@@ -3958,7 +3958,7 @@ const We = "task", it = () => ac("zyjj", 2, {
|
|
|
3958
3958
|
}), hc = async (e, t = We) => (await it()).put(t, e, e.id), pc = async (e = We) => (await it()).getAll(e), mc = async (e, t = We) => (await it()).get(t, e), yc = async (e, t, r = We) => (await it()).put(r, t, e), gc = async (e, t = We) => (await it()).delete(t, e), bc = {
|
|
3959
3959
|
taskCallback: {},
|
|
3960
3960
|
listenerCallback: []
|
|
3961
|
-
},
|
|
3961
|
+
}, _o = jr("mqtt/initMqtt", async (e, { dispatch: t }) => {
|
|
3962
3962
|
const r = await no();
|
|
3963
3963
|
console.log("[mqtt] mqtt info", r);
|
|
3964
3964
|
const n = r.topic, o = es.connect(`mqtt://${r.host}`, {
|
|
@@ -3980,10 +3980,10 @@ const We = "task", it = () => ac("zyjj", 2, {
|
|
|
3980
3980
|
console.log("on message err", u);
|
|
3981
3981
|
}
|
|
3982
3982
|
}), o.on("error", (s) => console.log("[mqtt] err", s)), o.on("close", () => console.log("[mqtt] close")), o.on("disconnect", () => console.log("[mqtt] disconnect")), o;
|
|
3983
|
-
}), wc =
|
|
3983
|
+
}), wc = jr("mqtt/onMqttResponse", async (e, { getState: t }) => {
|
|
3984
3984
|
const { taskCallback: r, listenerCallback: n } = t().mqtt;
|
|
3985
3985
|
e.task_id in r && r[e.task_id](e) && (delete r[e.task_id], console.log("[mqtt] delete callback", e.task_id)), n.forEach((o) => o(e));
|
|
3986
|
-
}),
|
|
3986
|
+
}), Eo = go({
|
|
3987
3987
|
name: "mqtt",
|
|
3988
3988
|
initialState: bc,
|
|
3989
3989
|
reducers: {
|
|
@@ -4008,11 +4008,11 @@ const We = "task", it = () => ac("zyjj", 2, {
|
|
|
4008
4008
|
}
|
|
4009
4009
|
},
|
|
4010
4010
|
extraReducers: (e) => {
|
|
4011
|
-
e.addCase(
|
|
4011
|
+
e.addCase(_o.fulfilled, (t, r) => {
|
|
4012
4012
|
t.client = r.payload;
|
|
4013
4013
|
});
|
|
4014
4014
|
}
|
|
4015
|
-
}), Sc =
|
|
4015
|
+
}), Sc = Eo.actions, _c = Eo.reducer;
|
|
4016
4016
|
var wr;
|
|
4017
4017
|
(function(e) {
|
|
4018
4018
|
e[e.MqttListener = 0] = "MqttListener", e[e.CloudFileUpload = 1] = "CloudFileUpload", e[e.CloudFileDownload = 2] = "CloudFileDownload", e[e.NavigateTo = 4] = "NavigateTo", e[e.CloseWindow = 5] = "CloseWindow", e[e.TaskAction = 6] = "TaskAction", e[e.SendRequest = 7] = "SendRequest", e[e.FFMPEG = 8] = "FFMPEG", e[e.FileDownload = 9] = "FileDownload", e[e.OpenVideoEditor = 10] = "OpenVideoEditor", e[e.OpenTool = 11] = "OpenTool", e[e.OpenHelp = 12] = "OpenHelp", e[e.GetFileData = 13] = "GetFileData";
|
|
@@ -4021,24 +4021,24 @@ var Sr;
|
|
|
4021
4021
|
(function(e) {
|
|
4022
4022
|
e[e.Add = 0] = "Add", e[e.Update = 1] = "Update", e[e.Output = 2] = "Output", e[e.Cancel = 4] = "Cancel", e[e.Restore = 5] = "Restore", e[e.Delete = 6] = "Delete";
|
|
4023
4023
|
})(Sr || (Sr = {}));
|
|
4024
|
-
var
|
|
4024
|
+
var _r;
|
|
4025
4025
|
(function(e) {
|
|
4026
4026
|
e[e.Create = 0] = "Create", e[e.Start = 1] = "Start", e[e.Cancel = 2] = "Cancel", e[e.Restore = 3] = "Restore", e[e.Delete = 4] = "Delete";
|
|
4027
|
-
})(
|
|
4027
|
+
})(_r || (_r = {}));
|
|
4028
4028
|
const ht = 60;
|
|
4029
4029
|
function vo(e) {
|
|
4030
|
-
const [t, r] =
|
|
4030
|
+
const [t, r] = de(ht), n = Zo();
|
|
4031
4031
|
Xe(() => {
|
|
4032
4032
|
t == 0 && (clearInterval(n.current), r(ht));
|
|
4033
4033
|
}, [t]);
|
|
4034
4034
|
const o = () => {
|
|
4035
4035
|
e.callback().then(() => {
|
|
4036
|
-
|
|
4036
|
+
Oe.success("获取验证码成功,请注意查收邮箱"), r((s) => s - 1), n.current = setInterval(() => {
|
|
4037
4037
|
r((s) => s - 1);
|
|
4038
4038
|
}, 1e3);
|
|
4039
4039
|
});
|
|
4040
4040
|
};
|
|
4041
|
-
return
|
|
4041
|
+
return E.jsxs(Ke, { children: [E.jsx(Ae, { onChange: e.onChange, placeholder: "输入验证码" }), E.jsx(ve, { disabled: t != ht, type: "primary", onClick: o, children: t != ht ? `剩余${t}秒` : "获取验证码" })] });
|
|
4042
4042
|
}
|
|
4043
4043
|
function wt() {
|
|
4044
4044
|
return wt = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -4058,7 +4058,7 @@ function rt(e) {
|
|
|
4058
4058
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4059
4059
|
}, rt(e);
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function Ec(e, t) {
|
|
4062
4062
|
if (rt(e) != "object" || !e) return e;
|
|
4063
4063
|
var r = e[Symbol.toPrimitive];
|
|
4064
4064
|
if (r !== void 0) {
|
|
@@ -4069,7 +4069,7 @@ function _c(e, t) {
|
|
|
4069
4069
|
return (t === "string" ? String : Number)(e);
|
|
4070
4070
|
}
|
|
4071
4071
|
function vc(e) {
|
|
4072
|
-
var t =
|
|
4072
|
+
var t = Ec(e, "string");
|
|
4073
4073
|
return rt(t) == "symbol" ? t : t + "";
|
|
4074
4074
|
}
|
|
4075
4075
|
function Oo(e, t, r) {
|
|
@@ -4105,25 +4105,25 @@ function Rn(e) {
|
|
|
4105
4105
|
return e;
|
|
4106
4106
|
}
|
|
4107
4107
|
function Oc(e, t) {
|
|
4108
|
-
var r =
|
|
4108
|
+
var r = Pn(Co), n = r.prefixCls, o = n === void 0 ? "arco" : n, s = e.spin, i = e.className, c = Rn(Rn({
|
|
4109
4109
|
"aria-hidden": !0,
|
|
4110
4110
|
focusable: !1,
|
|
4111
4111
|
ref: t
|
|
4112
4112
|
}, e), {}, {
|
|
4113
4113
|
className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-qq")
|
|
4114
4114
|
});
|
|
4115
|
-
return s && (c.className = "".concat(c.className, " ").concat(o, "-icon-loading")), delete c.spin, delete c.isIcon, /* @__PURE__ */
|
|
4115
|
+
return s && (c.className = "".concat(c.className, " ").concat(o, "-icon-loading")), delete c.spin, delete c.isIcon, /* @__PURE__ */ je.createElement("svg", wt({
|
|
4116
4116
|
fill: "none",
|
|
4117
4117
|
stroke: "currentColor",
|
|
4118
4118
|
strokeWidth: "4",
|
|
4119
4119
|
viewBox: "0 0 48 48"
|
|
4120
|
-
}, c), /* @__PURE__ */
|
|
4120
|
+
}, c), /* @__PURE__ */ je.createElement("path", {
|
|
4121
4121
|
fill: "currentColor",
|
|
4122
4122
|
stroke: "none",
|
|
4123
4123
|
d: "M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z"
|
|
4124
4124
|
}));
|
|
4125
4125
|
}
|
|
4126
|
-
var Nr = /* @__PURE__ */
|
|
4126
|
+
var Nr = /* @__PURE__ */ je.forwardRef(Oc);
|
|
4127
4127
|
Nr.defaultProps = {
|
|
4128
4128
|
isIcon: !0
|
|
4129
4129
|
};
|
|
@@ -4150,70 +4150,82 @@ function xn(e) {
|
|
|
4150
4150
|
return e;
|
|
4151
4151
|
}
|
|
4152
4152
|
function Cc(e, t) {
|
|
4153
|
-
var r =
|
|
4153
|
+
var r = Pn(Co), n = r.prefixCls, o = n === void 0 ? "arco" : n, s = e.spin, i = e.className, c = xn(xn({
|
|
4154
4154
|
"aria-hidden": !0,
|
|
4155
4155
|
focusable: !1,
|
|
4156
4156
|
ref: t
|
|
4157
4157
|
}, e), {}, {
|
|
4158
4158
|
className: "".concat(i ? i + " " : "").concat(o, "-icon ").concat(o, "-icon-wechat")
|
|
4159
4159
|
});
|
|
4160
|
-
return s && (c.className = "".concat(c.className, " ").concat(o, "-icon-loading")), delete c.spin, delete c.isIcon, /* @__PURE__ */
|
|
4160
|
+
return s && (c.className = "".concat(c.className, " ").concat(o, "-icon-loading")), delete c.spin, delete c.isIcon, /* @__PURE__ */ je.createElement("svg", wt({
|
|
4161
4161
|
fill: "none",
|
|
4162
4162
|
stroke: "currentColor",
|
|
4163
4163
|
strokeWidth: "4",
|
|
4164
4164
|
viewBox: "0 0 48 48"
|
|
4165
|
-
}, c), /* @__PURE__ */
|
|
4165
|
+
}, c), /* @__PURE__ */ je.createElement("path", {
|
|
4166
4166
|
fill: "currentColor",
|
|
4167
4167
|
stroke: "none",
|
|
4168
4168
|
d: "M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z"
|
|
4169
4169
|
}));
|
|
4170
4170
|
}
|
|
4171
|
-
var kr = /* @__PURE__ */
|
|
4171
|
+
var kr = /* @__PURE__ */ je.forwardRef(Cc);
|
|
4172
4172
|
kr.defaultProps = {
|
|
4173
4173
|
isIcon: !0
|
|
4174
4174
|
};
|
|
4175
4175
|
kr.displayName = "IconWechat";
|
|
4176
4176
|
const Rc = (e) => {
|
|
4177
|
-
const [t, r] =
|
|
4178
|
-
n ?
|
|
4179
|
-
|
|
4177
|
+
const [t, r] = de(""), [n, o] = de(!0), s = (c) => {
|
|
4178
|
+
n ? Pi(c).then((u) => {
|
|
4179
|
+
Oe.success("登录成功"), localStorage.setItem("token", u), e.loginSuccess(u);
|
|
4180
4180
|
}) : ki(c).then(() => {
|
|
4181
|
-
|
|
4181
|
+
Oe.success("注册成功,请登录"), o(!0);
|
|
4182
4182
|
});
|
|
4183
4183
|
}, i = () => eo(t);
|
|
4184
|
-
return
|
|
4184
|
+
return E.jsxs(se, { autoComplete: "off", onSubmit: s, children: [E.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: E.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), E.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: E.jsx(Ae.Password, { placeholder: "输入密码" }) }), n ? null : E.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: E.jsx(vo, { callback: i }) }), E.jsx(se.Item, { wrapperCol: { offset: 5 }, children: E.jsxs(Ke, { direction: "vertical", children: [E.jsxs(Ke, { children: [E.jsx(ve, { type: "primary", htmlType: "submit", children: n ? "立即登录" : "注册账号" }), E.jsx(ve, { onClick: e.onQQLogin, type: "text", style: { color: "#459af6" }, icon: E.jsx(Nr, {}), children: "QQ登录" }), E.jsx(ve, { onClick: e.onWechatLogin, type: "text", style: { color: "#5fc857" }, icon: E.jsx(kr, {}), children: "微信登录" })] }), E.jsxs(Ke, { style: { marginTop: 5 }, children: [E.jsx(ve, { type: "text", onClick: () => o((c) => !c), children: n ? "新用户?" : "已有账号?" }), n ? E.jsx(ve, { onClick: () => e.onForget(), type: "text", children: "忘记密码?" }) : null] })] }) })] });
|
|
4185
4185
|
};
|
|
4186
4186
|
function Dc(e) {
|
|
4187
|
-
const [t, r] =
|
|
4187
|
+
const [t, r] = de(""), n = (s) => {
|
|
4188
4188
|
if (s.password_repeat != s.password) {
|
|
4189
|
-
|
|
4189
|
+
Oe.error("新旧密码不一致");
|
|
4190
4190
|
return;
|
|
4191
4191
|
}
|
|
4192
4192
|
const { email: i, password: c, token: u } = s;
|
|
4193
4193
|
Ii({ email: i, password: c, token: u }).then(() => {
|
|
4194
|
-
|
|
4194
|
+
Oe.success("密码重置成功,请登录"), e.onLogin();
|
|
4195
4195
|
});
|
|
4196
4196
|
}, o = () => eo(t);
|
|
4197
|
-
return
|
|
4197
|
+
return E.jsx("div", { children: E.jsxs(se, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [E.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: E.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), E.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: E.jsx(vo, { callback: o }) }), E.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: E.jsx(Ae, { type: "password", placeholder: "输入新密码" }) }), E.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: E.jsx(Ae, { type: "password", placeholder: "再输入一遍新密码" }) }), E.jsx(se.Item, { wrapperCol: { offset: 5 }, children: E.jsxs(Ke, { children: [E.jsx(ve, { type: "primary", htmlType: "submit", children: "立即重置" }), E.jsx(ve, { onClick: () => e.onLogin(), type: "text", children: "重新登录" })] }) })] }) });
|
|
4198
4198
|
}
|
|
4199
4199
|
function Fc(e) {
|
|
4200
|
-
const [t, r] =
|
|
4200
|
+
const [t, r] = de(!1), [n, o] = de(!1), [s, i] = de(""), [c, u] = de("wechat"), [d, f] = de(400);
|
|
4201
4201
|
Xe(() => {
|
|
4202
4202
|
if (n) {
|
|
4203
|
-
const
|
|
4204
|
-
|
|
4203
|
+
const _ = encodeURI(e.state || "https://app.zyjj.cc/login");
|
|
4204
|
+
if (c == "wechat") {
|
|
4205
|
+
f(400);
|
|
4206
|
+
const v = encodeURIComponent("https://api.zyjj.cc/api/v1/common/callback/wechat");
|
|
4207
|
+
i(`https://open.weixin.qq.com/connect/qrconnect?appid=wx61e0b9e2ab2060f3&redirect_uri=${v}&response_type=code&scope=snsapi_login&state=${_}&login_type=jssdk&self_redirect=true&width=300px&height=400px`);
|
|
4208
|
+
} else {
|
|
4209
|
+
f(800);
|
|
4210
|
+
const v = encodeURIComponent("https://api.zyjj.cc/api/v1/common/callback/qq");
|
|
4211
|
+
i(`https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=102632062&redirect_uri=${v}&state=${_}`);
|
|
4212
|
+
}
|
|
4205
4213
|
}
|
|
4206
4214
|
}, [n]);
|
|
4207
|
-
const
|
|
4208
|
-
const
|
|
4209
|
-
typeof
|
|
4215
|
+
const l = (_) => {
|
|
4216
|
+
const v = _.data;
|
|
4217
|
+
typeof v == "object" && v.type == "login" && (o(!1), Oe.success("登录成功"), localStorage.setItem("token", v.token), e.loginSuccess(v.token));
|
|
4210
4218
|
};
|
|
4211
|
-
return Xe(() => (window.addEventListener("message",
|
|
4212
|
-
window.removeEventListener("message",
|
|
4213
|
-
}), []),
|
|
4219
|
+
return Xe(() => (window.addEventListener("message", l), () => {
|
|
4220
|
+
window.removeEventListener("message", l);
|
|
4221
|
+
}), []), E.jsxs(E.Fragment, { children: [E.jsx(Hr, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? E.jsx(Dc, { onLogin: () => r(!1) }) : E.jsx(Rc, { onWechatLogin: () => {
|
|
4222
|
+
o(!0), u("wechat");
|
|
4223
|
+
}, onQQLogin: () => {
|
|
4224
|
+
o(!0), u("qq");
|
|
4225
|
+
}, loginSuccess: e.loginSuccess, onForget: () => r(!0) }) }), E.jsx(Hr, { style: { width: d + 40 }, visible: n, onCancel: () => o(!1), footer: null, children: E.jsx("div", { style: { display: "flex", justifyContent: "center" }, children: E.jsx("iframe", { style: { border: 0, minHeight: 400, width: d }, src: s }) }) })] });
|
|
4214
4226
|
}
|
|
4215
4227
|
function Mc(e) {
|
|
4216
|
-
const [t, r] =
|
|
4228
|
+
const [t, r] = de([]), [n, o] = de(!1), [s, i] = de({
|
|
4217
4229
|
sizeCanChange: !0,
|
|
4218
4230
|
showTotal: !0,
|
|
4219
4231
|
total: 0,
|
|
@@ -4221,20 +4233,20 @@ function Mc(e) {
|
|
|
4221
4233
|
current: 1,
|
|
4222
4234
|
pageSizeChangeResetCurrent: !0
|
|
4223
4235
|
}), [c] = se.useForm(), u = () => {
|
|
4224
|
-
o(!0), i((
|
|
4225
|
-
r(
|
|
4226
|
-
}),
|
|
4236
|
+
o(!0), i((d) => (e.data(d.current, d.pageSize, c.getFieldsValue()).then((f) => {
|
|
4237
|
+
r(f.list), i((l) => (l.total = f.total, l)), o(!1);
|
|
4238
|
+
}), d));
|
|
4227
4239
|
};
|
|
4228
4240
|
return Xe(() => {
|
|
4229
4241
|
u();
|
|
4230
4242
|
}, [s.current, s.pageSize]), Xe(() => {
|
|
4231
4243
|
u(), e.refresh && e.refresh(() => u());
|
|
4232
|
-
}, []),
|
|
4233
|
-
var
|
|
4234
|
-
let
|
|
4235
|
-
const
|
|
4236
|
-
return
|
|
4237
|
-
}),
|
|
4244
|
+
}, []), E.jsxs(E.Fragment, { children: [e.search ? E.jsxs(se, { form: c, layout: "inline", onSubmit: u, children: [e.search.map((d) => {
|
|
4245
|
+
var _;
|
|
4246
|
+
let f = E.jsx(E.Fragment, {});
|
|
4247
|
+
const l = d.data;
|
|
4248
|
+
return d.tp == "input" ? f = E.jsx(Ae, { style: { width: l.width }, allowClear: !0, placeholder: l.placeholder }) : d.tp == "select" ? f = E.jsx(Gr, { style: { width: l.width }, allowClear: !0, children: (_ = l.options) == null ? void 0 : _.map((v) => E.jsx(Gr.Option, { value: v.value, children: v.label }, v.value)) }) : d.tp == "custom" && (f = d.ele), E.jsx(se.Item, { label: d.label, field: d.field, children: f }, d.field);
|
|
4249
|
+
}), E.jsx(se.Item, { children: E.jsx(ve, { htmlType: "submit", children: "搜索" }) })] }) : null, E.jsx(Jo, { loading: n, pagination: s, onChange: (d) => i({ ...s, current: (d == null ? void 0 : d.current) || s.current, pageSize: (d == null ? void 0 : d.pageSize) || s.pageSize }), rowKey: e.id || "id", columns: e.columns, data: t })] });
|
|
4238
4250
|
}
|
|
4239
4251
|
const Uc = {
|
|
4240
4252
|
GetAllTool: Mi,
|
|
@@ -4268,7 +4280,7 @@ const Uc = {
|
|
|
4268
4280
|
LabElementType: sr,
|
|
4269
4281
|
ToolConfigType: rr,
|
|
4270
4282
|
ToolEventType: wr,
|
|
4271
|
-
WorkActionType:
|
|
4283
|
+
WorkActionType: _r,
|
|
4272
4284
|
TaskActionType: Sr
|
|
4273
4285
|
}, zc = {
|
|
4274
4286
|
render: {
|
|
@@ -4277,8 +4289,8 @@ const Uc = {
|
|
|
4277
4289
|
renderCopy: ea
|
|
4278
4290
|
},
|
|
4279
4291
|
utils: {
|
|
4280
|
-
file2ToolParamFile:
|
|
4281
|
-
seconds2TimeStr:
|
|
4292
|
+
file2ToolParamFile: _i,
|
|
4293
|
+
seconds2TimeStr: Ei,
|
|
4282
4294
|
object2query: Zn,
|
|
4283
4295
|
paramReplace: Ri,
|
|
4284
4296
|
object2urlParam: Di,
|
|
@@ -4301,9 +4313,9 @@ const Uc = {
|
|
|
4301
4313
|
UserReducer: ec,
|
|
4302
4314
|
UserAction: Qa,
|
|
4303
4315
|
GetUserInfo: hr,
|
|
4304
|
-
MqttReducer:
|
|
4316
|
+
MqttReducer: _c,
|
|
4305
4317
|
MqttAction: Sc,
|
|
4306
|
-
InitMqtt:
|
|
4318
|
+
InitMqtt: _o
|
|
4307
4319
|
};
|
|
4308
4320
|
export {
|
|
4309
4321
|
Uc as Api,
|