@yuku123/z-team-component 0.2.102 → 0.2.103
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/package.json +1 -1
- package/dist/ChangeLogView-BIlT58NX.js +0 -542
- package/dist/ComponentDoc-bhNM4jiY.js +0 -8035
- package/dist/InvitationManagementPage-9AmXUw6E.js +0 -495
- package/dist/OnboardingPage-B9oWippy.js +0 -393
- package/dist/ScheduledTasks-CkNxtgeb.js +0 -12127
- package/dist/SystemShell-Cz3bn2dt.js +0 -688
- package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
- package/dist/admin-logs-BuwxECUY.js +0 -198
- package/dist/api-DL_MM5cW.js +0 -20
- package/dist/browser-jb_PFvU3.js +0 -1538
- package/dist/createWorkspaceWsHandler-B6LYCL3Q.js +0 -13142
- package/dist/ctc-sso-DtJHC-2M.js +0 -117
- package/dist/echarts-B1OU1xr4.js +0 -16
- package/dist/history-BlrA1eaW.js +0 -41
- package/dist/index-2dGExnjZ.js +0 -2217
- package/dist/index-B1AYMWHS.js +0 -10169
- package/dist/index-B5F1N9_V.js +0 -42049
- package/dist/index-B8O2io7L.js +0 -315
- package/dist/index-BIXeUFLa.js +0 -479
- package/dist/index-BPqoN-aE.js +0 -242
- package/dist/index-BTs7b4SV.js +0 -118
- package/dist/index-BYMhgsLe.js +0 -178
- package/dist/index-BZBxvwcT.js +0 -169
- package/dist/index-BZCQSW-G.js +0 -1222
- package/dist/index-B_LJRFsK.js +0 -339
- package/dist/index-BdmM-NHL.js +0 -5892
- package/dist/index-BmHFHD_e.js +0 -112
- package/dist/index-BohoJQPr.js +0 -7631
- package/dist/index-C1wsTstT.js +0 -434
- package/dist/index-C1wtrBjM.js +0 -8
- package/dist/index-C815hPWS.js +0 -430
- package/dist/index-CbH8YeqA.js +0 -913
- package/dist/index-CsweV-yM.js +0 -142
- package/dist/index-D3vyICxK.js +0 -2699
- package/dist/index-DKgyKXWm.js +0 -1640
- package/dist/index-DQHEr9-I.js +0 -93
- package/dist/index-DU-PHfEr.js +0 -189
- package/dist/index-DWsfQMp8.js +0 -208
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-DvTMESfc.js +0 -132
- package/dist/index-fl0m6QYf.js +0 -316
- package/dist/index-lux3nNJP.js +0 -574
- package/dist/index-mwtsohOK.js +0 -951
- package/dist/index-qd4awhFI.js +0 -956
- package/dist/index.js +0 -10
- package/dist/index.module-CAa-2T7m.js +0 -72
- package/dist/index.module-UI0iz8K0.js +0 -42
- package/dist/instance-4ACm8YFK.js +0 -216
- package/dist/menuPermission-C7yt7uNG.js +0 -60
- package/dist/mobile-client-O3yr9h6t.js +0 -24
- package/dist/pages.js +0 -21
- package/dist/send-default-agent-team-message-YRd0CkeT.js +0 -35
- package/dist/spark-md5-Dld54a-T.js +0 -178
- package/dist/sso-user-GnlYnP83.js +0 -43
- package/dist/training-CyK00fwu.js +0 -450
- package/dist/webide-SjnHsCZF.js +0 -5233
- package/dist/z-team-component.css +0 -1
package/dist/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-bhNM4jiY.js";
|
|
2
|
-
import { h as m } from "./history-BlrA1eaW.js";
|
|
3
|
-
export {
|
|
4
|
-
e as ComponentDocPage,
|
|
5
|
-
s as ProjectApp,
|
|
6
|
-
a as SubscribeApp,
|
|
7
|
-
r as ZTeamApp,
|
|
8
|
-
m as history,
|
|
9
|
-
i as isTokenExpired
|
|
10
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
const c = "_hub_1scx0_1", o = "_header_1scx0_9", t = "_backBtn_1scx0_19", n = "_title_1scx0_35", e = "_bodySplit_1scx0_42", _ = "_spinWrapper_1scx0_55", a = "_columnsLayout_1scx0_70", s = "_catNav_1scx0_78", r = "_catNavTitle_1scx0_89", v = "_catItem_1scx0_97", l = "_catItemActive_1scx0_116", m = "_columnGridWrap_1scx0_122", d = "_catTag_1scx0_131", x = "_columnGrid_1scx0_122", u = "_columnCard_1scx0_149", i = "_columnCover_1scx0_163", p = "_columnCoverPlaceholder_1scx0_176", I = "_columnInfo_1scx0_182", G = "_columnDesc_1scx0_191", T = "_columnMeta_1scx0_200", C = "_latestUpdate_1scx0_204", A = "_latestTime_1scx0_214", N = "_deleteIcon_1scx0_229", b = "_columnActionsBar_1scx0_238", h = "_actionBtn_1scx0_245", g = "_actionBtnDanger_1scx0_263", y = "_ownerTag_1scx0_272", B = "_coverGrid_1scx0_279", D = "_coverCell_1scx0_284", U = "_coverItem_1scx0_287", k = "_coverNone_1scx0_301", L = "_coverUpload_1scx0_311", M = "_coverUploadIcon_1scx0_319", S = "_coverUploadingMask_1scx0_322", w = "_coverItemSelected_1scx0_330", O = "_coverName_1scx0_334", P = "_splitLayout_1scx0_346", W = "_articleNav_1scx0_354", f = "_navColumnDesc_1scx0_365", E = "_navGroup_1scx0_378", R = "_navToolbar_1scx0_382", $ = "_navAddGroup_1scx0_386", j = "_navGroupOps_1scx0_406", q = "_navGroupTitle_1scx0_415", z = "_navGroupIcon_1scx0_428", F = "_navGroupName_1scx0_433", H = "_navGroupCount_1scx0_440", J = "_navChapter_1scx0_447", K = "_navItem_1scx0_451", Q = "_navItemActive_1scx0_464", V = "_navTitle_1scx0_468", X = "_navItemRead_1scx0_472", Y = "_navIndex_1scx0_475", Z = "_readDot_1scx0_492", cc = "_navOps_1scx0_499", oc = "_navEmpty_1scx0_509", tc = "_readerPane_1scx0_513", nc = "_readerContent_1scx0_528", ec = "_tocAside_1scx0_534", _c = "_tocTitle_1scx0_545", ac = "_tocList_1scx0_554", sc = "_tocItem_1scx0_559", rc = "_tocSub_1scx0_576", vc = "_tocItemActive_1scx0_579", lc = "_readerTitle_1scx0_592", mc = "_readerMeta_1scx0_599", dc = "_markdown_1scx0_611", xc = {
|
|
2
|
-
hub: c,
|
|
3
|
-
header: o,
|
|
4
|
-
backBtn: t,
|
|
5
|
-
title: n,
|
|
6
|
-
bodySplit: e,
|
|
7
|
-
spinWrapper: _,
|
|
8
|
-
columnsLayout: a,
|
|
9
|
-
catNav: s,
|
|
10
|
-
catNavTitle: r,
|
|
11
|
-
catItem: v,
|
|
12
|
-
catItemActive: l,
|
|
13
|
-
columnGridWrap: m,
|
|
14
|
-
catTag: d,
|
|
15
|
-
columnGrid: x,
|
|
16
|
-
columnCard: u,
|
|
17
|
-
columnCover: i,
|
|
18
|
-
columnCoverPlaceholder: p,
|
|
19
|
-
columnInfo: I,
|
|
20
|
-
columnDesc: G,
|
|
21
|
-
columnMeta: T,
|
|
22
|
-
latestUpdate: C,
|
|
23
|
-
latestTime: A,
|
|
24
|
-
deleteIcon: N,
|
|
25
|
-
columnActionsBar: b,
|
|
26
|
-
actionBtn: h,
|
|
27
|
-
actionBtnDanger: g,
|
|
28
|
-
ownerTag: y,
|
|
29
|
-
coverGrid: B,
|
|
30
|
-
coverCell: D,
|
|
31
|
-
coverItem: U,
|
|
32
|
-
coverNone: k,
|
|
33
|
-
coverUpload: L,
|
|
34
|
-
coverUploadIcon: M,
|
|
35
|
-
coverUploadingMask: S,
|
|
36
|
-
coverItemSelected: w,
|
|
37
|
-
coverName: O,
|
|
38
|
-
splitLayout: P,
|
|
39
|
-
articleNav: W,
|
|
40
|
-
navColumnDesc: f,
|
|
41
|
-
navGroup: E,
|
|
42
|
-
navToolbar: R,
|
|
43
|
-
navAddGroup: $,
|
|
44
|
-
navGroupOps: j,
|
|
45
|
-
navGroupTitle: q,
|
|
46
|
-
navGroupIcon: z,
|
|
47
|
-
navGroupName: F,
|
|
48
|
-
navGroupCount: H,
|
|
49
|
-
navChapter: J,
|
|
50
|
-
navItem: K,
|
|
51
|
-
navItemActive: Q,
|
|
52
|
-
navTitle: V,
|
|
53
|
-
navItemRead: X,
|
|
54
|
-
navIndex: Y,
|
|
55
|
-
readDot: Z,
|
|
56
|
-
navOps: cc,
|
|
57
|
-
navEmpty: oc,
|
|
58
|
-
readerPane: tc,
|
|
59
|
-
readerContent: nc,
|
|
60
|
-
tocAside: ec,
|
|
61
|
-
tocTitle: _c,
|
|
62
|
-
tocList: ac,
|
|
63
|
-
tocItem: sc,
|
|
64
|
-
tocSub: rc,
|
|
65
|
-
tocItemActive: vc,
|
|
66
|
-
readerTitle: lc,
|
|
67
|
-
readerMeta: mc,
|
|
68
|
-
markdown: dc
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
xc as h
|
|
72
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const t = "_scenarioPage_1rtig_1", e = "_toolbar_1rtig_11", i = "_toolbarLeft_1rtig_22", o = "_pageTitle_1rtig_30", r = "_statInline_1rtig_39", _ = "_statChip_1rtig_47", n = "_statDivider_1rtig_53", s = "_pageActions_1rtig_60", a = "_tableCard_1rtig_68", c = "_tableWrap_1rtig_76", l = "_codeTag_1rtig_136", g = "_nameCell_1rtig_146", d = "_defaultBadge_1rtig_166", m = "_descCell_1rtig_180", p = "_mutedCell_1rtig_186", I = "_actionGroup_1rtig_190", f = "_emptyState_1rtig_203", y = "_emptyIcon_1rtig_212", b = "_emptyTitle_1rtig_225", C = "_emptyHint_1rtig_232", T = "_loadingWrap_1rtig_240", w = "_scenarioDrawerWrap_1rtig_266", u = "_section_1rtig_275", D = "_formRow_1rtig_279", R = "_formLabel_1rtig_283", S = "_formHint_1rtig_291", W = "_formRowPair_1rtig_298", v = "_sectionDivider_1rtig_307", A = "_listItemRow_1rtig_323", B = "_listItemIndex_1rtig_339", H = "_listItemBody_1rtig_354", L = "_listItemActions_1rtig_367", P = "_inlineFields_1rtig_375", x = "_dirTree_1rtig_395", h = "_dirNode_1rtig_401", F = "_dirTreeScroll_1rtig_411", G = "_readmeSection_1rtig_417", N = {
|
|
2
|
-
scenarioPage: t,
|
|
3
|
-
toolbar: e,
|
|
4
|
-
toolbarLeft: i,
|
|
5
|
-
pageTitle: o,
|
|
6
|
-
statInline: r,
|
|
7
|
-
statChip: _,
|
|
8
|
-
statDivider: n,
|
|
9
|
-
pageActions: s,
|
|
10
|
-
tableCard: a,
|
|
11
|
-
tableWrap: c,
|
|
12
|
-
codeTag: l,
|
|
13
|
-
nameCell: g,
|
|
14
|
-
defaultBadge: d,
|
|
15
|
-
descCell: m,
|
|
16
|
-
mutedCell: p,
|
|
17
|
-
actionGroup: I,
|
|
18
|
-
emptyState: f,
|
|
19
|
-
emptyIcon: y,
|
|
20
|
-
emptyTitle: b,
|
|
21
|
-
emptyHint: C,
|
|
22
|
-
loadingWrap: T,
|
|
23
|
-
scenarioDrawerWrap: w,
|
|
24
|
-
section: u,
|
|
25
|
-
formRow: D,
|
|
26
|
-
formLabel: R,
|
|
27
|
-
formHint: S,
|
|
28
|
-
formRowPair: W,
|
|
29
|
-
sectionDivider: v,
|
|
30
|
-
listItemRow: A,
|
|
31
|
-
listItemIndex: B,
|
|
32
|
-
listItemBody: H,
|
|
33
|
-
listItemActions: L,
|
|
34
|
-
inlineFields: P,
|
|
35
|
-
dirTree: x,
|
|
36
|
-
dirNode: h,
|
|
37
|
-
dirTreeScroll: F,
|
|
38
|
-
readmeSection: G
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
N as s
|
|
42
|
-
};
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, u as c } from "./ComponentDoc-bhNM4jiY.js";
|
|
2
|
-
async function h(e, n = "") {
|
|
3
|
-
const t = new URLSearchParams();
|
|
4
|
-
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
5
|
-
const s = await o(
|
|
6
|
-
`${r}/scenario-instances/page?${t.toString()}`,
|
|
7
|
-
d
|
|
8
|
-
);
|
|
9
|
-
return c(s, "获取工作项列表失败");
|
|
10
|
-
}
|
|
11
|
-
function u(e) {
|
|
12
|
-
return {
|
|
13
|
-
id: String(e.id),
|
|
14
|
-
name: String(e.name ?? ""),
|
|
15
|
-
description: String(e.description ?? ""),
|
|
16
|
-
workspace_path: String(e.workspace_path ?? e.workspacePath ?? ""),
|
|
17
|
-
status: String(e.status ?? "ACTIVE"),
|
|
18
|
-
created_at: String(e.created_at ?? e.createdAt ?? ""),
|
|
19
|
-
mode: e.mode != null ? String(e.mode) : void 0,
|
|
20
|
-
scenario_id: e.scenario_id != null ? String(e.scenario_id) : e.scenarioId != null ? String(e.scenarioId) : void 0,
|
|
21
|
-
scenario_code: e.scenario_code != null ? String(e.scenario_code) : e.scenarioCode != null ? String(e.scenarioCode) : void 0,
|
|
22
|
-
scenario_name: e.scenario_name != null ? String(e.scenario_name) : e.scenarioName != null ? String(e.scenarioName) : void 0,
|
|
23
|
-
role: e.role != null ? String(e.role) : void 0,
|
|
24
|
-
llm_code: e.llm_code != null ? String(e.llm_code) : e.llmCode != null ? String(e.llmCode) : void 0,
|
|
25
|
-
close_feedback: m(e, "close_feedback"),
|
|
26
|
-
close_tags: m(e, "close_tags"),
|
|
27
|
-
close_time: m(e, "close_time"),
|
|
28
|
-
close_user: m(e, "close_user"),
|
|
29
|
-
members: Array.isArray(e.members) ? e.members.map((n) => String(n)) : void 0,
|
|
30
|
-
parent_id: p(e)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function m(e, n) {
|
|
34
|
-
const t = n.replace(/_([a-z])/g, (l, _) => _.toUpperCase());
|
|
35
|
-
if (e[n] != null) return e[n];
|
|
36
|
-
if (e[t] != null) return e[t];
|
|
37
|
-
const s = e.close_info ?? e.closeInfo;
|
|
38
|
-
if (s) {
|
|
39
|
-
if (s[n] != null) return s[n];
|
|
40
|
-
if (s[t] != null) return s[t];
|
|
41
|
-
}
|
|
42
|
-
const a = e.ext;
|
|
43
|
-
if (!a) return;
|
|
44
|
-
const i = a.params;
|
|
45
|
-
if (i)
|
|
46
|
-
return i[n] ?? void 0;
|
|
47
|
-
}
|
|
48
|
-
function p(e) {
|
|
49
|
-
const n = e.ext;
|
|
50
|
-
if (!n) return;
|
|
51
|
-
const t = n.params;
|
|
52
|
-
if (!t) return;
|
|
53
|
-
const s = t.parent_id;
|
|
54
|
-
if (s == null) return;
|
|
55
|
-
const a = s === "" ? "" : String(s);
|
|
56
|
-
return a === "" ? void 0 : a;
|
|
57
|
-
}
|
|
58
|
-
async function I(e) {
|
|
59
|
-
const n = await o(
|
|
60
|
-
`${r}/scenario-instances/${e}/models`
|
|
61
|
-
);
|
|
62
|
-
return await c(n, "获取模型列表失败") ?? [];
|
|
63
|
-
}
|
|
64
|
-
const f = "develop_brain_scenario";
|
|
65
|
-
async function C(e) {
|
|
66
|
-
const n = await o(
|
|
67
|
-
`${r}/dev-brain/agent/ticket?ticketId=${encodeURIComponent(e)}`,
|
|
68
|
-
d
|
|
69
|
-
);
|
|
70
|
-
return c(n, "获取工单信息失败");
|
|
71
|
-
}
|
|
72
|
-
function v(e) {
|
|
73
|
-
return String(e.currentStage ?? e.current_stage ?? "").trim();
|
|
74
|
-
}
|
|
75
|
-
function g(e) {
|
|
76
|
-
const n = e.trim().replace(/[/\\:*?"<>|]/g, "_");
|
|
77
|
-
return n.length > 0 ? n.slice(0, 80) : "workspace";
|
|
78
|
-
}
|
|
79
|
-
function T(e, n) {
|
|
80
|
-
var i;
|
|
81
|
-
const t = e.requirementTitle && e.requirementTitle.trim() || n, s = { ticket_id: n }, a = (i = e.foneUrl) == null ? void 0 : i.trim();
|
|
82
|
-
return a && (s.work_order_url = a), {
|
|
83
|
-
name: t,
|
|
84
|
-
description: `ticket_id_${n}_${t}`,
|
|
85
|
-
workspace_path: g(t),
|
|
86
|
-
scenario_code: f,
|
|
87
|
-
extend_params: s
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
async function S(e, n = "") {
|
|
91
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
92
|
-
`${r}/scenario-instances/${e}${t}`,
|
|
93
|
-
d
|
|
94
|
-
), a = await c(s, "获取项目失败"), i = a.status === "FOUND" ? "FOUND" : "NOT_FOUND", l = a.scenario_instance ?? a.scenarioInstance ?? null;
|
|
95
|
-
return {
|
|
96
|
-
status: i,
|
|
97
|
-
scenarioInstance: l ? u(l) : null
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
async function U(e, n = "") {
|
|
101
|
-
const t = await S(e, n);
|
|
102
|
-
if (t.status === "NOT_FOUND" || !t.scenarioInstance)
|
|
103
|
-
throw {
|
|
104
|
-
_apiUserError: !0,
|
|
105
|
-
userMessage: "项目不存在",
|
|
106
|
-
message: "项目不存在"
|
|
107
|
-
};
|
|
108
|
-
return t.scenarioInstance;
|
|
109
|
-
}
|
|
110
|
-
async function k(e, n = "") {
|
|
111
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
112
|
-
`${r}/scenario-instances/${e}/join-self${t}`,
|
|
113
|
-
{
|
|
114
|
-
...d,
|
|
115
|
-
method: "POST"
|
|
116
|
-
}
|
|
117
|
-
), a = await c(s, "加入工程失败");
|
|
118
|
-
return u(a);
|
|
119
|
-
}
|
|
120
|
-
async function b(e = "") {
|
|
121
|
-
const n = e ? `?token=${encodeURIComponent(e)}` : "", t = await o(`${r}/self-support${n}`, d), s = await c(t, "获取自身答疑群组失败"), a = Number(s.scenario_instance_id ?? 0);
|
|
122
|
-
if (!Number.isFinite(a) || a <= 0)
|
|
123
|
-
throw {
|
|
124
|
-
_apiUserError: !0,
|
|
125
|
-
userMessage: "自身答疑群组无效",
|
|
126
|
-
message: "自身答疑群组无效"
|
|
127
|
-
};
|
|
128
|
-
return {
|
|
129
|
-
scenario_instance_id: a,
|
|
130
|
-
name: String(s.name ?? "Z-OPC 自身答疑"),
|
|
131
|
-
scenario_code: String(s.scenario_code ?? "qa_support"),
|
|
132
|
-
workspace_path: String(s.workspace_path ?? ""),
|
|
133
|
-
status: String(s.status ?? "ACTIVE")
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
async function y(e, n = "") {
|
|
137
|
-
const t = n ? `?token=${encodeURIComponent(n)}` : "", s = await o(
|
|
138
|
-
`${r}/scenario-instances/${e}/forks${t}`,
|
|
139
|
-
d
|
|
140
|
-
), a = await c(s, "获取 Fork 列表失败");
|
|
141
|
-
return (Array.isArray(a) ? a : []).map(
|
|
142
|
-
(l) => u(l)
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
async function O(e) {
|
|
146
|
-
const n = await o(
|
|
147
|
-
`${r}/scenario-instances/${e}/close-feedback-tags`,
|
|
148
|
-
{
|
|
149
|
-
...d,
|
|
150
|
-
method: "GET"
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
return await c(n, "获取关单标签失败");
|
|
154
|
-
}
|
|
155
|
-
async function P(e) {
|
|
156
|
-
const n = await o(`${r}/scenario-instances/${e}/reopen`, {
|
|
157
|
-
...d,
|
|
158
|
-
method: "POST",
|
|
159
|
-
headers: { "Content-Type": "application/json" }
|
|
160
|
-
}), t = await c(n, "重新开启失败");
|
|
161
|
-
return u(t);
|
|
162
|
-
}
|
|
163
|
-
async function A(e, n) {
|
|
164
|
-
const t = await o(`${r}/scenario-instances/${e}/close`, {
|
|
165
|
-
...d,
|
|
166
|
-
method: "POST",
|
|
167
|
-
headers: { "Content-Type": "application/json" },
|
|
168
|
-
body: JSON.stringify(n)
|
|
169
|
-
}), s = await c(t, "关单失败");
|
|
170
|
-
return u(s);
|
|
171
|
-
}
|
|
172
|
-
async function N(e) {
|
|
173
|
-
const n = await o(
|
|
174
|
-
`${r}/scenario-instances/${e}/retry-init`,
|
|
175
|
-
{
|
|
176
|
-
...d,
|
|
177
|
-
method: "POST",
|
|
178
|
-
headers: { "Content-Type": "application/json" }
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
return c(n, "初始化补偿失败");
|
|
182
|
-
}
|
|
183
|
-
async function F(e = "", n = 8) {
|
|
184
|
-
const t = new URLSearchParams();
|
|
185
|
-
e && t.set("token", e), t.set("limit", String(n));
|
|
186
|
-
const s = await o(
|
|
187
|
-
`${r}/scenario-instances/my-unclosed?${t.toString()}`,
|
|
188
|
-
d
|
|
189
|
-
), a = await c(
|
|
190
|
-
s,
|
|
191
|
-
"查询未关单失败"
|
|
192
|
-
);
|
|
193
|
-
return (Array.isArray(a) ? a : []).map((i) => ({
|
|
194
|
-
id: Number(i.id ?? 0),
|
|
195
|
-
name: String(i.name ?? ""),
|
|
196
|
-
scenario_code: String(i.scenario_code ?? ""),
|
|
197
|
-
created_at: String(i.created_at ?? i.createdAt ?? "")
|
|
198
|
-
}));
|
|
199
|
-
}
|
|
200
|
-
export {
|
|
201
|
-
h as a,
|
|
202
|
-
T as b,
|
|
203
|
-
F as c,
|
|
204
|
-
I as d,
|
|
205
|
-
b as e,
|
|
206
|
-
C as f,
|
|
207
|
-
O as g,
|
|
208
|
-
A as h,
|
|
209
|
-
N as i,
|
|
210
|
-
k as j,
|
|
211
|
-
y as k,
|
|
212
|
-
S as l,
|
|
213
|
-
U as m,
|
|
214
|
-
v as p,
|
|
215
|
-
P as r
|
|
216
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { Alert as h } from "antd";
|
|
3
|
-
import { d } from "./ComponentDoc-bhNM4jiY.js";
|
|
4
|
-
import { h as g } from "./index-fl0m6QYf.js";
|
|
5
|
-
import { N as A } from "./index-B1AYMWHS.js";
|
|
6
|
-
function P() {
|
|
7
|
-
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
|
-
h,
|
|
9
|
-
{
|
|
10
|
-
type: "warning",
|
|
11
|
-
showIcon: !0,
|
|
12
|
-
"data-testid": "menu-permission-notice",
|
|
13
|
-
message: "权限校验失败",
|
|
14
|
-
description: "未能获取当前账号的权限点(4A 授权中心接口异常)。下方菜单为全量展示,可能包含无权访问的入口;进入受限页面会返回 403。请联系管理员确认账号权限绑定。",
|
|
15
|
-
style: { margin: "8px 12px" }
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
function u(e) {
|
|
20
|
-
const n = e.permission;
|
|
21
|
-
return n ? Array.isArray(n) ? n : [n] : [];
|
|
22
|
-
}
|
|
23
|
-
function S(e) {
|
|
24
|
-
return e ? e.is_global_admin ? !1 : !(e.permissions && e.permissions.length > 0) : !0;
|
|
25
|
-
}
|
|
26
|
-
function f(e, n) {
|
|
27
|
-
return n.length === 0 ? !0 : S(e) ? n.some((i) => A.includes(i)) : n.some((i) => g(e, i));
|
|
28
|
-
}
|
|
29
|
-
function m(e, n, i) {
|
|
30
|
-
const t = u(n), s = t.length > 0 ? t : i ? [i] : [];
|
|
31
|
-
return f(e, s);
|
|
32
|
-
}
|
|
33
|
-
function _(e, n) {
|
|
34
|
-
const i = [];
|
|
35
|
-
for (const t of e) {
|
|
36
|
-
const s = t.permission;
|
|
37
|
-
if (!f(n, u(t))) continue;
|
|
38
|
-
const o = t.items;
|
|
39
|
-
if (!Array.isArray(o)) {
|
|
40
|
-
i.push(t);
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
const c = o.filter((r) => m(n, r, s)).map(
|
|
44
|
-
(r) => r.children ? {
|
|
45
|
-
...r,
|
|
46
|
-
children: r.children.filter(
|
|
47
|
-
(l) => m(n, l, r.permission ?? s)
|
|
48
|
-
)
|
|
49
|
-
} : r
|
|
50
|
-
).filter((r) => !r.children || r.children.length > 0);
|
|
51
|
-
if (c.length === 0) continue;
|
|
52
|
-
const p = { ...t, items: c };
|
|
53
|
-
i.push(p);
|
|
54
|
-
}
|
|
55
|
-
return i;
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
P as M,
|
|
59
|
-
_ as f
|
|
60
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function n() {
|
|
2
|
-
return typeof window > "u" ? !1 : window.matchMedia("(max-width: 768px)").matches ? !0 : /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
3
|
-
navigator.userAgent
|
|
4
|
-
);
|
|
5
|
-
}
|
|
6
|
-
function s(e) {
|
|
7
|
-
const a = new URLSearchParams(
|
|
8
|
-
e.startsWith("?") ? e.slice(1) : e
|
|
9
|
-
).get("desktop");
|
|
10
|
-
return a === "1" || a === "true";
|
|
11
|
-
}
|
|
12
|
-
function l(e) {
|
|
13
|
-
const t = (e == null ? void 0 : e.search) ?? (typeof window < "u" ? window.location.search : ""), a = (e == null ? void 0 : e.stripTicketParams) !== !1, c = n() && !s(t) ? "/workspace/phone" : "/workspace", r = new URLSearchParams(
|
|
14
|
-
t.startsWith("?") ? t.slice(1) : t
|
|
15
|
-
);
|
|
16
|
-
(e == null ? void 0 : e.projectId) != null && String(e.projectId).trim() && r.set("projectId", String(e.projectId)), a && (r.delete("ticketId"), r.delete("ticket_id"), r.delete("scenarioCode"), r.delete("scenario_code"), r.delete("projectName"), r.delete("project_name"), r.delete("input"));
|
|
17
|
-
const d = r.toString();
|
|
18
|
-
return d ? `${c}?${d}` : c;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
l as b,
|
|
22
|
-
s as i,
|
|
23
|
-
n as s
|
|
24
|
-
};
|
package/dist/pages.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-bhNM4jiY.js";
|
|
2
|
-
import { createElement as e } from "react";
|
|
3
|
-
import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
import "react-router-dom";
|
|
6
|
-
import "antd";
|
|
7
|
-
import "@yuku123/z-frontend-common";
|
|
8
|
-
import "@yuku123/z-frontend-common/ui";
|
|
9
|
-
const h = { title: "Z-OPC 一人公司基建", short: "team" }, O = [
|
|
10
|
-
{ path: "/team/subscribe", title: "订阅", order: 1, Component: t },
|
|
11
|
-
{ path: "/team/project", title: "项目", order: 2, Component: o },
|
|
12
|
-
// 组件文档页(lead 008 §7):放在 /team/:rest* 兜底之前,否则会被兜底路由吃掉。
|
|
13
|
-
{ path: "/team/docs", title: "组件文档", order: 3, Component: r },
|
|
14
|
-
{ path: "/team/:rest*", Component: a }
|
|
15
|
-
];
|
|
16
|
-
e(m), e(p), e(i), e(n);
|
|
17
|
-
export {
|
|
18
|
-
r as ComponentDocPage,
|
|
19
|
-
h as appMeta,
|
|
20
|
-
O as routes
|
|
21
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { s as l } from "./ComponentDoc-bhNM4jiY.js";
|
|
2
|
-
function m(o) {
|
|
3
|
-
const n = o.filter((t) => t.member_type === "AGENT");
|
|
4
|
-
return n.find((t) => t.is_default === !0) ?? n[0] ?? null;
|
|
5
|
-
}
|
|
6
|
-
function c(o, n) {
|
|
7
|
-
var r, a, f;
|
|
8
|
-
const t = ((r = n.display_name) == null ? void 0 : r.trim()) || ((f = (a = n.agent_info) == null ? void 0 : a.name) == null ? void 0 : f.trim()) || n.ref_id, e = o.trim(), s = `@${t}`;
|
|
9
|
-
return {
|
|
10
|
-
content: e.includes(s) ? e : `${s} ${e}`,
|
|
11
|
-
message_type: "AT_AGENT",
|
|
12
|
-
ref_id: n.ref_id
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function u(o, n) {
|
|
16
|
-
const t = o.trim();
|
|
17
|
-
if (!n.length)
|
|
18
|
-
return t;
|
|
19
|
-
const e = n.map((s) => s.trim()).filter(Boolean).join(`
|
|
20
|
-
`);
|
|
21
|
-
return t ? `${t}
|
|
22
|
-
|
|
23
|
-
${e}` : e;
|
|
24
|
-
}
|
|
25
|
-
async function p(o, n, t, e, s = []) {
|
|
26
|
-
const i = m(e);
|
|
27
|
-
if (!i)
|
|
28
|
-
throw new Error("未找到项目默认智能体");
|
|
29
|
-
const r = u(n, s), a = c(r, i);
|
|
30
|
-
await l(o, a, t);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
u as a,
|
|
34
|
-
p as s
|
|
35
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { g as F } from "./_commonjsHelpers-B52_cu2H.js";
|
|
2
|
-
function L(g, d) {
|
|
3
|
-
for (var y = 0; y < d.length; y++) {
|
|
4
|
-
const s = d[y];
|
|
5
|
-
if (typeof s != "string" && !Array.isArray(s)) {
|
|
6
|
-
for (const o in s)
|
|
7
|
-
if (o !== "default" && !(o in g)) {
|
|
8
|
-
const c = Object.getOwnPropertyDescriptor(s, o);
|
|
9
|
-
c && Object.defineProperty(g, o, c.get ? c : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => s[o]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var _ = { exports: {} }, S;
|
|
19
|
-
function O() {
|
|
20
|
-
return S || (S = 1, (function(g, d) {
|
|
21
|
-
(function(y) {
|
|
22
|
-
g.exports = y();
|
|
23
|
-
})(function(y) {
|
|
24
|
-
var s = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
25
|
-
function o(i, f) {
|
|
26
|
-
var r = i[0], t = i[1], n = i[2], e = i[3];
|
|
27
|
-
r += (t & n | ~t & e) + f[0] - 680876936 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + f[1] - 389564586 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + f[2] + 606105819 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + f[3] - 1044525330 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & n | ~t & e) + f[4] - 176418897 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + f[5] + 1200080426 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + f[6] - 1473231341 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + f[7] - 45705983 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & n | ~t & e) + f[8] + 1770035416 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + f[9] - 1958414417 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + f[10] - 42063 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + f[11] - 1990404162 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & n | ~t & e) + f[12] + 1804603682 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + f[13] - 40341101 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + f[14] - 1502002290 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + f[15] + 1236535329 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & e | n & ~e) + f[1] - 165796510 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + f[6] - 1069501632 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + f[11] + 643717713 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + f[0] - 373897302 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t & e | n & ~e) + f[5] - 701558691 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + f[10] + 38016083 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + f[15] - 660478335 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + f[4] - 405537848 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t & e | n & ~e) + f[9] + 568446438 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + f[14] - 1019803690 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + f[3] - 187363961 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + f[8] + 1163531501 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t & e | n & ~e) + f[13] - 1444681467 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + f[2] - 51403784 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + f[7] + 1735328473 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + f[12] - 1926607734 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t ^ n ^ e) + f[5] - 378558 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + f[8] - 2022574463 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + f[11] + 1839030562 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + f[14] - 35309556 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (t ^ n ^ e) + f[1] - 1530992060 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + f[4] + 1272893353 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + f[7] - 155497632 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + f[10] - 1094730640 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (t ^ n ^ e) + f[13] + 681279174 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + f[0] - 358537222 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + f[3] - 722521979 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + f[6] + 76029189 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (t ^ n ^ e) + f[9] - 640364487 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + f[12] - 421815835 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + f[15] + 530742520 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + f[2] - 995338651 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (n ^ (t | ~e)) + f[0] - 198630844 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + f[7] + 1126891415 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + f[14] - 1416354905 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + f[5] - 57434055 | 0, t = (t << 21 | t >>> 11) + n | 0, r += (n ^ (t | ~e)) + f[12] + 1700485571 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + f[3] - 1894986606 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + f[10] - 1051523 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + f[1] - 2054922799 | 0, t = (t << 21 | t >>> 11) + n | 0, r += (n ^ (t | ~e)) + f[8] + 1873313359 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + f[15] - 30611744 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + f[6] - 1560198380 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + f[13] + 1309151649 | 0, t = (t << 21 | t >>> 11) + n | 0, r += (n ^ (t | ~e)) + f[4] - 145523070 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + f[11] - 1120210379 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + f[2] + 718787259 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + f[9] - 343485551 | 0, t = (t << 21 | t >>> 11) + n | 0, i[0] = r + i[0] | 0, i[1] = t + i[1] | 0, i[2] = n + i[2] | 0, i[3] = e + i[3] | 0;
|
|
28
|
-
}
|
|
29
|
-
function c(i) {
|
|
30
|
-
var f = [], r;
|
|
31
|
-
for (r = 0; r < 64; r += 4)
|
|
32
|
-
f[r >> 2] = i.charCodeAt(r) + (i.charCodeAt(r + 1) << 8) + (i.charCodeAt(r + 2) << 16) + (i.charCodeAt(r + 3) << 24);
|
|
33
|
-
return f;
|
|
34
|
-
}
|
|
35
|
-
function A(i) {
|
|
36
|
-
var f = [], r;
|
|
37
|
-
for (r = 0; r < 64; r += 4)
|
|
38
|
-
f[r >> 2] = i[r] + (i[r + 1] << 8) + (i[r + 2] << 16) + (i[r + 3] << 24);
|
|
39
|
-
return f;
|
|
40
|
-
}
|
|
41
|
-
function m(i) {
|
|
42
|
-
var f = i.length, r = [1732584193, -271733879, -1732584194, 271733878], t, n, e, u, a, p;
|
|
43
|
-
for (t = 64; t <= f; t += 64)
|
|
44
|
-
o(r, c(i.substring(t - 64, t)));
|
|
45
|
-
for (i = i.substring(t - 64), n = i.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], t = 0; t < n; t += 1)
|
|
46
|
-
e[t >> 2] |= i.charCodeAt(t) << (t % 4 << 3);
|
|
47
|
-
if (e[t >> 2] |= 128 << (t % 4 << 3), t > 55)
|
|
48
|
-
for (o(r, e), t = 0; t < 16; t += 1)
|
|
49
|
-
e[t] = 0;
|
|
50
|
-
return u = f * 8, u = u.toString(16).match(/(.*?)(.{0,8})$/), a = parseInt(u[2], 16), p = parseInt(u[1], 16) || 0, e[14] = a, e[15] = p, o(r, e), r;
|
|
51
|
-
}
|
|
52
|
-
function U(i) {
|
|
53
|
-
var f = i.length, r = [1732584193, -271733879, -1732584194, 271733878], t, n, e, u, a, p;
|
|
54
|
-
for (t = 64; t <= f; t += 64)
|
|
55
|
-
o(r, A(i.subarray(t - 64, t)));
|
|
56
|
-
for (i = t - 64 < f ? i.subarray(t - 64) : new Uint8Array(0), n = i.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], t = 0; t < n; t += 1)
|
|
57
|
-
e[t >> 2] |= i[t] << (t % 4 << 3);
|
|
58
|
-
if (e[t >> 2] |= 128 << (t % 4 << 3), t > 55)
|
|
59
|
-
for (o(r, e), t = 0; t < 16; t += 1)
|
|
60
|
-
e[t] = 0;
|
|
61
|
-
return u = f * 8, u = u.toString(16).match(/(.*?)(.{0,8})$/), a = parseInt(u[2], 16), p = parseInt(u[1], 16) || 0, e[14] = a, e[15] = p, o(r, e), r;
|
|
62
|
-
}
|
|
63
|
-
function C(i) {
|
|
64
|
-
var f = "", r;
|
|
65
|
-
for (r = 0; r < 4; r += 1)
|
|
66
|
-
f += s[i >> r * 8 + 4 & 15] + s[i >> r * 8 & 15];
|
|
67
|
-
return f;
|
|
68
|
-
}
|
|
69
|
-
function l(i) {
|
|
70
|
-
var f;
|
|
71
|
-
for (f = 0; f < i.length; f += 1)
|
|
72
|
-
i[f] = C(i[f]);
|
|
73
|
-
return i.join("");
|
|
74
|
-
}
|
|
75
|
-
l(m("hello")), typeof ArrayBuffer < "u" && !ArrayBuffer.prototype.slice && (function() {
|
|
76
|
-
function i(f, r) {
|
|
77
|
-
return f = f | 0 || 0, f < 0 ? Math.max(f + r, 0) : Math.min(f, r);
|
|
78
|
-
}
|
|
79
|
-
ArrayBuffer.prototype.slice = function(f, r) {
|
|
80
|
-
var t = this.byteLength, n = i(f, t), e = t, u, a, p, v;
|
|
81
|
-
return r !== y && (e = i(r, t)), n > e ? new ArrayBuffer(0) : (u = e - n, a = new ArrayBuffer(u), p = new Uint8Array(a), v = new Uint8Array(this, n, u), p.set(v), a);
|
|
82
|
-
};
|
|
83
|
-
})();
|
|
84
|
-
function B(i) {
|
|
85
|
-
return /[\u0080-\uFFFF]/.test(i) && (i = unescape(encodeURIComponent(i))), i;
|
|
86
|
-
}
|
|
87
|
-
function M(i, f) {
|
|
88
|
-
var r = i.length, t = new ArrayBuffer(r), n = new Uint8Array(t), e;
|
|
89
|
-
for (e = 0; e < r; e += 1)
|
|
90
|
-
n[e] = i.charCodeAt(e);
|
|
91
|
-
return f ? n : t;
|
|
92
|
-
}
|
|
93
|
-
function I(i) {
|
|
94
|
-
return String.fromCharCode.apply(null, new Uint8Array(i));
|
|
95
|
-
}
|
|
96
|
-
function j(i, f, r) {
|
|
97
|
-
var t = new Uint8Array(i.byteLength + f.byteLength);
|
|
98
|
-
return t.set(new Uint8Array(i)), t.set(new Uint8Array(f), i.byteLength), t;
|
|
99
|
-
}
|
|
100
|
-
function b(i) {
|
|
101
|
-
var f = [], r = i.length, t;
|
|
102
|
-
for (t = 0; t < r - 1; t += 2)
|
|
103
|
-
f.push(parseInt(i.substr(t, 2), 16));
|
|
104
|
-
return String.fromCharCode.apply(String, f);
|
|
105
|
-
}
|
|
106
|
-
function h() {
|
|
107
|
-
this.reset();
|
|
108
|
-
}
|
|
109
|
-
return h.prototype.append = function(i) {
|
|
110
|
-
return this.appendBinary(B(i)), this;
|
|
111
|
-
}, h.prototype.appendBinary = function(i) {
|
|
112
|
-
this._buff += i, this._length += i.length;
|
|
113
|
-
var f = this._buff.length, r;
|
|
114
|
-
for (r = 64; r <= f; r += 64)
|
|
115
|
-
o(this._hash, c(this._buff.substring(r - 64, r)));
|
|
116
|
-
return this._buff = this._buff.substring(r - 64), this;
|
|
117
|
-
}, h.prototype.end = function(i) {
|
|
118
|
-
var f = this._buff, r = f.length, t, n = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], e;
|
|
119
|
-
for (t = 0; t < r; t += 1)
|
|
120
|
-
n[t >> 2] |= f.charCodeAt(t) << (t % 4 << 3);
|
|
121
|
-
return this._finish(n, r), e = l(this._hash), i && (e = b(e)), this.reset(), e;
|
|
122
|
-
}, h.prototype.reset = function() {
|
|
123
|
-
return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
|
|
124
|
-
}, h.prototype.getState = function() {
|
|
125
|
-
return {
|
|
126
|
-
buff: this._buff,
|
|
127
|
-
length: this._length,
|
|
128
|
-
hash: this._hash.slice()
|
|
129
|
-
};
|
|
130
|
-
}, h.prototype.setState = function(i) {
|
|
131
|
-
return this._buff = i.buff, this._length = i.length, this._hash = i.hash, this;
|
|
132
|
-
}, h.prototype.destroy = function() {
|
|
133
|
-
delete this._hash, delete this._buff, delete this._length;
|
|
134
|
-
}, h.prototype._finish = function(i, f) {
|
|
135
|
-
var r = f, t, n, e;
|
|
136
|
-
if (i[r >> 2] |= 128 << (r % 4 << 3), r > 55)
|
|
137
|
-
for (o(this._hash, i), r = 0; r < 16; r += 1)
|
|
138
|
-
i[r] = 0;
|
|
139
|
-
t = this._length * 8, t = t.toString(16).match(/(.*?)(.{0,8})$/), n = parseInt(t[2], 16), e = parseInt(t[1], 16) || 0, i[14] = n, i[15] = e, o(this._hash, i);
|
|
140
|
-
}, h.hash = function(i, f) {
|
|
141
|
-
return h.hashBinary(B(i), f);
|
|
142
|
-
}, h.hashBinary = function(i, f) {
|
|
143
|
-
var r = m(i), t = l(r);
|
|
144
|
-
return f ? b(t) : t;
|
|
145
|
-
}, h.ArrayBuffer = function() {
|
|
146
|
-
this.reset();
|
|
147
|
-
}, h.ArrayBuffer.prototype.append = function(i) {
|
|
148
|
-
var f = j(this._buff.buffer, i), r = f.length, t;
|
|
149
|
-
for (this._length += i.byteLength, t = 64; t <= r; t += 64)
|
|
150
|
-
o(this._hash, A(f.subarray(t - 64, t)));
|
|
151
|
-
return this._buff = t - 64 < r ? new Uint8Array(f.buffer.slice(t - 64)) : new Uint8Array(0), this;
|
|
152
|
-
}, h.ArrayBuffer.prototype.end = function(i) {
|
|
153
|
-
var f = this._buff, r = f.length, t = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], n, e;
|
|
154
|
-
for (n = 0; n < r; n += 1)
|
|
155
|
-
t[n >> 2] |= f[n] << (n % 4 << 3);
|
|
156
|
-
return this._finish(t, r), e = l(this._hash), i && (e = b(e)), this.reset(), e;
|
|
157
|
-
}, h.ArrayBuffer.prototype.reset = function() {
|
|
158
|
-
return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
|
|
159
|
-
}, h.ArrayBuffer.prototype.getState = function() {
|
|
160
|
-
var i = h.prototype.getState.call(this);
|
|
161
|
-
return i.buff = I(i.buff), i;
|
|
162
|
-
}, h.ArrayBuffer.prototype.setState = function(i) {
|
|
163
|
-
return i.buff = M(i.buff, !0), h.prototype.setState.call(this, i);
|
|
164
|
-
}, h.ArrayBuffer.prototype.destroy = h.prototype.destroy, h.ArrayBuffer.prototype._finish = h.prototype._finish, h.ArrayBuffer.hash = function(i, f) {
|
|
165
|
-
var r = U(new Uint8Array(i)), t = l(r);
|
|
166
|
-
return f ? b(t) : t;
|
|
167
|
-
}, h;
|
|
168
|
-
});
|
|
169
|
-
})(_)), _.exports;
|
|
170
|
-
}
|
|
171
|
-
var w = O();
|
|
172
|
-
const $ = /* @__PURE__ */ F(w), D = /* @__PURE__ */ L({
|
|
173
|
-
__proto__: null,
|
|
174
|
-
default: $
|
|
175
|
-
}, [w]);
|
|
176
|
-
export {
|
|
177
|
-
D as s
|
|
178
|
-
};
|