zyjj-web-sdk 1.1.2 → 1.1.4
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/{APlayer.min-cYakPUtE.js → APlayer.min-Bakc03ej.js} +1 -1
- package/lib/{DPlayer.min-6i8RTupf.js → DPlayer.min-JqGc5Y75.js} +1 -1
- package/lib/{ElementTypeAlert-BN8F6PHX.js → ElementTypeAlert-CrTUt6Y8.js} +1 -1
- package/lib/{ElementTypeAudio-CpOL1JSg.js → ElementTypeAudio-Cr9cYS9F.js} +3 -3
- package/lib/{ElementTypeImage-CK4q6bI7.js → ElementTypeImage-g1KwCGd5.js} +2 -2
- package/lib/{ElementTypeImageList-DQon_M46.js → ElementTypeImageList-x-OFmgPd.js} +2 -2
- package/lib/{ElementTypeInput-Mx1txBsc.js → ElementTypeInput-khx9Bnra.js} +1 -1
- package/lib/{ElementTypeNumber-Be9gUlCJ.js → ElementTypeNumber-DvmxbEW2.js} +1 -1
- package/lib/{ElementTypeSelect-TTtjEVOj.js → ElementTypeSelect-BnBYykvw.js} +1 -1
- package/lib/{ElementTypeText-ByyMD0FT.js → ElementTypeText-Bj0Gtt5k.js} +3 -3
- package/lib/{ElementTypeTextArea-CE2X9ol7.js → ElementTypeTextArea-DUp-KoHF.js} +1 -1
- package/lib/{ElementTypeUpload-O411cbP7.js → ElementTypeUpload-DiIOzcTc.js} +1 -1
- package/lib/{ElementTypeVideo-D-c4fzS7.js → ElementTypeVideo-BPdozUUx.js} +3 -3
- package/lib/api/api.d.ts +1 -0
- package/lib/{common-fg-GJh8W.js → common-DfFXxDQZ.js} +1 -1
- package/lib/{index-oS0LMsZ4.js → index-D3ZndTEy.js} +746 -727
- package/lib/{index-4CgKoZea.js → index-DRCPuk5t.js} +2 -2
- package/lib/index.d.ts +15 -6
- package/lib/index.js +1 -1
- package/lib/index.umd.cjs +46 -46
- package/lib/tool/utils.d.ts +8 -1
- package/lib/types/local-task.d.ts +4 -2
- package/package.json +3 -1
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
var Mo = Object.defineProperty;
|
|
2
2
|
var Uo = (e, t, r) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var
|
|
4
|
-
import { Message as xe, Typography as wn, Space as wr, Input as Ae, Button as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
var Nt = (e, t, r) => Uo(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { Message as xe, Typography as wn, Space as wr, Input as Ae, Button as $e, Modal as Bo, Form as ie, Table as zo } from "@arco-design/web-react";
|
|
5
|
+
import To from "cos-js-sdk-v5";
|
|
6
|
+
import Vo from "ali-oss";
|
|
7
|
+
import En, { useState as Pe, useRef as Lo, useEffect as Tt, lazy as me } from "react";
|
|
8
|
+
import qo from "mqtt";
|
|
8
9
|
function Sn(e, t) {
|
|
9
10
|
return function() {
|
|
10
11
|
return e.apply(t, arguments);
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
const { toString:
|
|
14
|
-
const r =
|
|
14
|
+
const { toString: Wo } = Object.prototype, { getPrototypeOf: Er } = Object, gt = /* @__PURE__ */ ((e) => (t) => {
|
|
15
|
+
const r = Wo.call(t);
|
|
15
16
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
16
|
-
})(/* @__PURE__ */ Object.create(null)), _e = (e) => (e = e.toLowerCase(), (t) =>
|
|
17
|
-
function
|
|
17
|
+
})(/* @__PURE__ */ Object.create(null)), _e = (e) => (e = e.toLowerCase(), (t) => gt(t) === e), bt = (e) => (t) => typeof t === e, { isArray: qe } = Array, Xe = bt("undefined");
|
|
18
|
+
function Ho(e) {
|
|
18
19
|
return e !== null && !Xe(e) && e.constructor !== null && !Xe(e.constructor) && he(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
20
|
}
|
|
20
21
|
const _n = _e("ArrayBuffer");
|
|
21
|
-
function
|
|
22
|
+
function Go(e) {
|
|
22
23
|
let t;
|
|
23
24
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && _n(e.buffer), t;
|
|
24
25
|
}
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
26
|
+
const Yo = bt("string"), he = bt("function"), vn = bt("number"), wt = (e) => e !== null && typeof e == "object", Jo = (e) => e === !0 || e === !1, dt = (e) => {
|
|
27
|
+
if (gt(e) !== "object")
|
|
27
28
|
return !1;
|
|
28
29
|
const t = Er(e);
|
|
29
30
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
30
|
-
},
|
|
31
|
+
}, Ko = _e("Date"), Xo = _e("File"), Zo = _e("Blob"), Qo = _e("FileList"), es = (e) => wt(e) && he(e.pipe), ts = (e) => {
|
|
31
32
|
let t;
|
|
32
|
-
return e && (typeof FormData == "function" && e instanceof FormData || he(e.append) && ((t =
|
|
33
|
+
return e && (typeof FormData == "function" && e instanceof FormData || he(e.append) && ((t = gt(e)) === "formdata" || // detect form-data instance
|
|
33
34
|
t === "object" && he(e.toString) && e.toString() === "[object FormData]"));
|
|
34
|
-
},
|
|
35
|
-
function
|
|
35
|
+
}, rs = _e("URLSearchParams"), ns = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function tt(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
36
37
|
if (e === null || typeof e > "u")
|
|
37
38
|
return;
|
|
38
39
|
let n, o;
|
|
@@ -59,19 +60,19 @@ const Cn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
59
60
|
function Vt() {
|
|
60
61
|
const { caseless: e } = Rn(this) && this || {}, t = {}, r = (n, o) => {
|
|
61
62
|
const s = e && On(t, o) || o;
|
|
62
|
-
|
|
63
|
+
dt(t[s]) && dt(n) ? t[s] = Vt(t[s], n) : dt(n) ? t[s] = Vt({}, n) : qe(n) ? t[s] = n.slice() : t[s] = n;
|
|
63
64
|
};
|
|
64
65
|
for (let n = 0, o = arguments.length; n < o; n++)
|
|
65
|
-
arguments[n] &&
|
|
66
|
+
arguments[n] && tt(arguments[n], r);
|
|
66
67
|
return t;
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
+
const os = (e, t, r, { allOwnKeys: n } = {}) => (tt(t, (o, s) => {
|
|
69
70
|
r && he(o) ? e[s] = Sn(o, r) : e[s] = o;
|
|
70
|
-
}, { allOwnKeys: n }), e),
|
|
71
|
+
}, { allOwnKeys: n }), e), ss = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), is = (e, t, r, n) => {
|
|
71
72
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
72
73
|
value: t.prototype
|
|
73
74
|
}), r && Object.assign(e.prototype, r);
|
|
74
|
-
},
|
|
75
|
+
}, as = (e, t, r, n) => {
|
|
75
76
|
let o, s, i;
|
|
76
77
|
const c = {};
|
|
77
78
|
if (t = t || {}, e == null) return t;
|
|
@@ -81,11 +82,11 @@ const ns = (e, t, r, { allOwnKeys: n } = {}) => (et(t, (o, s) => {
|
|
|
81
82
|
e = r !== !1 && Er(e);
|
|
82
83
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
83
84
|
return t;
|
|
84
|
-
},
|
|
85
|
+
}, cs = (e, t, r) => {
|
|
85
86
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
86
87
|
const n = e.indexOf(t, r);
|
|
87
88
|
return n !== -1 && n === r;
|
|
88
|
-
},
|
|
89
|
+
}, us = (e) => {
|
|
89
90
|
if (!e) return null;
|
|
90
91
|
if (qe(e)) return e;
|
|
91
92
|
let t = e.length;
|
|
@@ -94,31 +95,31 @@ const ns = (e, t, r, { allOwnKeys: n } = {}) => (et(t, (o, s) => {
|
|
|
94
95
|
for (; t-- > 0; )
|
|
95
96
|
r[t] = e[t];
|
|
96
97
|
return r;
|
|
97
|
-
},
|
|
98
|
+
}, ls = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Er(Uint8Array)), fs = (e, t) => {
|
|
98
99
|
const n = (e && e[Symbol.iterator]).call(e);
|
|
99
100
|
let o;
|
|
100
101
|
for (; (o = n.next()) && !o.done; ) {
|
|
101
102
|
const s = o.value;
|
|
102
103
|
t.call(e, s[0], s[1]);
|
|
103
104
|
}
|
|
104
|
-
},
|
|
105
|
+
}, ds = (e, t) => {
|
|
105
106
|
let r;
|
|
106
107
|
const n = [];
|
|
107
108
|
for (; (r = e.exec(t)) !== null; )
|
|
108
109
|
n.push(r);
|
|
109
110
|
return n;
|
|
110
|
-
},
|
|
111
|
+
}, hs = _e("HTMLFormElement"), ps = (e) => e.toLowerCase().replace(
|
|
111
112
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
112
113
|
function(r, n, o) {
|
|
113
114
|
return n.toUpperCase() + o;
|
|
114
115
|
}
|
|
115
|
-
),
|
|
116
|
+
), Tr = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ms = _e("RegExp"), Dn = (e, t) => {
|
|
116
117
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
117
|
-
|
|
118
|
+
tt(r, (o, s) => {
|
|
118
119
|
let i;
|
|
119
120
|
(i = t(o, s, e)) !== !1 && (n[s] = i || o);
|
|
120
121
|
}), Object.defineProperties(e, n);
|
|
121
|
-
},
|
|
122
|
+
}, ys = (e) => {
|
|
122
123
|
Dn(e, (t, r) => {
|
|
123
124
|
if (he(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
124
125
|
return !1;
|
|
@@ -133,37 +134,37 @@ const ns = (e, t, r, { allOwnKeys: n } = {}) => (et(t, (o, s) => {
|
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
136
|
});
|
|
136
|
-
},
|
|
137
|
+
}, gs = (e, t) => {
|
|
137
138
|
const r = {}, n = (o) => {
|
|
138
139
|
o.forEach((s) => {
|
|
139
140
|
r[s] = !0;
|
|
140
141
|
});
|
|
141
142
|
};
|
|
142
143
|
return qe(e) ? n(e) : n(String(e).split(t)), r;
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
DIGIT:
|
|
146
|
-
ALPHA:
|
|
147
|
-
ALPHA_DIGIT:
|
|
148
|
-
},
|
|
144
|
+
}, bs = () => {
|
|
145
|
+
}, ws = (e, t) => (e = +e, Number.isFinite(e) ? e : t), It = "abcdefghijklmnopqrstuvwxyz", Vr = "0123456789", xn = {
|
|
146
|
+
DIGIT: Vr,
|
|
147
|
+
ALPHA: It,
|
|
148
|
+
ALPHA_DIGIT: It + It.toUpperCase() + Vr
|
|
149
|
+
}, Es = (e = 16, t = xn.ALPHA_DIGIT) => {
|
|
149
150
|
let r = "";
|
|
150
151
|
const { length: n } = t;
|
|
151
152
|
for (; e--; )
|
|
152
153
|
r += t[Math.random() * n | 0];
|
|
153
154
|
return r;
|
|
154
155
|
};
|
|
155
|
-
function
|
|
156
|
+
function Ss(e) {
|
|
156
157
|
return !!(e && he(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
157
158
|
}
|
|
158
|
-
const
|
|
159
|
+
const _s = (e) => {
|
|
159
160
|
const t = new Array(10), r = (n, o) => {
|
|
160
|
-
if (
|
|
161
|
+
if (wt(n)) {
|
|
161
162
|
if (t.indexOf(n) >= 0)
|
|
162
163
|
return;
|
|
163
164
|
if (!("toJSON" in n)) {
|
|
164
165
|
t[o] = n;
|
|
165
166
|
const s = qe(n) ? [] : {};
|
|
166
|
-
return
|
|
167
|
+
return tt(n, (i, c) => {
|
|
167
168
|
const u = r(i, o + 1);
|
|
168
169
|
!Xe(u) && (s[c] = u);
|
|
169
170
|
}), t[o] = void 0, s;
|
|
@@ -172,64 +173,64 @@ const Ss = (e) => {
|
|
|
172
173
|
return n;
|
|
173
174
|
};
|
|
174
175
|
return r(e, 0);
|
|
175
|
-
},
|
|
176
|
+
}, vs = _e("AsyncFunction"), Os = (e) => e && (wt(e) || he(e)) && he(e.then) && he(e.catch), h = {
|
|
176
177
|
isArray: qe,
|
|
177
178
|
isArrayBuffer: _n,
|
|
178
|
-
isBuffer:
|
|
179
|
-
isFormData:
|
|
180
|
-
isArrayBufferView:
|
|
181
|
-
isString:
|
|
179
|
+
isBuffer: Ho,
|
|
180
|
+
isFormData: ts,
|
|
181
|
+
isArrayBufferView: Go,
|
|
182
|
+
isString: Yo,
|
|
182
183
|
isNumber: vn,
|
|
183
|
-
isBoolean:
|
|
184
|
-
isObject:
|
|
185
|
-
isPlainObject:
|
|
184
|
+
isBoolean: Jo,
|
|
185
|
+
isObject: wt,
|
|
186
|
+
isPlainObject: dt,
|
|
186
187
|
isUndefined: Xe,
|
|
187
|
-
isDate:
|
|
188
|
-
isFile:
|
|
189
|
-
isBlob:
|
|
190
|
-
isRegExp:
|
|
188
|
+
isDate: Ko,
|
|
189
|
+
isFile: Xo,
|
|
190
|
+
isBlob: Zo,
|
|
191
|
+
isRegExp: ms,
|
|
191
192
|
isFunction: he,
|
|
192
|
-
isStream:
|
|
193
|
-
isURLSearchParams:
|
|
194
|
-
isTypedArray:
|
|
195
|
-
isFileList:
|
|
196
|
-
forEach:
|
|
193
|
+
isStream: es,
|
|
194
|
+
isURLSearchParams: rs,
|
|
195
|
+
isTypedArray: ls,
|
|
196
|
+
isFileList: Qo,
|
|
197
|
+
forEach: tt,
|
|
197
198
|
merge: Vt,
|
|
198
|
-
extend:
|
|
199
|
-
trim:
|
|
200
|
-
stripBOM:
|
|
201
|
-
inherits:
|
|
202
|
-
toFlatObject:
|
|
203
|
-
kindOf:
|
|
199
|
+
extend: os,
|
|
200
|
+
trim: ns,
|
|
201
|
+
stripBOM: ss,
|
|
202
|
+
inherits: is,
|
|
203
|
+
toFlatObject: as,
|
|
204
|
+
kindOf: gt,
|
|
204
205
|
kindOfTest: _e,
|
|
205
|
-
endsWith:
|
|
206
|
-
toArray:
|
|
207
|
-
forEachEntry:
|
|
208
|
-
matchAll:
|
|
209
|
-
isHTMLForm:
|
|
210
|
-
hasOwnProperty:
|
|
211
|
-
hasOwnProp:
|
|
206
|
+
endsWith: cs,
|
|
207
|
+
toArray: us,
|
|
208
|
+
forEachEntry: fs,
|
|
209
|
+
matchAll: ds,
|
|
210
|
+
isHTMLForm: hs,
|
|
211
|
+
hasOwnProperty: Tr,
|
|
212
|
+
hasOwnProp: Tr,
|
|
212
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
213
214
|
reduceDescriptors: Dn,
|
|
214
|
-
freezeMethods:
|
|
215
|
-
toObjectSet:
|
|
216
|
-
toCamelCase:
|
|
217
|
-
noop:
|
|
218
|
-
toFiniteNumber:
|
|
215
|
+
freezeMethods: ys,
|
|
216
|
+
toObjectSet: gs,
|
|
217
|
+
toCamelCase: ps,
|
|
218
|
+
noop: bs,
|
|
219
|
+
toFiniteNumber: ws,
|
|
219
220
|
findKey: On,
|
|
220
221
|
global: Cn,
|
|
221
222
|
isContextDefined: Rn,
|
|
222
223
|
ALPHABET: xn,
|
|
223
|
-
generateString:
|
|
224
|
-
isSpecCompliantForm:
|
|
225
|
-
toJSONObject:
|
|
226
|
-
isAsyncFn:
|
|
227
|
-
isThenable:
|
|
224
|
+
generateString: Es,
|
|
225
|
+
isSpecCompliantForm: Ss,
|
|
226
|
+
toJSONObject: _s,
|
|
227
|
+
isAsyncFn: vs,
|
|
228
|
+
isThenable: Os
|
|
228
229
|
};
|
|
229
|
-
function
|
|
230
|
+
function F(e, t, r, n, o) {
|
|
230
231
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o);
|
|
231
232
|
}
|
|
232
|
-
h.inherits(
|
|
233
|
+
h.inherits(F, Error, {
|
|
233
234
|
toJSON: function() {
|
|
234
235
|
return {
|
|
235
236
|
// Standard
|
|
@@ -250,7 +251,7 @@ h.inherits($, Error, {
|
|
|
250
251
|
};
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
|
-
const Pn =
|
|
254
|
+
const Pn = F.prototype, jn = {};
|
|
254
255
|
[
|
|
255
256
|
"ERR_BAD_OPTION_VALUE",
|
|
256
257
|
"ERR_BAD_OPTION",
|
|
@@ -268,33 +269,33 @@ const Pn = $.prototype, jn = {};
|
|
|
268
269
|
].forEach((e) => {
|
|
269
270
|
jn[e] = { value: e };
|
|
270
271
|
});
|
|
271
|
-
Object.defineProperties(
|
|
272
|
+
Object.defineProperties(F, jn);
|
|
272
273
|
Object.defineProperty(Pn, "isAxiosError", { value: !0 });
|
|
273
|
-
|
|
274
|
+
F.from = (e, t, r, n, o, s) => {
|
|
274
275
|
const i = Object.create(Pn);
|
|
275
276
|
return h.toFlatObject(e, i, function(u) {
|
|
276
277
|
return u !== Error.prototype;
|
|
277
|
-
}, (c) => c !== "isAxiosError"),
|
|
278
|
+
}, (c) => c !== "isAxiosError"), F.call(i, e.message, t, r, n, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
278
279
|
};
|
|
279
|
-
const
|
|
280
|
+
const Cs = null;
|
|
280
281
|
function Lt(e) {
|
|
281
282
|
return h.isPlainObject(e) || h.isArray(e);
|
|
282
283
|
}
|
|
283
284
|
function Nn(e) {
|
|
284
285
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
285
286
|
}
|
|
286
|
-
function
|
|
287
|
+
function Lr(e, t, r) {
|
|
287
288
|
return e ? e.concat(t).map(function(o, s) {
|
|
288
289
|
return o = Nn(o), !r && s ? "[" + o + "]" : o;
|
|
289
290
|
}).join(r ? "." : "") : t;
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
+
function Rs(e) {
|
|
292
293
|
return h.isArray(e) && !e.some(Lt);
|
|
293
294
|
}
|
|
294
|
-
const
|
|
295
|
+
const Ds = h.toFlatObject(h, {}, null, function(t) {
|
|
295
296
|
return /^is[A-Z]/.test(t);
|
|
296
297
|
});
|
|
297
|
-
function
|
|
298
|
+
function Et(e, t, r) {
|
|
298
299
|
if (!h.isObject(e))
|
|
299
300
|
throw new TypeError("target must be an object");
|
|
300
301
|
t = t || new FormData(), r = h.toFlatObject(r, {
|
|
@@ -312,7 +313,7 @@ function wt(e, t, r) {
|
|
|
312
313
|
if (h.isDate(m))
|
|
313
314
|
return m.toISOString();
|
|
314
315
|
if (!u && h.isBlob(m))
|
|
315
|
-
throw new
|
|
316
|
+
throw new F("Blob is not supported. Use a Buffer instead.");
|
|
316
317
|
return h.isArrayBuffer(m) || h.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
317
318
|
}
|
|
318
319
|
function l(m, b, N) {
|
|
@@ -320,18 +321,18 @@ function wt(e, t, r) {
|
|
|
320
321
|
if (m && !N && typeof m == "object") {
|
|
321
322
|
if (h.endsWith(b, "{}"))
|
|
322
323
|
b = n ? b : b.slice(0, -2), m = JSON.stringify(m);
|
|
323
|
-
else if (h.isArray(m) &&
|
|
324
|
+
else if (h.isArray(m) && Rs(m) || (h.isFileList(m) || h.endsWith(b, "[]")) && (M = h.toArray(m)))
|
|
324
325
|
return b = Nn(b), M.forEach(function(P, A) {
|
|
325
326
|
!(h.isUndefined(P) || P === null) && t.append(
|
|
326
327
|
// eslint-disable-next-line no-nested-ternary
|
|
327
|
-
i === !0 ?
|
|
328
|
+
i === !0 ? Lr([b], A, s) : i === null ? b : b + "[]",
|
|
328
329
|
d(P)
|
|
329
330
|
);
|
|
330
331
|
}), !1;
|
|
331
332
|
}
|
|
332
|
-
return Lt(m) ? !0 : (t.append(
|
|
333
|
+
return Lt(m) ? !0 : (t.append(Lr(N, b, s), d(m)), !1);
|
|
333
334
|
}
|
|
334
|
-
const f = [], S = Object.assign(
|
|
335
|
+
const f = [], S = Object.assign(Ds, {
|
|
335
336
|
defaultVisitor: l,
|
|
336
337
|
convertValue: d,
|
|
337
338
|
isVisitable: Lt
|
|
@@ -370,7 +371,7 @@ function qr(e) {
|
|
|
370
371
|
});
|
|
371
372
|
}
|
|
372
373
|
function Sr(e, t) {
|
|
373
|
-
this._pairs = [], e &&
|
|
374
|
+
this._pairs = [], e && Et(e, this, t);
|
|
374
375
|
}
|
|
375
376
|
const In = Sr.prototype;
|
|
376
377
|
In.append = function(t, r) {
|
|
@@ -384,13 +385,13 @@ In.toString = function(t) {
|
|
|
384
385
|
return r(o[0]) + "=" + r(o[1]);
|
|
385
386
|
}, "").join("&");
|
|
386
387
|
};
|
|
387
|
-
function
|
|
388
|
+
function xs(e) {
|
|
388
389
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
389
390
|
}
|
|
390
391
|
function kn(e, t, r) {
|
|
391
392
|
if (!t)
|
|
392
393
|
return e;
|
|
393
|
-
const n = r && r.encode ||
|
|
394
|
+
const n = r && r.encode || xs, o = r && r.serialize;
|
|
394
395
|
let s;
|
|
395
396
|
if (o ? s = o(t, r) : s = h.isURLSearchParams(t) ? t.toString() : new Sr(t, r).toString(n), s) {
|
|
396
397
|
const i = e.indexOf("#");
|
|
@@ -456,35 +457,35 @@ const An = {
|
|
|
456
457
|
silentJSONParsing: !0,
|
|
457
458
|
forcedJSONParsing: !0,
|
|
458
459
|
clarifyTimeoutError: !1
|
|
459
|
-
},
|
|
460
|
+
}, Ps = typeof URLSearchParams < "u" ? URLSearchParams : Sr, js = typeof FormData < "u" ? FormData : null, Ns = typeof Blob < "u" ? Blob : null, Is = {
|
|
460
461
|
isBrowser: !0,
|
|
461
462
|
classes: {
|
|
462
|
-
URLSearchParams:
|
|
463
|
-
FormData:
|
|
464
|
-
Blob:
|
|
463
|
+
URLSearchParams: Ps,
|
|
464
|
+
FormData: js,
|
|
465
|
+
Blob: Ns
|
|
465
466
|
},
|
|
466
467
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
467
|
-
},
|
|
468
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
468
|
+
}, $n = typeof window < "u" && typeof document < "u", ks = ((e) => $n && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), As = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
469
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
469
470
|
__proto__: null,
|
|
470
|
-
hasBrowserEnv:
|
|
471
|
-
hasStandardBrowserEnv:
|
|
472
|
-
hasStandardBrowserWebWorkerEnv:
|
|
471
|
+
hasBrowserEnv: $n,
|
|
472
|
+
hasStandardBrowserEnv: ks,
|
|
473
|
+
hasStandardBrowserWebWorkerEnv: As
|
|
473
474
|
}, Symbol.toStringTag, { value: "Module" })), Se = {
|
|
474
|
-
|
|
475
|
-
...
|
|
475
|
+
...$s,
|
|
476
|
+
...Is
|
|
476
477
|
};
|
|
477
478
|
function Fs(e, t) {
|
|
478
|
-
return
|
|
479
|
+
return Et(e, new Se.classes.URLSearchParams(), Object.assign({
|
|
479
480
|
visitor: function(r, n, o, s) {
|
|
480
481
|
return Se.isNode && h.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
481
482
|
}
|
|
482
483
|
}, t));
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function Ms(e) {
|
|
485
486
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
+
function Us(e) {
|
|
488
489
|
const t = {}, r = Object.keys(e);
|
|
489
490
|
let n;
|
|
490
491
|
const o = r.length;
|
|
@@ -493,22 +494,22 @@ function Ms(e) {
|
|
|
493
494
|
s = r[n], t[s] = e[s];
|
|
494
495
|
return t;
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function Fn(e) {
|
|
497
498
|
function t(r, n, o, s) {
|
|
498
499
|
let i = r[s++];
|
|
499
500
|
if (i === "__proto__") return !0;
|
|
500
501
|
const c = Number.isFinite(+i), u = s >= r.length;
|
|
501
|
-
return i = !i && h.isArray(o) ? o.length : i, u ? (h.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !c) : ((!o[i] || !h.isObject(o[i])) && (o[i] = []), t(r, n, o[i], s) && h.isArray(o[i]) && (o[i] =
|
|
502
|
+
return i = !i && h.isArray(o) ? o.length : i, u ? (h.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !c) : ((!o[i] || !h.isObject(o[i])) && (o[i] = []), t(r, n, o[i], s) && h.isArray(o[i]) && (o[i] = Us(o[i])), !c);
|
|
502
503
|
}
|
|
503
504
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
|
504
505
|
const r = {};
|
|
505
506
|
return h.forEachEntry(e, (n, o) => {
|
|
506
|
-
t(
|
|
507
|
+
t(Ms(n), o, r, 0);
|
|
507
508
|
}), r;
|
|
508
509
|
}
|
|
509
510
|
return null;
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
+
function Bs(e, t, r) {
|
|
512
513
|
if (h.isString(e))
|
|
513
514
|
try {
|
|
514
515
|
return (t || JSON.parse)(e), h.trim(e);
|
|
@@ -518,13 +519,13 @@ function Us(e, t, r) {
|
|
|
518
519
|
}
|
|
519
520
|
return (0, JSON.stringify)(e);
|
|
520
521
|
}
|
|
521
|
-
const
|
|
522
|
+
const rt = {
|
|
522
523
|
transitional: An,
|
|
523
524
|
adapter: ["xhr", "http"],
|
|
524
525
|
transformRequest: [function(t, r) {
|
|
525
526
|
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, s = h.isObject(t);
|
|
526
527
|
if (s && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
|
527
|
-
return o ? JSON.stringify(
|
|
528
|
+
return o ? JSON.stringify(Fn(t)) : t;
|
|
528
529
|
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t))
|
|
529
530
|
return t;
|
|
530
531
|
if (h.isArrayBufferView(t))
|
|
@@ -537,24 +538,24 @@ const tt = {
|
|
|
537
538
|
return Fs(t, this.formSerializer).toString();
|
|
538
539
|
if ((c = h.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
539
540
|
const u = this.env && this.env.FormData;
|
|
540
|
-
return
|
|
541
|
+
return Et(
|
|
541
542
|
c ? { "files[]": t } : t,
|
|
542
543
|
u && new u(),
|
|
543
544
|
this.formSerializer
|
|
544
545
|
);
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
|
-
return s || o ? (r.setContentType("application/json", !1),
|
|
548
|
+
return s || o ? (r.setContentType("application/json", !1), Bs(t)) : t;
|
|
548
549
|
}],
|
|
549
550
|
transformResponse: [function(t) {
|
|
550
|
-
const r = this.transitional ||
|
|
551
|
+
const r = this.transitional || rt.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
551
552
|
if (t && h.isString(t) && (n && !this.responseType || o)) {
|
|
552
553
|
const i = !(r && r.silentJSONParsing) && o;
|
|
553
554
|
try {
|
|
554
555
|
return JSON.parse(t);
|
|
555
556
|
} catch (c) {
|
|
556
557
|
if (i)
|
|
557
|
-
throw c.name === "SyntaxError" ?
|
|
558
|
+
throw c.name === "SyntaxError" ? F.from(c, F.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
561
|
return t;
|
|
@@ -583,9 +584,9 @@ const tt = {
|
|
|
583
584
|
}
|
|
584
585
|
};
|
|
585
586
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
586
|
-
|
|
587
|
+
rt.headers[e] = {};
|
|
587
588
|
});
|
|
588
|
-
const
|
|
589
|
+
const zs = h.toObjectSet([
|
|
589
590
|
"age",
|
|
590
591
|
"authorization",
|
|
591
592
|
"content-length",
|
|
@@ -603,19 +604,19 @@ const Bs = h.toObjectSet([
|
|
|
603
604
|
"referer",
|
|
604
605
|
"retry-after",
|
|
605
606
|
"user-agent"
|
|
606
|
-
]),
|
|
607
|
+
]), Ts = (e) => {
|
|
607
608
|
const t = {};
|
|
608
609
|
let r, n, o;
|
|
609
610
|
return e && e.split(`
|
|
610
611
|
`).forEach(function(i) {
|
|
611
|
-
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] &&
|
|
612
|
+
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] && zs[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
612
613
|
}), t;
|
|
613
614
|
}, Hr = Symbol("internals");
|
|
614
615
|
function Ge(e) {
|
|
615
616
|
return e && String(e).trim().toLowerCase();
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
return e === !1 || e == null ? e : h.isArray(e) ? e.map(
|
|
618
|
+
function ht(e) {
|
|
619
|
+
return e === !1 || e == null ? e : h.isArray(e) ? e.map(ht) : String(e);
|
|
619
620
|
}
|
|
620
621
|
function Vs(e) {
|
|
621
622
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -625,7 +626,7 @@ function Vs(e) {
|
|
|
625
626
|
return t;
|
|
626
627
|
}
|
|
627
628
|
const Ls = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
628
|
-
function
|
|
629
|
+
function kt(e, t, r, n, o) {
|
|
629
630
|
if (h.isFunction(n))
|
|
630
631
|
return n.call(this, t, r);
|
|
631
632
|
if (o && (t = r), !!h.isString(t)) {
|
|
@@ -635,10 +636,10 @@ function It(e, t, r, n, o) {
|
|
|
635
636
|
return n.test(t);
|
|
636
637
|
}
|
|
637
638
|
}
|
|
638
|
-
function
|
|
639
|
+
function qs(e) {
|
|
639
640
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function Ws(e, t) {
|
|
642
643
|
const r = h.toCamelCase(" " + t);
|
|
643
644
|
["get", "set", "has"].forEach((n) => {
|
|
644
645
|
Object.defineProperty(e, n + r, {
|
|
@@ -660,10 +661,10 @@ class pe {
|
|
|
660
661
|
if (!l)
|
|
661
662
|
throw new Error("header name must be a non-empty string");
|
|
662
663
|
const f = h.findKey(o, l);
|
|
663
|
-
(!f || o[f] === void 0 || d === !0 || d === void 0 && o[f] !== !1) && (o[f || u] =
|
|
664
|
+
(!f || o[f] === void 0 || d === !0 || d === void 0 && o[f] !== !1) && (o[f || u] = ht(c));
|
|
664
665
|
}
|
|
665
666
|
const i = (c, u) => h.forEach(c, (d, l) => s(d, l, u));
|
|
666
|
-
return h.isPlainObject(t) || t instanceof this.constructor ? i(t, r) : h.isString(t) && (t = t.trim()) && !Ls(t) ? i(
|
|
667
|
+
return h.isPlainObject(t) || t instanceof this.constructor ? i(t, r) : h.isString(t) && (t = t.trim()) && !Ls(t) ? i(Ts(t), r) : t != null && s(r, t, n), this;
|
|
667
668
|
}
|
|
668
669
|
get(t, r) {
|
|
669
670
|
if (t = Ge(t), t) {
|
|
@@ -685,7 +686,7 @@ class pe {
|
|
|
685
686
|
has(t, r) {
|
|
686
687
|
if (t = Ge(t), t) {
|
|
687
688
|
const n = h.findKey(this, t);
|
|
688
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
689
|
+
return !!(n && this[n] !== void 0 && (!r || kt(this, this[n], n, r)));
|
|
689
690
|
}
|
|
690
691
|
return !1;
|
|
691
692
|
}
|
|
@@ -695,7 +696,7 @@ class pe {
|
|
|
695
696
|
function s(i) {
|
|
696
697
|
if (i = Ge(i), i) {
|
|
697
698
|
const c = h.findKey(n, i);
|
|
698
|
-
c && (!r ||
|
|
699
|
+
c && (!r || kt(n, n[c], c, r)) && (delete n[c], o = !0);
|
|
699
700
|
}
|
|
700
701
|
}
|
|
701
702
|
return h.isArray(t) ? t.forEach(s) : s(t), o;
|
|
@@ -705,7 +706,7 @@ class pe {
|
|
|
705
706
|
let n = r.length, o = !1;
|
|
706
707
|
for (; n--; ) {
|
|
707
708
|
const s = r[n];
|
|
708
|
-
(!t ||
|
|
709
|
+
(!t || kt(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
709
710
|
}
|
|
710
711
|
return o;
|
|
711
712
|
}
|
|
@@ -714,11 +715,11 @@ class pe {
|
|
|
714
715
|
return h.forEach(this, (o, s) => {
|
|
715
716
|
const i = h.findKey(n, s);
|
|
716
717
|
if (i) {
|
|
717
|
-
r[i] =
|
|
718
|
+
r[i] = ht(o), delete r[s];
|
|
718
719
|
return;
|
|
719
720
|
}
|
|
720
|
-
const c = t ?
|
|
721
|
-
c !== s && delete r[s], r[c] =
|
|
721
|
+
const c = t ? qs(s) : String(s).trim();
|
|
722
|
+
c !== s && delete r[s], r[c] = ht(o), n[c] = !0;
|
|
722
723
|
}), this;
|
|
723
724
|
}
|
|
724
725
|
concat(...t) {
|
|
@@ -753,7 +754,7 @@ class pe {
|
|
|
753
754
|
}).accessors, o = this.prototype;
|
|
754
755
|
function s(i) {
|
|
755
756
|
const c = Ge(i);
|
|
756
|
-
n[c] || (
|
|
757
|
+
n[c] || (Ws(o, i), n[c] = !0);
|
|
757
758
|
}
|
|
758
759
|
return h.isArray(t) ? t.forEach(s) : s(t), this;
|
|
759
760
|
}
|
|
@@ -769,8 +770,8 @@ h.reduceDescriptors(pe.prototype, ({ value: e }, t) => {
|
|
|
769
770
|
};
|
|
770
771
|
});
|
|
771
772
|
h.freezeMethods(pe);
|
|
772
|
-
function
|
|
773
|
-
const r = this ||
|
|
773
|
+
function At(e, t) {
|
|
774
|
+
const r = this || rt, n = t || r, o = pe.from(n.headers);
|
|
774
775
|
let s = n.data;
|
|
775
776
|
return h.forEach(e, function(c) {
|
|
776
777
|
s = c.call(r, s, o.normalize(), t ? t.status : void 0);
|
|
@@ -779,23 +780,23 @@ function kt(e, t) {
|
|
|
779
780
|
function Mn(e) {
|
|
780
781
|
return !!(e && e.__CANCEL__);
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
-
|
|
783
|
+
function nt(e, t, r) {
|
|
784
|
+
F.call(this, e ?? "canceled", F.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
784
785
|
}
|
|
785
|
-
h.inherits(
|
|
786
|
+
h.inherits(nt, F, {
|
|
786
787
|
__CANCEL__: !0
|
|
787
788
|
});
|
|
788
|
-
function
|
|
789
|
+
function Hs(e, t, r) {
|
|
789
790
|
const n = r.config.validateStatus;
|
|
790
|
-
!r.status || !n || n(r.status) ? e(r) : t(new
|
|
791
|
+
!r.status || !n || n(r.status) ? e(r) : t(new F(
|
|
791
792
|
"Request failed with status code " + r.status,
|
|
792
|
-
[
|
|
793
|
+
[F.ERR_BAD_REQUEST, F.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
793
794
|
r.config,
|
|
794
795
|
r.request,
|
|
795
796
|
r
|
|
796
797
|
));
|
|
797
798
|
}
|
|
798
|
-
const
|
|
799
|
+
const Gs = Se.hasStandardBrowserEnv ? (
|
|
799
800
|
// Standard browser envs support document.cookie
|
|
800
801
|
{
|
|
801
802
|
write(e, t, r, n, o, s) {
|
|
@@ -822,16 +823,16 @@ const Hs = Se.hasStandardBrowserEnv ? (
|
|
|
822
823
|
}
|
|
823
824
|
}
|
|
824
825
|
);
|
|
825
|
-
function
|
|
826
|
+
function Ys(e) {
|
|
826
827
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
827
828
|
}
|
|
828
|
-
function
|
|
829
|
+
function Js(e, t) {
|
|
829
830
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
830
831
|
}
|
|
831
832
|
function Un(e, t) {
|
|
832
|
-
return e && !
|
|
833
|
+
return e && !Ys(t) ? Js(e, t) : t;
|
|
833
834
|
}
|
|
834
|
-
const
|
|
835
|
+
const Ks = Se.hasStandardBrowserEnv ? (
|
|
835
836
|
// Standard browser envs have full support of the APIs needed to test
|
|
836
837
|
// whether the request URL is of the same origin as current location.
|
|
837
838
|
function() {
|
|
@@ -863,11 +864,11 @@ const Js = Se.hasStandardBrowserEnv ? (
|
|
|
863
864
|
};
|
|
864
865
|
}()
|
|
865
866
|
);
|
|
866
|
-
function
|
|
867
|
+
function Xs(e) {
|
|
867
868
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
868
869
|
return t && t[1] || "";
|
|
869
870
|
}
|
|
870
|
-
function
|
|
871
|
+
function Zs(e, t) {
|
|
871
872
|
e = e || 10;
|
|
872
873
|
const r = new Array(e), n = new Array(e);
|
|
873
874
|
let o = 0, s = 0, i;
|
|
@@ -885,7 +886,7 @@ function Xs(e, t) {
|
|
|
885
886
|
}
|
|
886
887
|
function Gr(e, t) {
|
|
887
888
|
let r = 0;
|
|
888
|
-
const n =
|
|
889
|
+
const n = Zs(50, 250);
|
|
889
890
|
return (o) => {
|
|
890
891
|
const s = o.loaded, i = o.lengthComputable ? o.total : void 0, c = s - r, u = n(c), d = s <= i;
|
|
891
892
|
r = s;
|
|
@@ -901,7 +902,7 @@ function Gr(e, t) {
|
|
|
901
902
|
l[t ? "download" : "upload"] = !0, e(l);
|
|
902
903
|
};
|
|
903
904
|
}
|
|
904
|
-
const
|
|
905
|
+
const Qs = typeof XMLHttpRequest < "u", ei = Qs && function(e) {
|
|
905
906
|
return new Promise(function(r, n) {
|
|
906
907
|
let o = e.data;
|
|
907
908
|
const s = pe.from(e.headers).normalize();
|
|
@@ -938,7 +939,7 @@ const Zs = typeof XMLHttpRequest < "u", Qs = Zs && function(e) {
|
|
|
938
939
|
config: e,
|
|
939
940
|
request: f
|
|
940
941
|
};
|
|
941
|
-
|
|
942
|
+
Hs(function(P) {
|
|
942
943
|
r(P), d();
|
|
943
944
|
}, function(P) {
|
|
944
945
|
n(P), d();
|
|
@@ -947,39 +948,39 @@ const Zs = typeof XMLHttpRequest < "u", Qs = Zs && function(e) {
|
|
|
947
948
|
if ("onloadend" in f ? f.onloadend = x : f.onreadystatechange = function() {
|
|
948
949
|
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
949
950
|
}, f.onabort = function() {
|
|
950
|
-
f && (n(new
|
|
951
|
+
f && (n(new F("Request aborted", F.ECONNABORTED, e, f)), f = null);
|
|
951
952
|
}, f.onerror = function() {
|
|
952
|
-
n(new
|
|
953
|
+
n(new F("Network Error", F.ERR_NETWORK, e, f)), f = null;
|
|
953
954
|
}, f.ontimeout = function() {
|
|
954
955
|
let N = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
955
956
|
const M = e.transitional || An;
|
|
956
|
-
e.timeoutErrorMessage && (N = e.timeoutErrorMessage), n(new
|
|
957
|
+
e.timeoutErrorMessage && (N = e.timeoutErrorMessage), n(new F(
|
|
957
958
|
N,
|
|
958
|
-
M.clarifyTimeoutError ?
|
|
959
|
+
M.clarifyTimeoutError ? F.ETIMEDOUT : F.ECONNABORTED,
|
|
959
960
|
e,
|
|
960
961
|
f
|
|
961
962
|
)), f = null;
|
|
962
|
-
}, Se.hasStandardBrowserEnv && (c && h.isFunction(c) && (c = c(e)), c || c !== !1 &&
|
|
963
|
-
const b = e.xsrfHeaderName && e.xsrfCookieName &&
|
|
963
|
+
}, Se.hasStandardBrowserEnv && (c && h.isFunction(c) && (c = c(e)), c || c !== !1 && Ks(S))) {
|
|
964
|
+
const b = e.xsrfHeaderName && e.xsrfCookieName && Gs.read(e.xsrfCookieName);
|
|
964
965
|
b && s.set(e.xsrfHeaderName, b);
|
|
965
966
|
}
|
|
966
967
|
o === void 0 && s.setContentType(null), "setRequestHeader" in f && h.forEach(s.toJSON(), function(N, M) {
|
|
967
968
|
f.setRequestHeader(M, N);
|
|
968
969
|
}), h.isUndefined(e.withCredentials) || (f.withCredentials = !!e.withCredentials), i && i !== "json" && (f.responseType = e.responseType), typeof e.onDownloadProgress == "function" && f.addEventListener("progress", Gr(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Gr(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (b) => {
|
|
969
|
-
f && (n(!b || b.type ? new
|
|
970
|
+
f && (n(!b || b.type ? new nt(null, e, f) : b), f.abort(), f = null);
|
|
970
971
|
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
971
|
-
const m =
|
|
972
|
+
const m = Xs(S);
|
|
972
973
|
if (m && Se.protocols.indexOf(m) === -1) {
|
|
973
|
-
n(new
|
|
974
|
+
n(new F("Unsupported protocol " + m + ":", F.ERR_BAD_REQUEST, e));
|
|
974
975
|
return;
|
|
975
976
|
}
|
|
976
977
|
f.send(o || null);
|
|
977
978
|
});
|
|
978
|
-
},
|
|
979
|
-
http:
|
|
980
|
-
xhr:
|
|
979
|
+
}, qt = {
|
|
980
|
+
http: Cs,
|
|
981
|
+
xhr: ei
|
|
981
982
|
};
|
|
982
|
-
h.forEach(
|
|
983
|
+
h.forEach(qt, (e, t) => {
|
|
983
984
|
if (e) {
|
|
984
985
|
try {
|
|
985
986
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -988,7 +989,7 @@ h.forEach(Tt, (e, t) => {
|
|
|
988
989
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
989
990
|
}
|
|
990
991
|
});
|
|
991
|
-
const Yr = (e) => `- ${e}`,
|
|
992
|
+
const Yr = (e) => `- ${e}`, ti = (e) => h.isFunction(e) || e === null || e === !1, Bn = {
|
|
992
993
|
getAdapter: (e) => {
|
|
993
994
|
e = h.isArray(e) ? e : [e];
|
|
994
995
|
const { length: t } = e;
|
|
@@ -997,8 +998,8 @@ const Yr = (e) => `- ${e}`, ei = (e) => h.isFunction(e) || e === null || e === !
|
|
|
997
998
|
for (let s = 0; s < t; s++) {
|
|
998
999
|
r = e[s];
|
|
999
1000
|
let i;
|
|
1000
|
-
if (n = r, !
|
|
1001
|
-
throw new
|
|
1001
|
+
if (n = r, !ti(r) && (n = qt[(i = String(r)).toLowerCase()], n === void 0))
|
|
1002
|
+
throw new F(`Unknown adapter '${i}'`);
|
|
1002
1003
|
if (n)
|
|
1003
1004
|
break;
|
|
1004
1005
|
o[i || "#" + s] = n;
|
|
@@ -1010,31 +1011,31 @@ const Yr = (e) => `- ${e}`, ei = (e) => h.isFunction(e) || e === null || e === !
|
|
|
1010
1011
|
let i = t ? s.length > 1 ? `since :
|
|
1011
1012
|
` + s.map(Yr).join(`
|
|
1012
1013
|
`) : " " + Yr(s[0]) : "as no adapter specified";
|
|
1013
|
-
throw new
|
|
1014
|
+
throw new F(
|
|
1014
1015
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1015
1016
|
"ERR_NOT_SUPPORT"
|
|
1016
1017
|
);
|
|
1017
1018
|
}
|
|
1018
1019
|
return n;
|
|
1019
1020
|
},
|
|
1020
|
-
adapters:
|
|
1021
|
+
adapters: qt
|
|
1021
1022
|
};
|
|
1022
|
-
function
|
|
1023
|
+
function $t(e) {
|
|
1023
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1024
|
-
throw new
|
|
1025
|
+
throw new nt(null, e);
|
|
1025
1026
|
}
|
|
1026
1027
|
function Jr(e) {
|
|
1027
|
-
return
|
|
1028
|
+
return $t(e), e.headers = pe.from(e.headers), e.data = At.call(
|
|
1028
1029
|
e,
|
|
1029
1030
|
e.transformRequest
|
|
1030
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bn.getAdapter(e.adapter ||
|
|
1031
|
-
return
|
|
1031
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bn.getAdapter(e.adapter || rt.adapter)(e).then(function(n) {
|
|
1032
|
+
return $t(e), n.data = At.call(
|
|
1032
1033
|
e,
|
|
1033
1034
|
e.transformResponse,
|
|
1034
1035
|
n
|
|
1035
1036
|
), n.headers = pe.from(n.headers), n;
|
|
1036
1037
|
}, function(n) {
|
|
1037
|
-
return Mn(n) || (
|
|
1038
|
+
return Mn(n) || ($t(e), n && n.response && (n.response.data = At.call(
|
|
1038
1039
|
e,
|
|
1039
1040
|
e.transformResponse,
|
|
1040
1041
|
n.response
|
|
@@ -1042,7 +1043,7 @@ function Jr(e) {
|
|
|
1042
1043
|
});
|
|
1043
1044
|
}
|
|
1044
1045
|
const Kr = (e) => e instanceof pe ? { ...e } : e;
|
|
1045
|
-
function
|
|
1046
|
+
function Ve(e, t) {
|
|
1046
1047
|
t = t || {};
|
|
1047
1048
|
const r = {};
|
|
1048
1049
|
function n(d, l, f) {
|
|
@@ -1119,9 +1120,9 @@ _r.transitional = function(t, r, n) {
|
|
|
1119
1120
|
}
|
|
1120
1121
|
return (s, i, c) => {
|
|
1121
1122
|
if (t === !1)
|
|
1122
|
-
throw new
|
|
1123
|
+
throw new F(
|
|
1123
1124
|
o(i, " has been removed" + (r ? " in " + r : "")),
|
|
1124
|
-
|
|
1125
|
+
F.ERR_DEPRECATED
|
|
1125
1126
|
);
|
|
1126
1127
|
return r && !Xr[i] && (Xr[i] = !0, console.warn(
|
|
1127
1128
|
o(
|
|
@@ -1131,9 +1132,9 @@ _r.transitional = function(t, r, n) {
|
|
|
1131
1132
|
)), t ? t(s, i, c) : !0;
|
|
1132
1133
|
};
|
|
1133
1134
|
};
|
|
1134
|
-
function
|
|
1135
|
+
function ri(e, t, r) {
|
|
1135
1136
|
if (typeof e != "object")
|
|
1136
|
-
throw new
|
|
1137
|
+
throw new F("options must be an object", F.ERR_BAD_OPTION_VALUE);
|
|
1137
1138
|
const n = Object.keys(e);
|
|
1138
1139
|
let o = n.length;
|
|
1139
1140
|
for (; o-- > 0; ) {
|
|
@@ -1141,18 +1142,18 @@ function ti(e, t, r) {
|
|
|
1141
1142
|
if (i) {
|
|
1142
1143
|
const c = e[s], u = c === void 0 || i(c, s, e);
|
|
1143
1144
|
if (u !== !0)
|
|
1144
|
-
throw new
|
|
1145
|
+
throw new F("option " + s + " must be " + u, F.ERR_BAD_OPTION_VALUE);
|
|
1145
1146
|
continue;
|
|
1146
1147
|
}
|
|
1147
1148
|
if (r !== !0)
|
|
1148
|
-
throw new
|
|
1149
|
+
throw new F("Unknown option " + s, F.ERR_BAD_OPTION);
|
|
1149
1150
|
}
|
|
1150
1151
|
}
|
|
1151
|
-
const
|
|
1152
|
-
assertOptions:
|
|
1152
|
+
const Wt = {
|
|
1153
|
+
assertOptions: ri,
|
|
1153
1154
|
validators: _r
|
|
1154
|
-
}, De =
|
|
1155
|
-
class
|
|
1155
|
+
}, De = Wt.validators;
|
|
1156
|
+
class Fe {
|
|
1156
1157
|
constructor(t) {
|
|
1157
1158
|
this.defaults = t, this.interceptors = {
|
|
1158
1159
|
request: new Wr(),
|
|
@@ -1182,15 +1183,15 @@ class $e {
|
|
|
1182
1183
|
}
|
|
1183
1184
|
}
|
|
1184
1185
|
_request(t, r) {
|
|
1185
|
-
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r =
|
|
1186
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Ve(this.defaults, r);
|
|
1186
1187
|
const { transitional: n, paramsSerializer: o, headers: s } = r;
|
|
1187
|
-
n !== void 0 &&
|
|
1188
|
+
n !== void 0 && Wt.assertOptions(n, {
|
|
1188
1189
|
silentJSONParsing: De.transitional(De.boolean),
|
|
1189
1190
|
forcedJSONParsing: De.transitional(De.boolean),
|
|
1190
1191
|
clarifyTimeoutError: De.transitional(De.boolean)
|
|
1191
1192
|
}, !1), o != null && (h.isFunction(o) ? r.paramsSerializer = {
|
|
1192
1193
|
serialize: o
|
|
1193
|
-
} :
|
|
1194
|
+
} : Wt.assertOptions(o, {
|
|
1194
1195
|
encode: De.function,
|
|
1195
1196
|
serialize: De.function
|
|
1196
1197
|
}, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1241,14 +1242,14 @@ class $e {
|
|
|
1241
1242
|
return l;
|
|
1242
1243
|
}
|
|
1243
1244
|
getUri(t) {
|
|
1244
|
-
t =
|
|
1245
|
+
t = Ve(this.defaults, t);
|
|
1245
1246
|
const r = Un(t.baseURL, t.url);
|
|
1246
1247
|
return kn(r, t.params, t.paramsSerializer);
|
|
1247
1248
|
}
|
|
1248
1249
|
}
|
|
1249
1250
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1250
|
-
|
|
1251
|
-
return this.request(
|
|
1251
|
+
Fe.prototype[t] = function(r, n) {
|
|
1252
|
+
return this.request(Ve(n || {}, {
|
|
1252
1253
|
method: t,
|
|
1253
1254
|
url: r,
|
|
1254
1255
|
data: (n || {}).data
|
|
@@ -1258,7 +1259,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1258
1259
|
h.forEach(["post", "put", "patch"], function(t) {
|
|
1259
1260
|
function r(n) {
|
|
1260
1261
|
return function(s, i, c) {
|
|
1261
|
-
return this.request(
|
|
1262
|
+
return this.request(Ve(c || {}, {
|
|
1262
1263
|
method: t,
|
|
1263
1264
|
headers: n ? {
|
|
1264
1265
|
"Content-Type": "multipart/form-data"
|
|
@@ -1268,7 +1269,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
1268
1269
|
}));
|
|
1269
1270
|
};
|
|
1270
1271
|
}
|
|
1271
|
-
|
|
1272
|
+
Fe.prototype[t] = r(), Fe.prototype[t + "Form"] = r(!0);
|
|
1272
1273
|
});
|
|
1273
1274
|
class vr {
|
|
1274
1275
|
constructor(t) {
|
|
@@ -1294,7 +1295,7 @@ class vr {
|
|
|
1294
1295
|
n.unsubscribe(s);
|
|
1295
1296
|
}, i;
|
|
1296
1297
|
}, t(function(s, i, c) {
|
|
1297
|
-
n.reason || (n.reason = new
|
|
1298
|
+
n.reason || (n.reason = new nt(s, i, c), r(n.reason));
|
|
1298
1299
|
});
|
|
1299
1300
|
}
|
|
1300
1301
|
/**
|
|
@@ -1337,15 +1338,15 @@ class vr {
|
|
|
1337
1338
|
};
|
|
1338
1339
|
}
|
|
1339
1340
|
}
|
|
1340
|
-
function
|
|
1341
|
+
function ni(e) {
|
|
1341
1342
|
return function(r) {
|
|
1342
1343
|
return e.apply(null, r);
|
|
1343
1344
|
};
|
|
1344
1345
|
}
|
|
1345
|
-
function
|
|
1346
|
+
function oi(e) {
|
|
1346
1347
|
return h.isObject(e) && e.isAxiosError === !0;
|
|
1347
1348
|
}
|
|
1348
|
-
const
|
|
1349
|
+
const Ht = {
|
|
1349
1350
|
Continue: 100,
|
|
1350
1351
|
SwitchingProtocols: 101,
|
|
1351
1352
|
Processing: 102,
|
|
@@ -1410,37 +1411,37 @@ const Wt = {
|
|
|
1410
1411
|
NotExtended: 510,
|
|
1411
1412
|
NetworkAuthenticationRequired: 511
|
|
1412
1413
|
};
|
|
1413
|
-
Object.entries(
|
|
1414
|
-
|
|
1414
|
+
Object.entries(Ht).forEach(([e, t]) => {
|
|
1415
|
+
Ht[t] = e;
|
|
1415
1416
|
});
|
|
1416
|
-
function
|
|
1417
|
-
const t = new
|
|
1418
|
-
return h.extend(r,
|
|
1419
|
-
return
|
|
1417
|
+
function Tn(e) {
|
|
1418
|
+
const t = new Fe(e), r = Sn(Fe.prototype.request, t);
|
|
1419
|
+
return h.extend(r, Fe.prototype, t, { allOwnKeys: !0 }), h.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1420
|
+
return Tn(Ve(e, o));
|
|
1420
1421
|
}, r;
|
|
1421
1422
|
}
|
|
1422
|
-
const H =
|
|
1423
|
-
H.Axios =
|
|
1424
|
-
H.CanceledError =
|
|
1423
|
+
const H = Tn(rt);
|
|
1424
|
+
H.Axios = Fe;
|
|
1425
|
+
H.CanceledError = nt;
|
|
1425
1426
|
H.CancelToken = vr;
|
|
1426
1427
|
H.isCancel = Mn;
|
|
1427
1428
|
H.VERSION = zn;
|
|
1428
|
-
H.toFormData =
|
|
1429
|
-
H.AxiosError =
|
|
1429
|
+
H.toFormData = Et;
|
|
1430
|
+
H.AxiosError = F;
|
|
1430
1431
|
H.Cancel = H.CanceledError;
|
|
1431
1432
|
H.all = function(t) {
|
|
1432
1433
|
return Promise.all(t);
|
|
1433
1434
|
};
|
|
1434
|
-
H.spread =
|
|
1435
|
-
H.isAxiosError =
|
|
1436
|
-
H.mergeConfig =
|
|
1435
|
+
H.spread = ni;
|
|
1436
|
+
H.isAxiosError = oi;
|
|
1437
|
+
H.mergeConfig = Ve;
|
|
1437
1438
|
H.AxiosHeaders = pe;
|
|
1438
|
-
H.formToJSON = (e) =>
|
|
1439
|
+
H.formToJSON = (e) => Fn(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
1439
1440
|
H.getAdapter = Bn.getAdapter;
|
|
1440
|
-
H.HttpStatusCode =
|
|
1441
|
+
H.HttpStatusCode = Ht;
|
|
1441
1442
|
H.default = H;
|
|
1442
1443
|
const Ye = () => localStorage.getItem("token");
|
|
1443
|
-
async function
|
|
1444
|
+
async function G(e, t, r, n = !0) {
|
|
1444
1445
|
let o;
|
|
1445
1446
|
return r === "get" ? o = H.get(e, {
|
|
1446
1447
|
params: t,
|
|
@@ -1455,42 +1456,67 @@ async function K(e, t, r, n = !0) {
|
|
|
1455
1456
|
});
|
|
1456
1457
|
});
|
|
1457
1458
|
}
|
|
1458
|
-
let
|
|
1459
|
-
const
|
|
1460
|
-
function
|
|
1461
|
-
if (!
|
|
1459
|
+
let ct;
|
|
1460
|
+
const si = new Uint8Array(16);
|
|
1461
|
+
function ii() {
|
|
1462
|
+
if (!ct && (ct = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ct))
|
|
1462
1463
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1463
|
-
return
|
|
1464
|
+
return ct(si);
|
|
1464
1465
|
}
|
|
1465
1466
|
const ne = [];
|
|
1466
1467
|
for (let e = 0; e < 256; ++e)
|
|
1467
1468
|
ne.push((e + 256).toString(16).slice(1));
|
|
1468
|
-
function
|
|
1469
|
+
function ai(e, t = 0) {
|
|
1469
1470
|
return ne[e[t + 0]] + ne[e[t + 1]] + ne[e[t + 2]] + ne[e[t + 3]] + "-" + ne[e[t + 4]] + ne[e[t + 5]] + "-" + ne[e[t + 6]] + ne[e[t + 7]] + "-" + ne[e[t + 8]] + ne[e[t + 9]] + "-" + ne[e[t + 10]] + ne[e[t + 11]] + ne[e[t + 12]] + ne[e[t + 13]] + ne[e[t + 14]] + ne[e[t + 15]];
|
|
1470
1471
|
}
|
|
1471
|
-
const
|
|
1472
|
-
randomUUID:
|
|
1472
|
+
const ci = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Zr = {
|
|
1473
|
+
randomUUID: ci
|
|
1473
1474
|
};
|
|
1474
|
-
function
|
|
1475
|
+
function ui(e, t, r) {
|
|
1475
1476
|
if (Zr.randomUUID && !t && !e)
|
|
1476
1477
|
return Zr.randomUUID();
|
|
1477
1478
|
e = e || {};
|
|
1478
|
-
const n = e.random || (e.rng ||
|
|
1479
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
1479
|
+
const n = e.random || (e.rng || ii)();
|
|
1480
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, ai(n);
|
|
1480
1481
|
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1482
|
+
var Ze;
|
|
1483
|
+
(function(e) {
|
|
1484
|
+
e[e.LocalPath = 0] = "LocalPath", e[e.TencentCos = 1] = "TencentCos", e[e.ObjectUrl = 2] = "ObjectUrl", e[e.AliYunOss = 3] = "AliYunOss";
|
|
1485
|
+
})(Ze || (Ze = {}));
|
|
1486
|
+
var Gt;
|
|
1487
|
+
(function(e) {
|
|
1488
|
+
e[e.TaskAction = 0] = "TaskAction", e[e.WorkAction = 1] = "WorkAction", e[e.MqttSend = 3] = "MqttSend", e[e.ActionClose = 4] = "ActionClose", e[e.MqttReconnect = 5] = "MqttReconnect", e[e.NavigateTo = 7] = "NavigateTo", e[e.ExtensionBlobConvert = 8] = "ExtensionBlobConvert", e[e.ExtensionGetId = 9] = "ExtensionGetId", e[e.OpenTool = 10] = "OpenTool", e[e.DownloadFile = 11] = "DownloadFile";
|
|
1489
|
+
})(Gt || (Gt = {}));
|
|
1490
|
+
var Yt;
|
|
1491
|
+
(function(e) {
|
|
1492
|
+
e[e.TaskAction = 0] = "TaskAction", e[e.NavigateTo = 3] = "NavigateTo", e[e.OpenTool = 6] = "OpenTool", e[e.MqttBack = 1] = "MqttBack", e[e.ExtensionBlobUrl = 4] = "ExtensionBlobUrl", e[e.ExtensionId = 5] = "ExtensionId", e[e.UrlCallback = 7] = "UrlCallback", e[e.DownloadFileRes = 8] = "DownloadFileRes";
|
|
1493
|
+
})(Yt || (Yt = {}));
|
|
1494
|
+
var Jt;
|
|
1495
|
+
(function(e) {
|
|
1496
|
+
e.Waiting = "等待", e.Running = "进行", e.Fail = "失败", e.Success = "成功", e.Canceled = "取消";
|
|
1497
|
+
})(Jt || (Jt = {}));
|
|
1498
|
+
var Kt;
|
|
1499
|
+
(function(e) {
|
|
1500
|
+
e[e.Start = 1] = "Start", e[e.Progress = 2] = "Progress", e[e.Success = 3] = "Success", e[e.Error = 4] = "Error", e[e.DetailAppend = 5] = "DetailAppend", e[e.DetailSet = 6] = "DetailSet";
|
|
1501
|
+
})(Kt || (Kt = {}));
|
|
1502
|
+
var Xt;
|
|
1503
|
+
(function(e) {
|
|
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
|
+
})(Xt || (Xt = {}));
|
|
1506
|
+
const li = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B", fi = (e, t) => {
|
|
1507
|
+
let r = e.path, n = Ze.LocalPath;
|
|
1508
|
+
return (t || !r) && (r = URL.createObjectURL(e), n = Ze.ObjectUrl), {
|
|
1484
1509
|
path: r,
|
|
1485
1510
|
name: e.name,
|
|
1511
|
+
source: n,
|
|
1486
1512
|
ext: e.name.split(".").pop(),
|
|
1487
1513
|
size: e.size,
|
|
1488
|
-
uid:
|
|
1514
|
+
uid: ui()
|
|
1489
1515
|
};
|
|
1490
|
-
},
|
|
1516
|
+
}, di = (e) => new Date(e * 1e3).toISOString().substring(11, 19), hi = async () => {
|
|
1491
1517
|
const e = await Hn(), t = e.token;
|
|
1492
1518
|
return {
|
|
1493
|
-
cos: new
|
|
1519
|
+
cos: new To({
|
|
1494
1520
|
getAuthorization: function(r, n) {
|
|
1495
1521
|
n({
|
|
1496
1522
|
TmpSecretId: t.TmpSecretId,
|
|
@@ -1506,61 +1532,51 @@ const ui = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1506
1532
|
bucket: e.bucket,
|
|
1507
1533
|
region: e.region
|
|
1508
1534
|
};
|
|
1509
|
-
},
|
|
1535
|
+
}, pi = async () => {
|
|
1536
|
+
const e = await ji(), t = e.token;
|
|
1537
|
+
return {
|
|
1538
|
+
oss: new Vo({
|
|
1539
|
+
region: e.region,
|
|
1540
|
+
accessKeyId: t.TmpSecretId,
|
|
1541
|
+
accessKeySecret: t.TmpSecretKey,
|
|
1542
|
+
stsToken: t.Token,
|
|
1543
|
+
bucket: e.bucket
|
|
1544
|
+
}),
|
|
1545
|
+
path: e.path,
|
|
1546
|
+
bucket: e.bucket,
|
|
1547
|
+
region: e.region
|
|
1548
|
+
};
|
|
1549
|
+
}, Vn = (e) => {
|
|
1510
1550
|
const t = [];
|
|
1511
1551
|
for (const r in e) {
|
|
1512
1552
|
const n = e[r];
|
|
1513
1553
|
n && t.push(`${r}=${n}`);
|
|
1514
1554
|
}
|
|
1515
1555
|
return t.join("&");
|
|
1516
|
-
},
|
|
1556
|
+
}, mi = /\$(.*?)\$/g, yi = (e, t) => {
|
|
1517
1557
|
let r;
|
|
1518
1558
|
const n = [];
|
|
1519
|
-
for (; (r =
|
|
1559
|
+
for (; (r = mi.exec(e)) !== null; )
|
|
1520
1560
|
r && r.length > 0 && n.push(r[1]);
|
|
1521
1561
|
return n.map((o) => {
|
|
1522
1562
|
const s = t[o];
|
|
1523
1563
|
s && (e = e.replace(`$${o}$`, o.split(".").length == 2 ? s[o.split(".")[1]] : s));
|
|
1524
1564
|
}), e;
|
|
1525
|
-
},
|
|
1565
|
+
}, gi = (e) => Object.keys(e).filter((t) => e[t]).map((t) => {
|
|
1526
1566
|
let r = e[t];
|
|
1527
1567
|
return ["string", "number", "boolean"].includes(typeof r) ? r = String(r) : r = JSON.stringify(r), `${t}=${encodeURIComponent(r)}`;
|
|
1528
|
-
}).join("&"),
|
|
1568
|
+
}).join("&"), bi = (e) => new Promise((t, r) => {
|
|
1529
1569
|
const n = new XMLHttpRequest();
|
|
1530
1570
|
n.open("get", e), n.responseType = "blob", n.send(), n.onload = function() {
|
|
1531
|
-
(this.status === 200 || this.status === 304) && (
|
|
1571
|
+
(this.status === 200 || this.status === 304) && (Ln(URL.createObjectURL(this.response)), t());
|
|
1532
1572
|
}, n.onerror = function() {
|
|
1533
1573
|
r("下载失败,请在新窗口打开");
|
|
1534
1574
|
};
|
|
1535
|
-
}),
|
|
1575
|
+
}), Ln = (e, t) => {
|
|
1536
1576
|
var n;
|
|
1537
1577
|
const r = document.createElement("a");
|
|
1538
1578
|
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);
|
|
1539
|
-
},
|
|
1540
|
-
var Ht;
|
|
1541
|
-
(function(e) {
|
|
1542
|
-
e[e.Local = 0] = "Local", e[e.Cos = 1] = "Cos";
|
|
1543
|
-
})(Ht || (Ht = {}));
|
|
1544
|
-
var Gt;
|
|
1545
|
-
(function(e) {
|
|
1546
|
-
e[e.TaskAction = 0] = "TaskAction", e[e.WorkAction = 1] = "WorkAction", e[e.MqttSend = 3] = "MqttSend", e[e.ActionClose = 4] = "ActionClose", e[e.MqttReconnect = 5] = "MqttReconnect", e[e.NavigateTo = 7] = "NavigateTo", e[e.ExtensionBlobConvert = 8] = "ExtensionBlobConvert", e[e.ExtensionGetId = 9] = "ExtensionGetId", e[e.OpenTool = 10] = "OpenTool", e[e.DownloadFile = 11] = "DownloadFile";
|
|
1547
|
-
})(Gt || (Gt = {}));
|
|
1548
|
-
var Yt;
|
|
1549
|
-
(function(e) {
|
|
1550
|
-
e[e.TaskAction = 0] = "TaskAction", e[e.NavigateTo = 3] = "NavigateTo", e[e.OpenTool = 6] = "OpenTool", e[e.MqttBack = 1] = "MqttBack", e[e.ExtensionBlobUrl = 4] = "ExtensionBlobUrl", e[e.ExtensionId = 5] = "ExtensionId", e[e.UrlCallback = 7] = "UrlCallback", e[e.DownloadFileRes = 8] = "DownloadFileRes";
|
|
1551
|
-
})(Yt || (Yt = {}));
|
|
1552
|
-
var Jt;
|
|
1553
|
-
(function(e) {
|
|
1554
|
-
e.Waiting = "等待", e.Running = "进行", e.Fail = "失败", e.Success = "成功", e.Canceled = "取消";
|
|
1555
|
-
})(Jt || (Jt = {}));
|
|
1556
|
-
var Kt;
|
|
1557
|
-
(function(e) {
|
|
1558
|
-
e[e.Start = 1] = "Start", e[e.Progress = 2] = "Progress", e[e.Success = 3] = "Success", e[e.Error = 4] = "Error", e[e.DetailAppend = 5] = "DetailAppend", e[e.DetailSet = 6] = "DetailSet";
|
|
1559
|
-
})(Kt || (Kt = {}));
|
|
1560
|
-
var Xt;
|
|
1561
|
-
(function(e) {
|
|
1562
|
-
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";
|
|
1563
|
-
})(Xt || (Xt = {}));
|
|
1579
|
+
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", wi = (e) => G(`${Y}/common/user/login`, e, "post"), Ei = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), Si = (e) => G(`${Y}/common/user/register`, e, "post"), _i = (e) => G(`${Y}/common/user/reset/password`, e, "post"), qn = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Wn = () => G(`${Y}/user/user/info`, {}, "get", !1), vi = (e) => G(`${Y}/user/user/info`, e, "put"), Oi = (e) => G(`${Y}/user/point/deducting`, e, "post"), Ci = (e) => G(`${Y}/common/tool/list?${Vn(e)}`, {}, "get"), Ri = () => G(`${Y}/common/tool/all`, {}, "get"), Di = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), xi = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Pi = () => G(`${Y}/common/tool/tags`, {}, "get"), Hn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), ji = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), Ni = (e) => G(`${Y}/user/task`, e, "post"), Ii = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Gn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), ki = () => G(`${Y}/common/material/tags`, {}, "get"), Ai = (e) => G(`${Y}/user/material/${e}`, {}, "get"), $i = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), xc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method);
|
|
1564
1580
|
var Zt;
|
|
1565
1581
|
(function(e) {
|
|
1566
1582
|
e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow";
|
|
@@ -1589,8 +1605,8 @@ var se;
|
|
|
1589
1605
|
(function(e) {
|
|
1590
1606
|
e[e.Input = 0] = "Input", e[e.Select = 1] = "Select", e[e.TextArea = 2] = "TextArea", e[e.FileUpload = 3] = "FileUpload", e[e.Slider = 4] = "Slider", e[e.Audio = 5] = "Audio", e[e.Number = 6] = "Number", e[e.ImageList = 7] = "ImageList", e[e.Image = 8] = "Image", e[e.Alert = 9] = "Alert", e[e.Video = 10] = "Video", e[e.MarkDown = 11] = "MarkDown";
|
|
1591
1607
|
})(se || (se = {}));
|
|
1592
|
-
var
|
|
1593
|
-
function
|
|
1608
|
+
var Fi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1609
|
+
function Mi(e) {
|
|
1594
1610
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1595
1611
|
}
|
|
1596
1612
|
var nr = { exports: {} }, Je = {};
|
|
@@ -1604,7 +1620,7 @@ var nr = { exports: {} }, Je = {};
|
|
|
1604
1620
|
* LICENSE file in the root directory of this source tree.
|
|
1605
1621
|
*/
|
|
1606
1622
|
var Qr;
|
|
1607
|
-
function
|
|
1623
|
+
function Ui() {
|
|
1608
1624
|
if (Qr) return Je;
|
|
1609
1625
|
Qr = 1;
|
|
1610
1626
|
var e = En, 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 };
|
|
@@ -1628,7 +1644,7 @@ var Ke = {};
|
|
|
1628
1644
|
* LICENSE file in the root directory of this source tree.
|
|
1629
1645
|
*/
|
|
1630
1646
|
var en;
|
|
1631
|
-
function
|
|
1647
|
+
function Bi() {
|
|
1632
1648
|
return en || (en = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1633
1649
|
var e = En, 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"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
|
|
1634
1650
|
function N(a) {
|
|
@@ -1649,16 +1665,16 @@ function $i() {
|
|
|
1649
1665
|
{
|
|
1650
1666
|
var C = M.ReactDebugCurrentFrame, z = C.getStackAddendum();
|
|
1651
1667
|
z !== "" && (p += "%s", g = g.concat([z]));
|
|
1652
|
-
var
|
|
1653
|
-
return String(
|
|
1668
|
+
var L = g.map(function($) {
|
|
1669
|
+
return String($);
|
|
1654
1670
|
});
|
|
1655
|
-
|
|
1671
|
+
L.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, L);
|
|
1656
1672
|
}
|
|
1657
1673
|
}
|
|
1658
|
-
var A = !1,
|
|
1674
|
+
var A = !1, V = !1, B = !1, Z = !1, k = !1, ee;
|
|
1659
1675
|
ee = Symbol.for("react.module.reference");
|
|
1660
1676
|
function q(a) {
|
|
1661
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || k || a === o || a === d || a === l || Z || a === x || A ||
|
|
1677
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || k || a === o || a === d || a === l || Z || a === x || A || V || B || typeof a == "object" && a !== null && (a.$$typeof === S || a.$$typeof === f || a.$$typeof === i || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
|
|
1662
1678
|
// types supported by any Flight configuration anywhere since
|
|
1663
1679
|
// we don't know which Flight build this will end up being used
|
|
1664
1680
|
// with.
|
|
@@ -1709,9 +1725,9 @@ function $i() {
|
|
|
1709
1725
|
var C = a.displayName || null;
|
|
1710
1726
|
return C !== null ? C : fe(a.type) || "Memo";
|
|
1711
1727
|
case S: {
|
|
1712
|
-
var z = a,
|
|
1728
|
+
var z = a, L = z._payload, $ = z._init;
|
|
1713
1729
|
try {
|
|
1714
|
-
return fe(
|
|
1730
|
+
return fe($(L));
|
|
1715
1731
|
} catch {
|
|
1716
1732
|
return null;
|
|
1717
1733
|
}
|
|
@@ -1719,18 +1735,18 @@ function $i() {
|
|
|
1719
1735
|
}
|
|
1720
1736
|
return null;
|
|
1721
1737
|
}
|
|
1722
|
-
var O = Object.assign, w = 0, y, v, E, R, D,
|
|
1723
|
-
function
|
|
1738
|
+
var O = Object.assign, w = 0, y, v, E, R, D, T, W;
|
|
1739
|
+
function J() {
|
|
1724
1740
|
}
|
|
1725
|
-
|
|
1741
|
+
J.__reactDisabledLog = !0;
|
|
1726
1742
|
function re() {
|
|
1727
1743
|
{
|
|
1728
1744
|
if (w === 0) {
|
|
1729
|
-
y = console.log, v = console.info, E = console.warn, R = console.error, D = console.group,
|
|
1745
|
+
y = console.log, v = console.info, E = console.warn, R = console.error, D = console.group, T = console.groupCollapsed, W = console.groupEnd;
|
|
1730
1746
|
var a = {
|
|
1731
1747
|
configurable: !0,
|
|
1732
1748
|
enumerable: !0,
|
|
1733
|
-
value:
|
|
1749
|
+
value: J,
|
|
1734
1750
|
writable: !0
|
|
1735
1751
|
};
|
|
1736
1752
|
Object.defineProperties(console, {
|
|
@@ -1771,7 +1787,7 @@ function $i() {
|
|
|
1771
1787
|
value: D
|
|
1772
1788
|
}),
|
|
1773
1789
|
groupCollapsed: O({}, a, {
|
|
1774
|
-
value:
|
|
1790
|
+
value: T
|
|
1775
1791
|
}),
|
|
1776
1792
|
groupEnd: O({}, a, {
|
|
1777
1793
|
value: W
|
|
@@ -1812,31 +1828,31 @@ function $i() {
|
|
|
1812
1828
|
ge = !0;
|
|
1813
1829
|
var z = Error.prepareStackTrace;
|
|
1814
1830
|
Error.prepareStackTrace = void 0;
|
|
1815
|
-
var
|
|
1816
|
-
|
|
1831
|
+
var L;
|
|
1832
|
+
L = be.current, be.current = null, re();
|
|
1817
1833
|
try {
|
|
1818
1834
|
if (p) {
|
|
1819
|
-
var
|
|
1835
|
+
var $ = function() {
|
|
1820
1836
|
throw Error();
|
|
1821
1837
|
};
|
|
1822
|
-
if (Object.defineProperty(
|
|
1838
|
+
if (Object.defineProperty($.prototype, "props", {
|
|
1823
1839
|
set: function() {
|
|
1824
1840
|
throw Error();
|
|
1825
1841
|
}
|
|
1826
1842
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1827
1843
|
try {
|
|
1828
|
-
Reflect.construct(
|
|
1844
|
+
Reflect.construct($, []);
|
|
1829
1845
|
} catch (ve) {
|
|
1830
1846
|
C = ve;
|
|
1831
1847
|
}
|
|
1832
|
-
Reflect.construct(a, [],
|
|
1848
|
+
Reflect.construct(a, [], $);
|
|
1833
1849
|
} else {
|
|
1834
1850
|
try {
|
|
1835
|
-
|
|
1851
|
+
$.call();
|
|
1836
1852
|
} catch (ve) {
|
|
1837
1853
|
C = ve;
|
|
1838
1854
|
}
|
|
1839
|
-
a.call(
|
|
1855
|
+
a.call($.prototype);
|
|
1840
1856
|
}
|
|
1841
1857
|
} else {
|
|
1842
1858
|
try {
|
|
@@ -1850,25 +1866,25 @@ function $i() {
|
|
|
1850
1866
|
if (ve && C && typeof ve.stack == "string") {
|
|
1851
1867
|
for (var I = ve.stack.split(`
|
|
1852
1868
|
`), oe = C.stack.split(`
|
|
1853
|
-
`),
|
|
1869
|
+
`), K = I.length - 1, Q = oe.length - 1; K >= 1 && Q >= 0 && I[K] !== oe[Q]; )
|
|
1854
1870
|
Q--;
|
|
1855
|
-
for (;
|
|
1856
|
-
if (I[
|
|
1857
|
-
if (
|
|
1871
|
+
for (; K >= 1 && Q >= 0; K--, Q--)
|
|
1872
|
+
if (I[K] !== oe[Q]) {
|
|
1873
|
+
if (K !== 1 || Q !== 1)
|
|
1858
1874
|
do
|
|
1859
|
-
if (
|
|
1875
|
+
if (K--, Q--, Q < 0 || I[K] !== oe[Q]) {
|
|
1860
1876
|
var de = `
|
|
1861
|
-
` + I[
|
|
1877
|
+
` + I[K].replace(" at new ", " at ");
|
|
1862
1878
|
return a.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", a.displayName)), typeof a == "function" && te.set(a, de), de;
|
|
1863
1879
|
}
|
|
1864
|
-
while (
|
|
1880
|
+
while (K >= 1 && Q >= 0);
|
|
1865
1881
|
break;
|
|
1866
1882
|
}
|
|
1867
1883
|
}
|
|
1868
1884
|
} finally {
|
|
1869
|
-
ge = !1, be.current =
|
|
1885
|
+
ge = !1, be.current = L, ae(), Error.prepareStackTrace = z;
|
|
1870
1886
|
}
|
|
1871
|
-
var
|
|
1887
|
+
var Te = a ? a.displayName || a.name : "", zr = Te ? we(Te) : "";
|
|
1872
1888
|
return typeof a == "function" && te.set(a, zr), zr;
|
|
1873
1889
|
}
|
|
1874
1890
|
function Be(a, p, g) {
|
|
@@ -1878,7 +1894,7 @@ function $i() {
|
|
|
1878
1894
|
var p = a.prototype;
|
|
1879
1895
|
return !!(p && p.isReactComponent);
|
|
1880
1896
|
}
|
|
1881
|
-
function
|
|
1897
|
+
function st(a, p, g) {
|
|
1882
1898
|
if (a == null)
|
|
1883
1899
|
return "";
|
|
1884
1900
|
if (typeof a == "function")
|
|
@@ -1896,46 +1912,46 @@ function $i() {
|
|
|
1896
1912
|
case u:
|
|
1897
1913
|
return Be(a.render);
|
|
1898
1914
|
case f:
|
|
1899
|
-
return
|
|
1915
|
+
return st(a.type, p, g);
|
|
1900
1916
|
case S: {
|
|
1901
|
-
var C = a, z = C._payload,
|
|
1917
|
+
var C = a, z = C._payload, L = C._init;
|
|
1902
1918
|
try {
|
|
1903
|
-
return
|
|
1919
|
+
return st(L(z), p, g);
|
|
1904
1920
|
} catch {
|
|
1905
1921
|
}
|
|
1906
1922
|
}
|
|
1907
1923
|
}
|
|
1908
1924
|
return "";
|
|
1909
1925
|
}
|
|
1910
|
-
var
|
|
1911
|
-
function
|
|
1926
|
+
var it = Object.prototype.hasOwnProperty, xr = {}, Pr = M.ReactDebugCurrentFrame;
|
|
1927
|
+
function at(a) {
|
|
1912
1928
|
if (a) {
|
|
1913
|
-
var p = a._owner, g =
|
|
1929
|
+
var p = a._owner, g = st(a.type, a._source, p ? p.type : null);
|
|
1914
1930
|
Pr.setExtraStackFrame(g);
|
|
1915
1931
|
} else
|
|
1916
1932
|
Pr.setExtraStackFrame(null);
|
|
1917
1933
|
}
|
|
1918
1934
|
function go(a, p, g, C, z) {
|
|
1919
1935
|
{
|
|
1920
|
-
var
|
|
1921
|
-
for (var
|
|
1922
|
-
if (
|
|
1936
|
+
var L = Function.call.bind(it);
|
|
1937
|
+
for (var $ in a)
|
|
1938
|
+
if (L(a, $)) {
|
|
1923
1939
|
var I = void 0;
|
|
1924
1940
|
try {
|
|
1925
|
-
if (typeof a[
|
|
1926
|
-
var oe = Error((C || "React class") + ": " + g + " type `" +
|
|
1941
|
+
if (typeof a[$] != "function") {
|
|
1942
|
+
var oe = Error((C || "React class") + ": " + g + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1927
1943
|
throw oe.name = "Invariant Violation", oe;
|
|
1928
1944
|
}
|
|
1929
|
-
I = a[
|
|
1930
|
-
} catch (
|
|
1931
|
-
I =
|
|
1945
|
+
I = a[$](p, $, C, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1946
|
+
} catch (K) {
|
|
1947
|
+
I = K;
|
|
1932
1948
|
}
|
|
1933
|
-
I && !(I instanceof Error) && (
|
|
1949
|
+
I && !(I instanceof Error) && (at(z), j("%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).", C || "React class", g, $, typeof I), at(null)), I instanceof Error && !(I.message in xr) && (xr[I.message] = !0, at(z), j("Failed %s type: %s", g, I.message), at(null));
|
|
1934
1950
|
}
|
|
1935
1951
|
}
|
|
1936
1952
|
}
|
|
1937
1953
|
var bo = Array.isArray;
|
|
1938
|
-
function
|
|
1954
|
+
function Rt(a) {
|
|
1939
1955
|
return bo(a);
|
|
1940
1956
|
}
|
|
1941
1957
|
function wo(a) {
|
|
@@ -1963,10 +1979,10 @@ function $i() {
|
|
|
1963
1979
|
ref: !0,
|
|
1964
1980
|
__self: !0,
|
|
1965
1981
|
__source: !0
|
|
1966
|
-
}, Ir, kr,
|
|
1967
|
-
|
|
1982
|
+
}, Ir, kr, Dt;
|
|
1983
|
+
Dt = {};
|
|
1968
1984
|
function _o(a) {
|
|
1969
|
-
if (
|
|
1985
|
+
if (it.call(a, "ref")) {
|
|
1970
1986
|
var p = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
1971
1987
|
if (p && p.isReactWarning)
|
|
1972
1988
|
return !1;
|
|
@@ -1974,7 +1990,7 @@ function $i() {
|
|
|
1974
1990
|
return a.ref !== void 0;
|
|
1975
1991
|
}
|
|
1976
1992
|
function vo(a) {
|
|
1977
|
-
if (
|
|
1993
|
+
if (it.call(a, "key")) {
|
|
1978
1994
|
var p = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
1979
1995
|
if (p && p.isReactWarning)
|
|
1980
1996
|
return !1;
|
|
@@ -1984,7 +2000,7 @@ function $i() {
|
|
|
1984
2000
|
function Oo(a, p) {
|
|
1985
2001
|
if (typeof a.ref == "string" && He.current && p && He.current.stateNode !== p) {
|
|
1986
2002
|
var g = fe(He.current.type);
|
|
1987
|
-
|
|
2003
|
+
Dt[g] || (j('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', fe(He.current.type), a.ref), Dt[g] = !0);
|
|
1988
2004
|
}
|
|
1989
2005
|
}
|
|
1990
2006
|
function Co(a, p) {
|
|
@@ -2009,7 +2025,7 @@ function $i() {
|
|
|
2009
2025
|
});
|
|
2010
2026
|
}
|
|
2011
2027
|
}
|
|
2012
|
-
var Do = function(a, p, g, C, z,
|
|
2028
|
+
var Do = function(a, p, g, C, z, L, $) {
|
|
2013
2029
|
var I = {
|
|
2014
2030
|
// This tag allows us to uniquely identify this as a React Element
|
|
2015
2031
|
$$typeof: t,
|
|
@@ -2017,9 +2033,9 @@ function $i() {
|
|
|
2017
2033
|
type: a,
|
|
2018
2034
|
key: p,
|
|
2019
2035
|
ref: g,
|
|
2020
|
-
props:
|
|
2036
|
+
props: $,
|
|
2021
2037
|
// Record the component responsible for creating this element.
|
|
2022
|
-
_owner:
|
|
2038
|
+
_owner: L
|
|
2023
2039
|
};
|
|
2024
2040
|
return I._store = {}, Object.defineProperty(I._store, "validated", {
|
|
2025
2041
|
configurable: !1,
|
|
@@ -2040,39 +2056,39 @@ function $i() {
|
|
|
2040
2056
|
};
|
|
2041
2057
|
function xo(a, p, g, C, z) {
|
|
2042
2058
|
{
|
|
2043
|
-
var
|
|
2059
|
+
var L, $ = {}, I = null, oe = null;
|
|
2044
2060
|
g !== void 0 && (Nr(g), I = "" + g), vo(p) && (Nr(p.key), I = "" + p.key), _o(p) && (oe = p.ref, Oo(p, z));
|
|
2045
|
-
for (
|
|
2046
|
-
|
|
2061
|
+
for (L in p)
|
|
2062
|
+
it.call(p, L) && !So.hasOwnProperty(L) && ($[L] = p[L]);
|
|
2047
2063
|
if (a && a.defaultProps) {
|
|
2048
|
-
var
|
|
2049
|
-
for (
|
|
2050
|
-
|
|
2064
|
+
var K = a.defaultProps;
|
|
2065
|
+
for (L in K)
|
|
2066
|
+
$[L] === void 0 && ($[L] = K[L]);
|
|
2051
2067
|
}
|
|
2052
2068
|
if (I || oe) {
|
|
2053
2069
|
var Q = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
2054
|
-
I && Co(
|
|
2070
|
+
I && Co($, Q), oe && Ro($, Q);
|
|
2055
2071
|
}
|
|
2056
|
-
return Do(a, I, oe, z, C, He.current,
|
|
2072
|
+
return Do(a, I, oe, z, C, He.current, $);
|
|
2057
2073
|
}
|
|
2058
2074
|
}
|
|
2059
|
-
var
|
|
2075
|
+
var xt = M.ReactCurrentOwner, Ar = M.ReactDebugCurrentFrame;
|
|
2060
2076
|
function ze(a) {
|
|
2061
2077
|
if (a) {
|
|
2062
|
-
var p = a._owner, g =
|
|
2078
|
+
var p = a._owner, g = st(a.type, a._source, p ? p.type : null);
|
|
2063
2079
|
Ar.setExtraStackFrame(g);
|
|
2064
2080
|
} else
|
|
2065
2081
|
Ar.setExtraStackFrame(null);
|
|
2066
2082
|
}
|
|
2067
|
-
var
|
|
2068
|
-
|
|
2069
|
-
function
|
|
2083
|
+
var Pt;
|
|
2084
|
+
Pt = !1;
|
|
2085
|
+
function jt(a) {
|
|
2070
2086
|
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
2071
2087
|
}
|
|
2072
|
-
function
|
|
2088
|
+
function $r() {
|
|
2073
2089
|
{
|
|
2074
|
-
if (
|
|
2075
|
-
var a = fe(
|
|
2090
|
+
if (xt.current) {
|
|
2091
|
+
var a = fe(xt.current.type);
|
|
2076
2092
|
if (a)
|
|
2077
2093
|
return `
|
|
2078
2094
|
|
|
@@ -2084,10 +2100,10 @@ Check the render method of \`` + a + "`.";
|
|
|
2084
2100
|
function Po(a) {
|
|
2085
2101
|
return "";
|
|
2086
2102
|
}
|
|
2087
|
-
var
|
|
2103
|
+
var Fr = {};
|
|
2088
2104
|
function jo(a) {
|
|
2089
2105
|
{
|
|
2090
|
-
var p =
|
|
2106
|
+
var p = $r();
|
|
2091
2107
|
if (!p) {
|
|
2092
2108
|
var g = typeof a == "string" ? a : a.displayName || a.name;
|
|
2093
2109
|
g && (p = `
|
|
@@ -2103,29 +2119,29 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2103
2119
|
return;
|
|
2104
2120
|
a._store.validated = !0;
|
|
2105
2121
|
var g = jo(p);
|
|
2106
|
-
if (
|
|
2122
|
+
if (Fr[g])
|
|
2107
2123
|
return;
|
|
2108
|
-
|
|
2124
|
+
Fr[g] = !0;
|
|
2109
2125
|
var C = "";
|
|
2110
|
-
a && a._owner && a._owner !==
|
|
2126
|
+
a && a._owner && a._owner !== xt.current && (C = " It was passed a child from " + fe(a._owner.type) + "."), ze(a), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, C), ze(null);
|
|
2111
2127
|
}
|
|
2112
2128
|
}
|
|
2113
2129
|
function Ur(a, p) {
|
|
2114
2130
|
{
|
|
2115
2131
|
if (typeof a != "object")
|
|
2116
2132
|
return;
|
|
2117
|
-
if (
|
|
2133
|
+
if (Rt(a))
|
|
2118
2134
|
for (var g = 0; g < a.length; g++) {
|
|
2119
2135
|
var C = a[g];
|
|
2120
|
-
|
|
2136
|
+
jt(C) && Mr(C, p);
|
|
2121
2137
|
}
|
|
2122
|
-
else if (
|
|
2138
|
+
else if (jt(a))
|
|
2123
2139
|
a._store && (a._store.validated = !0);
|
|
2124
2140
|
else if (a) {
|
|
2125
2141
|
var z = N(a);
|
|
2126
2142
|
if (typeof z == "function" && z !== a.entries)
|
|
2127
|
-
for (var
|
|
2128
|
-
|
|
2143
|
+
for (var L = z.call(a), $; !($ = L.next()).done; )
|
|
2144
|
+
jt($.value) && Mr($.value, p);
|
|
2129
2145
|
}
|
|
2130
2146
|
}
|
|
2131
2147
|
}
|
|
@@ -2146,8 +2162,8 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2146
2162
|
if (g) {
|
|
2147
2163
|
var C = fe(p);
|
|
2148
2164
|
go(g, a.props, "prop", C, a);
|
|
2149
|
-
} else if (p.PropTypes !== void 0 && !
|
|
2150
|
-
|
|
2165
|
+
} else if (p.PropTypes !== void 0 && !Pt) {
|
|
2166
|
+
Pt = !0;
|
|
2151
2167
|
var z = fe(p);
|
|
2152
2168
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
2153
2169
|
}
|
|
@@ -2166,27 +2182,27 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2166
2182
|
a.ref !== null && (ze(a), j("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
|
|
2167
2183
|
}
|
|
2168
2184
|
}
|
|
2169
|
-
function Br(a, p, g, C, z,
|
|
2185
|
+
function Br(a, p, g, C, z, L) {
|
|
2170
2186
|
{
|
|
2171
|
-
var
|
|
2172
|
-
if (
|
|
2187
|
+
var $ = q(a);
|
|
2188
|
+
if (!$) {
|
|
2173
2189
|
var I = "";
|
|
2174
2190
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2175
2191
|
var oe = Po();
|
|
2176
|
-
oe ? I += oe : I +=
|
|
2177
|
-
var
|
|
2178
|
-
a === null ?
|
|
2192
|
+
oe ? I += oe : I += $r();
|
|
2193
|
+
var K;
|
|
2194
|
+
a === null ? K = "null" : Rt(a) ? K = "array" : a !== void 0 && a.$$typeof === t ? (K = "<" + (fe(a.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : K = typeof a, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, I);
|
|
2179
2195
|
}
|
|
2180
|
-
var Q = xo(a, p, g, z,
|
|
2196
|
+
var Q = xo(a, p, g, z, L);
|
|
2181
2197
|
if (Q == null)
|
|
2182
2198
|
return Q;
|
|
2183
|
-
if (
|
|
2199
|
+
if ($) {
|
|
2184
2200
|
var de = p.children;
|
|
2185
2201
|
if (de !== void 0)
|
|
2186
2202
|
if (C)
|
|
2187
|
-
if (
|
|
2188
|
-
for (var
|
|
2189
|
-
Ur(de[
|
|
2203
|
+
if (Rt(de)) {
|
|
2204
|
+
for (var Te = 0; Te < de.length; Te++)
|
|
2205
|
+
Ur(de[Te], a);
|
|
2190
2206
|
Object.freeze && Object.freeze(de);
|
|
2191
2207
|
} else
|
|
2192
2208
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -2202,16 +2218,16 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2202
2218
|
function Ao(a, p, g) {
|
|
2203
2219
|
return Br(a, p, g, !1);
|
|
2204
2220
|
}
|
|
2205
|
-
var
|
|
2206
|
-
Ke.Fragment = n, Ke.jsx =
|
|
2221
|
+
var $o = Ao, Fo = ko;
|
|
2222
|
+
Ke.Fragment = n, Ke.jsx = $o, Ke.jsxs = Fo;
|
|
2207
2223
|
}()), Ke;
|
|
2208
2224
|
}
|
|
2209
|
-
process.env.NODE_ENV === "production" ? nr.exports =
|
|
2225
|
+
process.env.NODE_ENV === "production" ? nr.exports = Ui() : nr.exports = Bi();
|
|
2210
2226
|
var _ = nr.exports, Yn = { exports: {} };
|
|
2211
2227
|
(function(e, t) {
|
|
2212
2228
|
(function(r, n) {
|
|
2213
2229
|
e.exports = n();
|
|
2214
|
-
})(
|
|
2230
|
+
})(Fi, function() {
|
|
2215
2231
|
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", d = "day", l = "week", f = "month", S = "quarter", x = "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, j = { 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(O) {
|
|
2216
2232
|
var w = ["th", "st", "nd", "rd"], y = O % 100;
|
|
2217
2233
|
return "[" + O + (w[(y - 20) % 10] || w[y] || w[0]) + "]";
|
|
@@ -2231,23 +2247,23 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2231
2247
|
return { M: f, y: x, w: l, d, D: m, h: u, m: c, s: i, ms: s, Q: S }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
2232
2248
|
}, u: function(O) {
|
|
2233
2249
|
return O === void 0;
|
|
2234
|
-
} },
|
|
2235
|
-
B[
|
|
2250
|
+
} }, V = "en", B = {};
|
|
2251
|
+
B[V] = j;
|
|
2236
2252
|
var Z = "$isDayjsObject", k = function(O) {
|
|
2237
2253
|
return O instanceof Ne || !(!O || !O[Z]);
|
|
2238
2254
|
}, ee = function O(w, y, v) {
|
|
2239
2255
|
var E;
|
|
2240
|
-
if (!w) return
|
|
2256
|
+
if (!w) return V;
|
|
2241
2257
|
if (typeof w == "string") {
|
|
2242
2258
|
var R = w.toLowerCase();
|
|
2243
2259
|
B[R] && (E = R), y && (B[R] = y, E = R);
|
|
2244
2260
|
var D = w.split("-");
|
|
2245
2261
|
if (!E && D.length > 1) return O(D[0]);
|
|
2246
2262
|
} else {
|
|
2247
|
-
var
|
|
2248
|
-
B[
|
|
2263
|
+
var T = w.name;
|
|
2264
|
+
B[T] = w, E = T;
|
|
2249
2265
|
}
|
|
2250
|
-
return !v && E && (
|
|
2266
|
+
return !v && E && (V = E), E || !v && V;
|
|
2251
2267
|
}, q = function(O, w) {
|
|
2252
2268
|
if (k(O)) return O.clone();
|
|
2253
2269
|
var y = typeof w == "object" ? w : {};
|
|
@@ -2270,8 +2286,8 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2270
2286
|
if (typeof E == "string" && !/Z$/i.test(E)) {
|
|
2271
2287
|
var D = E.match(N);
|
|
2272
2288
|
if (D) {
|
|
2273
|
-
var
|
|
2274
|
-
return R ? new Date(Date.UTC(D[1],
|
|
2289
|
+
var T = D[2] - 1 || 0, W = (D[7] || "0").substring(0, 3);
|
|
2290
|
+
return R ? new Date(Date.UTC(D[1], T, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, W)) : new Date(D[1], T, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, W);
|
|
2275
2291
|
}
|
|
2276
2292
|
}
|
|
2277
2293
|
return new Date(E);
|
|
@@ -2297,20 +2313,20 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2297
2313
|
}, w.valueOf = function() {
|
|
2298
2314
|
return this.$d.getTime();
|
|
2299
2315
|
}, w.startOf = function(y, v) {
|
|
2300
|
-
var E = this, R = !!U.u(v) || v, D = U.p(y),
|
|
2316
|
+
var E = this, R = !!U.u(v) || v, D = U.p(y), T = function(ge, te) {
|
|
2301
2317
|
var Ee = U.w(E.$u ? Date.UTC(E.$y, te, ge) : new Date(E.$y, te, ge), E);
|
|
2302
2318
|
return R ? Ee : Ee.endOf(d);
|
|
2303
2319
|
}, W = function(ge, te) {
|
|
2304
2320
|
return U.w(E.toDate()[ge].apply(E.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), E);
|
|
2305
|
-
},
|
|
2321
|
+
}, J = this.$W, re = this.$M, ae = this.$D, be = "set" + (this.$u ? "UTC" : "");
|
|
2306
2322
|
switch (D) {
|
|
2307
2323
|
case x:
|
|
2308
|
-
return R ?
|
|
2324
|
+
return R ? T(1, 0) : T(31, 11);
|
|
2309
2325
|
case f:
|
|
2310
|
-
return R ?
|
|
2326
|
+
return R ? T(1, re) : T(0, re + 1);
|
|
2311
2327
|
case l:
|
|
2312
|
-
var ye = this.$locale().weekStart || 0, we = (
|
|
2313
|
-
return
|
|
2328
|
+
var ye = this.$locale().weekStart || 0, we = (J < ye ? J + 7 : J) - ye;
|
|
2329
|
+
return T(R ? ae - we : ae + (6 - we), re);
|
|
2314
2330
|
case d:
|
|
2315
2331
|
case m:
|
|
2316
2332
|
return W(be + "Hours", 0);
|
|
@@ -2326,11 +2342,11 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2326
2342
|
}, w.endOf = function(y) {
|
|
2327
2343
|
return this.startOf(y, !1);
|
|
2328
2344
|
}, w.$set = function(y, v) {
|
|
2329
|
-
var E, R = U.p(y), D = "set" + (this.$u ? "UTC" : ""),
|
|
2345
|
+
var E, R = U.p(y), D = "set" + (this.$u ? "UTC" : ""), T = (E = {}, E[d] = D + "Date", E[m] = D + "Date", E[f] = D + "Month", E[x] = D + "FullYear", E[u] = D + "Hours", E[c] = D + "Minutes", E[i] = D + "Seconds", E[s] = D + "Milliseconds", E)[R], W = R === d ? this.$D + (v - this.$W) : v;
|
|
2330
2346
|
if (R === f || R === x) {
|
|
2331
|
-
var
|
|
2332
|
-
|
|
2333
|
-
} else
|
|
2347
|
+
var J = this.clone().set(m, 1);
|
|
2348
|
+
J.$d[T](W), J.init(), this.$d = J.set(m, Math.min(this.$D, J.daysInMonth())).$d;
|
|
2349
|
+
} else T && this.$d[T](W);
|
|
2334
2350
|
return this.init(), this;
|
|
2335
2351
|
}, w.set = function(y, v) {
|
|
2336
2352
|
return this.clone().$set(y, v);
|
|
@@ -2339,25 +2355,25 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2339
2355
|
}, w.add = function(y, v) {
|
|
2340
2356
|
var E, R = this;
|
|
2341
2357
|
y = Number(y);
|
|
2342
|
-
var D = U.p(v),
|
|
2358
|
+
var D = U.p(v), T = function(re) {
|
|
2343
2359
|
var ae = q(R);
|
|
2344
2360
|
return U.w(ae.date(ae.date() + Math.round(re * y)), R);
|
|
2345
2361
|
};
|
|
2346
2362
|
if (D === f) return this.set(f, this.$M + y);
|
|
2347
2363
|
if (D === x) return this.set(x, this.$y + y);
|
|
2348
|
-
if (D === d) return
|
|
2349
|
-
if (D === l) return
|
|
2350
|
-
var W = (E = {}, E[c] = n, E[u] = o, E[i] = r, E)[D] || 1,
|
|
2351
|
-
return U.w(
|
|
2364
|
+
if (D === d) return T(1);
|
|
2365
|
+
if (D === l) return T(7);
|
|
2366
|
+
var W = (E = {}, E[c] = n, E[u] = o, E[i] = r, E)[D] || 1, J = this.$d.getTime() + y * W;
|
|
2367
|
+
return U.w(J, this);
|
|
2352
2368
|
}, w.subtract = function(y, v) {
|
|
2353
2369
|
return this.add(-1 * y, v);
|
|
2354
2370
|
}, w.format = function(y) {
|
|
2355
2371
|
var v = this, E = this.$locale();
|
|
2356
2372
|
if (!this.isValid()) return E.invalidDate || b;
|
|
2357
|
-
var R = y || "YYYY-MM-DDTHH:mm:ssZ", D = U.z(this),
|
|
2373
|
+
var R = y || "YYYY-MM-DDTHH:mm:ssZ", D = U.z(this), T = this.$H, W = this.$m, J = this.$M, re = E.weekdays, ae = E.months, be = E.meridiem, ye = function(te, Ee, Re, Be) {
|
|
2358
2374
|
return te && (te[Ee] || te(v, R)) || Re[Ee].slice(0, Be);
|
|
2359
2375
|
}, we = function(te) {
|
|
2360
|
-
return U.s(
|
|
2376
|
+
return U.s(T % 12 || 12, te, "0");
|
|
2361
2377
|
}, ge = be || function(te, Ee, Re) {
|
|
2362
2378
|
var Be = te < 12 ? "AM" : "PM";
|
|
2363
2379
|
return Re ? Be.toLowerCase() : Be;
|
|
@@ -2370,13 +2386,13 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2370
2386
|
case "YYYY":
|
|
2371
2387
|
return U.s(v.$y, 4, "0");
|
|
2372
2388
|
case "M":
|
|
2373
|
-
return
|
|
2389
|
+
return J + 1;
|
|
2374
2390
|
case "MM":
|
|
2375
|
-
return U.s(
|
|
2391
|
+
return U.s(J + 1, 2, "0");
|
|
2376
2392
|
case "MMM":
|
|
2377
|
-
return ye(E.monthsShort,
|
|
2393
|
+
return ye(E.monthsShort, J, ae, 3);
|
|
2378
2394
|
case "MMMM":
|
|
2379
|
-
return ye(ae,
|
|
2395
|
+
return ye(ae, J);
|
|
2380
2396
|
case "D":
|
|
2381
2397
|
return v.$D;
|
|
2382
2398
|
case "DD":
|
|
@@ -2390,17 +2406,17 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2390
2406
|
case "dddd":
|
|
2391
2407
|
return re[v.$W];
|
|
2392
2408
|
case "H":
|
|
2393
|
-
return String(
|
|
2409
|
+
return String(T);
|
|
2394
2410
|
case "HH":
|
|
2395
|
-
return U.s(
|
|
2411
|
+
return U.s(T, 2, "0");
|
|
2396
2412
|
case "h":
|
|
2397
2413
|
return we(1);
|
|
2398
2414
|
case "hh":
|
|
2399
2415
|
return we(2);
|
|
2400
2416
|
case "a":
|
|
2401
|
-
return ge(
|
|
2417
|
+
return ge(T, W, !0);
|
|
2402
2418
|
case "A":
|
|
2403
|
-
return ge(
|
|
2419
|
+
return ge(T, W, !1);
|
|
2404
2420
|
case "m":
|
|
2405
2421
|
return String(W);
|
|
2406
2422
|
case "mm":
|
|
@@ -2420,10 +2436,10 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2420
2436
|
}, w.utcOffset = function() {
|
|
2421
2437
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2422
2438
|
}, w.diff = function(y, v, E) {
|
|
2423
|
-
var R, D = this,
|
|
2439
|
+
var R, D = this, T = U.p(v), W = q(y), J = (W.utcOffset() - this.utcOffset()) * n, re = this - W, ae = function() {
|
|
2424
2440
|
return U.m(D, W);
|
|
2425
2441
|
};
|
|
2426
|
-
switch (
|
|
2442
|
+
switch (T) {
|
|
2427
2443
|
case x:
|
|
2428
2444
|
R = ae() / 12;
|
|
2429
2445
|
break;
|
|
@@ -2434,10 +2450,10 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2434
2450
|
R = ae() / 3;
|
|
2435
2451
|
break;
|
|
2436
2452
|
case l:
|
|
2437
|
-
R = (re -
|
|
2453
|
+
R = (re - J) / 6048e5;
|
|
2438
2454
|
break;
|
|
2439
2455
|
case d:
|
|
2440
|
-
R = (re -
|
|
2456
|
+
R = (re - J) / 864e5;
|
|
2441
2457
|
break;
|
|
2442
2458
|
case u:
|
|
2443
2459
|
R = re / o;
|
|
@@ -2480,12 +2496,12 @@ var _ = nr.exports, Yn = { exports: {} };
|
|
|
2480
2496
|
return O.$i || (O(w, Ne, q), O.$i = !0), q;
|
|
2481
2497
|
}, q.locale = ee, q.isDayjs = k, q.unix = function(O) {
|
|
2482
2498
|
return q(1e3 * O);
|
|
2483
|
-
}, q.en = B[
|
|
2499
|
+
}, q.en = B[V], q.Ls = B, q.p = {}, q;
|
|
2484
2500
|
});
|
|
2485
2501
|
})(Yn);
|
|
2486
|
-
var
|
|
2487
|
-
const
|
|
2488
|
-
function
|
|
2502
|
+
var zi = Yn.exports;
|
|
2503
|
+
const Ti = /* @__PURE__ */ Mi(zi), Vi = (e) => Ti(e).format("YYYY-MM-DD HH:mm:ss"), Li = (e) => _.jsx(wn.Paragraph, { copyable: !0, children: e }), qi = (e) => _.jsx(wn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
|
|
2504
|
+
function Wi(e) {
|
|
2489
2505
|
if (typeof e != "object" || e === null)
|
|
2490
2506
|
return !1;
|
|
2491
2507
|
let t = e;
|
|
@@ -2493,10 +2509,10 @@ function Li(e) {
|
|
|
2493
2509
|
t = Object.getPrototypeOf(t);
|
|
2494
2510
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
2495
2511
|
}
|
|
2496
|
-
function
|
|
2497
|
-
return
|
|
2512
|
+
function Hi(e) {
|
|
2513
|
+
return Wi(e) && "type" in e && typeof e.type == "string";
|
|
2498
2514
|
}
|
|
2499
|
-
var Jn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ue = Symbol.for("immer-state"),
|
|
2515
|
+
var Jn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ue = Symbol.for("immer-state"), Gi = process.env.NODE_ENV !== "production" ? [
|
|
2500
2516
|
// All error codes, starting by 0:
|
|
2501
2517
|
function(e) {
|
|
2502
2518
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -2529,63 +2545,63 @@ var Jn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ue = S
|
|
|
2529
2545
|
] : [];
|
|
2530
2546
|
function ce(e, ...t) {
|
|
2531
2547
|
if (process.env.NODE_ENV !== "production") {
|
|
2532
|
-
const r =
|
|
2548
|
+
const r = Gi[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
2533
2549
|
throw new Error(`[Immer] ${n}`);
|
|
2534
2550
|
}
|
|
2535
2551
|
throw new Error(
|
|
2536
2552
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
2537
2553
|
);
|
|
2538
2554
|
}
|
|
2539
|
-
var
|
|
2555
|
+
var Le = Object.getPrototypeOf;
|
|
2540
2556
|
function je(e) {
|
|
2541
2557
|
return !!e && !!e[ue];
|
|
2542
2558
|
}
|
|
2543
2559
|
function Ce(e) {
|
|
2544
2560
|
var t;
|
|
2545
|
-
return e ? Kn(e) || Array.isArray(e) || !!e[tn] || !!((t = e.constructor) != null && t[tn]) ||
|
|
2561
|
+
return e ? Kn(e) || Array.isArray(e) || !!e[tn] || !!((t = e.constructor) != null && t[tn]) || _t(e) || vt(e) : !1;
|
|
2546
2562
|
}
|
|
2547
|
-
var
|
|
2563
|
+
var Yi = Object.prototype.constructor.toString();
|
|
2548
2564
|
function Kn(e) {
|
|
2549
2565
|
if (!e || typeof e != "object")
|
|
2550
2566
|
return !1;
|
|
2551
|
-
const t =
|
|
2567
|
+
const t = Le(e);
|
|
2552
2568
|
if (t === null)
|
|
2553
2569
|
return !0;
|
|
2554
2570
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
2555
|
-
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) ===
|
|
2571
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Yi;
|
|
2556
2572
|
}
|
|
2557
|
-
function
|
|
2558
|
-
|
|
2573
|
+
function pt(e, t) {
|
|
2574
|
+
St(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
2559
2575
|
t(r, e[r], e);
|
|
2560
2576
|
}) : e.forEach((r, n) => t(n, r, e));
|
|
2561
2577
|
}
|
|
2562
|
-
function
|
|
2578
|
+
function St(e) {
|
|
2563
2579
|
const t = e[ue];
|
|
2564
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
2580
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : _t(e) ? 2 : vt(e) ? 3 : 0;
|
|
2565
2581
|
}
|
|
2566
2582
|
function or(e, t) {
|
|
2567
|
-
return
|
|
2583
|
+
return St(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
2568
2584
|
}
|
|
2569
2585
|
function Xn(e, t, r) {
|
|
2570
|
-
const n =
|
|
2586
|
+
const n = St(e);
|
|
2571
2587
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
2572
2588
|
}
|
|
2573
|
-
function
|
|
2589
|
+
function Ji(e, t) {
|
|
2574
2590
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
2575
2591
|
}
|
|
2576
|
-
function
|
|
2592
|
+
function _t(e) {
|
|
2577
2593
|
return e instanceof Map;
|
|
2578
2594
|
}
|
|
2579
|
-
function
|
|
2595
|
+
function vt(e) {
|
|
2580
2596
|
return e instanceof Set;
|
|
2581
2597
|
}
|
|
2582
2598
|
function Ie(e) {
|
|
2583
2599
|
return e.copy_ || e.base_;
|
|
2584
2600
|
}
|
|
2585
2601
|
function sr(e, t) {
|
|
2586
|
-
if (St(e))
|
|
2587
|
-
return new Map(e);
|
|
2588
2602
|
if (_t(e))
|
|
2603
|
+
return new Map(e);
|
|
2604
|
+
if (vt(e))
|
|
2589
2605
|
return new Set(e);
|
|
2590
2606
|
if (Array.isArray(e))
|
|
2591
2607
|
return Array.prototype.slice.call(e);
|
|
@@ -2604,9 +2620,9 @@ function sr(e, t) {
|
|
|
2604
2620
|
value: e[i]
|
|
2605
2621
|
});
|
|
2606
2622
|
}
|
|
2607
|
-
return Object.create(
|
|
2623
|
+
return Object.create(Le(e), n);
|
|
2608
2624
|
} else {
|
|
2609
|
-
const n =
|
|
2625
|
+
const n = Le(e);
|
|
2610
2626
|
if (n !== null && r)
|
|
2611
2627
|
return { ...e };
|
|
2612
2628
|
const o = Object.create(n);
|
|
@@ -2614,24 +2630,24 @@ function sr(e, t) {
|
|
|
2614
2630
|
}
|
|
2615
2631
|
}
|
|
2616
2632
|
function Or(e, t = !1) {
|
|
2617
|
-
return
|
|
2633
|
+
return Ot(e) || je(e) || !Ce(e) || (St(e) > 1 && (e.set = e.add = e.clear = e.delete = Ki), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => Or(n, !0))), e;
|
|
2618
2634
|
}
|
|
2619
|
-
function
|
|
2635
|
+
function Ki() {
|
|
2620
2636
|
ce(2);
|
|
2621
2637
|
}
|
|
2622
|
-
function
|
|
2638
|
+
function Ot(e) {
|
|
2623
2639
|
return Object.isFrozen(e);
|
|
2624
2640
|
}
|
|
2625
|
-
var
|
|
2641
|
+
var Xi = {};
|
|
2626
2642
|
function Ue(e) {
|
|
2627
|
-
const t =
|
|
2643
|
+
const t = Xi[e];
|
|
2628
2644
|
return t || ce(0, e), t;
|
|
2629
2645
|
}
|
|
2630
|
-
var
|
|
2646
|
+
var Qe;
|
|
2631
2647
|
function Zn() {
|
|
2632
|
-
return
|
|
2648
|
+
return Qe;
|
|
2633
2649
|
}
|
|
2634
|
-
function
|
|
2650
|
+
function Zi(e, t) {
|
|
2635
2651
|
return {
|
|
2636
2652
|
drafts_: [],
|
|
2637
2653
|
parent_: e,
|
|
@@ -2646,49 +2662,49 @@ function rn(e, t) {
|
|
|
2646
2662
|
t && (Ue("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
2647
2663
|
}
|
|
2648
2664
|
function ir(e) {
|
|
2649
|
-
ar(e), e.drafts_.forEach(
|
|
2665
|
+
ar(e), e.drafts_.forEach(Qi), e.drafts_ = null;
|
|
2650
2666
|
}
|
|
2651
2667
|
function ar(e) {
|
|
2652
|
-
e ===
|
|
2668
|
+
e === Qe && (Qe = e.parent_);
|
|
2653
2669
|
}
|
|
2654
2670
|
function nn(e) {
|
|
2655
|
-
return
|
|
2671
|
+
return Qe = Zi(Qe, e);
|
|
2656
2672
|
}
|
|
2657
|
-
function
|
|
2673
|
+
function Qi(e) {
|
|
2658
2674
|
const t = e[ue];
|
|
2659
2675
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
2660
2676
|
}
|
|
2661
2677
|
function on(e, t) {
|
|
2662
2678
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
2663
2679
|
const r = t.drafts_[0];
|
|
2664
|
-
return e !== void 0 && e !== r ? (r[ue].modified_ && (ir(t), ce(4)), Ce(e) && (e =
|
|
2680
|
+
return e !== void 0 && e !== r ? (r[ue].modified_ && (ir(t), ce(4)), Ce(e) && (e = mt(t, e), t.parent_ || yt(t, e)), t.patches_ && Ue("Patches").generateReplacementPatches_(
|
|
2665
2681
|
r[ue].base_,
|
|
2666
2682
|
e,
|
|
2667
2683
|
t.patches_,
|
|
2668
2684
|
t.inversePatches_
|
|
2669
|
-
)) : e =
|
|
2685
|
+
)) : e = mt(t, r, []), ir(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Jn ? e : void 0;
|
|
2670
2686
|
}
|
|
2671
|
-
function
|
|
2672
|
-
if (
|
|
2687
|
+
function mt(e, t, r) {
|
|
2688
|
+
if (Ot(t))
|
|
2673
2689
|
return t;
|
|
2674
2690
|
const n = t[ue];
|
|
2675
2691
|
if (!n)
|
|
2676
|
-
return
|
|
2692
|
+
return pt(
|
|
2677
2693
|
t,
|
|
2678
2694
|
(o, s) => sn(e, n, t, o, s, r)
|
|
2679
2695
|
), t;
|
|
2680
2696
|
if (n.scope_ !== e)
|
|
2681
2697
|
return t;
|
|
2682
2698
|
if (!n.modified_)
|
|
2683
|
-
return
|
|
2699
|
+
return yt(e, n.base_, !0), n.base_;
|
|
2684
2700
|
if (!n.finalized_) {
|
|
2685
2701
|
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
2686
2702
|
const o = n.copy_;
|
|
2687
2703
|
let s = o, i = !1;
|
|
2688
|
-
n.type_ === 3 && (s = new Set(o), o.clear(), i = !0),
|
|
2704
|
+
n.type_ === 3 && (s = new Set(o), o.clear(), i = !0), pt(
|
|
2689
2705
|
s,
|
|
2690
2706
|
(c, u) => sn(e, n, o, c, u, r, i)
|
|
2691
|
-
),
|
|
2707
|
+
), yt(e, o, !1), r && e.patches_ && Ue("Patches").generatePatches_(
|
|
2692
2708
|
n,
|
|
2693
2709
|
r,
|
|
2694
2710
|
e.patches_,
|
|
@@ -2700,22 +2716,22 @@ function pt(e, t, r) {
|
|
|
2700
2716
|
function sn(e, t, r, n, o, s, i) {
|
|
2701
2717
|
if (process.env.NODE_ENV !== "production" && o === r && ce(5), je(o)) {
|
|
2702
2718
|
const c = s && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
2703
|
-
!or(t.assigned_, n) ? s.concat(n) : void 0, u =
|
|
2719
|
+
!or(t.assigned_, n) ? s.concat(n) : void 0, u = mt(e, o, c);
|
|
2704
2720
|
if (Xn(r, n, u), je(u))
|
|
2705
2721
|
e.canAutoFreeze_ = !1;
|
|
2706
2722
|
else
|
|
2707
2723
|
return;
|
|
2708
2724
|
} else i && r.add(o);
|
|
2709
|
-
if (Ce(o) && !
|
|
2725
|
+
if (Ce(o) && !Ot(o)) {
|
|
2710
2726
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
2711
2727
|
return;
|
|
2712
|
-
|
|
2728
|
+
mt(e, o), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && yt(e, o);
|
|
2713
2729
|
}
|
|
2714
2730
|
}
|
|
2715
|
-
function
|
|
2731
|
+
function yt(e, t, r = !1) {
|
|
2716
2732
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Or(t, r);
|
|
2717
2733
|
}
|
|
2718
|
-
function
|
|
2734
|
+
function ea(e, t) {
|
|
2719
2735
|
const r = Array.isArray(e), n = {
|
|
2720
2736
|
type_: r ? 1 : 0,
|
|
2721
2737
|
// Track which produce call this is associated with.
|
|
@@ -2740,7 +2756,7 @@ function Xi(e, t) {
|
|
|
2740
2756
|
isManual_: !1
|
|
2741
2757
|
};
|
|
2742
2758
|
let o = n, s = Cr;
|
|
2743
|
-
r && (o = [n], s =
|
|
2759
|
+
r && (o = [n], s = et);
|
|
2744
2760
|
const { revoke: i, proxy: c } = Proxy.revocable(o, s);
|
|
2745
2761
|
return n.draft_ = c, n.revoke_ = i, c;
|
|
2746
2762
|
}
|
|
@@ -2750,9 +2766,9 @@ var Cr = {
|
|
|
2750
2766
|
return e;
|
|
2751
2767
|
const r = Ie(e);
|
|
2752
2768
|
if (!or(r, t))
|
|
2753
|
-
return
|
|
2769
|
+
return ta(e, r, t);
|
|
2754
2770
|
const n = r[t];
|
|
2755
|
-
return e.finalized_ || !Ce(n) ? n : n === Ft(e.base_, t) ? (
|
|
2771
|
+
return e.finalized_ || !Ce(n) ? n : n === Ft(e.base_, t) ? (Mt(e), e.copy_[t] = ur(n, e)) : n;
|
|
2756
2772
|
},
|
|
2757
2773
|
has(e, t) {
|
|
2758
2774
|
return t in Ie(e);
|
|
@@ -2768,16 +2784,16 @@ var Cr = {
|
|
|
2768
2784
|
const o = Ft(Ie(e), t), s = o == null ? void 0 : o[ue];
|
|
2769
2785
|
if (s && s.base_ === r)
|
|
2770
2786
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
2771
|
-
if (
|
|
2787
|
+
if (Ji(r, o) && (r !== void 0 || or(e.base_, t)))
|
|
2772
2788
|
return !0;
|
|
2773
|
-
|
|
2789
|
+
Mt(e), cr(e);
|
|
2774
2790
|
}
|
|
2775
2791
|
return e.copy_[t] === r && // special case: handle new props with value 'undefined'
|
|
2776
2792
|
(r !== void 0 || t in e.copy_) || // special case: NaN
|
|
2777
2793
|
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
|
|
2778
2794
|
},
|
|
2779
2795
|
deleteProperty(e, t) {
|
|
2780
|
-
return Ft(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1,
|
|
2796
|
+
return Ft(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, Mt(e), cr(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
2781
2797
|
},
|
|
2782
2798
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
2783
2799
|
// the same guarantee in ES5 mode.
|
|
@@ -2794,28 +2810,28 @@ var Cr = {
|
|
|
2794
2810
|
ce(11);
|
|
2795
2811
|
},
|
|
2796
2812
|
getPrototypeOf(e) {
|
|
2797
|
-
return
|
|
2813
|
+
return Le(e.base_);
|
|
2798
2814
|
},
|
|
2799
2815
|
setPrototypeOf() {
|
|
2800
2816
|
ce(12);
|
|
2801
2817
|
}
|
|
2802
|
-
},
|
|
2803
|
-
|
|
2804
|
-
|
|
2818
|
+
}, et = {};
|
|
2819
|
+
pt(Cr, (e, t) => {
|
|
2820
|
+
et[e] = function() {
|
|
2805
2821
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
2806
2822
|
};
|
|
2807
2823
|
});
|
|
2808
|
-
|
|
2809
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && ce(13),
|
|
2824
|
+
et.deleteProperty = function(e, t) {
|
|
2825
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && ce(13), et.set.call(this, e, t, void 0);
|
|
2810
2826
|
};
|
|
2811
|
-
|
|
2827
|
+
et.set = function(e, t, r) {
|
|
2812
2828
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && ce(14), Cr.set.call(this, e[0], t, r, e[0]);
|
|
2813
2829
|
};
|
|
2814
2830
|
function Ft(e, t) {
|
|
2815
2831
|
const r = e[ue];
|
|
2816
2832
|
return (r ? Ie(r) : e)[t];
|
|
2817
2833
|
}
|
|
2818
|
-
function
|
|
2834
|
+
function ta(e, t, r) {
|
|
2819
2835
|
var o;
|
|
2820
2836
|
const n = Qn(t, r);
|
|
2821
2837
|
return n ? "value" in n ? n.value : (
|
|
@@ -2827,24 +2843,24 @@ function Zi(e, t, r) {
|
|
|
2827
2843
|
function Qn(e, t) {
|
|
2828
2844
|
if (!(t in e))
|
|
2829
2845
|
return;
|
|
2830
|
-
let r =
|
|
2846
|
+
let r = Le(e);
|
|
2831
2847
|
for (; r; ) {
|
|
2832
2848
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
2833
2849
|
if (n)
|
|
2834
2850
|
return n;
|
|
2835
|
-
r =
|
|
2851
|
+
r = Le(r);
|
|
2836
2852
|
}
|
|
2837
2853
|
}
|
|
2838
2854
|
function cr(e) {
|
|
2839
2855
|
e.modified_ || (e.modified_ = !0, e.parent_ && cr(e.parent_));
|
|
2840
2856
|
}
|
|
2841
|
-
function
|
|
2857
|
+
function Mt(e) {
|
|
2842
2858
|
e.copy_ || (e.copy_ = sr(
|
|
2843
2859
|
e.base_,
|
|
2844
2860
|
e.scope_.immer_.useStrictShallowCopy_
|
|
2845
2861
|
));
|
|
2846
2862
|
}
|
|
2847
|
-
var
|
|
2863
|
+
var ra = class {
|
|
2848
2864
|
constructor(e) {
|
|
2849
2865
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
2850
2866
|
if (typeof t == "function" && typeof r != "function") {
|
|
@@ -2928,14 +2944,14 @@ var Qi = class {
|
|
|
2928
2944
|
}
|
|
2929
2945
|
};
|
|
2930
2946
|
function ur(e, t) {
|
|
2931
|
-
const r =
|
|
2947
|
+
const r = _t(e) ? Ue("MapSet").proxyMap_(e, t) : vt(e) ? Ue("MapSet").proxySet_(e, t) : ea(e, t);
|
|
2932
2948
|
return (t ? t.scope_ : Zn()).drafts_.push(r), r;
|
|
2933
2949
|
}
|
|
2934
2950
|
function eo(e) {
|
|
2935
2951
|
return je(e) || ce(10, e), to(e);
|
|
2936
2952
|
}
|
|
2937
2953
|
function to(e) {
|
|
2938
|
-
if (!Ce(e) ||
|
|
2954
|
+
if (!Ce(e) || Ot(e))
|
|
2939
2955
|
return e;
|
|
2940
2956
|
const t = e[ue];
|
|
2941
2957
|
let r;
|
|
@@ -2945,11 +2961,11 @@ function to(e) {
|
|
|
2945
2961
|
t.finalized_ = !0, r = sr(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
2946
2962
|
} else
|
|
2947
2963
|
r = sr(e, !0);
|
|
2948
|
-
return
|
|
2964
|
+
return pt(r, (n, o) => {
|
|
2949
2965
|
Xn(r, n, to(o));
|
|
2950
2966
|
}), t && (t.finalized_ = !1), r;
|
|
2951
2967
|
}
|
|
2952
|
-
var le = new
|
|
2968
|
+
var le = new ra(), ro = le.produce;
|
|
2953
2969
|
le.produceWithPatches.bind(
|
|
2954
2970
|
le
|
|
2955
2971
|
);
|
|
@@ -2958,7 +2974,7 @@ le.setUseStrictShallowCopy.bind(le);
|
|
|
2958
2974
|
le.applyPatches.bind(le);
|
|
2959
2975
|
le.createDraft.bind(le);
|
|
2960
2976
|
le.finishDraft.bind(le);
|
|
2961
|
-
var
|
|
2977
|
+
var na = (e, t, r) => {
|
|
2962
2978
|
if (t.length === 1 && t[0] === r) {
|
|
2963
2979
|
let n = !1;
|
|
2964
2980
|
try {
|
|
@@ -2982,7 +2998,7 @@ Ensure transformation logic is in the result function, and extraction logic is i
|
|
|
2982
2998
|
);
|
|
2983
2999
|
}
|
|
2984
3000
|
}
|
|
2985
|
-
},
|
|
3001
|
+
}, oa = (e, t, r) => {
|
|
2986
3002
|
const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: s, inputSelectorResultsCopy: i } = e, c = n(() => ({}), ...o);
|
|
2987
3003
|
if (!(c.apply(null, s) === c.apply(null, i))) {
|
|
2988
3004
|
let d;
|
|
@@ -3004,19 +3020,19 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
3004
3020
|
}
|
|
3005
3021
|
);
|
|
3006
3022
|
}
|
|
3007
|
-
},
|
|
3023
|
+
}, sa = {
|
|
3008
3024
|
inputStabilityCheck: "once",
|
|
3009
3025
|
identityFunctionCheck: "once"
|
|
3010
3026
|
};
|
|
3011
|
-
function
|
|
3027
|
+
function ia(e, t = `expected a function, instead received ${typeof e}`) {
|
|
3012
3028
|
if (typeof e != "function")
|
|
3013
3029
|
throw new TypeError(t);
|
|
3014
3030
|
}
|
|
3015
|
-
function
|
|
3031
|
+
function aa(e, t = `expected an object, instead received ${typeof e}`) {
|
|
3016
3032
|
if (typeof e != "object")
|
|
3017
3033
|
throw new TypeError(t);
|
|
3018
3034
|
}
|
|
3019
|
-
function
|
|
3035
|
+
function ca(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
3020
3036
|
if (!e.every((r) => typeof r == "function")) {
|
|
3021
3037
|
const r = e.map(
|
|
3022
3038
|
(n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
|
|
@@ -3025,9 +3041,9 @@ function sa(e, t = "expected all items to be functions, instead received the fol
|
|
|
3025
3041
|
}
|
|
3026
3042
|
}
|
|
3027
3043
|
var an = (e) => Array.isArray(e) ? e : [e];
|
|
3028
|
-
function
|
|
3044
|
+
function ua(e) {
|
|
3029
3045
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
3030
|
-
return
|
|
3046
|
+
return ca(
|
|
3031
3047
|
t,
|
|
3032
3048
|
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
3033
3049
|
), t;
|
|
@@ -3038,39 +3054,39 @@ function cn(e, t) {
|
|
|
3038
3054
|
r.push(e[o].apply(null, t));
|
|
3039
3055
|
return r;
|
|
3040
3056
|
}
|
|
3041
|
-
var
|
|
3057
|
+
var la = (e, t) => {
|
|
3042
3058
|
const { identityFunctionCheck: r, inputStabilityCheck: n } = {
|
|
3043
|
-
...
|
|
3059
|
+
...sa,
|
|
3044
3060
|
...t
|
|
3045
3061
|
};
|
|
3046
3062
|
return {
|
|
3047
3063
|
identityFunctionCheck: {
|
|
3048
3064
|
shouldRun: r === "always" || r === "once" && e,
|
|
3049
|
-
run:
|
|
3065
|
+
run: na
|
|
3050
3066
|
},
|
|
3051
3067
|
inputStabilityCheck: {
|
|
3052
3068
|
shouldRun: n === "always" || n === "once" && e,
|
|
3053
|
-
run:
|
|
3069
|
+
run: oa
|
|
3054
3070
|
}
|
|
3055
3071
|
};
|
|
3056
|
-
},
|
|
3072
|
+
}, fa = class {
|
|
3057
3073
|
constructor(e) {
|
|
3058
3074
|
this.value = e;
|
|
3059
3075
|
}
|
|
3060
3076
|
deref() {
|
|
3061
3077
|
return this.value;
|
|
3062
3078
|
}
|
|
3063
|
-
},
|
|
3064
|
-
function
|
|
3079
|
+
}, da = typeof WeakRef < "u" ? WeakRef : fa, ha = 0, un = 1;
|
|
3080
|
+
function ut() {
|
|
3065
3081
|
return {
|
|
3066
|
-
s:
|
|
3082
|
+
s: ha,
|
|
3067
3083
|
v: void 0,
|
|
3068
3084
|
o: null,
|
|
3069
3085
|
p: null
|
|
3070
3086
|
};
|
|
3071
3087
|
}
|
|
3072
3088
|
function Rr(e, t = {}) {
|
|
3073
|
-
let r =
|
|
3089
|
+
let r = ut();
|
|
3074
3090
|
const { resultEqualityCheck: n } = t;
|
|
3075
3091
|
let o, s = 0;
|
|
3076
3092
|
function i() {
|
|
@@ -3083,24 +3099,24 @@ function Rr(e, t = {}) {
|
|
|
3083
3099
|
let b = c.o;
|
|
3084
3100
|
b === null && (c.o = b = /* @__PURE__ */ new WeakMap());
|
|
3085
3101
|
const N = b.get(m);
|
|
3086
|
-
N === void 0 ? (c =
|
|
3102
|
+
N === void 0 ? (c = ut(), b.set(m, c)) : c = N;
|
|
3087
3103
|
} else {
|
|
3088
3104
|
let b = c.p;
|
|
3089
3105
|
b === null && (c.p = b = /* @__PURE__ */ new Map());
|
|
3090
3106
|
const N = b.get(m);
|
|
3091
|
-
N === void 0 ? (c =
|
|
3107
|
+
N === void 0 ? (c = ut(), b.set(m, c)) : c = N;
|
|
3092
3108
|
}
|
|
3093
3109
|
}
|
|
3094
3110
|
const d = c;
|
|
3095
3111
|
let l;
|
|
3096
3112
|
if (c.s === un ? l = c.v : (l = e.apply(null, arguments), s++), d.s = un, n) {
|
|
3097
3113
|
const S = ((f = o == null ? void 0 : o.deref) == null ? void 0 : f.call(o)) ?? o;
|
|
3098
|
-
S != null && n(S, l) && (l = S, s !== 0 && s--), o = typeof l == "object" && l !== null || typeof l == "function" ? new
|
|
3114
|
+
S != null && n(S, l) && (l = S, s !== 0 && s--), o = typeof l == "object" && l !== null || typeof l == "function" ? new da(l) : l;
|
|
3099
3115
|
}
|
|
3100
3116
|
return d.v = l, l;
|
|
3101
3117
|
}
|
|
3102
3118
|
return i.clearCache = () => {
|
|
3103
|
-
r =
|
|
3119
|
+
r = ut(), i.resetResultsCount();
|
|
3104
3120
|
}, i.resultsCount = () => s, i.resetResultsCount = () => {
|
|
3105
3121
|
s = 0;
|
|
3106
3122
|
}, i;
|
|
@@ -3111,7 +3127,7 @@ function no(e, ...t) {
|
|
|
3111
3127
|
memoizeOptions: t
|
|
3112
3128
|
} : e, n = (...o) => {
|
|
3113
3129
|
let s = 0, i = 0, c, u = {}, d = o.pop();
|
|
3114
|
-
typeof d == "object" && (u = d, d = o.pop()),
|
|
3130
|
+
typeof d == "object" && (u = d, d = o.pop()), ia(
|
|
3115
3131
|
d,
|
|
3116
3132
|
`createSelector expects an output function after the inputs, but received: [${typeof d}]`
|
|
3117
3133
|
);
|
|
@@ -3124,21 +3140,21 @@ function no(e, ...t) {
|
|
|
3124
3140
|
argsMemoize: x = Rr,
|
|
3125
3141
|
argsMemoizeOptions: m = [],
|
|
3126
3142
|
devModeChecks: b = {}
|
|
3127
|
-
} = l, N = an(S), M = an(m), j =
|
|
3143
|
+
} = l, N = an(S), M = an(m), j = ua(o), P = f(function() {
|
|
3128
3144
|
return s++, d.apply(
|
|
3129
3145
|
null,
|
|
3130
3146
|
arguments
|
|
3131
3147
|
);
|
|
3132
3148
|
}, ...N);
|
|
3133
3149
|
let A = !0;
|
|
3134
|
-
const
|
|
3150
|
+
const V = x(function() {
|
|
3135
3151
|
i++;
|
|
3136
3152
|
const Z = cn(
|
|
3137
3153
|
j,
|
|
3138
3154
|
arguments
|
|
3139
3155
|
);
|
|
3140
3156
|
if (c = P.apply(null, Z), process.env.NODE_ENV !== "production") {
|
|
3141
|
-
const { identityFunctionCheck: k, inputStabilityCheck: ee } =
|
|
3157
|
+
const { identityFunctionCheck: k, inputStabilityCheck: ee } = la(A, b);
|
|
3142
3158
|
if (k.shouldRun && k.run(
|
|
3143
3159
|
d,
|
|
3144
3160
|
Z,
|
|
@@ -3158,7 +3174,7 @@ function no(e, ...t) {
|
|
|
3158
3174
|
}
|
|
3159
3175
|
return c;
|
|
3160
3176
|
}, ...M);
|
|
3161
|
-
return Object.assign(
|
|
3177
|
+
return Object.assign(V, {
|
|
3162
3178
|
resultFunc: d,
|
|
3163
3179
|
memoizedResultFunc: P,
|
|
3164
3180
|
dependencies: j,
|
|
@@ -3179,9 +3195,9 @@ function no(e, ...t) {
|
|
|
3179
3195
|
withTypes: () => n
|
|
3180
3196
|
}), n;
|
|
3181
3197
|
}
|
|
3182
|
-
var
|
|
3183
|
-
(e, t =
|
|
3184
|
-
|
|
3198
|
+
var pa = /* @__PURE__ */ no(Rr), ma = Object.assign(
|
|
3199
|
+
(e, t = pa) => {
|
|
3200
|
+
aa(
|
|
3185
3201
|
e,
|
|
3186
3202
|
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
3187
3203
|
);
|
|
@@ -3193,8 +3209,8 @@ var fa = /* @__PURE__ */ no(Rr), da = Object.assign(
|
|
|
3193
3209
|
(...s) => s.reduce((i, c, u) => (i[r[u]] = c, i), {})
|
|
3194
3210
|
);
|
|
3195
3211
|
},
|
|
3196
|
-
{ withTypes: () =>
|
|
3197
|
-
),
|
|
3212
|
+
{ withTypes: () => ma }
|
|
3213
|
+
), ya = (...e) => {
|
|
3198
3214
|
const t = no(...e), r = Object.assign((...n) => {
|
|
3199
3215
|
const o = t(...n), s = (i, ...c) => o(je(i) ? eo(i) : i, ...c);
|
|
3200
3216
|
return Object.assign(s, o), s;
|
|
@@ -3203,14 +3219,14 @@ var fa = /* @__PURE__ */ no(Rr), da = Object.assign(
|
|
|
3203
3219
|
});
|
|
3204
3220
|
return r;
|
|
3205
3221
|
};
|
|
3206
|
-
|
|
3207
|
-
var
|
|
3222
|
+
ya(Rr);
|
|
3223
|
+
var ga = (e) => e && typeof e.match == "function";
|
|
3208
3224
|
function Oe(e, t) {
|
|
3209
3225
|
function r(...n) {
|
|
3210
3226
|
if (t) {
|
|
3211
3227
|
let o = t(...n);
|
|
3212
3228
|
if (!o)
|
|
3213
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3229
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(0) : "prepareAction did not return an object");
|
|
3214
3230
|
return {
|
|
3215
3231
|
type: e,
|
|
3216
3232
|
payload: o.payload,
|
|
@@ -3227,7 +3243,7 @@ function Oe(e, t) {
|
|
|
3227
3243
|
payload: n[0]
|
|
3228
3244
|
};
|
|
3229
3245
|
}
|
|
3230
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
3246
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Hi(n) && n.type === e, r;
|
|
3231
3247
|
}
|
|
3232
3248
|
function ln(e) {
|
|
3233
3249
|
return Ce(e) ? ro(e, () => {
|
|
@@ -3239,7 +3255,7 @@ function fn(e, t, r) {
|
|
|
3239
3255
|
return r.update && (o = r.update(o, t, e), e.set(t, o)), o;
|
|
3240
3256
|
}
|
|
3241
3257
|
if (!r.insert)
|
|
3242
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3258
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(10) : "No insert provided for key not already in map");
|
|
3243
3259
|
const n = r.insert(t, e);
|
|
3244
3260
|
return e.set(t, n), n;
|
|
3245
3261
|
}
|
|
@@ -3251,20 +3267,20 @@ function oo(e) {
|
|
|
3251
3267
|
addCase(s, i) {
|
|
3252
3268
|
if (process.env.NODE_ENV !== "production") {
|
|
3253
3269
|
if (r.length > 0)
|
|
3254
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3270
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
|
|
3255
3271
|
if (n)
|
|
3256
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3272
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
3257
3273
|
}
|
|
3258
3274
|
const c = typeof s == "string" ? s : s.type;
|
|
3259
3275
|
if (!c)
|
|
3260
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3276
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(28) : "`builder.addCase` cannot be called with an empty action type");
|
|
3261
3277
|
if (c in t)
|
|
3262
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3278
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);
|
|
3263
3279
|
return t[c] = i, o;
|
|
3264
3280
|
},
|
|
3265
3281
|
addMatcher(s, i) {
|
|
3266
3282
|
if (process.env.NODE_ENV !== "production" && n)
|
|
3267
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3283
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
|
|
3268
3284
|
return r.push({
|
|
3269
3285
|
matcher: s,
|
|
3270
3286
|
reducer: i
|
|
@@ -3272,20 +3288,20 @@ function oo(e) {
|
|
|
3272
3288
|
},
|
|
3273
3289
|
addDefaultCase(s) {
|
|
3274
3290
|
if (process.env.NODE_ENV !== "production" && n)
|
|
3275
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3291
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(31) : "`builder.addDefaultCase` can only be called once");
|
|
3276
3292
|
return n = s, o;
|
|
3277
3293
|
}
|
|
3278
3294
|
};
|
|
3279
3295
|
return e(o), [t, r, n];
|
|
3280
3296
|
}
|
|
3281
|
-
function
|
|
3297
|
+
function ba(e) {
|
|
3282
3298
|
return typeof e == "function";
|
|
3283
3299
|
}
|
|
3284
|
-
function
|
|
3300
|
+
function wa(e, t) {
|
|
3285
3301
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
3286
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3302
|
+
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");
|
|
3287
3303
|
let [r, n, o] = oo(t), s;
|
|
3288
|
-
if (
|
|
3304
|
+
if (ba(e))
|
|
3289
3305
|
s = () => ln(e());
|
|
3290
3306
|
else {
|
|
3291
3307
|
const c = ln(e);
|
|
@@ -3310,7 +3326,7 @@ function ya(e, t) {
|
|
|
3310
3326
|
if (S === void 0) {
|
|
3311
3327
|
if (l === null)
|
|
3312
3328
|
return l;
|
|
3313
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3329
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(9) : "A case reducer on a non-draftable value must not return undefined");
|
|
3314
3330
|
}
|
|
3315
3331
|
return S;
|
|
3316
3332
|
}
|
|
@@ -3320,22 +3336,22 @@ function ya(e, t) {
|
|
|
3320
3336
|
}
|
|
3321
3337
|
return i.getInitialState = s, i;
|
|
3322
3338
|
}
|
|
3323
|
-
var
|
|
3339
|
+
var Ea = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", so = (e = 21) => {
|
|
3324
3340
|
let t = "", r = e;
|
|
3325
3341
|
for (; r--; )
|
|
3326
|
-
t +=
|
|
3342
|
+
t += Ea[Math.random() * 64 | 0];
|
|
3327
3343
|
return t;
|
|
3328
|
-
},
|
|
3329
|
-
function
|
|
3330
|
-
return (t) => e.some((r) =>
|
|
3344
|
+
}, Sa = (e, t) => ga(e) ? e.match(t) : e(t);
|
|
3345
|
+
function _a(...e) {
|
|
3346
|
+
return (t) => e.some((r) => Sa(r, t));
|
|
3331
3347
|
}
|
|
3332
|
-
var
|
|
3348
|
+
var va = ["name", "message", "stack", "code"], Ut = class {
|
|
3333
3349
|
constructor(e, t) {
|
|
3334
3350
|
/*
|
|
3335
3351
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
3336
3352
|
does not exist at runtime
|
|
3337
3353
|
*/
|
|
3338
|
-
|
|
3354
|
+
Nt(this, "_type");
|
|
3339
3355
|
this.payload = e, this.meta = t;
|
|
3340
3356
|
}
|
|
3341
3357
|
}, dn = class {
|
|
@@ -3344,13 +3360,13 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3344
3360
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
3345
3361
|
does not exist at runtime
|
|
3346
3362
|
*/
|
|
3347
|
-
|
|
3363
|
+
Nt(this, "_type");
|
|
3348
3364
|
this.payload = e, this.meta = t;
|
|
3349
3365
|
}
|
|
3350
|
-
},
|
|
3366
|
+
}, Oa = (e) => {
|
|
3351
3367
|
if (typeof e == "object" && e !== null) {
|
|
3352
3368
|
const t = {};
|
|
3353
|
-
for (const r of
|
|
3369
|
+
for (const r of va)
|
|
3354
3370
|
typeof e[r] == "string" && (t[r] = e[r]);
|
|
3355
3371
|
return t;
|
|
3356
3372
|
}
|
|
@@ -3377,7 +3393,7 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3377
3393
|
}
|
|
3378
3394
|
})), i = Oe(t + "/rejected", (u, d, l, f, S) => ({
|
|
3379
3395
|
payload: f,
|
|
3380
|
-
error: (n && n.serializeError ||
|
|
3396
|
+
error: (n && n.serializeError || Oa)(u || "Rejected"),
|
|
3381
3397
|
meta: {
|
|
3382
3398
|
...S || {},
|
|
3383
3399
|
arg: l,
|
|
@@ -3396,14 +3412,14 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3396
3412
|
b = j, x.abort();
|
|
3397
3413
|
}
|
|
3398
3414
|
const M = async function() {
|
|
3399
|
-
var A,
|
|
3415
|
+
var A, V;
|
|
3400
3416
|
let j;
|
|
3401
3417
|
try {
|
|
3402
3418
|
let B = (A = n == null ? void 0 : n.condition) == null ? void 0 : A.call(n, u, {
|
|
3403
3419
|
getState: l,
|
|
3404
3420
|
extra: f
|
|
3405
3421
|
});
|
|
3406
|
-
if (
|
|
3422
|
+
if (Ra(B) && (B = await B), B === !1 || x.signal.aborted)
|
|
3407
3423
|
throw {
|
|
3408
3424
|
name: "ConditionError",
|
|
3409
3425
|
message: "Aborted due to condition callback returning false."
|
|
@@ -3416,7 +3432,7 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3416
3432
|
});
|
|
3417
3433
|
}, x.signal.addEventListener("abort", m);
|
|
3418
3434
|
});
|
|
3419
|
-
d(s(S, u, (
|
|
3435
|
+
d(s(S, u, (V = n == null ? void 0 : n.getPendingMeta) == null ? void 0 : V.call(n, {
|
|
3420
3436
|
requestId: S,
|
|
3421
3437
|
arg: u
|
|
3422
3438
|
}, {
|
|
@@ -3429,15 +3445,15 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3429
3445
|
requestId: S,
|
|
3430
3446
|
signal: x.signal,
|
|
3431
3447
|
abort: N,
|
|
3432
|
-
rejectWithValue: (k, ee) => new
|
|
3448
|
+
rejectWithValue: (k, ee) => new Ut(k, ee),
|
|
3433
3449
|
fulfillWithValue: (k, ee) => new dn(k, ee)
|
|
3434
3450
|
})).then((k) => {
|
|
3435
|
-
if (k instanceof
|
|
3451
|
+
if (k instanceof Ut)
|
|
3436
3452
|
throw k;
|
|
3437
3453
|
return k instanceof dn ? o(k.payload, S, u, k.meta) : o(k, S, u);
|
|
3438
3454
|
})]);
|
|
3439
3455
|
} catch (B) {
|
|
3440
|
-
j = B instanceof
|
|
3456
|
+
j = B instanceof Ut ? i(null, S, u, B.payload, B.meta) : i(B, S, u);
|
|
3441
3457
|
} finally {
|
|
3442
3458
|
m && x.signal.removeEventListener("abort", m);
|
|
3443
3459
|
}
|
|
@@ -3448,7 +3464,7 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3448
3464
|
requestId: S,
|
|
3449
3465
|
arg: u,
|
|
3450
3466
|
unwrap() {
|
|
3451
|
-
return M.then(
|
|
3467
|
+
return M.then(Ca);
|
|
3452
3468
|
}
|
|
3453
3469
|
});
|
|
3454
3470
|
};
|
|
@@ -3457,52 +3473,52 @@ var Ea = ["name", "message", "stack", "code"], Mt = class {
|
|
|
3457
3473
|
pending: s,
|
|
3458
3474
|
rejected: i,
|
|
3459
3475
|
fulfilled: o,
|
|
3460
|
-
settled:
|
|
3476
|
+
settled: _a(i, o),
|
|
3461
3477
|
typePrefix: t
|
|
3462
3478
|
});
|
|
3463
3479
|
}
|
|
3464
3480
|
return e.withTypes = () => e, e;
|
|
3465
3481
|
})();
|
|
3466
|
-
function
|
|
3482
|
+
function Ca(e) {
|
|
3467
3483
|
if (e.meta && e.meta.rejectedWithValue)
|
|
3468
3484
|
throw e.payload;
|
|
3469
3485
|
if (e.error)
|
|
3470
3486
|
throw e.error;
|
|
3471
3487
|
return e.payload;
|
|
3472
3488
|
}
|
|
3473
|
-
function
|
|
3489
|
+
function Ra(e) {
|
|
3474
3490
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
3475
3491
|
}
|
|
3476
|
-
var
|
|
3477
|
-
function
|
|
3492
|
+
var Da = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
3493
|
+
function xa(e, t) {
|
|
3478
3494
|
return `${e}/${t}`;
|
|
3479
3495
|
}
|
|
3480
|
-
function
|
|
3496
|
+
function Pa({
|
|
3481
3497
|
creators: e
|
|
3482
3498
|
} = {}) {
|
|
3483
3499
|
var r;
|
|
3484
|
-
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[
|
|
3500
|
+
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[Da];
|
|
3485
3501
|
return function(o) {
|
|
3486
3502
|
const {
|
|
3487
3503
|
name: s,
|
|
3488
3504
|
reducerPath: i = s
|
|
3489
3505
|
} = o;
|
|
3490
3506
|
if (!s)
|
|
3491
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3507
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(11) : "`name` is a required option for createSlice");
|
|
3492
3508
|
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`");
|
|
3493
|
-
const c = (typeof o.reducers == "function" ? o.reducers(
|
|
3509
|
+
const c = (typeof o.reducers == "function" ? o.reducers(Na()) : o.reducers) || {}, u = Object.keys(c), d = {
|
|
3494
3510
|
sliceCaseReducersByName: {},
|
|
3495
3511
|
sliceCaseReducersByType: {},
|
|
3496
3512
|
actionCreators: {},
|
|
3497
3513
|
sliceMatchers: []
|
|
3498
3514
|
}, l = {
|
|
3499
3515
|
addCase(P, A) {
|
|
3500
|
-
const
|
|
3501
|
-
if (!
|
|
3502
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3503
|
-
if (
|
|
3504
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3505
|
-
return d.sliceCaseReducersByType[
|
|
3516
|
+
const V = typeof P == "string" ? P : P.type;
|
|
3517
|
+
if (!V)
|
|
3518
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(12) : "`context.addCase` cannot be called with an empty action type");
|
|
3519
|
+
if (V in d.sliceCaseReducersByType)
|
|
3520
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + V);
|
|
3521
|
+
return d.sliceCaseReducersByType[V] = A, l;
|
|
3506
3522
|
},
|
|
3507
3523
|
addMatcher(P, A) {
|
|
3508
3524
|
return d.sliceMatchers.push({
|
|
@@ -3518,28 +3534,28 @@ function Ra({
|
|
|
3518
3534
|
}
|
|
3519
3535
|
};
|
|
3520
3536
|
u.forEach((P) => {
|
|
3521
|
-
const A = c[P],
|
|
3537
|
+
const A = c[P], V = {
|
|
3522
3538
|
reducerName: P,
|
|
3523
|
-
type:
|
|
3539
|
+
type: xa(s, P),
|
|
3524
3540
|
createNotation: typeof o.reducers == "function"
|
|
3525
3541
|
};
|
|
3526
|
-
|
|
3542
|
+
ka(A) ? $a(V, A, l, t) : Ia(V, A, l);
|
|
3527
3543
|
});
|
|
3528
3544
|
function f() {
|
|
3529
3545
|
if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
|
|
3530
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3531
|
-
const [P = {}, A = [],
|
|
3546
|
+
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");
|
|
3547
|
+
const [P = {}, A = [], V = void 0] = typeof o.extraReducers == "function" ? oo(o.extraReducers) : [o.extraReducers], B = {
|
|
3532
3548
|
...P,
|
|
3533
3549
|
...d.sliceCaseReducersByType
|
|
3534
3550
|
};
|
|
3535
|
-
return
|
|
3551
|
+
return wa(o.initialState, (Z) => {
|
|
3536
3552
|
for (let k in B)
|
|
3537
3553
|
Z.addCase(k, B[k]);
|
|
3538
3554
|
for (let k of d.sliceMatchers)
|
|
3539
3555
|
Z.addMatcher(k.matcher, k.reducer);
|
|
3540
3556
|
for (let k of A)
|
|
3541
3557
|
Z.addMatcher(k.matcher, k.reducer);
|
|
3542
|
-
|
|
3558
|
+
V && Z.addDefaultCase(V);
|
|
3543
3559
|
});
|
|
3544
3560
|
}
|
|
3545
3561
|
const S = (P) => P, x = /* @__PURE__ */ new Map();
|
|
@@ -3551,13 +3567,13 @@ function Ra({
|
|
|
3551
3567
|
return m || (m = f()), m.getInitialState();
|
|
3552
3568
|
}
|
|
3553
3569
|
function M(P, A = !1) {
|
|
3554
|
-
function
|
|
3570
|
+
function V(Z) {
|
|
3555
3571
|
let k = Z[P];
|
|
3556
3572
|
if (typeof k > "u") {
|
|
3557
3573
|
if (A)
|
|
3558
3574
|
k = N();
|
|
3559
3575
|
else if (process.env.NODE_ENV !== "production")
|
|
3560
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3576
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
3561
3577
|
}
|
|
3562
3578
|
return k;
|
|
3563
3579
|
}
|
|
@@ -3569,7 +3585,7 @@ function Ra({
|
|
|
3569
3585
|
insert: () => {
|
|
3570
3586
|
const ee = {};
|
|
3571
3587
|
for (const [q, U] of Object.entries(o.selectors ?? {}))
|
|
3572
|
-
ee[q] =
|
|
3588
|
+
ee[q] = ja(U, Z, N, A);
|
|
3573
3589
|
return ee;
|
|
3574
3590
|
}
|
|
3575
3591
|
});
|
|
@@ -3578,9 +3594,9 @@ function Ra({
|
|
|
3578
3594
|
reducerPath: P,
|
|
3579
3595
|
getSelectors: B,
|
|
3580
3596
|
get selectors() {
|
|
3581
|
-
return B(
|
|
3597
|
+
return B(V);
|
|
3582
3598
|
},
|
|
3583
|
-
selectSlice:
|
|
3599
|
+
selectSlice: V
|
|
3584
3600
|
};
|
|
3585
3601
|
}
|
|
3586
3602
|
const j = {
|
|
@@ -3592,13 +3608,13 @@ function Ra({
|
|
|
3592
3608
|
...M(i),
|
|
3593
3609
|
injectInto(P, {
|
|
3594
3610
|
reducerPath: A,
|
|
3595
|
-
...
|
|
3611
|
+
...V
|
|
3596
3612
|
} = {}) {
|
|
3597
3613
|
const B = A ?? i;
|
|
3598
3614
|
return P.inject({
|
|
3599
3615
|
reducerPath: B,
|
|
3600
3616
|
reducer: b
|
|
3601
|
-
},
|
|
3617
|
+
}, V), {
|
|
3602
3618
|
...j,
|
|
3603
3619
|
...M(B, !0)
|
|
3604
3620
|
};
|
|
@@ -3607,21 +3623,21 @@ function Ra({
|
|
|
3607
3623
|
return j;
|
|
3608
3624
|
};
|
|
3609
3625
|
}
|
|
3610
|
-
function
|
|
3626
|
+
function ja(e, t, r, n) {
|
|
3611
3627
|
function o(s, ...i) {
|
|
3612
3628
|
let c = t(s);
|
|
3613
3629
|
if (typeof c > "u") {
|
|
3614
3630
|
if (n)
|
|
3615
3631
|
c = r();
|
|
3616
3632
|
else if (process.env.NODE_ENV !== "production")
|
|
3617
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3633
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
3618
3634
|
}
|
|
3619
3635
|
return e(c, ...i);
|
|
3620
3636
|
}
|
|
3621
3637
|
return o.unwrapped = e, o;
|
|
3622
3638
|
}
|
|
3623
|
-
var ao = /* @__PURE__ */
|
|
3624
|
-
function
|
|
3639
|
+
var ao = /* @__PURE__ */ Pa();
|
|
3640
|
+
function Na() {
|
|
3625
3641
|
function e(t, r) {
|
|
3626
3642
|
return {
|
|
3627
3643
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -3652,32 +3668,32 @@ function xa() {
|
|
|
3652
3668
|
asyncThunk: e
|
|
3653
3669
|
};
|
|
3654
3670
|
}
|
|
3655
|
-
function
|
|
3671
|
+
function Ia({
|
|
3656
3672
|
type: e,
|
|
3657
3673
|
reducerName: t,
|
|
3658
3674
|
createNotation: r
|
|
3659
3675
|
}, n, o) {
|
|
3660
3676
|
let s, i;
|
|
3661
3677
|
if ("reducer" in n) {
|
|
3662
|
-
if (r && !
|
|
3663
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3678
|
+
if (r && !Aa(n))
|
|
3679
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
3664
3680
|
s = n.reducer, i = n.prepare;
|
|
3665
3681
|
} else
|
|
3666
3682
|
s = n;
|
|
3667
3683
|
o.addCase(e, s).exposeCaseReducer(t, s).exposeAction(t, i ? Oe(e, i) : Oe(e));
|
|
3668
3684
|
}
|
|
3669
|
-
function
|
|
3685
|
+
function ka(e) {
|
|
3670
3686
|
return e._reducerDefinitionType === "asyncThunk";
|
|
3671
3687
|
}
|
|
3672
|
-
function
|
|
3688
|
+
function Aa(e) {
|
|
3673
3689
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
3674
3690
|
}
|
|
3675
|
-
function
|
|
3691
|
+
function $a({
|
|
3676
3692
|
type: e,
|
|
3677
3693
|
reducerName: t
|
|
3678
3694
|
}, r, n, o) {
|
|
3679
3695
|
if (!o)
|
|
3680
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3696
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
3681
3697
|
const {
|
|
3682
3698
|
payloadCreator: s,
|
|
3683
3699
|
fulfilled: i,
|
|
@@ -3687,18 +3703,18 @@ function Ia({
|
|
|
3687
3703
|
options: l
|
|
3688
3704
|
} = r, f = o(e, s, l);
|
|
3689
3705
|
n.exposeAction(t, f), i && n.addCase(f.fulfilled, i), c && n.addCase(f.pending, c), u && n.addCase(f.rejected, u), d && n.addMatcher(f.settled, d), n.exposeCaseReducer(t, {
|
|
3690
|
-
fulfilled: i ||
|
|
3691
|
-
pending: c ||
|
|
3692
|
-
rejected: u ||
|
|
3693
|
-
settled: d ||
|
|
3706
|
+
fulfilled: i || lt,
|
|
3707
|
+
pending: c || lt,
|
|
3708
|
+
rejected: u || lt,
|
|
3709
|
+
settled: d || lt
|
|
3694
3710
|
});
|
|
3695
3711
|
}
|
|
3696
|
-
function
|
|
3712
|
+
function lt() {
|
|
3697
3713
|
}
|
|
3698
|
-
var
|
|
3714
|
+
var Fa = (e, t) => {
|
|
3699
3715
|
if (typeof e != "function")
|
|
3700
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3701
|
-
}, Dr = "listenerMiddleware",
|
|
3716
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(32) : `${t} is not a function`);
|
|
3717
|
+
}, Dr = "listenerMiddleware", Ma = (e) => {
|
|
3702
3718
|
let {
|
|
3703
3719
|
type: t,
|
|
3704
3720
|
actionCreator: r,
|
|
@@ -3712,18 +3728,18 @@ var ka = (e, t) => {
|
|
|
3712
3728
|
t = r.type, o = r.match;
|
|
3713
3729
|
else if (n)
|
|
3714
3730
|
o = n;
|
|
3715
|
-
else if (!o) throw new Error(process.env.NODE_ENV === "production" ?
|
|
3716
|
-
return
|
|
3731
|
+
else if (!o) throw new Error(process.env.NODE_ENV === "production" ? X(21) : "Creating or removing a listener requires one of the known fields for matching an action");
|
|
3732
|
+
return Fa(s, "options.listener"), {
|
|
3717
3733
|
predicate: o,
|
|
3718
3734
|
type: t,
|
|
3719
3735
|
effect: s
|
|
3720
3736
|
};
|
|
3721
|
-
},
|
|
3737
|
+
}, Ua = Object.assign((e) => {
|
|
3722
3738
|
const {
|
|
3723
3739
|
type: t,
|
|
3724
3740
|
predicate: r,
|
|
3725
3741
|
effect: n
|
|
3726
|
-
} =
|
|
3742
|
+
} = Ma(e);
|
|
3727
3743
|
return {
|
|
3728
3744
|
id: so(),
|
|
3729
3745
|
effect: n,
|
|
@@ -3731,29 +3747,29 @@ var ka = (e, t) => {
|
|
|
3731
3747
|
predicate: r,
|
|
3732
3748
|
pending: /* @__PURE__ */ new Set(),
|
|
3733
3749
|
unsubscribe: () => {
|
|
3734
|
-
throw new Error(process.env.NODE_ENV === "production" ?
|
|
3750
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(22) : "Unsubscribe not initialized");
|
|
3735
3751
|
}
|
|
3736
3752
|
};
|
|
3737
3753
|
}, {
|
|
3738
|
-
withTypes: () =>
|
|
3739
|
-
}),
|
|
3740
|
-
withTypes: () =>
|
|
3754
|
+
withTypes: () => Ua
|
|
3755
|
+
}), Ba = Object.assign(Oe(`${Dr}/add`), {
|
|
3756
|
+
withTypes: () => Ba
|
|
3741
3757
|
});
|
|
3742
3758
|
Oe(`${Dr}/removeAll`);
|
|
3743
|
-
var
|
|
3744
|
-
withTypes: () =>
|
|
3759
|
+
var za = Object.assign(Oe(`${Dr}/remove`), {
|
|
3760
|
+
withTypes: () => za
|
|
3745
3761
|
});
|
|
3746
|
-
function
|
|
3762
|
+
function X(e) {
|
|
3747
3763
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
3748
3764
|
}
|
|
3749
|
-
const
|
|
3765
|
+
const Ta = {
|
|
3750
3766
|
showLogin: !1
|
|
3751
3767
|
}, lr = io("user/getUserInfo", async () => {
|
|
3752
3768
|
if (localStorage.getItem("token"))
|
|
3753
3769
|
return await Wn();
|
|
3754
3770
|
}), co = ao({
|
|
3755
3771
|
name: "user",
|
|
3756
|
-
initialState:
|
|
3772
|
+
initialState: Ta,
|
|
3757
3773
|
reducers: {
|
|
3758
3774
|
// 退出登录
|
|
3759
3775
|
loginOut(e) {
|
|
@@ -3773,9 +3789,9 @@ const Ua = {
|
|
|
3773
3789
|
t.isLogin = !1, t.userInfo = void 0;
|
|
3774
3790
|
});
|
|
3775
3791
|
}
|
|
3776
|
-
}),
|
|
3792
|
+
}), Va = co.actions, La = co.reducer, fr = (e, t) => t.some((r) => e instanceof r);
|
|
3777
3793
|
let hn, pn;
|
|
3778
|
-
function
|
|
3794
|
+
function qa() {
|
|
3779
3795
|
return hn || (hn = [
|
|
3780
3796
|
IDBDatabase,
|
|
3781
3797
|
IDBObjectStore,
|
|
@@ -3784,15 +3800,15 @@ function Va() {
|
|
|
3784
3800
|
IDBTransaction
|
|
3785
3801
|
]);
|
|
3786
3802
|
}
|
|
3787
|
-
function
|
|
3803
|
+
function Wa() {
|
|
3788
3804
|
return pn || (pn = [
|
|
3789
3805
|
IDBCursor.prototype.advance,
|
|
3790
3806
|
IDBCursor.prototype.continue,
|
|
3791
3807
|
IDBCursor.prototype.continuePrimaryKey
|
|
3792
3808
|
]);
|
|
3793
3809
|
}
|
|
3794
|
-
const dr = /* @__PURE__ */ new WeakMap(),
|
|
3795
|
-
function
|
|
3810
|
+
const dr = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap();
|
|
3811
|
+
function Ha(e) {
|
|
3796
3812
|
const t = new Promise((r, n) => {
|
|
3797
3813
|
const o = () => {
|
|
3798
3814
|
e.removeEventListener("success", s), e.removeEventListener("error", i);
|
|
@@ -3803,9 +3819,9 @@ function Ta(e) {
|
|
|
3803
3819
|
};
|
|
3804
3820
|
e.addEventListener("success", s), e.addEventListener("error", i);
|
|
3805
3821
|
});
|
|
3806
|
-
return
|
|
3822
|
+
return Ct.set(t, e), t;
|
|
3807
3823
|
}
|
|
3808
|
-
function
|
|
3824
|
+
function Ga(e) {
|
|
3809
3825
|
if (dr.has(e))
|
|
3810
3826
|
return;
|
|
3811
3827
|
const t = new Promise((r, n) => {
|
|
@@ -3840,26 +3856,26 @@ let hr = {
|
|
|
3840
3856
|
function uo(e) {
|
|
3841
3857
|
hr = e(hr);
|
|
3842
3858
|
}
|
|
3843
|
-
function
|
|
3844
|
-
return
|
|
3859
|
+
function Ya(e) {
|
|
3860
|
+
return Wa().includes(e) ? function(...t) {
|
|
3845
3861
|
return e.apply(pr(this), t), Me(this.request);
|
|
3846
3862
|
} : function(...t) {
|
|
3847
3863
|
return Me(e.apply(pr(this), t));
|
|
3848
3864
|
};
|
|
3849
3865
|
}
|
|
3850
|
-
function
|
|
3851
|
-
return typeof e == "function" ?
|
|
3866
|
+
function Ja(e) {
|
|
3867
|
+
return typeof e == "function" ? Ya(e) : (e instanceof IDBTransaction && Ga(e), fr(e, qa()) ? new Proxy(e, hr) : e);
|
|
3852
3868
|
}
|
|
3853
3869
|
function Me(e) {
|
|
3854
3870
|
if (e instanceof IDBRequest)
|
|
3855
|
-
return
|
|
3856
|
-
if (
|
|
3857
|
-
return
|
|
3858
|
-
const t =
|
|
3859
|
-
return t !== e && (
|
|
3860
|
-
}
|
|
3861
|
-
const pr = (e) =>
|
|
3862
|
-
function
|
|
3871
|
+
return Ha(e);
|
|
3872
|
+
if (Bt.has(e))
|
|
3873
|
+
return Bt.get(e);
|
|
3874
|
+
const t = Ja(e);
|
|
3875
|
+
return t !== e && (Bt.set(e, t), Ct.set(t, e)), t;
|
|
3876
|
+
}
|
|
3877
|
+
const pr = (e) => Ct.get(e);
|
|
3878
|
+
function Ka(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
|
|
3863
3879
|
const i = indexedDB.open(e, t), c = Me(i);
|
|
3864
3880
|
return n && i.addEventListener("upgradeneeded", (u) => {
|
|
3865
3881
|
n(Me(i.result), u.oldVersion, u.newVersion, Me(i.transaction), u);
|
|
@@ -3873,16 +3889,16 @@ function Ga(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
|
|
|
3873
3889
|
}).catch(() => {
|
|
3874
3890
|
}), c;
|
|
3875
3891
|
}
|
|
3876
|
-
const
|
|
3892
|
+
const Xa = ["get", "getKey", "getAll", "getAllKeys", "count"], Za = ["put", "add", "delete", "clear"], zt = /* @__PURE__ */ new Map();
|
|
3877
3893
|
function mn(e, t) {
|
|
3878
3894
|
if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
|
|
3879
3895
|
return;
|
|
3880
|
-
if (
|
|
3881
|
-
return
|
|
3882
|
-
const r = t.replace(/FromIndex$/, ""), n = t !== r, o =
|
|
3896
|
+
if (zt.get(t))
|
|
3897
|
+
return zt.get(t);
|
|
3898
|
+
const r = t.replace(/FromIndex$/, ""), n = t !== r, o = Za.includes(r);
|
|
3883
3899
|
if (
|
|
3884
3900
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
3885
|
-
!(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o ||
|
|
3901
|
+
!(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o || Xa.includes(r))
|
|
3886
3902
|
)
|
|
3887
3903
|
return;
|
|
3888
3904
|
const s = async function(i, ...c) {
|
|
@@ -3893,16 +3909,16 @@ function mn(e, t) {
|
|
|
3893
3909
|
o && u.done
|
|
3894
3910
|
]))[0];
|
|
3895
3911
|
};
|
|
3896
|
-
return
|
|
3912
|
+
return zt.set(t, s), s;
|
|
3897
3913
|
}
|
|
3898
3914
|
uo((e) => ({
|
|
3899
3915
|
...e,
|
|
3900
3916
|
get: (t, r, n) => mn(t, r) || e.get(t, r, n),
|
|
3901
3917
|
has: (t, r) => !!mn(t, r) || e.has(t, r)
|
|
3902
3918
|
}));
|
|
3903
|
-
const
|
|
3919
|
+
const Qa = ["continue", "continuePrimaryKey", "advance"], yn = {}, mr = /* @__PURE__ */ new WeakMap(), lo = /* @__PURE__ */ new WeakMap(), ec = {
|
|
3904
3920
|
get(e, t) {
|
|
3905
|
-
if (!
|
|
3921
|
+
if (!Qa.includes(t))
|
|
3906
3922
|
return e[t];
|
|
3907
3923
|
let r = yn[t];
|
|
3908
3924
|
return r || (r = yn[t] = function(...n) {
|
|
@@ -3910,13 +3926,13 @@ const Ka = ["continue", "continuePrimaryKey", "advance"], yn = {}, mr = /* @__PU
|
|
|
3910
3926
|
}), r;
|
|
3911
3927
|
}
|
|
3912
3928
|
};
|
|
3913
|
-
async function*
|
|
3929
|
+
async function* tc(...e) {
|
|
3914
3930
|
let t = this;
|
|
3915
3931
|
if (t instanceof IDBCursor || (t = await t.openCursor(...e)), !t)
|
|
3916
3932
|
return;
|
|
3917
3933
|
t = t;
|
|
3918
|
-
const r = new Proxy(t,
|
|
3919
|
-
for (lo.set(r, t),
|
|
3934
|
+
const r = new Proxy(t, ec);
|
|
3935
|
+
for (lo.set(r, t), Ct.set(r, pr(t)); t; )
|
|
3920
3936
|
yield r, t = await (mr.get(r) || t.continue()), mr.delete(r);
|
|
3921
3937
|
}
|
|
3922
3938
|
function gn(e, t) {
|
|
@@ -3925,23 +3941,23 @@ function gn(e, t) {
|
|
|
3925
3941
|
uo((e) => ({
|
|
3926
3942
|
...e,
|
|
3927
3943
|
get(t, r, n) {
|
|
3928
|
-
return gn(t, r) ?
|
|
3944
|
+
return gn(t, r) ? tc : e.get(t, r, n);
|
|
3929
3945
|
},
|
|
3930
3946
|
has(t, r) {
|
|
3931
3947
|
return gn(t, r) || e.has(t, r);
|
|
3932
3948
|
}
|
|
3933
3949
|
}));
|
|
3934
|
-
const We = "task",
|
|
3950
|
+
const We = "task", ot = () => Ka("zyjj", 2, {
|
|
3935
3951
|
upgrade(e) {
|
|
3936
3952
|
e.createObjectStore(We);
|
|
3937
3953
|
}
|
|
3938
|
-
}),
|
|
3954
|
+
}), rc = async (e, t = We) => (await ot()).put(t, e, e.id), nc = async (e = We) => (await ot()).getAll(e), oc = async (e, t = We) => (await ot()).get(t, e), sc = async (e, t, r = We) => (await ot()).put(r, t, e), ic = async (e, t = We) => (await ot()).delete(t, e), ac = {
|
|
3939
3955
|
taskCallback: {},
|
|
3940
3956
|
listenerCallback: []
|
|
3941
3957
|
}, fo = io("mqtt/initMqtt", async (e, { dispatch: t }) => {
|
|
3942
3958
|
const r = await Gn();
|
|
3943
3959
|
console.log("[mqtt] mqtt info", r);
|
|
3944
|
-
const n = r.topic, o =
|
|
3960
|
+
const n = r.topic, o = qo.connect(`mqtt://${r.host}`, {
|
|
3945
3961
|
keepalive: 60,
|
|
3946
3962
|
clientId: r.client_id,
|
|
3947
3963
|
username: r.username,
|
|
@@ -3957,7 +3973,7 @@ const We = "task", nt = () => Ga("zyjj", 2, {
|
|
|
3957
3973
|
}), o.on("error", (s) => console.log("[mqtt] err", s)), o.on("close", () => console.log("[mqtt] close")), o.on("disconnect", () => console.log("[mqtt] disconnect")), o;
|
|
3958
3974
|
}), ho = ao({
|
|
3959
3975
|
name: "mqtt",
|
|
3960
|
-
initialState:
|
|
3976
|
+
initialState: ac,
|
|
3961
3977
|
reducers: {
|
|
3962
3978
|
onMqttResponse(e, t) {
|
|
3963
3979
|
const r = t.payload;
|
|
@@ -3988,7 +4004,7 @@ const We = "task", nt = () => Ga("zyjj", 2, {
|
|
|
3988
4004
|
t.client = r.payload;
|
|
3989
4005
|
});
|
|
3990
4006
|
}
|
|
3991
|
-
}), po = ho.actions,
|
|
4007
|
+
}), po = ho.actions, cc = ho.reducer;
|
|
3992
4008
|
var yr;
|
|
3993
4009
|
(function(e) {
|
|
3994
4010
|
e[e.MqttListener = 0] = "MqttListener", e[e.CloudFileUpload = 1] = "CloudFileUpload", e[e.CloudFileDownload = 2] = "CloudFileDownload", e[e.GetInitData = 3] = "GetInitData", 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";
|
|
@@ -4001,11 +4017,11 @@ var br;
|
|
|
4001
4017
|
(function(e) {
|
|
4002
4018
|
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";
|
|
4003
4019
|
})(br || (br = {}));
|
|
4004
|
-
const
|
|
4020
|
+
const ft = 60;
|
|
4005
4021
|
function mo(e) {
|
|
4006
|
-
const [t, r] = Pe(
|
|
4007
|
-
|
|
4008
|
-
t == 0 && (clearInterval(n.current), r(
|
|
4022
|
+
const [t, r] = Pe(ft), n = Lo();
|
|
4023
|
+
Tt(() => {
|
|
4024
|
+
t == 0 && (clearInterval(n.current), r(ft));
|
|
4009
4025
|
}, [t]);
|
|
4010
4026
|
const o = () => {
|
|
4011
4027
|
e.callback().then(() => {
|
|
@@ -4014,36 +4030,36 @@ function mo(e) {
|
|
|
4014
4030
|
}, 1e3);
|
|
4015
4031
|
});
|
|
4016
4032
|
};
|
|
4017
|
-
return _.jsxs(wr, { children: [_.jsx(Ae, { onChange: e.onChange, placeholder: "输入验证码" }), _.jsx(
|
|
4033
|
+
return _.jsxs(wr, { children: [_.jsx(Ae, { onChange: e.onChange, placeholder: "输入验证码" }), _.jsx($e, { disabled: t != ft, type: "primary", onClick: o, children: t != ft ? `剩余${t}秒` : "获取验证码" })] });
|
|
4018
4034
|
}
|
|
4019
|
-
const
|
|
4035
|
+
const uc = (e) => {
|
|
4020
4036
|
const [t, r] = Pe(""), [n, o] = Pe(!0), s = (c) => {
|
|
4021
|
-
n ?
|
|
4037
|
+
n ? wi(c).then((u) => {
|
|
4022
4038
|
xe.success("登录成功"), localStorage.setItem("token", u), e.loginSuccess(u);
|
|
4023
|
-
}) :
|
|
4039
|
+
}) : Si(c).then(() => {
|
|
4024
4040
|
xe.success("注册成功,请登录"), o(!0);
|
|
4025
4041
|
});
|
|
4026
4042
|
}, i = () => qn(t);
|
|
4027
|
-
return _.jsxs(ie, { autoComplete: "off", onSubmit: s, children: [_.jsx(ie.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: _.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: _.jsx(Ae.Password, { placeholder: "输入密码" }) }), n ? null : _.jsx(ie.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: _.jsx(mo, { callback: i }) }), _.jsx(ie.Item, { wrapperCol: { offset: 5 }, children: _.jsxs(wr, { children: [_.jsx(
|
|
4043
|
+
return _.jsxs(ie, { autoComplete: "off", onSubmit: s, children: [_.jsx(ie.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: _.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: _.jsx(Ae.Password, { placeholder: "输入密码" }) }), n ? null : _.jsx(ie.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: _.jsx(mo, { callback: i }) }), _.jsx(ie.Item, { wrapperCol: { offset: 5 }, children: _.jsxs(wr, { children: [_.jsx($e, { type: "primary", htmlType: "submit", children: n ? "立即登录" : "注册账号" }), _.jsx($e, { type: "text", onClick: () => o((c) => !c), children: n ? "新用户?" : "已有账号?" }), n ? _.jsx($e, { onClick: () => e.onForget(), type: "text", children: "忘记密码?" }) : null] }) })] });
|
|
4028
4044
|
};
|
|
4029
|
-
function
|
|
4045
|
+
function lc(e) {
|
|
4030
4046
|
const [t, r] = Pe(""), n = (s) => {
|
|
4031
4047
|
if (s.password_repeat != s.password) {
|
|
4032
4048
|
xe.error("新旧密码不一致");
|
|
4033
4049
|
return;
|
|
4034
4050
|
}
|
|
4035
4051
|
const { email: i, password: c, token: u } = s;
|
|
4036
|
-
|
|
4052
|
+
_i({ email: i, password: c, token: u }).then(() => {
|
|
4037
4053
|
xe.success("密码重置成功,请登录"), e.onLogin();
|
|
4038
4054
|
});
|
|
4039
4055
|
}, o = () => qn(t);
|
|
4040
|
-
return _.jsx("div", { children: _.jsxs(ie, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [_.jsx(ie.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: _.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), _.jsx(ie.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: _.jsx(mo, { callback: o }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: _.jsx(Ae, { type: "password", placeholder: "输入新密码" }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: _.jsx(Ae, { type: "password", placeholder: "再输入一遍新密码" }) }), _.jsx(ie.Item, { wrapperCol: { offset: 5 }, children: _.jsxs(wr, { children: [_.jsx(
|
|
4056
|
+
return _.jsx("div", { children: _.jsxs(ie, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [_.jsx(ie.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: _.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), _.jsx(ie.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: _.jsx(mo, { callback: o }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: _.jsx(Ae, { type: "password", placeholder: "输入新密码" }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: _.jsx(Ae, { type: "password", placeholder: "再输入一遍新密码" }) }), _.jsx(ie.Item, { wrapperCol: { offset: 5 }, children: _.jsxs(wr, { children: [_.jsx($e, { type: "primary", htmlType: "submit", children: "立即重置" }), _.jsx($e, { onClick: () => e.onLogin(), type: "text", children: "重新登录" })] }) })] }) });
|
|
4041
4057
|
}
|
|
4042
|
-
function
|
|
4058
|
+
function Pc(e) {
|
|
4043
4059
|
const [t, r] = Pe(!1);
|
|
4044
|
-
return _.jsx(Bo, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? _.jsx(
|
|
4060
|
+
return _.jsx(Bo, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? _.jsx(lc, { onLogin: () => r(!1) }) : _.jsx(uc, { loginSuccess: e.loginSuccess, onForget: () => r(!0) }) });
|
|
4045
4061
|
}
|
|
4046
|
-
function
|
|
4062
|
+
function jc(e) {
|
|
4047
4063
|
const [t, r] = Pe([]), [n, o] = Pe(!1), [s, i] = Pe({
|
|
4048
4064
|
sizeCanChange: !0,
|
|
4049
4065
|
showTotal: !0,
|
|
@@ -4056,71 +4072,71 @@ function Rc(e) {
|
|
|
4056
4072
|
r(d.list), i((l) => (l.total = d.total, l)), o(!1);
|
|
4057
4073
|
});
|
|
4058
4074
|
};
|
|
4059
|
-
return
|
|
4075
|
+
return Tt(() => {
|
|
4060
4076
|
u();
|
|
4061
|
-
}, [s.current, s.pageSize]),
|
|
4077
|
+
}, [s.current, s.pageSize]), Tt(() => {
|
|
4062
4078
|
u(), e.refresh && e.refresh(() => u());
|
|
4063
4079
|
}, []), _.jsxs(_.Fragment, { children: [e.search ? _.jsxs(ie, { form: c, layout: "inline", onSubmit: u, children: [e.search.map((d) => {
|
|
4064
4080
|
let l = _.jsx(_.Fragment, {});
|
|
4065
4081
|
const f = d.data;
|
|
4066
4082
|
return d.tp == "input" ? l = _.jsx(Ae, { allowClear: !0, placeholder: f.placeholder }) : d.tp == "custom" && (l = d.ele), _.jsx(ie.Item, { label: d.label, field: d.field, children: l }, d.field);
|
|
4067
|
-
}), _.jsx(ie.Item, { children: _.jsx(
|
|
4083
|
+
}), _.jsx(ie.Item, { children: _.jsx($e, { htmlType: "submit", children: "搜索" }) })] }) : null, _.jsx(zo, { 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 })] });
|
|
4068
4084
|
}
|
|
4069
|
-
const
|
|
4070
|
-
function
|
|
4085
|
+
const fc = me(() => import("./ElementTypeInput-khx9Bnra.js")), dc = me(() => import("./ElementTypeSelect-BnBYykvw.js")), hc = me(() => import("./ElementTypeTextArea-DUp-KoHF.js")), bn = me(() => import("./ElementTypeText-Bj0Gtt5k.js").then((e) => e.E)), pc = me(() => import("./ElementTypeAudio-Cr9cYS9F.js")), mc = me(() => import("./ElementTypeUpload-DiIOzcTc.js")), yc = me(() => import("./ElementTypeNumber-DvmxbEW2.js")), gc = me(() => import("./ElementTypeImageList-x-OFmgPd.js")), bc = me(() => import("./ElementTypeImage-g1KwCGd5.js")), wc = me(() => import("./ElementTypeAlert-CrTUt6Y8.js")), Ec = me(() => import("./ElementTypeVideo-BPdozUUx.js")), Sc = me(() => import("./ElementTypeNumber-DvmxbEW2.js"));
|
|
4086
|
+
function Nc(e) {
|
|
4071
4087
|
const { tp: t, isInput: r, data: n, value: o, onChange: s } = e;
|
|
4072
4088
|
switch (t) {
|
|
4073
4089
|
case se.Input:
|
|
4074
|
-
return _.jsx(
|
|
4090
|
+
return _.jsx(fc, { value: o, onChange: s, data: n });
|
|
4075
4091
|
case se.Select:
|
|
4076
|
-
return _.jsx(
|
|
4092
|
+
return _.jsx(dc, { value: o, onChange: s, data: n });
|
|
4077
4093
|
case se.TextArea:
|
|
4078
|
-
return r ? _.jsx(
|
|
4094
|
+
return r ? _.jsx(hc, { value: o, onChange: s, data: n }) : _.jsx(bn, { value: o, onChange: s, data: n });
|
|
4079
4095
|
case se.FileUpload:
|
|
4080
|
-
return _.jsx(
|
|
4096
|
+
return _.jsx(mc, { value: o, onChange: s, data: n });
|
|
4081
4097
|
case se.Slider:
|
|
4082
|
-
return _.jsx(
|
|
4098
|
+
return _.jsx(Sc, { value: o, onChange: s, data: n });
|
|
4083
4099
|
case se.Audio:
|
|
4084
|
-
return _.jsx(
|
|
4100
|
+
return _.jsx(pc, { value: o, onChange: s, data: n });
|
|
4085
4101
|
case se.Number:
|
|
4086
|
-
return _.jsx(
|
|
4102
|
+
return _.jsx(yc, { value: o, onChange: s, data: n });
|
|
4087
4103
|
case se.ImageList:
|
|
4088
|
-
return _.jsx(
|
|
4104
|
+
return _.jsx(gc, { value: o, onChange: s, data: n });
|
|
4089
4105
|
case se.Image:
|
|
4090
|
-
return _.jsx(
|
|
4106
|
+
return _.jsx(bc, { value: o, onChange: s, data: n });
|
|
4091
4107
|
case se.Alert:
|
|
4092
|
-
return _.jsx(
|
|
4108
|
+
return _.jsx(wc, { value: o, onChange: s, data: n });
|
|
4093
4109
|
case se.Video:
|
|
4094
|
-
return _.jsx(
|
|
4110
|
+
return _.jsx(Ec, { value: o, onChange: s, data: n });
|
|
4095
4111
|
case se.MarkDown:
|
|
4096
4112
|
return _.jsx(bn, { value: o, onChange: s, data: n });
|
|
4097
4113
|
default:
|
|
4098
4114
|
return _.jsx("div", { children: "组件不支持,请升级到最新版本!" });
|
|
4099
4115
|
}
|
|
4100
4116
|
}
|
|
4101
|
-
const
|
|
4102
|
-
GetAllTool:
|
|
4103
|
-
ToolInc:
|
|
4104
|
-
UpdateUserInfo:
|
|
4105
|
-
GetAppInfo:
|
|
4106
|
-
CostPoint:
|
|
4117
|
+
const Ic = {
|
|
4118
|
+
GetAllTool: Ri,
|
|
4119
|
+
ToolInc: xi,
|
|
4120
|
+
UpdateUserInfo: vi,
|
|
4121
|
+
GetAppInfo: Ei,
|
|
4122
|
+
CostPoint: Oi,
|
|
4107
4123
|
GetUserInfo: Wn,
|
|
4108
|
-
UserDownloadMaterial:
|
|
4124
|
+
UserDownloadMaterial: Ai,
|
|
4109
4125
|
GetMqttTaskClientInfo: Gn,
|
|
4110
|
-
AddTask:
|
|
4111
|
-
GetTaskInfo:
|
|
4126
|
+
AddTask: Ni,
|
|
4127
|
+
GetTaskInfo: Ii,
|
|
4112
4128
|
GetTencentCosInfo: Hn,
|
|
4113
|
-
GetMaterialUrl:
|
|
4114
|
-
GetMaterialTagList:
|
|
4115
|
-
GetToolList:
|
|
4116
|
-
GetToolTagList:
|
|
4117
|
-
GetToolDetail:
|
|
4118
|
-
},
|
|
4129
|
+
GetMaterialUrl: $i,
|
|
4130
|
+
GetMaterialTagList: ki,
|
|
4131
|
+
GetToolList: Ci,
|
|
4132
|
+
GetToolTagList: Pi,
|
|
4133
|
+
GetToolDetail: Di
|
|
4134
|
+
}, kc = {
|
|
4119
4135
|
ToolType: Zt,
|
|
4120
4136
|
LocalActionReqType: Gt,
|
|
4121
4137
|
LocalActionResType: Yt,
|
|
4122
4138
|
MQTTEventType: ke,
|
|
4123
|
-
FileSource:
|
|
4139
|
+
FileSource: Ze,
|
|
4124
4140
|
LocalTaskStatus: Jt,
|
|
4125
4141
|
LocalTaskEventType: Kt,
|
|
4126
4142
|
ToolTaskType: tr,
|
|
@@ -4132,50 +4148,53 @@ const xc = {
|
|
|
4132
4148
|
ToolEventType: yr,
|
|
4133
4149
|
WorkActionType: br,
|
|
4134
4150
|
TaskActionType: gr
|
|
4135
|
-
},
|
|
4151
|
+
}, Ac = {
|
|
4136
4152
|
render: {
|
|
4137
|
-
renderTime:
|
|
4138
|
-
renderEllipsis:
|
|
4139
|
-
renderCopy:
|
|
4153
|
+
renderTime: Vi,
|
|
4154
|
+
renderEllipsis: qi,
|
|
4155
|
+
renderCopy: Li
|
|
4140
4156
|
},
|
|
4141
4157
|
utils: {
|
|
4142
|
-
file2ToolParamFile:
|
|
4143
|
-
seconds2TimeStr:
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4158
|
+
file2ToolParamFile: fi,
|
|
4159
|
+
seconds2TimeStr: di,
|
|
4160
|
+
object2query: Vn,
|
|
4161
|
+
paramReplace: yi,
|
|
4162
|
+
object2urlParam: gi,
|
|
4163
|
+
convertFileSize: li,
|
|
4164
|
+
downloadFile: bi,
|
|
4165
|
+
downloadFileDirect: Ln
|
|
4166
|
+
},
|
|
4167
|
+
cloud: {
|
|
4168
|
+
getTencentCosInfo: hi,
|
|
4169
|
+
getAliYunOssInfo: pi
|
|
4151
4170
|
},
|
|
4152
4171
|
db: {
|
|
4153
|
-
addTask:
|
|
4154
|
-
getAllData:
|
|
4155
|
-
getData:
|
|
4156
|
-
updateData:
|
|
4157
|
-
deleteData:
|
|
4172
|
+
addTask: rc,
|
|
4173
|
+
getAllData: nc,
|
|
4174
|
+
getData: oc,
|
|
4175
|
+
updateData: sc,
|
|
4176
|
+
deleteData: ic
|
|
4158
4177
|
}
|
|
4159
|
-
},
|
|
4160
|
-
UserReducer:
|
|
4161
|
-
UserAction:
|
|
4178
|
+
}, $c = {
|
|
4179
|
+
UserReducer: La,
|
|
4180
|
+
UserAction: Va,
|
|
4162
4181
|
GetUserInfo: lr,
|
|
4163
|
-
MqttReducer:
|
|
4182
|
+
MqttReducer: cc,
|
|
4164
4183
|
MqttAction: po,
|
|
4165
4184
|
InitMqtt: fo
|
|
4166
4185
|
};
|
|
4167
4186
|
export {
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4187
|
+
Ic as A,
|
|
4188
|
+
kc as E,
|
|
4189
|
+
fi as F,
|
|
4190
|
+
Nc as L,
|
|
4191
|
+
jc as P,
|
|
4192
|
+
$c as S,
|
|
4193
|
+
Ac as T,
|
|
4194
|
+
Pc as U,
|
|
4195
|
+
xc as a,
|
|
4196
|
+
Fi as c,
|
|
4197
|
+
bi as d,
|
|
4198
|
+
Mi as g,
|
|
4180
4199
|
_ as j
|
|
4181
4200
|
};
|