@yuku123/z-project-frontend-component 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import dt, { useState as
|
|
2
|
-
import { useNavigate as pt, useSearchParams as
|
|
3
|
-
import { Layout as Qt, Alert as ht, Space as J, Button as W, Typography as
|
|
4
|
-
import { BugOutlined as Fr, ReloadOutlined as tr, FileTextOutlined as At, CheckCircleOutlined as mt, PlusOutlined as Br, ApiOutlined as yt, SaveOutlined as qr, ArrowLeftOutlined as rr, SendOutlined as zr, RobotOutlined as
|
|
1
|
+
import dt, { useState as $, useEffect as ve, useRef as Nr } from "react";
|
|
2
|
+
import { useNavigate as pt, useSearchParams as kr, useParams as vr, Routes as Dr, Route as Be, Navigate as Ir } from "react-router-dom";
|
|
3
|
+
import { Layout as Qt, Alert as ht, Space as J, Button as W, Typography as X, Select as Je, Input as ne, Card as Re, Tabs as Lr, Table as Zt, message as K, Tag as he, Popconfirm as er, Form as pe, Radio as et, Spin as at, Statistic as tt, Empty as Ur } from "antd";
|
|
4
|
+
import { BugOutlined as Fr, ReloadOutlined as tr, FileTextOutlined as At, CheckCircleOutlined as mt, PlusOutlined as Br, ApiOutlined as yt, SaveOutlined as qr, ArrowLeftOutlined as rr, SendOutlined as zr, RobotOutlined as Hr, UserOutlined as $r } from "@ant-design/icons";
|
|
5
5
|
import "@ant-design/pro-components";
|
|
6
6
|
var qe = { exports: {} }, Ce = {};
|
|
7
7
|
/**
|
|
@@ -51,7 +51,7 @@ function Vr() {
|
|
|
51
51
|
function e(i) {
|
|
52
52
|
if (i == null) return null;
|
|
53
53
|
if (typeof i == "function")
|
|
54
|
-
return i.$$typeof ===
|
|
54
|
+
return i.$$typeof === Y ? null : i.displayName || i.name || null;
|
|
55
55
|
if (typeof i == "string") return i;
|
|
56
56
|
switch (i) {
|
|
57
57
|
case b:
|
|
@@ -60,11 +60,11 @@ function Vr() {
|
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case h:
|
|
62
62
|
return "StrictMode";
|
|
63
|
-
case v:
|
|
64
|
-
return "Suspense";
|
|
65
63
|
case k:
|
|
64
|
+
return "Suspense";
|
|
65
|
+
case v:
|
|
66
66
|
return "SuspenseList";
|
|
67
|
-
case
|
|
67
|
+
case G:
|
|
68
68
|
return "Activity";
|
|
69
69
|
}
|
|
70
70
|
if (typeof i == "object")
|
|
@@ -205,7 +205,7 @@ function Vr() {
|
|
|
205
205
|
var I = Object.keys(y).filter(function(Ae) {
|
|
206
206
|
return Ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
A = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
208
|
+
A = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}", H[_ + A] || (I = 0 < I.length ? "{" + I.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -216,7 +216,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
_,
|
|
217
217
|
I,
|
|
218
218
|
_
|
|
219
|
-
),
|
|
219
|
+
), H[_ + A] = !0);
|
|
220
220
|
}
|
|
221
221
|
if (_ = null, T !== void 0 && (r(T), _ = "" + T), a(y) && (r(y.key), _ = "" + y.key), "key" in y) {
|
|
222
222
|
T = {};
|
|
@@ -241,7 +241,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
241
241
|
function R(i) {
|
|
242
242
|
return typeof i == "object" && i !== null && i.$$typeof === j;
|
|
243
243
|
}
|
|
244
|
-
var w = dt, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), g = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"),
|
|
244
|
+
var w = dt, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), g = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), Q = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ue = Object.prototype.hasOwnProperty, z = Array.isArray, Z = console.createTask ? console.createTask : function() {
|
|
245
245
|
return null;
|
|
246
246
|
};
|
|
247
247
|
w = {
|
|
@@ -252,7 +252,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
var te, ae = {}, me = w.react_stack_bottom_frame.bind(
|
|
253
253
|
w,
|
|
254
254
|
o
|
|
255
|
-
)(), fe = Z(n(o)),
|
|
255
|
+
)(), fe = Z(n(o)), H = {};
|
|
256
256
|
Pe.Fragment = b, Pe.jsx = function(i, y, T) {
|
|
257
257
|
var A = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
258
258
|
return u(
|
|
@@ -300,16 +300,16 @@ const { toString: Wr } = Object.prototype, { getPrototypeOf: Se } = Object, { it
|
|
|
300
300
|
}, Kr = (e, t) => e != null && De(e, t) ? e[t] : void 0, bt = /* @__PURE__ */ ((e) => (t) => {
|
|
301
301
|
const r = Wr.call(t);
|
|
302
302
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
303
|
-
})(/* @__PURE__ */ Object.create(null)), se = (e) => (e = e.toLowerCase(), (t) => bt(t) === e),
|
|
303
|
+
})(/* @__PURE__ */ Object.create(null)), se = (e) => (e = e.toLowerCase(), (t) => bt(t) === e), Ge = (e) => (t) => typeof t === e, { isArray: Ee } = Array, Oe = Ge("undefined");
|
|
304
304
|
function Te(e) {
|
|
305
305
|
return e !== null && !Oe(e) && e.constructor !== null && !Oe(e.constructor) && M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
306
306
|
}
|
|
307
307
|
const or = se("ArrayBuffer");
|
|
308
|
-
function
|
|
308
|
+
function Xr(e) {
|
|
309
309
|
let t;
|
|
310
310
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && or(e.buffer), t;
|
|
311
311
|
}
|
|
312
|
-
const
|
|
312
|
+
const Gr = Ge("string"), M = Ge("function"), ir = Ge("number"), _e = (e) => e !== null && typeof e == "object", Yr = (e) => e === !0 || e === !1, $e = (e) => {
|
|
313
313
|
if (!_e(e))
|
|
314
314
|
return !1;
|
|
315
315
|
const t = Se(e);
|
|
@@ -329,9 +329,9 @@ const Yr = Ye("string"), M = Ye("function"), ir = Ye("number"), _e = (e) => e !=
|
|
|
329
329
|
function an() {
|
|
330
330
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
331
331
|
}
|
|
332
|
-
const Nt = an(),
|
|
332
|
+
const Nt = an(), kt = typeof Nt.FormData < "u" ? Nt.FormData : void 0, ln = (e) => {
|
|
333
333
|
if (!e) return !1;
|
|
334
|
-
if (
|
|
334
|
+
if (kt && e instanceof kt) return !0;
|
|
335
335
|
const t = Se(e);
|
|
336
336
|
if (!t || t === Object.prototype || !M(e.append)) return !1;
|
|
337
337
|
const r = bt(e);
|
|
@@ -376,7 +376,7 @@ function lt(...e) {
|
|
|
376
376
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
377
377
|
return;
|
|
378
378
|
const c = t && typeof a == "string" && ar(n, a) || a, f = We(n, c) ? n[c] : void 0;
|
|
379
|
-
|
|
379
|
+
$e(f) && $e(o) ? n[c] = lt(f, o) : $e(o) ? n[c] = lt({}, o) : Ee(o) ? n[c] = o.slice() : (!r || !Oe(o)) && (n[c] = o);
|
|
380
380
|
};
|
|
381
381
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
382
382
|
const c = e[o];
|
|
@@ -489,10 +489,10 @@ const mn = (e, t, r, { allOwnKeys: n } = {}) => (Le(
|
|
|
489
489
|
return Ee(e) ? n(e) : n(String(e).split(t)), r;
|
|
490
490
|
}, Pn = () => {
|
|
491
491
|
}, Nn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
492
|
-
function
|
|
492
|
+
function kn(e) {
|
|
493
493
|
return !!(e && M(e.append) && e[sr] === "FormData" && e[Ie]);
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const vn = (e) => {
|
|
496
496
|
const t = /* @__PURE__ */ new WeakSet(), r = (n) => {
|
|
497
497
|
if (_e(n)) {
|
|
498
498
|
if (t.has(n))
|
|
@@ -524,12 +524,12 @@ const kn = (e) => {
|
|
|
524
524
|
isArrayBuffer: or,
|
|
525
525
|
isBuffer: Te,
|
|
526
526
|
isFormData: ln,
|
|
527
|
-
isArrayBufferView:
|
|
528
|
-
isString:
|
|
527
|
+
isArrayBufferView: Xr,
|
|
528
|
+
isString: Gr,
|
|
529
529
|
isNumber: ir,
|
|
530
|
-
isBoolean:
|
|
530
|
+
isBoolean: Yr,
|
|
531
531
|
isObject: _e,
|
|
532
|
-
isPlainObject:
|
|
532
|
+
isPlainObject: $e,
|
|
533
533
|
isEmptyObject: Qr,
|
|
534
534
|
isReadableStream: un,
|
|
535
535
|
isRequest: fn,
|
|
@@ -575,8 +575,8 @@ const kn = (e) => {
|
|
|
575
575
|
findKey: ar,
|
|
576
576
|
global: be,
|
|
577
577
|
isContextDefined: lr,
|
|
578
|
-
isSpecCompliantForm:
|
|
579
|
-
toJSONObject:
|
|
578
|
+
isSpecCompliantForm: kn,
|
|
579
|
+
toJSONObject: vn,
|
|
580
580
|
isAsyncFn: Dn,
|
|
581
581
|
isThenable: In,
|
|
582
582
|
setImmediate: ur,
|
|
@@ -625,23 +625,23 @@ function qn(e) {
|
|
|
625
625
|
}
|
|
626
626
|
return t === 0 && r === e.length ? e : e.slice(t, r);
|
|
627
627
|
}
|
|
628
|
-
const zn = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"),
|
|
628
|
+
const zn = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), Hn = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
629
629
|
function gt(e, t) {
|
|
630
630
|
return l.isArray(e) ? e.map((r) => gt(r, t)) : qn(String(e).replace(t, ""));
|
|
631
631
|
}
|
|
632
|
-
const
|
|
632
|
+
const $n = (e) => gt(e, zn), Mn = (e) => gt(e, Hn);
|
|
633
633
|
function dr(e) {
|
|
634
634
|
const t = /* @__PURE__ */ Object.create(null);
|
|
635
635
|
return l.forEach(e.toJSON(), (r, n) => {
|
|
636
636
|
t[n] = Mn(r);
|
|
637
637
|
}), t;
|
|
638
638
|
}
|
|
639
|
-
const
|
|
639
|
+
const vt = Symbol("internals");
|
|
640
640
|
function Ne(e) {
|
|
641
641
|
return e && String(e).trim().toLowerCase();
|
|
642
642
|
}
|
|
643
643
|
function Me(e) {
|
|
644
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(Me) :
|
|
644
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(Me) : $n(String(e));
|
|
645
645
|
}
|
|
646
646
|
function Vn(e) {
|
|
647
647
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -794,7 +794,7 @@ let F = class {
|
|
|
794
794
|
return r.forEach((s) => n.set(s)), n;
|
|
795
795
|
}
|
|
796
796
|
static accessor(t) {
|
|
797
|
-
const n = (this[
|
|
797
|
+
const n = (this[vt] = this[vt] = {
|
|
798
798
|
accessors: {}
|
|
799
799
|
}).accessors, s = this.prototype;
|
|
800
800
|
function o(a) {
|
|
@@ -822,8 +822,8 @@ l.reduceDescriptors(F.prototype, ({ value: e }, t) => {
|
|
|
822
822
|
};
|
|
823
823
|
});
|
|
824
824
|
l.freezeMethods(F);
|
|
825
|
-
const
|
|
826
|
-
function
|
|
825
|
+
const Xn = "[REDACTED ****]";
|
|
826
|
+
function Gn(e) {
|
|
827
827
|
if (l.hasOwnProp(e, "toJSON"))
|
|
828
828
|
return !0;
|
|
829
829
|
let t = Object.getPrototypeOf(e);
|
|
@@ -834,7 +834,7 @@ function Yn(e) {
|
|
|
834
834
|
}
|
|
835
835
|
return !1;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Yn(e, t) {
|
|
838
838
|
const r = new Set(t.map((o) => String(o).toLowerCase())), n = [], s = (o) => {
|
|
839
839
|
if (o === null || typeof o != "object" || l.isBuffer(o)) return o;
|
|
840
840
|
if (n.indexOf(o) !== -1) return;
|
|
@@ -846,11 +846,11 @@ function Xn(e, t) {
|
|
|
846
846
|
l.isUndefined(m) || (a[f] = m);
|
|
847
847
|
});
|
|
848
848
|
else {
|
|
849
|
-
if (!l.isPlainObject(o) &&
|
|
849
|
+
if (!l.isPlainObject(o) && Gn(o))
|
|
850
850
|
return n.pop(), o;
|
|
851
851
|
a = /* @__PURE__ */ Object.create(null);
|
|
852
852
|
for (const [c, f] of Object.entries(o)) {
|
|
853
|
-
const m = r.has(c.toLowerCase()) ?
|
|
853
|
+
const m = r.has(c.toLowerCase()) ? Xn : s(f);
|
|
854
854
|
l.isUndefined(m) || (a[c] = m);
|
|
855
855
|
}
|
|
856
856
|
}
|
|
@@ -886,7 +886,7 @@ let E = class pr extends Error {
|
|
|
886
886
|
}), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), n && (this.config = n), s && (this.request = s), o && (this.response = o, this.status = o.status);
|
|
887
887
|
}
|
|
888
888
|
toJSON() {
|
|
889
|
-
const t = this.config, r = t && l.hasOwnProp(t, "redact") ? t.redact : void 0, n = l.isArray(r) && r.length > 0 ?
|
|
889
|
+
const t = this.config, r = t && l.hasOwnProp(t, "redact") ? t.redact : void 0, n = l.isArray(r) && r.length > 0 ? Yn(t, r) : l.toJSONObject(t);
|
|
890
890
|
return {
|
|
891
891
|
// Standard
|
|
892
892
|
message: this.message,
|
|
@@ -938,7 +938,7 @@ function Zn(e) {
|
|
|
938
938
|
const es = l.toFlatObject(l, {}, null, function(t) {
|
|
939
939
|
return /^is[A-Z]/.test(t);
|
|
940
940
|
});
|
|
941
|
-
function
|
|
941
|
+
function Ye(e, t, r) {
|
|
942
942
|
if (!l.isObject(e))
|
|
943
943
|
throw new TypeError("target must be an object");
|
|
944
944
|
t = t || new FormData(), r = l.toFlatObject(
|
|
@@ -977,12 +977,12 @@ function Xe(e, t, r) {
|
|
|
977
977
|
if (f === 1 / 0)
|
|
978
978
|
return JSON.stringify(h);
|
|
979
979
|
const O = [];
|
|
980
|
-
return JSON.stringify(h, function(N,
|
|
981
|
-
if (!l.isObject(
|
|
982
|
-
return
|
|
980
|
+
return JSON.stringify(h, function(N, k) {
|
|
981
|
+
if (!l.isObject(k))
|
|
982
|
+
return k;
|
|
983
983
|
for (; O.length && O[O.length - 1] !== this; )
|
|
984
984
|
O.pop();
|
|
985
|
-
return O.push(
|
|
985
|
+
return O.push(k), R(S + O.length - 1), k;
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
function j(h, S, O) {
|
|
@@ -993,11 +993,11 @@ function Xe(e, t, r) {
|
|
|
993
993
|
if (l.endsWith(S, "{}"))
|
|
994
994
|
S = n ? S : S.slice(0, -2), h = w(h, 1);
|
|
995
995
|
else if (l.isArray(h) && Zn(h) || (l.isFileList(h) || l.endsWith(S, "[]")) && (g = l.toArray(h)))
|
|
996
|
-
return S = mr(S), g.forEach(function(
|
|
997
|
-
!(l.isUndefined(
|
|
996
|
+
return S = mr(S), g.forEach(function(k, v) {
|
|
997
|
+
!(l.isUndefined(k) || k === null) && t.append(
|
|
998
998
|
// eslint-disable-next-line no-nested-ternary
|
|
999
|
-
a === !0 ? nt([S],
|
|
1000
|
-
d(
|
|
999
|
+
a === !0 ? nt([S], v, o) : a === null ? S : S + "[]",
|
|
1000
|
+
d(k)
|
|
1001
1001
|
);
|
|
1002
1002
|
}), !1;
|
|
1003
1003
|
}
|
|
@@ -1012,8 +1012,8 @@ function Xe(e, t, r) {
|
|
|
1012
1012
|
if (!l.isUndefined(h)) {
|
|
1013
1013
|
if (R(O), u.indexOf(h) !== -1)
|
|
1014
1014
|
throw new Error("Circular reference detected in " + S.join("."));
|
|
1015
|
-
u.push(h), l.forEach(h, function(N,
|
|
1016
|
-
(!(l.isUndefined(N) || N === null) && s.call(t, N, l.isString(
|
|
1015
|
+
u.push(h), l.forEach(h, function(N, k) {
|
|
1016
|
+
(!(l.isUndefined(N) || N === null) && s.call(t, N, l.isString(k) ? k.trim() : k, S, x)) === !0 && b(N, S ? S.concat(k) : [k], O + 1);
|
|
1017
1017
|
}), u.pop();
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
@@ -1035,7 +1035,7 @@ function Dt(e) {
|
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
function Et(e, t) {
|
|
1038
|
-
this._pairs = [], e &&
|
|
1038
|
+
this._pairs = [], e && Ye(e, this, t);
|
|
1039
1039
|
}
|
|
1040
1040
|
const yr = Et.prototype;
|
|
1041
1041
|
yr.append = function(t, r) {
|
|
@@ -1148,7 +1148,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ls
|
|
|
1148
1148
|
...os
|
|
1149
1149
|
};
|
|
1150
1150
|
function us(e, t) {
|
|
1151
|
-
return
|
|
1151
|
+
return Ye(e, new L.classes.URLSearchParams(), {
|
|
1152
1152
|
visitor: function(r, n, s, o) {
|
|
1153
1153
|
return L.isNode && l.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1154
1154
|
},
|
|
@@ -1227,7 +1227,7 @@ const Ue = {
|
|
|
1227
1227
|
return us(t, f).toString();
|
|
1228
1228
|
if ((c = l.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
1229
1229
|
const m = we(this, "env"), u = m && m.FormData;
|
|
1230
|
-
return
|
|
1230
|
+
return Ye(
|
|
1231
1231
|
c ? { "files[]": t } : t,
|
|
1232
1232
|
u && new u(),
|
|
1233
1233
|
f
|
|
@@ -1593,11 +1593,11 @@ const js = typeof XMLHttpRequest < "u", Cs = js && function(e) {
|
|
|
1593
1593
|
request: b
|
|
1594
1594
|
};
|
|
1595
1595
|
wr(
|
|
1596
|
-
function(
|
|
1597
|
-
r(
|
|
1596
|
+
function(v) {
|
|
1597
|
+
r(v), x();
|
|
1598
1598
|
},
|
|
1599
|
-
function(
|
|
1600
|
-
n(
|
|
1599
|
+
function(v) {
|
|
1600
|
+
n(v), x();
|
|
1601
1601
|
},
|
|
1602
1602
|
N
|
|
1603
1603
|
), b = null;
|
|
@@ -1607,8 +1607,8 @@ const js = typeof XMLHttpRequest < "u", Cs = js && function(e) {
|
|
|
1607
1607
|
}, b.onabort = function() {
|
|
1608
1608
|
b && (n(new E("Request aborted", E.ECONNABORTED, e, b)), x(), b = null);
|
|
1609
1609
|
}, b.onerror = function(g) {
|
|
1610
|
-
const N = g && g.message ? g.message : "Network Error",
|
|
1611
|
-
|
|
1610
|
+
const N = g && g.message ? g.message : "Network Error", k = new E(N, E.ERR_NETWORK, e, b);
|
|
1611
|
+
k.event = g || null, n(k), x(), b = null;
|
|
1612
1612
|
}, b.ontimeout = function() {
|
|
1613
1613
|
let g = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1614
1614
|
const N = s.transitional || xt;
|
|
@@ -1672,10 +1672,10 @@ const js = typeof XMLHttpRequest < "u", Cs = js && function(e) {
|
|
|
1672
1672
|
let n = 0, s;
|
|
1673
1673
|
for (; n < r; )
|
|
1674
1674
|
s = n + t, yield e.slice(n, s), n = s;
|
|
1675
|
-
},
|
|
1676
|
-
for await (const r of
|
|
1675
|
+
}, ks = async function* (e, t) {
|
|
1676
|
+
for await (const r of vs(e))
|
|
1677
1677
|
yield* Ns(r, t);
|
|
1678
|
-
},
|
|
1678
|
+
}, vs = async function* (e) {
|
|
1679
1679
|
if (e[Symbol.asyncIterator]) {
|
|
1680
1680
|
yield* e;
|
|
1681
1681
|
return;
|
|
@@ -1692,7 +1692,7 @@ const js = typeof XMLHttpRequest < "u", Cs = js && function(e) {
|
|
|
1692
1692
|
await t.cancel();
|
|
1693
1693
|
}
|
|
1694
1694
|
}, zt = (e, t, r, n) => {
|
|
1695
|
-
const s =
|
|
1695
|
+
const s = ks(e, t);
|
|
1696
1696
|
let o = 0, a, c = (f) => {
|
|
1697
1697
|
a || (a = !0, n && n(f));
|
|
1698
1698
|
};
|
|
@@ -1723,7 +1723,7 @@ const js = typeof XMLHttpRequest < "u", Cs = js && function(e) {
|
|
|
1723
1723
|
highWaterMark: 2
|
|
1724
1724
|
}
|
|
1725
1725
|
);
|
|
1726
|
-
},
|
|
1726
|
+
}, Xe = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, Ds = (e, t, r) => t + 2 < r && Xe(e.charCodeAt(t + 1)) && Xe(e.charCodeAt(t + 2));
|
|
1727
1727
|
function Is(e) {
|
|
1728
1728
|
if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
|
|
1729
1729
|
const t = e.indexOf(",");
|
|
@@ -1735,7 +1735,7 @@ function Is(e) {
|
|
|
1735
1735
|
for (let w = 0; w < c; w++)
|
|
1736
1736
|
if (n.charCodeAt(w) === 37 && w + 2 < c) {
|
|
1737
1737
|
const j = n.charCodeAt(w + 1), x = n.charCodeAt(w + 2);
|
|
1738
|
-
|
|
1738
|
+
Xe(j) && Xe(x) && (a -= 2, w += 2);
|
|
1739
1739
|
}
|
|
1740
1740
|
let f = 0, m = c - 1;
|
|
1741
1741
|
const u = (w) => w >= 2 && n.charCodeAt(w - 2) === 37 && // '%'
|
|
@@ -1762,10 +1762,10 @@ function Is(e) {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
return o;
|
|
1764
1764
|
}
|
|
1765
|
-
const Rt = "1.18.0",
|
|
1765
|
+
const Rt = "1.18.0", Ht = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeURIComponent(e).replace(
|
|
1766
1766
|
/%([0-9A-F]{2})/gi,
|
|
1767
1767
|
(t, r) => String.fromCharCode(parseInt(r, 16))
|
|
1768
|
-
),
|
|
1768
|
+
), $t = (e) => {
|
|
1769
1769
|
if (!l.isString(e))
|
|
1770
1770
|
return e;
|
|
1771
1771
|
try {
|
|
@@ -1847,12 +1847,12 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1847
1847
|
method: O,
|
|
1848
1848
|
data: g,
|
|
1849
1849
|
signal: N,
|
|
1850
|
-
cancelToken:
|
|
1851
|
-
timeout:
|
|
1850
|
+
cancelToken: k,
|
|
1851
|
+
timeout: v,
|
|
1852
1852
|
onDownloadProgress: B,
|
|
1853
1853
|
onUploadProgress: q,
|
|
1854
|
-
responseType:
|
|
1855
|
-
headers:
|
|
1854
|
+
responseType: G,
|
|
1855
|
+
headers: Y,
|
|
1856
1856
|
withCredentials: Q = "same-origin",
|
|
1857
1857
|
fetchOptions: ue,
|
|
1858
1858
|
maxContentLength: z,
|
|
@@ -1860,13 +1860,13 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1860
1860
|
} = Sr(h);
|
|
1861
1861
|
const te = l.isNumber(z) && z > -1, ae = l.isNumber(Z) && Z > -1, me = (P) => l.hasOwnProp(h, P) ? h[P] : void 0;
|
|
1862
1862
|
let fe = s || fetch;
|
|
1863
|
-
|
|
1864
|
-
let
|
|
1865
|
-
[N,
|
|
1866
|
-
|
|
1863
|
+
G = G ? (G + "").toLowerCase() : "text";
|
|
1864
|
+
let H = Ps(
|
|
1865
|
+
[N, k && k.toAbortSignal()],
|
|
1866
|
+
v
|
|
1867
1867
|
), i = null;
|
|
1868
|
-
const y =
|
|
1869
|
-
|
|
1868
|
+
const y = H && H.unsubscribe && (() => {
|
|
1869
|
+
H.unsubscribe();
|
|
1870
1870
|
});
|
|
1871
1871
|
let T, A = null;
|
|
1872
1872
|
const re = () => new E(
|
|
@@ -1888,7 +1888,7 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1888
1888
|
if (Us(S)) {
|
|
1889
1889
|
const C = new URL(S, L.origin);
|
|
1890
1890
|
if (!P && (C.username || C.password)) {
|
|
1891
|
-
const V =
|
|
1891
|
+
const V = $t(C.username), de = $t(C.password);
|
|
1892
1892
|
P = {
|
|
1893
1893
|
username: V,
|
|
1894
1894
|
password: de
|
|
@@ -1896,7 +1896,7 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1896
1896
|
}
|
|
1897
1897
|
(C.username || C.password) && (C.username = "", C.password = "", S = C.href);
|
|
1898
1898
|
}
|
|
1899
|
-
if (P && (
|
|
1899
|
+
if (P && (Y.delete("authorization"), Y.set(
|
|
1900
1900
|
"Authorization",
|
|
1901
1901
|
"Basic " + btoa(Ls((P.username || "") + ":" + (P.password || "")))
|
|
1902
1902
|
)), te && typeof S == "string" && S.startsWith("data:") && Is(S) > z)
|
|
@@ -1913,7 +1913,7 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1913
1913
|
}
|
|
1914
1914
|
const I = ae && (l.isReadableStream(g) || l.isStream(g)), oe = (C, V, de) => zt(
|
|
1915
1915
|
C,
|
|
1916
|
-
|
|
1916
|
+
Ht,
|
|
1917
1917
|
(ye) => {
|
|
1918
1918
|
if (ae && ye > Z)
|
|
1919
1919
|
throw A = re();
|
|
@@ -1922,13 +1922,13 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1922
1922
|
de
|
|
1923
1923
|
);
|
|
1924
1924
|
if (R && O !== "get" && O !== "head" && (q || I)) {
|
|
1925
|
-
if (T = T ?? await b(
|
|
1925
|
+
if (T = T ?? await b(Y, g), T !== 0 || I) {
|
|
1926
1926
|
let C = new o(S, {
|
|
1927
1927
|
method: "POST",
|
|
1928
1928
|
body: g,
|
|
1929
1929
|
duplex: "half"
|
|
1930
1930
|
}), V;
|
|
1931
|
-
if (l.isFormData(g) && (V = C.headers.get("content-type")) &&
|
|
1931
|
+
if (l.isFormData(g) && (V = C.headers.get("content-type")) && Y.setContentType(V), C.body) {
|
|
1932
1932
|
const [de, ye] = q && Ut(
|
|
1933
1933
|
T,
|
|
1934
1934
|
Ke(Ft(q))
|
|
@@ -1948,15 +1948,15 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1948
1948
|
l.isString(Q) || (Q = Q ? "include" : "omit");
|
|
1949
1949
|
const Ae = f && "credentials" in o.prototype;
|
|
1950
1950
|
if (l.isFormData(g)) {
|
|
1951
|
-
const C =
|
|
1952
|
-
C && /^multipart\/form-data/i.test(C) && !/boundary=/i.test(C) &&
|
|
1951
|
+
const C = Y.getContentType();
|
|
1952
|
+
C && /^multipart\/form-data/i.test(C) && !/boundary=/i.test(C) && Y.delete("content-type");
|
|
1953
1953
|
}
|
|
1954
|
-
|
|
1954
|
+
Y.set("User-Agent", "axios/" + Rt, !1);
|
|
1955
1955
|
const Ot = {
|
|
1956
1956
|
...ue,
|
|
1957
|
-
signal:
|
|
1957
|
+
signal: H,
|
|
1958
1958
|
method: O.toUpperCase(),
|
|
1959
|
-
headers: dr(
|
|
1959
|
+
headers: dr(Y.normalize()),
|
|
1960
1960
|
body: g,
|
|
1961
1961
|
duplex: "half",
|
|
1962
1962
|
credentials: Ae ? Q : void 0
|
|
@@ -1974,7 +1974,7 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1974
1974
|
i
|
|
1975
1975
|
);
|
|
1976
1976
|
}
|
|
1977
|
-
const Ze = w && (
|
|
1977
|
+
const Ze = w && (G === "stream" || G === "response");
|
|
1978
1978
|
if (w && le.body && (B || te || Ze && y)) {
|
|
1979
1979
|
const C = {};
|
|
1980
1980
|
["status", "statusText", "headers"].forEach((je) => {
|
|
@@ -1996,14 +1996,14 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
1996
1996
|
de && de(je);
|
|
1997
1997
|
};
|
|
1998
1998
|
le = new a(
|
|
1999
|
-
zt(le.body,
|
|
1999
|
+
zt(le.body, Ht, Pr, () => {
|
|
2000
2000
|
ye && ye(), y && y();
|
|
2001
2001
|
}),
|
|
2002
2002
|
C
|
|
2003
2003
|
);
|
|
2004
2004
|
}
|
|
2005
|
-
|
|
2006
|
-
let ce = await j[l.findKey(j,
|
|
2005
|
+
G = G || "text";
|
|
2006
|
+
let ce = await j[l.findKey(j, G) || "text"](
|
|
2007
2007
|
le,
|
|
2008
2008
|
h
|
|
2009
2009
|
);
|
|
@@ -2028,8 +2028,8 @@ const Rt = "1.18.0", $t = 64 * 1024, { isFunction: ze } = l, Ls = (e) => encodeU
|
|
|
2028
2028
|
});
|
|
2029
2029
|
});
|
|
2030
2030
|
} catch (P) {
|
|
2031
|
-
if (y && y(),
|
|
2032
|
-
const _ =
|
|
2031
|
+
if (y && y(), H && H.aborted && H.reason instanceof E) {
|
|
2032
|
+
const _ = H.reason;
|
|
2033
2033
|
throw _.config = h, i && (_.request = i), P !== _ && (_.cause = P), _;
|
|
2034
2034
|
}
|
|
2035
2035
|
throw A ? (i && !A.request && (A.request = i), A) : P instanceof E ? (i && !P.request && (P.request = i), P) : P && P.name === "TypeError" && /Load failed|fetch/i.test(P.message) ? Object.assign(
|
|
@@ -2173,7 +2173,7 @@ Qe.transitional = function(t, r, n) {
|
|
|
2173
2173
|
Qe.spelling = function(t) {
|
|
2174
2174
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
2175
2175
|
};
|
|
2176
|
-
function
|
|
2176
|
+
function Hs(e, t, r) {
|
|
2177
2177
|
if (typeof e != "object")
|
|
2178
2178
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
2179
2179
|
const n = Object.keys(e);
|
|
@@ -2194,7 +2194,7 @@ function $s(e, t, r) {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
2196
|
const Ve = {
|
|
2197
|
-
assertOptions:
|
|
2197
|
+
assertOptions: Hs,
|
|
2198
2198
|
validators: Qe
|
|
2199
2199
|
}, U = Ve.validators;
|
|
2200
2200
|
let ge = class {
|
|
@@ -2351,7 +2351,7 @@ l.forEach(["post", "put", "patch", "query"], function(t) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
ge.prototype[t] = r(), t !== "query" && (ge.prototype[t + "Form"] = r(!0));
|
|
2353
2353
|
});
|
|
2354
|
-
let
|
|
2354
|
+
let $s = class _r {
|
|
2355
2355
|
constructor(t) {
|
|
2356
2356
|
if (typeof t != "function")
|
|
2357
2357
|
throw new TypeError("executor must be a function.");
|
|
@@ -2515,10 +2515,10 @@ function Ar(e) {
|
|
|
2515
2515
|
const D = Ar(Ue);
|
|
2516
2516
|
D.Axios = ge;
|
|
2517
2517
|
D.CanceledError = Fe;
|
|
2518
|
-
D.CancelToken =
|
|
2518
|
+
D.CancelToken = $s;
|
|
2519
2519
|
D.isCancel = xr;
|
|
2520
2520
|
D.VERSION = Rt;
|
|
2521
|
-
D.toFormData =
|
|
2521
|
+
D.toFormData = Ye;
|
|
2522
2522
|
D.AxiosError = E;
|
|
2523
2523
|
D.Cancel = D.CanceledError;
|
|
2524
2524
|
D.all = function(t) {
|
|
@@ -2547,11 +2547,11 @@ const {
|
|
|
2547
2547
|
AxiosHeaders: Co,
|
|
2548
2548
|
HttpStatusCode: Po,
|
|
2549
2549
|
formToJSON: No,
|
|
2550
|
-
getAdapter:
|
|
2551
|
-
mergeConfig:
|
|
2550
|
+
getAdapter: ko,
|
|
2551
|
+
mergeConfig: vo,
|
|
2552
2552
|
create: Do
|
|
2553
2553
|
} = D;
|
|
2554
|
-
var Js = Object.defineProperty, Ws = (e, t, r) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ks = (e, t, r) => Ws(e, t + "", r), it = { exports: {} },
|
|
2554
|
+
var Js = Object.defineProperty, Ws = (e, t, r) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ks = (e, t, r) => Ws(e, t + "", r), it = { exports: {} }, ke = {};
|
|
2555
2555
|
/**
|
|
2556
2556
|
* @license React
|
|
2557
2557
|
* react-jsx-runtime.production.js
|
|
@@ -2562,8 +2562,8 @@ var Js = Object.defineProperty, Ws = (e, t, r) => t in e ? Js(e, t, { enumerable
|
|
|
2562
2562
|
* LICENSE file in the root directory of this source tree.
|
|
2563
2563
|
*/
|
|
2564
2564
|
var Kt;
|
|
2565
|
-
function
|
|
2566
|
-
if (Kt) return
|
|
2565
|
+
function Xs() {
|
|
2566
|
+
if (Kt) return ke;
|
|
2567
2567
|
Kt = 1;
|
|
2568
2568
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
2569
2569
|
function r(n, s, o) {
|
|
@@ -2581,9 +2581,9 @@ function Gs() {
|
|
|
2581
2581
|
props: o
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
|
-
return
|
|
2584
|
+
return ke.Fragment = t, ke.jsx = r, ke.jsxs = r, ke;
|
|
2585
2585
|
}
|
|
2586
|
-
var
|
|
2586
|
+
var He = {};
|
|
2587
2587
|
/**
|
|
2588
2588
|
* @license React
|
|
2589
2589
|
* react-jsx-runtime.development.js
|
|
@@ -2593,13 +2593,13 @@ var $e = {};
|
|
|
2593
2593
|
* This source code is licensed under the MIT license found in the
|
|
2594
2594
|
* LICENSE file in the root directory of this source tree.
|
|
2595
2595
|
*/
|
|
2596
|
-
var
|
|
2597
|
-
function
|
|
2598
|
-
return
|
|
2596
|
+
var Xt;
|
|
2597
|
+
function Gs() {
|
|
2598
|
+
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2599
2599
|
function e(i) {
|
|
2600
2600
|
if (i == null) return null;
|
|
2601
2601
|
if (typeof i == "function")
|
|
2602
|
-
return i.$$typeof ===
|
|
2602
|
+
return i.$$typeof === Y ? null : i.displayName || i.name || null;
|
|
2603
2603
|
if (typeof i == "string") return i;
|
|
2604
2604
|
switch (i) {
|
|
2605
2605
|
case b:
|
|
@@ -2608,11 +2608,11 @@ function Ys() {
|
|
|
2608
2608
|
return "Profiler";
|
|
2609
2609
|
case h:
|
|
2610
2610
|
return "StrictMode";
|
|
2611
|
-
case v:
|
|
2612
|
-
return "Suspense";
|
|
2613
2611
|
case k:
|
|
2612
|
+
return "Suspense";
|
|
2613
|
+
case v:
|
|
2614
2614
|
return "SuspenseList";
|
|
2615
|
-
case
|
|
2615
|
+
case G:
|
|
2616
2616
|
return "Activity";
|
|
2617
2617
|
}
|
|
2618
2618
|
if (typeof i == "object")
|
|
@@ -2753,7 +2753,7 @@ function Ys() {
|
|
|
2753
2753
|
var I = Object.keys(y).filter(function(Ae) {
|
|
2754
2754
|
return Ae !== "key";
|
|
2755
2755
|
});
|
|
2756
|
-
A = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
2756
|
+
A = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}", H[_ + A] || (I = 0 < I.length ? "{" + I.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2757
2757
|
`A props object containing a "key" prop is being spread into JSX:
|
|
2758
2758
|
let props = %s;
|
|
2759
2759
|
<%s {...props} />
|
|
@@ -2764,7 +2764,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2764
2764
|
_,
|
|
2765
2765
|
I,
|
|
2766
2766
|
_
|
|
2767
|
-
),
|
|
2767
|
+
), H[_ + A] = !0);
|
|
2768
2768
|
}
|
|
2769
2769
|
if (_ = null, T !== void 0 && (r(T), _ = "" + T), a(y) && (r(y.key), _ = "" + y.key), "key" in y) {
|
|
2770
2770
|
T = {};
|
|
@@ -2789,7 +2789,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2789
2789
|
function R(i) {
|
|
2790
2790
|
return typeof i == "object" && i !== null && i.$$typeof === j;
|
|
2791
2791
|
}
|
|
2792
|
-
var w = dt, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), g = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"),
|
|
2792
|
+
var w = dt, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), g = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), Q = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ue = Object.prototype.hasOwnProperty, z = Array.isArray, Z = console.createTask ? console.createTask : function() {
|
|
2793
2793
|
return null;
|
|
2794
2794
|
};
|
|
2795
2795
|
w = {
|
|
@@ -2800,8 +2800,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2800
2800
|
var te, ae = {}, me = w.react_stack_bottom_frame.bind(
|
|
2801
2801
|
w,
|
|
2802
2802
|
o
|
|
2803
|
-
)(), fe = Z(n(o)),
|
|
2804
|
-
|
|
2803
|
+
)(), fe = Z(n(o)), H = {};
|
|
2804
|
+
He.Fragment = b, He.jsx = function(i, y, T) {
|
|
2805
2805
|
var A = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
2806
2806
|
return u(
|
|
2807
2807
|
i,
|
|
@@ -2811,7 +2811,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2811
2811
|
A ? Error("react-stack-top-frame") : me,
|
|
2812
2812
|
A ? Z(n(i)) : fe
|
|
2813
2813
|
);
|
|
2814
|
-
},
|
|
2814
|
+
}, He.jsxs = function(i, y, T) {
|
|
2815
2815
|
var A = 1e4 > Q.recentlyCreatedOwnerStacks++;
|
|
2816
2816
|
return u(
|
|
2817
2817
|
i,
|
|
@@ -2822,13 +2822,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2822
2822
|
A ? Z(n(i)) : fe
|
|
2823
2823
|
);
|
|
2824
2824
|
};
|
|
2825
|
-
})()),
|
|
2825
|
+
})()), He;
|
|
2826
2826
|
}
|
|
2827
|
-
var
|
|
2828
|
-
function
|
|
2829
|
-
return
|
|
2827
|
+
var Gt;
|
|
2828
|
+
function Ys() {
|
|
2829
|
+
return Gt || (Gt = 1, process.env.NODE_ENV === "production" ? it.exports = Xs() : it.exports = Gs()), it.exports;
|
|
2830
2830
|
}
|
|
2831
|
-
var ee =
|
|
2831
|
+
var ee = Ys();
|
|
2832
2832
|
const { Header: Io, Sider: Lo, Content: Uo } = Qt;
|
|
2833
2833
|
function Qs(e) {
|
|
2834
2834
|
if (e && typeof e == "object" && "code" in e && "data" in e) {
|
|
@@ -2929,7 +2929,7 @@ class Fo extends dt.Component {
|
|
|
2929
2929
|
);
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
|
-
const { Title: Bo, Text: qo, Paragraph: zo } =
|
|
2932
|
+
const { Title: Bo, Text: qo, Paragraph: zo } = X;
|
|
2933
2933
|
let eo = "/api";
|
|
2934
2934
|
function Cr() {
|
|
2935
2935
|
return D.create({ baseURL: eo, timeout: 15e3 });
|
|
@@ -2940,7 +2940,7 @@ to.interceptors.request.use((e) => {
|
|
|
2940
2940
|
const t = localStorage.getItem("token");
|
|
2941
2941
|
return t && (e.headers.Authorization = `Bearer ${t}`), e;
|
|
2942
2942
|
});
|
|
2943
|
-
const { Header:
|
|
2943
|
+
const { Header: Ho, Sider: $o, Content: Mo } = Qt, { Text: Vo } = X, { Title: Jo, Text: Wo } = X, { Option: Ko } = Je, { TextArea: Xo } = ne, ro = [
|
|
2944
2944
|
{ type: "STRING", label: "字符串", icon: /* @__PURE__ */ ee.jsx(At, {}), color: "#1677ff", desc: "短文本 (默认 VARCHAR 255)" },
|
|
2945
2945
|
{ type: "TEXT", label: "长文本", icon: /* @__PURE__ */ ee.jsx(At, {}), color: "#13c2c2", desc: "TEXT 类型, 无长度限制" },
|
|
2946
2946
|
{ type: "INT", label: "整数", icon: "#", color: "#722ed1", desc: "INT 整数" },
|
|
@@ -2953,9 +2953,9 @@ const { Header: $o, Sider: Ho, Content: Mo } = Qt, { Text: Vo } = G, { Title: Jo
|
|
|
2953
2953
|
{ type: "REF", label: "引用", icon: "🔗", color: "#8c8c8c", desc: "外键引用 BIGINT" }
|
|
2954
2954
|
];
|
|
2955
2955
|
Object.fromEntries(ro.map((e) => [e.type, e]));
|
|
2956
|
-
const { Option:
|
|
2956
|
+
const { Option: Go } = Je;
|
|
2957
2957
|
ne.TextArea, ne.TextArea;
|
|
2958
|
-
const { Text:
|
|
2958
|
+
const { Text: Yo, Paragraph: Qo } = X, { TextArea: Zo } = ne, { TextArea: ei } = ne, { Text: ti, Paragraph: ri } = X, { TextArea: ni } = ne, { Text: si, Paragraph: oi } = X, { Text: ii } = X, { Text: ai } = X, { TextArea: li } = ne, { Text: ci, Paragraph: ui } = X, { Text: fi } = X, { Text: di } = X, { Text: pi } = X, { Text: hi } = X;
|
|
2959
2959
|
common;
|
|
2960
2960
|
const no = {
|
|
2961
2961
|
OPEN: { color: "blue", text: "待开始" },
|
|
@@ -2964,7 +2964,7 @@ const no = {
|
|
|
2964
2964
|
ARCHIVED: { color: "default", text: "已归档" }
|
|
2965
2965
|
};
|
|
2966
2966
|
function so() {
|
|
2967
|
-
const e = pt(), [t, r] =
|
|
2967
|
+
const e = pt(), [t, r] = $("mine"), [n, s] = $([]), [o, a] = $(!1), c = async () => {
|
|
2968
2968
|
a(!0);
|
|
2969
2969
|
try {
|
|
2970
2970
|
const u = t === "mine" ? "/project/list/mine?limit=100" : `/project/list/by-status?status=${t}&limit=100`, d = await ie.get(u), R = (d == null ? void 0 : d.data) ?? d ?? [];
|
|
@@ -2975,7 +2975,7 @@ function so() {
|
|
|
2975
2975
|
a(!1);
|
|
2976
2976
|
}
|
|
2977
2977
|
};
|
|
2978
|
-
|
|
2978
|
+
ve(() => {
|
|
2979
2979
|
c();
|
|
2980
2980
|
}, [t]);
|
|
2981
2981
|
const f = async (u) => {
|
|
@@ -3074,28 +3074,28 @@ const oo = [
|
|
|
3074
3074
|
{ value: "ops", label: "运营" }
|
|
3075
3075
|
];
|
|
3076
3076
|
function io() {
|
|
3077
|
-
const e = pt(), [t] =
|
|
3078
|
-
|
|
3077
|
+
const e = pt(), [t] = kr(), [r] = pe.useForm(), [n, s] = $(!1), [o, a] = $("from-subscribe"), [c, f] = $([]), [m, u] = $([]), [d, R] = $(!1), [w, j] = $([]), [x, b] = $(null);
|
|
3078
|
+
ve(() => {
|
|
3079
3079
|
const g = t.get("subscriptionId"), N = t.get("itemIds");
|
|
3080
3080
|
g && (b(Number(g)), r.setFieldValue("sourceSubscriptionId", Number(g)), S(g)), N && j(N.split(",").map(Number).filter(Boolean));
|
|
3081
|
-
}, [t]),
|
|
3081
|
+
}, [t]), ve(() => {
|
|
3082
3082
|
h();
|
|
3083
3083
|
}, []);
|
|
3084
3084
|
const h = async () => {
|
|
3085
3085
|
try {
|
|
3086
3086
|
const g = await ie.get("/subscribe/subscription/list"), N = (g == null ? void 0 : g.data) ?? g ?? [];
|
|
3087
|
-
f(Array.isArray(N) ? N.filter((
|
|
3087
|
+
f(Array.isArray(N) ? N.filter((k) => k.status === "VERIFIED") : []);
|
|
3088
3088
|
} catch {
|
|
3089
3089
|
}
|
|
3090
3090
|
}, S = async (g) => {
|
|
3091
3091
|
R(!0);
|
|
3092
3092
|
try {
|
|
3093
|
-
const N = await ie.get(`/subscribe/run/list?subscriptionId=${g}&limit=1`),
|
|
3094
|
-
if (
|
|
3093
|
+
const N = await ie.get(`/subscribe/run/list?subscriptionId=${g}&limit=1`), k = (N == null ? void 0 : N.data) ?? N ?? [];
|
|
3094
|
+
if (k.length === 0) {
|
|
3095
3095
|
u([]);
|
|
3096
3096
|
return;
|
|
3097
3097
|
}
|
|
3098
|
-
const
|
|
3098
|
+
const v = k[0], B = await ie.get(`/subscribe/run/${v.id}/items?limit=100`), q = (B == null ? void 0 : B.data) ?? B ?? [];
|
|
3099
3099
|
u(Array.isArray(q) ? q : []);
|
|
3100
3100
|
} catch {
|
|
3101
3101
|
K.error("加载抽取项失败");
|
|
@@ -3113,12 +3113,12 @@ function io() {
|
|
|
3113
3113
|
const N = {
|
|
3114
3114
|
...g,
|
|
3115
3115
|
sourceItemIds: o === "from-subscribe" ? w.map(String) : null
|
|
3116
|
-
},
|
|
3117
|
-
if (
|
|
3118
|
-
const B =
|
|
3116
|
+
}, k = o === "from-subscribe" ? "/project/create-from-items" : "/project/create-manual", v = await ie.post(k, N);
|
|
3117
|
+
if (v && v.success !== !1) {
|
|
3118
|
+
const B = v.data ?? v;
|
|
3119
3119
|
K.success("立项成功"), e(`/project/${B.id}`);
|
|
3120
3120
|
} else
|
|
3121
|
-
K.error((
|
|
3121
|
+
K.error((v == null ? void 0 : v.message) || "立项失败");
|
|
3122
3122
|
} catch (g) {
|
|
3123
3123
|
g != null && g.errorFields || K.error("立项失败: " + ((g == null ? void 0 : g.message) || ""));
|
|
3124
3124
|
} finally {
|
|
@@ -3233,9 +3233,9 @@ function io() {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
) });
|
|
3235
3235
|
}
|
|
3236
|
-
const
|
|
3237
|
-
USER: { color: "blue", icon: /* @__PURE__ */ p.jsx(
|
|
3238
|
-
ASSISTANT: { color: "purple", icon: /* @__PURE__ */ p.jsx(
|
|
3236
|
+
const Yt = {
|
|
3237
|
+
USER: { color: "blue", icon: /* @__PURE__ */ p.jsx($r, {}), label: "CEO" },
|
|
3238
|
+
ASSISTANT: { color: "purple", icon: /* @__PURE__ */ p.jsx(Hr, {}), label: "Agent" },
|
|
3239
3239
|
SYSTEM: { color: "default", icon: null, label: "系统" }
|
|
3240
3240
|
}, ao = {
|
|
3241
3241
|
OPEN: { color: "blue", text: "待开始" },
|
|
@@ -3244,10 +3244,10 @@ const Xt = {
|
|
|
3244
3244
|
ARCHIVED: { color: "default", text: "已归档" }
|
|
3245
3245
|
};
|
|
3246
3246
|
function lo() {
|
|
3247
|
-
const { id: e } =
|
|
3248
|
-
|
|
3247
|
+
const { id: e } = vr(), t = pt(), [r, n] = $(null), [s, o] = $([]), [a, c] = $(""), [f, m] = $(!1), u = Nr(null);
|
|
3248
|
+
ve(() => {
|
|
3249
3249
|
e && d();
|
|
3250
|
-
}, [e]),
|
|
3250
|
+
}, [e]), ve(() => {
|
|
3251
3251
|
u.current && (u.current.scrollTop = u.current.scrollHeight);
|
|
3252
3252
|
}, [s]);
|
|
3253
3253
|
const d = async () => {
|
|
@@ -3270,7 +3270,7 @@ function lo() {
|
|
|
3270
3270
|
const h = await ie.post(`/project/${e}/chat`, { message: x });
|
|
3271
3271
|
if (h && h.success !== !1) {
|
|
3272
3272
|
const O = (h.data ?? h).message;
|
|
3273
|
-
o((g) => [...g.filter((
|
|
3273
|
+
o((g) => [...g.filter((k) => k.seq !== -1), ...O ? [O] : []]), setTimeout(d, 100);
|
|
3274
3274
|
} else
|
|
3275
3275
|
K.error((h == null ? void 0 : h.message) || "发送失败");
|
|
3276
3276
|
} catch (h) {
|
|
@@ -3326,7 +3326,7 @@ function lo() {
|
|
|
3326
3326
|
children: [
|
|
3327
3327
|
/* @__PURE__ */ p.jsx("div", { ref: u, style: { flex: 1, overflow: "auto", padding: 16, background: "#fafafa" }, children: s.length === 0 ? /* @__PURE__ */ p.jsx(Ur, { description: "还没有消息, 跟 Agent 说点什么?" }) : /* @__PURE__ */ p.jsxs(J, { orientation: "vertical", style: { width: "100%" }, size: "middle", children: [
|
|
3328
3328
|
s.map((x) => {
|
|
3329
|
-
const b =
|
|
3329
|
+
const b = Yt[x.role] || Yt.SYSTEM, h = x.role === "USER";
|
|
3330
3330
|
return /* @__PURE__ */ p.jsx("div", { style: {
|
|
3331
3331
|
display: "flex",
|
|
3332
3332
|
justifyContent: h ? "flex-end" : "flex-start"
|